/* Generated by Cython 3.0.12 */ /* BEGIN: Cython Metadata { "distutils": { "depends": [ "/usr/local/cuda/include/cuda", "/usr/local/cuda/include/cuda.h", "/usr/local/cuda/include/cudaProfiler.h", "/usr/local/cuda/include/cuda_runtime_api.h", "/usr/local/cuda/include/device_types.h", "/usr/local/cuda/include/driver_types.h", "/usr/local/cuda/include/library_types.h", "/usr/local/cuda/include/surface_types.h", "/usr/local/cuda/include/texture_types.h", "/usr/local/cuda/include/vector_types.h" ], "extra_compile_args": [ "-std=c++14", "-fpermissive", "-Wno-deprecated-declarations", "-D _GLIBCXX_ASSERTIONS", "-fno-var-tracking-assignments", "-O3" ], "include_dirs": [ "cuda", "/usr/include", "/usr/local/cuda/include" ], "language": "c++", "library_dirs": [ "/usr/local/lib/python3.10/dist-packages", "/usr/lib" ], "name": "cuda.cudart", "sources": [ "cuda/cudart.pyx" ] }, "module_name": "cuda.cudart" } END: Cython Metadata */ #ifndef PY_SSIZE_T_CLEAN #define PY_SSIZE_T_CLEAN #endif /* PY_SSIZE_T_CLEAN */ #if defined(CYTHON_LIMITED_API) && 0 #ifndef Py_LIMITED_API #if CYTHON_LIMITED_API+0 > 0x03030000 #define Py_LIMITED_API CYTHON_LIMITED_API #else #define Py_LIMITED_API 0x03030000 #endif #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 < 0x02070000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000) #error Cython requires Python 2.7+ or Python 3.3+. #else #if defined(CYTHON_LIMITED_API) && CYTHON_LIMITED_API #define __PYX_EXTRA_ABI_MODULE_NAME "limited" #else #define __PYX_EXTRA_ABI_MODULE_NAME "" #endif #define CYTHON_ABI "3_0_12" __PYX_EXTRA_ABI_MODULE_NAME #define __PYX_ABI_MODULE_NAME "_cython_" CYTHON_ABI #define __PYX_TYPE_MODULE_PREFIX __PYX_ABI_MODULE_NAME "." #define CYTHON_HEX_VERSION 0x03000CF0 #define CYTHON_FUTURE_DIVISION 1 #include #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 HAVE_LONG_LONG #define HAVE_LONG_LONG #endif #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_NOGIL 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 #if PY_VERSION_HEX < 0x03050000 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #elif !defined(CYTHON_USE_ASYNC_SLOTS) #define CYTHON_USE_ASYNC_SLOTS 1 #endif #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_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 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 (PY_MAJOR_VERSION >= 3) #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_TP_FINALIZE #define CYTHON_USE_TP_FINALIZE 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 0 #endif #undef CYTHON_USE_FREELISTS #define CYTHON_USE_FREELISTS 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_NOGIL 0 #undef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 0 #ifndef CYTHON_USE_TYPE_SPECS #define CYTHON_USE_TYPE_SPECS 0 #endif #undef CYTHON_USE_PYTYPE_LOOKUP #define CYTHON_USE_PYTYPE_LOOKUP 0 #if PY_VERSION_HEX < 0x03050000 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #elif !defined(CYTHON_USE_ASYNC_SLOTS) #define CYTHON_USE_ASYNC_SLOTS 1 #endif #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_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 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 (PY_MAJOR_VERSION >= 3) #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_TP_FINALIZE #define CYTHON_USE_TP_FINALIZE (PY_VERSION_HEX >= 0x030400a1 && PYPY_VERSION_NUM >= 0x07030C00) #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 #undef CYTHON_USE_FREELISTS #define CYTHON_USE_FREELISTS 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_NOGIL 0 #undef CYTHON_CLINE_IN_TRACEBACK #define CYTHON_CLINE_IN_TRACEBACK 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_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 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 #undef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 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 0 #undef CYTHON_USE_MODULE_STATE #define CYTHON_USE_MODULE_STATE 1 #ifndef CYTHON_USE_TP_FINALIZE #define CYTHON_USE_TP_FINALIZE 0 #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 #undef CYTHON_USE_FREELISTS #define CYTHON_USE_FREELISTS 0 #elif defined(Py_GIL_DISABLED) || defined(Py_NOGIL) #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_CPYTHON 0 #define CYTHON_COMPILING_IN_LIMITED_API 0 #define CYTHON_COMPILING_IN_GRAAL 0 #define CYTHON_COMPILING_IN_NOGIL 1 #ifndef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 1 #endif #ifndef CYTHON_USE_TYPE_SPECS #define CYTHON_USE_TYPE_SPECS 0 #endif #undef CYTHON_USE_PYTYPE_LOOKUP #define CYTHON_USE_PYTYPE_LOOKUP 0 #ifndef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 1 #endif #ifndef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #endif #undef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 0 #ifndef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 1 #endif #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #ifndef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 0 #endif #ifndef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 1 #endif #ifndef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 1 #endif #undef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 0 #undef CYTHON_FAST_GIL #define CYTHON_FAST_GIL 0 #ifndef CYTHON_METH_FASTCALL #define CYTHON_METH_FASTCALL 1 #endif #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 #ifndef CYTHON_USE_TP_FINALIZE #define CYTHON_USE_TP_FINALIZE 1 #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 1 #endif #ifndef CYTHON_USE_FREELISTS #define CYTHON_USE_FREELISTS 0 #endif #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 #define CYTHON_COMPILING_IN_NOGIL 0 #ifndef 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 #if PY_MAJOR_VERSION < 3 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #elif !defined(CYTHON_USE_ASYNC_SLOTS) #define CYTHON_USE_ASYNC_SLOTS 1 #endif #ifndef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 1 #endif #ifndef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 1 #endif #ifndef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 1 #endif #if PY_VERSION_HEX < 0x030300F0 || 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 #ifndef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 1 #endif #ifndef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 1 #endif #ifndef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 1 #endif #ifndef CYTHON_FAST_GIL #define CYTHON_FAST_GIL (PY_MAJOR_VERSION < 3 || PY_VERSION_HEX >= 0x03060000 && PY_VERSION_HEX < 0x030C00A6) #endif #ifndef CYTHON_METH_FASTCALL #define CYTHON_METH_FASTCALL (PY_VERSION_HEX >= 0x030700A1) #endif #ifndef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 1 #endif #ifndef CYTHON_PEP487_INIT_SUBCLASS #define CYTHON_PEP487_INIT_SUBCLASS 1 #endif #if PY_VERSION_HEX < 0x03050000 #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 #ifndef CYTHON_USE_MODULE_STATE #define CYTHON_USE_MODULE_STATE 0 #endif #if PY_VERSION_HEX < 0x030400a1 #undef CYTHON_USE_TP_FINALIZE #define CYTHON_USE_TP_FINALIZE 0 #elif !defined(CYTHON_USE_TP_FINALIZE) #define CYTHON_USE_TP_FINALIZE 1 #endif #if PY_VERSION_HEX < 0x030600B1 #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) #endif #if PY_VERSION_HEX < 0x030700A3 #undef CYTHON_USE_EXC_INFO_STACK #define CYTHON_USE_EXC_INFO_STACK 0 #elif !defined(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 1 #endif #endif #if !defined(CYTHON_FAST_PYCCALL) #define CYTHON_FAST_PYCCALL (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1) #endif #if !defined(CYTHON_VECTORCALL) #define CYTHON_VECTORCALL (CYTHON_FAST_PYCCALL && PY_VERSION_HEX >= 0x030800B1) #endif #define CYTHON_BACKPORT_VECTORCALL (CYTHON_METH_FASTCALL && PY_VERSION_HEX < 0x030800B1) #if CYTHON_USE_PYLONG_INTERNALS #if PY_MAJOR_VERSION < 3 #include "longintrepr.h" #endif #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 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 # 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) #ifdef _MSC_VER #ifndef _MSC_STDINT_H_ #if _MSC_VER < 1300 typedef unsigned char uint8_t; typedef unsigned short uint16_t; typedef unsigned int uint32_t; #else typedef unsigned __int8 uint8_t; typedef unsigned __int16 uint16_t; typedef unsigned __int32 uint32_t; #endif #endif #if _MSC_VER < 1300 #ifdef _WIN64 typedef unsigned long long __pyx_uintptr_t; #else typedef unsigned int __pyx_uintptr_t; #endif #else #ifdef _WIN64 typedef unsigned __int64 __pyx_uintptr_t; #else typedef unsigned __int32 __pyx_uintptr_t; #endif #endif #else #include typedef uintptr_t __pyx_uintptr_t; #endif #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 #ifdef __cplusplus template struct __PYX_IS_UNSIGNED_IMPL {static const bool value = T(0) < T(-1);}; #define __PYX_IS_UNSIGNED(type) (__PYX_IS_UNSIGNED_IMPL::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 >= 0x030800b4 && PY_VERSION_HEX < 0x030A0000) #else #define __PYX_NEED_TP_PRINT_SLOT (PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000) #endif #define __PYX_REINTERPRET_FUNCION(func_pointer, other_pointer) ((func_pointer)(void(*)(void))(other_pointer)) #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 void __Pyx_call_destructor(T& x) { x.~T(); } template class __Pyx_FakeReference { public: __Pyx_FakeReference() : ptr(NULL) { } __Pyx_FakeReference(const T& ref) : ptr(const_cast(&ref)) { } T *operator->() { return ptr; } T *operator&() { return ptr; } operator T&() { return *ptr; } template bool operator ==(const U& other) const { return *ptr == other; } template bool operator !=(const U& other) const { return *ptr != other; } template bool operator==(const __Pyx_FakeReference& other) const { return *ptr == *other.ptr; } template bool operator!=(const __Pyx_FakeReference& other) const { return *ptr != *other.ptr; } private: T *ptr; }; #define __PYX_BUILD_PY_SSIZE_T "n" #define CYTHON_FORMAT_SSIZE_T "z" #if PY_MAJOR_VERSION < 3 #define __Pyx_BUILTIN_MODULE_NAME "__builtin__" #define __Pyx_DefaultClassType PyClass_Type #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) #else #define __Pyx_BUILTIN_MODULE_NAME "builtins" #define __Pyx_DefaultClassType PyType_Type #if CYTHON_COMPILING_IN_LIMITED_API static CYTHON_INLINE 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, "iiiiiOOOOOOiOO", 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, "iiiiiiOOOOOOiOO", 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, "iiiiiiOOOOOOOiOO", 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; } #ifndef CO_OPTIMIZED #define CO_OPTIMIZED 0x0001 #endif #ifndef CO_NEWLOCALS #define CO_NEWLOCALS 0x0002 #endif #ifndef CO_VARARGS #define CO_VARARGS 0x0004 #endif #ifndef CO_VARKEYWORDS #define CO_VARKEYWORDS 0x0008 #endif #ifndef CO_ASYNC_GENERATOR #define CO_ASYNC_GENERATOR 0x0200 #endif #ifndef CO_GENERATOR #define CO_GENERATOR 0x0020 #endif #ifndef CO_COROUTINE #define CO_COROUTINE 0x0080 #endif #elif PY_VERSION_HEX >= 0x030B0000 static CYTHON_INLINE 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; PyObject *empty_bytes = PyBytes_FromStringAndSize("", 0); if (!empty_bytes) return NULL; 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, empty_bytes); Py_DECREF(empty_bytes); return result; } #elif PY_VERSION_HEX >= 0x030800B2 && !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 #endif #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 CO_COROUTINE #define CO_COROUTINE 0x80 #endif #ifndef CO_ASYNC_GENERATOR #define CO_ASYNC_GENERATOR 0x200 #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 METH_STACKLESS #define METH_STACKLESS 0 #endif #if PY_VERSION_HEX <= 0x030700A3 || !defined(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)) #elif CYTHON_BACKPORT_VECTORCALL typedef PyObject *(*__pyx_vectorcallfunc)(PyObject *callable, PyObject *const *args, size_t nargsf, PyObject *kwnames); #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET ((size_t)1 << (8 * sizeof(size_t) - 1)) #define __Pyx_PyVectorcall_NARGS(n) ((Py_ssize_t)(((size_t)(n)) & ~__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)) #else #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET 0 #define __Pyx_PyVectorcall_NARGS(n) ((Py_ssize_t)(n)) #endif #if PY_MAJOR_VERSION >= 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) { #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 __PYX_LIMITED_VERSION_HEX < 0x030900B1 #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_PyCode_HasFreeVars(co) (PyCode_GetNumFree(co) > 0) #define __Pyx_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() #elif PY_VERSION_HEX >= 0x03060000 #define __Pyx_PyThreadState_Current _PyThreadState_UncheckedGet() #elif PY_VERSION_HEX >= 0x03000000 #define __Pyx_PyThreadState_Current PyThreadState_GET() #else #define __Pyx_PyThreadState_Current _PyThreadState_Current #endif #if CYTHON_COMPILING_IN_LIMITED_API 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; } #endif #define __Pyx_PyObject_GetSlot(obj, name, func_ctype) __Pyx_PyType_GetSlot(Py_TYPE(obj), name, func_ctype) #if CYTHON_COMPILING_IN_LIMITED_API #define __Pyx_PyType_GetSlot(type, name, func_ctype) ((func_ctype) PyType_GetSlot((type), Py_##name)) #else #define __Pyx_PyType_GetSlot(type, name, func_ctype) ((type)->name) #endif #if PY_VERSION_HEX < 0x030700A2 && !defined(PyThread_tss_create) && !defined(Py_tss_NEEDS_INIT) #include "pythread.h" #define Py_tss_NEEDS_INIT 0 typedef int Py_tss_t; static CYTHON_INLINE int PyThread_tss_create(Py_tss_t *key) { *key = PyThread_create_key(); return 0; } static CYTHON_INLINE Py_tss_t * PyThread_tss_alloc(void) { Py_tss_t *key = (Py_tss_t *)PyObject_Malloc(sizeof(Py_tss_t)); *key = Py_tss_NEEDS_INIT; return key; } static CYTHON_INLINE void PyThread_tss_free(Py_tss_t *key) { PyObject_Free(key); } static CYTHON_INLINE int PyThread_tss_is_created(Py_tss_t *key) { return *key != Py_tss_NEEDS_INIT; } static CYTHON_INLINE void PyThread_tss_delete(Py_tss_t *key) { PyThread_delete_key(*key); *key = Py_tss_NEEDS_INIT; } static CYTHON_INLINE int PyThread_tss_set(Py_tss_t *key, void *value) { return PyThread_set_key_value(*key, value); } static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) { return PyThread_get_key_value(*key); } #endif #if PY_MAJOR_VERSION < 3 #if CYTHON_COMPILING_IN_PYPY #if PYPY_VERSION_NUM < 0x07030600 #if defined(__cplusplus) && __cplusplus >= 201402L [[deprecated("`with nogil:` inside a nogil function will not release the GIL in PyPy2 < 7.3.6")]] #elif defined(__GNUC__) || defined(__clang__) __attribute__ ((__deprecated__("`with nogil:` inside a nogil function will not release the GIL in PyPy2 < 7.3.6"))) #elif defined(_MSC_VER) __declspec(deprecated("`with nogil:` inside a nogil function will not release the GIL in PyPy2 < 7.3.6")) #endif static CYTHON_INLINE int PyGILState_Check(void) { return 0; } #else // PYPY_VERSION_NUM < 0x07030600 #endif // PYPY_VERSION_NUM < 0x07030600 #else static CYTHON_INLINE int PyGILState_Check(void) { PyThreadState * tstate = _PyThreadState_Current; return tstate && (tstate == PyGILState_GetThisThreadState()); } #endif #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030d0000 || defined(_PyDict_NewPresized) #define __Pyx_PyDict_NewPresized(n) ((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n)) #else #define __Pyx_PyDict_NewPresized(n) PyDict_New() #endif #if PY_MAJOR_VERSION >= 3 || CYTHON_FUTURE_DIVISION #define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y) #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y) #else #define __Pyx_PyNumber_Divide(x,y) PyNumber_Divide(x,y) #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceDivide(x,y) #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX > 0x030600B4 && PY_VERSION_HEX < 0x030d0000 && 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 PY_MAJOR_VERSION >= 3 && (!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) #define __Pyx_PyObject_GetIterNextFunc(obj) (Py_TYPE(obj)->tp_iternext) #else #define __Pyx_PyType_GetFlags(tp) (PyType_GetFlags((PyTypeObject *)tp)) #define __Pyx_PyType_HasFeature(type, feature) PyType_HasFeature(type, feature) #define __Pyx_PyObject_GetIterNextFunc(obj) PyIter_Next #endif #if CYTHON_COMPILING_IN_LIMITED_API #define __Pyx_SetItemOnTypeDict(tp, k, v) PyObject_GenericSetAttr((PyObject*)tp, k, v) #else #define __Pyx_SetItemOnTypeDict(tp, k, v) PyDict_SetItem(tp->tp_dict, k, v) #endif #if CYTHON_USE_TYPE_SPECS && PY_VERSION_HEX >= 0x03080000 #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 CYTHON_PEP393_ENABLED 1 #define __Pyx_PyUnicode_READY(op) (0) #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GetLength(u) #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)) #elif PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND) #define CYTHON_PEP393_ENABLED 1 #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_GET_LENGTH(u) PyUnicode_GET_LENGTH(u) #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 #else #define CYTHON_PEP393_ENABLED 0 #define PyUnicode_1BYTE_KIND 1 #define PyUnicode_2BYTE_KIND 2 #define PyUnicode_4BYTE_KIND 4 #define __Pyx_PyUnicode_READY(op) (0) #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_SIZE(u) #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i])) #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) ((sizeof(Py_UNICODE) == 2) ? 65535U : 1114111U) #define __Pyx_PyUnicode_KIND(u) ((int)sizeof(Py_UNICODE)) #define __Pyx_PyUnicode_DATA(u) ((void*)PyUnicode_AS_UNICODE(u)) #define __Pyx_PyUnicode_READ(k, d, i) ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i])) #define __Pyx_PyUnicode_WRITE(k, d, i, ch) (((void)(k)), ((Py_UNICODE*)d)[i] = (Py_UNICODE) ch) #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_SIZE(u)) #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) || (PY_MAJOR_VERSION == 2 && PYPY_VERSION_NUM < 0x07030500) #undef 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_PyString_FormatSafe(a, b) ((unlikely((a) == Py_None || (PyString_Check(b) && !PyString_CheckExact(b)))) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b)) #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 PY_MAJOR_VERSION >= 3 #define __Pyx_PyString_Format(a, b) PyUnicode_Format(a, b) #else #define __Pyx_PyString_Format(a, b) PyString_Format(a, b) #endif #if PY_MAJOR_VERSION < 3 && !defined(PyObject_ASCII) #define PyObject_ASCII(o) PyObject_Repr(o) #endif #if PY_MAJOR_VERSION >= 3 #define PyBaseString_Type PyUnicode_Type #define PyStringObject PyUnicodeObject #define PyString_Type PyUnicode_Type #define PyString_Check PyUnicode_Check #define PyString_CheckExact PyUnicode_CheckExact #ifndef PyObject_Unicode #define PyObject_Unicode PyObject_Str #endif #endif #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj) #define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj) #else #define __Pyx_PyBaseString_Check(obj) (PyString_Check(obj) || PyUnicode_Check(obj)) #define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj)) #endif #if 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 #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_PyList_SET_ITEM(o, i, v) (PyList_SET_ITEM(o, i, v), (0)) #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) #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_PyList_SET_ITEM(o, i, v) PyList_SetItem(o, i, v) #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) #endif #if __PYX_LIMITED_VERSION_HEX >= 0x030d00A1 #define __Pyx_PyImport_AddModuleRef(name) PyImport_AddModuleRef(name) #else static CYTHON_INLINE PyObject *__Pyx_PyImport_AddModuleRef(const char *name) { PyObject *module = PyImport_AddModule(name); Py_XINCREF(module); return module; } #endif #if PY_MAJOR_VERSION >= 3 #define PyIntObject PyLongObject #define PyInt_Type PyLong_Type #define PyInt_Check(op) PyLong_Check(op) #define PyInt_CheckExact(op) PyLong_CheckExact(op) #define __Pyx_Py3Int_Check(op) PyLong_Check(op) #define __Pyx_Py3Int_CheckExact(op) PyLong_CheckExact(op) #define PyInt_FromString PyLong_FromString #define PyInt_FromUnicode PyLong_FromUnicode #define PyInt_FromLong PyLong_FromLong #define PyInt_FromSize_t PyLong_FromSize_t #define PyInt_FromSsize_t PyLong_FromSsize_t #define PyInt_AsLong PyLong_AsLong #define PyInt_AS_LONG PyLong_AS_LONG #define PyInt_AsSsize_t PyLong_AsSsize_t #define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask #define PyNumber_Int PyNumber_Long #else #define __Pyx_Py3Int_Check(op) (PyLong_Check(op) || PyInt_Check(op)) #define __Pyx_Py3Int_CheckExact(op) (PyLong_CheckExact(op) || PyInt_CheckExact(op)) #endif #if PY_MAJOR_VERSION >= 3 #define PyBoolObject PyLongObject #endif #if PY_MAJOR_VERSION >= 3 && CYTHON_COMPILING_IN_PYPY #ifndef PyUnicode_InternFromString #define PyUnicode_InternFromString(s) PyUnicode_FromString(s) #endif #endif #if PY_VERSION_HEX < 0x030200A4 typedef long Py_hash_t; #define __Pyx_PyInt_FromHash_t PyInt_FromLong #define __Pyx_PyInt_AsHash_t __Pyx_PyIndex_AsHash_t #else #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t #define __Pyx_PyInt_AsHash_t __Pyx_PyIndex_AsSsize_t #endif #if CYTHON_USE_ASYNC_SLOTS #if PY_VERSION_HEX >= 0x030500B1 #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods #define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async) #else #define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved)) #endif #else #define __Pyx_PyType_AsAsync(obj) NULL #endif #ifndef __Pyx_PyAsyncMethodsStruct typedef struct { unaryfunc am_await; unaryfunc am_aiter; unaryfunc am_anext; } __Pyx_PyAsyncMethodsStruct; #endif #if defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS) #if !defined(_USE_MATH_DEFINES) #define _USE_MATH_DEFINES #endif #endif #include #ifdef NAN #define __PYX_NAN() ((float) NAN) #else static CYTHON_INLINE float __PYX_NAN() { float value; memset(&value, 0xFF, sizeof(value)); return value; } #endif #if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL) #define __Pyx_truncl trunc #else #define __Pyx_truncl truncl #endif #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; } #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__cudart #define __PYX_HAVE_API__cuda__cudart /* Early includes */ #include #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 #include #include #include #include #include #ifdef _OPENMP #include #endif /* _OPENMP */ #if defined(PYREX_WITHOUT_ASSERTIONS) && !defined(CYTHON_WITHOUT_ASSERTIONS) #define CYTHON_WITHOUT_ASSERTIONS #endif typedef struct {PyObject **p; const char *s; const Py_ssize_t n; const char* encoding; const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry; #define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0 #define __PYX_DEFAULT_STRING_ENCODING_IS_UTF8 0 #define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT (PY_MAJOR_VERSION >= 3 && __PYX_DEFAULT_STRING_ENCODING_IS_UTF8) #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 #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 PY_MAJOR_VERSION < 3 #define __Pyx_PyStr_FromString __Pyx_PyBytes_FromString #define __Pyx_PyStr_FromStringAndSize __Pyx_PyBytes_FromStringAndSize #else #define __Pyx_PyStr_FromString __Pyx_PyUnicode_FromString #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize #endif #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_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_PyStr_FromCString(s) __Pyx_PyStr_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 #define __Pyx_NewRef(obj) (Py_INCREF(obj), obj) #define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None) 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_IntOrLong(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_PyInt_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)) #else #define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x) #endif #define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x)) #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x)) #else #define __Pyx_PyNumber_Int(x) (PyInt_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Int(x)) #endif #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 PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII #include static int __Pyx_sys_getdefaultencoding_not_ascii; static int __Pyx_init_sys_getdefaultencoding_params(void) { PyObject* sys; PyObject* default_encoding = NULL; PyObject* ascii_chars_u = NULL; PyObject* ascii_chars_b = NULL; const char* default_encoding_c; sys = PyImport_ImportModule("sys"); if (!sys) goto bad; default_encoding = PyObject_CallMethod(sys, (char*) "getdefaultencoding", NULL); Py_DECREF(sys); if (!default_encoding) goto bad; default_encoding_c = PyBytes_AsString(default_encoding); if (!default_encoding_c) goto bad; if (strcmp(default_encoding_c, "ascii") == 0) { __Pyx_sys_getdefaultencoding_not_ascii = 0; } else { char ascii_chars[128]; int c; for (c = 0; c < 128; c++) { ascii_chars[c] = (char) c; } __Pyx_sys_getdefaultencoding_not_ascii = 1; ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL); if (!ascii_chars_u) goto bad; ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL); if (!ascii_chars_b || !PyBytes_Check(ascii_chars_b) || memcmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) { PyErr_Format( PyExc_ValueError, "This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.", default_encoding_c); goto bad; } Py_DECREF(ascii_chars_u); Py_DECREF(ascii_chars_b); } Py_DECREF(default_encoding); return 0; bad: Py_XDECREF(default_encoding); Py_XDECREF(ascii_chars_u); Py_XDECREF(ascii_chars_b); return -1; } #endif #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT && PY_MAJOR_VERSION >= 3 #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL) #else #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL) #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT #include static char* __PYX_DEFAULT_STRING_ENCODING; static int __Pyx_init_sys_getdefaultencoding_params(void) { PyObject* sys; PyObject* default_encoding = NULL; char* default_encoding_c; sys = PyImport_ImportModule("sys"); if (!sys) goto bad; default_encoding = PyObject_CallMethod(sys, (char*) (const char*) "getdefaultencoding", NULL); Py_DECREF(sys); if (!default_encoding) goto bad; default_encoding_c = PyBytes_AsString(default_encoding); if (!default_encoding_c) goto bad; __PYX_DEFAULT_STRING_ENCODING = (char*) malloc(strlen(default_encoding_c) + 1); if (!__PYX_DEFAULT_STRING_ENCODING) goto bad; strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c); Py_DECREF(default_encoding); return 0; bad: Py_XDECREF(default_encoding); return -1; } #endif #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__ */ static CYTHON_INLINE void __Pyx_pretend_to_initialize(void* ptr) { (void)ptr; } #if !CYTHON_USE_MODULE_STATE static PyObject *__pyx_m = NULL; #endif static int __pyx_lineno; static int __pyx_clineno = 0; static const char * __pyx_cfilenm = __FILE__; static const char *__pyx_filename; /* #### Code section: filename_table ### */ static const char *__pyx_f[] = { "cuda/cudart.pyx", "", "cuda/cudart.pxd", "cuda/cuda.pxd", "cuda/_lib/utils.pxd", "type.pxd", }; /* #### Code section: utility_code_proto_before_types ### */ /* ForceInitThreads.proto */ #ifndef __PYX_FORCE_INIT_THREADS #define __PYX_FORCE_INIT_THREADS 0 #endif /* NoFastGil.proto */ #define __Pyx_PyGILState_Ensure PyGILState_Ensure #define __Pyx_PyGILState_Release PyGILState_Release #define __Pyx_FastGIL_Remember() #define __Pyx_FastGIL_Forget() #define __Pyx_FastGilFuncInit() /* #### Code section: numeric_typedefs ### */ /* "cuda/ccudart.pxd":1438 * cudaRoundMinInf = 3 * * ctypedef unsigned int GLenum # <<<<<<<<<<<<<< * * ctypedef unsigned int GLuint */ typedef unsigned int __pyx_t_4cuda_7ccudart_GLenum; /* "cuda/ccudart.pxd":1440 * ctypedef unsigned int GLenum * * ctypedef unsigned int GLuint # <<<<<<<<<<<<<< * * cdef extern from "": */ typedef unsigned int __pyx_t_4cuda_7ccudart_GLuint; /* "cuda/ccudart.pxd":1452 * ctypedef void* EGLStreamKHR * * ctypedef unsigned int EGLint # <<<<<<<<<<<<<< * * cdef extern from "": */ typedef unsigned int __pyx_t_4cuda_7ccudart_EGLint; /* "cuda/ccudart.pxd":1459 * ctypedef void* EGLSyncKHR * * ctypedef uint32_t VdpDevice # <<<<<<<<<<<<<< * * ctypedef unsigned long long VdpGetProcAddress */ typedef uint32_t __pyx_t_4cuda_7ccudart_VdpDevice; /* "cuda/ccudart.pxd":1461 * ctypedef uint32_t VdpDevice * * ctypedef unsigned long long VdpGetProcAddress # <<<<<<<<<<<<<< * * ctypedef uint32_t VdpVideoSurface */ typedef unsigned PY_LONG_LONG __pyx_t_4cuda_7ccudart_VdpGetProcAddress; /* "cuda/ccudart.pxd":1463 * ctypedef unsigned long long VdpGetProcAddress * * ctypedef uint32_t VdpVideoSurface # <<<<<<<<<<<<<< * * ctypedef uint32_t VdpOutputSurface */ typedef uint32_t __pyx_t_4cuda_7ccudart_VdpVideoSurface; /* "cuda/ccudart.pxd":1465 * ctypedef uint32_t VdpVideoSurface * * ctypedef uint32_t VdpOutputSurface # <<<<<<<<<<<<<< * * ctypedef cudaLaunchAttributeID cudaStreamAttrID */ typedef uint32_t __pyx_t_4cuda_7ccudart_VdpOutputSurface; /* "cuda/ccuda.pxd":2392 * ctypedef CUGLmap_flags_enum CUGLmap_flags * * ctypedef unsigned int GLenum # <<<<<<<<<<<<<< * * ctypedef unsigned int GLuint */ typedef unsigned int __pyx_t_4cuda_5ccuda_GLenum; /* "cuda/ccuda.pxd":2394 * ctypedef unsigned int GLenum * * ctypedef unsigned int GLuint # <<<<<<<<<<<<<< * * cdef extern from "": */ typedef unsigned int __pyx_t_4cuda_5ccuda_GLuint; /* "cuda/ccuda.pxd":2406 * ctypedef void* EGLStreamKHR * * ctypedef unsigned int EGLint # <<<<<<<<<<<<<< * * cdef extern from "": */ typedef unsigned int __pyx_t_4cuda_5ccuda_EGLint; /* "cuda/ccuda.pxd":2413 * ctypedef void* EGLSyncKHR * * ctypedef uint32_t VdpDevice # <<<<<<<<<<<<<< * * ctypedef unsigned long long VdpGetProcAddress */ typedef uint32_t __pyx_t_4cuda_5ccuda_VdpDevice; /* "cuda/ccuda.pxd":2415 * ctypedef uint32_t VdpDevice * * ctypedef unsigned long long VdpGetProcAddress # <<<<<<<<<<<<<< * * ctypedef uint32_t VdpVideoSurface */ typedef unsigned PY_LONG_LONG __pyx_t_4cuda_5ccuda_VdpGetProcAddress; /* "cuda/ccuda.pxd":2417 * ctypedef unsigned long long VdpGetProcAddress * * ctypedef uint32_t VdpVideoSurface # <<<<<<<<<<<<<< * * ctypedef uint32_t VdpOutputSurface */ typedef uint32_t __pyx_t_4cuda_5ccuda_VdpVideoSurface; /* "cuda/ccuda.pxd":2419 * 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_5ccuda_VdpOutputSurface; /* "cuda/cudart.pyx":22 * import cuda.cuda * * 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_6cudart_signed_char_ptr; /* "cuda/cudart.pyx":23 * * 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_6cudart_unsigned_char_ptr; /* "cuda/cudart.pyx":24 * 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_6cudart_char_ptr; /* "cuda/cudart.pyx":25 * 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_6cudart_short_ptr; /* "cuda/cudart.pyx":26 * 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_6cudart_unsigned_short_ptr; /* "cuda/cudart.pyx":27 * 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_6cudart_int_ptr; /* "cuda/cudart.pyx":28 * 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_6cudart_long_int_ptr; /* "cuda/cudart.pyx":29 * 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_6cudart_long_long_int_ptr; /* "cuda/cudart.pyx":30 * 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_6cudart_unsigned_int_ptr; /* "cuda/cudart.pyx":31 * 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_6cudart_unsigned_long_int_ptr; /* "cuda/cudart.pyx":32 * 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_6cudart_unsigned_long_long_int_ptr; /* "cuda/cudart.pyx":33 * 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_6cudart_uint32_t_ptr; /* "cuda/cudart.pyx":34 * 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_6cudart_uint64_t_ptr; /* "cuda/cudart.pyx":35 * 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_6cudart_int32_t_ptr; /* "cuda/cudart.pyx":36 * 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_6cudart_int64_t_ptr; /* "cuda/cudart.pyx":37 * 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_6cudart_unsigned_ptr; /* "cuda/cudart.pyx":38 * 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_6cudart_unsigned_long_long_ptr; /* "cuda/cudart.pyx":39 * 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 float_ptr */ typedef unsigned PY_LONG_LONG __pyx_t_4cuda_6cudart_long_long_ptr; /* "cuda/cudart.pyx":40 * 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 float_ptr * ctypedef unsigned long long double_ptr */ typedef unsigned PY_LONG_LONG __pyx_t_4cuda_6cudart_size_t_ptr; /* "cuda/cudart.pyx":41 * ctypedef unsigned long long long_long_ptr * ctypedef unsigned long long size_t_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_6cudart_float_ptr; /* "cuda/cudart.pyx":42 * ctypedef unsigned long long size_t_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_6cudart_double_ptr; /* "cuda/cudart.pyx":43 * 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_6cudart_void_ptr; /* #### Code section: complex_type_declarations ### */ /* #### Code section: type_declarations ### */ /*--- Type declarations ---*/ struct __pyx_obj_4cuda_4cuda_CUcontext; struct __pyx_obj_4cuda_4cuda_CUmodule; struct __pyx_obj_4cuda_4cuda_CUfunction; struct __pyx_obj_4cuda_4cuda_CUlibrary; struct __pyx_obj_4cuda_4cuda_CUkernel; struct __pyx_obj_4cuda_4cuda_CUarray; struct __pyx_obj_4cuda_4cuda_CUmipmappedArray; struct __pyx_obj_4cuda_4cuda_CUtexref; struct __pyx_obj_4cuda_4cuda_CUsurfref; struct __pyx_obj_4cuda_4cuda_CUevent; struct __pyx_obj_4cuda_4cuda_CUstream; struct __pyx_obj_4cuda_4cuda_CUgraphicsResource; struct __pyx_obj_4cuda_4cuda_CUexternalMemory; struct __pyx_obj_4cuda_4cuda_CUexternalSemaphore; struct __pyx_obj_4cuda_4cuda_CUgraph; struct __pyx_obj_4cuda_4cuda_CUgraphNode; struct __pyx_obj_4cuda_4cuda_CUgraphExec; struct __pyx_obj_4cuda_4cuda_CUmemoryPool; struct __pyx_obj_4cuda_4cuda_CUuserObject; struct __pyx_obj_4cuda_4cuda_CUgraphDeviceNode; struct __pyx_obj_4cuda_4cuda_CUasyncCallbackHandle; struct __pyx_obj_4cuda_4cuda_CUgreenCtx; struct __pyx_obj_4cuda_4cuda_CUlinkState; struct __pyx_obj_4cuda_4cuda_CUdevResourceDesc; struct __pyx_obj_4cuda_4cuda_CUeglStreamConnection; struct __pyx_obj_4cuda_4cuda_EGLImageKHR; struct __pyx_obj_4cuda_4cuda_EGLStreamKHR; struct __pyx_obj_4cuda_4cuda_EGLSyncKHR; struct __pyx_obj_4cuda_4cuda_CUasyncCallback; struct __pyx_obj_4cuda_4cuda_CUhostFn; struct __pyx_obj_4cuda_4cuda_CUstreamCallback; struct __pyx_obj_4cuda_4cuda_CUoccupancyB2DSize; struct __pyx_obj_4cuda_4cuda_CUuuid_st; struct __pyx_obj_4cuda_4cuda_CUmemFabricHandle_st; struct __pyx_obj_4cuda_4cuda_CUipcEventHandle_st; struct __pyx_obj_4cuda_4cuda_CUipcMemHandle_st; struct __pyx_obj_4cuda_4cuda_CUstreamMemOpWaitValueParams_st; struct __pyx_obj_4cuda_4cuda_CUstreamMemOpWriteValueParams_st; struct __pyx_obj_4cuda_4cuda_CUstreamMemOpFlushRemoteWritesParams_st; struct __pyx_obj_4cuda_4cuda_CUstreamMemOpMemoryBarrierParams_st; struct __pyx_obj_4cuda_4cuda_CUstreamBatchMemOpParams_union; struct __pyx_obj_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st; struct __pyx_obj_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st; struct __pyx_obj_4cuda_4cuda_anon_struct0; struct __pyx_obj_4cuda_4cuda_anon_union2; struct __pyx_obj_4cuda_4cuda_CUasyncNotificationInfo_st; struct __pyx_obj_4cuda_4cuda_CUdevprop_st; struct __pyx_obj_4cuda_4cuda_CUaccessPolicyWindow_st; struct __pyx_obj_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_st; struct __pyx_obj_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v2_st; struct __pyx_obj_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v3_st; struct __pyx_obj_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_st; struct __pyx_obj_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_v2_st; struct __pyx_obj_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_st; struct __pyx_obj_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_v2_st; struct __pyx_obj_4cuda_4cuda_CUDA_CONDITIONAL_NODE_PARAMS; struct __pyx_obj_4cuda_4cuda_CUgraphEdgeData_st; struct __pyx_obj_4cuda_4cuda_CUDA_GRAPH_INSTANTIATE_PARAMS_st; struct __pyx_obj_4cuda_4cuda_CUlaunchMemSyncDomainMap_st; struct __pyx_obj_4cuda_4cuda_anon_struct1; struct __pyx_obj_4cuda_4cuda_anon_struct2; struct __pyx_obj_4cuda_4cuda_anon_struct3; struct __pyx_obj_4cuda_4cuda_anon_struct4; struct __pyx_obj_4cuda_4cuda_CUlaunchAttributeValue_union; struct __pyx_obj_4cuda_4cuda_CUlaunchAttribute_st; struct __pyx_obj_4cuda_4cuda_CUlaunchConfig_st; struct __pyx_obj_4cuda_4cuda_CUexecAffinitySmCount_st; struct __pyx_obj_4cuda_4cuda_anon_union3; struct __pyx_obj_4cuda_4cuda_CUexecAffinityParam_st; struct __pyx_obj_4cuda_4cuda_CUctxCigParam_st; struct __pyx_obj_4cuda_4cuda_CUctxCreateParams_st; struct __pyx_obj_4cuda_4cuda_CUlibraryHostUniversalFunctionAndDataTable_st; struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY2D_st; struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY3D_st; struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY3D_PEER_st; struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY_NODE_PARAMS_st; struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_DESCRIPTOR_st; struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY3D_DESCRIPTOR_st; struct __pyx_obj_4cuda_4cuda_anon_struct5; struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_SPARSE_PROPERTIES_st; struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_MEMORY_REQUIREMENTS_st; struct __pyx_obj_4cuda_4cuda_anon_struct6; struct __pyx_obj_4cuda_4cuda_anon_struct7; struct __pyx_obj_4cuda_4cuda_anon_struct8; struct __pyx_obj_4cuda_4cuda_anon_struct9; struct __pyx_obj_4cuda_4cuda_anon_struct10; struct __pyx_obj_4cuda_4cuda_anon_union4; struct __pyx_obj_4cuda_4cuda_CUDA_RESOURCE_DESC_st; struct __pyx_obj_4cuda_4cuda_CUDA_TEXTURE_DESC_st; struct __pyx_obj_4cuda_4cuda_CUDA_RESOURCE_VIEW_DESC_st; struct __pyx_obj_4cuda_4cuda_CUtensorMap_st; struct __pyx_obj_4cuda_4cuda_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st; struct __pyx_obj_4cuda_4cuda_CUDA_LAUNCH_PARAMS_st; struct __pyx_obj_4cuda_4cuda_anon_struct11; struct __pyx_obj_4cuda_4cuda_anon_union5; struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st; struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st; struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st; struct __pyx_obj_4cuda_4cuda_anon_struct12; struct __pyx_obj_4cuda_4cuda_anon_union6; struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st; struct __pyx_obj_4cuda_4cuda_anon_struct13; struct __pyx_obj_4cuda_4cuda_anon_union7; struct __pyx_obj_4cuda_4cuda_anon_struct14; struct __pyx_obj_4cuda_4cuda_anon_struct15; struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st; struct __pyx_obj_4cuda_4cuda_anon_struct16; struct __pyx_obj_4cuda_4cuda_anon_union8; struct __pyx_obj_4cuda_4cuda_anon_struct17; struct __pyx_obj_4cuda_4cuda_anon_struct18; struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st; struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st; struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st; struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_st; struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st; struct __pyx_obj_4cuda_4cuda_anon_union9; struct __pyx_obj_4cuda_4cuda_anon_struct19; struct __pyx_obj_4cuda_4cuda_anon_struct20; struct __pyx_obj_4cuda_4cuda_anon_union10; struct __pyx_obj_4cuda_4cuda_anon_union11; struct __pyx_obj_4cuda_4cuda_CUarrayMapInfo_st; struct __pyx_obj_4cuda_4cuda_CUmemLocation_st; struct __pyx_obj_4cuda_4cuda_anon_struct21; struct __pyx_obj_4cuda_4cuda_CUmemAllocationProp_st; struct __pyx_obj_4cuda_4cuda_CUmulticastObjectProp_st; struct __pyx_obj_4cuda_4cuda_CUmemAccessDesc_st; struct __pyx_obj_4cuda_4cuda_CUgraphExecUpdateResultInfo_st; struct __pyx_obj_4cuda_4cuda_CUmemPoolProps_st; struct __pyx_obj_4cuda_4cuda_CUmemPoolPtrExportData_st; struct __pyx_obj_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v1_st; struct __pyx_obj_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v2_st; struct __pyx_obj_4cuda_4cuda_CUDA_MEM_FREE_NODE_PARAMS_st; struct __pyx_obj_4cuda_4cuda_CUDA_CHILD_GRAPH_NODE_PARAMS_st; struct __pyx_obj_4cuda_4cuda_CUDA_EVENT_RECORD_NODE_PARAMS_st; struct __pyx_obj_4cuda_4cuda_CUDA_EVENT_WAIT_NODE_PARAMS_st; struct __pyx_obj_4cuda_4cuda_CUgraphNodeParams_st; struct __pyx_obj_4cuda_4cuda_CUdevSmResource_st; struct __pyx_obj_4cuda_4cuda_CUdevResource_st; struct __pyx_obj_4cuda_4cuda_anon_union14; struct __pyx_obj_4cuda_4cuda_CUeglFrame_st; struct __pyx_obj_4cuda_4cuda_CUdeviceptr; struct __pyx_obj_4cuda_4cuda_CUdevice; struct __pyx_obj_4cuda_4cuda_CUtexObject; struct __pyx_obj_4cuda_4cuda_CUsurfObject; struct __pyx_obj_4cuda_4cuda_CUgraphConditionalHandle; struct __pyx_obj_4cuda_4cuda_CUuuid; struct __pyx_obj_4cuda_4cuda_CUmemFabricHandle_v1; struct __pyx_obj_4cuda_4cuda_CUmemFabricHandle; struct __pyx_obj_4cuda_4cuda_CUipcEventHandle_v1; struct __pyx_obj_4cuda_4cuda_CUipcEventHandle; struct __pyx_obj_4cuda_4cuda_CUipcMemHandle_v1; struct __pyx_obj_4cuda_4cuda_CUipcMemHandle; struct __pyx_obj_4cuda_4cuda_CUstreamBatchMemOpParams_v1; struct __pyx_obj_4cuda_4cuda_CUstreamBatchMemOpParams; struct __pyx_obj_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1; struct __pyx_obj_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS; struct __pyx_obj_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2; struct __pyx_obj_4cuda_4cuda_CUasyncNotificationInfo; struct __pyx_obj_4cuda_4cuda_CUdevprop_v1; struct __pyx_obj_4cuda_4cuda_CUdevprop; struct __pyx_obj_4cuda_4cuda_CUaccessPolicyWindow_v1; struct __pyx_obj_4cuda_4cuda_CUaccessPolicyWindow; struct __pyx_obj_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v1; struct __pyx_obj_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v2; struct __pyx_obj_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS; struct __pyx_obj_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v3; struct __pyx_obj_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_v1; struct __pyx_obj_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS; struct __pyx_obj_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_v2; struct __pyx_obj_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_v1; struct __pyx_obj_4cuda_4cuda_CUDA_HOST_NODE_PARAMS; struct __pyx_obj_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_v2; struct __pyx_obj_4cuda_4cuda_CUgraphEdgeData; struct __pyx_obj_4cuda_4cuda_CUDA_GRAPH_INSTANTIATE_PARAMS; struct __pyx_obj_4cuda_4cuda_CUlaunchMemSyncDomainMap; struct __pyx_obj_4cuda_4cuda_CUlaunchAttributeValue; struct __pyx_obj_4cuda_4cuda_CUlaunchAttribute; struct __pyx_obj_4cuda_4cuda_CUlaunchConfig; struct __pyx_obj_4cuda_4cuda_CUkernelNodeAttrValue_v1; struct __pyx_obj_4cuda_4cuda_CUkernelNodeAttrValue; struct __pyx_obj_4cuda_4cuda_CUstreamAttrValue_v1; struct __pyx_obj_4cuda_4cuda_CUstreamAttrValue; struct __pyx_obj_4cuda_4cuda_CUexecAffinitySmCount_v1; struct __pyx_obj_4cuda_4cuda_CUexecAffinitySmCount; struct __pyx_obj_4cuda_4cuda_CUexecAffinityParam_v1; struct __pyx_obj_4cuda_4cuda_CUexecAffinityParam; struct __pyx_obj_4cuda_4cuda_CUctxCigParam; struct __pyx_obj_4cuda_4cuda_CUctxCreateParams; struct __pyx_obj_4cuda_4cuda_CUlibraryHostUniversalFunctionAndDataTable; struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY2D_v2; struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY2D; struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY3D_v2; struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY3D; struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY3D_PEER_v1; struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY3D_PEER; struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY_NODE_PARAMS; struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_DESCRIPTOR_v2; struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_DESCRIPTOR; struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY3D_DESCRIPTOR_v2; struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY3D_DESCRIPTOR; struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_SPARSE_PROPERTIES_v1; struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_SPARSE_PROPERTIES; struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_MEMORY_REQUIREMENTS_v1; struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_MEMORY_REQUIREMENTS; struct __pyx_obj_4cuda_4cuda_CUDA_RESOURCE_DESC_v1; struct __pyx_obj_4cuda_4cuda_CUDA_RESOURCE_DESC; struct __pyx_obj_4cuda_4cuda_CUDA_TEXTURE_DESC_v1; struct __pyx_obj_4cuda_4cuda_CUDA_TEXTURE_DESC; struct __pyx_obj_4cuda_4cuda_CUDA_RESOURCE_VIEW_DESC_v1; struct __pyx_obj_4cuda_4cuda_CUDA_RESOURCE_VIEW_DESC; struct __pyx_obj_4cuda_4cuda_CUtensorMap; struct __pyx_obj_4cuda_4cuda_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1; struct __pyx_obj_4cuda_4cuda_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS; struct __pyx_obj_4cuda_4cuda_CUDA_LAUNCH_PARAMS_v1; struct __pyx_obj_4cuda_4cuda_CUDA_LAUNCH_PARAMS; struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1; struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_HANDLE_DESC; struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1; struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_BUFFER_DESC; struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1; struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC; struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1; struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC; struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1; struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS; struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1; struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS; struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1; struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS; struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2; struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1; struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS; struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2; struct __pyx_obj_4cuda_4cuda_CUmemGenericAllocationHandle; struct __pyx_obj_4cuda_4cuda_CUarrayMapInfo_v1; struct __pyx_obj_4cuda_4cuda_CUarrayMapInfo; struct __pyx_obj_4cuda_4cuda_CUmemLocation_v1; struct __pyx_obj_4cuda_4cuda_CUmemLocation; struct __pyx_obj_4cuda_4cuda_CUmemAllocationProp_v1; struct __pyx_obj_4cuda_4cuda_CUmemAllocationProp; struct __pyx_obj_4cuda_4cuda_CUmulticastObjectProp_v1; struct __pyx_obj_4cuda_4cuda_CUmulticastObjectProp; struct __pyx_obj_4cuda_4cuda_CUmemAccessDesc_v1; struct __pyx_obj_4cuda_4cuda_CUmemAccessDesc; struct __pyx_obj_4cuda_4cuda_CUgraphExecUpdateResultInfo_v1; struct __pyx_obj_4cuda_4cuda_CUgraphExecUpdateResultInfo; struct __pyx_obj_4cuda_4cuda_CUmemPoolProps_v1; struct __pyx_obj_4cuda_4cuda_CUmemPoolProps; struct __pyx_obj_4cuda_4cuda_CUmemPoolPtrExportData_v1; struct __pyx_obj_4cuda_4cuda_CUmemPoolPtrExportData; struct __pyx_obj_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v1; struct __pyx_obj_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS; struct __pyx_obj_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v2; struct __pyx_obj_4cuda_4cuda_CUDA_MEM_FREE_NODE_PARAMS; struct __pyx_obj_4cuda_4cuda_CUDA_CHILD_GRAPH_NODE_PARAMS; struct __pyx_obj_4cuda_4cuda_CUDA_EVENT_RECORD_NODE_PARAMS; struct __pyx_obj_4cuda_4cuda_CUDA_EVENT_WAIT_NODE_PARAMS; struct __pyx_obj_4cuda_4cuda_CUgraphNodeParams; struct __pyx_obj_4cuda_4cuda_CUdevSmResource; struct __pyx_obj_4cuda_4cuda_CUdevResource_v1; struct __pyx_obj_4cuda_4cuda_CUdevResource; struct __pyx_obj_4cuda_4cuda_CUeglFrame_v1; struct __pyx_obj_4cuda_4cuda_CUeglFrame; struct __pyx_obj_4cuda_4cuda_cuuint32_t; struct __pyx_obj_4cuda_4cuda_cuuint64_t; struct __pyx_obj_4cuda_4cuda_CUdeviceptr_v2; struct __pyx_obj_4cuda_4cuda_CUdevice_v1; struct __pyx_obj_4cuda_4cuda_CUtexObject_v1; struct __pyx_obj_4cuda_4cuda_CUsurfObject_v1; struct __pyx_obj_4cuda_4cuda_CUmemGenericAllocationHandle_v1; struct __pyx_obj_4cuda_4cuda_GLenum; struct __pyx_obj_4cuda_4cuda_GLuint; struct __pyx_obj_4cuda_4cuda_EGLint; struct __pyx_obj_4cuda_4cuda_VdpDevice; struct __pyx_obj_4cuda_4cuda_VdpGetProcAddress; struct __pyx_obj_4cuda_4cuda_VdpVideoSurface; struct __pyx_obj_4cuda_4cuda_VdpOutputSurface; struct __pyx_obj_4cuda_4_lib_5utils_HelperKernelParams; struct __pyx_obj_4cuda_4_lib_5utils_HelperInputVoidPtr; struct __pyx_obj_4cuda_4_lib_5utils_HelperCUmemPool_attribute; struct __pyx_obj_4cuda_4_lib_5utils_HelperCUmem_range_attribute; struct __pyx_obj_4cuda_4_lib_5utils_HelperCUpointer_attribute; struct __pyx_obj_4cuda_4_lib_5utils_HelperCUgraphMem_attribute; struct __pyx_obj_4cuda_4_lib_5utils_HelperCUjit_option; struct __pyx_obj_4cuda_4_lib_5utils_HelperCUlibraryOption; struct __pyx_obj_4cuda_4_lib_5utils_HelperCUmemAllocationHandleType; struct __pyx_obj_4cuda_4_lib_5utils_InputVoidPtrPtrHelper; struct __pyx_obj_4cuda_4_lib_5utils_HelperCUcoredumpSettings; struct __pyx_obj_4cuda_6cudart_cudaArray_t; struct __pyx_obj_4cuda_6cudart_cudaArray_const_t; struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_t; struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_const_t; struct __pyx_obj_4cuda_6cudart_cudaGraphicsResource_t; struct __pyx_obj_4cuda_6cudart_cudaExternalMemory_t; struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphore_t; struct __pyx_obj_4cuda_6cudart_cudaKernel_t; struct __pyx_obj_4cuda_6cudart_cudaGraphDeviceNode_t; struct __pyx_obj_4cuda_6cudart_cudaAsyncCallbackHandle_t; struct __pyx_obj_4cuda_6cudart_EGLImageKHR; struct __pyx_obj_4cuda_6cudart_EGLStreamKHR; struct __pyx_obj_4cuda_6cudart_EGLSyncKHR; struct __pyx_obj_4cuda_6cudart_cudaHostFn_t; struct __pyx_obj_4cuda_6cudart_cudaAsyncCallback; struct __pyx_obj_4cuda_6cudart_cudaStreamCallback_t; struct __pyx_obj_4cuda_6cudart_dim3; struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc; struct __pyx_obj_4cuda_6cudart_anon_struct0; struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties; struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements; struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr; struct __pyx_obj_4cuda_6cudart_cudaExtent; struct __pyx_obj_4cuda_6cudart_cudaPos; struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms; struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams; struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms; struct __pyx_obj_4cuda_6cudart_cudaMemsetParams; struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2; struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow; struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams; struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2; struct __pyx_obj_4cuda_6cudart_anon_struct1; struct __pyx_obj_4cuda_6cudart_anon_struct2; struct __pyx_obj_4cuda_6cudart_anon_struct3; struct __pyx_obj_4cuda_6cudart_anon_struct4; struct __pyx_obj_4cuda_6cudart_anon_union0; struct __pyx_obj_4cuda_6cudart_cudaResourceDesc; struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc; struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes; struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes; struct __pyx_obj_4cuda_6cudart_cudaMemLocation; struct __pyx_obj_4cuda_6cudart_cudaMemAccessDesc; struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps; struct __pyx_obj_4cuda_6cudart_cudaMemPoolPtrExportData; struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams; struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2; struct __pyx_obj_4cuda_6cudart_cudaMemFreeNodeParams; struct __pyx_obj_4cuda_6cudart_CUuuid_st; struct __pyx_obj_4cuda_6cudart_cudaDeviceProp; struct __pyx_obj_4cuda_6cudart_cudaIpcEventHandle_st; struct __pyx_obj_4cuda_6cudart_cudaIpcMemHandle_st; struct __pyx_obj_4cuda_6cudart_cudaMemFabricHandle_st; struct __pyx_obj_4cuda_6cudart_anon_struct5; struct __pyx_obj_4cuda_6cudart_anon_union1; struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc; struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryBufferDesc; struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc; struct __pyx_obj_4cuda_6cudart_anon_struct6; struct __pyx_obj_4cuda_6cudart_anon_union2; struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc; struct __pyx_obj_4cuda_6cudart_anon_struct13; struct __pyx_obj_4cuda_6cudart_anon_union5; struct __pyx_obj_4cuda_6cudart_anon_struct14; struct __pyx_obj_4cuda_6cudart_anon_struct15; struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams; struct __pyx_obj_4cuda_6cudart_anon_struct16; struct __pyx_obj_4cuda_6cudart_anon_union6; struct __pyx_obj_4cuda_6cudart_anon_struct17; struct __pyx_obj_4cuda_6cudart_anon_struct18; struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams; struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams; struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2; struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams; struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2; struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams; struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2; struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams; struct __pyx_obj_4cuda_6cudart_cudaChildGraphNodeParams; struct __pyx_obj_4cuda_6cudart_cudaEventRecordNodeParams; struct __pyx_obj_4cuda_6cudart_cudaEventWaitNodeParams; struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams; struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st; struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st; struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st; struct __pyx_obj_4cuda_6cudart_anon_struct19; struct __pyx_obj_4cuda_6cudart_anon_union8; struct __pyx_obj_4cuda_6cudart_cudaGraphKernelNodeUpdate; struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st; struct __pyx_obj_4cuda_6cudart_anon_struct20; struct __pyx_obj_4cuda_6cudart_anon_struct21; struct __pyx_obj_4cuda_6cudart_anon_struct22; struct __pyx_obj_4cuda_6cudart_anon_struct23; struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue; struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute_st; struct __pyx_obj_4cuda_6cudart_anon_struct24; struct __pyx_obj_4cuda_6cudart_anon_union9; struct __pyx_obj_4cuda_6cudart_cudaAsyncNotificationInfo; struct __pyx_obj_4cuda_6cudart_cudaTextureDesc; struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st; struct __pyx_obj_4cuda_6cudart_anon_union10; struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st; struct __pyx_obj_4cuda_6cudart_CUuuid; struct __pyx_obj_4cuda_6cudart_cudaUUID_t; struct __pyx_obj_4cuda_6cudart_cudaIpcEventHandle_t; struct __pyx_obj_4cuda_6cudart_cudaIpcMemHandle_t; struct __pyx_obj_4cuda_6cudart_cudaMemFabricHandle_t; struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData; struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams; struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo; struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap; struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute; struct __pyx_obj_4cuda_6cudart_cudaAsyncNotificationInfo_t; struct __pyx_obj_4cuda_6cudart_cudaStreamAttrValue; struct __pyx_obj_4cuda_6cudart_cudaKernelNodeAttrValue; struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc; struct __pyx_obj_4cuda_6cudart_cudaEglFrame; struct __pyx_obj_4cuda_6cudart_cudaStream_t; struct __pyx_obj_4cuda_6cudart_cudaEvent_t; struct __pyx_obj_4cuda_6cudart_cudaGraph_t; struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t; struct __pyx_obj_4cuda_6cudart_cudaUserObject_t; struct __pyx_obj_4cuda_6cudart_cudaFunction_t; struct __pyx_obj_4cuda_6cudart_cudaMemPool_t; struct __pyx_obj_4cuda_6cudart_cudaGraphExec_t; struct __pyx_obj_4cuda_6cudart_cudaEglStreamConnection; struct __pyx_obj_4cuda_6cudart_cudaGraphConditionalHandle; struct __pyx_obj_4cuda_6cudart_cudaSurfaceObject_t; struct __pyx_obj_4cuda_6cudart_cudaTextureObject_t; struct __pyx_obj_4cuda_6cudart_GLenum; struct __pyx_obj_4cuda_6cudart_GLuint; struct __pyx_obj_4cuda_6cudart_EGLint; struct __pyx_obj_4cuda_6cudart_VdpDevice; struct __pyx_obj_4cuda_6cudart_VdpGetProcAddress; struct __pyx_obj_4cuda_6cudart_VdpVideoSurface; struct __pyx_obj_4cuda_6cudart_VdpOutputSurface; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct__genexpr; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_1_genexpr; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_2_genexpr; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_3_genexpr; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_4_genexpr; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_5_genexpr; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_6_genexpr; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_7_genexpr; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_8_genexpr; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_9_genexpr; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_10_genexpr; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_11_genexpr; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_12_genexpr; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_13_genexpr; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_14_genexpr; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_15_genexpr; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_16_genexpr; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_17_genexpr; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_18_genexpr; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_19_genexpr; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_20_genexpr; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_21_genexpr; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_22_genexpr; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_23_genexpr; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_24_genexpr; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_25_genexpr; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_26_genexpr; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_27_genexpr; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_28_genexpr; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_29_genexpr; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_30_genexpr; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_31_genexpr; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_32_genexpr; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_33_genexpr; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_34_genexpr; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_35_genexpr; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_36_genexpr; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_37_genexpr; struct __pyx_t_4cuda_7ccudart_cudaEglPlaneDesc_st; union __pyx_t_4cuda_7ccudart_anon_union10; struct __pyx_t_4cuda_7ccudart_cudaEglFrame_st; /* "cuda/ccudart.pxd":1475 * ctypedef cudaLaunchAttributeValue cudaKernelNodeAttrValue * * cdef enum cudaEglFrameType_enum: # <<<<<<<<<<<<<< * cudaEglFrameTypeArray = 0 * cudaEglFrameTypePitch = 1 */ enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum { __pyx_e_4cuda_7ccudart_cudaEglFrameTypeArray = 0, __pyx_e_4cuda_7ccudart_cudaEglFrameTypePitch = 1 }; /* "cuda/ccudart.pxd":1481 * ctypedef cudaEglFrameType_enum cudaEglFrameType * * cdef enum cudaEglResourceLocationFlags_enum: # <<<<<<<<<<<<<< * cudaEglResourceLocationSysmem = 0 * cudaEglResourceLocationVidmem = 1 */ enum __pyx_t_4cuda_7ccudart_cudaEglResourceLocationFlags_enum { __pyx_e_4cuda_7ccudart_cudaEglResourceLocationSysmem = 0, __pyx_e_4cuda_7ccudart_cudaEglResourceLocationVidmem = 1 }; /* "cuda/ccudart.pxd":1487 * ctypedef cudaEglResourceLocationFlags_enum cudaEglResourceLocationFlags * * cdef enum cudaEglColorFormat_enum: # <<<<<<<<<<<<<< * cudaEglColorFormatYUV420Planar = 0 * cudaEglColorFormatYUV420SemiPlanar = 1 */ enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum { __pyx_e_4cuda_7ccudart_cudaEglColorFormatYUV420Planar = 0, __pyx_e_4cuda_7ccudart_cudaEglColorFormatYUV420SemiPlanar = 1, __pyx_e_4cuda_7ccudart_cudaEglColorFormatYUV422Planar = 2, __pyx_e_4cuda_7ccudart_cudaEglColorFormatYUV422SemiPlanar = 3, __pyx_e_4cuda_7ccudart_cudaEglColorFormatARGB = 6, __pyx_e_4cuda_7ccudart_cudaEglColorFormatRGBA = 7, __pyx_e_4cuda_7ccudart_cudaEglColorFormatL = 8, __pyx_e_4cuda_7ccudart_cudaEglColorFormatR = 9, __pyx_e_4cuda_7ccudart_cudaEglColorFormatYUV444Planar = 10, __pyx_e_4cuda_7ccudart_cudaEglColorFormatYUV444SemiPlanar = 11, __pyx_e_4cuda_7ccudart_cudaEglColorFormatYUYV422 = 12, __pyx_e_4cuda_7ccudart_cudaEglColorFormatUYVY422 = 13, __pyx_e_4cuda_7ccudart_cudaEglColorFormatABGR = 14, __pyx_e_4cuda_7ccudart_cudaEglColorFormatBGRA = 15, __pyx_e_4cuda_7ccudart_cudaEglColorFormatA = 16, __pyx_e_4cuda_7ccudart_cudaEglColorFormatRG = 17, __pyx_e_4cuda_7ccudart_cudaEglColorFormatAYUV = 18, __pyx_e_4cuda_7ccudart_cudaEglColorFormatYVU444SemiPlanar = 19, __pyx_e_4cuda_7ccudart_cudaEglColorFormatYVU422SemiPlanar = 20, __pyx_e_4cuda_7ccudart_cudaEglColorFormatYVU420SemiPlanar = 21, __pyx_e_4cuda_7ccudart_cudaEglColorFormatY10V10U10_444SemiPlanar = 22, __pyx_e_4cuda_7ccudart_cudaEglColorFormatY10V10U10_420SemiPlanar = 23, __pyx_e_4cuda_7ccudart_cudaEglColorFormatY12V12U12_444SemiPlanar = 24, __pyx_e_4cuda_7ccudart_cudaEglColorFormatY12V12U12_420SemiPlanar = 25, __pyx_e_4cuda_7ccudart_cudaEglColorFormatVYUY_ER = 26, __pyx_e_4cuda_7ccudart_cudaEglColorFormatUYVY_ER = 27, __pyx_e_4cuda_7ccudart_cudaEglColorFormatYUYV_ER = 28, __pyx_e_4cuda_7ccudart_cudaEglColorFormatYVYU_ER = 29, __pyx_e_4cuda_7ccudart_cudaEglColorFormatYUVA_ER = 31, __pyx_e_4cuda_7ccudart_cudaEglColorFormatAYUV_ER = 32, __pyx_e_4cuda_7ccudart_cudaEglColorFormatYUV444Planar_ER = 33, __pyx_e_4cuda_7ccudart_cudaEglColorFormatYUV422Planar_ER = 34, __pyx_e_4cuda_7ccudart_cudaEglColorFormatYUV420Planar_ER = 35, __pyx_e_4cuda_7ccudart_cudaEglColorFormatYUV444SemiPlanar_ER = 36, __pyx_e_4cuda_7ccudart_cudaEglColorFormatYUV422SemiPlanar_ER = 37, __pyx_e_4cuda_7ccudart_cudaEglColorFormatYUV420SemiPlanar_ER = 38, __pyx_e_4cuda_7ccudart_cudaEglColorFormatYVU444Planar_ER = 39, __pyx_e_4cuda_7ccudart_cudaEglColorFormatYVU422Planar_ER = 40, __pyx_e_4cuda_7ccudart_cudaEglColorFormatYVU420Planar_ER = 41, __pyx_e_4cuda_7ccudart_cudaEglColorFormatYVU444SemiPlanar_ER = 42, __pyx_e_4cuda_7ccudart_cudaEglColorFormatYVU422SemiPlanar_ER = 43, __pyx_e_4cuda_7ccudart_cudaEglColorFormatYVU420SemiPlanar_ER = 44, __pyx_e_4cuda_7ccudart_cudaEglColorFormatBayerRGGB = 45, __pyx_e_4cuda_7ccudart_cudaEglColorFormatBayerBGGR = 46, __pyx_e_4cuda_7ccudart_cudaEglColorFormatBayerGRBG = 47, __pyx_e_4cuda_7ccudart_cudaEglColorFormatBayerGBRG = 48, __pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer10RGGB = 49, __pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer10BGGR = 50, __pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer10GRBG = 51, __pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer10GBRG = 52, __pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer12RGGB = 53, __pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer12BGGR = 54, __pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer12GRBG = 55, __pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer12GBRG = 56, __pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer14RGGB = 57, __pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer14BGGR = 58, __pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer14GRBG = 59, __pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer14GBRG = 60, __pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer20RGGB = 61, __pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer20BGGR = 62, __pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer20GRBG = 63, __pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer20GBRG = 64, __pyx_e_4cuda_7ccudart_cudaEglColorFormatYVU444Planar = 65, __pyx_e_4cuda_7ccudart_cudaEglColorFormatYVU422Planar = 66, __pyx_e_4cuda_7ccudart_cudaEglColorFormatYVU420Planar = 67, __pyx_e_4cuda_7ccudart_cudaEglColorFormatBayerIspRGGB = 68, __pyx_e_4cuda_7ccudart_cudaEglColorFormatBayerIspBGGR = 69, __pyx_e_4cuda_7ccudart_cudaEglColorFormatBayerIspGRBG = 70, __pyx_e_4cuda_7ccudart_cudaEglColorFormatBayerIspGBRG = 71, __pyx_e_4cuda_7ccudart_cudaEglColorFormatBayerBCCR = 72, __pyx_e_4cuda_7ccudart_cudaEglColorFormatBayerRCCB = 73, __pyx_e_4cuda_7ccudart_cudaEglColorFormatBayerCRBC = 74, __pyx_e_4cuda_7ccudart_cudaEglColorFormatBayerCBRC = 75, __pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer10CCCC = 76, __pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer12BCCR = 77, __pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer12RCCB = 78, __pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer12CRBC = 79, __pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer12CBRC = 80, __pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer12CCCC = 81, __pyx_e_4cuda_7ccudart_cudaEglColorFormatY = 82, __pyx_e_4cuda_7ccudart_cudaEglColorFormatYUV420SemiPlanar_2020 = 83, __pyx_e_4cuda_7ccudart_cudaEglColorFormatYVU420SemiPlanar_2020 = 84, __pyx_e_4cuda_7ccudart_cudaEglColorFormatYUV420Planar_2020 = 85, __pyx_e_4cuda_7ccudart_cudaEglColorFormatYVU420Planar_2020 = 86, __pyx_e_4cuda_7ccudart_cudaEglColorFormatYUV420SemiPlanar_709 = 87, __pyx_e_4cuda_7ccudart_cudaEglColorFormatYVU420SemiPlanar_709 = 88, __pyx_e_4cuda_7ccudart_cudaEglColorFormatYUV420Planar_709 = 89, __pyx_e_4cuda_7ccudart_cudaEglColorFormatYVU420Planar_709 = 90, __pyx_e_4cuda_7ccudart_cudaEglColorFormatY10V10U10_420SemiPlanar_709 = 91, __pyx_e_4cuda_7ccudart_cudaEglColorFormatY10V10U10_420SemiPlanar_2020 = 92, __pyx_e_4cuda_7ccudart_cudaEglColorFormatY10V10U10_422SemiPlanar_2020 = 93, __pyx_e_4cuda_7ccudart_cudaEglColorFormatY10V10U10_422SemiPlanar = 94, __pyx_e_4cuda_7ccudart_cudaEglColorFormatY10V10U10_422SemiPlanar_709 = 95, __pyx_e_4cuda_7ccudart_cudaEglColorFormatY_ER = 96, __pyx_e_4cuda_7ccudart_cudaEglColorFormatY_709_ER = 97, __pyx_e_4cuda_7ccudart_cudaEglColorFormatY10_ER = 98, __pyx_e_4cuda_7ccudart_cudaEglColorFormatY10_709_ER = 99, __pyx_e_4cuda_7ccudart_cudaEglColorFormatY12_ER = 0x64, __pyx_e_4cuda_7ccudart_cudaEglColorFormatY12_709_ER = 0x65, __pyx_e_4cuda_7ccudart_cudaEglColorFormatYUVA = 0x66, __pyx_e_4cuda_7ccudart_cudaEglColorFormatYVYU = 0x68, __pyx_e_4cuda_7ccudart_cudaEglColorFormatVYUY = 0x69, __pyx_e_4cuda_7ccudart_cudaEglColorFormatY10V10U10_420SemiPlanar_ER = 0x6A, __pyx_e_4cuda_7ccudart_cudaEglColorFormatY10V10U10_420SemiPlanar_709_ER = 0x6B, __pyx_e_4cuda_7ccudart_cudaEglColorFormatY10V10U10_444SemiPlanar_ER = 0x6C, __pyx_e_4cuda_7ccudart_cudaEglColorFormatY10V10U10_444SemiPlanar_709_ER = 0x6D, __pyx_e_4cuda_7ccudart_cudaEglColorFormatY12V12U12_420SemiPlanar_ER = 0x6E, __pyx_e_4cuda_7ccudart_cudaEglColorFormatY12V12U12_420SemiPlanar_709_ER = 0x6F, __pyx_e_4cuda_7ccudart_cudaEglColorFormatY12V12U12_444SemiPlanar_ER = 0x70, __pyx_e_4cuda_7ccudart_cudaEglColorFormatY12V12U12_444SemiPlanar_709_ER = 0x71 }; /* "cuda/ccudart.pxd":1630 * ctypedef CUeglStreamConnection_st* cudaEglStreamConnection * * cdef enum cudaGLDeviceList: # <<<<<<<<<<<<<< * cudaGLDeviceListAll = 1 * cudaGLDeviceListCurrentFrame = 2 */ enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList { __pyx_e_4cuda_7ccudart_cudaGLDeviceListAll = 1, __pyx_e_4cuda_7ccudart_cudaGLDeviceListCurrentFrame = 2, __pyx_e_4cuda_7ccudart_cudaGLDeviceListNextFrame = 3 }; /* "cuda/ccudart.pxd":1635 * cudaGLDeviceListNextFrame = 3 * * cdef enum cudaGLMapFlags: # <<<<<<<<<<<<<< * cudaGLMapFlagsNone = 0 * cudaGLMapFlagsReadOnly = 1 */ enum __pyx_t_4cuda_7ccudart_cudaGLMapFlags { __pyx_e_4cuda_7ccudart_cudaGLMapFlagsNone = 0, __pyx_e_4cuda_7ccudart_cudaGLMapFlagsReadOnly = 1, __pyx_e_4cuda_7ccudart_cudaGLMapFlagsWriteDiscard = 2 }; /* "cuda/ccudart.pxd":2236 * cdef cudaError_t getLocalRuntimeVersion(int* runtimeVersion) except ?cudaErrorCallRequiresNewerDriver nogil * * cdef enum: cudaHostAllocDefault = 0 # <<<<<<<<<<<<<< * * cdef enum: cudaHostAllocPortable = 1 */ enum { __pyx_e_4cuda_7ccudart_cudaHostAllocDefault = 0 }; /* "cuda/ccudart.pxd":2238 * cdef enum: cudaHostAllocDefault = 0 * * cdef enum: cudaHostAllocPortable = 1 # <<<<<<<<<<<<<< * * cdef enum: cudaHostAllocMapped = 2 */ enum { __pyx_e_4cuda_7ccudart_cudaHostAllocPortable = 1 }; /* "cuda/ccudart.pxd":2240 * cdef enum: cudaHostAllocPortable = 1 * * cdef enum: cudaHostAllocMapped = 2 # <<<<<<<<<<<<<< * * cdef enum: cudaHostAllocWriteCombined = 4 */ enum { __pyx_e_4cuda_7ccudart_cudaHostAllocMapped = 2 }; /* "cuda/ccudart.pxd":2242 * cdef enum: cudaHostAllocMapped = 2 * * cdef enum: cudaHostAllocWriteCombined = 4 # <<<<<<<<<<<<<< * * cdef enum: cudaHostRegisterDefault = 0 */ enum { __pyx_e_4cuda_7ccudart_cudaHostAllocWriteCombined = 4 }; /* "cuda/ccudart.pxd":2244 * cdef enum: cudaHostAllocWriteCombined = 4 * * cdef enum: cudaHostRegisterDefault = 0 # <<<<<<<<<<<<<< * * cdef enum: cudaHostRegisterPortable = 1 */ enum { __pyx_e_4cuda_7ccudart_cudaHostRegisterDefault = 0 }; /* "cuda/ccudart.pxd":2246 * cdef enum: cudaHostRegisterDefault = 0 * * cdef enum: cudaHostRegisterPortable = 1 # <<<<<<<<<<<<<< * * cdef enum: cudaHostRegisterMapped = 2 */ enum { __pyx_e_4cuda_7ccudart_cudaHostRegisterPortable = 1 }; /* "cuda/ccudart.pxd":2248 * cdef enum: cudaHostRegisterPortable = 1 * * cdef enum: cudaHostRegisterMapped = 2 # <<<<<<<<<<<<<< * * cdef enum: cudaHostRegisterIoMemory = 4 */ enum { __pyx_e_4cuda_7ccudart_cudaHostRegisterMapped = 2 }; /* "cuda/ccudart.pxd":2250 * cdef enum: cudaHostRegisterMapped = 2 * * cdef enum: cudaHostRegisterIoMemory = 4 # <<<<<<<<<<<<<< * * cdef enum: cudaHostRegisterReadOnly = 8 */ enum { __pyx_e_4cuda_7ccudart_cudaHostRegisterIoMemory = 4 }; /* "cuda/ccudart.pxd":2252 * cdef enum: cudaHostRegisterIoMemory = 4 * * cdef enum: cudaHostRegisterReadOnly = 8 # <<<<<<<<<<<<<< * * cdef enum: cudaPeerAccessDefault = 0 */ enum { __pyx_e_4cuda_7ccudart_cudaHostRegisterReadOnly = 8 }; /* "cuda/ccudart.pxd":2254 * cdef enum: cudaHostRegisterReadOnly = 8 * * cdef enum: cudaPeerAccessDefault = 0 # <<<<<<<<<<<<<< * * cdef enum: cudaStreamDefault = 0 */ enum { __pyx_e_4cuda_7ccudart_cudaPeerAccessDefault = 0 }; /* "cuda/ccudart.pxd":2256 * cdef enum: cudaPeerAccessDefault = 0 * * cdef enum: cudaStreamDefault = 0 # <<<<<<<<<<<<<< * * cdef enum: cudaStreamNonBlocking = 1 */ enum { __pyx_e_4cuda_7ccudart_cudaStreamDefault = 0 }; /* "cuda/ccudart.pxd":2258 * cdef enum: cudaStreamDefault = 0 * * cdef enum: cudaStreamNonBlocking = 1 # <<<<<<<<<<<<<< * * cdef enum: cudaStreamLegacy = 1 */ enum { __pyx_e_4cuda_7ccudart_cudaStreamNonBlocking = 1 }; /* "cuda/ccudart.pxd":2260 * cdef enum: cudaStreamNonBlocking = 1 * * cdef enum: cudaStreamLegacy = 1 # <<<<<<<<<<<<<< * * cdef enum: cudaStreamPerThread = 2 */ enum { __pyx_e_4cuda_7ccudart_cudaStreamLegacy = 1 }; /* "cuda/ccudart.pxd":2262 * cdef enum: cudaStreamLegacy = 1 * * cdef enum: cudaStreamPerThread = 2 # <<<<<<<<<<<<<< * * cdef enum: cudaEventDefault = 0 */ enum { __pyx_e_4cuda_7ccudart_cudaStreamPerThread = 2 }; /* "cuda/ccudart.pxd":2264 * cdef enum: cudaStreamPerThread = 2 * * cdef enum: cudaEventDefault = 0 # <<<<<<<<<<<<<< * * cdef enum: cudaEventBlockingSync = 1 */ enum { __pyx_e_4cuda_7ccudart_cudaEventDefault = 0 }; /* "cuda/ccudart.pxd":2266 * cdef enum: cudaEventDefault = 0 * * cdef enum: cudaEventBlockingSync = 1 # <<<<<<<<<<<<<< * * cdef enum: cudaEventDisableTiming = 2 */ enum { __pyx_e_4cuda_7ccudart_cudaEventBlockingSync = 1 }; /* "cuda/ccudart.pxd":2268 * cdef enum: cudaEventBlockingSync = 1 * * cdef enum: cudaEventDisableTiming = 2 # <<<<<<<<<<<<<< * * cdef enum: cudaEventInterprocess = 4 */ enum { __pyx_e_4cuda_7ccudart_cudaEventDisableTiming = 2 }; /* "cuda/ccudart.pxd":2270 * cdef enum: cudaEventDisableTiming = 2 * * cdef enum: cudaEventInterprocess = 4 # <<<<<<<<<<<<<< * * cdef enum: cudaEventRecordDefault = 0 */ enum { __pyx_e_4cuda_7ccudart_cudaEventInterprocess = 4 }; /* "cuda/ccudart.pxd":2272 * cdef enum: cudaEventInterprocess = 4 * * cdef enum: cudaEventRecordDefault = 0 # <<<<<<<<<<<<<< * * cdef enum: cudaEventRecordExternal = 1 */ enum { __pyx_e_4cuda_7ccudart_cudaEventRecordDefault = 0 }; /* "cuda/ccudart.pxd":2274 * cdef enum: cudaEventRecordDefault = 0 * * cdef enum: cudaEventRecordExternal = 1 # <<<<<<<<<<<<<< * * cdef enum: cudaEventWaitDefault = 0 */ enum { __pyx_e_4cuda_7ccudart_cudaEventRecordExternal = 1 }; /* "cuda/ccudart.pxd":2276 * cdef enum: cudaEventRecordExternal = 1 * * cdef enum: cudaEventWaitDefault = 0 # <<<<<<<<<<<<<< * * cdef enum: cudaEventWaitExternal = 1 */ enum { __pyx_e_4cuda_7ccudart_cudaEventWaitDefault = 0 }; /* "cuda/ccudart.pxd":2278 * cdef enum: cudaEventWaitDefault = 0 * * cdef enum: cudaEventWaitExternal = 1 # <<<<<<<<<<<<<< * * cdef enum: cudaDeviceScheduleAuto = 0 */ enum { __pyx_e_4cuda_7ccudart_cudaEventWaitExternal = 1 }; /* "cuda/ccudart.pxd":2280 * cdef enum: cudaEventWaitExternal = 1 * * cdef enum: cudaDeviceScheduleAuto = 0 # <<<<<<<<<<<<<< * * cdef enum: cudaDeviceScheduleSpin = 1 */ enum { __pyx_e_4cuda_7ccudart_cudaDeviceScheduleAuto = 0 }; /* "cuda/ccudart.pxd":2282 * cdef enum: cudaDeviceScheduleAuto = 0 * * cdef enum: cudaDeviceScheduleSpin = 1 # <<<<<<<<<<<<<< * * cdef enum: cudaDeviceScheduleYield = 2 */ enum { __pyx_e_4cuda_7ccudart_cudaDeviceScheduleSpin = 1 }; /* "cuda/ccudart.pxd":2284 * cdef enum: cudaDeviceScheduleSpin = 1 * * cdef enum: cudaDeviceScheduleYield = 2 # <<<<<<<<<<<<<< * * cdef enum: cudaDeviceScheduleBlockingSync = 4 */ enum { __pyx_e_4cuda_7ccudart_cudaDeviceScheduleYield = 2 }; /* "cuda/ccudart.pxd":2286 * cdef enum: cudaDeviceScheduleYield = 2 * * cdef enum: cudaDeviceScheduleBlockingSync = 4 # <<<<<<<<<<<<<< * * cdef enum: cudaDeviceBlockingSync = 4 */ enum { __pyx_e_4cuda_7ccudart_cudaDeviceScheduleBlockingSync = 4 }; /* "cuda/ccudart.pxd":2288 * cdef enum: cudaDeviceScheduleBlockingSync = 4 * * cdef enum: cudaDeviceBlockingSync = 4 # <<<<<<<<<<<<<< * * cdef enum: cudaDeviceScheduleMask = 7 */ enum { __pyx_e_4cuda_7ccudart_cudaDeviceBlockingSync = 4 }; /* "cuda/ccudart.pxd":2290 * cdef enum: cudaDeviceBlockingSync = 4 * * cdef enum: cudaDeviceScheduleMask = 7 # <<<<<<<<<<<<<< * * cdef enum: cudaDeviceMapHost = 8 */ enum { __pyx_e_4cuda_7ccudart_cudaDeviceScheduleMask = 7 }; /* "cuda/ccudart.pxd":2292 * cdef enum: cudaDeviceScheduleMask = 7 * * cdef enum: cudaDeviceMapHost = 8 # <<<<<<<<<<<<<< * * cdef enum: cudaDeviceLmemResizeToMax = 16 */ enum { __pyx_e_4cuda_7ccudart_cudaDeviceMapHost = 8 }; /* "cuda/ccudart.pxd":2294 * cdef enum: cudaDeviceMapHost = 8 * * cdef enum: cudaDeviceLmemResizeToMax = 16 # <<<<<<<<<<<<<< * * cdef enum: cudaDeviceSyncMemops = 128 */ enum { __pyx_e_4cuda_7ccudart_cudaDeviceLmemResizeToMax = 16 }; /* "cuda/ccudart.pxd":2296 * cdef enum: cudaDeviceLmemResizeToMax = 16 * * cdef enum: cudaDeviceSyncMemops = 128 # <<<<<<<<<<<<<< * * cdef enum: cudaDeviceMask = 255 */ enum { __pyx_e_4cuda_7ccudart_cudaDeviceSyncMemops = 0x80 }; /* "cuda/ccudart.pxd":2298 * cdef enum: cudaDeviceSyncMemops = 128 * * cdef enum: cudaDeviceMask = 255 # <<<<<<<<<<<<<< * * cdef enum: cudaArrayDefault = 0 */ enum { __pyx_e_4cuda_7ccudart_cudaDeviceMask = 0xFF }; /* "cuda/ccudart.pxd":2300 * cdef enum: cudaDeviceMask = 255 * * cdef enum: cudaArrayDefault = 0 # <<<<<<<<<<<<<< * * cdef enum: cudaArrayLayered = 1 */ enum { __pyx_e_4cuda_7ccudart_cudaArrayDefault = 0 }; /* "cuda/ccudart.pxd":2302 * cdef enum: cudaArrayDefault = 0 * * cdef enum: cudaArrayLayered = 1 # <<<<<<<<<<<<<< * * cdef enum: cudaArraySurfaceLoadStore = 2 */ enum { __pyx_e_4cuda_7ccudart_cudaArrayLayered = 1 }; /* "cuda/ccudart.pxd":2304 * cdef enum: cudaArrayLayered = 1 * * cdef enum: cudaArraySurfaceLoadStore = 2 # <<<<<<<<<<<<<< * * cdef enum: cudaArrayCubemap = 4 */ enum { __pyx_e_4cuda_7ccudart_cudaArraySurfaceLoadStore = 2 }; /* "cuda/ccudart.pxd":2306 * cdef enum: cudaArraySurfaceLoadStore = 2 * * cdef enum: cudaArrayCubemap = 4 # <<<<<<<<<<<<<< * * cdef enum: cudaArrayTextureGather = 8 */ enum { __pyx_e_4cuda_7ccudart_cudaArrayCubemap = 4 }; /* "cuda/ccudart.pxd":2308 * cdef enum: cudaArrayCubemap = 4 * * cdef enum: cudaArrayTextureGather = 8 # <<<<<<<<<<<<<< * * cdef enum: cudaArrayColorAttachment = 32 */ enum { __pyx_e_4cuda_7ccudart_cudaArrayTextureGather = 8 }; /* "cuda/ccudart.pxd":2310 * cdef enum: cudaArrayTextureGather = 8 * * cdef enum: cudaArrayColorAttachment = 32 # <<<<<<<<<<<<<< * * cdef enum: cudaArraySparse = 64 */ enum { __pyx_e_4cuda_7ccudart_cudaArrayColorAttachment = 32 }; /* "cuda/ccudart.pxd":2312 * cdef enum: cudaArrayColorAttachment = 32 * * cdef enum: cudaArraySparse = 64 # <<<<<<<<<<<<<< * * cdef enum: cudaArrayDeferredMapping = 128 */ enum { __pyx_e_4cuda_7ccudart_cudaArraySparse = 64 }; /* "cuda/ccudart.pxd":2314 * cdef enum: cudaArraySparse = 64 * * cdef enum: cudaArrayDeferredMapping = 128 # <<<<<<<<<<<<<< * * cdef enum: cudaIpcMemLazyEnablePeerAccess = 1 */ enum { __pyx_e_4cuda_7ccudart_cudaArrayDeferredMapping = 0x80 }; /* "cuda/ccudart.pxd":2316 * cdef enum: cudaArrayDeferredMapping = 128 * * cdef enum: cudaIpcMemLazyEnablePeerAccess = 1 # <<<<<<<<<<<<<< * * cdef enum: cudaMemAttachGlobal = 1 */ enum { __pyx_e_4cuda_7ccudart_cudaIpcMemLazyEnablePeerAccess = 1 }; /* "cuda/ccudart.pxd":2318 * cdef enum: cudaIpcMemLazyEnablePeerAccess = 1 * * cdef enum: cudaMemAttachGlobal = 1 # <<<<<<<<<<<<<< * * cdef enum: cudaMemAttachHost = 2 */ enum { __pyx_e_4cuda_7ccudart_cudaMemAttachGlobal = 1 }; /* "cuda/ccudart.pxd":2320 * cdef enum: cudaMemAttachGlobal = 1 * * cdef enum: cudaMemAttachHost = 2 # <<<<<<<<<<<<<< * * cdef enum: cudaMemAttachSingle = 4 */ enum { __pyx_e_4cuda_7ccudart_cudaMemAttachHost = 2 }; /* "cuda/ccudart.pxd":2322 * cdef enum: cudaMemAttachHost = 2 * * cdef enum: cudaMemAttachSingle = 4 # <<<<<<<<<<<<<< * * cdef enum: cudaOccupancyDefault = 0 */ enum { __pyx_e_4cuda_7ccudart_cudaMemAttachSingle = 4 }; /* "cuda/ccudart.pxd":2324 * cdef enum: cudaMemAttachSingle = 4 * * cdef enum: cudaOccupancyDefault = 0 # <<<<<<<<<<<<<< * * cdef enum: cudaOccupancyDisableCachingOverride = 1 */ enum { __pyx_e_4cuda_7ccudart_cudaOccupancyDefault = 0 }; /* "cuda/ccudart.pxd":2326 * cdef enum: cudaOccupancyDefault = 0 * * cdef enum: cudaOccupancyDisableCachingOverride = 1 # <<<<<<<<<<<<<< * * cdef enum: cudaCpuDeviceId = -1 */ enum { __pyx_e_4cuda_7ccudart_cudaOccupancyDisableCachingOverride = 1 }; /* "cuda/ccudart.pxd":2328 * cdef enum: cudaOccupancyDisableCachingOverride = 1 * * cdef enum: cudaCpuDeviceId = -1 # <<<<<<<<<<<<<< * * cdef enum: cudaInvalidDeviceId = -2 */ enum { __pyx_e_4cuda_7ccudart_cudaCpuDeviceId = -1L }; /* "cuda/ccudart.pxd":2330 * cdef enum: cudaCpuDeviceId = -1 * * cdef enum: cudaInvalidDeviceId = -2 # <<<<<<<<<<<<<< * * cdef enum: cudaInitDeviceFlagsAreValid = 1 */ enum { __pyx_e_4cuda_7ccudart_cudaInvalidDeviceId = -2L }; /* "cuda/ccudart.pxd":2332 * cdef enum: cudaInvalidDeviceId = -2 * * cdef enum: cudaInitDeviceFlagsAreValid = 1 # <<<<<<<<<<<<<< * * cdef enum: cudaCooperativeLaunchMultiDeviceNoPreSync = 1 */ enum { __pyx_e_4cuda_7ccudart_cudaInitDeviceFlagsAreValid = 1 }; /* "cuda/ccudart.pxd":2334 * cdef enum: cudaInitDeviceFlagsAreValid = 1 * * cdef enum: cudaCooperativeLaunchMultiDeviceNoPreSync = 1 # <<<<<<<<<<<<<< * * cdef enum: cudaCooperativeLaunchMultiDeviceNoPostSync = 2 */ enum { __pyx_e_4cuda_7ccudart_cudaCooperativeLaunchMultiDeviceNoPreSync = 1 }; /* "cuda/ccudart.pxd":2336 * cdef enum: cudaCooperativeLaunchMultiDeviceNoPreSync = 1 * * cdef enum: cudaCooperativeLaunchMultiDeviceNoPostSync = 2 # <<<<<<<<<<<<<< * * cdef enum: cudaArraySparsePropertiesSingleMipTail = 1 */ enum { __pyx_e_4cuda_7ccudart_cudaCooperativeLaunchMultiDeviceNoPostSync = 2 }; /* "cuda/ccudart.pxd":2338 * cdef enum: cudaCooperativeLaunchMultiDeviceNoPostSync = 2 * * cdef enum: cudaArraySparsePropertiesSingleMipTail = 1 # <<<<<<<<<<<<<< * * cdef enum: CUDA_IPC_HANDLE_SIZE = 64 */ enum { __pyx_e_4cuda_7ccudart_cudaArraySparsePropertiesSingleMipTail = 1 }; /* "cuda/ccudart.pxd":2340 * cdef enum: cudaArraySparsePropertiesSingleMipTail = 1 * * cdef enum: CUDA_IPC_HANDLE_SIZE = 64 # <<<<<<<<<<<<<< * * cdef enum: cudaExternalMemoryDedicated = 1 */ enum { __pyx_e_4cuda_7ccudart_CUDA_IPC_HANDLE_SIZE = 64 }; /* "cuda/ccudart.pxd":2342 * cdef enum: CUDA_IPC_HANDLE_SIZE = 64 * * cdef enum: cudaExternalMemoryDedicated = 1 # <<<<<<<<<<<<<< * * cdef enum: cudaExternalSemaphoreSignalSkipNvSciBufMemSync = 1 */ enum { __pyx_e_4cuda_7ccudart_cudaExternalMemoryDedicated = 1 }; /* "cuda/ccudart.pxd":2344 * cdef enum: cudaExternalMemoryDedicated = 1 * * cdef enum: cudaExternalSemaphoreSignalSkipNvSciBufMemSync = 1 # <<<<<<<<<<<<<< * * cdef enum: cudaExternalSemaphoreWaitSkipNvSciBufMemSync = 2 */ enum { __pyx_e_4cuda_7ccudart_cudaExternalSemaphoreSignalSkipNvSciBufMemSync = 1 }; /* "cuda/ccudart.pxd":2346 * cdef enum: cudaExternalSemaphoreSignalSkipNvSciBufMemSync = 1 * * cdef enum: cudaExternalSemaphoreWaitSkipNvSciBufMemSync = 2 # <<<<<<<<<<<<<< * * cdef enum: cudaNvSciSyncAttrSignal = 1 */ enum { __pyx_e_4cuda_7ccudart_cudaExternalSemaphoreWaitSkipNvSciBufMemSync = 2 }; /* "cuda/ccudart.pxd":2348 * cdef enum: cudaExternalSemaphoreWaitSkipNvSciBufMemSync = 2 * * cdef enum: cudaNvSciSyncAttrSignal = 1 # <<<<<<<<<<<<<< * * cdef enum: cudaNvSciSyncAttrWait = 2 */ enum { __pyx_e_4cuda_7ccudart_cudaNvSciSyncAttrSignal = 1 }; /* "cuda/ccudart.pxd":2350 * cdef enum: cudaNvSciSyncAttrSignal = 1 * * cdef enum: cudaNvSciSyncAttrWait = 2 # <<<<<<<<<<<<<< * * cdef enum: cudaGraphKernelNodePortDefault = 0 */ enum { __pyx_e_4cuda_7ccudart_cudaNvSciSyncAttrWait = 2 }; /* "cuda/ccudart.pxd":2352 * cdef enum: cudaNvSciSyncAttrWait = 2 * * cdef enum: cudaGraphKernelNodePortDefault = 0 # <<<<<<<<<<<<<< * * cdef enum: cudaGraphKernelNodePortProgrammatic = 1 */ enum { __pyx_e_4cuda_7ccudart_cudaGraphKernelNodePortDefault = 0 }; /* "cuda/ccudart.pxd":2354 * cdef enum: cudaGraphKernelNodePortDefault = 0 * * cdef enum: cudaGraphKernelNodePortProgrammatic = 1 # <<<<<<<<<<<<<< * * cdef enum: cudaGraphKernelNodePortLaunchCompletion = 2 */ enum { __pyx_e_4cuda_7ccudart_cudaGraphKernelNodePortProgrammatic = 1 }; /* "cuda/ccudart.pxd":2356 * cdef enum: cudaGraphKernelNodePortProgrammatic = 1 * * cdef enum: cudaGraphKernelNodePortLaunchCompletion = 2 # <<<<<<<<<<<<<< * * cdef enum: cudaStreamAttributeAccessPolicyWindow = 1 */ enum { __pyx_e_4cuda_7ccudart_cudaGraphKernelNodePortLaunchCompletion = 2 }; /* "cuda/ccudart.pxd":2358 * cdef enum: cudaGraphKernelNodePortLaunchCompletion = 2 * * cdef enum: cudaStreamAttributeAccessPolicyWindow = 1 # <<<<<<<<<<<<<< * * cdef enum: cudaStreamAttributeSynchronizationPolicy = 3 */ enum { __pyx_e_4cuda_7ccudart_cudaStreamAttributeAccessPolicyWindow = 1 }; /* "cuda/ccudart.pxd":2360 * cdef enum: cudaStreamAttributeAccessPolicyWindow = 1 * * cdef enum: cudaStreamAttributeSynchronizationPolicy = 3 # <<<<<<<<<<<<<< * * cdef enum: cudaStreamAttributeMemSyncDomainMap = 9 */ enum { __pyx_e_4cuda_7ccudart_cudaStreamAttributeSynchronizationPolicy = 3 }; /* "cuda/ccudart.pxd":2362 * cdef enum: cudaStreamAttributeSynchronizationPolicy = 3 * * cdef enum: cudaStreamAttributeMemSyncDomainMap = 9 # <<<<<<<<<<<<<< * * cdef enum: cudaStreamAttributeMemSyncDomain = 10 */ enum { __pyx_e_4cuda_7ccudart_cudaStreamAttributeMemSyncDomainMap = 9 }; /* "cuda/ccudart.pxd":2364 * cdef enum: cudaStreamAttributeMemSyncDomainMap = 9 * * cdef enum: cudaStreamAttributeMemSyncDomain = 10 # <<<<<<<<<<<<<< * * cdef enum: cudaStreamAttributePriority = 8 */ enum { __pyx_e_4cuda_7ccudart_cudaStreamAttributeMemSyncDomain = 10 }; /* "cuda/ccudart.pxd":2366 * cdef enum: cudaStreamAttributeMemSyncDomain = 10 * * cdef enum: cudaStreamAttributePriority = 8 # <<<<<<<<<<<<<< * * cdef enum: cudaKernelNodeAttributeAccessPolicyWindow = 1 */ enum { __pyx_e_4cuda_7ccudart_cudaStreamAttributePriority = 8 }; /* "cuda/ccudart.pxd":2368 * cdef enum: cudaStreamAttributePriority = 8 * * cdef enum: cudaKernelNodeAttributeAccessPolicyWindow = 1 # <<<<<<<<<<<<<< * * cdef enum: cudaKernelNodeAttributeCooperative = 2 */ enum { __pyx_e_4cuda_7ccudart_cudaKernelNodeAttributeAccessPolicyWindow = 1 }; /* "cuda/ccudart.pxd":2370 * cdef enum: cudaKernelNodeAttributeAccessPolicyWindow = 1 * * cdef enum: cudaKernelNodeAttributeCooperative = 2 # <<<<<<<<<<<<<< * * cdef enum: cudaKernelNodeAttributePriority = 8 */ enum { __pyx_e_4cuda_7ccudart_cudaKernelNodeAttributeCooperative = 2 }; /* "cuda/ccudart.pxd":2372 * cdef enum: cudaKernelNodeAttributeCooperative = 2 * * cdef enum: cudaKernelNodeAttributePriority = 8 # <<<<<<<<<<<<<< * * cdef enum: cudaKernelNodeAttributeClusterDimension = 4 */ enum { __pyx_e_4cuda_7ccudart_cudaKernelNodeAttributePriority = 8 }; /* "cuda/ccudart.pxd":2374 * cdef enum: cudaKernelNodeAttributePriority = 8 * * cdef enum: cudaKernelNodeAttributeClusterDimension = 4 # <<<<<<<<<<<<<< * * cdef enum: cudaKernelNodeAttributeClusterSchedulingPolicyPreference = 5 */ enum { __pyx_e_4cuda_7ccudart_cudaKernelNodeAttributeClusterDimension = 4 }; /* "cuda/ccudart.pxd":2376 * cdef enum: cudaKernelNodeAttributeClusterDimension = 4 * * cdef enum: cudaKernelNodeAttributeClusterSchedulingPolicyPreference = 5 # <<<<<<<<<<<<<< * * cdef enum: cudaKernelNodeAttributeMemSyncDomainMap = 9 */ enum { __pyx_e_4cuda_7ccudart_cudaKernelNodeAttributeClusterSchedulingPolicyPreference = 5 }; /* "cuda/ccudart.pxd":2378 * cdef enum: cudaKernelNodeAttributeClusterSchedulingPolicyPreference = 5 * * cdef enum: cudaKernelNodeAttributeMemSyncDomainMap = 9 # <<<<<<<<<<<<<< * * cdef enum: cudaKernelNodeAttributeMemSyncDomain = 10 */ enum { __pyx_e_4cuda_7ccudart_cudaKernelNodeAttributeMemSyncDomainMap = 9 }; /* "cuda/ccudart.pxd":2380 * cdef enum: cudaKernelNodeAttributeMemSyncDomainMap = 9 * * cdef enum: cudaKernelNodeAttributeMemSyncDomain = 10 # <<<<<<<<<<<<<< * * cdef enum: cudaKernelNodeAttributePreferredSharedMemoryCarveout = 14 */ enum { __pyx_e_4cuda_7ccudart_cudaKernelNodeAttributeMemSyncDomain = 10 }; /* "cuda/ccudart.pxd":2382 * cdef enum: cudaKernelNodeAttributeMemSyncDomain = 10 * * cdef enum: cudaKernelNodeAttributePreferredSharedMemoryCarveout = 14 # <<<<<<<<<<<<<< * * cdef enum: cudaKernelNodeAttributeDeviceUpdatableKernelNode = 13 */ enum { __pyx_e_4cuda_7ccudart_cudaKernelNodeAttributePreferredSharedMemoryCarveout = 14 }; /* "cuda/ccudart.pxd":2384 * cdef enum: cudaKernelNodeAttributePreferredSharedMemoryCarveout = 14 * * cdef enum: cudaKernelNodeAttributeDeviceUpdatableKernelNode = 13 # <<<<<<<<<<<<<< * * cdef enum: cudaSurfaceType1D = 1 */ enum { __pyx_e_4cuda_7ccudart_cudaKernelNodeAttributeDeviceUpdatableKernelNode = 13 }; /* "cuda/ccudart.pxd":2386 * cdef enum: cudaKernelNodeAttributeDeviceUpdatableKernelNode = 13 * * cdef enum: cudaSurfaceType1D = 1 # <<<<<<<<<<<<<< * * cdef enum: cudaSurfaceType2D = 2 */ enum { __pyx_e_4cuda_7ccudart_cudaSurfaceType1D = 1 }; /* "cuda/ccudart.pxd":2388 * cdef enum: cudaSurfaceType1D = 1 * * cdef enum: cudaSurfaceType2D = 2 # <<<<<<<<<<<<<< * * cdef enum: cudaSurfaceType3D = 3 */ enum { __pyx_e_4cuda_7ccudart_cudaSurfaceType2D = 2 }; /* "cuda/ccudart.pxd":2390 * cdef enum: cudaSurfaceType2D = 2 * * cdef enum: cudaSurfaceType3D = 3 # <<<<<<<<<<<<<< * * cdef enum: cudaSurfaceTypeCubemap = 12 */ enum { __pyx_e_4cuda_7ccudart_cudaSurfaceType3D = 3 }; /* "cuda/ccudart.pxd":2392 * cdef enum: cudaSurfaceType3D = 3 * * cdef enum: cudaSurfaceTypeCubemap = 12 # <<<<<<<<<<<<<< * * cdef enum: cudaSurfaceType1DLayered = 241 */ enum { __pyx_e_4cuda_7ccudart_cudaSurfaceTypeCubemap = 12 }; /* "cuda/ccudart.pxd":2394 * cdef enum: cudaSurfaceTypeCubemap = 12 * * cdef enum: cudaSurfaceType1DLayered = 241 # <<<<<<<<<<<<<< * * cdef enum: cudaSurfaceType2DLayered = 242 */ enum { __pyx_e_4cuda_7ccudart_cudaSurfaceType1DLayered = 0xF1 }; /* "cuda/ccudart.pxd":2396 * cdef enum: cudaSurfaceType1DLayered = 241 * * cdef enum: cudaSurfaceType2DLayered = 242 # <<<<<<<<<<<<<< * * cdef enum: cudaSurfaceTypeCubemapLayered = 252 */ enum { __pyx_e_4cuda_7ccudart_cudaSurfaceType2DLayered = 0xF2 }; /* "cuda/ccudart.pxd":2398 * cdef enum: cudaSurfaceType2DLayered = 242 * * cdef enum: cudaSurfaceTypeCubemapLayered = 252 # <<<<<<<<<<<<<< * * cdef enum: cudaTextureType1D = 1 */ enum { __pyx_e_4cuda_7ccudart_cudaSurfaceTypeCubemapLayered = 0xFC }; /* "cuda/ccudart.pxd":2400 * cdef enum: cudaSurfaceTypeCubemapLayered = 252 * * cdef enum: cudaTextureType1D = 1 # <<<<<<<<<<<<<< * * cdef enum: cudaTextureType2D = 2 */ enum { __pyx_e_4cuda_7ccudart_cudaTextureType1D = 1 }; /* "cuda/ccudart.pxd":2402 * cdef enum: cudaTextureType1D = 1 * * cdef enum: cudaTextureType2D = 2 # <<<<<<<<<<<<<< * * cdef enum: cudaTextureType3D = 3 */ enum { __pyx_e_4cuda_7ccudart_cudaTextureType2D = 2 }; /* "cuda/ccudart.pxd":2404 * cdef enum: cudaTextureType2D = 2 * * cdef enum: cudaTextureType3D = 3 # <<<<<<<<<<<<<< * * cdef enum: cudaTextureTypeCubemap = 12 */ enum { __pyx_e_4cuda_7ccudart_cudaTextureType3D = 3 }; /* "cuda/ccudart.pxd":2406 * cdef enum: cudaTextureType3D = 3 * * cdef enum: cudaTextureTypeCubemap = 12 # <<<<<<<<<<<<<< * * cdef enum: cudaTextureType1DLayered = 241 */ enum { __pyx_e_4cuda_7ccudart_cudaTextureTypeCubemap = 12 }; /* "cuda/ccudart.pxd":2408 * cdef enum: cudaTextureTypeCubemap = 12 * * cdef enum: cudaTextureType1DLayered = 241 # <<<<<<<<<<<<<< * * cdef enum: cudaTextureType2DLayered = 242 */ enum { __pyx_e_4cuda_7ccudart_cudaTextureType1DLayered = 0xF1 }; /* "cuda/ccudart.pxd":2410 * cdef enum: cudaTextureType1DLayered = 241 * * cdef enum: cudaTextureType2DLayered = 242 # <<<<<<<<<<<<<< * * cdef enum: cudaTextureTypeCubemapLayered = 252 */ enum { __pyx_e_4cuda_7ccudart_cudaTextureType2DLayered = 0xF2 }; /* "cuda/ccudart.pxd":2412 * cdef enum: cudaTextureType2DLayered = 242 * * cdef enum: cudaTextureTypeCubemapLayered = 252 # <<<<<<<<<<<<<< * * cdef enum: CUDART_VERSION = 12060 */ enum { __pyx_e_4cuda_7ccudart_cudaTextureTypeCubemapLayered = 0xFC }; /* "cuda/ccudart.pxd":2414 * cdef enum: cudaTextureTypeCubemapLayered = 252 * * cdef enum: CUDART_VERSION = 12060 # <<<<<<<<<<<<<< * * cdef enum: __CUDART_API_VERSION = 12060 */ enum { __pyx_e_4cuda_7ccudart_CUDART_VERSION = 0x2F1C }; /* "cuda/ccudart.pxd":2416 * cdef enum: CUDART_VERSION = 12060 * * cdef enum: __CUDART_API_VERSION = 12060 # <<<<<<<<<<<<<< * * cdef enum: CUDA_EGL_MAX_PLANES = 3 */ enum { __pyx_e_4cuda_7ccudart___CUDART_API_VERSION = 0x2F1C }; /* "cuda/ccudart.pxd":2418 * cdef enum: __CUDART_API_VERSION = 12060 * * cdef enum: CUDA_EGL_MAX_PLANES = 3 # <<<<<<<<<<<<<< */ enum { __pyx_e_4cuda_7ccudart_CUDA_EGL_MAX_PLANES = 3 }; /* "cuda/ccudart.pxd":1445 * cdef struct void: * pass * ctypedef void* EGLImageKHR # <<<<<<<<<<<<<< * * cdef extern from "": */ typedef void *__pyx_t_4cuda_7ccudart_EGLImageKHR; /* "cuda/ccudart.pxd":1450 * cdef struct void: * pass * ctypedef void* EGLStreamKHR # <<<<<<<<<<<<<< * * ctypedef unsigned int EGLint */ typedef void *__pyx_t_4cuda_7ccudart_EGLStreamKHR; /* "cuda/ccudart.pxd":1457 * cdef struct void: * pass * ctypedef void* EGLSyncKHR # <<<<<<<<<<<<<< * * ctypedef uint32_t VdpDevice */ typedef void *__pyx_t_4cuda_7ccudart_EGLSyncKHR; /* "cuda/ccudart.pxd":1467 * ctypedef uint32_t VdpOutputSurface * * ctypedef cudaLaunchAttributeID cudaStreamAttrID # <<<<<<<<<<<<<< * * ctypedef cudaLaunchAttributeID cudaKernelNodeAttrID */ typedef enum cudaLaunchAttributeID __pyx_t_4cuda_7ccudart_cudaStreamAttrID; /* "cuda/ccudart.pxd":1469 * ctypedef cudaLaunchAttributeID cudaStreamAttrID * * ctypedef cudaLaunchAttributeID cudaKernelNodeAttrID # <<<<<<<<<<<<<< * * ctypedef cudaLaunchAttributeValue cudaStreamAttrValue */ typedef enum cudaLaunchAttributeID __pyx_t_4cuda_7ccudart_cudaKernelNodeAttrID; /* "cuda/ccudart.pxd":1471 * ctypedef cudaLaunchAttributeID cudaKernelNodeAttrID * * ctypedef cudaLaunchAttributeValue cudaStreamAttrValue # <<<<<<<<<<<<<< * * ctypedef cudaLaunchAttributeValue cudaKernelNodeAttrValue */ typedef union cudaLaunchAttributeValue __pyx_t_4cuda_7ccudart_cudaStreamAttrValue; /* "cuda/ccudart.pxd":1473 * ctypedef cudaLaunchAttributeValue cudaStreamAttrValue * * ctypedef cudaLaunchAttributeValue cudaKernelNodeAttrValue # <<<<<<<<<<<<<< * * cdef enum cudaEglFrameType_enum: */ typedef union cudaLaunchAttributeValue __pyx_t_4cuda_7ccudart_cudaKernelNodeAttrValue; /* "cuda/ccudart.pxd":1479 * cudaEglFrameTypePitch = 1 * * ctypedef cudaEglFrameType_enum cudaEglFrameType # <<<<<<<<<<<<<< * * cdef enum cudaEglResourceLocationFlags_enum: */ typedef enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum __pyx_t_4cuda_7ccudart_cudaEglFrameType; /* "cuda/ccudart.pxd":1485 * cudaEglResourceLocationVidmem = 1 * * ctypedef cudaEglResourceLocationFlags_enum cudaEglResourceLocationFlags # <<<<<<<<<<<<<< * * cdef enum cudaEglColorFormat_enum: */ typedef enum __pyx_t_4cuda_7ccudart_cudaEglResourceLocationFlags_enum __pyx_t_4cuda_7ccudart_cudaEglResourceLocationFlags; /* "cuda/ccudart.pxd":1599 * cudaEglColorFormatY12V12U12_444SemiPlanar_709_ER = 113 * * ctypedef cudaEglColorFormat_enum cudaEglColorFormat # <<<<<<<<<<<<<< * * cdef struct cudaEglPlaneDesc_st: */ typedef enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat; /* "cuda/ccudart.pxd":1601 * ctypedef cudaEglColorFormat_enum cudaEglColorFormat * * cdef struct cudaEglPlaneDesc_st: # <<<<<<<<<<<<<< * unsigned int width * unsigned int height */ struct __pyx_t_4cuda_7ccudart_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/ccudart.pxd":1610 * unsigned int reserved[4] * * ctypedef cudaEglPlaneDesc_st cudaEglPlaneDesc # <<<<<<<<<<<<<< * * cdef union anon_union10: */ typedef struct __pyx_t_4cuda_7ccudart_cudaEglPlaneDesc_st __pyx_t_4cuda_7ccudart_cudaEglPlaneDesc; /* "cuda/ccudart.pxd":1612 * ctypedef cudaEglPlaneDesc_st cudaEglPlaneDesc * * cdef union anon_union10: # <<<<<<<<<<<<<< * cudaArray_t pArray[3] * cudaPitchedPtr pPitch[3] */ union __pyx_t_4cuda_7ccudart_anon_union10 { cudaArray_t pArray[3]; struct cudaPitchedPtr pPitch[3]; }; /* "cuda/ccudart.pxd":1616 * cudaPitchedPtr pPitch[3] * * cdef struct cudaEglFrame_st: # <<<<<<<<<<<<<< * anon_union10 frame * cudaEglPlaneDesc planeDesc[3] */ struct __pyx_t_4cuda_7ccudart_cudaEglFrame_st { union __pyx_t_4cuda_7ccudart_anon_union10 frame; __pyx_t_4cuda_7ccudart_cudaEglPlaneDesc planeDesc[3]; unsigned int planeCount; __pyx_t_4cuda_7ccudart_cudaEglFrameType frameType; __pyx_t_4cuda_7ccudart_cudaEglColorFormat eglColorFormat; }; /* "cuda/ccudart.pxd":1623 * cudaEglColorFormat eglColorFormat * * ctypedef cudaEglFrame_st cudaEglFrame # <<<<<<<<<<<<<< * * cdef extern from "": */ typedef struct __pyx_t_4cuda_7ccudart_cudaEglFrame_st __pyx_t_4cuda_7ccudart_cudaEglFrame; /* "cuda/ccudart.pxd":1628 * cdef struct CUeglStreamConnection_st: * pass * ctypedef CUeglStreamConnection_st* cudaEglStreamConnection # <<<<<<<<<<<<<< * * cdef enum cudaGLDeviceList: */ typedef struct CUeglStreamConnection_st *__pyx_t_4cuda_7ccudart_cudaEglStreamConnection; union __pyx_t_4cuda_5ccuda_anon_union14; struct __pyx_t_4cuda_5ccuda_CUeglFrame_st; /* "cuda/ccuda.pxd":2222 * 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_5ccuda_CUeglFrameType_enum { __pyx_e_4cuda_5ccuda_CU_EGL_FRAME_TYPE_ARRAY = 0, __pyx_e_4cuda_5ccuda_CU_EGL_FRAME_TYPE_PITCH = 1 }; /* "cuda/ccuda.pxd":2228 * ctypedef CUeglFrameType_enum CUeglFrameType * * cdef enum CUeglResourceLocationFlags_enum: # <<<<<<<<<<<<<< * CU_EGL_RESOURCE_LOCATION_SYSMEM = 0 * CU_EGL_RESOURCE_LOCATION_VIDMEM = 1 */ enum __pyx_t_4cuda_5ccuda_CUeglResourceLocationFlags_enum { __pyx_e_4cuda_5ccuda_CU_EGL_RESOURCE_LOCATION_SYSMEM = 0, __pyx_e_4cuda_5ccuda_CU_EGL_RESOURCE_LOCATION_VIDMEM = 1 }; /* "cuda/ccuda.pxd":2234 * 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_5ccuda_CUeglColorFormat_enum { __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YUV420_PLANAR = 0, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR = 1, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YUV422_PLANAR = 2, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YUV422_SEMIPLANAR = 3, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_RGB = 4, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_BGR = 5, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_ARGB = 6, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_RGBA = 7, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_L = 8, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_R = 9, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YUV444_PLANAR = 10, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YUV444_SEMIPLANAR = 11, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YUYV_422 = 12, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_UYVY_422 = 13, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_ABGR = 14, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_BGRA = 15, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_A = 16, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_RG = 17, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_AYUV = 18, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YVU444_SEMIPLANAR = 19, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YVU422_SEMIPLANAR = 20, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR = 21, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR = 22, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR = 23, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR = 24, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR = 25, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_VYUY_ER = 26, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_UYVY_ER = 27, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YUYV_ER = 28, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YVYU_ER = 29, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YUV_ER = 30, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YUVA_ER = 31, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_AYUV_ER = 32, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YUV444_PLANAR_ER = 33, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YUV422_PLANAR_ER = 34, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YUV420_PLANAR_ER = 35, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YUV444_SEMIPLANAR_ER = 36, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YUV422_SEMIPLANAR_ER = 37, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_ER = 38, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YVU444_PLANAR_ER = 39, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YVU422_PLANAR_ER = 40, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YVU420_PLANAR_ER = 41, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YVU444_SEMIPLANAR_ER = 42, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YVU422_SEMIPLANAR_ER = 43, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_ER = 44, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_BAYER_RGGB = 45, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_BAYER_BGGR = 46, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_BAYER_GRBG = 47, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_BAYER_GBRG = 48, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_BAYER10_RGGB = 49, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_BAYER10_BGGR = 50, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_BAYER10_GRBG = 51, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_BAYER10_GBRG = 52, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_BAYER12_RGGB = 53, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_BAYER12_BGGR = 54, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_BAYER12_GRBG = 55, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_BAYER12_GBRG = 56, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_BAYER14_RGGB = 57, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_BAYER14_BGGR = 58, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_BAYER14_GRBG = 59, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_BAYER14_GBRG = 60, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_BAYER20_RGGB = 61, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_BAYER20_BGGR = 62, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_BAYER20_GRBG = 63, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_BAYER20_GBRG = 64, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YVU444_PLANAR = 65, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YVU422_PLANAR = 66, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YVU420_PLANAR = 67, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_BAYER_ISP_RGGB = 68, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_BAYER_ISP_BGGR = 69, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_BAYER_ISP_GRBG = 70, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_BAYER_ISP_GBRG = 71, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_BAYER_BCCR = 72, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_BAYER_RCCB = 73, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_BAYER_CRBC = 74, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_BAYER_CBRC = 75, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_BAYER10_CCCC = 76, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_BAYER12_BCCR = 77, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_BAYER12_RCCB = 78, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_BAYER12_CRBC = 79, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_BAYER12_CBRC = 80, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_BAYER12_CCCC = 81, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_Y = 82, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_2020 = 83, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_2020 = 84, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YUV420_PLANAR_2020 = 85, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YVU420_PLANAR_2020 = 86, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_709 = 87, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_709 = 88, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YUV420_PLANAR_709 = 89, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YVU420_PLANAR_709 = 90, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_709 = 91, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_2020 = 92, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR_2020 = 93, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR = 94, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR_709 = 95, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_Y_ER = 96, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_Y_709_ER = 97, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_Y10_ER = 98, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_Y10_709_ER = 99, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_Y12_ER = 0x64, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_Y12_709_ER = 0x65, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YUVA = 0x66, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YUV = 0x67, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_YVYU = 0x68, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_VYUY = 0x69, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_ER = 0x6A, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_709_ER = 0x6B, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR_ER = 0x6C, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR_709_ER = 0x6D, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR_ER = 0x6E, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR_709_ER = 0x6F, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR_ER = 0x70, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR_709_ER = 0x71, __pyx_e_4cuda_5ccuda_CU_EGL_COLOR_FORMAT_MAX = 0x72 }; /* "cuda/ccuda.pxd":2378 * 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_5ccuda_CUGLDeviceList_enum { __pyx_e_4cuda_5ccuda_CU_GL_DEVICE_LIST_ALL = 1, __pyx_e_4cuda_5ccuda_CU_GL_DEVICE_LIST_CURRENT_FRAME = 2, __pyx_e_4cuda_5ccuda_CU_GL_DEVICE_LIST_NEXT_FRAME = 3 }; /* "cuda/ccuda.pxd":2385 * 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_5ccuda_CUGLmap_flags_enum { __pyx_e_4cuda_5ccuda_CU_GL_MAP_RESOURCE_FLAGS_NONE = 0, __pyx_e_4cuda_5ccuda_CU_GL_MAP_RESOURCE_FLAGS_READ_ONLY = 1, __pyx_e_4cuda_5ccuda_CU_GL_MAP_RESOURCE_FLAGS_WRITE_DISCARD = 2 }; /* "cuda/ccuda.pxd":3333 * cdef CUresult cuGraphicsVDPAURegisterOutputSurface(CUgraphicsResource* pCudaResource, VdpOutputSurface vdpSurface, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil * * cdef enum: CUDA_VERSION = 12060 # <<<<<<<<<<<<<< * * cdef enum: CU_IPC_HANDLE_SIZE = 64 */ enum { __pyx_e_4cuda_5ccuda_CUDA_VERSION = 0x2F1C }; /* "cuda/ccuda.pxd":3335 * cdef enum: CUDA_VERSION = 12060 * * cdef enum: CU_IPC_HANDLE_SIZE = 64 # <<<<<<<<<<<<<< * * cdef enum: CU_STREAM_LEGACY = 1 */ enum { __pyx_e_4cuda_5ccuda_CU_IPC_HANDLE_SIZE = 64 }; /* "cuda/ccuda.pxd":3337 * cdef enum: CU_IPC_HANDLE_SIZE = 64 * * cdef enum: CU_STREAM_LEGACY = 1 # <<<<<<<<<<<<<< * * cdef enum: CU_STREAM_PER_THREAD = 2 */ enum { __pyx_e_4cuda_5ccuda_CU_STREAM_LEGACY = 1 }; /* "cuda/ccuda.pxd":3339 * 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_5ccuda_CU_STREAM_PER_THREAD = 2 }; /* "cuda/ccuda.pxd":3341 * cdef enum: CU_STREAM_PER_THREAD = 2 * * cdef enum: CU_COMPUTE_ACCELERATED_TARGET_BASE = 65536 # <<<<<<<<<<<<<< * * cdef enum: CU_GRAPH_COND_ASSIGN_DEFAULT = 1 */ enum { __pyx_e_4cuda_5ccuda_CU_COMPUTE_ACCELERATED_TARGET_BASE = 0x10000 }; /* "cuda/ccuda.pxd":3343 * cdef enum: CU_COMPUTE_ACCELERATED_TARGET_BASE = 65536 * * cdef enum: CU_GRAPH_COND_ASSIGN_DEFAULT = 1 # <<<<<<<<<<<<<< * * cdef enum: CU_GRAPH_KERNEL_NODE_PORT_DEFAULT = 0 */ enum { __pyx_e_4cuda_5ccuda_CU_GRAPH_COND_ASSIGN_DEFAULT = 1 }; /* "cuda/ccuda.pxd":3345 * 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_5ccuda_CU_GRAPH_KERNEL_NODE_PORT_DEFAULT = 0 }; /* "cuda/ccuda.pxd":3347 * 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_5ccuda_CU_GRAPH_KERNEL_NODE_PORT_PROGRAMMATIC = 1 }; /* "cuda/ccuda.pxd":3349 * 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_5ccuda_CU_GRAPH_KERNEL_NODE_PORT_LAUNCH_ORDER = 2 }; /* "cuda/ccuda.pxd":3351 * 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_5ccuda_CU_KERNEL_NODE_ATTRIBUTE_ACCESS_POLICY_WINDOW = 1 }; /* "cuda/ccuda.pxd":3353 * 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_5ccuda_CU_KERNEL_NODE_ATTRIBUTE_COOPERATIVE = 2 }; /* "cuda/ccuda.pxd":3355 * 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_5ccuda_CU_KERNEL_NODE_ATTRIBUTE_CLUSTER_DIMENSION = 4 }; /* "cuda/ccuda.pxd":3357 * 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_5ccuda_CU_KERNEL_NODE_ATTRIBUTE_CLUSTER_SCHEDULING_POLICY_PREFERENCE = 5 }; /* "cuda/ccuda.pxd":3359 * 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_5ccuda_CU_KERNEL_NODE_ATTRIBUTE_PRIORITY = 8 }; /* "cuda/ccuda.pxd":3361 * 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_5ccuda_CU_KERNEL_NODE_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP = 9 }; /* "cuda/ccuda.pxd":3363 * 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_DEVICE_UPDATABLE_KERNEL_NODE = 13 */ enum { __pyx_e_4cuda_5ccuda_CU_KERNEL_NODE_ATTRIBUTE_MEM_SYNC_DOMAIN = 10 }; /* "cuda/ccuda.pxd":3365 * cdef enum: CU_KERNEL_NODE_ATTRIBUTE_MEM_SYNC_DOMAIN = 10 * * 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_5ccuda_CU_KERNEL_NODE_ATTRIBUTE_DEVICE_UPDATABLE_KERNEL_NODE = 13 }; /* "cuda/ccuda.pxd":3367 * 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_5ccuda_CU_KERNEL_NODE_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT = 14 }; /* "cuda/ccuda.pxd":3369 * 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_5ccuda_CU_STREAM_ATTRIBUTE_ACCESS_POLICY_WINDOW = 1 }; /* "cuda/ccuda.pxd":3371 * 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_5ccuda_CU_STREAM_ATTRIBUTE_SYNCHRONIZATION_POLICY = 3 }; /* "cuda/ccuda.pxd":3373 * 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_5ccuda_CU_STREAM_ATTRIBUTE_PRIORITY = 8 }; /* "cuda/ccuda.pxd":3375 * 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_5ccuda_CU_STREAM_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP = 9 }; /* "cuda/ccuda.pxd":3377 * 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_5ccuda_CU_STREAM_ATTRIBUTE_MEM_SYNC_DOMAIN = 10 }; /* "cuda/ccuda.pxd":3379 * 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_5ccuda_CU_MEMHOSTALLOC_PORTABLE = 1 }; /* "cuda/ccuda.pxd":3381 * cdef enum: CU_MEMHOSTALLOC_PORTABLE = 1 * * cdef enum: CU_MEMHOSTALLOC_DEVICEMAP = 2 # <<<<<<<<<<<<<< * * cdef enum: CU_MEMHOSTALLOC_WRITECOMBINED = 4 */ enum { __pyx_e_4cuda_5ccuda_CU_MEMHOSTALLOC_DEVICEMAP = 2 }; /* "cuda/ccuda.pxd":3383 * cdef enum: CU_MEMHOSTALLOC_DEVICEMAP = 2 * * cdef enum: CU_MEMHOSTALLOC_WRITECOMBINED = 4 # <<<<<<<<<<<<<< * * cdef enum: CU_MEMHOSTREGISTER_PORTABLE = 1 */ enum { __pyx_e_4cuda_5ccuda_CU_MEMHOSTALLOC_WRITECOMBINED = 4 }; /* "cuda/ccuda.pxd":3385 * cdef enum: CU_MEMHOSTALLOC_WRITECOMBINED = 4 * * cdef enum: CU_MEMHOSTREGISTER_PORTABLE = 1 # <<<<<<<<<<<<<< * * cdef enum: CU_MEMHOSTREGISTER_DEVICEMAP = 2 */ enum { __pyx_e_4cuda_5ccuda_CU_MEMHOSTREGISTER_PORTABLE = 1 }; /* "cuda/ccuda.pxd":3387 * cdef enum: CU_MEMHOSTREGISTER_PORTABLE = 1 * * cdef enum: CU_MEMHOSTREGISTER_DEVICEMAP = 2 # <<<<<<<<<<<<<< * * cdef enum: CU_MEMHOSTREGISTER_IOMEMORY = 4 */ enum { __pyx_e_4cuda_5ccuda_CU_MEMHOSTREGISTER_DEVICEMAP = 2 }; /* "cuda/ccuda.pxd":3389 * cdef enum: CU_MEMHOSTREGISTER_DEVICEMAP = 2 * * cdef enum: CU_MEMHOSTREGISTER_IOMEMORY = 4 # <<<<<<<<<<<<<< * * cdef enum: CU_MEMHOSTREGISTER_READ_ONLY = 8 */ enum { __pyx_e_4cuda_5ccuda_CU_MEMHOSTREGISTER_IOMEMORY = 4 }; /* "cuda/ccuda.pxd":3391 * 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_5ccuda_CU_MEMHOSTREGISTER_READ_ONLY = 8 }; /* "cuda/ccuda.pxd":3393 * 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_5ccuda_CU_ARRAY_SPARSE_PROPERTIES_SINGLE_MIPTAIL = 1 }; /* "cuda/ccuda.pxd":3395 * 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_5ccuda_CU_TENSOR_MAP_NUM_QWORDS = 16 }; /* "cuda/ccuda.pxd":3397 * 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_5ccuda_CUDA_EXTERNAL_MEMORY_DEDICATED = 1 }; /* "cuda/ccuda.pxd":3399 * 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_5ccuda_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_SKIP_NVSCIBUF_MEMSYNC = 1 }; /* "cuda/ccuda.pxd":3401 * 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_5ccuda_CUDA_EXTERNAL_SEMAPHORE_WAIT_SKIP_NVSCIBUF_MEMSYNC = 2 }; /* "cuda/ccuda.pxd":3403 * 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_5ccuda_CUDA_NVSCISYNC_ATTR_SIGNAL = 1 }; /* "cuda/ccuda.pxd":3405 * 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_5ccuda_CUDA_NVSCISYNC_ATTR_WAIT = 2 }; /* "cuda/ccuda.pxd":3407 * cdef enum: CUDA_NVSCISYNC_ATTR_WAIT = 2 * * cdef enum: CU_MEM_CREATE_USAGE_TILE_POOL = 1 # <<<<<<<<<<<<<< * * cdef enum: CUDA_COOPERATIVE_LAUNCH_MULTI_DEVICE_NO_PRE_LAUNCH_SYNC = 1 */ enum { __pyx_e_4cuda_5ccuda_CU_MEM_CREATE_USAGE_TILE_POOL = 1 }; /* "cuda/ccuda.pxd":3409 * cdef enum: CU_MEM_CREATE_USAGE_TILE_POOL = 1 * * 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_5ccuda_CUDA_COOPERATIVE_LAUNCH_MULTI_DEVICE_NO_PRE_LAUNCH_SYNC = 1 }; /* "cuda/ccuda.pxd":3411 * 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_5ccuda_CUDA_COOPERATIVE_LAUNCH_MULTI_DEVICE_NO_POST_LAUNCH_SYNC = 2 }; /* "cuda/ccuda.pxd":3413 * 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_5ccuda_CUDA_ARRAY3D_LAYERED = 1 }; /* "cuda/ccuda.pxd":3415 * cdef enum: CUDA_ARRAY3D_LAYERED = 1 * * cdef enum: CUDA_ARRAY3D_2DARRAY = 1 # <<<<<<<<<<<<<< * * cdef enum: CUDA_ARRAY3D_SURFACE_LDST = 2 */ enum { __pyx_e_4cuda_5ccuda_CUDA_ARRAY3D_2DARRAY = 1 }; /* "cuda/ccuda.pxd":3417 * cdef enum: CUDA_ARRAY3D_2DARRAY = 1 * * cdef enum: CUDA_ARRAY3D_SURFACE_LDST = 2 # <<<<<<<<<<<<<< * * cdef enum: CUDA_ARRAY3D_CUBEMAP = 4 */ enum { __pyx_e_4cuda_5ccuda_CUDA_ARRAY3D_SURFACE_LDST = 2 }; /* "cuda/ccuda.pxd":3419 * cdef enum: CUDA_ARRAY3D_SURFACE_LDST = 2 * * cdef enum: CUDA_ARRAY3D_CUBEMAP = 4 # <<<<<<<<<<<<<< * * cdef enum: CUDA_ARRAY3D_TEXTURE_GATHER = 8 */ enum { __pyx_e_4cuda_5ccuda_CUDA_ARRAY3D_CUBEMAP = 4 }; /* "cuda/ccuda.pxd":3421 * cdef enum: CUDA_ARRAY3D_CUBEMAP = 4 * * cdef enum: CUDA_ARRAY3D_TEXTURE_GATHER = 8 # <<<<<<<<<<<<<< * * cdef enum: CUDA_ARRAY3D_DEPTH_TEXTURE = 16 */ enum { __pyx_e_4cuda_5ccuda_CUDA_ARRAY3D_TEXTURE_GATHER = 8 }; /* "cuda/ccuda.pxd":3423 * 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_5ccuda_CUDA_ARRAY3D_DEPTH_TEXTURE = 16 }; /* "cuda/ccuda.pxd":3425 * cdef enum: CUDA_ARRAY3D_DEPTH_TEXTURE = 16 * * cdef enum: CUDA_ARRAY3D_COLOR_ATTACHMENT = 32 # <<<<<<<<<<<<<< * * cdef enum: CUDA_ARRAY3D_SPARSE = 64 */ enum { __pyx_e_4cuda_5ccuda_CUDA_ARRAY3D_COLOR_ATTACHMENT = 32 }; /* "cuda/ccuda.pxd":3427 * cdef enum: CUDA_ARRAY3D_COLOR_ATTACHMENT = 32 * * cdef enum: CUDA_ARRAY3D_SPARSE = 64 # <<<<<<<<<<<<<< * * cdef enum: CUDA_ARRAY3D_DEFERRED_MAPPING = 128 */ enum { __pyx_e_4cuda_5ccuda_CUDA_ARRAY3D_SPARSE = 64 }; /* "cuda/ccuda.pxd":3429 * 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_5ccuda_CUDA_ARRAY3D_DEFERRED_MAPPING = 0x80 }; /* "cuda/ccuda.pxd":3431 * 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_5ccuda_CUDA_ARRAY3D_VIDEO_ENCODE_DECODE = 0x100 }; /* "cuda/ccuda.pxd":3433 * 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_5ccuda_CU_TRSA_OVERRIDE_FORMAT = 1 }; /* "cuda/ccuda.pxd":3435 * 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_5ccuda_CU_TRSF_READ_AS_INTEGER = 1 }; /* "cuda/ccuda.pxd":3437 * 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_5ccuda_CU_TRSF_NORMALIZED_COORDINATES = 2 }; /* "cuda/ccuda.pxd":3439 * 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_5ccuda_CU_TRSF_SRGB = 16 }; /* "cuda/ccuda.pxd":3441 * 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_5ccuda_CU_TRSF_DISABLE_TRILINEAR_OPTIMIZATION = 32 }; /* "cuda/ccuda.pxd":3443 * cdef enum: CU_TRSF_DISABLE_TRILINEAR_OPTIMIZATION = 32 * * cdef enum: CU_TRSF_SEAMLESS_CUBEMAP = 64 # <<<<<<<<<<<<<< * * cdef enum: CU_LAUNCH_PARAM_END_AS_INT = 0 */ enum { __pyx_e_4cuda_5ccuda_CU_TRSF_SEAMLESS_CUBEMAP = 64 }; /* "cuda/ccuda.pxd":3445 * cdef enum: CU_TRSF_SEAMLESS_CUBEMAP = 64 * * cdef enum: CU_LAUNCH_PARAM_END_AS_INT = 0 # <<<<<<<<<<<<<< * * cdef enum: CU_LAUNCH_PARAM_END = 0 */ enum { __pyx_e_4cuda_5ccuda_CU_LAUNCH_PARAM_END_AS_INT = 0 }; /* "cuda/ccuda.pxd":3447 * 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_5ccuda_CU_LAUNCH_PARAM_END = 0 }; /* "cuda/ccuda.pxd":3449 * 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_5ccuda_CU_LAUNCH_PARAM_BUFFER_POINTER_AS_INT = 1 }; /* "cuda/ccuda.pxd":3451 * 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_5ccuda_CU_LAUNCH_PARAM_BUFFER_POINTER = 1 }; /* "cuda/ccuda.pxd":3453 * 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_5ccuda_CU_LAUNCH_PARAM_BUFFER_SIZE_AS_INT = 2 }; /* "cuda/ccuda.pxd":3455 * 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_5ccuda_CU_LAUNCH_PARAM_BUFFER_SIZE = 2 }; /* "cuda/ccuda.pxd":3457 * 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_5ccuda_CU_PARAM_TR_DEFAULT = -1L }; /* "cuda/ccuda.pxd":3459 * cdef enum: CU_PARAM_TR_DEFAULT = -1 * * cdef enum: CU_DEVICE_CPU = -1 # <<<<<<<<<<<<<< * * cdef enum: CU_DEVICE_INVALID = -2 */ enum { __pyx_e_4cuda_5ccuda_CU_DEVICE_CPU = -1L }; /* "cuda/ccuda.pxd":3461 * cdef enum: CU_DEVICE_CPU = -1 * * cdef enum: CU_DEVICE_INVALID = -2 # <<<<<<<<<<<<<< * * cdef enum: RESOURCE_ABI_VERSION = 1 */ enum { __pyx_e_4cuda_5ccuda_CU_DEVICE_INVALID = -2L }; /* "cuda/ccuda.pxd":3463 * cdef enum: CU_DEVICE_INVALID = -2 * * cdef enum: RESOURCE_ABI_VERSION = 1 # <<<<<<<<<<<<<< * * cdef enum: RESOURCE_ABI_EXTERNAL_BYTES = 48 */ enum { __pyx_e_4cuda_5ccuda_RESOURCE_ABI_VERSION = 1 }; /* "cuda/ccuda.pxd":3465 * cdef enum: RESOURCE_ABI_VERSION = 1 * * cdef enum: RESOURCE_ABI_EXTERNAL_BYTES = 48 # <<<<<<<<<<<<<< * * cdef enum: MAX_PLANES = 3 */ enum { __pyx_e_4cuda_5ccuda_RESOURCE_ABI_EXTERNAL_BYTES = 48 }; /* "cuda/ccuda.pxd":3467 * cdef enum: RESOURCE_ABI_EXTERNAL_BYTES = 48 * * cdef enum: MAX_PLANES = 3 # <<<<<<<<<<<<<< * * cdef enum: CUDA_EGL_INFINITE_TIMEOUT = 4294967295 */ enum { __pyx_e_4cuda_5ccuda_MAX_PLANES = 3 }; /* "cuda/ccuda.pxd":3469 * cdef enum: MAX_PLANES = 3 * * cdef enum: CUDA_EGL_INFINITE_TIMEOUT = 4294967295 # <<<<<<<<<<<<<< */ enum { __pyx_e_4cuda_5ccuda_CUDA_EGL_INFINITE_TIMEOUT = 0xFFFFFFFF }; /* "cuda/ccuda.pxd":2226 * CU_EGL_FRAME_TYPE_PITCH = 1 * * ctypedef CUeglFrameType_enum CUeglFrameType # <<<<<<<<<<<<<< * * cdef enum CUeglResourceLocationFlags_enum: */ typedef enum __pyx_t_4cuda_5ccuda_CUeglFrameType_enum __pyx_t_4cuda_5ccuda_CUeglFrameType; /* "cuda/ccuda.pxd":2232 * CU_EGL_RESOURCE_LOCATION_VIDMEM = 1 * * ctypedef CUeglResourceLocationFlags_enum CUeglResourceLocationFlags # <<<<<<<<<<<<<< * * cdef enum CUeglColorFormat_enum: */ typedef enum __pyx_t_4cuda_5ccuda_CUeglResourceLocationFlags_enum __pyx_t_4cuda_5ccuda_CUeglResourceLocationFlags; /* "cuda/ccuda.pxd":2351 * CU_EGL_COLOR_FORMAT_MAX = 114 * * ctypedef CUeglColorFormat_enum CUeglColorFormat # <<<<<<<<<<<<<< * * cdef union anon_union14: */ typedef enum __pyx_t_4cuda_5ccuda_CUeglColorFormat_enum __pyx_t_4cuda_5ccuda_CUeglColorFormat; /* "cuda/ccuda.pxd":2353 * ctypedef CUeglColorFormat_enum CUeglColorFormat * * cdef union anon_union14: # <<<<<<<<<<<<<< * CUarray pArray[3] * void* pPitch[3] */ union __pyx_t_4cuda_5ccuda_anon_union14 { CUarray pArray[3]; void *pPitch[3]; }; /* "cuda/ccuda.pxd":2357 * void* pPitch[3] * * cdef struct CUeglFrame_st: # <<<<<<<<<<<<<< * anon_union14 frame * unsigned int width */ struct __pyx_t_4cuda_5ccuda_CUeglFrame_st { union __pyx_t_4cuda_5ccuda_anon_union14 frame; unsigned int width; unsigned int height; unsigned int depth; unsigned int pitch; unsigned int planeCount; unsigned int numChannels; __pyx_t_4cuda_5ccuda_CUeglFrameType frameType; __pyx_t_4cuda_5ccuda_CUeglColorFormat eglColorFormat; CUarray_format cuFormat; }; /* "cuda/ccuda.pxd":2369 * CUarray_format cuFormat * * ctypedef CUeglFrame_st CUeglFrame_v1 # <<<<<<<<<<<<<< * * ctypedef CUeglFrame_v1 CUeglFrame */ typedef struct __pyx_t_4cuda_5ccuda_CUeglFrame_st __pyx_t_4cuda_5ccuda_CUeglFrame_v1; /* "cuda/ccuda.pxd":2371 * ctypedef CUeglFrame_st CUeglFrame_v1 * * ctypedef CUeglFrame_v1 CUeglFrame # <<<<<<<<<<<<<< * * cdef extern from "": */ typedef __pyx_t_4cuda_5ccuda_CUeglFrame_v1 __pyx_t_4cuda_5ccuda_CUeglFrame; /* "cuda/ccuda.pxd":2376 * cdef struct CUeglStreamConnection_st: * pass * ctypedef CUeglStreamConnection_st* CUeglStreamConnection # <<<<<<<<<<<<<< * * cdef enum CUGLDeviceList_enum: */ typedef struct CUeglStreamConnection_st *__pyx_t_4cuda_5ccuda_CUeglStreamConnection; /* "cuda/ccuda.pxd":2383 * CU_GL_DEVICE_LIST_NEXT_FRAME = 3 * * ctypedef CUGLDeviceList_enum CUGLDeviceList # <<<<<<<<<<<<<< * * cdef enum CUGLmap_flags_enum: */ typedef enum __pyx_t_4cuda_5ccuda_CUGLDeviceList_enum __pyx_t_4cuda_5ccuda_CUGLDeviceList; /* "cuda/ccuda.pxd":2390 * CU_GL_MAP_RESOURCE_FLAGS_WRITE_DISCARD = 2 * * ctypedef CUGLmap_flags_enum CUGLmap_flags # <<<<<<<<<<<<<< * * ctypedef unsigned int GLenum */ typedef enum __pyx_t_4cuda_5ccuda_CUGLmap_flags_enum __pyx_t_4cuda_5ccuda_CUGLmap_flags; /* "cuda/ccuda.pxd":2399 * cdef struct void: * pass * ctypedef void* EGLImageKHR # <<<<<<<<<<<<<< * * cdef extern from "": */ typedef void *__pyx_t_4cuda_5ccuda_EGLImageKHR; /* "cuda/ccuda.pxd":2404 * cdef struct void: * pass * ctypedef void* EGLStreamKHR # <<<<<<<<<<<<<< * * ctypedef unsigned int EGLint */ typedef void *__pyx_t_4cuda_5ccuda_EGLStreamKHR; /* "cuda/ccuda.pxd":2411 * cdef struct void: * pass * ctypedef void* EGLSyncKHR # <<<<<<<<<<<<<< * * ctypedef uint32_t VdpDevice */ typedef void *__pyx_t_4cuda_5ccuda_EGLSyncKHR; /* "cuda/cuda.pxd":11 * cimport cuda._lib.utils as utils * * cdef class CUcontext: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUcontext { PyObject_HEAD CUcontext _CUcontext__val; CUcontext *_ptr; }; /* "cuda/cuda.pxd":25 * cdef ccuda.CUcontext* _ptr * * cdef class CUmodule: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUmodule { PyObject_HEAD CUmodule _CUmodule__val; CUmodule *_ptr; }; /* "cuda/cuda.pxd":39 * cdef ccuda.CUmodule* _ptr * * cdef class CUfunction: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUfunction { PyObject_HEAD CUfunction _CUfunction__val; CUfunction *_ptr; }; /* "cuda/cuda.pxd":53 * cdef ccuda.CUfunction* _ptr * * cdef class CUlibrary: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUlibrary { PyObject_HEAD CUlibrary _CUlibrary__val; CUlibrary *_ptr; }; /* "cuda/cuda.pxd":67 * cdef ccuda.CUlibrary* _ptr * * cdef class CUkernel: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUkernel { PyObject_HEAD CUkernel _CUkernel__val; CUkernel *_ptr; }; /* "cuda/cuda.pxd":81 * cdef ccuda.CUkernel* _ptr * * cdef class CUarray: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUarray { PyObject_HEAD CUarray _CUarray__val; CUarray *_ptr; }; /* "cuda/cuda.pxd":95 * cdef ccuda.CUarray* _ptr * * cdef class CUmipmappedArray: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUmipmappedArray { PyObject_HEAD CUmipmappedArray _CUmipmappedArray__val; CUmipmappedArray *_ptr; }; /* "cuda/cuda.pxd":109 * cdef ccuda.CUmipmappedArray* _ptr * * cdef class CUtexref: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUtexref { PyObject_HEAD CUtexref _CUtexref__val; CUtexref *_ptr; }; /* "cuda/cuda.pxd":123 * cdef ccuda.CUtexref* _ptr * * cdef class CUsurfref: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUsurfref { PyObject_HEAD CUsurfref _CUsurfref__val; CUsurfref *_ptr; }; /* "cuda/cuda.pxd":137 * cdef ccuda.CUsurfref* _ptr * * cdef class CUevent: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUevent { PyObject_HEAD CUevent _CUevent__val; CUevent *_ptr; }; /* "cuda/cuda.pxd":151 * cdef ccuda.CUevent* _ptr * * cdef class CUstream: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUstream { PyObject_HEAD CUstream _CUstream__val; CUstream *_ptr; }; /* "cuda/cuda.pxd":165 * cdef ccuda.CUstream* _ptr * * cdef class CUgraphicsResource: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUgraphicsResource { PyObject_HEAD CUgraphicsResource _CUgraphicsResource__val; CUgraphicsResource *_ptr; }; /* "cuda/cuda.pxd":179 * cdef ccuda.CUgraphicsResource* _ptr * * cdef class CUexternalMemory: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUexternalMemory { PyObject_HEAD CUexternalMemory _CUexternalMemory__val; CUexternalMemory *_ptr; }; /* "cuda/cuda.pxd":193 * cdef ccuda.CUexternalMemory* _ptr * * cdef class CUexternalSemaphore: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUexternalSemaphore { PyObject_HEAD CUexternalSemaphore _CUexternalSemaphore__val; CUexternalSemaphore *_ptr; }; /* "cuda/cuda.pxd":207 * cdef ccuda.CUexternalSemaphore* _ptr * * cdef class CUgraph: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUgraph { PyObject_HEAD CUgraph _CUgraph__val; CUgraph *_ptr; }; /* "cuda/cuda.pxd":221 * cdef ccuda.CUgraph* _ptr * * cdef class CUgraphNode: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUgraphNode { PyObject_HEAD CUgraphNode _CUgraphNode__val; CUgraphNode *_ptr; }; /* "cuda/cuda.pxd":235 * cdef ccuda.CUgraphNode* _ptr * * cdef class CUgraphExec: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUgraphExec { PyObject_HEAD CUgraphExec _CUgraphExec__val; CUgraphExec *_ptr; }; /* "cuda/cuda.pxd":249 * cdef ccuda.CUgraphExec* _ptr * * cdef class CUmemoryPool: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUmemoryPool { PyObject_HEAD CUmemoryPool _CUmemoryPool__val; CUmemoryPool *_ptr; }; /* "cuda/cuda.pxd":263 * cdef ccuda.CUmemoryPool* _ptr * * cdef class CUuserObject: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUuserObject { PyObject_HEAD CUuserObject _CUuserObject__val; CUuserObject *_ptr; }; /* "cuda/cuda.pxd":277 * cdef ccuda.CUuserObject* _ptr * * cdef class CUgraphDeviceNode: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUgraphDeviceNode { PyObject_HEAD CUgraphDeviceNode _CUgraphDeviceNode__val; CUgraphDeviceNode *_ptr; }; /* "cuda/cuda.pxd":291 * cdef ccuda.CUgraphDeviceNode* _ptr * * cdef class CUasyncCallbackHandle: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUasyncCallbackHandle { PyObject_HEAD CUasyncCallbackHandle _CUasyncCallbackHandle__val; CUasyncCallbackHandle *_ptr; }; /* "cuda/cuda.pxd":305 * cdef ccuda.CUasyncCallbackHandle* _ptr * * cdef class CUgreenCtx: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUgreenCtx { PyObject_HEAD CUgreenCtx _CUgreenCtx__val; CUgreenCtx *_ptr; }; /* "cuda/cuda.pxd":319 * cdef ccuda.CUgreenCtx* _ptr * * cdef class CUlinkState: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUlinkState { PyObject_HEAD CUlinkState _CUlinkState__val; CUlinkState *_ptr; PyObject *_keepalive; }; /* "cuda/cuda.pxd":332 * cdef list _keepalive * * cdef class CUdevResourceDesc: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUdevResourceDesc { PyObject_HEAD CUdevResourceDesc _CUdevResourceDesc__val; CUdevResourceDesc *_ptr; }; /* "cuda/cuda.pxd":346 * cdef ccuda.CUdevResourceDesc* _ptr * * cdef class CUeglStreamConnection: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUeglStreamConnection { PyObject_HEAD __pyx_t_4cuda_5ccuda_CUeglStreamConnection _CUeglStreamConnection__val; __pyx_t_4cuda_5ccuda_CUeglStreamConnection *_ptr; }; /* "cuda/cuda.pxd":360 * cdef ccuda.CUeglStreamConnection* _ptr * * cdef class EGLImageKHR: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_EGLImageKHR { PyObject_HEAD __pyx_t_4cuda_5ccuda_EGLImageKHR _EGLImageKHR__val; __pyx_t_4cuda_5ccuda_EGLImageKHR *_ptr; }; /* "cuda/cuda.pxd":372 * cdef ccuda.EGLImageKHR* _ptr * * cdef class EGLStreamKHR: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_EGLStreamKHR { PyObject_HEAD __pyx_t_4cuda_5ccuda_EGLStreamKHR _EGLStreamKHR__val; __pyx_t_4cuda_5ccuda_EGLStreamKHR *_ptr; }; /* "cuda/cuda.pxd":384 * cdef ccuda.EGLStreamKHR* _ptr * * cdef class EGLSyncKHR: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_EGLSyncKHR { PyObject_HEAD __pyx_t_4cuda_5ccuda_EGLSyncKHR _EGLSyncKHR__val; __pyx_t_4cuda_5ccuda_EGLSyncKHR *_ptr; }; /* "cuda/cuda.pxd":396 * cdef ccuda.EGLSyncKHR* _ptr * * cdef class CUasyncCallback: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUasyncCallback { PyObject_HEAD CUasyncCallback _CUasyncCallback__val; CUasyncCallback *_ptr; }; /* "cuda/cuda.pxd":408 * cdef ccuda.CUasyncCallback* _ptr * * cdef class CUhostFn: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUhostFn { PyObject_HEAD CUhostFn _CUhostFn__val; CUhostFn *_ptr; }; /* "cuda/cuda.pxd":420 * cdef ccuda.CUhostFn* _ptr * * cdef class CUstreamCallback: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUstreamCallback { PyObject_HEAD CUstreamCallback _CUstreamCallback__val; CUstreamCallback *_ptr; }; /* "cuda/cuda.pxd":432 * cdef ccuda.CUstreamCallback* _ptr * * cdef class CUoccupancyB2DSize: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUoccupancyB2DSize { PyObject_HEAD CUoccupancyB2DSize _CUoccupancyB2DSize__val; CUoccupancyB2DSize *_ptr; }; /* "cuda/cuda.pxd":444 * cdef ccuda.CUoccupancyB2DSize* _ptr * * cdef class CUuuid_st: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_CUuuid_st { PyObject_HEAD struct CUuuid_st _CUuuid_st__val; struct CUuuid_st *_ptr; }; /* "cuda/cuda.pxd":460 * cdef ccuda.CUuuid_st* _ptr * * cdef class CUmemFabricHandle_st: # <<<<<<<<<<<<<< * """ * Fabric handle - An opaque handle representing a memory allocation */ struct __pyx_obj_4cuda_4cuda_CUmemFabricHandle_st { PyObject_HEAD struct CUmemFabricHandle_st _CUmemFabricHandle_st__val; struct CUmemFabricHandle_st *_ptr; }; /* "cuda/cuda.pxd":481 * cdef ccuda.CUmemFabricHandle_st* _ptr * * cdef class CUipcEventHandle_st: # <<<<<<<<<<<<<< * """ * CUDA IPC event handle */ struct __pyx_obj_4cuda_4cuda_CUipcEventHandle_st { PyObject_HEAD struct CUipcEventHandle_st _CUipcEventHandle_st__val; struct CUipcEventHandle_st *_ptr; }; /* "cuda/cuda.pxd":499 * cdef ccuda.CUipcEventHandle_st* _ptr * * cdef class CUipcMemHandle_st: # <<<<<<<<<<<<<< * """ * CUDA IPC mem handle */ struct __pyx_obj_4cuda_4cuda_CUipcMemHandle_st { PyObject_HEAD struct CUipcMemHandle_st _CUipcMemHandle_st__val; struct CUipcMemHandle_st *_ptr; }; /* "cuda/cuda.pxd":517 * cdef ccuda.CUipcMemHandle_st* _ptr * * cdef class CUstreamMemOpWaitValueParams_st: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_CUstreamMemOpWaitValueParams_st { PyObject_HEAD union CUstreamBatchMemOpParams_union *_ptr; struct __pyx_obj_4cuda_4cuda_CUdeviceptr *_address; struct __pyx_obj_4cuda_4cuda_cuuint32_t *_value; struct __pyx_obj_4cuda_4cuda_cuuint64_t *_value64; struct __pyx_obj_4cuda_4cuda_CUdeviceptr *_alias; }; /* "cuda/cuda.pxd":546 * cdef CUdeviceptr _alias * * cdef class CUstreamMemOpWriteValueParams_st: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_CUstreamMemOpWriteValueParams_st { PyObject_HEAD union CUstreamBatchMemOpParams_union *_ptr; struct __pyx_obj_4cuda_4cuda_CUdeviceptr *_address; struct __pyx_obj_4cuda_4cuda_cuuint32_t *_value; struct __pyx_obj_4cuda_4cuda_cuuint64_t *_value64; struct __pyx_obj_4cuda_4cuda_CUdeviceptr *_alias; }; /* "cuda/cuda.pxd":575 * cdef CUdeviceptr _alias * * cdef class CUstreamMemOpFlushRemoteWritesParams_st: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_CUstreamMemOpFlushRemoteWritesParams_st { PyObject_HEAD union CUstreamBatchMemOpParams_union *_ptr; }; /* "cuda/cuda.pxd":592 * cdef ccuda.CUstreamBatchMemOpParams_union* _ptr * * cdef class CUstreamMemOpMemoryBarrierParams_st: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_CUstreamMemOpMemoryBarrierParams_st { PyObject_HEAD union CUstreamBatchMemOpParams_union *_ptr; }; /* "cuda/cuda.pxd":609 * cdef ccuda.CUstreamBatchMemOpParams_union* _ptr * * cdef class CUstreamBatchMemOpParams_union: # <<<<<<<<<<<<<< * """ * Per-operation parameters for cuStreamBatchMemOp */ struct __pyx_obj_4cuda_4cuda_CUstreamBatchMemOpParams_union { PyObject_HEAD union CUstreamBatchMemOpParams_union _CUstreamBatchMemOpParams_union__val; union CUstreamBatchMemOpParams_union *_ptr; struct __pyx_obj_4cuda_4cuda_CUstreamMemOpWaitValueParams_st *_waitValue; struct __pyx_obj_4cuda_4cuda_CUstreamMemOpWriteValueParams_st *_writeValue; struct __pyx_obj_4cuda_4cuda_CUstreamMemOpFlushRemoteWritesParams_st *_flushRemoteWrites; struct __pyx_obj_4cuda_4cuda_CUstreamMemOpMemoryBarrierParams_st *_memoryBarrier; }; /* "cuda/cuda.pxd":641 * cdef CUstreamMemOpMemoryBarrierParams_st _memoryBarrier * * cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st { PyObject_HEAD struct CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st _CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st__val; struct CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st *_ptr; struct __pyx_obj_4cuda_4cuda_CUcontext *_ctx; size_t _paramArray_length; CUstreamBatchMemOpParams *_paramArray; }; /* "cuda/cuda.pxd":666 * cdef ccuda.CUstreamBatchMemOpParams* _paramArray * * cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st: # <<<<<<<<<<<<<< * """ * Batch memory operation node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st { PyObject_HEAD struct CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st _CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st__val; struct CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st *_ptr; struct __pyx_obj_4cuda_4cuda_CUcontext *_ctx; size_t _paramArray_length; CUstreamBatchMemOpParams *_paramArray; }; /* "cuda/cuda.pxd":693 * cdef ccuda.CUstreamBatchMemOpParams* _paramArray * * cdef class anon_struct0: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_anon_struct0 { PyObject_HEAD struct CUasyncNotificationInfo_st *_ptr; }; /* "cuda/cuda.pxd":708 * cdef ccuda.CUasyncNotificationInfo_st* _ptr * * cdef class anon_union2: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_anon_union2 { PyObject_HEAD struct CUasyncNotificationInfo_st *_ptr; struct __pyx_obj_4cuda_4cuda_anon_struct0 *_overBudget; }; /* "cuda/cuda.pxd":724 * cdef anon_struct0 _overBudget * * cdef class CUasyncNotificationInfo_st: # <<<<<<<<<<<<<< * """ * Information passed to the user via the async notification callback */ struct __pyx_obj_4cuda_4cuda_CUasyncNotificationInfo_st { PyObject_HEAD struct CUasyncNotificationInfo_st *_val_ptr; struct CUasyncNotificationInfo_st *_ptr; struct __pyx_obj_4cuda_4cuda_anon_union2 *_info; }; /* "cuda/cuda.pxd":745 * cdef anon_union2 _info * * cdef class CUdevprop_st: # <<<<<<<<<<<<<< * """ * Legacy device properties */ struct __pyx_obj_4cuda_4cuda_CUdevprop_st { PyObject_HEAD struct CUdevprop_st _CUdevprop_st__val; struct CUdevprop_st *_ptr; }; /* "cuda/cuda.pxd":781 * cdef ccuda.CUdevprop_st* _ptr * * cdef class CUaccessPolicyWindow_st: # <<<<<<<<<<<<<< * """ * Specifies an access policy for a window, a contiguous extent of */ struct __pyx_obj_4cuda_4cuda_CUaccessPolicyWindow_st { PyObject_HEAD struct CUaccessPolicyWindow_st _CUaccessPolicyWindow_st__val; struct CUaccessPolicyWindow_st *_ptr; }; /* "cuda/cuda.pxd":819 * cdef ccuda.CUaccessPolicyWindow_st* _ptr * * cdef class CUDA_KERNEL_NODE_PARAMS_st: # <<<<<<<<<<<<<< * """ * GPU kernel node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_st { PyObject_HEAD struct CUDA_KERNEL_NODE_PARAMS_st _CUDA_KERNEL_NODE_PARAMS_st__val; struct CUDA_KERNEL_NODE_PARAMS_st *_ptr; struct __pyx_obj_4cuda_4cuda_CUfunction *_func; struct __pyx_obj_4cuda_4_lib_5utils_HelperKernelParams *_ckernelParams; }; /* "cuda/cuda.pxd":857 * cdef utils.HelperKernelParams _ckernelParams * * cdef class CUDA_KERNEL_NODE_PARAMS_v2_st: # <<<<<<<<<<<<<< * """ * GPU kernel node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v2_st { PyObject_HEAD struct CUDA_KERNEL_NODE_PARAMS_v2_st _CUDA_KERNEL_NODE_PARAMS_v2_st__val; struct CUDA_KERNEL_NODE_PARAMS_v2_st *_ptr; struct __pyx_obj_4cuda_4cuda_CUfunction *_func; struct __pyx_obj_4cuda_4_lib_5utils_HelperKernelParams *_ckernelParams; struct __pyx_obj_4cuda_4cuda_CUkernel *_kern; struct __pyx_obj_4cuda_4cuda_CUcontext *_ctx; }; /* "cuda/cuda.pxd":903 * cdef CUcontext _ctx * * cdef class CUDA_KERNEL_NODE_PARAMS_v3_st: # <<<<<<<<<<<<<< * """ * GPU kernel node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v3_st { PyObject_HEAD struct CUDA_KERNEL_NODE_PARAMS_v3_st _CUDA_KERNEL_NODE_PARAMS_v3_st__val; struct CUDA_KERNEL_NODE_PARAMS_v3_st *_ptr; struct __pyx_obj_4cuda_4cuda_CUfunction *_func; struct __pyx_obj_4cuda_4_lib_5utils_HelperKernelParams *_ckernelParams; struct __pyx_obj_4cuda_4cuda_CUkernel *_kern; struct __pyx_obj_4cuda_4cuda_CUcontext *_ctx; }; /* "cuda/cuda.pxd":949 * cdef CUcontext _ctx * * cdef class CUDA_MEMSET_NODE_PARAMS_st: # <<<<<<<<<<<<<< * """ * Memset node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_st { PyObject_HEAD struct CUDA_MEMSET_NODE_PARAMS_st _CUDA_MEMSET_NODE_PARAMS_st__val; struct CUDA_MEMSET_NODE_PARAMS_st *_ptr; struct __pyx_obj_4cuda_4cuda_CUdeviceptr *_dst; }; /* "cuda/cuda.pxd":978 * cdef CUdeviceptr _dst * * cdef class CUDA_MEMSET_NODE_PARAMS_v2_st: # <<<<<<<<<<<<<< * """ * Memset node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_v2_st { PyObject_HEAD struct CUDA_MEMSET_NODE_PARAMS_v2_st _CUDA_MEMSET_NODE_PARAMS_v2_st__val; struct CUDA_MEMSET_NODE_PARAMS_v2_st *_ptr; struct __pyx_obj_4cuda_4cuda_CUdeviceptr *_dst; struct __pyx_obj_4cuda_4cuda_CUcontext *_ctx; }; /* "cuda/cuda.pxd":1010 * cdef CUcontext _ctx * * cdef class CUDA_HOST_NODE_PARAMS_st: # <<<<<<<<<<<<<< * """ * Host node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_st { PyObject_HEAD struct CUDA_HOST_NODE_PARAMS_st _CUDA_HOST_NODE_PARAMS_st__val; struct CUDA_HOST_NODE_PARAMS_st *_ptr; struct __pyx_obj_4cuda_4cuda_CUhostFn *_fn; }; /* "cuda/cuda.pxd":1031 * cdef CUhostFn _fn * * cdef class CUDA_HOST_NODE_PARAMS_v2_st: # <<<<<<<<<<<<<< * """ * Host node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_v2_st { PyObject_HEAD struct CUDA_HOST_NODE_PARAMS_v2_st _CUDA_HOST_NODE_PARAMS_v2_st__val; struct CUDA_HOST_NODE_PARAMS_v2_st *_ptr; struct __pyx_obj_4cuda_4cuda_CUhostFn *_fn; }; /* "cuda/cuda.pxd":1052 * cdef CUhostFn _fn * * cdef class CUDA_CONDITIONAL_NODE_PARAMS: # <<<<<<<<<<<<<< * """ * Conditional node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_CONDITIONAL_NODE_PARAMS { PyObject_HEAD struct CUDA_CONDITIONAL_NODE_PARAMS _CUDA_CONDITIONAL_NODE_PARAMS__val; struct CUDA_CONDITIONAL_NODE_PARAMS *_ptr; struct __pyx_obj_4cuda_4cuda_CUgraphConditionalHandle *_handle; size_t _phGraph_out_length; CUgraph *_phGraph_out; struct __pyx_obj_4cuda_4cuda_CUcontext *_ctx; }; /* "cuda/cuda.pxd":1094 * cdef CUcontext _ctx * * cdef class CUgraphEdgeData_st: # <<<<<<<<<<<<<< * """ * Optional annotation for edges in a CUDA graph. Note, all edges */ struct __pyx_obj_4cuda_4cuda_CUgraphEdgeData_st { PyObject_HEAD struct CUgraphEdgeData_st _CUgraphEdgeData_st__val; struct CUgraphEdgeData_st *_ptr; }; /* "cuda/cuda.pxd":1137 * cdef ccuda.CUgraphEdgeData_st* _ptr * * cdef class CUDA_GRAPH_INSTANTIATE_PARAMS_st: # <<<<<<<<<<<<<< * """ * Graph instantiation parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_GRAPH_INSTANTIATE_PARAMS_st { PyObject_HEAD struct CUDA_GRAPH_INSTANTIATE_PARAMS_st _CUDA_GRAPH_INSTANTIATE_PARAMS_st__val; struct CUDA_GRAPH_INSTANTIATE_PARAMS_st *_ptr; struct __pyx_obj_4cuda_4cuda_cuuint64_t *_flags; struct __pyx_obj_4cuda_4cuda_CUstream *_hUploadStream; struct __pyx_obj_4cuda_4cuda_CUgraphNode *_hErrNode_out; }; /* "cuda/cuda.pxd":1164 * cdef CUgraphNode _hErrNode_out * * cdef class CUlaunchMemSyncDomainMap_st: # <<<<<<<<<<<<<< * """ * Memory Synchronization Domain map See ::cudaLaunchMemSyncDomain. */ struct __pyx_obj_4cuda_4cuda_CUlaunchMemSyncDomainMap_st { PyObject_HEAD struct CUlaunchMemSyncDomainMap_st _CUlaunchMemSyncDomainMap_st__val; struct CUlaunchMemSyncDomainMap_st *_ptr; }; /* "cuda/cuda.pxd":1190 * cdef ccuda.CUlaunchMemSyncDomainMap_st* _ptr * * cdef class anon_struct1: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_anon_struct1 { PyObject_HEAD union CUlaunchAttributeValue_union *_ptr; }; /* "cuda/cuda.pxd":1209 * cdef ccuda.CUlaunchAttributeValue_union* _ptr * * cdef class anon_struct2: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_anon_struct2 { PyObject_HEAD union CUlaunchAttributeValue_union *_ptr; struct __pyx_obj_4cuda_4cuda_CUevent *_event; }; /* "cuda/cuda.pxd":1229 * cdef CUevent _event * * cdef class anon_struct3: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_anon_struct3 { PyObject_HEAD union CUlaunchAttributeValue_union *_ptr; struct __pyx_obj_4cuda_4cuda_CUevent *_event; }; /* "cuda/cuda.pxd":1247 * cdef CUevent _event * * cdef class anon_struct4: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_anon_struct4 { PyObject_HEAD union CUlaunchAttributeValue_union *_ptr; struct __pyx_obj_4cuda_4cuda_CUgraphDeviceNode *_devNode; }; /* "cuda/cuda.pxd":1265 * cdef CUgraphDeviceNode _devNode * * cdef class CUlaunchAttributeValue_union: # <<<<<<<<<<<<<< * """ * Launch attributes union; used as value field of CUlaunchAttribute */ struct __pyx_obj_4cuda_4cuda_CUlaunchAttributeValue_union { PyObject_HEAD union CUlaunchAttributeValue_union _CUlaunchAttributeValue_union__val; union CUlaunchAttributeValue_union *_ptr; struct __pyx_obj_4cuda_4cuda_CUaccessPolicyWindow *_accessPolicyWindow; struct __pyx_obj_4cuda_4cuda_anon_struct1 *_clusterDim; struct __pyx_obj_4cuda_4cuda_anon_struct2 *_programmaticEvent; struct __pyx_obj_4cuda_4cuda_anon_struct3 *_launchCompletionEvent; struct __pyx_obj_4cuda_4cuda_CUlaunchMemSyncDomainMap *_memSyncDomainMap; struct __pyx_obj_4cuda_4cuda_anon_struct4 *_deviceUpdatableKernelNode; }; /* "cuda/cuda.pxd":1345 * cdef anon_struct4 _deviceUpdatableKernelNode * * cdef class CUlaunchAttribute_st: # <<<<<<<<<<<<<< * """ * Launch attribute */ struct __pyx_obj_4cuda_4cuda_CUlaunchAttribute_st { PyObject_HEAD struct CUlaunchAttribute_st _CUlaunchAttribute_st__val; struct CUlaunchAttribute_st *_ptr; struct __pyx_obj_4cuda_4cuda_CUlaunchAttributeValue *_value; }; /* "cuda/cuda.pxd":1366 * cdef CUlaunchAttributeValue _value * * cdef class CUlaunchConfig_st: # <<<<<<<<<<<<<< * """ * CUDA extensible launch configuration */ struct __pyx_obj_4cuda_4cuda_CUlaunchConfig_st { PyObject_HEAD struct CUlaunchConfig_st _CUlaunchConfig_st__val; struct CUlaunchConfig_st *_ptr; struct __pyx_obj_4cuda_4cuda_CUstream *_hStream; size_t _attrs_length; CUlaunchAttribute *_attrs; }; /* "cuda/cuda.pxd":1405 * cdef ccuda.CUlaunchAttribute* _attrs * * cdef class CUexecAffinitySmCount_st: # <<<<<<<<<<<<<< * """ * Value for CU_EXEC_AFFINITY_TYPE_SM_COUNT */ struct __pyx_obj_4cuda_4cuda_CUexecAffinitySmCount_st { PyObject_HEAD struct CUexecAffinitySmCount_st _CUexecAffinitySmCount_st__val; struct CUexecAffinitySmCount_st *_ptr; }; /* "cuda/cuda.pxd":1423 * cdef ccuda.CUexecAffinitySmCount_st* _ptr * * cdef class anon_union3: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_anon_union3 { PyObject_HEAD struct CUexecAffinityParam_st *_ptr; struct __pyx_obj_4cuda_4cuda_CUexecAffinitySmCount *_smCount; }; /* "cuda/cuda.pxd":1439 * cdef CUexecAffinitySmCount _smCount * * cdef class CUexecAffinityParam_st: # <<<<<<<<<<<<<< * """ * Execution Affinity Parameters */ struct __pyx_obj_4cuda_4cuda_CUexecAffinityParam_st { PyObject_HEAD struct CUexecAffinityParam_st *_val_ptr; struct CUexecAffinityParam_st *_ptr; struct __pyx_obj_4cuda_4cuda_anon_union3 *_param; }; /* "cuda/cuda.pxd":1460 * cdef anon_union3 _param * * cdef class CUctxCigParam_st: # <<<<<<<<<<<<<< * """ * CIG Context Create Params */ struct __pyx_obj_4cuda_4cuda_CUctxCigParam_st { PyObject_HEAD struct CUctxCigParam_st _CUctxCigParam_st__val; struct CUctxCigParam_st *_ptr; }; /* "cuda/cuda.pxd":1480 * cdef ccuda.CUctxCigParam_st* _ptr * * cdef class CUctxCreateParams_st: # <<<<<<<<<<<<<< * """ * Params for creating CUDA context Exactly one of execAffinityParams */ struct __pyx_obj_4cuda_4cuda_CUctxCreateParams_st { PyObject_HEAD struct CUctxCreateParams_st _CUctxCreateParams_st__val; struct CUctxCreateParams_st *_ptr; size_t _execAffinityParams_length; CUexecAffinityParam *_execAffinityParams; size_t _cigParams_length; CUctxCigParam *_cigParams; }; /* "cuda/cuda.pxd":1508 * cdef ccuda.CUctxCigParam* _cigParams * * cdef class CUlibraryHostUniversalFunctionAndDataTable_st: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_CUlibraryHostUniversalFunctionAndDataTable_st { PyObject_HEAD struct CUlibraryHostUniversalFunctionAndDataTable_st _CUlibraryHostUniversalFunctionAndDataTable_st__val; struct CUlibraryHostUniversalFunctionAndDataTable_st *_ptr; }; /* "cuda/cuda.pxd":1530 * cdef ccuda.CUlibraryHostUniversalFunctionAndDataTable_st* _ptr * * cdef class CUDA_MEMCPY2D_st: # <<<<<<<<<<<<<< * """ * 2D memory copy parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY2D_st { PyObject_HEAD struct CUDA_MEMCPY2D_st _CUDA_MEMCPY2D_st__val; struct CUDA_MEMCPY2D_st *_ptr; struct __pyx_obj_4cuda_4cuda_CUdeviceptr *_srcDevice; struct __pyx_obj_4cuda_4cuda_CUarray *_srcArray; struct __pyx_obj_4cuda_4cuda_CUdeviceptr *_dstDevice; struct __pyx_obj_4cuda_4cuda_CUarray *_dstArray; }; /* "cuda/cuda.pxd":1582 * cdef CUarray _dstArray * * cdef class CUDA_MEMCPY3D_st: # <<<<<<<<<<<<<< * """ * 3D memory copy parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY3D_st { PyObject_HEAD struct CUDA_MEMCPY3D_st _CUDA_MEMCPY3D_st__val; struct CUDA_MEMCPY3D_st *_ptr; struct __pyx_obj_4cuda_4cuda_CUdeviceptr *_srcDevice; struct __pyx_obj_4cuda_4cuda_CUarray *_srcArray; struct __pyx_obj_4cuda_4cuda_CUdeviceptr *_dstDevice; struct __pyx_obj_4cuda_4cuda_CUarray *_dstArray; }; /* "cuda/cuda.pxd":1653 * cdef CUarray _dstArray * * cdef class CUDA_MEMCPY3D_PEER_st: # <<<<<<<<<<<<<< * """ * 3D memory cross-context copy parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY3D_PEER_st { PyObject_HEAD struct CUDA_MEMCPY3D_PEER_st _CUDA_MEMCPY3D_PEER_st__val; struct CUDA_MEMCPY3D_PEER_st *_ptr; struct __pyx_obj_4cuda_4cuda_CUdeviceptr *_srcDevice; struct __pyx_obj_4cuda_4cuda_CUarray *_srcArray; struct __pyx_obj_4cuda_4cuda_CUcontext *_srcContext; struct __pyx_obj_4cuda_4cuda_CUdeviceptr *_dstDevice; struct __pyx_obj_4cuda_4cuda_CUarray *_dstArray; struct __pyx_obj_4cuda_4cuda_CUcontext *_dstContext; }; /* "cuda/cuda.pxd":1727 * cdef CUcontext _dstContext * * cdef class CUDA_MEMCPY_NODE_PARAMS_st: # <<<<<<<<<<<<<< * """ * Memcpy node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY_NODE_PARAMS_st { PyObject_HEAD struct CUDA_MEMCPY_NODE_PARAMS_st _CUDA_MEMCPY_NODE_PARAMS_st__val; struct CUDA_MEMCPY_NODE_PARAMS_st *_ptr; struct __pyx_obj_4cuda_4cuda_CUcontext *_copyCtx; struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY3D *_copyParams; }; /* "cuda/cuda.pxd":1753 * cdef CUDA_MEMCPY3D _copyParams * * cdef class CUDA_ARRAY_DESCRIPTOR_st: # <<<<<<<<<<<<<< * """ * Array descriptor */ struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_DESCRIPTOR_st { PyObject_HEAD struct CUDA_ARRAY_DESCRIPTOR_st _CUDA_ARRAY_DESCRIPTOR_st__val; struct CUDA_ARRAY_DESCRIPTOR_st *_ptr; }; /* "cuda/cuda.pxd":1777 * cdef ccuda.CUDA_ARRAY_DESCRIPTOR_st* _ptr * * cdef class CUDA_ARRAY3D_DESCRIPTOR_st: # <<<<<<<<<<<<<< * """ * 3D array descriptor */ struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY3D_DESCRIPTOR_st { PyObject_HEAD struct CUDA_ARRAY3D_DESCRIPTOR_st _CUDA_ARRAY3D_DESCRIPTOR_st__val; struct CUDA_ARRAY3D_DESCRIPTOR_st *_ptr; }; /* "cuda/cuda.pxd":1805 * cdef ccuda.CUDA_ARRAY3D_DESCRIPTOR_st* _ptr * * cdef class anon_struct5: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_anon_struct5 { PyObject_HEAD struct CUDA_ARRAY_SPARSE_PROPERTIES_st *_ptr; }; /* "cuda/cuda.pxd":1824 * cdef ccuda.CUDA_ARRAY_SPARSE_PROPERTIES_st* _ptr * * cdef class CUDA_ARRAY_SPARSE_PROPERTIES_st: # <<<<<<<<<<<<<< * """ * CUDA array sparse properties */ struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_SPARSE_PROPERTIES_st { PyObject_HEAD struct CUDA_ARRAY_SPARSE_PROPERTIES_st _CUDA_ARRAY_SPARSE_PROPERTIES_st__val; struct CUDA_ARRAY_SPARSE_PROPERTIES_st *_ptr; struct __pyx_obj_4cuda_4cuda_anon_struct5 *_tileExtent; }; /* "cuda/cuda.pxd":1852 * cdef anon_struct5 _tileExtent * * cdef class CUDA_ARRAY_MEMORY_REQUIREMENTS_st: # <<<<<<<<<<<<<< * """ * CUDA array memory requirements */ struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_MEMORY_REQUIREMENTS_st { PyObject_HEAD struct CUDA_ARRAY_MEMORY_REQUIREMENTS_st _CUDA_ARRAY_MEMORY_REQUIREMENTS_st__val; struct CUDA_ARRAY_MEMORY_REQUIREMENTS_st *_ptr; }; /* "cuda/cuda.pxd":1874 * cdef ccuda.CUDA_ARRAY_MEMORY_REQUIREMENTS_st* _ptr * * cdef class anon_struct6: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_anon_struct6 { PyObject_HEAD struct CUDA_RESOURCE_DESC_st *_ptr; struct __pyx_obj_4cuda_4cuda_CUarray *_hArray; }; /* "cuda/cuda.pxd":1890 * cdef CUarray _hArray * * cdef class anon_struct7: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_anon_struct7 { PyObject_HEAD struct CUDA_RESOURCE_DESC_st *_ptr; struct __pyx_obj_4cuda_4cuda_CUmipmappedArray *_hMipmappedArray; }; /* "cuda/cuda.pxd":1906 * cdef CUmipmappedArray _hMipmappedArray * * cdef class anon_struct8: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_anon_struct8 { PyObject_HEAD struct CUDA_RESOURCE_DESC_st *_ptr; struct __pyx_obj_4cuda_4cuda_CUdeviceptr *_devPtr; }; /* "cuda/cuda.pxd":1928 * cdef CUdeviceptr _devPtr * * cdef class anon_struct9: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_anon_struct9 { PyObject_HEAD struct CUDA_RESOURCE_DESC_st *_ptr; struct __pyx_obj_4cuda_4cuda_CUdeviceptr *_devPtr; }; /* "cuda/cuda.pxd":1954 * cdef CUdeviceptr _devPtr * * cdef class anon_struct10: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_anon_struct10 { PyObject_HEAD struct CUDA_RESOURCE_DESC_st *_ptr; }; /* "cuda/cuda.pxd":1969 * cdef ccuda.CUDA_RESOURCE_DESC_st* _ptr * * cdef class anon_union4: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_anon_union4 { PyObject_HEAD struct CUDA_RESOURCE_DESC_st *_ptr; struct __pyx_obj_4cuda_4cuda_anon_struct6 *_array; struct __pyx_obj_4cuda_4cuda_anon_struct7 *_mipmap; struct __pyx_obj_4cuda_4cuda_anon_struct8 *_linear; struct __pyx_obj_4cuda_4cuda_anon_struct9 *_pitch2D; struct __pyx_obj_4cuda_4cuda_anon_struct10 *_reserved; }; /* "cuda/cuda.pxd":1997 * cdef anon_struct10 _reserved * * cdef class CUDA_RESOURCE_DESC_st: # <<<<<<<<<<<<<< * """ * CUDA Resource descriptor */ struct __pyx_obj_4cuda_4cuda_CUDA_RESOURCE_DESC_st { PyObject_HEAD struct CUDA_RESOURCE_DESC_st *_val_ptr; struct CUDA_RESOURCE_DESC_st *_ptr; struct __pyx_obj_4cuda_4cuda_anon_union4 *_res; }; /* "cuda/cuda.pxd":2020 * cdef anon_union4 _res * * cdef class CUDA_TEXTURE_DESC_st: # <<<<<<<<<<<<<< * """ * Texture descriptor */ struct __pyx_obj_4cuda_4cuda_CUDA_TEXTURE_DESC_st { PyObject_HEAD struct CUDA_TEXTURE_DESC_st _CUDA_TEXTURE_DESC_st__val; struct CUDA_TEXTURE_DESC_st *_ptr; }; /* "cuda/cuda.pxd":2056 * cdef ccuda.CUDA_TEXTURE_DESC_st* _ptr * * cdef class CUDA_RESOURCE_VIEW_DESC_st: # <<<<<<<<<<<<<< * """ * Resource view descriptor */ struct __pyx_obj_4cuda_4cuda_CUDA_RESOURCE_VIEW_DESC_st { PyObject_HEAD struct CUDA_RESOURCE_VIEW_DESC_st _CUDA_RESOURCE_VIEW_DESC_st__val; struct CUDA_RESOURCE_VIEW_DESC_st *_ptr; }; /* "cuda/cuda.pxd":2090 * cdef ccuda.CUDA_RESOURCE_VIEW_DESC_st* _ptr * * cdef class CUtensorMap_st: # <<<<<<<<<<<<<< * """ * Tensor map descriptor. Requires compiler support for aligning to 64 */ struct __pyx_obj_4cuda_4cuda_CUtensorMap_st { PyObject_HEAD struct CUtensorMap_st _CUtensorMap_st__val; struct CUtensorMap_st *_ptr; }; /* "cuda/cuda.pxd":2109 * cdef ccuda.CUtensorMap_st* _ptr * * cdef class CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st: # <<<<<<<<<<<<<< * """ * GPU Direct v3 tokens */ struct __pyx_obj_4cuda_4cuda_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st { PyObject_HEAD struct CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st _CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st__val; struct CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st *_ptr; }; /* "cuda/cuda.pxd":2129 * cdef ccuda.CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st* _ptr * * cdef class CUDA_LAUNCH_PARAMS_st: # <<<<<<<<<<<<<< * """ * Kernel launch parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_LAUNCH_PARAMS_st { PyObject_HEAD struct CUDA_LAUNCH_PARAMS_st _CUDA_LAUNCH_PARAMS_st__val; struct CUDA_LAUNCH_PARAMS_st *_ptr; struct __pyx_obj_4cuda_4cuda_CUfunction *_function; struct __pyx_obj_4cuda_4cuda_CUstream *_hStream; struct __pyx_obj_4cuda_4_lib_5utils_HelperKernelParams *_ckernelParams; }; /* "cuda/cuda.pxd":2168 * cdef utils.HelperKernelParams _ckernelParams * * cdef class anon_struct11: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_anon_struct11 { PyObject_HEAD struct CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st *_ptr; }; /* "cuda/cuda.pxd":2185 * cdef ccuda.CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st* _ptr * * cdef class anon_union5: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_anon_union5 { PyObject_HEAD struct CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st *_ptr; struct __pyx_obj_4cuda_4cuda_anon_struct11 *_win32; }; /* "cuda/cuda.pxd":2205 * cdef anon_struct11 _win32 * * cdef class CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st: # <<<<<<<<<<<<<< * """ * External memory handle descriptor */ struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st { PyObject_HEAD struct CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st *_val_ptr; struct CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st *_ptr; struct __pyx_obj_4cuda_4cuda_anon_union5 *_handle; }; /* "cuda/cuda.pxd":2232 * cdef anon_union5 _handle * * cdef class CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st: # <<<<<<<<<<<<<< * """ * External memory buffer descriptor */ struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st { PyObject_HEAD struct CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st _CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st__val; struct CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st *_ptr; }; /* "cuda/cuda.pxd":2256 * cdef ccuda.CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st* _ptr * * cdef class CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st: # <<<<<<<<<<<<<< * """ * External memory mipmap descriptor */ struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st { PyObject_HEAD struct CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st _CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st__val; struct CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st *_ptr; struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY3D_DESCRIPTOR *_arrayDesc; }; /* "cuda/cuda.pxd":2282 * cdef CUDA_ARRAY3D_DESCRIPTOR _arrayDesc * * cdef class anon_struct12: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_anon_struct12 { PyObject_HEAD struct CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st *_ptr; }; /* "cuda/cuda.pxd":2299 * cdef ccuda.CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st* _ptr * * cdef class anon_union6: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_anon_union6 { PyObject_HEAD struct CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st *_ptr; struct __pyx_obj_4cuda_4cuda_anon_struct12 *_win32; }; /* "cuda/cuda.pxd":2319 * cdef anon_struct12 _win32 * * cdef class CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st: # <<<<<<<<<<<<<< * """ * External semaphore handle descriptor */ struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st { PyObject_HEAD struct CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st *_val_ptr; struct CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st *_ptr; struct __pyx_obj_4cuda_4cuda_anon_union6 *_handle; }; /* "cuda/cuda.pxd":2344 * cdef anon_union6 _handle * * cdef class anon_struct13: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_anon_struct13 { PyObject_HEAD struct CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st *_ptr; }; /* "cuda/cuda.pxd":2359 * cdef ccuda.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st* _ptr * * cdef class anon_union7: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_anon_union7 { PyObject_HEAD struct CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st *_ptr; }; /* "cuda/cuda.pxd":2376 * cdef ccuda.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st* _ptr * * cdef class anon_struct14: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_anon_struct14 { PyObject_HEAD struct CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st *_ptr; }; /* "cuda/cuda.pxd":2391 * cdef ccuda.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st* _ptr * * cdef class anon_struct15: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_anon_struct15 { PyObject_HEAD struct CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st *_ptr; struct __pyx_obj_4cuda_4cuda_anon_struct13 *_fence; struct __pyx_obj_4cuda_4cuda_anon_union7 *_nvSciSync; struct __pyx_obj_4cuda_4cuda_anon_struct14 *_keyedMutex; }; /* "cuda/cuda.pxd":2415 * cdef anon_struct14 _keyedMutex * * cdef class CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st: # <<<<<<<<<<<<<< * """ * External semaphore signal parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st { PyObject_HEAD struct CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st _CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st__val; struct CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st *_ptr; struct __pyx_obj_4cuda_4cuda_anon_struct15 *_params; }; /* "cuda/cuda.pxd":2445 * cdef anon_struct15 _params * * cdef class anon_struct16: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_anon_struct16 { PyObject_HEAD struct CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st *_ptr; }; /* "cuda/cuda.pxd":2460 * cdef ccuda.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st* _ptr * * cdef class anon_union8: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_anon_union8 { PyObject_HEAD struct CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st *_ptr; }; /* "cuda/cuda.pxd":2477 * cdef ccuda.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st* _ptr * * cdef class anon_struct17: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_anon_struct17 { PyObject_HEAD struct CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st *_ptr; }; /* "cuda/cuda.pxd":2494 * cdef ccuda.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st* _ptr * * cdef class anon_struct18: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_anon_struct18 { PyObject_HEAD struct CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st *_ptr; struct __pyx_obj_4cuda_4cuda_anon_struct16 *_fence; struct __pyx_obj_4cuda_4cuda_anon_union8 *_nvSciSync; struct __pyx_obj_4cuda_4cuda_anon_struct17 *_keyedMutex; }; /* "cuda/cuda.pxd":2518 * cdef anon_struct17 _keyedMutex * * cdef class CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st: # <<<<<<<<<<<<<< * """ * External semaphore wait parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st { PyObject_HEAD struct CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st _CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st__val; struct CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st *_ptr; struct __pyx_obj_4cuda_4cuda_anon_struct18 *_params; }; /* "cuda/cuda.pxd":2548 * cdef anon_struct18 _params * * cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st: # <<<<<<<<<<<<<< * """ * Semaphore signal node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st { PyObject_HEAD struct CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st _CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st__val; struct CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st *_ptr; size_t _extSemArray_length; CUexternalSemaphore *_extSemArray; size_t _paramsArray_length; CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS *_paramsArray; }; /* "cuda/cuda.pxd":2576 * cdef ccuda.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS* _paramsArray * * cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st: # <<<<<<<<<<<<<< * """ * Semaphore signal node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st { PyObject_HEAD struct CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st _CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st__val; struct CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st *_ptr; size_t _extSemArray_length; CUexternalSemaphore *_extSemArray; size_t _paramsArray_length; CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS *_paramsArray; }; /* "cuda/cuda.pxd":2604 * cdef ccuda.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS* _paramsArray * * cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_st: # <<<<<<<<<<<<<< * """ * Semaphore wait node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_st { PyObject_HEAD struct CUDA_EXT_SEM_WAIT_NODE_PARAMS_st _CUDA_EXT_SEM_WAIT_NODE_PARAMS_st__val; struct CUDA_EXT_SEM_WAIT_NODE_PARAMS_st *_ptr; size_t _extSemArray_length; CUexternalSemaphore *_extSemArray; size_t _paramsArray_length; CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS *_paramsArray; }; /* "cuda/cuda.pxd":2632 * cdef ccuda.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS* _paramsArray * * cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st: # <<<<<<<<<<<<<< * """ * Semaphore wait node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st { PyObject_HEAD struct CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st _CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st__val; struct CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st *_ptr; size_t _extSemArray_length; CUexternalSemaphore *_extSemArray; size_t _paramsArray_length; CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS *_paramsArray; }; /* "cuda/cuda.pxd":2660 * cdef ccuda.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS* _paramsArray * * cdef class anon_union9: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_anon_union9 { PyObject_HEAD struct CUarrayMapInfo_st *_ptr; struct __pyx_obj_4cuda_4cuda_CUmipmappedArray *_mipmap; struct __pyx_obj_4cuda_4cuda_CUarray *_array; }; /* "cuda/cuda.pxd":2679 * cdef CUarray _array * * cdef class anon_struct19: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_anon_struct19 { PyObject_HEAD struct CUarrayMapInfo_st *_ptr; }; /* "cuda/cuda.pxd":2708 * cdef ccuda.CUarrayMapInfo_st* _ptr * * cdef class anon_struct20: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_anon_struct20 { PyObject_HEAD struct CUarrayMapInfo_st *_ptr; }; /* "cuda/cuda.pxd":2727 * cdef ccuda.CUarrayMapInfo_st* _ptr * * cdef class anon_union10: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_anon_union10 { PyObject_HEAD struct CUarrayMapInfo_st *_ptr; struct __pyx_obj_4cuda_4cuda_anon_struct19 *_sparseLevel; struct __pyx_obj_4cuda_4cuda_anon_struct20 *_miptail; }; /* "cuda/cuda.pxd":2746 * cdef anon_struct20 _miptail * * cdef class anon_union11: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_anon_union11 { PyObject_HEAD struct CUarrayMapInfo_st *_ptr; struct __pyx_obj_4cuda_4cuda_CUmemGenericAllocationHandle *_memHandle; }; /* "cuda/cuda.pxd":2762 * cdef CUmemGenericAllocationHandle _memHandle * * cdef class CUarrayMapInfo_st: # <<<<<<<<<<<<<< * """ * Specifies the CUDA array or CUDA mipmapped array memory mapping */ struct __pyx_obj_4cuda_4cuda_CUarrayMapInfo_st { PyObject_HEAD struct CUarrayMapInfo_st *_val_ptr; struct CUarrayMapInfo_st *_ptr; struct __pyx_obj_4cuda_4cuda_anon_union9 *_resource; struct __pyx_obj_4cuda_4cuda_anon_union10 *_subresource; struct __pyx_obj_4cuda_4cuda_anon_union11 *_memHandle; }; /* "cuda/cuda.pxd":2804 * cdef anon_union11 _memHandle * * cdef class CUmemLocation_st: # <<<<<<<<<<<<<< * """ * Specifies a memory location. */ struct __pyx_obj_4cuda_4cuda_CUmemLocation_st { PyObject_HEAD struct CUmemLocation_st _CUmemLocation_st__val; struct CUmemLocation_st *_ptr; }; /* "cuda/cuda.pxd":2824 * cdef ccuda.CUmemLocation_st* _ptr * * cdef class anon_struct21: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_anon_struct21 { PyObject_HEAD struct CUmemAllocationProp_st *_ptr; }; /* "cuda/cuda.pxd":2845 * cdef ccuda.CUmemAllocationProp_st* _ptr * * cdef class CUmemAllocationProp_st: # <<<<<<<<<<<<<< * """ * Specifies the allocation properties for a allocation. */ struct __pyx_obj_4cuda_4cuda_CUmemAllocationProp_st { PyObject_HEAD struct CUmemAllocationProp_st _CUmemAllocationProp_st__val; struct CUmemAllocationProp_st *_ptr; struct __pyx_obj_4cuda_4cuda_CUmemLocation *_location; struct __pyx_obj_4cuda_4cuda_anon_struct21 *_allocFlags; }; /* "cuda/cuda.pxd":2877 * cdef anon_struct21 _allocFlags * * cdef class CUmulticastObjectProp_st: # <<<<<<<<<<<<<< * """ * Specifies the properties for a multicast object. */ struct __pyx_obj_4cuda_4cuda_CUmulticastObjectProp_st { PyObject_HEAD struct CUmulticastObjectProp_st _CUmulticastObjectProp_st__val; struct CUmulticastObjectProp_st *_ptr; }; /* "cuda/cuda.pxd":2904 * cdef ccuda.CUmulticastObjectProp_st* _ptr * * cdef class CUmemAccessDesc_st: # <<<<<<<<<<<<<< * """ * Memory access descriptor */ struct __pyx_obj_4cuda_4cuda_CUmemAccessDesc_st { PyObject_HEAD struct CUmemAccessDesc_st _CUmemAccessDesc_st__val; struct CUmemAccessDesc_st *_ptr; struct __pyx_obj_4cuda_4cuda_CUmemLocation *_location; }; /* "cuda/cuda.pxd":2925 * cdef CUmemLocation _location * * cdef class CUgraphExecUpdateResultInfo_st: # <<<<<<<<<<<<<< * """ * Result information returned by cuGraphExecUpdate */ struct __pyx_obj_4cuda_4cuda_CUgraphExecUpdateResultInfo_st { PyObject_HEAD struct CUgraphExecUpdateResultInfo_st _CUgraphExecUpdateResultInfo_st__val; struct CUgraphExecUpdateResultInfo_st *_ptr; struct __pyx_obj_4cuda_4cuda_CUgraphNode *_errorNode; struct __pyx_obj_4cuda_4cuda_CUgraphNode *_errorFromNode; }; /* "cuda/cuda.pxd":2952 * cdef CUgraphNode _errorFromNode * * cdef class CUmemPoolProps_st: # <<<<<<<<<<<<<< * """ * Specifies the properties of allocations made from the pool. */ struct __pyx_obj_4cuda_4cuda_CUmemPoolProps_st { PyObject_HEAD struct CUmemPoolProps_st _CUmemPoolProps_st__val; struct CUmemPoolProps_st *_ptr; struct __pyx_obj_4cuda_4cuda_CUmemLocation *_location; }; /* "cuda/cuda.pxd":2989 * cdef CUmemLocation _location * * cdef class CUmemPoolPtrExportData_st: # <<<<<<<<<<<<<< * """ * Opaque data for exporting a pool allocation */ struct __pyx_obj_4cuda_4cuda_CUmemPoolPtrExportData_st { PyObject_HEAD struct CUmemPoolPtrExportData_st _CUmemPoolPtrExportData_st__val; struct CUmemPoolPtrExportData_st *_ptr; }; /* "cuda/cuda.pxd":3007 * cdef ccuda.CUmemPoolPtrExportData_st* _ptr * * cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v1_st: # <<<<<<<<<<<<<< * """ * Memory allocation node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v1_st { PyObject_HEAD struct CUDA_MEM_ALLOC_NODE_PARAMS_v1_st _CUDA_MEM_ALLOC_NODE_PARAMS_v1_st__val; struct CUDA_MEM_ALLOC_NODE_PARAMS_v1_st *_ptr; struct __pyx_obj_4cuda_4cuda_CUmemPoolProps *_poolProps; size_t _accessDescs_length; CUmemAccessDesc *_accessDescs; struct __pyx_obj_4cuda_4cuda_CUdeviceptr *_dptr; }; /* "cuda/cuda.pxd":3042 * cdef CUdeviceptr _dptr * * cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v2_st: # <<<<<<<<<<<<<< * """ * Memory allocation node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v2_st { PyObject_HEAD struct CUDA_MEM_ALLOC_NODE_PARAMS_v2_st _CUDA_MEM_ALLOC_NODE_PARAMS_v2_st__val; struct CUDA_MEM_ALLOC_NODE_PARAMS_v2_st *_ptr; struct __pyx_obj_4cuda_4cuda_CUmemPoolProps *_poolProps; size_t _accessDescs_length; CUmemAccessDesc *_accessDescs; struct __pyx_obj_4cuda_4cuda_CUdeviceptr *_dptr; }; /* "cuda/cuda.pxd":3077 * cdef CUdeviceptr _dptr * * cdef class CUDA_MEM_FREE_NODE_PARAMS_st: # <<<<<<<<<<<<<< * """ * Memory free node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_MEM_FREE_NODE_PARAMS_st { PyObject_HEAD struct CUDA_MEM_FREE_NODE_PARAMS_st _CUDA_MEM_FREE_NODE_PARAMS_st__val; struct CUDA_MEM_FREE_NODE_PARAMS_st *_ptr; struct __pyx_obj_4cuda_4cuda_CUdeviceptr *_dptr; }; /* "cuda/cuda.pxd":3096 * cdef CUdeviceptr _dptr * * cdef class CUDA_CHILD_GRAPH_NODE_PARAMS_st: # <<<<<<<<<<<<<< * """ * Child graph node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_CHILD_GRAPH_NODE_PARAMS_st { PyObject_HEAD struct CUDA_CHILD_GRAPH_NODE_PARAMS_st _CUDA_CHILD_GRAPH_NODE_PARAMS_st__val; struct CUDA_CHILD_GRAPH_NODE_PARAMS_st *_ptr; struct __pyx_obj_4cuda_4cuda_CUgraph *_graph; }; /* "cuda/cuda.pxd":3116 * cdef CUgraph _graph * * cdef class CUDA_EVENT_RECORD_NODE_PARAMS_st: # <<<<<<<<<<<<<< * """ * Event record node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_EVENT_RECORD_NODE_PARAMS_st { PyObject_HEAD struct CUDA_EVENT_RECORD_NODE_PARAMS_st _CUDA_EVENT_RECORD_NODE_PARAMS_st__val; struct CUDA_EVENT_RECORD_NODE_PARAMS_st *_ptr; struct __pyx_obj_4cuda_4cuda_CUevent *_event; }; /* "cuda/cuda.pxd":3135 * cdef CUevent _event * * cdef class CUDA_EVENT_WAIT_NODE_PARAMS_st: # <<<<<<<<<<<<<< * """ * Event wait node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_EVENT_WAIT_NODE_PARAMS_st { PyObject_HEAD struct CUDA_EVENT_WAIT_NODE_PARAMS_st _CUDA_EVENT_WAIT_NODE_PARAMS_st__val; struct CUDA_EVENT_WAIT_NODE_PARAMS_st *_ptr; struct __pyx_obj_4cuda_4cuda_CUevent *_event; }; /* "cuda/cuda.pxd":3154 * cdef CUevent _event * * cdef class CUgraphNodeParams_st: # <<<<<<<<<<<<<< * """ * Graph node parameters. See cuGraphAddNode. */ struct __pyx_obj_4cuda_4cuda_CUgraphNodeParams_st { PyObject_HEAD struct CUgraphNodeParams_st *_val_ptr; struct CUgraphNodeParams_st *_ptr; struct __pyx_obj_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v3 *_kernel; struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY_NODE_PARAMS *_memcpy; struct __pyx_obj_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_v2 *_memset; struct __pyx_obj_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_v2 *_host; struct __pyx_obj_4cuda_4cuda_CUDA_CHILD_GRAPH_NODE_PARAMS *_graph; struct __pyx_obj_4cuda_4cuda_CUDA_EVENT_WAIT_NODE_PARAMS *_eventWait; struct __pyx_obj_4cuda_4cuda_CUDA_EVENT_RECORD_NODE_PARAMS *_eventRecord; struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2 *_extSemSignal; struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2 *_extSemWait; struct __pyx_obj_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v2 *_alloc; struct __pyx_obj_4cuda_4cuda_CUDA_MEM_FREE_NODE_PARAMS *_free; struct __pyx_obj_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2 *_memOp; struct __pyx_obj_4cuda_4cuda_CUDA_CONDITIONAL_NODE_PARAMS *_conditional; }; /* "cuda/cuda.pxd":3217 * cdef CUDA_CONDITIONAL_NODE_PARAMS _conditional * * cdef class CUdevSmResource_st: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_CUdevSmResource_st { PyObject_HEAD struct CUdevSmResource_st _CUdevSmResource_st__val; struct CUdevSmResource_st *_ptr; }; /* "cuda/cuda.pxd":3234 * cdef ccuda.CUdevSmResource_st* _ptr * * cdef class CUdevResource_st: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_CUdevResource_st { PyObject_HEAD struct CUdevResource_st *_val_ptr; struct CUdevResource_st *_ptr; struct __pyx_obj_4cuda_4cuda_CUdevSmResource *_sm; }; /* "cuda/cuda.pxd":3257 * cdef CUdevSmResource _sm * * cdef class anon_union14: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_anon_union14 { PyObject_HEAD struct __pyx_t_4cuda_5ccuda_CUeglFrame_st *_ptr; }; /* "cuda/cuda.pxd":3274 * cdef ccuda.CUeglFrame_st* _ptr * * cdef class CUeglFrame_st: # <<<<<<<<<<<<<< * """ * CUDA EGLFrame structure Descriptor - structure defining one frame */ struct __pyx_obj_4cuda_4cuda_CUeglFrame_st { PyObject_HEAD struct __pyx_t_4cuda_5ccuda_CUeglFrame_st *_val_ptr; struct __pyx_t_4cuda_5ccuda_CUeglFrame_st *_ptr; struct __pyx_obj_4cuda_4cuda_anon_union14 *_frame; }; /* "cuda/cuda.pxd":3313 * cdef anon_union14 _frame * * cdef class CUdeviceptr: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUdeviceptr { PyObject_HEAD CUdeviceptr _CUdeviceptr__val; CUdeviceptr *_ptr; }; /* "cuda/cuda.pxd":3327 * cdef ccuda.CUdeviceptr* _ptr * * cdef class CUdevice: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUdevice { PyObject_HEAD CUdevice _CUdevice__val; CUdevice *_ptr; }; /* "cuda/cuda.pxd":3341 * cdef ccuda.CUdevice* _ptr * * cdef class CUtexObject: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUtexObject { PyObject_HEAD CUtexObject _CUtexObject__val; CUtexObject *_ptr; }; /* "cuda/cuda.pxd":3355 * cdef ccuda.CUtexObject* _ptr * * cdef class CUsurfObject: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUsurfObject { PyObject_HEAD CUsurfObject _CUsurfObject__val; CUsurfObject *_ptr; }; /* "cuda/cuda.pxd":3369 * cdef ccuda.CUsurfObject* _ptr * * cdef class CUgraphConditionalHandle: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUgraphConditionalHandle { PyObject_HEAD CUgraphConditionalHandle _CUgraphConditionalHandle__val; CUgraphConditionalHandle *_ptr; }; /* "cuda/cuda.pxd":3381 * cdef ccuda.CUgraphConditionalHandle* _ptr * * cdef class CUuuid(CUuuid_st): # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_CUuuid { struct __pyx_obj_4cuda_4cuda_CUuuid_st __pyx_base; }; /* "cuda/cuda.pxd":3396 * pass * * cdef class CUmemFabricHandle_v1(CUmemFabricHandle_st): # <<<<<<<<<<<<<< * """ * Fabric handle - An opaque handle representing a memory allocation */ struct __pyx_obj_4cuda_4cuda_CUmemFabricHandle_v1 { struct __pyx_obj_4cuda_4cuda_CUmemFabricHandle_st __pyx_base; }; /* "cuda/cuda.pxd":3416 * pass * * cdef class CUmemFabricHandle(CUmemFabricHandle_v1): # <<<<<<<<<<<<<< * """ * Fabric handle - An opaque handle representing a memory allocation */ struct __pyx_obj_4cuda_4cuda_CUmemFabricHandle { struct __pyx_obj_4cuda_4cuda_CUmemFabricHandle_v1 __pyx_base; }; /* "cuda/cuda.pxd":3436 * pass * * cdef class CUipcEventHandle_v1(CUipcEventHandle_st): # <<<<<<<<<<<<<< * """ * CUDA IPC event handle */ struct __pyx_obj_4cuda_4cuda_CUipcEventHandle_v1 { struct __pyx_obj_4cuda_4cuda_CUipcEventHandle_st __pyx_base; }; /* "cuda/cuda.pxd":3453 * pass * * cdef class CUipcEventHandle(CUipcEventHandle_v1): # <<<<<<<<<<<<<< * """ * CUDA IPC event handle */ struct __pyx_obj_4cuda_4cuda_CUipcEventHandle { struct __pyx_obj_4cuda_4cuda_CUipcEventHandle_v1 __pyx_base; }; /* "cuda/cuda.pxd":3470 * pass * * cdef class CUipcMemHandle_v1(CUipcMemHandle_st): # <<<<<<<<<<<<<< * """ * CUDA IPC mem handle */ struct __pyx_obj_4cuda_4cuda_CUipcMemHandle_v1 { struct __pyx_obj_4cuda_4cuda_CUipcMemHandle_st __pyx_base; }; /* "cuda/cuda.pxd":3487 * pass * * cdef class CUipcMemHandle(CUipcMemHandle_v1): # <<<<<<<<<<<<<< * """ * CUDA IPC mem handle */ struct __pyx_obj_4cuda_4cuda_CUipcMemHandle { struct __pyx_obj_4cuda_4cuda_CUipcMemHandle_v1 __pyx_base; }; /* "cuda/cuda.pxd":3504 * pass * * cdef class CUstreamBatchMemOpParams_v1(CUstreamBatchMemOpParams_union): # <<<<<<<<<<<<<< * """ * Per-operation parameters for cuStreamBatchMemOp */ struct __pyx_obj_4cuda_4cuda_CUstreamBatchMemOpParams_v1 { struct __pyx_obj_4cuda_4cuda_CUstreamBatchMemOpParams_union __pyx_base; }; /* "cuda/cuda.pxd":3531 * pass * * cdef class CUstreamBatchMemOpParams(CUstreamBatchMemOpParams_v1): # <<<<<<<<<<<<<< * """ * Per-operation parameters for cuStreamBatchMemOp */ struct __pyx_obj_4cuda_4cuda_CUstreamBatchMemOpParams { struct __pyx_obj_4cuda_4cuda_CUstreamBatchMemOpParams_v1 __pyx_base; }; /* "cuda/cuda.pxd":3558 * pass * * cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v1(CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st): # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1 { struct __pyx_obj_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st __pyx_base; }; /* "cuda/cuda.pxd":3579 * pass * * cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS(CUDA_BATCH_MEM_OP_NODE_PARAMS_v1): # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS { struct __pyx_obj_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1 __pyx_base; }; /* "cuda/cuda.pxd":3600 * 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_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2 { struct __pyx_obj_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st __pyx_base; }; /* "cuda/cuda.pxd":3623 * pass * * cdef class CUasyncNotificationInfo(CUasyncNotificationInfo_st): # <<<<<<<<<<<<<< * """ * Information passed to the user via the async notification callback */ struct __pyx_obj_4cuda_4cuda_CUasyncNotificationInfo { struct __pyx_obj_4cuda_4cuda_CUasyncNotificationInfo_st __pyx_base; }; /* "cuda/cuda.pxd":3642 * pass * * cdef class CUdevprop_v1(CUdevprop_st): # <<<<<<<<<<<<<< * """ * Legacy device properties */ struct __pyx_obj_4cuda_4cuda_CUdevprop_v1 { struct __pyx_obj_4cuda_4cuda_CUdevprop_st __pyx_base; }; /* "cuda/cuda.pxd":3677 * pass * * cdef class CUdevprop(CUdevprop_v1): # <<<<<<<<<<<<<< * """ * Legacy device properties */ struct __pyx_obj_4cuda_4cuda_CUdevprop { struct __pyx_obj_4cuda_4cuda_CUdevprop_v1 __pyx_base; }; /* "cuda/cuda.pxd":3712 * pass * * cdef class CUaccessPolicyWindow_v1(CUaccessPolicyWindow_st): # <<<<<<<<<<<<<< * """ * Specifies an access policy for a window, a contiguous extent of */ struct __pyx_obj_4cuda_4cuda_CUaccessPolicyWindow_v1 { struct __pyx_obj_4cuda_4cuda_CUaccessPolicyWindow_st __pyx_base; }; /* "cuda/cuda.pxd":3749 * pass * * cdef class CUaccessPolicyWindow(CUaccessPolicyWindow_v1): # <<<<<<<<<<<<<< * """ * Specifies an access policy for a window, a contiguous extent of */ struct __pyx_obj_4cuda_4cuda_CUaccessPolicyWindow { struct __pyx_obj_4cuda_4cuda_CUaccessPolicyWindow_v1 __pyx_base; }; /* "cuda/cuda.pxd":3786 * pass * * cdef class CUDA_KERNEL_NODE_PARAMS_v1(CUDA_KERNEL_NODE_PARAMS_st): # <<<<<<<<<<<<<< * """ * GPU kernel node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v1 { struct __pyx_obj_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_st __pyx_base; }; /* "cuda/cuda.pxd":3821 * pass * * cdef class CUDA_KERNEL_NODE_PARAMS_v2(CUDA_KERNEL_NODE_PARAMS_v2_st): # <<<<<<<<<<<<<< * """ * GPU kernel node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v2 { struct __pyx_obj_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v2_st __pyx_base; }; /* "cuda/cuda.pxd":3862 * pass * * cdef class CUDA_KERNEL_NODE_PARAMS(CUDA_KERNEL_NODE_PARAMS_v2): # <<<<<<<<<<<<<< * """ * GPU kernel node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS { struct __pyx_obj_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v2 __pyx_base; }; /* "cuda/cuda.pxd":3903 * pass * * cdef class CUDA_KERNEL_NODE_PARAMS_v3(CUDA_KERNEL_NODE_PARAMS_v3_st): # <<<<<<<<<<<<<< * """ * GPU kernel node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v3 { struct __pyx_obj_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v3_st __pyx_base; }; /* "cuda/cuda.pxd":3944 * pass * * cdef class CUDA_MEMSET_NODE_PARAMS_v1(CUDA_MEMSET_NODE_PARAMS_st): # <<<<<<<<<<<<<< * """ * Memset node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_v1 { struct __pyx_obj_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_st __pyx_base; }; /* "cuda/cuda.pxd":3971 * pass * * cdef class CUDA_MEMSET_NODE_PARAMS(CUDA_MEMSET_NODE_PARAMS_v1): # <<<<<<<<<<<<<< * """ * Memset node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS { struct __pyx_obj_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_v1 __pyx_base; }; /* "cuda/cuda.pxd":3998 * pass * * cdef class CUDA_MEMSET_NODE_PARAMS_v2(CUDA_MEMSET_NODE_PARAMS_v2_st): # <<<<<<<<<<<<<< * """ * Memset node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_v2 { struct __pyx_obj_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_v2_st __pyx_base; }; /* "cuda/cuda.pxd":4027 * pass * * cdef class CUDA_HOST_NODE_PARAMS_v1(CUDA_HOST_NODE_PARAMS_st): # <<<<<<<<<<<<<< * """ * Host node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_v1 { struct __pyx_obj_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_st __pyx_base; }; /* "cuda/cuda.pxd":4046 * pass * * cdef class CUDA_HOST_NODE_PARAMS(CUDA_HOST_NODE_PARAMS_v1): # <<<<<<<<<<<<<< * """ * Host node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_HOST_NODE_PARAMS { struct __pyx_obj_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_v1 __pyx_base; }; /* "cuda/cuda.pxd":4065 * pass * * cdef class CUDA_HOST_NODE_PARAMS_v2(CUDA_HOST_NODE_PARAMS_v2_st): # <<<<<<<<<<<<<< * """ * Host node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_v2 { struct __pyx_obj_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_v2_st __pyx_base; }; /* "cuda/cuda.pxd":4084 * pass * * cdef class CUgraphEdgeData(CUgraphEdgeData_st): # <<<<<<<<<<<<<< * """ * Optional annotation for edges in a CUDA graph. Note, all edges */ struct __pyx_obj_4cuda_4cuda_CUgraphEdgeData { struct __pyx_obj_4cuda_4cuda_CUgraphEdgeData_st __pyx_base; }; /* "cuda/cuda.pxd":4126 * pass * * cdef class CUDA_GRAPH_INSTANTIATE_PARAMS(CUDA_GRAPH_INSTANTIATE_PARAMS_st): # <<<<<<<<<<<<<< * """ * Graph instantiation parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_GRAPH_INSTANTIATE_PARAMS { struct __pyx_obj_4cuda_4cuda_CUDA_GRAPH_INSTANTIATE_PARAMS_st __pyx_base; }; /* "cuda/cuda.pxd":4149 * pass * * cdef class CUlaunchMemSyncDomainMap(CUlaunchMemSyncDomainMap_st): # <<<<<<<<<<<<<< * """ * Memory Synchronization Domain map See ::cudaLaunchMemSyncDomain. */ struct __pyx_obj_4cuda_4cuda_CUlaunchMemSyncDomainMap { struct __pyx_obj_4cuda_4cuda_CUlaunchMemSyncDomainMap_st __pyx_base; }; /* "cuda/cuda.pxd":4174 * pass * * cdef class CUlaunchAttributeValue(CUlaunchAttributeValue_union): # <<<<<<<<<<<<<< * """ * Launch attributes union; used as value field of CUlaunchAttribute */ struct __pyx_obj_4cuda_4cuda_CUlaunchAttributeValue { struct __pyx_obj_4cuda_4cuda_CUlaunchAttributeValue_union __pyx_base; }; /* "cuda/cuda.pxd":4247 * pass * * cdef class CUlaunchAttribute(CUlaunchAttribute_st): # <<<<<<<<<<<<<< * """ * Launch attribute */ struct __pyx_obj_4cuda_4cuda_CUlaunchAttribute { struct __pyx_obj_4cuda_4cuda_CUlaunchAttribute_st __pyx_base; }; /* "cuda/cuda.pxd":4266 * pass * * cdef class CUlaunchConfig(CUlaunchConfig_st): # <<<<<<<<<<<<<< * """ * CUDA extensible launch configuration */ struct __pyx_obj_4cuda_4cuda_CUlaunchConfig { struct __pyx_obj_4cuda_4cuda_CUlaunchConfig_st __pyx_base; }; /* "cuda/cuda.pxd":4301 * pass * * cdef class CUkernelNodeAttrValue_v1(CUlaunchAttributeValue): # <<<<<<<<<<<<<< * """ * Launch attributes union; used as value field of CUlaunchAttribute */ struct __pyx_obj_4cuda_4cuda_CUkernelNodeAttrValue_v1 { struct __pyx_obj_4cuda_4cuda_CUlaunchAttributeValue __pyx_base; }; /* "cuda/cuda.pxd":4374 * pass * * cdef class CUkernelNodeAttrValue(CUkernelNodeAttrValue_v1): # <<<<<<<<<<<<<< * """ * Launch attributes union; used as value field of CUlaunchAttribute */ struct __pyx_obj_4cuda_4cuda_CUkernelNodeAttrValue { struct __pyx_obj_4cuda_4cuda_CUkernelNodeAttrValue_v1 __pyx_base; }; /* "cuda/cuda.pxd":4447 * pass * * cdef class CUstreamAttrValue_v1(CUlaunchAttributeValue): # <<<<<<<<<<<<<< * """ * Launch attributes union; used as value field of CUlaunchAttribute */ struct __pyx_obj_4cuda_4cuda_CUstreamAttrValue_v1 { struct __pyx_obj_4cuda_4cuda_CUlaunchAttributeValue __pyx_base; }; /* "cuda/cuda.pxd":4520 * pass * * cdef class CUstreamAttrValue(CUstreamAttrValue_v1): # <<<<<<<<<<<<<< * """ * Launch attributes union; used as value field of CUlaunchAttribute */ struct __pyx_obj_4cuda_4cuda_CUstreamAttrValue { struct __pyx_obj_4cuda_4cuda_CUstreamAttrValue_v1 __pyx_base; }; /* "cuda/cuda.pxd":4593 * pass * * cdef class CUexecAffinitySmCount_v1(CUexecAffinitySmCount_st): # <<<<<<<<<<<<<< * """ * Value for CU_EXEC_AFFINITY_TYPE_SM_COUNT */ struct __pyx_obj_4cuda_4cuda_CUexecAffinitySmCount_v1 { struct __pyx_obj_4cuda_4cuda_CUexecAffinitySmCount_st __pyx_base; }; /* "cuda/cuda.pxd":4610 * pass * * cdef class CUexecAffinitySmCount(CUexecAffinitySmCount_v1): # <<<<<<<<<<<<<< * """ * Value for CU_EXEC_AFFINITY_TYPE_SM_COUNT */ struct __pyx_obj_4cuda_4cuda_CUexecAffinitySmCount { struct __pyx_obj_4cuda_4cuda_CUexecAffinitySmCount_v1 __pyx_base; }; /* "cuda/cuda.pxd":4627 * pass * * cdef class CUexecAffinityParam_v1(CUexecAffinityParam_st): # <<<<<<<<<<<<<< * """ * Execution Affinity Parameters */ struct __pyx_obj_4cuda_4cuda_CUexecAffinityParam_v1 { struct __pyx_obj_4cuda_4cuda_CUexecAffinityParam_st __pyx_base; }; /* "cuda/cuda.pxd":4646 * pass * * cdef class CUexecAffinityParam(CUexecAffinityParam_v1): # <<<<<<<<<<<<<< * """ * Execution Affinity Parameters */ struct __pyx_obj_4cuda_4cuda_CUexecAffinityParam { struct __pyx_obj_4cuda_4cuda_CUexecAffinityParam_v1 __pyx_base; }; /* "cuda/cuda.pxd":4665 * pass * * cdef class CUctxCigParam(CUctxCigParam_st): # <<<<<<<<<<<<<< * """ * CIG Context Create Params */ struct __pyx_obj_4cuda_4cuda_CUctxCigParam { struct __pyx_obj_4cuda_4cuda_CUctxCigParam_st __pyx_base; }; /* "cuda/cuda.pxd":4684 * pass * * cdef class CUctxCreateParams(CUctxCreateParams_st): # <<<<<<<<<<<<<< * """ * Params for creating CUDA context Exactly one of execAffinityParams */ struct __pyx_obj_4cuda_4cuda_CUctxCreateParams { struct __pyx_obj_4cuda_4cuda_CUctxCreateParams_st __pyx_base; }; /* "cuda/cuda.pxd":4706 * pass * * cdef class CUlibraryHostUniversalFunctionAndDataTable(CUlibraryHostUniversalFunctionAndDataTable_st): # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_CUlibraryHostUniversalFunctionAndDataTable { struct __pyx_obj_4cuda_4cuda_CUlibraryHostUniversalFunctionAndDataTable_st __pyx_base; }; /* "cuda/cuda.pxd":4727 * pass * * cdef class CUDA_MEMCPY2D_v2(CUDA_MEMCPY2D_st): # <<<<<<<<<<<<<< * """ * 2D memory copy parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY2D_v2 { struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY2D_st __pyx_base; }; /* "cuda/cuda.pxd":4774 * pass * * cdef class CUDA_MEMCPY2D(CUDA_MEMCPY2D_v2): # <<<<<<<<<<<<<< * """ * 2D memory copy parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY2D { struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY2D_v2 __pyx_base; }; /* "cuda/cuda.pxd":4821 * pass * * cdef class CUDA_MEMCPY3D_v2(CUDA_MEMCPY3D_st): # <<<<<<<<<<<<<< * """ * 3D memory copy parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY3D_v2 { struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY3D_st __pyx_base; }; /* "cuda/cuda.pxd":4887 * pass * * cdef class CUDA_MEMCPY3D(CUDA_MEMCPY3D_v2): # <<<<<<<<<<<<<< * """ * 3D memory copy parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY3D { struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY3D_v2 __pyx_base; }; /* "cuda/cuda.pxd":4953 * pass * * cdef class CUDA_MEMCPY3D_PEER_v1(CUDA_MEMCPY3D_PEER_st): # <<<<<<<<<<<<<< * """ * 3D memory cross-context copy parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY3D_PEER_v1 { struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY3D_PEER_st __pyx_base; }; /* "cuda/cuda.pxd":5020 * pass * * cdef class CUDA_MEMCPY3D_PEER(CUDA_MEMCPY3D_PEER_v1): # <<<<<<<<<<<<<< * """ * 3D memory cross-context copy parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY3D_PEER { struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY3D_PEER_v1 __pyx_base; }; /* "cuda/cuda.pxd":5087 * pass * * cdef class CUDA_MEMCPY_NODE_PARAMS(CUDA_MEMCPY_NODE_PARAMS_st): # <<<<<<<<<<<<<< * """ * Memcpy node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY_NODE_PARAMS { struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY_NODE_PARAMS_st __pyx_base; }; /* "cuda/cuda.pxd":5110 * pass * * cdef class CUDA_ARRAY_DESCRIPTOR_v2(CUDA_ARRAY_DESCRIPTOR_st): # <<<<<<<<<<<<<< * """ * Array descriptor */ struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_DESCRIPTOR_v2 { struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_DESCRIPTOR_st __pyx_base; }; /* "cuda/cuda.pxd":5133 * pass * * cdef class CUDA_ARRAY_DESCRIPTOR(CUDA_ARRAY_DESCRIPTOR_v2): # <<<<<<<<<<<<<< * """ * Array descriptor */ struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_DESCRIPTOR { struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_DESCRIPTOR_v2 __pyx_base; }; /* "cuda/cuda.pxd":5156 * pass * * cdef class CUDA_ARRAY3D_DESCRIPTOR_v2(CUDA_ARRAY3D_DESCRIPTOR_st): # <<<<<<<<<<<<<< * """ * 3D array descriptor */ struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY3D_DESCRIPTOR_v2 { struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY3D_DESCRIPTOR_st __pyx_base; }; /* "cuda/cuda.pxd":5183 * pass * * cdef class CUDA_ARRAY3D_DESCRIPTOR(CUDA_ARRAY3D_DESCRIPTOR_v2): # <<<<<<<<<<<<<< * """ * 3D array descriptor */ struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY3D_DESCRIPTOR { struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY3D_DESCRIPTOR_v2 __pyx_base; }; /* "cuda/cuda.pxd":5210 * pass * * cdef class CUDA_ARRAY_SPARSE_PROPERTIES_v1(CUDA_ARRAY_SPARSE_PROPERTIES_st): # <<<<<<<<<<<<<< * """ * CUDA array sparse properties */ struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_SPARSE_PROPERTIES_v1 { struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_SPARSE_PROPERTIES_st __pyx_base; }; /* "cuda/cuda.pxd":5236 * pass * * cdef class CUDA_ARRAY_SPARSE_PROPERTIES(CUDA_ARRAY_SPARSE_PROPERTIES_v1): # <<<<<<<<<<<<<< * """ * CUDA array sparse properties */ struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_SPARSE_PROPERTIES { struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_SPARSE_PROPERTIES_v1 __pyx_base; }; /* "cuda/cuda.pxd":5262 * pass * * cdef class CUDA_ARRAY_MEMORY_REQUIREMENTS_v1(CUDA_ARRAY_MEMORY_REQUIREMENTS_st): # <<<<<<<<<<<<<< * """ * CUDA array memory requirements */ struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_MEMORY_REQUIREMENTS_v1 { struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_MEMORY_REQUIREMENTS_st __pyx_base; }; /* "cuda/cuda.pxd":5283 * pass * * cdef class CUDA_ARRAY_MEMORY_REQUIREMENTS(CUDA_ARRAY_MEMORY_REQUIREMENTS_v1): # <<<<<<<<<<<<<< * """ * CUDA array memory requirements */ struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_MEMORY_REQUIREMENTS { struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_MEMORY_REQUIREMENTS_v1 __pyx_base; }; /* "cuda/cuda.pxd":5304 * pass * * cdef class CUDA_RESOURCE_DESC_v1(CUDA_RESOURCE_DESC_st): # <<<<<<<<<<<<<< * """ * CUDA Resource descriptor */ struct __pyx_obj_4cuda_4cuda_CUDA_RESOURCE_DESC_v1 { struct __pyx_obj_4cuda_4cuda_CUDA_RESOURCE_DESC_st __pyx_base; }; /* "cuda/cuda.pxd":5325 * pass * * cdef class CUDA_RESOURCE_DESC(CUDA_RESOURCE_DESC_v1): # <<<<<<<<<<<<<< * """ * CUDA Resource descriptor */ struct __pyx_obj_4cuda_4cuda_CUDA_RESOURCE_DESC { struct __pyx_obj_4cuda_4cuda_CUDA_RESOURCE_DESC_v1 __pyx_base; }; /* "cuda/cuda.pxd":5346 * pass * * cdef class CUDA_TEXTURE_DESC_v1(CUDA_TEXTURE_DESC_st): # <<<<<<<<<<<<<< * """ * Texture descriptor */ struct __pyx_obj_4cuda_4cuda_CUDA_TEXTURE_DESC_v1 { struct __pyx_obj_4cuda_4cuda_CUDA_TEXTURE_DESC_st __pyx_base; }; /* "cuda/cuda.pxd":5381 * pass * * cdef class CUDA_TEXTURE_DESC(CUDA_TEXTURE_DESC_v1): # <<<<<<<<<<<<<< * """ * Texture descriptor */ struct __pyx_obj_4cuda_4cuda_CUDA_TEXTURE_DESC { struct __pyx_obj_4cuda_4cuda_CUDA_TEXTURE_DESC_v1 __pyx_base; }; /* "cuda/cuda.pxd":5416 * pass * * cdef class CUDA_RESOURCE_VIEW_DESC_v1(CUDA_RESOURCE_VIEW_DESC_st): # <<<<<<<<<<<<<< * """ * Resource view descriptor */ struct __pyx_obj_4cuda_4cuda_CUDA_RESOURCE_VIEW_DESC_v1 { struct __pyx_obj_4cuda_4cuda_CUDA_RESOURCE_VIEW_DESC_st __pyx_base; }; /* "cuda/cuda.pxd":5449 * pass * * cdef class CUDA_RESOURCE_VIEW_DESC(CUDA_RESOURCE_VIEW_DESC_v1): # <<<<<<<<<<<<<< * """ * Resource view descriptor */ struct __pyx_obj_4cuda_4cuda_CUDA_RESOURCE_VIEW_DESC { struct __pyx_obj_4cuda_4cuda_CUDA_RESOURCE_VIEW_DESC_v1 __pyx_base; }; /* "cuda/cuda.pxd":5482 * pass * * cdef class CUtensorMap(CUtensorMap_st): # <<<<<<<<<<<<<< * """ * Tensor map descriptor. Requires compiler support for aligning to 64 */ struct __pyx_obj_4cuda_4cuda_CUtensorMap { struct __pyx_obj_4cuda_4cuda_CUtensorMap_st __pyx_base; }; /* "cuda/cuda.pxd":5500 * pass * * cdef class CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1(CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st): # <<<<<<<<<<<<<< * """ * GPU Direct v3 tokens */ struct __pyx_obj_4cuda_4cuda_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1 { struct __pyx_obj_4cuda_4cuda_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st __pyx_base; }; /* "cuda/cuda.pxd":5519 * pass * * cdef class CUDA_POINTER_ATTRIBUTE_P2P_TOKENS(CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1): # <<<<<<<<<<<<<< * """ * GPU Direct v3 tokens */ struct __pyx_obj_4cuda_4cuda_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS { struct __pyx_obj_4cuda_4cuda_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1 __pyx_base; }; /* "cuda/cuda.pxd":5538 * pass * * cdef class CUDA_LAUNCH_PARAMS_v1(CUDA_LAUNCH_PARAMS_st): # <<<<<<<<<<<<<< * """ * Kernel launch parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_LAUNCH_PARAMS_v1 { struct __pyx_obj_4cuda_4cuda_CUDA_LAUNCH_PARAMS_st __pyx_base; }; /* "cuda/cuda.pxd":5573 * pass * * cdef class CUDA_LAUNCH_PARAMS(CUDA_LAUNCH_PARAMS_v1): # <<<<<<<<<<<<<< * """ * Kernel launch parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_LAUNCH_PARAMS { struct __pyx_obj_4cuda_4cuda_CUDA_LAUNCH_PARAMS_v1 __pyx_base; }; /* "cuda/cuda.pxd":5608 * pass * * cdef class CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1(CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st): # <<<<<<<<<<<<<< * """ * External memory handle descriptor */ struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1 { struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st __pyx_base; }; /* "cuda/cuda.pxd":5633 * pass * * cdef class CUDA_EXTERNAL_MEMORY_HANDLE_DESC(CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1): # <<<<<<<<<<<<<< * """ * External memory handle descriptor */ struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_HANDLE_DESC { struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1 __pyx_base; }; /* "cuda/cuda.pxd":5658 * pass * * cdef class CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1(CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st): # <<<<<<<<<<<<<< * """ * External memory buffer descriptor */ struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1 { struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st __pyx_base; }; /* "cuda/cuda.pxd":5681 * pass * * cdef class CUDA_EXTERNAL_MEMORY_BUFFER_DESC(CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1): # <<<<<<<<<<<<<< * """ * External memory buffer descriptor */ struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_BUFFER_DESC { struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1 __pyx_base; }; /* "cuda/cuda.pxd":5704 * 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_4cuda_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1 { struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st __pyx_base; }; /* "cuda/cuda.pxd":5728 * pass * * cdef class CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC(CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1): # <<<<<<<<<<<<<< * """ * External memory mipmap descriptor */ struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC { struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1 __pyx_base; }; /* "cuda/cuda.pxd":5752 * pass * * cdef class CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1(CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st): # <<<<<<<<<<<<<< * """ * External semaphore handle descriptor */ struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1 { struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st __pyx_base; }; /* "cuda/cuda.pxd":5775 * pass * * cdef class CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC(CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1): # <<<<<<<<<<<<<< * """ * External semaphore handle descriptor */ struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC { struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1 __pyx_base; }; /* "cuda/cuda.pxd":5798 * pass * * cdef class CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1(CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st): # <<<<<<<<<<<<<< * """ * External semaphore signal parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1 { struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st __pyx_base; }; /* "cuda/cuda.pxd":5826 * pass * * cdef class CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS(CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1): # <<<<<<<<<<<<<< * """ * External semaphore signal parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS { struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1 __pyx_base; }; /* "cuda/cuda.pxd":5854 * pass * * cdef class CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1(CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st): # <<<<<<<<<<<<<< * """ * External semaphore wait parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1 { struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st __pyx_base; }; /* "cuda/cuda.pxd":5882 * pass * * cdef class CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS(CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1): # <<<<<<<<<<<<<< * """ * External semaphore wait parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS { struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1 __pyx_base; }; /* "cuda/cuda.pxd":5910 * 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_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1 { struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st __pyx_base; }; /* "cuda/cuda.pxd":5932 * pass * * cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS(CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1): # <<<<<<<<<<<<<< * """ * Semaphore signal node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS { struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1 __pyx_base; }; /* "cuda/cuda.pxd":5954 * 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_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2 { struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st __pyx_base; }; /* "cuda/cuda.pxd":5976 * 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_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1 { struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_st __pyx_base; }; /* "cuda/cuda.pxd":5998 * pass * * cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS(CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1): # <<<<<<<<<<<<<< * """ * Semaphore wait node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS { struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1 __pyx_base; }; /* "cuda/cuda.pxd":6020 * 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_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2 { struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st __pyx_base; }; /* "cuda/cuda.pxd":6042 * pass * * cdef class CUmemGenericAllocationHandle: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUmemGenericAllocationHandle { PyObject_HEAD CUmemGenericAllocationHandle _CUmemGenericAllocationHandle__val; CUmemGenericAllocationHandle *_ptr; }; /* "cuda/cuda.pxd":6054 * cdef ccuda.CUmemGenericAllocationHandle* _ptr * * cdef class CUarrayMapInfo_v1(CUarrayMapInfo_st): # <<<<<<<<<<<<<< * """ * Specifies the CUDA array or CUDA mipmapped array memory mapping */ struct __pyx_obj_4cuda_4cuda_CUarrayMapInfo_v1 { struct __pyx_obj_4cuda_4cuda_CUarrayMapInfo_st __pyx_base; }; /* "cuda/cuda.pxd":6092 * pass * * cdef class CUarrayMapInfo(CUarrayMapInfo_v1): # <<<<<<<<<<<<<< * """ * Specifies the CUDA array or CUDA mipmapped array memory mapping */ struct __pyx_obj_4cuda_4cuda_CUarrayMapInfo { struct __pyx_obj_4cuda_4cuda_CUarrayMapInfo_v1 __pyx_base; }; /* "cuda/cuda.pxd":6130 * pass * * cdef class CUmemLocation_v1(CUmemLocation_st): # <<<<<<<<<<<<<< * """ * Specifies a memory location. */ struct __pyx_obj_4cuda_4cuda_CUmemLocation_v1 { struct __pyx_obj_4cuda_4cuda_CUmemLocation_st __pyx_base; }; /* "cuda/cuda.pxd":6149 * pass * * cdef class CUmemLocation(CUmemLocation_v1): # <<<<<<<<<<<<<< * """ * Specifies a memory location. */ struct __pyx_obj_4cuda_4cuda_CUmemLocation { struct __pyx_obj_4cuda_4cuda_CUmemLocation_v1 __pyx_base; }; /* "cuda/cuda.pxd":6168 * pass * * cdef class CUmemAllocationProp_v1(CUmemAllocationProp_st): # <<<<<<<<<<<<<< * """ * Specifies the allocation properties for a allocation. */ struct __pyx_obj_4cuda_4cuda_CUmemAllocationProp_v1 { struct __pyx_obj_4cuda_4cuda_CUmemAllocationProp_st __pyx_base; }; /* "cuda/cuda.pxd":6197 * pass * * cdef class CUmemAllocationProp(CUmemAllocationProp_v1): # <<<<<<<<<<<<<< * """ * Specifies the allocation properties for a allocation. */ struct __pyx_obj_4cuda_4cuda_CUmemAllocationProp { struct __pyx_obj_4cuda_4cuda_CUmemAllocationProp_v1 __pyx_base; }; /* "cuda/cuda.pxd":6226 * pass * * cdef class CUmulticastObjectProp_v1(CUmulticastObjectProp_st): # <<<<<<<<<<<<<< * """ * Specifies the properties for a multicast object. */ struct __pyx_obj_4cuda_4cuda_CUmulticastObjectProp_v1 { struct __pyx_obj_4cuda_4cuda_CUmulticastObjectProp_st __pyx_base; }; /* "cuda/cuda.pxd":6252 * pass * * cdef class CUmulticastObjectProp(CUmulticastObjectProp_v1): # <<<<<<<<<<<<<< * """ * Specifies the properties for a multicast object. */ struct __pyx_obj_4cuda_4cuda_CUmulticastObjectProp { struct __pyx_obj_4cuda_4cuda_CUmulticastObjectProp_v1 __pyx_base; }; /* "cuda/cuda.pxd":6278 * pass * * cdef class CUmemAccessDesc_v1(CUmemAccessDesc_st): # <<<<<<<<<<<<<< * """ * Memory access descriptor */ struct __pyx_obj_4cuda_4cuda_CUmemAccessDesc_v1 { struct __pyx_obj_4cuda_4cuda_CUmemAccessDesc_st __pyx_base; }; /* "cuda/cuda.pxd":6297 * pass * * cdef class CUmemAccessDesc(CUmemAccessDesc_v1): # <<<<<<<<<<<<<< * """ * Memory access descriptor */ struct __pyx_obj_4cuda_4cuda_CUmemAccessDesc { struct __pyx_obj_4cuda_4cuda_CUmemAccessDesc_v1 __pyx_base; }; /* "cuda/cuda.pxd":6316 * pass * * cdef class CUgraphExecUpdateResultInfo_v1(CUgraphExecUpdateResultInfo_st): # <<<<<<<<<<<<<< * """ * Result information returned by cuGraphExecUpdate */ struct __pyx_obj_4cuda_4cuda_CUgraphExecUpdateResultInfo_v1 { struct __pyx_obj_4cuda_4cuda_CUgraphExecUpdateResultInfo_st __pyx_base; }; /* "cuda/cuda.pxd":6340 * pass * * cdef class CUgraphExecUpdateResultInfo(CUgraphExecUpdateResultInfo_v1): # <<<<<<<<<<<<<< * """ * Result information returned by cuGraphExecUpdate */ struct __pyx_obj_4cuda_4cuda_CUgraphExecUpdateResultInfo { struct __pyx_obj_4cuda_4cuda_CUgraphExecUpdateResultInfo_v1 __pyx_base; }; /* "cuda/cuda.pxd":6364 * pass * * cdef class CUmemPoolProps_v1(CUmemPoolProps_st): # <<<<<<<<<<<<<< * """ * Specifies the properties of allocations made from the pool. */ struct __pyx_obj_4cuda_4cuda_CUmemPoolProps_v1 { struct __pyx_obj_4cuda_4cuda_CUmemPoolProps_st __pyx_base; }; /* "cuda/cuda.pxd":6399 * pass * * cdef class CUmemPoolProps(CUmemPoolProps_v1): # <<<<<<<<<<<<<< * """ * Specifies the properties of allocations made from the pool. */ struct __pyx_obj_4cuda_4cuda_CUmemPoolProps { struct __pyx_obj_4cuda_4cuda_CUmemPoolProps_v1 __pyx_base; }; /* "cuda/cuda.pxd":6434 * pass * * cdef class CUmemPoolPtrExportData_v1(CUmemPoolPtrExportData_st): # <<<<<<<<<<<<<< * """ * Opaque data for exporting a pool allocation */ struct __pyx_obj_4cuda_4cuda_CUmemPoolPtrExportData_v1 { struct __pyx_obj_4cuda_4cuda_CUmemPoolPtrExportData_st __pyx_base; }; /* "cuda/cuda.pxd":6451 * pass * * cdef class CUmemPoolPtrExportData(CUmemPoolPtrExportData_v1): # <<<<<<<<<<<<<< * """ * Opaque data for exporting a pool allocation */ struct __pyx_obj_4cuda_4cuda_CUmemPoolPtrExportData { struct __pyx_obj_4cuda_4cuda_CUmemPoolPtrExportData_v1 __pyx_base; }; /* "cuda/cuda.pxd":6468 * pass * * cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v1(CUDA_MEM_ALLOC_NODE_PARAMS_v1_st): # <<<<<<<<<<<<<< * """ * Memory allocation node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v1 { struct __pyx_obj_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v1_st __pyx_base; }; /* "cuda/cuda.pxd":6497 * pass * * cdef class CUDA_MEM_ALLOC_NODE_PARAMS(CUDA_MEM_ALLOC_NODE_PARAMS_v1): # <<<<<<<<<<<<<< * """ * Memory allocation node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS { struct __pyx_obj_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v1 __pyx_base; }; /* "cuda/cuda.pxd":6526 * pass * * cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v2(CUDA_MEM_ALLOC_NODE_PARAMS_v2_st): # <<<<<<<<<<<<<< * """ * Memory allocation node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v2 { struct __pyx_obj_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v2_st __pyx_base; }; /* "cuda/cuda.pxd":6555 * pass * * cdef class CUDA_MEM_FREE_NODE_PARAMS(CUDA_MEM_FREE_NODE_PARAMS_st): # <<<<<<<<<<<<<< * """ * Memory free node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_MEM_FREE_NODE_PARAMS { struct __pyx_obj_4cuda_4cuda_CUDA_MEM_FREE_NODE_PARAMS_st __pyx_base; }; /* "cuda/cuda.pxd":6572 * pass * * cdef class CUDA_CHILD_GRAPH_NODE_PARAMS(CUDA_CHILD_GRAPH_NODE_PARAMS_st): # <<<<<<<<<<<<<< * """ * Child graph node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_CHILD_GRAPH_NODE_PARAMS { struct __pyx_obj_4cuda_4cuda_CUDA_CHILD_GRAPH_NODE_PARAMS_st __pyx_base; }; /* "cuda/cuda.pxd":6590 * pass * * cdef class CUDA_EVENT_RECORD_NODE_PARAMS(CUDA_EVENT_RECORD_NODE_PARAMS_st): # <<<<<<<<<<<<<< * """ * Event record node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_EVENT_RECORD_NODE_PARAMS { struct __pyx_obj_4cuda_4cuda_CUDA_EVENT_RECORD_NODE_PARAMS_st __pyx_base; }; /* "cuda/cuda.pxd":6607 * pass * * cdef class CUDA_EVENT_WAIT_NODE_PARAMS(CUDA_EVENT_WAIT_NODE_PARAMS_st): # <<<<<<<<<<<<<< * """ * Event wait node parameters */ struct __pyx_obj_4cuda_4cuda_CUDA_EVENT_WAIT_NODE_PARAMS { struct __pyx_obj_4cuda_4cuda_CUDA_EVENT_WAIT_NODE_PARAMS_st __pyx_base; }; /* "cuda/cuda.pxd":6624 * pass * * cdef class CUgraphNodeParams(CUgraphNodeParams_st): # <<<<<<<<<<<<<< * """ * Graph node parameters. See cuGraphAddNode. */ struct __pyx_obj_4cuda_4cuda_CUgraphNodeParams { struct __pyx_obj_4cuda_4cuda_CUgraphNodeParams_st __pyx_base; }; /* "cuda/cuda.pxd":6673 * pass * * cdef class CUdevSmResource(CUdevSmResource_st): # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_CUdevSmResource { struct __pyx_obj_4cuda_4cuda_CUdevSmResource_st __pyx_base; }; /* "cuda/cuda.pxd":6689 * pass * * cdef class CUdevResource_v1(CUdevResource_st): # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_CUdevResource_v1 { struct __pyx_obj_4cuda_4cuda_CUdevResource_st __pyx_base; }; /* "cuda/cuda.pxd":6710 * pass * * cdef class CUdevResource(CUdevResource_v1): # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_4cuda_CUdevResource { struct __pyx_obj_4cuda_4cuda_CUdevResource_v1 __pyx_base; }; /* "cuda/cuda.pxd":6731 * pass * * cdef class CUeglFrame_v1(CUeglFrame_st): # <<<<<<<<<<<<<< * """ * CUDA EGLFrame structure Descriptor - structure defining one frame */ struct __pyx_obj_4cuda_4cuda_CUeglFrame_v1 { struct __pyx_obj_4cuda_4cuda_CUeglFrame_st __pyx_base; }; /* "cuda/cuda.pxd":6768 * pass * * cdef class CUeglFrame(CUeglFrame_v1): # <<<<<<<<<<<<<< * """ * CUDA EGLFrame structure Descriptor - structure defining one frame */ struct __pyx_obj_4cuda_4cuda_CUeglFrame { struct __pyx_obj_4cuda_4cuda_CUeglFrame_v1 __pyx_base; }; /* "cuda/cuda.pxd":6805 * pass * * cdef class cuuint32_t: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_cuuint32_t { PyObject_HEAD cuuint32_t _cuuint32_t__val; cuuint32_t *_ptr; }; /* "cuda/cuda.pxd":6817 * cdef ccuda.cuuint32_t* _ptr * * cdef class cuuint64_t: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_cuuint64_t { PyObject_HEAD cuuint64_t _cuuint64_t__val; cuuint64_t *_ptr; }; /* "cuda/cuda.pxd":6829 * cdef ccuda.cuuint64_t* _ptr * * cdef class CUdeviceptr_v2: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUdeviceptr_v2 { PyObject_HEAD CUdeviceptr_v2 _CUdeviceptr_v2__val; CUdeviceptr_v2 *_ptr; }; /* "cuda/cuda.pxd":6843 * cdef ccuda.CUdeviceptr_v2* _ptr * * cdef class CUdevice_v1: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUdevice_v1 { PyObject_HEAD CUdevice_v1 _CUdevice_v1__val; CUdevice_v1 *_ptr; }; /* "cuda/cuda.pxd":6857 * cdef ccuda.CUdevice_v1* _ptr * * cdef class CUtexObject_v1: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUtexObject_v1 { PyObject_HEAD CUtexObject_v1 _CUtexObject_v1__val; CUtexObject_v1 *_ptr; }; /* "cuda/cuda.pxd":6871 * cdef ccuda.CUtexObject_v1* _ptr * * cdef class CUsurfObject_v1: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUsurfObject_v1 { PyObject_HEAD CUsurfObject_v1 _CUsurfObject_v1__val; CUsurfObject_v1 *_ptr; }; /* "cuda/cuda.pxd":6885 * cdef ccuda.CUsurfObject_v1* _ptr * * cdef class CUmemGenericAllocationHandle_v1: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_CUmemGenericAllocationHandle_v1 { PyObject_HEAD CUmemGenericAllocationHandle_v1 _CUmemGenericAllocationHandle_v1__val; CUmemGenericAllocationHandle_v1 *_ptr; }; /* "cuda/cuda.pxd":6897 * cdef ccuda.CUmemGenericAllocationHandle_v1* _ptr * * cdef class GLenum: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_GLenum { PyObject_HEAD __pyx_t_4cuda_5ccuda_GLenum _GLenum__val; __pyx_t_4cuda_5ccuda_GLenum *_ptr; }; /* "cuda/cuda.pxd":6909 * cdef ccuda.GLenum* _ptr * * cdef class GLuint: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_GLuint { PyObject_HEAD __pyx_t_4cuda_5ccuda_GLuint _GLuint__val; __pyx_t_4cuda_5ccuda_GLuint *_ptr; }; /* "cuda/cuda.pxd":6921 * cdef ccuda.GLuint* _ptr * * cdef class EGLint: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_EGLint { PyObject_HEAD __pyx_t_4cuda_5ccuda_EGLint _EGLint__val; __pyx_t_4cuda_5ccuda_EGLint *_ptr; }; /* "cuda/cuda.pxd":6933 * cdef ccuda.EGLint* _ptr * * cdef class VdpDevice: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_VdpDevice { PyObject_HEAD __pyx_t_4cuda_5ccuda_VdpDevice _VdpDevice__val; __pyx_t_4cuda_5ccuda_VdpDevice *_ptr; }; /* "cuda/cuda.pxd":6945 * cdef ccuda.VdpDevice* _ptr * * cdef class VdpGetProcAddress: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_VdpGetProcAddress { PyObject_HEAD __pyx_t_4cuda_5ccuda_VdpGetProcAddress _VdpGetProcAddress__val; __pyx_t_4cuda_5ccuda_VdpGetProcAddress *_ptr; }; /* "cuda/cuda.pxd":6957 * cdef ccuda.VdpGetProcAddress* _ptr * * cdef class VdpVideoSurface: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_VdpVideoSurface { PyObject_HEAD __pyx_t_4cuda_5ccuda_VdpVideoSurface _VdpVideoSurface__val; __pyx_t_4cuda_5ccuda_VdpVideoSurface *_ptr; }; /* "cuda/cuda.pxd":6969 * cdef ccuda.VdpVideoSurface* _ptr * * cdef class VdpOutputSurface: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_4cuda_VdpOutputSurface { PyObject_HEAD __pyx_t_4cuda_5ccuda_VdpOutputSurface _VdpOutputSurface__val; __pyx_t_4cuda_5ccuda_VdpOutputSurface *_ptr; }; /* "cuda/_lib/utils.pxd":12 * from libcpp.vector cimport vector * * cdef class HelperKernelParams: # <<<<<<<<<<<<<< * cdef Py_buffer _pybuffer * cdef bint _pyobj_acquired */ struct __pyx_obj_4cuda_4_lib_5utils_HelperKernelParams { PyObject_HEAD Py_buffer _pybuffer; int _pyobj_acquired; void **_ckernelParams; char *_ckernelParamsData; int _length; int _malloc_list_created; }; /* "cuda/_lib/utils.pxd":20 * cdef bint _malloc_list_created * * cdef class HelperInputVoidPtr: # <<<<<<<<<<<<<< * cdef Py_buffer _pybuffer * cdef void* _cptr */ struct __pyx_obj_4cuda_4_lib_5utils_HelperInputVoidPtr { PyObject_HEAD Py_buffer _pybuffer; void *_cptr; int _pyobj_acquired; }; /* "cuda/_lib/utils.pxd":25 * cdef bint _pyobj_acquired * * cdef class HelperCUmemPool_attribute: # <<<<<<<<<<<<<< * cdef void* _cptr * cdef ccuda.CUmemPool_attribute_enum _attr */ struct __pyx_obj_4cuda_4_lib_5utils_HelperCUmemPool_attribute { PyObject_HEAD void *_cptr; enum CUmemPool_attribute_enum _attr; int _is_getter; int _int_val; struct __pyx_obj_4cuda_4cuda_cuuint64_t *_cuuint64_t_val; }; /* "cuda/_lib/utils.pxd":34 * cdef cuda.cuuint64_t _cuuint64_t_val * * cdef class HelperCUmem_range_attribute: # <<<<<<<<<<<<<< * cdef void* _cptr * cdef ccuda.CUmem_range_attribute_enum _attr */ struct __pyx_obj_4cuda_4_lib_5utils_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/_lib/utils.pxd":43 * cdef int* _int_val_list # 32 bit integer array * * cdef class HelperCUpointer_attribute: # <<<<<<<<<<<<<< * cdef void* _cptr * cdef ccuda.CUpointer_attribute_enum _attr */ struct __pyx_obj_4cuda_4_lib_5utils_HelperCUpointer_attribute { PyObject_HEAD void *_cptr; enum CUpointer_attribute_enum _attr; int _is_getter; struct __pyx_obj_4cuda_4cuda_CUcontext *_ctx; unsigned int _uint; struct __pyx_obj_4cuda_4cuda_CUdeviceptr *_devptr; void **_void; struct __pyx_obj_4cuda_4cuda_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS *_token; int _bool; unsigned PY_LONG_LONG _ull; size_t _size; struct __pyx_obj_4cuda_4cuda_CUmemoryPool *_mempool; }; /* "cuda/_lib/utils.pxd":59 * cdef cuda.CUmemoryPool _mempool * * cdef class HelperCUgraphMem_attribute: # <<<<<<<<<<<<<< * cdef void* _cptr * cdef ccuda.CUgraphMem_attribute_enum _attr */ struct __pyx_obj_4cuda_4_lib_5utils_HelperCUgraphMem_attribute { PyObject_HEAD void *_cptr; enum CUgraphMem_attribute_enum _attr; int _is_getter; struct __pyx_obj_4cuda_4cuda_cuuint64_t *_cuuint64_t_val; }; /* "cuda/_lib/utils.pxd":67 * cdef cuda.cuuint64_t _cuuint64_t_val * * cdef class HelperCUjit_option: # <<<<<<<<<<<<<< * cdef void* _cptr * cdef ccuda.CUjit_option_enum _attr */ struct __pyx_obj_4cuda_4_lib_5utils_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 _charstarstar; struct __pyx_obj_4cuda_4_lib_5utils_InputVoidPtrPtrHelper *_voidstarstar; }; /* "cuda/_lib/utils.pxd":82 * cdef InputVoidPtrPtrHelper _voidstarstar # list of addresses * * cdef class HelperCUlibraryOption: # <<<<<<<<<<<<<< * cdef void* _cptr * cdef ccuda.CUlibraryOption_enum _attr */ struct __pyx_obj_4cuda_4_lib_5utils_HelperCUlibraryOption { PyObject_HEAD void *_cptr; enum CUlibraryOption_enum _attr; unsigned int _uint; }; /* "cuda/_lib/utils.pxd":89 * cdef unsigned int _uint * * cdef class HelperCUmemAllocationHandleType: # <<<<<<<<<<<<<< * cdef void* _cptr * cdef ccuda.CUmemAllocationHandleType_enum _type */ struct __pyx_obj_4cuda_4_lib_5utils_HelperCUmemAllocationHandleType { PyObject_HEAD void *_cptr; enum CUmemAllocationHandleType_enum _type; int _int; void *_handle; unsigned int _d3dkmt_handle; struct __pyx_obj_4cuda_4cuda_CUmemFabricHandle *_mem_fabric_handle; }; /* "cuda/_lib/utils.pxd":99 * cdef cuda.CUmemFabricHandle _mem_fabric_handle * * cdef class InputVoidPtrPtrHelper: # <<<<<<<<<<<<<< * cdef void** _cptr * */ struct __pyx_obj_4cuda_4_lib_5utils_InputVoidPtrPtrHelper { PyObject_HEAD void **_cptr; }; /* "cuda/_lib/utils.pxd":102 * cdef void** _cptr * * cdef class HelperCUcoredumpSettings: # <<<<<<<<<<<<<< * cdef void* _cptr * cdef ccuda.CUcoredumpSettings_enum _attrib */ struct __pyx_obj_4cuda_4_lib_5utils_HelperCUcoredumpSettings { PyObject_HEAD void *_cptr; enum CUcoredumpSettings_enum _attrib; int _is_getter; size_t _size; int _bool; char *_charstar; }; /* "cuda/cudart.pxd":12 * cimport cuda.cuda as cuda * * cdef class cudaArray_t: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_6cudart_cudaArray_t { PyObject_HEAD cudaArray_t _cudaArray_t__val; cudaArray_t *_ptr; }; /* "cuda/cudart.pxd":26 * cdef ccudart.cudaArray_t* _ptr * * cdef class cudaArray_const_t: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_6cudart_cudaArray_const_t { PyObject_HEAD cudaArray_const_t _cudaArray_const_t__val; cudaArray_const_t *_ptr; }; /* "cuda/cudart.pxd":40 * cdef ccudart.cudaArray_const_t* _ptr * * cdef class cudaMipmappedArray_t: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_t { PyObject_HEAD cudaMipmappedArray_t _cudaMipmappedArray_t__val; cudaMipmappedArray_t *_ptr; }; /* "cuda/cudart.pxd":54 * cdef ccudart.cudaMipmappedArray_t* _ptr * * cdef class cudaMipmappedArray_const_t: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_const_t { PyObject_HEAD cudaMipmappedArray_const_t _cudaMipmappedArray_const_t__val; cudaMipmappedArray_const_t *_ptr; }; /* "cuda/cudart.pxd":68 * cdef ccudart.cudaMipmappedArray_const_t* _ptr * * cdef class cudaGraphicsResource_t: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_6cudart_cudaGraphicsResource_t { PyObject_HEAD cudaGraphicsResource_t _cudaGraphicsResource_t__val; cudaGraphicsResource_t *_ptr; }; /* "cuda/cudart.pxd":82 * cdef ccudart.cudaGraphicsResource_t* _ptr * * cdef class cudaExternalMemory_t: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_6cudart_cudaExternalMemory_t { PyObject_HEAD cudaExternalMemory_t _cudaExternalMemory_t__val; cudaExternalMemory_t *_ptr; }; /* "cuda/cudart.pxd":96 * cdef ccudart.cudaExternalMemory_t* _ptr * * cdef class cudaExternalSemaphore_t: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphore_t { PyObject_HEAD cudaExternalSemaphore_t _cudaExternalSemaphore_t__val; cudaExternalSemaphore_t *_ptr; }; /* "cuda/cudart.pxd":110 * cdef ccudart.cudaExternalSemaphore_t* _ptr * * cdef class cudaKernel_t: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_6cudart_cudaKernel_t { PyObject_HEAD cudaKernel_t _cudaKernel_t__val; cudaKernel_t *_ptr; }; /* "cuda/cudart.pxd":124 * cdef ccudart.cudaKernel_t* _ptr * * cdef class cudaGraphDeviceNode_t: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_6cudart_cudaGraphDeviceNode_t { PyObject_HEAD cudaGraphDeviceNode_t _cudaGraphDeviceNode_t__val; cudaGraphDeviceNode_t *_ptr; }; /* "cuda/cudart.pxd":138 * cdef ccudart.cudaGraphDeviceNode_t* _ptr * * cdef class cudaAsyncCallbackHandle_t: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_6cudart_cudaAsyncCallbackHandle_t { PyObject_HEAD cudaAsyncCallbackHandle_t _cudaAsyncCallbackHandle_t__val; cudaAsyncCallbackHandle_t *_ptr; }; /* "cuda/cudart.pxd":152 * cdef ccudart.cudaAsyncCallbackHandle_t* _ptr * * cdef class EGLImageKHR: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_6cudart_EGLImageKHR { PyObject_HEAD __pyx_t_4cuda_7ccudart_EGLImageKHR _EGLImageKHR__val; __pyx_t_4cuda_7ccudart_EGLImageKHR *_ptr; }; /* "cuda/cudart.pxd":164 * cdef ccudart.EGLImageKHR* _ptr * * cdef class EGLStreamKHR: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_6cudart_EGLStreamKHR { PyObject_HEAD __pyx_t_4cuda_7ccudart_EGLStreamKHR _EGLStreamKHR__val; __pyx_t_4cuda_7ccudart_EGLStreamKHR *_ptr; }; /* "cuda/cudart.pxd":176 * cdef ccudart.EGLStreamKHR* _ptr * * cdef class EGLSyncKHR: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_6cudart_EGLSyncKHR { PyObject_HEAD __pyx_t_4cuda_7ccudart_EGLSyncKHR _EGLSyncKHR__val; __pyx_t_4cuda_7ccudart_EGLSyncKHR *_ptr; }; /* "cuda/cudart.pxd":188 * cdef ccudart.EGLSyncKHR* _ptr * * cdef class cudaHostFn_t: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_6cudart_cudaHostFn_t { PyObject_HEAD cudaHostFn_t _cudaHostFn_t__val; cudaHostFn_t *_ptr; }; /* "cuda/cudart.pxd":200 * cdef ccudart.cudaHostFn_t* _ptr * * cdef class cudaAsyncCallback: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_6cudart_cudaAsyncCallback { PyObject_HEAD cudaAsyncCallback _cudaAsyncCallback__val; cudaAsyncCallback *_ptr; }; /* "cuda/cudart.pxd":212 * cdef ccudart.cudaAsyncCallback* _ptr * * cdef class cudaStreamCallback_t: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_6cudart_cudaStreamCallback_t { PyObject_HEAD cudaStreamCallback_t _cudaStreamCallback_t__val; cudaStreamCallback_t *_ptr; }; /* "cuda/cudart.pxd":224 * cdef ccudart.cudaStreamCallback_t* _ptr * * cdef class dim3: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_6cudart_dim3 { PyObject_HEAD struct dim3 _dim3__val; struct dim3 *_ptr; }; /* "cuda/cudart.pxd":244 * cdef ccudart.dim3* _ptr * * cdef class cudaChannelFormatDesc: # <<<<<<<<<<<<<< * """ * CUDA Channel format descriptor */ struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc { PyObject_HEAD struct cudaChannelFormatDesc _cudaChannelFormatDesc__val; struct cudaChannelFormatDesc *_ptr; }; /* "cuda/cudart.pxd":270 * cdef ccudart.cudaChannelFormatDesc* _ptr * * cdef class anon_struct0: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_6cudart_anon_struct0 { PyObject_HEAD struct cudaArraySparseProperties *_ptr; }; /* "cuda/cudart.pxd":289 * cdef ccudart.cudaArraySparseProperties* _ptr * * cdef class cudaArraySparseProperties: # <<<<<<<<<<<<<< * """ * Sparse CUDA array and CUDA mipmapped array properties */ struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties { PyObject_HEAD struct cudaArraySparseProperties _cudaArraySparseProperties__val; struct cudaArraySparseProperties *_ptr; struct __pyx_obj_4cuda_6cudart_anon_struct0 *_tileExtent; }; /* "cuda/cudart.pxd":316 * cdef anon_struct0 _tileExtent * * cdef class cudaArrayMemoryRequirements: # <<<<<<<<<<<<<< * """ * CUDA array and CUDA mipmapped array memory requirements */ struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements { PyObject_HEAD struct cudaArrayMemoryRequirements _cudaArrayMemoryRequirements__val; struct cudaArrayMemoryRequirements *_ptr; }; /* "cuda/cudart.pxd":338 * cdef ccudart.cudaArrayMemoryRequirements* _ptr * * cdef class cudaPitchedPtr: # <<<<<<<<<<<<<< * """ * CUDA Pitched memory pointer ::make_cudaPitchedPtr */ struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr { PyObject_HEAD struct cudaPitchedPtr _cudaPitchedPtr__val; struct cudaPitchedPtr *_ptr; }; /* "cuda/cudart.pxd":362 * cdef ccudart.cudaPitchedPtr* _ptr * * cdef class cudaExtent: # <<<<<<<<<<<<<< * """ * CUDA extent ::make_cudaExtent */ struct __pyx_obj_4cuda_6cudart_cudaExtent { PyObject_HEAD struct cudaExtent _cudaExtent__val; struct cudaExtent *_ptr; }; /* "cuda/cudart.pxd":385 * cdef ccudart.cudaExtent* _ptr * * cdef class cudaPos: # <<<<<<<<<<<<<< * """ * CUDA 3D position ::make_cudaPos */ struct __pyx_obj_4cuda_6cudart_cudaPos { PyObject_HEAD struct cudaPos _cudaPos__val; struct cudaPos *_ptr; }; /* "cuda/cudart.pxd":407 * cdef ccudart.cudaPos* _ptr * * cdef class cudaMemcpy3DParms: # <<<<<<<<<<<<<< * """ * CUDA 3D memory copying parameters */ struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms { PyObject_HEAD struct cudaMemcpy3DParms _cudaMemcpy3DParms__val; struct cudaMemcpy3DParms *_ptr; struct __pyx_obj_4cuda_6cudart_cudaArray_t *_srcArray; struct __pyx_obj_4cuda_6cudart_cudaPos *_srcPos; struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *_srcPtr; struct __pyx_obj_4cuda_6cudart_cudaArray_t *_dstArray; struct __pyx_obj_4cuda_6cudart_cudaPos *_dstPos; struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *_dstPtr; struct __pyx_obj_4cuda_6cudart_cudaExtent *_extent; }; /* "cuda/cudart.pxd":446 * cdef cudaExtent _extent * * cdef class cudaMemcpyNodeParams: # <<<<<<<<<<<<<< * """ * Memcpy node parameters */ struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams { PyObject_HEAD struct cudaMemcpyNodeParams _cudaMemcpyNodeParams__val; struct cudaMemcpyNodeParams *_ptr; struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *_copyParams; }; /* "cuda/cudart.pxd":469 * cdef cudaMemcpy3DParms _copyParams * * cdef class cudaMemcpy3DPeerParms: # <<<<<<<<<<<<<< * """ * CUDA 3D cross-device memory copying parameters */ struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms { PyObject_HEAD struct cudaMemcpy3DPeerParms _cudaMemcpy3DPeerParms__val; struct cudaMemcpy3DPeerParms *_ptr; struct __pyx_obj_4cuda_6cudart_cudaArray_t *_srcArray; struct __pyx_obj_4cuda_6cudart_cudaPos *_srcPos; struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *_srcPtr; struct __pyx_obj_4cuda_6cudart_cudaArray_t *_dstArray; struct __pyx_obj_4cuda_6cudart_cudaPos *_dstPos; struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *_dstPtr; struct __pyx_obj_4cuda_6cudart_cudaExtent *_extent; }; /* "cuda/cudart.pxd":510 * cdef cudaExtent _extent * * cdef class cudaMemsetParams: # <<<<<<<<<<<<<< * """ * CUDA Memset node parameters */ struct __pyx_obj_4cuda_6cudart_cudaMemsetParams { PyObject_HEAD struct cudaMemsetParams _cudaMemsetParams__val; struct cudaMemsetParams *_ptr; }; /* "cuda/cudart.pxd":538 * cdef ccudart.cudaMemsetParams* _ptr * * cdef class cudaMemsetParamsV2: # <<<<<<<<<<<<<< * """ * CUDA Memset node parameters */ struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 { PyObject_HEAD struct cudaMemsetParamsV2 _cudaMemsetParamsV2__val; struct cudaMemsetParamsV2 *_ptr; }; /* "cuda/cudart.pxd":566 * cdef ccudart.cudaMemsetParamsV2* _ptr * * cdef class cudaAccessPolicyWindow: # <<<<<<<<<<<<<< * """ * Specifies an access policy for a window, a contiguous extent of */ struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow { PyObject_HEAD struct cudaAccessPolicyWindow _cudaAccessPolicyWindow__val; struct cudaAccessPolicyWindow *_ptr; }; /* "cuda/cudart.pxd":603 * cdef ccudart.cudaAccessPolicyWindow* _ptr * * cdef class cudaHostNodeParams: # <<<<<<<<<<<<<< * """ * CUDA host node parameters */ struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams { PyObject_HEAD struct cudaHostNodeParams _cudaHostNodeParams__val; struct cudaHostNodeParams *_ptr; struct __pyx_obj_4cuda_6cudart_cudaHostFn_t *_fn; }; /* "cuda/cudart.pxd":624 * cdef cudaHostFn_t _fn * * cdef class cudaHostNodeParamsV2: # <<<<<<<<<<<<<< * """ * CUDA host node parameters */ struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2 { PyObject_HEAD struct cudaHostNodeParamsV2 _cudaHostNodeParamsV2__val; struct cudaHostNodeParamsV2 *_ptr; struct __pyx_obj_4cuda_6cudart_cudaHostFn_t *_fn; }; /* "cuda/cudart.pxd":645 * cdef cudaHostFn_t _fn * * cdef class anon_struct1: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_6cudart_anon_struct1 { PyObject_HEAD struct cudaResourceDesc *_ptr; struct __pyx_obj_4cuda_6cudart_cudaArray_t *_array; }; /* "cuda/cudart.pxd":661 * cdef cudaArray_t _array * * cdef class anon_struct2: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_6cudart_anon_struct2 { PyObject_HEAD struct cudaResourceDesc *_ptr; struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_t *_mipmap; }; /* "cuda/cudart.pxd":677 * cdef cudaMipmappedArray_t _mipmap * * cdef class anon_struct3: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_6cudart_anon_struct3 { PyObject_HEAD struct cudaResourceDesc *_ptr; struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *_desc; }; /* "cuda/cudart.pxd":697 * cdef cudaChannelFormatDesc _desc * * cdef class anon_struct4: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_6cudart_anon_struct4 { PyObject_HEAD struct cudaResourceDesc *_ptr; struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *_desc; }; /* "cuda/cudart.pxd":721 * cdef cudaChannelFormatDesc _desc * * cdef class anon_union0: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_6cudart_anon_union0 { PyObject_HEAD struct cudaResourceDesc *_ptr; struct __pyx_obj_4cuda_6cudart_anon_struct1 *_array; struct __pyx_obj_4cuda_6cudart_anon_struct2 *_mipmap; struct __pyx_obj_4cuda_6cudart_anon_struct3 *_linear; struct __pyx_obj_4cuda_6cudart_anon_struct4 *_pitch2D; }; /* "cuda/cudart.pxd":746 * cdef anon_struct4 _pitch2D * * cdef class cudaResourceDesc: # <<<<<<<<<<<<<< * """ * CUDA resource descriptor */ struct __pyx_obj_4cuda_6cudart_cudaResourceDesc { PyObject_HEAD struct cudaResourceDesc *_val_ptr; struct cudaResourceDesc *_ptr; struct __pyx_obj_4cuda_6cudart_anon_union0 *_res; }; /* "cuda/cudart.pxd":767 * cdef anon_union0 _res * * cdef class cudaResourceViewDesc: # <<<<<<<<<<<<<< * """ * CUDA resource view descriptor */ struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc { PyObject_HEAD struct cudaResourceViewDesc _cudaResourceViewDesc__val; struct cudaResourceViewDesc *_ptr; }; /* "cuda/cudart.pxd":799 * cdef ccudart.cudaResourceViewDesc* _ptr * * cdef class cudaPointerAttributes: # <<<<<<<<<<<<<< * """ * CUDA pointer attributes */ struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes { PyObject_HEAD struct cudaPointerAttributes _cudaPointerAttributes__val; struct cudaPointerAttributes *_ptr; }; /* "cuda/cudart.pxd":834 * cdef ccudart.cudaPointerAttributes* _ptr * * cdef class cudaFuncAttributes: # <<<<<<<<<<<<<< * """ * CUDA function attributes */ struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes { PyObject_HEAD struct cudaFuncAttributes _cudaFuncAttributes__val; struct cudaFuncAttributes *_ptr; }; /* "cuda/cudart.pxd":921 * cdef ccudart.cudaFuncAttributes* _ptr * * cdef class cudaMemLocation: # <<<<<<<<<<<<<< * """ * Specifies a memory location. To specify a gpu, set type = */ struct __pyx_obj_4cuda_6cudart_cudaMemLocation { PyObject_HEAD struct cudaMemLocation _cudaMemLocation__val; struct cudaMemLocation *_ptr; }; /* "cuda/cudart.pxd":944 * cdef ccudart.cudaMemLocation* _ptr * * cdef class cudaMemAccessDesc: # <<<<<<<<<<<<<< * """ * Memory access descriptor */ struct __pyx_obj_4cuda_6cudart_cudaMemAccessDesc { PyObject_HEAD struct cudaMemAccessDesc _cudaMemAccessDesc__val; struct cudaMemAccessDesc *_ptr; struct __pyx_obj_4cuda_6cudart_cudaMemLocation *_location; }; /* "cuda/cudart.pxd":965 * cdef cudaMemLocation _location * * cdef class cudaMemPoolProps: # <<<<<<<<<<<<<< * """ * Specifies the properties of allocations made from the pool. */ struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps { PyObject_HEAD struct cudaMemPoolProps _cudaMemPoolProps__val; struct cudaMemPoolProps *_ptr; struct __pyx_obj_4cuda_6cudart_cudaMemLocation *_location; }; /* "cuda/cudart.pxd":1002 * cdef cudaMemLocation _location * * cdef class cudaMemPoolPtrExportData: # <<<<<<<<<<<<<< * """ * Opaque data for exporting a pool allocation */ struct __pyx_obj_4cuda_6cudart_cudaMemPoolPtrExportData { PyObject_HEAD struct cudaMemPoolPtrExportData _cudaMemPoolPtrExportData__val; struct cudaMemPoolPtrExportData *_ptr; }; /* "cuda/cudart.pxd":1020 * cdef ccudart.cudaMemPoolPtrExportData* _ptr * * cdef class cudaMemAllocNodeParams: # <<<<<<<<<<<<<< * """ * Memory allocation node parameters */ struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams { PyObject_HEAD struct cudaMemAllocNodeParams _cudaMemAllocNodeParams__val; struct cudaMemAllocNodeParams *_ptr; struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *_poolProps; size_t _accessDescs_length; struct cudaMemAccessDesc *_accessDescs; }; /* "cuda/cudart.pxd":1053 * cdef ccudart.cudaMemAccessDesc* _accessDescs * * cdef class cudaMemAllocNodeParamsV2: # <<<<<<<<<<<<<< * """ * Memory allocation node parameters */ struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 { PyObject_HEAD struct cudaMemAllocNodeParamsV2 _cudaMemAllocNodeParamsV2__val; struct cudaMemAllocNodeParamsV2 *_ptr; struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *_poolProps; size_t _accessDescs_length; struct cudaMemAccessDesc *_accessDescs; }; /* "cuda/cudart.pxd":1086 * cdef ccudart.cudaMemAccessDesc* _accessDescs * * cdef class cudaMemFreeNodeParams: # <<<<<<<<<<<<<< * """ * Memory free node parameters */ struct __pyx_obj_4cuda_6cudart_cudaMemFreeNodeParams { PyObject_HEAD struct cudaMemFreeNodeParams _cudaMemFreeNodeParams__val; struct cudaMemFreeNodeParams *_ptr; }; /* "cuda/cudart.pxd":1104 * cdef ccudart.cudaMemFreeNodeParams* _ptr * * cdef class CUuuid_st: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_6cudart_CUuuid_st { PyObject_HEAD struct CUuuid_st _CUuuid_st__val; struct CUuuid_st *_ptr; }; /* "cuda/cudart.pxd":1120 * cdef ccudart.CUuuid_st* _ptr * * cdef class cudaDeviceProp: # <<<<<<<<<<<<<< * """ * CUDA device properties */ struct __pyx_obj_4cuda_6cudart_cudaDeviceProp { PyObject_HEAD struct cudaDeviceProp _cudaDeviceProp__val; struct cudaDeviceProp *_ptr; struct __pyx_obj_4cuda_6cudart_cudaUUID_t *_uuid; }; /* "cuda/cudart.pxd":1351 * cdef cudaUUID_t _uuid * * cdef class cudaIpcEventHandle_st: # <<<<<<<<<<<<<< * """ * CUDA IPC event handle */ struct __pyx_obj_4cuda_6cudart_cudaIpcEventHandle_st { PyObject_HEAD struct cudaIpcEventHandle_st _cudaIpcEventHandle_st__val; struct cudaIpcEventHandle_st *_ptr; }; /* "cuda/cudart.pxd":1369 * cdef ccudart.cudaIpcEventHandle_st* _ptr * * cdef class cudaIpcMemHandle_st: # <<<<<<<<<<<<<< * """ * CUDA IPC memory handle */ struct __pyx_obj_4cuda_6cudart_cudaIpcMemHandle_st { PyObject_HEAD struct cudaIpcMemHandle_st _cudaIpcMemHandle_st__val; struct cudaIpcMemHandle_st *_ptr; }; /* "cuda/cudart.pxd":1387 * cdef ccudart.cudaIpcMemHandle_st* _ptr * * cdef class cudaMemFabricHandle_st: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_6cudart_cudaMemFabricHandle_st { PyObject_HEAD struct cudaMemFabricHandle_st _cudaMemFabricHandle_st__val; struct cudaMemFabricHandle_st *_ptr; }; /* "cuda/cudart.pxd":1403 * cdef ccudart.cudaMemFabricHandle_st* _ptr * * cdef class anon_struct5: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_6cudart_anon_struct5 { PyObject_HEAD struct cudaExternalMemoryHandleDesc *_ptr; }; /* "cuda/cudart.pxd":1420 * cdef ccudart.cudaExternalMemoryHandleDesc* _ptr * * cdef class anon_union1: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_6cudart_anon_union1 { PyObject_HEAD struct cudaExternalMemoryHandleDesc *_ptr; struct __pyx_obj_4cuda_6cudart_anon_struct5 *_win32; }; /* "cuda/cudart.pxd":1440 * cdef anon_struct5 _win32 * * cdef class cudaExternalMemoryHandleDesc: # <<<<<<<<<<<<<< * """ * External memory handle descriptor */ struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc { PyObject_HEAD struct cudaExternalMemoryHandleDesc *_val_ptr; struct cudaExternalMemoryHandleDesc *_ptr; struct __pyx_obj_4cuda_6cudart_anon_union1 *_handle; }; /* "cuda/cudart.pxd":1465 * cdef anon_union1 _handle * * cdef class cudaExternalMemoryBufferDesc: # <<<<<<<<<<<<<< * """ * External memory buffer descriptor */ struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryBufferDesc { PyObject_HEAD struct cudaExternalMemoryBufferDesc _cudaExternalMemoryBufferDesc__val; struct cudaExternalMemoryBufferDesc *_ptr; }; /* "cuda/cudart.pxd":1487 * cdef ccudart.cudaExternalMemoryBufferDesc* _ptr * * cdef class cudaExternalMemoryMipmappedArrayDesc: # <<<<<<<<<<<<<< * """ * External memory mipmap descriptor */ struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc { PyObject_HEAD struct cudaExternalMemoryMipmappedArrayDesc _cudaExternalMemoryMipmappedArrayDesc__val; struct cudaExternalMemoryMipmappedArrayDesc *_ptr; struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *_formatDesc; struct __pyx_obj_4cuda_6cudart_cudaExtent *_extent; }; /* "cuda/cudart.pxd":1517 * cdef cudaExtent _extent * * cdef class anon_struct6: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_6cudart_anon_struct6 { PyObject_HEAD struct cudaExternalSemaphoreHandleDesc *_ptr; }; /* "cuda/cudart.pxd":1534 * cdef ccudart.cudaExternalSemaphoreHandleDesc* _ptr * * cdef class anon_union2: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_6cudart_anon_union2 { PyObject_HEAD struct cudaExternalSemaphoreHandleDesc *_ptr; struct __pyx_obj_4cuda_6cudart_anon_struct6 *_win32; }; /* "cuda/cudart.pxd":1554 * cdef anon_struct6 _win32 * * cdef class cudaExternalSemaphoreHandleDesc: # <<<<<<<<<<<<<< * """ * External semaphore handle descriptor */ struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc { PyObject_HEAD struct cudaExternalSemaphoreHandleDesc *_val_ptr; struct cudaExternalSemaphoreHandleDesc *_ptr; struct __pyx_obj_4cuda_6cudart_anon_union2 *_handle; }; /* "cuda/cudart.pxd":1577 * cdef anon_union2 _handle * * cdef class anon_struct13: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_6cudart_anon_struct13 { PyObject_HEAD struct cudaExternalSemaphoreSignalParams *_ptr; }; /* "cuda/cudart.pxd":1592 * cdef ccudart.cudaExternalSemaphoreSignalParams* _ptr * * cdef class anon_union5: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_6cudart_anon_union5 { PyObject_HEAD struct cudaExternalSemaphoreSignalParams *_ptr; }; /* "cuda/cudart.pxd":1609 * cdef ccudart.cudaExternalSemaphoreSignalParams* _ptr * * cdef class anon_struct14: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_6cudart_anon_struct14 { PyObject_HEAD struct cudaExternalSemaphoreSignalParams *_ptr; }; /* "cuda/cudart.pxd":1624 * cdef ccudart.cudaExternalSemaphoreSignalParams* _ptr * * cdef class anon_struct15: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_6cudart_anon_struct15 { PyObject_HEAD struct cudaExternalSemaphoreSignalParams *_ptr; struct __pyx_obj_4cuda_6cudart_anon_struct13 *_fence; struct __pyx_obj_4cuda_6cudart_anon_union5 *_nvSciSync; struct __pyx_obj_4cuda_6cudart_anon_struct14 *_keyedMutex; }; /* "cuda/cudart.pxd":1648 * cdef anon_struct14 _keyedMutex * * cdef class cudaExternalSemaphoreSignalParams: # <<<<<<<<<<<<<< * """ * External semaphore signal parameters, compatible with driver type */ struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams { PyObject_HEAD struct cudaExternalSemaphoreSignalParams _cudaExternalSemaphoreSignalParams__val; struct cudaExternalSemaphoreSignalParams *_ptr; struct __pyx_obj_4cuda_6cudart_anon_struct15 *_params; }; /* "cuda/cudart.pxd":1678 * cdef anon_struct15 _params * * cdef class anon_struct16: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_6cudart_anon_struct16 { PyObject_HEAD struct cudaExternalSemaphoreWaitParams *_ptr; }; /* "cuda/cudart.pxd":1693 * cdef ccudart.cudaExternalSemaphoreWaitParams* _ptr * * cdef class anon_union6: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_6cudart_anon_union6 { PyObject_HEAD struct cudaExternalSemaphoreWaitParams *_ptr; }; /* "cuda/cudart.pxd":1710 * cdef ccudart.cudaExternalSemaphoreWaitParams* _ptr * * cdef class anon_struct17: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_6cudart_anon_struct17 { PyObject_HEAD struct cudaExternalSemaphoreWaitParams *_ptr; }; /* "cuda/cudart.pxd":1727 * cdef ccudart.cudaExternalSemaphoreWaitParams* _ptr * * cdef class anon_struct18: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_6cudart_anon_struct18 { PyObject_HEAD struct cudaExternalSemaphoreWaitParams *_ptr; struct __pyx_obj_4cuda_6cudart_anon_struct16 *_fence; struct __pyx_obj_4cuda_6cudart_anon_union6 *_nvSciSync; struct __pyx_obj_4cuda_6cudart_anon_struct17 *_keyedMutex; }; /* "cuda/cudart.pxd":1751 * cdef anon_struct17 _keyedMutex * * cdef class cudaExternalSemaphoreWaitParams: # <<<<<<<<<<<<<< * """ * External semaphore wait parameters, compatible with driver type */ struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams { PyObject_HEAD struct cudaExternalSemaphoreWaitParams _cudaExternalSemaphoreWaitParams__val; struct cudaExternalSemaphoreWaitParams *_ptr; struct __pyx_obj_4cuda_6cudart_anon_struct18 *_params; }; /* "cuda/cudart.pxd":1781 * cdef anon_struct18 _params * * cdef class cudaKernelNodeParams: # <<<<<<<<<<<<<< * """ * CUDA GPU kernel node parameters */ struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams { PyObject_HEAD struct cudaKernelNodeParams _cudaKernelNodeParams__val; struct cudaKernelNodeParams *_ptr; struct __pyx_obj_4cuda_6cudart_dim3 *_gridDim; struct __pyx_obj_4cuda_6cudart_dim3 *_blockDim; struct __pyx_obj_4cuda_4_lib_5utils_HelperKernelParams *_ckernelParams; }; /* "cuda/cudart.pxd":1812 * cdef utils.HelperKernelParams _ckernelParams * * cdef class cudaKernelNodeParamsV2: # <<<<<<<<<<<<<< * """ * CUDA GPU kernel node parameters */ struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 { PyObject_HEAD struct cudaKernelNodeParamsV2 _cudaKernelNodeParamsV2__val; struct cudaKernelNodeParamsV2 *_ptr; struct __pyx_obj_4cuda_6cudart_dim3 *_gridDim; struct __pyx_obj_4cuda_6cudart_dim3 *_blockDim; struct __pyx_obj_4cuda_4_lib_5utils_HelperKernelParams *_ckernelParams; }; /* "cuda/cudart.pxd":1843 * cdef utils.HelperKernelParams _ckernelParams * * cdef class cudaExternalSemaphoreSignalNodeParams: # <<<<<<<<<<<<<< * """ * External semaphore signal node parameters */ struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams { PyObject_HEAD struct cudaExternalSemaphoreSignalNodeParams _cudaExternalSemaphoreSignalNodeParams__val; struct cudaExternalSemaphoreSignalNodeParams *_ptr; size_t _extSemArray_length; cudaExternalSemaphore_t *_extSemArray; size_t _paramsArray_length; struct cudaExternalSemaphoreSignalParams *_paramsArray; }; /* "cuda/cudart.pxd":1871 * cdef ccudart.cudaExternalSemaphoreSignalParams* _paramsArray * * cdef class cudaExternalSemaphoreSignalNodeParamsV2: # <<<<<<<<<<<<<< * """ * External semaphore signal node parameters */ struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 { PyObject_HEAD struct cudaExternalSemaphoreSignalNodeParamsV2 _cudaExternalSemaphoreSignalNodeParamsV2__val; struct cudaExternalSemaphoreSignalNodeParamsV2 *_ptr; size_t _extSemArray_length; cudaExternalSemaphore_t *_extSemArray; size_t _paramsArray_length; struct cudaExternalSemaphoreSignalParams *_paramsArray; }; /* "cuda/cudart.pxd":1899 * cdef ccudart.cudaExternalSemaphoreSignalParams* _paramsArray * * cdef class cudaExternalSemaphoreWaitNodeParams: # <<<<<<<<<<<<<< * """ * External semaphore wait node parameters */ struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams { PyObject_HEAD struct cudaExternalSemaphoreWaitNodeParams _cudaExternalSemaphoreWaitNodeParams__val; struct cudaExternalSemaphoreWaitNodeParams *_ptr; size_t _extSemArray_length; cudaExternalSemaphore_t *_extSemArray; size_t _paramsArray_length; struct cudaExternalSemaphoreWaitParams *_paramsArray; }; /* "cuda/cudart.pxd":1927 * cdef ccudart.cudaExternalSemaphoreWaitParams* _paramsArray * * cdef class cudaExternalSemaphoreWaitNodeParamsV2: # <<<<<<<<<<<<<< * """ * External semaphore wait node parameters */ struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 { PyObject_HEAD struct cudaExternalSemaphoreWaitNodeParamsV2 _cudaExternalSemaphoreWaitNodeParamsV2__val; struct cudaExternalSemaphoreWaitNodeParamsV2 *_ptr; size_t _extSemArray_length; cudaExternalSemaphore_t *_extSemArray; size_t _paramsArray_length; struct cudaExternalSemaphoreWaitParams *_paramsArray; }; /* "cuda/cudart.pxd":1955 * cdef ccudart.cudaExternalSemaphoreWaitParams* _paramsArray * * cdef class cudaConditionalNodeParams: # <<<<<<<<<<<<<< * """ * CUDA conditional node parameters */ struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams { PyObject_HEAD struct cudaConditionalNodeParams _cudaConditionalNodeParams__val; struct cudaConditionalNodeParams *_ptr; struct __pyx_obj_4cuda_6cudart_cudaGraphConditionalHandle *_handle; size_t _phGraph_out_length; cudaGraph_t *_phGraph_out; }; /* "cuda/cudart.pxd":1992 * cdef ccudart.cudaGraph_t* _phGraph_out * * cdef class cudaChildGraphNodeParams: # <<<<<<<<<<<<<< * """ * Child graph node parameters */ struct __pyx_obj_4cuda_6cudart_cudaChildGraphNodeParams { PyObject_HEAD struct cudaChildGraphNodeParams _cudaChildGraphNodeParams__val; struct cudaChildGraphNodeParams *_ptr; struct __pyx_obj_4cuda_6cudart_cudaGraph_t *_graph; }; /* "cuda/cudart.pxd":2012 * cdef cudaGraph_t _graph * * cdef class cudaEventRecordNodeParams: # <<<<<<<<<<<<<< * """ * Event record node parameters */ struct __pyx_obj_4cuda_6cudart_cudaEventRecordNodeParams { PyObject_HEAD struct cudaEventRecordNodeParams _cudaEventRecordNodeParams__val; struct cudaEventRecordNodeParams *_ptr; struct __pyx_obj_4cuda_6cudart_cudaEvent_t *_event; }; /* "cuda/cudart.pxd":2031 * cdef cudaEvent_t _event * * cdef class cudaEventWaitNodeParams: # <<<<<<<<<<<<<< * """ * Event wait node parameters */ struct __pyx_obj_4cuda_6cudart_cudaEventWaitNodeParams { PyObject_HEAD struct cudaEventWaitNodeParams _cudaEventWaitNodeParams__val; struct cudaEventWaitNodeParams *_ptr; struct __pyx_obj_4cuda_6cudart_cudaEvent_t *_event; }; /* "cuda/cudart.pxd":2050 * cdef cudaEvent_t _event * * cdef class cudaGraphNodeParams: # <<<<<<<<<<<<<< * """ * Graph node parameters. See cudaGraphAddNode. */ struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams { PyObject_HEAD struct cudaGraphNodeParams *_val_ptr; struct cudaGraphNodeParams *_ptr; struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *_kernel; struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *_memcpy; struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *_memset; struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2 *_host; struct __pyx_obj_4cuda_6cudart_cudaChildGraphNodeParams *_graph; struct __pyx_obj_4cuda_6cudart_cudaEventWaitNodeParams *_eventWait; struct __pyx_obj_4cuda_6cudart_cudaEventRecordNodeParams *_eventRecord; struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 *_extSemSignal; struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 *_extSemWait; struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *_alloc; struct __pyx_obj_4cuda_6cudart_cudaMemFreeNodeParams *_free; struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *_conditional; }; /* "cuda/cudart.pxd":2110 * cdef cudaConditionalNodeParams _conditional * * cdef class cudaGraphEdgeData_st: # <<<<<<<<<<<<<< * """ * Optional annotation for edges in a CUDA graph. Note, all edges */ struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st { PyObject_HEAD struct cudaGraphEdgeData_st _cudaGraphEdgeData_st__val; struct cudaGraphEdgeData_st *_ptr; }; /* "cuda/cudart.pxd":2153 * cdef ccudart.cudaGraphEdgeData_st* _ptr * * cdef class cudaGraphInstantiateParams_st: # <<<<<<<<<<<<<< * """ * Graph instantiation parameters */ struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st { PyObject_HEAD struct cudaGraphInstantiateParams_st _cudaGraphInstantiateParams_st__val; struct cudaGraphInstantiateParams_st *_ptr; struct __pyx_obj_4cuda_6cudart_cudaStream_t *_uploadStream; struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *_errNode_out; }; /* "cuda/cudart.pxd":2179 * cdef cudaGraphNode_t _errNode_out * * cdef class cudaGraphExecUpdateResultInfo_st: # <<<<<<<<<<<<<< * """ * Result information returned by cudaGraphExecUpdate */ struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st { PyObject_HEAD struct cudaGraphExecUpdateResultInfo_st _cudaGraphExecUpdateResultInfo_st__val; struct cudaGraphExecUpdateResultInfo_st *_ptr; struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *_errorNode; struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *_errorFromNode; }; /* "cuda/cudart.pxd":2206 * cdef cudaGraphNode_t _errorFromNode * * cdef class anon_struct19: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_6cudart_anon_struct19 { PyObject_HEAD struct cudaGraphKernelNodeUpdate *_ptr; }; /* "cuda/cudart.pxd":2225 * cdef ccudart.cudaGraphKernelNodeUpdate* _ptr * * cdef class anon_union8: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_6cudart_anon_union8 { PyObject_HEAD struct cudaGraphKernelNodeUpdate *_ptr; struct __pyx_obj_4cuda_6cudart_dim3 *_gridDim; struct __pyx_obj_4cuda_6cudart_anon_struct19 *_param; }; /* "cuda/cudart.pxd":2246 * cdef anon_struct19 _param * * cdef class cudaGraphKernelNodeUpdate: # <<<<<<<<<<<<<< * """ * Struct to specify a single node update to pass as part of a larger */ struct __pyx_obj_4cuda_6cudart_cudaGraphKernelNodeUpdate { PyObject_HEAD struct cudaGraphKernelNodeUpdate *_val_ptr; struct cudaGraphKernelNodeUpdate *_ptr; struct __pyx_obj_4cuda_6cudart_cudaGraphDeviceNode_t *_node; struct __pyx_obj_4cuda_6cudart_anon_union8 *_updateData; }; /* "cuda/cudart.pxd":2272 * cdef anon_union8 _updateData * * cdef class cudaLaunchMemSyncDomainMap_st: # <<<<<<<<<<<<<< * """ * Memory Synchronization Domain map See cudaLaunchMemSyncDomain. By */ struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st { PyObject_HEAD struct cudaLaunchMemSyncDomainMap_st _cudaLaunchMemSyncDomainMap_st__val; struct cudaLaunchMemSyncDomainMap_st *_ptr; }; /* "cuda/cudart.pxd":2298 * cdef ccudart.cudaLaunchMemSyncDomainMap_st* _ptr * * cdef class anon_struct20: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_6cudart_anon_struct20 { PyObject_HEAD union cudaLaunchAttributeValue *_ptr; }; /* "cuda/cudart.pxd":2317 * cdef ccudart.cudaLaunchAttributeValue* _ptr * * cdef class anon_struct21: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_6cudart_anon_struct21 { PyObject_HEAD union cudaLaunchAttributeValue *_ptr; struct __pyx_obj_4cuda_6cudart_cudaEvent_t *_event; }; /* "cuda/cudart.pxd":2337 * cdef cudaEvent_t _event * * cdef class anon_struct22: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_6cudart_anon_struct22 { PyObject_HEAD union cudaLaunchAttributeValue *_ptr; struct __pyx_obj_4cuda_6cudart_cudaEvent_t *_event; }; /* "cuda/cudart.pxd":2355 * cdef cudaEvent_t _event * * cdef class anon_struct23: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_6cudart_anon_struct23 { PyObject_HEAD union cudaLaunchAttributeValue *_ptr; struct __pyx_obj_4cuda_6cudart_cudaGraphDeviceNode_t *_devNode; }; /* "cuda/cudart.pxd":2373 * cdef cudaGraphDeviceNode_t _devNode * * cdef class cudaLaunchAttributeValue: # <<<<<<<<<<<<<< * """ * Launch attributes union; used as value field of */ struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue { PyObject_HEAD union cudaLaunchAttributeValue _cudaLaunchAttributeValue__val; union cudaLaunchAttributeValue *_ptr; struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *_accessPolicyWindow; struct __pyx_obj_4cuda_6cudart_anon_struct20 *_clusterDim; struct __pyx_obj_4cuda_6cudart_anon_struct21 *_programmaticEvent; struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap *_memSyncDomainMap; struct __pyx_obj_4cuda_6cudart_anon_struct22 *_launchCompletionEvent; struct __pyx_obj_4cuda_6cudart_anon_struct23 *_deviceUpdatableKernelNode; }; /* "cuda/cudart.pxd":2453 * cdef anon_struct23 _deviceUpdatableKernelNode * * cdef class cudaLaunchAttribute_st: # <<<<<<<<<<<<<< * """ * Launch attribute */ struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute_st { PyObject_HEAD struct cudaLaunchAttribute_st _cudaLaunchAttribute_st__val; struct cudaLaunchAttribute_st *_ptr; struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *_val; }; /* "cuda/cudart.pxd":2474 * cdef cudaLaunchAttributeValue _val * * cdef class anon_struct24: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_6cudart_anon_struct24 { PyObject_HEAD struct cudaAsyncNotificationInfo *_ptr; }; /* "cuda/cudart.pxd":2489 * cdef ccudart.cudaAsyncNotificationInfo* _ptr * * cdef class anon_union9: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_6cudart_anon_union9 { PyObject_HEAD struct cudaAsyncNotificationInfo *_ptr; struct __pyx_obj_4cuda_6cudart_anon_struct24 *_overBudget; }; /* "cuda/cudart.pxd":2505 * cdef anon_struct24 _overBudget * * cdef class cudaAsyncNotificationInfo: # <<<<<<<<<<<<<< * """ * Information describing an async notification event */ struct __pyx_obj_4cuda_6cudart_cudaAsyncNotificationInfo { PyObject_HEAD struct cudaAsyncNotificationInfo *_val_ptr; struct cudaAsyncNotificationInfo *_ptr; struct __pyx_obj_4cuda_6cudart_anon_union9 *_info; }; /* "cuda/cudart.pxd":2526 * cdef anon_union9 _info * * cdef class cudaTextureDesc: # <<<<<<<<<<<<<< * """ * CUDA texture descriptor */ struct __pyx_obj_4cuda_6cudart_cudaTextureDesc { PyObject_HEAD struct cudaTextureDesc _cudaTextureDesc__val; struct cudaTextureDesc *_ptr; }; /* "cuda/cudart.pxd":2568 * cdef ccudart.cudaTextureDesc* _ptr * * cdef class cudaEglPlaneDesc_st: # <<<<<<<<<<<<<< * """ * CUDA EGL Plane Descriptor - structure defining each plane of a CUDA */ struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st { PyObject_HEAD struct __pyx_t_4cuda_7ccudart_cudaEglPlaneDesc_st _cudaEglPlaneDesc_st__val; struct __pyx_t_4cuda_7ccudart_cudaEglPlaneDesc_st *_ptr; struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *_channelDesc; }; /* "cuda/cudart.pxd":2600 * cdef cudaChannelFormatDesc _channelDesc * * cdef class anon_union10: # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_6cudart_anon_union10 { PyObject_HEAD struct __pyx_t_4cuda_7ccudart_cudaEglFrame_st *_ptr; }; /* "cuda/cudart.pxd":2617 * cdef ccudart.cudaEglFrame_st* _ptr * * cdef class cudaEglFrame_st: # <<<<<<<<<<<<<< * """ * CUDA EGLFrame Descriptor - structure defining one frame of EGL. */ struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st { PyObject_HEAD struct __pyx_t_4cuda_7ccudart_cudaEglFrame_st *_val_ptr; struct __pyx_t_4cuda_7ccudart_cudaEglFrame_st *_ptr; struct __pyx_obj_4cuda_6cudart_anon_union10 *_frame; }; /* "cuda/cudart.pxd":2651 * cdef anon_union10 _frame * * cdef class CUuuid(CUuuid_st): # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_6cudart_CUuuid { struct __pyx_obj_4cuda_6cudart_CUuuid_st __pyx_base; }; /* "cuda/cudart.pxd":2666 * pass * * cdef class cudaUUID_t(CUuuid_st): # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_6cudart_cudaUUID_t { struct __pyx_obj_4cuda_6cudart_CUuuid_st __pyx_base; }; /* "cuda/cudart.pxd":2681 * pass * * cdef class cudaIpcEventHandle_t(cudaIpcEventHandle_st): # <<<<<<<<<<<<<< * """ * CUDA IPC event handle */ struct __pyx_obj_4cuda_6cudart_cudaIpcEventHandle_t { struct __pyx_obj_4cuda_6cudart_cudaIpcEventHandle_st __pyx_base; }; /* "cuda/cudart.pxd":2698 * pass * * cdef class cudaIpcMemHandle_t(cudaIpcMemHandle_st): # <<<<<<<<<<<<<< * """ * CUDA IPC memory handle */ struct __pyx_obj_4cuda_6cudart_cudaIpcMemHandle_t { struct __pyx_obj_4cuda_6cudart_cudaIpcMemHandle_st __pyx_base; }; /* "cuda/cudart.pxd":2715 * pass * * cdef class cudaMemFabricHandle_t(cudaMemFabricHandle_st): # <<<<<<<<<<<<<< * """ * Attributes */ struct __pyx_obj_4cuda_6cudart_cudaMemFabricHandle_t { struct __pyx_obj_4cuda_6cudart_cudaMemFabricHandle_st __pyx_base; }; /* "cuda/cudart.pxd":2730 * pass * * cdef class cudaGraphEdgeData(cudaGraphEdgeData_st): # <<<<<<<<<<<<<< * """ * Optional annotation for edges in a CUDA graph. Note, all edges */ struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData { struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st __pyx_base; }; /* "cuda/cudart.pxd":2772 * pass * * cdef class cudaGraphInstantiateParams(cudaGraphInstantiateParams_st): # <<<<<<<<<<<<<< * """ * Graph instantiation parameters */ struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams { struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st __pyx_base; }; /* "cuda/cudart.pxd":2795 * pass * * cdef class cudaGraphExecUpdateResultInfo(cudaGraphExecUpdateResultInfo_st): # <<<<<<<<<<<<<< * """ * Result information returned by cudaGraphExecUpdate */ struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo { struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st __pyx_base; }; /* "cuda/cudart.pxd":2819 * pass * * cdef class cudaLaunchMemSyncDomainMap(cudaLaunchMemSyncDomainMap_st): # <<<<<<<<<<<<<< * """ * Memory Synchronization Domain map See cudaLaunchMemSyncDomain. By */ struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap { struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st __pyx_base; }; /* "cuda/cudart.pxd":2844 * pass * * cdef class cudaLaunchAttribute(cudaLaunchAttribute_st): # <<<<<<<<<<<<<< * """ * Launch attribute */ struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute { struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute_st __pyx_base; }; /* "cuda/cudart.pxd":2863 * pass * * cdef class cudaAsyncNotificationInfo_t(cudaAsyncNotificationInfo): # <<<<<<<<<<<<<< * """ * Information describing an async notification event */ struct __pyx_obj_4cuda_6cudart_cudaAsyncNotificationInfo_t { struct __pyx_obj_4cuda_6cudart_cudaAsyncNotificationInfo __pyx_base; }; /* "cuda/cudart.pxd":2882 * pass * * cdef class cudaStreamAttrValue(cudaLaunchAttributeValue): # <<<<<<<<<<<<<< * """ * Launch attributes union; used as value field of */ struct __pyx_obj_4cuda_6cudart_cudaStreamAttrValue { struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue __pyx_base; }; /* "cuda/cudart.pxd":2955 * pass * * cdef class cudaKernelNodeAttrValue(cudaLaunchAttributeValue): # <<<<<<<<<<<<<< * """ * Launch attributes union; used as value field of */ struct __pyx_obj_4cuda_6cudart_cudaKernelNodeAttrValue { struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue __pyx_base; }; /* "cuda/cudart.pxd":3028 * pass * * cdef class cudaEglPlaneDesc(cudaEglPlaneDesc_st): # <<<<<<<<<<<<<< * """ * CUDA EGL Plane Descriptor - structure defining each plane of a CUDA */ struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc { struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st __pyx_base; }; /* "cuda/cudart.pxd":3058 * pass * * cdef class cudaEglFrame(cudaEglFrame_st): # <<<<<<<<<<<<<< * """ * CUDA EGLFrame Descriptor - structure defining one frame of EGL. */ struct __pyx_obj_4cuda_6cudart_cudaEglFrame { struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st __pyx_base; }; /* "cuda/cudart.pxd":3090 * pass * * cdef class cudaStream_t(cuda.CUstream): # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_6cudart_cudaStream_t { struct __pyx_obj_4cuda_4cuda_CUstream __pyx_base; }; /* "cuda/cudart.pxd":3103 * pass * * cdef class cudaEvent_t(cuda.CUevent): # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_6cudart_cudaEvent_t { struct __pyx_obj_4cuda_4cuda_CUevent __pyx_base; }; /* "cuda/cudart.pxd":3116 * pass * * cdef class cudaGraph_t(cuda.CUgraph): # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_6cudart_cudaGraph_t { struct __pyx_obj_4cuda_4cuda_CUgraph __pyx_base; }; /* "cuda/cudart.pxd":3129 * pass * * cdef class cudaGraphNode_t(cuda.CUgraphNode): # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t { struct __pyx_obj_4cuda_4cuda_CUgraphNode __pyx_base; }; /* "cuda/cudart.pxd":3142 * pass * * cdef class cudaUserObject_t(cuda.CUuserObject): # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_6cudart_cudaUserObject_t { struct __pyx_obj_4cuda_4cuda_CUuserObject __pyx_base; }; /* "cuda/cudart.pxd":3155 * pass * * cdef class cudaFunction_t(cuda.CUfunction): # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_6cudart_cudaFunction_t { struct __pyx_obj_4cuda_4cuda_CUfunction __pyx_base; }; /* "cuda/cudart.pxd":3168 * pass * * cdef class cudaMemPool_t(cuda.CUmemoryPool): # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_6cudart_cudaMemPool_t { struct __pyx_obj_4cuda_4cuda_CUmemoryPool __pyx_base; }; /* "cuda/cudart.pxd":3181 * pass * * cdef class cudaGraphExec_t(cuda.CUgraphExec): # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_6cudart_cudaGraphExec_t { struct __pyx_obj_4cuda_4cuda_CUgraphExec __pyx_base; }; /* "cuda/cudart.pxd":3194 * pass * * cdef class cudaEglStreamConnection(cuda.CUeglStreamConnection): # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_6cudart_cudaEglStreamConnection { struct __pyx_obj_4cuda_4cuda_CUeglStreamConnection __pyx_base; }; /* "cuda/cudart.pxd":3207 * pass * * cdef class cudaGraphConditionalHandle: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_6cudart_cudaGraphConditionalHandle { PyObject_HEAD cudaGraphConditionalHandle _cudaGraphConditionalHandle__val; cudaGraphConditionalHandle *_ptr; }; /* "cuda/cudart.pxd":3221 * cdef ccudart.cudaGraphConditionalHandle* _ptr * * cdef class cudaSurfaceObject_t: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_6cudart_cudaSurfaceObject_t { PyObject_HEAD cudaSurfaceObject_t _cudaSurfaceObject_t__val; cudaSurfaceObject_t *_ptr; }; /* "cuda/cudart.pxd":3235 * cdef ccudart.cudaSurfaceObject_t* _ptr * * cdef class cudaTextureObject_t: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_6cudart_cudaTextureObject_t { PyObject_HEAD cudaTextureObject_t _cudaTextureObject_t__val; cudaTextureObject_t *_ptr; }; /* "cuda/cudart.pxd":3249 * cdef ccudart.cudaTextureObject_t* _ptr * * cdef class GLenum: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_6cudart_GLenum { PyObject_HEAD __pyx_t_4cuda_7ccudart_GLenum _GLenum__val; __pyx_t_4cuda_7ccudart_GLenum *_ptr; }; /* "cuda/cudart.pxd":3261 * cdef ccudart.GLenum* _ptr * * cdef class GLuint: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_6cudart_GLuint { PyObject_HEAD __pyx_t_4cuda_7ccudart_GLuint _GLuint__val; __pyx_t_4cuda_7ccudart_GLuint *_ptr; }; /* "cuda/cudart.pxd":3273 * cdef ccudart.GLuint* _ptr * * cdef class EGLint: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_6cudart_EGLint { PyObject_HEAD __pyx_t_4cuda_7ccudart_EGLint _EGLint__val; __pyx_t_4cuda_7ccudart_EGLint *_ptr; }; /* "cuda/cudart.pxd":3285 * cdef ccudart.EGLint* _ptr * * cdef class VdpDevice: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_6cudart_VdpDevice { PyObject_HEAD __pyx_t_4cuda_7ccudart_VdpDevice _VdpDevice__val; __pyx_t_4cuda_7ccudart_VdpDevice *_ptr; }; /* "cuda/cudart.pxd":3297 * cdef ccudart.VdpDevice* _ptr * * cdef class VdpGetProcAddress: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_6cudart_VdpGetProcAddress { PyObject_HEAD __pyx_t_4cuda_7ccudart_VdpGetProcAddress _VdpGetProcAddress__val; __pyx_t_4cuda_7ccudart_VdpGetProcAddress *_ptr; }; /* "cuda/cudart.pxd":3309 * cdef ccudart.VdpGetProcAddress* _ptr * * cdef class VdpVideoSurface: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_6cudart_VdpVideoSurface { PyObject_HEAD __pyx_t_4cuda_7ccudart_VdpVideoSurface _VdpVideoSurface__val; __pyx_t_4cuda_7ccudart_VdpVideoSurface *_ptr; }; /* "cuda/cudart.pxd":3321 * cdef ccudart.VdpVideoSurface* _ptr * * cdef class VdpOutputSurface: # <<<<<<<<<<<<<< * """ * */ struct __pyx_obj_4cuda_6cudart_VdpOutputSurface { PyObject_HEAD __pyx_t_4cuda_7ccudart_VdpOutputSurface _VdpOutputSurface__val; __pyx_t_4cuda_7ccudart_VdpOutputSurface *_ptr; }; /* "cuda/cudart.pyx":15650 * """ * 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[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * dependencies = [] if dependencies is None else dependencies */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct__genexpr { PyObject_HEAD PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v__x; }; /* "cuda/cudart.pyx":15653 * raise TypeError("Argument 'dependencyData' is not instance of type (expected Tuple[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * dependencies = [] if dependencies is None else dependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in dependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_1_genexpr { PyObject_HEAD PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v__x; }; /* "cuda/cudart.pyx":16085 * """ * dependencies = [] if dependencies is None else dependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in dependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaStream_t cstream */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_2_genexpr { PyObject_HEAD PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v__x; }; /* "cuda/cudart.pyx":16154 * """ * 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[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * dependencies = [] if dependencies is None else dependencies */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_3_genexpr { PyObject_HEAD PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v__x; }; /* "cuda/cudart.pyx":16157 * raise TypeError("Argument 'dependencyData' is not instance of type (expected Tuple[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * dependencies = [] if dependencies is None else dependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in dependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaStream_t cstream */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_4_genexpr { PyObject_HEAD PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v__x; }; /* "cuda/cudart.pyx":17127 * cstream = 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[ccudart.cudaExternalSemaphoreSignalParams,] or List[ccudart.cudaExternalSemaphoreSignalParams,]") * extSemArray = [] if extSemArray is None else extSemArray */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_5_genexpr { PyObject_HEAD PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v__x; }; /* "cuda/cudart.pyx":17130 * raise TypeError("Argument 'paramsArray' is not instance of type (expected Tuple[ccudart.cudaExternalSemaphoreSignalParams,] or List[ccudart.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[ccudart.cudaExternalSemaphore_t,] or List[ccudart.cudaExternalSemaphore_t,]") * cdef ccudart.cudaExternalSemaphore_t* cextSemArray = NULL */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_6_genexpr { PyObject_HEAD PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v__x; }; /* "cuda/cudart.pyx":17249 * cstream = 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[ccudart.cudaExternalSemaphoreWaitParams,] or List[ccudart.cudaExternalSemaphoreWaitParams,]") * extSemArray = [] if extSemArray is None else extSemArray */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_7_genexpr { PyObject_HEAD PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v__x; }; /* "cuda/cudart.pyx":17252 * raise TypeError("Argument 'paramsArray' is not instance of type (expected Tuple[ccudart.cudaExternalSemaphoreWaitParams,] or List[ccudart.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[ccudart.cudaExternalSemaphore_t,] or List[ccudart.cudaExternalSemaphore_t,]") * cdef ccudart.cudaExternalSemaphore_t* cextSemArray = NULL */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_8_genexpr { PyObject_HEAD PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v__x; }; /* "cuda/cudart.pyx":21266 * """ * 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[ccudart.cudaMemRangeAttribute] or List[ccudart.cudaMemRangeAttribute]") * if not all(isinstance(_x, (int)) for _x in dataSizes): */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_9_genexpr { PyObject_HEAD PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v__x; }; /* "cuda/cudart.pyx":21268 * if not all(isinstance(_x, (cudaMemRangeAttribute)) for _x in attributes): * raise TypeError("Argument 'attributes' is not instance of type (expected Tuple[ccudart.cudaMemRangeAttribute] or List[ccudart.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 = [utils.HelperCUmem_range_attribute(pyattributes, pydataSizes) for (pyattributes, pydataSizes) in zip(attributes, dataSizes)] */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_10_genexpr { PyObject_HEAD PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v__x; }; /* "cuda/cudart.pyx":21936 * """ * 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[ccudart.cudaMemAccessDesc,] or List[ccudart.cudaMemAccessDesc,]") * cdef ccudart.cudaMemPool_t cmemPool */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_11_genexpr { PyObject_HEAD PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v__x; }; /* "cuda/cudart.pyx":23587 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_12_genexpr { PyObject_HEAD PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v__x; }; /* "cuda/cudart.pyx":23858 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_13_genexpr { PyObject_HEAD PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v__x; }; /* "cuda/cudart.pyx":23943 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_14_genexpr { PyObject_HEAD PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v__x; }; /* "cuda/cudart.pyx":24138 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_15_genexpr { PyObject_HEAD PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v__x; }; /* "cuda/cudart.pyx":24272 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_16_genexpr { PyObject_HEAD PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v__x; }; /* "cuda/cudart.pyx":24418 * cchildGraph = pchildGraph * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_17_genexpr { PyObject_HEAD PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v__x; }; /* "cuda/cudart.pyx":24522 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_18_genexpr { PyObject_HEAD PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v__x; }; /* "cuda/cudart.pyx":24596 * cevent = pevent * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_19_genexpr { PyObject_HEAD PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v__x; }; /* "cuda/cudart.pyx":24751 * cevent = pevent * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_20_genexpr { PyObject_HEAD PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v__x; }; /* "cuda/cudart.pyx":24893 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_21_genexpr { PyObject_HEAD PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v__x; }; /* "cuda/cudart.pyx":25035 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_22_genexpr { PyObject_HEAD PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v__x; }; /* "cuda/cudart.pyx":25215 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_23_genexpr { PyObject_HEAD PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v__x; }; /* "cuda/cudart.pyx":25334 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_24_genexpr { PyObject_HEAD PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v__x; }; /* "cuda/cudart.pyx":26182 * """ * to = [] if to is None else to * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in to): # <<<<<<<<<<<<<< * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * from_ = [] if from_ is None else from_ */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_25_genexpr { PyObject_HEAD PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v__x; }; /* "cuda/cudart.pyx":26185 * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * from_ = [] if from_ is None else from_ * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in from_): # <<<<<<<<<<<<<< * raise TypeError("Argument 'from_' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_26_genexpr { PyObject_HEAD PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v__x; }; /* "cuda/cudart.pyx":26256 * """ * 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[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * to = [] if to is None else to */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_27_genexpr { PyObject_HEAD PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v__x; }; /* "cuda/cudart.pyx":26259 * raise TypeError("Argument 'edgeData' is not instance of type (expected Tuple[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * to = [] if to is None else to * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in to): # <<<<<<<<<<<<<< * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * from_ = [] if from_ is None else from_ */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_28_genexpr { PyObject_HEAD PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v__x; }; /* "cuda/cudart.pyx":26262 * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * from_ = [] if from_ is None else from_ * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in from_): # <<<<<<<<<<<<<< * raise TypeError("Argument 'from_' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_29_genexpr { PyObject_HEAD PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v__x; }; /* "cuda/cudart.pyx":26338 * """ * to = [] if to is None else to * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in to): # <<<<<<<<<<<<<< * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * from_ = [] if from_ is None else from_ */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_30_genexpr { PyObject_HEAD PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v__x; }; /* "cuda/cudart.pyx":26341 * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * from_ = [] if from_ is None else from_ * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in from_): # <<<<<<<<<<<<<< * raise TypeError("Argument 'from_' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_31_genexpr { PyObject_HEAD PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v__x; }; /* "cuda/cudart.pyx":26415 * """ * 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[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * to = [] if to is None else to */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_32_genexpr { PyObject_HEAD PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v__x; }; /* "cuda/cudart.pyx":26418 * raise TypeError("Argument 'edgeData' is not instance of type (expected Tuple[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * to = [] if to is None else to * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in to): # <<<<<<<<<<<<<< * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * from_ = [] if from_ is None else from_ */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_33_genexpr { PyObject_HEAD PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v__x; }; /* "cuda/cudart.pyx":26421 * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * from_ = [] if from_ is None else from_ * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in from_): # <<<<<<<<<<<<<< * raise TypeError("Argument 'from_' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_34_genexpr { PyObject_HEAD PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v__x; }; /* "cuda/cudart.pyx":28299 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_35_genexpr { PyObject_HEAD PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v__x; }; /* "cuda/cudart.pyx":28375 * """ * 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[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * pDependencies = [] if pDependencies is None else pDependencies */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_36_genexpr { PyObject_HEAD PyObject *__pyx_genexpr_arg_0; PyObject *__pyx_v__x; }; /* "cuda/cudart.pyx":28378 * raise TypeError("Argument 'dependencyData' is not instance of type (expected Tuple[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_37_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; #ifdef WITH_THREAD #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);\ } #else #define __Pyx_RefNannySetupContext(name, acquire_gil)\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), (__LINE__), (__FILE__)) #define __Pyx_RefNannyFinishContextNogil() __Pyx_RefNannyFinishContext() #endif #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 */ #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 */ #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 */ #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 */ #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 */ static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name); /* GetBuiltinName.proto */ static PyObject *__Pyx_GetBuiltinName(PyObject *name); /* Profile.proto */ #ifndef CYTHON_PROFILE #if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_PYPY #define CYTHON_PROFILE 0 #else #define CYTHON_PROFILE 1 #endif #endif #ifndef CYTHON_TRACE_NOGIL #define CYTHON_TRACE_NOGIL 0 #else #if CYTHON_TRACE_NOGIL && !defined(CYTHON_TRACE) #define CYTHON_TRACE 1 #endif #endif #ifndef CYTHON_TRACE #define CYTHON_TRACE 0 #endif #if CYTHON_TRACE #undef CYTHON_PROFILE_REUSE_FRAME #endif #ifndef CYTHON_PROFILE_REUSE_FRAME #define CYTHON_PROFILE_REUSE_FRAME 0 #endif #if CYTHON_PROFILE || CYTHON_TRACE #include "compile.h" #include "frameobject.h" #include "traceback.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 #if CYTHON_PROFILE_REUSE_FRAME #define CYTHON_FRAME_MODIFIER static #define CYTHON_FRAME_DEL(frame) #else #define CYTHON_FRAME_MODIFIER #define CYTHON_FRAME_DEL(frame) Py_CLEAR(frame) #endif #define __Pyx_TraceDeclarations\ static PyCodeObject *__pyx_frame_code = NULL;\ CYTHON_FRAME_MODIFIER PyFrameObject *__pyx_frame = NULL;\ int __Pyx_use_tracing = 0; #define __Pyx_TraceFrameInit(codeobj)\ if (codeobj) __pyx_frame_code = (PyCodeObject*) codeobj; #if PY_VERSION_HEX >= 0x030b00a2 #if PY_VERSION_HEX >= 0x030C00b1 #define __Pyx_IsTracing(tstate, check_tracing, check_funcs)\ ((!(check_tracing) || !(tstate)->tracing) &&\ (!(check_funcs) || (tstate)->c_profilefunc || (CYTHON_TRACE && (tstate)->c_tracefunc))) #else #define __Pyx_IsTracing(tstate, check_tracing, check_funcs)\ (unlikely((tstate)->cframe->use_tracing) &&\ (!(check_tracing) || !(tstate)->tracing) &&\ (!(check_funcs) || (tstate)->c_profilefunc || (CYTHON_TRACE && (tstate)->c_tracefunc))) #endif #define __Pyx_EnterTracing(tstate) PyThreadState_EnterTracing(tstate) #define __Pyx_LeaveTracing(tstate) PyThreadState_LeaveTracing(tstate) #elif PY_VERSION_HEX >= 0x030a00b1 #define __Pyx_IsTracing(tstate, check_tracing, check_funcs)\ (unlikely((tstate)->cframe->use_tracing) &&\ (!(check_tracing) || !(tstate)->tracing) &&\ (!(check_funcs) || (tstate)->c_profilefunc || (CYTHON_TRACE && (tstate)->c_tracefunc))) #define __Pyx_EnterTracing(tstate)\ do { tstate->tracing++; tstate->cframe->use_tracing = 0; } while (0) #define __Pyx_LeaveTracing(tstate)\ do {\ tstate->tracing--;\ tstate->cframe->use_tracing = ((CYTHON_TRACE && tstate->c_tracefunc != NULL)\ || tstate->c_profilefunc != NULL);\ } while (0) #else #define __Pyx_IsTracing(tstate, check_tracing, check_funcs)\ (unlikely((tstate)->use_tracing) &&\ (!(check_tracing) || !(tstate)->tracing) &&\ (!(check_funcs) || (tstate)->c_profilefunc || (CYTHON_TRACE && (tstate)->c_tracefunc))) #define __Pyx_EnterTracing(tstate)\ do { tstate->tracing++; tstate->use_tracing = 0; } while (0) #define __Pyx_LeaveTracing(tstate)\ do {\ tstate->tracing--;\ tstate->use_tracing = ((CYTHON_TRACE && tstate->c_tracefunc != NULL)\ || tstate->c_profilefunc != NULL);\ } while (0) #endif #ifdef WITH_THREAD #define __Pyx_TraceCall(funcname, srcfile, firstlineno, nogil, goto_error)\ if (nogil) {\ if (CYTHON_TRACE_NOGIL) {\ PyThreadState *tstate;\ PyGILState_STATE state = PyGILState_Ensure();\ tstate = __Pyx_PyThreadState_Current;\ if (__Pyx_IsTracing(tstate, 1, 1)) {\ __Pyx_use_tracing = __Pyx_TraceSetupAndCall(&__pyx_frame_code, &__pyx_frame, tstate, funcname, srcfile, firstlineno);\ }\ PyGILState_Release(state);\ if (unlikely(__Pyx_use_tracing < 0)) goto_error;\ }\ } else {\ PyThreadState* tstate = PyThreadState_GET();\ if (__Pyx_IsTracing(tstate, 1, 1)) {\ __Pyx_use_tracing = __Pyx_TraceSetupAndCall(&__pyx_frame_code, &__pyx_frame, tstate, funcname, srcfile, firstlineno);\ if (unlikely(__Pyx_use_tracing < 0)) goto_error;\ }\ } #else #define __Pyx_TraceCall(funcname, srcfile, firstlineno, nogil, goto_error)\ { PyThreadState* tstate = PyThreadState_GET();\ if (__Pyx_IsTracing(tstate, 1, 1)) {\ __Pyx_use_tracing = __Pyx_TraceSetupAndCall(&__pyx_frame_code, &__pyx_frame, tstate, funcname, srcfile, firstlineno);\ if (unlikely(__Pyx_use_tracing < 0)) goto_error;\ }\ } #endif #define __Pyx_TraceException()\ if (likely(!__Pyx_use_tracing)); else {\ PyThreadState* tstate = __Pyx_PyThreadState_Current;\ if (__Pyx_IsTracing(tstate, 0, 1)) {\ __Pyx_EnterTracing(tstate);\ PyObject *exc_info = __Pyx_GetExceptionTuple(tstate);\ if (exc_info) {\ if (CYTHON_TRACE && tstate->c_tracefunc)\ tstate->c_tracefunc(\ tstate->c_traceobj, __pyx_frame, PyTrace_EXCEPTION, exc_info);\ tstate->c_profilefunc(\ tstate->c_profileobj, __pyx_frame, PyTrace_EXCEPTION, exc_info);\ Py_DECREF(exc_info);\ }\ __Pyx_LeaveTracing(tstate);\ }\ } static void __Pyx_call_return_trace_func(PyThreadState *tstate, PyFrameObject *frame, PyObject *result) { PyObject *type, *value, *traceback; __Pyx_ErrFetchInState(tstate, &type, &value, &traceback); __Pyx_EnterTracing(tstate); if (CYTHON_TRACE && tstate->c_tracefunc) tstate->c_tracefunc(tstate->c_traceobj, frame, PyTrace_RETURN, result); if (tstate->c_profilefunc) tstate->c_profilefunc(tstate->c_profileobj, frame, PyTrace_RETURN, result); CYTHON_FRAME_DEL(frame); __Pyx_LeaveTracing(tstate); __Pyx_ErrRestoreInState(tstate, type, value, traceback); } #ifdef WITH_THREAD #define __Pyx_TraceReturn(result, nogil)\ if (likely(!__Pyx_use_tracing)); else {\ if (nogil) {\ if (CYTHON_TRACE_NOGIL) {\ PyThreadState *tstate;\ PyGILState_STATE state = PyGILState_Ensure();\ tstate = __Pyx_PyThreadState_Current;\ if (__Pyx_IsTracing(tstate, 0, 0)) {\ __Pyx_call_return_trace_func(tstate, __pyx_frame, (PyObject*)result);\ }\ PyGILState_Release(state);\ }\ } else {\ PyThreadState* tstate = __Pyx_PyThreadState_Current;\ if (__Pyx_IsTracing(tstate, 0, 0)) {\ __Pyx_call_return_trace_func(tstate, __pyx_frame, (PyObject*)result);\ }\ }\ } #else #define __Pyx_TraceReturn(result, nogil)\ if (likely(!__Pyx_use_tracing)); else {\ PyThreadState* tstate = __Pyx_PyThreadState_Current;\ if (__Pyx_IsTracing(tstate, 0, 0)) {\ __Pyx_call_return_trace_func(tstate, __pyx_frame, (PyObject*)result);\ }\ } #endif static PyCodeObject *__Pyx_createFrameCodeObject(const char *funcname, const char *srcfile, int firstlineno); static int __Pyx_TraceSetupAndCall(PyCodeObject** code, PyFrameObject** frame, PyThreadState* tstate, const char *funcname, const char *srcfile, int firstlineno); #else #define __Pyx_TraceDeclarations #define __Pyx_TraceFrameInit(codeobj) #define __Pyx_TraceCall(funcname, srcfile, firstlineno, nogil, goto_error) if ((1)); else goto_error; #define __Pyx_TraceException() #define __Pyx_TraceReturn(result, nogil) #endif #if CYTHON_TRACE static int __Pyx_call_line_trace_func(PyThreadState *tstate, PyFrameObject *frame, int lineno) { int ret; PyObject *type, *value, *traceback; __Pyx_ErrFetchInState(tstate, &type, &value, &traceback); __Pyx_PyFrame_SetLineNumber(frame, lineno); __Pyx_EnterTracing(tstate); ret = tstate->c_tracefunc(tstate->c_traceobj, frame, PyTrace_LINE, NULL); __Pyx_LeaveTracing(tstate); if (likely(!ret)) { __Pyx_ErrRestoreInState(tstate, type, value, traceback); } else { Py_XDECREF(type); Py_XDECREF(value); Py_XDECREF(traceback); } return ret; } #ifdef WITH_THREAD #define __Pyx_TraceLine(lineno, nogil, goto_error)\ if (likely(!__Pyx_use_tracing)); else {\ if (nogil) {\ if (CYTHON_TRACE_NOGIL) {\ int ret = 0;\ PyThreadState *tstate;\ PyGILState_STATE state = __Pyx_PyGILState_Ensure();\ tstate = __Pyx_PyThreadState_Current;\ if (__Pyx_IsTracing(tstate, 0, 0) && tstate->c_tracefunc && __pyx_frame->f_trace) {\ ret = __Pyx_call_line_trace_func(tstate, __pyx_frame, lineno);\ }\ __Pyx_PyGILState_Release(state);\ if (unlikely(ret)) goto_error;\ }\ } else {\ PyThreadState* tstate = __Pyx_PyThreadState_Current;\ if (__Pyx_IsTracing(tstate, 0, 0) && tstate->c_tracefunc && __pyx_frame->f_trace) {\ int ret = __Pyx_call_line_trace_func(tstate, __pyx_frame, lineno);\ if (unlikely(ret)) goto_error;\ }\ }\ } #else #define __Pyx_TraceLine(lineno, nogil, goto_error)\ if (likely(!__Pyx_use_tracing)); else {\ PyThreadState* tstate = __Pyx_PyThreadState_Current;\ if (__Pyx_IsTracing(tstate, 0, 0) && tstate->c_tracefunc && __pyx_frame->f_trace) {\ int ret = __Pyx_call_line_trace_func(tstate, __pyx_frame, lineno);\ if (unlikely(ret)) goto_error;\ }\ } #endif #else #define __Pyx_TraceLine(lineno, nogil, goto_error) if ((1)); else goto_error; #endif /* GetTopmostException.proto */ #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 /* 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) #define __Pyx_PyErr_GivenExceptionMatches2(err, type1, type2) (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) /* TupleAndListFromArray.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyList_FromArray(PyObject *const *src, Py_ssize_t n); static CYTHON_INLINE PyObject* __Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n); #endif /* IncludeStringH.proto */ #include /* BytesEquals.proto */ static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals); /* UnicodeEquals.proto */ static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals); /* fastcall.proto */ #if CYTHON_AVOID_BORROWED_REFS #define __Pyx_Arg_VARARGS(args, i) PySequence_GetItem(args, i) #elif CYTHON_ASSUME_SAFE_MACROS #define __Pyx_Arg_VARARGS(args, i) PyTuple_GET_ITEM(args, i) #else #define __Pyx_Arg_VARARGS(args, i) PyTuple_GetItem(args, i) #endif #if CYTHON_AVOID_BORROWED_REFS #define __Pyx_Arg_NewRef_VARARGS(arg) __Pyx_NewRef(arg) #define __Pyx_Arg_XDECREF_VARARGS(arg) Py_XDECREF(arg) #else #define __Pyx_Arg_NewRef_VARARGS(arg) arg #define __Pyx_Arg_XDECREF_VARARGS(arg) #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_Arg_FASTCALL(args, i) args[i] #define __Pyx_NumKwargs_FASTCALL(kwds) 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_UNUSED static PyObject *__Pyx_KwargsAsDict_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues); #else #define __Pyx_KwargsAsDict_FASTCALL(kw, kwvalues) _PyStack_AsDict(kwvalues, kw) #endif #define __Pyx_Arg_NewRef_FASTCALL(arg) arg /* no-op, __Pyx_Arg_FASTCALL is direct and this needs to have the same reference counting */ #define __Pyx_Arg_XDECREF_FASTCALL(arg) #else #define __Pyx_Arg_FASTCALL __Pyx_Arg_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 #define __Pyx_Arg_NewRef_FASTCALL(arg) __Pyx_Arg_NewRef_VARARGS(arg) #define __Pyx_Arg_XDECREF_FASTCALL(arg) __Pyx_Arg_XDECREF_VARARGS(arg) #endif #if CYTHON_COMPILING_IN_CPYTHON && CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS #define __Pyx_ArgsSlice_VARARGS(args, start, stop) __Pyx_PyTuple_FromArray(&__Pyx_Arg_VARARGS(args, start), stop - start) #define __Pyx_ArgsSlice_FASTCALL(args, start, stop) __Pyx_PyTuple_FromArray(&__Pyx_Arg_FASTCALL(args, start), stop - start) #else #define __Pyx_ArgsSlice_VARARGS(args, start, stop) PyTuple_GetSlice(args, start, stop) #define __Pyx_ArgsSlice_FASTCALL(args, start, stop) PyTuple_GetSlice(args, start, stop) #endif /* RaiseDoubleKeywords.proto */ static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name); /* ParseKeywords.proto */ static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject *const *kwvalues, PyObject **argnames[], PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args, const char* function_name); /* 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); /* KeywordStringCheck.proto */ static int __Pyx_CheckKeywordStrings(PyObject *kw, const char* function_name, int kw_allowed); /* PyObject_Unicode.proto */ #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyObject_Unicode(obj)\ (likely(PyUnicode_CheckExact(obj)) ? __Pyx_NewRef(obj) : PyObject_Str(obj)) #else #define __Pyx_PyObject_Unicode(obj)\ (likely(PyUnicode_CheckExact(obj)) ? __Pyx_NewRef(obj) : PyObject_Unicode(obj)) #endif /* PyFunctionFastCall.proto */ #if CYTHON_FAST_PYCALL #if !CYTHON_VECTORCALL #define __Pyx_PyFunction_FastCall(func, args, nargs)\ __Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL) static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs); #endif #define __Pyx_BUILD_ASSERT_EXPR(cond)\ (sizeof(char [1 - 2*!(cond)]) - 1) #ifndef Py_MEMBER_SIZE #define Py_MEMBER_SIZE(type, member) sizeof(((type *)0)->member) #endif #if !CYTHON_VECTORCALL #if PY_VERSION_HEX >= 0x03080000 #include "frameobject.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 #define __Pxy_PyFrame_Initialize_Offsets() #define __Pyx_PyFrame_GetLocalsplus(frame) ((frame)->f_localsplus) #else static size_t __pyx_pyframe_localsplus_offset = 0; #include "frameobject.h" #define __Pxy_PyFrame_Initialize_Offsets()\ ((void)__Pyx_BUILD_ASSERT_EXPR(sizeof(PyFrameObject) == offsetof(PyFrameObject, f_localsplus) + Py_MEMBER_SIZE(PyFrameObject, f_localsplus)),\ (void)(__pyx_pyframe_localsplus_offset = ((size_t)PyFrame_Type.tp_basicsize) - Py_MEMBER_SIZE(PyFrameObject, f_localsplus))) #define __Pyx_PyFrame_GetLocalsplus(frame)\ (assert(__pyx_pyframe_localsplus_offset), (PyObject **)(((char *)(frame)) + __pyx_pyframe_localsplus_offset)) #endif #endif #endif /* PyObjectCall.proto */ #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 */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg); #endif /* PyObjectFastCall.proto */ #define __Pyx_PyObject_FastCall(func, args, nargs) __Pyx_PyObject_FastCallDict(func, args, (size_t)(nargs), NULL) static CYTHON_INLINE PyObject* __Pyx_PyObject_FastCallDict(PyObject *func, PyObject **args, size_t nargs, PyObject *kwargs); /* PyObjectCallOneArg.proto */ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg); /* UnicodeConcatInPlace.proto */ # if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3 #if CYTHON_REFNANNY #define __Pyx_PyUnicode_ConcatInPlace(left, right) __Pyx_PyUnicode_ConcatInPlaceImpl(&left, right, __pyx_refnanny) #else #define __Pyx_PyUnicode_ConcatInPlace(left, right) __Pyx_PyUnicode_ConcatInPlaceImpl(&left, right) #endif static CYTHON_INLINE PyObject *__Pyx_PyUnicode_ConcatInPlaceImpl(PyObject **p_left, PyObject *right #if CYTHON_REFNANNY , void* __pyx_refnanny #endif ); #else #define __Pyx_PyUnicode_ConcatInPlace __Pyx_PyUnicode_Concat #endif #define __Pyx_PyUnicode_ConcatInPlaceSafe(left, right) ((unlikely((left) == Py_None) || unlikely((right) == Py_None)) ?\ PyNumber_InPlaceAdd(left, right) : __Pyx_PyUnicode_ConcatInPlace(left, right)) /* RaiseException.proto */ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause); /* WriteUnraisableException.proto */ static void __Pyx_WriteUnraisable(const char *name, int clineno, int lineno, const char *filename, int full_traceback, int nogil); /* GetException.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_GetException(type, value, tb) __Pyx__GetException(__pyx_tstate, type, value, tb) static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #else static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb); #endif /* PyDictVersioning.proto */ #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_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_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 /* 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 /* 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)) static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact); /* PyIntBinop.proto */ #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check); #else #define __Pyx_PyInt_AddObjC(op1, op2, intval, inplace, zerodivision_check)\ (inplace ? PyNumber_InPlaceAdd(op1, op2) : PyNumber_Add(op1, op2)) #endif /* GetItemInt.proto */ #define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck) :\ (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)\ (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\ (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); #define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\ (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); 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); /* PyIntBinop.proto */ #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check); #else #define __Pyx_PyInt_SubtractObjC(op1, op2, intval, inplace, zerodivision_check)\ (inplace ? PyNumber_InPlaceSubtract(op1, op2) : PyNumber_Subtract(op1, op2)) #endif /* PyObjectCallNoArg.proto */ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func); /* ErrOccurredWithGIL.proto */ static CYTHON_INLINE int __Pyx_ErrOccurredWithGIL(void); /* PySequenceMultiply.proto */ #define __Pyx_PySequence_Multiply_Left(mul, seq) __Pyx_PySequence_Multiply(seq, mul) static CYTHON_INLINE PyObject* __Pyx_PySequence_Multiply(PyObject *seq, Py_ssize_t mul); /* RaiseUnboundLocalError.proto */ static CYTHON_INLINE void __Pyx_RaiseUnboundLocalError(const char *varname); /* pep479.proto */ static void __Pyx_Generator_Replace_StopIteration(int in_async_gen); /* RaiseTooManyValuesToUnpack.proto */ static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected); /* RaiseNeedMoreValuesToUnpack.proto */ static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index); /* IterFinish.proto */ static CYTHON_INLINE int __Pyx_IterFinish(void); /* UnpackItemEndCheck.proto */ static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected); /* MoveIfSupported.proto */ #if CYTHON_USE_CPP_STD_MOVE #include #define __PYX_STD_MOVE_IF_SUPPORTED(x) std::move(x) #else #define __PYX_STD_MOVE_IF_SUPPORTED(x) x #endif /* IncludeStructmemberH.proto */ #include /* FixUpExtensionType.proto */ #if CYTHON_USE_TYPE_SPECS static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject *type); #endif /* PyObjectGetMethod.proto */ static int __Pyx_PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method); /* PyObjectCallMethod0.proto */ static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name); /* ValidateBasesTuple.proto */ #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); /* PyObject_GenericGetAttrNoDict.proto */ #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000 static CYTHON_INLINE PyObject* __Pyx_PyObject_GenericGetAttrNoDict(PyObject* obj, PyObject* attr_name); #else #define __Pyx_PyObject_GenericGetAttrNoDict PyObject_GenericGetAttr #endif /* PyObject_GenericGetAttr.proto */ #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000 static PyObject* __Pyx_PyObject_GenericGetAttr(PyObject* obj, PyObject* attr_name); #else #define __Pyx_PyObject_GenericGetAttr PyObject_GenericGetAttr #endif /* SetupReduce.proto */ #if !CYTHON_COMPILING_IN_LIMITED_API static int __Pyx_setup_reduce(PyObject* type_obj); #endif /* TypeImport.proto */ #ifndef __PYX_HAVE_RT_ImportType_proto_3_0_12 #define __PYX_HAVE_RT_ImportType_proto_3_0_12 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L #include #endif #if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || __cplusplus >= 201103L #define __PYX_GET_STRUCT_ALIGNMENT_3_0_12(s) alignof(s) #else #define __PYX_GET_STRUCT_ALIGNMENT_3_0_12(s) sizeof(void*) #endif enum __Pyx_ImportType_CheckSize_3_0_12 { __Pyx_ImportType_CheckSize_Error_3_0_12 = 0, __Pyx_ImportType_CheckSize_Warn_3_0_12 = 1, __Pyx_ImportType_CheckSize_Ignore_3_0_12 = 2 }; static PyTypeObject *__Pyx_ImportType_3_0_12(PyObject* module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_0_12 check_size); #endif /* Import.proto */ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level); /* ImportFrom.proto */ static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name); /* ImportDottedModule.proto */ static PyObject *__Pyx_ImportDottedModule(PyObject *name, PyObject *parts_tuple); #if PY_MAJOR_VERSION >= 3 static PyObject *__Pyx_ImportDottedModule_WalkParts(PyObject *module, PyObject *name, PyObject *parts_tuple); #endif /* 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 >= 0x030500A1 && 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 */ static CYTHON_INLINE PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyObject* arg1, PyObject* arg2); /* PyObjectLookupSpecial.proto */ #if CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS #define __Pyx_PyObject_LookupSpecialNoError(obj, attr_name) __Pyx__PyObject_LookupSpecial(obj, attr_name, 0) #define __Pyx_PyObject_LookupSpecial(obj, attr_name) __Pyx__PyObject_LookupSpecial(obj, attr_name, 1) static CYTHON_INLINE PyObject* __Pyx__PyObject_LookupSpecial(PyObject* obj, PyObject* attr_name, int with_error); #else #define __Pyx_PyObject_LookupSpecialNoError(o,n) __Pyx_PyObject_GetAttrStrNoError(o,n) #define __Pyx_PyObject_LookupSpecial(o,n) __Pyx_PyObject_GetAttrStr(o,n) #endif /* 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); /* FetchSharedCythonModule.proto */ static PyObject *__Pyx_FetchSharedCythonABIModule(void); /* FetchCommonType.proto */ #if !CYTHON_USE_TYPE_SPECS static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type); #else static PyTypeObject* __Pyx_FetchCommonTypeFromSpec(PyObject *module, PyType_Spec *spec, PyObject *bases); #endif /* PyMethodNew.proto */ #if CYTHON_COMPILING_IN_LIMITED_API static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, PyObject *typ) { PyObject *typesModule=NULL, *methodType=NULL, *result=NULL; CYTHON_UNUSED_VAR(typ); if (!self) return __Pyx_NewRef(func); typesModule = PyImport_ImportModule("types"); if (!typesModule) return NULL; methodType = PyObject_GetAttrString(typesModule, "MethodType"); Py_DECREF(typesModule); if (!methodType) return NULL; result = PyObject_CallFunctionObjArgs(methodType, func, self, NULL); Py_DECREF(methodType); return result; } #elif PY_MAJOR_VERSION >= 3 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); } #else #define __Pyx_PyMethod_New PyMethod_New #endif /* PyVectorcallFastCallDict.proto */ #if CYTHON_METH_FASTCALL static CYTHON_INLINE PyObject *__Pyx_PyVectorcall_FastCallDict(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw); #endif /* CythonFunctionShared.proto */ #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_BACKPORT_VECTORCALL __pyx_vectorcallfunc func_vectorcall; #endif #if PY_VERSION_HEX < 0x030500A0 || CYTHON_COMPILING_IN_LIMITED_API PyObject *func_weakreflist; #endif PyObject *func_dict; 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 void *defaults; int defaults_pyobjects; size_t defaults_size; 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_CyFunctionType) #define __Pyx_CyOrPyCFunction_Check(obj) __Pyx_TypeCheck2(obj, __pyx_CyFunctionType, &PyCFunction_Type) #define __Pyx_CyFunction_CheckExact(obj) __Pyx_IS_TYPE(obj, __pyx_CyFunctionType) static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void *cfunc); #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 void *__Pyx_CyFunction_InitDefaults(PyObject *m, size_t size, int pyobjects); 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_BACKPORT_VECTORCALL #define __Pyx_CyFunction_func_vectorcall(f) (((__pyx_CyFunctionObject*)f)->func_vectorcall) #else #define __Pyx_CyFunction_func_vectorcall(f) (((PyCFunctionObject*)f)->vectorcall) #endif #endif /* CythonFunction.proto */ static PyObject *__Pyx_CyFunction_New(PyMethodDef *ml, int flags, PyObject* qualname, PyObject *closure, PyObject *module, PyObject *globals, PyObject* code); /* CLineInTraceback.proto */ #ifdef CYTHON_CLINE_IN_TRACEBACK #define __Pyx_CLineForTraceback(tstate, c_line) (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0) #else static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line); #endif /* CodeObjectCache.proto */ #if !CYTHON_COMPILING_IN_LIMITED_API typedef struct { PyCodeObject* code_object; int code_line; } __Pyx_CodeObjectCacheEntry; struct __Pyx_CodeObjectCache { int count; int max_count; __Pyx_CodeObjectCacheEntry* entries; }; static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL}; static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line); static PyCodeObject *__pyx_find_code_object(int code_line); static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object); #endif /* AddTraceback.proto */ static void __Pyx_AddTraceback(const char *funcname, int c_line, int py_line, const char *filename); /* None.proto */ #include /* GCCDiagnostics.proto */ #if !defined(__INTEL_COMPILER) && defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) #define __Pyx_HAS_GCC_DIAGNOSTIC #endif /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From___pyx_anon_enum(int value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaError(enum cudaError value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaGraphDependencyType_enum(enum cudaGraphDependencyType_enum value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaGraphInstantiateResult(enum cudaGraphInstantiateResult value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaLaunchMemSyncDomain(enum cudaLaunchMemSyncDomain value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaLaunchAttributeID(enum cudaLaunchAttributeID value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaAsyncNotificationType_enum(enum cudaAsyncNotificationType_enum value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaDataType_t(enum cudaDataType_t value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__libraryPropertyType_t(enum libraryPropertyType_t value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglFrameType_enum(enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglResourceLocationFlags_enum(enum __pyx_t_4cuda_7ccudart_cudaEglResourceLocationFlags_enum value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaChannelFormatKind(enum cudaChannelFormatKind value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaMemoryType(enum cudaMemoryType value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaMemcpyKind(enum cudaMemcpyKind value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaAccessProperty(enum cudaAccessProperty value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaStreamCaptureStatus(enum cudaStreamCaptureStatus value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaStreamCaptureMode(enum cudaStreamCaptureMode value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaSynchronizationPolicy(enum cudaSynchronizationPolicy value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaClusterSchedulingPolicy(enum cudaClusterSchedulingPolicy value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaStreamUpdateCaptureDependenciesFlags(enum cudaStreamUpdateCaptureDependenciesFlags value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaUserObjectFlags(enum cudaUserObjectFlags value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaUserObjectRetainFlags(enum cudaUserObjectRetainFlags value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaGraphicsRegisterFlags(enum cudaGraphicsRegisterFlags value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaGraphicsMapFlags(enum cudaGraphicsMapFlags value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaGraphicsCubeFace(enum cudaGraphicsCubeFace value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaResourceType(enum cudaResourceType value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaResourceViewFormat(enum cudaResourceViewFormat value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaFuncAttribute(enum cudaFuncAttribute value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaFuncCache(enum cudaFuncCache value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaSharedMemConfig(enum cudaSharedMemConfig value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaSharedCarveout(enum cudaSharedCarveout value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaComputeMode(enum cudaComputeMode value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaLimit(enum cudaLimit value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaMemoryAdvise(enum cudaMemoryAdvise value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaMemRangeAttribute(enum cudaMemRangeAttribute value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaFlushGPUDirectRDMAWritesOptions(enum cudaFlushGPUDirectRDMAWritesOptions value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaGPUDirectRDMAWritesOrdering(enum cudaGPUDirectRDMAWritesOrdering value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaFlushGPUDirectRDMAWritesScope(enum cudaFlushGPUDirectRDMAWritesScope value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaFlushGPUDirectRDMAWritesTarget(enum cudaFlushGPUDirectRDMAWritesTarget value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaDeviceAttr(enum cudaDeviceAttr value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaMemPoolAttr(enum cudaMemPoolAttr value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaMemLocationType(enum cudaMemLocationType value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaMemAccessFlags(enum cudaMemAccessFlags value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaMemAllocationType(enum cudaMemAllocationType value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaMemAllocationHandleType(enum cudaMemAllocationHandleType value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaGraphMemAttributeType(enum cudaGraphMemAttributeType value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaDeviceP2PAttr(enum cudaDeviceP2PAttr value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaExternalMemoryHandleType(enum cudaExternalMemoryHandleType value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaExternalSemaphoreHandleType(enum cudaExternalSemaphoreHandleType value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaCGScope(enum cudaCGScope value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaGraphConditionalHandleFlags(enum cudaGraphConditionalHandleFlags value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaGraphConditionalNodeType(enum cudaGraphConditionalNodeType value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaGraphNodeType(enum cudaGraphNodeType value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaGraphExecUpdateResult(enum cudaGraphExecUpdateResult value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaGraphKernelNodeField(enum cudaGraphKernelNodeField value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaGetDriverEntryPointFlags(enum cudaGetDriverEntryPointFlags value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaDriverEntryPointQueryResult(enum cudaDriverEntryPointQueryResult value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaGraphDebugDotFlags(enum cudaGraphDebugDotFlags value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaGraphInstantiateFlags(enum cudaGraphInstantiateFlags value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaDeviceNumaConfig(enum cudaDeviceNumaConfig value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaSurfaceBoundaryMode(enum cudaSurfaceBoundaryMode value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaSurfaceFormatMode(enum cudaSurfaceFormatMode value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaTextureAddressMode(enum cudaTextureAddressMode value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaTextureFilterMode(enum cudaTextureFilterMode value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaTextureReadMode(enum cudaTextureReadMode value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__cudaRoundMode(enum cudaRoundMode value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaGLDeviceList(enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaGLMapFlags(enum __pyx_t_4cuda_7ccudart_cudaGLMapFlags value); /* CIntFromPy.proto */ static CYTHON_INLINE unsigned PY_LONG_LONG __Pyx_PyInt_As_unsigned_PY_LONG_LONG(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE unsigned int __Pyx_PyInt_As_unsigned_int(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE size_t __Pyx_PyInt_As_size_t(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE unsigned short __Pyx_PyInt_As_unsigned_short(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE PY_LONG_LONG __Pyx_PyInt_As_PY_LONG_LONG(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE unsigned char __Pyx_PyInt_As_unsigned_char(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE uint32_t __Pyx_PyInt_As_uint32_t(PyObject *); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_unsigned_PY_LONG_LONG(unsigned PY_LONG_LONG value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_unsigned_int(unsigned int value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaChannelFormatKind __Pyx_PyInt_As_enum__cudaChannelFormatKind(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaMemcpyKind __Pyx_PyInt_As_enum__cudaMemcpyKind(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaAccessProperty __Pyx_PyInt_As_enum__cudaAccessProperty(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaResourceType __Pyx_PyInt_As_enum__cudaResourceType(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaResourceViewFormat __Pyx_PyInt_As_enum__cudaResourceViewFormat(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaMemoryType __Pyx_PyInt_As_enum__cudaMemoryType(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaMemLocationType __Pyx_PyInt_As_enum__cudaMemLocationType(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaMemAccessFlags __Pyx_PyInt_As_enum__cudaMemAccessFlags(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaMemAllocationType __Pyx_PyInt_As_enum__cudaMemAllocationType(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaMemAllocationHandleType __Pyx_PyInt_As_enum__cudaMemAllocationHandleType(PyObject *); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_unsigned_short(unsigned short value); /* CIntFromPy.proto */ static CYTHON_INLINE char __Pyx_PyInt_As_char(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaExternalMemoryHandleType __Pyx_PyInt_As_enum__cudaExternalMemoryHandleType(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaExternalSemaphoreHandleType __Pyx_PyInt_As_enum__cudaExternalSemaphoreHandleType(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaGraphConditionalNodeType __Pyx_PyInt_As_enum__cudaGraphConditionalNodeType(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaGraphNodeType __Pyx_PyInt_As_enum__cudaGraphNodeType(PyObject *); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_PY_LONG_LONG(PY_LONG_LONG value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_unsigned_char(unsigned char value); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaGraphInstantiateResult __Pyx_PyInt_As_enum__cudaGraphInstantiateResult(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaGraphExecUpdateResult __Pyx_PyInt_As_enum__cudaGraphExecUpdateResult(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaGraphKernelNodeField __Pyx_PyInt_As_enum__cudaGraphKernelNodeField(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaSynchronizationPolicy __Pyx_PyInt_As_enum__cudaSynchronizationPolicy(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaClusterSchedulingPolicy __Pyx_PyInt_As_enum__cudaClusterSchedulingPolicy(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaLaunchMemSyncDomain __Pyx_PyInt_As_enum__cudaLaunchMemSyncDomain(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaLaunchAttributeID __Pyx_PyInt_As_enum__cudaLaunchAttributeID(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaAsyncNotificationType_enum __Pyx_PyInt_As_enum__cudaAsyncNotificationType_enum(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaTextureAddressMode __Pyx_PyInt_As_enum__cudaTextureAddressMode(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaTextureFilterMode __Pyx_PyInt_As_enum__cudaTextureFilterMode(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaTextureReadMode __Pyx_PyInt_As_enum__cudaTextureReadMode(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum __Pyx_PyInt_As_enum____pyx_t_4cuda_7ccudart_cudaEglFrameType_enum(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum __Pyx_PyInt_As_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(PyObject *); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_uint32_t(uint32_t value); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaLimit __Pyx_PyInt_As_enum__cudaLimit(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaFuncCache __Pyx_PyInt_As_enum__cudaFuncCache(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaFlushGPUDirectRDMAWritesTarget __Pyx_PyInt_As_enum__cudaFlushGPUDirectRDMAWritesTarget(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaFlushGPUDirectRDMAWritesScope __Pyx_PyInt_As_enum__cudaFlushGPUDirectRDMAWritesScope(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaSharedMemConfig __Pyx_PyInt_As_enum__cudaSharedMemConfig(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaError __Pyx_PyInt_As_enum__cudaError(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaDeviceAttr __Pyx_PyInt_As_enum__cudaDeviceAttr(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaDeviceP2PAttr __Pyx_PyInt_As_enum__cudaDeviceP2PAttr(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaStreamCaptureMode __Pyx_PyInt_As_enum__cudaStreamCaptureMode(PyObject *); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaFuncAttribute __Pyx_PyInt_As_enum__cudaFuncAttribute(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaMemoryAdvise __Pyx_PyInt_As_enum__cudaMemoryAdvise(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaMemRangeAttribute __Pyx_PyInt_As_enum__cudaMemRangeAttribute(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaMemPoolAttr __Pyx_PyInt_As_enum__cudaMemPoolAttr(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum cudaGraphMemAttributeType __Pyx_PyInt_As_enum__cudaGraphMemAttributeType(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList __Pyx_PyInt_As_enum____pyx_t_4cuda_7ccudart_cudaGLDeviceList(PyObject *); /* CppExceptionConversion.proto */ #ifndef __Pyx_CppExn2PyErr #include #include #include #include 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" static __Pyx_TypeName __Pyx_PyType_GetName(PyTypeObject* tp); #define __Pyx_DECREF_TypeName(obj) Py_XDECREF(obj) #else typedef const char *__Pyx_TypeName; #define __Pyx_FMT_TYPENAME "%.200s" #define __Pyx_PyType_GetName(tp) ((tp)->tp_name) #define __Pyx_DECREF_TypeName(obj) #endif /* CIntFromPy.proto */ static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *); /* SwapException.proto */ #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 /* PyObjectCallMethod1.proto */ static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg); /* CoroutineBase.proto */ 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; PyObject *gi_weakreflist; PyObject *classobj; PyObject *yieldfrom; PyObject *gi_name; PyObject *gi_qualname; PyObject *gi_modulename; PyObject *gi_code; PyObject *gi_frame; 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 PyObject *__Pyx_Coroutine_Send(PyObject *self, PyObject *value); static PyObject *__Pyx_Coroutine_Close(PyObject *self); 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); /* PatchModuleWithCoroutine.proto */ static PyObject* __Pyx_Coroutine_patch_module(PyObject* module, const char* py_code); /* PatchGeneratorABC.proto */ static int __Pyx_patch_abc(void); /* Generator.proto */ #define __Pyx_Generator_USED #define __Pyx_Generator_CheckExact(obj) __Pyx_IS_TYPE(obj, __pyx_GeneratorType) #define __Pyx_Generator_New(body, code, closure, name, qualname, module_name)\ __Pyx__Coroutine_New(__pyx_GeneratorType, body, code, closure, name, qualname, module_name) static PyObject *__Pyx_Generator_Next(PyObject *self); static int __pyx_Generator_init(PyObject *module); /* CheckBinaryVersion.proto */ static unsigned long __Pyx_get_runtime_version(void); static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer); /* FunctionImport.proto */ static int __Pyx_ImportFunction_3_0_12(PyObject *module, const char *funcname, void (**f)(void), const char *sig); /* InitStrings.proto */ static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /* #### Code section: module_declarations ### */ /* Module declarations from "libc.stdint" */ /* Module declarations from "cuda.ccudart" */ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaDeviceReset)(void); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaDeviceSynchronize)(void); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaDeviceSetLimit)(enum cudaLimit, size_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaDeviceGetLimit)(size_t *, enum cudaLimit); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaDeviceGetTexture1DLinearMaxWidth)(size_t *, struct cudaChannelFormatDesc const *, int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaDeviceGetCacheConfig)(enum cudaFuncCache *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaDeviceGetStreamPriorityRange)(int *, int *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaDeviceSetCacheConfig)(enum cudaFuncCache); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaDeviceGetByPCIBusId)(int *, char const *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaDeviceGetPCIBusId)(char *, int, int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaIpcGetEventHandle)(cudaIpcEventHandle_t *, cudaEvent_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaIpcOpenEventHandle)(cudaEvent_t *, cudaIpcEventHandle_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaIpcGetMemHandle)(cudaIpcMemHandle_t *, void *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaIpcOpenMemHandle)(void **, cudaIpcMemHandle_t, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaIpcCloseMemHandle)(void *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaDeviceFlushGPUDirectRDMAWrites)(enum cudaFlushGPUDirectRDMAWritesTarget, enum cudaFlushGPUDirectRDMAWritesScope); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaDeviceRegisterAsyncNotification)(int, cudaAsyncCallback, void *, cudaAsyncCallbackHandle_t *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaDeviceUnregisterAsyncNotification)(int, cudaAsyncCallbackHandle_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaDeviceGetSharedMemConfig)(enum cudaSharedMemConfig *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaDeviceSetSharedMemConfig)(enum cudaSharedMemConfig); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGetLastError)(void); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaPeekAtLastError)(void); /*proto*/ static char const *(*__pyx_f_4cuda_7ccudart_cudaGetErrorName)(cudaError_t); /*proto*/ static char const *(*__pyx_f_4cuda_7ccudart_cudaGetErrorString)(cudaError_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGetDeviceCount)(int *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGetDeviceProperties)(struct cudaDeviceProp *, int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaDeviceGetAttribute)(int *, enum cudaDeviceAttr, int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaDeviceGetDefaultMemPool)(cudaMemPool_t *, int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaDeviceSetMemPool)(int, cudaMemPool_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaDeviceGetMemPool)(cudaMemPool_t *, int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaDeviceGetNvSciSyncAttributes)(void *, int, int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaDeviceGetP2PAttribute)(int *, enum cudaDeviceP2PAttr, int, int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaChooseDevice)(int *, struct cudaDeviceProp const *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaInitDevice)(int, unsigned int, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaSetDevice)(int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGetDevice)(int *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaSetDeviceFlags)(unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGetDeviceFlags)(unsigned int *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaStreamCreate)(cudaStream_t *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaStreamCreateWithFlags)(cudaStream_t *, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaStreamCreateWithPriority)(cudaStream_t *, unsigned int, int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaStreamGetPriority)(cudaStream_t, int *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaStreamGetFlags)(cudaStream_t, unsigned int *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaStreamGetId)(cudaStream_t, unsigned PY_LONG_LONG *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaCtxResetPersistingL2Cache)(void); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaStreamCopyAttributes)(cudaStream_t, cudaStream_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaStreamGetAttribute)(cudaStream_t, __pyx_t_4cuda_7ccudart_cudaStreamAttrID, __pyx_t_4cuda_7ccudart_cudaStreamAttrValue *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaStreamSetAttribute)(cudaStream_t, __pyx_t_4cuda_7ccudart_cudaStreamAttrID, __pyx_t_4cuda_7ccudart_cudaStreamAttrValue const *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaStreamDestroy)(cudaStream_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaStreamWaitEvent)(cudaStream_t, cudaEvent_t, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaStreamAddCallback)(cudaStream_t, cudaStreamCallback_t, void *, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaStreamSynchronize)(cudaStream_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaStreamQuery)(cudaStream_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaStreamAttachMemAsync)(cudaStream_t, void *, size_t, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaStreamBeginCapture)(cudaStream_t, enum cudaStreamCaptureMode); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaStreamBeginCaptureToGraph)(cudaStream_t, cudaGraph_t, cudaGraphNode_t const *, cudaGraphEdgeData const *, size_t, enum cudaStreamCaptureMode); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaThreadExchangeStreamCaptureMode)(enum cudaStreamCaptureMode *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaStreamEndCapture)(cudaStream_t, cudaGraph_t *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaStreamIsCapturing)(cudaStream_t, enum cudaStreamCaptureStatus *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaStreamGetCaptureInfo)(cudaStream_t, enum cudaStreamCaptureStatus *, unsigned PY_LONG_LONG *, cudaGraph_t *, cudaGraphNode_t const **, size_t *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaStreamGetCaptureInfo_v3)(cudaStream_t, enum cudaStreamCaptureStatus *, unsigned PY_LONG_LONG *, cudaGraph_t *, cudaGraphNode_t const **, cudaGraphEdgeData const **, size_t *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaStreamUpdateCaptureDependencies)(cudaStream_t, cudaGraphNode_t *, size_t, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaStreamUpdateCaptureDependencies_v2)(cudaStream_t, cudaGraphNode_t *, cudaGraphEdgeData const *, size_t, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaEventCreate)(cudaEvent_t *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaEventCreateWithFlags)(cudaEvent_t *, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaEventRecord)(cudaEvent_t, cudaStream_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaEventRecordWithFlags)(cudaEvent_t, cudaStream_t, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaEventQuery)(cudaEvent_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaEventSynchronize)(cudaEvent_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaEventDestroy)(cudaEvent_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaEventElapsedTime)(float *, cudaEvent_t, cudaEvent_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaImportExternalMemory)(cudaExternalMemory_t *, struct cudaExternalMemoryHandleDesc const *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaExternalMemoryGetMappedBuffer)(void **, cudaExternalMemory_t, struct cudaExternalMemoryBufferDesc const *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaExternalMemoryGetMappedMipmappedArray)(cudaMipmappedArray_t *, cudaExternalMemory_t, struct cudaExternalMemoryMipmappedArrayDesc const *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaDestroyExternalMemory)(cudaExternalMemory_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaImportExternalSemaphore)(cudaExternalSemaphore_t *, struct cudaExternalSemaphoreHandleDesc const *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaSignalExternalSemaphoresAsync)(cudaExternalSemaphore_t const *, struct cudaExternalSemaphoreSignalParams const *, unsigned int, cudaStream_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaWaitExternalSemaphoresAsync)(cudaExternalSemaphore_t const *, struct cudaExternalSemaphoreWaitParams const *, unsigned int, cudaStream_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaDestroyExternalSemaphore)(cudaExternalSemaphore_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaFuncSetCacheConfig)(void const *, enum cudaFuncCache); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaFuncGetAttributes)(struct cudaFuncAttributes *, void const *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaFuncSetAttribute)(void const *, enum cudaFuncAttribute, int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaLaunchHostFunc)(cudaStream_t, cudaHostFn_t, void *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaFuncSetSharedMemConfig)(void const *, enum cudaSharedMemConfig); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaOccupancyMaxActiveBlocksPerMultiprocessor)(int *, void const *, int, size_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaOccupancyAvailableDynamicSMemPerBlock)(size_t *, void const *, int, int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags)(int *, void const *, int, size_t, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMallocManaged)(void **, size_t, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMalloc)(void **, size_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMallocHost)(void **, size_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMallocPitch)(void **, size_t *, size_t, size_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMallocArray)(cudaArray_t *, struct cudaChannelFormatDesc const *, size_t, size_t, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaFree)(void *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaFreeHost)(void *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaFreeArray)(cudaArray_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaFreeMipmappedArray)(cudaMipmappedArray_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaHostAlloc)(void **, size_t, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaHostRegister)(void *, size_t, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaHostUnregister)(void *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaHostGetDevicePointer)(void **, void *, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaHostGetFlags)(unsigned int *, void *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMalloc3D)(struct cudaPitchedPtr *, struct cudaExtent); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMalloc3DArray)(cudaArray_t *, struct cudaChannelFormatDesc const *, struct cudaExtent, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMallocMipmappedArray)(cudaMipmappedArray_t *, struct cudaChannelFormatDesc const *, struct cudaExtent, unsigned int, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGetMipmappedArrayLevel)(cudaArray_t *, cudaMipmappedArray_const_t, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMemcpy3D)(struct cudaMemcpy3DParms const *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMemcpy3DPeer)(struct cudaMemcpy3DPeerParms const *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMemcpy3DAsync)(struct cudaMemcpy3DParms const *, cudaStream_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMemcpy3DPeerAsync)(struct cudaMemcpy3DPeerParms const *, cudaStream_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMemGetInfo)(size_t *, size_t *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaArrayGetInfo)(struct cudaChannelFormatDesc *, struct cudaExtent *, unsigned int *, cudaArray_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaArrayGetPlane)(cudaArray_t *, cudaArray_t, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaArrayGetMemoryRequirements)(struct cudaArrayMemoryRequirements *, cudaArray_t, int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMipmappedArrayGetMemoryRequirements)(struct cudaArrayMemoryRequirements *, cudaMipmappedArray_t, int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaArrayGetSparseProperties)(struct cudaArraySparseProperties *, cudaArray_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMipmappedArrayGetSparseProperties)(struct cudaArraySparseProperties *, cudaMipmappedArray_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMemcpy)(void *, void const *, size_t, enum cudaMemcpyKind); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMemcpyPeer)(void *, int, void const *, int, size_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMemcpy2D)(void *, size_t, void const *, size_t, size_t, size_t, enum cudaMemcpyKind); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMemcpy2DToArray)(cudaArray_t, size_t, size_t, void const *, size_t, size_t, size_t, enum cudaMemcpyKind); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMemcpy2DFromArray)(void *, size_t, cudaArray_const_t, size_t, size_t, size_t, size_t, enum cudaMemcpyKind); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_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_7ccudart_cudaMemcpyAsync)(void *, void const *, size_t, enum cudaMemcpyKind, cudaStream_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMemcpyPeerAsync)(void *, int, void const *, int, size_t, cudaStream_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMemcpy2DAsync)(void *, size_t, void const *, size_t, size_t, size_t, enum cudaMemcpyKind, cudaStream_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_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_7ccudart_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_7ccudart_cudaMemset)(void *, int, size_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMemset2D)(void *, size_t, int, size_t, size_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMemset3D)(struct cudaPitchedPtr, int, struct cudaExtent); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMemsetAsync)(void *, int, size_t, cudaStream_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMemset2DAsync)(void *, size_t, int, size_t, size_t, cudaStream_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMemset3DAsync)(struct cudaPitchedPtr, int, struct cudaExtent, cudaStream_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMemPrefetchAsync)(void const *, size_t, int, cudaStream_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMemPrefetchAsync_v2)(void const *, size_t, struct cudaMemLocation, unsigned int, cudaStream_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMemAdvise)(void const *, size_t, enum cudaMemoryAdvise, int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMemAdvise_v2)(void const *, size_t, enum cudaMemoryAdvise, struct cudaMemLocation); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMemRangeGetAttribute)(void *, size_t, enum cudaMemRangeAttribute, void const *, size_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMemRangeGetAttributes)(void **, size_t *, enum cudaMemRangeAttribute *, size_t, void const *, size_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMemcpyToArray)(cudaArray_t, size_t, size_t, void const *, size_t, enum cudaMemcpyKind); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMemcpyFromArray)(void *, cudaArray_const_t, size_t, size_t, size_t, enum cudaMemcpyKind); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_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_7ccudart_cudaMemcpyToArrayAsync)(cudaArray_t, size_t, size_t, void const *, size_t, enum cudaMemcpyKind, cudaStream_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMemcpyFromArrayAsync)(void *, cudaArray_const_t, size_t, size_t, size_t, enum cudaMemcpyKind, cudaStream_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMallocAsync)(void **, size_t, cudaStream_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaFreeAsync)(void *, cudaStream_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMemPoolTrimTo)(cudaMemPool_t, size_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMemPoolSetAttribute)(cudaMemPool_t, enum cudaMemPoolAttr, void *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMemPoolGetAttribute)(cudaMemPool_t, enum cudaMemPoolAttr, void *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMemPoolSetAccess)(cudaMemPool_t, struct cudaMemAccessDesc const *, size_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMemPoolGetAccess)(enum cudaMemAccessFlags *, cudaMemPool_t, struct cudaMemLocation *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMemPoolCreate)(cudaMemPool_t *, struct cudaMemPoolProps const *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMemPoolDestroy)(cudaMemPool_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMallocFromPoolAsync)(void **, size_t, cudaMemPool_t, cudaStream_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMemPoolExportToShareableHandle)(void *, cudaMemPool_t, enum cudaMemAllocationHandleType, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMemPoolImportFromShareableHandle)(cudaMemPool_t *, void *, enum cudaMemAllocationHandleType, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMemPoolExportPointer)(struct cudaMemPoolPtrExportData *, void *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaMemPoolImportPointer)(void **, cudaMemPool_t, struct cudaMemPoolPtrExportData *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaPointerGetAttributes)(struct cudaPointerAttributes *, void const *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaDeviceCanAccessPeer)(int *, int, int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaDeviceEnablePeerAccess)(int, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaDeviceDisablePeerAccess)(int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphicsUnregisterResource)(cudaGraphicsResource_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphicsResourceSetMapFlags)(cudaGraphicsResource_t, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphicsMapResources)(int, cudaGraphicsResource_t *, cudaStream_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphicsUnmapResources)(int, cudaGraphicsResource_t *, cudaStream_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphicsResourceGetMappedPointer)(void **, size_t *, cudaGraphicsResource_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphicsSubResourceGetMappedArray)(cudaArray_t *, cudaGraphicsResource_t, unsigned int, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphicsResourceGetMappedMipmappedArray)(cudaMipmappedArray_t *, cudaGraphicsResource_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGetChannelDesc)(struct cudaChannelFormatDesc *, cudaArray_const_t); /*proto*/ static struct cudaChannelFormatDesc (*__pyx_f_4cuda_7ccudart_cudaCreateChannelDesc)(int, int, int, int, enum cudaChannelFormatKind); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaCreateTextureObject)(cudaTextureObject_t *, struct cudaResourceDesc const *, struct cudaTextureDesc const *, struct cudaResourceViewDesc const *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaDestroyTextureObject)(cudaTextureObject_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGetTextureObjectResourceDesc)(struct cudaResourceDesc *, cudaTextureObject_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGetTextureObjectTextureDesc)(struct cudaTextureDesc *, cudaTextureObject_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGetTextureObjectResourceViewDesc)(struct cudaResourceViewDesc *, cudaTextureObject_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaCreateSurfaceObject)(cudaSurfaceObject_t *, struct cudaResourceDesc const *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaDestroySurfaceObject)(cudaSurfaceObject_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGetSurfaceObjectResourceDesc)(struct cudaResourceDesc *, cudaSurfaceObject_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaDriverGetVersion)(int *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaRuntimeGetVersion)(int *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphCreate)(cudaGraph_t *, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphAddKernelNode)(cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, struct cudaKernelNodeParams const *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphKernelNodeGetParams)(cudaGraphNode_t, struct cudaKernelNodeParams *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphKernelNodeSetParams)(cudaGraphNode_t, struct cudaKernelNodeParams const *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphKernelNodeCopyAttributes)(cudaGraphNode_t, cudaGraphNode_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphKernelNodeGetAttribute)(cudaGraphNode_t, __pyx_t_4cuda_7ccudart_cudaKernelNodeAttrID, __pyx_t_4cuda_7ccudart_cudaKernelNodeAttrValue *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphKernelNodeSetAttribute)(cudaGraphNode_t, __pyx_t_4cuda_7ccudart_cudaKernelNodeAttrID, __pyx_t_4cuda_7ccudart_cudaKernelNodeAttrValue const *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphAddMemcpyNode)(cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, struct cudaMemcpy3DParms const *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphAddMemcpyNode1D)(cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, void *, void const *, size_t, enum cudaMemcpyKind); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphMemcpyNodeGetParams)(cudaGraphNode_t, struct cudaMemcpy3DParms *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphMemcpyNodeSetParams)(cudaGraphNode_t, struct cudaMemcpy3DParms const *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphMemcpyNodeSetParams1D)(cudaGraphNode_t, void *, void const *, size_t, enum cudaMemcpyKind); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphAddMemsetNode)(cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, struct cudaMemsetParams const *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphMemsetNodeGetParams)(cudaGraphNode_t, struct cudaMemsetParams *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphMemsetNodeSetParams)(cudaGraphNode_t, struct cudaMemsetParams const *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphAddHostNode)(cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, struct cudaHostNodeParams const *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphHostNodeGetParams)(cudaGraphNode_t, struct cudaHostNodeParams *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphHostNodeSetParams)(cudaGraphNode_t, struct cudaHostNodeParams const *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphAddChildGraphNode)(cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, cudaGraph_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphChildGraphNodeGetGraph)(cudaGraphNode_t, cudaGraph_t *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphAddEmptyNode)(cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphAddEventRecordNode)(cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, cudaEvent_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphEventRecordNodeGetEvent)(cudaGraphNode_t, cudaEvent_t *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphEventRecordNodeSetEvent)(cudaGraphNode_t, cudaEvent_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphAddEventWaitNode)(cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, cudaEvent_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphEventWaitNodeGetEvent)(cudaGraphNode_t, cudaEvent_t *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphEventWaitNodeSetEvent)(cudaGraphNode_t, cudaEvent_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphAddExternalSemaphoresSignalNode)(cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, struct cudaExternalSemaphoreSignalNodeParams const *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphExternalSemaphoresSignalNodeGetParams)(cudaGraphNode_t, struct cudaExternalSemaphoreSignalNodeParams *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphExternalSemaphoresSignalNodeSetParams)(cudaGraphNode_t, struct cudaExternalSemaphoreSignalNodeParams const *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphAddExternalSemaphoresWaitNode)(cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, struct cudaExternalSemaphoreWaitNodeParams const *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphExternalSemaphoresWaitNodeGetParams)(cudaGraphNode_t, struct cudaExternalSemaphoreWaitNodeParams *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphExternalSemaphoresWaitNodeSetParams)(cudaGraphNode_t, struct cudaExternalSemaphoreWaitNodeParams const *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphAddMemAllocNode)(cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, struct cudaMemAllocNodeParams *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphMemAllocNodeGetParams)(cudaGraphNode_t, struct cudaMemAllocNodeParams *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphAddMemFreeNode)(cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, void *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphMemFreeNodeGetParams)(cudaGraphNode_t, void *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaDeviceGraphMemTrim)(int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaDeviceGetGraphMemAttribute)(int, enum cudaGraphMemAttributeType, void *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaDeviceSetGraphMemAttribute)(int, enum cudaGraphMemAttributeType, void *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphClone)(cudaGraph_t *, cudaGraph_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphNodeFindInClone)(cudaGraphNode_t *, cudaGraphNode_t, cudaGraph_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphNodeGetType)(cudaGraphNode_t, enum cudaGraphNodeType *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphGetNodes)(cudaGraph_t, cudaGraphNode_t *, size_t *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphGetRootNodes)(cudaGraph_t, cudaGraphNode_t *, size_t *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphGetEdges)(cudaGraph_t, cudaGraphNode_t *, cudaGraphNode_t *, size_t *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphGetEdges_v2)(cudaGraph_t, cudaGraphNode_t *, cudaGraphNode_t *, cudaGraphEdgeData *, size_t *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphNodeGetDependencies)(cudaGraphNode_t, cudaGraphNode_t *, size_t *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphNodeGetDependencies_v2)(cudaGraphNode_t, cudaGraphNode_t *, cudaGraphEdgeData *, size_t *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphNodeGetDependentNodes)(cudaGraphNode_t, cudaGraphNode_t *, size_t *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphNodeGetDependentNodes_v2)(cudaGraphNode_t, cudaGraphNode_t *, cudaGraphEdgeData *, size_t *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphAddDependencies)(cudaGraph_t, cudaGraphNode_t const *, cudaGraphNode_t const *, size_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphAddDependencies_v2)(cudaGraph_t, cudaGraphNode_t const *, cudaGraphNode_t const *, cudaGraphEdgeData const *, size_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphRemoveDependencies)(cudaGraph_t, cudaGraphNode_t const *, cudaGraphNode_t const *, size_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphRemoveDependencies_v2)(cudaGraph_t, cudaGraphNode_t const *, cudaGraphNode_t const *, cudaGraphEdgeData const *, size_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphDestroyNode)(cudaGraphNode_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphInstantiate)(cudaGraphExec_t *, cudaGraph_t, unsigned PY_LONG_LONG); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphInstantiateWithFlags)(cudaGraphExec_t *, cudaGraph_t, unsigned PY_LONG_LONG); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphInstantiateWithParams)(cudaGraphExec_t *, cudaGraph_t, cudaGraphInstantiateParams *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphExecGetFlags)(cudaGraphExec_t, unsigned PY_LONG_LONG *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphExecKernelNodeSetParams)(cudaGraphExec_t, cudaGraphNode_t, struct cudaKernelNodeParams const *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphExecMemcpyNodeSetParams)(cudaGraphExec_t, cudaGraphNode_t, struct cudaMemcpy3DParms const *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphExecMemcpyNodeSetParams1D)(cudaGraphExec_t, cudaGraphNode_t, void *, void const *, size_t, enum cudaMemcpyKind); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphExecMemsetNodeSetParams)(cudaGraphExec_t, cudaGraphNode_t, struct cudaMemsetParams const *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphExecHostNodeSetParams)(cudaGraphExec_t, cudaGraphNode_t, struct cudaHostNodeParams const *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphExecChildGraphNodeSetParams)(cudaGraphExec_t, cudaGraphNode_t, cudaGraph_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphExecEventRecordNodeSetEvent)(cudaGraphExec_t, cudaGraphNode_t, cudaEvent_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphExecEventWaitNodeSetEvent)(cudaGraphExec_t, cudaGraphNode_t, cudaEvent_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphExecExternalSemaphoresSignalNodeSetParams)(cudaGraphExec_t, cudaGraphNode_t, struct cudaExternalSemaphoreSignalNodeParams const *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphExecExternalSemaphoresWaitNodeSetParams)(cudaGraphExec_t, cudaGraphNode_t, struct cudaExternalSemaphoreWaitNodeParams const *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphNodeSetEnabled)(cudaGraphExec_t, cudaGraphNode_t, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphNodeGetEnabled)(cudaGraphExec_t, cudaGraphNode_t, unsigned int *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphExecUpdate)(cudaGraphExec_t, cudaGraph_t, cudaGraphExecUpdateResultInfo *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphUpload)(cudaGraphExec_t, cudaStream_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphLaunch)(cudaGraphExec_t, cudaStream_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphExecDestroy)(cudaGraphExec_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphDestroy)(cudaGraph_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphDebugDotPrint)(cudaGraph_t, char const *, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaUserObjectCreate)(cudaUserObject_t *, void *, cudaHostFn_t, unsigned int, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaUserObjectRetain)(cudaUserObject_t, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaUserObjectRelease)(cudaUserObject_t, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphRetainUserObject)(cudaGraph_t, cudaUserObject_t, unsigned int, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphReleaseUserObject)(cudaGraph_t, cudaUserObject_t, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphAddNode)(cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, struct cudaGraphNodeParams *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphAddNode_v2)(cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, cudaGraphEdgeData const *, size_t, struct cudaGraphNodeParams *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphNodeSetParams)(cudaGraphNode_t, struct cudaGraphNodeParams *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphExecNodeSetParams)(cudaGraphExec_t, cudaGraphNode_t, struct cudaGraphNodeParams *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphConditionalHandleCreate)(cudaGraphConditionalHandle *, cudaGraph_t, unsigned int, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGetDriverEntryPoint)(char const *, void **, unsigned PY_LONG_LONG, enum cudaDriverEntryPointQueryResult *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGetDriverEntryPointByVersion)(char const *, void **, unsigned int, unsigned PY_LONG_LONG, enum cudaDriverEntryPointQueryResult *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGetExportTable)(void const **, cudaUUID_t const *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGetKernel)(cudaKernel_t *, void const *); /*proto*/ static struct cudaPitchedPtr (*__pyx_f_4cuda_7ccudart_make_cudaPitchedPtr)(void *, size_t, size_t, size_t); /*proto*/ static struct cudaPos (*__pyx_f_4cuda_7ccudart_make_cudaPos)(size_t, size_t, size_t); /*proto*/ static struct cudaExtent (*__pyx_f_4cuda_7ccudart_make_cudaExtent)(size_t, size_t, size_t); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphicsEGLRegisterImage)(struct cudaGraphicsResource **, __pyx_t_4cuda_7ccudart_EGLImageKHR, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaEGLStreamConsumerConnect)(__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *, __pyx_t_4cuda_7ccudart_EGLStreamKHR); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaEGLStreamConsumerConnectWithFlags)(__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *, __pyx_t_4cuda_7ccudart_EGLStreamKHR, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaEGLStreamConsumerDisconnect)(__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaEGLStreamConsumerAcquireFrame)(__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *, cudaGraphicsResource_t *, cudaStream_t *, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaEGLStreamConsumerReleaseFrame)(__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *, cudaGraphicsResource_t, cudaStream_t *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaEGLStreamProducerConnect)(__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *, __pyx_t_4cuda_7ccudart_EGLStreamKHR, __pyx_t_4cuda_7ccudart_EGLint, __pyx_t_4cuda_7ccudart_EGLint); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaEGLStreamProducerDisconnect)(__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaEGLStreamProducerPresentFrame)(__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *, __pyx_t_4cuda_7ccudart_cudaEglFrame, cudaStream_t *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaEGLStreamProducerReturnFrame)(__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *, __pyx_t_4cuda_7ccudart_cudaEglFrame *, cudaStream_t *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphicsResourceGetMappedEglFrame)(__pyx_t_4cuda_7ccudart_cudaEglFrame *, cudaGraphicsResource_t, unsigned int, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaEventCreateFromEGLSync)(cudaEvent_t *, __pyx_t_4cuda_7ccudart_EGLSyncKHR, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaProfilerStart)(void); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaProfilerStop)(void); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGLGetDevices)(unsigned int *, int *, unsigned int, enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphicsGLRegisterImage)(struct cudaGraphicsResource **, __pyx_t_4cuda_7ccudart_GLuint, __pyx_t_4cuda_7ccudart_GLenum, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphicsGLRegisterBuffer)(struct cudaGraphicsResource **, __pyx_t_4cuda_7ccudart_GLuint, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaVDPAUGetDevice)(int *, __pyx_t_4cuda_7ccudart_VdpDevice, __pyx_t_4cuda_7ccudart_VdpGetProcAddress *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaVDPAUSetVDPAUDevice)(int, __pyx_t_4cuda_7ccudart_VdpDevice, __pyx_t_4cuda_7ccudart_VdpGetProcAddress *); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphicsVDPAURegisterVideoSurface)(struct cudaGraphicsResource **, __pyx_t_4cuda_7ccudart_VdpVideoSurface, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_cudaGraphicsVDPAURegisterOutputSurface)(struct cudaGraphicsResource **, __pyx_t_4cuda_7ccudart_VdpOutputSurface, unsigned int); /*proto*/ static cudaError_t (*__pyx_f_4cuda_7ccudart_getLocalRuntimeVersion)(int *); /*proto*/ /* Module declarations from "cuda.ccuda" */ /* Module declarations from "cuda.cuda" */ /* Module declarations from "libcpp.vector" */ /* Module declarations from "cuda._lib.utils" */ /* 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 "cuda.cudart" */ 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 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 __pyx_convert_vector_from_py_size_t(PyObject *); /*proto*/ static std::vector __pyx_convert_vector_from_py_enum__cudaMemRangeAttribute(PyObject *); /*proto*/ /* #### Code section: typeinfo ### */ /* #### Code section: before_global_var ### */ #define __Pyx_MODULE_NAME "cuda.cudart" extern int __pyx_module_is_main_cuda__cudart; int __pyx_module_is_main_cuda__cudart = 0; /* Implementation of "cuda.cudart" */ /* #### Code section: global_var ### */ static PyObject *__pyx_builtin_hex; static PyObject *__pyx_builtin_TypeError; static PyObject *__pyx_builtin_ValueError; static PyObject *__pyx_builtin_enumerate; static PyObject *__pyx_builtin_range; static PyObject *__pyx_builtin_MemoryError; static PyObject *__pyx_builtin_IndexError; static PyObject *__pyx_builtin_RuntimeError; static PyObject *__pyx_builtin_zip; static PyObject *__pyx_builtin_OverflowError; /* #### Code section: string_decls ### */ static const char __pyx_k_[] = ">"; static const char __pyx_k_d[] = "d"; static const char __pyx_k_f[] = "f : "; static const char __pyx_k_h[] = "h"; static const char __pyx_k_p[] = "p"; static const char __pyx_k_w[] = "w : "; static const char __pyx_k_x[] = "x : "; static const char __pyx_k_y[] = "y : "; static const char __pyx_k_z[] = "z : "; static const char __pyx_k_cd[] = "cd"; static const char __pyx_k_cf[] = "cf"; static const char __pyx_k_fd[] = "fd : "; static const char __pyx_k_fn[] = "fn : "; static const char __pyx_k_gc[] = "gc"; static const char __pyx_k_id[] = "id : "; static const char __pyx_k_ms[] = "ms"; static const char __pyx_k_to[] = "to"; static const char __pyx_k_Any[] = "Any"; static const char __pyx_k__51[] = "\n"; static const char __pyx_k__52[] = ""; static const char __pyx_k__62[] = " "; static const char __pyx_k_cfn[] = "cfn"; static const char __pyx_k_cto[] = "cto"; static const char __pyx_k_doc[] = "__doc__"; static const char __pyx_k_dst[] = "dst : "; static const char __pyx_k_end[] = "end"; static const char __pyx_k_err[] = "err"; static const char __pyx_k_f_2[] = "f"; static const char __pyx_k_hex[] = "hex"; static const char __pyx_k_idx[] = "idx"; static const char __pyx_k_int[] = "__int__"; static const char __pyx_k_key[] = "key : "; static const char __pyx_k_obj[] = "obj"; static const char __pyx_k_pad[] = "pad : "; static const char __pyx_k_pfn[] = "pfn"; static const char __pyx_k_ptr[] = "_ptr"; static const char __pyx_k_res[] = "res :\n"; static const char __pyx_k_src[] = "src"; static const char __pyx_k_val[] = "val :\n"; static const char __pyx_k_w_2[] = "w"; static const char __pyx_k_x_2[] = "x"; static const char __pyx_k_xsz[] = "xsz"; static const char __pyx_k_y_2[] = "y"; static const char __pyx_k_ysz[] = "ysz"; static const char __pyx_k_z_2[] = "z"; static const char __pyx_k_zip[] = "zip"; static const char __pyx_k_List[] = "List"; static const char __pyx_k__351[] = " "; static const char __pyx_k__400[] = " < "; static const char __pyx_k__654[] = "."; static const char __pyx_k__655[] = "*"; static const char __pyx_k__657[] = "\n\n "; static const char __pyx_k__910[] = "?"; static const char __pyx_k_args[] = "args"; static const char __pyx_k_attr[] = "attr"; static const char __pyx_k_cdst[] = "cdst"; static const char __pyx_k_cend[] = "cend"; static const char __pyx_k_conn[] = "conn"; static const char __pyx_k_cptr[] = "cptr"; static const char __pyx_k_csrc[] = "csrc"; static const char __pyx_k_cuda[] = "cuda"; static const char __pyx_k_desc[] = "desc :\n"; static const char __pyx_k_dict[] = "__dict__"; static const char __pyx_k_dim3[] = "dim3"; static const char __pyx_k_dptr[] = "dptr : "; static const char __pyx_k_enum[] = "enum"; static const char __pyx_k_fd_2[] = "fd"; static const char __pyx_k_fn_2[] = "fn"; static const char __pyx_k_free[] = "free :\n"; static const char __pyx_k_from[] = "from_"; static const char __pyx_k_func[] = "func : "; static const char __pyx_k_hDst[] = "hDst"; static const char __pyx_k_hSrc[] = "hSrc"; static const char __pyx_k_host[] = "host :\n"; static const char __pyx_k_id_2[] = "id"; static const char __pyx_k_info[] = "info :\n"; static const char __pyx_k_kind[] = "kind : "; static const char __pyx_k_luid[] = "luid : "; static const char __pyx_k_main[] = "__main__"; static const char __pyx_k_mode[] = "mode"; static const char __pyx_k_name[] = "name : "; static const char __pyx_k_node[] = "node : "; static const char __pyx_k_path[] = "path"; static const char __pyx_k_pdst[] = "pdst"; static const char __pyx_k_pend[] = "pend"; static const char __pyx_k_prop[] = "prop"; static const char __pyx_k_psrc[] = "psrc"; static const char __pyx_k_pyto[] = "pyto"; static const char __pyx_k_sRGB[] = "sRGB : "; static const char __pyx_k_self[] = "self"; static const char __pyx_k_send[] = "send"; static const char __pyx_k_size[] = "size : "; static const char __pyx_k_spec[] = "__spec__"; static const char __pyx_k_test[] = "__test__"; static const char __pyx_k_type[] = "type : "; static const char __pyx_k_uuid[] = "uuid :\n"; static const char __pyx_k_Tuple[] = "Tuple"; static const char __pyx_k_alloc[] = "alloc :\n"; static const char __pyx_k_array[] = "array : "; static const char __pyx_k_bytes[] = "bytes : "; static const char __pyx_k_cattr[] = "cattr"; static const char __pyx_k_cconn[] = "cconn"; static const char __pyx_k_cdata[] = "cdata"; static const char __pyx_k_cdptr[] = "cdptr"; static const char __pyx_k_cfrom[] = "cfrom_"; static const char __pyx_k_cfunc[] = "cfunc"; static const char __pyx_k_chDst[] = "chDst"; static const char __pyx_k_chSrc[] = "chSrc"; static const char __pyx_k_ckind[] = "ckind"; static const char __pyx_k_close[] = "close"; static const char __pyx_k_cmode[] = "cmode"; static const char __pyx_k_cnode[] = "cnode"; static const char __pyx_k_count[] = "count"; static const char __pyx_k_depth[] = "depth : "; static const char __pyx_k_dst_2[] = "dst"; static const char __pyx_k_error[] = "error"; static const char __pyx_k_event[] = "event : "; static const char __pyx_k_extra[] = "extra : "; static const char __pyx_k_fence[] = "fence : "; static const char __pyx_k_field[] = "field : "; static const char __pyx_k_flags[] = "flags : "; static const char __pyx_k_frame[] = "frame :\n"; static const char __pyx_k_graph[] = "graph : "; static const char __pyx_k_hNode[] = "hNode"; static const char __pyx_k_image[] = "image"; static const char __pyx_k_index[] = "index"; static const char __pyx_k_key_2[] = "key"; static const char __pyx_k_level[] = "level"; static const char __pyx_k_limit[] = "limit"; static const char __pyx_k_major[] = "major : "; static const char __pyx_k_minor[] = "minor : "; static const char __pyx_k_pHost[] = "pHost"; static const char __pyx_k_pNode[] = "pNode"; static const char __pyx_k_pType[] = "pType"; static const char __pyx_k_pad_2[] = "pad"; static const char __pyx_k_param[] = "param :\n"; static const char __pyx_k_pconn[] = "pconn"; static const char __pyx_k_phDst[] = "phDst"; static const char __pyx_k_phSrc[] = "phSrc"; static const char __pyx_k_pitch[] = "pitch : "; static const char __pyx_k_pnode[] = "pnode"; static const char __pyx_k_ptr_2[] = "ptr : "; static const char __pyx_k_ptr_3[] = "ptr"; static const char __pyx_k_pyObj[] = "pyObj"; static const char __pyx_k_range[] = "range"; static const char __pyx_k_res_2[] = "res"; static const char __pyx_k_scope[] = "scope"; static const char __pyx_k_start[] = "start"; static const char __pyx_k_super[] = "super"; static const char __pyx_k_throw[] = "throw"; static const char __pyx_k_total[] = "total"; static const char __pyx_k_usage[] = "usage : "; static const char __pyx_k_utf_8[] = "utf-8"; static const char __pyx_k_val_2[] = "val"; static const char __pyx_k_value[] = "value"; static const char __pyx_k_width[] = "width : "; static const char __pyx_k_win32[] = "win32 :\n"; static const char __pyx_k_xsize[] = "xsize : "; static const char __pyx_k_ysize[] = "ysize : "; static const char __pyx_k_CUuuid[] = "CUuuid"; static const char __pyx_k_EGLint[] = "__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); #ifdef __Pyx_CyFunction_USED Py_CLEAR(clear_module_state->__pyx_CyFunctionType); #endif #ifdef __Pyx_FusedFunction_USED Py_CLEAR(clear_module_state->__pyx_FusedFunctionType); #endif Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUcontext); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUmodule); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUfunction); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUlibrary); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUkernel); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUarray); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUmipmappedArray); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUtexref); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUsurfref); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUevent); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUstream); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUgraphicsResource); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUexternalMemory); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUexternalSemaphore); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUgraph); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUgraphNode); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUgraphExec); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUmemoryPool); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUuserObject); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUgraphDeviceNode); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUasyncCallbackHandle); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUgreenCtx); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUlinkState); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUdevResourceDesc); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUeglStreamConnection); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_EGLImageKHR); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_EGLStreamKHR); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_EGLSyncKHR); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUasyncCallback); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUhostFn); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUstreamCallback); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUoccupancyB2DSize); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUuuid_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUmemFabricHandle_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUipcEventHandle_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUipcMemHandle_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUstreamMemOpWaitValueParams_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUstreamMemOpWriteValueParams_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUstreamMemOpFlushRemoteWritesParams_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUstreamMemOpMemoryBarrierParams_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUstreamBatchMemOpParams_union); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_anon_struct0); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_anon_union2); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUasyncNotificationInfo_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUdevprop_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUaccessPolicyWindow_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v2_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v3_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_v2_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_v2_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_CONDITIONAL_NODE_PARAMS); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUgraphEdgeData_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_GRAPH_INSTANTIATE_PARAMS_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUlaunchMemSyncDomainMap_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_anon_struct1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_anon_struct2); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_anon_struct3); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_anon_struct4); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUlaunchAttributeValue_union); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUlaunchAttribute_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUlaunchConfig_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUexecAffinitySmCount_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_anon_union3); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUexecAffinityParam_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUctxCigParam_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUctxCreateParams_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUlibraryHostUniversalFunctionAndDataTable_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY2D_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY3D_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY3D_PEER_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY_NODE_PARAMS_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_ARRAY_DESCRIPTOR_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_ARRAY3D_DESCRIPTOR_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_anon_struct5); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_ARRAY_SPARSE_PROPERTIES_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_ARRAY_MEMORY_REQUIREMENTS_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_anon_struct6); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_anon_struct7); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_anon_struct8); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_anon_struct9); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_anon_struct10); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_anon_union4); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_RESOURCE_DESC_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_TEXTURE_DESC_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_RESOURCE_VIEW_DESC_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUtensorMap_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_LAUNCH_PARAMS_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_anon_struct11); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_anon_union5); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_anon_struct12); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_anon_union6); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_anon_struct13); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_anon_union7); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_anon_struct14); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_anon_struct15); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_anon_struct16); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_anon_union8); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_anon_struct17); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_anon_struct18); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_anon_union9); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_anon_struct19); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_anon_struct20); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_anon_union10); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_anon_union11); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUarrayMapInfo_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUmemLocation_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_anon_struct21); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUmemAllocationProp_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUmulticastObjectProp_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUmemAccessDesc_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUgraphExecUpdateResultInfo_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUmemPoolProps_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUmemPoolPtrExportData_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v1_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v2_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEM_FREE_NODE_PARAMS_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_CHILD_GRAPH_NODE_PARAMS_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EVENT_RECORD_NODE_PARAMS_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EVENT_WAIT_NODE_PARAMS_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUgraphNodeParams_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUdevSmResource_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUdevResource_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_anon_union14); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUeglFrame_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUdeviceptr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUdevice); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUtexObject); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUsurfObject); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUgraphConditionalHandle); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUuuid); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUmemFabricHandle_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUmemFabricHandle); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUipcEventHandle_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUipcEventHandle); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUipcMemHandle_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUipcMemHandle); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUstreamBatchMemOpParams_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUstreamBatchMemOpParams); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUasyncNotificationInfo); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUdevprop_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUdevprop); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUaccessPolicyWindow_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUaccessPolicyWindow); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v2); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v3); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_v2); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_HOST_NODE_PARAMS); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_v2); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUgraphEdgeData); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_GRAPH_INSTANTIATE_PARAMS); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUlaunchMemSyncDomainMap); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUlaunchAttributeValue); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUlaunchAttribute); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUlaunchConfig); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUkernelNodeAttrValue_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUkernelNodeAttrValue); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUstreamAttrValue_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUstreamAttrValue); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUexecAffinitySmCount_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUexecAffinitySmCount); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUexecAffinityParam_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUexecAffinityParam); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUctxCigParam); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUctxCreateParams); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUlibraryHostUniversalFunctionAndDataTable); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY2D_v2); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY2D); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY3D_v2); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY3D); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY3D_PEER_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY3D_PEER); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY_NODE_PARAMS); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_ARRAY_DESCRIPTOR_v2); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_ARRAY_DESCRIPTOR); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_ARRAY3D_DESCRIPTOR_v2); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_ARRAY3D_DESCRIPTOR); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_ARRAY_SPARSE_PROPERTIES_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_ARRAY_SPARSE_PROPERTIES); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_ARRAY_MEMORY_REQUIREMENTS_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_ARRAY_MEMORY_REQUIREMENTS); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_RESOURCE_DESC_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_RESOURCE_DESC); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_TEXTURE_DESC_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_TEXTURE_DESC); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_RESOURCE_VIEW_DESC_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_RESOURCE_VIEW_DESC); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUtensorMap); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_LAUNCH_PARAMS_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_LAUNCH_PARAMS); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_HANDLE_DESC); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_BUFFER_DESC); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUmemGenericAllocationHandle); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUarrayMapInfo_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUarrayMapInfo); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUmemLocation_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUmemLocation); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUmemAllocationProp_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUmemAllocationProp); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUmulticastObjectProp_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUmulticastObjectProp); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUmemAccessDesc_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUmemAccessDesc); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUgraphExecUpdateResultInfo_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUgraphExecUpdateResultInfo); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUmemPoolProps_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUmemPoolProps); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUmemPoolPtrExportData_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUmemPoolPtrExportData); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v2); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEM_FREE_NODE_PARAMS); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_CHILD_GRAPH_NODE_PARAMS); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EVENT_RECORD_NODE_PARAMS); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EVENT_WAIT_NODE_PARAMS); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUgraphNodeParams); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUdevSmResource); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUdevResource_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUdevResource); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUeglFrame_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUeglFrame); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_cuuint32_t); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_cuuint64_t); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUdeviceptr_v2); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUdevice_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUtexObject_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUsurfObject_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_CUmemGenericAllocationHandle_v1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_GLenum); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_GLuint); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_EGLint); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_VdpDevice); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_VdpGetProcAddress); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_VdpVideoSurface); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4cuda_VdpOutputSurface); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4_lib_5utils_HelperKernelParams); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4_lib_5utils_HelperCUmemPool_attribute); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4_lib_5utils_HelperCUmem_range_attribute); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4_lib_5utils_HelperCUpointer_attribute); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4_lib_5utils_HelperCUgraphMem_attribute); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4_lib_5utils_HelperCUjit_option); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4_lib_5utils_HelperCUlibraryOption); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4_lib_5utils_HelperCUmemAllocationHandleType); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4_lib_5utils_InputVoidPtrPtrHelper); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_4_lib_5utils_HelperCUcoredumpSettings); Py_CLEAR(clear_module_state->__pyx_ptype_7cpython_4type_type); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaArray_t); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaArray_t); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaArray_const_t); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaArray_const_t); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaMipmappedArray_t); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaMipmappedArray_t); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaMipmappedArray_const_t); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaMipmappedArray_const_t); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaGraphicsResource_t); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaExternalMemory_t); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaExternalMemory_t); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaExternalSemaphore_t); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaExternalSemaphore_t); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaKernel_t); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaKernel_t); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaGraphDeviceNode_t); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaGraphDeviceNode_t); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaAsyncCallbackHandle_t); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaAsyncCallbackHandle_t); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_EGLImageKHR); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_EGLImageKHR); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_EGLStreamKHR); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_EGLStreamKHR); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_EGLSyncKHR); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_EGLSyncKHR); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaHostFn_t); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaHostFn_t); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaAsyncCallback); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaAsyncCallback); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaStreamCallback_t); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaStreamCallback_t); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_dim3); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_dim3); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaChannelFormatDesc); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaChannelFormatDesc); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_anon_struct0); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_anon_struct0); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaArraySparseProperties); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaArraySparseProperties); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaArrayMemoryRequirements); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaArrayMemoryRequirements); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaPitchedPtr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaPitchedPtr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaExtent); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaExtent); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaPos); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaPos); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaMemcpy3DParms); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaMemcpy3DParms); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaMemcpyNodeParams); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaMemcpyNodeParams); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaMemcpy3DPeerParms); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaMemcpy3DPeerParms); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaMemsetParams); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaMemsetParams); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaMemsetParamsV2); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaMemsetParamsV2); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaAccessPolicyWindow); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaAccessPolicyWindow); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaHostNodeParams); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaHostNodeParams); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaHostNodeParamsV2); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaHostNodeParamsV2); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_anon_struct1); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_anon_struct1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_anon_struct2); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_anon_struct2); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_anon_struct3); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_anon_struct3); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_anon_struct4); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_anon_struct4); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_anon_union0); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_anon_union0); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaResourceDesc); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaResourceDesc); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaResourceViewDesc); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaResourceViewDesc); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaPointerAttributes); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaPointerAttributes); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaFuncAttributes); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaFuncAttributes); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaMemLocation); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaMemLocation); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaMemAccessDesc); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaMemAccessDesc); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaMemPoolProps); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaMemPoolProps); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaMemPoolPtrExportData); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaMemPoolPtrExportData); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParams); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaMemAllocNodeParams); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParamsV2); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaMemAllocNodeParamsV2); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaMemFreeNodeParams); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaMemFreeNodeParams); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_CUuuid_st); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_CUuuid_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaDeviceProp); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaDeviceProp); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaIpcEventHandle_st); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaIpcEventHandle_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaIpcMemHandle_st); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaIpcMemHandle_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaMemFabricHandle_st); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaMemFabricHandle_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_anon_struct5); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_anon_struct5); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_anon_union1); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_anon_union1); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaExternalMemoryHandleDesc); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaExternalMemoryHandleDesc); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaExternalMemoryBufferDesc); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaExternalMemoryBufferDesc); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_anon_struct6); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_anon_struct6); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_anon_union2); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_anon_union2); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreHandleDesc); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaExternalSemaphoreHandleDesc); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_anon_struct13); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_anon_struct13); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_anon_union5); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_anon_union5); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_anon_struct14); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_anon_struct14); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_anon_struct15); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_anon_struct15); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalParams); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaExternalSemaphoreSignalParams); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_anon_struct16); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_anon_struct16); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_anon_union6); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_anon_union6); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_anon_struct17); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_anon_struct17); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_anon_struct18); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_anon_struct18); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitParams); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaExternalSemaphoreWaitParams); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaKernelNodeParams); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaKernelNodeParams); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaKernelNodeParamsV2); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaKernelNodeParamsV2); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaConditionalNodeParams); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaConditionalNodeParams); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaChildGraphNodeParams); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaChildGraphNodeParams); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaEventRecordNodeParams); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaEventRecordNodeParams); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaEventWaitNodeParams); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaEventWaitNodeParams); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaGraphNodeParams); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaGraphNodeParams); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaGraphEdgeData_st); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaGraphEdgeData_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaGraphInstantiateParams_st); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaGraphInstantiateParams_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_anon_struct19); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_anon_struct19); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_anon_union8); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_anon_union8); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaGraphKernelNodeUpdate); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaGraphKernelNodeUpdate); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_anon_struct20); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_anon_struct20); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_anon_struct21); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_anon_struct21); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_anon_struct22); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_anon_struct22); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_anon_struct23); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_anon_struct23); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaLaunchAttributeValue); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaLaunchAttributeValue); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaLaunchAttribute_st); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaLaunchAttribute_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_anon_struct24); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_anon_struct24); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_anon_union9); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_anon_union9); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaAsyncNotificationInfo); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaAsyncNotificationInfo); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaTextureDesc); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaTextureDesc); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaEglPlaneDesc_st); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaEglPlaneDesc_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_anon_union10); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_anon_union10); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaEglFrame_st); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaEglFrame_st); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_CUuuid); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_CUuuid); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaUUID_t); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaUUID_t); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaIpcEventHandle_t); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaIpcEventHandle_t); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaIpcMemHandle_t); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaIpcMemHandle_t); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaMemFabricHandle_t); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaMemFabricHandle_t); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaGraphEdgeData); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaGraphEdgeData); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaGraphInstantiateParams); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaGraphInstantiateParams); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaGraphExecUpdateResultInfo); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaGraphExecUpdateResultInfo); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaLaunchMemSyncDomainMap); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaLaunchAttribute); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaLaunchAttribute); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaAsyncNotificationInfo_t); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaAsyncNotificationInfo_t); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaStreamAttrValue); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaStreamAttrValue); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaKernelNodeAttrValue); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaKernelNodeAttrValue); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaEglPlaneDesc); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaEglPlaneDesc); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaEglFrame); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaEglFrame); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaStream_t); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaStream_t); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaEvent_t); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaEvent_t); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaGraph_t); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaGraph_t); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaGraphNode_t); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaGraphNode_t); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaUserObject_t); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaUserObject_t); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaFunction_t); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaFunction_t); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaMemPool_t); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaMemPool_t); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaGraphExec_t); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaGraphExec_t); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaEglStreamConnection); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaEglStreamConnection); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaGraphConditionalHandle); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaGraphConditionalHandle); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaSurfaceObject_t); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaSurfaceObject_t); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_cudaTextureObject_t); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_cudaTextureObject_t); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_GLenum); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_GLenum); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_GLuint); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_GLuint); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_EGLint); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_EGLint); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_VdpDevice); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_VdpDevice); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_VdpGetProcAddress); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_VdpGetProcAddress); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_VdpVideoSurface); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_VdpVideoSurface); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart_VdpOutputSurface); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart_VdpOutputSurface); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct__genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct__genexpr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_1_genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_1_genexpr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_2_genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_2_genexpr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_3_genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_3_genexpr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_4_genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_4_genexpr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_5_genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_5_genexpr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_6_genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_6_genexpr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_7_genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_7_genexpr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_8_genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_8_genexpr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_9_genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_9_genexpr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_10_genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_10_genexpr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_11_genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_11_genexpr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_12_genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_12_genexpr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_13_genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_13_genexpr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_14_genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_14_genexpr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_15_genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_15_genexpr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_16_genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_16_genexpr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_17_genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_17_genexpr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_18_genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_18_genexpr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_19_genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_19_genexpr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_20_genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_20_genexpr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_21_genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_21_genexpr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_22_genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_22_genexpr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_23_genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_23_genexpr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_24_genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_24_genexpr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_25_genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_25_genexpr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_26_genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_26_genexpr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_27_genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_27_genexpr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_28_genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_28_genexpr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_29_genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_29_genexpr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_30_genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_30_genexpr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_31_genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_31_genexpr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_32_genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_32_genexpr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_33_genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_33_genexpr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_34_genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_34_genexpr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_35_genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_35_genexpr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_36_genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_36_genexpr); Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_37_genexpr); Py_CLEAR(clear_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_37_genexpr); Py_CLEAR(clear_module_state->__pyx_kp_u_); Py_CLEAR(clear_module_state->__pyx_n_s_Any); Py_CLEAR(clear_module_state->__pyx_kp_u_Argument_attributes_is_not_insta); Py_CLEAR(clear_module_state->__pyx_kp_u_Argument_conn_is_not_instance_of); Py_CLEAR(clear_module_state->__pyx_kp_u_Argument_dataSizes_is_not_instan); Py_CLEAR(clear_module_state->__pyx_kp_u_Argument_dependencies_is_not_ins); Py_CLEAR(clear_module_state->__pyx_kp_u_Argument_dependencyData_is_not_i); Py_CLEAR(clear_module_state->__pyx_kp_u_Argument_descList_is_not_instanc); Py_CLEAR(clear_module_state->__pyx_kp_u_Argument_edgeData_is_not_instanc); Py_CLEAR(clear_module_state->__pyx_kp_u_Argument_extSemArray_is_not_inst); Py_CLEAR(clear_module_state->__pyx_kp_u_Argument_from__is_not_instance_o); Py_CLEAR(clear_module_state->__pyx_kp_u_Argument_pCudaResource_is_not_in); Py_CLEAR(clear_module_state->__pyx_kp_u_Argument_pDependencies_is_not_in); Py_CLEAR(clear_module_state->__pyx_kp_u_Argument_pStream_is_not_instance); Py_CLEAR(clear_module_state->__pyx_kp_u_Argument_paramsArray_is_not_inst); Py_CLEAR(clear_module_state->__pyx_kp_u_Argument_paramsArray_is_not_inst_2); Py_CLEAR(clear_module_state->__pyx_kp_u_Argument_resources_is_not_instan); Py_CLEAR(clear_module_state->__pyx_kp_u_Argument_to_is_not_instance_of_t); Py_CLEAR(clear_module_state->__pyx_kp_u_Argument_vdpGetProcAddress_is_no); Py_CLEAR(clear_module_state->__pyx_n_s_CUDART_API_VERSION); Py_CLEAR(clear_module_state->__pyx_n_s_CUDART_VERSION); Py_CLEAR(clear_module_state->__pyx_n_s_CUDA_C_16BF); Py_CLEAR(clear_module_state->__pyx_n_s_CUDA_C_16F); Py_CLEAR(clear_module_state->__pyx_n_s_CUDA_C_16I); Py_CLEAR(clear_module_state->__pyx_n_s_CUDA_C_16U); Py_CLEAR(clear_module_state->__pyx_n_s_CUDA_C_32F); Py_CLEAR(clear_module_state->__pyx_n_s_CUDA_C_32I); Py_CLEAR(clear_module_state->__pyx_n_s_CUDA_C_32U); Py_CLEAR(clear_module_state->__pyx_n_s_CUDA_C_4I); Py_CLEAR(clear_module_state->__pyx_n_s_CUDA_C_4U); Py_CLEAR(clear_module_state->__pyx_n_s_CUDA_C_64F); Py_CLEAR(clear_module_state->__pyx_n_s_CUDA_C_64I); Py_CLEAR(clear_module_state->__pyx_n_s_CUDA_C_64U); Py_CLEAR(clear_module_state->__pyx_n_s_CUDA_C_8I); Py_CLEAR(clear_module_state->__pyx_n_s_CUDA_C_8U); Py_CLEAR(clear_module_state->__pyx_kp_s_CUDA_EGL_Color_Format_The_diffe); Py_CLEAR(clear_module_state->__pyx_n_s_CUDA_EGL_MAX_PLANES); Py_CLEAR(clear_module_state->__pyx_kp_s_CUDA_EglFrame_type_array_or_poi); Py_CLEAR(clear_module_state->__pyx_kp_s_CUDA_GL_Map_Flags); Py_CLEAR(clear_module_state->__pyx_kp_s_CUDA_GPUDirect_RDMA_flush_write); Py_CLEAR(clear_module_state->__pyx_kp_s_CUDA_GPUDirect_RDMA_flush_write_2); Py_CLEAR(clear_module_state->__pyx_kp_s_CUDA_GPUDirect_RDMA_flush_write_3); Py_CLEAR(clear_module_state->__pyx_kp_s_CUDA_GPUDirect_RDMA_flush_write_4); Py_CLEAR(clear_module_state->__pyx_kp_s_CUDA_Graph_Update_error_types); Py_CLEAR(clear_module_state->__pyx_kp_s_CUDA_Graph_debug_write_options); Py_CLEAR(clear_module_state->__pyx_kp_s_CUDA_Graph_node_types); Py_CLEAR(clear_module_state->__pyx_n_s_CUDA_IPC_HANDLE_SIZE); Py_CLEAR(clear_module_state->__pyx_kp_s_CUDA_Limits); Py_CLEAR(clear_module_state->__pyx_kp_s_CUDA_Memory_Advise_values); Py_CLEAR(clear_module_state->__pyx_n_s_CUDA_R_16BF); Py_CLEAR(clear_module_state->__pyx_n_s_CUDA_R_16F); Py_CLEAR(clear_module_state->__pyx_n_s_CUDA_R_16I); Py_CLEAR(clear_module_state->__pyx_n_s_CUDA_R_16U); Py_CLEAR(clear_module_state->__pyx_n_s_CUDA_R_32F); Py_CLEAR(clear_module_state->__pyx_n_s_CUDA_R_32I); Py_CLEAR(clear_module_state->__pyx_n_s_CUDA_R_32U); Py_CLEAR(clear_module_state->__pyx_n_s_CUDA_R_4I); Py_CLEAR(clear_module_state->__pyx_n_s_CUDA_R_4U); Py_CLEAR(clear_module_state->__pyx_n_s_CUDA_R_64F); Py_CLEAR(clear_module_state->__pyx_n_s_CUDA_R_64I); Py_CLEAR(clear_module_state->__pyx_n_s_CUDA_R_64U); Py_CLEAR(clear_module_state->__pyx_n_s_CUDA_R_8F_E4M3); Py_CLEAR(clear_module_state->__pyx_n_s_CUDA_R_8F_E5M2); Py_CLEAR(clear_module_state->__pyx_n_s_CUDA_R_8I); Py_CLEAR(clear_module_state->__pyx_n_s_CUDA_R_8U); Py_CLEAR(clear_module_state->__pyx_kp_s_CUDA_Surface_boundary_modes); Py_CLEAR(clear_module_state->__pyx_kp_s_CUDA_Surface_format_modes); Py_CLEAR(clear_module_state->__pyx_kp_s_CUDA_conditional_node_types); Py_CLEAR(clear_module_state->__pyx_kp_s_CUDA_cooperative_group_scope); Py_CLEAR(clear_module_state->__pyx_kp_s_CUDA_device_NUMA_config); Py_CLEAR(clear_module_state->__pyx_kp_s_CUDA_device_P2P_attributes); Py_CLEAR(clear_module_state->__pyx_kp_s_CUDA_device_attributes); Py_CLEAR(clear_module_state->__pyx_kp_s_CUDA_device_compute_modes); Py_CLEAR(clear_module_state->__pyx_kp_s_CUDA_devices_corresponding_to_t); Py_CLEAR(clear_module_state->__pyx_kp_s_CUDA_function_attributes_that_c); Py_CLEAR(clear_module_state->__pyx_kp_s_CUDA_function_cache_configurati); Py_CLEAR(clear_module_state->__pyx_kp_s_CUDA_graphics_interop_array_ind); Py_CLEAR(clear_module_state->__pyx_kp_s_CUDA_graphics_interop_map_flags); Py_CLEAR(clear_module_state->__pyx_kp_s_CUDA_graphics_interop_register); Py_CLEAR(clear_module_state->__pyx_kp_s_CUDA_memory_copy_types); Py_CLEAR(clear_module_state->__pyx_kp_s_CUDA_memory_pool_attributes); Py_CLEAR(clear_module_state->__pyx_kp_s_CUDA_memory_types); Py_CLEAR(clear_module_state->__pyx_kp_s_CUDA_range_attributes); Py_CLEAR(clear_module_state->__pyx_kp_s_CUDA_resource_types); Py_CLEAR(clear_module_state->__pyx_kp_s_CUDA_shared_memory_configuratio); Py_CLEAR(clear_module_state->__pyx_kp_s_CUDA_texture_address_modes); Py_CLEAR(clear_module_state->__pyx_kp_s_CUDA_texture_filter_modes); Py_CLEAR(clear_module_state->__pyx_kp_s_CUDA_texture_read_modes); Py_CLEAR(clear_module_state->__pyx_kp_s_CUDA_texture_resource_view_form); Py_CLEAR(clear_module_state->__pyx_n_s_CUuuid); Py_CLEAR(clear_module_state->__pyx_n_s_CUuuid_st); Py_CLEAR(clear_module_state->__pyx_n_s_CUuuid_st___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_CUuuid_st___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_CUuuid_st_getPtr); Py_CLEAR(clear_module_state->__pyx_kp_s_Channel_format_kind); Py_CLEAR(clear_module_state->__pyx_kp_s_Cluster_scheduling_policies_The); Py_CLEAR(clear_module_state->__pyx_kp_s_Defines_the_allocation_types_av); Py_CLEAR(clear_module_state->__pyx_kp_u_ECCEnabled); Py_CLEAR(clear_module_state->__pyx_n_s_ECCEnabled_2); Py_CLEAR(clear_module_state->__pyx_kp_u_ECCEnabled_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_EGLImageKHR); Py_CLEAR(clear_module_state->__pyx_n_s_EGLImageKHR_2); Py_CLEAR(clear_module_state->__pyx_n_s_EGLImageKHR___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_EGLImageKHR___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_EGLImageKHR_getPtr); Py_CLEAR(clear_module_state->__pyx_kp_u_EGLStreamKHR); Py_CLEAR(clear_module_state->__pyx_n_s_EGLStreamKHR_2); Py_CLEAR(clear_module_state->__pyx_n_s_EGLStreamKHR___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_EGLStreamKHR___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_EGLStreamKHR_getPtr); Py_CLEAR(clear_module_state->__pyx_kp_u_EGLSyncKHR); Py_CLEAR(clear_module_state->__pyx_n_s_EGLSyncKHR_2); Py_CLEAR(clear_module_state->__pyx_n_s_EGLSyncKHR___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_EGLSyncKHR___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_EGLSyncKHR_getPtr); Py_CLEAR(clear_module_state->__pyx_kp_u_EGLint); Py_CLEAR(clear_module_state->__pyx_n_s_EGLint_2); Py_CLEAR(clear_module_state->__pyx_n_s_EGLint___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_EGLint___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_EGLint_getPtr); Py_CLEAR(clear_module_state->__pyx_kp_s_Enum_for_status_from_obtaining); Py_CLEAR(clear_module_state->__pyx_kp_s_External_memory_handle_types); Py_CLEAR(clear_module_state->__pyx_kp_s_External_semaphore_handle_types); Py_CLEAR(clear_module_state->__pyx_kp_u_Failed_to_allocate_length_x_size); Py_CLEAR(clear_module_state->__pyx_kp_s_Flags_for_instantiating_a_graph); Py_CLEAR(clear_module_state->__pyx_kp_s_Flags_for_py_obj_cudaStreamUpda); Py_CLEAR(clear_module_state->__pyx_kp_s_Flags_for_retaining_user_object); Py_CLEAR(clear_module_state->__pyx_kp_s_Flags_for_specifying_particular); Py_CLEAR(clear_module_state->__pyx_kp_s_Flags_for_user_objects_for_grap); Py_CLEAR(clear_module_state->__pyx_kp_s_Flags_to_specify_search_options); Py_CLEAR(clear_module_state->__pyx_kp_u_GLenum); Py_CLEAR(clear_module_state->__pyx_n_s_GLenum_2); Py_CLEAR(clear_module_state->__pyx_n_s_GLenum___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_GLenum___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_GLenum_getPtr); Py_CLEAR(clear_module_state->__pyx_kp_u_GLuint); Py_CLEAR(clear_module_state->__pyx_n_s_GLuint_2); Py_CLEAR(clear_module_state->__pyx_n_s_GLuint___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_GLuint___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_GLuint_getPtr); Py_CLEAR(clear_module_state->__pyx_kp_s_Graph_instantiation_results); Py_CLEAR(clear_module_state->__pyx_kp_s_Graph_memory_attributes); Py_CLEAR(clear_module_state->__pyx_n_s_IndexError); Py_CLEAR(clear_module_state->__pyx_n_s_IntEnum); Py_CLEAR(clear_module_state->__pyx_kp_s_Launch_attributes_enum_used_as); Py_CLEAR(clear_module_state->__pyx_n_s_List); Py_CLEAR(clear_module_state->__pyx_kp_u_List_is_too_small); Py_CLEAR(clear_module_state->__pyx_n_s_MAJOR_VERSION); Py_CLEAR(clear_module_state->__pyx_n_s_MINOR_VERSION); Py_CLEAR(clear_module_state->__pyx_n_s_MemoryError); Py_CLEAR(clear_module_state->__pyx_kp_s_Memory_Synchronization_Domain_A); Py_CLEAR(clear_module_state->__pyx_n_s_Optional); Py_CLEAR(clear_module_state->__pyx_kp_s_Optional_Tuple_cudaExternalSemap); Py_CLEAR(clear_module_state->__pyx_kp_s_Optional_Tuple_cudaExternalSemap_2); Py_CLEAR(clear_module_state->__pyx_kp_s_Optional_Tuple_cudaExternalSemap_3); Py_CLEAR(clear_module_state->__pyx_kp_s_Optional_Tuple_cudaGraphEdgeData); Py_CLEAR(clear_module_state->__pyx_kp_s_Optional_Tuple_cudaGraphNode_t_L); Py_CLEAR(clear_module_state->__pyx_kp_s_Optional_Tuple_cudaMemAccessDesc); Py_CLEAR(clear_module_state->__pyx_kp_s_Optional_Tuple_cudaMemRangeAttri); Py_CLEAR(clear_module_state->__pyx_kp_s_Optional_cudaChannelFormatDesc); Py_CLEAR(clear_module_state->__pyx_kp_s_Optional_cudaDeviceProp); Py_CLEAR(clear_module_state->__pyx_kp_s_Optional_cudaEglFrame); Py_CLEAR(clear_module_state->__pyx_kp_s_Optional_cudaExternalMemoryBuffe); Py_CLEAR(clear_module_state->__pyx_kp_s_Optional_cudaExternalMemoryHandl); Py_CLEAR(clear_module_state->__pyx_kp_s_Optional_cudaExternalMemoryMipma); Py_CLEAR(clear_module_state->__pyx_kp_s_Optional_cudaExternalSemaphoreHa); Py_CLEAR(clear_module_state->__pyx_kp_s_Optional_cudaExternalSemaphoreSi); Py_CLEAR(clear_module_state->__pyx_kp_s_Optional_cudaExternalSemaphoreWa); Py_CLEAR(clear_module_state->__pyx_kp_s_Optional_cudaGraphInstantiatePar); Py_CLEAR(clear_module_state->__pyx_kp_s_Optional_cudaGraphNodeParams); Py_CLEAR(clear_module_state->__pyx_kp_s_Optional_cudaHostNodeParams); Py_CLEAR(clear_module_state->__pyx_kp_s_Optional_cudaKernelNodeAttrValue); Py_CLEAR(clear_module_state->__pyx_kp_s_Optional_cudaKernelNodeParams); Py_CLEAR(clear_module_state->__pyx_kp_s_Optional_cudaMemAllocNodeParams); Py_CLEAR(clear_module_state->__pyx_kp_s_Optional_cudaMemLocation); Py_CLEAR(clear_module_state->__pyx_kp_s_Optional_cudaMemPoolProps); Py_CLEAR(clear_module_state->__pyx_kp_s_Optional_cudaMemPoolPtrExportDat); Py_CLEAR(clear_module_state->__pyx_kp_s_Optional_cudaMemcpy3DParms); Py_CLEAR(clear_module_state->__pyx_kp_s_Optional_cudaMemcpy3DPeerParms); Py_CLEAR(clear_module_state->__pyx_kp_s_Optional_cudaMemsetParams); Py_CLEAR(clear_module_state->__pyx_kp_s_Optional_cudaResourceDesc); Py_CLEAR(clear_module_state->__pyx_kp_s_Optional_cudaResourceViewDesc); Py_CLEAR(clear_module_state->__pyx_kp_s_Optional_cudaStreamAttrValue); Py_CLEAR(clear_module_state->__pyx_kp_s_Optional_cudaTextureDesc); Py_CLEAR(clear_module_state->__pyx_kp_s_Optional_cudaUUID_t); Py_CLEAR(clear_module_state->__pyx_n_s_OverflowError); Py_CLEAR(clear_module_state->__pyx_n_s_PATCH_LEVEL); Py_CLEAR(clear_module_state->__pyx_kp_s_Possible_modes_for_stream_captu); Py_CLEAR(clear_module_state->__pyx_kp_s_Possible_stream_capture_statuse); Py_CLEAR(clear_module_state->__pyx_kp_s_Resource_location_flags_sysmem); Py_CLEAR(clear_module_state->__pyx_n_s_RuntimeError); Py_CLEAR(clear_module_state->__pyx_kp_u_Set_device_to_be_used_for_GPU_e); Py_CLEAR(clear_module_state->__pyx_kp_s_Shared_memory_carveout_configur); Py_CLEAR(clear_module_state->__pyx_kp_s_Specifies_performance_hint_with); Py_CLEAR(clear_module_state->__pyx_kp_s_Specifies_the_field_to_update_w); Py_CLEAR(clear_module_state->__pyx_kp_s_Specifies_the_memory_protection); Py_CLEAR(clear_module_state->__pyx_kp_s_Specifies_the_type_of_location); Py_CLEAR(clear_module_state->__pyx_n_s_Tuple); Py_CLEAR(clear_module_state->__pyx_kp_s_Tuple_int_List_int); Py_CLEAR(clear_module_state->__pyx_n_s_TypeError); Py_CLEAR(clear_module_state->__pyx_kp_s_Type_annotations_that_can_be_ap); Py_CLEAR(clear_module_state->__pyx_kp_s_Types_of_async_notification_tha); Py_CLEAR(clear_module_state->__pyx_kp_u_Unknown_type); Py_CLEAR(clear_module_state->__pyx_n_s_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_VdpDevice); Py_CLEAR(clear_module_state->__pyx_n_s_VdpDevice_2); Py_CLEAR(clear_module_state->__pyx_n_s_VdpDevice___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_VdpDevice___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_VdpDevice_getPtr); Py_CLEAR(clear_module_state->__pyx_kp_u_VdpGetProcAddress); Py_CLEAR(clear_module_state->__pyx_n_s_VdpGetProcAddress_2); Py_CLEAR(clear_module_state->__pyx_n_s_VdpGetProcAddress___reduce_cytho); Py_CLEAR(clear_module_state->__pyx_n_s_VdpGetProcAddress___setstate_cyt); Py_CLEAR(clear_module_state->__pyx_n_s_VdpGetProcAddress_getPtr); Py_CLEAR(clear_module_state->__pyx_kp_u_VdpOutputSurface); Py_CLEAR(clear_module_state->__pyx_n_s_VdpOutputSurface_2); Py_CLEAR(clear_module_state->__pyx_n_s_VdpOutputSurface___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_VdpOutputSurface___setstate_cyth); Py_CLEAR(clear_module_state->__pyx_n_s_VdpOutputSurface_getPtr); Py_CLEAR(clear_module_state->__pyx_kp_u_VdpVideoSurface); Py_CLEAR(clear_module_state->__pyx_n_s_VdpVideoSurface_2); Py_CLEAR(clear_module_state->__pyx_n_s_VdpVideoSurface___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_VdpVideoSurface___setstate_cytho); Py_CLEAR(clear_module_state->__pyx_n_s_VdpVideoSurface_getPtr); Py_CLEAR(clear_module_state->__pyx_kp_b__351); Py_CLEAR(clear_module_state->__pyx_kp_u__400); Py_CLEAR(clear_module_state->__pyx_kp_u__51); Py_CLEAR(clear_module_state->__pyx_kp_u__52); Py_CLEAR(clear_module_state->__pyx_kp_u__62); Py_CLEAR(clear_module_state->__pyx_kp_u__654); Py_CLEAR(clear_module_state->__pyx_n_s__655); Py_CLEAR(clear_module_state->__pyx_kp_s__657); Py_CLEAR(clear_module_state->__pyx_n_s__910); Py_CLEAR(clear_module_state->__pyx_kp_u_accessDescCount); Py_CLEAR(clear_module_state->__pyx_n_s_accessDescCount_2); Py_CLEAR(clear_module_state->__pyx_kp_u_accessDescCount_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_accessDescs); Py_CLEAR(clear_module_state->__pyx_n_s_accessDescs_2); Py_CLEAR(clear_module_state->__pyx_kp_u_accessDescs_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_accessPolicyMaxWindowSize); Py_CLEAR(clear_module_state->__pyx_n_s_accessPolicyMaxWindowSize_2); Py_CLEAR(clear_module_state->__pyx_kp_u_accessPolicyMaxWindowSize_ValueE); Py_CLEAR(clear_module_state->__pyx_kp_u_accessPolicyWindow); Py_CLEAR(clear_module_state->__pyx_n_s_accessPolicyWindow_2); Py_CLEAR(clear_module_state->__pyx_kp_u_accessPolicyWindow_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_addressMode); Py_CLEAR(clear_module_state->__pyx_n_s_addressMode_2); Py_CLEAR(clear_module_state->__pyx_kp_u_addressMode_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_advice); Py_CLEAR(clear_module_state->__pyx_kp_u_alignment); Py_CLEAR(clear_module_state->__pyx_n_s_alignment_2); Py_CLEAR(clear_module_state->__pyx_kp_u_alignment_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_alloc); Py_CLEAR(clear_module_state->__pyx_kp_u_allocType); Py_CLEAR(clear_module_state->__pyx_n_s_allocType_2); Py_CLEAR(clear_module_state->__pyx_kp_u_allocType_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_alloc_2); Py_CLEAR(clear_module_state->__pyx_kp_u_alloc_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct0); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct0___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct0___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct0_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct1); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct13); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct13___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct13___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct13_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct14); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct14___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct14___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct14_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct15); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct15___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct15___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct15_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct16); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct16___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct16___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct16_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct17); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct17___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct17___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct17_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct18); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct18___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct18___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct18_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct19); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct19___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct19___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct19_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct1___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct1___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct1_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct2); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct20); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct20___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct20___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct20_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct21); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct21___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct21___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct21_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct22); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct22___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct22___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct22_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct23); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct23___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct23___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct23_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct24); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct24___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct24___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct24_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct2___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct2___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct2_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct3); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct3___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct3___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct3_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct4); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct4___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct4___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct4_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct5); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct5___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct5___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct5_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct6); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct6___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct6___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_struct6_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_anon_union0); Py_CLEAR(clear_module_state->__pyx_n_s_anon_union0___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_union0___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_union0_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_anon_union1); Py_CLEAR(clear_module_state->__pyx_n_s_anon_union10); Py_CLEAR(clear_module_state->__pyx_n_s_anon_union10___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_union10___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_union10_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_anon_union1___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_union1___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_union1_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_anon_union2); Py_CLEAR(clear_module_state->__pyx_n_s_anon_union2___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_union2___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_union2_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_anon_union5); Py_CLEAR(clear_module_state->__pyx_n_s_anon_union5___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_union5___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_union5_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_anon_union6); Py_CLEAR(clear_module_state->__pyx_n_s_anon_union6___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_union6___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_union6_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_anon_union8); Py_CLEAR(clear_module_state->__pyx_n_s_anon_union8___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_union8___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_union8_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_anon_union9); Py_CLEAR(clear_module_state->__pyx_n_s_anon_union9___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_union9___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_anon_union9_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_args); Py_CLEAR(clear_module_state->__pyx_kp_u_array); Py_CLEAR(clear_module_state->__pyx_n_s_arrayIndex); Py_CLEAR(clear_module_state->__pyx_n_s_array_2); Py_CLEAR(clear_module_state->__pyx_kp_u_array_3); Py_CLEAR(clear_module_state->__pyx_kp_u_array_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_asyncEngineCount); Py_CLEAR(clear_module_state->__pyx_n_s_asyncEngineCount_2); Py_CLEAR(clear_module_state->__pyx_kp_u_asyncEngineCount_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_asyncio_coroutines); Py_CLEAR(clear_module_state->__pyx_n_s_attr); Py_CLEAR(clear_module_state->__pyx_n_s_attribute); Py_CLEAR(clear_module_state->__pyx_n_s_attributes); Py_CLEAR(clear_module_state->__pyx_kp_u_base_ptr); Py_CLEAR(clear_module_state->__pyx_n_s_base_ptr_2); Py_CLEAR(clear_module_state->__pyx_kp_u_base_ptr_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_binaryVersion); Py_CLEAR(clear_module_state->__pyx_n_s_binaryVersion_2); Py_CLEAR(clear_module_state->__pyx_kp_u_binaryVersion_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_blockDim); Py_CLEAR(clear_module_state->__pyx_n_s_blockDim_2); Py_CLEAR(clear_module_state->__pyx_kp_u_blockDim_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_blockSize); Py_CLEAR(clear_module_state->__pyx_kp_u_borderColor); Py_CLEAR(clear_module_state->__pyx_n_s_borderColor_2); Py_CLEAR(clear_module_state->__pyx_kp_u_borderColor_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_buffer); Py_CLEAR(clear_module_state->__pyx_n_s_bufferDesc); Py_CLEAR(clear_module_state->__pyx_kp_u_bytes); Py_CLEAR(clear_module_state->__pyx_kp_u_bytesOverBudget); Py_CLEAR(clear_module_state->__pyx_n_s_bytesOverBudget_2); Py_CLEAR(clear_module_state->__pyx_kp_u_bytesOverBudget_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_bytes_2); Py_CLEAR(clear_module_state->__pyx_kp_u_bytes_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_bytesize); Py_CLEAR(clear_module_state->__pyx_n_s_bytesize_2); Py_CLEAR(clear_module_state->__pyx_kp_u_bytesize_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_cacheConfig); Py_CLEAR(clear_module_state->__pyx_kp_u_cacheModeCA); Py_CLEAR(clear_module_state->__pyx_n_s_cacheModeCA_2); Py_CLEAR(clear_module_state->__pyx_kp_u_cacheModeCA_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_cadvice); Py_CLEAR(clear_module_state->__pyx_n_s_callback); Py_CLEAR(clear_module_state->__pyx_n_s_callbackFunc); Py_CLEAR(clear_module_state->__pyx_n_s_canAccessPeer); Py_CLEAR(clear_module_state->__pyx_kp_u_canMapHostMemory); Py_CLEAR(clear_module_state->__pyx_n_s_canMapHostMemory_2); Py_CLEAR(clear_module_state->__pyx_kp_u_canMapHostMemory_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_canUseHostPointerForRegisteredMe); Py_CLEAR(clear_module_state->__pyx_n_s_canUseHostPointerForRegisteredMe_2); Py_CLEAR(clear_module_state->__pyx_kp_u_canUseHostPointerForRegisteredMe_3); Py_CLEAR(clear_module_state->__pyx_n_s_captureStatus_out); Py_CLEAR(clear_module_state->__pyx_n_s_carray); Py_CLEAR(clear_module_state->__pyx_n_s_cattr); Py_CLEAR(clear_module_state->__pyx_n_s_cattribute); Py_CLEAR(clear_module_state->__pyx_n_s_cattributes); Py_CLEAR(clear_module_state->__pyx_n_s_cbuffer); Py_CLEAR(clear_module_state->__pyx_n_s_cbufferDesc_ptr); Py_CLEAR(clear_module_state->__pyx_n_s_ccacheConfig); Py_CLEAR(clear_module_state->__pyx_n_s_ccallback); Py_CLEAR(clear_module_state->__pyx_n_s_ccallbackFunc); Py_CLEAR(clear_module_state->__pyx_n_s_cchildGraph); Py_CLEAR(clear_module_state->__pyx_n_s_cclonedGraph); Py_CLEAR(clear_module_state->__pyx_n_s_cconfig); Py_CLEAR(clear_module_state->__pyx_n_s_cconn); Py_CLEAR(clear_module_state->__pyx_n_s_cd); Py_CLEAR(clear_module_state->__pyx_n_s_cd_ptr); Py_CLEAR(clear_module_state->__pyx_n_s_cdata); Py_CLEAR(clear_module_state->__pyx_n_s_cdataSizes); Py_CLEAR(clear_module_state->__pyx_n_s_cdata_ptr); Py_CLEAR(clear_module_state->__pyx_n_s_cdependencies); Py_CLEAR(clear_module_state->__pyx_n_s_cdependencies_out); Py_CLEAR(clear_module_state->__pyx_n_s_cdependencyData); Py_CLEAR(clear_module_state->__pyx_n_s_cdescList); Py_CLEAR(clear_module_state->__pyx_n_s_cdesc_ptr); Py_CLEAR(clear_module_state->__pyx_n_s_cdestroy); Py_CLEAR(clear_module_state->__pyx_n_s_cdevPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cdevPtr_ptr); Py_CLEAR(clear_module_state->__pyx_n_s_cdeviceList); Py_CLEAR(clear_module_state->__pyx_n_s_cdptr); Py_CLEAR(clear_module_state->__pyx_n_s_cdptr_out_ptr); Py_CLEAR(clear_module_state->__pyx_n_s_cdptr_ptr); Py_CLEAR(clear_module_state->__pyx_n_s_cdst); Py_CLEAR(clear_module_state->__pyx_n_s_cdst_ptr); Py_CLEAR(clear_module_state->__pyx_n_s_cedgeData); Py_CLEAR(clear_module_state->__pyx_n_s_cedgeData_out); Py_CLEAR(clear_module_state->__pyx_n_s_ceglStream); Py_CLEAR(clear_module_state->__pyx_n_s_ceglSync); Py_CLEAR(clear_module_state->__pyx_n_s_ceglframe_ptr); Py_CLEAR(clear_module_state->__pyx_n_s_cend); Py_CLEAR(clear_module_state->__pyx_n_s_centryFuncAddr); Py_CLEAR(clear_module_state->__pyx_n_s_centryFuncAddr_ptr); Py_CLEAR(clear_module_state->__pyx_n_s_cerror); Py_CLEAR(clear_module_state->__pyx_n_s_cevent); Py_CLEAR(clear_module_state->__pyx_n_s_cexportData_ptr); Py_CLEAR(clear_module_state->__pyx_n_s_cextMem); Py_CLEAR(clear_module_state->__pyx_n_s_cextSem); Py_CLEAR(clear_module_state->__pyx_n_s_cextSemArray); Py_CLEAR(clear_module_state->__pyx_n_s_cf); Py_CLEAR(clear_module_state->__pyx_n_s_cfmtDesc_ptr); Py_CLEAR(clear_module_state->__pyx_n_s_cfn); Py_CLEAR(clear_module_state->__pyx_n_s_cfrom); Py_CLEAR(clear_module_state->__pyx_n_s_cfunc); Py_CLEAR(clear_module_state->__pyx_n_s_cfunc_ptr); Py_CLEAR(clear_module_state->__pyx_n_s_cgraph); Py_CLEAR(clear_module_state->__pyx_n_s_cgraphExec); Py_CLEAR(clear_module_state->__pyx_n_s_chArray); Py_CLEAR(clear_module_state->__pyx_n_s_chDst); Py_CLEAR(clear_module_state->__pyx_n_s_chGraph); Py_CLEAR(clear_module_state->__pyx_n_s_chGraphExec); Py_CLEAR(clear_module_state->__pyx_n_s_chNode); Py_CLEAR(clear_module_state->__pyx_n_s_chSrc); Py_CLEAR(clear_module_state->__pyx_n_s_chStream); Py_CLEAR(clear_module_state->__pyx_n_s_chandleType); Py_CLEAR(clear_module_state->__pyx_kp_u_channelDesc); Py_CLEAR(clear_module_state->__pyx_n_s_channelDesc_2); Py_CLEAR(clear_module_state->__pyx_kp_u_channelDesc_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_cheight); Py_CLEAR(clear_module_state->__pyx_n_s_childGraph); Py_CLEAR(clear_module_state->__pyx_n_s_cimage); Py_CLEAR(clear_module_state->__pyx_n_s_cinstantiateParams_ptr); Py_CLEAR(clear_module_state->__pyx_n_s_ckernelParams); Py_CLEAR(clear_module_state->__pyx_n_s_ckind); Py_CLEAR(clear_module_state->__pyx_n_s_climit); Py_CLEAR(clear_module_state->__pyx_n_s_cline_in_traceback); Py_CLEAR(clear_module_state->__pyx_n_s_clocation_ptr); Py_CLEAR(clear_module_state->__pyx_kp_u_clockRate); Py_CLEAR(clear_module_state->__pyx_n_s_clockRate_2); Py_CLEAR(clear_module_state->__pyx_kp_u_clockRate_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_clonedGraph); Py_CLEAR(clear_module_state->__pyx_n_s_close); Py_CLEAR(clear_module_state->__pyx_kp_u_clusterDim); Py_CLEAR(clear_module_state->__pyx_kp_u_clusterDimMustBeSet); Py_CLEAR(clear_module_state->__pyx_n_s_clusterDimMustBeSet_2); Py_CLEAR(clear_module_state->__pyx_kp_u_clusterDimMustBeSet_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_clusterDim_2); Py_CLEAR(clear_module_state->__pyx_kp_u_clusterDim_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_clusterLaunch); Py_CLEAR(clear_module_state->__pyx_n_s_clusterLaunch_2); Py_CLEAR(clear_module_state->__pyx_kp_u_clusterLaunch_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_clusterSchedulingPolicyPreferenc); Py_CLEAR(clear_module_state->__pyx_n_s_clusterSchedulingPolicyPreferenc_2); Py_CLEAR(clear_module_state->__pyx_kp_u_clusterSchedulingPolicyPreferenc_3); Py_CLEAR(clear_module_state->__pyx_n_s_cmemHandleDesc_ptr); Py_CLEAR(clear_module_state->__pyx_n_s_cmemPool); Py_CLEAR(clear_module_state->__pyx_n_s_cmipmap); Py_CLEAR(clear_module_state->__pyx_n_s_cmipmapDesc_ptr); Py_CLEAR(clear_module_state->__pyx_n_s_cmipmappedArray); Py_CLEAR(clear_module_state->__pyx_n_s_cmode); Py_CLEAR(clear_module_state->__pyx_n_s_cnode); Py_CLEAR(clear_module_state->__pyx_n_s_cnodeParams_ptr); Py_CLEAR(clear_module_state->__pyx_n_s_cnodes); Py_CLEAR(clear_module_state->__pyx_n_s_cnvSciSyncAttrList); Py_CLEAR(clear_module_state->__pyx_n_s_cnvSciSyncAttrList_ptr); Py_CLEAR(clear_module_state->__pyx_n_s_cobject); Py_CLEAR(clear_module_state->__pyx_kp_u_computeMode); Py_CLEAR(clear_module_state->__pyx_n_s_computeMode_2); Py_CLEAR(clear_module_state->__pyx_kp_u_computeMode_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_computePreemptionSupported); Py_CLEAR(clear_module_state->__pyx_n_s_computePreemptionSupported_2); Py_CLEAR(clear_module_state->__pyx_kp_u_computePreemptionSupported_Value); Py_CLEAR(clear_module_state->__pyx_kp_u_concurrentKernels); Py_CLEAR(clear_module_state->__pyx_n_s_concurrentKernels_2); Py_CLEAR(clear_module_state->__pyx_kp_u_concurrentKernels_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_concurrentManagedAccess); Py_CLEAR(clear_module_state->__pyx_n_s_concurrentManagedAccess_2); Py_CLEAR(clear_module_state->__pyx_kp_u_concurrentManagedAccess_ValueErr); Py_CLEAR(clear_module_state->__pyx_kp_u_conditional); Py_CLEAR(clear_module_state->__pyx_n_s_conditional_2); Py_CLEAR(clear_module_state->__pyx_kp_u_conditional_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_config); Py_CLEAR(clear_module_state->__pyx_n_s_conn); Py_CLEAR(clear_module_state->__pyx_kp_u_constSizeBytes); Py_CLEAR(clear_module_state->__pyx_n_s_constSizeBytes_2); Py_CLEAR(clear_module_state->__pyx_kp_u_constSizeBytes_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_cooperative); Py_CLEAR(clear_module_state->__pyx_kp_u_cooperativeLaunch); Py_CLEAR(clear_module_state->__pyx_n_s_cooperativeLaunch_2); Py_CLEAR(clear_module_state->__pyx_kp_u_cooperativeLaunch_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_cooperativeMultiDeviceLaunch); Py_CLEAR(clear_module_state->__pyx_n_s_cooperativeMultiDeviceLaunch_2); Py_CLEAR(clear_module_state->__pyx_kp_u_cooperativeMultiDeviceLaunch_Val); Py_CLEAR(clear_module_state->__pyx_n_s_cooperative_2); Py_CLEAR(clear_module_state->__pyx_kp_u_cooperative_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_copyParams); Py_CLEAR(clear_module_state->__pyx_n_s_copyParams_2); Py_CLEAR(clear_module_state->__pyx_kp_u_copyParams_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_coriginalGraph); Py_CLEAR(clear_module_state->__pyx_n_s_coriginalNode); Py_CLEAR(clear_module_state->__pyx_n_s_count); Py_CLEAR(clear_module_state->__pyx_n_s_cpCopyParams_ptr); Py_CLEAR(clear_module_state->__pyx_n_s_cpCudaDevices); Py_CLEAR(clear_module_state->__pyx_n_s_cpCudaResource); Py_CLEAR(clear_module_state->__pyx_n_s_cpDependencies); Py_CLEAR(clear_module_state->__pyx_n_s_cpDependentNodes); Py_CLEAR(clear_module_state->__pyx_n_s_cpExportTableId_ptr); Py_CLEAR(clear_module_state->__pyx_n_s_cpHost); Py_CLEAR(clear_module_state->__pyx_n_s_cpHost_ptr); Py_CLEAR(clear_module_state->__pyx_n_s_cpMemsetParams_ptr); Py_CLEAR(clear_module_state->__pyx_n_s_cpNodeParams_ptr); Py_CLEAR(clear_module_state->__pyx_n_s_cpResDesc_ptr); Py_CLEAR(clear_module_state->__pyx_n_s_cpResViewDesc_ptr); Py_CLEAR(clear_module_state->__pyx_n_s_cpRootNodes); Py_CLEAR(clear_module_state->__pyx_n_s_cpStream); Py_CLEAR(clear_module_state->__pyx_n_s_cpTexDesc_ptr); Py_CLEAR(clear_module_state->__pyx_n_s_cp_ptr); Py_CLEAR(clear_module_state->__pyx_n_s_cparamsArray); Py_CLEAR(clear_module_state->__pyx_n_s_cpoolProps_ptr); Py_CLEAR(clear_module_state->__pyx_n_s_cprop_ptr); Py_CLEAR(clear_module_state->__pyx_n_s_cptr); Py_CLEAR(clear_module_state->__pyx_n_s_cptr_ptr); Py_CLEAR(clear_module_state->__pyx_n_s_cresource); Py_CLEAR(clear_module_state->__pyx_n_s_cresources); Py_CLEAR(clear_module_state->__pyx_n_s_cscope); Py_CLEAR(clear_module_state->__pyx_n_s_csemHandleDesc_ptr); Py_CLEAR(clear_module_state->__pyx_n_s_cshareableHandle); Py_CLEAR(clear_module_state->__pyx_n_s_cshareableHandle_ptr); Py_CLEAR(clear_module_state->__pyx_n_s_csrc); Py_CLEAR(clear_module_state->__pyx_n_s_csrc_ptr); Py_CLEAR(clear_module_state->__pyx_n_s_cstart); Py_CLEAR(clear_module_state->__pyx_n_s_cstream); Py_CLEAR(clear_module_state->__pyx_n_s_csurfObject); Py_CLEAR(clear_module_state->__pyx_n_s_ctarget); Py_CLEAR(clear_module_state->__pyx_n_s_ctexObject); Py_CLEAR(clear_module_state->__pyx_n_s_cto); Py_CLEAR(clear_module_state->__pyx_n_s_ctypes); Py_CLEAR(clear_module_state->__pyx_n_s_cuda); Py_CLEAR(clear_module_state->__pyx_n_s_cudaAccessPolicyWindow); Py_CLEAR(clear_module_state->__pyx_n_s_cudaAccessPolicyWindow___reduce); Py_CLEAR(clear_module_state->__pyx_n_s_cudaAccessPolicyWindow___setstat); Py_CLEAR(clear_module_state->__pyx_n_s_cudaAccessPolicyWindow_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaAccessProperty); Py_CLEAR(clear_module_state->__pyx_n_s_cudaAccessPropertyNormal); Py_CLEAR(clear_module_state->__pyx_n_s_cudaAccessPropertyPersisting); Py_CLEAR(clear_module_state->__pyx_n_s_cudaAccessPropertyStreaming); Py_CLEAR(clear_module_state->__pyx_n_s_cudaAddressModeBorder); Py_CLEAR(clear_module_state->__pyx_n_s_cudaAddressModeClamp); Py_CLEAR(clear_module_state->__pyx_n_s_cudaAddressModeMirror); Py_CLEAR(clear_module_state->__pyx_n_s_cudaAddressModeWrap); Py_CLEAR(clear_module_state->__pyx_n_s_cudaArrayColorAttachment); Py_CLEAR(clear_module_state->__pyx_n_s_cudaArrayCubemap); Py_CLEAR(clear_module_state->__pyx_n_s_cudaArrayDefault); Py_CLEAR(clear_module_state->__pyx_n_s_cudaArrayDeferredMapping); Py_CLEAR(clear_module_state->__pyx_n_s_cudaArrayGetInfo); Py_CLEAR(clear_module_state->__pyx_n_s_cudaArrayGetMemoryRequirements); Py_CLEAR(clear_module_state->__pyx_n_s_cudaArrayGetPlane); Py_CLEAR(clear_module_state->__pyx_n_s_cudaArrayGetSparseProperties); Py_CLEAR(clear_module_state->__pyx_n_s_cudaArrayLayered); Py_CLEAR(clear_module_state->__pyx_n_s_cudaArrayMemoryRequirements); Py_CLEAR(clear_module_state->__pyx_n_s_cudaArrayMemoryRequirements___re); Py_CLEAR(clear_module_state->__pyx_n_s_cudaArrayMemoryRequirements___se); Py_CLEAR(clear_module_state->__pyx_n_s_cudaArrayMemoryRequirements_getP); Py_CLEAR(clear_module_state->__pyx_n_s_cudaArraySparse); Py_CLEAR(clear_module_state->__pyx_n_s_cudaArraySparseProperties); Py_CLEAR(clear_module_state->__pyx_n_s_cudaArraySparsePropertiesSingleM); Py_CLEAR(clear_module_state->__pyx_n_s_cudaArraySparseProperties___redu); Py_CLEAR(clear_module_state->__pyx_n_s_cudaArraySparseProperties___sets); Py_CLEAR(clear_module_state->__pyx_n_s_cudaArraySparseProperties_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaArraySurfaceLoadStore); Py_CLEAR(clear_module_state->__pyx_n_s_cudaArrayTextureGather); Py_CLEAR(clear_module_state->__pyx_kp_u_cudaArray_const_t); Py_CLEAR(clear_module_state->__pyx_n_s_cudaArray_const_t_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaArray_const_t___reduce_cytho); Py_CLEAR(clear_module_state->__pyx_n_s_cudaArray_const_t___setstate_cyt); Py_CLEAR(clear_module_state->__pyx_n_s_cudaArray_const_t_getPtr); Py_CLEAR(clear_module_state->__pyx_kp_u_cudaArray_t); Py_CLEAR(clear_module_state->__pyx_n_s_cudaArray_t_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaArray_t___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_cudaArray_t___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_cudaArray_t_getPtr); Py_CLEAR(clear_module_state->__pyx_kp_u_cudaAsyncCallback); Py_CLEAR(clear_module_state->__pyx_kp_u_cudaAsyncCallbackHandle_t); Py_CLEAR(clear_module_state->__pyx_n_s_cudaAsyncCallbackHandle_t_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaAsyncCallbackHandle_t___redu); Py_CLEAR(clear_module_state->__pyx_n_s_cudaAsyncCallbackHandle_t___sets); Py_CLEAR(clear_module_state->__pyx_n_s_cudaAsyncCallbackHandle_t_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaAsyncCallback_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaAsyncCallback___reduce_cytho); Py_CLEAR(clear_module_state->__pyx_n_s_cudaAsyncCallback___setstate_cyt); Py_CLEAR(clear_module_state->__pyx_n_s_cudaAsyncCallback_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaAsyncNotificationInfo); Py_CLEAR(clear_module_state->__pyx_n_s_cudaAsyncNotificationInfo___redu); Py_CLEAR(clear_module_state->__pyx_n_s_cudaAsyncNotificationInfo___sets); Py_CLEAR(clear_module_state->__pyx_n_s_cudaAsyncNotificationInfo_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaAsyncNotificationInfo_t); Py_CLEAR(clear_module_state->__pyx_n_s_cudaAsyncNotificationType); Py_CLEAR(clear_module_state->__pyx_n_s_cudaAsyncNotificationTypeOverBud); Py_CLEAR(clear_module_state->__pyx_n_s_cudaBoundaryModeClamp); Py_CLEAR(clear_module_state->__pyx_n_s_cudaBoundaryModeTrap); Py_CLEAR(clear_module_state->__pyx_n_s_cudaBoundaryModeZero); Py_CLEAR(clear_module_state->__pyx_n_s_cudaCGScope); Py_CLEAR(clear_module_state->__pyx_n_s_cudaCGScopeGrid); Py_CLEAR(clear_module_state->__pyx_n_s_cudaCGScopeInvalid); Py_CLEAR(clear_module_state->__pyx_n_s_cudaCGScopeMultiGrid); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChannelFormatDesc); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChannelFormatDesc___reduce_c); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChannelFormatDesc___setstate); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChannelFormatDesc_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChannelFormatKind); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChannelFormatKindFloat); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChannelFormatKindNV12); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChannelFormatKindNone); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChannelFormatKindSigned); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChannelFormatKindSignedBlock); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChannelFormatKindSignedBlock_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChannelFormatKindSignedBlock_3); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChannelFormatKindSignedNorma); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChannelFormatKindSignedNorma_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChannelFormatKindSignedNorma_3); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChannelFormatKindSignedNorma_4); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChannelFormatKindSignedNorma_5); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChannelFormatKindSignedNorma_6); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChannelFormatKindUnsigned); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChannelFormatKindUnsignedBlo); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChannelFormatKindUnsignedBlo_10); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChannelFormatKindUnsignedBlo_11); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChannelFormatKindUnsignedBlo_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChannelFormatKindUnsignedBlo_3); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChannelFormatKindUnsignedBlo_4); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChannelFormatKindUnsignedBlo_5); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChannelFormatKindUnsignedBlo_6); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChannelFormatKindUnsignedBlo_7); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChannelFormatKindUnsignedBlo_8); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChannelFormatKindUnsignedBlo_9); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChannelFormatKindUnsignedNor); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChannelFormatKindUnsignedNor_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChannelFormatKindUnsignedNor_3); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChannelFormatKindUnsignedNor_4); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChannelFormatKindUnsignedNor_5); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChannelFormatKindUnsignedNor_6); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChildGraphNodeParams); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChildGraphNodeParams___reduc); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChildGraphNodeParams___setst); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChildGraphNodeParams_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaChooseDevice); Py_CLEAR(clear_module_state->__pyx_n_s_cudaClusterSchedulingPolicy); Py_CLEAR(clear_module_state->__pyx_n_s_cudaClusterSchedulingPolicyDefau); Py_CLEAR(clear_module_state->__pyx_n_s_cudaClusterSchedulingPolicyLoadB); Py_CLEAR(clear_module_state->__pyx_n_s_cudaClusterSchedulingPolicySprea); Py_CLEAR(clear_module_state->__pyx_n_s_cudaComputeMode); Py_CLEAR(clear_module_state->__pyx_n_s_cudaComputeModeDefault); Py_CLEAR(clear_module_state->__pyx_n_s_cudaComputeModeExclusive); Py_CLEAR(clear_module_state->__pyx_n_s_cudaComputeModeExclusiveProcess); Py_CLEAR(clear_module_state->__pyx_n_s_cudaComputeModeProhibited); Py_CLEAR(clear_module_state->__pyx_n_s_cudaConditionalNodeParams); Py_CLEAR(clear_module_state->__pyx_n_s_cudaConditionalNodeParams___redu); Py_CLEAR(clear_module_state->__pyx_n_s_cudaConditionalNodeParams___sets); Py_CLEAR(clear_module_state->__pyx_n_s_cudaConditionalNodeParams_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaCooperativeLaunchMultiDevice); Py_CLEAR(clear_module_state->__pyx_n_s_cudaCooperativeLaunchMultiDevice_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaCpuDeviceId); Py_CLEAR(clear_module_state->__pyx_n_s_cudaCreateChannelDesc); Py_CLEAR(clear_module_state->__pyx_n_s_cudaCreateSurfaceObject); Py_CLEAR(clear_module_state->__pyx_n_s_cudaCreateTextureObject); Py_CLEAR(clear_module_state->__pyx_n_s_cudaCtxResetPersistingL2Cache); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDataType); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDestroyExternalMemory); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDestroyExternalSemaphore); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDestroySurfaceObject); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDestroyTextureObject); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrAsyncEngineCount); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrCanFlushRemoteWrites); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrCanMapHostMemory); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrCanUseHostPointerForR); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrClockRate); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrClusterLaunch); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrComputeCapabilityMajo); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrComputeCapabilityMino); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrComputeMode); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrComputePreemptionSupp); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrConcurrentKernels); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrConcurrentManagedAcce); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrCooperativeLaunch); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrCooperativeMultiDevic); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrD3D12CigSupported); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrDeferredMappingCudaAr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrDirectManagedMemAcces); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrEccEnabled); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrGPUDirectRDMAFlushWri); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrGPUDirectRDMASupporte); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrGPUDirectRDMAWritesOr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrGlobalL1CacheSupporte); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrGlobalMemoryBusWidth); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrGpuOverlap); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrHostNativeAtomicSuppo); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrHostNumaId); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrHostRegisterReadOnlyS); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrHostRegisterSupported); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrIntegrated); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrIpcEventSupport); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrIsMultiGpuBoard); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrKernelExecTimeout); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrL2CacheSize); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrLocalL1CacheSupported); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrManagedMemory); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMax); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxAccessPolicyWindow); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxBlockDimX); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxBlockDimY); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxBlockDimZ); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxBlocksPerMultiproc); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxGridDimX); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxGridDimY); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxGridDimZ); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxPersistingL2CacheS); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxPitch); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxRegistersPerBlock); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxRegistersPerMultip); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxSharedMemoryPerBlo); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxSharedMemoryPerBlo_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxSharedMemoryPerMul); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxSurface1DLayeredLa); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxSurface1DLayeredWi); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxSurface1DWidth); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxSurface2DHeight); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxSurface2DLayeredHe); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxSurface2DLayeredLa); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxSurface2DLayeredWi); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxSurface2DWidth); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxSurface3DDepth); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxSurface3DHeight); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxSurface3DWidth); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxSurfaceCubemapLaye); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxSurfaceCubemapLaye_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxSurfaceCubemapWidt); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxTexture1DLayeredLa); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxTexture1DLayeredWi); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxTexture1DLinearWid); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxTexture1DMipmapped); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxTexture1DWidth); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxTexture2DGatherHei); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxTexture2DGatherWid); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxTexture2DHeight); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxTexture2DLayeredHe); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxTexture2DLayeredLa); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxTexture2DLayeredWi); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxTexture2DLinearHei); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxTexture2DLinearPit); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxTexture2DLinearWid); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxTexture2DMipmapped); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxTexture2DMipmapped_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxTexture2DWidth); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxTexture3DDepth); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxTexture3DDepthAlt); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxTexture3DHeight); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxTexture3DHeightAlt); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxTexture3DWidth); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxTexture3DWidthAlt); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxTextureCubemapLaye); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxTextureCubemapLaye_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxTextureCubemapWidt); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxThreadsPerBlock); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxThreadsPerMultiPro); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMaxTimelineSemaphoreI); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMemSyncDomainCount); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMemoryClockRate); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMemoryPoolSupportedHa); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMemoryPoolsSupported); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMpsEnabled); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMultiGpuBoardGroupID); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrMultiProcessorCount); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrNumaConfig); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrNumaId); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrPageableMemoryAccess); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrPageableMemoryAccessU); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrPciBusId); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrPciDeviceId); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrPciDomainId); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrReserved122); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrReserved123); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrReserved124); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrReserved127); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrReserved128); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrReserved129); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrReserved132); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrReserved92); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrReserved93); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrReserved94); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrReservedSharedMemoryP); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrSingleToDoublePrecisi); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrSparseCudaArraySuppor); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrStreamPrioritiesSuppo); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrSurfaceAlignment); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrTccDriver); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrTextureAlignment); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrTexturePitchAlignment); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrTimelineSemaphoreInte); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrTotalConstantMemory); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrUnifiedAddressing); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevAttrWarpSize); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevP2PAttrAccessSupported); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevP2PAttrCudaArrayAccessSup); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevP2PAttrNativeAtomicSuppor); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDevP2PAttrPerformanceRank); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceAttr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceBlockingSync); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceCanAccessPeer); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceCount); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceDisablePeerAccess); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceEnablePeerAccess); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceFlushGPUDirectRDMAWrit); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceGetAttribute); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceGetByPCIBusId); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceGetCacheConfig); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceGetDefaultMemPool); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceGetGraphMemAttribute); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceGetLimit); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceGetMemPool); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceGetNvSciSyncAttributes); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceGetP2PAttribute); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceGetPCIBusId); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceGetSharedMemConfig); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceGetStreamPriorityRange); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceGetTexture1DLinearMaxW); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceGraphMemTrim); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceLmemResizeToMax); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceMapHost); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceMask); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceNumaConfig); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceNumaConfigNone); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceNumaConfigNumaNode); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceP2PAttr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceProp); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceProp___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceProp___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceProp_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceRegisterAsyncNotificat); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceReset); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceScheduleAuto); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceScheduleBlockingSync); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceScheduleMask); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceScheduleSpin); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceScheduleYield); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceSetCacheConfig); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceSetGraphMemAttribute); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceSetLimit); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceSetMemPool); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceSetSharedMemConfig); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceSyncMemops); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceSynchronize); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDeviceUnregisterAsyncNotific); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDriverEntryPointQueryResult); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDriverEntryPointSuccess); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDriverEntryPointSymbolNotFou); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDriverEntryPointVersionNotSu); Py_CLEAR(clear_module_state->__pyx_n_s_cudaDriverGetVersion); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEGLStreamConsumerAcquireFram); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEGLStreamConsumerConnect); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEGLStreamConsumerConnectWith); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEGLStreamConsumerDisconnect); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEGLStreamConsumerReleaseFram); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEGLStreamProducerConnect); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEGLStreamProducerDisconnect); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEGLStreamProducerPresentFram); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEGLStreamProducerReturnFrame); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormat); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatA); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatABGR); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatARGB); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatAYUV); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatAYUV_ER); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatBGRA); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatBayer10BGGR); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatBayer10CCCC); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatBayer10GBRG); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatBayer10GRBG); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatBayer10RGGB); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatBayer12BCCR); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatBayer12BGGR); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatBayer12CBRC); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatBayer12CCCC); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatBayer12CRBC); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatBayer12GBRG); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatBayer12GRBG); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatBayer12RCCB); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatBayer12RGGB); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatBayer14BGGR); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatBayer14GBRG); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatBayer14GRBG); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatBayer14RGGB); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatBayer20BGGR); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatBayer20GBRG); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatBayer20GRBG); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatBayer20RGGB); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatBayerBCCR); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatBayerBGGR); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatBayerCBRC); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatBayerCRBC); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatBayerGBRG); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatBayerGRBG); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatBayerIspBGGR); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatBayerIspGBRG); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatBayerIspGRBG); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatBayerIspRGGB); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatBayerRCCB); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatBayerRGGB); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatL); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatR); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatRG); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatRGBA); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatUYVY422); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatUYVY_ER); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatVYUY); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatVYUY_ER); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatY); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatY10V10U10_420S); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatY10V10U10_420S_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatY10V10U10_420S_3); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatY10V10U10_420S_4); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatY10V10U10_420S_5); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatY10V10U10_422S); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatY10V10U10_422S_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatY10V10U10_422S_3); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatY10V10U10_444S); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatY10V10U10_444S_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatY10V10U10_444S_3); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatY10_709_ER); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatY10_ER); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatY12V12U12_420S); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatY12V12U12_420S_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatY12V12U12_420S_3); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatY12V12U12_444S); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatY12V12U12_444S_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatY12V12U12_444S_3); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatY12_709_ER); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatY12_ER); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYUV420Planar); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYUV420Planar_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYUV420Planar_7); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYUV420Planar_E); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYUV420SemiPlan); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYUV420SemiPlan_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYUV420SemiPlan_3); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYUV420SemiPlan_4); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYUV422Planar); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYUV422Planar_E); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYUV422SemiPlan); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYUV422SemiPlan_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYUV444Planar); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYUV444Planar_E); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYUV444SemiPlan); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYUV444SemiPlan_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYUVA); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYUVA_ER); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYUYV422); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYUYV_ER); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYVU420Planar); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYVU420Planar_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYVU420Planar_7); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYVU420Planar_E); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYVU420SemiPlan); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYVU420SemiPlan_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYVU420SemiPlan_3); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYVU420SemiPlan_4); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYVU422Planar); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYVU422Planar_E); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYVU422SemiPlan); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYVU422SemiPlan_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYVU444Planar); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYVU444Planar_E); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYVU444SemiPlan); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYVU444SemiPlan_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYVYU); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatYVYU_ER); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatY_709_ER); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglColorFormatY_ER); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglFrame); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglFrameType); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglFrameTypeArray); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglFrameTypePitch); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglFrame_st); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglFrame_st___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglFrame_st___setstate_cytho); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglFrame_st_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglPlaneDesc); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglPlaneDesc_st); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglPlaneDesc_st___reduce_cyt); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglPlaneDesc_st___setstate_c); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglPlaneDesc_st_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglResourceLocationFlags); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglResourceLocationSysmem); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglResourceLocationVidmem); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEglStreamConnection); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEnableDefault); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEnableLegacyStream); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEnablePerThreadDefaultStream); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorAddressOfConstant); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorAlreadyAcquired); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorAlreadyMapped); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorApiFailureBase); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorArrayIsMapped); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorAssert); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorCallRequiresNewerDriver); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorCapturedEvent); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorCdpNotSupported); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorCdpVersionMismatch); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorCompatNotSupportedOnDev); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorContextIsDestroyed); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorCooperativeLaunchTooLar); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorCudartUnloading); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorDeviceAlreadyInUse); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorDeviceNotLicensed); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorDeviceUninitialized); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorDevicesUnavailable); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorDuplicateSurfaceName); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorDuplicateTextureName); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorDuplicateVariableName); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorECCUncorrectable); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorExternalDevice); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorFileNotFound); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorFunctionNotLoaded); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorGraphExecUpdateFailure); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorHardwareStackError); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorHostMemoryAlreadyRegist); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorHostMemoryNotRegistered); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorIllegalAddress); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorIllegalInstruction); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorIllegalState); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorIncompatibleDriverConte); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorInitializationError); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorInsufficientDriver); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorInvalidAddressSpace); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorInvalidChannelDescripto); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorInvalidClusterSize); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorInvalidConfiguration); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorInvalidDevice); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorInvalidDeviceFunction); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorInvalidDevicePointer); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorInvalidFilterSetting); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorInvalidGraphicsContext); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorInvalidHostPointer); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorInvalidKernelImage); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorInvalidMemcpyDirection); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorInvalidNormSetting); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorInvalidPc); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorInvalidPitchValue); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorInvalidPtx); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorInvalidResourceConfigur); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorInvalidResourceHandle); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorInvalidResourceType); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorInvalidSource); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorInvalidSurface); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorInvalidSymbol); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorInvalidTexture); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorInvalidTextureBinding); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorInvalidValue); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorJitCompilationDisabled); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorJitCompilerNotFound); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorLaunchFailure); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorLaunchFileScopedSurf); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorLaunchFileScopedTex); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorLaunchIncompatibleTextu); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorLaunchMaxDepthExceeded); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorLaunchOutOfResources); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorLaunchPendingCountExcee); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorLaunchTimeout); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorLossyQuery); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorMapBufferObjectFailed); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorMemoryAllocation); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorMemoryValueTooLarge); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorMisalignedAddress); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorMissingConfiguration); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorMixedDeviceExecution); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorMpsClientTerminated); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorMpsConnectionFailed); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorMpsMaxClientsReached); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorMpsMaxConnectionsReache); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorMpsRpcFailure); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorMpsServerNotReady); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorNoDevice); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorNoKernelImageForDevice); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorNotMapped); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorNotMappedAsArray); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorNotMappedAsPointer); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorNotPermitted); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorNotReady); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorNotSupported); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorNotYetImplemented); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorNvlinkUncorrectable); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorOperatingSystem); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorPeerAccessAlreadyEnable); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorPeerAccessNotEnabled); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorPeerAccessUnsupported); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorPriorLaunchFailure); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorProfilerAlreadyStarted); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorProfilerAlreadyStopped); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorProfilerDisabled); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorProfilerNotInitialized); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorSetOnActiveProcess); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorSharedObjectInitFailed); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorSharedObjectSymbolNotFo); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorSoftwareValidityNotEsta); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorStartupFailure); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorStreamCaptureImplicit); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorStreamCaptureInvalidate); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorStreamCaptureIsolation); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorStreamCaptureMerge); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorStreamCaptureUnjoined); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorStreamCaptureUnmatched); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorStreamCaptureUnsupporte); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorStreamCaptureWrongThrea); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorStubLibrary); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorSymbolNotFound); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorSyncDepthExceeded); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorSynchronizationError); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorSystemDriverMismatch); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorSystemNotReady); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorTextureFetchFailed); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorTextureNotBound); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorTimeout); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorTooManyPeers); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorUnknown); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorUnmapBufferObjectFailed); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorUnsupportedDevSideSync); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorUnsupportedExecAffinity); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorUnsupportedLimit); Py_CLEAR(clear_module_state->__pyx_n_s_cudaErrorUnsupportedPtxVersion); Py_CLEAR(clear_module_state->__pyx_n_s_cudaError_t); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEventBlockingSync); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEventCreate); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEventCreateFromEGLSync); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEventCreateWithFlags); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEventDefault); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEventDestroy); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEventDisableTiming); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEventElapsedTime); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEventInterprocess); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEventQuery); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEventRecord); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEventRecordDefault); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEventRecordExternal); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEventRecordNodeParams); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEventRecordNodeParams___redu); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEventRecordNodeParams___sets); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEventRecordNodeParams_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEventRecordWithFlags); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEventSynchronize); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEventWaitDefault); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEventWaitExternal); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEventWaitNodeParams); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEventWaitNodeParams___reduce); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEventWaitNodeParams___setsta); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEventWaitNodeParams_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaEvent_t); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExtent); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExtent___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExtent___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExtent_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalMemoryBufferDesc); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalMemoryBufferDesc___r); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalMemoryBufferDesc___s); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalMemoryBufferDesc_get); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalMemoryDedicated); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalMemoryGetMappedBuffe); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalMemoryGetMappedMipma); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalMemoryHandleDesc); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalMemoryHandleDesc___r); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalMemoryHandleDesc___s); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalMemoryHandleDesc_get); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalMemoryHandleType); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalMemoryHandleTypeD3D1); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalMemoryHandleTypeD3D1_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalMemoryHandleTypeD3D1_3); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalMemoryHandleTypeD3D1_4); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalMemoryHandleTypeNvSc); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalMemoryHandleTypeOpaq); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalMemoryHandleTypeOpaq_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalMemoryHandleTypeOpaq_3); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalMemoryMipmappedArray); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalMemoryMipmappedArray_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalMemoryMipmappedArray_3); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalMemoryMipmappedArray_4); Py_CLEAR(clear_module_state->__pyx_kp_u_cudaExternalMemory_t); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalMemory_t_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalMemory_t___reduce_cy); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalMemory_t___setstate); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalMemory_t_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreHandleDesc); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreHandleDesc_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreHandleDesc_3); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreHandleDesc_4); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreHandleType); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreHandleTypeD); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreHandleTypeD_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreHandleTypeK); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreHandleTypeK_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreHandleTypeN); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreHandleTypeO); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreHandleTypeO_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreHandleTypeO_3); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreHandleTypeT); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreHandleTypeT_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreSignalNodeP); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreSignalNodeP_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreSignalNodeP_3); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreSignalNodeP_4); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreSignalNodeP_5); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreSignalNodeP_6); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreSignalNodeP_7); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreSignalNodeP_8); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreSignalParam); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreSignalParam_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreSignalParam_3); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreSignalParam_4); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreSignalSkipN); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreWaitNodePar); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreWaitNodePar_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreWaitNodePar_3); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreWaitNodePar_4); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreWaitNodePar_5); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreWaitNodePar_6); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreWaitNodePar_7); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreWaitNodePar_8); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreWaitParams); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreWaitParams_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreWaitParams_3); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreWaitParams_4); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphoreWaitSkipNvS); Py_CLEAR(clear_module_state->__pyx_kp_u_cudaExternalSemaphore_t); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphore_t_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphore_t___reduce); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphore_t___setsta); Py_CLEAR(clear_module_state->__pyx_n_s_cudaExternalSemaphore_t_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFilterModeLinear); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFilterModePoint); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFlushGPUDirectRDMAWritesOpti); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFlushGPUDirectRDMAWritesOpti_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFlushGPUDirectRDMAWritesOpti_3); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFlushGPUDirectRDMAWritesScop); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFlushGPUDirectRDMAWritesTarg); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFlushGPUDirectRDMAWritesTarg_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFlushGPUDirectRDMAWritesToAl); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFlushGPUDirectRDMAWritesToOw); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFormatModeAuto); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFormatModeForced); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFree); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFreeArray); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFreeAsync); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFreeHost); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFreeMipmappedArray); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFuncAttribute); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFuncAttributeClusterDimMustB); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFuncAttributeClusterScheduli); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFuncAttributeMax); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFuncAttributeMaxDynamicShare); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFuncAttributeNonPortableClus); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFuncAttributePreferredShared); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFuncAttributeRequiredCluster); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFuncAttributeRequiredCluster_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFuncAttributeRequiredCluster_3); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFuncAttributes); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFuncAttributes___reduce_cyth); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFuncAttributes___setstate_cy); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFuncAttributes_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFuncCache); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFuncCachePreferEqual); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFuncCachePreferL1); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFuncCachePreferNone); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFuncCachePreferShared); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFuncGetAttributes); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFuncSetAttribute); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFuncSetCacheConfig); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFuncSetSharedMemConfig); Py_CLEAR(clear_module_state->__pyx_n_s_cudaFunction_t); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGLDeviceList); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGLDeviceListAll); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGLDeviceListCurrentFrame); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGLDeviceListNextFrame); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGLGetDevices); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGLMapFlags); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGLMapFlagsNone); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGLMapFlagsReadOnly); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGLMapFlagsWriteDiscard); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGPUDirectRDMAWritesOrdering); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGPUDirectRDMAWritesOrderingA); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGPUDirectRDMAWritesOrderingN); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGPUDirectRDMAWritesOrderingO); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGetChannelDesc); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGetDevice); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGetDeviceCount); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGetDeviceFlags); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGetDeviceProperties); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGetDriverEntryPoint); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGetDriverEntryPointByVersion); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGetDriverEntryPointFlags); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGetErrorName); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGetErrorString); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGetExportTable); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGetKernel); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGetLastError); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGetMipmappedArrayLevel); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGetSurfaceObjectResourceDesc); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGetTextureObjectResourceDesc); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGetTextureObjectResourceView); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGetTextureObjectTextureDesc); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphAddChildGraphNode); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphAddChildGraphNode_local); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphAddDependencies); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphAddDependencies_locals); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphAddDependencies_v2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphAddDependencies_v2_loca); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphAddEmptyNode); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphAddEmptyNode_locals_gen); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphAddEventRecordNode); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphAddEventRecordNode_loca); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphAddEventWaitNode); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphAddEventWaitNode_locals); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphAddExternalSemaphoresSi); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphAddExternalSemaphoresSi_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphAddExternalSemaphoresWa); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphAddExternalSemaphoresWa_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphAddHostNode); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphAddHostNode_locals_gene); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphAddKernelNode); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphAddKernelNode_locals_ge); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphAddMemAllocNode); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphAddMemAllocNode_locals); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphAddMemFreeNode); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphAddMemFreeNode_locals_g); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphAddMemcpyNode); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphAddMemcpyNode1D); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphAddMemcpyNode1D_locals); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphAddMemcpyNode_locals_ge); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphAddMemsetNode); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphAddMemsetNode_locals_ge); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphAddNode); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphAddNode_locals_genexpr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphAddNode_v2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphAddNode_v2_locals_genex); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphChildGraphNodeGetGraph); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphClone); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphCondAssignDefault); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphCondTypeIf); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphCondTypeWhile); Py_CLEAR(clear_module_state->__pyx_kp_u_cudaGraphConditionalHandle); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphConditionalHandleCreate); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphConditionalHandleFlags); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphConditionalHandle_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphConditionalHandle___red); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphConditionalHandle___set); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphConditionalHandle_getPt); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphConditionalNodeType); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphCreate); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphDebugDotFlags); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphDebugDotFlagsConditiona); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphDebugDotFlagsEventNodeP); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphDebugDotFlagsExtSemasSi); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphDebugDotFlagsExtSemasWa); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphDebugDotFlagsHandles); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphDebugDotFlagsHostNodePa); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphDebugDotFlagsKernelNode); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphDebugDotFlagsKernelNode_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphDebugDotFlagsMemcpyNode); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphDebugDotFlagsMemsetNode); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphDebugDotFlagsVerbose); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphDebugDotPrint); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphDependencyType); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphDependencyTypeDefault); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphDependencyTypeProgramma); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphDestroy); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphDestroyNode); Py_CLEAR(clear_module_state->__pyx_kp_u_cudaGraphDeviceNode_t); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphDeviceNode_t_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphDeviceNode_t___reduce_c); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphDeviceNode_t___setstate); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphDeviceNode_t_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphEdgeData); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphEdgeData_st); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphEdgeData_st___reduce_cy); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphEdgeData_st___setstate); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphEdgeData_st_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphEventRecordNodeGetEvent); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphEventRecordNodeSetEvent); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphEventWaitNodeGetEvent); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphEventWaitNodeSetEvent); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphExecChildGraphNodeSetPa); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphExecDestroy); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphExecEventRecordNodeSetE); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphExecEventWaitNodeSetEve); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphExecExternalSemaphoresS); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphExecExternalSemaphoresW); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphExecGetFlags); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphExecHostNodeSetParams); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphExecKernelNodeSetParams); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphExecMemcpyNodeSetParams); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphExecMemcpyNodeSetParams_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphExecMemsetNodeSetParams); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphExecNodeSetParams); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphExecUpdate); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphExecUpdateError); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphExecUpdateErrorAttribut); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphExecUpdateErrorFunction); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphExecUpdateErrorNodeType); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphExecUpdateErrorNotSuppo); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphExecUpdateErrorParamete); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphExecUpdateErrorTopology); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphExecUpdateErrorUnsuppor); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphExecUpdateResult); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphExecUpdateResultInfo); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphExecUpdateResultInfo_st); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphExecUpdateResultInfo_st_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphExecUpdateResultInfo_st_3); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphExecUpdateResultInfo_st_4); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphExecUpdateSuccess); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphExec_t); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphExternalSemaphoresSigna); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphExternalSemaphoresSigna_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphExternalSemaphoresWaitN); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphExternalSemaphoresWaitN_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphGetEdges); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphGetEdges_v2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphGetNodes); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphGetRootNodes); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphHostNodeGetParams); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphHostNodeSetParams); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphInstantiate); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphInstantiateError); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphInstantiateFlagAutoFree); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphInstantiateFlagDeviceLa); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphInstantiateFlagUpload); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphInstantiateFlagUseNodeP); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphInstantiateFlags); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphInstantiateInvalidStruc); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphInstantiateMultipleDevi); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphInstantiateNodeOperatio); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphInstantiateParams); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphInstantiateParams_st); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphInstantiateParams_st_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphInstantiateParams_st_3); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphInstantiateParams_st_ge); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphInstantiateResult); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphInstantiateSuccess); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphInstantiateWithFlags); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphInstantiateWithParams); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphKernelNodeCopyAttribute); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphKernelNodeField); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphKernelNodeFieldEnabled); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphKernelNodeFieldGridDim); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphKernelNodeFieldInvalid); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphKernelNodeFieldParam); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphKernelNodeGetAttribute); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphKernelNodeGetParams); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphKernelNodePortDefault); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphKernelNodePortLaunchCom); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphKernelNodePortProgramma); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphKernelNodeSetAttribute); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphKernelNodeSetParams); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphKernelNodeUpdate); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphKernelNodeUpdate___redu); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphKernelNodeUpdate___sets); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphKernelNodeUpdate_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphLaunch); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphMemAllocNodeGetParams); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphMemAttrReservedMemCurre); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphMemAttrReservedMemHigh); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphMemAttrUsedMemCurrent); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphMemAttrUsedMemHigh); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphMemAttributeType); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphMemFreeNodeGetParams); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphMemcpyNodeGetParams); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphMemcpyNodeSetParams); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphMemcpyNodeSetParams1D); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphMemsetNodeGetParams); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphMemsetNodeSetParams); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphNodeFindInClone); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphNodeGetDependencies); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphNodeGetDependencies_v2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphNodeGetDependentNodes); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphNodeGetDependentNodes_v); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphNodeGetEnabled); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphNodeGetType); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphNodeParams); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphNodeParams___reduce_cyt); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphNodeParams___setstate_c); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphNodeParams_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphNodeSetEnabled); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphNodeSetParams); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphNodeType); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphNodeTypeConditional); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphNodeTypeCount); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphNodeTypeEmpty); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphNodeTypeEventRecord); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphNodeTypeExtSemaphoreSig); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphNodeTypeExtSemaphoreWai); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphNodeTypeGraph); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphNodeTypeHost); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphNodeTypeKernel); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphNodeTypeMemAlloc); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphNodeTypeMemFree); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphNodeTypeMemcpy); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphNodeTypeMemset); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphNodeTypeWaitEvent); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphNode_t); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphReleaseUserObject); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphRemoveDependencies); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphRemoveDependencies_loca); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphRemoveDependencies_v2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphRemoveDependencies_v2_l); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphRetainUserObject); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphUpload); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphUserObjectMove); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraph_t); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphicsCubeFace); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphicsCubeFaceNegativeX); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphicsCubeFaceNegativeY); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphicsCubeFaceNegativeZ); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphicsCubeFacePositiveX); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphicsCubeFacePositiveY); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphicsCubeFacePositiveZ); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphicsEGLRegisterImage); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphicsGLRegisterBuffer); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphicsGLRegisterImage); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphicsMapFlags); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphicsMapFlagsNone); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphicsMapFlagsReadOnly); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphicsMapFlagsWriteDiscard); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphicsMapResources); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphicsRegisterFlags); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphicsRegisterFlagsNone); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphicsRegisterFlagsReadOnl); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphicsRegisterFlagsSurface); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphicsRegisterFlagsTexture); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphicsRegisterFlagsWriteDi); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphicsResourceGetMappedEgl); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphicsResourceGetMappedMip); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphicsResourceGetMappedPoi); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphicsResourceSetMapFlags); Py_CLEAR(clear_module_state->__pyx_kp_u_cudaGraphicsResource_t); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphicsResource_t_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphicsResource_t___reduce); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphicsResource_t___setstat); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphicsResource_t_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphicsSubResourceGetMapped); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphicsUnmapResources); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphicsUnregisterResource); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphicsVDPAURegisterOutputS); Py_CLEAR(clear_module_state->__pyx_n_s_cudaGraphicsVDPAURegisterVideoSu); Py_CLEAR(clear_module_state->__pyx_n_s_cudaHostAlloc); Py_CLEAR(clear_module_state->__pyx_n_s_cudaHostAllocDefault); Py_CLEAR(clear_module_state->__pyx_n_s_cudaHostAllocMapped); Py_CLEAR(clear_module_state->__pyx_n_s_cudaHostAllocPortable); Py_CLEAR(clear_module_state->__pyx_n_s_cudaHostAllocWriteCombined); Py_CLEAR(clear_module_state->__pyx_kp_u_cudaHostFn_t); Py_CLEAR(clear_module_state->__pyx_n_s_cudaHostFn_t_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaHostFn_t___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_cudaHostFn_t___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_cudaHostFn_t_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaHostGetDevicePointer); Py_CLEAR(clear_module_state->__pyx_n_s_cudaHostGetFlags); Py_CLEAR(clear_module_state->__pyx_n_s_cudaHostNodeParams); Py_CLEAR(clear_module_state->__pyx_n_s_cudaHostNodeParamsV2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaHostNodeParamsV2___reduce_cy); Py_CLEAR(clear_module_state->__pyx_n_s_cudaHostNodeParamsV2___setstate); Py_CLEAR(clear_module_state->__pyx_n_s_cudaHostNodeParamsV2_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaHostNodeParams___reduce_cyth); Py_CLEAR(clear_module_state->__pyx_n_s_cudaHostNodeParams___setstate_cy); Py_CLEAR(clear_module_state->__pyx_n_s_cudaHostNodeParams_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaHostRegister); Py_CLEAR(clear_module_state->__pyx_n_s_cudaHostRegisterDefault); Py_CLEAR(clear_module_state->__pyx_n_s_cudaHostRegisterIoMemory); Py_CLEAR(clear_module_state->__pyx_n_s_cudaHostRegisterMapped); Py_CLEAR(clear_module_state->__pyx_n_s_cudaHostRegisterPortable); Py_CLEAR(clear_module_state->__pyx_n_s_cudaHostRegisterReadOnly); Py_CLEAR(clear_module_state->__pyx_n_s_cudaHostUnregister); Py_CLEAR(clear_module_state->__pyx_n_s_cudaImportExternalMemory); Py_CLEAR(clear_module_state->__pyx_n_s_cudaImportExternalSemaphore); Py_CLEAR(clear_module_state->__pyx_n_s_cudaInitDevice); Py_CLEAR(clear_module_state->__pyx_n_s_cudaInitDeviceFlagsAreValid); Py_CLEAR(clear_module_state->__pyx_n_s_cudaInvalidDeviceId); Py_CLEAR(clear_module_state->__pyx_n_s_cudaIpcCloseMemHandle); Py_CLEAR(clear_module_state->__pyx_n_s_cudaIpcEventHandle_st); Py_CLEAR(clear_module_state->__pyx_n_s_cudaIpcEventHandle_st___reduce_c); Py_CLEAR(clear_module_state->__pyx_n_s_cudaIpcEventHandle_st___setstate); Py_CLEAR(clear_module_state->__pyx_n_s_cudaIpcEventHandle_st_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaIpcEventHandle_t); Py_CLEAR(clear_module_state->__pyx_n_s_cudaIpcGetEventHandle); Py_CLEAR(clear_module_state->__pyx_n_s_cudaIpcGetMemHandle); Py_CLEAR(clear_module_state->__pyx_n_s_cudaIpcMemHandle_st); Py_CLEAR(clear_module_state->__pyx_n_s_cudaIpcMemHandle_st___reduce_cyt); Py_CLEAR(clear_module_state->__pyx_n_s_cudaIpcMemHandle_st___setstate_c); Py_CLEAR(clear_module_state->__pyx_n_s_cudaIpcMemHandle_st_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaIpcMemHandle_t); Py_CLEAR(clear_module_state->__pyx_n_s_cudaIpcMemLazyEnablePeerAccess); Py_CLEAR(clear_module_state->__pyx_n_s_cudaIpcOpenEventHandle); Py_CLEAR(clear_module_state->__pyx_n_s_cudaIpcOpenMemHandle); Py_CLEAR(clear_module_state->__pyx_n_s_cudaKernelNodeAttrID); Py_CLEAR(clear_module_state->__pyx_n_s_cudaKernelNodeAttrValue); Py_CLEAR(clear_module_state->__pyx_n_s_cudaKernelNodeAttributeAccessPol); Py_CLEAR(clear_module_state->__pyx_n_s_cudaKernelNodeAttributeClusterDi); Py_CLEAR(clear_module_state->__pyx_n_s_cudaKernelNodeAttributeClusterSc); Py_CLEAR(clear_module_state->__pyx_n_s_cudaKernelNodeAttributeCooperati); Py_CLEAR(clear_module_state->__pyx_n_s_cudaKernelNodeAttributeDeviceUpd); Py_CLEAR(clear_module_state->__pyx_n_s_cudaKernelNodeAttributeMemSyncDo); Py_CLEAR(clear_module_state->__pyx_n_s_cudaKernelNodeAttributeMemSyncDo_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaKernelNodeAttributePreferred); Py_CLEAR(clear_module_state->__pyx_n_s_cudaKernelNodeAttributePriority); Py_CLEAR(clear_module_state->__pyx_n_s_cudaKernelNodeParams); Py_CLEAR(clear_module_state->__pyx_n_s_cudaKernelNodeParamsV2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaKernelNodeParamsV2___reduce); Py_CLEAR(clear_module_state->__pyx_n_s_cudaKernelNodeParamsV2___setstat); Py_CLEAR(clear_module_state->__pyx_n_s_cudaKernelNodeParamsV2_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaKernelNodeParams___reduce_cy); Py_CLEAR(clear_module_state->__pyx_n_s_cudaKernelNodeParams___setstate); Py_CLEAR(clear_module_state->__pyx_n_s_cudaKernelNodeParams_getPtr); Py_CLEAR(clear_module_state->__pyx_kp_u_cudaKernel_t); Py_CLEAR(clear_module_state->__pyx_n_s_cudaKernel_t_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaKernel_t___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_cudaKernel_t___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_cudaKernel_t_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLaunchAttribute); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLaunchAttributeAccessPolicyW); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLaunchAttributeClusterDimens); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLaunchAttributeClusterSchedu); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLaunchAttributeCooperative); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLaunchAttributeDeviceUpdatab); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLaunchAttributeID); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLaunchAttributeIgnore); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLaunchAttributeLaunchComplet); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLaunchAttributeMemSyncDomain); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLaunchAttributeMemSyncDomain_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLaunchAttributePreferredShar); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLaunchAttributePriority); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLaunchAttributeProgrammaticE); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLaunchAttributeProgrammaticS); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLaunchAttributeSynchronizati); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLaunchAttributeValue); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLaunchAttributeValue___reduc); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLaunchAttributeValue___setst); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLaunchAttributeValue_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLaunchAttribute_st); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLaunchAttribute_st___reduce); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLaunchAttribute_st___setstat); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLaunchAttribute_st_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLaunchHostFunc); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLaunchMemSyncDomain); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLaunchMemSyncDomainDefault); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLaunchMemSyncDomainMap); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLaunchMemSyncDomainMap_st); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLaunchMemSyncDomainMap_st_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLaunchMemSyncDomainMap_st_3); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLaunchMemSyncDomainMap_st_ge); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLaunchMemSyncDomainRemote); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLimit); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLimitDevRuntimePendingLaunch); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLimitDevRuntimeSyncDepth); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLimitMallocHeapSize); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLimitMaxL2FetchGranularity); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLimitPersistingL2CacheSize); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLimitPrintfFifoSize); Py_CLEAR(clear_module_state->__pyx_n_s_cudaLimitStackSize); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMalloc); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMalloc3D); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMalloc3DArray); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMallocArray); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMallocAsync); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMallocFromPoolAsync); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMallocHost); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMallocManaged); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMallocMipmappedArray); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMallocPitch); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemAccessDesc); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemAccessDesc___reduce_cytho); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemAccessDesc___setstate_cyt); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemAccessDesc_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemAccessFlags); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemAccessFlagsProtNone); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemAccessFlagsProtRead); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemAccessFlagsProtReadWrite); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemAdvise); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemAdviseSetAccessedBy); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemAdviseSetPreferredLocatio); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemAdviseSetReadMostly); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemAdviseUnsetAccessedBy); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemAdviseUnsetPreferredLocat); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemAdviseUnsetReadMostly); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemAdvise_v2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemAllocNodeParams); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemAllocNodeParamsV2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemAllocNodeParamsV2___reduc); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemAllocNodeParamsV2___setst); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemAllocNodeParamsV2_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemAllocNodeParams___reduce); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemAllocNodeParams___setstat); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemAllocNodeParams_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemAllocationHandleType); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemAllocationType); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemAllocationTypeInvalid); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemAllocationTypeMax); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemAllocationTypePinned); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemAttachGlobal); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemAttachHost); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemAttachSingle); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemFabricHandle_st); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemFabricHandle_st___reduce); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemFabricHandle_st___setstat); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemFabricHandle_st_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemFabricHandle_t); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemFreeNodeParams); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemFreeNodeParams___reduce_c); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemFreeNodeParams___setstate); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemFreeNodeParams_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemGetInfo); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemHandleTypeFabric); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemHandleTypeNone); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemHandleTypePosixFileDescri); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemHandleTypeWin32); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemHandleTypeWin32Kmt); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemLocation); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemLocationType); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemLocationTypeDevice); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemLocationTypeHost); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemLocationTypeHostNuma); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemLocationTypeHostNumaCurre); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemLocationTypeInvalid); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemLocation___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemLocation___setstate_cytho); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemLocation_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemPoolAttr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemPoolAttrReleaseThreshold); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemPoolAttrReservedMemCurren); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemPoolAttrReservedMemHigh); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemPoolAttrUsedMemCurrent); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemPoolAttrUsedMemHigh); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemPoolCreate); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemPoolDestroy); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemPoolExportPointer); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemPoolExportToShareableHand); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemPoolGetAccess); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemPoolGetAttribute); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemPoolImportFromShareableHa); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemPoolImportPointer); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemPoolProps); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemPoolProps___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemPoolProps___setstate_cyth); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemPoolProps_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemPoolPtrExportData); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemPoolPtrExportData___reduc); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemPoolPtrExportData___setst); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemPoolPtrExportData_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemPoolReuseAllowInternalDep); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemPoolReuseAllowOpportunist); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemPoolReuseFollowEventDepen); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemPoolSetAccess); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemPoolSetAccess_locals_gene); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemPoolSetAttribute); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemPoolTrimTo); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemPool_t); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemPrefetchAsync); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemPrefetchAsync_v2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemRangeAttribute); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemRangeAttributeAccessedBy); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemRangeAttributeLastPrefetc); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemRangeAttributeLastPrefetc_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemRangeAttributeLastPrefetc_3); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemRangeAttributePreferredLo); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemRangeAttributePreferredLo_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemRangeAttributePreferredLo_3); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemRangeAttributeReadMostly); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemRangeGetAttribute); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemRangeGetAttributes); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemRangeGetAttributes_locals); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpy); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpy2D); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpy2DArrayToArray); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpy2DAsync); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpy2DFromArray); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpy2DFromArrayAsync); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpy2DToArray); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpy2DToArrayAsync); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpy3D); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpy3DAsync); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpy3DParms); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpy3DParms___reduce_cytho); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpy3DParms___setstate_cyt); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpy3DParms_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpy3DPeer); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpy3DPeerAsync); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpy3DPeerParms); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpy3DPeerParms___reduce_c); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpy3DPeerParms___setstate); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpy3DPeerParms_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpyArrayToArray); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpyAsync); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpyDefault); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpyDeviceToDevice); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpyDeviceToHost); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpyFromArray); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpyFromArrayAsync); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpyHostToDevice); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpyHostToHost); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpyKind); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpyNodeParams); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpyNodeParams___reduce_cy); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpyNodeParams___setstate); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpyNodeParams_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpyPeer); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpyPeerAsync); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpyToArray); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemcpyToArrayAsync); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemoryAdvise); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemoryType); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemoryTypeDevice); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemoryTypeHost); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemoryTypeManaged); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemoryTypeUnregistered); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemset); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemset2D); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemset2DAsync); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemset3D); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemset3DAsync); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemsetAsync); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemsetParams); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemsetParamsV2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemsetParamsV2___reduce_cyth); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemsetParamsV2___setstate_cy); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemsetParamsV2_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemsetParams___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemsetParams___setstate_cyth); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMemsetParams_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMipmappedArrayGetMemoryRequi); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMipmappedArrayGetSparsePrope); Py_CLEAR(clear_module_state->__pyx_kp_u_cudaMipmappedArray_const_t); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMipmappedArray_const_t_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMipmappedArray_const_t___red); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMipmappedArray_const_t___set); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMipmappedArray_const_t_getPt); Py_CLEAR(clear_module_state->__pyx_kp_u_cudaMipmappedArray_t); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMipmappedArray_t_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMipmappedArray_t___reduce_cy); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMipmappedArray_t___setstate); Py_CLEAR(clear_module_state->__pyx_n_s_cudaMipmappedArray_t_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaNvSciSyncAttrSignal); Py_CLEAR(clear_module_state->__pyx_n_s_cudaNvSciSyncAttrWait); Py_CLEAR(clear_module_state->__pyx_n_s_cudaOccupancyAvailableDynamicSMe); Py_CLEAR(clear_module_state->__pyx_n_s_cudaOccupancyDefault); Py_CLEAR(clear_module_state->__pyx_n_s_cudaOccupancyDisableCachingOverr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaOccupancyMaxActiveBlocksPerM); Py_CLEAR(clear_module_state->__pyx_n_s_cudaOccupancyMaxActiveBlocksPerM_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaPeekAtLastError); Py_CLEAR(clear_module_state->__pyx_n_s_cudaPeerAccessDefault); Py_CLEAR(clear_module_state->__pyx_n_s_cudaPitchedPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaPitchedPtr___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_cudaPitchedPtr___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_cudaPitchedPtr_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaPointerAttributes); Py_CLEAR(clear_module_state->__pyx_n_s_cudaPointerAttributes___reduce_c); Py_CLEAR(clear_module_state->__pyx_n_s_cudaPointerAttributes___setstate); Py_CLEAR(clear_module_state->__pyx_n_s_cudaPointerAttributes_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaPointerGetAttributes); Py_CLEAR(clear_module_state->__pyx_n_s_cudaPos); Py_CLEAR(clear_module_state->__pyx_n_s_cudaPos___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_cudaPos___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_cudaPos_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaProfilerStart); Py_CLEAR(clear_module_state->__pyx_n_s_cudaProfilerStop); Py_CLEAR(clear_module_state->__pyx_n_s_cudaReadModeElementType); Py_CLEAR(clear_module_state->__pyx_n_s_cudaReadModeNormalizedFloat); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResViewFormatFloat1); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResViewFormatFloat2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResViewFormatFloat4); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResViewFormatHalf1); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResViewFormatHalf2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResViewFormatHalf4); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResViewFormatNone); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResViewFormatSignedBlockComp); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResViewFormatSignedBlockComp_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResViewFormatSignedBlockComp_3); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResViewFormatSignedChar1); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResViewFormatSignedChar2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResViewFormatSignedChar4); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResViewFormatSignedInt1); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResViewFormatSignedInt2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResViewFormatSignedInt4); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResViewFormatSignedShort1); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResViewFormatSignedShort2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResViewFormatSignedShort4); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResViewFormatUnsignedBlockCo); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResViewFormatUnsignedBlockCo_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResViewFormatUnsignedBlockCo_3); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResViewFormatUnsignedBlockCo_4); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResViewFormatUnsignedBlockCo_5); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResViewFormatUnsignedBlockCo_6); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResViewFormatUnsignedBlockCo_7); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResViewFormatUnsignedChar1); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResViewFormatUnsignedChar2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResViewFormatUnsignedChar4); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResViewFormatUnsignedInt1); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResViewFormatUnsignedInt2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResViewFormatUnsignedInt4); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResViewFormatUnsignedShort1); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResViewFormatUnsignedShort2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResViewFormatUnsignedShort4); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResourceDesc); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResourceDesc___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResourceDesc___setstate_cyth); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResourceDesc_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResourceType); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResourceTypeArray); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResourceTypeLinear); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResourceTypeMipmappedArray); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResourceTypePitch2D); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResourceViewDesc); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResourceViewDesc___reduce_cy); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResourceViewDesc___setstate); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResourceViewDesc_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaResourceViewFormat); Py_CLEAR(clear_module_state->__pyx_n_s_cudaRoundMinInf); Py_CLEAR(clear_module_state->__pyx_n_s_cudaRoundMode); Py_CLEAR(clear_module_state->__pyx_n_s_cudaRoundNearest); Py_CLEAR(clear_module_state->__pyx_n_s_cudaRoundPosInf); Py_CLEAR(clear_module_state->__pyx_n_s_cudaRoundZero); Py_CLEAR(clear_module_state->__pyx_n_s_cudaRuntimeGetVersion); Py_CLEAR(clear_module_state->__pyx_n_s_cudaSetDevice); Py_CLEAR(clear_module_state->__pyx_n_s_cudaSetDeviceFlags); Py_CLEAR(clear_module_state->__pyx_kp_u_cudaSetDevice_line_14584); Py_CLEAR(clear_module_state->__pyx_n_s_cudaSharedCarveout); Py_CLEAR(clear_module_state->__pyx_n_s_cudaSharedMemBankSizeDefault); Py_CLEAR(clear_module_state->__pyx_n_s_cudaSharedMemBankSizeEightByte); Py_CLEAR(clear_module_state->__pyx_n_s_cudaSharedMemBankSizeFourByte); Py_CLEAR(clear_module_state->__pyx_n_s_cudaSharedMemConfig); Py_CLEAR(clear_module_state->__pyx_n_s_cudaSharedmemCarveoutDefault); Py_CLEAR(clear_module_state->__pyx_n_s_cudaSharedmemCarveoutMaxL1); Py_CLEAR(clear_module_state->__pyx_n_s_cudaSharedmemCarveoutMaxShared); Py_CLEAR(clear_module_state->__pyx_n_s_cudaSignalExternalSemaphoresAsyn); Py_CLEAR(clear_module_state->__pyx_n_s_cudaSignalExternalSemaphoresAsyn_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamAddCallback); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamAddCaptureDependencies); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamAttachMemAsync); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamAttrID); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamAttrValue); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamAttributeAccessPolicyW); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamAttributeMemSyncDomain); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamAttributeMemSyncDomain_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamAttributePriority); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamAttributeSynchronizati); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamBeginCapture); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamBeginCaptureToGraph); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamBeginCaptureToGraph_lo); Py_CLEAR(clear_module_state->__pyx_kp_u_cudaStreamCallback_t); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamCallback_t_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamCallback_t___reduce_cy); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamCallback_t___setstate); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamCallback_t_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamCaptureMode); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamCaptureModeGlobal); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamCaptureModeRelaxed); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamCaptureModeThreadLocal); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamCaptureStatus); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamCaptureStatusActive); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamCaptureStatusInvalidat); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamCaptureStatusNone); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamCopyAttributes); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamCreate); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamCreateWithFlags); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamCreateWithPriority); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamDefault); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamDestroy); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamEndCapture); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamGetAttribute); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamGetCaptureInfo); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamGetCaptureInfo_v3); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamGetFlags); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamGetId); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamGetPriority); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamIsCapturing); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamLegacy); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamNonBlocking); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamPerThread); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamQuery); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamSetAttribute); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamSetCaptureDependencies); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamSynchronize); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamUpdateCaptureDependenc); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamUpdateCaptureDependenc_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamUpdateCaptureDependenc_3); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamUpdateCaptureDependenc_4); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamUpdateCaptureDependenc_5); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStreamWaitEvent); Py_CLEAR(clear_module_state->__pyx_n_s_cudaStream_t); Py_CLEAR(clear_module_state->__pyx_n_s_cudaSuccess); Py_CLEAR(clear_module_state->__pyx_n_s_cudaSurfaceBoundaryMode); Py_CLEAR(clear_module_state->__pyx_n_s_cudaSurfaceFormatMode); Py_CLEAR(clear_module_state->__pyx_kp_u_cudaSurfaceObject_t); Py_CLEAR(clear_module_state->__pyx_n_s_cudaSurfaceObject_t_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaSurfaceObject_t___reduce_cyt); Py_CLEAR(clear_module_state->__pyx_n_s_cudaSurfaceObject_t___setstate_c); Py_CLEAR(clear_module_state->__pyx_n_s_cudaSurfaceObject_t_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaSurfaceType1D); Py_CLEAR(clear_module_state->__pyx_n_s_cudaSurfaceType1DLayered); Py_CLEAR(clear_module_state->__pyx_n_s_cudaSurfaceType2D); Py_CLEAR(clear_module_state->__pyx_n_s_cudaSurfaceType2DLayered); Py_CLEAR(clear_module_state->__pyx_n_s_cudaSurfaceType3D); Py_CLEAR(clear_module_state->__pyx_n_s_cudaSurfaceTypeCubemap); Py_CLEAR(clear_module_state->__pyx_n_s_cudaSurfaceTypeCubemapLayered); Py_CLEAR(clear_module_state->__pyx_n_s_cudaSyncPolicyAuto); Py_CLEAR(clear_module_state->__pyx_n_s_cudaSyncPolicyBlockingSync); Py_CLEAR(clear_module_state->__pyx_n_s_cudaSyncPolicySpin); Py_CLEAR(clear_module_state->__pyx_n_s_cudaSyncPolicyYield); Py_CLEAR(clear_module_state->__pyx_n_s_cudaSynchronizationPolicy); Py_CLEAR(clear_module_state->__pyx_n_s_cudaTextureAddressMode); Py_CLEAR(clear_module_state->__pyx_n_s_cudaTextureDesc); Py_CLEAR(clear_module_state->__pyx_n_s_cudaTextureDesc___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_cudaTextureDesc___setstate_cytho); Py_CLEAR(clear_module_state->__pyx_n_s_cudaTextureDesc_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaTextureFilterMode); Py_CLEAR(clear_module_state->__pyx_kp_u_cudaTextureObject_t); Py_CLEAR(clear_module_state->__pyx_n_s_cudaTextureObject_t_2); Py_CLEAR(clear_module_state->__pyx_n_s_cudaTextureObject_t___reduce_cyt); Py_CLEAR(clear_module_state->__pyx_n_s_cudaTextureObject_t___setstate_c); Py_CLEAR(clear_module_state->__pyx_n_s_cudaTextureObject_t_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_cudaTextureReadMode); Py_CLEAR(clear_module_state->__pyx_n_s_cudaTextureType1D); Py_CLEAR(clear_module_state->__pyx_n_s_cudaTextureType1DLayered); Py_CLEAR(clear_module_state->__pyx_n_s_cudaTextureType2D); Py_CLEAR(clear_module_state->__pyx_n_s_cudaTextureType2DLayered); Py_CLEAR(clear_module_state->__pyx_n_s_cudaTextureType3D); Py_CLEAR(clear_module_state->__pyx_n_s_cudaTextureTypeCubemap); Py_CLEAR(clear_module_state->__pyx_n_s_cudaTextureTypeCubemapLayered); Py_CLEAR(clear_module_state->__pyx_n_s_cudaThreadExchangeStreamCaptureM); Py_CLEAR(clear_module_state->__pyx_n_s_cudaUUID_t); Py_CLEAR(clear_module_state->__pyx_n_s_cudaUserObjectCreate); Py_CLEAR(clear_module_state->__pyx_n_s_cudaUserObjectFlags); Py_CLEAR(clear_module_state->__pyx_n_s_cudaUserObjectNoDestructorSync); Py_CLEAR(clear_module_state->__pyx_n_s_cudaUserObjectRelease); Py_CLEAR(clear_module_state->__pyx_n_s_cudaUserObjectRetain); Py_CLEAR(clear_module_state->__pyx_n_s_cudaUserObjectRetainFlags); Py_CLEAR(clear_module_state->__pyx_n_s_cudaUserObject_t); Py_CLEAR(clear_module_state->__pyx_n_s_cudaVDPAUGetDevice); Py_CLEAR(clear_module_state->__pyx_n_s_cudaVDPAUSetVDPAUDevice); Py_CLEAR(clear_module_state->__pyx_n_s_cudaVersion); Py_CLEAR(clear_module_state->__pyx_n_s_cudaWaitExternalSemaphoresAsync); Py_CLEAR(clear_module_state->__pyx_n_s_cudaWaitExternalSemaphoresAsync_2); Py_CLEAR(clear_module_state->__pyx_n_s_cuda_cuda); Py_CLEAR(clear_module_state->__pyx_n_s_cuda_cudart); Py_CLEAR(clear_module_state->__pyx_kp_s_cuda_cudart_pyx); Py_CLEAR(clear_module_state->__pyx_n_s_cuserData); Py_CLEAR(clear_module_state->__pyx_n_s_cuserData_ptr); Py_CLEAR(clear_module_state->__pyx_n_s_cvalue); Py_CLEAR(clear_module_state->__pyx_n_s_cvalue_ptr); Py_CLEAR(clear_module_state->__pyx_n_s_cvdpDevice); Py_CLEAR(clear_module_state->__pyx_n_s_cvdpGetProcAddress); Py_CLEAR(clear_module_state->__pyx_n_s_cvdpSurface); Py_CLEAR(clear_module_state->__pyx_n_s_cvoidStarHelper_ptr); Py_CLEAR(clear_module_state->__pyx_n_s_cwidth); Py_CLEAR(clear_module_state->__pyx_n_s_d); Py_CLEAR(clear_module_state->__pyx_n_s_dataSize); Py_CLEAR(clear_module_state->__pyx_n_s_dataSizes); Py_CLEAR(clear_module_state->__pyx_n_s_decode); Py_CLEAR(clear_module_state->__pyx_kp_u_default); Py_CLEAR(clear_module_state->__pyx_n_s_defaultLaunchValue); Py_CLEAR(clear_module_state->__pyx_n_s_default_2); Py_CLEAR(clear_module_state->__pyx_kp_u_default__ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_deferredMappingCudaArraySupporte); Py_CLEAR(clear_module_state->__pyx_n_s_deferredMappingCudaArraySupporte_2); Py_CLEAR(clear_module_state->__pyx_kp_u_deferredMappingCudaArraySupporte_3); Py_CLEAR(clear_module_state->__pyx_n_s_dependencies); Py_CLEAR(clear_module_state->__pyx_n_s_dependencyData); Py_CLEAR(clear_module_state->__pyx_kp_u_depth); Py_CLEAR(clear_module_state->__pyx_n_s_depth_2); Py_CLEAR(clear_module_state->__pyx_kp_u_depth_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_desc); Py_CLEAR(clear_module_state->__pyx_n_s_descList); Py_CLEAR(clear_module_state->__pyx_n_s_desc_2); Py_CLEAR(clear_module_state->__pyx_kp_u_desc_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_destroy); Py_CLEAR(clear_module_state->__pyx_kp_u_devNode); Py_CLEAR(clear_module_state->__pyx_n_s_devNode_2); Py_CLEAR(clear_module_state->__pyx_kp_u_devNode_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_devPtr); Py_CLEAR(clear_module_state->__pyx_n_s_devPtr_2); Py_CLEAR(clear_module_state->__pyx_kp_u_devPtr_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_device); Py_CLEAR(clear_module_state->__pyx_n_s_deviceFlags); Py_CLEAR(clear_module_state->__pyx_n_s_deviceList); Py_CLEAR(clear_module_state->__pyx_kp_u_deviceOverlap); Py_CLEAR(clear_module_state->__pyx_n_s_deviceOverlap_2); Py_CLEAR(clear_module_state->__pyx_kp_u_deviceOverlap_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_devicePointer); Py_CLEAR(clear_module_state->__pyx_n_s_devicePointer_2); Py_CLEAR(clear_module_state->__pyx_kp_u_devicePointer_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_deviceUpdatable); Py_CLEAR(clear_module_state->__pyx_kp_u_deviceUpdatableKernelNode); Py_CLEAR(clear_module_state->__pyx_n_s_deviceUpdatableKernelNode_2); Py_CLEAR(clear_module_state->__pyx_kp_u_deviceUpdatableKernelNode_ValueE); Py_CLEAR(clear_module_state->__pyx_n_s_deviceUpdatable_2); Py_CLEAR(clear_module_state->__pyx_kp_u_deviceUpdatable_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_device_2); Py_CLEAR(clear_module_state->__pyx_kp_u_device_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_dict); Py_CLEAR(clear_module_state->__pyx_n_s_dim3); Py_CLEAR(clear_module_state->__pyx_n_s_dim3___reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_dim3___setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_dim3_getPtr); Py_CLEAR(clear_module_state->__pyx_kp_u_directManagedMemAccessFromHost); Py_CLEAR(clear_module_state->__pyx_n_s_directManagedMemAccessFromHost_2); Py_CLEAR(clear_module_state->__pyx_kp_u_directManagedMemAccessFromHost_V); Py_CLEAR(clear_module_state->__pyx_kp_u_disable); Py_CLEAR(clear_module_state->__pyx_kp_u_disableTrilinearOptimization); Py_CLEAR(clear_module_state->__pyx_n_s_disableTrilinearOptimization_2); Py_CLEAR(clear_module_state->__pyx_kp_u_disableTrilinearOptimization_Val); Py_CLEAR(clear_module_state->__pyx_n_s_doc); Py_CLEAR(clear_module_state->__pyx_n_s_dpitch); Py_CLEAR(clear_module_state->__pyx_kp_u_dptr); Py_CLEAR(clear_module_state->__pyx_n_s_dptr_2); Py_CLEAR(clear_module_state->__pyx_kp_u_dptr_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_dptr_out); Py_CLEAR(clear_module_state->__pyx_n_s_driverStatus); Py_CLEAR(clear_module_state->__pyx_n_s_driverVersion); Py_CLEAR(clear_module_state->__pyx_kp_u_dst); Py_CLEAR(clear_module_state->__pyx_kp_u_dstArray); Py_CLEAR(clear_module_state->__pyx_n_s_dstArray_2); Py_CLEAR(clear_module_state->__pyx_kp_u_dstArray_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_dstDevice); Py_CLEAR(clear_module_state->__pyx_n_s_dstDevice_2); Py_CLEAR(clear_module_state->__pyx_kp_u_dstDevice_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_dstPos); Py_CLEAR(clear_module_state->__pyx_n_s_dstPos_2); Py_CLEAR(clear_module_state->__pyx_kp_u_dstPos_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_dstPtr); Py_CLEAR(clear_module_state->__pyx_n_s_dstPtr_2); Py_CLEAR(clear_module_state->__pyx_kp_u_dstPtr_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_dst_2); Py_CLEAR(clear_module_state->__pyx_kp_u_dst_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_dynamicSMemSize); Py_CLEAR(clear_module_state->__pyx_n_s_dynamicSmemSize); Py_CLEAR(clear_module_state->__pyx_n_s_edgeData); Py_CLEAR(clear_module_state->__pyx_kp_u_eglColorFormat); Py_CLEAR(clear_module_state->__pyx_n_s_eglColorFormat_2); Py_CLEAR(clear_module_state->__pyx_kp_u_eglColorFormat_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_eglFrame); Py_CLEAR(clear_module_state->__pyx_n_s_eglStream); Py_CLEAR(clear_module_state->__pyx_n_s_eglSync); Py_CLEAR(clear_module_state->__pyx_n_s_eglframe); Py_CLEAR(clear_module_state->__pyx_kp_u_elementSize); Py_CLEAR(clear_module_state->__pyx_n_s_elementSize_2); Py_CLEAR(clear_module_state->__pyx_kp_u_elementSize_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_enable); Py_CLEAR(clear_module_state->__pyx_n_s_end); Py_CLEAR(clear_module_state->__pyx_n_s_entryFuncAddr); Py_CLEAR(clear_module_state->__pyx_n_s_enum); Py_CLEAR(clear_module_state->__pyx_n_s_enumerate); Py_CLEAR(clear_module_state->__pyx_n_s_err); Py_CLEAR(clear_module_state->__pyx_kp_u_errNode_out); Py_CLEAR(clear_module_state->__pyx_n_s_errNode_out_2); Py_CLEAR(clear_module_state->__pyx_kp_u_errNode_out_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_error); Py_CLEAR(clear_module_state->__pyx_kp_u_errorFromNode); Py_CLEAR(clear_module_state->__pyx_n_s_errorFromNode_2); Py_CLEAR(clear_module_state->__pyx_kp_u_errorFromNode_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_errorNode); Py_CLEAR(clear_module_state->__pyx_n_s_errorNode_2); Py_CLEAR(clear_module_state->__pyx_kp_u_errorNode_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_event); Py_CLEAR(clear_module_state->__pyx_kp_u_eventRecord); Py_CLEAR(clear_module_state->__pyx_n_s_eventRecord_2); Py_CLEAR(clear_module_state->__pyx_kp_u_eventRecord_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_eventWait); Py_CLEAR(clear_module_state->__pyx_n_s_eventWait_2); Py_CLEAR(clear_module_state->__pyx_kp_u_eventWait_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_event_2); Py_CLEAR(clear_module_state->__pyx_kp_u_event_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_event_out); Py_CLEAR(clear_module_state->__pyx_n_s_exportData); Py_CLEAR(clear_module_state->__pyx_n_s_extMem); Py_CLEAR(clear_module_state->__pyx_n_s_extMem_out); Py_CLEAR(clear_module_state->__pyx_n_s_extSem); Py_CLEAR(clear_module_state->__pyx_kp_u_extSemArray); Py_CLEAR(clear_module_state->__pyx_n_s_extSemArray_2); Py_CLEAR(clear_module_state->__pyx_kp_u_extSemArray_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_extSemSignal); Py_CLEAR(clear_module_state->__pyx_n_s_extSemSignal_2); Py_CLEAR(clear_module_state->__pyx_kp_u_extSemSignal_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_extSemWait); Py_CLEAR(clear_module_state->__pyx_n_s_extSemWait_2); Py_CLEAR(clear_module_state->__pyx_kp_u_extSemWait_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_extSem_out); Py_CLEAR(clear_module_state->__pyx_kp_u_extent); Py_CLEAR(clear_module_state->__pyx_n_s_extent_2); Py_CLEAR(clear_module_state->__pyx_kp_u_extent_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_extra); Py_CLEAR(clear_module_state->__pyx_n_s_extra_2); Py_CLEAR(clear_module_state->__pyx_kp_u_extra_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_f); Py_CLEAR(clear_module_state->__pyx_n_s_f_2); Py_CLEAR(clear_module_state->__pyx_kp_u_f_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_fd); Py_CLEAR(clear_module_state->__pyx_n_s_fd_2); Py_CLEAR(clear_module_state->__pyx_kp_u_fd_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_fence); Py_CLEAR(clear_module_state->__pyx_n_s_fence_2); Py_CLEAR(clear_module_state->__pyx_kp_u_fence_3); Py_CLEAR(clear_module_state->__pyx_kp_u_fence_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_field); Py_CLEAR(clear_module_state->__pyx_n_s_field_2); Py_CLEAR(clear_module_state->__pyx_kp_u_field_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_filterMode); Py_CLEAR(clear_module_state->__pyx_n_s_filterMode_2); Py_CLEAR(clear_module_state->__pyx_kp_u_filterMode_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_firstLayer); Py_CLEAR(clear_module_state->__pyx_n_s_firstLayer_2); Py_CLEAR(clear_module_state->__pyx_kp_u_firstLayer_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_firstMipmapLevel); Py_CLEAR(clear_module_state->__pyx_n_s_firstMipmapLevel_2); Py_CLEAR(clear_module_state->__pyx_kp_u_firstMipmapLevel_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_flags); Py_CLEAR(clear_module_state->__pyx_n_s_flags_2); Py_CLEAR(clear_module_state->__pyx_kp_u_flags_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_fmtDesc); Py_CLEAR(clear_module_state->__pyx_kp_u_fn); Py_CLEAR(clear_module_state->__pyx_n_s_fn_2); Py_CLEAR(clear_module_state->__pyx_kp_u_fn_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_format); Py_CLEAR(clear_module_state->__pyx_kp_u_formatDesc); Py_CLEAR(clear_module_state->__pyx_n_s_formatDesc_2); Py_CLEAR(clear_module_state->__pyx_kp_u_formatDesc_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_format_2); Py_CLEAR(clear_module_state->__pyx_kp_u_format_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_frame); Py_CLEAR(clear_module_state->__pyx_kp_u_frameType); Py_CLEAR(clear_module_state->__pyx_n_s_frameType_2); Py_CLEAR(clear_module_state->__pyx_kp_u_frameType_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_frame_2); Py_CLEAR(clear_module_state->__pyx_kp_u_frame_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_free); Py_CLEAR(clear_module_state->__pyx_n_s_free_2); Py_CLEAR(clear_module_state->__pyx_kp_u_free_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_from); Py_CLEAR(clear_module_state->__pyx_kp_u_from_port); Py_CLEAR(clear_module_state->__pyx_n_s_from_port_2); Py_CLEAR(clear_module_state->__pyx_kp_u_from_port_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_func); Py_CLEAR(clear_module_state->__pyx_n_s_funcPtr); Py_CLEAR(clear_module_state->__pyx_n_s_func_2); Py_CLEAR(clear_module_state->__pyx_kp_u_func_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_gc); Py_CLEAR(clear_module_state->__pyx_n_s_genexpr); Py_CLEAR(clear_module_state->__pyx_n_s_getLocalRuntimeVersion); Py_CLEAR(clear_module_state->__pyx_n_s_getPtr); Py_CLEAR(clear_module_state->__pyx_n_s_getstate); Py_CLEAR(clear_module_state->__pyx_kp_u_globalL1CacheSupported); Py_CLEAR(clear_module_state->__pyx_n_s_globalL1CacheSupported_2); Py_CLEAR(clear_module_state->__pyx_kp_u_globalL1CacheSupported_ValueErro); Py_CLEAR(clear_module_state->__pyx_kp_u_gpuDirectRDMAFlushWritesOptions); Py_CLEAR(clear_module_state->__pyx_n_s_gpuDirectRDMAFlushWritesOptions_2); Py_CLEAR(clear_module_state->__pyx_kp_u_gpuDirectRDMAFlushWritesOptions_3); Py_CLEAR(clear_module_state->__pyx_kp_u_gpuDirectRDMASupported); Py_CLEAR(clear_module_state->__pyx_n_s_gpuDirectRDMASupported_2); Py_CLEAR(clear_module_state->__pyx_kp_u_gpuDirectRDMASupported_ValueErro); Py_CLEAR(clear_module_state->__pyx_kp_u_gpuDirectRDMAWritesOrdering); Py_CLEAR(clear_module_state->__pyx_n_s_gpuDirectRDMAWritesOrdering_2); Py_CLEAR(clear_module_state->__pyx_kp_u_gpuDirectRDMAWritesOrdering_Valu); Py_CLEAR(clear_module_state->__pyx_kp_u_graph); Py_CLEAR(clear_module_state->__pyx_n_s_graphExec); Py_CLEAR(clear_module_state->__pyx_n_s_graph_2); Py_CLEAR(clear_module_state->__pyx_kp_u_graph_3); Py_CLEAR(clear_module_state->__pyx_kp_u_graph_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_graph_length); Py_CLEAR(clear_module_state->__pyx_n_s_graph_out); Py_CLEAR(clear_module_state->__pyx_n_s_greatestPriority); Py_CLEAR(clear_module_state->__pyx_kp_u_gridDim); Py_CLEAR(clear_module_state->__pyx_n_s_gridDim_2); Py_CLEAR(clear_module_state->__pyx_kp_u_gridDim_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_h); Py_CLEAR(clear_module_state->__pyx_n_s_hArray); Py_CLEAR(clear_module_state->__pyx_n_s_hDst); Py_CLEAR(clear_module_state->__pyx_n_s_hGraph); Py_CLEAR(clear_module_state->__pyx_n_s_hGraphExec); Py_CLEAR(clear_module_state->__pyx_n_s_hNode); Py_CLEAR(clear_module_state->__pyx_n_s_hOffset); Py_CLEAR(clear_module_state->__pyx_n_s_hOffsetDst); Py_CLEAR(clear_module_state->__pyx_n_s_hOffsetSrc); Py_CLEAR(clear_module_state->__pyx_n_s_hSrc); Py_CLEAR(clear_module_state->__pyx_n_s_hStream); Py_CLEAR(clear_module_state->__pyx_kp_u_handle); Py_CLEAR(clear_module_state->__pyx_n_s_handleType); Py_CLEAR(clear_module_state->__pyx_kp_u_handleTypes); Py_CLEAR(clear_module_state->__pyx_n_s_handleTypes_2); Py_CLEAR(clear_module_state->__pyx_kp_u_handleTypes_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_handle_2); Py_CLEAR(clear_module_state->__pyx_kp_u_handle_3); Py_CLEAR(clear_module_state->__pyx_kp_u_handle_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_height); Py_CLEAR(clear_module_state->__pyx_n_s_height_2); Py_CLEAR(clear_module_state->__pyx_kp_u_height_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_hex); Py_CLEAR(clear_module_state->__pyx_kp_u_hitProp); Py_CLEAR(clear_module_state->__pyx_n_s_hitProp_2); Py_CLEAR(clear_module_state->__pyx_kp_u_hitProp_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_hitRatio); Py_CLEAR(clear_module_state->__pyx_n_s_hitRatio_2); Py_CLEAR(clear_module_state->__pyx_kp_u_hitRatio_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_host); Py_CLEAR(clear_module_state->__pyx_kp_u_hostNativeAtomicSupported); Py_CLEAR(clear_module_state->__pyx_n_s_hostNativeAtomicSupported_2); Py_CLEAR(clear_module_state->__pyx_kp_u_hostNativeAtomicSupported_ValueE); Py_CLEAR(clear_module_state->__pyx_kp_u_hostPointer); Py_CLEAR(clear_module_state->__pyx_n_s_hostPointer_2); Py_CLEAR(clear_module_state->__pyx_kp_u_hostPointer_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_hostRegisterReadOnlySupported); Py_CLEAR(clear_module_state->__pyx_n_s_hostRegisterReadOnlySupported_2); Py_CLEAR(clear_module_state->__pyx_kp_u_hostRegisterReadOnlySupported_Va); Py_CLEAR(clear_module_state->__pyx_kp_u_hostRegisterSupported); Py_CLEAR(clear_module_state->__pyx_n_s_hostRegisterSupported_2); Py_CLEAR(clear_module_state->__pyx_kp_u_hostRegisterSupported_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_host_2); Py_CLEAR(clear_module_state->__pyx_kp_u_host_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_id); Py_CLEAR(clear_module_state->__pyx_n_s_id_2); Py_CLEAR(clear_module_state->__pyx_kp_u_id_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_id_out); Py_CLEAR(clear_module_state->__pyx_n_s_idx); Py_CLEAR(clear_module_state->__pyx_n_s_image); Py_CLEAR(clear_module_state->__pyx_kp_s_impl_private_CUDA_error_types); Py_CLEAR(clear_module_state->__pyx_n_s_import); Py_CLEAR(clear_module_state->__pyx_n_s_index); Py_CLEAR(clear_module_state->__pyx_kp_u_info); Py_CLEAR(clear_module_state->__pyx_n_s_info_2); Py_CLEAR(clear_module_state->__pyx_kp_u_info_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_init_subclass); Py_CLEAR(clear_module_state->__pyx_n_s_init_value); Py_CLEAR(clear_module_state->__pyx_n_s_initialRefcount); Py_CLEAR(clear_module_state->__pyx_n_s_initializing); Py_CLEAR(clear_module_state->__pyx_n_s_instantiateParams); Py_CLEAR(clear_module_state->__pyx_n_s_int); Py_CLEAR(clear_module_state->__pyx_kp_u_integrated); Py_CLEAR(clear_module_state->__pyx_n_s_integrated_2); Py_CLEAR(clear_module_state->__pyx_kp_u_integrated_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_ipcEventSupported); Py_CLEAR(clear_module_state->__pyx_n_s_ipcEventSupported_2); Py_CLEAR(clear_module_state->__pyx_kp_u_ipcEventSupported_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_isEnabled); Py_CLEAR(clear_module_state->__pyx_n_s_isEnabled_2); Py_CLEAR(clear_module_state->__pyx_kp_u_isEnabled_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_isMultiGpuBoard); Py_CLEAR(clear_module_state->__pyx_n_s_isMultiGpuBoard_2); Py_CLEAR(clear_module_state->__pyx_kp_u_isMultiGpuBoard_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_is_coroutine); Py_CLEAR(clear_module_state->__pyx_n_s_is_getter); Py_CLEAR(clear_module_state->__pyx_kp_u_isenabled); Py_CLEAR(clear_module_state->__pyx_kp_u_kernel); Py_CLEAR(clear_module_state->__pyx_kp_u_kernelExecTimeoutEnabled); Py_CLEAR(clear_module_state->__pyx_n_s_kernelExecTimeoutEnabled_2); Py_CLEAR(clear_module_state->__pyx_kp_u_kernelExecTimeoutEnabled_ValueEr); Py_CLEAR(clear_module_state->__pyx_kp_u_kernelParams); Py_CLEAR(clear_module_state->__pyx_n_s_kernelParams_2); Py_CLEAR(clear_module_state->__pyx_kp_u_kernelParams_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_kernelPtr); Py_CLEAR(clear_module_state->__pyx_n_s_kernel_2); Py_CLEAR(clear_module_state->__pyx_kp_u_kernel_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_key); Py_CLEAR(clear_module_state->__pyx_n_s_key_2); Py_CLEAR(clear_module_state->__pyx_kp_u_key_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_keyedMutex); Py_CLEAR(clear_module_state->__pyx_n_s_keyedMutex_2); Py_CLEAR(clear_module_state->__pyx_kp_u_keyedMutex_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_kind); Py_CLEAR(clear_module_state->__pyx_n_s_kind_2); Py_CLEAR(clear_module_state->__pyx_kp_u_kind_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_l2CacheSize); Py_CLEAR(clear_module_state->__pyx_n_s_l2CacheSize_2); Py_CLEAR(clear_module_state->__pyx_kp_u_l2CacheSize_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_lastLayer); Py_CLEAR(clear_module_state->__pyx_n_s_lastLayer_2); Py_CLEAR(clear_module_state->__pyx_kp_u_lastLayer_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_lastMipmapLevel); Py_CLEAR(clear_module_state->__pyx_n_s_lastMipmapLevel_2); Py_CLEAR(clear_module_state->__pyx_kp_u_lastMipmapLevel_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_launchCompletionEvent); Py_CLEAR(clear_module_state->__pyx_n_s_launchCompletionEvent_2); Py_CLEAR(clear_module_state->__pyx_kp_u_launchCompletionEvent_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_leastPriority); Py_CLEAR(clear_module_state->__pyx_n_s_length); Py_CLEAR(clear_module_state->__pyx_n_s_level); Py_CLEAR(clear_module_state->__pyx_n_s_levelArray); Py_CLEAR(clear_module_state->__pyx_n_s_libraryPropertyType); Py_CLEAR(clear_module_state->__pyx_n_s_limit); Py_CLEAR(clear_module_state->__pyx_kp_u_linear); Py_CLEAR(clear_module_state->__pyx_n_s_linear_2); Py_CLEAR(clear_module_state->__pyx_kp_u_linear_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_localL1CacheSupported); Py_CLEAR(clear_module_state->__pyx_n_s_localL1CacheSupported_2); Py_CLEAR(clear_module_state->__pyx_kp_u_localL1CacheSupported_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_localSizeBytes); Py_CLEAR(clear_module_state->__pyx_n_s_localSizeBytes_2); Py_CLEAR(clear_module_state->__pyx_kp_u_localSizeBytes_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_location); Py_CLEAR(clear_module_state->__pyx_n_s_location_2); Py_CLEAR(clear_module_state->__pyx_kp_u_location_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_luid); Py_CLEAR(clear_module_state->__pyx_kp_u_luidDeviceNodeMask); Py_CLEAR(clear_module_state->__pyx_n_s_luidDeviceNodeMask_2); Py_CLEAR(clear_module_state->__pyx_kp_u_luidDeviceNodeMask_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_luid_2); Py_CLEAR(clear_module_state->__pyx_kp_u_luid_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_luid_length_must_be_8_is); Py_CLEAR(clear_module_state->__pyx_n_s_main); Py_CLEAR(clear_module_state->__pyx_kp_u_major); Py_CLEAR(clear_module_state->__pyx_n_s_major_2); Py_CLEAR(clear_module_state->__pyx_kp_u_major_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_make_cudaExtent); Py_CLEAR(clear_module_state->__pyx_n_s_make_cudaPitchedPtr); Py_CLEAR(clear_module_state->__pyx_n_s_make_cudaPos); Py_CLEAR(clear_module_state->__pyx_kp_u_managedMemory); Py_CLEAR(clear_module_state->__pyx_n_s_managedMemory_2); Py_CLEAR(clear_module_state->__pyx_kp_u_managedMemory_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_maxAnisotropy); Py_CLEAR(clear_module_state->__pyx_n_s_maxAnisotropy_2); Py_CLEAR(clear_module_state->__pyx_kp_u_maxAnisotropy_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_maxBlocksPerMultiProcessor); Py_CLEAR(clear_module_state->__pyx_n_s_maxBlocksPerMultiProcessor_2); Py_CLEAR(clear_module_state->__pyx_kp_u_maxBlocksPerMultiProcessor_Value); Py_CLEAR(clear_module_state->__pyx_kp_u_maxDynamicSharedSizeBytes); Py_CLEAR(clear_module_state->__pyx_n_s_maxDynamicSharedSizeBytes_2); Py_CLEAR(clear_module_state->__pyx_kp_u_maxDynamicSharedSizeBytes_ValueE); Py_CLEAR(clear_module_state->__pyx_kp_u_maxGridSize); Py_CLEAR(clear_module_state->__pyx_n_s_maxGridSize_2); Py_CLEAR(clear_module_state->__pyx_kp_u_maxGridSize_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_maxMipmapLevelClamp); Py_CLEAR(clear_module_state->__pyx_n_s_maxMipmapLevelClamp_2); Py_CLEAR(clear_module_state->__pyx_kp_u_maxMipmapLevelClamp_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_maxSize); Py_CLEAR(clear_module_state->__pyx_n_s_maxSize_2); Py_CLEAR(clear_module_state->__pyx_kp_u_maxSize_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_maxSurface1D); Py_CLEAR(clear_module_state->__pyx_kp_u_maxSurface1DLayered); Py_CLEAR(clear_module_state->__pyx_n_s_maxSurface1DLayered_2); Py_CLEAR(clear_module_state->__pyx_kp_u_maxSurface1DLayered_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_maxSurface1D_2); Py_CLEAR(clear_module_state->__pyx_kp_u_maxSurface1D_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_maxSurface2D); Py_CLEAR(clear_module_state->__pyx_kp_u_maxSurface2DLayered); Py_CLEAR(clear_module_state->__pyx_n_s_maxSurface2DLayered_2); Py_CLEAR(clear_module_state->__pyx_kp_u_maxSurface2DLayered_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_maxSurface2D_2); Py_CLEAR(clear_module_state->__pyx_kp_u_maxSurface2D_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_maxSurface3D); Py_CLEAR(clear_module_state->__pyx_n_s_maxSurface3D_2); Py_CLEAR(clear_module_state->__pyx_kp_u_maxSurface3D_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_maxSurfaceCubemap); Py_CLEAR(clear_module_state->__pyx_kp_u_maxSurfaceCubemapLayered); Py_CLEAR(clear_module_state->__pyx_n_s_maxSurfaceCubemapLayered_2); Py_CLEAR(clear_module_state->__pyx_kp_u_maxSurfaceCubemapLayered_ValueEr); Py_CLEAR(clear_module_state->__pyx_n_s_maxSurfaceCubemap_2); Py_CLEAR(clear_module_state->__pyx_kp_u_maxSurfaceCubemap_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_maxTexture1D); Py_CLEAR(clear_module_state->__pyx_kp_u_maxTexture1DLayered); Py_CLEAR(clear_module_state->__pyx_n_s_maxTexture1DLayered_2); Py_CLEAR(clear_module_state->__pyx_kp_u_maxTexture1DLayered_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_maxTexture1DLinear); Py_CLEAR(clear_module_state->__pyx_n_s_maxTexture1DLinear_2); Py_CLEAR(clear_module_state->__pyx_kp_u_maxTexture1DLinear_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_maxTexture1DMipmap); Py_CLEAR(clear_module_state->__pyx_n_s_maxTexture1DMipmap_2); Py_CLEAR(clear_module_state->__pyx_kp_u_maxTexture1DMipmap_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_maxTexture1D_2); Py_CLEAR(clear_module_state->__pyx_kp_u_maxTexture1D_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_maxTexture2D); Py_CLEAR(clear_module_state->__pyx_kp_u_maxTexture2DGather); Py_CLEAR(clear_module_state->__pyx_n_s_maxTexture2DGather_2); Py_CLEAR(clear_module_state->__pyx_kp_u_maxTexture2DGather_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_maxTexture2DLayered); Py_CLEAR(clear_module_state->__pyx_n_s_maxTexture2DLayered_2); Py_CLEAR(clear_module_state->__pyx_kp_u_maxTexture2DLayered_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_maxTexture2DLinear); Py_CLEAR(clear_module_state->__pyx_n_s_maxTexture2DLinear_2); Py_CLEAR(clear_module_state->__pyx_kp_u_maxTexture2DLinear_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_maxTexture2DMipmap); Py_CLEAR(clear_module_state->__pyx_n_s_maxTexture2DMipmap_2); Py_CLEAR(clear_module_state->__pyx_kp_u_maxTexture2DMipmap_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_maxTexture2D_2); Py_CLEAR(clear_module_state->__pyx_kp_u_maxTexture2D_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_maxTexture3D); Py_CLEAR(clear_module_state->__pyx_kp_u_maxTexture3DAlt); Py_CLEAR(clear_module_state->__pyx_n_s_maxTexture3DAlt_2); Py_CLEAR(clear_module_state->__pyx_kp_u_maxTexture3DAlt_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_maxTexture3D_2); Py_CLEAR(clear_module_state->__pyx_kp_u_maxTexture3D_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_maxTextureCubemap); Py_CLEAR(clear_module_state->__pyx_kp_u_maxTextureCubemapLayered); Py_CLEAR(clear_module_state->__pyx_n_s_maxTextureCubemapLayered_2); Py_CLEAR(clear_module_state->__pyx_kp_u_maxTextureCubemapLayered_ValueEr); Py_CLEAR(clear_module_state->__pyx_n_s_maxTextureCubemap_2); Py_CLEAR(clear_module_state->__pyx_kp_u_maxTextureCubemap_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_maxThreadsDim); Py_CLEAR(clear_module_state->__pyx_n_s_maxThreadsDim_2); Py_CLEAR(clear_module_state->__pyx_kp_u_maxThreadsDim_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_maxThreadsPerBlock); Py_CLEAR(clear_module_state->__pyx_n_s_maxThreadsPerBlock_2); Py_CLEAR(clear_module_state->__pyx_kp_u_maxThreadsPerBlock_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_maxThreadsPerMultiProcessor); Py_CLEAR(clear_module_state->__pyx_n_s_maxThreadsPerMultiProcessor_2); Py_CLEAR(clear_module_state->__pyx_kp_u_maxThreadsPerMultiProcessor_Valu); Py_CLEAR(clear_module_state->__pyx_n_s_maxWidthInElements); Py_CLEAR(clear_module_state->__pyx_n_s_memHandleDesc); Py_CLEAR(clear_module_state->__pyx_kp_u_memPitch); Py_CLEAR(clear_module_state->__pyx_n_s_memPitch_2); Py_CLEAR(clear_module_state->__pyx_kp_u_memPitch_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_memPool); Py_CLEAR(clear_module_state->__pyx_kp_u_memSyncDomain); Py_CLEAR(clear_module_state->__pyx_kp_u_memSyncDomainMap); Py_CLEAR(clear_module_state->__pyx_n_s_memSyncDomainMap_2); Py_CLEAR(clear_module_state->__pyx_kp_u_memSyncDomainMap_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_memSyncDomain_2); Py_CLEAR(clear_module_state->__pyx_kp_u_memSyncDomain_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_memcpy); Py_CLEAR(clear_module_state->__pyx_n_s_memcpy_2); Py_CLEAR(clear_module_state->__pyx_kp_u_memcpy_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_memoryBusWidth); Py_CLEAR(clear_module_state->__pyx_n_s_memoryBusWidth_2); Py_CLEAR(clear_module_state->__pyx_kp_u_memoryBusWidth_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_memoryClockRate); Py_CLEAR(clear_module_state->__pyx_n_s_memoryClockRate_2); Py_CLEAR(clear_module_state->__pyx_kp_u_memoryClockRate_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_memoryPoolSupportedHandleTypes); Py_CLEAR(clear_module_state->__pyx_n_s_memoryPoolSupportedHandleTypes_2); Py_CLEAR(clear_module_state->__pyx_kp_u_memoryPoolSupportedHandleTypes_V); Py_CLEAR(clear_module_state->__pyx_kp_u_memoryPoolsSupported); Py_CLEAR(clear_module_state->__pyx_n_s_memoryPoolsSupported_2); Py_CLEAR(clear_module_state->__pyx_kp_u_memoryPoolsSupported_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_memoryRequirements); Py_CLEAR(clear_module_state->__pyx_kp_u_memset); Py_CLEAR(clear_module_state->__pyx_n_s_memset_2); Py_CLEAR(clear_module_state->__pyx_kp_u_memset_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_metaclass); Py_CLEAR(clear_module_state->__pyx_n_s_minBytesToKeep); Py_CLEAR(clear_module_state->__pyx_kp_u_minMipmapLevelClamp); Py_CLEAR(clear_module_state->__pyx_n_s_minMipmapLevelClamp_2); Py_CLEAR(clear_module_state->__pyx_kp_u_minMipmapLevelClamp_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_minor); Py_CLEAR(clear_module_state->__pyx_n_s_minor_2); Py_CLEAR(clear_module_state->__pyx_kp_u_minor_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_mipLevel); Py_CLEAR(clear_module_state->__pyx_kp_u_mipmap); Py_CLEAR(clear_module_state->__pyx_n_s_mipmapDesc); Py_CLEAR(clear_module_state->__pyx_kp_u_mipmapFilterMode); Py_CLEAR(clear_module_state->__pyx_n_s_mipmapFilterMode_2); Py_CLEAR(clear_module_state->__pyx_kp_u_mipmapFilterMode_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_mipmapLevelBias); Py_CLEAR(clear_module_state->__pyx_n_s_mipmapLevelBias_2); Py_CLEAR(clear_module_state->__pyx_kp_u_mipmapLevelBias_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_mipmap_2); Py_CLEAR(clear_module_state->__pyx_kp_u_mipmap_3); Py_CLEAR(clear_module_state->__pyx_kp_u_mipmap_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_mipmappedArray); Py_CLEAR(clear_module_state->__pyx_kp_u_miptailFirstLevel); Py_CLEAR(clear_module_state->__pyx_n_s_miptailFirstLevel_2); Py_CLEAR(clear_module_state->__pyx_kp_u_miptailFirstLevel_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_miptailSize); Py_CLEAR(clear_module_state->__pyx_n_s_miptailSize_2); Py_CLEAR(clear_module_state->__pyx_kp_u_miptailSize_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_missProp); Py_CLEAR(clear_module_state->__pyx_n_s_missProp_2); Py_CLEAR(clear_module_state->__pyx_kp_u_missProp_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_mode); Py_CLEAR(clear_module_state->__pyx_n_s_module); Py_CLEAR(clear_module_state->__pyx_n_s_mro_entries); Py_CLEAR(clear_module_state->__pyx_n_s_ms); Py_CLEAR(clear_module_state->__pyx_kp_u_multiGpuBoardGroupID); Py_CLEAR(clear_module_state->__pyx_n_s_multiGpuBoardGroupID_2); Py_CLEAR(clear_module_state->__pyx_kp_u_multiGpuBoardGroupID_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_multiProcessorCount); Py_CLEAR(clear_module_state->__pyx_n_s_multiProcessorCount_2); Py_CLEAR(clear_module_state->__pyx_kp_u_multiProcessorCount_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_name); Py_CLEAR(clear_module_state->__pyx_n_s_name_2); Py_CLEAR(clear_module_state->__pyx_n_s_name_3); Py_CLEAR(clear_module_state->__pyx_kp_u_name_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_s_no_default___reduce___due_to_non); Py_CLEAR(clear_module_state->__pyx_kp_u_node); Py_CLEAR(clear_module_state->__pyx_n_s_nodeParams); Py_CLEAR(clear_module_state->__pyx_n_s_node_2); Py_CLEAR(clear_module_state->__pyx_kp_u_node_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_nonPortableClusterSizeAllowed); Py_CLEAR(clear_module_state->__pyx_n_s_nonPortableClusterSizeAllowed_2); Py_CLEAR(clear_module_state->__pyx_kp_u_nonPortableClusterSizeAllowed_Va); Py_CLEAR(clear_module_state->__pyx_kp_u_normalizedCoords); Py_CLEAR(clear_module_state->__pyx_n_s_normalizedCoords_2); Py_CLEAR(clear_module_state->__pyx_kp_u_normalizedCoords_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_not_enough_values_found_during_a); Py_CLEAR(clear_module_state->__pyx_n_s_numAttributes); Py_CLEAR(clear_module_state->__pyx_n_s_numBlocks); Py_CLEAR(clear_module_state->__pyx_kp_u_numChannels); Py_CLEAR(clear_module_state->__pyx_n_s_numChannels_2); Py_CLEAR(clear_module_state->__pyx_kp_u_numChannels_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_numDependencies); Py_CLEAR(clear_module_state->__pyx_n_s_numDependencies_out); Py_CLEAR(clear_module_state->__pyx_n_s_numEdges); Py_CLEAR(clear_module_state->__pyx_kp_u_numExtSems); Py_CLEAR(clear_module_state->__pyx_n_s_numExtSems_2); Py_CLEAR(clear_module_state->__pyx_kp_u_numExtSems_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_numLevels); Py_CLEAR(clear_module_state->__pyx_n_s_numLevels_2); Py_CLEAR(clear_module_state->__pyx_kp_u_numLevels_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_numNodes); Py_CLEAR(clear_module_state->__pyx_kp_u_numRegs); Py_CLEAR(clear_module_state->__pyx_n_s_numRegs_2); Py_CLEAR(clear_module_state->__pyx_kp_u_numRegs_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_num_bytes); Py_CLEAR(clear_module_state->__pyx_n_s_num_bytes_2); Py_CLEAR(clear_module_state->__pyx_kp_u_num_bytes_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_nvSciBufObject); Py_CLEAR(clear_module_state->__pyx_n_s_nvSciBufObject_2); Py_CLEAR(clear_module_state->__pyx_kp_u_nvSciBufObject_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_nvSciSync); Py_CLEAR(clear_module_state->__pyx_n_s_nvSciSyncAttrList); Py_CLEAR(clear_module_state->__pyx_kp_u_nvSciSyncObj); Py_CLEAR(clear_module_state->__pyx_n_s_nvSciSyncObj_2); Py_CLEAR(clear_module_state->__pyx_kp_u_nvSciSyncObj_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_nvSciSync_2); Py_CLEAR(clear_module_state->__pyx_kp_u_nvSciSync_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_obj); Py_CLEAR(clear_module_state->__pyx_n_s_objType); Py_CLEAR(clear_module_state->__pyx_n_s_object); Py_CLEAR(clear_module_state->__pyx_n_s_object_out); Py_CLEAR(clear_module_state->__pyx_kp_u_offset); Py_CLEAR(clear_module_state->__pyx_n_s_offset_2); Py_CLEAR(clear_module_state->__pyx_kp_u_offset_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_originalGraph); Py_CLEAR(clear_module_state->__pyx_n_s_originalNode); Py_CLEAR(clear_module_state->__pyx_kp_u_overBudget); Py_CLEAR(clear_module_state->__pyx_n_s_overBudget_2); Py_CLEAR(clear_module_state->__pyx_kp_u_overBudget_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_p); Py_CLEAR(clear_module_state->__pyx_kp_u_pArray); Py_CLEAR(clear_module_state->__pyx_n_s_pArray_2); Py_CLEAR(clear_module_state->__pyx_kp_u_pArray_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_pCacheConfig); Py_CLEAR(clear_module_state->__pyx_n_s_pCaptureStatus); Py_CLEAR(clear_module_state->__pyx_n_s_pConfig); Py_CLEAR(clear_module_state->__pyx_n_s_pCopyParams); Py_CLEAR(clear_module_state->__pyx_n_s_pCudaDeviceCount); Py_CLEAR(clear_module_state->__pyx_n_s_pCudaResource); Py_CLEAR(clear_module_state->__pyx_n_s_pDependencies); Py_CLEAR(clear_module_state->__pyx_n_s_pDevice); Py_CLEAR(clear_module_state->__pyx_n_s_pExportTableId); Py_CLEAR(clear_module_state->__pyx_n_s_pFlags); Py_CLEAR(clear_module_state->__pyx_n_s_pGraph); Py_CLEAR(clear_module_state->__pyx_n_s_pGraphClone); Py_CLEAR(clear_module_state->__pyx_n_s_pGraphExec); Py_CLEAR(clear_module_state->__pyx_n_s_pGraphNode); Py_CLEAR(clear_module_state->__pyx_n_s_pHandle_out); Py_CLEAR(clear_module_state->__pyx_n_s_pHost); Py_CLEAR(clear_module_state->__pyx_n_s_pMemsetParams); Py_CLEAR(clear_module_state->__pyx_n_s_pNode); Py_CLEAR(clear_module_state->__pyx_n_s_pNodeParams); Py_CLEAR(clear_module_state->__pyx_n_s_pNumDependencies); Py_CLEAR(clear_module_state->__pyx_n_s_pNumDependentNodes); Py_CLEAR(clear_module_state->__pyx_n_s_pNumRootNodes); Py_CLEAR(clear_module_state->__pyx_kp_u_pPitch); Py_CLEAR(clear_module_state->__pyx_n_s_pPitch_2); Py_CLEAR(clear_module_state->__pyx_kp_u_pPitch_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_pPlaneArray); Py_CLEAR(clear_module_state->__pyx_n_s_pResDesc); Py_CLEAR(clear_module_state->__pyx_n_s_pResViewDesc); Py_CLEAR(clear_module_state->__pyx_n_s_pStream); Py_CLEAR(clear_module_state->__pyx_n_s_pSurfObject); Py_CLEAR(clear_module_state->__pyx_n_s_pTexDesc); Py_CLEAR(clear_module_state->__pyx_n_s_pTexObject); Py_CLEAR(clear_module_state->__pyx_n_s_pType); Py_CLEAR(clear_module_state->__pyx_kp_u_pValue); Py_CLEAR(clear_module_state->__pyx_n_s_pValue_2); Py_CLEAR(clear_module_state->__pyx_kp_u_pValue_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_pad); Py_CLEAR(clear_module_state->__pyx_n_s_pad_2); Py_CLEAR(clear_module_state->__pyx_kp_u_pad_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_pad_length_must_be_64_is); Py_CLEAR(clear_module_state->__pyx_kp_u_pageableMemoryAccess); Py_CLEAR(clear_module_state->__pyx_kp_u_pageableMemoryAccessUsesHostPage); Py_CLEAR(clear_module_state->__pyx_n_s_pageableMemoryAccessUsesHostPage_2); Py_CLEAR(clear_module_state->__pyx_kp_u_pageableMemoryAccessUsesHostPage_3); Py_CLEAR(clear_module_state->__pyx_n_s_pageableMemoryAccess_2); Py_CLEAR(clear_module_state->__pyx_kp_u_pageableMemoryAccess_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_param); Py_CLEAR(clear_module_state->__pyx_n_s_param_2); Py_CLEAR(clear_module_state->__pyx_kp_u_param_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_params); Py_CLEAR(clear_module_state->__pyx_kp_u_paramsArray); Py_CLEAR(clear_module_state->__pyx_n_s_paramsArray_2); Py_CLEAR(clear_module_state->__pyx_kp_u_paramsArray_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_params_2); Py_CLEAR(clear_module_state->__pyx_kp_u_params_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_params_out); Py_CLEAR(clear_module_state->__pyx_n_s_parray); Py_CLEAR(clear_module_state->__pyx_n_s_path); Py_CLEAR(clear_module_state->__pyx_n_s_pbuffer); Py_CLEAR(clear_module_state->__pyx_n_s_pcallback); Py_CLEAR(clear_module_state->__pyx_n_s_pcallbackFunc); Py_CLEAR(clear_module_state->__pyx_n_s_pchildGraph); Py_CLEAR(clear_module_state->__pyx_kp_u_pciBusID); Py_CLEAR(clear_module_state->__pyx_n_s_pciBusID_2); Py_CLEAR(clear_module_state->__pyx_kp_u_pciBusID_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_pciBusId); Py_CLEAR(clear_module_state->__pyx_kp_u_pciDeviceID); Py_CLEAR(clear_module_state->__pyx_n_s_pciDeviceID_2); Py_CLEAR(clear_module_state->__pyx_kp_u_pciDeviceID_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_pciDomainID); Py_CLEAR(clear_module_state->__pyx_n_s_pciDomainID_2); Py_CLEAR(clear_module_state->__pyx_kp_u_pciDomainID_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_pclonedGraph); Py_CLEAR(clear_module_state->__pyx_n_s_pconn); Py_CLEAR(clear_module_state->__pyx_n_s_pdestroy); Py_CLEAR(clear_module_state->__pyx_n_s_pdst); Py_CLEAR(clear_module_state->__pyx_n_s_peerDevice); Py_CLEAR(clear_module_state->__pyx_n_s_peglStream); Py_CLEAR(clear_module_state->__pyx_n_s_peglSync); Py_CLEAR(clear_module_state->__pyx_n_s_pend); Py_CLEAR(clear_module_state->__pyx_kp_u_persistingL2CacheMaxSize); Py_CLEAR(clear_module_state->__pyx_n_s_persistingL2CacheMaxSize_2); Py_CLEAR(clear_module_state->__pyx_kp_u_persistingL2CacheMaxSize_ValueEr); Py_CLEAR(clear_module_state->__pyx_n_s_pevent); Py_CLEAR(clear_module_state->__pyx_n_s_pextMem); Py_CLEAR(clear_module_state->__pyx_n_s_pextSem); Py_CLEAR(clear_module_state->__pyx_n_s_pfn); Py_CLEAR(clear_module_state->__pyx_n_s_pgraph); Py_CLEAR(clear_module_state->__pyx_n_s_pgraphExec); Py_CLEAR(clear_module_state->__pyx_n_s_phArray); Py_CLEAR(clear_module_state->__pyx_n_s_phDst); Py_CLEAR(clear_module_state->__pyx_n_s_phEvent); Py_CLEAR(clear_module_state->__pyx_n_s_phGraph); Py_CLEAR(clear_module_state->__pyx_n_s_phGraphExec); Py_CLEAR(clear_module_state->__pyx_kp_u_phGraph_out); Py_CLEAR(clear_module_state->__pyx_n_s_phGraph_out_2); Py_CLEAR(clear_module_state->__pyx_kp_u_phGraph_out_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_phNode); Py_CLEAR(clear_module_state->__pyx_n_s_phSrc); Py_CLEAR(clear_module_state->__pyx_n_s_phStream); Py_CLEAR(clear_module_state->__pyx_n_s_pheight); Py_CLEAR(clear_module_state->__pyx_n_s_pimage); Py_CLEAR(clear_module_state->__pyx_kp_u_pitch); Py_CLEAR(clear_module_state->__pyx_kp_u_pitch2D); Py_CLEAR(clear_module_state->__pyx_n_s_pitch2D_2); Py_CLEAR(clear_module_state->__pyx_kp_u_pitch2D_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_pitchInBytes); Py_CLEAR(clear_module_state->__pyx_n_s_pitchInBytes_2); Py_CLEAR(clear_module_state->__pyx_kp_u_pitchInBytes_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_pitch_2); Py_CLEAR(clear_module_state->__pyx_kp_u_pitch_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_pitchedDevPtr); Py_CLEAR(clear_module_state->__pyx_kp_u_planeCount); Py_CLEAR(clear_module_state->__pyx_n_s_planeCount_2); Py_CLEAR(clear_module_state->__pyx_kp_u_planeCount_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_planeDesc); Py_CLEAR(clear_module_state->__pyx_n_s_planeDesc_2); Py_CLEAR(clear_module_state->__pyx_kp_u_planeDesc_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_planeIdx); Py_CLEAR(clear_module_state->__pyx_n_s_pmemPool); Py_CLEAR(clear_module_state->__pyx_n_s_pmipmap); Py_CLEAR(clear_module_state->__pyx_n_s_pmipmappedArray); Py_CLEAR(clear_module_state->__pyx_n_s_pnode); Py_CLEAR(clear_module_state->__pyx_n_s_pobject); Py_CLEAR(clear_module_state->__pyx_kp_u_poolProps); Py_CLEAR(clear_module_state->__pyx_n_s_poolProps_2); Py_CLEAR(clear_module_state->__pyx_kp_u_poolProps_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_poriginalGraph); Py_CLEAR(clear_module_state->__pyx_n_s_poriginalNode); Py_CLEAR(clear_module_state->__pyx_n_s_ppCudaResource); Py_CLEAR(clear_module_state->__pyx_n_s_ppExportTable); Py_CLEAR(clear_module_state->__pyx_n_s_ppStream); Py_CLEAR(clear_module_state->__pyx_kp_u_preferredShmemCarveout); Py_CLEAR(clear_module_state->__pyx_n_s_preferredShmemCarveout_2); Py_CLEAR(clear_module_state->__pyx_kp_u_preferredShmemCarveout_ValueErro); Py_CLEAR(clear_module_state->__pyx_n_s_prepare); Py_CLEAR(clear_module_state->__pyx_n_s_presource); Py_CLEAR(clear_module_state->__pyx_n_s_presources); Py_CLEAR(clear_module_state->__pyx_kp_u_priority); Py_CLEAR(clear_module_state->__pyx_n_s_priority_2); Py_CLEAR(clear_module_state->__pyx_kp_u_priority_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_programmaticEvent); Py_CLEAR(clear_module_state->__pyx_n_s_programmaticEvent_2); Py_CLEAR(clear_module_state->__pyx_kp_u_programmaticEvent_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_programmaticStreamSerializationA); Py_CLEAR(clear_module_state->__pyx_n_s_programmaticStreamSerializationA_2); Py_CLEAR(clear_module_state->__pyx_kp_u_programmaticStreamSerializationA_3); Py_CLEAR(clear_module_state->__pyx_n_s_prop); Py_CLEAR(clear_module_state->__pyx_n_s_psrc); Py_CLEAR(clear_module_state->__pyx_n_s_pstart); Py_CLEAR(clear_module_state->__pyx_n_s_pstream); Py_CLEAR(clear_module_state->__pyx_n_s_psurfObject); Py_CLEAR(clear_module_state->__pyx_n_s_ptarget); Py_CLEAR(clear_module_state->__pyx_n_s_ptexObject); Py_CLEAR(clear_module_state->__pyx_n_s_ptr); Py_CLEAR(clear_module_state->__pyx_kp_u_ptr_2); Py_CLEAR(clear_module_state->__pyx_n_s_ptr_3); Py_CLEAR(clear_module_state->__pyx_kp_u_ptr_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_ptxVersion); Py_CLEAR(clear_module_state->__pyx_n_s_ptxVersion_2); Py_CLEAR(clear_module_state->__pyx_kp_u_ptxVersion_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_pvdpDevice); Py_CLEAR(clear_module_state->__pyx_n_s_pvdpGetProcAddress); Py_CLEAR(clear_module_state->__pyx_n_s_pvdpSurface); Py_CLEAR(clear_module_state->__pyx_n_s_pwidth); Py_CLEAR(clear_module_state->__pyx_n_s_pyObj); Py_CLEAR(clear_module_state->__pyx_n_s_pyattributes); Py_CLEAR(clear_module_state->__pyx_n_s_pydataSizes); Py_CLEAR(clear_module_state->__pyx_n_s_pydependencies_out); Py_CLEAR(clear_module_state->__pyx_n_s_pyedgeData); Py_CLEAR(clear_module_state->__pyx_n_s_pyedgeData_out); Py_CLEAR(clear_module_state->__pyx_n_s_pyfrom); Py_CLEAR(clear_module_state->__pyx_n_s_pylist); Py_CLEAR(clear_module_state->__pyx_n_s_pynodes); Py_CLEAR(clear_module_state->__pyx_n_s_pypCudaDevices); Py_CLEAR(clear_module_state->__pyx_n_s_pypDependencies); Py_CLEAR(clear_module_state->__pyx_n_s_pypDependentNodes); Py_CLEAR(clear_module_state->__pyx_n_s_pypRootNodes); Py_CLEAR(clear_module_state->__pyx_n_s_pypciBusId); Py_CLEAR(clear_module_state->__pyx_n_s_pyto); Py_CLEAR(clear_module_state->__pyx_n_s_pyx_state); Py_CLEAR(clear_module_state->__pyx_n_s_qualname); Py_CLEAR(clear_module_state->__pyx_n_s_range); Py_CLEAR(clear_module_state->__pyx_kp_u_readMode); Py_CLEAR(clear_module_state->__pyx_n_s_readMode_2); Py_CLEAR(clear_module_state->__pyx_kp_u_readMode_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_reduce); Py_CLEAR(clear_module_state->__pyx_n_s_reduce_cython); Py_CLEAR(clear_module_state->__pyx_n_s_reduce_ex); Py_CLEAR(clear_module_state->__pyx_kp_u_regsPerBlock); Py_CLEAR(clear_module_state->__pyx_n_s_regsPerBlock_2); Py_CLEAR(clear_module_state->__pyx_kp_u_regsPerBlock_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_regsPerMultiprocessor); Py_CLEAR(clear_module_state->__pyx_n_s_regsPerMultiprocessor_2); Py_CLEAR(clear_module_state->__pyx_kp_u_regsPerMultiprocessor_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_remote); Py_CLEAR(clear_module_state->__pyx_n_s_remote_2); Py_CLEAR(clear_module_state->__pyx_kp_u_remote_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_requiredClusterDepth); Py_CLEAR(clear_module_state->__pyx_n_s_requiredClusterDepth_2); Py_CLEAR(clear_module_state->__pyx_kp_u_requiredClusterDepth_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_requiredClusterHeight); Py_CLEAR(clear_module_state->__pyx_n_s_requiredClusterHeight_2); Py_CLEAR(clear_module_state->__pyx_kp_u_requiredClusterHeight_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_requiredClusterWidth); Py_CLEAR(clear_module_state->__pyx_n_s_requiredClusterWidth_2); Py_CLEAR(clear_module_state->__pyx_kp_u_requiredClusterWidth_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_res); Py_CLEAR(clear_module_state->__pyx_kp_u_resType); Py_CLEAR(clear_module_state->__pyx_n_s_resType_2); Py_CLEAR(clear_module_state->__pyx_kp_u_resType_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_res_2); Py_CLEAR(clear_module_state->__pyx_kp_u_res_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_reserved); Py_CLEAR(clear_module_state->__pyx_kp_u_reserved0); Py_CLEAR(clear_module_state->__pyx_n_s_reserved0_2); Py_CLEAR(clear_module_state->__pyx_kp_u_reserved0_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_reserved1); Py_CLEAR(clear_module_state->__pyx_n_s_reserved1_2); Py_CLEAR(clear_module_state->__pyx_kp_u_reserved1_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_reserved2); Py_CLEAR(clear_module_state->__pyx_n_s_reserved2_2); Py_CLEAR(clear_module_state->__pyx_kp_u_reserved2_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_reservedSharedMemPerBlock); Py_CLEAR(clear_module_state->__pyx_n_s_reservedSharedMemPerBlock_2); Py_CLEAR(clear_module_state->__pyx_kp_u_reservedSharedMemPerBlock_ValueE); Py_CLEAR(clear_module_state->__pyx_n_s_reserved_2); Py_CLEAR(clear_module_state->__pyx_kp_u_reserved_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_reserved_length_must_be_54_is); Py_CLEAR(clear_module_state->__pyx_kp_u_reserved_length_must_be_5_is); Py_CLEAR(clear_module_state->__pyx_kp_u_reserved_length_must_be_64_is); Py_CLEAR(clear_module_state->__pyx_n_s_resource); Py_CLEAR(clear_module_state->__pyx_n_s_resources); Py_CLEAR(clear_module_state->__pyx_kp_u_result); Py_CLEAR(clear_module_state->__pyx_n_s_resultInfo); Py_CLEAR(clear_module_state->__pyx_n_s_result_2); Py_CLEAR(clear_module_state->__pyx_kp_u_result_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_result_out); Py_CLEAR(clear_module_state->__pyx_n_s_result_out_2); Py_CLEAR(clear_module_state->__pyx_kp_u_result_out_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_runtimeVersion); Py_CLEAR(clear_module_state->__pyx_kp_u_sRGB); Py_CLEAR(clear_module_state->__pyx_n_s_sRGB_2); Py_CLEAR(clear_module_state->__pyx_kp_u_sRGB_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_scope); Py_CLEAR(clear_module_state->__pyx_kp_u_seamlessCubemap); Py_CLEAR(clear_module_state->__pyx_n_s_seamlessCubemap_2); Py_CLEAR(clear_module_state->__pyx_kp_u_seamlessCubemap_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_self); Py_CLEAR(clear_module_state->__pyx_n_s_semHandleDesc); Py_CLEAR(clear_module_state->__pyx_n_s_send); Py_CLEAR(clear_module_state->__pyx_n_s_set_name); Py_CLEAR(clear_module_state->__pyx_n_s_setstate); Py_CLEAR(clear_module_state->__pyx_n_s_setstate_cython); Py_CLEAR(clear_module_state->__pyx_n_s_shareableHandle); Py_CLEAR(clear_module_state->__pyx_kp_u_sharedMemBytes); Py_CLEAR(clear_module_state->__pyx_n_s_sharedMemBytes_2); Py_CLEAR(clear_module_state->__pyx_kp_u_sharedMemBytes_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_sharedMemCarveout); Py_CLEAR(clear_module_state->__pyx_n_s_sharedMemCarveout_2); Py_CLEAR(clear_module_state->__pyx_kp_u_sharedMemCarveout_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_sharedMemPerBlock); Py_CLEAR(clear_module_state->__pyx_kp_u_sharedMemPerBlockOptin); Py_CLEAR(clear_module_state->__pyx_n_s_sharedMemPerBlockOptin_2); Py_CLEAR(clear_module_state->__pyx_kp_u_sharedMemPerBlockOptin_ValueErro); Py_CLEAR(clear_module_state->__pyx_n_s_sharedMemPerBlock_2); Py_CLEAR(clear_module_state->__pyx_kp_u_sharedMemPerBlock_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_sharedMemPerMultiprocessor); Py_CLEAR(clear_module_state->__pyx_n_s_sharedMemPerMultiprocessor_2); Py_CLEAR(clear_module_state->__pyx_kp_u_sharedMemPerMultiprocessor_Value); Py_CLEAR(clear_module_state->__pyx_kp_u_sharedSizeBytes); Py_CLEAR(clear_module_state->__pyx_n_s_sharedSizeBytes_2); Py_CLEAR(clear_module_state->__pyx_kp_u_sharedSizeBytes_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_singleToDoublePrecisionPerfRatio); Py_CLEAR(clear_module_state->__pyx_n_s_singleToDoublePrecisionPerfRatio_2); Py_CLEAR(clear_module_state->__pyx_kp_u_singleToDoublePrecisionPerfRatio_3); Py_CLEAR(clear_module_state->__pyx_kp_u_size); Py_CLEAR(clear_module_state->__pyx_kp_u_sizeInBytes); Py_CLEAR(clear_module_state->__pyx_n_s_sizeInBytes_2); Py_CLEAR(clear_module_state->__pyx_kp_u_sizeInBytes_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_size_2); Py_CLEAR(clear_module_state->__pyx_kp_u_size_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_sizeof); Py_CLEAR(clear_module_state->__pyx_kp_u_sparseCudaArraySupported); Py_CLEAR(clear_module_state->__pyx_n_s_sparseCudaArraySupported_2); Py_CLEAR(clear_module_state->__pyx_kp_u_sparseCudaArraySupported_ValueEr); Py_CLEAR(clear_module_state->__pyx_n_s_sparseProperties); Py_CLEAR(clear_module_state->__pyx_n_s_spec); Py_CLEAR(clear_module_state->__pyx_n_s_spitch); Py_CLEAR(clear_module_state->__pyx_n_s_src); Py_CLEAR(clear_module_state->__pyx_kp_u_srcArray); Py_CLEAR(clear_module_state->__pyx_n_s_srcArray_2); Py_CLEAR(clear_module_state->__pyx_kp_u_srcArray_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_srcDevice); Py_CLEAR(clear_module_state->__pyx_n_s_srcDevice_2); Py_CLEAR(clear_module_state->__pyx_kp_u_srcDevice_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_srcPos); Py_CLEAR(clear_module_state->__pyx_n_s_srcPos_2); Py_CLEAR(clear_module_state->__pyx_kp_u_srcPos_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_srcPtr); Py_CLEAR(clear_module_state->__pyx_n_s_srcPtr_2); Py_CLEAR(clear_module_state->__pyx_kp_u_srcPtr_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_start); Py_CLEAR(clear_module_state->__pyx_n_s_stream); Py_CLEAR(clear_module_state->__pyx_n_s_streamId); Py_CLEAR(clear_module_state->__pyx_kp_u_streamPrioritiesSupported); Py_CLEAR(clear_module_state->__pyx_n_s_streamPrioritiesSupported_2); Py_CLEAR(clear_module_state->__pyx_kp_u_streamPrioritiesSupported_ValueE); Py_CLEAR(clear_module_state->__pyx_kp_s_stringsource); Py_CLEAR(clear_module_state->__pyx_n_s_super); Py_CLEAR(clear_module_state->__pyx_n_s_surfObject); Py_CLEAR(clear_module_state->__pyx_kp_u_surfaceAlignment); Py_CLEAR(clear_module_state->__pyx_n_s_surfaceAlignment_2); Py_CLEAR(clear_module_state->__pyx_kp_u_surfaceAlignment_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_symbol); Py_CLEAR(clear_module_state->__pyx_kp_u_syncPolicy); Py_CLEAR(clear_module_state->__pyx_n_s_syncPolicy_2); Py_CLEAR(clear_module_state->__pyx_kp_u_syncPolicy_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_target); Py_CLEAR(clear_module_state->__pyx_kp_u_tccDriver); Py_CLEAR(clear_module_state->__pyx_n_s_tccDriver_2); Py_CLEAR(clear_module_state->__pyx_kp_u_tccDriver_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_test); Py_CLEAR(clear_module_state->__pyx_n_s_texObject); Py_CLEAR(clear_module_state->__pyx_kp_u_textureAlignment); Py_CLEAR(clear_module_state->__pyx_n_s_textureAlignment_2); Py_CLEAR(clear_module_state->__pyx_kp_u_textureAlignment_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_texturePitchAlignment); Py_CLEAR(clear_module_state->__pyx_n_s_texturePitchAlignment_2); Py_CLEAR(clear_module_state->__pyx_kp_u_texturePitchAlignment_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_throw); Py_CLEAR(clear_module_state->__pyx_kp_u_tileExtent); Py_CLEAR(clear_module_state->__pyx_n_s_tileExtent_2); Py_CLEAR(clear_module_state->__pyx_kp_u_tileExtent_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_timelineSemaphoreInteropSupporte); Py_CLEAR(clear_module_state->__pyx_n_s_timelineSemaphoreInteropSupporte_2); Py_CLEAR(clear_module_state->__pyx_kp_u_timelineSemaphoreInteropSupporte_3); Py_CLEAR(clear_module_state->__pyx_n_s_timeout); Py_CLEAR(clear_module_state->__pyx_kp_u_timeoutMs); Py_CLEAR(clear_module_state->__pyx_n_s_timeoutMs_2); Py_CLEAR(clear_module_state->__pyx_kp_u_timeoutMs_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_to); Py_CLEAR(clear_module_state->__pyx_kp_u_to_port); Py_CLEAR(clear_module_state->__pyx_n_s_to_port_2); Py_CLEAR(clear_module_state->__pyx_kp_u_to_port_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_total); Py_CLEAR(clear_module_state->__pyx_kp_u_totalConstMem); Py_CLEAR(clear_module_state->__pyx_n_s_totalConstMem_2); Py_CLEAR(clear_module_state->__pyx_kp_u_totalConstMem_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_totalGlobalMem); Py_CLEAR(clear_module_state->__pyx_n_s_totalGlobalMem_2); Py_CLEAR(clear_module_state->__pyx_kp_u_totalGlobalMem_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_triggerAtBlockStart); Py_CLEAR(clear_module_state->__pyx_n_s_triggerAtBlockStart_2); Py_CLEAR(clear_module_state->__pyx_kp_u_triggerAtBlockStart_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_type); Py_CLEAR(clear_module_state->__pyx_n_s_type_2); Py_CLEAR(clear_module_state->__pyx_kp_u_type_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_typing); Py_CLEAR(clear_module_state->__pyx_kp_u_unifiedAddressing); Py_CLEAR(clear_module_state->__pyx_n_s_unifiedAddressing_2); Py_CLEAR(clear_module_state->__pyx_kp_u_unifiedAddressing_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_unifiedFunctionPointers); Py_CLEAR(clear_module_state->__pyx_n_s_unifiedFunctionPointers_2); Py_CLEAR(clear_module_state->__pyx_kp_u_unifiedFunctionPointers_ValueErr); Py_CLEAR(clear_module_state->__pyx_kp_u_updateData); Py_CLEAR(clear_module_state->__pyx_n_s_updateData_2); Py_CLEAR(clear_module_state->__pyx_kp_u_updateData_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_uploadStream); Py_CLEAR(clear_module_state->__pyx_n_s_uploadStream_2); Py_CLEAR(clear_module_state->__pyx_kp_u_uploadStream_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_usage); Py_CLEAR(clear_module_state->__pyx_n_s_usage_2); Py_CLEAR(clear_module_state->__pyx_kp_u_usage_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_userData); Py_CLEAR(clear_module_state->__pyx_n_s_userData_2); Py_CLEAR(clear_module_state->__pyx_kp_u_userData_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_utf_8); Py_CLEAR(clear_module_state->__pyx_kp_u_uuid); Py_CLEAR(clear_module_state->__pyx_n_s_uuid_2); Py_CLEAR(clear_module_state->__pyx_kp_u_uuid_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_val); Py_CLEAR(clear_module_state->__pyx_n_s_val_2); Py_CLEAR(clear_module_state->__pyx_kp_u_val_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_value); Py_CLEAR(clear_module_state->__pyx_kp_u_value_2); Py_CLEAR(clear_module_state->__pyx_kp_u_value_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_value_out); Py_CLEAR(clear_module_state->__pyx_n_s_vdpDevice); Py_CLEAR(clear_module_state->__pyx_n_s_vdpGetProcAddress); Py_CLEAR(clear_module_state->__pyx_n_s_vdpSurface); Py_CLEAR(clear_module_state->__pyx_n_s_voidStarHelperdata); Py_CLEAR(clear_module_state->__pyx_kp_u_w); Py_CLEAR(clear_module_state->__pyx_n_s_wOffset); Py_CLEAR(clear_module_state->__pyx_n_s_wOffsetDst); Py_CLEAR(clear_module_state->__pyx_n_s_wOffsetSrc); Py_CLEAR(clear_module_state->__pyx_n_s_w_2); Py_CLEAR(clear_module_state->__pyx_kp_u_w_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_warpSize); Py_CLEAR(clear_module_state->__pyx_n_s_warpSize_2); Py_CLEAR(clear_module_state->__pyx_kp_u_warpSize_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_width); Py_CLEAR(clear_module_state->__pyx_n_s_width_2); Py_CLEAR(clear_module_state->__pyx_kp_u_width_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_win32); Py_CLEAR(clear_module_state->__pyx_kp_u_win32SecurityAttributes); Py_CLEAR(clear_module_state->__pyx_n_s_win32SecurityAttributes_2); Py_CLEAR(clear_module_state->__pyx_kp_u_win32SecurityAttributes_ValueErr); Py_CLEAR(clear_module_state->__pyx_n_s_win32_2); Py_CLEAR(clear_module_state->__pyx_kp_u_win32_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_wrapper); Py_CLEAR(clear_module_state->__pyx_kp_u_x); Py_CLEAR(clear_module_state->__pyx_n_s_x_2); Py_CLEAR(clear_module_state->__pyx_n_u_x_2); Py_CLEAR(clear_module_state->__pyx_kp_u_x_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_xsize); Py_CLEAR(clear_module_state->__pyx_n_s_xsize_2); Py_CLEAR(clear_module_state->__pyx_kp_u_xsize_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_xsz); Py_CLEAR(clear_module_state->__pyx_kp_u_y); Py_CLEAR(clear_module_state->__pyx_n_s_y_2); Py_CLEAR(clear_module_state->__pyx_kp_u_y_ValueError); Py_CLEAR(clear_module_state->__pyx_kp_u_ysize); Py_CLEAR(clear_module_state->__pyx_n_s_ysize_2); Py_CLEAR(clear_module_state->__pyx_kp_u_ysize_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_ysz); Py_CLEAR(clear_module_state->__pyx_kp_u_z); Py_CLEAR(clear_module_state->__pyx_n_s_z_2); Py_CLEAR(clear_module_state->__pyx_kp_u_z_ValueError); Py_CLEAR(clear_module_state->__pyx_n_s_zip); Py_CLEAR(clear_module_state->__pyx_int_0); Py_CLEAR(clear_module_state->__pyx_int_1); Py_CLEAR(clear_module_state->__pyx_int_127); Py_CLEAR(clear_module_state->__pyx_int_256); Py_CLEAR(clear_module_state->__pyx_int_neg_129); Py_CLEAR(clear_module_state->__pyx_codeobj__2); Py_CLEAR(clear_module_state->__pyx_codeobj__3); Py_CLEAR(clear_module_state->__pyx_codeobj__4); Py_CLEAR(clear_module_state->__pyx_codeobj__5); Py_CLEAR(clear_module_state->__pyx_codeobj__6); Py_CLEAR(clear_module_state->__pyx_codeobj__7); Py_CLEAR(clear_module_state->__pyx_codeobj__8); Py_CLEAR(clear_module_state->__pyx_codeobj__9); Py_CLEAR(clear_module_state->__pyx_tuple__398); Py_CLEAR(clear_module_state->__pyx_tuple__399); Py_CLEAR(clear_module_state->__pyx_tuple__422); Py_CLEAR(clear_module_state->__pyx_tuple__423); Py_CLEAR(clear_module_state->__pyx_tuple__425); Py_CLEAR(clear_module_state->__pyx_tuple__487); Py_CLEAR(clear_module_state->__pyx_tuple__488); Py_CLEAR(clear_module_state->__pyx_tuple__500); Py_CLEAR(clear_module_state->__pyx_tuple__534); Py_CLEAR(clear_module_state->__pyx_tuple__585); Py_CLEAR(clear_module_state->__pyx_tuple__586); Py_CLEAR(clear_module_state->__pyx_tuple__588); Py_CLEAR(clear_module_state->__pyx_tuple__656); Py_CLEAR(clear_module_state->__pyx_tuple__658); Py_CLEAR(clear_module_state->__pyx_tuple__659); Py_CLEAR(clear_module_state->__pyx_tuple__660); Py_CLEAR(clear_module_state->__pyx_tuple__661); Py_CLEAR(clear_module_state->__pyx_tuple__662); Py_CLEAR(clear_module_state->__pyx_tuple__663); Py_CLEAR(clear_module_state->__pyx_tuple__664); Py_CLEAR(clear_module_state->__pyx_tuple__665); Py_CLEAR(clear_module_state->__pyx_tuple__666); Py_CLEAR(clear_module_state->__pyx_tuple__667); Py_CLEAR(clear_module_state->__pyx_tuple__668); Py_CLEAR(clear_module_state->__pyx_tuple__669); Py_CLEAR(clear_module_state->__pyx_tuple__670); Py_CLEAR(clear_module_state->__pyx_tuple__671); Py_CLEAR(clear_module_state->__pyx_tuple__672); Py_CLEAR(clear_module_state->__pyx_tuple__673); Py_CLEAR(clear_module_state->__pyx_tuple__674); Py_CLEAR(clear_module_state->__pyx_tuple__675); Py_CLEAR(clear_module_state->__pyx_tuple__676); Py_CLEAR(clear_module_state->__pyx_tuple__677); Py_CLEAR(clear_module_state->__pyx_tuple__678); Py_CLEAR(clear_module_state->__pyx_tuple__679); Py_CLEAR(clear_module_state->__pyx_tuple__680); Py_CLEAR(clear_module_state->__pyx_tuple__681); Py_CLEAR(clear_module_state->__pyx_tuple__682); Py_CLEAR(clear_module_state->__pyx_tuple__683); Py_CLEAR(clear_module_state->__pyx_tuple__684); Py_CLEAR(clear_module_state->__pyx_tuple__685); Py_CLEAR(clear_module_state->__pyx_tuple__686); Py_CLEAR(clear_module_state->__pyx_tuple__687); Py_CLEAR(clear_module_state->__pyx_tuple__688); Py_CLEAR(clear_module_state->__pyx_tuple__689); Py_CLEAR(clear_module_state->__pyx_tuple__690); Py_CLEAR(clear_module_state->__pyx_tuple__691); Py_CLEAR(clear_module_state->__pyx_tuple__692); Py_CLEAR(clear_module_state->__pyx_tuple__693); Py_CLEAR(clear_module_state->__pyx_tuple__694); Py_CLEAR(clear_module_state->__pyx_tuple__695); Py_CLEAR(clear_module_state->__pyx_tuple__696); Py_CLEAR(clear_module_state->__pyx_tuple__697); Py_CLEAR(clear_module_state->__pyx_tuple__698); Py_CLEAR(clear_module_state->__pyx_tuple__699); Py_CLEAR(clear_module_state->__pyx_tuple__700); Py_CLEAR(clear_module_state->__pyx_tuple__701); Py_CLEAR(clear_module_state->__pyx_tuple__702); Py_CLEAR(clear_module_state->__pyx_tuple__703); Py_CLEAR(clear_module_state->__pyx_tuple__704); Py_CLEAR(clear_module_state->__pyx_tuple__705); Py_CLEAR(clear_module_state->__pyx_tuple__706); Py_CLEAR(clear_module_state->__pyx_tuple__707); Py_CLEAR(clear_module_state->__pyx_tuple__708); Py_CLEAR(clear_module_state->__pyx_tuple__709); Py_CLEAR(clear_module_state->__pyx_tuple__710); Py_CLEAR(clear_module_state->__pyx_tuple__711); Py_CLEAR(clear_module_state->__pyx_tuple__712); Py_CLEAR(clear_module_state->__pyx_tuple__713); Py_CLEAR(clear_module_state->__pyx_tuple__714); Py_CLEAR(clear_module_state->__pyx_tuple__715); Py_CLEAR(clear_module_state->__pyx_tuple__716); Py_CLEAR(clear_module_state->__pyx_tuple__717); Py_CLEAR(clear_module_state->__pyx_tuple__718); Py_CLEAR(clear_module_state->__pyx_tuple__719); Py_CLEAR(clear_module_state->__pyx_tuple__720); Py_CLEAR(clear_module_state->__pyx_tuple__721); Py_CLEAR(clear_module_state->__pyx_tuple__722); Py_CLEAR(clear_module_state->__pyx_tuple__723); Py_CLEAR(clear_module_state->__pyx_tuple__724); Py_CLEAR(clear_module_state->__pyx_tuple__725); Py_CLEAR(clear_module_state->__pyx_tuple__726); Py_CLEAR(clear_module_state->__pyx_tuple__727); Py_CLEAR(clear_module_state->__pyx_tuple__728); Py_CLEAR(clear_module_state->__pyx_tuple__729); Py_CLEAR(clear_module_state->__pyx_tuple__730); Py_CLEAR(clear_module_state->__pyx_tuple__731); Py_CLEAR(clear_module_state->__pyx_tuple__732); Py_CLEAR(clear_module_state->__pyx_tuple__733); Py_CLEAR(clear_module_state->__pyx_tuple__734); Py_CLEAR(clear_module_state->__pyx_tuple__735); Py_CLEAR(clear_module_state->__pyx_tuple__736); Py_CLEAR(clear_module_state->__pyx_tuple__737); Py_CLEAR(clear_module_state->__pyx_tuple__738); Py_CLEAR(clear_module_state->__pyx_tuple__739); Py_CLEAR(clear_module_state->__pyx_tuple__740); Py_CLEAR(clear_module_state->__pyx_tuple__741); Py_CLEAR(clear_module_state->__pyx_tuple__742); Py_CLEAR(clear_module_state->__pyx_tuple__743); Py_CLEAR(clear_module_state->__pyx_tuple__744); Py_CLEAR(clear_module_state->__pyx_tuple__745); Py_CLEAR(clear_module_state->__pyx_tuple__746); Py_CLEAR(clear_module_state->__pyx_tuple__747); Py_CLEAR(clear_module_state->__pyx_tuple__748); Py_CLEAR(clear_module_state->__pyx_tuple__749); Py_CLEAR(clear_module_state->__pyx_tuple__750); Py_CLEAR(clear_module_state->__pyx_tuple__751); Py_CLEAR(clear_module_state->__pyx_tuple__752); Py_CLEAR(clear_module_state->__pyx_tuple__753); Py_CLEAR(clear_module_state->__pyx_tuple__754); Py_CLEAR(clear_module_state->__pyx_tuple__755); Py_CLEAR(clear_module_state->__pyx_tuple__756); Py_CLEAR(clear_module_state->__pyx_tuple__757); Py_CLEAR(clear_module_state->__pyx_tuple__758); Py_CLEAR(clear_module_state->__pyx_tuple__759); Py_CLEAR(clear_module_state->__pyx_tuple__760); Py_CLEAR(clear_module_state->__pyx_tuple__761); Py_CLEAR(clear_module_state->__pyx_tuple__762); Py_CLEAR(clear_module_state->__pyx_tuple__763); Py_CLEAR(clear_module_state->__pyx_tuple__764); Py_CLEAR(clear_module_state->__pyx_tuple__765); Py_CLEAR(clear_module_state->__pyx_tuple__766); Py_CLEAR(clear_module_state->__pyx_tuple__767); Py_CLEAR(clear_module_state->__pyx_tuple__768); Py_CLEAR(clear_module_state->__pyx_tuple__769); Py_CLEAR(clear_module_state->__pyx_tuple__770); Py_CLEAR(clear_module_state->__pyx_tuple__771); Py_CLEAR(clear_module_state->__pyx_tuple__772); Py_CLEAR(clear_module_state->__pyx_tuple__773); Py_CLEAR(clear_module_state->__pyx_tuple__774); Py_CLEAR(clear_module_state->__pyx_tuple__775); Py_CLEAR(clear_module_state->__pyx_tuple__776); Py_CLEAR(clear_module_state->__pyx_tuple__777); Py_CLEAR(clear_module_state->__pyx_tuple__778); Py_CLEAR(clear_module_state->__pyx_tuple__779); Py_CLEAR(clear_module_state->__pyx_tuple__780); Py_CLEAR(clear_module_state->__pyx_tuple__781); Py_CLEAR(clear_module_state->__pyx_tuple__782); Py_CLEAR(clear_module_state->__pyx_tuple__783); Py_CLEAR(clear_module_state->__pyx_tuple__784); Py_CLEAR(clear_module_state->__pyx_tuple__785); Py_CLEAR(clear_module_state->__pyx_tuple__786); Py_CLEAR(clear_module_state->__pyx_tuple__787); Py_CLEAR(clear_module_state->__pyx_tuple__788); Py_CLEAR(clear_module_state->__pyx_tuple__789); Py_CLEAR(clear_module_state->__pyx_tuple__790); Py_CLEAR(clear_module_state->__pyx_tuple__791); Py_CLEAR(clear_module_state->__pyx_tuple__792); Py_CLEAR(clear_module_state->__pyx_tuple__793); Py_CLEAR(clear_module_state->__pyx_tuple__794); Py_CLEAR(clear_module_state->__pyx_tuple__795); Py_CLEAR(clear_module_state->__pyx_tuple__796); Py_CLEAR(clear_module_state->__pyx_tuple__797); Py_CLEAR(clear_module_state->__pyx_tuple__798); Py_CLEAR(clear_module_state->__pyx_tuple__799); Py_CLEAR(clear_module_state->__pyx_tuple__800); Py_CLEAR(clear_module_state->__pyx_tuple__801); Py_CLEAR(clear_module_state->__pyx_tuple__802); Py_CLEAR(clear_module_state->__pyx_tuple__803); Py_CLEAR(clear_module_state->__pyx_tuple__804); Py_CLEAR(clear_module_state->__pyx_tuple__805); Py_CLEAR(clear_module_state->__pyx_tuple__806); Py_CLEAR(clear_module_state->__pyx_tuple__807); Py_CLEAR(clear_module_state->__pyx_tuple__808); Py_CLEAR(clear_module_state->__pyx_tuple__809); Py_CLEAR(clear_module_state->__pyx_tuple__810); Py_CLEAR(clear_module_state->__pyx_tuple__811); Py_CLEAR(clear_module_state->__pyx_tuple__812); Py_CLEAR(clear_module_state->__pyx_tuple__813); Py_CLEAR(clear_module_state->__pyx_tuple__814); Py_CLEAR(clear_module_state->__pyx_tuple__815); Py_CLEAR(clear_module_state->__pyx_tuple__816); Py_CLEAR(clear_module_state->__pyx_tuple__817); Py_CLEAR(clear_module_state->__pyx_tuple__818); Py_CLEAR(clear_module_state->__pyx_tuple__819); Py_CLEAR(clear_module_state->__pyx_tuple__820); Py_CLEAR(clear_module_state->__pyx_tuple__821); Py_CLEAR(clear_module_state->__pyx_tuple__822); Py_CLEAR(clear_module_state->__pyx_tuple__823); Py_CLEAR(clear_module_state->__pyx_tuple__824); Py_CLEAR(clear_module_state->__pyx_tuple__825); Py_CLEAR(clear_module_state->__pyx_tuple__826); Py_CLEAR(clear_module_state->__pyx_tuple__827); Py_CLEAR(clear_module_state->__pyx_tuple__828); Py_CLEAR(clear_module_state->__pyx_tuple__829); Py_CLEAR(clear_module_state->__pyx_tuple__830); Py_CLEAR(clear_module_state->__pyx_tuple__831); Py_CLEAR(clear_module_state->__pyx_tuple__832); Py_CLEAR(clear_module_state->__pyx_tuple__833); Py_CLEAR(clear_module_state->__pyx_tuple__834); Py_CLEAR(clear_module_state->__pyx_tuple__835); Py_CLEAR(clear_module_state->__pyx_tuple__836); Py_CLEAR(clear_module_state->__pyx_tuple__837); Py_CLEAR(clear_module_state->__pyx_tuple__838); Py_CLEAR(clear_module_state->__pyx_tuple__839); Py_CLEAR(clear_module_state->__pyx_tuple__840); Py_CLEAR(clear_module_state->__pyx_tuple__841); Py_CLEAR(clear_module_state->__pyx_tuple__842); Py_CLEAR(clear_module_state->__pyx_tuple__843); Py_CLEAR(clear_module_state->__pyx_tuple__844); Py_CLEAR(clear_module_state->__pyx_tuple__845); Py_CLEAR(clear_module_state->__pyx_tuple__846); Py_CLEAR(clear_module_state->__pyx_tuple__847); Py_CLEAR(clear_module_state->__pyx_tuple__848); Py_CLEAR(clear_module_state->__pyx_tuple__849); Py_CLEAR(clear_module_state->__pyx_tuple__850); Py_CLEAR(clear_module_state->__pyx_tuple__851); Py_CLEAR(clear_module_state->__pyx_tuple__852); Py_CLEAR(clear_module_state->__pyx_tuple__853); Py_CLEAR(clear_module_state->__pyx_tuple__854); Py_CLEAR(clear_module_state->__pyx_tuple__855); Py_CLEAR(clear_module_state->__pyx_tuple__856); Py_CLEAR(clear_module_state->__pyx_tuple__857); Py_CLEAR(clear_module_state->__pyx_tuple__858); Py_CLEAR(clear_module_state->__pyx_tuple__859); Py_CLEAR(clear_module_state->__pyx_tuple__860); Py_CLEAR(clear_module_state->__pyx_tuple__861); Py_CLEAR(clear_module_state->__pyx_tuple__862); Py_CLEAR(clear_module_state->__pyx_tuple__863); Py_CLEAR(clear_module_state->__pyx_tuple__864); Py_CLEAR(clear_module_state->__pyx_tuple__865); Py_CLEAR(clear_module_state->__pyx_tuple__866); Py_CLEAR(clear_module_state->__pyx_tuple__867); Py_CLEAR(clear_module_state->__pyx_tuple__868); Py_CLEAR(clear_module_state->__pyx_tuple__869); Py_CLEAR(clear_module_state->__pyx_tuple__870); Py_CLEAR(clear_module_state->__pyx_tuple__871); Py_CLEAR(clear_module_state->__pyx_tuple__872); Py_CLEAR(clear_module_state->__pyx_tuple__873); Py_CLEAR(clear_module_state->__pyx_tuple__874); Py_CLEAR(clear_module_state->__pyx_tuple__875); Py_CLEAR(clear_module_state->__pyx_tuple__876); Py_CLEAR(clear_module_state->__pyx_tuple__877); Py_CLEAR(clear_module_state->__pyx_tuple__878); Py_CLEAR(clear_module_state->__pyx_tuple__879); Py_CLEAR(clear_module_state->__pyx_tuple__880); Py_CLEAR(clear_module_state->__pyx_tuple__881); Py_CLEAR(clear_module_state->__pyx_tuple__882); Py_CLEAR(clear_module_state->__pyx_tuple__883); Py_CLEAR(clear_module_state->__pyx_tuple__884); Py_CLEAR(clear_module_state->__pyx_tuple__885); Py_CLEAR(clear_module_state->__pyx_tuple__886); Py_CLEAR(clear_module_state->__pyx_tuple__887); Py_CLEAR(clear_module_state->__pyx_tuple__888); Py_CLEAR(clear_module_state->__pyx_tuple__889); Py_CLEAR(clear_module_state->__pyx_tuple__890); Py_CLEAR(clear_module_state->__pyx_tuple__891); Py_CLEAR(clear_module_state->__pyx_tuple__892); Py_CLEAR(clear_module_state->__pyx_tuple__893); Py_CLEAR(clear_module_state->__pyx_tuple__894); Py_CLEAR(clear_module_state->__pyx_tuple__895); Py_CLEAR(clear_module_state->__pyx_tuple__896); Py_CLEAR(clear_module_state->__pyx_tuple__897); Py_CLEAR(clear_module_state->__pyx_tuple__898); Py_CLEAR(clear_module_state->__pyx_tuple__899); Py_CLEAR(clear_module_state->__pyx_tuple__900); Py_CLEAR(clear_module_state->__pyx_tuple__901); Py_CLEAR(clear_module_state->__pyx_tuple__902); Py_CLEAR(clear_module_state->__pyx_tuple__903); Py_CLEAR(clear_module_state->__pyx_tuple__904); Py_CLEAR(clear_module_state->__pyx_tuple__905); Py_CLEAR(clear_module_state->__pyx_tuple__906); Py_CLEAR(clear_module_state->__pyx_tuple__907); Py_CLEAR(clear_module_state->__pyx_tuple__908); Py_CLEAR(clear_module_state->__pyx_tuple__909); Py_CLEAR(clear_module_state->__pyx_codeobj__10); Py_CLEAR(clear_module_state->__pyx_codeobj__11); Py_CLEAR(clear_module_state->__pyx_codeobj__12); Py_CLEAR(clear_module_state->__pyx_codeobj__13); Py_CLEAR(clear_module_state->__pyx_codeobj__14); Py_CLEAR(clear_module_state->__pyx_codeobj__15); Py_CLEAR(clear_module_state->__pyx_codeobj__16); Py_CLEAR(clear_module_state->__pyx_codeobj__17); Py_CLEAR(clear_module_state->__pyx_codeobj__18); Py_CLEAR(clear_module_state->__pyx_codeobj__19); Py_CLEAR(clear_module_state->__pyx_codeobj__20); Py_CLEAR(clear_module_state->__pyx_codeobj__21); Py_CLEAR(clear_module_state->__pyx_codeobj__22); Py_CLEAR(clear_module_state->__pyx_codeobj__23); Py_CLEAR(clear_module_state->__pyx_codeobj__24); Py_CLEAR(clear_module_state->__pyx_codeobj__25); Py_CLEAR(clear_module_state->__pyx_codeobj__26); Py_CLEAR(clear_module_state->__pyx_codeobj__27); Py_CLEAR(clear_module_state->__pyx_codeobj__28); Py_CLEAR(clear_module_state->__pyx_codeobj__29); Py_CLEAR(clear_module_state->__pyx_codeobj__30); Py_CLEAR(clear_module_state->__pyx_codeobj__31); Py_CLEAR(clear_module_state->__pyx_codeobj__32); Py_CLEAR(clear_module_state->__pyx_codeobj__33); Py_CLEAR(clear_module_state->__pyx_codeobj__34); Py_CLEAR(clear_module_state->__pyx_codeobj__35); Py_CLEAR(clear_module_state->__pyx_codeobj__36); Py_CLEAR(clear_module_state->__pyx_codeobj__37); Py_CLEAR(clear_module_state->__pyx_codeobj__38); Py_CLEAR(clear_module_state->__pyx_codeobj__39); Py_CLEAR(clear_module_state->__pyx_codeobj__40); Py_CLEAR(clear_module_state->__pyx_codeobj__41); Py_CLEAR(clear_module_state->__pyx_codeobj__42); Py_CLEAR(clear_module_state->__pyx_codeobj__43); Py_CLEAR(clear_module_state->__pyx_codeobj__44); Py_CLEAR(clear_module_state->__pyx_codeobj__45); Py_CLEAR(clear_module_state->__pyx_codeobj__46); Py_CLEAR(clear_module_state->__pyx_codeobj__47); Py_CLEAR(clear_module_state->__pyx_codeobj__48); Py_CLEAR(clear_module_state->__pyx_codeobj__49); Py_CLEAR(clear_module_state->__pyx_codeobj__50); Py_CLEAR(clear_module_state->__pyx_codeobj__53); Py_CLEAR(clear_module_state->__pyx_codeobj__54); Py_CLEAR(clear_module_state->__pyx_codeobj__55); Py_CLEAR(clear_module_state->__pyx_codeobj__56); Py_CLEAR(clear_module_state->__pyx_codeobj__57); Py_CLEAR(clear_module_state->__pyx_codeobj__58); Py_CLEAR(clear_module_state->__pyx_codeobj__59); Py_CLEAR(clear_module_state->__pyx_codeobj__60); Py_CLEAR(clear_module_state->__pyx_codeobj__61); Py_CLEAR(clear_module_state->__pyx_codeobj__63); Py_CLEAR(clear_module_state->__pyx_codeobj__64); Py_CLEAR(clear_module_state->__pyx_codeobj__65); Py_CLEAR(clear_module_state->__pyx_codeobj__66); Py_CLEAR(clear_module_state->__pyx_codeobj__67); Py_CLEAR(clear_module_state->__pyx_codeobj__68); Py_CLEAR(clear_module_state->__pyx_codeobj__69); Py_CLEAR(clear_module_state->__pyx_codeobj__70); Py_CLEAR(clear_module_state->__pyx_codeobj__71); Py_CLEAR(clear_module_state->__pyx_codeobj__72); Py_CLEAR(clear_module_state->__pyx_codeobj__73); Py_CLEAR(clear_module_state->__pyx_codeobj__74); Py_CLEAR(clear_module_state->__pyx_codeobj__75); Py_CLEAR(clear_module_state->__pyx_codeobj__76); Py_CLEAR(clear_module_state->__pyx_codeobj__77); Py_CLEAR(clear_module_state->__pyx_codeobj__78); Py_CLEAR(clear_module_state->__pyx_codeobj__79); Py_CLEAR(clear_module_state->__pyx_codeobj__80); Py_CLEAR(clear_module_state->__pyx_codeobj__81); Py_CLEAR(clear_module_state->__pyx_codeobj__82); Py_CLEAR(clear_module_state->__pyx_codeobj__83); Py_CLEAR(clear_module_state->__pyx_codeobj__84); Py_CLEAR(clear_module_state->__pyx_codeobj__85); Py_CLEAR(clear_module_state->__pyx_codeobj__86); Py_CLEAR(clear_module_state->__pyx_codeobj__87); Py_CLEAR(clear_module_state->__pyx_codeobj__88); Py_CLEAR(clear_module_state->__pyx_codeobj__89); Py_CLEAR(clear_module_state->__pyx_codeobj__90); Py_CLEAR(clear_module_state->__pyx_codeobj__91); Py_CLEAR(clear_module_state->__pyx_codeobj__92); Py_CLEAR(clear_module_state->__pyx_codeobj__93); Py_CLEAR(clear_module_state->__pyx_codeobj__94); Py_CLEAR(clear_module_state->__pyx_codeobj__95); Py_CLEAR(clear_module_state->__pyx_codeobj__96); Py_CLEAR(clear_module_state->__pyx_codeobj__97); Py_CLEAR(clear_module_state->__pyx_codeobj__98); Py_CLEAR(clear_module_state->__pyx_codeobj__99); Py_CLEAR(clear_module_state->__pyx_codeobj__100); Py_CLEAR(clear_module_state->__pyx_codeobj__101); Py_CLEAR(clear_module_state->__pyx_codeobj__102); Py_CLEAR(clear_module_state->__pyx_codeobj__103); Py_CLEAR(clear_module_state->__pyx_codeobj__104); Py_CLEAR(clear_module_state->__pyx_codeobj__105); Py_CLEAR(clear_module_state->__pyx_codeobj__106); Py_CLEAR(clear_module_state->__pyx_codeobj__107); Py_CLEAR(clear_module_state->__pyx_codeobj__108); Py_CLEAR(clear_module_state->__pyx_codeobj__109); Py_CLEAR(clear_module_state->__pyx_codeobj__110); Py_CLEAR(clear_module_state->__pyx_codeobj__111); Py_CLEAR(clear_module_state->__pyx_codeobj__112); Py_CLEAR(clear_module_state->__pyx_codeobj__113); Py_CLEAR(clear_module_state->__pyx_codeobj__114); Py_CLEAR(clear_module_state->__pyx_codeobj__115); Py_CLEAR(clear_module_state->__pyx_codeobj__116); Py_CLEAR(clear_module_state->__pyx_codeobj__117); Py_CLEAR(clear_module_state->__pyx_codeobj__118); Py_CLEAR(clear_module_state->__pyx_codeobj__119); Py_CLEAR(clear_module_state->__pyx_codeobj__120); Py_CLEAR(clear_module_state->__pyx_codeobj__121); Py_CLEAR(clear_module_state->__pyx_codeobj__122); Py_CLEAR(clear_module_state->__pyx_codeobj__123); Py_CLEAR(clear_module_state->__pyx_codeobj__124); Py_CLEAR(clear_module_state->__pyx_codeobj__125); Py_CLEAR(clear_module_state->__pyx_codeobj__126); Py_CLEAR(clear_module_state->__pyx_codeobj__127); Py_CLEAR(clear_module_state->__pyx_codeobj__128); Py_CLEAR(clear_module_state->__pyx_codeobj__129); Py_CLEAR(clear_module_state->__pyx_codeobj__130); Py_CLEAR(clear_module_state->__pyx_codeobj__131); Py_CLEAR(clear_module_state->__pyx_codeobj__132); Py_CLEAR(clear_module_state->__pyx_codeobj__133); Py_CLEAR(clear_module_state->__pyx_codeobj__134); Py_CLEAR(clear_module_state->__pyx_codeobj__135); Py_CLEAR(clear_module_state->__pyx_codeobj__136); Py_CLEAR(clear_module_state->__pyx_codeobj__137); Py_CLEAR(clear_module_state->__pyx_codeobj__138); Py_CLEAR(clear_module_state->__pyx_codeobj__139); Py_CLEAR(clear_module_state->__pyx_codeobj__140); Py_CLEAR(clear_module_state->__pyx_codeobj__141); Py_CLEAR(clear_module_state->__pyx_codeobj__142); Py_CLEAR(clear_module_state->__pyx_codeobj__143); Py_CLEAR(clear_module_state->__pyx_codeobj__144); Py_CLEAR(clear_module_state->__pyx_codeobj__145); Py_CLEAR(clear_module_state->__pyx_codeobj__146); Py_CLEAR(clear_module_state->__pyx_codeobj__147); Py_CLEAR(clear_module_state->__pyx_codeobj__148); Py_CLEAR(clear_module_state->__pyx_codeobj__149); Py_CLEAR(clear_module_state->__pyx_codeobj__150); Py_CLEAR(clear_module_state->__pyx_codeobj__151); Py_CLEAR(clear_module_state->__pyx_codeobj__152); Py_CLEAR(clear_module_state->__pyx_codeobj__153); Py_CLEAR(clear_module_state->__pyx_codeobj__154); Py_CLEAR(clear_module_state->__pyx_codeobj__155); Py_CLEAR(clear_module_state->__pyx_codeobj__156); Py_CLEAR(clear_module_state->__pyx_codeobj__157); Py_CLEAR(clear_module_state->__pyx_codeobj__158); Py_CLEAR(clear_module_state->__pyx_codeobj__159); Py_CLEAR(clear_module_state->__pyx_codeobj__160); Py_CLEAR(clear_module_state->__pyx_codeobj__161); Py_CLEAR(clear_module_state->__pyx_codeobj__162); Py_CLEAR(clear_module_state->__pyx_codeobj__163); Py_CLEAR(clear_module_state->__pyx_codeobj__164); Py_CLEAR(clear_module_state->__pyx_codeobj__165); Py_CLEAR(clear_module_state->__pyx_codeobj__166); Py_CLEAR(clear_module_state->__pyx_codeobj__167); Py_CLEAR(clear_module_state->__pyx_codeobj__168); Py_CLEAR(clear_module_state->__pyx_codeobj__169); Py_CLEAR(clear_module_state->__pyx_codeobj__170); Py_CLEAR(clear_module_state->__pyx_codeobj__171); Py_CLEAR(clear_module_state->__pyx_codeobj__172); Py_CLEAR(clear_module_state->__pyx_codeobj__173); Py_CLEAR(clear_module_state->__pyx_codeobj__174); Py_CLEAR(clear_module_state->__pyx_codeobj__175); Py_CLEAR(clear_module_state->__pyx_codeobj__176); Py_CLEAR(clear_module_state->__pyx_codeobj__177); Py_CLEAR(clear_module_state->__pyx_codeobj__178); Py_CLEAR(clear_module_state->__pyx_codeobj__179); Py_CLEAR(clear_module_state->__pyx_codeobj__180); Py_CLEAR(clear_module_state->__pyx_codeobj__181); Py_CLEAR(clear_module_state->__pyx_codeobj__182); Py_CLEAR(clear_module_state->__pyx_codeobj__183); Py_CLEAR(clear_module_state->__pyx_codeobj__184); Py_CLEAR(clear_module_state->__pyx_codeobj__185); Py_CLEAR(clear_module_state->__pyx_codeobj__186); Py_CLEAR(clear_module_state->__pyx_codeobj__187); Py_CLEAR(clear_module_state->__pyx_codeobj__188); Py_CLEAR(clear_module_state->__pyx_codeobj__189); Py_CLEAR(clear_module_state->__pyx_codeobj__190); Py_CLEAR(clear_module_state->__pyx_codeobj__191); Py_CLEAR(clear_module_state->__pyx_codeobj__192); Py_CLEAR(clear_module_state->__pyx_codeobj__193); Py_CLEAR(clear_module_state->__pyx_codeobj__194); Py_CLEAR(clear_module_state->__pyx_codeobj__195); Py_CLEAR(clear_module_state->__pyx_codeobj__196); Py_CLEAR(clear_module_state->__pyx_codeobj__197); Py_CLEAR(clear_module_state->__pyx_codeobj__198); Py_CLEAR(clear_module_state->__pyx_codeobj__199); Py_CLEAR(clear_module_state->__pyx_codeobj__200); Py_CLEAR(clear_module_state->__pyx_codeobj__201); Py_CLEAR(clear_module_state->__pyx_codeobj__202); Py_CLEAR(clear_module_state->__pyx_codeobj__203); Py_CLEAR(clear_module_state->__pyx_codeobj__204); Py_CLEAR(clear_module_state->__pyx_codeobj__205); Py_CLEAR(clear_module_state->__pyx_codeobj__206); Py_CLEAR(clear_module_state->__pyx_codeobj__207); Py_CLEAR(clear_module_state->__pyx_codeobj__208); Py_CLEAR(clear_module_state->__pyx_codeobj__209); Py_CLEAR(clear_module_state->__pyx_codeobj__210); Py_CLEAR(clear_module_state->__pyx_codeobj__211); Py_CLEAR(clear_module_state->__pyx_codeobj__212); Py_CLEAR(clear_module_state->__pyx_codeobj__213); Py_CLEAR(clear_module_state->__pyx_codeobj__214); Py_CLEAR(clear_module_state->__pyx_codeobj__215); Py_CLEAR(clear_module_state->__pyx_codeobj__216); Py_CLEAR(clear_module_state->__pyx_codeobj__217); Py_CLEAR(clear_module_state->__pyx_codeobj__218); Py_CLEAR(clear_module_state->__pyx_codeobj__219); Py_CLEAR(clear_module_state->__pyx_codeobj__220); Py_CLEAR(clear_module_state->__pyx_codeobj__221); Py_CLEAR(clear_module_state->__pyx_codeobj__222); Py_CLEAR(clear_module_state->__pyx_codeobj__223); Py_CLEAR(clear_module_state->__pyx_codeobj__224); Py_CLEAR(clear_module_state->__pyx_codeobj__225); Py_CLEAR(clear_module_state->__pyx_codeobj__226); Py_CLEAR(clear_module_state->__pyx_codeobj__227); Py_CLEAR(clear_module_state->__pyx_codeobj__228); Py_CLEAR(clear_module_state->__pyx_codeobj__229); Py_CLEAR(clear_module_state->__pyx_codeobj__230); Py_CLEAR(clear_module_state->__pyx_codeobj__231); Py_CLEAR(clear_module_state->__pyx_codeobj__232); Py_CLEAR(clear_module_state->__pyx_codeobj__233); Py_CLEAR(clear_module_state->__pyx_codeobj__234); Py_CLEAR(clear_module_state->__pyx_codeobj__235); Py_CLEAR(clear_module_state->__pyx_codeobj__236); Py_CLEAR(clear_module_state->__pyx_codeobj__237); Py_CLEAR(clear_module_state->__pyx_codeobj__238); Py_CLEAR(clear_module_state->__pyx_codeobj__239); Py_CLEAR(clear_module_state->__pyx_codeobj__240); Py_CLEAR(clear_module_state->__pyx_codeobj__241); Py_CLEAR(clear_module_state->__pyx_codeobj__242); Py_CLEAR(clear_module_state->__pyx_codeobj__243); Py_CLEAR(clear_module_state->__pyx_codeobj__244); Py_CLEAR(clear_module_state->__pyx_codeobj__245); Py_CLEAR(clear_module_state->__pyx_codeobj__246); Py_CLEAR(clear_module_state->__pyx_codeobj__247); Py_CLEAR(clear_module_state->__pyx_codeobj__248); Py_CLEAR(clear_module_state->__pyx_codeobj__249); Py_CLEAR(clear_module_state->__pyx_codeobj__250); Py_CLEAR(clear_module_state->__pyx_codeobj__251); Py_CLEAR(clear_module_state->__pyx_codeobj__252); Py_CLEAR(clear_module_state->__pyx_codeobj__253); Py_CLEAR(clear_module_state->__pyx_codeobj__254); Py_CLEAR(clear_module_state->__pyx_codeobj__255); Py_CLEAR(clear_module_state->__pyx_codeobj__256); Py_CLEAR(clear_module_state->__pyx_codeobj__257); Py_CLEAR(clear_module_state->__pyx_codeobj__258); Py_CLEAR(clear_module_state->__pyx_codeobj__259); Py_CLEAR(clear_module_state->__pyx_codeobj__260); Py_CLEAR(clear_module_state->__pyx_codeobj__261); Py_CLEAR(clear_module_state->__pyx_codeobj__262); Py_CLEAR(clear_module_state->__pyx_codeobj__263); Py_CLEAR(clear_module_state->__pyx_codeobj__264); Py_CLEAR(clear_module_state->__pyx_codeobj__265); Py_CLEAR(clear_module_state->__pyx_codeobj__266); Py_CLEAR(clear_module_state->__pyx_codeobj__267); Py_CLEAR(clear_module_state->__pyx_codeobj__268); Py_CLEAR(clear_module_state->__pyx_codeobj__269); Py_CLEAR(clear_module_state->__pyx_codeobj__270); Py_CLEAR(clear_module_state->__pyx_codeobj__271); Py_CLEAR(clear_module_state->__pyx_codeobj__272); Py_CLEAR(clear_module_state->__pyx_codeobj__273); Py_CLEAR(clear_module_state->__pyx_codeobj__274); Py_CLEAR(clear_module_state->__pyx_codeobj__275); Py_CLEAR(clear_module_state->__pyx_codeobj__276); Py_CLEAR(clear_module_state->__pyx_codeobj__277); Py_CLEAR(clear_module_state->__pyx_codeobj__278); Py_CLEAR(clear_module_state->__pyx_codeobj__279); Py_CLEAR(clear_module_state->__pyx_codeobj__280); Py_CLEAR(clear_module_state->__pyx_codeobj__281); Py_CLEAR(clear_module_state->__pyx_codeobj__282); Py_CLEAR(clear_module_state->__pyx_codeobj__283); Py_CLEAR(clear_module_state->__pyx_codeobj__284); Py_CLEAR(clear_module_state->__pyx_codeobj__285); Py_CLEAR(clear_module_state->__pyx_codeobj__286); Py_CLEAR(clear_module_state->__pyx_codeobj__287); Py_CLEAR(clear_module_state->__pyx_codeobj__288); Py_CLEAR(clear_module_state->__pyx_codeobj__289); Py_CLEAR(clear_module_state->__pyx_codeobj__290); Py_CLEAR(clear_module_state->__pyx_codeobj__291); Py_CLEAR(clear_module_state->__pyx_codeobj__292); Py_CLEAR(clear_module_state->__pyx_codeobj__293); Py_CLEAR(clear_module_state->__pyx_codeobj__294); Py_CLEAR(clear_module_state->__pyx_codeobj__295); Py_CLEAR(clear_module_state->__pyx_codeobj__296); Py_CLEAR(clear_module_state->__pyx_codeobj__297); Py_CLEAR(clear_module_state->__pyx_codeobj__298); Py_CLEAR(clear_module_state->__pyx_codeobj__299); Py_CLEAR(clear_module_state->__pyx_codeobj__300); Py_CLEAR(clear_module_state->__pyx_codeobj__301); Py_CLEAR(clear_module_state->__pyx_codeobj__302); Py_CLEAR(clear_module_state->__pyx_codeobj__303); Py_CLEAR(clear_module_state->__pyx_codeobj__304); Py_CLEAR(clear_module_state->__pyx_codeobj__305); Py_CLEAR(clear_module_state->__pyx_codeobj__306); Py_CLEAR(clear_module_state->__pyx_codeobj__307); Py_CLEAR(clear_module_state->__pyx_codeobj__308); Py_CLEAR(clear_module_state->__pyx_codeobj__309); Py_CLEAR(clear_module_state->__pyx_codeobj__310); Py_CLEAR(clear_module_state->__pyx_codeobj__311); Py_CLEAR(clear_module_state->__pyx_codeobj__312); Py_CLEAR(clear_module_state->__pyx_codeobj__313); Py_CLEAR(clear_module_state->__pyx_codeobj__314); Py_CLEAR(clear_module_state->__pyx_codeobj__315); Py_CLEAR(clear_module_state->__pyx_codeobj__316); Py_CLEAR(clear_module_state->__pyx_codeobj__317); Py_CLEAR(clear_module_state->__pyx_codeobj__318); Py_CLEAR(clear_module_state->__pyx_codeobj__319); Py_CLEAR(clear_module_state->__pyx_codeobj__320); Py_CLEAR(clear_module_state->__pyx_codeobj__321); Py_CLEAR(clear_module_state->__pyx_codeobj__322); Py_CLEAR(clear_module_state->__pyx_codeobj__323); Py_CLEAR(clear_module_state->__pyx_codeobj__324); Py_CLEAR(clear_module_state->__pyx_codeobj__325); Py_CLEAR(clear_module_state->__pyx_codeobj__326); Py_CLEAR(clear_module_state->__pyx_codeobj__327); Py_CLEAR(clear_module_state->__pyx_codeobj__328); Py_CLEAR(clear_module_state->__pyx_codeobj__329); Py_CLEAR(clear_module_state->__pyx_codeobj__330); Py_CLEAR(clear_module_state->__pyx_codeobj__331); Py_CLEAR(clear_module_state->__pyx_codeobj__332); Py_CLEAR(clear_module_state->__pyx_codeobj__333); Py_CLEAR(clear_module_state->__pyx_codeobj__334); Py_CLEAR(clear_module_state->__pyx_codeobj__335); Py_CLEAR(clear_module_state->__pyx_codeobj__336); Py_CLEAR(clear_module_state->__pyx_codeobj__337); Py_CLEAR(clear_module_state->__pyx_codeobj__338); Py_CLEAR(clear_module_state->__pyx_codeobj__339); Py_CLEAR(clear_module_state->__pyx_codeobj__340); Py_CLEAR(clear_module_state->__pyx_codeobj__341); Py_CLEAR(clear_module_state->__pyx_codeobj__342); Py_CLEAR(clear_module_state->__pyx_codeobj__343); Py_CLEAR(clear_module_state->__pyx_codeobj__344); Py_CLEAR(clear_module_state->__pyx_codeobj__345); Py_CLEAR(clear_module_state->__pyx_codeobj__346); Py_CLEAR(clear_module_state->__pyx_codeobj__347); Py_CLEAR(clear_module_state->__pyx_codeobj__348); Py_CLEAR(clear_module_state->__pyx_codeobj__349); Py_CLEAR(clear_module_state->__pyx_codeobj__350); Py_CLEAR(clear_module_state->__pyx_codeobj__352); Py_CLEAR(clear_module_state->__pyx_codeobj__353); Py_CLEAR(clear_module_state->__pyx_codeobj__354); Py_CLEAR(clear_module_state->__pyx_codeobj__355); Py_CLEAR(clear_module_state->__pyx_codeobj__356); Py_CLEAR(clear_module_state->__pyx_codeobj__357); Py_CLEAR(clear_module_state->__pyx_codeobj__358); Py_CLEAR(clear_module_state->__pyx_codeobj__359); Py_CLEAR(clear_module_state->__pyx_codeobj__360); Py_CLEAR(clear_module_state->__pyx_codeobj__361); Py_CLEAR(clear_module_state->__pyx_codeobj__362); Py_CLEAR(clear_module_state->__pyx_codeobj__363); Py_CLEAR(clear_module_state->__pyx_codeobj__364); Py_CLEAR(clear_module_state->__pyx_codeobj__365); Py_CLEAR(clear_module_state->__pyx_codeobj__366); Py_CLEAR(clear_module_state->__pyx_codeobj__367); Py_CLEAR(clear_module_state->__pyx_codeobj__368); Py_CLEAR(clear_module_state->__pyx_codeobj__369); Py_CLEAR(clear_module_state->__pyx_codeobj__370); Py_CLEAR(clear_module_state->__pyx_codeobj__371); Py_CLEAR(clear_module_state->__pyx_codeobj__372); Py_CLEAR(clear_module_state->__pyx_codeobj__373); Py_CLEAR(clear_module_state->__pyx_codeobj__374); Py_CLEAR(clear_module_state->__pyx_codeobj__375); Py_CLEAR(clear_module_state->__pyx_codeobj__376); Py_CLEAR(clear_module_state->__pyx_codeobj__377); Py_CLEAR(clear_module_state->__pyx_codeobj__378); Py_CLEAR(clear_module_state->__pyx_codeobj__379); Py_CLEAR(clear_module_state->__pyx_codeobj__380); Py_CLEAR(clear_module_state->__pyx_codeobj__381); Py_CLEAR(clear_module_state->__pyx_codeobj__382); Py_CLEAR(clear_module_state->__pyx_codeobj__383); Py_CLEAR(clear_module_state->__pyx_codeobj__384); Py_CLEAR(clear_module_state->__pyx_codeobj__385); Py_CLEAR(clear_module_state->__pyx_codeobj__386); Py_CLEAR(clear_module_state->__pyx_codeobj__387); Py_CLEAR(clear_module_state->__pyx_codeobj__388); Py_CLEAR(clear_module_state->__pyx_codeobj__389); Py_CLEAR(clear_module_state->__pyx_codeobj__390); Py_CLEAR(clear_module_state->__pyx_codeobj__391); Py_CLEAR(clear_module_state->__pyx_codeobj__392); Py_CLEAR(clear_module_state->__pyx_codeobj__393); Py_CLEAR(clear_module_state->__pyx_codeobj__394); Py_CLEAR(clear_module_state->__pyx_codeobj__395); Py_CLEAR(clear_module_state->__pyx_codeobj__396); Py_CLEAR(clear_module_state->__pyx_codeobj__397); Py_CLEAR(clear_module_state->__pyx_codeobj__401); Py_CLEAR(clear_module_state->__pyx_codeobj__402); Py_CLEAR(clear_module_state->__pyx_codeobj__403); Py_CLEAR(clear_module_state->__pyx_codeobj__404); Py_CLEAR(clear_module_state->__pyx_codeobj__405); Py_CLEAR(clear_module_state->__pyx_codeobj__406); Py_CLEAR(clear_module_state->__pyx_codeobj__407); Py_CLEAR(clear_module_state->__pyx_codeobj__408); Py_CLEAR(clear_module_state->__pyx_codeobj__409); Py_CLEAR(clear_module_state->__pyx_codeobj__410); Py_CLEAR(clear_module_state->__pyx_codeobj__411); Py_CLEAR(clear_module_state->__pyx_codeobj__412); Py_CLEAR(clear_module_state->__pyx_codeobj__413); Py_CLEAR(clear_module_state->__pyx_codeobj__414); Py_CLEAR(clear_module_state->__pyx_codeobj__415); Py_CLEAR(clear_module_state->__pyx_codeobj__416); Py_CLEAR(clear_module_state->__pyx_codeobj__417); Py_CLEAR(clear_module_state->__pyx_codeobj__418); Py_CLEAR(clear_module_state->__pyx_codeobj__419); Py_CLEAR(clear_module_state->__pyx_codeobj__420); Py_CLEAR(clear_module_state->__pyx_codeobj__421); Py_CLEAR(clear_module_state->__pyx_codeobj__424); Py_CLEAR(clear_module_state->__pyx_codeobj__426); Py_CLEAR(clear_module_state->__pyx_codeobj__427); Py_CLEAR(clear_module_state->__pyx_codeobj__428); Py_CLEAR(clear_module_state->__pyx_codeobj__429); Py_CLEAR(clear_module_state->__pyx_codeobj__430); Py_CLEAR(clear_module_state->__pyx_codeobj__431); Py_CLEAR(clear_module_state->__pyx_codeobj__432); Py_CLEAR(clear_module_state->__pyx_codeobj__433); Py_CLEAR(clear_module_state->__pyx_codeobj__434); Py_CLEAR(clear_module_state->__pyx_codeobj__435); Py_CLEAR(clear_module_state->__pyx_codeobj__436); Py_CLEAR(clear_module_state->__pyx_codeobj__437); Py_CLEAR(clear_module_state->__pyx_codeobj__438); Py_CLEAR(clear_module_state->__pyx_codeobj__439); Py_CLEAR(clear_module_state->__pyx_codeobj__440); Py_CLEAR(clear_module_state->__pyx_codeobj__441); Py_CLEAR(clear_module_state->__pyx_codeobj__442); Py_CLEAR(clear_module_state->__pyx_codeobj__443); Py_CLEAR(clear_module_state->__pyx_codeobj__444); Py_CLEAR(clear_module_state->__pyx_codeobj__445); Py_CLEAR(clear_module_state->__pyx_codeobj__446); Py_CLEAR(clear_module_state->__pyx_codeobj__447); Py_CLEAR(clear_module_state->__pyx_codeobj__448); Py_CLEAR(clear_module_state->__pyx_codeobj__449); Py_CLEAR(clear_module_state->__pyx_codeobj__450); Py_CLEAR(clear_module_state->__pyx_codeobj__451); Py_CLEAR(clear_module_state->__pyx_codeobj__452); Py_CLEAR(clear_module_state->__pyx_codeobj__453); Py_CLEAR(clear_module_state->__pyx_codeobj__454); Py_CLEAR(clear_module_state->__pyx_codeobj__455); Py_CLEAR(clear_module_state->__pyx_codeobj__456); Py_CLEAR(clear_module_state->__pyx_codeobj__457); Py_CLEAR(clear_module_state->__pyx_codeobj__458); Py_CLEAR(clear_module_state->__pyx_codeobj__459); Py_CLEAR(clear_module_state->__pyx_codeobj__460); Py_CLEAR(clear_module_state->__pyx_codeobj__461); Py_CLEAR(clear_module_state->__pyx_codeobj__462); Py_CLEAR(clear_module_state->__pyx_codeobj__463); Py_CLEAR(clear_module_state->__pyx_codeobj__464); Py_CLEAR(clear_module_state->__pyx_codeobj__465); Py_CLEAR(clear_module_state->__pyx_codeobj__466); Py_CLEAR(clear_module_state->__pyx_codeobj__467); Py_CLEAR(clear_module_state->__pyx_codeobj__468); Py_CLEAR(clear_module_state->__pyx_codeobj__469); Py_CLEAR(clear_module_state->__pyx_codeobj__470); Py_CLEAR(clear_module_state->__pyx_codeobj__471); Py_CLEAR(clear_module_state->__pyx_codeobj__472); Py_CLEAR(clear_module_state->__pyx_codeobj__473); Py_CLEAR(clear_module_state->__pyx_codeobj__474); Py_CLEAR(clear_module_state->__pyx_codeobj__475); Py_CLEAR(clear_module_state->__pyx_codeobj__476); Py_CLEAR(clear_module_state->__pyx_codeobj__477); Py_CLEAR(clear_module_state->__pyx_codeobj__478); Py_CLEAR(clear_module_state->__pyx_codeobj__479); Py_CLEAR(clear_module_state->__pyx_codeobj__480); Py_CLEAR(clear_module_state->__pyx_codeobj__481); Py_CLEAR(clear_module_state->__pyx_codeobj__482); Py_CLEAR(clear_module_state->__pyx_codeobj__483); Py_CLEAR(clear_module_state->__pyx_codeobj__484); Py_CLEAR(clear_module_state->__pyx_codeobj__485); Py_CLEAR(clear_module_state->__pyx_codeobj__486); Py_CLEAR(clear_module_state->__pyx_codeobj__489); Py_CLEAR(clear_module_state->__pyx_codeobj__490); Py_CLEAR(clear_module_state->__pyx_codeobj__491); Py_CLEAR(clear_module_state->__pyx_codeobj__492); Py_CLEAR(clear_module_state->__pyx_codeobj__493); Py_CLEAR(clear_module_state->__pyx_codeobj__494); Py_CLEAR(clear_module_state->__pyx_codeobj__495); Py_CLEAR(clear_module_state->__pyx_codeobj__496); Py_CLEAR(clear_module_state->__pyx_codeobj__497); Py_CLEAR(clear_module_state->__pyx_codeobj__498); Py_CLEAR(clear_module_state->__pyx_codeobj__499); Py_CLEAR(clear_module_state->__pyx_codeobj__501); Py_CLEAR(clear_module_state->__pyx_codeobj__502); Py_CLEAR(clear_module_state->__pyx_codeobj__503); Py_CLEAR(clear_module_state->__pyx_codeobj__504); Py_CLEAR(clear_module_state->__pyx_codeobj__505); Py_CLEAR(clear_module_state->__pyx_codeobj__506); Py_CLEAR(clear_module_state->__pyx_codeobj__507); Py_CLEAR(clear_module_state->__pyx_codeobj__508); Py_CLEAR(clear_module_state->__pyx_codeobj__509); Py_CLEAR(clear_module_state->__pyx_codeobj__510); Py_CLEAR(clear_module_state->__pyx_codeobj__511); Py_CLEAR(clear_module_state->__pyx_codeobj__512); Py_CLEAR(clear_module_state->__pyx_codeobj__513); Py_CLEAR(clear_module_state->__pyx_codeobj__514); Py_CLEAR(clear_module_state->__pyx_codeobj__515); Py_CLEAR(clear_module_state->__pyx_codeobj__516); Py_CLEAR(clear_module_state->__pyx_codeobj__517); Py_CLEAR(clear_module_state->__pyx_codeobj__518); Py_CLEAR(clear_module_state->__pyx_codeobj__519); Py_CLEAR(clear_module_state->__pyx_codeobj__520); Py_CLEAR(clear_module_state->__pyx_codeobj__521); Py_CLEAR(clear_module_state->__pyx_codeobj__522); Py_CLEAR(clear_module_state->__pyx_codeobj__523); Py_CLEAR(clear_module_state->__pyx_codeobj__524); Py_CLEAR(clear_module_state->__pyx_codeobj__525); Py_CLEAR(clear_module_state->__pyx_codeobj__526); Py_CLEAR(clear_module_state->__pyx_codeobj__527); Py_CLEAR(clear_module_state->__pyx_codeobj__528); Py_CLEAR(clear_module_state->__pyx_codeobj__529); Py_CLEAR(clear_module_state->__pyx_codeobj__530); Py_CLEAR(clear_module_state->__pyx_codeobj__531); Py_CLEAR(clear_module_state->__pyx_codeobj__532); Py_CLEAR(clear_module_state->__pyx_codeobj__533); Py_CLEAR(clear_module_state->__pyx_codeobj__535); Py_CLEAR(clear_module_state->__pyx_codeobj__536); Py_CLEAR(clear_module_state->__pyx_codeobj__537); Py_CLEAR(clear_module_state->__pyx_codeobj__538); Py_CLEAR(clear_module_state->__pyx_codeobj__539); Py_CLEAR(clear_module_state->__pyx_codeobj__540); Py_CLEAR(clear_module_state->__pyx_codeobj__541); Py_CLEAR(clear_module_state->__pyx_codeobj__542); Py_CLEAR(clear_module_state->__pyx_codeobj__543); Py_CLEAR(clear_module_state->__pyx_codeobj__544); Py_CLEAR(clear_module_state->__pyx_codeobj__545); Py_CLEAR(clear_module_state->__pyx_codeobj__546); Py_CLEAR(clear_module_state->__pyx_codeobj__547); Py_CLEAR(clear_module_state->__pyx_codeobj__548); Py_CLEAR(clear_module_state->__pyx_codeobj__549); Py_CLEAR(clear_module_state->__pyx_codeobj__550); Py_CLEAR(clear_module_state->__pyx_codeobj__551); Py_CLEAR(clear_module_state->__pyx_codeobj__552); Py_CLEAR(clear_module_state->__pyx_codeobj__553); Py_CLEAR(clear_module_state->__pyx_codeobj__554); Py_CLEAR(clear_module_state->__pyx_codeobj__555); Py_CLEAR(clear_module_state->__pyx_codeobj__556); Py_CLEAR(clear_module_state->__pyx_codeobj__557); Py_CLEAR(clear_module_state->__pyx_codeobj__558); Py_CLEAR(clear_module_state->__pyx_codeobj__559); Py_CLEAR(clear_module_state->__pyx_codeobj__560); Py_CLEAR(clear_module_state->__pyx_codeobj__561); Py_CLEAR(clear_module_state->__pyx_codeobj__562); Py_CLEAR(clear_module_state->__pyx_codeobj__563); Py_CLEAR(clear_module_state->__pyx_codeobj__564); Py_CLEAR(clear_module_state->__pyx_codeobj__565); Py_CLEAR(clear_module_state->__pyx_codeobj__566); Py_CLEAR(clear_module_state->__pyx_codeobj__567); Py_CLEAR(clear_module_state->__pyx_codeobj__568); Py_CLEAR(clear_module_state->__pyx_codeobj__569); Py_CLEAR(clear_module_state->__pyx_codeobj__570); Py_CLEAR(clear_module_state->__pyx_codeobj__571); Py_CLEAR(clear_module_state->__pyx_codeobj__572); Py_CLEAR(clear_module_state->__pyx_codeobj__573); Py_CLEAR(clear_module_state->__pyx_codeobj__574); Py_CLEAR(clear_module_state->__pyx_codeobj__575); Py_CLEAR(clear_module_state->__pyx_codeobj__576); Py_CLEAR(clear_module_state->__pyx_codeobj__577); Py_CLEAR(clear_module_state->__pyx_codeobj__578); Py_CLEAR(clear_module_state->__pyx_codeobj__579); Py_CLEAR(clear_module_state->__pyx_codeobj__580); Py_CLEAR(clear_module_state->__pyx_codeobj__581); Py_CLEAR(clear_module_state->__pyx_codeobj__582); Py_CLEAR(clear_module_state->__pyx_codeobj__583); Py_CLEAR(clear_module_state->__pyx_codeobj__584); Py_CLEAR(clear_module_state->__pyx_codeobj__587); Py_CLEAR(clear_module_state->__pyx_codeobj__589); Py_CLEAR(clear_module_state->__pyx_codeobj__590); Py_CLEAR(clear_module_state->__pyx_codeobj__591); Py_CLEAR(clear_module_state->__pyx_codeobj__592); Py_CLEAR(clear_module_state->__pyx_codeobj__593); Py_CLEAR(clear_module_state->__pyx_codeobj__594); Py_CLEAR(clear_module_state->__pyx_codeobj__595); Py_CLEAR(clear_module_state->__pyx_codeobj__596); Py_CLEAR(clear_module_state->__pyx_codeobj__597); Py_CLEAR(clear_module_state->__pyx_codeobj__598); Py_CLEAR(clear_module_state->__pyx_codeobj__599); Py_CLEAR(clear_module_state->__pyx_codeobj__600); Py_CLEAR(clear_module_state->__pyx_codeobj__601); Py_CLEAR(clear_module_state->__pyx_codeobj__602); Py_CLEAR(clear_module_state->__pyx_codeobj__603); Py_CLEAR(clear_module_state->__pyx_codeobj__604); Py_CLEAR(clear_module_state->__pyx_codeobj__605); Py_CLEAR(clear_module_state->__pyx_codeobj__606); Py_CLEAR(clear_module_state->__pyx_codeobj__607); Py_CLEAR(clear_module_state->__pyx_codeobj__608); Py_CLEAR(clear_module_state->__pyx_codeobj__609); Py_CLEAR(clear_module_state->__pyx_codeobj__610); Py_CLEAR(clear_module_state->__pyx_codeobj__611); Py_CLEAR(clear_module_state->__pyx_codeobj__612); Py_CLEAR(clear_module_state->__pyx_codeobj__613); Py_CLEAR(clear_module_state->__pyx_codeobj__614); Py_CLEAR(clear_module_state->__pyx_codeobj__615); Py_CLEAR(clear_module_state->__pyx_codeobj__616); Py_CLEAR(clear_module_state->__pyx_codeobj__617); Py_CLEAR(clear_module_state->__pyx_codeobj__618); Py_CLEAR(clear_module_state->__pyx_codeobj__619); Py_CLEAR(clear_module_state->__pyx_codeobj__620); Py_CLEAR(clear_module_state->__pyx_codeobj__621); Py_CLEAR(clear_module_state->__pyx_codeobj__622); Py_CLEAR(clear_module_state->__pyx_codeobj__623); Py_CLEAR(clear_module_state->__pyx_codeobj__624); Py_CLEAR(clear_module_state->__pyx_codeobj__625); Py_CLEAR(clear_module_state->__pyx_codeobj__626); Py_CLEAR(clear_module_state->__pyx_codeobj__627); Py_CLEAR(clear_module_state->__pyx_codeobj__628); Py_CLEAR(clear_module_state->__pyx_codeobj__629); Py_CLEAR(clear_module_state->__pyx_codeobj__630); Py_CLEAR(clear_module_state->__pyx_codeobj__631); Py_CLEAR(clear_module_state->__pyx_codeobj__632); Py_CLEAR(clear_module_state->__pyx_codeobj__633); Py_CLEAR(clear_module_state->__pyx_codeobj__634); Py_CLEAR(clear_module_state->__pyx_codeobj__635); Py_CLEAR(clear_module_state->__pyx_codeobj__636); Py_CLEAR(clear_module_state->__pyx_codeobj__637); Py_CLEAR(clear_module_state->__pyx_codeobj__638); Py_CLEAR(clear_module_state->__pyx_codeobj__639); Py_CLEAR(clear_module_state->__pyx_codeobj__640); Py_CLEAR(clear_module_state->__pyx_codeobj__641); Py_CLEAR(clear_module_state->__pyx_codeobj__642); Py_CLEAR(clear_module_state->__pyx_codeobj__643); Py_CLEAR(clear_module_state->__pyx_codeobj__644); Py_CLEAR(clear_module_state->__pyx_codeobj__645); Py_CLEAR(clear_module_state->__pyx_codeobj__646); Py_CLEAR(clear_module_state->__pyx_codeobj__647); Py_CLEAR(clear_module_state->__pyx_codeobj__648); Py_CLEAR(clear_module_state->__pyx_codeobj__649); Py_CLEAR(clear_module_state->__pyx_codeobj__650); Py_CLEAR(clear_module_state->__pyx_codeobj__651); Py_CLEAR(clear_module_state->__pyx_codeobj__652); Py_CLEAR(clear_module_state->__pyx_codeobj__653); return 0; } #endif /* #### Code section: module_state_traverse ### */ #if CYTHON_USE_MODULE_STATE static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) { __pyx_mstate *traverse_module_state = __pyx_mstate(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); Py_VISIT(traverse_module_state->__pyx_empty_tuple); Py_VISIT(traverse_module_state->__pyx_empty_bytes); Py_VISIT(traverse_module_state->__pyx_empty_unicode); #ifdef __Pyx_CyFunction_USED Py_VISIT(traverse_module_state->__pyx_CyFunctionType); #endif #ifdef __Pyx_FusedFunction_USED Py_VISIT(traverse_module_state->__pyx_FusedFunctionType); #endif Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUcontext); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUmodule); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUfunction); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUlibrary); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUkernel); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUarray); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUmipmappedArray); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUtexref); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUsurfref); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUevent); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUstream); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUgraphicsResource); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUexternalMemory); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUexternalSemaphore); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUgraph); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUgraphNode); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUgraphExec); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUmemoryPool); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUuserObject); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUgraphDeviceNode); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUasyncCallbackHandle); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUgreenCtx); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUlinkState); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUdevResourceDesc); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUeglStreamConnection); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_EGLImageKHR); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_EGLStreamKHR); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_EGLSyncKHR); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUasyncCallback); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUhostFn); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUstreamCallback); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUoccupancyB2DSize); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUuuid_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUmemFabricHandle_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUipcEventHandle_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUipcMemHandle_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUstreamMemOpWaitValueParams_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUstreamMemOpWriteValueParams_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUstreamMemOpFlushRemoteWritesParams_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUstreamMemOpMemoryBarrierParams_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUstreamBatchMemOpParams_union); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_anon_struct0); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_anon_union2); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUasyncNotificationInfo_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUdevprop_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUaccessPolicyWindow_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v2_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v3_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_v2_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_v2_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_CONDITIONAL_NODE_PARAMS); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUgraphEdgeData_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_GRAPH_INSTANTIATE_PARAMS_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUlaunchMemSyncDomainMap_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_anon_struct1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_anon_struct2); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_anon_struct3); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_anon_struct4); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUlaunchAttributeValue_union); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUlaunchAttribute_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUlaunchConfig_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUexecAffinitySmCount_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_anon_union3); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUexecAffinityParam_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUctxCigParam_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUctxCreateParams_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUlibraryHostUniversalFunctionAndDataTable_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY2D_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY3D_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY3D_PEER_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY_NODE_PARAMS_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_ARRAY_DESCRIPTOR_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_ARRAY3D_DESCRIPTOR_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_anon_struct5); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_ARRAY_SPARSE_PROPERTIES_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_ARRAY_MEMORY_REQUIREMENTS_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_anon_struct6); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_anon_struct7); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_anon_struct8); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_anon_struct9); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_anon_struct10); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_anon_union4); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_RESOURCE_DESC_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_TEXTURE_DESC_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_RESOURCE_VIEW_DESC_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUtensorMap_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_LAUNCH_PARAMS_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_anon_struct11); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_anon_union5); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_anon_struct12); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_anon_union6); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_anon_struct13); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_anon_union7); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_anon_struct14); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_anon_struct15); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_anon_struct16); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_anon_union8); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_anon_struct17); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_anon_struct18); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_anon_union9); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_anon_struct19); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_anon_struct20); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_anon_union10); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_anon_union11); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUarrayMapInfo_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUmemLocation_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_anon_struct21); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUmemAllocationProp_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUmulticastObjectProp_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUmemAccessDesc_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUgraphExecUpdateResultInfo_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUmemPoolProps_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUmemPoolPtrExportData_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v1_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v2_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEM_FREE_NODE_PARAMS_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_CHILD_GRAPH_NODE_PARAMS_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EVENT_RECORD_NODE_PARAMS_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EVENT_WAIT_NODE_PARAMS_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUgraphNodeParams_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUdevSmResource_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUdevResource_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_anon_union14); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUeglFrame_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUdeviceptr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUdevice); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUtexObject); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUsurfObject); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUgraphConditionalHandle); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUuuid); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUmemFabricHandle_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUmemFabricHandle); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUipcEventHandle_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUipcEventHandle); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUipcMemHandle_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUipcMemHandle); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUstreamBatchMemOpParams_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUstreamBatchMemOpParams); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUasyncNotificationInfo); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUdevprop_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUdevprop); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUaccessPolicyWindow_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUaccessPolicyWindow); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v2); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v3); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_v2); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_HOST_NODE_PARAMS); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_v2); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUgraphEdgeData); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_GRAPH_INSTANTIATE_PARAMS); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUlaunchMemSyncDomainMap); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUlaunchAttributeValue); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUlaunchAttribute); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUlaunchConfig); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUkernelNodeAttrValue_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUkernelNodeAttrValue); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUstreamAttrValue_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUstreamAttrValue); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUexecAffinitySmCount_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUexecAffinitySmCount); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUexecAffinityParam_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUexecAffinityParam); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUctxCigParam); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUctxCreateParams); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUlibraryHostUniversalFunctionAndDataTable); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY2D_v2); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY2D); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY3D_v2); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY3D); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY3D_PEER_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY3D_PEER); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY_NODE_PARAMS); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_ARRAY_DESCRIPTOR_v2); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_ARRAY_DESCRIPTOR); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_ARRAY3D_DESCRIPTOR_v2); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_ARRAY3D_DESCRIPTOR); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_ARRAY_SPARSE_PROPERTIES_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_ARRAY_SPARSE_PROPERTIES); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_ARRAY_MEMORY_REQUIREMENTS_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_ARRAY_MEMORY_REQUIREMENTS); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_RESOURCE_DESC_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_RESOURCE_DESC); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_TEXTURE_DESC_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_TEXTURE_DESC); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_RESOURCE_VIEW_DESC_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_RESOURCE_VIEW_DESC); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUtensorMap); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_LAUNCH_PARAMS_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_LAUNCH_PARAMS); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_HANDLE_DESC); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_BUFFER_DESC); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUmemGenericAllocationHandle); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUarrayMapInfo_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUarrayMapInfo); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUmemLocation_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUmemLocation); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUmemAllocationProp_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUmemAllocationProp); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUmulticastObjectProp_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUmulticastObjectProp); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUmemAccessDesc_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUmemAccessDesc); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUgraphExecUpdateResultInfo_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUgraphExecUpdateResultInfo); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUmemPoolProps_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUmemPoolProps); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUmemPoolPtrExportData_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUmemPoolPtrExportData); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v2); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_MEM_FREE_NODE_PARAMS); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_CHILD_GRAPH_NODE_PARAMS); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EVENT_RECORD_NODE_PARAMS); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUDA_EVENT_WAIT_NODE_PARAMS); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUgraphNodeParams); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUdevSmResource); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUdevResource_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUdevResource); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUeglFrame_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUeglFrame); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_cuuint32_t); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_cuuint64_t); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUdeviceptr_v2); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUdevice_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUtexObject_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUsurfObject_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_CUmemGenericAllocationHandle_v1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_GLenum); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_GLuint); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_EGLint); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_VdpDevice); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_VdpGetProcAddress); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_VdpVideoSurface); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4cuda_VdpOutputSurface); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4_lib_5utils_HelperKernelParams); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4_lib_5utils_HelperCUmemPool_attribute); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4_lib_5utils_HelperCUmem_range_attribute); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4_lib_5utils_HelperCUpointer_attribute); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4_lib_5utils_HelperCUgraphMem_attribute); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4_lib_5utils_HelperCUjit_option); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4_lib_5utils_HelperCUlibraryOption); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4_lib_5utils_HelperCUmemAllocationHandleType); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4_lib_5utils_InputVoidPtrPtrHelper); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_4_lib_5utils_HelperCUcoredumpSettings); Py_VISIT(traverse_module_state->__pyx_ptype_7cpython_4type_type); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaArray_t); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaArray_t); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaArray_const_t); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaArray_const_t); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaMipmappedArray_t); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaMipmappedArray_t); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaMipmappedArray_const_t); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaMipmappedArray_const_t); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaGraphicsResource_t); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaExternalMemory_t); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaExternalMemory_t); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaExternalSemaphore_t); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaExternalSemaphore_t); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaKernel_t); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaKernel_t); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaGraphDeviceNode_t); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaGraphDeviceNode_t); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaAsyncCallbackHandle_t); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaAsyncCallbackHandle_t); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_EGLImageKHR); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_EGLImageKHR); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_EGLStreamKHR); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_EGLStreamKHR); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_EGLSyncKHR); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_EGLSyncKHR); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaHostFn_t); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaHostFn_t); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaAsyncCallback); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaAsyncCallback); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaStreamCallback_t); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaStreamCallback_t); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_dim3); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_dim3); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaChannelFormatDesc); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaChannelFormatDesc); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_anon_struct0); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_anon_struct0); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaArraySparseProperties); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaArraySparseProperties); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaArrayMemoryRequirements); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaArrayMemoryRequirements); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaPitchedPtr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaPitchedPtr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaExtent); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaExtent); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaPos); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaPos); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaMemcpy3DParms); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaMemcpy3DParms); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaMemcpyNodeParams); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaMemcpyNodeParams); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaMemcpy3DPeerParms); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaMemcpy3DPeerParms); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaMemsetParams); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaMemsetParams); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaMemsetParamsV2); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaMemsetParamsV2); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaAccessPolicyWindow); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaAccessPolicyWindow); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaHostNodeParams); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaHostNodeParams); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaHostNodeParamsV2); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaHostNodeParamsV2); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_anon_struct1); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_anon_struct1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_anon_struct2); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_anon_struct2); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_anon_struct3); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_anon_struct3); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_anon_struct4); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_anon_struct4); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_anon_union0); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_anon_union0); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaResourceDesc); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaResourceDesc); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaResourceViewDesc); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaResourceViewDesc); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaPointerAttributes); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaPointerAttributes); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaFuncAttributes); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaFuncAttributes); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaMemLocation); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaMemLocation); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaMemAccessDesc); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaMemAccessDesc); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaMemPoolProps); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaMemPoolProps); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaMemPoolPtrExportData); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaMemPoolPtrExportData); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParams); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaMemAllocNodeParams); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParamsV2); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaMemAllocNodeParamsV2); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaMemFreeNodeParams); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaMemFreeNodeParams); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_CUuuid_st); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_CUuuid_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaDeviceProp); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaDeviceProp); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaIpcEventHandle_st); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaIpcEventHandle_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaIpcMemHandle_st); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaIpcMemHandle_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaMemFabricHandle_st); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaMemFabricHandle_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_anon_struct5); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_anon_struct5); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_anon_union1); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_anon_union1); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaExternalMemoryHandleDesc); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaExternalMemoryHandleDesc); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaExternalMemoryBufferDesc); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaExternalMemoryBufferDesc); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_anon_struct6); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_anon_struct6); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_anon_union2); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_anon_union2); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreHandleDesc); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaExternalSemaphoreHandleDesc); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_anon_struct13); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_anon_struct13); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_anon_union5); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_anon_union5); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_anon_struct14); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_anon_struct14); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_anon_struct15); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_anon_struct15); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalParams); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaExternalSemaphoreSignalParams); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_anon_struct16); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_anon_struct16); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_anon_union6); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_anon_union6); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_anon_struct17); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_anon_struct17); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_anon_struct18); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_anon_struct18); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitParams); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaExternalSemaphoreWaitParams); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaKernelNodeParams); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaKernelNodeParams); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaKernelNodeParamsV2); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaKernelNodeParamsV2); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaConditionalNodeParams); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaConditionalNodeParams); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaChildGraphNodeParams); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaChildGraphNodeParams); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaEventRecordNodeParams); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaEventRecordNodeParams); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaEventWaitNodeParams); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaEventWaitNodeParams); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaGraphNodeParams); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaGraphNodeParams); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaGraphEdgeData_st); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaGraphEdgeData_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaGraphInstantiateParams_st); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaGraphInstantiateParams_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_anon_struct19); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_anon_struct19); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_anon_union8); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_anon_union8); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaGraphKernelNodeUpdate); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaGraphKernelNodeUpdate); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_anon_struct20); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_anon_struct20); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_anon_struct21); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_anon_struct21); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_anon_struct22); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_anon_struct22); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_anon_struct23); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_anon_struct23); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaLaunchAttributeValue); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaLaunchAttributeValue); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaLaunchAttribute_st); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaLaunchAttribute_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_anon_struct24); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_anon_struct24); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_anon_union9); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_anon_union9); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaAsyncNotificationInfo); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaAsyncNotificationInfo); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaTextureDesc); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaTextureDesc); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaEglPlaneDesc_st); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaEglPlaneDesc_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_anon_union10); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_anon_union10); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaEglFrame_st); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaEglFrame_st); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_CUuuid); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_CUuuid); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaUUID_t); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaUUID_t); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaIpcEventHandle_t); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaIpcEventHandle_t); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaIpcMemHandle_t); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaIpcMemHandle_t); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaMemFabricHandle_t); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaMemFabricHandle_t); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaGraphEdgeData); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaGraphEdgeData); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaGraphInstantiateParams); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaGraphInstantiateParams); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaGraphExecUpdateResultInfo); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaGraphExecUpdateResultInfo); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaLaunchMemSyncDomainMap); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaLaunchAttribute); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaLaunchAttribute); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaAsyncNotificationInfo_t); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaAsyncNotificationInfo_t); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaStreamAttrValue); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaStreamAttrValue); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaKernelNodeAttrValue); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaKernelNodeAttrValue); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaEglPlaneDesc); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaEglPlaneDesc); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaEglFrame); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaEglFrame); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaStream_t); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaStream_t); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaEvent_t); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaEvent_t); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaGraph_t); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaGraph_t); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaGraphNode_t); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaGraphNode_t); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaUserObject_t); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaUserObject_t); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaFunction_t); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaFunction_t); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaMemPool_t); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaMemPool_t); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaGraphExec_t); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaGraphExec_t); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaEglStreamConnection); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaEglStreamConnection); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaGraphConditionalHandle); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaGraphConditionalHandle); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaSurfaceObject_t); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaSurfaceObject_t); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_cudaTextureObject_t); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_cudaTextureObject_t); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_GLenum); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_GLenum); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_GLuint); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_GLuint); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_EGLint); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_EGLint); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_VdpDevice); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_VdpDevice); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_VdpGetProcAddress); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_VdpGetProcAddress); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_VdpVideoSurface); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_VdpVideoSurface); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart_VdpOutputSurface); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart_VdpOutputSurface); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct__genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct__genexpr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_1_genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_1_genexpr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_2_genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_2_genexpr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_3_genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_3_genexpr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_4_genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_4_genexpr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_5_genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_5_genexpr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_6_genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_6_genexpr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_7_genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_7_genexpr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_8_genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_8_genexpr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_9_genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_9_genexpr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_10_genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_10_genexpr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_11_genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_11_genexpr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_12_genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_12_genexpr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_13_genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_13_genexpr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_14_genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_14_genexpr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_15_genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_15_genexpr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_16_genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_16_genexpr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_17_genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_17_genexpr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_18_genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_18_genexpr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_19_genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_19_genexpr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_20_genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_20_genexpr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_21_genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_21_genexpr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_22_genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_22_genexpr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_23_genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_23_genexpr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_24_genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_24_genexpr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_25_genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_25_genexpr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_26_genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_26_genexpr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_27_genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_27_genexpr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_28_genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_28_genexpr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_29_genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_29_genexpr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_30_genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_30_genexpr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_31_genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_31_genexpr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_32_genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_32_genexpr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_33_genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_33_genexpr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_34_genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_34_genexpr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_35_genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_35_genexpr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_36_genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_36_genexpr); Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_37_genexpr); Py_VISIT(traverse_module_state->__pyx_type_4cuda_6cudart___pyx_scope_struct_37_genexpr); Py_VISIT(traverse_module_state->__pyx_kp_u_); Py_VISIT(traverse_module_state->__pyx_n_s_Any); Py_VISIT(traverse_module_state->__pyx_kp_u_Argument_attributes_is_not_insta); Py_VISIT(traverse_module_state->__pyx_kp_u_Argument_conn_is_not_instance_of); Py_VISIT(traverse_module_state->__pyx_kp_u_Argument_dataSizes_is_not_instan); Py_VISIT(traverse_module_state->__pyx_kp_u_Argument_dependencies_is_not_ins); Py_VISIT(traverse_module_state->__pyx_kp_u_Argument_dependencyData_is_not_i); Py_VISIT(traverse_module_state->__pyx_kp_u_Argument_descList_is_not_instanc); Py_VISIT(traverse_module_state->__pyx_kp_u_Argument_edgeData_is_not_instanc); Py_VISIT(traverse_module_state->__pyx_kp_u_Argument_extSemArray_is_not_inst); Py_VISIT(traverse_module_state->__pyx_kp_u_Argument_from__is_not_instance_o); Py_VISIT(traverse_module_state->__pyx_kp_u_Argument_pCudaResource_is_not_in); Py_VISIT(traverse_module_state->__pyx_kp_u_Argument_pDependencies_is_not_in); Py_VISIT(traverse_module_state->__pyx_kp_u_Argument_pStream_is_not_instance); Py_VISIT(traverse_module_state->__pyx_kp_u_Argument_paramsArray_is_not_inst); Py_VISIT(traverse_module_state->__pyx_kp_u_Argument_paramsArray_is_not_inst_2); Py_VISIT(traverse_module_state->__pyx_kp_u_Argument_resources_is_not_instan); Py_VISIT(traverse_module_state->__pyx_kp_u_Argument_to_is_not_instance_of_t); Py_VISIT(traverse_module_state->__pyx_kp_u_Argument_vdpGetProcAddress_is_no); Py_VISIT(traverse_module_state->__pyx_n_s_CUDART_API_VERSION); Py_VISIT(traverse_module_state->__pyx_n_s_CUDART_VERSION); Py_VISIT(traverse_module_state->__pyx_n_s_CUDA_C_16BF); Py_VISIT(traverse_module_state->__pyx_n_s_CUDA_C_16F); Py_VISIT(traverse_module_state->__pyx_n_s_CUDA_C_16I); Py_VISIT(traverse_module_state->__pyx_n_s_CUDA_C_16U); Py_VISIT(traverse_module_state->__pyx_n_s_CUDA_C_32F); Py_VISIT(traverse_module_state->__pyx_n_s_CUDA_C_32I); Py_VISIT(traverse_module_state->__pyx_n_s_CUDA_C_32U); Py_VISIT(traverse_module_state->__pyx_n_s_CUDA_C_4I); Py_VISIT(traverse_module_state->__pyx_n_s_CUDA_C_4U); Py_VISIT(traverse_module_state->__pyx_n_s_CUDA_C_64F); Py_VISIT(traverse_module_state->__pyx_n_s_CUDA_C_64I); Py_VISIT(traverse_module_state->__pyx_n_s_CUDA_C_64U); Py_VISIT(traverse_module_state->__pyx_n_s_CUDA_C_8I); Py_VISIT(traverse_module_state->__pyx_n_s_CUDA_C_8U); Py_VISIT(traverse_module_state->__pyx_kp_s_CUDA_EGL_Color_Format_The_diffe); Py_VISIT(traverse_module_state->__pyx_n_s_CUDA_EGL_MAX_PLANES); Py_VISIT(traverse_module_state->__pyx_kp_s_CUDA_EglFrame_type_array_or_poi); Py_VISIT(traverse_module_state->__pyx_kp_s_CUDA_GL_Map_Flags); Py_VISIT(traverse_module_state->__pyx_kp_s_CUDA_GPUDirect_RDMA_flush_write); Py_VISIT(traverse_module_state->__pyx_kp_s_CUDA_GPUDirect_RDMA_flush_write_2); Py_VISIT(traverse_module_state->__pyx_kp_s_CUDA_GPUDirect_RDMA_flush_write_3); Py_VISIT(traverse_module_state->__pyx_kp_s_CUDA_GPUDirect_RDMA_flush_write_4); Py_VISIT(traverse_module_state->__pyx_kp_s_CUDA_Graph_Update_error_types); Py_VISIT(traverse_module_state->__pyx_kp_s_CUDA_Graph_debug_write_options); Py_VISIT(traverse_module_state->__pyx_kp_s_CUDA_Graph_node_types); Py_VISIT(traverse_module_state->__pyx_n_s_CUDA_IPC_HANDLE_SIZE); Py_VISIT(traverse_module_state->__pyx_kp_s_CUDA_Limits); Py_VISIT(traverse_module_state->__pyx_kp_s_CUDA_Memory_Advise_values); Py_VISIT(traverse_module_state->__pyx_n_s_CUDA_R_16BF); Py_VISIT(traverse_module_state->__pyx_n_s_CUDA_R_16F); Py_VISIT(traverse_module_state->__pyx_n_s_CUDA_R_16I); Py_VISIT(traverse_module_state->__pyx_n_s_CUDA_R_16U); Py_VISIT(traverse_module_state->__pyx_n_s_CUDA_R_32F); Py_VISIT(traverse_module_state->__pyx_n_s_CUDA_R_32I); Py_VISIT(traverse_module_state->__pyx_n_s_CUDA_R_32U); Py_VISIT(traverse_module_state->__pyx_n_s_CUDA_R_4I); Py_VISIT(traverse_module_state->__pyx_n_s_CUDA_R_4U); Py_VISIT(traverse_module_state->__pyx_n_s_CUDA_R_64F); Py_VISIT(traverse_module_state->__pyx_n_s_CUDA_R_64I); Py_VISIT(traverse_module_state->__pyx_n_s_CUDA_R_64U); Py_VISIT(traverse_module_state->__pyx_n_s_CUDA_R_8F_E4M3); Py_VISIT(traverse_module_state->__pyx_n_s_CUDA_R_8F_E5M2); Py_VISIT(traverse_module_state->__pyx_n_s_CUDA_R_8I); Py_VISIT(traverse_module_state->__pyx_n_s_CUDA_R_8U); Py_VISIT(traverse_module_state->__pyx_kp_s_CUDA_Surface_boundary_modes); Py_VISIT(traverse_module_state->__pyx_kp_s_CUDA_Surface_format_modes); Py_VISIT(traverse_module_state->__pyx_kp_s_CUDA_conditional_node_types); Py_VISIT(traverse_module_state->__pyx_kp_s_CUDA_cooperative_group_scope); Py_VISIT(traverse_module_state->__pyx_kp_s_CUDA_device_NUMA_config); Py_VISIT(traverse_module_state->__pyx_kp_s_CUDA_device_P2P_attributes); Py_VISIT(traverse_module_state->__pyx_kp_s_CUDA_device_attributes); Py_VISIT(traverse_module_state->__pyx_kp_s_CUDA_device_compute_modes); Py_VISIT(traverse_module_state->__pyx_kp_s_CUDA_devices_corresponding_to_t); Py_VISIT(traverse_module_state->__pyx_kp_s_CUDA_function_attributes_that_c); Py_VISIT(traverse_module_state->__pyx_kp_s_CUDA_function_cache_configurati); Py_VISIT(traverse_module_state->__pyx_kp_s_CUDA_graphics_interop_array_ind); Py_VISIT(traverse_module_state->__pyx_kp_s_CUDA_graphics_interop_map_flags); Py_VISIT(traverse_module_state->__pyx_kp_s_CUDA_graphics_interop_register); Py_VISIT(traverse_module_state->__pyx_kp_s_CUDA_memory_copy_types); Py_VISIT(traverse_module_state->__pyx_kp_s_CUDA_memory_pool_attributes); Py_VISIT(traverse_module_state->__pyx_kp_s_CUDA_memory_types); Py_VISIT(traverse_module_state->__pyx_kp_s_CUDA_range_attributes); Py_VISIT(traverse_module_state->__pyx_kp_s_CUDA_resource_types); Py_VISIT(traverse_module_state->__pyx_kp_s_CUDA_shared_memory_configuratio); Py_VISIT(traverse_module_state->__pyx_kp_s_CUDA_texture_address_modes); Py_VISIT(traverse_module_state->__pyx_kp_s_CUDA_texture_filter_modes); Py_VISIT(traverse_module_state->__pyx_kp_s_CUDA_texture_read_modes); Py_VISIT(traverse_module_state->__pyx_kp_s_CUDA_texture_resource_view_form); Py_VISIT(traverse_module_state->__pyx_n_s_CUuuid); Py_VISIT(traverse_module_state->__pyx_n_s_CUuuid_st); Py_VISIT(traverse_module_state->__pyx_n_s_CUuuid_st___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_CUuuid_st___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_CUuuid_st_getPtr); Py_VISIT(traverse_module_state->__pyx_kp_s_Channel_format_kind); Py_VISIT(traverse_module_state->__pyx_kp_s_Cluster_scheduling_policies_The); Py_VISIT(traverse_module_state->__pyx_kp_s_Defines_the_allocation_types_av); Py_VISIT(traverse_module_state->__pyx_kp_u_ECCEnabled); Py_VISIT(traverse_module_state->__pyx_n_s_ECCEnabled_2); Py_VISIT(traverse_module_state->__pyx_kp_u_ECCEnabled_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_EGLImageKHR); Py_VISIT(traverse_module_state->__pyx_n_s_EGLImageKHR_2); Py_VISIT(traverse_module_state->__pyx_n_s_EGLImageKHR___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_EGLImageKHR___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_EGLImageKHR_getPtr); Py_VISIT(traverse_module_state->__pyx_kp_u_EGLStreamKHR); Py_VISIT(traverse_module_state->__pyx_n_s_EGLStreamKHR_2); Py_VISIT(traverse_module_state->__pyx_n_s_EGLStreamKHR___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_EGLStreamKHR___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_EGLStreamKHR_getPtr); Py_VISIT(traverse_module_state->__pyx_kp_u_EGLSyncKHR); Py_VISIT(traverse_module_state->__pyx_n_s_EGLSyncKHR_2); Py_VISIT(traverse_module_state->__pyx_n_s_EGLSyncKHR___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_EGLSyncKHR___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_EGLSyncKHR_getPtr); Py_VISIT(traverse_module_state->__pyx_kp_u_EGLint); Py_VISIT(traverse_module_state->__pyx_n_s_EGLint_2); Py_VISIT(traverse_module_state->__pyx_n_s_EGLint___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_EGLint___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_EGLint_getPtr); Py_VISIT(traverse_module_state->__pyx_kp_s_Enum_for_status_from_obtaining); Py_VISIT(traverse_module_state->__pyx_kp_s_External_memory_handle_types); Py_VISIT(traverse_module_state->__pyx_kp_s_External_semaphore_handle_types); Py_VISIT(traverse_module_state->__pyx_kp_u_Failed_to_allocate_length_x_size); Py_VISIT(traverse_module_state->__pyx_kp_s_Flags_for_instantiating_a_graph); Py_VISIT(traverse_module_state->__pyx_kp_s_Flags_for_py_obj_cudaStreamUpda); Py_VISIT(traverse_module_state->__pyx_kp_s_Flags_for_retaining_user_object); Py_VISIT(traverse_module_state->__pyx_kp_s_Flags_for_specifying_particular); Py_VISIT(traverse_module_state->__pyx_kp_s_Flags_for_user_objects_for_grap); Py_VISIT(traverse_module_state->__pyx_kp_s_Flags_to_specify_search_options); Py_VISIT(traverse_module_state->__pyx_kp_u_GLenum); Py_VISIT(traverse_module_state->__pyx_n_s_GLenum_2); Py_VISIT(traverse_module_state->__pyx_n_s_GLenum___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_GLenum___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_GLenum_getPtr); Py_VISIT(traverse_module_state->__pyx_kp_u_GLuint); Py_VISIT(traverse_module_state->__pyx_n_s_GLuint_2); Py_VISIT(traverse_module_state->__pyx_n_s_GLuint___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_GLuint___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_GLuint_getPtr); Py_VISIT(traverse_module_state->__pyx_kp_s_Graph_instantiation_results); Py_VISIT(traverse_module_state->__pyx_kp_s_Graph_memory_attributes); Py_VISIT(traverse_module_state->__pyx_n_s_IndexError); Py_VISIT(traverse_module_state->__pyx_n_s_IntEnum); Py_VISIT(traverse_module_state->__pyx_kp_s_Launch_attributes_enum_used_as); Py_VISIT(traverse_module_state->__pyx_n_s_List); Py_VISIT(traverse_module_state->__pyx_kp_u_List_is_too_small); Py_VISIT(traverse_module_state->__pyx_n_s_MAJOR_VERSION); Py_VISIT(traverse_module_state->__pyx_n_s_MINOR_VERSION); Py_VISIT(traverse_module_state->__pyx_n_s_MemoryError); Py_VISIT(traverse_module_state->__pyx_kp_s_Memory_Synchronization_Domain_A); Py_VISIT(traverse_module_state->__pyx_n_s_Optional); Py_VISIT(traverse_module_state->__pyx_kp_s_Optional_Tuple_cudaExternalSemap); Py_VISIT(traverse_module_state->__pyx_kp_s_Optional_Tuple_cudaExternalSemap_2); Py_VISIT(traverse_module_state->__pyx_kp_s_Optional_Tuple_cudaExternalSemap_3); Py_VISIT(traverse_module_state->__pyx_kp_s_Optional_Tuple_cudaGraphEdgeData); Py_VISIT(traverse_module_state->__pyx_kp_s_Optional_Tuple_cudaGraphNode_t_L); Py_VISIT(traverse_module_state->__pyx_kp_s_Optional_Tuple_cudaMemAccessDesc); Py_VISIT(traverse_module_state->__pyx_kp_s_Optional_Tuple_cudaMemRangeAttri); Py_VISIT(traverse_module_state->__pyx_kp_s_Optional_cudaChannelFormatDesc); Py_VISIT(traverse_module_state->__pyx_kp_s_Optional_cudaDeviceProp); Py_VISIT(traverse_module_state->__pyx_kp_s_Optional_cudaEglFrame); Py_VISIT(traverse_module_state->__pyx_kp_s_Optional_cudaExternalMemoryBuffe); Py_VISIT(traverse_module_state->__pyx_kp_s_Optional_cudaExternalMemoryHandl); Py_VISIT(traverse_module_state->__pyx_kp_s_Optional_cudaExternalMemoryMipma); Py_VISIT(traverse_module_state->__pyx_kp_s_Optional_cudaExternalSemaphoreHa); Py_VISIT(traverse_module_state->__pyx_kp_s_Optional_cudaExternalSemaphoreSi); Py_VISIT(traverse_module_state->__pyx_kp_s_Optional_cudaExternalSemaphoreWa); Py_VISIT(traverse_module_state->__pyx_kp_s_Optional_cudaGraphInstantiatePar); Py_VISIT(traverse_module_state->__pyx_kp_s_Optional_cudaGraphNodeParams); Py_VISIT(traverse_module_state->__pyx_kp_s_Optional_cudaHostNodeParams); Py_VISIT(traverse_module_state->__pyx_kp_s_Optional_cudaKernelNodeAttrValue); Py_VISIT(traverse_module_state->__pyx_kp_s_Optional_cudaKernelNodeParams); Py_VISIT(traverse_module_state->__pyx_kp_s_Optional_cudaMemAllocNodeParams); Py_VISIT(traverse_module_state->__pyx_kp_s_Optional_cudaMemLocation); Py_VISIT(traverse_module_state->__pyx_kp_s_Optional_cudaMemPoolProps); Py_VISIT(traverse_module_state->__pyx_kp_s_Optional_cudaMemPoolPtrExportDat); Py_VISIT(traverse_module_state->__pyx_kp_s_Optional_cudaMemcpy3DParms); Py_VISIT(traverse_module_state->__pyx_kp_s_Optional_cudaMemcpy3DPeerParms); Py_VISIT(traverse_module_state->__pyx_kp_s_Optional_cudaMemsetParams); Py_VISIT(traverse_module_state->__pyx_kp_s_Optional_cudaResourceDesc); Py_VISIT(traverse_module_state->__pyx_kp_s_Optional_cudaResourceViewDesc); Py_VISIT(traverse_module_state->__pyx_kp_s_Optional_cudaStreamAttrValue); Py_VISIT(traverse_module_state->__pyx_kp_s_Optional_cudaTextureDesc); Py_VISIT(traverse_module_state->__pyx_kp_s_Optional_cudaUUID_t); Py_VISIT(traverse_module_state->__pyx_n_s_OverflowError); Py_VISIT(traverse_module_state->__pyx_n_s_PATCH_LEVEL); Py_VISIT(traverse_module_state->__pyx_kp_s_Possible_modes_for_stream_captu); Py_VISIT(traverse_module_state->__pyx_kp_s_Possible_stream_capture_statuse); Py_VISIT(traverse_module_state->__pyx_kp_s_Resource_location_flags_sysmem); Py_VISIT(traverse_module_state->__pyx_n_s_RuntimeError); Py_VISIT(traverse_module_state->__pyx_kp_u_Set_device_to_be_used_for_GPU_e); Py_VISIT(traverse_module_state->__pyx_kp_s_Shared_memory_carveout_configur); Py_VISIT(traverse_module_state->__pyx_kp_s_Specifies_performance_hint_with); Py_VISIT(traverse_module_state->__pyx_kp_s_Specifies_the_field_to_update_w); Py_VISIT(traverse_module_state->__pyx_kp_s_Specifies_the_memory_protection); Py_VISIT(traverse_module_state->__pyx_kp_s_Specifies_the_type_of_location); Py_VISIT(traverse_module_state->__pyx_n_s_Tuple); Py_VISIT(traverse_module_state->__pyx_kp_s_Tuple_int_List_int); Py_VISIT(traverse_module_state->__pyx_n_s_TypeError); Py_VISIT(traverse_module_state->__pyx_kp_s_Type_annotations_that_can_be_ap); Py_VISIT(traverse_module_state->__pyx_kp_s_Types_of_async_notification_tha); Py_VISIT(traverse_module_state->__pyx_kp_u_Unknown_type); Py_VISIT(traverse_module_state->__pyx_n_s_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_VdpDevice); Py_VISIT(traverse_module_state->__pyx_n_s_VdpDevice_2); Py_VISIT(traverse_module_state->__pyx_n_s_VdpDevice___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_VdpDevice___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_VdpDevice_getPtr); Py_VISIT(traverse_module_state->__pyx_kp_u_VdpGetProcAddress); Py_VISIT(traverse_module_state->__pyx_n_s_VdpGetProcAddress_2); Py_VISIT(traverse_module_state->__pyx_n_s_VdpGetProcAddress___reduce_cytho); Py_VISIT(traverse_module_state->__pyx_n_s_VdpGetProcAddress___setstate_cyt); Py_VISIT(traverse_module_state->__pyx_n_s_VdpGetProcAddress_getPtr); Py_VISIT(traverse_module_state->__pyx_kp_u_VdpOutputSurface); Py_VISIT(traverse_module_state->__pyx_n_s_VdpOutputSurface_2); Py_VISIT(traverse_module_state->__pyx_n_s_VdpOutputSurface___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_VdpOutputSurface___setstate_cyth); Py_VISIT(traverse_module_state->__pyx_n_s_VdpOutputSurface_getPtr); Py_VISIT(traverse_module_state->__pyx_kp_u_VdpVideoSurface); Py_VISIT(traverse_module_state->__pyx_n_s_VdpVideoSurface_2); Py_VISIT(traverse_module_state->__pyx_n_s_VdpVideoSurface___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_VdpVideoSurface___setstate_cytho); Py_VISIT(traverse_module_state->__pyx_n_s_VdpVideoSurface_getPtr); Py_VISIT(traverse_module_state->__pyx_kp_b__351); Py_VISIT(traverse_module_state->__pyx_kp_u__400); Py_VISIT(traverse_module_state->__pyx_kp_u__51); Py_VISIT(traverse_module_state->__pyx_kp_u__52); Py_VISIT(traverse_module_state->__pyx_kp_u__62); Py_VISIT(traverse_module_state->__pyx_kp_u__654); Py_VISIT(traverse_module_state->__pyx_n_s__655); Py_VISIT(traverse_module_state->__pyx_kp_s__657); Py_VISIT(traverse_module_state->__pyx_n_s__910); Py_VISIT(traverse_module_state->__pyx_kp_u_accessDescCount); Py_VISIT(traverse_module_state->__pyx_n_s_accessDescCount_2); Py_VISIT(traverse_module_state->__pyx_kp_u_accessDescCount_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_accessDescs); Py_VISIT(traverse_module_state->__pyx_n_s_accessDescs_2); Py_VISIT(traverse_module_state->__pyx_kp_u_accessDescs_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_accessPolicyMaxWindowSize); Py_VISIT(traverse_module_state->__pyx_n_s_accessPolicyMaxWindowSize_2); Py_VISIT(traverse_module_state->__pyx_kp_u_accessPolicyMaxWindowSize_ValueE); Py_VISIT(traverse_module_state->__pyx_kp_u_accessPolicyWindow); Py_VISIT(traverse_module_state->__pyx_n_s_accessPolicyWindow_2); Py_VISIT(traverse_module_state->__pyx_kp_u_accessPolicyWindow_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_addressMode); Py_VISIT(traverse_module_state->__pyx_n_s_addressMode_2); Py_VISIT(traverse_module_state->__pyx_kp_u_addressMode_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_advice); Py_VISIT(traverse_module_state->__pyx_kp_u_alignment); Py_VISIT(traverse_module_state->__pyx_n_s_alignment_2); Py_VISIT(traverse_module_state->__pyx_kp_u_alignment_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_alloc); Py_VISIT(traverse_module_state->__pyx_kp_u_allocType); Py_VISIT(traverse_module_state->__pyx_n_s_allocType_2); Py_VISIT(traverse_module_state->__pyx_kp_u_allocType_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_alloc_2); Py_VISIT(traverse_module_state->__pyx_kp_u_alloc_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct0); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct0___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct0___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct0_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct1); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct13); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct13___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct13___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct13_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct14); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct14___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct14___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct14_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct15); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct15___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct15___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct15_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct16); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct16___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct16___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct16_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct17); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct17___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct17___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct17_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct18); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct18___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct18___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct18_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct19); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct19___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct19___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct19_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct1___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct1___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct1_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct2); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct20); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct20___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct20___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct20_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct21); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct21___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct21___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct21_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct22); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct22___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct22___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct22_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct23); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct23___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct23___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct23_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct24); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct24___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct24___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct24_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct2___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct2___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct2_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct3); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct3___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct3___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct3_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct4); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct4___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct4___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct4_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct5); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct5___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct5___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct5_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct6); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct6___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct6___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_struct6_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_anon_union0); Py_VISIT(traverse_module_state->__pyx_n_s_anon_union0___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_union0___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_union0_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_anon_union1); Py_VISIT(traverse_module_state->__pyx_n_s_anon_union10); Py_VISIT(traverse_module_state->__pyx_n_s_anon_union10___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_union10___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_union10_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_anon_union1___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_union1___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_union1_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_anon_union2); Py_VISIT(traverse_module_state->__pyx_n_s_anon_union2___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_union2___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_union2_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_anon_union5); Py_VISIT(traverse_module_state->__pyx_n_s_anon_union5___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_union5___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_union5_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_anon_union6); Py_VISIT(traverse_module_state->__pyx_n_s_anon_union6___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_union6___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_union6_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_anon_union8); Py_VISIT(traverse_module_state->__pyx_n_s_anon_union8___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_union8___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_union8_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_anon_union9); Py_VISIT(traverse_module_state->__pyx_n_s_anon_union9___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_union9___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_anon_union9_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_args); Py_VISIT(traverse_module_state->__pyx_kp_u_array); Py_VISIT(traverse_module_state->__pyx_n_s_arrayIndex); Py_VISIT(traverse_module_state->__pyx_n_s_array_2); Py_VISIT(traverse_module_state->__pyx_kp_u_array_3); Py_VISIT(traverse_module_state->__pyx_kp_u_array_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_asyncEngineCount); Py_VISIT(traverse_module_state->__pyx_n_s_asyncEngineCount_2); Py_VISIT(traverse_module_state->__pyx_kp_u_asyncEngineCount_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_asyncio_coroutines); Py_VISIT(traverse_module_state->__pyx_n_s_attr); Py_VISIT(traverse_module_state->__pyx_n_s_attribute); Py_VISIT(traverse_module_state->__pyx_n_s_attributes); Py_VISIT(traverse_module_state->__pyx_kp_u_base_ptr); Py_VISIT(traverse_module_state->__pyx_n_s_base_ptr_2); Py_VISIT(traverse_module_state->__pyx_kp_u_base_ptr_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_binaryVersion); Py_VISIT(traverse_module_state->__pyx_n_s_binaryVersion_2); Py_VISIT(traverse_module_state->__pyx_kp_u_binaryVersion_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_blockDim); Py_VISIT(traverse_module_state->__pyx_n_s_blockDim_2); Py_VISIT(traverse_module_state->__pyx_kp_u_blockDim_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_blockSize); Py_VISIT(traverse_module_state->__pyx_kp_u_borderColor); Py_VISIT(traverse_module_state->__pyx_n_s_borderColor_2); Py_VISIT(traverse_module_state->__pyx_kp_u_borderColor_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_buffer); Py_VISIT(traverse_module_state->__pyx_n_s_bufferDesc); Py_VISIT(traverse_module_state->__pyx_kp_u_bytes); Py_VISIT(traverse_module_state->__pyx_kp_u_bytesOverBudget); Py_VISIT(traverse_module_state->__pyx_n_s_bytesOverBudget_2); Py_VISIT(traverse_module_state->__pyx_kp_u_bytesOverBudget_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_bytes_2); Py_VISIT(traverse_module_state->__pyx_kp_u_bytes_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_bytesize); Py_VISIT(traverse_module_state->__pyx_n_s_bytesize_2); Py_VISIT(traverse_module_state->__pyx_kp_u_bytesize_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_cacheConfig); Py_VISIT(traverse_module_state->__pyx_kp_u_cacheModeCA); Py_VISIT(traverse_module_state->__pyx_n_s_cacheModeCA_2); Py_VISIT(traverse_module_state->__pyx_kp_u_cacheModeCA_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_cadvice); Py_VISIT(traverse_module_state->__pyx_n_s_callback); Py_VISIT(traverse_module_state->__pyx_n_s_callbackFunc); Py_VISIT(traverse_module_state->__pyx_n_s_canAccessPeer); Py_VISIT(traverse_module_state->__pyx_kp_u_canMapHostMemory); Py_VISIT(traverse_module_state->__pyx_n_s_canMapHostMemory_2); Py_VISIT(traverse_module_state->__pyx_kp_u_canMapHostMemory_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_canUseHostPointerForRegisteredMe); Py_VISIT(traverse_module_state->__pyx_n_s_canUseHostPointerForRegisteredMe_2); Py_VISIT(traverse_module_state->__pyx_kp_u_canUseHostPointerForRegisteredMe_3); Py_VISIT(traverse_module_state->__pyx_n_s_captureStatus_out); Py_VISIT(traverse_module_state->__pyx_n_s_carray); Py_VISIT(traverse_module_state->__pyx_n_s_cattr); Py_VISIT(traverse_module_state->__pyx_n_s_cattribute); Py_VISIT(traverse_module_state->__pyx_n_s_cattributes); Py_VISIT(traverse_module_state->__pyx_n_s_cbuffer); Py_VISIT(traverse_module_state->__pyx_n_s_cbufferDesc_ptr); Py_VISIT(traverse_module_state->__pyx_n_s_ccacheConfig); Py_VISIT(traverse_module_state->__pyx_n_s_ccallback); Py_VISIT(traverse_module_state->__pyx_n_s_ccallbackFunc); Py_VISIT(traverse_module_state->__pyx_n_s_cchildGraph); Py_VISIT(traverse_module_state->__pyx_n_s_cclonedGraph); Py_VISIT(traverse_module_state->__pyx_n_s_cconfig); Py_VISIT(traverse_module_state->__pyx_n_s_cconn); Py_VISIT(traverse_module_state->__pyx_n_s_cd); Py_VISIT(traverse_module_state->__pyx_n_s_cd_ptr); Py_VISIT(traverse_module_state->__pyx_n_s_cdata); Py_VISIT(traverse_module_state->__pyx_n_s_cdataSizes); Py_VISIT(traverse_module_state->__pyx_n_s_cdata_ptr); Py_VISIT(traverse_module_state->__pyx_n_s_cdependencies); Py_VISIT(traverse_module_state->__pyx_n_s_cdependencies_out); Py_VISIT(traverse_module_state->__pyx_n_s_cdependencyData); Py_VISIT(traverse_module_state->__pyx_n_s_cdescList); Py_VISIT(traverse_module_state->__pyx_n_s_cdesc_ptr); Py_VISIT(traverse_module_state->__pyx_n_s_cdestroy); Py_VISIT(traverse_module_state->__pyx_n_s_cdevPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cdevPtr_ptr); Py_VISIT(traverse_module_state->__pyx_n_s_cdeviceList); Py_VISIT(traverse_module_state->__pyx_n_s_cdptr); Py_VISIT(traverse_module_state->__pyx_n_s_cdptr_out_ptr); Py_VISIT(traverse_module_state->__pyx_n_s_cdptr_ptr); Py_VISIT(traverse_module_state->__pyx_n_s_cdst); Py_VISIT(traverse_module_state->__pyx_n_s_cdst_ptr); Py_VISIT(traverse_module_state->__pyx_n_s_cedgeData); Py_VISIT(traverse_module_state->__pyx_n_s_cedgeData_out); Py_VISIT(traverse_module_state->__pyx_n_s_ceglStream); Py_VISIT(traverse_module_state->__pyx_n_s_ceglSync); Py_VISIT(traverse_module_state->__pyx_n_s_ceglframe_ptr); Py_VISIT(traverse_module_state->__pyx_n_s_cend); Py_VISIT(traverse_module_state->__pyx_n_s_centryFuncAddr); Py_VISIT(traverse_module_state->__pyx_n_s_centryFuncAddr_ptr); Py_VISIT(traverse_module_state->__pyx_n_s_cerror); Py_VISIT(traverse_module_state->__pyx_n_s_cevent); Py_VISIT(traverse_module_state->__pyx_n_s_cexportData_ptr); Py_VISIT(traverse_module_state->__pyx_n_s_cextMem); Py_VISIT(traverse_module_state->__pyx_n_s_cextSem); Py_VISIT(traverse_module_state->__pyx_n_s_cextSemArray); Py_VISIT(traverse_module_state->__pyx_n_s_cf); Py_VISIT(traverse_module_state->__pyx_n_s_cfmtDesc_ptr); Py_VISIT(traverse_module_state->__pyx_n_s_cfn); Py_VISIT(traverse_module_state->__pyx_n_s_cfrom); Py_VISIT(traverse_module_state->__pyx_n_s_cfunc); Py_VISIT(traverse_module_state->__pyx_n_s_cfunc_ptr); Py_VISIT(traverse_module_state->__pyx_n_s_cgraph); Py_VISIT(traverse_module_state->__pyx_n_s_cgraphExec); Py_VISIT(traverse_module_state->__pyx_n_s_chArray); Py_VISIT(traverse_module_state->__pyx_n_s_chDst); Py_VISIT(traverse_module_state->__pyx_n_s_chGraph); Py_VISIT(traverse_module_state->__pyx_n_s_chGraphExec); Py_VISIT(traverse_module_state->__pyx_n_s_chNode); Py_VISIT(traverse_module_state->__pyx_n_s_chSrc); Py_VISIT(traverse_module_state->__pyx_n_s_chStream); Py_VISIT(traverse_module_state->__pyx_n_s_chandleType); Py_VISIT(traverse_module_state->__pyx_kp_u_channelDesc); Py_VISIT(traverse_module_state->__pyx_n_s_channelDesc_2); Py_VISIT(traverse_module_state->__pyx_kp_u_channelDesc_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_cheight); Py_VISIT(traverse_module_state->__pyx_n_s_childGraph); Py_VISIT(traverse_module_state->__pyx_n_s_cimage); Py_VISIT(traverse_module_state->__pyx_n_s_cinstantiateParams_ptr); Py_VISIT(traverse_module_state->__pyx_n_s_ckernelParams); Py_VISIT(traverse_module_state->__pyx_n_s_ckind); Py_VISIT(traverse_module_state->__pyx_n_s_climit); Py_VISIT(traverse_module_state->__pyx_n_s_cline_in_traceback); Py_VISIT(traverse_module_state->__pyx_n_s_clocation_ptr); Py_VISIT(traverse_module_state->__pyx_kp_u_clockRate); Py_VISIT(traverse_module_state->__pyx_n_s_clockRate_2); Py_VISIT(traverse_module_state->__pyx_kp_u_clockRate_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_clonedGraph); Py_VISIT(traverse_module_state->__pyx_n_s_close); Py_VISIT(traverse_module_state->__pyx_kp_u_clusterDim); Py_VISIT(traverse_module_state->__pyx_kp_u_clusterDimMustBeSet); Py_VISIT(traverse_module_state->__pyx_n_s_clusterDimMustBeSet_2); Py_VISIT(traverse_module_state->__pyx_kp_u_clusterDimMustBeSet_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_clusterDim_2); Py_VISIT(traverse_module_state->__pyx_kp_u_clusterDim_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_clusterLaunch); Py_VISIT(traverse_module_state->__pyx_n_s_clusterLaunch_2); Py_VISIT(traverse_module_state->__pyx_kp_u_clusterLaunch_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_clusterSchedulingPolicyPreferenc); Py_VISIT(traverse_module_state->__pyx_n_s_clusterSchedulingPolicyPreferenc_2); Py_VISIT(traverse_module_state->__pyx_kp_u_clusterSchedulingPolicyPreferenc_3); Py_VISIT(traverse_module_state->__pyx_n_s_cmemHandleDesc_ptr); Py_VISIT(traverse_module_state->__pyx_n_s_cmemPool); Py_VISIT(traverse_module_state->__pyx_n_s_cmipmap); Py_VISIT(traverse_module_state->__pyx_n_s_cmipmapDesc_ptr); Py_VISIT(traverse_module_state->__pyx_n_s_cmipmappedArray); Py_VISIT(traverse_module_state->__pyx_n_s_cmode); Py_VISIT(traverse_module_state->__pyx_n_s_cnode); Py_VISIT(traverse_module_state->__pyx_n_s_cnodeParams_ptr); Py_VISIT(traverse_module_state->__pyx_n_s_cnodes); Py_VISIT(traverse_module_state->__pyx_n_s_cnvSciSyncAttrList); Py_VISIT(traverse_module_state->__pyx_n_s_cnvSciSyncAttrList_ptr); Py_VISIT(traverse_module_state->__pyx_n_s_cobject); Py_VISIT(traverse_module_state->__pyx_kp_u_computeMode); Py_VISIT(traverse_module_state->__pyx_n_s_computeMode_2); Py_VISIT(traverse_module_state->__pyx_kp_u_computeMode_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_computePreemptionSupported); Py_VISIT(traverse_module_state->__pyx_n_s_computePreemptionSupported_2); Py_VISIT(traverse_module_state->__pyx_kp_u_computePreemptionSupported_Value); Py_VISIT(traverse_module_state->__pyx_kp_u_concurrentKernels); Py_VISIT(traverse_module_state->__pyx_n_s_concurrentKernels_2); Py_VISIT(traverse_module_state->__pyx_kp_u_concurrentKernels_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_concurrentManagedAccess); Py_VISIT(traverse_module_state->__pyx_n_s_concurrentManagedAccess_2); Py_VISIT(traverse_module_state->__pyx_kp_u_concurrentManagedAccess_ValueErr); Py_VISIT(traverse_module_state->__pyx_kp_u_conditional); Py_VISIT(traverse_module_state->__pyx_n_s_conditional_2); Py_VISIT(traverse_module_state->__pyx_kp_u_conditional_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_config); Py_VISIT(traverse_module_state->__pyx_n_s_conn); Py_VISIT(traverse_module_state->__pyx_kp_u_constSizeBytes); Py_VISIT(traverse_module_state->__pyx_n_s_constSizeBytes_2); Py_VISIT(traverse_module_state->__pyx_kp_u_constSizeBytes_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_cooperative); Py_VISIT(traverse_module_state->__pyx_kp_u_cooperativeLaunch); Py_VISIT(traverse_module_state->__pyx_n_s_cooperativeLaunch_2); Py_VISIT(traverse_module_state->__pyx_kp_u_cooperativeLaunch_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_cooperativeMultiDeviceLaunch); Py_VISIT(traverse_module_state->__pyx_n_s_cooperativeMultiDeviceLaunch_2); Py_VISIT(traverse_module_state->__pyx_kp_u_cooperativeMultiDeviceLaunch_Val); Py_VISIT(traverse_module_state->__pyx_n_s_cooperative_2); Py_VISIT(traverse_module_state->__pyx_kp_u_cooperative_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_copyParams); Py_VISIT(traverse_module_state->__pyx_n_s_copyParams_2); Py_VISIT(traverse_module_state->__pyx_kp_u_copyParams_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_coriginalGraph); Py_VISIT(traverse_module_state->__pyx_n_s_coriginalNode); Py_VISIT(traverse_module_state->__pyx_n_s_count); Py_VISIT(traverse_module_state->__pyx_n_s_cpCopyParams_ptr); Py_VISIT(traverse_module_state->__pyx_n_s_cpCudaDevices); Py_VISIT(traverse_module_state->__pyx_n_s_cpCudaResource); Py_VISIT(traverse_module_state->__pyx_n_s_cpDependencies); Py_VISIT(traverse_module_state->__pyx_n_s_cpDependentNodes); Py_VISIT(traverse_module_state->__pyx_n_s_cpExportTableId_ptr); Py_VISIT(traverse_module_state->__pyx_n_s_cpHost); Py_VISIT(traverse_module_state->__pyx_n_s_cpHost_ptr); Py_VISIT(traverse_module_state->__pyx_n_s_cpMemsetParams_ptr); Py_VISIT(traverse_module_state->__pyx_n_s_cpNodeParams_ptr); Py_VISIT(traverse_module_state->__pyx_n_s_cpResDesc_ptr); Py_VISIT(traverse_module_state->__pyx_n_s_cpResViewDesc_ptr); Py_VISIT(traverse_module_state->__pyx_n_s_cpRootNodes); Py_VISIT(traverse_module_state->__pyx_n_s_cpStream); Py_VISIT(traverse_module_state->__pyx_n_s_cpTexDesc_ptr); Py_VISIT(traverse_module_state->__pyx_n_s_cp_ptr); Py_VISIT(traverse_module_state->__pyx_n_s_cparamsArray); Py_VISIT(traverse_module_state->__pyx_n_s_cpoolProps_ptr); Py_VISIT(traverse_module_state->__pyx_n_s_cprop_ptr); Py_VISIT(traverse_module_state->__pyx_n_s_cptr); Py_VISIT(traverse_module_state->__pyx_n_s_cptr_ptr); Py_VISIT(traverse_module_state->__pyx_n_s_cresource); Py_VISIT(traverse_module_state->__pyx_n_s_cresources); Py_VISIT(traverse_module_state->__pyx_n_s_cscope); Py_VISIT(traverse_module_state->__pyx_n_s_csemHandleDesc_ptr); Py_VISIT(traverse_module_state->__pyx_n_s_cshareableHandle); Py_VISIT(traverse_module_state->__pyx_n_s_cshareableHandle_ptr); Py_VISIT(traverse_module_state->__pyx_n_s_csrc); Py_VISIT(traverse_module_state->__pyx_n_s_csrc_ptr); Py_VISIT(traverse_module_state->__pyx_n_s_cstart); Py_VISIT(traverse_module_state->__pyx_n_s_cstream); Py_VISIT(traverse_module_state->__pyx_n_s_csurfObject); Py_VISIT(traverse_module_state->__pyx_n_s_ctarget); Py_VISIT(traverse_module_state->__pyx_n_s_ctexObject); Py_VISIT(traverse_module_state->__pyx_n_s_cto); Py_VISIT(traverse_module_state->__pyx_n_s_ctypes); Py_VISIT(traverse_module_state->__pyx_n_s_cuda); Py_VISIT(traverse_module_state->__pyx_n_s_cudaAccessPolicyWindow); Py_VISIT(traverse_module_state->__pyx_n_s_cudaAccessPolicyWindow___reduce); Py_VISIT(traverse_module_state->__pyx_n_s_cudaAccessPolicyWindow___setstat); Py_VISIT(traverse_module_state->__pyx_n_s_cudaAccessPolicyWindow_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaAccessProperty); Py_VISIT(traverse_module_state->__pyx_n_s_cudaAccessPropertyNormal); Py_VISIT(traverse_module_state->__pyx_n_s_cudaAccessPropertyPersisting); Py_VISIT(traverse_module_state->__pyx_n_s_cudaAccessPropertyStreaming); Py_VISIT(traverse_module_state->__pyx_n_s_cudaAddressModeBorder); Py_VISIT(traverse_module_state->__pyx_n_s_cudaAddressModeClamp); Py_VISIT(traverse_module_state->__pyx_n_s_cudaAddressModeMirror); Py_VISIT(traverse_module_state->__pyx_n_s_cudaAddressModeWrap); Py_VISIT(traverse_module_state->__pyx_n_s_cudaArrayColorAttachment); Py_VISIT(traverse_module_state->__pyx_n_s_cudaArrayCubemap); Py_VISIT(traverse_module_state->__pyx_n_s_cudaArrayDefault); Py_VISIT(traverse_module_state->__pyx_n_s_cudaArrayDeferredMapping); Py_VISIT(traverse_module_state->__pyx_n_s_cudaArrayGetInfo); Py_VISIT(traverse_module_state->__pyx_n_s_cudaArrayGetMemoryRequirements); Py_VISIT(traverse_module_state->__pyx_n_s_cudaArrayGetPlane); Py_VISIT(traverse_module_state->__pyx_n_s_cudaArrayGetSparseProperties); Py_VISIT(traverse_module_state->__pyx_n_s_cudaArrayLayered); Py_VISIT(traverse_module_state->__pyx_n_s_cudaArrayMemoryRequirements); Py_VISIT(traverse_module_state->__pyx_n_s_cudaArrayMemoryRequirements___re); Py_VISIT(traverse_module_state->__pyx_n_s_cudaArrayMemoryRequirements___se); Py_VISIT(traverse_module_state->__pyx_n_s_cudaArrayMemoryRequirements_getP); Py_VISIT(traverse_module_state->__pyx_n_s_cudaArraySparse); Py_VISIT(traverse_module_state->__pyx_n_s_cudaArraySparseProperties); Py_VISIT(traverse_module_state->__pyx_n_s_cudaArraySparsePropertiesSingleM); Py_VISIT(traverse_module_state->__pyx_n_s_cudaArraySparseProperties___redu); Py_VISIT(traverse_module_state->__pyx_n_s_cudaArraySparseProperties___sets); Py_VISIT(traverse_module_state->__pyx_n_s_cudaArraySparseProperties_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaArraySurfaceLoadStore); Py_VISIT(traverse_module_state->__pyx_n_s_cudaArrayTextureGather); Py_VISIT(traverse_module_state->__pyx_kp_u_cudaArray_const_t); Py_VISIT(traverse_module_state->__pyx_n_s_cudaArray_const_t_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaArray_const_t___reduce_cytho); Py_VISIT(traverse_module_state->__pyx_n_s_cudaArray_const_t___setstate_cyt); Py_VISIT(traverse_module_state->__pyx_n_s_cudaArray_const_t_getPtr); Py_VISIT(traverse_module_state->__pyx_kp_u_cudaArray_t); Py_VISIT(traverse_module_state->__pyx_n_s_cudaArray_t_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaArray_t___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_cudaArray_t___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_cudaArray_t_getPtr); Py_VISIT(traverse_module_state->__pyx_kp_u_cudaAsyncCallback); Py_VISIT(traverse_module_state->__pyx_kp_u_cudaAsyncCallbackHandle_t); Py_VISIT(traverse_module_state->__pyx_n_s_cudaAsyncCallbackHandle_t_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaAsyncCallbackHandle_t___redu); Py_VISIT(traverse_module_state->__pyx_n_s_cudaAsyncCallbackHandle_t___sets); Py_VISIT(traverse_module_state->__pyx_n_s_cudaAsyncCallbackHandle_t_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaAsyncCallback_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaAsyncCallback___reduce_cytho); Py_VISIT(traverse_module_state->__pyx_n_s_cudaAsyncCallback___setstate_cyt); Py_VISIT(traverse_module_state->__pyx_n_s_cudaAsyncCallback_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaAsyncNotificationInfo); Py_VISIT(traverse_module_state->__pyx_n_s_cudaAsyncNotificationInfo___redu); Py_VISIT(traverse_module_state->__pyx_n_s_cudaAsyncNotificationInfo___sets); Py_VISIT(traverse_module_state->__pyx_n_s_cudaAsyncNotificationInfo_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaAsyncNotificationInfo_t); Py_VISIT(traverse_module_state->__pyx_n_s_cudaAsyncNotificationType); Py_VISIT(traverse_module_state->__pyx_n_s_cudaAsyncNotificationTypeOverBud); Py_VISIT(traverse_module_state->__pyx_n_s_cudaBoundaryModeClamp); Py_VISIT(traverse_module_state->__pyx_n_s_cudaBoundaryModeTrap); Py_VISIT(traverse_module_state->__pyx_n_s_cudaBoundaryModeZero); Py_VISIT(traverse_module_state->__pyx_n_s_cudaCGScope); Py_VISIT(traverse_module_state->__pyx_n_s_cudaCGScopeGrid); Py_VISIT(traverse_module_state->__pyx_n_s_cudaCGScopeInvalid); Py_VISIT(traverse_module_state->__pyx_n_s_cudaCGScopeMultiGrid); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChannelFormatDesc); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChannelFormatDesc___reduce_c); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChannelFormatDesc___setstate); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChannelFormatDesc_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChannelFormatKind); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChannelFormatKindFloat); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChannelFormatKindNV12); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChannelFormatKindNone); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChannelFormatKindSigned); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChannelFormatKindSignedBlock); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChannelFormatKindSignedBlock_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChannelFormatKindSignedBlock_3); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChannelFormatKindSignedNorma); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChannelFormatKindSignedNorma_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChannelFormatKindSignedNorma_3); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChannelFormatKindSignedNorma_4); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChannelFormatKindSignedNorma_5); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChannelFormatKindSignedNorma_6); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChannelFormatKindUnsigned); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChannelFormatKindUnsignedBlo); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChannelFormatKindUnsignedBlo_10); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChannelFormatKindUnsignedBlo_11); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChannelFormatKindUnsignedBlo_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChannelFormatKindUnsignedBlo_3); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChannelFormatKindUnsignedBlo_4); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChannelFormatKindUnsignedBlo_5); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChannelFormatKindUnsignedBlo_6); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChannelFormatKindUnsignedBlo_7); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChannelFormatKindUnsignedBlo_8); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChannelFormatKindUnsignedBlo_9); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChannelFormatKindUnsignedNor); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChannelFormatKindUnsignedNor_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChannelFormatKindUnsignedNor_3); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChannelFormatKindUnsignedNor_4); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChannelFormatKindUnsignedNor_5); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChannelFormatKindUnsignedNor_6); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChildGraphNodeParams); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChildGraphNodeParams___reduc); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChildGraphNodeParams___setst); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChildGraphNodeParams_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaChooseDevice); Py_VISIT(traverse_module_state->__pyx_n_s_cudaClusterSchedulingPolicy); Py_VISIT(traverse_module_state->__pyx_n_s_cudaClusterSchedulingPolicyDefau); Py_VISIT(traverse_module_state->__pyx_n_s_cudaClusterSchedulingPolicyLoadB); Py_VISIT(traverse_module_state->__pyx_n_s_cudaClusterSchedulingPolicySprea); Py_VISIT(traverse_module_state->__pyx_n_s_cudaComputeMode); Py_VISIT(traverse_module_state->__pyx_n_s_cudaComputeModeDefault); Py_VISIT(traverse_module_state->__pyx_n_s_cudaComputeModeExclusive); Py_VISIT(traverse_module_state->__pyx_n_s_cudaComputeModeExclusiveProcess); Py_VISIT(traverse_module_state->__pyx_n_s_cudaComputeModeProhibited); Py_VISIT(traverse_module_state->__pyx_n_s_cudaConditionalNodeParams); Py_VISIT(traverse_module_state->__pyx_n_s_cudaConditionalNodeParams___redu); Py_VISIT(traverse_module_state->__pyx_n_s_cudaConditionalNodeParams___sets); Py_VISIT(traverse_module_state->__pyx_n_s_cudaConditionalNodeParams_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaCooperativeLaunchMultiDevice); Py_VISIT(traverse_module_state->__pyx_n_s_cudaCooperativeLaunchMultiDevice_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaCpuDeviceId); Py_VISIT(traverse_module_state->__pyx_n_s_cudaCreateChannelDesc); Py_VISIT(traverse_module_state->__pyx_n_s_cudaCreateSurfaceObject); Py_VISIT(traverse_module_state->__pyx_n_s_cudaCreateTextureObject); Py_VISIT(traverse_module_state->__pyx_n_s_cudaCtxResetPersistingL2Cache); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDataType); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDestroyExternalMemory); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDestroyExternalSemaphore); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDestroySurfaceObject); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDestroyTextureObject); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrAsyncEngineCount); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrCanFlushRemoteWrites); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrCanMapHostMemory); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrCanUseHostPointerForR); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrClockRate); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrClusterLaunch); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrComputeCapabilityMajo); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrComputeCapabilityMino); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrComputeMode); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrComputePreemptionSupp); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrConcurrentKernels); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrConcurrentManagedAcce); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrCooperativeLaunch); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrCooperativeMultiDevic); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrD3D12CigSupported); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrDeferredMappingCudaAr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrDirectManagedMemAcces); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrEccEnabled); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrGPUDirectRDMAFlushWri); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrGPUDirectRDMASupporte); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrGPUDirectRDMAWritesOr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrGlobalL1CacheSupporte); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrGlobalMemoryBusWidth); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrGpuOverlap); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrHostNativeAtomicSuppo); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrHostNumaId); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrHostRegisterReadOnlyS); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrHostRegisterSupported); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrIntegrated); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrIpcEventSupport); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrIsMultiGpuBoard); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrKernelExecTimeout); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrL2CacheSize); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrLocalL1CacheSupported); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrManagedMemory); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMax); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxAccessPolicyWindow); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxBlockDimX); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxBlockDimY); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxBlockDimZ); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxBlocksPerMultiproc); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxGridDimX); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxGridDimY); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxGridDimZ); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxPersistingL2CacheS); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxPitch); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxRegistersPerBlock); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxRegistersPerMultip); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxSharedMemoryPerBlo); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxSharedMemoryPerBlo_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxSharedMemoryPerMul); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxSurface1DLayeredLa); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxSurface1DLayeredWi); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxSurface1DWidth); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxSurface2DHeight); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxSurface2DLayeredHe); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxSurface2DLayeredLa); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxSurface2DLayeredWi); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxSurface2DWidth); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxSurface3DDepth); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxSurface3DHeight); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxSurface3DWidth); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxSurfaceCubemapLaye); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxSurfaceCubemapLaye_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxSurfaceCubemapWidt); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxTexture1DLayeredLa); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxTexture1DLayeredWi); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxTexture1DLinearWid); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxTexture1DMipmapped); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxTexture1DWidth); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxTexture2DGatherHei); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxTexture2DGatherWid); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxTexture2DHeight); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxTexture2DLayeredHe); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxTexture2DLayeredLa); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxTexture2DLayeredWi); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxTexture2DLinearHei); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxTexture2DLinearPit); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxTexture2DLinearWid); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxTexture2DMipmapped); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxTexture2DMipmapped_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxTexture2DWidth); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxTexture3DDepth); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxTexture3DDepthAlt); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxTexture3DHeight); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxTexture3DHeightAlt); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxTexture3DWidth); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxTexture3DWidthAlt); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxTextureCubemapLaye); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxTextureCubemapLaye_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxTextureCubemapWidt); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxThreadsPerBlock); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxThreadsPerMultiPro); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMaxTimelineSemaphoreI); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMemSyncDomainCount); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMemoryClockRate); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMemoryPoolSupportedHa); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMemoryPoolsSupported); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMpsEnabled); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMultiGpuBoardGroupID); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrMultiProcessorCount); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrNumaConfig); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrNumaId); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrPageableMemoryAccess); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrPageableMemoryAccessU); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrPciBusId); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrPciDeviceId); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrPciDomainId); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrReserved122); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrReserved123); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrReserved124); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrReserved127); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrReserved128); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrReserved129); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrReserved132); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrReserved92); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrReserved93); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrReserved94); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrReservedSharedMemoryP); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrSingleToDoublePrecisi); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrSparseCudaArraySuppor); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrStreamPrioritiesSuppo); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrSurfaceAlignment); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrTccDriver); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrTextureAlignment); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrTexturePitchAlignment); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrTimelineSemaphoreInte); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrTotalConstantMemory); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrUnifiedAddressing); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevAttrWarpSize); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevP2PAttrAccessSupported); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevP2PAttrCudaArrayAccessSup); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevP2PAttrNativeAtomicSuppor); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDevP2PAttrPerformanceRank); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceAttr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceBlockingSync); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceCanAccessPeer); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceCount); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceDisablePeerAccess); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceEnablePeerAccess); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceFlushGPUDirectRDMAWrit); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceGetAttribute); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceGetByPCIBusId); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceGetCacheConfig); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceGetDefaultMemPool); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceGetGraphMemAttribute); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceGetLimit); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceGetMemPool); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceGetNvSciSyncAttributes); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceGetP2PAttribute); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceGetPCIBusId); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceGetSharedMemConfig); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceGetStreamPriorityRange); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceGetTexture1DLinearMaxW); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceGraphMemTrim); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceLmemResizeToMax); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceMapHost); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceMask); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceNumaConfig); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceNumaConfigNone); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceNumaConfigNumaNode); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceP2PAttr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceProp); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceProp___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceProp___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceProp_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceRegisterAsyncNotificat); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceReset); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceScheduleAuto); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceScheduleBlockingSync); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceScheduleMask); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceScheduleSpin); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceScheduleYield); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceSetCacheConfig); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceSetGraphMemAttribute); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceSetLimit); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceSetMemPool); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceSetSharedMemConfig); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceSyncMemops); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceSynchronize); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDeviceUnregisterAsyncNotific); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDriverEntryPointQueryResult); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDriverEntryPointSuccess); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDriverEntryPointSymbolNotFou); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDriverEntryPointVersionNotSu); Py_VISIT(traverse_module_state->__pyx_n_s_cudaDriverGetVersion); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEGLStreamConsumerAcquireFram); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEGLStreamConsumerConnect); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEGLStreamConsumerConnectWith); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEGLStreamConsumerDisconnect); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEGLStreamConsumerReleaseFram); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEGLStreamProducerConnect); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEGLStreamProducerDisconnect); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEGLStreamProducerPresentFram); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEGLStreamProducerReturnFrame); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormat); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatA); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatABGR); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatARGB); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatAYUV); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatAYUV_ER); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatBGRA); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatBayer10BGGR); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatBayer10CCCC); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatBayer10GBRG); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatBayer10GRBG); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatBayer10RGGB); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatBayer12BCCR); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatBayer12BGGR); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatBayer12CBRC); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatBayer12CCCC); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatBayer12CRBC); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatBayer12GBRG); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatBayer12GRBG); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatBayer12RCCB); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatBayer12RGGB); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatBayer14BGGR); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatBayer14GBRG); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatBayer14GRBG); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatBayer14RGGB); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatBayer20BGGR); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatBayer20GBRG); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatBayer20GRBG); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatBayer20RGGB); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatBayerBCCR); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatBayerBGGR); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatBayerCBRC); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatBayerCRBC); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatBayerGBRG); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatBayerGRBG); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatBayerIspBGGR); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatBayerIspGBRG); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatBayerIspGRBG); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatBayerIspRGGB); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatBayerRCCB); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatBayerRGGB); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatL); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatR); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatRG); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatRGBA); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatUYVY422); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatUYVY_ER); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatVYUY); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatVYUY_ER); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatY); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatY10V10U10_420S); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatY10V10U10_420S_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatY10V10U10_420S_3); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatY10V10U10_420S_4); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatY10V10U10_420S_5); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatY10V10U10_422S); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatY10V10U10_422S_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatY10V10U10_422S_3); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatY10V10U10_444S); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatY10V10U10_444S_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatY10V10U10_444S_3); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatY10_709_ER); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatY10_ER); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatY12V12U12_420S); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatY12V12U12_420S_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatY12V12U12_420S_3); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatY12V12U12_444S); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatY12V12U12_444S_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatY12V12U12_444S_3); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatY12_709_ER); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatY12_ER); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYUV420Planar); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYUV420Planar_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYUV420Planar_7); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYUV420Planar_E); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYUV420SemiPlan); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYUV420SemiPlan_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYUV420SemiPlan_3); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYUV420SemiPlan_4); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYUV422Planar); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYUV422Planar_E); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYUV422SemiPlan); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYUV422SemiPlan_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYUV444Planar); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYUV444Planar_E); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYUV444SemiPlan); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYUV444SemiPlan_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYUVA); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYUVA_ER); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYUYV422); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYUYV_ER); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYVU420Planar); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYVU420Planar_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYVU420Planar_7); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYVU420Planar_E); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYVU420SemiPlan); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYVU420SemiPlan_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYVU420SemiPlan_3); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYVU420SemiPlan_4); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYVU422Planar); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYVU422Planar_E); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYVU422SemiPlan); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYVU422SemiPlan_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYVU444Planar); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYVU444Planar_E); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYVU444SemiPlan); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYVU444SemiPlan_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYVYU); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatYVYU_ER); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatY_709_ER); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglColorFormatY_ER); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglFrame); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglFrameType); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglFrameTypeArray); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglFrameTypePitch); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglFrame_st); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglFrame_st___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglFrame_st___setstate_cytho); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglFrame_st_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglPlaneDesc); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglPlaneDesc_st); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglPlaneDesc_st___reduce_cyt); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglPlaneDesc_st___setstate_c); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglPlaneDesc_st_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglResourceLocationFlags); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglResourceLocationSysmem); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglResourceLocationVidmem); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEglStreamConnection); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEnableDefault); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEnableLegacyStream); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEnablePerThreadDefaultStream); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorAddressOfConstant); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorAlreadyAcquired); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorAlreadyMapped); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorApiFailureBase); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorArrayIsMapped); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorAssert); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorCallRequiresNewerDriver); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorCapturedEvent); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorCdpNotSupported); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorCdpVersionMismatch); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorCompatNotSupportedOnDev); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorContextIsDestroyed); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorCooperativeLaunchTooLar); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorCudartUnloading); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorDeviceAlreadyInUse); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorDeviceNotLicensed); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorDeviceUninitialized); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorDevicesUnavailable); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorDuplicateSurfaceName); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorDuplicateTextureName); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorDuplicateVariableName); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorECCUncorrectable); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorExternalDevice); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorFileNotFound); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorFunctionNotLoaded); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorGraphExecUpdateFailure); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorHardwareStackError); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorHostMemoryAlreadyRegist); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorHostMemoryNotRegistered); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorIllegalAddress); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorIllegalInstruction); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorIllegalState); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorIncompatibleDriverConte); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorInitializationError); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorInsufficientDriver); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorInvalidAddressSpace); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorInvalidChannelDescripto); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorInvalidClusterSize); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorInvalidConfiguration); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorInvalidDevice); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorInvalidDeviceFunction); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorInvalidDevicePointer); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorInvalidFilterSetting); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorInvalidGraphicsContext); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorInvalidHostPointer); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorInvalidKernelImage); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorInvalidMemcpyDirection); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorInvalidNormSetting); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorInvalidPc); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorInvalidPitchValue); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorInvalidPtx); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorInvalidResourceConfigur); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorInvalidResourceHandle); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorInvalidResourceType); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorInvalidSource); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorInvalidSurface); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorInvalidSymbol); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorInvalidTexture); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorInvalidTextureBinding); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorInvalidValue); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorJitCompilationDisabled); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorJitCompilerNotFound); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorLaunchFailure); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorLaunchFileScopedSurf); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorLaunchFileScopedTex); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorLaunchIncompatibleTextu); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorLaunchMaxDepthExceeded); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorLaunchOutOfResources); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorLaunchPendingCountExcee); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorLaunchTimeout); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorLossyQuery); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorMapBufferObjectFailed); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorMemoryAllocation); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorMemoryValueTooLarge); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorMisalignedAddress); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorMissingConfiguration); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorMixedDeviceExecution); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorMpsClientTerminated); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorMpsConnectionFailed); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorMpsMaxClientsReached); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorMpsMaxConnectionsReache); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorMpsRpcFailure); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorMpsServerNotReady); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorNoDevice); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorNoKernelImageForDevice); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorNotMapped); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorNotMappedAsArray); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorNotMappedAsPointer); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorNotPermitted); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorNotReady); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorNotSupported); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorNotYetImplemented); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorNvlinkUncorrectable); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorOperatingSystem); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorPeerAccessAlreadyEnable); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorPeerAccessNotEnabled); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorPeerAccessUnsupported); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorPriorLaunchFailure); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorProfilerAlreadyStarted); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorProfilerAlreadyStopped); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorProfilerDisabled); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorProfilerNotInitialized); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorSetOnActiveProcess); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorSharedObjectInitFailed); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorSharedObjectSymbolNotFo); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorSoftwareValidityNotEsta); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorStartupFailure); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorStreamCaptureImplicit); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorStreamCaptureInvalidate); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorStreamCaptureIsolation); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorStreamCaptureMerge); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorStreamCaptureUnjoined); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorStreamCaptureUnmatched); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorStreamCaptureUnsupporte); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorStreamCaptureWrongThrea); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorStubLibrary); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorSymbolNotFound); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorSyncDepthExceeded); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorSynchronizationError); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorSystemDriverMismatch); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorSystemNotReady); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorTextureFetchFailed); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorTextureNotBound); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorTimeout); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorTooManyPeers); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorUnknown); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorUnmapBufferObjectFailed); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorUnsupportedDevSideSync); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorUnsupportedExecAffinity); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorUnsupportedLimit); Py_VISIT(traverse_module_state->__pyx_n_s_cudaErrorUnsupportedPtxVersion); Py_VISIT(traverse_module_state->__pyx_n_s_cudaError_t); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEventBlockingSync); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEventCreate); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEventCreateFromEGLSync); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEventCreateWithFlags); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEventDefault); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEventDestroy); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEventDisableTiming); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEventElapsedTime); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEventInterprocess); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEventQuery); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEventRecord); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEventRecordDefault); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEventRecordExternal); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEventRecordNodeParams); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEventRecordNodeParams___redu); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEventRecordNodeParams___sets); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEventRecordNodeParams_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEventRecordWithFlags); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEventSynchronize); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEventWaitDefault); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEventWaitExternal); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEventWaitNodeParams); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEventWaitNodeParams___reduce); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEventWaitNodeParams___setsta); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEventWaitNodeParams_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaEvent_t); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExtent); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExtent___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExtent___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExtent_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalMemoryBufferDesc); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalMemoryBufferDesc___r); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalMemoryBufferDesc___s); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalMemoryBufferDesc_get); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalMemoryDedicated); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalMemoryGetMappedBuffe); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalMemoryGetMappedMipma); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalMemoryHandleDesc); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalMemoryHandleDesc___r); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalMemoryHandleDesc___s); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalMemoryHandleDesc_get); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalMemoryHandleType); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalMemoryHandleTypeD3D1); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalMemoryHandleTypeD3D1_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalMemoryHandleTypeD3D1_3); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalMemoryHandleTypeD3D1_4); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalMemoryHandleTypeNvSc); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalMemoryHandleTypeOpaq); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalMemoryHandleTypeOpaq_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalMemoryHandleTypeOpaq_3); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalMemoryMipmappedArray); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalMemoryMipmappedArray_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalMemoryMipmappedArray_3); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalMemoryMipmappedArray_4); Py_VISIT(traverse_module_state->__pyx_kp_u_cudaExternalMemory_t); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalMemory_t_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalMemory_t___reduce_cy); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalMemory_t___setstate); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalMemory_t_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreHandleDesc); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreHandleDesc_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreHandleDesc_3); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreHandleDesc_4); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreHandleType); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreHandleTypeD); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreHandleTypeD_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreHandleTypeK); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreHandleTypeK_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreHandleTypeN); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreHandleTypeO); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreHandleTypeO_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreHandleTypeO_3); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreHandleTypeT); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreHandleTypeT_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreSignalNodeP); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreSignalNodeP_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreSignalNodeP_3); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreSignalNodeP_4); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreSignalNodeP_5); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreSignalNodeP_6); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreSignalNodeP_7); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreSignalNodeP_8); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreSignalParam); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreSignalParam_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreSignalParam_3); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreSignalParam_4); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreSignalSkipN); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreWaitNodePar); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreWaitNodePar_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreWaitNodePar_3); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreWaitNodePar_4); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreWaitNodePar_5); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreWaitNodePar_6); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreWaitNodePar_7); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreWaitNodePar_8); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreWaitParams); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreWaitParams_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreWaitParams_3); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreWaitParams_4); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphoreWaitSkipNvS); Py_VISIT(traverse_module_state->__pyx_kp_u_cudaExternalSemaphore_t); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphore_t_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphore_t___reduce); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphore_t___setsta); Py_VISIT(traverse_module_state->__pyx_n_s_cudaExternalSemaphore_t_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFilterModeLinear); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFilterModePoint); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFlushGPUDirectRDMAWritesOpti); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFlushGPUDirectRDMAWritesOpti_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFlushGPUDirectRDMAWritesOpti_3); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFlushGPUDirectRDMAWritesScop); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFlushGPUDirectRDMAWritesTarg); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFlushGPUDirectRDMAWritesTarg_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFlushGPUDirectRDMAWritesToAl); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFlushGPUDirectRDMAWritesToOw); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFormatModeAuto); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFormatModeForced); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFree); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFreeArray); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFreeAsync); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFreeHost); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFreeMipmappedArray); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFuncAttribute); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFuncAttributeClusterDimMustB); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFuncAttributeClusterScheduli); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFuncAttributeMax); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFuncAttributeMaxDynamicShare); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFuncAttributeNonPortableClus); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFuncAttributePreferredShared); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFuncAttributeRequiredCluster); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFuncAttributeRequiredCluster_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFuncAttributeRequiredCluster_3); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFuncAttributes); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFuncAttributes___reduce_cyth); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFuncAttributes___setstate_cy); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFuncAttributes_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFuncCache); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFuncCachePreferEqual); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFuncCachePreferL1); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFuncCachePreferNone); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFuncCachePreferShared); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFuncGetAttributes); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFuncSetAttribute); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFuncSetCacheConfig); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFuncSetSharedMemConfig); Py_VISIT(traverse_module_state->__pyx_n_s_cudaFunction_t); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGLDeviceList); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGLDeviceListAll); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGLDeviceListCurrentFrame); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGLDeviceListNextFrame); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGLGetDevices); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGLMapFlags); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGLMapFlagsNone); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGLMapFlagsReadOnly); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGLMapFlagsWriteDiscard); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGPUDirectRDMAWritesOrdering); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGPUDirectRDMAWritesOrderingA); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGPUDirectRDMAWritesOrderingN); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGPUDirectRDMAWritesOrderingO); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGetChannelDesc); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGetDevice); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGetDeviceCount); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGetDeviceFlags); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGetDeviceProperties); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGetDriverEntryPoint); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGetDriverEntryPointByVersion); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGetDriverEntryPointFlags); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGetErrorName); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGetErrorString); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGetExportTable); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGetKernel); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGetLastError); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGetMipmappedArrayLevel); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGetSurfaceObjectResourceDesc); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGetTextureObjectResourceDesc); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGetTextureObjectResourceView); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGetTextureObjectTextureDesc); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphAddChildGraphNode); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphAddChildGraphNode_local); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphAddDependencies); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphAddDependencies_locals); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphAddDependencies_v2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphAddDependencies_v2_loca); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphAddEmptyNode); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphAddEmptyNode_locals_gen); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphAddEventRecordNode); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphAddEventRecordNode_loca); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphAddEventWaitNode); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphAddEventWaitNode_locals); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphAddExternalSemaphoresSi); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphAddExternalSemaphoresSi_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphAddExternalSemaphoresWa); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphAddExternalSemaphoresWa_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphAddHostNode); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphAddHostNode_locals_gene); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphAddKernelNode); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphAddKernelNode_locals_ge); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphAddMemAllocNode); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphAddMemAllocNode_locals); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphAddMemFreeNode); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphAddMemFreeNode_locals_g); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphAddMemcpyNode); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphAddMemcpyNode1D); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphAddMemcpyNode1D_locals); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphAddMemcpyNode_locals_ge); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphAddMemsetNode); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphAddMemsetNode_locals_ge); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphAddNode); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphAddNode_locals_genexpr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphAddNode_v2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphAddNode_v2_locals_genex); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphChildGraphNodeGetGraph); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphClone); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphCondAssignDefault); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphCondTypeIf); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphCondTypeWhile); Py_VISIT(traverse_module_state->__pyx_kp_u_cudaGraphConditionalHandle); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphConditionalHandleCreate); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphConditionalHandleFlags); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphConditionalHandle_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphConditionalHandle___red); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphConditionalHandle___set); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphConditionalHandle_getPt); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphConditionalNodeType); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphCreate); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphDebugDotFlags); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphDebugDotFlagsConditiona); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphDebugDotFlagsEventNodeP); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphDebugDotFlagsExtSemasSi); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphDebugDotFlagsExtSemasWa); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphDebugDotFlagsHandles); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphDebugDotFlagsHostNodePa); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphDebugDotFlagsKernelNode); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphDebugDotFlagsKernelNode_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphDebugDotFlagsMemcpyNode); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphDebugDotFlagsMemsetNode); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphDebugDotFlagsVerbose); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphDebugDotPrint); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphDependencyType); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphDependencyTypeDefault); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphDependencyTypeProgramma); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphDestroy); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphDestroyNode); Py_VISIT(traverse_module_state->__pyx_kp_u_cudaGraphDeviceNode_t); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphDeviceNode_t_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphDeviceNode_t___reduce_c); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphDeviceNode_t___setstate); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphDeviceNode_t_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphEdgeData); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphEdgeData_st); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphEdgeData_st___reduce_cy); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphEdgeData_st___setstate); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphEdgeData_st_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphEventRecordNodeGetEvent); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphEventRecordNodeSetEvent); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphEventWaitNodeGetEvent); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphEventWaitNodeSetEvent); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphExecChildGraphNodeSetPa); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphExecDestroy); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphExecEventRecordNodeSetE); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphExecEventWaitNodeSetEve); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphExecExternalSemaphoresS); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphExecExternalSemaphoresW); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphExecGetFlags); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphExecHostNodeSetParams); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphExecKernelNodeSetParams); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphExecMemcpyNodeSetParams); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphExecMemcpyNodeSetParams_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphExecMemsetNodeSetParams); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphExecNodeSetParams); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphExecUpdate); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphExecUpdateError); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphExecUpdateErrorAttribut); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphExecUpdateErrorFunction); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphExecUpdateErrorNodeType); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphExecUpdateErrorNotSuppo); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphExecUpdateErrorParamete); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphExecUpdateErrorTopology); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphExecUpdateErrorUnsuppor); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphExecUpdateResult); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphExecUpdateResultInfo); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphExecUpdateResultInfo_st); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphExecUpdateResultInfo_st_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphExecUpdateResultInfo_st_3); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphExecUpdateResultInfo_st_4); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphExecUpdateSuccess); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphExec_t); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphExternalSemaphoresSigna); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphExternalSemaphoresSigna_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphExternalSemaphoresWaitN); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphExternalSemaphoresWaitN_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphGetEdges); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphGetEdges_v2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphGetNodes); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphGetRootNodes); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphHostNodeGetParams); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphHostNodeSetParams); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphInstantiate); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphInstantiateError); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphInstantiateFlagAutoFree); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphInstantiateFlagDeviceLa); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphInstantiateFlagUpload); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphInstantiateFlagUseNodeP); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphInstantiateFlags); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphInstantiateInvalidStruc); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphInstantiateMultipleDevi); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphInstantiateNodeOperatio); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphInstantiateParams); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphInstantiateParams_st); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphInstantiateParams_st_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphInstantiateParams_st_3); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphInstantiateParams_st_ge); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphInstantiateResult); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphInstantiateSuccess); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphInstantiateWithFlags); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphInstantiateWithParams); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphKernelNodeCopyAttribute); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphKernelNodeField); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphKernelNodeFieldEnabled); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphKernelNodeFieldGridDim); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphKernelNodeFieldInvalid); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphKernelNodeFieldParam); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphKernelNodeGetAttribute); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphKernelNodeGetParams); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphKernelNodePortDefault); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphKernelNodePortLaunchCom); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphKernelNodePortProgramma); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphKernelNodeSetAttribute); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphKernelNodeSetParams); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphKernelNodeUpdate); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphKernelNodeUpdate___redu); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphKernelNodeUpdate___sets); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphKernelNodeUpdate_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphLaunch); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphMemAllocNodeGetParams); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphMemAttrReservedMemCurre); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphMemAttrReservedMemHigh); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphMemAttrUsedMemCurrent); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphMemAttrUsedMemHigh); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphMemAttributeType); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphMemFreeNodeGetParams); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphMemcpyNodeGetParams); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphMemcpyNodeSetParams); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphMemcpyNodeSetParams1D); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphMemsetNodeGetParams); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphMemsetNodeSetParams); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphNodeFindInClone); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphNodeGetDependencies); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphNodeGetDependencies_v2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphNodeGetDependentNodes); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphNodeGetDependentNodes_v); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphNodeGetEnabled); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphNodeGetType); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphNodeParams); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphNodeParams___reduce_cyt); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphNodeParams___setstate_c); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphNodeParams_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphNodeSetEnabled); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphNodeSetParams); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphNodeType); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphNodeTypeConditional); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphNodeTypeCount); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphNodeTypeEmpty); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphNodeTypeEventRecord); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphNodeTypeExtSemaphoreSig); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphNodeTypeExtSemaphoreWai); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphNodeTypeGraph); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphNodeTypeHost); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphNodeTypeKernel); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphNodeTypeMemAlloc); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphNodeTypeMemFree); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphNodeTypeMemcpy); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphNodeTypeMemset); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphNodeTypeWaitEvent); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphNode_t); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphReleaseUserObject); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphRemoveDependencies); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphRemoveDependencies_loca); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphRemoveDependencies_v2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphRemoveDependencies_v2_l); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphRetainUserObject); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphUpload); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphUserObjectMove); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraph_t); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphicsCubeFace); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphicsCubeFaceNegativeX); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphicsCubeFaceNegativeY); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphicsCubeFaceNegativeZ); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphicsCubeFacePositiveX); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphicsCubeFacePositiveY); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphicsCubeFacePositiveZ); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphicsEGLRegisterImage); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphicsGLRegisterBuffer); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphicsGLRegisterImage); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphicsMapFlags); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphicsMapFlagsNone); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphicsMapFlagsReadOnly); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphicsMapFlagsWriteDiscard); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphicsMapResources); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphicsRegisterFlags); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphicsRegisterFlagsNone); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphicsRegisterFlagsReadOnl); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphicsRegisterFlagsSurface); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphicsRegisterFlagsTexture); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphicsRegisterFlagsWriteDi); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphicsResourceGetMappedEgl); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphicsResourceGetMappedMip); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphicsResourceGetMappedPoi); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphicsResourceSetMapFlags); Py_VISIT(traverse_module_state->__pyx_kp_u_cudaGraphicsResource_t); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphicsResource_t_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphicsResource_t___reduce); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphicsResource_t___setstat); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphicsResource_t_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphicsSubResourceGetMapped); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphicsUnmapResources); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphicsUnregisterResource); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphicsVDPAURegisterOutputS); Py_VISIT(traverse_module_state->__pyx_n_s_cudaGraphicsVDPAURegisterVideoSu); Py_VISIT(traverse_module_state->__pyx_n_s_cudaHostAlloc); Py_VISIT(traverse_module_state->__pyx_n_s_cudaHostAllocDefault); Py_VISIT(traverse_module_state->__pyx_n_s_cudaHostAllocMapped); Py_VISIT(traverse_module_state->__pyx_n_s_cudaHostAllocPortable); Py_VISIT(traverse_module_state->__pyx_n_s_cudaHostAllocWriteCombined); Py_VISIT(traverse_module_state->__pyx_kp_u_cudaHostFn_t); Py_VISIT(traverse_module_state->__pyx_n_s_cudaHostFn_t_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaHostFn_t___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_cudaHostFn_t___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_cudaHostFn_t_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaHostGetDevicePointer); Py_VISIT(traverse_module_state->__pyx_n_s_cudaHostGetFlags); Py_VISIT(traverse_module_state->__pyx_n_s_cudaHostNodeParams); Py_VISIT(traverse_module_state->__pyx_n_s_cudaHostNodeParamsV2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaHostNodeParamsV2___reduce_cy); Py_VISIT(traverse_module_state->__pyx_n_s_cudaHostNodeParamsV2___setstate); Py_VISIT(traverse_module_state->__pyx_n_s_cudaHostNodeParamsV2_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaHostNodeParams___reduce_cyth); Py_VISIT(traverse_module_state->__pyx_n_s_cudaHostNodeParams___setstate_cy); Py_VISIT(traverse_module_state->__pyx_n_s_cudaHostNodeParams_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaHostRegister); Py_VISIT(traverse_module_state->__pyx_n_s_cudaHostRegisterDefault); Py_VISIT(traverse_module_state->__pyx_n_s_cudaHostRegisterIoMemory); Py_VISIT(traverse_module_state->__pyx_n_s_cudaHostRegisterMapped); Py_VISIT(traverse_module_state->__pyx_n_s_cudaHostRegisterPortable); Py_VISIT(traverse_module_state->__pyx_n_s_cudaHostRegisterReadOnly); Py_VISIT(traverse_module_state->__pyx_n_s_cudaHostUnregister); Py_VISIT(traverse_module_state->__pyx_n_s_cudaImportExternalMemory); Py_VISIT(traverse_module_state->__pyx_n_s_cudaImportExternalSemaphore); Py_VISIT(traverse_module_state->__pyx_n_s_cudaInitDevice); Py_VISIT(traverse_module_state->__pyx_n_s_cudaInitDeviceFlagsAreValid); Py_VISIT(traverse_module_state->__pyx_n_s_cudaInvalidDeviceId); Py_VISIT(traverse_module_state->__pyx_n_s_cudaIpcCloseMemHandle); Py_VISIT(traverse_module_state->__pyx_n_s_cudaIpcEventHandle_st); Py_VISIT(traverse_module_state->__pyx_n_s_cudaIpcEventHandle_st___reduce_c); Py_VISIT(traverse_module_state->__pyx_n_s_cudaIpcEventHandle_st___setstate); Py_VISIT(traverse_module_state->__pyx_n_s_cudaIpcEventHandle_st_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaIpcEventHandle_t); Py_VISIT(traverse_module_state->__pyx_n_s_cudaIpcGetEventHandle); Py_VISIT(traverse_module_state->__pyx_n_s_cudaIpcGetMemHandle); Py_VISIT(traverse_module_state->__pyx_n_s_cudaIpcMemHandle_st); Py_VISIT(traverse_module_state->__pyx_n_s_cudaIpcMemHandle_st___reduce_cyt); Py_VISIT(traverse_module_state->__pyx_n_s_cudaIpcMemHandle_st___setstate_c); Py_VISIT(traverse_module_state->__pyx_n_s_cudaIpcMemHandle_st_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaIpcMemHandle_t); Py_VISIT(traverse_module_state->__pyx_n_s_cudaIpcMemLazyEnablePeerAccess); Py_VISIT(traverse_module_state->__pyx_n_s_cudaIpcOpenEventHandle); Py_VISIT(traverse_module_state->__pyx_n_s_cudaIpcOpenMemHandle); Py_VISIT(traverse_module_state->__pyx_n_s_cudaKernelNodeAttrID); Py_VISIT(traverse_module_state->__pyx_n_s_cudaKernelNodeAttrValue); Py_VISIT(traverse_module_state->__pyx_n_s_cudaKernelNodeAttributeAccessPol); Py_VISIT(traverse_module_state->__pyx_n_s_cudaKernelNodeAttributeClusterDi); Py_VISIT(traverse_module_state->__pyx_n_s_cudaKernelNodeAttributeClusterSc); Py_VISIT(traverse_module_state->__pyx_n_s_cudaKernelNodeAttributeCooperati); Py_VISIT(traverse_module_state->__pyx_n_s_cudaKernelNodeAttributeDeviceUpd); Py_VISIT(traverse_module_state->__pyx_n_s_cudaKernelNodeAttributeMemSyncDo); Py_VISIT(traverse_module_state->__pyx_n_s_cudaKernelNodeAttributeMemSyncDo_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaKernelNodeAttributePreferred); Py_VISIT(traverse_module_state->__pyx_n_s_cudaKernelNodeAttributePriority); Py_VISIT(traverse_module_state->__pyx_n_s_cudaKernelNodeParams); Py_VISIT(traverse_module_state->__pyx_n_s_cudaKernelNodeParamsV2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaKernelNodeParamsV2___reduce); Py_VISIT(traverse_module_state->__pyx_n_s_cudaKernelNodeParamsV2___setstat); Py_VISIT(traverse_module_state->__pyx_n_s_cudaKernelNodeParamsV2_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaKernelNodeParams___reduce_cy); Py_VISIT(traverse_module_state->__pyx_n_s_cudaKernelNodeParams___setstate); Py_VISIT(traverse_module_state->__pyx_n_s_cudaKernelNodeParams_getPtr); Py_VISIT(traverse_module_state->__pyx_kp_u_cudaKernel_t); Py_VISIT(traverse_module_state->__pyx_n_s_cudaKernel_t_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaKernel_t___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_cudaKernel_t___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_cudaKernel_t_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLaunchAttribute); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLaunchAttributeAccessPolicyW); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLaunchAttributeClusterDimens); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLaunchAttributeClusterSchedu); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLaunchAttributeCooperative); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLaunchAttributeDeviceUpdatab); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLaunchAttributeID); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLaunchAttributeIgnore); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLaunchAttributeLaunchComplet); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLaunchAttributeMemSyncDomain); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLaunchAttributeMemSyncDomain_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLaunchAttributePreferredShar); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLaunchAttributePriority); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLaunchAttributeProgrammaticE); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLaunchAttributeProgrammaticS); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLaunchAttributeSynchronizati); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLaunchAttributeValue); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLaunchAttributeValue___reduc); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLaunchAttributeValue___setst); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLaunchAttributeValue_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLaunchAttribute_st); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLaunchAttribute_st___reduce); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLaunchAttribute_st___setstat); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLaunchAttribute_st_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLaunchHostFunc); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLaunchMemSyncDomain); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLaunchMemSyncDomainDefault); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLaunchMemSyncDomainMap); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLaunchMemSyncDomainMap_st); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLaunchMemSyncDomainMap_st_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLaunchMemSyncDomainMap_st_3); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLaunchMemSyncDomainMap_st_ge); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLaunchMemSyncDomainRemote); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLimit); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLimitDevRuntimePendingLaunch); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLimitDevRuntimeSyncDepth); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLimitMallocHeapSize); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLimitMaxL2FetchGranularity); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLimitPersistingL2CacheSize); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLimitPrintfFifoSize); Py_VISIT(traverse_module_state->__pyx_n_s_cudaLimitStackSize); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMalloc); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMalloc3D); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMalloc3DArray); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMallocArray); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMallocAsync); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMallocFromPoolAsync); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMallocHost); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMallocManaged); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMallocMipmappedArray); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMallocPitch); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemAccessDesc); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemAccessDesc___reduce_cytho); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemAccessDesc___setstate_cyt); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemAccessDesc_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemAccessFlags); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemAccessFlagsProtNone); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemAccessFlagsProtRead); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemAccessFlagsProtReadWrite); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemAdvise); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemAdviseSetAccessedBy); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemAdviseSetPreferredLocatio); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemAdviseSetReadMostly); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemAdviseUnsetAccessedBy); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemAdviseUnsetPreferredLocat); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemAdviseUnsetReadMostly); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemAdvise_v2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemAllocNodeParams); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemAllocNodeParamsV2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemAllocNodeParamsV2___reduc); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemAllocNodeParamsV2___setst); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemAllocNodeParamsV2_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemAllocNodeParams___reduce); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemAllocNodeParams___setstat); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemAllocNodeParams_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemAllocationHandleType); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemAllocationType); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemAllocationTypeInvalid); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemAllocationTypeMax); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemAllocationTypePinned); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemAttachGlobal); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemAttachHost); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemAttachSingle); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemFabricHandle_st); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemFabricHandle_st___reduce); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemFabricHandle_st___setstat); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemFabricHandle_st_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemFabricHandle_t); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemFreeNodeParams); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemFreeNodeParams___reduce_c); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemFreeNodeParams___setstate); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemFreeNodeParams_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemGetInfo); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemHandleTypeFabric); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemHandleTypeNone); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemHandleTypePosixFileDescri); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemHandleTypeWin32); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemHandleTypeWin32Kmt); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemLocation); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemLocationType); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemLocationTypeDevice); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemLocationTypeHost); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemLocationTypeHostNuma); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemLocationTypeHostNumaCurre); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemLocationTypeInvalid); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemLocation___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemLocation___setstate_cytho); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemLocation_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemPoolAttr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemPoolAttrReleaseThreshold); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemPoolAttrReservedMemCurren); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemPoolAttrReservedMemHigh); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemPoolAttrUsedMemCurrent); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemPoolAttrUsedMemHigh); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemPoolCreate); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemPoolDestroy); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemPoolExportPointer); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemPoolExportToShareableHand); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemPoolGetAccess); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemPoolGetAttribute); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemPoolImportFromShareableHa); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemPoolImportPointer); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemPoolProps); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemPoolProps___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemPoolProps___setstate_cyth); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemPoolProps_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemPoolPtrExportData); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemPoolPtrExportData___reduc); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemPoolPtrExportData___setst); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemPoolPtrExportData_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemPoolReuseAllowInternalDep); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemPoolReuseAllowOpportunist); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemPoolReuseFollowEventDepen); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemPoolSetAccess); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemPoolSetAccess_locals_gene); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemPoolSetAttribute); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemPoolTrimTo); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemPool_t); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemPrefetchAsync); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemPrefetchAsync_v2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemRangeAttribute); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemRangeAttributeAccessedBy); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemRangeAttributeLastPrefetc); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemRangeAttributeLastPrefetc_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemRangeAttributeLastPrefetc_3); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemRangeAttributePreferredLo); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemRangeAttributePreferredLo_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemRangeAttributePreferredLo_3); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemRangeAttributeReadMostly); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemRangeGetAttribute); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemRangeGetAttributes); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemRangeGetAttributes_locals); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpy); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpy2D); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpy2DArrayToArray); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpy2DAsync); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpy2DFromArray); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpy2DFromArrayAsync); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpy2DToArray); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpy2DToArrayAsync); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpy3D); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpy3DAsync); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpy3DParms); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpy3DParms___reduce_cytho); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpy3DParms___setstate_cyt); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpy3DParms_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpy3DPeer); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpy3DPeerAsync); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpy3DPeerParms); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpy3DPeerParms___reduce_c); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpy3DPeerParms___setstate); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpy3DPeerParms_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpyArrayToArray); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpyAsync); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpyDefault); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpyDeviceToDevice); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpyDeviceToHost); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpyFromArray); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpyFromArrayAsync); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpyHostToDevice); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpyHostToHost); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpyKind); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpyNodeParams); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpyNodeParams___reduce_cy); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpyNodeParams___setstate); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpyNodeParams_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpyPeer); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpyPeerAsync); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpyToArray); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemcpyToArrayAsync); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemoryAdvise); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemoryType); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemoryTypeDevice); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemoryTypeHost); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemoryTypeManaged); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemoryTypeUnregistered); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemset); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemset2D); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemset2DAsync); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemset3D); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemset3DAsync); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemsetAsync); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemsetParams); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemsetParamsV2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemsetParamsV2___reduce_cyth); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemsetParamsV2___setstate_cy); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemsetParamsV2_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemsetParams___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemsetParams___setstate_cyth); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMemsetParams_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMipmappedArrayGetMemoryRequi); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMipmappedArrayGetSparsePrope); Py_VISIT(traverse_module_state->__pyx_kp_u_cudaMipmappedArray_const_t); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMipmappedArray_const_t_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMipmappedArray_const_t___red); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMipmappedArray_const_t___set); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMipmappedArray_const_t_getPt); Py_VISIT(traverse_module_state->__pyx_kp_u_cudaMipmappedArray_t); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMipmappedArray_t_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMipmappedArray_t___reduce_cy); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMipmappedArray_t___setstate); Py_VISIT(traverse_module_state->__pyx_n_s_cudaMipmappedArray_t_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaNvSciSyncAttrSignal); Py_VISIT(traverse_module_state->__pyx_n_s_cudaNvSciSyncAttrWait); Py_VISIT(traverse_module_state->__pyx_n_s_cudaOccupancyAvailableDynamicSMe); Py_VISIT(traverse_module_state->__pyx_n_s_cudaOccupancyDefault); Py_VISIT(traverse_module_state->__pyx_n_s_cudaOccupancyDisableCachingOverr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaOccupancyMaxActiveBlocksPerM); Py_VISIT(traverse_module_state->__pyx_n_s_cudaOccupancyMaxActiveBlocksPerM_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaPeekAtLastError); Py_VISIT(traverse_module_state->__pyx_n_s_cudaPeerAccessDefault); Py_VISIT(traverse_module_state->__pyx_n_s_cudaPitchedPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaPitchedPtr___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_cudaPitchedPtr___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_cudaPitchedPtr_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaPointerAttributes); Py_VISIT(traverse_module_state->__pyx_n_s_cudaPointerAttributes___reduce_c); Py_VISIT(traverse_module_state->__pyx_n_s_cudaPointerAttributes___setstate); Py_VISIT(traverse_module_state->__pyx_n_s_cudaPointerAttributes_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaPointerGetAttributes); Py_VISIT(traverse_module_state->__pyx_n_s_cudaPos); Py_VISIT(traverse_module_state->__pyx_n_s_cudaPos___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_cudaPos___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_cudaPos_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaProfilerStart); Py_VISIT(traverse_module_state->__pyx_n_s_cudaProfilerStop); Py_VISIT(traverse_module_state->__pyx_n_s_cudaReadModeElementType); Py_VISIT(traverse_module_state->__pyx_n_s_cudaReadModeNormalizedFloat); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResViewFormatFloat1); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResViewFormatFloat2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResViewFormatFloat4); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResViewFormatHalf1); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResViewFormatHalf2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResViewFormatHalf4); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResViewFormatNone); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResViewFormatSignedBlockComp); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResViewFormatSignedBlockComp_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResViewFormatSignedBlockComp_3); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResViewFormatSignedChar1); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResViewFormatSignedChar2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResViewFormatSignedChar4); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResViewFormatSignedInt1); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResViewFormatSignedInt2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResViewFormatSignedInt4); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResViewFormatSignedShort1); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResViewFormatSignedShort2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResViewFormatSignedShort4); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResViewFormatUnsignedBlockCo); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResViewFormatUnsignedBlockCo_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResViewFormatUnsignedBlockCo_3); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResViewFormatUnsignedBlockCo_4); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResViewFormatUnsignedBlockCo_5); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResViewFormatUnsignedBlockCo_6); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResViewFormatUnsignedBlockCo_7); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResViewFormatUnsignedChar1); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResViewFormatUnsignedChar2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResViewFormatUnsignedChar4); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResViewFormatUnsignedInt1); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResViewFormatUnsignedInt2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResViewFormatUnsignedInt4); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResViewFormatUnsignedShort1); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResViewFormatUnsignedShort2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResViewFormatUnsignedShort4); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResourceDesc); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResourceDesc___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResourceDesc___setstate_cyth); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResourceDesc_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResourceType); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResourceTypeArray); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResourceTypeLinear); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResourceTypeMipmappedArray); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResourceTypePitch2D); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResourceViewDesc); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResourceViewDesc___reduce_cy); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResourceViewDesc___setstate); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResourceViewDesc_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaResourceViewFormat); Py_VISIT(traverse_module_state->__pyx_n_s_cudaRoundMinInf); Py_VISIT(traverse_module_state->__pyx_n_s_cudaRoundMode); Py_VISIT(traverse_module_state->__pyx_n_s_cudaRoundNearest); Py_VISIT(traverse_module_state->__pyx_n_s_cudaRoundPosInf); Py_VISIT(traverse_module_state->__pyx_n_s_cudaRoundZero); Py_VISIT(traverse_module_state->__pyx_n_s_cudaRuntimeGetVersion); Py_VISIT(traverse_module_state->__pyx_n_s_cudaSetDevice); Py_VISIT(traverse_module_state->__pyx_n_s_cudaSetDeviceFlags); Py_VISIT(traverse_module_state->__pyx_kp_u_cudaSetDevice_line_14584); Py_VISIT(traverse_module_state->__pyx_n_s_cudaSharedCarveout); Py_VISIT(traverse_module_state->__pyx_n_s_cudaSharedMemBankSizeDefault); Py_VISIT(traverse_module_state->__pyx_n_s_cudaSharedMemBankSizeEightByte); Py_VISIT(traverse_module_state->__pyx_n_s_cudaSharedMemBankSizeFourByte); Py_VISIT(traverse_module_state->__pyx_n_s_cudaSharedMemConfig); Py_VISIT(traverse_module_state->__pyx_n_s_cudaSharedmemCarveoutDefault); Py_VISIT(traverse_module_state->__pyx_n_s_cudaSharedmemCarveoutMaxL1); Py_VISIT(traverse_module_state->__pyx_n_s_cudaSharedmemCarveoutMaxShared); Py_VISIT(traverse_module_state->__pyx_n_s_cudaSignalExternalSemaphoresAsyn); Py_VISIT(traverse_module_state->__pyx_n_s_cudaSignalExternalSemaphoresAsyn_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamAddCallback); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamAddCaptureDependencies); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamAttachMemAsync); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamAttrID); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamAttrValue); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamAttributeAccessPolicyW); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamAttributeMemSyncDomain); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamAttributeMemSyncDomain_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamAttributePriority); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamAttributeSynchronizati); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamBeginCapture); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamBeginCaptureToGraph); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamBeginCaptureToGraph_lo); Py_VISIT(traverse_module_state->__pyx_kp_u_cudaStreamCallback_t); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamCallback_t_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamCallback_t___reduce_cy); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamCallback_t___setstate); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamCallback_t_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamCaptureMode); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamCaptureModeGlobal); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamCaptureModeRelaxed); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamCaptureModeThreadLocal); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamCaptureStatus); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamCaptureStatusActive); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamCaptureStatusInvalidat); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamCaptureStatusNone); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamCopyAttributes); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamCreate); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamCreateWithFlags); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamCreateWithPriority); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamDefault); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamDestroy); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamEndCapture); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamGetAttribute); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamGetCaptureInfo); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamGetCaptureInfo_v3); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamGetFlags); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamGetId); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamGetPriority); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamIsCapturing); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamLegacy); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamNonBlocking); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamPerThread); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamQuery); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamSetAttribute); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamSetCaptureDependencies); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamSynchronize); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamUpdateCaptureDependenc); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamUpdateCaptureDependenc_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamUpdateCaptureDependenc_3); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamUpdateCaptureDependenc_4); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamUpdateCaptureDependenc_5); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStreamWaitEvent); Py_VISIT(traverse_module_state->__pyx_n_s_cudaStream_t); Py_VISIT(traverse_module_state->__pyx_n_s_cudaSuccess); Py_VISIT(traverse_module_state->__pyx_n_s_cudaSurfaceBoundaryMode); Py_VISIT(traverse_module_state->__pyx_n_s_cudaSurfaceFormatMode); Py_VISIT(traverse_module_state->__pyx_kp_u_cudaSurfaceObject_t); Py_VISIT(traverse_module_state->__pyx_n_s_cudaSurfaceObject_t_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaSurfaceObject_t___reduce_cyt); Py_VISIT(traverse_module_state->__pyx_n_s_cudaSurfaceObject_t___setstate_c); Py_VISIT(traverse_module_state->__pyx_n_s_cudaSurfaceObject_t_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaSurfaceType1D); Py_VISIT(traverse_module_state->__pyx_n_s_cudaSurfaceType1DLayered); Py_VISIT(traverse_module_state->__pyx_n_s_cudaSurfaceType2D); Py_VISIT(traverse_module_state->__pyx_n_s_cudaSurfaceType2DLayered); Py_VISIT(traverse_module_state->__pyx_n_s_cudaSurfaceType3D); Py_VISIT(traverse_module_state->__pyx_n_s_cudaSurfaceTypeCubemap); Py_VISIT(traverse_module_state->__pyx_n_s_cudaSurfaceTypeCubemapLayered); Py_VISIT(traverse_module_state->__pyx_n_s_cudaSyncPolicyAuto); Py_VISIT(traverse_module_state->__pyx_n_s_cudaSyncPolicyBlockingSync); Py_VISIT(traverse_module_state->__pyx_n_s_cudaSyncPolicySpin); Py_VISIT(traverse_module_state->__pyx_n_s_cudaSyncPolicyYield); Py_VISIT(traverse_module_state->__pyx_n_s_cudaSynchronizationPolicy); Py_VISIT(traverse_module_state->__pyx_n_s_cudaTextureAddressMode); Py_VISIT(traverse_module_state->__pyx_n_s_cudaTextureDesc); Py_VISIT(traverse_module_state->__pyx_n_s_cudaTextureDesc___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_cudaTextureDesc___setstate_cytho); Py_VISIT(traverse_module_state->__pyx_n_s_cudaTextureDesc_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaTextureFilterMode); Py_VISIT(traverse_module_state->__pyx_kp_u_cudaTextureObject_t); Py_VISIT(traverse_module_state->__pyx_n_s_cudaTextureObject_t_2); Py_VISIT(traverse_module_state->__pyx_n_s_cudaTextureObject_t___reduce_cyt); Py_VISIT(traverse_module_state->__pyx_n_s_cudaTextureObject_t___setstate_c); Py_VISIT(traverse_module_state->__pyx_n_s_cudaTextureObject_t_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_cudaTextureReadMode); Py_VISIT(traverse_module_state->__pyx_n_s_cudaTextureType1D); Py_VISIT(traverse_module_state->__pyx_n_s_cudaTextureType1DLayered); Py_VISIT(traverse_module_state->__pyx_n_s_cudaTextureType2D); Py_VISIT(traverse_module_state->__pyx_n_s_cudaTextureType2DLayered); Py_VISIT(traverse_module_state->__pyx_n_s_cudaTextureType3D); Py_VISIT(traverse_module_state->__pyx_n_s_cudaTextureTypeCubemap); Py_VISIT(traverse_module_state->__pyx_n_s_cudaTextureTypeCubemapLayered); Py_VISIT(traverse_module_state->__pyx_n_s_cudaThreadExchangeStreamCaptureM); Py_VISIT(traverse_module_state->__pyx_n_s_cudaUUID_t); Py_VISIT(traverse_module_state->__pyx_n_s_cudaUserObjectCreate); Py_VISIT(traverse_module_state->__pyx_n_s_cudaUserObjectFlags); Py_VISIT(traverse_module_state->__pyx_n_s_cudaUserObjectNoDestructorSync); Py_VISIT(traverse_module_state->__pyx_n_s_cudaUserObjectRelease); Py_VISIT(traverse_module_state->__pyx_n_s_cudaUserObjectRetain); Py_VISIT(traverse_module_state->__pyx_n_s_cudaUserObjectRetainFlags); Py_VISIT(traverse_module_state->__pyx_n_s_cudaUserObject_t); Py_VISIT(traverse_module_state->__pyx_n_s_cudaVDPAUGetDevice); Py_VISIT(traverse_module_state->__pyx_n_s_cudaVDPAUSetVDPAUDevice); Py_VISIT(traverse_module_state->__pyx_n_s_cudaVersion); Py_VISIT(traverse_module_state->__pyx_n_s_cudaWaitExternalSemaphoresAsync); Py_VISIT(traverse_module_state->__pyx_n_s_cudaWaitExternalSemaphoresAsync_2); Py_VISIT(traverse_module_state->__pyx_n_s_cuda_cuda); Py_VISIT(traverse_module_state->__pyx_n_s_cuda_cudart); Py_VISIT(traverse_module_state->__pyx_kp_s_cuda_cudart_pyx); Py_VISIT(traverse_module_state->__pyx_n_s_cuserData); Py_VISIT(traverse_module_state->__pyx_n_s_cuserData_ptr); Py_VISIT(traverse_module_state->__pyx_n_s_cvalue); Py_VISIT(traverse_module_state->__pyx_n_s_cvalue_ptr); Py_VISIT(traverse_module_state->__pyx_n_s_cvdpDevice); Py_VISIT(traverse_module_state->__pyx_n_s_cvdpGetProcAddress); Py_VISIT(traverse_module_state->__pyx_n_s_cvdpSurface); Py_VISIT(traverse_module_state->__pyx_n_s_cvoidStarHelper_ptr); Py_VISIT(traverse_module_state->__pyx_n_s_cwidth); Py_VISIT(traverse_module_state->__pyx_n_s_d); Py_VISIT(traverse_module_state->__pyx_n_s_dataSize); Py_VISIT(traverse_module_state->__pyx_n_s_dataSizes); Py_VISIT(traverse_module_state->__pyx_n_s_decode); Py_VISIT(traverse_module_state->__pyx_kp_u_default); Py_VISIT(traverse_module_state->__pyx_n_s_defaultLaunchValue); Py_VISIT(traverse_module_state->__pyx_n_s_default_2); Py_VISIT(traverse_module_state->__pyx_kp_u_default__ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_deferredMappingCudaArraySupporte); Py_VISIT(traverse_module_state->__pyx_n_s_deferredMappingCudaArraySupporte_2); Py_VISIT(traverse_module_state->__pyx_kp_u_deferredMappingCudaArraySupporte_3); Py_VISIT(traverse_module_state->__pyx_n_s_dependencies); Py_VISIT(traverse_module_state->__pyx_n_s_dependencyData); Py_VISIT(traverse_module_state->__pyx_kp_u_depth); Py_VISIT(traverse_module_state->__pyx_n_s_depth_2); Py_VISIT(traverse_module_state->__pyx_kp_u_depth_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_desc); Py_VISIT(traverse_module_state->__pyx_n_s_descList); Py_VISIT(traverse_module_state->__pyx_n_s_desc_2); Py_VISIT(traverse_module_state->__pyx_kp_u_desc_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_destroy); Py_VISIT(traverse_module_state->__pyx_kp_u_devNode); Py_VISIT(traverse_module_state->__pyx_n_s_devNode_2); Py_VISIT(traverse_module_state->__pyx_kp_u_devNode_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_devPtr); Py_VISIT(traverse_module_state->__pyx_n_s_devPtr_2); Py_VISIT(traverse_module_state->__pyx_kp_u_devPtr_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_device); Py_VISIT(traverse_module_state->__pyx_n_s_deviceFlags); Py_VISIT(traverse_module_state->__pyx_n_s_deviceList); Py_VISIT(traverse_module_state->__pyx_kp_u_deviceOverlap); Py_VISIT(traverse_module_state->__pyx_n_s_deviceOverlap_2); Py_VISIT(traverse_module_state->__pyx_kp_u_deviceOverlap_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_devicePointer); Py_VISIT(traverse_module_state->__pyx_n_s_devicePointer_2); Py_VISIT(traverse_module_state->__pyx_kp_u_devicePointer_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_deviceUpdatable); Py_VISIT(traverse_module_state->__pyx_kp_u_deviceUpdatableKernelNode); Py_VISIT(traverse_module_state->__pyx_n_s_deviceUpdatableKernelNode_2); Py_VISIT(traverse_module_state->__pyx_kp_u_deviceUpdatableKernelNode_ValueE); Py_VISIT(traverse_module_state->__pyx_n_s_deviceUpdatable_2); Py_VISIT(traverse_module_state->__pyx_kp_u_deviceUpdatable_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_device_2); Py_VISIT(traverse_module_state->__pyx_kp_u_device_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_dict); Py_VISIT(traverse_module_state->__pyx_n_s_dim3); Py_VISIT(traverse_module_state->__pyx_n_s_dim3___reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_dim3___setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_dim3_getPtr); Py_VISIT(traverse_module_state->__pyx_kp_u_directManagedMemAccessFromHost); Py_VISIT(traverse_module_state->__pyx_n_s_directManagedMemAccessFromHost_2); Py_VISIT(traverse_module_state->__pyx_kp_u_directManagedMemAccessFromHost_V); Py_VISIT(traverse_module_state->__pyx_kp_u_disable); Py_VISIT(traverse_module_state->__pyx_kp_u_disableTrilinearOptimization); Py_VISIT(traverse_module_state->__pyx_n_s_disableTrilinearOptimization_2); Py_VISIT(traverse_module_state->__pyx_kp_u_disableTrilinearOptimization_Val); Py_VISIT(traverse_module_state->__pyx_n_s_doc); Py_VISIT(traverse_module_state->__pyx_n_s_dpitch); Py_VISIT(traverse_module_state->__pyx_kp_u_dptr); Py_VISIT(traverse_module_state->__pyx_n_s_dptr_2); Py_VISIT(traverse_module_state->__pyx_kp_u_dptr_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_dptr_out); Py_VISIT(traverse_module_state->__pyx_n_s_driverStatus); Py_VISIT(traverse_module_state->__pyx_n_s_driverVersion); Py_VISIT(traverse_module_state->__pyx_kp_u_dst); Py_VISIT(traverse_module_state->__pyx_kp_u_dstArray); Py_VISIT(traverse_module_state->__pyx_n_s_dstArray_2); Py_VISIT(traverse_module_state->__pyx_kp_u_dstArray_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_dstDevice); Py_VISIT(traverse_module_state->__pyx_n_s_dstDevice_2); Py_VISIT(traverse_module_state->__pyx_kp_u_dstDevice_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_dstPos); Py_VISIT(traverse_module_state->__pyx_n_s_dstPos_2); Py_VISIT(traverse_module_state->__pyx_kp_u_dstPos_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_dstPtr); Py_VISIT(traverse_module_state->__pyx_n_s_dstPtr_2); Py_VISIT(traverse_module_state->__pyx_kp_u_dstPtr_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_dst_2); Py_VISIT(traverse_module_state->__pyx_kp_u_dst_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_dynamicSMemSize); Py_VISIT(traverse_module_state->__pyx_n_s_dynamicSmemSize); Py_VISIT(traverse_module_state->__pyx_n_s_edgeData); Py_VISIT(traverse_module_state->__pyx_kp_u_eglColorFormat); Py_VISIT(traverse_module_state->__pyx_n_s_eglColorFormat_2); Py_VISIT(traverse_module_state->__pyx_kp_u_eglColorFormat_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_eglFrame); Py_VISIT(traverse_module_state->__pyx_n_s_eglStream); Py_VISIT(traverse_module_state->__pyx_n_s_eglSync); Py_VISIT(traverse_module_state->__pyx_n_s_eglframe); Py_VISIT(traverse_module_state->__pyx_kp_u_elementSize); Py_VISIT(traverse_module_state->__pyx_n_s_elementSize_2); Py_VISIT(traverse_module_state->__pyx_kp_u_elementSize_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_enable); Py_VISIT(traverse_module_state->__pyx_n_s_end); Py_VISIT(traverse_module_state->__pyx_n_s_entryFuncAddr); Py_VISIT(traverse_module_state->__pyx_n_s_enum); Py_VISIT(traverse_module_state->__pyx_n_s_enumerate); Py_VISIT(traverse_module_state->__pyx_n_s_err); Py_VISIT(traverse_module_state->__pyx_kp_u_errNode_out); Py_VISIT(traverse_module_state->__pyx_n_s_errNode_out_2); Py_VISIT(traverse_module_state->__pyx_kp_u_errNode_out_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_error); Py_VISIT(traverse_module_state->__pyx_kp_u_errorFromNode); Py_VISIT(traverse_module_state->__pyx_n_s_errorFromNode_2); Py_VISIT(traverse_module_state->__pyx_kp_u_errorFromNode_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_errorNode); Py_VISIT(traverse_module_state->__pyx_n_s_errorNode_2); Py_VISIT(traverse_module_state->__pyx_kp_u_errorNode_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_event); Py_VISIT(traverse_module_state->__pyx_kp_u_eventRecord); Py_VISIT(traverse_module_state->__pyx_n_s_eventRecord_2); Py_VISIT(traverse_module_state->__pyx_kp_u_eventRecord_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_eventWait); Py_VISIT(traverse_module_state->__pyx_n_s_eventWait_2); Py_VISIT(traverse_module_state->__pyx_kp_u_eventWait_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_event_2); Py_VISIT(traverse_module_state->__pyx_kp_u_event_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_event_out); Py_VISIT(traverse_module_state->__pyx_n_s_exportData); Py_VISIT(traverse_module_state->__pyx_n_s_extMem); Py_VISIT(traverse_module_state->__pyx_n_s_extMem_out); Py_VISIT(traverse_module_state->__pyx_n_s_extSem); Py_VISIT(traverse_module_state->__pyx_kp_u_extSemArray); Py_VISIT(traverse_module_state->__pyx_n_s_extSemArray_2); Py_VISIT(traverse_module_state->__pyx_kp_u_extSemArray_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_extSemSignal); Py_VISIT(traverse_module_state->__pyx_n_s_extSemSignal_2); Py_VISIT(traverse_module_state->__pyx_kp_u_extSemSignal_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_extSemWait); Py_VISIT(traverse_module_state->__pyx_n_s_extSemWait_2); Py_VISIT(traverse_module_state->__pyx_kp_u_extSemWait_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_extSem_out); Py_VISIT(traverse_module_state->__pyx_kp_u_extent); Py_VISIT(traverse_module_state->__pyx_n_s_extent_2); Py_VISIT(traverse_module_state->__pyx_kp_u_extent_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_extra); Py_VISIT(traverse_module_state->__pyx_n_s_extra_2); Py_VISIT(traverse_module_state->__pyx_kp_u_extra_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_f); Py_VISIT(traverse_module_state->__pyx_n_s_f_2); Py_VISIT(traverse_module_state->__pyx_kp_u_f_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_fd); Py_VISIT(traverse_module_state->__pyx_n_s_fd_2); Py_VISIT(traverse_module_state->__pyx_kp_u_fd_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_fence); Py_VISIT(traverse_module_state->__pyx_n_s_fence_2); Py_VISIT(traverse_module_state->__pyx_kp_u_fence_3); Py_VISIT(traverse_module_state->__pyx_kp_u_fence_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_field); Py_VISIT(traverse_module_state->__pyx_n_s_field_2); Py_VISIT(traverse_module_state->__pyx_kp_u_field_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_filterMode); Py_VISIT(traverse_module_state->__pyx_n_s_filterMode_2); Py_VISIT(traverse_module_state->__pyx_kp_u_filterMode_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_firstLayer); Py_VISIT(traverse_module_state->__pyx_n_s_firstLayer_2); Py_VISIT(traverse_module_state->__pyx_kp_u_firstLayer_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_firstMipmapLevel); Py_VISIT(traverse_module_state->__pyx_n_s_firstMipmapLevel_2); Py_VISIT(traverse_module_state->__pyx_kp_u_firstMipmapLevel_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_flags); Py_VISIT(traverse_module_state->__pyx_n_s_flags_2); Py_VISIT(traverse_module_state->__pyx_kp_u_flags_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_fmtDesc); Py_VISIT(traverse_module_state->__pyx_kp_u_fn); Py_VISIT(traverse_module_state->__pyx_n_s_fn_2); Py_VISIT(traverse_module_state->__pyx_kp_u_fn_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_format); Py_VISIT(traverse_module_state->__pyx_kp_u_formatDesc); Py_VISIT(traverse_module_state->__pyx_n_s_formatDesc_2); Py_VISIT(traverse_module_state->__pyx_kp_u_formatDesc_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_format_2); Py_VISIT(traverse_module_state->__pyx_kp_u_format_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_frame); Py_VISIT(traverse_module_state->__pyx_kp_u_frameType); Py_VISIT(traverse_module_state->__pyx_n_s_frameType_2); Py_VISIT(traverse_module_state->__pyx_kp_u_frameType_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_frame_2); Py_VISIT(traverse_module_state->__pyx_kp_u_frame_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_free); Py_VISIT(traverse_module_state->__pyx_n_s_free_2); Py_VISIT(traverse_module_state->__pyx_kp_u_free_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_from); Py_VISIT(traverse_module_state->__pyx_kp_u_from_port); Py_VISIT(traverse_module_state->__pyx_n_s_from_port_2); Py_VISIT(traverse_module_state->__pyx_kp_u_from_port_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_func); Py_VISIT(traverse_module_state->__pyx_n_s_funcPtr); Py_VISIT(traverse_module_state->__pyx_n_s_func_2); Py_VISIT(traverse_module_state->__pyx_kp_u_func_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_gc); Py_VISIT(traverse_module_state->__pyx_n_s_genexpr); Py_VISIT(traverse_module_state->__pyx_n_s_getLocalRuntimeVersion); Py_VISIT(traverse_module_state->__pyx_n_s_getPtr); Py_VISIT(traverse_module_state->__pyx_n_s_getstate); Py_VISIT(traverse_module_state->__pyx_kp_u_globalL1CacheSupported); Py_VISIT(traverse_module_state->__pyx_n_s_globalL1CacheSupported_2); Py_VISIT(traverse_module_state->__pyx_kp_u_globalL1CacheSupported_ValueErro); Py_VISIT(traverse_module_state->__pyx_kp_u_gpuDirectRDMAFlushWritesOptions); Py_VISIT(traverse_module_state->__pyx_n_s_gpuDirectRDMAFlushWritesOptions_2); Py_VISIT(traverse_module_state->__pyx_kp_u_gpuDirectRDMAFlushWritesOptions_3); Py_VISIT(traverse_module_state->__pyx_kp_u_gpuDirectRDMASupported); Py_VISIT(traverse_module_state->__pyx_n_s_gpuDirectRDMASupported_2); Py_VISIT(traverse_module_state->__pyx_kp_u_gpuDirectRDMASupported_ValueErro); Py_VISIT(traverse_module_state->__pyx_kp_u_gpuDirectRDMAWritesOrdering); Py_VISIT(traverse_module_state->__pyx_n_s_gpuDirectRDMAWritesOrdering_2); Py_VISIT(traverse_module_state->__pyx_kp_u_gpuDirectRDMAWritesOrdering_Valu); Py_VISIT(traverse_module_state->__pyx_kp_u_graph); Py_VISIT(traverse_module_state->__pyx_n_s_graphExec); Py_VISIT(traverse_module_state->__pyx_n_s_graph_2); Py_VISIT(traverse_module_state->__pyx_kp_u_graph_3); Py_VISIT(traverse_module_state->__pyx_kp_u_graph_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_graph_length); Py_VISIT(traverse_module_state->__pyx_n_s_graph_out); Py_VISIT(traverse_module_state->__pyx_n_s_greatestPriority); Py_VISIT(traverse_module_state->__pyx_kp_u_gridDim); Py_VISIT(traverse_module_state->__pyx_n_s_gridDim_2); Py_VISIT(traverse_module_state->__pyx_kp_u_gridDim_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_h); Py_VISIT(traverse_module_state->__pyx_n_s_hArray); Py_VISIT(traverse_module_state->__pyx_n_s_hDst); Py_VISIT(traverse_module_state->__pyx_n_s_hGraph); Py_VISIT(traverse_module_state->__pyx_n_s_hGraphExec); Py_VISIT(traverse_module_state->__pyx_n_s_hNode); Py_VISIT(traverse_module_state->__pyx_n_s_hOffset); Py_VISIT(traverse_module_state->__pyx_n_s_hOffsetDst); Py_VISIT(traverse_module_state->__pyx_n_s_hOffsetSrc); Py_VISIT(traverse_module_state->__pyx_n_s_hSrc); Py_VISIT(traverse_module_state->__pyx_n_s_hStream); Py_VISIT(traverse_module_state->__pyx_kp_u_handle); Py_VISIT(traverse_module_state->__pyx_n_s_handleType); Py_VISIT(traverse_module_state->__pyx_kp_u_handleTypes); Py_VISIT(traverse_module_state->__pyx_n_s_handleTypes_2); Py_VISIT(traverse_module_state->__pyx_kp_u_handleTypes_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_handle_2); Py_VISIT(traverse_module_state->__pyx_kp_u_handle_3); Py_VISIT(traverse_module_state->__pyx_kp_u_handle_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_height); Py_VISIT(traverse_module_state->__pyx_n_s_height_2); Py_VISIT(traverse_module_state->__pyx_kp_u_height_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_hex); Py_VISIT(traverse_module_state->__pyx_kp_u_hitProp); Py_VISIT(traverse_module_state->__pyx_n_s_hitProp_2); Py_VISIT(traverse_module_state->__pyx_kp_u_hitProp_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_hitRatio); Py_VISIT(traverse_module_state->__pyx_n_s_hitRatio_2); Py_VISIT(traverse_module_state->__pyx_kp_u_hitRatio_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_host); Py_VISIT(traverse_module_state->__pyx_kp_u_hostNativeAtomicSupported); Py_VISIT(traverse_module_state->__pyx_n_s_hostNativeAtomicSupported_2); Py_VISIT(traverse_module_state->__pyx_kp_u_hostNativeAtomicSupported_ValueE); Py_VISIT(traverse_module_state->__pyx_kp_u_hostPointer); Py_VISIT(traverse_module_state->__pyx_n_s_hostPointer_2); Py_VISIT(traverse_module_state->__pyx_kp_u_hostPointer_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_hostRegisterReadOnlySupported); Py_VISIT(traverse_module_state->__pyx_n_s_hostRegisterReadOnlySupported_2); Py_VISIT(traverse_module_state->__pyx_kp_u_hostRegisterReadOnlySupported_Va); Py_VISIT(traverse_module_state->__pyx_kp_u_hostRegisterSupported); Py_VISIT(traverse_module_state->__pyx_n_s_hostRegisterSupported_2); Py_VISIT(traverse_module_state->__pyx_kp_u_hostRegisterSupported_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_host_2); Py_VISIT(traverse_module_state->__pyx_kp_u_host_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_id); Py_VISIT(traverse_module_state->__pyx_n_s_id_2); Py_VISIT(traverse_module_state->__pyx_kp_u_id_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_id_out); Py_VISIT(traverse_module_state->__pyx_n_s_idx); Py_VISIT(traverse_module_state->__pyx_n_s_image); Py_VISIT(traverse_module_state->__pyx_kp_s_impl_private_CUDA_error_types); Py_VISIT(traverse_module_state->__pyx_n_s_import); Py_VISIT(traverse_module_state->__pyx_n_s_index); Py_VISIT(traverse_module_state->__pyx_kp_u_info); Py_VISIT(traverse_module_state->__pyx_n_s_info_2); Py_VISIT(traverse_module_state->__pyx_kp_u_info_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_init_subclass); Py_VISIT(traverse_module_state->__pyx_n_s_init_value); Py_VISIT(traverse_module_state->__pyx_n_s_initialRefcount); Py_VISIT(traverse_module_state->__pyx_n_s_initializing); Py_VISIT(traverse_module_state->__pyx_n_s_instantiateParams); Py_VISIT(traverse_module_state->__pyx_n_s_int); Py_VISIT(traverse_module_state->__pyx_kp_u_integrated); Py_VISIT(traverse_module_state->__pyx_n_s_integrated_2); Py_VISIT(traverse_module_state->__pyx_kp_u_integrated_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_ipcEventSupported); Py_VISIT(traverse_module_state->__pyx_n_s_ipcEventSupported_2); Py_VISIT(traverse_module_state->__pyx_kp_u_ipcEventSupported_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_isEnabled); Py_VISIT(traverse_module_state->__pyx_n_s_isEnabled_2); Py_VISIT(traverse_module_state->__pyx_kp_u_isEnabled_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_isMultiGpuBoard); Py_VISIT(traverse_module_state->__pyx_n_s_isMultiGpuBoard_2); Py_VISIT(traverse_module_state->__pyx_kp_u_isMultiGpuBoard_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_is_coroutine); Py_VISIT(traverse_module_state->__pyx_n_s_is_getter); Py_VISIT(traverse_module_state->__pyx_kp_u_isenabled); Py_VISIT(traverse_module_state->__pyx_kp_u_kernel); Py_VISIT(traverse_module_state->__pyx_kp_u_kernelExecTimeoutEnabled); Py_VISIT(traverse_module_state->__pyx_n_s_kernelExecTimeoutEnabled_2); Py_VISIT(traverse_module_state->__pyx_kp_u_kernelExecTimeoutEnabled_ValueEr); Py_VISIT(traverse_module_state->__pyx_kp_u_kernelParams); Py_VISIT(traverse_module_state->__pyx_n_s_kernelParams_2); Py_VISIT(traverse_module_state->__pyx_kp_u_kernelParams_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_kernelPtr); Py_VISIT(traverse_module_state->__pyx_n_s_kernel_2); Py_VISIT(traverse_module_state->__pyx_kp_u_kernel_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_key); Py_VISIT(traverse_module_state->__pyx_n_s_key_2); Py_VISIT(traverse_module_state->__pyx_kp_u_key_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_keyedMutex); Py_VISIT(traverse_module_state->__pyx_n_s_keyedMutex_2); Py_VISIT(traverse_module_state->__pyx_kp_u_keyedMutex_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_kind); Py_VISIT(traverse_module_state->__pyx_n_s_kind_2); Py_VISIT(traverse_module_state->__pyx_kp_u_kind_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_l2CacheSize); Py_VISIT(traverse_module_state->__pyx_n_s_l2CacheSize_2); Py_VISIT(traverse_module_state->__pyx_kp_u_l2CacheSize_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_lastLayer); Py_VISIT(traverse_module_state->__pyx_n_s_lastLayer_2); Py_VISIT(traverse_module_state->__pyx_kp_u_lastLayer_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_lastMipmapLevel); Py_VISIT(traverse_module_state->__pyx_n_s_lastMipmapLevel_2); Py_VISIT(traverse_module_state->__pyx_kp_u_lastMipmapLevel_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_launchCompletionEvent); Py_VISIT(traverse_module_state->__pyx_n_s_launchCompletionEvent_2); Py_VISIT(traverse_module_state->__pyx_kp_u_launchCompletionEvent_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_leastPriority); Py_VISIT(traverse_module_state->__pyx_n_s_length); Py_VISIT(traverse_module_state->__pyx_n_s_level); Py_VISIT(traverse_module_state->__pyx_n_s_levelArray); Py_VISIT(traverse_module_state->__pyx_n_s_libraryPropertyType); Py_VISIT(traverse_module_state->__pyx_n_s_limit); Py_VISIT(traverse_module_state->__pyx_kp_u_linear); Py_VISIT(traverse_module_state->__pyx_n_s_linear_2); Py_VISIT(traverse_module_state->__pyx_kp_u_linear_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_localL1CacheSupported); Py_VISIT(traverse_module_state->__pyx_n_s_localL1CacheSupported_2); Py_VISIT(traverse_module_state->__pyx_kp_u_localL1CacheSupported_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_localSizeBytes); Py_VISIT(traverse_module_state->__pyx_n_s_localSizeBytes_2); Py_VISIT(traverse_module_state->__pyx_kp_u_localSizeBytes_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_location); Py_VISIT(traverse_module_state->__pyx_n_s_location_2); Py_VISIT(traverse_module_state->__pyx_kp_u_location_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_luid); Py_VISIT(traverse_module_state->__pyx_kp_u_luidDeviceNodeMask); Py_VISIT(traverse_module_state->__pyx_n_s_luidDeviceNodeMask_2); Py_VISIT(traverse_module_state->__pyx_kp_u_luidDeviceNodeMask_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_luid_2); Py_VISIT(traverse_module_state->__pyx_kp_u_luid_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_luid_length_must_be_8_is); Py_VISIT(traverse_module_state->__pyx_n_s_main); Py_VISIT(traverse_module_state->__pyx_kp_u_major); Py_VISIT(traverse_module_state->__pyx_n_s_major_2); Py_VISIT(traverse_module_state->__pyx_kp_u_major_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_make_cudaExtent); Py_VISIT(traverse_module_state->__pyx_n_s_make_cudaPitchedPtr); Py_VISIT(traverse_module_state->__pyx_n_s_make_cudaPos); Py_VISIT(traverse_module_state->__pyx_kp_u_managedMemory); Py_VISIT(traverse_module_state->__pyx_n_s_managedMemory_2); Py_VISIT(traverse_module_state->__pyx_kp_u_managedMemory_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_maxAnisotropy); Py_VISIT(traverse_module_state->__pyx_n_s_maxAnisotropy_2); Py_VISIT(traverse_module_state->__pyx_kp_u_maxAnisotropy_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_maxBlocksPerMultiProcessor); Py_VISIT(traverse_module_state->__pyx_n_s_maxBlocksPerMultiProcessor_2); Py_VISIT(traverse_module_state->__pyx_kp_u_maxBlocksPerMultiProcessor_Value); Py_VISIT(traverse_module_state->__pyx_kp_u_maxDynamicSharedSizeBytes); Py_VISIT(traverse_module_state->__pyx_n_s_maxDynamicSharedSizeBytes_2); Py_VISIT(traverse_module_state->__pyx_kp_u_maxDynamicSharedSizeBytes_ValueE); Py_VISIT(traverse_module_state->__pyx_kp_u_maxGridSize); Py_VISIT(traverse_module_state->__pyx_n_s_maxGridSize_2); Py_VISIT(traverse_module_state->__pyx_kp_u_maxGridSize_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_maxMipmapLevelClamp); Py_VISIT(traverse_module_state->__pyx_n_s_maxMipmapLevelClamp_2); Py_VISIT(traverse_module_state->__pyx_kp_u_maxMipmapLevelClamp_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_maxSize); Py_VISIT(traverse_module_state->__pyx_n_s_maxSize_2); Py_VISIT(traverse_module_state->__pyx_kp_u_maxSize_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_maxSurface1D); Py_VISIT(traverse_module_state->__pyx_kp_u_maxSurface1DLayered); Py_VISIT(traverse_module_state->__pyx_n_s_maxSurface1DLayered_2); Py_VISIT(traverse_module_state->__pyx_kp_u_maxSurface1DLayered_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_maxSurface1D_2); Py_VISIT(traverse_module_state->__pyx_kp_u_maxSurface1D_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_maxSurface2D); Py_VISIT(traverse_module_state->__pyx_kp_u_maxSurface2DLayered); Py_VISIT(traverse_module_state->__pyx_n_s_maxSurface2DLayered_2); Py_VISIT(traverse_module_state->__pyx_kp_u_maxSurface2DLayered_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_maxSurface2D_2); Py_VISIT(traverse_module_state->__pyx_kp_u_maxSurface2D_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_maxSurface3D); Py_VISIT(traverse_module_state->__pyx_n_s_maxSurface3D_2); Py_VISIT(traverse_module_state->__pyx_kp_u_maxSurface3D_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_maxSurfaceCubemap); Py_VISIT(traverse_module_state->__pyx_kp_u_maxSurfaceCubemapLayered); Py_VISIT(traverse_module_state->__pyx_n_s_maxSurfaceCubemapLayered_2); Py_VISIT(traverse_module_state->__pyx_kp_u_maxSurfaceCubemapLayered_ValueEr); Py_VISIT(traverse_module_state->__pyx_n_s_maxSurfaceCubemap_2); Py_VISIT(traverse_module_state->__pyx_kp_u_maxSurfaceCubemap_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_maxTexture1D); Py_VISIT(traverse_module_state->__pyx_kp_u_maxTexture1DLayered); Py_VISIT(traverse_module_state->__pyx_n_s_maxTexture1DLayered_2); Py_VISIT(traverse_module_state->__pyx_kp_u_maxTexture1DLayered_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_maxTexture1DLinear); Py_VISIT(traverse_module_state->__pyx_n_s_maxTexture1DLinear_2); Py_VISIT(traverse_module_state->__pyx_kp_u_maxTexture1DLinear_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_maxTexture1DMipmap); Py_VISIT(traverse_module_state->__pyx_n_s_maxTexture1DMipmap_2); Py_VISIT(traverse_module_state->__pyx_kp_u_maxTexture1DMipmap_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_maxTexture1D_2); Py_VISIT(traverse_module_state->__pyx_kp_u_maxTexture1D_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_maxTexture2D); Py_VISIT(traverse_module_state->__pyx_kp_u_maxTexture2DGather); Py_VISIT(traverse_module_state->__pyx_n_s_maxTexture2DGather_2); Py_VISIT(traverse_module_state->__pyx_kp_u_maxTexture2DGather_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_maxTexture2DLayered); Py_VISIT(traverse_module_state->__pyx_n_s_maxTexture2DLayered_2); Py_VISIT(traverse_module_state->__pyx_kp_u_maxTexture2DLayered_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_maxTexture2DLinear); Py_VISIT(traverse_module_state->__pyx_n_s_maxTexture2DLinear_2); Py_VISIT(traverse_module_state->__pyx_kp_u_maxTexture2DLinear_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_maxTexture2DMipmap); Py_VISIT(traverse_module_state->__pyx_n_s_maxTexture2DMipmap_2); Py_VISIT(traverse_module_state->__pyx_kp_u_maxTexture2DMipmap_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_maxTexture2D_2); Py_VISIT(traverse_module_state->__pyx_kp_u_maxTexture2D_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_maxTexture3D); Py_VISIT(traverse_module_state->__pyx_kp_u_maxTexture3DAlt); Py_VISIT(traverse_module_state->__pyx_n_s_maxTexture3DAlt_2); Py_VISIT(traverse_module_state->__pyx_kp_u_maxTexture3DAlt_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_maxTexture3D_2); Py_VISIT(traverse_module_state->__pyx_kp_u_maxTexture3D_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_maxTextureCubemap); Py_VISIT(traverse_module_state->__pyx_kp_u_maxTextureCubemapLayered); Py_VISIT(traverse_module_state->__pyx_n_s_maxTextureCubemapLayered_2); Py_VISIT(traverse_module_state->__pyx_kp_u_maxTextureCubemapLayered_ValueEr); Py_VISIT(traverse_module_state->__pyx_n_s_maxTextureCubemap_2); Py_VISIT(traverse_module_state->__pyx_kp_u_maxTextureCubemap_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_maxThreadsDim); Py_VISIT(traverse_module_state->__pyx_n_s_maxThreadsDim_2); Py_VISIT(traverse_module_state->__pyx_kp_u_maxThreadsDim_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_maxThreadsPerBlock); Py_VISIT(traverse_module_state->__pyx_n_s_maxThreadsPerBlock_2); Py_VISIT(traverse_module_state->__pyx_kp_u_maxThreadsPerBlock_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_maxThreadsPerMultiProcessor); Py_VISIT(traverse_module_state->__pyx_n_s_maxThreadsPerMultiProcessor_2); Py_VISIT(traverse_module_state->__pyx_kp_u_maxThreadsPerMultiProcessor_Valu); Py_VISIT(traverse_module_state->__pyx_n_s_maxWidthInElements); Py_VISIT(traverse_module_state->__pyx_n_s_memHandleDesc); Py_VISIT(traverse_module_state->__pyx_kp_u_memPitch); Py_VISIT(traverse_module_state->__pyx_n_s_memPitch_2); Py_VISIT(traverse_module_state->__pyx_kp_u_memPitch_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_memPool); Py_VISIT(traverse_module_state->__pyx_kp_u_memSyncDomain); Py_VISIT(traverse_module_state->__pyx_kp_u_memSyncDomainMap); Py_VISIT(traverse_module_state->__pyx_n_s_memSyncDomainMap_2); Py_VISIT(traverse_module_state->__pyx_kp_u_memSyncDomainMap_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_memSyncDomain_2); Py_VISIT(traverse_module_state->__pyx_kp_u_memSyncDomain_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_memcpy); Py_VISIT(traverse_module_state->__pyx_n_s_memcpy_2); Py_VISIT(traverse_module_state->__pyx_kp_u_memcpy_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_memoryBusWidth); Py_VISIT(traverse_module_state->__pyx_n_s_memoryBusWidth_2); Py_VISIT(traverse_module_state->__pyx_kp_u_memoryBusWidth_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_memoryClockRate); Py_VISIT(traverse_module_state->__pyx_n_s_memoryClockRate_2); Py_VISIT(traverse_module_state->__pyx_kp_u_memoryClockRate_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_memoryPoolSupportedHandleTypes); Py_VISIT(traverse_module_state->__pyx_n_s_memoryPoolSupportedHandleTypes_2); Py_VISIT(traverse_module_state->__pyx_kp_u_memoryPoolSupportedHandleTypes_V); Py_VISIT(traverse_module_state->__pyx_kp_u_memoryPoolsSupported); Py_VISIT(traverse_module_state->__pyx_n_s_memoryPoolsSupported_2); Py_VISIT(traverse_module_state->__pyx_kp_u_memoryPoolsSupported_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_memoryRequirements); Py_VISIT(traverse_module_state->__pyx_kp_u_memset); Py_VISIT(traverse_module_state->__pyx_n_s_memset_2); Py_VISIT(traverse_module_state->__pyx_kp_u_memset_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_metaclass); Py_VISIT(traverse_module_state->__pyx_n_s_minBytesToKeep); Py_VISIT(traverse_module_state->__pyx_kp_u_minMipmapLevelClamp); Py_VISIT(traverse_module_state->__pyx_n_s_minMipmapLevelClamp_2); Py_VISIT(traverse_module_state->__pyx_kp_u_minMipmapLevelClamp_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_minor); Py_VISIT(traverse_module_state->__pyx_n_s_minor_2); Py_VISIT(traverse_module_state->__pyx_kp_u_minor_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_mipLevel); Py_VISIT(traverse_module_state->__pyx_kp_u_mipmap); Py_VISIT(traverse_module_state->__pyx_n_s_mipmapDesc); Py_VISIT(traverse_module_state->__pyx_kp_u_mipmapFilterMode); Py_VISIT(traverse_module_state->__pyx_n_s_mipmapFilterMode_2); Py_VISIT(traverse_module_state->__pyx_kp_u_mipmapFilterMode_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_mipmapLevelBias); Py_VISIT(traverse_module_state->__pyx_n_s_mipmapLevelBias_2); Py_VISIT(traverse_module_state->__pyx_kp_u_mipmapLevelBias_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_mipmap_2); Py_VISIT(traverse_module_state->__pyx_kp_u_mipmap_3); Py_VISIT(traverse_module_state->__pyx_kp_u_mipmap_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_mipmappedArray); Py_VISIT(traverse_module_state->__pyx_kp_u_miptailFirstLevel); Py_VISIT(traverse_module_state->__pyx_n_s_miptailFirstLevel_2); Py_VISIT(traverse_module_state->__pyx_kp_u_miptailFirstLevel_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_miptailSize); Py_VISIT(traverse_module_state->__pyx_n_s_miptailSize_2); Py_VISIT(traverse_module_state->__pyx_kp_u_miptailSize_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_missProp); Py_VISIT(traverse_module_state->__pyx_n_s_missProp_2); Py_VISIT(traverse_module_state->__pyx_kp_u_missProp_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_mode); Py_VISIT(traverse_module_state->__pyx_n_s_module); Py_VISIT(traverse_module_state->__pyx_n_s_mro_entries); Py_VISIT(traverse_module_state->__pyx_n_s_ms); Py_VISIT(traverse_module_state->__pyx_kp_u_multiGpuBoardGroupID); Py_VISIT(traverse_module_state->__pyx_n_s_multiGpuBoardGroupID_2); Py_VISIT(traverse_module_state->__pyx_kp_u_multiGpuBoardGroupID_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_multiProcessorCount); Py_VISIT(traverse_module_state->__pyx_n_s_multiProcessorCount_2); Py_VISIT(traverse_module_state->__pyx_kp_u_multiProcessorCount_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_name); Py_VISIT(traverse_module_state->__pyx_n_s_name_2); Py_VISIT(traverse_module_state->__pyx_n_s_name_3); Py_VISIT(traverse_module_state->__pyx_kp_u_name_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_s_no_default___reduce___due_to_non); Py_VISIT(traverse_module_state->__pyx_kp_u_node); Py_VISIT(traverse_module_state->__pyx_n_s_nodeParams); Py_VISIT(traverse_module_state->__pyx_n_s_node_2); Py_VISIT(traverse_module_state->__pyx_kp_u_node_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_nonPortableClusterSizeAllowed); Py_VISIT(traverse_module_state->__pyx_n_s_nonPortableClusterSizeAllowed_2); Py_VISIT(traverse_module_state->__pyx_kp_u_nonPortableClusterSizeAllowed_Va); Py_VISIT(traverse_module_state->__pyx_kp_u_normalizedCoords); Py_VISIT(traverse_module_state->__pyx_n_s_normalizedCoords_2); Py_VISIT(traverse_module_state->__pyx_kp_u_normalizedCoords_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_not_enough_values_found_during_a); Py_VISIT(traverse_module_state->__pyx_n_s_numAttributes); Py_VISIT(traverse_module_state->__pyx_n_s_numBlocks); Py_VISIT(traverse_module_state->__pyx_kp_u_numChannels); Py_VISIT(traverse_module_state->__pyx_n_s_numChannels_2); Py_VISIT(traverse_module_state->__pyx_kp_u_numChannels_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_numDependencies); Py_VISIT(traverse_module_state->__pyx_n_s_numDependencies_out); Py_VISIT(traverse_module_state->__pyx_n_s_numEdges); Py_VISIT(traverse_module_state->__pyx_kp_u_numExtSems); Py_VISIT(traverse_module_state->__pyx_n_s_numExtSems_2); Py_VISIT(traverse_module_state->__pyx_kp_u_numExtSems_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_numLevels); Py_VISIT(traverse_module_state->__pyx_n_s_numLevels_2); Py_VISIT(traverse_module_state->__pyx_kp_u_numLevels_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_numNodes); Py_VISIT(traverse_module_state->__pyx_kp_u_numRegs); Py_VISIT(traverse_module_state->__pyx_n_s_numRegs_2); Py_VISIT(traverse_module_state->__pyx_kp_u_numRegs_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_num_bytes); Py_VISIT(traverse_module_state->__pyx_n_s_num_bytes_2); Py_VISIT(traverse_module_state->__pyx_kp_u_num_bytes_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_nvSciBufObject); Py_VISIT(traverse_module_state->__pyx_n_s_nvSciBufObject_2); Py_VISIT(traverse_module_state->__pyx_kp_u_nvSciBufObject_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_nvSciSync); Py_VISIT(traverse_module_state->__pyx_n_s_nvSciSyncAttrList); Py_VISIT(traverse_module_state->__pyx_kp_u_nvSciSyncObj); Py_VISIT(traverse_module_state->__pyx_n_s_nvSciSyncObj_2); Py_VISIT(traverse_module_state->__pyx_kp_u_nvSciSyncObj_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_nvSciSync_2); Py_VISIT(traverse_module_state->__pyx_kp_u_nvSciSync_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_obj); Py_VISIT(traverse_module_state->__pyx_n_s_objType); Py_VISIT(traverse_module_state->__pyx_n_s_object); Py_VISIT(traverse_module_state->__pyx_n_s_object_out); Py_VISIT(traverse_module_state->__pyx_kp_u_offset); Py_VISIT(traverse_module_state->__pyx_n_s_offset_2); Py_VISIT(traverse_module_state->__pyx_kp_u_offset_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_originalGraph); Py_VISIT(traverse_module_state->__pyx_n_s_originalNode); Py_VISIT(traverse_module_state->__pyx_kp_u_overBudget); Py_VISIT(traverse_module_state->__pyx_n_s_overBudget_2); Py_VISIT(traverse_module_state->__pyx_kp_u_overBudget_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_p); Py_VISIT(traverse_module_state->__pyx_kp_u_pArray); Py_VISIT(traverse_module_state->__pyx_n_s_pArray_2); Py_VISIT(traverse_module_state->__pyx_kp_u_pArray_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_pCacheConfig); Py_VISIT(traverse_module_state->__pyx_n_s_pCaptureStatus); Py_VISIT(traverse_module_state->__pyx_n_s_pConfig); Py_VISIT(traverse_module_state->__pyx_n_s_pCopyParams); Py_VISIT(traverse_module_state->__pyx_n_s_pCudaDeviceCount); Py_VISIT(traverse_module_state->__pyx_n_s_pCudaResource); Py_VISIT(traverse_module_state->__pyx_n_s_pDependencies); Py_VISIT(traverse_module_state->__pyx_n_s_pDevice); Py_VISIT(traverse_module_state->__pyx_n_s_pExportTableId); Py_VISIT(traverse_module_state->__pyx_n_s_pFlags); Py_VISIT(traverse_module_state->__pyx_n_s_pGraph); Py_VISIT(traverse_module_state->__pyx_n_s_pGraphClone); Py_VISIT(traverse_module_state->__pyx_n_s_pGraphExec); Py_VISIT(traverse_module_state->__pyx_n_s_pGraphNode); Py_VISIT(traverse_module_state->__pyx_n_s_pHandle_out); Py_VISIT(traverse_module_state->__pyx_n_s_pHost); Py_VISIT(traverse_module_state->__pyx_n_s_pMemsetParams); Py_VISIT(traverse_module_state->__pyx_n_s_pNode); Py_VISIT(traverse_module_state->__pyx_n_s_pNodeParams); Py_VISIT(traverse_module_state->__pyx_n_s_pNumDependencies); Py_VISIT(traverse_module_state->__pyx_n_s_pNumDependentNodes); Py_VISIT(traverse_module_state->__pyx_n_s_pNumRootNodes); Py_VISIT(traverse_module_state->__pyx_kp_u_pPitch); Py_VISIT(traverse_module_state->__pyx_n_s_pPitch_2); Py_VISIT(traverse_module_state->__pyx_kp_u_pPitch_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_pPlaneArray); Py_VISIT(traverse_module_state->__pyx_n_s_pResDesc); Py_VISIT(traverse_module_state->__pyx_n_s_pResViewDesc); Py_VISIT(traverse_module_state->__pyx_n_s_pStream); Py_VISIT(traverse_module_state->__pyx_n_s_pSurfObject); Py_VISIT(traverse_module_state->__pyx_n_s_pTexDesc); Py_VISIT(traverse_module_state->__pyx_n_s_pTexObject); Py_VISIT(traverse_module_state->__pyx_n_s_pType); Py_VISIT(traverse_module_state->__pyx_kp_u_pValue); Py_VISIT(traverse_module_state->__pyx_n_s_pValue_2); Py_VISIT(traverse_module_state->__pyx_kp_u_pValue_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_pad); Py_VISIT(traverse_module_state->__pyx_n_s_pad_2); Py_VISIT(traverse_module_state->__pyx_kp_u_pad_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_pad_length_must_be_64_is); Py_VISIT(traverse_module_state->__pyx_kp_u_pageableMemoryAccess); Py_VISIT(traverse_module_state->__pyx_kp_u_pageableMemoryAccessUsesHostPage); Py_VISIT(traverse_module_state->__pyx_n_s_pageableMemoryAccessUsesHostPage_2); Py_VISIT(traverse_module_state->__pyx_kp_u_pageableMemoryAccessUsesHostPage_3); Py_VISIT(traverse_module_state->__pyx_n_s_pageableMemoryAccess_2); Py_VISIT(traverse_module_state->__pyx_kp_u_pageableMemoryAccess_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_param); Py_VISIT(traverse_module_state->__pyx_n_s_param_2); Py_VISIT(traverse_module_state->__pyx_kp_u_param_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_params); Py_VISIT(traverse_module_state->__pyx_kp_u_paramsArray); Py_VISIT(traverse_module_state->__pyx_n_s_paramsArray_2); Py_VISIT(traverse_module_state->__pyx_kp_u_paramsArray_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_params_2); Py_VISIT(traverse_module_state->__pyx_kp_u_params_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_params_out); Py_VISIT(traverse_module_state->__pyx_n_s_parray); Py_VISIT(traverse_module_state->__pyx_n_s_path); Py_VISIT(traverse_module_state->__pyx_n_s_pbuffer); Py_VISIT(traverse_module_state->__pyx_n_s_pcallback); Py_VISIT(traverse_module_state->__pyx_n_s_pcallbackFunc); Py_VISIT(traverse_module_state->__pyx_n_s_pchildGraph); Py_VISIT(traverse_module_state->__pyx_kp_u_pciBusID); Py_VISIT(traverse_module_state->__pyx_n_s_pciBusID_2); Py_VISIT(traverse_module_state->__pyx_kp_u_pciBusID_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_pciBusId); Py_VISIT(traverse_module_state->__pyx_kp_u_pciDeviceID); Py_VISIT(traverse_module_state->__pyx_n_s_pciDeviceID_2); Py_VISIT(traverse_module_state->__pyx_kp_u_pciDeviceID_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_pciDomainID); Py_VISIT(traverse_module_state->__pyx_n_s_pciDomainID_2); Py_VISIT(traverse_module_state->__pyx_kp_u_pciDomainID_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_pclonedGraph); Py_VISIT(traverse_module_state->__pyx_n_s_pconn); Py_VISIT(traverse_module_state->__pyx_n_s_pdestroy); Py_VISIT(traverse_module_state->__pyx_n_s_pdst); Py_VISIT(traverse_module_state->__pyx_n_s_peerDevice); Py_VISIT(traverse_module_state->__pyx_n_s_peglStream); Py_VISIT(traverse_module_state->__pyx_n_s_peglSync); Py_VISIT(traverse_module_state->__pyx_n_s_pend); Py_VISIT(traverse_module_state->__pyx_kp_u_persistingL2CacheMaxSize); Py_VISIT(traverse_module_state->__pyx_n_s_persistingL2CacheMaxSize_2); Py_VISIT(traverse_module_state->__pyx_kp_u_persistingL2CacheMaxSize_ValueEr); Py_VISIT(traverse_module_state->__pyx_n_s_pevent); Py_VISIT(traverse_module_state->__pyx_n_s_pextMem); Py_VISIT(traverse_module_state->__pyx_n_s_pextSem); Py_VISIT(traverse_module_state->__pyx_n_s_pfn); Py_VISIT(traverse_module_state->__pyx_n_s_pgraph); Py_VISIT(traverse_module_state->__pyx_n_s_pgraphExec); Py_VISIT(traverse_module_state->__pyx_n_s_phArray); Py_VISIT(traverse_module_state->__pyx_n_s_phDst); Py_VISIT(traverse_module_state->__pyx_n_s_phEvent); Py_VISIT(traverse_module_state->__pyx_n_s_phGraph); Py_VISIT(traverse_module_state->__pyx_n_s_phGraphExec); Py_VISIT(traverse_module_state->__pyx_kp_u_phGraph_out); Py_VISIT(traverse_module_state->__pyx_n_s_phGraph_out_2); Py_VISIT(traverse_module_state->__pyx_kp_u_phGraph_out_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_phNode); Py_VISIT(traverse_module_state->__pyx_n_s_phSrc); Py_VISIT(traverse_module_state->__pyx_n_s_phStream); Py_VISIT(traverse_module_state->__pyx_n_s_pheight); Py_VISIT(traverse_module_state->__pyx_n_s_pimage); Py_VISIT(traverse_module_state->__pyx_kp_u_pitch); Py_VISIT(traverse_module_state->__pyx_kp_u_pitch2D); Py_VISIT(traverse_module_state->__pyx_n_s_pitch2D_2); Py_VISIT(traverse_module_state->__pyx_kp_u_pitch2D_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_pitchInBytes); Py_VISIT(traverse_module_state->__pyx_n_s_pitchInBytes_2); Py_VISIT(traverse_module_state->__pyx_kp_u_pitchInBytes_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_pitch_2); Py_VISIT(traverse_module_state->__pyx_kp_u_pitch_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_pitchedDevPtr); Py_VISIT(traverse_module_state->__pyx_kp_u_planeCount); Py_VISIT(traverse_module_state->__pyx_n_s_planeCount_2); Py_VISIT(traverse_module_state->__pyx_kp_u_planeCount_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_planeDesc); Py_VISIT(traverse_module_state->__pyx_n_s_planeDesc_2); Py_VISIT(traverse_module_state->__pyx_kp_u_planeDesc_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_planeIdx); Py_VISIT(traverse_module_state->__pyx_n_s_pmemPool); Py_VISIT(traverse_module_state->__pyx_n_s_pmipmap); Py_VISIT(traverse_module_state->__pyx_n_s_pmipmappedArray); Py_VISIT(traverse_module_state->__pyx_n_s_pnode); Py_VISIT(traverse_module_state->__pyx_n_s_pobject); Py_VISIT(traverse_module_state->__pyx_kp_u_poolProps); Py_VISIT(traverse_module_state->__pyx_n_s_poolProps_2); Py_VISIT(traverse_module_state->__pyx_kp_u_poolProps_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_poriginalGraph); Py_VISIT(traverse_module_state->__pyx_n_s_poriginalNode); Py_VISIT(traverse_module_state->__pyx_n_s_ppCudaResource); Py_VISIT(traverse_module_state->__pyx_n_s_ppExportTable); Py_VISIT(traverse_module_state->__pyx_n_s_ppStream); Py_VISIT(traverse_module_state->__pyx_kp_u_preferredShmemCarveout); Py_VISIT(traverse_module_state->__pyx_n_s_preferredShmemCarveout_2); Py_VISIT(traverse_module_state->__pyx_kp_u_preferredShmemCarveout_ValueErro); Py_VISIT(traverse_module_state->__pyx_n_s_prepare); Py_VISIT(traverse_module_state->__pyx_n_s_presource); Py_VISIT(traverse_module_state->__pyx_n_s_presources); Py_VISIT(traverse_module_state->__pyx_kp_u_priority); Py_VISIT(traverse_module_state->__pyx_n_s_priority_2); Py_VISIT(traverse_module_state->__pyx_kp_u_priority_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_programmaticEvent); Py_VISIT(traverse_module_state->__pyx_n_s_programmaticEvent_2); Py_VISIT(traverse_module_state->__pyx_kp_u_programmaticEvent_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_programmaticStreamSerializationA); Py_VISIT(traverse_module_state->__pyx_n_s_programmaticStreamSerializationA_2); Py_VISIT(traverse_module_state->__pyx_kp_u_programmaticStreamSerializationA_3); Py_VISIT(traverse_module_state->__pyx_n_s_prop); Py_VISIT(traverse_module_state->__pyx_n_s_psrc); Py_VISIT(traverse_module_state->__pyx_n_s_pstart); Py_VISIT(traverse_module_state->__pyx_n_s_pstream); Py_VISIT(traverse_module_state->__pyx_n_s_psurfObject); Py_VISIT(traverse_module_state->__pyx_n_s_ptarget); Py_VISIT(traverse_module_state->__pyx_n_s_ptexObject); Py_VISIT(traverse_module_state->__pyx_n_s_ptr); Py_VISIT(traverse_module_state->__pyx_kp_u_ptr_2); Py_VISIT(traverse_module_state->__pyx_n_s_ptr_3); Py_VISIT(traverse_module_state->__pyx_kp_u_ptr_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_ptxVersion); Py_VISIT(traverse_module_state->__pyx_n_s_ptxVersion_2); Py_VISIT(traverse_module_state->__pyx_kp_u_ptxVersion_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_pvdpDevice); Py_VISIT(traverse_module_state->__pyx_n_s_pvdpGetProcAddress); Py_VISIT(traverse_module_state->__pyx_n_s_pvdpSurface); Py_VISIT(traverse_module_state->__pyx_n_s_pwidth); Py_VISIT(traverse_module_state->__pyx_n_s_pyObj); Py_VISIT(traverse_module_state->__pyx_n_s_pyattributes); Py_VISIT(traverse_module_state->__pyx_n_s_pydataSizes); Py_VISIT(traverse_module_state->__pyx_n_s_pydependencies_out); Py_VISIT(traverse_module_state->__pyx_n_s_pyedgeData); Py_VISIT(traverse_module_state->__pyx_n_s_pyedgeData_out); Py_VISIT(traverse_module_state->__pyx_n_s_pyfrom); Py_VISIT(traverse_module_state->__pyx_n_s_pylist); Py_VISIT(traverse_module_state->__pyx_n_s_pynodes); Py_VISIT(traverse_module_state->__pyx_n_s_pypCudaDevices); Py_VISIT(traverse_module_state->__pyx_n_s_pypDependencies); Py_VISIT(traverse_module_state->__pyx_n_s_pypDependentNodes); Py_VISIT(traverse_module_state->__pyx_n_s_pypRootNodes); Py_VISIT(traverse_module_state->__pyx_n_s_pypciBusId); Py_VISIT(traverse_module_state->__pyx_n_s_pyto); Py_VISIT(traverse_module_state->__pyx_n_s_pyx_state); Py_VISIT(traverse_module_state->__pyx_n_s_qualname); Py_VISIT(traverse_module_state->__pyx_n_s_range); Py_VISIT(traverse_module_state->__pyx_kp_u_readMode); Py_VISIT(traverse_module_state->__pyx_n_s_readMode_2); Py_VISIT(traverse_module_state->__pyx_kp_u_readMode_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_reduce); Py_VISIT(traverse_module_state->__pyx_n_s_reduce_cython); Py_VISIT(traverse_module_state->__pyx_n_s_reduce_ex); Py_VISIT(traverse_module_state->__pyx_kp_u_regsPerBlock); Py_VISIT(traverse_module_state->__pyx_n_s_regsPerBlock_2); Py_VISIT(traverse_module_state->__pyx_kp_u_regsPerBlock_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_regsPerMultiprocessor); Py_VISIT(traverse_module_state->__pyx_n_s_regsPerMultiprocessor_2); Py_VISIT(traverse_module_state->__pyx_kp_u_regsPerMultiprocessor_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_remote); Py_VISIT(traverse_module_state->__pyx_n_s_remote_2); Py_VISIT(traverse_module_state->__pyx_kp_u_remote_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_requiredClusterDepth); Py_VISIT(traverse_module_state->__pyx_n_s_requiredClusterDepth_2); Py_VISIT(traverse_module_state->__pyx_kp_u_requiredClusterDepth_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_requiredClusterHeight); Py_VISIT(traverse_module_state->__pyx_n_s_requiredClusterHeight_2); Py_VISIT(traverse_module_state->__pyx_kp_u_requiredClusterHeight_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_requiredClusterWidth); Py_VISIT(traverse_module_state->__pyx_n_s_requiredClusterWidth_2); Py_VISIT(traverse_module_state->__pyx_kp_u_requiredClusterWidth_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_res); Py_VISIT(traverse_module_state->__pyx_kp_u_resType); Py_VISIT(traverse_module_state->__pyx_n_s_resType_2); Py_VISIT(traverse_module_state->__pyx_kp_u_resType_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_res_2); Py_VISIT(traverse_module_state->__pyx_kp_u_res_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_reserved); Py_VISIT(traverse_module_state->__pyx_kp_u_reserved0); Py_VISIT(traverse_module_state->__pyx_n_s_reserved0_2); Py_VISIT(traverse_module_state->__pyx_kp_u_reserved0_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_reserved1); Py_VISIT(traverse_module_state->__pyx_n_s_reserved1_2); Py_VISIT(traverse_module_state->__pyx_kp_u_reserved1_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_reserved2); Py_VISIT(traverse_module_state->__pyx_n_s_reserved2_2); Py_VISIT(traverse_module_state->__pyx_kp_u_reserved2_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_reservedSharedMemPerBlock); Py_VISIT(traverse_module_state->__pyx_n_s_reservedSharedMemPerBlock_2); Py_VISIT(traverse_module_state->__pyx_kp_u_reservedSharedMemPerBlock_ValueE); Py_VISIT(traverse_module_state->__pyx_n_s_reserved_2); Py_VISIT(traverse_module_state->__pyx_kp_u_reserved_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_reserved_length_must_be_54_is); Py_VISIT(traverse_module_state->__pyx_kp_u_reserved_length_must_be_5_is); Py_VISIT(traverse_module_state->__pyx_kp_u_reserved_length_must_be_64_is); Py_VISIT(traverse_module_state->__pyx_n_s_resource); Py_VISIT(traverse_module_state->__pyx_n_s_resources); Py_VISIT(traverse_module_state->__pyx_kp_u_result); Py_VISIT(traverse_module_state->__pyx_n_s_resultInfo); Py_VISIT(traverse_module_state->__pyx_n_s_result_2); Py_VISIT(traverse_module_state->__pyx_kp_u_result_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_result_out); Py_VISIT(traverse_module_state->__pyx_n_s_result_out_2); Py_VISIT(traverse_module_state->__pyx_kp_u_result_out_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_runtimeVersion); Py_VISIT(traverse_module_state->__pyx_kp_u_sRGB); Py_VISIT(traverse_module_state->__pyx_n_s_sRGB_2); Py_VISIT(traverse_module_state->__pyx_kp_u_sRGB_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_scope); Py_VISIT(traverse_module_state->__pyx_kp_u_seamlessCubemap); Py_VISIT(traverse_module_state->__pyx_n_s_seamlessCubemap_2); Py_VISIT(traverse_module_state->__pyx_kp_u_seamlessCubemap_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_self); Py_VISIT(traverse_module_state->__pyx_n_s_semHandleDesc); Py_VISIT(traverse_module_state->__pyx_n_s_send); Py_VISIT(traverse_module_state->__pyx_n_s_set_name); Py_VISIT(traverse_module_state->__pyx_n_s_setstate); Py_VISIT(traverse_module_state->__pyx_n_s_setstate_cython); Py_VISIT(traverse_module_state->__pyx_n_s_shareableHandle); Py_VISIT(traverse_module_state->__pyx_kp_u_sharedMemBytes); Py_VISIT(traverse_module_state->__pyx_n_s_sharedMemBytes_2); Py_VISIT(traverse_module_state->__pyx_kp_u_sharedMemBytes_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_sharedMemCarveout); Py_VISIT(traverse_module_state->__pyx_n_s_sharedMemCarveout_2); Py_VISIT(traverse_module_state->__pyx_kp_u_sharedMemCarveout_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_sharedMemPerBlock); Py_VISIT(traverse_module_state->__pyx_kp_u_sharedMemPerBlockOptin); Py_VISIT(traverse_module_state->__pyx_n_s_sharedMemPerBlockOptin_2); Py_VISIT(traverse_module_state->__pyx_kp_u_sharedMemPerBlockOptin_ValueErro); Py_VISIT(traverse_module_state->__pyx_n_s_sharedMemPerBlock_2); Py_VISIT(traverse_module_state->__pyx_kp_u_sharedMemPerBlock_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_sharedMemPerMultiprocessor); Py_VISIT(traverse_module_state->__pyx_n_s_sharedMemPerMultiprocessor_2); Py_VISIT(traverse_module_state->__pyx_kp_u_sharedMemPerMultiprocessor_Value); Py_VISIT(traverse_module_state->__pyx_kp_u_sharedSizeBytes); Py_VISIT(traverse_module_state->__pyx_n_s_sharedSizeBytes_2); Py_VISIT(traverse_module_state->__pyx_kp_u_sharedSizeBytes_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_singleToDoublePrecisionPerfRatio); Py_VISIT(traverse_module_state->__pyx_n_s_singleToDoublePrecisionPerfRatio_2); Py_VISIT(traverse_module_state->__pyx_kp_u_singleToDoublePrecisionPerfRatio_3); Py_VISIT(traverse_module_state->__pyx_kp_u_size); Py_VISIT(traverse_module_state->__pyx_kp_u_sizeInBytes); Py_VISIT(traverse_module_state->__pyx_n_s_sizeInBytes_2); Py_VISIT(traverse_module_state->__pyx_kp_u_sizeInBytes_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_size_2); Py_VISIT(traverse_module_state->__pyx_kp_u_size_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_sizeof); Py_VISIT(traverse_module_state->__pyx_kp_u_sparseCudaArraySupported); Py_VISIT(traverse_module_state->__pyx_n_s_sparseCudaArraySupported_2); Py_VISIT(traverse_module_state->__pyx_kp_u_sparseCudaArraySupported_ValueEr); Py_VISIT(traverse_module_state->__pyx_n_s_sparseProperties); Py_VISIT(traverse_module_state->__pyx_n_s_spec); Py_VISIT(traverse_module_state->__pyx_n_s_spitch); Py_VISIT(traverse_module_state->__pyx_n_s_src); Py_VISIT(traverse_module_state->__pyx_kp_u_srcArray); Py_VISIT(traverse_module_state->__pyx_n_s_srcArray_2); Py_VISIT(traverse_module_state->__pyx_kp_u_srcArray_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_srcDevice); Py_VISIT(traverse_module_state->__pyx_n_s_srcDevice_2); Py_VISIT(traverse_module_state->__pyx_kp_u_srcDevice_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_srcPos); Py_VISIT(traverse_module_state->__pyx_n_s_srcPos_2); Py_VISIT(traverse_module_state->__pyx_kp_u_srcPos_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_srcPtr); Py_VISIT(traverse_module_state->__pyx_n_s_srcPtr_2); Py_VISIT(traverse_module_state->__pyx_kp_u_srcPtr_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_start); Py_VISIT(traverse_module_state->__pyx_n_s_stream); Py_VISIT(traverse_module_state->__pyx_n_s_streamId); Py_VISIT(traverse_module_state->__pyx_kp_u_streamPrioritiesSupported); Py_VISIT(traverse_module_state->__pyx_n_s_streamPrioritiesSupported_2); Py_VISIT(traverse_module_state->__pyx_kp_u_streamPrioritiesSupported_ValueE); Py_VISIT(traverse_module_state->__pyx_kp_s_stringsource); Py_VISIT(traverse_module_state->__pyx_n_s_super); Py_VISIT(traverse_module_state->__pyx_n_s_surfObject); Py_VISIT(traverse_module_state->__pyx_kp_u_surfaceAlignment); Py_VISIT(traverse_module_state->__pyx_n_s_surfaceAlignment_2); Py_VISIT(traverse_module_state->__pyx_kp_u_surfaceAlignment_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_symbol); Py_VISIT(traverse_module_state->__pyx_kp_u_syncPolicy); Py_VISIT(traverse_module_state->__pyx_n_s_syncPolicy_2); Py_VISIT(traverse_module_state->__pyx_kp_u_syncPolicy_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_target); Py_VISIT(traverse_module_state->__pyx_kp_u_tccDriver); Py_VISIT(traverse_module_state->__pyx_n_s_tccDriver_2); Py_VISIT(traverse_module_state->__pyx_kp_u_tccDriver_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_test); Py_VISIT(traverse_module_state->__pyx_n_s_texObject); Py_VISIT(traverse_module_state->__pyx_kp_u_textureAlignment); Py_VISIT(traverse_module_state->__pyx_n_s_textureAlignment_2); Py_VISIT(traverse_module_state->__pyx_kp_u_textureAlignment_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_texturePitchAlignment); Py_VISIT(traverse_module_state->__pyx_n_s_texturePitchAlignment_2); Py_VISIT(traverse_module_state->__pyx_kp_u_texturePitchAlignment_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_throw); Py_VISIT(traverse_module_state->__pyx_kp_u_tileExtent); Py_VISIT(traverse_module_state->__pyx_n_s_tileExtent_2); Py_VISIT(traverse_module_state->__pyx_kp_u_tileExtent_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_timelineSemaphoreInteropSupporte); Py_VISIT(traverse_module_state->__pyx_n_s_timelineSemaphoreInteropSupporte_2); Py_VISIT(traverse_module_state->__pyx_kp_u_timelineSemaphoreInteropSupporte_3); Py_VISIT(traverse_module_state->__pyx_n_s_timeout); Py_VISIT(traverse_module_state->__pyx_kp_u_timeoutMs); Py_VISIT(traverse_module_state->__pyx_n_s_timeoutMs_2); Py_VISIT(traverse_module_state->__pyx_kp_u_timeoutMs_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_to); Py_VISIT(traverse_module_state->__pyx_kp_u_to_port); Py_VISIT(traverse_module_state->__pyx_n_s_to_port_2); Py_VISIT(traverse_module_state->__pyx_kp_u_to_port_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_total); Py_VISIT(traverse_module_state->__pyx_kp_u_totalConstMem); Py_VISIT(traverse_module_state->__pyx_n_s_totalConstMem_2); Py_VISIT(traverse_module_state->__pyx_kp_u_totalConstMem_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_totalGlobalMem); Py_VISIT(traverse_module_state->__pyx_n_s_totalGlobalMem_2); Py_VISIT(traverse_module_state->__pyx_kp_u_totalGlobalMem_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_triggerAtBlockStart); Py_VISIT(traverse_module_state->__pyx_n_s_triggerAtBlockStart_2); Py_VISIT(traverse_module_state->__pyx_kp_u_triggerAtBlockStart_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_type); Py_VISIT(traverse_module_state->__pyx_n_s_type_2); Py_VISIT(traverse_module_state->__pyx_kp_u_type_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_typing); Py_VISIT(traverse_module_state->__pyx_kp_u_unifiedAddressing); Py_VISIT(traverse_module_state->__pyx_n_s_unifiedAddressing_2); Py_VISIT(traverse_module_state->__pyx_kp_u_unifiedAddressing_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_unifiedFunctionPointers); Py_VISIT(traverse_module_state->__pyx_n_s_unifiedFunctionPointers_2); Py_VISIT(traverse_module_state->__pyx_kp_u_unifiedFunctionPointers_ValueErr); Py_VISIT(traverse_module_state->__pyx_kp_u_updateData); Py_VISIT(traverse_module_state->__pyx_n_s_updateData_2); Py_VISIT(traverse_module_state->__pyx_kp_u_updateData_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_uploadStream); Py_VISIT(traverse_module_state->__pyx_n_s_uploadStream_2); Py_VISIT(traverse_module_state->__pyx_kp_u_uploadStream_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_usage); Py_VISIT(traverse_module_state->__pyx_n_s_usage_2); Py_VISIT(traverse_module_state->__pyx_kp_u_usage_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_userData); Py_VISIT(traverse_module_state->__pyx_n_s_userData_2); Py_VISIT(traverse_module_state->__pyx_kp_u_userData_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_utf_8); Py_VISIT(traverse_module_state->__pyx_kp_u_uuid); Py_VISIT(traverse_module_state->__pyx_n_s_uuid_2); Py_VISIT(traverse_module_state->__pyx_kp_u_uuid_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_val); Py_VISIT(traverse_module_state->__pyx_n_s_val_2); Py_VISIT(traverse_module_state->__pyx_kp_u_val_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_value); Py_VISIT(traverse_module_state->__pyx_kp_u_value_2); Py_VISIT(traverse_module_state->__pyx_kp_u_value_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_value_out); Py_VISIT(traverse_module_state->__pyx_n_s_vdpDevice); Py_VISIT(traverse_module_state->__pyx_n_s_vdpGetProcAddress); Py_VISIT(traverse_module_state->__pyx_n_s_vdpSurface); Py_VISIT(traverse_module_state->__pyx_n_s_voidStarHelperdata); Py_VISIT(traverse_module_state->__pyx_kp_u_w); Py_VISIT(traverse_module_state->__pyx_n_s_wOffset); Py_VISIT(traverse_module_state->__pyx_n_s_wOffsetDst); Py_VISIT(traverse_module_state->__pyx_n_s_wOffsetSrc); Py_VISIT(traverse_module_state->__pyx_n_s_w_2); Py_VISIT(traverse_module_state->__pyx_kp_u_w_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_warpSize); Py_VISIT(traverse_module_state->__pyx_n_s_warpSize_2); Py_VISIT(traverse_module_state->__pyx_kp_u_warpSize_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_width); Py_VISIT(traverse_module_state->__pyx_n_s_width_2); Py_VISIT(traverse_module_state->__pyx_kp_u_width_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_win32); Py_VISIT(traverse_module_state->__pyx_kp_u_win32SecurityAttributes); Py_VISIT(traverse_module_state->__pyx_n_s_win32SecurityAttributes_2); Py_VISIT(traverse_module_state->__pyx_kp_u_win32SecurityAttributes_ValueErr); Py_VISIT(traverse_module_state->__pyx_n_s_win32_2); Py_VISIT(traverse_module_state->__pyx_kp_u_win32_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_wrapper); Py_VISIT(traverse_module_state->__pyx_kp_u_x); Py_VISIT(traverse_module_state->__pyx_n_s_x_2); Py_VISIT(traverse_module_state->__pyx_n_u_x_2); Py_VISIT(traverse_module_state->__pyx_kp_u_x_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_xsize); Py_VISIT(traverse_module_state->__pyx_n_s_xsize_2); Py_VISIT(traverse_module_state->__pyx_kp_u_xsize_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_xsz); Py_VISIT(traverse_module_state->__pyx_kp_u_y); Py_VISIT(traverse_module_state->__pyx_n_s_y_2); Py_VISIT(traverse_module_state->__pyx_kp_u_y_ValueError); Py_VISIT(traverse_module_state->__pyx_kp_u_ysize); Py_VISIT(traverse_module_state->__pyx_n_s_ysize_2); Py_VISIT(traverse_module_state->__pyx_kp_u_ysize_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_ysz); Py_VISIT(traverse_module_state->__pyx_kp_u_z); Py_VISIT(traverse_module_state->__pyx_n_s_z_2); Py_VISIT(traverse_module_state->__pyx_kp_u_z_ValueError); Py_VISIT(traverse_module_state->__pyx_n_s_zip); Py_VISIT(traverse_module_state->__pyx_int_0); Py_VISIT(traverse_module_state->__pyx_int_1); Py_VISIT(traverse_module_state->__pyx_int_127); Py_VISIT(traverse_module_state->__pyx_int_256); Py_VISIT(traverse_module_state->__pyx_int_neg_129); Py_VISIT(traverse_module_state->__pyx_codeobj__2); Py_VISIT(traverse_module_state->__pyx_codeobj__3); Py_VISIT(traverse_module_state->__pyx_codeobj__4); Py_VISIT(traverse_module_state->__pyx_codeobj__5); Py_VISIT(traverse_module_state->__pyx_codeobj__6); Py_VISIT(traverse_module_state->__pyx_codeobj__7); Py_VISIT(traverse_module_state->__pyx_codeobj__8); Py_VISIT(traverse_module_state->__pyx_codeobj__9); Py_VISIT(traverse_module_state->__pyx_tuple__398); Py_VISIT(traverse_module_state->__pyx_tuple__399); Py_VISIT(traverse_module_state->__pyx_tuple__422); Py_VISIT(traverse_module_state->__pyx_tuple__423); Py_VISIT(traverse_module_state->__pyx_tuple__425); Py_VISIT(traverse_module_state->__pyx_tuple__487); Py_VISIT(traverse_module_state->__pyx_tuple__488); Py_VISIT(traverse_module_state->__pyx_tuple__500); Py_VISIT(traverse_module_state->__pyx_tuple__534); Py_VISIT(traverse_module_state->__pyx_tuple__585); Py_VISIT(traverse_module_state->__pyx_tuple__586); Py_VISIT(traverse_module_state->__pyx_tuple__588); Py_VISIT(traverse_module_state->__pyx_tuple__656); Py_VISIT(traverse_module_state->__pyx_tuple__658); Py_VISIT(traverse_module_state->__pyx_tuple__659); Py_VISIT(traverse_module_state->__pyx_tuple__660); Py_VISIT(traverse_module_state->__pyx_tuple__661); Py_VISIT(traverse_module_state->__pyx_tuple__662); Py_VISIT(traverse_module_state->__pyx_tuple__663); Py_VISIT(traverse_module_state->__pyx_tuple__664); Py_VISIT(traverse_module_state->__pyx_tuple__665); Py_VISIT(traverse_module_state->__pyx_tuple__666); Py_VISIT(traverse_module_state->__pyx_tuple__667); Py_VISIT(traverse_module_state->__pyx_tuple__668); Py_VISIT(traverse_module_state->__pyx_tuple__669); Py_VISIT(traverse_module_state->__pyx_tuple__670); Py_VISIT(traverse_module_state->__pyx_tuple__671); Py_VISIT(traverse_module_state->__pyx_tuple__672); Py_VISIT(traverse_module_state->__pyx_tuple__673); Py_VISIT(traverse_module_state->__pyx_tuple__674); Py_VISIT(traverse_module_state->__pyx_tuple__675); Py_VISIT(traverse_module_state->__pyx_tuple__676); Py_VISIT(traverse_module_state->__pyx_tuple__677); Py_VISIT(traverse_module_state->__pyx_tuple__678); Py_VISIT(traverse_module_state->__pyx_tuple__679); Py_VISIT(traverse_module_state->__pyx_tuple__680); Py_VISIT(traverse_module_state->__pyx_tuple__681); Py_VISIT(traverse_module_state->__pyx_tuple__682); Py_VISIT(traverse_module_state->__pyx_tuple__683); Py_VISIT(traverse_module_state->__pyx_tuple__684); Py_VISIT(traverse_module_state->__pyx_tuple__685); Py_VISIT(traverse_module_state->__pyx_tuple__686); Py_VISIT(traverse_module_state->__pyx_tuple__687); Py_VISIT(traverse_module_state->__pyx_tuple__688); Py_VISIT(traverse_module_state->__pyx_tuple__689); Py_VISIT(traverse_module_state->__pyx_tuple__690); Py_VISIT(traverse_module_state->__pyx_tuple__691); Py_VISIT(traverse_module_state->__pyx_tuple__692); Py_VISIT(traverse_module_state->__pyx_tuple__693); Py_VISIT(traverse_module_state->__pyx_tuple__694); Py_VISIT(traverse_module_state->__pyx_tuple__695); Py_VISIT(traverse_module_state->__pyx_tuple__696); Py_VISIT(traverse_module_state->__pyx_tuple__697); Py_VISIT(traverse_module_state->__pyx_tuple__698); Py_VISIT(traverse_module_state->__pyx_tuple__699); Py_VISIT(traverse_module_state->__pyx_tuple__700); Py_VISIT(traverse_module_state->__pyx_tuple__701); Py_VISIT(traverse_module_state->__pyx_tuple__702); Py_VISIT(traverse_module_state->__pyx_tuple__703); Py_VISIT(traverse_module_state->__pyx_tuple__704); Py_VISIT(traverse_module_state->__pyx_tuple__705); Py_VISIT(traverse_module_state->__pyx_tuple__706); Py_VISIT(traverse_module_state->__pyx_tuple__707); Py_VISIT(traverse_module_state->__pyx_tuple__708); Py_VISIT(traverse_module_state->__pyx_tuple__709); Py_VISIT(traverse_module_state->__pyx_tuple__710); Py_VISIT(traverse_module_state->__pyx_tuple__711); Py_VISIT(traverse_module_state->__pyx_tuple__712); Py_VISIT(traverse_module_state->__pyx_tuple__713); Py_VISIT(traverse_module_state->__pyx_tuple__714); Py_VISIT(traverse_module_state->__pyx_tuple__715); Py_VISIT(traverse_module_state->__pyx_tuple__716); Py_VISIT(traverse_module_state->__pyx_tuple__717); Py_VISIT(traverse_module_state->__pyx_tuple__718); Py_VISIT(traverse_module_state->__pyx_tuple__719); Py_VISIT(traverse_module_state->__pyx_tuple__720); Py_VISIT(traverse_module_state->__pyx_tuple__721); Py_VISIT(traverse_module_state->__pyx_tuple__722); Py_VISIT(traverse_module_state->__pyx_tuple__723); Py_VISIT(traverse_module_state->__pyx_tuple__724); Py_VISIT(traverse_module_state->__pyx_tuple__725); Py_VISIT(traverse_module_state->__pyx_tuple__726); Py_VISIT(traverse_module_state->__pyx_tuple__727); Py_VISIT(traverse_module_state->__pyx_tuple__728); Py_VISIT(traverse_module_state->__pyx_tuple__729); Py_VISIT(traverse_module_state->__pyx_tuple__730); Py_VISIT(traverse_module_state->__pyx_tuple__731); Py_VISIT(traverse_module_state->__pyx_tuple__732); Py_VISIT(traverse_module_state->__pyx_tuple__733); Py_VISIT(traverse_module_state->__pyx_tuple__734); Py_VISIT(traverse_module_state->__pyx_tuple__735); Py_VISIT(traverse_module_state->__pyx_tuple__736); Py_VISIT(traverse_module_state->__pyx_tuple__737); Py_VISIT(traverse_module_state->__pyx_tuple__738); Py_VISIT(traverse_module_state->__pyx_tuple__739); Py_VISIT(traverse_module_state->__pyx_tuple__740); Py_VISIT(traverse_module_state->__pyx_tuple__741); Py_VISIT(traverse_module_state->__pyx_tuple__742); Py_VISIT(traverse_module_state->__pyx_tuple__743); Py_VISIT(traverse_module_state->__pyx_tuple__744); Py_VISIT(traverse_module_state->__pyx_tuple__745); Py_VISIT(traverse_module_state->__pyx_tuple__746); Py_VISIT(traverse_module_state->__pyx_tuple__747); Py_VISIT(traverse_module_state->__pyx_tuple__748); Py_VISIT(traverse_module_state->__pyx_tuple__749); Py_VISIT(traverse_module_state->__pyx_tuple__750); Py_VISIT(traverse_module_state->__pyx_tuple__751); Py_VISIT(traverse_module_state->__pyx_tuple__752); Py_VISIT(traverse_module_state->__pyx_tuple__753); Py_VISIT(traverse_module_state->__pyx_tuple__754); Py_VISIT(traverse_module_state->__pyx_tuple__755); Py_VISIT(traverse_module_state->__pyx_tuple__756); Py_VISIT(traverse_module_state->__pyx_tuple__757); Py_VISIT(traverse_module_state->__pyx_tuple__758); Py_VISIT(traverse_module_state->__pyx_tuple__759); Py_VISIT(traverse_module_state->__pyx_tuple__760); Py_VISIT(traverse_module_state->__pyx_tuple__761); Py_VISIT(traverse_module_state->__pyx_tuple__762); Py_VISIT(traverse_module_state->__pyx_tuple__763); Py_VISIT(traverse_module_state->__pyx_tuple__764); Py_VISIT(traverse_module_state->__pyx_tuple__765); Py_VISIT(traverse_module_state->__pyx_tuple__766); Py_VISIT(traverse_module_state->__pyx_tuple__767); Py_VISIT(traverse_module_state->__pyx_tuple__768); Py_VISIT(traverse_module_state->__pyx_tuple__769); Py_VISIT(traverse_module_state->__pyx_tuple__770); Py_VISIT(traverse_module_state->__pyx_tuple__771); Py_VISIT(traverse_module_state->__pyx_tuple__772); Py_VISIT(traverse_module_state->__pyx_tuple__773); Py_VISIT(traverse_module_state->__pyx_tuple__774); Py_VISIT(traverse_module_state->__pyx_tuple__775); Py_VISIT(traverse_module_state->__pyx_tuple__776); Py_VISIT(traverse_module_state->__pyx_tuple__777); Py_VISIT(traverse_module_state->__pyx_tuple__778); Py_VISIT(traverse_module_state->__pyx_tuple__779); Py_VISIT(traverse_module_state->__pyx_tuple__780); Py_VISIT(traverse_module_state->__pyx_tuple__781); Py_VISIT(traverse_module_state->__pyx_tuple__782); Py_VISIT(traverse_module_state->__pyx_tuple__783); Py_VISIT(traverse_module_state->__pyx_tuple__784); Py_VISIT(traverse_module_state->__pyx_tuple__785); Py_VISIT(traverse_module_state->__pyx_tuple__786); Py_VISIT(traverse_module_state->__pyx_tuple__787); Py_VISIT(traverse_module_state->__pyx_tuple__788); Py_VISIT(traverse_module_state->__pyx_tuple__789); Py_VISIT(traverse_module_state->__pyx_tuple__790); Py_VISIT(traverse_module_state->__pyx_tuple__791); Py_VISIT(traverse_module_state->__pyx_tuple__792); Py_VISIT(traverse_module_state->__pyx_tuple__793); Py_VISIT(traverse_module_state->__pyx_tuple__794); Py_VISIT(traverse_module_state->__pyx_tuple__795); Py_VISIT(traverse_module_state->__pyx_tuple__796); Py_VISIT(traverse_module_state->__pyx_tuple__797); Py_VISIT(traverse_module_state->__pyx_tuple__798); Py_VISIT(traverse_module_state->__pyx_tuple__799); Py_VISIT(traverse_module_state->__pyx_tuple__800); Py_VISIT(traverse_module_state->__pyx_tuple__801); Py_VISIT(traverse_module_state->__pyx_tuple__802); Py_VISIT(traverse_module_state->__pyx_tuple__803); Py_VISIT(traverse_module_state->__pyx_tuple__804); Py_VISIT(traverse_module_state->__pyx_tuple__805); Py_VISIT(traverse_module_state->__pyx_tuple__806); Py_VISIT(traverse_module_state->__pyx_tuple__807); Py_VISIT(traverse_module_state->__pyx_tuple__808); Py_VISIT(traverse_module_state->__pyx_tuple__809); Py_VISIT(traverse_module_state->__pyx_tuple__810); Py_VISIT(traverse_module_state->__pyx_tuple__811); Py_VISIT(traverse_module_state->__pyx_tuple__812); Py_VISIT(traverse_module_state->__pyx_tuple__813); Py_VISIT(traverse_module_state->__pyx_tuple__814); Py_VISIT(traverse_module_state->__pyx_tuple__815); Py_VISIT(traverse_module_state->__pyx_tuple__816); Py_VISIT(traverse_module_state->__pyx_tuple__817); Py_VISIT(traverse_module_state->__pyx_tuple__818); Py_VISIT(traverse_module_state->__pyx_tuple__819); Py_VISIT(traverse_module_state->__pyx_tuple__820); Py_VISIT(traverse_module_state->__pyx_tuple__821); Py_VISIT(traverse_module_state->__pyx_tuple__822); Py_VISIT(traverse_module_state->__pyx_tuple__823); Py_VISIT(traverse_module_state->__pyx_tuple__824); Py_VISIT(traverse_module_state->__pyx_tuple__825); Py_VISIT(traverse_module_state->__pyx_tuple__826); Py_VISIT(traverse_module_state->__pyx_tuple__827); Py_VISIT(traverse_module_state->__pyx_tuple__828); Py_VISIT(traverse_module_state->__pyx_tuple__829); Py_VISIT(traverse_module_state->__pyx_tuple__830); Py_VISIT(traverse_module_state->__pyx_tuple__831); Py_VISIT(traverse_module_state->__pyx_tuple__832); Py_VISIT(traverse_module_state->__pyx_tuple__833); Py_VISIT(traverse_module_state->__pyx_tuple__834); Py_VISIT(traverse_module_state->__pyx_tuple__835); Py_VISIT(traverse_module_state->__pyx_tuple__836); Py_VISIT(traverse_module_state->__pyx_tuple__837); Py_VISIT(traverse_module_state->__pyx_tuple__838); Py_VISIT(traverse_module_state->__pyx_tuple__839); Py_VISIT(traverse_module_state->__pyx_tuple__840); Py_VISIT(traverse_module_state->__pyx_tuple__841); Py_VISIT(traverse_module_state->__pyx_tuple__842); Py_VISIT(traverse_module_state->__pyx_tuple__843); Py_VISIT(traverse_module_state->__pyx_tuple__844); Py_VISIT(traverse_module_state->__pyx_tuple__845); Py_VISIT(traverse_module_state->__pyx_tuple__846); Py_VISIT(traverse_module_state->__pyx_tuple__847); Py_VISIT(traverse_module_state->__pyx_tuple__848); Py_VISIT(traverse_module_state->__pyx_tuple__849); Py_VISIT(traverse_module_state->__pyx_tuple__850); Py_VISIT(traverse_module_state->__pyx_tuple__851); Py_VISIT(traverse_module_state->__pyx_tuple__852); Py_VISIT(traverse_module_state->__pyx_tuple__853); Py_VISIT(traverse_module_state->__pyx_tuple__854); Py_VISIT(traverse_module_state->__pyx_tuple__855); Py_VISIT(traverse_module_state->__pyx_tuple__856); Py_VISIT(traverse_module_state->__pyx_tuple__857); Py_VISIT(traverse_module_state->__pyx_tuple__858); Py_VISIT(traverse_module_state->__pyx_tuple__859); Py_VISIT(traverse_module_state->__pyx_tuple__860); Py_VISIT(traverse_module_state->__pyx_tuple__861); Py_VISIT(traverse_module_state->__pyx_tuple__862); Py_VISIT(traverse_module_state->__pyx_tuple__863); Py_VISIT(traverse_module_state->__pyx_tuple__864); Py_VISIT(traverse_module_state->__pyx_tuple__865); Py_VISIT(traverse_module_state->__pyx_tuple__866); Py_VISIT(traverse_module_state->__pyx_tuple__867); Py_VISIT(traverse_module_state->__pyx_tuple__868); Py_VISIT(traverse_module_state->__pyx_tuple__869); Py_VISIT(traverse_module_state->__pyx_tuple__870); Py_VISIT(traverse_module_state->__pyx_tuple__871); Py_VISIT(traverse_module_state->__pyx_tuple__872); Py_VISIT(traverse_module_state->__pyx_tuple__873); Py_VISIT(traverse_module_state->__pyx_tuple__874); Py_VISIT(traverse_module_state->__pyx_tuple__875); Py_VISIT(traverse_module_state->__pyx_tuple__876); Py_VISIT(traverse_module_state->__pyx_tuple__877); Py_VISIT(traverse_module_state->__pyx_tuple__878); Py_VISIT(traverse_module_state->__pyx_tuple__879); Py_VISIT(traverse_module_state->__pyx_tuple__880); Py_VISIT(traverse_module_state->__pyx_tuple__881); Py_VISIT(traverse_module_state->__pyx_tuple__882); Py_VISIT(traverse_module_state->__pyx_tuple__883); Py_VISIT(traverse_module_state->__pyx_tuple__884); Py_VISIT(traverse_module_state->__pyx_tuple__885); Py_VISIT(traverse_module_state->__pyx_tuple__886); Py_VISIT(traverse_module_state->__pyx_tuple__887); Py_VISIT(traverse_module_state->__pyx_tuple__888); Py_VISIT(traverse_module_state->__pyx_tuple__889); Py_VISIT(traverse_module_state->__pyx_tuple__890); Py_VISIT(traverse_module_state->__pyx_tuple__891); Py_VISIT(traverse_module_state->__pyx_tuple__892); Py_VISIT(traverse_module_state->__pyx_tuple__893); Py_VISIT(traverse_module_state->__pyx_tuple__894); Py_VISIT(traverse_module_state->__pyx_tuple__895); Py_VISIT(traverse_module_state->__pyx_tuple__896); Py_VISIT(traverse_module_state->__pyx_tuple__897); Py_VISIT(traverse_module_state->__pyx_tuple__898); Py_VISIT(traverse_module_state->__pyx_tuple__899); Py_VISIT(traverse_module_state->__pyx_tuple__900); Py_VISIT(traverse_module_state->__pyx_tuple__901); Py_VISIT(traverse_module_state->__pyx_tuple__902); Py_VISIT(traverse_module_state->__pyx_tuple__903); Py_VISIT(traverse_module_state->__pyx_tuple__904); Py_VISIT(traverse_module_state->__pyx_tuple__905); Py_VISIT(traverse_module_state->__pyx_tuple__906); Py_VISIT(traverse_module_state->__pyx_tuple__907); Py_VISIT(traverse_module_state->__pyx_tuple__908); Py_VISIT(traverse_module_state->__pyx_tuple__909); Py_VISIT(traverse_module_state->__pyx_codeobj__10); Py_VISIT(traverse_module_state->__pyx_codeobj__11); Py_VISIT(traverse_module_state->__pyx_codeobj__12); Py_VISIT(traverse_module_state->__pyx_codeobj__13); Py_VISIT(traverse_module_state->__pyx_codeobj__14); Py_VISIT(traverse_module_state->__pyx_codeobj__15); Py_VISIT(traverse_module_state->__pyx_codeobj__16); Py_VISIT(traverse_module_state->__pyx_codeobj__17); Py_VISIT(traverse_module_state->__pyx_codeobj__18); Py_VISIT(traverse_module_state->__pyx_codeobj__19); Py_VISIT(traverse_module_state->__pyx_codeobj__20); Py_VISIT(traverse_module_state->__pyx_codeobj__21); Py_VISIT(traverse_module_state->__pyx_codeobj__22); Py_VISIT(traverse_module_state->__pyx_codeobj__23); Py_VISIT(traverse_module_state->__pyx_codeobj__24); Py_VISIT(traverse_module_state->__pyx_codeobj__25); Py_VISIT(traverse_module_state->__pyx_codeobj__26); Py_VISIT(traverse_module_state->__pyx_codeobj__27); Py_VISIT(traverse_module_state->__pyx_codeobj__28); Py_VISIT(traverse_module_state->__pyx_codeobj__29); Py_VISIT(traverse_module_state->__pyx_codeobj__30); Py_VISIT(traverse_module_state->__pyx_codeobj__31); Py_VISIT(traverse_module_state->__pyx_codeobj__32); Py_VISIT(traverse_module_state->__pyx_codeobj__33); Py_VISIT(traverse_module_state->__pyx_codeobj__34); Py_VISIT(traverse_module_state->__pyx_codeobj__35); Py_VISIT(traverse_module_state->__pyx_codeobj__36); Py_VISIT(traverse_module_state->__pyx_codeobj__37); Py_VISIT(traverse_module_state->__pyx_codeobj__38); Py_VISIT(traverse_module_state->__pyx_codeobj__39); Py_VISIT(traverse_module_state->__pyx_codeobj__40); Py_VISIT(traverse_module_state->__pyx_codeobj__41); Py_VISIT(traverse_module_state->__pyx_codeobj__42); Py_VISIT(traverse_module_state->__pyx_codeobj__43); Py_VISIT(traverse_module_state->__pyx_codeobj__44); Py_VISIT(traverse_module_state->__pyx_codeobj__45); Py_VISIT(traverse_module_state->__pyx_codeobj__46); Py_VISIT(traverse_module_state->__pyx_codeobj__47); Py_VISIT(traverse_module_state->__pyx_codeobj__48); Py_VISIT(traverse_module_state->__pyx_codeobj__49); Py_VISIT(traverse_module_state->__pyx_codeobj__50); Py_VISIT(traverse_module_state->__pyx_codeobj__53); Py_VISIT(traverse_module_state->__pyx_codeobj__54); Py_VISIT(traverse_module_state->__pyx_codeobj__55); Py_VISIT(traverse_module_state->__pyx_codeobj__56); Py_VISIT(traverse_module_state->__pyx_codeobj__57); Py_VISIT(traverse_module_state->__pyx_codeobj__58); Py_VISIT(traverse_module_state->__pyx_codeobj__59); Py_VISIT(traverse_module_state->__pyx_codeobj__60); Py_VISIT(traverse_module_state->__pyx_codeobj__61); Py_VISIT(traverse_module_state->__pyx_codeobj__63); Py_VISIT(traverse_module_state->__pyx_codeobj__64); Py_VISIT(traverse_module_state->__pyx_codeobj__65); Py_VISIT(traverse_module_state->__pyx_codeobj__66); Py_VISIT(traverse_module_state->__pyx_codeobj__67); Py_VISIT(traverse_module_state->__pyx_codeobj__68); Py_VISIT(traverse_module_state->__pyx_codeobj__69); Py_VISIT(traverse_module_state->__pyx_codeobj__70); Py_VISIT(traverse_module_state->__pyx_codeobj__71); Py_VISIT(traverse_module_state->__pyx_codeobj__72); Py_VISIT(traverse_module_state->__pyx_codeobj__73); Py_VISIT(traverse_module_state->__pyx_codeobj__74); Py_VISIT(traverse_module_state->__pyx_codeobj__75); Py_VISIT(traverse_module_state->__pyx_codeobj__76); Py_VISIT(traverse_module_state->__pyx_codeobj__77); Py_VISIT(traverse_module_state->__pyx_codeobj__78); Py_VISIT(traverse_module_state->__pyx_codeobj__79); Py_VISIT(traverse_module_state->__pyx_codeobj__80); Py_VISIT(traverse_module_state->__pyx_codeobj__81); Py_VISIT(traverse_module_state->__pyx_codeobj__82); Py_VISIT(traverse_module_state->__pyx_codeobj__83); Py_VISIT(traverse_module_state->__pyx_codeobj__84); Py_VISIT(traverse_module_state->__pyx_codeobj__85); Py_VISIT(traverse_module_state->__pyx_codeobj__86); Py_VISIT(traverse_module_state->__pyx_codeobj__87); Py_VISIT(traverse_module_state->__pyx_codeobj__88); Py_VISIT(traverse_module_state->__pyx_codeobj__89); Py_VISIT(traverse_module_state->__pyx_codeobj__90); Py_VISIT(traverse_module_state->__pyx_codeobj__91); Py_VISIT(traverse_module_state->__pyx_codeobj__92); Py_VISIT(traverse_module_state->__pyx_codeobj__93); Py_VISIT(traverse_module_state->__pyx_codeobj__94); Py_VISIT(traverse_module_state->__pyx_codeobj__95); Py_VISIT(traverse_module_state->__pyx_codeobj__96); Py_VISIT(traverse_module_state->__pyx_codeobj__97); Py_VISIT(traverse_module_state->__pyx_codeobj__98); Py_VISIT(traverse_module_state->__pyx_codeobj__99); Py_VISIT(traverse_module_state->__pyx_codeobj__100); Py_VISIT(traverse_module_state->__pyx_codeobj__101); Py_VISIT(traverse_module_state->__pyx_codeobj__102); Py_VISIT(traverse_module_state->__pyx_codeobj__103); Py_VISIT(traverse_module_state->__pyx_codeobj__104); Py_VISIT(traverse_module_state->__pyx_codeobj__105); Py_VISIT(traverse_module_state->__pyx_codeobj__106); Py_VISIT(traverse_module_state->__pyx_codeobj__107); Py_VISIT(traverse_module_state->__pyx_codeobj__108); Py_VISIT(traverse_module_state->__pyx_codeobj__109); Py_VISIT(traverse_module_state->__pyx_codeobj__110); Py_VISIT(traverse_module_state->__pyx_codeobj__111); Py_VISIT(traverse_module_state->__pyx_codeobj__112); Py_VISIT(traverse_module_state->__pyx_codeobj__113); Py_VISIT(traverse_module_state->__pyx_codeobj__114); Py_VISIT(traverse_module_state->__pyx_codeobj__115); Py_VISIT(traverse_module_state->__pyx_codeobj__116); Py_VISIT(traverse_module_state->__pyx_codeobj__117); Py_VISIT(traverse_module_state->__pyx_codeobj__118); Py_VISIT(traverse_module_state->__pyx_codeobj__119); Py_VISIT(traverse_module_state->__pyx_codeobj__120); Py_VISIT(traverse_module_state->__pyx_codeobj__121); Py_VISIT(traverse_module_state->__pyx_codeobj__122); Py_VISIT(traverse_module_state->__pyx_codeobj__123); Py_VISIT(traverse_module_state->__pyx_codeobj__124); Py_VISIT(traverse_module_state->__pyx_codeobj__125); Py_VISIT(traverse_module_state->__pyx_codeobj__126); Py_VISIT(traverse_module_state->__pyx_codeobj__127); Py_VISIT(traverse_module_state->__pyx_codeobj__128); Py_VISIT(traverse_module_state->__pyx_codeobj__129); Py_VISIT(traverse_module_state->__pyx_codeobj__130); Py_VISIT(traverse_module_state->__pyx_codeobj__131); Py_VISIT(traverse_module_state->__pyx_codeobj__132); Py_VISIT(traverse_module_state->__pyx_codeobj__133); Py_VISIT(traverse_module_state->__pyx_codeobj__134); Py_VISIT(traverse_module_state->__pyx_codeobj__135); Py_VISIT(traverse_module_state->__pyx_codeobj__136); Py_VISIT(traverse_module_state->__pyx_codeobj__137); Py_VISIT(traverse_module_state->__pyx_codeobj__138); Py_VISIT(traverse_module_state->__pyx_codeobj__139); Py_VISIT(traverse_module_state->__pyx_codeobj__140); Py_VISIT(traverse_module_state->__pyx_codeobj__141); Py_VISIT(traverse_module_state->__pyx_codeobj__142); Py_VISIT(traverse_module_state->__pyx_codeobj__143); Py_VISIT(traverse_module_state->__pyx_codeobj__144); Py_VISIT(traverse_module_state->__pyx_codeobj__145); Py_VISIT(traverse_module_state->__pyx_codeobj__146); Py_VISIT(traverse_module_state->__pyx_codeobj__147); Py_VISIT(traverse_module_state->__pyx_codeobj__148); Py_VISIT(traverse_module_state->__pyx_codeobj__149); Py_VISIT(traverse_module_state->__pyx_codeobj__150); Py_VISIT(traverse_module_state->__pyx_codeobj__151); Py_VISIT(traverse_module_state->__pyx_codeobj__152); Py_VISIT(traverse_module_state->__pyx_codeobj__153); Py_VISIT(traverse_module_state->__pyx_codeobj__154); Py_VISIT(traverse_module_state->__pyx_codeobj__155); Py_VISIT(traverse_module_state->__pyx_codeobj__156); Py_VISIT(traverse_module_state->__pyx_codeobj__157); Py_VISIT(traverse_module_state->__pyx_codeobj__158); Py_VISIT(traverse_module_state->__pyx_codeobj__159); Py_VISIT(traverse_module_state->__pyx_codeobj__160); Py_VISIT(traverse_module_state->__pyx_codeobj__161); Py_VISIT(traverse_module_state->__pyx_codeobj__162); Py_VISIT(traverse_module_state->__pyx_codeobj__163); Py_VISIT(traverse_module_state->__pyx_codeobj__164); Py_VISIT(traverse_module_state->__pyx_codeobj__165); Py_VISIT(traverse_module_state->__pyx_codeobj__166); Py_VISIT(traverse_module_state->__pyx_codeobj__167); Py_VISIT(traverse_module_state->__pyx_codeobj__168); Py_VISIT(traverse_module_state->__pyx_codeobj__169); Py_VISIT(traverse_module_state->__pyx_codeobj__170); Py_VISIT(traverse_module_state->__pyx_codeobj__171); Py_VISIT(traverse_module_state->__pyx_codeobj__172); Py_VISIT(traverse_module_state->__pyx_codeobj__173); Py_VISIT(traverse_module_state->__pyx_codeobj__174); Py_VISIT(traverse_module_state->__pyx_codeobj__175); Py_VISIT(traverse_module_state->__pyx_codeobj__176); Py_VISIT(traverse_module_state->__pyx_codeobj__177); Py_VISIT(traverse_module_state->__pyx_codeobj__178); Py_VISIT(traverse_module_state->__pyx_codeobj__179); Py_VISIT(traverse_module_state->__pyx_codeobj__180); Py_VISIT(traverse_module_state->__pyx_codeobj__181); Py_VISIT(traverse_module_state->__pyx_codeobj__182); Py_VISIT(traverse_module_state->__pyx_codeobj__183); Py_VISIT(traverse_module_state->__pyx_codeobj__184); Py_VISIT(traverse_module_state->__pyx_codeobj__185); Py_VISIT(traverse_module_state->__pyx_codeobj__186); Py_VISIT(traverse_module_state->__pyx_codeobj__187); Py_VISIT(traverse_module_state->__pyx_codeobj__188); Py_VISIT(traverse_module_state->__pyx_codeobj__189); Py_VISIT(traverse_module_state->__pyx_codeobj__190); Py_VISIT(traverse_module_state->__pyx_codeobj__191); Py_VISIT(traverse_module_state->__pyx_codeobj__192); Py_VISIT(traverse_module_state->__pyx_codeobj__193); Py_VISIT(traverse_module_state->__pyx_codeobj__194); Py_VISIT(traverse_module_state->__pyx_codeobj__195); Py_VISIT(traverse_module_state->__pyx_codeobj__196); Py_VISIT(traverse_module_state->__pyx_codeobj__197); Py_VISIT(traverse_module_state->__pyx_codeobj__198); Py_VISIT(traverse_module_state->__pyx_codeobj__199); Py_VISIT(traverse_module_state->__pyx_codeobj__200); Py_VISIT(traverse_module_state->__pyx_codeobj__201); Py_VISIT(traverse_module_state->__pyx_codeobj__202); Py_VISIT(traverse_module_state->__pyx_codeobj__203); Py_VISIT(traverse_module_state->__pyx_codeobj__204); Py_VISIT(traverse_module_state->__pyx_codeobj__205); Py_VISIT(traverse_module_state->__pyx_codeobj__206); Py_VISIT(traverse_module_state->__pyx_codeobj__207); Py_VISIT(traverse_module_state->__pyx_codeobj__208); Py_VISIT(traverse_module_state->__pyx_codeobj__209); Py_VISIT(traverse_module_state->__pyx_codeobj__210); Py_VISIT(traverse_module_state->__pyx_codeobj__211); Py_VISIT(traverse_module_state->__pyx_codeobj__212); Py_VISIT(traverse_module_state->__pyx_codeobj__213); Py_VISIT(traverse_module_state->__pyx_codeobj__214); Py_VISIT(traverse_module_state->__pyx_codeobj__215); Py_VISIT(traverse_module_state->__pyx_codeobj__216); Py_VISIT(traverse_module_state->__pyx_codeobj__217); Py_VISIT(traverse_module_state->__pyx_codeobj__218); Py_VISIT(traverse_module_state->__pyx_codeobj__219); Py_VISIT(traverse_module_state->__pyx_codeobj__220); Py_VISIT(traverse_module_state->__pyx_codeobj__221); Py_VISIT(traverse_module_state->__pyx_codeobj__222); Py_VISIT(traverse_module_state->__pyx_codeobj__223); Py_VISIT(traverse_module_state->__pyx_codeobj__224); Py_VISIT(traverse_module_state->__pyx_codeobj__225); Py_VISIT(traverse_module_state->__pyx_codeobj__226); Py_VISIT(traverse_module_state->__pyx_codeobj__227); Py_VISIT(traverse_module_state->__pyx_codeobj__228); Py_VISIT(traverse_module_state->__pyx_codeobj__229); Py_VISIT(traverse_module_state->__pyx_codeobj__230); Py_VISIT(traverse_module_state->__pyx_codeobj__231); Py_VISIT(traverse_module_state->__pyx_codeobj__232); Py_VISIT(traverse_module_state->__pyx_codeobj__233); Py_VISIT(traverse_module_state->__pyx_codeobj__234); Py_VISIT(traverse_module_state->__pyx_codeobj__235); Py_VISIT(traverse_module_state->__pyx_codeobj__236); Py_VISIT(traverse_module_state->__pyx_codeobj__237); Py_VISIT(traverse_module_state->__pyx_codeobj__238); Py_VISIT(traverse_module_state->__pyx_codeobj__239); Py_VISIT(traverse_module_state->__pyx_codeobj__240); Py_VISIT(traverse_module_state->__pyx_codeobj__241); Py_VISIT(traverse_module_state->__pyx_codeobj__242); Py_VISIT(traverse_module_state->__pyx_codeobj__243); Py_VISIT(traverse_module_state->__pyx_codeobj__244); Py_VISIT(traverse_module_state->__pyx_codeobj__245); Py_VISIT(traverse_module_state->__pyx_codeobj__246); Py_VISIT(traverse_module_state->__pyx_codeobj__247); Py_VISIT(traverse_module_state->__pyx_codeobj__248); Py_VISIT(traverse_module_state->__pyx_codeobj__249); Py_VISIT(traverse_module_state->__pyx_codeobj__250); Py_VISIT(traverse_module_state->__pyx_codeobj__251); Py_VISIT(traverse_module_state->__pyx_codeobj__252); Py_VISIT(traverse_module_state->__pyx_codeobj__253); Py_VISIT(traverse_module_state->__pyx_codeobj__254); Py_VISIT(traverse_module_state->__pyx_codeobj__255); Py_VISIT(traverse_module_state->__pyx_codeobj__256); Py_VISIT(traverse_module_state->__pyx_codeobj__257); Py_VISIT(traverse_module_state->__pyx_codeobj__258); Py_VISIT(traverse_module_state->__pyx_codeobj__259); Py_VISIT(traverse_module_state->__pyx_codeobj__260); Py_VISIT(traverse_module_state->__pyx_codeobj__261); Py_VISIT(traverse_module_state->__pyx_codeobj__262); Py_VISIT(traverse_module_state->__pyx_codeobj__263); Py_VISIT(traverse_module_state->__pyx_codeobj__264); Py_VISIT(traverse_module_state->__pyx_codeobj__265); Py_VISIT(traverse_module_state->__pyx_codeobj__266); Py_VISIT(traverse_module_state->__pyx_codeobj__267); Py_VISIT(traverse_module_state->__pyx_codeobj__268); Py_VISIT(traverse_module_state->__pyx_codeobj__269); Py_VISIT(traverse_module_state->__pyx_codeobj__270); Py_VISIT(traverse_module_state->__pyx_codeobj__271); Py_VISIT(traverse_module_state->__pyx_codeobj__272); Py_VISIT(traverse_module_state->__pyx_codeobj__273); Py_VISIT(traverse_module_state->__pyx_codeobj__274); Py_VISIT(traverse_module_state->__pyx_codeobj__275); Py_VISIT(traverse_module_state->__pyx_codeobj__276); Py_VISIT(traverse_module_state->__pyx_codeobj__277); Py_VISIT(traverse_module_state->__pyx_codeobj__278); Py_VISIT(traverse_module_state->__pyx_codeobj__279); Py_VISIT(traverse_module_state->__pyx_codeobj__280); Py_VISIT(traverse_module_state->__pyx_codeobj__281); Py_VISIT(traverse_module_state->__pyx_codeobj__282); Py_VISIT(traverse_module_state->__pyx_codeobj__283); Py_VISIT(traverse_module_state->__pyx_codeobj__284); Py_VISIT(traverse_module_state->__pyx_codeobj__285); Py_VISIT(traverse_module_state->__pyx_codeobj__286); Py_VISIT(traverse_module_state->__pyx_codeobj__287); Py_VISIT(traverse_module_state->__pyx_codeobj__288); Py_VISIT(traverse_module_state->__pyx_codeobj__289); Py_VISIT(traverse_module_state->__pyx_codeobj__290); Py_VISIT(traverse_module_state->__pyx_codeobj__291); Py_VISIT(traverse_module_state->__pyx_codeobj__292); Py_VISIT(traverse_module_state->__pyx_codeobj__293); Py_VISIT(traverse_module_state->__pyx_codeobj__294); Py_VISIT(traverse_module_state->__pyx_codeobj__295); Py_VISIT(traverse_module_state->__pyx_codeobj__296); Py_VISIT(traverse_module_state->__pyx_codeobj__297); Py_VISIT(traverse_module_state->__pyx_codeobj__298); Py_VISIT(traverse_module_state->__pyx_codeobj__299); Py_VISIT(traverse_module_state->__pyx_codeobj__300); Py_VISIT(traverse_module_state->__pyx_codeobj__301); Py_VISIT(traverse_module_state->__pyx_codeobj__302); Py_VISIT(traverse_module_state->__pyx_codeobj__303); Py_VISIT(traverse_module_state->__pyx_codeobj__304); Py_VISIT(traverse_module_state->__pyx_codeobj__305); Py_VISIT(traverse_module_state->__pyx_codeobj__306); Py_VISIT(traverse_module_state->__pyx_codeobj__307); Py_VISIT(traverse_module_state->__pyx_codeobj__308); Py_VISIT(traverse_module_state->__pyx_codeobj__309); Py_VISIT(traverse_module_state->__pyx_codeobj__310); Py_VISIT(traverse_module_state->__pyx_codeobj__311); Py_VISIT(traverse_module_state->__pyx_codeobj__312); Py_VISIT(traverse_module_state->__pyx_codeobj__313); Py_VISIT(traverse_module_state->__pyx_codeobj__314); Py_VISIT(traverse_module_state->__pyx_codeobj__315); Py_VISIT(traverse_module_state->__pyx_codeobj__316); Py_VISIT(traverse_module_state->__pyx_codeobj__317); Py_VISIT(traverse_module_state->__pyx_codeobj__318); Py_VISIT(traverse_module_state->__pyx_codeobj__319); Py_VISIT(traverse_module_state->__pyx_codeobj__320); Py_VISIT(traverse_module_state->__pyx_codeobj__321); Py_VISIT(traverse_module_state->__pyx_codeobj__322); Py_VISIT(traverse_module_state->__pyx_codeobj__323); Py_VISIT(traverse_module_state->__pyx_codeobj__324); Py_VISIT(traverse_module_state->__pyx_codeobj__325); Py_VISIT(traverse_module_state->__pyx_codeobj__326); Py_VISIT(traverse_module_state->__pyx_codeobj__327); Py_VISIT(traverse_module_state->__pyx_codeobj__328); Py_VISIT(traverse_module_state->__pyx_codeobj__329); Py_VISIT(traverse_module_state->__pyx_codeobj__330); Py_VISIT(traverse_module_state->__pyx_codeobj__331); Py_VISIT(traverse_module_state->__pyx_codeobj__332); Py_VISIT(traverse_module_state->__pyx_codeobj__333); Py_VISIT(traverse_module_state->__pyx_codeobj__334); Py_VISIT(traverse_module_state->__pyx_codeobj__335); Py_VISIT(traverse_module_state->__pyx_codeobj__336); Py_VISIT(traverse_module_state->__pyx_codeobj__337); Py_VISIT(traverse_module_state->__pyx_codeobj__338); Py_VISIT(traverse_module_state->__pyx_codeobj__339); Py_VISIT(traverse_module_state->__pyx_codeobj__340); Py_VISIT(traverse_module_state->__pyx_codeobj__341); Py_VISIT(traverse_module_state->__pyx_codeobj__342); Py_VISIT(traverse_module_state->__pyx_codeobj__343); Py_VISIT(traverse_module_state->__pyx_codeobj__344); Py_VISIT(traverse_module_state->__pyx_codeobj__345); Py_VISIT(traverse_module_state->__pyx_codeobj__346); Py_VISIT(traverse_module_state->__pyx_codeobj__347); Py_VISIT(traverse_module_state->__pyx_codeobj__348); Py_VISIT(traverse_module_state->__pyx_codeobj__349); Py_VISIT(traverse_module_state->__pyx_codeobj__350); Py_VISIT(traverse_module_state->__pyx_codeobj__352); Py_VISIT(traverse_module_state->__pyx_codeobj__353); Py_VISIT(traverse_module_state->__pyx_codeobj__354); Py_VISIT(traverse_module_state->__pyx_codeobj__355); Py_VISIT(traverse_module_state->__pyx_codeobj__356); Py_VISIT(traverse_module_state->__pyx_codeobj__357); Py_VISIT(traverse_module_state->__pyx_codeobj__358); Py_VISIT(traverse_module_state->__pyx_codeobj__359); Py_VISIT(traverse_module_state->__pyx_codeobj__360); Py_VISIT(traverse_module_state->__pyx_codeobj__361); Py_VISIT(traverse_module_state->__pyx_codeobj__362); Py_VISIT(traverse_module_state->__pyx_codeobj__363); Py_VISIT(traverse_module_state->__pyx_codeobj__364); Py_VISIT(traverse_module_state->__pyx_codeobj__365); Py_VISIT(traverse_module_state->__pyx_codeobj__366); Py_VISIT(traverse_module_state->__pyx_codeobj__367); Py_VISIT(traverse_module_state->__pyx_codeobj__368); Py_VISIT(traverse_module_state->__pyx_codeobj__369); Py_VISIT(traverse_module_state->__pyx_codeobj__370); Py_VISIT(traverse_module_state->__pyx_codeobj__371); Py_VISIT(traverse_module_state->__pyx_codeobj__372); Py_VISIT(traverse_module_state->__pyx_codeobj__373); Py_VISIT(traverse_module_state->__pyx_codeobj__374); Py_VISIT(traverse_module_state->__pyx_codeobj__375); Py_VISIT(traverse_module_state->__pyx_codeobj__376); Py_VISIT(traverse_module_state->__pyx_codeobj__377); Py_VISIT(traverse_module_state->__pyx_codeobj__378); Py_VISIT(traverse_module_state->__pyx_codeobj__379); Py_VISIT(traverse_module_state->__pyx_codeobj__380); Py_VISIT(traverse_module_state->__pyx_codeobj__381); Py_VISIT(traverse_module_state->__pyx_codeobj__382); Py_VISIT(traverse_module_state->__pyx_codeobj__383); Py_VISIT(traverse_module_state->__pyx_codeobj__384); Py_VISIT(traverse_module_state->__pyx_codeobj__385); Py_VISIT(traverse_module_state->__pyx_codeobj__386); Py_VISIT(traverse_module_state->__pyx_codeobj__387); Py_VISIT(traverse_module_state->__pyx_codeobj__388); Py_VISIT(traverse_module_state->__pyx_codeobj__389); Py_VISIT(traverse_module_state->__pyx_codeobj__390); Py_VISIT(traverse_module_state->__pyx_codeobj__391); Py_VISIT(traverse_module_state->__pyx_codeobj__392); Py_VISIT(traverse_module_state->__pyx_codeobj__393); Py_VISIT(traverse_module_state->__pyx_codeobj__394); Py_VISIT(traverse_module_state->__pyx_codeobj__395); Py_VISIT(traverse_module_state->__pyx_codeobj__396); Py_VISIT(traverse_module_state->__pyx_codeobj__397); Py_VISIT(traverse_module_state->__pyx_codeobj__401); Py_VISIT(traverse_module_state->__pyx_codeobj__402); Py_VISIT(traverse_module_state->__pyx_codeobj__403); Py_VISIT(traverse_module_state->__pyx_codeobj__404); Py_VISIT(traverse_module_state->__pyx_codeobj__405); Py_VISIT(traverse_module_state->__pyx_codeobj__406); Py_VISIT(traverse_module_state->__pyx_codeobj__407); Py_VISIT(traverse_module_state->__pyx_codeobj__408); Py_VISIT(traverse_module_state->__pyx_codeobj__409); Py_VISIT(traverse_module_state->__pyx_codeobj__410); Py_VISIT(traverse_module_state->__pyx_codeobj__411); Py_VISIT(traverse_module_state->__pyx_codeobj__412); Py_VISIT(traverse_module_state->__pyx_codeobj__413); Py_VISIT(traverse_module_state->__pyx_codeobj__414); Py_VISIT(traverse_module_state->__pyx_codeobj__415); Py_VISIT(traverse_module_state->__pyx_codeobj__416); Py_VISIT(traverse_module_state->__pyx_codeobj__417); Py_VISIT(traverse_module_state->__pyx_codeobj__418); Py_VISIT(traverse_module_state->__pyx_codeobj__419); Py_VISIT(traverse_module_state->__pyx_codeobj__420); Py_VISIT(traverse_module_state->__pyx_codeobj__421); Py_VISIT(traverse_module_state->__pyx_codeobj__424); Py_VISIT(traverse_module_state->__pyx_codeobj__426); Py_VISIT(traverse_module_state->__pyx_codeobj__427); Py_VISIT(traverse_module_state->__pyx_codeobj__428); Py_VISIT(traverse_module_state->__pyx_codeobj__429); Py_VISIT(traverse_module_state->__pyx_codeobj__430); Py_VISIT(traverse_module_state->__pyx_codeobj__431); Py_VISIT(traverse_module_state->__pyx_codeobj__432); Py_VISIT(traverse_module_state->__pyx_codeobj__433); Py_VISIT(traverse_module_state->__pyx_codeobj__434); Py_VISIT(traverse_module_state->__pyx_codeobj__435); Py_VISIT(traverse_module_state->__pyx_codeobj__436); Py_VISIT(traverse_module_state->__pyx_codeobj__437); Py_VISIT(traverse_module_state->__pyx_codeobj__438); Py_VISIT(traverse_module_state->__pyx_codeobj__439); Py_VISIT(traverse_module_state->__pyx_codeobj__440); Py_VISIT(traverse_module_state->__pyx_codeobj__441); Py_VISIT(traverse_module_state->__pyx_codeobj__442); Py_VISIT(traverse_module_state->__pyx_codeobj__443); Py_VISIT(traverse_module_state->__pyx_codeobj__444); Py_VISIT(traverse_module_state->__pyx_codeobj__445); Py_VISIT(traverse_module_state->__pyx_codeobj__446); Py_VISIT(traverse_module_state->__pyx_codeobj__447); Py_VISIT(traverse_module_state->__pyx_codeobj__448); Py_VISIT(traverse_module_state->__pyx_codeobj__449); Py_VISIT(traverse_module_state->__pyx_codeobj__450); Py_VISIT(traverse_module_state->__pyx_codeobj__451); Py_VISIT(traverse_module_state->__pyx_codeobj__452); Py_VISIT(traverse_module_state->__pyx_codeobj__453); Py_VISIT(traverse_module_state->__pyx_codeobj__454); Py_VISIT(traverse_module_state->__pyx_codeobj__455); Py_VISIT(traverse_module_state->__pyx_codeobj__456); Py_VISIT(traverse_module_state->__pyx_codeobj__457); Py_VISIT(traverse_module_state->__pyx_codeobj__458); Py_VISIT(traverse_module_state->__pyx_codeobj__459); Py_VISIT(traverse_module_state->__pyx_codeobj__460); Py_VISIT(traverse_module_state->__pyx_codeobj__461); Py_VISIT(traverse_module_state->__pyx_codeobj__462); Py_VISIT(traverse_module_state->__pyx_codeobj__463); Py_VISIT(traverse_module_state->__pyx_codeobj__464); Py_VISIT(traverse_module_state->__pyx_codeobj__465); Py_VISIT(traverse_module_state->__pyx_codeobj__466); Py_VISIT(traverse_module_state->__pyx_codeobj__467); Py_VISIT(traverse_module_state->__pyx_codeobj__468); Py_VISIT(traverse_module_state->__pyx_codeobj__469); Py_VISIT(traverse_module_state->__pyx_codeobj__470); Py_VISIT(traverse_module_state->__pyx_codeobj__471); Py_VISIT(traverse_module_state->__pyx_codeobj__472); Py_VISIT(traverse_module_state->__pyx_codeobj__473); Py_VISIT(traverse_module_state->__pyx_codeobj__474); Py_VISIT(traverse_module_state->__pyx_codeobj__475); Py_VISIT(traverse_module_state->__pyx_codeobj__476); Py_VISIT(traverse_module_state->__pyx_codeobj__477); Py_VISIT(traverse_module_state->__pyx_codeobj__478); Py_VISIT(traverse_module_state->__pyx_codeobj__479); Py_VISIT(traverse_module_state->__pyx_codeobj__480); Py_VISIT(traverse_module_state->__pyx_codeobj__481); Py_VISIT(traverse_module_state->__pyx_codeobj__482); Py_VISIT(traverse_module_state->__pyx_codeobj__483); Py_VISIT(traverse_module_state->__pyx_codeobj__484); Py_VISIT(traverse_module_state->__pyx_codeobj__485); Py_VISIT(traverse_module_state->__pyx_codeobj__486); Py_VISIT(traverse_module_state->__pyx_codeobj__489); Py_VISIT(traverse_module_state->__pyx_codeobj__490); Py_VISIT(traverse_module_state->__pyx_codeobj__491); Py_VISIT(traverse_module_state->__pyx_codeobj__492); Py_VISIT(traverse_module_state->__pyx_codeobj__493); Py_VISIT(traverse_module_state->__pyx_codeobj__494); Py_VISIT(traverse_module_state->__pyx_codeobj__495); Py_VISIT(traverse_module_state->__pyx_codeobj__496); Py_VISIT(traverse_module_state->__pyx_codeobj__497); Py_VISIT(traverse_module_state->__pyx_codeobj__498); Py_VISIT(traverse_module_state->__pyx_codeobj__499); Py_VISIT(traverse_module_state->__pyx_codeobj__501); Py_VISIT(traverse_module_state->__pyx_codeobj__502); Py_VISIT(traverse_module_state->__pyx_codeobj__503); Py_VISIT(traverse_module_state->__pyx_codeobj__504); Py_VISIT(traverse_module_state->__pyx_codeobj__505); Py_VISIT(traverse_module_state->__pyx_codeobj__506); Py_VISIT(traverse_module_state->__pyx_codeobj__507); Py_VISIT(traverse_module_state->__pyx_codeobj__508); Py_VISIT(traverse_module_state->__pyx_codeobj__509); Py_VISIT(traverse_module_state->__pyx_codeobj__510); Py_VISIT(traverse_module_state->__pyx_codeobj__511); Py_VISIT(traverse_module_state->__pyx_codeobj__512); Py_VISIT(traverse_module_state->__pyx_codeobj__513); Py_VISIT(traverse_module_state->__pyx_codeobj__514); Py_VISIT(traverse_module_state->__pyx_codeobj__515); Py_VISIT(traverse_module_state->__pyx_codeobj__516); Py_VISIT(traverse_module_state->__pyx_codeobj__517); Py_VISIT(traverse_module_state->__pyx_codeobj__518); Py_VISIT(traverse_module_state->__pyx_codeobj__519); Py_VISIT(traverse_module_state->__pyx_codeobj__520); Py_VISIT(traverse_module_state->__pyx_codeobj__521); Py_VISIT(traverse_module_state->__pyx_codeobj__522); Py_VISIT(traverse_module_state->__pyx_codeobj__523); Py_VISIT(traverse_module_state->__pyx_codeobj__524); Py_VISIT(traverse_module_state->__pyx_codeobj__525); Py_VISIT(traverse_module_state->__pyx_codeobj__526); Py_VISIT(traverse_module_state->__pyx_codeobj__527); Py_VISIT(traverse_module_state->__pyx_codeobj__528); Py_VISIT(traverse_module_state->__pyx_codeobj__529); Py_VISIT(traverse_module_state->__pyx_codeobj__530); Py_VISIT(traverse_module_state->__pyx_codeobj__531); Py_VISIT(traverse_module_state->__pyx_codeobj__532); Py_VISIT(traverse_module_state->__pyx_codeobj__533); Py_VISIT(traverse_module_state->__pyx_codeobj__535); Py_VISIT(traverse_module_state->__pyx_codeobj__536); Py_VISIT(traverse_module_state->__pyx_codeobj__537); Py_VISIT(traverse_module_state->__pyx_codeobj__538); Py_VISIT(traverse_module_state->__pyx_codeobj__539); Py_VISIT(traverse_module_state->__pyx_codeobj__540); Py_VISIT(traverse_module_state->__pyx_codeobj__541); Py_VISIT(traverse_module_state->__pyx_codeobj__542); Py_VISIT(traverse_module_state->__pyx_codeobj__543); Py_VISIT(traverse_module_state->__pyx_codeobj__544); Py_VISIT(traverse_module_state->__pyx_codeobj__545); Py_VISIT(traverse_module_state->__pyx_codeobj__546); Py_VISIT(traverse_module_state->__pyx_codeobj__547); Py_VISIT(traverse_module_state->__pyx_codeobj__548); Py_VISIT(traverse_module_state->__pyx_codeobj__549); Py_VISIT(traverse_module_state->__pyx_codeobj__550); Py_VISIT(traverse_module_state->__pyx_codeobj__551); Py_VISIT(traverse_module_state->__pyx_codeobj__552); Py_VISIT(traverse_module_state->__pyx_codeobj__553); Py_VISIT(traverse_module_state->__pyx_codeobj__554); Py_VISIT(traverse_module_state->__pyx_codeobj__555); Py_VISIT(traverse_module_state->__pyx_codeobj__556); Py_VISIT(traverse_module_state->__pyx_codeobj__557); Py_VISIT(traverse_module_state->__pyx_codeobj__558); Py_VISIT(traverse_module_state->__pyx_codeobj__559); Py_VISIT(traverse_module_state->__pyx_codeobj__560); Py_VISIT(traverse_module_state->__pyx_codeobj__561); Py_VISIT(traverse_module_state->__pyx_codeobj__562); Py_VISIT(traverse_module_state->__pyx_codeobj__563); Py_VISIT(traverse_module_state->__pyx_codeobj__564); Py_VISIT(traverse_module_state->__pyx_codeobj__565); Py_VISIT(traverse_module_state->__pyx_codeobj__566); Py_VISIT(traverse_module_state->__pyx_codeobj__567); Py_VISIT(traverse_module_state->__pyx_codeobj__568); Py_VISIT(traverse_module_state->__pyx_codeobj__569); Py_VISIT(traverse_module_state->__pyx_codeobj__570); Py_VISIT(traverse_module_state->__pyx_codeobj__571); Py_VISIT(traverse_module_state->__pyx_codeobj__572); Py_VISIT(traverse_module_state->__pyx_codeobj__573); Py_VISIT(traverse_module_state->__pyx_codeobj__574); Py_VISIT(traverse_module_state->__pyx_codeobj__575); Py_VISIT(traverse_module_state->__pyx_codeobj__576); Py_VISIT(traverse_module_state->__pyx_codeobj__577); Py_VISIT(traverse_module_state->__pyx_codeobj__578); Py_VISIT(traverse_module_state->__pyx_codeobj__579); Py_VISIT(traverse_module_state->__pyx_codeobj__580); Py_VISIT(traverse_module_state->__pyx_codeobj__581); Py_VISIT(traverse_module_state->__pyx_codeobj__582); Py_VISIT(traverse_module_state->__pyx_codeobj__583); Py_VISIT(traverse_module_state->__pyx_codeobj__584); Py_VISIT(traverse_module_state->__pyx_codeobj__587); Py_VISIT(traverse_module_state->__pyx_codeobj__589); Py_VISIT(traverse_module_state->__pyx_codeobj__590); Py_VISIT(traverse_module_state->__pyx_codeobj__591); Py_VISIT(traverse_module_state->__pyx_codeobj__592); Py_VISIT(traverse_module_state->__pyx_codeobj__593); Py_VISIT(traverse_module_state->__pyx_codeobj__594); Py_VISIT(traverse_module_state->__pyx_codeobj__595); Py_VISIT(traverse_module_state->__pyx_codeobj__596); Py_VISIT(traverse_module_state->__pyx_codeobj__597); Py_VISIT(traverse_module_state->__pyx_codeobj__598); Py_VISIT(traverse_module_state->__pyx_codeobj__599); Py_VISIT(traverse_module_state->__pyx_codeobj__600); Py_VISIT(traverse_module_state->__pyx_codeobj__601); Py_VISIT(traverse_module_state->__pyx_codeobj__602); Py_VISIT(traverse_module_state->__pyx_codeobj__603); Py_VISIT(traverse_module_state->__pyx_codeobj__604); Py_VISIT(traverse_module_state->__pyx_codeobj__605); Py_VISIT(traverse_module_state->__pyx_codeobj__606); Py_VISIT(traverse_module_state->__pyx_codeobj__607); Py_VISIT(traverse_module_state->__pyx_codeobj__608); Py_VISIT(traverse_module_state->__pyx_codeobj__609); Py_VISIT(traverse_module_state->__pyx_codeobj__610); Py_VISIT(traverse_module_state->__pyx_codeobj__611); Py_VISIT(traverse_module_state->__pyx_codeobj__612); Py_VISIT(traverse_module_state->__pyx_codeobj__613); Py_VISIT(traverse_module_state->__pyx_codeobj__614); Py_VISIT(traverse_module_state->__pyx_codeobj__615); Py_VISIT(traverse_module_state->__pyx_codeobj__616); Py_VISIT(traverse_module_state->__pyx_codeobj__617); Py_VISIT(traverse_module_state->__pyx_codeobj__618); Py_VISIT(traverse_module_state->__pyx_codeobj__619); Py_VISIT(traverse_module_state->__pyx_codeobj__620); Py_VISIT(traverse_module_state->__pyx_codeobj__621); Py_VISIT(traverse_module_state->__pyx_codeobj__622); Py_VISIT(traverse_module_state->__pyx_codeobj__623); Py_VISIT(traverse_module_state->__pyx_codeobj__624); Py_VISIT(traverse_module_state->__pyx_codeobj__625); Py_VISIT(traverse_module_state->__pyx_codeobj__626); Py_VISIT(traverse_module_state->__pyx_codeobj__627); Py_VISIT(traverse_module_state->__pyx_codeobj__628); Py_VISIT(traverse_module_state->__pyx_codeobj__629); Py_VISIT(traverse_module_state->__pyx_codeobj__630); Py_VISIT(traverse_module_state->__pyx_codeobj__631); Py_VISIT(traverse_module_state->__pyx_codeobj__632); Py_VISIT(traverse_module_state->__pyx_codeobj__633); Py_VISIT(traverse_module_state->__pyx_codeobj__634); Py_VISIT(traverse_module_state->__pyx_codeobj__635); Py_VISIT(traverse_module_state->__pyx_codeobj__636); Py_VISIT(traverse_module_state->__pyx_codeobj__637); Py_VISIT(traverse_module_state->__pyx_codeobj__638); Py_VISIT(traverse_module_state->__pyx_codeobj__639); Py_VISIT(traverse_module_state->__pyx_codeobj__640); Py_VISIT(traverse_module_state->__pyx_codeobj__641); Py_VISIT(traverse_module_state->__pyx_codeobj__642); Py_VISIT(traverse_module_state->__pyx_codeobj__643); Py_VISIT(traverse_module_state->__pyx_codeobj__644); Py_VISIT(traverse_module_state->__pyx_codeobj__645); Py_VISIT(traverse_module_state->__pyx_codeobj__646); Py_VISIT(traverse_module_state->__pyx_codeobj__647); Py_VISIT(traverse_module_state->__pyx_codeobj__648); Py_VISIT(traverse_module_state->__pyx_codeobj__649); Py_VISIT(traverse_module_state->__pyx_codeobj__650); Py_VISIT(traverse_module_state->__pyx_codeobj__651); Py_VISIT(traverse_module_state->__pyx_codeobj__652); Py_VISIT(traverse_module_state->__pyx_codeobj__653); return 0; } #endif /* #### Code section: module_state_defines ### */ #define __pyx_d __pyx_mstate_global->__pyx_d #define __pyx_b __pyx_mstate_global->__pyx_b #define __pyx_cython_runtime __pyx_mstate_global->__pyx_cython_runtime #define __pyx_empty_tuple __pyx_mstate_global->__pyx_empty_tuple #define __pyx_empty_bytes __pyx_mstate_global->__pyx_empty_bytes #define __pyx_empty_unicode __pyx_mstate_global->__pyx_empty_unicode #ifdef __Pyx_CyFunction_USED #define __pyx_CyFunctionType __pyx_mstate_global->__pyx_CyFunctionType #endif #ifdef __Pyx_FusedFunction_USED #define __pyx_FusedFunctionType __pyx_mstate_global->__pyx_FusedFunctionType #endif #ifdef __Pyx_Generator_USED #define __pyx_GeneratorType __pyx_mstate_global->__pyx_GeneratorType #endif #ifdef __Pyx_IterableCoroutine_USED #define __pyx_IterableCoroutineType __pyx_mstate_global->__pyx_IterableCoroutineType #endif #ifdef __Pyx_Coroutine_USED #define __pyx_CoroutineAwaitType __pyx_mstate_global->__pyx_CoroutineAwaitType #endif #ifdef __Pyx_Coroutine_USED #define __pyx_CoroutineType __pyx_mstate_global->__pyx_CoroutineType #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #define __pyx_ptype_4cuda_4cuda_CUcontext __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUcontext #define __pyx_ptype_4cuda_4cuda_CUmodule __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUmodule #define __pyx_ptype_4cuda_4cuda_CUfunction __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUfunction #define __pyx_ptype_4cuda_4cuda_CUlibrary __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUlibrary #define __pyx_ptype_4cuda_4cuda_CUkernel __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUkernel #define __pyx_ptype_4cuda_4cuda_CUarray __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUarray #define __pyx_ptype_4cuda_4cuda_CUmipmappedArray __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUmipmappedArray #define __pyx_ptype_4cuda_4cuda_CUtexref __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUtexref #define __pyx_ptype_4cuda_4cuda_CUsurfref __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUsurfref #define __pyx_ptype_4cuda_4cuda_CUevent __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUevent #define __pyx_ptype_4cuda_4cuda_CUstream __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUstream #define __pyx_ptype_4cuda_4cuda_CUgraphicsResource __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUgraphicsResource #define __pyx_ptype_4cuda_4cuda_CUexternalMemory __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUexternalMemory #define __pyx_ptype_4cuda_4cuda_CUexternalSemaphore __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUexternalSemaphore #define __pyx_ptype_4cuda_4cuda_CUgraph __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUgraph #define __pyx_ptype_4cuda_4cuda_CUgraphNode __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUgraphNode #define __pyx_ptype_4cuda_4cuda_CUgraphExec __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUgraphExec #define __pyx_ptype_4cuda_4cuda_CUmemoryPool __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUmemoryPool #define __pyx_ptype_4cuda_4cuda_CUuserObject __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUuserObject #define __pyx_ptype_4cuda_4cuda_CUgraphDeviceNode __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUgraphDeviceNode #define __pyx_ptype_4cuda_4cuda_CUasyncCallbackHandle __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUasyncCallbackHandle #define __pyx_ptype_4cuda_4cuda_CUgreenCtx __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUgreenCtx #define __pyx_ptype_4cuda_4cuda_CUlinkState __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUlinkState #define __pyx_ptype_4cuda_4cuda_CUdevResourceDesc __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUdevResourceDesc #define __pyx_ptype_4cuda_4cuda_CUeglStreamConnection __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUeglStreamConnection #define __pyx_ptype_4cuda_4cuda_EGLImageKHR __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_EGLImageKHR #define __pyx_ptype_4cuda_4cuda_EGLStreamKHR __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_EGLStreamKHR #define __pyx_ptype_4cuda_4cuda_EGLSyncKHR __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_EGLSyncKHR #define __pyx_ptype_4cuda_4cuda_CUasyncCallback __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUasyncCallback #define __pyx_ptype_4cuda_4cuda_CUhostFn __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUhostFn #define __pyx_ptype_4cuda_4cuda_CUstreamCallback __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUstreamCallback #define __pyx_ptype_4cuda_4cuda_CUoccupancyB2DSize __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUoccupancyB2DSize #define __pyx_ptype_4cuda_4cuda_CUuuid_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUuuid_st #define __pyx_ptype_4cuda_4cuda_CUmemFabricHandle_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUmemFabricHandle_st #define __pyx_ptype_4cuda_4cuda_CUipcEventHandle_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUipcEventHandle_st #define __pyx_ptype_4cuda_4cuda_CUipcMemHandle_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUipcMemHandle_st #define __pyx_ptype_4cuda_4cuda_CUstreamMemOpWaitValueParams_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUstreamMemOpWaitValueParams_st #define __pyx_ptype_4cuda_4cuda_CUstreamMemOpWriteValueParams_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUstreamMemOpWriteValueParams_st #define __pyx_ptype_4cuda_4cuda_CUstreamMemOpFlushRemoteWritesParams_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUstreamMemOpFlushRemoteWritesParams_st #define __pyx_ptype_4cuda_4cuda_CUstreamMemOpMemoryBarrierParams_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUstreamMemOpMemoryBarrierParams_st #define __pyx_ptype_4cuda_4cuda_CUstreamBatchMemOpParams_union __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUstreamBatchMemOpParams_union #define __pyx_ptype_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st #define __pyx_ptype_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st #define __pyx_ptype_4cuda_4cuda_anon_struct0 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_anon_struct0 #define __pyx_ptype_4cuda_4cuda_anon_union2 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_anon_union2 #define __pyx_ptype_4cuda_4cuda_CUasyncNotificationInfo_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUasyncNotificationInfo_st #define __pyx_ptype_4cuda_4cuda_CUdevprop_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUdevprop_st #define __pyx_ptype_4cuda_4cuda_CUaccessPolicyWindow_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUaccessPolicyWindow_st #define __pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_st #define __pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v2_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v2_st #define __pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v3_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v3_st #define __pyx_ptype_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_st #define __pyx_ptype_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_v2_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_v2_st #define __pyx_ptype_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_st #define __pyx_ptype_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_v2_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_v2_st #define __pyx_ptype_4cuda_4cuda_CUDA_CONDITIONAL_NODE_PARAMS __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_CONDITIONAL_NODE_PARAMS #define __pyx_ptype_4cuda_4cuda_CUgraphEdgeData_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUgraphEdgeData_st #define __pyx_ptype_4cuda_4cuda_CUDA_GRAPH_INSTANTIATE_PARAMS_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_GRAPH_INSTANTIATE_PARAMS_st #define __pyx_ptype_4cuda_4cuda_CUlaunchMemSyncDomainMap_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUlaunchMemSyncDomainMap_st #define __pyx_ptype_4cuda_4cuda_anon_struct1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_anon_struct1 #define __pyx_ptype_4cuda_4cuda_anon_struct2 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_anon_struct2 #define __pyx_ptype_4cuda_4cuda_anon_struct3 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_anon_struct3 #define __pyx_ptype_4cuda_4cuda_anon_struct4 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_anon_struct4 #define __pyx_ptype_4cuda_4cuda_CUlaunchAttributeValue_union __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUlaunchAttributeValue_union #define __pyx_ptype_4cuda_4cuda_CUlaunchAttribute_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUlaunchAttribute_st #define __pyx_ptype_4cuda_4cuda_CUlaunchConfig_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUlaunchConfig_st #define __pyx_ptype_4cuda_4cuda_CUexecAffinitySmCount_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUexecAffinitySmCount_st #define __pyx_ptype_4cuda_4cuda_anon_union3 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_anon_union3 #define __pyx_ptype_4cuda_4cuda_CUexecAffinityParam_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUexecAffinityParam_st #define __pyx_ptype_4cuda_4cuda_CUctxCigParam_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUctxCigParam_st #define __pyx_ptype_4cuda_4cuda_CUctxCreateParams_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUctxCreateParams_st #define __pyx_ptype_4cuda_4cuda_CUlibraryHostUniversalFunctionAndDataTable_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUlibraryHostUniversalFunctionAndDataTable_st #define __pyx_ptype_4cuda_4cuda_CUDA_MEMCPY2D_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY2D_st #define __pyx_ptype_4cuda_4cuda_CUDA_MEMCPY3D_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY3D_st #define __pyx_ptype_4cuda_4cuda_CUDA_MEMCPY3D_PEER_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY3D_PEER_st #define __pyx_ptype_4cuda_4cuda_CUDA_MEMCPY_NODE_PARAMS_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY_NODE_PARAMS_st #define __pyx_ptype_4cuda_4cuda_CUDA_ARRAY_DESCRIPTOR_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_ARRAY_DESCRIPTOR_st #define __pyx_ptype_4cuda_4cuda_CUDA_ARRAY3D_DESCRIPTOR_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_ARRAY3D_DESCRIPTOR_st #define __pyx_ptype_4cuda_4cuda_anon_struct5 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_anon_struct5 #define __pyx_ptype_4cuda_4cuda_CUDA_ARRAY_SPARSE_PROPERTIES_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_ARRAY_SPARSE_PROPERTIES_st #define __pyx_ptype_4cuda_4cuda_CUDA_ARRAY_MEMORY_REQUIREMENTS_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_ARRAY_MEMORY_REQUIREMENTS_st #define __pyx_ptype_4cuda_4cuda_anon_struct6 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_anon_struct6 #define __pyx_ptype_4cuda_4cuda_anon_struct7 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_anon_struct7 #define __pyx_ptype_4cuda_4cuda_anon_struct8 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_anon_struct8 #define __pyx_ptype_4cuda_4cuda_anon_struct9 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_anon_struct9 #define __pyx_ptype_4cuda_4cuda_anon_struct10 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_anon_struct10 #define __pyx_ptype_4cuda_4cuda_anon_union4 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_anon_union4 #define __pyx_ptype_4cuda_4cuda_CUDA_RESOURCE_DESC_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_RESOURCE_DESC_st #define __pyx_ptype_4cuda_4cuda_CUDA_TEXTURE_DESC_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_TEXTURE_DESC_st #define __pyx_ptype_4cuda_4cuda_CUDA_RESOURCE_VIEW_DESC_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_RESOURCE_VIEW_DESC_st #define __pyx_ptype_4cuda_4cuda_CUtensorMap_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUtensorMap_st #define __pyx_ptype_4cuda_4cuda_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st #define __pyx_ptype_4cuda_4cuda_CUDA_LAUNCH_PARAMS_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_LAUNCH_PARAMS_st #define __pyx_ptype_4cuda_4cuda_anon_struct11 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_anon_struct11 #define __pyx_ptype_4cuda_4cuda_anon_union5 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_anon_union5 #define __pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st #define __pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st #define __pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st #define __pyx_ptype_4cuda_4cuda_anon_struct12 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_anon_struct12 #define __pyx_ptype_4cuda_4cuda_anon_union6 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_anon_union6 #define __pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st #define __pyx_ptype_4cuda_4cuda_anon_struct13 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_anon_struct13 #define __pyx_ptype_4cuda_4cuda_anon_union7 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_anon_union7 #define __pyx_ptype_4cuda_4cuda_anon_struct14 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_anon_struct14 #define __pyx_ptype_4cuda_4cuda_anon_struct15 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_anon_struct15 #define __pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st #define __pyx_ptype_4cuda_4cuda_anon_struct16 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_anon_struct16 #define __pyx_ptype_4cuda_4cuda_anon_union8 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_anon_union8 #define __pyx_ptype_4cuda_4cuda_anon_struct17 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_anon_struct17 #define __pyx_ptype_4cuda_4cuda_anon_struct18 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_anon_struct18 #define __pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st #define __pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st #define __pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st #define __pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_st #define __pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st #define __pyx_ptype_4cuda_4cuda_anon_union9 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_anon_union9 #define __pyx_ptype_4cuda_4cuda_anon_struct19 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_anon_struct19 #define __pyx_ptype_4cuda_4cuda_anon_struct20 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_anon_struct20 #define __pyx_ptype_4cuda_4cuda_anon_union10 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_anon_union10 #define __pyx_ptype_4cuda_4cuda_anon_union11 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_anon_union11 #define __pyx_ptype_4cuda_4cuda_CUarrayMapInfo_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUarrayMapInfo_st #define __pyx_ptype_4cuda_4cuda_CUmemLocation_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUmemLocation_st #define __pyx_ptype_4cuda_4cuda_anon_struct21 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_anon_struct21 #define __pyx_ptype_4cuda_4cuda_CUmemAllocationProp_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUmemAllocationProp_st #define __pyx_ptype_4cuda_4cuda_CUmulticastObjectProp_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUmulticastObjectProp_st #define __pyx_ptype_4cuda_4cuda_CUmemAccessDesc_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUmemAccessDesc_st #define __pyx_ptype_4cuda_4cuda_CUgraphExecUpdateResultInfo_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUgraphExecUpdateResultInfo_st #define __pyx_ptype_4cuda_4cuda_CUmemPoolProps_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUmemPoolProps_st #define __pyx_ptype_4cuda_4cuda_CUmemPoolPtrExportData_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUmemPoolPtrExportData_st #define __pyx_ptype_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v1_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v1_st #define __pyx_ptype_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v2_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v2_st #define __pyx_ptype_4cuda_4cuda_CUDA_MEM_FREE_NODE_PARAMS_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_MEM_FREE_NODE_PARAMS_st #define __pyx_ptype_4cuda_4cuda_CUDA_CHILD_GRAPH_NODE_PARAMS_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_CHILD_GRAPH_NODE_PARAMS_st #define __pyx_ptype_4cuda_4cuda_CUDA_EVENT_RECORD_NODE_PARAMS_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_EVENT_RECORD_NODE_PARAMS_st #define __pyx_ptype_4cuda_4cuda_CUDA_EVENT_WAIT_NODE_PARAMS_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_EVENT_WAIT_NODE_PARAMS_st #define __pyx_ptype_4cuda_4cuda_CUgraphNodeParams_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUgraphNodeParams_st #define __pyx_ptype_4cuda_4cuda_CUdevSmResource_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUdevSmResource_st #define __pyx_ptype_4cuda_4cuda_CUdevResource_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUdevResource_st #define __pyx_ptype_4cuda_4cuda_anon_union14 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_anon_union14 #define __pyx_ptype_4cuda_4cuda_CUeglFrame_st __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUeglFrame_st #define __pyx_ptype_4cuda_4cuda_CUdeviceptr __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUdeviceptr #define __pyx_ptype_4cuda_4cuda_CUdevice __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUdevice #define __pyx_ptype_4cuda_4cuda_CUtexObject __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUtexObject #define __pyx_ptype_4cuda_4cuda_CUsurfObject __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUsurfObject #define __pyx_ptype_4cuda_4cuda_CUgraphConditionalHandle __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUgraphConditionalHandle #define __pyx_ptype_4cuda_4cuda_CUuuid __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUuuid #define __pyx_ptype_4cuda_4cuda_CUmemFabricHandle_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUmemFabricHandle_v1 #define __pyx_ptype_4cuda_4cuda_CUmemFabricHandle __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUmemFabricHandle #define __pyx_ptype_4cuda_4cuda_CUipcEventHandle_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUipcEventHandle_v1 #define __pyx_ptype_4cuda_4cuda_CUipcEventHandle __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUipcEventHandle #define __pyx_ptype_4cuda_4cuda_CUipcMemHandle_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUipcMemHandle_v1 #define __pyx_ptype_4cuda_4cuda_CUipcMemHandle __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUipcMemHandle #define __pyx_ptype_4cuda_4cuda_CUstreamBatchMemOpParams_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUstreamBatchMemOpParams_v1 #define __pyx_ptype_4cuda_4cuda_CUstreamBatchMemOpParams __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUstreamBatchMemOpParams #define __pyx_ptype_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1 #define __pyx_ptype_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS #define __pyx_ptype_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2 #define __pyx_ptype_4cuda_4cuda_CUasyncNotificationInfo __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUasyncNotificationInfo #define __pyx_ptype_4cuda_4cuda_CUdevprop_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUdevprop_v1 #define __pyx_ptype_4cuda_4cuda_CUdevprop __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUdevprop #define __pyx_ptype_4cuda_4cuda_CUaccessPolicyWindow_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUaccessPolicyWindow_v1 #define __pyx_ptype_4cuda_4cuda_CUaccessPolicyWindow __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUaccessPolicyWindow #define __pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v1 #define __pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v2 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v2 #define __pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS #define __pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v3 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v3 #define __pyx_ptype_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_v1 #define __pyx_ptype_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS #define __pyx_ptype_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_v2 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_v2 #define __pyx_ptype_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_v1 #define __pyx_ptype_4cuda_4cuda_CUDA_HOST_NODE_PARAMS __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_HOST_NODE_PARAMS #define __pyx_ptype_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_v2 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_v2 #define __pyx_ptype_4cuda_4cuda_CUgraphEdgeData __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUgraphEdgeData #define __pyx_ptype_4cuda_4cuda_CUDA_GRAPH_INSTANTIATE_PARAMS __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_GRAPH_INSTANTIATE_PARAMS #define __pyx_ptype_4cuda_4cuda_CUlaunchMemSyncDomainMap __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUlaunchMemSyncDomainMap #define __pyx_ptype_4cuda_4cuda_CUlaunchAttributeValue __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUlaunchAttributeValue #define __pyx_ptype_4cuda_4cuda_CUlaunchAttribute __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUlaunchAttribute #define __pyx_ptype_4cuda_4cuda_CUlaunchConfig __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUlaunchConfig #define __pyx_ptype_4cuda_4cuda_CUkernelNodeAttrValue_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUkernelNodeAttrValue_v1 #define __pyx_ptype_4cuda_4cuda_CUkernelNodeAttrValue __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUkernelNodeAttrValue #define __pyx_ptype_4cuda_4cuda_CUstreamAttrValue_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUstreamAttrValue_v1 #define __pyx_ptype_4cuda_4cuda_CUstreamAttrValue __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUstreamAttrValue #define __pyx_ptype_4cuda_4cuda_CUexecAffinitySmCount_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUexecAffinitySmCount_v1 #define __pyx_ptype_4cuda_4cuda_CUexecAffinitySmCount __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUexecAffinitySmCount #define __pyx_ptype_4cuda_4cuda_CUexecAffinityParam_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUexecAffinityParam_v1 #define __pyx_ptype_4cuda_4cuda_CUexecAffinityParam __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUexecAffinityParam #define __pyx_ptype_4cuda_4cuda_CUctxCigParam __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUctxCigParam #define __pyx_ptype_4cuda_4cuda_CUctxCreateParams __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUctxCreateParams #define __pyx_ptype_4cuda_4cuda_CUlibraryHostUniversalFunctionAndDataTable __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUlibraryHostUniversalFunctionAndDataTable #define __pyx_ptype_4cuda_4cuda_CUDA_MEMCPY2D_v2 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY2D_v2 #define __pyx_ptype_4cuda_4cuda_CUDA_MEMCPY2D __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY2D #define __pyx_ptype_4cuda_4cuda_CUDA_MEMCPY3D_v2 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY3D_v2 #define __pyx_ptype_4cuda_4cuda_CUDA_MEMCPY3D __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY3D #define __pyx_ptype_4cuda_4cuda_CUDA_MEMCPY3D_PEER_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY3D_PEER_v1 #define __pyx_ptype_4cuda_4cuda_CUDA_MEMCPY3D_PEER __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY3D_PEER #define __pyx_ptype_4cuda_4cuda_CUDA_MEMCPY_NODE_PARAMS __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY_NODE_PARAMS #define __pyx_ptype_4cuda_4cuda_CUDA_ARRAY_DESCRIPTOR_v2 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_ARRAY_DESCRIPTOR_v2 #define __pyx_ptype_4cuda_4cuda_CUDA_ARRAY_DESCRIPTOR __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_ARRAY_DESCRIPTOR #define __pyx_ptype_4cuda_4cuda_CUDA_ARRAY3D_DESCRIPTOR_v2 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_ARRAY3D_DESCRIPTOR_v2 #define __pyx_ptype_4cuda_4cuda_CUDA_ARRAY3D_DESCRIPTOR __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_ARRAY3D_DESCRIPTOR #define __pyx_ptype_4cuda_4cuda_CUDA_ARRAY_SPARSE_PROPERTIES_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_ARRAY_SPARSE_PROPERTIES_v1 #define __pyx_ptype_4cuda_4cuda_CUDA_ARRAY_SPARSE_PROPERTIES __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_ARRAY_SPARSE_PROPERTIES #define __pyx_ptype_4cuda_4cuda_CUDA_ARRAY_MEMORY_REQUIREMENTS_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_ARRAY_MEMORY_REQUIREMENTS_v1 #define __pyx_ptype_4cuda_4cuda_CUDA_ARRAY_MEMORY_REQUIREMENTS __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_ARRAY_MEMORY_REQUIREMENTS #define __pyx_ptype_4cuda_4cuda_CUDA_RESOURCE_DESC_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_RESOURCE_DESC_v1 #define __pyx_ptype_4cuda_4cuda_CUDA_RESOURCE_DESC __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_RESOURCE_DESC #define __pyx_ptype_4cuda_4cuda_CUDA_TEXTURE_DESC_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_TEXTURE_DESC_v1 #define __pyx_ptype_4cuda_4cuda_CUDA_TEXTURE_DESC __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_TEXTURE_DESC #define __pyx_ptype_4cuda_4cuda_CUDA_RESOURCE_VIEW_DESC_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_RESOURCE_VIEW_DESC_v1 #define __pyx_ptype_4cuda_4cuda_CUDA_RESOURCE_VIEW_DESC __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_RESOURCE_VIEW_DESC #define __pyx_ptype_4cuda_4cuda_CUtensorMap __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUtensorMap #define __pyx_ptype_4cuda_4cuda_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1 #define __pyx_ptype_4cuda_4cuda_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS #define __pyx_ptype_4cuda_4cuda_CUDA_LAUNCH_PARAMS_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_LAUNCH_PARAMS_v1 #define __pyx_ptype_4cuda_4cuda_CUDA_LAUNCH_PARAMS __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_LAUNCH_PARAMS #define __pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1 #define __pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_HANDLE_DESC __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_HANDLE_DESC #define __pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1 #define __pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_BUFFER_DESC __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_BUFFER_DESC #define __pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1 #define __pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC #define __pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1 #define __pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC #define __pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1 #define __pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS #define __pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1 #define __pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS #define __pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1 #define __pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS #define __pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2 #define __pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1 #define __pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS #define __pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2 #define __pyx_ptype_4cuda_4cuda_CUmemGenericAllocationHandle __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUmemGenericAllocationHandle #define __pyx_ptype_4cuda_4cuda_CUarrayMapInfo_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUarrayMapInfo_v1 #define __pyx_ptype_4cuda_4cuda_CUarrayMapInfo __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUarrayMapInfo #define __pyx_ptype_4cuda_4cuda_CUmemLocation_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUmemLocation_v1 #define __pyx_ptype_4cuda_4cuda_CUmemLocation __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUmemLocation #define __pyx_ptype_4cuda_4cuda_CUmemAllocationProp_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUmemAllocationProp_v1 #define __pyx_ptype_4cuda_4cuda_CUmemAllocationProp __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUmemAllocationProp #define __pyx_ptype_4cuda_4cuda_CUmulticastObjectProp_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUmulticastObjectProp_v1 #define __pyx_ptype_4cuda_4cuda_CUmulticastObjectProp __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUmulticastObjectProp #define __pyx_ptype_4cuda_4cuda_CUmemAccessDesc_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUmemAccessDesc_v1 #define __pyx_ptype_4cuda_4cuda_CUmemAccessDesc __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUmemAccessDesc #define __pyx_ptype_4cuda_4cuda_CUgraphExecUpdateResultInfo_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUgraphExecUpdateResultInfo_v1 #define __pyx_ptype_4cuda_4cuda_CUgraphExecUpdateResultInfo __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUgraphExecUpdateResultInfo #define __pyx_ptype_4cuda_4cuda_CUmemPoolProps_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUmemPoolProps_v1 #define __pyx_ptype_4cuda_4cuda_CUmemPoolProps __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUmemPoolProps #define __pyx_ptype_4cuda_4cuda_CUmemPoolPtrExportData_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUmemPoolPtrExportData_v1 #define __pyx_ptype_4cuda_4cuda_CUmemPoolPtrExportData __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUmemPoolPtrExportData #define __pyx_ptype_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v1 #define __pyx_ptype_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS #define __pyx_ptype_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v2 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v2 #define __pyx_ptype_4cuda_4cuda_CUDA_MEM_FREE_NODE_PARAMS __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_MEM_FREE_NODE_PARAMS #define __pyx_ptype_4cuda_4cuda_CUDA_CHILD_GRAPH_NODE_PARAMS __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_CHILD_GRAPH_NODE_PARAMS #define __pyx_ptype_4cuda_4cuda_CUDA_EVENT_RECORD_NODE_PARAMS __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_EVENT_RECORD_NODE_PARAMS #define __pyx_ptype_4cuda_4cuda_CUDA_EVENT_WAIT_NODE_PARAMS __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUDA_EVENT_WAIT_NODE_PARAMS #define __pyx_ptype_4cuda_4cuda_CUgraphNodeParams __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUgraphNodeParams #define __pyx_ptype_4cuda_4cuda_CUdevSmResource __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUdevSmResource #define __pyx_ptype_4cuda_4cuda_CUdevResource_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUdevResource_v1 #define __pyx_ptype_4cuda_4cuda_CUdevResource __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUdevResource #define __pyx_ptype_4cuda_4cuda_CUeglFrame_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUeglFrame_v1 #define __pyx_ptype_4cuda_4cuda_CUeglFrame __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUeglFrame #define __pyx_ptype_4cuda_4cuda_cuuint32_t __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_cuuint32_t #define __pyx_ptype_4cuda_4cuda_cuuint64_t __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_cuuint64_t #define __pyx_ptype_4cuda_4cuda_CUdeviceptr_v2 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUdeviceptr_v2 #define __pyx_ptype_4cuda_4cuda_CUdevice_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUdevice_v1 #define __pyx_ptype_4cuda_4cuda_CUtexObject_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUtexObject_v1 #define __pyx_ptype_4cuda_4cuda_CUsurfObject_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUsurfObject_v1 #define __pyx_ptype_4cuda_4cuda_CUmemGenericAllocationHandle_v1 __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_CUmemGenericAllocationHandle_v1 #define __pyx_ptype_4cuda_4cuda_GLenum __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_GLenum #define __pyx_ptype_4cuda_4cuda_GLuint __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_GLuint #define __pyx_ptype_4cuda_4cuda_EGLint __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_EGLint #define __pyx_ptype_4cuda_4cuda_VdpDevice __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_VdpDevice #define __pyx_ptype_4cuda_4cuda_VdpGetProcAddress __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_VdpGetProcAddress #define __pyx_ptype_4cuda_4cuda_VdpVideoSurface __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_VdpVideoSurface #define __pyx_ptype_4cuda_4cuda_VdpOutputSurface __pyx_mstate_global->__pyx_ptype_4cuda_4cuda_VdpOutputSurface #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #define __pyx_ptype_4cuda_4_lib_5utils_HelperKernelParams __pyx_mstate_global->__pyx_ptype_4cuda_4_lib_5utils_HelperKernelParams #define __pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr __pyx_mstate_global->__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr #define __pyx_ptype_4cuda_4_lib_5utils_HelperCUmemPool_attribute __pyx_mstate_global->__pyx_ptype_4cuda_4_lib_5utils_HelperCUmemPool_attribute #define __pyx_ptype_4cuda_4_lib_5utils_HelperCUmem_range_attribute __pyx_mstate_global->__pyx_ptype_4cuda_4_lib_5utils_HelperCUmem_range_attribute #define __pyx_ptype_4cuda_4_lib_5utils_HelperCUpointer_attribute __pyx_mstate_global->__pyx_ptype_4cuda_4_lib_5utils_HelperCUpointer_attribute #define __pyx_ptype_4cuda_4_lib_5utils_HelperCUgraphMem_attribute __pyx_mstate_global->__pyx_ptype_4cuda_4_lib_5utils_HelperCUgraphMem_attribute #define __pyx_ptype_4cuda_4_lib_5utils_HelperCUjit_option __pyx_mstate_global->__pyx_ptype_4cuda_4_lib_5utils_HelperCUjit_option #define __pyx_ptype_4cuda_4_lib_5utils_HelperCUlibraryOption __pyx_mstate_global->__pyx_ptype_4cuda_4_lib_5utils_HelperCUlibraryOption #define __pyx_ptype_4cuda_4_lib_5utils_HelperCUmemAllocationHandleType __pyx_mstate_global->__pyx_ptype_4cuda_4_lib_5utils_HelperCUmemAllocationHandleType #define __pyx_ptype_4cuda_4_lib_5utils_InputVoidPtrPtrHelper __pyx_mstate_global->__pyx_ptype_4cuda_4_lib_5utils_InputVoidPtrPtrHelper #define __pyx_ptype_4cuda_4_lib_5utils_HelperCUcoredumpSettings __pyx_mstate_global->__pyx_ptype_4cuda_4_lib_5utils_HelperCUcoredumpSettings #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #define __pyx_ptype_7cpython_4type_type __pyx_mstate_global->__pyx_ptype_7cpython_4type_type #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #endif #if CYTHON_USE_MODULE_STATE #define __pyx_type_4cuda_6cudart_cudaArray_t __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaArray_t #define __pyx_type_4cuda_6cudart_cudaArray_const_t __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaArray_const_t #define __pyx_type_4cuda_6cudart_cudaMipmappedArray_t __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaMipmappedArray_t #define __pyx_type_4cuda_6cudart_cudaMipmappedArray_const_t __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaMipmappedArray_const_t #define __pyx_type_4cuda_6cudart_cudaGraphicsResource_t __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaGraphicsResource_t #define __pyx_type_4cuda_6cudart_cudaExternalMemory_t __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaExternalMemory_t #define __pyx_type_4cuda_6cudart_cudaExternalSemaphore_t __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaExternalSemaphore_t #define __pyx_type_4cuda_6cudart_cudaKernel_t __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaKernel_t #define __pyx_type_4cuda_6cudart_cudaGraphDeviceNode_t __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaGraphDeviceNode_t #define __pyx_type_4cuda_6cudart_cudaAsyncCallbackHandle_t __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaAsyncCallbackHandle_t #define __pyx_type_4cuda_6cudart_EGLImageKHR __pyx_mstate_global->__pyx_type_4cuda_6cudart_EGLImageKHR #define __pyx_type_4cuda_6cudart_EGLStreamKHR __pyx_mstate_global->__pyx_type_4cuda_6cudart_EGLStreamKHR #define __pyx_type_4cuda_6cudart_EGLSyncKHR __pyx_mstate_global->__pyx_type_4cuda_6cudart_EGLSyncKHR #define __pyx_type_4cuda_6cudart_cudaHostFn_t __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaHostFn_t #define __pyx_type_4cuda_6cudart_cudaAsyncCallback __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaAsyncCallback #define __pyx_type_4cuda_6cudart_cudaStreamCallback_t __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaStreamCallback_t #define __pyx_type_4cuda_6cudart_dim3 __pyx_mstate_global->__pyx_type_4cuda_6cudart_dim3 #define __pyx_type_4cuda_6cudart_cudaChannelFormatDesc __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaChannelFormatDesc #define __pyx_type_4cuda_6cudart_anon_struct0 __pyx_mstate_global->__pyx_type_4cuda_6cudart_anon_struct0 #define __pyx_type_4cuda_6cudart_cudaArraySparseProperties __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaArraySparseProperties #define __pyx_type_4cuda_6cudart_cudaArrayMemoryRequirements __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaArrayMemoryRequirements #define __pyx_type_4cuda_6cudart_cudaPitchedPtr __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaPitchedPtr #define __pyx_type_4cuda_6cudart_cudaExtent __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaExtent #define __pyx_type_4cuda_6cudart_cudaPos __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaPos #define __pyx_type_4cuda_6cudart_cudaMemcpy3DParms __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaMemcpy3DParms #define __pyx_type_4cuda_6cudart_cudaMemcpyNodeParams __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaMemcpyNodeParams #define __pyx_type_4cuda_6cudart_cudaMemcpy3DPeerParms __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaMemcpy3DPeerParms #define __pyx_type_4cuda_6cudart_cudaMemsetParams __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaMemsetParams #define __pyx_type_4cuda_6cudart_cudaMemsetParamsV2 __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaMemsetParamsV2 #define __pyx_type_4cuda_6cudart_cudaAccessPolicyWindow __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaAccessPolicyWindow #define __pyx_type_4cuda_6cudart_cudaHostNodeParams __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaHostNodeParams #define __pyx_type_4cuda_6cudart_cudaHostNodeParamsV2 __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaHostNodeParamsV2 #define __pyx_type_4cuda_6cudart_anon_struct1 __pyx_mstate_global->__pyx_type_4cuda_6cudart_anon_struct1 #define __pyx_type_4cuda_6cudart_anon_struct2 __pyx_mstate_global->__pyx_type_4cuda_6cudart_anon_struct2 #define __pyx_type_4cuda_6cudart_anon_struct3 __pyx_mstate_global->__pyx_type_4cuda_6cudart_anon_struct3 #define __pyx_type_4cuda_6cudart_anon_struct4 __pyx_mstate_global->__pyx_type_4cuda_6cudart_anon_struct4 #define __pyx_type_4cuda_6cudart_anon_union0 __pyx_mstate_global->__pyx_type_4cuda_6cudart_anon_union0 #define __pyx_type_4cuda_6cudart_cudaResourceDesc __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaResourceDesc #define __pyx_type_4cuda_6cudart_cudaResourceViewDesc __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaResourceViewDesc #define __pyx_type_4cuda_6cudart_cudaPointerAttributes __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaPointerAttributes #define __pyx_type_4cuda_6cudart_cudaFuncAttributes __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaFuncAttributes #define __pyx_type_4cuda_6cudart_cudaMemLocation __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaMemLocation #define __pyx_type_4cuda_6cudart_cudaMemAccessDesc __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaMemAccessDesc #define __pyx_type_4cuda_6cudart_cudaMemPoolProps __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaMemPoolProps #define __pyx_type_4cuda_6cudart_cudaMemPoolPtrExportData __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaMemPoolPtrExportData #define __pyx_type_4cuda_6cudart_cudaMemAllocNodeParams __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaMemAllocNodeParams #define __pyx_type_4cuda_6cudart_cudaMemAllocNodeParamsV2 __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaMemAllocNodeParamsV2 #define __pyx_type_4cuda_6cudart_cudaMemFreeNodeParams __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaMemFreeNodeParams #define __pyx_type_4cuda_6cudart_CUuuid_st __pyx_mstate_global->__pyx_type_4cuda_6cudart_CUuuid_st #define __pyx_type_4cuda_6cudart_cudaDeviceProp __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaDeviceProp #define __pyx_type_4cuda_6cudart_cudaIpcEventHandle_st __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaIpcEventHandle_st #define __pyx_type_4cuda_6cudart_cudaIpcMemHandle_st __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaIpcMemHandle_st #define __pyx_type_4cuda_6cudart_cudaMemFabricHandle_st __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaMemFabricHandle_st #define __pyx_type_4cuda_6cudart_anon_struct5 __pyx_mstate_global->__pyx_type_4cuda_6cudart_anon_struct5 #define __pyx_type_4cuda_6cudart_anon_union1 __pyx_mstate_global->__pyx_type_4cuda_6cudart_anon_union1 #define __pyx_type_4cuda_6cudart_cudaExternalMemoryHandleDesc __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaExternalMemoryHandleDesc #define __pyx_type_4cuda_6cudart_cudaExternalMemoryBufferDesc __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaExternalMemoryBufferDesc #define __pyx_type_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc #define __pyx_type_4cuda_6cudart_anon_struct6 __pyx_mstate_global->__pyx_type_4cuda_6cudart_anon_struct6 #define __pyx_type_4cuda_6cudart_anon_union2 __pyx_mstate_global->__pyx_type_4cuda_6cudart_anon_union2 #define __pyx_type_4cuda_6cudart_cudaExternalSemaphoreHandleDesc __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaExternalSemaphoreHandleDesc #define __pyx_type_4cuda_6cudart_anon_struct13 __pyx_mstate_global->__pyx_type_4cuda_6cudart_anon_struct13 #define __pyx_type_4cuda_6cudart_anon_union5 __pyx_mstate_global->__pyx_type_4cuda_6cudart_anon_union5 #define __pyx_type_4cuda_6cudart_anon_struct14 __pyx_mstate_global->__pyx_type_4cuda_6cudart_anon_struct14 #define __pyx_type_4cuda_6cudart_anon_struct15 __pyx_mstate_global->__pyx_type_4cuda_6cudart_anon_struct15 #define __pyx_type_4cuda_6cudart_cudaExternalSemaphoreSignalParams __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaExternalSemaphoreSignalParams #define __pyx_type_4cuda_6cudart_anon_struct16 __pyx_mstate_global->__pyx_type_4cuda_6cudart_anon_struct16 #define __pyx_type_4cuda_6cudart_anon_union6 __pyx_mstate_global->__pyx_type_4cuda_6cudart_anon_union6 #define __pyx_type_4cuda_6cudart_anon_struct17 __pyx_mstate_global->__pyx_type_4cuda_6cudart_anon_struct17 #define __pyx_type_4cuda_6cudart_anon_struct18 __pyx_mstate_global->__pyx_type_4cuda_6cudart_anon_struct18 #define __pyx_type_4cuda_6cudart_cudaExternalSemaphoreWaitParams __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaExternalSemaphoreWaitParams #define __pyx_type_4cuda_6cudart_cudaKernelNodeParams __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaKernelNodeParams #define __pyx_type_4cuda_6cudart_cudaKernelNodeParamsV2 __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaKernelNodeParamsV2 #define __pyx_type_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams #define __pyx_type_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 #define __pyx_type_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams #define __pyx_type_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 #define __pyx_type_4cuda_6cudart_cudaConditionalNodeParams __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaConditionalNodeParams #define __pyx_type_4cuda_6cudart_cudaChildGraphNodeParams __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaChildGraphNodeParams #define __pyx_type_4cuda_6cudart_cudaEventRecordNodeParams __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaEventRecordNodeParams #define __pyx_type_4cuda_6cudart_cudaEventWaitNodeParams __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaEventWaitNodeParams #define __pyx_type_4cuda_6cudart_cudaGraphNodeParams __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaGraphNodeParams #define __pyx_type_4cuda_6cudart_cudaGraphEdgeData_st __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaGraphEdgeData_st #define __pyx_type_4cuda_6cudart_cudaGraphInstantiateParams_st __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaGraphInstantiateParams_st #define __pyx_type_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st #define __pyx_type_4cuda_6cudart_anon_struct19 __pyx_mstate_global->__pyx_type_4cuda_6cudart_anon_struct19 #define __pyx_type_4cuda_6cudart_anon_union8 __pyx_mstate_global->__pyx_type_4cuda_6cudart_anon_union8 #define __pyx_type_4cuda_6cudart_cudaGraphKernelNodeUpdate __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaGraphKernelNodeUpdate #define __pyx_type_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st #define __pyx_type_4cuda_6cudart_anon_struct20 __pyx_mstate_global->__pyx_type_4cuda_6cudart_anon_struct20 #define __pyx_type_4cuda_6cudart_anon_struct21 __pyx_mstate_global->__pyx_type_4cuda_6cudart_anon_struct21 #define __pyx_type_4cuda_6cudart_anon_struct22 __pyx_mstate_global->__pyx_type_4cuda_6cudart_anon_struct22 #define __pyx_type_4cuda_6cudart_anon_struct23 __pyx_mstate_global->__pyx_type_4cuda_6cudart_anon_struct23 #define __pyx_type_4cuda_6cudart_cudaLaunchAttributeValue __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaLaunchAttributeValue #define __pyx_type_4cuda_6cudart_cudaLaunchAttribute_st __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaLaunchAttribute_st #define __pyx_type_4cuda_6cudart_anon_struct24 __pyx_mstate_global->__pyx_type_4cuda_6cudart_anon_struct24 #define __pyx_type_4cuda_6cudart_anon_union9 __pyx_mstate_global->__pyx_type_4cuda_6cudart_anon_union9 #define __pyx_type_4cuda_6cudart_cudaAsyncNotificationInfo __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaAsyncNotificationInfo #define __pyx_type_4cuda_6cudart_cudaTextureDesc __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaTextureDesc #define __pyx_type_4cuda_6cudart_cudaEglPlaneDesc_st __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaEglPlaneDesc_st #define __pyx_type_4cuda_6cudart_anon_union10 __pyx_mstate_global->__pyx_type_4cuda_6cudart_anon_union10 #define __pyx_type_4cuda_6cudart_cudaEglFrame_st __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaEglFrame_st #define __pyx_type_4cuda_6cudart_CUuuid __pyx_mstate_global->__pyx_type_4cuda_6cudart_CUuuid #define __pyx_type_4cuda_6cudart_cudaUUID_t __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaUUID_t #define __pyx_type_4cuda_6cudart_cudaIpcEventHandle_t __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaIpcEventHandle_t #define __pyx_type_4cuda_6cudart_cudaIpcMemHandle_t __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaIpcMemHandle_t #define __pyx_type_4cuda_6cudart_cudaMemFabricHandle_t __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaMemFabricHandle_t #define __pyx_type_4cuda_6cudart_cudaGraphEdgeData __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaGraphEdgeData #define __pyx_type_4cuda_6cudart_cudaGraphInstantiateParams __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaGraphInstantiateParams #define __pyx_type_4cuda_6cudart_cudaGraphExecUpdateResultInfo __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaGraphExecUpdateResultInfo #define __pyx_type_4cuda_6cudart_cudaLaunchMemSyncDomainMap __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaLaunchMemSyncDomainMap #define __pyx_type_4cuda_6cudart_cudaLaunchAttribute __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaLaunchAttribute #define __pyx_type_4cuda_6cudart_cudaAsyncNotificationInfo_t __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaAsyncNotificationInfo_t #define __pyx_type_4cuda_6cudart_cudaStreamAttrValue __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaStreamAttrValue #define __pyx_type_4cuda_6cudart_cudaKernelNodeAttrValue __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaKernelNodeAttrValue #define __pyx_type_4cuda_6cudart_cudaEglPlaneDesc __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaEglPlaneDesc #define __pyx_type_4cuda_6cudart_cudaEglFrame __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaEglFrame #define __pyx_type_4cuda_6cudart_cudaStream_t __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaStream_t #define __pyx_type_4cuda_6cudart_cudaEvent_t __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaEvent_t #define __pyx_type_4cuda_6cudart_cudaGraph_t __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaGraph_t #define __pyx_type_4cuda_6cudart_cudaGraphNode_t __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaGraphNode_t #define __pyx_type_4cuda_6cudart_cudaUserObject_t __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaUserObject_t #define __pyx_type_4cuda_6cudart_cudaFunction_t __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaFunction_t #define __pyx_type_4cuda_6cudart_cudaMemPool_t __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaMemPool_t #define __pyx_type_4cuda_6cudart_cudaGraphExec_t __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaGraphExec_t #define __pyx_type_4cuda_6cudart_cudaEglStreamConnection __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaEglStreamConnection #define __pyx_type_4cuda_6cudart_cudaGraphConditionalHandle __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaGraphConditionalHandle #define __pyx_type_4cuda_6cudart_cudaSurfaceObject_t __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaSurfaceObject_t #define __pyx_type_4cuda_6cudart_cudaTextureObject_t __pyx_mstate_global->__pyx_type_4cuda_6cudart_cudaTextureObject_t #define __pyx_type_4cuda_6cudart_GLenum __pyx_mstate_global->__pyx_type_4cuda_6cudart_GLenum #define __pyx_type_4cuda_6cudart_GLuint __pyx_mstate_global->__pyx_type_4cuda_6cudart_GLuint #define __pyx_type_4cuda_6cudart_EGLint __pyx_mstate_global->__pyx_type_4cuda_6cudart_EGLint #define __pyx_type_4cuda_6cudart_VdpDevice __pyx_mstate_global->__pyx_type_4cuda_6cudart_VdpDevice #define __pyx_type_4cuda_6cudart_VdpGetProcAddress __pyx_mstate_global->__pyx_type_4cuda_6cudart_VdpGetProcAddress #define __pyx_type_4cuda_6cudart_VdpVideoSurface __pyx_mstate_global->__pyx_type_4cuda_6cudart_VdpVideoSurface #define __pyx_type_4cuda_6cudart_VdpOutputSurface __pyx_mstate_global->__pyx_type_4cuda_6cudart_VdpOutputSurface #define __pyx_type_4cuda_6cudart___pyx_scope_struct__genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct__genexpr #define __pyx_type_4cuda_6cudart___pyx_scope_struct_1_genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct_1_genexpr #define __pyx_type_4cuda_6cudart___pyx_scope_struct_2_genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct_2_genexpr #define __pyx_type_4cuda_6cudart___pyx_scope_struct_3_genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct_3_genexpr #define __pyx_type_4cuda_6cudart___pyx_scope_struct_4_genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct_4_genexpr #define __pyx_type_4cuda_6cudart___pyx_scope_struct_5_genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct_5_genexpr #define __pyx_type_4cuda_6cudart___pyx_scope_struct_6_genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct_6_genexpr #define __pyx_type_4cuda_6cudart___pyx_scope_struct_7_genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct_7_genexpr #define __pyx_type_4cuda_6cudart___pyx_scope_struct_8_genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct_8_genexpr #define __pyx_type_4cuda_6cudart___pyx_scope_struct_9_genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct_9_genexpr #define __pyx_type_4cuda_6cudart___pyx_scope_struct_10_genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct_10_genexpr #define __pyx_type_4cuda_6cudart___pyx_scope_struct_11_genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct_11_genexpr #define __pyx_type_4cuda_6cudart___pyx_scope_struct_12_genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct_12_genexpr #define __pyx_type_4cuda_6cudart___pyx_scope_struct_13_genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct_13_genexpr #define __pyx_type_4cuda_6cudart___pyx_scope_struct_14_genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct_14_genexpr #define __pyx_type_4cuda_6cudart___pyx_scope_struct_15_genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct_15_genexpr #define __pyx_type_4cuda_6cudart___pyx_scope_struct_16_genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct_16_genexpr #define __pyx_type_4cuda_6cudart___pyx_scope_struct_17_genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct_17_genexpr #define __pyx_type_4cuda_6cudart___pyx_scope_struct_18_genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct_18_genexpr #define __pyx_type_4cuda_6cudart___pyx_scope_struct_19_genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct_19_genexpr #define __pyx_type_4cuda_6cudart___pyx_scope_struct_20_genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct_20_genexpr #define __pyx_type_4cuda_6cudart___pyx_scope_struct_21_genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct_21_genexpr #define __pyx_type_4cuda_6cudart___pyx_scope_struct_22_genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct_22_genexpr #define __pyx_type_4cuda_6cudart___pyx_scope_struct_23_genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct_23_genexpr #define __pyx_type_4cuda_6cudart___pyx_scope_struct_24_genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct_24_genexpr #define __pyx_type_4cuda_6cudart___pyx_scope_struct_25_genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct_25_genexpr #define __pyx_type_4cuda_6cudart___pyx_scope_struct_26_genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct_26_genexpr #define __pyx_type_4cuda_6cudart___pyx_scope_struct_27_genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct_27_genexpr #define __pyx_type_4cuda_6cudart___pyx_scope_struct_28_genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct_28_genexpr #define __pyx_type_4cuda_6cudart___pyx_scope_struct_29_genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct_29_genexpr #define __pyx_type_4cuda_6cudart___pyx_scope_struct_30_genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct_30_genexpr #define __pyx_type_4cuda_6cudart___pyx_scope_struct_31_genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct_31_genexpr #define __pyx_type_4cuda_6cudart___pyx_scope_struct_32_genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct_32_genexpr #define __pyx_type_4cuda_6cudart___pyx_scope_struct_33_genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct_33_genexpr #define __pyx_type_4cuda_6cudart___pyx_scope_struct_34_genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct_34_genexpr #define __pyx_type_4cuda_6cudart___pyx_scope_struct_35_genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct_35_genexpr #define __pyx_type_4cuda_6cudart___pyx_scope_struct_36_genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct_36_genexpr #define __pyx_type_4cuda_6cudart___pyx_scope_struct_37_genexpr __pyx_mstate_global->__pyx_type_4cuda_6cudart___pyx_scope_struct_37_genexpr #endif #define __pyx_ptype_4cuda_6cudart_cudaArray_t __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaArray_t #define __pyx_ptype_4cuda_6cudart_cudaArray_const_t __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaArray_const_t #define __pyx_ptype_4cuda_6cudart_cudaMipmappedArray_t __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaMipmappedArray_t #define __pyx_ptype_4cuda_6cudart_cudaMipmappedArray_const_t __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaMipmappedArray_const_t #define __pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t #define __pyx_ptype_4cuda_6cudart_cudaExternalMemory_t __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaExternalMemory_t #define __pyx_ptype_4cuda_6cudart_cudaExternalSemaphore_t __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaExternalSemaphore_t #define __pyx_ptype_4cuda_6cudart_cudaKernel_t __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaKernel_t #define __pyx_ptype_4cuda_6cudart_cudaGraphDeviceNode_t __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaGraphDeviceNode_t #define __pyx_ptype_4cuda_6cudart_cudaAsyncCallbackHandle_t __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaAsyncCallbackHandle_t #define __pyx_ptype_4cuda_6cudart_EGLImageKHR __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_EGLImageKHR #define __pyx_ptype_4cuda_6cudart_EGLStreamKHR __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_EGLStreamKHR #define __pyx_ptype_4cuda_6cudart_EGLSyncKHR __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_EGLSyncKHR #define __pyx_ptype_4cuda_6cudart_cudaHostFn_t __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaHostFn_t #define __pyx_ptype_4cuda_6cudart_cudaAsyncCallback __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaAsyncCallback #define __pyx_ptype_4cuda_6cudart_cudaStreamCallback_t __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaStreamCallback_t #define __pyx_ptype_4cuda_6cudart_dim3 __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_dim3 #define __pyx_ptype_4cuda_6cudart_cudaChannelFormatDesc __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaChannelFormatDesc #define __pyx_ptype_4cuda_6cudart_anon_struct0 __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_anon_struct0 #define __pyx_ptype_4cuda_6cudart_cudaArraySparseProperties __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaArraySparseProperties #define __pyx_ptype_4cuda_6cudart_cudaArrayMemoryRequirements __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaArrayMemoryRequirements #define __pyx_ptype_4cuda_6cudart_cudaPitchedPtr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaPitchedPtr #define __pyx_ptype_4cuda_6cudart_cudaExtent __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaExtent #define __pyx_ptype_4cuda_6cudart_cudaPos __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaPos #define __pyx_ptype_4cuda_6cudart_cudaMemcpy3DParms __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaMemcpy3DParms #define __pyx_ptype_4cuda_6cudart_cudaMemcpyNodeParams __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaMemcpyNodeParams #define __pyx_ptype_4cuda_6cudart_cudaMemcpy3DPeerParms __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaMemcpy3DPeerParms #define __pyx_ptype_4cuda_6cudart_cudaMemsetParams __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaMemsetParams #define __pyx_ptype_4cuda_6cudart_cudaMemsetParamsV2 __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaMemsetParamsV2 #define __pyx_ptype_4cuda_6cudart_cudaAccessPolicyWindow __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaAccessPolicyWindow #define __pyx_ptype_4cuda_6cudart_cudaHostNodeParams __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaHostNodeParams #define __pyx_ptype_4cuda_6cudart_cudaHostNodeParamsV2 __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaHostNodeParamsV2 #define __pyx_ptype_4cuda_6cudart_anon_struct1 __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_anon_struct1 #define __pyx_ptype_4cuda_6cudart_anon_struct2 __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_anon_struct2 #define __pyx_ptype_4cuda_6cudart_anon_struct3 __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_anon_struct3 #define __pyx_ptype_4cuda_6cudart_anon_struct4 __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_anon_struct4 #define __pyx_ptype_4cuda_6cudart_anon_union0 __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_anon_union0 #define __pyx_ptype_4cuda_6cudart_cudaResourceDesc __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaResourceDesc #define __pyx_ptype_4cuda_6cudart_cudaResourceViewDesc __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaResourceViewDesc #define __pyx_ptype_4cuda_6cudart_cudaPointerAttributes __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaPointerAttributes #define __pyx_ptype_4cuda_6cudart_cudaFuncAttributes __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaFuncAttributes #define __pyx_ptype_4cuda_6cudart_cudaMemLocation __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaMemLocation #define __pyx_ptype_4cuda_6cudart_cudaMemAccessDesc __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaMemAccessDesc #define __pyx_ptype_4cuda_6cudart_cudaMemPoolProps __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaMemPoolProps #define __pyx_ptype_4cuda_6cudart_cudaMemPoolPtrExportData __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaMemPoolPtrExportData #define __pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParams __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParams #define __pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParamsV2 __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParamsV2 #define __pyx_ptype_4cuda_6cudart_cudaMemFreeNodeParams __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaMemFreeNodeParams #define __pyx_ptype_4cuda_6cudart_CUuuid_st __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_CUuuid_st #define __pyx_ptype_4cuda_6cudart_cudaDeviceProp __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaDeviceProp #define __pyx_ptype_4cuda_6cudart_cudaIpcEventHandle_st __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaIpcEventHandle_st #define __pyx_ptype_4cuda_6cudart_cudaIpcMemHandle_st __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaIpcMemHandle_st #define __pyx_ptype_4cuda_6cudart_cudaMemFabricHandle_st __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaMemFabricHandle_st #define __pyx_ptype_4cuda_6cudart_anon_struct5 __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_anon_struct5 #define __pyx_ptype_4cuda_6cudart_anon_union1 __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_anon_union1 #define __pyx_ptype_4cuda_6cudart_cudaExternalMemoryHandleDesc __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaExternalMemoryHandleDesc #define __pyx_ptype_4cuda_6cudart_cudaExternalMemoryBufferDesc __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaExternalMemoryBufferDesc #define __pyx_ptype_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc #define __pyx_ptype_4cuda_6cudart_anon_struct6 __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_anon_struct6 #define __pyx_ptype_4cuda_6cudart_anon_union2 __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_anon_union2 #define __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreHandleDesc __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreHandleDesc #define __pyx_ptype_4cuda_6cudart_anon_struct13 __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_anon_struct13 #define __pyx_ptype_4cuda_6cudart_anon_union5 __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_anon_union5 #define __pyx_ptype_4cuda_6cudart_anon_struct14 __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_anon_struct14 #define __pyx_ptype_4cuda_6cudart_anon_struct15 __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_anon_struct15 #define __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalParams __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalParams #define __pyx_ptype_4cuda_6cudart_anon_struct16 __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_anon_struct16 #define __pyx_ptype_4cuda_6cudart_anon_union6 __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_anon_union6 #define __pyx_ptype_4cuda_6cudart_anon_struct17 __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_anon_struct17 #define __pyx_ptype_4cuda_6cudart_anon_struct18 __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_anon_struct18 #define __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitParams __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitParams #define __pyx_ptype_4cuda_6cudart_cudaKernelNodeParams __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaKernelNodeParams #define __pyx_ptype_4cuda_6cudart_cudaKernelNodeParamsV2 __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaKernelNodeParamsV2 #define __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams #define __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 #define __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams #define __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 #define __pyx_ptype_4cuda_6cudart_cudaConditionalNodeParams __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaConditionalNodeParams #define __pyx_ptype_4cuda_6cudart_cudaChildGraphNodeParams __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaChildGraphNodeParams #define __pyx_ptype_4cuda_6cudart_cudaEventRecordNodeParams __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaEventRecordNodeParams #define __pyx_ptype_4cuda_6cudart_cudaEventWaitNodeParams __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaEventWaitNodeParams #define __pyx_ptype_4cuda_6cudart_cudaGraphNodeParams __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaGraphNodeParams #define __pyx_ptype_4cuda_6cudart_cudaGraphEdgeData_st __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaGraphEdgeData_st #define __pyx_ptype_4cuda_6cudart_cudaGraphInstantiateParams_st __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaGraphInstantiateParams_st #define __pyx_ptype_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st #define __pyx_ptype_4cuda_6cudart_anon_struct19 __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_anon_struct19 #define __pyx_ptype_4cuda_6cudart_anon_union8 __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_anon_union8 #define __pyx_ptype_4cuda_6cudart_cudaGraphKernelNodeUpdate __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaGraphKernelNodeUpdate #define __pyx_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st #define __pyx_ptype_4cuda_6cudart_anon_struct20 __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_anon_struct20 #define __pyx_ptype_4cuda_6cudart_anon_struct21 __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_anon_struct21 #define __pyx_ptype_4cuda_6cudart_anon_struct22 __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_anon_struct22 #define __pyx_ptype_4cuda_6cudart_anon_struct23 __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_anon_struct23 #define __pyx_ptype_4cuda_6cudart_cudaLaunchAttributeValue __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaLaunchAttributeValue #define __pyx_ptype_4cuda_6cudart_cudaLaunchAttribute_st __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaLaunchAttribute_st #define __pyx_ptype_4cuda_6cudart_anon_struct24 __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_anon_struct24 #define __pyx_ptype_4cuda_6cudart_anon_union9 __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_anon_union9 #define __pyx_ptype_4cuda_6cudart_cudaAsyncNotificationInfo __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaAsyncNotificationInfo #define __pyx_ptype_4cuda_6cudart_cudaTextureDesc __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaTextureDesc #define __pyx_ptype_4cuda_6cudart_cudaEglPlaneDesc_st __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaEglPlaneDesc_st #define __pyx_ptype_4cuda_6cudart_anon_union10 __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_anon_union10 #define __pyx_ptype_4cuda_6cudart_cudaEglFrame_st __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaEglFrame_st #define __pyx_ptype_4cuda_6cudart_CUuuid __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_CUuuid #define __pyx_ptype_4cuda_6cudart_cudaUUID_t __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaUUID_t #define __pyx_ptype_4cuda_6cudart_cudaIpcEventHandle_t __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaIpcEventHandle_t #define __pyx_ptype_4cuda_6cudart_cudaIpcMemHandle_t __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaIpcMemHandle_t #define __pyx_ptype_4cuda_6cudart_cudaMemFabricHandle_t __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaMemFabricHandle_t #define __pyx_ptype_4cuda_6cudart_cudaGraphEdgeData __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaGraphEdgeData #define __pyx_ptype_4cuda_6cudart_cudaGraphInstantiateParams __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaGraphInstantiateParams #define __pyx_ptype_4cuda_6cudart_cudaGraphExecUpdateResultInfo __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaGraphExecUpdateResultInfo #define __pyx_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap #define __pyx_ptype_4cuda_6cudart_cudaLaunchAttribute __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaLaunchAttribute #define __pyx_ptype_4cuda_6cudart_cudaAsyncNotificationInfo_t __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaAsyncNotificationInfo_t #define __pyx_ptype_4cuda_6cudart_cudaStreamAttrValue __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaStreamAttrValue #define __pyx_ptype_4cuda_6cudart_cudaKernelNodeAttrValue __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaKernelNodeAttrValue #define __pyx_ptype_4cuda_6cudart_cudaEglPlaneDesc __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaEglPlaneDesc #define __pyx_ptype_4cuda_6cudart_cudaEglFrame __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaEglFrame #define __pyx_ptype_4cuda_6cudart_cudaStream_t __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaStream_t #define __pyx_ptype_4cuda_6cudart_cudaEvent_t __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaEvent_t #define __pyx_ptype_4cuda_6cudart_cudaGraph_t __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaGraph_t #define __pyx_ptype_4cuda_6cudart_cudaGraphNode_t __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaGraphNode_t #define __pyx_ptype_4cuda_6cudart_cudaUserObject_t __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaUserObject_t #define __pyx_ptype_4cuda_6cudart_cudaFunction_t __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaFunction_t #define __pyx_ptype_4cuda_6cudart_cudaMemPool_t __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaMemPool_t #define __pyx_ptype_4cuda_6cudart_cudaGraphExec_t __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaGraphExec_t #define __pyx_ptype_4cuda_6cudart_cudaEglStreamConnection __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaEglStreamConnection #define __pyx_ptype_4cuda_6cudart_cudaGraphConditionalHandle __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaGraphConditionalHandle #define __pyx_ptype_4cuda_6cudart_cudaSurfaceObject_t __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaSurfaceObject_t #define __pyx_ptype_4cuda_6cudart_cudaTextureObject_t __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_cudaTextureObject_t #define __pyx_ptype_4cuda_6cudart_GLenum __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_GLenum #define __pyx_ptype_4cuda_6cudart_GLuint __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_GLuint #define __pyx_ptype_4cuda_6cudart_EGLint __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_EGLint #define __pyx_ptype_4cuda_6cudart_VdpDevice __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_VdpDevice #define __pyx_ptype_4cuda_6cudart_VdpGetProcAddress __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_VdpGetProcAddress #define __pyx_ptype_4cuda_6cudart_VdpVideoSurface __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_VdpVideoSurface #define __pyx_ptype_4cuda_6cudart_VdpOutputSurface __pyx_mstate_global->__pyx_ptype_4cuda_6cudart_VdpOutputSurface #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct__genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct__genexpr #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct_1_genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_1_genexpr #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct_2_genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_2_genexpr #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct_3_genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_3_genexpr #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct_4_genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_4_genexpr #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct_5_genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_5_genexpr #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct_6_genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_6_genexpr #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct_7_genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_7_genexpr #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct_8_genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_8_genexpr #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct_9_genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_9_genexpr #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct_10_genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_10_genexpr #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct_11_genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_11_genexpr #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct_12_genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_12_genexpr #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct_13_genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_13_genexpr #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct_14_genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_14_genexpr #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct_15_genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_15_genexpr #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct_16_genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_16_genexpr #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct_17_genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_17_genexpr #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct_18_genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_18_genexpr #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct_19_genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_19_genexpr #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct_20_genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_20_genexpr #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct_21_genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_21_genexpr #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct_22_genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_22_genexpr #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct_23_genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_23_genexpr #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct_24_genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_24_genexpr #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct_25_genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_25_genexpr #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct_26_genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_26_genexpr #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct_27_genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_27_genexpr #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct_28_genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_28_genexpr #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct_29_genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_29_genexpr #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct_30_genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_30_genexpr #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct_31_genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_31_genexpr #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct_32_genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_32_genexpr #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct_33_genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_33_genexpr #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct_34_genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_34_genexpr #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct_35_genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_35_genexpr #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct_36_genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_36_genexpr #define __pyx_ptype_4cuda_6cudart___pyx_scope_struct_37_genexpr __pyx_mstate_global->__pyx_ptype_4cuda_6cudart___pyx_scope_struct_37_genexpr #define __pyx_kp_u_ __pyx_mstate_global->__pyx_kp_u_ #define __pyx_n_s_Any __pyx_mstate_global->__pyx_n_s_Any #define __pyx_kp_u_Argument_attributes_is_not_insta __pyx_mstate_global->__pyx_kp_u_Argument_attributes_is_not_insta #define __pyx_kp_u_Argument_conn_is_not_instance_of __pyx_mstate_global->__pyx_kp_u_Argument_conn_is_not_instance_of #define __pyx_kp_u_Argument_dataSizes_is_not_instan __pyx_mstate_global->__pyx_kp_u_Argument_dataSizes_is_not_instan #define __pyx_kp_u_Argument_dependencies_is_not_ins __pyx_mstate_global->__pyx_kp_u_Argument_dependencies_is_not_ins #define __pyx_kp_u_Argument_dependencyData_is_not_i __pyx_mstate_global->__pyx_kp_u_Argument_dependencyData_is_not_i #define __pyx_kp_u_Argument_descList_is_not_instanc __pyx_mstate_global->__pyx_kp_u_Argument_descList_is_not_instanc #define __pyx_kp_u_Argument_edgeData_is_not_instanc __pyx_mstate_global->__pyx_kp_u_Argument_edgeData_is_not_instanc #define __pyx_kp_u_Argument_extSemArray_is_not_inst __pyx_mstate_global->__pyx_kp_u_Argument_extSemArray_is_not_inst #define __pyx_kp_u_Argument_from__is_not_instance_o __pyx_mstate_global->__pyx_kp_u_Argument_from__is_not_instance_o #define __pyx_kp_u_Argument_pCudaResource_is_not_in __pyx_mstate_global->__pyx_kp_u_Argument_pCudaResource_is_not_in #define __pyx_kp_u_Argument_pDependencies_is_not_in __pyx_mstate_global->__pyx_kp_u_Argument_pDependencies_is_not_in #define __pyx_kp_u_Argument_pStream_is_not_instance __pyx_mstate_global->__pyx_kp_u_Argument_pStream_is_not_instance #define __pyx_kp_u_Argument_paramsArray_is_not_inst __pyx_mstate_global->__pyx_kp_u_Argument_paramsArray_is_not_inst #define __pyx_kp_u_Argument_paramsArray_is_not_inst_2 __pyx_mstate_global->__pyx_kp_u_Argument_paramsArray_is_not_inst_2 #define __pyx_kp_u_Argument_resources_is_not_instan __pyx_mstate_global->__pyx_kp_u_Argument_resources_is_not_instan #define __pyx_kp_u_Argument_to_is_not_instance_of_t __pyx_mstate_global->__pyx_kp_u_Argument_to_is_not_instance_of_t #define __pyx_kp_u_Argument_vdpGetProcAddress_is_no __pyx_mstate_global->__pyx_kp_u_Argument_vdpGetProcAddress_is_no #define __pyx_n_s_CUDART_API_VERSION __pyx_mstate_global->__pyx_n_s_CUDART_API_VERSION #define __pyx_n_s_CUDART_VERSION __pyx_mstate_global->__pyx_n_s_CUDART_VERSION #define __pyx_n_s_CUDA_C_16BF __pyx_mstate_global->__pyx_n_s_CUDA_C_16BF #define __pyx_n_s_CUDA_C_16F __pyx_mstate_global->__pyx_n_s_CUDA_C_16F #define __pyx_n_s_CUDA_C_16I __pyx_mstate_global->__pyx_n_s_CUDA_C_16I #define __pyx_n_s_CUDA_C_16U __pyx_mstate_global->__pyx_n_s_CUDA_C_16U #define __pyx_n_s_CUDA_C_32F __pyx_mstate_global->__pyx_n_s_CUDA_C_32F #define __pyx_n_s_CUDA_C_32I __pyx_mstate_global->__pyx_n_s_CUDA_C_32I #define __pyx_n_s_CUDA_C_32U __pyx_mstate_global->__pyx_n_s_CUDA_C_32U #define __pyx_n_s_CUDA_C_4I __pyx_mstate_global->__pyx_n_s_CUDA_C_4I #define __pyx_n_s_CUDA_C_4U __pyx_mstate_global->__pyx_n_s_CUDA_C_4U #define __pyx_n_s_CUDA_C_64F __pyx_mstate_global->__pyx_n_s_CUDA_C_64F #define __pyx_n_s_CUDA_C_64I __pyx_mstate_global->__pyx_n_s_CUDA_C_64I #define __pyx_n_s_CUDA_C_64U __pyx_mstate_global->__pyx_n_s_CUDA_C_64U #define __pyx_n_s_CUDA_C_8I __pyx_mstate_global->__pyx_n_s_CUDA_C_8I #define __pyx_n_s_CUDA_C_8U __pyx_mstate_global->__pyx_n_s_CUDA_C_8U #define __pyx_kp_s_CUDA_EGL_Color_Format_The_diffe __pyx_mstate_global->__pyx_kp_s_CUDA_EGL_Color_Format_The_diffe #define __pyx_n_s_CUDA_EGL_MAX_PLANES __pyx_mstate_global->__pyx_n_s_CUDA_EGL_MAX_PLANES #define __pyx_kp_s_CUDA_EglFrame_type_array_or_poi __pyx_mstate_global->__pyx_kp_s_CUDA_EglFrame_type_array_or_poi #define __pyx_kp_s_CUDA_GL_Map_Flags __pyx_mstate_global->__pyx_kp_s_CUDA_GL_Map_Flags #define __pyx_kp_s_CUDA_GPUDirect_RDMA_flush_write __pyx_mstate_global->__pyx_kp_s_CUDA_GPUDirect_RDMA_flush_write #define __pyx_kp_s_CUDA_GPUDirect_RDMA_flush_write_2 __pyx_mstate_global->__pyx_kp_s_CUDA_GPUDirect_RDMA_flush_write_2 #define __pyx_kp_s_CUDA_GPUDirect_RDMA_flush_write_3 __pyx_mstate_global->__pyx_kp_s_CUDA_GPUDirect_RDMA_flush_write_3 #define __pyx_kp_s_CUDA_GPUDirect_RDMA_flush_write_4 __pyx_mstate_global->__pyx_kp_s_CUDA_GPUDirect_RDMA_flush_write_4 #define __pyx_kp_s_CUDA_Graph_Update_error_types __pyx_mstate_global->__pyx_kp_s_CUDA_Graph_Update_error_types #define __pyx_kp_s_CUDA_Graph_debug_write_options __pyx_mstate_global->__pyx_kp_s_CUDA_Graph_debug_write_options #define __pyx_kp_s_CUDA_Graph_node_types __pyx_mstate_global->__pyx_kp_s_CUDA_Graph_node_types #define __pyx_n_s_CUDA_IPC_HANDLE_SIZE __pyx_mstate_global->__pyx_n_s_CUDA_IPC_HANDLE_SIZE #define __pyx_kp_s_CUDA_Limits __pyx_mstate_global->__pyx_kp_s_CUDA_Limits #define __pyx_kp_s_CUDA_Memory_Advise_values __pyx_mstate_global->__pyx_kp_s_CUDA_Memory_Advise_values #define __pyx_n_s_CUDA_R_16BF __pyx_mstate_global->__pyx_n_s_CUDA_R_16BF #define __pyx_n_s_CUDA_R_16F __pyx_mstate_global->__pyx_n_s_CUDA_R_16F #define __pyx_n_s_CUDA_R_16I __pyx_mstate_global->__pyx_n_s_CUDA_R_16I #define __pyx_n_s_CUDA_R_16U __pyx_mstate_global->__pyx_n_s_CUDA_R_16U #define __pyx_n_s_CUDA_R_32F __pyx_mstate_global->__pyx_n_s_CUDA_R_32F #define __pyx_n_s_CUDA_R_32I __pyx_mstate_global->__pyx_n_s_CUDA_R_32I #define __pyx_n_s_CUDA_R_32U __pyx_mstate_global->__pyx_n_s_CUDA_R_32U #define __pyx_n_s_CUDA_R_4I __pyx_mstate_global->__pyx_n_s_CUDA_R_4I #define __pyx_n_s_CUDA_R_4U __pyx_mstate_global->__pyx_n_s_CUDA_R_4U #define __pyx_n_s_CUDA_R_64F __pyx_mstate_global->__pyx_n_s_CUDA_R_64F #define __pyx_n_s_CUDA_R_64I __pyx_mstate_global->__pyx_n_s_CUDA_R_64I #define __pyx_n_s_CUDA_R_64U __pyx_mstate_global->__pyx_n_s_CUDA_R_64U #define __pyx_n_s_CUDA_R_8F_E4M3 __pyx_mstate_global->__pyx_n_s_CUDA_R_8F_E4M3 #define __pyx_n_s_CUDA_R_8F_E5M2 __pyx_mstate_global->__pyx_n_s_CUDA_R_8F_E5M2 #define __pyx_n_s_CUDA_R_8I __pyx_mstate_global->__pyx_n_s_CUDA_R_8I #define __pyx_n_s_CUDA_R_8U __pyx_mstate_global->__pyx_n_s_CUDA_R_8U #define __pyx_kp_s_CUDA_Surface_boundary_modes __pyx_mstate_global->__pyx_kp_s_CUDA_Surface_boundary_modes #define __pyx_kp_s_CUDA_Surface_format_modes __pyx_mstate_global->__pyx_kp_s_CUDA_Surface_format_modes #define __pyx_kp_s_CUDA_conditional_node_types __pyx_mstate_global->__pyx_kp_s_CUDA_conditional_node_types #define __pyx_kp_s_CUDA_cooperative_group_scope __pyx_mstate_global->__pyx_kp_s_CUDA_cooperative_group_scope #define __pyx_kp_s_CUDA_device_NUMA_config __pyx_mstate_global->__pyx_kp_s_CUDA_device_NUMA_config #define __pyx_kp_s_CUDA_device_P2P_attributes __pyx_mstate_global->__pyx_kp_s_CUDA_device_P2P_attributes #define __pyx_kp_s_CUDA_device_attributes __pyx_mstate_global->__pyx_kp_s_CUDA_device_attributes #define __pyx_kp_s_CUDA_device_compute_modes __pyx_mstate_global->__pyx_kp_s_CUDA_device_compute_modes #define __pyx_kp_s_CUDA_devices_corresponding_to_t __pyx_mstate_global->__pyx_kp_s_CUDA_devices_corresponding_to_t #define __pyx_kp_s_CUDA_function_attributes_that_c __pyx_mstate_global->__pyx_kp_s_CUDA_function_attributes_that_c #define __pyx_kp_s_CUDA_function_cache_configurati __pyx_mstate_global->__pyx_kp_s_CUDA_function_cache_configurati #define __pyx_kp_s_CUDA_graphics_interop_array_ind __pyx_mstate_global->__pyx_kp_s_CUDA_graphics_interop_array_ind #define __pyx_kp_s_CUDA_graphics_interop_map_flags __pyx_mstate_global->__pyx_kp_s_CUDA_graphics_interop_map_flags #define __pyx_kp_s_CUDA_graphics_interop_register __pyx_mstate_global->__pyx_kp_s_CUDA_graphics_interop_register #define __pyx_kp_s_CUDA_memory_copy_types __pyx_mstate_global->__pyx_kp_s_CUDA_memory_copy_types #define __pyx_kp_s_CUDA_memory_pool_attributes __pyx_mstate_global->__pyx_kp_s_CUDA_memory_pool_attributes #define __pyx_kp_s_CUDA_memory_types __pyx_mstate_global->__pyx_kp_s_CUDA_memory_types #define __pyx_kp_s_CUDA_range_attributes __pyx_mstate_global->__pyx_kp_s_CUDA_range_attributes #define __pyx_kp_s_CUDA_resource_types __pyx_mstate_global->__pyx_kp_s_CUDA_resource_types #define __pyx_kp_s_CUDA_shared_memory_configuratio __pyx_mstate_global->__pyx_kp_s_CUDA_shared_memory_configuratio #define __pyx_kp_s_CUDA_texture_address_modes __pyx_mstate_global->__pyx_kp_s_CUDA_texture_address_modes #define __pyx_kp_s_CUDA_texture_filter_modes __pyx_mstate_global->__pyx_kp_s_CUDA_texture_filter_modes #define __pyx_kp_s_CUDA_texture_read_modes __pyx_mstate_global->__pyx_kp_s_CUDA_texture_read_modes #define __pyx_kp_s_CUDA_texture_resource_view_form __pyx_mstate_global->__pyx_kp_s_CUDA_texture_resource_view_form #define __pyx_n_s_CUuuid __pyx_mstate_global->__pyx_n_s_CUuuid #define __pyx_n_s_CUuuid_st __pyx_mstate_global->__pyx_n_s_CUuuid_st #define __pyx_n_s_CUuuid_st___reduce_cython __pyx_mstate_global->__pyx_n_s_CUuuid_st___reduce_cython #define __pyx_n_s_CUuuid_st___setstate_cython __pyx_mstate_global->__pyx_n_s_CUuuid_st___setstate_cython #define __pyx_n_s_CUuuid_st_getPtr __pyx_mstate_global->__pyx_n_s_CUuuid_st_getPtr #define __pyx_kp_s_Channel_format_kind __pyx_mstate_global->__pyx_kp_s_Channel_format_kind #define __pyx_kp_s_Cluster_scheduling_policies_The __pyx_mstate_global->__pyx_kp_s_Cluster_scheduling_policies_The #define __pyx_kp_s_Defines_the_allocation_types_av __pyx_mstate_global->__pyx_kp_s_Defines_the_allocation_types_av #define __pyx_kp_u_ECCEnabled __pyx_mstate_global->__pyx_kp_u_ECCEnabled #define __pyx_n_s_ECCEnabled_2 __pyx_mstate_global->__pyx_n_s_ECCEnabled_2 #define __pyx_kp_u_ECCEnabled_ValueError __pyx_mstate_global->__pyx_kp_u_ECCEnabled_ValueError #define __pyx_kp_u_EGLImageKHR __pyx_mstate_global->__pyx_kp_u_EGLImageKHR #define __pyx_n_s_EGLImageKHR_2 __pyx_mstate_global->__pyx_n_s_EGLImageKHR_2 #define __pyx_n_s_EGLImageKHR___reduce_cython __pyx_mstate_global->__pyx_n_s_EGLImageKHR___reduce_cython #define __pyx_n_s_EGLImageKHR___setstate_cython __pyx_mstate_global->__pyx_n_s_EGLImageKHR___setstate_cython #define __pyx_n_s_EGLImageKHR_getPtr __pyx_mstate_global->__pyx_n_s_EGLImageKHR_getPtr #define __pyx_kp_u_EGLStreamKHR __pyx_mstate_global->__pyx_kp_u_EGLStreamKHR #define __pyx_n_s_EGLStreamKHR_2 __pyx_mstate_global->__pyx_n_s_EGLStreamKHR_2 #define __pyx_n_s_EGLStreamKHR___reduce_cython __pyx_mstate_global->__pyx_n_s_EGLStreamKHR___reduce_cython #define __pyx_n_s_EGLStreamKHR___setstate_cython __pyx_mstate_global->__pyx_n_s_EGLStreamKHR___setstate_cython #define __pyx_n_s_EGLStreamKHR_getPtr __pyx_mstate_global->__pyx_n_s_EGLStreamKHR_getPtr #define __pyx_kp_u_EGLSyncKHR __pyx_mstate_global->__pyx_kp_u_EGLSyncKHR #define __pyx_n_s_EGLSyncKHR_2 __pyx_mstate_global->__pyx_n_s_EGLSyncKHR_2 #define __pyx_n_s_EGLSyncKHR___reduce_cython __pyx_mstate_global->__pyx_n_s_EGLSyncKHR___reduce_cython #define __pyx_n_s_EGLSyncKHR___setstate_cython __pyx_mstate_global->__pyx_n_s_EGLSyncKHR___setstate_cython #define __pyx_n_s_EGLSyncKHR_getPtr __pyx_mstate_global->__pyx_n_s_EGLSyncKHR_getPtr #define __pyx_kp_u_EGLint __pyx_mstate_global->__pyx_kp_u_EGLint #define __pyx_n_s_EGLint_2 __pyx_mstate_global->__pyx_n_s_EGLint_2 #define __pyx_n_s_EGLint___reduce_cython __pyx_mstate_global->__pyx_n_s_EGLint___reduce_cython #define __pyx_n_s_EGLint___setstate_cython __pyx_mstate_global->__pyx_n_s_EGLint___setstate_cython #define __pyx_n_s_EGLint_getPtr __pyx_mstate_global->__pyx_n_s_EGLint_getPtr #define __pyx_kp_s_Enum_for_status_from_obtaining __pyx_mstate_global->__pyx_kp_s_Enum_for_status_from_obtaining #define __pyx_kp_s_External_memory_handle_types __pyx_mstate_global->__pyx_kp_s_External_memory_handle_types #define __pyx_kp_s_External_semaphore_handle_types __pyx_mstate_global->__pyx_kp_s_External_semaphore_handle_types #define __pyx_kp_u_Failed_to_allocate_length_x_size __pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size #define __pyx_kp_s_Flags_for_instantiating_a_graph __pyx_mstate_global->__pyx_kp_s_Flags_for_instantiating_a_graph #define __pyx_kp_s_Flags_for_py_obj_cudaStreamUpda __pyx_mstate_global->__pyx_kp_s_Flags_for_py_obj_cudaStreamUpda #define __pyx_kp_s_Flags_for_retaining_user_object __pyx_mstate_global->__pyx_kp_s_Flags_for_retaining_user_object #define __pyx_kp_s_Flags_for_specifying_particular __pyx_mstate_global->__pyx_kp_s_Flags_for_specifying_particular #define __pyx_kp_s_Flags_for_user_objects_for_grap __pyx_mstate_global->__pyx_kp_s_Flags_for_user_objects_for_grap #define __pyx_kp_s_Flags_to_specify_search_options __pyx_mstate_global->__pyx_kp_s_Flags_to_specify_search_options #define __pyx_kp_u_GLenum __pyx_mstate_global->__pyx_kp_u_GLenum #define __pyx_n_s_GLenum_2 __pyx_mstate_global->__pyx_n_s_GLenum_2 #define __pyx_n_s_GLenum___reduce_cython __pyx_mstate_global->__pyx_n_s_GLenum___reduce_cython #define __pyx_n_s_GLenum___setstate_cython __pyx_mstate_global->__pyx_n_s_GLenum___setstate_cython #define __pyx_n_s_GLenum_getPtr __pyx_mstate_global->__pyx_n_s_GLenum_getPtr #define __pyx_kp_u_GLuint __pyx_mstate_global->__pyx_kp_u_GLuint #define __pyx_n_s_GLuint_2 __pyx_mstate_global->__pyx_n_s_GLuint_2 #define __pyx_n_s_GLuint___reduce_cython __pyx_mstate_global->__pyx_n_s_GLuint___reduce_cython #define __pyx_n_s_GLuint___setstate_cython __pyx_mstate_global->__pyx_n_s_GLuint___setstate_cython #define __pyx_n_s_GLuint_getPtr __pyx_mstate_global->__pyx_n_s_GLuint_getPtr #define __pyx_kp_s_Graph_instantiation_results __pyx_mstate_global->__pyx_kp_s_Graph_instantiation_results #define __pyx_kp_s_Graph_memory_attributes __pyx_mstate_global->__pyx_kp_s_Graph_memory_attributes #define __pyx_n_s_IndexError __pyx_mstate_global->__pyx_n_s_IndexError #define __pyx_n_s_IntEnum __pyx_mstate_global->__pyx_n_s_IntEnum #define __pyx_kp_s_Launch_attributes_enum_used_as __pyx_mstate_global->__pyx_kp_s_Launch_attributes_enum_used_as #define __pyx_n_s_List __pyx_mstate_global->__pyx_n_s_List #define __pyx_kp_u_List_is_too_small __pyx_mstate_global->__pyx_kp_u_List_is_too_small #define __pyx_n_s_MAJOR_VERSION __pyx_mstate_global->__pyx_n_s_MAJOR_VERSION #define __pyx_n_s_MINOR_VERSION __pyx_mstate_global->__pyx_n_s_MINOR_VERSION #define __pyx_n_s_MemoryError __pyx_mstate_global->__pyx_n_s_MemoryError #define __pyx_kp_s_Memory_Synchronization_Domain_A __pyx_mstate_global->__pyx_kp_s_Memory_Synchronization_Domain_A #define __pyx_n_s_Optional __pyx_mstate_global->__pyx_n_s_Optional #define __pyx_kp_s_Optional_Tuple_cudaExternalSemap __pyx_mstate_global->__pyx_kp_s_Optional_Tuple_cudaExternalSemap #define __pyx_kp_s_Optional_Tuple_cudaExternalSemap_2 __pyx_mstate_global->__pyx_kp_s_Optional_Tuple_cudaExternalSemap_2 #define __pyx_kp_s_Optional_Tuple_cudaExternalSemap_3 __pyx_mstate_global->__pyx_kp_s_Optional_Tuple_cudaExternalSemap_3 #define __pyx_kp_s_Optional_Tuple_cudaGraphEdgeData __pyx_mstate_global->__pyx_kp_s_Optional_Tuple_cudaGraphEdgeData #define __pyx_kp_s_Optional_Tuple_cudaGraphNode_t_L __pyx_mstate_global->__pyx_kp_s_Optional_Tuple_cudaGraphNode_t_L #define __pyx_kp_s_Optional_Tuple_cudaMemAccessDesc __pyx_mstate_global->__pyx_kp_s_Optional_Tuple_cudaMemAccessDesc #define __pyx_kp_s_Optional_Tuple_cudaMemRangeAttri __pyx_mstate_global->__pyx_kp_s_Optional_Tuple_cudaMemRangeAttri #define __pyx_kp_s_Optional_cudaChannelFormatDesc __pyx_mstate_global->__pyx_kp_s_Optional_cudaChannelFormatDesc #define __pyx_kp_s_Optional_cudaDeviceProp __pyx_mstate_global->__pyx_kp_s_Optional_cudaDeviceProp #define __pyx_kp_s_Optional_cudaEglFrame __pyx_mstate_global->__pyx_kp_s_Optional_cudaEglFrame #define __pyx_kp_s_Optional_cudaExternalMemoryBuffe __pyx_mstate_global->__pyx_kp_s_Optional_cudaExternalMemoryBuffe #define __pyx_kp_s_Optional_cudaExternalMemoryHandl __pyx_mstate_global->__pyx_kp_s_Optional_cudaExternalMemoryHandl #define __pyx_kp_s_Optional_cudaExternalMemoryMipma __pyx_mstate_global->__pyx_kp_s_Optional_cudaExternalMemoryMipma #define __pyx_kp_s_Optional_cudaExternalSemaphoreHa __pyx_mstate_global->__pyx_kp_s_Optional_cudaExternalSemaphoreHa #define __pyx_kp_s_Optional_cudaExternalSemaphoreSi __pyx_mstate_global->__pyx_kp_s_Optional_cudaExternalSemaphoreSi #define __pyx_kp_s_Optional_cudaExternalSemaphoreWa __pyx_mstate_global->__pyx_kp_s_Optional_cudaExternalSemaphoreWa #define __pyx_kp_s_Optional_cudaGraphInstantiatePar __pyx_mstate_global->__pyx_kp_s_Optional_cudaGraphInstantiatePar #define __pyx_kp_s_Optional_cudaGraphNodeParams __pyx_mstate_global->__pyx_kp_s_Optional_cudaGraphNodeParams #define __pyx_kp_s_Optional_cudaHostNodeParams __pyx_mstate_global->__pyx_kp_s_Optional_cudaHostNodeParams #define __pyx_kp_s_Optional_cudaKernelNodeAttrValue __pyx_mstate_global->__pyx_kp_s_Optional_cudaKernelNodeAttrValue #define __pyx_kp_s_Optional_cudaKernelNodeParams __pyx_mstate_global->__pyx_kp_s_Optional_cudaKernelNodeParams #define __pyx_kp_s_Optional_cudaMemAllocNodeParams __pyx_mstate_global->__pyx_kp_s_Optional_cudaMemAllocNodeParams #define __pyx_kp_s_Optional_cudaMemLocation __pyx_mstate_global->__pyx_kp_s_Optional_cudaMemLocation #define __pyx_kp_s_Optional_cudaMemPoolProps __pyx_mstate_global->__pyx_kp_s_Optional_cudaMemPoolProps #define __pyx_kp_s_Optional_cudaMemPoolPtrExportDat __pyx_mstate_global->__pyx_kp_s_Optional_cudaMemPoolPtrExportDat #define __pyx_kp_s_Optional_cudaMemcpy3DParms __pyx_mstate_global->__pyx_kp_s_Optional_cudaMemcpy3DParms #define __pyx_kp_s_Optional_cudaMemcpy3DPeerParms __pyx_mstate_global->__pyx_kp_s_Optional_cudaMemcpy3DPeerParms #define __pyx_kp_s_Optional_cudaMemsetParams __pyx_mstate_global->__pyx_kp_s_Optional_cudaMemsetParams #define __pyx_kp_s_Optional_cudaResourceDesc __pyx_mstate_global->__pyx_kp_s_Optional_cudaResourceDesc #define __pyx_kp_s_Optional_cudaResourceViewDesc __pyx_mstate_global->__pyx_kp_s_Optional_cudaResourceViewDesc #define __pyx_kp_s_Optional_cudaStreamAttrValue __pyx_mstate_global->__pyx_kp_s_Optional_cudaStreamAttrValue #define __pyx_kp_s_Optional_cudaTextureDesc __pyx_mstate_global->__pyx_kp_s_Optional_cudaTextureDesc #define __pyx_kp_s_Optional_cudaUUID_t __pyx_mstate_global->__pyx_kp_s_Optional_cudaUUID_t #define __pyx_n_s_OverflowError __pyx_mstate_global->__pyx_n_s_OverflowError #define __pyx_n_s_PATCH_LEVEL __pyx_mstate_global->__pyx_n_s_PATCH_LEVEL #define __pyx_kp_s_Possible_modes_for_stream_captu __pyx_mstate_global->__pyx_kp_s_Possible_modes_for_stream_captu #define __pyx_kp_s_Possible_stream_capture_statuse __pyx_mstate_global->__pyx_kp_s_Possible_stream_capture_statuse #define __pyx_kp_s_Resource_location_flags_sysmem __pyx_mstate_global->__pyx_kp_s_Resource_location_flags_sysmem #define __pyx_n_s_RuntimeError __pyx_mstate_global->__pyx_n_s_RuntimeError #define __pyx_kp_u_Set_device_to_be_used_for_GPU_e __pyx_mstate_global->__pyx_kp_u_Set_device_to_be_used_for_GPU_e #define __pyx_kp_s_Shared_memory_carveout_configur __pyx_mstate_global->__pyx_kp_s_Shared_memory_carveout_configur #define __pyx_kp_s_Specifies_performance_hint_with __pyx_mstate_global->__pyx_kp_s_Specifies_performance_hint_with #define __pyx_kp_s_Specifies_the_field_to_update_w __pyx_mstate_global->__pyx_kp_s_Specifies_the_field_to_update_w #define __pyx_kp_s_Specifies_the_memory_protection __pyx_mstate_global->__pyx_kp_s_Specifies_the_memory_protection #define __pyx_kp_s_Specifies_the_type_of_location __pyx_mstate_global->__pyx_kp_s_Specifies_the_type_of_location #define __pyx_n_s_Tuple __pyx_mstate_global->__pyx_n_s_Tuple #define __pyx_kp_s_Tuple_int_List_int __pyx_mstate_global->__pyx_kp_s_Tuple_int_List_int #define __pyx_n_s_TypeError __pyx_mstate_global->__pyx_n_s_TypeError #define __pyx_kp_s_Type_annotations_that_can_be_ap __pyx_mstate_global->__pyx_kp_s_Type_annotations_that_can_be_ap #define __pyx_kp_s_Types_of_async_notification_tha __pyx_mstate_global->__pyx_kp_s_Types_of_async_notification_tha #define __pyx_kp_u_Unknown_type __pyx_mstate_global->__pyx_kp_u_Unknown_type #define __pyx_n_s_ValueError __pyx_mstate_global->__pyx_n_s_ValueError #define __pyx_kp_u_VdpDevice __pyx_mstate_global->__pyx_kp_u_VdpDevice #define __pyx_n_s_VdpDevice_2 __pyx_mstate_global->__pyx_n_s_VdpDevice_2 #define __pyx_n_s_VdpDevice___reduce_cython __pyx_mstate_global->__pyx_n_s_VdpDevice___reduce_cython #define __pyx_n_s_VdpDevice___setstate_cython __pyx_mstate_global->__pyx_n_s_VdpDevice___setstate_cython #define __pyx_n_s_VdpDevice_getPtr __pyx_mstate_global->__pyx_n_s_VdpDevice_getPtr #define __pyx_kp_u_VdpGetProcAddress __pyx_mstate_global->__pyx_kp_u_VdpGetProcAddress #define __pyx_n_s_VdpGetProcAddress_2 __pyx_mstate_global->__pyx_n_s_VdpGetProcAddress_2 #define __pyx_n_s_VdpGetProcAddress___reduce_cytho __pyx_mstate_global->__pyx_n_s_VdpGetProcAddress___reduce_cytho #define __pyx_n_s_VdpGetProcAddress___setstate_cyt __pyx_mstate_global->__pyx_n_s_VdpGetProcAddress___setstate_cyt #define __pyx_n_s_VdpGetProcAddress_getPtr __pyx_mstate_global->__pyx_n_s_VdpGetProcAddress_getPtr #define __pyx_kp_u_VdpOutputSurface __pyx_mstate_global->__pyx_kp_u_VdpOutputSurface #define __pyx_n_s_VdpOutputSurface_2 __pyx_mstate_global->__pyx_n_s_VdpOutputSurface_2 #define __pyx_n_s_VdpOutputSurface___reduce_cython __pyx_mstate_global->__pyx_n_s_VdpOutputSurface___reduce_cython #define __pyx_n_s_VdpOutputSurface___setstate_cyth __pyx_mstate_global->__pyx_n_s_VdpOutputSurface___setstate_cyth #define __pyx_n_s_VdpOutputSurface_getPtr __pyx_mstate_global->__pyx_n_s_VdpOutputSurface_getPtr #define __pyx_kp_u_VdpVideoSurface __pyx_mstate_global->__pyx_kp_u_VdpVideoSurface #define __pyx_n_s_VdpVideoSurface_2 __pyx_mstate_global->__pyx_n_s_VdpVideoSurface_2 #define __pyx_n_s_VdpVideoSurface___reduce_cython __pyx_mstate_global->__pyx_n_s_VdpVideoSurface___reduce_cython #define __pyx_n_s_VdpVideoSurface___setstate_cytho __pyx_mstate_global->__pyx_n_s_VdpVideoSurface___setstate_cytho #define __pyx_n_s_VdpVideoSurface_getPtr __pyx_mstate_global->__pyx_n_s_VdpVideoSurface_getPtr #define __pyx_kp_b__351 __pyx_mstate_global->__pyx_kp_b__351 #define __pyx_kp_u__400 __pyx_mstate_global->__pyx_kp_u__400 #define __pyx_kp_u__51 __pyx_mstate_global->__pyx_kp_u__51 #define __pyx_kp_u__52 __pyx_mstate_global->__pyx_kp_u__52 #define __pyx_kp_u__62 __pyx_mstate_global->__pyx_kp_u__62 #define __pyx_kp_u__654 __pyx_mstate_global->__pyx_kp_u__654 #define __pyx_n_s__655 __pyx_mstate_global->__pyx_n_s__655 #define __pyx_kp_s__657 __pyx_mstate_global->__pyx_kp_s__657 #define __pyx_n_s__910 __pyx_mstate_global->__pyx_n_s__910 #define __pyx_kp_u_accessDescCount __pyx_mstate_global->__pyx_kp_u_accessDescCount #define __pyx_n_s_accessDescCount_2 __pyx_mstate_global->__pyx_n_s_accessDescCount_2 #define __pyx_kp_u_accessDescCount_ValueError __pyx_mstate_global->__pyx_kp_u_accessDescCount_ValueError #define __pyx_kp_u_accessDescs __pyx_mstate_global->__pyx_kp_u_accessDescs #define __pyx_n_s_accessDescs_2 __pyx_mstate_global->__pyx_n_s_accessDescs_2 #define __pyx_kp_u_accessDescs_ValueError __pyx_mstate_global->__pyx_kp_u_accessDescs_ValueError #define __pyx_kp_u_accessPolicyMaxWindowSize __pyx_mstate_global->__pyx_kp_u_accessPolicyMaxWindowSize #define __pyx_n_s_accessPolicyMaxWindowSize_2 __pyx_mstate_global->__pyx_n_s_accessPolicyMaxWindowSize_2 #define __pyx_kp_u_accessPolicyMaxWindowSize_ValueE __pyx_mstate_global->__pyx_kp_u_accessPolicyMaxWindowSize_ValueE #define __pyx_kp_u_accessPolicyWindow __pyx_mstate_global->__pyx_kp_u_accessPolicyWindow #define __pyx_n_s_accessPolicyWindow_2 __pyx_mstate_global->__pyx_n_s_accessPolicyWindow_2 #define __pyx_kp_u_accessPolicyWindow_ValueError __pyx_mstate_global->__pyx_kp_u_accessPolicyWindow_ValueError #define __pyx_kp_u_addressMode __pyx_mstate_global->__pyx_kp_u_addressMode #define __pyx_n_s_addressMode_2 __pyx_mstate_global->__pyx_n_s_addressMode_2 #define __pyx_kp_u_addressMode_ValueError __pyx_mstate_global->__pyx_kp_u_addressMode_ValueError #define __pyx_n_s_advice __pyx_mstate_global->__pyx_n_s_advice #define __pyx_kp_u_alignment __pyx_mstate_global->__pyx_kp_u_alignment #define __pyx_n_s_alignment_2 __pyx_mstate_global->__pyx_n_s_alignment_2 #define __pyx_kp_u_alignment_ValueError __pyx_mstate_global->__pyx_kp_u_alignment_ValueError #define __pyx_kp_u_alloc __pyx_mstate_global->__pyx_kp_u_alloc #define __pyx_kp_u_allocType __pyx_mstate_global->__pyx_kp_u_allocType #define __pyx_n_s_allocType_2 __pyx_mstate_global->__pyx_n_s_allocType_2 #define __pyx_kp_u_allocType_ValueError __pyx_mstate_global->__pyx_kp_u_allocType_ValueError #define __pyx_n_s_alloc_2 __pyx_mstate_global->__pyx_n_s_alloc_2 #define __pyx_kp_u_alloc_ValueError __pyx_mstate_global->__pyx_kp_u_alloc_ValueError #define __pyx_n_s_anon_struct0 __pyx_mstate_global->__pyx_n_s_anon_struct0 #define __pyx_n_s_anon_struct0___reduce_cython __pyx_mstate_global->__pyx_n_s_anon_struct0___reduce_cython #define __pyx_n_s_anon_struct0___setstate_cython __pyx_mstate_global->__pyx_n_s_anon_struct0___setstate_cython #define __pyx_n_s_anon_struct0_getPtr __pyx_mstate_global->__pyx_n_s_anon_struct0_getPtr #define __pyx_n_s_anon_struct1 __pyx_mstate_global->__pyx_n_s_anon_struct1 #define __pyx_n_s_anon_struct13 __pyx_mstate_global->__pyx_n_s_anon_struct13 #define __pyx_n_s_anon_struct13___reduce_cython __pyx_mstate_global->__pyx_n_s_anon_struct13___reduce_cython #define __pyx_n_s_anon_struct13___setstate_cython __pyx_mstate_global->__pyx_n_s_anon_struct13___setstate_cython #define __pyx_n_s_anon_struct13_getPtr __pyx_mstate_global->__pyx_n_s_anon_struct13_getPtr #define __pyx_n_s_anon_struct14 __pyx_mstate_global->__pyx_n_s_anon_struct14 #define __pyx_n_s_anon_struct14___reduce_cython __pyx_mstate_global->__pyx_n_s_anon_struct14___reduce_cython #define __pyx_n_s_anon_struct14___setstate_cython __pyx_mstate_global->__pyx_n_s_anon_struct14___setstate_cython #define __pyx_n_s_anon_struct14_getPtr __pyx_mstate_global->__pyx_n_s_anon_struct14_getPtr #define __pyx_n_s_anon_struct15 __pyx_mstate_global->__pyx_n_s_anon_struct15 #define __pyx_n_s_anon_struct15___reduce_cython __pyx_mstate_global->__pyx_n_s_anon_struct15___reduce_cython #define __pyx_n_s_anon_struct15___setstate_cython __pyx_mstate_global->__pyx_n_s_anon_struct15___setstate_cython #define __pyx_n_s_anon_struct15_getPtr __pyx_mstate_global->__pyx_n_s_anon_struct15_getPtr #define __pyx_n_s_anon_struct16 __pyx_mstate_global->__pyx_n_s_anon_struct16 #define __pyx_n_s_anon_struct16___reduce_cython __pyx_mstate_global->__pyx_n_s_anon_struct16___reduce_cython #define __pyx_n_s_anon_struct16___setstate_cython __pyx_mstate_global->__pyx_n_s_anon_struct16___setstate_cython #define __pyx_n_s_anon_struct16_getPtr __pyx_mstate_global->__pyx_n_s_anon_struct16_getPtr #define __pyx_n_s_anon_struct17 __pyx_mstate_global->__pyx_n_s_anon_struct17 #define __pyx_n_s_anon_struct17___reduce_cython __pyx_mstate_global->__pyx_n_s_anon_struct17___reduce_cython #define __pyx_n_s_anon_struct17___setstate_cython __pyx_mstate_global->__pyx_n_s_anon_struct17___setstate_cython #define __pyx_n_s_anon_struct17_getPtr __pyx_mstate_global->__pyx_n_s_anon_struct17_getPtr #define __pyx_n_s_anon_struct18 __pyx_mstate_global->__pyx_n_s_anon_struct18 #define __pyx_n_s_anon_struct18___reduce_cython __pyx_mstate_global->__pyx_n_s_anon_struct18___reduce_cython #define __pyx_n_s_anon_struct18___setstate_cython __pyx_mstate_global->__pyx_n_s_anon_struct18___setstate_cython #define __pyx_n_s_anon_struct18_getPtr __pyx_mstate_global->__pyx_n_s_anon_struct18_getPtr #define __pyx_n_s_anon_struct19 __pyx_mstate_global->__pyx_n_s_anon_struct19 #define __pyx_n_s_anon_struct19___reduce_cython __pyx_mstate_global->__pyx_n_s_anon_struct19___reduce_cython #define __pyx_n_s_anon_struct19___setstate_cython __pyx_mstate_global->__pyx_n_s_anon_struct19___setstate_cython #define __pyx_n_s_anon_struct19_getPtr __pyx_mstate_global->__pyx_n_s_anon_struct19_getPtr #define __pyx_n_s_anon_struct1___reduce_cython __pyx_mstate_global->__pyx_n_s_anon_struct1___reduce_cython #define __pyx_n_s_anon_struct1___setstate_cython __pyx_mstate_global->__pyx_n_s_anon_struct1___setstate_cython #define __pyx_n_s_anon_struct1_getPtr __pyx_mstate_global->__pyx_n_s_anon_struct1_getPtr #define __pyx_n_s_anon_struct2 __pyx_mstate_global->__pyx_n_s_anon_struct2 #define __pyx_n_s_anon_struct20 __pyx_mstate_global->__pyx_n_s_anon_struct20 #define __pyx_n_s_anon_struct20___reduce_cython __pyx_mstate_global->__pyx_n_s_anon_struct20___reduce_cython #define __pyx_n_s_anon_struct20___setstate_cython __pyx_mstate_global->__pyx_n_s_anon_struct20___setstate_cython #define __pyx_n_s_anon_struct20_getPtr __pyx_mstate_global->__pyx_n_s_anon_struct20_getPtr #define __pyx_n_s_anon_struct21 __pyx_mstate_global->__pyx_n_s_anon_struct21 #define __pyx_n_s_anon_struct21___reduce_cython __pyx_mstate_global->__pyx_n_s_anon_struct21___reduce_cython #define __pyx_n_s_anon_struct21___setstate_cython __pyx_mstate_global->__pyx_n_s_anon_struct21___setstate_cython #define __pyx_n_s_anon_struct21_getPtr __pyx_mstate_global->__pyx_n_s_anon_struct21_getPtr #define __pyx_n_s_anon_struct22 __pyx_mstate_global->__pyx_n_s_anon_struct22 #define __pyx_n_s_anon_struct22___reduce_cython __pyx_mstate_global->__pyx_n_s_anon_struct22___reduce_cython #define __pyx_n_s_anon_struct22___setstate_cython __pyx_mstate_global->__pyx_n_s_anon_struct22___setstate_cython #define __pyx_n_s_anon_struct22_getPtr __pyx_mstate_global->__pyx_n_s_anon_struct22_getPtr #define __pyx_n_s_anon_struct23 __pyx_mstate_global->__pyx_n_s_anon_struct23 #define __pyx_n_s_anon_struct23___reduce_cython __pyx_mstate_global->__pyx_n_s_anon_struct23___reduce_cython #define __pyx_n_s_anon_struct23___setstate_cython __pyx_mstate_global->__pyx_n_s_anon_struct23___setstate_cython #define __pyx_n_s_anon_struct23_getPtr __pyx_mstate_global->__pyx_n_s_anon_struct23_getPtr #define __pyx_n_s_anon_struct24 __pyx_mstate_global->__pyx_n_s_anon_struct24 #define __pyx_n_s_anon_struct24___reduce_cython __pyx_mstate_global->__pyx_n_s_anon_struct24___reduce_cython #define __pyx_n_s_anon_struct24___setstate_cython __pyx_mstate_global->__pyx_n_s_anon_struct24___setstate_cython #define __pyx_n_s_anon_struct24_getPtr __pyx_mstate_global->__pyx_n_s_anon_struct24_getPtr #define __pyx_n_s_anon_struct2___reduce_cython __pyx_mstate_global->__pyx_n_s_anon_struct2___reduce_cython #define __pyx_n_s_anon_struct2___setstate_cython __pyx_mstate_global->__pyx_n_s_anon_struct2___setstate_cython #define __pyx_n_s_anon_struct2_getPtr __pyx_mstate_global->__pyx_n_s_anon_struct2_getPtr #define __pyx_n_s_anon_struct3 __pyx_mstate_global->__pyx_n_s_anon_struct3 #define __pyx_n_s_anon_struct3___reduce_cython __pyx_mstate_global->__pyx_n_s_anon_struct3___reduce_cython #define __pyx_n_s_anon_struct3___setstate_cython __pyx_mstate_global->__pyx_n_s_anon_struct3___setstate_cython #define __pyx_n_s_anon_struct3_getPtr __pyx_mstate_global->__pyx_n_s_anon_struct3_getPtr #define __pyx_n_s_anon_struct4 __pyx_mstate_global->__pyx_n_s_anon_struct4 #define __pyx_n_s_anon_struct4___reduce_cython __pyx_mstate_global->__pyx_n_s_anon_struct4___reduce_cython #define __pyx_n_s_anon_struct4___setstate_cython __pyx_mstate_global->__pyx_n_s_anon_struct4___setstate_cython #define __pyx_n_s_anon_struct4_getPtr __pyx_mstate_global->__pyx_n_s_anon_struct4_getPtr #define __pyx_n_s_anon_struct5 __pyx_mstate_global->__pyx_n_s_anon_struct5 #define __pyx_n_s_anon_struct5___reduce_cython __pyx_mstate_global->__pyx_n_s_anon_struct5___reduce_cython #define __pyx_n_s_anon_struct5___setstate_cython __pyx_mstate_global->__pyx_n_s_anon_struct5___setstate_cython #define __pyx_n_s_anon_struct5_getPtr __pyx_mstate_global->__pyx_n_s_anon_struct5_getPtr #define __pyx_n_s_anon_struct6 __pyx_mstate_global->__pyx_n_s_anon_struct6 #define __pyx_n_s_anon_struct6___reduce_cython __pyx_mstate_global->__pyx_n_s_anon_struct6___reduce_cython #define __pyx_n_s_anon_struct6___setstate_cython __pyx_mstate_global->__pyx_n_s_anon_struct6___setstate_cython #define __pyx_n_s_anon_struct6_getPtr __pyx_mstate_global->__pyx_n_s_anon_struct6_getPtr #define __pyx_n_s_anon_union0 __pyx_mstate_global->__pyx_n_s_anon_union0 #define __pyx_n_s_anon_union0___reduce_cython __pyx_mstate_global->__pyx_n_s_anon_union0___reduce_cython #define __pyx_n_s_anon_union0___setstate_cython __pyx_mstate_global->__pyx_n_s_anon_union0___setstate_cython #define __pyx_n_s_anon_union0_getPtr __pyx_mstate_global->__pyx_n_s_anon_union0_getPtr #define __pyx_n_s_anon_union1 __pyx_mstate_global->__pyx_n_s_anon_union1 #define __pyx_n_s_anon_union10 __pyx_mstate_global->__pyx_n_s_anon_union10 #define __pyx_n_s_anon_union10___reduce_cython __pyx_mstate_global->__pyx_n_s_anon_union10___reduce_cython #define __pyx_n_s_anon_union10___setstate_cython __pyx_mstate_global->__pyx_n_s_anon_union10___setstate_cython #define __pyx_n_s_anon_union10_getPtr __pyx_mstate_global->__pyx_n_s_anon_union10_getPtr #define __pyx_n_s_anon_union1___reduce_cython __pyx_mstate_global->__pyx_n_s_anon_union1___reduce_cython #define __pyx_n_s_anon_union1___setstate_cython __pyx_mstate_global->__pyx_n_s_anon_union1___setstate_cython #define __pyx_n_s_anon_union1_getPtr __pyx_mstate_global->__pyx_n_s_anon_union1_getPtr #define __pyx_n_s_anon_union2 __pyx_mstate_global->__pyx_n_s_anon_union2 #define __pyx_n_s_anon_union2___reduce_cython __pyx_mstate_global->__pyx_n_s_anon_union2___reduce_cython #define __pyx_n_s_anon_union2___setstate_cython __pyx_mstate_global->__pyx_n_s_anon_union2___setstate_cython #define __pyx_n_s_anon_union2_getPtr __pyx_mstate_global->__pyx_n_s_anon_union2_getPtr #define __pyx_n_s_anon_union5 __pyx_mstate_global->__pyx_n_s_anon_union5 #define __pyx_n_s_anon_union5___reduce_cython __pyx_mstate_global->__pyx_n_s_anon_union5___reduce_cython #define __pyx_n_s_anon_union5___setstate_cython __pyx_mstate_global->__pyx_n_s_anon_union5___setstate_cython #define __pyx_n_s_anon_union5_getPtr __pyx_mstate_global->__pyx_n_s_anon_union5_getPtr #define __pyx_n_s_anon_union6 __pyx_mstate_global->__pyx_n_s_anon_union6 #define __pyx_n_s_anon_union6___reduce_cython __pyx_mstate_global->__pyx_n_s_anon_union6___reduce_cython #define __pyx_n_s_anon_union6___setstate_cython __pyx_mstate_global->__pyx_n_s_anon_union6___setstate_cython #define __pyx_n_s_anon_union6_getPtr __pyx_mstate_global->__pyx_n_s_anon_union6_getPtr #define __pyx_n_s_anon_union8 __pyx_mstate_global->__pyx_n_s_anon_union8 #define __pyx_n_s_anon_union8___reduce_cython __pyx_mstate_global->__pyx_n_s_anon_union8___reduce_cython #define __pyx_n_s_anon_union8___setstate_cython __pyx_mstate_global->__pyx_n_s_anon_union8___setstate_cython #define __pyx_n_s_anon_union8_getPtr __pyx_mstate_global->__pyx_n_s_anon_union8_getPtr #define __pyx_n_s_anon_union9 __pyx_mstate_global->__pyx_n_s_anon_union9 #define __pyx_n_s_anon_union9___reduce_cython __pyx_mstate_global->__pyx_n_s_anon_union9___reduce_cython #define __pyx_n_s_anon_union9___setstate_cython __pyx_mstate_global->__pyx_n_s_anon_union9___setstate_cython #define __pyx_n_s_anon_union9_getPtr __pyx_mstate_global->__pyx_n_s_anon_union9_getPtr #define __pyx_n_s_args __pyx_mstate_global->__pyx_n_s_args #define __pyx_kp_u_array __pyx_mstate_global->__pyx_kp_u_array #define __pyx_n_s_arrayIndex __pyx_mstate_global->__pyx_n_s_arrayIndex #define __pyx_n_s_array_2 __pyx_mstate_global->__pyx_n_s_array_2 #define __pyx_kp_u_array_3 __pyx_mstate_global->__pyx_kp_u_array_3 #define __pyx_kp_u_array_ValueError __pyx_mstate_global->__pyx_kp_u_array_ValueError #define __pyx_kp_u_asyncEngineCount __pyx_mstate_global->__pyx_kp_u_asyncEngineCount #define __pyx_n_s_asyncEngineCount_2 __pyx_mstate_global->__pyx_n_s_asyncEngineCount_2 #define __pyx_kp_u_asyncEngineCount_ValueError __pyx_mstate_global->__pyx_kp_u_asyncEngineCount_ValueError #define __pyx_n_s_asyncio_coroutines __pyx_mstate_global->__pyx_n_s_asyncio_coroutines #define __pyx_n_s_attr __pyx_mstate_global->__pyx_n_s_attr #define __pyx_n_s_attribute __pyx_mstate_global->__pyx_n_s_attribute #define __pyx_n_s_attributes __pyx_mstate_global->__pyx_n_s_attributes #define __pyx_kp_u_base_ptr __pyx_mstate_global->__pyx_kp_u_base_ptr #define __pyx_n_s_base_ptr_2 __pyx_mstate_global->__pyx_n_s_base_ptr_2 #define __pyx_kp_u_base_ptr_ValueError __pyx_mstate_global->__pyx_kp_u_base_ptr_ValueError #define __pyx_kp_u_binaryVersion __pyx_mstate_global->__pyx_kp_u_binaryVersion #define __pyx_n_s_binaryVersion_2 __pyx_mstate_global->__pyx_n_s_binaryVersion_2 #define __pyx_kp_u_binaryVersion_ValueError __pyx_mstate_global->__pyx_kp_u_binaryVersion_ValueError #define __pyx_kp_u_blockDim __pyx_mstate_global->__pyx_kp_u_blockDim #define __pyx_n_s_blockDim_2 __pyx_mstate_global->__pyx_n_s_blockDim_2 #define __pyx_kp_u_blockDim_ValueError __pyx_mstate_global->__pyx_kp_u_blockDim_ValueError #define __pyx_n_s_blockSize __pyx_mstate_global->__pyx_n_s_blockSize #define __pyx_kp_u_borderColor __pyx_mstate_global->__pyx_kp_u_borderColor #define __pyx_n_s_borderColor_2 __pyx_mstate_global->__pyx_n_s_borderColor_2 #define __pyx_kp_u_borderColor_ValueError __pyx_mstate_global->__pyx_kp_u_borderColor_ValueError #define __pyx_n_s_buffer __pyx_mstate_global->__pyx_n_s_buffer #define __pyx_n_s_bufferDesc __pyx_mstate_global->__pyx_n_s_bufferDesc #define __pyx_kp_u_bytes __pyx_mstate_global->__pyx_kp_u_bytes #define __pyx_kp_u_bytesOverBudget __pyx_mstate_global->__pyx_kp_u_bytesOverBudget #define __pyx_n_s_bytesOverBudget_2 __pyx_mstate_global->__pyx_n_s_bytesOverBudget_2 #define __pyx_kp_u_bytesOverBudget_ValueError __pyx_mstate_global->__pyx_kp_u_bytesOverBudget_ValueError #define __pyx_n_s_bytes_2 __pyx_mstate_global->__pyx_n_s_bytes_2 #define __pyx_kp_u_bytes_ValueError __pyx_mstate_global->__pyx_kp_u_bytes_ValueError #define __pyx_kp_u_bytesize __pyx_mstate_global->__pyx_kp_u_bytesize #define __pyx_n_s_bytesize_2 __pyx_mstate_global->__pyx_n_s_bytesize_2 #define __pyx_kp_u_bytesize_ValueError __pyx_mstate_global->__pyx_kp_u_bytesize_ValueError #define __pyx_n_s_cacheConfig __pyx_mstate_global->__pyx_n_s_cacheConfig #define __pyx_kp_u_cacheModeCA __pyx_mstate_global->__pyx_kp_u_cacheModeCA #define __pyx_n_s_cacheModeCA_2 __pyx_mstate_global->__pyx_n_s_cacheModeCA_2 #define __pyx_kp_u_cacheModeCA_ValueError __pyx_mstate_global->__pyx_kp_u_cacheModeCA_ValueError #define __pyx_n_s_cadvice __pyx_mstate_global->__pyx_n_s_cadvice #define __pyx_n_s_callback __pyx_mstate_global->__pyx_n_s_callback #define __pyx_n_s_callbackFunc __pyx_mstate_global->__pyx_n_s_callbackFunc #define __pyx_n_s_canAccessPeer __pyx_mstate_global->__pyx_n_s_canAccessPeer #define __pyx_kp_u_canMapHostMemory __pyx_mstate_global->__pyx_kp_u_canMapHostMemory #define __pyx_n_s_canMapHostMemory_2 __pyx_mstate_global->__pyx_n_s_canMapHostMemory_2 #define __pyx_kp_u_canMapHostMemory_ValueError __pyx_mstate_global->__pyx_kp_u_canMapHostMemory_ValueError #define __pyx_kp_u_canUseHostPointerForRegisteredMe __pyx_mstate_global->__pyx_kp_u_canUseHostPointerForRegisteredMe #define __pyx_n_s_canUseHostPointerForRegisteredMe_2 __pyx_mstate_global->__pyx_n_s_canUseHostPointerForRegisteredMe_2 #define __pyx_kp_u_canUseHostPointerForRegisteredMe_3 __pyx_mstate_global->__pyx_kp_u_canUseHostPointerForRegisteredMe_3 #define __pyx_n_s_captureStatus_out __pyx_mstate_global->__pyx_n_s_captureStatus_out #define __pyx_n_s_carray __pyx_mstate_global->__pyx_n_s_carray #define __pyx_n_s_cattr __pyx_mstate_global->__pyx_n_s_cattr #define __pyx_n_s_cattribute __pyx_mstate_global->__pyx_n_s_cattribute #define __pyx_n_s_cattributes __pyx_mstate_global->__pyx_n_s_cattributes #define __pyx_n_s_cbuffer __pyx_mstate_global->__pyx_n_s_cbuffer #define __pyx_n_s_cbufferDesc_ptr __pyx_mstate_global->__pyx_n_s_cbufferDesc_ptr #define __pyx_n_s_ccacheConfig __pyx_mstate_global->__pyx_n_s_ccacheConfig #define __pyx_n_s_ccallback __pyx_mstate_global->__pyx_n_s_ccallback #define __pyx_n_s_ccallbackFunc __pyx_mstate_global->__pyx_n_s_ccallbackFunc #define __pyx_n_s_cchildGraph __pyx_mstate_global->__pyx_n_s_cchildGraph #define __pyx_n_s_cclonedGraph __pyx_mstate_global->__pyx_n_s_cclonedGraph #define __pyx_n_s_cconfig __pyx_mstate_global->__pyx_n_s_cconfig #define __pyx_n_s_cconn __pyx_mstate_global->__pyx_n_s_cconn #define __pyx_n_s_cd __pyx_mstate_global->__pyx_n_s_cd #define __pyx_n_s_cd_ptr __pyx_mstate_global->__pyx_n_s_cd_ptr #define __pyx_n_s_cdata __pyx_mstate_global->__pyx_n_s_cdata #define __pyx_n_s_cdataSizes __pyx_mstate_global->__pyx_n_s_cdataSizes #define __pyx_n_s_cdata_ptr __pyx_mstate_global->__pyx_n_s_cdata_ptr #define __pyx_n_s_cdependencies __pyx_mstate_global->__pyx_n_s_cdependencies #define __pyx_n_s_cdependencies_out __pyx_mstate_global->__pyx_n_s_cdependencies_out #define __pyx_n_s_cdependencyData __pyx_mstate_global->__pyx_n_s_cdependencyData #define __pyx_n_s_cdescList __pyx_mstate_global->__pyx_n_s_cdescList #define __pyx_n_s_cdesc_ptr __pyx_mstate_global->__pyx_n_s_cdesc_ptr #define __pyx_n_s_cdestroy __pyx_mstate_global->__pyx_n_s_cdestroy #define __pyx_n_s_cdevPtr __pyx_mstate_global->__pyx_n_s_cdevPtr #define __pyx_n_s_cdevPtr_ptr __pyx_mstate_global->__pyx_n_s_cdevPtr_ptr #define __pyx_n_s_cdeviceList __pyx_mstate_global->__pyx_n_s_cdeviceList #define __pyx_n_s_cdptr __pyx_mstate_global->__pyx_n_s_cdptr #define __pyx_n_s_cdptr_out_ptr __pyx_mstate_global->__pyx_n_s_cdptr_out_ptr #define __pyx_n_s_cdptr_ptr __pyx_mstate_global->__pyx_n_s_cdptr_ptr #define __pyx_n_s_cdst __pyx_mstate_global->__pyx_n_s_cdst #define __pyx_n_s_cdst_ptr __pyx_mstate_global->__pyx_n_s_cdst_ptr #define __pyx_n_s_cedgeData __pyx_mstate_global->__pyx_n_s_cedgeData #define __pyx_n_s_cedgeData_out __pyx_mstate_global->__pyx_n_s_cedgeData_out #define __pyx_n_s_ceglStream __pyx_mstate_global->__pyx_n_s_ceglStream #define __pyx_n_s_ceglSync __pyx_mstate_global->__pyx_n_s_ceglSync #define __pyx_n_s_ceglframe_ptr __pyx_mstate_global->__pyx_n_s_ceglframe_ptr #define __pyx_n_s_cend __pyx_mstate_global->__pyx_n_s_cend #define __pyx_n_s_centryFuncAddr __pyx_mstate_global->__pyx_n_s_centryFuncAddr #define __pyx_n_s_centryFuncAddr_ptr __pyx_mstate_global->__pyx_n_s_centryFuncAddr_ptr #define __pyx_n_s_cerror __pyx_mstate_global->__pyx_n_s_cerror #define __pyx_n_s_cevent __pyx_mstate_global->__pyx_n_s_cevent #define __pyx_n_s_cexportData_ptr __pyx_mstate_global->__pyx_n_s_cexportData_ptr #define __pyx_n_s_cextMem __pyx_mstate_global->__pyx_n_s_cextMem #define __pyx_n_s_cextSem __pyx_mstate_global->__pyx_n_s_cextSem #define __pyx_n_s_cextSemArray __pyx_mstate_global->__pyx_n_s_cextSemArray #define __pyx_n_s_cf __pyx_mstate_global->__pyx_n_s_cf #define __pyx_n_s_cfmtDesc_ptr __pyx_mstate_global->__pyx_n_s_cfmtDesc_ptr #define __pyx_n_s_cfn __pyx_mstate_global->__pyx_n_s_cfn #define __pyx_n_s_cfrom __pyx_mstate_global->__pyx_n_s_cfrom #define __pyx_n_s_cfunc __pyx_mstate_global->__pyx_n_s_cfunc #define __pyx_n_s_cfunc_ptr __pyx_mstate_global->__pyx_n_s_cfunc_ptr #define __pyx_n_s_cgraph __pyx_mstate_global->__pyx_n_s_cgraph #define __pyx_n_s_cgraphExec __pyx_mstate_global->__pyx_n_s_cgraphExec #define __pyx_n_s_chArray __pyx_mstate_global->__pyx_n_s_chArray #define __pyx_n_s_chDst __pyx_mstate_global->__pyx_n_s_chDst #define __pyx_n_s_chGraph __pyx_mstate_global->__pyx_n_s_chGraph #define __pyx_n_s_chGraphExec __pyx_mstate_global->__pyx_n_s_chGraphExec #define __pyx_n_s_chNode __pyx_mstate_global->__pyx_n_s_chNode #define __pyx_n_s_chSrc __pyx_mstate_global->__pyx_n_s_chSrc #define __pyx_n_s_chStream __pyx_mstate_global->__pyx_n_s_chStream #define __pyx_n_s_chandleType __pyx_mstate_global->__pyx_n_s_chandleType #define __pyx_kp_u_channelDesc __pyx_mstate_global->__pyx_kp_u_channelDesc #define __pyx_n_s_channelDesc_2 __pyx_mstate_global->__pyx_n_s_channelDesc_2 #define __pyx_kp_u_channelDesc_ValueError __pyx_mstate_global->__pyx_kp_u_channelDesc_ValueError #define __pyx_n_s_cheight __pyx_mstate_global->__pyx_n_s_cheight #define __pyx_n_s_childGraph __pyx_mstate_global->__pyx_n_s_childGraph #define __pyx_n_s_cimage __pyx_mstate_global->__pyx_n_s_cimage #define __pyx_n_s_cinstantiateParams_ptr __pyx_mstate_global->__pyx_n_s_cinstantiateParams_ptr #define __pyx_n_s_ckernelParams __pyx_mstate_global->__pyx_n_s_ckernelParams #define __pyx_n_s_ckind __pyx_mstate_global->__pyx_n_s_ckind #define __pyx_n_s_climit __pyx_mstate_global->__pyx_n_s_climit #define __pyx_n_s_cline_in_traceback __pyx_mstate_global->__pyx_n_s_cline_in_traceback #define __pyx_n_s_clocation_ptr __pyx_mstate_global->__pyx_n_s_clocation_ptr #define __pyx_kp_u_clockRate __pyx_mstate_global->__pyx_kp_u_clockRate #define __pyx_n_s_clockRate_2 __pyx_mstate_global->__pyx_n_s_clockRate_2 #define __pyx_kp_u_clockRate_ValueError __pyx_mstate_global->__pyx_kp_u_clockRate_ValueError #define __pyx_n_s_clonedGraph __pyx_mstate_global->__pyx_n_s_clonedGraph #define __pyx_n_s_close __pyx_mstate_global->__pyx_n_s_close #define __pyx_kp_u_clusterDim __pyx_mstate_global->__pyx_kp_u_clusterDim #define __pyx_kp_u_clusterDimMustBeSet __pyx_mstate_global->__pyx_kp_u_clusterDimMustBeSet #define __pyx_n_s_clusterDimMustBeSet_2 __pyx_mstate_global->__pyx_n_s_clusterDimMustBeSet_2 #define __pyx_kp_u_clusterDimMustBeSet_ValueError __pyx_mstate_global->__pyx_kp_u_clusterDimMustBeSet_ValueError #define __pyx_n_s_clusterDim_2 __pyx_mstate_global->__pyx_n_s_clusterDim_2 #define __pyx_kp_u_clusterDim_ValueError __pyx_mstate_global->__pyx_kp_u_clusterDim_ValueError #define __pyx_kp_u_clusterLaunch __pyx_mstate_global->__pyx_kp_u_clusterLaunch #define __pyx_n_s_clusterLaunch_2 __pyx_mstate_global->__pyx_n_s_clusterLaunch_2 #define __pyx_kp_u_clusterLaunch_ValueError __pyx_mstate_global->__pyx_kp_u_clusterLaunch_ValueError #define __pyx_kp_u_clusterSchedulingPolicyPreferenc __pyx_mstate_global->__pyx_kp_u_clusterSchedulingPolicyPreferenc #define __pyx_n_s_clusterSchedulingPolicyPreferenc_2 __pyx_mstate_global->__pyx_n_s_clusterSchedulingPolicyPreferenc_2 #define __pyx_kp_u_clusterSchedulingPolicyPreferenc_3 __pyx_mstate_global->__pyx_kp_u_clusterSchedulingPolicyPreferenc_3 #define __pyx_n_s_cmemHandleDesc_ptr __pyx_mstate_global->__pyx_n_s_cmemHandleDesc_ptr #define __pyx_n_s_cmemPool __pyx_mstate_global->__pyx_n_s_cmemPool #define __pyx_n_s_cmipmap __pyx_mstate_global->__pyx_n_s_cmipmap #define __pyx_n_s_cmipmapDesc_ptr __pyx_mstate_global->__pyx_n_s_cmipmapDesc_ptr #define __pyx_n_s_cmipmappedArray __pyx_mstate_global->__pyx_n_s_cmipmappedArray #define __pyx_n_s_cmode __pyx_mstate_global->__pyx_n_s_cmode #define __pyx_n_s_cnode __pyx_mstate_global->__pyx_n_s_cnode #define __pyx_n_s_cnodeParams_ptr __pyx_mstate_global->__pyx_n_s_cnodeParams_ptr #define __pyx_n_s_cnodes __pyx_mstate_global->__pyx_n_s_cnodes #define __pyx_n_s_cnvSciSyncAttrList __pyx_mstate_global->__pyx_n_s_cnvSciSyncAttrList #define __pyx_n_s_cnvSciSyncAttrList_ptr __pyx_mstate_global->__pyx_n_s_cnvSciSyncAttrList_ptr #define __pyx_n_s_cobject __pyx_mstate_global->__pyx_n_s_cobject #define __pyx_kp_u_computeMode __pyx_mstate_global->__pyx_kp_u_computeMode #define __pyx_n_s_computeMode_2 __pyx_mstate_global->__pyx_n_s_computeMode_2 #define __pyx_kp_u_computeMode_ValueError __pyx_mstate_global->__pyx_kp_u_computeMode_ValueError #define __pyx_kp_u_computePreemptionSupported __pyx_mstate_global->__pyx_kp_u_computePreemptionSupported #define __pyx_n_s_computePreemptionSupported_2 __pyx_mstate_global->__pyx_n_s_computePreemptionSupported_2 #define __pyx_kp_u_computePreemptionSupported_Value __pyx_mstate_global->__pyx_kp_u_computePreemptionSupported_Value #define __pyx_kp_u_concurrentKernels __pyx_mstate_global->__pyx_kp_u_concurrentKernels #define __pyx_n_s_concurrentKernels_2 __pyx_mstate_global->__pyx_n_s_concurrentKernels_2 #define __pyx_kp_u_concurrentKernels_ValueError __pyx_mstate_global->__pyx_kp_u_concurrentKernels_ValueError #define __pyx_kp_u_concurrentManagedAccess __pyx_mstate_global->__pyx_kp_u_concurrentManagedAccess #define __pyx_n_s_concurrentManagedAccess_2 __pyx_mstate_global->__pyx_n_s_concurrentManagedAccess_2 #define __pyx_kp_u_concurrentManagedAccess_ValueErr __pyx_mstate_global->__pyx_kp_u_concurrentManagedAccess_ValueErr #define __pyx_kp_u_conditional __pyx_mstate_global->__pyx_kp_u_conditional #define __pyx_n_s_conditional_2 __pyx_mstate_global->__pyx_n_s_conditional_2 #define __pyx_kp_u_conditional_ValueError __pyx_mstate_global->__pyx_kp_u_conditional_ValueError #define __pyx_n_s_config __pyx_mstate_global->__pyx_n_s_config #define __pyx_n_s_conn __pyx_mstate_global->__pyx_n_s_conn #define __pyx_kp_u_constSizeBytes __pyx_mstate_global->__pyx_kp_u_constSizeBytes #define __pyx_n_s_constSizeBytes_2 __pyx_mstate_global->__pyx_n_s_constSizeBytes_2 #define __pyx_kp_u_constSizeBytes_ValueError __pyx_mstate_global->__pyx_kp_u_constSizeBytes_ValueError #define __pyx_kp_u_cooperative __pyx_mstate_global->__pyx_kp_u_cooperative #define __pyx_kp_u_cooperativeLaunch __pyx_mstate_global->__pyx_kp_u_cooperativeLaunch #define __pyx_n_s_cooperativeLaunch_2 __pyx_mstate_global->__pyx_n_s_cooperativeLaunch_2 #define __pyx_kp_u_cooperativeLaunch_ValueError __pyx_mstate_global->__pyx_kp_u_cooperativeLaunch_ValueError #define __pyx_kp_u_cooperativeMultiDeviceLaunch __pyx_mstate_global->__pyx_kp_u_cooperativeMultiDeviceLaunch #define __pyx_n_s_cooperativeMultiDeviceLaunch_2 __pyx_mstate_global->__pyx_n_s_cooperativeMultiDeviceLaunch_2 #define __pyx_kp_u_cooperativeMultiDeviceLaunch_Val __pyx_mstate_global->__pyx_kp_u_cooperativeMultiDeviceLaunch_Val #define __pyx_n_s_cooperative_2 __pyx_mstate_global->__pyx_n_s_cooperative_2 #define __pyx_kp_u_cooperative_ValueError __pyx_mstate_global->__pyx_kp_u_cooperative_ValueError #define __pyx_kp_u_copyParams __pyx_mstate_global->__pyx_kp_u_copyParams #define __pyx_n_s_copyParams_2 __pyx_mstate_global->__pyx_n_s_copyParams_2 #define __pyx_kp_u_copyParams_ValueError __pyx_mstate_global->__pyx_kp_u_copyParams_ValueError #define __pyx_n_s_coriginalGraph __pyx_mstate_global->__pyx_n_s_coriginalGraph #define __pyx_n_s_coriginalNode __pyx_mstate_global->__pyx_n_s_coriginalNode #define __pyx_n_s_count __pyx_mstate_global->__pyx_n_s_count #define __pyx_n_s_cpCopyParams_ptr __pyx_mstate_global->__pyx_n_s_cpCopyParams_ptr #define __pyx_n_s_cpCudaDevices __pyx_mstate_global->__pyx_n_s_cpCudaDevices #define __pyx_n_s_cpCudaResource __pyx_mstate_global->__pyx_n_s_cpCudaResource #define __pyx_n_s_cpDependencies __pyx_mstate_global->__pyx_n_s_cpDependencies #define __pyx_n_s_cpDependentNodes __pyx_mstate_global->__pyx_n_s_cpDependentNodes #define __pyx_n_s_cpExportTableId_ptr __pyx_mstate_global->__pyx_n_s_cpExportTableId_ptr #define __pyx_n_s_cpHost __pyx_mstate_global->__pyx_n_s_cpHost #define __pyx_n_s_cpHost_ptr __pyx_mstate_global->__pyx_n_s_cpHost_ptr #define __pyx_n_s_cpMemsetParams_ptr __pyx_mstate_global->__pyx_n_s_cpMemsetParams_ptr #define __pyx_n_s_cpNodeParams_ptr __pyx_mstate_global->__pyx_n_s_cpNodeParams_ptr #define __pyx_n_s_cpResDesc_ptr __pyx_mstate_global->__pyx_n_s_cpResDesc_ptr #define __pyx_n_s_cpResViewDesc_ptr __pyx_mstate_global->__pyx_n_s_cpResViewDesc_ptr #define __pyx_n_s_cpRootNodes __pyx_mstate_global->__pyx_n_s_cpRootNodes #define __pyx_n_s_cpStream __pyx_mstate_global->__pyx_n_s_cpStream #define __pyx_n_s_cpTexDesc_ptr __pyx_mstate_global->__pyx_n_s_cpTexDesc_ptr #define __pyx_n_s_cp_ptr __pyx_mstate_global->__pyx_n_s_cp_ptr #define __pyx_n_s_cparamsArray __pyx_mstate_global->__pyx_n_s_cparamsArray #define __pyx_n_s_cpoolProps_ptr __pyx_mstate_global->__pyx_n_s_cpoolProps_ptr #define __pyx_n_s_cprop_ptr __pyx_mstate_global->__pyx_n_s_cprop_ptr #define __pyx_n_s_cptr __pyx_mstate_global->__pyx_n_s_cptr #define __pyx_n_s_cptr_ptr __pyx_mstate_global->__pyx_n_s_cptr_ptr #define __pyx_n_s_cresource __pyx_mstate_global->__pyx_n_s_cresource #define __pyx_n_s_cresources __pyx_mstate_global->__pyx_n_s_cresources #define __pyx_n_s_cscope __pyx_mstate_global->__pyx_n_s_cscope #define __pyx_n_s_csemHandleDesc_ptr __pyx_mstate_global->__pyx_n_s_csemHandleDesc_ptr #define __pyx_n_s_cshareableHandle __pyx_mstate_global->__pyx_n_s_cshareableHandle #define __pyx_n_s_cshareableHandle_ptr __pyx_mstate_global->__pyx_n_s_cshareableHandle_ptr #define __pyx_n_s_csrc __pyx_mstate_global->__pyx_n_s_csrc #define __pyx_n_s_csrc_ptr __pyx_mstate_global->__pyx_n_s_csrc_ptr #define __pyx_n_s_cstart __pyx_mstate_global->__pyx_n_s_cstart #define __pyx_n_s_cstream __pyx_mstate_global->__pyx_n_s_cstream #define __pyx_n_s_csurfObject __pyx_mstate_global->__pyx_n_s_csurfObject #define __pyx_n_s_ctarget __pyx_mstate_global->__pyx_n_s_ctarget #define __pyx_n_s_ctexObject __pyx_mstate_global->__pyx_n_s_ctexObject #define __pyx_n_s_cto __pyx_mstate_global->__pyx_n_s_cto #define __pyx_n_s_ctypes __pyx_mstate_global->__pyx_n_s_ctypes #define __pyx_n_s_cuda __pyx_mstate_global->__pyx_n_s_cuda #define __pyx_n_s_cudaAccessPolicyWindow __pyx_mstate_global->__pyx_n_s_cudaAccessPolicyWindow #define __pyx_n_s_cudaAccessPolicyWindow___reduce __pyx_mstate_global->__pyx_n_s_cudaAccessPolicyWindow___reduce #define __pyx_n_s_cudaAccessPolicyWindow___setstat __pyx_mstate_global->__pyx_n_s_cudaAccessPolicyWindow___setstat #define __pyx_n_s_cudaAccessPolicyWindow_getPtr __pyx_mstate_global->__pyx_n_s_cudaAccessPolicyWindow_getPtr #define __pyx_n_s_cudaAccessProperty __pyx_mstate_global->__pyx_n_s_cudaAccessProperty #define __pyx_n_s_cudaAccessPropertyNormal __pyx_mstate_global->__pyx_n_s_cudaAccessPropertyNormal #define __pyx_n_s_cudaAccessPropertyPersisting __pyx_mstate_global->__pyx_n_s_cudaAccessPropertyPersisting #define __pyx_n_s_cudaAccessPropertyStreaming __pyx_mstate_global->__pyx_n_s_cudaAccessPropertyStreaming #define __pyx_n_s_cudaAddressModeBorder __pyx_mstate_global->__pyx_n_s_cudaAddressModeBorder #define __pyx_n_s_cudaAddressModeClamp __pyx_mstate_global->__pyx_n_s_cudaAddressModeClamp #define __pyx_n_s_cudaAddressModeMirror __pyx_mstate_global->__pyx_n_s_cudaAddressModeMirror #define __pyx_n_s_cudaAddressModeWrap __pyx_mstate_global->__pyx_n_s_cudaAddressModeWrap #define __pyx_n_s_cudaArrayColorAttachment __pyx_mstate_global->__pyx_n_s_cudaArrayColorAttachment #define __pyx_n_s_cudaArrayCubemap __pyx_mstate_global->__pyx_n_s_cudaArrayCubemap #define __pyx_n_s_cudaArrayDefault __pyx_mstate_global->__pyx_n_s_cudaArrayDefault #define __pyx_n_s_cudaArrayDeferredMapping __pyx_mstate_global->__pyx_n_s_cudaArrayDeferredMapping #define __pyx_n_s_cudaArrayGetInfo __pyx_mstate_global->__pyx_n_s_cudaArrayGetInfo #define __pyx_n_s_cudaArrayGetMemoryRequirements __pyx_mstate_global->__pyx_n_s_cudaArrayGetMemoryRequirements #define __pyx_n_s_cudaArrayGetPlane __pyx_mstate_global->__pyx_n_s_cudaArrayGetPlane #define __pyx_n_s_cudaArrayGetSparseProperties __pyx_mstate_global->__pyx_n_s_cudaArrayGetSparseProperties #define __pyx_n_s_cudaArrayLayered __pyx_mstate_global->__pyx_n_s_cudaArrayLayered #define __pyx_n_s_cudaArrayMemoryRequirements __pyx_mstate_global->__pyx_n_s_cudaArrayMemoryRequirements #define __pyx_n_s_cudaArrayMemoryRequirements___re __pyx_mstate_global->__pyx_n_s_cudaArrayMemoryRequirements___re #define __pyx_n_s_cudaArrayMemoryRequirements___se __pyx_mstate_global->__pyx_n_s_cudaArrayMemoryRequirements___se #define __pyx_n_s_cudaArrayMemoryRequirements_getP __pyx_mstate_global->__pyx_n_s_cudaArrayMemoryRequirements_getP #define __pyx_n_s_cudaArraySparse __pyx_mstate_global->__pyx_n_s_cudaArraySparse #define __pyx_n_s_cudaArraySparseProperties __pyx_mstate_global->__pyx_n_s_cudaArraySparseProperties #define __pyx_n_s_cudaArraySparsePropertiesSingleM __pyx_mstate_global->__pyx_n_s_cudaArraySparsePropertiesSingleM #define __pyx_n_s_cudaArraySparseProperties___redu __pyx_mstate_global->__pyx_n_s_cudaArraySparseProperties___redu #define __pyx_n_s_cudaArraySparseProperties___sets __pyx_mstate_global->__pyx_n_s_cudaArraySparseProperties___sets #define __pyx_n_s_cudaArraySparseProperties_getPtr __pyx_mstate_global->__pyx_n_s_cudaArraySparseProperties_getPtr #define __pyx_n_s_cudaArraySurfaceLoadStore __pyx_mstate_global->__pyx_n_s_cudaArraySurfaceLoadStore #define __pyx_n_s_cudaArrayTextureGather __pyx_mstate_global->__pyx_n_s_cudaArrayTextureGather #define __pyx_kp_u_cudaArray_const_t __pyx_mstate_global->__pyx_kp_u_cudaArray_const_t #define __pyx_n_s_cudaArray_const_t_2 __pyx_mstate_global->__pyx_n_s_cudaArray_const_t_2 #define __pyx_n_s_cudaArray_const_t___reduce_cytho __pyx_mstate_global->__pyx_n_s_cudaArray_const_t___reduce_cytho #define __pyx_n_s_cudaArray_const_t___setstate_cyt __pyx_mstate_global->__pyx_n_s_cudaArray_const_t___setstate_cyt #define __pyx_n_s_cudaArray_const_t_getPtr __pyx_mstate_global->__pyx_n_s_cudaArray_const_t_getPtr #define __pyx_kp_u_cudaArray_t __pyx_mstate_global->__pyx_kp_u_cudaArray_t #define __pyx_n_s_cudaArray_t_2 __pyx_mstate_global->__pyx_n_s_cudaArray_t_2 #define __pyx_n_s_cudaArray_t___reduce_cython __pyx_mstate_global->__pyx_n_s_cudaArray_t___reduce_cython #define __pyx_n_s_cudaArray_t___setstate_cython __pyx_mstate_global->__pyx_n_s_cudaArray_t___setstate_cython #define __pyx_n_s_cudaArray_t_getPtr __pyx_mstate_global->__pyx_n_s_cudaArray_t_getPtr #define __pyx_kp_u_cudaAsyncCallback __pyx_mstate_global->__pyx_kp_u_cudaAsyncCallback #define __pyx_kp_u_cudaAsyncCallbackHandle_t __pyx_mstate_global->__pyx_kp_u_cudaAsyncCallbackHandle_t #define __pyx_n_s_cudaAsyncCallbackHandle_t_2 __pyx_mstate_global->__pyx_n_s_cudaAsyncCallbackHandle_t_2 #define __pyx_n_s_cudaAsyncCallbackHandle_t___redu __pyx_mstate_global->__pyx_n_s_cudaAsyncCallbackHandle_t___redu #define __pyx_n_s_cudaAsyncCallbackHandle_t___sets __pyx_mstate_global->__pyx_n_s_cudaAsyncCallbackHandle_t___sets #define __pyx_n_s_cudaAsyncCallbackHandle_t_getPtr __pyx_mstate_global->__pyx_n_s_cudaAsyncCallbackHandle_t_getPtr #define __pyx_n_s_cudaAsyncCallback_2 __pyx_mstate_global->__pyx_n_s_cudaAsyncCallback_2 #define __pyx_n_s_cudaAsyncCallback___reduce_cytho __pyx_mstate_global->__pyx_n_s_cudaAsyncCallback___reduce_cytho #define __pyx_n_s_cudaAsyncCallback___setstate_cyt __pyx_mstate_global->__pyx_n_s_cudaAsyncCallback___setstate_cyt #define __pyx_n_s_cudaAsyncCallback_getPtr __pyx_mstate_global->__pyx_n_s_cudaAsyncCallback_getPtr #define __pyx_n_s_cudaAsyncNotificationInfo __pyx_mstate_global->__pyx_n_s_cudaAsyncNotificationInfo #define __pyx_n_s_cudaAsyncNotificationInfo___redu __pyx_mstate_global->__pyx_n_s_cudaAsyncNotificationInfo___redu #define __pyx_n_s_cudaAsyncNotificationInfo___sets __pyx_mstate_global->__pyx_n_s_cudaAsyncNotificationInfo___sets #define __pyx_n_s_cudaAsyncNotificationInfo_getPtr __pyx_mstate_global->__pyx_n_s_cudaAsyncNotificationInfo_getPtr #define __pyx_n_s_cudaAsyncNotificationInfo_t __pyx_mstate_global->__pyx_n_s_cudaAsyncNotificationInfo_t #define __pyx_n_s_cudaAsyncNotificationType __pyx_mstate_global->__pyx_n_s_cudaAsyncNotificationType #define __pyx_n_s_cudaAsyncNotificationTypeOverBud __pyx_mstate_global->__pyx_n_s_cudaAsyncNotificationTypeOverBud #define __pyx_n_s_cudaBoundaryModeClamp __pyx_mstate_global->__pyx_n_s_cudaBoundaryModeClamp #define __pyx_n_s_cudaBoundaryModeTrap __pyx_mstate_global->__pyx_n_s_cudaBoundaryModeTrap #define __pyx_n_s_cudaBoundaryModeZero __pyx_mstate_global->__pyx_n_s_cudaBoundaryModeZero #define __pyx_n_s_cudaCGScope __pyx_mstate_global->__pyx_n_s_cudaCGScope #define __pyx_n_s_cudaCGScopeGrid __pyx_mstate_global->__pyx_n_s_cudaCGScopeGrid #define __pyx_n_s_cudaCGScopeInvalid __pyx_mstate_global->__pyx_n_s_cudaCGScopeInvalid #define __pyx_n_s_cudaCGScopeMultiGrid __pyx_mstate_global->__pyx_n_s_cudaCGScopeMultiGrid #define __pyx_n_s_cudaChannelFormatDesc __pyx_mstate_global->__pyx_n_s_cudaChannelFormatDesc #define __pyx_n_s_cudaChannelFormatDesc___reduce_c __pyx_mstate_global->__pyx_n_s_cudaChannelFormatDesc___reduce_c #define __pyx_n_s_cudaChannelFormatDesc___setstate __pyx_mstate_global->__pyx_n_s_cudaChannelFormatDesc___setstate #define __pyx_n_s_cudaChannelFormatDesc_getPtr __pyx_mstate_global->__pyx_n_s_cudaChannelFormatDesc_getPtr #define __pyx_n_s_cudaChannelFormatKind __pyx_mstate_global->__pyx_n_s_cudaChannelFormatKind #define __pyx_n_s_cudaChannelFormatKindFloat __pyx_mstate_global->__pyx_n_s_cudaChannelFormatKindFloat #define __pyx_n_s_cudaChannelFormatKindNV12 __pyx_mstate_global->__pyx_n_s_cudaChannelFormatKindNV12 #define __pyx_n_s_cudaChannelFormatKindNone __pyx_mstate_global->__pyx_n_s_cudaChannelFormatKindNone #define __pyx_n_s_cudaChannelFormatKindSigned __pyx_mstate_global->__pyx_n_s_cudaChannelFormatKindSigned #define __pyx_n_s_cudaChannelFormatKindSignedBlock __pyx_mstate_global->__pyx_n_s_cudaChannelFormatKindSignedBlock #define __pyx_n_s_cudaChannelFormatKindSignedBlock_2 __pyx_mstate_global->__pyx_n_s_cudaChannelFormatKindSignedBlock_2 #define __pyx_n_s_cudaChannelFormatKindSignedBlock_3 __pyx_mstate_global->__pyx_n_s_cudaChannelFormatKindSignedBlock_3 #define __pyx_n_s_cudaChannelFormatKindSignedNorma __pyx_mstate_global->__pyx_n_s_cudaChannelFormatKindSignedNorma #define __pyx_n_s_cudaChannelFormatKindSignedNorma_2 __pyx_mstate_global->__pyx_n_s_cudaChannelFormatKindSignedNorma_2 #define __pyx_n_s_cudaChannelFormatKindSignedNorma_3 __pyx_mstate_global->__pyx_n_s_cudaChannelFormatKindSignedNorma_3 #define __pyx_n_s_cudaChannelFormatKindSignedNorma_4 __pyx_mstate_global->__pyx_n_s_cudaChannelFormatKindSignedNorma_4 #define __pyx_n_s_cudaChannelFormatKindSignedNorma_5 __pyx_mstate_global->__pyx_n_s_cudaChannelFormatKindSignedNorma_5 #define __pyx_n_s_cudaChannelFormatKindSignedNorma_6 __pyx_mstate_global->__pyx_n_s_cudaChannelFormatKindSignedNorma_6 #define __pyx_n_s_cudaChannelFormatKindUnsigned __pyx_mstate_global->__pyx_n_s_cudaChannelFormatKindUnsigned #define __pyx_n_s_cudaChannelFormatKindUnsignedBlo __pyx_mstate_global->__pyx_n_s_cudaChannelFormatKindUnsignedBlo #define __pyx_n_s_cudaChannelFormatKindUnsignedBlo_10 __pyx_mstate_global->__pyx_n_s_cudaChannelFormatKindUnsignedBlo_10 #define __pyx_n_s_cudaChannelFormatKindUnsignedBlo_11 __pyx_mstate_global->__pyx_n_s_cudaChannelFormatKindUnsignedBlo_11 #define __pyx_n_s_cudaChannelFormatKindUnsignedBlo_2 __pyx_mstate_global->__pyx_n_s_cudaChannelFormatKindUnsignedBlo_2 #define __pyx_n_s_cudaChannelFormatKindUnsignedBlo_3 __pyx_mstate_global->__pyx_n_s_cudaChannelFormatKindUnsignedBlo_3 #define __pyx_n_s_cudaChannelFormatKindUnsignedBlo_4 __pyx_mstate_global->__pyx_n_s_cudaChannelFormatKindUnsignedBlo_4 #define __pyx_n_s_cudaChannelFormatKindUnsignedBlo_5 __pyx_mstate_global->__pyx_n_s_cudaChannelFormatKindUnsignedBlo_5 #define __pyx_n_s_cudaChannelFormatKindUnsignedBlo_6 __pyx_mstate_global->__pyx_n_s_cudaChannelFormatKindUnsignedBlo_6 #define __pyx_n_s_cudaChannelFormatKindUnsignedBlo_7 __pyx_mstate_global->__pyx_n_s_cudaChannelFormatKindUnsignedBlo_7 #define __pyx_n_s_cudaChannelFormatKindUnsignedBlo_8 __pyx_mstate_global->__pyx_n_s_cudaChannelFormatKindUnsignedBlo_8 #define __pyx_n_s_cudaChannelFormatKindUnsignedBlo_9 __pyx_mstate_global->__pyx_n_s_cudaChannelFormatKindUnsignedBlo_9 #define __pyx_n_s_cudaChannelFormatKindUnsignedNor __pyx_mstate_global->__pyx_n_s_cudaChannelFormatKindUnsignedNor #define __pyx_n_s_cudaChannelFormatKindUnsignedNor_2 __pyx_mstate_global->__pyx_n_s_cudaChannelFormatKindUnsignedNor_2 #define __pyx_n_s_cudaChannelFormatKindUnsignedNor_3 __pyx_mstate_global->__pyx_n_s_cudaChannelFormatKindUnsignedNor_3 #define __pyx_n_s_cudaChannelFormatKindUnsignedNor_4 __pyx_mstate_global->__pyx_n_s_cudaChannelFormatKindUnsignedNor_4 #define __pyx_n_s_cudaChannelFormatKindUnsignedNor_5 __pyx_mstate_global->__pyx_n_s_cudaChannelFormatKindUnsignedNor_5 #define __pyx_n_s_cudaChannelFormatKindUnsignedNor_6 __pyx_mstate_global->__pyx_n_s_cudaChannelFormatKindUnsignedNor_6 #define __pyx_n_s_cudaChildGraphNodeParams __pyx_mstate_global->__pyx_n_s_cudaChildGraphNodeParams #define __pyx_n_s_cudaChildGraphNodeParams___reduc __pyx_mstate_global->__pyx_n_s_cudaChildGraphNodeParams___reduc #define __pyx_n_s_cudaChildGraphNodeParams___setst __pyx_mstate_global->__pyx_n_s_cudaChildGraphNodeParams___setst #define __pyx_n_s_cudaChildGraphNodeParams_getPtr __pyx_mstate_global->__pyx_n_s_cudaChildGraphNodeParams_getPtr #define __pyx_n_s_cudaChooseDevice __pyx_mstate_global->__pyx_n_s_cudaChooseDevice #define __pyx_n_s_cudaClusterSchedulingPolicy __pyx_mstate_global->__pyx_n_s_cudaClusterSchedulingPolicy #define __pyx_n_s_cudaClusterSchedulingPolicyDefau __pyx_mstate_global->__pyx_n_s_cudaClusterSchedulingPolicyDefau #define __pyx_n_s_cudaClusterSchedulingPolicyLoadB __pyx_mstate_global->__pyx_n_s_cudaClusterSchedulingPolicyLoadB #define __pyx_n_s_cudaClusterSchedulingPolicySprea __pyx_mstate_global->__pyx_n_s_cudaClusterSchedulingPolicySprea #define __pyx_n_s_cudaComputeMode __pyx_mstate_global->__pyx_n_s_cudaComputeMode #define __pyx_n_s_cudaComputeModeDefault __pyx_mstate_global->__pyx_n_s_cudaComputeModeDefault #define __pyx_n_s_cudaComputeModeExclusive __pyx_mstate_global->__pyx_n_s_cudaComputeModeExclusive #define __pyx_n_s_cudaComputeModeExclusiveProcess __pyx_mstate_global->__pyx_n_s_cudaComputeModeExclusiveProcess #define __pyx_n_s_cudaComputeModeProhibited __pyx_mstate_global->__pyx_n_s_cudaComputeModeProhibited #define __pyx_n_s_cudaConditionalNodeParams __pyx_mstate_global->__pyx_n_s_cudaConditionalNodeParams #define __pyx_n_s_cudaConditionalNodeParams___redu __pyx_mstate_global->__pyx_n_s_cudaConditionalNodeParams___redu #define __pyx_n_s_cudaConditionalNodeParams___sets __pyx_mstate_global->__pyx_n_s_cudaConditionalNodeParams___sets #define __pyx_n_s_cudaConditionalNodeParams_getPtr __pyx_mstate_global->__pyx_n_s_cudaConditionalNodeParams_getPtr #define __pyx_n_s_cudaCooperativeLaunchMultiDevice __pyx_mstate_global->__pyx_n_s_cudaCooperativeLaunchMultiDevice #define __pyx_n_s_cudaCooperativeLaunchMultiDevice_2 __pyx_mstate_global->__pyx_n_s_cudaCooperativeLaunchMultiDevice_2 #define __pyx_n_s_cudaCpuDeviceId __pyx_mstate_global->__pyx_n_s_cudaCpuDeviceId #define __pyx_n_s_cudaCreateChannelDesc __pyx_mstate_global->__pyx_n_s_cudaCreateChannelDesc #define __pyx_n_s_cudaCreateSurfaceObject __pyx_mstate_global->__pyx_n_s_cudaCreateSurfaceObject #define __pyx_n_s_cudaCreateTextureObject __pyx_mstate_global->__pyx_n_s_cudaCreateTextureObject #define __pyx_n_s_cudaCtxResetPersistingL2Cache __pyx_mstate_global->__pyx_n_s_cudaCtxResetPersistingL2Cache #define __pyx_n_s_cudaDataType __pyx_mstate_global->__pyx_n_s_cudaDataType #define __pyx_n_s_cudaDestroyExternalMemory __pyx_mstate_global->__pyx_n_s_cudaDestroyExternalMemory #define __pyx_n_s_cudaDestroyExternalSemaphore __pyx_mstate_global->__pyx_n_s_cudaDestroyExternalSemaphore #define __pyx_n_s_cudaDestroySurfaceObject __pyx_mstate_global->__pyx_n_s_cudaDestroySurfaceObject #define __pyx_n_s_cudaDestroyTextureObject __pyx_mstate_global->__pyx_n_s_cudaDestroyTextureObject #define __pyx_n_s_cudaDevAttrAsyncEngineCount __pyx_mstate_global->__pyx_n_s_cudaDevAttrAsyncEngineCount #define __pyx_n_s_cudaDevAttrCanFlushRemoteWrites __pyx_mstate_global->__pyx_n_s_cudaDevAttrCanFlushRemoteWrites #define __pyx_n_s_cudaDevAttrCanMapHostMemory __pyx_mstate_global->__pyx_n_s_cudaDevAttrCanMapHostMemory #define __pyx_n_s_cudaDevAttrCanUseHostPointerForR __pyx_mstate_global->__pyx_n_s_cudaDevAttrCanUseHostPointerForR #define __pyx_n_s_cudaDevAttrClockRate __pyx_mstate_global->__pyx_n_s_cudaDevAttrClockRate #define __pyx_n_s_cudaDevAttrClusterLaunch __pyx_mstate_global->__pyx_n_s_cudaDevAttrClusterLaunch #define __pyx_n_s_cudaDevAttrComputeCapabilityMajo __pyx_mstate_global->__pyx_n_s_cudaDevAttrComputeCapabilityMajo #define __pyx_n_s_cudaDevAttrComputeCapabilityMino __pyx_mstate_global->__pyx_n_s_cudaDevAttrComputeCapabilityMino #define __pyx_n_s_cudaDevAttrComputeMode __pyx_mstate_global->__pyx_n_s_cudaDevAttrComputeMode #define __pyx_n_s_cudaDevAttrComputePreemptionSupp __pyx_mstate_global->__pyx_n_s_cudaDevAttrComputePreemptionSupp #define __pyx_n_s_cudaDevAttrConcurrentKernels __pyx_mstate_global->__pyx_n_s_cudaDevAttrConcurrentKernels #define __pyx_n_s_cudaDevAttrConcurrentManagedAcce __pyx_mstate_global->__pyx_n_s_cudaDevAttrConcurrentManagedAcce #define __pyx_n_s_cudaDevAttrCooperativeLaunch __pyx_mstate_global->__pyx_n_s_cudaDevAttrCooperativeLaunch #define __pyx_n_s_cudaDevAttrCooperativeMultiDevic __pyx_mstate_global->__pyx_n_s_cudaDevAttrCooperativeMultiDevic #define __pyx_n_s_cudaDevAttrD3D12CigSupported __pyx_mstate_global->__pyx_n_s_cudaDevAttrD3D12CigSupported #define __pyx_n_s_cudaDevAttrDeferredMappingCudaAr __pyx_mstate_global->__pyx_n_s_cudaDevAttrDeferredMappingCudaAr #define __pyx_n_s_cudaDevAttrDirectManagedMemAcces __pyx_mstate_global->__pyx_n_s_cudaDevAttrDirectManagedMemAcces #define __pyx_n_s_cudaDevAttrEccEnabled __pyx_mstate_global->__pyx_n_s_cudaDevAttrEccEnabled #define __pyx_n_s_cudaDevAttrGPUDirectRDMAFlushWri __pyx_mstate_global->__pyx_n_s_cudaDevAttrGPUDirectRDMAFlushWri #define __pyx_n_s_cudaDevAttrGPUDirectRDMASupporte __pyx_mstate_global->__pyx_n_s_cudaDevAttrGPUDirectRDMASupporte #define __pyx_n_s_cudaDevAttrGPUDirectRDMAWritesOr __pyx_mstate_global->__pyx_n_s_cudaDevAttrGPUDirectRDMAWritesOr #define __pyx_n_s_cudaDevAttrGlobalL1CacheSupporte __pyx_mstate_global->__pyx_n_s_cudaDevAttrGlobalL1CacheSupporte #define __pyx_n_s_cudaDevAttrGlobalMemoryBusWidth __pyx_mstate_global->__pyx_n_s_cudaDevAttrGlobalMemoryBusWidth #define __pyx_n_s_cudaDevAttrGpuOverlap __pyx_mstate_global->__pyx_n_s_cudaDevAttrGpuOverlap #define __pyx_n_s_cudaDevAttrHostNativeAtomicSuppo __pyx_mstate_global->__pyx_n_s_cudaDevAttrHostNativeAtomicSuppo #define __pyx_n_s_cudaDevAttrHostNumaId __pyx_mstate_global->__pyx_n_s_cudaDevAttrHostNumaId #define __pyx_n_s_cudaDevAttrHostRegisterReadOnlyS __pyx_mstate_global->__pyx_n_s_cudaDevAttrHostRegisterReadOnlyS #define __pyx_n_s_cudaDevAttrHostRegisterSupported __pyx_mstate_global->__pyx_n_s_cudaDevAttrHostRegisterSupported #define __pyx_n_s_cudaDevAttrIntegrated __pyx_mstate_global->__pyx_n_s_cudaDevAttrIntegrated #define __pyx_n_s_cudaDevAttrIpcEventSupport __pyx_mstate_global->__pyx_n_s_cudaDevAttrIpcEventSupport #define __pyx_n_s_cudaDevAttrIsMultiGpuBoard __pyx_mstate_global->__pyx_n_s_cudaDevAttrIsMultiGpuBoard #define __pyx_n_s_cudaDevAttrKernelExecTimeout __pyx_mstate_global->__pyx_n_s_cudaDevAttrKernelExecTimeout #define __pyx_n_s_cudaDevAttrL2CacheSize __pyx_mstate_global->__pyx_n_s_cudaDevAttrL2CacheSize #define __pyx_n_s_cudaDevAttrLocalL1CacheSupported __pyx_mstate_global->__pyx_n_s_cudaDevAttrLocalL1CacheSupported #define __pyx_n_s_cudaDevAttrManagedMemory __pyx_mstate_global->__pyx_n_s_cudaDevAttrManagedMemory #define __pyx_n_s_cudaDevAttrMax __pyx_mstate_global->__pyx_n_s_cudaDevAttrMax #define __pyx_n_s_cudaDevAttrMaxAccessPolicyWindow __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxAccessPolicyWindow #define __pyx_n_s_cudaDevAttrMaxBlockDimX __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxBlockDimX #define __pyx_n_s_cudaDevAttrMaxBlockDimY __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxBlockDimY #define __pyx_n_s_cudaDevAttrMaxBlockDimZ __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxBlockDimZ #define __pyx_n_s_cudaDevAttrMaxBlocksPerMultiproc __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxBlocksPerMultiproc #define __pyx_n_s_cudaDevAttrMaxGridDimX __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxGridDimX #define __pyx_n_s_cudaDevAttrMaxGridDimY __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxGridDimY #define __pyx_n_s_cudaDevAttrMaxGridDimZ __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxGridDimZ #define __pyx_n_s_cudaDevAttrMaxPersistingL2CacheS __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxPersistingL2CacheS #define __pyx_n_s_cudaDevAttrMaxPitch __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxPitch #define __pyx_n_s_cudaDevAttrMaxRegistersPerBlock __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxRegistersPerBlock #define __pyx_n_s_cudaDevAttrMaxRegistersPerMultip __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxRegistersPerMultip #define __pyx_n_s_cudaDevAttrMaxSharedMemoryPerBlo __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxSharedMemoryPerBlo #define __pyx_n_s_cudaDevAttrMaxSharedMemoryPerBlo_2 __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxSharedMemoryPerBlo_2 #define __pyx_n_s_cudaDevAttrMaxSharedMemoryPerMul __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxSharedMemoryPerMul #define __pyx_n_s_cudaDevAttrMaxSurface1DLayeredLa __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxSurface1DLayeredLa #define __pyx_n_s_cudaDevAttrMaxSurface1DLayeredWi __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxSurface1DLayeredWi #define __pyx_n_s_cudaDevAttrMaxSurface1DWidth __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxSurface1DWidth #define __pyx_n_s_cudaDevAttrMaxSurface2DHeight __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxSurface2DHeight #define __pyx_n_s_cudaDevAttrMaxSurface2DLayeredHe __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxSurface2DLayeredHe #define __pyx_n_s_cudaDevAttrMaxSurface2DLayeredLa __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxSurface2DLayeredLa #define __pyx_n_s_cudaDevAttrMaxSurface2DLayeredWi __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxSurface2DLayeredWi #define __pyx_n_s_cudaDevAttrMaxSurface2DWidth __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxSurface2DWidth #define __pyx_n_s_cudaDevAttrMaxSurface3DDepth __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxSurface3DDepth #define __pyx_n_s_cudaDevAttrMaxSurface3DHeight __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxSurface3DHeight #define __pyx_n_s_cudaDevAttrMaxSurface3DWidth __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxSurface3DWidth #define __pyx_n_s_cudaDevAttrMaxSurfaceCubemapLaye __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxSurfaceCubemapLaye #define __pyx_n_s_cudaDevAttrMaxSurfaceCubemapLaye_2 __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxSurfaceCubemapLaye_2 #define __pyx_n_s_cudaDevAttrMaxSurfaceCubemapWidt __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxSurfaceCubemapWidt #define __pyx_n_s_cudaDevAttrMaxTexture1DLayeredLa __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxTexture1DLayeredLa #define __pyx_n_s_cudaDevAttrMaxTexture1DLayeredWi __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxTexture1DLayeredWi #define __pyx_n_s_cudaDevAttrMaxTexture1DLinearWid __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxTexture1DLinearWid #define __pyx_n_s_cudaDevAttrMaxTexture1DMipmapped __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxTexture1DMipmapped #define __pyx_n_s_cudaDevAttrMaxTexture1DWidth __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxTexture1DWidth #define __pyx_n_s_cudaDevAttrMaxTexture2DGatherHei __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxTexture2DGatherHei #define __pyx_n_s_cudaDevAttrMaxTexture2DGatherWid __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxTexture2DGatherWid #define __pyx_n_s_cudaDevAttrMaxTexture2DHeight __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxTexture2DHeight #define __pyx_n_s_cudaDevAttrMaxTexture2DLayeredHe __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxTexture2DLayeredHe #define __pyx_n_s_cudaDevAttrMaxTexture2DLayeredLa __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxTexture2DLayeredLa #define __pyx_n_s_cudaDevAttrMaxTexture2DLayeredWi __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxTexture2DLayeredWi #define __pyx_n_s_cudaDevAttrMaxTexture2DLinearHei __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxTexture2DLinearHei #define __pyx_n_s_cudaDevAttrMaxTexture2DLinearPit __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxTexture2DLinearPit #define __pyx_n_s_cudaDevAttrMaxTexture2DLinearWid __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxTexture2DLinearWid #define __pyx_n_s_cudaDevAttrMaxTexture2DMipmapped __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxTexture2DMipmapped #define __pyx_n_s_cudaDevAttrMaxTexture2DMipmapped_2 __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxTexture2DMipmapped_2 #define __pyx_n_s_cudaDevAttrMaxTexture2DWidth __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxTexture2DWidth #define __pyx_n_s_cudaDevAttrMaxTexture3DDepth __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxTexture3DDepth #define __pyx_n_s_cudaDevAttrMaxTexture3DDepthAlt __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxTexture3DDepthAlt #define __pyx_n_s_cudaDevAttrMaxTexture3DHeight __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxTexture3DHeight #define __pyx_n_s_cudaDevAttrMaxTexture3DHeightAlt __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxTexture3DHeightAlt #define __pyx_n_s_cudaDevAttrMaxTexture3DWidth __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxTexture3DWidth #define __pyx_n_s_cudaDevAttrMaxTexture3DWidthAlt __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxTexture3DWidthAlt #define __pyx_n_s_cudaDevAttrMaxTextureCubemapLaye __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxTextureCubemapLaye #define __pyx_n_s_cudaDevAttrMaxTextureCubemapLaye_2 __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxTextureCubemapLaye_2 #define __pyx_n_s_cudaDevAttrMaxTextureCubemapWidt __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxTextureCubemapWidt #define __pyx_n_s_cudaDevAttrMaxThreadsPerBlock __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxThreadsPerBlock #define __pyx_n_s_cudaDevAttrMaxThreadsPerMultiPro __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxThreadsPerMultiPro #define __pyx_n_s_cudaDevAttrMaxTimelineSemaphoreI __pyx_mstate_global->__pyx_n_s_cudaDevAttrMaxTimelineSemaphoreI #define __pyx_n_s_cudaDevAttrMemSyncDomainCount __pyx_mstate_global->__pyx_n_s_cudaDevAttrMemSyncDomainCount #define __pyx_n_s_cudaDevAttrMemoryClockRate __pyx_mstate_global->__pyx_n_s_cudaDevAttrMemoryClockRate #define __pyx_n_s_cudaDevAttrMemoryPoolSupportedHa __pyx_mstate_global->__pyx_n_s_cudaDevAttrMemoryPoolSupportedHa #define __pyx_n_s_cudaDevAttrMemoryPoolsSupported __pyx_mstate_global->__pyx_n_s_cudaDevAttrMemoryPoolsSupported #define __pyx_n_s_cudaDevAttrMpsEnabled __pyx_mstate_global->__pyx_n_s_cudaDevAttrMpsEnabled #define __pyx_n_s_cudaDevAttrMultiGpuBoardGroupID __pyx_mstate_global->__pyx_n_s_cudaDevAttrMultiGpuBoardGroupID #define __pyx_n_s_cudaDevAttrMultiProcessorCount __pyx_mstate_global->__pyx_n_s_cudaDevAttrMultiProcessorCount #define __pyx_n_s_cudaDevAttrNumaConfig __pyx_mstate_global->__pyx_n_s_cudaDevAttrNumaConfig #define __pyx_n_s_cudaDevAttrNumaId __pyx_mstate_global->__pyx_n_s_cudaDevAttrNumaId #define __pyx_n_s_cudaDevAttrPageableMemoryAccess __pyx_mstate_global->__pyx_n_s_cudaDevAttrPageableMemoryAccess #define __pyx_n_s_cudaDevAttrPageableMemoryAccessU __pyx_mstate_global->__pyx_n_s_cudaDevAttrPageableMemoryAccessU #define __pyx_n_s_cudaDevAttrPciBusId __pyx_mstate_global->__pyx_n_s_cudaDevAttrPciBusId #define __pyx_n_s_cudaDevAttrPciDeviceId __pyx_mstate_global->__pyx_n_s_cudaDevAttrPciDeviceId #define __pyx_n_s_cudaDevAttrPciDomainId __pyx_mstate_global->__pyx_n_s_cudaDevAttrPciDomainId #define __pyx_n_s_cudaDevAttrReserved122 __pyx_mstate_global->__pyx_n_s_cudaDevAttrReserved122 #define __pyx_n_s_cudaDevAttrReserved123 __pyx_mstate_global->__pyx_n_s_cudaDevAttrReserved123 #define __pyx_n_s_cudaDevAttrReserved124 __pyx_mstate_global->__pyx_n_s_cudaDevAttrReserved124 #define __pyx_n_s_cudaDevAttrReserved127 __pyx_mstate_global->__pyx_n_s_cudaDevAttrReserved127 #define __pyx_n_s_cudaDevAttrReserved128 __pyx_mstate_global->__pyx_n_s_cudaDevAttrReserved128 #define __pyx_n_s_cudaDevAttrReserved129 __pyx_mstate_global->__pyx_n_s_cudaDevAttrReserved129 #define __pyx_n_s_cudaDevAttrReserved132 __pyx_mstate_global->__pyx_n_s_cudaDevAttrReserved132 #define __pyx_n_s_cudaDevAttrReserved92 __pyx_mstate_global->__pyx_n_s_cudaDevAttrReserved92 #define __pyx_n_s_cudaDevAttrReserved93 __pyx_mstate_global->__pyx_n_s_cudaDevAttrReserved93 #define __pyx_n_s_cudaDevAttrReserved94 __pyx_mstate_global->__pyx_n_s_cudaDevAttrReserved94 #define __pyx_n_s_cudaDevAttrReservedSharedMemoryP __pyx_mstate_global->__pyx_n_s_cudaDevAttrReservedSharedMemoryP #define __pyx_n_s_cudaDevAttrSingleToDoublePrecisi __pyx_mstate_global->__pyx_n_s_cudaDevAttrSingleToDoublePrecisi #define __pyx_n_s_cudaDevAttrSparseCudaArraySuppor __pyx_mstate_global->__pyx_n_s_cudaDevAttrSparseCudaArraySuppor #define __pyx_n_s_cudaDevAttrStreamPrioritiesSuppo __pyx_mstate_global->__pyx_n_s_cudaDevAttrStreamPrioritiesSuppo #define __pyx_n_s_cudaDevAttrSurfaceAlignment __pyx_mstate_global->__pyx_n_s_cudaDevAttrSurfaceAlignment #define __pyx_n_s_cudaDevAttrTccDriver __pyx_mstate_global->__pyx_n_s_cudaDevAttrTccDriver #define __pyx_n_s_cudaDevAttrTextureAlignment __pyx_mstate_global->__pyx_n_s_cudaDevAttrTextureAlignment #define __pyx_n_s_cudaDevAttrTexturePitchAlignment __pyx_mstate_global->__pyx_n_s_cudaDevAttrTexturePitchAlignment #define __pyx_n_s_cudaDevAttrTimelineSemaphoreInte __pyx_mstate_global->__pyx_n_s_cudaDevAttrTimelineSemaphoreInte #define __pyx_n_s_cudaDevAttrTotalConstantMemory __pyx_mstate_global->__pyx_n_s_cudaDevAttrTotalConstantMemory #define __pyx_n_s_cudaDevAttrUnifiedAddressing __pyx_mstate_global->__pyx_n_s_cudaDevAttrUnifiedAddressing #define __pyx_n_s_cudaDevAttrWarpSize __pyx_mstate_global->__pyx_n_s_cudaDevAttrWarpSize #define __pyx_n_s_cudaDevP2PAttrAccessSupported __pyx_mstate_global->__pyx_n_s_cudaDevP2PAttrAccessSupported #define __pyx_n_s_cudaDevP2PAttrCudaArrayAccessSup __pyx_mstate_global->__pyx_n_s_cudaDevP2PAttrCudaArrayAccessSup #define __pyx_n_s_cudaDevP2PAttrNativeAtomicSuppor __pyx_mstate_global->__pyx_n_s_cudaDevP2PAttrNativeAtomicSuppor #define __pyx_n_s_cudaDevP2PAttrPerformanceRank __pyx_mstate_global->__pyx_n_s_cudaDevP2PAttrPerformanceRank #define __pyx_n_s_cudaDeviceAttr __pyx_mstate_global->__pyx_n_s_cudaDeviceAttr #define __pyx_n_s_cudaDeviceBlockingSync __pyx_mstate_global->__pyx_n_s_cudaDeviceBlockingSync #define __pyx_n_s_cudaDeviceCanAccessPeer __pyx_mstate_global->__pyx_n_s_cudaDeviceCanAccessPeer #define __pyx_n_s_cudaDeviceCount __pyx_mstate_global->__pyx_n_s_cudaDeviceCount #define __pyx_n_s_cudaDeviceDisablePeerAccess __pyx_mstate_global->__pyx_n_s_cudaDeviceDisablePeerAccess #define __pyx_n_s_cudaDeviceEnablePeerAccess __pyx_mstate_global->__pyx_n_s_cudaDeviceEnablePeerAccess #define __pyx_n_s_cudaDeviceFlushGPUDirectRDMAWrit __pyx_mstate_global->__pyx_n_s_cudaDeviceFlushGPUDirectRDMAWrit #define __pyx_n_s_cudaDeviceGetAttribute __pyx_mstate_global->__pyx_n_s_cudaDeviceGetAttribute #define __pyx_n_s_cudaDeviceGetByPCIBusId __pyx_mstate_global->__pyx_n_s_cudaDeviceGetByPCIBusId #define __pyx_n_s_cudaDeviceGetCacheConfig __pyx_mstate_global->__pyx_n_s_cudaDeviceGetCacheConfig #define __pyx_n_s_cudaDeviceGetDefaultMemPool __pyx_mstate_global->__pyx_n_s_cudaDeviceGetDefaultMemPool #define __pyx_n_s_cudaDeviceGetGraphMemAttribute __pyx_mstate_global->__pyx_n_s_cudaDeviceGetGraphMemAttribute #define __pyx_n_s_cudaDeviceGetLimit __pyx_mstate_global->__pyx_n_s_cudaDeviceGetLimit #define __pyx_n_s_cudaDeviceGetMemPool __pyx_mstate_global->__pyx_n_s_cudaDeviceGetMemPool #define __pyx_n_s_cudaDeviceGetNvSciSyncAttributes __pyx_mstate_global->__pyx_n_s_cudaDeviceGetNvSciSyncAttributes #define __pyx_n_s_cudaDeviceGetP2PAttribute __pyx_mstate_global->__pyx_n_s_cudaDeviceGetP2PAttribute #define __pyx_n_s_cudaDeviceGetPCIBusId __pyx_mstate_global->__pyx_n_s_cudaDeviceGetPCIBusId #define __pyx_n_s_cudaDeviceGetSharedMemConfig __pyx_mstate_global->__pyx_n_s_cudaDeviceGetSharedMemConfig #define __pyx_n_s_cudaDeviceGetStreamPriorityRange __pyx_mstate_global->__pyx_n_s_cudaDeviceGetStreamPriorityRange #define __pyx_n_s_cudaDeviceGetTexture1DLinearMaxW __pyx_mstate_global->__pyx_n_s_cudaDeviceGetTexture1DLinearMaxW #define __pyx_n_s_cudaDeviceGraphMemTrim __pyx_mstate_global->__pyx_n_s_cudaDeviceGraphMemTrim #define __pyx_n_s_cudaDeviceLmemResizeToMax __pyx_mstate_global->__pyx_n_s_cudaDeviceLmemResizeToMax #define __pyx_n_s_cudaDeviceMapHost __pyx_mstate_global->__pyx_n_s_cudaDeviceMapHost #define __pyx_n_s_cudaDeviceMask __pyx_mstate_global->__pyx_n_s_cudaDeviceMask #define __pyx_n_s_cudaDeviceNumaConfig __pyx_mstate_global->__pyx_n_s_cudaDeviceNumaConfig #define __pyx_n_s_cudaDeviceNumaConfigNone __pyx_mstate_global->__pyx_n_s_cudaDeviceNumaConfigNone #define __pyx_n_s_cudaDeviceNumaConfigNumaNode __pyx_mstate_global->__pyx_n_s_cudaDeviceNumaConfigNumaNode #define __pyx_n_s_cudaDeviceP2PAttr __pyx_mstate_global->__pyx_n_s_cudaDeviceP2PAttr #define __pyx_n_s_cudaDeviceProp __pyx_mstate_global->__pyx_n_s_cudaDeviceProp #define __pyx_n_s_cudaDeviceProp___reduce_cython __pyx_mstate_global->__pyx_n_s_cudaDeviceProp___reduce_cython #define __pyx_n_s_cudaDeviceProp___setstate_cython __pyx_mstate_global->__pyx_n_s_cudaDeviceProp___setstate_cython #define __pyx_n_s_cudaDeviceProp_getPtr __pyx_mstate_global->__pyx_n_s_cudaDeviceProp_getPtr #define __pyx_n_s_cudaDeviceRegisterAsyncNotificat __pyx_mstate_global->__pyx_n_s_cudaDeviceRegisterAsyncNotificat #define __pyx_n_s_cudaDeviceReset __pyx_mstate_global->__pyx_n_s_cudaDeviceReset #define __pyx_n_s_cudaDeviceScheduleAuto __pyx_mstate_global->__pyx_n_s_cudaDeviceScheduleAuto #define __pyx_n_s_cudaDeviceScheduleBlockingSync __pyx_mstate_global->__pyx_n_s_cudaDeviceScheduleBlockingSync #define __pyx_n_s_cudaDeviceScheduleMask __pyx_mstate_global->__pyx_n_s_cudaDeviceScheduleMask #define __pyx_n_s_cudaDeviceScheduleSpin __pyx_mstate_global->__pyx_n_s_cudaDeviceScheduleSpin #define __pyx_n_s_cudaDeviceScheduleYield __pyx_mstate_global->__pyx_n_s_cudaDeviceScheduleYield #define __pyx_n_s_cudaDeviceSetCacheConfig __pyx_mstate_global->__pyx_n_s_cudaDeviceSetCacheConfig #define __pyx_n_s_cudaDeviceSetGraphMemAttribute __pyx_mstate_global->__pyx_n_s_cudaDeviceSetGraphMemAttribute #define __pyx_n_s_cudaDeviceSetLimit __pyx_mstate_global->__pyx_n_s_cudaDeviceSetLimit #define __pyx_n_s_cudaDeviceSetMemPool __pyx_mstate_global->__pyx_n_s_cudaDeviceSetMemPool #define __pyx_n_s_cudaDeviceSetSharedMemConfig __pyx_mstate_global->__pyx_n_s_cudaDeviceSetSharedMemConfig #define __pyx_n_s_cudaDeviceSyncMemops __pyx_mstate_global->__pyx_n_s_cudaDeviceSyncMemops #define __pyx_n_s_cudaDeviceSynchronize __pyx_mstate_global->__pyx_n_s_cudaDeviceSynchronize #define __pyx_n_s_cudaDeviceUnregisterAsyncNotific __pyx_mstate_global->__pyx_n_s_cudaDeviceUnregisterAsyncNotific #define __pyx_n_s_cudaDriverEntryPointQueryResult __pyx_mstate_global->__pyx_n_s_cudaDriverEntryPointQueryResult #define __pyx_n_s_cudaDriverEntryPointSuccess __pyx_mstate_global->__pyx_n_s_cudaDriverEntryPointSuccess #define __pyx_n_s_cudaDriverEntryPointSymbolNotFou __pyx_mstate_global->__pyx_n_s_cudaDriverEntryPointSymbolNotFou #define __pyx_n_s_cudaDriverEntryPointVersionNotSu __pyx_mstate_global->__pyx_n_s_cudaDriverEntryPointVersionNotSu #define __pyx_n_s_cudaDriverGetVersion __pyx_mstate_global->__pyx_n_s_cudaDriverGetVersion #define __pyx_n_s_cudaEGLStreamConsumerAcquireFram __pyx_mstate_global->__pyx_n_s_cudaEGLStreamConsumerAcquireFram #define __pyx_n_s_cudaEGLStreamConsumerConnect __pyx_mstate_global->__pyx_n_s_cudaEGLStreamConsumerConnect #define __pyx_n_s_cudaEGLStreamConsumerConnectWith __pyx_mstate_global->__pyx_n_s_cudaEGLStreamConsumerConnectWith #define __pyx_n_s_cudaEGLStreamConsumerDisconnect __pyx_mstate_global->__pyx_n_s_cudaEGLStreamConsumerDisconnect #define __pyx_n_s_cudaEGLStreamConsumerReleaseFram __pyx_mstate_global->__pyx_n_s_cudaEGLStreamConsumerReleaseFram #define __pyx_n_s_cudaEGLStreamProducerConnect __pyx_mstate_global->__pyx_n_s_cudaEGLStreamProducerConnect #define __pyx_n_s_cudaEGLStreamProducerDisconnect __pyx_mstate_global->__pyx_n_s_cudaEGLStreamProducerDisconnect #define __pyx_n_s_cudaEGLStreamProducerPresentFram __pyx_mstate_global->__pyx_n_s_cudaEGLStreamProducerPresentFram #define __pyx_n_s_cudaEGLStreamProducerReturnFrame __pyx_mstate_global->__pyx_n_s_cudaEGLStreamProducerReturnFrame #define __pyx_n_s_cudaEglColorFormat __pyx_mstate_global->__pyx_n_s_cudaEglColorFormat #define __pyx_n_s_cudaEglColorFormatA __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatA #define __pyx_n_s_cudaEglColorFormatABGR __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatABGR #define __pyx_n_s_cudaEglColorFormatARGB __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatARGB #define __pyx_n_s_cudaEglColorFormatAYUV __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatAYUV #define __pyx_n_s_cudaEglColorFormatAYUV_ER __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatAYUV_ER #define __pyx_n_s_cudaEglColorFormatBGRA __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatBGRA #define __pyx_n_s_cudaEglColorFormatBayer10BGGR __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatBayer10BGGR #define __pyx_n_s_cudaEglColorFormatBayer10CCCC __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatBayer10CCCC #define __pyx_n_s_cudaEglColorFormatBayer10GBRG __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatBayer10GBRG #define __pyx_n_s_cudaEglColorFormatBayer10GRBG __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatBayer10GRBG #define __pyx_n_s_cudaEglColorFormatBayer10RGGB __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatBayer10RGGB #define __pyx_n_s_cudaEglColorFormatBayer12BCCR __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatBayer12BCCR #define __pyx_n_s_cudaEglColorFormatBayer12BGGR __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatBayer12BGGR #define __pyx_n_s_cudaEglColorFormatBayer12CBRC __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatBayer12CBRC #define __pyx_n_s_cudaEglColorFormatBayer12CCCC __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatBayer12CCCC #define __pyx_n_s_cudaEglColorFormatBayer12CRBC __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatBayer12CRBC #define __pyx_n_s_cudaEglColorFormatBayer12GBRG __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatBayer12GBRG #define __pyx_n_s_cudaEglColorFormatBayer12GRBG __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatBayer12GRBG #define __pyx_n_s_cudaEglColorFormatBayer12RCCB __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatBayer12RCCB #define __pyx_n_s_cudaEglColorFormatBayer12RGGB __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatBayer12RGGB #define __pyx_n_s_cudaEglColorFormatBayer14BGGR __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatBayer14BGGR #define __pyx_n_s_cudaEglColorFormatBayer14GBRG __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatBayer14GBRG #define __pyx_n_s_cudaEglColorFormatBayer14GRBG __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatBayer14GRBG #define __pyx_n_s_cudaEglColorFormatBayer14RGGB __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatBayer14RGGB #define __pyx_n_s_cudaEglColorFormatBayer20BGGR __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatBayer20BGGR #define __pyx_n_s_cudaEglColorFormatBayer20GBRG __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatBayer20GBRG #define __pyx_n_s_cudaEglColorFormatBayer20GRBG __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatBayer20GRBG #define __pyx_n_s_cudaEglColorFormatBayer20RGGB __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatBayer20RGGB #define __pyx_n_s_cudaEglColorFormatBayerBCCR __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatBayerBCCR #define __pyx_n_s_cudaEglColorFormatBayerBGGR __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatBayerBGGR #define __pyx_n_s_cudaEglColorFormatBayerCBRC __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatBayerCBRC #define __pyx_n_s_cudaEglColorFormatBayerCRBC __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatBayerCRBC #define __pyx_n_s_cudaEglColorFormatBayerGBRG __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatBayerGBRG #define __pyx_n_s_cudaEglColorFormatBayerGRBG __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatBayerGRBG #define __pyx_n_s_cudaEglColorFormatBayerIspBGGR __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatBayerIspBGGR #define __pyx_n_s_cudaEglColorFormatBayerIspGBRG __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatBayerIspGBRG #define __pyx_n_s_cudaEglColorFormatBayerIspGRBG __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatBayerIspGRBG #define __pyx_n_s_cudaEglColorFormatBayerIspRGGB __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatBayerIspRGGB #define __pyx_n_s_cudaEglColorFormatBayerRCCB __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatBayerRCCB #define __pyx_n_s_cudaEglColorFormatBayerRGGB __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatBayerRGGB #define __pyx_n_s_cudaEglColorFormatL __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatL #define __pyx_n_s_cudaEglColorFormatR __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatR #define __pyx_n_s_cudaEglColorFormatRG __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatRG #define __pyx_n_s_cudaEglColorFormatRGBA __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatRGBA #define __pyx_n_s_cudaEglColorFormatUYVY422 __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatUYVY422 #define __pyx_n_s_cudaEglColorFormatUYVY_ER __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatUYVY_ER #define __pyx_n_s_cudaEglColorFormatVYUY __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatVYUY #define __pyx_n_s_cudaEglColorFormatVYUY_ER __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatVYUY_ER #define __pyx_n_s_cudaEglColorFormatY __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatY #define __pyx_n_s_cudaEglColorFormatY10V10U10_420S __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatY10V10U10_420S #define __pyx_n_s_cudaEglColorFormatY10V10U10_420S_2 __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatY10V10U10_420S_2 #define __pyx_n_s_cudaEglColorFormatY10V10U10_420S_3 __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatY10V10U10_420S_3 #define __pyx_n_s_cudaEglColorFormatY10V10U10_420S_4 __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatY10V10U10_420S_4 #define __pyx_n_s_cudaEglColorFormatY10V10U10_420S_5 __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatY10V10U10_420S_5 #define __pyx_n_s_cudaEglColorFormatY10V10U10_422S __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatY10V10U10_422S #define __pyx_n_s_cudaEglColorFormatY10V10U10_422S_2 __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatY10V10U10_422S_2 #define __pyx_n_s_cudaEglColorFormatY10V10U10_422S_3 __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatY10V10U10_422S_3 #define __pyx_n_s_cudaEglColorFormatY10V10U10_444S __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatY10V10U10_444S #define __pyx_n_s_cudaEglColorFormatY10V10U10_444S_2 __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatY10V10U10_444S_2 #define __pyx_n_s_cudaEglColorFormatY10V10U10_444S_3 __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatY10V10U10_444S_3 #define __pyx_n_s_cudaEglColorFormatY10_709_ER __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatY10_709_ER #define __pyx_n_s_cudaEglColorFormatY10_ER __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatY10_ER #define __pyx_n_s_cudaEglColorFormatY12V12U12_420S __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatY12V12U12_420S #define __pyx_n_s_cudaEglColorFormatY12V12U12_420S_2 __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatY12V12U12_420S_2 #define __pyx_n_s_cudaEglColorFormatY12V12U12_420S_3 __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatY12V12U12_420S_3 #define __pyx_n_s_cudaEglColorFormatY12V12U12_444S __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatY12V12U12_444S #define __pyx_n_s_cudaEglColorFormatY12V12U12_444S_2 __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatY12V12U12_444S_2 #define __pyx_n_s_cudaEglColorFormatY12V12U12_444S_3 __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatY12V12U12_444S_3 #define __pyx_n_s_cudaEglColorFormatY12_709_ER __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatY12_709_ER #define __pyx_n_s_cudaEglColorFormatY12_ER __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatY12_ER #define __pyx_n_s_cudaEglColorFormatYUV420Planar __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYUV420Planar #define __pyx_n_s_cudaEglColorFormatYUV420Planar_2 __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYUV420Planar_2 #define __pyx_n_s_cudaEglColorFormatYUV420Planar_7 __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYUV420Planar_7 #define __pyx_n_s_cudaEglColorFormatYUV420Planar_E __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYUV420Planar_E #define __pyx_n_s_cudaEglColorFormatYUV420SemiPlan __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYUV420SemiPlan #define __pyx_n_s_cudaEglColorFormatYUV420SemiPlan_2 __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYUV420SemiPlan_2 #define __pyx_n_s_cudaEglColorFormatYUV420SemiPlan_3 __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYUV420SemiPlan_3 #define __pyx_n_s_cudaEglColorFormatYUV420SemiPlan_4 __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYUV420SemiPlan_4 #define __pyx_n_s_cudaEglColorFormatYUV422Planar __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYUV422Planar #define __pyx_n_s_cudaEglColorFormatYUV422Planar_E __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYUV422Planar_E #define __pyx_n_s_cudaEglColorFormatYUV422SemiPlan __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYUV422SemiPlan #define __pyx_n_s_cudaEglColorFormatYUV422SemiPlan_2 __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYUV422SemiPlan_2 #define __pyx_n_s_cudaEglColorFormatYUV444Planar __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYUV444Planar #define __pyx_n_s_cudaEglColorFormatYUV444Planar_E __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYUV444Planar_E #define __pyx_n_s_cudaEglColorFormatYUV444SemiPlan __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYUV444SemiPlan #define __pyx_n_s_cudaEglColorFormatYUV444SemiPlan_2 __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYUV444SemiPlan_2 #define __pyx_n_s_cudaEglColorFormatYUVA __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYUVA #define __pyx_n_s_cudaEglColorFormatYUVA_ER __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYUVA_ER #define __pyx_n_s_cudaEglColorFormatYUYV422 __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYUYV422 #define __pyx_n_s_cudaEglColorFormatYUYV_ER __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYUYV_ER #define __pyx_n_s_cudaEglColorFormatYVU420Planar __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYVU420Planar #define __pyx_n_s_cudaEglColorFormatYVU420Planar_2 __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYVU420Planar_2 #define __pyx_n_s_cudaEglColorFormatYVU420Planar_7 __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYVU420Planar_7 #define __pyx_n_s_cudaEglColorFormatYVU420Planar_E __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYVU420Planar_E #define __pyx_n_s_cudaEglColorFormatYVU420SemiPlan __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYVU420SemiPlan #define __pyx_n_s_cudaEglColorFormatYVU420SemiPlan_2 __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYVU420SemiPlan_2 #define __pyx_n_s_cudaEglColorFormatYVU420SemiPlan_3 __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYVU420SemiPlan_3 #define __pyx_n_s_cudaEglColorFormatYVU420SemiPlan_4 __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYVU420SemiPlan_4 #define __pyx_n_s_cudaEglColorFormatYVU422Planar __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYVU422Planar #define __pyx_n_s_cudaEglColorFormatYVU422Planar_E __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYVU422Planar_E #define __pyx_n_s_cudaEglColorFormatYVU422SemiPlan __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYVU422SemiPlan #define __pyx_n_s_cudaEglColorFormatYVU422SemiPlan_2 __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYVU422SemiPlan_2 #define __pyx_n_s_cudaEglColorFormatYVU444Planar __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYVU444Planar #define __pyx_n_s_cudaEglColorFormatYVU444Planar_E __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYVU444Planar_E #define __pyx_n_s_cudaEglColorFormatYVU444SemiPlan __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYVU444SemiPlan #define __pyx_n_s_cudaEglColorFormatYVU444SemiPlan_2 __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYVU444SemiPlan_2 #define __pyx_n_s_cudaEglColorFormatYVYU __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYVYU #define __pyx_n_s_cudaEglColorFormatYVYU_ER __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatYVYU_ER #define __pyx_n_s_cudaEglColorFormatY_709_ER __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatY_709_ER #define __pyx_n_s_cudaEglColorFormatY_ER __pyx_mstate_global->__pyx_n_s_cudaEglColorFormatY_ER #define __pyx_n_s_cudaEglFrame __pyx_mstate_global->__pyx_n_s_cudaEglFrame #define __pyx_n_s_cudaEglFrameType __pyx_mstate_global->__pyx_n_s_cudaEglFrameType #define __pyx_n_s_cudaEglFrameTypeArray __pyx_mstate_global->__pyx_n_s_cudaEglFrameTypeArray #define __pyx_n_s_cudaEglFrameTypePitch __pyx_mstate_global->__pyx_n_s_cudaEglFrameTypePitch #define __pyx_n_s_cudaEglFrame_st __pyx_mstate_global->__pyx_n_s_cudaEglFrame_st #define __pyx_n_s_cudaEglFrame_st___reduce_cython __pyx_mstate_global->__pyx_n_s_cudaEglFrame_st___reduce_cython #define __pyx_n_s_cudaEglFrame_st___setstate_cytho __pyx_mstate_global->__pyx_n_s_cudaEglFrame_st___setstate_cytho #define __pyx_n_s_cudaEglFrame_st_getPtr __pyx_mstate_global->__pyx_n_s_cudaEglFrame_st_getPtr #define __pyx_n_s_cudaEglPlaneDesc __pyx_mstate_global->__pyx_n_s_cudaEglPlaneDesc #define __pyx_n_s_cudaEglPlaneDesc_st __pyx_mstate_global->__pyx_n_s_cudaEglPlaneDesc_st #define __pyx_n_s_cudaEglPlaneDesc_st___reduce_cyt __pyx_mstate_global->__pyx_n_s_cudaEglPlaneDesc_st___reduce_cyt #define __pyx_n_s_cudaEglPlaneDesc_st___setstate_c __pyx_mstate_global->__pyx_n_s_cudaEglPlaneDesc_st___setstate_c #define __pyx_n_s_cudaEglPlaneDesc_st_getPtr __pyx_mstate_global->__pyx_n_s_cudaEglPlaneDesc_st_getPtr #define __pyx_n_s_cudaEglResourceLocationFlags __pyx_mstate_global->__pyx_n_s_cudaEglResourceLocationFlags #define __pyx_n_s_cudaEglResourceLocationSysmem __pyx_mstate_global->__pyx_n_s_cudaEglResourceLocationSysmem #define __pyx_n_s_cudaEglResourceLocationVidmem __pyx_mstate_global->__pyx_n_s_cudaEglResourceLocationVidmem #define __pyx_n_s_cudaEglStreamConnection __pyx_mstate_global->__pyx_n_s_cudaEglStreamConnection #define __pyx_n_s_cudaEnableDefault __pyx_mstate_global->__pyx_n_s_cudaEnableDefault #define __pyx_n_s_cudaEnableLegacyStream __pyx_mstate_global->__pyx_n_s_cudaEnableLegacyStream #define __pyx_n_s_cudaEnablePerThreadDefaultStream __pyx_mstate_global->__pyx_n_s_cudaEnablePerThreadDefaultStream #define __pyx_n_s_cudaErrorAddressOfConstant __pyx_mstate_global->__pyx_n_s_cudaErrorAddressOfConstant #define __pyx_n_s_cudaErrorAlreadyAcquired __pyx_mstate_global->__pyx_n_s_cudaErrorAlreadyAcquired #define __pyx_n_s_cudaErrorAlreadyMapped __pyx_mstate_global->__pyx_n_s_cudaErrorAlreadyMapped #define __pyx_n_s_cudaErrorApiFailureBase __pyx_mstate_global->__pyx_n_s_cudaErrorApiFailureBase #define __pyx_n_s_cudaErrorArrayIsMapped __pyx_mstate_global->__pyx_n_s_cudaErrorArrayIsMapped #define __pyx_n_s_cudaErrorAssert __pyx_mstate_global->__pyx_n_s_cudaErrorAssert #define __pyx_n_s_cudaErrorCallRequiresNewerDriver __pyx_mstate_global->__pyx_n_s_cudaErrorCallRequiresNewerDriver #define __pyx_n_s_cudaErrorCapturedEvent __pyx_mstate_global->__pyx_n_s_cudaErrorCapturedEvent #define __pyx_n_s_cudaErrorCdpNotSupported __pyx_mstate_global->__pyx_n_s_cudaErrorCdpNotSupported #define __pyx_n_s_cudaErrorCdpVersionMismatch __pyx_mstate_global->__pyx_n_s_cudaErrorCdpVersionMismatch #define __pyx_n_s_cudaErrorCompatNotSupportedOnDev __pyx_mstate_global->__pyx_n_s_cudaErrorCompatNotSupportedOnDev #define __pyx_n_s_cudaErrorContextIsDestroyed __pyx_mstate_global->__pyx_n_s_cudaErrorContextIsDestroyed #define __pyx_n_s_cudaErrorCooperativeLaunchTooLar __pyx_mstate_global->__pyx_n_s_cudaErrorCooperativeLaunchTooLar #define __pyx_n_s_cudaErrorCudartUnloading __pyx_mstate_global->__pyx_n_s_cudaErrorCudartUnloading #define __pyx_n_s_cudaErrorDeviceAlreadyInUse __pyx_mstate_global->__pyx_n_s_cudaErrorDeviceAlreadyInUse #define __pyx_n_s_cudaErrorDeviceNotLicensed __pyx_mstate_global->__pyx_n_s_cudaErrorDeviceNotLicensed #define __pyx_n_s_cudaErrorDeviceUninitialized __pyx_mstate_global->__pyx_n_s_cudaErrorDeviceUninitialized #define __pyx_n_s_cudaErrorDevicesUnavailable __pyx_mstate_global->__pyx_n_s_cudaErrorDevicesUnavailable #define __pyx_n_s_cudaErrorDuplicateSurfaceName __pyx_mstate_global->__pyx_n_s_cudaErrorDuplicateSurfaceName #define __pyx_n_s_cudaErrorDuplicateTextureName __pyx_mstate_global->__pyx_n_s_cudaErrorDuplicateTextureName #define __pyx_n_s_cudaErrorDuplicateVariableName __pyx_mstate_global->__pyx_n_s_cudaErrorDuplicateVariableName #define __pyx_n_s_cudaErrorECCUncorrectable __pyx_mstate_global->__pyx_n_s_cudaErrorECCUncorrectable #define __pyx_n_s_cudaErrorExternalDevice __pyx_mstate_global->__pyx_n_s_cudaErrorExternalDevice #define __pyx_n_s_cudaErrorFileNotFound __pyx_mstate_global->__pyx_n_s_cudaErrorFileNotFound #define __pyx_n_s_cudaErrorFunctionNotLoaded __pyx_mstate_global->__pyx_n_s_cudaErrorFunctionNotLoaded #define __pyx_n_s_cudaErrorGraphExecUpdateFailure __pyx_mstate_global->__pyx_n_s_cudaErrorGraphExecUpdateFailure #define __pyx_n_s_cudaErrorHardwareStackError __pyx_mstate_global->__pyx_n_s_cudaErrorHardwareStackError #define __pyx_n_s_cudaErrorHostMemoryAlreadyRegist __pyx_mstate_global->__pyx_n_s_cudaErrorHostMemoryAlreadyRegist #define __pyx_n_s_cudaErrorHostMemoryNotRegistered __pyx_mstate_global->__pyx_n_s_cudaErrorHostMemoryNotRegistered #define __pyx_n_s_cudaErrorIllegalAddress __pyx_mstate_global->__pyx_n_s_cudaErrorIllegalAddress #define __pyx_n_s_cudaErrorIllegalInstruction __pyx_mstate_global->__pyx_n_s_cudaErrorIllegalInstruction #define __pyx_n_s_cudaErrorIllegalState __pyx_mstate_global->__pyx_n_s_cudaErrorIllegalState #define __pyx_n_s_cudaErrorIncompatibleDriverConte __pyx_mstate_global->__pyx_n_s_cudaErrorIncompatibleDriverConte #define __pyx_n_s_cudaErrorInitializationError __pyx_mstate_global->__pyx_n_s_cudaErrorInitializationError #define __pyx_n_s_cudaErrorInsufficientDriver __pyx_mstate_global->__pyx_n_s_cudaErrorInsufficientDriver #define __pyx_n_s_cudaErrorInvalidAddressSpace __pyx_mstate_global->__pyx_n_s_cudaErrorInvalidAddressSpace #define __pyx_n_s_cudaErrorInvalidChannelDescripto __pyx_mstate_global->__pyx_n_s_cudaErrorInvalidChannelDescripto #define __pyx_n_s_cudaErrorInvalidClusterSize __pyx_mstate_global->__pyx_n_s_cudaErrorInvalidClusterSize #define __pyx_n_s_cudaErrorInvalidConfiguration __pyx_mstate_global->__pyx_n_s_cudaErrorInvalidConfiguration #define __pyx_n_s_cudaErrorInvalidDevice __pyx_mstate_global->__pyx_n_s_cudaErrorInvalidDevice #define __pyx_n_s_cudaErrorInvalidDeviceFunction __pyx_mstate_global->__pyx_n_s_cudaErrorInvalidDeviceFunction #define __pyx_n_s_cudaErrorInvalidDevicePointer __pyx_mstate_global->__pyx_n_s_cudaErrorInvalidDevicePointer #define __pyx_n_s_cudaErrorInvalidFilterSetting __pyx_mstate_global->__pyx_n_s_cudaErrorInvalidFilterSetting #define __pyx_n_s_cudaErrorInvalidGraphicsContext __pyx_mstate_global->__pyx_n_s_cudaErrorInvalidGraphicsContext #define __pyx_n_s_cudaErrorInvalidHostPointer __pyx_mstate_global->__pyx_n_s_cudaErrorInvalidHostPointer #define __pyx_n_s_cudaErrorInvalidKernelImage __pyx_mstate_global->__pyx_n_s_cudaErrorInvalidKernelImage #define __pyx_n_s_cudaErrorInvalidMemcpyDirection __pyx_mstate_global->__pyx_n_s_cudaErrorInvalidMemcpyDirection #define __pyx_n_s_cudaErrorInvalidNormSetting __pyx_mstate_global->__pyx_n_s_cudaErrorInvalidNormSetting #define __pyx_n_s_cudaErrorInvalidPc __pyx_mstate_global->__pyx_n_s_cudaErrorInvalidPc #define __pyx_n_s_cudaErrorInvalidPitchValue __pyx_mstate_global->__pyx_n_s_cudaErrorInvalidPitchValue #define __pyx_n_s_cudaErrorInvalidPtx __pyx_mstate_global->__pyx_n_s_cudaErrorInvalidPtx #define __pyx_n_s_cudaErrorInvalidResourceConfigur __pyx_mstate_global->__pyx_n_s_cudaErrorInvalidResourceConfigur #define __pyx_n_s_cudaErrorInvalidResourceHandle __pyx_mstate_global->__pyx_n_s_cudaErrorInvalidResourceHandle #define __pyx_n_s_cudaErrorInvalidResourceType __pyx_mstate_global->__pyx_n_s_cudaErrorInvalidResourceType #define __pyx_n_s_cudaErrorInvalidSource __pyx_mstate_global->__pyx_n_s_cudaErrorInvalidSource #define __pyx_n_s_cudaErrorInvalidSurface __pyx_mstate_global->__pyx_n_s_cudaErrorInvalidSurface #define __pyx_n_s_cudaErrorInvalidSymbol __pyx_mstate_global->__pyx_n_s_cudaErrorInvalidSymbol #define __pyx_n_s_cudaErrorInvalidTexture __pyx_mstate_global->__pyx_n_s_cudaErrorInvalidTexture #define __pyx_n_s_cudaErrorInvalidTextureBinding __pyx_mstate_global->__pyx_n_s_cudaErrorInvalidTextureBinding #define __pyx_n_s_cudaErrorInvalidValue __pyx_mstate_global->__pyx_n_s_cudaErrorInvalidValue #define __pyx_n_s_cudaErrorJitCompilationDisabled __pyx_mstate_global->__pyx_n_s_cudaErrorJitCompilationDisabled #define __pyx_n_s_cudaErrorJitCompilerNotFound __pyx_mstate_global->__pyx_n_s_cudaErrorJitCompilerNotFound #define __pyx_n_s_cudaErrorLaunchFailure __pyx_mstate_global->__pyx_n_s_cudaErrorLaunchFailure #define __pyx_n_s_cudaErrorLaunchFileScopedSurf __pyx_mstate_global->__pyx_n_s_cudaErrorLaunchFileScopedSurf #define __pyx_n_s_cudaErrorLaunchFileScopedTex __pyx_mstate_global->__pyx_n_s_cudaErrorLaunchFileScopedTex #define __pyx_n_s_cudaErrorLaunchIncompatibleTextu __pyx_mstate_global->__pyx_n_s_cudaErrorLaunchIncompatibleTextu #define __pyx_n_s_cudaErrorLaunchMaxDepthExceeded __pyx_mstate_global->__pyx_n_s_cudaErrorLaunchMaxDepthExceeded #define __pyx_n_s_cudaErrorLaunchOutOfResources __pyx_mstate_global->__pyx_n_s_cudaErrorLaunchOutOfResources #define __pyx_n_s_cudaErrorLaunchPendingCountExcee __pyx_mstate_global->__pyx_n_s_cudaErrorLaunchPendingCountExcee #define __pyx_n_s_cudaErrorLaunchTimeout __pyx_mstate_global->__pyx_n_s_cudaErrorLaunchTimeout #define __pyx_n_s_cudaErrorLossyQuery __pyx_mstate_global->__pyx_n_s_cudaErrorLossyQuery #define __pyx_n_s_cudaErrorMapBufferObjectFailed __pyx_mstate_global->__pyx_n_s_cudaErrorMapBufferObjectFailed #define __pyx_n_s_cudaErrorMemoryAllocation __pyx_mstate_global->__pyx_n_s_cudaErrorMemoryAllocation #define __pyx_n_s_cudaErrorMemoryValueTooLarge __pyx_mstate_global->__pyx_n_s_cudaErrorMemoryValueTooLarge #define __pyx_n_s_cudaErrorMisalignedAddress __pyx_mstate_global->__pyx_n_s_cudaErrorMisalignedAddress #define __pyx_n_s_cudaErrorMissingConfiguration __pyx_mstate_global->__pyx_n_s_cudaErrorMissingConfiguration #define __pyx_n_s_cudaErrorMixedDeviceExecution __pyx_mstate_global->__pyx_n_s_cudaErrorMixedDeviceExecution #define __pyx_n_s_cudaErrorMpsClientTerminated __pyx_mstate_global->__pyx_n_s_cudaErrorMpsClientTerminated #define __pyx_n_s_cudaErrorMpsConnectionFailed __pyx_mstate_global->__pyx_n_s_cudaErrorMpsConnectionFailed #define __pyx_n_s_cudaErrorMpsMaxClientsReached __pyx_mstate_global->__pyx_n_s_cudaErrorMpsMaxClientsReached #define __pyx_n_s_cudaErrorMpsMaxConnectionsReache __pyx_mstate_global->__pyx_n_s_cudaErrorMpsMaxConnectionsReache #define __pyx_n_s_cudaErrorMpsRpcFailure __pyx_mstate_global->__pyx_n_s_cudaErrorMpsRpcFailure #define __pyx_n_s_cudaErrorMpsServerNotReady __pyx_mstate_global->__pyx_n_s_cudaErrorMpsServerNotReady #define __pyx_n_s_cudaErrorNoDevice __pyx_mstate_global->__pyx_n_s_cudaErrorNoDevice #define __pyx_n_s_cudaErrorNoKernelImageForDevice __pyx_mstate_global->__pyx_n_s_cudaErrorNoKernelImageForDevice #define __pyx_n_s_cudaErrorNotMapped __pyx_mstate_global->__pyx_n_s_cudaErrorNotMapped #define __pyx_n_s_cudaErrorNotMappedAsArray __pyx_mstate_global->__pyx_n_s_cudaErrorNotMappedAsArray #define __pyx_n_s_cudaErrorNotMappedAsPointer __pyx_mstate_global->__pyx_n_s_cudaErrorNotMappedAsPointer #define __pyx_n_s_cudaErrorNotPermitted __pyx_mstate_global->__pyx_n_s_cudaErrorNotPermitted #define __pyx_n_s_cudaErrorNotReady __pyx_mstate_global->__pyx_n_s_cudaErrorNotReady #define __pyx_n_s_cudaErrorNotSupported __pyx_mstate_global->__pyx_n_s_cudaErrorNotSupported #define __pyx_n_s_cudaErrorNotYetImplemented __pyx_mstate_global->__pyx_n_s_cudaErrorNotYetImplemented #define __pyx_n_s_cudaErrorNvlinkUncorrectable __pyx_mstate_global->__pyx_n_s_cudaErrorNvlinkUncorrectable #define __pyx_n_s_cudaErrorOperatingSystem __pyx_mstate_global->__pyx_n_s_cudaErrorOperatingSystem #define __pyx_n_s_cudaErrorPeerAccessAlreadyEnable __pyx_mstate_global->__pyx_n_s_cudaErrorPeerAccessAlreadyEnable #define __pyx_n_s_cudaErrorPeerAccessNotEnabled __pyx_mstate_global->__pyx_n_s_cudaErrorPeerAccessNotEnabled #define __pyx_n_s_cudaErrorPeerAccessUnsupported __pyx_mstate_global->__pyx_n_s_cudaErrorPeerAccessUnsupported #define __pyx_n_s_cudaErrorPriorLaunchFailure __pyx_mstate_global->__pyx_n_s_cudaErrorPriorLaunchFailure #define __pyx_n_s_cudaErrorProfilerAlreadyStarted __pyx_mstate_global->__pyx_n_s_cudaErrorProfilerAlreadyStarted #define __pyx_n_s_cudaErrorProfilerAlreadyStopped __pyx_mstate_global->__pyx_n_s_cudaErrorProfilerAlreadyStopped #define __pyx_n_s_cudaErrorProfilerDisabled __pyx_mstate_global->__pyx_n_s_cudaErrorProfilerDisabled #define __pyx_n_s_cudaErrorProfilerNotInitialized __pyx_mstate_global->__pyx_n_s_cudaErrorProfilerNotInitialized #define __pyx_n_s_cudaErrorSetOnActiveProcess __pyx_mstate_global->__pyx_n_s_cudaErrorSetOnActiveProcess #define __pyx_n_s_cudaErrorSharedObjectInitFailed __pyx_mstate_global->__pyx_n_s_cudaErrorSharedObjectInitFailed #define __pyx_n_s_cudaErrorSharedObjectSymbolNotFo __pyx_mstate_global->__pyx_n_s_cudaErrorSharedObjectSymbolNotFo #define __pyx_n_s_cudaErrorSoftwareValidityNotEsta __pyx_mstate_global->__pyx_n_s_cudaErrorSoftwareValidityNotEsta #define __pyx_n_s_cudaErrorStartupFailure __pyx_mstate_global->__pyx_n_s_cudaErrorStartupFailure #define __pyx_n_s_cudaErrorStreamCaptureImplicit __pyx_mstate_global->__pyx_n_s_cudaErrorStreamCaptureImplicit #define __pyx_n_s_cudaErrorStreamCaptureInvalidate __pyx_mstate_global->__pyx_n_s_cudaErrorStreamCaptureInvalidate #define __pyx_n_s_cudaErrorStreamCaptureIsolation __pyx_mstate_global->__pyx_n_s_cudaErrorStreamCaptureIsolation #define __pyx_n_s_cudaErrorStreamCaptureMerge __pyx_mstate_global->__pyx_n_s_cudaErrorStreamCaptureMerge #define __pyx_n_s_cudaErrorStreamCaptureUnjoined __pyx_mstate_global->__pyx_n_s_cudaErrorStreamCaptureUnjoined #define __pyx_n_s_cudaErrorStreamCaptureUnmatched __pyx_mstate_global->__pyx_n_s_cudaErrorStreamCaptureUnmatched #define __pyx_n_s_cudaErrorStreamCaptureUnsupporte __pyx_mstate_global->__pyx_n_s_cudaErrorStreamCaptureUnsupporte #define __pyx_n_s_cudaErrorStreamCaptureWrongThrea __pyx_mstate_global->__pyx_n_s_cudaErrorStreamCaptureWrongThrea #define __pyx_n_s_cudaErrorStubLibrary __pyx_mstate_global->__pyx_n_s_cudaErrorStubLibrary #define __pyx_n_s_cudaErrorSymbolNotFound __pyx_mstate_global->__pyx_n_s_cudaErrorSymbolNotFound #define __pyx_n_s_cudaErrorSyncDepthExceeded __pyx_mstate_global->__pyx_n_s_cudaErrorSyncDepthExceeded #define __pyx_n_s_cudaErrorSynchronizationError __pyx_mstate_global->__pyx_n_s_cudaErrorSynchronizationError #define __pyx_n_s_cudaErrorSystemDriverMismatch __pyx_mstate_global->__pyx_n_s_cudaErrorSystemDriverMismatch #define __pyx_n_s_cudaErrorSystemNotReady __pyx_mstate_global->__pyx_n_s_cudaErrorSystemNotReady #define __pyx_n_s_cudaErrorTextureFetchFailed __pyx_mstate_global->__pyx_n_s_cudaErrorTextureFetchFailed #define __pyx_n_s_cudaErrorTextureNotBound __pyx_mstate_global->__pyx_n_s_cudaErrorTextureNotBound #define __pyx_n_s_cudaErrorTimeout __pyx_mstate_global->__pyx_n_s_cudaErrorTimeout #define __pyx_n_s_cudaErrorTooManyPeers __pyx_mstate_global->__pyx_n_s_cudaErrorTooManyPeers #define __pyx_n_s_cudaErrorUnknown __pyx_mstate_global->__pyx_n_s_cudaErrorUnknown #define __pyx_n_s_cudaErrorUnmapBufferObjectFailed __pyx_mstate_global->__pyx_n_s_cudaErrorUnmapBufferObjectFailed #define __pyx_n_s_cudaErrorUnsupportedDevSideSync __pyx_mstate_global->__pyx_n_s_cudaErrorUnsupportedDevSideSync #define __pyx_n_s_cudaErrorUnsupportedExecAffinity __pyx_mstate_global->__pyx_n_s_cudaErrorUnsupportedExecAffinity #define __pyx_n_s_cudaErrorUnsupportedLimit __pyx_mstate_global->__pyx_n_s_cudaErrorUnsupportedLimit #define __pyx_n_s_cudaErrorUnsupportedPtxVersion __pyx_mstate_global->__pyx_n_s_cudaErrorUnsupportedPtxVersion #define __pyx_n_s_cudaError_t __pyx_mstate_global->__pyx_n_s_cudaError_t #define __pyx_n_s_cudaEventBlockingSync __pyx_mstate_global->__pyx_n_s_cudaEventBlockingSync #define __pyx_n_s_cudaEventCreate __pyx_mstate_global->__pyx_n_s_cudaEventCreate #define __pyx_n_s_cudaEventCreateFromEGLSync __pyx_mstate_global->__pyx_n_s_cudaEventCreateFromEGLSync #define __pyx_n_s_cudaEventCreateWithFlags __pyx_mstate_global->__pyx_n_s_cudaEventCreateWithFlags #define __pyx_n_s_cudaEventDefault __pyx_mstate_global->__pyx_n_s_cudaEventDefault #define __pyx_n_s_cudaEventDestroy __pyx_mstate_global->__pyx_n_s_cudaEventDestroy #define __pyx_n_s_cudaEventDisableTiming __pyx_mstate_global->__pyx_n_s_cudaEventDisableTiming #define __pyx_n_s_cudaEventElapsedTime __pyx_mstate_global->__pyx_n_s_cudaEventElapsedTime #define __pyx_n_s_cudaEventInterprocess __pyx_mstate_global->__pyx_n_s_cudaEventInterprocess #define __pyx_n_s_cudaEventQuery __pyx_mstate_global->__pyx_n_s_cudaEventQuery #define __pyx_n_s_cudaEventRecord __pyx_mstate_global->__pyx_n_s_cudaEventRecord #define __pyx_n_s_cudaEventRecordDefault __pyx_mstate_global->__pyx_n_s_cudaEventRecordDefault #define __pyx_n_s_cudaEventRecordExternal __pyx_mstate_global->__pyx_n_s_cudaEventRecordExternal #define __pyx_n_s_cudaEventRecordNodeParams __pyx_mstate_global->__pyx_n_s_cudaEventRecordNodeParams #define __pyx_n_s_cudaEventRecordNodeParams___redu __pyx_mstate_global->__pyx_n_s_cudaEventRecordNodeParams___redu #define __pyx_n_s_cudaEventRecordNodeParams___sets __pyx_mstate_global->__pyx_n_s_cudaEventRecordNodeParams___sets #define __pyx_n_s_cudaEventRecordNodeParams_getPtr __pyx_mstate_global->__pyx_n_s_cudaEventRecordNodeParams_getPtr #define __pyx_n_s_cudaEventRecordWithFlags __pyx_mstate_global->__pyx_n_s_cudaEventRecordWithFlags #define __pyx_n_s_cudaEventSynchronize __pyx_mstate_global->__pyx_n_s_cudaEventSynchronize #define __pyx_n_s_cudaEventWaitDefault __pyx_mstate_global->__pyx_n_s_cudaEventWaitDefault #define __pyx_n_s_cudaEventWaitExternal __pyx_mstate_global->__pyx_n_s_cudaEventWaitExternal #define __pyx_n_s_cudaEventWaitNodeParams __pyx_mstate_global->__pyx_n_s_cudaEventWaitNodeParams #define __pyx_n_s_cudaEventWaitNodeParams___reduce __pyx_mstate_global->__pyx_n_s_cudaEventWaitNodeParams___reduce #define __pyx_n_s_cudaEventWaitNodeParams___setsta __pyx_mstate_global->__pyx_n_s_cudaEventWaitNodeParams___setsta #define __pyx_n_s_cudaEventWaitNodeParams_getPtr __pyx_mstate_global->__pyx_n_s_cudaEventWaitNodeParams_getPtr #define __pyx_n_s_cudaEvent_t __pyx_mstate_global->__pyx_n_s_cudaEvent_t #define __pyx_n_s_cudaExtent __pyx_mstate_global->__pyx_n_s_cudaExtent #define __pyx_n_s_cudaExtent___reduce_cython __pyx_mstate_global->__pyx_n_s_cudaExtent___reduce_cython #define __pyx_n_s_cudaExtent___setstate_cython __pyx_mstate_global->__pyx_n_s_cudaExtent___setstate_cython #define __pyx_n_s_cudaExtent_getPtr __pyx_mstate_global->__pyx_n_s_cudaExtent_getPtr #define __pyx_n_s_cudaExternalMemoryBufferDesc __pyx_mstate_global->__pyx_n_s_cudaExternalMemoryBufferDesc #define __pyx_n_s_cudaExternalMemoryBufferDesc___r __pyx_mstate_global->__pyx_n_s_cudaExternalMemoryBufferDesc___r #define __pyx_n_s_cudaExternalMemoryBufferDesc___s __pyx_mstate_global->__pyx_n_s_cudaExternalMemoryBufferDesc___s #define __pyx_n_s_cudaExternalMemoryBufferDesc_get __pyx_mstate_global->__pyx_n_s_cudaExternalMemoryBufferDesc_get #define __pyx_n_s_cudaExternalMemoryDedicated __pyx_mstate_global->__pyx_n_s_cudaExternalMemoryDedicated #define __pyx_n_s_cudaExternalMemoryGetMappedBuffe __pyx_mstate_global->__pyx_n_s_cudaExternalMemoryGetMappedBuffe #define __pyx_n_s_cudaExternalMemoryGetMappedMipma __pyx_mstate_global->__pyx_n_s_cudaExternalMemoryGetMappedMipma #define __pyx_n_s_cudaExternalMemoryHandleDesc __pyx_mstate_global->__pyx_n_s_cudaExternalMemoryHandleDesc #define __pyx_n_s_cudaExternalMemoryHandleDesc___r __pyx_mstate_global->__pyx_n_s_cudaExternalMemoryHandleDesc___r #define __pyx_n_s_cudaExternalMemoryHandleDesc___s __pyx_mstate_global->__pyx_n_s_cudaExternalMemoryHandleDesc___s #define __pyx_n_s_cudaExternalMemoryHandleDesc_get __pyx_mstate_global->__pyx_n_s_cudaExternalMemoryHandleDesc_get #define __pyx_n_s_cudaExternalMemoryHandleType __pyx_mstate_global->__pyx_n_s_cudaExternalMemoryHandleType #define __pyx_n_s_cudaExternalMemoryHandleTypeD3D1 __pyx_mstate_global->__pyx_n_s_cudaExternalMemoryHandleTypeD3D1 #define __pyx_n_s_cudaExternalMemoryHandleTypeD3D1_2 __pyx_mstate_global->__pyx_n_s_cudaExternalMemoryHandleTypeD3D1_2 #define __pyx_n_s_cudaExternalMemoryHandleTypeD3D1_3 __pyx_mstate_global->__pyx_n_s_cudaExternalMemoryHandleTypeD3D1_3 #define __pyx_n_s_cudaExternalMemoryHandleTypeD3D1_4 __pyx_mstate_global->__pyx_n_s_cudaExternalMemoryHandleTypeD3D1_4 #define __pyx_n_s_cudaExternalMemoryHandleTypeNvSc __pyx_mstate_global->__pyx_n_s_cudaExternalMemoryHandleTypeNvSc #define __pyx_n_s_cudaExternalMemoryHandleTypeOpaq __pyx_mstate_global->__pyx_n_s_cudaExternalMemoryHandleTypeOpaq #define __pyx_n_s_cudaExternalMemoryHandleTypeOpaq_2 __pyx_mstate_global->__pyx_n_s_cudaExternalMemoryHandleTypeOpaq_2 #define __pyx_n_s_cudaExternalMemoryHandleTypeOpaq_3 __pyx_mstate_global->__pyx_n_s_cudaExternalMemoryHandleTypeOpaq_3 #define __pyx_n_s_cudaExternalMemoryMipmappedArray __pyx_mstate_global->__pyx_n_s_cudaExternalMemoryMipmappedArray #define __pyx_n_s_cudaExternalMemoryMipmappedArray_2 __pyx_mstate_global->__pyx_n_s_cudaExternalMemoryMipmappedArray_2 #define __pyx_n_s_cudaExternalMemoryMipmappedArray_3 __pyx_mstate_global->__pyx_n_s_cudaExternalMemoryMipmappedArray_3 #define __pyx_n_s_cudaExternalMemoryMipmappedArray_4 __pyx_mstate_global->__pyx_n_s_cudaExternalMemoryMipmappedArray_4 #define __pyx_kp_u_cudaExternalMemory_t __pyx_mstate_global->__pyx_kp_u_cudaExternalMemory_t #define __pyx_n_s_cudaExternalMemory_t_2 __pyx_mstate_global->__pyx_n_s_cudaExternalMemory_t_2 #define __pyx_n_s_cudaExternalMemory_t___reduce_cy __pyx_mstate_global->__pyx_n_s_cudaExternalMemory_t___reduce_cy #define __pyx_n_s_cudaExternalMemory_t___setstate __pyx_mstate_global->__pyx_n_s_cudaExternalMemory_t___setstate #define __pyx_n_s_cudaExternalMemory_t_getPtr __pyx_mstate_global->__pyx_n_s_cudaExternalMemory_t_getPtr #define __pyx_n_s_cudaExternalSemaphoreHandleDesc __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreHandleDesc #define __pyx_n_s_cudaExternalSemaphoreHandleDesc_2 __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreHandleDesc_2 #define __pyx_n_s_cudaExternalSemaphoreHandleDesc_3 __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreHandleDesc_3 #define __pyx_n_s_cudaExternalSemaphoreHandleDesc_4 __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreHandleDesc_4 #define __pyx_n_s_cudaExternalSemaphoreHandleType __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreHandleType #define __pyx_n_s_cudaExternalSemaphoreHandleTypeD __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreHandleTypeD #define __pyx_n_s_cudaExternalSemaphoreHandleTypeD_2 __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreHandleTypeD_2 #define __pyx_n_s_cudaExternalSemaphoreHandleTypeK __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreHandleTypeK #define __pyx_n_s_cudaExternalSemaphoreHandleTypeK_2 __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreHandleTypeK_2 #define __pyx_n_s_cudaExternalSemaphoreHandleTypeN __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreHandleTypeN #define __pyx_n_s_cudaExternalSemaphoreHandleTypeO __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreHandleTypeO #define __pyx_n_s_cudaExternalSemaphoreHandleTypeO_2 __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreHandleTypeO_2 #define __pyx_n_s_cudaExternalSemaphoreHandleTypeO_3 __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreHandleTypeO_3 #define __pyx_n_s_cudaExternalSemaphoreHandleTypeT __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreHandleTypeT #define __pyx_n_s_cudaExternalSemaphoreHandleTypeT_2 __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreHandleTypeT_2 #define __pyx_n_s_cudaExternalSemaphoreSignalNodeP __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreSignalNodeP #define __pyx_n_s_cudaExternalSemaphoreSignalNodeP_2 __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreSignalNodeP_2 #define __pyx_n_s_cudaExternalSemaphoreSignalNodeP_3 __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreSignalNodeP_3 #define __pyx_n_s_cudaExternalSemaphoreSignalNodeP_4 __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreSignalNodeP_4 #define __pyx_n_s_cudaExternalSemaphoreSignalNodeP_5 __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreSignalNodeP_5 #define __pyx_n_s_cudaExternalSemaphoreSignalNodeP_6 __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreSignalNodeP_6 #define __pyx_n_s_cudaExternalSemaphoreSignalNodeP_7 __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreSignalNodeP_7 #define __pyx_n_s_cudaExternalSemaphoreSignalNodeP_8 __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreSignalNodeP_8 #define __pyx_n_s_cudaExternalSemaphoreSignalParam __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreSignalParam #define __pyx_n_s_cudaExternalSemaphoreSignalParam_2 __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreSignalParam_2 #define __pyx_n_s_cudaExternalSemaphoreSignalParam_3 __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreSignalParam_3 #define __pyx_n_s_cudaExternalSemaphoreSignalParam_4 __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreSignalParam_4 #define __pyx_n_s_cudaExternalSemaphoreSignalSkipN __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreSignalSkipN #define __pyx_n_s_cudaExternalSemaphoreWaitNodePar __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreWaitNodePar #define __pyx_n_s_cudaExternalSemaphoreWaitNodePar_2 __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreWaitNodePar_2 #define __pyx_n_s_cudaExternalSemaphoreWaitNodePar_3 __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreWaitNodePar_3 #define __pyx_n_s_cudaExternalSemaphoreWaitNodePar_4 __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreWaitNodePar_4 #define __pyx_n_s_cudaExternalSemaphoreWaitNodePar_5 __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreWaitNodePar_5 #define __pyx_n_s_cudaExternalSemaphoreWaitNodePar_6 __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreWaitNodePar_6 #define __pyx_n_s_cudaExternalSemaphoreWaitNodePar_7 __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreWaitNodePar_7 #define __pyx_n_s_cudaExternalSemaphoreWaitNodePar_8 __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreWaitNodePar_8 #define __pyx_n_s_cudaExternalSemaphoreWaitParams __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreWaitParams #define __pyx_n_s_cudaExternalSemaphoreWaitParams_2 __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreWaitParams_2 #define __pyx_n_s_cudaExternalSemaphoreWaitParams_3 __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreWaitParams_3 #define __pyx_n_s_cudaExternalSemaphoreWaitParams_4 __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreWaitParams_4 #define __pyx_n_s_cudaExternalSemaphoreWaitSkipNvS __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphoreWaitSkipNvS #define __pyx_kp_u_cudaExternalSemaphore_t __pyx_mstate_global->__pyx_kp_u_cudaExternalSemaphore_t #define __pyx_n_s_cudaExternalSemaphore_t_2 __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphore_t_2 #define __pyx_n_s_cudaExternalSemaphore_t___reduce __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphore_t___reduce #define __pyx_n_s_cudaExternalSemaphore_t___setsta __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphore_t___setsta #define __pyx_n_s_cudaExternalSemaphore_t_getPtr __pyx_mstate_global->__pyx_n_s_cudaExternalSemaphore_t_getPtr #define __pyx_n_s_cudaFilterModeLinear __pyx_mstate_global->__pyx_n_s_cudaFilterModeLinear #define __pyx_n_s_cudaFilterModePoint __pyx_mstate_global->__pyx_n_s_cudaFilterModePoint #define __pyx_n_s_cudaFlushGPUDirectRDMAWritesOpti __pyx_mstate_global->__pyx_n_s_cudaFlushGPUDirectRDMAWritesOpti #define __pyx_n_s_cudaFlushGPUDirectRDMAWritesOpti_2 __pyx_mstate_global->__pyx_n_s_cudaFlushGPUDirectRDMAWritesOpti_2 #define __pyx_n_s_cudaFlushGPUDirectRDMAWritesOpti_3 __pyx_mstate_global->__pyx_n_s_cudaFlushGPUDirectRDMAWritesOpti_3 #define __pyx_n_s_cudaFlushGPUDirectRDMAWritesScop __pyx_mstate_global->__pyx_n_s_cudaFlushGPUDirectRDMAWritesScop #define __pyx_n_s_cudaFlushGPUDirectRDMAWritesTarg __pyx_mstate_global->__pyx_n_s_cudaFlushGPUDirectRDMAWritesTarg #define __pyx_n_s_cudaFlushGPUDirectRDMAWritesTarg_2 __pyx_mstate_global->__pyx_n_s_cudaFlushGPUDirectRDMAWritesTarg_2 #define __pyx_n_s_cudaFlushGPUDirectRDMAWritesToAl __pyx_mstate_global->__pyx_n_s_cudaFlushGPUDirectRDMAWritesToAl #define __pyx_n_s_cudaFlushGPUDirectRDMAWritesToOw __pyx_mstate_global->__pyx_n_s_cudaFlushGPUDirectRDMAWritesToOw #define __pyx_n_s_cudaFormatModeAuto __pyx_mstate_global->__pyx_n_s_cudaFormatModeAuto #define __pyx_n_s_cudaFormatModeForced __pyx_mstate_global->__pyx_n_s_cudaFormatModeForced #define __pyx_n_s_cudaFree __pyx_mstate_global->__pyx_n_s_cudaFree #define __pyx_n_s_cudaFreeArray __pyx_mstate_global->__pyx_n_s_cudaFreeArray #define __pyx_n_s_cudaFreeAsync __pyx_mstate_global->__pyx_n_s_cudaFreeAsync #define __pyx_n_s_cudaFreeHost __pyx_mstate_global->__pyx_n_s_cudaFreeHost #define __pyx_n_s_cudaFreeMipmappedArray __pyx_mstate_global->__pyx_n_s_cudaFreeMipmappedArray #define __pyx_n_s_cudaFuncAttribute __pyx_mstate_global->__pyx_n_s_cudaFuncAttribute #define __pyx_n_s_cudaFuncAttributeClusterDimMustB __pyx_mstate_global->__pyx_n_s_cudaFuncAttributeClusterDimMustB #define __pyx_n_s_cudaFuncAttributeClusterScheduli __pyx_mstate_global->__pyx_n_s_cudaFuncAttributeClusterScheduli #define __pyx_n_s_cudaFuncAttributeMax __pyx_mstate_global->__pyx_n_s_cudaFuncAttributeMax #define __pyx_n_s_cudaFuncAttributeMaxDynamicShare __pyx_mstate_global->__pyx_n_s_cudaFuncAttributeMaxDynamicShare #define __pyx_n_s_cudaFuncAttributeNonPortableClus __pyx_mstate_global->__pyx_n_s_cudaFuncAttributeNonPortableClus #define __pyx_n_s_cudaFuncAttributePreferredShared __pyx_mstate_global->__pyx_n_s_cudaFuncAttributePreferredShared #define __pyx_n_s_cudaFuncAttributeRequiredCluster __pyx_mstate_global->__pyx_n_s_cudaFuncAttributeRequiredCluster #define __pyx_n_s_cudaFuncAttributeRequiredCluster_2 __pyx_mstate_global->__pyx_n_s_cudaFuncAttributeRequiredCluster_2 #define __pyx_n_s_cudaFuncAttributeRequiredCluster_3 __pyx_mstate_global->__pyx_n_s_cudaFuncAttributeRequiredCluster_3 #define __pyx_n_s_cudaFuncAttributes __pyx_mstate_global->__pyx_n_s_cudaFuncAttributes #define __pyx_n_s_cudaFuncAttributes___reduce_cyth __pyx_mstate_global->__pyx_n_s_cudaFuncAttributes___reduce_cyth #define __pyx_n_s_cudaFuncAttributes___setstate_cy __pyx_mstate_global->__pyx_n_s_cudaFuncAttributes___setstate_cy #define __pyx_n_s_cudaFuncAttributes_getPtr __pyx_mstate_global->__pyx_n_s_cudaFuncAttributes_getPtr #define __pyx_n_s_cudaFuncCache __pyx_mstate_global->__pyx_n_s_cudaFuncCache #define __pyx_n_s_cudaFuncCachePreferEqual __pyx_mstate_global->__pyx_n_s_cudaFuncCachePreferEqual #define __pyx_n_s_cudaFuncCachePreferL1 __pyx_mstate_global->__pyx_n_s_cudaFuncCachePreferL1 #define __pyx_n_s_cudaFuncCachePreferNone __pyx_mstate_global->__pyx_n_s_cudaFuncCachePreferNone #define __pyx_n_s_cudaFuncCachePreferShared __pyx_mstate_global->__pyx_n_s_cudaFuncCachePreferShared #define __pyx_n_s_cudaFuncGetAttributes __pyx_mstate_global->__pyx_n_s_cudaFuncGetAttributes #define __pyx_n_s_cudaFuncSetAttribute __pyx_mstate_global->__pyx_n_s_cudaFuncSetAttribute #define __pyx_n_s_cudaFuncSetCacheConfig __pyx_mstate_global->__pyx_n_s_cudaFuncSetCacheConfig #define __pyx_n_s_cudaFuncSetSharedMemConfig __pyx_mstate_global->__pyx_n_s_cudaFuncSetSharedMemConfig #define __pyx_n_s_cudaFunction_t __pyx_mstate_global->__pyx_n_s_cudaFunction_t #define __pyx_n_s_cudaGLDeviceList __pyx_mstate_global->__pyx_n_s_cudaGLDeviceList #define __pyx_n_s_cudaGLDeviceListAll __pyx_mstate_global->__pyx_n_s_cudaGLDeviceListAll #define __pyx_n_s_cudaGLDeviceListCurrentFrame __pyx_mstate_global->__pyx_n_s_cudaGLDeviceListCurrentFrame #define __pyx_n_s_cudaGLDeviceListNextFrame __pyx_mstate_global->__pyx_n_s_cudaGLDeviceListNextFrame #define __pyx_n_s_cudaGLGetDevices __pyx_mstate_global->__pyx_n_s_cudaGLGetDevices #define __pyx_n_s_cudaGLMapFlags __pyx_mstate_global->__pyx_n_s_cudaGLMapFlags #define __pyx_n_s_cudaGLMapFlagsNone __pyx_mstate_global->__pyx_n_s_cudaGLMapFlagsNone #define __pyx_n_s_cudaGLMapFlagsReadOnly __pyx_mstate_global->__pyx_n_s_cudaGLMapFlagsReadOnly #define __pyx_n_s_cudaGLMapFlagsWriteDiscard __pyx_mstate_global->__pyx_n_s_cudaGLMapFlagsWriteDiscard #define __pyx_n_s_cudaGPUDirectRDMAWritesOrdering __pyx_mstate_global->__pyx_n_s_cudaGPUDirectRDMAWritesOrdering #define __pyx_n_s_cudaGPUDirectRDMAWritesOrderingA __pyx_mstate_global->__pyx_n_s_cudaGPUDirectRDMAWritesOrderingA #define __pyx_n_s_cudaGPUDirectRDMAWritesOrderingN __pyx_mstate_global->__pyx_n_s_cudaGPUDirectRDMAWritesOrderingN #define __pyx_n_s_cudaGPUDirectRDMAWritesOrderingO __pyx_mstate_global->__pyx_n_s_cudaGPUDirectRDMAWritesOrderingO #define __pyx_n_s_cudaGetChannelDesc __pyx_mstate_global->__pyx_n_s_cudaGetChannelDesc #define __pyx_n_s_cudaGetDevice __pyx_mstate_global->__pyx_n_s_cudaGetDevice #define __pyx_n_s_cudaGetDeviceCount __pyx_mstate_global->__pyx_n_s_cudaGetDeviceCount #define __pyx_n_s_cudaGetDeviceFlags __pyx_mstate_global->__pyx_n_s_cudaGetDeviceFlags #define __pyx_n_s_cudaGetDeviceProperties __pyx_mstate_global->__pyx_n_s_cudaGetDeviceProperties #define __pyx_n_s_cudaGetDriverEntryPoint __pyx_mstate_global->__pyx_n_s_cudaGetDriverEntryPoint #define __pyx_n_s_cudaGetDriverEntryPointByVersion __pyx_mstate_global->__pyx_n_s_cudaGetDriverEntryPointByVersion #define __pyx_n_s_cudaGetDriverEntryPointFlags __pyx_mstate_global->__pyx_n_s_cudaGetDriverEntryPointFlags #define __pyx_n_s_cudaGetErrorName __pyx_mstate_global->__pyx_n_s_cudaGetErrorName #define __pyx_n_s_cudaGetErrorString __pyx_mstate_global->__pyx_n_s_cudaGetErrorString #define __pyx_n_s_cudaGetExportTable __pyx_mstate_global->__pyx_n_s_cudaGetExportTable #define __pyx_n_s_cudaGetKernel __pyx_mstate_global->__pyx_n_s_cudaGetKernel #define __pyx_n_s_cudaGetLastError __pyx_mstate_global->__pyx_n_s_cudaGetLastError #define __pyx_n_s_cudaGetMipmappedArrayLevel __pyx_mstate_global->__pyx_n_s_cudaGetMipmappedArrayLevel #define __pyx_n_s_cudaGetSurfaceObjectResourceDesc __pyx_mstate_global->__pyx_n_s_cudaGetSurfaceObjectResourceDesc #define __pyx_n_s_cudaGetTextureObjectResourceDesc __pyx_mstate_global->__pyx_n_s_cudaGetTextureObjectResourceDesc #define __pyx_n_s_cudaGetTextureObjectResourceView __pyx_mstate_global->__pyx_n_s_cudaGetTextureObjectResourceView #define __pyx_n_s_cudaGetTextureObjectTextureDesc __pyx_mstate_global->__pyx_n_s_cudaGetTextureObjectTextureDesc #define __pyx_n_s_cudaGraphAddChildGraphNode __pyx_mstate_global->__pyx_n_s_cudaGraphAddChildGraphNode #define __pyx_n_s_cudaGraphAddChildGraphNode_local __pyx_mstate_global->__pyx_n_s_cudaGraphAddChildGraphNode_local #define __pyx_n_s_cudaGraphAddDependencies __pyx_mstate_global->__pyx_n_s_cudaGraphAddDependencies #define __pyx_n_s_cudaGraphAddDependencies_locals __pyx_mstate_global->__pyx_n_s_cudaGraphAddDependencies_locals #define __pyx_n_s_cudaGraphAddDependencies_v2 __pyx_mstate_global->__pyx_n_s_cudaGraphAddDependencies_v2 #define __pyx_n_s_cudaGraphAddDependencies_v2_loca __pyx_mstate_global->__pyx_n_s_cudaGraphAddDependencies_v2_loca #define __pyx_n_s_cudaGraphAddEmptyNode __pyx_mstate_global->__pyx_n_s_cudaGraphAddEmptyNode #define __pyx_n_s_cudaGraphAddEmptyNode_locals_gen __pyx_mstate_global->__pyx_n_s_cudaGraphAddEmptyNode_locals_gen #define __pyx_n_s_cudaGraphAddEventRecordNode __pyx_mstate_global->__pyx_n_s_cudaGraphAddEventRecordNode #define __pyx_n_s_cudaGraphAddEventRecordNode_loca __pyx_mstate_global->__pyx_n_s_cudaGraphAddEventRecordNode_loca #define __pyx_n_s_cudaGraphAddEventWaitNode __pyx_mstate_global->__pyx_n_s_cudaGraphAddEventWaitNode #define __pyx_n_s_cudaGraphAddEventWaitNode_locals __pyx_mstate_global->__pyx_n_s_cudaGraphAddEventWaitNode_locals #define __pyx_n_s_cudaGraphAddExternalSemaphoresSi __pyx_mstate_global->__pyx_n_s_cudaGraphAddExternalSemaphoresSi #define __pyx_n_s_cudaGraphAddExternalSemaphoresSi_2 __pyx_mstate_global->__pyx_n_s_cudaGraphAddExternalSemaphoresSi_2 #define __pyx_n_s_cudaGraphAddExternalSemaphoresWa __pyx_mstate_global->__pyx_n_s_cudaGraphAddExternalSemaphoresWa #define __pyx_n_s_cudaGraphAddExternalSemaphoresWa_2 __pyx_mstate_global->__pyx_n_s_cudaGraphAddExternalSemaphoresWa_2 #define __pyx_n_s_cudaGraphAddHostNode __pyx_mstate_global->__pyx_n_s_cudaGraphAddHostNode #define __pyx_n_s_cudaGraphAddHostNode_locals_gene __pyx_mstate_global->__pyx_n_s_cudaGraphAddHostNode_locals_gene #define __pyx_n_s_cudaGraphAddKernelNode __pyx_mstate_global->__pyx_n_s_cudaGraphAddKernelNode #define __pyx_n_s_cudaGraphAddKernelNode_locals_ge __pyx_mstate_global->__pyx_n_s_cudaGraphAddKernelNode_locals_ge #define __pyx_n_s_cudaGraphAddMemAllocNode __pyx_mstate_global->__pyx_n_s_cudaGraphAddMemAllocNode #define __pyx_n_s_cudaGraphAddMemAllocNode_locals __pyx_mstate_global->__pyx_n_s_cudaGraphAddMemAllocNode_locals #define __pyx_n_s_cudaGraphAddMemFreeNode __pyx_mstate_global->__pyx_n_s_cudaGraphAddMemFreeNode #define __pyx_n_s_cudaGraphAddMemFreeNode_locals_g __pyx_mstate_global->__pyx_n_s_cudaGraphAddMemFreeNode_locals_g #define __pyx_n_s_cudaGraphAddMemcpyNode __pyx_mstate_global->__pyx_n_s_cudaGraphAddMemcpyNode #define __pyx_n_s_cudaGraphAddMemcpyNode1D __pyx_mstate_global->__pyx_n_s_cudaGraphAddMemcpyNode1D #define __pyx_n_s_cudaGraphAddMemcpyNode1D_locals __pyx_mstate_global->__pyx_n_s_cudaGraphAddMemcpyNode1D_locals #define __pyx_n_s_cudaGraphAddMemcpyNode_locals_ge __pyx_mstate_global->__pyx_n_s_cudaGraphAddMemcpyNode_locals_ge #define __pyx_n_s_cudaGraphAddMemsetNode __pyx_mstate_global->__pyx_n_s_cudaGraphAddMemsetNode #define __pyx_n_s_cudaGraphAddMemsetNode_locals_ge __pyx_mstate_global->__pyx_n_s_cudaGraphAddMemsetNode_locals_ge #define __pyx_n_s_cudaGraphAddNode __pyx_mstate_global->__pyx_n_s_cudaGraphAddNode #define __pyx_n_s_cudaGraphAddNode_locals_genexpr __pyx_mstate_global->__pyx_n_s_cudaGraphAddNode_locals_genexpr #define __pyx_n_s_cudaGraphAddNode_v2 __pyx_mstate_global->__pyx_n_s_cudaGraphAddNode_v2 #define __pyx_n_s_cudaGraphAddNode_v2_locals_genex __pyx_mstate_global->__pyx_n_s_cudaGraphAddNode_v2_locals_genex #define __pyx_n_s_cudaGraphChildGraphNodeGetGraph __pyx_mstate_global->__pyx_n_s_cudaGraphChildGraphNodeGetGraph #define __pyx_n_s_cudaGraphClone __pyx_mstate_global->__pyx_n_s_cudaGraphClone #define __pyx_n_s_cudaGraphCondAssignDefault __pyx_mstate_global->__pyx_n_s_cudaGraphCondAssignDefault #define __pyx_n_s_cudaGraphCondTypeIf __pyx_mstate_global->__pyx_n_s_cudaGraphCondTypeIf #define __pyx_n_s_cudaGraphCondTypeWhile __pyx_mstate_global->__pyx_n_s_cudaGraphCondTypeWhile #define __pyx_kp_u_cudaGraphConditionalHandle __pyx_mstate_global->__pyx_kp_u_cudaGraphConditionalHandle #define __pyx_n_s_cudaGraphConditionalHandleCreate __pyx_mstate_global->__pyx_n_s_cudaGraphConditionalHandleCreate #define __pyx_n_s_cudaGraphConditionalHandleFlags __pyx_mstate_global->__pyx_n_s_cudaGraphConditionalHandleFlags #define __pyx_n_s_cudaGraphConditionalHandle_2 __pyx_mstate_global->__pyx_n_s_cudaGraphConditionalHandle_2 #define __pyx_n_s_cudaGraphConditionalHandle___red __pyx_mstate_global->__pyx_n_s_cudaGraphConditionalHandle___red #define __pyx_n_s_cudaGraphConditionalHandle___set __pyx_mstate_global->__pyx_n_s_cudaGraphConditionalHandle___set #define __pyx_n_s_cudaGraphConditionalHandle_getPt __pyx_mstate_global->__pyx_n_s_cudaGraphConditionalHandle_getPt #define __pyx_n_s_cudaGraphConditionalNodeType __pyx_mstate_global->__pyx_n_s_cudaGraphConditionalNodeType #define __pyx_n_s_cudaGraphCreate __pyx_mstate_global->__pyx_n_s_cudaGraphCreate #define __pyx_n_s_cudaGraphDebugDotFlags __pyx_mstate_global->__pyx_n_s_cudaGraphDebugDotFlags #define __pyx_n_s_cudaGraphDebugDotFlagsConditiona __pyx_mstate_global->__pyx_n_s_cudaGraphDebugDotFlagsConditiona #define __pyx_n_s_cudaGraphDebugDotFlagsEventNodeP __pyx_mstate_global->__pyx_n_s_cudaGraphDebugDotFlagsEventNodeP #define __pyx_n_s_cudaGraphDebugDotFlagsExtSemasSi __pyx_mstate_global->__pyx_n_s_cudaGraphDebugDotFlagsExtSemasSi #define __pyx_n_s_cudaGraphDebugDotFlagsExtSemasWa __pyx_mstate_global->__pyx_n_s_cudaGraphDebugDotFlagsExtSemasWa #define __pyx_n_s_cudaGraphDebugDotFlagsHandles __pyx_mstate_global->__pyx_n_s_cudaGraphDebugDotFlagsHandles #define __pyx_n_s_cudaGraphDebugDotFlagsHostNodePa __pyx_mstate_global->__pyx_n_s_cudaGraphDebugDotFlagsHostNodePa #define __pyx_n_s_cudaGraphDebugDotFlagsKernelNode __pyx_mstate_global->__pyx_n_s_cudaGraphDebugDotFlagsKernelNode #define __pyx_n_s_cudaGraphDebugDotFlagsKernelNode_2 __pyx_mstate_global->__pyx_n_s_cudaGraphDebugDotFlagsKernelNode_2 #define __pyx_n_s_cudaGraphDebugDotFlagsMemcpyNode __pyx_mstate_global->__pyx_n_s_cudaGraphDebugDotFlagsMemcpyNode #define __pyx_n_s_cudaGraphDebugDotFlagsMemsetNode __pyx_mstate_global->__pyx_n_s_cudaGraphDebugDotFlagsMemsetNode #define __pyx_n_s_cudaGraphDebugDotFlagsVerbose __pyx_mstate_global->__pyx_n_s_cudaGraphDebugDotFlagsVerbose #define __pyx_n_s_cudaGraphDebugDotPrint __pyx_mstate_global->__pyx_n_s_cudaGraphDebugDotPrint #define __pyx_n_s_cudaGraphDependencyType __pyx_mstate_global->__pyx_n_s_cudaGraphDependencyType #define __pyx_n_s_cudaGraphDependencyTypeDefault __pyx_mstate_global->__pyx_n_s_cudaGraphDependencyTypeDefault #define __pyx_n_s_cudaGraphDependencyTypeProgramma __pyx_mstate_global->__pyx_n_s_cudaGraphDependencyTypeProgramma #define __pyx_n_s_cudaGraphDestroy __pyx_mstate_global->__pyx_n_s_cudaGraphDestroy #define __pyx_n_s_cudaGraphDestroyNode __pyx_mstate_global->__pyx_n_s_cudaGraphDestroyNode #define __pyx_kp_u_cudaGraphDeviceNode_t __pyx_mstate_global->__pyx_kp_u_cudaGraphDeviceNode_t #define __pyx_n_s_cudaGraphDeviceNode_t_2 __pyx_mstate_global->__pyx_n_s_cudaGraphDeviceNode_t_2 #define __pyx_n_s_cudaGraphDeviceNode_t___reduce_c __pyx_mstate_global->__pyx_n_s_cudaGraphDeviceNode_t___reduce_c #define __pyx_n_s_cudaGraphDeviceNode_t___setstate __pyx_mstate_global->__pyx_n_s_cudaGraphDeviceNode_t___setstate #define __pyx_n_s_cudaGraphDeviceNode_t_getPtr __pyx_mstate_global->__pyx_n_s_cudaGraphDeviceNode_t_getPtr #define __pyx_n_s_cudaGraphEdgeData __pyx_mstate_global->__pyx_n_s_cudaGraphEdgeData #define __pyx_n_s_cudaGraphEdgeData_st __pyx_mstate_global->__pyx_n_s_cudaGraphEdgeData_st #define __pyx_n_s_cudaGraphEdgeData_st___reduce_cy __pyx_mstate_global->__pyx_n_s_cudaGraphEdgeData_st___reduce_cy #define __pyx_n_s_cudaGraphEdgeData_st___setstate __pyx_mstate_global->__pyx_n_s_cudaGraphEdgeData_st___setstate #define __pyx_n_s_cudaGraphEdgeData_st_getPtr __pyx_mstate_global->__pyx_n_s_cudaGraphEdgeData_st_getPtr #define __pyx_n_s_cudaGraphEventRecordNodeGetEvent __pyx_mstate_global->__pyx_n_s_cudaGraphEventRecordNodeGetEvent #define __pyx_n_s_cudaGraphEventRecordNodeSetEvent __pyx_mstate_global->__pyx_n_s_cudaGraphEventRecordNodeSetEvent #define __pyx_n_s_cudaGraphEventWaitNodeGetEvent __pyx_mstate_global->__pyx_n_s_cudaGraphEventWaitNodeGetEvent #define __pyx_n_s_cudaGraphEventWaitNodeSetEvent __pyx_mstate_global->__pyx_n_s_cudaGraphEventWaitNodeSetEvent #define __pyx_n_s_cudaGraphExecChildGraphNodeSetPa __pyx_mstate_global->__pyx_n_s_cudaGraphExecChildGraphNodeSetPa #define __pyx_n_s_cudaGraphExecDestroy __pyx_mstate_global->__pyx_n_s_cudaGraphExecDestroy #define __pyx_n_s_cudaGraphExecEventRecordNodeSetE __pyx_mstate_global->__pyx_n_s_cudaGraphExecEventRecordNodeSetE #define __pyx_n_s_cudaGraphExecEventWaitNodeSetEve __pyx_mstate_global->__pyx_n_s_cudaGraphExecEventWaitNodeSetEve #define __pyx_n_s_cudaGraphExecExternalSemaphoresS __pyx_mstate_global->__pyx_n_s_cudaGraphExecExternalSemaphoresS #define __pyx_n_s_cudaGraphExecExternalSemaphoresW __pyx_mstate_global->__pyx_n_s_cudaGraphExecExternalSemaphoresW #define __pyx_n_s_cudaGraphExecGetFlags __pyx_mstate_global->__pyx_n_s_cudaGraphExecGetFlags #define __pyx_n_s_cudaGraphExecHostNodeSetParams __pyx_mstate_global->__pyx_n_s_cudaGraphExecHostNodeSetParams #define __pyx_n_s_cudaGraphExecKernelNodeSetParams __pyx_mstate_global->__pyx_n_s_cudaGraphExecKernelNodeSetParams #define __pyx_n_s_cudaGraphExecMemcpyNodeSetParams __pyx_mstate_global->__pyx_n_s_cudaGraphExecMemcpyNodeSetParams #define __pyx_n_s_cudaGraphExecMemcpyNodeSetParams_2 __pyx_mstate_global->__pyx_n_s_cudaGraphExecMemcpyNodeSetParams_2 #define __pyx_n_s_cudaGraphExecMemsetNodeSetParams __pyx_mstate_global->__pyx_n_s_cudaGraphExecMemsetNodeSetParams #define __pyx_n_s_cudaGraphExecNodeSetParams __pyx_mstate_global->__pyx_n_s_cudaGraphExecNodeSetParams #define __pyx_n_s_cudaGraphExecUpdate __pyx_mstate_global->__pyx_n_s_cudaGraphExecUpdate #define __pyx_n_s_cudaGraphExecUpdateError __pyx_mstate_global->__pyx_n_s_cudaGraphExecUpdateError #define __pyx_n_s_cudaGraphExecUpdateErrorAttribut __pyx_mstate_global->__pyx_n_s_cudaGraphExecUpdateErrorAttribut #define __pyx_n_s_cudaGraphExecUpdateErrorFunction __pyx_mstate_global->__pyx_n_s_cudaGraphExecUpdateErrorFunction #define __pyx_n_s_cudaGraphExecUpdateErrorNodeType __pyx_mstate_global->__pyx_n_s_cudaGraphExecUpdateErrorNodeType #define __pyx_n_s_cudaGraphExecUpdateErrorNotSuppo __pyx_mstate_global->__pyx_n_s_cudaGraphExecUpdateErrorNotSuppo #define __pyx_n_s_cudaGraphExecUpdateErrorParamete __pyx_mstate_global->__pyx_n_s_cudaGraphExecUpdateErrorParamete #define __pyx_n_s_cudaGraphExecUpdateErrorTopology __pyx_mstate_global->__pyx_n_s_cudaGraphExecUpdateErrorTopology #define __pyx_n_s_cudaGraphExecUpdateErrorUnsuppor __pyx_mstate_global->__pyx_n_s_cudaGraphExecUpdateErrorUnsuppor #define __pyx_n_s_cudaGraphExecUpdateResult __pyx_mstate_global->__pyx_n_s_cudaGraphExecUpdateResult #define __pyx_n_s_cudaGraphExecUpdateResultInfo __pyx_mstate_global->__pyx_n_s_cudaGraphExecUpdateResultInfo #define __pyx_n_s_cudaGraphExecUpdateResultInfo_st __pyx_mstate_global->__pyx_n_s_cudaGraphExecUpdateResultInfo_st #define __pyx_n_s_cudaGraphExecUpdateResultInfo_st_2 __pyx_mstate_global->__pyx_n_s_cudaGraphExecUpdateResultInfo_st_2 #define __pyx_n_s_cudaGraphExecUpdateResultInfo_st_3 __pyx_mstate_global->__pyx_n_s_cudaGraphExecUpdateResultInfo_st_3 #define __pyx_n_s_cudaGraphExecUpdateResultInfo_st_4 __pyx_mstate_global->__pyx_n_s_cudaGraphExecUpdateResultInfo_st_4 #define __pyx_n_s_cudaGraphExecUpdateSuccess __pyx_mstate_global->__pyx_n_s_cudaGraphExecUpdateSuccess #define __pyx_n_s_cudaGraphExec_t __pyx_mstate_global->__pyx_n_s_cudaGraphExec_t #define __pyx_n_s_cudaGraphExternalSemaphoresSigna __pyx_mstate_global->__pyx_n_s_cudaGraphExternalSemaphoresSigna #define __pyx_n_s_cudaGraphExternalSemaphoresSigna_2 __pyx_mstate_global->__pyx_n_s_cudaGraphExternalSemaphoresSigna_2 #define __pyx_n_s_cudaGraphExternalSemaphoresWaitN __pyx_mstate_global->__pyx_n_s_cudaGraphExternalSemaphoresWaitN #define __pyx_n_s_cudaGraphExternalSemaphoresWaitN_2 __pyx_mstate_global->__pyx_n_s_cudaGraphExternalSemaphoresWaitN_2 #define __pyx_n_s_cudaGraphGetEdges __pyx_mstate_global->__pyx_n_s_cudaGraphGetEdges #define __pyx_n_s_cudaGraphGetEdges_v2 __pyx_mstate_global->__pyx_n_s_cudaGraphGetEdges_v2 #define __pyx_n_s_cudaGraphGetNodes __pyx_mstate_global->__pyx_n_s_cudaGraphGetNodes #define __pyx_n_s_cudaGraphGetRootNodes __pyx_mstate_global->__pyx_n_s_cudaGraphGetRootNodes #define __pyx_n_s_cudaGraphHostNodeGetParams __pyx_mstate_global->__pyx_n_s_cudaGraphHostNodeGetParams #define __pyx_n_s_cudaGraphHostNodeSetParams __pyx_mstate_global->__pyx_n_s_cudaGraphHostNodeSetParams #define __pyx_n_s_cudaGraphInstantiate __pyx_mstate_global->__pyx_n_s_cudaGraphInstantiate #define __pyx_n_s_cudaGraphInstantiateError __pyx_mstate_global->__pyx_n_s_cudaGraphInstantiateError #define __pyx_n_s_cudaGraphInstantiateFlagAutoFree __pyx_mstate_global->__pyx_n_s_cudaGraphInstantiateFlagAutoFree #define __pyx_n_s_cudaGraphInstantiateFlagDeviceLa __pyx_mstate_global->__pyx_n_s_cudaGraphInstantiateFlagDeviceLa #define __pyx_n_s_cudaGraphInstantiateFlagUpload __pyx_mstate_global->__pyx_n_s_cudaGraphInstantiateFlagUpload #define __pyx_n_s_cudaGraphInstantiateFlagUseNodeP __pyx_mstate_global->__pyx_n_s_cudaGraphInstantiateFlagUseNodeP #define __pyx_n_s_cudaGraphInstantiateFlags __pyx_mstate_global->__pyx_n_s_cudaGraphInstantiateFlags #define __pyx_n_s_cudaGraphInstantiateInvalidStruc __pyx_mstate_global->__pyx_n_s_cudaGraphInstantiateInvalidStruc #define __pyx_n_s_cudaGraphInstantiateMultipleDevi __pyx_mstate_global->__pyx_n_s_cudaGraphInstantiateMultipleDevi #define __pyx_n_s_cudaGraphInstantiateNodeOperatio __pyx_mstate_global->__pyx_n_s_cudaGraphInstantiateNodeOperatio #define __pyx_n_s_cudaGraphInstantiateParams __pyx_mstate_global->__pyx_n_s_cudaGraphInstantiateParams #define __pyx_n_s_cudaGraphInstantiateParams_st __pyx_mstate_global->__pyx_n_s_cudaGraphInstantiateParams_st #define __pyx_n_s_cudaGraphInstantiateParams_st_2 __pyx_mstate_global->__pyx_n_s_cudaGraphInstantiateParams_st_2 #define __pyx_n_s_cudaGraphInstantiateParams_st_3 __pyx_mstate_global->__pyx_n_s_cudaGraphInstantiateParams_st_3 #define __pyx_n_s_cudaGraphInstantiateParams_st_ge __pyx_mstate_global->__pyx_n_s_cudaGraphInstantiateParams_st_ge #define __pyx_n_s_cudaGraphInstantiateResult __pyx_mstate_global->__pyx_n_s_cudaGraphInstantiateResult #define __pyx_n_s_cudaGraphInstantiateSuccess __pyx_mstate_global->__pyx_n_s_cudaGraphInstantiateSuccess #define __pyx_n_s_cudaGraphInstantiateWithFlags __pyx_mstate_global->__pyx_n_s_cudaGraphInstantiateWithFlags #define __pyx_n_s_cudaGraphInstantiateWithParams __pyx_mstate_global->__pyx_n_s_cudaGraphInstantiateWithParams #define __pyx_n_s_cudaGraphKernelNodeCopyAttribute __pyx_mstate_global->__pyx_n_s_cudaGraphKernelNodeCopyAttribute #define __pyx_n_s_cudaGraphKernelNodeField __pyx_mstate_global->__pyx_n_s_cudaGraphKernelNodeField #define __pyx_n_s_cudaGraphKernelNodeFieldEnabled __pyx_mstate_global->__pyx_n_s_cudaGraphKernelNodeFieldEnabled #define __pyx_n_s_cudaGraphKernelNodeFieldGridDim __pyx_mstate_global->__pyx_n_s_cudaGraphKernelNodeFieldGridDim #define __pyx_n_s_cudaGraphKernelNodeFieldInvalid __pyx_mstate_global->__pyx_n_s_cudaGraphKernelNodeFieldInvalid #define __pyx_n_s_cudaGraphKernelNodeFieldParam __pyx_mstate_global->__pyx_n_s_cudaGraphKernelNodeFieldParam #define __pyx_n_s_cudaGraphKernelNodeGetAttribute __pyx_mstate_global->__pyx_n_s_cudaGraphKernelNodeGetAttribute #define __pyx_n_s_cudaGraphKernelNodeGetParams __pyx_mstate_global->__pyx_n_s_cudaGraphKernelNodeGetParams #define __pyx_n_s_cudaGraphKernelNodePortDefault __pyx_mstate_global->__pyx_n_s_cudaGraphKernelNodePortDefault #define __pyx_n_s_cudaGraphKernelNodePortLaunchCom __pyx_mstate_global->__pyx_n_s_cudaGraphKernelNodePortLaunchCom #define __pyx_n_s_cudaGraphKernelNodePortProgramma __pyx_mstate_global->__pyx_n_s_cudaGraphKernelNodePortProgramma #define __pyx_n_s_cudaGraphKernelNodeSetAttribute __pyx_mstate_global->__pyx_n_s_cudaGraphKernelNodeSetAttribute #define __pyx_n_s_cudaGraphKernelNodeSetParams __pyx_mstate_global->__pyx_n_s_cudaGraphKernelNodeSetParams #define __pyx_n_s_cudaGraphKernelNodeUpdate __pyx_mstate_global->__pyx_n_s_cudaGraphKernelNodeUpdate #define __pyx_n_s_cudaGraphKernelNodeUpdate___redu __pyx_mstate_global->__pyx_n_s_cudaGraphKernelNodeUpdate___redu #define __pyx_n_s_cudaGraphKernelNodeUpdate___sets __pyx_mstate_global->__pyx_n_s_cudaGraphKernelNodeUpdate___sets #define __pyx_n_s_cudaGraphKernelNodeUpdate_getPtr __pyx_mstate_global->__pyx_n_s_cudaGraphKernelNodeUpdate_getPtr #define __pyx_n_s_cudaGraphLaunch __pyx_mstate_global->__pyx_n_s_cudaGraphLaunch #define __pyx_n_s_cudaGraphMemAllocNodeGetParams __pyx_mstate_global->__pyx_n_s_cudaGraphMemAllocNodeGetParams #define __pyx_n_s_cudaGraphMemAttrReservedMemCurre __pyx_mstate_global->__pyx_n_s_cudaGraphMemAttrReservedMemCurre #define __pyx_n_s_cudaGraphMemAttrReservedMemHigh __pyx_mstate_global->__pyx_n_s_cudaGraphMemAttrReservedMemHigh #define __pyx_n_s_cudaGraphMemAttrUsedMemCurrent __pyx_mstate_global->__pyx_n_s_cudaGraphMemAttrUsedMemCurrent #define __pyx_n_s_cudaGraphMemAttrUsedMemHigh __pyx_mstate_global->__pyx_n_s_cudaGraphMemAttrUsedMemHigh #define __pyx_n_s_cudaGraphMemAttributeType __pyx_mstate_global->__pyx_n_s_cudaGraphMemAttributeType #define __pyx_n_s_cudaGraphMemFreeNodeGetParams __pyx_mstate_global->__pyx_n_s_cudaGraphMemFreeNodeGetParams #define __pyx_n_s_cudaGraphMemcpyNodeGetParams __pyx_mstate_global->__pyx_n_s_cudaGraphMemcpyNodeGetParams #define __pyx_n_s_cudaGraphMemcpyNodeSetParams __pyx_mstate_global->__pyx_n_s_cudaGraphMemcpyNodeSetParams #define __pyx_n_s_cudaGraphMemcpyNodeSetParams1D __pyx_mstate_global->__pyx_n_s_cudaGraphMemcpyNodeSetParams1D #define __pyx_n_s_cudaGraphMemsetNodeGetParams __pyx_mstate_global->__pyx_n_s_cudaGraphMemsetNodeGetParams #define __pyx_n_s_cudaGraphMemsetNodeSetParams __pyx_mstate_global->__pyx_n_s_cudaGraphMemsetNodeSetParams #define __pyx_n_s_cudaGraphNodeFindInClone __pyx_mstate_global->__pyx_n_s_cudaGraphNodeFindInClone #define __pyx_n_s_cudaGraphNodeGetDependencies __pyx_mstate_global->__pyx_n_s_cudaGraphNodeGetDependencies #define __pyx_n_s_cudaGraphNodeGetDependencies_v2 __pyx_mstate_global->__pyx_n_s_cudaGraphNodeGetDependencies_v2 #define __pyx_n_s_cudaGraphNodeGetDependentNodes __pyx_mstate_global->__pyx_n_s_cudaGraphNodeGetDependentNodes #define __pyx_n_s_cudaGraphNodeGetDependentNodes_v __pyx_mstate_global->__pyx_n_s_cudaGraphNodeGetDependentNodes_v #define __pyx_n_s_cudaGraphNodeGetEnabled __pyx_mstate_global->__pyx_n_s_cudaGraphNodeGetEnabled #define __pyx_n_s_cudaGraphNodeGetType __pyx_mstate_global->__pyx_n_s_cudaGraphNodeGetType #define __pyx_n_s_cudaGraphNodeParams __pyx_mstate_global->__pyx_n_s_cudaGraphNodeParams #define __pyx_n_s_cudaGraphNodeParams___reduce_cyt __pyx_mstate_global->__pyx_n_s_cudaGraphNodeParams___reduce_cyt #define __pyx_n_s_cudaGraphNodeParams___setstate_c __pyx_mstate_global->__pyx_n_s_cudaGraphNodeParams___setstate_c #define __pyx_n_s_cudaGraphNodeParams_getPtr __pyx_mstate_global->__pyx_n_s_cudaGraphNodeParams_getPtr #define __pyx_n_s_cudaGraphNodeSetEnabled __pyx_mstate_global->__pyx_n_s_cudaGraphNodeSetEnabled #define __pyx_n_s_cudaGraphNodeSetParams __pyx_mstate_global->__pyx_n_s_cudaGraphNodeSetParams #define __pyx_n_s_cudaGraphNodeType __pyx_mstate_global->__pyx_n_s_cudaGraphNodeType #define __pyx_n_s_cudaGraphNodeTypeConditional __pyx_mstate_global->__pyx_n_s_cudaGraphNodeTypeConditional #define __pyx_n_s_cudaGraphNodeTypeCount __pyx_mstate_global->__pyx_n_s_cudaGraphNodeTypeCount #define __pyx_n_s_cudaGraphNodeTypeEmpty __pyx_mstate_global->__pyx_n_s_cudaGraphNodeTypeEmpty #define __pyx_n_s_cudaGraphNodeTypeEventRecord __pyx_mstate_global->__pyx_n_s_cudaGraphNodeTypeEventRecord #define __pyx_n_s_cudaGraphNodeTypeExtSemaphoreSig __pyx_mstate_global->__pyx_n_s_cudaGraphNodeTypeExtSemaphoreSig #define __pyx_n_s_cudaGraphNodeTypeExtSemaphoreWai __pyx_mstate_global->__pyx_n_s_cudaGraphNodeTypeExtSemaphoreWai #define __pyx_n_s_cudaGraphNodeTypeGraph __pyx_mstate_global->__pyx_n_s_cudaGraphNodeTypeGraph #define __pyx_n_s_cudaGraphNodeTypeHost __pyx_mstate_global->__pyx_n_s_cudaGraphNodeTypeHost #define __pyx_n_s_cudaGraphNodeTypeKernel __pyx_mstate_global->__pyx_n_s_cudaGraphNodeTypeKernel #define __pyx_n_s_cudaGraphNodeTypeMemAlloc __pyx_mstate_global->__pyx_n_s_cudaGraphNodeTypeMemAlloc #define __pyx_n_s_cudaGraphNodeTypeMemFree __pyx_mstate_global->__pyx_n_s_cudaGraphNodeTypeMemFree #define __pyx_n_s_cudaGraphNodeTypeMemcpy __pyx_mstate_global->__pyx_n_s_cudaGraphNodeTypeMemcpy #define __pyx_n_s_cudaGraphNodeTypeMemset __pyx_mstate_global->__pyx_n_s_cudaGraphNodeTypeMemset #define __pyx_n_s_cudaGraphNodeTypeWaitEvent __pyx_mstate_global->__pyx_n_s_cudaGraphNodeTypeWaitEvent #define __pyx_n_s_cudaGraphNode_t __pyx_mstate_global->__pyx_n_s_cudaGraphNode_t #define __pyx_n_s_cudaGraphReleaseUserObject __pyx_mstate_global->__pyx_n_s_cudaGraphReleaseUserObject #define __pyx_n_s_cudaGraphRemoveDependencies __pyx_mstate_global->__pyx_n_s_cudaGraphRemoveDependencies #define __pyx_n_s_cudaGraphRemoveDependencies_loca __pyx_mstate_global->__pyx_n_s_cudaGraphRemoveDependencies_loca #define __pyx_n_s_cudaGraphRemoveDependencies_v2 __pyx_mstate_global->__pyx_n_s_cudaGraphRemoveDependencies_v2 #define __pyx_n_s_cudaGraphRemoveDependencies_v2_l __pyx_mstate_global->__pyx_n_s_cudaGraphRemoveDependencies_v2_l #define __pyx_n_s_cudaGraphRetainUserObject __pyx_mstate_global->__pyx_n_s_cudaGraphRetainUserObject #define __pyx_n_s_cudaGraphUpload __pyx_mstate_global->__pyx_n_s_cudaGraphUpload #define __pyx_n_s_cudaGraphUserObjectMove __pyx_mstate_global->__pyx_n_s_cudaGraphUserObjectMove #define __pyx_n_s_cudaGraph_t __pyx_mstate_global->__pyx_n_s_cudaGraph_t #define __pyx_n_s_cudaGraphicsCubeFace __pyx_mstate_global->__pyx_n_s_cudaGraphicsCubeFace #define __pyx_n_s_cudaGraphicsCubeFaceNegativeX __pyx_mstate_global->__pyx_n_s_cudaGraphicsCubeFaceNegativeX #define __pyx_n_s_cudaGraphicsCubeFaceNegativeY __pyx_mstate_global->__pyx_n_s_cudaGraphicsCubeFaceNegativeY #define __pyx_n_s_cudaGraphicsCubeFaceNegativeZ __pyx_mstate_global->__pyx_n_s_cudaGraphicsCubeFaceNegativeZ #define __pyx_n_s_cudaGraphicsCubeFacePositiveX __pyx_mstate_global->__pyx_n_s_cudaGraphicsCubeFacePositiveX #define __pyx_n_s_cudaGraphicsCubeFacePositiveY __pyx_mstate_global->__pyx_n_s_cudaGraphicsCubeFacePositiveY #define __pyx_n_s_cudaGraphicsCubeFacePositiveZ __pyx_mstate_global->__pyx_n_s_cudaGraphicsCubeFacePositiveZ #define __pyx_n_s_cudaGraphicsEGLRegisterImage __pyx_mstate_global->__pyx_n_s_cudaGraphicsEGLRegisterImage #define __pyx_n_s_cudaGraphicsGLRegisterBuffer __pyx_mstate_global->__pyx_n_s_cudaGraphicsGLRegisterBuffer #define __pyx_n_s_cudaGraphicsGLRegisterImage __pyx_mstate_global->__pyx_n_s_cudaGraphicsGLRegisterImage #define __pyx_n_s_cudaGraphicsMapFlags __pyx_mstate_global->__pyx_n_s_cudaGraphicsMapFlags #define __pyx_n_s_cudaGraphicsMapFlagsNone __pyx_mstate_global->__pyx_n_s_cudaGraphicsMapFlagsNone #define __pyx_n_s_cudaGraphicsMapFlagsReadOnly __pyx_mstate_global->__pyx_n_s_cudaGraphicsMapFlagsReadOnly #define __pyx_n_s_cudaGraphicsMapFlagsWriteDiscard __pyx_mstate_global->__pyx_n_s_cudaGraphicsMapFlagsWriteDiscard #define __pyx_n_s_cudaGraphicsMapResources __pyx_mstate_global->__pyx_n_s_cudaGraphicsMapResources #define __pyx_n_s_cudaGraphicsRegisterFlags __pyx_mstate_global->__pyx_n_s_cudaGraphicsRegisterFlags #define __pyx_n_s_cudaGraphicsRegisterFlagsNone __pyx_mstate_global->__pyx_n_s_cudaGraphicsRegisterFlagsNone #define __pyx_n_s_cudaGraphicsRegisterFlagsReadOnl __pyx_mstate_global->__pyx_n_s_cudaGraphicsRegisterFlagsReadOnl #define __pyx_n_s_cudaGraphicsRegisterFlagsSurface __pyx_mstate_global->__pyx_n_s_cudaGraphicsRegisterFlagsSurface #define __pyx_n_s_cudaGraphicsRegisterFlagsTexture __pyx_mstate_global->__pyx_n_s_cudaGraphicsRegisterFlagsTexture #define __pyx_n_s_cudaGraphicsRegisterFlagsWriteDi __pyx_mstate_global->__pyx_n_s_cudaGraphicsRegisterFlagsWriteDi #define __pyx_n_s_cudaGraphicsResourceGetMappedEgl __pyx_mstate_global->__pyx_n_s_cudaGraphicsResourceGetMappedEgl #define __pyx_n_s_cudaGraphicsResourceGetMappedMip __pyx_mstate_global->__pyx_n_s_cudaGraphicsResourceGetMappedMip #define __pyx_n_s_cudaGraphicsResourceGetMappedPoi __pyx_mstate_global->__pyx_n_s_cudaGraphicsResourceGetMappedPoi #define __pyx_n_s_cudaGraphicsResourceSetMapFlags __pyx_mstate_global->__pyx_n_s_cudaGraphicsResourceSetMapFlags #define __pyx_kp_u_cudaGraphicsResource_t __pyx_mstate_global->__pyx_kp_u_cudaGraphicsResource_t #define __pyx_n_s_cudaGraphicsResource_t_2 __pyx_mstate_global->__pyx_n_s_cudaGraphicsResource_t_2 #define __pyx_n_s_cudaGraphicsResource_t___reduce __pyx_mstate_global->__pyx_n_s_cudaGraphicsResource_t___reduce #define __pyx_n_s_cudaGraphicsResource_t___setstat __pyx_mstate_global->__pyx_n_s_cudaGraphicsResource_t___setstat #define __pyx_n_s_cudaGraphicsResource_t_getPtr __pyx_mstate_global->__pyx_n_s_cudaGraphicsResource_t_getPtr #define __pyx_n_s_cudaGraphicsSubResourceGetMapped __pyx_mstate_global->__pyx_n_s_cudaGraphicsSubResourceGetMapped #define __pyx_n_s_cudaGraphicsUnmapResources __pyx_mstate_global->__pyx_n_s_cudaGraphicsUnmapResources #define __pyx_n_s_cudaGraphicsUnregisterResource __pyx_mstate_global->__pyx_n_s_cudaGraphicsUnregisterResource #define __pyx_n_s_cudaGraphicsVDPAURegisterOutputS __pyx_mstate_global->__pyx_n_s_cudaGraphicsVDPAURegisterOutputS #define __pyx_n_s_cudaGraphicsVDPAURegisterVideoSu __pyx_mstate_global->__pyx_n_s_cudaGraphicsVDPAURegisterVideoSu #define __pyx_n_s_cudaHostAlloc __pyx_mstate_global->__pyx_n_s_cudaHostAlloc #define __pyx_n_s_cudaHostAllocDefault __pyx_mstate_global->__pyx_n_s_cudaHostAllocDefault #define __pyx_n_s_cudaHostAllocMapped __pyx_mstate_global->__pyx_n_s_cudaHostAllocMapped #define __pyx_n_s_cudaHostAllocPortable __pyx_mstate_global->__pyx_n_s_cudaHostAllocPortable #define __pyx_n_s_cudaHostAllocWriteCombined __pyx_mstate_global->__pyx_n_s_cudaHostAllocWriteCombined #define __pyx_kp_u_cudaHostFn_t __pyx_mstate_global->__pyx_kp_u_cudaHostFn_t #define __pyx_n_s_cudaHostFn_t_2 __pyx_mstate_global->__pyx_n_s_cudaHostFn_t_2 #define __pyx_n_s_cudaHostFn_t___reduce_cython __pyx_mstate_global->__pyx_n_s_cudaHostFn_t___reduce_cython #define __pyx_n_s_cudaHostFn_t___setstate_cython __pyx_mstate_global->__pyx_n_s_cudaHostFn_t___setstate_cython #define __pyx_n_s_cudaHostFn_t_getPtr __pyx_mstate_global->__pyx_n_s_cudaHostFn_t_getPtr #define __pyx_n_s_cudaHostGetDevicePointer __pyx_mstate_global->__pyx_n_s_cudaHostGetDevicePointer #define __pyx_n_s_cudaHostGetFlags __pyx_mstate_global->__pyx_n_s_cudaHostGetFlags #define __pyx_n_s_cudaHostNodeParams __pyx_mstate_global->__pyx_n_s_cudaHostNodeParams #define __pyx_n_s_cudaHostNodeParamsV2 __pyx_mstate_global->__pyx_n_s_cudaHostNodeParamsV2 #define __pyx_n_s_cudaHostNodeParamsV2___reduce_cy __pyx_mstate_global->__pyx_n_s_cudaHostNodeParamsV2___reduce_cy #define __pyx_n_s_cudaHostNodeParamsV2___setstate __pyx_mstate_global->__pyx_n_s_cudaHostNodeParamsV2___setstate #define __pyx_n_s_cudaHostNodeParamsV2_getPtr __pyx_mstate_global->__pyx_n_s_cudaHostNodeParamsV2_getPtr #define __pyx_n_s_cudaHostNodeParams___reduce_cyth __pyx_mstate_global->__pyx_n_s_cudaHostNodeParams___reduce_cyth #define __pyx_n_s_cudaHostNodeParams___setstate_cy __pyx_mstate_global->__pyx_n_s_cudaHostNodeParams___setstate_cy #define __pyx_n_s_cudaHostNodeParams_getPtr __pyx_mstate_global->__pyx_n_s_cudaHostNodeParams_getPtr #define __pyx_n_s_cudaHostRegister __pyx_mstate_global->__pyx_n_s_cudaHostRegister #define __pyx_n_s_cudaHostRegisterDefault __pyx_mstate_global->__pyx_n_s_cudaHostRegisterDefault #define __pyx_n_s_cudaHostRegisterIoMemory __pyx_mstate_global->__pyx_n_s_cudaHostRegisterIoMemory #define __pyx_n_s_cudaHostRegisterMapped __pyx_mstate_global->__pyx_n_s_cudaHostRegisterMapped #define __pyx_n_s_cudaHostRegisterPortable __pyx_mstate_global->__pyx_n_s_cudaHostRegisterPortable #define __pyx_n_s_cudaHostRegisterReadOnly __pyx_mstate_global->__pyx_n_s_cudaHostRegisterReadOnly #define __pyx_n_s_cudaHostUnregister __pyx_mstate_global->__pyx_n_s_cudaHostUnregister #define __pyx_n_s_cudaImportExternalMemory __pyx_mstate_global->__pyx_n_s_cudaImportExternalMemory #define __pyx_n_s_cudaImportExternalSemaphore __pyx_mstate_global->__pyx_n_s_cudaImportExternalSemaphore #define __pyx_n_s_cudaInitDevice __pyx_mstate_global->__pyx_n_s_cudaInitDevice #define __pyx_n_s_cudaInitDeviceFlagsAreValid __pyx_mstate_global->__pyx_n_s_cudaInitDeviceFlagsAreValid #define __pyx_n_s_cudaInvalidDeviceId __pyx_mstate_global->__pyx_n_s_cudaInvalidDeviceId #define __pyx_n_s_cudaIpcCloseMemHandle __pyx_mstate_global->__pyx_n_s_cudaIpcCloseMemHandle #define __pyx_n_s_cudaIpcEventHandle_st __pyx_mstate_global->__pyx_n_s_cudaIpcEventHandle_st #define __pyx_n_s_cudaIpcEventHandle_st___reduce_c __pyx_mstate_global->__pyx_n_s_cudaIpcEventHandle_st___reduce_c #define __pyx_n_s_cudaIpcEventHandle_st___setstate __pyx_mstate_global->__pyx_n_s_cudaIpcEventHandle_st___setstate #define __pyx_n_s_cudaIpcEventHandle_st_getPtr __pyx_mstate_global->__pyx_n_s_cudaIpcEventHandle_st_getPtr #define __pyx_n_s_cudaIpcEventHandle_t __pyx_mstate_global->__pyx_n_s_cudaIpcEventHandle_t #define __pyx_n_s_cudaIpcGetEventHandle __pyx_mstate_global->__pyx_n_s_cudaIpcGetEventHandle #define __pyx_n_s_cudaIpcGetMemHandle __pyx_mstate_global->__pyx_n_s_cudaIpcGetMemHandle #define __pyx_n_s_cudaIpcMemHandle_st __pyx_mstate_global->__pyx_n_s_cudaIpcMemHandle_st #define __pyx_n_s_cudaIpcMemHandle_st___reduce_cyt __pyx_mstate_global->__pyx_n_s_cudaIpcMemHandle_st___reduce_cyt #define __pyx_n_s_cudaIpcMemHandle_st___setstate_c __pyx_mstate_global->__pyx_n_s_cudaIpcMemHandle_st___setstate_c #define __pyx_n_s_cudaIpcMemHandle_st_getPtr __pyx_mstate_global->__pyx_n_s_cudaIpcMemHandle_st_getPtr #define __pyx_n_s_cudaIpcMemHandle_t __pyx_mstate_global->__pyx_n_s_cudaIpcMemHandle_t #define __pyx_n_s_cudaIpcMemLazyEnablePeerAccess __pyx_mstate_global->__pyx_n_s_cudaIpcMemLazyEnablePeerAccess #define __pyx_n_s_cudaIpcOpenEventHandle __pyx_mstate_global->__pyx_n_s_cudaIpcOpenEventHandle #define __pyx_n_s_cudaIpcOpenMemHandle __pyx_mstate_global->__pyx_n_s_cudaIpcOpenMemHandle #define __pyx_n_s_cudaKernelNodeAttrID __pyx_mstate_global->__pyx_n_s_cudaKernelNodeAttrID #define __pyx_n_s_cudaKernelNodeAttrValue __pyx_mstate_global->__pyx_n_s_cudaKernelNodeAttrValue #define __pyx_n_s_cudaKernelNodeAttributeAccessPol __pyx_mstate_global->__pyx_n_s_cudaKernelNodeAttributeAccessPol #define __pyx_n_s_cudaKernelNodeAttributeClusterDi __pyx_mstate_global->__pyx_n_s_cudaKernelNodeAttributeClusterDi #define __pyx_n_s_cudaKernelNodeAttributeClusterSc __pyx_mstate_global->__pyx_n_s_cudaKernelNodeAttributeClusterSc #define __pyx_n_s_cudaKernelNodeAttributeCooperati __pyx_mstate_global->__pyx_n_s_cudaKernelNodeAttributeCooperati #define __pyx_n_s_cudaKernelNodeAttributeDeviceUpd __pyx_mstate_global->__pyx_n_s_cudaKernelNodeAttributeDeviceUpd #define __pyx_n_s_cudaKernelNodeAttributeMemSyncDo __pyx_mstate_global->__pyx_n_s_cudaKernelNodeAttributeMemSyncDo #define __pyx_n_s_cudaKernelNodeAttributeMemSyncDo_2 __pyx_mstate_global->__pyx_n_s_cudaKernelNodeAttributeMemSyncDo_2 #define __pyx_n_s_cudaKernelNodeAttributePreferred __pyx_mstate_global->__pyx_n_s_cudaKernelNodeAttributePreferred #define __pyx_n_s_cudaKernelNodeAttributePriority __pyx_mstate_global->__pyx_n_s_cudaKernelNodeAttributePriority #define __pyx_n_s_cudaKernelNodeParams __pyx_mstate_global->__pyx_n_s_cudaKernelNodeParams #define __pyx_n_s_cudaKernelNodeParamsV2 __pyx_mstate_global->__pyx_n_s_cudaKernelNodeParamsV2 #define __pyx_n_s_cudaKernelNodeParamsV2___reduce __pyx_mstate_global->__pyx_n_s_cudaKernelNodeParamsV2___reduce #define __pyx_n_s_cudaKernelNodeParamsV2___setstat __pyx_mstate_global->__pyx_n_s_cudaKernelNodeParamsV2___setstat #define __pyx_n_s_cudaKernelNodeParamsV2_getPtr __pyx_mstate_global->__pyx_n_s_cudaKernelNodeParamsV2_getPtr #define __pyx_n_s_cudaKernelNodeParams___reduce_cy __pyx_mstate_global->__pyx_n_s_cudaKernelNodeParams___reduce_cy #define __pyx_n_s_cudaKernelNodeParams___setstate __pyx_mstate_global->__pyx_n_s_cudaKernelNodeParams___setstate #define __pyx_n_s_cudaKernelNodeParams_getPtr __pyx_mstate_global->__pyx_n_s_cudaKernelNodeParams_getPtr #define __pyx_kp_u_cudaKernel_t __pyx_mstate_global->__pyx_kp_u_cudaKernel_t #define __pyx_n_s_cudaKernel_t_2 __pyx_mstate_global->__pyx_n_s_cudaKernel_t_2 #define __pyx_n_s_cudaKernel_t___reduce_cython __pyx_mstate_global->__pyx_n_s_cudaKernel_t___reduce_cython #define __pyx_n_s_cudaKernel_t___setstate_cython __pyx_mstate_global->__pyx_n_s_cudaKernel_t___setstate_cython #define __pyx_n_s_cudaKernel_t_getPtr __pyx_mstate_global->__pyx_n_s_cudaKernel_t_getPtr #define __pyx_n_s_cudaLaunchAttribute __pyx_mstate_global->__pyx_n_s_cudaLaunchAttribute #define __pyx_n_s_cudaLaunchAttributeAccessPolicyW __pyx_mstate_global->__pyx_n_s_cudaLaunchAttributeAccessPolicyW #define __pyx_n_s_cudaLaunchAttributeClusterDimens __pyx_mstate_global->__pyx_n_s_cudaLaunchAttributeClusterDimens #define __pyx_n_s_cudaLaunchAttributeClusterSchedu __pyx_mstate_global->__pyx_n_s_cudaLaunchAttributeClusterSchedu #define __pyx_n_s_cudaLaunchAttributeCooperative __pyx_mstate_global->__pyx_n_s_cudaLaunchAttributeCooperative #define __pyx_n_s_cudaLaunchAttributeDeviceUpdatab __pyx_mstate_global->__pyx_n_s_cudaLaunchAttributeDeviceUpdatab #define __pyx_n_s_cudaLaunchAttributeID __pyx_mstate_global->__pyx_n_s_cudaLaunchAttributeID #define __pyx_n_s_cudaLaunchAttributeIgnore __pyx_mstate_global->__pyx_n_s_cudaLaunchAttributeIgnore #define __pyx_n_s_cudaLaunchAttributeLaunchComplet __pyx_mstate_global->__pyx_n_s_cudaLaunchAttributeLaunchComplet #define __pyx_n_s_cudaLaunchAttributeMemSyncDomain __pyx_mstate_global->__pyx_n_s_cudaLaunchAttributeMemSyncDomain #define __pyx_n_s_cudaLaunchAttributeMemSyncDomain_2 __pyx_mstate_global->__pyx_n_s_cudaLaunchAttributeMemSyncDomain_2 #define __pyx_n_s_cudaLaunchAttributePreferredShar __pyx_mstate_global->__pyx_n_s_cudaLaunchAttributePreferredShar #define __pyx_n_s_cudaLaunchAttributePriority __pyx_mstate_global->__pyx_n_s_cudaLaunchAttributePriority #define __pyx_n_s_cudaLaunchAttributeProgrammaticE __pyx_mstate_global->__pyx_n_s_cudaLaunchAttributeProgrammaticE #define __pyx_n_s_cudaLaunchAttributeProgrammaticS __pyx_mstate_global->__pyx_n_s_cudaLaunchAttributeProgrammaticS #define __pyx_n_s_cudaLaunchAttributeSynchronizati __pyx_mstate_global->__pyx_n_s_cudaLaunchAttributeSynchronizati #define __pyx_n_s_cudaLaunchAttributeValue __pyx_mstate_global->__pyx_n_s_cudaLaunchAttributeValue #define __pyx_n_s_cudaLaunchAttributeValue___reduc __pyx_mstate_global->__pyx_n_s_cudaLaunchAttributeValue___reduc #define __pyx_n_s_cudaLaunchAttributeValue___setst __pyx_mstate_global->__pyx_n_s_cudaLaunchAttributeValue___setst #define __pyx_n_s_cudaLaunchAttributeValue_getPtr __pyx_mstate_global->__pyx_n_s_cudaLaunchAttributeValue_getPtr #define __pyx_n_s_cudaLaunchAttribute_st __pyx_mstate_global->__pyx_n_s_cudaLaunchAttribute_st #define __pyx_n_s_cudaLaunchAttribute_st___reduce __pyx_mstate_global->__pyx_n_s_cudaLaunchAttribute_st___reduce #define __pyx_n_s_cudaLaunchAttribute_st___setstat __pyx_mstate_global->__pyx_n_s_cudaLaunchAttribute_st___setstat #define __pyx_n_s_cudaLaunchAttribute_st_getPtr __pyx_mstate_global->__pyx_n_s_cudaLaunchAttribute_st_getPtr #define __pyx_n_s_cudaLaunchHostFunc __pyx_mstate_global->__pyx_n_s_cudaLaunchHostFunc #define __pyx_n_s_cudaLaunchMemSyncDomain __pyx_mstate_global->__pyx_n_s_cudaLaunchMemSyncDomain #define __pyx_n_s_cudaLaunchMemSyncDomainDefault __pyx_mstate_global->__pyx_n_s_cudaLaunchMemSyncDomainDefault #define __pyx_n_s_cudaLaunchMemSyncDomainMap __pyx_mstate_global->__pyx_n_s_cudaLaunchMemSyncDomainMap #define __pyx_n_s_cudaLaunchMemSyncDomainMap_st __pyx_mstate_global->__pyx_n_s_cudaLaunchMemSyncDomainMap_st #define __pyx_n_s_cudaLaunchMemSyncDomainMap_st_2 __pyx_mstate_global->__pyx_n_s_cudaLaunchMemSyncDomainMap_st_2 #define __pyx_n_s_cudaLaunchMemSyncDomainMap_st_3 __pyx_mstate_global->__pyx_n_s_cudaLaunchMemSyncDomainMap_st_3 #define __pyx_n_s_cudaLaunchMemSyncDomainMap_st_ge __pyx_mstate_global->__pyx_n_s_cudaLaunchMemSyncDomainMap_st_ge #define __pyx_n_s_cudaLaunchMemSyncDomainRemote __pyx_mstate_global->__pyx_n_s_cudaLaunchMemSyncDomainRemote #define __pyx_n_s_cudaLimit __pyx_mstate_global->__pyx_n_s_cudaLimit #define __pyx_n_s_cudaLimitDevRuntimePendingLaunch __pyx_mstate_global->__pyx_n_s_cudaLimitDevRuntimePendingLaunch #define __pyx_n_s_cudaLimitDevRuntimeSyncDepth __pyx_mstate_global->__pyx_n_s_cudaLimitDevRuntimeSyncDepth #define __pyx_n_s_cudaLimitMallocHeapSize __pyx_mstate_global->__pyx_n_s_cudaLimitMallocHeapSize #define __pyx_n_s_cudaLimitMaxL2FetchGranularity __pyx_mstate_global->__pyx_n_s_cudaLimitMaxL2FetchGranularity #define __pyx_n_s_cudaLimitPersistingL2CacheSize __pyx_mstate_global->__pyx_n_s_cudaLimitPersistingL2CacheSize #define __pyx_n_s_cudaLimitPrintfFifoSize __pyx_mstate_global->__pyx_n_s_cudaLimitPrintfFifoSize #define __pyx_n_s_cudaLimitStackSize __pyx_mstate_global->__pyx_n_s_cudaLimitStackSize #define __pyx_n_s_cudaMalloc __pyx_mstate_global->__pyx_n_s_cudaMalloc #define __pyx_n_s_cudaMalloc3D __pyx_mstate_global->__pyx_n_s_cudaMalloc3D #define __pyx_n_s_cudaMalloc3DArray __pyx_mstate_global->__pyx_n_s_cudaMalloc3DArray #define __pyx_n_s_cudaMallocArray __pyx_mstate_global->__pyx_n_s_cudaMallocArray #define __pyx_n_s_cudaMallocAsync __pyx_mstate_global->__pyx_n_s_cudaMallocAsync #define __pyx_n_s_cudaMallocFromPoolAsync __pyx_mstate_global->__pyx_n_s_cudaMallocFromPoolAsync #define __pyx_n_s_cudaMallocHost __pyx_mstate_global->__pyx_n_s_cudaMallocHost #define __pyx_n_s_cudaMallocManaged __pyx_mstate_global->__pyx_n_s_cudaMallocManaged #define __pyx_n_s_cudaMallocMipmappedArray __pyx_mstate_global->__pyx_n_s_cudaMallocMipmappedArray #define __pyx_n_s_cudaMallocPitch __pyx_mstate_global->__pyx_n_s_cudaMallocPitch #define __pyx_n_s_cudaMemAccessDesc __pyx_mstate_global->__pyx_n_s_cudaMemAccessDesc #define __pyx_n_s_cudaMemAccessDesc___reduce_cytho __pyx_mstate_global->__pyx_n_s_cudaMemAccessDesc___reduce_cytho #define __pyx_n_s_cudaMemAccessDesc___setstate_cyt __pyx_mstate_global->__pyx_n_s_cudaMemAccessDesc___setstate_cyt #define __pyx_n_s_cudaMemAccessDesc_getPtr __pyx_mstate_global->__pyx_n_s_cudaMemAccessDesc_getPtr #define __pyx_n_s_cudaMemAccessFlags __pyx_mstate_global->__pyx_n_s_cudaMemAccessFlags #define __pyx_n_s_cudaMemAccessFlagsProtNone __pyx_mstate_global->__pyx_n_s_cudaMemAccessFlagsProtNone #define __pyx_n_s_cudaMemAccessFlagsProtRead __pyx_mstate_global->__pyx_n_s_cudaMemAccessFlagsProtRead #define __pyx_n_s_cudaMemAccessFlagsProtReadWrite __pyx_mstate_global->__pyx_n_s_cudaMemAccessFlagsProtReadWrite #define __pyx_n_s_cudaMemAdvise __pyx_mstate_global->__pyx_n_s_cudaMemAdvise #define __pyx_n_s_cudaMemAdviseSetAccessedBy __pyx_mstate_global->__pyx_n_s_cudaMemAdviseSetAccessedBy #define __pyx_n_s_cudaMemAdviseSetPreferredLocatio __pyx_mstate_global->__pyx_n_s_cudaMemAdviseSetPreferredLocatio #define __pyx_n_s_cudaMemAdviseSetReadMostly __pyx_mstate_global->__pyx_n_s_cudaMemAdviseSetReadMostly #define __pyx_n_s_cudaMemAdviseUnsetAccessedBy __pyx_mstate_global->__pyx_n_s_cudaMemAdviseUnsetAccessedBy #define __pyx_n_s_cudaMemAdviseUnsetPreferredLocat __pyx_mstate_global->__pyx_n_s_cudaMemAdviseUnsetPreferredLocat #define __pyx_n_s_cudaMemAdviseUnsetReadMostly __pyx_mstate_global->__pyx_n_s_cudaMemAdviseUnsetReadMostly #define __pyx_n_s_cudaMemAdvise_v2 __pyx_mstate_global->__pyx_n_s_cudaMemAdvise_v2 #define __pyx_n_s_cudaMemAllocNodeParams __pyx_mstate_global->__pyx_n_s_cudaMemAllocNodeParams #define __pyx_n_s_cudaMemAllocNodeParamsV2 __pyx_mstate_global->__pyx_n_s_cudaMemAllocNodeParamsV2 #define __pyx_n_s_cudaMemAllocNodeParamsV2___reduc __pyx_mstate_global->__pyx_n_s_cudaMemAllocNodeParamsV2___reduc #define __pyx_n_s_cudaMemAllocNodeParamsV2___setst __pyx_mstate_global->__pyx_n_s_cudaMemAllocNodeParamsV2___setst #define __pyx_n_s_cudaMemAllocNodeParamsV2_getPtr __pyx_mstate_global->__pyx_n_s_cudaMemAllocNodeParamsV2_getPtr #define __pyx_n_s_cudaMemAllocNodeParams___reduce __pyx_mstate_global->__pyx_n_s_cudaMemAllocNodeParams___reduce #define __pyx_n_s_cudaMemAllocNodeParams___setstat __pyx_mstate_global->__pyx_n_s_cudaMemAllocNodeParams___setstat #define __pyx_n_s_cudaMemAllocNodeParams_getPtr __pyx_mstate_global->__pyx_n_s_cudaMemAllocNodeParams_getPtr #define __pyx_n_s_cudaMemAllocationHandleType __pyx_mstate_global->__pyx_n_s_cudaMemAllocationHandleType #define __pyx_n_s_cudaMemAllocationType __pyx_mstate_global->__pyx_n_s_cudaMemAllocationType #define __pyx_n_s_cudaMemAllocationTypeInvalid __pyx_mstate_global->__pyx_n_s_cudaMemAllocationTypeInvalid #define __pyx_n_s_cudaMemAllocationTypeMax __pyx_mstate_global->__pyx_n_s_cudaMemAllocationTypeMax #define __pyx_n_s_cudaMemAllocationTypePinned __pyx_mstate_global->__pyx_n_s_cudaMemAllocationTypePinned #define __pyx_n_s_cudaMemAttachGlobal __pyx_mstate_global->__pyx_n_s_cudaMemAttachGlobal #define __pyx_n_s_cudaMemAttachHost __pyx_mstate_global->__pyx_n_s_cudaMemAttachHost #define __pyx_n_s_cudaMemAttachSingle __pyx_mstate_global->__pyx_n_s_cudaMemAttachSingle #define __pyx_n_s_cudaMemFabricHandle_st __pyx_mstate_global->__pyx_n_s_cudaMemFabricHandle_st #define __pyx_n_s_cudaMemFabricHandle_st___reduce __pyx_mstate_global->__pyx_n_s_cudaMemFabricHandle_st___reduce #define __pyx_n_s_cudaMemFabricHandle_st___setstat __pyx_mstate_global->__pyx_n_s_cudaMemFabricHandle_st___setstat #define __pyx_n_s_cudaMemFabricHandle_st_getPtr __pyx_mstate_global->__pyx_n_s_cudaMemFabricHandle_st_getPtr #define __pyx_n_s_cudaMemFabricHandle_t __pyx_mstate_global->__pyx_n_s_cudaMemFabricHandle_t #define __pyx_n_s_cudaMemFreeNodeParams __pyx_mstate_global->__pyx_n_s_cudaMemFreeNodeParams #define __pyx_n_s_cudaMemFreeNodeParams___reduce_c __pyx_mstate_global->__pyx_n_s_cudaMemFreeNodeParams___reduce_c #define __pyx_n_s_cudaMemFreeNodeParams___setstate __pyx_mstate_global->__pyx_n_s_cudaMemFreeNodeParams___setstate #define __pyx_n_s_cudaMemFreeNodeParams_getPtr __pyx_mstate_global->__pyx_n_s_cudaMemFreeNodeParams_getPtr #define __pyx_n_s_cudaMemGetInfo __pyx_mstate_global->__pyx_n_s_cudaMemGetInfo #define __pyx_n_s_cudaMemHandleTypeFabric __pyx_mstate_global->__pyx_n_s_cudaMemHandleTypeFabric #define __pyx_n_s_cudaMemHandleTypeNone __pyx_mstate_global->__pyx_n_s_cudaMemHandleTypeNone #define __pyx_n_s_cudaMemHandleTypePosixFileDescri __pyx_mstate_global->__pyx_n_s_cudaMemHandleTypePosixFileDescri #define __pyx_n_s_cudaMemHandleTypeWin32 __pyx_mstate_global->__pyx_n_s_cudaMemHandleTypeWin32 #define __pyx_n_s_cudaMemHandleTypeWin32Kmt __pyx_mstate_global->__pyx_n_s_cudaMemHandleTypeWin32Kmt #define __pyx_n_s_cudaMemLocation __pyx_mstate_global->__pyx_n_s_cudaMemLocation #define __pyx_n_s_cudaMemLocationType __pyx_mstate_global->__pyx_n_s_cudaMemLocationType #define __pyx_n_s_cudaMemLocationTypeDevice __pyx_mstate_global->__pyx_n_s_cudaMemLocationTypeDevice #define __pyx_n_s_cudaMemLocationTypeHost __pyx_mstate_global->__pyx_n_s_cudaMemLocationTypeHost #define __pyx_n_s_cudaMemLocationTypeHostNuma __pyx_mstate_global->__pyx_n_s_cudaMemLocationTypeHostNuma #define __pyx_n_s_cudaMemLocationTypeHostNumaCurre __pyx_mstate_global->__pyx_n_s_cudaMemLocationTypeHostNumaCurre #define __pyx_n_s_cudaMemLocationTypeInvalid __pyx_mstate_global->__pyx_n_s_cudaMemLocationTypeInvalid #define __pyx_n_s_cudaMemLocation___reduce_cython __pyx_mstate_global->__pyx_n_s_cudaMemLocation___reduce_cython #define __pyx_n_s_cudaMemLocation___setstate_cytho __pyx_mstate_global->__pyx_n_s_cudaMemLocation___setstate_cytho #define __pyx_n_s_cudaMemLocation_getPtr __pyx_mstate_global->__pyx_n_s_cudaMemLocation_getPtr #define __pyx_n_s_cudaMemPoolAttr __pyx_mstate_global->__pyx_n_s_cudaMemPoolAttr #define __pyx_n_s_cudaMemPoolAttrReleaseThreshold __pyx_mstate_global->__pyx_n_s_cudaMemPoolAttrReleaseThreshold #define __pyx_n_s_cudaMemPoolAttrReservedMemCurren __pyx_mstate_global->__pyx_n_s_cudaMemPoolAttrReservedMemCurren #define __pyx_n_s_cudaMemPoolAttrReservedMemHigh __pyx_mstate_global->__pyx_n_s_cudaMemPoolAttrReservedMemHigh #define __pyx_n_s_cudaMemPoolAttrUsedMemCurrent __pyx_mstate_global->__pyx_n_s_cudaMemPoolAttrUsedMemCurrent #define __pyx_n_s_cudaMemPoolAttrUsedMemHigh __pyx_mstate_global->__pyx_n_s_cudaMemPoolAttrUsedMemHigh #define __pyx_n_s_cudaMemPoolCreate __pyx_mstate_global->__pyx_n_s_cudaMemPoolCreate #define __pyx_n_s_cudaMemPoolDestroy __pyx_mstate_global->__pyx_n_s_cudaMemPoolDestroy #define __pyx_n_s_cudaMemPoolExportPointer __pyx_mstate_global->__pyx_n_s_cudaMemPoolExportPointer #define __pyx_n_s_cudaMemPoolExportToShareableHand __pyx_mstate_global->__pyx_n_s_cudaMemPoolExportToShareableHand #define __pyx_n_s_cudaMemPoolGetAccess __pyx_mstate_global->__pyx_n_s_cudaMemPoolGetAccess #define __pyx_n_s_cudaMemPoolGetAttribute __pyx_mstate_global->__pyx_n_s_cudaMemPoolGetAttribute #define __pyx_n_s_cudaMemPoolImportFromShareableHa __pyx_mstate_global->__pyx_n_s_cudaMemPoolImportFromShareableHa #define __pyx_n_s_cudaMemPoolImportPointer __pyx_mstate_global->__pyx_n_s_cudaMemPoolImportPointer #define __pyx_n_s_cudaMemPoolProps __pyx_mstate_global->__pyx_n_s_cudaMemPoolProps #define __pyx_n_s_cudaMemPoolProps___reduce_cython __pyx_mstate_global->__pyx_n_s_cudaMemPoolProps___reduce_cython #define __pyx_n_s_cudaMemPoolProps___setstate_cyth __pyx_mstate_global->__pyx_n_s_cudaMemPoolProps___setstate_cyth #define __pyx_n_s_cudaMemPoolProps_getPtr __pyx_mstate_global->__pyx_n_s_cudaMemPoolProps_getPtr #define __pyx_n_s_cudaMemPoolPtrExportData __pyx_mstate_global->__pyx_n_s_cudaMemPoolPtrExportData #define __pyx_n_s_cudaMemPoolPtrExportData___reduc __pyx_mstate_global->__pyx_n_s_cudaMemPoolPtrExportData___reduc #define __pyx_n_s_cudaMemPoolPtrExportData___setst __pyx_mstate_global->__pyx_n_s_cudaMemPoolPtrExportData___setst #define __pyx_n_s_cudaMemPoolPtrExportData_getPtr __pyx_mstate_global->__pyx_n_s_cudaMemPoolPtrExportData_getPtr #define __pyx_n_s_cudaMemPoolReuseAllowInternalDep __pyx_mstate_global->__pyx_n_s_cudaMemPoolReuseAllowInternalDep #define __pyx_n_s_cudaMemPoolReuseAllowOpportunist __pyx_mstate_global->__pyx_n_s_cudaMemPoolReuseAllowOpportunist #define __pyx_n_s_cudaMemPoolReuseFollowEventDepen __pyx_mstate_global->__pyx_n_s_cudaMemPoolReuseFollowEventDepen #define __pyx_n_s_cudaMemPoolSetAccess __pyx_mstate_global->__pyx_n_s_cudaMemPoolSetAccess #define __pyx_n_s_cudaMemPoolSetAccess_locals_gene __pyx_mstate_global->__pyx_n_s_cudaMemPoolSetAccess_locals_gene #define __pyx_n_s_cudaMemPoolSetAttribute __pyx_mstate_global->__pyx_n_s_cudaMemPoolSetAttribute #define __pyx_n_s_cudaMemPoolTrimTo __pyx_mstate_global->__pyx_n_s_cudaMemPoolTrimTo #define __pyx_n_s_cudaMemPool_t __pyx_mstate_global->__pyx_n_s_cudaMemPool_t #define __pyx_n_s_cudaMemPrefetchAsync __pyx_mstate_global->__pyx_n_s_cudaMemPrefetchAsync #define __pyx_n_s_cudaMemPrefetchAsync_v2 __pyx_mstate_global->__pyx_n_s_cudaMemPrefetchAsync_v2 #define __pyx_n_s_cudaMemRangeAttribute __pyx_mstate_global->__pyx_n_s_cudaMemRangeAttribute #define __pyx_n_s_cudaMemRangeAttributeAccessedBy __pyx_mstate_global->__pyx_n_s_cudaMemRangeAttributeAccessedBy #define __pyx_n_s_cudaMemRangeAttributeLastPrefetc __pyx_mstate_global->__pyx_n_s_cudaMemRangeAttributeLastPrefetc #define __pyx_n_s_cudaMemRangeAttributeLastPrefetc_2 __pyx_mstate_global->__pyx_n_s_cudaMemRangeAttributeLastPrefetc_2 #define __pyx_n_s_cudaMemRangeAttributeLastPrefetc_3 __pyx_mstate_global->__pyx_n_s_cudaMemRangeAttributeLastPrefetc_3 #define __pyx_n_s_cudaMemRangeAttributePreferredLo __pyx_mstate_global->__pyx_n_s_cudaMemRangeAttributePreferredLo #define __pyx_n_s_cudaMemRangeAttributePreferredLo_2 __pyx_mstate_global->__pyx_n_s_cudaMemRangeAttributePreferredLo_2 #define __pyx_n_s_cudaMemRangeAttributePreferredLo_3 __pyx_mstate_global->__pyx_n_s_cudaMemRangeAttributePreferredLo_3 #define __pyx_n_s_cudaMemRangeAttributeReadMostly __pyx_mstate_global->__pyx_n_s_cudaMemRangeAttributeReadMostly #define __pyx_n_s_cudaMemRangeGetAttribute __pyx_mstate_global->__pyx_n_s_cudaMemRangeGetAttribute #define __pyx_n_s_cudaMemRangeGetAttributes __pyx_mstate_global->__pyx_n_s_cudaMemRangeGetAttributes #define __pyx_n_s_cudaMemRangeGetAttributes_locals __pyx_mstate_global->__pyx_n_s_cudaMemRangeGetAttributes_locals #define __pyx_n_s_cudaMemcpy __pyx_mstate_global->__pyx_n_s_cudaMemcpy #define __pyx_n_s_cudaMemcpy2D __pyx_mstate_global->__pyx_n_s_cudaMemcpy2D #define __pyx_n_s_cudaMemcpy2DArrayToArray __pyx_mstate_global->__pyx_n_s_cudaMemcpy2DArrayToArray #define __pyx_n_s_cudaMemcpy2DAsync __pyx_mstate_global->__pyx_n_s_cudaMemcpy2DAsync #define __pyx_n_s_cudaMemcpy2DFromArray __pyx_mstate_global->__pyx_n_s_cudaMemcpy2DFromArray #define __pyx_n_s_cudaMemcpy2DFromArrayAsync __pyx_mstate_global->__pyx_n_s_cudaMemcpy2DFromArrayAsync #define __pyx_n_s_cudaMemcpy2DToArray __pyx_mstate_global->__pyx_n_s_cudaMemcpy2DToArray #define __pyx_n_s_cudaMemcpy2DToArrayAsync __pyx_mstate_global->__pyx_n_s_cudaMemcpy2DToArrayAsync #define __pyx_n_s_cudaMemcpy3D __pyx_mstate_global->__pyx_n_s_cudaMemcpy3D #define __pyx_n_s_cudaMemcpy3DAsync __pyx_mstate_global->__pyx_n_s_cudaMemcpy3DAsync #define __pyx_n_s_cudaMemcpy3DParms __pyx_mstate_global->__pyx_n_s_cudaMemcpy3DParms #define __pyx_n_s_cudaMemcpy3DParms___reduce_cytho __pyx_mstate_global->__pyx_n_s_cudaMemcpy3DParms___reduce_cytho #define __pyx_n_s_cudaMemcpy3DParms___setstate_cyt __pyx_mstate_global->__pyx_n_s_cudaMemcpy3DParms___setstate_cyt #define __pyx_n_s_cudaMemcpy3DParms_getPtr __pyx_mstate_global->__pyx_n_s_cudaMemcpy3DParms_getPtr #define __pyx_n_s_cudaMemcpy3DPeer __pyx_mstate_global->__pyx_n_s_cudaMemcpy3DPeer #define __pyx_n_s_cudaMemcpy3DPeerAsync __pyx_mstate_global->__pyx_n_s_cudaMemcpy3DPeerAsync #define __pyx_n_s_cudaMemcpy3DPeerParms __pyx_mstate_global->__pyx_n_s_cudaMemcpy3DPeerParms #define __pyx_n_s_cudaMemcpy3DPeerParms___reduce_c __pyx_mstate_global->__pyx_n_s_cudaMemcpy3DPeerParms___reduce_c #define __pyx_n_s_cudaMemcpy3DPeerParms___setstate __pyx_mstate_global->__pyx_n_s_cudaMemcpy3DPeerParms___setstate #define __pyx_n_s_cudaMemcpy3DPeerParms_getPtr __pyx_mstate_global->__pyx_n_s_cudaMemcpy3DPeerParms_getPtr #define __pyx_n_s_cudaMemcpyArrayToArray __pyx_mstate_global->__pyx_n_s_cudaMemcpyArrayToArray #define __pyx_n_s_cudaMemcpyAsync __pyx_mstate_global->__pyx_n_s_cudaMemcpyAsync #define __pyx_n_s_cudaMemcpyDefault __pyx_mstate_global->__pyx_n_s_cudaMemcpyDefault #define __pyx_n_s_cudaMemcpyDeviceToDevice __pyx_mstate_global->__pyx_n_s_cudaMemcpyDeviceToDevice #define __pyx_n_s_cudaMemcpyDeviceToHost __pyx_mstate_global->__pyx_n_s_cudaMemcpyDeviceToHost #define __pyx_n_s_cudaMemcpyFromArray __pyx_mstate_global->__pyx_n_s_cudaMemcpyFromArray #define __pyx_n_s_cudaMemcpyFromArrayAsync __pyx_mstate_global->__pyx_n_s_cudaMemcpyFromArrayAsync #define __pyx_n_s_cudaMemcpyHostToDevice __pyx_mstate_global->__pyx_n_s_cudaMemcpyHostToDevice #define __pyx_n_s_cudaMemcpyHostToHost __pyx_mstate_global->__pyx_n_s_cudaMemcpyHostToHost #define __pyx_n_s_cudaMemcpyKind __pyx_mstate_global->__pyx_n_s_cudaMemcpyKind #define __pyx_n_s_cudaMemcpyNodeParams __pyx_mstate_global->__pyx_n_s_cudaMemcpyNodeParams #define __pyx_n_s_cudaMemcpyNodeParams___reduce_cy __pyx_mstate_global->__pyx_n_s_cudaMemcpyNodeParams___reduce_cy #define __pyx_n_s_cudaMemcpyNodeParams___setstate __pyx_mstate_global->__pyx_n_s_cudaMemcpyNodeParams___setstate #define __pyx_n_s_cudaMemcpyNodeParams_getPtr __pyx_mstate_global->__pyx_n_s_cudaMemcpyNodeParams_getPtr #define __pyx_n_s_cudaMemcpyPeer __pyx_mstate_global->__pyx_n_s_cudaMemcpyPeer #define __pyx_n_s_cudaMemcpyPeerAsync __pyx_mstate_global->__pyx_n_s_cudaMemcpyPeerAsync #define __pyx_n_s_cudaMemcpyToArray __pyx_mstate_global->__pyx_n_s_cudaMemcpyToArray #define __pyx_n_s_cudaMemcpyToArrayAsync __pyx_mstate_global->__pyx_n_s_cudaMemcpyToArrayAsync #define __pyx_n_s_cudaMemoryAdvise __pyx_mstate_global->__pyx_n_s_cudaMemoryAdvise #define __pyx_n_s_cudaMemoryType __pyx_mstate_global->__pyx_n_s_cudaMemoryType #define __pyx_n_s_cudaMemoryTypeDevice __pyx_mstate_global->__pyx_n_s_cudaMemoryTypeDevice #define __pyx_n_s_cudaMemoryTypeHost __pyx_mstate_global->__pyx_n_s_cudaMemoryTypeHost #define __pyx_n_s_cudaMemoryTypeManaged __pyx_mstate_global->__pyx_n_s_cudaMemoryTypeManaged #define __pyx_n_s_cudaMemoryTypeUnregistered __pyx_mstate_global->__pyx_n_s_cudaMemoryTypeUnregistered #define __pyx_n_s_cudaMemset __pyx_mstate_global->__pyx_n_s_cudaMemset #define __pyx_n_s_cudaMemset2D __pyx_mstate_global->__pyx_n_s_cudaMemset2D #define __pyx_n_s_cudaMemset2DAsync __pyx_mstate_global->__pyx_n_s_cudaMemset2DAsync #define __pyx_n_s_cudaMemset3D __pyx_mstate_global->__pyx_n_s_cudaMemset3D #define __pyx_n_s_cudaMemset3DAsync __pyx_mstate_global->__pyx_n_s_cudaMemset3DAsync #define __pyx_n_s_cudaMemsetAsync __pyx_mstate_global->__pyx_n_s_cudaMemsetAsync #define __pyx_n_s_cudaMemsetParams __pyx_mstate_global->__pyx_n_s_cudaMemsetParams #define __pyx_n_s_cudaMemsetParamsV2 __pyx_mstate_global->__pyx_n_s_cudaMemsetParamsV2 #define __pyx_n_s_cudaMemsetParamsV2___reduce_cyth __pyx_mstate_global->__pyx_n_s_cudaMemsetParamsV2___reduce_cyth #define __pyx_n_s_cudaMemsetParamsV2___setstate_cy __pyx_mstate_global->__pyx_n_s_cudaMemsetParamsV2___setstate_cy #define __pyx_n_s_cudaMemsetParamsV2_getPtr __pyx_mstate_global->__pyx_n_s_cudaMemsetParamsV2_getPtr #define __pyx_n_s_cudaMemsetParams___reduce_cython __pyx_mstate_global->__pyx_n_s_cudaMemsetParams___reduce_cython #define __pyx_n_s_cudaMemsetParams___setstate_cyth __pyx_mstate_global->__pyx_n_s_cudaMemsetParams___setstate_cyth #define __pyx_n_s_cudaMemsetParams_getPtr __pyx_mstate_global->__pyx_n_s_cudaMemsetParams_getPtr #define __pyx_n_s_cudaMipmappedArrayGetMemoryRequi __pyx_mstate_global->__pyx_n_s_cudaMipmappedArrayGetMemoryRequi #define __pyx_n_s_cudaMipmappedArrayGetSparsePrope __pyx_mstate_global->__pyx_n_s_cudaMipmappedArrayGetSparsePrope #define __pyx_kp_u_cudaMipmappedArray_const_t __pyx_mstate_global->__pyx_kp_u_cudaMipmappedArray_const_t #define __pyx_n_s_cudaMipmappedArray_const_t_2 __pyx_mstate_global->__pyx_n_s_cudaMipmappedArray_const_t_2 #define __pyx_n_s_cudaMipmappedArray_const_t___red __pyx_mstate_global->__pyx_n_s_cudaMipmappedArray_const_t___red #define __pyx_n_s_cudaMipmappedArray_const_t___set __pyx_mstate_global->__pyx_n_s_cudaMipmappedArray_const_t___set #define __pyx_n_s_cudaMipmappedArray_const_t_getPt __pyx_mstate_global->__pyx_n_s_cudaMipmappedArray_const_t_getPt #define __pyx_kp_u_cudaMipmappedArray_t __pyx_mstate_global->__pyx_kp_u_cudaMipmappedArray_t #define __pyx_n_s_cudaMipmappedArray_t_2 __pyx_mstate_global->__pyx_n_s_cudaMipmappedArray_t_2 #define __pyx_n_s_cudaMipmappedArray_t___reduce_cy __pyx_mstate_global->__pyx_n_s_cudaMipmappedArray_t___reduce_cy #define __pyx_n_s_cudaMipmappedArray_t___setstate __pyx_mstate_global->__pyx_n_s_cudaMipmappedArray_t___setstate #define __pyx_n_s_cudaMipmappedArray_t_getPtr __pyx_mstate_global->__pyx_n_s_cudaMipmappedArray_t_getPtr #define __pyx_n_s_cudaNvSciSyncAttrSignal __pyx_mstate_global->__pyx_n_s_cudaNvSciSyncAttrSignal #define __pyx_n_s_cudaNvSciSyncAttrWait __pyx_mstate_global->__pyx_n_s_cudaNvSciSyncAttrWait #define __pyx_n_s_cudaOccupancyAvailableDynamicSMe __pyx_mstate_global->__pyx_n_s_cudaOccupancyAvailableDynamicSMe #define __pyx_n_s_cudaOccupancyDefault __pyx_mstate_global->__pyx_n_s_cudaOccupancyDefault #define __pyx_n_s_cudaOccupancyDisableCachingOverr __pyx_mstate_global->__pyx_n_s_cudaOccupancyDisableCachingOverr #define __pyx_n_s_cudaOccupancyMaxActiveBlocksPerM __pyx_mstate_global->__pyx_n_s_cudaOccupancyMaxActiveBlocksPerM #define __pyx_n_s_cudaOccupancyMaxActiveBlocksPerM_2 __pyx_mstate_global->__pyx_n_s_cudaOccupancyMaxActiveBlocksPerM_2 #define __pyx_n_s_cudaPeekAtLastError __pyx_mstate_global->__pyx_n_s_cudaPeekAtLastError #define __pyx_n_s_cudaPeerAccessDefault __pyx_mstate_global->__pyx_n_s_cudaPeerAccessDefault #define __pyx_n_s_cudaPitchedPtr __pyx_mstate_global->__pyx_n_s_cudaPitchedPtr #define __pyx_n_s_cudaPitchedPtr___reduce_cython __pyx_mstate_global->__pyx_n_s_cudaPitchedPtr___reduce_cython #define __pyx_n_s_cudaPitchedPtr___setstate_cython __pyx_mstate_global->__pyx_n_s_cudaPitchedPtr___setstate_cython #define __pyx_n_s_cudaPitchedPtr_getPtr __pyx_mstate_global->__pyx_n_s_cudaPitchedPtr_getPtr #define __pyx_n_s_cudaPointerAttributes __pyx_mstate_global->__pyx_n_s_cudaPointerAttributes #define __pyx_n_s_cudaPointerAttributes___reduce_c __pyx_mstate_global->__pyx_n_s_cudaPointerAttributes___reduce_c #define __pyx_n_s_cudaPointerAttributes___setstate __pyx_mstate_global->__pyx_n_s_cudaPointerAttributes___setstate #define __pyx_n_s_cudaPointerAttributes_getPtr __pyx_mstate_global->__pyx_n_s_cudaPointerAttributes_getPtr #define __pyx_n_s_cudaPointerGetAttributes __pyx_mstate_global->__pyx_n_s_cudaPointerGetAttributes #define __pyx_n_s_cudaPos __pyx_mstate_global->__pyx_n_s_cudaPos #define __pyx_n_s_cudaPos___reduce_cython __pyx_mstate_global->__pyx_n_s_cudaPos___reduce_cython #define __pyx_n_s_cudaPos___setstate_cython __pyx_mstate_global->__pyx_n_s_cudaPos___setstate_cython #define __pyx_n_s_cudaPos_getPtr __pyx_mstate_global->__pyx_n_s_cudaPos_getPtr #define __pyx_n_s_cudaProfilerStart __pyx_mstate_global->__pyx_n_s_cudaProfilerStart #define __pyx_n_s_cudaProfilerStop __pyx_mstate_global->__pyx_n_s_cudaProfilerStop #define __pyx_n_s_cudaReadModeElementType __pyx_mstate_global->__pyx_n_s_cudaReadModeElementType #define __pyx_n_s_cudaReadModeNormalizedFloat __pyx_mstate_global->__pyx_n_s_cudaReadModeNormalizedFloat #define __pyx_n_s_cudaResViewFormatFloat1 __pyx_mstate_global->__pyx_n_s_cudaResViewFormatFloat1 #define __pyx_n_s_cudaResViewFormatFloat2 __pyx_mstate_global->__pyx_n_s_cudaResViewFormatFloat2 #define __pyx_n_s_cudaResViewFormatFloat4 __pyx_mstate_global->__pyx_n_s_cudaResViewFormatFloat4 #define __pyx_n_s_cudaResViewFormatHalf1 __pyx_mstate_global->__pyx_n_s_cudaResViewFormatHalf1 #define __pyx_n_s_cudaResViewFormatHalf2 __pyx_mstate_global->__pyx_n_s_cudaResViewFormatHalf2 #define __pyx_n_s_cudaResViewFormatHalf4 __pyx_mstate_global->__pyx_n_s_cudaResViewFormatHalf4 #define __pyx_n_s_cudaResViewFormatNone __pyx_mstate_global->__pyx_n_s_cudaResViewFormatNone #define __pyx_n_s_cudaResViewFormatSignedBlockComp __pyx_mstate_global->__pyx_n_s_cudaResViewFormatSignedBlockComp #define __pyx_n_s_cudaResViewFormatSignedBlockComp_2 __pyx_mstate_global->__pyx_n_s_cudaResViewFormatSignedBlockComp_2 #define __pyx_n_s_cudaResViewFormatSignedBlockComp_3 __pyx_mstate_global->__pyx_n_s_cudaResViewFormatSignedBlockComp_3 #define __pyx_n_s_cudaResViewFormatSignedChar1 __pyx_mstate_global->__pyx_n_s_cudaResViewFormatSignedChar1 #define __pyx_n_s_cudaResViewFormatSignedChar2 __pyx_mstate_global->__pyx_n_s_cudaResViewFormatSignedChar2 #define __pyx_n_s_cudaResViewFormatSignedChar4 __pyx_mstate_global->__pyx_n_s_cudaResViewFormatSignedChar4 #define __pyx_n_s_cudaResViewFormatSignedInt1 __pyx_mstate_global->__pyx_n_s_cudaResViewFormatSignedInt1 #define __pyx_n_s_cudaResViewFormatSignedInt2 __pyx_mstate_global->__pyx_n_s_cudaResViewFormatSignedInt2 #define __pyx_n_s_cudaResViewFormatSignedInt4 __pyx_mstate_global->__pyx_n_s_cudaResViewFormatSignedInt4 #define __pyx_n_s_cudaResViewFormatSignedShort1 __pyx_mstate_global->__pyx_n_s_cudaResViewFormatSignedShort1 #define __pyx_n_s_cudaResViewFormatSignedShort2 __pyx_mstate_global->__pyx_n_s_cudaResViewFormatSignedShort2 #define __pyx_n_s_cudaResViewFormatSignedShort4 __pyx_mstate_global->__pyx_n_s_cudaResViewFormatSignedShort4 #define __pyx_n_s_cudaResViewFormatUnsignedBlockCo __pyx_mstate_global->__pyx_n_s_cudaResViewFormatUnsignedBlockCo #define __pyx_n_s_cudaResViewFormatUnsignedBlockCo_2 __pyx_mstate_global->__pyx_n_s_cudaResViewFormatUnsignedBlockCo_2 #define __pyx_n_s_cudaResViewFormatUnsignedBlockCo_3 __pyx_mstate_global->__pyx_n_s_cudaResViewFormatUnsignedBlockCo_3 #define __pyx_n_s_cudaResViewFormatUnsignedBlockCo_4 __pyx_mstate_global->__pyx_n_s_cudaResViewFormatUnsignedBlockCo_4 #define __pyx_n_s_cudaResViewFormatUnsignedBlockCo_5 __pyx_mstate_global->__pyx_n_s_cudaResViewFormatUnsignedBlockCo_5 #define __pyx_n_s_cudaResViewFormatUnsignedBlockCo_6 __pyx_mstate_global->__pyx_n_s_cudaResViewFormatUnsignedBlockCo_6 #define __pyx_n_s_cudaResViewFormatUnsignedBlockCo_7 __pyx_mstate_global->__pyx_n_s_cudaResViewFormatUnsignedBlockCo_7 #define __pyx_n_s_cudaResViewFormatUnsignedChar1 __pyx_mstate_global->__pyx_n_s_cudaResViewFormatUnsignedChar1 #define __pyx_n_s_cudaResViewFormatUnsignedChar2 __pyx_mstate_global->__pyx_n_s_cudaResViewFormatUnsignedChar2 #define __pyx_n_s_cudaResViewFormatUnsignedChar4 __pyx_mstate_global->__pyx_n_s_cudaResViewFormatUnsignedChar4 #define __pyx_n_s_cudaResViewFormatUnsignedInt1 __pyx_mstate_global->__pyx_n_s_cudaResViewFormatUnsignedInt1 #define __pyx_n_s_cudaResViewFormatUnsignedInt2 __pyx_mstate_global->__pyx_n_s_cudaResViewFormatUnsignedInt2 #define __pyx_n_s_cudaResViewFormatUnsignedInt4 __pyx_mstate_global->__pyx_n_s_cudaResViewFormatUnsignedInt4 #define __pyx_n_s_cudaResViewFormatUnsignedShort1 __pyx_mstate_global->__pyx_n_s_cudaResViewFormatUnsignedShort1 #define __pyx_n_s_cudaResViewFormatUnsignedShort2 __pyx_mstate_global->__pyx_n_s_cudaResViewFormatUnsignedShort2 #define __pyx_n_s_cudaResViewFormatUnsignedShort4 __pyx_mstate_global->__pyx_n_s_cudaResViewFormatUnsignedShort4 #define __pyx_n_s_cudaResourceDesc __pyx_mstate_global->__pyx_n_s_cudaResourceDesc #define __pyx_n_s_cudaResourceDesc___reduce_cython __pyx_mstate_global->__pyx_n_s_cudaResourceDesc___reduce_cython #define __pyx_n_s_cudaResourceDesc___setstate_cyth __pyx_mstate_global->__pyx_n_s_cudaResourceDesc___setstate_cyth #define __pyx_n_s_cudaResourceDesc_getPtr __pyx_mstate_global->__pyx_n_s_cudaResourceDesc_getPtr #define __pyx_n_s_cudaResourceType __pyx_mstate_global->__pyx_n_s_cudaResourceType #define __pyx_n_s_cudaResourceTypeArray __pyx_mstate_global->__pyx_n_s_cudaResourceTypeArray #define __pyx_n_s_cudaResourceTypeLinear __pyx_mstate_global->__pyx_n_s_cudaResourceTypeLinear #define __pyx_n_s_cudaResourceTypeMipmappedArray __pyx_mstate_global->__pyx_n_s_cudaResourceTypeMipmappedArray #define __pyx_n_s_cudaResourceTypePitch2D __pyx_mstate_global->__pyx_n_s_cudaResourceTypePitch2D #define __pyx_n_s_cudaResourceViewDesc __pyx_mstate_global->__pyx_n_s_cudaResourceViewDesc #define __pyx_n_s_cudaResourceViewDesc___reduce_cy __pyx_mstate_global->__pyx_n_s_cudaResourceViewDesc___reduce_cy #define __pyx_n_s_cudaResourceViewDesc___setstate __pyx_mstate_global->__pyx_n_s_cudaResourceViewDesc___setstate #define __pyx_n_s_cudaResourceViewDesc_getPtr __pyx_mstate_global->__pyx_n_s_cudaResourceViewDesc_getPtr #define __pyx_n_s_cudaResourceViewFormat __pyx_mstate_global->__pyx_n_s_cudaResourceViewFormat #define __pyx_n_s_cudaRoundMinInf __pyx_mstate_global->__pyx_n_s_cudaRoundMinInf #define __pyx_n_s_cudaRoundMode __pyx_mstate_global->__pyx_n_s_cudaRoundMode #define __pyx_n_s_cudaRoundNearest __pyx_mstate_global->__pyx_n_s_cudaRoundNearest #define __pyx_n_s_cudaRoundPosInf __pyx_mstate_global->__pyx_n_s_cudaRoundPosInf #define __pyx_n_s_cudaRoundZero __pyx_mstate_global->__pyx_n_s_cudaRoundZero #define __pyx_n_s_cudaRuntimeGetVersion __pyx_mstate_global->__pyx_n_s_cudaRuntimeGetVersion #define __pyx_n_s_cudaSetDevice __pyx_mstate_global->__pyx_n_s_cudaSetDevice #define __pyx_n_s_cudaSetDeviceFlags __pyx_mstate_global->__pyx_n_s_cudaSetDeviceFlags #define __pyx_kp_u_cudaSetDevice_line_14584 __pyx_mstate_global->__pyx_kp_u_cudaSetDevice_line_14584 #define __pyx_n_s_cudaSharedCarveout __pyx_mstate_global->__pyx_n_s_cudaSharedCarveout #define __pyx_n_s_cudaSharedMemBankSizeDefault __pyx_mstate_global->__pyx_n_s_cudaSharedMemBankSizeDefault #define __pyx_n_s_cudaSharedMemBankSizeEightByte __pyx_mstate_global->__pyx_n_s_cudaSharedMemBankSizeEightByte #define __pyx_n_s_cudaSharedMemBankSizeFourByte __pyx_mstate_global->__pyx_n_s_cudaSharedMemBankSizeFourByte #define __pyx_n_s_cudaSharedMemConfig __pyx_mstate_global->__pyx_n_s_cudaSharedMemConfig #define __pyx_n_s_cudaSharedmemCarveoutDefault __pyx_mstate_global->__pyx_n_s_cudaSharedmemCarveoutDefault #define __pyx_n_s_cudaSharedmemCarveoutMaxL1 __pyx_mstate_global->__pyx_n_s_cudaSharedmemCarveoutMaxL1 #define __pyx_n_s_cudaSharedmemCarveoutMaxShared __pyx_mstate_global->__pyx_n_s_cudaSharedmemCarveoutMaxShared #define __pyx_n_s_cudaSignalExternalSemaphoresAsyn __pyx_mstate_global->__pyx_n_s_cudaSignalExternalSemaphoresAsyn #define __pyx_n_s_cudaSignalExternalSemaphoresAsyn_2 __pyx_mstate_global->__pyx_n_s_cudaSignalExternalSemaphoresAsyn_2 #define __pyx_n_s_cudaStreamAddCallback __pyx_mstate_global->__pyx_n_s_cudaStreamAddCallback #define __pyx_n_s_cudaStreamAddCaptureDependencies __pyx_mstate_global->__pyx_n_s_cudaStreamAddCaptureDependencies #define __pyx_n_s_cudaStreamAttachMemAsync __pyx_mstate_global->__pyx_n_s_cudaStreamAttachMemAsync #define __pyx_n_s_cudaStreamAttrID __pyx_mstate_global->__pyx_n_s_cudaStreamAttrID #define __pyx_n_s_cudaStreamAttrValue __pyx_mstate_global->__pyx_n_s_cudaStreamAttrValue #define __pyx_n_s_cudaStreamAttributeAccessPolicyW __pyx_mstate_global->__pyx_n_s_cudaStreamAttributeAccessPolicyW #define __pyx_n_s_cudaStreamAttributeMemSyncDomain __pyx_mstate_global->__pyx_n_s_cudaStreamAttributeMemSyncDomain #define __pyx_n_s_cudaStreamAttributeMemSyncDomain_2 __pyx_mstate_global->__pyx_n_s_cudaStreamAttributeMemSyncDomain_2 #define __pyx_n_s_cudaStreamAttributePriority __pyx_mstate_global->__pyx_n_s_cudaStreamAttributePriority #define __pyx_n_s_cudaStreamAttributeSynchronizati __pyx_mstate_global->__pyx_n_s_cudaStreamAttributeSynchronizati #define __pyx_n_s_cudaStreamBeginCapture __pyx_mstate_global->__pyx_n_s_cudaStreamBeginCapture #define __pyx_n_s_cudaStreamBeginCaptureToGraph __pyx_mstate_global->__pyx_n_s_cudaStreamBeginCaptureToGraph #define __pyx_n_s_cudaStreamBeginCaptureToGraph_lo __pyx_mstate_global->__pyx_n_s_cudaStreamBeginCaptureToGraph_lo #define __pyx_kp_u_cudaStreamCallback_t __pyx_mstate_global->__pyx_kp_u_cudaStreamCallback_t #define __pyx_n_s_cudaStreamCallback_t_2 __pyx_mstate_global->__pyx_n_s_cudaStreamCallback_t_2 #define __pyx_n_s_cudaStreamCallback_t___reduce_cy __pyx_mstate_global->__pyx_n_s_cudaStreamCallback_t___reduce_cy #define __pyx_n_s_cudaStreamCallback_t___setstate __pyx_mstate_global->__pyx_n_s_cudaStreamCallback_t___setstate #define __pyx_n_s_cudaStreamCallback_t_getPtr __pyx_mstate_global->__pyx_n_s_cudaStreamCallback_t_getPtr #define __pyx_n_s_cudaStreamCaptureMode __pyx_mstate_global->__pyx_n_s_cudaStreamCaptureMode #define __pyx_n_s_cudaStreamCaptureModeGlobal __pyx_mstate_global->__pyx_n_s_cudaStreamCaptureModeGlobal #define __pyx_n_s_cudaStreamCaptureModeRelaxed __pyx_mstate_global->__pyx_n_s_cudaStreamCaptureModeRelaxed #define __pyx_n_s_cudaStreamCaptureModeThreadLocal __pyx_mstate_global->__pyx_n_s_cudaStreamCaptureModeThreadLocal #define __pyx_n_s_cudaStreamCaptureStatus __pyx_mstate_global->__pyx_n_s_cudaStreamCaptureStatus #define __pyx_n_s_cudaStreamCaptureStatusActive __pyx_mstate_global->__pyx_n_s_cudaStreamCaptureStatusActive #define __pyx_n_s_cudaStreamCaptureStatusInvalidat __pyx_mstate_global->__pyx_n_s_cudaStreamCaptureStatusInvalidat #define __pyx_n_s_cudaStreamCaptureStatusNone __pyx_mstate_global->__pyx_n_s_cudaStreamCaptureStatusNone #define __pyx_n_s_cudaStreamCopyAttributes __pyx_mstate_global->__pyx_n_s_cudaStreamCopyAttributes #define __pyx_n_s_cudaStreamCreate __pyx_mstate_global->__pyx_n_s_cudaStreamCreate #define __pyx_n_s_cudaStreamCreateWithFlags __pyx_mstate_global->__pyx_n_s_cudaStreamCreateWithFlags #define __pyx_n_s_cudaStreamCreateWithPriority __pyx_mstate_global->__pyx_n_s_cudaStreamCreateWithPriority #define __pyx_n_s_cudaStreamDefault __pyx_mstate_global->__pyx_n_s_cudaStreamDefault #define __pyx_n_s_cudaStreamDestroy __pyx_mstate_global->__pyx_n_s_cudaStreamDestroy #define __pyx_n_s_cudaStreamEndCapture __pyx_mstate_global->__pyx_n_s_cudaStreamEndCapture #define __pyx_n_s_cudaStreamGetAttribute __pyx_mstate_global->__pyx_n_s_cudaStreamGetAttribute #define __pyx_n_s_cudaStreamGetCaptureInfo __pyx_mstate_global->__pyx_n_s_cudaStreamGetCaptureInfo #define __pyx_n_s_cudaStreamGetCaptureInfo_v3 __pyx_mstate_global->__pyx_n_s_cudaStreamGetCaptureInfo_v3 #define __pyx_n_s_cudaStreamGetFlags __pyx_mstate_global->__pyx_n_s_cudaStreamGetFlags #define __pyx_n_s_cudaStreamGetId __pyx_mstate_global->__pyx_n_s_cudaStreamGetId #define __pyx_n_s_cudaStreamGetPriority __pyx_mstate_global->__pyx_n_s_cudaStreamGetPriority #define __pyx_n_s_cudaStreamIsCapturing __pyx_mstate_global->__pyx_n_s_cudaStreamIsCapturing #define __pyx_n_s_cudaStreamLegacy __pyx_mstate_global->__pyx_n_s_cudaStreamLegacy #define __pyx_n_s_cudaStreamNonBlocking __pyx_mstate_global->__pyx_n_s_cudaStreamNonBlocking #define __pyx_n_s_cudaStreamPerThread __pyx_mstate_global->__pyx_n_s_cudaStreamPerThread #define __pyx_n_s_cudaStreamQuery __pyx_mstate_global->__pyx_n_s_cudaStreamQuery #define __pyx_n_s_cudaStreamSetAttribute __pyx_mstate_global->__pyx_n_s_cudaStreamSetAttribute #define __pyx_n_s_cudaStreamSetCaptureDependencies __pyx_mstate_global->__pyx_n_s_cudaStreamSetCaptureDependencies #define __pyx_n_s_cudaStreamSynchronize __pyx_mstate_global->__pyx_n_s_cudaStreamSynchronize #define __pyx_n_s_cudaStreamUpdateCaptureDependenc __pyx_mstate_global->__pyx_n_s_cudaStreamUpdateCaptureDependenc #define __pyx_n_s_cudaStreamUpdateCaptureDependenc_2 __pyx_mstate_global->__pyx_n_s_cudaStreamUpdateCaptureDependenc_2 #define __pyx_n_s_cudaStreamUpdateCaptureDependenc_3 __pyx_mstate_global->__pyx_n_s_cudaStreamUpdateCaptureDependenc_3 #define __pyx_n_s_cudaStreamUpdateCaptureDependenc_4 __pyx_mstate_global->__pyx_n_s_cudaStreamUpdateCaptureDependenc_4 #define __pyx_n_s_cudaStreamUpdateCaptureDependenc_5 __pyx_mstate_global->__pyx_n_s_cudaStreamUpdateCaptureDependenc_5 #define __pyx_n_s_cudaStreamWaitEvent __pyx_mstate_global->__pyx_n_s_cudaStreamWaitEvent #define __pyx_n_s_cudaStream_t __pyx_mstate_global->__pyx_n_s_cudaStream_t #define __pyx_n_s_cudaSuccess __pyx_mstate_global->__pyx_n_s_cudaSuccess #define __pyx_n_s_cudaSurfaceBoundaryMode __pyx_mstate_global->__pyx_n_s_cudaSurfaceBoundaryMode #define __pyx_n_s_cudaSurfaceFormatMode __pyx_mstate_global->__pyx_n_s_cudaSurfaceFormatMode #define __pyx_kp_u_cudaSurfaceObject_t __pyx_mstate_global->__pyx_kp_u_cudaSurfaceObject_t #define __pyx_n_s_cudaSurfaceObject_t_2 __pyx_mstate_global->__pyx_n_s_cudaSurfaceObject_t_2 #define __pyx_n_s_cudaSurfaceObject_t___reduce_cyt __pyx_mstate_global->__pyx_n_s_cudaSurfaceObject_t___reduce_cyt #define __pyx_n_s_cudaSurfaceObject_t___setstate_c __pyx_mstate_global->__pyx_n_s_cudaSurfaceObject_t___setstate_c #define __pyx_n_s_cudaSurfaceObject_t_getPtr __pyx_mstate_global->__pyx_n_s_cudaSurfaceObject_t_getPtr #define __pyx_n_s_cudaSurfaceType1D __pyx_mstate_global->__pyx_n_s_cudaSurfaceType1D #define __pyx_n_s_cudaSurfaceType1DLayered __pyx_mstate_global->__pyx_n_s_cudaSurfaceType1DLayered #define __pyx_n_s_cudaSurfaceType2D __pyx_mstate_global->__pyx_n_s_cudaSurfaceType2D #define __pyx_n_s_cudaSurfaceType2DLayered __pyx_mstate_global->__pyx_n_s_cudaSurfaceType2DLayered #define __pyx_n_s_cudaSurfaceType3D __pyx_mstate_global->__pyx_n_s_cudaSurfaceType3D #define __pyx_n_s_cudaSurfaceTypeCubemap __pyx_mstate_global->__pyx_n_s_cudaSurfaceTypeCubemap #define __pyx_n_s_cudaSurfaceTypeCubemapLayered __pyx_mstate_global->__pyx_n_s_cudaSurfaceTypeCubemapLayered #define __pyx_n_s_cudaSyncPolicyAuto __pyx_mstate_global->__pyx_n_s_cudaSyncPolicyAuto #define __pyx_n_s_cudaSyncPolicyBlockingSync __pyx_mstate_global->__pyx_n_s_cudaSyncPolicyBlockingSync #define __pyx_n_s_cudaSyncPolicySpin __pyx_mstate_global->__pyx_n_s_cudaSyncPolicySpin #define __pyx_n_s_cudaSyncPolicyYield __pyx_mstate_global->__pyx_n_s_cudaSyncPolicyYield #define __pyx_n_s_cudaSynchronizationPolicy __pyx_mstate_global->__pyx_n_s_cudaSynchronizationPolicy #define __pyx_n_s_cudaTextureAddressMode __pyx_mstate_global->__pyx_n_s_cudaTextureAddressMode #define __pyx_n_s_cudaTextureDesc __pyx_mstate_global->__pyx_n_s_cudaTextureDesc #define __pyx_n_s_cudaTextureDesc___reduce_cython __pyx_mstate_global->__pyx_n_s_cudaTextureDesc___reduce_cython #define __pyx_n_s_cudaTextureDesc___setstate_cytho __pyx_mstate_global->__pyx_n_s_cudaTextureDesc___setstate_cytho #define __pyx_n_s_cudaTextureDesc_getPtr __pyx_mstate_global->__pyx_n_s_cudaTextureDesc_getPtr #define __pyx_n_s_cudaTextureFilterMode __pyx_mstate_global->__pyx_n_s_cudaTextureFilterMode #define __pyx_kp_u_cudaTextureObject_t __pyx_mstate_global->__pyx_kp_u_cudaTextureObject_t #define __pyx_n_s_cudaTextureObject_t_2 __pyx_mstate_global->__pyx_n_s_cudaTextureObject_t_2 #define __pyx_n_s_cudaTextureObject_t___reduce_cyt __pyx_mstate_global->__pyx_n_s_cudaTextureObject_t___reduce_cyt #define __pyx_n_s_cudaTextureObject_t___setstate_c __pyx_mstate_global->__pyx_n_s_cudaTextureObject_t___setstate_c #define __pyx_n_s_cudaTextureObject_t_getPtr __pyx_mstate_global->__pyx_n_s_cudaTextureObject_t_getPtr #define __pyx_n_s_cudaTextureReadMode __pyx_mstate_global->__pyx_n_s_cudaTextureReadMode #define __pyx_n_s_cudaTextureType1D __pyx_mstate_global->__pyx_n_s_cudaTextureType1D #define __pyx_n_s_cudaTextureType1DLayered __pyx_mstate_global->__pyx_n_s_cudaTextureType1DLayered #define __pyx_n_s_cudaTextureType2D __pyx_mstate_global->__pyx_n_s_cudaTextureType2D #define __pyx_n_s_cudaTextureType2DLayered __pyx_mstate_global->__pyx_n_s_cudaTextureType2DLayered #define __pyx_n_s_cudaTextureType3D __pyx_mstate_global->__pyx_n_s_cudaTextureType3D #define __pyx_n_s_cudaTextureTypeCubemap __pyx_mstate_global->__pyx_n_s_cudaTextureTypeCubemap #define __pyx_n_s_cudaTextureTypeCubemapLayered __pyx_mstate_global->__pyx_n_s_cudaTextureTypeCubemapLayered #define __pyx_n_s_cudaThreadExchangeStreamCaptureM __pyx_mstate_global->__pyx_n_s_cudaThreadExchangeStreamCaptureM #define __pyx_n_s_cudaUUID_t __pyx_mstate_global->__pyx_n_s_cudaUUID_t #define __pyx_n_s_cudaUserObjectCreate __pyx_mstate_global->__pyx_n_s_cudaUserObjectCreate #define __pyx_n_s_cudaUserObjectFlags __pyx_mstate_global->__pyx_n_s_cudaUserObjectFlags #define __pyx_n_s_cudaUserObjectNoDestructorSync __pyx_mstate_global->__pyx_n_s_cudaUserObjectNoDestructorSync #define __pyx_n_s_cudaUserObjectRelease __pyx_mstate_global->__pyx_n_s_cudaUserObjectRelease #define __pyx_n_s_cudaUserObjectRetain __pyx_mstate_global->__pyx_n_s_cudaUserObjectRetain #define __pyx_n_s_cudaUserObjectRetainFlags __pyx_mstate_global->__pyx_n_s_cudaUserObjectRetainFlags #define __pyx_n_s_cudaUserObject_t __pyx_mstate_global->__pyx_n_s_cudaUserObject_t #define __pyx_n_s_cudaVDPAUGetDevice __pyx_mstate_global->__pyx_n_s_cudaVDPAUGetDevice #define __pyx_n_s_cudaVDPAUSetVDPAUDevice __pyx_mstate_global->__pyx_n_s_cudaVDPAUSetVDPAUDevice #define __pyx_n_s_cudaVersion __pyx_mstate_global->__pyx_n_s_cudaVersion #define __pyx_n_s_cudaWaitExternalSemaphoresAsync __pyx_mstate_global->__pyx_n_s_cudaWaitExternalSemaphoresAsync #define __pyx_n_s_cudaWaitExternalSemaphoresAsync_2 __pyx_mstate_global->__pyx_n_s_cudaWaitExternalSemaphoresAsync_2 #define __pyx_n_s_cuda_cuda __pyx_mstate_global->__pyx_n_s_cuda_cuda #define __pyx_n_s_cuda_cudart __pyx_mstate_global->__pyx_n_s_cuda_cudart #define __pyx_kp_s_cuda_cudart_pyx __pyx_mstate_global->__pyx_kp_s_cuda_cudart_pyx #define __pyx_n_s_cuserData __pyx_mstate_global->__pyx_n_s_cuserData #define __pyx_n_s_cuserData_ptr __pyx_mstate_global->__pyx_n_s_cuserData_ptr #define __pyx_n_s_cvalue __pyx_mstate_global->__pyx_n_s_cvalue #define __pyx_n_s_cvalue_ptr __pyx_mstate_global->__pyx_n_s_cvalue_ptr #define __pyx_n_s_cvdpDevice __pyx_mstate_global->__pyx_n_s_cvdpDevice #define __pyx_n_s_cvdpGetProcAddress __pyx_mstate_global->__pyx_n_s_cvdpGetProcAddress #define __pyx_n_s_cvdpSurface __pyx_mstate_global->__pyx_n_s_cvdpSurface #define __pyx_n_s_cvoidStarHelper_ptr __pyx_mstate_global->__pyx_n_s_cvoidStarHelper_ptr #define __pyx_n_s_cwidth __pyx_mstate_global->__pyx_n_s_cwidth #define __pyx_n_s_d __pyx_mstate_global->__pyx_n_s_d #define __pyx_n_s_dataSize __pyx_mstate_global->__pyx_n_s_dataSize #define __pyx_n_s_dataSizes __pyx_mstate_global->__pyx_n_s_dataSizes #define __pyx_n_s_decode __pyx_mstate_global->__pyx_n_s_decode #define __pyx_kp_u_default __pyx_mstate_global->__pyx_kp_u_default #define __pyx_n_s_defaultLaunchValue __pyx_mstate_global->__pyx_n_s_defaultLaunchValue #define __pyx_n_s_default_2 __pyx_mstate_global->__pyx_n_s_default_2 #define __pyx_kp_u_default__ValueError __pyx_mstate_global->__pyx_kp_u_default__ValueError #define __pyx_kp_u_deferredMappingCudaArraySupporte __pyx_mstate_global->__pyx_kp_u_deferredMappingCudaArraySupporte #define __pyx_n_s_deferredMappingCudaArraySupporte_2 __pyx_mstate_global->__pyx_n_s_deferredMappingCudaArraySupporte_2 #define __pyx_kp_u_deferredMappingCudaArraySupporte_3 __pyx_mstate_global->__pyx_kp_u_deferredMappingCudaArraySupporte_3 #define __pyx_n_s_dependencies __pyx_mstate_global->__pyx_n_s_dependencies #define __pyx_n_s_dependencyData __pyx_mstate_global->__pyx_n_s_dependencyData #define __pyx_kp_u_depth __pyx_mstate_global->__pyx_kp_u_depth #define __pyx_n_s_depth_2 __pyx_mstate_global->__pyx_n_s_depth_2 #define __pyx_kp_u_depth_ValueError __pyx_mstate_global->__pyx_kp_u_depth_ValueError #define __pyx_kp_u_desc __pyx_mstate_global->__pyx_kp_u_desc #define __pyx_n_s_descList __pyx_mstate_global->__pyx_n_s_descList #define __pyx_n_s_desc_2 __pyx_mstate_global->__pyx_n_s_desc_2 #define __pyx_kp_u_desc_ValueError __pyx_mstate_global->__pyx_kp_u_desc_ValueError #define __pyx_n_s_destroy __pyx_mstate_global->__pyx_n_s_destroy #define __pyx_kp_u_devNode __pyx_mstate_global->__pyx_kp_u_devNode #define __pyx_n_s_devNode_2 __pyx_mstate_global->__pyx_n_s_devNode_2 #define __pyx_kp_u_devNode_ValueError __pyx_mstate_global->__pyx_kp_u_devNode_ValueError #define __pyx_kp_u_devPtr __pyx_mstate_global->__pyx_kp_u_devPtr #define __pyx_n_s_devPtr_2 __pyx_mstate_global->__pyx_n_s_devPtr_2 #define __pyx_kp_u_devPtr_ValueError __pyx_mstate_global->__pyx_kp_u_devPtr_ValueError #define __pyx_kp_u_device __pyx_mstate_global->__pyx_kp_u_device #define __pyx_n_s_deviceFlags __pyx_mstate_global->__pyx_n_s_deviceFlags #define __pyx_n_s_deviceList __pyx_mstate_global->__pyx_n_s_deviceList #define __pyx_kp_u_deviceOverlap __pyx_mstate_global->__pyx_kp_u_deviceOverlap #define __pyx_n_s_deviceOverlap_2 __pyx_mstate_global->__pyx_n_s_deviceOverlap_2 #define __pyx_kp_u_deviceOverlap_ValueError __pyx_mstate_global->__pyx_kp_u_deviceOverlap_ValueError #define __pyx_kp_u_devicePointer __pyx_mstate_global->__pyx_kp_u_devicePointer #define __pyx_n_s_devicePointer_2 __pyx_mstate_global->__pyx_n_s_devicePointer_2 #define __pyx_kp_u_devicePointer_ValueError __pyx_mstate_global->__pyx_kp_u_devicePointer_ValueError #define __pyx_kp_u_deviceUpdatable __pyx_mstate_global->__pyx_kp_u_deviceUpdatable #define __pyx_kp_u_deviceUpdatableKernelNode __pyx_mstate_global->__pyx_kp_u_deviceUpdatableKernelNode #define __pyx_n_s_deviceUpdatableKernelNode_2 __pyx_mstate_global->__pyx_n_s_deviceUpdatableKernelNode_2 #define __pyx_kp_u_deviceUpdatableKernelNode_ValueE __pyx_mstate_global->__pyx_kp_u_deviceUpdatableKernelNode_ValueE #define __pyx_n_s_deviceUpdatable_2 __pyx_mstate_global->__pyx_n_s_deviceUpdatable_2 #define __pyx_kp_u_deviceUpdatable_ValueError __pyx_mstate_global->__pyx_kp_u_deviceUpdatable_ValueError #define __pyx_n_s_device_2 __pyx_mstate_global->__pyx_n_s_device_2 #define __pyx_kp_u_device_ValueError __pyx_mstate_global->__pyx_kp_u_device_ValueError #define __pyx_n_s_dict __pyx_mstate_global->__pyx_n_s_dict #define __pyx_n_s_dim3 __pyx_mstate_global->__pyx_n_s_dim3 #define __pyx_n_s_dim3___reduce_cython __pyx_mstate_global->__pyx_n_s_dim3___reduce_cython #define __pyx_n_s_dim3___setstate_cython __pyx_mstate_global->__pyx_n_s_dim3___setstate_cython #define __pyx_n_s_dim3_getPtr __pyx_mstate_global->__pyx_n_s_dim3_getPtr #define __pyx_kp_u_directManagedMemAccessFromHost __pyx_mstate_global->__pyx_kp_u_directManagedMemAccessFromHost #define __pyx_n_s_directManagedMemAccessFromHost_2 __pyx_mstate_global->__pyx_n_s_directManagedMemAccessFromHost_2 #define __pyx_kp_u_directManagedMemAccessFromHost_V __pyx_mstate_global->__pyx_kp_u_directManagedMemAccessFromHost_V #define __pyx_kp_u_disable __pyx_mstate_global->__pyx_kp_u_disable #define __pyx_kp_u_disableTrilinearOptimization __pyx_mstate_global->__pyx_kp_u_disableTrilinearOptimization #define __pyx_n_s_disableTrilinearOptimization_2 __pyx_mstate_global->__pyx_n_s_disableTrilinearOptimization_2 #define __pyx_kp_u_disableTrilinearOptimization_Val __pyx_mstate_global->__pyx_kp_u_disableTrilinearOptimization_Val #define __pyx_n_s_doc __pyx_mstate_global->__pyx_n_s_doc #define __pyx_n_s_dpitch __pyx_mstate_global->__pyx_n_s_dpitch #define __pyx_kp_u_dptr __pyx_mstate_global->__pyx_kp_u_dptr #define __pyx_n_s_dptr_2 __pyx_mstate_global->__pyx_n_s_dptr_2 #define __pyx_kp_u_dptr_ValueError __pyx_mstate_global->__pyx_kp_u_dptr_ValueError #define __pyx_n_s_dptr_out __pyx_mstate_global->__pyx_n_s_dptr_out #define __pyx_n_s_driverStatus __pyx_mstate_global->__pyx_n_s_driverStatus #define __pyx_n_s_driverVersion __pyx_mstate_global->__pyx_n_s_driverVersion #define __pyx_kp_u_dst __pyx_mstate_global->__pyx_kp_u_dst #define __pyx_kp_u_dstArray __pyx_mstate_global->__pyx_kp_u_dstArray #define __pyx_n_s_dstArray_2 __pyx_mstate_global->__pyx_n_s_dstArray_2 #define __pyx_kp_u_dstArray_ValueError __pyx_mstate_global->__pyx_kp_u_dstArray_ValueError #define __pyx_kp_u_dstDevice __pyx_mstate_global->__pyx_kp_u_dstDevice #define __pyx_n_s_dstDevice_2 __pyx_mstate_global->__pyx_n_s_dstDevice_2 #define __pyx_kp_u_dstDevice_ValueError __pyx_mstate_global->__pyx_kp_u_dstDevice_ValueError #define __pyx_kp_u_dstPos __pyx_mstate_global->__pyx_kp_u_dstPos #define __pyx_n_s_dstPos_2 __pyx_mstate_global->__pyx_n_s_dstPos_2 #define __pyx_kp_u_dstPos_ValueError __pyx_mstate_global->__pyx_kp_u_dstPos_ValueError #define __pyx_kp_u_dstPtr __pyx_mstate_global->__pyx_kp_u_dstPtr #define __pyx_n_s_dstPtr_2 __pyx_mstate_global->__pyx_n_s_dstPtr_2 #define __pyx_kp_u_dstPtr_ValueError __pyx_mstate_global->__pyx_kp_u_dstPtr_ValueError #define __pyx_n_s_dst_2 __pyx_mstate_global->__pyx_n_s_dst_2 #define __pyx_kp_u_dst_ValueError __pyx_mstate_global->__pyx_kp_u_dst_ValueError #define __pyx_n_s_dynamicSMemSize __pyx_mstate_global->__pyx_n_s_dynamicSMemSize #define __pyx_n_s_dynamicSmemSize __pyx_mstate_global->__pyx_n_s_dynamicSmemSize #define __pyx_n_s_edgeData __pyx_mstate_global->__pyx_n_s_edgeData #define __pyx_kp_u_eglColorFormat __pyx_mstate_global->__pyx_kp_u_eglColorFormat #define __pyx_n_s_eglColorFormat_2 __pyx_mstate_global->__pyx_n_s_eglColorFormat_2 #define __pyx_kp_u_eglColorFormat_ValueError __pyx_mstate_global->__pyx_kp_u_eglColorFormat_ValueError #define __pyx_n_s_eglFrame __pyx_mstate_global->__pyx_n_s_eglFrame #define __pyx_n_s_eglStream __pyx_mstate_global->__pyx_n_s_eglStream #define __pyx_n_s_eglSync __pyx_mstate_global->__pyx_n_s_eglSync #define __pyx_n_s_eglframe __pyx_mstate_global->__pyx_n_s_eglframe #define __pyx_kp_u_elementSize __pyx_mstate_global->__pyx_kp_u_elementSize #define __pyx_n_s_elementSize_2 __pyx_mstate_global->__pyx_n_s_elementSize_2 #define __pyx_kp_u_elementSize_ValueError __pyx_mstate_global->__pyx_kp_u_elementSize_ValueError #define __pyx_kp_u_enable __pyx_mstate_global->__pyx_kp_u_enable #define __pyx_n_s_end __pyx_mstate_global->__pyx_n_s_end #define __pyx_n_s_entryFuncAddr __pyx_mstate_global->__pyx_n_s_entryFuncAddr #define __pyx_n_s_enum __pyx_mstate_global->__pyx_n_s_enum #define __pyx_n_s_enumerate __pyx_mstate_global->__pyx_n_s_enumerate #define __pyx_n_s_err __pyx_mstate_global->__pyx_n_s_err #define __pyx_kp_u_errNode_out __pyx_mstate_global->__pyx_kp_u_errNode_out #define __pyx_n_s_errNode_out_2 __pyx_mstate_global->__pyx_n_s_errNode_out_2 #define __pyx_kp_u_errNode_out_ValueError __pyx_mstate_global->__pyx_kp_u_errNode_out_ValueError #define __pyx_n_s_error __pyx_mstate_global->__pyx_n_s_error #define __pyx_kp_u_errorFromNode __pyx_mstate_global->__pyx_kp_u_errorFromNode #define __pyx_n_s_errorFromNode_2 __pyx_mstate_global->__pyx_n_s_errorFromNode_2 #define __pyx_kp_u_errorFromNode_ValueError __pyx_mstate_global->__pyx_kp_u_errorFromNode_ValueError #define __pyx_kp_u_errorNode __pyx_mstate_global->__pyx_kp_u_errorNode #define __pyx_n_s_errorNode_2 __pyx_mstate_global->__pyx_n_s_errorNode_2 #define __pyx_kp_u_errorNode_ValueError __pyx_mstate_global->__pyx_kp_u_errorNode_ValueError #define __pyx_kp_u_event __pyx_mstate_global->__pyx_kp_u_event #define __pyx_kp_u_eventRecord __pyx_mstate_global->__pyx_kp_u_eventRecord #define __pyx_n_s_eventRecord_2 __pyx_mstate_global->__pyx_n_s_eventRecord_2 #define __pyx_kp_u_eventRecord_ValueError __pyx_mstate_global->__pyx_kp_u_eventRecord_ValueError #define __pyx_kp_u_eventWait __pyx_mstate_global->__pyx_kp_u_eventWait #define __pyx_n_s_eventWait_2 __pyx_mstate_global->__pyx_n_s_eventWait_2 #define __pyx_kp_u_eventWait_ValueError __pyx_mstate_global->__pyx_kp_u_eventWait_ValueError #define __pyx_n_s_event_2 __pyx_mstate_global->__pyx_n_s_event_2 #define __pyx_kp_u_event_ValueError __pyx_mstate_global->__pyx_kp_u_event_ValueError #define __pyx_n_s_event_out __pyx_mstate_global->__pyx_n_s_event_out #define __pyx_n_s_exportData __pyx_mstate_global->__pyx_n_s_exportData #define __pyx_n_s_extMem __pyx_mstate_global->__pyx_n_s_extMem #define __pyx_n_s_extMem_out __pyx_mstate_global->__pyx_n_s_extMem_out #define __pyx_n_s_extSem __pyx_mstate_global->__pyx_n_s_extSem #define __pyx_kp_u_extSemArray __pyx_mstate_global->__pyx_kp_u_extSemArray #define __pyx_n_s_extSemArray_2 __pyx_mstate_global->__pyx_n_s_extSemArray_2 #define __pyx_kp_u_extSemArray_ValueError __pyx_mstate_global->__pyx_kp_u_extSemArray_ValueError #define __pyx_kp_u_extSemSignal __pyx_mstate_global->__pyx_kp_u_extSemSignal #define __pyx_n_s_extSemSignal_2 __pyx_mstate_global->__pyx_n_s_extSemSignal_2 #define __pyx_kp_u_extSemSignal_ValueError __pyx_mstate_global->__pyx_kp_u_extSemSignal_ValueError #define __pyx_kp_u_extSemWait __pyx_mstate_global->__pyx_kp_u_extSemWait #define __pyx_n_s_extSemWait_2 __pyx_mstate_global->__pyx_n_s_extSemWait_2 #define __pyx_kp_u_extSemWait_ValueError __pyx_mstate_global->__pyx_kp_u_extSemWait_ValueError #define __pyx_n_s_extSem_out __pyx_mstate_global->__pyx_n_s_extSem_out #define __pyx_kp_u_extent __pyx_mstate_global->__pyx_kp_u_extent #define __pyx_n_s_extent_2 __pyx_mstate_global->__pyx_n_s_extent_2 #define __pyx_kp_u_extent_ValueError __pyx_mstate_global->__pyx_kp_u_extent_ValueError #define __pyx_kp_u_extra __pyx_mstate_global->__pyx_kp_u_extra #define __pyx_n_s_extra_2 __pyx_mstate_global->__pyx_n_s_extra_2 #define __pyx_kp_u_extra_ValueError __pyx_mstate_global->__pyx_kp_u_extra_ValueError #define __pyx_kp_u_f __pyx_mstate_global->__pyx_kp_u_f #define __pyx_n_s_f_2 __pyx_mstate_global->__pyx_n_s_f_2 #define __pyx_kp_u_f_ValueError __pyx_mstate_global->__pyx_kp_u_f_ValueError #define __pyx_kp_u_fd __pyx_mstate_global->__pyx_kp_u_fd #define __pyx_n_s_fd_2 __pyx_mstate_global->__pyx_n_s_fd_2 #define __pyx_kp_u_fd_ValueError __pyx_mstate_global->__pyx_kp_u_fd_ValueError #define __pyx_kp_u_fence __pyx_mstate_global->__pyx_kp_u_fence #define __pyx_n_s_fence_2 __pyx_mstate_global->__pyx_n_s_fence_2 #define __pyx_kp_u_fence_3 __pyx_mstate_global->__pyx_kp_u_fence_3 #define __pyx_kp_u_fence_ValueError __pyx_mstate_global->__pyx_kp_u_fence_ValueError #define __pyx_kp_u_field __pyx_mstate_global->__pyx_kp_u_field #define __pyx_n_s_field_2 __pyx_mstate_global->__pyx_n_s_field_2 #define __pyx_kp_u_field_ValueError __pyx_mstate_global->__pyx_kp_u_field_ValueError #define __pyx_kp_u_filterMode __pyx_mstate_global->__pyx_kp_u_filterMode #define __pyx_n_s_filterMode_2 __pyx_mstate_global->__pyx_n_s_filterMode_2 #define __pyx_kp_u_filterMode_ValueError __pyx_mstate_global->__pyx_kp_u_filterMode_ValueError #define __pyx_kp_u_firstLayer __pyx_mstate_global->__pyx_kp_u_firstLayer #define __pyx_n_s_firstLayer_2 __pyx_mstate_global->__pyx_n_s_firstLayer_2 #define __pyx_kp_u_firstLayer_ValueError __pyx_mstate_global->__pyx_kp_u_firstLayer_ValueError #define __pyx_kp_u_firstMipmapLevel __pyx_mstate_global->__pyx_kp_u_firstMipmapLevel #define __pyx_n_s_firstMipmapLevel_2 __pyx_mstate_global->__pyx_n_s_firstMipmapLevel_2 #define __pyx_kp_u_firstMipmapLevel_ValueError __pyx_mstate_global->__pyx_kp_u_firstMipmapLevel_ValueError #define __pyx_kp_u_flags __pyx_mstate_global->__pyx_kp_u_flags #define __pyx_n_s_flags_2 __pyx_mstate_global->__pyx_n_s_flags_2 #define __pyx_kp_u_flags_ValueError __pyx_mstate_global->__pyx_kp_u_flags_ValueError #define __pyx_n_s_fmtDesc __pyx_mstate_global->__pyx_n_s_fmtDesc #define __pyx_kp_u_fn __pyx_mstate_global->__pyx_kp_u_fn #define __pyx_n_s_fn_2 __pyx_mstate_global->__pyx_n_s_fn_2 #define __pyx_kp_u_fn_ValueError __pyx_mstate_global->__pyx_kp_u_fn_ValueError #define __pyx_kp_u_format __pyx_mstate_global->__pyx_kp_u_format #define __pyx_kp_u_formatDesc __pyx_mstate_global->__pyx_kp_u_formatDesc #define __pyx_n_s_formatDesc_2 __pyx_mstate_global->__pyx_n_s_formatDesc_2 #define __pyx_kp_u_formatDesc_ValueError __pyx_mstate_global->__pyx_kp_u_formatDesc_ValueError #define __pyx_n_s_format_2 __pyx_mstate_global->__pyx_n_s_format_2 #define __pyx_kp_u_format_ValueError __pyx_mstate_global->__pyx_kp_u_format_ValueError #define __pyx_kp_u_frame __pyx_mstate_global->__pyx_kp_u_frame #define __pyx_kp_u_frameType __pyx_mstate_global->__pyx_kp_u_frameType #define __pyx_n_s_frameType_2 __pyx_mstate_global->__pyx_n_s_frameType_2 #define __pyx_kp_u_frameType_ValueError __pyx_mstate_global->__pyx_kp_u_frameType_ValueError #define __pyx_n_s_frame_2 __pyx_mstate_global->__pyx_n_s_frame_2 #define __pyx_kp_u_frame_ValueError __pyx_mstate_global->__pyx_kp_u_frame_ValueError #define __pyx_kp_u_free __pyx_mstate_global->__pyx_kp_u_free #define __pyx_n_s_free_2 __pyx_mstate_global->__pyx_n_s_free_2 #define __pyx_kp_u_free_ValueError __pyx_mstate_global->__pyx_kp_u_free_ValueError #define __pyx_n_s_from __pyx_mstate_global->__pyx_n_s_from #define __pyx_kp_u_from_port __pyx_mstate_global->__pyx_kp_u_from_port #define __pyx_n_s_from_port_2 __pyx_mstate_global->__pyx_n_s_from_port_2 #define __pyx_kp_u_from_port_ValueError __pyx_mstate_global->__pyx_kp_u_from_port_ValueError #define __pyx_kp_u_func __pyx_mstate_global->__pyx_kp_u_func #define __pyx_n_s_funcPtr __pyx_mstate_global->__pyx_n_s_funcPtr #define __pyx_n_s_func_2 __pyx_mstate_global->__pyx_n_s_func_2 #define __pyx_kp_u_func_ValueError __pyx_mstate_global->__pyx_kp_u_func_ValueError #define __pyx_kp_u_gc __pyx_mstate_global->__pyx_kp_u_gc #define __pyx_n_s_genexpr __pyx_mstate_global->__pyx_n_s_genexpr #define __pyx_n_s_getLocalRuntimeVersion __pyx_mstate_global->__pyx_n_s_getLocalRuntimeVersion #define __pyx_n_s_getPtr __pyx_mstate_global->__pyx_n_s_getPtr #define __pyx_n_s_getstate __pyx_mstate_global->__pyx_n_s_getstate #define __pyx_kp_u_globalL1CacheSupported __pyx_mstate_global->__pyx_kp_u_globalL1CacheSupported #define __pyx_n_s_globalL1CacheSupported_2 __pyx_mstate_global->__pyx_n_s_globalL1CacheSupported_2 #define __pyx_kp_u_globalL1CacheSupported_ValueErro __pyx_mstate_global->__pyx_kp_u_globalL1CacheSupported_ValueErro #define __pyx_kp_u_gpuDirectRDMAFlushWritesOptions __pyx_mstate_global->__pyx_kp_u_gpuDirectRDMAFlushWritesOptions #define __pyx_n_s_gpuDirectRDMAFlushWritesOptions_2 __pyx_mstate_global->__pyx_n_s_gpuDirectRDMAFlushWritesOptions_2 #define __pyx_kp_u_gpuDirectRDMAFlushWritesOptions_3 __pyx_mstate_global->__pyx_kp_u_gpuDirectRDMAFlushWritesOptions_3 #define __pyx_kp_u_gpuDirectRDMASupported __pyx_mstate_global->__pyx_kp_u_gpuDirectRDMASupported #define __pyx_n_s_gpuDirectRDMASupported_2 __pyx_mstate_global->__pyx_n_s_gpuDirectRDMASupported_2 #define __pyx_kp_u_gpuDirectRDMASupported_ValueErro __pyx_mstate_global->__pyx_kp_u_gpuDirectRDMASupported_ValueErro #define __pyx_kp_u_gpuDirectRDMAWritesOrdering __pyx_mstate_global->__pyx_kp_u_gpuDirectRDMAWritesOrdering #define __pyx_n_s_gpuDirectRDMAWritesOrdering_2 __pyx_mstate_global->__pyx_n_s_gpuDirectRDMAWritesOrdering_2 #define __pyx_kp_u_gpuDirectRDMAWritesOrdering_Valu __pyx_mstate_global->__pyx_kp_u_gpuDirectRDMAWritesOrdering_Valu #define __pyx_kp_u_graph __pyx_mstate_global->__pyx_kp_u_graph #define __pyx_n_s_graphExec __pyx_mstate_global->__pyx_n_s_graphExec #define __pyx_n_s_graph_2 __pyx_mstate_global->__pyx_n_s_graph_2 #define __pyx_kp_u_graph_3 __pyx_mstate_global->__pyx_kp_u_graph_3 #define __pyx_kp_u_graph_ValueError __pyx_mstate_global->__pyx_kp_u_graph_ValueError #define __pyx_n_s_graph_length __pyx_mstate_global->__pyx_n_s_graph_length #define __pyx_n_s_graph_out __pyx_mstate_global->__pyx_n_s_graph_out #define __pyx_n_s_greatestPriority __pyx_mstate_global->__pyx_n_s_greatestPriority #define __pyx_kp_u_gridDim __pyx_mstate_global->__pyx_kp_u_gridDim #define __pyx_n_s_gridDim_2 __pyx_mstate_global->__pyx_n_s_gridDim_2 #define __pyx_kp_u_gridDim_ValueError __pyx_mstate_global->__pyx_kp_u_gridDim_ValueError #define __pyx_n_s_h __pyx_mstate_global->__pyx_n_s_h #define __pyx_n_s_hArray __pyx_mstate_global->__pyx_n_s_hArray #define __pyx_n_s_hDst __pyx_mstate_global->__pyx_n_s_hDst #define __pyx_n_s_hGraph __pyx_mstate_global->__pyx_n_s_hGraph #define __pyx_n_s_hGraphExec __pyx_mstate_global->__pyx_n_s_hGraphExec #define __pyx_n_s_hNode __pyx_mstate_global->__pyx_n_s_hNode #define __pyx_n_s_hOffset __pyx_mstate_global->__pyx_n_s_hOffset #define __pyx_n_s_hOffsetDst __pyx_mstate_global->__pyx_n_s_hOffsetDst #define __pyx_n_s_hOffsetSrc __pyx_mstate_global->__pyx_n_s_hOffsetSrc #define __pyx_n_s_hSrc __pyx_mstate_global->__pyx_n_s_hSrc #define __pyx_n_s_hStream __pyx_mstate_global->__pyx_n_s_hStream #define __pyx_kp_u_handle __pyx_mstate_global->__pyx_kp_u_handle #define __pyx_n_s_handleType __pyx_mstate_global->__pyx_n_s_handleType #define __pyx_kp_u_handleTypes __pyx_mstate_global->__pyx_kp_u_handleTypes #define __pyx_n_s_handleTypes_2 __pyx_mstate_global->__pyx_n_s_handleTypes_2 #define __pyx_kp_u_handleTypes_ValueError __pyx_mstate_global->__pyx_kp_u_handleTypes_ValueError #define __pyx_n_s_handle_2 __pyx_mstate_global->__pyx_n_s_handle_2 #define __pyx_kp_u_handle_3 __pyx_mstate_global->__pyx_kp_u_handle_3 #define __pyx_kp_u_handle_ValueError __pyx_mstate_global->__pyx_kp_u_handle_ValueError #define __pyx_kp_u_height __pyx_mstate_global->__pyx_kp_u_height #define __pyx_n_s_height_2 __pyx_mstate_global->__pyx_n_s_height_2 #define __pyx_kp_u_height_ValueError __pyx_mstate_global->__pyx_kp_u_height_ValueError #define __pyx_n_s_hex __pyx_mstate_global->__pyx_n_s_hex #define __pyx_kp_u_hitProp __pyx_mstate_global->__pyx_kp_u_hitProp #define __pyx_n_s_hitProp_2 __pyx_mstate_global->__pyx_n_s_hitProp_2 #define __pyx_kp_u_hitProp_ValueError __pyx_mstate_global->__pyx_kp_u_hitProp_ValueError #define __pyx_kp_u_hitRatio __pyx_mstate_global->__pyx_kp_u_hitRatio #define __pyx_n_s_hitRatio_2 __pyx_mstate_global->__pyx_n_s_hitRatio_2 #define __pyx_kp_u_hitRatio_ValueError __pyx_mstate_global->__pyx_kp_u_hitRatio_ValueError #define __pyx_kp_u_host __pyx_mstate_global->__pyx_kp_u_host #define __pyx_kp_u_hostNativeAtomicSupported __pyx_mstate_global->__pyx_kp_u_hostNativeAtomicSupported #define __pyx_n_s_hostNativeAtomicSupported_2 __pyx_mstate_global->__pyx_n_s_hostNativeAtomicSupported_2 #define __pyx_kp_u_hostNativeAtomicSupported_ValueE __pyx_mstate_global->__pyx_kp_u_hostNativeAtomicSupported_ValueE #define __pyx_kp_u_hostPointer __pyx_mstate_global->__pyx_kp_u_hostPointer #define __pyx_n_s_hostPointer_2 __pyx_mstate_global->__pyx_n_s_hostPointer_2 #define __pyx_kp_u_hostPointer_ValueError __pyx_mstate_global->__pyx_kp_u_hostPointer_ValueError #define __pyx_kp_u_hostRegisterReadOnlySupported __pyx_mstate_global->__pyx_kp_u_hostRegisterReadOnlySupported #define __pyx_n_s_hostRegisterReadOnlySupported_2 __pyx_mstate_global->__pyx_n_s_hostRegisterReadOnlySupported_2 #define __pyx_kp_u_hostRegisterReadOnlySupported_Va __pyx_mstate_global->__pyx_kp_u_hostRegisterReadOnlySupported_Va #define __pyx_kp_u_hostRegisterSupported __pyx_mstate_global->__pyx_kp_u_hostRegisterSupported #define __pyx_n_s_hostRegisterSupported_2 __pyx_mstate_global->__pyx_n_s_hostRegisterSupported_2 #define __pyx_kp_u_hostRegisterSupported_ValueError __pyx_mstate_global->__pyx_kp_u_hostRegisterSupported_ValueError #define __pyx_n_s_host_2 __pyx_mstate_global->__pyx_n_s_host_2 #define __pyx_kp_u_host_ValueError __pyx_mstate_global->__pyx_kp_u_host_ValueError #define __pyx_kp_u_id __pyx_mstate_global->__pyx_kp_u_id #define __pyx_n_s_id_2 __pyx_mstate_global->__pyx_n_s_id_2 #define __pyx_kp_u_id_ValueError __pyx_mstate_global->__pyx_kp_u_id_ValueError #define __pyx_n_s_id_out __pyx_mstate_global->__pyx_n_s_id_out #define __pyx_n_s_idx __pyx_mstate_global->__pyx_n_s_idx #define __pyx_n_s_image __pyx_mstate_global->__pyx_n_s_image #define __pyx_kp_s_impl_private_CUDA_error_types __pyx_mstate_global->__pyx_kp_s_impl_private_CUDA_error_types #define __pyx_n_s_import __pyx_mstate_global->__pyx_n_s_import #define __pyx_n_s_index __pyx_mstate_global->__pyx_n_s_index #define __pyx_kp_u_info __pyx_mstate_global->__pyx_kp_u_info #define __pyx_n_s_info_2 __pyx_mstate_global->__pyx_n_s_info_2 #define __pyx_kp_u_info_ValueError __pyx_mstate_global->__pyx_kp_u_info_ValueError #define __pyx_n_s_init_subclass __pyx_mstate_global->__pyx_n_s_init_subclass #define __pyx_n_s_init_value __pyx_mstate_global->__pyx_n_s_init_value #define __pyx_n_s_initialRefcount __pyx_mstate_global->__pyx_n_s_initialRefcount #define __pyx_n_s_initializing __pyx_mstate_global->__pyx_n_s_initializing #define __pyx_n_s_instantiateParams __pyx_mstate_global->__pyx_n_s_instantiateParams #define __pyx_n_s_int __pyx_mstate_global->__pyx_n_s_int #define __pyx_kp_u_integrated __pyx_mstate_global->__pyx_kp_u_integrated #define __pyx_n_s_integrated_2 __pyx_mstate_global->__pyx_n_s_integrated_2 #define __pyx_kp_u_integrated_ValueError __pyx_mstate_global->__pyx_kp_u_integrated_ValueError #define __pyx_kp_u_ipcEventSupported __pyx_mstate_global->__pyx_kp_u_ipcEventSupported #define __pyx_n_s_ipcEventSupported_2 __pyx_mstate_global->__pyx_n_s_ipcEventSupported_2 #define __pyx_kp_u_ipcEventSupported_ValueError __pyx_mstate_global->__pyx_kp_u_ipcEventSupported_ValueError #define __pyx_kp_u_isEnabled __pyx_mstate_global->__pyx_kp_u_isEnabled #define __pyx_n_s_isEnabled_2 __pyx_mstate_global->__pyx_n_s_isEnabled_2 #define __pyx_kp_u_isEnabled_ValueError __pyx_mstate_global->__pyx_kp_u_isEnabled_ValueError #define __pyx_kp_u_isMultiGpuBoard __pyx_mstate_global->__pyx_kp_u_isMultiGpuBoard #define __pyx_n_s_isMultiGpuBoard_2 __pyx_mstate_global->__pyx_n_s_isMultiGpuBoard_2 #define __pyx_kp_u_isMultiGpuBoard_ValueError __pyx_mstate_global->__pyx_kp_u_isMultiGpuBoard_ValueError #define __pyx_n_s_is_coroutine __pyx_mstate_global->__pyx_n_s_is_coroutine #define __pyx_n_s_is_getter __pyx_mstate_global->__pyx_n_s_is_getter #define __pyx_kp_u_isenabled __pyx_mstate_global->__pyx_kp_u_isenabled #define __pyx_kp_u_kernel __pyx_mstate_global->__pyx_kp_u_kernel #define __pyx_kp_u_kernelExecTimeoutEnabled __pyx_mstate_global->__pyx_kp_u_kernelExecTimeoutEnabled #define __pyx_n_s_kernelExecTimeoutEnabled_2 __pyx_mstate_global->__pyx_n_s_kernelExecTimeoutEnabled_2 #define __pyx_kp_u_kernelExecTimeoutEnabled_ValueEr __pyx_mstate_global->__pyx_kp_u_kernelExecTimeoutEnabled_ValueEr #define __pyx_kp_u_kernelParams __pyx_mstate_global->__pyx_kp_u_kernelParams #define __pyx_n_s_kernelParams_2 __pyx_mstate_global->__pyx_n_s_kernelParams_2 #define __pyx_kp_u_kernelParams_ValueError __pyx_mstate_global->__pyx_kp_u_kernelParams_ValueError #define __pyx_n_s_kernelPtr __pyx_mstate_global->__pyx_n_s_kernelPtr #define __pyx_n_s_kernel_2 __pyx_mstate_global->__pyx_n_s_kernel_2 #define __pyx_kp_u_kernel_ValueError __pyx_mstate_global->__pyx_kp_u_kernel_ValueError #define __pyx_kp_u_key __pyx_mstate_global->__pyx_kp_u_key #define __pyx_n_s_key_2 __pyx_mstate_global->__pyx_n_s_key_2 #define __pyx_kp_u_key_ValueError __pyx_mstate_global->__pyx_kp_u_key_ValueError #define __pyx_kp_u_keyedMutex __pyx_mstate_global->__pyx_kp_u_keyedMutex #define __pyx_n_s_keyedMutex_2 __pyx_mstate_global->__pyx_n_s_keyedMutex_2 #define __pyx_kp_u_keyedMutex_ValueError __pyx_mstate_global->__pyx_kp_u_keyedMutex_ValueError #define __pyx_kp_u_kind __pyx_mstate_global->__pyx_kp_u_kind #define __pyx_n_s_kind_2 __pyx_mstate_global->__pyx_n_s_kind_2 #define __pyx_kp_u_kind_ValueError __pyx_mstate_global->__pyx_kp_u_kind_ValueError #define __pyx_kp_u_l2CacheSize __pyx_mstate_global->__pyx_kp_u_l2CacheSize #define __pyx_n_s_l2CacheSize_2 __pyx_mstate_global->__pyx_n_s_l2CacheSize_2 #define __pyx_kp_u_l2CacheSize_ValueError __pyx_mstate_global->__pyx_kp_u_l2CacheSize_ValueError #define __pyx_kp_u_lastLayer __pyx_mstate_global->__pyx_kp_u_lastLayer #define __pyx_n_s_lastLayer_2 __pyx_mstate_global->__pyx_n_s_lastLayer_2 #define __pyx_kp_u_lastLayer_ValueError __pyx_mstate_global->__pyx_kp_u_lastLayer_ValueError #define __pyx_kp_u_lastMipmapLevel __pyx_mstate_global->__pyx_kp_u_lastMipmapLevel #define __pyx_n_s_lastMipmapLevel_2 __pyx_mstate_global->__pyx_n_s_lastMipmapLevel_2 #define __pyx_kp_u_lastMipmapLevel_ValueError __pyx_mstate_global->__pyx_kp_u_lastMipmapLevel_ValueError #define __pyx_kp_u_launchCompletionEvent __pyx_mstate_global->__pyx_kp_u_launchCompletionEvent #define __pyx_n_s_launchCompletionEvent_2 __pyx_mstate_global->__pyx_n_s_launchCompletionEvent_2 #define __pyx_kp_u_launchCompletionEvent_ValueError __pyx_mstate_global->__pyx_kp_u_launchCompletionEvent_ValueError #define __pyx_n_s_leastPriority __pyx_mstate_global->__pyx_n_s_leastPriority #define __pyx_n_s_length __pyx_mstate_global->__pyx_n_s_length #define __pyx_n_s_level __pyx_mstate_global->__pyx_n_s_level #define __pyx_n_s_levelArray __pyx_mstate_global->__pyx_n_s_levelArray #define __pyx_n_s_libraryPropertyType __pyx_mstate_global->__pyx_n_s_libraryPropertyType #define __pyx_n_s_limit __pyx_mstate_global->__pyx_n_s_limit #define __pyx_kp_u_linear __pyx_mstate_global->__pyx_kp_u_linear #define __pyx_n_s_linear_2 __pyx_mstate_global->__pyx_n_s_linear_2 #define __pyx_kp_u_linear_ValueError __pyx_mstate_global->__pyx_kp_u_linear_ValueError #define __pyx_kp_u_localL1CacheSupported __pyx_mstate_global->__pyx_kp_u_localL1CacheSupported #define __pyx_n_s_localL1CacheSupported_2 __pyx_mstate_global->__pyx_n_s_localL1CacheSupported_2 #define __pyx_kp_u_localL1CacheSupported_ValueError __pyx_mstate_global->__pyx_kp_u_localL1CacheSupported_ValueError #define __pyx_kp_u_localSizeBytes __pyx_mstate_global->__pyx_kp_u_localSizeBytes #define __pyx_n_s_localSizeBytes_2 __pyx_mstate_global->__pyx_n_s_localSizeBytes_2 #define __pyx_kp_u_localSizeBytes_ValueError __pyx_mstate_global->__pyx_kp_u_localSizeBytes_ValueError #define __pyx_kp_u_location __pyx_mstate_global->__pyx_kp_u_location #define __pyx_n_s_location_2 __pyx_mstate_global->__pyx_n_s_location_2 #define __pyx_kp_u_location_ValueError __pyx_mstate_global->__pyx_kp_u_location_ValueError #define __pyx_kp_u_luid __pyx_mstate_global->__pyx_kp_u_luid #define __pyx_kp_u_luidDeviceNodeMask __pyx_mstate_global->__pyx_kp_u_luidDeviceNodeMask #define __pyx_n_s_luidDeviceNodeMask_2 __pyx_mstate_global->__pyx_n_s_luidDeviceNodeMask_2 #define __pyx_kp_u_luidDeviceNodeMask_ValueError __pyx_mstate_global->__pyx_kp_u_luidDeviceNodeMask_ValueError #define __pyx_n_s_luid_2 __pyx_mstate_global->__pyx_n_s_luid_2 #define __pyx_kp_u_luid_ValueError __pyx_mstate_global->__pyx_kp_u_luid_ValueError #define __pyx_kp_u_luid_length_must_be_8_is __pyx_mstate_global->__pyx_kp_u_luid_length_must_be_8_is #define __pyx_n_s_main __pyx_mstate_global->__pyx_n_s_main #define __pyx_kp_u_major __pyx_mstate_global->__pyx_kp_u_major #define __pyx_n_s_major_2 __pyx_mstate_global->__pyx_n_s_major_2 #define __pyx_kp_u_major_ValueError __pyx_mstate_global->__pyx_kp_u_major_ValueError #define __pyx_n_s_make_cudaExtent __pyx_mstate_global->__pyx_n_s_make_cudaExtent #define __pyx_n_s_make_cudaPitchedPtr __pyx_mstate_global->__pyx_n_s_make_cudaPitchedPtr #define __pyx_n_s_make_cudaPos __pyx_mstate_global->__pyx_n_s_make_cudaPos #define __pyx_kp_u_managedMemory __pyx_mstate_global->__pyx_kp_u_managedMemory #define __pyx_n_s_managedMemory_2 __pyx_mstate_global->__pyx_n_s_managedMemory_2 #define __pyx_kp_u_managedMemory_ValueError __pyx_mstate_global->__pyx_kp_u_managedMemory_ValueError #define __pyx_kp_u_maxAnisotropy __pyx_mstate_global->__pyx_kp_u_maxAnisotropy #define __pyx_n_s_maxAnisotropy_2 __pyx_mstate_global->__pyx_n_s_maxAnisotropy_2 #define __pyx_kp_u_maxAnisotropy_ValueError __pyx_mstate_global->__pyx_kp_u_maxAnisotropy_ValueError #define __pyx_kp_u_maxBlocksPerMultiProcessor __pyx_mstate_global->__pyx_kp_u_maxBlocksPerMultiProcessor #define __pyx_n_s_maxBlocksPerMultiProcessor_2 __pyx_mstate_global->__pyx_n_s_maxBlocksPerMultiProcessor_2 #define __pyx_kp_u_maxBlocksPerMultiProcessor_Value __pyx_mstate_global->__pyx_kp_u_maxBlocksPerMultiProcessor_Value #define __pyx_kp_u_maxDynamicSharedSizeBytes __pyx_mstate_global->__pyx_kp_u_maxDynamicSharedSizeBytes #define __pyx_n_s_maxDynamicSharedSizeBytes_2 __pyx_mstate_global->__pyx_n_s_maxDynamicSharedSizeBytes_2 #define __pyx_kp_u_maxDynamicSharedSizeBytes_ValueE __pyx_mstate_global->__pyx_kp_u_maxDynamicSharedSizeBytes_ValueE #define __pyx_kp_u_maxGridSize __pyx_mstate_global->__pyx_kp_u_maxGridSize #define __pyx_n_s_maxGridSize_2 __pyx_mstate_global->__pyx_n_s_maxGridSize_2 #define __pyx_kp_u_maxGridSize_ValueError __pyx_mstate_global->__pyx_kp_u_maxGridSize_ValueError #define __pyx_kp_u_maxMipmapLevelClamp __pyx_mstate_global->__pyx_kp_u_maxMipmapLevelClamp #define __pyx_n_s_maxMipmapLevelClamp_2 __pyx_mstate_global->__pyx_n_s_maxMipmapLevelClamp_2 #define __pyx_kp_u_maxMipmapLevelClamp_ValueError __pyx_mstate_global->__pyx_kp_u_maxMipmapLevelClamp_ValueError #define __pyx_kp_u_maxSize __pyx_mstate_global->__pyx_kp_u_maxSize #define __pyx_n_s_maxSize_2 __pyx_mstate_global->__pyx_n_s_maxSize_2 #define __pyx_kp_u_maxSize_ValueError __pyx_mstate_global->__pyx_kp_u_maxSize_ValueError #define __pyx_kp_u_maxSurface1D __pyx_mstate_global->__pyx_kp_u_maxSurface1D #define __pyx_kp_u_maxSurface1DLayered __pyx_mstate_global->__pyx_kp_u_maxSurface1DLayered #define __pyx_n_s_maxSurface1DLayered_2 __pyx_mstate_global->__pyx_n_s_maxSurface1DLayered_2 #define __pyx_kp_u_maxSurface1DLayered_ValueError __pyx_mstate_global->__pyx_kp_u_maxSurface1DLayered_ValueError #define __pyx_n_s_maxSurface1D_2 __pyx_mstate_global->__pyx_n_s_maxSurface1D_2 #define __pyx_kp_u_maxSurface1D_ValueError __pyx_mstate_global->__pyx_kp_u_maxSurface1D_ValueError #define __pyx_kp_u_maxSurface2D __pyx_mstate_global->__pyx_kp_u_maxSurface2D #define __pyx_kp_u_maxSurface2DLayered __pyx_mstate_global->__pyx_kp_u_maxSurface2DLayered #define __pyx_n_s_maxSurface2DLayered_2 __pyx_mstate_global->__pyx_n_s_maxSurface2DLayered_2 #define __pyx_kp_u_maxSurface2DLayered_ValueError __pyx_mstate_global->__pyx_kp_u_maxSurface2DLayered_ValueError #define __pyx_n_s_maxSurface2D_2 __pyx_mstate_global->__pyx_n_s_maxSurface2D_2 #define __pyx_kp_u_maxSurface2D_ValueError __pyx_mstate_global->__pyx_kp_u_maxSurface2D_ValueError #define __pyx_kp_u_maxSurface3D __pyx_mstate_global->__pyx_kp_u_maxSurface3D #define __pyx_n_s_maxSurface3D_2 __pyx_mstate_global->__pyx_n_s_maxSurface3D_2 #define __pyx_kp_u_maxSurface3D_ValueError __pyx_mstate_global->__pyx_kp_u_maxSurface3D_ValueError #define __pyx_kp_u_maxSurfaceCubemap __pyx_mstate_global->__pyx_kp_u_maxSurfaceCubemap #define __pyx_kp_u_maxSurfaceCubemapLayered __pyx_mstate_global->__pyx_kp_u_maxSurfaceCubemapLayered #define __pyx_n_s_maxSurfaceCubemapLayered_2 __pyx_mstate_global->__pyx_n_s_maxSurfaceCubemapLayered_2 #define __pyx_kp_u_maxSurfaceCubemapLayered_ValueEr __pyx_mstate_global->__pyx_kp_u_maxSurfaceCubemapLayered_ValueEr #define __pyx_n_s_maxSurfaceCubemap_2 __pyx_mstate_global->__pyx_n_s_maxSurfaceCubemap_2 #define __pyx_kp_u_maxSurfaceCubemap_ValueError __pyx_mstate_global->__pyx_kp_u_maxSurfaceCubemap_ValueError #define __pyx_kp_u_maxTexture1D __pyx_mstate_global->__pyx_kp_u_maxTexture1D #define __pyx_kp_u_maxTexture1DLayered __pyx_mstate_global->__pyx_kp_u_maxTexture1DLayered #define __pyx_n_s_maxTexture1DLayered_2 __pyx_mstate_global->__pyx_n_s_maxTexture1DLayered_2 #define __pyx_kp_u_maxTexture1DLayered_ValueError __pyx_mstate_global->__pyx_kp_u_maxTexture1DLayered_ValueError #define __pyx_kp_u_maxTexture1DLinear __pyx_mstate_global->__pyx_kp_u_maxTexture1DLinear #define __pyx_n_s_maxTexture1DLinear_2 __pyx_mstate_global->__pyx_n_s_maxTexture1DLinear_2 #define __pyx_kp_u_maxTexture1DLinear_ValueError __pyx_mstate_global->__pyx_kp_u_maxTexture1DLinear_ValueError #define __pyx_kp_u_maxTexture1DMipmap __pyx_mstate_global->__pyx_kp_u_maxTexture1DMipmap #define __pyx_n_s_maxTexture1DMipmap_2 __pyx_mstate_global->__pyx_n_s_maxTexture1DMipmap_2 #define __pyx_kp_u_maxTexture1DMipmap_ValueError __pyx_mstate_global->__pyx_kp_u_maxTexture1DMipmap_ValueError #define __pyx_n_s_maxTexture1D_2 __pyx_mstate_global->__pyx_n_s_maxTexture1D_2 #define __pyx_kp_u_maxTexture1D_ValueError __pyx_mstate_global->__pyx_kp_u_maxTexture1D_ValueError #define __pyx_kp_u_maxTexture2D __pyx_mstate_global->__pyx_kp_u_maxTexture2D #define __pyx_kp_u_maxTexture2DGather __pyx_mstate_global->__pyx_kp_u_maxTexture2DGather #define __pyx_n_s_maxTexture2DGather_2 __pyx_mstate_global->__pyx_n_s_maxTexture2DGather_2 #define __pyx_kp_u_maxTexture2DGather_ValueError __pyx_mstate_global->__pyx_kp_u_maxTexture2DGather_ValueError #define __pyx_kp_u_maxTexture2DLayered __pyx_mstate_global->__pyx_kp_u_maxTexture2DLayered #define __pyx_n_s_maxTexture2DLayered_2 __pyx_mstate_global->__pyx_n_s_maxTexture2DLayered_2 #define __pyx_kp_u_maxTexture2DLayered_ValueError __pyx_mstate_global->__pyx_kp_u_maxTexture2DLayered_ValueError #define __pyx_kp_u_maxTexture2DLinear __pyx_mstate_global->__pyx_kp_u_maxTexture2DLinear #define __pyx_n_s_maxTexture2DLinear_2 __pyx_mstate_global->__pyx_n_s_maxTexture2DLinear_2 #define __pyx_kp_u_maxTexture2DLinear_ValueError __pyx_mstate_global->__pyx_kp_u_maxTexture2DLinear_ValueError #define __pyx_kp_u_maxTexture2DMipmap __pyx_mstate_global->__pyx_kp_u_maxTexture2DMipmap #define __pyx_n_s_maxTexture2DMipmap_2 __pyx_mstate_global->__pyx_n_s_maxTexture2DMipmap_2 #define __pyx_kp_u_maxTexture2DMipmap_ValueError __pyx_mstate_global->__pyx_kp_u_maxTexture2DMipmap_ValueError #define __pyx_n_s_maxTexture2D_2 __pyx_mstate_global->__pyx_n_s_maxTexture2D_2 #define __pyx_kp_u_maxTexture2D_ValueError __pyx_mstate_global->__pyx_kp_u_maxTexture2D_ValueError #define __pyx_kp_u_maxTexture3D __pyx_mstate_global->__pyx_kp_u_maxTexture3D #define __pyx_kp_u_maxTexture3DAlt __pyx_mstate_global->__pyx_kp_u_maxTexture3DAlt #define __pyx_n_s_maxTexture3DAlt_2 __pyx_mstate_global->__pyx_n_s_maxTexture3DAlt_2 #define __pyx_kp_u_maxTexture3DAlt_ValueError __pyx_mstate_global->__pyx_kp_u_maxTexture3DAlt_ValueError #define __pyx_n_s_maxTexture3D_2 __pyx_mstate_global->__pyx_n_s_maxTexture3D_2 #define __pyx_kp_u_maxTexture3D_ValueError __pyx_mstate_global->__pyx_kp_u_maxTexture3D_ValueError #define __pyx_kp_u_maxTextureCubemap __pyx_mstate_global->__pyx_kp_u_maxTextureCubemap #define __pyx_kp_u_maxTextureCubemapLayered __pyx_mstate_global->__pyx_kp_u_maxTextureCubemapLayered #define __pyx_n_s_maxTextureCubemapLayered_2 __pyx_mstate_global->__pyx_n_s_maxTextureCubemapLayered_2 #define __pyx_kp_u_maxTextureCubemapLayered_ValueEr __pyx_mstate_global->__pyx_kp_u_maxTextureCubemapLayered_ValueEr #define __pyx_n_s_maxTextureCubemap_2 __pyx_mstate_global->__pyx_n_s_maxTextureCubemap_2 #define __pyx_kp_u_maxTextureCubemap_ValueError __pyx_mstate_global->__pyx_kp_u_maxTextureCubemap_ValueError #define __pyx_kp_u_maxThreadsDim __pyx_mstate_global->__pyx_kp_u_maxThreadsDim #define __pyx_n_s_maxThreadsDim_2 __pyx_mstate_global->__pyx_n_s_maxThreadsDim_2 #define __pyx_kp_u_maxThreadsDim_ValueError __pyx_mstate_global->__pyx_kp_u_maxThreadsDim_ValueError #define __pyx_kp_u_maxThreadsPerBlock __pyx_mstate_global->__pyx_kp_u_maxThreadsPerBlock #define __pyx_n_s_maxThreadsPerBlock_2 __pyx_mstate_global->__pyx_n_s_maxThreadsPerBlock_2 #define __pyx_kp_u_maxThreadsPerBlock_ValueError __pyx_mstate_global->__pyx_kp_u_maxThreadsPerBlock_ValueError #define __pyx_kp_u_maxThreadsPerMultiProcessor __pyx_mstate_global->__pyx_kp_u_maxThreadsPerMultiProcessor #define __pyx_n_s_maxThreadsPerMultiProcessor_2 __pyx_mstate_global->__pyx_n_s_maxThreadsPerMultiProcessor_2 #define __pyx_kp_u_maxThreadsPerMultiProcessor_Valu __pyx_mstate_global->__pyx_kp_u_maxThreadsPerMultiProcessor_Valu #define __pyx_n_s_maxWidthInElements __pyx_mstate_global->__pyx_n_s_maxWidthInElements #define __pyx_n_s_memHandleDesc __pyx_mstate_global->__pyx_n_s_memHandleDesc #define __pyx_kp_u_memPitch __pyx_mstate_global->__pyx_kp_u_memPitch #define __pyx_n_s_memPitch_2 __pyx_mstate_global->__pyx_n_s_memPitch_2 #define __pyx_kp_u_memPitch_ValueError __pyx_mstate_global->__pyx_kp_u_memPitch_ValueError #define __pyx_n_s_memPool __pyx_mstate_global->__pyx_n_s_memPool #define __pyx_kp_u_memSyncDomain __pyx_mstate_global->__pyx_kp_u_memSyncDomain #define __pyx_kp_u_memSyncDomainMap __pyx_mstate_global->__pyx_kp_u_memSyncDomainMap #define __pyx_n_s_memSyncDomainMap_2 __pyx_mstate_global->__pyx_n_s_memSyncDomainMap_2 #define __pyx_kp_u_memSyncDomainMap_ValueError __pyx_mstate_global->__pyx_kp_u_memSyncDomainMap_ValueError #define __pyx_n_s_memSyncDomain_2 __pyx_mstate_global->__pyx_n_s_memSyncDomain_2 #define __pyx_kp_u_memSyncDomain_ValueError __pyx_mstate_global->__pyx_kp_u_memSyncDomain_ValueError #define __pyx_kp_u_memcpy __pyx_mstate_global->__pyx_kp_u_memcpy #define __pyx_n_s_memcpy_2 __pyx_mstate_global->__pyx_n_s_memcpy_2 #define __pyx_kp_u_memcpy_ValueError __pyx_mstate_global->__pyx_kp_u_memcpy_ValueError #define __pyx_kp_u_memoryBusWidth __pyx_mstate_global->__pyx_kp_u_memoryBusWidth #define __pyx_n_s_memoryBusWidth_2 __pyx_mstate_global->__pyx_n_s_memoryBusWidth_2 #define __pyx_kp_u_memoryBusWidth_ValueError __pyx_mstate_global->__pyx_kp_u_memoryBusWidth_ValueError #define __pyx_kp_u_memoryClockRate __pyx_mstate_global->__pyx_kp_u_memoryClockRate #define __pyx_n_s_memoryClockRate_2 __pyx_mstate_global->__pyx_n_s_memoryClockRate_2 #define __pyx_kp_u_memoryClockRate_ValueError __pyx_mstate_global->__pyx_kp_u_memoryClockRate_ValueError #define __pyx_kp_u_memoryPoolSupportedHandleTypes __pyx_mstate_global->__pyx_kp_u_memoryPoolSupportedHandleTypes #define __pyx_n_s_memoryPoolSupportedHandleTypes_2 __pyx_mstate_global->__pyx_n_s_memoryPoolSupportedHandleTypes_2 #define __pyx_kp_u_memoryPoolSupportedHandleTypes_V __pyx_mstate_global->__pyx_kp_u_memoryPoolSupportedHandleTypes_V #define __pyx_kp_u_memoryPoolsSupported __pyx_mstate_global->__pyx_kp_u_memoryPoolsSupported #define __pyx_n_s_memoryPoolsSupported_2 __pyx_mstate_global->__pyx_n_s_memoryPoolsSupported_2 #define __pyx_kp_u_memoryPoolsSupported_ValueError __pyx_mstate_global->__pyx_kp_u_memoryPoolsSupported_ValueError #define __pyx_n_s_memoryRequirements __pyx_mstate_global->__pyx_n_s_memoryRequirements #define __pyx_kp_u_memset __pyx_mstate_global->__pyx_kp_u_memset #define __pyx_n_s_memset_2 __pyx_mstate_global->__pyx_n_s_memset_2 #define __pyx_kp_u_memset_ValueError __pyx_mstate_global->__pyx_kp_u_memset_ValueError #define __pyx_n_s_metaclass __pyx_mstate_global->__pyx_n_s_metaclass #define __pyx_n_s_minBytesToKeep __pyx_mstate_global->__pyx_n_s_minBytesToKeep #define __pyx_kp_u_minMipmapLevelClamp __pyx_mstate_global->__pyx_kp_u_minMipmapLevelClamp #define __pyx_n_s_minMipmapLevelClamp_2 __pyx_mstate_global->__pyx_n_s_minMipmapLevelClamp_2 #define __pyx_kp_u_minMipmapLevelClamp_ValueError __pyx_mstate_global->__pyx_kp_u_minMipmapLevelClamp_ValueError #define __pyx_kp_u_minor __pyx_mstate_global->__pyx_kp_u_minor #define __pyx_n_s_minor_2 __pyx_mstate_global->__pyx_n_s_minor_2 #define __pyx_kp_u_minor_ValueError __pyx_mstate_global->__pyx_kp_u_minor_ValueError #define __pyx_n_s_mipLevel __pyx_mstate_global->__pyx_n_s_mipLevel #define __pyx_kp_u_mipmap __pyx_mstate_global->__pyx_kp_u_mipmap #define __pyx_n_s_mipmapDesc __pyx_mstate_global->__pyx_n_s_mipmapDesc #define __pyx_kp_u_mipmapFilterMode __pyx_mstate_global->__pyx_kp_u_mipmapFilterMode #define __pyx_n_s_mipmapFilterMode_2 __pyx_mstate_global->__pyx_n_s_mipmapFilterMode_2 #define __pyx_kp_u_mipmapFilterMode_ValueError __pyx_mstate_global->__pyx_kp_u_mipmapFilterMode_ValueError #define __pyx_kp_u_mipmapLevelBias __pyx_mstate_global->__pyx_kp_u_mipmapLevelBias #define __pyx_n_s_mipmapLevelBias_2 __pyx_mstate_global->__pyx_n_s_mipmapLevelBias_2 #define __pyx_kp_u_mipmapLevelBias_ValueError __pyx_mstate_global->__pyx_kp_u_mipmapLevelBias_ValueError #define __pyx_n_s_mipmap_2 __pyx_mstate_global->__pyx_n_s_mipmap_2 #define __pyx_kp_u_mipmap_3 __pyx_mstate_global->__pyx_kp_u_mipmap_3 #define __pyx_kp_u_mipmap_ValueError __pyx_mstate_global->__pyx_kp_u_mipmap_ValueError #define __pyx_n_s_mipmappedArray __pyx_mstate_global->__pyx_n_s_mipmappedArray #define __pyx_kp_u_miptailFirstLevel __pyx_mstate_global->__pyx_kp_u_miptailFirstLevel #define __pyx_n_s_miptailFirstLevel_2 __pyx_mstate_global->__pyx_n_s_miptailFirstLevel_2 #define __pyx_kp_u_miptailFirstLevel_ValueError __pyx_mstate_global->__pyx_kp_u_miptailFirstLevel_ValueError #define __pyx_kp_u_miptailSize __pyx_mstate_global->__pyx_kp_u_miptailSize #define __pyx_n_s_miptailSize_2 __pyx_mstate_global->__pyx_n_s_miptailSize_2 #define __pyx_kp_u_miptailSize_ValueError __pyx_mstate_global->__pyx_kp_u_miptailSize_ValueError #define __pyx_kp_u_missProp __pyx_mstate_global->__pyx_kp_u_missProp #define __pyx_n_s_missProp_2 __pyx_mstate_global->__pyx_n_s_missProp_2 #define __pyx_kp_u_missProp_ValueError __pyx_mstate_global->__pyx_kp_u_missProp_ValueError #define __pyx_n_s_mode __pyx_mstate_global->__pyx_n_s_mode #define __pyx_n_s_module __pyx_mstate_global->__pyx_n_s_module #define __pyx_n_s_mro_entries __pyx_mstate_global->__pyx_n_s_mro_entries #define __pyx_n_s_ms __pyx_mstate_global->__pyx_n_s_ms #define __pyx_kp_u_multiGpuBoardGroupID __pyx_mstate_global->__pyx_kp_u_multiGpuBoardGroupID #define __pyx_n_s_multiGpuBoardGroupID_2 __pyx_mstate_global->__pyx_n_s_multiGpuBoardGroupID_2 #define __pyx_kp_u_multiGpuBoardGroupID_ValueError __pyx_mstate_global->__pyx_kp_u_multiGpuBoardGroupID_ValueError #define __pyx_kp_u_multiProcessorCount __pyx_mstate_global->__pyx_kp_u_multiProcessorCount #define __pyx_n_s_multiProcessorCount_2 __pyx_mstate_global->__pyx_n_s_multiProcessorCount_2 #define __pyx_kp_u_multiProcessorCount_ValueError __pyx_mstate_global->__pyx_kp_u_multiProcessorCount_ValueError #define __pyx_kp_u_name __pyx_mstate_global->__pyx_kp_u_name #define __pyx_n_s_name_2 __pyx_mstate_global->__pyx_n_s_name_2 #define __pyx_n_s_name_3 __pyx_mstate_global->__pyx_n_s_name_3 #define __pyx_kp_u_name_ValueError __pyx_mstate_global->__pyx_kp_u_name_ValueError #define __pyx_kp_s_no_default___reduce___due_to_non __pyx_mstate_global->__pyx_kp_s_no_default___reduce___due_to_non #define __pyx_kp_u_node __pyx_mstate_global->__pyx_kp_u_node #define __pyx_n_s_nodeParams __pyx_mstate_global->__pyx_n_s_nodeParams #define __pyx_n_s_node_2 __pyx_mstate_global->__pyx_n_s_node_2 #define __pyx_kp_u_node_ValueError __pyx_mstate_global->__pyx_kp_u_node_ValueError #define __pyx_kp_u_nonPortableClusterSizeAllowed __pyx_mstate_global->__pyx_kp_u_nonPortableClusterSizeAllowed #define __pyx_n_s_nonPortableClusterSizeAllowed_2 __pyx_mstate_global->__pyx_n_s_nonPortableClusterSizeAllowed_2 #define __pyx_kp_u_nonPortableClusterSizeAllowed_Va __pyx_mstate_global->__pyx_kp_u_nonPortableClusterSizeAllowed_Va #define __pyx_kp_u_normalizedCoords __pyx_mstate_global->__pyx_kp_u_normalizedCoords #define __pyx_n_s_normalizedCoords_2 __pyx_mstate_global->__pyx_n_s_normalizedCoords_2 #define __pyx_kp_u_normalizedCoords_ValueError __pyx_mstate_global->__pyx_kp_u_normalizedCoords_ValueError #define __pyx_kp_u_not_enough_values_found_during_a __pyx_mstate_global->__pyx_kp_u_not_enough_values_found_during_a #define __pyx_n_s_numAttributes __pyx_mstate_global->__pyx_n_s_numAttributes #define __pyx_n_s_numBlocks __pyx_mstate_global->__pyx_n_s_numBlocks #define __pyx_kp_u_numChannels __pyx_mstate_global->__pyx_kp_u_numChannels #define __pyx_n_s_numChannels_2 __pyx_mstate_global->__pyx_n_s_numChannels_2 #define __pyx_kp_u_numChannels_ValueError __pyx_mstate_global->__pyx_kp_u_numChannels_ValueError #define __pyx_n_s_numDependencies __pyx_mstate_global->__pyx_n_s_numDependencies #define __pyx_n_s_numDependencies_out __pyx_mstate_global->__pyx_n_s_numDependencies_out #define __pyx_n_s_numEdges __pyx_mstate_global->__pyx_n_s_numEdges #define __pyx_kp_u_numExtSems __pyx_mstate_global->__pyx_kp_u_numExtSems #define __pyx_n_s_numExtSems_2 __pyx_mstate_global->__pyx_n_s_numExtSems_2 #define __pyx_kp_u_numExtSems_ValueError __pyx_mstate_global->__pyx_kp_u_numExtSems_ValueError #define __pyx_kp_u_numLevels __pyx_mstate_global->__pyx_kp_u_numLevels #define __pyx_n_s_numLevels_2 __pyx_mstate_global->__pyx_n_s_numLevels_2 #define __pyx_kp_u_numLevels_ValueError __pyx_mstate_global->__pyx_kp_u_numLevels_ValueError #define __pyx_n_s_numNodes __pyx_mstate_global->__pyx_n_s_numNodes #define __pyx_kp_u_numRegs __pyx_mstate_global->__pyx_kp_u_numRegs #define __pyx_n_s_numRegs_2 __pyx_mstate_global->__pyx_n_s_numRegs_2 #define __pyx_kp_u_numRegs_ValueError __pyx_mstate_global->__pyx_kp_u_numRegs_ValueError #define __pyx_kp_u_num_bytes __pyx_mstate_global->__pyx_kp_u_num_bytes #define __pyx_n_s_num_bytes_2 __pyx_mstate_global->__pyx_n_s_num_bytes_2 #define __pyx_kp_u_num_bytes_ValueError __pyx_mstate_global->__pyx_kp_u_num_bytes_ValueError #define __pyx_kp_u_nvSciBufObject __pyx_mstate_global->__pyx_kp_u_nvSciBufObject #define __pyx_n_s_nvSciBufObject_2 __pyx_mstate_global->__pyx_n_s_nvSciBufObject_2 #define __pyx_kp_u_nvSciBufObject_ValueError __pyx_mstate_global->__pyx_kp_u_nvSciBufObject_ValueError #define __pyx_kp_u_nvSciSync __pyx_mstate_global->__pyx_kp_u_nvSciSync #define __pyx_n_s_nvSciSyncAttrList __pyx_mstate_global->__pyx_n_s_nvSciSyncAttrList #define __pyx_kp_u_nvSciSyncObj __pyx_mstate_global->__pyx_kp_u_nvSciSyncObj #define __pyx_n_s_nvSciSyncObj_2 __pyx_mstate_global->__pyx_n_s_nvSciSyncObj_2 #define __pyx_kp_u_nvSciSyncObj_ValueError __pyx_mstate_global->__pyx_kp_u_nvSciSyncObj_ValueError #define __pyx_n_s_nvSciSync_2 __pyx_mstate_global->__pyx_n_s_nvSciSync_2 #define __pyx_kp_u_nvSciSync_ValueError __pyx_mstate_global->__pyx_kp_u_nvSciSync_ValueError #define __pyx_n_s_obj __pyx_mstate_global->__pyx_n_s_obj #define __pyx_n_s_objType __pyx_mstate_global->__pyx_n_s_objType #define __pyx_n_s_object __pyx_mstate_global->__pyx_n_s_object #define __pyx_n_s_object_out __pyx_mstate_global->__pyx_n_s_object_out #define __pyx_kp_u_offset __pyx_mstate_global->__pyx_kp_u_offset #define __pyx_n_s_offset_2 __pyx_mstate_global->__pyx_n_s_offset_2 #define __pyx_kp_u_offset_ValueError __pyx_mstate_global->__pyx_kp_u_offset_ValueError #define __pyx_n_s_originalGraph __pyx_mstate_global->__pyx_n_s_originalGraph #define __pyx_n_s_originalNode __pyx_mstate_global->__pyx_n_s_originalNode #define __pyx_kp_u_overBudget __pyx_mstate_global->__pyx_kp_u_overBudget #define __pyx_n_s_overBudget_2 __pyx_mstate_global->__pyx_n_s_overBudget_2 #define __pyx_kp_u_overBudget_ValueError __pyx_mstate_global->__pyx_kp_u_overBudget_ValueError #define __pyx_n_s_p __pyx_mstate_global->__pyx_n_s_p #define __pyx_kp_u_pArray __pyx_mstate_global->__pyx_kp_u_pArray #define __pyx_n_s_pArray_2 __pyx_mstate_global->__pyx_n_s_pArray_2 #define __pyx_kp_u_pArray_ValueError __pyx_mstate_global->__pyx_kp_u_pArray_ValueError #define __pyx_n_s_pCacheConfig __pyx_mstate_global->__pyx_n_s_pCacheConfig #define __pyx_n_s_pCaptureStatus __pyx_mstate_global->__pyx_n_s_pCaptureStatus #define __pyx_n_s_pConfig __pyx_mstate_global->__pyx_n_s_pConfig #define __pyx_n_s_pCopyParams __pyx_mstate_global->__pyx_n_s_pCopyParams #define __pyx_n_s_pCudaDeviceCount __pyx_mstate_global->__pyx_n_s_pCudaDeviceCount #define __pyx_n_s_pCudaResource __pyx_mstate_global->__pyx_n_s_pCudaResource #define __pyx_n_s_pDependencies __pyx_mstate_global->__pyx_n_s_pDependencies #define __pyx_n_s_pDevice __pyx_mstate_global->__pyx_n_s_pDevice #define __pyx_n_s_pExportTableId __pyx_mstate_global->__pyx_n_s_pExportTableId #define __pyx_n_s_pFlags __pyx_mstate_global->__pyx_n_s_pFlags #define __pyx_n_s_pGraph __pyx_mstate_global->__pyx_n_s_pGraph #define __pyx_n_s_pGraphClone __pyx_mstate_global->__pyx_n_s_pGraphClone #define __pyx_n_s_pGraphExec __pyx_mstate_global->__pyx_n_s_pGraphExec #define __pyx_n_s_pGraphNode __pyx_mstate_global->__pyx_n_s_pGraphNode #define __pyx_n_s_pHandle_out __pyx_mstate_global->__pyx_n_s_pHandle_out #define __pyx_n_s_pHost __pyx_mstate_global->__pyx_n_s_pHost #define __pyx_n_s_pMemsetParams __pyx_mstate_global->__pyx_n_s_pMemsetParams #define __pyx_n_s_pNode __pyx_mstate_global->__pyx_n_s_pNode #define __pyx_n_s_pNodeParams __pyx_mstate_global->__pyx_n_s_pNodeParams #define __pyx_n_s_pNumDependencies __pyx_mstate_global->__pyx_n_s_pNumDependencies #define __pyx_n_s_pNumDependentNodes __pyx_mstate_global->__pyx_n_s_pNumDependentNodes #define __pyx_n_s_pNumRootNodes __pyx_mstate_global->__pyx_n_s_pNumRootNodes #define __pyx_kp_u_pPitch __pyx_mstate_global->__pyx_kp_u_pPitch #define __pyx_n_s_pPitch_2 __pyx_mstate_global->__pyx_n_s_pPitch_2 #define __pyx_kp_u_pPitch_ValueError __pyx_mstate_global->__pyx_kp_u_pPitch_ValueError #define __pyx_n_s_pPlaneArray __pyx_mstate_global->__pyx_n_s_pPlaneArray #define __pyx_n_s_pResDesc __pyx_mstate_global->__pyx_n_s_pResDesc #define __pyx_n_s_pResViewDesc __pyx_mstate_global->__pyx_n_s_pResViewDesc #define __pyx_n_s_pStream __pyx_mstate_global->__pyx_n_s_pStream #define __pyx_n_s_pSurfObject __pyx_mstate_global->__pyx_n_s_pSurfObject #define __pyx_n_s_pTexDesc __pyx_mstate_global->__pyx_n_s_pTexDesc #define __pyx_n_s_pTexObject __pyx_mstate_global->__pyx_n_s_pTexObject #define __pyx_n_s_pType __pyx_mstate_global->__pyx_n_s_pType #define __pyx_kp_u_pValue __pyx_mstate_global->__pyx_kp_u_pValue #define __pyx_n_s_pValue_2 __pyx_mstate_global->__pyx_n_s_pValue_2 #define __pyx_kp_u_pValue_ValueError __pyx_mstate_global->__pyx_kp_u_pValue_ValueError #define __pyx_kp_u_pad __pyx_mstate_global->__pyx_kp_u_pad #define __pyx_n_s_pad_2 __pyx_mstate_global->__pyx_n_s_pad_2 #define __pyx_kp_u_pad_ValueError __pyx_mstate_global->__pyx_kp_u_pad_ValueError #define __pyx_kp_u_pad_length_must_be_64_is __pyx_mstate_global->__pyx_kp_u_pad_length_must_be_64_is #define __pyx_kp_u_pageableMemoryAccess __pyx_mstate_global->__pyx_kp_u_pageableMemoryAccess #define __pyx_kp_u_pageableMemoryAccessUsesHostPage __pyx_mstate_global->__pyx_kp_u_pageableMemoryAccessUsesHostPage #define __pyx_n_s_pageableMemoryAccessUsesHostPage_2 __pyx_mstate_global->__pyx_n_s_pageableMemoryAccessUsesHostPage_2 #define __pyx_kp_u_pageableMemoryAccessUsesHostPage_3 __pyx_mstate_global->__pyx_kp_u_pageableMemoryAccessUsesHostPage_3 #define __pyx_n_s_pageableMemoryAccess_2 __pyx_mstate_global->__pyx_n_s_pageableMemoryAccess_2 #define __pyx_kp_u_pageableMemoryAccess_ValueError __pyx_mstate_global->__pyx_kp_u_pageableMemoryAccess_ValueError #define __pyx_kp_u_param __pyx_mstate_global->__pyx_kp_u_param #define __pyx_n_s_param_2 __pyx_mstate_global->__pyx_n_s_param_2 #define __pyx_kp_u_param_ValueError __pyx_mstate_global->__pyx_kp_u_param_ValueError #define __pyx_kp_u_params __pyx_mstate_global->__pyx_kp_u_params #define __pyx_kp_u_paramsArray __pyx_mstate_global->__pyx_kp_u_paramsArray #define __pyx_n_s_paramsArray_2 __pyx_mstate_global->__pyx_n_s_paramsArray_2 #define __pyx_kp_u_paramsArray_ValueError __pyx_mstate_global->__pyx_kp_u_paramsArray_ValueError #define __pyx_n_s_params_2 __pyx_mstate_global->__pyx_n_s_params_2 #define __pyx_kp_u_params_ValueError __pyx_mstate_global->__pyx_kp_u_params_ValueError #define __pyx_n_s_params_out __pyx_mstate_global->__pyx_n_s_params_out #define __pyx_n_s_parray __pyx_mstate_global->__pyx_n_s_parray #define __pyx_n_s_path __pyx_mstate_global->__pyx_n_s_path #define __pyx_n_s_pbuffer __pyx_mstate_global->__pyx_n_s_pbuffer #define __pyx_n_s_pcallback __pyx_mstate_global->__pyx_n_s_pcallback #define __pyx_n_s_pcallbackFunc __pyx_mstate_global->__pyx_n_s_pcallbackFunc #define __pyx_n_s_pchildGraph __pyx_mstate_global->__pyx_n_s_pchildGraph #define __pyx_kp_u_pciBusID __pyx_mstate_global->__pyx_kp_u_pciBusID #define __pyx_n_s_pciBusID_2 __pyx_mstate_global->__pyx_n_s_pciBusID_2 #define __pyx_kp_u_pciBusID_ValueError __pyx_mstate_global->__pyx_kp_u_pciBusID_ValueError #define __pyx_n_s_pciBusId __pyx_mstate_global->__pyx_n_s_pciBusId #define __pyx_kp_u_pciDeviceID __pyx_mstate_global->__pyx_kp_u_pciDeviceID #define __pyx_n_s_pciDeviceID_2 __pyx_mstate_global->__pyx_n_s_pciDeviceID_2 #define __pyx_kp_u_pciDeviceID_ValueError __pyx_mstate_global->__pyx_kp_u_pciDeviceID_ValueError #define __pyx_kp_u_pciDomainID __pyx_mstate_global->__pyx_kp_u_pciDomainID #define __pyx_n_s_pciDomainID_2 __pyx_mstate_global->__pyx_n_s_pciDomainID_2 #define __pyx_kp_u_pciDomainID_ValueError __pyx_mstate_global->__pyx_kp_u_pciDomainID_ValueError #define __pyx_n_s_pclonedGraph __pyx_mstate_global->__pyx_n_s_pclonedGraph #define __pyx_n_s_pconn __pyx_mstate_global->__pyx_n_s_pconn #define __pyx_n_s_pdestroy __pyx_mstate_global->__pyx_n_s_pdestroy #define __pyx_n_s_pdst __pyx_mstate_global->__pyx_n_s_pdst #define __pyx_n_s_peerDevice __pyx_mstate_global->__pyx_n_s_peerDevice #define __pyx_n_s_peglStream __pyx_mstate_global->__pyx_n_s_peglStream #define __pyx_n_s_peglSync __pyx_mstate_global->__pyx_n_s_peglSync #define __pyx_n_s_pend __pyx_mstate_global->__pyx_n_s_pend #define __pyx_kp_u_persistingL2CacheMaxSize __pyx_mstate_global->__pyx_kp_u_persistingL2CacheMaxSize #define __pyx_n_s_persistingL2CacheMaxSize_2 __pyx_mstate_global->__pyx_n_s_persistingL2CacheMaxSize_2 #define __pyx_kp_u_persistingL2CacheMaxSize_ValueEr __pyx_mstate_global->__pyx_kp_u_persistingL2CacheMaxSize_ValueEr #define __pyx_n_s_pevent __pyx_mstate_global->__pyx_n_s_pevent #define __pyx_n_s_pextMem __pyx_mstate_global->__pyx_n_s_pextMem #define __pyx_n_s_pextSem __pyx_mstate_global->__pyx_n_s_pextSem #define __pyx_n_s_pfn __pyx_mstate_global->__pyx_n_s_pfn #define __pyx_n_s_pgraph __pyx_mstate_global->__pyx_n_s_pgraph #define __pyx_n_s_pgraphExec __pyx_mstate_global->__pyx_n_s_pgraphExec #define __pyx_n_s_phArray __pyx_mstate_global->__pyx_n_s_phArray #define __pyx_n_s_phDst __pyx_mstate_global->__pyx_n_s_phDst #define __pyx_n_s_phEvent __pyx_mstate_global->__pyx_n_s_phEvent #define __pyx_n_s_phGraph __pyx_mstate_global->__pyx_n_s_phGraph #define __pyx_n_s_phGraphExec __pyx_mstate_global->__pyx_n_s_phGraphExec #define __pyx_kp_u_phGraph_out __pyx_mstate_global->__pyx_kp_u_phGraph_out #define __pyx_n_s_phGraph_out_2 __pyx_mstate_global->__pyx_n_s_phGraph_out_2 #define __pyx_kp_u_phGraph_out_ValueError __pyx_mstate_global->__pyx_kp_u_phGraph_out_ValueError #define __pyx_n_s_phNode __pyx_mstate_global->__pyx_n_s_phNode #define __pyx_n_s_phSrc __pyx_mstate_global->__pyx_n_s_phSrc #define __pyx_n_s_phStream __pyx_mstate_global->__pyx_n_s_phStream #define __pyx_n_s_pheight __pyx_mstate_global->__pyx_n_s_pheight #define __pyx_n_s_pimage __pyx_mstate_global->__pyx_n_s_pimage #define __pyx_kp_u_pitch __pyx_mstate_global->__pyx_kp_u_pitch #define __pyx_kp_u_pitch2D __pyx_mstate_global->__pyx_kp_u_pitch2D #define __pyx_n_s_pitch2D_2 __pyx_mstate_global->__pyx_n_s_pitch2D_2 #define __pyx_kp_u_pitch2D_ValueError __pyx_mstate_global->__pyx_kp_u_pitch2D_ValueError #define __pyx_kp_u_pitchInBytes __pyx_mstate_global->__pyx_kp_u_pitchInBytes #define __pyx_n_s_pitchInBytes_2 __pyx_mstate_global->__pyx_n_s_pitchInBytes_2 #define __pyx_kp_u_pitchInBytes_ValueError __pyx_mstate_global->__pyx_kp_u_pitchInBytes_ValueError #define __pyx_n_s_pitch_2 __pyx_mstate_global->__pyx_n_s_pitch_2 #define __pyx_kp_u_pitch_ValueError __pyx_mstate_global->__pyx_kp_u_pitch_ValueError #define __pyx_n_s_pitchedDevPtr __pyx_mstate_global->__pyx_n_s_pitchedDevPtr #define __pyx_kp_u_planeCount __pyx_mstate_global->__pyx_kp_u_planeCount #define __pyx_n_s_planeCount_2 __pyx_mstate_global->__pyx_n_s_planeCount_2 #define __pyx_kp_u_planeCount_ValueError __pyx_mstate_global->__pyx_kp_u_planeCount_ValueError #define __pyx_kp_u_planeDesc __pyx_mstate_global->__pyx_kp_u_planeDesc #define __pyx_n_s_planeDesc_2 __pyx_mstate_global->__pyx_n_s_planeDesc_2 #define __pyx_kp_u_planeDesc_ValueError __pyx_mstate_global->__pyx_kp_u_planeDesc_ValueError #define __pyx_n_s_planeIdx __pyx_mstate_global->__pyx_n_s_planeIdx #define __pyx_n_s_pmemPool __pyx_mstate_global->__pyx_n_s_pmemPool #define __pyx_n_s_pmipmap __pyx_mstate_global->__pyx_n_s_pmipmap #define __pyx_n_s_pmipmappedArray __pyx_mstate_global->__pyx_n_s_pmipmappedArray #define __pyx_n_s_pnode __pyx_mstate_global->__pyx_n_s_pnode #define __pyx_n_s_pobject __pyx_mstate_global->__pyx_n_s_pobject #define __pyx_kp_u_poolProps __pyx_mstate_global->__pyx_kp_u_poolProps #define __pyx_n_s_poolProps_2 __pyx_mstate_global->__pyx_n_s_poolProps_2 #define __pyx_kp_u_poolProps_ValueError __pyx_mstate_global->__pyx_kp_u_poolProps_ValueError #define __pyx_n_s_poriginalGraph __pyx_mstate_global->__pyx_n_s_poriginalGraph #define __pyx_n_s_poriginalNode __pyx_mstate_global->__pyx_n_s_poriginalNode #define __pyx_n_s_ppCudaResource __pyx_mstate_global->__pyx_n_s_ppCudaResource #define __pyx_n_s_ppExportTable __pyx_mstate_global->__pyx_n_s_ppExportTable #define __pyx_n_s_ppStream __pyx_mstate_global->__pyx_n_s_ppStream #define __pyx_kp_u_preferredShmemCarveout __pyx_mstate_global->__pyx_kp_u_preferredShmemCarveout #define __pyx_n_s_preferredShmemCarveout_2 __pyx_mstate_global->__pyx_n_s_preferredShmemCarveout_2 #define __pyx_kp_u_preferredShmemCarveout_ValueErro __pyx_mstate_global->__pyx_kp_u_preferredShmemCarveout_ValueErro #define __pyx_n_s_prepare __pyx_mstate_global->__pyx_n_s_prepare #define __pyx_n_s_presource __pyx_mstate_global->__pyx_n_s_presource #define __pyx_n_s_presources __pyx_mstate_global->__pyx_n_s_presources #define __pyx_kp_u_priority __pyx_mstate_global->__pyx_kp_u_priority #define __pyx_n_s_priority_2 __pyx_mstate_global->__pyx_n_s_priority_2 #define __pyx_kp_u_priority_ValueError __pyx_mstate_global->__pyx_kp_u_priority_ValueError #define __pyx_kp_u_programmaticEvent __pyx_mstate_global->__pyx_kp_u_programmaticEvent #define __pyx_n_s_programmaticEvent_2 __pyx_mstate_global->__pyx_n_s_programmaticEvent_2 #define __pyx_kp_u_programmaticEvent_ValueError __pyx_mstate_global->__pyx_kp_u_programmaticEvent_ValueError #define __pyx_kp_u_programmaticStreamSerializationA __pyx_mstate_global->__pyx_kp_u_programmaticStreamSerializationA #define __pyx_n_s_programmaticStreamSerializationA_2 __pyx_mstate_global->__pyx_n_s_programmaticStreamSerializationA_2 #define __pyx_kp_u_programmaticStreamSerializationA_3 __pyx_mstate_global->__pyx_kp_u_programmaticStreamSerializationA_3 #define __pyx_n_s_prop __pyx_mstate_global->__pyx_n_s_prop #define __pyx_n_s_psrc __pyx_mstate_global->__pyx_n_s_psrc #define __pyx_n_s_pstart __pyx_mstate_global->__pyx_n_s_pstart #define __pyx_n_s_pstream __pyx_mstate_global->__pyx_n_s_pstream #define __pyx_n_s_psurfObject __pyx_mstate_global->__pyx_n_s_psurfObject #define __pyx_n_s_ptarget __pyx_mstate_global->__pyx_n_s_ptarget #define __pyx_n_s_ptexObject __pyx_mstate_global->__pyx_n_s_ptexObject #define __pyx_n_s_ptr __pyx_mstate_global->__pyx_n_s_ptr #define __pyx_kp_u_ptr_2 __pyx_mstate_global->__pyx_kp_u_ptr_2 #define __pyx_n_s_ptr_3 __pyx_mstate_global->__pyx_n_s_ptr_3 #define __pyx_kp_u_ptr_ValueError __pyx_mstate_global->__pyx_kp_u_ptr_ValueError #define __pyx_kp_u_ptxVersion __pyx_mstate_global->__pyx_kp_u_ptxVersion #define __pyx_n_s_ptxVersion_2 __pyx_mstate_global->__pyx_n_s_ptxVersion_2 #define __pyx_kp_u_ptxVersion_ValueError __pyx_mstate_global->__pyx_kp_u_ptxVersion_ValueError #define __pyx_n_s_pvdpDevice __pyx_mstate_global->__pyx_n_s_pvdpDevice #define __pyx_n_s_pvdpGetProcAddress __pyx_mstate_global->__pyx_n_s_pvdpGetProcAddress #define __pyx_n_s_pvdpSurface __pyx_mstate_global->__pyx_n_s_pvdpSurface #define __pyx_n_s_pwidth __pyx_mstate_global->__pyx_n_s_pwidth #define __pyx_n_s_pyObj __pyx_mstate_global->__pyx_n_s_pyObj #define __pyx_n_s_pyattributes __pyx_mstate_global->__pyx_n_s_pyattributes #define __pyx_n_s_pydataSizes __pyx_mstate_global->__pyx_n_s_pydataSizes #define __pyx_n_s_pydependencies_out __pyx_mstate_global->__pyx_n_s_pydependencies_out #define __pyx_n_s_pyedgeData __pyx_mstate_global->__pyx_n_s_pyedgeData #define __pyx_n_s_pyedgeData_out __pyx_mstate_global->__pyx_n_s_pyedgeData_out #define __pyx_n_s_pyfrom __pyx_mstate_global->__pyx_n_s_pyfrom #define __pyx_n_s_pylist __pyx_mstate_global->__pyx_n_s_pylist #define __pyx_n_s_pynodes __pyx_mstate_global->__pyx_n_s_pynodes #define __pyx_n_s_pypCudaDevices __pyx_mstate_global->__pyx_n_s_pypCudaDevices #define __pyx_n_s_pypDependencies __pyx_mstate_global->__pyx_n_s_pypDependencies #define __pyx_n_s_pypDependentNodes __pyx_mstate_global->__pyx_n_s_pypDependentNodes #define __pyx_n_s_pypRootNodes __pyx_mstate_global->__pyx_n_s_pypRootNodes #define __pyx_n_s_pypciBusId __pyx_mstate_global->__pyx_n_s_pypciBusId #define __pyx_n_s_pyto __pyx_mstate_global->__pyx_n_s_pyto #define __pyx_n_s_pyx_state __pyx_mstate_global->__pyx_n_s_pyx_state #define __pyx_n_s_qualname __pyx_mstate_global->__pyx_n_s_qualname #define __pyx_n_s_range __pyx_mstate_global->__pyx_n_s_range #define __pyx_kp_u_readMode __pyx_mstate_global->__pyx_kp_u_readMode #define __pyx_n_s_readMode_2 __pyx_mstate_global->__pyx_n_s_readMode_2 #define __pyx_kp_u_readMode_ValueError __pyx_mstate_global->__pyx_kp_u_readMode_ValueError #define __pyx_n_s_reduce __pyx_mstate_global->__pyx_n_s_reduce #define __pyx_n_s_reduce_cython __pyx_mstate_global->__pyx_n_s_reduce_cython #define __pyx_n_s_reduce_ex __pyx_mstate_global->__pyx_n_s_reduce_ex #define __pyx_kp_u_regsPerBlock __pyx_mstate_global->__pyx_kp_u_regsPerBlock #define __pyx_n_s_regsPerBlock_2 __pyx_mstate_global->__pyx_n_s_regsPerBlock_2 #define __pyx_kp_u_regsPerBlock_ValueError __pyx_mstate_global->__pyx_kp_u_regsPerBlock_ValueError #define __pyx_kp_u_regsPerMultiprocessor __pyx_mstate_global->__pyx_kp_u_regsPerMultiprocessor #define __pyx_n_s_regsPerMultiprocessor_2 __pyx_mstate_global->__pyx_n_s_regsPerMultiprocessor_2 #define __pyx_kp_u_regsPerMultiprocessor_ValueError __pyx_mstate_global->__pyx_kp_u_regsPerMultiprocessor_ValueError #define __pyx_kp_u_remote __pyx_mstate_global->__pyx_kp_u_remote #define __pyx_n_s_remote_2 __pyx_mstate_global->__pyx_n_s_remote_2 #define __pyx_kp_u_remote_ValueError __pyx_mstate_global->__pyx_kp_u_remote_ValueError #define __pyx_kp_u_requiredClusterDepth __pyx_mstate_global->__pyx_kp_u_requiredClusterDepth #define __pyx_n_s_requiredClusterDepth_2 __pyx_mstate_global->__pyx_n_s_requiredClusterDepth_2 #define __pyx_kp_u_requiredClusterDepth_ValueError __pyx_mstate_global->__pyx_kp_u_requiredClusterDepth_ValueError #define __pyx_kp_u_requiredClusterHeight __pyx_mstate_global->__pyx_kp_u_requiredClusterHeight #define __pyx_n_s_requiredClusterHeight_2 __pyx_mstate_global->__pyx_n_s_requiredClusterHeight_2 #define __pyx_kp_u_requiredClusterHeight_ValueError __pyx_mstate_global->__pyx_kp_u_requiredClusterHeight_ValueError #define __pyx_kp_u_requiredClusterWidth __pyx_mstate_global->__pyx_kp_u_requiredClusterWidth #define __pyx_n_s_requiredClusterWidth_2 __pyx_mstate_global->__pyx_n_s_requiredClusterWidth_2 #define __pyx_kp_u_requiredClusterWidth_ValueError __pyx_mstate_global->__pyx_kp_u_requiredClusterWidth_ValueError #define __pyx_kp_u_res __pyx_mstate_global->__pyx_kp_u_res #define __pyx_kp_u_resType __pyx_mstate_global->__pyx_kp_u_resType #define __pyx_n_s_resType_2 __pyx_mstate_global->__pyx_n_s_resType_2 #define __pyx_kp_u_resType_ValueError __pyx_mstate_global->__pyx_kp_u_resType_ValueError #define __pyx_n_s_res_2 __pyx_mstate_global->__pyx_n_s_res_2 #define __pyx_kp_u_res_ValueError __pyx_mstate_global->__pyx_kp_u_res_ValueError #define __pyx_kp_u_reserved __pyx_mstate_global->__pyx_kp_u_reserved #define __pyx_kp_u_reserved0 __pyx_mstate_global->__pyx_kp_u_reserved0 #define __pyx_n_s_reserved0_2 __pyx_mstate_global->__pyx_n_s_reserved0_2 #define __pyx_kp_u_reserved0_ValueError __pyx_mstate_global->__pyx_kp_u_reserved0_ValueError #define __pyx_kp_u_reserved1 __pyx_mstate_global->__pyx_kp_u_reserved1 #define __pyx_n_s_reserved1_2 __pyx_mstate_global->__pyx_n_s_reserved1_2 #define __pyx_kp_u_reserved1_ValueError __pyx_mstate_global->__pyx_kp_u_reserved1_ValueError #define __pyx_kp_u_reserved2 __pyx_mstate_global->__pyx_kp_u_reserved2 #define __pyx_n_s_reserved2_2 __pyx_mstate_global->__pyx_n_s_reserved2_2 #define __pyx_kp_u_reserved2_ValueError __pyx_mstate_global->__pyx_kp_u_reserved2_ValueError #define __pyx_kp_u_reservedSharedMemPerBlock __pyx_mstate_global->__pyx_kp_u_reservedSharedMemPerBlock #define __pyx_n_s_reservedSharedMemPerBlock_2 __pyx_mstate_global->__pyx_n_s_reservedSharedMemPerBlock_2 #define __pyx_kp_u_reservedSharedMemPerBlock_ValueE __pyx_mstate_global->__pyx_kp_u_reservedSharedMemPerBlock_ValueE #define __pyx_n_s_reserved_2 __pyx_mstate_global->__pyx_n_s_reserved_2 #define __pyx_kp_u_reserved_ValueError __pyx_mstate_global->__pyx_kp_u_reserved_ValueError #define __pyx_kp_u_reserved_length_must_be_54_is __pyx_mstate_global->__pyx_kp_u_reserved_length_must_be_54_is #define __pyx_kp_u_reserved_length_must_be_5_is __pyx_mstate_global->__pyx_kp_u_reserved_length_must_be_5_is #define __pyx_kp_u_reserved_length_must_be_64_is __pyx_mstate_global->__pyx_kp_u_reserved_length_must_be_64_is #define __pyx_n_s_resource __pyx_mstate_global->__pyx_n_s_resource #define __pyx_n_s_resources __pyx_mstate_global->__pyx_n_s_resources #define __pyx_kp_u_result __pyx_mstate_global->__pyx_kp_u_result #define __pyx_n_s_resultInfo __pyx_mstate_global->__pyx_n_s_resultInfo #define __pyx_n_s_result_2 __pyx_mstate_global->__pyx_n_s_result_2 #define __pyx_kp_u_result_ValueError __pyx_mstate_global->__pyx_kp_u_result_ValueError #define __pyx_kp_u_result_out __pyx_mstate_global->__pyx_kp_u_result_out #define __pyx_n_s_result_out_2 __pyx_mstate_global->__pyx_n_s_result_out_2 #define __pyx_kp_u_result_out_ValueError __pyx_mstate_global->__pyx_kp_u_result_out_ValueError #define __pyx_n_s_runtimeVersion __pyx_mstate_global->__pyx_n_s_runtimeVersion #define __pyx_kp_u_sRGB __pyx_mstate_global->__pyx_kp_u_sRGB #define __pyx_n_s_sRGB_2 __pyx_mstate_global->__pyx_n_s_sRGB_2 #define __pyx_kp_u_sRGB_ValueError __pyx_mstate_global->__pyx_kp_u_sRGB_ValueError #define __pyx_n_s_scope __pyx_mstate_global->__pyx_n_s_scope #define __pyx_kp_u_seamlessCubemap __pyx_mstate_global->__pyx_kp_u_seamlessCubemap #define __pyx_n_s_seamlessCubemap_2 __pyx_mstate_global->__pyx_n_s_seamlessCubemap_2 #define __pyx_kp_u_seamlessCubemap_ValueError __pyx_mstate_global->__pyx_kp_u_seamlessCubemap_ValueError #define __pyx_n_s_self __pyx_mstate_global->__pyx_n_s_self #define __pyx_n_s_semHandleDesc __pyx_mstate_global->__pyx_n_s_semHandleDesc #define __pyx_n_s_send __pyx_mstate_global->__pyx_n_s_send #define __pyx_n_s_set_name __pyx_mstate_global->__pyx_n_s_set_name #define __pyx_n_s_setstate __pyx_mstate_global->__pyx_n_s_setstate #define __pyx_n_s_setstate_cython __pyx_mstate_global->__pyx_n_s_setstate_cython #define __pyx_n_s_shareableHandle __pyx_mstate_global->__pyx_n_s_shareableHandle #define __pyx_kp_u_sharedMemBytes __pyx_mstate_global->__pyx_kp_u_sharedMemBytes #define __pyx_n_s_sharedMemBytes_2 __pyx_mstate_global->__pyx_n_s_sharedMemBytes_2 #define __pyx_kp_u_sharedMemBytes_ValueError __pyx_mstate_global->__pyx_kp_u_sharedMemBytes_ValueError #define __pyx_kp_u_sharedMemCarveout __pyx_mstate_global->__pyx_kp_u_sharedMemCarveout #define __pyx_n_s_sharedMemCarveout_2 __pyx_mstate_global->__pyx_n_s_sharedMemCarveout_2 #define __pyx_kp_u_sharedMemCarveout_ValueError __pyx_mstate_global->__pyx_kp_u_sharedMemCarveout_ValueError #define __pyx_kp_u_sharedMemPerBlock __pyx_mstate_global->__pyx_kp_u_sharedMemPerBlock #define __pyx_kp_u_sharedMemPerBlockOptin __pyx_mstate_global->__pyx_kp_u_sharedMemPerBlockOptin #define __pyx_n_s_sharedMemPerBlockOptin_2 __pyx_mstate_global->__pyx_n_s_sharedMemPerBlockOptin_2 #define __pyx_kp_u_sharedMemPerBlockOptin_ValueErro __pyx_mstate_global->__pyx_kp_u_sharedMemPerBlockOptin_ValueErro #define __pyx_n_s_sharedMemPerBlock_2 __pyx_mstate_global->__pyx_n_s_sharedMemPerBlock_2 #define __pyx_kp_u_sharedMemPerBlock_ValueError __pyx_mstate_global->__pyx_kp_u_sharedMemPerBlock_ValueError #define __pyx_kp_u_sharedMemPerMultiprocessor __pyx_mstate_global->__pyx_kp_u_sharedMemPerMultiprocessor #define __pyx_n_s_sharedMemPerMultiprocessor_2 __pyx_mstate_global->__pyx_n_s_sharedMemPerMultiprocessor_2 #define __pyx_kp_u_sharedMemPerMultiprocessor_Value __pyx_mstate_global->__pyx_kp_u_sharedMemPerMultiprocessor_Value #define __pyx_kp_u_sharedSizeBytes __pyx_mstate_global->__pyx_kp_u_sharedSizeBytes #define __pyx_n_s_sharedSizeBytes_2 __pyx_mstate_global->__pyx_n_s_sharedSizeBytes_2 #define __pyx_kp_u_sharedSizeBytes_ValueError __pyx_mstate_global->__pyx_kp_u_sharedSizeBytes_ValueError #define __pyx_kp_u_singleToDoublePrecisionPerfRatio __pyx_mstate_global->__pyx_kp_u_singleToDoublePrecisionPerfRatio #define __pyx_n_s_singleToDoublePrecisionPerfRatio_2 __pyx_mstate_global->__pyx_n_s_singleToDoublePrecisionPerfRatio_2 #define __pyx_kp_u_singleToDoublePrecisionPerfRatio_3 __pyx_mstate_global->__pyx_kp_u_singleToDoublePrecisionPerfRatio_3 #define __pyx_kp_u_size __pyx_mstate_global->__pyx_kp_u_size #define __pyx_kp_u_sizeInBytes __pyx_mstate_global->__pyx_kp_u_sizeInBytes #define __pyx_n_s_sizeInBytes_2 __pyx_mstate_global->__pyx_n_s_sizeInBytes_2 #define __pyx_kp_u_sizeInBytes_ValueError __pyx_mstate_global->__pyx_kp_u_sizeInBytes_ValueError #define __pyx_n_s_size_2 __pyx_mstate_global->__pyx_n_s_size_2 #define __pyx_kp_u_size_ValueError __pyx_mstate_global->__pyx_kp_u_size_ValueError #define __pyx_n_s_sizeof __pyx_mstate_global->__pyx_n_s_sizeof #define __pyx_kp_u_sparseCudaArraySupported __pyx_mstate_global->__pyx_kp_u_sparseCudaArraySupported #define __pyx_n_s_sparseCudaArraySupported_2 __pyx_mstate_global->__pyx_n_s_sparseCudaArraySupported_2 #define __pyx_kp_u_sparseCudaArraySupported_ValueEr __pyx_mstate_global->__pyx_kp_u_sparseCudaArraySupported_ValueEr #define __pyx_n_s_sparseProperties __pyx_mstate_global->__pyx_n_s_sparseProperties #define __pyx_n_s_spec __pyx_mstate_global->__pyx_n_s_spec #define __pyx_n_s_spitch __pyx_mstate_global->__pyx_n_s_spitch #define __pyx_n_s_src __pyx_mstate_global->__pyx_n_s_src #define __pyx_kp_u_srcArray __pyx_mstate_global->__pyx_kp_u_srcArray #define __pyx_n_s_srcArray_2 __pyx_mstate_global->__pyx_n_s_srcArray_2 #define __pyx_kp_u_srcArray_ValueError __pyx_mstate_global->__pyx_kp_u_srcArray_ValueError #define __pyx_kp_u_srcDevice __pyx_mstate_global->__pyx_kp_u_srcDevice #define __pyx_n_s_srcDevice_2 __pyx_mstate_global->__pyx_n_s_srcDevice_2 #define __pyx_kp_u_srcDevice_ValueError __pyx_mstate_global->__pyx_kp_u_srcDevice_ValueError #define __pyx_kp_u_srcPos __pyx_mstate_global->__pyx_kp_u_srcPos #define __pyx_n_s_srcPos_2 __pyx_mstate_global->__pyx_n_s_srcPos_2 #define __pyx_kp_u_srcPos_ValueError __pyx_mstate_global->__pyx_kp_u_srcPos_ValueError #define __pyx_kp_u_srcPtr __pyx_mstate_global->__pyx_kp_u_srcPtr #define __pyx_n_s_srcPtr_2 __pyx_mstate_global->__pyx_n_s_srcPtr_2 #define __pyx_kp_u_srcPtr_ValueError __pyx_mstate_global->__pyx_kp_u_srcPtr_ValueError #define __pyx_n_s_start __pyx_mstate_global->__pyx_n_s_start #define __pyx_n_s_stream __pyx_mstate_global->__pyx_n_s_stream #define __pyx_n_s_streamId __pyx_mstate_global->__pyx_n_s_streamId #define __pyx_kp_u_streamPrioritiesSupported __pyx_mstate_global->__pyx_kp_u_streamPrioritiesSupported #define __pyx_n_s_streamPrioritiesSupported_2 __pyx_mstate_global->__pyx_n_s_streamPrioritiesSupported_2 #define __pyx_kp_u_streamPrioritiesSupported_ValueE __pyx_mstate_global->__pyx_kp_u_streamPrioritiesSupported_ValueE #define __pyx_kp_s_stringsource __pyx_mstate_global->__pyx_kp_s_stringsource #define __pyx_n_s_super __pyx_mstate_global->__pyx_n_s_super #define __pyx_n_s_surfObject __pyx_mstate_global->__pyx_n_s_surfObject #define __pyx_kp_u_surfaceAlignment __pyx_mstate_global->__pyx_kp_u_surfaceAlignment #define __pyx_n_s_surfaceAlignment_2 __pyx_mstate_global->__pyx_n_s_surfaceAlignment_2 #define __pyx_kp_u_surfaceAlignment_ValueError __pyx_mstate_global->__pyx_kp_u_surfaceAlignment_ValueError #define __pyx_n_s_symbol __pyx_mstate_global->__pyx_n_s_symbol #define __pyx_kp_u_syncPolicy __pyx_mstate_global->__pyx_kp_u_syncPolicy #define __pyx_n_s_syncPolicy_2 __pyx_mstate_global->__pyx_n_s_syncPolicy_2 #define __pyx_kp_u_syncPolicy_ValueError __pyx_mstate_global->__pyx_kp_u_syncPolicy_ValueError #define __pyx_n_s_target __pyx_mstate_global->__pyx_n_s_target #define __pyx_kp_u_tccDriver __pyx_mstate_global->__pyx_kp_u_tccDriver #define __pyx_n_s_tccDriver_2 __pyx_mstate_global->__pyx_n_s_tccDriver_2 #define __pyx_kp_u_tccDriver_ValueError __pyx_mstate_global->__pyx_kp_u_tccDriver_ValueError #define __pyx_n_s_test __pyx_mstate_global->__pyx_n_s_test #define __pyx_n_s_texObject __pyx_mstate_global->__pyx_n_s_texObject #define __pyx_kp_u_textureAlignment __pyx_mstate_global->__pyx_kp_u_textureAlignment #define __pyx_n_s_textureAlignment_2 __pyx_mstate_global->__pyx_n_s_textureAlignment_2 #define __pyx_kp_u_textureAlignment_ValueError __pyx_mstate_global->__pyx_kp_u_textureAlignment_ValueError #define __pyx_kp_u_texturePitchAlignment __pyx_mstate_global->__pyx_kp_u_texturePitchAlignment #define __pyx_n_s_texturePitchAlignment_2 __pyx_mstate_global->__pyx_n_s_texturePitchAlignment_2 #define __pyx_kp_u_texturePitchAlignment_ValueError __pyx_mstate_global->__pyx_kp_u_texturePitchAlignment_ValueError #define __pyx_n_s_throw __pyx_mstate_global->__pyx_n_s_throw #define __pyx_kp_u_tileExtent __pyx_mstate_global->__pyx_kp_u_tileExtent #define __pyx_n_s_tileExtent_2 __pyx_mstate_global->__pyx_n_s_tileExtent_2 #define __pyx_kp_u_tileExtent_ValueError __pyx_mstate_global->__pyx_kp_u_tileExtent_ValueError #define __pyx_kp_u_timelineSemaphoreInteropSupporte __pyx_mstate_global->__pyx_kp_u_timelineSemaphoreInteropSupporte #define __pyx_n_s_timelineSemaphoreInteropSupporte_2 __pyx_mstate_global->__pyx_n_s_timelineSemaphoreInteropSupporte_2 #define __pyx_kp_u_timelineSemaphoreInteropSupporte_3 __pyx_mstate_global->__pyx_kp_u_timelineSemaphoreInteropSupporte_3 #define __pyx_n_s_timeout __pyx_mstate_global->__pyx_n_s_timeout #define __pyx_kp_u_timeoutMs __pyx_mstate_global->__pyx_kp_u_timeoutMs #define __pyx_n_s_timeoutMs_2 __pyx_mstate_global->__pyx_n_s_timeoutMs_2 #define __pyx_kp_u_timeoutMs_ValueError __pyx_mstate_global->__pyx_kp_u_timeoutMs_ValueError #define __pyx_n_s_to __pyx_mstate_global->__pyx_n_s_to #define __pyx_kp_u_to_port __pyx_mstate_global->__pyx_kp_u_to_port #define __pyx_n_s_to_port_2 __pyx_mstate_global->__pyx_n_s_to_port_2 #define __pyx_kp_u_to_port_ValueError __pyx_mstate_global->__pyx_kp_u_to_port_ValueError #define __pyx_n_s_total __pyx_mstate_global->__pyx_n_s_total #define __pyx_kp_u_totalConstMem __pyx_mstate_global->__pyx_kp_u_totalConstMem #define __pyx_n_s_totalConstMem_2 __pyx_mstate_global->__pyx_n_s_totalConstMem_2 #define __pyx_kp_u_totalConstMem_ValueError __pyx_mstate_global->__pyx_kp_u_totalConstMem_ValueError #define __pyx_kp_u_totalGlobalMem __pyx_mstate_global->__pyx_kp_u_totalGlobalMem #define __pyx_n_s_totalGlobalMem_2 __pyx_mstate_global->__pyx_n_s_totalGlobalMem_2 #define __pyx_kp_u_totalGlobalMem_ValueError __pyx_mstate_global->__pyx_kp_u_totalGlobalMem_ValueError #define __pyx_kp_u_triggerAtBlockStart __pyx_mstate_global->__pyx_kp_u_triggerAtBlockStart #define __pyx_n_s_triggerAtBlockStart_2 __pyx_mstate_global->__pyx_n_s_triggerAtBlockStart_2 #define __pyx_kp_u_triggerAtBlockStart_ValueError __pyx_mstate_global->__pyx_kp_u_triggerAtBlockStart_ValueError #define __pyx_kp_u_type __pyx_mstate_global->__pyx_kp_u_type #define __pyx_n_s_type_2 __pyx_mstate_global->__pyx_n_s_type_2 #define __pyx_kp_u_type_ValueError __pyx_mstate_global->__pyx_kp_u_type_ValueError #define __pyx_n_s_typing __pyx_mstate_global->__pyx_n_s_typing #define __pyx_kp_u_unifiedAddressing __pyx_mstate_global->__pyx_kp_u_unifiedAddressing #define __pyx_n_s_unifiedAddressing_2 __pyx_mstate_global->__pyx_n_s_unifiedAddressing_2 #define __pyx_kp_u_unifiedAddressing_ValueError __pyx_mstate_global->__pyx_kp_u_unifiedAddressing_ValueError #define __pyx_kp_u_unifiedFunctionPointers __pyx_mstate_global->__pyx_kp_u_unifiedFunctionPointers #define __pyx_n_s_unifiedFunctionPointers_2 __pyx_mstate_global->__pyx_n_s_unifiedFunctionPointers_2 #define __pyx_kp_u_unifiedFunctionPointers_ValueErr __pyx_mstate_global->__pyx_kp_u_unifiedFunctionPointers_ValueErr #define __pyx_kp_u_updateData __pyx_mstate_global->__pyx_kp_u_updateData #define __pyx_n_s_updateData_2 __pyx_mstate_global->__pyx_n_s_updateData_2 #define __pyx_kp_u_updateData_ValueError __pyx_mstate_global->__pyx_kp_u_updateData_ValueError #define __pyx_kp_u_uploadStream __pyx_mstate_global->__pyx_kp_u_uploadStream #define __pyx_n_s_uploadStream_2 __pyx_mstate_global->__pyx_n_s_uploadStream_2 #define __pyx_kp_u_uploadStream_ValueError __pyx_mstate_global->__pyx_kp_u_uploadStream_ValueError #define __pyx_kp_u_usage __pyx_mstate_global->__pyx_kp_u_usage #define __pyx_n_s_usage_2 __pyx_mstate_global->__pyx_n_s_usage_2 #define __pyx_kp_u_usage_ValueError __pyx_mstate_global->__pyx_kp_u_usage_ValueError #define __pyx_kp_u_userData __pyx_mstate_global->__pyx_kp_u_userData #define __pyx_n_s_userData_2 __pyx_mstate_global->__pyx_n_s_userData_2 #define __pyx_kp_u_userData_ValueError __pyx_mstate_global->__pyx_kp_u_userData_ValueError #define __pyx_kp_u_utf_8 __pyx_mstate_global->__pyx_kp_u_utf_8 #define __pyx_kp_u_uuid __pyx_mstate_global->__pyx_kp_u_uuid #define __pyx_n_s_uuid_2 __pyx_mstate_global->__pyx_n_s_uuid_2 #define __pyx_kp_u_uuid_ValueError __pyx_mstate_global->__pyx_kp_u_uuid_ValueError #define __pyx_kp_u_val __pyx_mstate_global->__pyx_kp_u_val #define __pyx_n_s_val_2 __pyx_mstate_global->__pyx_n_s_val_2 #define __pyx_kp_u_val_ValueError __pyx_mstate_global->__pyx_kp_u_val_ValueError #define __pyx_n_s_value __pyx_mstate_global->__pyx_n_s_value #define __pyx_kp_u_value_2 __pyx_mstate_global->__pyx_kp_u_value_2 #define __pyx_kp_u_value_ValueError __pyx_mstate_global->__pyx_kp_u_value_ValueError #define __pyx_n_s_value_out __pyx_mstate_global->__pyx_n_s_value_out #define __pyx_n_s_vdpDevice __pyx_mstate_global->__pyx_n_s_vdpDevice #define __pyx_n_s_vdpGetProcAddress __pyx_mstate_global->__pyx_n_s_vdpGetProcAddress #define __pyx_n_s_vdpSurface __pyx_mstate_global->__pyx_n_s_vdpSurface #define __pyx_n_s_voidStarHelperdata __pyx_mstate_global->__pyx_n_s_voidStarHelperdata #define __pyx_kp_u_w __pyx_mstate_global->__pyx_kp_u_w #define __pyx_n_s_wOffset __pyx_mstate_global->__pyx_n_s_wOffset #define __pyx_n_s_wOffsetDst __pyx_mstate_global->__pyx_n_s_wOffsetDst #define __pyx_n_s_wOffsetSrc __pyx_mstate_global->__pyx_n_s_wOffsetSrc #define __pyx_n_s_w_2 __pyx_mstate_global->__pyx_n_s_w_2 #define __pyx_kp_u_w_ValueError __pyx_mstate_global->__pyx_kp_u_w_ValueError #define __pyx_kp_u_warpSize __pyx_mstate_global->__pyx_kp_u_warpSize #define __pyx_n_s_warpSize_2 __pyx_mstate_global->__pyx_n_s_warpSize_2 #define __pyx_kp_u_warpSize_ValueError __pyx_mstate_global->__pyx_kp_u_warpSize_ValueError #define __pyx_kp_u_width __pyx_mstate_global->__pyx_kp_u_width #define __pyx_n_s_width_2 __pyx_mstate_global->__pyx_n_s_width_2 #define __pyx_kp_u_width_ValueError __pyx_mstate_global->__pyx_kp_u_width_ValueError #define __pyx_kp_u_win32 __pyx_mstate_global->__pyx_kp_u_win32 #define __pyx_kp_u_win32SecurityAttributes __pyx_mstate_global->__pyx_kp_u_win32SecurityAttributes #define __pyx_n_s_win32SecurityAttributes_2 __pyx_mstate_global->__pyx_n_s_win32SecurityAttributes_2 #define __pyx_kp_u_win32SecurityAttributes_ValueErr __pyx_mstate_global->__pyx_kp_u_win32SecurityAttributes_ValueErr #define __pyx_n_s_win32_2 __pyx_mstate_global->__pyx_n_s_win32_2 #define __pyx_kp_u_win32_ValueError __pyx_mstate_global->__pyx_kp_u_win32_ValueError #define __pyx_n_s_wrapper __pyx_mstate_global->__pyx_n_s_wrapper #define __pyx_kp_u_x __pyx_mstate_global->__pyx_kp_u_x #define __pyx_n_s_x_2 __pyx_mstate_global->__pyx_n_s_x_2 #define __pyx_n_u_x_2 __pyx_mstate_global->__pyx_n_u_x_2 #define __pyx_kp_u_x_ValueError __pyx_mstate_global->__pyx_kp_u_x_ValueError #define __pyx_kp_u_xsize __pyx_mstate_global->__pyx_kp_u_xsize #define __pyx_n_s_xsize_2 __pyx_mstate_global->__pyx_n_s_xsize_2 #define __pyx_kp_u_xsize_ValueError __pyx_mstate_global->__pyx_kp_u_xsize_ValueError #define __pyx_n_s_xsz __pyx_mstate_global->__pyx_n_s_xsz #define __pyx_kp_u_y __pyx_mstate_global->__pyx_kp_u_y #define __pyx_n_s_y_2 __pyx_mstate_global->__pyx_n_s_y_2 #define __pyx_kp_u_y_ValueError __pyx_mstate_global->__pyx_kp_u_y_ValueError #define __pyx_kp_u_ysize __pyx_mstate_global->__pyx_kp_u_ysize #define __pyx_n_s_ysize_2 __pyx_mstate_global->__pyx_n_s_ysize_2 #define __pyx_kp_u_ysize_ValueError __pyx_mstate_global->__pyx_kp_u_ysize_ValueError #define __pyx_n_s_ysz __pyx_mstate_global->__pyx_n_s_ysz #define __pyx_kp_u_z __pyx_mstate_global->__pyx_kp_u_z #define __pyx_n_s_z_2 __pyx_mstate_global->__pyx_n_s_z_2 #define __pyx_kp_u_z_ValueError __pyx_mstate_global->__pyx_kp_u_z_ValueError #define __pyx_n_s_zip __pyx_mstate_global->__pyx_n_s_zip #define __pyx_int_0 __pyx_mstate_global->__pyx_int_0 #define __pyx_int_1 __pyx_mstate_global->__pyx_int_1 #define __pyx_int_127 __pyx_mstate_global->__pyx_int_127 #define __pyx_int_256 __pyx_mstate_global->__pyx_int_256 #define __pyx_int_neg_129 __pyx_mstate_global->__pyx_int_neg_129 #define __pyx_codeobj__2 __pyx_mstate_global->__pyx_codeobj__2 #define __pyx_codeobj__3 __pyx_mstate_global->__pyx_codeobj__3 #define __pyx_codeobj__4 __pyx_mstate_global->__pyx_codeobj__4 #define __pyx_codeobj__5 __pyx_mstate_global->__pyx_codeobj__5 #define __pyx_codeobj__6 __pyx_mstate_global->__pyx_codeobj__6 #define __pyx_codeobj__7 __pyx_mstate_global->__pyx_codeobj__7 #define __pyx_codeobj__8 __pyx_mstate_global->__pyx_codeobj__8 #define __pyx_codeobj__9 __pyx_mstate_global->__pyx_codeobj__9 #define __pyx_tuple__398 __pyx_mstate_global->__pyx_tuple__398 #define __pyx_tuple__399 __pyx_mstate_global->__pyx_tuple__399 #define __pyx_tuple__422 __pyx_mstate_global->__pyx_tuple__422 #define __pyx_tuple__423 __pyx_mstate_global->__pyx_tuple__423 #define __pyx_tuple__425 __pyx_mstate_global->__pyx_tuple__425 #define __pyx_tuple__487 __pyx_mstate_global->__pyx_tuple__487 #define __pyx_tuple__488 __pyx_mstate_global->__pyx_tuple__488 #define __pyx_tuple__500 __pyx_mstate_global->__pyx_tuple__500 #define __pyx_tuple__534 __pyx_mstate_global->__pyx_tuple__534 #define __pyx_tuple__585 __pyx_mstate_global->__pyx_tuple__585 #define __pyx_tuple__586 __pyx_mstate_global->__pyx_tuple__586 #define __pyx_tuple__588 __pyx_mstate_global->__pyx_tuple__588 #define __pyx_tuple__656 __pyx_mstate_global->__pyx_tuple__656 #define __pyx_tuple__658 __pyx_mstate_global->__pyx_tuple__658 #define __pyx_tuple__659 __pyx_mstate_global->__pyx_tuple__659 #define __pyx_tuple__660 __pyx_mstate_global->__pyx_tuple__660 #define __pyx_tuple__661 __pyx_mstate_global->__pyx_tuple__661 #define __pyx_tuple__662 __pyx_mstate_global->__pyx_tuple__662 #define __pyx_tuple__663 __pyx_mstate_global->__pyx_tuple__663 #define __pyx_tuple__664 __pyx_mstate_global->__pyx_tuple__664 #define __pyx_tuple__665 __pyx_mstate_global->__pyx_tuple__665 #define __pyx_tuple__666 __pyx_mstate_global->__pyx_tuple__666 #define __pyx_tuple__667 __pyx_mstate_global->__pyx_tuple__667 #define __pyx_tuple__668 __pyx_mstate_global->__pyx_tuple__668 #define __pyx_tuple__669 __pyx_mstate_global->__pyx_tuple__669 #define __pyx_tuple__670 __pyx_mstate_global->__pyx_tuple__670 #define __pyx_tuple__671 __pyx_mstate_global->__pyx_tuple__671 #define __pyx_tuple__672 __pyx_mstate_global->__pyx_tuple__672 #define __pyx_tuple__673 __pyx_mstate_global->__pyx_tuple__673 #define __pyx_tuple__674 __pyx_mstate_global->__pyx_tuple__674 #define __pyx_tuple__675 __pyx_mstate_global->__pyx_tuple__675 #define __pyx_tuple__676 __pyx_mstate_global->__pyx_tuple__676 #define __pyx_tuple__677 __pyx_mstate_global->__pyx_tuple__677 #define __pyx_tuple__678 __pyx_mstate_global->__pyx_tuple__678 #define __pyx_tuple__679 __pyx_mstate_global->__pyx_tuple__679 #define __pyx_tuple__680 __pyx_mstate_global->__pyx_tuple__680 #define __pyx_tuple__681 __pyx_mstate_global->__pyx_tuple__681 #define __pyx_tuple__682 __pyx_mstate_global->__pyx_tuple__682 #define __pyx_tuple__683 __pyx_mstate_global->__pyx_tuple__683 #define __pyx_tuple__684 __pyx_mstate_global->__pyx_tuple__684 #define __pyx_tuple__685 __pyx_mstate_global->__pyx_tuple__685 #define __pyx_tuple__686 __pyx_mstate_global->__pyx_tuple__686 #define __pyx_tuple__687 __pyx_mstate_global->__pyx_tuple__687 #define __pyx_tuple__688 __pyx_mstate_global->__pyx_tuple__688 #define __pyx_tuple__689 __pyx_mstate_global->__pyx_tuple__689 #define __pyx_tuple__690 __pyx_mstate_global->__pyx_tuple__690 #define __pyx_tuple__691 __pyx_mstate_global->__pyx_tuple__691 #define __pyx_tuple__692 __pyx_mstate_global->__pyx_tuple__692 #define __pyx_tuple__693 __pyx_mstate_global->__pyx_tuple__693 #define __pyx_tuple__694 __pyx_mstate_global->__pyx_tuple__694 #define __pyx_tuple__695 __pyx_mstate_global->__pyx_tuple__695 #define __pyx_tuple__696 __pyx_mstate_global->__pyx_tuple__696 #define __pyx_tuple__697 __pyx_mstate_global->__pyx_tuple__697 #define __pyx_tuple__698 __pyx_mstate_global->__pyx_tuple__698 #define __pyx_tuple__699 __pyx_mstate_global->__pyx_tuple__699 #define __pyx_tuple__700 __pyx_mstate_global->__pyx_tuple__700 #define __pyx_tuple__701 __pyx_mstate_global->__pyx_tuple__701 #define __pyx_tuple__702 __pyx_mstate_global->__pyx_tuple__702 #define __pyx_tuple__703 __pyx_mstate_global->__pyx_tuple__703 #define __pyx_tuple__704 __pyx_mstate_global->__pyx_tuple__704 #define __pyx_tuple__705 __pyx_mstate_global->__pyx_tuple__705 #define __pyx_tuple__706 __pyx_mstate_global->__pyx_tuple__706 #define __pyx_tuple__707 __pyx_mstate_global->__pyx_tuple__707 #define __pyx_tuple__708 __pyx_mstate_global->__pyx_tuple__708 #define __pyx_tuple__709 __pyx_mstate_global->__pyx_tuple__709 #define __pyx_tuple__710 __pyx_mstate_global->__pyx_tuple__710 #define __pyx_tuple__711 __pyx_mstate_global->__pyx_tuple__711 #define __pyx_tuple__712 __pyx_mstate_global->__pyx_tuple__712 #define __pyx_tuple__713 __pyx_mstate_global->__pyx_tuple__713 #define __pyx_tuple__714 __pyx_mstate_global->__pyx_tuple__714 #define __pyx_tuple__715 __pyx_mstate_global->__pyx_tuple__715 #define __pyx_tuple__716 __pyx_mstate_global->__pyx_tuple__716 #define __pyx_tuple__717 __pyx_mstate_global->__pyx_tuple__717 #define __pyx_tuple__718 __pyx_mstate_global->__pyx_tuple__718 #define __pyx_tuple__719 __pyx_mstate_global->__pyx_tuple__719 #define __pyx_tuple__720 __pyx_mstate_global->__pyx_tuple__720 #define __pyx_tuple__721 __pyx_mstate_global->__pyx_tuple__721 #define __pyx_tuple__722 __pyx_mstate_global->__pyx_tuple__722 #define __pyx_tuple__723 __pyx_mstate_global->__pyx_tuple__723 #define __pyx_tuple__724 __pyx_mstate_global->__pyx_tuple__724 #define __pyx_tuple__725 __pyx_mstate_global->__pyx_tuple__725 #define __pyx_tuple__726 __pyx_mstate_global->__pyx_tuple__726 #define __pyx_tuple__727 __pyx_mstate_global->__pyx_tuple__727 #define __pyx_tuple__728 __pyx_mstate_global->__pyx_tuple__728 #define __pyx_tuple__729 __pyx_mstate_global->__pyx_tuple__729 #define __pyx_tuple__730 __pyx_mstate_global->__pyx_tuple__730 #define __pyx_tuple__731 __pyx_mstate_global->__pyx_tuple__731 #define __pyx_tuple__732 __pyx_mstate_global->__pyx_tuple__732 #define __pyx_tuple__733 __pyx_mstate_global->__pyx_tuple__733 #define __pyx_tuple__734 __pyx_mstate_global->__pyx_tuple__734 #define __pyx_tuple__735 __pyx_mstate_global->__pyx_tuple__735 #define __pyx_tuple__736 __pyx_mstate_global->__pyx_tuple__736 #define __pyx_tuple__737 __pyx_mstate_global->__pyx_tuple__737 #define __pyx_tuple__738 __pyx_mstate_global->__pyx_tuple__738 #define __pyx_tuple__739 __pyx_mstate_global->__pyx_tuple__739 #define __pyx_tuple__740 __pyx_mstate_global->__pyx_tuple__740 #define __pyx_tuple__741 __pyx_mstate_global->__pyx_tuple__741 #define __pyx_tuple__742 __pyx_mstate_global->__pyx_tuple__742 #define __pyx_tuple__743 __pyx_mstate_global->__pyx_tuple__743 #define __pyx_tuple__744 __pyx_mstate_global->__pyx_tuple__744 #define __pyx_tuple__745 __pyx_mstate_global->__pyx_tuple__745 #define __pyx_tuple__746 __pyx_mstate_global->__pyx_tuple__746 #define __pyx_tuple__747 __pyx_mstate_global->__pyx_tuple__747 #define __pyx_tuple__748 __pyx_mstate_global->__pyx_tuple__748 #define __pyx_tuple__749 __pyx_mstate_global->__pyx_tuple__749 #define __pyx_tuple__750 __pyx_mstate_global->__pyx_tuple__750 #define __pyx_tuple__751 __pyx_mstate_global->__pyx_tuple__751 #define __pyx_tuple__752 __pyx_mstate_global->__pyx_tuple__752 #define __pyx_tuple__753 __pyx_mstate_global->__pyx_tuple__753 #define __pyx_tuple__754 __pyx_mstate_global->__pyx_tuple__754 #define __pyx_tuple__755 __pyx_mstate_global->__pyx_tuple__755 #define __pyx_tuple__756 __pyx_mstate_global->__pyx_tuple__756 #define __pyx_tuple__757 __pyx_mstate_global->__pyx_tuple__757 #define __pyx_tuple__758 __pyx_mstate_global->__pyx_tuple__758 #define __pyx_tuple__759 __pyx_mstate_global->__pyx_tuple__759 #define __pyx_tuple__760 __pyx_mstate_global->__pyx_tuple__760 #define __pyx_tuple__761 __pyx_mstate_global->__pyx_tuple__761 #define __pyx_tuple__762 __pyx_mstate_global->__pyx_tuple__762 #define __pyx_tuple__763 __pyx_mstate_global->__pyx_tuple__763 #define __pyx_tuple__764 __pyx_mstate_global->__pyx_tuple__764 #define __pyx_tuple__765 __pyx_mstate_global->__pyx_tuple__765 #define __pyx_tuple__766 __pyx_mstate_global->__pyx_tuple__766 #define __pyx_tuple__767 __pyx_mstate_global->__pyx_tuple__767 #define __pyx_tuple__768 __pyx_mstate_global->__pyx_tuple__768 #define __pyx_tuple__769 __pyx_mstate_global->__pyx_tuple__769 #define __pyx_tuple__770 __pyx_mstate_global->__pyx_tuple__770 #define __pyx_tuple__771 __pyx_mstate_global->__pyx_tuple__771 #define __pyx_tuple__772 __pyx_mstate_global->__pyx_tuple__772 #define __pyx_tuple__773 __pyx_mstate_global->__pyx_tuple__773 #define __pyx_tuple__774 __pyx_mstate_global->__pyx_tuple__774 #define __pyx_tuple__775 __pyx_mstate_global->__pyx_tuple__775 #define __pyx_tuple__776 __pyx_mstate_global->__pyx_tuple__776 #define __pyx_tuple__777 __pyx_mstate_global->__pyx_tuple__777 #define __pyx_tuple__778 __pyx_mstate_global->__pyx_tuple__778 #define __pyx_tuple__779 __pyx_mstate_global->__pyx_tuple__779 #define __pyx_tuple__780 __pyx_mstate_global->__pyx_tuple__780 #define __pyx_tuple__781 __pyx_mstate_global->__pyx_tuple__781 #define __pyx_tuple__782 __pyx_mstate_global->__pyx_tuple__782 #define __pyx_tuple__783 __pyx_mstate_global->__pyx_tuple__783 #define __pyx_tuple__784 __pyx_mstate_global->__pyx_tuple__784 #define __pyx_tuple__785 __pyx_mstate_global->__pyx_tuple__785 #define __pyx_tuple__786 __pyx_mstate_global->__pyx_tuple__786 #define __pyx_tuple__787 __pyx_mstate_global->__pyx_tuple__787 #define __pyx_tuple__788 __pyx_mstate_global->__pyx_tuple__788 #define __pyx_tuple__789 __pyx_mstate_global->__pyx_tuple__789 #define __pyx_tuple__790 __pyx_mstate_global->__pyx_tuple__790 #define __pyx_tuple__791 __pyx_mstate_global->__pyx_tuple__791 #define __pyx_tuple__792 __pyx_mstate_global->__pyx_tuple__792 #define __pyx_tuple__793 __pyx_mstate_global->__pyx_tuple__793 #define __pyx_tuple__794 __pyx_mstate_global->__pyx_tuple__794 #define __pyx_tuple__795 __pyx_mstate_global->__pyx_tuple__795 #define __pyx_tuple__796 __pyx_mstate_global->__pyx_tuple__796 #define __pyx_tuple__797 __pyx_mstate_global->__pyx_tuple__797 #define __pyx_tuple__798 __pyx_mstate_global->__pyx_tuple__798 #define __pyx_tuple__799 __pyx_mstate_global->__pyx_tuple__799 #define __pyx_tuple__800 __pyx_mstate_global->__pyx_tuple__800 #define __pyx_tuple__801 __pyx_mstate_global->__pyx_tuple__801 #define __pyx_tuple__802 __pyx_mstate_global->__pyx_tuple__802 #define __pyx_tuple__803 __pyx_mstate_global->__pyx_tuple__803 #define __pyx_tuple__804 __pyx_mstate_global->__pyx_tuple__804 #define __pyx_tuple__805 __pyx_mstate_global->__pyx_tuple__805 #define __pyx_tuple__806 __pyx_mstate_global->__pyx_tuple__806 #define __pyx_tuple__807 __pyx_mstate_global->__pyx_tuple__807 #define __pyx_tuple__808 __pyx_mstate_global->__pyx_tuple__808 #define __pyx_tuple__809 __pyx_mstate_global->__pyx_tuple__809 #define __pyx_tuple__810 __pyx_mstate_global->__pyx_tuple__810 #define __pyx_tuple__811 __pyx_mstate_global->__pyx_tuple__811 #define __pyx_tuple__812 __pyx_mstate_global->__pyx_tuple__812 #define __pyx_tuple__813 __pyx_mstate_global->__pyx_tuple__813 #define __pyx_tuple__814 __pyx_mstate_global->__pyx_tuple__814 #define __pyx_tuple__815 __pyx_mstate_global->__pyx_tuple__815 #define __pyx_tuple__816 __pyx_mstate_global->__pyx_tuple__816 #define __pyx_tuple__817 __pyx_mstate_global->__pyx_tuple__817 #define __pyx_tuple__818 __pyx_mstate_global->__pyx_tuple__818 #define __pyx_tuple__819 __pyx_mstate_global->__pyx_tuple__819 #define __pyx_tuple__820 __pyx_mstate_global->__pyx_tuple__820 #define __pyx_tuple__821 __pyx_mstate_global->__pyx_tuple__821 #define __pyx_tuple__822 __pyx_mstate_global->__pyx_tuple__822 #define __pyx_tuple__823 __pyx_mstate_global->__pyx_tuple__823 #define __pyx_tuple__824 __pyx_mstate_global->__pyx_tuple__824 #define __pyx_tuple__825 __pyx_mstate_global->__pyx_tuple__825 #define __pyx_tuple__826 __pyx_mstate_global->__pyx_tuple__826 #define __pyx_tuple__827 __pyx_mstate_global->__pyx_tuple__827 #define __pyx_tuple__828 __pyx_mstate_global->__pyx_tuple__828 #define __pyx_tuple__829 __pyx_mstate_global->__pyx_tuple__829 #define __pyx_tuple__830 __pyx_mstate_global->__pyx_tuple__830 #define __pyx_tuple__831 __pyx_mstate_global->__pyx_tuple__831 #define __pyx_tuple__832 __pyx_mstate_global->__pyx_tuple__832 #define __pyx_tuple__833 __pyx_mstate_global->__pyx_tuple__833 #define __pyx_tuple__834 __pyx_mstate_global->__pyx_tuple__834 #define __pyx_tuple__835 __pyx_mstate_global->__pyx_tuple__835 #define __pyx_tuple__836 __pyx_mstate_global->__pyx_tuple__836 #define __pyx_tuple__837 __pyx_mstate_global->__pyx_tuple__837 #define __pyx_tuple__838 __pyx_mstate_global->__pyx_tuple__838 #define __pyx_tuple__839 __pyx_mstate_global->__pyx_tuple__839 #define __pyx_tuple__840 __pyx_mstate_global->__pyx_tuple__840 #define __pyx_tuple__841 __pyx_mstate_global->__pyx_tuple__841 #define __pyx_tuple__842 __pyx_mstate_global->__pyx_tuple__842 #define __pyx_tuple__843 __pyx_mstate_global->__pyx_tuple__843 #define __pyx_tuple__844 __pyx_mstate_global->__pyx_tuple__844 #define __pyx_tuple__845 __pyx_mstate_global->__pyx_tuple__845 #define __pyx_tuple__846 __pyx_mstate_global->__pyx_tuple__846 #define __pyx_tuple__847 __pyx_mstate_global->__pyx_tuple__847 #define __pyx_tuple__848 __pyx_mstate_global->__pyx_tuple__848 #define __pyx_tuple__849 __pyx_mstate_global->__pyx_tuple__849 #define __pyx_tuple__850 __pyx_mstate_global->__pyx_tuple__850 #define __pyx_tuple__851 __pyx_mstate_global->__pyx_tuple__851 #define __pyx_tuple__852 __pyx_mstate_global->__pyx_tuple__852 #define __pyx_tuple__853 __pyx_mstate_global->__pyx_tuple__853 #define __pyx_tuple__854 __pyx_mstate_global->__pyx_tuple__854 #define __pyx_tuple__855 __pyx_mstate_global->__pyx_tuple__855 #define __pyx_tuple__856 __pyx_mstate_global->__pyx_tuple__856 #define __pyx_tuple__857 __pyx_mstate_global->__pyx_tuple__857 #define __pyx_tuple__858 __pyx_mstate_global->__pyx_tuple__858 #define __pyx_tuple__859 __pyx_mstate_global->__pyx_tuple__859 #define __pyx_tuple__860 __pyx_mstate_global->__pyx_tuple__860 #define __pyx_tuple__861 __pyx_mstate_global->__pyx_tuple__861 #define __pyx_tuple__862 __pyx_mstate_global->__pyx_tuple__862 #define __pyx_tuple__863 __pyx_mstate_global->__pyx_tuple__863 #define __pyx_tuple__864 __pyx_mstate_global->__pyx_tuple__864 #define __pyx_tuple__865 __pyx_mstate_global->__pyx_tuple__865 #define __pyx_tuple__866 __pyx_mstate_global->__pyx_tuple__866 #define __pyx_tuple__867 __pyx_mstate_global->__pyx_tuple__867 #define __pyx_tuple__868 __pyx_mstate_global->__pyx_tuple__868 #define __pyx_tuple__869 __pyx_mstate_global->__pyx_tuple__869 #define __pyx_tuple__870 __pyx_mstate_global->__pyx_tuple__870 #define __pyx_tuple__871 __pyx_mstate_global->__pyx_tuple__871 #define __pyx_tuple__872 __pyx_mstate_global->__pyx_tuple__872 #define __pyx_tuple__873 __pyx_mstate_global->__pyx_tuple__873 #define __pyx_tuple__874 __pyx_mstate_global->__pyx_tuple__874 #define __pyx_tuple__875 __pyx_mstate_global->__pyx_tuple__875 #define __pyx_tuple__876 __pyx_mstate_global->__pyx_tuple__876 #define __pyx_tuple__877 __pyx_mstate_global->__pyx_tuple__877 #define __pyx_tuple__878 __pyx_mstate_global->__pyx_tuple__878 #define __pyx_tuple__879 __pyx_mstate_global->__pyx_tuple__879 #define __pyx_tuple__880 __pyx_mstate_global->__pyx_tuple__880 #define __pyx_tuple__881 __pyx_mstate_global->__pyx_tuple__881 #define __pyx_tuple__882 __pyx_mstate_global->__pyx_tuple__882 #define __pyx_tuple__883 __pyx_mstate_global->__pyx_tuple__883 #define __pyx_tuple__884 __pyx_mstate_global->__pyx_tuple__884 #define __pyx_tuple__885 __pyx_mstate_global->__pyx_tuple__885 #define __pyx_tuple__886 __pyx_mstate_global->__pyx_tuple__886 #define __pyx_tuple__887 __pyx_mstate_global->__pyx_tuple__887 #define __pyx_tuple__888 __pyx_mstate_global->__pyx_tuple__888 #define __pyx_tuple__889 __pyx_mstate_global->__pyx_tuple__889 #define __pyx_tuple__890 __pyx_mstate_global->__pyx_tuple__890 #define __pyx_tuple__891 __pyx_mstate_global->__pyx_tuple__891 #define __pyx_tuple__892 __pyx_mstate_global->__pyx_tuple__892 #define __pyx_tuple__893 __pyx_mstate_global->__pyx_tuple__893 #define __pyx_tuple__894 __pyx_mstate_global->__pyx_tuple__894 #define __pyx_tuple__895 __pyx_mstate_global->__pyx_tuple__895 #define __pyx_tuple__896 __pyx_mstate_global->__pyx_tuple__896 #define __pyx_tuple__897 __pyx_mstate_global->__pyx_tuple__897 #define __pyx_tuple__898 __pyx_mstate_global->__pyx_tuple__898 #define __pyx_tuple__899 __pyx_mstate_global->__pyx_tuple__899 #define __pyx_tuple__900 __pyx_mstate_global->__pyx_tuple__900 #define __pyx_tuple__901 __pyx_mstate_global->__pyx_tuple__901 #define __pyx_tuple__902 __pyx_mstate_global->__pyx_tuple__902 #define __pyx_tuple__903 __pyx_mstate_global->__pyx_tuple__903 #define __pyx_tuple__904 __pyx_mstate_global->__pyx_tuple__904 #define __pyx_tuple__905 __pyx_mstate_global->__pyx_tuple__905 #define __pyx_tuple__906 __pyx_mstate_global->__pyx_tuple__906 #define __pyx_tuple__907 __pyx_mstate_global->__pyx_tuple__907 #define __pyx_tuple__908 __pyx_mstate_global->__pyx_tuple__908 #define __pyx_tuple__909 __pyx_mstate_global->__pyx_tuple__909 #define __pyx_codeobj__10 __pyx_mstate_global->__pyx_codeobj__10 #define __pyx_codeobj__11 __pyx_mstate_global->__pyx_codeobj__11 #define __pyx_codeobj__12 __pyx_mstate_global->__pyx_codeobj__12 #define __pyx_codeobj__13 __pyx_mstate_global->__pyx_codeobj__13 #define __pyx_codeobj__14 __pyx_mstate_global->__pyx_codeobj__14 #define __pyx_codeobj__15 __pyx_mstate_global->__pyx_codeobj__15 #define __pyx_codeobj__16 __pyx_mstate_global->__pyx_codeobj__16 #define __pyx_codeobj__17 __pyx_mstate_global->__pyx_codeobj__17 #define __pyx_codeobj__18 __pyx_mstate_global->__pyx_codeobj__18 #define __pyx_codeobj__19 __pyx_mstate_global->__pyx_codeobj__19 #define __pyx_codeobj__20 __pyx_mstate_global->__pyx_codeobj__20 #define __pyx_codeobj__21 __pyx_mstate_global->__pyx_codeobj__21 #define __pyx_codeobj__22 __pyx_mstate_global->__pyx_codeobj__22 #define __pyx_codeobj__23 __pyx_mstate_global->__pyx_codeobj__23 #define __pyx_codeobj__24 __pyx_mstate_global->__pyx_codeobj__24 #define __pyx_codeobj__25 __pyx_mstate_global->__pyx_codeobj__25 #define __pyx_codeobj__26 __pyx_mstate_global->__pyx_codeobj__26 #define __pyx_codeobj__27 __pyx_mstate_global->__pyx_codeobj__27 #define __pyx_codeobj__28 __pyx_mstate_global->__pyx_codeobj__28 #define __pyx_codeobj__29 __pyx_mstate_global->__pyx_codeobj__29 #define __pyx_codeobj__30 __pyx_mstate_global->__pyx_codeobj__30 #define __pyx_codeobj__31 __pyx_mstate_global->__pyx_codeobj__31 #define __pyx_codeobj__32 __pyx_mstate_global->__pyx_codeobj__32 #define __pyx_codeobj__33 __pyx_mstate_global->__pyx_codeobj__33 #define __pyx_codeobj__34 __pyx_mstate_global->__pyx_codeobj__34 #define __pyx_codeobj__35 __pyx_mstate_global->__pyx_codeobj__35 #define __pyx_codeobj__36 __pyx_mstate_global->__pyx_codeobj__36 #define __pyx_codeobj__37 __pyx_mstate_global->__pyx_codeobj__37 #define __pyx_codeobj__38 __pyx_mstate_global->__pyx_codeobj__38 #define __pyx_codeobj__39 __pyx_mstate_global->__pyx_codeobj__39 #define __pyx_codeobj__40 __pyx_mstate_global->__pyx_codeobj__40 #define __pyx_codeobj__41 __pyx_mstate_global->__pyx_codeobj__41 #define __pyx_codeobj__42 __pyx_mstate_global->__pyx_codeobj__42 #define __pyx_codeobj__43 __pyx_mstate_global->__pyx_codeobj__43 #define __pyx_codeobj__44 __pyx_mstate_global->__pyx_codeobj__44 #define __pyx_codeobj__45 __pyx_mstate_global->__pyx_codeobj__45 #define __pyx_codeobj__46 __pyx_mstate_global->__pyx_codeobj__46 #define __pyx_codeobj__47 __pyx_mstate_global->__pyx_codeobj__47 #define __pyx_codeobj__48 __pyx_mstate_global->__pyx_codeobj__48 #define __pyx_codeobj__49 __pyx_mstate_global->__pyx_codeobj__49 #define __pyx_codeobj__50 __pyx_mstate_global->__pyx_codeobj__50 #define __pyx_codeobj__53 __pyx_mstate_global->__pyx_codeobj__53 #define __pyx_codeobj__54 __pyx_mstate_global->__pyx_codeobj__54 #define __pyx_codeobj__55 __pyx_mstate_global->__pyx_codeobj__55 #define __pyx_codeobj__56 __pyx_mstate_global->__pyx_codeobj__56 #define __pyx_codeobj__57 __pyx_mstate_global->__pyx_codeobj__57 #define __pyx_codeobj__58 __pyx_mstate_global->__pyx_codeobj__58 #define __pyx_codeobj__59 __pyx_mstate_global->__pyx_codeobj__59 #define __pyx_codeobj__60 __pyx_mstate_global->__pyx_codeobj__60 #define __pyx_codeobj__61 __pyx_mstate_global->__pyx_codeobj__61 #define __pyx_codeobj__63 __pyx_mstate_global->__pyx_codeobj__63 #define __pyx_codeobj__64 __pyx_mstate_global->__pyx_codeobj__64 #define __pyx_codeobj__65 __pyx_mstate_global->__pyx_codeobj__65 #define __pyx_codeobj__66 __pyx_mstate_global->__pyx_codeobj__66 #define __pyx_codeobj__67 __pyx_mstate_global->__pyx_codeobj__67 #define __pyx_codeobj__68 __pyx_mstate_global->__pyx_codeobj__68 #define __pyx_codeobj__69 __pyx_mstate_global->__pyx_codeobj__69 #define __pyx_codeobj__70 __pyx_mstate_global->__pyx_codeobj__70 #define __pyx_codeobj__71 __pyx_mstate_global->__pyx_codeobj__71 #define __pyx_codeobj__72 __pyx_mstate_global->__pyx_codeobj__72 #define __pyx_codeobj__73 __pyx_mstate_global->__pyx_codeobj__73 #define __pyx_codeobj__74 __pyx_mstate_global->__pyx_codeobj__74 #define __pyx_codeobj__75 __pyx_mstate_global->__pyx_codeobj__75 #define __pyx_codeobj__76 __pyx_mstate_global->__pyx_codeobj__76 #define __pyx_codeobj__77 __pyx_mstate_global->__pyx_codeobj__77 #define __pyx_codeobj__78 __pyx_mstate_global->__pyx_codeobj__78 #define __pyx_codeobj__79 __pyx_mstate_global->__pyx_codeobj__79 #define __pyx_codeobj__80 __pyx_mstate_global->__pyx_codeobj__80 #define __pyx_codeobj__81 __pyx_mstate_global->__pyx_codeobj__81 #define __pyx_codeobj__82 __pyx_mstate_global->__pyx_codeobj__82 #define __pyx_codeobj__83 __pyx_mstate_global->__pyx_codeobj__83 #define __pyx_codeobj__84 __pyx_mstate_global->__pyx_codeobj__84 #define __pyx_codeobj__85 __pyx_mstate_global->__pyx_codeobj__85 #define __pyx_codeobj__86 __pyx_mstate_global->__pyx_codeobj__86 #define __pyx_codeobj__87 __pyx_mstate_global->__pyx_codeobj__87 #define __pyx_codeobj__88 __pyx_mstate_global->__pyx_codeobj__88 #define __pyx_codeobj__89 __pyx_mstate_global->__pyx_codeobj__89 #define __pyx_codeobj__90 __pyx_mstate_global->__pyx_codeobj__90 #define __pyx_codeobj__91 __pyx_mstate_global->__pyx_codeobj__91 #define __pyx_codeobj__92 __pyx_mstate_global->__pyx_codeobj__92 #define __pyx_codeobj__93 __pyx_mstate_global->__pyx_codeobj__93 #define __pyx_codeobj__94 __pyx_mstate_global->__pyx_codeobj__94 #define __pyx_codeobj__95 __pyx_mstate_global->__pyx_codeobj__95 #define __pyx_codeobj__96 __pyx_mstate_global->__pyx_codeobj__96 #define __pyx_codeobj__97 __pyx_mstate_global->__pyx_codeobj__97 #define __pyx_codeobj__98 __pyx_mstate_global->__pyx_codeobj__98 #define __pyx_codeobj__99 __pyx_mstate_global->__pyx_codeobj__99 #define __pyx_codeobj__100 __pyx_mstate_global->__pyx_codeobj__100 #define __pyx_codeobj__101 __pyx_mstate_global->__pyx_codeobj__101 #define __pyx_codeobj__102 __pyx_mstate_global->__pyx_codeobj__102 #define __pyx_codeobj__103 __pyx_mstate_global->__pyx_codeobj__103 #define __pyx_codeobj__104 __pyx_mstate_global->__pyx_codeobj__104 #define __pyx_codeobj__105 __pyx_mstate_global->__pyx_codeobj__105 #define __pyx_codeobj__106 __pyx_mstate_global->__pyx_codeobj__106 #define __pyx_codeobj__107 __pyx_mstate_global->__pyx_codeobj__107 #define __pyx_codeobj__108 __pyx_mstate_global->__pyx_codeobj__108 #define __pyx_codeobj__109 __pyx_mstate_global->__pyx_codeobj__109 #define __pyx_codeobj__110 __pyx_mstate_global->__pyx_codeobj__110 #define __pyx_codeobj__111 __pyx_mstate_global->__pyx_codeobj__111 #define __pyx_codeobj__112 __pyx_mstate_global->__pyx_codeobj__112 #define __pyx_codeobj__113 __pyx_mstate_global->__pyx_codeobj__113 #define __pyx_codeobj__114 __pyx_mstate_global->__pyx_codeobj__114 #define __pyx_codeobj__115 __pyx_mstate_global->__pyx_codeobj__115 #define __pyx_codeobj__116 __pyx_mstate_global->__pyx_codeobj__116 #define __pyx_codeobj__117 __pyx_mstate_global->__pyx_codeobj__117 #define __pyx_codeobj__118 __pyx_mstate_global->__pyx_codeobj__118 #define __pyx_codeobj__119 __pyx_mstate_global->__pyx_codeobj__119 #define __pyx_codeobj__120 __pyx_mstate_global->__pyx_codeobj__120 #define __pyx_codeobj__121 __pyx_mstate_global->__pyx_codeobj__121 #define __pyx_codeobj__122 __pyx_mstate_global->__pyx_codeobj__122 #define __pyx_codeobj__123 __pyx_mstate_global->__pyx_codeobj__123 #define __pyx_codeobj__124 __pyx_mstate_global->__pyx_codeobj__124 #define __pyx_codeobj__125 __pyx_mstate_global->__pyx_codeobj__125 #define __pyx_codeobj__126 __pyx_mstate_global->__pyx_codeobj__126 #define __pyx_codeobj__127 __pyx_mstate_global->__pyx_codeobj__127 #define __pyx_codeobj__128 __pyx_mstate_global->__pyx_codeobj__128 #define __pyx_codeobj__129 __pyx_mstate_global->__pyx_codeobj__129 #define __pyx_codeobj__130 __pyx_mstate_global->__pyx_codeobj__130 #define __pyx_codeobj__131 __pyx_mstate_global->__pyx_codeobj__131 #define __pyx_codeobj__132 __pyx_mstate_global->__pyx_codeobj__132 #define __pyx_codeobj__133 __pyx_mstate_global->__pyx_codeobj__133 #define __pyx_codeobj__134 __pyx_mstate_global->__pyx_codeobj__134 #define __pyx_codeobj__135 __pyx_mstate_global->__pyx_codeobj__135 #define __pyx_codeobj__136 __pyx_mstate_global->__pyx_codeobj__136 #define __pyx_codeobj__137 __pyx_mstate_global->__pyx_codeobj__137 #define __pyx_codeobj__138 __pyx_mstate_global->__pyx_codeobj__138 #define __pyx_codeobj__139 __pyx_mstate_global->__pyx_codeobj__139 #define __pyx_codeobj__140 __pyx_mstate_global->__pyx_codeobj__140 #define __pyx_codeobj__141 __pyx_mstate_global->__pyx_codeobj__141 #define __pyx_codeobj__142 __pyx_mstate_global->__pyx_codeobj__142 #define __pyx_codeobj__143 __pyx_mstate_global->__pyx_codeobj__143 #define __pyx_codeobj__144 __pyx_mstate_global->__pyx_codeobj__144 #define __pyx_codeobj__145 __pyx_mstate_global->__pyx_codeobj__145 #define __pyx_codeobj__146 __pyx_mstate_global->__pyx_codeobj__146 #define __pyx_codeobj__147 __pyx_mstate_global->__pyx_codeobj__147 #define __pyx_codeobj__148 __pyx_mstate_global->__pyx_codeobj__148 #define __pyx_codeobj__149 __pyx_mstate_global->__pyx_codeobj__149 #define __pyx_codeobj__150 __pyx_mstate_global->__pyx_codeobj__150 #define __pyx_codeobj__151 __pyx_mstate_global->__pyx_codeobj__151 #define __pyx_codeobj__152 __pyx_mstate_global->__pyx_codeobj__152 #define __pyx_codeobj__153 __pyx_mstate_global->__pyx_codeobj__153 #define __pyx_codeobj__154 __pyx_mstate_global->__pyx_codeobj__154 #define __pyx_codeobj__155 __pyx_mstate_global->__pyx_codeobj__155 #define __pyx_codeobj__156 __pyx_mstate_global->__pyx_codeobj__156 #define __pyx_codeobj__157 __pyx_mstate_global->__pyx_codeobj__157 #define __pyx_codeobj__158 __pyx_mstate_global->__pyx_codeobj__158 #define __pyx_codeobj__159 __pyx_mstate_global->__pyx_codeobj__159 #define __pyx_codeobj__160 __pyx_mstate_global->__pyx_codeobj__160 #define __pyx_codeobj__161 __pyx_mstate_global->__pyx_codeobj__161 #define __pyx_codeobj__162 __pyx_mstate_global->__pyx_codeobj__162 #define __pyx_codeobj__163 __pyx_mstate_global->__pyx_codeobj__163 #define __pyx_codeobj__164 __pyx_mstate_global->__pyx_codeobj__164 #define __pyx_codeobj__165 __pyx_mstate_global->__pyx_codeobj__165 #define __pyx_codeobj__166 __pyx_mstate_global->__pyx_codeobj__166 #define __pyx_codeobj__167 __pyx_mstate_global->__pyx_codeobj__167 #define __pyx_codeobj__168 __pyx_mstate_global->__pyx_codeobj__168 #define __pyx_codeobj__169 __pyx_mstate_global->__pyx_codeobj__169 #define __pyx_codeobj__170 __pyx_mstate_global->__pyx_codeobj__170 #define __pyx_codeobj__171 __pyx_mstate_global->__pyx_codeobj__171 #define __pyx_codeobj__172 __pyx_mstate_global->__pyx_codeobj__172 #define __pyx_codeobj__173 __pyx_mstate_global->__pyx_codeobj__173 #define __pyx_codeobj__174 __pyx_mstate_global->__pyx_codeobj__174 #define __pyx_codeobj__175 __pyx_mstate_global->__pyx_codeobj__175 #define __pyx_codeobj__176 __pyx_mstate_global->__pyx_codeobj__176 #define __pyx_codeobj__177 __pyx_mstate_global->__pyx_codeobj__177 #define __pyx_codeobj__178 __pyx_mstate_global->__pyx_codeobj__178 #define __pyx_codeobj__179 __pyx_mstate_global->__pyx_codeobj__179 #define __pyx_codeobj__180 __pyx_mstate_global->__pyx_codeobj__180 #define __pyx_codeobj__181 __pyx_mstate_global->__pyx_codeobj__181 #define __pyx_codeobj__182 __pyx_mstate_global->__pyx_codeobj__182 #define __pyx_codeobj__183 __pyx_mstate_global->__pyx_codeobj__183 #define __pyx_codeobj__184 __pyx_mstate_global->__pyx_codeobj__184 #define __pyx_codeobj__185 __pyx_mstate_global->__pyx_codeobj__185 #define __pyx_codeobj__186 __pyx_mstate_global->__pyx_codeobj__186 #define __pyx_codeobj__187 __pyx_mstate_global->__pyx_codeobj__187 #define __pyx_codeobj__188 __pyx_mstate_global->__pyx_codeobj__188 #define __pyx_codeobj__189 __pyx_mstate_global->__pyx_codeobj__189 #define __pyx_codeobj__190 __pyx_mstate_global->__pyx_codeobj__190 #define __pyx_codeobj__191 __pyx_mstate_global->__pyx_codeobj__191 #define __pyx_codeobj__192 __pyx_mstate_global->__pyx_codeobj__192 #define __pyx_codeobj__193 __pyx_mstate_global->__pyx_codeobj__193 #define __pyx_codeobj__194 __pyx_mstate_global->__pyx_codeobj__194 #define __pyx_codeobj__195 __pyx_mstate_global->__pyx_codeobj__195 #define __pyx_codeobj__196 __pyx_mstate_global->__pyx_codeobj__196 #define __pyx_codeobj__197 __pyx_mstate_global->__pyx_codeobj__197 #define __pyx_codeobj__198 __pyx_mstate_global->__pyx_codeobj__198 #define __pyx_codeobj__199 __pyx_mstate_global->__pyx_codeobj__199 #define __pyx_codeobj__200 __pyx_mstate_global->__pyx_codeobj__200 #define __pyx_codeobj__201 __pyx_mstate_global->__pyx_codeobj__201 #define __pyx_codeobj__202 __pyx_mstate_global->__pyx_codeobj__202 #define __pyx_codeobj__203 __pyx_mstate_global->__pyx_codeobj__203 #define __pyx_codeobj__204 __pyx_mstate_global->__pyx_codeobj__204 #define __pyx_codeobj__205 __pyx_mstate_global->__pyx_codeobj__205 #define __pyx_codeobj__206 __pyx_mstate_global->__pyx_codeobj__206 #define __pyx_codeobj__207 __pyx_mstate_global->__pyx_codeobj__207 #define __pyx_codeobj__208 __pyx_mstate_global->__pyx_codeobj__208 #define __pyx_codeobj__209 __pyx_mstate_global->__pyx_codeobj__209 #define __pyx_codeobj__210 __pyx_mstate_global->__pyx_codeobj__210 #define __pyx_codeobj__211 __pyx_mstate_global->__pyx_codeobj__211 #define __pyx_codeobj__212 __pyx_mstate_global->__pyx_codeobj__212 #define __pyx_codeobj__213 __pyx_mstate_global->__pyx_codeobj__213 #define __pyx_codeobj__214 __pyx_mstate_global->__pyx_codeobj__214 #define __pyx_codeobj__215 __pyx_mstate_global->__pyx_codeobj__215 #define __pyx_codeobj__216 __pyx_mstate_global->__pyx_codeobj__216 #define __pyx_codeobj__217 __pyx_mstate_global->__pyx_codeobj__217 #define __pyx_codeobj__218 __pyx_mstate_global->__pyx_codeobj__218 #define __pyx_codeobj__219 __pyx_mstate_global->__pyx_codeobj__219 #define __pyx_codeobj__220 __pyx_mstate_global->__pyx_codeobj__220 #define __pyx_codeobj__221 __pyx_mstate_global->__pyx_codeobj__221 #define __pyx_codeobj__222 __pyx_mstate_global->__pyx_codeobj__222 #define __pyx_codeobj__223 __pyx_mstate_global->__pyx_codeobj__223 #define __pyx_codeobj__224 __pyx_mstate_global->__pyx_codeobj__224 #define __pyx_codeobj__225 __pyx_mstate_global->__pyx_codeobj__225 #define __pyx_codeobj__226 __pyx_mstate_global->__pyx_codeobj__226 #define __pyx_codeobj__227 __pyx_mstate_global->__pyx_codeobj__227 #define __pyx_codeobj__228 __pyx_mstate_global->__pyx_codeobj__228 #define __pyx_codeobj__229 __pyx_mstate_global->__pyx_codeobj__229 #define __pyx_codeobj__230 __pyx_mstate_global->__pyx_codeobj__230 #define __pyx_codeobj__231 __pyx_mstate_global->__pyx_codeobj__231 #define __pyx_codeobj__232 __pyx_mstate_global->__pyx_codeobj__232 #define __pyx_codeobj__233 __pyx_mstate_global->__pyx_codeobj__233 #define __pyx_codeobj__234 __pyx_mstate_global->__pyx_codeobj__234 #define __pyx_codeobj__235 __pyx_mstate_global->__pyx_codeobj__235 #define __pyx_codeobj__236 __pyx_mstate_global->__pyx_codeobj__236 #define __pyx_codeobj__237 __pyx_mstate_global->__pyx_codeobj__237 #define __pyx_codeobj__238 __pyx_mstate_global->__pyx_codeobj__238 #define __pyx_codeobj__239 __pyx_mstate_global->__pyx_codeobj__239 #define __pyx_codeobj__240 __pyx_mstate_global->__pyx_codeobj__240 #define __pyx_codeobj__241 __pyx_mstate_global->__pyx_codeobj__241 #define __pyx_codeobj__242 __pyx_mstate_global->__pyx_codeobj__242 #define __pyx_codeobj__243 __pyx_mstate_global->__pyx_codeobj__243 #define __pyx_codeobj__244 __pyx_mstate_global->__pyx_codeobj__244 #define __pyx_codeobj__245 __pyx_mstate_global->__pyx_codeobj__245 #define __pyx_codeobj__246 __pyx_mstate_global->__pyx_codeobj__246 #define __pyx_codeobj__247 __pyx_mstate_global->__pyx_codeobj__247 #define __pyx_codeobj__248 __pyx_mstate_global->__pyx_codeobj__248 #define __pyx_codeobj__249 __pyx_mstate_global->__pyx_codeobj__249 #define __pyx_codeobj__250 __pyx_mstate_global->__pyx_codeobj__250 #define __pyx_codeobj__251 __pyx_mstate_global->__pyx_codeobj__251 #define __pyx_codeobj__252 __pyx_mstate_global->__pyx_codeobj__252 #define __pyx_codeobj__253 __pyx_mstate_global->__pyx_codeobj__253 #define __pyx_codeobj__254 __pyx_mstate_global->__pyx_codeobj__254 #define __pyx_codeobj__255 __pyx_mstate_global->__pyx_codeobj__255 #define __pyx_codeobj__256 __pyx_mstate_global->__pyx_codeobj__256 #define __pyx_codeobj__257 __pyx_mstate_global->__pyx_codeobj__257 #define __pyx_codeobj__258 __pyx_mstate_global->__pyx_codeobj__258 #define __pyx_codeobj__259 __pyx_mstate_global->__pyx_codeobj__259 #define __pyx_codeobj__260 __pyx_mstate_global->__pyx_codeobj__260 #define __pyx_codeobj__261 __pyx_mstate_global->__pyx_codeobj__261 #define __pyx_codeobj__262 __pyx_mstate_global->__pyx_codeobj__262 #define __pyx_codeobj__263 __pyx_mstate_global->__pyx_codeobj__263 #define __pyx_codeobj__264 __pyx_mstate_global->__pyx_codeobj__264 #define __pyx_codeobj__265 __pyx_mstate_global->__pyx_codeobj__265 #define __pyx_codeobj__266 __pyx_mstate_global->__pyx_codeobj__266 #define __pyx_codeobj__267 __pyx_mstate_global->__pyx_codeobj__267 #define __pyx_codeobj__268 __pyx_mstate_global->__pyx_codeobj__268 #define __pyx_codeobj__269 __pyx_mstate_global->__pyx_codeobj__269 #define __pyx_codeobj__270 __pyx_mstate_global->__pyx_codeobj__270 #define __pyx_codeobj__271 __pyx_mstate_global->__pyx_codeobj__271 #define __pyx_codeobj__272 __pyx_mstate_global->__pyx_codeobj__272 #define __pyx_codeobj__273 __pyx_mstate_global->__pyx_codeobj__273 #define __pyx_codeobj__274 __pyx_mstate_global->__pyx_codeobj__274 #define __pyx_codeobj__275 __pyx_mstate_global->__pyx_codeobj__275 #define __pyx_codeobj__276 __pyx_mstate_global->__pyx_codeobj__276 #define __pyx_codeobj__277 __pyx_mstate_global->__pyx_codeobj__277 #define __pyx_codeobj__278 __pyx_mstate_global->__pyx_codeobj__278 #define __pyx_codeobj__279 __pyx_mstate_global->__pyx_codeobj__279 #define __pyx_codeobj__280 __pyx_mstate_global->__pyx_codeobj__280 #define __pyx_codeobj__281 __pyx_mstate_global->__pyx_codeobj__281 #define __pyx_codeobj__282 __pyx_mstate_global->__pyx_codeobj__282 #define __pyx_codeobj__283 __pyx_mstate_global->__pyx_codeobj__283 #define __pyx_codeobj__284 __pyx_mstate_global->__pyx_codeobj__284 #define __pyx_codeobj__285 __pyx_mstate_global->__pyx_codeobj__285 #define __pyx_codeobj__286 __pyx_mstate_global->__pyx_codeobj__286 #define __pyx_codeobj__287 __pyx_mstate_global->__pyx_codeobj__287 #define __pyx_codeobj__288 __pyx_mstate_global->__pyx_codeobj__288 #define __pyx_codeobj__289 __pyx_mstate_global->__pyx_codeobj__289 #define __pyx_codeobj__290 __pyx_mstate_global->__pyx_codeobj__290 #define __pyx_codeobj__291 __pyx_mstate_global->__pyx_codeobj__291 #define __pyx_codeobj__292 __pyx_mstate_global->__pyx_codeobj__292 #define __pyx_codeobj__293 __pyx_mstate_global->__pyx_codeobj__293 #define __pyx_codeobj__294 __pyx_mstate_global->__pyx_codeobj__294 #define __pyx_codeobj__295 __pyx_mstate_global->__pyx_codeobj__295 #define __pyx_codeobj__296 __pyx_mstate_global->__pyx_codeobj__296 #define __pyx_codeobj__297 __pyx_mstate_global->__pyx_codeobj__297 #define __pyx_codeobj__298 __pyx_mstate_global->__pyx_codeobj__298 #define __pyx_codeobj__299 __pyx_mstate_global->__pyx_codeobj__299 #define __pyx_codeobj__300 __pyx_mstate_global->__pyx_codeobj__300 #define __pyx_codeobj__301 __pyx_mstate_global->__pyx_codeobj__301 #define __pyx_codeobj__302 __pyx_mstate_global->__pyx_codeobj__302 #define __pyx_codeobj__303 __pyx_mstate_global->__pyx_codeobj__303 #define __pyx_codeobj__304 __pyx_mstate_global->__pyx_codeobj__304 #define __pyx_codeobj__305 __pyx_mstate_global->__pyx_codeobj__305 #define __pyx_codeobj__306 __pyx_mstate_global->__pyx_codeobj__306 #define __pyx_codeobj__307 __pyx_mstate_global->__pyx_codeobj__307 #define __pyx_codeobj__308 __pyx_mstate_global->__pyx_codeobj__308 #define __pyx_codeobj__309 __pyx_mstate_global->__pyx_codeobj__309 #define __pyx_codeobj__310 __pyx_mstate_global->__pyx_codeobj__310 #define __pyx_codeobj__311 __pyx_mstate_global->__pyx_codeobj__311 #define __pyx_codeobj__312 __pyx_mstate_global->__pyx_codeobj__312 #define __pyx_codeobj__313 __pyx_mstate_global->__pyx_codeobj__313 #define __pyx_codeobj__314 __pyx_mstate_global->__pyx_codeobj__314 #define __pyx_codeobj__315 __pyx_mstate_global->__pyx_codeobj__315 #define __pyx_codeobj__316 __pyx_mstate_global->__pyx_codeobj__316 #define __pyx_codeobj__317 __pyx_mstate_global->__pyx_codeobj__317 #define __pyx_codeobj__318 __pyx_mstate_global->__pyx_codeobj__318 #define __pyx_codeobj__319 __pyx_mstate_global->__pyx_codeobj__319 #define __pyx_codeobj__320 __pyx_mstate_global->__pyx_codeobj__320 #define __pyx_codeobj__321 __pyx_mstate_global->__pyx_codeobj__321 #define __pyx_codeobj__322 __pyx_mstate_global->__pyx_codeobj__322 #define __pyx_codeobj__323 __pyx_mstate_global->__pyx_codeobj__323 #define __pyx_codeobj__324 __pyx_mstate_global->__pyx_codeobj__324 #define __pyx_codeobj__325 __pyx_mstate_global->__pyx_codeobj__325 #define __pyx_codeobj__326 __pyx_mstate_global->__pyx_codeobj__326 #define __pyx_codeobj__327 __pyx_mstate_global->__pyx_codeobj__327 #define __pyx_codeobj__328 __pyx_mstate_global->__pyx_codeobj__328 #define __pyx_codeobj__329 __pyx_mstate_global->__pyx_codeobj__329 #define __pyx_codeobj__330 __pyx_mstate_global->__pyx_codeobj__330 #define __pyx_codeobj__331 __pyx_mstate_global->__pyx_codeobj__331 #define __pyx_codeobj__332 __pyx_mstate_global->__pyx_codeobj__332 #define __pyx_codeobj__333 __pyx_mstate_global->__pyx_codeobj__333 #define __pyx_codeobj__334 __pyx_mstate_global->__pyx_codeobj__334 #define __pyx_codeobj__335 __pyx_mstate_global->__pyx_codeobj__335 #define __pyx_codeobj__336 __pyx_mstate_global->__pyx_codeobj__336 #define __pyx_codeobj__337 __pyx_mstate_global->__pyx_codeobj__337 #define __pyx_codeobj__338 __pyx_mstate_global->__pyx_codeobj__338 #define __pyx_codeobj__339 __pyx_mstate_global->__pyx_codeobj__339 #define __pyx_codeobj__340 __pyx_mstate_global->__pyx_codeobj__340 #define __pyx_codeobj__341 __pyx_mstate_global->__pyx_codeobj__341 #define __pyx_codeobj__342 __pyx_mstate_global->__pyx_codeobj__342 #define __pyx_codeobj__343 __pyx_mstate_global->__pyx_codeobj__343 #define __pyx_codeobj__344 __pyx_mstate_global->__pyx_codeobj__344 #define __pyx_codeobj__345 __pyx_mstate_global->__pyx_codeobj__345 #define __pyx_codeobj__346 __pyx_mstate_global->__pyx_codeobj__346 #define __pyx_codeobj__347 __pyx_mstate_global->__pyx_codeobj__347 #define __pyx_codeobj__348 __pyx_mstate_global->__pyx_codeobj__348 #define __pyx_codeobj__349 __pyx_mstate_global->__pyx_codeobj__349 #define __pyx_codeobj__350 __pyx_mstate_global->__pyx_codeobj__350 #define __pyx_codeobj__352 __pyx_mstate_global->__pyx_codeobj__352 #define __pyx_codeobj__353 __pyx_mstate_global->__pyx_codeobj__353 #define __pyx_codeobj__354 __pyx_mstate_global->__pyx_codeobj__354 #define __pyx_codeobj__355 __pyx_mstate_global->__pyx_codeobj__355 #define __pyx_codeobj__356 __pyx_mstate_global->__pyx_codeobj__356 #define __pyx_codeobj__357 __pyx_mstate_global->__pyx_codeobj__357 #define __pyx_codeobj__358 __pyx_mstate_global->__pyx_codeobj__358 #define __pyx_codeobj__359 __pyx_mstate_global->__pyx_codeobj__359 #define __pyx_codeobj__360 __pyx_mstate_global->__pyx_codeobj__360 #define __pyx_codeobj__361 __pyx_mstate_global->__pyx_codeobj__361 #define __pyx_codeobj__362 __pyx_mstate_global->__pyx_codeobj__362 #define __pyx_codeobj__363 __pyx_mstate_global->__pyx_codeobj__363 #define __pyx_codeobj__364 __pyx_mstate_global->__pyx_codeobj__364 #define __pyx_codeobj__365 __pyx_mstate_global->__pyx_codeobj__365 #define __pyx_codeobj__366 __pyx_mstate_global->__pyx_codeobj__366 #define __pyx_codeobj__367 __pyx_mstate_global->__pyx_codeobj__367 #define __pyx_codeobj__368 __pyx_mstate_global->__pyx_codeobj__368 #define __pyx_codeobj__369 __pyx_mstate_global->__pyx_codeobj__369 #define __pyx_codeobj__370 __pyx_mstate_global->__pyx_codeobj__370 #define __pyx_codeobj__371 __pyx_mstate_global->__pyx_codeobj__371 #define __pyx_codeobj__372 __pyx_mstate_global->__pyx_codeobj__372 #define __pyx_codeobj__373 __pyx_mstate_global->__pyx_codeobj__373 #define __pyx_codeobj__374 __pyx_mstate_global->__pyx_codeobj__374 #define __pyx_codeobj__375 __pyx_mstate_global->__pyx_codeobj__375 #define __pyx_codeobj__376 __pyx_mstate_global->__pyx_codeobj__376 #define __pyx_codeobj__377 __pyx_mstate_global->__pyx_codeobj__377 #define __pyx_codeobj__378 __pyx_mstate_global->__pyx_codeobj__378 #define __pyx_codeobj__379 __pyx_mstate_global->__pyx_codeobj__379 #define __pyx_codeobj__380 __pyx_mstate_global->__pyx_codeobj__380 #define __pyx_codeobj__381 __pyx_mstate_global->__pyx_codeobj__381 #define __pyx_codeobj__382 __pyx_mstate_global->__pyx_codeobj__382 #define __pyx_codeobj__383 __pyx_mstate_global->__pyx_codeobj__383 #define __pyx_codeobj__384 __pyx_mstate_global->__pyx_codeobj__384 #define __pyx_codeobj__385 __pyx_mstate_global->__pyx_codeobj__385 #define __pyx_codeobj__386 __pyx_mstate_global->__pyx_codeobj__386 #define __pyx_codeobj__387 __pyx_mstate_global->__pyx_codeobj__387 #define __pyx_codeobj__388 __pyx_mstate_global->__pyx_codeobj__388 #define __pyx_codeobj__389 __pyx_mstate_global->__pyx_codeobj__389 #define __pyx_codeobj__390 __pyx_mstate_global->__pyx_codeobj__390 #define __pyx_codeobj__391 __pyx_mstate_global->__pyx_codeobj__391 #define __pyx_codeobj__392 __pyx_mstate_global->__pyx_codeobj__392 #define __pyx_codeobj__393 __pyx_mstate_global->__pyx_codeobj__393 #define __pyx_codeobj__394 __pyx_mstate_global->__pyx_codeobj__394 #define __pyx_codeobj__395 __pyx_mstate_global->__pyx_codeobj__395 #define __pyx_codeobj__396 __pyx_mstate_global->__pyx_codeobj__396 #define __pyx_codeobj__397 __pyx_mstate_global->__pyx_codeobj__397 #define __pyx_codeobj__401 __pyx_mstate_global->__pyx_codeobj__401 #define __pyx_codeobj__402 __pyx_mstate_global->__pyx_codeobj__402 #define __pyx_codeobj__403 __pyx_mstate_global->__pyx_codeobj__403 #define __pyx_codeobj__404 __pyx_mstate_global->__pyx_codeobj__404 #define __pyx_codeobj__405 __pyx_mstate_global->__pyx_codeobj__405 #define __pyx_codeobj__406 __pyx_mstate_global->__pyx_codeobj__406 #define __pyx_codeobj__407 __pyx_mstate_global->__pyx_codeobj__407 #define __pyx_codeobj__408 __pyx_mstate_global->__pyx_codeobj__408 #define __pyx_codeobj__409 __pyx_mstate_global->__pyx_codeobj__409 #define __pyx_codeobj__410 __pyx_mstate_global->__pyx_codeobj__410 #define __pyx_codeobj__411 __pyx_mstate_global->__pyx_codeobj__411 #define __pyx_codeobj__412 __pyx_mstate_global->__pyx_codeobj__412 #define __pyx_codeobj__413 __pyx_mstate_global->__pyx_codeobj__413 #define __pyx_codeobj__414 __pyx_mstate_global->__pyx_codeobj__414 #define __pyx_codeobj__415 __pyx_mstate_global->__pyx_codeobj__415 #define __pyx_codeobj__416 __pyx_mstate_global->__pyx_codeobj__416 #define __pyx_codeobj__417 __pyx_mstate_global->__pyx_codeobj__417 #define __pyx_codeobj__418 __pyx_mstate_global->__pyx_codeobj__418 #define __pyx_codeobj__419 __pyx_mstate_global->__pyx_codeobj__419 #define __pyx_codeobj__420 __pyx_mstate_global->__pyx_codeobj__420 #define __pyx_codeobj__421 __pyx_mstate_global->__pyx_codeobj__421 #define __pyx_codeobj__424 __pyx_mstate_global->__pyx_codeobj__424 #define __pyx_codeobj__426 __pyx_mstate_global->__pyx_codeobj__426 #define __pyx_codeobj__427 __pyx_mstate_global->__pyx_codeobj__427 #define __pyx_codeobj__428 __pyx_mstate_global->__pyx_codeobj__428 #define __pyx_codeobj__429 __pyx_mstate_global->__pyx_codeobj__429 #define __pyx_codeobj__430 __pyx_mstate_global->__pyx_codeobj__430 #define __pyx_codeobj__431 __pyx_mstate_global->__pyx_codeobj__431 #define __pyx_codeobj__432 __pyx_mstate_global->__pyx_codeobj__432 #define __pyx_codeobj__433 __pyx_mstate_global->__pyx_codeobj__433 #define __pyx_codeobj__434 __pyx_mstate_global->__pyx_codeobj__434 #define __pyx_codeobj__435 __pyx_mstate_global->__pyx_codeobj__435 #define __pyx_codeobj__436 __pyx_mstate_global->__pyx_codeobj__436 #define __pyx_codeobj__437 __pyx_mstate_global->__pyx_codeobj__437 #define __pyx_codeobj__438 __pyx_mstate_global->__pyx_codeobj__438 #define __pyx_codeobj__439 __pyx_mstate_global->__pyx_codeobj__439 #define __pyx_codeobj__440 __pyx_mstate_global->__pyx_codeobj__440 #define __pyx_codeobj__441 __pyx_mstate_global->__pyx_codeobj__441 #define __pyx_codeobj__442 __pyx_mstate_global->__pyx_codeobj__442 #define __pyx_codeobj__443 __pyx_mstate_global->__pyx_codeobj__443 #define __pyx_codeobj__444 __pyx_mstate_global->__pyx_codeobj__444 #define __pyx_codeobj__445 __pyx_mstate_global->__pyx_codeobj__445 #define __pyx_codeobj__446 __pyx_mstate_global->__pyx_codeobj__446 #define __pyx_codeobj__447 __pyx_mstate_global->__pyx_codeobj__447 #define __pyx_codeobj__448 __pyx_mstate_global->__pyx_codeobj__448 #define __pyx_codeobj__449 __pyx_mstate_global->__pyx_codeobj__449 #define __pyx_codeobj__450 __pyx_mstate_global->__pyx_codeobj__450 #define __pyx_codeobj__451 __pyx_mstate_global->__pyx_codeobj__451 #define __pyx_codeobj__452 __pyx_mstate_global->__pyx_codeobj__452 #define __pyx_codeobj__453 __pyx_mstate_global->__pyx_codeobj__453 #define __pyx_codeobj__454 __pyx_mstate_global->__pyx_codeobj__454 #define __pyx_codeobj__455 __pyx_mstate_global->__pyx_codeobj__455 #define __pyx_codeobj__456 __pyx_mstate_global->__pyx_codeobj__456 #define __pyx_codeobj__457 __pyx_mstate_global->__pyx_codeobj__457 #define __pyx_codeobj__458 __pyx_mstate_global->__pyx_codeobj__458 #define __pyx_codeobj__459 __pyx_mstate_global->__pyx_codeobj__459 #define __pyx_codeobj__460 __pyx_mstate_global->__pyx_codeobj__460 #define __pyx_codeobj__461 __pyx_mstate_global->__pyx_codeobj__461 #define __pyx_codeobj__462 __pyx_mstate_global->__pyx_codeobj__462 #define __pyx_codeobj__463 __pyx_mstate_global->__pyx_codeobj__463 #define __pyx_codeobj__464 __pyx_mstate_global->__pyx_codeobj__464 #define __pyx_codeobj__465 __pyx_mstate_global->__pyx_codeobj__465 #define __pyx_codeobj__466 __pyx_mstate_global->__pyx_codeobj__466 #define __pyx_codeobj__467 __pyx_mstate_global->__pyx_codeobj__467 #define __pyx_codeobj__468 __pyx_mstate_global->__pyx_codeobj__468 #define __pyx_codeobj__469 __pyx_mstate_global->__pyx_codeobj__469 #define __pyx_codeobj__470 __pyx_mstate_global->__pyx_codeobj__470 #define __pyx_codeobj__471 __pyx_mstate_global->__pyx_codeobj__471 #define __pyx_codeobj__472 __pyx_mstate_global->__pyx_codeobj__472 #define __pyx_codeobj__473 __pyx_mstate_global->__pyx_codeobj__473 #define __pyx_codeobj__474 __pyx_mstate_global->__pyx_codeobj__474 #define __pyx_codeobj__475 __pyx_mstate_global->__pyx_codeobj__475 #define __pyx_codeobj__476 __pyx_mstate_global->__pyx_codeobj__476 #define __pyx_codeobj__477 __pyx_mstate_global->__pyx_codeobj__477 #define __pyx_codeobj__478 __pyx_mstate_global->__pyx_codeobj__478 #define __pyx_codeobj__479 __pyx_mstate_global->__pyx_codeobj__479 #define __pyx_codeobj__480 __pyx_mstate_global->__pyx_codeobj__480 #define __pyx_codeobj__481 __pyx_mstate_global->__pyx_codeobj__481 #define __pyx_codeobj__482 __pyx_mstate_global->__pyx_codeobj__482 #define __pyx_codeobj__483 __pyx_mstate_global->__pyx_codeobj__483 #define __pyx_codeobj__484 __pyx_mstate_global->__pyx_codeobj__484 #define __pyx_codeobj__485 __pyx_mstate_global->__pyx_codeobj__485 #define __pyx_codeobj__486 __pyx_mstate_global->__pyx_codeobj__486 #define __pyx_codeobj__489 __pyx_mstate_global->__pyx_codeobj__489 #define __pyx_codeobj__490 __pyx_mstate_global->__pyx_codeobj__490 #define __pyx_codeobj__491 __pyx_mstate_global->__pyx_codeobj__491 #define __pyx_codeobj__492 __pyx_mstate_global->__pyx_codeobj__492 #define __pyx_codeobj__493 __pyx_mstate_global->__pyx_codeobj__493 #define __pyx_codeobj__494 __pyx_mstate_global->__pyx_codeobj__494 #define __pyx_codeobj__495 __pyx_mstate_global->__pyx_codeobj__495 #define __pyx_codeobj__496 __pyx_mstate_global->__pyx_codeobj__496 #define __pyx_codeobj__497 __pyx_mstate_global->__pyx_codeobj__497 #define __pyx_codeobj__498 __pyx_mstate_global->__pyx_codeobj__498 #define __pyx_codeobj__499 __pyx_mstate_global->__pyx_codeobj__499 #define __pyx_codeobj__501 __pyx_mstate_global->__pyx_codeobj__501 #define __pyx_codeobj__502 __pyx_mstate_global->__pyx_codeobj__502 #define __pyx_codeobj__503 __pyx_mstate_global->__pyx_codeobj__503 #define __pyx_codeobj__504 __pyx_mstate_global->__pyx_codeobj__504 #define __pyx_codeobj__505 __pyx_mstate_global->__pyx_codeobj__505 #define __pyx_codeobj__506 __pyx_mstate_global->__pyx_codeobj__506 #define __pyx_codeobj__507 __pyx_mstate_global->__pyx_codeobj__507 #define __pyx_codeobj__508 __pyx_mstate_global->__pyx_codeobj__508 #define __pyx_codeobj__509 __pyx_mstate_global->__pyx_codeobj__509 #define __pyx_codeobj__510 __pyx_mstate_global->__pyx_codeobj__510 #define __pyx_codeobj__511 __pyx_mstate_global->__pyx_codeobj__511 #define __pyx_codeobj__512 __pyx_mstate_global->__pyx_codeobj__512 #define __pyx_codeobj__513 __pyx_mstate_global->__pyx_codeobj__513 #define __pyx_codeobj__514 __pyx_mstate_global->__pyx_codeobj__514 #define __pyx_codeobj__515 __pyx_mstate_global->__pyx_codeobj__515 #define __pyx_codeobj__516 __pyx_mstate_global->__pyx_codeobj__516 #define __pyx_codeobj__517 __pyx_mstate_global->__pyx_codeobj__517 #define __pyx_codeobj__518 __pyx_mstate_global->__pyx_codeobj__518 #define __pyx_codeobj__519 __pyx_mstate_global->__pyx_codeobj__519 #define __pyx_codeobj__520 __pyx_mstate_global->__pyx_codeobj__520 #define __pyx_codeobj__521 __pyx_mstate_global->__pyx_codeobj__521 #define __pyx_codeobj__522 __pyx_mstate_global->__pyx_codeobj__522 #define __pyx_codeobj__523 __pyx_mstate_global->__pyx_codeobj__523 #define __pyx_codeobj__524 __pyx_mstate_global->__pyx_codeobj__524 #define __pyx_codeobj__525 __pyx_mstate_global->__pyx_codeobj__525 #define __pyx_codeobj__526 __pyx_mstate_global->__pyx_codeobj__526 #define __pyx_codeobj__527 __pyx_mstate_global->__pyx_codeobj__527 #define __pyx_codeobj__528 __pyx_mstate_global->__pyx_codeobj__528 #define __pyx_codeobj__529 __pyx_mstate_global->__pyx_codeobj__529 #define __pyx_codeobj__530 __pyx_mstate_global->__pyx_codeobj__530 #define __pyx_codeobj__531 __pyx_mstate_global->__pyx_codeobj__531 #define __pyx_codeobj__532 __pyx_mstate_global->__pyx_codeobj__532 #define __pyx_codeobj__533 __pyx_mstate_global->__pyx_codeobj__533 #define __pyx_codeobj__535 __pyx_mstate_global->__pyx_codeobj__535 #define __pyx_codeobj__536 __pyx_mstate_global->__pyx_codeobj__536 #define __pyx_codeobj__537 __pyx_mstate_global->__pyx_codeobj__537 #define __pyx_codeobj__538 __pyx_mstate_global->__pyx_codeobj__538 #define __pyx_codeobj__539 __pyx_mstate_global->__pyx_codeobj__539 #define __pyx_codeobj__540 __pyx_mstate_global->__pyx_codeobj__540 #define __pyx_codeobj__541 __pyx_mstate_global->__pyx_codeobj__541 #define __pyx_codeobj__542 __pyx_mstate_global->__pyx_codeobj__542 #define __pyx_codeobj__543 __pyx_mstate_global->__pyx_codeobj__543 #define __pyx_codeobj__544 __pyx_mstate_global->__pyx_codeobj__544 #define __pyx_codeobj__545 __pyx_mstate_global->__pyx_codeobj__545 #define __pyx_codeobj__546 __pyx_mstate_global->__pyx_codeobj__546 #define __pyx_codeobj__547 __pyx_mstate_global->__pyx_codeobj__547 #define __pyx_codeobj__548 __pyx_mstate_global->__pyx_codeobj__548 #define __pyx_codeobj__549 __pyx_mstate_global->__pyx_codeobj__549 #define __pyx_codeobj__550 __pyx_mstate_global->__pyx_codeobj__550 #define __pyx_codeobj__551 __pyx_mstate_global->__pyx_codeobj__551 #define __pyx_codeobj__552 __pyx_mstate_global->__pyx_codeobj__552 #define __pyx_codeobj__553 __pyx_mstate_global->__pyx_codeobj__553 #define __pyx_codeobj__554 __pyx_mstate_global->__pyx_codeobj__554 #define __pyx_codeobj__555 __pyx_mstate_global->__pyx_codeobj__555 #define __pyx_codeobj__556 __pyx_mstate_global->__pyx_codeobj__556 #define __pyx_codeobj__557 __pyx_mstate_global->__pyx_codeobj__557 #define __pyx_codeobj__558 __pyx_mstate_global->__pyx_codeobj__558 #define __pyx_codeobj__559 __pyx_mstate_global->__pyx_codeobj__559 #define __pyx_codeobj__560 __pyx_mstate_global->__pyx_codeobj__560 #define __pyx_codeobj__561 __pyx_mstate_global->__pyx_codeobj__561 #define __pyx_codeobj__562 __pyx_mstate_global->__pyx_codeobj__562 #define __pyx_codeobj__563 __pyx_mstate_global->__pyx_codeobj__563 #define __pyx_codeobj__564 __pyx_mstate_global->__pyx_codeobj__564 #define __pyx_codeobj__565 __pyx_mstate_global->__pyx_codeobj__565 #define __pyx_codeobj__566 __pyx_mstate_global->__pyx_codeobj__566 #define __pyx_codeobj__567 __pyx_mstate_global->__pyx_codeobj__567 #define __pyx_codeobj__568 __pyx_mstate_global->__pyx_codeobj__568 #define __pyx_codeobj__569 __pyx_mstate_global->__pyx_codeobj__569 #define __pyx_codeobj__570 __pyx_mstate_global->__pyx_codeobj__570 #define __pyx_codeobj__571 __pyx_mstate_global->__pyx_codeobj__571 #define __pyx_codeobj__572 __pyx_mstate_global->__pyx_codeobj__572 #define __pyx_codeobj__573 __pyx_mstate_global->__pyx_codeobj__573 #define __pyx_codeobj__574 __pyx_mstate_global->__pyx_codeobj__574 #define __pyx_codeobj__575 __pyx_mstate_global->__pyx_codeobj__575 #define __pyx_codeobj__576 __pyx_mstate_global->__pyx_codeobj__576 #define __pyx_codeobj__577 __pyx_mstate_global->__pyx_codeobj__577 #define __pyx_codeobj__578 __pyx_mstate_global->__pyx_codeobj__578 #define __pyx_codeobj__579 __pyx_mstate_global->__pyx_codeobj__579 #define __pyx_codeobj__580 __pyx_mstate_global->__pyx_codeobj__580 #define __pyx_codeobj__581 __pyx_mstate_global->__pyx_codeobj__581 #define __pyx_codeobj__582 __pyx_mstate_global->__pyx_codeobj__582 #define __pyx_codeobj__583 __pyx_mstate_global->__pyx_codeobj__583 #define __pyx_codeobj__584 __pyx_mstate_global->__pyx_codeobj__584 #define __pyx_codeobj__587 __pyx_mstate_global->__pyx_codeobj__587 #define __pyx_codeobj__589 __pyx_mstate_global->__pyx_codeobj__589 #define __pyx_codeobj__590 __pyx_mstate_global->__pyx_codeobj__590 #define __pyx_codeobj__591 __pyx_mstate_global->__pyx_codeobj__591 #define __pyx_codeobj__592 __pyx_mstate_global->__pyx_codeobj__592 #define __pyx_codeobj__593 __pyx_mstate_global->__pyx_codeobj__593 #define __pyx_codeobj__594 __pyx_mstate_global->__pyx_codeobj__594 #define __pyx_codeobj__595 __pyx_mstate_global->__pyx_codeobj__595 #define __pyx_codeobj__596 __pyx_mstate_global->__pyx_codeobj__596 #define __pyx_codeobj__597 __pyx_mstate_global->__pyx_codeobj__597 #define __pyx_codeobj__598 __pyx_mstate_global->__pyx_codeobj__598 #define __pyx_codeobj__599 __pyx_mstate_global->__pyx_codeobj__599 #define __pyx_codeobj__600 __pyx_mstate_global->__pyx_codeobj__600 #define __pyx_codeobj__601 __pyx_mstate_global->__pyx_codeobj__601 #define __pyx_codeobj__602 __pyx_mstate_global->__pyx_codeobj__602 #define __pyx_codeobj__603 __pyx_mstate_global->__pyx_codeobj__603 #define __pyx_codeobj__604 __pyx_mstate_global->__pyx_codeobj__604 #define __pyx_codeobj__605 __pyx_mstate_global->__pyx_codeobj__605 #define __pyx_codeobj__606 __pyx_mstate_global->__pyx_codeobj__606 #define __pyx_codeobj__607 __pyx_mstate_global->__pyx_codeobj__607 #define __pyx_codeobj__608 __pyx_mstate_global->__pyx_codeobj__608 #define __pyx_codeobj__609 __pyx_mstate_global->__pyx_codeobj__609 #define __pyx_codeobj__610 __pyx_mstate_global->__pyx_codeobj__610 #define __pyx_codeobj__611 __pyx_mstate_global->__pyx_codeobj__611 #define __pyx_codeobj__612 __pyx_mstate_global->__pyx_codeobj__612 #define __pyx_codeobj__613 __pyx_mstate_global->__pyx_codeobj__613 #define __pyx_codeobj__614 __pyx_mstate_global->__pyx_codeobj__614 #define __pyx_codeobj__615 __pyx_mstate_global->__pyx_codeobj__615 #define __pyx_codeobj__616 __pyx_mstate_global->__pyx_codeobj__616 #define __pyx_codeobj__617 __pyx_mstate_global->__pyx_codeobj__617 #define __pyx_codeobj__618 __pyx_mstate_global->__pyx_codeobj__618 #define __pyx_codeobj__619 __pyx_mstate_global->__pyx_codeobj__619 #define __pyx_codeobj__620 __pyx_mstate_global->__pyx_codeobj__620 #define __pyx_codeobj__621 __pyx_mstate_global->__pyx_codeobj__621 #define __pyx_codeobj__622 __pyx_mstate_global->__pyx_codeobj__622 #define __pyx_codeobj__623 __pyx_mstate_global->__pyx_codeobj__623 #define __pyx_codeobj__624 __pyx_mstate_global->__pyx_codeobj__624 #define __pyx_codeobj__625 __pyx_mstate_global->__pyx_codeobj__625 #define __pyx_codeobj__626 __pyx_mstate_global->__pyx_codeobj__626 #define __pyx_codeobj__627 __pyx_mstate_global->__pyx_codeobj__627 #define __pyx_codeobj__628 __pyx_mstate_global->__pyx_codeobj__628 #define __pyx_codeobj__629 __pyx_mstate_global->__pyx_codeobj__629 #define __pyx_codeobj__630 __pyx_mstate_global->__pyx_codeobj__630 #define __pyx_codeobj__631 __pyx_mstate_global->__pyx_codeobj__631 #define __pyx_codeobj__632 __pyx_mstate_global->__pyx_codeobj__632 #define __pyx_codeobj__633 __pyx_mstate_global->__pyx_codeobj__633 #define __pyx_codeobj__634 __pyx_mstate_global->__pyx_codeobj__634 #define __pyx_codeobj__635 __pyx_mstate_global->__pyx_codeobj__635 #define __pyx_codeobj__636 __pyx_mstate_global->__pyx_codeobj__636 #define __pyx_codeobj__637 __pyx_mstate_global->__pyx_codeobj__637 #define __pyx_codeobj__638 __pyx_mstate_global->__pyx_codeobj__638 #define __pyx_codeobj__639 __pyx_mstate_global->__pyx_codeobj__639 #define __pyx_codeobj__640 __pyx_mstate_global->__pyx_codeobj__640 #define __pyx_codeobj__641 __pyx_mstate_global->__pyx_codeobj__641 #define __pyx_codeobj__642 __pyx_mstate_global->__pyx_codeobj__642 #define __pyx_codeobj__643 __pyx_mstate_global->__pyx_codeobj__643 #define __pyx_codeobj__644 __pyx_mstate_global->__pyx_codeobj__644 #define __pyx_codeobj__645 __pyx_mstate_global->__pyx_codeobj__645 #define __pyx_codeobj__646 __pyx_mstate_global->__pyx_codeobj__646 #define __pyx_codeobj__647 __pyx_mstate_global->__pyx_codeobj__647 #define __pyx_codeobj__648 __pyx_mstate_global->__pyx_codeobj__648 #define __pyx_codeobj__649 __pyx_mstate_global->__pyx_codeobj__649 #define __pyx_codeobj__650 __pyx_mstate_global->__pyx_codeobj__650 #define __pyx_codeobj__651 __pyx_mstate_global->__pyx_codeobj__651 #define __pyx_codeobj__652 __pyx_mstate_global->__pyx_codeobj__652 #define __pyx_codeobj__653 __pyx_mstate_global->__pyx_codeobj__653 /* #### Code section: module_code ### */ /* "carray.to_py":114 * * @cname("__Pyx_carray_to_py_unsigned_int") * cdef inline list __Pyx_carray_to_py_unsigned_int(base_type *v, Py_ssize_t length): # <<<<<<<<<<<<<< * cdef size_t i * cdef object value */ static CYTHON_INLINE PyObject *__Pyx_carray_to_py_unsigned_int(unsigned int *__pyx_v_v, Py_ssize_t __pyx_v_length) { size_t __pyx_v_i; PyObject *__pyx_v_value = 0; PyObject *__pyx_v_l = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; size_t __pyx_t_2; size_t __pyx_t_3; size_t __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__Pyx_carray_to_py_unsigned_int", 1); __Pyx_TraceCall("__Pyx_carray_to_py_unsigned_int", __pyx_f[1], 114, 0, __PYX_ERR(1, 114, __pyx_L1_error)); /* "carray.to_py":117 * cdef size_t i * cdef object value * l = PyList_New(length) # <<<<<<<<<<<<<< * for i in range(length): * value = v[i] */ __pyx_t_1 = PyList_New(__pyx_v_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 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[i] * Py_INCREF(value) */ __pyx_t_2 = ((size_t)__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[i] # <<<<<<<<<<<<<< * Py_INCREF(value) * PyList_SET_ITEM(l, i, value) */ __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_v[__pyx_v_i])); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 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[i] * Py_INCREF(value) # <<<<<<<<<<<<<< * PyList_SET_ITEM(l, i, value) * return l */ Py_INCREF(__pyx_v_value); /* "carray.to_py":121 * value = v[i] * Py_INCREF(value) * PyList_SET_ITEM(l, i, value) # <<<<<<<<<<<<<< * return l * */ PyList_SET_ITEM(__pyx_v_l, __pyx_v_i, __pyx_v_value); } /* "carray.to_py":122 * Py_INCREF(value) * 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":114 * * @cname("__Pyx_carray_to_py_unsigned_int") * cdef inline list __Pyx_carray_to_py_unsigned_int(base_type *v, Py_ssize_t length): # <<<<<<<<<<<<<< * cdef size_t i * cdef object value */ /* 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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "carray.to_py":126 * * @cname("__Pyx_carray_to_tuple_unsigned_int") * cdef inline tuple __Pyx_carray_to_tuple_unsigned_int(base_type *v, Py_ssize_t length): # <<<<<<<<<<<<<< * cdef size_t i * cdef object value */ static CYTHON_INLINE PyObject *__Pyx_carray_to_tuple_unsigned_int(unsigned int *__pyx_v_v, Py_ssize_t __pyx_v_length) { size_t __pyx_v_i; PyObject *__pyx_v_value = 0; PyObject *__pyx_v_t = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; size_t __pyx_t_2; size_t __pyx_t_3; size_t __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__Pyx_carray_to_tuple_unsigned_int", 1); __Pyx_TraceCall("__Pyx_carray_to_tuple_unsigned_int", __pyx_f[1], 126, 0, __PYX_ERR(1, 126, __pyx_L1_error)); /* "carray.to_py":129 * cdef size_t i * cdef object value * t = PyTuple_New(length) # <<<<<<<<<<<<<< * for i in range(length): * value = v[i] */ __pyx_t_1 = PyTuple_New(__pyx_v_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 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[i] * Py_INCREF(value) */ __pyx_t_2 = ((size_t)__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[i] # <<<<<<<<<<<<<< * Py_INCREF(value) * PyTuple_SET_ITEM(t, i, value) */ __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_v[__pyx_v_i])); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 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[i] * Py_INCREF(value) # <<<<<<<<<<<<<< * PyTuple_SET_ITEM(t, i, value) * return t */ Py_INCREF(__pyx_v_value); /* "carray.to_py":133 * value = v[i] * Py_INCREF(value) * PyTuple_SET_ITEM(t, i, value) # <<<<<<<<<<<<<< * return t */ PyTuple_SET_ITEM(__pyx_v_t, __pyx_v_i, __pyx_v_value); } /* "carray.to_py":134 * Py_INCREF(value) * 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":126 * * @cname("__Pyx_carray_to_tuple_unsigned_int") * cdef inline tuple __Pyx_carray_to_tuple_unsigned_int(base_type *v, Py_ssize_t length): # <<<<<<<<<<<<<< * cdef size_t i * cdef object value */ /* 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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "carray.from_py":79 * * @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: */ 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_TraceDeclarations __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", 1); __Pyx_TraceCall("__Pyx_carray_from_py_unsigned_int", __pyx_f[1], 79, 0, __PYX_ERR(1, 79, __pyx_L1_error)); /* "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(1, 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(__pyx_builtin_TypeError, __pyx_builtin_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(1, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 86, __pyx_L1_error) #endif if (__pyx_t_8 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_10 = PyList_GET_ITEM(__pyx_t_7, __pyx_t_8); __Pyx_INCREF(__pyx_t_10); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(1, 86, __pyx_L1_error) #else __pyx_t_10 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_7); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 86, __pyx_L1_error) #endif if (__pyx_t_8 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_10 = PyTuple_GET_ITEM(__pyx_t_7, __pyx_t_8); __Pyx_INCREF(__pyx_t_10); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(1, 86, __pyx_L1_error) #else __pyx_t_10 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); #endif } } else { __pyx_t_10 = __pyx_t_9(__pyx_t_7); if (unlikely(!__pyx_t_10)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(1, 86, __pyx_L1_error) } 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_L11_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_PyInt_As_unsigned_int(__pyx_v_item); if (unlikely((__pyx_t_11 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(1, 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_L13_for_else; __pyx_L11_break:; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; goto __pyx_L14_for_end; /*else*/ { __pyx_L13_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_L14_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 = ((char const *)"too many values found during array assignment, expected %zd"); } else { __pyx_t_12 = ((char const *)"not enough values found during array assignment, expected %zd, got %zd"); } /* "carray.from_py":95 * return 0 * * PyErr_Format( # <<<<<<<<<<<<<< * IndexError, * ("too many values found during array assignment, expected %zd" */ __pyx_t_7 = PyErr_Format(__pyx_builtin_IndexError, __pyx_t_12, __pyx_v_length, __pyx_v_i); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 95, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "carray.from_py":79 * * @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: */ /* 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_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "carray.to_py":114 * * @cname("__Pyx_carray_to_py_int") * cdef inline list __Pyx_carray_to_py_int(base_type *v, Py_ssize_t length): # <<<<<<<<<<<<<< * cdef size_t i * cdef object value */ static CYTHON_INLINE PyObject *__Pyx_carray_to_py_int(int *__pyx_v_v, Py_ssize_t __pyx_v_length) { size_t __pyx_v_i; PyObject *__pyx_v_value = 0; PyObject *__pyx_v_l = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; size_t __pyx_t_2; size_t __pyx_t_3; size_t __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__Pyx_carray_to_py_int", 1); __Pyx_TraceCall("__Pyx_carray_to_py_int", __pyx_f[1], 114, 0, __PYX_ERR(1, 114, __pyx_L1_error)); /* "carray.to_py":117 * cdef size_t i * cdef object value * l = PyList_New(length) # <<<<<<<<<<<<<< * for i in range(length): * value = v[i] */ __pyx_t_1 = PyList_New(__pyx_v_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 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[i] * Py_INCREF(value) */ __pyx_t_2 = ((size_t)__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[i] # <<<<<<<<<<<<<< * Py_INCREF(value) * PyList_SET_ITEM(l, i, value) */ __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_v[__pyx_v_i])); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 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[i] * Py_INCREF(value) # <<<<<<<<<<<<<< * PyList_SET_ITEM(l, i, value) * return l */ Py_INCREF(__pyx_v_value); /* "carray.to_py":121 * value = v[i] * Py_INCREF(value) * PyList_SET_ITEM(l, i, value) # <<<<<<<<<<<<<< * return l * */ PyList_SET_ITEM(__pyx_v_l, __pyx_v_i, __pyx_v_value); } /* "carray.to_py":122 * Py_INCREF(value) * 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":114 * * @cname("__Pyx_carray_to_py_int") * cdef inline list __Pyx_carray_to_py_int(base_type *v, Py_ssize_t length): # <<<<<<<<<<<<<< * cdef size_t i * cdef object value */ /* 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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "carray.to_py":126 * * @cname("__Pyx_carray_to_tuple_int") * cdef inline tuple __Pyx_carray_to_tuple_int(base_type *v, Py_ssize_t length): # <<<<<<<<<<<<<< * cdef size_t i * cdef object value */ static CYTHON_INLINE PyObject *__Pyx_carray_to_tuple_int(int *__pyx_v_v, Py_ssize_t __pyx_v_length) { size_t __pyx_v_i; PyObject *__pyx_v_value = 0; PyObject *__pyx_v_t = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; size_t __pyx_t_2; size_t __pyx_t_3; size_t __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__Pyx_carray_to_tuple_int", 1); __Pyx_TraceCall("__Pyx_carray_to_tuple_int", __pyx_f[1], 126, 0, __PYX_ERR(1, 126, __pyx_L1_error)); /* "carray.to_py":129 * cdef size_t i * cdef object value * t = PyTuple_New(length) # <<<<<<<<<<<<<< * for i in range(length): * value = v[i] */ __pyx_t_1 = PyTuple_New(__pyx_v_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 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[i] * Py_INCREF(value) */ __pyx_t_2 = ((size_t)__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[i] # <<<<<<<<<<<<<< * Py_INCREF(value) * PyTuple_SET_ITEM(t, i, value) */ __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_v[__pyx_v_i])); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 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[i] * Py_INCREF(value) # <<<<<<<<<<<<<< * PyTuple_SET_ITEM(t, i, value) * return t */ Py_INCREF(__pyx_v_value); /* "carray.to_py":133 * value = v[i] * Py_INCREF(value) * PyTuple_SET_ITEM(t, i, value) # <<<<<<<<<<<<<< * return t */ PyTuple_SET_ITEM(__pyx_v_t, __pyx_v_i, __pyx_v_value); } /* "carray.to_py":134 * Py_INCREF(value) * 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":126 * * @cname("__Pyx_carray_to_tuple_int") * cdef inline tuple __Pyx_carray_to_tuple_int(base_type *v, Py_ssize_t length): # <<<<<<<<<<<<<< * cdef size_t i * cdef object value */ /* 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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "carray.from_py":79 * * @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: */ 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_TraceDeclarations __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", 1); __Pyx_TraceCall("__Pyx_carray_from_py_int", __pyx_f[1], 79, 0, __PYX_ERR(1, 79, __pyx_L1_error)); /* "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(1, 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(__pyx_builtin_TypeError, __pyx_builtin_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(1, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 86, __pyx_L1_error) #endif if (__pyx_t_8 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_10 = PyList_GET_ITEM(__pyx_t_7, __pyx_t_8); __Pyx_INCREF(__pyx_t_10); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(1, 86, __pyx_L1_error) #else __pyx_t_10 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_7); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 86, __pyx_L1_error) #endif if (__pyx_t_8 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_10 = PyTuple_GET_ITEM(__pyx_t_7, __pyx_t_8); __Pyx_INCREF(__pyx_t_10); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(1, 86, __pyx_L1_error) #else __pyx_t_10 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); #endif } } else { __pyx_t_10 = __pyx_t_9(__pyx_t_7); if (unlikely(!__pyx_t_10)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(1, 86, __pyx_L1_error) } 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_L11_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_PyInt_As_int(__pyx_v_item); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 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_L13_for_else; __pyx_L11_break:; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; goto __pyx_L14_for_end; /*else*/ { __pyx_L13_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_L14_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 = ((char const *)"too many values found during array assignment, expected %zd"); } else { __pyx_t_11 = ((char const *)"not enough values found during array assignment, expected %zd, got %zd"); } /* "carray.from_py":95 * return 0 * * PyErr_Format( # <<<<<<<<<<<<<< * IndexError, * ("too many values found during array assignment, expected %zd" */ __pyx_t_7 = PyErr_Format(__pyx_builtin_IndexError, __pyx_t_11, __pyx_v_length, __pyx_v_i); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 95, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "carray.from_py":79 * * @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: */ /* 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_TraceReturn(Py_None, 0); __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_TraceDeclarations __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", 1); __Pyx_TraceCall("__Pyx_carray_from_py_char", __pyx_f[1], 79, 0, __PYX_ERR(1, 79, __pyx_L1_error)); /* "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(1, 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(__pyx_builtin_TypeError, __pyx_builtin_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(1, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 86, __pyx_L1_error) #endif if (__pyx_t_8 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_10 = PyList_GET_ITEM(__pyx_t_7, __pyx_t_8); __Pyx_INCREF(__pyx_t_10); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(1, 86, __pyx_L1_error) #else __pyx_t_10 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_7); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 86, __pyx_L1_error) #endif if (__pyx_t_8 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_10 = PyTuple_GET_ITEM(__pyx_t_7, __pyx_t_8); __Pyx_INCREF(__pyx_t_10); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(1, 86, __pyx_L1_error) #else __pyx_t_10 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); #endif } } else { __pyx_t_10 = __pyx_t_9(__pyx_t_7); if (unlikely(!__pyx_t_10)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(1, 86, __pyx_L1_error) } 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_L11_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_PyInt_As_char(__pyx_v_item); if (unlikely((__pyx_t_11 == (char)-1) && PyErr_Occurred())) __PYX_ERR(1, 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_L13_for_else; __pyx_L11_break:; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; goto __pyx_L14_for_end; /*else*/ { __pyx_L13_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_L14_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 = ((char const *)"too many values found during array assignment, expected %zd"); } else { __pyx_t_12 = ((char const *)"not enough values found during array assignment, expected %zd, got %zd"); } /* "carray.from_py":95 * return 0 * * PyErr_Format( # <<<<<<<<<<<<<< * IndexError, * ("too many values found during array assignment, expected %zd" */ __pyx_t_7 = PyErr_Format(__pyx_builtin_IndexError, __pyx_t_12, __pyx_v_length, __pyx_v_i); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 95, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "carray.from_py":79 * * @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: */ /* 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_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "carray.to_py":114 * * @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 size_t i * cdef object value */ static CYTHON_INLINE PyObject *__Pyx_carray_to_py_PY_LONG_LONG(PY_LONG_LONG *__pyx_v_v, Py_ssize_t __pyx_v_length) { size_t __pyx_v_i; PyObject *__pyx_v_value = 0; PyObject *__pyx_v_l = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; size_t __pyx_t_2; size_t __pyx_t_3; size_t __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__Pyx_carray_to_py_PY_LONG_LONG", 1); __Pyx_TraceCall("__Pyx_carray_to_py_PY_LONG_LONG", __pyx_f[1], 114, 0, __PYX_ERR(1, 114, __pyx_L1_error)); /* "carray.to_py":117 * cdef size_t i * cdef object value * l = PyList_New(length) # <<<<<<<<<<<<<< * for i in range(length): * value = v[i] */ __pyx_t_1 = PyList_New(__pyx_v_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 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[i] * Py_INCREF(value) */ __pyx_t_2 = ((size_t)__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[i] # <<<<<<<<<<<<<< * Py_INCREF(value) * PyList_SET_ITEM(l, i, value) */ __pyx_t_1 = __Pyx_PyInt_From_PY_LONG_LONG((__pyx_v_v[__pyx_v_i])); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 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[i] * Py_INCREF(value) # <<<<<<<<<<<<<< * PyList_SET_ITEM(l, i, value) * return l */ Py_INCREF(__pyx_v_value); /* "carray.to_py":121 * value = v[i] * Py_INCREF(value) * PyList_SET_ITEM(l, i, value) # <<<<<<<<<<<<<< * return l * */ PyList_SET_ITEM(__pyx_v_l, __pyx_v_i, __pyx_v_value); } /* "carray.to_py":122 * Py_INCREF(value) * 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":114 * * @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 size_t i * cdef object value */ /* 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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "carray.to_py":126 * * @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 size_t i * cdef object value */ static CYTHON_INLINE PyObject *__Pyx_carray_to_tuple_PY_LONG_LONG(PY_LONG_LONG *__pyx_v_v, Py_ssize_t __pyx_v_length) { size_t __pyx_v_i; PyObject *__pyx_v_value = 0; PyObject *__pyx_v_t = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; size_t __pyx_t_2; size_t __pyx_t_3; size_t __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__Pyx_carray_to_tuple_PY_LONG_LONG", 1); __Pyx_TraceCall("__Pyx_carray_to_tuple_PY_LONG_LONG", __pyx_f[1], 126, 0, __PYX_ERR(1, 126, __pyx_L1_error)); /* "carray.to_py":129 * cdef size_t i * cdef object value * t = PyTuple_New(length) # <<<<<<<<<<<<<< * for i in range(length): * value = v[i] */ __pyx_t_1 = PyTuple_New(__pyx_v_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 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[i] * Py_INCREF(value) */ __pyx_t_2 = ((size_t)__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[i] # <<<<<<<<<<<<<< * Py_INCREF(value) * PyTuple_SET_ITEM(t, i, value) */ __pyx_t_1 = __Pyx_PyInt_From_PY_LONG_LONG((__pyx_v_v[__pyx_v_i])); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 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[i] * Py_INCREF(value) # <<<<<<<<<<<<<< * PyTuple_SET_ITEM(t, i, value) * return t */ Py_INCREF(__pyx_v_value); /* "carray.to_py":133 * value = v[i] * Py_INCREF(value) * PyTuple_SET_ITEM(t, i, value) # <<<<<<<<<<<<<< * return t */ PyTuple_SET_ITEM(__pyx_v_t, __pyx_v_i, __pyx_v_value); } /* "carray.to_py":134 * Py_INCREF(value) * 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":126 * * @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 size_t i * cdef object value */ /* 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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "carray.from_py":79 * * @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: */ 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_TraceDeclarations __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", 1); __Pyx_TraceCall("__Pyx_carray_from_py_PY_LONG_LONG", __pyx_f[1], 79, 0, __PYX_ERR(1, 79, __pyx_L1_error)); /* "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(1, 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(__pyx_builtin_TypeError, __pyx_builtin_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(1, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 86, __pyx_L1_error) #endif if (__pyx_t_8 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_10 = PyList_GET_ITEM(__pyx_t_7, __pyx_t_8); __Pyx_INCREF(__pyx_t_10); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(1, 86, __pyx_L1_error) #else __pyx_t_10 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_7); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 86, __pyx_L1_error) #endif if (__pyx_t_8 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_10 = PyTuple_GET_ITEM(__pyx_t_7, __pyx_t_8); __Pyx_INCREF(__pyx_t_10); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(1, 86, __pyx_L1_error) #else __pyx_t_10 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); #endif } } else { __pyx_t_10 = __pyx_t_9(__pyx_t_7); if (unlikely(!__pyx_t_10)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(1, 86, __pyx_L1_error) } 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_L11_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_PyInt_As_PY_LONG_LONG(__pyx_v_item); if (unlikely((__pyx_t_11 == (PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(1, 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_L13_for_else; __pyx_L11_break:; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; goto __pyx_L14_for_end; /*else*/ { __pyx_L13_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_L14_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 = ((char const *)"too many values found during array assignment, expected %zd"); } else { __pyx_t_12 = ((char const *)"not enough values found during array assignment, expected %zd, got %zd"); } /* "carray.from_py":95 * return 0 * * PyErr_Format( # <<<<<<<<<<<<<< * IndexError, * ("too many values found during array assignment, expected %zd" */ __pyx_t_7 = PyErr_Format(__pyx_builtin_IndexError, __pyx_t_12, __pyx_v_length, __pyx_v_i); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 95, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "carray.from_py":79 * * @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: */ /* 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_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "carray.to_py":114 * * @cname("__Pyx_carray_to_py_enum__cudaTextureAddressMode") * cdef inline list __Pyx_carray_to_py_enum__cudaTextureAddressMode(base_type *v, Py_ssize_t length): # <<<<<<<<<<<<<< * cdef size_t i * cdef object value */ static CYTHON_INLINE PyObject *__Pyx_carray_to_py_enum__cudaTextureAddressMode(enum cudaTextureAddressMode *__pyx_v_v, Py_ssize_t __pyx_v_length) { size_t __pyx_v_i; PyObject *__pyx_v_value = 0; PyObject *__pyx_v_l = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; size_t __pyx_t_2; size_t __pyx_t_3; size_t __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__Pyx_carray_to_py_enum__cudaTextureAddressMode", 1); __Pyx_TraceCall("__Pyx_carray_to_py_enum__cudaTextureAddressMode", __pyx_f[1], 114, 0, __PYX_ERR(1, 114, __pyx_L1_error)); /* "carray.to_py":117 * cdef size_t i * cdef object value * l = PyList_New(length) # <<<<<<<<<<<<<< * for i in range(length): * value = v[i] */ __pyx_t_1 = PyList_New(__pyx_v_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 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[i] * Py_INCREF(value) */ __pyx_t_2 = ((size_t)__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[i] # <<<<<<<<<<<<<< * Py_INCREF(value) * PyList_SET_ITEM(l, i, value) */ __pyx_t_1 = __Pyx_PyInt_From_enum__cudaTextureAddressMode((__pyx_v_v[__pyx_v_i])); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 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[i] * Py_INCREF(value) # <<<<<<<<<<<<<< * PyList_SET_ITEM(l, i, value) * return l */ Py_INCREF(__pyx_v_value); /* "carray.to_py":121 * value = v[i] * Py_INCREF(value) * PyList_SET_ITEM(l, i, value) # <<<<<<<<<<<<<< * return l * */ PyList_SET_ITEM(__pyx_v_l, __pyx_v_i, __pyx_v_value); } /* "carray.to_py":122 * Py_INCREF(value) * 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":114 * * @cname("__Pyx_carray_to_py_enum__cudaTextureAddressMode") * cdef inline list __Pyx_carray_to_py_enum__cudaTextureAddressMode(base_type *v, Py_ssize_t length): # <<<<<<<<<<<<<< * cdef size_t i * cdef object value */ /* 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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "carray.to_py":126 * * @cname("__Pyx_carray_to_tuple_enum__cudaTextureAddressMode") * cdef inline tuple __Pyx_carray_to_tuple_enum__cudaTextureAddressMode(base_type *v, Py_ssize_t length): # <<<<<<<<<<<<<< * cdef size_t i * cdef object value */ static CYTHON_INLINE PyObject *__Pyx_carray_to_tuple_enum__cudaTextureAddressMode(enum cudaTextureAddressMode *__pyx_v_v, Py_ssize_t __pyx_v_length) { size_t __pyx_v_i; PyObject *__pyx_v_value = 0; PyObject *__pyx_v_t = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; size_t __pyx_t_2; size_t __pyx_t_3; size_t __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__Pyx_carray_to_tuple_enum__cudaTextureAddressMode", 1); __Pyx_TraceCall("__Pyx_carray_to_tuple_enum__cudaTextureAddressMode", __pyx_f[1], 126, 0, __PYX_ERR(1, 126, __pyx_L1_error)); /* "carray.to_py":129 * cdef size_t i * cdef object value * t = PyTuple_New(length) # <<<<<<<<<<<<<< * for i in range(length): * value = v[i] */ __pyx_t_1 = PyTuple_New(__pyx_v_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 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[i] * Py_INCREF(value) */ __pyx_t_2 = ((size_t)__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[i] # <<<<<<<<<<<<<< * Py_INCREF(value) * PyTuple_SET_ITEM(t, i, value) */ __pyx_t_1 = __Pyx_PyInt_From_enum__cudaTextureAddressMode((__pyx_v_v[__pyx_v_i])); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 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[i] * Py_INCREF(value) # <<<<<<<<<<<<<< * PyTuple_SET_ITEM(t, i, value) * return t */ Py_INCREF(__pyx_v_value); /* "carray.to_py":133 * value = v[i] * Py_INCREF(value) * PyTuple_SET_ITEM(t, i, value) # <<<<<<<<<<<<<< * return t */ PyTuple_SET_ITEM(__pyx_v_t, __pyx_v_i, __pyx_v_value); } /* "carray.to_py":134 * Py_INCREF(value) * 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":126 * * @cname("__Pyx_carray_to_tuple_enum__cudaTextureAddressMode") * cdef inline tuple __Pyx_carray_to_tuple_enum__cudaTextureAddressMode(base_type *v, Py_ssize_t length): # <<<<<<<<<<<<<< * cdef size_t i * cdef object value */ /* 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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "carray.from_py":79 * * @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: */ 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_TraceDeclarations __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", 1); __Pyx_TraceCall("__Pyx_carray_from_py_enum__cudaTextureAddressMode", __pyx_f[1], 79, 0, __PYX_ERR(1, 79, __pyx_L1_error)); /* "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(1, 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(__pyx_builtin_TypeError, __pyx_builtin_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(1, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 86, __pyx_L1_error) #endif if (__pyx_t_8 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_10 = PyList_GET_ITEM(__pyx_t_7, __pyx_t_8); __Pyx_INCREF(__pyx_t_10); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(1, 86, __pyx_L1_error) #else __pyx_t_10 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_7); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 86, __pyx_L1_error) #endif if (__pyx_t_8 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_10 = PyTuple_GET_ITEM(__pyx_t_7, __pyx_t_8); __Pyx_INCREF(__pyx_t_10); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(1, 86, __pyx_L1_error) #else __pyx_t_10 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); #endif } } else { __pyx_t_10 = __pyx_t_9(__pyx_t_7); if (unlikely(!__pyx_t_10)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(1, 86, __pyx_L1_error) } 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_L11_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_PyInt_As_enum__cudaTextureAddressMode(__pyx_v_item)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 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_L13_for_else; __pyx_L11_break:; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; goto __pyx_L14_for_end; /*else*/ { __pyx_L13_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_L14_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 = ((char const *)"too many values found during array assignment, expected %zd"); } else { __pyx_t_12 = ((char const *)"not enough values found during array assignment, expected %zd, got %zd"); } /* "carray.from_py":95 * return 0 * * PyErr_Format( # <<<<<<<<<<<<<< * IndexError, * ("too many values found during array assignment, expected %zd" */ __pyx_t_7 = PyErr_Format(__pyx_builtin_IndexError, __pyx_t_12, __pyx_v_length, __pyx_v_i); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 95, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "carray.from_py":79 * * @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: */ /* 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_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "carray.to_py":114 * * @cname("__Pyx_carray_to_py_float") * cdef inline list __Pyx_carray_to_py_float(base_type *v, Py_ssize_t length): # <<<<<<<<<<<<<< * cdef size_t i * cdef object value */ static CYTHON_INLINE PyObject *__Pyx_carray_to_py_float(float *__pyx_v_v, Py_ssize_t __pyx_v_length) { size_t __pyx_v_i; PyObject *__pyx_v_value = 0; PyObject *__pyx_v_l = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; size_t __pyx_t_2; size_t __pyx_t_3; size_t __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__Pyx_carray_to_py_float", 1); __Pyx_TraceCall("__Pyx_carray_to_py_float", __pyx_f[1], 114, 0, __PYX_ERR(1, 114, __pyx_L1_error)); /* "carray.to_py":117 * cdef size_t i * cdef object value * l = PyList_New(length) # <<<<<<<<<<<<<< * for i in range(length): * value = v[i] */ __pyx_t_1 = PyList_New(__pyx_v_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 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[i] * Py_INCREF(value) */ __pyx_t_2 = ((size_t)__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[i] # <<<<<<<<<<<<<< * Py_INCREF(value) * PyList_SET_ITEM(l, i, value) */ __pyx_t_1 = PyFloat_FromDouble((__pyx_v_v[__pyx_v_i])); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 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[i] * Py_INCREF(value) # <<<<<<<<<<<<<< * PyList_SET_ITEM(l, i, value) * return l */ Py_INCREF(__pyx_v_value); /* "carray.to_py":121 * value = v[i] * Py_INCREF(value) * PyList_SET_ITEM(l, i, value) # <<<<<<<<<<<<<< * return l * */ PyList_SET_ITEM(__pyx_v_l, __pyx_v_i, __pyx_v_value); } /* "carray.to_py":122 * Py_INCREF(value) * 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":114 * * @cname("__Pyx_carray_to_py_float") * cdef inline list __Pyx_carray_to_py_float(base_type *v, Py_ssize_t length): # <<<<<<<<<<<<<< * cdef size_t i * cdef object value */ /* 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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "carray.to_py":126 * * @cname("__Pyx_carray_to_tuple_float") * cdef inline tuple __Pyx_carray_to_tuple_float(base_type *v, Py_ssize_t length): # <<<<<<<<<<<<<< * cdef size_t i * cdef object value */ static CYTHON_INLINE PyObject *__Pyx_carray_to_tuple_float(float *__pyx_v_v, Py_ssize_t __pyx_v_length) { size_t __pyx_v_i; PyObject *__pyx_v_value = 0; PyObject *__pyx_v_t = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; size_t __pyx_t_2; size_t __pyx_t_3; size_t __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__Pyx_carray_to_tuple_float", 1); __Pyx_TraceCall("__Pyx_carray_to_tuple_float", __pyx_f[1], 126, 0, __PYX_ERR(1, 126, __pyx_L1_error)); /* "carray.to_py":129 * cdef size_t i * cdef object value * t = PyTuple_New(length) # <<<<<<<<<<<<<< * for i in range(length): * value = v[i] */ __pyx_t_1 = PyTuple_New(__pyx_v_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 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[i] * Py_INCREF(value) */ __pyx_t_2 = ((size_t)__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[i] # <<<<<<<<<<<<<< * Py_INCREF(value) * PyTuple_SET_ITEM(t, i, value) */ __pyx_t_1 = PyFloat_FromDouble((__pyx_v_v[__pyx_v_i])); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 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[i] * Py_INCREF(value) # <<<<<<<<<<<<<< * PyTuple_SET_ITEM(t, i, value) * return t */ Py_INCREF(__pyx_v_value); /* "carray.to_py":133 * value = v[i] * Py_INCREF(value) * PyTuple_SET_ITEM(t, i, value) # <<<<<<<<<<<<<< * return t */ PyTuple_SET_ITEM(__pyx_v_t, __pyx_v_i, __pyx_v_value); } /* "carray.to_py":134 * Py_INCREF(value) * 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":126 * * @cname("__Pyx_carray_to_tuple_float") * cdef inline tuple __Pyx_carray_to_tuple_float(base_type *v, Py_ssize_t length): # <<<<<<<<<<<<<< * cdef size_t i * cdef object value */ /* 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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "carray.from_py":79 * * @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: */ 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_TraceDeclarations __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", 1); __Pyx_TraceCall("__Pyx_carray_from_py_float", __pyx_f[1], 79, 0, __PYX_ERR(1, 79, __pyx_L1_error)); /* "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(1, 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(__pyx_builtin_TypeError, __pyx_builtin_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(1, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 86, __pyx_L1_error) #endif if (__pyx_t_8 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_10 = PyList_GET_ITEM(__pyx_t_7, __pyx_t_8); __Pyx_INCREF(__pyx_t_10); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(1, 86, __pyx_L1_error) #else __pyx_t_10 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_7); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 86, __pyx_L1_error) #endif if (__pyx_t_8 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_10 = PyTuple_GET_ITEM(__pyx_t_7, __pyx_t_8); __Pyx_INCREF(__pyx_t_10); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(1, 86, __pyx_L1_error) #else __pyx_t_10 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); #endif } } else { __pyx_t_10 = __pyx_t_9(__pyx_t_7); if (unlikely(!__pyx_t_10)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(1, 86, __pyx_L1_error) } 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_L11_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(1, 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_L13_for_else; __pyx_L11_break:; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; goto __pyx_L14_for_end; /*else*/ { __pyx_L13_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_L14_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 = ((char const *)"too many values found during array assignment, expected %zd"); } else { __pyx_t_12 = ((char const *)"not enough values found during array assignment, expected %zd, got %zd"); } /* "carray.from_py":95 * return 0 * * PyErr_Format( # <<<<<<<<<<<<<< * IndexError, * ("too many values found during array assignment, expected %zd" */ __pyx_t_7 = PyErr_Format(__pyx_builtin_IndexError, __pyx_t_12, __pyx_v_length, __pyx_v_i); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 95, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; /* "carray.from_py":79 * * @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: */ /* 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_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "vector.from_py":45 * * @cname("__pyx_convert_vector_from_py_size_t") * cdef vector[X] __pyx_convert_vector_from_py_size_t(object o) except *: # <<<<<<<<<<<<<< * cdef vector[X] v * for item in o: */ static std::vector __pyx_convert_vector_from_py_size_t(PyObject *__pyx_v_o) { std::vector __pyx_v_v; PyObject *__pyx_v_item = NULL; std::vector __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; Py_ssize_t __pyx_t_2; PyObject *(*__pyx_t_3)(PyObject *); 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("__pyx_convert_vector_from_py_size_t", 1); /* "vector.from_py":47 * cdef vector[X] __pyx_convert_vector_from_py_size_t(object o) except *: * cdef vector[X] v * for item in o: # <<<<<<<<<<<<<< * v.push_back(item) * return v */ if (likely(PyList_CheckExact(__pyx_v_o)) || PyTuple_CheckExact(__pyx_v_o)) { __pyx_t_1 = __pyx_v_o; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0; __pyx_t_3 = NULL; } else { __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_o); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 47, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 47, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 47, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(1, 47, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 47, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 47, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(1, 47, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 47, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(1, 47, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_4); } __Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_4); __pyx_t_4 = 0; /* "vector.from_py":48 * cdef vector[X] v * for item in o: * v.push_back(item) # <<<<<<<<<<<<<< * return v * */ __pyx_t_5 = __Pyx_PyInt_As_size_t(__pyx_v_item); if (unlikely((__pyx_t_5 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 48, __pyx_L1_error) try { __pyx_v_v.push_back(((size_t)__pyx_t_5)); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(1, 48, __pyx_L1_error) } /* "vector.from_py":47 * cdef vector[X] __pyx_convert_vector_from_py_size_t(object o) except *: * cdef vector[X] v * for item in o: # <<<<<<<<<<<<<< * v.push_back(item) * return v */ } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "vector.from_py":49 * for item in o: * v.push_back(item) * return v # <<<<<<<<<<<<<< * * */ __pyx_r = __pyx_v_v; goto __pyx_L0; /* "vector.from_py":45 * * @cname("__pyx_convert_vector_from_py_size_t") * cdef vector[X] __pyx_convert_vector_from_py_size_t(object o) except *: # <<<<<<<<<<<<<< * cdef vector[X] v * for item in o: */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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 __pyx_convert_vector_from_py_enum__cudaMemRangeAttribute(PyObject *__pyx_v_o) { std::vector __pyx_v_v; PyObject *__pyx_v_item = NULL; std::vector __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; Py_ssize_t __pyx_t_2; PyObject *(*__pyx_t_3)(PyObject *); PyObject *__pyx_t_4 = NULL; enum cudaMemRangeAttribute __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__pyx_convert_vector_from_py_enum__cudaMemRangeAttribute", 1); /* "vector.from_py":47 * cdef vector[X] __pyx_convert_vector_from_py_enum__cudaMemRangeAttribute(object o) except *: * cdef vector[X] v * for item in o: # <<<<<<<<<<<<<< * v.push_back(item) * return v */ if (likely(PyList_CheckExact(__pyx_v_o)) || PyTuple_CheckExact(__pyx_v_o)) { __pyx_t_1 = __pyx_v_o; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0; __pyx_t_3 = NULL; } else { __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_o); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 47, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 47, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 47, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(1, 47, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 47, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 47, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(1, 47, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 47, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(1, 47, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_4); } __Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_4); __pyx_t_4 = 0; /* "vector.from_py":48 * cdef vector[X] v * for item in o: * v.push_back(item) # <<<<<<<<<<<<<< * return v * */ __pyx_t_5 = ((enum cudaMemRangeAttribute)__Pyx_PyInt_As_enum__cudaMemRangeAttribute(__pyx_v_item)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 48, __pyx_L1_error) try { __pyx_v_v.push_back(((enum cudaMemRangeAttribute)__pyx_t_5)); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(1, 48, __pyx_L1_error) } /* "vector.from_py":47 * cdef vector[X] __pyx_convert_vector_from_py_enum__cudaMemRangeAttribute(object o) except *: * cdef vector[X] v * for item in o: # <<<<<<<<<<<<<< * v.push_back(item) * return v */ } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "vector.from_py":49 * for item in o: * v.push_back(item) * return v # <<<<<<<<<<<<<< * * */ __pyx_r = __pyx_v_v; goto __pyx_L0; /* "vector.from_py":45 * * @cname("__pyx_convert_vector_from_py_enum__cudaMemRangeAttribute") * cdef vector[X] __pyx_convert_vector_from_py_enum__cudaMemRangeAttribute(object o) except *: # <<<<<<<<<<<<<< * cdef vector[X] v * for item in o: */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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; } /* "cuda/cudart.pyx":3646 * * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_11cudaArray_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_11cudaArray_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_void_ptr __pyx_v_init_value; __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_init_value,&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_init_value); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 3646, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[1] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 3646, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 3646, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_init_value = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 3646, __pyx_L3_error) } else { __pyx_v_init_value = ((__pyx_t_4cuda_6cudart_void_ptr)0); } if (values[1]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 3646, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 3646, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaArray_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_11cudaArray_t___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaArray_t *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_11cudaArray_t___cinit__(struct __pyx_obj_4cuda_6cudart_cudaArray_t *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v_init_value, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 3646, 0, __PYX_ERR(0, 3646, __pyx_L1_error)); /* "cuda/cudart.pyx":3647 * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * self._ptr[0] = init_value */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":3648 * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * self._ptr[0] = init_value * else: */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaArray_t__val); /* "cuda/cudart.pyx":3649 * if _ptr == 0: * self._ptr = &self.__val * self._ptr[0] = init_value # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ (__pyx_v_self->_ptr[0]) = ((cudaArray_t)__pyx_v_init_value); /* "cuda/cudart.pyx":3647 * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * self._ptr[0] = init_value */ goto __pyx_L3; } /* "cuda/cudart.pyx":3651 * self._ptr[0] = init_value * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, *args, **kwargs): * pass */ /*else*/ { __pyx_v_self->_ptr = ((cudaArray_t *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":3646 * * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaArray_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":3652 * else: * self._ptr = _ptr * def __init__(self, *args, **kwargs): # <<<<<<<<<<<<<< * pass * def __repr__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_11cudaArray_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1; __Pyx_INCREF(__pyx_args); __pyx_v_args = __pyx_args; __pyx_r = __pyx_pf_4cuda_6cudart_11cudaArray_t_2__init__(((struct __pyx_obj_4cuda_6cudart_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_6cudart_11cudaArray_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaArray_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 3652, 0, __PYX_ERR(0, 3652, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaArray_t.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":3654 * def __init__(self, *args, **kwargs): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __index__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_11cudaArray_t_5__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_11cudaArray_t_4__repr__(((struct __pyx_obj_4cuda_6cudart_cudaArray_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11cudaArray_t_4__repr__(struct __pyx_obj_4cuda_6cudart_cudaArray_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 3654, 0, __PYX_ERR(0, 3654, __pyx_L1_error)); /* "cuda/cudart.pyx":3655 * pass * def __repr__(self): * return '' # <<<<<<<<<<<<<< * def __index__(self): * return self.__int__() */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3655, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3655, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3655, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3655, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_cudaArray_t, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3655, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_2, __pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3655, __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/cudart.pyx":3654 * def __init__(self, *args, **kwargs): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __index__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaArray_t.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3656 * def __repr__(self): * return '' * def __index__(self): # <<<<<<<<<<<<<< * return self.__int__() * def __int__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_11cudaArray_t_7__index__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_11cudaArray_t_6__index__(((struct __pyx_obj_4cuda_6cudart_cudaArray_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11cudaArray_t_6__index__(struct __pyx_obj_4cuda_6cudart_cudaArray_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__index__", 1); __Pyx_TraceCall("__index__", __pyx_f[0], 3656, 0, __PYX_ERR(0, 3656, __pyx_L1_error)); /* "cuda/cudart.pyx":3657 * return '' * def __index__(self): * return self.__int__() # <<<<<<<<<<<<<< * def __int__(self): * return self._ptr[0] */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3657, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3657, __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/cudart.pyx":3656 * def __repr__(self): * return '' * 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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaArray_t.__index__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3658 * def __index__(self): * return self.__int__() * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_11cudaArray_t_9__int__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_11cudaArray_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_6cudart_11cudaArray_t_8__int__(((struct __pyx_obj_4cuda_6cudart_cudaArray_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11cudaArray_t_8__int__(struct __pyx_obj_4cuda_6cudart_cudaArray_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__int__", 1); __Pyx_TraceCall("__int__", __pyx_f[0], 3658, 0, __PYX_ERR(0, 3658, __pyx_L1_error)); /* "cuda/cudart.pyx":3659 * return self.__int__() * def __int__(self): * return self._ptr[0] # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3659, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":3658 * def __index__(self): * return self.__int__() * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaArray_t.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3660 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_11cudaArray_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_6cudart_11cudaArray_t_10getPtr, "cudaArray_t.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_11cudaArray_t_11getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11cudaArray_t_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11cudaArray_t_10getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_11cudaArray_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_11cudaArray_t_10getPtr(((struct __pyx_obj_4cuda_6cudart_cudaArray_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11cudaArray_t_10getPtr(struct __pyx_obj_4cuda_6cudart_cudaArray_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__2) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 3660, 0, __PYX_ERR(0, 3660, __pyx_L1_error)); /* "cuda/cudart.pyx":3661 * return self._ptr[0] * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * * cdef class cudaArray_const_t: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3661, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":3660 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaArray_t.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_11cudaArray_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_6cudart_11cudaArray_t_12__reduce_cython__, "cudaArray_t.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_11cudaArray_t_13__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11cudaArray_t_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11cudaArray_t_12__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_11cudaArray_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_11cudaArray_t_12__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaArray_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11cudaArray_t_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaArray_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__3) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaArray_t.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_11cudaArray_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_6cudart_11cudaArray_t_14__setstate_cython__, "cudaArray_t.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_11cudaArray_t_15__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11cudaArray_t_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11cudaArray_t_14__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_11cudaArray_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaArray_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_11cudaArray_t_14__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaArray_t *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11cudaArray_t_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaArray_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__4) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaArray_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3674 * * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_17cudaArray_const_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_17cudaArray_const_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_void_ptr __pyx_v_init_value; __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_init_value,&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_init_value); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 3674, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[1] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 3674, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 3674, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_init_value = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 3674, __pyx_L3_error) } else { __pyx_v_init_value = ((__pyx_t_4cuda_6cudart_void_ptr)0); } if (values[1]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 3674, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 3674, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaArray_const_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_17cudaArray_const_t___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaArray_const_t *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_17cudaArray_const_t___cinit__(struct __pyx_obj_4cuda_6cudart_cudaArray_const_t *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v_init_value, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 3674, 0, __PYX_ERR(0, 3674, __pyx_L1_error)); /* "cuda/cudart.pyx":3675 * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * self._ptr[0] = init_value */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":3676 * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * self._ptr[0] = init_value * else: */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaArray_const_t__val); /* "cuda/cudart.pyx":3677 * if _ptr == 0: * self._ptr = &self.__val * self._ptr[0] = init_value # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ (__pyx_v_self->_ptr[0]) = ((cudaArray_const_t)__pyx_v_init_value); /* "cuda/cudart.pyx":3675 * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * self._ptr[0] = init_value */ goto __pyx_L3; } /* "cuda/cudart.pyx":3679 * self._ptr[0] = init_value * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, *args, **kwargs): * pass */ /*else*/ { __pyx_v_self->_ptr = ((cudaArray_const_t *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":3674 * * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaArray_const_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":3680 * else: * self._ptr = _ptr * def __init__(self, *args, **kwargs): # <<<<<<<<<<<<<< * pass * def __repr__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_17cudaArray_const_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1; __Pyx_INCREF(__pyx_args); __pyx_v_args = __pyx_args; __pyx_r = __pyx_pf_4cuda_6cudart_17cudaArray_const_t_2__init__(((struct __pyx_obj_4cuda_6cudart_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_6cudart_17cudaArray_const_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaArray_const_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 3680, 0, __PYX_ERR(0, 3680, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaArray_const_t.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":3682 * def __init__(self, *args, **kwargs): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __index__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_17cudaArray_const_t_5__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_17cudaArray_const_t_4__repr__(((struct __pyx_obj_4cuda_6cudart_cudaArray_const_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_17cudaArray_const_t_4__repr__(struct __pyx_obj_4cuda_6cudart_cudaArray_const_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 3682, 0, __PYX_ERR(0, 3682, __pyx_L1_error)); /* "cuda/cudart.pyx":3683 * pass * def __repr__(self): * return '' # <<<<<<<<<<<<<< * def __index__(self): * return self.__int__() */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3683, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3683, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3683, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3683, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_cudaArray_const_t, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3683, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_2, __pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3683, __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/cudart.pyx":3682 * def __init__(self, *args, **kwargs): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __index__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaArray_const_t.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3684 * def __repr__(self): * return '' * def __index__(self): # <<<<<<<<<<<<<< * return self.__int__() * def __int__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_17cudaArray_const_t_7__index__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_17cudaArray_const_t_6__index__(((struct __pyx_obj_4cuda_6cudart_cudaArray_const_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_17cudaArray_const_t_6__index__(struct __pyx_obj_4cuda_6cudart_cudaArray_const_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__index__", 1); __Pyx_TraceCall("__index__", __pyx_f[0], 3684, 0, __PYX_ERR(0, 3684, __pyx_L1_error)); /* "cuda/cudart.pyx":3685 * return '' * def __index__(self): * return self.__int__() # <<<<<<<<<<<<<< * def __int__(self): * return self._ptr[0] */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3685, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3685, __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/cudart.pyx":3684 * def __repr__(self): * return '' * 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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaArray_const_t.__index__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3686 * def __index__(self): * return self.__int__() * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_17cudaArray_const_t_9__int__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_17cudaArray_const_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_6cudart_17cudaArray_const_t_8__int__(((struct __pyx_obj_4cuda_6cudart_cudaArray_const_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_17cudaArray_const_t_8__int__(struct __pyx_obj_4cuda_6cudart_cudaArray_const_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__int__", 1); __Pyx_TraceCall("__int__", __pyx_f[0], 3686, 0, __PYX_ERR(0, 3686, __pyx_L1_error)); /* "cuda/cudart.pyx":3687 * return self.__int__() * def __int__(self): * return self._ptr[0] # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3687, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":3686 * def __index__(self): * return self.__int__() * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaArray_const_t.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3688 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_17cudaArray_const_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_6cudart_17cudaArray_const_t_10getPtr, "cudaArray_const_t.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_17cudaArray_const_t_11getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_17cudaArray_const_t_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_17cudaArray_const_t_10getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_17cudaArray_const_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_17cudaArray_const_t_10getPtr(((struct __pyx_obj_4cuda_6cudart_cudaArray_const_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_17cudaArray_const_t_10getPtr(struct __pyx_obj_4cuda_6cudart_cudaArray_const_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__5) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 3688, 0, __PYX_ERR(0, 3688, __pyx_L1_error)); /* "cuda/cudart.pyx":3689 * return self._ptr[0] * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * * cdef class cudaMipmappedArray_t: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3689, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":3688 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaArray_const_t.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_17cudaArray_const_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_6cudart_17cudaArray_const_t_12__reduce_cython__, "cudaArray_const_t.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_17cudaArray_const_t_13__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_17cudaArray_const_t_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_17cudaArray_const_t_12__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_17cudaArray_const_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_17cudaArray_const_t_12__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaArray_const_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_17cudaArray_const_t_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaArray_const_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__6) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaArray_const_t.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_17cudaArray_const_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_6cudart_17cudaArray_const_t_14__setstate_cython__, "cudaArray_const_t.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_17cudaArray_const_t_15__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_17cudaArray_const_t_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_17cudaArray_const_t_14__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_17cudaArray_const_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_6cudart_17cudaArray_const_t_14__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaArray_const_t *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_17cudaArray_const_t_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaArray_const_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__7) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaArray_const_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3702 * * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaMipmappedArray_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_20cudaMipmappedArray_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_void_ptr __pyx_v_init_value; __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_init_value,&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_init_value); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 3702, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[1] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 3702, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 3702, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_init_value = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 3702, __pyx_L3_error) } else { __pyx_v_init_value = ((__pyx_t_4cuda_6cudart_void_ptr)0); } if (values[1]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 3702, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 3702, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMipmappedArray_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaMipmappedArray_t___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_t *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_20cudaMipmappedArray_t___cinit__(struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_t *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v_init_value, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 3702, 0, __PYX_ERR(0, 3702, __pyx_L1_error)); /* "cuda/cudart.pyx":3703 * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * self._ptr[0] = init_value */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":3704 * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * self._ptr[0] = init_value * else: */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaMipmappedArray_t__val); /* "cuda/cudart.pyx":3705 * if _ptr == 0: * self._ptr = &self.__val * self._ptr[0] = init_value # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ (__pyx_v_self->_ptr[0]) = ((cudaMipmappedArray_t)__pyx_v_init_value); /* "cuda/cudart.pyx":3703 * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * self._ptr[0] = init_value */ goto __pyx_L3; } /* "cuda/cudart.pyx":3707 * self._ptr[0] = init_value * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, *args, **kwargs): * pass */ /*else*/ { __pyx_v_self->_ptr = ((cudaMipmappedArray_t *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":3702 * * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMipmappedArray_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":3708 * else: * self._ptr = _ptr * def __init__(self, *args, **kwargs): # <<<<<<<<<<<<<< * pass * def __repr__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaMipmappedArray_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1; __Pyx_INCREF(__pyx_args); __pyx_v_args = __pyx_args; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaMipmappedArray_t_2__init__(((struct __pyx_obj_4cuda_6cudart_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_6cudart_20cudaMipmappedArray_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 3708, 0, __PYX_ERR(0, 3708, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMipmappedArray_t.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":3710 * def __init__(self, *args, **kwargs): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __index__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaMipmappedArray_t_5__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaMipmappedArray_t_4__repr__(((struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaMipmappedArray_t_4__repr__(struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 3710, 0, __PYX_ERR(0, 3710, __pyx_L1_error)); /* "cuda/cudart.pyx":3711 * pass * def __repr__(self): * return '' # <<<<<<<<<<<<<< * def __index__(self): * return self.__int__() */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3711, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3711, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3711, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3711, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_cudaMipmappedArray_t, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3711, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_2, __pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3711, __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/cudart.pyx":3710 * def __init__(self, *args, **kwargs): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __index__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaMipmappedArray_t.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3712 * def __repr__(self): * return '' * def __index__(self): # <<<<<<<<<<<<<< * return self.__int__() * def __int__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaMipmappedArray_t_7__index__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaMipmappedArray_t_6__index__(((struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaMipmappedArray_t_6__index__(struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__index__", 1); __Pyx_TraceCall("__index__", __pyx_f[0], 3712, 0, __PYX_ERR(0, 3712, __pyx_L1_error)); /* "cuda/cudart.pyx":3713 * return '' * def __index__(self): * return self.__int__() # <<<<<<<<<<<<<< * def __int__(self): * return self._ptr[0] */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3713, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3713, __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/cudart.pyx":3712 * def __repr__(self): * return '' * 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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaMipmappedArray_t.__index__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3714 * def __index__(self): * return self.__int__() * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaMipmappedArray_t_9__int__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_20cudaMipmappedArray_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_6cudart_20cudaMipmappedArray_t_8__int__(((struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaMipmappedArray_t_8__int__(struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__int__", 1); __Pyx_TraceCall("__int__", __pyx_f[0], 3714, 0, __PYX_ERR(0, 3714, __pyx_L1_error)); /* "cuda/cudart.pyx":3715 * return self.__int__() * def __int__(self): * return self._ptr[0] # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3715, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":3714 * def __index__(self): * return self.__int__() * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMipmappedArray_t.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3716 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaMipmappedArray_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_6cudart_20cudaMipmappedArray_t_10getPtr, "cudaMipmappedArray_t.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_20cudaMipmappedArray_t_11getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaMipmappedArray_t_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaMipmappedArray_t_10getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_20cudaMipmappedArray_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaMipmappedArray_t_10getPtr(((struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaMipmappedArray_t_10getPtr(struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__8) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 3716, 0, __PYX_ERR(0, 3716, __pyx_L1_error)); /* "cuda/cudart.pyx":3717 * return self._ptr[0] * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * * cdef class cudaMipmappedArray_const_t: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3717, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":3716 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMipmappedArray_t.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_20cudaMipmappedArray_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_6cudart_20cudaMipmappedArray_t_12__reduce_cython__, "cudaMipmappedArray_t.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_20cudaMipmappedArray_t_13__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaMipmappedArray_t_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaMipmappedArray_t_12__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_20cudaMipmappedArray_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaMipmappedArray_t_12__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaMipmappedArray_t_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__9) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaMipmappedArray_t.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_20cudaMipmappedArray_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_6cudart_20cudaMipmappedArray_t_14__setstate_cython__, "cudaMipmappedArray_t.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_20cudaMipmappedArray_t_15__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaMipmappedArray_t_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaMipmappedArray_t_14__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_20cudaMipmappedArray_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMipmappedArray_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaMipmappedArray_t_14__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_t *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaMipmappedArray_t_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__10) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaMipmappedArray_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3730 * * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_26cudaMipmappedArray_const_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_26cudaMipmappedArray_const_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_void_ptr __pyx_v_init_value; __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_init_value,&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_init_value); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 3730, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[1] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 3730, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 3730, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_init_value = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 3730, __pyx_L3_error) } else { __pyx_v_init_value = ((__pyx_t_4cuda_6cudart_void_ptr)0); } if (values[1]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 3730, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 3730, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMipmappedArray_const_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_26cudaMipmappedArray_const_t___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_const_t *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_26cudaMipmappedArray_const_t___cinit__(struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_const_t *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v_init_value, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 3730, 0, __PYX_ERR(0, 3730, __pyx_L1_error)); /* "cuda/cudart.pyx":3731 * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * self._ptr[0] = init_value */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":3732 * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * self._ptr[0] = init_value * else: */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaMipmappedArray_const_t__val); /* "cuda/cudart.pyx":3733 * if _ptr == 0: * self._ptr = &self.__val * self._ptr[0] = init_value # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ (__pyx_v_self->_ptr[0]) = ((cudaMipmappedArray_const_t)__pyx_v_init_value); /* "cuda/cudart.pyx":3731 * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * self._ptr[0] = init_value */ goto __pyx_L3; } /* "cuda/cudart.pyx":3735 * self._ptr[0] = init_value * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, *args, **kwargs): * pass */ /*else*/ { __pyx_v_self->_ptr = ((cudaMipmappedArray_const_t *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":3730 * * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMipmappedArray_const_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":3736 * else: * self._ptr = _ptr * def __init__(self, *args, **kwargs): # <<<<<<<<<<<<<< * pass * def __repr__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_26cudaMipmappedArray_const_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1; __Pyx_INCREF(__pyx_args); __pyx_v_args = __pyx_args; __pyx_r = __pyx_pf_4cuda_6cudart_26cudaMipmappedArray_const_t_2__init__(((struct __pyx_obj_4cuda_6cudart_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_6cudart_26cudaMipmappedArray_const_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_const_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 3736, 0, __PYX_ERR(0, 3736, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMipmappedArray_const_t.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":3738 * def __init__(self, *args, **kwargs): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __index__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_26cudaMipmappedArray_const_t_5__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_26cudaMipmappedArray_const_t_4__repr__(((struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_const_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_26cudaMipmappedArray_const_t_4__repr__(struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_const_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 3738, 0, __PYX_ERR(0, 3738, __pyx_L1_error)); /* "cuda/cudart.pyx":3739 * pass * def __repr__(self): * return '' # <<<<<<<<<<<<<< * def __index__(self): * return self.__int__() */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3739, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3739, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3739, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3739, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_cudaMipmappedArray_const_t, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3739, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_2, __pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3739, __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/cudart.pyx":3738 * def __init__(self, *args, **kwargs): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __index__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaMipmappedArray_const_t.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3740 * def __repr__(self): * return '' * def __index__(self): # <<<<<<<<<<<<<< * return self.__int__() * def __int__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_26cudaMipmappedArray_const_t_7__index__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_26cudaMipmappedArray_const_t_6__index__(((struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_const_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_26cudaMipmappedArray_const_t_6__index__(struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_const_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__index__", 1); __Pyx_TraceCall("__index__", __pyx_f[0], 3740, 0, __PYX_ERR(0, 3740, __pyx_L1_error)); /* "cuda/cudart.pyx":3741 * return '' * def __index__(self): * return self.__int__() # <<<<<<<<<<<<<< * def __int__(self): * return self._ptr[0] */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3741, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3741, __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/cudart.pyx":3740 * def __repr__(self): * return '' * 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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaMipmappedArray_const_t.__index__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3742 * def __index__(self): * return self.__int__() * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_26cudaMipmappedArray_const_t_9__int__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_26cudaMipmappedArray_const_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_6cudart_26cudaMipmappedArray_const_t_8__int__(((struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_const_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_26cudaMipmappedArray_const_t_8__int__(struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_const_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__int__", 1); __Pyx_TraceCall("__int__", __pyx_f[0], 3742, 0, __PYX_ERR(0, 3742, __pyx_L1_error)); /* "cuda/cudart.pyx":3743 * return self.__int__() * def __int__(self): * return self._ptr[0] # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3743, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":3742 * def __index__(self): * return self.__int__() * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMipmappedArray_const_t.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3744 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_26cudaMipmappedArray_const_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_6cudart_26cudaMipmappedArray_const_t_10getPtr, "cudaMipmappedArray_const_t.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_26cudaMipmappedArray_const_t_11getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_26cudaMipmappedArray_const_t_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_26cudaMipmappedArray_const_t_10getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_26cudaMipmappedArray_const_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_26cudaMipmappedArray_const_t_10getPtr(((struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_const_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_26cudaMipmappedArray_const_t_10getPtr(struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_const_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__11) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 3744, 0, __PYX_ERR(0, 3744, __pyx_L1_error)); /* "cuda/cudart.pyx":3745 * return self._ptr[0] * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * * cdef class cudaGraphicsResource_t: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3745, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":3744 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMipmappedArray_const_t.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_26cudaMipmappedArray_const_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_6cudart_26cudaMipmappedArray_const_t_12__reduce_cython__, "cudaMipmappedArray_const_t.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_26cudaMipmappedArray_const_t_13__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_26cudaMipmappedArray_const_t_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_26cudaMipmappedArray_const_t_12__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_26cudaMipmappedArray_const_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_26cudaMipmappedArray_const_t_12__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_const_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_26cudaMipmappedArray_const_t_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_const_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__12) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaMipmappedArray_const_t.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_26cudaMipmappedArray_const_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_6cudart_26cudaMipmappedArray_const_t_14__setstate_cython__, "cudaMipmappedArray_const_t.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_26cudaMipmappedArray_const_t_15__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_26cudaMipmappedArray_const_t_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_26cudaMipmappedArray_const_t_14__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_26cudaMipmappedArray_const_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_6cudart_26cudaMipmappedArray_const_t_14__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_const_t *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_26cudaMipmappedArray_const_t_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_const_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__13) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaMipmappedArray_const_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3758 * * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_22cudaGraphicsResource_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_22cudaGraphicsResource_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_void_ptr __pyx_v_init_value; __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_init_value,&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_init_value); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 3758, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[1] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 3758, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 3758, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_init_value = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 3758, __pyx_L3_error) } else { __pyx_v_init_value = ((__pyx_t_4cuda_6cudart_void_ptr)0); } if (values[1]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 3758, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 3758, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphicsResource_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_22cudaGraphicsResource_t___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaGraphicsResource_t *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_22cudaGraphicsResource_t___cinit__(struct __pyx_obj_4cuda_6cudart_cudaGraphicsResource_t *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v_init_value, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 3758, 0, __PYX_ERR(0, 3758, __pyx_L1_error)); /* "cuda/cudart.pyx":3759 * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * self._ptr[0] = init_value */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":3760 * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * self._ptr[0] = init_value * else: */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaGraphicsResource_t__val); /* "cuda/cudart.pyx":3761 * if _ptr == 0: * self._ptr = &self.__val * self._ptr[0] = init_value # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ (__pyx_v_self->_ptr[0]) = ((cudaGraphicsResource_t)__pyx_v_init_value); /* "cuda/cudart.pyx":3759 * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * self._ptr[0] = init_value */ goto __pyx_L3; } /* "cuda/cudart.pyx":3763 * self._ptr[0] = init_value * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, *args, **kwargs): * pass */ /*else*/ { __pyx_v_self->_ptr = ((cudaGraphicsResource_t *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":3758 * * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphicsResource_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":3764 * else: * self._ptr = _ptr * def __init__(self, *args, **kwargs): # <<<<<<<<<<<<<< * pass * def __repr__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_22cudaGraphicsResource_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1; __Pyx_INCREF(__pyx_args); __pyx_v_args = __pyx_args; __pyx_r = __pyx_pf_4cuda_6cudart_22cudaGraphicsResource_t_2__init__(((struct __pyx_obj_4cuda_6cudart_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_6cudart_22cudaGraphicsResource_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaGraphicsResource_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 3764, 0, __PYX_ERR(0, 3764, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphicsResource_t.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":3766 * def __init__(self, *args, **kwargs): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __index__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_22cudaGraphicsResource_t_5__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_22cudaGraphicsResource_t_4__repr__(((struct __pyx_obj_4cuda_6cudart_cudaGraphicsResource_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaGraphicsResource_t_4__repr__(struct __pyx_obj_4cuda_6cudart_cudaGraphicsResource_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 3766, 0, __PYX_ERR(0, 3766, __pyx_L1_error)); /* "cuda/cudart.pyx":3767 * pass * def __repr__(self): * return '' # <<<<<<<<<<<<<< * def __index__(self): * return self.__int__() */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3767, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3767, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3767, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3767, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_cudaGraphicsResource_t, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3767, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_2, __pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3767, __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/cudart.pyx":3766 * def __init__(self, *args, **kwargs): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __index__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaGraphicsResource_t.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3768 * def __repr__(self): * return '' * def __index__(self): # <<<<<<<<<<<<<< * return self.__int__() * def __int__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_22cudaGraphicsResource_t_7__index__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_22cudaGraphicsResource_t_6__index__(((struct __pyx_obj_4cuda_6cudart_cudaGraphicsResource_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaGraphicsResource_t_6__index__(struct __pyx_obj_4cuda_6cudart_cudaGraphicsResource_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__index__", 1); __Pyx_TraceCall("__index__", __pyx_f[0], 3768, 0, __PYX_ERR(0, 3768, __pyx_L1_error)); /* "cuda/cudart.pyx":3769 * return '' * def __index__(self): * return self.__int__() # <<<<<<<<<<<<<< * def __int__(self): * return self._ptr[0] */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3769, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3769, __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/cudart.pyx":3768 * def __repr__(self): * return '' * 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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaGraphicsResource_t.__index__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3770 * def __index__(self): * return self.__int__() * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_22cudaGraphicsResource_t_9__int__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_22cudaGraphicsResource_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_6cudart_22cudaGraphicsResource_t_8__int__(((struct __pyx_obj_4cuda_6cudart_cudaGraphicsResource_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaGraphicsResource_t_8__int__(struct __pyx_obj_4cuda_6cudart_cudaGraphicsResource_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__int__", 1); __Pyx_TraceCall("__int__", __pyx_f[0], 3770, 0, __PYX_ERR(0, 3770, __pyx_L1_error)); /* "cuda/cudart.pyx":3771 * return self.__int__() * def __int__(self): * return self._ptr[0] # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3771, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":3770 * def __index__(self): * return self.__int__() * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaGraphicsResource_t.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3772 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_22cudaGraphicsResource_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_6cudart_22cudaGraphicsResource_t_10getPtr, "cudaGraphicsResource_t.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_22cudaGraphicsResource_t_11getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_22cudaGraphicsResource_t_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_22cudaGraphicsResource_t_10getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_22cudaGraphicsResource_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_22cudaGraphicsResource_t_10getPtr(((struct __pyx_obj_4cuda_6cudart_cudaGraphicsResource_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaGraphicsResource_t_10getPtr(struct __pyx_obj_4cuda_6cudart_cudaGraphicsResource_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__14) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 3772, 0, __PYX_ERR(0, 3772, __pyx_L1_error)); /* "cuda/cudart.pyx":3773 * return self._ptr[0] * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * * cdef class cudaExternalMemory_t: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3773, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":3772 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaGraphicsResource_t.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_22cudaGraphicsResource_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_6cudart_22cudaGraphicsResource_t_12__reduce_cython__, "cudaGraphicsResource_t.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_22cudaGraphicsResource_t_13__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_22cudaGraphicsResource_t_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_22cudaGraphicsResource_t_12__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_22cudaGraphicsResource_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_22cudaGraphicsResource_t_12__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaGraphicsResource_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaGraphicsResource_t_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaGraphicsResource_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__15) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaGraphicsResource_t.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_22cudaGraphicsResource_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_6cudart_22cudaGraphicsResource_t_14__setstate_cython__, "cudaGraphicsResource_t.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_22cudaGraphicsResource_t_15__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_22cudaGraphicsResource_t_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_22cudaGraphicsResource_t_14__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_22cudaGraphicsResource_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphicsResource_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_22cudaGraphicsResource_t_14__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaGraphicsResource_t *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaGraphicsResource_t_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaGraphicsResource_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__16) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaGraphicsResource_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3786 * * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaExternalMemory_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_20cudaExternalMemory_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_void_ptr __pyx_v_init_value; __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_init_value,&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_init_value); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 3786, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[1] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 3786, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 3786, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_init_value = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 3786, __pyx_L3_error) } else { __pyx_v_init_value = ((__pyx_t_4cuda_6cudart_void_ptr)0); } if (values[1]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 3786, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 3786, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaExternalMemory_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaExternalMemory_t___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemory_t *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_20cudaExternalMemory_t___cinit__(struct __pyx_obj_4cuda_6cudart_cudaExternalMemory_t *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v_init_value, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 3786, 0, __PYX_ERR(0, 3786, __pyx_L1_error)); /* "cuda/cudart.pyx":3787 * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * self._ptr[0] = init_value */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":3788 * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * self._ptr[0] = init_value * else: */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaExternalMemory_t__val); /* "cuda/cudart.pyx":3789 * if _ptr == 0: * self._ptr = &self.__val * self._ptr[0] = init_value # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ (__pyx_v_self->_ptr[0]) = ((cudaExternalMemory_t)__pyx_v_init_value); /* "cuda/cudart.pyx":3787 * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * self._ptr[0] = init_value */ goto __pyx_L3; } /* "cuda/cudart.pyx":3791 * self._ptr[0] = init_value * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, *args, **kwargs): * pass */ /*else*/ { __pyx_v_self->_ptr = ((cudaExternalMemory_t *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":3786 * * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalMemory_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":3792 * else: * self._ptr = _ptr * def __init__(self, *args, **kwargs): # <<<<<<<<<<<<<< * pass * def __repr__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaExternalMemory_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1; __Pyx_INCREF(__pyx_args); __pyx_v_args = __pyx_args; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaExternalMemory_t_2__init__(((struct __pyx_obj_4cuda_6cudart_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_6cudart_20cudaExternalMemory_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExternalMemory_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 3792, 0, __PYX_ERR(0, 3792, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalMemory_t.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":3794 * def __init__(self, *args, **kwargs): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __index__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaExternalMemory_t_5__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaExternalMemory_t_4__repr__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemory_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaExternalMemory_t_4__repr__(struct __pyx_obj_4cuda_6cudart_cudaExternalMemory_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 3794, 0, __PYX_ERR(0, 3794, __pyx_L1_error)); /* "cuda/cudart.pyx":3795 * pass * def __repr__(self): * return '' # <<<<<<<<<<<<<< * def __index__(self): * return self.__int__() */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3795, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3795, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3795, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3795, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_cudaExternalMemory_t, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3795, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_2, __pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3795, __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/cudart.pyx":3794 * def __init__(self, *args, **kwargs): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __index__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaExternalMemory_t.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3796 * def __repr__(self): * return '' * def __index__(self): # <<<<<<<<<<<<<< * return self.__int__() * def __int__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaExternalMemory_t_7__index__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaExternalMemory_t_6__index__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemory_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaExternalMemory_t_6__index__(struct __pyx_obj_4cuda_6cudart_cudaExternalMemory_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__index__", 1); __Pyx_TraceCall("__index__", __pyx_f[0], 3796, 0, __PYX_ERR(0, 3796, __pyx_L1_error)); /* "cuda/cudart.pyx":3797 * return '' * def __index__(self): * return self.__int__() # <<<<<<<<<<<<<< * def __int__(self): * return self._ptr[0] */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3797, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3797, __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/cudart.pyx":3796 * def __repr__(self): * return '' * 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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaExternalMemory_t.__index__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3798 * def __index__(self): * return self.__int__() * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaExternalMemory_t_9__int__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_20cudaExternalMemory_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_6cudart_20cudaExternalMemory_t_8__int__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemory_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaExternalMemory_t_8__int__(struct __pyx_obj_4cuda_6cudart_cudaExternalMemory_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__int__", 1); __Pyx_TraceCall("__int__", __pyx_f[0], 3798, 0, __PYX_ERR(0, 3798, __pyx_L1_error)); /* "cuda/cudart.pyx":3799 * return self.__int__() * def __int__(self): * return self._ptr[0] # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3799, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":3798 * def __index__(self): * return self.__int__() * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaExternalMemory_t.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3800 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaExternalMemory_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_6cudart_20cudaExternalMemory_t_10getPtr, "cudaExternalMemory_t.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_20cudaExternalMemory_t_11getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaExternalMemory_t_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaExternalMemory_t_10getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_20cudaExternalMemory_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaExternalMemory_t_10getPtr(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemory_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaExternalMemory_t_10getPtr(struct __pyx_obj_4cuda_6cudart_cudaExternalMemory_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__17) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 3800, 0, __PYX_ERR(0, 3800, __pyx_L1_error)); /* "cuda/cudart.pyx":3801 * return self._ptr[0] * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * * cdef class cudaExternalSemaphore_t: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3801, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":3800 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaExternalMemory_t.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_20cudaExternalMemory_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_6cudart_20cudaExternalMemory_t_12__reduce_cython__, "cudaExternalMemory_t.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_20cudaExternalMemory_t_13__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaExternalMemory_t_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaExternalMemory_t_12__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_20cudaExternalMemory_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaExternalMemory_t_12__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemory_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaExternalMemory_t_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExternalMemory_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__18) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaExternalMemory_t.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_20cudaExternalMemory_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_6cudart_20cudaExternalMemory_t_14__setstate_cython__, "cudaExternalMemory_t.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_20cudaExternalMemory_t_15__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaExternalMemory_t_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaExternalMemory_t_14__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_20cudaExternalMemory_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaExternalMemory_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaExternalMemory_t_14__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemory_t *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaExternalMemory_t_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExternalMemory_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__19) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaExternalMemory_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3814 * * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_23cudaExternalSemaphore_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_23cudaExternalSemaphore_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_void_ptr __pyx_v_init_value; __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_init_value,&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_init_value); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 3814, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[1] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 3814, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 3814, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_init_value = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 3814, __pyx_L3_error) } else { __pyx_v_init_value = ((__pyx_t_4cuda_6cudart_void_ptr)0); } if (values[1]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 3814, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 3814, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphore_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_23cudaExternalSemaphore_t___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphore_t *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_23cudaExternalSemaphore_t___cinit__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphore_t *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v_init_value, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 3814, 0, __PYX_ERR(0, 3814, __pyx_L1_error)); /* "cuda/cudart.pyx":3815 * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * self._ptr[0] = init_value */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":3816 * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * self._ptr[0] = init_value * else: */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaExternalSemaphore_t__val); /* "cuda/cudart.pyx":3817 * if _ptr == 0: * self._ptr = &self.__val * self._ptr[0] = init_value # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ (__pyx_v_self->_ptr[0]) = ((cudaExternalSemaphore_t)__pyx_v_init_value); /* "cuda/cudart.pyx":3815 * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * self._ptr[0] = init_value */ goto __pyx_L3; } /* "cuda/cudart.pyx":3819 * self._ptr[0] = init_value * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, *args, **kwargs): * pass */ /*else*/ { __pyx_v_self->_ptr = ((cudaExternalSemaphore_t *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":3814 * * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphore_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":3820 * else: * self._ptr = _ptr * def __init__(self, *args, **kwargs): # <<<<<<<<<<<<<< * pass * def __repr__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_23cudaExternalSemaphore_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1; __Pyx_INCREF(__pyx_args); __pyx_v_args = __pyx_args; __pyx_r = __pyx_pf_4cuda_6cudart_23cudaExternalSemaphore_t_2__init__(((struct __pyx_obj_4cuda_6cudart_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_6cudart_23cudaExternalSemaphore_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphore_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 3820, 0, __PYX_ERR(0, 3820, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphore_t.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":3822 * def __init__(self, *args, **kwargs): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __index__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_23cudaExternalSemaphore_t_5__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_23cudaExternalSemaphore_t_4__repr__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphore_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_23cudaExternalSemaphore_t_4__repr__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphore_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 3822, 0, __PYX_ERR(0, 3822, __pyx_L1_error)); /* "cuda/cudart.pyx":3823 * pass * def __repr__(self): * return '' # <<<<<<<<<<<<<< * def __index__(self): * return self.__int__() */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3823, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3823, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3823, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3823, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_cudaExternalSemaphore_t, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3823, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_2, __pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3823, __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/cudart.pyx":3822 * def __init__(self, *args, **kwargs): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __index__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphore_t.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3824 * def __repr__(self): * return '' * def __index__(self): # <<<<<<<<<<<<<< * return self.__int__() * def __int__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_23cudaExternalSemaphore_t_7__index__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_23cudaExternalSemaphore_t_6__index__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphore_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_23cudaExternalSemaphore_t_6__index__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphore_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__index__", 1); __Pyx_TraceCall("__index__", __pyx_f[0], 3824, 0, __PYX_ERR(0, 3824, __pyx_L1_error)); /* "cuda/cudart.pyx":3825 * return '' * def __index__(self): * return self.__int__() # <<<<<<<<<<<<<< * def __int__(self): * return self._ptr[0] */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3825, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3825, __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/cudart.pyx":3824 * def __repr__(self): * return '' * 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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphore_t.__index__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3826 * def __index__(self): * return self.__int__() * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_23cudaExternalSemaphore_t_9__int__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_23cudaExternalSemaphore_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_6cudart_23cudaExternalSemaphore_t_8__int__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphore_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_23cudaExternalSemaphore_t_8__int__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphore_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__int__", 1); __Pyx_TraceCall("__int__", __pyx_f[0], 3826, 0, __PYX_ERR(0, 3826, __pyx_L1_error)); /* "cuda/cudart.pyx":3827 * return self.__int__() * def __int__(self): * return self._ptr[0] # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3827, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":3826 * def __index__(self): * return self.__int__() * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphore_t.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3828 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_23cudaExternalSemaphore_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_6cudart_23cudaExternalSemaphore_t_10getPtr, "cudaExternalSemaphore_t.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_23cudaExternalSemaphore_t_11getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_23cudaExternalSemaphore_t_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_23cudaExternalSemaphore_t_10getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_23cudaExternalSemaphore_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_23cudaExternalSemaphore_t_10getPtr(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphore_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_23cudaExternalSemaphore_t_10getPtr(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphore_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__20) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 3828, 0, __PYX_ERR(0, 3828, __pyx_L1_error)); /* "cuda/cudart.pyx":3829 * return self._ptr[0] * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * * cdef class cudaKernel_t: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3829, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":3828 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphore_t.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_23cudaExternalSemaphore_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_6cudart_23cudaExternalSemaphore_t_12__reduce_cython__, "cudaExternalSemaphore_t.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_23cudaExternalSemaphore_t_13__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_23cudaExternalSemaphore_t_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_23cudaExternalSemaphore_t_12__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_23cudaExternalSemaphore_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_23cudaExternalSemaphore_t_12__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphore_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_23cudaExternalSemaphore_t_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphore_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__21) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaExternalSemaphore_t.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_23cudaExternalSemaphore_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_6cudart_23cudaExternalSemaphore_t_14__setstate_cython__, "cudaExternalSemaphore_t.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_23cudaExternalSemaphore_t_15__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_23cudaExternalSemaphore_t_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_23cudaExternalSemaphore_t_14__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_23cudaExternalSemaphore_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphore_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_23cudaExternalSemaphore_t_14__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphore_t *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_23cudaExternalSemaphore_t_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphore_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__22) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaExternalSemaphore_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3842 * * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12cudaKernel_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_12cudaKernel_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_void_ptr __pyx_v_init_value; __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_init_value,&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_init_value); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 3842, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[1] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 3842, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 3842, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_init_value = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 3842, __pyx_L3_error) } else { __pyx_v_init_value = ((__pyx_t_4cuda_6cudart_void_ptr)0); } if (values[1]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 3842, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 3842, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaKernel_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_12cudaKernel_t___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaKernel_t *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12cudaKernel_t___cinit__(struct __pyx_obj_4cuda_6cudart_cudaKernel_t *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v_init_value, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 3842, 0, __PYX_ERR(0, 3842, __pyx_L1_error)); /* "cuda/cudart.pyx":3843 * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * self._ptr[0] = init_value */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":3844 * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * self._ptr[0] = init_value * else: */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaKernel_t__val); /* "cuda/cudart.pyx":3845 * if _ptr == 0: * self._ptr = &self.__val * self._ptr[0] = init_value # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ (__pyx_v_self->_ptr[0]) = ((cudaKernel_t)__pyx_v_init_value); /* "cuda/cudart.pyx":3843 * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * self._ptr[0] = init_value */ goto __pyx_L3; } /* "cuda/cudart.pyx":3847 * self._ptr[0] = init_value * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, *args, **kwargs): * pass */ /*else*/ { __pyx_v_self->_ptr = ((cudaKernel_t *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":3842 * * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaKernel_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":3848 * else: * self._ptr = _ptr * def __init__(self, *args, **kwargs): # <<<<<<<<<<<<<< * pass * def __repr__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12cudaKernel_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1; __Pyx_INCREF(__pyx_args); __pyx_v_args = __pyx_args; __pyx_r = __pyx_pf_4cuda_6cudart_12cudaKernel_t_2__init__(((struct __pyx_obj_4cuda_6cudart_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_6cudart_12cudaKernel_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaKernel_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 3848, 0, __PYX_ERR(0, 3848, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaKernel_t.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":3850 * def __init__(self, *args, **kwargs): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __index__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12cudaKernel_t_5__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12cudaKernel_t_4__repr__(((struct __pyx_obj_4cuda_6cudart_cudaKernel_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12cudaKernel_t_4__repr__(struct __pyx_obj_4cuda_6cudart_cudaKernel_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 3850, 0, __PYX_ERR(0, 3850, __pyx_L1_error)); /* "cuda/cudart.pyx":3851 * pass * def __repr__(self): * return '' # <<<<<<<<<<<<<< * def __index__(self): * return self.__int__() */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3851, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3851, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3851, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3851, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_cudaKernel_t, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3851, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_2, __pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3851, __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/cudart.pyx":3850 * def __init__(self, *args, **kwargs): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __index__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaKernel_t.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3852 * def __repr__(self): * return '' * def __index__(self): # <<<<<<<<<<<<<< * return self.__int__() * def __int__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12cudaKernel_t_7__index__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12cudaKernel_t_6__index__(((struct __pyx_obj_4cuda_6cudart_cudaKernel_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12cudaKernel_t_6__index__(struct __pyx_obj_4cuda_6cudart_cudaKernel_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__index__", 1); __Pyx_TraceCall("__index__", __pyx_f[0], 3852, 0, __PYX_ERR(0, 3852, __pyx_L1_error)); /* "cuda/cudart.pyx":3853 * return '' * def __index__(self): * return self.__int__() # <<<<<<<<<<<<<< * def __int__(self): * return self._ptr[0] */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3853, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3853, __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/cudart.pyx":3852 * def __repr__(self): * return '' * 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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaKernel_t.__index__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3854 * def __index__(self): * return self.__int__() * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12cudaKernel_t_9__int__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_12cudaKernel_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_6cudart_12cudaKernel_t_8__int__(((struct __pyx_obj_4cuda_6cudart_cudaKernel_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12cudaKernel_t_8__int__(struct __pyx_obj_4cuda_6cudart_cudaKernel_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__int__", 1); __Pyx_TraceCall("__int__", __pyx_f[0], 3854, 0, __PYX_ERR(0, 3854, __pyx_L1_error)); /* "cuda/cudart.pyx":3855 * return self.__int__() * def __int__(self): * return self._ptr[0] # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3855, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":3854 * def __index__(self): * return self.__int__() * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaKernel_t.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3856 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12cudaKernel_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_6cudart_12cudaKernel_t_10getPtr, "cudaKernel_t.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_12cudaKernel_t_11getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12cudaKernel_t_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12cudaKernel_t_10getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_12cudaKernel_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_12cudaKernel_t_10getPtr(((struct __pyx_obj_4cuda_6cudart_cudaKernel_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12cudaKernel_t_10getPtr(struct __pyx_obj_4cuda_6cudart_cudaKernel_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__23) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 3856, 0, __PYX_ERR(0, 3856, __pyx_L1_error)); /* "cuda/cudart.pyx":3857 * return self._ptr[0] * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * * cdef class cudaGraphDeviceNode_t: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3857, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":3856 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaKernel_t.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_12cudaKernel_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_6cudart_12cudaKernel_t_12__reduce_cython__, "cudaKernel_t.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_12cudaKernel_t_13__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12cudaKernel_t_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12cudaKernel_t_12__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_12cudaKernel_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_12cudaKernel_t_12__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaKernel_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12cudaKernel_t_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaKernel_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__24) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaKernel_t.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_12cudaKernel_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_6cudart_12cudaKernel_t_14__setstate_cython__, "cudaKernel_t.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_12cudaKernel_t_15__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12cudaKernel_t_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12cudaKernel_t_14__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_12cudaKernel_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaKernel_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_12cudaKernel_t_14__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaKernel_t *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12cudaKernel_t_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaKernel_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__25) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaKernel_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3870 * * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_21cudaGraphDeviceNode_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_21cudaGraphDeviceNode_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_void_ptr __pyx_v_init_value; __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_init_value,&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_init_value); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 3870, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[1] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 3870, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 3870, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_init_value = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 3870, __pyx_L3_error) } else { __pyx_v_init_value = ((__pyx_t_4cuda_6cudart_void_ptr)0); } if (values[1]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 3870, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 3870, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphDeviceNode_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_21cudaGraphDeviceNode_t___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaGraphDeviceNode_t *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_21cudaGraphDeviceNode_t___cinit__(struct __pyx_obj_4cuda_6cudart_cudaGraphDeviceNode_t *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v_init_value, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 3870, 0, __PYX_ERR(0, 3870, __pyx_L1_error)); /* "cuda/cudart.pyx":3871 * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * self._ptr[0] = init_value */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":3872 * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * self._ptr[0] = init_value * else: */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaGraphDeviceNode_t__val); /* "cuda/cudart.pyx":3873 * if _ptr == 0: * self._ptr = &self.__val * self._ptr[0] = init_value # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ (__pyx_v_self->_ptr[0]) = ((cudaGraphDeviceNode_t)__pyx_v_init_value); /* "cuda/cudart.pyx":3871 * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * self._ptr[0] = init_value */ goto __pyx_L3; } /* "cuda/cudart.pyx":3875 * self._ptr[0] = init_value * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, *args, **kwargs): * pass */ /*else*/ { __pyx_v_self->_ptr = ((cudaGraphDeviceNode_t *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":3870 * * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphDeviceNode_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":3876 * else: * self._ptr = _ptr * def __init__(self, *args, **kwargs): # <<<<<<<<<<<<<< * pass * def __repr__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_21cudaGraphDeviceNode_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1; __Pyx_INCREF(__pyx_args); __pyx_v_args = __pyx_args; __pyx_r = __pyx_pf_4cuda_6cudart_21cudaGraphDeviceNode_t_2__init__(((struct __pyx_obj_4cuda_6cudart_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_6cudart_21cudaGraphDeviceNode_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaGraphDeviceNode_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 3876, 0, __PYX_ERR(0, 3876, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphDeviceNode_t.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":3878 * def __init__(self, *args, **kwargs): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __index__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_21cudaGraphDeviceNode_t_5__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_21cudaGraphDeviceNode_t_4__repr__(((struct __pyx_obj_4cuda_6cudart_cudaGraphDeviceNode_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaGraphDeviceNode_t_4__repr__(struct __pyx_obj_4cuda_6cudart_cudaGraphDeviceNode_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 3878, 0, __PYX_ERR(0, 3878, __pyx_L1_error)); /* "cuda/cudart.pyx":3879 * pass * def __repr__(self): * return '' # <<<<<<<<<<<<<< * def __index__(self): * return self.__int__() */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3879, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3879, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3879, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3879, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_cudaGraphDeviceNode_t, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3879, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_2, __pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3879, __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/cudart.pyx":3878 * def __init__(self, *args, **kwargs): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __index__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaGraphDeviceNode_t.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3880 * def __repr__(self): * return '' * def __index__(self): # <<<<<<<<<<<<<< * return self.__int__() * def __int__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_21cudaGraphDeviceNode_t_7__index__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_21cudaGraphDeviceNode_t_6__index__(((struct __pyx_obj_4cuda_6cudart_cudaGraphDeviceNode_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaGraphDeviceNode_t_6__index__(struct __pyx_obj_4cuda_6cudart_cudaGraphDeviceNode_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__index__", 1); __Pyx_TraceCall("__index__", __pyx_f[0], 3880, 0, __PYX_ERR(0, 3880, __pyx_L1_error)); /* "cuda/cudart.pyx":3881 * return '' * def __index__(self): * return self.__int__() # <<<<<<<<<<<<<< * def __int__(self): * return self._ptr[0] */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3881, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3881, __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/cudart.pyx":3880 * def __repr__(self): * return '' * 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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaGraphDeviceNode_t.__index__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3882 * def __index__(self): * return self.__int__() * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_21cudaGraphDeviceNode_t_9__int__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_21cudaGraphDeviceNode_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_6cudart_21cudaGraphDeviceNode_t_8__int__(((struct __pyx_obj_4cuda_6cudart_cudaGraphDeviceNode_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaGraphDeviceNode_t_8__int__(struct __pyx_obj_4cuda_6cudart_cudaGraphDeviceNode_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__int__", 1); __Pyx_TraceCall("__int__", __pyx_f[0], 3882, 0, __PYX_ERR(0, 3882, __pyx_L1_error)); /* "cuda/cudart.pyx":3883 * return self.__int__() * def __int__(self): * return self._ptr[0] # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3883, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":3882 * def __index__(self): * return self.__int__() * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaGraphDeviceNode_t.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3884 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_21cudaGraphDeviceNode_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_6cudart_21cudaGraphDeviceNode_t_10getPtr, "cudaGraphDeviceNode_t.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_21cudaGraphDeviceNode_t_11getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_21cudaGraphDeviceNode_t_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_21cudaGraphDeviceNode_t_10getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_21cudaGraphDeviceNode_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_21cudaGraphDeviceNode_t_10getPtr(((struct __pyx_obj_4cuda_6cudart_cudaGraphDeviceNode_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaGraphDeviceNode_t_10getPtr(struct __pyx_obj_4cuda_6cudart_cudaGraphDeviceNode_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__26) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 3884, 0, __PYX_ERR(0, 3884, __pyx_L1_error)); /* "cuda/cudart.pyx":3885 * return self._ptr[0] * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * * cdef class cudaAsyncCallbackHandle_t: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3885, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":3884 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaGraphDeviceNode_t.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_21cudaGraphDeviceNode_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_6cudart_21cudaGraphDeviceNode_t_12__reduce_cython__, "cudaGraphDeviceNode_t.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_21cudaGraphDeviceNode_t_13__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_21cudaGraphDeviceNode_t_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_21cudaGraphDeviceNode_t_12__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_21cudaGraphDeviceNode_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_21cudaGraphDeviceNode_t_12__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaGraphDeviceNode_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaGraphDeviceNode_t_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaGraphDeviceNode_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__27) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaGraphDeviceNode_t.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_21cudaGraphDeviceNode_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_6cudart_21cudaGraphDeviceNode_t_14__setstate_cython__, "cudaGraphDeviceNode_t.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_21cudaGraphDeviceNode_t_15__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_21cudaGraphDeviceNode_t_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_21cudaGraphDeviceNode_t_14__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_21cudaGraphDeviceNode_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphDeviceNode_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_21cudaGraphDeviceNode_t_14__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaGraphDeviceNode_t *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaGraphDeviceNode_t_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaGraphDeviceNode_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__28) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaGraphDeviceNode_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3898 * * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_25cudaAsyncCallbackHandle_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_25cudaAsyncCallbackHandle_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_void_ptr __pyx_v_init_value; __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_init_value,&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_init_value); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 3898, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[1] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 3898, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 3898, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_init_value = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 3898, __pyx_L3_error) } else { __pyx_v_init_value = ((__pyx_t_4cuda_6cudart_void_ptr)0); } if (values[1]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 3898, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 3898, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaAsyncCallbackHandle_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_25cudaAsyncCallbackHandle_t___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaAsyncCallbackHandle_t *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_25cudaAsyncCallbackHandle_t___cinit__(struct __pyx_obj_4cuda_6cudart_cudaAsyncCallbackHandle_t *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v_init_value, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 3898, 0, __PYX_ERR(0, 3898, __pyx_L1_error)); /* "cuda/cudart.pyx":3899 * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * self._ptr[0] = init_value */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":3900 * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * self._ptr[0] = init_value * else: */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaAsyncCallbackHandle_t__val); /* "cuda/cudart.pyx":3901 * if _ptr == 0: * self._ptr = &self.__val * self._ptr[0] = init_value # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ (__pyx_v_self->_ptr[0]) = ((cudaAsyncCallbackHandle_t)__pyx_v_init_value); /* "cuda/cudart.pyx":3899 * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * self._ptr[0] = init_value */ goto __pyx_L3; } /* "cuda/cudart.pyx":3903 * self._ptr[0] = init_value * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, *args, **kwargs): * pass */ /*else*/ { __pyx_v_self->_ptr = ((cudaAsyncCallbackHandle_t *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":3898 * * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaAsyncCallbackHandle_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":3904 * else: * self._ptr = _ptr * def __init__(self, *args, **kwargs): # <<<<<<<<<<<<<< * pass * def __repr__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_25cudaAsyncCallbackHandle_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1; __Pyx_INCREF(__pyx_args); __pyx_v_args = __pyx_args; __pyx_r = __pyx_pf_4cuda_6cudart_25cudaAsyncCallbackHandle_t_2__init__(((struct __pyx_obj_4cuda_6cudart_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_6cudart_25cudaAsyncCallbackHandle_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaAsyncCallbackHandle_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 3904, 0, __PYX_ERR(0, 3904, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaAsyncCallbackHandle_t.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":3906 * def __init__(self, *args, **kwargs): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __index__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_25cudaAsyncCallbackHandle_t_5__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_25cudaAsyncCallbackHandle_t_4__repr__(((struct __pyx_obj_4cuda_6cudart_cudaAsyncCallbackHandle_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaAsyncCallbackHandle_t_4__repr__(struct __pyx_obj_4cuda_6cudart_cudaAsyncCallbackHandle_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 3906, 0, __PYX_ERR(0, 3906, __pyx_L1_error)); /* "cuda/cudart.pyx":3907 * pass * def __repr__(self): * return '' # <<<<<<<<<<<<<< * def __index__(self): * return self.__int__() */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3907, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3907, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3907, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3907, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_cudaAsyncCallbackHandle_t, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3907, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_2, __pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3907, __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/cudart.pyx":3906 * def __init__(self, *args, **kwargs): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __index__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaAsyncCallbackHandle_t.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3908 * def __repr__(self): * return '' * def __index__(self): # <<<<<<<<<<<<<< * return self.__int__() * def __int__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_25cudaAsyncCallbackHandle_t_7__index__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_25cudaAsyncCallbackHandle_t_6__index__(((struct __pyx_obj_4cuda_6cudart_cudaAsyncCallbackHandle_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaAsyncCallbackHandle_t_6__index__(struct __pyx_obj_4cuda_6cudart_cudaAsyncCallbackHandle_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__index__", 1); __Pyx_TraceCall("__index__", __pyx_f[0], 3908, 0, __PYX_ERR(0, 3908, __pyx_L1_error)); /* "cuda/cudart.pyx":3909 * return '' * def __index__(self): * return self.__int__() # <<<<<<<<<<<<<< * def __int__(self): * return self._ptr[0] */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3909, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3909, __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/cudart.pyx":3908 * def __repr__(self): * return '' * 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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaAsyncCallbackHandle_t.__index__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3910 * def __index__(self): * return self.__int__() * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_25cudaAsyncCallbackHandle_t_9__int__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_25cudaAsyncCallbackHandle_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_6cudart_25cudaAsyncCallbackHandle_t_8__int__(((struct __pyx_obj_4cuda_6cudart_cudaAsyncCallbackHandle_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaAsyncCallbackHandle_t_8__int__(struct __pyx_obj_4cuda_6cudart_cudaAsyncCallbackHandle_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__int__", 1); __Pyx_TraceCall("__int__", __pyx_f[0], 3910, 0, __PYX_ERR(0, 3910, __pyx_L1_error)); /* "cuda/cudart.pyx":3911 * return self.__int__() * def __int__(self): * return self._ptr[0] # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3911, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":3910 * def __index__(self): * return self.__int__() * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaAsyncCallbackHandle_t.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3912 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_25cudaAsyncCallbackHandle_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_6cudart_25cudaAsyncCallbackHandle_t_10getPtr, "cudaAsyncCallbackHandle_t.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_25cudaAsyncCallbackHandle_t_11getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_25cudaAsyncCallbackHandle_t_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_25cudaAsyncCallbackHandle_t_10getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_25cudaAsyncCallbackHandle_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_25cudaAsyncCallbackHandle_t_10getPtr(((struct __pyx_obj_4cuda_6cudart_cudaAsyncCallbackHandle_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaAsyncCallbackHandle_t_10getPtr(struct __pyx_obj_4cuda_6cudart_cudaAsyncCallbackHandle_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__29) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 3912, 0, __PYX_ERR(0, 3912, __pyx_L1_error)); /* "cuda/cudart.pyx":3913 * return self._ptr[0] * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * * cdef class EGLImageKHR: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3913, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":3912 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaAsyncCallbackHandle_t.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_25cudaAsyncCallbackHandle_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_6cudart_25cudaAsyncCallbackHandle_t_12__reduce_cython__, "cudaAsyncCallbackHandle_t.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_25cudaAsyncCallbackHandle_t_13__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_25cudaAsyncCallbackHandle_t_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_25cudaAsyncCallbackHandle_t_12__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_25cudaAsyncCallbackHandle_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_25cudaAsyncCallbackHandle_t_12__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaAsyncCallbackHandle_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaAsyncCallbackHandle_t_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaAsyncCallbackHandle_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__30) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaAsyncCallbackHandle_t.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_25cudaAsyncCallbackHandle_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_6cudart_25cudaAsyncCallbackHandle_t_14__setstate_cython__, "cudaAsyncCallbackHandle_t.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_25cudaAsyncCallbackHandle_t_15__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_25cudaAsyncCallbackHandle_t_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_25cudaAsyncCallbackHandle_t_14__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_25cudaAsyncCallbackHandle_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaAsyncCallbackHandle_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_25cudaAsyncCallbackHandle_t_14__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaAsyncCallbackHandle_t *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaAsyncCallbackHandle_t_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaAsyncCallbackHandle_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__31) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaAsyncCallbackHandle_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3924 * * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_11EGLImageKHR_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_11EGLImageKHR_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_void_ptr __pyx_v_init_value; __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_init_value,&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_init_value); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 3924, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[1] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 3924, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 3924, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_init_value = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 3924, __pyx_L3_error) } else { __pyx_v_init_value = ((__pyx_t_4cuda_6cudart_void_ptr)0); } if (values[1]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 3924, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 3924, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.EGLImageKHR.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_11EGLImageKHR___cinit__(((struct __pyx_obj_4cuda_6cudart_EGLImageKHR *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_11EGLImageKHR___cinit__(struct __pyx_obj_4cuda_6cudart_EGLImageKHR *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v_init_value, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 3924, 0, __PYX_ERR(0, 3924, __pyx_L1_error)); /* "cuda/cudart.pyx":3925 * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * self._ptr[0] = init_value */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":3926 * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * self._ptr[0] = init_value * else: */ __pyx_v_self->_ptr = (&__pyx_v_self->_EGLImageKHR__val); /* "cuda/cudart.pyx":3927 * if _ptr == 0: * self._ptr = &self.__val * self._ptr[0] = init_value # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ (__pyx_v_self->_ptr[0]) = ((__pyx_t_4cuda_7ccudart_EGLImageKHR)__pyx_v_init_value); /* "cuda/cudart.pyx":3925 * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * self._ptr[0] = init_value */ goto __pyx_L3; } /* "cuda/cudart.pyx":3929 * self._ptr[0] = init_value * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, *args, **kwargs): * pass */ /*else*/ { __pyx_v_self->_ptr = ((__pyx_t_4cuda_7ccudart_EGLImageKHR *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":3924 * * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.EGLImageKHR.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":3930 * else: * self._ptr = _ptr * def __init__(self, *args, **kwargs): # <<<<<<<<<<<<<< * pass * def __repr__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_11EGLImageKHR_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1; __Pyx_INCREF(__pyx_args); __pyx_v_args = __pyx_args; __pyx_r = __pyx_pf_4cuda_6cudart_11EGLImageKHR_2__init__(((struct __pyx_obj_4cuda_6cudart_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_6cudart_11EGLImageKHR_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_EGLImageKHR *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 3930, 0, __PYX_ERR(0, 3930, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.EGLImageKHR.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":3932 * def __init__(self, *args, **kwargs): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __index__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_11EGLImageKHR_5__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_11EGLImageKHR_4__repr__(((struct __pyx_obj_4cuda_6cudart_EGLImageKHR *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11EGLImageKHR_4__repr__(struct __pyx_obj_4cuda_6cudart_EGLImageKHR *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 3932, 0, __PYX_ERR(0, 3932, __pyx_L1_error)); /* "cuda/cudart.pyx":3933 * pass * def __repr__(self): * return '' # <<<<<<<<<<<<<< * def __index__(self): * return self.__int__() */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3933, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3933, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3933, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3933, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_EGLImageKHR, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3933, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_2, __pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3933, __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/cudart.pyx":3932 * def __init__(self, *args, **kwargs): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __index__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.EGLImageKHR.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3934 * def __repr__(self): * return '' * def __index__(self): # <<<<<<<<<<<<<< * return self.__int__() * def __int__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_11EGLImageKHR_7__index__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_11EGLImageKHR_6__index__(((struct __pyx_obj_4cuda_6cudart_EGLImageKHR *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11EGLImageKHR_6__index__(struct __pyx_obj_4cuda_6cudart_EGLImageKHR *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__index__", 1); __Pyx_TraceCall("__index__", __pyx_f[0], 3934, 0, __PYX_ERR(0, 3934, __pyx_L1_error)); /* "cuda/cudart.pyx":3935 * return '' * def __index__(self): * return self.__int__() # <<<<<<<<<<<<<< * def __int__(self): * return self._ptr[0] */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3935, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3935, __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/cudart.pyx":3934 * def __repr__(self): * return '' * 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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.EGLImageKHR.__index__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3936 * def __index__(self): * return self.__int__() * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_11EGLImageKHR_9__int__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_11EGLImageKHR_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_6cudart_11EGLImageKHR_8__int__(((struct __pyx_obj_4cuda_6cudart_EGLImageKHR *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11EGLImageKHR_8__int__(struct __pyx_obj_4cuda_6cudart_EGLImageKHR *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__int__", 1); __Pyx_TraceCall("__int__", __pyx_f[0], 3936, 0, __PYX_ERR(0, 3936, __pyx_L1_error)); /* "cuda/cudart.pyx":3937 * return self.__int__() * def __int__(self): * return self._ptr[0] # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3937, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":3936 * def __index__(self): * return self.__int__() * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.EGLImageKHR.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3938 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_11EGLImageKHR_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_6cudart_11EGLImageKHR_10getPtr, "EGLImageKHR.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_11EGLImageKHR_11getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11EGLImageKHR_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11EGLImageKHR_10getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_11EGLImageKHR_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_11EGLImageKHR_10getPtr(((struct __pyx_obj_4cuda_6cudart_EGLImageKHR *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11EGLImageKHR_10getPtr(struct __pyx_obj_4cuda_6cudart_EGLImageKHR *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__32) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 3938, 0, __PYX_ERR(0, 3938, __pyx_L1_error)); /* "cuda/cudart.pyx":3939 * return self._ptr[0] * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * * cdef class EGLStreamKHR: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3939, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":3938 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.EGLImageKHR.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_11EGLImageKHR_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_6cudart_11EGLImageKHR_12__reduce_cython__, "EGLImageKHR.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_11EGLImageKHR_13__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11EGLImageKHR_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11EGLImageKHR_12__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_11EGLImageKHR_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_11EGLImageKHR_12__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_EGLImageKHR *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11EGLImageKHR_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_EGLImageKHR *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__33) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.EGLImageKHR.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_11EGLImageKHR_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_6cudart_11EGLImageKHR_14__setstate_cython__, "EGLImageKHR.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_11EGLImageKHR_15__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11EGLImageKHR_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11EGLImageKHR_14__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_11EGLImageKHR_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.EGLImageKHR.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_11EGLImageKHR_14__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_EGLImageKHR *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11EGLImageKHR_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_EGLImageKHR *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__34) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.EGLImageKHR.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3950 * * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12EGLStreamKHR_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_12EGLStreamKHR_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_void_ptr __pyx_v_init_value; __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_init_value,&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_init_value); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 3950, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[1] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 3950, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 3950, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_init_value = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 3950, __pyx_L3_error) } else { __pyx_v_init_value = ((__pyx_t_4cuda_6cudart_void_ptr)0); } if (values[1]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 3950, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 3950, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.EGLStreamKHR.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_12EGLStreamKHR___cinit__(((struct __pyx_obj_4cuda_6cudart_EGLStreamKHR *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12EGLStreamKHR___cinit__(struct __pyx_obj_4cuda_6cudart_EGLStreamKHR *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v_init_value, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 3950, 0, __PYX_ERR(0, 3950, __pyx_L1_error)); /* "cuda/cudart.pyx":3951 * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * self._ptr[0] = init_value */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":3952 * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * self._ptr[0] = init_value * else: */ __pyx_v_self->_ptr = (&__pyx_v_self->_EGLStreamKHR__val); /* "cuda/cudart.pyx":3953 * if _ptr == 0: * self._ptr = &self.__val * self._ptr[0] = init_value # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ (__pyx_v_self->_ptr[0]) = ((__pyx_t_4cuda_7ccudart_EGLStreamKHR)__pyx_v_init_value); /* "cuda/cudart.pyx":3951 * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * self._ptr[0] = init_value */ goto __pyx_L3; } /* "cuda/cudart.pyx":3955 * self._ptr[0] = init_value * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, *args, **kwargs): * pass */ /*else*/ { __pyx_v_self->_ptr = ((__pyx_t_4cuda_7ccudart_EGLStreamKHR *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":3950 * * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.EGLStreamKHR.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":3956 * else: * self._ptr = _ptr * def __init__(self, *args, **kwargs): # <<<<<<<<<<<<<< * pass * def __repr__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12EGLStreamKHR_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1; __Pyx_INCREF(__pyx_args); __pyx_v_args = __pyx_args; __pyx_r = __pyx_pf_4cuda_6cudart_12EGLStreamKHR_2__init__(((struct __pyx_obj_4cuda_6cudart_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_6cudart_12EGLStreamKHR_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_EGLStreamKHR *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 3956, 0, __PYX_ERR(0, 3956, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.EGLStreamKHR.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":3958 * def __init__(self, *args, **kwargs): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __index__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12EGLStreamKHR_5__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12EGLStreamKHR_4__repr__(((struct __pyx_obj_4cuda_6cudart_EGLStreamKHR *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12EGLStreamKHR_4__repr__(struct __pyx_obj_4cuda_6cudart_EGLStreamKHR *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 3958, 0, __PYX_ERR(0, 3958, __pyx_L1_error)); /* "cuda/cudart.pyx":3959 * pass * def __repr__(self): * return '' # <<<<<<<<<<<<<< * def __index__(self): * return self.__int__() */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3959, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3959, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3959, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3959, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_EGLStreamKHR, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3959, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_2, __pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3959, __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/cudart.pyx":3958 * def __init__(self, *args, **kwargs): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __index__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.EGLStreamKHR.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3960 * def __repr__(self): * return '' * def __index__(self): # <<<<<<<<<<<<<< * return self.__int__() * def __int__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12EGLStreamKHR_7__index__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12EGLStreamKHR_6__index__(((struct __pyx_obj_4cuda_6cudart_EGLStreamKHR *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12EGLStreamKHR_6__index__(struct __pyx_obj_4cuda_6cudart_EGLStreamKHR *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__index__", 1); __Pyx_TraceCall("__index__", __pyx_f[0], 3960, 0, __PYX_ERR(0, 3960, __pyx_L1_error)); /* "cuda/cudart.pyx":3961 * return '' * def __index__(self): * return self.__int__() # <<<<<<<<<<<<<< * def __int__(self): * return self._ptr[0] */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3961, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3961, __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/cudart.pyx":3960 * def __repr__(self): * return '' * 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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.EGLStreamKHR.__index__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3962 * def __index__(self): * return self.__int__() * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12EGLStreamKHR_9__int__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_12EGLStreamKHR_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_6cudart_12EGLStreamKHR_8__int__(((struct __pyx_obj_4cuda_6cudart_EGLStreamKHR *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12EGLStreamKHR_8__int__(struct __pyx_obj_4cuda_6cudart_EGLStreamKHR *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__int__", 1); __Pyx_TraceCall("__int__", __pyx_f[0], 3962, 0, __PYX_ERR(0, 3962, __pyx_L1_error)); /* "cuda/cudart.pyx":3963 * return self.__int__() * def __int__(self): * return self._ptr[0] # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3963, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":3962 * def __index__(self): * return self.__int__() * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.EGLStreamKHR.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3964 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12EGLStreamKHR_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_6cudart_12EGLStreamKHR_10getPtr, "EGLStreamKHR.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_12EGLStreamKHR_11getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12EGLStreamKHR_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12EGLStreamKHR_10getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_12EGLStreamKHR_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_12EGLStreamKHR_10getPtr(((struct __pyx_obj_4cuda_6cudart_EGLStreamKHR *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12EGLStreamKHR_10getPtr(struct __pyx_obj_4cuda_6cudart_EGLStreamKHR *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__35) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 3964, 0, __PYX_ERR(0, 3964, __pyx_L1_error)); /* "cuda/cudart.pyx":3965 * return self._ptr[0] * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * * cdef class EGLSyncKHR: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3965, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":3964 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.EGLStreamKHR.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_12EGLStreamKHR_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_6cudart_12EGLStreamKHR_12__reduce_cython__, "EGLStreamKHR.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_12EGLStreamKHR_13__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12EGLStreamKHR_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12EGLStreamKHR_12__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_12EGLStreamKHR_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_12EGLStreamKHR_12__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_EGLStreamKHR *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12EGLStreamKHR_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_EGLStreamKHR *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__36) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.EGLStreamKHR.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_12EGLStreamKHR_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_6cudart_12EGLStreamKHR_14__setstate_cython__, "EGLStreamKHR.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_12EGLStreamKHR_15__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12EGLStreamKHR_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12EGLStreamKHR_14__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_12EGLStreamKHR_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.EGLStreamKHR.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_12EGLStreamKHR_14__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_EGLStreamKHR *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12EGLStreamKHR_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_EGLStreamKHR *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__37) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.EGLStreamKHR.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3976 * * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_10EGLSyncKHR_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_10EGLSyncKHR_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_void_ptr __pyx_v_init_value; __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_init_value,&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_init_value); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 3976, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[1] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 3976, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 3976, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_init_value = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 3976, __pyx_L3_error) } else { __pyx_v_init_value = ((__pyx_t_4cuda_6cudart_void_ptr)0); } if (values[1]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 3976, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 3976, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.EGLSyncKHR.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_10EGLSyncKHR___cinit__(((struct __pyx_obj_4cuda_6cudart_EGLSyncKHR *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_10EGLSyncKHR___cinit__(struct __pyx_obj_4cuda_6cudart_EGLSyncKHR *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v_init_value, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 3976, 0, __PYX_ERR(0, 3976, __pyx_L1_error)); /* "cuda/cudart.pyx":3977 * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * self._ptr[0] = init_value */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":3978 * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * self._ptr[0] = init_value * else: */ __pyx_v_self->_ptr = (&__pyx_v_self->_EGLSyncKHR__val); /* "cuda/cudart.pyx":3979 * if _ptr == 0: * self._ptr = &self.__val * self._ptr[0] = init_value # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ (__pyx_v_self->_ptr[0]) = ((__pyx_t_4cuda_7ccudart_EGLSyncKHR)__pyx_v_init_value); /* "cuda/cudart.pyx":3977 * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * self._ptr[0] = init_value */ goto __pyx_L3; } /* "cuda/cudart.pyx":3981 * self._ptr[0] = init_value * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, *args, **kwargs): * pass */ /*else*/ { __pyx_v_self->_ptr = ((__pyx_t_4cuda_7ccudart_EGLSyncKHR *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":3976 * * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.EGLSyncKHR.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":3982 * else: * self._ptr = _ptr * def __init__(self, *args, **kwargs): # <<<<<<<<<<<<<< * pass * def __repr__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_10EGLSyncKHR_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1; __Pyx_INCREF(__pyx_args); __pyx_v_args = __pyx_args; __pyx_r = __pyx_pf_4cuda_6cudart_10EGLSyncKHR_2__init__(((struct __pyx_obj_4cuda_6cudart_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_6cudart_10EGLSyncKHR_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_EGLSyncKHR *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 3982, 0, __PYX_ERR(0, 3982, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.EGLSyncKHR.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":3984 * def __init__(self, *args, **kwargs): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __index__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_10EGLSyncKHR_5__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_10EGLSyncKHR_4__repr__(((struct __pyx_obj_4cuda_6cudart_EGLSyncKHR *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_10EGLSyncKHR_4__repr__(struct __pyx_obj_4cuda_6cudart_EGLSyncKHR *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 3984, 0, __PYX_ERR(0, 3984, __pyx_L1_error)); /* "cuda/cudart.pyx":3985 * pass * def __repr__(self): * return '' # <<<<<<<<<<<<<< * def __index__(self): * return self.__int__() */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3985, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3985, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3985, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3985, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_EGLSyncKHR, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3985, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_2, __pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3985, __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/cudart.pyx":3984 * def __init__(self, *args, **kwargs): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __index__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.EGLSyncKHR.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3986 * def __repr__(self): * return '' * def __index__(self): # <<<<<<<<<<<<<< * return self.__int__() * def __int__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_10EGLSyncKHR_7__index__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_10EGLSyncKHR_6__index__(((struct __pyx_obj_4cuda_6cudart_EGLSyncKHR *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_10EGLSyncKHR_6__index__(struct __pyx_obj_4cuda_6cudart_EGLSyncKHR *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__index__", 1); __Pyx_TraceCall("__index__", __pyx_f[0], 3986, 0, __PYX_ERR(0, 3986, __pyx_L1_error)); /* "cuda/cudart.pyx":3987 * return '' * def __index__(self): * return self.__int__() # <<<<<<<<<<<<<< * def __int__(self): * return self._ptr[0] */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3987, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3987, __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/cudart.pyx":3986 * def __repr__(self): * return '' * 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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.EGLSyncKHR.__index__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3988 * def __index__(self): * return self.__int__() * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_10EGLSyncKHR_9__int__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_10EGLSyncKHR_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_6cudart_10EGLSyncKHR_8__int__(((struct __pyx_obj_4cuda_6cudart_EGLSyncKHR *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_10EGLSyncKHR_8__int__(struct __pyx_obj_4cuda_6cudart_EGLSyncKHR *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__int__", 1); __Pyx_TraceCall("__int__", __pyx_f[0], 3988, 0, __PYX_ERR(0, 3988, __pyx_L1_error)); /* "cuda/cudart.pyx":3989 * return self.__int__() * def __int__(self): * return self._ptr[0] # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3989, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":3988 * def __index__(self): * return self.__int__() * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.EGLSyncKHR.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":3990 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_10EGLSyncKHR_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_6cudart_10EGLSyncKHR_10getPtr, "EGLSyncKHR.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_10EGLSyncKHR_11getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_10EGLSyncKHR_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_10EGLSyncKHR_10getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_10EGLSyncKHR_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_10EGLSyncKHR_10getPtr(((struct __pyx_obj_4cuda_6cudart_EGLSyncKHR *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_10EGLSyncKHR_10getPtr(struct __pyx_obj_4cuda_6cudart_EGLSyncKHR *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__38) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 3990, 0, __PYX_ERR(0, 3990, __pyx_L1_error)); /* "cuda/cudart.pyx":3991 * return self._ptr[0] * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * * cdef class cudaHostFn_t: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3991, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":3990 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.EGLSyncKHR.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_10EGLSyncKHR_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_6cudart_10EGLSyncKHR_12__reduce_cython__, "EGLSyncKHR.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_10EGLSyncKHR_13__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_10EGLSyncKHR_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_10EGLSyncKHR_12__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_10EGLSyncKHR_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_10EGLSyncKHR_12__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_EGLSyncKHR *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_10EGLSyncKHR_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_EGLSyncKHR *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__39) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.EGLSyncKHR.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_10EGLSyncKHR_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_6cudart_10EGLSyncKHR_14__setstate_cython__, "EGLSyncKHR.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_10EGLSyncKHR_15__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_10EGLSyncKHR_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_10EGLSyncKHR_14__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_10EGLSyncKHR_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.EGLSyncKHR.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_10EGLSyncKHR_14__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_EGLSyncKHR *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_10EGLSyncKHR_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_EGLSyncKHR *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__40) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.EGLSyncKHR.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4002 * * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12cudaHostFn_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_12cudaHostFn_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_void_ptr __pyx_v_init_value; __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_init_value,&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_init_value); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4002, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[1] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4002, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 4002, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_init_value = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4002, __pyx_L3_error) } else { __pyx_v_init_value = ((__pyx_t_4cuda_6cudart_void_ptr)0); } if (values[1]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4002, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 4002, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaHostFn_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_12cudaHostFn_t___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaHostFn_t *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12cudaHostFn_t___cinit__(struct __pyx_obj_4cuda_6cudart_cudaHostFn_t *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v_init_value, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 4002, 0, __PYX_ERR(0, 4002, __pyx_L1_error)); /* "cuda/cudart.pyx":4003 * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * self._ptr[0] = init_value */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":4004 * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * self._ptr[0] = init_value * else: */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaHostFn_t__val); /* "cuda/cudart.pyx":4005 * if _ptr == 0: * self._ptr = &self.__val * self._ptr[0] = init_value # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ (__pyx_v_self->_ptr[0]) = ((cudaHostFn_t)__pyx_v_init_value); /* "cuda/cudart.pyx":4003 * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * self._ptr[0] = init_value */ goto __pyx_L3; } /* "cuda/cudart.pyx":4007 * self._ptr[0] = init_value * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, *args, **kwargs): * pass */ /*else*/ { __pyx_v_self->_ptr = ((cudaHostFn_t *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":4002 * * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaHostFn_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4008 * else: * self._ptr = _ptr * def __init__(self, *args, **kwargs): # <<<<<<<<<<<<<< * pass * def __repr__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12cudaHostFn_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1; __Pyx_INCREF(__pyx_args); __pyx_v_args = __pyx_args; __pyx_r = __pyx_pf_4cuda_6cudart_12cudaHostFn_t_2__init__(((struct __pyx_obj_4cuda_6cudart_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_6cudart_12cudaHostFn_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaHostFn_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 4008, 0, __PYX_ERR(0, 4008, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaHostFn_t.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4010 * def __init__(self, *args, **kwargs): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __index__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12cudaHostFn_t_5__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12cudaHostFn_t_4__repr__(((struct __pyx_obj_4cuda_6cudart_cudaHostFn_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12cudaHostFn_t_4__repr__(struct __pyx_obj_4cuda_6cudart_cudaHostFn_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 4010, 0, __PYX_ERR(0, 4010, __pyx_L1_error)); /* "cuda/cudart.pyx":4011 * pass * def __repr__(self): * return '' # <<<<<<<<<<<<<< * def __index__(self): * return self.__int__() */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4011, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4011, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4011, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4011, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_cudaHostFn_t, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4011, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_2, __pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4011, __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/cudart.pyx":4010 * def __init__(self, *args, **kwargs): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __index__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaHostFn_t.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4012 * def __repr__(self): * return '' * def __index__(self): # <<<<<<<<<<<<<< * return self.__int__() * def __int__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12cudaHostFn_t_7__index__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12cudaHostFn_t_6__index__(((struct __pyx_obj_4cuda_6cudart_cudaHostFn_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12cudaHostFn_t_6__index__(struct __pyx_obj_4cuda_6cudart_cudaHostFn_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__index__", 1); __Pyx_TraceCall("__index__", __pyx_f[0], 4012, 0, __PYX_ERR(0, 4012, __pyx_L1_error)); /* "cuda/cudart.pyx":4013 * return '' * def __index__(self): * return self.__int__() # <<<<<<<<<<<<<< * def __int__(self): * return self._ptr[0] */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4013, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4013, __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/cudart.pyx":4012 * def __repr__(self): * return '' * 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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaHostFn_t.__index__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4014 * def __index__(self): * return self.__int__() * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12cudaHostFn_t_9__int__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12cudaHostFn_t_8__int__(((struct __pyx_obj_4cuda_6cudart_cudaHostFn_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12cudaHostFn_t_8__int__(struct __pyx_obj_4cuda_6cudart_cudaHostFn_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__int__", 1); __Pyx_TraceCall("__int__", __pyx_f[0], 4014, 0, __PYX_ERR(0, 4014, __pyx_L1_error)); /* "cuda/cudart.pyx":4015 * return self.__int__() * def __int__(self): * return self._ptr[0] # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4015, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4014 * def __index__(self): * return self.__int__() * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaHostFn_t.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4016 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12cudaHostFn_t_10getPtr, "cudaHostFn_t.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_12cudaHostFn_t_11getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12cudaHostFn_t_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12cudaHostFn_t_10getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_12cudaHostFn_t_10getPtr(((struct __pyx_obj_4cuda_6cudart_cudaHostFn_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12cudaHostFn_t_10getPtr(struct __pyx_obj_4cuda_6cudart_cudaHostFn_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__41) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 4016, 0, __PYX_ERR(0, 4016, __pyx_L1_error)); /* "cuda/cudart.pyx":4017 * return self._ptr[0] * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * * cdef class cudaAsyncCallback: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4017, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4016 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaHostFn_t.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_12cudaHostFn_t_12__reduce_cython__, "cudaHostFn_t.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_12cudaHostFn_t_13__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12cudaHostFn_t_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12cudaHostFn_t_12__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_12cudaHostFn_t_12__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaHostFn_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12cudaHostFn_t_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaHostFn_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__42) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaHostFn_t.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_12cudaHostFn_t_14__setstate_cython__, "cudaHostFn_t.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_12cudaHostFn_t_15__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12cudaHostFn_t_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12cudaHostFn_t_14__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaHostFn_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_12cudaHostFn_t_14__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaHostFn_t *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12cudaHostFn_t_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaHostFn_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__43) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaHostFn_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4028 * * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_17cudaAsyncCallback_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_17cudaAsyncCallback_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_void_ptr __pyx_v_init_value; __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_init_value,&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_init_value); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4028, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[1] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4028, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 4028, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_init_value = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4028, __pyx_L3_error) } else { __pyx_v_init_value = ((__pyx_t_4cuda_6cudart_void_ptr)0); } if (values[1]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4028, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 4028, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaAsyncCallback.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_17cudaAsyncCallback___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaAsyncCallback *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_17cudaAsyncCallback___cinit__(struct __pyx_obj_4cuda_6cudart_cudaAsyncCallback *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v_init_value, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 4028, 0, __PYX_ERR(0, 4028, __pyx_L1_error)); /* "cuda/cudart.pyx":4029 * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * self._ptr[0] = init_value */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":4030 * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * self._ptr[0] = init_value * else: */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaAsyncCallback__val); /* "cuda/cudart.pyx":4031 * if _ptr == 0: * self._ptr = &self.__val * self._ptr[0] = init_value # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ (__pyx_v_self->_ptr[0]) = ((cudaAsyncCallback)__pyx_v_init_value); /* "cuda/cudart.pyx":4029 * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * self._ptr[0] = init_value */ goto __pyx_L3; } /* "cuda/cudart.pyx":4033 * self._ptr[0] = init_value * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, *args, **kwargs): * pass */ /*else*/ { __pyx_v_self->_ptr = ((cudaAsyncCallback *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":4028 * * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaAsyncCallback.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4034 * else: * self._ptr = _ptr * def __init__(self, *args, **kwargs): # <<<<<<<<<<<<<< * pass * def __repr__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_17cudaAsyncCallback_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1; __Pyx_INCREF(__pyx_args); __pyx_v_args = __pyx_args; __pyx_r = __pyx_pf_4cuda_6cudart_17cudaAsyncCallback_2__init__(((struct __pyx_obj_4cuda_6cudart_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_6cudart_17cudaAsyncCallback_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaAsyncCallback *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 4034, 0, __PYX_ERR(0, 4034, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaAsyncCallback.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4036 * def __init__(self, *args, **kwargs): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __index__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_17cudaAsyncCallback_5__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_17cudaAsyncCallback_4__repr__(((struct __pyx_obj_4cuda_6cudart_cudaAsyncCallback *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_17cudaAsyncCallback_4__repr__(struct __pyx_obj_4cuda_6cudart_cudaAsyncCallback *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 4036, 0, __PYX_ERR(0, 4036, __pyx_L1_error)); /* "cuda/cudart.pyx":4037 * pass * def __repr__(self): * return '' # <<<<<<<<<<<<<< * def __index__(self): * return self.__int__() */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4037, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4037, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4037, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4037, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_cudaAsyncCallback, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4037, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_2, __pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4037, __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/cudart.pyx":4036 * def __init__(self, *args, **kwargs): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __index__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaAsyncCallback.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4038 * def __repr__(self): * return '' * def __index__(self): # <<<<<<<<<<<<<< * return self.__int__() * def __int__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_17cudaAsyncCallback_7__index__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_17cudaAsyncCallback_6__index__(((struct __pyx_obj_4cuda_6cudart_cudaAsyncCallback *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_17cudaAsyncCallback_6__index__(struct __pyx_obj_4cuda_6cudart_cudaAsyncCallback *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__index__", 1); __Pyx_TraceCall("__index__", __pyx_f[0], 4038, 0, __PYX_ERR(0, 4038, __pyx_L1_error)); /* "cuda/cudart.pyx":4039 * return '' * def __index__(self): * return self.__int__() # <<<<<<<<<<<<<< * def __int__(self): * return self._ptr[0] */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4039, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4039, __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/cudart.pyx":4038 * def __repr__(self): * return '' * 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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaAsyncCallback.__index__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4040 * def __index__(self): * return self.__int__() * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_17cudaAsyncCallback_9__int__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_17cudaAsyncCallback_8__int__(((struct __pyx_obj_4cuda_6cudart_cudaAsyncCallback *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_17cudaAsyncCallback_8__int__(struct __pyx_obj_4cuda_6cudart_cudaAsyncCallback *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__int__", 1); __Pyx_TraceCall("__int__", __pyx_f[0], 4040, 0, __PYX_ERR(0, 4040, __pyx_L1_error)); /* "cuda/cudart.pyx":4041 * return self.__int__() * def __int__(self): * return self._ptr[0] # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4041, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4040 * def __index__(self): * return self.__int__() * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaAsyncCallback.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4042 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_17cudaAsyncCallback_10getPtr, "cudaAsyncCallback.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_17cudaAsyncCallback_11getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_17cudaAsyncCallback_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_17cudaAsyncCallback_10getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_17cudaAsyncCallback_10getPtr(((struct __pyx_obj_4cuda_6cudart_cudaAsyncCallback *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_17cudaAsyncCallback_10getPtr(struct __pyx_obj_4cuda_6cudart_cudaAsyncCallback *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__44) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 4042, 0, __PYX_ERR(0, 4042, __pyx_L1_error)); /* "cuda/cudart.pyx":4043 * return self._ptr[0] * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * * cdef class cudaStreamCallback_t: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4043, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4042 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaAsyncCallback.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_17cudaAsyncCallback_12__reduce_cython__, "cudaAsyncCallback.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_17cudaAsyncCallback_13__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_17cudaAsyncCallback_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_17cudaAsyncCallback_12__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_17cudaAsyncCallback_12__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaAsyncCallback *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_17cudaAsyncCallback_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaAsyncCallback *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__45) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaAsyncCallback.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_17cudaAsyncCallback_14__setstate_cython__, "cudaAsyncCallback.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_17cudaAsyncCallback_15__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_17cudaAsyncCallback_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_17cudaAsyncCallback_14__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaAsyncCallback.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_17cudaAsyncCallback_14__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaAsyncCallback *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_17cudaAsyncCallback_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaAsyncCallback *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__46) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaAsyncCallback.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4054 * * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaStreamCallback_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_20cudaStreamCallback_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_void_ptr __pyx_v_init_value; __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_init_value,&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_init_value); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4054, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[1] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4054, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 4054, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_init_value = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4054, __pyx_L3_error) } else { __pyx_v_init_value = ((__pyx_t_4cuda_6cudart_void_ptr)0); } if (values[1]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4054, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 4054, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaStreamCallback_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaStreamCallback_t___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaStreamCallback_t *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_20cudaStreamCallback_t___cinit__(struct __pyx_obj_4cuda_6cudart_cudaStreamCallback_t *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v_init_value, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 4054, 0, __PYX_ERR(0, 4054, __pyx_L1_error)); /* "cuda/cudart.pyx":4055 * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * self._ptr[0] = init_value */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":4056 * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * self._ptr[0] = init_value * else: */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaStreamCallback_t__val); /* "cuda/cudart.pyx":4057 * if _ptr == 0: * self._ptr = &self.__val * self._ptr[0] = init_value # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ (__pyx_v_self->_ptr[0]) = ((cudaStreamCallback_t)__pyx_v_init_value); /* "cuda/cudart.pyx":4055 * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * self._ptr[0] = init_value */ goto __pyx_L3; } /* "cuda/cudart.pyx":4059 * self._ptr[0] = init_value * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, *args, **kwargs): * pass */ /*else*/ { __pyx_v_self->_ptr = ((cudaStreamCallback_t *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":4054 * * """ * def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaStreamCallback_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4060 * else: * self._ptr = _ptr * def __init__(self, *args, **kwargs): # <<<<<<<<<<<<<< * pass * def __repr__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaStreamCallback_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1; #endif __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1; __Pyx_INCREF(__pyx_args); __pyx_v_args = __pyx_args; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaStreamCallback_t_2__init__(((struct __pyx_obj_4cuda_6cudart_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_6cudart_20cudaStreamCallback_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaStreamCallback_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 4060, 0, __PYX_ERR(0, 4060, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaStreamCallback_t.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4062 * def __init__(self, *args, **kwargs): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __index__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaStreamCallback_t_5__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaStreamCallback_t_4__repr__(((struct __pyx_obj_4cuda_6cudart_cudaStreamCallback_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaStreamCallback_t_4__repr__(struct __pyx_obj_4cuda_6cudart_cudaStreamCallback_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 4062, 0, __PYX_ERR(0, 4062, __pyx_L1_error)); /* "cuda/cudart.pyx":4063 * pass * def __repr__(self): * return '' # <<<<<<<<<<<<<< * def __index__(self): * return self.__int__() */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4063, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4063, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4063, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4063, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_cudaStreamCallback_t, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4063, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_2, __pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4063, __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/cudart.pyx":4062 * def __init__(self, *args, **kwargs): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __index__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaStreamCallback_t.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4064 * def __repr__(self): * return '' * def __index__(self): # <<<<<<<<<<<<<< * return self.__int__() * def __int__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaStreamCallback_t_7__index__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaStreamCallback_t_6__index__(((struct __pyx_obj_4cuda_6cudart_cudaStreamCallback_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaStreamCallback_t_6__index__(struct __pyx_obj_4cuda_6cudart_cudaStreamCallback_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__index__", 1); __Pyx_TraceCall("__index__", __pyx_f[0], 4064, 0, __PYX_ERR(0, 4064, __pyx_L1_error)); /* "cuda/cudart.pyx":4065 * return '' * def __index__(self): * return self.__int__() # <<<<<<<<<<<<<< * def __int__(self): * return self._ptr[0] */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4065, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4065, __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/cudart.pyx":4064 * def __repr__(self): * return '' * 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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaStreamCallback_t.__index__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4066 * def __index__(self): * return self.__int__() * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaStreamCallback_t_9__int__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaStreamCallback_t_8__int__(((struct __pyx_obj_4cuda_6cudart_cudaStreamCallback_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaStreamCallback_t_8__int__(struct __pyx_obj_4cuda_6cudart_cudaStreamCallback_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__int__", 1); __Pyx_TraceCall("__int__", __pyx_f[0], 4066, 0, __PYX_ERR(0, 4066, __pyx_L1_error)); /* "cuda/cudart.pyx":4067 * return self.__int__() * def __int__(self): * return self._ptr[0] # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4067, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4066 * def __index__(self): * return self.__int__() * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaStreamCallback_t.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4068 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaStreamCallback_t_10getPtr, "cudaStreamCallback_t.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_20cudaStreamCallback_t_11getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaStreamCallback_t_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaStreamCallback_t_10getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaStreamCallback_t_10getPtr(((struct __pyx_obj_4cuda_6cudart_cudaStreamCallback_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaStreamCallback_t_10getPtr(struct __pyx_obj_4cuda_6cudart_cudaStreamCallback_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__47) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 4068, 0, __PYX_ERR(0, 4068, __pyx_L1_error)); /* "cuda/cudart.pyx":4069 * return self._ptr[0] * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * * cdef class dim3: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4069, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4068 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaStreamCallback_t.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_20cudaStreamCallback_t_12__reduce_cython__, "cudaStreamCallback_t.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_20cudaStreamCallback_t_13__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaStreamCallback_t_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaStreamCallback_t_12__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaStreamCallback_t_12__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaStreamCallback_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaStreamCallback_t_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaStreamCallback_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__48) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaStreamCallback_t.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_20cudaStreamCallback_t_14__setstate_cython__, "cudaStreamCallback_t.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_20cudaStreamCallback_t_15__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaStreamCallback_t_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaStreamCallback_t_14__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaStreamCallback_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaStreamCallback_t_14__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaStreamCallback_t *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaStreamCallback_t_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaStreamCallback_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__49) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaStreamCallback_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4088 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_4dim3_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_4dim3_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4088, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 4088, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4088, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 4088, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.dim3.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_4dim3___cinit__(((struct __pyx_obj_4cuda_6cudart_dim3 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_4dim3___cinit__(struct __pyx_obj_4cuda_6cudart_dim3 *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 4088, 0, __PYX_ERR(0, 4088, __pyx_L1_error)); /* "cuda/cudart.pyx":4089 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":4090 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_dim3__val); /* "cuda/cudart.pyx":4089 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":4092 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * pass */ /*else*/ { __pyx_v_self->_ptr = ((struct dim3 *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":4088 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.dim3.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4093 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_4dim3_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_4dim3_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4093, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 4093, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4093, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 4093, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.dim3.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_4dim3_2__init__(((struct __pyx_obj_4cuda_6cudart_dim3 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_4dim3_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_dim3 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 4093, 0, __PYX_ERR(0, 4093, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.dim3.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4095 * def __init__(self, void_ptr _ptr = 0): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_4dim3_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_4dim3_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_dim3 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_4dim3_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_dim3 *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 4095, 0, __PYX_ERR(0, 4095, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.dim3.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":4097 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_4dim3_6getPtr, "dim3.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_4dim3_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_4dim3_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_4dim3_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_4dim3_6getPtr(((struct __pyx_obj_4cuda_6cudart_dim3 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_4dim3_6getPtr(struct __pyx_obj_4cuda_6cudart_dim3 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__50) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 4097, 0, __PYX_ERR(0, 4097, __pyx_L1_error)); /* "cuda/cudart.pyx":4098 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4098, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4097 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.dim3.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4099 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_4dim3_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_4dim3_8__repr__(((struct __pyx_obj_4cuda_6cudart_dim3 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_4dim3_8__repr__(struct __pyx_obj_4cuda_6cudart_dim3 *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 4099, 0, __PYX_ERR(0, 4099, __pyx_L1_error)); /* "cuda/cudart.pyx":4100 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":4101 * def __repr__(self): * if self._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, 4101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":4102 * if self._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/cudart.pyx":4103 * str_list = [] * try: * str_list += ['x : ' + str(self.x)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['x : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_x_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4103, __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, 4103, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_x, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4103, __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, 4103, __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)) __PYX_ERR(0, 4103, __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, 4103, __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/cudart.pyx":4102 * if self._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/cudart.pyx":4104 * try: * str_list += ['x : ' + str(self.x)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['x : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.dim3.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 4104, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":4105 * str_list += ['x : ' + str(self.x)] * except ValueError: * str_list += ['x : '] # <<<<<<<<<<<<<< * try: * str_list += ['y : ' + str(self.y)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4105, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_x_ValueError); __Pyx_GIVEREF(__pyx_kp_u_x_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_x_ValueError)) __PYX_ERR(0, 4105, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4105, __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/cudart.pyx":4102 * if self._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/cudart.pyx":4106 * except ValueError: * str_list += ['x : '] * 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/cudart.pyx":4107 * str_list += ['x : '] * try: * str_list += ['y : ' + str(self.y)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['y : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_y_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4107, __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, 4107, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_y, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4107, __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, 4107, __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)) __PYX_ERR(0, 4107, __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, 4107, __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/cudart.pyx":4106 * except ValueError: * str_list += ['x : '] * 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/cudart.pyx":4108 * try: * str_list += ['y : ' + str(self.y)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['y : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.dim3.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 4108, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":4109 * str_list += ['y : ' + str(self.y)] * except ValueError: * str_list += ['y : '] # <<<<<<<<<<<<<< * try: * str_list += ['z : ' + str(self.z)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4109, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_y_ValueError); __Pyx_GIVEREF(__pyx_kp_u_y_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_y_ValueError)) __PYX_ERR(0, 4109, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4109, __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/cudart.pyx":4106 * except ValueError: * str_list += ['x : '] * 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/cudart.pyx":4110 * except ValueError: * str_list += ['y : '] * 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/cudart.pyx":4111 * str_list += ['y : '] * try: * str_list += ['z : ' + str(self.z)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['z : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_z_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4111, __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, 4111, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_z, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4111, __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, 4111, __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)) __PYX_ERR(0, 4111, __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, 4111, __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/cudart.pyx":4110 * except ValueError: * str_list += ['y : '] * 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/cudart.pyx":4112 * try: * str_list += ['z : ' + str(self.z)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['z : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.dim3.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 4112, __pyx_L22_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":4113 * str_list += ['z : ' + str(self.z)] * except ValueError: * str_list += ['z : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4113, __pyx_L22_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_z_ValueError); __Pyx_GIVEREF(__pyx_kp_u_z_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_z_ValueError)) __PYX_ERR(0, 4113, __pyx_L22_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4113, __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/cudart.pyx":4110 * except ValueError: * str_list += ['y : '] * 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/cudart.pyx":4114 * except ValueError: * str_list += ['z : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4114, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4100 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":4116 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def x(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":4099 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.dim3.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4117 * else: * return '' * @property # <<<<<<<<<<<<<< * def x(self): * return self._ptr[0].x */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_4dim3_1x_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_4dim3_1x___get__(((struct __pyx_obj_4cuda_6cudart_dim3 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_4dim3_1x___get__(struct __pyx_obj_4cuda_6cudart_dim3 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4117, 0, __PYX_ERR(0, 4117, __pyx_L1_error)); /* "cuda/cudart.pyx":4119 * @property * def x(self): * return self._ptr[0].x # <<<<<<<<<<<<<< * @x.setter * def x(self, unsigned int x): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4119, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4117 * else: * return '' * @property # <<<<<<<<<<<<<< * def x(self): * return self._ptr[0].x */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.dim3.x.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4120 * def x(self): * return self._ptr[0].x * @x.setter # <<<<<<<<<<<<<< * def x(self, unsigned int x): * self._ptr[0].x = x */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_4dim3_1x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_x); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_x); if (unlikely((__pyx_v_x == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4121, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.dim3.x.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_4dim3_1x_2__set__(((struct __pyx_obj_4cuda_6cudart_dim3 *)__pyx_v_self), ((unsigned int)__pyx_v_x)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_4dim3_1x_2__set__(struct __pyx_obj_4cuda_6cudart_dim3 *__pyx_v_self, unsigned int __pyx_v_x) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 4120, 0, __PYX_ERR(0, 4120, __pyx_L1_error)); /* "cuda/cudart.pyx":4122 * @x.setter * def x(self, unsigned int x): * self._ptr[0].x = x # <<<<<<<<<<<<<< * @property * def y(self): */ (__pyx_v_self->_ptr[0]).x = __pyx_v_x; /* "cuda/cudart.pyx":4120 * def x(self): * return self._ptr[0].x * @x.setter # <<<<<<<<<<<<<< * def x(self, unsigned int x): * self._ptr[0].x = x */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.dim3.x.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4123 * def x(self, unsigned int x): * self._ptr[0].x = x * @property # <<<<<<<<<<<<<< * def y(self): * return self._ptr[0].y */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_4dim3_1y_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_4dim3_1y___get__(((struct __pyx_obj_4cuda_6cudart_dim3 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_4dim3_1y___get__(struct __pyx_obj_4cuda_6cudart_dim3 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4123, 0, __PYX_ERR(0, 4123, __pyx_L1_error)); /* "cuda/cudart.pyx":4125 * @property * def y(self): * return self._ptr[0].y # <<<<<<<<<<<<<< * @y.setter * def y(self, unsigned int y): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4125, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4123 * def x(self, unsigned int x): * self._ptr[0].x = x * @property # <<<<<<<<<<<<<< * def y(self): * return self._ptr[0].y */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.dim3.y.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4126 * def y(self): * return self._ptr[0].y * @y.setter # <<<<<<<<<<<<<< * def y(self, unsigned int y): * self._ptr[0].y = y */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_4dim3_1y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_y); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_y); if (unlikely((__pyx_v_y == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4127, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.dim3.y.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_4dim3_1y_2__set__(((struct __pyx_obj_4cuda_6cudart_dim3 *)__pyx_v_self), ((unsigned int)__pyx_v_y)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_4dim3_1y_2__set__(struct __pyx_obj_4cuda_6cudart_dim3 *__pyx_v_self, unsigned int __pyx_v_y) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 4126, 0, __PYX_ERR(0, 4126, __pyx_L1_error)); /* "cuda/cudart.pyx":4128 * @y.setter * def y(self, unsigned int y): * self._ptr[0].y = y # <<<<<<<<<<<<<< * @property * def z(self): */ (__pyx_v_self->_ptr[0]).y = __pyx_v_y; /* "cuda/cudart.pyx":4126 * def y(self): * return self._ptr[0].y * @y.setter # <<<<<<<<<<<<<< * def y(self, unsigned int y): * self._ptr[0].y = y */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.dim3.y.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4129 * def y(self, unsigned int y): * self._ptr[0].y = y * @property # <<<<<<<<<<<<<< * def z(self): * return self._ptr[0].z */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_4dim3_1z_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_4dim3_1z___get__(((struct __pyx_obj_4cuda_6cudart_dim3 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_4dim3_1z___get__(struct __pyx_obj_4cuda_6cudart_dim3 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4129, 0, __PYX_ERR(0, 4129, __pyx_L1_error)); /* "cuda/cudart.pyx":4131 * @property * def z(self): * return self._ptr[0].z # <<<<<<<<<<<<<< * @z.setter * def z(self, unsigned int z): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4129 * def y(self, unsigned int y): * self._ptr[0].y = y * @property # <<<<<<<<<<<<<< * def z(self): * return self._ptr[0].z */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.dim3.z.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4132 * def z(self): * return self._ptr[0].z * @z.setter # <<<<<<<<<<<<<< * def z(self, unsigned int z): * self._ptr[0].z = z */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_4dim3_1z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_z); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_z); if (unlikely((__pyx_v_z == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4133, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.dim3.z.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_4dim3_1z_2__set__(((struct __pyx_obj_4cuda_6cudart_dim3 *)__pyx_v_self), ((unsigned int)__pyx_v_z)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_4dim3_1z_2__set__(struct __pyx_obj_4cuda_6cudart_dim3 *__pyx_v_self, unsigned int __pyx_v_z) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 4132, 0, __PYX_ERR(0, 4132, __pyx_L1_error)); /* "cuda/cudart.pyx":4134 * @z.setter * def z(self, unsigned int z): * self._ptr[0].z = z # <<<<<<<<<<<<<< * * cdef class cudaChannelFormatDesc: */ (__pyx_v_self->_ptr[0]).z = __pyx_v_z; /* "cuda/cudart.pyx":4132 * def z(self): * return self._ptr[0].z * @z.setter # <<<<<<<<<<<<<< * def z(self, unsigned int z): * self._ptr[0].z = z */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.dim3.z.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_4dim3_10__reduce_cython__, "dim3.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_4dim3_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_4dim3_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_4dim3_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_4dim3_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_dim3 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_4dim3_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_dim3 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__53) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.dim3.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_4dim3_12__setstate_cython__, "dim3.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_4dim3_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_4dim3_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_4dim3_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.dim3.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_4dim3_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_dim3 *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_4dim3_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_dim3 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__54) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.dim3.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4159 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_21cudaChannelFormatDesc_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_21cudaChannelFormatDesc_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4159, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 4159, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4159, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 4159, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaChannelFormatDesc.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_21cudaChannelFormatDesc___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_21cudaChannelFormatDesc___cinit__(struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 4159, 0, __PYX_ERR(0, 4159, __pyx_L1_error)); /* "cuda/cudart.pyx":4160 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":4161 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaChannelFormatDesc__val); /* "cuda/cudart.pyx":4160 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":4163 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * pass */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaChannelFormatDesc *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":4159 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaChannelFormatDesc.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4164 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_21cudaChannelFormatDesc_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_21cudaChannelFormatDesc_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4164, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 4164, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4164, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 4164, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaChannelFormatDesc.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_21cudaChannelFormatDesc_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_21cudaChannelFormatDesc_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 4164, 0, __PYX_ERR(0, 4164, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaChannelFormatDesc.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4166 * def __init__(self, void_ptr _ptr = 0): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_21cudaChannelFormatDesc_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_21cudaChannelFormatDesc_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_21cudaChannelFormatDesc_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 4166, 0, __PYX_ERR(0, 4166, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaChannelFormatDesc.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":4168 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_21cudaChannelFormatDesc_6getPtr, "cudaChannelFormatDesc.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_21cudaChannelFormatDesc_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_21cudaChannelFormatDesc_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_21cudaChannelFormatDesc_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_21cudaChannelFormatDesc_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaChannelFormatDesc_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__55) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 4168, 0, __PYX_ERR(0, 4168, __pyx_L1_error)); /* "cuda/cudart.pyx":4169 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4169, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4168 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaChannelFormatDesc.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4170 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_21cudaChannelFormatDesc_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_21cudaChannelFormatDesc_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaChannelFormatDesc_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 4170, 0, __PYX_ERR(0, 4170, __pyx_L1_error)); /* "cuda/cudart.pyx":4171 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":4172 * def __repr__(self): * if self._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, 4172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":4173 * if self._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/cudart.pyx":4174 * str_list = [] * try: * str_list += ['x : ' + str(self.x)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['x : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_x_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4174, __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, 4174, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_x, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4174, __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, 4174, __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)) __PYX_ERR(0, 4174, __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, 4174, __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/cudart.pyx":4173 * if self._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/cudart.pyx":4175 * try: * str_list += ['x : ' + str(self.x)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['x : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaChannelFormatDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 4175, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":4176 * str_list += ['x : ' + str(self.x)] * except ValueError: * str_list += ['x : '] # <<<<<<<<<<<<<< * try: * str_list += ['y : ' + str(self.y)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4176, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_x_ValueError); __Pyx_GIVEREF(__pyx_kp_u_x_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_x_ValueError)) __PYX_ERR(0, 4176, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4176, __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/cudart.pyx":4173 * if self._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/cudart.pyx":4177 * except ValueError: * str_list += ['x : '] * 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/cudart.pyx":4178 * str_list += ['x : '] * try: * str_list += ['y : ' + str(self.y)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['y : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_y_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4178, __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, 4178, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_y, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4178, __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, 4178, __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)) __PYX_ERR(0, 4178, __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, 4178, __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/cudart.pyx":4177 * except ValueError: * str_list += ['x : '] * 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/cudart.pyx":4179 * try: * str_list += ['y : ' + str(self.y)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['y : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaChannelFormatDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 4179, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":4180 * str_list += ['y : ' + str(self.y)] * except ValueError: * str_list += ['y : '] # <<<<<<<<<<<<<< * try: * str_list += ['z : ' + str(self.z)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4180, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_y_ValueError); __Pyx_GIVEREF(__pyx_kp_u_y_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_y_ValueError)) __PYX_ERR(0, 4180, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4180, __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/cudart.pyx":4177 * except ValueError: * str_list += ['x : '] * 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/cudart.pyx":4181 * except ValueError: * str_list += ['y : '] * 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/cudart.pyx":4182 * str_list += ['y : '] * try: * str_list += ['z : ' + str(self.z)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['z : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_z_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4182, __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, 4182, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_z, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4182, __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, 4182, __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)) __PYX_ERR(0, 4182, __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, 4182, __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/cudart.pyx":4181 * except ValueError: * str_list += ['y : '] * 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/cudart.pyx":4183 * try: * str_list += ['z : ' + str(self.z)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['z : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaChannelFormatDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 4183, __pyx_L22_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":4184 * str_list += ['z : ' + str(self.z)] * except ValueError: * str_list += ['z : '] # <<<<<<<<<<<<<< * try: * str_list += ['w : ' + str(self.w)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4184, __pyx_L22_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_z_ValueError); __Pyx_GIVEREF(__pyx_kp_u_z_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_z_ValueError)) __PYX_ERR(0, 4184, __pyx_L22_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4184, __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/cudart.pyx":4181 * except ValueError: * str_list += ['y : '] * 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/cudart.pyx":4185 * except ValueError: * str_list += ['z : '] * 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/cudart.pyx":4186 * str_list += ['z : '] * try: * str_list += ['w : ' + str(self.w)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['w : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_w_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4186, __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, 4186, __pyx_L28_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_w, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4186, __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, 4186, __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)) __PYX_ERR(0, 4186, __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, 4186, __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/cudart.pyx":4185 * except ValueError: * str_list += ['z : '] * 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/cudart.pyx":4187 * try: * str_list += ['w : ' + str(self.w)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['w : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaChannelFormatDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 4187, __pyx_L30_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":4188 * str_list += ['w : ' + str(self.w)] * except ValueError: * str_list += ['w : '] # <<<<<<<<<<<<<< * try: * str_list += ['f : ' + str(self.f)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4188, __pyx_L30_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_w_ValueError); __Pyx_GIVEREF(__pyx_kp_u_w_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_w_ValueError)) __PYX_ERR(0, 4188, __pyx_L30_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4188, __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/cudart.pyx":4185 * except ValueError: * str_list += ['z : '] * 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/cudart.pyx":4189 * except ValueError: * str_list += ['w : '] * 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/cudart.pyx":4190 * str_list += ['w : '] * try: * str_list += ['f : ' + str(self.f)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['f : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_f_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4190, __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, 4190, __pyx_L36_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_f, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4190, __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, 4190, __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)) __PYX_ERR(0, 4190, __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, 4190, __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/cudart.pyx":4189 * except ValueError: * str_list += ['w : '] * 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/cudart.pyx":4191 * try: * str_list += ['f : ' + str(self.f)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['f : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaChannelFormatDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 4191, __pyx_L38_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":4192 * str_list += ['f : ' + str(self.f)] * except ValueError: * str_list += ['f : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4192, __pyx_L38_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_f_ValueError); __Pyx_GIVEREF(__pyx_kp_u_f_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_f_ValueError)) __PYX_ERR(0, 4192, __pyx_L38_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4192, __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/cudart.pyx":4189 * except ValueError: * str_list += ['w : '] * 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/cudart.pyx":4193 * except ValueError: * str_list += ['f : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4193, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4171 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":4195 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def x(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":4170 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaChannelFormatDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4196 * else: * return '' * @property # <<<<<<<<<<<<<< * def x(self): * return self._ptr[0].x */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_21cudaChannelFormatDesc_1x_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_21cudaChannelFormatDesc_1x___get__(((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaChannelFormatDesc_1x___get__(struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4196, 0, __PYX_ERR(0, 4196, __pyx_L1_error)); /* "cuda/cudart.pyx":4198 * @property * def x(self): * return self._ptr[0].x # <<<<<<<<<<<<<< * @x.setter * def x(self, int x): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4198, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4196 * else: * return '' * @property # <<<<<<<<<<<<<< * def x(self): * return self._ptr[0].x */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaChannelFormatDesc.x.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4199 * def x(self): * return self._ptr[0].x * @x.setter # <<<<<<<<<<<<<< * def x(self, int x): * self._ptr[0].x = x */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_21cudaChannelFormatDesc_1x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_x); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_x); if (unlikely((__pyx_v_x == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4200, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaChannelFormatDesc.x.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_21cudaChannelFormatDesc_1x_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)__pyx_v_self), ((int)__pyx_v_x)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_21cudaChannelFormatDesc_1x_2__set__(struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *__pyx_v_self, int __pyx_v_x) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 4199, 0, __PYX_ERR(0, 4199, __pyx_L1_error)); /* "cuda/cudart.pyx":4201 * @x.setter * def x(self, int x): * self._ptr[0].x = x # <<<<<<<<<<<<<< * @property * def y(self): */ (__pyx_v_self->_ptr[0]).x = __pyx_v_x; /* "cuda/cudart.pyx":4199 * def x(self): * return self._ptr[0].x * @x.setter # <<<<<<<<<<<<<< * def x(self, int x): * self._ptr[0].x = x */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaChannelFormatDesc.x.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4202 * def x(self, int x): * self._ptr[0].x = x * @property # <<<<<<<<<<<<<< * def y(self): * return self._ptr[0].y */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_21cudaChannelFormatDesc_1y_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_21cudaChannelFormatDesc_1y___get__(((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaChannelFormatDesc_1y___get__(struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4202, 0, __PYX_ERR(0, 4202, __pyx_L1_error)); /* "cuda/cudart.pyx":4204 * @property * def y(self): * return self._ptr[0].y # <<<<<<<<<<<<<< * @y.setter * def y(self, int y): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4204, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4202 * def x(self, int x): * self._ptr[0].x = x * @property # <<<<<<<<<<<<<< * def y(self): * return self._ptr[0].y */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaChannelFormatDesc.y.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4205 * def y(self): * return self._ptr[0].y * @y.setter # <<<<<<<<<<<<<< * def y(self, int y): * self._ptr[0].y = y */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_21cudaChannelFormatDesc_1y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_y); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_y); if (unlikely((__pyx_v_y == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4206, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaChannelFormatDesc.y.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_21cudaChannelFormatDesc_1y_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)__pyx_v_self), ((int)__pyx_v_y)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_21cudaChannelFormatDesc_1y_2__set__(struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *__pyx_v_self, int __pyx_v_y) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 4205, 0, __PYX_ERR(0, 4205, __pyx_L1_error)); /* "cuda/cudart.pyx":4207 * @y.setter * def y(self, int y): * self._ptr[0].y = y # <<<<<<<<<<<<<< * @property * def z(self): */ (__pyx_v_self->_ptr[0]).y = __pyx_v_y; /* "cuda/cudart.pyx":4205 * def y(self): * return self._ptr[0].y * @y.setter # <<<<<<<<<<<<<< * def y(self, int y): * self._ptr[0].y = y */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaChannelFormatDesc.y.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4208 * def y(self, int y): * self._ptr[0].y = y * @property # <<<<<<<<<<<<<< * def z(self): * return self._ptr[0].z */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_21cudaChannelFormatDesc_1z_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_21cudaChannelFormatDesc_1z___get__(((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaChannelFormatDesc_1z___get__(struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4208, 0, __PYX_ERR(0, 4208, __pyx_L1_error)); /* "cuda/cudart.pyx":4210 * @property * def z(self): * return self._ptr[0].z # <<<<<<<<<<<<<< * @z.setter * def z(self, int z): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4208 * def y(self, int y): * self._ptr[0].y = y * @property # <<<<<<<<<<<<<< * def z(self): * return self._ptr[0].z */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaChannelFormatDesc.z.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4211 * def z(self): * return self._ptr[0].z * @z.setter # <<<<<<<<<<<<<< * def z(self, int z): * self._ptr[0].z = z */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_21cudaChannelFormatDesc_1z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_z); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_z); if (unlikely((__pyx_v_z == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4212, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaChannelFormatDesc.z.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_21cudaChannelFormatDesc_1z_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)__pyx_v_self), ((int)__pyx_v_z)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_21cudaChannelFormatDesc_1z_2__set__(struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *__pyx_v_self, int __pyx_v_z) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 4211, 0, __PYX_ERR(0, 4211, __pyx_L1_error)); /* "cuda/cudart.pyx":4213 * @z.setter * def z(self, int z): * self._ptr[0].z = z # <<<<<<<<<<<<<< * @property * def w(self): */ (__pyx_v_self->_ptr[0]).z = __pyx_v_z; /* "cuda/cudart.pyx":4211 * def z(self): * return self._ptr[0].z * @z.setter # <<<<<<<<<<<<<< * def z(self, int z): * self._ptr[0].z = z */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaChannelFormatDesc.z.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4214 * def z(self, int z): * self._ptr[0].z = z * @property # <<<<<<<<<<<<<< * def w(self): * return self._ptr[0].w */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_21cudaChannelFormatDesc_1w_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_21cudaChannelFormatDesc_1w___get__(((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaChannelFormatDesc_1w___get__(struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4214, 0, __PYX_ERR(0, 4214, __pyx_L1_error)); /* "cuda/cudart.pyx":4216 * @property * def w(self): * return self._ptr[0].w # <<<<<<<<<<<<<< * @w.setter * def w(self, int w): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).w); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4216, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4214 * def z(self, int z): * self._ptr[0].z = z * @property # <<<<<<<<<<<<<< * def w(self): * return self._ptr[0].w */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaChannelFormatDesc.w.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4217 * def w(self): * return self._ptr[0].w * @w.setter # <<<<<<<<<<<<<< * def w(self, int w): * self._ptr[0].w = w */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_21cudaChannelFormatDesc_1w_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_w); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_w); if (unlikely((__pyx_v_w == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4218, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaChannelFormatDesc.w.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_21cudaChannelFormatDesc_1w_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)__pyx_v_self), ((int)__pyx_v_w)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_21cudaChannelFormatDesc_1w_2__set__(struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *__pyx_v_self, int __pyx_v_w) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 4217, 0, __PYX_ERR(0, 4217, __pyx_L1_error)); /* "cuda/cudart.pyx":4219 * @w.setter * def w(self, int w): * self._ptr[0].w = w # <<<<<<<<<<<<<< * @property * def f(self): */ (__pyx_v_self->_ptr[0]).w = __pyx_v_w; /* "cuda/cudart.pyx":4217 * def w(self): * return self._ptr[0].w * @w.setter # <<<<<<<<<<<<<< * def w(self, int w): * self._ptr[0].w = w */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaChannelFormatDesc.w.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4220 * def w(self, int w): * self._ptr[0].w = w * @property # <<<<<<<<<<<<<< * def f(self): * return cudaChannelFormatKind(self._ptr[0].f) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_21cudaChannelFormatDesc_1f_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_21cudaChannelFormatDesc_1f___get__(((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaChannelFormatDesc_1f___get__(struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4220, 0, __PYX_ERR(0, 4220, __pyx_L1_error)); /* "cuda/cudart.pyx":4222 * @property * def f(self): * return cudaChannelFormatKind(self._ptr[0].f) # <<<<<<<<<<<<<< * @f.setter * def f(self, f not None : cudaChannelFormatKind): */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaChannelFormatKind); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4222, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaChannelFormatKind((__pyx_v_self->_ptr[0]).f); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4222, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4222, __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/cudart.pyx":4220 * def w(self, int w): * self._ptr[0].w = w * @property # <<<<<<<<<<<<<< * def f(self): * return cudaChannelFormatKind(self._ptr[0].f) */ /* 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.cudart.cudaChannelFormatDesc.f.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4223 * def f(self): * return cudaChannelFormatKind(self._ptr[0].f) * @f.setter # <<<<<<<<<<<<<< * def f(self, f not None : cudaChannelFormatKind): * self._ptr[0].f = f.value */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_21cudaChannelFormatDesc_1f_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_f); /*proto*/ static int __pyx_pw_4cuda_6cudart_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, 4224, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_21cudaChannelFormatDesc_1f_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)__pyx_v_self), ((PyObject *)__pyx_v_f)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_21cudaChannelFormatDesc_1f_2__set__(struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *__pyx_v_self, PyObject *__pyx_v_f) { int __pyx_r; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 4223, 0, __PYX_ERR(0, 4223, __pyx_L1_error)); /* "cuda/cudart.pyx":4225 * @f.setter * def f(self, f not None : cudaChannelFormatKind): * self._ptr[0].f = f.value # <<<<<<<<<<<<<< * * cdef class anon_struct0: */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_f, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaChannelFormatKind)__Pyx_PyInt_As_enum__cudaChannelFormatKind(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4225, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).f = __pyx_t_2; /* "cuda/cudart.pyx":4223 * def f(self): * return cudaChannelFormatKind(self._ptr[0].f) * @f.setter # <<<<<<<<<<<<<< * def f(self, f not None : cudaChannelFormatKind): * self._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.cudart.cudaChannelFormatDesc.f.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __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_6cudart_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_6cudart_21cudaChannelFormatDesc_10__reduce_cython__, "cudaChannelFormatDesc.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_21cudaChannelFormatDesc_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_21cudaChannelFormatDesc_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_21cudaChannelFormatDesc_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_21cudaChannelFormatDesc_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaChannelFormatDesc_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__56) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaChannelFormatDesc.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_21cudaChannelFormatDesc_12__setstate_cython__, "cudaChannelFormatDesc.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_21cudaChannelFormatDesc_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_21cudaChannelFormatDesc_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_21cudaChannelFormatDesc_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaChannelFormatDesc.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_21cudaChannelFormatDesc_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaChannelFormatDesc_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__57) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaChannelFormatDesc.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4244 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12anon_struct0_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_12anon_struct0_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4244, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 4244, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4244, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 4244, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct0.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct0___cinit__(((struct __pyx_obj_4cuda_6cudart_anon_struct0 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12anon_struct0___cinit__(struct __pyx_obj_4cuda_6cudart_anon_struct0 *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 4244, 0, __PYX_ERR(0, 4244, __pyx_L1_error)); /* "cuda/cudart.pyx":4245 * """ * def __cinit__(self, void_ptr _ptr): * self._ptr = _ptr # <<<<<<<<<<<<<< * * def __init__(self, void_ptr _ptr): */ __pyx_v_self->_ptr = ((struct cudaArraySparseProperties *)__pyx_v__ptr); /* "cuda/cudart.pyx":4244 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct0.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4247 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12anon_struct0_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_12anon_struct0_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4247, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 4247, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4247, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 4247, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct0.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct0_2__init__(((struct __pyx_obj_4cuda_6cudart_anon_struct0 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12anon_struct0_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct0 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 4247, 0, __PYX_ERR(0, 4247, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct0.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4249 * def __init__(self, void_ptr _ptr): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_12anon_struct0_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct0_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_anon_struct0 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_12anon_struct0_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct0 *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 4249, 0, __PYX_ERR(0, 4249, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.anon_struct0.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":4251 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].tileExtent * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct0_6getPtr, "anon_struct0.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_12anon_struct0_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct0_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct0_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct0_6getPtr(((struct __pyx_obj_4cuda_6cudart_anon_struct0 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct0_6getPtr(struct __pyx_obj_4cuda_6cudart_anon_struct0 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__58) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 4251, 0, __PYX_ERR(0, 4251, __pyx_L1_error)); /* "cuda/cudart.pyx":4252 * pass * def getPtr(self): * return &self._ptr[0].tileExtent # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).tileExtent))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4251 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].tileExtent * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct0.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4253 * def getPtr(self): * return &self._ptr[0].tileExtent * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12anon_struct0_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct0_8__repr__(((struct __pyx_obj_4cuda_6cudart_anon_struct0 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct0_8__repr__(struct __pyx_obj_4cuda_6cudart_anon_struct0 *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 4253, 0, __PYX_ERR(0, 4253, __pyx_L1_error)); /* "cuda/cudart.pyx":4254 * return &self._ptr[0].tileExtent * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":4255 * def __repr__(self): * if self._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, 4255, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":4256 * if self._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/cudart.pyx":4257 * str_list = [] * try: * str_list += ['width : ' + str(self.width)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['width : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_width_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4257, __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, 4257, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_width, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4257, __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, 4257, __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)) __PYX_ERR(0, 4257, __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, 4257, __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/cudart.pyx":4256 * if self._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/cudart.pyx":4258 * try: * str_list += ['width : ' + str(self.width)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['width : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 4258, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":4259 * str_list += ['width : ' + str(self.width)] * except ValueError: * str_list += ['width : '] # <<<<<<<<<<<<<< * try: * str_list += ['height : ' + str(self.height)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4259, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_width_ValueError); __Pyx_GIVEREF(__pyx_kp_u_width_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_width_ValueError)) __PYX_ERR(0, 4259, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4259, __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/cudart.pyx":4256 * if self._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/cudart.pyx":4260 * except ValueError: * str_list += ['width : '] * 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/cudart.pyx":4261 * str_list += ['width : '] * try: * str_list += ['height : ' + str(self.height)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['height : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_height_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4261, __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, 4261, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_height, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4261, __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, 4261, __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)) __PYX_ERR(0, 4261, __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, 4261, __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/cudart.pyx":4260 * except ValueError: * str_list += ['width : '] * 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/cudart.pyx":4262 * try: * str_list += ['height : ' + str(self.height)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['height : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 4262, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":4263 * str_list += ['height : ' + str(self.height)] * except ValueError: * str_list += ['height : '] # <<<<<<<<<<<<<< * try: * str_list += ['depth : ' + str(self.depth)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4263, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_height_ValueError); __Pyx_GIVEREF(__pyx_kp_u_height_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_height_ValueError)) __PYX_ERR(0, 4263, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4263, __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/cudart.pyx":4260 * except ValueError: * str_list += ['width : '] * 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/cudart.pyx":4264 * except ValueError: * str_list += ['height : '] * 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/cudart.pyx":4265 * str_list += ['height : '] * try: * str_list += ['depth : ' + str(self.depth)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['depth : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_depth_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4265, __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, 4265, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_depth, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4265, __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, 4265, __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)) __PYX_ERR(0, 4265, __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, 4265, __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/cudart.pyx":4264 * except ValueError: * str_list += ['height : '] * 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/cudart.pyx":4266 * try: * str_list += ['depth : ' + str(self.depth)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['depth : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 4266, __pyx_L22_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":4267 * str_list += ['depth : ' + str(self.depth)] * except ValueError: * str_list += ['depth : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4267, __pyx_L22_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_depth_ValueError); __Pyx_GIVEREF(__pyx_kp_u_depth_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_depth_ValueError)) __PYX_ERR(0, 4267, __pyx_L22_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4267, __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/cudart.pyx":4264 * except ValueError: * str_list += ['height : '] * 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/cudart.pyx":4268 * except ValueError: * str_list += ['depth : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4268, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4254 * return &self._ptr[0].tileExtent * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":4270 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def width(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":4253 * def getPtr(self): * return &self._ptr[0].tileExtent * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4271 * else: * return '' * @property # <<<<<<<<<<<<<< * def width(self): * return self._ptr[0].tileExtent.width */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12anon_struct0_5width_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct0_5width___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct0 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct0_5width___get__(struct __pyx_obj_4cuda_6cudart_anon_struct0 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4271, 0, __PYX_ERR(0, 4271, __pyx_L1_error)); /* "cuda/cudart.pyx":4273 * @property * def width(self): * return self._ptr[0].tileExtent.width # <<<<<<<<<<<<<< * @width.setter * def width(self, unsigned int width): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).tileExtent.width); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4273, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4271 * else: * return '' * @property # <<<<<<<<<<<<<< * def width(self): * return self._ptr[0].tileExtent.width */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct0.width.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4274 * def width(self): * return self._ptr[0].tileExtent.width * @width.setter # <<<<<<<<<<<<<< * def width(self, unsigned int width): * self._ptr[0].tileExtent.width = width */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12anon_struct0_5width_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_width); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_width); if (unlikely((__pyx_v_width == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4275, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct0.width.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct0_5width_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct0 *)__pyx_v_self), ((unsigned int)__pyx_v_width)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12anon_struct0_5width_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct0 *__pyx_v_self, unsigned int __pyx_v_width) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 4274, 0, __PYX_ERR(0, 4274, __pyx_L1_error)); /* "cuda/cudart.pyx":4276 * @width.setter * def width(self, unsigned int width): * self._ptr[0].tileExtent.width = width # <<<<<<<<<<<<<< * @property * def height(self): */ (__pyx_v_self->_ptr[0]).tileExtent.width = __pyx_v_width; /* "cuda/cudart.pyx":4274 * def width(self): * return self._ptr[0].tileExtent.width * @width.setter # <<<<<<<<<<<<<< * def width(self, unsigned int width): * self._ptr[0].tileExtent.width = width */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct0.width.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4277 * def width(self, unsigned int width): * self._ptr[0].tileExtent.width = width * @property # <<<<<<<<<<<<<< * def height(self): * return self._ptr[0].tileExtent.height */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12anon_struct0_6height_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct0_6height___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct0 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct0_6height___get__(struct __pyx_obj_4cuda_6cudart_anon_struct0 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4277, 0, __PYX_ERR(0, 4277, __pyx_L1_error)); /* "cuda/cudart.pyx":4279 * @property * def height(self): * return self._ptr[0].tileExtent.height # <<<<<<<<<<<<<< * @height.setter * def height(self, unsigned int height): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).tileExtent.height); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4279, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4277 * def width(self, unsigned int width): * self._ptr[0].tileExtent.width = width * @property # <<<<<<<<<<<<<< * def height(self): * return self._ptr[0].tileExtent.height */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct0.height.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4280 * def height(self): * return self._ptr[0].tileExtent.height * @height.setter # <<<<<<<<<<<<<< * def height(self, unsigned int height): * self._ptr[0].tileExtent.height = height */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12anon_struct0_6height_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_height); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_height); if (unlikely((__pyx_v_height == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4281, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct0.height.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct0_6height_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct0 *)__pyx_v_self), ((unsigned int)__pyx_v_height)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12anon_struct0_6height_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct0 *__pyx_v_self, unsigned int __pyx_v_height) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 4280, 0, __PYX_ERR(0, 4280, __pyx_L1_error)); /* "cuda/cudart.pyx":4282 * @height.setter * def height(self, unsigned int height): * self._ptr[0].tileExtent.height = height # <<<<<<<<<<<<<< * @property * def depth(self): */ (__pyx_v_self->_ptr[0]).tileExtent.height = __pyx_v_height; /* "cuda/cudart.pyx":4280 * def height(self): * return self._ptr[0].tileExtent.height * @height.setter # <<<<<<<<<<<<<< * def height(self, unsigned int height): * self._ptr[0].tileExtent.height = height */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct0.height.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4283 * def height(self, unsigned int height): * self._ptr[0].tileExtent.height = height * @property # <<<<<<<<<<<<<< * def depth(self): * return self._ptr[0].tileExtent.depth */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12anon_struct0_5depth_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct0_5depth___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct0 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct0_5depth___get__(struct __pyx_obj_4cuda_6cudart_anon_struct0 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4283, 0, __PYX_ERR(0, 4283, __pyx_L1_error)); /* "cuda/cudart.pyx":4285 * @property * def depth(self): * return self._ptr[0].tileExtent.depth # <<<<<<<<<<<<<< * @depth.setter * def depth(self, unsigned int depth): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).tileExtent.depth); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4285, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4283 * def height(self, unsigned int height): * self._ptr[0].tileExtent.height = height * @property # <<<<<<<<<<<<<< * def depth(self): * return self._ptr[0].tileExtent.depth */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct0.depth.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4286 * def depth(self): * return self._ptr[0].tileExtent.depth * @depth.setter # <<<<<<<<<<<<<< * def depth(self, unsigned int depth): * self._ptr[0].tileExtent.depth = depth */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12anon_struct0_5depth_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_depth); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_depth); if (unlikely((__pyx_v_depth == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4287, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct0.depth.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct0_5depth_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct0 *)__pyx_v_self), ((unsigned int)__pyx_v_depth)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12anon_struct0_5depth_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct0 *__pyx_v_self, unsigned int __pyx_v_depth) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 4286, 0, __PYX_ERR(0, 4286, __pyx_L1_error)); /* "cuda/cudart.pyx":4288 * @depth.setter * def depth(self, unsigned int depth): * self._ptr[0].tileExtent.depth = depth # <<<<<<<<<<<<<< * * cdef class cudaArraySparseProperties: */ (__pyx_v_self->_ptr[0]).tileExtent.depth = __pyx_v_depth; /* "cuda/cudart.pyx":4286 * def depth(self): * return self._ptr[0].tileExtent.depth * @depth.setter # <<<<<<<<<<<<<< * def depth(self, unsigned int depth): * self._ptr[0].tileExtent.depth = depth */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct0.depth.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_12anon_struct0_10__reduce_cython__, "anon_struct0.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_12anon_struct0_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct0_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct0_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct0_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct0 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct0_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct0 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__59) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct0.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_12anon_struct0_12__setstate_cython__, "anon_struct0.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_12anon_struct0_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct0_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct0_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct0.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct0_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct0 *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct0_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct0 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__60) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct0.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4313 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_25cudaArraySparseProperties_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_25cudaArraySparseProperties_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4313, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 4313, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4313, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 4313, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaArraySparseProperties.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_25cudaArraySparseProperties___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_25cudaArraySparseProperties___cinit__(struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 4313, 0, __PYX_ERR(0, 4313, __pyx_L1_error)); /* "cuda/cudart.pyx":4314 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":4315 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaArraySparseProperties__val); /* "cuda/cudart.pyx":4314 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":4317 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * self._tileExtent = anon_struct0(_ptr=self._ptr) */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaArraySparseProperties *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":4313 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaArraySparseProperties.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4318 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._tileExtent = anon_struct0(_ptr=self._ptr) * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_25cudaArraySparseProperties_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_25cudaArraySparseProperties_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4318, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 4318, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4318, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 4318, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaArraySparseProperties.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_25cudaArraySparseProperties_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_25cudaArraySparseProperties_2__init__(struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 4318, 0, __PYX_ERR(0, 4318, __pyx_L1_error)); /* "cuda/cudart.pyx":4319 * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): * self._tileExtent = anon_struct0(_ptr=self._ptr) # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4319, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4319, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 4319, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct0), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4319, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_tileExtent); __Pyx_DECREF((PyObject *)__pyx_v_self->_tileExtent); __pyx_v_self->_tileExtent = ((struct __pyx_obj_4cuda_6cudart_anon_struct0 *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":4318 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._tileExtent = anon_struct0(_ptr=self._ptr) * def __dealloc__(self): */ /* 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.cudart.cudaArraySparseProperties.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4320 * def __init__(self, void_ptr _ptr = 0): * self._tileExtent = anon_struct0(_ptr=self._ptr) * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_25cudaArraySparseProperties_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_25cudaArraySparseProperties_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_25cudaArraySparseProperties_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 4320, 0, __PYX_ERR(0, 4320, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaArraySparseProperties.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":4322 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_25cudaArraySparseProperties_6getPtr, "cudaArraySparseProperties.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_25cudaArraySparseProperties_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_25cudaArraySparseProperties_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_25cudaArraySparseProperties_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_25cudaArraySparseProperties_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaArraySparseProperties_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__61) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 4322, 0, __PYX_ERR(0, 4322, __pyx_L1_error)); /* "cuda/cudart.pyx":4323 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4323, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4322 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaArraySparseProperties.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4324 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_25cudaArraySparseProperties_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_25cudaArraySparseProperties_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaArraySparseProperties_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_7genexpr__pyx_v_line = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 4324, 0, __PYX_ERR(0, 4324, __pyx_L1_error)); /* "cuda/cudart.pyx":4325 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":4326 * def __repr__(self): * if self._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, 4326, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":4327 * if self._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/cudart.pyx":4328 * str_list = [] * try: * str_list += ['tileExtent :\n' + '\n'.join([' ' + line for line in str(self.tileExtent).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['tileExtent : '] */ { /* enter inner scope */ __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4328, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_tileExtent_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4328, __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, 4328, __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, 4328, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 4328, __pyx_L12_error) #endif if (__pyx_t_8 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_7, __pyx_t_8); __Pyx_INCREF(__pyx_t_6); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(0, 4328, __pyx_L12_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4328, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_7genexpr__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_7genexpr__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4328, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 4328, __pyx_L12_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_7genexpr__pyx_v_line); __pyx_7genexpr__pyx_v_line = 0; goto __pyx_L16_exit_scope; __pyx_L12_error:; __Pyx_XDECREF(__pyx_7genexpr__pyx_v_line); __pyx_7genexpr__pyx_v_line = 0; goto __pyx_L4_error; __pyx_L16_exit_scope:; } /* exit inner scope */ __pyx_t_7 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 4328, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_tileExtent, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4328, __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, 4328, __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)) __PYX_ERR(0, 4328, __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, 4328, __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/cudart.pyx":4327 * if self._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/cudart.pyx":4329 * try: * str_list += ['tileExtent :\n' + '\n'.join([' ' + line for line in str(self.tileExtent).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['tileExtent : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaArraySparseProperties.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 4329, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":4330 * str_list += ['tileExtent :\n' + '\n'.join([' ' + line for line in str(self.tileExtent).splitlines()])] * except ValueError: * str_list += ['tileExtent : '] # <<<<<<<<<<<<<< * try: * str_list += ['miptailFirstLevel : ' + str(self.miptailFirstLevel)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4330, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_tileExtent_ValueError); __Pyx_GIVEREF(__pyx_kp_u_tileExtent_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_tileExtent_ValueError)) __PYX_ERR(0, 4330, __pyx_L6_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 4330, __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/cudart.pyx":4327 * if self._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/cudart.pyx":4331 * except ValueError: * str_list += ['tileExtent : '] * 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/cudart.pyx":4332 * str_list += ['tileExtent : '] * try: * str_list += ['miptailFirstLevel : ' + str(self.miptailFirstLevel)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['miptailFirstLevel : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_miptailFirstLevel_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4332, __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, 4332, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_miptailFirstLevel, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4332, __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, 4332, __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)) __PYX_ERR(0, 4332, __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, 4332, __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/cudart.pyx":4331 * except ValueError: * str_list += ['tileExtent : '] * 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/cudart.pyx":4333 * try: * str_list += ['miptailFirstLevel : ' + str(self.miptailFirstLevel)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['miptailFirstLevel : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaArraySparseProperties.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_7, &__pyx_t_2) < 0) __PYX_ERR(0, 4333, __pyx_L21_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":4334 * str_list += ['miptailFirstLevel : ' + str(self.miptailFirstLevel)] * except ValueError: * str_list += ['miptailFirstLevel : '] # <<<<<<<<<<<<<< * try: * str_list += ['miptailSize : ' + str(self.miptailSize)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 4334, __pyx_L21_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_miptailFirstLevel_ValueError); __Pyx_GIVEREF(__pyx_kp_u_miptailFirstLevel_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_miptailFirstLevel_ValueError)) __PYX_ERR(0, 4334, __pyx_L21_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4334, __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/cudart.pyx":4331 * except ValueError: * str_list += ['tileExtent : '] * 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/cudart.pyx":4335 * except ValueError: * str_list += ['miptailFirstLevel : '] * 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/cudart.pyx":4336 * str_list += ['miptailFirstLevel : '] * try: * str_list += ['miptailSize : ' + str(self.miptailSize)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['miptailSize : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_miptailSize_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4336, __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, 4336, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_miptailSize, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4336, __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, 4336, __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)) __PYX_ERR(0, 4336, __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, 4336, __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/cudart.pyx":4335 * except ValueError: * str_list += ['miptailFirstLevel : '] * 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/cudart.pyx":4337 * try: * str_list += ['miptailSize : ' + str(self.miptailSize)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['miptailSize : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaArraySparseProperties.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 4337, __pyx_L29_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":4338 * str_list += ['miptailSize : ' + str(self.miptailSize)] * except ValueError: * str_list += ['miptailSize : '] # <<<<<<<<<<<<<< * try: * str_list += ['flags : ' + str(self.flags)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4338, __pyx_L29_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_miptailSize_ValueError); __Pyx_GIVEREF(__pyx_kp_u_miptailSize_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_miptailSize_ValueError)) __PYX_ERR(0, 4338, __pyx_L29_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 4338, __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/cudart.pyx":4335 * except ValueError: * str_list += ['miptailFirstLevel : '] * 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/cudart.pyx":4339 * except ValueError: * str_list += ['miptailSize : '] * 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/cudart.pyx":4340 * str_list += ['miptailSize : '] * try: * str_list += ['flags : ' + str(self.flags)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['flags : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_flags_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4340, __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, 4340, __pyx_L35_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_flags, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4340, __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, 4340, __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)) __PYX_ERR(0, 4340, __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, 4340, __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/cudart.pyx":4339 * except ValueError: * str_list += ['miptailSize : '] * 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/cudart.pyx":4341 * try: * str_list += ['flags : ' + str(self.flags)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['flags : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaArraySparseProperties.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_7, &__pyx_t_2) < 0) __PYX_ERR(0, 4341, __pyx_L37_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":4342 * str_list += ['flags : ' + str(self.flags)] * except ValueError: * str_list += ['flags : '] # <<<<<<<<<<<<<< * try: * str_list += ['reserved : ' + str(self.reserved)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 4342, __pyx_L37_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_flags_ValueError); __Pyx_GIVEREF(__pyx_kp_u_flags_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_flags_ValueError)) __PYX_ERR(0, 4342, __pyx_L37_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4342, __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/cudart.pyx":4339 * except ValueError: * str_list += ['miptailSize : '] * 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/cudart.pyx":4343 * except ValueError: * str_list += ['flags : '] * 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/cudart.pyx":4344 * str_list += ['flags : '] * try: * str_list += ['reserved : ' + str(self.reserved)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['reserved : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_reserved_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4344, __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, 4344, __pyx_L43_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_reserved, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4344, __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, 4344, __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)) __PYX_ERR(0, 4344, __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, 4344, __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/cudart.pyx":4343 * except ValueError: * str_list += ['flags : '] * 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/cudart.pyx":4345 * try: * str_list += ['reserved : ' + str(self.reserved)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['reserved : '] * return '\n'.join(str_list) */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaArraySparseProperties.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 4345, __pyx_L45_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":4346 * str_list += ['reserved : ' + str(self.reserved)] * except ValueError: * str_list += ['reserved : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4346, __pyx_L45_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_reserved_ValueError); __Pyx_GIVEREF(__pyx_kp_u_reserved_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_reserved_ValueError)) __PYX_ERR(0, 4346, __pyx_L45_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 4346, __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/cudart.pyx":4343 * except ValueError: * str_list += ['flags : '] * 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/cudart.pyx":4347 * except ValueError: * str_list += ['reserved : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_6 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4347, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4325 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":4349 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def tileExtent(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":4324 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaArraySparseProperties.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XDECREF(__pyx_7genexpr__pyx_v_line); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4350 * else: * return '' * @property # <<<<<<<<<<<<<< * def tileExtent(self): * return self._tileExtent */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_25cudaArraySparseProperties_10tileExtent_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_25cudaArraySparseProperties_10tileExtent___get__(((struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaArraySparseProperties_10tileExtent___get__(struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4350, 0, __PYX_ERR(0, 4350, __pyx_L1_error)); /* "cuda/cudart.pyx":4352 * @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/cudart.pyx":4350 * else: * return '' * @property # <<<<<<<<<<<<<< * def tileExtent(self): * return self._tileExtent */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaArraySparseProperties.tileExtent.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4353 * def tileExtent(self): * return self._tileExtent * @tileExtent.setter # <<<<<<<<<<<<<< * def tileExtent(self, tileExtent not None : anon_struct0): * string.memcpy(&self._ptr[0].tileExtent, tileExtent.getPtr(), sizeof(self._ptr[0].tileExtent)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_25cudaArraySparseProperties_10tileExtent_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_tileExtent); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_anon_struct0, 0, "tileExtent", 0))) __PYX_ERR(0, 4354, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_25cudaArraySparseProperties_10tileExtent_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_anon_struct0 *)__pyx_v_tileExtent)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_25cudaArraySparseProperties_10tileExtent_2__set__(struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_anon_struct0 *__pyx_v_tileExtent) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 4353, 0, __PYX_ERR(0, 4353, __pyx_L1_error)); /* "cuda/cudart.pyx":4355 * @tileExtent.setter * def tileExtent(self, tileExtent not None : anon_struct0): * string.memcpy(&self._ptr[0].tileExtent, tileExtent.getPtr(), sizeof(self._ptr[0].tileExtent)) # <<<<<<<<<<<<<< * @property * def miptailFirstLevel(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_tileExtent), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4355, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4355, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4355, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).tileExtent), ((struct anon_struct0 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).tileExtent)))); /* "cuda/cudart.pyx":4353 * def tileExtent(self): * return self._tileExtent * @tileExtent.setter # <<<<<<<<<<<<<< * def tileExtent(self, tileExtent not None : anon_struct0): * string.memcpy(&self._ptr[0].tileExtent, tileExtent.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaArraySparseProperties.tileExtent.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4356 * def tileExtent(self, tileExtent not None : anon_struct0): * string.memcpy(&self._ptr[0].tileExtent, tileExtent.getPtr(), sizeof(self._ptr[0].tileExtent)) * @property # <<<<<<<<<<<<<< * def miptailFirstLevel(self): * return self._ptr[0].miptailFirstLevel */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_25cudaArraySparseProperties_17miptailFirstLevel_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_25cudaArraySparseProperties_17miptailFirstLevel___get__(((struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaArraySparseProperties_17miptailFirstLevel___get__(struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4356, 0, __PYX_ERR(0, 4356, __pyx_L1_error)); /* "cuda/cudart.pyx":4358 * @property * def miptailFirstLevel(self): * return self._ptr[0].miptailFirstLevel # <<<<<<<<<<<<<< * @miptailFirstLevel.setter * def miptailFirstLevel(self, unsigned int miptailFirstLevel): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).miptailFirstLevel); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4358, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4356 * def tileExtent(self, tileExtent not None : anon_struct0): * string.memcpy(&self._ptr[0].tileExtent, tileExtent.getPtr(), sizeof(self._ptr[0].tileExtent)) * @property # <<<<<<<<<<<<<< * def miptailFirstLevel(self): * return self._ptr[0].miptailFirstLevel */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaArraySparseProperties.miptailFirstLevel.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4359 * def miptailFirstLevel(self): * return self._ptr[0].miptailFirstLevel * @miptailFirstLevel.setter # <<<<<<<<<<<<<< * def miptailFirstLevel(self, unsigned int miptailFirstLevel): * self._ptr[0].miptailFirstLevel = miptailFirstLevel */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_25cudaArraySparseProperties_17miptailFirstLevel_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_miptailFirstLevel); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_miptailFirstLevel); if (unlikely((__pyx_v_miptailFirstLevel == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4360, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaArraySparseProperties.miptailFirstLevel.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_25cudaArraySparseProperties_17miptailFirstLevel_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *)__pyx_v_self), ((unsigned int)__pyx_v_miptailFirstLevel)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_25cudaArraySparseProperties_17miptailFirstLevel_2__set__(struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *__pyx_v_self, unsigned int __pyx_v_miptailFirstLevel) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 4359, 0, __PYX_ERR(0, 4359, __pyx_L1_error)); /* "cuda/cudart.pyx":4361 * @miptailFirstLevel.setter * def miptailFirstLevel(self, unsigned int miptailFirstLevel): * self._ptr[0].miptailFirstLevel = miptailFirstLevel # <<<<<<<<<<<<<< * @property * def miptailSize(self): */ (__pyx_v_self->_ptr[0]).miptailFirstLevel = __pyx_v_miptailFirstLevel; /* "cuda/cudart.pyx":4359 * def miptailFirstLevel(self): * return self._ptr[0].miptailFirstLevel * @miptailFirstLevel.setter # <<<<<<<<<<<<<< * def miptailFirstLevel(self, unsigned int miptailFirstLevel): * self._ptr[0].miptailFirstLevel = miptailFirstLevel */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaArraySparseProperties.miptailFirstLevel.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4362 * def miptailFirstLevel(self, unsigned int miptailFirstLevel): * self._ptr[0].miptailFirstLevel = miptailFirstLevel * @property # <<<<<<<<<<<<<< * def miptailSize(self): * return self._ptr[0].miptailSize */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_25cudaArraySparseProperties_11miptailSize_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_25cudaArraySparseProperties_11miptailSize___get__(((struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaArraySparseProperties_11miptailSize___get__(struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4362, 0, __PYX_ERR(0, 4362, __pyx_L1_error)); /* "cuda/cudart.pyx":4364 * @property * def miptailSize(self): * return self._ptr[0].miptailSize # <<<<<<<<<<<<<< * @miptailSize.setter * def miptailSize(self, unsigned long long miptailSize): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG((__pyx_v_self->_ptr[0]).miptailSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4364, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4362 * def miptailFirstLevel(self, unsigned int miptailFirstLevel): * self._ptr[0].miptailFirstLevel = miptailFirstLevel * @property # <<<<<<<<<<<<<< * def miptailSize(self): * return self._ptr[0].miptailSize */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaArraySparseProperties.miptailSize.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4365 * def miptailSize(self): * return self._ptr[0].miptailSize * @miptailSize.setter # <<<<<<<<<<<<<< * def miptailSize(self, unsigned long long miptailSize): * self._ptr[0].miptailSize = miptailSize */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_25cudaArraySparseProperties_11miptailSize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_miptailSize); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_PY_LONG_LONG(__pyx_arg_miptailSize); if (unlikely((__pyx_v_miptailSize == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4366, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaArraySparseProperties.miptailSize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_25cudaArraySparseProperties_11miptailSize_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *)__pyx_v_self), ((unsigned PY_LONG_LONG)__pyx_v_miptailSize)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_25cudaArraySparseProperties_11miptailSize_2__set__(struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_miptailSize) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 4365, 0, __PYX_ERR(0, 4365, __pyx_L1_error)); /* "cuda/cudart.pyx":4367 * @miptailSize.setter * def miptailSize(self, unsigned long long miptailSize): * self._ptr[0].miptailSize = miptailSize # <<<<<<<<<<<<<< * @property * def flags(self): */ (__pyx_v_self->_ptr[0]).miptailSize = __pyx_v_miptailSize; /* "cuda/cudart.pyx":4365 * def miptailSize(self): * return self._ptr[0].miptailSize * @miptailSize.setter # <<<<<<<<<<<<<< * def miptailSize(self, unsigned long long miptailSize): * self._ptr[0].miptailSize = miptailSize */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaArraySparseProperties.miptailSize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4368 * def miptailSize(self, unsigned long long miptailSize): * self._ptr[0].miptailSize = miptailSize * @property # <<<<<<<<<<<<<< * def flags(self): * return self._ptr[0].flags */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_25cudaArraySparseProperties_5flags_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_25cudaArraySparseProperties_5flags___get__(((struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaArraySparseProperties_5flags___get__(struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4368, 0, __PYX_ERR(0, 4368, __pyx_L1_error)); /* "cuda/cudart.pyx":4370 * @property * def flags(self): * return self._ptr[0].flags # <<<<<<<<<<<<<< * @flags.setter * def flags(self, unsigned int flags): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).flags); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4370, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4368 * def miptailSize(self, unsigned long long miptailSize): * self._ptr[0].miptailSize = miptailSize * @property # <<<<<<<<<<<<<< * def flags(self): * return self._ptr[0].flags */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaArraySparseProperties.flags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4371 * def flags(self): * return self._ptr[0].flags * @flags.setter # <<<<<<<<<<<<<< * def flags(self, unsigned int flags): * self._ptr[0].flags = flags */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_25cudaArraySparseProperties_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_flags); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4372, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaArraySparseProperties.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_25cudaArraySparseProperties_5flags_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *)__pyx_v_self), ((unsigned int)__pyx_v_flags)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_25cudaArraySparseProperties_5flags_2__set__(struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *__pyx_v_self, unsigned int __pyx_v_flags) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 4371, 0, __PYX_ERR(0, 4371, __pyx_L1_error)); /* "cuda/cudart.pyx":4373 * @flags.setter * def flags(self, unsigned int flags): * self._ptr[0].flags = flags # <<<<<<<<<<<<<< * @property * def reserved(self): */ (__pyx_v_self->_ptr[0]).flags = __pyx_v_flags; /* "cuda/cudart.pyx":4371 * def flags(self): * return self._ptr[0].flags * @flags.setter # <<<<<<<<<<<<<< * def flags(self, unsigned int flags): * self._ptr[0].flags = flags */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaArraySparseProperties.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4374 * def flags(self, unsigned int flags): * self._ptr[0].flags = flags * @property # <<<<<<<<<<<<<< * def reserved(self): * return self._ptr[0].reserved */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_25cudaArraySparseProperties_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_25cudaArraySparseProperties_8reserved___get__(((struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaArraySparseProperties_8reserved___get__(struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4374, 0, __PYX_ERR(0, 4374, __pyx_L1_error)); /* "cuda/cudart.pyx":4376 * @property * def reserved(self): * return self._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->_ptr[0]).reserved, 4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4376, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4374 * def flags(self, unsigned int flags): * self._ptr[0].flags = flags * @property # <<<<<<<<<<<<<< * def reserved(self): * return self._ptr[0].reserved */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaArraySparseProperties.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4377 * def reserved(self): * return self._ptr[0].reserved * @reserved.setter # <<<<<<<<<<<<<< * def reserved(self, reserved): * self._ptr[0].reserved = reserved */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_25cudaArraySparseProperties_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_25cudaArraySparseProperties_8reserved_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *)__pyx_v_self), ((PyObject *)__pyx_v_reserved)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_25cudaArraySparseProperties_8reserved_2__set__(struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *__pyx_v_self, PyObject *__pyx_v_reserved) { int __pyx_r; __Pyx_TraceDeclarations unsigned int __pyx_t_1[4]; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 4377, 0, __PYX_ERR(0, 4377, __pyx_L1_error)); /* "cuda/cudart.pyx":4379 * @reserved.setter * def reserved(self, reserved): * self._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, 4379, __pyx_L1_error) memcpy(&((__pyx_v_self->_ptr[0]).reserved[0]), __pyx_t_1, sizeof((__pyx_v_self->_ptr[0]).reserved[0]) * (4)); /* "cuda/cudart.pyx":4377 * def reserved(self): * return self._ptr[0].reserved * @reserved.setter # <<<<<<<<<<<<<< * def reserved(self, reserved): * self._ptr[0].reserved = reserved */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaArraySparseProperties.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_25cudaArraySparseProperties_10__reduce_cython__, "cudaArraySparseProperties.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_25cudaArraySparseProperties_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_25cudaArraySparseProperties_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_25cudaArraySparseProperties_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_25cudaArraySparseProperties_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaArraySparseProperties_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__63) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaArraySparseProperties.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_25cudaArraySparseProperties_12__setstate_cython__, "cudaArraySparseProperties.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_25cudaArraySparseProperties_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_25cudaArraySparseProperties_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_25cudaArraySparseProperties_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaArraySparseProperties.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_25cudaArraySparseProperties_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaArraySparseProperties_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__64) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaArraySparseProperties.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4400 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_27cudaArrayMemoryRequirements_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_27cudaArrayMemoryRequirements_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4400, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 4400, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4400, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 4400, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaArrayMemoryRequirements.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_27cudaArrayMemoryRequirements___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_27cudaArrayMemoryRequirements___cinit__(struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 4400, 0, __PYX_ERR(0, 4400, __pyx_L1_error)); /* "cuda/cudart.pyx":4401 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":4402 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaArrayMemoryRequirements__val); /* "cuda/cudart.pyx":4401 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":4404 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * pass */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaArrayMemoryRequirements *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":4400 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaArrayMemoryRequirements.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4405 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_27cudaArrayMemoryRequirements_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_27cudaArrayMemoryRequirements_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4405, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 4405, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4405, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 4405, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaArrayMemoryRequirements.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_27cudaArrayMemoryRequirements_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_27cudaArrayMemoryRequirements_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 4405, 0, __PYX_ERR(0, 4405, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaArrayMemoryRequirements.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4407 * def __init__(self, void_ptr _ptr = 0): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_27cudaArrayMemoryRequirements_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_27cudaArrayMemoryRequirements_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_27cudaArrayMemoryRequirements_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 4407, 0, __PYX_ERR(0, 4407, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaArrayMemoryRequirements.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":4409 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_27cudaArrayMemoryRequirements_6getPtr, "cudaArrayMemoryRequirements.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_27cudaArrayMemoryRequirements_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_27cudaArrayMemoryRequirements_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_27cudaArrayMemoryRequirements_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_27cudaArrayMemoryRequirements_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_27cudaArrayMemoryRequirements_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__65) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 4409, 0, __PYX_ERR(0, 4409, __pyx_L1_error)); /* "cuda/cudart.pyx":4410 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4410, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4409 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaArrayMemoryRequirements.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4411 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_27cudaArrayMemoryRequirements_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_27cudaArrayMemoryRequirements_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_27cudaArrayMemoryRequirements_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 4411, 0, __PYX_ERR(0, 4411, __pyx_L1_error)); /* "cuda/cudart.pyx":4412 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":4413 * def __repr__(self): * if self._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, 4413, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":4414 * if self._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/cudart.pyx":4415 * str_list = [] * try: * str_list += ['size : ' + str(self.size)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['size : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_size_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4415, __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, 4415, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_size, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4415, __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, 4415, __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)) __PYX_ERR(0, 4415, __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, 4415, __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/cudart.pyx":4414 * if self._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/cudart.pyx":4416 * try: * str_list += ['size : ' + str(self.size)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['size : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaArrayMemoryRequirements.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 4416, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":4417 * str_list += ['size : ' + str(self.size)] * except ValueError: * str_list += ['size : '] # <<<<<<<<<<<<<< * try: * str_list += ['alignment : ' + str(self.alignment)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4417, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_size_ValueError); __Pyx_GIVEREF(__pyx_kp_u_size_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_size_ValueError)) __PYX_ERR(0, 4417, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4417, __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/cudart.pyx":4414 * if self._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/cudart.pyx":4418 * except ValueError: * str_list += ['size : '] * 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/cudart.pyx":4419 * str_list += ['size : '] * try: * str_list += ['alignment : ' + str(self.alignment)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['alignment : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_alignment_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4419, __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, 4419, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_alignment, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4419, __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, 4419, __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)) __PYX_ERR(0, 4419, __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, 4419, __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/cudart.pyx":4418 * except ValueError: * str_list += ['size : '] * 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/cudart.pyx":4420 * try: * str_list += ['alignment : ' + str(self.alignment)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['alignment : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaArrayMemoryRequirements.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 4420, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":4421 * str_list += ['alignment : ' + str(self.alignment)] * except ValueError: * str_list += ['alignment : '] # <<<<<<<<<<<<<< * try: * str_list += ['reserved : ' + str(self.reserved)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4421, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_alignment_ValueError); __Pyx_GIVEREF(__pyx_kp_u_alignment_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_alignment_ValueError)) __PYX_ERR(0, 4421, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4421, __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/cudart.pyx":4418 * except ValueError: * str_list += ['size : '] * 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/cudart.pyx":4422 * except ValueError: * str_list += ['alignment : '] * 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/cudart.pyx":4423 * str_list += ['alignment : '] * try: * str_list += ['reserved : ' + str(self.reserved)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['reserved : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_reserved_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4423, __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, 4423, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_reserved, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4423, __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, 4423, __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)) __PYX_ERR(0, 4423, __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, 4423, __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/cudart.pyx":4422 * except ValueError: * str_list += ['alignment : '] * 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/cudart.pyx":4424 * try: * str_list += ['reserved : ' + str(self.reserved)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['reserved : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaArrayMemoryRequirements.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 4424, __pyx_L22_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":4425 * str_list += ['reserved : ' + str(self.reserved)] * except ValueError: * str_list += ['reserved : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4425, __pyx_L22_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_reserved_ValueError); __Pyx_GIVEREF(__pyx_kp_u_reserved_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_reserved_ValueError)) __PYX_ERR(0, 4425, __pyx_L22_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4425, __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/cudart.pyx":4422 * except ValueError: * str_list += ['alignment : '] * 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/cudart.pyx":4426 * except ValueError: * str_list += ['reserved : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4426, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4412 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":4428 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def size(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":4411 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaArrayMemoryRequirements.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4429 * else: * return '' * @property # <<<<<<<<<<<<<< * def size(self): * return self._ptr[0].size */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_27cudaArrayMemoryRequirements_4size_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_27cudaArrayMemoryRequirements_4size___get__(((struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_27cudaArrayMemoryRequirements_4size___get__(struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4429, 0, __PYX_ERR(0, 4429, __pyx_L1_error)); /* "cuda/cudart.pyx":4431 * @property * def size(self): * return self._ptr[0].size # <<<<<<<<<<<<<< * @size.setter * def size(self, size_t size): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4431, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4429 * else: * return '' * @property # <<<<<<<<<<<<<< * def size(self): * return self._ptr[0].size */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaArrayMemoryRequirements.size.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4432 * def size(self): * return self._ptr[0].size * @size.setter # <<<<<<<<<<<<<< * def size(self, size_t size): * self._ptr[0].size = size */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_27cudaArrayMemoryRequirements_4size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_size); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_size); if (unlikely((__pyx_v_size == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 4433, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaArrayMemoryRequirements.size.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_27cudaArrayMemoryRequirements_4size_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements *)__pyx_v_self), ((size_t)__pyx_v_size)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_27cudaArrayMemoryRequirements_4size_2__set__(struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements *__pyx_v_self, size_t __pyx_v_size) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 4432, 0, __PYX_ERR(0, 4432, __pyx_L1_error)); /* "cuda/cudart.pyx":4434 * @size.setter * def size(self, size_t size): * self._ptr[0].size = size # <<<<<<<<<<<<<< * @property * def alignment(self): */ (__pyx_v_self->_ptr[0]).size = __pyx_v_size; /* "cuda/cudart.pyx":4432 * def size(self): * return self._ptr[0].size * @size.setter # <<<<<<<<<<<<<< * def size(self, size_t size): * self._ptr[0].size = size */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaArrayMemoryRequirements.size.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4435 * def size(self, size_t size): * self._ptr[0].size = size * @property # <<<<<<<<<<<<<< * def alignment(self): * return self._ptr[0].alignment */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_27cudaArrayMemoryRequirements_9alignment_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_27cudaArrayMemoryRequirements_9alignment___get__(((struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_27cudaArrayMemoryRequirements_9alignment___get__(struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4435, 0, __PYX_ERR(0, 4435, __pyx_L1_error)); /* "cuda/cudart.pyx":4437 * @property * def alignment(self): * return self._ptr[0].alignment # <<<<<<<<<<<<<< * @alignment.setter * def alignment(self, size_t alignment): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).alignment); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4437, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4435 * def size(self, size_t size): * self._ptr[0].size = size * @property # <<<<<<<<<<<<<< * def alignment(self): * return self._ptr[0].alignment */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaArrayMemoryRequirements.alignment.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4438 * def alignment(self): * return self._ptr[0].alignment * @alignment.setter # <<<<<<<<<<<<<< * def alignment(self, size_t alignment): * self._ptr[0].alignment = alignment */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_27cudaArrayMemoryRequirements_9alignment_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_alignment); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_alignment); if (unlikely((__pyx_v_alignment == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 4439, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaArrayMemoryRequirements.alignment.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_27cudaArrayMemoryRequirements_9alignment_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements *)__pyx_v_self), ((size_t)__pyx_v_alignment)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_27cudaArrayMemoryRequirements_9alignment_2__set__(struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements *__pyx_v_self, size_t __pyx_v_alignment) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 4438, 0, __PYX_ERR(0, 4438, __pyx_L1_error)); /* "cuda/cudart.pyx":4440 * @alignment.setter * def alignment(self, size_t alignment): * self._ptr[0].alignment = alignment # <<<<<<<<<<<<<< * @property * def reserved(self): */ (__pyx_v_self->_ptr[0]).alignment = __pyx_v_alignment; /* "cuda/cudart.pyx":4438 * def alignment(self): * return self._ptr[0].alignment * @alignment.setter # <<<<<<<<<<<<<< * def alignment(self, size_t alignment): * self._ptr[0].alignment = alignment */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaArrayMemoryRequirements.alignment.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4441 * def alignment(self, size_t alignment): * self._ptr[0].alignment = alignment * @property # <<<<<<<<<<<<<< * def reserved(self): * return self._ptr[0].reserved */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_27cudaArrayMemoryRequirements_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_27cudaArrayMemoryRequirements_8reserved___get__(((struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_27cudaArrayMemoryRequirements_8reserved___get__(struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4441, 0, __PYX_ERR(0, 4441, __pyx_L1_error)); /* "cuda/cudart.pyx":4443 * @property * def reserved(self): * return self._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->_ptr[0]).reserved, 4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4443, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4441 * def alignment(self, size_t alignment): * self._ptr[0].alignment = alignment * @property # <<<<<<<<<<<<<< * def reserved(self): * return self._ptr[0].reserved */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaArrayMemoryRequirements.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4444 * def reserved(self): * return self._ptr[0].reserved * @reserved.setter # <<<<<<<<<<<<<< * def reserved(self, reserved): * self._ptr[0].reserved = reserved */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_27cudaArrayMemoryRequirements_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_27cudaArrayMemoryRequirements_8reserved_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements *)__pyx_v_self), ((PyObject *)__pyx_v_reserved)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_27cudaArrayMemoryRequirements_8reserved_2__set__(struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements *__pyx_v_self, PyObject *__pyx_v_reserved) { int __pyx_r; __Pyx_TraceDeclarations unsigned int __pyx_t_1[4]; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 4444, 0, __PYX_ERR(0, 4444, __pyx_L1_error)); /* "cuda/cudart.pyx":4446 * @reserved.setter * def reserved(self, reserved): * self._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, 4446, __pyx_L1_error) memcpy(&((__pyx_v_self->_ptr[0]).reserved[0]), __pyx_t_1, sizeof((__pyx_v_self->_ptr[0]).reserved[0]) * (4)); /* "cuda/cudart.pyx":4444 * def reserved(self): * return self._ptr[0].reserved * @reserved.setter # <<<<<<<<<<<<<< * def reserved(self, reserved): * self._ptr[0].reserved = reserved */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaArrayMemoryRequirements.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_27cudaArrayMemoryRequirements_10__reduce_cython__, "cudaArrayMemoryRequirements.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_27cudaArrayMemoryRequirements_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_27cudaArrayMemoryRequirements_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_27cudaArrayMemoryRequirements_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_27cudaArrayMemoryRequirements_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_27cudaArrayMemoryRequirements_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__66) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaArrayMemoryRequirements.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_27cudaArrayMemoryRequirements_12__setstate_cython__, "cudaArrayMemoryRequirements.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_27cudaArrayMemoryRequirements_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_27cudaArrayMemoryRequirements_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_27cudaArrayMemoryRequirements_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaArrayMemoryRequirements.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_27cudaArrayMemoryRequirements_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_27cudaArrayMemoryRequirements_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__67) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaArrayMemoryRequirements.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4469 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaPitchedPtr_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_14cudaPitchedPtr_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4469, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 4469, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4469, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 4469, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaPitchedPtr.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaPitchedPtr___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaPitchedPtr___cinit__(struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 4469, 0, __PYX_ERR(0, 4469, __pyx_L1_error)); /* "cuda/cudart.pyx":4470 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":4471 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaPitchedPtr__val); /* "cuda/cudart.pyx":4470 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":4473 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * pass */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaPitchedPtr *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":4469 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaPitchedPtr.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4474 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaPitchedPtr_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_14cudaPitchedPtr_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4474, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 4474, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4474, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 4474, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaPitchedPtr.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaPitchedPtr_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaPitchedPtr_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 4474, 0, __PYX_ERR(0, 4474, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaPitchedPtr.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4476 * def __init__(self, void_ptr _ptr = 0): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_14cudaPitchedPtr_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_14cudaPitchedPtr_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_14cudaPitchedPtr_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 4476, 0, __PYX_ERR(0, 4476, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaPitchedPtr.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":4478 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaPitchedPtr_6getPtr, "cudaPitchedPtr.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_14cudaPitchedPtr_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_14cudaPitchedPtr_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_14cudaPitchedPtr_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaPitchedPtr_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaPitchedPtr_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__68) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 4478, 0, __PYX_ERR(0, 4478, __pyx_L1_error)); /* "cuda/cudart.pyx":4479 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4479, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4478 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaPitchedPtr.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4480 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaPitchedPtr_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaPitchedPtr_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaPitchedPtr_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 4480, 0, __PYX_ERR(0, 4480, __pyx_L1_error)); /* "cuda/cudart.pyx":4481 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":4482 * def __repr__(self): * if self._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, 4482, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":4483 * if self._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/cudart.pyx":4484 * str_list = [] * try: * str_list += ['ptr : ' + hex(self.ptr)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['ptr : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ptr_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4484, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4484, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_kp_u_ptr_2, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4484, __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, 4484, __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)) __PYX_ERR(0, 4484, __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, 4484, __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/cudart.pyx":4483 * if self._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/cudart.pyx":4485 * try: * str_list += ['ptr : ' + hex(self.ptr)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['ptr : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaPitchedPtr.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 4485, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":4486 * str_list += ['ptr : ' + hex(self.ptr)] * except ValueError: * str_list += ['ptr : '] # <<<<<<<<<<<<<< * try: * str_list += ['pitch : ' + str(self.pitch)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4486, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_ptr_ValueError); __Pyx_GIVEREF(__pyx_kp_u_ptr_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_ptr_ValueError)) __PYX_ERR(0, 4486, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4486, __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/cudart.pyx":4483 * if self._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/cudart.pyx":4487 * except ValueError: * str_list += ['ptr : '] * 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/cudart.pyx":4488 * str_list += ['ptr : '] * try: * str_list += ['pitch : ' + str(self.pitch)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['pitch : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_pitch_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4488, __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, 4488, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_pitch, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4488, __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, 4488, __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)) __PYX_ERR(0, 4488, __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, 4488, __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/cudart.pyx":4487 * except ValueError: * str_list += ['ptr : '] * 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/cudart.pyx":4489 * try: * str_list += ['pitch : ' + str(self.pitch)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['pitch : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaPitchedPtr.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 4489, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":4490 * str_list += ['pitch : ' + str(self.pitch)] * except ValueError: * str_list += ['pitch : '] # <<<<<<<<<<<<<< * try: * str_list += ['xsize : ' + str(self.xsize)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4490, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_pitch_ValueError); __Pyx_GIVEREF(__pyx_kp_u_pitch_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_pitch_ValueError)) __PYX_ERR(0, 4490, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4490, __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/cudart.pyx":4487 * except ValueError: * str_list += ['ptr : '] * 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/cudart.pyx":4491 * except ValueError: * str_list += ['pitch : '] * 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/cudart.pyx":4492 * str_list += ['pitch : '] * try: * str_list += ['xsize : ' + str(self.xsize)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['xsize : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_xsize_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4492, __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, 4492, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_xsize, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4492, __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, 4492, __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)) __PYX_ERR(0, 4492, __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, 4492, __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/cudart.pyx":4491 * except ValueError: * str_list += ['pitch : '] * 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/cudart.pyx":4493 * try: * str_list += ['xsize : ' + str(self.xsize)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['xsize : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaPitchedPtr.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 4493, __pyx_L22_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":4494 * str_list += ['xsize : ' + str(self.xsize)] * except ValueError: * str_list += ['xsize : '] # <<<<<<<<<<<<<< * try: * str_list += ['ysize : ' + str(self.ysize)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4494, __pyx_L22_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_xsize_ValueError); __Pyx_GIVEREF(__pyx_kp_u_xsize_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_xsize_ValueError)) __PYX_ERR(0, 4494, __pyx_L22_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4494, __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/cudart.pyx":4491 * except ValueError: * str_list += ['pitch : '] * 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/cudart.pyx":4495 * except ValueError: * str_list += ['xsize : '] * 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/cudart.pyx":4496 * str_list += ['xsize : '] * try: * str_list += ['ysize : ' + str(self.ysize)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['ysize : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ysize_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4496, __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, 4496, __pyx_L28_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_ysize, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4496, __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, 4496, __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)) __PYX_ERR(0, 4496, __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, 4496, __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/cudart.pyx":4495 * except ValueError: * str_list += ['xsize : '] * 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/cudart.pyx":4497 * try: * str_list += ['ysize : ' + str(self.ysize)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['ysize : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaPitchedPtr.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 4497, __pyx_L30_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":4498 * str_list += ['ysize : ' + str(self.ysize)] * except ValueError: * str_list += ['ysize : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4498, __pyx_L30_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_ysize_ValueError); __Pyx_GIVEREF(__pyx_kp_u_ysize_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_ysize_ValueError)) __PYX_ERR(0, 4498, __pyx_L30_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4498, __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/cudart.pyx":4495 * except ValueError: * str_list += ['xsize : '] * 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/cudart.pyx":4499 * except ValueError: * str_list += ['ysize : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4499, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4481 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":4501 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def ptr(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":4480 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaPitchedPtr.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4502 * else: * return '' * @property # <<<<<<<<<<<<<< * def ptr(self): * return self._ptr[0].ptr */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaPitchedPtr_3ptr_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaPitchedPtr_3ptr___get__(((struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaPitchedPtr_3ptr___get__(struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4502, 0, __PYX_ERR(0, 4502, __pyx_L1_error)); /* "cuda/cudart.pyx":4504 * @property * def ptr(self): * return self._ptr[0].ptr # <<<<<<<<<<<<<< * @ptr.setter * def ptr(self, ptr): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).ptr)); 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/cudart.pyx":4502 * else: * return '' * @property # <<<<<<<<<<<<<< * def ptr(self): * return self._ptr[0].ptr */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaPitchedPtr.ptr.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4505 * def ptr(self): * return self._ptr[0].ptr * @ptr.setter # <<<<<<<<<<<<<< * def ptr(self, ptr): * _cptr = utils.HelperInputVoidPtr(ptr) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaPitchedPtr_3ptr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_ptr); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_14cudaPitchedPtr_3ptr_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *)__pyx_v_self), ((PyObject *)__pyx_v_ptr)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaPitchedPtr_3ptr_2__set__(struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *__pyx_v_self, PyObject *__pyx_v_ptr) { PyObject *__pyx_v__cptr = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 4505, 0, __PYX_ERR(0, 4505, __pyx_L1_error)); /* "cuda/cudart.pyx":4507 * @ptr.setter * def ptr(self, ptr): * _cptr = utils.HelperInputVoidPtr(ptr) # <<<<<<<<<<<<<< * self._ptr[0].ptr = _cptr.cptr * @property */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_ptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4507, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__cptr = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":4508 * def ptr(self, ptr): * _cptr = utils.HelperInputVoidPtr(ptr) * self._ptr[0].ptr = _cptr.cptr # <<<<<<<<<<<<<< * @property * def pitch(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v__cptr, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4508, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4508, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":4505 * def ptr(self): * return self._ptr[0].ptr * @ptr.setter # <<<<<<<<<<<<<< * def ptr(self, ptr): * _cptr = utils.HelperInputVoidPtr(ptr) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaPitchedPtr.ptr.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v__cptr); __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4509 * _cptr = utils.HelperInputVoidPtr(ptr) * self._ptr[0].ptr = _cptr.cptr * @property # <<<<<<<<<<<<<< * def pitch(self): * return self._ptr[0].pitch */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaPitchedPtr_5pitch_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaPitchedPtr_5pitch___get__(((struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaPitchedPtr_5pitch___get__(struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4509, 0, __PYX_ERR(0, 4509, __pyx_L1_error)); /* "cuda/cudart.pyx":4511 * @property * def pitch(self): * return self._ptr[0].pitch # <<<<<<<<<<<<<< * @pitch.setter * def pitch(self, size_t pitch): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).pitch); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4511, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4509 * _cptr = utils.HelperInputVoidPtr(ptr) * self._ptr[0].ptr = _cptr.cptr * @property # <<<<<<<<<<<<<< * def pitch(self): * return self._ptr[0].pitch */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaPitchedPtr.pitch.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4512 * def pitch(self): * return self._ptr[0].pitch * @pitch.setter # <<<<<<<<<<<<<< * def pitch(self, size_t pitch): * self._ptr[0].pitch = pitch */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaPitchedPtr_5pitch_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_pitch); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_pitch); if (unlikely((__pyx_v_pitch == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 4513, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaPitchedPtr.pitch.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaPitchedPtr_5pitch_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *)__pyx_v_self), ((size_t)__pyx_v_pitch)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaPitchedPtr_5pitch_2__set__(struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *__pyx_v_self, size_t __pyx_v_pitch) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 4512, 0, __PYX_ERR(0, 4512, __pyx_L1_error)); /* "cuda/cudart.pyx":4514 * @pitch.setter * def pitch(self, size_t pitch): * self._ptr[0].pitch = pitch # <<<<<<<<<<<<<< * @property * def xsize(self): */ (__pyx_v_self->_ptr[0]).pitch = __pyx_v_pitch; /* "cuda/cudart.pyx":4512 * def pitch(self): * return self._ptr[0].pitch * @pitch.setter # <<<<<<<<<<<<<< * def pitch(self, size_t pitch): * self._ptr[0].pitch = pitch */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaPitchedPtr.pitch.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4515 * def pitch(self, size_t pitch): * self._ptr[0].pitch = pitch * @property # <<<<<<<<<<<<<< * def xsize(self): * return self._ptr[0].xsize */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaPitchedPtr_5xsize_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaPitchedPtr_5xsize___get__(((struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaPitchedPtr_5xsize___get__(struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4515, 0, __PYX_ERR(0, 4515, __pyx_L1_error)); /* "cuda/cudart.pyx":4517 * @property * def xsize(self): * return self._ptr[0].xsize # <<<<<<<<<<<<<< * @xsize.setter * def xsize(self, size_t xsize): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).xsize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4517, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4515 * def pitch(self, size_t pitch): * self._ptr[0].pitch = pitch * @property # <<<<<<<<<<<<<< * def xsize(self): * return self._ptr[0].xsize */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaPitchedPtr.xsize.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4518 * def xsize(self): * return self._ptr[0].xsize * @xsize.setter # <<<<<<<<<<<<<< * def xsize(self, size_t xsize): * self._ptr[0].xsize = xsize */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaPitchedPtr_5xsize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_xsize); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_xsize); if (unlikely((__pyx_v_xsize == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 4519, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaPitchedPtr.xsize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaPitchedPtr_5xsize_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *)__pyx_v_self), ((size_t)__pyx_v_xsize)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaPitchedPtr_5xsize_2__set__(struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *__pyx_v_self, size_t __pyx_v_xsize) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 4518, 0, __PYX_ERR(0, 4518, __pyx_L1_error)); /* "cuda/cudart.pyx":4520 * @xsize.setter * def xsize(self, size_t xsize): * self._ptr[0].xsize = xsize # <<<<<<<<<<<<<< * @property * def ysize(self): */ (__pyx_v_self->_ptr[0]).xsize = __pyx_v_xsize; /* "cuda/cudart.pyx":4518 * def xsize(self): * return self._ptr[0].xsize * @xsize.setter # <<<<<<<<<<<<<< * def xsize(self, size_t xsize): * self._ptr[0].xsize = xsize */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaPitchedPtr.xsize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4521 * def xsize(self, size_t xsize): * self._ptr[0].xsize = xsize * @property # <<<<<<<<<<<<<< * def ysize(self): * return self._ptr[0].ysize */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaPitchedPtr_5ysize_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaPitchedPtr_5ysize___get__(((struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaPitchedPtr_5ysize___get__(struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4521, 0, __PYX_ERR(0, 4521, __pyx_L1_error)); /* "cuda/cudart.pyx":4523 * @property * def ysize(self): * return self._ptr[0].ysize # <<<<<<<<<<<<<< * @ysize.setter * def ysize(self, size_t ysize): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).ysize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4523, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4521 * def xsize(self, size_t xsize): * self._ptr[0].xsize = xsize * @property # <<<<<<<<<<<<<< * def ysize(self): * return self._ptr[0].ysize */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaPitchedPtr.ysize.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4524 * def ysize(self): * return self._ptr[0].ysize * @ysize.setter # <<<<<<<<<<<<<< * def ysize(self, size_t ysize): * self._ptr[0].ysize = ysize */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaPitchedPtr_5ysize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_ysize); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_ysize); if (unlikely((__pyx_v_ysize == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 4525, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaPitchedPtr.ysize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaPitchedPtr_5ysize_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *)__pyx_v_self), ((size_t)__pyx_v_ysize)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaPitchedPtr_5ysize_2__set__(struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *__pyx_v_self, size_t __pyx_v_ysize) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 4524, 0, __PYX_ERR(0, 4524, __pyx_L1_error)); /* "cuda/cudart.pyx":4526 * @ysize.setter * def ysize(self, size_t ysize): * self._ptr[0].ysize = ysize # <<<<<<<<<<<<<< * * cdef class cudaExtent: */ (__pyx_v_self->_ptr[0]).ysize = __pyx_v_ysize; /* "cuda/cudart.pyx":4524 * def ysize(self): * return self._ptr[0].ysize * @ysize.setter # <<<<<<<<<<<<<< * def ysize(self, size_t ysize): * self._ptr[0].ysize = ysize */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaPitchedPtr.ysize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_14cudaPitchedPtr_10__reduce_cython__, "cudaPitchedPtr.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_14cudaPitchedPtr_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_14cudaPitchedPtr_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_14cudaPitchedPtr_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaPitchedPtr_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaPitchedPtr_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__69) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaPitchedPtr.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_14cudaPitchedPtr_12__setstate_cython__, "cudaPitchedPtr.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_14cudaPitchedPtr_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_14cudaPitchedPtr_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_14cudaPitchedPtr_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaPitchedPtr.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaPitchedPtr_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaPitchedPtr_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__70) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaPitchedPtr.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4548 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_10cudaExtent_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_10cudaExtent_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4548, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 4548, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4548, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 4548, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaExtent.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_10cudaExtent___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaExtent *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_10cudaExtent___cinit__(struct __pyx_obj_4cuda_6cudart_cudaExtent *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 4548, 0, __PYX_ERR(0, 4548, __pyx_L1_error)); /* "cuda/cudart.pyx":4549 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":4550 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaExtent__val); /* "cuda/cudart.pyx":4549 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":4552 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * pass */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaExtent *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":4548 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExtent.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4553 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_10cudaExtent_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_10cudaExtent_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4553, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 4553, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); 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_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 4553, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaExtent.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_10cudaExtent_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaExtent *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_10cudaExtent_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExtent *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 4553, 0, __PYX_ERR(0, 4553, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExtent.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4555 * def __init__(self, void_ptr _ptr = 0): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_10cudaExtent_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_10cudaExtent_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaExtent *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_10cudaExtent_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExtent *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 4555, 0, __PYX_ERR(0, 4555, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaExtent.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":4557 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_10cudaExtent_6getPtr, "cudaExtent.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_10cudaExtent_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_10cudaExtent_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_10cudaExtent_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_10cudaExtent_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaExtent *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_10cudaExtent_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaExtent *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__71) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 4557, 0, __PYX_ERR(0, 4557, __pyx_L1_error)); /* "cuda/cudart.pyx":4558 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4558, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4557 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaExtent.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4559 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_10cudaExtent_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_10cudaExtent_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaExtent *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_10cudaExtent_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaExtent *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 4559, 0, __PYX_ERR(0, 4559, __pyx_L1_error)); /* "cuda/cudart.pyx":4560 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":4561 * def __repr__(self): * if self._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, 4561, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":4562 * if self._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/cudart.pyx":4563 * str_list = [] * try: * str_list += ['width : ' + str(self.width)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['width : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_width_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4563, __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, 4563, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_width, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4563, __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, 4563, __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)) __PYX_ERR(0, 4563, __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, 4563, __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/cudart.pyx":4562 * if self._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/cudart.pyx":4564 * try: * str_list += ['width : ' + str(self.width)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['width : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaExtent.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 4564, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":4565 * str_list += ['width : ' + str(self.width)] * except ValueError: * str_list += ['width : '] # <<<<<<<<<<<<<< * try: * str_list += ['height : ' + str(self.height)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4565, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_width_ValueError); __Pyx_GIVEREF(__pyx_kp_u_width_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_width_ValueError)) __PYX_ERR(0, 4565, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4565, __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/cudart.pyx":4562 * if self._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/cudart.pyx":4566 * except ValueError: * str_list += ['width : '] * 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/cudart.pyx":4567 * str_list += ['width : '] * try: * str_list += ['height : ' + str(self.height)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['height : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_height_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4567, __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, 4567, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_height, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4567, __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, 4567, __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)) __PYX_ERR(0, 4567, __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, 4567, __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/cudart.pyx":4566 * except ValueError: * str_list += ['width : '] * 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/cudart.pyx":4568 * try: * str_list += ['height : ' + str(self.height)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['height : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaExtent.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 4568, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":4569 * str_list += ['height : ' + str(self.height)] * except ValueError: * str_list += ['height : '] # <<<<<<<<<<<<<< * try: * str_list += ['depth : ' + str(self.depth)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4569, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_height_ValueError); __Pyx_GIVEREF(__pyx_kp_u_height_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_height_ValueError)) __PYX_ERR(0, 4569, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4569, __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/cudart.pyx":4566 * except ValueError: * str_list += ['width : '] * 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/cudart.pyx":4570 * except ValueError: * str_list += ['height : '] * 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/cudart.pyx":4571 * str_list += ['height : '] * try: * str_list += ['depth : ' + str(self.depth)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['depth : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_depth_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4571, __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, 4571, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_depth, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4571, __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, 4571, __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)) __PYX_ERR(0, 4571, __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, 4571, __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/cudart.pyx":4570 * except ValueError: * str_list += ['height : '] * 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/cudart.pyx":4572 * try: * str_list += ['depth : ' + str(self.depth)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['depth : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaExtent.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 4572, __pyx_L22_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":4573 * str_list += ['depth : ' + str(self.depth)] * except ValueError: * str_list += ['depth : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4573, __pyx_L22_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_depth_ValueError); __Pyx_GIVEREF(__pyx_kp_u_depth_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_depth_ValueError)) __PYX_ERR(0, 4573, __pyx_L22_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4573, __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/cudart.pyx":4570 * except ValueError: * str_list += ['height : '] * 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/cudart.pyx":4574 * except ValueError: * str_list += ['depth : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4574, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4560 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":4576 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def width(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":4559 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaExtent.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4577 * else: * return '' * @property # <<<<<<<<<<<<<< * def width(self): * return self._ptr[0].width */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_10cudaExtent_5width_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_10cudaExtent_5width___get__(((struct __pyx_obj_4cuda_6cudart_cudaExtent *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_10cudaExtent_5width___get__(struct __pyx_obj_4cuda_6cudart_cudaExtent *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4577, 0, __PYX_ERR(0, 4577, __pyx_L1_error)); /* "cuda/cudart.pyx":4579 * @property * def width(self): * return self._ptr[0].width # <<<<<<<<<<<<<< * @width.setter * def width(self, size_t width): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).width); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4579, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4577 * else: * return '' * @property # <<<<<<<<<<<<<< * def width(self): * return self._ptr[0].width */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaExtent.width.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4580 * def width(self): * return self._ptr[0].width * @width.setter # <<<<<<<<<<<<<< * def width(self, size_t width): * self._ptr[0].width = width */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_10cudaExtent_5width_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_width); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_width); if (unlikely((__pyx_v_width == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 4581, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaExtent.width.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_10cudaExtent_5width_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaExtent *)__pyx_v_self), ((size_t)__pyx_v_width)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_10cudaExtent_5width_2__set__(struct __pyx_obj_4cuda_6cudart_cudaExtent *__pyx_v_self, size_t __pyx_v_width) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 4580, 0, __PYX_ERR(0, 4580, __pyx_L1_error)); /* "cuda/cudart.pyx":4582 * @width.setter * def width(self, size_t width): * self._ptr[0].width = width # <<<<<<<<<<<<<< * @property * def height(self): */ (__pyx_v_self->_ptr[0]).width = __pyx_v_width; /* "cuda/cudart.pyx":4580 * def width(self): * return self._ptr[0].width * @width.setter # <<<<<<<<<<<<<< * def width(self, size_t width): * self._ptr[0].width = width */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExtent.width.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4583 * def width(self, size_t width): * self._ptr[0].width = width * @property # <<<<<<<<<<<<<< * def height(self): * return self._ptr[0].height */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_10cudaExtent_6height_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_10cudaExtent_6height___get__(((struct __pyx_obj_4cuda_6cudart_cudaExtent *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_10cudaExtent_6height___get__(struct __pyx_obj_4cuda_6cudart_cudaExtent *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4583, 0, __PYX_ERR(0, 4583, __pyx_L1_error)); /* "cuda/cudart.pyx":4585 * @property * def height(self): * return self._ptr[0].height # <<<<<<<<<<<<<< * @height.setter * def height(self, size_t height): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).height); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4585, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4583 * def width(self, size_t width): * self._ptr[0].width = width * @property # <<<<<<<<<<<<<< * def height(self): * return self._ptr[0].height */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaExtent.height.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4586 * def height(self): * return self._ptr[0].height * @height.setter # <<<<<<<<<<<<<< * def height(self, size_t height): * self._ptr[0].height = height */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_10cudaExtent_6height_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_height); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_height); if (unlikely((__pyx_v_height == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 4587, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaExtent.height.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_10cudaExtent_6height_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaExtent *)__pyx_v_self), ((size_t)__pyx_v_height)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_10cudaExtent_6height_2__set__(struct __pyx_obj_4cuda_6cudart_cudaExtent *__pyx_v_self, size_t __pyx_v_height) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 4586, 0, __PYX_ERR(0, 4586, __pyx_L1_error)); /* "cuda/cudart.pyx":4588 * @height.setter * def height(self, size_t height): * self._ptr[0].height = height # <<<<<<<<<<<<<< * @property * def depth(self): */ (__pyx_v_self->_ptr[0]).height = __pyx_v_height; /* "cuda/cudart.pyx":4586 * def height(self): * return self._ptr[0].height * @height.setter # <<<<<<<<<<<<<< * def height(self, size_t height): * self._ptr[0].height = height */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExtent.height.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4589 * def height(self, size_t height): * self._ptr[0].height = height * @property # <<<<<<<<<<<<<< * def depth(self): * return self._ptr[0].depth */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_10cudaExtent_5depth_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_10cudaExtent_5depth___get__(((struct __pyx_obj_4cuda_6cudart_cudaExtent *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_10cudaExtent_5depth___get__(struct __pyx_obj_4cuda_6cudart_cudaExtent *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4589, 0, __PYX_ERR(0, 4589, __pyx_L1_error)); /* "cuda/cudart.pyx":4591 * @property * def depth(self): * return self._ptr[0].depth # <<<<<<<<<<<<<< * @depth.setter * def depth(self, size_t depth): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).depth); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4591, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4589 * def height(self, size_t height): * self._ptr[0].height = height * @property # <<<<<<<<<<<<<< * def depth(self): * return self._ptr[0].depth */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaExtent.depth.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4592 * def depth(self): * return self._ptr[0].depth * @depth.setter # <<<<<<<<<<<<<< * def depth(self, size_t depth): * self._ptr[0].depth = depth */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_10cudaExtent_5depth_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_depth); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_depth); if (unlikely((__pyx_v_depth == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 4593, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaExtent.depth.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_10cudaExtent_5depth_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaExtent *)__pyx_v_self), ((size_t)__pyx_v_depth)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_10cudaExtent_5depth_2__set__(struct __pyx_obj_4cuda_6cudart_cudaExtent *__pyx_v_self, size_t __pyx_v_depth) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 4592, 0, __PYX_ERR(0, 4592, __pyx_L1_error)); /* "cuda/cudart.pyx":4594 * @depth.setter * def depth(self, size_t depth): * self._ptr[0].depth = depth # <<<<<<<<<<<<<< * * cdef class cudaPos: */ (__pyx_v_self->_ptr[0]).depth = __pyx_v_depth; /* "cuda/cudart.pyx":4592 * def depth(self): * return self._ptr[0].depth * @depth.setter # <<<<<<<<<<<<<< * def depth(self, size_t depth): * self._ptr[0].depth = depth */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExtent.depth.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_10cudaExtent_10__reduce_cython__, "cudaExtent.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_10cudaExtent_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_10cudaExtent_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_10cudaExtent_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_10cudaExtent_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaExtent *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_10cudaExtent_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExtent *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__72) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaExtent.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_10cudaExtent_12__setstate_cython__, "cudaExtent.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_10cudaExtent_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_10cudaExtent_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_10cudaExtent_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaExtent.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_10cudaExtent_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaExtent *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_10cudaExtent_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExtent *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__73) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaExtent.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4615 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_7cudaPos_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_7cudaPos_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4615, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 4615, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4615, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 4615, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaPos.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_7cudaPos___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaPos *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_7cudaPos___cinit__(struct __pyx_obj_4cuda_6cudart_cudaPos *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 4615, 0, __PYX_ERR(0, 4615, __pyx_L1_error)); /* "cuda/cudart.pyx":4616 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":4617 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaPos__val); /* "cuda/cudart.pyx":4616 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":4619 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * pass */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaPos *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":4615 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaPos.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4620 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_7cudaPos_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_7cudaPos_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4620, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 4620, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4620, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 4620, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaPos.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_7cudaPos_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaPos *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_7cudaPos_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaPos *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 4620, 0, __PYX_ERR(0, 4620, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaPos.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4622 * def __init__(self, void_ptr _ptr = 0): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_7cudaPos_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_7cudaPos_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaPos *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_7cudaPos_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaPos *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 4622, 0, __PYX_ERR(0, 4622, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaPos.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":4624 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_7cudaPos_6getPtr, "cudaPos.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_7cudaPos_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_7cudaPos_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_7cudaPos_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_7cudaPos_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaPos *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_7cudaPos_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaPos *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__74) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 4624, 0, __PYX_ERR(0, 4624, __pyx_L1_error)); /* "cuda/cudart.pyx":4625 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4625, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4624 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaPos.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4626 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_7cudaPos_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_7cudaPos_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaPos *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_7cudaPos_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaPos *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 4626, 0, __PYX_ERR(0, 4626, __pyx_L1_error)); /* "cuda/cudart.pyx":4627 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":4628 * def __repr__(self): * if self._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, 4628, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":4629 * if self._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/cudart.pyx":4630 * str_list = [] * try: * str_list += ['x : ' + str(self.x)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['x : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_x_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4630, __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, 4630, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_x, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4630, __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, 4630, __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)) __PYX_ERR(0, 4630, __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, 4630, __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/cudart.pyx":4629 * if self._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/cudart.pyx":4631 * try: * str_list += ['x : ' + str(self.x)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['x : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaPos.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 4631, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":4632 * str_list += ['x : ' + str(self.x)] * except ValueError: * str_list += ['x : '] # <<<<<<<<<<<<<< * try: * str_list += ['y : ' + str(self.y)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4632, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_x_ValueError); __Pyx_GIVEREF(__pyx_kp_u_x_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_x_ValueError)) __PYX_ERR(0, 4632, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4632, __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/cudart.pyx":4629 * if self._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/cudart.pyx":4633 * except ValueError: * str_list += ['x : '] * 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/cudart.pyx":4634 * str_list += ['x : '] * try: * str_list += ['y : ' + str(self.y)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['y : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_y_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4634, __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, 4634, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_y, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4634, __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, 4634, __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)) __PYX_ERR(0, 4634, __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, 4634, __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/cudart.pyx":4633 * except ValueError: * str_list += ['x : '] * 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/cudart.pyx":4635 * try: * str_list += ['y : ' + str(self.y)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['y : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaPos.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 4635, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":4636 * str_list += ['y : ' + str(self.y)] * except ValueError: * str_list += ['y : '] # <<<<<<<<<<<<<< * try: * str_list += ['z : ' + str(self.z)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4636, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_y_ValueError); __Pyx_GIVEREF(__pyx_kp_u_y_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_y_ValueError)) __PYX_ERR(0, 4636, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4636, __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/cudart.pyx":4633 * except ValueError: * str_list += ['x : '] * 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/cudart.pyx":4637 * except ValueError: * str_list += ['y : '] * 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/cudart.pyx":4638 * str_list += ['y : '] * try: * str_list += ['z : ' + str(self.z)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['z : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_z_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4638, __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, 4638, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_z, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4638, __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, 4638, __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)) __PYX_ERR(0, 4638, __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, 4638, __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/cudart.pyx":4637 * except ValueError: * str_list += ['y : '] * 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/cudart.pyx":4639 * try: * str_list += ['z : ' + str(self.z)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['z : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaPos.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 4639, __pyx_L22_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":4640 * str_list += ['z : ' + str(self.z)] * except ValueError: * str_list += ['z : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4640, __pyx_L22_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_z_ValueError); __Pyx_GIVEREF(__pyx_kp_u_z_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_z_ValueError)) __PYX_ERR(0, 4640, __pyx_L22_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4640, __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/cudart.pyx":4637 * except ValueError: * str_list += ['y : '] * 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/cudart.pyx":4641 * except ValueError: * str_list += ['z : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4641, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4627 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":4643 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def x(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":4626 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaPos.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4644 * else: * return '' * @property # <<<<<<<<<<<<<< * def x(self): * return self._ptr[0].x */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_7cudaPos_1x_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_7cudaPos_1x___get__(((struct __pyx_obj_4cuda_6cudart_cudaPos *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_7cudaPos_1x___get__(struct __pyx_obj_4cuda_6cudart_cudaPos *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4644, 0, __PYX_ERR(0, 4644, __pyx_L1_error)); /* "cuda/cudart.pyx":4646 * @property * def x(self): * return self._ptr[0].x # <<<<<<<<<<<<<< * @x.setter * def x(self, size_t x): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4646, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4644 * else: * return '' * @property # <<<<<<<<<<<<<< * def x(self): * return self._ptr[0].x */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaPos.x.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4647 * def x(self): * return self._ptr[0].x * @x.setter # <<<<<<<<<<<<<< * def x(self, size_t x): * self._ptr[0].x = x */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_7cudaPos_1x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_x); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_x); if (unlikely((__pyx_v_x == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 4648, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaPos.x.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_7cudaPos_1x_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaPos *)__pyx_v_self), ((size_t)__pyx_v_x)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_7cudaPos_1x_2__set__(struct __pyx_obj_4cuda_6cudart_cudaPos *__pyx_v_self, size_t __pyx_v_x) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 4647, 0, __PYX_ERR(0, 4647, __pyx_L1_error)); /* "cuda/cudart.pyx":4649 * @x.setter * def x(self, size_t x): * self._ptr[0].x = x # <<<<<<<<<<<<<< * @property * def y(self): */ (__pyx_v_self->_ptr[0]).x = __pyx_v_x; /* "cuda/cudart.pyx":4647 * def x(self): * return self._ptr[0].x * @x.setter # <<<<<<<<<<<<<< * def x(self, size_t x): * self._ptr[0].x = x */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaPos.x.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4650 * def x(self, size_t x): * self._ptr[0].x = x * @property # <<<<<<<<<<<<<< * def y(self): * return self._ptr[0].y */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_7cudaPos_1y_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_7cudaPos_1y___get__(((struct __pyx_obj_4cuda_6cudart_cudaPos *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_7cudaPos_1y___get__(struct __pyx_obj_4cuda_6cudart_cudaPos *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4650, 0, __PYX_ERR(0, 4650, __pyx_L1_error)); /* "cuda/cudart.pyx":4652 * @property * def y(self): * return self._ptr[0].y # <<<<<<<<<<<<<< * @y.setter * def y(self, size_t y): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4652, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4650 * def x(self, size_t x): * self._ptr[0].x = x * @property # <<<<<<<<<<<<<< * def y(self): * return self._ptr[0].y */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaPos.y.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4653 * def y(self): * return self._ptr[0].y * @y.setter # <<<<<<<<<<<<<< * def y(self, size_t y): * self._ptr[0].y = y */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_7cudaPos_1y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_y); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_y); if (unlikely((__pyx_v_y == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 4654, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaPos.y.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_7cudaPos_1y_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaPos *)__pyx_v_self), ((size_t)__pyx_v_y)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_7cudaPos_1y_2__set__(struct __pyx_obj_4cuda_6cudart_cudaPos *__pyx_v_self, size_t __pyx_v_y) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 4653, 0, __PYX_ERR(0, 4653, __pyx_L1_error)); /* "cuda/cudart.pyx":4655 * @y.setter * def y(self, size_t y): * self._ptr[0].y = y # <<<<<<<<<<<<<< * @property * def z(self): */ (__pyx_v_self->_ptr[0]).y = __pyx_v_y; /* "cuda/cudart.pyx":4653 * def y(self): * return self._ptr[0].y * @y.setter # <<<<<<<<<<<<<< * def y(self, size_t y): * self._ptr[0].y = y */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaPos.y.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4656 * def y(self, size_t y): * self._ptr[0].y = y * @property # <<<<<<<<<<<<<< * def z(self): * return self._ptr[0].z */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_7cudaPos_1z_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_7cudaPos_1z___get__(((struct __pyx_obj_4cuda_6cudart_cudaPos *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_7cudaPos_1z___get__(struct __pyx_obj_4cuda_6cudart_cudaPos *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4656, 0, __PYX_ERR(0, 4656, __pyx_L1_error)); /* "cuda/cudart.pyx":4658 * @property * def z(self): * return self._ptr[0].z # <<<<<<<<<<<<<< * @z.setter * def z(self, size_t z): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4658, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4656 * def y(self, size_t y): * self._ptr[0].y = y * @property # <<<<<<<<<<<<<< * def z(self): * return self._ptr[0].z */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaPos.z.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4659 * def z(self): * return self._ptr[0].z * @z.setter # <<<<<<<<<<<<<< * def z(self, size_t z): * self._ptr[0].z = z */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_7cudaPos_1z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_z); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_z); if (unlikely((__pyx_v_z == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 4660, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaPos.z.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_7cudaPos_1z_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaPos *)__pyx_v_self), ((size_t)__pyx_v_z)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_7cudaPos_1z_2__set__(struct __pyx_obj_4cuda_6cudart_cudaPos *__pyx_v_self, size_t __pyx_v_z) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 4659, 0, __PYX_ERR(0, 4659, __pyx_L1_error)); /* "cuda/cudart.pyx":4661 * @z.setter * def z(self, size_t z): * self._ptr[0].z = z # <<<<<<<<<<<<<< * * cdef class cudaMemcpy3DParms: */ (__pyx_v_self->_ptr[0]).z = __pyx_v_z; /* "cuda/cudart.pyx":4659 * def z(self): * return self._ptr[0].z * @z.setter # <<<<<<<<<<<<<< * def z(self, size_t z): * self._ptr[0].z = z */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaPos.z.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_7cudaPos_10__reduce_cython__, "cudaPos.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_7cudaPos_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_7cudaPos_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_7cudaPos_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_7cudaPos_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaPos *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_7cudaPos_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaPos *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__75) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaPos.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_7cudaPos_12__setstate_cython__, "cudaPos.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_7cudaPos_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_7cudaPos_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_7cudaPos_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaPos.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_7cudaPos_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaPos *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_7cudaPos_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaPos *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__76) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaPos.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4692 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4692, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 4692, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4692, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 4692, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DParms.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_17cudaMemcpy3DParms___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_17cudaMemcpy3DParms___cinit__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 4692, 0, __PYX_ERR(0, 4692, __pyx_L1_error)); /* "cuda/cudart.pyx":4693 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":4694 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaMemcpy3DParms__val); /* "cuda/cudart.pyx":4693 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":4696 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * self._srcArray = cudaArray_t(_ptr=&self._ptr[0].srcArray) */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaMemcpy3DParms *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":4692 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DParms.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4697 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._srcArray = cudaArray_t(_ptr=&self._ptr[0].srcArray) * self._srcPos = cudaPos(_ptr=&self._ptr[0].srcPos) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4697, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 4697, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4697, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 4697, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DParms.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_17cudaMemcpy3DParms_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_17cudaMemcpy3DParms_2__init__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 4697, 0, __PYX_ERR(0, 4697, __pyx_L1_error)); /* "cuda/cudart.pyx":4698 * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): * self._srcArray = cudaArray_t(_ptr=&self._ptr[0].srcArray) # <<<<<<<<<<<<<< * self._srcPos = cudaPos(_ptr=&self._ptr[0].srcPos) * self._srcPtr = cudaPitchedPtr(_ptr=&self._ptr[0].srcPtr) */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4698, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).srcArray))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4698, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 4698, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_t), __pyx_empty_tuple, __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_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_srcArray); __Pyx_DECREF((PyObject *)__pyx_v_self->_srcArray); __pyx_v_self->_srcArray = ((struct __pyx_obj_4cuda_6cudart_cudaArray_t *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":4699 * def __init__(self, void_ptr _ptr = 0): * self._srcArray = cudaArray_t(_ptr=&self._ptr[0].srcArray) * self._srcPos = cudaPos(_ptr=&self._ptr[0].srcPos) # <<<<<<<<<<<<<< * self._srcPtr = cudaPitchedPtr(_ptr=&self._ptr[0].srcPtr) * self._dstArray = cudaArray_t(_ptr=&self._ptr[0].dstArray) */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4699, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).srcPos))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4699, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_ptr, __pyx_t_1) < 0) __PYX_ERR(0, 4699, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaPos), __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4699, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GIVEREF(__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_6cudart_cudaPos *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":4700 * self._srcArray = cudaArray_t(_ptr=&self._ptr[0].srcArray) * self._srcPos = cudaPos(_ptr=&self._ptr[0].srcPos) * self._srcPtr = cudaPitchedPtr(_ptr=&self._ptr[0].srcPtr) # <<<<<<<<<<<<<< * self._dstArray = cudaArray_t(_ptr=&self._ptr[0].dstArray) * self._dstPos = cudaPos(_ptr=&self._ptr[0].dstPos) */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4700, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).srcPtr))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4700, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 4700, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaPitchedPtr), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4700, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_srcPtr); __Pyx_DECREF((PyObject *)__pyx_v_self->_srcPtr); __pyx_v_self->_srcPtr = ((struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":4701 * self._srcPos = cudaPos(_ptr=&self._ptr[0].srcPos) * self._srcPtr = cudaPitchedPtr(_ptr=&self._ptr[0].srcPtr) * self._dstArray = cudaArray_t(_ptr=&self._ptr[0].dstArray) # <<<<<<<<<<<<<< * self._dstPos = cudaPos(_ptr=&self._ptr[0].dstPos) * self._dstPtr = cudaPitchedPtr(_ptr=&self._ptr[0].dstPtr) */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4701, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).dstArray))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4701, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_ptr, __pyx_t_1) < 0) __PYX_ERR(0, 4701, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_t), __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4701, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GIVEREF(__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_6cudart_cudaArray_t *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":4702 * self._srcPtr = cudaPitchedPtr(_ptr=&self._ptr[0].srcPtr) * self._dstArray = cudaArray_t(_ptr=&self._ptr[0].dstArray) * self._dstPos = cudaPos(_ptr=&self._ptr[0].dstPos) # <<<<<<<<<<<<<< * self._dstPtr = cudaPitchedPtr(_ptr=&self._ptr[0].dstPtr) * self._extent = cudaExtent(_ptr=&self._ptr[0].extent) */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4702, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).dstPos))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4702, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 4702, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaPos), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4702, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_dstPos); __Pyx_DECREF((PyObject *)__pyx_v_self->_dstPos); __pyx_v_self->_dstPos = ((struct __pyx_obj_4cuda_6cudart_cudaPos *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":4703 * self._dstArray = cudaArray_t(_ptr=&self._ptr[0].dstArray) * self._dstPos = cudaPos(_ptr=&self._ptr[0].dstPos) * self._dstPtr = cudaPitchedPtr(_ptr=&self._ptr[0].dstPtr) # <<<<<<<<<<<<<< * self._extent = cudaExtent(_ptr=&self._ptr[0].extent) * def __dealloc__(self): */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4703, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).dstPtr))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4703, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_ptr, __pyx_t_1) < 0) __PYX_ERR(0, 4703, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaPitchedPtr), __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4703, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GIVEREF(__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_6cudart_cudaPitchedPtr *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":4704 * self._dstPos = cudaPos(_ptr=&self._ptr[0].dstPos) * self._dstPtr = cudaPitchedPtr(_ptr=&self._ptr[0].dstPtr) * self._extent = cudaExtent(_ptr=&self._ptr[0].extent) # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4704, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).extent))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4704, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 4704, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExtent), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4704, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_extent); __Pyx_DECREF((PyObject *)__pyx_v_self->_extent); __pyx_v_self->_extent = ((struct __pyx_obj_4cuda_6cudart_cudaExtent *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":4697 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._srcArray = cudaArray_t(_ptr=&self._ptr[0].srcArray) * self._srcPos = cudaPos(_ptr=&self._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.cudart.cudaMemcpy3DParms.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4705 * self._dstPtr = cudaPitchedPtr(_ptr=&self._ptr[0].dstPtr) * self._extent = cudaExtent(_ptr=&self._ptr[0].extent) * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_17cudaMemcpy3DParms_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_17cudaMemcpy3DParms_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 4705, 0, __PYX_ERR(0, 4705, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaMemcpy3DParms.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":4707 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_17cudaMemcpy3DParms_6getPtr, "cudaMemcpy3DParms.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_17cudaMemcpy3DParms_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_17cudaMemcpy3DParms_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_17cudaMemcpy3DParms_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_17cudaMemcpy3DParms_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__77) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 4707, 0, __PYX_ERR(0, 4707, __pyx_L1_error)); /* "cuda/cudart.pyx":4708 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); 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/cudart.pyx":4707 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DParms.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4709 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_17cudaMemcpy3DParms_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_17cudaMemcpy3DParms_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_8genexpr1__pyx_v_line = NULL; PyObject *__pyx_8genexpr2__pyx_v_line = NULL; PyObject *__pyx_8genexpr3__pyx_v_line = NULL; PyObject *__pyx_8genexpr4__pyx_v_line = NULL; PyObject *__pyx_8genexpr5__pyx_v_line = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 4709, 0, __PYX_ERR(0, 4709, __pyx_L1_error)); /* "cuda/cudart.pyx":4710 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":4711 * def __repr__(self): * if self._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, 4711, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":4712 * if self._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/cudart.pyx":4713 * str_list = [] * try: * str_list += ['srcArray : ' + str(self.srcArray)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['srcArray : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_srcArray_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4713, __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, 4713, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_srcArray, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4713, __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, 4713, __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)) __PYX_ERR(0, 4713, __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, 4713, __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/cudart.pyx":4712 * if self._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/cudart.pyx":4714 * try: * str_list += ['srcArray : ' + str(self.srcArray)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['srcArray : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 4714, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":4715 * str_list += ['srcArray : ' + str(self.srcArray)] * except ValueError: * str_list += ['srcArray : '] # <<<<<<<<<<<<<< * 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, 4715, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_srcArray_ValueError); __Pyx_GIVEREF(__pyx_kp_u_srcArray_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_srcArray_ValueError)) __PYX_ERR(0, 4715, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4715, __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/cudart.pyx":4712 * if self._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/cudart.pyx":4716 * except ValueError: * str_list += ['srcArray : '] * 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/cudart.pyx":4717 * str_list += ['srcArray : '] * try: * str_list += ['srcPos :\n' + '\n'.join([' ' + line for line in str(self.srcPos).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['srcPos : '] */ { /* enter inner scope */ __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4717, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_srcPos_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4717, __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, 4717, __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, 4717, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 4717, __pyx_L20_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_11); __Pyx_INCREF(__pyx_t_6); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 4717, __pyx_L20_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4717, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_8genexpr1__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_8genexpr1__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4717, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 4717, __pyx_L20_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_8genexpr1__pyx_v_line); __pyx_8genexpr1__pyx_v_line = 0; goto __pyx_L24_exit_scope; __pyx_L20_error:; __Pyx_XDECREF(__pyx_8genexpr1__pyx_v_line); __pyx_8genexpr1__pyx_v_line = 0; goto __pyx_L12_error; __pyx_L24_exit_scope:; } /* exit inner scope */ __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4717, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_srcPos, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4717, __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, 4717, __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)) __PYX_ERR(0, 4717, __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, 4717, __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/cudart.pyx":4716 * except ValueError: * str_list += ['srcArray : '] * 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/cudart.pyx":4718 * try: * str_list += ['srcPos :\n' + '\n'.join([' ' + line for line in str(self.srcPos).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['srcPos : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 4718, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":4719 * str_list += ['srcPos :\n' + '\n'.join([' ' + line for line in str(self.srcPos).splitlines()])] * except ValueError: * str_list += ['srcPos : '] # <<<<<<<<<<<<<< * 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, 4719, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_srcPos_ValueError); __Pyx_GIVEREF(__pyx_kp_u_srcPos_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_srcPos_ValueError)) __PYX_ERR(0, 4719, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4719, __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/cudart.pyx":4716 * except ValueError: * str_list += ['srcArray : '] * 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/cudart.pyx":4720 * except ValueError: * str_list += ['srcPos : '] * 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/cudart.pyx":4721 * str_list += ['srcPos : '] * try: * str_list += ['srcPtr :\n' + '\n'.join([' ' + line for line in str(self.srcPtr).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['srcPtr : '] */ { /* enter inner scope */ __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4721, __pyx_L35_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_srcPtr_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4721, __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, 4721, __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, 4721, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 4721, __pyx_L35_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_2 = PyList_GET_ITEM(__pyx_t_8, __pyx_t_11); __Pyx_INCREF(__pyx_t_2); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 4721, __pyx_L35_error) #else __pyx_t_2 = __Pyx_PySequence_ITEM(__pyx_t_8, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4721, __pyx_L35_error) __Pyx_GOTREF(__pyx_t_2); #endif __Pyx_XDECREF_SET(__pyx_8genexpr2__pyx_v_line, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_kp_u__62, __pyx_8genexpr2__pyx_v_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4721, __pyx_L35_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 4721, __pyx_L35_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_8genexpr2__pyx_v_line); __pyx_8genexpr2__pyx_v_line = 0; goto __pyx_L39_exit_scope; __pyx_L35_error:; __Pyx_XDECREF(__pyx_8genexpr2__pyx_v_line); __pyx_8genexpr2__pyx_v_line = 0; goto __pyx_L27_error; __pyx_L39_exit_scope:; } /* exit inner scope */ __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4721, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_srcPtr, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4721, __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, 4721, __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)) __PYX_ERR(0, 4721, __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, 4721, __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/cudart.pyx":4720 * except ValueError: * str_list += ['srcPos : '] * 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/cudart.pyx":4722 * try: * str_list += ['srcPtr :\n' + '\n'.join([' ' + line for line in str(self.srcPtr).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['srcPtr : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 4722, __pyx_L29_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":4723 * str_list += ['srcPtr :\n' + '\n'.join([' ' + line for line in str(self.srcPtr).splitlines()])] * except ValueError: * str_list += ['srcPtr : '] # <<<<<<<<<<<<<< * try: * str_list += ['dstArray : ' + str(self.dstArray)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4723, __pyx_L29_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_srcPtr_ValueError); __Pyx_GIVEREF(__pyx_kp_u_srcPtr_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_srcPtr_ValueError)) __PYX_ERR(0, 4723, __pyx_L29_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4723, __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/cudart.pyx":4720 * except ValueError: * str_list += ['srcPos : '] * 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/cudart.pyx":4724 * except ValueError: * str_list += ['srcPtr : '] * 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/cudart.pyx":4725 * str_list += ['srcPtr : '] * try: * str_list += ['dstArray : ' + str(self.dstArray)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['dstArray : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_dstArray_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4725, __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, 4725, __pyx_L42_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_dstArray, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4725, __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, 4725, __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)) __PYX_ERR(0, 4725, __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, 4725, __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/cudart.pyx":4724 * except ValueError: * str_list += ['srcPtr : '] * 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/cudart.pyx":4726 * try: * str_list += ['dstArray : ' + str(self.dstArray)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['dstArray : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_8, &__pyx_t_6) < 0) __PYX_ERR(0, 4726, __pyx_L44_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":4727 * str_list += ['dstArray : ' + str(self.dstArray)] * except ValueError: * str_list += ['dstArray : '] # <<<<<<<<<<<<<< * 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, 4727, __pyx_L44_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_dstArray_ValueError); __Pyx_GIVEREF(__pyx_kp_u_dstArray_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_dstArray_ValueError)) __PYX_ERR(0, 4727, __pyx_L44_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4727, __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/cudart.pyx":4724 * except ValueError: * str_list += ['srcPtr : '] * 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/cudart.pyx":4728 * except ValueError: * str_list += ['dstArray : '] * 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/cudart.pyx":4729 * str_list += ['dstArray : '] * try: * str_list += ['dstPos :\n' + '\n'.join([' ' + line for line in str(self.dstPos).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['dstPos : '] */ { /* enter inner scope */ __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4729, __pyx_L58_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_dstPos_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4729, __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, 4729, __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, 4729, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 4729, __pyx_L58_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_8 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_11); __Pyx_INCREF(__pyx_t_8); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 4729, __pyx_L58_error) #else __pyx_t_8 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4729, __pyx_L58_error) __Pyx_GOTREF(__pyx_t_8); #endif __Pyx_XDECREF_SET(__pyx_8genexpr3__pyx_v_line, __pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = PyNumber_Add(__pyx_kp_u__62, __pyx_8genexpr3__pyx_v_line); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4729, __pyx_L58_error) __Pyx_GOTREF(__pyx_t_8); if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_8))) __PYX_ERR(0, 4729, __pyx_L58_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_8genexpr3__pyx_v_line); __pyx_8genexpr3__pyx_v_line = 0; goto __pyx_L62_exit_scope; __pyx_L58_error:; __Pyx_XDECREF(__pyx_8genexpr3__pyx_v_line); __pyx_8genexpr3__pyx_v_line = 0; goto __pyx_L50_error; __pyx_L62_exit_scope:; } /* exit inner scope */ __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4729, __pyx_L50_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_dstPos, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4729, __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, 4729, __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)) __PYX_ERR(0, 4729, __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, 4729, __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/cudart.pyx":4728 * except ValueError: * str_list += ['dstArray : '] * 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/cudart.pyx":4730 * try: * str_list += ['dstPos :\n' + '\n'.join([' ' + line for line in str(self.dstPos).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['dstPos : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_8) < 0) __PYX_ERR(0, 4730, __pyx_L52_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":4731 * str_list += ['dstPos :\n' + '\n'.join([' ' + line for line in str(self.dstPos).splitlines()])] * except ValueError: * str_list += ['dstPos : '] # <<<<<<<<<<<<<< * 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, 4731, __pyx_L52_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_dstPos_ValueError); __Pyx_GIVEREF(__pyx_kp_u_dstPos_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_dstPos_ValueError)) __PYX_ERR(0, 4731, __pyx_L52_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4731, __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/cudart.pyx":4728 * except ValueError: * str_list += ['dstArray : '] * 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/cudart.pyx":4732 * except ValueError: * str_list += ['dstPos : '] * 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/cudart.pyx":4733 * str_list += ['dstPos : '] * try: * str_list += ['dstPtr :\n' + '\n'.join([' ' + line for line in str(self.dstPtr).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['dstPtr : '] */ { /* enter inner scope */ __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4733, __pyx_L73_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_dstPtr_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4733, __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, 4733, __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, 4733, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 4733, __pyx_L73_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_2 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_11); __Pyx_INCREF(__pyx_t_2); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 4733, __pyx_L73_error) #else __pyx_t_2 = __Pyx_PySequence_ITEM(__pyx_t_6, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4733, __pyx_L73_error) __Pyx_GOTREF(__pyx_t_2); #endif __Pyx_XDECREF_SET(__pyx_8genexpr4__pyx_v_line, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_kp_u__62, __pyx_8genexpr4__pyx_v_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4733, __pyx_L73_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 4733, __pyx_L73_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_8genexpr4__pyx_v_line); __pyx_8genexpr4__pyx_v_line = 0; goto __pyx_L77_exit_scope; __pyx_L73_error:; __Pyx_XDECREF(__pyx_8genexpr4__pyx_v_line); __pyx_8genexpr4__pyx_v_line = 0; goto __pyx_L65_error; __pyx_L77_exit_scope:; } /* exit inner scope */ __pyx_t_6 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4733, __pyx_L65_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_dstPtr, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4733, __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, 4733, __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)) __PYX_ERR(0, 4733, __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, 4733, __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/cudart.pyx":4732 * except ValueError: * str_list += ['dstPos : '] * 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/cudart.pyx":4734 * try: * str_list += ['dstPtr :\n' + '\n'.join([' ' + line for line in str(self.dstPtr).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['dstPtr : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 4734, __pyx_L67_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":4735 * str_list += ['dstPtr :\n' + '\n'.join([' ' + line for line in str(self.dstPtr).splitlines()])] * except ValueError: * str_list += ['dstPtr : '] # <<<<<<<<<<<<<< * 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, 4735, __pyx_L67_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_dstPtr_ValueError); __Pyx_GIVEREF(__pyx_kp_u_dstPtr_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_dstPtr_ValueError)) __PYX_ERR(0, 4735, __pyx_L67_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4735, __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/cudart.pyx":4732 * except ValueError: * str_list += ['dstPos : '] * 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/cudart.pyx":4736 * except ValueError: * str_list += ['dstPtr : '] * 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/cudart.pyx":4737 * str_list += ['dstPtr : '] * try: * str_list += ['extent :\n' + '\n'.join([' ' + line for line in str(self.extent).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['extent : '] */ { /* enter inner scope */ __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4737, __pyx_L88_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_extent_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4737, __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, 4737, __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, 4737, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 4737, __pyx_L88_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_8, __pyx_t_11); __Pyx_INCREF(__pyx_t_6); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 4737, __pyx_L88_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_8, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4737, __pyx_L88_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_8genexpr5__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_8genexpr5__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4737, __pyx_L88_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 4737, __pyx_L88_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_8genexpr5__pyx_v_line); __pyx_8genexpr5__pyx_v_line = 0; goto __pyx_L92_exit_scope; __pyx_L88_error:; __Pyx_XDECREF(__pyx_8genexpr5__pyx_v_line); __pyx_8genexpr5__pyx_v_line = 0; goto __pyx_L80_error; __pyx_L92_exit_scope:; } /* exit inner scope */ __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4737, __pyx_L80_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_extent, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4737, __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, 4737, __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)) __PYX_ERR(0, 4737, __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, 4737, __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/cudart.pyx":4736 * except ValueError: * str_list += ['dstPtr : '] * 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/cudart.pyx":4738 * try: * str_list += ['extent :\n' + '\n'.join([' ' + line for line in str(self.extent).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['extent : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_8, &__pyx_t_6) < 0) __PYX_ERR(0, 4738, __pyx_L82_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":4739 * str_list += ['extent :\n' + '\n'.join([' ' + line for line in str(self.extent).splitlines()])] * except ValueError: * str_list += ['extent : '] # <<<<<<<<<<<<<< * try: * str_list += ['kind : ' + str(self.kind)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4739, __pyx_L82_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_extent_ValueError); __Pyx_GIVEREF(__pyx_kp_u_extent_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_extent_ValueError)) __PYX_ERR(0, 4739, __pyx_L82_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4739, __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/cudart.pyx":4736 * except ValueError: * str_list += ['dstPtr : '] * 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/cudart.pyx":4740 * except ValueError: * str_list += ['extent : '] * 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/cudart.pyx":4741 * str_list += ['extent : '] * try: * str_list += ['kind : ' + str(self.kind)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['kind : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_kind_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4741, __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, 4741, __pyx_L95_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_kind, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4741, __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, 4741, __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)) __PYX_ERR(0, 4741, __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, 4741, __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/cudart.pyx":4740 * except ValueError: * str_list += ['extent : '] * 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/cudart.pyx":4742 * try: * str_list += ['kind : ' + str(self.kind)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['kind : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 4742, __pyx_L97_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":4743 * str_list += ['kind : ' + str(self.kind)] * except ValueError: * str_list += ['kind : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4743, __pyx_L97_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_kind_ValueError); __Pyx_GIVEREF(__pyx_kp_u_kind_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_kind_ValueError)) __PYX_ERR(0, 4743, __pyx_L97_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4743, __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/cudart.pyx":4740 * except ValueError: * str_list += ['extent : '] * 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/cudart.pyx":4744 * except ValueError: * str_list += ['kind : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4744, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4710 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":4746 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def srcArray(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":4709 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaMemcpy3DParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XDECREF(__pyx_8genexpr1__pyx_v_line); __Pyx_XDECREF(__pyx_8genexpr2__pyx_v_line); __Pyx_XDECREF(__pyx_8genexpr3__pyx_v_line); __Pyx_XDECREF(__pyx_8genexpr4__pyx_v_line); __Pyx_XDECREF(__pyx_8genexpr5__pyx_v_line); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4747 * else: * return '' * @property # <<<<<<<<<<<<<< * def srcArray(self): * return self._srcArray */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_8srcArray_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_17cudaMemcpy3DParms_8srcArray___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_17cudaMemcpy3DParms_8srcArray___get__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4747, 0, __PYX_ERR(0, 4747, __pyx_L1_error)); /* "cuda/cudart.pyx":4749 * @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/cudart.pyx":4747 * else: * return '' * @property # <<<<<<<<<<<<<< * def srcArray(self): * return self._srcArray */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DParms.srcArray.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4750 * def srcArray(self): * return self._srcArray * @srcArray.setter # <<<<<<<<<<<<<< * def srcArray(self, srcArray): * cdef ccudart.cudaArray_t csrcArray */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_8srcArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_srcArray); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_17cudaMemcpy3DParms_8srcArray_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *)__pyx_v_self), ((PyObject *)__pyx_v_srcArray)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_17cudaMemcpy3DParms_8srcArray_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *__pyx_v_self, PyObject *__pyx_v_srcArray) { cudaArray_t __pyx_v_csrcArray; PyObject *__pyx_v_psrcArray = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 4750, 0, __PYX_ERR(0, 4750, __pyx_L1_error)); /* "cuda/cudart.pyx":4753 * def srcArray(self, srcArray): * cdef ccudart.cudaArray_t csrcArray * if srcArray is None: # <<<<<<<<<<<<<< * csrcArray = 0 * elif isinstance(srcArray, (cudaArray_t,)): */ __pyx_t_1 = (__pyx_v_srcArray == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":4754 * cdef ccudart.cudaArray_t csrcArray * if srcArray is None: * csrcArray = 0 # <<<<<<<<<<<<<< * elif isinstance(srcArray, (cudaArray_t,)): * psrcArray = int(srcArray) */ __pyx_v_csrcArray = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":4753 * def srcArray(self, srcArray): * cdef ccudart.cudaArray_t csrcArray * if srcArray is None: # <<<<<<<<<<<<<< * csrcArray = 0 * elif isinstance(srcArray, (cudaArray_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":4755 * if srcArray is None: * csrcArray = 0 * elif isinstance(srcArray, (cudaArray_t,)): # <<<<<<<<<<<<<< * psrcArray = int(srcArray) * csrcArray = psrcArray */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_srcArray, __pyx_ptype_4cuda_6cudart_cudaArray_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":4756 * csrcArray = 0 * elif isinstance(srcArray, (cudaArray_t,)): * psrcArray = int(srcArray) # <<<<<<<<<<<<<< * csrcArray = psrcArray * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_srcArray); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4756, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_psrcArray = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":4757 * elif isinstance(srcArray, (cudaArray_t,)): * psrcArray = int(srcArray) * csrcArray = psrcArray # <<<<<<<<<<<<<< * else: * psrcArray = int(cudaArray_t(srcArray)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_psrcArray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4757, __pyx_L1_error) __pyx_v_csrcArray = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":4755 * if srcArray is None: * csrcArray = 0 * elif isinstance(srcArray, (cudaArray_t,)): # <<<<<<<<<<<<<< * psrcArray = int(srcArray) * csrcArray = psrcArray */ goto __pyx_L3; } /* "cuda/cudart.pyx":4759 * csrcArray = psrcArray * else: * psrcArray = int(cudaArray_t(srcArray)) # <<<<<<<<<<<<<< * csrcArray = psrcArray * self._srcArray._ptr[0] = csrcArray */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_t), __pyx_v_srcArray); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4759, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4759, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_psrcArray = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":4760 * else: * psrcArray = int(cudaArray_t(srcArray)) * csrcArray = psrcArray # <<<<<<<<<<<<<< * self._srcArray._ptr[0] = csrcArray * @property */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_psrcArray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4760, __pyx_L1_error) __pyx_v_csrcArray = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":4761 * psrcArray = int(cudaArray_t(srcArray)) * csrcArray = psrcArray * self._srcArray._ptr[0] = csrcArray # <<<<<<<<<<<<<< * @property * def srcPos(self): */ (__pyx_v_self->_srcArray->_ptr[0]) = __pyx_v_csrcArray; /* "cuda/cudart.pyx":4750 * def srcArray(self): * return self._srcArray * @srcArray.setter # <<<<<<<<<<<<<< * def srcArray(self, srcArray): * cdef ccudart.cudaArray_t csrcArray */ /* 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.cudart.cudaMemcpy3DParms.srcArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v_psrcArray); __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4762 * csrcArray = psrcArray * self._srcArray._ptr[0] = csrcArray * @property # <<<<<<<<<<<<<< * def srcPos(self): * return self._srcPos */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_6srcPos_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_17cudaMemcpy3DParms_6srcPos___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_17cudaMemcpy3DParms_6srcPos___get__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4762, 0, __PYX_ERR(0, 4762, __pyx_L1_error)); /* "cuda/cudart.pyx":4764 * @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/cudart.pyx":4762 * csrcArray = psrcArray * self._srcArray._ptr[0] = csrcArray * @property # <<<<<<<<<<<<<< * def srcPos(self): * return self._srcPos */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DParms.srcPos.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4765 * def srcPos(self): * return self._srcPos * @srcPos.setter # <<<<<<<<<<<<<< * def srcPos(self, srcPos not None : cudaPos): * string.memcpy(&self._ptr[0].srcPos, srcPos.getPtr(), sizeof(self._ptr[0].srcPos)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_6srcPos_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_srcPos); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_cudaPos, 0, "srcPos", 0))) __PYX_ERR(0, 4766, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_17cudaMemcpy3DParms_6srcPos_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_cudaPos *)__pyx_v_srcPos)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_17cudaMemcpy3DParms_6srcPos_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_cudaPos *__pyx_v_srcPos) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 4765, 0, __PYX_ERR(0, 4765, __pyx_L1_error)); /* "cuda/cudart.pyx":4767 * @srcPos.setter * def srcPos(self, srcPos not None : cudaPos): * string.memcpy(&self._ptr[0].srcPos, srcPos.getPtr(), sizeof(self._ptr[0].srcPos)) # <<<<<<<<<<<<<< * @property * def srcPtr(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_srcPos), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4767, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4767, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4767, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).srcPos), ((struct cudaPos *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).srcPos)))); /* "cuda/cudart.pyx":4765 * def srcPos(self): * return self._srcPos * @srcPos.setter # <<<<<<<<<<<<<< * def srcPos(self, srcPos not None : cudaPos): * string.memcpy(&self._ptr[0].srcPos, srcPos.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DParms.srcPos.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4768 * def srcPos(self, srcPos not None : cudaPos): * string.memcpy(&self._ptr[0].srcPos, srcPos.getPtr(), sizeof(self._ptr[0].srcPos)) * @property # <<<<<<<<<<<<<< * def srcPtr(self): * return self._srcPtr */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_6srcPtr_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_17cudaMemcpy3DParms_6srcPtr___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_17cudaMemcpy3DParms_6srcPtr___get__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4768, 0, __PYX_ERR(0, 4768, __pyx_L1_error)); /* "cuda/cudart.pyx":4770 * @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/cudart.pyx":4768 * def srcPos(self, srcPos not None : cudaPos): * string.memcpy(&self._ptr[0].srcPos, srcPos.getPtr(), sizeof(self._ptr[0].srcPos)) * @property # <<<<<<<<<<<<<< * def srcPtr(self): * return self._srcPtr */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DParms.srcPtr.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4771 * def srcPtr(self): * return self._srcPtr * @srcPtr.setter # <<<<<<<<<<<<<< * def srcPtr(self, srcPtr not None : cudaPitchedPtr): * string.memcpy(&self._ptr[0].srcPtr, srcPtr.getPtr(), sizeof(self._ptr[0].srcPtr)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_6srcPtr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_srcPtr); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_cudaPitchedPtr, 0, "srcPtr", 0))) __PYX_ERR(0, 4772, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_17cudaMemcpy3DParms_6srcPtr_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *)__pyx_v_srcPtr)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_17cudaMemcpy3DParms_6srcPtr_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *__pyx_v_srcPtr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 4771, 0, __PYX_ERR(0, 4771, __pyx_L1_error)); /* "cuda/cudart.pyx":4773 * @srcPtr.setter * def srcPtr(self, srcPtr not None : cudaPitchedPtr): * string.memcpy(&self._ptr[0].srcPtr, srcPtr.getPtr(), sizeof(self._ptr[0].srcPtr)) # <<<<<<<<<<<<<< * @property * def dstArray(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_srcPtr), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4773, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4773, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4773, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).srcPtr), ((struct cudaPitchedPtr *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).srcPtr)))); /* "cuda/cudart.pyx":4771 * def srcPtr(self): * return self._srcPtr * @srcPtr.setter # <<<<<<<<<<<<<< * def srcPtr(self, srcPtr not None : cudaPitchedPtr): * string.memcpy(&self._ptr[0].srcPtr, srcPtr.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DParms.srcPtr.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4774 * def srcPtr(self, srcPtr not None : cudaPitchedPtr): * string.memcpy(&self._ptr[0].srcPtr, srcPtr.getPtr(), sizeof(self._ptr[0].srcPtr)) * @property # <<<<<<<<<<<<<< * def dstArray(self): * return self._dstArray */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_8dstArray_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_17cudaMemcpy3DParms_8dstArray___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_17cudaMemcpy3DParms_8dstArray___get__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4774, 0, __PYX_ERR(0, 4774, __pyx_L1_error)); /* "cuda/cudart.pyx":4776 * @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/cudart.pyx":4774 * def srcPtr(self, srcPtr not None : cudaPitchedPtr): * string.memcpy(&self._ptr[0].srcPtr, srcPtr.getPtr(), sizeof(self._ptr[0].srcPtr)) * @property # <<<<<<<<<<<<<< * def dstArray(self): * return self._dstArray */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DParms.dstArray.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4777 * def dstArray(self): * return self._dstArray * @dstArray.setter # <<<<<<<<<<<<<< * def dstArray(self, dstArray): * cdef ccudart.cudaArray_t cdstArray */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_8dstArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dstArray); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_17cudaMemcpy3DParms_8dstArray_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *)__pyx_v_self), ((PyObject *)__pyx_v_dstArray)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_17cudaMemcpy3DParms_8dstArray_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *__pyx_v_self, PyObject *__pyx_v_dstArray) { cudaArray_t __pyx_v_cdstArray; PyObject *__pyx_v_pdstArray = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 4777, 0, __PYX_ERR(0, 4777, __pyx_L1_error)); /* "cuda/cudart.pyx":4780 * def dstArray(self, dstArray): * cdef ccudart.cudaArray_t cdstArray * if dstArray is None: # <<<<<<<<<<<<<< * cdstArray = 0 * elif isinstance(dstArray, (cudaArray_t,)): */ __pyx_t_1 = (__pyx_v_dstArray == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":4781 * cdef ccudart.cudaArray_t cdstArray * if dstArray is None: * cdstArray = 0 # <<<<<<<<<<<<<< * elif isinstance(dstArray, (cudaArray_t,)): * pdstArray = int(dstArray) */ __pyx_v_cdstArray = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":4780 * def dstArray(self, dstArray): * cdef ccudart.cudaArray_t cdstArray * if dstArray is None: # <<<<<<<<<<<<<< * cdstArray = 0 * elif isinstance(dstArray, (cudaArray_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":4782 * if dstArray is None: * cdstArray = 0 * elif isinstance(dstArray, (cudaArray_t,)): # <<<<<<<<<<<<<< * pdstArray = int(dstArray) * cdstArray = pdstArray */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_dstArray, __pyx_ptype_4cuda_6cudart_cudaArray_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":4783 * cdstArray = 0 * elif isinstance(dstArray, (cudaArray_t,)): * pdstArray = int(dstArray) # <<<<<<<<<<<<<< * cdstArray = pdstArray * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_dstArray); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4783, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_pdstArray = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":4784 * elif isinstance(dstArray, (cudaArray_t,)): * pdstArray = int(dstArray) * cdstArray = pdstArray # <<<<<<<<<<<<<< * else: * pdstArray = int(cudaArray_t(dstArray)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pdstArray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4784, __pyx_L1_error) __pyx_v_cdstArray = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":4782 * if dstArray is None: * cdstArray = 0 * elif isinstance(dstArray, (cudaArray_t,)): # <<<<<<<<<<<<<< * pdstArray = int(dstArray) * cdstArray = pdstArray */ goto __pyx_L3; } /* "cuda/cudart.pyx":4786 * cdstArray = pdstArray * else: * pdstArray = int(cudaArray_t(dstArray)) # <<<<<<<<<<<<<< * cdstArray = pdstArray * self._dstArray._ptr[0] = cdstArray */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_t), __pyx_v_dstArray); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4786, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4786, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_pdstArray = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":4787 * else: * pdstArray = int(cudaArray_t(dstArray)) * cdstArray = pdstArray # <<<<<<<<<<<<<< * self._dstArray._ptr[0] = cdstArray * @property */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pdstArray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4787, __pyx_L1_error) __pyx_v_cdstArray = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":4788 * pdstArray = int(cudaArray_t(dstArray)) * cdstArray = pdstArray * self._dstArray._ptr[0] = cdstArray # <<<<<<<<<<<<<< * @property * def dstPos(self): */ (__pyx_v_self->_dstArray->_ptr[0]) = __pyx_v_cdstArray; /* "cuda/cudart.pyx":4777 * def dstArray(self): * return self._dstArray * @dstArray.setter # <<<<<<<<<<<<<< * def dstArray(self, dstArray): * cdef ccudart.cudaArray_t cdstArray */ /* 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.cudart.cudaMemcpy3DParms.dstArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pdstArray); __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4789 * cdstArray = pdstArray * self._dstArray._ptr[0] = cdstArray * @property # <<<<<<<<<<<<<< * def dstPos(self): * return self._dstPos */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_6dstPos_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_17cudaMemcpy3DParms_6dstPos___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_17cudaMemcpy3DParms_6dstPos___get__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4789, 0, __PYX_ERR(0, 4789, __pyx_L1_error)); /* "cuda/cudart.pyx":4791 * @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/cudart.pyx":4789 * cdstArray = pdstArray * self._dstArray._ptr[0] = cdstArray * @property # <<<<<<<<<<<<<< * def dstPos(self): * return self._dstPos */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DParms.dstPos.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4792 * def dstPos(self): * return self._dstPos * @dstPos.setter # <<<<<<<<<<<<<< * def dstPos(self, dstPos not None : cudaPos): * string.memcpy(&self._ptr[0].dstPos, dstPos.getPtr(), sizeof(self._ptr[0].dstPos)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_6dstPos_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dstPos); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_cudaPos, 0, "dstPos", 0))) __PYX_ERR(0, 4793, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_17cudaMemcpy3DParms_6dstPos_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_cudaPos *)__pyx_v_dstPos)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_17cudaMemcpy3DParms_6dstPos_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_cudaPos *__pyx_v_dstPos) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 4792, 0, __PYX_ERR(0, 4792, __pyx_L1_error)); /* "cuda/cudart.pyx":4794 * @dstPos.setter * def dstPos(self, dstPos not None : cudaPos): * string.memcpy(&self._ptr[0].dstPos, dstPos.getPtr(), sizeof(self._ptr[0].dstPos)) # <<<<<<<<<<<<<< * @property * def dstPtr(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_dstPos), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4794, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4794, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4794, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).dstPos), ((struct cudaPos *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).dstPos)))); /* "cuda/cudart.pyx":4792 * def dstPos(self): * return self._dstPos * @dstPos.setter # <<<<<<<<<<<<<< * def dstPos(self, dstPos not None : cudaPos): * string.memcpy(&self._ptr[0].dstPos, dstPos.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DParms.dstPos.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4795 * def dstPos(self, dstPos not None : cudaPos): * string.memcpy(&self._ptr[0].dstPos, dstPos.getPtr(), sizeof(self._ptr[0].dstPos)) * @property # <<<<<<<<<<<<<< * def dstPtr(self): * return self._dstPtr */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_6dstPtr_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_17cudaMemcpy3DParms_6dstPtr___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_17cudaMemcpy3DParms_6dstPtr___get__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4795, 0, __PYX_ERR(0, 4795, __pyx_L1_error)); /* "cuda/cudart.pyx":4797 * @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/cudart.pyx":4795 * def dstPos(self, dstPos not None : cudaPos): * string.memcpy(&self._ptr[0].dstPos, dstPos.getPtr(), sizeof(self._ptr[0].dstPos)) * @property # <<<<<<<<<<<<<< * def dstPtr(self): * return self._dstPtr */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DParms.dstPtr.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4798 * def dstPtr(self): * return self._dstPtr * @dstPtr.setter # <<<<<<<<<<<<<< * def dstPtr(self, dstPtr not None : cudaPitchedPtr): * string.memcpy(&self._ptr[0].dstPtr, dstPtr.getPtr(), sizeof(self._ptr[0].dstPtr)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_6dstPtr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dstPtr); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_cudaPitchedPtr, 0, "dstPtr", 0))) __PYX_ERR(0, 4799, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_17cudaMemcpy3DParms_6dstPtr_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *)__pyx_v_dstPtr)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_17cudaMemcpy3DParms_6dstPtr_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *__pyx_v_dstPtr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 4798, 0, __PYX_ERR(0, 4798, __pyx_L1_error)); /* "cuda/cudart.pyx":4800 * @dstPtr.setter * def dstPtr(self, dstPtr not None : cudaPitchedPtr): * string.memcpy(&self._ptr[0].dstPtr, dstPtr.getPtr(), sizeof(self._ptr[0].dstPtr)) # <<<<<<<<<<<<<< * @property * def extent(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_dstPtr), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4800, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; 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_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4800, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).dstPtr), ((struct cudaPitchedPtr *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).dstPtr)))); /* "cuda/cudart.pyx":4798 * def dstPtr(self): * return self._dstPtr * @dstPtr.setter # <<<<<<<<<<<<<< * def dstPtr(self, dstPtr not None : cudaPitchedPtr): * string.memcpy(&self._ptr[0].dstPtr, dstPtr.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DParms.dstPtr.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4801 * def dstPtr(self, dstPtr not None : cudaPitchedPtr): * string.memcpy(&self._ptr[0].dstPtr, dstPtr.getPtr(), sizeof(self._ptr[0].dstPtr)) * @property # <<<<<<<<<<<<<< * def extent(self): * return self._extent */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_6extent_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_17cudaMemcpy3DParms_6extent___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_17cudaMemcpy3DParms_6extent___get__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4801, 0, __PYX_ERR(0, 4801, __pyx_L1_error)); /* "cuda/cudart.pyx":4803 * @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/cudart.pyx":4801 * def dstPtr(self, dstPtr not None : cudaPitchedPtr): * string.memcpy(&self._ptr[0].dstPtr, dstPtr.getPtr(), sizeof(self._ptr[0].dstPtr)) * @property # <<<<<<<<<<<<<< * def extent(self): * return self._extent */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DParms.extent.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4804 * def extent(self): * return self._extent * @extent.setter # <<<<<<<<<<<<<< * def extent(self, extent not None : cudaExtent): * string.memcpy(&self._ptr[0].extent, extent.getPtr(), sizeof(self._ptr[0].extent)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_6extent_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_extent); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_cudaExtent, 0, "extent", 0))) __PYX_ERR(0, 4805, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_17cudaMemcpy3DParms_6extent_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_cudaExtent *)__pyx_v_extent)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_17cudaMemcpy3DParms_6extent_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_cudaExtent *__pyx_v_extent) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 4804, 0, __PYX_ERR(0, 4804, __pyx_L1_error)); /* "cuda/cudart.pyx":4806 * @extent.setter * def extent(self, extent not None : cudaExtent): * string.memcpy(&self._ptr[0].extent, extent.getPtr(), sizeof(self._ptr[0].extent)) # <<<<<<<<<<<<<< * @property * def kind(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_extent), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4806, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4806, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4806, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).extent), ((struct cudaExtent *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).extent)))); /* "cuda/cudart.pyx":4804 * def extent(self): * return self._extent * @extent.setter # <<<<<<<<<<<<<< * def extent(self, extent not None : cudaExtent): * string.memcpy(&self._ptr[0].extent, extent.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DParms.extent.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4807 * def extent(self, extent not None : cudaExtent): * string.memcpy(&self._ptr[0].extent, extent.getPtr(), sizeof(self._ptr[0].extent)) * @property # <<<<<<<<<<<<<< * def kind(self): * return cudaMemcpyKind(self._ptr[0].kind) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_4kind_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_17cudaMemcpy3DParms_4kind___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_17cudaMemcpy3DParms_4kind___get__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4807, 0, __PYX_ERR(0, 4807, __pyx_L1_error)); /* "cuda/cudart.pyx":4809 * @property * def kind(self): * return cudaMemcpyKind(self._ptr[0].kind) # <<<<<<<<<<<<<< * @kind.setter * def kind(self, kind not None : cudaMemcpyKind): */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaMemcpyKind); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4809, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaMemcpyKind((__pyx_v_self->_ptr[0]).kind); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4809, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4809, __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/cudart.pyx":4807 * def extent(self, extent not None : cudaExtent): * string.memcpy(&self._ptr[0].extent, extent.getPtr(), sizeof(self._ptr[0].extent)) * @property # <<<<<<<<<<<<<< * def kind(self): * return cudaMemcpyKind(self._ptr[0].kind) */ /* 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.cudart.cudaMemcpy3DParms.kind.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4810 * def kind(self): * return cudaMemcpyKind(self._ptr[0].kind) * @kind.setter # <<<<<<<<<<<<<< * def kind(self, kind not None : cudaMemcpyKind): * self._ptr[0].kind = kind.value */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_4kind_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_kind); /*proto*/ static int __pyx_pw_4cuda_6cudart_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, 4811, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_17cudaMemcpy3DParms_4kind_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *)__pyx_v_self), ((PyObject *)__pyx_v_kind)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_17cudaMemcpy3DParms_4kind_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *__pyx_v_self, PyObject *__pyx_v_kind) { int __pyx_r; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 4810, 0, __PYX_ERR(0, 4810, __pyx_L1_error)); /* "cuda/cudart.pyx":4812 * @kind.setter * def kind(self, kind not None : cudaMemcpyKind): * self._ptr[0].kind = kind.value # <<<<<<<<<<<<<< * * cdef class cudaMemcpyNodeParams: */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_kind, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4812, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaMemcpyKind)__Pyx_PyInt_As_enum__cudaMemcpyKind(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4812, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).kind = __pyx_t_2; /* "cuda/cudart.pyx":4810 * def kind(self): * return cudaMemcpyKind(self._ptr[0].kind) * @kind.setter # <<<<<<<<<<<<<< * def kind(self, kind not None : cudaMemcpyKind): * self._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.cudart.cudaMemcpy3DParms.kind.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __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_6cudart_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_6cudart_17cudaMemcpy3DParms_10__reduce_cython__, "cudaMemcpy3DParms.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_17cudaMemcpy3DParms_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_17cudaMemcpy3DParms_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_17cudaMemcpy3DParms_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_17cudaMemcpy3DParms_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__78) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaMemcpy3DParms.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_17cudaMemcpy3DParms_12__setstate_cython__, "cudaMemcpy3DParms.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_17cudaMemcpy3DParms_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_17cudaMemcpy3DParms_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DParms.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_17cudaMemcpy3DParms_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_17cudaMemcpy3DParms_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__79) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaMemcpy3DParms.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4833 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaMemcpyNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_20cudaMemcpyNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4833, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 4833, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4833, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 4833, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemcpyNodeParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaMemcpyNodeParams___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_20cudaMemcpyNodeParams___cinit__(struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 4833, 0, __PYX_ERR(0, 4833, __pyx_L1_error)); /* "cuda/cudart.pyx":4834 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":4835 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaMemcpyNodeParams__val); /* "cuda/cudart.pyx":4834 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":4837 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * self._copyParams = cudaMemcpy3DParms(_ptr=&self._ptr[0].copyParams) */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaMemcpyNodeParams *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":4833 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemcpyNodeParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4838 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._copyParams = cudaMemcpy3DParms(_ptr=&self._ptr[0].copyParams) * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaMemcpyNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_20cudaMemcpyNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4838, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 4838, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4838, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 4838, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemcpyNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaMemcpyNodeParams_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_20cudaMemcpyNodeParams_2__init__(struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 4838, 0, __PYX_ERR(0, 4838, __pyx_L1_error)); /* "cuda/cudart.pyx":4839 * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): * self._copyParams = cudaMemcpy3DParms(_ptr=&self._ptr[0].copyParams) # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4839, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).copyParams))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4839, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 4839, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemcpy3DParms), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4839, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_copyParams); __Pyx_DECREF((PyObject *)__pyx_v_self->_copyParams); __pyx_v_self->_copyParams = ((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":4838 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._copyParams = cudaMemcpy3DParms(_ptr=&self._ptr[0].copyParams) * def __dealloc__(self): */ /* 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.cudart.cudaMemcpyNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4840 * def __init__(self, void_ptr _ptr = 0): * self._copyParams = cudaMemcpy3DParms(_ptr=&self._ptr[0].copyParams) * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_20cudaMemcpyNodeParams_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_20cudaMemcpyNodeParams_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_20cudaMemcpyNodeParams_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 4840, 0, __PYX_ERR(0, 4840, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaMemcpyNodeParams.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":4842 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaMemcpyNodeParams_6getPtr, "cudaMemcpyNodeParams.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_20cudaMemcpyNodeParams_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaMemcpyNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaMemcpyNodeParams_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaMemcpyNodeParams_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaMemcpyNodeParams_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__80) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 4842, 0, __PYX_ERR(0, 4842, __pyx_L1_error)); /* "cuda/cudart.pyx":4843 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4843, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4842 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemcpyNodeParams.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4844 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaMemcpyNodeParams_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaMemcpyNodeParams_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaMemcpyNodeParams_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_8genexpr6__pyx_v_line = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 4844, 0, __PYX_ERR(0, 4844, __pyx_L1_error)); /* "cuda/cudart.pyx":4845 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":4846 * def __repr__(self): * if self._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, 4846, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":4847 * if self._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/cudart.pyx":4848 * str_list = [] * try: * str_list += ['flags : ' + str(self.flags)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['flags : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_flags_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4848, __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, 4848, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_flags, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4848, __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, 4848, __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)) __PYX_ERR(0, 4848, __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, 4848, __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/cudart.pyx":4847 * if self._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/cudart.pyx":4849 * try: * str_list += ['flags : ' + str(self.flags)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['flags : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemcpyNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 4849, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":4850 * str_list += ['flags : ' + str(self.flags)] * except ValueError: * str_list += ['flags : '] # <<<<<<<<<<<<<< * try: * str_list += ['reserved : ' + str(self.reserved)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4850, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_flags_ValueError); __Pyx_GIVEREF(__pyx_kp_u_flags_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_flags_ValueError)) __PYX_ERR(0, 4850, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4850, __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/cudart.pyx":4847 * if self._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/cudart.pyx":4851 * except ValueError: * str_list += ['flags : '] * 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/cudart.pyx":4852 * str_list += ['flags : '] * try: * str_list += ['reserved : ' + str(self.reserved)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['reserved : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_reserved_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4852, __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, 4852, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_reserved, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4852, __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, 4852, __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)) __PYX_ERR(0, 4852, __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, 4852, __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/cudart.pyx":4851 * except ValueError: * str_list += ['flags : '] * 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/cudart.pyx":4853 * try: * str_list += ['reserved : ' + str(self.reserved)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['reserved : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemcpyNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 4853, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":4854 * str_list += ['reserved : ' + str(self.reserved)] * except ValueError: * str_list += ['reserved : '] # <<<<<<<<<<<<<< * try: * str_list += ['copyParams :\n' + '\n'.join([' ' + line for line in str(self.copyParams).splitlines()])] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4854, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_reserved_ValueError); __Pyx_GIVEREF(__pyx_kp_u_reserved_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_reserved_ValueError)) __PYX_ERR(0, 4854, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4854, __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/cudart.pyx":4851 * except ValueError: * str_list += ['flags : '] * 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/cudart.pyx":4855 * except ValueError: * str_list += ['reserved : '] * 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_3, &__pyx_t_4, &__pyx_t_5); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_5); /*try:*/ { /* "cuda/cudart.pyx":4856 * str_list += ['reserved : '] * try: * str_list += ['copyParams :\n' + '\n'.join([' ' + line for line in str(self.copyParams).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['copyParams : '] */ { /* enter inner scope */ __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4856, __pyx_L28_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_copyParams_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4856, __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, 4856, __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, 4856, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 4856, __pyx_L28_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_8, __pyx_t_11); __Pyx_INCREF(__pyx_t_6); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 4856, __pyx_L28_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_8, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4856, __pyx_L28_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_8genexpr6__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_8genexpr6__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4856, __pyx_L28_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 4856, __pyx_L28_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_8genexpr6__pyx_v_line); __pyx_8genexpr6__pyx_v_line = 0; goto __pyx_L32_exit_scope; __pyx_L28_error:; __Pyx_XDECREF(__pyx_8genexpr6__pyx_v_line); __pyx_8genexpr6__pyx_v_line = 0; goto __pyx_L20_error; __pyx_L32_exit_scope:; } /* exit inner scope */ __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4856, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_copyParams, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4856, __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, 4856, __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)) __PYX_ERR(0, 4856, __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, 4856, __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/cudart.pyx":4855 * except ValueError: * str_list += ['reserved : '] * try: # <<<<<<<<<<<<<< * str_list += ['copyParams :\n' + '\n'.join([' ' + line for line in str(self.copyParams).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/cudart.pyx":4857 * try: * str_list += ['copyParams :\n' + '\n'.join([' ' + line for line in str(self.copyParams).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['copyParams : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemcpyNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_8, &__pyx_t_6) < 0) __PYX_ERR(0, 4857, __pyx_L22_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":4858 * str_list += ['copyParams :\n' + '\n'.join([' ' + line for line in str(self.copyParams).splitlines()])] * except ValueError: * str_list += ['copyParams : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4858, __pyx_L22_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_copyParams_ValueError); __Pyx_GIVEREF(__pyx_kp_u_copyParams_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_copyParams_ValueError)) __PYX_ERR(0, 4858, __pyx_L22_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4858, __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/cudart.pyx":4855 * except ValueError: * str_list += ['reserved : '] * try: # <<<<<<<<<<<<<< * str_list += ['copyParams :\n' + '\n'.join([' ' + line for line in str(self.copyParams).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/cudart.pyx":4859 * except ValueError: * str_list += ['copyParams : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_6 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4859, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4845 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":4861 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def flags(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":4844 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaMemcpyNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XDECREF(__pyx_8genexpr6__pyx_v_line); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4862 * else: * return '' * @property # <<<<<<<<<<<<<< * def flags(self): * return self._ptr[0].flags */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaMemcpyNodeParams_5flags_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaMemcpyNodeParams_5flags___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaMemcpyNodeParams_5flags___get__(struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4862, 0, __PYX_ERR(0, 4862, __pyx_L1_error)); /* "cuda/cudart.pyx":4864 * @property * def flags(self): * return self._ptr[0].flags # <<<<<<<<<<<<<< * @flags.setter * def flags(self, int flags): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).flags); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4864, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4862 * else: * return '' * @property # <<<<<<<<<<<<<< * def flags(self): * return self._ptr[0].flags */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemcpyNodeParams.flags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4865 * def flags(self): * return self._ptr[0].flags * @flags.setter # <<<<<<<<<<<<<< * def flags(self, int flags): * self._ptr[0].flags = flags */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaMemcpyNodeParams_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_flags); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4866, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemcpyNodeParams.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaMemcpyNodeParams_5flags_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *)__pyx_v_self), ((int)__pyx_v_flags)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_20cudaMemcpyNodeParams_5flags_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *__pyx_v_self, int __pyx_v_flags) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 4865, 0, __PYX_ERR(0, 4865, __pyx_L1_error)); /* "cuda/cudart.pyx":4867 * @flags.setter * def flags(self, int flags): * self._ptr[0].flags = flags # <<<<<<<<<<<<<< * @property * def reserved(self): */ (__pyx_v_self->_ptr[0]).flags = __pyx_v_flags; /* "cuda/cudart.pyx":4865 * def flags(self): * return self._ptr[0].flags * @flags.setter # <<<<<<<<<<<<<< * def flags(self, int flags): * self._ptr[0].flags = flags */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemcpyNodeParams.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4868 * def flags(self, int flags): * self._ptr[0].flags = flags * @property # <<<<<<<<<<<<<< * def reserved(self): * return self._ptr[0].reserved */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaMemcpyNodeParams_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaMemcpyNodeParams_8reserved___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaMemcpyNodeParams_8reserved___get__(struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4868, 0, __PYX_ERR(0, 4868, __pyx_L1_error)); /* "cuda/cudart.pyx":4870 * @property * def reserved(self): * return self._ptr[0].reserved # <<<<<<<<<<<<<< * @reserved.setter * def reserved(self, reserved): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_ptr[0]).reserved, 3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4870, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4868 * def flags(self, int flags): * self._ptr[0].flags = flags * @property # <<<<<<<<<<<<<< * def reserved(self): * return self._ptr[0].reserved */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemcpyNodeParams.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4871 * def reserved(self): * return self._ptr[0].reserved * @reserved.setter # <<<<<<<<<<<<<< * def reserved(self, reserved): * self._ptr[0].reserved = reserved */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaMemcpyNodeParams_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/ static int __pyx_pw_4cuda_6cudart_20cudaMemcpyNodeParams_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_6cudart_20cudaMemcpyNodeParams_8reserved_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_reserved)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_20cudaMemcpyNodeParams_8reserved_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *__pyx_v_self, PyObject *__pyx_v_reserved) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1[3]; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 4871, 0, __PYX_ERR(0, 4871, __pyx_L1_error)); /* "cuda/cudart.pyx":4873 * @reserved.setter * def reserved(self, reserved): * self._ptr[0].reserved = reserved # <<<<<<<<<<<<<< * @property * def copyParams(self): */ if (unlikely((__Pyx_carray_from_py_int(__pyx_v_reserved, __pyx_t_1, 3) < 0))) __PYX_ERR(0, 4873, __pyx_L1_error) memcpy(&((__pyx_v_self->_ptr[0]).reserved[0]), __pyx_t_1, sizeof((__pyx_v_self->_ptr[0]).reserved[0]) * (3)); /* "cuda/cudart.pyx":4871 * def reserved(self): * return self._ptr[0].reserved * @reserved.setter # <<<<<<<<<<<<<< * def reserved(self, reserved): * self._ptr[0].reserved = reserved */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemcpyNodeParams.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4874 * def reserved(self, reserved): * self._ptr[0].reserved = reserved * @property # <<<<<<<<<<<<<< * def copyParams(self): * return self._copyParams */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaMemcpyNodeParams_10copyParams_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaMemcpyNodeParams_10copyParams___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaMemcpyNodeParams_10copyParams___get__(struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4874, 0, __PYX_ERR(0, 4874, __pyx_L1_error)); /* "cuda/cudart.pyx":4876 * @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/cudart.pyx":4874 * def reserved(self, reserved): * self._ptr[0].reserved = reserved * @property # <<<<<<<<<<<<<< * def copyParams(self): * return self._copyParams */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemcpyNodeParams.copyParams.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4877 * def copyParams(self): * return self._copyParams * @copyParams.setter # <<<<<<<<<<<<<< * def copyParams(self, copyParams not None : cudaMemcpy3DParms): * string.memcpy(&self._ptr[0].copyParams, copyParams.getPtr(), sizeof(self._ptr[0].copyParams)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaMemcpyNodeParams_10copyParams_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_copyParams); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_cudaMemcpy3DParms, 0, "copyParams", 0))) __PYX_ERR(0, 4878, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_20cudaMemcpyNodeParams_10copyParams_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *)__pyx_v_copyParams)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_20cudaMemcpyNodeParams_10copyParams_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *__pyx_v_copyParams) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 4877, 0, __PYX_ERR(0, 4877, __pyx_L1_error)); /* "cuda/cudart.pyx":4879 * @copyParams.setter * def copyParams(self, copyParams not None : cudaMemcpy3DParms): * string.memcpy(&self._ptr[0].copyParams, copyParams.getPtr(), sizeof(self._ptr[0].copyParams)) # <<<<<<<<<<<<<< * * cdef class cudaMemcpy3DPeerParms: */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_copyParams), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4879, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4879, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4879, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).copyParams), ((struct cudaMemcpy3DParms *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).copyParams)))); /* "cuda/cudart.pyx":4877 * def copyParams(self): * return self._copyParams * @copyParams.setter # <<<<<<<<<<<<<< * def copyParams(self, copyParams not None : cudaMemcpy3DParms): * string.memcpy(&self._ptr[0].copyParams, copyParams.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaMemcpyNodeParams.copyParams.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __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_6cudart_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_6cudart_20cudaMemcpyNodeParams_10__reduce_cython__, "cudaMemcpyNodeParams.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_20cudaMemcpyNodeParams_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaMemcpyNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaMemcpyNodeParams_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaMemcpyNodeParams_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaMemcpyNodeParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__81) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaMemcpyNodeParams.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_20cudaMemcpyNodeParams_12__setstate_cython__, "cudaMemcpyNodeParams.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_20cudaMemcpyNodeParams_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaMemcpyNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaMemcpyNodeParams_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemcpyNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaMemcpyNodeParams_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaMemcpyNodeParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__82) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaMemcpyNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4912 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4912, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 4912, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4912, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 4912, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DPeerParms.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_21cudaMemcpy3DPeerParms___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_21cudaMemcpy3DPeerParms___cinit__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 4912, 0, __PYX_ERR(0, 4912, __pyx_L1_error)); /* "cuda/cudart.pyx":4913 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":4914 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaMemcpy3DPeerParms__val); /* "cuda/cudart.pyx":4913 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":4916 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * self._srcArray = cudaArray_t(_ptr=&self._ptr[0].srcArray) */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaMemcpy3DPeerParms *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":4912 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DPeerParms.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":4917 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._srcArray = cudaArray_t(_ptr=&self._ptr[0].srcArray) * self._srcPos = cudaPos(_ptr=&self._ptr[0].srcPos) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4917, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 4917, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4917, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 4917, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DPeerParms.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_21cudaMemcpy3DPeerParms_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_21cudaMemcpy3DPeerParms_2__init__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 4917, 0, __PYX_ERR(0, 4917, __pyx_L1_error)); /* "cuda/cudart.pyx":4918 * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): * self._srcArray = cudaArray_t(_ptr=&self._ptr[0].srcArray) # <<<<<<<<<<<<<< * self._srcPos = cudaPos(_ptr=&self._ptr[0].srcPos) * self._srcPtr = cudaPitchedPtr(_ptr=&self._ptr[0].srcPtr) */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4918, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).srcArray))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4918, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 4918, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_t), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4918, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_srcArray); __Pyx_DECREF((PyObject *)__pyx_v_self->_srcArray); __pyx_v_self->_srcArray = ((struct __pyx_obj_4cuda_6cudart_cudaArray_t *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":4919 * def __init__(self, void_ptr _ptr = 0): * self._srcArray = cudaArray_t(_ptr=&self._ptr[0].srcArray) * self._srcPos = cudaPos(_ptr=&self._ptr[0].srcPos) # <<<<<<<<<<<<<< * self._srcPtr = cudaPitchedPtr(_ptr=&self._ptr[0].srcPtr) * self._dstArray = cudaArray_t(_ptr=&self._ptr[0].dstArray) */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4919, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).srcPos))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4919, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_ptr, __pyx_t_1) < 0) __PYX_ERR(0, 4919, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaPos), __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4919, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GIVEREF(__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_6cudart_cudaPos *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":4920 * self._srcArray = cudaArray_t(_ptr=&self._ptr[0].srcArray) * self._srcPos = cudaPos(_ptr=&self._ptr[0].srcPos) * self._srcPtr = cudaPitchedPtr(_ptr=&self._ptr[0].srcPtr) # <<<<<<<<<<<<<< * self._dstArray = cudaArray_t(_ptr=&self._ptr[0].dstArray) * self._dstPos = cudaPos(_ptr=&self._ptr[0].dstPos) */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4920, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).srcPtr))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4920, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 4920, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaPitchedPtr), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4920, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_srcPtr); __Pyx_DECREF((PyObject *)__pyx_v_self->_srcPtr); __pyx_v_self->_srcPtr = ((struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":4921 * self._srcPos = cudaPos(_ptr=&self._ptr[0].srcPos) * self._srcPtr = cudaPitchedPtr(_ptr=&self._ptr[0].srcPtr) * self._dstArray = cudaArray_t(_ptr=&self._ptr[0].dstArray) # <<<<<<<<<<<<<< * self._dstPos = cudaPos(_ptr=&self._ptr[0].dstPos) * self._dstPtr = cudaPitchedPtr(_ptr=&self._ptr[0].dstPtr) */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4921, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).dstArray))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4921, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_ptr, __pyx_t_1) < 0) __PYX_ERR(0, 4921, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_t), __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4921, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GIVEREF(__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_6cudart_cudaArray_t *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":4922 * self._srcPtr = cudaPitchedPtr(_ptr=&self._ptr[0].srcPtr) * self._dstArray = cudaArray_t(_ptr=&self._ptr[0].dstArray) * self._dstPos = cudaPos(_ptr=&self._ptr[0].dstPos) # <<<<<<<<<<<<<< * self._dstPtr = cudaPitchedPtr(_ptr=&self._ptr[0].dstPtr) * self._extent = cudaExtent(_ptr=&self._ptr[0].extent) */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4922, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).dstPos))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4922, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 4922, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaPos), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4922, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_dstPos); __Pyx_DECREF((PyObject *)__pyx_v_self->_dstPos); __pyx_v_self->_dstPos = ((struct __pyx_obj_4cuda_6cudart_cudaPos *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":4923 * self._dstArray = cudaArray_t(_ptr=&self._ptr[0].dstArray) * self._dstPos = cudaPos(_ptr=&self._ptr[0].dstPos) * self._dstPtr = cudaPitchedPtr(_ptr=&self._ptr[0].dstPtr) # <<<<<<<<<<<<<< * self._extent = cudaExtent(_ptr=&self._ptr[0].extent) * def __dealloc__(self): */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4923, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).dstPtr))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4923, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_ptr, __pyx_t_1) < 0) __PYX_ERR(0, 4923, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaPitchedPtr), __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4923, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GIVEREF(__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_6cudart_cudaPitchedPtr *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":4924 * self._dstPos = cudaPos(_ptr=&self._ptr[0].dstPos) * self._dstPtr = cudaPitchedPtr(_ptr=&self._ptr[0].dstPtr) * self._extent = cudaExtent(_ptr=&self._ptr[0].extent) # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4924, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).extent))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4924, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 4924, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExtent), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4924, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_extent); __Pyx_DECREF((PyObject *)__pyx_v_self->_extent); __pyx_v_self->_extent = ((struct __pyx_obj_4cuda_6cudart_cudaExtent *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":4917 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._srcArray = cudaArray_t(_ptr=&self._ptr[0].srcArray) * self._srcPos = cudaPos(_ptr=&self._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.cudart.cudaMemcpy3DPeerParms.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4925 * self._dstPtr = cudaPitchedPtr(_ptr=&self._ptr[0].dstPtr) * self._extent = cudaExtent(_ptr=&self._ptr[0].extent) * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_21cudaMemcpy3DPeerParms_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_21cudaMemcpy3DPeerParms_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 4925, 0, __PYX_ERR(0, 4925, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaMemcpy3DPeerParms.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":4927 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_21cudaMemcpy3DPeerParms_6getPtr, "cudaMemcpy3DPeerParms.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_21cudaMemcpy3DPeerParms_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_21cudaMemcpy3DPeerParms_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_21cudaMemcpy3DPeerParms_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaMemcpy3DPeerParms_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__83) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 4927, 0, __PYX_ERR(0, 4927, __pyx_L1_error)); /* "cuda/cudart.pyx":4928 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4928, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4927 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DPeerParms.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4929 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_21cudaMemcpy3DPeerParms_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaMemcpy3DPeerParms_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_8genexpr7__pyx_v_line = NULL; PyObject *__pyx_8genexpr8__pyx_v_line = NULL; PyObject *__pyx_8genexpr9__pyx_v_line = NULL; PyObject *__pyx_9genexpr10__pyx_v_line = NULL; PyObject *__pyx_9genexpr11__pyx_v_line = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 4929, 0, __PYX_ERR(0, 4929, __pyx_L1_error)); /* "cuda/cudart.pyx":4930 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":4931 * def __repr__(self): * if self._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, 4931, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":4932 * if self._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/cudart.pyx":4933 * str_list = [] * try: * str_list += ['srcArray : ' + str(self.srcArray)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['srcArray : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_srcArray_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4933, __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, 4933, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_srcArray, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4933, __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, 4933, __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)) __PYX_ERR(0, 4933, __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, 4933, __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/cudart.pyx":4932 * if self._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/cudart.pyx":4934 * try: * str_list += ['srcArray : ' + str(self.srcArray)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['srcArray : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DPeerParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 4934, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":4935 * str_list += ['srcArray : ' + str(self.srcArray)] * except ValueError: * str_list += ['srcArray : '] # <<<<<<<<<<<<<< * 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, 4935, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_srcArray_ValueError); __Pyx_GIVEREF(__pyx_kp_u_srcArray_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_srcArray_ValueError)) __PYX_ERR(0, 4935, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4935, __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/cudart.pyx":4932 * if self._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/cudart.pyx":4936 * except ValueError: * str_list += ['srcArray : '] * 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/cudart.pyx":4937 * str_list += ['srcArray : '] * try: * str_list += ['srcPos :\n' + '\n'.join([' ' + line for line in str(self.srcPos).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['srcPos : '] */ { /* enter inner scope */ __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4937, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_srcPos_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4937, __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, 4937, __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, 4937, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 4937, __pyx_L20_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_11); __Pyx_INCREF(__pyx_t_6); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 4937, __pyx_L20_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4937, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_8genexpr7__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_8genexpr7__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4937, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 4937, __pyx_L20_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_8genexpr7__pyx_v_line); __pyx_8genexpr7__pyx_v_line = 0; goto __pyx_L24_exit_scope; __pyx_L20_error:; __Pyx_XDECREF(__pyx_8genexpr7__pyx_v_line); __pyx_8genexpr7__pyx_v_line = 0; goto __pyx_L12_error; __pyx_L24_exit_scope:; } /* exit inner scope */ __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4937, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_srcPos, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4937, __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, 4937, __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)) __PYX_ERR(0, 4937, __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, 4937, __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/cudart.pyx":4936 * except ValueError: * str_list += ['srcArray : '] * 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/cudart.pyx":4938 * try: * str_list += ['srcPos :\n' + '\n'.join([' ' + line for line in str(self.srcPos).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['srcPos : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DPeerParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 4938, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":4939 * str_list += ['srcPos :\n' + '\n'.join([' ' + line for line in str(self.srcPos).splitlines()])] * except ValueError: * str_list += ['srcPos : '] # <<<<<<<<<<<<<< * 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, 4939, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_srcPos_ValueError); __Pyx_GIVEREF(__pyx_kp_u_srcPos_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_srcPos_ValueError)) __PYX_ERR(0, 4939, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4939, __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/cudart.pyx":4936 * except ValueError: * str_list += ['srcArray : '] * 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/cudart.pyx":4940 * except ValueError: * str_list += ['srcPos : '] * 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/cudart.pyx":4941 * str_list += ['srcPos : '] * try: * str_list += ['srcPtr :\n' + '\n'.join([' ' + line for line in str(self.srcPtr).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['srcPtr : '] */ { /* enter inner scope */ __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4941, __pyx_L35_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_srcPtr_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4941, __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, 4941, __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, 4941, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 4941, __pyx_L35_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_2 = PyList_GET_ITEM(__pyx_t_8, __pyx_t_11); __Pyx_INCREF(__pyx_t_2); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 4941, __pyx_L35_error) #else __pyx_t_2 = __Pyx_PySequence_ITEM(__pyx_t_8, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4941, __pyx_L35_error) __Pyx_GOTREF(__pyx_t_2); #endif __Pyx_XDECREF_SET(__pyx_8genexpr8__pyx_v_line, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_kp_u__62, __pyx_8genexpr8__pyx_v_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4941, __pyx_L35_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 4941, __pyx_L35_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_8genexpr8__pyx_v_line); __pyx_8genexpr8__pyx_v_line = 0; goto __pyx_L39_exit_scope; __pyx_L35_error:; __Pyx_XDECREF(__pyx_8genexpr8__pyx_v_line); __pyx_8genexpr8__pyx_v_line = 0; goto __pyx_L27_error; __pyx_L39_exit_scope:; } /* exit inner scope */ __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4941, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_srcPtr, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4941, __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, 4941, __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)) __PYX_ERR(0, 4941, __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, 4941, __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/cudart.pyx":4940 * except ValueError: * str_list += ['srcPos : '] * 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/cudart.pyx":4942 * try: * str_list += ['srcPtr :\n' + '\n'.join([' ' + line for line in str(self.srcPtr).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['srcPtr : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DPeerParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 4942, __pyx_L29_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":4943 * str_list += ['srcPtr :\n' + '\n'.join([' ' + line for line in str(self.srcPtr).splitlines()])] * except ValueError: * str_list += ['srcPtr : '] # <<<<<<<<<<<<<< * try: * str_list += ['srcDevice : ' + str(self.srcDevice)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4943, __pyx_L29_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_srcPtr_ValueError); __Pyx_GIVEREF(__pyx_kp_u_srcPtr_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_srcPtr_ValueError)) __PYX_ERR(0, 4943, __pyx_L29_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4943, __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/cudart.pyx":4940 * except ValueError: * str_list += ['srcPos : '] * 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/cudart.pyx":4944 * except ValueError: * str_list += ['srcPtr : '] * 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/cudart.pyx":4945 * str_list += ['srcPtr : '] * try: * str_list += ['srcDevice : ' + str(self.srcDevice)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['srcDevice : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_srcDevice_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4945, __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, 4945, __pyx_L42_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_srcDevice, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4945, __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, 4945, __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)) __PYX_ERR(0, 4945, __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, 4945, __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/cudart.pyx":4944 * except ValueError: * str_list += ['srcPtr : '] * 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/cudart.pyx":4946 * try: * str_list += ['srcDevice : ' + str(self.srcDevice)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['srcDevice : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DPeerParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_8, &__pyx_t_6) < 0) __PYX_ERR(0, 4946, __pyx_L44_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":4947 * str_list += ['srcDevice : ' + str(self.srcDevice)] * except ValueError: * str_list += ['srcDevice : '] # <<<<<<<<<<<<<< * try: * str_list += ['dstArray : ' + str(self.dstArray)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4947, __pyx_L44_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_srcDevice_ValueError); __Pyx_GIVEREF(__pyx_kp_u_srcDevice_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_srcDevice_ValueError)) __PYX_ERR(0, 4947, __pyx_L44_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4947, __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/cudart.pyx":4944 * except ValueError: * str_list += ['srcPtr : '] * 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/cudart.pyx":4948 * except ValueError: * str_list += ['srcDevice : '] * 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/cudart.pyx":4949 * str_list += ['srcDevice : '] * try: * str_list += ['dstArray : ' + str(self.dstArray)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['dstArray : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_dstArray_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4949, __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, 4949, __pyx_L50_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_dstArray, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4949, __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, 4949, __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)) __PYX_ERR(0, 4949, __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, 4949, __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/cudart.pyx":4948 * except ValueError: * str_list += ['srcDevice : '] * 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/cudart.pyx":4950 * try: * str_list += ['dstArray : ' + str(self.dstArray)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['dstArray : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DPeerParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 4950, __pyx_L52_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":4951 * str_list += ['dstArray : ' + str(self.dstArray)] * except ValueError: * str_list += ['dstArray : '] # <<<<<<<<<<<<<< * 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, 4951, __pyx_L52_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_dstArray_ValueError); __Pyx_GIVEREF(__pyx_kp_u_dstArray_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_dstArray_ValueError)) __PYX_ERR(0, 4951, __pyx_L52_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4951, __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/cudart.pyx":4948 * except ValueError: * str_list += ['srcDevice : '] * 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/cudart.pyx":4952 * except ValueError: * str_list += ['dstArray : '] * 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/cudart.pyx":4953 * str_list += ['dstArray : '] * try: * str_list += ['dstPos :\n' + '\n'.join([' ' + line for line in str(self.dstPos).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['dstPos : '] */ { /* enter inner scope */ __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4953, __pyx_L66_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_dstPos_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4953, __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, 4953, __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, 4953, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 4953, __pyx_L66_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_8 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_11); __Pyx_INCREF(__pyx_t_8); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 4953, __pyx_L66_error) #else __pyx_t_8 = __Pyx_PySequence_ITEM(__pyx_t_6, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4953, __pyx_L66_error) __Pyx_GOTREF(__pyx_t_8); #endif __Pyx_XDECREF_SET(__pyx_8genexpr9__pyx_v_line, __pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = PyNumber_Add(__pyx_kp_u__62, __pyx_8genexpr9__pyx_v_line); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4953, __pyx_L66_error) __Pyx_GOTREF(__pyx_t_8); if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_8))) __PYX_ERR(0, 4953, __pyx_L66_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_8genexpr9__pyx_v_line); __pyx_8genexpr9__pyx_v_line = 0; goto __pyx_L70_exit_scope; __pyx_L66_error:; __Pyx_XDECREF(__pyx_8genexpr9__pyx_v_line); __pyx_8genexpr9__pyx_v_line = 0; goto __pyx_L58_error; __pyx_L70_exit_scope:; } /* exit inner scope */ __pyx_t_6 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4953, __pyx_L58_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_dstPos, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4953, __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, 4953, __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)) __PYX_ERR(0, 4953, __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, 4953, __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/cudart.pyx":4952 * except ValueError: * str_list += ['dstArray : '] * 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/cudart.pyx":4954 * try: * str_list += ['dstPos :\n' + '\n'.join([' ' + line for line in str(self.dstPos).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['dstPos : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DPeerParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 4954, __pyx_L60_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":4955 * str_list += ['dstPos :\n' + '\n'.join([' ' + line for line in str(self.dstPos).splitlines()])] * except ValueError: * str_list += ['dstPos : '] # <<<<<<<<<<<<<< * 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, 4955, __pyx_L60_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_dstPos_ValueError); __Pyx_GIVEREF(__pyx_kp_u_dstPos_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_dstPos_ValueError)) __PYX_ERR(0, 4955, __pyx_L60_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4955, __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/cudart.pyx":4952 * except ValueError: * str_list += ['dstArray : '] * 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/cudart.pyx":4956 * except ValueError: * str_list += ['dstPos : '] * 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/cudart.pyx":4957 * str_list += ['dstPos : '] * try: * str_list += ['dstPtr :\n' + '\n'.join([' ' + line for line in str(self.dstPtr).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['dstPtr : '] */ { /* enter inner scope */ __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4957, __pyx_L81_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_dstPtr_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4957, __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, 4957, __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, 4957, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 4957, __pyx_L81_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_11); __Pyx_INCREF(__pyx_t_6); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 4957, __pyx_L81_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4957, __pyx_L81_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_9genexpr10__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr10__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4957, __pyx_L81_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 4957, __pyx_L81_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_9genexpr10__pyx_v_line); __pyx_9genexpr10__pyx_v_line = 0; goto __pyx_L85_exit_scope; __pyx_L81_error:; __Pyx_XDECREF(__pyx_9genexpr10__pyx_v_line); __pyx_9genexpr10__pyx_v_line = 0; goto __pyx_L73_error; __pyx_L85_exit_scope:; } /* exit inner scope */ __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4957, __pyx_L73_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_dstPtr, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4957, __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, 4957, __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)) __PYX_ERR(0, 4957, __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, 4957, __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/cudart.pyx":4956 * except ValueError: * str_list += ['dstPos : '] * 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/cudart.pyx":4958 * try: * str_list += ['dstPtr :\n' + '\n'.join([' ' + line for line in str(self.dstPtr).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['dstPtr : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DPeerParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 4958, __pyx_L75_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":4959 * str_list += ['dstPtr :\n' + '\n'.join([' ' + line for line in str(self.dstPtr).splitlines()])] * except ValueError: * str_list += ['dstPtr : '] # <<<<<<<<<<<<<< * try: * str_list += ['dstDevice : ' + str(self.dstDevice)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4959, __pyx_L75_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_dstPtr_ValueError); __Pyx_GIVEREF(__pyx_kp_u_dstPtr_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_dstPtr_ValueError)) __PYX_ERR(0, 4959, __pyx_L75_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4959, __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/cudart.pyx":4956 * except ValueError: * str_list += ['dstPos : '] * 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/cudart.pyx":4960 * except ValueError: * str_list += ['dstPtr : '] * 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/cudart.pyx":4961 * str_list += ['dstPtr : '] * try: * str_list += ['dstDevice : ' + str(self.dstDevice)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['dstDevice : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_dstDevice_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4961, __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, 4961, __pyx_L88_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_dstDevice, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4961, __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, 4961, __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)) __PYX_ERR(0, 4961, __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, 4961, __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/cudart.pyx":4960 * except ValueError: * str_list += ['dstPtr : '] * 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/cudart.pyx":4962 * try: * str_list += ['dstDevice : ' + str(self.dstDevice)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['dstDevice : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DPeerParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_8) < 0) __PYX_ERR(0, 4962, __pyx_L90_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":4963 * str_list += ['dstDevice : ' + str(self.dstDevice)] * except ValueError: * str_list += ['dstDevice : '] # <<<<<<<<<<<<<< * 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, 4963, __pyx_L90_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_dstDevice_ValueError); __Pyx_GIVEREF(__pyx_kp_u_dstDevice_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_dstDevice_ValueError)) __PYX_ERR(0, 4963, __pyx_L90_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4963, __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/cudart.pyx":4960 * except ValueError: * str_list += ['dstPtr : '] * 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/cudart.pyx":4964 * except ValueError: * str_list += ['dstDevice : '] * 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/cudart.pyx":4965 * str_list += ['dstDevice : '] * try: * str_list += ['extent :\n' + '\n'.join([' ' + line for line in str(self.extent).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['extent : '] */ { /* enter inner scope */ __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4965, __pyx_L104_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_extent_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4965, __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, 4965, __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, 4965, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 4965, __pyx_L104_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_2 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_11); __Pyx_INCREF(__pyx_t_2); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 4965, __pyx_L104_error) #else __pyx_t_2 = __Pyx_PySequence_ITEM(__pyx_t_6, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4965, __pyx_L104_error) __Pyx_GOTREF(__pyx_t_2); #endif __Pyx_XDECREF_SET(__pyx_9genexpr11__pyx_v_line, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr11__pyx_v_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4965, __pyx_L104_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 4965, __pyx_L104_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_9genexpr11__pyx_v_line); __pyx_9genexpr11__pyx_v_line = 0; goto __pyx_L108_exit_scope; __pyx_L104_error:; __Pyx_XDECREF(__pyx_9genexpr11__pyx_v_line); __pyx_9genexpr11__pyx_v_line = 0; goto __pyx_L96_error; __pyx_L108_exit_scope:; } /* exit inner scope */ __pyx_t_6 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4965, __pyx_L96_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_extent, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 4965, __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, 4965, __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)) __PYX_ERR(0, 4965, __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, 4965, __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/cudart.pyx":4964 * except ValueError: * str_list += ['dstDevice : '] * 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/cudart.pyx":4966 * try: * str_list += ['extent :\n' + '\n'.join([' ' + line for line in str(self.extent).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['extent : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DPeerParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 4966, __pyx_L98_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":4967 * str_list += ['extent :\n' + '\n'.join([' ' + line for line in str(self.extent).splitlines()])] * except ValueError: * str_list += ['extent : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 4967, __pyx_L98_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_extent_ValueError); __Pyx_GIVEREF(__pyx_kp_u_extent_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_extent_ValueError)) __PYX_ERR(0, 4967, __pyx_L98_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 4967, __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/cudart.pyx":4964 * except ValueError: * str_list += ['dstDevice : '] * 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/cudart.pyx":4968 * except ValueError: * str_list += ['extent : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4968, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":4930 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":4970 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def srcArray(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":4929 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaMemcpy3DPeerParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XDECREF(__pyx_8genexpr7__pyx_v_line); __Pyx_XDECREF(__pyx_8genexpr8__pyx_v_line); __Pyx_XDECREF(__pyx_8genexpr9__pyx_v_line); __Pyx_XDECREF(__pyx_9genexpr10__pyx_v_line); __Pyx_XDECREF(__pyx_9genexpr11__pyx_v_line); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4971 * else: * return '' * @property # <<<<<<<<<<<<<< * def srcArray(self): * return self._srcArray */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_8srcArray_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_21cudaMemcpy3DPeerParms_8srcArray___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaMemcpy3DPeerParms_8srcArray___get__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4971, 0, __PYX_ERR(0, 4971, __pyx_L1_error)); /* "cuda/cudart.pyx":4973 * @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/cudart.pyx":4971 * else: * return '' * @property # <<<<<<<<<<<<<< * def srcArray(self): * return self._srcArray */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DPeerParms.srcArray.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4974 * def srcArray(self): * return self._srcArray * @srcArray.setter # <<<<<<<<<<<<<< * def srcArray(self, srcArray): * cdef ccudart.cudaArray_t csrcArray */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_8srcArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_srcArray); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_21cudaMemcpy3DPeerParms_8srcArray_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *)__pyx_v_self), ((PyObject *)__pyx_v_srcArray)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_21cudaMemcpy3DPeerParms_8srcArray_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *__pyx_v_self, PyObject *__pyx_v_srcArray) { cudaArray_t __pyx_v_csrcArray; PyObject *__pyx_v_psrcArray = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 4974, 0, __PYX_ERR(0, 4974, __pyx_L1_error)); /* "cuda/cudart.pyx":4977 * def srcArray(self, srcArray): * cdef ccudart.cudaArray_t csrcArray * if srcArray is None: # <<<<<<<<<<<<<< * csrcArray = 0 * elif isinstance(srcArray, (cudaArray_t,)): */ __pyx_t_1 = (__pyx_v_srcArray == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":4978 * cdef ccudart.cudaArray_t csrcArray * if srcArray is None: * csrcArray = 0 # <<<<<<<<<<<<<< * elif isinstance(srcArray, (cudaArray_t,)): * psrcArray = int(srcArray) */ __pyx_v_csrcArray = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":4977 * def srcArray(self, srcArray): * cdef ccudart.cudaArray_t csrcArray * if srcArray is None: # <<<<<<<<<<<<<< * csrcArray = 0 * elif isinstance(srcArray, (cudaArray_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":4979 * if srcArray is None: * csrcArray = 0 * elif isinstance(srcArray, (cudaArray_t,)): # <<<<<<<<<<<<<< * psrcArray = int(srcArray) * csrcArray = psrcArray */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_srcArray, __pyx_ptype_4cuda_6cudart_cudaArray_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":4980 * csrcArray = 0 * elif isinstance(srcArray, (cudaArray_t,)): * psrcArray = int(srcArray) # <<<<<<<<<<<<<< * csrcArray = psrcArray * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_srcArray); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4980, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_psrcArray = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":4981 * elif isinstance(srcArray, (cudaArray_t,)): * psrcArray = int(srcArray) * csrcArray = psrcArray # <<<<<<<<<<<<<< * else: * psrcArray = int(cudaArray_t(srcArray)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_psrcArray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4981, __pyx_L1_error) __pyx_v_csrcArray = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":4979 * if srcArray is None: * csrcArray = 0 * elif isinstance(srcArray, (cudaArray_t,)): # <<<<<<<<<<<<<< * psrcArray = int(srcArray) * csrcArray = psrcArray */ goto __pyx_L3; } /* "cuda/cudart.pyx":4983 * csrcArray = psrcArray * else: * psrcArray = int(cudaArray_t(srcArray)) # <<<<<<<<<<<<<< * csrcArray = psrcArray * self._srcArray._ptr[0] = csrcArray */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_t), __pyx_v_srcArray); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4983, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4983, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_psrcArray = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":4984 * else: * psrcArray = int(cudaArray_t(srcArray)) * csrcArray = psrcArray # <<<<<<<<<<<<<< * self._srcArray._ptr[0] = csrcArray * @property */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_psrcArray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4984, __pyx_L1_error) __pyx_v_csrcArray = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":4985 * psrcArray = int(cudaArray_t(srcArray)) * csrcArray = psrcArray * self._srcArray._ptr[0] = csrcArray # <<<<<<<<<<<<<< * @property * def srcPos(self): */ (__pyx_v_self->_srcArray->_ptr[0]) = __pyx_v_csrcArray; /* "cuda/cudart.pyx":4974 * def srcArray(self): * return self._srcArray * @srcArray.setter # <<<<<<<<<<<<<< * def srcArray(self, srcArray): * cdef ccudart.cudaArray_t csrcArray */ /* 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.cudart.cudaMemcpy3DPeerParms.srcArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v_psrcArray); __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4986 * csrcArray = psrcArray * self._srcArray._ptr[0] = csrcArray * @property # <<<<<<<<<<<<<< * def srcPos(self): * return self._srcPos */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_6srcPos_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_21cudaMemcpy3DPeerParms_6srcPos___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaMemcpy3DPeerParms_6srcPos___get__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4986, 0, __PYX_ERR(0, 4986, __pyx_L1_error)); /* "cuda/cudart.pyx":4988 * @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/cudart.pyx":4986 * csrcArray = psrcArray * self._srcArray._ptr[0] = csrcArray * @property # <<<<<<<<<<<<<< * def srcPos(self): * return self._srcPos */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DPeerParms.srcPos.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4989 * def srcPos(self): * return self._srcPos * @srcPos.setter # <<<<<<<<<<<<<< * def srcPos(self, srcPos not None : cudaPos): * string.memcpy(&self._ptr[0].srcPos, srcPos.getPtr(), sizeof(self._ptr[0].srcPos)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_6srcPos_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_srcPos); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_cudaPos, 0, "srcPos", 0))) __PYX_ERR(0, 4990, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_21cudaMemcpy3DPeerParms_6srcPos_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_cudaPos *)__pyx_v_srcPos)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_21cudaMemcpy3DPeerParms_6srcPos_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_cudaPos *__pyx_v_srcPos) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 4989, 0, __PYX_ERR(0, 4989, __pyx_L1_error)); /* "cuda/cudart.pyx":4991 * @srcPos.setter * def srcPos(self, srcPos not None : cudaPos): * string.memcpy(&self._ptr[0].srcPos, srcPos.getPtr(), sizeof(self._ptr[0].srcPos)) # <<<<<<<<<<<<<< * @property * def srcPtr(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_srcPos), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4991, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4991, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4991, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).srcPos), ((struct cudaPos *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).srcPos)))); /* "cuda/cudart.pyx":4989 * def srcPos(self): * return self._srcPos * @srcPos.setter # <<<<<<<<<<<<<< * def srcPos(self, srcPos not None : cudaPos): * string.memcpy(&self._ptr[0].srcPos, srcPos.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DPeerParms.srcPos.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4992 * def srcPos(self, srcPos not None : cudaPos): * string.memcpy(&self._ptr[0].srcPos, srcPos.getPtr(), sizeof(self._ptr[0].srcPos)) * @property # <<<<<<<<<<<<<< * def srcPtr(self): * return self._srcPtr */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_6srcPtr_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_21cudaMemcpy3DPeerParms_6srcPtr___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaMemcpy3DPeerParms_6srcPtr___get__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4992, 0, __PYX_ERR(0, 4992, __pyx_L1_error)); /* "cuda/cudart.pyx":4994 * @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/cudart.pyx":4992 * def srcPos(self, srcPos not None : cudaPos): * string.memcpy(&self._ptr[0].srcPos, srcPos.getPtr(), sizeof(self._ptr[0].srcPos)) * @property # <<<<<<<<<<<<<< * def srcPtr(self): * return self._srcPtr */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DPeerParms.srcPtr.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4995 * def srcPtr(self): * return self._srcPtr * @srcPtr.setter # <<<<<<<<<<<<<< * def srcPtr(self, srcPtr not None : cudaPitchedPtr): * string.memcpy(&self._ptr[0].srcPtr, srcPtr.getPtr(), sizeof(self._ptr[0].srcPtr)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_6srcPtr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_srcPtr); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_cudaPitchedPtr, 0, "srcPtr", 0))) __PYX_ERR(0, 4996, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_21cudaMemcpy3DPeerParms_6srcPtr_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *)__pyx_v_srcPtr)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_21cudaMemcpy3DPeerParms_6srcPtr_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *__pyx_v_srcPtr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 4995, 0, __PYX_ERR(0, 4995, __pyx_L1_error)); /* "cuda/cudart.pyx":4997 * @srcPtr.setter * def srcPtr(self, srcPtr not None : cudaPitchedPtr): * string.memcpy(&self._ptr[0].srcPtr, srcPtr.getPtr(), sizeof(self._ptr[0].srcPtr)) # <<<<<<<<<<<<<< * @property * def srcDevice(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_srcPtr), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4997, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4997, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4997, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).srcPtr), ((struct cudaPitchedPtr *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).srcPtr)))); /* "cuda/cudart.pyx":4995 * def srcPtr(self): * return self._srcPtr * @srcPtr.setter # <<<<<<<<<<<<<< * def srcPtr(self, srcPtr not None : cudaPitchedPtr): * string.memcpy(&self._ptr[0].srcPtr, srcPtr.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DPeerParms.srcPtr.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":4998 * def srcPtr(self, srcPtr not None : cudaPitchedPtr): * string.memcpy(&self._ptr[0].srcPtr, srcPtr.getPtr(), sizeof(self._ptr[0].srcPtr)) * @property # <<<<<<<<<<<<<< * def srcDevice(self): * return self._ptr[0].srcDevice */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_9srcDevice_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_21cudaMemcpy3DPeerParms_9srcDevice___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaMemcpy3DPeerParms_9srcDevice___get__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 4998, 0, __PYX_ERR(0, 4998, __pyx_L1_error)); /* "cuda/cudart.pyx":5000 * @property * def srcDevice(self): * return self._ptr[0].srcDevice # <<<<<<<<<<<<<< * @srcDevice.setter * def srcDevice(self, int srcDevice): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).srcDevice); 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/cudart.pyx":4998 * def srcPtr(self, srcPtr not None : cudaPitchedPtr): * string.memcpy(&self._ptr[0].srcPtr, srcPtr.getPtr(), sizeof(self._ptr[0].srcPtr)) * @property # <<<<<<<<<<<<<< * def srcDevice(self): * return self._ptr[0].srcDevice */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DPeerParms.srcDevice.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5001 * def srcDevice(self): * return self._ptr[0].srcDevice * @srcDevice.setter # <<<<<<<<<<<<<< * def srcDevice(self, int srcDevice): * self._ptr[0].srcDevice = srcDevice */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_9srcDevice_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_srcDevice); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_srcDevice); if (unlikely((__pyx_v_srcDevice == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5002, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DPeerParms.srcDevice.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_21cudaMemcpy3DPeerParms_9srcDevice_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *)__pyx_v_self), ((int)__pyx_v_srcDevice)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_21cudaMemcpy3DPeerParms_9srcDevice_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *__pyx_v_self, int __pyx_v_srcDevice) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 5001, 0, __PYX_ERR(0, 5001, __pyx_L1_error)); /* "cuda/cudart.pyx":5003 * @srcDevice.setter * def srcDevice(self, int srcDevice): * self._ptr[0].srcDevice = srcDevice # <<<<<<<<<<<<<< * @property * def dstArray(self): */ (__pyx_v_self->_ptr[0]).srcDevice = __pyx_v_srcDevice; /* "cuda/cudart.pyx":5001 * def srcDevice(self): * return self._ptr[0].srcDevice * @srcDevice.setter # <<<<<<<<<<<<<< * def srcDevice(self, int srcDevice): * self._ptr[0].srcDevice = srcDevice */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DPeerParms.srcDevice.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":5004 * def srcDevice(self, int srcDevice): * self._ptr[0].srcDevice = srcDevice * @property # <<<<<<<<<<<<<< * def dstArray(self): * return self._dstArray */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_8dstArray_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_21cudaMemcpy3DPeerParms_8dstArray___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaMemcpy3DPeerParms_8dstArray___get__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5004, 0, __PYX_ERR(0, 5004, __pyx_L1_error)); /* "cuda/cudart.pyx":5006 * @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/cudart.pyx":5004 * def srcDevice(self, int srcDevice): * self._ptr[0].srcDevice = srcDevice * @property # <<<<<<<<<<<<<< * def dstArray(self): * return self._dstArray */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DPeerParms.dstArray.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5007 * def dstArray(self): * return self._dstArray * @dstArray.setter # <<<<<<<<<<<<<< * def dstArray(self, dstArray): * cdef ccudart.cudaArray_t cdstArray */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_8dstArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dstArray); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_21cudaMemcpy3DPeerParms_8dstArray_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *)__pyx_v_self), ((PyObject *)__pyx_v_dstArray)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_21cudaMemcpy3DPeerParms_8dstArray_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *__pyx_v_self, PyObject *__pyx_v_dstArray) { cudaArray_t __pyx_v_cdstArray; PyObject *__pyx_v_pdstArray = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 5007, 0, __PYX_ERR(0, 5007, __pyx_L1_error)); /* "cuda/cudart.pyx":5010 * def dstArray(self, dstArray): * cdef ccudart.cudaArray_t cdstArray * if dstArray is None: # <<<<<<<<<<<<<< * cdstArray = 0 * elif isinstance(dstArray, (cudaArray_t,)): */ __pyx_t_1 = (__pyx_v_dstArray == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":5011 * cdef ccudart.cudaArray_t cdstArray * if dstArray is None: * cdstArray = 0 # <<<<<<<<<<<<<< * elif isinstance(dstArray, (cudaArray_t,)): * pdstArray = int(dstArray) */ __pyx_v_cdstArray = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":5010 * def dstArray(self, dstArray): * cdef ccudart.cudaArray_t cdstArray * if dstArray is None: # <<<<<<<<<<<<<< * cdstArray = 0 * elif isinstance(dstArray, (cudaArray_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":5012 * if dstArray is None: * cdstArray = 0 * elif isinstance(dstArray, (cudaArray_t,)): # <<<<<<<<<<<<<< * pdstArray = int(dstArray) * cdstArray = pdstArray */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_dstArray, __pyx_ptype_4cuda_6cudart_cudaArray_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":5013 * cdstArray = 0 * elif isinstance(dstArray, (cudaArray_t,)): * pdstArray = int(dstArray) # <<<<<<<<<<<<<< * cdstArray = pdstArray * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_dstArray); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5013, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_pdstArray = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":5014 * elif isinstance(dstArray, (cudaArray_t,)): * pdstArray = int(dstArray) * cdstArray = pdstArray # <<<<<<<<<<<<<< * else: * pdstArray = int(cudaArray_t(dstArray)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pdstArray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5014, __pyx_L1_error) __pyx_v_cdstArray = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":5012 * if dstArray is None: * cdstArray = 0 * elif isinstance(dstArray, (cudaArray_t,)): # <<<<<<<<<<<<<< * pdstArray = int(dstArray) * cdstArray = pdstArray */ goto __pyx_L3; } /* "cuda/cudart.pyx":5016 * cdstArray = pdstArray * else: * pdstArray = int(cudaArray_t(dstArray)) # <<<<<<<<<<<<<< * cdstArray = pdstArray * self._dstArray._ptr[0] = cdstArray */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_t), __pyx_v_dstArray); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5016, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5016, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_pdstArray = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":5017 * else: * pdstArray = int(cudaArray_t(dstArray)) * cdstArray = pdstArray # <<<<<<<<<<<<<< * self._dstArray._ptr[0] = cdstArray * @property */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pdstArray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5017, __pyx_L1_error) __pyx_v_cdstArray = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":5018 * pdstArray = int(cudaArray_t(dstArray)) * cdstArray = pdstArray * self._dstArray._ptr[0] = cdstArray # <<<<<<<<<<<<<< * @property * def dstPos(self): */ (__pyx_v_self->_dstArray->_ptr[0]) = __pyx_v_cdstArray; /* "cuda/cudart.pyx":5007 * def dstArray(self): * return self._dstArray * @dstArray.setter # <<<<<<<<<<<<<< * def dstArray(self, dstArray): * cdef ccudart.cudaArray_t cdstArray */ /* 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.cudart.cudaMemcpy3DPeerParms.dstArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pdstArray); __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5019 * cdstArray = pdstArray * self._dstArray._ptr[0] = cdstArray * @property # <<<<<<<<<<<<<< * def dstPos(self): * return self._dstPos */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_6dstPos_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_21cudaMemcpy3DPeerParms_6dstPos___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaMemcpy3DPeerParms_6dstPos___get__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5019, 0, __PYX_ERR(0, 5019, __pyx_L1_error)); /* "cuda/cudart.pyx":5021 * @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/cudart.pyx":5019 * cdstArray = pdstArray * self._dstArray._ptr[0] = cdstArray * @property # <<<<<<<<<<<<<< * def dstPos(self): * return self._dstPos */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DPeerParms.dstPos.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5022 * def dstPos(self): * return self._dstPos * @dstPos.setter # <<<<<<<<<<<<<< * def dstPos(self, dstPos not None : cudaPos): * string.memcpy(&self._ptr[0].dstPos, dstPos.getPtr(), sizeof(self._ptr[0].dstPos)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_6dstPos_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dstPos); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_cudaPos, 0, "dstPos", 0))) __PYX_ERR(0, 5023, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_21cudaMemcpy3DPeerParms_6dstPos_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_cudaPos *)__pyx_v_dstPos)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_21cudaMemcpy3DPeerParms_6dstPos_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_cudaPos *__pyx_v_dstPos) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 5022, 0, __PYX_ERR(0, 5022, __pyx_L1_error)); /* "cuda/cudart.pyx":5024 * @dstPos.setter * def dstPos(self, dstPos not None : cudaPos): * string.memcpy(&self._ptr[0].dstPos, dstPos.getPtr(), sizeof(self._ptr[0].dstPos)) # <<<<<<<<<<<<<< * @property * def dstPtr(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_dstPos), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5024, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5024, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5024, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).dstPos), ((struct cudaPos *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).dstPos)))); /* "cuda/cudart.pyx":5022 * def dstPos(self): * return self._dstPos * @dstPos.setter # <<<<<<<<<<<<<< * def dstPos(self, dstPos not None : cudaPos): * string.memcpy(&self._ptr[0].dstPos, dstPos.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DPeerParms.dstPos.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5025 * def dstPos(self, dstPos not None : cudaPos): * string.memcpy(&self._ptr[0].dstPos, dstPos.getPtr(), sizeof(self._ptr[0].dstPos)) * @property # <<<<<<<<<<<<<< * def dstPtr(self): * return self._dstPtr */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_6dstPtr_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_21cudaMemcpy3DPeerParms_6dstPtr___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaMemcpy3DPeerParms_6dstPtr___get__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5025, 0, __PYX_ERR(0, 5025, __pyx_L1_error)); /* "cuda/cudart.pyx":5027 * @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/cudart.pyx":5025 * def dstPos(self, dstPos not None : cudaPos): * string.memcpy(&self._ptr[0].dstPos, dstPos.getPtr(), sizeof(self._ptr[0].dstPos)) * @property # <<<<<<<<<<<<<< * def dstPtr(self): * return self._dstPtr */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DPeerParms.dstPtr.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5028 * def dstPtr(self): * return self._dstPtr * @dstPtr.setter # <<<<<<<<<<<<<< * def dstPtr(self, dstPtr not None : cudaPitchedPtr): * string.memcpy(&self._ptr[0].dstPtr, dstPtr.getPtr(), sizeof(self._ptr[0].dstPtr)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_6dstPtr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dstPtr); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_cudaPitchedPtr, 0, "dstPtr", 0))) __PYX_ERR(0, 5029, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_21cudaMemcpy3DPeerParms_6dstPtr_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *)__pyx_v_dstPtr)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_21cudaMemcpy3DPeerParms_6dstPtr_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *__pyx_v_dstPtr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 5028, 0, __PYX_ERR(0, 5028, __pyx_L1_error)); /* "cuda/cudart.pyx":5030 * @dstPtr.setter * def dstPtr(self, dstPtr not None : cudaPitchedPtr): * string.memcpy(&self._ptr[0].dstPtr, dstPtr.getPtr(), sizeof(self._ptr[0].dstPtr)) # <<<<<<<<<<<<<< * @property * def dstDevice(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_dstPtr), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5030, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5030, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5030, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).dstPtr), ((struct cudaPitchedPtr *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).dstPtr)))); /* "cuda/cudart.pyx":5028 * def dstPtr(self): * return self._dstPtr * @dstPtr.setter # <<<<<<<<<<<<<< * def dstPtr(self, dstPtr not None : cudaPitchedPtr): * string.memcpy(&self._ptr[0].dstPtr, dstPtr.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DPeerParms.dstPtr.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5031 * def dstPtr(self, dstPtr not None : cudaPitchedPtr): * string.memcpy(&self._ptr[0].dstPtr, dstPtr.getPtr(), sizeof(self._ptr[0].dstPtr)) * @property # <<<<<<<<<<<<<< * def dstDevice(self): * return self._ptr[0].dstDevice */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_9dstDevice_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_21cudaMemcpy3DPeerParms_9dstDevice___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaMemcpy3DPeerParms_9dstDevice___get__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5031, 0, __PYX_ERR(0, 5031, __pyx_L1_error)); /* "cuda/cudart.pyx":5033 * @property * def dstDevice(self): * return self._ptr[0].dstDevice # <<<<<<<<<<<<<< * @dstDevice.setter * def dstDevice(self, int dstDevice): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).dstDevice); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5033, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5031 * def dstPtr(self, dstPtr not None : cudaPitchedPtr): * string.memcpy(&self._ptr[0].dstPtr, dstPtr.getPtr(), sizeof(self._ptr[0].dstPtr)) * @property # <<<<<<<<<<<<<< * def dstDevice(self): * return self._ptr[0].dstDevice */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DPeerParms.dstDevice.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5034 * def dstDevice(self): * return self._ptr[0].dstDevice * @dstDevice.setter # <<<<<<<<<<<<<< * def dstDevice(self, int dstDevice): * self._ptr[0].dstDevice = dstDevice */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_9dstDevice_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_dstDevice); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_dstDevice); if (unlikely((__pyx_v_dstDevice == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5035, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DPeerParms.dstDevice.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_21cudaMemcpy3DPeerParms_9dstDevice_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *)__pyx_v_self), ((int)__pyx_v_dstDevice)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_21cudaMemcpy3DPeerParms_9dstDevice_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *__pyx_v_self, int __pyx_v_dstDevice) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 5034, 0, __PYX_ERR(0, 5034, __pyx_L1_error)); /* "cuda/cudart.pyx":5036 * @dstDevice.setter * def dstDevice(self, int dstDevice): * self._ptr[0].dstDevice = dstDevice # <<<<<<<<<<<<<< * @property * def extent(self): */ (__pyx_v_self->_ptr[0]).dstDevice = __pyx_v_dstDevice; /* "cuda/cudart.pyx":5034 * def dstDevice(self): * return self._ptr[0].dstDevice * @dstDevice.setter # <<<<<<<<<<<<<< * def dstDevice(self, int dstDevice): * self._ptr[0].dstDevice = dstDevice */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DPeerParms.dstDevice.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":5037 * def dstDevice(self, int dstDevice): * self._ptr[0].dstDevice = dstDevice * @property # <<<<<<<<<<<<<< * def extent(self): * return self._extent */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_6extent_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_21cudaMemcpy3DPeerParms_6extent___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaMemcpy3DPeerParms_6extent___get__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5037, 0, __PYX_ERR(0, 5037, __pyx_L1_error)); /* "cuda/cudart.pyx":5039 * @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/cudart.pyx":5037 * def dstDevice(self, int dstDevice): * self._ptr[0].dstDevice = dstDevice * @property # <<<<<<<<<<<<<< * def extent(self): * return self._extent */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DPeerParms.extent.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5040 * def extent(self): * return self._extent * @extent.setter # <<<<<<<<<<<<<< * def extent(self, extent not None : cudaExtent): * string.memcpy(&self._ptr[0].extent, extent.getPtr(), sizeof(self._ptr[0].extent)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_6extent_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_extent); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_cudaExtent, 0, "extent", 0))) __PYX_ERR(0, 5041, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_21cudaMemcpy3DPeerParms_6extent_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_cudaExtent *)__pyx_v_extent)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_21cudaMemcpy3DPeerParms_6extent_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_cudaExtent *__pyx_v_extent) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 5040, 0, __PYX_ERR(0, 5040, __pyx_L1_error)); /* "cuda/cudart.pyx":5042 * @extent.setter * def extent(self, extent not None : cudaExtent): * string.memcpy(&self._ptr[0].extent, extent.getPtr(), sizeof(self._ptr[0].extent)) # <<<<<<<<<<<<<< * * cdef class cudaMemsetParams: */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_extent), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5042, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5042, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5042, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).extent), ((struct cudaExtent *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).extent)))); /* "cuda/cudart.pyx":5040 * def extent(self): * return self._extent * @extent.setter # <<<<<<<<<<<<<< * def extent(self, extent not None : cudaExtent): * string.memcpy(&self._ptr[0].extent, extent.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DPeerParms.extent.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __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_6cudart_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_6cudart_21cudaMemcpy3DPeerParms_10__reduce_cython__, "cudaMemcpy3DPeerParms.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_21cudaMemcpy3DPeerParms_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_21cudaMemcpy3DPeerParms_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_21cudaMemcpy3DPeerParms_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaMemcpy3DPeerParms_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__84) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaMemcpy3DPeerParms.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_21cudaMemcpy3DPeerParms_12__setstate_cython__, "cudaMemcpy3DPeerParms.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_21cudaMemcpy3DPeerParms_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_21cudaMemcpy3DPeerParms_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DPeerParms.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_21cudaMemcpy3DPeerParms_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaMemcpy3DPeerParms_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__85) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaMemcpy3DPeerParms.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5069 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_16cudaMemsetParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_16cudaMemsetParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 5069, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 5069, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5069, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 5069, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemsetParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_16cudaMemsetParams___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_16cudaMemsetParams___cinit__(struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 5069, 0, __PYX_ERR(0, 5069, __pyx_L1_error)); /* "cuda/cudart.pyx":5070 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":5071 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaMemsetParams__val); /* "cuda/cudart.pyx":5070 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":5073 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * pass */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaMemsetParams *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":5069 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemsetParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":5074 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_16cudaMemsetParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_16cudaMemsetParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 5074, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 5074, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5074, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 5074, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemsetParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_16cudaMemsetParams_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_16cudaMemsetParams_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 5074, 0, __PYX_ERR(0, 5074, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemsetParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":5076 * def __init__(self, void_ptr _ptr = 0): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_16cudaMemsetParams_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_16cudaMemsetParams_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_16cudaMemsetParams_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 5076, 0, __PYX_ERR(0, 5076, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaMemsetParams.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":5078 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_16cudaMemsetParams_6getPtr, "cudaMemsetParams.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_16cudaMemsetParams_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_16cudaMemsetParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_16cudaMemsetParams_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_16cudaMemsetParams_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_16cudaMemsetParams_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__86) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 5078, 0, __PYX_ERR(0, 5078, __pyx_L1_error)); /* "cuda/cudart.pyx":5079 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5079, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5078 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemsetParams.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5080 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_16cudaMemsetParams_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_16cudaMemsetParams_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_16cudaMemsetParams_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 5080, 0, __PYX_ERR(0, 5080, __pyx_L1_error)); /* "cuda/cudart.pyx":5081 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":5082 * def __repr__(self): * if self._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, 5082, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":5083 * if self._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/cudart.pyx":5084 * str_list = [] * try: * str_list += ['dst : ' + hex(self.dst)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['dst : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_dst_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5084, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5084, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_kp_u_dst, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5084, __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, 5084, __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)) __PYX_ERR(0, 5084, __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, 5084, __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/cudart.pyx":5083 * if self._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/cudart.pyx":5085 * try: * str_list += ['dst : ' + hex(self.dst)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['dst : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemsetParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 5085, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":5086 * str_list += ['dst : ' + hex(self.dst)] * except ValueError: * str_list += ['dst : '] # <<<<<<<<<<<<<< * try: * str_list += ['pitch : ' + str(self.pitch)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5086, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_dst_ValueError); __Pyx_GIVEREF(__pyx_kp_u_dst_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_dst_ValueError)) __PYX_ERR(0, 5086, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5086, __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/cudart.pyx":5083 * if self._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/cudart.pyx":5087 * except ValueError: * str_list += ['dst : '] * 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/cudart.pyx":5088 * str_list += ['dst : '] * try: * str_list += ['pitch : ' + str(self.pitch)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['pitch : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_pitch_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5088, __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, 5088, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_pitch, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5088, __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, 5088, __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)) __PYX_ERR(0, 5088, __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, 5088, __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/cudart.pyx":5087 * except ValueError: * str_list += ['dst : '] * 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/cudart.pyx":5089 * try: * str_list += ['pitch : ' + str(self.pitch)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['pitch : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemsetParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 5089, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":5090 * str_list += ['pitch : ' + str(self.pitch)] * except ValueError: * str_list += ['pitch : '] # <<<<<<<<<<<<<< * try: * str_list += ['value : ' + str(self.value)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5090, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_pitch_ValueError); __Pyx_GIVEREF(__pyx_kp_u_pitch_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_pitch_ValueError)) __PYX_ERR(0, 5090, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5090, __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/cudart.pyx":5087 * except ValueError: * str_list += ['dst : '] * 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/cudart.pyx":5091 * except ValueError: * str_list += ['pitch : '] * 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/cudart.pyx":5092 * str_list += ['pitch : '] * try: * str_list += ['value : ' + str(self.value)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['value : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5092, __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, 5092, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_value_2, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5092, __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, 5092, __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)) __PYX_ERR(0, 5092, __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, 5092, __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/cudart.pyx":5091 * except ValueError: * str_list += ['pitch : '] * 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/cudart.pyx":5093 * try: * str_list += ['value : ' + str(self.value)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['value : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemsetParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 5093, __pyx_L22_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":5094 * str_list += ['value : ' + str(self.value)] * except ValueError: * str_list += ['value : '] # <<<<<<<<<<<<<< * try: * str_list += ['elementSize : ' + str(self.elementSize)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5094, __pyx_L22_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_value_ValueError); __Pyx_GIVEREF(__pyx_kp_u_value_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_value_ValueError)) __PYX_ERR(0, 5094, __pyx_L22_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5094, __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/cudart.pyx":5091 * except ValueError: * str_list += ['pitch : '] * 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/cudart.pyx":5095 * except ValueError: * str_list += ['value : '] * 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/cudart.pyx":5096 * str_list += ['value : '] * try: * str_list += ['elementSize : ' + str(self.elementSize)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['elementSize : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_elementSize_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5096, __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, 5096, __pyx_L28_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_elementSize, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5096, __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, 5096, __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)) __PYX_ERR(0, 5096, __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, 5096, __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/cudart.pyx":5095 * except ValueError: * str_list += ['value : '] * 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/cudart.pyx":5097 * try: * str_list += ['elementSize : ' + str(self.elementSize)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['elementSize : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemsetParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 5097, __pyx_L30_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":5098 * str_list += ['elementSize : ' + str(self.elementSize)] * except ValueError: * str_list += ['elementSize : '] # <<<<<<<<<<<<<< * try: * str_list += ['width : ' + str(self.width)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5098, __pyx_L30_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_elementSize_ValueError); __Pyx_GIVEREF(__pyx_kp_u_elementSize_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_elementSize_ValueError)) __PYX_ERR(0, 5098, __pyx_L30_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5098, __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/cudart.pyx":5095 * except ValueError: * str_list += ['value : '] * 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/cudart.pyx":5099 * except ValueError: * str_list += ['elementSize : '] * 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/cudart.pyx":5100 * str_list += ['elementSize : '] * try: * str_list += ['width : ' + str(self.width)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['width : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_width_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5100, __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, 5100, __pyx_L36_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_width, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5100, __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, 5100, __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)) __PYX_ERR(0, 5100, __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, 5100, __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/cudart.pyx":5099 * except ValueError: * str_list += ['elementSize : '] * 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/cudart.pyx":5101 * try: * str_list += ['width : ' + str(self.width)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['width : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemsetParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 5101, __pyx_L38_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":5102 * str_list += ['width : ' + str(self.width)] * except ValueError: * str_list += ['width : '] # <<<<<<<<<<<<<< * try: * str_list += ['height : ' + str(self.height)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5102, __pyx_L38_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_width_ValueError); __Pyx_GIVEREF(__pyx_kp_u_width_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_width_ValueError)) __PYX_ERR(0, 5102, __pyx_L38_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5102, __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/cudart.pyx":5099 * except ValueError: * str_list += ['elementSize : '] * 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/cudart.pyx":5103 * except ValueError: * str_list += ['width : '] * 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/cudart.pyx":5104 * str_list += ['width : '] * try: * str_list += ['height : ' + str(self.height)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['height : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_height_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5104, __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, 5104, __pyx_L44_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_height, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5104, __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, 5104, __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)) __PYX_ERR(0, 5104, __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, 5104, __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/cudart.pyx":5103 * except ValueError: * str_list += ['width : '] * 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/cudart.pyx":5105 * try: * str_list += ['height : ' + str(self.height)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['height : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemsetParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 5105, __pyx_L46_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":5106 * str_list += ['height : ' + str(self.height)] * except ValueError: * str_list += ['height : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5106, __pyx_L46_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_height_ValueError); __Pyx_GIVEREF(__pyx_kp_u_height_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_height_ValueError)) __PYX_ERR(0, 5106, __pyx_L46_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5106, __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/cudart.pyx":5103 * except ValueError: * str_list += ['width : '] * 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/cudart.pyx":5107 * except ValueError: * str_list += ['height : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5107, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5081 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":5109 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def dst(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":5080 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaMemsetParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5110 * else: * return '' * @property # <<<<<<<<<<<<<< * def dst(self): * return self._ptr[0].dst */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_16cudaMemsetParams_3dst_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_16cudaMemsetParams_3dst___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_16cudaMemsetParams_3dst___get__(struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5110, 0, __PYX_ERR(0, 5110, __pyx_L1_error)); /* "cuda/cudart.pyx":5112 * @property * def dst(self): * return self._ptr[0].dst # <<<<<<<<<<<<<< * @dst.setter * def dst(self, dst): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).dst)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5112, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5110 * else: * return '' * @property # <<<<<<<<<<<<<< * def dst(self): * return self._ptr[0].dst */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemsetParams.dst.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5113 * def dst(self): * return self._ptr[0].dst * @dst.setter # <<<<<<<<<<<<<< * def dst(self, dst): * _cdst = utils.HelperInputVoidPtr(dst) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_16cudaMemsetParams_3dst_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dst); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_16cudaMemsetParams_3dst_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *)__pyx_v_self), ((PyObject *)__pyx_v_dst)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_16cudaMemsetParams_3dst_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *__pyx_v_self, PyObject *__pyx_v_dst) { PyObject *__pyx_v__cdst = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 5113, 0, __PYX_ERR(0, 5113, __pyx_L1_error)); /* "cuda/cudart.pyx":5115 * @dst.setter * def dst(self, dst): * _cdst = utils.HelperInputVoidPtr(dst) # <<<<<<<<<<<<<< * self._ptr[0].dst = _cdst.cptr * @property */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_dst); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5115, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__cdst = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":5116 * def dst(self, dst): * _cdst = utils.HelperInputVoidPtr(dst) * self._ptr[0].dst = _cdst.cptr # <<<<<<<<<<<<<< * @property * def pitch(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v__cdst, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5116, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5116, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).dst = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":5113 * def dst(self): * return self._ptr[0].dst * @dst.setter # <<<<<<<<<<<<<< * def dst(self, dst): * _cdst = utils.HelperInputVoidPtr(dst) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemsetParams.dst.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v__cdst); __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5117 * _cdst = utils.HelperInputVoidPtr(dst) * self._ptr[0].dst = _cdst.cptr * @property # <<<<<<<<<<<<<< * def pitch(self): * return self._ptr[0].pitch */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_16cudaMemsetParams_5pitch_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_16cudaMemsetParams_5pitch___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_16cudaMemsetParams_5pitch___get__(struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5117, 0, __PYX_ERR(0, 5117, __pyx_L1_error)); /* "cuda/cudart.pyx":5119 * @property * def pitch(self): * return self._ptr[0].pitch # <<<<<<<<<<<<<< * @pitch.setter * def pitch(self, size_t pitch): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).pitch); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5119, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5117 * _cdst = utils.HelperInputVoidPtr(dst) * self._ptr[0].dst = _cdst.cptr * @property # <<<<<<<<<<<<<< * def pitch(self): * return self._ptr[0].pitch */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemsetParams.pitch.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5120 * def pitch(self): * return self._ptr[0].pitch * @pitch.setter # <<<<<<<<<<<<<< * def pitch(self, size_t pitch): * self._ptr[0].pitch = pitch */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_16cudaMemsetParams_5pitch_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_pitch); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_pitch); if (unlikely((__pyx_v_pitch == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 5121, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemsetParams.pitch.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_16cudaMemsetParams_5pitch_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *)__pyx_v_self), ((size_t)__pyx_v_pitch)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_16cudaMemsetParams_5pitch_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *__pyx_v_self, size_t __pyx_v_pitch) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 5120, 0, __PYX_ERR(0, 5120, __pyx_L1_error)); /* "cuda/cudart.pyx":5122 * @pitch.setter * def pitch(self, size_t pitch): * self._ptr[0].pitch = pitch # <<<<<<<<<<<<<< * @property * def value(self): */ (__pyx_v_self->_ptr[0]).pitch = __pyx_v_pitch; /* "cuda/cudart.pyx":5120 * def pitch(self): * return self._ptr[0].pitch * @pitch.setter # <<<<<<<<<<<<<< * def pitch(self, size_t pitch): * self._ptr[0].pitch = pitch */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemsetParams.pitch.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":5123 * def pitch(self, size_t pitch): * self._ptr[0].pitch = pitch * @property # <<<<<<<<<<<<<< * def value(self): * return self._ptr[0].value */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_16cudaMemsetParams_5value_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_16cudaMemsetParams_5value___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_16cudaMemsetParams_5value___get__(struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5123, 0, __PYX_ERR(0, 5123, __pyx_L1_error)); /* "cuda/cudart.pyx":5125 * @property * def value(self): * return self._ptr[0].value # <<<<<<<<<<<<<< * @value.setter * def value(self, unsigned int value): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5125, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5123 * def pitch(self, size_t pitch): * self._ptr[0].pitch = pitch * @property # <<<<<<<<<<<<<< * def value(self): * return self._ptr[0].value */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemsetParams.value.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5126 * def value(self): * return self._ptr[0].value * @value.setter # <<<<<<<<<<<<<< * def value(self, unsigned int value): * self._ptr[0].value = value */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_16cudaMemsetParams_5value_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_value); if (unlikely((__pyx_v_value == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5127, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemsetParams.value.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_16cudaMemsetParams_5value_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *)__pyx_v_self), ((unsigned int)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_16cudaMemsetParams_5value_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *__pyx_v_self, unsigned int __pyx_v_value) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 5126, 0, __PYX_ERR(0, 5126, __pyx_L1_error)); /* "cuda/cudart.pyx":5128 * @value.setter * def value(self, unsigned int value): * self._ptr[0].value = value # <<<<<<<<<<<<<< * @property * def elementSize(self): */ (__pyx_v_self->_ptr[0]).value = __pyx_v_value; /* "cuda/cudart.pyx":5126 * def value(self): * return self._ptr[0].value * @value.setter # <<<<<<<<<<<<<< * def value(self, unsigned int value): * self._ptr[0].value = value */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemsetParams.value.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":5129 * def value(self, unsigned int value): * self._ptr[0].value = value * @property # <<<<<<<<<<<<<< * def elementSize(self): * return self._ptr[0].elementSize */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_16cudaMemsetParams_11elementSize_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_16cudaMemsetParams_11elementSize___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_16cudaMemsetParams_11elementSize___get__(struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5129, 0, __PYX_ERR(0, 5129, __pyx_L1_error)); /* "cuda/cudart.pyx":5131 * @property * def elementSize(self): * return self._ptr[0].elementSize # <<<<<<<<<<<<<< * @elementSize.setter * def elementSize(self, unsigned int elementSize): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).elementSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5129 * def value(self, unsigned int value): * self._ptr[0].value = value * @property # <<<<<<<<<<<<<< * def elementSize(self): * return self._ptr[0].elementSize */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemsetParams.elementSize.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5132 * def elementSize(self): * return self._ptr[0].elementSize * @elementSize.setter # <<<<<<<<<<<<<< * def elementSize(self, unsigned int elementSize): * self._ptr[0].elementSize = elementSize */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_16cudaMemsetParams_11elementSize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_elementSize); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_elementSize); if (unlikely((__pyx_v_elementSize == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5133, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemsetParams.elementSize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_16cudaMemsetParams_11elementSize_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *)__pyx_v_self), ((unsigned int)__pyx_v_elementSize)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_16cudaMemsetParams_11elementSize_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *__pyx_v_self, unsigned int __pyx_v_elementSize) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 5132, 0, __PYX_ERR(0, 5132, __pyx_L1_error)); /* "cuda/cudart.pyx":5134 * @elementSize.setter * def elementSize(self, unsigned int elementSize): * self._ptr[0].elementSize = elementSize # <<<<<<<<<<<<<< * @property * def width(self): */ (__pyx_v_self->_ptr[0]).elementSize = __pyx_v_elementSize; /* "cuda/cudart.pyx":5132 * def elementSize(self): * return self._ptr[0].elementSize * @elementSize.setter # <<<<<<<<<<<<<< * def elementSize(self, unsigned int elementSize): * self._ptr[0].elementSize = elementSize */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemsetParams.elementSize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":5135 * def elementSize(self, unsigned int elementSize): * self._ptr[0].elementSize = elementSize * @property # <<<<<<<<<<<<<< * def width(self): * return self._ptr[0].width */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_16cudaMemsetParams_5width_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_16cudaMemsetParams_5width___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_16cudaMemsetParams_5width___get__(struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5135, 0, __PYX_ERR(0, 5135, __pyx_L1_error)); /* "cuda/cudart.pyx":5137 * @property * def width(self): * return self._ptr[0].width # <<<<<<<<<<<<<< * @width.setter * def width(self, size_t width): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).width); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5137, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5135 * def elementSize(self, unsigned int elementSize): * self._ptr[0].elementSize = elementSize * @property # <<<<<<<<<<<<<< * def width(self): * return self._ptr[0].width */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemsetParams.width.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5138 * def width(self): * return self._ptr[0].width * @width.setter # <<<<<<<<<<<<<< * def width(self, size_t width): * self._ptr[0].width = width */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_16cudaMemsetParams_5width_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_width); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_width); if (unlikely((__pyx_v_width == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 5139, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemsetParams.width.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_16cudaMemsetParams_5width_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *)__pyx_v_self), ((size_t)__pyx_v_width)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_16cudaMemsetParams_5width_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *__pyx_v_self, size_t __pyx_v_width) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 5138, 0, __PYX_ERR(0, 5138, __pyx_L1_error)); /* "cuda/cudart.pyx":5140 * @width.setter * def width(self, size_t width): * self._ptr[0].width = width # <<<<<<<<<<<<<< * @property * def height(self): */ (__pyx_v_self->_ptr[0]).width = __pyx_v_width; /* "cuda/cudart.pyx":5138 * def width(self): * return self._ptr[0].width * @width.setter # <<<<<<<<<<<<<< * def width(self, size_t width): * self._ptr[0].width = width */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemsetParams.width.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":5141 * def width(self, size_t width): * self._ptr[0].width = width * @property # <<<<<<<<<<<<<< * def height(self): * return self._ptr[0].height */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_16cudaMemsetParams_6height_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_16cudaMemsetParams_6height___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_16cudaMemsetParams_6height___get__(struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5141, 0, __PYX_ERR(0, 5141, __pyx_L1_error)); /* "cuda/cudart.pyx":5143 * @property * def height(self): * return self._ptr[0].height # <<<<<<<<<<<<<< * @height.setter * def height(self, size_t height): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).height); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5143, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5141 * def width(self, size_t width): * self._ptr[0].width = width * @property # <<<<<<<<<<<<<< * def height(self): * return self._ptr[0].height */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemsetParams.height.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5144 * def height(self): * return self._ptr[0].height * @height.setter # <<<<<<<<<<<<<< * def height(self, size_t height): * self._ptr[0].height = height */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_16cudaMemsetParams_6height_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_height); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_height); if (unlikely((__pyx_v_height == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 5145, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemsetParams.height.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_16cudaMemsetParams_6height_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *)__pyx_v_self), ((size_t)__pyx_v_height)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_16cudaMemsetParams_6height_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *__pyx_v_self, size_t __pyx_v_height) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 5144, 0, __PYX_ERR(0, 5144, __pyx_L1_error)); /* "cuda/cudart.pyx":5146 * @height.setter * def height(self, size_t height): * self._ptr[0].height = height # <<<<<<<<<<<<<< * * cdef class cudaMemsetParamsV2: */ (__pyx_v_self->_ptr[0]).height = __pyx_v_height; /* "cuda/cudart.pyx":5144 * def height(self): * return self._ptr[0].height * @height.setter # <<<<<<<<<<<<<< * def height(self, size_t height): * self._ptr[0].height = height */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemsetParams.height.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_16cudaMemsetParams_10__reduce_cython__, "cudaMemsetParams.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_16cudaMemsetParams_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_16cudaMemsetParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_16cudaMemsetParams_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_16cudaMemsetParams_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_16cudaMemsetParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__87) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaMemsetParams.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_16cudaMemsetParams_12__setstate_cython__, "cudaMemsetParams.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_16cudaMemsetParams_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_16cudaMemsetParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_16cudaMemsetParams_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemsetParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_16cudaMemsetParams_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_16cudaMemsetParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__88) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaMemsetParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5173 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 5173, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 5173, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5173, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 5173, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemsetParamsV2.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_18cudaMemsetParamsV2___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_18cudaMemsetParamsV2___cinit__(struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 5173, 0, __PYX_ERR(0, 5173, __pyx_L1_error)); /* "cuda/cudart.pyx":5174 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":5175 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaMemsetParamsV2__val); /* "cuda/cudart.pyx":5174 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":5177 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * pass */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaMemsetParamsV2 *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":5173 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemsetParamsV2.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":5178 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 5178, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 5178, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5178, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 5178, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemsetParamsV2.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_18cudaMemsetParamsV2_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_18cudaMemsetParamsV2_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 5178, 0, __PYX_ERR(0, 5178, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemsetParamsV2.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":5180 * def __init__(self, void_ptr _ptr = 0): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_18cudaMemsetParamsV2_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_18cudaMemsetParamsV2_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 5180, 0, __PYX_ERR(0, 5180, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaMemsetParamsV2.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":5182 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_18cudaMemsetParamsV2_6getPtr, "cudaMemsetParamsV2.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_18cudaMemsetParamsV2_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_18cudaMemsetParamsV2_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_18cudaMemsetParamsV2_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_18cudaMemsetParamsV2_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__89) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 5182, 0, __PYX_ERR(0, 5182, __pyx_L1_error)); /* "cuda/cudart.pyx":5183 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5183, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5182 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemsetParamsV2.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5184 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_18cudaMemsetParamsV2_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_18cudaMemsetParamsV2_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 5184, 0, __PYX_ERR(0, 5184, __pyx_L1_error)); /* "cuda/cudart.pyx":5185 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":5186 * def __repr__(self): * if self._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, 5186, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":5187 * if self._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/cudart.pyx":5188 * str_list = [] * try: * str_list += ['dst : ' + hex(self.dst)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['dst : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_dst_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5188, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5188, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_kp_u_dst, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5188, __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, 5188, __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)) __PYX_ERR(0, 5188, __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, 5188, __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/cudart.pyx":5187 * if self._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/cudart.pyx":5189 * try: * str_list += ['dst : ' + hex(self.dst)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['dst : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemsetParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 5189, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":5190 * str_list += ['dst : ' + hex(self.dst)] * except ValueError: * str_list += ['dst : '] # <<<<<<<<<<<<<< * try: * str_list += ['pitch : ' + str(self.pitch)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5190, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_dst_ValueError); __Pyx_GIVEREF(__pyx_kp_u_dst_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_dst_ValueError)) __PYX_ERR(0, 5190, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5190, __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/cudart.pyx":5187 * if self._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/cudart.pyx":5191 * except ValueError: * str_list += ['dst : '] * 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/cudart.pyx":5192 * str_list += ['dst : '] * try: * str_list += ['pitch : ' + str(self.pitch)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['pitch : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_pitch_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5192, __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, 5192, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_pitch, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5192, __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, 5192, __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)) __PYX_ERR(0, 5192, __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, 5192, __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/cudart.pyx":5191 * except ValueError: * str_list += ['dst : '] * 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/cudart.pyx":5193 * try: * str_list += ['pitch : ' + str(self.pitch)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['pitch : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemsetParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 5193, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":5194 * str_list += ['pitch : ' + str(self.pitch)] * except ValueError: * str_list += ['pitch : '] # <<<<<<<<<<<<<< * try: * str_list += ['value : ' + str(self.value)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5194, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_pitch_ValueError); __Pyx_GIVEREF(__pyx_kp_u_pitch_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_pitch_ValueError)) __PYX_ERR(0, 5194, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5194, __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/cudart.pyx":5191 * except ValueError: * str_list += ['dst : '] * 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/cudart.pyx":5195 * except ValueError: * str_list += ['pitch : '] * 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/cudart.pyx":5196 * str_list += ['pitch : '] * try: * str_list += ['value : ' + str(self.value)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['value : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5196, __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, 5196, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_value_2, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5196, __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, 5196, __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)) __PYX_ERR(0, 5196, __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, 5196, __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/cudart.pyx":5195 * except ValueError: * str_list += ['pitch : '] * 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/cudart.pyx":5197 * try: * str_list += ['value : ' + str(self.value)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['value : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemsetParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 5197, __pyx_L22_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":5198 * str_list += ['value : ' + str(self.value)] * except ValueError: * str_list += ['value : '] # <<<<<<<<<<<<<< * try: * str_list += ['elementSize : ' + str(self.elementSize)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5198, __pyx_L22_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_value_ValueError); __Pyx_GIVEREF(__pyx_kp_u_value_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_value_ValueError)) __PYX_ERR(0, 5198, __pyx_L22_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5198, __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/cudart.pyx":5195 * except ValueError: * str_list += ['pitch : '] * 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/cudart.pyx":5199 * except ValueError: * str_list += ['value : '] * 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/cudart.pyx":5200 * str_list += ['value : '] * try: * str_list += ['elementSize : ' + str(self.elementSize)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['elementSize : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_elementSize_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5200, __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, 5200, __pyx_L28_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_elementSize, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5200, __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, 5200, __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)) __PYX_ERR(0, 5200, __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, 5200, __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/cudart.pyx":5199 * except ValueError: * str_list += ['value : '] * 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/cudart.pyx":5201 * try: * str_list += ['elementSize : ' + str(self.elementSize)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['elementSize : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemsetParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 5201, __pyx_L30_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":5202 * str_list += ['elementSize : ' + str(self.elementSize)] * except ValueError: * str_list += ['elementSize : '] # <<<<<<<<<<<<<< * try: * str_list += ['width : ' + str(self.width)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5202, __pyx_L30_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_elementSize_ValueError); __Pyx_GIVEREF(__pyx_kp_u_elementSize_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_elementSize_ValueError)) __PYX_ERR(0, 5202, __pyx_L30_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5202, __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/cudart.pyx":5199 * except ValueError: * str_list += ['value : '] * 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/cudart.pyx":5203 * except ValueError: * str_list += ['elementSize : '] * 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/cudart.pyx":5204 * str_list += ['elementSize : '] * try: * str_list += ['width : ' + str(self.width)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['width : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_width_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5204, __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, 5204, __pyx_L36_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_width, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5204, __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, 5204, __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)) __PYX_ERR(0, 5204, __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, 5204, __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/cudart.pyx":5203 * except ValueError: * str_list += ['elementSize : '] * 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/cudart.pyx":5205 * try: * str_list += ['width : ' + str(self.width)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['width : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemsetParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 5205, __pyx_L38_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":5206 * str_list += ['width : ' + str(self.width)] * except ValueError: * str_list += ['width : '] # <<<<<<<<<<<<<< * try: * str_list += ['height : ' + str(self.height)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5206, __pyx_L38_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_width_ValueError); __Pyx_GIVEREF(__pyx_kp_u_width_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_width_ValueError)) __PYX_ERR(0, 5206, __pyx_L38_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5206, __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/cudart.pyx":5203 * except ValueError: * str_list += ['elementSize : '] * 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/cudart.pyx":5207 * except ValueError: * str_list += ['width : '] * 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/cudart.pyx":5208 * str_list += ['width : '] * try: * str_list += ['height : ' + str(self.height)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['height : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_height_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5208, __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, 5208, __pyx_L44_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_height, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5208, __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, 5208, __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)) __PYX_ERR(0, 5208, __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, 5208, __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/cudart.pyx":5207 * except ValueError: * str_list += ['width : '] * 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/cudart.pyx":5209 * try: * str_list += ['height : ' + str(self.height)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['height : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemsetParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 5209, __pyx_L46_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":5210 * str_list += ['height : ' + str(self.height)] * except ValueError: * str_list += ['height : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5210, __pyx_L46_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_height_ValueError); __Pyx_GIVEREF(__pyx_kp_u_height_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_height_ValueError)) __PYX_ERR(0, 5210, __pyx_L46_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5210, __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/cudart.pyx":5207 * except ValueError: * str_list += ['width : '] * 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/cudart.pyx":5211 * except ValueError: * str_list += ['height : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5211, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5185 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":5213 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def dst(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":5184 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaMemsetParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5214 * else: * return '' * @property # <<<<<<<<<<<<<< * def dst(self): * return self._ptr[0].dst */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_3dst_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_18cudaMemsetParamsV2_3dst___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_18cudaMemsetParamsV2_3dst___get__(struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5214, 0, __PYX_ERR(0, 5214, __pyx_L1_error)); /* "cuda/cudart.pyx":5216 * @property * def dst(self): * return self._ptr[0].dst # <<<<<<<<<<<<<< * @dst.setter * def dst(self, dst): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).dst)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5216, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5214 * else: * return '' * @property # <<<<<<<<<<<<<< * def dst(self): * return self._ptr[0].dst */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemsetParamsV2.dst.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5217 * def dst(self): * return self._ptr[0].dst * @dst.setter # <<<<<<<<<<<<<< * def dst(self, dst): * _cdst = utils.HelperInputVoidPtr(dst) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_3dst_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dst); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_18cudaMemsetParamsV2_3dst_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *)__pyx_v_self), ((PyObject *)__pyx_v_dst)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_18cudaMemsetParamsV2_3dst_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *__pyx_v_self, PyObject *__pyx_v_dst) { PyObject *__pyx_v__cdst = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 5217, 0, __PYX_ERR(0, 5217, __pyx_L1_error)); /* "cuda/cudart.pyx":5219 * @dst.setter * def dst(self, dst): * _cdst = utils.HelperInputVoidPtr(dst) # <<<<<<<<<<<<<< * self._ptr[0].dst = _cdst.cptr * @property */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_dst); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__cdst = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":5220 * def dst(self, dst): * _cdst = utils.HelperInputVoidPtr(dst) * self._ptr[0].dst = _cdst.cptr # <<<<<<<<<<<<<< * @property * def pitch(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v__cdst, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5220, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5220, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).dst = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":5217 * def dst(self): * return self._ptr[0].dst * @dst.setter # <<<<<<<<<<<<<< * def dst(self, dst): * _cdst = utils.HelperInputVoidPtr(dst) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemsetParamsV2.dst.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v__cdst); __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5221 * _cdst = utils.HelperInputVoidPtr(dst) * self._ptr[0].dst = _cdst.cptr * @property # <<<<<<<<<<<<<< * def pitch(self): * return self._ptr[0].pitch */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_5pitch_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_18cudaMemsetParamsV2_5pitch___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_18cudaMemsetParamsV2_5pitch___get__(struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5221, 0, __PYX_ERR(0, 5221, __pyx_L1_error)); /* "cuda/cudart.pyx":5223 * @property * def pitch(self): * return self._ptr[0].pitch # <<<<<<<<<<<<<< * @pitch.setter * def pitch(self, size_t pitch): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).pitch); 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/cudart.pyx":5221 * _cdst = utils.HelperInputVoidPtr(dst) * self._ptr[0].dst = _cdst.cptr * @property # <<<<<<<<<<<<<< * def pitch(self): * return self._ptr[0].pitch */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemsetParamsV2.pitch.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5224 * def pitch(self): * return self._ptr[0].pitch * @pitch.setter # <<<<<<<<<<<<<< * def pitch(self, size_t pitch): * self._ptr[0].pitch = pitch */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_5pitch_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_pitch); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_pitch); if (unlikely((__pyx_v_pitch == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 5225, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemsetParamsV2.pitch.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_18cudaMemsetParamsV2_5pitch_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *)__pyx_v_self), ((size_t)__pyx_v_pitch)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_18cudaMemsetParamsV2_5pitch_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *__pyx_v_self, size_t __pyx_v_pitch) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 5224, 0, __PYX_ERR(0, 5224, __pyx_L1_error)); /* "cuda/cudart.pyx":5226 * @pitch.setter * def pitch(self, size_t pitch): * self._ptr[0].pitch = pitch # <<<<<<<<<<<<<< * @property * def value(self): */ (__pyx_v_self->_ptr[0]).pitch = __pyx_v_pitch; /* "cuda/cudart.pyx":5224 * def pitch(self): * return self._ptr[0].pitch * @pitch.setter # <<<<<<<<<<<<<< * def pitch(self, size_t pitch): * self._ptr[0].pitch = pitch */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemsetParamsV2.pitch.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":5227 * def pitch(self, size_t pitch): * self._ptr[0].pitch = pitch * @property # <<<<<<<<<<<<<< * def value(self): * return self._ptr[0].value */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_5value_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_18cudaMemsetParamsV2_5value___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_18cudaMemsetParamsV2_5value___get__(struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5227, 0, __PYX_ERR(0, 5227, __pyx_L1_error)); /* "cuda/cudart.pyx":5229 * @property * def value(self): * return self._ptr[0].value # <<<<<<<<<<<<<< * @value.setter * def value(self, unsigned int value): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5227 * def pitch(self, size_t pitch): * self._ptr[0].pitch = pitch * @property # <<<<<<<<<<<<<< * def value(self): * return self._ptr[0].value */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemsetParamsV2.value.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5230 * def value(self): * return self._ptr[0].value * @value.setter # <<<<<<<<<<<<<< * def value(self, unsigned int value): * self._ptr[0].value = value */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_5value_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_value); if (unlikely((__pyx_v_value == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5231, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemsetParamsV2.value.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_18cudaMemsetParamsV2_5value_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *)__pyx_v_self), ((unsigned int)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_18cudaMemsetParamsV2_5value_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *__pyx_v_self, unsigned int __pyx_v_value) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 5230, 0, __PYX_ERR(0, 5230, __pyx_L1_error)); /* "cuda/cudart.pyx":5232 * @value.setter * def value(self, unsigned int value): * self._ptr[0].value = value # <<<<<<<<<<<<<< * @property * def elementSize(self): */ (__pyx_v_self->_ptr[0]).value = __pyx_v_value; /* "cuda/cudart.pyx":5230 * def value(self): * return self._ptr[0].value * @value.setter # <<<<<<<<<<<<<< * def value(self, unsigned int value): * self._ptr[0].value = value */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemsetParamsV2.value.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":5233 * def value(self, unsigned int value): * self._ptr[0].value = value * @property # <<<<<<<<<<<<<< * def elementSize(self): * return self._ptr[0].elementSize */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_11elementSize_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_18cudaMemsetParamsV2_11elementSize___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_18cudaMemsetParamsV2_11elementSize___get__(struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5233, 0, __PYX_ERR(0, 5233, __pyx_L1_error)); /* "cuda/cudart.pyx":5235 * @property * def elementSize(self): * return self._ptr[0].elementSize # <<<<<<<<<<<<<< * @elementSize.setter * def elementSize(self, unsigned int elementSize): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).elementSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5233 * def value(self, unsigned int value): * self._ptr[0].value = value * @property # <<<<<<<<<<<<<< * def elementSize(self): * return self._ptr[0].elementSize */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemsetParamsV2.elementSize.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5236 * def elementSize(self): * return self._ptr[0].elementSize * @elementSize.setter # <<<<<<<<<<<<<< * def elementSize(self, unsigned int elementSize): * self._ptr[0].elementSize = elementSize */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_11elementSize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_elementSize); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_elementSize); if (unlikely((__pyx_v_elementSize == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5237, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemsetParamsV2.elementSize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_18cudaMemsetParamsV2_11elementSize_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *)__pyx_v_self), ((unsigned int)__pyx_v_elementSize)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_18cudaMemsetParamsV2_11elementSize_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *__pyx_v_self, unsigned int __pyx_v_elementSize) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 5236, 0, __PYX_ERR(0, 5236, __pyx_L1_error)); /* "cuda/cudart.pyx":5238 * @elementSize.setter * def elementSize(self, unsigned int elementSize): * self._ptr[0].elementSize = elementSize # <<<<<<<<<<<<<< * @property * def width(self): */ (__pyx_v_self->_ptr[0]).elementSize = __pyx_v_elementSize; /* "cuda/cudart.pyx":5236 * def elementSize(self): * return self._ptr[0].elementSize * @elementSize.setter # <<<<<<<<<<<<<< * def elementSize(self, unsigned int elementSize): * self._ptr[0].elementSize = elementSize */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemsetParamsV2.elementSize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":5239 * def elementSize(self, unsigned int elementSize): * self._ptr[0].elementSize = elementSize * @property # <<<<<<<<<<<<<< * def width(self): * return self._ptr[0].width */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_5width_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_18cudaMemsetParamsV2_5width___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_18cudaMemsetParamsV2_5width___get__(struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5239, 0, __PYX_ERR(0, 5239, __pyx_L1_error)); /* "cuda/cudart.pyx":5241 * @property * def width(self): * return self._ptr[0].width # <<<<<<<<<<<<<< * @width.setter * def width(self, size_t width): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).width); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5241, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5239 * def elementSize(self, unsigned int elementSize): * self._ptr[0].elementSize = elementSize * @property # <<<<<<<<<<<<<< * def width(self): * return self._ptr[0].width */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemsetParamsV2.width.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5242 * def width(self): * return self._ptr[0].width * @width.setter # <<<<<<<<<<<<<< * def width(self, size_t width): * self._ptr[0].width = width */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_5width_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_width); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_width); if (unlikely((__pyx_v_width == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 5243, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemsetParamsV2.width.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_18cudaMemsetParamsV2_5width_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *)__pyx_v_self), ((size_t)__pyx_v_width)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_18cudaMemsetParamsV2_5width_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *__pyx_v_self, size_t __pyx_v_width) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 5242, 0, __PYX_ERR(0, 5242, __pyx_L1_error)); /* "cuda/cudart.pyx":5244 * @width.setter * def width(self, size_t width): * self._ptr[0].width = width # <<<<<<<<<<<<<< * @property * def height(self): */ (__pyx_v_self->_ptr[0]).width = __pyx_v_width; /* "cuda/cudart.pyx":5242 * def width(self): * return self._ptr[0].width * @width.setter # <<<<<<<<<<<<<< * def width(self, size_t width): * self._ptr[0].width = width */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemsetParamsV2.width.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":5245 * def width(self, size_t width): * self._ptr[0].width = width * @property # <<<<<<<<<<<<<< * def height(self): * return self._ptr[0].height */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_6height_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_18cudaMemsetParamsV2_6height___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_18cudaMemsetParamsV2_6height___get__(struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5245, 0, __PYX_ERR(0, 5245, __pyx_L1_error)); /* "cuda/cudart.pyx":5247 * @property * def height(self): * return self._ptr[0].height # <<<<<<<<<<<<<< * @height.setter * def height(self, size_t height): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).height); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5247, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5245 * def width(self, size_t width): * self._ptr[0].width = width * @property # <<<<<<<<<<<<<< * def height(self): * return self._ptr[0].height */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemsetParamsV2.height.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5248 * def height(self): * return self._ptr[0].height * @height.setter # <<<<<<<<<<<<<< * def height(self, size_t height): * self._ptr[0].height = height */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_6height_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_height); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_height); if (unlikely((__pyx_v_height == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 5249, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemsetParamsV2.height.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_18cudaMemsetParamsV2_6height_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *)__pyx_v_self), ((size_t)__pyx_v_height)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_18cudaMemsetParamsV2_6height_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *__pyx_v_self, size_t __pyx_v_height) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 5248, 0, __PYX_ERR(0, 5248, __pyx_L1_error)); /* "cuda/cudart.pyx":5250 * @height.setter * def height(self, size_t height): * self._ptr[0].height = height # <<<<<<<<<<<<<< * * cdef class cudaAccessPolicyWindow: */ (__pyx_v_self->_ptr[0]).height = __pyx_v_height; /* "cuda/cudart.pyx":5248 * def height(self): * return self._ptr[0].height * @height.setter # <<<<<<<<<<<<<< * def height(self, size_t height): * self._ptr[0].height = height */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemsetParamsV2.height.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_18cudaMemsetParamsV2_10__reduce_cython__, "cudaMemsetParamsV2.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_18cudaMemsetParamsV2_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_18cudaMemsetParamsV2_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_18cudaMemsetParamsV2_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_18cudaMemsetParamsV2_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__90) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaMemsetParamsV2.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_18cudaMemsetParamsV2_12__setstate_cython__, "cudaMemsetParamsV2.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_18cudaMemsetParamsV2_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_18cudaMemsetParamsV2_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemsetParamsV2.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_18cudaMemsetParamsV2_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_18cudaMemsetParamsV2_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__91) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaMemsetParamsV2.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5286 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_22cudaAccessPolicyWindow_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_22cudaAccessPolicyWindow_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 5286, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 5286, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5286, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 5286, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaAccessPolicyWindow.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_22cudaAccessPolicyWindow___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_22cudaAccessPolicyWindow___cinit__(struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 5286, 0, __PYX_ERR(0, 5286, __pyx_L1_error)); /* "cuda/cudart.pyx":5287 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":5288 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaAccessPolicyWindow__val); /* "cuda/cudart.pyx":5287 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":5290 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * pass */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaAccessPolicyWindow *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":5286 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaAccessPolicyWindow.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":5291 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_22cudaAccessPolicyWindow_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_22cudaAccessPolicyWindow_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 5291, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 5291, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5291, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 5291, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaAccessPolicyWindow.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_22cudaAccessPolicyWindow_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_22cudaAccessPolicyWindow_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 5291, 0, __PYX_ERR(0, 5291, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaAccessPolicyWindow.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":5293 * def __init__(self, void_ptr _ptr = 0): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_22cudaAccessPolicyWindow_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_22cudaAccessPolicyWindow_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_22cudaAccessPolicyWindow_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 5293, 0, __PYX_ERR(0, 5293, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaAccessPolicyWindow.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":5295 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_22cudaAccessPolicyWindow_6getPtr, "cudaAccessPolicyWindow.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_22cudaAccessPolicyWindow_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_22cudaAccessPolicyWindow_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_22cudaAccessPolicyWindow_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_22cudaAccessPolicyWindow_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaAccessPolicyWindow_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__92) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 5295, 0, __PYX_ERR(0, 5295, __pyx_L1_error)); /* "cuda/cudart.pyx":5296 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5296, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5295 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaAccessPolicyWindow.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5297 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_22cudaAccessPolicyWindow_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_22cudaAccessPolicyWindow_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaAccessPolicyWindow_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 5297, 0, __PYX_ERR(0, 5297, __pyx_L1_error)); /* "cuda/cudart.pyx":5298 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":5299 * def __repr__(self): * if self._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, 5299, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":5300 * if self._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/cudart.pyx":5301 * str_list = [] * try: * str_list += ['base_ptr : ' + hex(self.base_ptr)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['base_ptr : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_base_ptr_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5301, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5301, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_kp_u_base_ptr, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5301, __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, 5301, __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)) __PYX_ERR(0, 5301, __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, 5301, __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/cudart.pyx":5300 * if self._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/cudart.pyx":5302 * try: * str_list += ['base_ptr : ' + hex(self.base_ptr)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['base_ptr : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaAccessPolicyWindow.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 5302, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":5303 * str_list += ['base_ptr : ' + hex(self.base_ptr)] * except ValueError: * str_list += ['base_ptr : '] # <<<<<<<<<<<<<< * try: * str_list += ['num_bytes : ' + str(self.num_bytes)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5303, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_base_ptr_ValueError); __Pyx_GIVEREF(__pyx_kp_u_base_ptr_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_base_ptr_ValueError)) __PYX_ERR(0, 5303, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5303, __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/cudart.pyx":5300 * if self._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/cudart.pyx":5304 * except ValueError: * str_list += ['base_ptr : '] * 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/cudart.pyx":5305 * str_list += ['base_ptr : '] * try: * str_list += ['num_bytes : ' + str(self.num_bytes)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['num_bytes : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_num_bytes_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5305, __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, 5305, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_num_bytes, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5305, __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, 5305, __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)) __PYX_ERR(0, 5305, __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, 5305, __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/cudart.pyx":5304 * except ValueError: * str_list += ['base_ptr : '] * 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/cudart.pyx":5306 * try: * str_list += ['num_bytes : ' + str(self.num_bytes)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['num_bytes : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaAccessPolicyWindow.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 5306, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":5307 * str_list += ['num_bytes : ' + str(self.num_bytes)] * except ValueError: * str_list += ['num_bytes : '] # <<<<<<<<<<<<<< * try: * str_list += ['hitRatio : ' + str(self.hitRatio)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5307, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_num_bytes_ValueError); __Pyx_GIVEREF(__pyx_kp_u_num_bytes_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_num_bytes_ValueError)) __PYX_ERR(0, 5307, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5307, __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/cudart.pyx":5304 * except ValueError: * str_list += ['base_ptr : '] * 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/cudart.pyx":5308 * except ValueError: * str_list += ['num_bytes : '] * 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/cudart.pyx":5309 * str_list += ['num_bytes : '] * try: * str_list += ['hitRatio : ' + str(self.hitRatio)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['hitRatio : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_hitRatio_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5309, __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, 5309, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_hitRatio, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5309, __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, 5309, __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)) __PYX_ERR(0, 5309, __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, 5309, __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/cudart.pyx":5308 * except ValueError: * str_list += ['num_bytes : '] * 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/cudart.pyx":5310 * try: * str_list += ['hitRatio : ' + str(self.hitRatio)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['hitRatio : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaAccessPolicyWindow.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 5310, __pyx_L22_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":5311 * str_list += ['hitRatio : ' + str(self.hitRatio)] * except ValueError: * str_list += ['hitRatio : '] # <<<<<<<<<<<<<< * try: * str_list += ['hitProp : ' + str(self.hitProp)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5311, __pyx_L22_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_hitRatio_ValueError); __Pyx_GIVEREF(__pyx_kp_u_hitRatio_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_hitRatio_ValueError)) __PYX_ERR(0, 5311, __pyx_L22_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5311, __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/cudart.pyx":5308 * except ValueError: * str_list += ['num_bytes : '] * 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/cudart.pyx":5312 * except ValueError: * str_list += ['hitRatio : '] * 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/cudart.pyx":5313 * str_list += ['hitRatio : '] * try: * str_list += ['hitProp : ' + str(self.hitProp)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['hitProp : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_hitProp_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5313, __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, 5313, __pyx_L28_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_hitProp, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5313, __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, 5313, __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)) __PYX_ERR(0, 5313, __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, 5313, __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/cudart.pyx":5312 * except ValueError: * str_list += ['hitRatio : '] * 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/cudart.pyx":5314 * try: * str_list += ['hitProp : ' + str(self.hitProp)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['hitProp : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaAccessPolicyWindow.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 5314, __pyx_L30_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":5315 * str_list += ['hitProp : ' + str(self.hitProp)] * except ValueError: * str_list += ['hitProp : '] # <<<<<<<<<<<<<< * try: * str_list += ['missProp : ' + str(self.missProp)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5315, __pyx_L30_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_hitProp_ValueError); __Pyx_GIVEREF(__pyx_kp_u_hitProp_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_hitProp_ValueError)) __PYX_ERR(0, 5315, __pyx_L30_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5315, __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/cudart.pyx":5312 * except ValueError: * str_list += ['hitRatio : '] * 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/cudart.pyx":5316 * except ValueError: * str_list += ['hitProp : '] * 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/cudart.pyx":5317 * str_list += ['hitProp : '] * try: * str_list += ['missProp : ' + str(self.missProp)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['missProp : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_missProp_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5317, __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, 5317, __pyx_L36_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_missProp, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5317, __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, 5317, __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)) __PYX_ERR(0, 5317, __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, 5317, __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/cudart.pyx":5316 * except ValueError: * str_list += ['hitProp : '] * 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/cudart.pyx":5318 * try: * str_list += ['missProp : ' + str(self.missProp)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['missProp : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaAccessPolicyWindow.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 5318, __pyx_L38_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":5319 * str_list += ['missProp : ' + str(self.missProp)] * except ValueError: * str_list += ['missProp : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5319, __pyx_L38_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_missProp_ValueError); __Pyx_GIVEREF(__pyx_kp_u_missProp_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_missProp_ValueError)) __PYX_ERR(0, 5319, __pyx_L38_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5319, __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/cudart.pyx":5316 * except ValueError: * str_list += ['hitProp : '] * 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/cudart.pyx":5320 * except ValueError: * str_list += ['missProp : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5320, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5298 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":5322 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def base_ptr(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":5297 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaAccessPolicyWindow.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5323 * else: * return '' * @property # <<<<<<<<<<<<<< * def base_ptr(self): * return self._ptr[0].base_ptr */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_22cudaAccessPolicyWindow_8base_ptr_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_22cudaAccessPolicyWindow_8base_ptr___get__(((struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaAccessPolicyWindow_8base_ptr___get__(struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5323, 0, __PYX_ERR(0, 5323, __pyx_L1_error)); /* "cuda/cudart.pyx":5325 * @property * def base_ptr(self): * return self._ptr[0].base_ptr # <<<<<<<<<<<<<< * @base_ptr.setter * def base_ptr(self, base_ptr): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).base_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5325, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5323 * else: * return '' * @property # <<<<<<<<<<<<<< * def base_ptr(self): * return self._ptr[0].base_ptr */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaAccessPolicyWindow.base_ptr.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5326 * def base_ptr(self): * return self._ptr[0].base_ptr * @base_ptr.setter # <<<<<<<<<<<<<< * def base_ptr(self, base_ptr): * _cbase_ptr = utils.HelperInputVoidPtr(base_ptr) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_22cudaAccessPolicyWindow_8base_ptr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_base_ptr); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_22cudaAccessPolicyWindow_8base_ptr_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *)__pyx_v_self), ((PyObject *)__pyx_v_base_ptr)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_22cudaAccessPolicyWindow_8base_ptr_2__set__(struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *__pyx_v_self, PyObject *__pyx_v_base_ptr) { PyObject *__pyx_v__cbase_ptr = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 5326, 0, __PYX_ERR(0, 5326, __pyx_L1_error)); /* "cuda/cudart.pyx":5328 * @base_ptr.setter * def base_ptr(self, base_ptr): * _cbase_ptr = utils.HelperInputVoidPtr(base_ptr) # <<<<<<<<<<<<<< * self._ptr[0].base_ptr = _cbase_ptr.cptr * @property */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_base_ptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5328, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__cbase_ptr = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":5329 * def base_ptr(self, base_ptr): * _cbase_ptr = utils.HelperInputVoidPtr(base_ptr) * self._ptr[0].base_ptr = _cbase_ptr.cptr # <<<<<<<<<<<<<< * @property * def num_bytes(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v__cbase_ptr, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5329, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5329, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).base_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":5326 * def base_ptr(self): * return self._ptr[0].base_ptr * @base_ptr.setter # <<<<<<<<<<<<<< * def base_ptr(self, base_ptr): * _cbase_ptr = utils.HelperInputVoidPtr(base_ptr) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaAccessPolicyWindow.base_ptr.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v__cbase_ptr); __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5330 * _cbase_ptr = utils.HelperInputVoidPtr(base_ptr) * self._ptr[0].base_ptr = _cbase_ptr.cptr * @property # <<<<<<<<<<<<<< * def num_bytes(self): * return self._ptr[0].num_bytes */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_22cudaAccessPolicyWindow_9num_bytes_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_22cudaAccessPolicyWindow_9num_bytes___get__(((struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaAccessPolicyWindow_9num_bytes___get__(struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5330, 0, __PYX_ERR(0, 5330, __pyx_L1_error)); /* "cuda/cudart.pyx":5332 * @property * def num_bytes(self): * return self._ptr[0].num_bytes # <<<<<<<<<<<<<< * @num_bytes.setter * def num_bytes(self, size_t num_bytes): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).num_bytes); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5332, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5330 * _cbase_ptr = utils.HelperInputVoidPtr(base_ptr) * self._ptr[0].base_ptr = _cbase_ptr.cptr * @property # <<<<<<<<<<<<<< * def num_bytes(self): * return self._ptr[0].num_bytes */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaAccessPolicyWindow.num_bytes.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5333 * def num_bytes(self): * return self._ptr[0].num_bytes * @num_bytes.setter # <<<<<<<<<<<<<< * def num_bytes(self, size_t num_bytes): * self._ptr[0].num_bytes = num_bytes */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_22cudaAccessPolicyWindow_9num_bytes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_num_bytes); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_num_bytes); if (unlikely((__pyx_v_num_bytes == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 5334, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaAccessPolicyWindow.num_bytes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_22cudaAccessPolicyWindow_9num_bytes_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *)__pyx_v_self), ((size_t)__pyx_v_num_bytes)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_22cudaAccessPolicyWindow_9num_bytes_2__set__(struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *__pyx_v_self, size_t __pyx_v_num_bytes) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 5333, 0, __PYX_ERR(0, 5333, __pyx_L1_error)); /* "cuda/cudart.pyx":5335 * @num_bytes.setter * def num_bytes(self, size_t num_bytes): * self._ptr[0].num_bytes = num_bytes # <<<<<<<<<<<<<< * @property * def hitRatio(self): */ (__pyx_v_self->_ptr[0]).num_bytes = __pyx_v_num_bytes; /* "cuda/cudart.pyx":5333 * def num_bytes(self): * return self._ptr[0].num_bytes * @num_bytes.setter # <<<<<<<<<<<<<< * def num_bytes(self, size_t num_bytes): * self._ptr[0].num_bytes = num_bytes */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaAccessPolicyWindow.num_bytes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":5336 * def num_bytes(self, size_t num_bytes): * self._ptr[0].num_bytes = num_bytes * @property # <<<<<<<<<<<<<< * def hitRatio(self): * return self._ptr[0].hitRatio */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_22cudaAccessPolicyWindow_8hitRatio_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_22cudaAccessPolicyWindow_8hitRatio___get__(((struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaAccessPolicyWindow_8hitRatio___get__(struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5336, 0, __PYX_ERR(0, 5336, __pyx_L1_error)); /* "cuda/cudart.pyx":5338 * @property * def hitRatio(self): * return self._ptr[0].hitRatio # <<<<<<<<<<<<<< * @hitRatio.setter * def hitRatio(self, float hitRatio): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble((__pyx_v_self->_ptr[0]).hitRatio); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5338, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5336 * def num_bytes(self, size_t num_bytes): * self._ptr[0].num_bytes = num_bytes * @property # <<<<<<<<<<<<<< * def hitRatio(self): * return self._ptr[0].hitRatio */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaAccessPolicyWindow.hitRatio.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5339 * def hitRatio(self): * return self._ptr[0].hitRatio * @hitRatio.setter # <<<<<<<<<<<<<< * def hitRatio(self, float hitRatio): * self._ptr[0].hitRatio = hitRatio */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_22cudaAccessPolicyWindow_8hitRatio_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_hitRatio); /*proto*/ static int __pyx_pw_4cuda_6cudart_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, 5340, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaAccessPolicyWindow.hitRatio.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_22cudaAccessPolicyWindow_8hitRatio_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *)__pyx_v_self), ((float)__pyx_v_hitRatio)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_22cudaAccessPolicyWindow_8hitRatio_2__set__(struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *__pyx_v_self, float __pyx_v_hitRatio) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 5339, 0, __PYX_ERR(0, 5339, __pyx_L1_error)); /* "cuda/cudart.pyx":5341 * @hitRatio.setter * def hitRatio(self, float hitRatio): * self._ptr[0].hitRatio = hitRatio # <<<<<<<<<<<<<< * @property * def hitProp(self): */ (__pyx_v_self->_ptr[0]).hitRatio = __pyx_v_hitRatio; /* "cuda/cudart.pyx":5339 * def hitRatio(self): * return self._ptr[0].hitRatio * @hitRatio.setter # <<<<<<<<<<<<<< * def hitRatio(self, float hitRatio): * self._ptr[0].hitRatio = hitRatio */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaAccessPolicyWindow.hitRatio.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":5342 * def hitRatio(self, float hitRatio): * self._ptr[0].hitRatio = hitRatio * @property # <<<<<<<<<<<<<< * def hitProp(self): * return cudaAccessProperty(self._ptr[0].hitProp) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_22cudaAccessPolicyWindow_7hitProp_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_22cudaAccessPolicyWindow_7hitProp___get__(((struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaAccessPolicyWindow_7hitProp___get__(struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5342, 0, __PYX_ERR(0, 5342, __pyx_L1_error)); /* "cuda/cudart.pyx":5344 * @property * def hitProp(self): * return cudaAccessProperty(self._ptr[0].hitProp) # <<<<<<<<<<<<<< * @hitProp.setter * def hitProp(self, hitProp not None : cudaAccessProperty): */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaAccessProperty); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5344, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaAccessProperty((__pyx_v_self->_ptr[0]).hitProp); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5344, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5344, __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/cudart.pyx":5342 * def hitRatio(self, float hitRatio): * self._ptr[0].hitRatio = hitRatio * @property # <<<<<<<<<<<<<< * def hitProp(self): * return cudaAccessProperty(self._ptr[0].hitProp) */ /* 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.cudart.cudaAccessPolicyWindow.hitProp.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5345 * def hitProp(self): * return cudaAccessProperty(self._ptr[0].hitProp) * @hitProp.setter # <<<<<<<<<<<<<< * def hitProp(self, hitProp not None : cudaAccessProperty): * self._ptr[0].hitProp = hitProp.value */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_22cudaAccessPolicyWindow_7hitProp_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_hitProp); /*proto*/ static int __pyx_pw_4cuda_6cudart_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, 5346, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_22cudaAccessPolicyWindow_7hitProp_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *)__pyx_v_self), ((PyObject *)__pyx_v_hitProp)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_22cudaAccessPolicyWindow_7hitProp_2__set__(struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *__pyx_v_self, PyObject *__pyx_v_hitProp) { int __pyx_r; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 5345, 0, __PYX_ERR(0, 5345, __pyx_L1_error)); /* "cuda/cudart.pyx":5347 * @hitProp.setter * def hitProp(self, hitProp not None : cudaAccessProperty): * self._ptr[0].hitProp = hitProp.value # <<<<<<<<<<<<<< * @property * def missProp(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_hitProp, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5347, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaAccessProperty)__Pyx_PyInt_As_enum__cudaAccessProperty(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 5347, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).hitProp = __pyx_t_2; /* "cuda/cudart.pyx":5345 * def hitProp(self): * return cudaAccessProperty(self._ptr[0].hitProp) * @hitProp.setter # <<<<<<<<<<<<<< * def hitProp(self, hitProp not None : cudaAccessProperty): * self._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.cudart.cudaAccessPolicyWindow.hitProp.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5348 * def hitProp(self, hitProp not None : cudaAccessProperty): * self._ptr[0].hitProp = hitProp.value * @property # <<<<<<<<<<<<<< * def missProp(self): * return cudaAccessProperty(self._ptr[0].missProp) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_22cudaAccessPolicyWindow_8missProp_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_22cudaAccessPolicyWindow_8missProp___get__(((struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaAccessPolicyWindow_8missProp___get__(struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5348, 0, __PYX_ERR(0, 5348, __pyx_L1_error)); /* "cuda/cudart.pyx":5350 * @property * def missProp(self): * return cudaAccessProperty(self._ptr[0].missProp) # <<<<<<<<<<<<<< * @missProp.setter * def missProp(self, missProp not None : cudaAccessProperty): */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaAccessProperty); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5350, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaAccessProperty((__pyx_v_self->_ptr[0]).missProp); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5350, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5350, __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/cudart.pyx":5348 * def hitProp(self, hitProp not None : cudaAccessProperty): * self._ptr[0].hitProp = hitProp.value * @property # <<<<<<<<<<<<<< * def missProp(self): * return cudaAccessProperty(self._ptr[0].missProp) */ /* 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.cudart.cudaAccessPolicyWindow.missProp.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5351 * def missProp(self): * return cudaAccessProperty(self._ptr[0].missProp) * @missProp.setter # <<<<<<<<<<<<<< * def missProp(self, missProp not None : cudaAccessProperty): * self._ptr[0].missProp = missProp.value */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_22cudaAccessPolicyWindow_8missProp_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_missProp); /*proto*/ static int __pyx_pw_4cuda_6cudart_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, 5352, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_22cudaAccessPolicyWindow_8missProp_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *)__pyx_v_self), ((PyObject *)__pyx_v_missProp)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_22cudaAccessPolicyWindow_8missProp_2__set__(struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *__pyx_v_self, PyObject *__pyx_v_missProp) { int __pyx_r; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 5351, 0, __PYX_ERR(0, 5351, __pyx_L1_error)); /* "cuda/cudart.pyx":5353 * @missProp.setter * def missProp(self, missProp not None : cudaAccessProperty): * self._ptr[0].missProp = missProp.value # <<<<<<<<<<<<<< * * cdef class cudaHostNodeParams: */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_missProp, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5353, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaAccessProperty)__Pyx_PyInt_As_enum__cudaAccessProperty(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 5353, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).missProp = __pyx_t_2; /* "cuda/cudart.pyx":5351 * def missProp(self): * return cudaAccessProperty(self._ptr[0].missProp) * @missProp.setter # <<<<<<<<<<<<<< * def missProp(self, missProp not None : cudaAccessProperty): * self._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.cudart.cudaAccessPolicyWindow.missProp.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __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_6cudart_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_6cudart_22cudaAccessPolicyWindow_10__reduce_cython__, "cudaAccessPolicyWindow.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_22cudaAccessPolicyWindow_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_22cudaAccessPolicyWindow_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_22cudaAccessPolicyWindow_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_22cudaAccessPolicyWindow_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaAccessPolicyWindow_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__93) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaAccessPolicyWindow.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_22cudaAccessPolicyWindow_12__setstate_cython__, "cudaAccessPolicyWindow.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_22cudaAccessPolicyWindow_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_22cudaAccessPolicyWindow_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_22cudaAccessPolicyWindow_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaAccessPolicyWindow.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_22cudaAccessPolicyWindow_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaAccessPolicyWindow_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__94) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaAccessPolicyWindow.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5372 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_18cudaHostNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_18cudaHostNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 5372, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 5372, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5372, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 5372, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaHostNodeParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_18cudaHostNodeParams___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_18cudaHostNodeParams___cinit__(struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 5372, 0, __PYX_ERR(0, 5372, __pyx_L1_error)); /* "cuda/cudart.pyx":5373 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":5374 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaHostNodeParams__val); /* "cuda/cudart.pyx":5373 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":5376 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * self._fn = cudaHostFn_t(_ptr=&self._ptr[0].fn) */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaHostNodeParams *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":5372 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaHostNodeParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":5377 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._fn = cudaHostFn_t(_ptr=&self._ptr[0].fn) * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_18cudaHostNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_18cudaHostNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 5377, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 5377, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5377, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 5377, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaHostNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_18cudaHostNodeParams_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_18cudaHostNodeParams_2__init__(struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 5377, 0, __PYX_ERR(0, 5377, __pyx_L1_error)); /* "cuda/cudart.pyx":5378 * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): * self._fn = cudaHostFn_t(_ptr=&self._ptr[0].fn) # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5378, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).fn))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5378, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 5378, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaHostFn_t), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5378, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_fn); __Pyx_DECREF((PyObject *)__pyx_v_self->_fn); __pyx_v_self->_fn = ((struct __pyx_obj_4cuda_6cudart_cudaHostFn_t *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":5377 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._fn = cudaHostFn_t(_ptr=&self._ptr[0].fn) * def __dealloc__(self): */ /* 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.cudart.cudaHostNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5379 * def __init__(self, void_ptr _ptr = 0): * self._fn = cudaHostFn_t(_ptr=&self._ptr[0].fn) * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_18cudaHostNodeParams_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_18cudaHostNodeParams_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_18cudaHostNodeParams_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 5379, 0, __PYX_ERR(0, 5379, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaHostNodeParams.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":5381 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_18cudaHostNodeParams_6getPtr, "cudaHostNodeParams.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_18cudaHostNodeParams_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_18cudaHostNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_18cudaHostNodeParams_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_18cudaHostNodeParams_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_18cudaHostNodeParams_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__95) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 5381, 0, __PYX_ERR(0, 5381, __pyx_L1_error)); /* "cuda/cudart.pyx":5382 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5382, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5381 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaHostNodeParams.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5383 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_18cudaHostNodeParams_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_18cudaHostNodeParams_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_18cudaHostNodeParams_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 5383, 0, __PYX_ERR(0, 5383, __pyx_L1_error)); /* "cuda/cudart.pyx":5384 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":5385 * def __repr__(self): * if self._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, 5385, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":5386 * if self._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/cudart.pyx":5387 * str_list = [] * try: * str_list += ['fn : ' + str(self.fn)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['fn : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_fn_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5387, __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, 5387, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_fn, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5387, __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, 5387, __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)) __PYX_ERR(0, 5387, __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, 5387, __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/cudart.pyx":5386 * if self._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/cudart.pyx":5388 * try: * str_list += ['fn : ' + str(self.fn)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['fn : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaHostNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 5388, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":5389 * str_list += ['fn : ' + str(self.fn)] * except ValueError: * str_list += ['fn : '] # <<<<<<<<<<<<<< * try: * str_list += ['userData : ' + hex(self.userData)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5389, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_fn_ValueError); __Pyx_GIVEREF(__pyx_kp_u_fn_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_fn_ValueError)) __PYX_ERR(0, 5389, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5389, __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/cudart.pyx":5386 * if self._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/cudart.pyx":5390 * except ValueError: * str_list += ['fn : '] * 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/cudart.pyx":5391 * str_list += ['fn : '] * try: * str_list += ['userData : ' + hex(self.userData)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['userData : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_userData_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5391, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5391, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = PyNumber_Add(__pyx_kp_u_userData, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5391, __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, 5391, __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)) __PYX_ERR(0, 5391, __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, 5391, __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/cudart.pyx":5390 * except ValueError: * str_list += ['fn : '] * 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/cudart.pyx":5392 * try: * str_list += ['userData : ' + hex(self.userData)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['userData : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaHostNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 5392, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":5393 * str_list += ['userData : ' + hex(self.userData)] * except ValueError: * str_list += ['userData : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5393, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_userData_ValueError); __Pyx_GIVEREF(__pyx_kp_u_userData_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_userData_ValueError)) __PYX_ERR(0, 5393, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5393, __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/cudart.pyx":5390 * except ValueError: * str_list += ['fn : '] * 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/cudart.pyx":5394 * except ValueError: * str_list += ['userData : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5394, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5384 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":5396 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def fn(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":5383 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaHostNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5397 * else: * return '' * @property # <<<<<<<<<<<<<< * def fn(self): * return self._fn */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_18cudaHostNodeParams_2fn_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_18cudaHostNodeParams_2fn___get__(((struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_18cudaHostNodeParams_2fn___get__(struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5397, 0, __PYX_ERR(0, 5397, __pyx_L1_error)); /* "cuda/cudart.pyx":5399 * @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/cudart.pyx":5397 * else: * return '' * @property # <<<<<<<<<<<<<< * def fn(self): * return self._fn */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaHostNodeParams.fn.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5400 * def fn(self): * return self._fn * @fn.setter # <<<<<<<<<<<<<< * def fn(self, fn): * cdef ccudart.cudaHostFn_t cfn */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_18cudaHostNodeParams_2fn_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_fn); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_18cudaHostNodeParams_2fn_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_fn)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_18cudaHostNodeParams_2fn_2__set__(struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *__pyx_v_self, PyObject *__pyx_v_fn) { cudaHostFn_t __pyx_v_cfn; PyObject *__pyx_v_pfn = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 5400, 0, __PYX_ERR(0, 5400, __pyx_L1_error)); /* "cuda/cudart.pyx":5403 * def fn(self, fn): * cdef ccudart.cudaHostFn_t cfn * if fn is None: # <<<<<<<<<<<<<< * cfn = 0 * elif isinstance(fn, (cudaHostFn_t)): */ __pyx_t_1 = (__pyx_v_fn == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":5404 * cdef ccudart.cudaHostFn_t cfn * if fn is None: * cfn = 0 # <<<<<<<<<<<<<< * elif isinstance(fn, (cudaHostFn_t)): * pfn = int(fn) */ __pyx_v_cfn = ((cudaHostFn_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":5403 * def fn(self, fn): * cdef ccudart.cudaHostFn_t cfn * if fn is None: # <<<<<<<<<<<<<< * cfn = 0 * elif isinstance(fn, (cudaHostFn_t)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":5405 * if fn is None: * cfn = 0 * elif isinstance(fn, (cudaHostFn_t)): # <<<<<<<<<<<<<< * pfn = int(fn) * cfn = pfn */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_fn, __pyx_ptype_4cuda_6cudart_cudaHostFn_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":5406 * cfn = 0 * elif isinstance(fn, (cudaHostFn_t)): * pfn = int(fn) # <<<<<<<<<<<<<< * cfn = pfn * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_fn); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5406, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_pfn = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":5407 * elif isinstance(fn, (cudaHostFn_t)): * pfn = int(fn) * cfn = pfn # <<<<<<<<<<<<<< * else: * pfn = int(cudaHostFn_t(fn)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pfn); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5407, __pyx_L1_error) __pyx_v_cfn = ((cudaHostFn_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":5405 * if fn is None: * cfn = 0 * elif isinstance(fn, (cudaHostFn_t)): # <<<<<<<<<<<<<< * pfn = int(fn) * cfn = pfn */ goto __pyx_L3; } /* "cuda/cudart.pyx":5409 * cfn = pfn * else: * pfn = int(cudaHostFn_t(fn)) # <<<<<<<<<<<<<< * cfn = pfn * self._fn._ptr[0] = cfn */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaHostFn_t), __pyx_v_fn); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5409, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5409, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_pfn = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":5410 * else: * pfn = int(cudaHostFn_t(fn)) * cfn = pfn # <<<<<<<<<<<<<< * self._fn._ptr[0] = cfn * @property */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pfn); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5410, __pyx_L1_error) __pyx_v_cfn = ((cudaHostFn_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":5411 * pfn = int(cudaHostFn_t(fn)) * cfn = pfn * self._fn._ptr[0] = cfn # <<<<<<<<<<<<<< * @property * def userData(self): */ (__pyx_v_self->_fn->_ptr[0]) = __pyx_v_cfn; /* "cuda/cudart.pyx":5400 * def fn(self): * return self._fn * @fn.setter # <<<<<<<<<<<<<< * def fn(self, fn): * cdef ccudart.cudaHostFn_t cfn */ /* 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.cudart.cudaHostNodeParams.fn.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pfn); __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5412 * cfn = pfn * self._fn._ptr[0] = cfn * @property # <<<<<<<<<<<<<< * def userData(self): * return self._ptr[0].userData */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_18cudaHostNodeParams_8userData_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_18cudaHostNodeParams_8userData___get__(((struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_18cudaHostNodeParams_8userData___get__(struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5412, 0, __PYX_ERR(0, 5412, __pyx_L1_error)); /* "cuda/cudart.pyx":5414 * @property * def userData(self): * return self._ptr[0].userData # <<<<<<<<<<<<<< * @userData.setter * def userData(self, userData): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).userData)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5414, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5412 * cfn = pfn * self._fn._ptr[0] = cfn * @property # <<<<<<<<<<<<<< * def userData(self): * return self._ptr[0].userData */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaHostNodeParams.userData.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5415 * def userData(self): * return self._ptr[0].userData * @userData.setter # <<<<<<<<<<<<<< * def userData(self, userData): * _cuserData = utils.HelperInputVoidPtr(userData) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_18cudaHostNodeParams_8userData_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_userData); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_18cudaHostNodeParams_8userData_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_userData)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_18cudaHostNodeParams_8userData_2__set__(struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *__pyx_v_self, PyObject *__pyx_v_userData) { PyObject *__pyx_v__cuserData = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 5415, 0, __PYX_ERR(0, 5415, __pyx_L1_error)); /* "cuda/cudart.pyx":5417 * @userData.setter * def userData(self, userData): * _cuserData = utils.HelperInputVoidPtr(userData) # <<<<<<<<<<<<<< * self._ptr[0].userData = _cuserData.cptr * */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_userData); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5417, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__cuserData = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":5418 * def userData(self, userData): * _cuserData = utils.HelperInputVoidPtr(userData) * self._ptr[0].userData = _cuserData.cptr # <<<<<<<<<<<<<< * * cdef class cudaHostNodeParamsV2: */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v__cuserData, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5418, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5418, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).userData = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":5415 * def userData(self): * return self._ptr[0].userData * @userData.setter # <<<<<<<<<<<<<< * def userData(self, userData): * _cuserData = utils.HelperInputVoidPtr(userData) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaHostNodeParams.userData.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v__cuserData); __Pyx_TraceReturn(Py_None, 0); __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_6cudart_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_6cudart_18cudaHostNodeParams_10__reduce_cython__, "cudaHostNodeParams.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_18cudaHostNodeParams_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_18cudaHostNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_18cudaHostNodeParams_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_18cudaHostNodeParams_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_18cudaHostNodeParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__96) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaHostNodeParams.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_18cudaHostNodeParams_12__setstate_cython__, "cudaHostNodeParams.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_18cudaHostNodeParams_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_18cudaHostNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_18cudaHostNodeParams_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaHostNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_18cudaHostNodeParams_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_18cudaHostNodeParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__97) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaHostNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5437 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaHostNodeParamsV2_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_20cudaHostNodeParamsV2_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 5437, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 5437, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5437, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 5437, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaHostNodeParamsV2.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaHostNodeParamsV2___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_20cudaHostNodeParamsV2___cinit__(struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2 *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 5437, 0, __PYX_ERR(0, 5437, __pyx_L1_error)); /* "cuda/cudart.pyx":5438 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":5439 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaHostNodeParamsV2__val); /* "cuda/cudart.pyx":5438 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":5441 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * self._fn = cudaHostFn_t(_ptr=&self._ptr[0].fn) */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaHostNodeParamsV2 *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":5437 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaHostNodeParamsV2.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":5442 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._fn = cudaHostFn_t(_ptr=&self._ptr[0].fn) * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaHostNodeParamsV2_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_20cudaHostNodeParamsV2_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 5442, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 5442, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5442, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 5442, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaHostNodeParamsV2.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaHostNodeParamsV2_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_20cudaHostNodeParamsV2_2__init__(struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 5442, 0, __PYX_ERR(0, 5442, __pyx_L1_error)); /* "cuda/cudart.pyx":5443 * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): * self._fn = cudaHostFn_t(_ptr=&self._ptr[0].fn) # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5443, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).fn))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5443, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 5443, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaHostFn_t), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5443, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_fn); __Pyx_DECREF((PyObject *)__pyx_v_self->_fn); __pyx_v_self->_fn = ((struct __pyx_obj_4cuda_6cudart_cudaHostFn_t *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":5442 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._fn = cudaHostFn_t(_ptr=&self._ptr[0].fn) * def __dealloc__(self): */ /* 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.cudart.cudaHostNodeParamsV2.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5444 * def __init__(self, void_ptr _ptr = 0): * self._fn = cudaHostFn_t(_ptr=&self._ptr[0].fn) * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_20cudaHostNodeParamsV2_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_20cudaHostNodeParamsV2_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_20cudaHostNodeParamsV2_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2 *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 5444, 0, __PYX_ERR(0, 5444, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaHostNodeParamsV2.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":5446 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaHostNodeParamsV2_6getPtr, "cudaHostNodeParamsV2.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_20cudaHostNodeParamsV2_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaHostNodeParamsV2_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaHostNodeParamsV2_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaHostNodeParamsV2_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaHostNodeParamsV2_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__98) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 5446, 0, __PYX_ERR(0, 5446, __pyx_L1_error)); /* "cuda/cudart.pyx":5447 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5447, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5446 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaHostNodeParamsV2.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5448 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaHostNodeParamsV2_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaHostNodeParamsV2_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaHostNodeParamsV2_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2 *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 5448, 0, __PYX_ERR(0, 5448, __pyx_L1_error)); /* "cuda/cudart.pyx":5449 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":5450 * def __repr__(self): * if self._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, 5450, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":5451 * if self._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/cudart.pyx":5452 * str_list = [] * try: * str_list += ['fn : ' + str(self.fn)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['fn : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_fn_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5452, __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, 5452, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_fn, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5452, __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, 5452, __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)) __PYX_ERR(0, 5452, __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, 5452, __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/cudart.pyx":5451 * if self._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/cudart.pyx":5453 * try: * str_list += ['fn : ' + str(self.fn)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['fn : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaHostNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 5453, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":5454 * str_list += ['fn : ' + str(self.fn)] * except ValueError: * str_list += ['fn : '] # <<<<<<<<<<<<<< * try: * str_list += ['userData : ' + hex(self.userData)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5454, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_fn_ValueError); __Pyx_GIVEREF(__pyx_kp_u_fn_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_fn_ValueError)) __PYX_ERR(0, 5454, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5454, __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/cudart.pyx":5451 * if self._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/cudart.pyx":5455 * except ValueError: * str_list += ['fn : '] * 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/cudart.pyx":5456 * str_list += ['fn : '] * try: * str_list += ['userData : ' + hex(self.userData)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['userData : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_userData_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5456, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5456, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = PyNumber_Add(__pyx_kp_u_userData, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5456, __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, 5456, __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)) __PYX_ERR(0, 5456, __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, 5456, __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/cudart.pyx":5455 * except ValueError: * str_list += ['fn : '] * 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/cudart.pyx":5457 * try: * str_list += ['userData : ' + hex(self.userData)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['userData : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaHostNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 5457, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":5458 * str_list += ['userData : ' + hex(self.userData)] * except ValueError: * str_list += ['userData : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5458, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_userData_ValueError); __Pyx_GIVEREF(__pyx_kp_u_userData_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_userData_ValueError)) __PYX_ERR(0, 5458, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5458, __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/cudart.pyx":5455 * except ValueError: * str_list += ['fn : '] * 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/cudart.pyx":5459 * except ValueError: * str_list += ['userData : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5459, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5449 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":5461 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def fn(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":5448 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaHostNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5462 * else: * return '' * @property # <<<<<<<<<<<<<< * def fn(self): * return self._fn */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaHostNodeParamsV2_2fn_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaHostNodeParamsV2_2fn___get__(((struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaHostNodeParamsV2_2fn___get__(struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5462, 0, __PYX_ERR(0, 5462, __pyx_L1_error)); /* "cuda/cudart.pyx":5464 * @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/cudart.pyx":5462 * else: * return '' * @property # <<<<<<<<<<<<<< * def fn(self): * return self._fn */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaHostNodeParamsV2.fn.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5465 * def fn(self): * return self._fn * @fn.setter # <<<<<<<<<<<<<< * def fn(self, fn): * cdef ccudart.cudaHostFn_t cfn */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaHostNodeParamsV2_2fn_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_fn); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_20cudaHostNodeParamsV2_2fn_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2 *)__pyx_v_self), ((PyObject *)__pyx_v_fn)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_20cudaHostNodeParamsV2_2fn_2__set__(struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2 *__pyx_v_self, PyObject *__pyx_v_fn) { cudaHostFn_t __pyx_v_cfn; PyObject *__pyx_v_pfn = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 5465, 0, __PYX_ERR(0, 5465, __pyx_L1_error)); /* "cuda/cudart.pyx":5468 * def fn(self, fn): * cdef ccudart.cudaHostFn_t cfn * if fn is None: # <<<<<<<<<<<<<< * cfn = 0 * elif isinstance(fn, (cudaHostFn_t)): */ __pyx_t_1 = (__pyx_v_fn == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":5469 * cdef ccudart.cudaHostFn_t cfn * if fn is None: * cfn = 0 # <<<<<<<<<<<<<< * elif isinstance(fn, (cudaHostFn_t)): * pfn = int(fn) */ __pyx_v_cfn = ((cudaHostFn_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":5468 * def fn(self, fn): * cdef ccudart.cudaHostFn_t cfn * if fn is None: # <<<<<<<<<<<<<< * cfn = 0 * elif isinstance(fn, (cudaHostFn_t)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":5470 * if fn is None: * cfn = 0 * elif isinstance(fn, (cudaHostFn_t)): # <<<<<<<<<<<<<< * pfn = int(fn) * cfn = pfn */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_fn, __pyx_ptype_4cuda_6cudart_cudaHostFn_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":5471 * cfn = 0 * elif isinstance(fn, (cudaHostFn_t)): * pfn = int(fn) # <<<<<<<<<<<<<< * cfn = pfn * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_fn); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5471, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_pfn = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":5472 * elif isinstance(fn, (cudaHostFn_t)): * pfn = int(fn) * cfn = pfn # <<<<<<<<<<<<<< * else: * pfn = int(cudaHostFn_t(fn)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pfn); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5472, __pyx_L1_error) __pyx_v_cfn = ((cudaHostFn_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":5470 * if fn is None: * cfn = 0 * elif isinstance(fn, (cudaHostFn_t)): # <<<<<<<<<<<<<< * pfn = int(fn) * cfn = pfn */ goto __pyx_L3; } /* "cuda/cudart.pyx":5474 * cfn = pfn * else: * pfn = int(cudaHostFn_t(fn)) # <<<<<<<<<<<<<< * cfn = pfn * self._fn._ptr[0] = cfn */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaHostFn_t), __pyx_v_fn); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5474, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5474, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_pfn = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":5475 * else: * pfn = int(cudaHostFn_t(fn)) * cfn = pfn # <<<<<<<<<<<<<< * self._fn._ptr[0] = cfn * @property */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pfn); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5475, __pyx_L1_error) __pyx_v_cfn = ((cudaHostFn_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":5476 * pfn = int(cudaHostFn_t(fn)) * cfn = pfn * self._fn._ptr[0] = cfn # <<<<<<<<<<<<<< * @property * def userData(self): */ (__pyx_v_self->_fn->_ptr[0]) = __pyx_v_cfn; /* "cuda/cudart.pyx":5465 * def fn(self): * return self._fn * @fn.setter # <<<<<<<<<<<<<< * def fn(self, fn): * cdef ccudart.cudaHostFn_t cfn */ /* 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.cudart.cudaHostNodeParamsV2.fn.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pfn); __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5477 * cfn = pfn * self._fn._ptr[0] = cfn * @property # <<<<<<<<<<<<<< * def userData(self): * return self._ptr[0].userData */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaHostNodeParamsV2_8userData_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaHostNodeParamsV2_8userData___get__(((struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaHostNodeParamsV2_8userData___get__(struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5477, 0, __PYX_ERR(0, 5477, __pyx_L1_error)); /* "cuda/cudart.pyx":5479 * @property * def userData(self): * return self._ptr[0].userData # <<<<<<<<<<<<<< * @userData.setter * def userData(self, userData): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).userData)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5479, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5477 * cfn = pfn * self._fn._ptr[0] = cfn * @property # <<<<<<<<<<<<<< * def userData(self): * return self._ptr[0].userData */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaHostNodeParamsV2.userData.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5480 * def userData(self): * return self._ptr[0].userData * @userData.setter # <<<<<<<<<<<<<< * def userData(self, userData): * _cuserData = utils.HelperInputVoidPtr(userData) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaHostNodeParamsV2_8userData_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_userData); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_20cudaHostNodeParamsV2_8userData_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2 *)__pyx_v_self), ((PyObject *)__pyx_v_userData)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_20cudaHostNodeParamsV2_8userData_2__set__(struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2 *__pyx_v_self, PyObject *__pyx_v_userData) { PyObject *__pyx_v__cuserData = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 5480, 0, __PYX_ERR(0, 5480, __pyx_L1_error)); /* "cuda/cudart.pyx":5482 * @userData.setter * def userData(self, userData): * _cuserData = utils.HelperInputVoidPtr(userData) # <<<<<<<<<<<<<< * self._ptr[0].userData = _cuserData.cptr * */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_userData); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5482, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__cuserData = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":5483 * def userData(self, userData): * _cuserData = utils.HelperInputVoidPtr(userData) * self._ptr[0].userData = _cuserData.cptr # <<<<<<<<<<<<<< * * cdef class anon_struct1: */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v__cuserData, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5483, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5483, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).userData = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":5480 * def userData(self): * return self._ptr[0].userData * @userData.setter # <<<<<<<<<<<<<< * def userData(self, userData): * _cuserData = utils.HelperInputVoidPtr(userData) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaHostNodeParamsV2.userData.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v__cuserData); __Pyx_TraceReturn(Py_None, 0); __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_6cudart_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_6cudart_20cudaHostNodeParamsV2_10__reduce_cython__, "cudaHostNodeParamsV2.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_20cudaHostNodeParamsV2_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaHostNodeParamsV2_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaHostNodeParamsV2_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaHostNodeParamsV2_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaHostNodeParamsV2_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__99) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaHostNodeParamsV2.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_20cudaHostNodeParamsV2_12__setstate_cython__, "cudaHostNodeParamsV2.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_20cudaHostNodeParamsV2_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaHostNodeParamsV2_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaHostNodeParamsV2_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaHostNodeParamsV2.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaHostNodeParamsV2_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2 *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaHostNodeParamsV2_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__100) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaHostNodeParamsV2.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5498 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12anon_struct1_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_12anon_struct1_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 5498, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 5498, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5498, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 5498, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct1.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct1___cinit__(((struct __pyx_obj_4cuda_6cudart_anon_struct1 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12anon_struct1___cinit__(struct __pyx_obj_4cuda_6cudart_anon_struct1 *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 5498, 0, __PYX_ERR(0, 5498, __pyx_L1_error)); /* "cuda/cudart.pyx":5499 * """ * def __cinit__(self, void_ptr _ptr): * self._ptr = _ptr # <<<<<<<<<<<<<< * * def __init__(self, void_ptr _ptr): */ __pyx_v_self->_ptr = ((struct cudaResourceDesc *)__pyx_v__ptr); /* "cuda/cudart.pyx":5498 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct1.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":5501 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._array = cudaArray_t(_ptr=&self._ptr[0].res.array.array) * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12anon_struct1_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_12anon_struct1_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 5501, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 5501, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5501, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 5501, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct1.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct1_2__init__(((struct __pyx_obj_4cuda_6cudart_anon_struct1 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12anon_struct1_2__init__(struct __pyx_obj_4cuda_6cudart_anon_struct1 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 5501, 0, __PYX_ERR(0, 5501, __pyx_L1_error)); /* "cuda/cudart.pyx":5502 * * def __init__(self, void_ptr _ptr): * self._array = cudaArray_t(_ptr=&self._ptr[0].res.array.array) # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5502, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).res.array.array))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5502, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 5502, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_t), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5502, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_array); __Pyx_DECREF((PyObject *)__pyx_v_self->_array); __pyx_v_self->_array = ((struct __pyx_obj_4cuda_6cudart_cudaArray_t *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":5501 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._array = cudaArray_t(_ptr=&self._ptr[0].res.array.array) * def __dealloc__(self): */ /* 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.cudart.anon_struct1.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5503 * def __init__(self, void_ptr _ptr): * self._array = cudaArray_t(_ptr=&self._ptr[0].res.array.array) * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_12anon_struct1_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct1_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_anon_struct1 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_12anon_struct1_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct1 *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 5503, 0, __PYX_ERR(0, 5503, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.anon_struct1.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":5505 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].res.array * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct1_6getPtr, "anon_struct1.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_12anon_struct1_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct1_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct1_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct1_6getPtr(((struct __pyx_obj_4cuda_6cudart_anon_struct1 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct1_6getPtr(struct __pyx_obj_4cuda_6cudart_anon_struct1 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__101) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 5505, 0, __PYX_ERR(0, 5505, __pyx_L1_error)); /* "cuda/cudart.pyx":5506 * pass * def getPtr(self): * return &self._ptr[0].res.array # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).res.array))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5506, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5505 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].res.array * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct1.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5507 * def getPtr(self): * return &self._ptr[0].res.array * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12anon_struct1_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct1_8__repr__(((struct __pyx_obj_4cuda_6cudart_anon_struct1 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct1_8__repr__(struct __pyx_obj_4cuda_6cudart_anon_struct1 *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 5507, 0, __PYX_ERR(0, 5507, __pyx_L1_error)); /* "cuda/cudart.pyx":5508 * return &self._ptr[0].res.array * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":5509 * def __repr__(self): * if self._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, 5509, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":5510 * if self._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/cudart.pyx":5511 * str_list = [] * try: * str_list += ['array : ' + str(self.array)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['array : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_array_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5511, __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, 5511, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_array, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5511, __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, 5511, __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)) __PYX_ERR(0, 5511, __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, 5511, __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/cudart.pyx":5510 * if self._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/cudart.pyx":5512 * try: * str_list += ['array : ' + str(self.array)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['array : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 5512, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":5513 * str_list += ['array : ' + str(self.array)] * except ValueError: * str_list += ['array : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5513, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_array_ValueError); __Pyx_GIVEREF(__pyx_kp_u_array_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_array_ValueError)) __PYX_ERR(0, 5513, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5513, __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/cudart.pyx":5510 * if self._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/cudart.pyx":5514 * except ValueError: * str_list += ['array : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5514, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5508 * return &self._ptr[0].res.array * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":5516 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def array(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":5507 * def getPtr(self): * return &self._ptr[0].res.array * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5517 * else: * return '' * @property # <<<<<<<<<<<<<< * def array(self): * return self._array */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12anon_struct1_5array_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct1_5array___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct1 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct1_5array___get__(struct __pyx_obj_4cuda_6cudart_anon_struct1 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5517, 0, __PYX_ERR(0, 5517, __pyx_L1_error)); /* "cuda/cudart.pyx":5519 * @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/cudart.pyx":5517 * else: * return '' * @property # <<<<<<<<<<<<<< * def array(self): * return self._array */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct1.array.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5520 * def array(self): * return self._array * @array.setter # <<<<<<<<<<<<<< * def array(self, array): * cdef ccudart.cudaArray_t carray */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12anon_struct1_5array_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_array); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct1_5array_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct1 *)__pyx_v_self), ((PyObject *)__pyx_v_array)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12anon_struct1_5array_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct1 *__pyx_v_self, PyObject *__pyx_v_array) { cudaArray_t __pyx_v_carray; PyObject *__pyx_v_parray = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 5520, 0, __PYX_ERR(0, 5520, __pyx_L1_error)); /* "cuda/cudart.pyx":5523 * def array(self, array): * cdef ccudart.cudaArray_t carray * if array is None: # <<<<<<<<<<<<<< * carray = 0 * elif isinstance(array, (cudaArray_t,)): */ __pyx_t_1 = (__pyx_v_array == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":5524 * cdef ccudart.cudaArray_t carray * if array is None: * carray = 0 # <<<<<<<<<<<<<< * elif isinstance(array, (cudaArray_t,)): * parray = int(array) */ __pyx_v_carray = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":5523 * def array(self, array): * cdef ccudart.cudaArray_t carray * if array is None: # <<<<<<<<<<<<<< * carray = 0 * elif isinstance(array, (cudaArray_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":5525 * if array is None: * carray = 0 * elif isinstance(array, (cudaArray_t,)): # <<<<<<<<<<<<<< * parray = int(array) * carray = parray */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_array, __pyx_ptype_4cuda_6cudart_cudaArray_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":5526 * carray = 0 * elif isinstance(array, (cudaArray_t,)): * parray = int(array) # <<<<<<<<<<<<<< * carray = parray * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_array); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5526, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_parray = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":5527 * elif isinstance(array, (cudaArray_t,)): * parray = int(array) * carray = parray # <<<<<<<<<<<<<< * else: * parray = int(cudaArray_t(array)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_parray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5527, __pyx_L1_error) __pyx_v_carray = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":5525 * if array is None: * carray = 0 * elif isinstance(array, (cudaArray_t,)): # <<<<<<<<<<<<<< * parray = int(array) * carray = parray */ goto __pyx_L3; } /* "cuda/cudart.pyx":5529 * carray = parray * else: * parray = int(cudaArray_t(array)) # <<<<<<<<<<<<<< * carray = parray * self._array._ptr[0] = carray */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_t), __pyx_v_array); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5529, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5529, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_parray = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":5530 * else: * parray = int(cudaArray_t(array)) * carray = parray # <<<<<<<<<<<<<< * self._array._ptr[0] = carray * */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_parray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5530, __pyx_L1_error) __pyx_v_carray = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":5531 * parray = int(cudaArray_t(array)) * carray = parray * self._array._ptr[0] = carray # <<<<<<<<<<<<<< * * cdef class anon_struct2: */ (__pyx_v_self->_array->_ptr[0]) = __pyx_v_carray; /* "cuda/cudart.pyx":5520 * def array(self): * return self._array * @array.setter # <<<<<<<<<<<<<< * def array(self, array): * cdef ccudart.cudaArray_t carray */ /* 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.cudart.anon_struct1.array.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v_parray); __Pyx_TraceReturn(Py_None, 0); __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_6cudart_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_6cudart_12anon_struct1_10__reduce_cython__, "anon_struct1.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_12anon_struct1_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct1_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct1_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct1_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct1 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct1_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct1 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__102) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct1.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_12anon_struct1_12__setstate_cython__, "anon_struct1.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_12anon_struct1_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct1_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct1_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct1.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct1_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct1 *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct1_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct1 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__103) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct1.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5546 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12anon_struct2_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_12anon_struct2_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 5546, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 5546, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5546, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 5546, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct2.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct2___cinit__(((struct __pyx_obj_4cuda_6cudart_anon_struct2 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12anon_struct2___cinit__(struct __pyx_obj_4cuda_6cudart_anon_struct2 *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 5546, 0, __PYX_ERR(0, 5546, __pyx_L1_error)); /* "cuda/cudart.pyx":5547 * """ * def __cinit__(self, void_ptr _ptr): * self._ptr = _ptr # <<<<<<<<<<<<<< * * def __init__(self, void_ptr _ptr): */ __pyx_v_self->_ptr = ((struct cudaResourceDesc *)__pyx_v__ptr); /* "cuda/cudart.pyx":5546 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct2.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":5549 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._mipmap = cudaMipmappedArray_t(_ptr=&self._ptr[0].res.mipmap.mipmap) * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12anon_struct2_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_12anon_struct2_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 5549, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 5549, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5549, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 5549, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct2.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct2_2__init__(((struct __pyx_obj_4cuda_6cudart_anon_struct2 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12anon_struct2_2__init__(struct __pyx_obj_4cuda_6cudart_anon_struct2 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 5549, 0, __PYX_ERR(0, 5549, __pyx_L1_error)); /* "cuda/cudart.pyx":5550 * * def __init__(self, void_ptr _ptr): * self._mipmap = cudaMipmappedArray_t(_ptr=&self._ptr[0].res.mipmap.mipmap) # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5550, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).res.mipmap.mipmap))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5550, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 5550, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMipmappedArray_t), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5550, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_mipmap); __Pyx_DECREF((PyObject *)__pyx_v_self->_mipmap); __pyx_v_self->_mipmap = ((struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_t *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":5549 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._mipmap = cudaMipmappedArray_t(_ptr=&self._ptr[0].res.mipmap.mipmap) * def __dealloc__(self): */ /* 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.cudart.anon_struct2.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5551 * def __init__(self, void_ptr _ptr): * self._mipmap = cudaMipmappedArray_t(_ptr=&self._ptr[0].res.mipmap.mipmap) * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_12anon_struct2_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct2_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_anon_struct2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_12anon_struct2_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct2 *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 5551, 0, __PYX_ERR(0, 5551, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.anon_struct2.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":5553 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].res.mipmap * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct2_6getPtr, "anon_struct2.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_12anon_struct2_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct2_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct2_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct2_6getPtr(((struct __pyx_obj_4cuda_6cudart_anon_struct2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct2_6getPtr(struct __pyx_obj_4cuda_6cudart_anon_struct2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__104) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 5553, 0, __PYX_ERR(0, 5553, __pyx_L1_error)); /* "cuda/cudart.pyx":5554 * pass * def getPtr(self): * return &self._ptr[0].res.mipmap # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).res.mipmap))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5554, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5553 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].res.mipmap * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct2.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5555 * def getPtr(self): * return &self._ptr[0].res.mipmap * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12anon_struct2_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct2_8__repr__(((struct __pyx_obj_4cuda_6cudart_anon_struct2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct2_8__repr__(struct __pyx_obj_4cuda_6cudart_anon_struct2 *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 5555, 0, __PYX_ERR(0, 5555, __pyx_L1_error)); /* "cuda/cudart.pyx":5556 * return &self._ptr[0].res.mipmap * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":5557 * def __repr__(self): * if self._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, 5557, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":5558 * if self._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/cudart.pyx":5559 * str_list = [] * try: * str_list += ['mipmap : ' + str(self.mipmap)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['mipmap : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_mipmap_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5559, __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, 5559, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_mipmap, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5559, __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, 5559, __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)) __PYX_ERR(0, 5559, __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, 5559, __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/cudart.pyx":5558 * if self._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/cudart.pyx":5560 * try: * str_list += ['mipmap : ' + str(self.mipmap)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['mipmap : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 5560, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":5561 * str_list += ['mipmap : ' + str(self.mipmap)] * except ValueError: * str_list += ['mipmap : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5561, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_mipmap_ValueError); __Pyx_GIVEREF(__pyx_kp_u_mipmap_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_mipmap_ValueError)) __PYX_ERR(0, 5561, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5561, __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/cudart.pyx":5558 * if self._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/cudart.pyx":5562 * except ValueError: * str_list += ['mipmap : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5562, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5556 * return &self._ptr[0].res.mipmap * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":5564 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def mipmap(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":5555 * def getPtr(self): * return &self._ptr[0].res.mipmap * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5565 * else: * return '' * @property # <<<<<<<<<<<<<< * def mipmap(self): * return self._mipmap */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12anon_struct2_6mipmap_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct2_6mipmap___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct2_6mipmap___get__(struct __pyx_obj_4cuda_6cudart_anon_struct2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5565, 0, __PYX_ERR(0, 5565, __pyx_L1_error)); /* "cuda/cudart.pyx":5567 * @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/cudart.pyx":5565 * else: * return '' * @property # <<<<<<<<<<<<<< * def mipmap(self): * return self._mipmap */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct2.mipmap.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5568 * def mipmap(self): * return self._mipmap * @mipmap.setter # <<<<<<<<<<<<<< * def mipmap(self, mipmap): * cdef ccudart.cudaMipmappedArray_t cmipmap */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12anon_struct2_6mipmap_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_mipmap); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct2_6mipmap_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct2 *)__pyx_v_self), ((PyObject *)__pyx_v_mipmap)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12anon_struct2_6mipmap_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct2 *__pyx_v_self, PyObject *__pyx_v_mipmap) { cudaMipmappedArray_t __pyx_v_cmipmap; PyObject *__pyx_v_pmipmap = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 5568, 0, __PYX_ERR(0, 5568, __pyx_L1_error)); /* "cuda/cudart.pyx":5571 * def mipmap(self, mipmap): * cdef ccudart.cudaMipmappedArray_t cmipmap * if mipmap is None: # <<<<<<<<<<<<<< * cmipmap = 0 * elif isinstance(mipmap, (cudaMipmappedArray_t,)): */ __pyx_t_1 = (__pyx_v_mipmap == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":5572 * cdef ccudart.cudaMipmappedArray_t cmipmap * if mipmap is None: * cmipmap = 0 # <<<<<<<<<<<<<< * elif isinstance(mipmap, (cudaMipmappedArray_t,)): * pmipmap = int(mipmap) */ __pyx_v_cmipmap = ((cudaMipmappedArray_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":5571 * def mipmap(self, mipmap): * cdef ccudart.cudaMipmappedArray_t cmipmap * if mipmap is None: # <<<<<<<<<<<<<< * cmipmap = 0 * elif isinstance(mipmap, (cudaMipmappedArray_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":5573 * if mipmap is None: * cmipmap = 0 * elif isinstance(mipmap, (cudaMipmappedArray_t,)): # <<<<<<<<<<<<<< * pmipmap = int(mipmap) * cmipmap = pmipmap */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_mipmap, __pyx_ptype_4cuda_6cudart_cudaMipmappedArray_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":5574 * cmipmap = 0 * elif isinstance(mipmap, (cudaMipmappedArray_t,)): * pmipmap = int(mipmap) # <<<<<<<<<<<<<< * cmipmap = pmipmap * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_mipmap); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5574, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_pmipmap = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":5575 * elif isinstance(mipmap, (cudaMipmappedArray_t,)): * pmipmap = int(mipmap) * cmipmap = pmipmap # <<<<<<<<<<<<<< * else: * pmipmap = int(cudaMipmappedArray_t(mipmap)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pmipmap); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5575, __pyx_L1_error) __pyx_v_cmipmap = ((cudaMipmappedArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":5573 * if mipmap is None: * cmipmap = 0 * elif isinstance(mipmap, (cudaMipmappedArray_t,)): # <<<<<<<<<<<<<< * pmipmap = int(mipmap) * cmipmap = pmipmap */ goto __pyx_L3; } /* "cuda/cudart.pyx":5577 * cmipmap = pmipmap * else: * pmipmap = int(cudaMipmappedArray_t(mipmap)) # <<<<<<<<<<<<<< * cmipmap = pmipmap * self._mipmap._ptr[0] = cmipmap */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMipmappedArray_t), __pyx_v_mipmap); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5577, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5577, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_pmipmap = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":5578 * else: * pmipmap = int(cudaMipmappedArray_t(mipmap)) * cmipmap = pmipmap # <<<<<<<<<<<<<< * self._mipmap._ptr[0] = cmipmap * */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pmipmap); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5578, __pyx_L1_error) __pyx_v_cmipmap = ((cudaMipmappedArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":5579 * pmipmap = int(cudaMipmappedArray_t(mipmap)) * cmipmap = pmipmap * self._mipmap._ptr[0] = cmipmap # <<<<<<<<<<<<<< * * cdef class anon_struct3: */ (__pyx_v_self->_mipmap->_ptr[0]) = __pyx_v_cmipmap; /* "cuda/cudart.pyx":5568 * def mipmap(self): * return self._mipmap * @mipmap.setter # <<<<<<<<<<<<<< * def mipmap(self, mipmap): * cdef ccudart.cudaMipmappedArray_t cmipmap */ /* 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.cudart.anon_struct2.mipmap.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pmipmap); __Pyx_TraceReturn(Py_None, 0); __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_6cudart_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_6cudart_12anon_struct2_10__reduce_cython__, "anon_struct2.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_12anon_struct2_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct2_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct2_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct2_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct2_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__105) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct2.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_12anon_struct2_12__setstate_cython__, "anon_struct2.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_12anon_struct2_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct2_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct2_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct2.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct2_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct2 *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct2_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct2 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__106) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct2.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5598 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12anon_struct3_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_12anon_struct3_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 5598, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 5598, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5598, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 5598, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct3.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct3___cinit__(((struct __pyx_obj_4cuda_6cudart_anon_struct3 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12anon_struct3___cinit__(struct __pyx_obj_4cuda_6cudart_anon_struct3 *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 5598, 0, __PYX_ERR(0, 5598, __pyx_L1_error)); /* "cuda/cudart.pyx":5599 * """ * def __cinit__(self, void_ptr _ptr): * self._ptr = _ptr # <<<<<<<<<<<<<< * * def __init__(self, void_ptr _ptr): */ __pyx_v_self->_ptr = ((struct cudaResourceDesc *)__pyx_v__ptr); /* "cuda/cudart.pyx":5598 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct3.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":5601 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._desc = cudaChannelFormatDesc(_ptr=&self._ptr[0].res.linear.desc) * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12anon_struct3_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_12anon_struct3_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 5601, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 5601, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5601, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 5601, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct3.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct3_2__init__(((struct __pyx_obj_4cuda_6cudart_anon_struct3 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12anon_struct3_2__init__(struct __pyx_obj_4cuda_6cudart_anon_struct3 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 5601, 0, __PYX_ERR(0, 5601, __pyx_L1_error)); /* "cuda/cudart.pyx":5602 * * def __init__(self, void_ptr _ptr): * self._desc = cudaChannelFormatDesc(_ptr=&self._ptr[0].res.linear.desc) # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5602, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).res.linear.desc))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5602, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 5602, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaChannelFormatDesc), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5602, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_desc); __Pyx_DECREF((PyObject *)__pyx_v_self->_desc); __pyx_v_self->_desc = ((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":5601 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._desc = cudaChannelFormatDesc(_ptr=&self._ptr[0].res.linear.desc) * def __dealloc__(self): */ /* 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.cudart.anon_struct3.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5603 * def __init__(self, void_ptr _ptr): * self._desc = cudaChannelFormatDesc(_ptr=&self._ptr[0].res.linear.desc) * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_12anon_struct3_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct3_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_anon_struct3 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_12anon_struct3_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct3 *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 5603, 0, __PYX_ERR(0, 5603, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.anon_struct3.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":5605 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].res.linear * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct3_6getPtr, "anon_struct3.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_12anon_struct3_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct3_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct3_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct3_6getPtr(((struct __pyx_obj_4cuda_6cudart_anon_struct3 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct3_6getPtr(struct __pyx_obj_4cuda_6cudart_anon_struct3 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__107) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 5605, 0, __PYX_ERR(0, 5605, __pyx_L1_error)); /* "cuda/cudart.pyx":5606 * pass * def getPtr(self): * return &self._ptr[0].res.linear # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).res.linear))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5606, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5605 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].res.linear * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct3.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5607 * def getPtr(self): * return &self._ptr[0].res.linear * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12anon_struct3_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct3_8__repr__(((struct __pyx_obj_4cuda_6cudart_anon_struct3 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct3_8__repr__(struct __pyx_obj_4cuda_6cudart_anon_struct3 *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_9genexpr12__pyx_v_line = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 5607, 0, __PYX_ERR(0, 5607, __pyx_L1_error)); /* "cuda/cudart.pyx":5608 * return &self._ptr[0].res.linear * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":5609 * def __repr__(self): * if self._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, 5609, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":5610 * if self._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/cudart.pyx":5611 * str_list = [] * try: * str_list += ['devPtr : ' + hex(self.devPtr)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['devPtr : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_devPtr_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5611, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5611, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_kp_u_devPtr, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5611, __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, 5611, __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)) __PYX_ERR(0, 5611, __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, 5611, __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/cudart.pyx":5610 * if self._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/cudart.pyx":5612 * try: * str_list += ['devPtr : ' + hex(self.devPtr)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['devPtr : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 5612, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":5613 * str_list += ['devPtr : ' + hex(self.devPtr)] * except ValueError: * str_list += ['devPtr : '] # <<<<<<<<<<<<<< * 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, 5613, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_devPtr_ValueError); __Pyx_GIVEREF(__pyx_kp_u_devPtr_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_devPtr_ValueError)) __PYX_ERR(0, 5613, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5613, __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/cudart.pyx":5610 * if self._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/cudart.pyx":5614 * except ValueError: * str_list += ['devPtr : '] * 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/cudart.pyx":5615 * str_list += ['devPtr : '] * try: * str_list += ['desc :\n' + '\n'.join([' ' + line for line in str(self.desc).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['desc : '] */ { /* enter inner scope */ __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5615, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_desc_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5615, __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, 5615, __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, 5615, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 5615, __pyx_L20_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_11); __Pyx_INCREF(__pyx_t_6); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 5615, __pyx_L20_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5615, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_9genexpr12__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr12__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5615, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 5615, __pyx_L20_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_9genexpr12__pyx_v_line); __pyx_9genexpr12__pyx_v_line = 0; goto __pyx_L24_exit_scope; __pyx_L20_error:; __Pyx_XDECREF(__pyx_9genexpr12__pyx_v_line); __pyx_9genexpr12__pyx_v_line = 0; goto __pyx_L12_error; __pyx_L24_exit_scope:; } /* exit inner scope */ __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5615, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_desc, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5615, __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, 5615, __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)) __PYX_ERR(0, 5615, __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, 5615, __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/cudart.pyx":5614 * except ValueError: * str_list += ['devPtr : '] * 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/cudart.pyx":5616 * try: * str_list += ['desc :\n' + '\n'.join([' ' + line for line in str(self.desc).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['desc : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 5616, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":5617 * str_list += ['desc :\n' + '\n'.join([' ' + line for line in str(self.desc).splitlines()])] * except ValueError: * str_list += ['desc : '] # <<<<<<<<<<<<<< * try: * str_list += ['sizeInBytes : ' + str(self.sizeInBytes)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5617, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_desc_ValueError); __Pyx_GIVEREF(__pyx_kp_u_desc_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_desc_ValueError)) __PYX_ERR(0, 5617, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5617, __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/cudart.pyx":5614 * except ValueError: * str_list += ['devPtr : '] * 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/cudart.pyx":5618 * except ValueError: * str_list += ['desc : '] * 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/cudart.pyx":5619 * str_list += ['desc : '] * try: * str_list += ['sizeInBytes : ' + str(self.sizeInBytes)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['sizeInBytes : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_sizeInBytes_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5619, __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, 5619, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_sizeInBytes, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5619, __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, 5619, __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)) __PYX_ERR(0, 5619, __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, 5619, __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/cudart.pyx":5618 * except ValueError: * str_list += ['desc : '] * 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/cudart.pyx":5620 * try: * str_list += ['sizeInBytes : ' + str(self.sizeInBytes)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['sizeInBytes : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 5620, __pyx_L29_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":5621 * str_list += ['sizeInBytes : ' + str(self.sizeInBytes)] * except ValueError: * str_list += ['sizeInBytes : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5621, __pyx_L29_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_sizeInBytes_ValueError); __Pyx_GIVEREF(__pyx_kp_u_sizeInBytes_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_sizeInBytes_ValueError)) __PYX_ERR(0, 5621, __pyx_L29_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5621, __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/cudart.pyx":5618 * except ValueError: * str_list += ['desc : '] * 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/cudart.pyx":5622 * except ValueError: * str_list += ['sizeInBytes : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5622, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5608 * return &self._ptr[0].res.linear * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":5624 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def devPtr(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":5607 * def getPtr(self): * return &self._ptr[0].res.linear * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.anon_struct3.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XDECREF(__pyx_9genexpr12__pyx_v_line); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5625 * else: * return '' * @property # <<<<<<<<<<<<<< * def devPtr(self): * return self._ptr[0].res.linear.devPtr */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12anon_struct3_6devPtr_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct3_6devPtr___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct3 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct3_6devPtr___get__(struct __pyx_obj_4cuda_6cudart_anon_struct3 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5625, 0, __PYX_ERR(0, 5625, __pyx_L1_error)); /* "cuda/cudart.pyx":5627 * @property * def devPtr(self): * return self._ptr[0].res.linear.devPtr # <<<<<<<<<<<<<< * @devPtr.setter * def devPtr(self, devPtr): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).res.linear.devPtr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5627, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5625 * else: * return '' * @property # <<<<<<<<<<<<<< * def devPtr(self): * return self._ptr[0].res.linear.devPtr */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct3.devPtr.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5628 * def devPtr(self): * return self._ptr[0].res.linear.devPtr * @devPtr.setter # <<<<<<<<<<<<<< * def devPtr(self, devPtr): * _cdevPtr = utils.HelperInputVoidPtr(devPtr) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12anon_struct3_6devPtr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_devPtr); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct3_6devPtr_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct3 *)__pyx_v_self), ((PyObject *)__pyx_v_devPtr)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12anon_struct3_6devPtr_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct3 *__pyx_v_self, PyObject *__pyx_v_devPtr) { PyObject *__pyx_v__cdevPtr = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 5628, 0, __PYX_ERR(0, 5628, __pyx_L1_error)); /* "cuda/cudart.pyx":5630 * @devPtr.setter * def devPtr(self, devPtr): * _cdevPtr = utils.HelperInputVoidPtr(devPtr) # <<<<<<<<<<<<<< * self._ptr[0].res.linear.devPtr = _cdevPtr.cptr * @property */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_devPtr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5630, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__cdevPtr = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":5631 * def devPtr(self, devPtr): * _cdevPtr = utils.HelperInputVoidPtr(devPtr) * self._ptr[0].res.linear.devPtr = _cdevPtr.cptr # <<<<<<<<<<<<<< * @property * def desc(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v__cdevPtr, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5631, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5631, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).res.linear.devPtr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":5628 * def devPtr(self): * return self._ptr[0].res.linear.devPtr * @devPtr.setter # <<<<<<<<<<<<<< * def devPtr(self, devPtr): * _cdevPtr = utils.HelperInputVoidPtr(devPtr) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct3.devPtr.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v__cdevPtr); __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5632 * _cdevPtr = utils.HelperInputVoidPtr(devPtr) * self._ptr[0].res.linear.devPtr = _cdevPtr.cptr * @property # <<<<<<<<<<<<<< * def desc(self): * return self._desc */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12anon_struct3_4desc_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct3_4desc___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct3 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct3_4desc___get__(struct __pyx_obj_4cuda_6cudart_anon_struct3 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5632, 0, __PYX_ERR(0, 5632, __pyx_L1_error)); /* "cuda/cudart.pyx":5634 * @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/cudart.pyx":5632 * _cdevPtr = utils.HelperInputVoidPtr(devPtr) * self._ptr[0].res.linear.devPtr = _cdevPtr.cptr * @property # <<<<<<<<<<<<<< * def desc(self): * return self._desc */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct3.desc.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5635 * def desc(self): * return self._desc * @desc.setter # <<<<<<<<<<<<<< * def desc(self, desc not None : cudaChannelFormatDesc): * string.memcpy(&self._ptr[0].res.linear.desc, desc.getPtr(), sizeof(self._ptr[0].res.linear.desc)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12anon_struct3_4desc_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_desc); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_cudaChannelFormatDesc, 0, "desc", 0))) __PYX_ERR(0, 5636, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct3_4desc_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct3 *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)__pyx_v_desc)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12anon_struct3_4desc_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct3 *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *__pyx_v_desc) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 5635, 0, __PYX_ERR(0, 5635, __pyx_L1_error)); /* "cuda/cudart.pyx":5637 * @desc.setter * def desc(self, desc not None : cudaChannelFormatDesc): * string.memcpy(&self._ptr[0].res.linear.desc, desc.getPtr(), sizeof(self._ptr[0].res.linear.desc)) # <<<<<<<<<<<<<< * @property * def sizeInBytes(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_desc), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5637, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5637, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5637, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).res.linear.desc), ((struct cudaChannelFormatDesc *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).res.linear.desc)))); /* "cuda/cudart.pyx":5635 * def desc(self): * return self._desc * @desc.setter # <<<<<<<<<<<<<< * def desc(self, desc not None : cudaChannelFormatDesc): * string.memcpy(&self._ptr[0].res.linear.desc, desc.getPtr(), sizeof(self._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_AddTraceback("cuda.cudart.anon_struct3.desc.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5638 * def desc(self, desc not None : cudaChannelFormatDesc): * string.memcpy(&self._ptr[0].res.linear.desc, desc.getPtr(), sizeof(self._ptr[0].res.linear.desc)) * @property # <<<<<<<<<<<<<< * def sizeInBytes(self): * return self._ptr[0].res.linear.sizeInBytes */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12anon_struct3_11sizeInBytes_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct3_11sizeInBytes___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct3 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct3_11sizeInBytes___get__(struct __pyx_obj_4cuda_6cudart_anon_struct3 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5638, 0, __PYX_ERR(0, 5638, __pyx_L1_error)); /* "cuda/cudart.pyx":5640 * @property * def sizeInBytes(self): * return self._ptr[0].res.linear.sizeInBytes # <<<<<<<<<<<<<< * @sizeInBytes.setter * def sizeInBytes(self, size_t sizeInBytes): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).res.linear.sizeInBytes); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5640, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5638 * def desc(self, desc not None : cudaChannelFormatDesc): * string.memcpy(&self._ptr[0].res.linear.desc, desc.getPtr(), sizeof(self._ptr[0].res.linear.desc)) * @property # <<<<<<<<<<<<<< * def sizeInBytes(self): * return self._ptr[0].res.linear.sizeInBytes */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct3.sizeInBytes.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5641 * def sizeInBytes(self): * return self._ptr[0].res.linear.sizeInBytes * @sizeInBytes.setter # <<<<<<<<<<<<<< * def sizeInBytes(self, size_t sizeInBytes): * self._ptr[0].res.linear.sizeInBytes = sizeInBytes */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12anon_struct3_11sizeInBytes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_sizeInBytes); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_sizeInBytes); if (unlikely((__pyx_v_sizeInBytes == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 5642, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct3.sizeInBytes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct3_11sizeInBytes_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct3 *)__pyx_v_self), ((size_t)__pyx_v_sizeInBytes)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12anon_struct3_11sizeInBytes_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct3 *__pyx_v_self, size_t __pyx_v_sizeInBytes) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 5641, 0, __PYX_ERR(0, 5641, __pyx_L1_error)); /* "cuda/cudart.pyx":5643 * @sizeInBytes.setter * def sizeInBytes(self, size_t sizeInBytes): * self._ptr[0].res.linear.sizeInBytes = sizeInBytes # <<<<<<<<<<<<<< * * cdef class anon_struct4: */ (__pyx_v_self->_ptr[0]).res.linear.sizeInBytes = __pyx_v_sizeInBytes; /* "cuda/cudart.pyx":5641 * def sizeInBytes(self): * return self._ptr[0].res.linear.sizeInBytes * @sizeInBytes.setter # <<<<<<<<<<<<<< * def sizeInBytes(self, size_t sizeInBytes): * self._ptr[0].res.linear.sizeInBytes = sizeInBytes */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct3.sizeInBytes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_12anon_struct3_10__reduce_cython__, "anon_struct3.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_12anon_struct3_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct3_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct3_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct3_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct3 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct3_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct3 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__108) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct3.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_12anon_struct3_12__setstate_cython__, "anon_struct3.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_12anon_struct3_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct3_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct3_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct3.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct3_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct3 *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct3_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct3 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__109) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct3.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5666 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12anon_struct4_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_12anon_struct4_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 5666, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 5666, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5666, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 5666, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct4.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct4___cinit__(((struct __pyx_obj_4cuda_6cudart_anon_struct4 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12anon_struct4___cinit__(struct __pyx_obj_4cuda_6cudart_anon_struct4 *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 5666, 0, __PYX_ERR(0, 5666, __pyx_L1_error)); /* "cuda/cudart.pyx":5667 * """ * def __cinit__(self, void_ptr _ptr): * self._ptr = _ptr # <<<<<<<<<<<<<< * * def __init__(self, void_ptr _ptr): */ __pyx_v_self->_ptr = ((struct cudaResourceDesc *)__pyx_v__ptr); /* "cuda/cudart.pyx":5666 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct4.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":5669 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._desc = cudaChannelFormatDesc(_ptr=&self._ptr[0].res.pitch2D.desc) * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12anon_struct4_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_12anon_struct4_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 5669, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 5669, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5669, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 5669, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct4.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct4_2__init__(((struct __pyx_obj_4cuda_6cudart_anon_struct4 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12anon_struct4_2__init__(struct __pyx_obj_4cuda_6cudart_anon_struct4 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 5669, 0, __PYX_ERR(0, 5669, __pyx_L1_error)); /* "cuda/cudart.pyx":5670 * * def __init__(self, void_ptr _ptr): * self._desc = cudaChannelFormatDesc(_ptr=&self._ptr[0].res.pitch2D.desc) # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5670, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).res.pitch2D.desc))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5670, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 5670, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaChannelFormatDesc), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5670, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_desc); __Pyx_DECREF((PyObject *)__pyx_v_self->_desc); __pyx_v_self->_desc = ((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":5669 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._desc = cudaChannelFormatDesc(_ptr=&self._ptr[0].res.pitch2D.desc) * def __dealloc__(self): */ /* 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.cudart.anon_struct4.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5671 * def __init__(self, void_ptr _ptr): * self._desc = cudaChannelFormatDesc(_ptr=&self._ptr[0].res.pitch2D.desc) * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_12anon_struct4_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct4_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_anon_struct4 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_12anon_struct4_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct4 *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 5671, 0, __PYX_ERR(0, 5671, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.anon_struct4.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":5673 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].res.pitch2D * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct4_6getPtr, "anon_struct4.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_12anon_struct4_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct4_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct4_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct4_6getPtr(((struct __pyx_obj_4cuda_6cudart_anon_struct4 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct4_6getPtr(struct __pyx_obj_4cuda_6cudart_anon_struct4 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__110) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 5673, 0, __PYX_ERR(0, 5673, __pyx_L1_error)); /* "cuda/cudart.pyx":5674 * pass * def getPtr(self): * return &self._ptr[0].res.pitch2D # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).res.pitch2D))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5674, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5673 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].res.pitch2D * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct4.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5675 * def getPtr(self): * return &self._ptr[0].res.pitch2D * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12anon_struct4_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct4_8__repr__(((struct __pyx_obj_4cuda_6cudart_anon_struct4 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct4_8__repr__(struct __pyx_obj_4cuda_6cudart_anon_struct4 *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_9genexpr13__pyx_v_line = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 5675, 0, __PYX_ERR(0, 5675, __pyx_L1_error)); /* "cuda/cudart.pyx":5676 * return &self._ptr[0].res.pitch2D * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":5677 * def __repr__(self): * if self._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, 5677, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":5678 * if self._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/cudart.pyx":5679 * str_list = [] * try: * str_list += ['devPtr : ' + hex(self.devPtr)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['devPtr : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_devPtr_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5679, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5679, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_kp_u_devPtr, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5679, __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, 5679, __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)) __PYX_ERR(0, 5679, __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, 5679, __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/cudart.pyx":5678 * if self._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/cudart.pyx":5680 * try: * str_list += ['devPtr : ' + hex(self.devPtr)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['devPtr : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 5680, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":5681 * str_list += ['devPtr : ' + hex(self.devPtr)] * except ValueError: * str_list += ['devPtr : '] # <<<<<<<<<<<<<< * 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, 5681, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_devPtr_ValueError); __Pyx_GIVEREF(__pyx_kp_u_devPtr_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_devPtr_ValueError)) __PYX_ERR(0, 5681, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5681, __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/cudart.pyx":5678 * if self._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/cudart.pyx":5682 * except ValueError: * str_list += ['devPtr : '] * 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/cudart.pyx":5683 * str_list += ['devPtr : '] * try: * str_list += ['desc :\n' + '\n'.join([' ' + line for line in str(self.desc).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['desc : '] */ { /* enter inner scope */ __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5683, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_desc_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5683, __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, 5683, __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, 5683, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 5683, __pyx_L20_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_11); __Pyx_INCREF(__pyx_t_6); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 5683, __pyx_L20_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5683, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_9genexpr13__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr13__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5683, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 5683, __pyx_L20_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_9genexpr13__pyx_v_line); __pyx_9genexpr13__pyx_v_line = 0; goto __pyx_L24_exit_scope; __pyx_L20_error:; __Pyx_XDECREF(__pyx_9genexpr13__pyx_v_line); __pyx_9genexpr13__pyx_v_line = 0; goto __pyx_L12_error; __pyx_L24_exit_scope:; } /* exit inner scope */ __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5683, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_desc, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5683, __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, 5683, __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)) __PYX_ERR(0, 5683, __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, 5683, __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/cudart.pyx":5682 * except ValueError: * str_list += ['devPtr : '] * 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/cudart.pyx":5684 * try: * str_list += ['desc :\n' + '\n'.join([' ' + line for line in str(self.desc).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['desc : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 5684, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":5685 * str_list += ['desc :\n' + '\n'.join([' ' + line for line in str(self.desc).splitlines()])] * except ValueError: * str_list += ['desc : '] # <<<<<<<<<<<<<< * try: * str_list += ['width : ' + str(self.width)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5685, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_desc_ValueError); __Pyx_GIVEREF(__pyx_kp_u_desc_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_desc_ValueError)) __PYX_ERR(0, 5685, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5685, __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/cudart.pyx":5682 * except ValueError: * str_list += ['devPtr : '] * 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/cudart.pyx":5686 * except ValueError: * str_list += ['desc : '] * 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/cudart.pyx":5687 * str_list += ['desc : '] * try: * str_list += ['width : ' + str(self.width)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['width : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_width_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5687, __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, 5687, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_width, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5687, __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, 5687, __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)) __PYX_ERR(0, 5687, __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, 5687, __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/cudart.pyx":5686 * except ValueError: * str_list += ['desc : '] * 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/cudart.pyx":5688 * try: * str_list += ['width : ' + str(self.width)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['width : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 5688, __pyx_L29_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":5689 * str_list += ['width : ' + str(self.width)] * except ValueError: * str_list += ['width : '] # <<<<<<<<<<<<<< * try: * str_list += ['height : ' + str(self.height)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5689, __pyx_L29_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_width_ValueError); __Pyx_GIVEREF(__pyx_kp_u_width_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_width_ValueError)) __PYX_ERR(0, 5689, __pyx_L29_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5689, __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/cudart.pyx":5686 * except ValueError: * str_list += ['desc : '] * 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/cudart.pyx":5690 * except ValueError: * str_list += ['width : '] * 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/cudart.pyx":5691 * str_list += ['width : '] * try: * str_list += ['height : ' + str(self.height)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['height : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_height_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5691, __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, 5691, __pyx_L35_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_height, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5691, __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, 5691, __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)) __PYX_ERR(0, 5691, __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, 5691, __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/cudart.pyx":5690 * except ValueError: * str_list += ['width : '] * 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/cudart.pyx":5692 * try: * str_list += ['height : ' + str(self.height)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['height : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 5692, __pyx_L37_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":5693 * str_list += ['height : ' + str(self.height)] * except ValueError: * str_list += ['height : '] # <<<<<<<<<<<<<< * try: * str_list += ['pitchInBytes : ' + str(self.pitchInBytes)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5693, __pyx_L37_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_height_ValueError); __Pyx_GIVEREF(__pyx_kp_u_height_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_height_ValueError)) __PYX_ERR(0, 5693, __pyx_L37_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5693, __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/cudart.pyx":5690 * except ValueError: * str_list += ['width : '] * 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/cudart.pyx":5694 * except ValueError: * str_list += ['height : '] * 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/cudart.pyx":5695 * str_list += ['height : '] * try: * str_list += ['pitchInBytes : ' + str(self.pitchInBytes)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['pitchInBytes : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_pitchInBytes_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5695, __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, 5695, __pyx_L43_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_pitchInBytes, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5695, __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, 5695, __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)) __PYX_ERR(0, 5695, __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, 5695, __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/cudart.pyx":5694 * except ValueError: * str_list += ['height : '] * 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/cudart.pyx":5696 * try: * str_list += ['pitchInBytes : ' + str(self.pitchInBytes)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['pitchInBytes : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 5696, __pyx_L45_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":5697 * str_list += ['pitchInBytes : ' + str(self.pitchInBytes)] * except ValueError: * str_list += ['pitchInBytes : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5697, __pyx_L45_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_pitchInBytes_ValueError); __Pyx_GIVEREF(__pyx_kp_u_pitchInBytes_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_pitchInBytes_ValueError)) __PYX_ERR(0, 5697, __pyx_L45_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5697, __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/cudart.pyx":5694 * except ValueError: * str_list += ['height : '] * 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/cudart.pyx":5698 * except ValueError: * str_list += ['pitchInBytes : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5698, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5676 * return &self._ptr[0].res.pitch2D * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":5700 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def devPtr(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":5675 * def getPtr(self): * return &self._ptr[0].res.pitch2D * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.anon_struct4.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XDECREF(__pyx_9genexpr13__pyx_v_line); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5701 * else: * return '' * @property # <<<<<<<<<<<<<< * def devPtr(self): * return self._ptr[0].res.pitch2D.devPtr */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12anon_struct4_6devPtr_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct4_6devPtr___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct4 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct4_6devPtr___get__(struct __pyx_obj_4cuda_6cudart_anon_struct4 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5701, 0, __PYX_ERR(0, 5701, __pyx_L1_error)); /* "cuda/cudart.pyx":5703 * @property * def devPtr(self): * return self._ptr[0].res.pitch2D.devPtr # <<<<<<<<<<<<<< * @devPtr.setter * def devPtr(self, devPtr): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).res.pitch2D.devPtr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5703, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5701 * else: * return '' * @property # <<<<<<<<<<<<<< * def devPtr(self): * return self._ptr[0].res.pitch2D.devPtr */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct4.devPtr.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5704 * def devPtr(self): * return self._ptr[0].res.pitch2D.devPtr * @devPtr.setter # <<<<<<<<<<<<<< * def devPtr(self, devPtr): * _cdevPtr = utils.HelperInputVoidPtr(devPtr) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12anon_struct4_6devPtr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_devPtr); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct4_6devPtr_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct4 *)__pyx_v_self), ((PyObject *)__pyx_v_devPtr)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12anon_struct4_6devPtr_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct4 *__pyx_v_self, PyObject *__pyx_v_devPtr) { PyObject *__pyx_v__cdevPtr = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 5704, 0, __PYX_ERR(0, 5704, __pyx_L1_error)); /* "cuda/cudart.pyx":5706 * @devPtr.setter * def devPtr(self, devPtr): * _cdevPtr = utils.HelperInputVoidPtr(devPtr) # <<<<<<<<<<<<<< * self._ptr[0].res.pitch2D.devPtr = _cdevPtr.cptr * @property */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_devPtr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5706, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__cdevPtr = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":5707 * def devPtr(self, devPtr): * _cdevPtr = utils.HelperInputVoidPtr(devPtr) * self._ptr[0].res.pitch2D.devPtr = _cdevPtr.cptr # <<<<<<<<<<<<<< * @property * def desc(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v__cdevPtr, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5707, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5707, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).res.pitch2D.devPtr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":5704 * def devPtr(self): * return self._ptr[0].res.pitch2D.devPtr * @devPtr.setter # <<<<<<<<<<<<<< * def devPtr(self, devPtr): * _cdevPtr = utils.HelperInputVoidPtr(devPtr) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct4.devPtr.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v__cdevPtr); __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5708 * _cdevPtr = utils.HelperInputVoidPtr(devPtr) * self._ptr[0].res.pitch2D.devPtr = _cdevPtr.cptr * @property # <<<<<<<<<<<<<< * def desc(self): * return self._desc */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12anon_struct4_4desc_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct4_4desc___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct4 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct4_4desc___get__(struct __pyx_obj_4cuda_6cudart_anon_struct4 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5708, 0, __PYX_ERR(0, 5708, __pyx_L1_error)); /* "cuda/cudart.pyx":5710 * @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/cudart.pyx":5708 * _cdevPtr = utils.HelperInputVoidPtr(devPtr) * self._ptr[0].res.pitch2D.devPtr = _cdevPtr.cptr * @property # <<<<<<<<<<<<<< * def desc(self): * return self._desc */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct4.desc.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5711 * def desc(self): * return self._desc * @desc.setter # <<<<<<<<<<<<<< * def desc(self, desc not None : cudaChannelFormatDesc): * string.memcpy(&self._ptr[0].res.pitch2D.desc, desc.getPtr(), sizeof(self._ptr[0].res.pitch2D.desc)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12anon_struct4_4desc_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_desc); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_cudaChannelFormatDesc, 0, "desc", 0))) __PYX_ERR(0, 5712, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct4_4desc_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct4 *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)__pyx_v_desc)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12anon_struct4_4desc_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct4 *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *__pyx_v_desc) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 5711, 0, __PYX_ERR(0, 5711, __pyx_L1_error)); /* "cuda/cudart.pyx":5713 * @desc.setter * def desc(self, desc not None : cudaChannelFormatDesc): * string.memcpy(&self._ptr[0].res.pitch2D.desc, desc.getPtr(), sizeof(self._ptr[0].res.pitch2D.desc)) # <<<<<<<<<<<<<< * @property * def width(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_desc), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5713, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5713, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5713, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).res.pitch2D.desc), ((struct cudaChannelFormatDesc *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).res.pitch2D.desc)))); /* "cuda/cudart.pyx":5711 * def desc(self): * return self._desc * @desc.setter # <<<<<<<<<<<<<< * def desc(self, desc not None : cudaChannelFormatDesc): * string.memcpy(&self._ptr[0].res.pitch2D.desc, desc.getPtr(), sizeof(self._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_AddTraceback("cuda.cudart.anon_struct4.desc.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5714 * def desc(self, desc not None : cudaChannelFormatDesc): * string.memcpy(&self._ptr[0].res.pitch2D.desc, desc.getPtr(), sizeof(self._ptr[0].res.pitch2D.desc)) * @property # <<<<<<<<<<<<<< * def width(self): * return self._ptr[0].res.pitch2D.width */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12anon_struct4_5width_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct4_5width___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct4 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct4_5width___get__(struct __pyx_obj_4cuda_6cudart_anon_struct4 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5714, 0, __PYX_ERR(0, 5714, __pyx_L1_error)); /* "cuda/cudart.pyx":5716 * @property * def width(self): * return self._ptr[0].res.pitch2D.width # <<<<<<<<<<<<<< * @width.setter * def width(self, size_t width): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).res.pitch2D.width); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5716, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5714 * def desc(self, desc not None : cudaChannelFormatDesc): * string.memcpy(&self._ptr[0].res.pitch2D.desc, desc.getPtr(), sizeof(self._ptr[0].res.pitch2D.desc)) * @property # <<<<<<<<<<<<<< * def width(self): * return self._ptr[0].res.pitch2D.width */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct4.width.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5717 * def width(self): * return self._ptr[0].res.pitch2D.width * @width.setter # <<<<<<<<<<<<<< * def width(self, size_t width): * self._ptr[0].res.pitch2D.width = width */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12anon_struct4_5width_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_width); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_width); if (unlikely((__pyx_v_width == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 5718, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct4.width.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct4_5width_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct4 *)__pyx_v_self), ((size_t)__pyx_v_width)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12anon_struct4_5width_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct4 *__pyx_v_self, size_t __pyx_v_width) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 5717, 0, __PYX_ERR(0, 5717, __pyx_L1_error)); /* "cuda/cudart.pyx":5719 * @width.setter * def width(self, size_t width): * self._ptr[0].res.pitch2D.width = width # <<<<<<<<<<<<<< * @property * def height(self): */ (__pyx_v_self->_ptr[0]).res.pitch2D.width = __pyx_v_width; /* "cuda/cudart.pyx":5717 * def width(self): * return self._ptr[0].res.pitch2D.width * @width.setter # <<<<<<<<<<<<<< * def width(self, size_t width): * self._ptr[0].res.pitch2D.width = width */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct4.width.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":5720 * def width(self, size_t width): * self._ptr[0].res.pitch2D.width = width * @property # <<<<<<<<<<<<<< * def height(self): * return self._ptr[0].res.pitch2D.height */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12anon_struct4_6height_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct4_6height___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct4 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct4_6height___get__(struct __pyx_obj_4cuda_6cudart_anon_struct4 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5720, 0, __PYX_ERR(0, 5720, __pyx_L1_error)); /* "cuda/cudart.pyx":5722 * @property * def height(self): * return self._ptr[0].res.pitch2D.height # <<<<<<<<<<<<<< * @height.setter * def height(self, size_t height): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).res.pitch2D.height); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5722, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5720 * def width(self, size_t width): * self._ptr[0].res.pitch2D.width = width * @property # <<<<<<<<<<<<<< * def height(self): * return self._ptr[0].res.pitch2D.height */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct4.height.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5723 * def height(self): * return self._ptr[0].res.pitch2D.height * @height.setter # <<<<<<<<<<<<<< * def height(self, size_t height): * self._ptr[0].res.pitch2D.height = height */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12anon_struct4_6height_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_height); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_height); if (unlikely((__pyx_v_height == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 5724, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct4.height.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct4_6height_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct4 *)__pyx_v_self), ((size_t)__pyx_v_height)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12anon_struct4_6height_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct4 *__pyx_v_self, size_t __pyx_v_height) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 5723, 0, __PYX_ERR(0, 5723, __pyx_L1_error)); /* "cuda/cudart.pyx":5725 * @height.setter * def height(self, size_t height): * self._ptr[0].res.pitch2D.height = height # <<<<<<<<<<<<<< * @property * def pitchInBytes(self): */ (__pyx_v_self->_ptr[0]).res.pitch2D.height = __pyx_v_height; /* "cuda/cudart.pyx":5723 * def height(self): * return self._ptr[0].res.pitch2D.height * @height.setter # <<<<<<<<<<<<<< * def height(self, size_t height): * self._ptr[0].res.pitch2D.height = height */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct4.height.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":5726 * def height(self, size_t height): * self._ptr[0].res.pitch2D.height = height * @property # <<<<<<<<<<<<<< * def pitchInBytes(self): * return self._ptr[0].res.pitch2D.pitchInBytes */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12anon_struct4_12pitchInBytes_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct4_12pitchInBytes___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct4 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct4_12pitchInBytes___get__(struct __pyx_obj_4cuda_6cudart_anon_struct4 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5726, 0, __PYX_ERR(0, 5726, __pyx_L1_error)); /* "cuda/cudart.pyx":5728 * @property * def pitchInBytes(self): * return self._ptr[0].res.pitch2D.pitchInBytes # <<<<<<<<<<<<<< * @pitchInBytes.setter * def pitchInBytes(self, size_t pitchInBytes): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).res.pitch2D.pitchInBytes); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5728, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5726 * def height(self, size_t height): * self._ptr[0].res.pitch2D.height = height * @property # <<<<<<<<<<<<<< * def pitchInBytes(self): * return self._ptr[0].res.pitch2D.pitchInBytes */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct4.pitchInBytes.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5729 * def pitchInBytes(self): * return self._ptr[0].res.pitch2D.pitchInBytes * @pitchInBytes.setter # <<<<<<<<<<<<<< * def pitchInBytes(self, size_t pitchInBytes): * self._ptr[0].res.pitch2D.pitchInBytes = pitchInBytes */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12anon_struct4_12pitchInBytes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_pitchInBytes); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_pitchInBytes); if (unlikely((__pyx_v_pitchInBytes == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 5730, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct4.pitchInBytes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct4_12pitchInBytes_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct4 *)__pyx_v_self), ((size_t)__pyx_v_pitchInBytes)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12anon_struct4_12pitchInBytes_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct4 *__pyx_v_self, size_t __pyx_v_pitchInBytes) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 5729, 0, __PYX_ERR(0, 5729, __pyx_L1_error)); /* "cuda/cudart.pyx":5731 * @pitchInBytes.setter * def pitchInBytes(self, size_t pitchInBytes): * self._ptr[0].res.pitch2D.pitchInBytes = pitchInBytes # <<<<<<<<<<<<<< * * cdef class anon_union0: */ (__pyx_v_self->_ptr[0]).res.pitch2D.pitchInBytes = __pyx_v_pitchInBytes; /* "cuda/cudart.pyx":5729 * def pitchInBytes(self): * return self._ptr[0].res.pitch2D.pitchInBytes * @pitchInBytes.setter # <<<<<<<<<<<<<< * def pitchInBytes(self, size_t pitchInBytes): * self._ptr[0].res.pitch2D.pitchInBytes = pitchInBytes */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct4.pitchInBytes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_12anon_struct4_10__reduce_cython__, "anon_struct4.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_12anon_struct4_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct4_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct4_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct4_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct4 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct4_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct4 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__111) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct4.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_12anon_struct4_12__setstate_cython__, "anon_struct4.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_12anon_struct4_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct4_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct4_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct4.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct4_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct4 *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct4_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct4 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__112) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct4.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5752 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_11anon_union0_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_11anon_union0_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 5752, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 5752, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5752, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 5752, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_union0.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union0___cinit__(((struct __pyx_obj_4cuda_6cudart_anon_union0 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_11anon_union0___cinit__(struct __pyx_obj_4cuda_6cudart_anon_union0 *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 5752, 0, __PYX_ERR(0, 5752, __pyx_L1_error)); /* "cuda/cudart.pyx":5753 * """ * def __cinit__(self, void_ptr _ptr): * self._ptr = _ptr # <<<<<<<<<<<<<< * * def __init__(self, void_ptr _ptr): */ __pyx_v_self->_ptr = ((struct cudaResourceDesc *)__pyx_v__ptr); /* "cuda/cudart.pyx":5752 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_union0.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":5755 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._array = anon_struct1(_ptr=self._ptr) * self._mipmap = anon_struct2(_ptr=self._ptr) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_11anon_union0_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_11anon_union0_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 5755, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 5755, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5755, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 5755, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_union0.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union0_2__init__(((struct __pyx_obj_4cuda_6cudart_anon_union0 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_11anon_union0_2__init__(struct __pyx_obj_4cuda_6cudart_anon_union0 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 5755, 0, __PYX_ERR(0, 5755, __pyx_L1_error)); /* "cuda/cudart.pyx":5756 * * def __init__(self, void_ptr _ptr): * self._array = anon_struct1(_ptr=self._ptr) # <<<<<<<<<<<<<< * self._mipmap = anon_struct2(_ptr=self._ptr) * self._linear = anon_struct3(_ptr=self._ptr) */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5756, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5756, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 5756, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct1), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5756, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_array); __Pyx_DECREF((PyObject *)__pyx_v_self->_array); __pyx_v_self->_array = ((struct __pyx_obj_4cuda_6cudart_anon_struct1 *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":5757 * def __init__(self, void_ptr _ptr): * self._array = anon_struct1(_ptr=self._ptr) * self._mipmap = anon_struct2(_ptr=self._ptr) # <<<<<<<<<<<<<< * self._linear = anon_struct3(_ptr=self._ptr) * self._pitch2D = anon_struct4(_ptr=self._ptr) */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5757, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5757, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_ptr, __pyx_t_1) < 0) __PYX_ERR(0, 5757, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct2), __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5757, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GIVEREF(__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_6cudart_anon_struct2 *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":5758 * self._array = anon_struct1(_ptr=self._ptr) * self._mipmap = anon_struct2(_ptr=self._ptr) * self._linear = anon_struct3(_ptr=self._ptr) # <<<<<<<<<<<<<< * self._pitch2D = anon_struct4(_ptr=self._ptr) * def __dealloc__(self): */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5758, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5758, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 5758, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct3), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5758, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_linear); __Pyx_DECREF((PyObject *)__pyx_v_self->_linear); __pyx_v_self->_linear = ((struct __pyx_obj_4cuda_6cudart_anon_struct3 *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":5759 * self._mipmap = anon_struct2(_ptr=self._ptr) * self._linear = anon_struct3(_ptr=self._ptr) * self._pitch2D = anon_struct4(_ptr=self._ptr) # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5759, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5759, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_ptr, __pyx_t_1) < 0) __PYX_ERR(0, 5759, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct4), __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5759, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GIVEREF(__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_6cudart_anon_struct4 *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":5755 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._array = anon_struct1(_ptr=self._ptr) * self._mipmap = anon_struct2(_ptr=self._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.cudart.anon_union0.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5760 * self._linear = anon_struct3(_ptr=self._ptr) * self._pitch2D = anon_struct4(_ptr=self._ptr) * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_11anon_union0_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_11anon_union0_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_anon_union0 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_11anon_union0_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_union0 *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 5760, 0, __PYX_ERR(0, 5760, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.anon_union0.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":5762 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].res * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_11anon_union0_6getPtr, "anon_union0.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_11anon_union0_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union0_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union0_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union0_6getPtr(((struct __pyx_obj_4cuda_6cudart_anon_union0 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union0_6getPtr(struct __pyx_obj_4cuda_6cudart_anon_union0 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__113) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 5762, 0, __PYX_ERR(0, 5762, __pyx_L1_error)); /* "cuda/cudart.pyx":5763 * pass * def getPtr(self): * return &self._ptr[0].res # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).res))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5763, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5762 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].res * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_union0.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5764 * def getPtr(self): * return &self._ptr[0].res * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_11anon_union0_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_11anon_union0_8__repr__(((struct __pyx_obj_4cuda_6cudart_anon_union0 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union0_8__repr__(struct __pyx_obj_4cuda_6cudart_anon_union0 *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_9genexpr14__pyx_v_line = NULL; PyObject *__pyx_9genexpr15__pyx_v_line = NULL; PyObject *__pyx_9genexpr16__pyx_v_line = NULL; PyObject *__pyx_9genexpr17__pyx_v_line = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 5764, 0, __PYX_ERR(0, 5764, __pyx_L1_error)); /* "cuda/cudart.pyx":5765 * return &self._ptr[0].res * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":5766 * def __repr__(self): * if self._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, 5766, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":5767 * if self._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/cudart.pyx":5768 * str_list = [] * try: * str_list += ['array :\n' + '\n'.join([' ' + line for line in str(self.array).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['array : '] */ { /* enter inner scope */ __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5768, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_array_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5768, __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, 5768, __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, 5768, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 5768, __pyx_L12_error) #endif if (__pyx_t_8 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_7, __pyx_t_8); __Pyx_INCREF(__pyx_t_6); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(0, 5768, __pyx_L12_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5768, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_9genexpr14__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr14__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5768, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 5768, __pyx_L12_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_9genexpr14__pyx_v_line); __pyx_9genexpr14__pyx_v_line = 0; goto __pyx_L16_exit_scope; __pyx_L12_error:; __Pyx_XDECREF(__pyx_9genexpr14__pyx_v_line); __pyx_9genexpr14__pyx_v_line = 0; goto __pyx_L4_error; __pyx_L16_exit_scope:; } /* exit inner scope */ __pyx_t_7 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 5768, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_array_3, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5768, __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, 5768, __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)) __PYX_ERR(0, 5768, __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, 5768, __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/cudart.pyx":5767 * if self._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/cudart.pyx":5769 * try: * str_list += ['array :\n' + '\n'.join([' ' + line for line in str(self.array).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['array : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.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, 5769, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":5770 * str_list += ['array :\n' + '\n'.join([' ' + line for line in str(self.array).splitlines()])] * except ValueError: * str_list += ['array : '] # <<<<<<<<<<<<<< * 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, 5770, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_array_ValueError); __Pyx_GIVEREF(__pyx_kp_u_array_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_array_ValueError)) __PYX_ERR(0, 5770, __pyx_L6_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 5770, __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/cudart.pyx":5767 * if self._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/cudart.pyx":5771 * except ValueError: * str_list += ['array : '] * 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/cudart.pyx":5772 * str_list += ['array : '] * try: * str_list += ['mipmap :\n' + '\n'.join([' ' + line for line in str(self.mipmap).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['mipmap : '] */ { /* enter inner scope */ __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5772, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_mipmap_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 5772, __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, 5772, __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, 5772, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 5772, __pyx_L27_error) #endif if (__pyx_t_8 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_7 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_8); __Pyx_INCREF(__pyx_t_7); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(0, 5772, __pyx_L27_error) #else __pyx_t_7 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 5772, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_7); #endif __Pyx_XDECREF_SET(__pyx_9genexpr15__pyx_v_line, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr15__pyx_v_line); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 5772, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_7); if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_7))) __PYX_ERR(0, 5772, __pyx_L27_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_9genexpr15__pyx_v_line); __pyx_9genexpr15__pyx_v_line = 0; goto __pyx_L31_exit_scope; __pyx_L27_error:; __Pyx_XDECREF(__pyx_9genexpr15__pyx_v_line); __pyx_9genexpr15__pyx_v_line = 0; goto __pyx_L19_error; __pyx_L31_exit_scope:; } /* exit inner scope */ __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5772, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_mipmap_3, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5772, __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, 5772, __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)) __PYX_ERR(0, 5772, __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, 5772, __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/cudart.pyx":5771 * except ValueError: * str_list += ['array : '] * 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/cudart.pyx":5773 * try: * str_list += ['mipmap :\n' + '\n'.join([' ' + line for line in str(self.mipmap).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['mipmap : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.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, 5773, __pyx_L21_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":5774 * str_list += ['mipmap :\n' + '\n'.join([' ' + line for line in str(self.mipmap).splitlines()])] * except ValueError: * str_list += ['mipmap : '] # <<<<<<<<<<<<<< * 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, 5774, __pyx_L21_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_mipmap_ValueError); __Pyx_GIVEREF(__pyx_kp_u_mipmap_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_mipmap_ValueError)) __PYX_ERR(0, 5774, __pyx_L21_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5774, __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/cudart.pyx":5771 * except ValueError: * str_list += ['array : '] * 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/cudart.pyx":5775 * except ValueError: * str_list += ['mipmap : '] * 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/cudart.pyx":5776 * str_list += ['mipmap : '] * try: * str_list += ['linear :\n' + '\n'.join([' ' + line for line in str(self.linear).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['linear : '] */ { /* enter inner scope */ __pyx_t_7 = PyList_New(0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 5776, __pyx_L42_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_linear_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5776, __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, 5776, __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, 5776, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 5776, __pyx_L42_error) #endif if (__pyx_t_8 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_2 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_8); __Pyx_INCREF(__pyx_t_2); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(0, 5776, __pyx_L42_error) #else __pyx_t_2 = __Pyx_PySequence_ITEM(__pyx_t_6, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5776, __pyx_L42_error) __Pyx_GOTREF(__pyx_t_2); #endif __Pyx_XDECREF_SET(__pyx_9genexpr16__pyx_v_line, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr16__pyx_v_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5776, __pyx_L42_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__Pyx_ListComp_Append(__pyx_t_7, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 5776, __pyx_L42_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_9genexpr16__pyx_v_line); __pyx_9genexpr16__pyx_v_line = 0; goto __pyx_L46_exit_scope; __pyx_L42_error:; __Pyx_XDECREF(__pyx_9genexpr16__pyx_v_line); __pyx_9genexpr16__pyx_v_line = 0; goto __pyx_L34_error; __pyx_L46_exit_scope:; } /* exit inner scope */ __pyx_t_6 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5776, __pyx_L34_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_linear, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 5776, __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, 5776, __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)) __PYX_ERR(0, 5776, __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, 5776, __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/cudart.pyx":5775 * except ValueError: * str_list += ['mipmap : '] * 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/cudart.pyx":5777 * try: * str_list += ['linear :\n' + '\n'.join([' ' + line for line in str(self.linear).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['linear : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.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, 5777, __pyx_L36_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":5778 * str_list += ['linear :\n' + '\n'.join([' ' + line for line in str(self.linear).splitlines()])] * except ValueError: * str_list += ['linear : '] # <<<<<<<<<<<<<< * 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, 5778, __pyx_L36_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_linear_ValueError); __Pyx_GIVEREF(__pyx_kp_u_linear_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_linear_ValueError)) __PYX_ERR(0, 5778, __pyx_L36_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 5778, __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/cudart.pyx":5775 * except ValueError: * str_list += ['mipmap : '] * 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/cudart.pyx":5779 * except ValueError: * str_list += ['linear : '] * 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/cudart.pyx":5780 * str_list += ['linear : '] * try: * str_list += ['pitch2D :\n' + '\n'.join([' ' + line for line in str(self.pitch2D).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['pitch2D : '] */ { /* enter inner scope */ __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5780, __pyx_L57_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_pitch2D_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5780, __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, 5780, __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, 5780, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 5780, __pyx_L57_error) #endif if (__pyx_t_8 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_7, __pyx_t_8); __Pyx_INCREF(__pyx_t_6); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(0, 5780, __pyx_L57_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5780, __pyx_L57_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_9genexpr17__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr17__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5780, __pyx_L57_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 5780, __pyx_L57_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_9genexpr17__pyx_v_line); __pyx_9genexpr17__pyx_v_line = 0; goto __pyx_L61_exit_scope; __pyx_L57_error:; __Pyx_XDECREF(__pyx_9genexpr17__pyx_v_line); __pyx_9genexpr17__pyx_v_line = 0; goto __pyx_L49_error; __pyx_L61_exit_scope:; } /* exit inner scope */ __pyx_t_7 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 5780, __pyx_L49_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_pitch2D, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5780, __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, 5780, __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)) __PYX_ERR(0, 5780, __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, 5780, __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/cudart.pyx":5779 * except ValueError: * str_list += ['linear : '] * 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/cudart.pyx":5781 * try: * str_list += ['pitch2D :\n' + '\n'.join([' ' + line for line in str(self.pitch2D).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['pitch2D : '] * return '\n'.join(str_list) */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.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, 5781, __pyx_L51_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":5782 * str_list += ['pitch2D :\n' + '\n'.join([' ' + line for line in str(self.pitch2D).splitlines()])] * except ValueError: * str_list += ['pitch2D : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 5782, __pyx_L51_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_pitch2D_ValueError); __Pyx_GIVEREF(__pyx_kp_u_pitch2D_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_pitch2D_ValueError)) __PYX_ERR(0, 5782, __pyx_L51_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5782, __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/cudart.pyx":5779 * except ValueError: * str_list += ['linear : '] * 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/cudart.pyx":5783 * except ValueError: * str_list += ['pitch2D : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_6 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5783, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5765 * return &self._ptr[0].res * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":5785 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def array(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":5764 * def getPtr(self): * return &self._ptr[0].res * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.anon_union0.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XDECREF(__pyx_9genexpr14__pyx_v_line); __Pyx_XDECREF(__pyx_9genexpr15__pyx_v_line); __Pyx_XDECREF(__pyx_9genexpr16__pyx_v_line); __Pyx_XDECREF(__pyx_9genexpr17__pyx_v_line); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5786 * else: * return '' * @property # <<<<<<<<<<<<<< * def array(self): * return self._array */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_11anon_union0_5array_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_11anon_union0_5array___get__(((struct __pyx_obj_4cuda_6cudart_anon_union0 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union0_5array___get__(struct __pyx_obj_4cuda_6cudart_anon_union0 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5786, 0, __PYX_ERR(0, 5786, __pyx_L1_error)); /* "cuda/cudart.pyx":5788 * @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/cudart.pyx":5786 * else: * return '' * @property # <<<<<<<<<<<<<< * def array(self): * return self._array */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_union0.array.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5789 * def array(self): * return self._array * @array.setter # <<<<<<<<<<<<<< * def array(self, array not None : anon_struct1): * string.memcpy(&self._ptr[0].res.array, array.getPtr(), sizeof(self._ptr[0].res.array)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_11anon_union0_5array_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_array); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_anon_struct1, 0, "array", 0))) __PYX_ERR(0, 5790, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union0_5array_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_union0 *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_anon_struct1 *)__pyx_v_array)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_11anon_union0_5array_2__set__(struct __pyx_obj_4cuda_6cudart_anon_union0 *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_anon_struct1 *__pyx_v_array) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 5789, 0, __PYX_ERR(0, 5789, __pyx_L1_error)); /* "cuda/cudart.pyx":5791 * @array.setter * def array(self, array not None : anon_struct1): * string.memcpy(&self._ptr[0].res.array, array.getPtr(), sizeof(self._ptr[0].res.array)) # <<<<<<<<<<<<<< * @property * def mipmap(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_array), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5791, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5791, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5791, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).res.array), ((struct anon_struct1 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).res.array)))); /* "cuda/cudart.pyx":5789 * def array(self): * return self._array * @array.setter # <<<<<<<<<<<<<< * def array(self, array not None : anon_struct1): * string.memcpy(&self._ptr[0].res.array, array.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.anon_union0.array.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5792 * def array(self, array not None : anon_struct1): * string.memcpy(&self._ptr[0].res.array, array.getPtr(), sizeof(self._ptr[0].res.array)) * @property # <<<<<<<<<<<<<< * def mipmap(self): * return self._mipmap */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_11anon_union0_6mipmap_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_11anon_union0_6mipmap___get__(((struct __pyx_obj_4cuda_6cudart_anon_union0 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union0_6mipmap___get__(struct __pyx_obj_4cuda_6cudart_anon_union0 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5792, 0, __PYX_ERR(0, 5792, __pyx_L1_error)); /* "cuda/cudart.pyx":5794 * @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/cudart.pyx":5792 * def array(self, array not None : anon_struct1): * string.memcpy(&self._ptr[0].res.array, array.getPtr(), sizeof(self._ptr[0].res.array)) * @property # <<<<<<<<<<<<<< * def mipmap(self): * return self._mipmap */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_union0.mipmap.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5795 * def mipmap(self): * return self._mipmap * @mipmap.setter # <<<<<<<<<<<<<< * def mipmap(self, mipmap not None : anon_struct2): * string.memcpy(&self._ptr[0].res.mipmap, mipmap.getPtr(), sizeof(self._ptr[0].res.mipmap)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_11anon_union0_6mipmap_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_mipmap); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_anon_struct2, 0, "mipmap", 0))) __PYX_ERR(0, 5796, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union0_6mipmap_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_union0 *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_anon_struct2 *)__pyx_v_mipmap)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_11anon_union0_6mipmap_2__set__(struct __pyx_obj_4cuda_6cudart_anon_union0 *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_anon_struct2 *__pyx_v_mipmap) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 5795, 0, __PYX_ERR(0, 5795, __pyx_L1_error)); /* "cuda/cudart.pyx":5797 * @mipmap.setter * def mipmap(self, mipmap not None : anon_struct2): * string.memcpy(&self._ptr[0].res.mipmap, mipmap.getPtr(), sizeof(self._ptr[0].res.mipmap)) # <<<<<<<<<<<<<< * @property * def linear(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_mipmap), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5797, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5797, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5797, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).res.mipmap), ((struct anon_struct2 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).res.mipmap)))); /* "cuda/cudart.pyx":5795 * def mipmap(self): * return self._mipmap * @mipmap.setter # <<<<<<<<<<<<<< * def mipmap(self, mipmap not None : anon_struct2): * string.memcpy(&self._ptr[0].res.mipmap, mipmap.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.anon_union0.mipmap.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5798 * def mipmap(self, mipmap not None : anon_struct2): * string.memcpy(&self._ptr[0].res.mipmap, mipmap.getPtr(), sizeof(self._ptr[0].res.mipmap)) * @property # <<<<<<<<<<<<<< * def linear(self): * return self._linear */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_11anon_union0_6linear_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_11anon_union0_6linear___get__(((struct __pyx_obj_4cuda_6cudart_anon_union0 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union0_6linear___get__(struct __pyx_obj_4cuda_6cudart_anon_union0 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5798, 0, __PYX_ERR(0, 5798, __pyx_L1_error)); /* "cuda/cudart.pyx":5800 * @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/cudart.pyx":5798 * def mipmap(self, mipmap not None : anon_struct2): * string.memcpy(&self._ptr[0].res.mipmap, mipmap.getPtr(), sizeof(self._ptr[0].res.mipmap)) * @property # <<<<<<<<<<<<<< * def linear(self): * return self._linear */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_union0.linear.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5801 * def linear(self): * return self._linear * @linear.setter # <<<<<<<<<<<<<< * def linear(self, linear not None : anon_struct3): * string.memcpy(&self._ptr[0].res.linear, linear.getPtr(), sizeof(self._ptr[0].res.linear)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_11anon_union0_6linear_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_linear); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_anon_struct3, 0, "linear", 0))) __PYX_ERR(0, 5802, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union0_6linear_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_union0 *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_anon_struct3 *)__pyx_v_linear)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_11anon_union0_6linear_2__set__(struct __pyx_obj_4cuda_6cudart_anon_union0 *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_anon_struct3 *__pyx_v_linear) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 5801, 0, __PYX_ERR(0, 5801, __pyx_L1_error)); /* "cuda/cudart.pyx":5803 * @linear.setter * def linear(self, linear not None : anon_struct3): * string.memcpy(&self._ptr[0].res.linear, linear.getPtr(), sizeof(self._ptr[0].res.linear)) # <<<<<<<<<<<<<< * @property * def pitch2D(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_linear), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5803, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5803, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5803, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).res.linear), ((struct anon_struct3 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).res.linear)))); /* "cuda/cudart.pyx":5801 * def linear(self): * return self._linear * @linear.setter # <<<<<<<<<<<<<< * def linear(self, linear not None : anon_struct3): * string.memcpy(&self._ptr[0].res.linear, linear.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.anon_union0.linear.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5804 * def linear(self, linear not None : anon_struct3): * string.memcpy(&self._ptr[0].res.linear, linear.getPtr(), sizeof(self._ptr[0].res.linear)) * @property # <<<<<<<<<<<<<< * def pitch2D(self): * return self._pitch2D */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_11anon_union0_7pitch2D_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_11anon_union0_7pitch2D___get__(((struct __pyx_obj_4cuda_6cudart_anon_union0 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union0_7pitch2D___get__(struct __pyx_obj_4cuda_6cudart_anon_union0 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5804, 0, __PYX_ERR(0, 5804, __pyx_L1_error)); /* "cuda/cudart.pyx":5806 * @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/cudart.pyx":5804 * def linear(self, linear not None : anon_struct3): * string.memcpy(&self._ptr[0].res.linear, linear.getPtr(), sizeof(self._ptr[0].res.linear)) * @property # <<<<<<<<<<<<<< * def pitch2D(self): * return self._pitch2D */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_union0.pitch2D.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5807 * def pitch2D(self): * return self._pitch2D * @pitch2D.setter # <<<<<<<<<<<<<< * def pitch2D(self, pitch2D not None : anon_struct4): * string.memcpy(&self._ptr[0].res.pitch2D, pitch2D.getPtr(), sizeof(self._ptr[0].res.pitch2D)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_11anon_union0_7pitch2D_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_pitch2D); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_anon_struct4, 0, "pitch2D", 0))) __PYX_ERR(0, 5808, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union0_7pitch2D_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_union0 *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_anon_struct4 *)__pyx_v_pitch2D)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_11anon_union0_7pitch2D_2__set__(struct __pyx_obj_4cuda_6cudart_anon_union0 *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_anon_struct4 *__pyx_v_pitch2D) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 5807, 0, __PYX_ERR(0, 5807, __pyx_L1_error)); /* "cuda/cudart.pyx":5809 * @pitch2D.setter * def pitch2D(self, pitch2D not None : anon_struct4): * string.memcpy(&self._ptr[0].res.pitch2D, pitch2D.getPtr(), sizeof(self._ptr[0].res.pitch2D)) # <<<<<<<<<<<<<< * * cdef class cudaResourceDesc: */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_pitch2D), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5809, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5809, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5809, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).res.pitch2D), ((struct anon_struct4 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).res.pitch2D)))); /* "cuda/cudart.pyx":5807 * def pitch2D(self): * return self._pitch2D * @pitch2D.setter # <<<<<<<<<<<<<< * def pitch2D(self, pitch2D not None : anon_struct4): * string.memcpy(&self._ptr[0].res.pitch2D, pitch2D.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.anon_union0.pitch2D.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __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_6cudart_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_6cudart_11anon_union0_10__reduce_cython__, "anon_union0.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_11anon_union0_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union0_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union0_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union0_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_anon_union0 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union0_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_union0 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__114) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_union0.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_11anon_union0_12__setstate_cython__, "anon_union0.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_11anon_union0_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union0_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union0_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_union0.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union0_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_anon_union0 *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union0_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_union0 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__115) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_union0.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5828 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._val_ptr = calloc(1, sizeof(ccudart.cudaResourceDesc)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_16cudaResourceDesc_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_16cudaResourceDesc_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 5828, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 5828, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5828, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 5828, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaResourceDesc.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_16cudaResourceDesc___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_16cudaResourceDesc___cinit__(struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; struct cudaResourceDesc *__pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 5828, 0, __PYX_ERR(0, 5828, __pyx_L1_error)); /* "cuda/cudart.pyx":5829 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._val_ptr = calloc(1, sizeof(ccudart.cudaResourceDesc)) * self._ptr = self._val_ptr */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":5830 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._val_ptr = calloc(1, sizeof(ccudart.cudaResourceDesc)) # <<<<<<<<<<<<<< * self._ptr = self._val_ptr * else: */ __pyx_v_self->_val_ptr = ((struct cudaResourceDesc *)calloc(1, (sizeof(struct cudaResourceDesc)))); /* "cuda/cudart.pyx":5831 * if _ptr == 0: * self._val_ptr = calloc(1, sizeof(ccudart.cudaResourceDesc)) * self._ptr = self._val_ptr # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_t_2 = __pyx_v_self->_val_ptr; __pyx_v_self->_ptr = __pyx_t_2; /* "cuda/cudart.pyx":5829 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._val_ptr = calloc(1, sizeof(ccudart.cudaResourceDesc)) * self._ptr = self._val_ptr */ goto __pyx_L3; } /* "cuda/cudart.pyx":5833 * self._ptr = self._val_ptr * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * self._res = anon_union0(_ptr=self._ptr) */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaResourceDesc *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":5828 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._val_ptr = calloc(1, sizeof(ccudart.cudaResourceDesc)) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaResourceDesc.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":5834 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._res = anon_union0(_ptr=self._ptr) * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_16cudaResourceDesc_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_16cudaResourceDesc_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 5834, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 5834, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5834, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 5834, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaResourceDesc.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_16cudaResourceDesc_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_16cudaResourceDesc_2__init__(struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 5834, 0, __PYX_ERR(0, 5834, __pyx_L1_error)); /* "cuda/cudart.pyx":5835 * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): * self._res = anon_union0(_ptr=self._ptr) # <<<<<<<<<<<<<< * def __dealloc__(self): * if self._val_ptr is not NULL: */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5835, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5835, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 5835, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_anon_union0), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5835, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_res); __Pyx_DECREF((PyObject *)__pyx_v_self->_res); __pyx_v_self->_res = ((struct __pyx_obj_4cuda_6cudart_anon_union0 *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":5834 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._res = anon_union0(_ptr=self._ptr) * def __dealloc__(self): */ /* 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.cudart.cudaResourceDesc.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5836 * def __init__(self, void_ptr _ptr = 0): * self._res = anon_union0(_ptr=self._ptr) * def __dealloc__(self): # <<<<<<<<<<<<<< * if self._val_ptr is not NULL: * free(self._val_ptr) */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_16cudaResourceDesc_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_16cudaResourceDesc_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_16cudaResourceDesc_4__dealloc__(struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 5836, 0, __PYX_ERR(0, 5836, __pyx_L1_error)); /* "cuda/cudart.pyx":5837 * self._res = anon_union0(_ptr=self._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/cudart.pyx":5838 * def __dealloc__(self): * if self._val_ptr is not NULL: * free(self._val_ptr) # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ free(__pyx_v_self->_val_ptr); /* "cuda/cudart.pyx":5837 * self._res = anon_union0(_ptr=self._ptr) * def __dealloc__(self): * if self._val_ptr is not NULL: # <<<<<<<<<<<<<< * free(self._val_ptr) * def getPtr(self): */ } /* "cuda/cudart.pyx":5836 * def __init__(self, void_ptr _ptr = 0): * self._res = anon_union0(_ptr=self._ptr) * def __dealloc__(self): # <<<<<<<<<<<<<< * if self._val_ptr is not NULL: * free(self._val_ptr) */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaResourceDesc.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":5839 * if self._val_ptr is not NULL: * free(self._val_ptr) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_16cudaResourceDesc_6getPtr, "cudaResourceDesc.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_16cudaResourceDesc_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_16cudaResourceDesc_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_16cudaResourceDesc_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_16cudaResourceDesc_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_16cudaResourceDesc_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__116) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 5839, 0, __PYX_ERR(0, 5839, __pyx_L1_error)); /* "cuda/cudart.pyx":5840 * free(self._val_ptr) * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5840, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5839 * if self._val_ptr is not NULL: * free(self._val_ptr) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaResourceDesc.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5841 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_16cudaResourceDesc_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_16cudaResourceDesc_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_16cudaResourceDesc_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_9genexpr18__pyx_v_line = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 5841, 0, __PYX_ERR(0, 5841, __pyx_L1_error)); /* "cuda/cudart.pyx":5842 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":5843 * def __repr__(self): * if self._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, 5843, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":5844 * if self._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/cudart.pyx":5845 * str_list = [] * try: * str_list += ['resType : ' + str(self.resType)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['resType : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_resType_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5845, __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, 5845, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_resType, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5845, __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, 5845, __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)) __PYX_ERR(0, 5845, __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, 5845, __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/cudart.pyx":5844 * if self._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/cudart.pyx":5846 * try: * str_list += ['resType : ' + str(self.resType)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['resType : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaResourceDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 5846, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":5847 * str_list += ['resType : ' + str(self.resType)] * except ValueError: * str_list += ['resType : '] # <<<<<<<<<<<<<< * 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, 5847, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_resType_ValueError); __Pyx_GIVEREF(__pyx_kp_u_resType_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_resType_ValueError)) __PYX_ERR(0, 5847, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5847, __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/cudart.pyx":5844 * if self._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/cudart.pyx":5848 * except ValueError: * str_list += ['resType : '] * 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/cudart.pyx":5849 * str_list += ['resType : '] * try: * str_list += ['res :\n' + '\n'.join([' ' + line for line in str(self.res).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['res : '] */ { /* enter inner scope */ __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5849, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_res_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5849, __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, 5849, __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, 5849, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 5849, __pyx_L20_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_11); __Pyx_INCREF(__pyx_t_6); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 5849, __pyx_L20_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5849, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_9genexpr18__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr18__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5849, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 5849, __pyx_L20_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_9genexpr18__pyx_v_line); __pyx_9genexpr18__pyx_v_line = 0; goto __pyx_L24_exit_scope; __pyx_L20_error:; __Pyx_XDECREF(__pyx_9genexpr18__pyx_v_line); __pyx_9genexpr18__pyx_v_line = 0; goto __pyx_L12_error; __pyx_L24_exit_scope:; } /* exit inner scope */ __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5849, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_res, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5849, __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, 5849, __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)) __PYX_ERR(0, 5849, __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, 5849, __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/cudart.pyx":5848 * except ValueError: * str_list += ['resType : '] * 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/cudart.pyx":5850 * try: * str_list += ['res :\n' + '\n'.join([' ' + line for line in str(self.res).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['res : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaResourceDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 5850, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":5851 * str_list += ['res :\n' + '\n'.join([' ' + line for line in str(self.res).splitlines()])] * except ValueError: * str_list += ['res : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5851, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_res_ValueError); __Pyx_GIVEREF(__pyx_kp_u_res_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_res_ValueError)) __PYX_ERR(0, 5851, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5851, __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/cudart.pyx":5848 * except ValueError: * str_list += ['resType : '] * 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/cudart.pyx":5852 * except ValueError: * str_list += ['res : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_6 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5852, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5842 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":5854 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def resType(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":5841 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaResourceDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XDECREF(__pyx_9genexpr18__pyx_v_line); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5855 * else: * return '' * @property # <<<<<<<<<<<<<< * def resType(self): * return cudaResourceType(self._ptr[0].resType) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_16cudaResourceDesc_7resType_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_16cudaResourceDesc_7resType___get__(((struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_16cudaResourceDesc_7resType___get__(struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5855, 0, __PYX_ERR(0, 5855, __pyx_L1_error)); /* "cuda/cudart.pyx":5857 * @property * def resType(self): * return cudaResourceType(self._ptr[0].resType) # <<<<<<<<<<<<<< * @resType.setter * def resType(self, resType not None : cudaResourceType): */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaResourceType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5857, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaResourceType((__pyx_v_self->_ptr[0]).resType); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5857, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5857, __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/cudart.pyx":5855 * else: * return '' * @property # <<<<<<<<<<<<<< * def resType(self): * return cudaResourceType(self._ptr[0].resType) */ /* 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.cudart.cudaResourceDesc.resType.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5858 * def resType(self): * return cudaResourceType(self._ptr[0].resType) * @resType.setter # <<<<<<<<<<<<<< * def resType(self, resType not None : cudaResourceType): * self._ptr[0].resType = resType.value */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_16cudaResourceDesc_7resType_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_resType); /*proto*/ static int __pyx_pw_4cuda_6cudart_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, 5859, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_16cudaResourceDesc_7resType_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *)__pyx_v_self), ((PyObject *)__pyx_v_resType)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_16cudaResourceDesc_7resType_2__set__(struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *__pyx_v_self, PyObject *__pyx_v_resType) { int __pyx_r; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 5858, 0, __PYX_ERR(0, 5858, __pyx_L1_error)); /* "cuda/cudart.pyx":5860 * @resType.setter * def resType(self, resType not None : cudaResourceType): * self._ptr[0].resType = resType.value # <<<<<<<<<<<<<< * @property * def res(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_resType, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5860, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaResourceType)__Pyx_PyInt_As_enum__cudaResourceType(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 5860, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).resType = __pyx_t_2; /* "cuda/cudart.pyx":5858 * def resType(self): * return cudaResourceType(self._ptr[0].resType) * @resType.setter # <<<<<<<<<<<<<< * def resType(self, resType not None : cudaResourceType): * self._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.cudart.cudaResourceDesc.resType.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5861 * def resType(self, resType not None : cudaResourceType): * self._ptr[0].resType = resType.value * @property # <<<<<<<<<<<<<< * def res(self): * return self._res */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_16cudaResourceDesc_3res_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_16cudaResourceDesc_3res___get__(((struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_16cudaResourceDesc_3res___get__(struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5861, 0, __PYX_ERR(0, 5861, __pyx_L1_error)); /* "cuda/cudart.pyx":5863 * @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/cudart.pyx":5861 * def resType(self, resType not None : cudaResourceType): * self._ptr[0].resType = resType.value * @property # <<<<<<<<<<<<<< * def res(self): * return self._res */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaResourceDesc.res.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5864 * def res(self): * return self._res * @res.setter # <<<<<<<<<<<<<< * def res(self, res not None : anon_union0): * string.memcpy(&self._ptr[0].res, res.getPtr(), sizeof(self._ptr[0].res)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_16cudaResourceDesc_3res_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_res); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_anon_union0, 0, "res", 0))) __PYX_ERR(0, 5865, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_16cudaResourceDesc_3res_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_anon_union0 *)__pyx_v_res)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_16cudaResourceDesc_3res_2__set__(struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_anon_union0 *__pyx_v_res) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 5864, 0, __PYX_ERR(0, 5864, __pyx_L1_error)); /* "cuda/cudart.pyx":5866 * @res.setter * def res(self, res not None : anon_union0): * string.memcpy(&self._ptr[0].res, res.getPtr(), sizeof(self._ptr[0].res)) # <<<<<<<<<<<<<< * * cdef class cudaResourceViewDesc: */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_res), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5866, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5866, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5866, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).res), ((union anon_union0 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).res)))); /* "cuda/cudart.pyx":5864 * def res(self): * return self._res * @res.setter # <<<<<<<<<<<<<< * def res(self, res not None : anon_union0): * string.memcpy(&self._ptr[0].res, res.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaResourceDesc.res.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __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_6cudart_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_6cudart_16cudaResourceDesc_10__reduce_cython__, "cudaResourceDesc.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_16cudaResourceDesc_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_16cudaResourceDesc_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_16cudaResourceDesc_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_16cudaResourceDesc_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_16cudaResourceDesc_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__117) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaResourceDesc.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_16cudaResourceDesc_12__setstate_cython__, "cudaResourceDesc.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_16cudaResourceDesc_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_16cudaResourceDesc_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_16cudaResourceDesc_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaResourceDesc.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_16cudaResourceDesc_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_16cudaResourceDesc_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__118) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaResourceDesc.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5897 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 5897, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 5897, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5897, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 5897, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaResourceViewDesc.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaResourceViewDesc___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_20cudaResourceViewDesc___cinit__(struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 5897, 0, __PYX_ERR(0, 5897, __pyx_L1_error)); /* "cuda/cudart.pyx":5898 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":5899 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaResourceViewDesc__val); /* "cuda/cudart.pyx":5898 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":5901 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * pass */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaResourceViewDesc *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":5897 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaResourceViewDesc.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":5902 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 5902, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 5902, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5902, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 5902, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaResourceViewDesc.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaResourceViewDesc_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_20cudaResourceViewDesc_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 5902, 0, __PYX_ERR(0, 5902, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaResourceViewDesc.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":5904 * def __init__(self, void_ptr _ptr = 0): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_20cudaResourceViewDesc_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_20cudaResourceViewDesc_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 5904, 0, __PYX_ERR(0, 5904, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaResourceViewDesc.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":5906 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaResourceViewDesc_6getPtr, "cudaResourceViewDesc.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_20cudaResourceViewDesc_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaResourceViewDesc_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaResourceViewDesc_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaResourceViewDesc_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__119) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 5906, 0, __PYX_ERR(0, 5906, __pyx_L1_error)); /* "cuda/cudart.pyx":5907 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5907, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5906 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaResourceViewDesc.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5908 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaResourceViewDesc_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaResourceViewDesc_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 5908, 0, __PYX_ERR(0, 5908, __pyx_L1_error)); /* "cuda/cudart.pyx":5909 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":5910 * def __repr__(self): * if self._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, 5910, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":5911 * if self._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/cudart.pyx":5912 * str_list = [] * try: * str_list += ['format : ' + str(self.format)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['format : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_format_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5912, __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, 5912, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_format, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5912, __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, 5912, __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)) __PYX_ERR(0, 5912, __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, 5912, __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/cudart.pyx":5911 * if self._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/cudart.pyx":5913 * try: * str_list += ['format : ' + str(self.format)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['format : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaResourceViewDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 5913, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":5914 * str_list += ['format : ' + str(self.format)] * except ValueError: * str_list += ['format : '] # <<<<<<<<<<<<<< * try: * str_list += ['width : ' + str(self.width)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5914, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_format_ValueError); __Pyx_GIVEREF(__pyx_kp_u_format_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_format_ValueError)) __PYX_ERR(0, 5914, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5914, __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/cudart.pyx":5911 * if self._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/cudart.pyx":5915 * except ValueError: * str_list += ['format : '] * 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/cudart.pyx":5916 * str_list += ['format : '] * try: * str_list += ['width : ' + str(self.width)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['width : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_width_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5916, __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, 5916, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_width, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5916, __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, 5916, __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)) __PYX_ERR(0, 5916, __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, 5916, __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/cudart.pyx":5915 * except ValueError: * str_list += ['format : '] * 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/cudart.pyx":5917 * try: * str_list += ['width : ' + str(self.width)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['width : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaResourceViewDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 5917, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":5918 * str_list += ['width : ' + str(self.width)] * except ValueError: * str_list += ['width : '] # <<<<<<<<<<<<<< * try: * str_list += ['height : ' + str(self.height)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5918, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_width_ValueError); __Pyx_GIVEREF(__pyx_kp_u_width_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_width_ValueError)) __PYX_ERR(0, 5918, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5918, __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/cudart.pyx":5915 * except ValueError: * str_list += ['format : '] * 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/cudart.pyx":5919 * except ValueError: * str_list += ['width : '] * 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/cudart.pyx":5920 * str_list += ['width : '] * try: * str_list += ['height : ' + str(self.height)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['height : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_height_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5920, __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, 5920, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_height, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5920, __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, 5920, __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)) __PYX_ERR(0, 5920, __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, 5920, __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/cudart.pyx":5919 * except ValueError: * str_list += ['width : '] * 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/cudart.pyx":5921 * try: * str_list += ['height : ' + str(self.height)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['height : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaResourceViewDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 5921, __pyx_L22_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":5922 * str_list += ['height : ' + str(self.height)] * except ValueError: * str_list += ['height : '] # <<<<<<<<<<<<<< * try: * str_list += ['depth : ' + str(self.depth)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5922, __pyx_L22_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_height_ValueError); __Pyx_GIVEREF(__pyx_kp_u_height_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_height_ValueError)) __PYX_ERR(0, 5922, __pyx_L22_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5922, __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/cudart.pyx":5919 * except ValueError: * str_list += ['width : '] * 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/cudart.pyx":5923 * except ValueError: * str_list += ['height : '] * 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/cudart.pyx":5924 * str_list += ['height : '] * try: * str_list += ['depth : ' + str(self.depth)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['depth : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_depth_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5924, __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, 5924, __pyx_L28_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_depth, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5924, __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, 5924, __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)) __PYX_ERR(0, 5924, __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, 5924, __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/cudart.pyx":5923 * except ValueError: * str_list += ['height : '] * 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/cudart.pyx":5925 * try: * str_list += ['depth : ' + str(self.depth)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['depth : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaResourceViewDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 5925, __pyx_L30_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":5926 * str_list += ['depth : ' + str(self.depth)] * except ValueError: * str_list += ['depth : '] # <<<<<<<<<<<<<< * try: * str_list += ['firstMipmapLevel : ' + str(self.firstMipmapLevel)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5926, __pyx_L30_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_depth_ValueError); __Pyx_GIVEREF(__pyx_kp_u_depth_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_depth_ValueError)) __PYX_ERR(0, 5926, __pyx_L30_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5926, __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/cudart.pyx":5923 * except ValueError: * str_list += ['height : '] * 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/cudart.pyx":5927 * except ValueError: * str_list += ['depth : '] * 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/cudart.pyx":5928 * str_list += ['depth : '] * try: * str_list += ['firstMipmapLevel : ' + str(self.firstMipmapLevel)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['firstMipmapLevel : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_firstMipmapLevel_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5928, __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, 5928, __pyx_L36_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_firstMipmapLevel, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5928, __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, 5928, __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)) __PYX_ERR(0, 5928, __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, 5928, __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/cudart.pyx":5927 * except ValueError: * str_list += ['depth : '] * 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/cudart.pyx":5929 * try: * str_list += ['firstMipmapLevel : ' + str(self.firstMipmapLevel)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['firstMipmapLevel : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaResourceViewDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 5929, __pyx_L38_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":5930 * str_list += ['firstMipmapLevel : ' + str(self.firstMipmapLevel)] * except ValueError: * str_list += ['firstMipmapLevel : '] # <<<<<<<<<<<<<< * try: * str_list += ['lastMipmapLevel : ' + str(self.lastMipmapLevel)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5930, __pyx_L38_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_firstMipmapLevel_ValueError); __Pyx_GIVEREF(__pyx_kp_u_firstMipmapLevel_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_firstMipmapLevel_ValueError)) __PYX_ERR(0, 5930, __pyx_L38_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5930, __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/cudart.pyx":5927 * except ValueError: * str_list += ['depth : '] * 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/cudart.pyx":5931 * except ValueError: * str_list += ['firstMipmapLevel : '] * 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/cudart.pyx":5932 * str_list += ['firstMipmapLevel : '] * try: * str_list += ['lastMipmapLevel : ' + str(self.lastMipmapLevel)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['lastMipmapLevel : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_lastMipmapLevel_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5932, __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, 5932, __pyx_L44_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_lastMipmapLevel, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5932, __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, 5932, __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)) __PYX_ERR(0, 5932, __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, 5932, __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/cudart.pyx":5931 * except ValueError: * str_list += ['firstMipmapLevel : '] * 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/cudart.pyx":5933 * try: * str_list += ['lastMipmapLevel : ' + str(self.lastMipmapLevel)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['lastMipmapLevel : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaResourceViewDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 5933, __pyx_L46_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":5934 * str_list += ['lastMipmapLevel : ' + str(self.lastMipmapLevel)] * except ValueError: * str_list += ['lastMipmapLevel : '] # <<<<<<<<<<<<<< * try: * str_list += ['firstLayer : ' + str(self.firstLayer)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5934, __pyx_L46_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_lastMipmapLevel_ValueError); __Pyx_GIVEREF(__pyx_kp_u_lastMipmapLevel_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_lastMipmapLevel_ValueError)) __PYX_ERR(0, 5934, __pyx_L46_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5934, __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/cudart.pyx":5931 * except ValueError: * str_list += ['firstMipmapLevel : '] * 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/cudart.pyx":5935 * except ValueError: * str_list += ['lastMipmapLevel : '] * 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/cudart.pyx":5936 * str_list += ['lastMipmapLevel : '] * try: * str_list += ['firstLayer : ' + str(self.firstLayer)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['firstLayer : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_firstLayer_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5936, __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, 5936, __pyx_L52_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_firstLayer, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5936, __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, 5936, __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)) __PYX_ERR(0, 5936, __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, 5936, __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/cudart.pyx":5935 * except ValueError: * str_list += ['lastMipmapLevel : '] * 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/cudart.pyx":5937 * try: * str_list += ['firstLayer : ' + str(self.firstLayer)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['firstLayer : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaResourceViewDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 5937, __pyx_L54_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":5938 * str_list += ['firstLayer : ' + str(self.firstLayer)] * except ValueError: * str_list += ['firstLayer : '] # <<<<<<<<<<<<<< * try: * str_list += ['lastLayer : ' + str(self.lastLayer)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5938, __pyx_L54_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_firstLayer_ValueError); __Pyx_GIVEREF(__pyx_kp_u_firstLayer_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_firstLayer_ValueError)) __PYX_ERR(0, 5938, __pyx_L54_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5938, __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/cudart.pyx":5935 * except ValueError: * str_list += ['lastMipmapLevel : '] * 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/cudart.pyx":5939 * except ValueError: * str_list += ['firstLayer : '] * 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/cudart.pyx":5940 * str_list += ['firstLayer : '] * try: * str_list += ['lastLayer : ' + str(self.lastLayer)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['lastLayer : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_lastLayer_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5940, __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, 5940, __pyx_L60_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_lastLayer, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5940, __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, 5940, __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)) __PYX_ERR(0, 5940, __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, 5940, __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/cudart.pyx":5939 * except ValueError: * str_list += ['firstLayer : '] * 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/cudart.pyx":5941 * try: * str_list += ['lastLayer : ' + str(self.lastLayer)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['lastLayer : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaResourceViewDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 5941, __pyx_L62_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":5942 * str_list += ['lastLayer : ' + str(self.lastLayer)] * except ValueError: * str_list += ['lastLayer : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5942, __pyx_L62_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_lastLayer_ValueError); __Pyx_GIVEREF(__pyx_kp_u_lastLayer_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_lastLayer_ValueError)) __PYX_ERR(0, 5942, __pyx_L62_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5942, __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/cudart.pyx":5939 * except ValueError: * str_list += ['firstLayer : '] * 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/cudart.pyx":5943 * except ValueError: * str_list += ['lastLayer : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5943, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5909 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":5945 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def format(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":5908 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaResourceViewDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5946 * else: * return '' * @property # <<<<<<<<<<<<<< * def format(self): * return cudaResourceViewFormat(self._ptr[0].format) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_6format_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaResourceViewDesc_6format___get__(((struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaResourceViewDesc_6format___get__(struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5946, 0, __PYX_ERR(0, 5946, __pyx_L1_error)); /* "cuda/cudart.pyx":5948 * @property * def format(self): * return cudaResourceViewFormat(self._ptr[0].format) # <<<<<<<<<<<<<< * @format.setter * def format(self, format not None : cudaResourceViewFormat): */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaResourceViewFormat); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5948, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaResourceViewFormat((__pyx_v_self->_ptr[0]).format); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5948, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5948, __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/cudart.pyx":5946 * else: * return '' * @property # <<<<<<<<<<<<<< * def format(self): * return cudaResourceViewFormat(self._ptr[0].format) */ /* 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.cudart.cudaResourceViewDesc.format.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5949 * def format(self): * return cudaResourceViewFormat(self._ptr[0].format) * @format.setter # <<<<<<<<<<<<<< * def format(self, format not None : cudaResourceViewFormat): * self._ptr[0].format = format.value */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_6format_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_format); /*proto*/ static int __pyx_pw_4cuda_6cudart_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, 5950, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_20cudaResourceViewDesc_6format_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *)__pyx_v_self), ((PyObject *)__pyx_v_format)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_20cudaResourceViewDesc_6format_2__set__(struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *__pyx_v_self, PyObject *__pyx_v_format) { int __pyx_r; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 5949, 0, __PYX_ERR(0, 5949, __pyx_L1_error)); /* "cuda/cudart.pyx":5951 * @format.setter * def format(self, format not None : cudaResourceViewFormat): * self._ptr[0].format = format.value # <<<<<<<<<<<<<< * @property * def width(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_format, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5951, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaResourceViewFormat)__Pyx_PyInt_As_enum__cudaResourceViewFormat(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 5951, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).format = __pyx_t_2; /* "cuda/cudart.pyx":5949 * def format(self): * return cudaResourceViewFormat(self._ptr[0].format) * @format.setter # <<<<<<<<<<<<<< * def format(self, format not None : cudaResourceViewFormat): * self._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.cudart.cudaResourceViewDesc.format.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5952 * def format(self, format not None : cudaResourceViewFormat): * self._ptr[0].format = format.value * @property # <<<<<<<<<<<<<< * def width(self): * return self._ptr[0].width */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_5width_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaResourceViewDesc_5width___get__(((struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaResourceViewDesc_5width___get__(struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5952, 0, __PYX_ERR(0, 5952, __pyx_L1_error)); /* "cuda/cudart.pyx":5954 * @property * def width(self): * return self._ptr[0].width # <<<<<<<<<<<<<< * @width.setter * def width(self, size_t width): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).width); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5954, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5952 * def format(self, format not None : cudaResourceViewFormat): * self._ptr[0].format = format.value * @property # <<<<<<<<<<<<<< * def width(self): * return self._ptr[0].width */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaResourceViewDesc.width.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5955 * def width(self): * return self._ptr[0].width * @width.setter # <<<<<<<<<<<<<< * def width(self, size_t width): * self._ptr[0].width = width */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_5width_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_width); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_width); if (unlikely((__pyx_v_width == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 5956, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaResourceViewDesc.width.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaResourceViewDesc_5width_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *)__pyx_v_self), ((size_t)__pyx_v_width)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_20cudaResourceViewDesc_5width_2__set__(struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *__pyx_v_self, size_t __pyx_v_width) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 5955, 0, __PYX_ERR(0, 5955, __pyx_L1_error)); /* "cuda/cudart.pyx":5957 * @width.setter * def width(self, size_t width): * self._ptr[0].width = width # <<<<<<<<<<<<<< * @property * def height(self): */ (__pyx_v_self->_ptr[0]).width = __pyx_v_width; /* "cuda/cudart.pyx":5955 * def width(self): * return self._ptr[0].width * @width.setter # <<<<<<<<<<<<<< * def width(self, size_t width): * self._ptr[0].width = width */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaResourceViewDesc.width.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":5958 * def width(self, size_t width): * self._ptr[0].width = width * @property # <<<<<<<<<<<<<< * def height(self): * return self._ptr[0].height */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_6height_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaResourceViewDesc_6height___get__(((struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaResourceViewDesc_6height___get__(struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5958, 0, __PYX_ERR(0, 5958, __pyx_L1_error)); /* "cuda/cudart.pyx":5960 * @property * def height(self): * return self._ptr[0].height # <<<<<<<<<<<<<< * @height.setter * def height(self, size_t height): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).height); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5960, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5958 * def width(self, size_t width): * self._ptr[0].width = width * @property # <<<<<<<<<<<<<< * def height(self): * return self._ptr[0].height */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaResourceViewDesc.height.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5961 * def height(self): * return self._ptr[0].height * @height.setter # <<<<<<<<<<<<<< * def height(self, size_t height): * self._ptr[0].height = height */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_6height_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_height); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_height); if (unlikely((__pyx_v_height == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 5962, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaResourceViewDesc.height.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaResourceViewDesc_6height_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *)__pyx_v_self), ((size_t)__pyx_v_height)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_20cudaResourceViewDesc_6height_2__set__(struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *__pyx_v_self, size_t __pyx_v_height) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 5961, 0, __PYX_ERR(0, 5961, __pyx_L1_error)); /* "cuda/cudart.pyx":5963 * @height.setter * def height(self, size_t height): * self._ptr[0].height = height # <<<<<<<<<<<<<< * @property * def depth(self): */ (__pyx_v_self->_ptr[0]).height = __pyx_v_height; /* "cuda/cudart.pyx":5961 * def height(self): * return self._ptr[0].height * @height.setter # <<<<<<<<<<<<<< * def height(self, size_t height): * self._ptr[0].height = height */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaResourceViewDesc.height.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":5964 * def height(self, size_t height): * self._ptr[0].height = height * @property # <<<<<<<<<<<<<< * def depth(self): * return self._ptr[0].depth */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_5depth_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaResourceViewDesc_5depth___get__(((struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaResourceViewDesc_5depth___get__(struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5964, 0, __PYX_ERR(0, 5964, __pyx_L1_error)); /* "cuda/cudart.pyx":5966 * @property * def depth(self): * return self._ptr[0].depth # <<<<<<<<<<<<<< * @depth.setter * def depth(self, size_t depth): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).depth); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5966, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5964 * def height(self, size_t height): * self._ptr[0].height = height * @property # <<<<<<<<<<<<<< * def depth(self): * return self._ptr[0].depth */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaResourceViewDesc.depth.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5967 * def depth(self): * return self._ptr[0].depth * @depth.setter # <<<<<<<<<<<<<< * def depth(self, size_t depth): * self._ptr[0].depth = depth */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_5depth_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_depth); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_depth); if (unlikely((__pyx_v_depth == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 5968, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaResourceViewDesc.depth.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaResourceViewDesc_5depth_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *)__pyx_v_self), ((size_t)__pyx_v_depth)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_20cudaResourceViewDesc_5depth_2__set__(struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *__pyx_v_self, size_t __pyx_v_depth) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 5967, 0, __PYX_ERR(0, 5967, __pyx_L1_error)); /* "cuda/cudart.pyx":5969 * @depth.setter * def depth(self, size_t depth): * self._ptr[0].depth = depth # <<<<<<<<<<<<<< * @property * def firstMipmapLevel(self): */ (__pyx_v_self->_ptr[0]).depth = __pyx_v_depth; /* "cuda/cudart.pyx":5967 * def depth(self): * return self._ptr[0].depth * @depth.setter # <<<<<<<<<<<<<< * def depth(self, size_t depth): * self._ptr[0].depth = depth */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaResourceViewDesc.depth.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":5970 * def depth(self, size_t depth): * self._ptr[0].depth = depth * @property # <<<<<<<<<<<<<< * def firstMipmapLevel(self): * return self._ptr[0].firstMipmapLevel */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_16firstMipmapLevel_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaResourceViewDesc_16firstMipmapLevel___get__(((struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaResourceViewDesc_16firstMipmapLevel___get__(struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5970, 0, __PYX_ERR(0, 5970, __pyx_L1_error)); /* "cuda/cudart.pyx":5972 * @property * def firstMipmapLevel(self): * return self._ptr[0].firstMipmapLevel # <<<<<<<<<<<<<< * @firstMipmapLevel.setter * def firstMipmapLevel(self, unsigned int firstMipmapLevel): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).firstMipmapLevel); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5972, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5970 * def depth(self, size_t depth): * self._ptr[0].depth = depth * @property # <<<<<<<<<<<<<< * def firstMipmapLevel(self): * return self._ptr[0].firstMipmapLevel */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaResourceViewDesc.firstMipmapLevel.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5973 * def firstMipmapLevel(self): * return self._ptr[0].firstMipmapLevel * @firstMipmapLevel.setter # <<<<<<<<<<<<<< * def firstMipmapLevel(self, unsigned int firstMipmapLevel): * self._ptr[0].firstMipmapLevel = firstMipmapLevel */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_16firstMipmapLevel_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_firstMipmapLevel); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_firstMipmapLevel); if (unlikely((__pyx_v_firstMipmapLevel == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5974, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaResourceViewDesc.firstMipmapLevel.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaResourceViewDesc_16firstMipmapLevel_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *)__pyx_v_self), ((unsigned int)__pyx_v_firstMipmapLevel)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_20cudaResourceViewDesc_16firstMipmapLevel_2__set__(struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *__pyx_v_self, unsigned int __pyx_v_firstMipmapLevel) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 5973, 0, __PYX_ERR(0, 5973, __pyx_L1_error)); /* "cuda/cudart.pyx":5975 * @firstMipmapLevel.setter * def firstMipmapLevel(self, unsigned int firstMipmapLevel): * self._ptr[0].firstMipmapLevel = firstMipmapLevel # <<<<<<<<<<<<<< * @property * def lastMipmapLevel(self): */ (__pyx_v_self->_ptr[0]).firstMipmapLevel = __pyx_v_firstMipmapLevel; /* "cuda/cudart.pyx":5973 * def firstMipmapLevel(self): * return self._ptr[0].firstMipmapLevel * @firstMipmapLevel.setter # <<<<<<<<<<<<<< * def firstMipmapLevel(self, unsigned int firstMipmapLevel): * self._ptr[0].firstMipmapLevel = firstMipmapLevel */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaResourceViewDesc.firstMipmapLevel.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":5976 * def firstMipmapLevel(self, unsigned int firstMipmapLevel): * self._ptr[0].firstMipmapLevel = firstMipmapLevel * @property # <<<<<<<<<<<<<< * def lastMipmapLevel(self): * return self._ptr[0].lastMipmapLevel */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_15lastMipmapLevel_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaResourceViewDesc_15lastMipmapLevel___get__(((struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaResourceViewDesc_15lastMipmapLevel___get__(struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5976, 0, __PYX_ERR(0, 5976, __pyx_L1_error)); /* "cuda/cudart.pyx":5978 * @property * def lastMipmapLevel(self): * return self._ptr[0].lastMipmapLevel # <<<<<<<<<<<<<< * @lastMipmapLevel.setter * def lastMipmapLevel(self, unsigned int lastMipmapLevel): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).lastMipmapLevel); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5978, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5976 * def firstMipmapLevel(self, unsigned int firstMipmapLevel): * self._ptr[0].firstMipmapLevel = firstMipmapLevel * @property # <<<<<<<<<<<<<< * def lastMipmapLevel(self): * return self._ptr[0].lastMipmapLevel */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaResourceViewDesc.lastMipmapLevel.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5979 * def lastMipmapLevel(self): * return self._ptr[0].lastMipmapLevel * @lastMipmapLevel.setter # <<<<<<<<<<<<<< * def lastMipmapLevel(self, unsigned int lastMipmapLevel): * self._ptr[0].lastMipmapLevel = lastMipmapLevel */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_15lastMipmapLevel_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_lastMipmapLevel); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_lastMipmapLevel); if (unlikely((__pyx_v_lastMipmapLevel == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5980, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaResourceViewDesc.lastMipmapLevel.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaResourceViewDesc_15lastMipmapLevel_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *)__pyx_v_self), ((unsigned int)__pyx_v_lastMipmapLevel)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_20cudaResourceViewDesc_15lastMipmapLevel_2__set__(struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *__pyx_v_self, unsigned int __pyx_v_lastMipmapLevel) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 5979, 0, __PYX_ERR(0, 5979, __pyx_L1_error)); /* "cuda/cudart.pyx":5981 * @lastMipmapLevel.setter * def lastMipmapLevel(self, unsigned int lastMipmapLevel): * self._ptr[0].lastMipmapLevel = lastMipmapLevel # <<<<<<<<<<<<<< * @property * def firstLayer(self): */ (__pyx_v_self->_ptr[0]).lastMipmapLevel = __pyx_v_lastMipmapLevel; /* "cuda/cudart.pyx":5979 * def lastMipmapLevel(self): * return self._ptr[0].lastMipmapLevel * @lastMipmapLevel.setter # <<<<<<<<<<<<<< * def lastMipmapLevel(self, unsigned int lastMipmapLevel): * self._ptr[0].lastMipmapLevel = lastMipmapLevel */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaResourceViewDesc.lastMipmapLevel.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":5982 * def lastMipmapLevel(self, unsigned int lastMipmapLevel): * self._ptr[0].lastMipmapLevel = lastMipmapLevel * @property # <<<<<<<<<<<<<< * def firstLayer(self): * return self._ptr[0].firstLayer */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_10firstLayer_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaResourceViewDesc_10firstLayer___get__(((struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaResourceViewDesc_10firstLayer___get__(struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5982, 0, __PYX_ERR(0, 5982, __pyx_L1_error)); /* "cuda/cudart.pyx":5984 * @property * def firstLayer(self): * return self._ptr[0].firstLayer # <<<<<<<<<<<<<< * @firstLayer.setter * def firstLayer(self, unsigned int firstLayer): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).firstLayer); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5984, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5982 * def lastMipmapLevel(self, unsigned int lastMipmapLevel): * self._ptr[0].lastMipmapLevel = lastMipmapLevel * @property # <<<<<<<<<<<<<< * def firstLayer(self): * return self._ptr[0].firstLayer */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaResourceViewDesc.firstLayer.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5985 * def firstLayer(self): * return self._ptr[0].firstLayer * @firstLayer.setter # <<<<<<<<<<<<<< * def firstLayer(self, unsigned int firstLayer): * self._ptr[0].firstLayer = firstLayer */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_10firstLayer_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_firstLayer); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_firstLayer); if (unlikely((__pyx_v_firstLayer == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5986, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaResourceViewDesc.firstLayer.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaResourceViewDesc_10firstLayer_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *)__pyx_v_self), ((unsigned int)__pyx_v_firstLayer)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_20cudaResourceViewDesc_10firstLayer_2__set__(struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *__pyx_v_self, unsigned int __pyx_v_firstLayer) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 5985, 0, __PYX_ERR(0, 5985, __pyx_L1_error)); /* "cuda/cudart.pyx":5987 * @firstLayer.setter * def firstLayer(self, unsigned int firstLayer): * self._ptr[0].firstLayer = firstLayer # <<<<<<<<<<<<<< * @property * def lastLayer(self): */ (__pyx_v_self->_ptr[0]).firstLayer = __pyx_v_firstLayer; /* "cuda/cudart.pyx":5985 * def firstLayer(self): * return self._ptr[0].firstLayer * @firstLayer.setter # <<<<<<<<<<<<<< * def firstLayer(self, unsigned int firstLayer): * self._ptr[0].firstLayer = firstLayer */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaResourceViewDesc.firstLayer.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":5988 * def firstLayer(self, unsigned int firstLayer): * self._ptr[0].firstLayer = firstLayer * @property # <<<<<<<<<<<<<< * def lastLayer(self): * return self._ptr[0].lastLayer */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_9lastLayer_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaResourceViewDesc_9lastLayer___get__(((struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaResourceViewDesc_9lastLayer___get__(struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 5988, 0, __PYX_ERR(0, 5988, __pyx_L1_error)); /* "cuda/cudart.pyx":5990 * @property * def lastLayer(self): * return self._ptr[0].lastLayer # <<<<<<<<<<<<<< * @lastLayer.setter * def lastLayer(self, unsigned int lastLayer): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).lastLayer); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5990, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":5988 * def firstLayer(self, unsigned int firstLayer): * self._ptr[0].firstLayer = firstLayer * @property # <<<<<<<<<<<<<< * def lastLayer(self): * return self._ptr[0].lastLayer */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaResourceViewDesc.lastLayer.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":5991 * def lastLayer(self): * return self._ptr[0].lastLayer * @lastLayer.setter # <<<<<<<<<<<<<< * def lastLayer(self, unsigned int lastLayer): * self._ptr[0].lastLayer = lastLayer */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_9lastLayer_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_lastLayer); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_lastLayer); if (unlikely((__pyx_v_lastLayer == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5992, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaResourceViewDesc.lastLayer.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaResourceViewDesc_9lastLayer_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *)__pyx_v_self), ((unsigned int)__pyx_v_lastLayer)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_20cudaResourceViewDesc_9lastLayer_2__set__(struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *__pyx_v_self, unsigned int __pyx_v_lastLayer) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 5991, 0, __PYX_ERR(0, 5991, __pyx_L1_error)); /* "cuda/cudart.pyx":5993 * @lastLayer.setter * def lastLayer(self, unsigned int lastLayer): * self._ptr[0].lastLayer = lastLayer # <<<<<<<<<<<<<< * * cdef class cudaPointerAttributes: */ (__pyx_v_self->_ptr[0]).lastLayer = __pyx_v_lastLayer; /* "cuda/cudart.pyx":5991 * def lastLayer(self): * return self._ptr[0].lastLayer * @lastLayer.setter # <<<<<<<<<<<<<< * def lastLayer(self, unsigned int lastLayer): * self._ptr[0].lastLayer = lastLayer */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaResourceViewDesc.lastLayer.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_20cudaResourceViewDesc_10__reduce_cython__, "cudaResourceViewDesc.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_20cudaResourceViewDesc_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaResourceViewDesc_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaResourceViewDesc_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaResourceViewDesc_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__120) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaResourceViewDesc.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_20cudaResourceViewDesc_12__setstate_cython__, "cudaResourceViewDesc.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_20cudaResourceViewDesc_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaResourceViewDesc_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaResourceViewDesc.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaResourceViewDesc_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaResourceViewDesc_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__121) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaResourceViewDesc.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6027 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_21cudaPointerAttributes_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_21cudaPointerAttributes_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 6027, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 6027, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6027, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 6027, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaPointerAttributes.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_21cudaPointerAttributes___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_21cudaPointerAttributes___cinit__(struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 6027, 0, __PYX_ERR(0, 6027, __pyx_L1_error)); /* "cuda/cudart.pyx":6028 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":6029 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaPointerAttributes__val); /* "cuda/cudart.pyx":6028 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":6031 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * pass */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaPointerAttributes *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":6027 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaPointerAttributes.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6032 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_21cudaPointerAttributes_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_21cudaPointerAttributes_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 6032, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 6032, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6032, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 6032, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaPointerAttributes.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_21cudaPointerAttributes_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_21cudaPointerAttributes_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 6032, 0, __PYX_ERR(0, 6032, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaPointerAttributes.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6034 * def __init__(self, void_ptr _ptr = 0): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_21cudaPointerAttributes_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_21cudaPointerAttributes_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_21cudaPointerAttributes_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 6034, 0, __PYX_ERR(0, 6034, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaPointerAttributes.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":6036 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_21cudaPointerAttributes_6getPtr, "cudaPointerAttributes.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_21cudaPointerAttributes_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_21cudaPointerAttributes_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_21cudaPointerAttributes_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_21cudaPointerAttributes_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaPointerAttributes_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__122) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 6036, 0, __PYX_ERR(0, 6036, __pyx_L1_error)); /* "cuda/cudart.pyx":6037 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6037, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6036 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaPointerAttributes.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6038 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_21cudaPointerAttributes_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_21cudaPointerAttributes_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaPointerAttributes_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 6038, 0, __PYX_ERR(0, 6038, __pyx_L1_error)); /* "cuda/cudart.pyx":6039 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":6040 * def __repr__(self): * if self._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, 6040, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":6041 * if self._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/cudart.pyx":6042 * str_list = [] * try: * str_list += ['type : ' + str(self.type)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['type : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_type_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6042, __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, 6042, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_type, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6042, __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, 6042, __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)) __PYX_ERR(0, 6042, __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, 6042, __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/cudart.pyx":6041 * if self._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/cudart.pyx":6043 * try: * str_list += ['type : ' + str(self.type)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['type : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaPointerAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 6043, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":6044 * str_list += ['type : ' + str(self.type)] * except ValueError: * str_list += ['type : '] # <<<<<<<<<<<<<< * try: * str_list += ['device : ' + str(self.device)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6044, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_type_ValueError); __Pyx_GIVEREF(__pyx_kp_u_type_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_type_ValueError)) __PYX_ERR(0, 6044, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6044, __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/cudart.pyx":6041 * if self._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/cudart.pyx":6045 * except ValueError: * str_list += ['type : '] * 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/cudart.pyx":6046 * str_list += ['type : '] * try: * str_list += ['device : ' + str(self.device)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['device : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_device_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6046, __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, 6046, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_device, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6046, __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, 6046, __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)) __PYX_ERR(0, 6046, __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, 6046, __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/cudart.pyx":6045 * except ValueError: * str_list += ['type : '] * 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/cudart.pyx":6047 * try: * str_list += ['device : ' + str(self.device)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['device : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaPointerAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 6047, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":6048 * str_list += ['device : ' + str(self.device)] * except ValueError: * str_list += ['device : '] # <<<<<<<<<<<<<< * try: * str_list += ['devicePointer : ' + hex(self.devicePointer)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6048, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_device_ValueError); __Pyx_GIVEREF(__pyx_kp_u_device_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_device_ValueError)) __PYX_ERR(0, 6048, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6048, __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/cudart.pyx":6045 * except ValueError: * str_list += ['type : '] * 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/cudart.pyx":6049 * except ValueError: * str_list += ['device : '] * 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/cudart.pyx":6050 * str_list += ['device : '] * try: * str_list += ['devicePointer : ' + hex(self.devicePointer)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['devicePointer : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_devicePointer_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6050, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6050, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_kp_u_devicePointer, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6050, __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, 6050, __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)) __PYX_ERR(0, 6050, __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, 6050, __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/cudart.pyx":6049 * except ValueError: * str_list += ['device : '] * 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/cudart.pyx":6051 * try: * str_list += ['devicePointer : ' + hex(self.devicePointer)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['devicePointer : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaPointerAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 6051, __pyx_L22_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":6052 * str_list += ['devicePointer : ' + hex(self.devicePointer)] * except ValueError: * str_list += ['devicePointer : '] # <<<<<<<<<<<<<< * try: * str_list += ['hostPointer : ' + hex(self.hostPointer)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6052, __pyx_L22_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_devicePointer_ValueError); __Pyx_GIVEREF(__pyx_kp_u_devicePointer_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_devicePointer_ValueError)) __PYX_ERR(0, 6052, __pyx_L22_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6052, __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/cudart.pyx":6049 * except ValueError: * str_list += ['device : '] * 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/cudart.pyx":6053 * except ValueError: * str_list += ['devicePointer : '] * 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/cudart.pyx":6054 * str_list += ['devicePointer : '] * try: * str_list += ['hostPointer : ' + hex(self.hostPointer)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['hostPointer : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_hostPointer_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6054, __pyx_L28_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6054, __pyx_L28_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = PyNumber_Add(__pyx_kp_u_hostPointer, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6054, __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, 6054, __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)) __PYX_ERR(0, 6054, __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, 6054, __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/cudart.pyx":6053 * except ValueError: * str_list += ['devicePointer : '] * 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/cudart.pyx":6055 * try: * str_list += ['hostPointer : ' + hex(self.hostPointer)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['hostPointer : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaPointerAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 6055, __pyx_L30_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":6056 * str_list += ['hostPointer : ' + hex(self.hostPointer)] * except ValueError: * str_list += ['hostPointer : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6056, __pyx_L30_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_hostPointer_ValueError); __Pyx_GIVEREF(__pyx_kp_u_hostPointer_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_hostPointer_ValueError)) __PYX_ERR(0, 6056, __pyx_L30_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6056, __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/cudart.pyx":6053 * except ValueError: * str_list += ['devicePointer : '] * 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/cudart.pyx":6057 * except ValueError: * str_list += ['hostPointer : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6057, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6039 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":6059 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def type(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":6038 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaPointerAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6060 * else: * return '' * @property # <<<<<<<<<<<<<< * def type(self): * return cudaMemoryType(self._ptr[0].type) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_21cudaPointerAttributes_4type_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_21cudaPointerAttributes_4type___get__(((struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaPointerAttributes_4type___get__(struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6060, 0, __PYX_ERR(0, 6060, __pyx_L1_error)); /* "cuda/cudart.pyx":6062 * @property * def type(self): * return cudaMemoryType(self._ptr[0].type) # <<<<<<<<<<<<<< * @type.setter * def type(self, type not None : cudaMemoryType): */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaMemoryType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6062, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaMemoryType((__pyx_v_self->_ptr[0]).type); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6062, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6062, __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/cudart.pyx":6060 * else: * return '' * @property # <<<<<<<<<<<<<< * def type(self): * return cudaMemoryType(self._ptr[0].type) */ /* 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.cudart.cudaPointerAttributes.type.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6063 * def type(self): * return cudaMemoryType(self._ptr[0].type) * @type.setter # <<<<<<<<<<<<<< * def type(self, type not None : cudaMemoryType): * self._ptr[0].type = type.value */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_21cudaPointerAttributes_4type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_type); /*proto*/ static int __pyx_pw_4cuda_6cudart_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, 6064, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_21cudaPointerAttributes_4type_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes *)__pyx_v_self), ((PyObject *)__pyx_v_type)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_21cudaPointerAttributes_4type_2__set__(struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes *__pyx_v_self, PyObject *__pyx_v_type) { int __pyx_r; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 6063, 0, __PYX_ERR(0, 6063, __pyx_L1_error)); /* "cuda/cudart.pyx":6065 * @type.setter * def type(self, type not None : cudaMemoryType): * self._ptr[0].type = type.value # <<<<<<<<<<<<<< * @property * def device(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_type, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6065, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaMemoryType)__Pyx_PyInt_As_enum__cudaMemoryType(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 6065, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).type = __pyx_t_2; /* "cuda/cudart.pyx":6063 * def type(self): * return cudaMemoryType(self._ptr[0].type) * @type.setter # <<<<<<<<<<<<<< * def type(self, type not None : cudaMemoryType): * self._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.cudart.cudaPointerAttributes.type.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6066 * def type(self, type not None : cudaMemoryType): * self._ptr[0].type = type.value * @property # <<<<<<<<<<<<<< * def device(self): * return self._ptr[0].device */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_21cudaPointerAttributes_6device_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_21cudaPointerAttributes_6device___get__(((struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaPointerAttributes_6device___get__(struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6066, 0, __PYX_ERR(0, 6066, __pyx_L1_error)); /* "cuda/cudart.pyx":6068 * @property * def device(self): * return self._ptr[0].device # <<<<<<<<<<<<<< * @device.setter * def device(self, int device): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).device); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6068, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6066 * def type(self, type not None : cudaMemoryType): * self._ptr[0].type = type.value * @property # <<<<<<<<<<<<<< * def device(self): * return self._ptr[0].device */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaPointerAttributes.device.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6069 * def device(self): * return self._ptr[0].device * @device.setter # <<<<<<<<<<<<<< * def device(self, int device): * self._ptr[0].device = device */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_21cudaPointerAttributes_6device_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_device); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_device); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6070, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaPointerAttributes.device.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_21cudaPointerAttributes_6device_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes *)__pyx_v_self), ((int)__pyx_v_device)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_21cudaPointerAttributes_6device_2__set__(struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes *__pyx_v_self, int __pyx_v_device) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 6069, 0, __PYX_ERR(0, 6069, __pyx_L1_error)); /* "cuda/cudart.pyx":6071 * @device.setter * def device(self, int device): * self._ptr[0].device = device # <<<<<<<<<<<<<< * @property * def devicePointer(self): */ (__pyx_v_self->_ptr[0]).device = __pyx_v_device; /* "cuda/cudart.pyx":6069 * def device(self): * return self._ptr[0].device * @device.setter # <<<<<<<<<<<<<< * def device(self, int device): * self._ptr[0].device = device */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaPointerAttributes.device.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6072 * def device(self, int device): * self._ptr[0].device = device * @property # <<<<<<<<<<<<<< * def devicePointer(self): * return self._ptr[0].devicePointer */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_21cudaPointerAttributes_13devicePointer_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_21cudaPointerAttributes_13devicePointer___get__(((struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaPointerAttributes_13devicePointer___get__(struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6072, 0, __PYX_ERR(0, 6072, __pyx_L1_error)); /* "cuda/cudart.pyx":6074 * @property * def devicePointer(self): * return self._ptr[0].devicePointer # <<<<<<<<<<<<<< * @devicePointer.setter * def devicePointer(self, devicePointer): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).devicePointer)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6074, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6072 * def device(self, int device): * self._ptr[0].device = device * @property # <<<<<<<<<<<<<< * def devicePointer(self): * return self._ptr[0].devicePointer */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaPointerAttributes.devicePointer.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6075 * def devicePointer(self): * return self._ptr[0].devicePointer * @devicePointer.setter # <<<<<<<<<<<<<< * def devicePointer(self, devicePointer): * _cdevicePointer = utils.HelperInputVoidPtr(devicePointer) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_21cudaPointerAttributes_13devicePointer_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_devicePointer); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_21cudaPointerAttributes_13devicePointer_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes *)__pyx_v_self), ((PyObject *)__pyx_v_devicePointer)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_21cudaPointerAttributes_13devicePointer_2__set__(struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes *__pyx_v_self, PyObject *__pyx_v_devicePointer) { PyObject *__pyx_v__cdevicePointer = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 6075, 0, __PYX_ERR(0, 6075, __pyx_L1_error)); /* "cuda/cudart.pyx":6077 * @devicePointer.setter * def devicePointer(self, devicePointer): * _cdevicePointer = utils.HelperInputVoidPtr(devicePointer) # <<<<<<<<<<<<<< * self._ptr[0].devicePointer = _cdevicePointer.cptr * @property */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_devicePointer); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6077, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__cdevicePointer = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":6078 * def devicePointer(self, devicePointer): * _cdevicePointer = utils.HelperInputVoidPtr(devicePointer) * self._ptr[0].devicePointer = _cdevicePointer.cptr # <<<<<<<<<<<<<< * @property * def hostPointer(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v__cdevicePointer, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6078, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6078, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).devicePointer = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":6075 * def devicePointer(self): * return self._ptr[0].devicePointer * @devicePointer.setter # <<<<<<<<<<<<<< * def devicePointer(self, devicePointer): * _cdevicePointer = utils.HelperInputVoidPtr(devicePointer) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaPointerAttributes.devicePointer.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v__cdevicePointer); __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6079 * _cdevicePointer = utils.HelperInputVoidPtr(devicePointer) * self._ptr[0].devicePointer = _cdevicePointer.cptr * @property # <<<<<<<<<<<<<< * def hostPointer(self): * return self._ptr[0].hostPointer */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_21cudaPointerAttributes_11hostPointer_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_21cudaPointerAttributes_11hostPointer___get__(((struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaPointerAttributes_11hostPointer___get__(struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6079, 0, __PYX_ERR(0, 6079, __pyx_L1_error)); /* "cuda/cudart.pyx":6081 * @property * def hostPointer(self): * return self._ptr[0].hostPointer # <<<<<<<<<<<<<< * @hostPointer.setter * def hostPointer(self, hostPointer): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).hostPointer)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6081, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6079 * _cdevicePointer = utils.HelperInputVoidPtr(devicePointer) * self._ptr[0].devicePointer = _cdevicePointer.cptr * @property # <<<<<<<<<<<<<< * def hostPointer(self): * return self._ptr[0].hostPointer */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaPointerAttributes.hostPointer.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6082 * def hostPointer(self): * return self._ptr[0].hostPointer * @hostPointer.setter # <<<<<<<<<<<<<< * def hostPointer(self, hostPointer): * _chostPointer = utils.HelperInputVoidPtr(hostPointer) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_21cudaPointerAttributes_11hostPointer_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_hostPointer); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_21cudaPointerAttributes_11hostPointer_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes *)__pyx_v_self), ((PyObject *)__pyx_v_hostPointer)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_21cudaPointerAttributes_11hostPointer_2__set__(struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes *__pyx_v_self, PyObject *__pyx_v_hostPointer) { PyObject *__pyx_v__chostPointer = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 6082, 0, __PYX_ERR(0, 6082, __pyx_L1_error)); /* "cuda/cudart.pyx":6084 * @hostPointer.setter * def hostPointer(self, hostPointer): * _chostPointer = utils.HelperInputVoidPtr(hostPointer) # <<<<<<<<<<<<<< * self._ptr[0].hostPointer = _chostPointer.cptr * */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_hostPointer); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6084, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__chostPointer = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":6085 * def hostPointer(self, hostPointer): * _chostPointer = utils.HelperInputVoidPtr(hostPointer) * self._ptr[0].hostPointer = _chostPointer.cptr # <<<<<<<<<<<<<< * * cdef class cudaFuncAttributes: */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v__chostPointer, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6085, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6085, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).hostPointer = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":6082 * def hostPointer(self): * return self._ptr[0].hostPointer * @hostPointer.setter # <<<<<<<<<<<<<< * def hostPointer(self, hostPointer): * _chostPointer = utils.HelperInputVoidPtr(hostPointer) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaPointerAttributes.hostPointer.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v__chostPointer); __Pyx_TraceReturn(Py_None, 0); __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_6cudart_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_6cudart_21cudaPointerAttributes_10__reduce_cython__, "cudaPointerAttributes.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_21cudaPointerAttributes_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_21cudaPointerAttributes_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_21cudaPointerAttributes_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_21cudaPointerAttributes_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaPointerAttributes_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__123) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaPointerAttributes.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_21cudaPointerAttributes_12__setstate_cython__, "cudaPointerAttributes.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_21cudaPointerAttributes_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_21cudaPointerAttributes_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_21cudaPointerAttributes_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaPointerAttributes.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_21cudaPointerAttributes_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaPointerAttributes_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__124) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaPointerAttributes.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6171 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 6171, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 6171, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6171, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 6171, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_18cudaFuncAttributes___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_18cudaFuncAttributes___cinit__(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 6171, 0, __PYX_ERR(0, 6171, __pyx_L1_error)); /* "cuda/cudart.pyx":6172 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":6173 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaFuncAttributes__val); /* "cuda/cudart.pyx":6172 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":6175 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * pass */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaFuncAttributes *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":6171 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6176 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 6176, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 6176, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6176, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 6176, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 6176, 0, __PYX_ERR(0, 6176, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6178 * def __init__(self, void_ptr _ptr = 0): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_18cudaFuncAttributes_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 6178, 0, __PYX_ERR(0, 6178, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaFuncAttributes.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":6180 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_18cudaFuncAttributes_6getPtr, "cudaFuncAttributes.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_18cudaFuncAttributes_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_18cudaFuncAttributes_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_18cudaFuncAttributes_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_18cudaFuncAttributes_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__125) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 6180, 0, __PYX_ERR(0, 6180, __pyx_L1_error)); /* "cuda/cudart.pyx":6181 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6181, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6180 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6182 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_18cudaFuncAttributes_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_18cudaFuncAttributes_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_18cudaFuncAttributes_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 6182, 0, __PYX_ERR(0, 6182, __pyx_L1_error)); /* "cuda/cudart.pyx":6183 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":6184 * def __repr__(self): * if self._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, 6184, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":6185 * if self._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/cudart.pyx":6186 * str_list = [] * try: * str_list += ['sharedSizeBytes : ' + str(self.sharedSizeBytes)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['sharedSizeBytes : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_sharedSizeBytes_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6186, __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, 6186, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_sharedSizeBytes, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6186, __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, 6186, __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)) __PYX_ERR(0, 6186, __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, 6186, __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/cudart.pyx":6185 * if self._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/cudart.pyx":6187 * try: * str_list += ['sharedSizeBytes : ' + str(self.sharedSizeBytes)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['sharedSizeBytes : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 6187, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":6188 * str_list += ['sharedSizeBytes : ' + str(self.sharedSizeBytes)] * except ValueError: * str_list += ['sharedSizeBytes : '] # <<<<<<<<<<<<<< * try: * str_list += ['constSizeBytes : ' + str(self.constSizeBytes)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6188, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_sharedSizeBytes_ValueError); __Pyx_GIVEREF(__pyx_kp_u_sharedSizeBytes_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_sharedSizeBytes_ValueError)) __PYX_ERR(0, 6188, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6188, __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/cudart.pyx":6185 * if self._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/cudart.pyx":6189 * except ValueError: * str_list += ['sharedSizeBytes : '] * 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/cudart.pyx":6190 * str_list += ['sharedSizeBytes : '] * try: * str_list += ['constSizeBytes : ' + str(self.constSizeBytes)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['constSizeBytes : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_constSizeBytes_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6190, __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, 6190, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_constSizeBytes, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6190, __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, 6190, __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)) __PYX_ERR(0, 6190, __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, 6190, __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/cudart.pyx":6189 * except ValueError: * str_list += ['sharedSizeBytes : '] * 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/cudart.pyx":6191 * try: * str_list += ['constSizeBytes : ' + str(self.constSizeBytes)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['constSizeBytes : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 6191, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":6192 * str_list += ['constSizeBytes : ' + str(self.constSizeBytes)] * except ValueError: * str_list += ['constSizeBytes : '] # <<<<<<<<<<<<<< * try: * str_list += ['localSizeBytes : ' + str(self.localSizeBytes)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6192, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_constSizeBytes_ValueError); __Pyx_GIVEREF(__pyx_kp_u_constSizeBytes_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_constSizeBytes_ValueError)) __PYX_ERR(0, 6192, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6192, __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/cudart.pyx":6189 * except ValueError: * str_list += ['sharedSizeBytes : '] * 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/cudart.pyx":6193 * except ValueError: * str_list += ['constSizeBytes : '] * 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/cudart.pyx":6194 * str_list += ['constSizeBytes : '] * try: * str_list += ['localSizeBytes : ' + str(self.localSizeBytes)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['localSizeBytes : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_localSizeBytes_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6194, __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, 6194, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_localSizeBytes, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6194, __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, 6194, __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)) __PYX_ERR(0, 6194, __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, 6194, __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/cudart.pyx":6193 * except ValueError: * str_list += ['constSizeBytes : '] * 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/cudart.pyx":6195 * try: * str_list += ['localSizeBytes : ' + str(self.localSizeBytes)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['localSizeBytes : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 6195, __pyx_L22_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":6196 * str_list += ['localSizeBytes : ' + str(self.localSizeBytes)] * except ValueError: * str_list += ['localSizeBytes : '] # <<<<<<<<<<<<<< * try: * str_list += ['maxThreadsPerBlock : ' + str(self.maxThreadsPerBlock)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6196, __pyx_L22_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_localSizeBytes_ValueError); __Pyx_GIVEREF(__pyx_kp_u_localSizeBytes_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_localSizeBytes_ValueError)) __PYX_ERR(0, 6196, __pyx_L22_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6196, __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/cudart.pyx":6193 * except ValueError: * str_list += ['constSizeBytes : '] * 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/cudart.pyx":6197 * except ValueError: * str_list += ['localSizeBytes : '] * 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/cudart.pyx":6198 * str_list += ['localSizeBytes : '] * try: * str_list += ['maxThreadsPerBlock : ' + str(self.maxThreadsPerBlock)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['maxThreadsPerBlock : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_maxThreadsPerBlock_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6198, __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, 6198, __pyx_L28_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_maxThreadsPerBlock, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6198, __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, 6198, __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)) __PYX_ERR(0, 6198, __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, 6198, __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/cudart.pyx":6197 * except ValueError: * str_list += ['localSizeBytes : '] * 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/cudart.pyx":6199 * try: * str_list += ['maxThreadsPerBlock : ' + str(self.maxThreadsPerBlock)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['maxThreadsPerBlock : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 6199, __pyx_L30_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":6200 * str_list += ['maxThreadsPerBlock : ' + str(self.maxThreadsPerBlock)] * except ValueError: * str_list += ['maxThreadsPerBlock : '] # <<<<<<<<<<<<<< * try: * str_list += ['numRegs : ' + str(self.numRegs)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6200, __pyx_L30_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_maxThreadsPerBlock_ValueError); __Pyx_GIVEREF(__pyx_kp_u_maxThreadsPerBlock_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_maxThreadsPerBlock_ValueError)) __PYX_ERR(0, 6200, __pyx_L30_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6200, __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/cudart.pyx":6197 * except ValueError: * str_list += ['localSizeBytes : '] * 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/cudart.pyx":6201 * except ValueError: * str_list += ['maxThreadsPerBlock : '] * 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/cudart.pyx":6202 * str_list += ['maxThreadsPerBlock : '] * try: * str_list += ['numRegs : ' + str(self.numRegs)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['numRegs : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_numRegs_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6202, __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, 6202, __pyx_L36_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_numRegs, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6202, __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, 6202, __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)) __PYX_ERR(0, 6202, __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, 6202, __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/cudart.pyx":6201 * except ValueError: * str_list += ['maxThreadsPerBlock : '] * 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/cudart.pyx":6203 * try: * str_list += ['numRegs : ' + str(self.numRegs)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['numRegs : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 6203, __pyx_L38_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":6204 * str_list += ['numRegs : ' + str(self.numRegs)] * except ValueError: * str_list += ['numRegs : '] # <<<<<<<<<<<<<< * try: * str_list += ['ptxVersion : ' + str(self.ptxVersion)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6204, __pyx_L38_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_numRegs_ValueError); __Pyx_GIVEREF(__pyx_kp_u_numRegs_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_numRegs_ValueError)) __PYX_ERR(0, 6204, __pyx_L38_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6204, __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/cudart.pyx":6201 * except ValueError: * str_list += ['maxThreadsPerBlock : '] * 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/cudart.pyx":6205 * except ValueError: * str_list += ['numRegs : '] * 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/cudart.pyx":6206 * str_list += ['numRegs : '] * try: * str_list += ['ptxVersion : ' + str(self.ptxVersion)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['ptxVersion : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ptxVersion_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6206, __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, 6206, __pyx_L44_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_ptxVersion, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6206, __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, 6206, __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)) __PYX_ERR(0, 6206, __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, 6206, __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/cudart.pyx":6205 * except ValueError: * str_list += ['numRegs : '] * 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/cudart.pyx":6207 * try: * str_list += ['ptxVersion : ' + str(self.ptxVersion)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['ptxVersion : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 6207, __pyx_L46_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":6208 * str_list += ['ptxVersion : ' + str(self.ptxVersion)] * except ValueError: * str_list += ['ptxVersion : '] # <<<<<<<<<<<<<< * try: * str_list += ['binaryVersion : ' + str(self.binaryVersion)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6208, __pyx_L46_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_ptxVersion_ValueError); __Pyx_GIVEREF(__pyx_kp_u_ptxVersion_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_ptxVersion_ValueError)) __PYX_ERR(0, 6208, __pyx_L46_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6208, __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/cudart.pyx":6205 * except ValueError: * str_list += ['numRegs : '] * 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/cudart.pyx":6209 * except ValueError: * str_list += ['ptxVersion : '] * 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/cudart.pyx":6210 * str_list += ['ptxVersion : '] * try: * str_list += ['binaryVersion : ' + str(self.binaryVersion)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['binaryVersion : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_binaryVersion_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6210, __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, 6210, __pyx_L52_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_binaryVersion, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6210, __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, 6210, __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)) __PYX_ERR(0, 6210, __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, 6210, __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/cudart.pyx":6209 * except ValueError: * str_list += ['ptxVersion : '] * 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/cudart.pyx":6211 * try: * str_list += ['binaryVersion : ' + str(self.binaryVersion)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['binaryVersion : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 6211, __pyx_L54_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":6212 * str_list += ['binaryVersion : ' + str(self.binaryVersion)] * except ValueError: * str_list += ['binaryVersion : '] # <<<<<<<<<<<<<< * try: * str_list += ['cacheModeCA : ' + str(self.cacheModeCA)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6212, __pyx_L54_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_binaryVersion_ValueError); __Pyx_GIVEREF(__pyx_kp_u_binaryVersion_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_binaryVersion_ValueError)) __PYX_ERR(0, 6212, __pyx_L54_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6212, __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/cudart.pyx":6209 * except ValueError: * str_list += ['ptxVersion : '] * 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/cudart.pyx":6213 * except ValueError: * str_list += ['binaryVersion : '] * 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/cudart.pyx":6214 * str_list += ['binaryVersion : '] * try: * str_list += ['cacheModeCA : ' + str(self.cacheModeCA)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['cacheModeCA : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_cacheModeCA_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6214, __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, 6214, __pyx_L60_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_cacheModeCA, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6214, __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, 6214, __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)) __PYX_ERR(0, 6214, __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, 6214, __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/cudart.pyx":6213 * except ValueError: * str_list += ['binaryVersion : '] * 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/cudart.pyx":6215 * try: * str_list += ['cacheModeCA : ' + str(self.cacheModeCA)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['cacheModeCA : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 6215, __pyx_L62_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":6216 * str_list += ['cacheModeCA : ' + str(self.cacheModeCA)] * except ValueError: * str_list += ['cacheModeCA : '] # <<<<<<<<<<<<<< * try: * str_list += ['maxDynamicSharedSizeBytes : ' + str(self.maxDynamicSharedSizeBytes)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6216, __pyx_L62_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_cacheModeCA_ValueError); __Pyx_GIVEREF(__pyx_kp_u_cacheModeCA_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_cacheModeCA_ValueError)) __PYX_ERR(0, 6216, __pyx_L62_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6216, __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/cudart.pyx":6213 * except ValueError: * str_list += ['binaryVersion : '] * 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/cudart.pyx":6217 * except ValueError: * str_list += ['cacheModeCA : '] * 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/cudart.pyx":6218 * str_list += ['cacheModeCA : '] * try: * str_list += ['maxDynamicSharedSizeBytes : ' + str(self.maxDynamicSharedSizeBytes)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['maxDynamicSharedSizeBytes : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_maxDynamicSharedSizeBytes_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6218, __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, 6218, __pyx_L68_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_maxDynamicSharedSizeBytes, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6218, __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, 6218, __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)) __PYX_ERR(0, 6218, __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, 6218, __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/cudart.pyx":6217 * except ValueError: * str_list += ['cacheModeCA : '] * 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/cudart.pyx":6219 * try: * str_list += ['maxDynamicSharedSizeBytes : ' + str(self.maxDynamicSharedSizeBytes)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['maxDynamicSharedSizeBytes : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 6219, __pyx_L70_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":6220 * str_list += ['maxDynamicSharedSizeBytes : ' + str(self.maxDynamicSharedSizeBytes)] * except ValueError: * str_list += ['maxDynamicSharedSizeBytes : '] # <<<<<<<<<<<<<< * try: * str_list += ['preferredShmemCarveout : ' + str(self.preferredShmemCarveout)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6220, __pyx_L70_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_maxDynamicSharedSizeBytes_ValueE); __Pyx_GIVEREF(__pyx_kp_u_maxDynamicSharedSizeBytes_ValueE); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_maxDynamicSharedSizeBytes_ValueE)) __PYX_ERR(0, 6220, __pyx_L70_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6220, __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/cudart.pyx":6217 * except ValueError: * str_list += ['cacheModeCA : '] * 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/cudart.pyx":6221 * except ValueError: * str_list += ['maxDynamicSharedSizeBytes : '] * 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/cudart.pyx":6222 * str_list += ['maxDynamicSharedSizeBytes : '] * try: * str_list += ['preferredShmemCarveout : ' + str(self.preferredShmemCarveout)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['preferredShmemCarveout : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_preferredShmemCarveout_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6222, __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, 6222, __pyx_L76_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_preferredShmemCarveout, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6222, __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, 6222, __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)) __PYX_ERR(0, 6222, __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, 6222, __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/cudart.pyx":6221 * except ValueError: * str_list += ['maxDynamicSharedSizeBytes : '] * 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/cudart.pyx":6223 * try: * str_list += ['preferredShmemCarveout : ' + str(self.preferredShmemCarveout)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['preferredShmemCarveout : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 6223, __pyx_L78_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":6224 * str_list += ['preferredShmemCarveout : ' + str(self.preferredShmemCarveout)] * except ValueError: * str_list += ['preferredShmemCarveout : '] # <<<<<<<<<<<<<< * try: * str_list += ['clusterDimMustBeSet : ' + str(self.clusterDimMustBeSet)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6224, __pyx_L78_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_preferredShmemCarveout_ValueErro); __Pyx_GIVEREF(__pyx_kp_u_preferredShmemCarveout_ValueErro); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_preferredShmemCarveout_ValueErro)) __PYX_ERR(0, 6224, __pyx_L78_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6224, __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/cudart.pyx":6221 * except ValueError: * str_list += ['maxDynamicSharedSizeBytes : '] * 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/cudart.pyx":6225 * except ValueError: * str_list += ['preferredShmemCarveout : '] * 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/cudart.pyx":6226 * str_list += ['preferredShmemCarveout : '] * try: * str_list += ['clusterDimMustBeSet : ' + str(self.clusterDimMustBeSet)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['clusterDimMustBeSet : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_clusterDimMustBeSet_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6226, __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, 6226, __pyx_L84_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_clusterDimMustBeSet, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6226, __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, 6226, __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)) __PYX_ERR(0, 6226, __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, 6226, __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/cudart.pyx":6225 * except ValueError: * str_list += ['preferredShmemCarveout : '] * 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/cudart.pyx":6227 * try: * str_list += ['clusterDimMustBeSet : ' + str(self.clusterDimMustBeSet)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['clusterDimMustBeSet : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 6227, __pyx_L86_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":6228 * str_list += ['clusterDimMustBeSet : ' + str(self.clusterDimMustBeSet)] * except ValueError: * str_list += ['clusterDimMustBeSet : '] # <<<<<<<<<<<<<< * try: * str_list += ['requiredClusterWidth : ' + str(self.requiredClusterWidth)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6228, __pyx_L86_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_clusterDimMustBeSet_ValueError); __Pyx_GIVEREF(__pyx_kp_u_clusterDimMustBeSet_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_clusterDimMustBeSet_ValueError)) __PYX_ERR(0, 6228, __pyx_L86_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6228, __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/cudart.pyx":6225 * except ValueError: * str_list += ['preferredShmemCarveout : '] * 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/cudart.pyx":6229 * except ValueError: * str_list += ['clusterDimMustBeSet : '] * 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/cudart.pyx":6230 * str_list += ['clusterDimMustBeSet : '] * try: * str_list += ['requiredClusterWidth : ' + str(self.requiredClusterWidth)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['requiredClusterWidth : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_requiredClusterWidth_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6230, __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, 6230, __pyx_L92_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_requiredClusterWidth, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6230, __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, 6230, __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)) __PYX_ERR(0, 6230, __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, 6230, __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/cudart.pyx":6229 * except ValueError: * str_list += ['clusterDimMustBeSet : '] * 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/cudart.pyx":6231 * try: * str_list += ['requiredClusterWidth : ' + str(self.requiredClusterWidth)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['requiredClusterWidth : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 6231, __pyx_L94_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":6232 * str_list += ['requiredClusterWidth : ' + str(self.requiredClusterWidth)] * except ValueError: * str_list += ['requiredClusterWidth : '] # <<<<<<<<<<<<<< * try: * str_list += ['requiredClusterHeight : ' + str(self.requiredClusterHeight)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6232, __pyx_L94_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_requiredClusterWidth_ValueError); __Pyx_GIVEREF(__pyx_kp_u_requiredClusterWidth_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_requiredClusterWidth_ValueError)) __PYX_ERR(0, 6232, __pyx_L94_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6232, __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/cudart.pyx":6229 * except ValueError: * str_list += ['clusterDimMustBeSet : '] * 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/cudart.pyx":6233 * except ValueError: * str_list += ['requiredClusterWidth : '] * 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/cudart.pyx":6234 * str_list += ['requiredClusterWidth : '] * try: * str_list += ['requiredClusterHeight : ' + str(self.requiredClusterHeight)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['requiredClusterHeight : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_requiredClusterHeight_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6234, __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, 6234, __pyx_L100_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_requiredClusterHeight, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6234, __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, 6234, __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)) __PYX_ERR(0, 6234, __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, 6234, __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/cudart.pyx":6233 * except ValueError: * str_list += ['requiredClusterWidth : '] * 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/cudart.pyx":6235 * try: * str_list += ['requiredClusterHeight : ' + str(self.requiredClusterHeight)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['requiredClusterHeight : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 6235, __pyx_L102_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":6236 * str_list += ['requiredClusterHeight : ' + str(self.requiredClusterHeight)] * except ValueError: * str_list += ['requiredClusterHeight : '] # <<<<<<<<<<<<<< * try: * str_list += ['requiredClusterDepth : ' + str(self.requiredClusterDepth)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6236, __pyx_L102_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_requiredClusterHeight_ValueError); __Pyx_GIVEREF(__pyx_kp_u_requiredClusterHeight_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_requiredClusterHeight_ValueError)) __PYX_ERR(0, 6236, __pyx_L102_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6236, __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/cudart.pyx":6233 * except ValueError: * str_list += ['requiredClusterWidth : '] * 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/cudart.pyx":6237 * except ValueError: * str_list += ['requiredClusterHeight : '] * 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/cudart.pyx":6238 * str_list += ['requiredClusterHeight : '] * try: * str_list += ['requiredClusterDepth : ' + str(self.requiredClusterDepth)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['requiredClusterDepth : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_requiredClusterDepth_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6238, __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, 6238, __pyx_L108_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_requiredClusterDepth, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6238, __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, 6238, __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)) __PYX_ERR(0, 6238, __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, 6238, __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/cudart.pyx":6237 * except ValueError: * str_list += ['requiredClusterHeight : '] * 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/cudart.pyx":6239 * try: * str_list += ['requiredClusterDepth : ' + str(self.requiredClusterDepth)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['requiredClusterDepth : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 6239, __pyx_L110_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":6240 * str_list += ['requiredClusterDepth : ' + str(self.requiredClusterDepth)] * except ValueError: * str_list += ['requiredClusterDepth : '] # <<<<<<<<<<<<<< * try: * str_list += ['clusterSchedulingPolicyPreference : ' + str(self.clusterSchedulingPolicyPreference)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6240, __pyx_L110_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_requiredClusterDepth_ValueError); __Pyx_GIVEREF(__pyx_kp_u_requiredClusterDepth_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_requiredClusterDepth_ValueError)) __PYX_ERR(0, 6240, __pyx_L110_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6240, __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/cudart.pyx":6237 * except ValueError: * str_list += ['requiredClusterHeight : '] * 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/cudart.pyx":6241 * except ValueError: * str_list += ['requiredClusterDepth : '] * 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/cudart.pyx":6242 * str_list += ['requiredClusterDepth : '] * try: * str_list += ['clusterSchedulingPolicyPreference : ' + str(self.clusterSchedulingPolicyPreference)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['clusterSchedulingPolicyPreference : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_clusterSchedulingPolicyPreferenc_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6242, __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, 6242, __pyx_L116_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_clusterSchedulingPolicyPreferenc, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6242, __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, 6242, __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)) __PYX_ERR(0, 6242, __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, 6242, __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/cudart.pyx":6241 * except ValueError: * str_list += ['requiredClusterDepth : '] * 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/cudart.pyx":6243 * try: * str_list += ['clusterSchedulingPolicyPreference : ' + str(self.clusterSchedulingPolicyPreference)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['clusterSchedulingPolicyPreference : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 6243, __pyx_L118_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":6244 * str_list += ['clusterSchedulingPolicyPreference : ' + str(self.clusterSchedulingPolicyPreference)] * except ValueError: * str_list += ['clusterSchedulingPolicyPreference : '] # <<<<<<<<<<<<<< * try: * str_list += ['nonPortableClusterSizeAllowed : ' + str(self.nonPortableClusterSizeAllowed)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6244, __pyx_L118_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_clusterSchedulingPolicyPreferenc_3); __Pyx_GIVEREF(__pyx_kp_u_clusterSchedulingPolicyPreferenc_3); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_clusterSchedulingPolicyPreferenc_3)) __PYX_ERR(0, 6244, __pyx_L118_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6244, __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/cudart.pyx":6241 * except ValueError: * str_list += ['requiredClusterDepth : '] * 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/cudart.pyx":6245 * except ValueError: * str_list += ['clusterSchedulingPolicyPreference : '] * 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/cudart.pyx":6246 * str_list += ['clusterSchedulingPolicyPreference : '] * try: * str_list += ['nonPortableClusterSizeAllowed : ' + str(self.nonPortableClusterSizeAllowed)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['nonPortableClusterSizeAllowed : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_nonPortableClusterSizeAllowed_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6246, __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, 6246, __pyx_L124_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_nonPortableClusterSizeAllowed, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6246, __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, 6246, __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)) __PYX_ERR(0, 6246, __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, 6246, __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/cudart.pyx":6245 * except ValueError: * str_list += ['clusterSchedulingPolicyPreference : '] * 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/cudart.pyx":6247 * try: * str_list += ['nonPortableClusterSizeAllowed : ' + str(self.nonPortableClusterSizeAllowed)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['nonPortableClusterSizeAllowed : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 6247, __pyx_L126_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":6248 * str_list += ['nonPortableClusterSizeAllowed : ' + str(self.nonPortableClusterSizeAllowed)] * except ValueError: * str_list += ['nonPortableClusterSizeAllowed : '] # <<<<<<<<<<<<<< * try: * str_list += ['reserved : ' + str(self.reserved)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6248, __pyx_L126_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_nonPortableClusterSizeAllowed_Va); __Pyx_GIVEREF(__pyx_kp_u_nonPortableClusterSizeAllowed_Va); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_nonPortableClusterSizeAllowed_Va)) __PYX_ERR(0, 6248, __pyx_L126_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6248, __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/cudart.pyx":6245 * except ValueError: * str_list += ['clusterSchedulingPolicyPreference : '] * 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/cudart.pyx":6249 * except ValueError: * str_list += ['nonPortableClusterSizeAllowed : '] * 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/cudart.pyx":6250 * str_list += ['nonPortableClusterSizeAllowed : '] * try: * str_list += ['reserved : ' + str(self.reserved)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['reserved : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_reserved_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6250, __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, 6250, __pyx_L132_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_reserved, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6250, __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, 6250, __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)) __PYX_ERR(0, 6250, __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, 6250, __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/cudart.pyx":6249 * except ValueError: * str_list += ['nonPortableClusterSizeAllowed : '] * 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/cudart.pyx":6251 * try: * str_list += ['reserved : ' + str(self.reserved)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['reserved : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 6251, __pyx_L134_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":6252 * str_list += ['reserved : ' + str(self.reserved)] * except ValueError: * str_list += ['reserved : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6252, __pyx_L134_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_reserved_ValueError); __Pyx_GIVEREF(__pyx_kp_u_reserved_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_reserved_ValueError)) __PYX_ERR(0, 6252, __pyx_L134_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6252, __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/cudart.pyx":6249 * except ValueError: * str_list += ['nonPortableClusterSizeAllowed : '] * 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/cudart.pyx":6253 * except ValueError: * str_list += ['reserved : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6253, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6183 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":6255 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def sharedSizeBytes(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":6182 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaFuncAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6256 * else: * return '' * @property # <<<<<<<<<<<<<< * def sharedSizeBytes(self): * return self._ptr[0].sharedSizeBytes */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_18cudaFuncAttributes_15sharedSizeBytes_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_18cudaFuncAttributes_15sharedSizeBytes___get__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_18cudaFuncAttributes_15sharedSizeBytes___get__(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6256, 0, __PYX_ERR(0, 6256, __pyx_L1_error)); /* "cuda/cudart.pyx":6258 * @property * def sharedSizeBytes(self): * return self._ptr[0].sharedSizeBytes # <<<<<<<<<<<<<< * @sharedSizeBytes.setter * def sharedSizeBytes(self, size_t sharedSizeBytes): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).sharedSizeBytes); 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/cudart.pyx":6256 * else: * return '' * @property # <<<<<<<<<<<<<< * def sharedSizeBytes(self): * return self._ptr[0].sharedSizeBytes */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.sharedSizeBytes.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6259 * def sharedSizeBytes(self): * return self._ptr[0].sharedSizeBytes * @sharedSizeBytes.setter # <<<<<<<<<<<<<< * def sharedSizeBytes(self, size_t sharedSizeBytes): * self._ptr[0].sharedSizeBytes = sharedSizeBytes */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_15sharedSizeBytes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_sharedSizeBytes); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_sharedSizeBytes); if (unlikely((__pyx_v_sharedSizeBytes == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 6260, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.sharedSizeBytes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_15sharedSizeBytes_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self), ((size_t)__pyx_v_sharedSizeBytes)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_15sharedSizeBytes_2__set__(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self, size_t __pyx_v_sharedSizeBytes) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 6259, 0, __PYX_ERR(0, 6259, __pyx_L1_error)); /* "cuda/cudart.pyx":6261 * @sharedSizeBytes.setter * def sharedSizeBytes(self, size_t sharedSizeBytes): * self._ptr[0].sharedSizeBytes = sharedSizeBytes # <<<<<<<<<<<<<< * @property * def constSizeBytes(self): */ (__pyx_v_self->_ptr[0]).sharedSizeBytes = __pyx_v_sharedSizeBytes; /* "cuda/cudart.pyx":6259 * def sharedSizeBytes(self): * return self._ptr[0].sharedSizeBytes * @sharedSizeBytes.setter # <<<<<<<<<<<<<< * def sharedSizeBytes(self, size_t sharedSizeBytes): * self._ptr[0].sharedSizeBytes = sharedSizeBytes */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.sharedSizeBytes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6262 * def sharedSizeBytes(self, size_t sharedSizeBytes): * self._ptr[0].sharedSizeBytes = sharedSizeBytes * @property # <<<<<<<<<<<<<< * def constSizeBytes(self): * return self._ptr[0].constSizeBytes */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_18cudaFuncAttributes_14constSizeBytes_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_18cudaFuncAttributes_14constSizeBytes___get__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_18cudaFuncAttributes_14constSizeBytes___get__(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6262, 0, __PYX_ERR(0, 6262, __pyx_L1_error)); /* "cuda/cudart.pyx":6264 * @property * def constSizeBytes(self): * return self._ptr[0].constSizeBytes # <<<<<<<<<<<<<< * @constSizeBytes.setter * def constSizeBytes(self, size_t constSizeBytes): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).constSizeBytes); 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/cudart.pyx":6262 * def sharedSizeBytes(self, size_t sharedSizeBytes): * self._ptr[0].sharedSizeBytes = sharedSizeBytes * @property # <<<<<<<<<<<<<< * def constSizeBytes(self): * return self._ptr[0].constSizeBytes */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.constSizeBytes.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6265 * def constSizeBytes(self): * return self._ptr[0].constSizeBytes * @constSizeBytes.setter # <<<<<<<<<<<<<< * def constSizeBytes(self, size_t constSizeBytes): * self._ptr[0].constSizeBytes = constSizeBytes */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_14constSizeBytes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_constSizeBytes); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_constSizeBytes); if (unlikely((__pyx_v_constSizeBytes == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 6266, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.constSizeBytes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_14constSizeBytes_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self), ((size_t)__pyx_v_constSizeBytes)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_14constSizeBytes_2__set__(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self, size_t __pyx_v_constSizeBytes) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 6265, 0, __PYX_ERR(0, 6265, __pyx_L1_error)); /* "cuda/cudart.pyx":6267 * @constSizeBytes.setter * def constSizeBytes(self, size_t constSizeBytes): * self._ptr[0].constSizeBytes = constSizeBytes # <<<<<<<<<<<<<< * @property * def localSizeBytes(self): */ (__pyx_v_self->_ptr[0]).constSizeBytes = __pyx_v_constSizeBytes; /* "cuda/cudart.pyx":6265 * def constSizeBytes(self): * return self._ptr[0].constSizeBytes * @constSizeBytes.setter # <<<<<<<<<<<<<< * def constSizeBytes(self, size_t constSizeBytes): * self._ptr[0].constSizeBytes = constSizeBytes */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.constSizeBytes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6268 * def constSizeBytes(self, size_t constSizeBytes): * self._ptr[0].constSizeBytes = constSizeBytes * @property # <<<<<<<<<<<<<< * def localSizeBytes(self): * return self._ptr[0].localSizeBytes */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_18cudaFuncAttributes_14localSizeBytes_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_18cudaFuncAttributes_14localSizeBytes___get__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_18cudaFuncAttributes_14localSizeBytes___get__(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6268, 0, __PYX_ERR(0, 6268, __pyx_L1_error)); /* "cuda/cudart.pyx":6270 * @property * def localSizeBytes(self): * return self._ptr[0].localSizeBytes # <<<<<<<<<<<<<< * @localSizeBytes.setter * def localSizeBytes(self, size_t localSizeBytes): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).localSizeBytes); 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/cudart.pyx":6268 * def constSizeBytes(self, size_t constSizeBytes): * self._ptr[0].constSizeBytes = constSizeBytes * @property # <<<<<<<<<<<<<< * def localSizeBytes(self): * return self._ptr[0].localSizeBytes */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.localSizeBytes.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6271 * def localSizeBytes(self): * return self._ptr[0].localSizeBytes * @localSizeBytes.setter # <<<<<<<<<<<<<< * def localSizeBytes(self, size_t localSizeBytes): * self._ptr[0].localSizeBytes = localSizeBytes */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_14localSizeBytes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_localSizeBytes); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_localSizeBytes); if (unlikely((__pyx_v_localSizeBytes == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 6272, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.localSizeBytes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_14localSizeBytes_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self), ((size_t)__pyx_v_localSizeBytes)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_14localSizeBytes_2__set__(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self, size_t __pyx_v_localSizeBytes) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 6271, 0, __PYX_ERR(0, 6271, __pyx_L1_error)); /* "cuda/cudart.pyx":6273 * @localSizeBytes.setter * def localSizeBytes(self, size_t localSizeBytes): * self._ptr[0].localSizeBytes = localSizeBytes # <<<<<<<<<<<<<< * @property * def maxThreadsPerBlock(self): */ (__pyx_v_self->_ptr[0]).localSizeBytes = __pyx_v_localSizeBytes; /* "cuda/cudart.pyx":6271 * def localSizeBytes(self): * return self._ptr[0].localSizeBytes * @localSizeBytes.setter # <<<<<<<<<<<<<< * def localSizeBytes(self, size_t localSizeBytes): * self._ptr[0].localSizeBytes = localSizeBytes */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.localSizeBytes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6274 * def localSizeBytes(self, size_t localSizeBytes): * self._ptr[0].localSizeBytes = localSizeBytes * @property # <<<<<<<<<<<<<< * def maxThreadsPerBlock(self): * return self._ptr[0].maxThreadsPerBlock */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_18cudaFuncAttributes_18maxThreadsPerBlock_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_18cudaFuncAttributes_18maxThreadsPerBlock___get__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_18cudaFuncAttributes_18maxThreadsPerBlock___get__(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6274, 0, __PYX_ERR(0, 6274, __pyx_L1_error)); /* "cuda/cudart.pyx":6276 * @property * def maxThreadsPerBlock(self): * return self._ptr[0].maxThreadsPerBlock # <<<<<<<<<<<<<< * @maxThreadsPerBlock.setter * def maxThreadsPerBlock(self, int maxThreadsPerBlock): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).maxThreadsPerBlock); 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/cudart.pyx":6274 * def localSizeBytes(self, size_t localSizeBytes): * self._ptr[0].localSizeBytes = localSizeBytes * @property # <<<<<<<<<<<<<< * def maxThreadsPerBlock(self): * return self._ptr[0].maxThreadsPerBlock */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.maxThreadsPerBlock.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6277 * def maxThreadsPerBlock(self): * return self._ptr[0].maxThreadsPerBlock * @maxThreadsPerBlock.setter # <<<<<<<<<<<<<< * def maxThreadsPerBlock(self, int maxThreadsPerBlock): * self._ptr[0].maxThreadsPerBlock = maxThreadsPerBlock */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_18maxThreadsPerBlock_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxThreadsPerBlock); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_maxThreadsPerBlock); if (unlikely((__pyx_v_maxThreadsPerBlock == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6278, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.maxThreadsPerBlock.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_18maxThreadsPerBlock_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self), ((int)__pyx_v_maxThreadsPerBlock)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_18maxThreadsPerBlock_2__set__(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self, int __pyx_v_maxThreadsPerBlock) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 6277, 0, __PYX_ERR(0, 6277, __pyx_L1_error)); /* "cuda/cudart.pyx":6279 * @maxThreadsPerBlock.setter * def maxThreadsPerBlock(self, int maxThreadsPerBlock): * self._ptr[0].maxThreadsPerBlock = maxThreadsPerBlock # <<<<<<<<<<<<<< * @property * def numRegs(self): */ (__pyx_v_self->_ptr[0]).maxThreadsPerBlock = __pyx_v_maxThreadsPerBlock; /* "cuda/cudart.pyx":6277 * def maxThreadsPerBlock(self): * return self._ptr[0].maxThreadsPerBlock * @maxThreadsPerBlock.setter # <<<<<<<<<<<<<< * def maxThreadsPerBlock(self, int maxThreadsPerBlock): * self._ptr[0].maxThreadsPerBlock = maxThreadsPerBlock */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.maxThreadsPerBlock.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6280 * def maxThreadsPerBlock(self, int maxThreadsPerBlock): * self._ptr[0].maxThreadsPerBlock = maxThreadsPerBlock * @property # <<<<<<<<<<<<<< * def numRegs(self): * return self._ptr[0].numRegs */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_18cudaFuncAttributes_7numRegs_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_18cudaFuncAttributes_7numRegs___get__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_18cudaFuncAttributes_7numRegs___get__(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6280, 0, __PYX_ERR(0, 6280, __pyx_L1_error)); /* "cuda/cudart.pyx":6282 * @property * def numRegs(self): * return self._ptr[0].numRegs # <<<<<<<<<<<<<< * @numRegs.setter * def numRegs(self, int numRegs): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).numRegs); 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/cudart.pyx":6280 * def maxThreadsPerBlock(self, int maxThreadsPerBlock): * self._ptr[0].maxThreadsPerBlock = maxThreadsPerBlock * @property # <<<<<<<<<<<<<< * def numRegs(self): * return self._ptr[0].numRegs */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.numRegs.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6283 * def numRegs(self): * return self._ptr[0].numRegs * @numRegs.setter # <<<<<<<<<<<<<< * def numRegs(self, int numRegs): * self._ptr[0].numRegs = numRegs */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_7numRegs_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_numRegs); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_numRegs); if (unlikely((__pyx_v_numRegs == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6284, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.numRegs.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_7numRegs_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self), ((int)__pyx_v_numRegs)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_7numRegs_2__set__(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self, int __pyx_v_numRegs) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 6283, 0, __PYX_ERR(0, 6283, __pyx_L1_error)); /* "cuda/cudart.pyx":6285 * @numRegs.setter * def numRegs(self, int numRegs): * self._ptr[0].numRegs = numRegs # <<<<<<<<<<<<<< * @property * def ptxVersion(self): */ (__pyx_v_self->_ptr[0]).numRegs = __pyx_v_numRegs; /* "cuda/cudart.pyx":6283 * def numRegs(self): * return self._ptr[0].numRegs * @numRegs.setter # <<<<<<<<<<<<<< * def numRegs(self, int numRegs): * self._ptr[0].numRegs = numRegs */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.numRegs.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6286 * def numRegs(self, int numRegs): * self._ptr[0].numRegs = numRegs * @property # <<<<<<<<<<<<<< * def ptxVersion(self): * return self._ptr[0].ptxVersion */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_18cudaFuncAttributes_10ptxVersion_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_18cudaFuncAttributes_10ptxVersion___get__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_18cudaFuncAttributes_10ptxVersion___get__(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6286, 0, __PYX_ERR(0, 6286, __pyx_L1_error)); /* "cuda/cudart.pyx":6288 * @property * def ptxVersion(self): * return self._ptr[0].ptxVersion # <<<<<<<<<<<<<< * @ptxVersion.setter * def ptxVersion(self, int ptxVersion): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).ptxVersion); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6288, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6286 * def numRegs(self, int numRegs): * self._ptr[0].numRegs = numRegs * @property # <<<<<<<<<<<<<< * def ptxVersion(self): * return self._ptr[0].ptxVersion */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.ptxVersion.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6289 * def ptxVersion(self): * return self._ptr[0].ptxVersion * @ptxVersion.setter # <<<<<<<<<<<<<< * def ptxVersion(self, int ptxVersion): * self._ptr[0].ptxVersion = ptxVersion */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_10ptxVersion_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_ptxVersion); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_ptxVersion); if (unlikely((__pyx_v_ptxVersion == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6290, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.ptxVersion.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_10ptxVersion_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self), ((int)__pyx_v_ptxVersion)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_10ptxVersion_2__set__(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self, int __pyx_v_ptxVersion) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 6289, 0, __PYX_ERR(0, 6289, __pyx_L1_error)); /* "cuda/cudart.pyx":6291 * @ptxVersion.setter * def ptxVersion(self, int ptxVersion): * self._ptr[0].ptxVersion = ptxVersion # <<<<<<<<<<<<<< * @property * def binaryVersion(self): */ (__pyx_v_self->_ptr[0]).ptxVersion = __pyx_v_ptxVersion; /* "cuda/cudart.pyx":6289 * def ptxVersion(self): * return self._ptr[0].ptxVersion * @ptxVersion.setter # <<<<<<<<<<<<<< * def ptxVersion(self, int ptxVersion): * self._ptr[0].ptxVersion = ptxVersion */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.ptxVersion.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6292 * def ptxVersion(self, int ptxVersion): * self._ptr[0].ptxVersion = ptxVersion * @property # <<<<<<<<<<<<<< * def binaryVersion(self): * return self._ptr[0].binaryVersion */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_18cudaFuncAttributes_13binaryVersion_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_18cudaFuncAttributes_13binaryVersion___get__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_18cudaFuncAttributes_13binaryVersion___get__(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6292, 0, __PYX_ERR(0, 6292, __pyx_L1_error)); /* "cuda/cudart.pyx":6294 * @property * def binaryVersion(self): * return self._ptr[0].binaryVersion # <<<<<<<<<<<<<< * @binaryVersion.setter * def binaryVersion(self, int binaryVersion): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).binaryVersion); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6294, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6292 * def ptxVersion(self, int ptxVersion): * self._ptr[0].ptxVersion = ptxVersion * @property # <<<<<<<<<<<<<< * def binaryVersion(self): * return self._ptr[0].binaryVersion */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.binaryVersion.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6295 * def binaryVersion(self): * return self._ptr[0].binaryVersion * @binaryVersion.setter # <<<<<<<<<<<<<< * def binaryVersion(self, int binaryVersion): * self._ptr[0].binaryVersion = binaryVersion */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_13binaryVersion_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_binaryVersion); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_binaryVersion); if (unlikely((__pyx_v_binaryVersion == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6296, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.binaryVersion.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_13binaryVersion_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self), ((int)__pyx_v_binaryVersion)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_13binaryVersion_2__set__(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self, int __pyx_v_binaryVersion) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 6295, 0, __PYX_ERR(0, 6295, __pyx_L1_error)); /* "cuda/cudart.pyx":6297 * @binaryVersion.setter * def binaryVersion(self, int binaryVersion): * self._ptr[0].binaryVersion = binaryVersion # <<<<<<<<<<<<<< * @property * def cacheModeCA(self): */ (__pyx_v_self->_ptr[0]).binaryVersion = __pyx_v_binaryVersion; /* "cuda/cudart.pyx":6295 * def binaryVersion(self): * return self._ptr[0].binaryVersion * @binaryVersion.setter # <<<<<<<<<<<<<< * def binaryVersion(self, int binaryVersion): * self._ptr[0].binaryVersion = binaryVersion */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.binaryVersion.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6298 * def binaryVersion(self, int binaryVersion): * self._ptr[0].binaryVersion = binaryVersion * @property # <<<<<<<<<<<<<< * def cacheModeCA(self): * return self._ptr[0].cacheModeCA */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_18cudaFuncAttributes_11cacheModeCA_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_18cudaFuncAttributes_11cacheModeCA___get__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_18cudaFuncAttributes_11cacheModeCA___get__(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6298, 0, __PYX_ERR(0, 6298, __pyx_L1_error)); /* "cuda/cudart.pyx":6300 * @property * def cacheModeCA(self): * return self._ptr[0].cacheModeCA # <<<<<<<<<<<<<< * @cacheModeCA.setter * def cacheModeCA(self, int cacheModeCA): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).cacheModeCA); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6300, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6298 * def binaryVersion(self, int binaryVersion): * self._ptr[0].binaryVersion = binaryVersion * @property # <<<<<<<<<<<<<< * def cacheModeCA(self): * return self._ptr[0].cacheModeCA */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.cacheModeCA.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6301 * def cacheModeCA(self): * return self._ptr[0].cacheModeCA * @cacheModeCA.setter # <<<<<<<<<<<<<< * def cacheModeCA(self, int cacheModeCA): * self._ptr[0].cacheModeCA = cacheModeCA */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_11cacheModeCA_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_cacheModeCA); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_cacheModeCA); if (unlikely((__pyx_v_cacheModeCA == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6302, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.cacheModeCA.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_11cacheModeCA_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self), ((int)__pyx_v_cacheModeCA)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_11cacheModeCA_2__set__(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self, int __pyx_v_cacheModeCA) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 6301, 0, __PYX_ERR(0, 6301, __pyx_L1_error)); /* "cuda/cudart.pyx":6303 * @cacheModeCA.setter * def cacheModeCA(self, int cacheModeCA): * self._ptr[0].cacheModeCA = cacheModeCA # <<<<<<<<<<<<<< * @property * def maxDynamicSharedSizeBytes(self): */ (__pyx_v_self->_ptr[0]).cacheModeCA = __pyx_v_cacheModeCA; /* "cuda/cudart.pyx":6301 * def cacheModeCA(self): * return self._ptr[0].cacheModeCA * @cacheModeCA.setter # <<<<<<<<<<<<<< * def cacheModeCA(self, int cacheModeCA): * self._ptr[0].cacheModeCA = cacheModeCA */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.cacheModeCA.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6304 * def cacheModeCA(self, int cacheModeCA): * self._ptr[0].cacheModeCA = cacheModeCA * @property # <<<<<<<<<<<<<< * def maxDynamicSharedSizeBytes(self): * return self._ptr[0].maxDynamicSharedSizeBytes */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_18cudaFuncAttributes_25maxDynamicSharedSizeBytes_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_18cudaFuncAttributes_25maxDynamicSharedSizeBytes___get__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_18cudaFuncAttributes_25maxDynamicSharedSizeBytes___get__(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6304, 0, __PYX_ERR(0, 6304, __pyx_L1_error)); /* "cuda/cudart.pyx":6306 * @property * def maxDynamicSharedSizeBytes(self): * return self._ptr[0].maxDynamicSharedSizeBytes # <<<<<<<<<<<<<< * @maxDynamicSharedSizeBytes.setter * def maxDynamicSharedSizeBytes(self, int maxDynamicSharedSizeBytes): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).maxDynamicSharedSizeBytes); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6306, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6304 * def cacheModeCA(self, int cacheModeCA): * self._ptr[0].cacheModeCA = cacheModeCA * @property # <<<<<<<<<<<<<< * def maxDynamicSharedSizeBytes(self): * return self._ptr[0].maxDynamicSharedSizeBytes */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.maxDynamicSharedSizeBytes.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6307 * def maxDynamicSharedSizeBytes(self): * return self._ptr[0].maxDynamicSharedSizeBytes * @maxDynamicSharedSizeBytes.setter # <<<<<<<<<<<<<< * def maxDynamicSharedSizeBytes(self, int maxDynamicSharedSizeBytes): * self._ptr[0].maxDynamicSharedSizeBytes = maxDynamicSharedSizeBytes */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_25maxDynamicSharedSizeBytes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxDynamicSharedSizeBytes); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_maxDynamicSharedSizeBytes); if (unlikely((__pyx_v_maxDynamicSharedSizeBytes == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6308, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.maxDynamicSharedSizeBytes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_25maxDynamicSharedSizeBytes_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self), ((int)__pyx_v_maxDynamicSharedSizeBytes)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_25maxDynamicSharedSizeBytes_2__set__(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self, int __pyx_v_maxDynamicSharedSizeBytes) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 6307, 0, __PYX_ERR(0, 6307, __pyx_L1_error)); /* "cuda/cudart.pyx":6309 * @maxDynamicSharedSizeBytes.setter * def maxDynamicSharedSizeBytes(self, int maxDynamicSharedSizeBytes): * self._ptr[0].maxDynamicSharedSizeBytes = maxDynamicSharedSizeBytes # <<<<<<<<<<<<<< * @property * def preferredShmemCarveout(self): */ (__pyx_v_self->_ptr[0]).maxDynamicSharedSizeBytes = __pyx_v_maxDynamicSharedSizeBytes; /* "cuda/cudart.pyx":6307 * def maxDynamicSharedSizeBytes(self): * return self._ptr[0].maxDynamicSharedSizeBytes * @maxDynamicSharedSizeBytes.setter # <<<<<<<<<<<<<< * def maxDynamicSharedSizeBytes(self, int maxDynamicSharedSizeBytes): * self._ptr[0].maxDynamicSharedSizeBytes = maxDynamicSharedSizeBytes */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.maxDynamicSharedSizeBytes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6310 * def maxDynamicSharedSizeBytes(self, int maxDynamicSharedSizeBytes): * self._ptr[0].maxDynamicSharedSizeBytes = maxDynamicSharedSizeBytes * @property # <<<<<<<<<<<<<< * def preferredShmemCarveout(self): * return self._ptr[0].preferredShmemCarveout */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_18cudaFuncAttributes_22preferredShmemCarveout_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_18cudaFuncAttributes_22preferredShmemCarveout___get__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_18cudaFuncAttributes_22preferredShmemCarveout___get__(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6310, 0, __PYX_ERR(0, 6310, __pyx_L1_error)); /* "cuda/cudart.pyx":6312 * @property * def preferredShmemCarveout(self): * return self._ptr[0].preferredShmemCarveout # <<<<<<<<<<<<<< * @preferredShmemCarveout.setter * def preferredShmemCarveout(self, int preferredShmemCarveout): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).preferredShmemCarveout); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6312, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6310 * def maxDynamicSharedSizeBytes(self, int maxDynamicSharedSizeBytes): * self._ptr[0].maxDynamicSharedSizeBytes = maxDynamicSharedSizeBytes * @property # <<<<<<<<<<<<<< * def preferredShmemCarveout(self): * return self._ptr[0].preferredShmemCarveout */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.preferredShmemCarveout.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6313 * def preferredShmemCarveout(self): * return self._ptr[0].preferredShmemCarveout * @preferredShmemCarveout.setter # <<<<<<<<<<<<<< * def preferredShmemCarveout(self, int preferredShmemCarveout): * self._ptr[0].preferredShmemCarveout = preferredShmemCarveout */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_22preferredShmemCarveout_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_preferredShmemCarveout); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_preferredShmemCarveout); if (unlikely((__pyx_v_preferredShmemCarveout == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6314, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.preferredShmemCarveout.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_22preferredShmemCarveout_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self), ((int)__pyx_v_preferredShmemCarveout)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_22preferredShmemCarveout_2__set__(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self, int __pyx_v_preferredShmemCarveout) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 6313, 0, __PYX_ERR(0, 6313, __pyx_L1_error)); /* "cuda/cudart.pyx":6315 * @preferredShmemCarveout.setter * def preferredShmemCarveout(self, int preferredShmemCarveout): * self._ptr[0].preferredShmemCarveout = preferredShmemCarveout # <<<<<<<<<<<<<< * @property * def clusterDimMustBeSet(self): */ (__pyx_v_self->_ptr[0]).preferredShmemCarveout = __pyx_v_preferredShmemCarveout; /* "cuda/cudart.pyx":6313 * def preferredShmemCarveout(self): * return self._ptr[0].preferredShmemCarveout * @preferredShmemCarveout.setter # <<<<<<<<<<<<<< * def preferredShmemCarveout(self, int preferredShmemCarveout): * self._ptr[0].preferredShmemCarveout = preferredShmemCarveout */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.preferredShmemCarveout.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6316 * def preferredShmemCarveout(self, int preferredShmemCarveout): * self._ptr[0].preferredShmemCarveout = preferredShmemCarveout * @property # <<<<<<<<<<<<<< * def clusterDimMustBeSet(self): * return self._ptr[0].clusterDimMustBeSet */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_18cudaFuncAttributes_19clusterDimMustBeSet_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_18cudaFuncAttributes_19clusterDimMustBeSet___get__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_18cudaFuncAttributes_19clusterDimMustBeSet___get__(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6316, 0, __PYX_ERR(0, 6316, __pyx_L1_error)); /* "cuda/cudart.pyx":6318 * @property * def clusterDimMustBeSet(self): * return self._ptr[0].clusterDimMustBeSet # <<<<<<<<<<<<<< * @clusterDimMustBeSet.setter * def clusterDimMustBeSet(self, int clusterDimMustBeSet): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).clusterDimMustBeSet); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6318, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6316 * def preferredShmemCarveout(self, int preferredShmemCarveout): * self._ptr[0].preferredShmemCarveout = preferredShmemCarveout * @property # <<<<<<<<<<<<<< * def clusterDimMustBeSet(self): * return self._ptr[0].clusterDimMustBeSet */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.clusterDimMustBeSet.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6319 * def clusterDimMustBeSet(self): * return self._ptr[0].clusterDimMustBeSet * @clusterDimMustBeSet.setter # <<<<<<<<<<<<<< * def clusterDimMustBeSet(self, int clusterDimMustBeSet): * self._ptr[0].clusterDimMustBeSet = clusterDimMustBeSet */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_19clusterDimMustBeSet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_clusterDimMustBeSet); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_clusterDimMustBeSet); if (unlikely((__pyx_v_clusterDimMustBeSet == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6320, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.clusterDimMustBeSet.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_19clusterDimMustBeSet_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self), ((int)__pyx_v_clusterDimMustBeSet)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_19clusterDimMustBeSet_2__set__(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self, int __pyx_v_clusterDimMustBeSet) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 6319, 0, __PYX_ERR(0, 6319, __pyx_L1_error)); /* "cuda/cudart.pyx":6321 * @clusterDimMustBeSet.setter * def clusterDimMustBeSet(self, int clusterDimMustBeSet): * self._ptr[0].clusterDimMustBeSet = clusterDimMustBeSet # <<<<<<<<<<<<<< * @property * def requiredClusterWidth(self): */ (__pyx_v_self->_ptr[0]).clusterDimMustBeSet = __pyx_v_clusterDimMustBeSet; /* "cuda/cudart.pyx":6319 * def clusterDimMustBeSet(self): * return self._ptr[0].clusterDimMustBeSet * @clusterDimMustBeSet.setter # <<<<<<<<<<<<<< * def clusterDimMustBeSet(self, int clusterDimMustBeSet): * self._ptr[0].clusterDimMustBeSet = clusterDimMustBeSet */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.clusterDimMustBeSet.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6322 * def clusterDimMustBeSet(self, int clusterDimMustBeSet): * self._ptr[0].clusterDimMustBeSet = clusterDimMustBeSet * @property # <<<<<<<<<<<<<< * def requiredClusterWidth(self): * return self._ptr[0].requiredClusterWidth */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_18cudaFuncAttributes_20requiredClusterWidth_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_18cudaFuncAttributes_20requiredClusterWidth___get__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_18cudaFuncAttributes_20requiredClusterWidth___get__(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6322, 0, __PYX_ERR(0, 6322, __pyx_L1_error)); /* "cuda/cudart.pyx":6324 * @property * def requiredClusterWidth(self): * return self._ptr[0].requiredClusterWidth # <<<<<<<<<<<<<< * @requiredClusterWidth.setter * def requiredClusterWidth(self, int requiredClusterWidth): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).requiredClusterWidth); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6324, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6322 * def clusterDimMustBeSet(self, int clusterDimMustBeSet): * self._ptr[0].clusterDimMustBeSet = clusterDimMustBeSet * @property # <<<<<<<<<<<<<< * def requiredClusterWidth(self): * return self._ptr[0].requiredClusterWidth */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.requiredClusterWidth.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6325 * def requiredClusterWidth(self): * return self._ptr[0].requiredClusterWidth * @requiredClusterWidth.setter # <<<<<<<<<<<<<< * def requiredClusterWidth(self, int requiredClusterWidth): * self._ptr[0].requiredClusterWidth = requiredClusterWidth */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_20requiredClusterWidth_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_requiredClusterWidth); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_requiredClusterWidth); if (unlikely((__pyx_v_requiredClusterWidth == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6326, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.requiredClusterWidth.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_20requiredClusterWidth_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self), ((int)__pyx_v_requiredClusterWidth)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_20requiredClusterWidth_2__set__(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self, int __pyx_v_requiredClusterWidth) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 6325, 0, __PYX_ERR(0, 6325, __pyx_L1_error)); /* "cuda/cudart.pyx":6327 * @requiredClusterWidth.setter * def requiredClusterWidth(self, int requiredClusterWidth): * self._ptr[0].requiredClusterWidth = requiredClusterWidth # <<<<<<<<<<<<<< * @property * def requiredClusterHeight(self): */ (__pyx_v_self->_ptr[0]).requiredClusterWidth = __pyx_v_requiredClusterWidth; /* "cuda/cudart.pyx":6325 * def requiredClusterWidth(self): * return self._ptr[0].requiredClusterWidth * @requiredClusterWidth.setter # <<<<<<<<<<<<<< * def requiredClusterWidth(self, int requiredClusterWidth): * self._ptr[0].requiredClusterWidth = requiredClusterWidth */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.requiredClusterWidth.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6328 * def requiredClusterWidth(self, int requiredClusterWidth): * self._ptr[0].requiredClusterWidth = requiredClusterWidth * @property # <<<<<<<<<<<<<< * def requiredClusterHeight(self): * return self._ptr[0].requiredClusterHeight */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_18cudaFuncAttributes_21requiredClusterHeight_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_18cudaFuncAttributes_21requiredClusterHeight___get__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_18cudaFuncAttributes_21requiredClusterHeight___get__(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6328, 0, __PYX_ERR(0, 6328, __pyx_L1_error)); /* "cuda/cudart.pyx":6330 * @property * def requiredClusterHeight(self): * return self._ptr[0].requiredClusterHeight # <<<<<<<<<<<<<< * @requiredClusterHeight.setter * def requiredClusterHeight(self, int requiredClusterHeight): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).requiredClusterHeight); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6330, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6328 * def requiredClusterWidth(self, int requiredClusterWidth): * self._ptr[0].requiredClusterWidth = requiredClusterWidth * @property # <<<<<<<<<<<<<< * def requiredClusterHeight(self): * return self._ptr[0].requiredClusterHeight */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.requiredClusterHeight.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6331 * def requiredClusterHeight(self): * return self._ptr[0].requiredClusterHeight * @requiredClusterHeight.setter # <<<<<<<<<<<<<< * def requiredClusterHeight(self, int requiredClusterHeight): * self._ptr[0].requiredClusterHeight = requiredClusterHeight */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_21requiredClusterHeight_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_requiredClusterHeight); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_requiredClusterHeight); if (unlikely((__pyx_v_requiredClusterHeight == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6332, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.requiredClusterHeight.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_21requiredClusterHeight_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self), ((int)__pyx_v_requiredClusterHeight)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_21requiredClusterHeight_2__set__(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self, int __pyx_v_requiredClusterHeight) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 6331, 0, __PYX_ERR(0, 6331, __pyx_L1_error)); /* "cuda/cudart.pyx":6333 * @requiredClusterHeight.setter * def requiredClusterHeight(self, int requiredClusterHeight): * self._ptr[0].requiredClusterHeight = requiredClusterHeight # <<<<<<<<<<<<<< * @property * def requiredClusterDepth(self): */ (__pyx_v_self->_ptr[0]).requiredClusterHeight = __pyx_v_requiredClusterHeight; /* "cuda/cudart.pyx":6331 * def requiredClusterHeight(self): * return self._ptr[0].requiredClusterHeight * @requiredClusterHeight.setter # <<<<<<<<<<<<<< * def requiredClusterHeight(self, int requiredClusterHeight): * self._ptr[0].requiredClusterHeight = requiredClusterHeight */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.requiredClusterHeight.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6334 * def requiredClusterHeight(self, int requiredClusterHeight): * self._ptr[0].requiredClusterHeight = requiredClusterHeight * @property # <<<<<<<<<<<<<< * def requiredClusterDepth(self): * return self._ptr[0].requiredClusterDepth */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_18cudaFuncAttributes_20requiredClusterDepth_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_18cudaFuncAttributes_20requiredClusterDepth___get__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_18cudaFuncAttributes_20requiredClusterDepth___get__(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6334, 0, __PYX_ERR(0, 6334, __pyx_L1_error)); /* "cuda/cudart.pyx":6336 * @property * def requiredClusterDepth(self): * return self._ptr[0].requiredClusterDepth # <<<<<<<<<<<<<< * @requiredClusterDepth.setter * def requiredClusterDepth(self, int requiredClusterDepth): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).requiredClusterDepth); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6336, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6334 * def requiredClusterHeight(self, int requiredClusterHeight): * self._ptr[0].requiredClusterHeight = requiredClusterHeight * @property # <<<<<<<<<<<<<< * def requiredClusterDepth(self): * return self._ptr[0].requiredClusterDepth */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.requiredClusterDepth.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6337 * def requiredClusterDepth(self): * return self._ptr[0].requiredClusterDepth * @requiredClusterDepth.setter # <<<<<<<<<<<<<< * def requiredClusterDepth(self, int requiredClusterDepth): * self._ptr[0].requiredClusterDepth = requiredClusterDepth */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_20requiredClusterDepth_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_requiredClusterDepth); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_requiredClusterDepth); if (unlikely((__pyx_v_requiredClusterDepth == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6338, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.requiredClusterDepth.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_20requiredClusterDepth_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self), ((int)__pyx_v_requiredClusterDepth)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_20requiredClusterDepth_2__set__(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self, int __pyx_v_requiredClusterDepth) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 6337, 0, __PYX_ERR(0, 6337, __pyx_L1_error)); /* "cuda/cudart.pyx":6339 * @requiredClusterDepth.setter * def requiredClusterDepth(self, int requiredClusterDepth): * self._ptr[0].requiredClusterDepth = requiredClusterDepth # <<<<<<<<<<<<<< * @property * def clusterSchedulingPolicyPreference(self): */ (__pyx_v_self->_ptr[0]).requiredClusterDepth = __pyx_v_requiredClusterDepth; /* "cuda/cudart.pyx":6337 * def requiredClusterDepth(self): * return self._ptr[0].requiredClusterDepth * @requiredClusterDepth.setter # <<<<<<<<<<<<<< * def requiredClusterDepth(self, int requiredClusterDepth): * self._ptr[0].requiredClusterDepth = requiredClusterDepth */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.requiredClusterDepth.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6340 * def requiredClusterDepth(self, int requiredClusterDepth): * self._ptr[0].requiredClusterDepth = requiredClusterDepth * @property # <<<<<<<<<<<<<< * def clusterSchedulingPolicyPreference(self): * return self._ptr[0].clusterSchedulingPolicyPreference */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_18cudaFuncAttributes_33clusterSchedulingPolicyPreference_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_18cudaFuncAttributes_33clusterSchedulingPolicyPreference___get__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_18cudaFuncAttributes_33clusterSchedulingPolicyPreference___get__(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6340, 0, __PYX_ERR(0, 6340, __pyx_L1_error)); /* "cuda/cudart.pyx":6342 * @property * def clusterSchedulingPolicyPreference(self): * return self._ptr[0].clusterSchedulingPolicyPreference # <<<<<<<<<<<<<< * @clusterSchedulingPolicyPreference.setter * def clusterSchedulingPolicyPreference(self, int clusterSchedulingPolicyPreference): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).clusterSchedulingPolicyPreference); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6342, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6340 * def requiredClusterDepth(self, int requiredClusterDepth): * self._ptr[0].requiredClusterDepth = requiredClusterDepth * @property # <<<<<<<<<<<<<< * def clusterSchedulingPolicyPreference(self): * return self._ptr[0].clusterSchedulingPolicyPreference */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.clusterSchedulingPolicyPreference.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6343 * def clusterSchedulingPolicyPreference(self): * return self._ptr[0].clusterSchedulingPolicyPreference * @clusterSchedulingPolicyPreference.setter # <<<<<<<<<<<<<< * def clusterSchedulingPolicyPreference(self, int clusterSchedulingPolicyPreference): * self._ptr[0].clusterSchedulingPolicyPreference = clusterSchedulingPolicyPreference */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_33clusterSchedulingPolicyPreference_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_clusterSchedulingPolicyPreference); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_clusterSchedulingPolicyPreference); if (unlikely((__pyx_v_clusterSchedulingPolicyPreference == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6344, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.clusterSchedulingPolicyPreference.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_33clusterSchedulingPolicyPreference_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self), ((int)__pyx_v_clusterSchedulingPolicyPreference)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_33clusterSchedulingPolicyPreference_2__set__(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self, int __pyx_v_clusterSchedulingPolicyPreference) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 6343, 0, __PYX_ERR(0, 6343, __pyx_L1_error)); /* "cuda/cudart.pyx":6345 * @clusterSchedulingPolicyPreference.setter * def clusterSchedulingPolicyPreference(self, int clusterSchedulingPolicyPreference): * self._ptr[0].clusterSchedulingPolicyPreference = clusterSchedulingPolicyPreference # <<<<<<<<<<<<<< * @property * def nonPortableClusterSizeAllowed(self): */ (__pyx_v_self->_ptr[0]).clusterSchedulingPolicyPreference = __pyx_v_clusterSchedulingPolicyPreference; /* "cuda/cudart.pyx":6343 * def clusterSchedulingPolicyPreference(self): * return self._ptr[0].clusterSchedulingPolicyPreference * @clusterSchedulingPolicyPreference.setter # <<<<<<<<<<<<<< * def clusterSchedulingPolicyPreference(self, int clusterSchedulingPolicyPreference): * self._ptr[0].clusterSchedulingPolicyPreference = clusterSchedulingPolicyPreference */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.clusterSchedulingPolicyPreference.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6346 * def clusterSchedulingPolicyPreference(self, int clusterSchedulingPolicyPreference): * self._ptr[0].clusterSchedulingPolicyPreference = clusterSchedulingPolicyPreference * @property # <<<<<<<<<<<<<< * def nonPortableClusterSizeAllowed(self): * return self._ptr[0].nonPortableClusterSizeAllowed */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_18cudaFuncAttributes_29nonPortableClusterSizeAllowed_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_18cudaFuncAttributes_29nonPortableClusterSizeAllowed___get__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_18cudaFuncAttributes_29nonPortableClusterSizeAllowed___get__(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6346, 0, __PYX_ERR(0, 6346, __pyx_L1_error)); /* "cuda/cudart.pyx":6348 * @property * def nonPortableClusterSizeAllowed(self): * return self._ptr[0].nonPortableClusterSizeAllowed # <<<<<<<<<<<<<< * @nonPortableClusterSizeAllowed.setter * def nonPortableClusterSizeAllowed(self, int nonPortableClusterSizeAllowed): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).nonPortableClusterSizeAllowed); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6348, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6346 * def clusterSchedulingPolicyPreference(self, int clusterSchedulingPolicyPreference): * self._ptr[0].clusterSchedulingPolicyPreference = clusterSchedulingPolicyPreference * @property # <<<<<<<<<<<<<< * def nonPortableClusterSizeAllowed(self): * return self._ptr[0].nonPortableClusterSizeAllowed */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.nonPortableClusterSizeAllowed.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6349 * def nonPortableClusterSizeAllowed(self): * return self._ptr[0].nonPortableClusterSizeAllowed * @nonPortableClusterSizeAllowed.setter # <<<<<<<<<<<<<< * def nonPortableClusterSizeAllowed(self, int nonPortableClusterSizeAllowed): * self._ptr[0].nonPortableClusterSizeAllowed = nonPortableClusterSizeAllowed */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_29nonPortableClusterSizeAllowed_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_nonPortableClusterSizeAllowed); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_nonPortableClusterSizeAllowed); if (unlikely((__pyx_v_nonPortableClusterSizeAllowed == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6350, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.nonPortableClusterSizeAllowed.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_29nonPortableClusterSizeAllowed_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self), ((int)__pyx_v_nonPortableClusterSizeAllowed)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_29nonPortableClusterSizeAllowed_2__set__(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self, int __pyx_v_nonPortableClusterSizeAllowed) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 6349, 0, __PYX_ERR(0, 6349, __pyx_L1_error)); /* "cuda/cudart.pyx":6351 * @nonPortableClusterSizeAllowed.setter * def nonPortableClusterSizeAllowed(self, int nonPortableClusterSizeAllowed): * self._ptr[0].nonPortableClusterSizeAllowed = nonPortableClusterSizeAllowed # <<<<<<<<<<<<<< * @property * def reserved(self): */ (__pyx_v_self->_ptr[0]).nonPortableClusterSizeAllowed = __pyx_v_nonPortableClusterSizeAllowed; /* "cuda/cudart.pyx":6349 * def nonPortableClusterSizeAllowed(self): * return self._ptr[0].nonPortableClusterSizeAllowed * @nonPortableClusterSizeAllowed.setter # <<<<<<<<<<<<<< * def nonPortableClusterSizeAllowed(self, int nonPortableClusterSizeAllowed): * self._ptr[0].nonPortableClusterSizeAllowed = nonPortableClusterSizeAllowed */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.nonPortableClusterSizeAllowed.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6352 * def nonPortableClusterSizeAllowed(self, int nonPortableClusterSizeAllowed): * self._ptr[0].nonPortableClusterSizeAllowed = nonPortableClusterSizeAllowed * @property # <<<<<<<<<<<<<< * def reserved(self): * return self._ptr[0].reserved */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_18cudaFuncAttributes_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_18cudaFuncAttributes_8reserved___get__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_18cudaFuncAttributes_8reserved___get__(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6352, 0, __PYX_ERR(0, 6352, __pyx_L1_error)); /* "cuda/cudart.pyx":6354 * @property * def reserved(self): * return self._ptr[0].reserved # <<<<<<<<<<<<<< * @reserved.setter * def reserved(self, reserved): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_ptr[0]).reserved, 16); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6354, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6352 * def nonPortableClusterSizeAllowed(self, int nonPortableClusterSizeAllowed): * self._ptr[0].nonPortableClusterSizeAllowed = nonPortableClusterSizeAllowed * @property # <<<<<<<<<<<<<< * def reserved(self): * return self._ptr[0].reserved */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6355 * def reserved(self): * return self._ptr[0].reserved * @reserved.setter # <<<<<<<<<<<<<< * def reserved(self, reserved): * self._ptr[0].reserved = reserved */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_18cudaFuncAttributes_8reserved_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self), ((PyObject *)__pyx_v_reserved)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_8reserved_2__set__(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self, PyObject *__pyx_v_reserved) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1[16]; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 6355, 0, __PYX_ERR(0, 6355, __pyx_L1_error)); /* "cuda/cudart.pyx":6357 * @reserved.setter * def reserved(self, reserved): * self._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, 6357, __pyx_L1_error) memcpy(&((__pyx_v_self->_ptr[0]).reserved[0]), __pyx_t_1, sizeof((__pyx_v_self->_ptr[0]).reserved[0]) * (16)); /* "cuda/cudart.pyx":6355 * def reserved(self): * return self._ptr[0].reserved * @reserved.setter # <<<<<<<<<<<<<< * def reserved(self, reserved): * self._ptr[0].reserved = reserved */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_18cudaFuncAttributes_10__reduce_cython__, "cudaFuncAttributes.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_18cudaFuncAttributes_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_18cudaFuncAttributes_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_18cudaFuncAttributes_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_18cudaFuncAttributes_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__126) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaFuncAttributes.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_18cudaFuncAttributes_12__setstate_cython__, "cudaFuncAttributes.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_18cudaFuncAttributes_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_18cudaFuncAttributes_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_18cudaFuncAttributes_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaFuncAttributes.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_18cudaFuncAttributes_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_18cudaFuncAttributes_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__127) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaFuncAttributes.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6379 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_15cudaMemLocation_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_15cudaMemLocation_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 6379, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 6379, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6379, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 6379, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemLocation.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_15cudaMemLocation___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaMemLocation *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_15cudaMemLocation___cinit__(struct __pyx_obj_4cuda_6cudart_cudaMemLocation *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 6379, 0, __PYX_ERR(0, 6379, __pyx_L1_error)); /* "cuda/cudart.pyx":6380 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":6381 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaMemLocation__val); /* "cuda/cudart.pyx":6380 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":6383 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * pass */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaMemLocation *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":6379 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemLocation.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6384 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_15cudaMemLocation_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_15cudaMemLocation_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 6384, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 6384, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6384, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 6384, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemLocation.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_15cudaMemLocation_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaMemLocation *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_15cudaMemLocation_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemLocation *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 6384, 0, __PYX_ERR(0, 6384, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemLocation.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6386 * def __init__(self, void_ptr _ptr = 0): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_15cudaMemLocation_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_15cudaMemLocation_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaMemLocation *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_15cudaMemLocation_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemLocation *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 6386, 0, __PYX_ERR(0, 6386, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaMemLocation.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":6388 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_15cudaMemLocation_6getPtr, "cudaMemLocation.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_15cudaMemLocation_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_15cudaMemLocation_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_15cudaMemLocation_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_15cudaMemLocation_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaMemLocation *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_15cudaMemLocation_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaMemLocation *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__128) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 6388, 0, __PYX_ERR(0, 6388, __pyx_L1_error)); /* "cuda/cudart.pyx":6389 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6389, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6388 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemLocation.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6390 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_15cudaMemLocation_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_15cudaMemLocation_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaMemLocation *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_15cudaMemLocation_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaMemLocation *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 6390, 0, __PYX_ERR(0, 6390, __pyx_L1_error)); /* "cuda/cudart.pyx":6391 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":6392 * def __repr__(self): * if self._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, 6392, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":6393 * if self._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/cudart.pyx":6394 * str_list = [] * try: * str_list += ['type : ' + str(self.type)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['type : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_type_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6394, __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, 6394, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_type, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6394, __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, 6394, __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)) __PYX_ERR(0, 6394, __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, 6394, __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/cudart.pyx":6393 * if self._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/cudart.pyx":6395 * try: * str_list += ['type : ' + str(self.type)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['type : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemLocation.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 6395, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":6396 * str_list += ['type : ' + str(self.type)] * except ValueError: * str_list += ['type : '] # <<<<<<<<<<<<<< * try: * str_list += ['id : ' + str(self.id)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6396, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_type_ValueError); __Pyx_GIVEREF(__pyx_kp_u_type_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_type_ValueError)) __PYX_ERR(0, 6396, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6396, __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/cudart.pyx":6393 * if self._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/cudart.pyx":6397 * except ValueError: * str_list += ['type : '] * 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/cudart.pyx":6398 * str_list += ['type : '] * try: * str_list += ['id : ' + str(self.id)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['id : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6398, __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, 6398, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_id, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6398, __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, 6398, __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)) __PYX_ERR(0, 6398, __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, 6398, __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/cudart.pyx":6397 * except ValueError: * str_list += ['type : '] * 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/cudart.pyx":6399 * try: * str_list += ['id : ' + str(self.id)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['id : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemLocation.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 6399, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":6400 * str_list += ['id : ' + str(self.id)] * except ValueError: * str_list += ['id : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6400, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_id_ValueError); __Pyx_GIVEREF(__pyx_kp_u_id_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_id_ValueError)) __PYX_ERR(0, 6400, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6400, __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/cudart.pyx":6397 * except ValueError: * str_list += ['type : '] * 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/cudart.pyx":6401 * except ValueError: * str_list += ['id : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6401, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6391 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":6403 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def type(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":6390 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaMemLocation.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6404 * else: * return '' * @property # <<<<<<<<<<<<<< * def type(self): * return cudaMemLocationType(self._ptr[0].type) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_15cudaMemLocation_4type_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_15cudaMemLocation_4type___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemLocation *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_15cudaMemLocation_4type___get__(struct __pyx_obj_4cuda_6cudart_cudaMemLocation *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6404, 0, __PYX_ERR(0, 6404, __pyx_L1_error)); /* "cuda/cudart.pyx":6406 * @property * def type(self): * return cudaMemLocationType(self._ptr[0].type) # <<<<<<<<<<<<<< * @type.setter * def type(self, type not None : cudaMemLocationType): */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaMemLocationType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6406, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaMemLocationType((__pyx_v_self->_ptr[0]).type); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6406, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6406, __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/cudart.pyx":6404 * else: * return '' * @property # <<<<<<<<<<<<<< * def type(self): * return cudaMemLocationType(self._ptr[0].type) */ /* 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.cudart.cudaMemLocation.type.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6407 * def type(self): * return cudaMemLocationType(self._ptr[0].type) * @type.setter # <<<<<<<<<<<<<< * def type(self, type not None : cudaMemLocationType): * self._ptr[0].type = type.value */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_15cudaMemLocation_4type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_type); /*proto*/ static int __pyx_pw_4cuda_6cudart_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, 6408, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_15cudaMemLocation_4type_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemLocation *)__pyx_v_self), ((PyObject *)__pyx_v_type)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_15cudaMemLocation_4type_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemLocation *__pyx_v_self, PyObject *__pyx_v_type) { int __pyx_r; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 6407, 0, __PYX_ERR(0, 6407, __pyx_L1_error)); /* "cuda/cudart.pyx":6409 * @type.setter * def type(self, type not None : cudaMemLocationType): * self._ptr[0].type = type.value # <<<<<<<<<<<<<< * @property * def id(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_type, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6409, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaMemLocationType)__Pyx_PyInt_As_enum__cudaMemLocationType(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 6409, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).type = __pyx_t_2; /* "cuda/cudart.pyx":6407 * def type(self): * return cudaMemLocationType(self._ptr[0].type) * @type.setter # <<<<<<<<<<<<<< * def type(self, type not None : cudaMemLocationType): * self._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.cudart.cudaMemLocation.type.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6410 * def type(self, type not None : cudaMemLocationType): * self._ptr[0].type = type.value * @property # <<<<<<<<<<<<<< * def id(self): * return self._ptr[0].id */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_15cudaMemLocation_2id_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_15cudaMemLocation_2id___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemLocation *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_15cudaMemLocation_2id___get__(struct __pyx_obj_4cuda_6cudart_cudaMemLocation *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6410, 0, __PYX_ERR(0, 6410, __pyx_L1_error)); /* "cuda/cudart.pyx":6412 * @property * def id(self): * return self._ptr[0].id # <<<<<<<<<<<<<< * @id.setter * def id(self, int id): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6412, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6410 * def type(self, type not None : cudaMemLocationType): * self._ptr[0].type = type.value * @property # <<<<<<<<<<<<<< * def id(self): * return self._ptr[0].id */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemLocation.id.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6413 * def id(self): * return self._ptr[0].id * @id.setter # <<<<<<<<<<<<<< * def id(self, int id): * self._ptr[0].id = id */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_15cudaMemLocation_2id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_id); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_id); if (unlikely((__pyx_v_id == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6414, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemLocation.id.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_15cudaMemLocation_2id_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemLocation *)__pyx_v_self), ((int)__pyx_v_id)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_15cudaMemLocation_2id_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemLocation *__pyx_v_self, int __pyx_v_id) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 6413, 0, __PYX_ERR(0, 6413, __pyx_L1_error)); /* "cuda/cudart.pyx":6415 * @id.setter * def id(self, int id): * self._ptr[0].id = id # <<<<<<<<<<<<<< * * cdef class cudaMemAccessDesc: */ (__pyx_v_self->_ptr[0]).id = __pyx_v_id; /* "cuda/cudart.pyx":6413 * def id(self): * return self._ptr[0].id * @id.setter # <<<<<<<<<<<<<< * def id(self, int id): * self._ptr[0].id = id */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemLocation.id.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_15cudaMemLocation_10__reduce_cython__, "cudaMemLocation.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_15cudaMemLocation_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_15cudaMemLocation_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_15cudaMemLocation_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_15cudaMemLocation_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaMemLocation *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_15cudaMemLocation_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemLocation *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__129) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaMemLocation.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_15cudaMemLocation_12__setstate_cython__, "cudaMemLocation.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_15cudaMemLocation_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_15cudaMemLocation_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_15cudaMemLocation_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemLocation.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_15cudaMemLocation_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaMemLocation *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_15cudaMemLocation_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemLocation *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__130) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaMemLocation.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6434 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_17cudaMemAccessDesc_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_17cudaMemAccessDesc_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 6434, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 6434, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6434, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 6434, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemAccessDesc.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_17cudaMemAccessDesc___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaMemAccessDesc *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_17cudaMemAccessDesc___cinit__(struct __pyx_obj_4cuda_6cudart_cudaMemAccessDesc *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 6434, 0, __PYX_ERR(0, 6434, __pyx_L1_error)); /* "cuda/cudart.pyx":6435 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":6436 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaMemAccessDesc__val); /* "cuda/cudart.pyx":6435 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":6438 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * self._location = cudaMemLocation(_ptr=&self._ptr[0].location) */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaMemAccessDesc *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":6434 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemAccessDesc.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6439 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._location = cudaMemLocation(_ptr=&self._ptr[0].location) * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_17cudaMemAccessDesc_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_17cudaMemAccessDesc_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 6439, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 6439, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6439, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 6439, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemAccessDesc.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_17cudaMemAccessDesc_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaMemAccessDesc *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_17cudaMemAccessDesc_2__init__(struct __pyx_obj_4cuda_6cudart_cudaMemAccessDesc *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 6439, 0, __PYX_ERR(0, 6439, __pyx_L1_error)); /* "cuda/cudart.pyx":6440 * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): * self._location = cudaMemLocation(_ptr=&self._ptr[0].location) # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6440, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).location))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6440, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 6440, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemLocation), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6440, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_location); __Pyx_DECREF((PyObject *)__pyx_v_self->_location); __pyx_v_self->_location = ((struct __pyx_obj_4cuda_6cudart_cudaMemLocation *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":6439 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._location = cudaMemLocation(_ptr=&self._ptr[0].location) * def __dealloc__(self): */ /* 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.cudart.cudaMemAccessDesc.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6441 * def __init__(self, void_ptr _ptr = 0): * self._location = cudaMemLocation(_ptr=&self._ptr[0].location) * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_17cudaMemAccessDesc_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_17cudaMemAccessDesc_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaMemAccessDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_17cudaMemAccessDesc_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemAccessDesc *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 6441, 0, __PYX_ERR(0, 6441, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaMemAccessDesc.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":6443 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_17cudaMemAccessDesc_6getPtr, "cudaMemAccessDesc.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_17cudaMemAccessDesc_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_17cudaMemAccessDesc_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_17cudaMemAccessDesc_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_17cudaMemAccessDesc_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaMemAccessDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_17cudaMemAccessDesc_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaMemAccessDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__131) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 6443, 0, __PYX_ERR(0, 6443, __pyx_L1_error)); /* "cuda/cudart.pyx":6444 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6444, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6443 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemAccessDesc.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6445 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_17cudaMemAccessDesc_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_17cudaMemAccessDesc_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaMemAccessDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_17cudaMemAccessDesc_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaMemAccessDesc *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_9genexpr19__pyx_v_line = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 6445, 0, __PYX_ERR(0, 6445, __pyx_L1_error)); /* "cuda/cudart.pyx":6446 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":6447 * def __repr__(self): * if self._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, 6447, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":6448 * if self._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/cudart.pyx":6449 * str_list = [] * try: * str_list += ['location :\n' + '\n'.join([' ' + line for line in str(self.location).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['location : '] */ { /* enter inner scope */ __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6449, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_location_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6449, __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, 6449, __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, 6449, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 6449, __pyx_L12_error) #endif if (__pyx_t_8 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_7, __pyx_t_8); __Pyx_INCREF(__pyx_t_6); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(0, 6449, __pyx_L12_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6449, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_9genexpr19__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr19__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6449, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 6449, __pyx_L12_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_9genexpr19__pyx_v_line); __pyx_9genexpr19__pyx_v_line = 0; goto __pyx_L16_exit_scope; __pyx_L12_error:; __Pyx_XDECREF(__pyx_9genexpr19__pyx_v_line); __pyx_9genexpr19__pyx_v_line = 0; goto __pyx_L4_error; __pyx_L16_exit_scope:; } /* exit inner scope */ __pyx_t_7 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 6449, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_location, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6449, __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, 6449, __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)) __PYX_ERR(0, 6449, __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, 6449, __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/cudart.pyx":6448 * if self._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/cudart.pyx":6450 * try: * str_list += ['location :\n' + '\n'.join([' ' + line for line in str(self.location).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['location : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaMemAccessDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 6450, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":6451 * str_list += ['location :\n' + '\n'.join([' ' + line for line in str(self.location).splitlines()])] * except ValueError: * str_list += ['location : '] # <<<<<<<<<<<<<< * try: * str_list += ['flags : ' + str(self.flags)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6451, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_location_ValueError); __Pyx_GIVEREF(__pyx_kp_u_location_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_location_ValueError)) __PYX_ERR(0, 6451, __pyx_L6_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 6451, __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/cudart.pyx":6448 * if self._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/cudart.pyx":6452 * except ValueError: * str_list += ['location : '] * 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/cudart.pyx":6453 * str_list += ['location : '] * try: * str_list += ['flags : ' + str(self.flags)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['flags : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_flags_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6453, __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, 6453, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_flags, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6453, __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, 6453, __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)) __PYX_ERR(0, 6453, __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, 6453, __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/cudart.pyx":6452 * except ValueError: * str_list += ['location : '] * 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/cudart.pyx":6454 * try: * str_list += ['flags : ' + str(self.flags)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['flags : '] * return '\n'.join(str_list) */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaMemAccessDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_7, &__pyx_t_2) < 0) __PYX_ERR(0, 6454, __pyx_L21_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":6455 * str_list += ['flags : ' + str(self.flags)] * except ValueError: * str_list += ['flags : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 6455, __pyx_L21_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_flags_ValueError); __Pyx_GIVEREF(__pyx_kp_u_flags_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_flags_ValueError)) __PYX_ERR(0, 6455, __pyx_L21_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6455, __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/cudart.pyx":6452 * except ValueError: * str_list += ['location : '] * 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/cudart.pyx":6456 * except ValueError: * str_list += ['flags : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6456, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6446 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":6458 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def location(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":6445 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaMemAccessDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XDECREF(__pyx_9genexpr19__pyx_v_line); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6459 * else: * return '' * @property # <<<<<<<<<<<<<< * def location(self): * return self._location */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_17cudaMemAccessDesc_8location_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_17cudaMemAccessDesc_8location___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemAccessDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_17cudaMemAccessDesc_8location___get__(struct __pyx_obj_4cuda_6cudart_cudaMemAccessDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6459, 0, __PYX_ERR(0, 6459, __pyx_L1_error)); /* "cuda/cudart.pyx":6461 * @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/cudart.pyx":6459 * else: * return '' * @property # <<<<<<<<<<<<<< * def location(self): * return self._location */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemAccessDesc.location.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6462 * def location(self): * return self._location * @location.setter # <<<<<<<<<<<<<< * def location(self, location not None : cudaMemLocation): * string.memcpy(&self._ptr[0].location, location.getPtr(), sizeof(self._ptr[0].location)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_17cudaMemAccessDesc_8location_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_location); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_cudaMemLocation, 0, "location", 0))) __PYX_ERR(0, 6463, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_17cudaMemAccessDesc_8location_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemAccessDesc *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_cudaMemLocation *)__pyx_v_location)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_17cudaMemAccessDesc_8location_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemAccessDesc *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_cudaMemLocation *__pyx_v_location) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 6462, 0, __PYX_ERR(0, 6462, __pyx_L1_error)); /* "cuda/cudart.pyx":6464 * @location.setter * def location(self, location not None : cudaMemLocation): * string.memcpy(&self._ptr[0].location, location.getPtr(), sizeof(self._ptr[0].location)) # <<<<<<<<<<<<<< * @property * def flags(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_location), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6464, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6464, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6464, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).location), ((struct cudaMemLocation *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).location)))); /* "cuda/cudart.pyx":6462 * def location(self): * return self._location * @location.setter # <<<<<<<<<<<<<< * def location(self, location not None : cudaMemLocation): * string.memcpy(&self._ptr[0].location, location.getPtr(), sizeof(self._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_AddTraceback("cuda.cudart.cudaMemAccessDesc.location.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6465 * def location(self, location not None : cudaMemLocation): * string.memcpy(&self._ptr[0].location, location.getPtr(), sizeof(self._ptr[0].location)) * @property # <<<<<<<<<<<<<< * def flags(self): * return cudaMemAccessFlags(self._ptr[0].flags) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_17cudaMemAccessDesc_5flags_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_17cudaMemAccessDesc_5flags___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemAccessDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_17cudaMemAccessDesc_5flags___get__(struct __pyx_obj_4cuda_6cudart_cudaMemAccessDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6465, 0, __PYX_ERR(0, 6465, __pyx_L1_error)); /* "cuda/cudart.pyx":6467 * @property * def flags(self): * return cudaMemAccessFlags(self._ptr[0].flags) # <<<<<<<<<<<<<< * @flags.setter * def flags(self, flags not None : cudaMemAccessFlags): */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaMemAccessFlags); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6467, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaMemAccessFlags((__pyx_v_self->_ptr[0]).flags); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6467, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6467, __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/cudart.pyx":6465 * def location(self, location not None : cudaMemLocation): * string.memcpy(&self._ptr[0].location, location.getPtr(), sizeof(self._ptr[0].location)) * @property # <<<<<<<<<<<<<< * def flags(self): * return cudaMemAccessFlags(self._ptr[0].flags) */ /* 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.cudart.cudaMemAccessDesc.flags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6468 * def flags(self): * return cudaMemAccessFlags(self._ptr[0].flags) * @flags.setter # <<<<<<<<<<<<<< * def flags(self, flags not None : cudaMemAccessFlags): * self._ptr[0].flags = flags.value */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_17cudaMemAccessDesc_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_flags); /*proto*/ static int __pyx_pw_4cuda_6cudart_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, 6469, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_17cudaMemAccessDesc_5flags_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemAccessDesc *)__pyx_v_self), ((PyObject *)__pyx_v_flags)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_17cudaMemAccessDesc_5flags_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemAccessDesc *__pyx_v_self, PyObject *__pyx_v_flags) { int __pyx_r; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 6468, 0, __PYX_ERR(0, 6468, __pyx_L1_error)); /* "cuda/cudart.pyx":6470 * @flags.setter * def flags(self, flags not None : cudaMemAccessFlags): * self._ptr[0].flags = flags.value # <<<<<<<<<<<<<< * * cdef class cudaMemPoolProps: */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_flags, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6470, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaMemAccessFlags)__Pyx_PyInt_As_enum__cudaMemAccessFlags(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 6470, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).flags = __pyx_t_2; /* "cuda/cudart.pyx":6468 * def flags(self): * return cudaMemAccessFlags(self._ptr[0].flags) * @flags.setter # <<<<<<<<<<<<<< * def flags(self, flags not None : cudaMemAccessFlags): * self._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.cudart.cudaMemAccessDesc.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __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_6cudart_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_6cudart_17cudaMemAccessDesc_10__reduce_cython__, "cudaMemAccessDesc.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_17cudaMemAccessDesc_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_17cudaMemAccessDesc_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_17cudaMemAccessDesc_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_17cudaMemAccessDesc_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaMemAccessDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_17cudaMemAccessDesc_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemAccessDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__132) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaMemAccessDesc.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_17cudaMemAccessDesc_12__setstate_cython__, "cudaMemAccessDesc.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_17cudaMemAccessDesc_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_17cudaMemAccessDesc_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_17cudaMemAccessDesc_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemAccessDesc.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_17cudaMemAccessDesc_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaMemAccessDesc *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_17cudaMemAccessDesc_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemAccessDesc *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__133) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaMemAccessDesc.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6505 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_16cudaMemPoolProps_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_16cudaMemPoolProps_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 6505, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 6505, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6505, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 6505, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemPoolProps.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_16cudaMemPoolProps___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_16cudaMemPoolProps___cinit__(struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 6505, 0, __PYX_ERR(0, 6505, __pyx_L1_error)); /* "cuda/cudart.pyx":6506 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":6507 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaMemPoolProps__val); /* "cuda/cudart.pyx":6506 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":6509 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * self._location = cudaMemLocation(_ptr=&self._ptr[0].location) */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaMemPoolProps *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":6505 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemPoolProps.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6510 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._location = cudaMemLocation(_ptr=&self._ptr[0].location) * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_16cudaMemPoolProps_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_16cudaMemPoolProps_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 6510, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 6510, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6510, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 6510, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemPoolProps.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_16cudaMemPoolProps_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_16cudaMemPoolProps_2__init__(struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 6510, 0, __PYX_ERR(0, 6510, __pyx_L1_error)); /* "cuda/cudart.pyx":6511 * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): * self._location = cudaMemLocation(_ptr=&self._ptr[0].location) # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6511, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).location))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6511, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 6511, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemLocation), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6511, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_location); __Pyx_DECREF((PyObject *)__pyx_v_self->_location); __pyx_v_self->_location = ((struct __pyx_obj_4cuda_6cudart_cudaMemLocation *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":6510 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._location = cudaMemLocation(_ptr=&self._ptr[0].location) * def __dealloc__(self): */ /* 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.cudart.cudaMemPoolProps.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6512 * def __init__(self, void_ptr _ptr = 0): * self._location = cudaMemLocation(_ptr=&self._ptr[0].location) * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_16cudaMemPoolProps_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_16cudaMemPoolProps_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_16cudaMemPoolProps_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 6512, 0, __PYX_ERR(0, 6512, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaMemPoolProps.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":6514 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_16cudaMemPoolProps_6getPtr, "cudaMemPoolProps.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_16cudaMemPoolProps_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_16cudaMemPoolProps_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_16cudaMemPoolProps_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_16cudaMemPoolProps_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_16cudaMemPoolProps_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__134) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 6514, 0, __PYX_ERR(0, 6514, __pyx_L1_error)); /* "cuda/cudart.pyx":6515 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6515, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6514 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemPoolProps.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6516 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_16cudaMemPoolProps_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_16cudaMemPoolProps_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_16cudaMemPoolProps_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_9genexpr20__pyx_v_line = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 6516, 0, __PYX_ERR(0, 6516, __pyx_L1_error)); /* "cuda/cudart.pyx":6517 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":6518 * def __repr__(self): * if self._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, 6518, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":6519 * if self._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/cudart.pyx":6520 * str_list = [] * try: * str_list += ['allocType : ' + str(self.allocType)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['allocType : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_allocType_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6520, __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, 6520, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_allocType, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6520, __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, 6520, __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)) __PYX_ERR(0, 6520, __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, 6520, __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/cudart.pyx":6519 * if self._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/cudart.pyx":6521 * try: * str_list += ['allocType : ' + str(self.allocType)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['allocType : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemPoolProps.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 6521, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":6522 * str_list += ['allocType : ' + str(self.allocType)] * except ValueError: * str_list += ['allocType : '] # <<<<<<<<<<<<<< * try: * str_list += ['handleTypes : ' + str(self.handleTypes)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6522, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_allocType_ValueError); __Pyx_GIVEREF(__pyx_kp_u_allocType_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_allocType_ValueError)) __PYX_ERR(0, 6522, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6522, __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/cudart.pyx":6519 * if self._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/cudart.pyx":6523 * except ValueError: * str_list += ['allocType : '] * 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/cudart.pyx":6524 * str_list += ['allocType : '] * try: * str_list += ['handleTypes : ' + str(self.handleTypes)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['handleTypes : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_handleTypes_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6524, __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, 6524, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_handleTypes, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6524, __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, 6524, __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)) __PYX_ERR(0, 6524, __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, 6524, __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/cudart.pyx":6523 * except ValueError: * str_list += ['allocType : '] * 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/cudart.pyx":6525 * try: * str_list += ['handleTypes : ' + str(self.handleTypes)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['handleTypes : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemPoolProps.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 6525, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":6526 * str_list += ['handleTypes : ' + str(self.handleTypes)] * except ValueError: * str_list += ['handleTypes : '] # <<<<<<<<<<<<<< * 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, 6526, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_handleTypes_ValueError); __Pyx_GIVEREF(__pyx_kp_u_handleTypes_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_handleTypes_ValueError)) __PYX_ERR(0, 6526, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6526, __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/cudart.pyx":6523 * except ValueError: * str_list += ['allocType : '] * 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/cudart.pyx":6527 * except ValueError: * str_list += ['handleTypes : '] * 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/cudart.pyx":6528 * str_list += ['handleTypes : '] * try: * str_list += ['location :\n' + '\n'.join([' ' + line for line in str(self.location).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['location : '] */ { /* enter inner scope */ __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6528, __pyx_L28_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_location_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6528, __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, 6528, __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, 6528, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 6528, __pyx_L28_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_8, __pyx_t_11); __Pyx_INCREF(__pyx_t_6); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 6528, __pyx_L28_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_8, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6528, __pyx_L28_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_9genexpr20__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr20__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6528, __pyx_L28_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 6528, __pyx_L28_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_9genexpr20__pyx_v_line); __pyx_9genexpr20__pyx_v_line = 0; goto __pyx_L32_exit_scope; __pyx_L28_error:; __Pyx_XDECREF(__pyx_9genexpr20__pyx_v_line); __pyx_9genexpr20__pyx_v_line = 0; goto __pyx_L20_error; __pyx_L32_exit_scope:; } /* exit inner scope */ __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6528, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_location, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6528, __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, 6528, __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)) __PYX_ERR(0, 6528, __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, 6528, __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/cudart.pyx":6527 * except ValueError: * str_list += ['handleTypes : '] * 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/cudart.pyx":6529 * try: * str_list += ['location :\n' + '\n'.join([' ' + line for line in str(self.location).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['location : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemPoolProps.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_8, &__pyx_t_6) < 0) __PYX_ERR(0, 6529, __pyx_L22_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":6530 * str_list += ['location :\n' + '\n'.join([' ' + line for line in str(self.location).splitlines()])] * except ValueError: * str_list += ['location : '] # <<<<<<<<<<<<<< * try: * str_list += ['win32SecurityAttributes : ' + hex(self.win32SecurityAttributes)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6530, __pyx_L22_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_location_ValueError); __Pyx_GIVEREF(__pyx_kp_u_location_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_location_ValueError)) __PYX_ERR(0, 6530, __pyx_L22_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6530, __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/cudart.pyx":6527 * except ValueError: * str_list += ['handleTypes : '] * 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/cudart.pyx":6531 * except ValueError: * str_list += ['location : '] * 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/cudart.pyx":6532 * str_list += ['location : '] * try: * str_list += ['win32SecurityAttributes : ' + hex(self.win32SecurityAttributes)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['win32SecurityAttributes : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_win32SecurityAttributes_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6532, __pyx_L35_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6532, __pyx_L35_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u_win32SecurityAttributes, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6532, __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, 6532, __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)) __PYX_ERR(0, 6532, __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, 6532, __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/cudart.pyx":6531 * except ValueError: * str_list += ['location : '] * 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/cudart.pyx":6533 * try: * str_list += ['win32SecurityAttributes : ' + hex(self.win32SecurityAttributes)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['win32SecurityAttributes : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemPoolProps.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 6533, __pyx_L37_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":6534 * str_list += ['win32SecurityAttributes : ' + hex(self.win32SecurityAttributes)] * except ValueError: * str_list += ['win32SecurityAttributes : '] # <<<<<<<<<<<<<< * try: * str_list += ['maxSize : ' + str(self.maxSize)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6534, __pyx_L37_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_win32SecurityAttributes_ValueErr); __Pyx_GIVEREF(__pyx_kp_u_win32SecurityAttributes_ValueErr); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_win32SecurityAttributes_ValueErr)) __PYX_ERR(0, 6534, __pyx_L37_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6534, __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/cudart.pyx":6531 * except ValueError: * str_list += ['location : '] * 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/cudart.pyx":6535 * except ValueError: * str_list += ['win32SecurityAttributes : '] * 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/cudart.pyx":6536 * str_list += ['win32SecurityAttributes : '] * try: * str_list += ['maxSize : ' + str(self.maxSize)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['maxSize : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_maxSize_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6536, __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, 6536, __pyx_L43_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_maxSize, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6536, __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, 6536, __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)) __PYX_ERR(0, 6536, __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, 6536, __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/cudart.pyx":6535 * except ValueError: * str_list += ['win32SecurityAttributes : '] * 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/cudart.pyx":6537 * try: * str_list += ['maxSize : ' + str(self.maxSize)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['maxSize : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemPoolProps.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_8, &__pyx_t_6) < 0) __PYX_ERR(0, 6537, __pyx_L45_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":6538 * str_list += ['maxSize : ' + str(self.maxSize)] * except ValueError: * str_list += ['maxSize : '] # <<<<<<<<<<<<<< * try: * str_list += ['usage : ' + str(self.usage)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6538, __pyx_L45_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_maxSize_ValueError); __Pyx_GIVEREF(__pyx_kp_u_maxSize_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_maxSize_ValueError)) __PYX_ERR(0, 6538, __pyx_L45_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6538, __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/cudart.pyx":6535 * except ValueError: * str_list += ['win32SecurityAttributes : '] * 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/cudart.pyx":6539 * except ValueError: * str_list += ['maxSize : '] * 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/cudart.pyx":6540 * str_list += ['maxSize : '] * try: * str_list += ['usage : ' + str(self.usage)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['usage : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_usage_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6540, __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, 6540, __pyx_L51_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_usage, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6540, __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, 6540, __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)) __PYX_ERR(0, 6540, __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, 6540, __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/cudart.pyx":6539 * except ValueError: * str_list += ['maxSize : '] * 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/cudart.pyx":6541 * try: * str_list += ['usage : ' + str(self.usage)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['usage : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemPoolProps.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 6541, __pyx_L53_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":6542 * str_list += ['usage : ' + str(self.usage)] * except ValueError: * str_list += ['usage : '] # <<<<<<<<<<<<<< * try: * str_list += ['reserved : ' + str(self.reserved)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6542, __pyx_L53_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_usage_ValueError); __Pyx_GIVEREF(__pyx_kp_u_usage_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_usage_ValueError)) __PYX_ERR(0, 6542, __pyx_L53_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6542, __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/cudart.pyx":6539 * except ValueError: * str_list += ['maxSize : '] * 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/cudart.pyx":6543 * except ValueError: * str_list += ['usage : '] * 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/cudart.pyx":6544 * str_list += ['usage : '] * try: * str_list += ['reserved : ' + str(self.reserved)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['reserved : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_reserved_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6544, __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, 6544, __pyx_L59_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_reserved, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6544, __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, 6544, __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)) __PYX_ERR(0, 6544, __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, 6544, __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/cudart.pyx":6543 * except ValueError: * str_list += ['usage : '] * 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/cudart.pyx":6545 * try: * str_list += ['reserved : ' + str(self.reserved)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['reserved : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemPoolProps.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_8, &__pyx_t_6) < 0) __PYX_ERR(0, 6545, __pyx_L61_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":6546 * str_list += ['reserved : ' + str(self.reserved)] * except ValueError: * str_list += ['reserved : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6546, __pyx_L61_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_reserved_ValueError); __Pyx_GIVEREF(__pyx_kp_u_reserved_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_reserved_ValueError)) __PYX_ERR(0, 6546, __pyx_L61_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6546, __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/cudart.pyx":6543 * except ValueError: * str_list += ['usage : '] * 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/cudart.pyx":6547 * except ValueError: * str_list += ['reserved : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_6 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6547, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6517 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":6549 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def allocType(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":6516 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaMemPoolProps.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XDECREF(__pyx_9genexpr20__pyx_v_line); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6550 * else: * return '' * @property # <<<<<<<<<<<<<< * def allocType(self): * return cudaMemAllocationType(self._ptr[0].allocType) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_16cudaMemPoolProps_9allocType_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_16cudaMemPoolProps_9allocType___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_16cudaMemPoolProps_9allocType___get__(struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6550, 0, __PYX_ERR(0, 6550, __pyx_L1_error)); /* "cuda/cudart.pyx":6552 * @property * def allocType(self): * return cudaMemAllocationType(self._ptr[0].allocType) # <<<<<<<<<<<<<< * @allocType.setter * def allocType(self, allocType not None : cudaMemAllocationType): */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaMemAllocationType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6552, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaMemAllocationType((__pyx_v_self->_ptr[0]).allocType); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6552, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6552, __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/cudart.pyx":6550 * else: * return '' * @property # <<<<<<<<<<<<<< * def allocType(self): * return cudaMemAllocationType(self._ptr[0].allocType) */ /* 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.cudart.cudaMemPoolProps.allocType.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6553 * def allocType(self): * return cudaMemAllocationType(self._ptr[0].allocType) * @allocType.setter # <<<<<<<<<<<<<< * def allocType(self, allocType not None : cudaMemAllocationType): * self._ptr[0].allocType = allocType.value */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_16cudaMemPoolProps_9allocType_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_allocType); /*proto*/ static int __pyx_pw_4cuda_6cudart_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, 6554, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_16cudaMemPoolProps_9allocType_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *)__pyx_v_self), ((PyObject *)__pyx_v_allocType)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_16cudaMemPoolProps_9allocType_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *__pyx_v_self, PyObject *__pyx_v_allocType) { int __pyx_r; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 6553, 0, __PYX_ERR(0, 6553, __pyx_L1_error)); /* "cuda/cudart.pyx":6555 * @allocType.setter * def allocType(self, allocType not None : cudaMemAllocationType): * self._ptr[0].allocType = allocType.value # <<<<<<<<<<<<<< * @property * def handleTypes(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_allocType, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6555, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaMemAllocationType)__Pyx_PyInt_As_enum__cudaMemAllocationType(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 6555, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).allocType = __pyx_t_2; /* "cuda/cudart.pyx":6553 * def allocType(self): * return cudaMemAllocationType(self._ptr[0].allocType) * @allocType.setter # <<<<<<<<<<<<<< * def allocType(self, allocType not None : cudaMemAllocationType): * self._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.cudart.cudaMemPoolProps.allocType.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6556 * def allocType(self, allocType not None : cudaMemAllocationType): * self._ptr[0].allocType = allocType.value * @property # <<<<<<<<<<<<<< * def handleTypes(self): * return cudaMemAllocationHandleType(self._ptr[0].handleTypes) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_16cudaMemPoolProps_11handleTypes_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_16cudaMemPoolProps_11handleTypes___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_16cudaMemPoolProps_11handleTypes___get__(struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6556, 0, __PYX_ERR(0, 6556, __pyx_L1_error)); /* "cuda/cudart.pyx":6558 * @property * def handleTypes(self): * return cudaMemAllocationHandleType(self._ptr[0].handleTypes) # <<<<<<<<<<<<<< * @handleTypes.setter * def handleTypes(self, handleTypes not None : cudaMemAllocationHandleType): */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaMemAllocationHandleType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6558, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaMemAllocationHandleType((__pyx_v_self->_ptr[0]).handleTypes); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6558, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6558, __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/cudart.pyx":6556 * def allocType(self, allocType not None : cudaMemAllocationType): * self._ptr[0].allocType = allocType.value * @property # <<<<<<<<<<<<<< * def handleTypes(self): * return cudaMemAllocationHandleType(self._ptr[0].handleTypes) */ /* 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.cudart.cudaMemPoolProps.handleTypes.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6559 * def handleTypes(self): * return cudaMemAllocationHandleType(self._ptr[0].handleTypes) * @handleTypes.setter # <<<<<<<<<<<<<< * def handleTypes(self, handleTypes not None : cudaMemAllocationHandleType): * self._ptr[0].handleTypes = handleTypes.value */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_16cudaMemPoolProps_11handleTypes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_handleTypes); /*proto*/ static int __pyx_pw_4cuda_6cudart_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, 6560, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_16cudaMemPoolProps_11handleTypes_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *)__pyx_v_self), ((PyObject *)__pyx_v_handleTypes)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_16cudaMemPoolProps_11handleTypes_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *__pyx_v_self, PyObject *__pyx_v_handleTypes) { int __pyx_r; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 6559, 0, __PYX_ERR(0, 6559, __pyx_L1_error)); /* "cuda/cudart.pyx":6561 * @handleTypes.setter * def handleTypes(self, handleTypes not None : cudaMemAllocationHandleType): * self._ptr[0].handleTypes = handleTypes.value # <<<<<<<<<<<<<< * @property * def location(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_handleTypes, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6561, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaMemAllocationHandleType)__Pyx_PyInt_As_enum__cudaMemAllocationHandleType(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 6561, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).handleTypes = __pyx_t_2; /* "cuda/cudart.pyx":6559 * def handleTypes(self): * return cudaMemAllocationHandleType(self._ptr[0].handleTypes) * @handleTypes.setter # <<<<<<<<<<<<<< * def handleTypes(self, handleTypes not None : cudaMemAllocationHandleType): * self._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.cudart.cudaMemPoolProps.handleTypes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6562 * def handleTypes(self, handleTypes not None : cudaMemAllocationHandleType): * self._ptr[0].handleTypes = handleTypes.value * @property # <<<<<<<<<<<<<< * def location(self): * return self._location */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_16cudaMemPoolProps_8location_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_16cudaMemPoolProps_8location___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_16cudaMemPoolProps_8location___get__(struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6562, 0, __PYX_ERR(0, 6562, __pyx_L1_error)); /* "cuda/cudart.pyx":6564 * @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/cudart.pyx":6562 * def handleTypes(self, handleTypes not None : cudaMemAllocationHandleType): * self._ptr[0].handleTypes = handleTypes.value * @property # <<<<<<<<<<<<<< * def location(self): * return self._location */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemPoolProps.location.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6565 * def location(self): * return self._location * @location.setter # <<<<<<<<<<<<<< * def location(self, location not None : cudaMemLocation): * string.memcpy(&self._ptr[0].location, location.getPtr(), sizeof(self._ptr[0].location)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_16cudaMemPoolProps_8location_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_location); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_cudaMemLocation, 0, "location", 0))) __PYX_ERR(0, 6566, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_16cudaMemPoolProps_8location_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_cudaMemLocation *)__pyx_v_location)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_16cudaMemPoolProps_8location_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_cudaMemLocation *__pyx_v_location) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 6565, 0, __PYX_ERR(0, 6565, __pyx_L1_error)); /* "cuda/cudart.pyx":6567 * @location.setter * def location(self, location not None : cudaMemLocation): * string.memcpy(&self._ptr[0].location, location.getPtr(), sizeof(self._ptr[0].location)) # <<<<<<<<<<<<<< * @property * def win32SecurityAttributes(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_location), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6567, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6567, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6567, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).location), ((struct cudaMemLocation *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).location)))); /* "cuda/cudart.pyx":6565 * def location(self): * return self._location * @location.setter # <<<<<<<<<<<<<< * def location(self, location not None : cudaMemLocation): * string.memcpy(&self._ptr[0].location, location.getPtr(), sizeof(self._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_AddTraceback("cuda.cudart.cudaMemPoolProps.location.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6568 * def location(self, location not None : cudaMemLocation): * string.memcpy(&self._ptr[0].location, location.getPtr(), sizeof(self._ptr[0].location)) * @property # <<<<<<<<<<<<<< * def win32SecurityAttributes(self): * return self._ptr[0].win32SecurityAttributes */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_16cudaMemPoolProps_23win32SecurityAttributes_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_16cudaMemPoolProps_23win32SecurityAttributes___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_16cudaMemPoolProps_23win32SecurityAttributes___get__(struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6568, 0, __PYX_ERR(0, 6568, __pyx_L1_error)); /* "cuda/cudart.pyx":6570 * @property * def win32SecurityAttributes(self): * return self._ptr[0].win32SecurityAttributes # <<<<<<<<<<<<<< * @win32SecurityAttributes.setter * def win32SecurityAttributes(self, win32SecurityAttributes): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).win32SecurityAttributes)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6570, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6568 * def location(self, location not None : cudaMemLocation): * string.memcpy(&self._ptr[0].location, location.getPtr(), sizeof(self._ptr[0].location)) * @property # <<<<<<<<<<<<<< * def win32SecurityAttributes(self): * return self._ptr[0].win32SecurityAttributes */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemPoolProps.win32SecurityAttributes.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6571 * def win32SecurityAttributes(self): * return self._ptr[0].win32SecurityAttributes * @win32SecurityAttributes.setter # <<<<<<<<<<<<<< * def win32SecurityAttributes(self, win32SecurityAttributes): * _cwin32SecurityAttributes = utils.HelperInputVoidPtr(win32SecurityAttributes) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_16cudaMemPoolProps_23win32SecurityAttributes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_win32SecurityAttributes); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_16cudaMemPoolProps_23win32SecurityAttributes_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *)__pyx_v_self), ((PyObject *)__pyx_v_win32SecurityAttributes)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_16cudaMemPoolProps_23win32SecurityAttributes_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *__pyx_v_self, PyObject *__pyx_v_win32SecurityAttributes) { PyObject *__pyx_v__cwin32SecurityAttributes = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 6571, 0, __PYX_ERR(0, 6571, __pyx_L1_error)); /* "cuda/cudart.pyx":6573 * @win32SecurityAttributes.setter * def win32SecurityAttributes(self, win32SecurityAttributes): * _cwin32SecurityAttributes = utils.HelperInputVoidPtr(win32SecurityAttributes) # <<<<<<<<<<<<<< * self._ptr[0].win32SecurityAttributes = _cwin32SecurityAttributes.cptr * @property */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_win32SecurityAttributes); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6573, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__cwin32SecurityAttributes = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":6574 * def win32SecurityAttributes(self, win32SecurityAttributes): * _cwin32SecurityAttributes = utils.HelperInputVoidPtr(win32SecurityAttributes) * self._ptr[0].win32SecurityAttributes = _cwin32SecurityAttributes.cptr # <<<<<<<<<<<<<< * @property * def maxSize(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v__cwin32SecurityAttributes, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6574, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6574, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).win32SecurityAttributes = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":6571 * def win32SecurityAttributes(self): * return self._ptr[0].win32SecurityAttributes * @win32SecurityAttributes.setter # <<<<<<<<<<<<<< * def win32SecurityAttributes(self, win32SecurityAttributes): * _cwin32SecurityAttributes = utils.HelperInputVoidPtr(win32SecurityAttributes) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemPoolProps.win32SecurityAttributes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v__cwin32SecurityAttributes); __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6575 * _cwin32SecurityAttributes = utils.HelperInputVoidPtr(win32SecurityAttributes) * self._ptr[0].win32SecurityAttributes = _cwin32SecurityAttributes.cptr * @property # <<<<<<<<<<<<<< * def maxSize(self): * return self._ptr[0].maxSize */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_16cudaMemPoolProps_7maxSize_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_16cudaMemPoolProps_7maxSize___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_16cudaMemPoolProps_7maxSize___get__(struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6575, 0, __PYX_ERR(0, 6575, __pyx_L1_error)); /* "cuda/cudart.pyx":6577 * @property * def maxSize(self): * return self._ptr[0].maxSize # <<<<<<<<<<<<<< * @maxSize.setter * def maxSize(self, size_t maxSize): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).maxSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6577, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6575 * _cwin32SecurityAttributes = utils.HelperInputVoidPtr(win32SecurityAttributes) * self._ptr[0].win32SecurityAttributes = _cwin32SecurityAttributes.cptr * @property # <<<<<<<<<<<<<< * def maxSize(self): * return self._ptr[0].maxSize */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemPoolProps.maxSize.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6578 * def maxSize(self): * return self._ptr[0].maxSize * @maxSize.setter # <<<<<<<<<<<<<< * def maxSize(self, size_t maxSize): * self._ptr[0].maxSize = maxSize */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_16cudaMemPoolProps_7maxSize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxSize); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_maxSize); if (unlikely((__pyx_v_maxSize == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 6579, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemPoolProps.maxSize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_16cudaMemPoolProps_7maxSize_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *)__pyx_v_self), ((size_t)__pyx_v_maxSize)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_16cudaMemPoolProps_7maxSize_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *__pyx_v_self, size_t __pyx_v_maxSize) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 6578, 0, __PYX_ERR(0, 6578, __pyx_L1_error)); /* "cuda/cudart.pyx":6580 * @maxSize.setter * def maxSize(self, size_t maxSize): * self._ptr[0].maxSize = maxSize # <<<<<<<<<<<<<< * @property * def usage(self): */ (__pyx_v_self->_ptr[0]).maxSize = __pyx_v_maxSize; /* "cuda/cudart.pyx":6578 * def maxSize(self): * return self._ptr[0].maxSize * @maxSize.setter # <<<<<<<<<<<<<< * def maxSize(self, size_t maxSize): * self._ptr[0].maxSize = maxSize */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemPoolProps.maxSize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6581 * def maxSize(self, size_t maxSize): * self._ptr[0].maxSize = maxSize * @property # <<<<<<<<<<<<<< * def usage(self): * return self._ptr[0].usage */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_16cudaMemPoolProps_5usage_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_16cudaMemPoolProps_5usage___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_16cudaMemPoolProps_5usage___get__(struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6581, 0, __PYX_ERR(0, 6581, __pyx_L1_error)); /* "cuda/cudart.pyx":6583 * @property * def usage(self): * return self._ptr[0].usage # <<<<<<<<<<<<<< * @usage.setter * def usage(self, unsigned short usage): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_short((__pyx_v_self->_ptr[0]).usage); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6583, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6581 * def maxSize(self, size_t maxSize): * self._ptr[0].maxSize = maxSize * @property # <<<<<<<<<<<<<< * def usage(self): * return self._ptr[0].usage */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemPoolProps.usage.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6584 * def usage(self): * return self._ptr[0].usage * @usage.setter # <<<<<<<<<<<<<< * def usage(self, unsigned short usage): * self._ptr[0].usage = usage */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_16cudaMemPoolProps_5usage_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_usage); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_short(__pyx_arg_usage); if (unlikely((__pyx_v_usage == (unsigned short)-1) && PyErr_Occurred())) __PYX_ERR(0, 6585, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemPoolProps.usage.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_16cudaMemPoolProps_5usage_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *)__pyx_v_self), ((unsigned short)__pyx_v_usage)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_16cudaMemPoolProps_5usage_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *__pyx_v_self, unsigned short __pyx_v_usage) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 6584, 0, __PYX_ERR(0, 6584, __pyx_L1_error)); /* "cuda/cudart.pyx":6586 * @usage.setter * def usage(self, unsigned short usage): * self._ptr[0].usage = usage # <<<<<<<<<<<<<< * @property * def reserved(self): */ (__pyx_v_self->_ptr[0]).usage = __pyx_v_usage; /* "cuda/cudart.pyx":6584 * def usage(self): * return self._ptr[0].usage * @usage.setter # <<<<<<<<<<<<<< * def usage(self, unsigned short usage): * self._ptr[0].usage = usage */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemPoolProps.usage.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6587 * def usage(self, unsigned short usage): * self._ptr[0].usage = usage * @property # <<<<<<<<<<<<<< * def reserved(self): * return PyBytes_FromStringAndSize(self._ptr[0].reserved, 54) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_16cudaMemPoolProps_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_16cudaMemPoolProps_8reserved___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_16cudaMemPoolProps_8reserved___get__(struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6587, 0, __PYX_ERR(0, 6587, __pyx_L1_error)); /* "cuda/cudart.pyx":6589 * @property * def reserved(self): * return PyBytes_FromStringAndSize(self._ptr[0].reserved, 54) # <<<<<<<<<<<<<< * @reserved.setter * def reserved(self, reserved): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyBytes_FromStringAndSize(((char *)(__pyx_v_self->_ptr[0]).reserved), 54); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6589, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6587 * def usage(self, unsigned short usage): * self._ptr[0].usage = usage * @property # <<<<<<<<<<<<<< * def reserved(self): * return PyBytes_FromStringAndSize(self._ptr[0].reserved, 54) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemPoolProps.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6590 * def reserved(self): * return PyBytes_FromStringAndSize(self._ptr[0].reserved, 54) * @reserved.setter # <<<<<<<<<<<<<< * def reserved(self, reserved): * if len(reserved) != 54: */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_16cudaMemPoolProps_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_16cudaMemPoolProps_8reserved_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *)__pyx_v_self), ((PyObject *)__pyx_v_reserved)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_16cudaMemPoolProps_8reserved_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *__pyx_v_self, PyObject *__pyx_v_reserved) { PyObject *__pyx_v_i = NULL; PyObject *__pyx_v_b = NULL; int __pyx_r; __Pyx_TraceDeclarations __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)(PyObject *); PyObject *__pyx_t_6 = NULL; unsigned char __pyx_t_7; Py_ssize_t __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 6590, 0, __PYX_ERR(0, 6590, __pyx_L1_error)); /* "cuda/cudart.pyx":6592 * @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, 6592, __pyx_L1_error) __pyx_t_2 = (__pyx_t_1 != 54); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":6593 * 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._ptr[0].reserved[i] = b */ __pyx_t_1 = PyObject_Length(__pyx_v_reserved); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 6593, __pyx_L1_error) __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6593, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6593, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_reserved_length_must_be_54_is, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6593, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6593, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __PYX_ERR(0, 6593, __pyx_L1_error) /* "cuda/cudart.pyx":6592 * @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/cudart.pyx":6594 * if len(reserved) != 54: * raise ValueError("reserved length must be 54, is " + str(len(reserved))) * for i, b in enumerate(reserved): # <<<<<<<<<<<<<< * self._ptr[0].reserved[i] = b * */ __Pyx_INCREF(__pyx_int_0); __pyx_t_4 = __pyx_int_0; if (likely(PyList_CheckExact(__pyx_v_reserved)) || PyTuple_CheckExact(__pyx_v_reserved)) { __pyx_t_3 = __pyx_v_reserved; __Pyx_INCREF(__pyx_t_3); __pyx_t_1 = 0; __pyx_t_5 = NULL; } else { __pyx_t_1 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_reserved); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6594, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6594, __pyx_L1_error) } for (;;) { if (likely(!__pyx_t_5)) { if (likely(PyList_CheckExact(__pyx_t_3))) { { Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 6594, __pyx_L1_error) #endif if (__pyx_t_1 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_1); __Pyx_INCREF(__pyx_t_6); __pyx_t_1++; if (unlikely((0 < 0))) __PYX_ERR(0, 6594, __pyx_L1_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6594, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 6594, __pyx_L1_error) #endif if (__pyx_t_1 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_1); __Pyx_INCREF(__pyx_t_6); __pyx_t_1++; if (unlikely((0 < 0))) __PYX_ERR(0, 6594, __pyx_L1_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6594, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); #endif } } else { __pyx_t_6 = __pyx_t_5(__pyx_t_3); if (unlikely(!__pyx_t_6)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 6594, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_6); } __Pyx_XDECREF_SET(__pyx_v_b, __pyx_t_6); __pyx_t_6 = 0; __Pyx_INCREF(__pyx_t_4); __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_4); __pyx_t_6 = __Pyx_PyInt_AddObjC(__pyx_t_4, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6594, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = __pyx_t_6; __pyx_t_6 = 0; /* "cuda/cudart.pyx":6595 * raise ValueError("reserved length must be 54, is " + str(len(reserved))) * for i, b in enumerate(reserved): * self._ptr[0].reserved[i] = b # <<<<<<<<<<<<<< * * cdef class cudaMemPoolPtrExportData: */ __pyx_t_7 = __Pyx_PyInt_As_unsigned_char(__pyx_v_b); if (unlikely((__pyx_t_7 == (unsigned char)-1) && PyErr_Occurred())) __PYX_ERR(0, 6595, __pyx_L1_error) __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 6595, __pyx_L1_error) ((__pyx_v_self->_ptr[0]).reserved[__pyx_t_8]) = __pyx_t_7; /* "cuda/cudart.pyx":6594 * if len(reserved) != 54: * raise ValueError("reserved length must be 54, is " + str(len(reserved))) * for i, b in enumerate(reserved): # <<<<<<<<<<<<<< * self._ptr[0].reserved[i] = b * */ } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":6590 * def reserved(self): * return PyBytes_FromStringAndSize(self._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_6); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(Py_None, 0); __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_6cudart_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_6cudart_16cudaMemPoolProps_10__reduce_cython__, "cudaMemPoolProps.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_16cudaMemPoolProps_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_16cudaMemPoolProps_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_16cudaMemPoolProps_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_16cudaMemPoolProps_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_16cudaMemPoolProps_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__135) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaMemPoolProps.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_16cudaMemPoolProps_12__setstate_cython__, "cudaMemPoolProps.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_16cudaMemPoolProps_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_16cudaMemPoolProps_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_16cudaMemPoolProps_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemPoolProps.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_16cudaMemPoolProps_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_16cudaMemPoolProps_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__136) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaMemPoolProps.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6612 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_24cudaMemPoolPtrExportData_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_24cudaMemPoolPtrExportData_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 6612, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 6612, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6612, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 6612, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemPoolPtrExportData.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_24cudaMemPoolPtrExportData___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaMemPoolPtrExportData *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_24cudaMemPoolPtrExportData___cinit__(struct __pyx_obj_4cuda_6cudart_cudaMemPoolPtrExportData *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 6612, 0, __PYX_ERR(0, 6612, __pyx_L1_error)); /* "cuda/cudart.pyx":6613 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":6614 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaMemPoolPtrExportData__val); /* "cuda/cudart.pyx":6613 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":6616 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * pass */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaMemPoolPtrExportData *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":6612 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemPoolPtrExportData.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6617 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_24cudaMemPoolPtrExportData_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_24cudaMemPoolPtrExportData_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 6617, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 6617, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6617, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 6617, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemPoolPtrExportData.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_24cudaMemPoolPtrExportData_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaMemPoolPtrExportData *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_24cudaMemPoolPtrExportData_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemPoolPtrExportData *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 6617, 0, __PYX_ERR(0, 6617, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemPoolPtrExportData.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6619 * def __init__(self, void_ptr _ptr = 0): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_24cudaMemPoolPtrExportData_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_24cudaMemPoolPtrExportData_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaMemPoolPtrExportData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_24cudaMemPoolPtrExportData_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemPoolPtrExportData *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 6619, 0, __PYX_ERR(0, 6619, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaMemPoolPtrExportData.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":6621 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_24cudaMemPoolPtrExportData_6getPtr, "cudaMemPoolPtrExportData.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_24cudaMemPoolPtrExportData_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_24cudaMemPoolPtrExportData_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_24cudaMemPoolPtrExportData_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_24cudaMemPoolPtrExportData_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaMemPoolPtrExportData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaMemPoolPtrExportData_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaMemPoolPtrExportData *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__137) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 6621, 0, __PYX_ERR(0, 6621, __pyx_L1_error)); /* "cuda/cudart.pyx":6622 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6622, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6621 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemPoolPtrExportData.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6623 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_24cudaMemPoolPtrExportData_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_24cudaMemPoolPtrExportData_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaMemPoolPtrExportData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaMemPoolPtrExportData_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaMemPoolPtrExportData *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 6623, 0, __PYX_ERR(0, 6623, __pyx_L1_error)); /* "cuda/cudart.pyx":6624 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":6625 * def __repr__(self): * if self._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, 6625, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":6626 * if self._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/cudart.pyx":6627 * str_list = [] * try: * str_list += ['reserved : ' + str(self.reserved)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['reserved : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_reserved_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6627, __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, 6627, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_reserved, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6627, __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, 6627, __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)) __PYX_ERR(0, 6627, __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, 6627, __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/cudart.pyx":6626 * if self._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/cudart.pyx":6628 * try: * str_list += ['reserved : ' + str(self.reserved)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['reserved : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemPoolPtrExportData.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 6628, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":6629 * str_list += ['reserved : ' + str(self.reserved)] * except ValueError: * str_list += ['reserved : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6629, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_reserved_ValueError); __Pyx_GIVEREF(__pyx_kp_u_reserved_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_reserved_ValueError)) __PYX_ERR(0, 6629, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6629, __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/cudart.pyx":6626 * if self._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/cudart.pyx":6630 * except ValueError: * str_list += ['reserved : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6630, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6624 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":6632 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def reserved(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":6623 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaMemPoolPtrExportData.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6633 * else: * return '' * @property # <<<<<<<<<<<<<< * def reserved(self): * return PyBytes_FromStringAndSize(self._ptr[0].reserved, 64) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_24cudaMemPoolPtrExportData_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_24cudaMemPoolPtrExportData_8reserved___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemPoolPtrExportData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaMemPoolPtrExportData_8reserved___get__(struct __pyx_obj_4cuda_6cudart_cudaMemPoolPtrExportData *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6633, 0, __PYX_ERR(0, 6633, __pyx_L1_error)); /* "cuda/cudart.pyx":6635 * @property * def reserved(self): * return PyBytes_FromStringAndSize(self._ptr[0].reserved, 64) # <<<<<<<<<<<<<< * @reserved.setter * def reserved(self, reserved): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyBytes_FromStringAndSize(((char *)(__pyx_v_self->_ptr[0]).reserved), 64); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6635, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6633 * else: * return '' * @property # <<<<<<<<<<<<<< * def reserved(self): * return PyBytes_FromStringAndSize(self._ptr[0].reserved, 64) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemPoolPtrExportData.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6636 * def reserved(self): * return PyBytes_FromStringAndSize(self._ptr[0].reserved, 64) * @reserved.setter # <<<<<<<<<<<<<< * def reserved(self, reserved): * if len(reserved) != 64: */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_24cudaMemPoolPtrExportData_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_24cudaMemPoolPtrExportData_8reserved_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemPoolPtrExportData *)__pyx_v_self), ((PyObject *)__pyx_v_reserved)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_24cudaMemPoolPtrExportData_8reserved_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemPoolPtrExportData *__pyx_v_self, PyObject *__pyx_v_reserved) { PyObject *__pyx_v_i = NULL; PyObject *__pyx_v_b = NULL; int __pyx_r; __Pyx_TraceDeclarations __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)(PyObject *); PyObject *__pyx_t_6 = NULL; unsigned char __pyx_t_7; Py_ssize_t __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 6636, 0, __PYX_ERR(0, 6636, __pyx_L1_error)); /* "cuda/cudart.pyx":6638 * @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, 6638, __pyx_L1_error) __pyx_t_2 = (__pyx_t_1 != 64); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":6639 * 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._ptr[0].reserved[i] = b */ __pyx_t_1 = PyObject_Length(__pyx_v_reserved); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 6639, __pyx_L1_error) __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6639, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6639, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_reserved_length_must_be_64_is, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6639, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6639, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __PYX_ERR(0, 6639, __pyx_L1_error) /* "cuda/cudart.pyx":6638 * @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/cudart.pyx":6640 * if len(reserved) != 64: * raise ValueError("reserved length must be 64, is " + str(len(reserved))) * for i, b in enumerate(reserved): # <<<<<<<<<<<<<< * self._ptr[0].reserved[i] = b * */ __Pyx_INCREF(__pyx_int_0); __pyx_t_4 = __pyx_int_0; if (likely(PyList_CheckExact(__pyx_v_reserved)) || PyTuple_CheckExact(__pyx_v_reserved)) { __pyx_t_3 = __pyx_v_reserved; __Pyx_INCREF(__pyx_t_3); __pyx_t_1 = 0; __pyx_t_5 = NULL; } else { __pyx_t_1 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_reserved); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6640, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6640, __pyx_L1_error) } for (;;) { if (likely(!__pyx_t_5)) { if (likely(PyList_CheckExact(__pyx_t_3))) { { Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 6640, __pyx_L1_error) #endif if (__pyx_t_1 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_1); __Pyx_INCREF(__pyx_t_6); __pyx_t_1++; if (unlikely((0 < 0))) __PYX_ERR(0, 6640, __pyx_L1_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6640, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 6640, __pyx_L1_error) #endif if (__pyx_t_1 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_1); __Pyx_INCREF(__pyx_t_6); __pyx_t_1++; if (unlikely((0 < 0))) __PYX_ERR(0, 6640, __pyx_L1_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6640, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); #endif } } else { __pyx_t_6 = __pyx_t_5(__pyx_t_3); if (unlikely(!__pyx_t_6)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 6640, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_6); } __Pyx_XDECREF_SET(__pyx_v_b, __pyx_t_6); __pyx_t_6 = 0; __Pyx_INCREF(__pyx_t_4); __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_4); __pyx_t_6 = __Pyx_PyInt_AddObjC(__pyx_t_4, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6640, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = __pyx_t_6; __pyx_t_6 = 0; /* "cuda/cudart.pyx":6641 * raise ValueError("reserved length must be 64, is " + str(len(reserved))) * for i, b in enumerate(reserved): * self._ptr[0].reserved[i] = b # <<<<<<<<<<<<<< * * cdef class cudaMemAllocNodeParams: */ __pyx_t_7 = __Pyx_PyInt_As_unsigned_char(__pyx_v_b); if (unlikely((__pyx_t_7 == (unsigned char)-1) && PyErr_Occurred())) __PYX_ERR(0, 6641, __pyx_L1_error) __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 6641, __pyx_L1_error) ((__pyx_v_self->_ptr[0]).reserved[__pyx_t_8]) = __pyx_t_7; /* "cuda/cudart.pyx":6640 * if len(reserved) != 64: * raise ValueError("reserved length must be 64, is " + str(len(reserved))) * for i, b in enumerate(reserved): # <<<<<<<<<<<<<< * self._ptr[0].reserved[i] = b * */ } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":6636 * def reserved(self): * return PyBytes_FromStringAndSize(self._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_6); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(Py_None, 0); __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_6cudart_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_6cudart_24cudaMemPoolPtrExportData_10__reduce_cython__, "cudaMemPoolPtrExportData.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_24cudaMemPoolPtrExportData_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_24cudaMemPoolPtrExportData_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_24cudaMemPoolPtrExportData_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_24cudaMemPoolPtrExportData_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaMemPoolPtrExportData *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaMemPoolPtrExportData_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemPoolPtrExportData *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__138) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaMemPoolPtrExportData.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_24cudaMemPoolPtrExportData_12__setstate_cython__, "cudaMemPoolPtrExportData.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_24cudaMemPoolPtrExportData_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_24cudaMemPoolPtrExportData_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_24cudaMemPoolPtrExportData_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemPoolPtrExportData.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_24cudaMemPoolPtrExportData_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaMemPoolPtrExportData *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaMemPoolPtrExportData_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemPoolPtrExportData *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__139) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaMemPoolPtrExportData.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6670 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_22cudaMemAllocNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_22cudaMemAllocNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 6670, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 6670, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6670, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 6670, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_22cudaMemAllocNodeParams___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_22cudaMemAllocNodeParams___cinit__(struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 6670, 0, __PYX_ERR(0, 6670, __pyx_L1_error)); /* "cuda/cudart.pyx":6671 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":6672 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaMemAllocNodeParams__val); /* "cuda/cudart.pyx":6671 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":6674 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * self._poolProps = cudaMemPoolProps(_ptr=&self._ptr[0].poolProps) */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaMemAllocNodeParams *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":6670 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6675 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._poolProps = cudaMemPoolProps(_ptr=&self._ptr[0].poolProps) * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_22cudaMemAllocNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_22cudaMemAllocNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 6675, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 6675, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6675, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 6675, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_22cudaMemAllocNodeParams_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_22cudaMemAllocNodeParams_2__init__(struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 6675, 0, __PYX_ERR(0, 6675, __pyx_L1_error)); /* "cuda/cudart.pyx":6676 * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): * self._poolProps = cudaMemPoolProps(_ptr=&self._ptr[0].poolProps) # <<<<<<<<<<<<<< * def __dealloc__(self): * if self._accessDescs is not NULL: */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6676, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).poolProps))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6676, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 6676, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemPoolProps), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6676, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_poolProps); __Pyx_DECREF((PyObject *)__pyx_v_self->_poolProps); __pyx_v_self->_poolProps = ((struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":6675 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._poolProps = cudaMemPoolProps(_ptr=&self._ptr[0].poolProps) * def __dealloc__(self): */ /* 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.cudart.cudaMemAllocNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6677 * def __init__(self, void_ptr _ptr = 0): * self._poolProps = cudaMemPoolProps(_ptr=&self._ptr[0].poolProps) * def __dealloc__(self): # <<<<<<<<<<<<<< * if self._accessDescs is not NULL: * free(self._accessDescs) */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_22cudaMemAllocNodeParams_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_22cudaMemAllocNodeParams_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_22cudaMemAllocNodeParams_4__dealloc__(struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 6677, 0, __PYX_ERR(0, 6677, __pyx_L1_error)); /* "cuda/cudart.pyx":6678 * self._poolProps = cudaMemPoolProps(_ptr=&self._ptr[0].poolProps) * def __dealloc__(self): * 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/cudart.pyx":6679 * def __dealloc__(self): * if self._accessDescs is not NULL: * free(self._accessDescs) # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ free(__pyx_v_self->_accessDescs); /* "cuda/cudart.pyx":6678 * self._poolProps = cudaMemPoolProps(_ptr=&self._ptr[0].poolProps) * def __dealloc__(self): * if self._accessDescs is not NULL: # <<<<<<<<<<<<<< * free(self._accessDescs) * def getPtr(self): */ } /* "cuda/cudart.pyx":6677 * def __init__(self, void_ptr _ptr = 0): * self._poolProps = cudaMemPoolProps(_ptr=&self._ptr[0].poolProps) * def __dealloc__(self): # <<<<<<<<<<<<<< * if self._accessDescs is not NULL: * free(self._accessDescs) */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaMemAllocNodeParams.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":6680 * if self._accessDescs is not NULL: * free(self._accessDescs) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_22cudaMemAllocNodeParams_6getPtr, "cudaMemAllocNodeParams.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_22cudaMemAllocNodeParams_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_22cudaMemAllocNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_22cudaMemAllocNodeParams_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_22cudaMemAllocNodeParams_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaMemAllocNodeParams_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__140) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 6680, 0, __PYX_ERR(0, 6680, __pyx_L1_error)); /* "cuda/cudart.pyx":6681 * free(self._accessDescs) * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6681, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6680 * if self._accessDescs is not NULL: * free(self._accessDescs) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParams.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6682 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_22cudaMemAllocNodeParams_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_22cudaMemAllocNodeParams_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaMemAllocNodeParams_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_9genexpr21__pyx_v_line = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 6682, 0, __PYX_ERR(0, 6682, __pyx_L1_error)); /* "cuda/cudart.pyx":6683 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":6684 * def __repr__(self): * if self._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, 6684, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":6685 * if self._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/cudart.pyx":6686 * str_list = [] * try: * str_list += ['poolProps :\n' + '\n'.join([' ' + line for line in str(self.poolProps).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['poolProps : '] */ { /* enter inner scope */ __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6686, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_poolProps_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6686, __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, 6686, __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, 6686, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 6686, __pyx_L12_error) #endif if (__pyx_t_8 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_7, __pyx_t_8); __Pyx_INCREF(__pyx_t_6); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(0, 6686, __pyx_L12_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6686, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_9genexpr21__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr21__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6686, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 6686, __pyx_L12_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_9genexpr21__pyx_v_line); __pyx_9genexpr21__pyx_v_line = 0; goto __pyx_L16_exit_scope; __pyx_L12_error:; __Pyx_XDECREF(__pyx_9genexpr21__pyx_v_line); __pyx_9genexpr21__pyx_v_line = 0; goto __pyx_L4_error; __pyx_L16_exit_scope:; } /* exit inner scope */ __pyx_t_7 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 6686, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_poolProps, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6686, __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, 6686, __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)) __PYX_ERR(0, 6686, __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, 6686, __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/cudart.pyx":6685 * if self._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/cudart.pyx":6687 * try: * str_list += ['poolProps :\n' + '\n'.join([' ' + line for line in str(self.poolProps).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['poolProps : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 6687, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":6688 * str_list += ['poolProps :\n' + '\n'.join([' ' + line for line in str(self.poolProps).splitlines()])] * except ValueError: * str_list += ['poolProps : '] # <<<<<<<<<<<<<< * try: * str_list += ['accessDescs : ' + str(self.accessDescs)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6688, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_poolProps_ValueError); __Pyx_GIVEREF(__pyx_kp_u_poolProps_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_poolProps_ValueError)) __PYX_ERR(0, 6688, __pyx_L6_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 6688, __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/cudart.pyx":6685 * if self._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/cudart.pyx":6689 * except ValueError: * str_list += ['poolProps : '] * 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/cudart.pyx":6690 * str_list += ['poolProps : '] * try: * str_list += ['accessDescs : ' + str(self.accessDescs)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['accessDescs : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_accessDescs_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6690, __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, 6690, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_accessDescs, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6690, __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, 6690, __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)) __PYX_ERR(0, 6690, __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, 6690, __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/cudart.pyx":6689 * except ValueError: * str_list += ['poolProps : '] * 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/cudart.pyx":6691 * try: * str_list += ['accessDescs : ' + str(self.accessDescs)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['accessDescs : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_7, &__pyx_t_2) < 0) __PYX_ERR(0, 6691, __pyx_L21_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":6692 * str_list += ['accessDescs : ' + str(self.accessDescs)] * except ValueError: * str_list += ['accessDescs : '] # <<<<<<<<<<<<<< * try: * str_list += ['accessDescCount : ' + str(self.accessDescCount)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 6692, __pyx_L21_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_accessDescs_ValueError); __Pyx_GIVEREF(__pyx_kp_u_accessDescs_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_accessDescs_ValueError)) __PYX_ERR(0, 6692, __pyx_L21_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6692, __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/cudart.pyx":6689 * except ValueError: * str_list += ['poolProps : '] * 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/cudart.pyx":6693 * except ValueError: * str_list += ['accessDescs : '] * 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/cudart.pyx":6694 * str_list += ['accessDescs : '] * try: * str_list += ['accessDescCount : ' + str(self.accessDescCount)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['accessDescCount : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_accessDescCount_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6694, __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, 6694, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_accessDescCount, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6694, __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, 6694, __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)) __PYX_ERR(0, 6694, __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, 6694, __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/cudart.pyx":6693 * except ValueError: * str_list += ['accessDescs : '] * 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/cudart.pyx":6695 * try: * str_list += ['accessDescCount : ' + str(self.accessDescCount)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['accessDescCount : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 6695, __pyx_L29_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":6696 * str_list += ['accessDescCount : ' + str(self.accessDescCount)] * except ValueError: * str_list += ['accessDescCount : '] # <<<<<<<<<<<<<< * try: * str_list += ['bytesize : ' + str(self.bytesize)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6696, __pyx_L29_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_accessDescCount_ValueError); __Pyx_GIVEREF(__pyx_kp_u_accessDescCount_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_accessDescCount_ValueError)) __PYX_ERR(0, 6696, __pyx_L29_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 6696, __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/cudart.pyx":6693 * except ValueError: * str_list += ['accessDescs : '] * 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/cudart.pyx":6697 * except ValueError: * str_list += ['accessDescCount : '] * 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/cudart.pyx":6698 * str_list += ['accessDescCount : '] * try: * str_list += ['bytesize : ' + str(self.bytesize)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['bytesize : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_bytesize_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6698, __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, 6698, __pyx_L35_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_bytesize, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6698, __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, 6698, __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)) __PYX_ERR(0, 6698, __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, 6698, __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/cudart.pyx":6697 * except ValueError: * str_list += ['accessDescCount : '] * 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/cudart.pyx":6699 * try: * str_list += ['bytesize : ' + str(self.bytesize)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['bytesize : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_7, &__pyx_t_2) < 0) __PYX_ERR(0, 6699, __pyx_L37_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":6700 * str_list += ['bytesize : ' + str(self.bytesize)] * except ValueError: * str_list += ['bytesize : '] # <<<<<<<<<<<<<< * try: * str_list += ['dptr : ' + hex(self.dptr)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 6700, __pyx_L37_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_bytesize_ValueError); __Pyx_GIVEREF(__pyx_kp_u_bytesize_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_bytesize_ValueError)) __PYX_ERR(0, 6700, __pyx_L37_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6700, __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/cudart.pyx":6697 * except ValueError: * str_list += ['accessDescCount : '] * 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/cudart.pyx":6701 * except ValueError: * str_list += ['bytesize : '] * 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/cudart.pyx":6702 * str_list += ['bytesize : '] * try: * str_list += ['dptr : ' + hex(self.dptr)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['dptr : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_dptr_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6702, __pyx_L43_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 6702, __pyx_L43_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_kp_u_dptr, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6702, __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, 6702, __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)) __PYX_ERR(0, 6702, __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, 6702, __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/cudart.pyx":6701 * except ValueError: * str_list += ['bytesize : '] * 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/cudart.pyx":6703 * try: * str_list += ['dptr : ' + hex(self.dptr)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['dptr : '] * return '\n'.join(str_list) */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 6703, __pyx_L45_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":6704 * str_list += ['dptr : ' + hex(self.dptr)] * except ValueError: * str_list += ['dptr : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6704, __pyx_L45_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_dptr_ValueError); __Pyx_GIVEREF(__pyx_kp_u_dptr_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_dptr_ValueError)) __PYX_ERR(0, 6704, __pyx_L45_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 6704, __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/cudart.pyx":6701 * except ValueError: * str_list += ['bytesize : '] * 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/cudart.pyx":6705 * except ValueError: * str_list += ['dptr : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_6 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6705, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6683 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":6707 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def poolProps(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":6682 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaMemAllocNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XDECREF(__pyx_9genexpr21__pyx_v_line); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6708 * else: * return '' * @property # <<<<<<<<<<<<<< * def poolProps(self): * return self._poolProps */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_22cudaMemAllocNodeParams_9poolProps_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_22cudaMemAllocNodeParams_9poolProps___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaMemAllocNodeParams_9poolProps___get__(struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6708, 0, __PYX_ERR(0, 6708, __pyx_L1_error)); /* "cuda/cudart.pyx":6710 * @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/cudart.pyx":6708 * else: * return '' * @property # <<<<<<<<<<<<<< * def poolProps(self): * return self._poolProps */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParams.poolProps.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6711 * def poolProps(self): * return self._poolProps * @poolProps.setter # <<<<<<<<<<<<<< * def poolProps(self, poolProps not None : cudaMemPoolProps): * string.memcpy(&self._ptr[0].poolProps, poolProps.getPtr(), sizeof(self._ptr[0].poolProps)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_22cudaMemAllocNodeParams_9poolProps_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_poolProps); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_cudaMemPoolProps, 0, "poolProps", 0))) __PYX_ERR(0, 6712, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_22cudaMemAllocNodeParams_9poolProps_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *)__pyx_v_poolProps)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_22cudaMemAllocNodeParams_9poolProps_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *__pyx_v_poolProps) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 6711, 0, __PYX_ERR(0, 6711, __pyx_L1_error)); /* "cuda/cudart.pyx":6713 * @poolProps.setter * def poolProps(self, poolProps not None : cudaMemPoolProps): * string.memcpy(&self._ptr[0].poolProps, poolProps.getPtr(), sizeof(self._ptr[0].poolProps)) # <<<<<<<<<<<<<< * @property * def accessDescs(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_poolProps), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6713, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6713, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6713, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).poolProps), ((struct cudaMemPoolProps *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).poolProps)))); /* "cuda/cudart.pyx":6711 * def poolProps(self): * return self._poolProps * @poolProps.setter # <<<<<<<<<<<<<< * def poolProps(self, poolProps not None : cudaMemPoolProps): * string.memcpy(&self._ptr[0].poolProps, poolProps.getPtr(), sizeof(self._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_AddTraceback("cuda.cudart.cudaMemAllocNodeParams.poolProps.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6714 * def poolProps(self, poolProps not None : cudaMemPoolProps): * string.memcpy(&self._ptr[0].poolProps, poolProps.getPtr(), sizeof(self._ptr[0].poolProps)) * @property # <<<<<<<<<<<<<< * def accessDescs(self): * arrs = [self._ptr[0].accessDescs + x*sizeof(ccudart.cudaMemAccessDesc) for x in range(self._accessDescs_length)] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_22cudaMemAllocNodeParams_11accessDescs_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_22cudaMemAllocNodeParams_11accessDescs___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaMemAllocNodeParams_11accessDescs___get__(struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *__pyx_v_self) { PyObject *__pyx_v_arrs = NULL; size_t __pyx_9genexpr22__pyx_v_x; PyObject *__pyx_9genexpr23__pyx_v_arr = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6714, 0, __PYX_ERR(0, 6714, __pyx_L1_error)); /* "cuda/cudart.pyx":6716 * @property * def accessDescs(self): * arrs = [self._ptr[0].accessDescs + x*sizeof(ccudart.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, 6716, __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_9genexpr22__pyx_v_x = __pyx_t_4; __pyx_t_5 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG((((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).accessDescs) + (__pyx_9genexpr22__pyx_v_x * (sizeof(struct cudaMemAccessDesc))))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6716, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 6716, __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/cudart.pyx":6717 * def accessDescs(self): * arrs = [self._ptr[0].accessDescs + x*sizeof(ccudart.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, 6717, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 6717, __pyx_L7_error) #endif if (__pyx_t_6 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_7 = PyList_GET_ITEM(__pyx_t_5, __pyx_t_6); __Pyx_INCREF(__pyx_t_7); __pyx_t_6++; if (unlikely((0 < 0))) __PYX_ERR(0, 6717, __pyx_L7_error) #else __pyx_t_7 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 6717, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_7); #endif __Pyx_XDECREF_SET(__pyx_9genexpr23__pyx_v_arr, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 6717, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_ptr, __pyx_9genexpr23__pyx_v_arr) < 0) __PYX_ERR(0, 6717, __pyx_L7_error) __pyx_t_8 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemAccessDesc), __pyx_empty_tuple, __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6717, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_8))) __PYX_ERR(0, 6717, __pyx_L7_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_9genexpr23__pyx_v_arr); __pyx_9genexpr23__pyx_v_arr = 0; goto __pyx_L11_exit_scope; __pyx_L7_error:; __Pyx_XDECREF(__pyx_9genexpr23__pyx_v_arr); __pyx_9genexpr23__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/cudart.pyx":6714 * def poolProps(self, poolProps not None : cudaMemPoolProps): * string.memcpy(&self._ptr[0].poolProps, poolProps.getPtr(), sizeof(self._ptr[0].poolProps)) * @property # <<<<<<<<<<<<<< * def accessDescs(self): * arrs = [self._ptr[0].accessDescs + x*sizeof(ccudart.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_AddTraceback("cuda.cudart.cudaMemAllocNodeParams.accessDescs.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_arrs); __Pyx_XDECREF(__pyx_9genexpr23__pyx_v_arr); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6718 * arrs = [self._ptr[0].accessDescs + x*sizeof(ccudart.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_6cudart_22cudaMemAllocNodeParams_11accessDescs_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_22cudaMemAllocNodeParams_11accessDescs_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_val)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_22cudaMemAllocNodeParams_11accessDescs_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *__pyx_v_self, PyObject *__pyx_v_val) { Py_ssize_t __pyx_v_idx; int __pyx_r; __Pyx_TraceDeclarations __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; struct cudaMemAccessDesc *__pyx_t_6; Py_ssize_t __pyx_t_7; Py_ssize_t __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 6718, 0, __PYX_ERR(0, 6718, __pyx_L1_error)); /* "cuda/cudart.pyx":6720 * @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, 6720, __pyx_L1_error) __pyx_t_2 = (__pyx_t_1 == 0); if (__pyx_t_2) { /* "cuda/cudart.pyx":6721 * def accessDescs(self, val): * if len(val) == 0: * free(self._accessDescs) # <<<<<<<<<<<<<< * self._accessDescs_length = 0 * self._ptr[0].accessDescs = NULL */ free(__pyx_v_self->_accessDescs); /* "cuda/cudart.pyx":6722 * if len(val) == 0: * free(self._accessDescs) * self._accessDescs_length = 0 # <<<<<<<<<<<<<< * self._ptr[0].accessDescs = NULL * else: */ __pyx_v_self->_accessDescs_length = 0; /* "cuda/cudart.pyx":6723 * free(self._accessDescs) * self._accessDescs_length = 0 * self._ptr[0].accessDescs = NULL # <<<<<<<<<<<<<< * else: * if self._accessDescs_length != len(val): */ (__pyx_v_self->_ptr[0]).accessDescs = NULL; /* "cuda/cudart.pyx":6720 * @accessDescs.setter * def accessDescs(self, val): * if len(val) == 0: # <<<<<<<<<<<<<< * free(self._accessDescs) * self._accessDescs_length = 0 */ goto __pyx_L3; } /* "cuda/cudart.pyx":6725 * self._ptr[0].accessDescs = NULL * else: * if self._accessDescs_length != len(val): # <<<<<<<<<<<<<< * free(self._accessDescs) * self._accessDescs = calloc(len(val), sizeof(ccudart.cudaMemAccessDesc)) */ /*else*/ { __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 6725, __pyx_L1_error) __pyx_t_2 = (__pyx_v_self->_accessDescs_length != ((size_t)__pyx_t_1)); if (__pyx_t_2) { /* "cuda/cudart.pyx":6726 * else: * if self._accessDescs_length != len(val): * free(self._accessDescs) # <<<<<<<<<<<<<< * self._accessDescs = calloc(len(val), sizeof(ccudart.cudaMemAccessDesc)) * if self._accessDescs is NULL: */ free(__pyx_v_self->_accessDescs); /* "cuda/cudart.pyx":6727 * if self._accessDescs_length != len(val): * free(self._accessDescs) * self._accessDescs = calloc(len(val), sizeof(ccudart.cudaMemAccessDesc)) # <<<<<<<<<<<<<< * if self._accessDescs is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaMemAccessDesc))) */ __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 6727, __pyx_L1_error) __pyx_v_self->_accessDescs = ((struct cudaMemAccessDesc *)calloc(__pyx_t_1, (sizeof(struct cudaMemAccessDesc)))); /* "cuda/cudart.pyx":6728 * free(self._accessDescs) * self._accessDescs = calloc(len(val), sizeof(ccudart.cudaMemAccessDesc)) * if self._accessDescs is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaMemAccessDesc))) * self._accessDescs_length = len(val) */ __pyx_t_2 = (__pyx_v_self->_accessDescs == NULL); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":6729 * self._accessDescs = calloc(len(val), sizeof(ccudart.cudaMemAccessDesc)) * if self._accessDescs is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaMemAccessDesc))) # <<<<<<<<<<<<<< * self._accessDescs_length = len(val) * self._ptr[0].accessDescs = self._accessDescs */ __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 6729, __pyx_L1_error) __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6729, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6729, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6729, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_n_u_x_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6729, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaMemAccessDesc))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6729, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6729, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6729, __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_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6729, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __PYX_ERR(0, 6729, __pyx_L1_error) /* "cuda/cudart.pyx":6728 * free(self._accessDescs) * self._accessDescs = calloc(len(val), sizeof(ccudart.cudaMemAccessDesc)) * if self._accessDescs is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaMemAccessDesc))) * self._accessDescs_length = len(val) */ } /* "cuda/cudart.pyx":6730 * if self._accessDescs is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaMemAccessDesc))) * self._accessDescs_length = len(val) # <<<<<<<<<<<<<< * self._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, 6730, __pyx_L1_error) __pyx_v_self->_accessDescs_length = ((size_t)__pyx_t_1); /* "cuda/cudart.pyx":6731 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaMemAccessDesc))) * self._accessDescs_length = len(val) * self._ptr[0].accessDescs = self._accessDescs # <<<<<<<<<<<<<< * for idx in range(len(val)): * string.memcpy(&self._accessDescs[idx], (val[idx])._ptr, sizeof(ccudart.cudaMemAccessDesc)) */ __pyx_t_6 = __pyx_v_self->_accessDescs; (__pyx_v_self->_ptr[0]).accessDescs = __pyx_t_6; /* "cuda/cudart.pyx":6725 * self._ptr[0].accessDescs = NULL * else: * if self._accessDescs_length != len(val): # <<<<<<<<<<<<<< * free(self._accessDescs) * self._accessDescs = calloc(len(val), sizeof(ccudart.cudaMemAccessDesc)) */ } /* "cuda/cudart.pyx":6732 * self._accessDescs_length = len(val) * self._ptr[0].accessDescs = self._accessDescs * for idx in range(len(val)): # <<<<<<<<<<<<<< * string.memcpy(&self._accessDescs[idx], (val[idx])._ptr, sizeof(ccudart.cudaMemAccessDesc)) * */ __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 6732, __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/cudart.pyx":6733 * self._ptr[0].accessDescs = self._accessDescs * for idx in range(len(val)): * string.memcpy(&self._accessDescs[idx], (val[idx])._ptr, sizeof(ccudart.cudaMemAccessDesc)) # <<<<<<<<<<<<<< * * @property */ __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_val, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6733, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); (void)(memcpy((&(__pyx_v_self->_accessDescs[__pyx_v_idx])), ((struct __pyx_obj_4cuda_6cudart_cudaMemAccessDesc *)__pyx_t_5)->_ptr, (sizeof(struct cudaMemAccessDesc)))); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __pyx_L3:; /* "cuda/cudart.pyx":6718 * arrs = [self._ptr[0].accessDescs + x*sizeof(ccudart.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_AddTraceback("cuda.cudart.cudaMemAllocNodeParams.accessDescs.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6735 * string.memcpy(&self._accessDescs[idx], (val[idx])._ptr, sizeof(ccudart.cudaMemAccessDesc)) * * @property # <<<<<<<<<<<<<< * def accessDescCount(self): * return self._ptr[0].accessDescCount */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_22cudaMemAllocNodeParams_15accessDescCount_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_22cudaMemAllocNodeParams_15accessDescCount___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaMemAllocNodeParams_15accessDescCount___get__(struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6735, 0, __PYX_ERR(0, 6735, __pyx_L1_error)); /* "cuda/cudart.pyx":6737 * @property * def accessDescCount(self): * return self._ptr[0].accessDescCount # <<<<<<<<<<<<<< * @accessDescCount.setter * def accessDescCount(self, size_t accessDescCount): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).accessDescCount); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6737, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6735 * string.memcpy(&self._accessDescs[idx], (val[idx])._ptr, sizeof(ccudart.cudaMemAccessDesc)) * * @property # <<<<<<<<<<<<<< * def accessDescCount(self): * return self._ptr[0].accessDescCount */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParams.accessDescCount.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6738 * def accessDescCount(self): * return self._ptr[0].accessDescCount * @accessDescCount.setter # <<<<<<<<<<<<<< * def accessDescCount(self, size_t accessDescCount): * self._ptr[0].accessDescCount = accessDescCount */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_22cudaMemAllocNodeParams_15accessDescCount_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_accessDescCount); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_accessDescCount); if (unlikely((__pyx_v_accessDescCount == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 6739, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParams.accessDescCount.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_22cudaMemAllocNodeParams_15accessDescCount_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *)__pyx_v_self), ((size_t)__pyx_v_accessDescCount)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_22cudaMemAllocNodeParams_15accessDescCount_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *__pyx_v_self, size_t __pyx_v_accessDescCount) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 6738, 0, __PYX_ERR(0, 6738, __pyx_L1_error)); /* "cuda/cudart.pyx":6740 * @accessDescCount.setter * def accessDescCount(self, size_t accessDescCount): * self._ptr[0].accessDescCount = accessDescCount # <<<<<<<<<<<<<< * @property * def bytesize(self): */ (__pyx_v_self->_ptr[0]).accessDescCount = __pyx_v_accessDescCount; /* "cuda/cudart.pyx":6738 * def accessDescCount(self): * return self._ptr[0].accessDescCount * @accessDescCount.setter # <<<<<<<<<<<<<< * def accessDescCount(self, size_t accessDescCount): * self._ptr[0].accessDescCount = accessDescCount */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParams.accessDescCount.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6741 * def accessDescCount(self, size_t accessDescCount): * self._ptr[0].accessDescCount = accessDescCount * @property # <<<<<<<<<<<<<< * def bytesize(self): * return self._ptr[0].bytesize */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_22cudaMemAllocNodeParams_8bytesize_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_22cudaMemAllocNodeParams_8bytesize___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaMemAllocNodeParams_8bytesize___get__(struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6741, 0, __PYX_ERR(0, 6741, __pyx_L1_error)); /* "cuda/cudart.pyx":6743 * @property * def bytesize(self): * return self._ptr[0].bytesize # <<<<<<<<<<<<<< * @bytesize.setter * def bytesize(self, size_t bytesize): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).bytesize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6743, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6741 * def accessDescCount(self, size_t accessDescCount): * self._ptr[0].accessDescCount = accessDescCount * @property # <<<<<<<<<<<<<< * def bytesize(self): * return self._ptr[0].bytesize */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParams.bytesize.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6744 * def bytesize(self): * return self._ptr[0].bytesize * @bytesize.setter # <<<<<<<<<<<<<< * def bytesize(self, size_t bytesize): * self._ptr[0].bytesize = bytesize */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_22cudaMemAllocNodeParams_8bytesize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_bytesize); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_bytesize); if (unlikely((__pyx_v_bytesize == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 6745, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParams.bytesize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_22cudaMemAllocNodeParams_8bytesize_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *)__pyx_v_self), ((size_t)__pyx_v_bytesize)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_22cudaMemAllocNodeParams_8bytesize_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *__pyx_v_self, size_t __pyx_v_bytesize) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 6744, 0, __PYX_ERR(0, 6744, __pyx_L1_error)); /* "cuda/cudart.pyx":6746 * @bytesize.setter * def bytesize(self, size_t bytesize): * self._ptr[0].bytesize = bytesize # <<<<<<<<<<<<<< * @property * def dptr(self): */ (__pyx_v_self->_ptr[0]).bytesize = __pyx_v_bytesize; /* "cuda/cudart.pyx":6744 * def bytesize(self): * return self._ptr[0].bytesize * @bytesize.setter # <<<<<<<<<<<<<< * def bytesize(self, size_t bytesize): * self._ptr[0].bytesize = bytesize */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParams.bytesize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6747 * def bytesize(self, size_t bytesize): * self._ptr[0].bytesize = bytesize * @property # <<<<<<<<<<<<<< * def dptr(self): * return self._ptr[0].dptr */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_22cudaMemAllocNodeParams_4dptr_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_22cudaMemAllocNodeParams_4dptr___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaMemAllocNodeParams_4dptr___get__(struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6747, 0, __PYX_ERR(0, 6747, __pyx_L1_error)); /* "cuda/cudart.pyx":6749 * @property * def dptr(self): * return self._ptr[0].dptr # <<<<<<<<<<<<<< * @dptr.setter * def dptr(self, dptr): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).dptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6749, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6747 * def bytesize(self, size_t bytesize): * self._ptr[0].bytesize = bytesize * @property # <<<<<<<<<<<<<< * def dptr(self): * return self._ptr[0].dptr */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParams.dptr.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6750 * def dptr(self): * return self._ptr[0].dptr * @dptr.setter # <<<<<<<<<<<<<< * def dptr(self, dptr): * _cdptr = utils.HelperInputVoidPtr(dptr) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_22cudaMemAllocNodeParams_4dptr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dptr); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_22cudaMemAllocNodeParams_4dptr_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_dptr)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_22cudaMemAllocNodeParams_4dptr_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *__pyx_v_self, PyObject *__pyx_v_dptr) { PyObject *__pyx_v__cdptr = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 6750, 0, __PYX_ERR(0, 6750, __pyx_L1_error)); /* "cuda/cudart.pyx":6752 * @dptr.setter * def dptr(self, dptr): * _cdptr = utils.HelperInputVoidPtr(dptr) # <<<<<<<<<<<<<< * self._ptr[0].dptr = _cdptr.cptr * */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_dptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6752, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__cdptr = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":6753 * def dptr(self, dptr): * _cdptr = utils.HelperInputVoidPtr(dptr) * self._ptr[0].dptr = _cdptr.cptr # <<<<<<<<<<<<<< * * cdef class cudaMemAllocNodeParamsV2: */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v__cdptr, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6753, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6753, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).dptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":6750 * def dptr(self): * return self._ptr[0].dptr * @dptr.setter # <<<<<<<<<<<<<< * def dptr(self, dptr): * _cdptr = utils.HelperInputVoidPtr(dptr) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParams.dptr.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v__cdptr); __Pyx_TraceReturn(Py_None, 0); __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_6cudart_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_6cudart_22cudaMemAllocNodeParams_10__reduce_cython__, "cudaMemAllocNodeParams.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_22cudaMemAllocNodeParams_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_22cudaMemAllocNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_22cudaMemAllocNodeParams_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_22cudaMemAllocNodeParams_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaMemAllocNodeParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__141) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaMemAllocNodeParams.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_22cudaMemAllocNodeParams_12__setstate_cython__, "cudaMemAllocNodeParams.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_22cudaMemAllocNodeParams_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_22cudaMemAllocNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_22cudaMemAllocNodeParams_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_22cudaMemAllocNodeParams_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaMemAllocNodeParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__142) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaMemAllocNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6782 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_24cudaMemAllocNodeParamsV2_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_24cudaMemAllocNodeParamsV2_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 6782, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 6782, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6782, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 6782, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParamsV2.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_24cudaMemAllocNodeParamsV2___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_24cudaMemAllocNodeParamsV2___cinit__(struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 6782, 0, __PYX_ERR(0, 6782, __pyx_L1_error)); /* "cuda/cudart.pyx":6783 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":6784 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaMemAllocNodeParamsV2__val); /* "cuda/cudart.pyx":6783 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":6786 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * self._poolProps = cudaMemPoolProps(_ptr=&self._ptr[0].poolProps) */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaMemAllocNodeParamsV2 *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":6782 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParamsV2.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6787 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._poolProps = cudaMemPoolProps(_ptr=&self._ptr[0].poolProps) * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_24cudaMemAllocNodeParamsV2_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_24cudaMemAllocNodeParamsV2_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 6787, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 6787, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6787, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 6787, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParamsV2.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_24cudaMemAllocNodeParamsV2_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_24cudaMemAllocNodeParamsV2_2__init__(struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 6787, 0, __PYX_ERR(0, 6787, __pyx_L1_error)); /* "cuda/cudart.pyx":6788 * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): * self._poolProps = cudaMemPoolProps(_ptr=&self._ptr[0].poolProps) # <<<<<<<<<<<<<< * def __dealloc__(self): * if self._accessDescs is not NULL: */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6788, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).poolProps))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6788, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 6788, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemPoolProps), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6788, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_poolProps); __Pyx_DECREF((PyObject *)__pyx_v_self->_poolProps); __pyx_v_self->_poolProps = ((struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":6787 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._poolProps = cudaMemPoolProps(_ptr=&self._ptr[0].poolProps) * def __dealloc__(self): */ /* 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.cudart.cudaMemAllocNodeParamsV2.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6789 * def __init__(self, void_ptr _ptr = 0): * self._poolProps = cudaMemPoolProps(_ptr=&self._ptr[0].poolProps) * def __dealloc__(self): # <<<<<<<<<<<<<< * if self._accessDescs is not NULL: * free(self._accessDescs) */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_24cudaMemAllocNodeParamsV2_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_24cudaMemAllocNodeParamsV2_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_24cudaMemAllocNodeParamsV2_4__dealloc__(struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 6789, 0, __PYX_ERR(0, 6789, __pyx_L1_error)); /* "cuda/cudart.pyx":6790 * self._poolProps = cudaMemPoolProps(_ptr=&self._ptr[0].poolProps) * def __dealloc__(self): * 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/cudart.pyx":6791 * def __dealloc__(self): * if self._accessDescs is not NULL: * free(self._accessDescs) # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ free(__pyx_v_self->_accessDescs); /* "cuda/cudart.pyx":6790 * self._poolProps = cudaMemPoolProps(_ptr=&self._ptr[0].poolProps) * def __dealloc__(self): * if self._accessDescs is not NULL: # <<<<<<<<<<<<<< * free(self._accessDescs) * def getPtr(self): */ } /* "cuda/cudart.pyx":6789 * def __init__(self, void_ptr _ptr = 0): * self._poolProps = cudaMemPoolProps(_ptr=&self._ptr[0].poolProps) * def __dealloc__(self): # <<<<<<<<<<<<<< * if self._accessDescs is not NULL: * free(self._accessDescs) */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaMemAllocNodeParamsV2.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":6792 * if self._accessDescs is not NULL: * free(self._accessDescs) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_24cudaMemAllocNodeParamsV2_6getPtr, "cudaMemAllocNodeParamsV2.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_24cudaMemAllocNodeParamsV2_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_24cudaMemAllocNodeParamsV2_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_24cudaMemAllocNodeParamsV2_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_24cudaMemAllocNodeParamsV2_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaMemAllocNodeParamsV2_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__143) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 6792, 0, __PYX_ERR(0, 6792, __pyx_L1_error)); /* "cuda/cudart.pyx":6793 * free(self._accessDescs) * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6793, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6792 * if self._accessDescs is not NULL: * free(self._accessDescs) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParamsV2.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6794 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_24cudaMemAllocNodeParamsV2_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_24cudaMemAllocNodeParamsV2_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaMemAllocNodeParamsV2_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_9genexpr24__pyx_v_line = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 6794, 0, __PYX_ERR(0, 6794, __pyx_L1_error)); /* "cuda/cudart.pyx":6795 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":6796 * def __repr__(self): * if self._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, 6796, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":6797 * if self._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/cudart.pyx":6798 * str_list = [] * try: * str_list += ['poolProps :\n' + '\n'.join([' ' + line for line in str(self.poolProps).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['poolProps : '] */ { /* enter inner scope */ __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6798, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_poolProps_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6798, __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, 6798, __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, 6798, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 6798, __pyx_L12_error) #endif if (__pyx_t_8 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_7, __pyx_t_8); __Pyx_INCREF(__pyx_t_6); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(0, 6798, __pyx_L12_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6798, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_9genexpr24__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr24__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6798, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 6798, __pyx_L12_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_9genexpr24__pyx_v_line); __pyx_9genexpr24__pyx_v_line = 0; goto __pyx_L16_exit_scope; __pyx_L12_error:; __Pyx_XDECREF(__pyx_9genexpr24__pyx_v_line); __pyx_9genexpr24__pyx_v_line = 0; goto __pyx_L4_error; __pyx_L16_exit_scope:; } /* exit inner scope */ __pyx_t_7 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 6798, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_poolProps, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6798, __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, 6798, __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)) __PYX_ERR(0, 6798, __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, 6798, __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/cudart.pyx":6797 * if self._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/cudart.pyx":6799 * try: * str_list += ['poolProps :\n' + '\n'.join([' ' + line for line in str(self.poolProps).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['poolProps : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 6799, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":6800 * str_list += ['poolProps :\n' + '\n'.join([' ' + line for line in str(self.poolProps).splitlines()])] * except ValueError: * str_list += ['poolProps : '] # <<<<<<<<<<<<<< * try: * str_list += ['accessDescs : ' + str(self.accessDescs)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6800, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_poolProps_ValueError); __Pyx_GIVEREF(__pyx_kp_u_poolProps_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_poolProps_ValueError)) __PYX_ERR(0, 6800, __pyx_L6_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 6800, __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/cudart.pyx":6797 * if self._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/cudart.pyx":6801 * except ValueError: * str_list += ['poolProps : '] * 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/cudart.pyx":6802 * str_list += ['poolProps : '] * try: * str_list += ['accessDescs : ' + str(self.accessDescs)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['accessDescs : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_accessDescs_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6802, __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, 6802, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_accessDescs, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6802, __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, 6802, __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)) __PYX_ERR(0, 6802, __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, 6802, __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/cudart.pyx":6801 * except ValueError: * str_list += ['poolProps : '] * 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/cudart.pyx":6803 * try: * str_list += ['accessDescs : ' + str(self.accessDescs)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['accessDescs : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_7, &__pyx_t_2) < 0) __PYX_ERR(0, 6803, __pyx_L21_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":6804 * str_list += ['accessDescs : ' + str(self.accessDescs)] * except ValueError: * str_list += ['accessDescs : '] # <<<<<<<<<<<<<< * try: * str_list += ['accessDescCount : ' + str(self.accessDescCount)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 6804, __pyx_L21_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_accessDescs_ValueError); __Pyx_GIVEREF(__pyx_kp_u_accessDescs_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_accessDescs_ValueError)) __PYX_ERR(0, 6804, __pyx_L21_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6804, __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/cudart.pyx":6801 * except ValueError: * str_list += ['poolProps : '] * 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/cudart.pyx":6805 * except ValueError: * str_list += ['accessDescs : '] * 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/cudart.pyx":6806 * str_list += ['accessDescs : '] * try: * str_list += ['accessDescCount : ' + str(self.accessDescCount)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['accessDescCount : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_accessDescCount_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6806, __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, 6806, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_accessDescCount, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6806, __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, 6806, __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)) __PYX_ERR(0, 6806, __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, 6806, __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/cudart.pyx":6805 * except ValueError: * str_list += ['accessDescs : '] * 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/cudart.pyx":6807 * try: * str_list += ['accessDescCount : ' + str(self.accessDescCount)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['accessDescCount : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 6807, __pyx_L29_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":6808 * str_list += ['accessDescCount : ' + str(self.accessDescCount)] * except ValueError: * str_list += ['accessDescCount : '] # <<<<<<<<<<<<<< * try: * str_list += ['bytesize : ' + str(self.bytesize)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6808, __pyx_L29_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_accessDescCount_ValueError); __Pyx_GIVEREF(__pyx_kp_u_accessDescCount_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_accessDescCount_ValueError)) __PYX_ERR(0, 6808, __pyx_L29_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 6808, __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/cudart.pyx":6805 * except ValueError: * str_list += ['accessDescs : '] * 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/cudart.pyx":6809 * except ValueError: * str_list += ['accessDescCount : '] * 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/cudart.pyx":6810 * str_list += ['accessDescCount : '] * try: * str_list += ['bytesize : ' + str(self.bytesize)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['bytesize : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_bytesize_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6810, __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, 6810, __pyx_L35_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_bytesize, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6810, __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, 6810, __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)) __PYX_ERR(0, 6810, __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, 6810, __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/cudart.pyx":6809 * except ValueError: * str_list += ['accessDescCount : '] * 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/cudart.pyx":6811 * try: * str_list += ['bytesize : ' + str(self.bytesize)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['bytesize : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_7, &__pyx_t_2) < 0) __PYX_ERR(0, 6811, __pyx_L37_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":6812 * str_list += ['bytesize : ' + str(self.bytesize)] * except ValueError: * str_list += ['bytesize : '] # <<<<<<<<<<<<<< * try: * str_list += ['dptr : ' + hex(self.dptr)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 6812, __pyx_L37_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_bytesize_ValueError); __Pyx_GIVEREF(__pyx_kp_u_bytesize_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_bytesize_ValueError)) __PYX_ERR(0, 6812, __pyx_L37_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6812, __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/cudart.pyx":6809 * except ValueError: * str_list += ['accessDescCount : '] * 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/cudart.pyx":6813 * except ValueError: * str_list += ['bytesize : '] * 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/cudart.pyx":6814 * str_list += ['bytesize : '] * try: * str_list += ['dptr : ' + hex(self.dptr)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['dptr : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_dptr_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6814, __pyx_L43_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 6814, __pyx_L43_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_kp_u_dptr, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6814, __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, 6814, __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)) __PYX_ERR(0, 6814, __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, 6814, __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/cudart.pyx":6813 * except ValueError: * str_list += ['bytesize : '] * 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/cudart.pyx":6815 * try: * str_list += ['dptr : ' + hex(self.dptr)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['dptr : '] * return '\n'.join(str_list) */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 6815, __pyx_L45_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":6816 * str_list += ['dptr : ' + hex(self.dptr)] * except ValueError: * str_list += ['dptr : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6816, __pyx_L45_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_dptr_ValueError); __Pyx_GIVEREF(__pyx_kp_u_dptr_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_dptr_ValueError)) __PYX_ERR(0, 6816, __pyx_L45_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 6816, __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/cudart.pyx":6813 * except ValueError: * str_list += ['bytesize : '] * 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/cudart.pyx":6817 * except ValueError: * str_list += ['dptr : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_6 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6817, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6795 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":6819 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def poolProps(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":6794 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaMemAllocNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XDECREF(__pyx_9genexpr24__pyx_v_line); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6820 * else: * return '' * @property # <<<<<<<<<<<<<< * def poolProps(self): * return self._poolProps */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_24cudaMemAllocNodeParamsV2_9poolProps_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_24cudaMemAllocNodeParamsV2_9poolProps___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaMemAllocNodeParamsV2_9poolProps___get__(struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6820, 0, __PYX_ERR(0, 6820, __pyx_L1_error)); /* "cuda/cudart.pyx":6822 * @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/cudart.pyx":6820 * else: * return '' * @property # <<<<<<<<<<<<<< * def poolProps(self): * return self._poolProps */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParamsV2.poolProps.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6823 * def poolProps(self): * return self._poolProps * @poolProps.setter # <<<<<<<<<<<<<< * def poolProps(self, poolProps not None : cudaMemPoolProps): * string.memcpy(&self._ptr[0].poolProps, poolProps.getPtr(), sizeof(self._ptr[0].poolProps)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_24cudaMemAllocNodeParamsV2_9poolProps_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_poolProps); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_cudaMemPoolProps, 0, "poolProps", 0))) __PYX_ERR(0, 6824, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_24cudaMemAllocNodeParamsV2_9poolProps_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *)__pyx_v_poolProps)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_24cudaMemAllocNodeParamsV2_9poolProps_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *__pyx_v_poolProps) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 6823, 0, __PYX_ERR(0, 6823, __pyx_L1_error)); /* "cuda/cudart.pyx":6825 * @poolProps.setter * def poolProps(self, poolProps not None : cudaMemPoolProps): * string.memcpy(&self._ptr[0].poolProps, poolProps.getPtr(), sizeof(self._ptr[0].poolProps)) # <<<<<<<<<<<<<< * @property * def accessDescs(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_poolProps), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6825, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6825, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6825, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).poolProps), ((struct cudaMemPoolProps *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).poolProps)))); /* "cuda/cudart.pyx":6823 * def poolProps(self): * return self._poolProps * @poolProps.setter # <<<<<<<<<<<<<< * def poolProps(self, poolProps not None : cudaMemPoolProps): * string.memcpy(&self._ptr[0].poolProps, poolProps.getPtr(), sizeof(self._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_AddTraceback("cuda.cudart.cudaMemAllocNodeParamsV2.poolProps.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6826 * def poolProps(self, poolProps not None : cudaMemPoolProps): * string.memcpy(&self._ptr[0].poolProps, poolProps.getPtr(), sizeof(self._ptr[0].poolProps)) * @property # <<<<<<<<<<<<<< * def accessDescs(self): * arrs = [self._ptr[0].accessDescs + x*sizeof(ccudart.cudaMemAccessDesc) for x in range(self._accessDescs_length)] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_24cudaMemAllocNodeParamsV2_11accessDescs_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_24cudaMemAllocNodeParamsV2_11accessDescs___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaMemAllocNodeParamsV2_11accessDescs___get__(struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *__pyx_v_self) { PyObject *__pyx_v_arrs = NULL; size_t __pyx_9genexpr25__pyx_v_x; PyObject *__pyx_9genexpr26__pyx_v_arr = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6826, 0, __PYX_ERR(0, 6826, __pyx_L1_error)); /* "cuda/cudart.pyx":6828 * @property * def accessDescs(self): * arrs = [self._ptr[0].accessDescs + x*sizeof(ccudart.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, 6828, __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_9genexpr25__pyx_v_x = __pyx_t_4; __pyx_t_5 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG((((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).accessDescs) + (__pyx_9genexpr25__pyx_v_x * (sizeof(struct cudaMemAccessDesc))))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6828, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 6828, __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/cudart.pyx":6829 * def accessDescs(self): * arrs = [self._ptr[0].accessDescs + x*sizeof(ccudart.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, 6829, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 6829, __pyx_L7_error) #endif if (__pyx_t_6 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_7 = PyList_GET_ITEM(__pyx_t_5, __pyx_t_6); __Pyx_INCREF(__pyx_t_7); __pyx_t_6++; if (unlikely((0 < 0))) __PYX_ERR(0, 6829, __pyx_L7_error) #else __pyx_t_7 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 6829, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_7); #endif __Pyx_XDECREF_SET(__pyx_9genexpr26__pyx_v_arr, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 6829, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_ptr, __pyx_9genexpr26__pyx_v_arr) < 0) __PYX_ERR(0, 6829, __pyx_L7_error) __pyx_t_8 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemAccessDesc), __pyx_empty_tuple, __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6829, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_8))) __PYX_ERR(0, 6829, __pyx_L7_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_9genexpr26__pyx_v_arr); __pyx_9genexpr26__pyx_v_arr = 0; goto __pyx_L11_exit_scope; __pyx_L7_error:; __Pyx_XDECREF(__pyx_9genexpr26__pyx_v_arr); __pyx_9genexpr26__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/cudart.pyx":6826 * def poolProps(self, poolProps not None : cudaMemPoolProps): * string.memcpy(&self._ptr[0].poolProps, poolProps.getPtr(), sizeof(self._ptr[0].poolProps)) * @property # <<<<<<<<<<<<<< * def accessDescs(self): * arrs = [self._ptr[0].accessDescs + x*sizeof(ccudart.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_AddTraceback("cuda.cudart.cudaMemAllocNodeParamsV2.accessDescs.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_arrs); __Pyx_XDECREF(__pyx_9genexpr26__pyx_v_arr); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6830 * arrs = [self._ptr[0].accessDescs + x*sizeof(ccudart.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_6cudart_24cudaMemAllocNodeParamsV2_11accessDescs_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_24cudaMemAllocNodeParamsV2_11accessDescs_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *)__pyx_v_self), ((PyObject *)__pyx_v_val)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_24cudaMemAllocNodeParamsV2_11accessDescs_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *__pyx_v_self, PyObject *__pyx_v_val) { Py_ssize_t __pyx_v_idx; int __pyx_r; __Pyx_TraceDeclarations __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; struct cudaMemAccessDesc *__pyx_t_6; Py_ssize_t __pyx_t_7; Py_ssize_t __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 6830, 0, __PYX_ERR(0, 6830, __pyx_L1_error)); /* "cuda/cudart.pyx":6832 * @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, 6832, __pyx_L1_error) __pyx_t_2 = (__pyx_t_1 == 0); if (__pyx_t_2) { /* "cuda/cudart.pyx":6833 * def accessDescs(self, val): * if len(val) == 0: * free(self._accessDescs) # <<<<<<<<<<<<<< * self._accessDescs_length = 0 * self._ptr[0].accessDescs = NULL */ free(__pyx_v_self->_accessDescs); /* "cuda/cudart.pyx":6834 * if len(val) == 0: * free(self._accessDescs) * self._accessDescs_length = 0 # <<<<<<<<<<<<<< * self._ptr[0].accessDescs = NULL * else: */ __pyx_v_self->_accessDescs_length = 0; /* "cuda/cudart.pyx":6835 * free(self._accessDescs) * self._accessDescs_length = 0 * self._ptr[0].accessDescs = NULL # <<<<<<<<<<<<<< * else: * if self._accessDescs_length != len(val): */ (__pyx_v_self->_ptr[0]).accessDescs = NULL; /* "cuda/cudart.pyx":6832 * @accessDescs.setter * def accessDescs(self, val): * if len(val) == 0: # <<<<<<<<<<<<<< * free(self._accessDescs) * self._accessDescs_length = 0 */ goto __pyx_L3; } /* "cuda/cudart.pyx":6837 * self._ptr[0].accessDescs = NULL * else: * if self._accessDescs_length != len(val): # <<<<<<<<<<<<<< * free(self._accessDescs) * self._accessDescs = calloc(len(val), sizeof(ccudart.cudaMemAccessDesc)) */ /*else*/ { __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 6837, __pyx_L1_error) __pyx_t_2 = (__pyx_v_self->_accessDescs_length != ((size_t)__pyx_t_1)); if (__pyx_t_2) { /* "cuda/cudart.pyx":6838 * else: * if self._accessDescs_length != len(val): * free(self._accessDescs) # <<<<<<<<<<<<<< * self._accessDescs = calloc(len(val), sizeof(ccudart.cudaMemAccessDesc)) * if self._accessDescs is NULL: */ free(__pyx_v_self->_accessDescs); /* "cuda/cudart.pyx":6839 * if self._accessDescs_length != len(val): * free(self._accessDescs) * self._accessDescs = calloc(len(val), sizeof(ccudart.cudaMemAccessDesc)) # <<<<<<<<<<<<<< * if self._accessDescs is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaMemAccessDesc))) */ __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 6839, __pyx_L1_error) __pyx_v_self->_accessDescs = ((struct cudaMemAccessDesc *)calloc(__pyx_t_1, (sizeof(struct cudaMemAccessDesc)))); /* "cuda/cudart.pyx":6840 * free(self._accessDescs) * self._accessDescs = calloc(len(val), sizeof(ccudart.cudaMemAccessDesc)) * if self._accessDescs is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaMemAccessDesc))) * self._accessDescs_length = len(val) */ __pyx_t_2 = (__pyx_v_self->_accessDescs == NULL); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":6841 * self._accessDescs = calloc(len(val), sizeof(ccudart.cudaMemAccessDesc)) * if self._accessDescs is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaMemAccessDesc))) # <<<<<<<<<<<<<< * self._accessDescs_length = len(val) * self._ptr[0].accessDescs = self._accessDescs */ __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 6841, __pyx_L1_error) __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6841, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6841, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6841, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_n_u_x_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6841, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaMemAccessDesc))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6841, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6841, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6841, __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_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6841, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __PYX_ERR(0, 6841, __pyx_L1_error) /* "cuda/cudart.pyx":6840 * free(self._accessDescs) * self._accessDescs = calloc(len(val), sizeof(ccudart.cudaMemAccessDesc)) * if self._accessDescs is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaMemAccessDesc))) * self._accessDescs_length = len(val) */ } /* "cuda/cudart.pyx":6842 * if self._accessDescs is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaMemAccessDesc))) * self._accessDescs_length = len(val) # <<<<<<<<<<<<<< * self._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, 6842, __pyx_L1_error) __pyx_v_self->_accessDescs_length = ((size_t)__pyx_t_1); /* "cuda/cudart.pyx":6843 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaMemAccessDesc))) * self._accessDescs_length = len(val) * self._ptr[0].accessDescs = self._accessDescs # <<<<<<<<<<<<<< * for idx in range(len(val)): * string.memcpy(&self._accessDescs[idx], (val[idx])._ptr, sizeof(ccudart.cudaMemAccessDesc)) */ __pyx_t_6 = __pyx_v_self->_accessDescs; (__pyx_v_self->_ptr[0]).accessDescs = __pyx_t_6; /* "cuda/cudart.pyx":6837 * self._ptr[0].accessDescs = NULL * else: * if self._accessDescs_length != len(val): # <<<<<<<<<<<<<< * free(self._accessDescs) * self._accessDescs = calloc(len(val), sizeof(ccudart.cudaMemAccessDesc)) */ } /* "cuda/cudart.pyx":6844 * self._accessDescs_length = len(val) * self._ptr[0].accessDescs = self._accessDescs * for idx in range(len(val)): # <<<<<<<<<<<<<< * string.memcpy(&self._accessDescs[idx], (val[idx])._ptr, sizeof(ccudart.cudaMemAccessDesc)) * */ __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 6844, __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/cudart.pyx":6845 * self._ptr[0].accessDescs = self._accessDescs * for idx in range(len(val)): * string.memcpy(&self._accessDescs[idx], (val[idx])._ptr, sizeof(ccudart.cudaMemAccessDesc)) # <<<<<<<<<<<<<< * * @property */ __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_val, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6845, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); (void)(memcpy((&(__pyx_v_self->_accessDescs[__pyx_v_idx])), ((struct __pyx_obj_4cuda_6cudart_cudaMemAccessDesc *)__pyx_t_5)->_ptr, (sizeof(struct cudaMemAccessDesc)))); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __pyx_L3:; /* "cuda/cudart.pyx":6830 * arrs = [self._ptr[0].accessDescs + x*sizeof(ccudart.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_AddTraceback("cuda.cudart.cudaMemAllocNodeParamsV2.accessDescs.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6847 * string.memcpy(&self._accessDescs[idx], (val[idx])._ptr, sizeof(ccudart.cudaMemAccessDesc)) * * @property # <<<<<<<<<<<<<< * def accessDescCount(self): * return self._ptr[0].accessDescCount */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_24cudaMemAllocNodeParamsV2_15accessDescCount_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_24cudaMemAllocNodeParamsV2_15accessDescCount___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaMemAllocNodeParamsV2_15accessDescCount___get__(struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6847, 0, __PYX_ERR(0, 6847, __pyx_L1_error)); /* "cuda/cudart.pyx":6849 * @property * def accessDescCount(self): * return self._ptr[0].accessDescCount # <<<<<<<<<<<<<< * @accessDescCount.setter * def accessDescCount(self, size_t accessDescCount): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).accessDescCount); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6849, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6847 * string.memcpy(&self._accessDescs[idx], (val[idx])._ptr, sizeof(ccudart.cudaMemAccessDesc)) * * @property # <<<<<<<<<<<<<< * def accessDescCount(self): * return self._ptr[0].accessDescCount */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParamsV2.accessDescCount.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6850 * def accessDescCount(self): * return self._ptr[0].accessDescCount * @accessDescCount.setter # <<<<<<<<<<<<<< * def accessDescCount(self, size_t accessDescCount): * self._ptr[0].accessDescCount = accessDescCount */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_24cudaMemAllocNodeParamsV2_15accessDescCount_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_accessDescCount); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_accessDescCount); if (unlikely((__pyx_v_accessDescCount == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 6851, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParamsV2.accessDescCount.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_24cudaMemAllocNodeParamsV2_15accessDescCount_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *)__pyx_v_self), ((size_t)__pyx_v_accessDescCount)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_24cudaMemAllocNodeParamsV2_15accessDescCount_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *__pyx_v_self, size_t __pyx_v_accessDescCount) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 6850, 0, __PYX_ERR(0, 6850, __pyx_L1_error)); /* "cuda/cudart.pyx":6852 * @accessDescCount.setter * def accessDescCount(self, size_t accessDescCount): * self._ptr[0].accessDescCount = accessDescCount # <<<<<<<<<<<<<< * @property * def bytesize(self): */ (__pyx_v_self->_ptr[0]).accessDescCount = __pyx_v_accessDescCount; /* "cuda/cudart.pyx":6850 * def accessDescCount(self): * return self._ptr[0].accessDescCount * @accessDescCount.setter # <<<<<<<<<<<<<< * def accessDescCount(self, size_t accessDescCount): * self._ptr[0].accessDescCount = accessDescCount */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParamsV2.accessDescCount.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6853 * def accessDescCount(self, size_t accessDescCount): * self._ptr[0].accessDescCount = accessDescCount * @property # <<<<<<<<<<<<<< * def bytesize(self): * return self._ptr[0].bytesize */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_24cudaMemAllocNodeParamsV2_8bytesize_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_24cudaMemAllocNodeParamsV2_8bytesize___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaMemAllocNodeParamsV2_8bytesize___get__(struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6853, 0, __PYX_ERR(0, 6853, __pyx_L1_error)); /* "cuda/cudart.pyx":6855 * @property * def bytesize(self): * return self._ptr[0].bytesize # <<<<<<<<<<<<<< * @bytesize.setter * def bytesize(self, size_t bytesize): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).bytesize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6855, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6853 * def accessDescCount(self, size_t accessDescCount): * self._ptr[0].accessDescCount = accessDescCount * @property # <<<<<<<<<<<<<< * def bytesize(self): * return self._ptr[0].bytesize */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParamsV2.bytesize.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6856 * def bytesize(self): * return self._ptr[0].bytesize * @bytesize.setter # <<<<<<<<<<<<<< * def bytesize(self, size_t bytesize): * self._ptr[0].bytesize = bytesize */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_24cudaMemAllocNodeParamsV2_8bytesize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_bytesize); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_bytesize); if (unlikely((__pyx_v_bytesize == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 6857, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParamsV2.bytesize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_24cudaMemAllocNodeParamsV2_8bytesize_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *)__pyx_v_self), ((size_t)__pyx_v_bytesize)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_24cudaMemAllocNodeParamsV2_8bytesize_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *__pyx_v_self, size_t __pyx_v_bytesize) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 6856, 0, __PYX_ERR(0, 6856, __pyx_L1_error)); /* "cuda/cudart.pyx":6858 * @bytesize.setter * def bytesize(self, size_t bytesize): * self._ptr[0].bytesize = bytesize # <<<<<<<<<<<<<< * @property * def dptr(self): */ (__pyx_v_self->_ptr[0]).bytesize = __pyx_v_bytesize; /* "cuda/cudart.pyx":6856 * def bytesize(self): * return self._ptr[0].bytesize * @bytesize.setter # <<<<<<<<<<<<<< * def bytesize(self, size_t bytesize): * self._ptr[0].bytesize = bytesize */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParamsV2.bytesize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6859 * def bytesize(self, size_t bytesize): * self._ptr[0].bytesize = bytesize * @property # <<<<<<<<<<<<<< * def dptr(self): * return self._ptr[0].dptr */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_24cudaMemAllocNodeParamsV2_4dptr_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_24cudaMemAllocNodeParamsV2_4dptr___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaMemAllocNodeParamsV2_4dptr___get__(struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6859, 0, __PYX_ERR(0, 6859, __pyx_L1_error)); /* "cuda/cudart.pyx":6861 * @property * def dptr(self): * return self._ptr[0].dptr # <<<<<<<<<<<<<< * @dptr.setter * def dptr(self, dptr): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).dptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6861, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6859 * def bytesize(self, size_t bytesize): * self._ptr[0].bytesize = bytesize * @property # <<<<<<<<<<<<<< * def dptr(self): * return self._ptr[0].dptr */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParamsV2.dptr.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6862 * def dptr(self): * return self._ptr[0].dptr * @dptr.setter # <<<<<<<<<<<<<< * def dptr(self, dptr): * _cdptr = utils.HelperInputVoidPtr(dptr) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_24cudaMemAllocNodeParamsV2_4dptr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dptr); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_24cudaMemAllocNodeParamsV2_4dptr_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *)__pyx_v_self), ((PyObject *)__pyx_v_dptr)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_24cudaMemAllocNodeParamsV2_4dptr_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *__pyx_v_self, PyObject *__pyx_v_dptr) { PyObject *__pyx_v__cdptr = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 6862, 0, __PYX_ERR(0, 6862, __pyx_L1_error)); /* "cuda/cudart.pyx":6864 * @dptr.setter * def dptr(self, dptr): * _cdptr = utils.HelperInputVoidPtr(dptr) # <<<<<<<<<<<<<< * self._ptr[0].dptr = _cdptr.cptr * */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_dptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6864, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__cdptr = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":6865 * def dptr(self, dptr): * _cdptr = utils.HelperInputVoidPtr(dptr) * self._ptr[0].dptr = _cdptr.cptr # <<<<<<<<<<<<<< * * cdef class cudaMemFreeNodeParams: */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v__cdptr, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6865, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6865, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).dptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":6862 * def dptr(self): * return self._ptr[0].dptr * @dptr.setter # <<<<<<<<<<<<<< * def dptr(self, dptr): * _cdptr = utils.HelperInputVoidPtr(dptr) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParamsV2.dptr.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v__cdptr); __Pyx_TraceReturn(Py_None, 0); __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_6cudart_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_6cudart_24cudaMemAllocNodeParamsV2_10__reduce_cython__, "cudaMemAllocNodeParamsV2.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_24cudaMemAllocNodeParamsV2_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_24cudaMemAllocNodeParamsV2_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_24cudaMemAllocNodeParamsV2_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_24cudaMemAllocNodeParamsV2_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaMemAllocNodeParamsV2_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__144) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaMemAllocNodeParamsV2.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_24cudaMemAllocNodeParamsV2_12__setstate_cython__, "cudaMemAllocNodeParamsV2.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_24cudaMemAllocNodeParamsV2_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_24cudaMemAllocNodeParamsV2_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_24cudaMemAllocNodeParamsV2_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemAllocNodeParamsV2.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_24cudaMemAllocNodeParamsV2_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaMemAllocNodeParamsV2_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__145) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaMemAllocNodeParamsV2.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6882 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_21cudaMemFreeNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_21cudaMemFreeNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 6882, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 6882, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6882, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 6882, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemFreeNodeParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_21cudaMemFreeNodeParams___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaMemFreeNodeParams *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_21cudaMemFreeNodeParams___cinit__(struct __pyx_obj_4cuda_6cudart_cudaMemFreeNodeParams *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 6882, 0, __PYX_ERR(0, 6882, __pyx_L1_error)); /* "cuda/cudart.pyx":6883 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":6884 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaMemFreeNodeParams__val); /* "cuda/cudart.pyx":6883 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":6886 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * pass */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaMemFreeNodeParams *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":6882 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemFreeNodeParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6887 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_21cudaMemFreeNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_21cudaMemFreeNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 6887, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 6887, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6887, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 6887, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemFreeNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_21cudaMemFreeNodeParams_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaMemFreeNodeParams *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_21cudaMemFreeNodeParams_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemFreeNodeParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 6887, 0, __PYX_ERR(0, 6887, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemFreeNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6889 * def __init__(self, void_ptr _ptr = 0): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_21cudaMemFreeNodeParams_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_21cudaMemFreeNodeParams_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaMemFreeNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_21cudaMemFreeNodeParams_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemFreeNodeParams *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 6889, 0, __PYX_ERR(0, 6889, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaMemFreeNodeParams.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":6891 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_21cudaMemFreeNodeParams_6getPtr, "cudaMemFreeNodeParams.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_21cudaMemFreeNodeParams_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_21cudaMemFreeNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_21cudaMemFreeNodeParams_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_21cudaMemFreeNodeParams_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaMemFreeNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaMemFreeNodeParams_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaMemFreeNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__146) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 6891, 0, __PYX_ERR(0, 6891, __pyx_L1_error)); /* "cuda/cudart.pyx":6892 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6892, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6891 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemFreeNodeParams.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6893 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_21cudaMemFreeNodeParams_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_21cudaMemFreeNodeParams_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaMemFreeNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaMemFreeNodeParams_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaMemFreeNodeParams *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 6893, 0, __PYX_ERR(0, 6893, __pyx_L1_error)); /* "cuda/cudart.pyx":6894 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":6895 * def __repr__(self): * if self._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, 6895, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":6896 * if self._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/cudart.pyx":6897 * str_list = [] * try: * str_list += ['dptr : ' + hex(self.dptr)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['dptr : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_dptr_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6897, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6897, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_kp_u_dptr, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6897, __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, 6897, __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)) __PYX_ERR(0, 6897, __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, 6897, __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/cudart.pyx":6896 * if self._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/cudart.pyx":6898 * try: * str_list += ['dptr : ' + hex(self.dptr)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['dptr : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaMemFreeNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 6898, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":6899 * str_list += ['dptr : ' + hex(self.dptr)] * except ValueError: * str_list += ['dptr : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6899, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_dptr_ValueError); __Pyx_GIVEREF(__pyx_kp_u_dptr_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_dptr_ValueError)) __PYX_ERR(0, 6899, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6899, __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/cudart.pyx":6896 * if self._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/cudart.pyx":6900 * except ValueError: * str_list += ['dptr : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6900, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6894 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":6902 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def dptr(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":6893 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaMemFreeNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6903 * else: * return '' * @property # <<<<<<<<<<<<<< * def dptr(self): * return self._ptr[0].dptr */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_21cudaMemFreeNodeParams_4dptr_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_21cudaMemFreeNodeParams_4dptr___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemFreeNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaMemFreeNodeParams_4dptr___get__(struct __pyx_obj_4cuda_6cudart_cudaMemFreeNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6903, 0, __PYX_ERR(0, 6903, __pyx_L1_error)); /* "cuda/cudart.pyx":6905 * @property * def dptr(self): * return self._ptr[0].dptr # <<<<<<<<<<<<<< * @dptr.setter * def dptr(self, dptr): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).dptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6905, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6903 * else: * return '' * @property # <<<<<<<<<<<<<< * def dptr(self): * return self._ptr[0].dptr */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemFreeNodeParams.dptr.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6906 * def dptr(self): * return self._ptr[0].dptr * @dptr.setter # <<<<<<<<<<<<<< * def dptr(self, dptr): * _cdptr = utils.HelperInputVoidPtr(dptr) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_21cudaMemFreeNodeParams_4dptr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dptr); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_21cudaMemFreeNodeParams_4dptr_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemFreeNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_dptr)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_21cudaMemFreeNodeParams_4dptr_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemFreeNodeParams *__pyx_v_self, PyObject *__pyx_v_dptr) { PyObject *__pyx_v__cdptr = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 6906, 0, __PYX_ERR(0, 6906, __pyx_L1_error)); /* "cuda/cudart.pyx":6908 * @dptr.setter * def dptr(self, dptr): * _cdptr = utils.HelperInputVoidPtr(dptr) # <<<<<<<<<<<<<< * self._ptr[0].dptr = _cdptr.cptr * */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_dptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6908, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__cdptr = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":6909 * def dptr(self, dptr): * _cdptr = utils.HelperInputVoidPtr(dptr) * self._ptr[0].dptr = _cdptr.cptr # <<<<<<<<<<<<<< * * cdef class CUuuid_st: */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v__cdptr, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6909, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6909, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).dptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":6906 * def dptr(self): * return self._ptr[0].dptr * @dptr.setter # <<<<<<<<<<<<<< * def dptr(self, dptr): * _cdptr = utils.HelperInputVoidPtr(dptr) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemFreeNodeParams.dptr.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v__cdptr); __Pyx_TraceReturn(Py_None, 0); __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_6cudart_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_6cudart_21cudaMemFreeNodeParams_10__reduce_cython__, "cudaMemFreeNodeParams.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_21cudaMemFreeNodeParams_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_21cudaMemFreeNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_21cudaMemFreeNodeParams_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_21cudaMemFreeNodeParams_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaMemFreeNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaMemFreeNodeParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemFreeNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__147) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaMemFreeNodeParams.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_21cudaMemFreeNodeParams_12__setstate_cython__, "cudaMemFreeNodeParams.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_21cudaMemFreeNodeParams_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_21cudaMemFreeNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_21cudaMemFreeNodeParams_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemFreeNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_21cudaMemFreeNodeParams_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaMemFreeNodeParams *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaMemFreeNodeParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemFreeNodeParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__148) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaMemFreeNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6924 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_9CUuuid_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_9CUuuid_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 6924, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 6924, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6924, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 6924, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.CUuuid_st.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_9CUuuid_st___cinit__(((struct __pyx_obj_4cuda_6cudart_CUuuid_st *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_9CUuuid_st___cinit__(struct __pyx_obj_4cuda_6cudart_CUuuid_st *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 6924, 0, __PYX_ERR(0, 6924, __pyx_L1_error)); /* "cuda/cudart.pyx":6925 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":6926 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_CUuuid_st__val); /* "cuda/cudart.pyx":6925 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":6928 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * pass */ /*else*/ { __pyx_v_self->_ptr = ((struct CUuuid_st *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":6924 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.CUuuid_st.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6929 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_9CUuuid_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_9CUuuid_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 6929, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 6929, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6929, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 6929, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.CUuuid_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_9CUuuid_st_2__init__(((struct __pyx_obj_4cuda_6cudart_CUuuid_st *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_9CUuuid_st_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_CUuuid_st *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 6929, 0, __PYX_ERR(0, 6929, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.CUuuid_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":6931 * def __init__(self, void_ptr _ptr = 0): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_9CUuuid_st_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_9CUuuid_st_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_CUuuid_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_9CUuuid_st_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_CUuuid_st *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 6931, 0, __PYX_ERR(0, 6931, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.CUuuid_st.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":6933 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_9CUuuid_st_6getPtr, "CUuuid_st.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_9CUuuid_st_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_9CUuuid_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_9CUuuid_st_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_9CUuuid_st_6getPtr(((struct __pyx_obj_4cuda_6cudart_CUuuid_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_9CUuuid_st_6getPtr(struct __pyx_obj_4cuda_6cudart_CUuuid_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__149) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 6933, 0, __PYX_ERR(0, 6933, __pyx_L1_error)); /* "cuda/cudart.pyx":6934 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6934, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6933 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.CUuuid_st.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6935 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_9CUuuid_st_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_9CUuuid_st_8__repr__(((struct __pyx_obj_4cuda_6cudart_CUuuid_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_9CUuuid_st_8__repr__(struct __pyx_obj_4cuda_6cudart_CUuuid_st *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; unsigned int __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 6935, 0, __PYX_ERR(0, 6935, __pyx_L1_error)); /* "cuda/cudart.pyx":6936 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":6937 * def __repr__(self): * if self._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, 6937, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":6938 * if self._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/cudart.pyx":6939 * str_list = [] * try: * str_list += ['bytes : ' + str(self.bytes.hex())] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['bytes : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_bytes_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6939, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_hex); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 6939, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_8, 0+__pyx_t_8); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6939, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 6939, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_bytes, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6939, __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, 6939, __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)) __PYX_ERR(0, 6939, __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, 6939, __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/cudart.pyx":6938 * if self._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/cudart.pyx":6940 * try: * str_list += ['bytes : ' + str(self.bytes.hex())] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['bytes : '] * return '\n'.join(str_list) */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.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, 6940, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":6941 * str_list += ['bytes : ' + str(self.bytes.hex())] * except ValueError: * str_list += ['bytes : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6941, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_bytes_ValueError); __Pyx_GIVEREF(__pyx_kp_u_bytes_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_bytes_ValueError)) __PYX_ERR(0, 6941, __pyx_L6_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 6941, __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/cudart.pyx":6938 * if self._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/cudart.pyx":6942 * except ValueError: * str_list += ['bytes : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_6 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6942, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6936 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":6944 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def bytes(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":6935 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":6945 * else: * return '' * @property # <<<<<<<<<<<<<< * def bytes(self): * return PyBytes_FromStringAndSize(self._ptr[0].bytes, 16) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_9CUuuid_st_5bytes_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_9CUuuid_st_5bytes___get__(((struct __pyx_obj_4cuda_6cudart_CUuuid_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_9CUuuid_st_5bytes___get__(struct __pyx_obj_4cuda_6cudart_CUuuid_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 6945, 0, __PYX_ERR(0, 6945, __pyx_L1_error)); /* "cuda/cudart.pyx":6947 * @property * def bytes(self): * return PyBytes_FromStringAndSize(self._ptr[0].bytes, 16) # <<<<<<<<<<<<<< * * cdef class cudaDeviceProp: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyBytes_FromStringAndSize((__pyx_v_self->_ptr[0]).bytes, 16); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6947, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":6945 * else: * return '' * @property # <<<<<<<<<<<<<< * def bytes(self): * return PyBytes_FromStringAndSize(self._ptr[0].bytes, 16) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.CUuuid_st.bytes.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_9CUuuid_st_10__reduce_cython__, "CUuuid_st.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_9CUuuid_st_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_9CUuuid_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_9CUuuid_st_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_9CUuuid_st_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_CUuuid_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_9CUuuid_st_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_CUuuid_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__150) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.CUuuid_st.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_9CUuuid_st_12__setstate_cython__, "CUuuid_st.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_9CUuuid_st_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_9CUuuid_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_9CUuuid_st_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.CUuuid_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_9CUuuid_st_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_CUuuid_st *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_9CUuuid_st_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_CUuuid_st *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__151) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.CUuuid_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7176 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 7176, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 7176, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 7176, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 7176, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp___cinit__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 7176, 0, __PYX_ERR(0, 7176, __pyx_L1_error)); /* "cuda/cudart.pyx":7177 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":7178 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaDeviceProp__val); /* "cuda/cudart.pyx":7177 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":7180 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * self._uuid = cudaUUID_t(_ptr=&self._ptr[0].uuid) */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaDeviceProp *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":7176 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7181 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._uuid = cudaUUID_t(_ptr=&self._ptr[0].uuid) * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 7181, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 7181, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 7181, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 7181, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_2__init__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 7181, 0, __PYX_ERR(0, 7181, __pyx_L1_error)); /* "cuda/cudart.pyx":7182 * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): * self._uuid = cudaUUID_t(_ptr=&self._ptr[0].uuid) # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7182, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).uuid))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7182, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 7182, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaUUID_t), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7182, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_uuid); __Pyx_DECREF((PyObject *)__pyx_v_self->_uuid); __pyx_v_self->_uuid = ((struct __pyx_obj_4cuda_6cudart_cudaUUID_t *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":7181 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._uuid = cudaUUID_t(_ptr=&self._ptr[0].uuid) * def __dealloc__(self): */ /* 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.cudart.cudaDeviceProp.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7183 * def __init__(self, void_ptr _ptr = 0): * self._uuid = cudaUUID_t(_ptr=&self._ptr[0].uuid) * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_14cudaDeviceProp_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_14cudaDeviceProp_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 7183, 0, __PYX_ERR(0, 7183, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaDeviceProp.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":7185 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_6getPtr, "cudaDeviceProp.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_14cudaDeviceProp_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_14cudaDeviceProp_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_14cudaDeviceProp_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__152) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 7185, 0, __PYX_ERR(0, 7185, __pyx_L1_error)); /* "cuda/cudart.pyx":7186 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7186, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7185 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7187 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_9genexpr27__pyx_v_line = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; unsigned int __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 7187, 0, __PYX_ERR(0, 7187, __pyx_L1_error)); /* "cuda/cudart.pyx":7188 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":7189 * def __repr__(self): * if self._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, 7189, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":7190 * if self._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/cudart.pyx":7191 * str_list = [] * try: * str_list += ['name : ' + self.name.decode('utf-8')] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['name : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_name_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7191, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_decode); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7191, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_kp_u_utf_8}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7191, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __pyx_t_7 = PyNumber_Add(__pyx_kp_u_name, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7191, __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, 7191, __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)) __PYX_ERR(0, 7191, __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, 7191, __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/cudart.pyx":7190 * if self._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/cudart.pyx":7192 * try: * str_list += ['name : ' + self.name.decode('utf-8')] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['name : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7192, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7193 * str_list += ['name : ' + self.name.decode('utf-8')] * except ValueError: * str_list += ['name : '] # <<<<<<<<<<<<<< * 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, 7193, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_name_ValueError); __Pyx_GIVEREF(__pyx_kp_u_name_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_name_ValueError)) __PYX_ERR(0, 7193, __pyx_L6_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7193, __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/cudart.pyx":7190 * if self._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/cudart.pyx":7194 * except ValueError: * str_list += ['name : '] * 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/cudart.pyx":7195 * str_list += ['name : '] * try: * str_list += ['uuid :\n' + '\n'.join([' ' + line for line in str(self.uuid).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['uuid : '] */ { /* enter inner scope */ __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7195, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_uuid_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7195, __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, 7195, __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, 7195, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 7195, __pyx_L20_error) #endif if (__pyx_t_12 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_2 = PyList_GET_ITEM(__pyx_t_7, __pyx_t_12); __Pyx_INCREF(__pyx_t_2); __pyx_t_12++; if (unlikely((0 < 0))) __PYX_ERR(0, 7195, __pyx_L20_error) #else __pyx_t_2 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_12); __pyx_t_12++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7195, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_2); #endif __Pyx_XDECREF_SET(__pyx_9genexpr27__pyx_v_line, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr27__pyx_v_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7195, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 7195, __pyx_L20_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_9genexpr27__pyx_v_line); __pyx_9genexpr27__pyx_v_line = 0; goto __pyx_L24_exit_scope; __pyx_L20_error:; __Pyx_XDECREF(__pyx_9genexpr27__pyx_v_line); __pyx_9genexpr27__pyx_v_line = 0; goto __pyx_L12_error; __pyx_L24_exit_scope:; } /* exit inner scope */ __pyx_t_7 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7195, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_uuid, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7195, __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, 7195, __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)) __PYX_ERR(0, 7195, __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, 7195, __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/cudart.pyx":7194 * except ValueError: * str_list += ['name : '] * 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/cudart.pyx":7196 * try: * str_list += ['uuid :\n' + '\n'.join([' ' + line for line in str(self.uuid).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['uuid : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_7, &__pyx_t_2) < 0) __PYX_ERR(0, 7196, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":7197 * str_list += ['uuid :\n' + '\n'.join([' ' + line for line in str(self.uuid).splitlines()])] * except ValueError: * str_list += ['uuid : '] # <<<<<<<<<<<<<< * try: * str_list += ['luid : ' + self.luid.hex()] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7197, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_uuid_ValueError); __Pyx_GIVEREF(__pyx_kp_u_uuid_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_uuid_ValueError)) __PYX_ERR(0, 7197, __pyx_L14_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7197, __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/cudart.pyx":7194 * except ValueError: * str_list += ['name : '] * 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/cudart.pyx":7198 * except ValueError: * str_list += ['uuid : '] * 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/cudart.pyx":7199 * str_list += ['uuid : '] * try: * str_list += ['luid : ' + self.luid.hex()] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['luid : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_luid_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7199, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_hex); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7199, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, NULL}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_6, __pyx_callargs+1-__pyx_t_8, 0+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7199, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __pyx_t_6 = PyNumber_Add(__pyx_kp_u_luid, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7199, __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, 7199, __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)) __PYX_ERR(0, 7199, __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, 7199, __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/cudart.pyx":7198 * except ValueError: * str_list += ['uuid : '] * 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/cudart.pyx":7200 * try: * str_list += ['luid : ' + self.luid.hex()] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['luid : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7200, __pyx_L29_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7201 * str_list += ['luid : ' + self.luid.hex()] * except ValueError: * str_list += ['luid : '] # <<<<<<<<<<<<<< * try: * str_list += ['luidDeviceNodeMask : ' + str(self.luidDeviceNodeMask)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7201, __pyx_L29_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_luid_ValueError); __Pyx_GIVEREF(__pyx_kp_u_luid_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_luid_ValueError)) __PYX_ERR(0, 7201, __pyx_L29_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7201, __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/cudart.pyx":7198 * except ValueError: * str_list += ['uuid : '] * 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/cudart.pyx":7202 * except ValueError: * str_list += ['luid : '] * 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/cudart.pyx":7203 * str_list += ['luid : '] * try: * str_list += ['luidDeviceNodeMask : ' + str(self.luidDeviceNodeMask)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['luidDeviceNodeMask : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_luidDeviceNodeMask_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7203, __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, 7203, __pyx_L35_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_luidDeviceNodeMask, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7203, __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, 7203, __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)) __PYX_ERR(0, 7203, __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, 7203, __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/cudart.pyx":7202 * except ValueError: * str_list += ['luid : '] * 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/cudart.pyx":7204 * try: * str_list += ['luidDeviceNodeMask : ' + str(self.luidDeviceNodeMask)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['luidDeviceNodeMask : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7204, __pyx_L37_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7205 * str_list += ['luidDeviceNodeMask : ' + str(self.luidDeviceNodeMask)] * except ValueError: * str_list += ['luidDeviceNodeMask : '] # <<<<<<<<<<<<<< * try: * str_list += ['totalGlobalMem : ' + str(self.totalGlobalMem)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7205, __pyx_L37_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_luidDeviceNodeMask_ValueError); __Pyx_GIVEREF(__pyx_kp_u_luidDeviceNodeMask_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_luidDeviceNodeMask_ValueError)) __PYX_ERR(0, 7205, __pyx_L37_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7205, __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/cudart.pyx":7202 * except ValueError: * str_list += ['luid : '] * 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/cudart.pyx":7206 * except ValueError: * str_list += ['luidDeviceNodeMask : '] * 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/cudart.pyx":7207 * str_list += ['luidDeviceNodeMask : '] * try: * str_list += ['totalGlobalMem : ' + str(self.totalGlobalMem)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['totalGlobalMem : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_totalGlobalMem_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7207, __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, 7207, __pyx_L43_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_totalGlobalMem, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7207, __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, 7207, __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)) __PYX_ERR(0, 7207, __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, 7207, __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/cudart.pyx":7206 * except ValueError: * str_list += ['luidDeviceNodeMask : '] * 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/cudart.pyx":7208 * try: * str_list += ['totalGlobalMem : ' + str(self.totalGlobalMem)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['totalGlobalMem : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7208, __pyx_L45_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7209 * str_list += ['totalGlobalMem : ' + str(self.totalGlobalMem)] * except ValueError: * str_list += ['totalGlobalMem : '] # <<<<<<<<<<<<<< * try: * str_list += ['sharedMemPerBlock : ' + str(self.sharedMemPerBlock)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7209, __pyx_L45_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_totalGlobalMem_ValueError); __Pyx_GIVEREF(__pyx_kp_u_totalGlobalMem_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_totalGlobalMem_ValueError)) __PYX_ERR(0, 7209, __pyx_L45_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7209, __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/cudart.pyx":7206 * except ValueError: * str_list += ['luidDeviceNodeMask : '] * 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/cudart.pyx":7210 * except ValueError: * str_list += ['totalGlobalMem : '] * 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/cudart.pyx":7211 * str_list += ['totalGlobalMem : '] * try: * str_list += ['sharedMemPerBlock : ' + str(self.sharedMemPerBlock)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['sharedMemPerBlock : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_sharedMemPerBlock_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7211, __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, 7211, __pyx_L51_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_sharedMemPerBlock, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7211, __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, 7211, __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)) __PYX_ERR(0, 7211, __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, 7211, __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/cudart.pyx":7210 * except ValueError: * str_list += ['totalGlobalMem : '] * 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/cudart.pyx":7212 * try: * str_list += ['sharedMemPerBlock : ' + str(self.sharedMemPerBlock)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['sharedMemPerBlock : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7212, __pyx_L53_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7213 * str_list += ['sharedMemPerBlock : ' + str(self.sharedMemPerBlock)] * except ValueError: * str_list += ['sharedMemPerBlock : '] # <<<<<<<<<<<<<< * try: * str_list += ['regsPerBlock : ' + str(self.regsPerBlock)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7213, __pyx_L53_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_sharedMemPerBlock_ValueError); __Pyx_GIVEREF(__pyx_kp_u_sharedMemPerBlock_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_sharedMemPerBlock_ValueError)) __PYX_ERR(0, 7213, __pyx_L53_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7213, __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/cudart.pyx":7210 * except ValueError: * str_list += ['totalGlobalMem : '] * 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/cudart.pyx":7214 * except ValueError: * str_list += ['sharedMemPerBlock : '] * 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/cudart.pyx":7215 * str_list += ['sharedMemPerBlock : '] * try: * str_list += ['regsPerBlock : ' + str(self.regsPerBlock)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['regsPerBlock : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_regsPerBlock_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7215, __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, 7215, __pyx_L59_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_regsPerBlock, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7215, __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, 7215, __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)) __PYX_ERR(0, 7215, __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, 7215, __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/cudart.pyx":7214 * except ValueError: * str_list += ['sharedMemPerBlock : '] * 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/cudart.pyx":7216 * try: * str_list += ['regsPerBlock : ' + str(self.regsPerBlock)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['regsPerBlock : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7216, __pyx_L61_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7217 * str_list += ['regsPerBlock : ' + str(self.regsPerBlock)] * except ValueError: * str_list += ['regsPerBlock : '] # <<<<<<<<<<<<<< * try: * str_list += ['warpSize : ' + str(self.warpSize)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7217, __pyx_L61_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_regsPerBlock_ValueError); __Pyx_GIVEREF(__pyx_kp_u_regsPerBlock_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_regsPerBlock_ValueError)) __PYX_ERR(0, 7217, __pyx_L61_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7217, __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/cudart.pyx":7214 * except ValueError: * str_list += ['sharedMemPerBlock : '] * 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/cudart.pyx":7218 * except ValueError: * str_list += ['regsPerBlock : '] * 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/cudart.pyx":7219 * str_list += ['regsPerBlock : '] * try: * str_list += ['warpSize : ' + str(self.warpSize)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['warpSize : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_warpSize_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7219, __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, 7219, __pyx_L67_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_warpSize, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7219, __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, 7219, __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)) __PYX_ERR(0, 7219, __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, 7219, __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/cudart.pyx":7218 * except ValueError: * str_list += ['regsPerBlock : '] * 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/cudart.pyx":7220 * try: * str_list += ['warpSize : ' + str(self.warpSize)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['warpSize : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7220, __pyx_L69_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7221 * str_list += ['warpSize : ' + str(self.warpSize)] * except ValueError: * str_list += ['warpSize : '] # <<<<<<<<<<<<<< * try: * str_list += ['memPitch : ' + str(self.memPitch)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7221, __pyx_L69_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_warpSize_ValueError); __Pyx_GIVEREF(__pyx_kp_u_warpSize_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_warpSize_ValueError)) __PYX_ERR(0, 7221, __pyx_L69_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7221, __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/cudart.pyx":7218 * except ValueError: * str_list += ['regsPerBlock : '] * 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/cudart.pyx":7222 * except ValueError: * str_list += ['warpSize : '] * 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/cudart.pyx":7223 * str_list += ['warpSize : '] * try: * str_list += ['memPitch : ' + str(self.memPitch)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['memPitch : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_memPitch_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7223, __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, 7223, __pyx_L75_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_memPitch, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7223, __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, 7223, __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)) __PYX_ERR(0, 7223, __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, 7223, __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/cudart.pyx":7222 * except ValueError: * str_list += ['warpSize : '] * 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/cudart.pyx":7224 * try: * str_list += ['memPitch : ' + str(self.memPitch)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['memPitch : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7224, __pyx_L77_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7225 * str_list += ['memPitch : ' + str(self.memPitch)] * except ValueError: * str_list += ['memPitch : '] # <<<<<<<<<<<<<< * try: * str_list += ['maxThreadsPerBlock : ' + str(self.maxThreadsPerBlock)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7225, __pyx_L77_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_memPitch_ValueError); __Pyx_GIVEREF(__pyx_kp_u_memPitch_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_memPitch_ValueError)) __PYX_ERR(0, 7225, __pyx_L77_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7225, __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/cudart.pyx":7222 * except ValueError: * str_list += ['warpSize : '] * 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/cudart.pyx":7226 * except ValueError: * str_list += ['memPitch : '] * 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/cudart.pyx":7227 * str_list += ['memPitch : '] * try: * str_list += ['maxThreadsPerBlock : ' + str(self.maxThreadsPerBlock)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['maxThreadsPerBlock : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_maxThreadsPerBlock_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7227, __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, 7227, __pyx_L83_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_maxThreadsPerBlock, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7227, __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, 7227, __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)) __PYX_ERR(0, 7227, __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, 7227, __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/cudart.pyx":7226 * except ValueError: * str_list += ['memPitch : '] * 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/cudart.pyx":7228 * try: * str_list += ['maxThreadsPerBlock : ' + str(self.maxThreadsPerBlock)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['maxThreadsPerBlock : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7228, __pyx_L85_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7229 * str_list += ['maxThreadsPerBlock : ' + str(self.maxThreadsPerBlock)] * except ValueError: * str_list += ['maxThreadsPerBlock : '] # <<<<<<<<<<<<<< * try: * str_list += ['maxThreadsDim : ' + str(self.maxThreadsDim)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7229, __pyx_L85_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_maxThreadsPerBlock_ValueError); __Pyx_GIVEREF(__pyx_kp_u_maxThreadsPerBlock_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_maxThreadsPerBlock_ValueError)) __PYX_ERR(0, 7229, __pyx_L85_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7229, __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/cudart.pyx":7226 * except ValueError: * str_list += ['memPitch : '] * 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/cudart.pyx":7230 * except ValueError: * str_list += ['maxThreadsPerBlock : '] * 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/cudart.pyx":7231 * str_list += ['maxThreadsPerBlock : '] * try: * str_list += ['maxThreadsDim : ' + str(self.maxThreadsDim)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['maxThreadsDim : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_maxThreadsDim_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7231, __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, 7231, __pyx_L91_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_maxThreadsDim, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7231, __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, 7231, __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)) __PYX_ERR(0, 7231, __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, 7231, __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/cudart.pyx":7230 * except ValueError: * str_list += ['maxThreadsPerBlock : '] * 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/cudart.pyx":7232 * try: * str_list += ['maxThreadsDim : ' + str(self.maxThreadsDim)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['maxThreadsDim : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7232, __pyx_L93_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7233 * str_list += ['maxThreadsDim : ' + str(self.maxThreadsDim)] * except ValueError: * str_list += ['maxThreadsDim : '] # <<<<<<<<<<<<<< * try: * str_list += ['maxGridSize : ' + str(self.maxGridSize)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7233, __pyx_L93_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_maxThreadsDim_ValueError); __Pyx_GIVEREF(__pyx_kp_u_maxThreadsDim_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_maxThreadsDim_ValueError)) __PYX_ERR(0, 7233, __pyx_L93_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7233, __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/cudart.pyx":7230 * except ValueError: * str_list += ['maxThreadsPerBlock : '] * 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/cudart.pyx":7234 * except ValueError: * str_list += ['maxThreadsDim : '] * 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/cudart.pyx":7235 * str_list += ['maxThreadsDim : '] * try: * str_list += ['maxGridSize : ' + str(self.maxGridSize)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['maxGridSize : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_maxGridSize_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7235, __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, 7235, __pyx_L99_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_maxGridSize, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7235, __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, 7235, __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)) __PYX_ERR(0, 7235, __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, 7235, __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/cudart.pyx":7234 * except ValueError: * str_list += ['maxThreadsDim : '] * 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/cudart.pyx":7236 * try: * str_list += ['maxGridSize : ' + str(self.maxGridSize)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['maxGridSize : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7236, __pyx_L101_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7237 * str_list += ['maxGridSize : ' + str(self.maxGridSize)] * except ValueError: * str_list += ['maxGridSize : '] # <<<<<<<<<<<<<< * try: * str_list += ['clockRate : ' + str(self.clockRate)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7237, __pyx_L101_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_maxGridSize_ValueError); __Pyx_GIVEREF(__pyx_kp_u_maxGridSize_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_maxGridSize_ValueError)) __PYX_ERR(0, 7237, __pyx_L101_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7237, __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/cudart.pyx":7234 * except ValueError: * str_list += ['maxThreadsDim : '] * 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/cudart.pyx":7238 * except ValueError: * str_list += ['maxGridSize : '] * try: # <<<<<<<<<<<<<< * str_list += ['clockRate : ' + str(self.clockRate)] * except ValueError: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_5); /*try:*/ { /* "cuda/cudart.pyx":7239 * str_list += ['maxGridSize : '] * try: * str_list += ['clockRate : ' + str(self.clockRate)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['clockRate : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_clockRate_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7239, __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, 7239, __pyx_L107_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_clockRate, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7239, __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, 7239, __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)) __PYX_ERR(0, 7239, __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, 7239, __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/cudart.pyx":7238 * except ValueError: * str_list += ['maxGridSize : '] * try: # <<<<<<<<<<<<<< * str_list += ['clockRate : ' + str(self.clockRate)] * except ValueError: */ } __Pyx_XDECREF(__pyx_t_3); __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/cudart.pyx":7240 * try: * str_list += ['clockRate : ' + str(self.clockRate)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['clockRate : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7240, __pyx_L109_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7241 * str_list += ['clockRate : ' + str(self.clockRate)] * except ValueError: * str_list += ['clockRate : '] # <<<<<<<<<<<<<< * try: * str_list += ['totalConstMem : ' + str(self.totalConstMem)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7241, __pyx_L109_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_clockRate_ValueError); __Pyx_GIVEREF(__pyx_kp_u_clockRate_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_clockRate_ValueError)) __PYX_ERR(0, 7241, __pyx_L109_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7241, __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/cudart.pyx":7238 * except ValueError: * str_list += ['maxGridSize : '] * try: # <<<<<<<<<<<<<< * str_list += ['clockRate : ' + str(self.clockRate)] * 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/cudart.pyx":7242 * except ValueError: * str_list += ['clockRate : '] * try: # <<<<<<<<<<<<<< * str_list += ['totalConstMem : ' + str(self.totalConstMem)] * 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/cudart.pyx":7243 * str_list += ['clockRate : '] * try: * str_list += ['totalConstMem : ' + str(self.totalConstMem)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['totalConstMem : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_totalConstMem_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7243, __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, 7243, __pyx_L115_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_totalConstMem, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7243, __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, 7243, __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)) __PYX_ERR(0, 7243, __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, 7243, __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/cudart.pyx":7242 * except ValueError: * str_list += ['clockRate : '] * try: # <<<<<<<<<<<<<< * str_list += ['totalConstMem : ' + str(self.totalConstMem)] * 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/cudart.pyx":7244 * try: * str_list += ['totalConstMem : ' + str(self.totalConstMem)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['totalConstMem : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7244, __pyx_L117_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7245 * str_list += ['totalConstMem : ' + str(self.totalConstMem)] * except ValueError: * str_list += ['totalConstMem : '] # <<<<<<<<<<<<<< * try: * str_list += ['major : ' + str(self.major)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7245, __pyx_L117_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_totalConstMem_ValueError); __Pyx_GIVEREF(__pyx_kp_u_totalConstMem_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_totalConstMem_ValueError)) __PYX_ERR(0, 7245, __pyx_L117_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7245, __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/cudart.pyx":7242 * except ValueError: * str_list += ['clockRate : '] * try: # <<<<<<<<<<<<<< * str_list += ['totalConstMem : ' + str(self.totalConstMem)] * 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/cudart.pyx":7246 * except ValueError: * str_list += ['totalConstMem : '] * try: # <<<<<<<<<<<<<< * str_list += ['major : ' + str(self.major)] * except ValueError: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_5); /*try:*/ { /* "cuda/cudart.pyx":7247 * str_list += ['totalConstMem : '] * try: * str_list += ['major : ' + str(self.major)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['major : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_major_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7247, __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, 7247, __pyx_L123_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_major, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7247, __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, 7247, __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)) __PYX_ERR(0, 7247, __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, 7247, __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/cudart.pyx":7246 * except ValueError: * str_list += ['totalConstMem : '] * try: # <<<<<<<<<<<<<< * str_list += ['major : ' + str(self.major)] * except ValueError: */ } __Pyx_XDECREF(__pyx_t_3); __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/cudart.pyx":7248 * try: * str_list += ['major : ' + str(self.major)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['major : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7248, __pyx_L125_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7249 * str_list += ['major : ' + str(self.major)] * except ValueError: * str_list += ['major : '] # <<<<<<<<<<<<<< * try: * str_list += ['minor : ' + str(self.minor)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7249, __pyx_L125_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_major_ValueError); __Pyx_GIVEREF(__pyx_kp_u_major_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_major_ValueError)) __PYX_ERR(0, 7249, __pyx_L125_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7249, __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/cudart.pyx":7246 * except ValueError: * str_list += ['totalConstMem : '] * try: # <<<<<<<<<<<<<< * str_list += ['major : ' + str(self.major)] * 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/cudart.pyx":7250 * except ValueError: * str_list += ['major : '] * try: # <<<<<<<<<<<<<< * str_list += ['minor : ' + str(self.minor)] * 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/cudart.pyx":7251 * str_list += ['major : '] * try: * str_list += ['minor : ' + str(self.minor)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['minor : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_minor_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7251, __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, 7251, __pyx_L131_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_minor, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7251, __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, 7251, __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)) __PYX_ERR(0, 7251, __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, 7251, __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/cudart.pyx":7250 * except ValueError: * str_list += ['major : '] * try: # <<<<<<<<<<<<<< * str_list += ['minor : ' + str(self.minor)] * 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/cudart.pyx":7252 * try: * str_list += ['minor : ' + str(self.minor)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['minor : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7252, __pyx_L133_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7253 * str_list += ['minor : ' + str(self.minor)] * except ValueError: * str_list += ['minor : '] # <<<<<<<<<<<<<< * try: * str_list += ['textureAlignment : ' + str(self.textureAlignment)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7253, __pyx_L133_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_minor_ValueError); __Pyx_GIVEREF(__pyx_kp_u_minor_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_minor_ValueError)) __PYX_ERR(0, 7253, __pyx_L133_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7253, __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/cudart.pyx":7250 * except ValueError: * str_list += ['major : '] * try: # <<<<<<<<<<<<<< * str_list += ['minor : ' + str(self.minor)] * 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/cudart.pyx":7254 * except ValueError: * str_list += ['minor : '] * try: # <<<<<<<<<<<<<< * str_list += ['textureAlignment : ' + str(self.textureAlignment)] * except ValueError: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_5); /*try:*/ { /* "cuda/cudart.pyx":7255 * str_list += ['minor : '] * try: * str_list += ['textureAlignment : ' + str(self.textureAlignment)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['textureAlignment : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_textureAlignment_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7255, __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, 7255, __pyx_L139_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_textureAlignment, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7255, __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, 7255, __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)) __PYX_ERR(0, 7255, __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, 7255, __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/cudart.pyx":7254 * except ValueError: * str_list += ['minor : '] * try: # <<<<<<<<<<<<<< * str_list += ['textureAlignment : ' + str(self.textureAlignment)] * except ValueError: */ } __Pyx_XDECREF(__pyx_t_3); __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/cudart.pyx":7256 * try: * str_list += ['textureAlignment : ' + str(self.textureAlignment)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['textureAlignment : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7256, __pyx_L141_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7257 * str_list += ['textureAlignment : ' + str(self.textureAlignment)] * except ValueError: * str_list += ['textureAlignment : '] # <<<<<<<<<<<<<< * try: * str_list += ['texturePitchAlignment : ' + str(self.texturePitchAlignment)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7257, __pyx_L141_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_textureAlignment_ValueError); __Pyx_GIVEREF(__pyx_kp_u_textureAlignment_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_textureAlignment_ValueError)) __PYX_ERR(0, 7257, __pyx_L141_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7257, __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/cudart.pyx":7254 * except ValueError: * str_list += ['minor : '] * try: # <<<<<<<<<<<<<< * str_list += ['textureAlignment : ' + str(self.textureAlignment)] * 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/cudart.pyx":7258 * except ValueError: * str_list += ['textureAlignment : '] * try: # <<<<<<<<<<<<<< * str_list += ['texturePitchAlignment : ' + str(self.texturePitchAlignment)] * 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/cudart.pyx":7259 * str_list += ['textureAlignment : '] * try: * str_list += ['texturePitchAlignment : ' + str(self.texturePitchAlignment)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['texturePitchAlignment : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_texturePitchAlignment_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7259, __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, 7259, __pyx_L147_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_texturePitchAlignment, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7259, __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, 7259, __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)) __PYX_ERR(0, 7259, __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, 7259, __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/cudart.pyx":7258 * except ValueError: * str_list += ['textureAlignment : '] * try: # <<<<<<<<<<<<<< * str_list += ['texturePitchAlignment : ' + str(self.texturePitchAlignment)] * 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/cudart.pyx":7260 * try: * str_list += ['texturePitchAlignment : ' + str(self.texturePitchAlignment)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['texturePitchAlignment : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7260, __pyx_L149_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7261 * str_list += ['texturePitchAlignment : ' + str(self.texturePitchAlignment)] * except ValueError: * str_list += ['texturePitchAlignment : '] # <<<<<<<<<<<<<< * try: * str_list += ['deviceOverlap : ' + str(self.deviceOverlap)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7261, __pyx_L149_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_texturePitchAlignment_ValueError); __Pyx_GIVEREF(__pyx_kp_u_texturePitchAlignment_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_texturePitchAlignment_ValueError)) __PYX_ERR(0, 7261, __pyx_L149_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7261, __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/cudart.pyx":7258 * except ValueError: * str_list += ['textureAlignment : '] * try: # <<<<<<<<<<<<<< * str_list += ['texturePitchAlignment : ' + str(self.texturePitchAlignment)] * 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/cudart.pyx":7262 * except ValueError: * str_list += ['texturePitchAlignment : '] * try: # <<<<<<<<<<<<<< * str_list += ['deviceOverlap : ' + str(self.deviceOverlap)] * except ValueError: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_5); /*try:*/ { /* "cuda/cudart.pyx":7263 * str_list += ['texturePitchAlignment : '] * try: * str_list += ['deviceOverlap : ' + str(self.deviceOverlap)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['deviceOverlap : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_deviceOverlap_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7263, __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, 7263, __pyx_L155_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_deviceOverlap, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7263, __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, 7263, __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)) __PYX_ERR(0, 7263, __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, 7263, __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/cudart.pyx":7262 * except ValueError: * str_list += ['texturePitchAlignment : '] * try: # <<<<<<<<<<<<<< * str_list += ['deviceOverlap : ' + str(self.deviceOverlap)] * except ValueError: */ } __Pyx_XDECREF(__pyx_t_3); __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/cudart.pyx":7264 * try: * str_list += ['deviceOverlap : ' + str(self.deviceOverlap)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['deviceOverlap : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7264, __pyx_L157_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7265 * str_list += ['deviceOverlap : ' + str(self.deviceOverlap)] * except ValueError: * str_list += ['deviceOverlap : '] # <<<<<<<<<<<<<< * try: * str_list += ['multiProcessorCount : ' + str(self.multiProcessorCount)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7265, __pyx_L157_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_deviceOverlap_ValueError); __Pyx_GIVEREF(__pyx_kp_u_deviceOverlap_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_deviceOverlap_ValueError)) __PYX_ERR(0, 7265, __pyx_L157_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7265, __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/cudart.pyx":7262 * except ValueError: * str_list += ['texturePitchAlignment : '] * try: # <<<<<<<<<<<<<< * str_list += ['deviceOverlap : ' + str(self.deviceOverlap)] * 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/cudart.pyx":7266 * except ValueError: * str_list += ['deviceOverlap : '] * 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/cudart.pyx":7267 * str_list += ['deviceOverlap : '] * try: * str_list += ['multiProcessorCount : ' + str(self.multiProcessorCount)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['multiProcessorCount : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_multiProcessorCount_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7267, __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, 7267, __pyx_L163_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_multiProcessorCount, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7267, __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, 7267, __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)) __PYX_ERR(0, 7267, __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, 7267, __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/cudart.pyx":7266 * except ValueError: * str_list += ['deviceOverlap : '] * 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_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/cudart.pyx":7268 * try: * str_list += ['multiProcessorCount : ' + str(self.multiProcessorCount)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['multiProcessorCount : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7268, __pyx_L165_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7269 * str_list += ['multiProcessorCount : ' + str(self.multiProcessorCount)] * except ValueError: * str_list += ['multiProcessorCount : '] # <<<<<<<<<<<<<< * try: * str_list += ['kernelExecTimeoutEnabled : ' + str(self.kernelExecTimeoutEnabled)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7269, __pyx_L165_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_multiProcessorCount_ValueError); __Pyx_GIVEREF(__pyx_kp_u_multiProcessorCount_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_multiProcessorCount_ValueError)) __PYX_ERR(0, 7269, __pyx_L165_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7269, __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/cudart.pyx":7266 * except ValueError: * str_list += ['deviceOverlap : '] * try: # <<<<<<<<<<<<<< * str_list += ['multiProcessorCount : ' + str(self.multiProcessorCount)] * 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/cudart.pyx":7270 * except ValueError: * str_list += ['multiProcessorCount : '] * try: # <<<<<<<<<<<<<< * str_list += ['kernelExecTimeoutEnabled : ' + str(self.kernelExecTimeoutEnabled)] * except ValueError: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_5); /*try:*/ { /* "cuda/cudart.pyx":7271 * str_list += ['multiProcessorCount : '] * try: * str_list += ['kernelExecTimeoutEnabled : ' + str(self.kernelExecTimeoutEnabled)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['kernelExecTimeoutEnabled : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_kernelExecTimeoutEnabled_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7271, __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, 7271, __pyx_L171_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_kernelExecTimeoutEnabled, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7271, __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, 7271, __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)) __PYX_ERR(0, 7271, __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, 7271, __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/cudart.pyx":7270 * except ValueError: * str_list += ['multiProcessorCount : '] * try: # <<<<<<<<<<<<<< * str_list += ['kernelExecTimeoutEnabled : ' + str(self.kernelExecTimeoutEnabled)] * except ValueError: */ } __Pyx_XDECREF(__pyx_t_3); __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/cudart.pyx":7272 * try: * str_list += ['kernelExecTimeoutEnabled : ' + str(self.kernelExecTimeoutEnabled)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['kernelExecTimeoutEnabled : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7272, __pyx_L173_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7273 * str_list += ['kernelExecTimeoutEnabled : ' + str(self.kernelExecTimeoutEnabled)] * except ValueError: * str_list += ['kernelExecTimeoutEnabled : '] # <<<<<<<<<<<<<< * try: * str_list += ['integrated : ' + str(self.integrated)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7273, __pyx_L173_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_kernelExecTimeoutEnabled_ValueEr); __Pyx_GIVEREF(__pyx_kp_u_kernelExecTimeoutEnabled_ValueEr); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_kernelExecTimeoutEnabled_ValueEr)) __PYX_ERR(0, 7273, __pyx_L173_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7273, __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/cudart.pyx":7270 * except ValueError: * str_list += ['multiProcessorCount : '] * try: # <<<<<<<<<<<<<< * str_list += ['kernelExecTimeoutEnabled : ' + str(self.kernelExecTimeoutEnabled)] * 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/cudart.pyx":7274 * except ValueError: * str_list += ['kernelExecTimeoutEnabled : '] * try: # <<<<<<<<<<<<<< * str_list += ['integrated : ' + str(self.integrated)] * 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/cudart.pyx":7275 * str_list += ['kernelExecTimeoutEnabled : '] * try: * str_list += ['integrated : ' + str(self.integrated)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['integrated : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_integrated_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7275, __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, 7275, __pyx_L179_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_integrated, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7275, __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, 7275, __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)) __PYX_ERR(0, 7275, __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, 7275, __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/cudart.pyx":7274 * except ValueError: * str_list += ['kernelExecTimeoutEnabled : '] * try: # <<<<<<<<<<<<<< * str_list += ['integrated : ' + str(self.integrated)] * 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/cudart.pyx":7276 * try: * str_list += ['integrated : ' + str(self.integrated)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['integrated : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7276, __pyx_L181_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7277 * str_list += ['integrated : ' + str(self.integrated)] * except ValueError: * str_list += ['integrated : '] # <<<<<<<<<<<<<< * try: * str_list += ['canMapHostMemory : ' + str(self.canMapHostMemory)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7277, __pyx_L181_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_integrated_ValueError); __Pyx_GIVEREF(__pyx_kp_u_integrated_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_integrated_ValueError)) __PYX_ERR(0, 7277, __pyx_L181_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7277, __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/cudart.pyx":7274 * except ValueError: * str_list += ['kernelExecTimeoutEnabled : '] * try: # <<<<<<<<<<<<<< * str_list += ['integrated : ' + str(self.integrated)] * 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/cudart.pyx":7278 * except ValueError: * str_list += ['integrated : '] * try: # <<<<<<<<<<<<<< * str_list += ['canMapHostMemory : ' + str(self.canMapHostMemory)] * except ValueError: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_5); /*try:*/ { /* "cuda/cudart.pyx":7279 * str_list += ['integrated : '] * try: * str_list += ['canMapHostMemory : ' + str(self.canMapHostMemory)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['canMapHostMemory : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_canMapHostMemory_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7279, __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, 7279, __pyx_L187_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_canMapHostMemory, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7279, __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, 7279, __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)) __PYX_ERR(0, 7279, __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, 7279, __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/cudart.pyx":7278 * except ValueError: * str_list += ['integrated : '] * try: # <<<<<<<<<<<<<< * str_list += ['canMapHostMemory : ' + str(self.canMapHostMemory)] * except ValueError: */ } __Pyx_XDECREF(__pyx_t_3); __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/cudart.pyx":7280 * try: * str_list += ['canMapHostMemory : ' + str(self.canMapHostMemory)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['canMapHostMemory : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7280, __pyx_L189_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7281 * str_list += ['canMapHostMemory : ' + str(self.canMapHostMemory)] * except ValueError: * str_list += ['canMapHostMemory : '] # <<<<<<<<<<<<<< * try: * str_list += ['computeMode : ' + str(self.computeMode)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7281, __pyx_L189_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_canMapHostMemory_ValueError); __Pyx_GIVEREF(__pyx_kp_u_canMapHostMemory_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_canMapHostMemory_ValueError)) __PYX_ERR(0, 7281, __pyx_L189_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7281, __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/cudart.pyx":7278 * except ValueError: * str_list += ['integrated : '] * try: # <<<<<<<<<<<<<< * str_list += ['canMapHostMemory : ' + str(self.canMapHostMemory)] * 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/cudart.pyx":7282 * except ValueError: * str_list += ['canMapHostMemory : '] * try: # <<<<<<<<<<<<<< * str_list += ['computeMode : ' + str(self.computeMode)] * 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/cudart.pyx":7283 * str_list += ['canMapHostMemory : '] * try: * str_list += ['computeMode : ' + str(self.computeMode)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['computeMode : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_computeMode_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7283, __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, 7283, __pyx_L195_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_computeMode, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7283, __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, 7283, __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)) __PYX_ERR(0, 7283, __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, 7283, __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/cudart.pyx":7282 * except ValueError: * str_list += ['canMapHostMemory : '] * try: # <<<<<<<<<<<<<< * str_list += ['computeMode : ' + str(self.computeMode)] * 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/cudart.pyx":7284 * try: * str_list += ['computeMode : ' + str(self.computeMode)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['computeMode : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7284, __pyx_L197_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7285 * str_list += ['computeMode : ' + str(self.computeMode)] * except ValueError: * str_list += ['computeMode : '] # <<<<<<<<<<<<<< * try: * str_list += ['maxTexture1D : ' + str(self.maxTexture1D)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7285, __pyx_L197_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_computeMode_ValueError); __Pyx_GIVEREF(__pyx_kp_u_computeMode_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_computeMode_ValueError)) __PYX_ERR(0, 7285, __pyx_L197_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7285, __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/cudart.pyx":7282 * except ValueError: * str_list += ['canMapHostMemory : '] * try: # <<<<<<<<<<<<<< * str_list += ['computeMode : ' + str(self.computeMode)] * 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/cudart.pyx":7286 * except ValueError: * str_list += ['computeMode : '] * 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/cudart.pyx":7287 * str_list += ['computeMode : '] * try: * str_list += ['maxTexture1D : ' + str(self.maxTexture1D)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['maxTexture1D : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_maxTexture1D_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7287, __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, 7287, __pyx_L203_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_maxTexture1D, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7287, __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, 7287, __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)) __PYX_ERR(0, 7287, __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, 7287, __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/cudart.pyx":7286 * except ValueError: * str_list += ['computeMode : '] * 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_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/cudart.pyx":7288 * try: * str_list += ['maxTexture1D : ' + str(self.maxTexture1D)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['maxTexture1D : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7288, __pyx_L205_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7289 * str_list += ['maxTexture1D : ' + str(self.maxTexture1D)] * except ValueError: * str_list += ['maxTexture1D : '] # <<<<<<<<<<<<<< * try: * str_list += ['maxTexture1DMipmap : ' + str(self.maxTexture1DMipmap)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7289, __pyx_L205_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_maxTexture1D_ValueError); __Pyx_GIVEREF(__pyx_kp_u_maxTexture1D_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_maxTexture1D_ValueError)) __PYX_ERR(0, 7289, __pyx_L205_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7289, __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/cudart.pyx":7286 * except ValueError: * str_list += ['computeMode : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxTexture1D : ' + str(self.maxTexture1D)] * 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/cudart.pyx":7290 * except ValueError: * str_list += ['maxTexture1D : '] * 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/cudart.pyx":7291 * str_list += ['maxTexture1D : '] * try: * str_list += ['maxTexture1DMipmap : ' + str(self.maxTexture1DMipmap)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['maxTexture1DMipmap : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_maxTexture1DMipmap_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7291, __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, 7291, __pyx_L211_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_maxTexture1DMipmap, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7291, __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, 7291, __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)) __PYX_ERR(0, 7291, __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, 7291, __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/cudart.pyx":7290 * except ValueError: * str_list += ['maxTexture1D : '] * 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_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/cudart.pyx":7292 * try: * str_list += ['maxTexture1DMipmap : ' + str(self.maxTexture1DMipmap)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['maxTexture1DMipmap : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7292, __pyx_L213_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7293 * str_list += ['maxTexture1DMipmap : ' + str(self.maxTexture1DMipmap)] * except ValueError: * str_list += ['maxTexture1DMipmap : '] # <<<<<<<<<<<<<< * try: * str_list += ['maxTexture1DLinear : ' + str(self.maxTexture1DLinear)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7293, __pyx_L213_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_maxTexture1DMipmap_ValueError); __Pyx_GIVEREF(__pyx_kp_u_maxTexture1DMipmap_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_maxTexture1DMipmap_ValueError)) __PYX_ERR(0, 7293, __pyx_L213_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7293, __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/cudart.pyx":7290 * except ValueError: * str_list += ['maxTexture1D : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxTexture1DMipmap : ' + str(self.maxTexture1DMipmap)] * 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/cudart.pyx":7294 * except ValueError: * str_list += ['maxTexture1DMipmap : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxTexture1DLinear : ' + str(self.maxTexture1DLinear)] * except ValueError: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_5); /*try:*/ { /* "cuda/cudart.pyx":7295 * str_list += ['maxTexture1DMipmap : '] * try: * str_list += ['maxTexture1DLinear : ' + str(self.maxTexture1DLinear)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['maxTexture1DLinear : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_maxTexture1DLinear_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7295, __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, 7295, __pyx_L219_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_maxTexture1DLinear, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7295, __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, 7295, __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)) __PYX_ERR(0, 7295, __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, 7295, __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/cudart.pyx":7294 * except ValueError: * str_list += ['maxTexture1DMipmap : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxTexture1DLinear : ' + str(self.maxTexture1DLinear)] * except ValueError: */ } __Pyx_XDECREF(__pyx_t_3); __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/cudart.pyx":7296 * try: * str_list += ['maxTexture1DLinear : ' + str(self.maxTexture1DLinear)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['maxTexture1DLinear : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7296, __pyx_L221_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7297 * str_list += ['maxTexture1DLinear : ' + str(self.maxTexture1DLinear)] * except ValueError: * str_list += ['maxTexture1DLinear : '] # <<<<<<<<<<<<<< * try: * str_list += ['maxTexture2D : ' + str(self.maxTexture2D)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7297, __pyx_L221_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_maxTexture1DLinear_ValueError); __Pyx_GIVEREF(__pyx_kp_u_maxTexture1DLinear_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_maxTexture1DLinear_ValueError)) __PYX_ERR(0, 7297, __pyx_L221_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7297, __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/cudart.pyx":7294 * except ValueError: * str_list += ['maxTexture1DMipmap : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxTexture1DLinear : ' + str(self.maxTexture1DLinear)] * 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/cudart.pyx":7298 * except ValueError: * str_list += ['maxTexture1DLinear : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxTexture2D : ' + str(self.maxTexture2D)] * 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/cudart.pyx":7299 * str_list += ['maxTexture1DLinear : '] * try: * str_list += ['maxTexture2D : ' + str(self.maxTexture2D)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['maxTexture2D : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_maxTexture2D_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7299, __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, 7299, __pyx_L227_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_maxTexture2D, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7299, __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, 7299, __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)) __PYX_ERR(0, 7299, __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, 7299, __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/cudart.pyx":7298 * except ValueError: * str_list += ['maxTexture1DLinear : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxTexture2D : ' + str(self.maxTexture2D)] * 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/cudart.pyx":7300 * try: * str_list += ['maxTexture2D : ' + str(self.maxTexture2D)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['maxTexture2D : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7300, __pyx_L229_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7301 * str_list += ['maxTexture2D : ' + str(self.maxTexture2D)] * except ValueError: * str_list += ['maxTexture2D : '] # <<<<<<<<<<<<<< * try: * str_list += ['maxTexture2DMipmap : ' + str(self.maxTexture2DMipmap)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7301, __pyx_L229_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_maxTexture2D_ValueError); __Pyx_GIVEREF(__pyx_kp_u_maxTexture2D_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_maxTexture2D_ValueError)) __PYX_ERR(0, 7301, __pyx_L229_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7301, __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/cudart.pyx":7298 * except ValueError: * str_list += ['maxTexture1DLinear : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxTexture2D : ' + str(self.maxTexture2D)] * 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/cudart.pyx":7302 * except ValueError: * str_list += ['maxTexture2D : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxTexture2DMipmap : ' + str(self.maxTexture2DMipmap)] * except ValueError: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_5); /*try:*/ { /* "cuda/cudart.pyx":7303 * str_list += ['maxTexture2D : '] * try: * str_list += ['maxTexture2DMipmap : ' + str(self.maxTexture2DMipmap)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['maxTexture2DMipmap : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_maxTexture2DMipmap_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7303, __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, 7303, __pyx_L235_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_maxTexture2DMipmap, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7303, __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, 7303, __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)) __PYX_ERR(0, 7303, __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, 7303, __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/cudart.pyx":7302 * except ValueError: * str_list += ['maxTexture2D : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxTexture2DMipmap : ' + str(self.maxTexture2DMipmap)] * except ValueError: */ } __Pyx_XDECREF(__pyx_t_3); __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/cudart.pyx":7304 * try: * str_list += ['maxTexture2DMipmap : ' + str(self.maxTexture2DMipmap)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['maxTexture2DMipmap : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7304, __pyx_L237_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7305 * str_list += ['maxTexture2DMipmap : ' + str(self.maxTexture2DMipmap)] * except ValueError: * str_list += ['maxTexture2DMipmap : '] # <<<<<<<<<<<<<< * try: * str_list += ['maxTexture2DLinear : ' + str(self.maxTexture2DLinear)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7305, __pyx_L237_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_maxTexture2DMipmap_ValueError); __Pyx_GIVEREF(__pyx_kp_u_maxTexture2DMipmap_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_maxTexture2DMipmap_ValueError)) __PYX_ERR(0, 7305, __pyx_L237_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7305, __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/cudart.pyx":7302 * except ValueError: * str_list += ['maxTexture2D : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxTexture2DMipmap : ' + str(self.maxTexture2DMipmap)] * 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/cudart.pyx":7306 * except ValueError: * str_list += ['maxTexture2DMipmap : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxTexture2DLinear : ' + str(self.maxTexture2DLinear)] * 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/cudart.pyx":7307 * str_list += ['maxTexture2DMipmap : '] * try: * str_list += ['maxTexture2DLinear : ' + str(self.maxTexture2DLinear)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['maxTexture2DLinear : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_maxTexture2DLinear_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7307, __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, 7307, __pyx_L243_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_maxTexture2DLinear, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7307, __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, 7307, __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)) __PYX_ERR(0, 7307, __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, 7307, __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/cudart.pyx":7306 * except ValueError: * str_list += ['maxTexture2DMipmap : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxTexture2DLinear : ' + str(self.maxTexture2DLinear)] * 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/cudart.pyx":7308 * try: * str_list += ['maxTexture2DLinear : ' + str(self.maxTexture2DLinear)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['maxTexture2DLinear : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7308, __pyx_L245_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7309 * str_list += ['maxTexture2DLinear : ' + str(self.maxTexture2DLinear)] * except ValueError: * str_list += ['maxTexture2DLinear : '] # <<<<<<<<<<<<<< * try: * str_list += ['maxTexture2DGather : ' + str(self.maxTexture2DGather)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7309, __pyx_L245_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_maxTexture2DLinear_ValueError); __Pyx_GIVEREF(__pyx_kp_u_maxTexture2DLinear_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_maxTexture2DLinear_ValueError)) __PYX_ERR(0, 7309, __pyx_L245_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7309, __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/cudart.pyx":7306 * except ValueError: * str_list += ['maxTexture2DMipmap : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxTexture2DLinear : ' + str(self.maxTexture2DLinear)] * 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/cudart.pyx":7310 * except ValueError: * str_list += ['maxTexture2DLinear : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxTexture2DGather : ' + str(self.maxTexture2DGather)] * except ValueError: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_5); /*try:*/ { /* "cuda/cudart.pyx":7311 * str_list += ['maxTexture2DLinear : '] * try: * str_list += ['maxTexture2DGather : ' + str(self.maxTexture2DGather)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['maxTexture2DGather : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_maxTexture2DGather_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7311, __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, 7311, __pyx_L251_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_maxTexture2DGather, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7311, __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, 7311, __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)) __PYX_ERR(0, 7311, __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, 7311, __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/cudart.pyx":7310 * except ValueError: * str_list += ['maxTexture2DLinear : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxTexture2DGather : ' + str(self.maxTexture2DGather)] * except ValueError: */ } __Pyx_XDECREF(__pyx_t_3); __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/cudart.pyx":7312 * try: * str_list += ['maxTexture2DGather : ' + str(self.maxTexture2DGather)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['maxTexture2DGather : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7312, __pyx_L253_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7313 * str_list += ['maxTexture2DGather : ' + str(self.maxTexture2DGather)] * except ValueError: * str_list += ['maxTexture2DGather : '] # <<<<<<<<<<<<<< * try: * str_list += ['maxTexture3D : ' + str(self.maxTexture3D)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7313, __pyx_L253_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_maxTexture2DGather_ValueError); __Pyx_GIVEREF(__pyx_kp_u_maxTexture2DGather_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_maxTexture2DGather_ValueError)) __PYX_ERR(0, 7313, __pyx_L253_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7313, __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/cudart.pyx":7310 * except ValueError: * str_list += ['maxTexture2DLinear : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxTexture2DGather : ' + str(self.maxTexture2DGather)] * 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/cudart.pyx":7314 * except ValueError: * str_list += ['maxTexture2DGather : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxTexture3D : ' + str(self.maxTexture3D)] * 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/cudart.pyx":7315 * str_list += ['maxTexture2DGather : '] * try: * str_list += ['maxTexture3D : ' + str(self.maxTexture3D)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['maxTexture3D : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_maxTexture3D_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7315, __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, 7315, __pyx_L259_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_maxTexture3D, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7315, __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, 7315, __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)) __PYX_ERR(0, 7315, __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, 7315, __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/cudart.pyx":7314 * except ValueError: * str_list += ['maxTexture2DGather : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxTexture3D : ' + str(self.maxTexture3D)] * 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/cudart.pyx":7316 * try: * str_list += ['maxTexture3D : ' + str(self.maxTexture3D)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['maxTexture3D : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7316, __pyx_L261_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7317 * str_list += ['maxTexture3D : ' + str(self.maxTexture3D)] * except ValueError: * str_list += ['maxTexture3D : '] # <<<<<<<<<<<<<< * try: * str_list += ['maxTexture3DAlt : ' + str(self.maxTexture3DAlt)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7317, __pyx_L261_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_maxTexture3D_ValueError); __Pyx_GIVEREF(__pyx_kp_u_maxTexture3D_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_maxTexture3D_ValueError)) __PYX_ERR(0, 7317, __pyx_L261_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7317, __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/cudart.pyx":7314 * except ValueError: * str_list += ['maxTexture2DGather : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxTexture3D : ' + str(self.maxTexture3D)] * 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/cudart.pyx":7318 * except ValueError: * str_list += ['maxTexture3D : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxTexture3DAlt : ' + str(self.maxTexture3DAlt)] * except ValueError: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_5); /*try:*/ { /* "cuda/cudart.pyx":7319 * str_list += ['maxTexture3D : '] * try: * str_list += ['maxTexture3DAlt : ' + str(self.maxTexture3DAlt)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['maxTexture3DAlt : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_maxTexture3DAlt_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7319, __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, 7319, __pyx_L267_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_maxTexture3DAlt, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7319, __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, 7319, __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)) __PYX_ERR(0, 7319, __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, 7319, __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/cudart.pyx":7318 * except ValueError: * str_list += ['maxTexture3D : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxTexture3DAlt : ' + str(self.maxTexture3DAlt)] * except ValueError: */ } __Pyx_XDECREF(__pyx_t_3); __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/cudart.pyx":7320 * try: * str_list += ['maxTexture3DAlt : ' + str(self.maxTexture3DAlt)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['maxTexture3DAlt : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7320, __pyx_L269_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7321 * str_list += ['maxTexture3DAlt : ' + str(self.maxTexture3DAlt)] * except ValueError: * str_list += ['maxTexture3DAlt : '] # <<<<<<<<<<<<<< * try: * str_list += ['maxTextureCubemap : ' + str(self.maxTextureCubemap)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7321, __pyx_L269_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_maxTexture3DAlt_ValueError); __Pyx_GIVEREF(__pyx_kp_u_maxTexture3DAlt_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_maxTexture3DAlt_ValueError)) __PYX_ERR(0, 7321, __pyx_L269_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7321, __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/cudart.pyx":7318 * except ValueError: * str_list += ['maxTexture3D : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxTexture3DAlt : ' + str(self.maxTexture3DAlt)] * 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/cudart.pyx":7322 * except ValueError: * str_list += ['maxTexture3DAlt : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxTextureCubemap : ' + str(self.maxTextureCubemap)] * 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/cudart.pyx":7323 * str_list += ['maxTexture3DAlt : '] * try: * str_list += ['maxTextureCubemap : ' + str(self.maxTextureCubemap)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['maxTextureCubemap : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_maxTextureCubemap_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7323, __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, 7323, __pyx_L275_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_maxTextureCubemap, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7323, __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, 7323, __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)) __PYX_ERR(0, 7323, __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, 7323, __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/cudart.pyx":7322 * except ValueError: * str_list += ['maxTexture3DAlt : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxTextureCubemap : ' + str(self.maxTextureCubemap)] * 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/cudart.pyx":7324 * try: * str_list += ['maxTextureCubemap : ' + str(self.maxTextureCubemap)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['maxTextureCubemap : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7324, __pyx_L277_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7325 * str_list += ['maxTextureCubemap : ' + str(self.maxTextureCubemap)] * except ValueError: * str_list += ['maxTextureCubemap : '] # <<<<<<<<<<<<<< * try: * str_list += ['maxTexture1DLayered : ' + str(self.maxTexture1DLayered)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7325, __pyx_L277_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_maxTextureCubemap_ValueError); __Pyx_GIVEREF(__pyx_kp_u_maxTextureCubemap_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_maxTextureCubemap_ValueError)) __PYX_ERR(0, 7325, __pyx_L277_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7325, __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/cudart.pyx":7322 * except ValueError: * str_list += ['maxTexture3DAlt : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxTextureCubemap : ' + str(self.maxTextureCubemap)] * 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/cudart.pyx":7326 * except ValueError: * str_list += ['maxTextureCubemap : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxTexture1DLayered : ' + str(self.maxTexture1DLayered)] * except ValueError: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_5); /*try:*/ { /* "cuda/cudart.pyx":7327 * str_list += ['maxTextureCubemap : '] * try: * str_list += ['maxTexture1DLayered : ' + str(self.maxTexture1DLayered)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['maxTexture1DLayered : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_maxTexture1DLayered_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7327, __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, 7327, __pyx_L283_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_maxTexture1DLayered, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7327, __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, 7327, __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)) __PYX_ERR(0, 7327, __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, 7327, __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/cudart.pyx":7326 * except ValueError: * str_list += ['maxTextureCubemap : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxTexture1DLayered : ' + str(self.maxTexture1DLayered)] * except ValueError: */ } __Pyx_XDECREF(__pyx_t_3); __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/cudart.pyx":7328 * try: * str_list += ['maxTexture1DLayered : ' + str(self.maxTexture1DLayered)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['maxTexture1DLayered : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7328, __pyx_L285_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7329 * str_list += ['maxTexture1DLayered : ' + str(self.maxTexture1DLayered)] * except ValueError: * str_list += ['maxTexture1DLayered : '] # <<<<<<<<<<<<<< * try: * str_list += ['maxTexture2DLayered : ' + str(self.maxTexture2DLayered)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7329, __pyx_L285_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_maxTexture1DLayered_ValueError); __Pyx_GIVEREF(__pyx_kp_u_maxTexture1DLayered_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_maxTexture1DLayered_ValueError)) __PYX_ERR(0, 7329, __pyx_L285_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7329, __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/cudart.pyx":7326 * except ValueError: * str_list += ['maxTextureCubemap : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxTexture1DLayered : ' + str(self.maxTexture1DLayered)] * 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/cudart.pyx":7330 * except ValueError: * str_list += ['maxTexture1DLayered : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxTexture2DLayered : ' + str(self.maxTexture2DLayered)] * 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/cudart.pyx":7331 * str_list += ['maxTexture1DLayered : '] * try: * str_list += ['maxTexture2DLayered : ' + str(self.maxTexture2DLayered)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['maxTexture2DLayered : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_maxTexture2DLayered_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7331, __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, 7331, __pyx_L291_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_maxTexture2DLayered, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7331, __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, 7331, __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)) __PYX_ERR(0, 7331, __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, 7331, __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/cudart.pyx":7330 * except ValueError: * str_list += ['maxTexture1DLayered : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxTexture2DLayered : ' + str(self.maxTexture2DLayered)] * 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/cudart.pyx":7332 * try: * str_list += ['maxTexture2DLayered : ' + str(self.maxTexture2DLayered)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['maxTexture2DLayered : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7332, __pyx_L293_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7333 * str_list += ['maxTexture2DLayered : ' + str(self.maxTexture2DLayered)] * except ValueError: * str_list += ['maxTexture2DLayered : '] # <<<<<<<<<<<<<< * try: * str_list += ['maxTextureCubemapLayered : ' + str(self.maxTextureCubemapLayered)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7333, __pyx_L293_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_maxTexture2DLayered_ValueError); __Pyx_GIVEREF(__pyx_kp_u_maxTexture2DLayered_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_maxTexture2DLayered_ValueError)) __PYX_ERR(0, 7333, __pyx_L293_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7333, __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/cudart.pyx":7330 * except ValueError: * str_list += ['maxTexture1DLayered : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxTexture2DLayered : ' + str(self.maxTexture2DLayered)] * 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/cudart.pyx":7334 * except ValueError: * str_list += ['maxTexture2DLayered : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxTextureCubemapLayered : ' + str(self.maxTextureCubemapLayered)] * except ValueError: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_5); /*try:*/ { /* "cuda/cudart.pyx":7335 * str_list += ['maxTexture2DLayered : '] * try: * str_list += ['maxTextureCubemapLayered : ' + str(self.maxTextureCubemapLayered)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['maxTextureCubemapLayered : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_maxTextureCubemapLayered_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7335, __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, 7335, __pyx_L299_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_maxTextureCubemapLayered, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7335, __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, 7335, __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)) __PYX_ERR(0, 7335, __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, 7335, __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/cudart.pyx":7334 * except ValueError: * str_list += ['maxTexture2DLayered : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxTextureCubemapLayered : ' + str(self.maxTextureCubemapLayered)] * except ValueError: */ } __Pyx_XDECREF(__pyx_t_3); __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/cudart.pyx":7336 * try: * str_list += ['maxTextureCubemapLayered : ' + str(self.maxTextureCubemapLayered)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['maxTextureCubemapLayered : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7336, __pyx_L301_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7337 * str_list += ['maxTextureCubemapLayered : ' + str(self.maxTextureCubemapLayered)] * except ValueError: * str_list += ['maxTextureCubemapLayered : '] # <<<<<<<<<<<<<< * try: * str_list += ['maxSurface1D : ' + str(self.maxSurface1D)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7337, __pyx_L301_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_maxTextureCubemapLayered_ValueEr); __Pyx_GIVEREF(__pyx_kp_u_maxTextureCubemapLayered_ValueEr); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_maxTextureCubemapLayered_ValueEr)) __PYX_ERR(0, 7337, __pyx_L301_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7337, __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/cudart.pyx":7334 * except ValueError: * str_list += ['maxTexture2DLayered : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxTextureCubemapLayered : ' + str(self.maxTextureCubemapLayered)] * 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/cudart.pyx":7338 * except ValueError: * str_list += ['maxTextureCubemapLayered : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxSurface1D : ' + str(self.maxSurface1D)] * 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/cudart.pyx":7339 * str_list += ['maxTextureCubemapLayered : '] * try: * str_list += ['maxSurface1D : ' + str(self.maxSurface1D)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['maxSurface1D : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_maxSurface1D_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7339, __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, 7339, __pyx_L307_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_maxSurface1D, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7339, __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, 7339, __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)) __PYX_ERR(0, 7339, __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, 7339, __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/cudart.pyx":7338 * except ValueError: * str_list += ['maxTextureCubemapLayered : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxSurface1D : ' + str(self.maxSurface1D)] * 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/cudart.pyx":7340 * try: * str_list += ['maxSurface1D : ' + str(self.maxSurface1D)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['maxSurface1D : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7340, __pyx_L309_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7341 * str_list += ['maxSurface1D : ' + str(self.maxSurface1D)] * except ValueError: * str_list += ['maxSurface1D : '] # <<<<<<<<<<<<<< * try: * str_list += ['maxSurface2D : ' + str(self.maxSurface2D)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7341, __pyx_L309_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_maxSurface1D_ValueError); __Pyx_GIVEREF(__pyx_kp_u_maxSurface1D_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_maxSurface1D_ValueError)) __PYX_ERR(0, 7341, __pyx_L309_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7341, __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/cudart.pyx":7338 * except ValueError: * str_list += ['maxTextureCubemapLayered : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxSurface1D : ' + str(self.maxSurface1D)] * 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/cudart.pyx":7342 * except ValueError: * str_list += ['maxSurface1D : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxSurface2D : ' + str(self.maxSurface2D)] * except ValueError: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_5); /*try:*/ { /* "cuda/cudart.pyx":7343 * str_list += ['maxSurface1D : '] * try: * str_list += ['maxSurface2D : ' + str(self.maxSurface2D)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['maxSurface2D : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_maxSurface2D_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7343, __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, 7343, __pyx_L315_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_maxSurface2D, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7343, __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, 7343, __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)) __PYX_ERR(0, 7343, __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, 7343, __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/cudart.pyx":7342 * except ValueError: * str_list += ['maxSurface1D : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxSurface2D : ' + str(self.maxSurface2D)] * except ValueError: */ } __Pyx_XDECREF(__pyx_t_3); __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/cudart.pyx":7344 * try: * str_list += ['maxSurface2D : ' + str(self.maxSurface2D)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['maxSurface2D : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7344, __pyx_L317_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7345 * str_list += ['maxSurface2D : ' + str(self.maxSurface2D)] * except ValueError: * str_list += ['maxSurface2D : '] # <<<<<<<<<<<<<< * try: * str_list += ['maxSurface3D : ' + str(self.maxSurface3D)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7345, __pyx_L317_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_maxSurface2D_ValueError); __Pyx_GIVEREF(__pyx_kp_u_maxSurface2D_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_maxSurface2D_ValueError)) __PYX_ERR(0, 7345, __pyx_L317_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7345, __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/cudart.pyx":7342 * except ValueError: * str_list += ['maxSurface1D : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxSurface2D : ' + str(self.maxSurface2D)] * 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/cudart.pyx":7346 * except ValueError: * str_list += ['maxSurface2D : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxSurface3D : ' + str(self.maxSurface3D)] * 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/cudart.pyx":7347 * str_list += ['maxSurface2D : '] * try: * str_list += ['maxSurface3D : ' + str(self.maxSurface3D)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['maxSurface3D : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_maxSurface3D_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7347, __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, 7347, __pyx_L323_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_maxSurface3D, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7347, __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, 7347, __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)) __PYX_ERR(0, 7347, __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, 7347, __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/cudart.pyx":7346 * except ValueError: * str_list += ['maxSurface2D : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxSurface3D : ' + str(self.maxSurface3D)] * 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/cudart.pyx":7348 * try: * str_list += ['maxSurface3D : ' + str(self.maxSurface3D)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['maxSurface3D : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7348, __pyx_L325_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7349 * str_list += ['maxSurface3D : ' + str(self.maxSurface3D)] * except ValueError: * str_list += ['maxSurface3D : '] # <<<<<<<<<<<<<< * try: * str_list += ['maxSurface1DLayered : ' + str(self.maxSurface1DLayered)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7349, __pyx_L325_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_maxSurface3D_ValueError); __Pyx_GIVEREF(__pyx_kp_u_maxSurface3D_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_maxSurface3D_ValueError)) __PYX_ERR(0, 7349, __pyx_L325_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7349, __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/cudart.pyx":7346 * except ValueError: * str_list += ['maxSurface2D : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxSurface3D : ' + str(self.maxSurface3D)] * 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/cudart.pyx":7350 * except ValueError: * str_list += ['maxSurface3D : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxSurface1DLayered : ' + str(self.maxSurface1DLayered)] * except ValueError: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_5); /*try:*/ { /* "cuda/cudart.pyx":7351 * str_list += ['maxSurface3D : '] * try: * str_list += ['maxSurface1DLayered : ' + str(self.maxSurface1DLayered)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['maxSurface1DLayered : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_maxSurface1DLayered_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7351, __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, 7351, __pyx_L331_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_maxSurface1DLayered, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7351, __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, 7351, __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)) __PYX_ERR(0, 7351, __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, 7351, __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/cudart.pyx":7350 * except ValueError: * str_list += ['maxSurface3D : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxSurface1DLayered : ' + str(self.maxSurface1DLayered)] * except ValueError: */ } __Pyx_XDECREF(__pyx_t_3); __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/cudart.pyx":7352 * try: * str_list += ['maxSurface1DLayered : ' + str(self.maxSurface1DLayered)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['maxSurface1DLayered : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7352, __pyx_L333_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7353 * str_list += ['maxSurface1DLayered : ' + str(self.maxSurface1DLayered)] * except ValueError: * str_list += ['maxSurface1DLayered : '] # <<<<<<<<<<<<<< * try: * str_list += ['maxSurface2DLayered : ' + str(self.maxSurface2DLayered)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7353, __pyx_L333_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_maxSurface1DLayered_ValueError); __Pyx_GIVEREF(__pyx_kp_u_maxSurface1DLayered_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_maxSurface1DLayered_ValueError)) __PYX_ERR(0, 7353, __pyx_L333_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7353, __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/cudart.pyx":7350 * except ValueError: * str_list += ['maxSurface3D : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxSurface1DLayered : ' + str(self.maxSurface1DLayered)] * 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/cudart.pyx":7354 * except ValueError: * str_list += ['maxSurface1DLayered : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxSurface2DLayered : ' + str(self.maxSurface2DLayered)] * 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/cudart.pyx":7355 * str_list += ['maxSurface1DLayered : '] * try: * str_list += ['maxSurface2DLayered : ' + str(self.maxSurface2DLayered)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['maxSurface2DLayered : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_maxSurface2DLayered_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7355, __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, 7355, __pyx_L339_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_maxSurface2DLayered, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7355, __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, 7355, __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)) __PYX_ERR(0, 7355, __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, 7355, __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/cudart.pyx":7354 * except ValueError: * str_list += ['maxSurface1DLayered : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxSurface2DLayered : ' + str(self.maxSurface2DLayered)] * 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/cudart.pyx":7356 * try: * str_list += ['maxSurface2DLayered : ' + str(self.maxSurface2DLayered)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['maxSurface2DLayered : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7356, __pyx_L341_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7357 * str_list += ['maxSurface2DLayered : ' + str(self.maxSurface2DLayered)] * except ValueError: * str_list += ['maxSurface2DLayered : '] # <<<<<<<<<<<<<< * try: * str_list += ['maxSurfaceCubemap : ' + str(self.maxSurfaceCubemap)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7357, __pyx_L341_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_maxSurface2DLayered_ValueError); __Pyx_GIVEREF(__pyx_kp_u_maxSurface2DLayered_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_maxSurface2DLayered_ValueError)) __PYX_ERR(0, 7357, __pyx_L341_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7357, __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/cudart.pyx":7354 * except ValueError: * str_list += ['maxSurface1DLayered : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxSurface2DLayered : ' + str(self.maxSurface2DLayered)] * 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/cudart.pyx":7358 * except ValueError: * str_list += ['maxSurface2DLayered : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxSurfaceCubemap : ' + str(self.maxSurfaceCubemap)] * except ValueError: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_5); /*try:*/ { /* "cuda/cudart.pyx":7359 * str_list += ['maxSurface2DLayered : '] * try: * str_list += ['maxSurfaceCubemap : ' + str(self.maxSurfaceCubemap)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['maxSurfaceCubemap : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_maxSurfaceCubemap_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7359, __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, 7359, __pyx_L347_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_maxSurfaceCubemap, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7359, __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, 7359, __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)) __PYX_ERR(0, 7359, __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, 7359, __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/cudart.pyx":7358 * except ValueError: * str_list += ['maxSurface2DLayered : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxSurfaceCubemap : ' + str(self.maxSurfaceCubemap)] * except ValueError: */ } __Pyx_XDECREF(__pyx_t_3); __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/cudart.pyx":7360 * try: * str_list += ['maxSurfaceCubemap : ' + str(self.maxSurfaceCubemap)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['maxSurfaceCubemap : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7360, __pyx_L349_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7361 * str_list += ['maxSurfaceCubemap : ' + str(self.maxSurfaceCubemap)] * except ValueError: * str_list += ['maxSurfaceCubemap : '] # <<<<<<<<<<<<<< * try: * str_list += ['maxSurfaceCubemapLayered : ' + str(self.maxSurfaceCubemapLayered)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7361, __pyx_L349_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_maxSurfaceCubemap_ValueError); __Pyx_GIVEREF(__pyx_kp_u_maxSurfaceCubemap_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_maxSurfaceCubemap_ValueError)) __PYX_ERR(0, 7361, __pyx_L349_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7361, __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/cudart.pyx":7358 * except ValueError: * str_list += ['maxSurface2DLayered : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxSurfaceCubemap : ' + str(self.maxSurfaceCubemap)] * 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/cudart.pyx":7362 * except ValueError: * str_list += ['maxSurfaceCubemap : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxSurfaceCubemapLayered : ' + str(self.maxSurfaceCubemapLayered)] * 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/cudart.pyx":7363 * str_list += ['maxSurfaceCubemap : '] * try: * str_list += ['maxSurfaceCubemapLayered : ' + str(self.maxSurfaceCubemapLayered)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['maxSurfaceCubemapLayered : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_maxSurfaceCubemapLayered_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7363, __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, 7363, __pyx_L355_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_maxSurfaceCubemapLayered, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7363, __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, 7363, __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)) __PYX_ERR(0, 7363, __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, 7363, __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/cudart.pyx":7362 * except ValueError: * str_list += ['maxSurfaceCubemap : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxSurfaceCubemapLayered : ' + str(self.maxSurfaceCubemapLayered)] * 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/cudart.pyx":7364 * try: * str_list += ['maxSurfaceCubemapLayered : ' + str(self.maxSurfaceCubemapLayered)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['maxSurfaceCubemapLayered : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7364, __pyx_L357_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7365 * str_list += ['maxSurfaceCubemapLayered : ' + str(self.maxSurfaceCubemapLayered)] * except ValueError: * str_list += ['maxSurfaceCubemapLayered : '] # <<<<<<<<<<<<<< * try: * str_list += ['surfaceAlignment : ' + str(self.surfaceAlignment)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7365, __pyx_L357_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_maxSurfaceCubemapLayered_ValueEr); __Pyx_GIVEREF(__pyx_kp_u_maxSurfaceCubemapLayered_ValueEr); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_maxSurfaceCubemapLayered_ValueEr)) __PYX_ERR(0, 7365, __pyx_L357_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7365, __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/cudart.pyx":7362 * except ValueError: * str_list += ['maxSurfaceCubemap : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxSurfaceCubemapLayered : ' + str(self.maxSurfaceCubemapLayered)] * 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/cudart.pyx":7366 * except ValueError: * str_list += ['maxSurfaceCubemapLayered : '] * try: # <<<<<<<<<<<<<< * str_list += ['surfaceAlignment : ' + str(self.surfaceAlignment)] * except ValueError: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_5); /*try:*/ { /* "cuda/cudart.pyx":7367 * str_list += ['maxSurfaceCubemapLayered : '] * try: * str_list += ['surfaceAlignment : ' + str(self.surfaceAlignment)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['surfaceAlignment : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_surfaceAlignment_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7367, __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, 7367, __pyx_L363_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_surfaceAlignment, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7367, __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, 7367, __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)) __PYX_ERR(0, 7367, __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, 7367, __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/cudart.pyx":7366 * except ValueError: * str_list += ['maxSurfaceCubemapLayered : '] * try: # <<<<<<<<<<<<<< * str_list += ['surfaceAlignment : ' + str(self.surfaceAlignment)] * except ValueError: */ } __Pyx_XDECREF(__pyx_t_3); __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/cudart.pyx":7368 * try: * str_list += ['surfaceAlignment : ' + str(self.surfaceAlignment)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['surfaceAlignment : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7368, __pyx_L365_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7369 * str_list += ['surfaceAlignment : ' + str(self.surfaceAlignment)] * except ValueError: * str_list += ['surfaceAlignment : '] # <<<<<<<<<<<<<< * try: * str_list += ['concurrentKernels : ' + str(self.concurrentKernels)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7369, __pyx_L365_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_surfaceAlignment_ValueError); __Pyx_GIVEREF(__pyx_kp_u_surfaceAlignment_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_surfaceAlignment_ValueError)) __PYX_ERR(0, 7369, __pyx_L365_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7369, __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/cudart.pyx":7366 * except ValueError: * str_list += ['maxSurfaceCubemapLayered : '] * try: # <<<<<<<<<<<<<< * str_list += ['surfaceAlignment : ' + str(self.surfaceAlignment)] * 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/cudart.pyx":7370 * except ValueError: * str_list += ['surfaceAlignment : '] * try: # <<<<<<<<<<<<<< * str_list += ['concurrentKernels : ' + str(self.concurrentKernels)] * 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/cudart.pyx":7371 * str_list += ['surfaceAlignment : '] * try: * str_list += ['concurrentKernels : ' + str(self.concurrentKernels)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['concurrentKernels : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_concurrentKernels_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7371, __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, 7371, __pyx_L371_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_concurrentKernels, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7371, __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, 7371, __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)) __PYX_ERR(0, 7371, __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, 7371, __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/cudart.pyx":7370 * except ValueError: * str_list += ['surfaceAlignment : '] * try: # <<<<<<<<<<<<<< * str_list += ['concurrentKernels : ' + str(self.concurrentKernels)] * 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/cudart.pyx":7372 * try: * str_list += ['concurrentKernels : ' + str(self.concurrentKernels)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['concurrentKernels : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7372, __pyx_L373_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7373 * str_list += ['concurrentKernels : ' + str(self.concurrentKernels)] * except ValueError: * str_list += ['concurrentKernels : '] # <<<<<<<<<<<<<< * try: * str_list += ['ECCEnabled : ' + str(self.ECCEnabled)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7373, __pyx_L373_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_concurrentKernels_ValueError); __Pyx_GIVEREF(__pyx_kp_u_concurrentKernels_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_concurrentKernels_ValueError)) __PYX_ERR(0, 7373, __pyx_L373_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7373, __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/cudart.pyx":7370 * except ValueError: * str_list += ['surfaceAlignment : '] * try: # <<<<<<<<<<<<<< * str_list += ['concurrentKernels : ' + str(self.concurrentKernels)] * 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/cudart.pyx":7374 * except ValueError: * str_list += ['concurrentKernels : '] * try: # <<<<<<<<<<<<<< * str_list += ['ECCEnabled : ' + str(self.ECCEnabled)] * except ValueError: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_5); /*try:*/ { /* "cuda/cudart.pyx":7375 * str_list += ['concurrentKernels : '] * try: * str_list += ['ECCEnabled : ' + str(self.ECCEnabled)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['ECCEnabled : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ECCEnabled_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7375, __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, 7375, __pyx_L379_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_ECCEnabled, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7375, __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, 7375, __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)) __PYX_ERR(0, 7375, __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, 7375, __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/cudart.pyx":7374 * except ValueError: * str_list += ['concurrentKernels : '] * try: # <<<<<<<<<<<<<< * str_list += ['ECCEnabled : ' + str(self.ECCEnabled)] * except ValueError: */ } __Pyx_XDECREF(__pyx_t_3); __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/cudart.pyx":7376 * try: * str_list += ['ECCEnabled : ' + str(self.ECCEnabled)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['ECCEnabled : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7376, __pyx_L381_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7377 * str_list += ['ECCEnabled : ' + str(self.ECCEnabled)] * except ValueError: * str_list += ['ECCEnabled : '] # <<<<<<<<<<<<<< * try: * str_list += ['pciBusID : ' + str(self.pciBusID)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7377, __pyx_L381_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_ECCEnabled_ValueError); __Pyx_GIVEREF(__pyx_kp_u_ECCEnabled_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_ECCEnabled_ValueError)) __PYX_ERR(0, 7377, __pyx_L381_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7377, __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/cudart.pyx":7374 * except ValueError: * str_list += ['concurrentKernels : '] * try: # <<<<<<<<<<<<<< * str_list += ['ECCEnabled : ' + str(self.ECCEnabled)] * 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/cudart.pyx":7378 * except ValueError: * str_list += ['ECCEnabled : '] * try: # <<<<<<<<<<<<<< * str_list += ['pciBusID : ' + str(self.pciBusID)] * 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/cudart.pyx":7379 * str_list += ['ECCEnabled : '] * try: * str_list += ['pciBusID : ' + str(self.pciBusID)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['pciBusID : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_pciBusID_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7379, __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, 7379, __pyx_L387_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_pciBusID, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7379, __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, 7379, __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)) __PYX_ERR(0, 7379, __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, 7379, __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/cudart.pyx":7378 * except ValueError: * str_list += ['ECCEnabled : '] * try: # <<<<<<<<<<<<<< * str_list += ['pciBusID : ' + str(self.pciBusID)] * 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/cudart.pyx":7380 * try: * str_list += ['pciBusID : ' + str(self.pciBusID)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['pciBusID : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7380, __pyx_L389_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7381 * str_list += ['pciBusID : ' + str(self.pciBusID)] * except ValueError: * str_list += ['pciBusID : '] # <<<<<<<<<<<<<< * try: * str_list += ['pciDeviceID : ' + str(self.pciDeviceID)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7381, __pyx_L389_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_pciBusID_ValueError); __Pyx_GIVEREF(__pyx_kp_u_pciBusID_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_pciBusID_ValueError)) __PYX_ERR(0, 7381, __pyx_L389_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7381, __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/cudart.pyx":7378 * except ValueError: * str_list += ['ECCEnabled : '] * try: # <<<<<<<<<<<<<< * str_list += ['pciBusID : ' + str(self.pciBusID)] * 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/cudart.pyx":7382 * except ValueError: * str_list += ['pciBusID : '] * try: # <<<<<<<<<<<<<< * str_list += ['pciDeviceID : ' + str(self.pciDeviceID)] * except ValueError: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_5); /*try:*/ { /* "cuda/cudart.pyx":7383 * str_list += ['pciBusID : '] * try: * str_list += ['pciDeviceID : ' + str(self.pciDeviceID)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['pciDeviceID : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_pciDeviceID_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7383, __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, 7383, __pyx_L395_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_pciDeviceID, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7383, __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, 7383, __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)) __PYX_ERR(0, 7383, __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, 7383, __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/cudart.pyx":7382 * except ValueError: * str_list += ['pciBusID : '] * try: # <<<<<<<<<<<<<< * str_list += ['pciDeviceID : ' + str(self.pciDeviceID)] * except ValueError: */ } __Pyx_XDECREF(__pyx_t_3); __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/cudart.pyx":7384 * try: * str_list += ['pciDeviceID : ' + str(self.pciDeviceID)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['pciDeviceID : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7384, __pyx_L397_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7385 * str_list += ['pciDeviceID : ' + str(self.pciDeviceID)] * except ValueError: * str_list += ['pciDeviceID : '] # <<<<<<<<<<<<<< * try: * str_list += ['pciDomainID : ' + str(self.pciDomainID)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7385, __pyx_L397_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_pciDeviceID_ValueError); __Pyx_GIVEREF(__pyx_kp_u_pciDeviceID_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_pciDeviceID_ValueError)) __PYX_ERR(0, 7385, __pyx_L397_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7385, __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/cudart.pyx":7382 * except ValueError: * str_list += ['pciBusID : '] * try: # <<<<<<<<<<<<<< * str_list += ['pciDeviceID : ' + str(self.pciDeviceID)] * 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/cudart.pyx":7386 * except ValueError: * str_list += ['pciDeviceID : '] * try: # <<<<<<<<<<<<<< * str_list += ['pciDomainID : ' + str(self.pciDomainID)] * 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/cudart.pyx":7387 * str_list += ['pciDeviceID : '] * try: * str_list += ['pciDomainID : ' + str(self.pciDomainID)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['pciDomainID : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_pciDomainID_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7387, __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, 7387, __pyx_L403_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_pciDomainID, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7387, __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, 7387, __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)) __PYX_ERR(0, 7387, __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, 7387, __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/cudart.pyx":7386 * except ValueError: * str_list += ['pciDeviceID : '] * try: # <<<<<<<<<<<<<< * str_list += ['pciDomainID : ' + str(self.pciDomainID)] * 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/cudart.pyx":7388 * try: * str_list += ['pciDomainID : ' + str(self.pciDomainID)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['pciDomainID : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7388, __pyx_L405_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7389 * str_list += ['pciDomainID : ' + str(self.pciDomainID)] * except ValueError: * str_list += ['pciDomainID : '] # <<<<<<<<<<<<<< * try: * str_list += ['tccDriver : ' + str(self.tccDriver)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7389, __pyx_L405_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_pciDomainID_ValueError); __Pyx_GIVEREF(__pyx_kp_u_pciDomainID_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_pciDomainID_ValueError)) __PYX_ERR(0, 7389, __pyx_L405_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7389, __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/cudart.pyx":7386 * except ValueError: * str_list += ['pciDeviceID : '] * try: # <<<<<<<<<<<<<< * str_list += ['pciDomainID : ' + str(self.pciDomainID)] * 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/cudart.pyx":7390 * except ValueError: * str_list += ['pciDomainID : '] * try: # <<<<<<<<<<<<<< * str_list += ['tccDriver : ' + str(self.tccDriver)] * except ValueError: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_5); /*try:*/ { /* "cuda/cudart.pyx":7391 * str_list += ['pciDomainID : '] * try: * str_list += ['tccDriver : ' + str(self.tccDriver)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['tccDriver : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_tccDriver_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7391, __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, 7391, __pyx_L411_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_tccDriver, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7391, __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, 7391, __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)) __PYX_ERR(0, 7391, __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, 7391, __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/cudart.pyx":7390 * except ValueError: * str_list += ['pciDomainID : '] * try: # <<<<<<<<<<<<<< * str_list += ['tccDriver : ' + str(self.tccDriver)] * except ValueError: */ } __Pyx_XDECREF(__pyx_t_3); __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/cudart.pyx":7392 * try: * str_list += ['tccDriver : ' + str(self.tccDriver)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['tccDriver : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7392, __pyx_L413_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7393 * str_list += ['tccDriver : ' + str(self.tccDriver)] * except ValueError: * str_list += ['tccDriver : '] # <<<<<<<<<<<<<< * try: * str_list += ['asyncEngineCount : ' + str(self.asyncEngineCount)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7393, __pyx_L413_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_tccDriver_ValueError); __Pyx_GIVEREF(__pyx_kp_u_tccDriver_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_tccDriver_ValueError)) __PYX_ERR(0, 7393, __pyx_L413_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7393, __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/cudart.pyx":7390 * except ValueError: * str_list += ['pciDomainID : '] * try: # <<<<<<<<<<<<<< * str_list += ['tccDriver : ' + str(self.tccDriver)] * 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/cudart.pyx":7394 * except ValueError: * str_list += ['tccDriver : '] * try: # <<<<<<<<<<<<<< * str_list += ['asyncEngineCount : ' + str(self.asyncEngineCount)] * 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/cudart.pyx":7395 * str_list += ['tccDriver : '] * try: * str_list += ['asyncEngineCount : ' + str(self.asyncEngineCount)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['asyncEngineCount : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_asyncEngineCount_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7395, __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, 7395, __pyx_L419_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_asyncEngineCount, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7395, __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, 7395, __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)) __PYX_ERR(0, 7395, __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, 7395, __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/cudart.pyx":7394 * except ValueError: * str_list += ['tccDriver : '] * try: # <<<<<<<<<<<<<< * str_list += ['asyncEngineCount : ' + str(self.asyncEngineCount)] * 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/cudart.pyx":7396 * try: * str_list += ['asyncEngineCount : ' + str(self.asyncEngineCount)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['asyncEngineCount : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7396, __pyx_L421_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7397 * str_list += ['asyncEngineCount : ' + str(self.asyncEngineCount)] * except ValueError: * str_list += ['asyncEngineCount : '] # <<<<<<<<<<<<<< * try: * str_list += ['unifiedAddressing : ' + str(self.unifiedAddressing)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7397, __pyx_L421_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_asyncEngineCount_ValueError); __Pyx_GIVEREF(__pyx_kp_u_asyncEngineCount_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_asyncEngineCount_ValueError)) __PYX_ERR(0, 7397, __pyx_L421_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7397, __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/cudart.pyx":7394 * except ValueError: * str_list += ['tccDriver : '] * try: # <<<<<<<<<<<<<< * str_list += ['asyncEngineCount : ' + str(self.asyncEngineCount)] * 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/cudart.pyx":7398 * except ValueError: * str_list += ['asyncEngineCount : '] * try: # <<<<<<<<<<<<<< * str_list += ['unifiedAddressing : ' + str(self.unifiedAddressing)] * except ValueError: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_5); /*try:*/ { /* "cuda/cudart.pyx":7399 * str_list += ['asyncEngineCount : '] * try: * str_list += ['unifiedAddressing : ' + str(self.unifiedAddressing)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['unifiedAddressing : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_unifiedAddressing_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7399, __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, 7399, __pyx_L427_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_unifiedAddressing, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7399, __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, 7399, __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)) __PYX_ERR(0, 7399, __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, 7399, __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/cudart.pyx":7398 * except ValueError: * str_list += ['asyncEngineCount : '] * try: # <<<<<<<<<<<<<< * str_list += ['unifiedAddressing : ' + str(self.unifiedAddressing)] * except ValueError: */ } __Pyx_XDECREF(__pyx_t_3); __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/cudart.pyx":7400 * try: * str_list += ['unifiedAddressing : ' + str(self.unifiedAddressing)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['unifiedAddressing : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7400, __pyx_L429_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7401 * str_list += ['unifiedAddressing : ' + str(self.unifiedAddressing)] * except ValueError: * str_list += ['unifiedAddressing : '] # <<<<<<<<<<<<<< * try: * str_list += ['memoryClockRate : ' + str(self.memoryClockRate)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7401, __pyx_L429_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_unifiedAddressing_ValueError); __Pyx_GIVEREF(__pyx_kp_u_unifiedAddressing_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_unifiedAddressing_ValueError)) __PYX_ERR(0, 7401, __pyx_L429_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7401, __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/cudart.pyx":7398 * except ValueError: * str_list += ['asyncEngineCount : '] * try: # <<<<<<<<<<<<<< * str_list += ['unifiedAddressing : ' + str(self.unifiedAddressing)] * 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/cudart.pyx":7402 * except ValueError: * str_list += ['unifiedAddressing : '] * try: # <<<<<<<<<<<<<< * str_list += ['memoryClockRate : ' + str(self.memoryClockRate)] * 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/cudart.pyx":7403 * str_list += ['unifiedAddressing : '] * try: * str_list += ['memoryClockRate : ' + str(self.memoryClockRate)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['memoryClockRate : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_memoryClockRate_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7403, __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, 7403, __pyx_L435_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_memoryClockRate, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7403, __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, 7403, __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)) __PYX_ERR(0, 7403, __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, 7403, __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/cudart.pyx":7402 * except ValueError: * str_list += ['unifiedAddressing : '] * try: # <<<<<<<<<<<<<< * str_list += ['memoryClockRate : ' + str(self.memoryClockRate)] * 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/cudart.pyx":7404 * try: * str_list += ['memoryClockRate : ' + str(self.memoryClockRate)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['memoryClockRate : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7404, __pyx_L437_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7405 * str_list += ['memoryClockRate : ' + str(self.memoryClockRate)] * except ValueError: * str_list += ['memoryClockRate : '] # <<<<<<<<<<<<<< * try: * str_list += ['memoryBusWidth : ' + str(self.memoryBusWidth)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7405, __pyx_L437_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_memoryClockRate_ValueError); __Pyx_GIVEREF(__pyx_kp_u_memoryClockRate_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_memoryClockRate_ValueError)) __PYX_ERR(0, 7405, __pyx_L437_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7405, __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/cudart.pyx":7402 * except ValueError: * str_list += ['unifiedAddressing : '] * try: # <<<<<<<<<<<<<< * str_list += ['memoryClockRate : ' + str(self.memoryClockRate)] * 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/cudart.pyx":7406 * except ValueError: * str_list += ['memoryClockRate : '] * 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/cudart.pyx":7407 * str_list += ['memoryClockRate : '] * try: * str_list += ['memoryBusWidth : ' + str(self.memoryBusWidth)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['memoryBusWidth : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_memoryBusWidth_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7407, __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, 7407, __pyx_L443_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_memoryBusWidth, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7407, __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, 7407, __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)) __PYX_ERR(0, 7407, __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, 7407, __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/cudart.pyx":7406 * except ValueError: * str_list += ['memoryClockRate : '] * 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_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/cudart.pyx":7408 * try: * str_list += ['memoryBusWidth : ' + str(self.memoryBusWidth)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['memoryBusWidth : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7408, __pyx_L445_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7409 * str_list += ['memoryBusWidth : ' + str(self.memoryBusWidth)] * except ValueError: * str_list += ['memoryBusWidth : '] # <<<<<<<<<<<<<< * try: * str_list += ['l2CacheSize : ' + str(self.l2CacheSize)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7409, __pyx_L445_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_memoryBusWidth_ValueError); __Pyx_GIVEREF(__pyx_kp_u_memoryBusWidth_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_memoryBusWidth_ValueError)) __PYX_ERR(0, 7409, __pyx_L445_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7409, __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/cudart.pyx":7406 * except ValueError: * str_list += ['memoryClockRate : '] * try: # <<<<<<<<<<<<<< * str_list += ['memoryBusWidth : ' + str(self.memoryBusWidth)] * 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/cudart.pyx":7410 * except ValueError: * str_list += ['memoryBusWidth : '] * 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/cudart.pyx":7411 * str_list += ['memoryBusWidth : '] * try: * str_list += ['l2CacheSize : ' + str(self.l2CacheSize)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['l2CacheSize : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_l2CacheSize_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7411, __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, 7411, __pyx_L451_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_l2CacheSize, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7411, __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, 7411, __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)) __PYX_ERR(0, 7411, __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, 7411, __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/cudart.pyx":7410 * except ValueError: * str_list += ['memoryBusWidth : '] * 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_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/cudart.pyx":7412 * try: * str_list += ['l2CacheSize : ' + str(self.l2CacheSize)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['l2CacheSize : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7412, __pyx_L453_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7413 * str_list += ['l2CacheSize : ' + str(self.l2CacheSize)] * except ValueError: * str_list += ['l2CacheSize : '] # <<<<<<<<<<<<<< * try: * str_list += ['persistingL2CacheMaxSize : ' + str(self.persistingL2CacheMaxSize)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7413, __pyx_L453_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_l2CacheSize_ValueError); __Pyx_GIVEREF(__pyx_kp_u_l2CacheSize_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_l2CacheSize_ValueError)) __PYX_ERR(0, 7413, __pyx_L453_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7413, __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/cudart.pyx":7410 * except ValueError: * str_list += ['memoryBusWidth : '] * try: # <<<<<<<<<<<<<< * str_list += ['l2CacheSize : ' + str(self.l2CacheSize)] * 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/cudart.pyx":7414 * except ValueError: * str_list += ['l2CacheSize : '] * 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/cudart.pyx":7415 * str_list += ['l2CacheSize : '] * try: * str_list += ['persistingL2CacheMaxSize : ' + str(self.persistingL2CacheMaxSize)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['persistingL2CacheMaxSize : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_persistingL2CacheMaxSize_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7415, __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, 7415, __pyx_L459_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_persistingL2CacheMaxSize, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7415, __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, 7415, __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)) __PYX_ERR(0, 7415, __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, 7415, __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/cudart.pyx":7414 * except ValueError: * str_list += ['l2CacheSize : '] * 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_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/cudart.pyx":7416 * try: * str_list += ['persistingL2CacheMaxSize : ' + str(self.persistingL2CacheMaxSize)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['persistingL2CacheMaxSize : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7416, __pyx_L461_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7417 * str_list += ['persistingL2CacheMaxSize : ' + str(self.persistingL2CacheMaxSize)] * except ValueError: * str_list += ['persistingL2CacheMaxSize : '] # <<<<<<<<<<<<<< * try: * str_list += ['maxThreadsPerMultiProcessor : ' + str(self.maxThreadsPerMultiProcessor)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7417, __pyx_L461_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_persistingL2CacheMaxSize_ValueEr); __Pyx_GIVEREF(__pyx_kp_u_persistingL2CacheMaxSize_ValueEr); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_persistingL2CacheMaxSize_ValueEr)) __PYX_ERR(0, 7417, __pyx_L461_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7417, __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/cudart.pyx":7414 * except ValueError: * str_list += ['l2CacheSize : '] * try: # <<<<<<<<<<<<<< * str_list += ['persistingL2CacheMaxSize : ' + str(self.persistingL2CacheMaxSize)] * 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/cudart.pyx":7418 * except ValueError: * str_list += ['persistingL2CacheMaxSize : '] * 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/cudart.pyx":7419 * str_list += ['persistingL2CacheMaxSize : '] * try: * str_list += ['maxThreadsPerMultiProcessor : ' + str(self.maxThreadsPerMultiProcessor)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['maxThreadsPerMultiProcessor : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_maxThreadsPerMultiProcessor_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7419, __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, 7419, __pyx_L467_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_maxThreadsPerMultiProcessor, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7419, __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, 7419, __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)) __PYX_ERR(0, 7419, __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, 7419, __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/cudart.pyx":7418 * except ValueError: * str_list += ['persistingL2CacheMaxSize : '] * 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_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/cudart.pyx":7420 * try: * str_list += ['maxThreadsPerMultiProcessor : ' + str(self.maxThreadsPerMultiProcessor)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['maxThreadsPerMultiProcessor : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7420, __pyx_L469_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7421 * str_list += ['maxThreadsPerMultiProcessor : ' + str(self.maxThreadsPerMultiProcessor)] * except ValueError: * str_list += ['maxThreadsPerMultiProcessor : '] # <<<<<<<<<<<<<< * try: * str_list += ['streamPrioritiesSupported : ' + str(self.streamPrioritiesSupported)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7421, __pyx_L469_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_maxThreadsPerMultiProcessor_Valu); __Pyx_GIVEREF(__pyx_kp_u_maxThreadsPerMultiProcessor_Valu); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_maxThreadsPerMultiProcessor_Valu)) __PYX_ERR(0, 7421, __pyx_L469_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7421, __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/cudart.pyx":7418 * except ValueError: * str_list += ['persistingL2CacheMaxSize : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxThreadsPerMultiProcessor : ' + str(self.maxThreadsPerMultiProcessor)] * 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/cudart.pyx":7422 * except ValueError: * str_list += ['maxThreadsPerMultiProcessor : '] * 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/cudart.pyx":7423 * str_list += ['maxThreadsPerMultiProcessor : '] * try: * str_list += ['streamPrioritiesSupported : ' + str(self.streamPrioritiesSupported)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['streamPrioritiesSupported : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_streamPrioritiesSupported_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7423, __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, 7423, __pyx_L475_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_streamPrioritiesSupported, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7423, __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, 7423, __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)) __PYX_ERR(0, 7423, __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, 7423, __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/cudart.pyx":7422 * except ValueError: * str_list += ['maxThreadsPerMultiProcessor : '] * 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_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/cudart.pyx":7424 * try: * str_list += ['streamPrioritiesSupported : ' + str(self.streamPrioritiesSupported)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['streamPrioritiesSupported : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7424, __pyx_L477_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7425 * str_list += ['streamPrioritiesSupported : ' + str(self.streamPrioritiesSupported)] * except ValueError: * str_list += ['streamPrioritiesSupported : '] # <<<<<<<<<<<<<< * try: * str_list += ['globalL1CacheSupported : ' + str(self.globalL1CacheSupported)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7425, __pyx_L477_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_streamPrioritiesSupported_ValueE); __Pyx_GIVEREF(__pyx_kp_u_streamPrioritiesSupported_ValueE); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_streamPrioritiesSupported_ValueE)) __PYX_ERR(0, 7425, __pyx_L477_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7425, __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/cudart.pyx":7422 * except ValueError: * str_list += ['maxThreadsPerMultiProcessor : '] * try: # <<<<<<<<<<<<<< * str_list += ['streamPrioritiesSupported : ' + str(self.streamPrioritiesSupported)] * 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/cudart.pyx":7426 * except ValueError: * str_list += ['streamPrioritiesSupported : '] * 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/cudart.pyx":7427 * str_list += ['streamPrioritiesSupported : '] * try: * str_list += ['globalL1CacheSupported : ' + str(self.globalL1CacheSupported)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['globalL1CacheSupported : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_globalL1CacheSupported_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7427, __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, 7427, __pyx_L483_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_globalL1CacheSupported, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7427, __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, 7427, __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)) __PYX_ERR(0, 7427, __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, 7427, __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/cudart.pyx":7426 * except ValueError: * str_list += ['streamPrioritiesSupported : '] * 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_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/cudart.pyx":7428 * try: * str_list += ['globalL1CacheSupported : ' + str(self.globalL1CacheSupported)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['globalL1CacheSupported : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7428, __pyx_L485_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7429 * str_list += ['globalL1CacheSupported : ' + str(self.globalL1CacheSupported)] * except ValueError: * str_list += ['globalL1CacheSupported : '] # <<<<<<<<<<<<<< * try: * str_list += ['localL1CacheSupported : ' + str(self.localL1CacheSupported)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7429, __pyx_L485_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_globalL1CacheSupported_ValueErro); __Pyx_GIVEREF(__pyx_kp_u_globalL1CacheSupported_ValueErro); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_globalL1CacheSupported_ValueErro)) __PYX_ERR(0, 7429, __pyx_L485_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7429, __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/cudart.pyx":7426 * except ValueError: * str_list += ['streamPrioritiesSupported : '] * try: # <<<<<<<<<<<<<< * str_list += ['globalL1CacheSupported : ' + str(self.globalL1CacheSupported)] * 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/cudart.pyx":7430 * except ValueError: * str_list += ['globalL1CacheSupported : '] * 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/cudart.pyx":7431 * str_list += ['globalL1CacheSupported : '] * try: * str_list += ['localL1CacheSupported : ' + str(self.localL1CacheSupported)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['localL1CacheSupported : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_localL1CacheSupported_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7431, __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, 7431, __pyx_L491_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_localL1CacheSupported, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7431, __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, 7431, __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)) __PYX_ERR(0, 7431, __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, 7431, __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/cudart.pyx":7430 * except ValueError: * str_list += ['globalL1CacheSupported : '] * 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_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/cudart.pyx":7432 * try: * str_list += ['localL1CacheSupported : ' + str(self.localL1CacheSupported)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['localL1CacheSupported : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7432, __pyx_L493_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7433 * str_list += ['localL1CacheSupported : ' + str(self.localL1CacheSupported)] * except ValueError: * str_list += ['localL1CacheSupported : '] # <<<<<<<<<<<<<< * try: * str_list += ['sharedMemPerMultiprocessor : ' + str(self.sharedMemPerMultiprocessor)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7433, __pyx_L493_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_localL1CacheSupported_ValueError); __Pyx_GIVEREF(__pyx_kp_u_localL1CacheSupported_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_localL1CacheSupported_ValueError)) __PYX_ERR(0, 7433, __pyx_L493_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7433, __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/cudart.pyx":7430 * except ValueError: * str_list += ['globalL1CacheSupported : '] * try: # <<<<<<<<<<<<<< * str_list += ['localL1CacheSupported : ' + str(self.localL1CacheSupported)] * 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/cudart.pyx":7434 * except ValueError: * str_list += ['localL1CacheSupported : '] * 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/cudart.pyx":7435 * str_list += ['localL1CacheSupported : '] * try: * str_list += ['sharedMemPerMultiprocessor : ' + str(self.sharedMemPerMultiprocessor)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['sharedMemPerMultiprocessor : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_sharedMemPerMultiprocessor_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7435, __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, 7435, __pyx_L499_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_sharedMemPerMultiprocessor, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7435, __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, 7435, __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)) __PYX_ERR(0, 7435, __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, 7435, __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/cudart.pyx":7434 * except ValueError: * str_list += ['localL1CacheSupported : '] * 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_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/cudart.pyx":7436 * try: * str_list += ['sharedMemPerMultiprocessor : ' + str(self.sharedMemPerMultiprocessor)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['sharedMemPerMultiprocessor : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7436, __pyx_L501_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7437 * str_list += ['sharedMemPerMultiprocessor : ' + str(self.sharedMemPerMultiprocessor)] * except ValueError: * str_list += ['sharedMemPerMultiprocessor : '] # <<<<<<<<<<<<<< * try: * str_list += ['regsPerMultiprocessor : ' + str(self.regsPerMultiprocessor)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7437, __pyx_L501_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_sharedMemPerMultiprocessor_Value); __Pyx_GIVEREF(__pyx_kp_u_sharedMemPerMultiprocessor_Value); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_sharedMemPerMultiprocessor_Value)) __PYX_ERR(0, 7437, __pyx_L501_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7437, __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/cudart.pyx":7434 * except ValueError: * str_list += ['localL1CacheSupported : '] * try: # <<<<<<<<<<<<<< * str_list += ['sharedMemPerMultiprocessor : ' + str(self.sharedMemPerMultiprocessor)] * 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/cudart.pyx":7438 * except ValueError: * str_list += ['sharedMemPerMultiprocessor : '] * 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/cudart.pyx":7439 * str_list += ['sharedMemPerMultiprocessor : '] * try: * str_list += ['regsPerMultiprocessor : ' + str(self.regsPerMultiprocessor)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['regsPerMultiprocessor : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_regsPerMultiprocessor_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7439, __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, 7439, __pyx_L507_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_regsPerMultiprocessor, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7439, __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, 7439, __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)) __PYX_ERR(0, 7439, __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, 7439, __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/cudart.pyx":7438 * except ValueError: * str_list += ['sharedMemPerMultiprocessor : '] * 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_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/cudart.pyx":7440 * try: * str_list += ['regsPerMultiprocessor : ' + str(self.regsPerMultiprocessor)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['regsPerMultiprocessor : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7440, __pyx_L509_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7441 * str_list += ['regsPerMultiprocessor : ' + str(self.regsPerMultiprocessor)] * except ValueError: * str_list += ['regsPerMultiprocessor : '] # <<<<<<<<<<<<<< * try: * str_list += ['managedMemory : ' + str(self.managedMemory)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7441, __pyx_L509_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_regsPerMultiprocessor_ValueError); __Pyx_GIVEREF(__pyx_kp_u_regsPerMultiprocessor_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_regsPerMultiprocessor_ValueError)) __PYX_ERR(0, 7441, __pyx_L509_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7441, __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/cudart.pyx":7438 * except ValueError: * str_list += ['sharedMemPerMultiprocessor : '] * try: # <<<<<<<<<<<<<< * str_list += ['regsPerMultiprocessor : ' + str(self.regsPerMultiprocessor)] * 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/cudart.pyx":7442 * except ValueError: * str_list += ['regsPerMultiprocessor : '] * 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/cudart.pyx":7443 * str_list += ['regsPerMultiprocessor : '] * try: * str_list += ['managedMemory : ' + str(self.managedMemory)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['managedMemory : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_managedMemory_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7443, __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, 7443, __pyx_L515_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_managedMemory, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7443, __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, 7443, __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)) __PYX_ERR(0, 7443, __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, 7443, __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/cudart.pyx":7442 * except ValueError: * str_list += ['regsPerMultiprocessor : '] * 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_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/cudart.pyx":7444 * try: * str_list += ['managedMemory : ' + str(self.managedMemory)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['managedMemory : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7444, __pyx_L517_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7445 * str_list += ['managedMemory : ' + str(self.managedMemory)] * except ValueError: * str_list += ['managedMemory : '] # <<<<<<<<<<<<<< * try: * str_list += ['isMultiGpuBoard : ' + str(self.isMultiGpuBoard)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7445, __pyx_L517_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_managedMemory_ValueError); __Pyx_GIVEREF(__pyx_kp_u_managedMemory_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_managedMemory_ValueError)) __PYX_ERR(0, 7445, __pyx_L517_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7445, __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/cudart.pyx":7442 * except ValueError: * str_list += ['regsPerMultiprocessor : '] * try: # <<<<<<<<<<<<<< * str_list += ['managedMemory : ' + str(self.managedMemory)] * 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/cudart.pyx":7446 * except ValueError: * str_list += ['managedMemory : '] * 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/cudart.pyx":7447 * str_list += ['managedMemory : '] * try: * str_list += ['isMultiGpuBoard : ' + str(self.isMultiGpuBoard)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['isMultiGpuBoard : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_isMultiGpuBoard_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7447, __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, 7447, __pyx_L523_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_isMultiGpuBoard, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7447, __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, 7447, __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)) __PYX_ERR(0, 7447, __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, 7447, __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/cudart.pyx":7446 * except ValueError: * str_list += ['managedMemory : '] * 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_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/cudart.pyx":7448 * try: * str_list += ['isMultiGpuBoard : ' + str(self.isMultiGpuBoard)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['isMultiGpuBoard : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7448, __pyx_L525_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7449 * str_list += ['isMultiGpuBoard : ' + str(self.isMultiGpuBoard)] * except ValueError: * str_list += ['isMultiGpuBoard : '] # <<<<<<<<<<<<<< * try: * str_list += ['multiGpuBoardGroupID : ' + str(self.multiGpuBoardGroupID)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7449, __pyx_L525_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_isMultiGpuBoard_ValueError); __Pyx_GIVEREF(__pyx_kp_u_isMultiGpuBoard_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_isMultiGpuBoard_ValueError)) __PYX_ERR(0, 7449, __pyx_L525_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7449, __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/cudart.pyx":7446 * except ValueError: * str_list += ['managedMemory : '] * try: # <<<<<<<<<<<<<< * str_list += ['isMultiGpuBoard : ' + str(self.isMultiGpuBoard)] * 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/cudart.pyx":7450 * except ValueError: * str_list += ['isMultiGpuBoard : '] * 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/cudart.pyx":7451 * str_list += ['isMultiGpuBoard : '] * try: * str_list += ['multiGpuBoardGroupID : ' + str(self.multiGpuBoardGroupID)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['multiGpuBoardGroupID : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_multiGpuBoardGroupID_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7451, __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, 7451, __pyx_L531_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_multiGpuBoardGroupID, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7451, __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, 7451, __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)) __PYX_ERR(0, 7451, __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, 7451, __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/cudart.pyx":7450 * except ValueError: * str_list += ['isMultiGpuBoard : '] * 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_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/cudart.pyx":7452 * try: * str_list += ['multiGpuBoardGroupID : ' + str(self.multiGpuBoardGroupID)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['multiGpuBoardGroupID : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7452, __pyx_L533_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7453 * str_list += ['multiGpuBoardGroupID : ' + str(self.multiGpuBoardGroupID)] * except ValueError: * str_list += ['multiGpuBoardGroupID : '] # <<<<<<<<<<<<<< * try: * str_list += ['hostNativeAtomicSupported : ' + str(self.hostNativeAtomicSupported)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7453, __pyx_L533_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_multiGpuBoardGroupID_ValueError); __Pyx_GIVEREF(__pyx_kp_u_multiGpuBoardGroupID_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_multiGpuBoardGroupID_ValueError)) __PYX_ERR(0, 7453, __pyx_L533_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7453, __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/cudart.pyx":7450 * except ValueError: * str_list += ['isMultiGpuBoard : '] * try: # <<<<<<<<<<<<<< * str_list += ['multiGpuBoardGroupID : ' + str(self.multiGpuBoardGroupID)] * 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/cudart.pyx":7454 * except ValueError: * str_list += ['multiGpuBoardGroupID : '] * 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/cudart.pyx":7455 * str_list += ['multiGpuBoardGroupID : '] * try: * str_list += ['hostNativeAtomicSupported : ' + str(self.hostNativeAtomicSupported)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['hostNativeAtomicSupported : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_hostNativeAtomicSupported_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7455, __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, 7455, __pyx_L539_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_hostNativeAtomicSupported, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7455, __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, 7455, __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)) __PYX_ERR(0, 7455, __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, 7455, __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/cudart.pyx":7454 * except ValueError: * str_list += ['multiGpuBoardGroupID : '] * 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_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/cudart.pyx":7456 * try: * str_list += ['hostNativeAtomicSupported : ' + str(self.hostNativeAtomicSupported)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['hostNativeAtomicSupported : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7456, __pyx_L541_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7457 * str_list += ['hostNativeAtomicSupported : ' + str(self.hostNativeAtomicSupported)] * except ValueError: * str_list += ['hostNativeAtomicSupported : '] # <<<<<<<<<<<<<< * try: * str_list += ['singleToDoublePrecisionPerfRatio : ' + str(self.singleToDoublePrecisionPerfRatio)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7457, __pyx_L541_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_hostNativeAtomicSupported_ValueE); __Pyx_GIVEREF(__pyx_kp_u_hostNativeAtomicSupported_ValueE); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_hostNativeAtomicSupported_ValueE)) __PYX_ERR(0, 7457, __pyx_L541_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7457, __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/cudart.pyx":7454 * except ValueError: * str_list += ['multiGpuBoardGroupID : '] * try: # <<<<<<<<<<<<<< * str_list += ['hostNativeAtomicSupported : ' + str(self.hostNativeAtomicSupported)] * 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/cudart.pyx":7458 * except ValueError: * str_list += ['hostNativeAtomicSupported : '] * try: # <<<<<<<<<<<<<< * str_list += ['singleToDoublePrecisionPerfRatio : ' + str(self.singleToDoublePrecisionPerfRatio)] * 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/cudart.pyx":7459 * str_list += ['hostNativeAtomicSupported : '] * try: * str_list += ['singleToDoublePrecisionPerfRatio : ' + str(self.singleToDoublePrecisionPerfRatio)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['singleToDoublePrecisionPerfRatio : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_singleToDoublePrecisionPerfRatio_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7459, __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, 7459, __pyx_L547_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_singleToDoublePrecisionPerfRatio, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7459, __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, 7459, __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)) __PYX_ERR(0, 7459, __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, 7459, __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/cudart.pyx":7458 * except ValueError: * str_list += ['hostNativeAtomicSupported : '] * try: # <<<<<<<<<<<<<< * str_list += ['singleToDoublePrecisionPerfRatio : ' + str(self.singleToDoublePrecisionPerfRatio)] * 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/cudart.pyx":7460 * try: * str_list += ['singleToDoublePrecisionPerfRatio : ' + str(self.singleToDoublePrecisionPerfRatio)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['singleToDoublePrecisionPerfRatio : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7460, __pyx_L549_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7461 * str_list += ['singleToDoublePrecisionPerfRatio : ' + str(self.singleToDoublePrecisionPerfRatio)] * except ValueError: * str_list += ['singleToDoublePrecisionPerfRatio : '] # <<<<<<<<<<<<<< * try: * str_list += ['pageableMemoryAccess : ' + str(self.pageableMemoryAccess)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7461, __pyx_L549_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_singleToDoublePrecisionPerfRatio_3); __Pyx_GIVEREF(__pyx_kp_u_singleToDoublePrecisionPerfRatio_3); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_singleToDoublePrecisionPerfRatio_3)) __PYX_ERR(0, 7461, __pyx_L549_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7461, __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/cudart.pyx":7458 * except ValueError: * str_list += ['hostNativeAtomicSupported : '] * try: # <<<<<<<<<<<<<< * str_list += ['singleToDoublePrecisionPerfRatio : ' + str(self.singleToDoublePrecisionPerfRatio)] * 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/cudart.pyx":7462 * except ValueError: * str_list += ['singleToDoublePrecisionPerfRatio : '] * try: # <<<<<<<<<<<<<< * str_list += ['pageableMemoryAccess : ' + str(self.pageableMemoryAccess)] * except ValueError: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_5); /*try:*/ { /* "cuda/cudart.pyx":7463 * str_list += ['singleToDoublePrecisionPerfRatio : '] * try: * str_list += ['pageableMemoryAccess : ' + str(self.pageableMemoryAccess)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['pageableMemoryAccess : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_pageableMemoryAccess_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7463, __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, 7463, __pyx_L555_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_pageableMemoryAccess, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7463, __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, 7463, __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)) __PYX_ERR(0, 7463, __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, 7463, __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/cudart.pyx":7462 * except ValueError: * str_list += ['singleToDoublePrecisionPerfRatio : '] * try: # <<<<<<<<<<<<<< * str_list += ['pageableMemoryAccess : ' + str(self.pageableMemoryAccess)] * except ValueError: */ } __Pyx_XDECREF(__pyx_t_3); __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/cudart.pyx":7464 * try: * str_list += ['pageableMemoryAccess : ' + str(self.pageableMemoryAccess)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['pageableMemoryAccess : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7464, __pyx_L557_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7465 * str_list += ['pageableMemoryAccess : ' + str(self.pageableMemoryAccess)] * except ValueError: * str_list += ['pageableMemoryAccess : '] # <<<<<<<<<<<<<< * try: * str_list += ['concurrentManagedAccess : ' + str(self.concurrentManagedAccess)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7465, __pyx_L557_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_pageableMemoryAccess_ValueError); __Pyx_GIVEREF(__pyx_kp_u_pageableMemoryAccess_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_pageableMemoryAccess_ValueError)) __PYX_ERR(0, 7465, __pyx_L557_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7465, __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/cudart.pyx":7462 * except ValueError: * str_list += ['singleToDoublePrecisionPerfRatio : '] * try: # <<<<<<<<<<<<<< * str_list += ['pageableMemoryAccess : ' + str(self.pageableMemoryAccess)] * 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/cudart.pyx":7466 * except ValueError: * str_list += ['pageableMemoryAccess : '] * try: # <<<<<<<<<<<<<< * str_list += ['concurrentManagedAccess : ' + str(self.concurrentManagedAccess)] * 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/cudart.pyx":7467 * str_list += ['pageableMemoryAccess : '] * try: * str_list += ['concurrentManagedAccess : ' + str(self.concurrentManagedAccess)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['concurrentManagedAccess : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_concurrentManagedAccess_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7467, __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, 7467, __pyx_L563_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_concurrentManagedAccess, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7467, __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, 7467, __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)) __PYX_ERR(0, 7467, __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, 7467, __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/cudart.pyx":7466 * except ValueError: * str_list += ['pageableMemoryAccess : '] * try: # <<<<<<<<<<<<<< * str_list += ['concurrentManagedAccess : ' + str(self.concurrentManagedAccess)] * 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/cudart.pyx":7468 * try: * str_list += ['concurrentManagedAccess : ' + str(self.concurrentManagedAccess)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['concurrentManagedAccess : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7468, __pyx_L565_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7469 * str_list += ['concurrentManagedAccess : ' + str(self.concurrentManagedAccess)] * except ValueError: * str_list += ['concurrentManagedAccess : '] # <<<<<<<<<<<<<< * try: * str_list += ['computePreemptionSupported : ' + str(self.computePreemptionSupported)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7469, __pyx_L565_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_concurrentManagedAccess_ValueErr); __Pyx_GIVEREF(__pyx_kp_u_concurrentManagedAccess_ValueErr); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_concurrentManagedAccess_ValueErr)) __PYX_ERR(0, 7469, __pyx_L565_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7469, __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/cudart.pyx":7466 * except ValueError: * str_list += ['pageableMemoryAccess : '] * try: # <<<<<<<<<<<<<< * str_list += ['concurrentManagedAccess : ' + str(self.concurrentManagedAccess)] * 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/cudart.pyx":7470 * except ValueError: * str_list += ['concurrentManagedAccess : '] * try: # <<<<<<<<<<<<<< * str_list += ['computePreemptionSupported : ' + str(self.computePreemptionSupported)] * except ValueError: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_5); /*try:*/ { /* "cuda/cudart.pyx":7471 * str_list += ['concurrentManagedAccess : '] * try: * str_list += ['computePreemptionSupported : ' + str(self.computePreemptionSupported)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['computePreemptionSupported : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_computePreemptionSupported_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7471, __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, 7471, __pyx_L571_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_computePreemptionSupported, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7471, __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, 7471, __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)) __PYX_ERR(0, 7471, __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, 7471, __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/cudart.pyx":7470 * except ValueError: * str_list += ['concurrentManagedAccess : '] * try: # <<<<<<<<<<<<<< * str_list += ['computePreemptionSupported : ' + str(self.computePreemptionSupported)] * except ValueError: */ } __Pyx_XDECREF(__pyx_t_3); __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/cudart.pyx":7472 * try: * str_list += ['computePreemptionSupported : ' + str(self.computePreemptionSupported)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['computePreemptionSupported : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7472, __pyx_L573_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7473 * str_list += ['computePreemptionSupported : ' + str(self.computePreemptionSupported)] * except ValueError: * str_list += ['computePreemptionSupported : '] # <<<<<<<<<<<<<< * try: * str_list += ['canUseHostPointerForRegisteredMem : ' + str(self.canUseHostPointerForRegisteredMem)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7473, __pyx_L573_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_computePreemptionSupported_Value); __Pyx_GIVEREF(__pyx_kp_u_computePreemptionSupported_Value); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_computePreemptionSupported_Value)) __PYX_ERR(0, 7473, __pyx_L573_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7473, __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/cudart.pyx":7470 * except ValueError: * str_list += ['concurrentManagedAccess : '] * try: # <<<<<<<<<<<<<< * str_list += ['computePreemptionSupported : ' + str(self.computePreemptionSupported)] * 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/cudart.pyx":7474 * except ValueError: * str_list += ['computePreemptionSupported : '] * try: # <<<<<<<<<<<<<< * str_list += ['canUseHostPointerForRegisteredMem : ' + str(self.canUseHostPointerForRegisteredMem)] * 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/cudart.pyx":7475 * str_list += ['computePreemptionSupported : '] * try: * str_list += ['canUseHostPointerForRegisteredMem : ' + str(self.canUseHostPointerForRegisteredMem)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['canUseHostPointerForRegisteredMem : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_canUseHostPointerForRegisteredMe_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7475, __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, 7475, __pyx_L579_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_canUseHostPointerForRegisteredMe, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7475, __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, 7475, __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)) __PYX_ERR(0, 7475, __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, 7475, __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/cudart.pyx":7474 * except ValueError: * str_list += ['computePreemptionSupported : '] * try: # <<<<<<<<<<<<<< * str_list += ['canUseHostPointerForRegisteredMem : ' + str(self.canUseHostPointerForRegisteredMem)] * 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/cudart.pyx":7476 * try: * str_list += ['canUseHostPointerForRegisteredMem : ' + str(self.canUseHostPointerForRegisteredMem)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['canUseHostPointerForRegisteredMem : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7476, __pyx_L581_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7477 * str_list += ['canUseHostPointerForRegisteredMem : ' + str(self.canUseHostPointerForRegisteredMem)] * except ValueError: * str_list += ['canUseHostPointerForRegisteredMem : '] # <<<<<<<<<<<<<< * try: * str_list += ['cooperativeLaunch : ' + str(self.cooperativeLaunch)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7477, __pyx_L581_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_canUseHostPointerForRegisteredMe_3); __Pyx_GIVEREF(__pyx_kp_u_canUseHostPointerForRegisteredMe_3); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_canUseHostPointerForRegisteredMe_3)) __PYX_ERR(0, 7477, __pyx_L581_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7477, __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/cudart.pyx":7474 * except ValueError: * str_list += ['computePreemptionSupported : '] * try: # <<<<<<<<<<<<<< * str_list += ['canUseHostPointerForRegisteredMem : ' + str(self.canUseHostPointerForRegisteredMem)] * 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/cudart.pyx":7478 * except ValueError: * str_list += ['canUseHostPointerForRegisteredMem : '] * try: # <<<<<<<<<<<<<< * str_list += ['cooperativeLaunch : ' + str(self.cooperativeLaunch)] * except ValueError: */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_5); /*try:*/ { /* "cuda/cudart.pyx":7479 * str_list += ['canUseHostPointerForRegisteredMem : '] * try: * str_list += ['cooperativeLaunch : ' + str(self.cooperativeLaunch)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['cooperativeLaunch : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_cooperativeLaunch_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7479, __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, 7479, __pyx_L587_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_cooperativeLaunch, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7479, __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, 7479, __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)) __PYX_ERR(0, 7479, __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, 7479, __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/cudart.pyx":7478 * except ValueError: * str_list += ['canUseHostPointerForRegisteredMem : '] * try: # <<<<<<<<<<<<<< * str_list += ['cooperativeLaunch : ' + str(self.cooperativeLaunch)] * except ValueError: */ } __Pyx_XDECREF(__pyx_t_3); __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/cudart.pyx":7480 * try: * str_list += ['cooperativeLaunch : ' + str(self.cooperativeLaunch)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['cooperativeLaunch : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7480, __pyx_L589_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7481 * str_list += ['cooperativeLaunch : ' + str(self.cooperativeLaunch)] * except ValueError: * str_list += ['cooperativeLaunch : '] # <<<<<<<<<<<<<< * try: * str_list += ['cooperativeMultiDeviceLaunch : ' + str(self.cooperativeMultiDeviceLaunch)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7481, __pyx_L589_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_cooperativeLaunch_ValueError); __Pyx_GIVEREF(__pyx_kp_u_cooperativeLaunch_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_cooperativeLaunch_ValueError)) __PYX_ERR(0, 7481, __pyx_L589_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7481, __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/cudart.pyx":7478 * except ValueError: * str_list += ['canUseHostPointerForRegisteredMem : '] * try: # <<<<<<<<<<<<<< * str_list += ['cooperativeLaunch : ' + str(self.cooperativeLaunch)] * 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/cudart.pyx":7482 * except ValueError: * str_list += ['cooperativeLaunch : '] * try: # <<<<<<<<<<<<<< * str_list += ['cooperativeMultiDeviceLaunch : ' + str(self.cooperativeMultiDeviceLaunch)] * 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/cudart.pyx":7483 * str_list += ['cooperativeLaunch : '] * try: * str_list += ['cooperativeMultiDeviceLaunch : ' + str(self.cooperativeMultiDeviceLaunch)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['cooperativeMultiDeviceLaunch : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_cooperativeMultiDeviceLaunch_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7483, __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, 7483, __pyx_L595_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_cooperativeMultiDeviceLaunch, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7483, __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, 7483, __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)) __PYX_ERR(0, 7483, __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, 7483, __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/cudart.pyx":7482 * except ValueError: * str_list += ['cooperativeLaunch : '] * try: # <<<<<<<<<<<<<< * str_list += ['cooperativeMultiDeviceLaunch : ' + str(self.cooperativeMultiDeviceLaunch)] * 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/cudart.pyx":7484 * try: * str_list += ['cooperativeMultiDeviceLaunch : ' + str(self.cooperativeMultiDeviceLaunch)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['cooperativeMultiDeviceLaunch : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7484, __pyx_L597_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7485 * str_list += ['cooperativeMultiDeviceLaunch : ' + str(self.cooperativeMultiDeviceLaunch)] * except ValueError: * str_list += ['cooperativeMultiDeviceLaunch : '] # <<<<<<<<<<<<<< * try: * str_list += ['sharedMemPerBlockOptin : ' + str(self.sharedMemPerBlockOptin)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7485, __pyx_L597_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_cooperativeMultiDeviceLaunch_Val); __Pyx_GIVEREF(__pyx_kp_u_cooperativeMultiDeviceLaunch_Val); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_cooperativeMultiDeviceLaunch_Val)) __PYX_ERR(0, 7485, __pyx_L597_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7485, __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/cudart.pyx":7482 * except ValueError: * str_list += ['cooperativeLaunch : '] * try: # <<<<<<<<<<<<<< * str_list += ['cooperativeMultiDeviceLaunch : ' + str(self.cooperativeMultiDeviceLaunch)] * 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/cudart.pyx":7486 * except ValueError: * str_list += ['cooperativeMultiDeviceLaunch : '] * 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/cudart.pyx":7487 * str_list += ['cooperativeMultiDeviceLaunch : '] * try: * str_list += ['sharedMemPerBlockOptin : ' + str(self.sharedMemPerBlockOptin)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['sharedMemPerBlockOptin : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_sharedMemPerBlockOptin_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7487, __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, 7487, __pyx_L603_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_sharedMemPerBlockOptin, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7487, __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, 7487, __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)) __PYX_ERR(0, 7487, __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, 7487, __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/cudart.pyx":7486 * except ValueError: * str_list += ['cooperativeMultiDeviceLaunch : '] * 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_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/cudart.pyx":7488 * try: * str_list += ['sharedMemPerBlockOptin : ' + str(self.sharedMemPerBlockOptin)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['sharedMemPerBlockOptin : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7488, __pyx_L605_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7489 * str_list += ['sharedMemPerBlockOptin : ' + str(self.sharedMemPerBlockOptin)] * except ValueError: * str_list += ['sharedMemPerBlockOptin : '] # <<<<<<<<<<<<<< * try: * str_list += ['pageableMemoryAccessUsesHostPageTables : ' + str(self.pageableMemoryAccessUsesHostPageTables)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7489, __pyx_L605_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_sharedMemPerBlockOptin_ValueErro); __Pyx_GIVEREF(__pyx_kp_u_sharedMemPerBlockOptin_ValueErro); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_sharedMemPerBlockOptin_ValueErro)) __PYX_ERR(0, 7489, __pyx_L605_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7489, __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/cudart.pyx":7486 * except ValueError: * str_list += ['cooperativeMultiDeviceLaunch : '] * try: # <<<<<<<<<<<<<< * str_list += ['sharedMemPerBlockOptin : ' + str(self.sharedMemPerBlockOptin)] * 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/cudart.pyx":7490 * except ValueError: * str_list += ['sharedMemPerBlockOptin : '] * 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/cudart.pyx":7491 * str_list += ['sharedMemPerBlockOptin : '] * try: * str_list += ['pageableMemoryAccessUsesHostPageTables : ' + str(self.pageableMemoryAccessUsesHostPageTables)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['pageableMemoryAccessUsesHostPageTables : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_pageableMemoryAccessUsesHostPage_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7491, __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, 7491, __pyx_L611_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_pageableMemoryAccessUsesHostPage, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7491, __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, 7491, __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)) __PYX_ERR(0, 7491, __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, 7491, __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/cudart.pyx":7490 * except ValueError: * str_list += ['sharedMemPerBlockOptin : '] * 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_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/cudart.pyx":7492 * try: * str_list += ['pageableMemoryAccessUsesHostPageTables : ' + str(self.pageableMemoryAccessUsesHostPageTables)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['pageableMemoryAccessUsesHostPageTables : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7492, __pyx_L613_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7493 * str_list += ['pageableMemoryAccessUsesHostPageTables : ' + str(self.pageableMemoryAccessUsesHostPageTables)] * except ValueError: * str_list += ['pageableMemoryAccessUsesHostPageTables : '] # <<<<<<<<<<<<<< * try: * str_list += ['directManagedMemAccessFromHost : ' + str(self.directManagedMemAccessFromHost)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7493, __pyx_L613_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_pageableMemoryAccessUsesHostPage_3); __Pyx_GIVEREF(__pyx_kp_u_pageableMemoryAccessUsesHostPage_3); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_pageableMemoryAccessUsesHostPage_3)) __PYX_ERR(0, 7493, __pyx_L613_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7493, __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/cudart.pyx":7490 * except ValueError: * str_list += ['sharedMemPerBlockOptin : '] * try: # <<<<<<<<<<<<<< * str_list += ['pageableMemoryAccessUsesHostPageTables : ' + str(self.pageableMemoryAccessUsesHostPageTables)] * 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/cudart.pyx":7494 * except ValueError: * str_list += ['pageableMemoryAccessUsesHostPageTables : '] * 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/cudart.pyx":7495 * str_list += ['pageableMemoryAccessUsesHostPageTables : '] * try: * str_list += ['directManagedMemAccessFromHost : ' + str(self.directManagedMemAccessFromHost)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['directManagedMemAccessFromHost : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_directManagedMemAccessFromHost_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7495, __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, 7495, __pyx_L619_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_directManagedMemAccessFromHost, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7495, __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, 7495, __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)) __PYX_ERR(0, 7495, __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, 7495, __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/cudart.pyx":7494 * except ValueError: * str_list += ['pageableMemoryAccessUsesHostPageTables : '] * 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_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/cudart.pyx":7496 * try: * str_list += ['directManagedMemAccessFromHost : ' + str(self.directManagedMemAccessFromHost)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['directManagedMemAccessFromHost : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7496, __pyx_L621_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7497 * str_list += ['directManagedMemAccessFromHost : ' + str(self.directManagedMemAccessFromHost)] * except ValueError: * str_list += ['directManagedMemAccessFromHost : '] # <<<<<<<<<<<<<< * try: * str_list += ['maxBlocksPerMultiProcessor : ' + str(self.maxBlocksPerMultiProcessor)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7497, __pyx_L621_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_directManagedMemAccessFromHost_V); __Pyx_GIVEREF(__pyx_kp_u_directManagedMemAccessFromHost_V); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_directManagedMemAccessFromHost_V)) __PYX_ERR(0, 7497, __pyx_L621_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7497, __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/cudart.pyx":7494 * except ValueError: * str_list += ['pageableMemoryAccessUsesHostPageTables : '] * try: # <<<<<<<<<<<<<< * str_list += ['directManagedMemAccessFromHost : ' + str(self.directManagedMemAccessFromHost)] * 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/cudart.pyx":7498 * except ValueError: * str_list += ['directManagedMemAccessFromHost : '] * 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/cudart.pyx":7499 * str_list += ['directManagedMemAccessFromHost : '] * try: * str_list += ['maxBlocksPerMultiProcessor : ' + str(self.maxBlocksPerMultiProcessor)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['maxBlocksPerMultiProcessor : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_maxBlocksPerMultiProcessor_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7499, __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, 7499, __pyx_L627_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_maxBlocksPerMultiProcessor, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7499, __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, 7499, __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)) __PYX_ERR(0, 7499, __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, 7499, __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/cudart.pyx":7498 * except ValueError: * str_list += ['directManagedMemAccessFromHost : '] * 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_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/cudart.pyx":7500 * try: * str_list += ['maxBlocksPerMultiProcessor : ' + str(self.maxBlocksPerMultiProcessor)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['maxBlocksPerMultiProcessor : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7500, __pyx_L629_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7501 * str_list += ['maxBlocksPerMultiProcessor : ' + str(self.maxBlocksPerMultiProcessor)] * except ValueError: * str_list += ['maxBlocksPerMultiProcessor : '] # <<<<<<<<<<<<<< * try: * str_list += ['accessPolicyMaxWindowSize : ' + str(self.accessPolicyMaxWindowSize)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7501, __pyx_L629_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_maxBlocksPerMultiProcessor_Value); __Pyx_GIVEREF(__pyx_kp_u_maxBlocksPerMultiProcessor_Value); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_maxBlocksPerMultiProcessor_Value)) __PYX_ERR(0, 7501, __pyx_L629_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7501, __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/cudart.pyx":7498 * except ValueError: * str_list += ['directManagedMemAccessFromHost : '] * try: # <<<<<<<<<<<<<< * str_list += ['maxBlocksPerMultiProcessor : ' + str(self.maxBlocksPerMultiProcessor)] * 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/cudart.pyx":7502 * except ValueError: * str_list += ['maxBlocksPerMultiProcessor : '] * 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/cudart.pyx":7503 * str_list += ['maxBlocksPerMultiProcessor : '] * try: * str_list += ['accessPolicyMaxWindowSize : ' + str(self.accessPolicyMaxWindowSize)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['accessPolicyMaxWindowSize : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_accessPolicyMaxWindowSize_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7503, __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, 7503, __pyx_L635_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_accessPolicyMaxWindowSize, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7503, __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, 7503, __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)) __PYX_ERR(0, 7503, __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, 7503, __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/cudart.pyx":7502 * except ValueError: * str_list += ['maxBlocksPerMultiProcessor : '] * 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_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/cudart.pyx":7504 * try: * str_list += ['accessPolicyMaxWindowSize : ' + str(self.accessPolicyMaxWindowSize)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['accessPolicyMaxWindowSize : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7504, __pyx_L637_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7505 * str_list += ['accessPolicyMaxWindowSize : ' + str(self.accessPolicyMaxWindowSize)] * except ValueError: * str_list += ['accessPolicyMaxWindowSize : '] # <<<<<<<<<<<<<< * try: * str_list += ['reservedSharedMemPerBlock : ' + str(self.reservedSharedMemPerBlock)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7505, __pyx_L637_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_accessPolicyMaxWindowSize_ValueE); __Pyx_GIVEREF(__pyx_kp_u_accessPolicyMaxWindowSize_ValueE); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_accessPolicyMaxWindowSize_ValueE)) __PYX_ERR(0, 7505, __pyx_L637_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7505, __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/cudart.pyx":7502 * except ValueError: * str_list += ['maxBlocksPerMultiProcessor : '] * try: # <<<<<<<<<<<<<< * str_list += ['accessPolicyMaxWindowSize : ' + str(self.accessPolicyMaxWindowSize)] * 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/cudart.pyx":7506 * except ValueError: * str_list += ['accessPolicyMaxWindowSize : '] * 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/cudart.pyx":7507 * str_list += ['accessPolicyMaxWindowSize : '] * try: * str_list += ['reservedSharedMemPerBlock : ' + str(self.reservedSharedMemPerBlock)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['reservedSharedMemPerBlock : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_reservedSharedMemPerBlock_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7507, __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, 7507, __pyx_L643_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_reservedSharedMemPerBlock, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7507, __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, 7507, __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)) __PYX_ERR(0, 7507, __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, 7507, __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/cudart.pyx":7506 * except ValueError: * str_list += ['accessPolicyMaxWindowSize : '] * 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_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/cudart.pyx":7508 * try: * str_list += ['reservedSharedMemPerBlock : ' + str(self.reservedSharedMemPerBlock)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['reservedSharedMemPerBlock : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7508, __pyx_L645_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7509 * str_list += ['reservedSharedMemPerBlock : ' + str(self.reservedSharedMemPerBlock)] * except ValueError: * str_list += ['reservedSharedMemPerBlock : '] # <<<<<<<<<<<<<< * try: * str_list += ['hostRegisterSupported : ' + str(self.hostRegisterSupported)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7509, __pyx_L645_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_reservedSharedMemPerBlock_ValueE); __Pyx_GIVEREF(__pyx_kp_u_reservedSharedMemPerBlock_ValueE); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_reservedSharedMemPerBlock_ValueE)) __PYX_ERR(0, 7509, __pyx_L645_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7509, __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/cudart.pyx":7506 * except ValueError: * str_list += ['accessPolicyMaxWindowSize : '] * try: # <<<<<<<<<<<<<< * str_list += ['reservedSharedMemPerBlock : ' + str(self.reservedSharedMemPerBlock)] * 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/cudart.pyx":7510 * except ValueError: * str_list += ['reservedSharedMemPerBlock : '] * 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/cudart.pyx":7511 * str_list += ['reservedSharedMemPerBlock : '] * try: * str_list += ['hostRegisterSupported : ' + str(self.hostRegisterSupported)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['hostRegisterSupported : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_hostRegisterSupported_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7511, __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, 7511, __pyx_L651_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_hostRegisterSupported, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7511, __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, 7511, __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)) __PYX_ERR(0, 7511, __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, 7511, __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/cudart.pyx":7510 * except ValueError: * str_list += ['reservedSharedMemPerBlock : '] * 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_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/cudart.pyx":7512 * try: * str_list += ['hostRegisterSupported : ' + str(self.hostRegisterSupported)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['hostRegisterSupported : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7512, __pyx_L653_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7513 * str_list += ['hostRegisterSupported : ' + str(self.hostRegisterSupported)] * except ValueError: * str_list += ['hostRegisterSupported : '] # <<<<<<<<<<<<<< * try: * str_list += ['sparseCudaArraySupported : ' + str(self.sparseCudaArraySupported)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7513, __pyx_L653_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_hostRegisterSupported_ValueError); __Pyx_GIVEREF(__pyx_kp_u_hostRegisterSupported_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_hostRegisterSupported_ValueError)) __PYX_ERR(0, 7513, __pyx_L653_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7513, __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/cudart.pyx":7510 * except ValueError: * str_list += ['reservedSharedMemPerBlock : '] * try: # <<<<<<<<<<<<<< * str_list += ['hostRegisterSupported : ' + str(self.hostRegisterSupported)] * 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/cudart.pyx":7514 * except ValueError: * str_list += ['hostRegisterSupported : '] * 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/cudart.pyx":7515 * str_list += ['hostRegisterSupported : '] * try: * str_list += ['sparseCudaArraySupported : ' + str(self.sparseCudaArraySupported)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['sparseCudaArraySupported : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_sparseCudaArraySupported_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7515, __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, 7515, __pyx_L659_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_sparseCudaArraySupported, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7515, __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, 7515, __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)) __PYX_ERR(0, 7515, __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, 7515, __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/cudart.pyx":7514 * except ValueError: * str_list += ['hostRegisterSupported : '] * 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_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/cudart.pyx":7516 * try: * str_list += ['sparseCudaArraySupported : ' + str(self.sparseCudaArraySupported)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['sparseCudaArraySupported : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7516, __pyx_L661_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7517 * str_list += ['sparseCudaArraySupported : ' + str(self.sparseCudaArraySupported)] * except ValueError: * str_list += ['sparseCudaArraySupported : '] # <<<<<<<<<<<<<< * try: * str_list += ['hostRegisterReadOnlySupported : ' + str(self.hostRegisterReadOnlySupported)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7517, __pyx_L661_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_sparseCudaArraySupported_ValueEr); __Pyx_GIVEREF(__pyx_kp_u_sparseCudaArraySupported_ValueEr); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_sparseCudaArraySupported_ValueEr)) __PYX_ERR(0, 7517, __pyx_L661_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7517, __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/cudart.pyx":7514 * except ValueError: * str_list += ['hostRegisterSupported : '] * try: # <<<<<<<<<<<<<< * str_list += ['sparseCudaArraySupported : ' + str(self.sparseCudaArraySupported)] * 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/cudart.pyx":7518 * except ValueError: * str_list += ['sparseCudaArraySupported : '] * 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/cudart.pyx":7519 * str_list += ['sparseCudaArraySupported : '] * try: * str_list += ['hostRegisterReadOnlySupported : ' + str(self.hostRegisterReadOnlySupported)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['hostRegisterReadOnlySupported : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_hostRegisterReadOnlySupported_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7519, __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, 7519, __pyx_L667_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_hostRegisterReadOnlySupported, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7519, __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, 7519, __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)) __PYX_ERR(0, 7519, __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, 7519, __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/cudart.pyx":7518 * except ValueError: * str_list += ['sparseCudaArraySupported : '] * 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_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/cudart.pyx":7520 * try: * str_list += ['hostRegisterReadOnlySupported : ' + str(self.hostRegisterReadOnlySupported)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['hostRegisterReadOnlySupported : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7520, __pyx_L669_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7521 * str_list += ['hostRegisterReadOnlySupported : ' + str(self.hostRegisterReadOnlySupported)] * except ValueError: * str_list += ['hostRegisterReadOnlySupported : '] # <<<<<<<<<<<<<< * try: * str_list += ['timelineSemaphoreInteropSupported : ' + str(self.timelineSemaphoreInteropSupported)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7521, __pyx_L669_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_hostRegisterReadOnlySupported_Va); __Pyx_GIVEREF(__pyx_kp_u_hostRegisterReadOnlySupported_Va); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_hostRegisterReadOnlySupported_Va)) __PYX_ERR(0, 7521, __pyx_L669_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7521, __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/cudart.pyx":7518 * except ValueError: * str_list += ['sparseCudaArraySupported : '] * try: # <<<<<<<<<<<<<< * str_list += ['hostRegisterReadOnlySupported : ' + str(self.hostRegisterReadOnlySupported)] * 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/cudart.pyx":7522 * except ValueError: * str_list += ['hostRegisterReadOnlySupported : '] * 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/cudart.pyx":7523 * str_list += ['hostRegisterReadOnlySupported : '] * try: * str_list += ['timelineSemaphoreInteropSupported : ' + str(self.timelineSemaphoreInteropSupported)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['timelineSemaphoreInteropSupported : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_timelineSemaphoreInteropSupporte_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7523, __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, 7523, __pyx_L675_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_timelineSemaphoreInteropSupporte, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7523, __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, 7523, __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)) __PYX_ERR(0, 7523, __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, 7523, __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/cudart.pyx":7522 * except ValueError: * str_list += ['hostRegisterReadOnlySupported : '] * 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_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/cudart.pyx":7524 * try: * str_list += ['timelineSemaphoreInteropSupported : ' + str(self.timelineSemaphoreInteropSupported)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['timelineSemaphoreInteropSupported : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7524, __pyx_L677_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7525 * str_list += ['timelineSemaphoreInteropSupported : ' + str(self.timelineSemaphoreInteropSupported)] * except ValueError: * str_list += ['timelineSemaphoreInteropSupported : '] # <<<<<<<<<<<<<< * try: * str_list += ['memoryPoolsSupported : ' + str(self.memoryPoolsSupported)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7525, __pyx_L677_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_timelineSemaphoreInteropSupporte_3); __Pyx_GIVEREF(__pyx_kp_u_timelineSemaphoreInteropSupporte_3); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_timelineSemaphoreInteropSupporte_3)) __PYX_ERR(0, 7525, __pyx_L677_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7525, __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/cudart.pyx":7522 * except ValueError: * str_list += ['hostRegisterReadOnlySupported : '] * try: # <<<<<<<<<<<<<< * str_list += ['timelineSemaphoreInteropSupported : ' + str(self.timelineSemaphoreInteropSupported)] * 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/cudart.pyx":7526 * except ValueError: * str_list += ['timelineSemaphoreInteropSupported : '] * 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/cudart.pyx":7527 * str_list += ['timelineSemaphoreInteropSupported : '] * try: * str_list += ['memoryPoolsSupported : ' + str(self.memoryPoolsSupported)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['memoryPoolsSupported : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_memoryPoolsSupported_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7527, __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, 7527, __pyx_L683_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_memoryPoolsSupported, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7527, __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, 7527, __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)) __PYX_ERR(0, 7527, __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, 7527, __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/cudart.pyx":7526 * except ValueError: * str_list += ['timelineSemaphoreInteropSupported : '] * 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_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/cudart.pyx":7528 * try: * str_list += ['memoryPoolsSupported : ' + str(self.memoryPoolsSupported)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['memoryPoolsSupported : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7528, __pyx_L685_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7529 * str_list += ['memoryPoolsSupported : ' + str(self.memoryPoolsSupported)] * except ValueError: * str_list += ['memoryPoolsSupported : '] # <<<<<<<<<<<<<< * try: * str_list += ['gpuDirectRDMASupported : ' + str(self.gpuDirectRDMASupported)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7529, __pyx_L685_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_memoryPoolsSupported_ValueError); __Pyx_GIVEREF(__pyx_kp_u_memoryPoolsSupported_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_memoryPoolsSupported_ValueError)) __PYX_ERR(0, 7529, __pyx_L685_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7529, __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/cudart.pyx":7526 * except ValueError: * str_list += ['timelineSemaphoreInteropSupported : '] * try: # <<<<<<<<<<<<<< * str_list += ['memoryPoolsSupported : ' + str(self.memoryPoolsSupported)] * 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/cudart.pyx":7530 * except ValueError: * str_list += ['memoryPoolsSupported : '] * 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/cudart.pyx":7531 * str_list += ['memoryPoolsSupported : '] * try: * str_list += ['gpuDirectRDMASupported : ' + str(self.gpuDirectRDMASupported)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['gpuDirectRDMASupported : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_gpuDirectRDMASupported_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7531, __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, 7531, __pyx_L691_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_gpuDirectRDMASupported, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7531, __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, 7531, __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)) __PYX_ERR(0, 7531, __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, 7531, __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/cudart.pyx":7530 * except ValueError: * str_list += ['memoryPoolsSupported : '] * 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_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/cudart.pyx":7532 * try: * str_list += ['gpuDirectRDMASupported : ' + str(self.gpuDirectRDMASupported)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['gpuDirectRDMASupported : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7532, __pyx_L693_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7533 * str_list += ['gpuDirectRDMASupported : ' + str(self.gpuDirectRDMASupported)] * except ValueError: * str_list += ['gpuDirectRDMASupported : '] # <<<<<<<<<<<<<< * try: * str_list += ['gpuDirectRDMAFlushWritesOptions : ' + str(self.gpuDirectRDMAFlushWritesOptions)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7533, __pyx_L693_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_gpuDirectRDMASupported_ValueErro); __Pyx_GIVEREF(__pyx_kp_u_gpuDirectRDMASupported_ValueErro); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_gpuDirectRDMASupported_ValueErro)) __PYX_ERR(0, 7533, __pyx_L693_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7533, __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/cudart.pyx":7530 * except ValueError: * str_list += ['memoryPoolsSupported : '] * try: # <<<<<<<<<<<<<< * str_list += ['gpuDirectRDMASupported : ' + str(self.gpuDirectRDMASupported)] * 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/cudart.pyx":7534 * except ValueError: * str_list += ['gpuDirectRDMASupported : '] * 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/cudart.pyx":7535 * str_list += ['gpuDirectRDMASupported : '] * try: * str_list += ['gpuDirectRDMAFlushWritesOptions : ' + str(self.gpuDirectRDMAFlushWritesOptions)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['gpuDirectRDMAFlushWritesOptions : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_gpuDirectRDMAFlushWritesOptions_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7535, __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, 7535, __pyx_L699_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_gpuDirectRDMAFlushWritesOptions, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7535, __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, 7535, __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)) __PYX_ERR(0, 7535, __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, 7535, __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/cudart.pyx":7534 * except ValueError: * str_list += ['gpuDirectRDMASupported : '] * 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_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/cudart.pyx":7536 * try: * str_list += ['gpuDirectRDMAFlushWritesOptions : ' + str(self.gpuDirectRDMAFlushWritesOptions)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['gpuDirectRDMAFlushWritesOptions : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7536, __pyx_L701_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7537 * str_list += ['gpuDirectRDMAFlushWritesOptions : ' + str(self.gpuDirectRDMAFlushWritesOptions)] * except ValueError: * str_list += ['gpuDirectRDMAFlushWritesOptions : '] # <<<<<<<<<<<<<< * try: * str_list += ['gpuDirectRDMAWritesOrdering : ' + str(self.gpuDirectRDMAWritesOrdering)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7537, __pyx_L701_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_gpuDirectRDMAFlushWritesOptions_3); __Pyx_GIVEREF(__pyx_kp_u_gpuDirectRDMAFlushWritesOptions_3); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_gpuDirectRDMAFlushWritesOptions_3)) __PYX_ERR(0, 7537, __pyx_L701_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7537, __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/cudart.pyx":7534 * except ValueError: * str_list += ['gpuDirectRDMASupported : '] * try: # <<<<<<<<<<<<<< * str_list += ['gpuDirectRDMAFlushWritesOptions : ' + str(self.gpuDirectRDMAFlushWritesOptions)] * 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/cudart.pyx":7538 * except ValueError: * str_list += ['gpuDirectRDMAFlushWritesOptions : '] * 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/cudart.pyx":7539 * str_list += ['gpuDirectRDMAFlushWritesOptions : '] * try: * str_list += ['gpuDirectRDMAWritesOrdering : ' + str(self.gpuDirectRDMAWritesOrdering)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['gpuDirectRDMAWritesOrdering : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_gpuDirectRDMAWritesOrdering_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7539, __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, 7539, __pyx_L707_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_gpuDirectRDMAWritesOrdering, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7539, __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, 7539, __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)) __PYX_ERR(0, 7539, __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, 7539, __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/cudart.pyx":7538 * except ValueError: * str_list += ['gpuDirectRDMAFlushWritesOptions : '] * 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_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/cudart.pyx":7540 * try: * str_list += ['gpuDirectRDMAWritesOrdering : ' + str(self.gpuDirectRDMAWritesOrdering)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['gpuDirectRDMAWritesOrdering : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7540, __pyx_L709_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7541 * str_list += ['gpuDirectRDMAWritesOrdering : ' + str(self.gpuDirectRDMAWritesOrdering)] * except ValueError: * str_list += ['gpuDirectRDMAWritesOrdering : '] # <<<<<<<<<<<<<< * try: * str_list += ['memoryPoolSupportedHandleTypes : ' + str(self.memoryPoolSupportedHandleTypes)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7541, __pyx_L709_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_gpuDirectRDMAWritesOrdering_Valu); __Pyx_GIVEREF(__pyx_kp_u_gpuDirectRDMAWritesOrdering_Valu); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_gpuDirectRDMAWritesOrdering_Valu)) __PYX_ERR(0, 7541, __pyx_L709_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7541, __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/cudart.pyx":7538 * except ValueError: * str_list += ['gpuDirectRDMAFlushWritesOptions : '] * try: # <<<<<<<<<<<<<< * str_list += ['gpuDirectRDMAWritesOrdering : ' + str(self.gpuDirectRDMAWritesOrdering)] * 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/cudart.pyx":7542 * except ValueError: * str_list += ['gpuDirectRDMAWritesOrdering : '] * 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/cudart.pyx":7543 * str_list += ['gpuDirectRDMAWritesOrdering : '] * try: * str_list += ['memoryPoolSupportedHandleTypes : ' + str(self.memoryPoolSupportedHandleTypes)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['memoryPoolSupportedHandleTypes : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_memoryPoolSupportedHandleTypes_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7543, __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, 7543, __pyx_L715_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_memoryPoolSupportedHandleTypes, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7543, __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, 7543, __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)) __PYX_ERR(0, 7543, __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, 7543, __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/cudart.pyx":7542 * except ValueError: * str_list += ['gpuDirectRDMAWritesOrdering : '] * 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_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/cudart.pyx":7544 * try: * str_list += ['memoryPoolSupportedHandleTypes : ' + str(self.memoryPoolSupportedHandleTypes)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['memoryPoolSupportedHandleTypes : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7544, __pyx_L717_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7545 * str_list += ['memoryPoolSupportedHandleTypes : ' + str(self.memoryPoolSupportedHandleTypes)] * except ValueError: * str_list += ['memoryPoolSupportedHandleTypes : '] # <<<<<<<<<<<<<< * try: * str_list += ['deferredMappingCudaArraySupported : ' + str(self.deferredMappingCudaArraySupported)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7545, __pyx_L717_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_memoryPoolSupportedHandleTypes_V); __Pyx_GIVEREF(__pyx_kp_u_memoryPoolSupportedHandleTypes_V); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_memoryPoolSupportedHandleTypes_V)) __PYX_ERR(0, 7545, __pyx_L717_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7545, __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/cudart.pyx":7542 * except ValueError: * str_list += ['gpuDirectRDMAWritesOrdering : '] * try: # <<<<<<<<<<<<<< * str_list += ['memoryPoolSupportedHandleTypes : ' + str(self.memoryPoolSupportedHandleTypes)] * 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/cudart.pyx":7546 * except ValueError: * str_list += ['memoryPoolSupportedHandleTypes : '] * 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/cudart.pyx":7547 * str_list += ['memoryPoolSupportedHandleTypes : '] * try: * str_list += ['deferredMappingCudaArraySupported : ' + str(self.deferredMappingCudaArraySupported)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['deferredMappingCudaArraySupported : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_deferredMappingCudaArraySupporte_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7547, __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, 7547, __pyx_L723_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_deferredMappingCudaArraySupporte, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7547, __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, 7547, __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)) __PYX_ERR(0, 7547, __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, 7547, __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/cudart.pyx":7546 * except ValueError: * str_list += ['memoryPoolSupportedHandleTypes : '] * 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_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/cudart.pyx":7548 * try: * str_list += ['deferredMappingCudaArraySupported : ' + str(self.deferredMappingCudaArraySupported)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['deferredMappingCudaArraySupported : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7548, __pyx_L725_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7549 * str_list += ['deferredMappingCudaArraySupported : ' + str(self.deferredMappingCudaArraySupported)] * except ValueError: * str_list += ['deferredMappingCudaArraySupported : '] # <<<<<<<<<<<<<< * try: * str_list += ['ipcEventSupported : ' + str(self.ipcEventSupported)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7549, __pyx_L725_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_deferredMappingCudaArraySupporte_3); __Pyx_GIVEREF(__pyx_kp_u_deferredMappingCudaArraySupporte_3); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_deferredMappingCudaArraySupporte_3)) __PYX_ERR(0, 7549, __pyx_L725_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7549, __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/cudart.pyx":7546 * except ValueError: * str_list += ['memoryPoolSupportedHandleTypes : '] * try: # <<<<<<<<<<<<<< * str_list += ['deferredMappingCudaArraySupported : ' + str(self.deferredMappingCudaArraySupported)] * 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/cudart.pyx":7550 * except ValueError: * str_list += ['deferredMappingCudaArraySupported : '] * 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/cudart.pyx":7551 * str_list += ['deferredMappingCudaArraySupported : '] * try: * str_list += ['ipcEventSupported : ' + str(self.ipcEventSupported)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['ipcEventSupported : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ipcEventSupported_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7551, __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, 7551, __pyx_L731_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_ipcEventSupported, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7551, __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, 7551, __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)) __PYX_ERR(0, 7551, __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, 7551, __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/cudart.pyx":7550 * except ValueError: * str_list += ['deferredMappingCudaArraySupported : '] * 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_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/cudart.pyx":7552 * try: * str_list += ['ipcEventSupported : ' + str(self.ipcEventSupported)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['ipcEventSupported : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7552, __pyx_L733_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7553 * str_list += ['ipcEventSupported : ' + str(self.ipcEventSupported)] * except ValueError: * str_list += ['ipcEventSupported : '] # <<<<<<<<<<<<<< * try: * str_list += ['clusterLaunch : ' + str(self.clusterLaunch)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7553, __pyx_L733_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_ipcEventSupported_ValueError); __Pyx_GIVEREF(__pyx_kp_u_ipcEventSupported_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_ipcEventSupported_ValueError)) __PYX_ERR(0, 7553, __pyx_L733_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7553, __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/cudart.pyx":7550 * except ValueError: * str_list += ['deferredMappingCudaArraySupported : '] * try: # <<<<<<<<<<<<<< * str_list += ['ipcEventSupported : ' + str(self.ipcEventSupported)] * 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/cudart.pyx":7554 * except ValueError: * str_list += ['ipcEventSupported : '] * 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/cudart.pyx":7555 * str_list += ['ipcEventSupported : '] * try: * str_list += ['clusterLaunch : ' + str(self.clusterLaunch)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['clusterLaunch : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_clusterLaunch_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7555, __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, 7555, __pyx_L739_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_clusterLaunch, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7555, __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, 7555, __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)) __PYX_ERR(0, 7555, __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, 7555, __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/cudart.pyx":7554 * except ValueError: * str_list += ['ipcEventSupported : '] * 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_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/cudart.pyx":7556 * try: * str_list += ['clusterLaunch : ' + str(self.clusterLaunch)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['clusterLaunch : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7556, __pyx_L741_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7557 * str_list += ['clusterLaunch : ' + str(self.clusterLaunch)] * except ValueError: * str_list += ['clusterLaunch : '] # <<<<<<<<<<<<<< * try: * str_list += ['unifiedFunctionPointers : ' + str(self.unifiedFunctionPointers)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7557, __pyx_L741_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_clusterLaunch_ValueError); __Pyx_GIVEREF(__pyx_kp_u_clusterLaunch_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_clusterLaunch_ValueError)) __PYX_ERR(0, 7557, __pyx_L741_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7557, __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/cudart.pyx":7554 * except ValueError: * str_list += ['ipcEventSupported : '] * try: # <<<<<<<<<<<<<< * str_list += ['clusterLaunch : ' + str(self.clusterLaunch)] * 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/cudart.pyx":7558 * except ValueError: * str_list += ['clusterLaunch : '] * 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/cudart.pyx":7559 * str_list += ['clusterLaunch : '] * try: * str_list += ['unifiedFunctionPointers : ' + str(self.unifiedFunctionPointers)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['unifiedFunctionPointers : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_unifiedFunctionPointers_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7559, __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, 7559, __pyx_L747_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_unifiedFunctionPointers, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7559, __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, 7559, __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)) __PYX_ERR(0, 7559, __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, 7559, __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/cudart.pyx":7558 * except ValueError: * str_list += ['clusterLaunch : '] * 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_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/cudart.pyx":7560 * try: * str_list += ['unifiedFunctionPointers : ' + str(self.unifiedFunctionPointers)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['unifiedFunctionPointers : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7560, __pyx_L749_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7561 * str_list += ['unifiedFunctionPointers : ' + str(self.unifiedFunctionPointers)] * except ValueError: * str_list += ['unifiedFunctionPointers : '] # <<<<<<<<<<<<<< * try: * str_list += ['reserved2 : ' + str(self.reserved2)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7561, __pyx_L749_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_unifiedFunctionPointers_ValueErr); __Pyx_GIVEREF(__pyx_kp_u_unifiedFunctionPointers_ValueErr); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_unifiedFunctionPointers_ValueErr)) __PYX_ERR(0, 7561, __pyx_L749_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7561, __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/cudart.pyx":7558 * except ValueError: * str_list += ['clusterLaunch : '] * try: # <<<<<<<<<<<<<< * str_list += ['unifiedFunctionPointers : ' + str(self.unifiedFunctionPointers)] * 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/cudart.pyx":7562 * except ValueError: * str_list += ['unifiedFunctionPointers : '] * 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/cudart.pyx":7563 * str_list += ['unifiedFunctionPointers : '] * try: * str_list += ['reserved2 : ' + str(self.reserved2)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['reserved2 : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_reserved2_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7563, __pyx_L755_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7563, __pyx_L755_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_reserved2, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7563, __pyx_L755_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, 7563, __pyx_L755_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_7); if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7)) __PYX_ERR(0, 7563, __pyx_L755_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, 7563, __pyx_L755_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/cudart.pyx":7562 * except ValueError: * str_list += ['unifiedFunctionPointers : '] * 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_L760_try_end; __pyx_L755_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/cudart.pyx":7564 * try: * str_list += ['reserved2 : ' + str(self.reserved2)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['reserved2 : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7564, __pyx_L757_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7565 * str_list += ['reserved2 : ' + str(self.reserved2)] * except ValueError: * str_list += ['reserved2 : '] # <<<<<<<<<<<<<< * try: * str_list += ['reserved1 : ' + str(self.reserved1)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7565, __pyx_L757_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_reserved2_ValueError); __Pyx_GIVEREF(__pyx_kp_u_reserved2_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_reserved2_ValueError)) __PYX_ERR(0, 7565, __pyx_L757_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7565, __pyx_L757_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_L756_exception_handled; } goto __pyx_L757_except_error; /* "cuda/cudart.pyx":7562 * except ValueError: * str_list += ['unifiedFunctionPointers : '] * try: # <<<<<<<<<<<<<< * str_list += ['reserved2 : ' + str(self.reserved2)] * except ValueError: */ __pyx_L757_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_L756_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_L760_try_end:; } /* "cuda/cudart.pyx":7566 * except ValueError: * str_list += ['reserved2 : '] * 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/cudart.pyx":7567 * str_list += ['reserved2 : '] * try: * str_list += ['reserved1 : ' + str(self.reserved1)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['reserved1 : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_reserved1_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7567, __pyx_L763_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7567, __pyx_L763_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_reserved1, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7567, __pyx_L763_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, 7567, __pyx_L763_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_6); if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6)) __PYX_ERR(0, 7567, __pyx_L763_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, 7567, __pyx_L763_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/cudart.pyx":7566 * except ValueError: * str_list += ['reserved2 : '] * 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_L768_try_end; __pyx_L763_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/cudart.pyx":7568 * try: * str_list += ['reserved1 : ' + str(self.reserved1)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['reserved1 : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 7568, __pyx_L765_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":7569 * str_list += ['reserved1 : ' + str(self.reserved1)] * except ValueError: * str_list += ['reserved1 : '] # <<<<<<<<<<<<<< * try: * str_list += ['reserved : ' + str(self.reserved)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7569, __pyx_L765_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_reserved1_ValueError); __Pyx_GIVEREF(__pyx_kp_u_reserved1_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_reserved1_ValueError)) __PYX_ERR(0, 7569, __pyx_L765_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7569, __pyx_L765_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_L764_exception_handled; } goto __pyx_L765_except_error; /* "cuda/cudart.pyx":7566 * except ValueError: * str_list += ['reserved2 : '] * try: # <<<<<<<<<<<<<< * str_list += ['reserved1 : ' + str(self.reserved1)] * except ValueError: */ __pyx_L765_except_error:; __Pyx_XGIVEREF(__pyx_t_3); __Pyx_XGIVEREF(__pyx_t_4); __Pyx_XGIVEREF(__pyx_t_5); __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5); goto __pyx_L1_error; __pyx_L764_exception_handled:; __Pyx_XGIVEREF(__pyx_t_3); __Pyx_XGIVEREF(__pyx_t_4); __Pyx_XGIVEREF(__pyx_t_5); __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5); __pyx_L768_try_end:; } /* "cuda/cudart.pyx":7570 * except ValueError: * str_list += ['reserved1 : '] * 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/cudart.pyx":7571 * str_list += ['reserved1 : '] * try: * str_list += ['reserved : ' + str(self.reserved)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['reserved : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_reserved_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7571, __pyx_L771_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7571, __pyx_L771_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_reserved, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7571, __pyx_L771_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, 7571, __pyx_L771_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_7); if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7)) __PYX_ERR(0, 7571, __pyx_L771_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, 7571, __pyx_L771_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/cudart.pyx":7570 * except ValueError: * str_list += ['reserved1 : '] * 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_L776_try_end; __pyx_L771_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/cudart.pyx":7572 * try: * str_list += ['reserved : ' + str(self.reserved)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['reserved : '] * return '\n'.join(str_list) */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 7572, __pyx_L773_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":7573 * str_list += ['reserved : ' + str(self.reserved)] * except ValueError: * str_list += ['reserved : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7573, __pyx_L773_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_reserved_ValueError); __Pyx_GIVEREF(__pyx_kp_u_reserved_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_reserved_ValueError)) __PYX_ERR(0, 7573, __pyx_L773_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7573, __pyx_L773_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_L772_exception_handled; } goto __pyx_L773_except_error; /* "cuda/cudart.pyx":7570 * except ValueError: * str_list += ['reserved1 : '] * try: # <<<<<<<<<<<<<< * str_list += ['reserved : ' + str(self.reserved)] * except ValueError: */ __pyx_L773_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_L772_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_L776_try_end:; } /* "cuda/cudart.pyx":7574 * except ValueError: * str_list += ['reserved : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_6 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7574, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7188 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":7576 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def name(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":7187 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XDECREF(__pyx_9genexpr27__pyx_v_line); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7577 * else: * return '' * @property # <<<<<<<<<<<<<< * def name(self): * return self._ptr[0].name */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_4name_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_4name___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_4name___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7577, 0, __PYX_ERR(0, 7577, __pyx_L1_error)); /* "cuda/cudart.pyx":7579 * @property * def name(self): * return self._ptr[0].name # <<<<<<<<<<<<<< * @name.setter * def name(self, name): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyObject_FromString((__pyx_v_self->_ptr[0]).name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7579, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7577 * else: * return '' * @property # <<<<<<<<<<<<<< * def name(self): * return self._ptr[0].name */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.name.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7580 * def name(self): * return self._ptr[0].name * @name.setter # <<<<<<<<<<<<<< * def name(self, name): * pass */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_4name_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_name)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_4name_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_name) { int __pyx_r; __Pyx_TraceDeclarations char __pyx_t_1[0x100]; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7580, 0, __PYX_ERR(0, 7580, __pyx_L1_error)); /* "cuda/cudart.pyx":7583 * def name(self, name): * pass * self._ptr[0].name = name # <<<<<<<<<<<<<< * @property * def uuid(self): */ if (unlikely((__Pyx_carray_from_py_char(__pyx_v_name, __pyx_t_1, 0x100) < 0))) __PYX_ERR(0, 7583, __pyx_L1_error) if (unlikely((0x100) != (0x100))) { PyErr_Format(PyExc_ValueError, "Assignment to slice of wrong length, expected %" CYTHON_FORMAT_SSIZE_T "d, got %" CYTHON_FORMAT_SSIZE_T "d", (Py_ssize_t)(0x100), (Py_ssize_t)(0x100)); __PYX_ERR(0, 7583, __pyx_L1_error) } memcpy(&((__pyx_v_self->_ptr[0]).name[0]), __pyx_t_1, sizeof((__pyx_v_self->_ptr[0]).name[0]) * (0x100)); /* "cuda/cudart.pyx":7580 * def name(self): * return self._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.cudart.cudaDeviceProp.name.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7584 * pass * self._ptr[0].name = name * @property # <<<<<<<<<<<<<< * def uuid(self): * return self._uuid */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_4uuid_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_4uuid___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_4uuid___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7584, 0, __PYX_ERR(0, 7584, __pyx_L1_error)); /* "cuda/cudart.pyx":7586 * @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/cudart.pyx":7584 * pass * self._ptr[0].name = name * @property # <<<<<<<<<<<<<< * def uuid(self): * return self._uuid */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.uuid.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7587 * def uuid(self): * return self._uuid * @uuid.setter # <<<<<<<<<<<<<< * def uuid(self, uuid not None : cudaUUID_t): * string.memcpy(&self._ptr[0].uuid, uuid.getPtr(), sizeof(self._ptr[0].uuid)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_4uuid_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_uuid); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_cudaUUID_t, 0, "uuid", 0))) __PYX_ERR(0, 7588, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_4uuid_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_cudaUUID_t *)__pyx_v_uuid)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_4uuid_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_cudaUUID_t *__pyx_v_uuid) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 7587, 0, __PYX_ERR(0, 7587, __pyx_L1_error)); /* "cuda/cudart.pyx":7589 * @uuid.setter * def uuid(self, uuid not None : cudaUUID_t): * string.memcpy(&self._ptr[0].uuid, uuid.getPtr(), sizeof(self._ptr[0].uuid)) # <<<<<<<<<<<<<< * @property * def luid(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_uuid), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7589, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7589, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 7589, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).uuid), ((cudaUUID_t *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).uuid)))); /* "cuda/cudart.pyx":7587 * def uuid(self): * return self._uuid * @uuid.setter # <<<<<<<<<<<<<< * def uuid(self, uuid not None : cudaUUID_t): * string.memcpy(&self._ptr[0].uuid, uuid.getPtr(), sizeof(self._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_AddTraceback("cuda.cudart.cudaDeviceProp.uuid.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7590 * def uuid(self, uuid not None : cudaUUID_t): * string.memcpy(&self._ptr[0].uuid, uuid.getPtr(), sizeof(self._ptr[0].uuid)) * @property # <<<<<<<<<<<<<< * def luid(self): * return PyBytes_FromStringAndSize(self._ptr[0].luid, 8) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_4luid_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_4luid___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_4luid___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7590, 0, __PYX_ERR(0, 7590, __pyx_L1_error)); /* "cuda/cudart.pyx":7592 * @property * def luid(self): * return PyBytes_FromStringAndSize(self._ptr[0].luid, 8) # <<<<<<<<<<<<<< * @luid.setter * def luid(self, luid): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyBytes_FromStringAndSize((__pyx_v_self->_ptr[0]).luid, 8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7592, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7590 * def uuid(self, uuid not None : cudaUUID_t): * string.memcpy(&self._ptr[0].uuid, uuid.getPtr(), sizeof(self._ptr[0].uuid)) * @property # <<<<<<<<<<<<<< * def luid(self): * return PyBytes_FromStringAndSize(self._ptr[0].luid, 8) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.luid.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7593 * def luid(self): * return PyBytes_FromStringAndSize(self._ptr[0].luid, 8) * @luid.setter # <<<<<<<<<<<<<< * def luid(self, luid): * if len(luid) != 8: */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_4luid_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_luid); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_4luid_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_luid)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_4luid_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_luid) { PyObject *__pyx_v_i = NULL; PyObject *__pyx_v_b = NULL; int __pyx_r; __Pyx_TraceDeclarations __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)(PyObject *); PyObject *__pyx_t_6 = NULL; int __pyx_t_7; char __pyx_t_8; Py_ssize_t __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 7593, 0, __PYX_ERR(0, 7593, __pyx_L1_error)); /* "cuda/cudart.pyx":7595 * @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, 7595, __pyx_L1_error) __pyx_t_2 = (__pyx_t_1 != 8); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":7596 * 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_1 = PyObject_Length(__pyx_v_luid); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 7596, __pyx_L1_error) __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7596, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7596, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_luid_length_must_be_8_is, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7596, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7596, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __PYX_ERR(0, 7596, __pyx_L1_error) /* "cuda/cudart.pyx":7595 * @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/cudart.pyx":7597 * 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/cudart.pyx":7598 * 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_int_0); __pyx_t_4 = __pyx_int_0; if (likely(PyList_CheckExact(__pyx_v_luid)) || PyTuple_CheckExact(__pyx_v_luid)) { __pyx_t_3 = __pyx_v_luid; __Pyx_INCREF(__pyx_t_3); __pyx_t_1 = 0; __pyx_t_5 = NULL; } else { __pyx_t_1 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_luid); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7598, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 7598, __pyx_L1_error) } for (;;) { if (likely(!__pyx_t_5)) { if (likely(PyList_CheckExact(__pyx_t_3))) { { Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 7598, __pyx_L1_error) #endif if (__pyx_t_1 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_1); __Pyx_INCREF(__pyx_t_6); __pyx_t_1++; if (unlikely((0 < 0))) __PYX_ERR(0, 7598, __pyx_L1_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7598, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 7598, __pyx_L1_error) #endif if (__pyx_t_1 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_1); __Pyx_INCREF(__pyx_t_6); __pyx_t_1++; if (unlikely((0 < 0))) __PYX_ERR(0, 7598, __pyx_L1_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7598, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); #endif } } else { __pyx_t_6 = __pyx_t_5(__pyx_t_3); if (unlikely(!__pyx_t_6)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 7598, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_6); } __Pyx_XDECREF_SET(__pyx_v_b, __pyx_t_6); __pyx_t_6 = 0; __Pyx_INCREF(__pyx_t_4); __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_4); __pyx_t_6 = __Pyx_PyInt_AddObjC(__pyx_t_4, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7598, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = __pyx_t_6; __pyx_t_6 = 0; /* "cuda/cudart.pyx":7599 * if CHAR_MIN == 0: * for i, b in enumerate(luid): * if b < 0 and b > -129: # <<<<<<<<<<<<<< * b = b + 256 * self._ptr[0].luid[i] = b */ __pyx_t_6 = PyObject_RichCompare(__pyx_v_b, __pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7599, __pyx_L1_error) __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 7599, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__pyx_t_7) { } else { __pyx_t_2 = __pyx_t_7; goto __pyx_L8_bool_binop_done; } __pyx_t_6 = PyObject_RichCompare(__pyx_v_b, __pyx_int_neg_129, Py_GT); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7599, __pyx_L1_error) __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 7599, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_2 = __pyx_t_7; __pyx_L8_bool_binop_done:; if (__pyx_t_2) { /* "cuda/cudart.pyx":7600 * for i, b in enumerate(luid): * if b < 0 and b > -129: * b = b + 256 # <<<<<<<<<<<<<< * self._ptr[0].luid[i] = b * else: */ __pyx_t_6 = __Pyx_PyInt_AddObjC(__pyx_v_b, __pyx_int_256, 0x100, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7600, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF_SET(__pyx_v_b, __pyx_t_6); __pyx_t_6 = 0; /* "cuda/cudart.pyx":7599 * if CHAR_MIN == 0: * for i, b in enumerate(luid): * if b < 0 and b > -129: # <<<<<<<<<<<<<< * b = b + 256 * self._ptr[0].luid[i] = b */ } /* "cuda/cudart.pyx":7601 * if b < 0 and b > -129: * b = b + 256 * self._ptr[0].luid[i] = b # <<<<<<<<<<<<<< * else: * for i, b in enumerate(luid): */ __pyx_t_8 = __Pyx_PyInt_As_char(__pyx_v_b); if (unlikely((__pyx_t_8 == (char)-1) && PyErr_Occurred())) __PYX_ERR(0, 7601, __pyx_L1_error) __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 7601, __pyx_L1_error) ((__pyx_v_self->_ptr[0]).luid[__pyx_t_9]) = __pyx_t_8; /* "cuda/cudart.pyx":7598 * 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_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":7597 * 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/cudart.pyx":7603 * self._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_int_0); __pyx_t_4 = __pyx_int_0; if (likely(PyList_CheckExact(__pyx_v_luid)) || PyTuple_CheckExact(__pyx_v_luid)) { __pyx_t_3 = __pyx_v_luid; __Pyx_INCREF(__pyx_t_3); __pyx_t_1 = 0; __pyx_t_5 = NULL; } else { __pyx_t_1 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_luid); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7603, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 7603, __pyx_L1_error) } for (;;) { if (likely(!__pyx_t_5)) { if (likely(PyList_CheckExact(__pyx_t_3))) { { Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 7603, __pyx_L1_error) #endif if (__pyx_t_1 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_1); __Pyx_INCREF(__pyx_t_6); __pyx_t_1++; if (unlikely((0 < 0))) __PYX_ERR(0, 7603, __pyx_L1_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7603, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 7603, __pyx_L1_error) #endif if (__pyx_t_1 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_1); __Pyx_INCREF(__pyx_t_6); __pyx_t_1++; if (unlikely((0 < 0))) __PYX_ERR(0, 7603, __pyx_L1_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7603, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); #endif } } else { __pyx_t_6 = __pyx_t_5(__pyx_t_3); if (unlikely(!__pyx_t_6)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 7603, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_6); } __Pyx_XDECREF_SET(__pyx_v_b, __pyx_t_6); __pyx_t_6 = 0; __Pyx_INCREF(__pyx_t_4); __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_4); __pyx_t_6 = __Pyx_PyInt_AddObjC(__pyx_t_4, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7603, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = __pyx_t_6; __pyx_t_6 = 0; /* "cuda/cudart.pyx":7604 * else: * for i, b in enumerate(luid): * if b > 127 and b < 256: # <<<<<<<<<<<<<< * b = b - 256 * self._ptr[0].luid[i] = b */ __pyx_t_6 = PyObject_RichCompare(__pyx_v_b, __pyx_int_127, Py_GT); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7604, __pyx_L1_error) __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 7604, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__pyx_t_7) { } else { __pyx_t_2 = __pyx_t_7; goto __pyx_L14_bool_binop_done; } __pyx_t_6 = PyObject_RichCompare(__pyx_v_b, __pyx_int_256, Py_LT); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7604, __pyx_L1_error) __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 7604, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_2 = __pyx_t_7; __pyx_L14_bool_binop_done:; if (__pyx_t_2) { /* "cuda/cudart.pyx":7605 * for i, b in enumerate(luid): * if b > 127 and b < 256: * b = b - 256 # <<<<<<<<<<<<<< * self._ptr[0].luid[i] = b * @property */ __pyx_t_6 = __Pyx_PyInt_SubtractObjC(__pyx_v_b, __pyx_int_256, 0x100, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7605, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF_SET(__pyx_v_b, __pyx_t_6); __pyx_t_6 = 0; /* "cuda/cudart.pyx":7604 * else: * for i, b in enumerate(luid): * if b > 127 and b < 256: # <<<<<<<<<<<<<< * b = b - 256 * self._ptr[0].luid[i] = b */ } /* "cuda/cudart.pyx":7606 * if b > 127 and b < 256: * b = b - 256 * self._ptr[0].luid[i] = b # <<<<<<<<<<<<<< * @property * def luidDeviceNodeMask(self): */ __pyx_t_8 = __Pyx_PyInt_As_char(__pyx_v_b); if (unlikely((__pyx_t_8 == (char)-1) && PyErr_Occurred())) __PYX_ERR(0, 7606, __pyx_L1_error) __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 7606, __pyx_L1_error) ((__pyx_v_self->_ptr[0]).luid[__pyx_t_9]) = __pyx_t_8; /* "cuda/cudart.pyx":7603 * self._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_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_L4:; /* "cuda/cudart.pyx":7593 * def luid(self): * return PyBytes_FromStringAndSize(self._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_6); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7607 * b = b - 256 * self._ptr[0].luid[i] = b * @property # <<<<<<<<<<<<<< * def luidDeviceNodeMask(self): * return self._ptr[0].luidDeviceNodeMask */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_18luidDeviceNodeMask_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_18luidDeviceNodeMask___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_18luidDeviceNodeMask___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7607, 0, __PYX_ERR(0, 7607, __pyx_L1_error)); /* "cuda/cudart.pyx":7609 * @property * def luidDeviceNodeMask(self): * return self._ptr[0].luidDeviceNodeMask # <<<<<<<<<<<<<< * @luidDeviceNodeMask.setter * def luidDeviceNodeMask(self, unsigned int luidDeviceNodeMask): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).luidDeviceNodeMask); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7609, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7607 * b = b - 256 * self._ptr[0].luid[i] = b * @property # <<<<<<<<<<<<<< * def luidDeviceNodeMask(self): * return self._ptr[0].luidDeviceNodeMask */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.luidDeviceNodeMask.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7610 * def luidDeviceNodeMask(self): * return self._ptr[0].luidDeviceNodeMask * @luidDeviceNodeMask.setter # <<<<<<<<<<<<<< * def luidDeviceNodeMask(self, unsigned int luidDeviceNodeMask): * self._ptr[0].luidDeviceNodeMask = luidDeviceNodeMask */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_18luidDeviceNodeMask_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_luidDeviceNodeMask); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_luidDeviceNodeMask); if (unlikely((__pyx_v_luidDeviceNodeMask == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7611, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.luidDeviceNodeMask.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_18luidDeviceNodeMask_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((unsigned int)__pyx_v_luidDeviceNodeMask)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_18luidDeviceNodeMask_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, unsigned int __pyx_v_luidDeviceNodeMask) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7610, 0, __PYX_ERR(0, 7610, __pyx_L1_error)); /* "cuda/cudart.pyx":7612 * @luidDeviceNodeMask.setter * def luidDeviceNodeMask(self, unsigned int luidDeviceNodeMask): * self._ptr[0].luidDeviceNodeMask = luidDeviceNodeMask # <<<<<<<<<<<<<< * @property * def totalGlobalMem(self): */ (__pyx_v_self->_ptr[0]).luidDeviceNodeMask = __pyx_v_luidDeviceNodeMask; /* "cuda/cudart.pyx":7610 * def luidDeviceNodeMask(self): * return self._ptr[0].luidDeviceNodeMask * @luidDeviceNodeMask.setter # <<<<<<<<<<<<<< * def luidDeviceNodeMask(self, unsigned int luidDeviceNodeMask): * self._ptr[0].luidDeviceNodeMask = luidDeviceNodeMask */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.luidDeviceNodeMask.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7613 * def luidDeviceNodeMask(self, unsigned int luidDeviceNodeMask): * self._ptr[0].luidDeviceNodeMask = luidDeviceNodeMask * @property # <<<<<<<<<<<<<< * def totalGlobalMem(self): * return self._ptr[0].totalGlobalMem */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_14totalGlobalMem_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_14totalGlobalMem___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_14totalGlobalMem___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7613, 0, __PYX_ERR(0, 7613, __pyx_L1_error)); /* "cuda/cudart.pyx":7615 * @property * def totalGlobalMem(self): * return self._ptr[0].totalGlobalMem # <<<<<<<<<<<<<< * @totalGlobalMem.setter * def totalGlobalMem(self, size_t totalGlobalMem): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).totalGlobalMem); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7615, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7613 * def luidDeviceNodeMask(self, unsigned int luidDeviceNodeMask): * self._ptr[0].luidDeviceNodeMask = luidDeviceNodeMask * @property # <<<<<<<<<<<<<< * def totalGlobalMem(self): * return self._ptr[0].totalGlobalMem */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.totalGlobalMem.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7616 * def totalGlobalMem(self): * return self._ptr[0].totalGlobalMem * @totalGlobalMem.setter # <<<<<<<<<<<<<< * def totalGlobalMem(self, size_t totalGlobalMem): * self._ptr[0].totalGlobalMem = totalGlobalMem */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_14totalGlobalMem_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_totalGlobalMem); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_totalGlobalMem); if (unlikely((__pyx_v_totalGlobalMem == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 7617, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.totalGlobalMem.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_14totalGlobalMem_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((size_t)__pyx_v_totalGlobalMem)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_14totalGlobalMem_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, size_t __pyx_v_totalGlobalMem) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7616, 0, __PYX_ERR(0, 7616, __pyx_L1_error)); /* "cuda/cudart.pyx":7618 * @totalGlobalMem.setter * def totalGlobalMem(self, size_t totalGlobalMem): * self._ptr[0].totalGlobalMem = totalGlobalMem # <<<<<<<<<<<<<< * @property * def sharedMemPerBlock(self): */ (__pyx_v_self->_ptr[0]).totalGlobalMem = __pyx_v_totalGlobalMem; /* "cuda/cudart.pyx":7616 * def totalGlobalMem(self): * return self._ptr[0].totalGlobalMem * @totalGlobalMem.setter # <<<<<<<<<<<<<< * def totalGlobalMem(self, size_t totalGlobalMem): * self._ptr[0].totalGlobalMem = totalGlobalMem */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.totalGlobalMem.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7619 * def totalGlobalMem(self, size_t totalGlobalMem): * self._ptr[0].totalGlobalMem = totalGlobalMem * @property # <<<<<<<<<<<<<< * def sharedMemPerBlock(self): * return self._ptr[0].sharedMemPerBlock */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_17sharedMemPerBlock_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_17sharedMemPerBlock___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_17sharedMemPerBlock___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7619, 0, __PYX_ERR(0, 7619, __pyx_L1_error)); /* "cuda/cudart.pyx":7621 * @property * def sharedMemPerBlock(self): * return self._ptr[0].sharedMemPerBlock # <<<<<<<<<<<<<< * @sharedMemPerBlock.setter * def sharedMemPerBlock(self, size_t sharedMemPerBlock): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).sharedMemPerBlock); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7621, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7619 * def totalGlobalMem(self, size_t totalGlobalMem): * self._ptr[0].totalGlobalMem = totalGlobalMem * @property # <<<<<<<<<<<<<< * def sharedMemPerBlock(self): * return self._ptr[0].sharedMemPerBlock */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.sharedMemPerBlock.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7622 * def sharedMemPerBlock(self): * return self._ptr[0].sharedMemPerBlock * @sharedMemPerBlock.setter # <<<<<<<<<<<<<< * def sharedMemPerBlock(self, size_t sharedMemPerBlock): * self._ptr[0].sharedMemPerBlock = sharedMemPerBlock */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_17sharedMemPerBlock_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_sharedMemPerBlock); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_sharedMemPerBlock); if (unlikely((__pyx_v_sharedMemPerBlock == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 7623, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.sharedMemPerBlock.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_17sharedMemPerBlock_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((size_t)__pyx_v_sharedMemPerBlock)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_17sharedMemPerBlock_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, size_t __pyx_v_sharedMemPerBlock) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7622, 0, __PYX_ERR(0, 7622, __pyx_L1_error)); /* "cuda/cudart.pyx":7624 * @sharedMemPerBlock.setter * def sharedMemPerBlock(self, size_t sharedMemPerBlock): * self._ptr[0].sharedMemPerBlock = sharedMemPerBlock # <<<<<<<<<<<<<< * @property * def regsPerBlock(self): */ (__pyx_v_self->_ptr[0]).sharedMemPerBlock = __pyx_v_sharedMemPerBlock; /* "cuda/cudart.pyx":7622 * def sharedMemPerBlock(self): * return self._ptr[0].sharedMemPerBlock * @sharedMemPerBlock.setter # <<<<<<<<<<<<<< * def sharedMemPerBlock(self, size_t sharedMemPerBlock): * self._ptr[0].sharedMemPerBlock = sharedMemPerBlock */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.sharedMemPerBlock.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7625 * def sharedMemPerBlock(self, size_t sharedMemPerBlock): * self._ptr[0].sharedMemPerBlock = sharedMemPerBlock * @property # <<<<<<<<<<<<<< * def regsPerBlock(self): * return self._ptr[0].regsPerBlock */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_12regsPerBlock_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_12regsPerBlock___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_12regsPerBlock___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7625, 0, __PYX_ERR(0, 7625, __pyx_L1_error)); /* "cuda/cudart.pyx":7627 * @property * def regsPerBlock(self): * return self._ptr[0].regsPerBlock # <<<<<<<<<<<<<< * @regsPerBlock.setter * def regsPerBlock(self, int regsPerBlock): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).regsPerBlock); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7627, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7625 * def sharedMemPerBlock(self, size_t sharedMemPerBlock): * self._ptr[0].sharedMemPerBlock = sharedMemPerBlock * @property # <<<<<<<<<<<<<< * def regsPerBlock(self): * return self._ptr[0].regsPerBlock */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.regsPerBlock.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7628 * def regsPerBlock(self): * return self._ptr[0].regsPerBlock * @regsPerBlock.setter # <<<<<<<<<<<<<< * def regsPerBlock(self, int regsPerBlock): * self._ptr[0].regsPerBlock = regsPerBlock */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_12regsPerBlock_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_regsPerBlock); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_regsPerBlock); if (unlikely((__pyx_v_regsPerBlock == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7629, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.regsPerBlock.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_12regsPerBlock_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_regsPerBlock)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_12regsPerBlock_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_regsPerBlock) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7628, 0, __PYX_ERR(0, 7628, __pyx_L1_error)); /* "cuda/cudart.pyx":7630 * @regsPerBlock.setter * def regsPerBlock(self, int regsPerBlock): * self._ptr[0].regsPerBlock = regsPerBlock # <<<<<<<<<<<<<< * @property * def warpSize(self): */ (__pyx_v_self->_ptr[0]).regsPerBlock = __pyx_v_regsPerBlock; /* "cuda/cudart.pyx":7628 * def regsPerBlock(self): * return self._ptr[0].regsPerBlock * @regsPerBlock.setter # <<<<<<<<<<<<<< * def regsPerBlock(self, int regsPerBlock): * self._ptr[0].regsPerBlock = regsPerBlock */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.regsPerBlock.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7631 * def regsPerBlock(self, int regsPerBlock): * self._ptr[0].regsPerBlock = regsPerBlock * @property # <<<<<<<<<<<<<< * def warpSize(self): * return self._ptr[0].warpSize */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_8warpSize_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_8warpSize___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_8warpSize___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7631, 0, __PYX_ERR(0, 7631, __pyx_L1_error)); /* "cuda/cudart.pyx":7633 * @property * def warpSize(self): * return self._ptr[0].warpSize # <<<<<<<<<<<<<< * @warpSize.setter * def warpSize(self, int warpSize): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).warpSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7633, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7631 * def regsPerBlock(self, int regsPerBlock): * self._ptr[0].regsPerBlock = regsPerBlock * @property # <<<<<<<<<<<<<< * def warpSize(self): * return self._ptr[0].warpSize */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.warpSize.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7634 * def warpSize(self): * return self._ptr[0].warpSize * @warpSize.setter # <<<<<<<<<<<<<< * def warpSize(self, int warpSize): * self._ptr[0].warpSize = warpSize */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_8warpSize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_warpSize); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_warpSize); if (unlikely((__pyx_v_warpSize == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7635, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.warpSize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_8warpSize_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_warpSize)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_8warpSize_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_warpSize) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7634, 0, __PYX_ERR(0, 7634, __pyx_L1_error)); /* "cuda/cudart.pyx":7636 * @warpSize.setter * def warpSize(self, int warpSize): * self._ptr[0].warpSize = warpSize # <<<<<<<<<<<<<< * @property * def memPitch(self): */ (__pyx_v_self->_ptr[0]).warpSize = __pyx_v_warpSize; /* "cuda/cudart.pyx":7634 * def warpSize(self): * return self._ptr[0].warpSize * @warpSize.setter # <<<<<<<<<<<<<< * def warpSize(self, int warpSize): * self._ptr[0].warpSize = warpSize */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.warpSize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7637 * def warpSize(self, int warpSize): * self._ptr[0].warpSize = warpSize * @property # <<<<<<<<<<<<<< * def memPitch(self): * return self._ptr[0].memPitch */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_8memPitch_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_8memPitch___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_8memPitch___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7637, 0, __PYX_ERR(0, 7637, __pyx_L1_error)); /* "cuda/cudart.pyx":7639 * @property * def memPitch(self): * return self._ptr[0].memPitch # <<<<<<<<<<<<<< * @memPitch.setter * def memPitch(self, size_t memPitch): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).memPitch); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7639, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7637 * def warpSize(self, int warpSize): * self._ptr[0].warpSize = warpSize * @property # <<<<<<<<<<<<<< * def memPitch(self): * return self._ptr[0].memPitch */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.memPitch.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7640 * def memPitch(self): * return self._ptr[0].memPitch * @memPitch.setter # <<<<<<<<<<<<<< * def memPitch(self, size_t memPitch): * self._ptr[0].memPitch = memPitch */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_8memPitch_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_memPitch); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_memPitch); if (unlikely((__pyx_v_memPitch == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 7641, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.memPitch.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_8memPitch_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((size_t)__pyx_v_memPitch)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_8memPitch_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, size_t __pyx_v_memPitch) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7640, 0, __PYX_ERR(0, 7640, __pyx_L1_error)); /* "cuda/cudart.pyx":7642 * @memPitch.setter * def memPitch(self, size_t memPitch): * self._ptr[0].memPitch = memPitch # <<<<<<<<<<<<<< * @property * def maxThreadsPerBlock(self): */ (__pyx_v_self->_ptr[0]).memPitch = __pyx_v_memPitch; /* "cuda/cudart.pyx":7640 * def memPitch(self): * return self._ptr[0].memPitch * @memPitch.setter # <<<<<<<<<<<<<< * def memPitch(self, size_t memPitch): * self._ptr[0].memPitch = memPitch */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.memPitch.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7643 * def memPitch(self, size_t memPitch): * self._ptr[0].memPitch = memPitch * @property # <<<<<<<<<<<<<< * def maxThreadsPerBlock(self): * return self._ptr[0].maxThreadsPerBlock */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_18maxThreadsPerBlock_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_18maxThreadsPerBlock___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_18maxThreadsPerBlock___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7643, 0, __PYX_ERR(0, 7643, __pyx_L1_error)); /* "cuda/cudart.pyx":7645 * @property * def maxThreadsPerBlock(self): * return self._ptr[0].maxThreadsPerBlock # <<<<<<<<<<<<<< * @maxThreadsPerBlock.setter * def maxThreadsPerBlock(self, int maxThreadsPerBlock): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).maxThreadsPerBlock); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7645, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7643 * def memPitch(self, size_t memPitch): * self._ptr[0].memPitch = memPitch * @property # <<<<<<<<<<<<<< * def maxThreadsPerBlock(self): * return self._ptr[0].maxThreadsPerBlock */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxThreadsPerBlock.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7646 * def maxThreadsPerBlock(self): * return self._ptr[0].maxThreadsPerBlock * @maxThreadsPerBlock.setter # <<<<<<<<<<<<<< * def maxThreadsPerBlock(self, int maxThreadsPerBlock): * self._ptr[0].maxThreadsPerBlock = maxThreadsPerBlock */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_18maxThreadsPerBlock_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxThreadsPerBlock); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_maxThreadsPerBlock); if (unlikely((__pyx_v_maxThreadsPerBlock == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7647, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxThreadsPerBlock.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_18maxThreadsPerBlock_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_maxThreadsPerBlock)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_18maxThreadsPerBlock_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_maxThreadsPerBlock) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7646, 0, __PYX_ERR(0, 7646, __pyx_L1_error)); /* "cuda/cudart.pyx":7648 * @maxThreadsPerBlock.setter * def maxThreadsPerBlock(self, int maxThreadsPerBlock): * self._ptr[0].maxThreadsPerBlock = maxThreadsPerBlock # <<<<<<<<<<<<<< * @property * def maxThreadsDim(self): */ (__pyx_v_self->_ptr[0]).maxThreadsPerBlock = __pyx_v_maxThreadsPerBlock; /* "cuda/cudart.pyx":7646 * def maxThreadsPerBlock(self): * return self._ptr[0].maxThreadsPerBlock * @maxThreadsPerBlock.setter # <<<<<<<<<<<<<< * def maxThreadsPerBlock(self, int maxThreadsPerBlock): * self._ptr[0].maxThreadsPerBlock = maxThreadsPerBlock */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxThreadsPerBlock.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7649 * def maxThreadsPerBlock(self, int maxThreadsPerBlock): * self._ptr[0].maxThreadsPerBlock = maxThreadsPerBlock * @property # <<<<<<<<<<<<<< * def maxThreadsDim(self): * return self._ptr[0].maxThreadsDim */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_13maxThreadsDim_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_13maxThreadsDim___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_13maxThreadsDim___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7649, 0, __PYX_ERR(0, 7649, __pyx_L1_error)); /* "cuda/cudart.pyx":7651 * @property * def maxThreadsDim(self): * return self._ptr[0].maxThreadsDim # <<<<<<<<<<<<<< * @maxThreadsDim.setter * def maxThreadsDim(self, maxThreadsDim): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_ptr[0]).maxThreadsDim, 3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7651, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7649 * def maxThreadsPerBlock(self, int maxThreadsPerBlock): * self._ptr[0].maxThreadsPerBlock = maxThreadsPerBlock * @property # <<<<<<<<<<<<<< * def maxThreadsDim(self): * return self._ptr[0].maxThreadsDim */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxThreadsDim.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7652 * def maxThreadsDim(self): * return self._ptr[0].maxThreadsDim * @maxThreadsDim.setter # <<<<<<<<<<<<<< * def maxThreadsDim(self, maxThreadsDim): * self._ptr[0].maxThreadsDim = maxThreadsDim */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_13maxThreadsDim_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxThreadsDim); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_13maxThreadsDim_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_maxThreadsDim)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_13maxThreadsDim_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxThreadsDim) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1[3]; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7652, 0, __PYX_ERR(0, 7652, __pyx_L1_error)); /* "cuda/cudart.pyx":7654 * @maxThreadsDim.setter * def maxThreadsDim(self, maxThreadsDim): * self._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, 7654, __pyx_L1_error) memcpy(&((__pyx_v_self->_ptr[0]).maxThreadsDim[0]), __pyx_t_1, sizeof((__pyx_v_self->_ptr[0]).maxThreadsDim[0]) * (3)); /* "cuda/cudart.pyx":7652 * def maxThreadsDim(self): * return self._ptr[0].maxThreadsDim * @maxThreadsDim.setter # <<<<<<<<<<<<<< * def maxThreadsDim(self, maxThreadsDim): * self._ptr[0].maxThreadsDim = maxThreadsDim */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxThreadsDim.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7655 * def maxThreadsDim(self, maxThreadsDim): * self._ptr[0].maxThreadsDim = maxThreadsDim * @property # <<<<<<<<<<<<<< * def maxGridSize(self): * return self._ptr[0].maxGridSize */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_11maxGridSize_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_11maxGridSize___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_11maxGridSize___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7655, 0, __PYX_ERR(0, 7655, __pyx_L1_error)); /* "cuda/cudart.pyx":7657 * @property * def maxGridSize(self): * return self._ptr[0].maxGridSize # <<<<<<<<<<<<<< * @maxGridSize.setter * def maxGridSize(self, maxGridSize): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_ptr[0]).maxGridSize, 3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7657, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7655 * def maxThreadsDim(self, maxThreadsDim): * self._ptr[0].maxThreadsDim = maxThreadsDim * @property # <<<<<<<<<<<<<< * def maxGridSize(self): * return self._ptr[0].maxGridSize */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxGridSize.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7658 * def maxGridSize(self): * return self._ptr[0].maxGridSize * @maxGridSize.setter # <<<<<<<<<<<<<< * def maxGridSize(self, maxGridSize): * self._ptr[0].maxGridSize = maxGridSize */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_11maxGridSize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxGridSize); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_11maxGridSize_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_maxGridSize)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_11maxGridSize_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxGridSize) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1[3]; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7658, 0, __PYX_ERR(0, 7658, __pyx_L1_error)); /* "cuda/cudart.pyx":7660 * @maxGridSize.setter * def maxGridSize(self, maxGridSize): * self._ptr[0].maxGridSize = maxGridSize # <<<<<<<<<<<<<< * @property * def clockRate(self): */ if (unlikely((__Pyx_carray_from_py_int(__pyx_v_maxGridSize, __pyx_t_1, 3) < 0))) __PYX_ERR(0, 7660, __pyx_L1_error) memcpy(&((__pyx_v_self->_ptr[0]).maxGridSize[0]), __pyx_t_1, sizeof((__pyx_v_self->_ptr[0]).maxGridSize[0]) * (3)); /* "cuda/cudart.pyx":7658 * def maxGridSize(self): * return self._ptr[0].maxGridSize * @maxGridSize.setter # <<<<<<<<<<<<<< * def maxGridSize(self, maxGridSize): * self._ptr[0].maxGridSize = maxGridSize */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxGridSize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7661 * def maxGridSize(self, maxGridSize): * self._ptr[0].maxGridSize = maxGridSize * @property # <<<<<<<<<<<<<< * def clockRate(self): * return self._ptr[0].clockRate */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_9clockRate_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_9clockRate_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_9clockRate___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_9clockRate___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7661, 0, __PYX_ERR(0, 7661, __pyx_L1_error)); /* "cuda/cudart.pyx":7663 * @property * def clockRate(self): * return self._ptr[0].clockRate # <<<<<<<<<<<<<< * @clockRate.setter * def clockRate(self, int clockRate): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).clockRate); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7663, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7661 * def maxGridSize(self, maxGridSize): * self._ptr[0].maxGridSize = maxGridSize * @property # <<<<<<<<<<<<<< * def clockRate(self): * return self._ptr[0].clockRate */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.clockRate.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7664 * def clockRate(self): * return self._ptr[0].clockRate * @clockRate.setter # <<<<<<<<<<<<<< * def clockRate(self, int clockRate): * self._ptr[0].clockRate = clockRate */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_9clockRate_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_clockRate); /*proto*/ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_9clockRate_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_clockRate) { int __pyx_v_clockRate; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; int __pyx_lineno = 0; const char *__pyx_filename = 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_clockRate); { __pyx_v_clockRate = __Pyx_PyInt_As_int(__pyx_arg_clockRate); if (unlikely((__pyx_v_clockRate == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7665, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.clockRate.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_9clockRate_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_clockRate)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_9clockRate_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_clockRate) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7664, 0, __PYX_ERR(0, 7664, __pyx_L1_error)); /* "cuda/cudart.pyx":7666 * @clockRate.setter * def clockRate(self, int clockRate): * self._ptr[0].clockRate = clockRate # <<<<<<<<<<<<<< * @property * def totalConstMem(self): */ (__pyx_v_self->_ptr[0]).clockRate = __pyx_v_clockRate; /* "cuda/cudart.pyx":7664 * def clockRate(self): * return self._ptr[0].clockRate * @clockRate.setter # <<<<<<<<<<<<<< * def clockRate(self, int clockRate): * self._ptr[0].clockRate = clockRate */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.clockRate.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7667 * def clockRate(self, int clockRate): * self._ptr[0].clockRate = clockRate * @property # <<<<<<<<<<<<<< * def totalConstMem(self): * return self._ptr[0].totalConstMem */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_13totalConstMem_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_13totalConstMem___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_13totalConstMem___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7667, 0, __PYX_ERR(0, 7667, __pyx_L1_error)); /* "cuda/cudart.pyx":7669 * @property * def totalConstMem(self): * return self._ptr[0].totalConstMem # <<<<<<<<<<<<<< * @totalConstMem.setter * def totalConstMem(self, size_t totalConstMem): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).totalConstMem); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7669, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7667 * def clockRate(self, int clockRate): * self._ptr[0].clockRate = clockRate * @property # <<<<<<<<<<<<<< * def totalConstMem(self): * return self._ptr[0].totalConstMem */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.totalConstMem.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7670 * def totalConstMem(self): * return self._ptr[0].totalConstMem * @totalConstMem.setter # <<<<<<<<<<<<<< * def totalConstMem(self, size_t totalConstMem): * self._ptr[0].totalConstMem = totalConstMem */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_13totalConstMem_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_totalConstMem); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_totalConstMem); if (unlikely((__pyx_v_totalConstMem == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 7671, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.totalConstMem.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_13totalConstMem_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((size_t)__pyx_v_totalConstMem)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_13totalConstMem_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, size_t __pyx_v_totalConstMem) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7670, 0, __PYX_ERR(0, 7670, __pyx_L1_error)); /* "cuda/cudart.pyx":7672 * @totalConstMem.setter * def totalConstMem(self, size_t totalConstMem): * self._ptr[0].totalConstMem = totalConstMem # <<<<<<<<<<<<<< * @property * def major(self): */ (__pyx_v_self->_ptr[0]).totalConstMem = __pyx_v_totalConstMem; /* "cuda/cudart.pyx":7670 * def totalConstMem(self): * return self._ptr[0].totalConstMem * @totalConstMem.setter # <<<<<<<<<<<<<< * def totalConstMem(self, size_t totalConstMem): * self._ptr[0].totalConstMem = totalConstMem */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.totalConstMem.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7673 * def totalConstMem(self, size_t totalConstMem): * self._ptr[0].totalConstMem = totalConstMem * @property # <<<<<<<<<<<<<< * def major(self): * return self._ptr[0].major */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_5major_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_5major___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_5major___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7673, 0, __PYX_ERR(0, 7673, __pyx_L1_error)); /* "cuda/cudart.pyx":7675 * @property * def major(self): * return self._ptr[0].major # <<<<<<<<<<<<<< * @major.setter * def major(self, int major): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).major); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7675, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7673 * def totalConstMem(self, size_t totalConstMem): * self._ptr[0].totalConstMem = totalConstMem * @property # <<<<<<<<<<<<<< * def major(self): * return self._ptr[0].major */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.major.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7676 * def major(self): * return self._ptr[0].major * @major.setter # <<<<<<<<<<<<<< * def major(self, int major): * self._ptr[0].major = major */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_5major_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_major); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_major); if (unlikely((__pyx_v_major == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7677, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.major.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_5major_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_major)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_5major_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_major) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7676, 0, __PYX_ERR(0, 7676, __pyx_L1_error)); /* "cuda/cudart.pyx":7678 * @major.setter * def major(self, int major): * self._ptr[0].major = major # <<<<<<<<<<<<<< * @property * def minor(self): */ (__pyx_v_self->_ptr[0]).major = __pyx_v_major; /* "cuda/cudart.pyx":7676 * def major(self): * return self._ptr[0].major * @major.setter # <<<<<<<<<<<<<< * def major(self, int major): * self._ptr[0].major = major */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.major.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7679 * def major(self, int major): * self._ptr[0].major = major * @property # <<<<<<<<<<<<<< * def minor(self): * return self._ptr[0].minor */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_5minor_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_5minor___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_5minor___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7679, 0, __PYX_ERR(0, 7679, __pyx_L1_error)); /* "cuda/cudart.pyx":7681 * @property * def minor(self): * return self._ptr[0].minor # <<<<<<<<<<<<<< * @minor.setter * def minor(self, int minor): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).minor); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7681, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7679 * def major(self, int major): * self._ptr[0].major = major * @property # <<<<<<<<<<<<<< * def minor(self): * return self._ptr[0].minor */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.minor.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7682 * def minor(self): * return self._ptr[0].minor * @minor.setter # <<<<<<<<<<<<<< * def minor(self, int minor): * self._ptr[0].minor = minor */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_5minor_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_minor); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_minor); if (unlikely((__pyx_v_minor == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7683, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.minor.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_5minor_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_minor)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_5minor_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_minor) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7682, 0, __PYX_ERR(0, 7682, __pyx_L1_error)); /* "cuda/cudart.pyx":7684 * @minor.setter * def minor(self, int minor): * self._ptr[0].minor = minor # <<<<<<<<<<<<<< * @property * def textureAlignment(self): */ (__pyx_v_self->_ptr[0]).minor = __pyx_v_minor; /* "cuda/cudart.pyx":7682 * def minor(self): * return self._ptr[0].minor * @minor.setter # <<<<<<<<<<<<<< * def minor(self, int minor): * self._ptr[0].minor = minor */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.minor.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7685 * def minor(self, int minor): * self._ptr[0].minor = minor * @property # <<<<<<<<<<<<<< * def textureAlignment(self): * return self._ptr[0].textureAlignment */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_16textureAlignment_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_16textureAlignment___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_16textureAlignment___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7685, 0, __PYX_ERR(0, 7685, __pyx_L1_error)); /* "cuda/cudart.pyx":7687 * @property * def textureAlignment(self): * return self._ptr[0].textureAlignment # <<<<<<<<<<<<<< * @textureAlignment.setter * def textureAlignment(self, size_t textureAlignment): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).textureAlignment); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7687, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7685 * def minor(self, int minor): * self._ptr[0].minor = minor * @property # <<<<<<<<<<<<<< * def textureAlignment(self): * return self._ptr[0].textureAlignment */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.textureAlignment.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7688 * def textureAlignment(self): * return self._ptr[0].textureAlignment * @textureAlignment.setter # <<<<<<<<<<<<<< * def textureAlignment(self, size_t textureAlignment): * self._ptr[0].textureAlignment = textureAlignment */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_16textureAlignment_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_textureAlignment); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_textureAlignment); if (unlikely((__pyx_v_textureAlignment == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 7689, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.textureAlignment.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_16textureAlignment_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((size_t)__pyx_v_textureAlignment)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_16textureAlignment_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, size_t __pyx_v_textureAlignment) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7688, 0, __PYX_ERR(0, 7688, __pyx_L1_error)); /* "cuda/cudart.pyx":7690 * @textureAlignment.setter * def textureAlignment(self, size_t textureAlignment): * self._ptr[0].textureAlignment = textureAlignment # <<<<<<<<<<<<<< * @property * def texturePitchAlignment(self): */ (__pyx_v_self->_ptr[0]).textureAlignment = __pyx_v_textureAlignment; /* "cuda/cudart.pyx":7688 * def textureAlignment(self): * return self._ptr[0].textureAlignment * @textureAlignment.setter # <<<<<<<<<<<<<< * def textureAlignment(self, size_t textureAlignment): * self._ptr[0].textureAlignment = textureAlignment */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.textureAlignment.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7691 * def textureAlignment(self, size_t textureAlignment): * self._ptr[0].textureAlignment = textureAlignment * @property # <<<<<<<<<<<<<< * def texturePitchAlignment(self): * return self._ptr[0].texturePitchAlignment */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_21texturePitchAlignment_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_21texturePitchAlignment___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_21texturePitchAlignment___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7691, 0, __PYX_ERR(0, 7691, __pyx_L1_error)); /* "cuda/cudart.pyx":7693 * @property * def texturePitchAlignment(self): * return self._ptr[0].texturePitchAlignment # <<<<<<<<<<<<<< * @texturePitchAlignment.setter * def texturePitchAlignment(self, size_t texturePitchAlignment): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).texturePitchAlignment); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7693, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7691 * def textureAlignment(self, size_t textureAlignment): * self._ptr[0].textureAlignment = textureAlignment * @property # <<<<<<<<<<<<<< * def texturePitchAlignment(self): * return self._ptr[0].texturePitchAlignment */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.texturePitchAlignment.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7694 * def texturePitchAlignment(self): * return self._ptr[0].texturePitchAlignment * @texturePitchAlignment.setter # <<<<<<<<<<<<<< * def texturePitchAlignment(self, size_t texturePitchAlignment): * self._ptr[0].texturePitchAlignment = texturePitchAlignment */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_21texturePitchAlignment_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_texturePitchAlignment); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_texturePitchAlignment); if (unlikely((__pyx_v_texturePitchAlignment == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 7695, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.texturePitchAlignment.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_21texturePitchAlignment_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((size_t)__pyx_v_texturePitchAlignment)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_21texturePitchAlignment_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, size_t __pyx_v_texturePitchAlignment) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7694, 0, __PYX_ERR(0, 7694, __pyx_L1_error)); /* "cuda/cudart.pyx":7696 * @texturePitchAlignment.setter * def texturePitchAlignment(self, size_t texturePitchAlignment): * self._ptr[0].texturePitchAlignment = texturePitchAlignment # <<<<<<<<<<<<<< * @property * def deviceOverlap(self): */ (__pyx_v_self->_ptr[0]).texturePitchAlignment = __pyx_v_texturePitchAlignment; /* "cuda/cudart.pyx":7694 * def texturePitchAlignment(self): * return self._ptr[0].texturePitchAlignment * @texturePitchAlignment.setter # <<<<<<<<<<<<<< * def texturePitchAlignment(self, size_t texturePitchAlignment): * self._ptr[0].texturePitchAlignment = texturePitchAlignment */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.texturePitchAlignment.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7697 * def texturePitchAlignment(self, size_t texturePitchAlignment): * self._ptr[0].texturePitchAlignment = texturePitchAlignment * @property # <<<<<<<<<<<<<< * def deviceOverlap(self): * return self._ptr[0].deviceOverlap */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_13deviceOverlap_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_13deviceOverlap_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_13deviceOverlap___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_13deviceOverlap___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7697, 0, __PYX_ERR(0, 7697, __pyx_L1_error)); /* "cuda/cudart.pyx":7699 * @property * def deviceOverlap(self): * return self._ptr[0].deviceOverlap # <<<<<<<<<<<<<< * @deviceOverlap.setter * def deviceOverlap(self, int deviceOverlap): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).deviceOverlap); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7699, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7697 * def texturePitchAlignment(self, size_t texturePitchAlignment): * self._ptr[0].texturePitchAlignment = texturePitchAlignment * @property # <<<<<<<<<<<<<< * def deviceOverlap(self): * return self._ptr[0].deviceOverlap */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.deviceOverlap.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7700 * def deviceOverlap(self): * return self._ptr[0].deviceOverlap * @deviceOverlap.setter # <<<<<<<<<<<<<< * def deviceOverlap(self, int deviceOverlap): * self._ptr[0].deviceOverlap = deviceOverlap */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_13deviceOverlap_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_deviceOverlap); /*proto*/ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_13deviceOverlap_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_deviceOverlap) { int __pyx_v_deviceOverlap; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; int __pyx_lineno = 0; const char *__pyx_filename = 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_deviceOverlap); { __pyx_v_deviceOverlap = __Pyx_PyInt_As_int(__pyx_arg_deviceOverlap); if (unlikely((__pyx_v_deviceOverlap == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7701, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.deviceOverlap.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_13deviceOverlap_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_deviceOverlap)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_13deviceOverlap_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_deviceOverlap) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7700, 0, __PYX_ERR(0, 7700, __pyx_L1_error)); /* "cuda/cudart.pyx":7702 * @deviceOverlap.setter * def deviceOverlap(self, int deviceOverlap): * self._ptr[0].deviceOverlap = deviceOverlap # <<<<<<<<<<<<<< * @property * def multiProcessorCount(self): */ (__pyx_v_self->_ptr[0]).deviceOverlap = __pyx_v_deviceOverlap; /* "cuda/cudart.pyx":7700 * def deviceOverlap(self): * return self._ptr[0].deviceOverlap * @deviceOverlap.setter # <<<<<<<<<<<<<< * def deviceOverlap(self, int deviceOverlap): * self._ptr[0].deviceOverlap = deviceOverlap */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.deviceOverlap.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7703 * def deviceOverlap(self, int deviceOverlap): * self._ptr[0].deviceOverlap = deviceOverlap * @property # <<<<<<<<<<<<<< * def multiProcessorCount(self): * return self._ptr[0].multiProcessorCount */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_19multiProcessorCount_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_19multiProcessorCount___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_19multiProcessorCount___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7703, 0, __PYX_ERR(0, 7703, __pyx_L1_error)); /* "cuda/cudart.pyx":7705 * @property * def multiProcessorCount(self): * return self._ptr[0].multiProcessorCount # <<<<<<<<<<<<<< * @multiProcessorCount.setter * def multiProcessorCount(self, int multiProcessorCount): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).multiProcessorCount); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7705, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7703 * def deviceOverlap(self, int deviceOverlap): * self._ptr[0].deviceOverlap = deviceOverlap * @property # <<<<<<<<<<<<<< * def multiProcessorCount(self): * return self._ptr[0].multiProcessorCount */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.multiProcessorCount.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7706 * def multiProcessorCount(self): * return self._ptr[0].multiProcessorCount * @multiProcessorCount.setter # <<<<<<<<<<<<<< * def multiProcessorCount(self, int multiProcessorCount): * self._ptr[0].multiProcessorCount = multiProcessorCount */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_19multiProcessorCount_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_multiProcessorCount); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_multiProcessorCount); if (unlikely((__pyx_v_multiProcessorCount == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7707, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.multiProcessorCount.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_19multiProcessorCount_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_multiProcessorCount)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_19multiProcessorCount_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_multiProcessorCount) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7706, 0, __PYX_ERR(0, 7706, __pyx_L1_error)); /* "cuda/cudart.pyx":7708 * @multiProcessorCount.setter * def multiProcessorCount(self, int multiProcessorCount): * self._ptr[0].multiProcessorCount = multiProcessorCount # <<<<<<<<<<<<<< * @property * def kernelExecTimeoutEnabled(self): */ (__pyx_v_self->_ptr[0]).multiProcessorCount = __pyx_v_multiProcessorCount; /* "cuda/cudart.pyx":7706 * def multiProcessorCount(self): * return self._ptr[0].multiProcessorCount * @multiProcessorCount.setter # <<<<<<<<<<<<<< * def multiProcessorCount(self, int multiProcessorCount): * self._ptr[0].multiProcessorCount = multiProcessorCount */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.multiProcessorCount.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7709 * def multiProcessorCount(self, int multiProcessorCount): * self._ptr[0].multiProcessorCount = multiProcessorCount * @property # <<<<<<<<<<<<<< * def kernelExecTimeoutEnabled(self): * return self._ptr[0].kernelExecTimeoutEnabled */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_24kernelExecTimeoutEnabled_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_24kernelExecTimeoutEnabled_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_24kernelExecTimeoutEnabled___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_24kernelExecTimeoutEnabled___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7709, 0, __PYX_ERR(0, 7709, __pyx_L1_error)); /* "cuda/cudart.pyx":7711 * @property * def kernelExecTimeoutEnabled(self): * return self._ptr[0].kernelExecTimeoutEnabled # <<<<<<<<<<<<<< * @kernelExecTimeoutEnabled.setter * def kernelExecTimeoutEnabled(self, int kernelExecTimeoutEnabled): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).kernelExecTimeoutEnabled); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7711, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7709 * def multiProcessorCount(self, int multiProcessorCount): * self._ptr[0].multiProcessorCount = multiProcessorCount * @property # <<<<<<<<<<<<<< * def kernelExecTimeoutEnabled(self): * return self._ptr[0].kernelExecTimeoutEnabled */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.kernelExecTimeoutEnabled.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7712 * def kernelExecTimeoutEnabled(self): * return self._ptr[0].kernelExecTimeoutEnabled * @kernelExecTimeoutEnabled.setter # <<<<<<<<<<<<<< * def kernelExecTimeoutEnabled(self, int kernelExecTimeoutEnabled): * self._ptr[0].kernelExecTimeoutEnabled = kernelExecTimeoutEnabled */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_24kernelExecTimeoutEnabled_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_kernelExecTimeoutEnabled); /*proto*/ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_24kernelExecTimeoutEnabled_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_kernelExecTimeoutEnabled) { int __pyx_v_kernelExecTimeoutEnabled; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; int __pyx_lineno = 0; const char *__pyx_filename = 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_kernelExecTimeoutEnabled); { __pyx_v_kernelExecTimeoutEnabled = __Pyx_PyInt_As_int(__pyx_arg_kernelExecTimeoutEnabled); if (unlikely((__pyx_v_kernelExecTimeoutEnabled == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7713, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.kernelExecTimeoutEnabled.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_24kernelExecTimeoutEnabled_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_kernelExecTimeoutEnabled)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_24kernelExecTimeoutEnabled_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_kernelExecTimeoutEnabled) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7712, 0, __PYX_ERR(0, 7712, __pyx_L1_error)); /* "cuda/cudart.pyx":7714 * @kernelExecTimeoutEnabled.setter * def kernelExecTimeoutEnabled(self, int kernelExecTimeoutEnabled): * self._ptr[0].kernelExecTimeoutEnabled = kernelExecTimeoutEnabled # <<<<<<<<<<<<<< * @property * def integrated(self): */ (__pyx_v_self->_ptr[0]).kernelExecTimeoutEnabled = __pyx_v_kernelExecTimeoutEnabled; /* "cuda/cudart.pyx":7712 * def kernelExecTimeoutEnabled(self): * return self._ptr[0].kernelExecTimeoutEnabled * @kernelExecTimeoutEnabled.setter # <<<<<<<<<<<<<< * def kernelExecTimeoutEnabled(self, int kernelExecTimeoutEnabled): * self._ptr[0].kernelExecTimeoutEnabled = kernelExecTimeoutEnabled */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.kernelExecTimeoutEnabled.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7715 * def kernelExecTimeoutEnabled(self, int kernelExecTimeoutEnabled): * self._ptr[0].kernelExecTimeoutEnabled = kernelExecTimeoutEnabled * @property # <<<<<<<<<<<<<< * def integrated(self): * return self._ptr[0].integrated */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_10integrated_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_10integrated___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_10integrated___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7715, 0, __PYX_ERR(0, 7715, __pyx_L1_error)); /* "cuda/cudart.pyx":7717 * @property * def integrated(self): * return self._ptr[0].integrated # <<<<<<<<<<<<<< * @integrated.setter * def integrated(self, int integrated): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).integrated); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7717, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7715 * def kernelExecTimeoutEnabled(self, int kernelExecTimeoutEnabled): * self._ptr[0].kernelExecTimeoutEnabled = kernelExecTimeoutEnabled * @property # <<<<<<<<<<<<<< * def integrated(self): * return self._ptr[0].integrated */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.integrated.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7718 * def integrated(self): * return self._ptr[0].integrated * @integrated.setter # <<<<<<<<<<<<<< * def integrated(self, int integrated): * self._ptr[0].integrated = integrated */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_10integrated_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_integrated); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_integrated); if (unlikely((__pyx_v_integrated == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7719, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.integrated.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_10integrated_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_integrated)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_10integrated_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_integrated) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7718, 0, __PYX_ERR(0, 7718, __pyx_L1_error)); /* "cuda/cudart.pyx":7720 * @integrated.setter * def integrated(self, int integrated): * self._ptr[0].integrated = integrated # <<<<<<<<<<<<<< * @property * def canMapHostMemory(self): */ (__pyx_v_self->_ptr[0]).integrated = __pyx_v_integrated; /* "cuda/cudart.pyx":7718 * def integrated(self): * return self._ptr[0].integrated * @integrated.setter # <<<<<<<<<<<<<< * def integrated(self, int integrated): * self._ptr[0].integrated = integrated */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.integrated.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7721 * def integrated(self, int integrated): * self._ptr[0].integrated = integrated * @property # <<<<<<<<<<<<<< * def canMapHostMemory(self): * return self._ptr[0].canMapHostMemory */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_16canMapHostMemory_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_16canMapHostMemory___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_16canMapHostMemory___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7721, 0, __PYX_ERR(0, 7721, __pyx_L1_error)); /* "cuda/cudart.pyx":7723 * @property * def canMapHostMemory(self): * return self._ptr[0].canMapHostMemory # <<<<<<<<<<<<<< * @canMapHostMemory.setter * def canMapHostMemory(self, int canMapHostMemory): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).canMapHostMemory); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7723, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7721 * def integrated(self, int integrated): * self._ptr[0].integrated = integrated * @property # <<<<<<<<<<<<<< * def canMapHostMemory(self): * return self._ptr[0].canMapHostMemory */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.canMapHostMemory.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7724 * def canMapHostMemory(self): * return self._ptr[0].canMapHostMemory * @canMapHostMemory.setter # <<<<<<<<<<<<<< * def canMapHostMemory(self, int canMapHostMemory): * self._ptr[0].canMapHostMemory = canMapHostMemory */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_16canMapHostMemory_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_canMapHostMemory); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_canMapHostMemory); if (unlikely((__pyx_v_canMapHostMemory == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7725, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.canMapHostMemory.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_16canMapHostMemory_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_canMapHostMemory)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_16canMapHostMemory_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_canMapHostMemory) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7724, 0, __PYX_ERR(0, 7724, __pyx_L1_error)); /* "cuda/cudart.pyx":7726 * @canMapHostMemory.setter * def canMapHostMemory(self, int canMapHostMemory): * self._ptr[0].canMapHostMemory = canMapHostMemory # <<<<<<<<<<<<<< * @property * def computeMode(self): */ (__pyx_v_self->_ptr[0]).canMapHostMemory = __pyx_v_canMapHostMemory; /* "cuda/cudart.pyx":7724 * def canMapHostMemory(self): * return self._ptr[0].canMapHostMemory * @canMapHostMemory.setter # <<<<<<<<<<<<<< * def canMapHostMemory(self, int canMapHostMemory): * self._ptr[0].canMapHostMemory = canMapHostMemory */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.canMapHostMemory.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7727 * def canMapHostMemory(self, int canMapHostMemory): * self._ptr[0].canMapHostMemory = canMapHostMemory * @property # <<<<<<<<<<<<<< * def computeMode(self): * return self._ptr[0].computeMode */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_11computeMode_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_11computeMode_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_11computeMode___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_11computeMode___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7727, 0, __PYX_ERR(0, 7727, __pyx_L1_error)); /* "cuda/cudart.pyx":7729 * @property * def computeMode(self): * return self._ptr[0].computeMode # <<<<<<<<<<<<<< * @computeMode.setter * def computeMode(self, int computeMode): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).computeMode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7729, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7727 * def canMapHostMemory(self, int canMapHostMemory): * self._ptr[0].canMapHostMemory = canMapHostMemory * @property # <<<<<<<<<<<<<< * def computeMode(self): * return self._ptr[0].computeMode */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.computeMode.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7730 * def computeMode(self): * return self._ptr[0].computeMode * @computeMode.setter # <<<<<<<<<<<<<< * def computeMode(self, int computeMode): * self._ptr[0].computeMode = computeMode */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_11computeMode_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_computeMode); /*proto*/ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_11computeMode_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_computeMode) { int __pyx_v_computeMode; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; int __pyx_lineno = 0; const char *__pyx_filename = 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_computeMode); { __pyx_v_computeMode = __Pyx_PyInt_As_int(__pyx_arg_computeMode); if (unlikely((__pyx_v_computeMode == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7731, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.computeMode.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_11computeMode_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_computeMode)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_11computeMode_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_computeMode) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7730, 0, __PYX_ERR(0, 7730, __pyx_L1_error)); /* "cuda/cudart.pyx":7732 * @computeMode.setter * def computeMode(self, int computeMode): * self._ptr[0].computeMode = computeMode # <<<<<<<<<<<<<< * @property * def maxTexture1D(self): */ (__pyx_v_self->_ptr[0]).computeMode = __pyx_v_computeMode; /* "cuda/cudart.pyx":7730 * def computeMode(self): * return self._ptr[0].computeMode * @computeMode.setter # <<<<<<<<<<<<<< * def computeMode(self, int computeMode): * self._ptr[0].computeMode = computeMode */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.computeMode.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7733 * def computeMode(self, int computeMode): * self._ptr[0].computeMode = computeMode * @property # <<<<<<<<<<<<<< * def maxTexture1D(self): * return self._ptr[0].maxTexture1D */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_12maxTexture1D_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_12maxTexture1D___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_12maxTexture1D___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7733, 0, __PYX_ERR(0, 7733, __pyx_L1_error)); /* "cuda/cudart.pyx":7735 * @property * def maxTexture1D(self): * return self._ptr[0].maxTexture1D # <<<<<<<<<<<<<< * @maxTexture1D.setter * def maxTexture1D(self, int maxTexture1D): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).maxTexture1D); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7735, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7733 * def computeMode(self, int computeMode): * self._ptr[0].computeMode = computeMode * @property # <<<<<<<<<<<<<< * def maxTexture1D(self): * return self._ptr[0].maxTexture1D */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxTexture1D.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7736 * def maxTexture1D(self): * return self._ptr[0].maxTexture1D * @maxTexture1D.setter # <<<<<<<<<<<<<< * def maxTexture1D(self, int maxTexture1D): * self._ptr[0].maxTexture1D = maxTexture1D */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_12maxTexture1D_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxTexture1D); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_maxTexture1D); if (unlikely((__pyx_v_maxTexture1D == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7737, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxTexture1D.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_12maxTexture1D_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_maxTexture1D)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_12maxTexture1D_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_maxTexture1D) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7736, 0, __PYX_ERR(0, 7736, __pyx_L1_error)); /* "cuda/cudart.pyx":7738 * @maxTexture1D.setter * def maxTexture1D(self, int maxTexture1D): * self._ptr[0].maxTexture1D = maxTexture1D # <<<<<<<<<<<<<< * @property * def maxTexture1DMipmap(self): */ (__pyx_v_self->_ptr[0]).maxTexture1D = __pyx_v_maxTexture1D; /* "cuda/cudart.pyx":7736 * def maxTexture1D(self): * return self._ptr[0].maxTexture1D * @maxTexture1D.setter # <<<<<<<<<<<<<< * def maxTexture1D(self, int maxTexture1D): * self._ptr[0].maxTexture1D = maxTexture1D */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxTexture1D.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7739 * def maxTexture1D(self, int maxTexture1D): * self._ptr[0].maxTexture1D = maxTexture1D * @property # <<<<<<<<<<<<<< * def maxTexture1DMipmap(self): * return self._ptr[0].maxTexture1DMipmap */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_18maxTexture1DMipmap_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_18maxTexture1DMipmap___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_18maxTexture1DMipmap___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7739, 0, __PYX_ERR(0, 7739, __pyx_L1_error)); /* "cuda/cudart.pyx":7741 * @property * def maxTexture1DMipmap(self): * return self._ptr[0].maxTexture1DMipmap # <<<<<<<<<<<<<< * @maxTexture1DMipmap.setter * def maxTexture1DMipmap(self, int maxTexture1DMipmap): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).maxTexture1DMipmap); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7741, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7739 * def maxTexture1D(self, int maxTexture1D): * self._ptr[0].maxTexture1D = maxTexture1D * @property # <<<<<<<<<<<<<< * def maxTexture1DMipmap(self): * return self._ptr[0].maxTexture1DMipmap */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxTexture1DMipmap.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7742 * def maxTexture1DMipmap(self): * return self._ptr[0].maxTexture1DMipmap * @maxTexture1DMipmap.setter # <<<<<<<<<<<<<< * def maxTexture1DMipmap(self, int maxTexture1DMipmap): * self._ptr[0].maxTexture1DMipmap = maxTexture1DMipmap */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_18maxTexture1DMipmap_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxTexture1DMipmap); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_maxTexture1DMipmap); if (unlikely((__pyx_v_maxTexture1DMipmap == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7743, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxTexture1DMipmap.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_18maxTexture1DMipmap_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_maxTexture1DMipmap)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_18maxTexture1DMipmap_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_maxTexture1DMipmap) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7742, 0, __PYX_ERR(0, 7742, __pyx_L1_error)); /* "cuda/cudart.pyx":7744 * @maxTexture1DMipmap.setter * def maxTexture1DMipmap(self, int maxTexture1DMipmap): * self._ptr[0].maxTexture1DMipmap = maxTexture1DMipmap # <<<<<<<<<<<<<< * @property * def maxTexture1DLinear(self): */ (__pyx_v_self->_ptr[0]).maxTexture1DMipmap = __pyx_v_maxTexture1DMipmap; /* "cuda/cudart.pyx":7742 * def maxTexture1DMipmap(self): * return self._ptr[0].maxTexture1DMipmap * @maxTexture1DMipmap.setter # <<<<<<<<<<<<<< * def maxTexture1DMipmap(self, int maxTexture1DMipmap): * self._ptr[0].maxTexture1DMipmap = maxTexture1DMipmap */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxTexture1DMipmap.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7745 * def maxTexture1DMipmap(self, int maxTexture1DMipmap): * self._ptr[0].maxTexture1DMipmap = maxTexture1DMipmap * @property # <<<<<<<<<<<<<< * def maxTexture1DLinear(self): * return self._ptr[0].maxTexture1DLinear */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_18maxTexture1DLinear_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_18maxTexture1DLinear_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_18maxTexture1DLinear___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_18maxTexture1DLinear___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7745, 0, __PYX_ERR(0, 7745, __pyx_L1_error)); /* "cuda/cudart.pyx":7747 * @property * def maxTexture1DLinear(self): * return self._ptr[0].maxTexture1DLinear # <<<<<<<<<<<<<< * @maxTexture1DLinear.setter * def maxTexture1DLinear(self, int maxTexture1DLinear): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).maxTexture1DLinear); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7747, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7745 * def maxTexture1DMipmap(self, int maxTexture1DMipmap): * self._ptr[0].maxTexture1DMipmap = maxTexture1DMipmap * @property # <<<<<<<<<<<<<< * def maxTexture1DLinear(self): * return self._ptr[0].maxTexture1DLinear */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxTexture1DLinear.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7748 * def maxTexture1DLinear(self): * return self._ptr[0].maxTexture1DLinear * @maxTexture1DLinear.setter # <<<<<<<<<<<<<< * def maxTexture1DLinear(self, int maxTexture1DLinear): * self._ptr[0].maxTexture1DLinear = maxTexture1DLinear */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_18maxTexture1DLinear_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxTexture1DLinear); /*proto*/ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_18maxTexture1DLinear_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxTexture1DLinear) { int __pyx_v_maxTexture1DLinear; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; int __pyx_lineno = 0; const char *__pyx_filename = 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_maxTexture1DLinear); { __pyx_v_maxTexture1DLinear = __Pyx_PyInt_As_int(__pyx_arg_maxTexture1DLinear); if (unlikely((__pyx_v_maxTexture1DLinear == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7749, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxTexture1DLinear.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_18maxTexture1DLinear_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_maxTexture1DLinear)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_18maxTexture1DLinear_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_maxTexture1DLinear) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7748, 0, __PYX_ERR(0, 7748, __pyx_L1_error)); /* "cuda/cudart.pyx":7750 * @maxTexture1DLinear.setter * def maxTexture1DLinear(self, int maxTexture1DLinear): * self._ptr[0].maxTexture1DLinear = maxTexture1DLinear # <<<<<<<<<<<<<< * @property * def maxTexture2D(self): */ (__pyx_v_self->_ptr[0]).maxTexture1DLinear = __pyx_v_maxTexture1DLinear; /* "cuda/cudart.pyx":7748 * def maxTexture1DLinear(self): * return self._ptr[0].maxTexture1DLinear * @maxTexture1DLinear.setter # <<<<<<<<<<<<<< * def maxTexture1DLinear(self, int maxTexture1DLinear): * self._ptr[0].maxTexture1DLinear = maxTexture1DLinear */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxTexture1DLinear.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7751 * def maxTexture1DLinear(self, int maxTexture1DLinear): * self._ptr[0].maxTexture1DLinear = maxTexture1DLinear * @property # <<<<<<<<<<<<<< * def maxTexture2D(self): * return self._ptr[0].maxTexture2D */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_12maxTexture2D_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_12maxTexture2D___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_12maxTexture2D___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7751, 0, __PYX_ERR(0, 7751, __pyx_L1_error)); /* "cuda/cudart.pyx":7753 * @property * def maxTexture2D(self): * return self._ptr[0].maxTexture2D # <<<<<<<<<<<<<< * @maxTexture2D.setter * def maxTexture2D(self, maxTexture2D): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_ptr[0]).maxTexture2D, 2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7753, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7751 * def maxTexture1DLinear(self, int maxTexture1DLinear): * self._ptr[0].maxTexture1DLinear = maxTexture1DLinear * @property # <<<<<<<<<<<<<< * def maxTexture2D(self): * return self._ptr[0].maxTexture2D */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxTexture2D.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7754 * def maxTexture2D(self): * return self._ptr[0].maxTexture2D * @maxTexture2D.setter # <<<<<<<<<<<<<< * def maxTexture2D(self, maxTexture2D): * self._ptr[0].maxTexture2D = maxTexture2D */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_12maxTexture2D_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxTexture2D); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_12maxTexture2D_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_maxTexture2D)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_12maxTexture2D_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxTexture2D) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1[2]; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7754, 0, __PYX_ERR(0, 7754, __pyx_L1_error)); /* "cuda/cudart.pyx":7756 * @maxTexture2D.setter * def maxTexture2D(self, maxTexture2D): * self._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, 7756, __pyx_L1_error) memcpy(&((__pyx_v_self->_ptr[0]).maxTexture2D[0]), __pyx_t_1, sizeof((__pyx_v_self->_ptr[0]).maxTexture2D[0]) * (2)); /* "cuda/cudart.pyx":7754 * def maxTexture2D(self): * return self._ptr[0].maxTexture2D * @maxTexture2D.setter # <<<<<<<<<<<<<< * def maxTexture2D(self, maxTexture2D): * self._ptr[0].maxTexture2D = maxTexture2D */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxTexture2D.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7757 * def maxTexture2D(self, maxTexture2D): * self._ptr[0].maxTexture2D = maxTexture2D * @property # <<<<<<<<<<<<<< * def maxTexture2DMipmap(self): * return self._ptr[0].maxTexture2DMipmap */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_18maxTexture2DMipmap_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_18maxTexture2DMipmap___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_18maxTexture2DMipmap___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7757, 0, __PYX_ERR(0, 7757, __pyx_L1_error)); /* "cuda/cudart.pyx":7759 * @property * def maxTexture2DMipmap(self): * return self._ptr[0].maxTexture2DMipmap # <<<<<<<<<<<<<< * @maxTexture2DMipmap.setter * def maxTexture2DMipmap(self, maxTexture2DMipmap): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_ptr[0]).maxTexture2DMipmap, 2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7759, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7757 * def maxTexture2D(self, maxTexture2D): * self._ptr[0].maxTexture2D = maxTexture2D * @property # <<<<<<<<<<<<<< * def maxTexture2DMipmap(self): * return self._ptr[0].maxTexture2DMipmap */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxTexture2DMipmap.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7760 * def maxTexture2DMipmap(self): * return self._ptr[0].maxTexture2DMipmap * @maxTexture2DMipmap.setter # <<<<<<<<<<<<<< * def maxTexture2DMipmap(self, maxTexture2DMipmap): * self._ptr[0].maxTexture2DMipmap = maxTexture2DMipmap */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_18maxTexture2DMipmap_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxTexture2DMipmap); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_18maxTexture2DMipmap_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_maxTexture2DMipmap)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_18maxTexture2DMipmap_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxTexture2DMipmap) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1[2]; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7760, 0, __PYX_ERR(0, 7760, __pyx_L1_error)); /* "cuda/cudart.pyx":7762 * @maxTexture2DMipmap.setter * def maxTexture2DMipmap(self, maxTexture2DMipmap): * self._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, 7762, __pyx_L1_error) memcpy(&((__pyx_v_self->_ptr[0]).maxTexture2DMipmap[0]), __pyx_t_1, sizeof((__pyx_v_self->_ptr[0]).maxTexture2DMipmap[0]) * (2)); /* "cuda/cudart.pyx":7760 * def maxTexture2DMipmap(self): * return self._ptr[0].maxTexture2DMipmap * @maxTexture2DMipmap.setter # <<<<<<<<<<<<<< * def maxTexture2DMipmap(self, maxTexture2DMipmap): * self._ptr[0].maxTexture2DMipmap = maxTexture2DMipmap */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxTexture2DMipmap.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7763 * def maxTexture2DMipmap(self, maxTexture2DMipmap): * self._ptr[0].maxTexture2DMipmap = maxTexture2DMipmap * @property # <<<<<<<<<<<<<< * def maxTexture2DLinear(self): * return self._ptr[0].maxTexture2DLinear */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_18maxTexture2DLinear_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_18maxTexture2DLinear___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_18maxTexture2DLinear___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7763, 0, __PYX_ERR(0, 7763, __pyx_L1_error)); /* "cuda/cudart.pyx":7765 * @property * def maxTexture2DLinear(self): * return self._ptr[0].maxTexture2DLinear # <<<<<<<<<<<<<< * @maxTexture2DLinear.setter * def maxTexture2DLinear(self, maxTexture2DLinear): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_ptr[0]).maxTexture2DLinear, 3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7765, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7763 * def maxTexture2DMipmap(self, maxTexture2DMipmap): * self._ptr[0].maxTexture2DMipmap = maxTexture2DMipmap * @property # <<<<<<<<<<<<<< * def maxTexture2DLinear(self): * return self._ptr[0].maxTexture2DLinear */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxTexture2DLinear.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7766 * def maxTexture2DLinear(self): * return self._ptr[0].maxTexture2DLinear * @maxTexture2DLinear.setter # <<<<<<<<<<<<<< * def maxTexture2DLinear(self, maxTexture2DLinear): * self._ptr[0].maxTexture2DLinear = maxTexture2DLinear */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_18maxTexture2DLinear_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxTexture2DLinear); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_18maxTexture2DLinear_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_maxTexture2DLinear)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_18maxTexture2DLinear_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxTexture2DLinear) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1[3]; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7766, 0, __PYX_ERR(0, 7766, __pyx_L1_error)); /* "cuda/cudart.pyx":7768 * @maxTexture2DLinear.setter * def maxTexture2DLinear(self, maxTexture2DLinear): * self._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, 7768, __pyx_L1_error) memcpy(&((__pyx_v_self->_ptr[0]).maxTexture2DLinear[0]), __pyx_t_1, sizeof((__pyx_v_self->_ptr[0]).maxTexture2DLinear[0]) * (3)); /* "cuda/cudart.pyx":7766 * def maxTexture2DLinear(self): * return self._ptr[0].maxTexture2DLinear * @maxTexture2DLinear.setter # <<<<<<<<<<<<<< * def maxTexture2DLinear(self, maxTexture2DLinear): * self._ptr[0].maxTexture2DLinear = maxTexture2DLinear */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxTexture2DLinear.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7769 * def maxTexture2DLinear(self, maxTexture2DLinear): * self._ptr[0].maxTexture2DLinear = maxTexture2DLinear * @property # <<<<<<<<<<<<<< * def maxTexture2DGather(self): * return self._ptr[0].maxTexture2DGather */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_18maxTexture2DGather_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_18maxTexture2DGather___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_18maxTexture2DGather___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7769, 0, __PYX_ERR(0, 7769, __pyx_L1_error)); /* "cuda/cudart.pyx":7771 * @property * def maxTexture2DGather(self): * return self._ptr[0].maxTexture2DGather # <<<<<<<<<<<<<< * @maxTexture2DGather.setter * def maxTexture2DGather(self, maxTexture2DGather): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_ptr[0]).maxTexture2DGather, 2); 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/cudart.pyx":7769 * def maxTexture2DLinear(self, maxTexture2DLinear): * self._ptr[0].maxTexture2DLinear = maxTexture2DLinear * @property # <<<<<<<<<<<<<< * def maxTexture2DGather(self): * return self._ptr[0].maxTexture2DGather */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxTexture2DGather.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7772 * def maxTexture2DGather(self): * return self._ptr[0].maxTexture2DGather * @maxTexture2DGather.setter # <<<<<<<<<<<<<< * def maxTexture2DGather(self, maxTexture2DGather): * self._ptr[0].maxTexture2DGather = maxTexture2DGather */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_18maxTexture2DGather_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxTexture2DGather); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_18maxTexture2DGather_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_maxTexture2DGather)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_18maxTexture2DGather_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxTexture2DGather) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1[2]; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7772, 0, __PYX_ERR(0, 7772, __pyx_L1_error)); /* "cuda/cudart.pyx":7774 * @maxTexture2DGather.setter * def maxTexture2DGather(self, maxTexture2DGather): * self._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, 7774, __pyx_L1_error) memcpy(&((__pyx_v_self->_ptr[0]).maxTexture2DGather[0]), __pyx_t_1, sizeof((__pyx_v_self->_ptr[0]).maxTexture2DGather[0]) * (2)); /* "cuda/cudart.pyx":7772 * def maxTexture2DGather(self): * return self._ptr[0].maxTexture2DGather * @maxTexture2DGather.setter # <<<<<<<<<<<<<< * def maxTexture2DGather(self, maxTexture2DGather): * self._ptr[0].maxTexture2DGather = maxTexture2DGather */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxTexture2DGather.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7775 * def maxTexture2DGather(self, maxTexture2DGather): * self._ptr[0].maxTexture2DGather = maxTexture2DGather * @property # <<<<<<<<<<<<<< * def maxTexture3D(self): * return self._ptr[0].maxTexture3D */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_12maxTexture3D_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_12maxTexture3D___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_12maxTexture3D___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7775, 0, __PYX_ERR(0, 7775, __pyx_L1_error)); /* "cuda/cudart.pyx":7777 * @property * def maxTexture3D(self): * return self._ptr[0].maxTexture3D # <<<<<<<<<<<<<< * @maxTexture3D.setter * def maxTexture3D(self, maxTexture3D): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_ptr[0]).maxTexture3D, 3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7777, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7775 * def maxTexture2DGather(self, maxTexture2DGather): * self._ptr[0].maxTexture2DGather = maxTexture2DGather * @property # <<<<<<<<<<<<<< * def maxTexture3D(self): * return self._ptr[0].maxTexture3D */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxTexture3D.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7778 * def maxTexture3D(self): * return self._ptr[0].maxTexture3D * @maxTexture3D.setter # <<<<<<<<<<<<<< * def maxTexture3D(self, maxTexture3D): * self._ptr[0].maxTexture3D = maxTexture3D */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_12maxTexture3D_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxTexture3D); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_12maxTexture3D_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_maxTexture3D)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_12maxTexture3D_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxTexture3D) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1[3]; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7778, 0, __PYX_ERR(0, 7778, __pyx_L1_error)); /* "cuda/cudart.pyx":7780 * @maxTexture3D.setter * def maxTexture3D(self, maxTexture3D): * self._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, 7780, __pyx_L1_error) memcpy(&((__pyx_v_self->_ptr[0]).maxTexture3D[0]), __pyx_t_1, sizeof((__pyx_v_self->_ptr[0]).maxTexture3D[0]) * (3)); /* "cuda/cudart.pyx":7778 * def maxTexture3D(self): * return self._ptr[0].maxTexture3D * @maxTexture3D.setter # <<<<<<<<<<<<<< * def maxTexture3D(self, maxTexture3D): * self._ptr[0].maxTexture3D = maxTexture3D */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxTexture3D.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7781 * def maxTexture3D(self, maxTexture3D): * self._ptr[0].maxTexture3D = maxTexture3D * @property # <<<<<<<<<<<<<< * def maxTexture3DAlt(self): * return self._ptr[0].maxTexture3DAlt */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_15maxTexture3DAlt_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_15maxTexture3DAlt___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_15maxTexture3DAlt___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7781, 0, __PYX_ERR(0, 7781, __pyx_L1_error)); /* "cuda/cudart.pyx":7783 * @property * def maxTexture3DAlt(self): * return self._ptr[0].maxTexture3DAlt # <<<<<<<<<<<<<< * @maxTexture3DAlt.setter * def maxTexture3DAlt(self, maxTexture3DAlt): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_ptr[0]).maxTexture3DAlt, 3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7783, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7781 * def maxTexture3D(self, maxTexture3D): * self._ptr[0].maxTexture3D = maxTexture3D * @property # <<<<<<<<<<<<<< * def maxTexture3DAlt(self): * return self._ptr[0].maxTexture3DAlt */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxTexture3DAlt.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7784 * def maxTexture3DAlt(self): * return self._ptr[0].maxTexture3DAlt * @maxTexture3DAlt.setter # <<<<<<<<<<<<<< * def maxTexture3DAlt(self, maxTexture3DAlt): * self._ptr[0].maxTexture3DAlt = maxTexture3DAlt */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_15maxTexture3DAlt_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxTexture3DAlt); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_15maxTexture3DAlt_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_maxTexture3DAlt)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_15maxTexture3DAlt_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxTexture3DAlt) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1[3]; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7784, 0, __PYX_ERR(0, 7784, __pyx_L1_error)); /* "cuda/cudart.pyx":7786 * @maxTexture3DAlt.setter * def maxTexture3DAlt(self, maxTexture3DAlt): * self._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, 7786, __pyx_L1_error) memcpy(&((__pyx_v_self->_ptr[0]).maxTexture3DAlt[0]), __pyx_t_1, sizeof((__pyx_v_self->_ptr[0]).maxTexture3DAlt[0]) * (3)); /* "cuda/cudart.pyx":7784 * def maxTexture3DAlt(self): * return self._ptr[0].maxTexture3DAlt * @maxTexture3DAlt.setter # <<<<<<<<<<<<<< * def maxTexture3DAlt(self, maxTexture3DAlt): * self._ptr[0].maxTexture3DAlt = maxTexture3DAlt */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxTexture3DAlt.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7787 * def maxTexture3DAlt(self, maxTexture3DAlt): * self._ptr[0].maxTexture3DAlt = maxTexture3DAlt * @property # <<<<<<<<<<<<<< * def maxTextureCubemap(self): * return self._ptr[0].maxTextureCubemap */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_17maxTextureCubemap_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_17maxTextureCubemap___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_17maxTextureCubemap___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7787, 0, __PYX_ERR(0, 7787, __pyx_L1_error)); /* "cuda/cudart.pyx":7789 * @property * def maxTextureCubemap(self): * return self._ptr[0].maxTextureCubemap # <<<<<<<<<<<<<< * @maxTextureCubemap.setter * def maxTextureCubemap(self, int maxTextureCubemap): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).maxTextureCubemap); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7789, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7787 * def maxTexture3DAlt(self, maxTexture3DAlt): * self._ptr[0].maxTexture3DAlt = maxTexture3DAlt * @property # <<<<<<<<<<<<<< * def maxTextureCubemap(self): * return self._ptr[0].maxTextureCubemap */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxTextureCubemap.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7790 * def maxTextureCubemap(self): * return self._ptr[0].maxTextureCubemap * @maxTextureCubemap.setter # <<<<<<<<<<<<<< * def maxTextureCubemap(self, int maxTextureCubemap): * self._ptr[0].maxTextureCubemap = maxTextureCubemap */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_17maxTextureCubemap_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxTextureCubemap); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_maxTextureCubemap); if (unlikely((__pyx_v_maxTextureCubemap == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7791, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxTextureCubemap.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_17maxTextureCubemap_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_maxTextureCubemap)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_17maxTextureCubemap_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_maxTextureCubemap) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7790, 0, __PYX_ERR(0, 7790, __pyx_L1_error)); /* "cuda/cudart.pyx":7792 * @maxTextureCubemap.setter * def maxTextureCubemap(self, int maxTextureCubemap): * self._ptr[0].maxTextureCubemap = maxTextureCubemap # <<<<<<<<<<<<<< * @property * def maxTexture1DLayered(self): */ (__pyx_v_self->_ptr[0]).maxTextureCubemap = __pyx_v_maxTextureCubemap; /* "cuda/cudart.pyx":7790 * def maxTextureCubemap(self): * return self._ptr[0].maxTextureCubemap * @maxTextureCubemap.setter # <<<<<<<<<<<<<< * def maxTextureCubemap(self, int maxTextureCubemap): * self._ptr[0].maxTextureCubemap = maxTextureCubemap */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxTextureCubemap.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7793 * def maxTextureCubemap(self, int maxTextureCubemap): * self._ptr[0].maxTextureCubemap = maxTextureCubemap * @property # <<<<<<<<<<<<<< * def maxTexture1DLayered(self): * return self._ptr[0].maxTexture1DLayered */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_19maxTexture1DLayered_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_19maxTexture1DLayered___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_19maxTexture1DLayered___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7793, 0, __PYX_ERR(0, 7793, __pyx_L1_error)); /* "cuda/cudart.pyx":7795 * @property * def maxTexture1DLayered(self): * return self._ptr[0].maxTexture1DLayered # <<<<<<<<<<<<<< * @maxTexture1DLayered.setter * def maxTexture1DLayered(self, maxTexture1DLayered): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_ptr[0]).maxTexture1DLayered, 2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7795, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7793 * def maxTextureCubemap(self, int maxTextureCubemap): * self._ptr[0].maxTextureCubemap = maxTextureCubemap * @property # <<<<<<<<<<<<<< * def maxTexture1DLayered(self): * return self._ptr[0].maxTexture1DLayered */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxTexture1DLayered.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7796 * def maxTexture1DLayered(self): * return self._ptr[0].maxTexture1DLayered * @maxTexture1DLayered.setter # <<<<<<<<<<<<<< * def maxTexture1DLayered(self, maxTexture1DLayered): * self._ptr[0].maxTexture1DLayered = maxTexture1DLayered */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_19maxTexture1DLayered_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxTexture1DLayered); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_19maxTexture1DLayered_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_maxTexture1DLayered)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_19maxTexture1DLayered_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxTexture1DLayered) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1[2]; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7796, 0, __PYX_ERR(0, 7796, __pyx_L1_error)); /* "cuda/cudart.pyx":7798 * @maxTexture1DLayered.setter * def maxTexture1DLayered(self, maxTexture1DLayered): * self._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, 7798, __pyx_L1_error) memcpy(&((__pyx_v_self->_ptr[0]).maxTexture1DLayered[0]), __pyx_t_1, sizeof((__pyx_v_self->_ptr[0]).maxTexture1DLayered[0]) * (2)); /* "cuda/cudart.pyx":7796 * def maxTexture1DLayered(self): * return self._ptr[0].maxTexture1DLayered * @maxTexture1DLayered.setter # <<<<<<<<<<<<<< * def maxTexture1DLayered(self, maxTexture1DLayered): * self._ptr[0].maxTexture1DLayered = maxTexture1DLayered */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxTexture1DLayered.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7799 * def maxTexture1DLayered(self, maxTexture1DLayered): * self._ptr[0].maxTexture1DLayered = maxTexture1DLayered * @property # <<<<<<<<<<<<<< * def maxTexture2DLayered(self): * return self._ptr[0].maxTexture2DLayered */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_19maxTexture2DLayered_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_19maxTexture2DLayered___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_19maxTexture2DLayered___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7799, 0, __PYX_ERR(0, 7799, __pyx_L1_error)); /* "cuda/cudart.pyx":7801 * @property * def maxTexture2DLayered(self): * return self._ptr[0].maxTexture2DLayered # <<<<<<<<<<<<<< * @maxTexture2DLayered.setter * def maxTexture2DLayered(self, maxTexture2DLayered): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_ptr[0]).maxTexture2DLayered, 3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7801, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7799 * def maxTexture1DLayered(self, maxTexture1DLayered): * self._ptr[0].maxTexture1DLayered = maxTexture1DLayered * @property # <<<<<<<<<<<<<< * def maxTexture2DLayered(self): * return self._ptr[0].maxTexture2DLayered */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxTexture2DLayered.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7802 * def maxTexture2DLayered(self): * return self._ptr[0].maxTexture2DLayered * @maxTexture2DLayered.setter # <<<<<<<<<<<<<< * def maxTexture2DLayered(self, maxTexture2DLayered): * self._ptr[0].maxTexture2DLayered = maxTexture2DLayered */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_19maxTexture2DLayered_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxTexture2DLayered); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_19maxTexture2DLayered_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_maxTexture2DLayered)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_19maxTexture2DLayered_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxTexture2DLayered) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1[3]; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7802, 0, __PYX_ERR(0, 7802, __pyx_L1_error)); /* "cuda/cudart.pyx":7804 * @maxTexture2DLayered.setter * def maxTexture2DLayered(self, maxTexture2DLayered): * self._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, 7804, __pyx_L1_error) memcpy(&((__pyx_v_self->_ptr[0]).maxTexture2DLayered[0]), __pyx_t_1, sizeof((__pyx_v_self->_ptr[0]).maxTexture2DLayered[0]) * (3)); /* "cuda/cudart.pyx":7802 * def maxTexture2DLayered(self): * return self._ptr[0].maxTexture2DLayered * @maxTexture2DLayered.setter # <<<<<<<<<<<<<< * def maxTexture2DLayered(self, maxTexture2DLayered): * self._ptr[0].maxTexture2DLayered = maxTexture2DLayered */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxTexture2DLayered.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7805 * def maxTexture2DLayered(self, maxTexture2DLayered): * self._ptr[0].maxTexture2DLayered = maxTexture2DLayered * @property # <<<<<<<<<<<<<< * def maxTextureCubemapLayered(self): * return self._ptr[0].maxTextureCubemapLayered */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_24maxTextureCubemapLayered_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_24maxTextureCubemapLayered___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_24maxTextureCubemapLayered___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7805, 0, __PYX_ERR(0, 7805, __pyx_L1_error)); /* "cuda/cudart.pyx":7807 * @property * def maxTextureCubemapLayered(self): * return self._ptr[0].maxTextureCubemapLayered # <<<<<<<<<<<<<< * @maxTextureCubemapLayered.setter * def maxTextureCubemapLayered(self, maxTextureCubemapLayered): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_ptr[0]).maxTextureCubemapLayered, 2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7807, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7805 * def maxTexture2DLayered(self, maxTexture2DLayered): * self._ptr[0].maxTexture2DLayered = maxTexture2DLayered * @property # <<<<<<<<<<<<<< * def maxTextureCubemapLayered(self): * return self._ptr[0].maxTextureCubemapLayered */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxTextureCubemapLayered.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7808 * def maxTextureCubemapLayered(self): * return self._ptr[0].maxTextureCubemapLayered * @maxTextureCubemapLayered.setter # <<<<<<<<<<<<<< * def maxTextureCubemapLayered(self, maxTextureCubemapLayered): * self._ptr[0].maxTextureCubemapLayered = maxTextureCubemapLayered */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_24maxTextureCubemapLayered_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxTextureCubemapLayered); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_24maxTextureCubemapLayered_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_maxTextureCubemapLayered)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_24maxTextureCubemapLayered_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxTextureCubemapLayered) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1[2]; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7808, 0, __PYX_ERR(0, 7808, __pyx_L1_error)); /* "cuda/cudart.pyx":7810 * @maxTextureCubemapLayered.setter * def maxTextureCubemapLayered(self, maxTextureCubemapLayered): * self._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, 7810, __pyx_L1_error) memcpy(&((__pyx_v_self->_ptr[0]).maxTextureCubemapLayered[0]), __pyx_t_1, sizeof((__pyx_v_self->_ptr[0]).maxTextureCubemapLayered[0]) * (2)); /* "cuda/cudart.pyx":7808 * def maxTextureCubemapLayered(self): * return self._ptr[0].maxTextureCubemapLayered * @maxTextureCubemapLayered.setter # <<<<<<<<<<<<<< * def maxTextureCubemapLayered(self, maxTextureCubemapLayered): * self._ptr[0].maxTextureCubemapLayered = maxTextureCubemapLayered */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxTextureCubemapLayered.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7811 * def maxTextureCubemapLayered(self, maxTextureCubemapLayered): * self._ptr[0].maxTextureCubemapLayered = maxTextureCubemapLayered * @property # <<<<<<<<<<<<<< * def maxSurface1D(self): * return self._ptr[0].maxSurface1D */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_12maxSurface1D_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_12maxSurface1D___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_12maxSurface1D___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7811, 0, __PYX_ERR(0, 7811, __pyx_L1_error)); /* "cuda/cudart.pyx":7813 * @property * def maxSurface1D(self): * return self._ptr[0].maxSurface1D # <<<<<<<<<<<<<< * @maxSurface1D.setter * def maxSurface1D(self, int maxSurface1D): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).maxSurface1D); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7813, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7811 * def maxTextureCubemapLayered(self, maxTextureCubemapLayered): * self._ptr[0].maxTextureCubemapLayered = maxTextureCubemapLayered * @property # <<<<<<<<<<<<<< * def maxSurface1D(self): * return self._ptr[0].maxSurface1D */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxSurface1D.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7814 * def maxSurface1D(self): * return self._ptr[0].maxSurface1D * @maxSurface1D.setter # <<<<<<<<<<<<<< * def maxSurface1D(self, int maxSurface1D): * self._ptr[0].maxSurface1D = maxSurface1D */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_12maxSurface1D_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxSurface1D); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_maxSurface1D); if (unlikely((__pyx_v_maxSurface1D == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7815, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxSurface1D.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_12maxSurface1D_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_maxSurface1D)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_12maxSurface1D_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_maxSurface1D) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7814, 0, __PYX_ERR(0, 7814, __pyx_L1_error)); /* "cuda/cudart.pyx":7816 * @maxSurface1D.setter * def maxSurface1D(self, int maxSurface1D): * self._ptr[0].maxSurface1D = maxSurface1D # <<<<<<<<<<<<<< * @property * def maxSurface2D(self): */ (__pyx_v_self->_ptr[0]).maxSurface1D = __pyx_v_maxSurface1D; /* "cuda/cudart.pyx":7814 * def maxSurface1D(self): * return self._ptr[0].maxSurface1D * @maxSurface1D.setter # <<<<<<<<<<<<<< * def maxSurface1D(self, int maxSurface1D): * self._ptr[0].maxSurface1D = maxSurface1D */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxSurface1D.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7817 * def maxSurface1D(self, int maxSurface1D): * self._ptr[0].maxSurface1D = maxSurface1D * @property # <<<<<<<<<<<<<< * def maxSurface2D(self): * return self._ptr[0].maxSurface2D */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_12maxSurface2D_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_12maxSurface2D___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_12maxSurface2D___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7817, 0, __PYX_ERR(0, 7817, __pyx_L1_error)); /* "cuda/cudart.pyx":7819 * @property * def maxSurface2D(self): * return self._ptr[0].maxSurface2D # <<<<<<<<<<<<<< * @maxSurface2D.setter * def maxSurface2D(self, maxSurface2D): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_ptr[0]).maxSurface2D, 2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7819, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7817 * def maxSurface1D(self, int maxSurface1D): * self._ptr[0].maxSurface1D = maxSurface1D * @property # <<<<<<<<<<<<<< * def maxSurface2D(self): * return self._ptr[0].maxSurface2D */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxSurface2D.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7820 * def maxSurface2D(self): * return self._ptr[0].maxSurface2D * @maxSurface2D.setter # <<<<<<<<<<<<<< * def maxSurface2D(self, maxSurface2D): * self._ptr[0].maxSurface2D = maxSurface2D */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_12maxSurface2D_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxSurface2D); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_12maxSurface2D_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_maxSurface2D)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_12maxSurface2D_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxSurface2D) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1[2]; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7820, 0, __PYX_ERR(0, 7820, __pyx_L1_error)); /* "cuda/cudart.pyx":7822 * @maxSurface2D.setter * def maxSurface2D(self, maxSurface2D): * self._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, 7822, __pyx_L1_error) memcpy(&((__pyx_v_self->_ptr[0]).maxSurface2D[0]), __pyx_t_1, sizeof((__pyx_v_self->_ptr[0]).maxSurface2D[0]) * (2)); /* "cuda/cudart.pyx":7820 * def maxSurface2D(self): * return self._ptr[0].maxSurface2D * @maxSurface2D.setter # <<<<<<<<<<<<<< * def maxSurface2D(self, maxSurface2D): * self._ptr[0].maxSurface2D = maxSurface2D */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxSurface2D.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7823 * def maxSurface2D(self, maxSurface2D): * self._ptr[0].maxSurface2D = maxSurface2D * @property # <<<<<<<<<<<<<< * def maxSurface3D(self): * return self._ptr[0].maxSurface3D */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_12maxSurface3D_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_12maxSurface3D___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_12maxSurface3D___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7823, 0, __PYX_ERR(0, 7823, __pyx_L1_error)); /* "cuda/cudart.pyx":7825 * @property * def maxSurface3D(self): * return self._ptr[0].maxSurface3D # <<<<<<<<<<<<<< * @maxSurface3D.setter * def maxSurface3D(self, maxSurface3D): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_ptr[0]).maxSurface3D, 3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7825, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7823 * def maxSurface2D(self, maxSurface2D): * self._ptr[0].maxSurface2D = maxSurface2D * @property # <<<<<<<<<<<<<< * def maxSurface3D(self): * return self._ptr[0].maxSurface3D */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxSurface3D.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7826 * def maxSurface3D(self): * return self._ptr[0].maxSurface3D * @maxSurface3D.setter # <<<<<<<<<<<<<< * def maxSurface3D(self, maxSurface3D): * self._ptr[0].maxSurface3D = maxSurface3D */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_12maxSurface3D_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxSurface3D); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_12maxSurface3D_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_maxSurface3D)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_12maxSurface3D_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxSurface3D) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1[3]; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7826, 0, __PYX_ERR(0, 7826, __pyx_L1_error)); /* "cuda/cudart.pyx":7828 * @maxSurface3D.setter * def maxSurface3D(self, maxSurface3D): * self._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, 7828, __pyx_L1_error) memcpy(&((__pyx_v_self->_ptr[0]).maxSurface3D[0]), __pyx_t_1, sizeof((__pyx_v_self->_ptr[0]).maxSurface3D[0]) * (3)); /* "cuda/cudart.pyx":7826 * def maxSurface3D(self): * return self._ptr[0].maxSurface3D * @maxSurface3D.setter # <<<<<<<<<<<<<< * def maxSurface3D(self, maxSurface3D): * self._ptr[0].maxSurface3D = maxSurface3D */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxSurface3D.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7829 * def maxSurface3D(self, maxSurface3D): * self._ptr[0].maxSurface3D = maxSurface3D * @property # <<<<<<<<<<<<<< * def maxSurface1DLayered(self): * return self._ptr[0].maxSurface1DLayered */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_19maxSurface1DLayered_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_19maxSurface1DLayered___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_19maxSurface1DLayered___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7829, 0, __PYX_ERR(0, 7829, __pyx_L1_error)); /* "cuda/cudart.pyx":7831 * @property * def maxSurface1DLayered(self): * return self._ptr[0].maxSurface1DLayered # <<<<<<<<<<<<<< * @maxSurface1DLayered.setter * def maxSurface1DLayered(self, maxSurface1DLayered): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_ptr[0]).maxSurface1DLayered, 2); 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/cudart.pyx":7829 * def maxSurface3D(self, maxSurface3D): * self._ptr[0].maxSurface3D = maxSurface3D * @property # <<<<<<<<<<<<<< * def maxSurface1DLayered(self): * return self._ptr[0].maxSurface1DLayered */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxSurface1DLayered.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7832 * def maxSurface1DLayered(self): * return self._ptr[0].maxSurface1DLayered * @maxSurface1DLayered.setter # <<<<<<<<<<<<<< * def maxSurface1DLayered(self, maxSurface1DLayered): * self._ptr[0].maxSurface1DLayered = maxSurface1DLayered */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_19maxSurface1DLayered_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxSurface1DLayered); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_19maxSurface1DLayered_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_maxSurface1DLayered)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_19maxSurface1DLayered_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxSurface1DLayered) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1[2]; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7832, 0, __PYX_ERR(0, 7832, __pyx_L1_error)); /* "cuda/cudart.pyx":7834 * @maxSurface1DLayered.setter * def maxSurface1DLayered(self, maxSurface1DLayered): * self._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, 7834, __pyx_L1_error) memcpy(&((__pyx_v_self->_ptr[0]).maxSurface1DLayered[0]), __pyx_t_1, sizeof((__pyx_v_self->_ptr[0]).maxSurface1DLayered[0]) * (2)); /* "cuda/cudart.pyx":7832 * def maxSurface1DLayered(self): * return self._ptr[0].maxSurface1DLayered * @maxSurface1DLayered.setter # <<<<<<<<<<<<<< * def maxSurface1DLayered(self, maxSurface1DLayered): * self._ptr[0].maxSurface1DLayered = maxSurface1DLayered */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxSurface1DLayered.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7835 * def maxSurface1DLayered(self, maxSurface1DLayered): * self._ptr[0].maxSurface1DLayered = maxSurface1DLayered * @property # <<<<<<<<<<<<<< * def maxSurface2DLayered(self): * return self._ptr[0].maxSurface2DLayered */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_19maxSurface2DLayered_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_19maxSurface2DLayered___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_19maxSurface2DLayered___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7835, 0, __PYX_ERR(0, 7835, __pyx_L1_error)); /* "cuda/cudart.pyx":7837 * @property * def maxSurface2DLayered(self): * return self._ptr[0].maxSurface2DLayered # <<<<<<<<<<<<<< * @maxSurface2DLayered.setter * def maxSurface2DLayered(self, maxSurface2DLayered): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_ptr[0]).maxSurface2DLayered, 3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7837, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7835 * def maxSurface1DLayered(self, maxSurface1DLayered): * self._ptr[0].maxSurface1DLayered = maxSurface1DLayered * @property # <<<<<<<<<<<<<< * def maxSurface2DLayered(self): * return self._ptr[0].maxSurface2DLayered */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxSurface2DLayered.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7838 * def maxSurface2DLayered(self): * return self._ptr[0].maxSurface2DLayered * @maxSurface2DLayered.setter # <<<<<<<<<<<<<< * def maxSurface2DLayered(self, maxSurface2DLayered): * self._ptr[0].maxSurface2DLayered = maxSurface2DLayered */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_19maxSurface2DLayered_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxSurface2DLayered); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_19maxSurface2DLayered_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_maxSurface2DLayered)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_19maxSurface2DLayered_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxSurface2DLayered) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1[3]; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7838, 0, __PYX_ERR(0, 7838, __pyx_L1_error)); /* "cuda/cudart.pyx":7840 * @maxSurface2DLayered.setter * def maxSurface2DLayered(self, maxSurface2DLayered): * self._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, 7840, __pyx_L1_error) memcpy(&((__pyx_v_self->_ptr[0]).maxSurface2DLayered[0]), __pyx_t_1, sizeof((__pyx_v_self->_ptr[0]).maxSurface2DLayered[0]) * (3)); /* "cuda/cudart.pyx":7838 * def maxSurface2DLayered(self): * return self._ptr[0].maxSurface2DLayered * @maxSurface2DLayered.setter # <<<<<<<<<<<<<< * def maxSurface2DLayered(self, maxSurface2DLayered): * self._ptr[0].maxSurface2DLayered = maxSurface2DLayered */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxSurface2DLayered.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7841 * def maxSurface2DLayered(self, maxSurface2DLayered): * self._ptr[0].maxSurface2DLayered = maxSurface2DLayered * @property # <<<<<<<<<<<<<< * def maxSurfaceCubemap(self): * return self._ptr[0].maxSurfaceCubemap */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_17maxSurfaceCubemap_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_17maxSurfaceCubemap___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_17maxSurfaceCubemap___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7841, 0, __PYX_ERR(0, 7841, __pyx_L1_error)); /* "cuda/cudart.pyx":7843 * @property * def maxSurfaceCubemap(self): * return self._ptr[0].maxSurfaceCubemap # <<<<<<<<<<<<<< * @maxSurfaceCubemap.setter * def maxSurfaceCubemap(self, int maxSurfaceCubemap): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).maxSurfaceCubemap); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7843, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7841 * def maxSurface2DLayered(self, maxSurface2DLayered): * self._ptr[0].maxSurface2DLayered = maxSurface2DLayered * @property # <<<<<<<<<<<<<< * def maxSurfaceCubemap(self): * return self._ptr[0].maxSurfaceCubemap */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxSurfaceCubemap.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7844 * def maxSurfaceCubemap(self): * return self._ptr[0].maxSurfaceCubemap * @maxSurfaceCubemap.setter # <<<<<<<<<<<<<< * def maxSurfaceCubemap(self, int maxSurfaceCubemap): * self._ptr[0].maxSurfaceCubemap = maxSurfaceCubemap */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_17maxSurfaceCubemap_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxSurfaceCubemap); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_maxSurfaceCubemap); if (unlikely((__pyx_v_maxSurfaceCubemap == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7845, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxSurfaceCubemap.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_17maxSurfaceCubemap_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_maxSurfaceCubemap)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_17maxSurfaceCubemap_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_maxSurfaceCubemap) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7844, 0, __PYX_ERR(0, 7844, __pyx_L1_error)); /* "cuda/cudart.pyx":7846 * @maxSurfaceCubemap.setter * def maxSurfaceCubemap(self, int maxSurfaceCubemap): * self._ptr[0].maxSurfaceCubemap = maxSurfaceCubemap # <<<<<<<<<<<<<< * @property * def maxSurfaceCubemapLayered(self): */ (__pyx_v_self->_ptr[0]).maxSurfaceCubemap = __pyx_v_maxSurfaceCubemap; /* "cuda/cudart.pyx":7844 * def maxSurfaceCubemap(self): * return self._ptr[0].maxSurfaceCubemap * @maxSurfaceCubemap.setter # <<<<<<<<<<<<<< * def maxSurfaceCubemap(self, int maxSurfaceCubemap): * self._ptr[0].maxSurfaceCubemap = maxSurfaceCubemap */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxSurfaceCubemap.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7847 * def maxSurfaceCubemap(self, int maxSurfaceCubemap): * self._ptr[0].maxSurfaceCubemap = maxSurfaceCubemap * @property # <<<<<<<<<<<<<< * def maxSurfaceCubemapLayered(self): * return self._ptr[0].maxSurfaceCubemapLayered */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_24maxSurfaceCubemapLayered_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_24maxSurfaceCubemapLayered___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_24maxSurfaceCubemapLayered___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7847, 0, __PYX_ERR(0, 7847, __pyx_L1_error)); /* "cuda/cudart.pyx":7849 * @property * def maxSurfaceCubemapLayered(self): * return self._ptr[0].maxSurfaceCubemapLayered # <<<<<<<<<<<<<< * @maxSurfaceCubemapLayered.setter * def maxSurfaceCubemapLayered(self, maxSurfaceCubemapLayered): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_ptr[0]).maxSurfaceCubemapLayered, 2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7849, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7847 * def maxSurfaceCubemap(self, int maxSurfaceCubemap): * self._ptr[0].maxSurfaceCubemap = maxSurfaceCubemap * @property # <<<<<<<<<<<<<< * def maxSurfaceCubemapLayered(self): * return self._ptr[0].maxSurfaceCubemapLayered */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxSurfaceCubemapLayered.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7850 * def maxSurfaceCubemapLayered(self): * return self._ptr[0].maxSurfaceCubemapLayered * @maxSurfaceCubemapLayered.setter # <<<<<<<<<<<<<< * def maxSurfaceCubemapLayered(self, maxSurfaceCubemapLayered): * self._ptr[0].maxSurfaceCubemapLayered = maxSurfaceCubemapLayered */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_24maxSurfaceCubemapLayered_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxSurfaceCubemapLayered); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_24maxSurfaceCubemapLayered_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_maxSurfaceCubemapLayered)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_24maxSurfaceCubemapLayered_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxSurfaceCubemapLayered) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1[2]; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7850, 0, __PYX_ERR(0, 7850, __pyx_L1_error)); /* "cuda/cudart.pyx":7852 * @maxSurfaceCubemapLayered.setter * def maxSurfaceCubemapLayered(self, maxSurfaceCubemapLayered): * self._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, 7852, __pyx_L1_error) memcpy(&((__pyx_v_self->_ptr[0]).maxSurfaceCubemapLayered[0]), __pyx_t_1, sizeof((__pyx_v_self->_ptr[0]).maxSurfaceCubemapLayered[0]) * (2)); /* "cuda/cudart.pyx":7850 * def maxSurfaceCubemapLayered(self): * return self._ptr[0].maxSurfaceCubemapLayered * @maxSurfaceCubemapLayered.setter # <<<<<<<<<<<<<< * def maxSurfaceCubemapLayered(self, maxSurfaceCubemapLayered): * self._ptr[0].maxSurfaceCubemapLayered = maxSurfaceCubemapLayered */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxSurfaceCubemapLayered.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7853 * def maxSurfaceCubemapLayered(self, maxSurfaceCubemapLayered): * self._ptr[0].maxSurfaceCubemapLayered = maxSurfaceCubemapLayered * @property # <<<<<<<<<<<<<< * def surfaceAlignment(self): * return self._ptr[0].surfaceAlignment */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_16surfaceAlignment_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_16surfaceAlignment___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_16surfaceAlignment___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7853, 0, __PYX_ERR(0, 7853, __pyx_L1_error)); /* "cuda/cudart.pyx":7855 * @property * def surfaceAlignment(self): * return self._ptr[0].surfaceAlignment # <<<<<<<<<<<<<< * @surfaceAlignment.setter * def surfaceAlignment(self, size_t surfaceAlignment): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).surfaceAlignment); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7855, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7853 * def maxSurfaceCubemapLayered(self, maxSurfaceCubemapLayered): * self._ptr[0].maxSurfaceCubemapLayered = maxSurfaceCubemapLayered * @property # <<<<<<<<<<<<<< * def surfaceAlignment(self): * return self._ptr[0].surfaceAlignment */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.surfaceAlignment.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7856 * def surfaceAlignment(self): * return self._ptr[0].surfaceAlignment * @surfaceAlignment.setter # <<<<<<<<<<<<<< * def surfaceAlignment(self, size_t surfaceAlignment): * self._ptr[0].surfaceAlignment = surfaceAlignment */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_16surfaceAlignment_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_surfaceAlignment); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_surfaceAlignment); if (unlikely((__pyx_v_surfaceAlignment == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 7857, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.surfaceAlignment.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_16surfaceAlignment_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((size_t)__pyx_v_surfaceAlignment)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_16surfaceAlignment_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, size_t __pyx_v_surfaceAlignment) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7856, 0, __PYX_ERR(0, 7856, __pyx_L1_error)); /* "cuda/cudart.pyx":7858 * @surfaceAlignment.setter * def surfaceAlignment(self, size_t surfaceAlignment): * self._ptr[0].surfaceAlignment = surfaceAlignment # <<<<<<<<<<<<<< * @property * def concurrentKernels(self): */ (__pyx_v_self->_ptr[0]).surfaceAlignment = __pyx_v_surfaceAlignment; /* "cuda/cudart.pyx":7856 * def surfaceAlignment(self): * return self._ptr[0].surfaceAlignment * @surfaceAlignment.setter # <<<<<<<<<<<<<< * def surfaceAlignment(self, size_t surfaceAlignment): * self._ptr[0].surfaceAlignment = surfaceAlignment */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.surfaceAlignment.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7859 * def surfaceAlignment(self, size_t surfaceAlignment): * self._ptr[0].surfaceAlignment = surfaceAlignment * @property # <<<<<<<<<<<<<< * def concurrentKernels(self): * return self._ptr[0].concurrentKernels */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_17concurrentKernels_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_17concurrentKernels___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_17concurrentKernels___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7859, 0, __PYX_ERR(0, 7859, __pyx_L1_error)); /* "cuda/cudart.pyx":7861 * @property * def concurrentKernels(self): * return self._ptr[0].concurrentKernels # <<<<<<<<<<<<<< * @concurrentKernels.setter * def concurrentKernels(self, int concurrentKernels): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).concurrentKernels); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7861, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7859 * def surfaceAlignment(self, size_t surfaceAlignment): * self._ptr[0].surfaceAlignment = surfaceAlignment * @property # <<<<<<<<<<<<<< * def concurrentKernels(self): * return self._ptr[0].concurrentKernels */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.concurrentKernels.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7862 * def concurrentKernels(self): * return self._ptr[0].concurrentKernels * @concurrentKernels.setter # <<<<<<<<<<<<<< * def concurrentKernels(self, int concurrentKernels): * self._ptr[0].concurrentKernels = concurrentKernels */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_17concurrentKernels_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_concurrentKernels); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_concurrentKernels); if (unlikely((__pyx_v_concurrentKernels == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7863, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.concurrentKernels.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_17concurrentKernels_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_concurrentKernels)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_17concurrentKernels_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_concurrentKernels) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7862, 0, __PYX_ERR(0, 7862, __pyx_L1_error)); /* "cuda/cudart.pyx":7864 * @concurrentKernels.setter * def concurrentKernels(self, int concurrentKernels): * self._ptr[0].concurrentKernels = concurrentKernels # <<<<<<<<<<<<<< * @property * def ECCEnabled(self): */ (__pyx_v_self->_ptr[0]).concurrentKernels = __pyx_v_concurrentKernels; /* "cuda/cudart.pyx":7862 * def concurrentKernels(self): * return self._ptr[0].concurrentKernels * @concurrentKernels.setter # <<<<<<<<<<<<<< * def concurrentKernels(self, int concurrentKernels): * self._ptr[0].concurrentKernels = concurrentKernels */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.concurrentKernels.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7865 * def concurrentKernels(self, int concurrentKernels): * self._ptr[0].concurrentKernels = concurrentKernels * @property # <<<<<<<<<<<<<< * def ECCEnabled(self): * return self._ptr[0].ECCEnabled */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_10ECCEnabled_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_10ECCEnabled___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_10ECCEnabled___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7865, 0, __PYX_ERR(0, 7865, __pyx_L1_error)); /* "cuda/cudart.pyx":7867 * @property * def ECCEnabled(self): * return self._ptr[0].ECCEnabled # <<<<<<<<<<<<<< * @ECCEnabled.setter * def ECCEnabled(self, int ECCEnabled): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).ECCEnabled); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7867, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7865 * def concurrentKernels(self, int concurrentKernels): * self._ptr[0].concurrentKernels = concurrentKernels * @property # <<<<<<<<<<<<<< * def ECCEnabled(self): * return self._ptr[0].ECCEnabled */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.ECCEnabled.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7868 * def ECCEnabled(self): * return self._ptr[0].ECCEnabled * @ECCEnabled.setter # <<<<<<<<<<<<<< * def ECCEnabled(self, int ECCEnabled): * self._ptr[0].ECCEnabled = ECCEnabled */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_10ECCEnabled_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_ECCEnabled); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_ECCEnabled); if (unlikely((__pyx_v_ECCEnabled == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7869, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.ECCEnabled.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_10ECCEnabled_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_ECCEnabled)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_10ECCEnabled_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_ECCEnabled) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7868, 0, __PYX_ERR(0, 7868, __pyx_L1_error)); /* "cuda/cudart.pyx":7870 * @ECCEnabled.setter * def ECCEnabled(self, int ECCEnabled): * self._ptr[0].ECCEnabled = ECCEnabled # <<<<<<<<<<<<<< * @property * def pciBusID(self): */ (__pyx_v_self->_ptr[0]).ECCEnabled = __pyx_v_ECCEnabled; /* "cuda/cudart.pyx":7868 * def ECCEnabled(self): * return self._ptr[0].ECCEnabled * @ECCEnabled.setter # <<<<<<<<<<<<<< * def ECCEnabled(self, int ECCEnabled): * self._ptr[0].ECCEnabled = ECCEnabled */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.ECCEnabled.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7871 * def ECCEnabled(self, int ECCEnabled): * self._ptr[0].ECCEnabled = ECCEnabled * @property # <<<<<<<<<<<<<< * def pciBusID(self): * return self._ptr[0].pciBusID */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_8pciBusID_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_8pciBusID___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_8pciBusID___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7871, 0, __PYX_ERR(0, 7871, __pyx_L1_error)); /* "cuda/cudart.pyx":7873 * @property * def pciBusID(self): * return self._ptr[0].pciBusID # <<<<<<<<<<<<<< * @pciBusID.setter * def pciBusID(self, int pciBusID): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).pciBusID); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7873, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7871 * def ECCEnabled(self, int ECCEnabled): * self._ptr[0].ECCEnabled = ECCEnabled * @property # <<<<<<<<<<<<<< * def pciBusID(self): * return self._ptr[0].pciBusID */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.pciBusID.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7874 * def pciBusID(self): * return self._ptr[0].pciBusID * @pciBusID.setter # <<<<<<<<<<<<<< * def pciBusID(self, int pciBusID): * self._ptr[0].pciBusID = pciBusID */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_8pciBusID_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_pciBusID); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_pciBusID); if (unlikely((__pyx_v_pciBusID == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7875, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.pciBusID.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_8pciBusID_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_pciBusID)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_8pciBusID_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_pciBusID) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7874, 0, __PYX_ERR(0, 7874, __pyx_L1_error)); /* "cuda/cudart.pyx":7876 * @pciBusID.setter * def pciBusID(self, int pciBusID): * self._ptr[0].pciBusID = pciBusID # <<<<<<<<<<<<<< * @property * def pciDeviceID(self): */ (__pyx_v_self->_ptr[0]).pciBusID = __pyx_v_pciBusID; /* "cuda/cudart.pyx":7874 * def pciBusID(self): * return self._ptr[0].pciBusID * @pciBusID.setter # <<<<<<<<<<<<<< * def pciBusID(self, int pciBusID): * self._ptr[0].pciBusID = pciBusID */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.pciBusID.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7877 * def pciBusID(self, int pciBusID): * self._ptr[0].pciBusID = pciBusID * @property # <<<<<<<<<<<<<< * def pciDeviceID(self): * return self._ptr[0].pciDeviceID */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_11pciDeviceID_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_11pciDeviceID___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_11pciDeviceID___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7877, 0, __PYX_ERR(0, 7877, __pyx_L1_error)); /* "cuda/cudart.pyx":7879 * @property * def pciDeviceID(self): * return self._ptr[0].pciDeviceID # <<<<<<<<<<<<<< * @pciDeviceID.setter * def pciDeviceID(self, int pciDeviceID): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).pciDeviceID); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7879, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7877 * def pciBusID(self, int pciBusID): * self._ptr[0].pciBusID = pciBusID * @property # <<<<<<<<<<<<<< * def pciDeviceID(self): * return self._ptr[0].pciDeviceID */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.pciDeviceID.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7880 * def pciDeviceID(self): * return self._ptr[0].pciDeviceID * @pciDeviceID.setter # <<<<<<<<<<<<<< * def pciDeviceID(self, int pciDeviceID): * self._ptr[0].pciDeviceID = pciDeviceID */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_11pciDeviceID_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_pciDeviceID); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_pciDeviceID); if (unlikely((__pyx_v_pciDeviceID == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7881, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.pciDeviceID.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_11pciDeviceID_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_pciDeviceID)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_11pciDeviceID_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_pciDeviceID) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7880, 0, __PYX_ERR(0, 7880, __pyx_L1_error)); /* "cuda/cudart.pyx":7882 * @pciDeviceID.setter * def pciDeviceID(self, int pciDeviceID): * self._ptr[0].pciDeviceID = pciDeviceID # <<<<<<<<<<<<<< * @property * def pciDomainID(self): */ (__pyx_v_self->_ptr[0]).pciDeviceID = __pyx_v_pciDeviceID; /* "cuda/cudart.pyx":7880 * def pciDeviceID(self): * return self._ptr[0].pciDeviceID * @pciDeviceID.setter # <<<<<<<<<<<<<< * def pciDeviceID(self, int pciDeviceID): * self._ptr[0].pciDeviceID = pciDeviceID */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.pciDeviceID.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7883 * def pciDeviceID(self, int pciDeviceID): * self._ptr[0].pciDeviceID = pciDeviceID * @property # <<<<<<<<<<<<<< * def pciDomainID(self): * return self._ptr[0].pciDomainID */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_11pciDomainID_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_11pciDomainID___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_11pciDomainID___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7883, 0, __PYX_ERR(0, 7883, __pyx_L1_error)); /* "cuda/cudart.pyx":7885 * @property * def pciDomainID(self): * return self._ptr[0].pciDomainID # <<<<<<<<<<<<<< * @pciDomainID.setter * def pciDomainID(self, int pciDomainID): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).pciDomainID); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7885, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7883 * def pciDeviceID(self, int pciDeviceID): * self._ptr[0].pciDeviceID = pciDeviceID * @property # <<<<<<<<<<<<<< * def pciDomainID(self): * return self._ptr[0].pciDomainID */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.pciDomainID.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7886 * def pciDomainID(self): * return self._ptr[0].pciDomainID * @pciDomainID.setter # <<<<<<<<<<<<<< * def pciDomainID(self, int pciDomainID): * self._ptr[0].pciDomainID = pciDomainID */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_11pciDomainID_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_pciDomainID); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_pciDomainID); if (unlikely((__pyx_v_pciDomainID == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7887, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.pciDomainID.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_11pciDomainID_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_pciDomainID)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_11pciDomainID_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_pciDomainID) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7886, 0, __PYX_ERR(0, 7886, __pyx_L1_error)); /* "cuda/cudart.pyx":7888 * @pciDomainID.setter * def pciDomainID(self, int pciDomainID): * self._ptr[0].pciDomainID = pciDomainID # <<<<<<<<<<<<<< * @property * def tccDriver(self): */ (__pyx_v_self->_ptr[0]).pciDomainID = __pyx_v_pciDomainID; /* "cuda/cudart.pyx":7886 * def pciDomainID(self): * return self._ptr[0].pciDomainID * @pciDomainID.setter # <<<<<<<<<<<<<< * def pciDomainID(self, int pciDomainID): * self._ptr[0].pciDomainID = pciDomainID */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.pciDomainID.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7889 * def pciDomainID(self, int pciDomainID): * self._ptr[0].pciDomainID = pciDomainID * @property # <<<<<<<<<<<<<< * def tccDriver(self): * return self._ptr[0].tccDriver */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_9tccDriver_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_9tccDriver___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_9tccDriver___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7889, 0, __PYX_ERR(0, 7889, __pyx_L1_error)); /* "cuda/cudart.pyx":7891 * @property * def tccDriver(self): * return self._ptr[0].tccDriver # <<<<<<<<<<<<<< * @tccDriver.setter * def tccDriver(self, int tccDriver): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).tccDriver); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7891, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7889 * def pciDomainID(self, int pciDomainID): * self._ptr[0].pciDomainID = pciDomainID * @property # <<<<<<<<<<<<<< * def tccDriver(self): * return self._ptr[0].tccDriver */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.tccDriver.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7892 * def tccDriver(self): * return self._ptr[0].tccDriver * @tccDriver.setter # <<<<<<<<<<<<<< * def tccDriver(self, int tccDriver): * self._ptr[0].tccDriver = tccDriver */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_9tccDriver_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_tccDriver); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_tccDriver); if (unlikely((__pyx_v_tccDriver == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7893, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.tccDriver.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_9tccDriver_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_tccDriver)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_9tccDriver_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_tccDriver) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7892, 0, __PYX_ERR(0, 7892, __pyx_L1_error)); /* "cuda/cudart.pyx":7894 * @tccDriver.setter * def tccDriver(self, int tccDriver): * self._ptr[0].tccDriver = tccDriver # <<<<<<<<<<<<<< * @property * def asyncEngineCount(self): */ (__pyx_v_self->_ptr[0]).tccDriver = __pyx_v_tccDriver; /* "cuda/cudart.pyx":7892 * def tccDriver(self): * return self._ptr[0].tccDriver * @tccDriver.setter # <<<<<<<<<<<<<< * def tccDriver(self, int tccDriver): * self._ptr[0].tccDriver = tccDriver */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.tccDriver.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7895 * def tccDriver(self, int tccDriver): * self._ptr[0].tccDriver = tccDriver * @property # <<<<<<<<<<<<<< * def asyncEngineCount(self): * return self._ptr[0].asyncEngineCount */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_16asyncEngineCount_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_16asyncEngineCount___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_16asyncEngineCount___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7895, 0, __PYX_ERR(0, 7895, __pyx_L1_error)); /* "cuda/cudart.pyx":7897 * @property * def asyncEngineCount(self): * return self._ptr[0].asyncEngineCount # <<<<<<<<<<<<<< * @asyncEngineCount.setter * def asyncEngineCount(self, int asyncEngineCount): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).asyncEngineCount); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7897, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7895 * def tccDriver(self, int tccDriver): * self._ptr[0].tccDriver = tccDriver * @property # <<<<<<<<<<<<<< * def asyncEngineCount(self): * return self._ptr[0].asyncEngineCount */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.asyncEngineCount.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7898 * def asyncEngineCount(self): * return self._ptr[0].asyncEngineCount * @asyncEngineCount.setter # <<<<<<<<<<<<<< * def asyncEngineCount(self, int asyncEngineCount): * self._ptr[0].asyncEngineCount = asyncEngineCount */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_16asyncEngineCount_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_asyncEngineCount); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_asyncEngineCount); if (unlikely((__pyx_v_asyncEngineCount == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7899, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.asyncEngineCount.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_16asyncEngineCount_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_asyncEngineCount)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_16asyncEngineCount_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_asyncEngineCount) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7898, 0, __PYX_ERR(0, 7898, __pyx_L1_error)); /* "cuda/cudart.pyx":7900 * @asyncEngineCount.setter * def asyncEngineCount(self, int asyncEngineCount): * self._ptr[0].asyncEngineCount = asyncEngineCount # <<<<<<<<<<<<<< * @property * def unifiedAddressing(self): */ (__pyx_v_self->_ptr[0]).asyncEngineCount = __pyx_v_asyncEngineCount; /* "cuda/cudart.pyx":7898 * def asyncEngineCount(self): * return self._ptr[0].asyncEngineCount * @asyncEngineCount.setter # <<<<<<<<<<<<<< * def asyncEngineCount(self, int asyncEngineCount): * self._ptr[0].asyncEngineCount = asyncEngineCount */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.asyncEngineCount.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7901 * def asyncEngineCount(self, int asyncEngineCount): * self._ptr[0].asyncEngineCount = asyncEngineCount * @property # <<<<<<<<<<<<<< * def unifiedAddressing(self): * return self._ptr[0].unifiedAddressing */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_17unifiedAddressing_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_17unifiedAddressing___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_17unifiedAddressing___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7901, 0, __PYX_ERR(0, 7901, __pyx_L1_error)); /* "cuda/cudart.pyx":7903 * @property * def unifiedAddressing(self): * return self._ptr[0].unifiedAddressing # <<<<<<<<<<<<<< * @unifiedAddressing.setter * def unifiedAddressing(self, int unifiedAddressing): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).unifiedAddressing); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7903, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7901 * def asyncEngineCount(self, int asyncEngineCount): * self._ptr[0].asyncEngineCount = asyncEngineCount * @property # <<<<<<<<<<<<<< * def unifiedAddressing(self): * return self._ptr[0].unifiedAddressing */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.unifiedAddressing.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7904 * def unifiedAddressing(self): * return self._ptr[0].unifiedAddressing * @unifiedAddressing.setter # <<<<<<<<<<<<<< * def unifiedAddressing(self, int unifiedAddressing): * self._ptr[0].unifiedAddressing = unifiedAddressing */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_17unifiedAddressing_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_unifiedAddressing); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_unifiedAddressing); if (unlikely((__pyx_v_unifiedAddressing == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7905, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.unifiedAddressing.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_17unifiedAddressing_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_unifiedAddressing)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_17unifiedAddressing_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_unifiedAddressing) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7904, 0, __PYX_ERR(0, 7904, __pyx_L1_error)); /* "cuda/cudart.pyx":7906 * @unifiedAddressing.setter * def unifiedAddressing(self, int unifiedAddressing): * self._ptr[0].unifiedAddressing = unifiedAddressing # <<<<<<<<<<<<<< * @property * def memoryClockRate(self): */ (__pyx_v_self->_ptr[0]).unifiedAddressing = __pyx_v_unifiedAddressing; /* "cuda/cudart.pyx":7904 * def unifiedAddressing(self): * return self._ptr[0].unifiedAddressing * @unifiedAddressing.setter # <<<<<<<<<<<<<< * def unifiedAddressing(self, int unifiedAddressing): * self._ptr[0].unifiedAddressing = unifiedAddressing */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.unifiedAddressing.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7907 * def unifiedAddressing(self, int unifiedAddressing): * self._ptr[0].unifiedAddressing = unifiedAddressing * @property # <<<<<<<<<<<<<< * def memoryClockRate(self): * return self._ptr[0].memoryClockRate */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_15memoryClockRate_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_15memoryClockRate_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_15memoryClockRate___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_15memoryClockRate___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7907, 0, __PYX_ERR(0, 7907, __pyx_L1_error)); /* "cuda/cudart.pyx":7909 * @property * def memoryClockRate(self): * return self._ptr[0].memoryClockRate # <<<<<<<<<<<<<< * @memoryClockRate.setter * def memoryClockRate(self, int memoryClockRate): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).memoryClockRate); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7909, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7907 * def unifiedAddressing(self, int unifiedAddressing): * self._ptr[0].unifiedAddressing = unifiedAddressing * @property # <<<<<<<<<<<<<< * def memoryClockRate(self): * return self._ptr[0].memoryClockRate */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.memoryClockRate.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7910 * def memoryClockRate(self): * return self._ptr[0].memoryClockRate * @memoryClockRate.setter # <<<<<<<<<<<<<< * def memoryClockRate(self, int memoryClockRate): * self._ptr[0].memoryClockRate = memoryClockRate */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_15memoryClockRate_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_memoryClockRate); /*proto*/ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_15memoryClockRate_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_memoryClockRate) { int __pyx_v_memoryClockRate; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; int __pyx_lineno = 0; const char *__pyx_filename = 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_memoryClockRate); { __pyx_v_memoryClockRate = __Pyx_PyInt_As_int(__pyx_arg_memoryClockRate); if (unlikely((__pyx_v_memoryClockRate == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7911, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.memoryClockRate.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_15memoryClockRate_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_memoryClockRate)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_15memoryClockRate_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_memoryClockRate) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7910, 0, __PYX_ERR(0, 7910, __pyx_L1_error)); /* "cuda/cudart.pyx":7912 * @memoryClockRate.setter * def memoryClockRate(self, int memoryClockRate): * self._ptr[0].memoryClockRate = memoryClockRate # <<<<<<<<<<<<<< * @property * def memoryBusWidth(self): */ (__pyx_v_self->_ptr[0]).memoryClockRate = __pyx_v_memoryClockRate; /* "cuda/cudart.pyx":7910 * def memoryClockRate(self): * return self._ptr[0].memoryClockRate * @memoryClockRate.setter # <<<<<<<<<<<<<< * def memoryClockRate(self, int memoryClockRate): * self._ptr[0].memoryClockRate = memoryClockRate */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.memoryClockRate.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7913 * def memoryClockRate(self, int memoryClockRate): * self._ptr[0].memoryClockRate = memoryClockRate * @property # <<<<<<<<<<<<<< * def memoryBusWidth(self): * return self._ptr[0].memoryBusWidth */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_14memoryBusWidth_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_14memoryBusWidth___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_14memoryBusWidth___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7913, 0, __PYX_ERR(0, 7913, __pyx_L1_error)); /* "cuda/cudart.pyx":7915 * @property * def memoryBusWidth(self): * return self._ptr[0].memoryBusWidth # <<<<<<<<<<<<<< * @memoryBusWidth.setter * def memoryBusWidth(self, int memoryBusWidth): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).memoryBusWidth); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7915, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7913 * def memoryClockRate(self, int memoryClockRate): * self._ptr[0].memoryClockRate = memoryClockRate * @property # <<<<<<<<<<<<<< * def memoryBusWidth(self): * return self._ptr[0].memoryBusWidth */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.memoryBusWidth.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7916 * def memoryBusWidth(self): * return self._ptr[0].memoryBusWidth * @memoryBusWidth.setter # <<<<<<<<<<<<<< * def memoryBusWidth(self, int memoryBusWidth): * self._ptr[0].memoryBusWidth = memoryBusWidth */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_14memoryBusWidth_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_memoryBusWidth); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_memoryBusWidth); if (unlikely((__pyx_v_memoryBusWidth == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7917, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.memoryBusWidth.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_14memoryBusWidth_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_memoryBusWidth)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_14memoryBusWidth_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_memoryBusWidth) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7916, 0, __PYX_ERR(0, 7916, __pyx_L1_error)); /* "cuda/cudart.pyx":7918 * @memoryBusWidth.setter * def memoryBusWidth(self, int memoryBusWidth): * self._ptr[0].memoryBusWidth = memoryBusWidth # <<<<<<<<<<<<<< * @property * def l2CacheSize(self): */ (__pyx_v_self->_ptr[0]).memoryBusWidth = __pyx_v_memoryBusWidth; /* "cuda/cudart.pyx":7916 * def memoryBusWidth(self): * return self._ptr[0].memoryBusWidth * @memoryBusWidth.setter # <<<<<<<<<<<<<< * def memoryBusWidth(self, int memoryBusWidth): * self._ptr[0].memoryBusWidth = memoryBusWidth */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.memoryBusWidth.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7919 * def memoryBusWidth(self, int memoryBusWidth): * self._ptr[0].memoryBusWidth = memoryBusWidth * @property # <<<<<<<<<<<<<< * def l2CacheSize(self): * return self._ptr[0].l2CacheSize */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_11l2CacheSize_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_11l2CacheSize___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_11l2CacheSize___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7919, 0, __PYX_ERR(0, 7919, __pyx_L1_error)); /* "cuda/cudart.pyx":7921 * @property * def l2CacheSize(self): * return self._ptr[0].l2CacheSize # <<<<<<<<<<<<<< * @l2CacheSize.setter * def l2CacheSize(self, int l2CacheSize): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).l2CacheSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7921, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7919 * def memoryBusWidth(self, int memoryBusWidth): * self._ptr[0].memoryBusWidth = memoryBusWidth * @property # <<<<<<<<<<<<<< * def l2CacheSize(self): * return self._ptr[0].l2CacheSize */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.l2CacheSize.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7922 * def l2CacheSize(self): * return self._ptr[0].l2CacheSize * @l2CacheSize.setter # <<<<<<<<<<<<<< * def l2CacheSize(self, int l2CacheSize): * self._ptr[0].l2CacheSize = l2CacheSize */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_11l2CacheSize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_l2CacheSize); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_l2CacheSize); if (unlikely((__pyx_v_l2CacheSize == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7923, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.l2CacheSize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_11l2CacheSize_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_l2CacheSize)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_11l2CacheSize_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_l2CacheSize) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7922, 0, __PYX_ERR(0, 7922, __pyx_L1_error)); /* "cuda/cudart.pyx":7924 * @l2CacheSize.setter * def l2CacheSize(self, int l2CacheSize): * self._ptr[0].l2CacheSize = l2CacheSize # <<<<<<<<<<<<<< * @property * def persistingL2CacheMaxSize(self): */ (__pyx_v_self->_ptr[0]).l2CacheSize = __pyx_v_l2CacheSize; /* "cuda/cudart.pyx":7922 * def l2CacheSize(self): * return self._ptr[0].l2CacheSize * @l2CacheSize.setter # <<<<<<<<<<<<<< * def l2CacheSize(self, int l2CacheSize): * self._ptr[0].l2CacheSize = l2CacheSize */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.l2CacheSize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7925 * def l2CacheSize(self, int l2CacheSize): * self._ptr[0].l2CacheSize = l2CacheSize * @property # <<<<<<<<<<<<<< * def persistingL2CacheMaxSize(self): * return self._ptr[0].persistingL2CacheMaxSize */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_24persistingL2CacheMaxSize_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_24persistingL2CacheMaxSize___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_24persistingL2CacheMaxSize___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7925, 0, __PYX_ERR(0, 7925, __pyx_L1_error)); /* "cuda/cudart.pyx":7927 * @property * def persistingL2CacheMaxSize(self): * return self._ptr[0].persistingL2CacheMaxSize # <<<<<<<<<<<<<< * @persistingL2CacheMaxSize.setter * def persistingL2CacheMaxSize(self, int persistingL2CacheMaxSize): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).persistingL2CacheMaxSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7927, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7925 * def l2CacheSize(self, int l2CacheSize): * self._ptr[0].l2CacheSize = l2CacheSize * @property # <<<<<<<<<<<<<< * def persistingL2CacheMaxSize(self): * return self._ptr[0].persistingL2CacheMaxSize */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.persistingL2CacheMaxSize.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7928 * def persistingL2CacheMaxSize(self): * return self._ptr[0].persistingL2CacheMaxSize * @persistingL2CacheMaxSize.setter # <<<<<<<<<<<<<< * def persistingL2CacheMaxSize(self, int persistingL2CacheMaxSize): * self._ptr[0].persistingL2CacheMaxSize = persistingL2CacheMaxSize */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_24persistingL2CacheMaxSize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_persistingL2CacheMaxSize); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_persistingL2CacheMaxSize); if (unlikely((__pyx_v_persistingL2CacheMaxSize == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7929, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.persistingL2CacheMaxSize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_24persistingL2CacheMaxSize_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_persistingL2CacheMaxSize)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_24persistingL2CacheMaxSize_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_persistingL2CacheMaxSize) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7928, 0, __PYX_ERR(0, 7928, __pyx_L1_error)); /* "cuda/cudart.pyx":7930 * @persistingL2CacheMaxSize.setter * def persistingL2CacheMaxSize(self, int persistingL2CacheMaxSize): * self._ptr[0].persistingL2CacheMaxSize = persistingL2CacheMaxSize # <<<<<<<<<<<<<< * @property * def maxThreadsPerMultiProcessor(self): */ (__pyx_v_self->_ptr[0]).persistingL2CacheMaxSize = __pyx_v_persistingL2CacheMaxSize; /* "cuda/cudart.pyx":7928 * def persistingL2CacheMaxSize(self): * return self._ptr[0].persistingL2CacheMaxSize * @persistingL2CacheMaxSize.setter # <<<<<<<<<<<<<< * def persistingL2CacheMaxSize(self, int persistingL2CacheMaxSize): * self._ptr[0].persistingL2CacheMaxSize = persistingL2CacheMaxSize */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.persistingL2CacheMaxSize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7931 * def persistingL2CacheMaxSize(self, int persistingL2CacheMaxSize): * self._ptr[0].persistingL2CacheMaxSize = persistingL2CacheMaxSize * @property # <<<<<<<<<<<<<< * def maxThreadsPerMultiProcessor(self): * return self._ptr[0].maxThreadsPerMultiProcessor */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_27maxThreadsPerMultiProcessor_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_27maxThreadsPerMultiProcessor___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_27maxThreadsPerMultiProcessor___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7931, 0, __PYX_ERR(0, 7931, __pyx_L1_error)); /* "cuda/cudart.pyx":7933 * @property * def maxThreadsPerMultiProcessor(self): * return self._ptr[0].maxThreadsPerMultiProcessor # <<<<<<<<<<<<<< * @maxThreadsPerMultiProcessor.setter * def maxThreadsPerMultiProcessor(self, int maxThreadsPerMultiProcessor): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).maxThreadsPerMultiProcessor); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7933, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7931 * def persistingL2CacheMaxSize(self, int persistingL2CacheMaxSize): * self._ptr[0].persistingL2CacheMaxSize = persistingL2CacheMaxSize * @property # <<<<<<<<<<<<<< * def maxThreadsPerMultiProcessor(self): * return self._ptr[0].maxThreadsPerMultiProcessor */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxThreadsPerMultiProcessor.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7934 * def maxThreadsPerMultiProcessor(self): * return self._ptr[0].maxThreadsPerMultiProcessor * @maxThreadsPerMultiProcessor.setter # <<<<<<<<<<<<<< * def maxThreadsPerMultiProcessor(self, int maxThreadsPerMultiProcessor): * self._ptr[0].maxThreadsPerMultiProcessor = maxThreadsPerMultiProcessor */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_27maxThreadsPerMultiProcessor_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxThreadsPerMultiProcessor); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_maxThreadsPerMultiProcessor); if (unlikely((__pyx_v_maxThreadsPerMultiProcessor == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7935, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxThreadsPerMultiProcessor.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_27maxThreadsPerMultiProcessor_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_maxThreadsPerMultiProcessor)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_27maxThreadsPerMultiProcessor_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_maxThreadsPerMultiProcessor) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7934, 0, __PYX_ERR(0, 7934, __pyx_L1_error)); /* "cuda/cudart.pyx":7936 * @maxThreadsPerMultiProcessor.setter * def maxThreadsPerMultiProcessor(self, int maxThreadsPerMultiProcessor): * self._ptr[0].maxThreadsPerMultiProcessor = maxThreadsPerMultiProcessor # <<<<<<<<<<<<<< * @property * def streamPrioritiesSupported(self): */ (__pyx_v_self->_ptr[0]).maxThreadsPerMultiProcessor = __pyx_v_maxThreadsPerMultiProcessor; /* "cuda/cudart.pyx":7934 * def maxThreadsPerMultiProcessor(self): * return self._ptr[0].maxThreadsPerMultiProcessor * @maxThreadsPerMultiProcessor.setter # <<<<<<<<<<<<<< * def maxThreadsPerMultiProcessor(self, int maxThreadsPerMultiProcessor): * self._ptr[0].maxThreadsPerMultiProcessor = maxThreadsPerMultiProcessor */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxThreadsPerMultiProcessor.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7937 * def maxThreadsPerMultiProcessor(self, int maxThreadsPerMultiProcessor): * self._ptr[0].maxThreadsPerMultiProcessor = maxThreadsPerMultiProcessor * @property # <<<<<<<<<<<<<< * def streamPrioritiesSupported(self): * return self._ptr[0].streamPrioritiesSupported */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_25streamPrioritiesSupported_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_25streamPrioritiesSupported___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_25streamPrioritiesSupported___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7937, 0, __PYX_ERR(0, 7937, __pyx_L1_error)); /* "cuda/cudart.pyx":7939 * @property * def streamPrioritiesSupported(self): * return self._ptr[0].streamPrioritiesSupported # <<<<<<<<<<<<<< * @streamPrioritiesSupported.setter * def streamPrioritiesSupported(self, int streamPrioritiesSupported): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).streamPrioritiesSupported); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7939, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7937 * def maxThreadsPerMultiProcessor(self, int maxThreadsPerMultiProcessor): * self._ptr[0].maxThreadsPerMultiProcessor = maxThreadsPerMultiProcessor * @property # <<<<<<<<<<<<<< * def streamPrioritiesSupported(self): * return self._ptr[0].streamPrioritiesSupported */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.streamPrioritiesSupported.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7940 * def streamPrioritiesSupported(self): * return self._ptr[0].streamPrioritiesSupported * @streamPrioritiesSupported.setter # <<<<<<<<<<<<<< * def streamPrioritiesSupported(self, int streamPrioritiesSupported): * self._ptr[0].streamPrioritiesSupported = streamPrioritiesSupported */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_25streamPrioritiesSupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_streamPrioritiesSupported); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_streamPrioritiesSupported); if (unlikely((__pyx_v_streamPrioritiesSupported == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7941, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.streamPrioritiesSupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_25streamPrioritiesSupported_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_streamPrioritiesSupported)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_25streamPrioritiesSupported_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_streamPrioritiesSupported) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7940, 0, __PYX_ERR(0, 7940, __pyx_L1_error)); /* "cuda/cudart.pyx":7942 * @streamPrioritiesSupported.setter * def streamPrioritiesSupported(self, int streamPrioritiesSupported): * self._ptr[0].streamPrioritiesSupported = streamPrioritiesSupported # <<<<<<<<<<<<<< * @property * def globalL1CacheSupported(self): */ (__pyx_v_self->_ptr[0]).streamPrioritiesSupported = __pyx_v_streamPrioritiesSupported; /* "cuda/cudart.pyx":7940 * def streamPrioritiesSupported(self): * return self._ptr[0].streamPrioritiesSupported * @streamPrioritiesSupported.setter # <<<<<<<<<<<<<< * def streamPrioritiesSupported(self, int streamPrioritiesSupported): * self._ptr[0].streamPrioritiesSupported = streamPrioritiesSupported */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.streamPrioritiesSupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7943 * def streamPrioritiesSupported(self, int streamPrioritiesSupported): * self._ptr[0].streamPrioritiesSupported = streamPrioritiesSupported * @property # <<<<<<<<<<<<<< * def globalL1CacheSupported(self): * return self._ptr[0].globalL1CacheSupported */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_22globalL1CacheSupported_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_22globalL1CacheSupported___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_22globalL1CacheSupported___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7943, 0, __PYX_ERR(0, 7943, __pyx_L1_error)); /* "cuda/cudart.pyx":7945 * @property * def globalL1CacheSupported(self): * return self._ptr[0].globalL1CacheSupported # <<<<<<<<<<<<<< * @globalL1CacheSupported.setter * def globalL1CacheSupported(self, int globalL1CacheSupported): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).globalL1CacheSupported); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7945, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7943 * def streamPrioritiesSupported(self, int streamPrioritiesSupported): * self._ptr[0].streamPrioritiesSupported = streamPrioritiesSupported * @property # <<<<<<<<<<<<<< * def globalL1CacheSupported(self): * return self._ptr[0].globalL1CacheSupported */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.globalL1CacheSupported.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7946 * def globalL1CacheSupported(self): * return self._ptr[0].globalL1CacheSupported * @globalL1CacheSupported.setter # <<<<<<<<<<<<<< * def globalL1CacheSupported(self, int globalL1CacheSupported): * self._ptr[0].globalL1CacheSupported = globalL1CacheSupported */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_22globalL1CacheSupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_globalL1CacheSupported); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_globalL1CacheSupported); if (unlikely((__pyx_v_globalL1CacheSupported == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7947, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.globalL1CacheSupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_22globalL1CacheSupported_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_globalL1CacheSupported)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_22globalL1CacheSupported_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_globalL1CacheSupported) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7946, 0, __PYX_ERR(0, 7946, __pyx_L1_error)); /* "cuda/cudart.pyx":7948 * @globalL1CacheSupported.setter * def globalL1CacheSupported(self, int globalL1CacheSupported): * self._ptr[0].globalL1CacheSupported = globalL1CacheSupported # <<<<<<<<<<<<<< * @property * def localL1CacheSupported(self): */ (__pyx_v_self->_ptr[0]).globalL1CacheSupported = __pyx_v_globalL1CacheSupported; /* "cuda/cudart.pyx":7946 * def globalL1CacheSupported(self): * return self._ptr[0].globalL1CacheSupported * @globalL1CacheSupported.setter # <<<<<<<<<<<<<< * def globalL1CacheSupported(self, int globalL1CacheSupported): * self._ptr[0].globalL1CacheSupported = globalL1CacheSupported */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.globalL1CacheSupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7949 * def globalL1CacheSupported(self, int globalL1CacheSupported): * self._ptr[0].globalL1CacheSupported = globalL1CacheSupported * @property # <<<<<<<<<<<<<< * def localL1CacheSupported(self): * return self._ptr[0].localL1CacheSupported */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_21localL1CacheSupported_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_21localL1CacheSupported___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_21localL1CacheSupported___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7949, 0, __PYX_ERR(0, 7949, __pyx_L1_error)); /* "cuda/cudart.pyx":7951 * @property * def localL1CacheSupported(self): * return self._ptr[0].localL1CacheSupported # <<<<<<<<<<<<<< * @localL1CacheSupported.setter * def localL1CacheSupported(self, int localL1CacheSupported): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).localL1CacheSupported); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7951, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7949 * def globalL1CacheSupported(self, int globalL1CacheSupported): * self._ptr[0].globalL1CacheSupported = globalL1CacheSupported * @property # <<<<<<<<<<<<<< * def localL1CacheSupported(self): * return self._ptr[0].localL1CacheSupported */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.localL1CacheSupported.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7952 * def localL1CacheSupported(self): * return self._ptr[0].localL1CacheSupported * @localL1CacheSupported.setter # <<<<<<<<<<<<<< * def localL1CacheSupported(self, int localL1CacheSupported): * self._ptr[0].localL1CacheSupported = localL1CacheSupported */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_21localL1CacheSupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_localL1CacheSupported); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_localL1CacheSupported); if (unlikely((__pyx_v_localL1CacheSupported == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7953, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.localL1CacheSupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_21localL1CacheSupported_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_localL1CacheSupported)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_21localL1CacheSupported_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_localL1CacheSupported) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7952, 0, __PYX_ERR(0, 7952, __pyx_L1_error)); /* "cuda/cudart.pyx":7954 * @localL1CacheSupported.setter * def localL1CacheSupported(self, int localL1CacheSupported): * self._ptr[0].localL1CacheSupported = localL1CacheSupported # <<<<<<<<<<<<<< * @property * def sharedMemPerMultiprocessor(self): */ (__pyx_v_self->_ptr[0]).localL1CacheSupported = __pyx_v_localL1CacheSupported; /* "cuda/cudart.pyx":7952 * def localL1CacheSupported(self): * return self._ptr[0].localL1CacheSupported * @localL1CacheSupported.setter # <<<<<<<<<<<<<< * def localL1CacheSupported(self, int localL1CacheSupported): * self._ptr[0].localL1CacheSupported = localL1CacheSupported */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.localL1CacheSupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7955 * def localL1CacheSupported(self, int localL1CacheSupported): * self._ptr[0].localL1CacheSupported = localL1CacheSupported * @property # <<<<<<<<<<<<<< * def sharedMemPerMultiprocessor(self): * return self._ptr[0].sharedMemPerMultiprocessor */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_26sharedMemPerMultiprocessor_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_26sharedMemPerMultiprocessor___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_26sharedMemPerMultiprocessor___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7955, 0, __PYX_ERR(0, 7955, __pyx_L1_error)); /* "cuda/cudart.pyx":7957 * @property * def sharedMemPerMultiprocessor(self): * return self._ptr[0].sharedMemPerMultiprocessor # <<<<<<<<<<<<<< * @sharedMemPerMultiprocessor.setter * def sharedMemPerMultiprocessor(self, size_t sharedMemPerMultiprocessor): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).sharedMemPerMultiprocessor); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7957, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7955 * def localL1CacheSupported(self, int localL1CacheSupported): * self._ptr[0].localL1CacheSupported = localL1CacheSupported * @property # <<<<<<<<<<<<<< * def sharedMemPerMultiprocessor(self): * return self._ptr[0].sharedMemPerMultiprocessor */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.sharedMemPerMultiprocessor.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7958 * def sharedMemPerMultiprocessor(self): * return self._ptr[0].sharedMemPerMultiprocessor * @sharedMemPerMultiprocessor.setter # <<<<<<<<<<<<<< * def sharedMemPerMultiprocessor(self, size_t sharedMemPerMultiprocessor): * self._ptr[0].sharedMemPerMultiprocessor = sharedMemPerMultiprocessor */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_26sharedMemPerMultiprocessor_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_sharedMemPerMultiprocessor); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_sharedMemPerMultiprocessor); if (unlikely((__pyx_v_sharedMemPerMultiprocessor == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 7959, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.sharedMemPerMultiprocessor.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_26sharedMemPerMultiprocessor_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((size_t)__pyx_v_sharedMemPerMultiprocessor)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_26sharedMemPerMultiprocessor_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, size_t __pyx_v_sharedMemPerMultiprocessor) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7958, 0, __PYX_ERR(0, 7958, __pyx_L1_error)); /* "cuda/cudart.pyx":7960 * @sharedMemPerMultiprocessor.setter * def sharedMemPerMultiprocessor(self, size_t sharedMemPerMultiprocessor): * self._ptr[0].sharedMemPerMultiprocessor = sharedMemPerMultiprocessor # <<<<<<<<<<<<<< * @property * def regsPerMultiprocessor(self): */ (__pyx_v_self->_ptr[0]).sharedMemPerMultiprocessor = __pyx_v_sharedMemPerMultiprocessor; /* "cuda/cudart.pyx":7958 * def sharedMemPerMultiprocessor(self): * return self._ptr[0].sharedMemPerMultiprocessor * @sharedMemPerMultiprocessor.setter # <<<<<<<<<<<<<< * def sharedMemPerMultiprocessor(self, size_t sharedMemPerMultiprocessor): * self._ptr[0].sharedMemPerMultiprocessor = sharedMemPerMultiprocessor */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.sharedMemPerMultiprocessor.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7961 * def sharedMemPerMultiprocessor(self, size_t sharedMemPerMultiprocessor): * self._ptr[0].sharedMemPerMultiprocessor = sharedMemPerMultiprocessor * @property # <<<<<<<<<<<<<< * def regsPerMultiprocessor(self): * return self._ptr[0].regsPerMultiprocessor */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_21regsPerMultiprocessor_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_21regsPerMultiprocessor___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_21regsPerMultiprocessor___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7961, 0, __PYX_ERR(0, 7961, __pyx_L1_error)); /* "cuda/cudart.pyx":7963 * @property * def regsPerMultiprocessor(self): * return self._ptr[0].regsPerMultiprocessor # <<<<<<<<<<<<<< * @regsPerMultiprocessor.setter * def regsPerMultiprocessor(self, int regsPerMultiprocessor): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).regsPerMultiprocessor); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7963, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7961 * def sharedMemPerMultiprocessor(self, size_t sharedMemPerMultiprocessor): * self._ptr[0].sharedMemPerMultiprocessor = sharedMemPerMultiprocessor * @property # <<<<<<<<<<<<<< * def regsPerMultiprocessor(self): * return self._ptr[0].regsPerMultiprocessor */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.regsPerMultiprocessor.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7964 * def regsPerMultiprocessor(self): * return self._ptr[0].regsPerMultiprocessor * @regsPerMultiprocessor.setter # <<<<<<<<<<<<<< * def regsPerMultiprocessor(self, int regsPerMultiprocessor): * self._ptr[0].regsPerMultiprocessor = regsPerMultiprocessor */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_21regsPerMultiprocessor_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_regsPerMultiprocessor); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_regsPerMultiprocessor); if (unlikely((__pyx_v_regsPerMultiprocessor == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7965, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.regsPerMultiprocessor.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_21regsPerMultiprocessor_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_regsPerMultiprocessor)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_21regsPerMultiprocessor_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_regsPerMultiprocessor) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7964, 0, __PYX_ERR(0, 7964, __pyx_L1_error)); /* "cuda/cudart.pyx":7966 * @regsPerMultiprocessor.setter * def regsPerMultiprocessor(self, int regsPerMultiprocessor): * self._ptr[0].regsPerMultiprocessor = regsPerMultiprocessor # <<<<<<<<<<<<<< * @property * def managedMemory(self): */ (__pyx_v_self->_ptr[0]).regsPerMultiprocessor = __pyx_v_regsPerMultiprocessor; /* "cuda/cudart.pyx":7964 * def regsPerMultiprocessor(self): * return self._ptr[0].regsPerMultiprocessor * @regsPerMultiprocessor.setter # <<<<<<<<<<<<<< * def regsPerMultiprocessor(self, int regsPerMultiprocessor): * self._ptr[0].regsPerMultiprocessor = regsPerMultiprocessor */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.regsPerMultiprocessor.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7967 * def regsPerMultiprocessor(self, int regsPerMultiprocessor): * self._ptr[0].regsPerMultiprocessor = regsPerMultiprocessor * @property # <<<<<<<<<<<<<< * def managedMemory(self): * return self._ptr[0].managedMemory */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_13managedMemory_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_13managedMemory___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_13managedMemory___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7967, 0, __PYX_ERR(0, 7967, __pyx_L1_error)); /* "cuda/cudart.pyx":7969 * @property * def managedMemory(self): * return self._ptr[0].managedMemory # <<<<<<<<<<<<<< * @managedMemory.setter * def managedMemory(self, int managedMemory): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).managedMemory); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7969, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7967 * def regsPerMultiprocessor(self, int regsPerMultiprocessor): * self._ptr[0].regsPerMultiprocessor = regsPerMultiprocessor * @property # <<<<<<<<<<<<<< * def managedMemory(self): * return self._ptr[0].managedMemory */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.managedMemory.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7970 * def managedMemory(self): * return self._ptr[0].managedMemory * @managedMemory.setter # <<<<<<<<<<<<<< * def managedMemory(self, int managedMemory): * self._ptr[0].managedMemory = managedMemory */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_13managedMemory_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_managedMemory); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_managedMemory); if (unlikely((__pyx_v_managedMemory == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7971, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.managedMemory.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_13managedMemory_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_managedMemory)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_13managedMemory_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_managedMemory) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7970, 0, __PYX_ERR(0, 7970, __pyx_L1_error)); /* "cuda/cudart.pyx":7972 * @managedMemory.setter * def managedMemory(self, int managedMemory): * self._ptr[0].managedMemory = managedMemory # <<<<<<<<<<<<<< * @property * def isMultiGpuBoard(self): */ (__pyx_v_self->_ptr[0]).managedMemory = __pyx_v_managedMemory; /* "cuda/cudart.pyx":7970 * def managedMemory(self): * return self._ptr[0].managedMemory * @managedMemory.setter # <<<<<<<<<<<<<< * def managedMemory(self, int managedMemory): * self._ptr[0].managedMemory = managedMemory */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.managedMemory.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7973 * def managedMemory(self, int managedMemory): * self._ptr[0].managedMemory = managedMemory * @property # <<<<<<<<<<<<<< * def isMultiGpuBoard(self): * return self._ptr[0].isMultiGpuBoard */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_15isMultiGpuBoard_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_15isMultiGpuBoard___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_15isMultiGpuBoard___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7973, 0, __PYX_ERR(0, 7973, __pyx_L1_error)); /* "cuda/cudart.pyx":7975 * @property * def isMultiGpuBoard(self): * return self._ptr[0].isMultiGpuBoard # <<<<<<<<<<<<<< * @isMultiGpuBoard.setter * def isMultiGpuBoard(self, int isMultiGpuBoard): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).isMultiGpuBoard); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7975, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7973 * def managedMemory(self, int managedMemory): * self._ptr[0].managedMemory = managedMemory * @property # <<<<<<<<<<<<<< * def isMultiGpuBoard(self): * return self._ptr[0].isMultiGpuBoard */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.isMultiGpuBoard.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7976 * def isMultiGpuBoard(self): * return self._ptr[0].isMultiGpuBoard * @isMultiGpuBoard.setter # <<<<<<<<<<<<<< * def isMultiGpuBoard(self, int isMultiGpuBoard): * self._ptr[0].isMultiGpuBoard = isMultiGpuBoard */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_15isMultiGpuBoard_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_isMultiGpuBoard); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_isMultiGpuBoard); if (unlikely((__pyx_v_isMultiGpuBoard == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7977, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.isMultiGpuBoard.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_15isMultiGpuBoard_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_isMultiGpuBoard)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_15isMultiGpuBoard_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_isMultiGpuBoard) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7976, 0, __PYX_ERR(0, 7976, __pyx_L1_error)); /* "cuda/cudart.pyx":7978 * @isMultiGpuBoard.setter * def isMultiGpuBoard(self, int isMultiGpuBoard): * self._ptr[0].isMultiGpuBoard = isMultiGpuBoard # <<<<<<<<<<<<<< * @property * def multiGpuBoardGroupID(self): */ (__pyx_v_self->_ptr[0]).isMultiGpuBoard = __pyx_v_isMultiGpuBoard; /* "cuda/cudart.pyx":7976 * def isMultiGpuBoard(self): * return self._ptr[0].isMultiGpuBoard * @isMultiGpuBoard.setter # <<<<<<<<<<<<<< * def isMultiGpuBoard(self, int isMultiGpuBoard): * self._ptr[0].isMultiGpuBoard = isMultiGpuBoard */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.isMultiGpuBoard.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7979 * def isMultiGpuBoard(self, int isMultiGpuBoard): * self._ptr[0].isMultiGpuBoard = isMultiGpuBoard * @property # <<<<<<<<<<<<<< * def multiGpuBoardGroupID(self): * return self._ptr[0].multiGpuBoardGroupID */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_20multiGpuBoardGroupID_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_20multiGpuBoardGroupID___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_20multiGpuBoardGroupID___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7979, 0, __PYX_ERR(0, 7979, __pyx_L1_error)); /* "cuda/cudart.pyx":7981 * @property * def multiGpuBoardGroupID(self): * return self._ptr[0].multiGpuBoardGroupID # <<<<<<<<<<<<<< * @multiGpuBoardGroupID.setter * def multiGpuBoardGroupID(self, int multiGpuBoardGroupID): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).multiGpuBoardGroupID); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7981, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7979 * def isMultiGpuBoard(self, int isMultiGpuBoard): * self._ptr[0].isMultiGpuBoard = isMultiGpuBoard * @property # <<<<<<<<<<<<<< * def multiGpuBoardGroupID(self): * return self._ptr[0].multiGpuBoardGroupID */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.multiGpuBoardGroupID.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7982 * def multiGpuBoardGroupID(self): * return self._ptr[0].multiGpuBoardGroupID * @multiGpuBoardGroupID.setter # <<<<<<<<<<<<<< * def multiGpuBoardGroupID(self, int multiGpuBoardGroupID): * self._ptr[0].multiGpuBoardGroupID = multiGpuBoardGroupID */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_20multiGpuBoardGroupID_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_multiGpuBoardGroupID); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_multiGpuBoardGroupID); if (unlikely((__pyx_v_multiGpuBoardGroupID == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7983, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.multiGpuBoardGroupID.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_20multiGpuBoardGroupID_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_multiGpuBoardGroupID)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_20multiGpuBoardGroupID_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_multiGpuBoardGroupID) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7982, 0, __PYX_ERR(0, 7982, __pyx_L1_error)); /* "cuda/cudart.pyx":7984 * @multiGpuBoardGroupID.setter * def multiGpuBoardGroupID(self, int multiGpuBoardGroupID): * self._ptr[0].multiGpuBoardGroupID = multiGpuBoardGroupID # <<<<<<<<<<<<<< * @property * def hostNativeAtomicSupported(self): */ (__pyx_v_self->_ptr[0]).multiGpuBoardGroupID = __pyx_v_multiGpuBoardGroupID; /* "cuda/cudart.pyx":7982 * def multiGpuBoardGroupID(self): * return self._ptr[0].multiGpuBoardGroupID * @multiGpuBoardGroupID.setter # <<<<<<<<<<<<<< * def multiGpuBoardGroupID(self, int multiGpuBoardGroupID): * self._ptr[0].multiGpuBoardGroupID = multiGpuBoardGroupID */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.multiGpuBoardGroupID.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7985 * def multiGpuBoardGroupID(self, int multiGpuBoardGroupID): * self._ptr[0].multiGpuBoardGroupID = multiGpuBoardGroupID * @property # <<<<<<<<<<<<<< * def hostNativeAtomicSupported(self): * return self._ptr[0].hostNativeAtomicSupported */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_25hostNativeAtomicSupported_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_25hostNativeAtomicSupported___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_25hostNativeAtomicSupported___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7985, 0, __PYX_ERR(0, 7985, __pyx_L1_error)); /* "cuda/cudart.pyx":7987 * @property * def hostNativeAtomicSupported(self): * return self._ptr[0].hostNativeAtomicSupported # <<<<<<<<<<<<<< * @hostNativeAtomicSupported.setter * def hostNativeAtomicSupported(self, int hostNativeAtomicSupported): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).hostNativeAtomicSupported); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7987, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7985 * def multiGpuBoardGroupID(self, int multiGpuBoardGroupID): * self._ptr[0].multiGpuBoardGroupID = multiGpuBoardGroupID * @property # <<<<<<<<<<<<<< * def hostNativeAtomicSupported(self): * return self._ptr[0].hostNativeAtomicSupported */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.hostNativeAtomicSupported.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7988 * def hostNativeAtomicSupported(self): * return self._ptr[0].hostNativeAtomicSupported * @hostNativeAtomicSupported.setter # <<<<<<<<<<<<<< * def hostNativeAtomicSupported(self, int hostNativeAtomicSupported): * self._ptr[0].hostNativeAtomicSupported = hostNativeAtomicSupported */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_25hostNativeAtomicSupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_hostNativeAtomicSupported); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_hostNativeAtomicSupported); if (unlikely((__pyx_v_hostNativeAtomicSupported == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7989, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.hostNativeAtomicSupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_25hostNativeAtomicSupported_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_hostNativeAtomicSupported)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_25hostNativeAtomicSupported_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_hostNativeAtomicSupported) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7988, 0, __PYX_ERR(0, 7988, __pyx_L1_error)); /* "cuda/cudart.pyx":7990 * @hostNativeAtomicSupported.setter * def hostNativeAtomicSupported(self, int hostNativeAtomicSupported): * self._ptr[0].hostNativeAtomicSupported = hostNativeAtomicSupported # <<<<<<<<<<<<<< * @property * def singleToDoublePrecisionPerfRatio(self): */ (__pyx_v_self->_ptr[0]).hostNativeAtomicSupported = __pyx_v_hostNativeAtomicSupported; /* "cuda/cudart.pyx":7988 * def hostNativeAtomicSupported(self): * return self._ptr[0].hostNativeAtomicSupported * @hostNativeAtomicSupported.setter # <<<<<<<<<<<<<< * def hostNativeAtomicSupported(self, int hostNativeAtomicSupported): * self._ptr[0].hostNativeAtomicSupported = hostNativeAtomicSupported */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.hostNativeAtomicSupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7991 * def hostNativeAtomicSupported(self, int hostNativeAtomicSupported): * self._ptr[0].hostNativeAtomicSupported = hostNativeAtomicSupported * @property # <<<<<<<<<<<<<< * def singleToDoublePrecisionPerfRatio(self): * return self._ptr[0].singleToDoublePrecisionPerfRatio */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_32singleToDoublePrecisionPerfRatio_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_32singleToDoublePrecisionPerfRatio_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_32singleToDoublePrecisionPerfRatio___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_32singleToDoublePrecisionPerfRatio___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7991, 0, __PYX_ERR(0, 7991, __pyx_L1_error)); /* "cuda/cudart.pyx":7993 * @property * def singleToDoublePrecisionPerfRatio(self): * return self._ptr[0].singleToDoublePrecisionPerfRatio # <<<<<<<<<<<<<< * @singleToDoublePrecisionPerfRatio.setter * def singleToDoublePrecisionPerfRatio(self, int singleToDoublePrecisionPerfRatio): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).singleToDoublePrecisionPerfRatio); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7993, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7991 * def hostNativeAtomicSupported(self, int hostNativeAtomicSupported): * self._ptr[0].hostNativeAtomicSupported = hostNativeAtomicSupported * @property # <<<<<<<<<<<<<< * def singleToDoublePrecisionPerfRatio(self): * return self._ptr[0].singleToDoublePrecisionPerfRatio */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.singleToDoublePrecisionPerfRatio.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":7994 * def singleToDoublePrecisionPerfRatio(self): * return self._ptr[0].singleToDoublePrecisionPerfRatio * @singleToDoublePrecisionPerfRatio.setter # <<<<<<<<<<<<<< * def singleToDoublePrecisionPerfRatio(self, int singleToDoublePrecisionPerfRatio): * self._ptr[0].singleToDoublePrecisionPerfRatio = singleToDoublePrecisionPerfRatio */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_32singleToDoublePrecisionPerfRatio_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_singleToDoublePrecisionPerfRatio); /*proto*/ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_32singleToDoublePrecisionPerfRatio_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_singleToDoublePrecisionPerfRatio) { int __pyx_v_singleToDoublePrecisionPerfRatio; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; int __pyx_lineno = 0; const char *__pyx_filename = 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_singleToDoublePrecisionPerfRatio); { __pyx_v_singleToDoublePrecisionPerfRatio = __Pyx_PyInt_As_int(__pyx_arg_singleToDoublePrecisionPerfRatio); if (unlikely((__pyx_v_singleToDoublePrecisionPerfRatio == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7995, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.singleToDoublePrecisionPerfRatio.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_32singleToDoublePrecisionPerfRatio_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_singleToDoublePrecisionPerfRatio)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_32singleToDoublePrecisionPerfRatio_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_singleToDoublePrecisionPerfRatio) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 7994, 0, __PYX_ERR(0, 7994, __pyx_L1_error)); /* "cuda/cudart.pyx":7996 * @singleToDoublePrecisionPerfRatio.setter * def singleToDoublePrecisionPerfRatio(self, int singleToDoublePrecisionPerfRatio): * self._ptr[0].singleToDoublePrecisionPerfRatio = singleToDoublePrecisionPerfRatio # <<<<<<<<<<<<<< * @property * def pageableMemoryAccess(self): */ (__pyx_v_self->_ptr[0]).singleToDoublePrecisionPerfRatio = __pyx_v_singleToDoublePrecisionPerfRatio; /* "cuda/cudart.pyx":7994 * def singleToDoublePrecisionPerfRatio(self): * return self._ptr[0].singleToDoublePrecisionPerfRatio * @singleToDoublePrecisionPerfRatio.setter # <<<<<<<<<<<<<< * def singleToDoublePrecisionPerfRatio(self, int singleToDoublePrecisionPerfRatio): * self._ptr[0].singleToDoublePrecisionPerfRatio = singleToDoublePrecisionPerfRatio */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.singleToDoublePrecisionPerfRatio.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":7997 * def singleToDoublePrecisionPerfRatio(self, int singleToDoublePrecisionPerfRatio): * self._ptr[0].singleToDoublePrecisionPerfRatio = singleToDoublePrecisionPerfRatio * @property # <<<<<<<<<<<<<< * def pageableMemoryAccess(self): * return self._ptr[0].pageableMemoryAccess */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_20pageableMemoryAccess_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_20pageableMemoryAccess___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_20pageableMemoryAccess___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 7997, 0, __PYX_ERR(0, 7997, __pyx_L1_error)); /* "cuda/cudart.pyx":7999 * @property * def pageableMemoryAccess(self): * return self._ptr[0].pageableMemoryAccess # <<<<<<<<<<<<<< * @pageableMemoryAccess.setter * def pageableMemoryAccess(self, int pageableMemoryAccess): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).pageableMemoryAccess); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7999, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":7997 * def singleToDoublePrecisionPerfRatio(self, int singleToDoublePrecisionPerfRatio): * self._ptr[0].singleToDoublePrecisionPerfRatio = singleToDoublePrecisionPerfRatio * @property # <<<<<<<<<<<<<< * def pageableMemoryAccess(self): * return self._ptr[0].pageableMemoryAccess */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.pageableMemoryAccess.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8000 * def pageableMemoryAccess(self): * return self._ptr[0].pageableMemoryAccess * @pageableMemoryAccess.setter # <<<<<<<<<<<<<< * def pageableMemoryAccess(self, int pageableMemoryAccess): * self._ptr[0].pageableMemoryAccess = pageableMemoryAccess */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_20pageableMemoryAccess_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_pageableMemoryAccess); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_pageableMemoryAccess); if (unlikely((__pyx_v_pageableMemoryAccess == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8001, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.pageableMemoryAccess.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_20pageableMemoryAccess_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_pageableMemoryAccess)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_20pageableMemoryAccess_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_pageableMemoryAccess) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8000, 0, __PYX_ERR(0, 8000, __pyx_L1_error)); /* "cuda/cudart.pyx":8002 * @pageableMemoryAccess.setter * def pageableMemoryAccess(self, int pageableMemoryAccess): * self._ptr[0].pageableMemoryAccess = pageableMemoryAccess # <<<<<<<<<<<<<< * @property * def concurrentManagedAccess(self): */ (__pyx_v_self->_ptr[0]).pageableMemoryAccess = __pyx_v_pageableMemoryAccess; /* "cuda/cudart.pyx":8000 * def pageableMemoryAccess(self): * return self._ptr[0].pageableMemoryAccess * @pageableMemoryAccess.setter # <<<<<<<<<<<<<< * def pageableMemoryAccess(self, int pageableMemoryAccess): * self._ptr[0].pageableMemoryAccess = pageableMemoryAccess */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.pageableMemoryAccess.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8003 * def pageableMemoryAccess(self, int pageableMemoryAccess): * self._ptr[0].pageableMemoryAccess = pageableMemoryAccess * @property # <<<<<<<<<<<<<< * def concurrentManagedAccess(self): * return self._ptr[0].concurrentManagedAccess */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_23concurrentManagedAccess_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_23concurrentManagedAccess___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_23concurrentManagedAccess___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8003, 0, __PYX_ERR(0, 8003, __pyx_L1_error)); /* "cuda/cudart.pyx":8005 * @property * def concurrentManagedAccess(self): * return self._ptr[0].concurrentManagedAccess # <<<<<<<<<<<<<< * @concurrentManagedAccess.setter * def concurrentManagedAccess(self, int concurrentManagedAccess): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).concurrentManagedAccess); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8005, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8003 * def pageableMemoryAccess(self, int pageableMemoryAccess): * self._ptr[0].pageableMemoryAccess = pageableMemoryAccess * @property # <<<<<<<<<<<<<< * def concurrentManagedAccess(self): * return self._ptr[0].concurrentManagedAccess */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.concurrentManagedAccess.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8006 * def concurrentManagedAccess(self): * return self._ptr[0].concurrentManagedAccess * @concurrentManagedAccess.setter # <<<<<<<<<<<<<< * def concurrentManagedAccess(self, int concurrentManagedAccess): * self._ptr[0].concurrentManagedAccess = concurrentManagedAccess */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_23concurrentManagedAccess_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_concurrentManagedAccess); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_concurrentManagedAccess); if (unlikely((__pyx_v_concurrentManagedAccess == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8007, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.concurrentManagedAccess.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_23concurrentManagedAccess_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_concurrentManagedAccess)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_23concurrentManagedAccess_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_concurrentManagedAccess) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8006, 0, __PYX_ERR(0, 8006, __pyx_L1_error)); /* "cuda/cudart.pyx":8008 * @concurrentManagedAccess.setter * def concurrentManagedAccess(self, int concurrentManagedAccess): * self._ptr[0].concurrentManagedAccess = concurrentManagedAccess # <<<<<<<<<<<<<< * @property * def computePreemptionSupported(self): */ (__pyx_v_self->_ptr[0]).concurrentManagedAccess = __pyx_v_concurrentManagedAccess; /* "cuda/cudart.pyx":8006 * def concurrentManagedAccess(self): * return self._ptr[0].concurrentManagedAccess * @concurrentManagedAccess.setter # <<<<<<<<<<<<<< * def concurrentManagedAccess(self, int concurrentManagedAccess): * self._ptr[0].concurrentManagedAccess = concurrentManagedAccess */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.concurrentManagedAccess.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8009 * def concurrentManagedAccess(self, int concurrentManagedAccess): * self._ptr[0].concurrentManagedAccess = concurrentManagedAccess * @property # <<<<<<<<<<<<<< * def computePreemptionSupported(self): * return self._ptr[0].computePreemptionSupported */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_26computePreemptionSupported_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_26computePreemptionSupported___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_26computePreemptionSupported___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8009, 0, __PYX_ERR(0, 8009, __pyx_L1_error)); /* "cuda/cudart.pyx":8011 * @property * def computePreemptionSupported(self): * return self._ptr[0].computePreemptionSupported # <<<<<<<<<<<<<< * @computePreemptionSupported.setter * def computePreemptionSupported(self, int computePreemptionSupported): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).computePreemptionSupported); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8011, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8009 * def concurrentManagedAccess(self, int concurrentManagedAccess): * self._ptr[0].concurrentManagedAccess = concurrentManagedAccess * @property # <<<<<<<<<<<<<< * def computePreemptionSupported(self): * return self._ptr[0].computePreemptionSupported */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.computePreemptionSupported.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8012 * def computePreemptionSupported(self): * return self._ptr[0].computePreemptionSupported * @computePreemptionSupported.setter # <<<<<<<<<<<<<< * def computePreemptionSupported(self, int computePreemptionSupported): * self._ptr[0].computePreemptionSupported = computePreemptionSupported */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_26computePreemptionSupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_computePreemptionSupported); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_computePreemptionSupported); if (unlikely((__pyx_v_computePreemptionSupported == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8013, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.computePreemptionSupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_26computePreemptionSupported_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_computePreemptionSupported)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_26computePreemptionSupported_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_computePreemptionSupported) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8012, 0, __PYX_ERR(0, 8012, __pyx_L1_error)); /* "cuda/cudart.pyx":8014 * @computePreemptionSupported.setter * def computePreemptionSupported(self, int computePreemptionSupported): * self._ptr[0].computePreemptionSupported = computePreemptionSupported # <<<<<<<<<<<<<< * @property * def canUseHostPointerForRegisteredMem(self): */ (__pyx_v_self->_ptr[0]).computePreemptionSupported = __pyx_v_computePreemptionSupported; /* "cuda/cudart.pyx":8012 * def computePreemptionSupported(self): * return self._ptr[0].computePreemptionSupported * @computePreemptionSupported.setter # <<<<<<<<<<<<<< * def computePreemptionSupported(self, int computePreemptionSupported): * self._ptr[0].computePreemptionSupported = computePreemptionSupported */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.computePreemptionSupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8015 * def computePreemptionSupported(self, int computePreemptionSupported): * self._ptr[0].computePreemptionSupported = computePreemptionSupported * @property # <<<<<<<<<<<<<< * def canUseHostPointerForRegisteredMem(self): * return self._ptr[0].canUseHostPointerForRegisteredMem */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_33canUseHostPointerForRegisteredMem_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_33canUseHostPointerForRegisteredMem___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_33canUseHostPointerForRegisteredMem___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8015, 0, __PYX_ERR(0, 8015, __pyx_L1_error)); /* "cuda/cudart.pyx":8017 * @property * def canUseHostPointerForRegisteredMem(self): * return self._ptr[0].canUseHostPointerForRegisteredMem # <<<<<<<<<<<<<< * @canUseHostPointerForRegisteredMem.setter * def canUseHostPointerForRegisteredMem(self, int canUseHostPointerForRegisteredMem): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).canUseHostPointerForRegisteredMem); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8017, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8015 * def computePreemptionSupported(self, int computePreemptionSupported): * self._ptr[0].computePreemptionSupported = computePreemptionSupported * @property # <<<<<<<<<<<<<< * def canUseHostPointerForRegisteredMem(self): * return self._ptr[0].canUseHostPointerForRegisteredMem */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.canUseHostPointerForRegisteredMem.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8018 * def canUseHostPointerForRegisteredMem(self): * return self._ptr[0].canUseHostPointerForRegisteredMem * @canUseHostPointerForRegisteredMem.setter # <<<<<<<<<<<<<< * def canUseHostPointerForRegisteredMem(self, int canUseHostPointerForRegisteredMem): * self._ptr[0].canUseHostPointerForRegisteredMem = canUseHostPointerForRegisteredMem */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_33canUseHostPointerForRegisteredMem_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_canUseHostPointerForRegisteredMem); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_canUseHostPointerForRegisteredMem); if (unlikely((__pyx_v_canUseHostPointerForRegisteredMem == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8019, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.canUseHostPointerForRegisteredMem.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_33canUseHostPointerForRegisteredMem_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_canUseHostPointerForRegisteredMem)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_33canUseHostPointerForRegisteredMem_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_canUseHostPointerForRegisteredMem) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8018, 0, __PYX_ERR(0, 8018, __pyx_L1_error)); /* "cuda/cudart.pyx":8020 * @canUseHostPointerForRegisteredMem.setter * def canUseHostPointerForRegisteredMem(self, int canUseHostPointerForRegisteredMem): * self._ptr[0].canUseHostPointerForRegisteredMem = canUseHostPointerForRegisteredMem # <<<<<<<<<<<<<< * @property * def cooperativeLaunch(self): */ (__pyx_v_self->_ptr[0]).canUseHostPointerForRegisteredMem = __pyx_v_canUseHostPointerForRegisteredMem; /* "cuda/cudart.pyx":8018 * def canUseHostPointerForRegisteredMem(self): * return self._ptr[0].canUseHostPointerForRegisteredMem * @canUseHostPointerForRegisteredMem.setter # <<<<<<<<<<<<<< * def canUseHostPointerForRegisteredMem(self, int canUseHostPointerForRegisteredMem): * self._ptr[0].canUseHostPointerForRegisteredMem = canUseHostPointerForRegisteredMem */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.canUseHostPointerForRegisteredMem.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8021 * def canUseHostPointerForRegisteredMem(self, int canUseHostPointerForRegisteredMem): * self._ptr[0].canUseHostPointerForRegisteredMem = canUseHostPointerForRegisteredMem * @property # <<<<<<<<<<<<<< * def cooperativeLaunch(self): * return self._ptr[0].cooperativeLaunch */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_17cooperativeLaunch_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_17cooperativeLaunch___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_17cooperativeLaunch___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8021, 0, __PYX_ERR(0, 8021, __pyx_L1_error)); /* "cuda/cudart.pyx":8023 * @property * def cooperativeLaunch(self): * return self._ptr[0].cooperativeLaunch # <<<<<<<<<<<<<< * @cooperativeLaunch.setter * def cooperativeLaunch(self, int cooperativeLaunch): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).cooperativeLaunch); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8023, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8021 * def canUseHostPointerForRegisteredMem(self, int canUseHostPointerForRegisteredMem): * self._ptr[0].canUseHostPointerForRegisteredMem = canUseHostPointerForRegisteredMem * @property # <<<<<<<<<<<<<< * def cooperativeLaunch(self): * return self._ptr[0].cooperativeLaunch */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.cooperativeLaunch.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8024 * def cooperativeLaunch(self): * return self._ptr[0].cooperativeLaunch * @cooperativeLaunch.setter # <<<<<<<<<<<<<< * def cooperativeLaunch(self, int cooperativeLaunch): * self._ptr[0].cooperativeLaunch = cooperativeLaunch */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_17cooperativeLaunch_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_cooperativeLaunch); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_cooperativeLaunch); if (unlikely((__pyx_v_cooperativeLaunch == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8025, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.cooperativeLaunch.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_17cooperativeLaunch_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_cooperativeLaunch)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_17cooperativeLaunch_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_cooperativeLaunch) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8024, 0, __PYX_ERR(0, 8024, __pyx_L1_error)); /* "cuda/cudart.pyx":8026 * @cooperativeLaunch.setter * def cooperativeLaunch(self, int cooperativeLaunch): * self._ptr[0].cooperativeLaunch = cooperativeLaunch # <<<<<<<<<<<<<< * @property * def cooperativeMultiDeviceLaunch(self): */ (__pyx_v_self->_ptr[0]).cooperativeLaunch = __pyx_v_cooperativeLaunch; /* "cuda/cudart.pyx":8024 * def cooperativeLaunch(self): * return self._ptr[0].cooperativeLaunch * @cooperativeLaunch.setter # <<<<<<<<<<<<<< * def cooperativeLaunch(self, int cooperativeLaunch): * self._ptr[0].cooperativeLaunch = cooperativeLaunch */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.cooperativeLaunch.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8027 * def cooperativeLaunch(self, int cooperativeLaunch): * self._ptr[0].cooperativeLaunch = cooperativeLaunch * @property # <<<<<<<<<<<<<< * def cooperativeMultiDeviceLaunch(self): * return self._ptr[0].cooperativeMultiDeviceLaunch */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_28cooperativeMultiDeviceLaunch_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_28cooperativeMultiDeviceLaunch_1__get__(PyObject *__pyx_v_self) { CYTHON_UNUSED PyObject *const *__pyx_kwvalues; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs); __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_28cooperativeMultiDeviceLaunch___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_28cooperativeMultiDeviceLaunch___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8027, 0, __PYX_ERR(0, 8027, __pyx_L1_error)); /* "cuda/cudart.pyx":8029 * @property * def cooperativeMultiDeviceLaunch(self): * return self._ptr[0].cooperativeMultiDeviceLaunch # <<<<<<<<<<<<<< * @cooperativeMultiDeviceLaunch.setter * def cooperativeMultiDeviceLaunch(self, int cooperativeMultiDeviceLaunch): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).cooperativeMultiDeviceLaunch); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8029, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8027 * def cooperativeLaunch(self, int cooperativeLaunch): * self._ptr[0].cooperativeLaunch = cooperativeLaunch * @property # <<<<<<<<<<<<<< * def cooperativeMultiDeviceLaunch(self): * return self._ptr[0].cooperativeMultiDeviceLaunch */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.cooperativeMultiDeviceLaunch.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8030 * def cooperativeMultiDeviceLaunch(self): * return self._ptr[0].cooperativeMultiDeviceLaunch * @cooperativeMultiDeviceLaunch.setter # <<<<<<<<<<<<<< * def cooperativeMultiDeviceLaunch(self, int cooperativeMultiDeviceLaunch): * self._ptr[0].cooperativeMultiDeviceLaunch = cooperativeMultiDeviceLaunch */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_28cooperativeMultiDeviceLaunch_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_cooperativeMultiDeviceLaunch); /*proto*/ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_28cooperativeMultiDeviceLaunch_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_cooperativeMultiDeviceLaunch) { int __pyx_v_cooperativeMultiDeviceLaunch; CYTHON_UNUSED PyObject *const *__pyx_kwvalues; int __pyx_lineno = 0; const char *__pyx_filename = 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_cooperativeMultiDeviceLaunch); { __pyx_v_cooperativeMultiDeviceLaunch = __Pyx_PyInt_As_int(__pyx_arg_cooperativeMultiDeviceLaunch); if (unlikely((__pyx_v_cooperativeMultiDeviceLaunch == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8031, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.cooperativeMultiDeviceLaunch.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_28cooperativeMultiDeviceLaunch_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_cooperativeMultiDeviceLaunch)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_28cooperativeMultiDeviceLaunch_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_cooperativeMultiDeviceLaunch) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8030, 0, __PYX_ERR(0, 8030, __pyx_L1_error)); /* "cuda/cudart.pyx":8032 * @cooperativeMultiDeviceLaunch.setter * def cooperativeMultiDeviceLaunch(self, int cooperativeMultiDeviceLaunch): * self._ptr[0].cooperativeMultiDeviceLaunch = cooperativeMultiDeviceLaunch # <<<<<<<<<<<<<< * @property * def sharedMemPerBlockOptin(self): */ (__pyx_v_self->_ptr[0]).cooperativeMultiDeviceLaunch = __pyx_v_cooperativeMultiDeviceLaunch; /* "cuda/cudart.pyx":8030 * def cooperativeMultiDeviceLaunch(self): * return self._ptr[0].cooperativeMultiDeviceLaunch * @cooperativeMultiDeviceLaunch.setter # <<<<<<<<<<<<<< * def cooperativeMultiDeviceLaunch(self, int cooperativeMultiDeviceLaunch): * self._ptr[0].cooperativeMultiDeviceLaunch = cooperativeMultiDeviceLaunch */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.cooperativeMultiDeviceLaunch.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8033 * def cooperativeMultiDeviceLaunch(self, int cooperativeMultiDeviceLaunch): * self._ptr[0].cooperativeMultiDeviceLaunch = cooperativeMultiDeviceLaunch * @property # <<<<<<<<<<<<<< * def sharedMemPerBlockOptin(self): * return self._ptr[0].sharedMemPerBlockOptin */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_22sharedMemPerBlockOptin_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_22sharedMemPerBlockOptin___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_22sharedMemPerBlockOptin___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8033, 0, __PYX_ERR(0, 8033, __pyx_L1_error)); /* "cuda/cudart.pyx":8035 * @property * def sharedMemPerBlockOptin(self): * return self._ptr[0].sharedMemPerBlockOptin # <<<<<<<<<<<<<< * @sharedMemPerBlockOptin.setter * def sharedMemPerBlockOptin(self, size_t sharedMemPerBlockOptin): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).sharedMemPerBlockOptin); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8035, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8033 * def cooperativeMultiDeviceLaunch(self, int cooperativeMultiDeviceLaunch): * self._ptr[0].cooperativeMultiDeviceLaunch = cooperativeMultiDeviceLaunch * @property # <<<<<<<<<<<<<< * def sharedMemPerBlockOptin(self): * return self._ptr[0].sharedMemPerBlockOptin */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.sharedMemPerBlockOptin.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8036 * def sharedMemPerBlockOptin(self): * return self._ptr[0].sharedMemPerBlockOptin * @sharedMemPerBlockOptin.setter # <<<<<<<<<<<<<< * def sharedMemPerBlockOptin(self, size_t sharedMemPerBlockOptin): * self._ptr[0].sharedMemPerBlockOptin = sharedMemPerBlockOptin */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_22sharedMemPerBlockOptin_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_sharedMemPerBlockOptin); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_sharedMemPerBlockOptin); if (unlikely((__pyx_v_sharedMemPerBlockOptin == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 8037, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.sharedMemPerBlockOptin.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_22sharedMemPerBlockOptin_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((size_t)__pyx_v_sharedMemPerBlockOptin)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_22sharedMemPerBlockOptin_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, size_t __pyx_v_sharedMemPerBlockOptin) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8036, 0, __PYX_ERR(0, 8036, __pyx_L1_error)); /* "cuda/cudart.pyx":8038 * @sharedMemPerBlockOptin.setter * def sharedMemPerBlockOptin(self, size_t sharedMemPerBlockOptin): * self._ptr[0].sharedMemPerBlockOptin = sharedMemPerBlockOptin # <<<<<<<<<<<<<< * @property * def pageableMemoryAccessUsesHostPageTables(self): */ (__pyx_v_self->_ptr[0]).sharedMemPerBlockOptin = __pyx_v_sharedMemPerBlockOptin; /* "cuda/cudart.pyx":8036 * def sharedMemPerBlockOptin(self): * return self._ptr[0].sharedMemPerBlockOptin * @sharedMemPerBlockOptin.setter # <<<<<<<<<<<<<< * def sharedMemPerBlockOptin(self, size_t sharedMemPerBlockOptin): * self._ptr[0].sharedMemPerBlockOptin = sharedMemPerBlockOptin */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.sharedMemPerBlockOptin.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8039 * def sharedMemPerBlockOptin(self, size_t sharedMemPerBlockOptin): * self._ptr[0].sharedMemPerBlockOptin = sharedMemPerBlockOptin * @property # <<<<<<<<<<<<<< * def pageableMemoryAccessUsesHostPageTables(self): * return self._ptr[0].pageableMemoryAccessUsesHostPageTables */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_38pageableMemoryAccessUsesHostPageTables_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_38pageableMemoryAccessUsesHostPageTables___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_38pageableMemoryAccessUsesHostPageTables___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8039, 0, __PYX_ERR(0, 8039, __pyx_L1_error)); /* "cuda/cudart.pyx":8041 * @property * def pageableMemoryAccessUsesHostPageTables(self): * return self._ptr[0].pageableMemoryAccessUsesHostPageTables # <<<<<<<<<<<<<< * @pageableMemoryAccessUsesHostPageTables.setter * def pageableMemoryAccessUsesHostPageTables(self, int pageableMemoryAccessUsesHostPageTables): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).pageableMemoryAccessUsesHostPageTables); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8041, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8039 * def sharedMemPerBlockOptin(self, size_t sharedMemPerBlockOptin): * self._ptr[0].sharedMemPerBlockOptin = sharedMemPerBlockOptin * @property # <<<<<<<<<<<<<< * def pageableMemoryAccessUsesHostPageTables(self): * return self._ptr[0].pageableMemoryAccessUsesHostPageTables */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.pageableMemoryAccessUsesHostPageTables.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8042 * def pageableMemoryAccessUsesHostPageTables(self): * return self._ptr[0].pageableMemoryAccessUsesHostPageTables * @pageableMemoryAccessUsesHostPageTables.setter # <<<<<<<<<<<<<< * def pageableMemoryAccessUsesHostPageTables(self, int pageableMemoryAccessUsesHostPageTables): * self._ptr[0].pageableMemoryAccessUsesHostPageTables = pageableMemoryAccessUsesHostPageTables */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_38pageableMemoryAccessUsesHostPageTables_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_pageableMemoryAccessUsesHostPageTables); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_pageableMemoryAccessUsesHostPageTables); if (unlikely((__pyx_v_pageableMemoryAccessUsesHostPageTables == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8043, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.pageableMemoryAccessUsesHostPageTables.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_38pageableMemoryAccessUsesHostPageTables_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_pageableMemoryAccessUsesHostPageTables)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_38pageableMemoryAccessUsesHostPageTables_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_pageableMemoryAccessUsesHostPageTables) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8042, 0, __PYX_ERR(0, 8042, __pyx_L1_error)); /* "cuda/cudart.pyx":8044 * @pageableMemoryAccessUsesHostPageTables.setter * def pageableMemoryAccessUsesHostPageTables(self, int pageableMemoryAccessUsesHostPageTables): * self._ptr[0].pageableMemoryAccessUsesHostPageTables = pageableMemoryAccessUsesHostPageTables # <<<<<<<<<<<<<< * @property * def directManagedMemAccessFromHost(self): */ (__pyx_v_self->_ptr[0]).pageableMemoryAccessUsesHostPageTables = __pyx_v_pageableMemoryAccessUsesHostPageTables; /* "cuda/cudart.pyx":8042 * def pageableMemoryAccessUsesHostPageTables(self): * return self._ptr[0].pageableMemoryAccessUsesHostPageTables * @pageableMemoryAccessUsesHostPageTables.setter # <<<<<<<<<<<<<< * def pageableMemoryAccessUsesHostPageTables(self, int pageableMemoryAccessUsesHostPageTables): * self._ptr[0].pageableMemoryAccessUsesHostPageTables = pageableMemoryAccessUsesHostPageTables */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.pageableMemoryAccessUsesHostPageTables.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8045 * def pageableMemoryAccessUsesHostPageTables(self, int pageableMemoryAccessUsesHostPageTables): * self._ptr[0].pageableMemoryAccessUsesHostPageTables = pageableMemoryAccessUsesHostPageTables * @property # <<<<<<<<<<<<<< * def directManagedMemAccessFromHost(self): * return self._ptr[0].directManagedMemAccessFromHost */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_30directManagedMemAccessFromHost_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_30directManagedMemAccessFromHost___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_30directManagedMemAccessFromHost___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8045, 0, __PYX_ERR(0, 8045, __pyx_L1_error)); /* "cuda/cudart.pyx":8047 * @property * def directManagedMemAccessFromHost(self): * return self._ptr[0].directManagedMemAccessFromHost # <<<<<<<<<<<<<< * @directManagedMemAccessFromHost.setter * def directManagedMemAccessFromHost(self, int directManagedMemAccessFromHost): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).directManagedMemAccessFromHost); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8047, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8045 * def pageableMemoryAccessUsesHostPageTables(self, int pageableMemoryAccessUsesHostPageTables): * self._ptr[0].pageableMemoryAccessUsesHostPageTables = pageableMemoryAccessUsesHostPageTables * @property # <<<<<<<<<<<<<< * def directManagedMemAccessFromHost(self): * return self._ptr[0].directManagedMemAccessFromHost */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.directManagedMemAccessFromHost.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8048 * def directManagedMemAccessFromHost(self): * return self._ptr[0].directManagedMemAccessFromHost * @directManagedMemAccessFromHost.setter # <<<<<<<<<<<<<< * def directManagedMemAccessFromHost(self, int directManagedMemAccessFromHost): * self._ptr[0].directManagedMemAccessFromHost = directManagedMemAccessFromHost */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_30directManagedMemAccessFromHost_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_directManagedMemAccessFromHost); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_directManagedMemAccessFromHost); if (unlikely((__pyx_v_directManagedMemAccessFromHost == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8049, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.directManagedMemAccessFromHost.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_30directManagedMemAccessFromHost_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_directManagedMemAccessFromHost)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_30directManagedMemAccessFromHost_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_directManagedMemAccessFromHost) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8048, 0, __PYX_ERR(0, 8048, __pyx_L1_error)); /* "cuda/cudart.pyx":8050 * @directManagedMemAccessFromHost.setter * def directManagedMemAccessFromHost(self, int directManagedMemAccessFromHost): * self._ptr[0].directManagedMemAccessFromHost = directManagedMemAccessFromHost # <<<<<<<<<<<<<< * @property * def maxBlocksPerMultiProcessor(self): */ (__pyx_v_self->_ptr[0]).directManagedMemAccessFromHost = __pyx_v_directManagedMemAccessFromHost; /* "cuda/cudart.pyx":8048 * def directManagedMemAccessFromHost(self): * return self._ptr[0].directManagedMemAccessFromHost * @directManagedMemAccessFromHost.setter # <<<<<<<<<<<<<< * def directManagedMemAccessFromHost(self, int directManagedMemAccessFromHost): * self._ptr[0].directManagedMemAccessFromHost = directManagedMemAccessFromHost */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.directManagedMemAccessFromHost.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8051 * def directManagedMemAccessFromHost(self, int directManagedMemAccessFromHost): * self._ptr[0].directManagedMemAccessFromHost = directManagedMemAccessFromHost * @property # <<<<<<<<<<<<<< * def maxBlocksPerMultiProcessor(self): * return self._ptr[0].maxBlocksPerMultiProcessor */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_26maxBlocksPerMultiProcessor_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_26maxBlocksPerMultiProcessor___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_26maxBlocksPerMultiProcessor___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8051, 0, __PYX_ERR(0, 8051, __pyx_L1_error)); /* "cuda/cudart.pyx":8053 * @property * def maxBlocksPerMultiProcessor(self): * return self._ptr[0].maxBlocksPerMultiProcessor # <<<<<<<<<<<<<< * @maxBlocksPerMultiProcessor.setter * def maxBlocksPerMultiProcessor(self, int maxBlocksPerMultiProcessor): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).maxBlocksPerMultiProcessor); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8053, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8051 * def directManagedMemAccessFromHost(self, int directManagedMemAccessFromHost): * self._ptr[0].directManagedMemAccessFromHost = directManagedMemAccessFromHost * @property # <<<<<<<<<<<<<< * def maxBlocksPerMultiProcessor(self): * return self._ptr[0].maxBlocksPerMultiProcessor */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxBlocksPerMultiProcessor.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8054 * def maxBlocksPerMultiProcessor(self): * return self._ptr[0].maxBlocksPerMultiProcessor * @maxBlocksPerMultiProcessor.setter # <<<<<<<<<<<<<< * def maxBlocksPerMultiProcessor(self, int maxBlocksPerMultiProcessor): * self._ptr[0].maxBlocksPerMultiProcessor = maxBlocksPerMultiProcessor */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_26maxBlocksPerMultiProcessor_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxBlocksPerMultiProcessor); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_maxBlocksPerMultiProcessor); if (unlikely((__pyx_v_maxBlocksPerMultiProcessor == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8055, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxBlocksPerMultiProcessor.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_26maxBlocksPerMultiProcessor_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_maxBlocksPerMultiProcessor)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_26maxBlocksPerMultiProcessor_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_maxBlocksPerMultiProcessor) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8054, 0, __PYX_ERR(0, 8054, __pyx_L1_error)); /* "cuda/cudart.pyx":8056 * @maxBlocksPerMultiProcessor.setter * def maxBlocksPerMultiProcessor(self, int maxBlocksPerMultiProcessor): * self._ptr[0].maxBlocksPerMultiProcessor = maxBlocksPerMultiProcessor # <<<<<<<<<<<<<< * @property * def accessPolicyMaxWindowSize(self): */ (__pyx_v_self->_ptr[0]).maxBlocksPerMultiProcessor = __pyx_v_maxBlocksPerMultiProcessor; /* "cuda/cudart.pyx":8054 * def maxBlocksPerMultiProcessor(self): * return self._ptr[0].maxBlocksPerMultiProcessor * @maxBlocksPerMultiProcessor.setter # <<<<<<<<<<<<<< * def maxBlocksPerMultiProcessor(self, int maxBlocksPerMultiProcessor): * self._ptr[0].maxBlocksPerMultiProcessor = maxBlocksPerMultiProcessor */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.maxBlocksPerMultiProcessor.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8057 * def maxBlocksPerMultiProcessor(self, int maxBlocksPerMultiProcessor): * self._ptr[0].maxBlocksPerMultiProcessor = maxBlocksPerMultiProcessor * @property # <<<<<<<<<<<<<< * def accessPolicyMaxWindowSize(self): * return self._ptr[0].accessPolicyMaxWindowSize */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_25accessPolicyMaxWindowSize_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_25accessPolicyMaxWindowSize___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_25accessPolicyMaxWindowSize___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8057, 0, __PYX_ERR(0, 8057, __pyx_L1_error)); /* "cuda/cudart.pyx":8059 * @property * def accessPolicyMaxWindowSize(self): * return self._ptr[0].accessPolicyMaxWindowSize # <<<<<<<<<<<<<< * @accessPolicyMaxWindowSize.setter * def accessPolicyMaxWindowSize(self, int accessPolicyMaxWindowSize): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).accessPolicyMaxWindowSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8059, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8057 * def maxBlocksPerMultiProcessor(self, int maxBlocksPerMultiProcessor): * self._ptr[0].maxBlocksPerMultiProcessor = maxBlocksPerMultiProcessor * @property # <<<<<<<<<<<<<< * def accessPolicyMaxWindowSize(self): * return self._ptr[0].accessPolicyMaxWindowSize */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.accessPolicyMaxWindowSize.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8060 * def accessPolicyMaxWindowSize(self): * return self._ptr[0].accessPolicyMaxWindowSize * @accessPolicyMaxWindowSize.setter # <<<<<<<<<<<<<< * def accessPolicyMaxWindowSize(self, int accessPolicyMaxWindowSize): * self._ptr[0].accessPolicyMaxWindowSize = accessPolicyMaxWindowSize */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_25accessPolicyMaxWindowSize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_accessPolicyMaxWindowSize); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_accessPolicyMaxWindowSize); if (unlikely((__pyx_v_accessPolicyMaxWindowSize == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8061, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.accessPolicyMaxWindowSize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_25accessPolicyMaxWindowSize_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_accessPolicyMaxWindowSize)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_25accessPolicyMaxWindowSize_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_accessPolicyMaxWindowSize) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8060, 0, __PYX_ERR(0, 8060, __pyx_L1_error)); /* "cuda/cudart.pyx":8062 * @accessPolicyMaxWindowSize.setter * def accessPolicyMaxWindowSize(self, int accessPolicyMaxWindowSize): * self._ptr[0].accessPolicyMaxWindowSize = accessPolicyMaxWindowSize # <<<<<<<<<<<<<< * @property * def reservedSharedMemPerBlock(self): */ (__pyx_v_self->_ptr[0]).accessPolicyMaxWindowSize = __pyx_v_accessPolicyMaxWindowSize; /* "cuda/cudart.pyx":8060 * def accessPolicyMaxWindowSize(self): * return self._ptr[0].accessPolicyMaxWindowSize * @accessPolicyMaxWindowSize.setter # <<<<<<<<<<<<<< * def accessPolicyMaxWindowSize(self, int accessPolicyMaxWindowSize): * self._ptr[0].accessPolicyMaxWindowSize = accessPolicyMaxWindowSize */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.accessPolicyMaxWindowSize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8063 * def accessPolicyMaxWindowSize(self, int accessPolicyMaxWindowSize): * self._ptr[0].accessPolicyMaxWindowSize = accessPolicyMaxWindowSize * @property # <<<<<<<<<<<<<< * def reservedSharedMemPerBlock(self): * return self._ptr[0].reservedSharedMemPerBlock */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_25reservedSharedMemPerBlock_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_25reservedSharedMemPerBlock___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_25reservedSharedMemPerBlock___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8063, 0, __PYX_ERR(0, 8063, __pyx_L1_error)); /* "cuda/cudart.pyx":8065 * @property * def reservedSharedMemPerBlock(self): * return self._ptr[0].reservedSharedMemPerBlock # <<<<<<<<<<<<<< * @reservedSharedMemPerBlock.setter * def reservedSharedMemPerBlock(self, size_t reservedSharedMemPerBlock): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).reservedSharedMemPerBlock); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8065, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8063 * def accessPolicyMaxWindowSize(self, int accessPolicyMaxWindowSize): * self._ptr[0].accessPolicyMaxWindowSize = accessPolicyMaxWindowSize * @property # <<<<<<<<<<<<<< * def reservedSharedMemPerBlock(self): * return self._ptr[0].reservedSharedMemPerBlock */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.reservedSharedMemPerBlock.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8066 * def reservedSharedMemPerBlock(self): * return self._ptr[0].reservedSharedMemPerBlock * @reservedSharedMemPerBlock.setter # <<<<<<<<<<<<<< * def reservedSharedMemPerBlock(self, size_t reservedSharedMemPerBlock): * self._ptr[0].reservedSharedMemPerBlock = reservedSharedMemPerBlock */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_25reservedSharedMemPerBlock_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_reservedSharedMemPerBlock); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_size_t(__pyx_arg_reservedSharedMemPerBlock); if (unlikely((__pyx_v_reservedSharedMemPerBlock == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 8067, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.reservedSharedMemPerBlock.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_25reservedSharedMemPerBlock_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((size_t)__pyx_v_reservedSharedMemPerBlock)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_25reservedSharedMemPerBlock_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, size_t __pyx_v_reservedSharedMemPerBlock) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8066, 0, __PYX_ERR(0, 8066, __pyx_L1_error)); /* "cuda/cudart.pyx":8068 * @reservedSharedMemPerBlock.setter * def reservedSharedMemPerBlock(self, size_t reservedSharedMemPerBlock): * self._ptr[0].reservedSharedMemPerBlock = reservedSharedMemPerBlock # <<<<<<<<<<<<<< * @property * def hostRegisterSupported(self): */ (__pyx_v_self->_ptr[0]).reservedSharedMemPerBlock = __pyx_v_reservedSharedMemPerBlock; /* "cuda/cudart.pyx":8066 * def reservedSharedMemPerBlock(self): * return self._ptr[0].reservedSharedMemPerBlock * @reservedSharedMemPerBlock.setter # <<<<<<<<<<<<<< * def reservedSharedMemPerBlock(self, size_t reservedSharedMemPerBlock): * self._ptr[0].reservedSharedMemPerBlock = reservedSharedMemPerBlock */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.reservedSharedMemPerBlock.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8069 * def reservedSharedMemPerBlock(self, size_t reservedSharedMemPerBlock): * self._ptr[0].reservedSharedMemPerBlock = reservedSharedMemPerBlock * @property # <<<<<<<<<<<<<< * def hostRegisterSupported(self): * return self._ptr[0].hostRegisterSupported */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_21hostRegisterSupported_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_21hostRegisterSupported___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_21hostRegisterSupported___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8069, 0, __PYX_ERR(0, 8069, __pyx_L1_error)); /* "cuda/cudart.pyx":8071 * @property * def hostRegisterSupported(self): * return self._ptr[0].hostRegisterSupported # <<<<<<<<<<<<<< * @hostRegisterSupported.setter * def hostRegisterSupported(self, int hostRegisterSupported): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).hostRegisterSupported); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8071, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8069 * def reservedSharedMemPerBlock(self, size_t reservedSharedMemPerBlock): * self._ptr[0].reservedSharedMemPerBlock = reservedSharedMemPerBlock * @property # <<<<<<<<<<<<<< * def hostRegisterSupported(self): * return self._ptr[0].hostRegisterSupported */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.hostRegisterSupported.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8072 * def hostRegisterSupported(self): * return self._ptr[0].hostRegisterSupported * @hostRegisterSupported.setter # <<<<<<<<<<<<<< * def hostRegisterSupported(self, int hostRegisterSupported): * self._ptr[0].hostRegisterSupported = hostRegisterSupported */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_21hostRegisterSupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_hostRegisterSupported); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_hostRegisterSupported); if (unlikely((__pyx_v_hostRegisterSupported == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8073, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.hostRegisterSupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_21hostRegisterSupported_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_hostRegisterSupported)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_21hostRegisterSupported_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_hostRegisterSupported) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8072, 0, __PYX_ERR(0, 8072, __pyx_L1_error)); /* "cuda/cudart.pyx":8074 * @hostRegisterSupported.setter * def hostRegisterSupported(self, int hostRegisterSupported): * self._ptr[0].hostRegisterSupported = hostRegisterSupported # <<<<<<<<<<<<<< * @property * def sparseCudaArraySupported(self): */ (__pyx_v_self->_ptr[0]).hostRegisterSupported = __pyx_v_hostRegisterSupported; /* "cuda/cudart.pyx":8072 * def hostRegisterSupported(self): * return self._ptr[0].hostRegisterSupported * @hostRegisterSupported.setter # <<<<<<<<<<<<<< * def hostRegisterSupported(self, int hostRegisterSupported): * self._ptr[0].hostRegisterSupported = hostRegisterSupported */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.hostRegisterSupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8075 * def hostRegisterSupported(self, int hostRegisterSupported): * self._ptr[0].hostRegisterSupported = hostRegisterSupported * @property # <<<<<<<<<<<<<< * def sparseCudaArraySupported(self): * return self._ptr[0].sparseCudaArraySupported */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_24sparseCudaArraySupported_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_24sparseCudaArraySupported___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_24sparseCudaArraySupported___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8075, 0, __PYX_ERR(0, 8075, __pyx_L1_error)); /* "cuda/cudart.pyx":8077 * @property * def sparseCudaArraySupported(self): * return self._ptr[0].sparseCudaArraySupported # <<<<<<<<<<<<<< * @sparseCudaArraySupported.setter * def sparseCudaArraySupported(self, int sparseCudaArraySupported): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).sparseCudaArraySupported); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8077, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8075 * def hostRegisterSupported(self, int hostRegisterSupported): * self._ptr[0].hostRegisterSupported = hostRegisterSupported * @property # <<<<<<<<<<<<<< * def sparseCudaArraySupported(self): * return self._ptr[0].sparseCudaArraySupported */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.sparseCudaArraySupported.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8078 * def sparseCudaArraySupported(self): * return self._ptr[0].sparseCudaArraySupported * @sparseCudaArraySupported.setter # <<<<<<<<<<<<<< * def sparseCudaArraySupported(self, int sparseCudaArraySupported): * self._ptr[0].sparseCudaArraySupported = sparseCudaArraySupported */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_24sparseCudaArraySupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_sparseCudaArraySupported); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_sparseCudaArraySupported); if (unlikely((__pyx_v_sparseCudaArraySupported == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8079, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.sparseCudaArraySupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_24sparseCudaArraySupported_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_sparseCudaArraySupported)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_24sparseCudaArraySupported_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_sparseCudaArraySupported) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8078, 0, __PYX_ERR(0, 8078, __pyx_L1_error)); /* "cuda/cudart.pyx":8080 * @sparseCudaArraySupported.setter * def sparseCudaArraySupported(self, int sparseCudaArraySupported): * self._ptr[0].sparseCudaArraySupported = sparseCudaArraySupported # <<<<<<<<<<<<<< * @property * def hostRegisterReadOnlySupported(self): */ (__pyx_v_self->_ptr[0]).sparseCudaArraySupported = __pyx_v_sparseCudaArraySupported; /* "cuda/cudart.pyx":8078 * def sparseCudaArraySupported(self): * return self._ptr[0].sparseCudaArraySupported * @sparseCudaArraySupported.setter # <<<<<<<<<<<<<< * def sparseCudaArraySupported(self, int sparseCudaArraySupported): * self._ptr[0].sparseCudaArraySupported = sparseCudaArraySupported */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.sparseCudaArraySupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8081 * def sparseCudaArraySupported(self, int sparseCudaArraySupported): * self._ptr[0].sparseCudaArraySupported = sparseCudaArraySupported * @property # <<<<<<<<<<<<<< * def hostRegisterReadOnlySupported(self): * return self._ptr[0].hostRegisterReadOnlySupported */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_29hostRegisterReadOnlySupported_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_29hostRegisterReadOnlySupported___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_29hostRegisterReadOnlySupported___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8081, 0, __PYX_ERR(0, 8081, __pyx_L1_error)); /* "cuda/cudart.pyx":8083 * @property * def hostRegisterReadOnlySupported(self): * return self._ptr[0].hostRegisterReadOnlySupported # <<<<<<<<<<<<<< * @hostRegisterReadOnlySupported.setter * def hostRegisterReadOnlySupported(self, int hostRegisterReadOnlySupported): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).hostRegisterReadOnlySupported); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8083, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8081 * def sparseCudaArraySupported(self, int sparseCudaArraySupported): * self._ptr[0].sparseCudaArraySupported = sparseCudaArraySupported * @property # <<<<<<<<<<<<<< * def hostRegisterReadOnlySupported(self): * return self._ptr[0].hostRegisterReadOnlySupported */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.hostRegisterReadOnlySupported.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8084 * def hostRegisterReadOnlySupported(self): * return self._ptr[0].hostRegisterReadOnlySupported * @hostRegisterReadOnlySupported.setter # <<<<<<<<<<<<<< * def hostRegisterReadOnlySupported(self, int hostRegisterReadOnlySupported): * self._ptr[0].hostRegisterReadOnlySupported = hostRegisterReadOnlySupported */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_29hostRegisterReadOnlySupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_hostRegisterReadOnlySupported); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_hostRegisterReadOnlySupported); if (unlikely((__pyx_v_hostRegisterReadOnlySupported == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8085, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.hostRegisterReadOnlySupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_29hostRegisterReadOnlySupported_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_hostRegisterReadOnlySupported)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_29hostRegisterReadOnlySupported_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_hostRegisterReadOnlySupported) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8084, 0, __PYX_ERR(0, 8084, __pyx_L1_error)); /* "cuda/cudart.pyx":8086 * @hostRegisterReadOnlySupported.setter * def hostRegisterReadOnlySupported(self, int hostRegisterReadOnlySupported): * self._ptr[0].hostRegisterReadOnlySupported = hostRegisterReadOnlySupported # <<<<<<<<<<<<<< * @property * def timelineSemaphoreInteropSupported(self): */ (__pyx_v_self->_ptr[0]).hostRegisterReadOnlySupported = __pyx_v_hostRegisterReadOnlySupported; /* "cuda/cudart.pyx":8084 * def hostRegisterReadOnlySupported(self): * return self._ptr[0].hostRegisterReadOnlySupported * @hostRegisterReadOnlySupported.setter # <<<<<<<<<<<<<< * def hostRegisterReadOnlySupported(self, int hostRegisterReadOnlySupported): * self._ptr[0].hostRegisterReadOnlySupported = hostRegisterReadOnlySupported */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.hostRegisterReadOnlySupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8087 * def hostRegisterReadOnlySupported(self, int hostRegisterReadOnlySupported): * self._ptr[0].hostRegisterReadOnlySupported = hostRegisterReadOnlySupported * @property # <<<<<<<<<<<<<< * def timelineSemaphoreInteropSupported(self): * return self._ptr[0].timelineSemaphoreInteropSupported */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_33timelineSemaphoreInteropSupported_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_33timelineSemaphoreInteropSupported___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_33timelineSemaphoreInteropSupported___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8087, 0, __PYX_ERR(0, 8087, __pyx_L1_error)); /* "cuda/cudart.pyx":8089 * @property * def timelineSemaphoreInteropSupported(self): * return self._ptr[0].timelineSemaphoreInteropSupported # <<<<<<<<<<<<<< * @timelineSemaphoreInteropSupported.setter * def timelineSemaphoreInteropSupported(self, int timelineSemaphoreInteropSupported): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).timelineSemaphoreInteropSupported); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8089, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8087 * def hostRegisterReadOnlySupported(self, int hostRegisterReadOnlySupported): * self._ptr[0].hostRegisterReadOnlySupported = hostRegisterReadOnlySupported * @property # <<<<<<<<<<<<<< * def timelineSemaphoreInteropSupported(self): * return self._ptr[0].timelineSemaphoreInteropSupported */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.timelineSemaphoreInteropSupported.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8090 * def timelineSemaphoreInteropSupported(self): * return self._ptr[0].timelineSemaphoreInteropSupported * @timelineSemaphoreInteropSupported.setter # <<<<<<<<<<<<<< * def timelineSemaphoreInteropSupported(self, int timelineSemaphoreInteropSupported): * self._ptr[0].timelineSemaphoreInteropSupported = timelineSemaphoreInteropSupported */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_33timelineSemaphoreInteropSupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_timelineSemaphoreInteropSupported); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_timelineSemaphoreInteropSupported); if (unlikely((__pyx_v_timelineSemaphoreInteropSupported == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8091, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.timelineSemaphoreInteropSupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_33timelineSemaphoreInteropSupported_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_timelineSemaphoreInteropSupported)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_33timelineSemaphoreInteropSupported_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_timelineSemaphoreInteropSupported) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8090, 0, __PYX_ERR(0, 8090, __pyx_L1_error)); /* "cuda/cudart.pyx":8092 * @timelineSemaphoreInteropSupported.setter * def timelineSemaphoreInteropSupported(self, int timelineSemaphoreInteropSupported): * self._ptr[0].timelineSemaphoreInteropSupported = timelineSemaphoreInteropSupported # <<<<<<<<<<<<<< * @property * def memoryPoolsSupported(self): */ (__pyx_v_self->_ptr[0]).timelineSemaphoreInteropSupported = __pyx_v_timelineSemaphoreInteropSupported; /* "cuda/cudart.pyx":8090 * def timelineSemaphoreInteropSupported(self): * return self._ptr[0].timelineSemaphoreInteropSupported * @timelineSemaphoreInteropSupported.setter # <<<<<<<<<<<<<< * def timelineSemaphoreInteropSupported(self, int timelineSemaphoreInteropSupported): * self._ptr[0].timelineSemaphoreInteropSupported = timelineSemaphoreInteropSupported */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.timelineSemaphoreInteropSupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8093 * def timelineSemaphoreInteropSupported(self, int timelineSemaphoreInteropSupported): * self._ptr[0].timelineSemaphoreInteropSupported = timelineSemaphoreInteropSupported * @property # <<<<<<<<<<<<<< * def memoryPoolsSupported(self): * return self._ptr[0].memoryPoolsSupported */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_20memoryPoolsSupported_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_20memoryPoolsSupported___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_20memoryPoolsSupported___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8093, 0, __PYX_ERR(0, 8093, __pyx_L1_error)); /* "cuda/cudart.pyx":8095 * @property * def memoryPoolsSupported(self): * return self._ptr[0].memoryPoolsSupported # <<<<<<<<<<<<<< * @memoryPoolsSupported.setter * def memoryPoolsSupported(self, int memoryPoolsSupported): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).memoryPoolsSupported); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8095, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8093 * def timelineSemaphoreInteropSupported(self, int timelineSemaphoreInteropSupported): * self._ptr[0].timelineSemaphoreInteropSupported = timelineSemaphoreInteropSupported * @property # <<<<<<<<<<<<<< * def memoryPoolsSupported(self): * return self._ptr[0].memoryPoolsSupported */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.memoryPoolsSupported.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8096 * def memoryPoolsSupported(self): * return self._ptr[0].memoryPoolsSupported * @memoryPoolsSupported.setter # <<<<<<<<<<<<<< * def memoryPoolsSupported(self, int memoryPoolsSupported): * self._ptr[0].memoryPoolsSupported = memoryPoolsSupported */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_20memoryPoolsSupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_memoryPoolsSupported); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_memoryPoolsSupported); if (unlikely((__pyx_v_memoryPoolsSupported == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8097, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.memoryPoolsSupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_20memoryPoolsSupported_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_memoryPoolsSupported)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_20memoryPoolsSupported_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_memoryPoolsSupported) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8096, 0, __PYX_ERR(0, 8096, __pyx_L1_error)); /* "cuda/cudart.pyx":8098 * @memoryPoolsSupported.setter * def memoryPoolsSupported(self, int memoryPoolsSupported): * self._ptr[0].memoryPoolsSupported = memoryPoolsSupported # <<<<<<<<<<<<<< * @property * def gpuDirectRDMASupported(self): */ (__pyx_v_self->_ptr[0]).memoryPoolsSupported = __pyx_v_memoryPoolsSupported; /* "cuda/cudart.pyx":8096 * def memoryPoolsSupported(self): * return self._ptr[0].memoryPoolsSupported * @memoryPoolsSupported.setter # <<<<<<<<<<<<<< * def memoryPoolsSupported(self, int memoryPoolsSupported): * self._ptr[0].memoryPoolsSupported = memoryPoolsSupported */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.memoryPoolsSupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8099 * def memoryPoolsSupported(self, int memoryPoolsSupported): * self._ptr[0].memoryPoolsSupported = memoryPoolsSupported * @property # <<<<<<<<<<<<<< * def gpuDirectRDMASupported(self): * return self._ptr[0].gpuDirectRDMASupported */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_22gpuDirectRDMASupported_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_22gpuDirectRDMASupported___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_22gpuDirectRDMASupported___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8099, 0, __PYX_ERR(0, 8099, __pyx_L1_error)); /* "cuda/cudart.pyx":8101 * @property * def gpuDirectRDMASupported(self): * return self._ptr[0].gpuDirectRDMASupported # <<<<<<<<<<<<<< * @gpuDirectRDMASupported.setter * def gpuDirectRDMASupported(self, int gpuDirectRDMASupported): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).gpuDirectRDMASupported); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8099 * def memoryPoolsSupported(self, int memoryPoolsSupported): * self._ptr[0].memoryPoolsSupported = memoryPoolsSupported * @property # <<<<<<<<<<<<<< * def gpuDirectRDMASupported(self): * return self._ptr[0].gpuDirectRDMASupported */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.gpuDirectRDMASupported.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8102 * def gpuDirectRDMASupported(self): * return self._ptr[0].gpuDirectRDMASupported * @gpuDirectRDMASupported.setter # <<<<<<<<<<<<<< * def gpuDirectRDMASupported(self, int gpuDirectRDMASupported): * self._ptr[0].gpuDirectRDMASupported = gpuDirectRDMASupported */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_22gpuDirectRDMASupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_gpuDirectRDMASupported); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_gpuDirectRDMASupported); if (unlikely((__pyx_v_gpuDirectRDMASupported == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8103, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.gpuDirectRDMASupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_22gpuDirectRDMASupported_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_gpuDirectRDMASupported)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_22gpuDirectRDMASupported_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_gpuDirectRDMASupported) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8102, 0, __PYX_ERR(0, 8102, __pyx_L1_error)); /* "cuda/cudart.pyx":8104 * @gpuDirectRDMASupported.setter * def gpuDirectRDMASupported(self, int gpuDirectRDMASupported): * self._ptr[0].gpuDirectRDMASupported = gpuDirectRDMASupported # <<<<<<<<<<<<<< * @property * def gpuDirectRDMAFlushWritesOptions(self): */ (__pyx_v_self->_ptr[0]).gpuDirectRDMASupported = __pyx_v_gpuDirectRDMASupported; /* "cuda/cudart.pyx":8102 * def gpuDirectRDMASupported(self): * return self._ptr[0].gpuDirectRDMASupported * @gpuDirectRDMASupported.setter # <<<<<<<<<<<<<< * def gpuDirectRDMASupported(self, int gpuDirectRDMASupported): * self._ptr[0].gpuDirectRDMASupported = gpuDirectRDMASupported */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.gpuDirectRDMASupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8105 * def gpuDirectRDMASupported(self, int gpuDirectRDMASupported): * self._ptr[0].gpuDirectRDMASupported = gpuDirectRDMASupported * @property # <<<<<<<<<<<<<< * def gpuDirectRDMAFlushWritesOptions(self): * return self._ptr[0].gpuDirectRDMAFlushWritesOptions */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_31gpuDirectRDMAFlushWritesOptions_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_31gpuDirectRDMAFlushWritesOptions___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_31gpuDirectRDMAFlushWritesOptions___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8105, 0, __PYX_ERR(0, 8105, __pyx_L1_error)); /* "cuda/cudart.pyx":8107 * @property * def gpuDirectRDMAFlushWritesOptions(self): * return self._ptr[0].gpuDirectRDMAFlushWritesOptions # <<<<<<<<<<<<<< * @gpuDirectRDMAFlushWritesOptions.setter * def gpuDirectRDMAFlushWritesOptions(self, unsigned int gpuDirectRDMAFlushWritesOptions): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).gpuDirectRDMAFlushWritesOptions); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8107, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8105 * def gpuDirectRDMASupported(self, int gpuDirectRDMASupported): * self._ptr[0].gpuDirectRDMASupported = gpuDirectRDMASupported * @property # <<<<<<<<<<<<<< * def gpuDirectRDMAFlushWritesOptions(self): * return self._ptr[0].gpuDirectRDMAFlushWritesOptions */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.gpuDirectRDMAFlushWritesOptions.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8108 * def gpuDirectRDMAFlushWritesOptions(self): * return self._ptr[0].gpuDirectRDMAFlushWritesOptions * @gpuDirectRDMAFlushWritesOptions.setter # <<<<<<<<<<<<<< * def gpuDirectRDMAFlushWritesOptions(self, unsigned int gpuDirectRDMAFlushWritesOptions): * self._ptr[0].gpuDirectRDMAFlushWritesOptions = gpuDirectRDMAFlushWritesOptions */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_31gpuDirectRDMAFlushWritesOptions_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_gpuDirectRDMAFlushWritesOptions); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_gpuDirectRDMAFlushWritesOptions); if (unlikely((__pyx_v_gpuDirectRDMAFlushWritesOptions == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8109, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.gpuDirectRDMAFlushWritesOptions.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_31gpuDirectRDMAFlushWritesOptions_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((unsigned int)__pyx_v_gpuDirectRDMAFlushWritesOptions)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_31gpuDirectRDMAFlushWritesOptions_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, unsigned int __pyx_v_gpuDirectRDMAFlushWritesOptions) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8108, 0, __PYX_ERR(0, 8108, __pyx_L1_error)); /* "cuda/cudart.pyx":8110 * @gpuDirectRDMAFlushWritesOptions.setter * def gpuDirectRDMAFlushWritesOptions(self, unsigned int gpuDirectRDMAFlushWritesOptions): * self._ptr[0].gpuDirectRDMAFlushWritesOptions = gpuDirectRDMAFlushWritesOptions # <<<<<<<<<<<<<< * @property * def gpuDirectRDMAWritesOrdering(self): */ (__pyx_v_self->_ptr[0]).gpuDirectRDMAFlushWritesOptions = __pyx_v_gpuDirectRDMAFlushWritesOptions; /* "cuda/cudart.pyx":8108 * def gpuDirectRDMAFlushWritesOptions(self): * return self._ptr[0].gpuDirectRDMAFlushWritesOptions * @gpuDirectRDMAFlushWritesOptions.setter # <<<<<<<<<<<<<< * def gpuDirectRDMAFlushWritesOptions(self, unsigned int gpuDirectRDMAFlushWritesOptions): * self._ptr[0].gpuDirectRDMAFlushWritesOptions = gpuDirectRDMAFlushWritesOptions */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.gpuDirectRDMAFlushWritesOptions.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8111 * def gpuDirectRDMAFlushWritesOptions(self, unsigned int gpuDirectRDMAFlushWritesOptions): * self._ptr[0].gpuDirectRDMAFlushWritesOptions = gpuDirectRDMAFlushWritesOptions * @property # <<<<<<<<<<<<<< * def gpuDirectRDMAWritesOrdering(self): * return self._ptr[0].gpuDirectRDMAWritesOrdering */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_27gpuDirectRDMAWritesOrdering_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_27gpuDirectRDMAWritesOrdering___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_27gpuDirectRDMAWritesOrdering___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8111, 0, __PYX_ERR(0, 8111, __pyx_L1_error)); /* "cuda/cudart.pyx":8113 * @property * def gpuDirectRDMAWritesOrdering(self): * return self._ptr[0].gpuDirectRDMAWritesOrdering # <<<<<<<<<<<<<< * @gpuDirectRDMAWritesOrdering.setter * def gpuDirectRDMAWritesOrdering(self, int gpuDirectRDMAWritesOrdering): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).gpuDirectRDMAWritesOrdering); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8113, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8111 * def gpuDirectRDMAFlushWritesOptions(self, unsigned int gpuDirectRDMAFlushWritesOptions): * self._ptr[0].gpuDirectRDMAFlushWritesOptions = gpuDirectRDMAFlushWritesOptions * @property # <<<<<<<<<<<<<< * def gpuDirectRDMAWritesOrdering(self): * return self._ptr[0].gpuDirectRDMAWritesOrdering */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.gpuDirectRDMAWritesOrdering.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8114 * def gpuDirectRDMAWritesOrdering(self): * return self._ptr[0].gpuDirectRDMAWritesOrdering * @gpuDirectRDMAWritesOrdering.setter # <<<<<<<<<<<<<< * def gpuDirectRDMAWritesOrdering(self, int gpuDirectRDMAWritesOrdering): * self._ptr[0].gpuDirectRDMAWritesOrdering = gpuDirectRDMAWritesOrdering */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_27gpuDirectRDMAWritesOrdering_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_gpuDirectRDMAWritesOrdering); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_gpuDirectRDMAWritesOrdering); if (unlikely((__pyx_v_gpuDirectRDMAWritesOrdering == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8115, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.gpuDirectRDMAWritesOrdering.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_27gpuDirectRDMAWritesOrdering_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_gpuDirectRDMAWritesOrdering)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_27gpuDirectRDMAWritesOrdering_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_gpuDirectRDMAWritesOrdering) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8114, 0, __PYX_ERR(0, 8114, __pyx_L1_error)); /* "cuda/cudart.pyx":8116 * @gpuDirectRDMAWritesOrdering.setter * def gpuDirectRDMAWritesOrdering(self, int gpuDirectRDMAWritesOrdering): * self._ptr[0].gpuDirectRDMAWritesOrdering = gpuDirectRDMAWritesOrdering # <<<<<<<<<<<<<< * @property * def memoryPoolSupportedHandleTypes(self): */ (__pyx_v_self->_ptr[0]).gpuDirectRDMAWritesOrdering = __pyx_v_gpuDirectRDMAWritesOrdering; /* "cuda/cudart.pyx":8114 * def gpuDirectRDMAWritesOrdering(self): * return self._ptr[0].gpuDirectRDMAWritesOrdering * @gpuDirectRDMAWritesOrdering.setter # <<<<<<<<<<<<<< * def gpuDirectRDMAWritesOrdering(self, int gpuDirectRDMAWritesOrdering): * self._ptr[0].gpuDirectRDMAWritesOrdering = gpuDirectRDMAWritesOrdering */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.gpuDirectRDMAWritesOrdering.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8117 * def gpuDirectRDMAWritesOrdering(self, int gpuDirectRDMAWritesOrdering): * self._ptr[0].gpuDirectRDMAWritesOrdering = gpuDirectRDMAWritesOrdering * @property # <<<<<<<<<<<<<< * def memoryPoolSupportedHandleTypes(self): * return self._ptr[0].memoryPoolSupportedHandleTypes */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_30memoryPoolSupportedHandleTypes_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_30memoryPoolSupportedHandleTypes___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_30memoryPoolSupportedHandleTypes___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8117, 0, __PYX_ERR(0, 8117, __pyx_L1_error)); /* "cuda/cudart.pyx":8119 * @property * def memoryPoolSupportedHandleTypes(self): * return self._ptr[0].memoryPoolSupportedHandleTypes # <<<<<<<<<<<<<< * @memoryPoolSupportedHandleTypes.setter * def memoryPoolSupportedHandleTypes(self, unsigned int memoryPoolSupportedHandleTypes): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).memoryPoolSupportedHandleTypes); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8119, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8117 * def gpuDirectRDMAWritesOrdering(self, int gpuDirectRDMAWritesOrdering): * self._ptr[0].gpuDirectRDMAWritesOrdering = gpuDirectRDMAWritesOrdering * @property # <<<<<<<<<<<<<< * def memoryPoolSupportedHandleTypes(self): * return self._ptr[0].memoryPoolSupportedHandleTypes */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.memoryPoolSupportedHandleTypes.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8120 * def memoryPoolSupportedHandleTypes(self): * return self._ptr[0].memoryPoolSupportedHandleTypes * @memoryPoolSupportedHandleTypes.setter # <<<<<<<<<<<<<< * def memoryPoolSupportedHandleTypes(self, unsigned int memoryPoolSupportedHandleTypes): * self._ptr[0].memoryPoolSupportedHandleTypes = memoryPoolSupportedHandleTypes */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_30memoryPoolSupportedHandleTypes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_memoryPoolSupportedHandleTypes); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_memoryPoolSupportedHandleTypes); if (unlikely((__pyx_v_memoryPoolSupportedHandleTypes == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8121, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.memoryPoolSupportedHandleTypes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_30memoryPoolSupportedHandleTypes_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((unsigned int)__pyx_v_memoryPoolSupportedHandleTypes)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_30memoryPoolSupportedHandleTypes_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, unsigned int __pyx_v_memoryPoolSupportedHandleTypes) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8120, 0, __PYX_ERR(0, 8120, __pyx_L1_error)); /* "cuda/cudart.pyx":8122 * @memoryPoolSupportedHandleTypes.setter * def memoryPoolSupportedHandleTypes(self, unsigned int memoryPoolSupportedHandleTypes): * self._ptr[0].memoryPoolSupportedHandleTypes = memoryPoolSupportedHandleTypes # <<<<<<<<<<<<<< * @property * def deferredMappingCudaArraySupported(self): */ (__pyx_v_self->_ptr[0]).memoryPoolSupportedHandleTypes = __pyx_v_memoryPoolSupportedHandleTypes; /* "cuda/cudart.pyx":8120 * def memoryPoolSupportedHandleTypes(self): * return self._ptr[0].memoryPoolSupportedHandleTypes * @memoryPoolSupportedHandleTypes.setter # <<<<<<<<<<<<<< * def memoryPoolSupportedHandleTypes(self, unsigned int memoryPoolSupportedHandleTypes): * self._ptr[0].memoryPoolSupportedHandleTypes = memoryPoolSupportedHandleTypes */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.memoryPoolSupportedHandleTypes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8123 * def memoryPoolSupportedHandleTypes(self, unsigned int memoryPoolSupportedHandleTypes): * self._ptr[0].memoryPoolSupportedHandleTypes = memoryPoolSupportedHandleTypes * @property # <<<<<<<<<<<<<< * def deferredMappingCudaArraySupported(self): * return self._ptr[0].deferredMappingCudaArraySupported */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_33deferredMappingCudaArraySupported_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_33deferredMappingCudaArraySupported___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_33deferredMappingCudaArraySupported___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8123, 0, __PYX_ERR(0, 8123, __pyx_L1_error)); /* "cuda/cudart.pyx":8125 * @property * def deferredMappingCudaArraySupported(self): * return self._ptr[0].deferredMappingCudaArraySupported # <<<<<<<<<<<<<< * @deferredMappingCudaArraySupported.setter * def deferredMappingCudaArraySupported(self, int deferredMappingCudaArraySupported): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).deferredMappingCudaArraySupported); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8125, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8123 * def memoryPoolSupportedHandleTypes(self, unsigned int memoryPoolSupportedHandleTypes): * self._ptr[0].memoryPoolSupportedHandleTypes = memoryPoolSupportedHandleTypes * @property # <<<<<<<<<<<<<< * def deferredMappingCudaArraySupported(self): * return self._ptr[0].deferredMappingCudaArraySupported */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.deferredMappingCudaArraySupported.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8126 * def deferredMappingCudaArraySupported(self): * return self._ptr[0].deferredMappingCudaArraySupported * @deferredMappingCudaArraySupported.setter # <<<<<<<<<<<<<< * def deferredMappingCudaArraySupported(self, int deferredMappingCudaArraySupported): * self._ptr[0].deferredMappingCudaArraySupported = deferredMappingCudaArraySupported */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_33deferredMappingCudaArraySupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_deferredMappingCudaArraySupported); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_deferredMappingCudaArraySupported); if (unlikely((__pyx_v_deferredMappingCudaArraySupported == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8127, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.deferredMappingCudaArraySupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_33deferredMappingCudaArraySupported_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_deferredMappingCudaArraySupported)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_33deferredMappingCudaArraySupported_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_deferredMappingCudaArraySupported) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8126, 0, __PYX_ERR(0, 8126, __pyx_L1_error)); /* "cuda/cudart.pyx":8128 * @deferredMappingCudaArraySupported.setter * def deferredMappingCudaArraySupported(self, int deferredMappingCudaArraySupported): * self._ptr[0].deferredMappingCudaArraySupported = deferredMappingCudaArraySupported # <<<<<<<<<<<<<< * @property * def ipcEventSupported(self): */ (__pyx_v_self->_ptr[0]).deferredMappingCudaArraySupported = __pyx_v_deferredMappingCudaArraySupported; /* "cuda/cudart.pyx":8126 * def deferredMappingCudaArraySupported(self): * return self._ptr[0].deferredMappingCudaArraySupported * @deferredMappingCudaArraySupported.setter # <<<<<<<<<<<<<< * def deferredMappingCudaArraySupported(self, int deferredMappingCudaArraySupported): * self._ptr[0].deferredMappingCudaArraySupported = deferredMappingCudaArraySupported */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.deferredMappingCudaArraySupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8129 * def deferredMappingCudaArraySupported(self, int deferredMappingCudaArraySupported): * self._ptr[0].deferredMappingCudaArraySupported = deferredMappingCudaArraySupported * @property # <<<<<<<<<<<<<< * def ipcEventSupported(self): * return self._ptr[0].ipcEventSupported */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_17ipcEventSupported_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_17ipcEventSupported___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_17ipcEventSupported___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8129, 0, __PYX_ERR(0, 8129, __pyx_L1_error)); /* "cuda/cudart.pyx":8131 * @property * def ipcEventSupported(self): * return self._ptr[0].ipcEventSupported # <<<<<<<<<<<<<< * @ipcEventSupported.setter * def ipcEventSupported(self, int ipcEventSupported): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).ipcEventSupported); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8129 * def deferredMappingCudaArraySupported(self, int deferredMappingCudaArraySupported): * self._ptr[0].deferredMappingCudaArraySupported = deferredMappingCudaArraySupported * @property # <<<<<<<<<<<<<< * def ipcEventSupported(self): * return self._ptr[0].ipcEventSupported */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.ipcEventSupported.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8132 * def ipcEventSupported(self): * return self._ptr[0].ipcEventSupported * @ipcEventSupported.setter # <<<<<<<<<<<<<< * def ipcEventSupported(self, int ipcEventSupported): * self._ptr[0].ipcEventSupported = ipcEventSupported */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_17ipcEventSupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_ipcEventSupported); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_ipcEventSupported); if (unlikely((__pyx_v_ipcEventSupported == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8133, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.ipcEventSupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_17ipcEventSupported_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_ipcEventSupported)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_17ipcEventSupported_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_ipcEventSupported) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8132, 0, __PYX_ERR(0, 8132, __pyx_L1_error)); /* "cuda/cudart.pyx":8134 * @ipcEventSupported.setter * def ipcEventSupported(self, int ipcEventSupported): * self._ptr[0].ipcEventSupported = ipcEventSupported # <<<<<<<<<<<<<< * @property * def clusterLaunch(self): */ (__pyx_v_self->_ptr[0]).ipcEventSupported = __pyx_v_ipcEventSupported; /* "cuda/cudart.pyx":8132 * def ipcEventSupported(self): * return self._ptr[0].ipcEventSupported * @ipcEventSupported.setter # <<<<<<<<<<<<<< * def ipcEventSupported(self, int ipcEventSupported): * self._ptr[0].ipcEventSupported = ipcEventSupported */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.ipcEventSupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8135 * def ipcEventSupported(self, int ipcEventSupported): * self._ptr[0].ipcEventSupported = ipcEventSupported * @property # <<<<<<<<<<<<<< * def clusterLaunch(self): * return self._ptr[0].clusterLaunch */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_13clusterLaunch_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_13clusterLaunch___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_13clusterLaunch___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8135, 0, __PYX_ERR(0, 8135, __pyx_L1_error)); /* "cuda/cudart.pyx":8137 * @property * def clusterLaunch(self): * return self._ptr[0].clusterLaunch # <<<<<<<<<<<<<< * @clusterLaunch.setter * def clusterLaunch(self, int clusterLaunch): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).clusterLaunch); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8137, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8135 * def ipcEventSupported(self, int ipcEventSupported): * self._ptr[0].ipcEventSupported = ipcEventSupported * @property # <<<<<<<<<<<<<< * def clusterLaunch(self): * return self._ptr[0].clusterLaunch */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.clusterLaunch.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8138 * def clusterLaunch(self): * return self._ptr[0].clusterLaunch * @clusterLaunch.setter # <<<<<<<<<<<<<< * def clusterLaunch(self, int clusterLaunch): * self._ptr[0].clusterLaunch = clusterLaunch */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_13clusterLaunch_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_clusterLaunch); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_clusterLaunch); if (unlikely((__pyx_v_clusterLaunch == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8139, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.clusterLaunch.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_13clusterLaunch_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_clusterLaunch)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_13clusterLaunch_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_clusterLaunch) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8138, 0, __PYX_ERR(0, 8138, __pyx_L1_error)); /* "cuda/cudart.pyx":8140 * @clusterLaunch.setter * def clusterLaunch(self, int clusterLaunch): * self._ptr[0].clusterLaunch = clusterLaunch # <<<<<<<<<<<<<< * @property * def unifiedFunctionPointers(self): */ (__pyx_v_self->_ptr[0]).clusterLaunch = __pyx_v_clusterLaunch; /* "cuda/cudart.pyx":8138 * def clusterLaunch(self): * return self._ptr[0].clusterLaunch * @clusterLaunch.setter # <<<<<<<<<<<<<< * def clusterLaunch(self, int clusterLaunch): * self._ptr[0].clusterLaunch = clusterLaunch */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.clusterLaunch.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8141 * def clusterLaunch(self, int clusterLaunch): * self._ptr[0].clusterLaunch = clusterLaunch * @property # <<<<<<<<<<<<<< * def unifiedFunctionPointers(self): * return self._ptr[0].unifiedFunctionPointers */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_23unifiedFunctionPointers_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_23unifiedFunctionPointers___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_23unifiedFunctionPointers___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8141, 0, __PYX_ERR(0, 8141, __pyx_L1_error)); /* "cuda/cudart.pyx":8143 * @property * def unifiedFunctionPointers(self): * return self._ptr[0].unifiedFunctionPointers # <<<<<<<<<<<<<< * @unifiedFunctionPointers.setter * def unifiedFunctionPointers(self, int unifiedFunctionPointers): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).unifiedFunctionPointers); 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/cudart.pyx":8141 * def clusterLaunch(self, int clusterLaunch): * self._ptr[0].clusterLaunch = clusterLaunch * @property # <<<<<<<<<<<<<< * def unifiedFunctionPointers(self): * return self._ptr[0].unifiedFunctionPointers */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.unifiedFunctionPointers.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8144 * def unifiedFunctionPointers(self): * return self._ptr[0].unifiedFunctionPointers * @unifiedFunctionPointers.setter # <<<<<<<<<<<<<< * def unifiedFunctionPointers(self, int unifiedFunctionPointers): * self._ptr[0].unifiedFunctionPointers = unifiedFunctionPointers */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_23unifiedFunctionPointers_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_unifiedFunctionPointers); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_unifiedFunctionPointers); if (unlikely((__pyx_v_unifiedFunctionPointers == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8145, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.unifiedFunctionPointers.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_23unifiedFunctionPointers_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_unifiedFunctionPointers)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_23unifiedFunctionPointers_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, int __pyx_v_unifiedFunctionPointers) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8144, 0, __PYX_ERR(0, 8144, __pyx_L1_error)); /* "cuda/cudart.pyx":8146 * @unifiedFunctionPointers.setter * def unifiedFunctionPointers(self, int unifiedFunctionPointers): * self._ptr[0].unifiedFunctionPointers = unifiedFunctionPointers # <<<<<<<<<<<<<< * @property * def reserved2(self): */ (__pyx_v_self->_ptr[0]).unifiedFunctionPointers = __pyx_v_unifiedFunctionPointers; /* "cuda/cudart.pyx":8144 * def unifiedFunctionPointers(self): * return self._ptr[0].unifiedFunctionPointers * @unifiedFunctionPointers.setter # <<<<<<<<<<<<<< * def unifiedFunctionPointers(self, int unifiedFunctionPointers): * self._ptr[0].unifiedFunctionPointers = unifiedFunctionPointers */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.unifiedFunctionPointers.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8147 * def unifiedFunctionPointers(self, int unifiedFunctionPointers): * self._ptr[0].unifiedFunctionPointers = unifiedFunctionPointers * @property # <<<<<<<<<<<<<< * def reserved2(self): * return self._ptr[0].reserved2 */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_9reserved2_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_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_6cudart_14cudaDeviceProp_9reserved2___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_9reserved2___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8147, 0, __PYX_ERR(0, 8147, __pyx_L1_error)); /* "cuda/cudart.pyx":8149 * @property * def reserved2(self): * return self._ptr[0].reserved2 # <<<<<<<<<<<<<< * @reserved2.setter * def reserved2(self, reserved2): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_ptr[0]).reserved2, 2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8149, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8147 * def unifiedFunctionPointers(self, int unifiedFunctionPointers): * self._ptr[0].unifiedFunctionPointers = unifiedFunctionPointers * @property # <<<<<<<<<<<<<< * def reserved2(self): * return self._ptr[0].reserved2 */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.reserved2.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8150 * def reserved2(self): * return self._ptr[0].reserved2 * @reserved2.setter # <<<<<<<<<<<<<< * def reserved2(self, reserved2): * self._ptr[0].reserved2 = reserved2 */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_9reserved2_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved2); /*proto*/ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_9reserved2_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved2) { 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_6cudart_14cudaDeviceProp_9reserved2_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_reserved2)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_9reserved2_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_reserved2) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1[2]; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8150, 0, __PYX_ERR(0, 8150, __pyx_L1_error)); /* "cuda/cudart.pyx":8152 * @reserved2.setter * def reserved2(self, reserved2): * self._ptr[0].reserved2 = reserved2 # <<<<<<<<<<<<<< * @property * def reserved1(self): */ if (unlikely((__Pyx_carray_from_py_int(__pyx_v_reserved2, __pyx_t_1, 2) < 0))) __PYX_ERR(0, 8152, __pyx_L1_error) memcpy(&((__pyx_v_self->_ptr[0]).reserved2[0]), __pyx_t_1, sizeof((__pyx_v_self->_ptr[0]).reserved2[0]) * (2)); /* "cuda/cudart.pyx":8150 * def reserved2(self): * return self._ptr[0].reserved2 * @reserved2.setter # <<<<<<<<<<<<<< * def reserved2(self, reserved2): * self._ptr[0].reserved2 = reserved2 */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.reserved2.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8153 * def reserved2(self, reserved2): * self._ptr[0].reserved2 = reserved2 * @property # <<<<<<<<<<<<<< * def reserved1(self): * return self._ptr[0].reserved1 */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_9reserved1_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_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_6cudart_14cudaDeviceProp_9reserved1___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_9reserved1___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8153, 0, __PYX_ERR(0, 8153, __pyx_L1_error)); /* "cuda/cudart.pyx":8155 * @property * def reserved1(self): * return self._ptr[0].reserved1 # <<<<<<<<<<<<<< * @reserved1.setter * def reserved1(self, reserved1): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_ptr[0]).reserved1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8153 * def reserved2(self, reserved2): * self._ptr[0].reserved2 = reserved2 * @property # <<<<<<<<<<<<<< * def reserved1(self): * return self._ptr[0].reserved1 */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.reserved1.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8156 * def reserved1(self): * return self._ptr[0].reserved1 * @reserved1.setter # <<<<<<<<<<<<<< * def reserved1(self, reserved1): * self._ptr[0].reserved1 = reserved1 */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_9reserved1_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved1); /*proto*/ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_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_6cudart_14cudaDeviceProp_9reserved1_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_reserved1)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_9reserved1_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_reserved1) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1[1]; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8156, 0, __PYX_ERR(0, 8156, __pyx_L1_error)); /* "cuda/cudart.pyx":8158 * @reserved1.setter * def reserved1(self, reserved1): * self._ptr[0].reserved1 = reserved1 # <<<<<<<<<<<<<< * @property * def reserved(self): */ if (unlikely((__Pyx_carray_from_py_int(__pyx_v_reserved1, __pyx_t_1, 1) < 0))) __PYX_ERR(0, 8158, __pyx_L1_error) memcpy(&((__pyx_v_self->_ptr[0]).reserved1[0]), __pyx_t_1, sizeof((__pyx_v_self->_ptr[0]).reserved1[0]) * (1)); /* "cuda/cudart.pyx":8156 * def reserved1(self): * return self._ptr[0].reserved1 * @reserved1.setter # <<<<<<<<<<<<<< * def reserved1(self, reserved1): * self._ptr[0].reserved1 = reserved1 */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.reserved1.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8159 * def reserved1(self, reserved1): * self._ptr[0].reserved1 = reserved1 * @property # <<<<<<<<<<<<<< * def reserved(self): * return self._ptr[0].reserved */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_14cudaDeviceProp_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_8reserved___get__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_8reserved___get__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8159, 0, __PYX_ERR(0, 8159, __pyx_L1_error)); /* "cuda/cudart.pyx":8161 * @property * def reserved(self): * return self._ptr[0].reserved # <<<<<<<<<<<<<< * @reserved.setter * def reserved(self, reserved): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_ptr[0]).reserved, 60); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8161, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8159 * def reserved1(self, reserved1): * self._ptr[0].reserved1 = reserved1 * @property # <<<<<<<<<<<<<< * def reserved(self): * return self._ptr[0].reserved */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8162 * def reserved(self): * return self._ptr[0].reserved * @reserved.setter # <<<<<<<<<<<<<< * def reserved(self, reserved): * self._ptr[0].reserved = reserved */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_14cudaDeviceProp_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_14cudaDeviceProp_8reserved_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_reserved)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_14cudaDeviceProp_8reserved_2__set__(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_reserved) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1[60]; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8162, 0, __PYX_ERR(0, 8162, __pyx_L1_error)); /* "cuda/cudart.pyx":8164 * @reserved.setter * def reserved(self, reserved): * self._ptr[0].reserved = reserved # <<<<<<<<<<<<<< * * cdef class cudaIpcEventHandle_st: */ if (unlikely((__Pyx_carray_from_py_int(__pyx_v_reserved, __pyx_t_1, 60) < 0))) __PYX_ERR(0, 8164, __pyx_L1_error) memcpy(&((__pyx_v_self->_ptr[0]).reserved[0]), __pyx_t_1, sizeof((__pyx_v_self->_ptr[0]).reserved[0]) * (60)); /* "cuda/cudart.pyx":8162 * def reserved(self): * return self._ptr[0].reserved * @reserved.setter # <<<<<<<<<<<<<< * def reserved(self, reserved): * self._ptr[0].reserved = reserved */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_14cudaDeviceProp_10__reduce_cython__, "cudaDeviceProp.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_14cudaDeviceProp_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_14cudaDeviceProp_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_14cudaDeviceProp_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__153) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaDeviceProp.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_14cudaDeviceProp_12__setstate_cython__, "cudaDeviceProp.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_14cudaDeviceProp_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_14cudaDeviceProp_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_14cudaDeviceProp_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaDeviceProp.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceProp_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceProp_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__154) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaDeviceProp.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8181 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_21cudaIpcEventHandle_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_21cudaIpcEventHandle_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 8181, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 8181, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8181, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 8181, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaIpcEventHandle_st.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_21cudaIpcEventHandle_st___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaIpcEventHandle_st *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_21cudaIpcEventHandle_st___cinit__(struct __pyx_obj_4cuda_6cudart_cudaIpcEventHandle_st *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 8181, 0, __PYX_ERR(0, 8181, __pyx_L1_error)); /* "cuda/cudart.pyx":8182 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":8183 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaIpcEventHandle_st__val); /* "cuda/cudart.pyx":8182 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":8185 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * pass */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaIpcEventHandle_st *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":8181 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaIpcEventHandle_st.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8186 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_21cudaIpcEventHandle_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_21cudaIpcEventHandle_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 8186, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 8186, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8186, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 8186, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaIpcEventHandle_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_21cudaIpcEventHandle_st_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaIpcEventHandle_st *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_21cudaIpcEventHandle_st_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaIpcEventHandle_st *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 8186, 0, __PYX_ERR(0, 8186, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaIpcEventHandle_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8188 * def __init__(self, void_ptr _ptr = 0): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_21cudaIpcEventHandle_st_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_21cudaIpcEventHandle_st_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaIpcEventHandle_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_21cudaIpcEventHandle_st_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaIpcEventHandle_st *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 8188, 0, __PYX_ERR(0, 8188, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaIpcEventHandle_st.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":8190 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_21cudaIpcEventHandle_st_6getPtr, "cudaIpcEventHandle_st.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_21cudaIpcEventHandle_st_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_21cudaIpcEventHandle_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_21cudaIpcEventHandle_st_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_21cudaIpcEventHandle_st_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaIpcEventHandle_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaIpcEventHandle_st_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaIpcEventHandle_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__155) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 8190, 0, __PYX_ERR(0, 8190, __pyx_L1_error)); /* "cuda/cudart.pyx":8191 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8191, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8190 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaIpcEventHandle_st.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8192 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_21cudaIpcEventHandle_st_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_21cudaIpcEventHandle_st_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaIpcEventHandle_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaIpcEventHandle_st_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaIpcEventHandle_st *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 8192, 0, __PYX_ERR(0, 8192, __pyx_L1_error)); /* "cuda/cudart.pyx":8193 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":8194 * def __repr__(self): * if self._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, 8194, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":8195 * if self._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/cudart.pyx":8196 * str_list = [] * try: * str_list += ['reserved : ' + str(self.reserved)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['reserved : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_reserved_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8196, __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, 8196, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_reserved, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8196, __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, 8196, __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)) __PYX_ERR(0, 8196, __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, 8196, __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/cudart.pyx":8195 * if self._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/cudart.pyx":8197 * try: * str_list += ['reserved : ' + str(self.reserved)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['reserved : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 8197, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":8198 * str_list += ['reserved : ' + str(self.reserved)] * except ValueError: * str_list += ['reserved : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8198, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_reserved_ValueError); __Pyx_GIVEREF(__pyx_kp_u_reserved_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_reserved_ValueError)) __PYX_ERR(0, 8198, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8198, __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/cudart.pyx":8195 * if self._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/cudart.pyx":8199 * except ValueError: * str_list += ['reserved : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8199, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8193 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":8201 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def reserved(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":8192 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8202 * else: * return '' * @property # <<<<<<<<<<<<<< * def reserved(self): * return PyBytes_FromStringAndSize(self._ptr[0].reserved, 64) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_21cudaIpcEventHandle_st_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_21cudaIpcEventHandle_st_8reserved___get__(((struct __pyx_obj_4cuda_6cudart_cudaIpcEventHandle_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaIpcEventHandle_st_8reserved___get__(struct __pyx_obj_4cuda_6cudart_cudaIpcEventHandle_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8202, 0, __PYX_ERR(0, 8202, __pyx_L1_error)); /* "cuda/cudart.pyx":8204 * @property * def reserved(self): * return PyBytes_FromStringAndSize(self._ptr[0].reserved, 64) # <<<<<<<<<<<<<< * @reserved.setter * def reserved(self, reserved): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyBytes_FromStringAndSize((__pyx_v_self->_ptr[0]).reserved, 64); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8204, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8202 * else: * return '' * @property # <<<<<<<<<<<<<< * def reserved(self): * return PyBytes_FromStringAndSize(self._ptr[0].reserved, 64) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaIpcEventHandle_st.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8205 * def reserved(self): * return PyBytes_FromStringAndSize(self._ptr[0].reserved, 64) * @reserved.setter # <<<<<<<<<<<<<< * def reserved(self, reserved): * if len(reserved) != 64: */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_21cudaIpcEventHandle_st_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_21cudaIpcEventHandle_st_8reserved_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaIpcEventHandle_st *)__pyx_v_self), ((PyObject *)__pyx_v_reserved)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_21cudaIpcEventHandle_st_8reserved_2__set__(struct __pyx_obj_4cuda_6cudart_cudaIpcEventHandle_st *__pyx_v_self, PyObject *__pyx_v_reserved) { PyObject *__pyx_v_i = NULL; PyObject *__pyx_v_b = NULL; int __pyx_r; __Pyx_TraceDeclarations __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)(PyObject *); PyObject *__pyx_t_6 = NULL; int __pyx_t_7; char __pyx_t_8; Py_ssize_t __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 8205, 0, __PYX_ERR(0, 8205, __pyx_L1_error)); /* "cuda/cudart.pyx":8207 * @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, 8207, __pyx_L1_error) __pyx_t_2 = (__pyx_t_1 != 64); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":8208 * 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_1 = PyObject_Length(__pyx_v_reserved); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 8208, __pyx_L1_error) __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8208, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8208, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_reserved_length_must_be_64_is, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8208, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8208, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __PYX_ERR(0, 8208, __pyx_L1_error) /* "cuda/cudart.pyx":8207 * @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/cudart.pyx":8209 * 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/cudart.pyx":8210 * 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_int_0); __pyx_t_4 = __pyx_int_0; if (likely(PyList_CheckExact(__pyx_v_reserved)) || PyTuple_CheckExact(__pyx_v_reserved)) { __pyx_t_3 = __pyx_v_reserved; __Pyx_INCREF(__pyx_t_3); __pyx_t_1 = 0; __pyx_t_5 = NULL; } else { __pyx_t_1 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_reserved); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 8210, __pyx_L1_error) } for (;;) { if (likely(!__pyx_t_5)) { if (likely(PyList_CheckExact(__pyx_t_3))) { { Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 8210, __pyx_L1_error) #endif if (__pyx_t_1 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_1); __Pyx_INCREF(__pyx_t_6); __pyx_t_1++; if (unlikely((0 < 0))) __PYX_ERR(0, 8210, __pyx_L1_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 8210, __pyx_L1_error) #endif if (__pyx_t_1 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_1); __Pyx_INCREF(__pyx_t_6); __pyx_t_1++; if (unlikely((0 < 0))) __PYX_ERR(0, 8210, __pyx_L1_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); #endif } } else { __pyx_t_6 = __pyx_t_5(__pyx_t_3); if (unlikely(!__pyx_t_6)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 8210, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_6); } __Pyx_XDECREF_SET(__pyx_v_b, __pyx_t_6); __pyx_t_6 = 0; __Pyx_INCREF(__pyx_t_4); __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_4); __pyx_t_6 = __Pyx_PyInt_AddObjC(__pyx_t_4, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = __pyx_t_6; __pyx_t_6 = 0; /* "cuda/cudart.pyx":8211 * if CHAR_MIN == 0: * for i, b in enumerate(reserved): * if b < 0 and b > -129: # <<<<<<<<<<<<<< * b = b + 256 * self._ptr[0].reserved[i] = b */ __pyx_t_6 = PyObject_RichCompare(__pyx_v_b, __pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8211, __pyx_L1_error) __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 8211, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__pyx_t_7) { } else { __pyx_t_2 = __pyx_t_7; goto __pyx_L8_bool_binop_done; } __pyx_t_6 = PyObject_RichCompare(__pyx_v_b, __pyx_int_neg_129, Py_GT); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8211, __pyx_L1_error) __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 8211, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_2 = __pyx_t_7; __pyx_L8_bool_binop_done:; if (__pyx_t_2) { /* "cuda/cudart.pyx":8212 * for i, b in enumerate(reserved): * if b < 0 and b > -129: * b = b + 256 # <<<<<<<<<<<<<< * self._ptr[0].reserved[i] = b * else: */ __pyx_t_6 = __Pyx_PyInt_AddObjC(__pyx_v_b, __pyx_int_256, 0x100, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8212, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF_SET(__pyx_v_b, __pyx_t_6); __pyx_t_6 = 0; /* "cuda/cudart.pyx":8211 * if CHAR_MIN == 0: * for i, b in enumerate(reserved): * if b < 0 and b > -129: # <<<<<<<<<<<<<< * b = b + 256 * self._ptr[0].reserved[i] = b */ } /* "cuda/cudart.pyx":8213 * if b < 0 and b > -129: * b = b + 256 * self._ptr[0].reserved[i] = b # <<<<<<<<<<<<<< * else: * for i, b in enumerate(reserved): */ __pyx_t_8 = __Pyx_PyInt_As_char(__pyx_v_b); if (unlikely((__pyx_t_8 == (char)-1) && PyErr_Occurred())) __PYX_ERR(0, 8213, __pyx_L1_error) __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 8213, __pyx_L1_error) ((__pyx_v_self->_ptr[0]).reserved[__pyx_t_9]) = __pyx_t_8; /* "cuda/cudart.pyx":8210 * 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_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":8209 * 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/cudart.pyx":8215 * self._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_int_0); __pyx_t_4 = __pyx_int_0; if (likely(PyList_CheckExact(__pyx_v_reserved)) || PyTuple_CheckExact(__pyx_v_reserved)) { __pyx_t_3 = __pyx_v_reserved; __Pyx_INCREF(__pyx_t_3); __pyx_t_1 = 0; __pyx_t_5 = NULL; } else { __pyx_t_1 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_reserved); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8215, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 8215, __pyx_L1_error) } for (;;) { if (likely(!__pyx_t_5)) { if (likely(PyList_CheckExact(__pyx_t_3))) { { Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 8215, __pyx_L1_error) #endif if (__pyx_t_1 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_1); __Pyx_INCREF(__pyx_t_6); __pyx_t_1++; if (unlikely((0 < 0))) __PYX_ERR(0, 8215, __pyx_L1_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8215, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 8215, __pyx_L1_error) #endif if (__pyx_t_1 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_1); __Pyx_INCREF(__pyx_t_6); __pyx_t_1++; if (unlikely((0 < 0))) __PYX_ERR(0, 8215, __pyx_L1_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8215, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); #endif } } else { __pyx_t_6 = __pyx_t_5(__pyx_t_3); if (unlikely(!__pyx_t_6)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 8215, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_6); } __Pyx_XDECREF_SET(__pyx_v_b, __pyx_t_6); __pyx_t_6 = 0; __Pyx_INCREF(__pyx_t_4); __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_4); __pyx_t_6 = __Pyx_PyInt_AddObjC(__pyx_t_4, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8215, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = __pyx_t_6; __pyx_t_6 = 0; /* "cuda/cudart.pyx":8216 * else: * for i, b in enumerate(reserved): * if b > 127 and b < 256: # <<<<<<<<<<<<<< * b = b - 256 * self._ptr[0].reserved[i] = b */ __pyx_t_6 = PyObject_RichCompare(__pyx_v_b, __pyx_int_127, Py_GT); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8216, __pyx_L1_error) __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 8216, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__pyx_t_7) { } else { __pyx_t_2 = __pyx_t_7; goto __pyx_L14_bool_binop_done; } __pyx_t_6 = PyObject_RichCompare(__pyx_v_b, __pyx_int_256, Py_LT); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8216, __pyx_L1_error) __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 8216, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_2 = __pyx_t_7; __pyx_L14_bool_binop_done:; if (__pyx_t_2) { /* "cuda/cudart.pyx":8217 * for i, b in enumerate(reserved): * if b > 127 and b < 256: * b = b - 256 # <<<<<<<<<<<<<< * self._ptr[0].reserved[i] = b * */ __pyx_t_6 = __Pyx_PyInt_SubtractObjC(__pyx_v_b, __pyx_int_256, 0x100, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8217, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF_SET(__pyx_v_b, __pyx_t_6); __pyx_t_6 = 0; /* "cuda/cudart.pyx":8216 * else: * for i, b in enumerate(reserved): * if b > 127 and b < 256: # <<<<<<<<<<<<<< * b = b - 256 * self._ptr[0].reserved[i] = b */ } /* "cuda/cudart.pyx":8218 * if b > 127 and b < 256: * b = b - 256 * self._ptr[0].reserved[i] = b # <<<<<<<<<<<<<< * * cdef class cudaIpcMemHandle_st: */ __pyx_t_8 = __Pyx_PyInt_As_char(__pyx_v_b); if (unlikely((__pyx_t_8 == (char)-1) && PyErr_Occurred())) __PYX_ERR(0, 8218, __pyx_L1_error) __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 8218, __pyx_L1_error) ((__pyx_v_self->_ptr[0]).reserved[__pyx_t_9]) = __pyx_t_8; /* "cuda/cudart.pyx":8215 * self._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_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_L4:; /* "cuda/cudart.pyx":8205 * def reserved(self): * return PyBytes_FromStringAndSize(self._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_6); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(Py_None, 0); __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_6cudart_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_6cudart_21cudaIpcEventHandle_st_10__reduce_cython__, "cudaIpcEventHandle_st.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_21cudaIpcEventHandle_st_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_21cudaIpcEventHandle_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_21cudaIpcEventHandle_st_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_21cudaIpcEventHandle_st_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaIpcEventHandle_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaIpcEventHandle_st_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaIpcEventHandle_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__156) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaIpcEventHandle_st.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_21cudaIpcEventHandle_st_12__setstate_cython__, "cudaIpcEventHandle_st.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_21cudaIpcEventHandle_st_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_21cudaIpcEventHandle_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_21cudaIpcEventHandle_st_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaIpcEventHandle_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_21cudaIpcEventHandle_st_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaIpcEventHandle_st *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_21cudaIpcEventHandle_st_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaIpcEventHandle_st *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__157) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaIpcEventHandle_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8235 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_19cudaIpcMemHandle_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_19cudaIpcMemHandle_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 8235, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 8235, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_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) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 8235, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaIpcMemHandle_st.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_19cudaIpcMemHandle_st___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaIpcMemHandle_st *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_19cudaIpcMemHandle_st___cinit__(struct __pyx_obj_4cuda_6cudart_cudaIpcMemHandle_st *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 8235, 0, __PYX_ERR(0, 8235, __pyx_L1_error)); /* "cuda/cudart.pyx":8236 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":8237 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaIpcMemHandle_st__val); /* "cuda/cudart.pyx":8236 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":8239 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * pass */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaIpcMemHandle_st *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":8235 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaIpcMemHandle_st.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8240 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_19cudaIpcMemHandle_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_19cudaIpcMemHandle_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 8240, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 8240, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8240, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 8240, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaIpcMemHandle_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_19cudaIpcMemHandle_st_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaIpcMemHandle_st *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_19cudaIpcMemHandle_st_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaIpcMemHandle_st *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 8240, 0, __PYX_ERR(0, 8240, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaIpcMemHandle_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8242 * def __init__(self, void_ptr _ptr = 0): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_19cudaIpcMemHandle_st_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_19cudaIpcMemHandle_st_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaIpcMemHandle_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_19cudaIpcMemHandle_st_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaIpcMemHandle_st *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 8242, 0, __PYX_ERR(0, 8242, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaIpcMemHandle_st.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":8244 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_19cudaIpcMemHandle_st_6getPtr, "cudaIpcMemHandle_st.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_19cudaIpcMemHandle_st_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_19cudaIpcMemHandle_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_19cudaIpcMemHandle_st_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_19cudaIpcMemHandle_st_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaIpcMemHandle_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaIpcMemHandle_st_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaIpcMemHandle_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__158) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 8244, 0, __PYX_ERR(0, 8244, __pyx_L1_error)); /* "cuda/cudart.pyx":8245 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8245, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8244 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaIpcMemHandle_st.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8246 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_19cudaIpcMemHandle_st_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_19cudaIpcMemHandle_st_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaIpcMemHandle_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaIpcMemHandle_st_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaIpcMemHandle_st *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 8246, 0, __PYX_ERR(0, 8246, __pyx_L1_error)); /* "cuda/cudart.pyx":8247 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":8248 * def __repr__(self): * if self._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, 8248, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":8249 * if self._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/cudart.pyx":8250 * str_list = [] * try: * str_list += ['reserved : ' + str(self.reserved)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['reserved : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_reserved_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8250, __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, 8250, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_reserved, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8250, __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, 8250, __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)) __PYX_ERR(0, 8250, __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, 8250, __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/cudart.pyx":8249 * if self._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/cudart.pyx":8251 * try: * str_list += ['reserved : ' + str(self.reserved)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['reserved : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 8251, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":8252 * str_list += ['reserved : ' + str(self.reserved)] * except ValueError: * str_list += ['reserved : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8252, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_reserved_ValueError); __Pyx_GIVEREF(__pyx_kp_u_reserved_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_reserved_ValueError)) __PYX_ERR(0, 8252, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8252, __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/cudart.pyx":8249 * if self._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/cudart.pyx":8253 * except ValueError: * str_list += ['reserved : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8253, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8247 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":8255 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def reserved(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":8246 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8256 * else: * return '' * @property # <<<<<<<<<<<<<< * def reserved(self): * return PyBytes_FromStringAndSize(self._ptr[0].reserved, 64) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_19cudaIpcMemHandle_st_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_19cudaIpcMemHandle_st_8reserved___get__(((struct __pyx_obj_4cuda_6cudart_cudaIpcMemHandle_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaIpcMemHandle_st_8reserved___get__(struct __pyx_obj_4cuda_6cudart_cudaIpcMemHandle_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8256, 0, __PYX_ERR(0, 8256, __pyx_L1_error)); /* "cuda/cudart.pyx":8258 * @property * def reserved(self): * return PyBytes_FromStringAndSize(self._ptr[0].reserved, 64) # <<<<<<<<<<<<<< * @reserved.setter * def reserved(self, reserved): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyBytes_FromStringAndSize((__pyx_v_self->_ptr[0]).reserved, 64); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8258, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8256 * else: * return '' * @property # <<<<<<<<<<<<<< * def reserved(self): * return PyBytes_FromStringAndSize(self._ptr[0].reserved, 64) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaIpcMemHandle_st.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8259 * def reserved(self): * return PyBytes_FromStringAndSize(self._ptr[0].reserved, 64) * @reserved.setter # <<<<<<<<<<<<<< * def reserved(self, reserved): * if len(reserved) != 64: */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_19cudaIpcMemHandle_st_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_19cudaIpcMemHandle_st_8reserved_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaIpcMemHandle_st *)__pyx_v_self), ((PyObject *)__pyx_v_reserved)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_19cudaIpcMemHandle_st_8reserved_2__set__(struct __pyx_obj_4cuda_6cudart_cudaIpcMemHandle_st *__pyx_v_self, PyObject *__pyx_v_reserved) { PyObject *__pyx_v_i = NULL; PyObject *__pyx_v_b = NULL; int __pyx_r; __Pyx_TraceDeclarations __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)(PyObject *); PyObject *__pyx_t_6 = NULL; int __pyx_t_7; char __pyx_t_8; Py_ssize_t __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 8259, 0, __PYX_ERR(0, 8259, __pyx_L1_error)); /* "cuda/cudart.pyx":8261 * @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, 8261, __pyx_L1_error) __pyx_t_2 = (__pyx_t_1 != 64); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":8262 * 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_1 = PyObject_Length(__pyx_v_reserved); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 8262, __pyx_L1_error) __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8262, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8262, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_reserved_length_must_be_64_is, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8262, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8262, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __PYX_ERR(0, 8262, __pyx_L1_error) /* "cuda/cudart.pyx":8261 * @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/cudart.pyx":8263 * 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/cudart.pyx":8264 * 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_int_0); __pyx_t_4 = __pyx_int_0; if (likely(PyList_CheckExact(__pyx_v_reserved)) || PyTuple_CheckExact(__pyx_v_reserved)) { __pyx_t_3 = __pyx_v_reserved; __Pyx_INCREF(__pyx_t_3); __pyx_t_1 = 0; __pyx_t_5 = NULL; } else { __pyx_t_1 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_reserved); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8264, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 8264, __pyx_L1_error) } for (;;) { if (likely(!__pyx_t_5)) { if (likely(PyList_CheckExact(__pyx_t_3))) { { Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 8264, __pyx_L1_error) #endif if (__pyx_t_1 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_1); __Pyx_INCREF(__pyx_t_6); __pyx_t_1++; if (unlikely((0 < 0))) __PYX_ERR(0, 8264, __pyx_L1_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8264, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 8264, __pyx_L1_error) #endif if (__pyx_t_1 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_1); __Pyx_INCREF(__pyx_t_6); __pyx_t_1++; if (unlikely((0 < 0))) __PYX_ERR(0, 8264, __pyx_L1_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8264, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); #endif } } else { __pyx_t_6 = __pyx_t_5(__pyx_t_3); if (unlikely(!__pyx_t_6)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 8264, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_6); } __Pyx_XDECREF_SET(__pyx_v_b, __pyx_t_6); __pyx_t_6 = 0; __Pyx_INCREF(__pyx_t_4); __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_4); __pyx_t_6 = __Pyx_PyInt_AddObjC(__pyx_t_4, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8264, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = __pyx_t_6; __pyx_t_6 = 0; /* "cuda/cudart.pyx":8265 * if CHAR_MIN == 0: * for i, b in enumerate(reserved): * if b < 0 and b > -129: # <<<<<<<<<<<<<< * b = b + 256 * self._ptr[0].reserved[i] = b */ __pyx_t_6 = PyObject_RichCompare(__pyx_v_b, __pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8265, __pyx_L1_error) __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 8265, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__pyx_t_7) { } else { __pyx_t_2 = __pyx_t_7; goto __pyx_L8_bool_binop_done; } __pyx_t_6 = PyObject_RichCompare(__pyx_v_b, __pyx_int_neg_129, Py_GT); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8265, __pyx_L1_error) __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 8265, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_2 = __pyx_t_7; __pyx_L8_bool_binop_done:; if (__pyx_t_2) { /* "cuda/cudart.pyx":8266 * for i, b in enumerate(reserved): * if b < 0 and b > -129: * b = b + 256 # <<<<<<<<<<<<<< * self._ptr[0].reserved[i] = b * else: */ __pyx_t_6 = __Pyx_PyInt_AddObjC(__pyx_v_b, __pyx_int_256, 0x100, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF_SET(__pyx_v_b, __pyx_t_6); __pyx_t_6 = 0; /* "cuda/cudart.pyx":8265 * if CHAR_MIN == 0: * for i, b in enumerate(reserved): * if b < 0 and b > -129: # <<<<<<<<<<<<<< * b = b + 256 * self._ptr[0].reserved[i] = b */ } /* "cuda/cudart.pyx":8267 * if b < 0 and b > -129: * b = b + 256 * self._ptr[0].reserved[i] = b # <<<<<<<<<<<<<< * else: * for i, b in enumerate(reserved): */ __pyx_t_8 = __Pyx_PyInt_As_char(__pyx_v_b); if (unlikely((__pyx_t_8 == (char)-1) && PyErr_Occurred())) __PYX_ERR(0, 8267, __pyx_L1_error) __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 8267, __pyx_L1_error) ((__pyx_v_self->_ptr[0]).reserved[__pyx_t_9]) = __pyx_t_8; /* "cuda/cudart.pyx":8264 * 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_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":8263 * 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/cudart.pyx":8269 * self._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_int_0); __pyx_t_4 = __pyx_int_0; if (likely(PyList_CheckExact(__pyx_v_reserved)) || PyTuple_CheckExact(__pyx_v_reserved)) { __pyx_t_3 = __pyx_v_reserved; __Pyx_INCREF(__pyx_t_3); __pyx_t_1 = 0; __pyx_t_5 = NULL; } else { __pyx_t_1 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_reserved); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 8269, __pyx_L1_error) } for (;;) { if (likely(!__pyx_t_5)) { if (likely(PyList_CheckExact(__pyx_t_3))) { { Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 8269, __pyx_L1_error) #endif if (__pyx_t_1 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_1); __Pyx_INCREF(__pyx_t_6); __pyx_t_1++; if (unlikely((0 < 0))) __PYX_ERR(0, 8269, __pyx_L1_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 8269, __pyx_L1_error) #endif if (__pyx_t_1 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_1); __Pyx_INCREF(__pyx_t_6); __pyx_t_1++; if (unlikely((0 < 0))) __PYX_ERR(0, 8269, __pyx_L1_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); #endif } } else { __pyx_t_6 = __pyx_t_5(__pyx_t_3); if (unlikely(!__pyx_t_6)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 8269, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_6); } __Pyx_XDECREF_SET(__pyx_v_b, __pyx_t_6); __pyx_t_6 = 0; __Pyx_INCREF(__pyx_t_4); __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_4); __pyx_t_6 = __Pyx_PyInt_AddObjC(__pyx_t_4, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = __pyx_t_6; __pyx_t_6 = 0; /* "cuda/cudart.pyx":8270 * else: * for i, b in enumerate(reserved): * if b > 127 and b < 256: # <<<<<<<<<<<<<< * b = b - 256 * self._ptr[0].reserved[i] = b */ __pyx_t_6 = PyObject_RichCompare(__pyx_v_b, __pyx_int_127, Py_GT); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8270, __pyx_L1_error) __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 8270, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__pyx_t_7) { } else { __pyx_t_2 = __pyx_t_7; goto __pyx_L14_bool_binop_done; } __pyx_t_6 = PyObject_RichCompare(__pyx_v_b, __pyx_int_256, Py_LT); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8270, __pyx_L1_error) __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 8270, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_2 = __pyx_t_7; __pyx_L14_bool_binop_done:; if (__pyx_t_2) { /* "cuda/cudart.pyx":8271 * for i, b in enumerate(reserved): * if b > 127 and b < 256: * b = b - 256 # <<<<<<<<<<<<<< * self._ptr[0].reserved[i] = b * */ __pyx_t_6 = __Pyx_PyInt_SubtractObjC(__pyx_v_b, __pyx_int_256, 0x100, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8271, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF_SET(__pyx_v_b, __pyx_t_6); __pyx_t_6 = 0; /* "cuda/cudart.pyx":8270 * else: * for i, b in enumerate(reserved): * if b > 127 and b < 256: # <<<<<<<<<<<<<< * b = b - 256 * self._ptr[0].reserved[i] = b */ } /* "cuda/cudart.pyx":8272 * if b > 127 and b < 256: * b = b - 256 * self._ptr[0].reserved[i] = b # <<<<<<<<<<<<<< * * cdef class cudaMemFabricHandle_st: */ __pyx_t_8 = __Pyx_PyInt_As_char(__pyx_v_b); if (unlikely((__pyx_t_8 == (char)-1) && PyErr_Occurred())) __PYX_ERR(0, 8272, __pyx_L1_error) __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 8272, __pyx_L1_error) ((__pyx_v_self->_ptr[0]).reserved[__pyx_t_9]) = __pyx_t_8; /* "cuda/cudart.pyx":8269 * self._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_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_L4:; /* "cuda/cudart.pyx":8259 * def reserved(self): * return PyBytes_FromStringAndSize(self._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_6); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(Py_None, 0); __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_6cudart_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_6cudart_19cudaIpcMemHandle_st_10__reduce_cython__, "cudaIpcMemHandle_st.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_19cudaIpcMemHandle_st_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_19cudaIpcMemHandle_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_19cudaIpcMemHandle_st_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_19cudaIpcMemHandle_st_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaIpcMemHandle_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaIpcMemHandle_st_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaIpcMemHandle_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__159) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaIpcMemHandle_st.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_19cudaIpcMemHandle_st_12__setstate_cython__, "cudaIpcMemHandle_st.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_19cudaIpcMemHandle_st_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_19cudaIpcMemHandle_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_19cudaIpcMemHandle_st_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaIpcMemHandle_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_19cudaIpcMemHandle_st_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaIpcMemHandle_st *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaIpcMemHandle_st_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaIpcMemHandle_st *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__160) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaIpcMemHandle_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8287 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_22cudaMemFabricHandle_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_22cudaMemFabricHandle_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 8287, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 8287, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8287, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 8287, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemFabricHandle_st.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_22cudaMemFabricHandle_st___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaMemFabricHandle_st *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_22cudaMemFabricHandle_st___cinit__(struct __pyx_obj_4cuda_6cudart_cudaMemFabricHandle_st *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 8287, 0, __PYX_ERR(0, 8287, __pyx_L1_error)); /* "cuda/cudart.pyx":8288 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":8289 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaMemFabricHandle_st__val); /* "cuda/cudart.pyx":8288 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":8291 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * pass */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaMemFabricHandle_st *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":8287 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemFabricHandle_st.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8292 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_22cudaMemFabricHandle_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_22cudaMemFabricHandle_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 8292, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 8292, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8292, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 8292, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemFabricHandle_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_22cudaMemFabricHandle_st_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaMemFabricHandle_st *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_22cudaMemFabricHandle_st_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemFabricHandle_st *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 8292, 0, __PYX_ERR(0, 8292, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaMemFabricHandle_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8294 * def __init__(self, void_ptr _ptr = 0): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_22cudaMemFabricHandle_st_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_22cudaMemFabricHandle_st_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaMemFabricHandle_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_22cudaMemFabricHandle_st_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemFabricHandle_st *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 8294, 0, __PYX_ERR(0, 8294, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaMemFabricHandle_st.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":8296 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_22cudaMemFabricHandle_st_6getPtr, "cudaMemFabricHandle_st.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_22cudaMemFabricHandle_st_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_22cudaMemFabricHandle_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_22cudaMemFabricHandle_st_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_22cudaMemFabricHandle_st_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaMemFabricHandle_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaMemFabricHandle_st_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaMemFabricHandle_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__161) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 8296, 0, __PYX_ERR(0, 8296, __pyx_L1_error)); /* "cuda/cudart.pyx":8297 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8297, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8296 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemFabricHandle_st.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8298 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_22cudaMemFabricHandle_st_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_22cudaMemFabricHandle_st_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaMemFabricHandle_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaMemFabricHandle_st_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaMemFabricHandle_st *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 8298, 0, __PYX_ERR(0, 8298, __pyx_L1_error)); /* "cuda/cudart.pyx":8299 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":8300 * def __repr__(self): * if self._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, 8300, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":8301 * if self._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/cudart.pyx":8302 * str_list = [] * try: * str_list += ['reserved : ' + str(self.reserved)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['reserved : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_reserved_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8302, __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, 8302, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_reserved, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8302, __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, 8302, __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)) __PYX_ERR(0, 8302, __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, 8302, __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/cudart.pyx":8301 * if self._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/cudart.pyx":8303 * try: * str_list += ['reserved : ' + str(self.reserved)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['reserved : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 8303, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":8304 * str_list += ['reserved : ' + str(self.reserved)] * except ValueError: * str_list += ['reserved : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8304, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_reserved_ValueError); __Pyx_GIVEREF(__pyx_kp_u_reserved_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_reserved_ValueError)) __PYX_ERR(0, 8304, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8304, __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/cudart.pyx":8301 * if self._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/cudart.pyx":8305 * except ValueError: * str_list += ['reserved : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8305, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8299 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":8307 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def reserved(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":8298 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8308 * else: * return '' * @property # <<<<<<<<<<<<<< * def reserved(self): * return PyBytes_FromStringAndSize(self._ptr[0].reserved, 64) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_22cudaMemFabricHandle_st_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_22cudaMemFabricHandle_st_8reserved___get__(((struct __pyx_obj_4cuda_6cudart_cudaMemFabricHandle_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaMemFabricHandle_st_8reserved___get__(struct __pyx_obj_4cuda_6cudart_cudaMemFabricHandle_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8308, 0, __PYX_ERR(0, 8308, __pyx_L1_error)); /* "cuda/cudart.pyx":8310 * @property * def reserved(self): * return PyBytes_FromStringAndSize(self._ptr[0].reserved, 64) # <<<<<<<<<<<<<< * @reserved.setter * def reserved(self, reserved): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyBytes_FromStringAndSize((__pyx_v_self->_ptr[0]).reserved, 64); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8310, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8308 * else: * return '' * @property # <<<<<<<<<<<<<< * def reserved(self): * return PyBytes_FromStringAndSize(self._ptr[0].reserved, 64) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaMemFabricHandle_st.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8311 * def reserved(self): * return PyBytes_FromStringAndSize(self._ptr[0].reserved, 64) * @reserved.setter # <<<<<<<<<<<<<< * def reserved(self, reserved): * if len(reserved) != 64: */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_22cudaMemFabricHandle_st_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_22cudaMemFabricHandle_st_8reserved_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaMemFabricHandle_st *)__pyx_v_self), ((PyObject *)__pyx_v_reserved)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_22cudaMemFabricHandle_st_8reserved_2__set__(struct __pyx_obj_4cuda_6cudart_cudaMemFabricHandle_st *__pyx_v_self, PyObject *__pyx_v_reserved) { PyObject *__pyx_v_i = NULL; PyObject *__pyx_v_b = NULL; int __pyx_r; __Pyx_TraceDeclarations __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)(PyObject *); PyObject *__pyx_t_6 = NULL; int __pyx_t_7; char __pyx_t_8; Py_ssize_t __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 8311, 0, __PYX_ERR(0, 8311, __pyx_L1_error)); /* "cuda/cudart.pyx":8313 * @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, 8313, __pyx_L1_error) __pyx_t_2 = (__pyx_t_1 != 64); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":8314 * 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_1 = PyObject_Length(__pyx_v_reserved); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 8314, __pyx_L1_error) __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8314, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8314, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_reserved_length_must_be_64_is, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8314, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8314, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __PYX_ERR(0, 8314, __pyx_L1_error) /* "cuda/cudart.pyx":8313 * @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/cudart.pyx":8315 * 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/cudart.pyx":8316 * 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_int_0); __pyx_t_4 = __pyx_int_0; if (likely(PyList_CheckExact(__pyx_v_reserved)) || PyTuple_CheckExact(__pyx_v_reserved)) { __pyx_t_3 = __pyx_v_reserved; __Pyx_INCREF(__pyx_t_3); __pyx_t_1 = 0; __pyx_t_5 = NULL; } else { __pyx_t_1 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_reserved); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8316, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 8316, __pyx_L1_error) } for (;;) { if (likely(!__pyx_t_5)) { if (likely(PyList_CheckExact(__pyx_t_3))) { { Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 8316, __pyx_L1_error) #endif if (__pyx_t_1 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_1); __Pyx_INCREF(__pyx_t_6); __pyx_t_1++; if (unlikely((0 < 0))) __PYX_ERR(0, 8316, __pyx_L1_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8316, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 8316, __pyx_L1_error) #endif if (__pyx_t_1 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_1); __Pyx_INCREF(__pyx_t_6); __pyx_t_1++; if (unlikely((0 < 0))) __PYX_ERR(0, 8316, __pyx_L1_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8316, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); #endif } } else { __pyx_t_6 = __pyx_t_5(__pyx_t_3); if (unlikely(!__pyx_t_6)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 8316, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_6); } __Pyx_XDECREF_SET(__pyx_v_b, __pyx_t_6); __pyx_t_6 = 0; __Pyx_INCREF(__pyx_t_4); __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_4); __pyx_t_6 = __Pyx_PyInt_AddObjC(__pyx_t_4, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8316, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = __pyx_t_6; __pyx_t_6 = 0; /* "cuda/cudart.pyx":8317 * if CHAR_MIN == 0: * for i, b in enumerate(reserved): * if b < 0 and b > -129: # <<<<<<<<<<<<<< * b = b + 256 * self._ptr[0].reserved[i] = b */ __pyx_t_6 = PyObject_RichCompare(__pyx_v_b, __pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8317, __pyx_L1_error) __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 8317, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__pyx_t_7) { } else { __pyx_t_2 = __pyx_t_7; goto __pyx_L8_bool_binop_done; } __pyx_t_6 = PyObject_RichCompare(__pyx_v_b, __pyx_int_neg_129, Py_GT); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8317, __pyx_L1_error) __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 8317, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_2 = __pyx_t_7; __pyx_L8_bool_binop_done:; if (__pyx_t_2) { /* "cuda/cudart.pyx":8318 * for i, b in enumerate(reserved): * if b < 0 and b > -129: * b = b + 256 # <<<<<<<<<<<<<< * self._ptr[0].reserved[i] = b * else: */ __pyx_t_6 = __Pyx_PyInt_AddObjC(__pyx_v_b, __pyx_int_256, 0x100, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8318, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF_SET(__pyx_v_b, __pyx_t_6); __pyx_t_6 = 0; /* "cuda/cudart.pyx":8317 * if CHAR_MIN == 0: * for i, b in enumerate(reserved): * if b < 0 and b > -129: # <<<<<<<<<<<<<< * b = b + 256 * self._ptr[0].reserved[i] = b */ } /* "cuda/cudart.pyx":8319 * if b < 0 and b > -129: * b = b + 256 * self._ptr[0].reserved[i] = b # <<<<<<<<<<<<<< * else: * for i, b in enumerate(reserved): */ __pyx_t_8 = __Pyx_PyInt_As_char(__pyx_v_b); if (unlikely((__pyx_t_8 == (char)-1) && PyErr_Occurred())) __PYX_ERR(0, 8319, __pyx_L1_error) __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 8319, __pyx_L1_error) ((__pyx_v_self->_ptr[0]).reserved[__pyx_t_9]) = __pyx_t_8; /* "cuda/cudart.pyx":8316 * 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_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":8315 * 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/cudart.pyx":8321 * self._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_int_0); __pyx_t_4 = __pyx_int_0; if (likely(PyList_CheckExact(__pyx_v_reserved)) || PyTuple_CheckExact(__pyx_v_reserved)) { __pyx_t_3 = __pyx_v_reserved; __Pyx_INCREF(__pyx_t_3); __pyx_t_1 = 0; __pyx_t_5 = NULL; } else { __pyx_t_1 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_reserved); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8321, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 8321, __pyx_L1_error) } for (;;) { if (likely(!__pyx_t_5)) { if (likely(PyList_CheckExact(__pyx_t_3))) { { Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 8321, __pyx_L1_error) #endif if (__pyx_t_1 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_1); __Pyx_INCREF(__pyx_t_6); __pyx_t_1++; if (unlikely((0 < 0))) __PYX_ERR(0, 8321, __pyx_L1_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8321, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 8321, __pyx_L1_error) #endif if (__pyx_t_1 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_1); __Pyx_INCREF(__pyx_t_6); __pyx_t_1++; if (unlikely((0 < 0))) __PYX_ERR(0, 8321, __pyx_L1_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8321, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); #endif } } else { __pyx_t_6 = __pyx_t_5(__pyx_t_3); if (unlikely(!__pyx_t_6)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 8321, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_6); } __Pyx_XDECREF_SET(__pyx_v_b, __pyx_t_6); __pyx_t_6 = 0; __Pyx_INCREF(__pyx_t_4); __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_4); __pyx_t_6 = __Pyx_PyInt_AddObjC(__pyx_t_4, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8321, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = __pyx_t_6; __pyx_t_6 = 0; /* "cuda/cudart.pyx":8322 * else: * for i, b in enumerate(reserved): * if b > 127 and b < 256: # <<<<<<<<<<<<<< * b = b - 256 * self._ptr[0].reserved[i] = b */ __pyx_t_6 = PyObject_RichCompare(__pyx_v_b, __pyx_int_127, Py_GT); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8322, __pyx_L1_error) __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 8322, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__pyx_t_7) { } else { __pyx_t_2 = __pyx_t_7; goto __pyx_L14_bool_binop_done; } __pyx_t_6 = PyObject_RichCompare(__pyx_v_b, __pyx_int_256, Py_LT); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8322, __pyx_L1_error) __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 8322, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_2 = __pyx_t_7; __pyx_L14_bool_binop_done:; if (__pyx_t_2) { /* "cuda/cudart.pyx":8323 * for i, b in enumerate(reserved): * if b > 127 and b < 256: * b = b - 256 # <<<<<<<<<<<<<< * self._ptr[0].reserved[i] = b * */ __pyx_t_6 = __Pyx_PyInt_SubtractObjC(__pyx_v_b, __pyx_int_256, 0x100, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8323, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF_SET(__pyx_v_b, __pyx_t_6); __pyx_t_6 = 0; /* "cuda/cudart.pyx":8322 * else: * for i, b in enumerate(reserved): * if b > 127 and b < 256: # <<<<<<<<<<<<<< * b = b - 256 * self._ptr[0].reserved[i] = b */ } /* "cuda/cudart.pyx":8324 * if b > 127 and b < 256: * b = b - 256 * self._ptr[0].reserved[i] = b # <<<<<<<<<<<<<< * * cdef class anon_struct5: */ __pyx_t_8 = __Pyx_PyInt_As_char(__pyx_v_b); if (unlikely((__pyx_t_8 == (char)-1) && PyErr_Occurred())) __PYX_ERR(0, 8324, __pyx_L1_error) __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 8324, __pyx_L1_error) ((__pyx_v_self->_ptr[0]).reserved[__pyx_t_9]) = __pyx_t_8; /* "cuda/cudart.pyx":8321 * self._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_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_L4:; /* "cuda/cudart.pyx":8311 * def reserved(self): * return PyBytes_FromStringAndSize(self._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_6); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(Py_None, 0); __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_6cudart_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_6cudart_22cudaMemFabricHandle_st_10__reduce_cython__, "cudaMemFabricHandle_st.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_22cudaMemFabricHandle_st_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_22cudaMemFabricHandle_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_22cudaMemFabricHandle_st_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_22cudaMemFabricHandle_st_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaMemFabricHandle_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaMemFabricHandle_st_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemFabricHandle_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__162) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaMemFabricHandle_st.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_22cudaMemFabricHandle_st_12__setstate_cython__, "cudaMemFabricHandle_st.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_22cudaMemFabricHandle_st_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_22cudaMemFabricHandle_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_22cudaMemFabricHandle_st_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemFabricHandle_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_22cudaMemFabricHandle_st_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaMemFabricHandle_st *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaMemFabricHandle_st_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaMemFabricHandle_st *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__163) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaMemFabricHandle_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8341 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12anon_struct5_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_12anon_struct5_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 8341, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 8341, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8341, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 8341, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct5.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct5___cinit__(((struct __pyx_obj_4cuda_6cudart_anon_struct5 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12anon_struct5___cinit__(struct __pyx_obj_4cuda_6cudart_anon_struct5 *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 8341, 0, __PYX_ERR(0, 8341, __pyx_L1_error)); /* "cuda/cudart.pyx":8342 * """ * def __cinit__(self, void_ptr _ptr): * self._ptr = _ptr # <<<<<<<<<<<<<< * * def __init__(self, void_ptr _ptr): */ __pyx_v_self->_ptr = ((struct cudaExternalMemoryHandleDesc *)__pyx_v__ptr); /* "cuda/cudart.pyx":8341 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct5.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8344 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12anon_struct5_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_12anon_struct5_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 8344, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 8344, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8344, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 8344, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct5.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct5_2__init__(((struct __pyx_obj_4cuda_6cudart_anon_struct5 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12anon_struct5_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct5 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 8344, 0, __PYX_ERR(0, 8344, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct5.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8346 * def __init__(self, void_ptr _ptr): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_12anon_struct5_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct5_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_anon_struct5 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_12anon_struct5_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct5 *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 8346, 0, __PYX_ERR(0, 8346, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.anon_struct5.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":8348 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].handle.win32 * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct5_6getPtr, "anon_struct5.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_12anon_struct5_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct5_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct5_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct5_6getPtr(((struct __pyx_obj_4cuda_6cudart_anon_struct5 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct5_6getPtr(struct __pyx_obj_4cuda_6cudart_anon_struct5 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__164) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 8348, 0, __PYX_ERR(0, 8348, __pyx_L1_error)); /* "cuda/cudart.pyx":8349 * pass * def getPtr(self): * return &self._ptr[0].handle.win32 # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).handle.win32))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8349, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8348 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].handle.win32 * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct5.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8350 * def getPtr(self): * return &self._ptr[0].handle.win32 * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12anon_struct5_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct5_8__repr__(((struct __pyx_obj_4cuda_6cudart_anon_struct5 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct5_8__repr__(struct __pyx_obj_4cuda_6cudart_anon_struct5 *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 8350, 0, __PYX_ERR(0, 8350, __pyx_L1_error)); /* "cuda/cudart.pyx":8351 * return &self._ptr[0].handle.win32 * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":8352 * def __repr__(self): * if self._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, 8352, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":8353 * if self._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/cudart.pyx":8354 * str_list = [] * try: * str_list += ['handle : ' + hex(self.handle)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['handle : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_handle_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8354, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8354, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_kp_u_handle, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8354, __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, 8354, __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)) __PYX_ERR(0, 8354, __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, 8354, __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/cudart.pyx":8353 * if self._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/cudart.pyx":8355 * try: * str_list += ['handle : ' + hex(self.handle)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['handle : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 8355, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":8356 * str_list += ['handle : ' + hex(self.handle)] * except ValueError: * str_list += ['handle : '] # <<<<<<<<<<<<<< * try: * str_list += ['name : ' + hex(self.name)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8356, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_handle_ValueError); __Pyx_GIVEREF(__pyx_kp_u_handle_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_handle_ValueError)) __PYX_ERR(0, 8356, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8356, __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/cudart.pyx":8353 * if self._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/cudart.pyx":8357 * except ValueError: * str_list += ['handle : '] * 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/cudart.pyx":8358 * str_list += ['handle : '] * try: * str_list += ['name : ' + hex(self.name)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['name : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_name_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8358, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8358, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = PyNumber_Add(__pyx_kp_u_name, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8358, __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, 8358, __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)) __PYX_ERR(0, 8358, __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, 8358, __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/cudart.pyx":8357 * except ValueError: * str_list += ['handle : '] * 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/cudart.pyx":8359 * try: * str_list += ['name : ' + hex(self.name)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['name : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.anon_struct5.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 8359, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":8360 * str_list += ['name : ' + hex(self.name)] * except ValueError: * str_list += ['name : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8360, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_name_ValueError); __Pyx_GIVEREF(__pyx_kp_u_name_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_name_ValueError)) __PYX_ERR(0, 8360, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8360, __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/cudart.pyx":8357 * except ValueError: * str_list += ['handle : '] * 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/cudart.pyx":8361 * except ValueError: * str_list += ['name : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8361, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8351 * return &self._ptr[0].handle.win32 * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":8363 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def handle(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":8350 * def getPtr(self): * return &self._ptr[0].handle.win32 * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8364 * else: * return '' * @property # <<<<<<<<<<<<<< * def handle(self): * return self._ptr[0].handle.win32.handle */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12anon_struct5_6handle_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_12anon_struct5_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_6cudart_12anon_struct5_6handle___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct5 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct5_6handle___get__(struct __pyx_obj_4cuda_6cudart_anon_struct5 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8364, 0, __PYX_ERR(0, 8364, __pyx_L1_error)); /* "cuda/cudart.pyx":8366 * @property * def handle(self): * return self._ptr[0].handle.win32.handle # <<<<<<<<<<<<<< * @handle.setter * def handle(self, handle): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).handle.win32.handle)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8366, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8364 * else: * return '' * @property # <<<<<<<<<<<<<< * def handle(self): * return self._ptr[0].handle.win32.handle */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct5.handle.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8367 * def handle(self): * return self._ptr[0].handle.win32.handle * @handle.setter # <<<<<<<<<<<<<< * def handle(self, handle): * _chandle = utils.HelperInputVoidPtr(handle) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12anon_struct5_6handle_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_handle); /*proto*/ static int __pyx_pw_4cuda_6cudart_12anon_struct5_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_6cudart_12anon_struct5_6handle_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct5 *)__pyx_v_self), ((PyObject *)__pyx_v_handle)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12anon_struct5_6handle_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct5 *__pyx_v_self, PyObject *__pyx_v_handle) { PyObject *__pyx_v__chandle = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 8367, 0, __PYX_ERR(0, 8367, __pyx_L1_error)); /* "cuda/cudart.pyx":8369 * @handle.setter * def handle(self, handle): * _chandle = utils.HelperInputVoidPtr(handle) # <<<<<<<<<<<<<< * self._ptr[0].handle.win32.handle = _chandle.cptr * @property */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_handle); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8369, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__chandle = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":8370 * def handle(self, handle): * _chandle = utils.HelperInputVoidPtr(handle) * self._ptr[0].handle.win32.handle = _chandle.cptr # <<<<<<<<<<<<<< * @property * def name(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v__chandle, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8370, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8370, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).handle.win32.handle = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":8367 * def handle(self): * return self._ptr[0].handle.win32.handle * @handle.setter # <<<<<<<<<<<<<< * def handle(self, handle): * _chandle = utils.HelperInputVoidPtr(handle) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct5.handle.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v__chandle); __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8371 * _chandle = utils.HelperInputVoidPtr(handle) * self._ptr[0].handle.win32.handle = _chandle.cptr * @property # <<<<<<<<<<<<<< * def name(self): * return self._ptr[0].handle.win32.name */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12anon_struct5_4name_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_12anon_struct5_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_6cudart_12anon_struct5_4name___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct5 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct5_4name___get__(struct __pyx_obj_4cuda_6cudart_anon_struct5 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8371, 0, __PYX_ERR(0, 8371, __pyx_L1_error)); /* "cuda/cudart.pyx":8373 * @property * def name(self): * return self._ptr[0].handle.win32.name # <<<<<<<<<<<<<< * @name.setter * def name(self, name): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).handle.win32.name)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8373, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8371 * _chandle = utils.HelperInputVoidPtr(handle) * self._ptr[0].handle.win32.handle = _chandle.cptr * @property # <<<<<<<<<<<<<< * def name(self): * return self._ptr[0].handle.win32.name */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct5.name.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8374 * def name(self): * return self._ptr[0].handle.win32.name * @name.setter # <<<<<<<<<<<<<< * def name(self, name): * _cname = utils.HelperInputVoidPtr(name) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12anon_struct5_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/ static int __pyx_pw_4cuda_6cudart_12anon_struct5_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_6cudart_12anon_struct5_4name_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct5 *)__pyx_v_self), ((PyObject *)__pyx_v_name)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12anon_struct5_4name_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct5 *__pyx_v_self, PyObject *__pyx_v_name) { PyObject *__pyx_v__cname = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 8374, 0, __PYX_ERR(0, 8374, __pyx_L1_error)); /* "cuda/cudart.pyx":8376 * @name.setter * def name(self, name): * _cname = utils.HelperInputVoidPtr(name) # <<<<<<<<<<<<<< * self._ptr[0].handle.win32.name = _cname.cptr * */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8376, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__cname = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":8377 * def name(self, name): * _cname = utils.HelperInputVoidPtr(name) * self._ptr[0].handle.win32.name = _cname.cptr # <<<<<<<<<<<<<< * * cdef class anon_union1: */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v__cname, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8377, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8377, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).handle.win32.name = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":8374 * def name(self): * return self._ptr[0].handle.win32.name * @name.setter # <<<<<<<<<<<<<< * def name(self, name): * _cname = utils.HelperInputVoidPtr(name) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct5.name.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v__cname); __Pyx_TraceReturn(Py_None, 0); __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_6cudart_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_6cudart_12anon_struct5_10__reduce_cython__, "anon_struct5.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_12anon_struct5_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct5_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct5_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct5_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct5 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct5_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct5 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__165) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct5.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_12anon_struct5_12__setstate_cython__, "anon_struct5.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_12anon_struct5_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct5_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct5_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct5.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct5_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct5 *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct5_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct5 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__166) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct5.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8396 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_11anon_union1_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_11anon_union1_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 8396, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 8396, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8396, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 8396, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_union1.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union1___cinit__(((struct __pyx_obj_4cuda_6cudart_anon_union1 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_11anon_union1___cinit__(struct __pyx_obj_4cuda_6cudart_anon_union1 *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 8396, 0, __PYX_ERR(0, 8396, __pyx_L1_error)); /* "cuda/cudart.pyx":8397 * """ * def __cinit__(self, void_ptr _ptr): * self._ptr = _ptr # <<<<<<<<<<<<<< * * def __init__(self, void_ptr _ptr): */ __pyx_v_self->_ptr = ((struct cudaExternalMemoryHandleDesc *)__pyx_v__ptr); /* "cuda/cudart.pyx":8396 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_union1.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8399 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._win32 = anon_struct5(_ptr=self._ptr) * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_11anon_union1_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_11anon_union1_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 8399, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 8399, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8399, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 8399, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_union1.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union1_2__init__(((struct __pyx_obj_4cuda_6cudart_anon_union1 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_11anon_union1_2__init__(struct __pyx_obj_4cuda_6cudart_anon_union1 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 8399, 0, __PYX_ERR(0, 8399, __pyx_L1_error)); /* "cuda/cudart.pyx":8400 * * def __init__(self, void_ptr _ptr): * self._win32 = anon_struct5(_ptr=self._ptr) # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8400, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8400, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 8400, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct5), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8400, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_win32); __Pyx_DECREF((PyObject *)__pyx_v_self->_win32); __pyx_v_self->_win32 = ((struct __pyx_obj_4cuda_6cudart_anon_struct5 *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":8399 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._win32 = anon_struct5(_ptr=self._ptr) * def __dealloc__(self): */ /* 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.cudart.anon_union1.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8401 * def __init__(self, void_ptr _ptr): * self._win32 = anon_struct5(_ptr=self._ptr) * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_11anon_union1_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_11anon_union1_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_anon_union1 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_11anon_union1_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_union1 *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 8401, 0, __PYX_ERR(0, 8401, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.anon_union1.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":8403 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].handle * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_11anon_union1_6getPtr, "anon_union1.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_11anon_union1_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union1_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union1_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union1_6getPtr(((struct __pyx_obj_4cuda_6cudart_anon_union1 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union1_6getPtr(struct __pyx_obj_4cuda_6cudart_anon_union1 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__167) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 8403, 0, __PYX_ERR(0, 8403, __pyx_L1_error)); /* "cuda/cudart.pyx":8404 * pass * def getPtr(self): * return &self._ptr[0].handle # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).handle))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8404, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8403 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].handle * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_union1.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8405 * def getPtr(self): * return &self._ptr[0].handle * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_11anon_union1_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_11anon_union1_8__repr__(((struct __pyx_obj_4cuda_6cudart_anon_union1 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union1_8__repr__(struct __pyx_obj_4cuda_6cudart_anon_union1 *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_9genexpr28__pyx_v_line = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 8405, 0, __PYX_ERR(0, 8405, __pyx_L1_error)); /* "cuda/cudart.pyx":8406 * return &self._ptr[0].handle * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":8407 * def __repr__(self): * if self._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, 8407, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":8408 * if self._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/cudart.pyx":8409 * str_list = [] * try: * str_list += ['fd : ' + str(self.fd)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['fd : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_fd_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8409, __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, 8409, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_fd, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8409, __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, 8409, __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)) __PYX_ERR(0, 8409, __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, 8409, __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/cudart.pyx":8408 * if self._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/cudart.pyx":8410 * try: * str_list += ['fd : ' + str(self.fd)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['fd : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.anon_union1.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 8410, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":8411 * str_list += ['fd : ' + str(self.fd)] * except ValueError: * str_list += ['fd : '] # <<<<<<<<<<<<<< * 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, 8411, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_fd_ValueError); __Pyx_GIVEREF(__pyx_kp_u_fd_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_fd_ValueError)) __PYX_ERR(0, 8411, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8411, __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/cudart.pyx":8408 * if self._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/cudart.pyx":8412 * except ValueError: * str_list += ['fd : '] * 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/cudart.pyx":8413 * str_list += ['fd : '] * try: * str_list += ['win32 :\n' + '\n'.join([' ' + line for line in str(self.win32).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['win32 : '] */ { /* enter inner scope */ __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8413, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_win32_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8413, __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, 8413, __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, 8413, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 8413, __pyx_L20_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_11); __Pyx_INCREF(__pyx_t_6); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 8413, __pyx_L20_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8413, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_9genexpr28__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr28__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8413, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 8413, __pyx_L20_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_9genexpr28__pyx_v_line); __pyx_9genexpr28__pyx_v_line = 0; goto __pyx_L24_exit_scope; __pyx_L20_error:; __Pyx_XDECREF(__pyx_9genexpr28__pyx_v_line); __pyx_9genexpr28__pyx_v_line = 0; goto __pyx_L12_error; __pyx_L24_exit_scope:; } /* exit inner scope */ __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8413, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_win32, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8413, __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, 8413, __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)) __PYX_ERR(0, 8413, __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, 8413, __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/cudart.pyx":8412 * except ValueError: * str_list += ['fd : '] * 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/cudart.pyx":8414 * try: * str_list += ['win32 :\n' + '\n'.join([' ' + line for line in str(self.win32).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['win32 : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.anon_union1.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 8414, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":8415 * str_list += ['win32 :\n' + '\n'.join([' ' + line for line in str(self.win32).splitlines()])] * except ValueError: * str_list += ['win32 : '] # <<<<<<<<<<<<<< * try: * str_list += ['nvSciBufObject : ' + hex(self.nvSciBufObject)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8415, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_win32_ValueError); __Pyx_GIVEREF(__pyx_kp_u_win32_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_win32_ValueError)) __PYX_ERR(0, 8415, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8415, __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/cudart.pyx":8412 * except ValueError: * str_list += ['fd : '] * 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/cudart.pyx":8416 * except ValueError: * str_list += ['win32 : '] * 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/cudart.pyx":8417 * str_list += ['win32 : '] * try: * str_list += ['nvSciBufObject : ' + hex(self.nvSciBufObject)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['nvSciBufObject : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_nvSciBufObject_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8417, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8417, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u_nvSciBufObject, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8417, __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, 8417, __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)) __PYX_ERR(0, 8417, __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, 8417, __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/cudart.pyx":8416 * except ValueError: * str_list += ['win32 : '] * 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/cudart.pyx":8418 * try: * str_list += ['nvSciBufObject : ' + hex(self.nvSciBufObject)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['nvSciBufObject : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.anon_union1.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_8) < 0) __PYX_ERR(0, 8418, __pyx_L29_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":8419 * str_list += ['nvSciBufObject : ' + hex(self.nvSciBufObject)] * except ValueError: * str_list += ['nvSciBufObject : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8419, __pyx_L29_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_nvSciBufObject_ValueError); __Pyx_GIVEREF(__pyx_kp_u_nvSciBufObject_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_nvSciBufObject_ValueError)) __PYX_ERR(0, 8419, __pyx_L29_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8419, __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/cudart.pyx":8416 * except ValueError: * str_list += ['win32 : '] * 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/cudart.pyx":8420 * except ValueError: * str_list += ['nvSciBufObject : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8420, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8406 * return &self._ptr[0].handle * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":8422 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def fd(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":8405 * def getPtr(self): * return &self._ptr[0].handle * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.anon_union1.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XDECREF(__pyx_9genexpr28__pyx_v_line); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8423 * else: * return '' * @property # <<<<<<<<<<<<<< * def fd(self): * return self._ptr[0].handle.fd */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_11anon_union1_2fd_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_11anon_union1_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_6cudart_11anon_union1_2fd___get__(((struct __pyx_obj_4cuda_6cudart_anon_union1 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union1_2fd___get__(struct __pyx_obj_4cuda_6cudart_anon_union1 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8423, 0, __PYX_ERR(0, 8423, __pyx_L1_error)); /* "cuda/cudart.pyx":8425 * @property * def fd(self): * return self._ptr[0].handle.fd # <<<<<<<<<<<<<< * @fd.setter * def fd(self, int fd): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).handle.fd); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8425, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8423 * else: * return '' * @property # <<<<<<<<<<<<<< * def fd(self): * return self._ptr[0].handle.fd */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_union1.fd.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8426 * def fd(self): * return self._ptr[0].handle.fd * @fd.setter # <<<<<<<<<<<<<< * def fd(self, int fd): * self._ptr[0].handle.fd = fd */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_11anon_union1_2fd_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_fd); /*proto*/ static int __pyx_pw_4cuda_6cudart_11anon_union1_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_PyInt_As_int(__pyx_arg_fd); if (unlikely((__pyx_v_fd == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8427, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.anon_union1.fd.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union1_2fd_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_union1 *)__pyx_v_self), ((int)__pyx_v_fd)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_11anon_union1_2fd_2__set__(struct __pyx_obj_4cuda_6cudart_anon_union1 *__pyx_v_self, int __pyx_v_fd) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8426, 0, __PYX_ERR(0, 8426, __pyx_L1_error)); /* "cuda/cudart.pyx":8428 * @fd.setter * def fd(self, int fd): * self._ptr[0].handle.fd = fd # <<<<<<<<<<<<<< * @property * def win32(self): */ (__pyx_v_self->_ptr[0]).handle.fd = __pyx_v_fd; /* "cuda/cudart.pyx":8426 * def fd(self): * return self._ptr[0].handle.fd * @fd.setter # <<<<<<<<<<<<<< * def fd(self, int fd): * self._ptr[0].handle.fd = fd */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_union1.fd.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8429 * def fd(self, int fd): * self._ptr[0].handle.fd = fd * @property # <<<<<<<<<<<<<< * def win32(self): * return self._win32 */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_11anon_union1_5win32_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_11anon_union1_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_6cudart_11anon_union1_5win32___get__(((struct __pyx_obj_4cuda_6cudart_anon_union1 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union1_5win32___get__(struct __pyx_obj_4cuda_6cudart_anon_union1 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8429, 0, __PYX_ERR(0, 8429, __pyx_L1_error)); /* "cuda/cudart.pyx":8431 * @property * def win32(self): * return self._win32 # <<<<<<<<<<<<<< * @win32.setter * def win32(self, win32 not None : anon_struct5): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_self->_win32); __pyx_r = ((PyObject *)__pyx_v_self->_win32); goto __pyx_L0; /* "cuda/cudart.pyx":8429 * def fd(self, int fd): * self._ptr[0].handle.fd = fd * @property # <<<<<<<<<<<<<< * def win32(self): * return self._win32 */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_union1.win32.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8432 * def win32(self): * return self._win32 * @win32.setter # <<<<<<<<<<<<<< * def win32(self, win32 not None : anon_struct5): * string.memcpy(&self._ptr[0].handle.win32, win32.getPtr(), sizeof(self._ptr[0].handle.win32)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_11anon_union1_5win32_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_win32); /*proto*/ static int __pyx_pw_4cuda_6cudart_11anon_union1_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_ptype_4cuda_6cudart_anon_struct5, 0, "win32", 0))) __PYX_ERR(0, 8433, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union1_5win32_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_union1 *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_anon_struct5 *)__pyx_v_win32)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_11anon_union1_5win32_2__set__(struct __pyx_obj_4cuda_6cudart_anon_union1 *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_anon_struct5 *__pyx_v_win32) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 8432, 0, __PYX_ERR(0, 8432, __pyx_L1_error)); /* "cuda/cudart.pyx":8434 * @win32.setter * def win32(self, win32 not None : anon_struct5): * string.memcpy(&self._ptr[0].handle.win32, win32.getPtr(), sizeof(self._ptr[0].handle.win32)) # <<<<<<<<<<<<<< * @property * def nvSciBufObject(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_win32), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8434, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8434, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8434, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).handle.win32), ((struct anon_struct5 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).handle.win32)))); /* "cuda/cudart.pyx":8432 * def win32(self): * return self._win32 * @win32.setter # <<<<<<<<<<<<<< * def win32(self, win32 not None : anon_struct5): * string.memcpy(&self._ptr[0].handle.win32, win32.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.anon_union1.win32.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8435 * def win32(self, win32 not None : anon_struct5): * string.memcpy(&self._ptr[0].handle.win32, win32.getPtr(), sizeof(self._ptr[0].handle.win32)) * @property # <<<<<<<<<<<<<< * def nvSciBufObject(self): * return self._ptr[0].handle.nvSciBufObject */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_11anon_union1_14nvSciBufObject_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_11anon_union1_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_6cudart_11anon_union1_14nvSciBufObject___get__(((struct __pyx_obj_4cuda_6cudart_anon_union1 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union1_14nvSciBufObject___get__(struct __pyx_obj_4cuda_6cudart_anon_union1 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8435, 0, __PYX_ERR(0, 8435, __pyx_L1_error)); /* "cuda/cudart.pyx":8437 * @property * def nvSciBufObject(self): * return self._ptr[0].handle.nvSciBufObject # <<<<<<<<<<<<<< * @nvSciBufObject.setter * def nvSciBufObject(self, nvSciBufObject): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).handle.nvSciBufObject)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8437, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8435 * def win32(self, win32 not None : anon_struct5): * string.memcpy(&self._ptr[0].handle.win32, win32.getPtr(), sizeof(self._ptr[0].handle.win32)) * @property # <<<<<<<<<<<<<< * def nvSciBufObject(self): * return self._ptr[0].handle.nvSciBufObject */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_union1.nvSciBufObject.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8438 * def nvSciBufObject(self): * return self._ptr[0].handle.nvSciBufObject * @nvSciBufObject.setter # <<<<<<<<<<<<<< * def nvSciBufObject(self, nvSciBufObject): * _cnvSciBufObject = utils.HelperInputVoidPtr(nvSciBufObject) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_11anon_union1_14nvSciBufObject_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_nvSciBufObject); /*proto*/ static int __pyx_pw_4cuda_6cudart_11anon_union1_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_6cudart_11anon_union1_14nvSciBufObject_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_union1 *)__pyx_v_self), ((PyObject *)__pyx_v_nvSciBufObject)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_11anon_union1_14nvSciBufObject_2__set__(struct __pyx_obj_4cuda_6cudart_anon_union1 *__pyx_v_self, PyObject *__pyx_v_nvSciBufObject) { PyObject *__pyx_v__cnvSciBufObject = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 8438, 0, __PYX_ERR(0, 8438, __pyx_L1_error)); /* "cuda/cudart.pyx":8440 * @nvSciBufObject.setter * def nvSciBufObject(self, nvSciBufObject): * _cnvSciBufObject = utils.HelperInputVoidPtr(nvSciBufObject) # <<<<<<<<<<<<<< * self._ptr[0].handle.nvSciBufObject = _cnvSciBufObject.cptr * */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_nvSciBufObject); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8440, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__cnvSciBufObject = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":8441 * def nvSciBufObject(self, nvSciBufObject): * _cnvSciBufObject = utils.HelperInputVoidPtr(nvSciBufObject) * self._ptr[0].handle.nvSciBufObject = _cnvSciBufObject.cptr # <<<<<<<<<<<<<< * * cdef class cudaExternalMemoryHandleDesc: */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v__cnvSciBufObject, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8441, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8441, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).handle.nvSciBufObject = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":8438 * def nvSciBufObject(self): * return self._ptr[0].handle.nvSciBufObject * @nvSciBufObject.setter # <<<<<<<<<<<<<< * def nvSciBufObject(self, nvSciBufObject): * _cnvSciBufObject = utils.HelperInputVoidPtr(nvSciBufObject) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_union1.nvSciBufObject.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v__cnvSciBufObject); __Pyx_TraceReturn(Py_None, 0); __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_6cudart_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_6cudart_11anon_union1_10__reduce_cython__, "anon_union1.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_11anon_union1_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union1_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union1_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union1_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_anon_union1 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union1_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_union1 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__168) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_union1.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_11anon_union1_12__setstate_cython__, "anon_union1.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_11anon_union1_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union1_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union1_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_union1.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union1_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_anon_union1 *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union1_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_union1 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__169) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_union1.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8464 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._val_ptr = calloc(1, sizeof(ccudart.cudaExternalMemoryHandleDesc)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_28cudaExternalMemoryHandleDesc_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_28cudaExternalMemoryHandleDesc_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 8464, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 8464, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8464, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 8464, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryHandleDesc.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_28cudaExternalMemoryHandleDesc___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_28cudaExternalMemoryHandleDesc___cinit__(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; struct cudaExternalMemoryHandleDesc *__pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 8464, 0, __PYX_ERR(0, 8464, __pyx_L1_error)); /* "cuda/cudart.pyx":8465 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._val_ptr = calloc(1, sizeof(ccudart.cudaExternalMemoryHandleDesc)) * self._ptr = self._val_ptr */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":8466 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._val_ptr = calloc(1, sizeof(ccudart.cudaExternalMemoryHandleDesc)) # <<<<<<<<<<<<<< * self._ptr = self._val_ptr * else: */ __pyx_v_self->_val_ptr = ((struct cudaExternalMemoryHandleDesc *)calloc(1, (sizeof(struct cudaExternalMemoryHandleDesc)))); /* "cuda/cudart.pyx":8467 * if _ptr == 0: * self._val_ptr = calloc(1, sizeof(ccudart.cudaExternalMemoryHandleDesc)) * self._ptr = self._val_ptr # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_t_2 = __pyx_v_self->_val_ptr; __pyx_v_self->_ptr = __pyx_t_2; /* "cuda/cudart.pyx":8465 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._val_ptr = calloc(1, sizeof(ccudart.cudaExternalMemoryHandleDesc)) * self._ptr = self._val_ptr */ goto __pyx_L3; } /* "cuda/cudart.pyx":8469 * self._ptr = self._val_ptr * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * self._handle = anon_union1(_ptr=self._ptr) */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaExternalMemoryHandleDesc *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":8464 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._val_ptr = calloc(1, sizeof(ccudart.cudaExternalMemoryHandleDesc)) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryHandleDesc.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8470 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._handle = anon_union1(_ptr=self._ptr) * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_28cudaExternalMemoryHandleDesc_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_28cudaExternalMemoryHandleDesc_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 8470, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 8470, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8470, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 8470, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryHandleDesc.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_28cudaExternalMemoryHandleDesc_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_28cudaExternalMemoryHandleDesc_2__init__(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 8470, 0, __PYX_ERR(0, 8470, __pyx_L1_error)); /* "cuda/cudart.pyx":8471 * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): * self._handle = anon_union1(_ptr=self._ptr) # <<<<<<<<<<<<<< * def __dealloc__(self): * if self._val_ptr is not NULL: */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8471, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8471, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 8471, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_anon_union1), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8471, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_handle); __Pyx_DECREF((PyObject *)__pyx_v_self->_handle); __pyx_v_self->_handle = ((struct __pyx_obj_4cuda_6cudart_anon_union1 *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":8470 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._handle = anon_union1(_ptr=self._ptr) * def __dealloc__(self): */ /* 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.cudart.cudaExternalMemoryHandleDesc.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8472 * def __init__(self, void_ptr _ptr = 0): * self._handle = anon_union1(_ptr=self._ptr) * def __dealloc__(self): # <<<<<<<<<<<<<< * if self._val_ptr is not NULL: * free(self._val_ptr) */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_28cudaExternalMemoryHandleDesc_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_28cudaExternalMemoryHandleDesc_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_28cudaExternalMemoryHandleDesc_4__dealloc__(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 8472, 0, __PYX_ERR(0, 8472, __pyx_L1_error)); /* "cuda/cudart.pyx":8473 * self._handle = anon_union1(_ptr=self._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/cudart.pyx":8474 * def __dealloc__(self): * if self._val_ptr is not NULL: * free(self._val_ptr) # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ free(__pyx_v_self->_val_ptr); /* "cuda/cudart.pyx":8473 * self._handle = anon_union1(_ptr=self._ptr) * def __dealloc__(self): * if self._val_ptr is not NULL: # <<<<<<<<<<<<<< * free(self._val_ptr) * def getPtr(self): */ } /* "cuda/cudart.pyx":8472 * def __init__(self, void_ptr _ptr = 0): * self._handle = anon_union1(_ptr=self._ptr) * def __dealloc__(self): # <<<<<<<<<<<<<< * if self._val_ptr is not NULL: * free(self._val_ptr) */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaExternalMemoryHandleDesc.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":8475 * if self._val_ptr is not NULL: * free(self._val_ptr) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_28cudaExternalMemoryHandleDesc_6getPtr, "cudaExternalMemoryHandleDesc.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_28cudaExternalMemoryHandleDesc_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_28cudaExternalMemoryHandleDesc_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_28cudaExternalMemoryHandleDesc_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_28cudaExternalMemoryHandleDesc_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_28cudaExternalMemoryHandleDesc_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__170) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 8475, 0, __PYX_ERR(0, 8475, __pyx_L1_error)); /* "cuda/cudart.pyx":8476 * free(self._val_ptr) * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8476, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8475 * if self._val_ptr is not NULL: * free(self._val_ptr) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryHandleDesc.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8477 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_28cudaExternalMemoryHandleDesc_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_28cudaExternalMemoryHandleDesc_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_28cudaExternalMemoryHandleDesc_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_9genexpr29__pyx_v_line = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 8477, 0, __PYX_ERR(0, 8477, __pyx_L1_error)); /* "cuda/cudart.pyx":8478 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":8479 * def __repr__(self): * if self._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, 8479, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":8480 * if self._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/cudart.pyx":8481 * str_list = [] * try: * str_list += ['type : ' + str(self.type)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['type : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_type_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8481, __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, 8481, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_type, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8481, __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, 8481, __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)) __PYX_ERR(0, 8481, __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, 8481, __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/cudart.pyx":8480 * if self._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/cudart.pyx":8482 * try: * str_list += ['type : ' + str(self.type)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['type : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryHandleDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 8482, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":8483 * str_list += ['type : ' + str(self.type)] * except ValueError: * str_list += ['type : '] # <<<<<<<<<<<<<< * 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, 8483, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_type_ValueError); __Pyx_GIVEREF(__pyx_kp_u_type_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_type_ValueError)) __PYX_ERR(0, 8483, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8483, __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/cudart.pyx":8480 * if self._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/cudart.pyx":8484 * except ValueError: * str_list += ['type : '] * 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/cudart.pyx":8485 * str_list += ['type : '] * try: * str_list += ['handle :\n' + '\n'.join([' ' + line for line in str(self.handle).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['handle : '] */ { /* enter inner scope */ __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8485, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_handle_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8485, __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, 8485, __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, 8485, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 8485, __pyx_L20_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_11); __Pyx_INCREF(__pyx_t_6); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 8485, __pyx_L20_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8485, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_9genexpr29__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr29__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8485, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 8485, __pyx_L20_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_9genexpr29__pyx_v_line); __pyx_9genexpr29__pyx_v_line = 0; goto __pyx_L24_exit_scope; __pyx_L20_error:; __Pyx_XDECREF(__pyx_9genexpr29__pyx_v_line); __pyx_9genexpr29__pyx_v_line = 0; goto __pyx_L12_error; __pyx_L24_exit_scope:; } /* exit inner scope */ __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8485, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_handle_3, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8485, __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, 8485, __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)) __PYX_ERR(0, 8485, __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, 8485, __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/cudart.pyx":8484 * except ValueError: * str_list += ['type : '] * 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/cudart.pyx":8486 * try: * str_list += ['handle :\n' + '\n'.join([' ' + line for line in str(self.handle).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['handle : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryHandleDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 8486, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":8487 * str_list += ['handle :\n' + '\n'.join([' ' + line for line in str(self.handle).splitlines()])] * except ValueError: * str_list += ['handle : '] # <<<<<<<<<<<<<< * try: * str_list += ['size : ' + str(self.size)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8487, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_handle_ValueError); __Pyx_GIVEREF(__pyx_kp_u_handle_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_handle_ValueError)) __PYX_ERR(0, 8487, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8487, __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/cudart.pyx":8484 * except ValueError: * str_list += ['type : '] * 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/cudart.pyx":8488 * except ValueError: * str_list += ['handle : '] * 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/cudart.pyx":8489 * str_list += ['handle : '] * try: * str_list += ['size : ' + str(self.size)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['size : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_size_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8489, __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, 8489, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_size, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8489, __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, 8489, __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)) __PYX_ERR(0, 8489, __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, 8489, __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/cudart.pyx":8488 * except ValueError: * str_list += ['handle : '] * 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/cudart.pyx":8490 * try: * str_list += ['size : ' + str(self.size)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['size : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryHandleDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_8) < 0) __PYX_ERR(0, 8490, __pyx_L29_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":8491 * str_list += ['size : ' + str(self.size)] * except ValueError: * str_list += ['size : '] # <<<<<<<<<<<<<< * try: * str_list += ['flags : ' + str(self.flags)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8491, __pyx_L29_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_size_ValueError); __Pyx_GIVEREF(__pyx_kp_u_size_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_size_ValueError)) __PYX_ERR(0, 8491, __pyx_L29_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8491, __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/cudart.pyx":8488 * except ValueError: * str_list += ['handle : '] * 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/cudart.pyx":8492 * except ValueError: * str_list += ['size : '] * 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/cudart.pyx":8493 * str_list += ['size : '] * try: * str_list += ['flags : ' + str(self.flags)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['flags : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_flags_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8493, __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, 8493, __pyx_L35_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_flags, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8493, __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, 8493, __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)) __PYX_ERR(0, 8493, __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, 8493, __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/cudart.pyx":8492 * except ValueError: * str_list += ['size : '] * 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/cudart.pyx":8494 * try: * str_list += ['flags : ' + str(self.flags)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['flags : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryHandleDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 8494, __pyx_L37_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":8495 * str_list += ['flags : ' + str(self.flags)] * except ValueError: * str_list += ['flags : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8495, __pyx_L37_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_flags_ValueError); __Pyx_GIVEREF(__pyx_kp_u_flags_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_flags_ValueError)) __PYX_ERR(0, 8495, __pyx_L37_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8495, __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/cudart.pyx":8492 * except ValueError: * str_list += ['size : '] * 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/cudart.pyx":8496 * except ValueError: * str_list += ['flags : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_6 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8496, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8478 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":8498 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def type(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":8477 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaExternalMemoryHandleDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XDECREF(__pyx_9genexpr29__pyx_v_line); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8499 * else: * return '' * @property # <<<<<<<<<<<<<< * def type(self): * return cudaExternalMemoryHandleType(self._ptr[0].type) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_28cudaExternalMemoryHandleDesc_4type_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_28cudaExternalMemoryHandleDesc_4type___get__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_28cudaExternalMemoryHandleDesc_4type___get__(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8499, 0, __PYX_ERR(0, 8499, __pyx_L1_error)); /* "cuda/cudart.pyx":8501 * @property * def type(self): * return cudaExternalMemoryHandleType(self._ptr[0].type) # <<<<<<<<<<<<<< * @type.setter * def type(self, type not None : cudaExternalMemoryHandleType): */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaExternalMemoryHandleType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8501, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaExternalMemoryHandleType((__pyx_v_self->_ptr[0]).type); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8501, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8501, __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/cudart.pyx":8499 * else: * return '' * @property # <<<<<<<<<<<<<< * def type(self): * return cudaExternalMemoryHandleType(self._ptr[0].type) */ /* 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.cudart.cudaExternalMemoryHandleDesc.type.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8502 * def type(self): * return cudaExternalMemoryHandleType(self._ptr[0].type) * @type.setter # <<<<<<<<<<<<<< * def type(self, type not None : cudaExternalMemoryHandleType): * self._ptr[0].type = type.value */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_28cudaExternalMemoryHandleDesc_4type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_type); /*proto*/ static int __pyx_pw_4cuda_6cudart_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, 8503, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_28cudaExternalMemoryHandleDesc_4type_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *)__pyx_v_self), ((PyObject *)__pyx_v_type)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_28cudaExternalMemoryHandleDesc_4type_2__set__(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *__pyx_v_self, PyObject *__pyx_v_type) { int __pyx_r; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 8502, 0, __PYX_ERR(0, 8502, __pyx_L1_error)); /* "cuda/cudart.pyx":8504 * @type.setter * def type(self, type not None : cudaExternalMemoryHandleType): * self._ptr[0].type = type.value # <<<<<<<<<<<<<< * @property * def handle(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_type, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8504, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaExternalMemoryHandleType)__Pyx_PyInt_As_enum__cudaExternalMemoryHandleType(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 8504, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).type = __pyx_t_2; /* "cuda/cudart.pyx":8502 * def type(self): * return cudaExternalMemoryHandleType(self._ptr[0].type) * @type.setter # <<<<<<<<<<<<<< * def type(self, type not None : cudaExternalMemoryHandleType): * self._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.cudart.cudaExternalMemoryHandleDesc.type.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8505 * def type(self, type not None : cudaExternalMemoryHandleType): * self._ptr[0].type = type.value * @property # <<<<<<<<<<<<<< * def handle(self): * return self._handle */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_28cudaExternalMemoryHandleDesc_6handle_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_28cudaExternalMemoryHandleDesc_6handle___get__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_28cudaExternalMemoryHandleDesc_6handle___get__(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8505, 0, __PYX_ERR(0, 8505, __pyx_L1_error)); /* "cuda/cudart.pyx":8507 * @property * def handle(self): * return self._handle # <<<<<<<<<<<<<< * @handle.setter * def handle(self, handle not None : anon_union1): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_self->_handle); __pyx_r = ((PyObject *)__pyx_v_self->_handle); goto __pyx_L0; /* "cuda/cudart.pyx":8505 * def type(self, type not None : cudaExternalMemoryHandleType): * self._ptr[0].type = type.value * @property # <<<<<<<<<<<<<< * def handle(self): * return self._handle */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryHandleDesc.handle.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8508 * def handle(self): * return self._handle * @handle.setter # <<<<<<<<<<<<<< * def handle(self, handle not None : anon_union1): * string.memcpy(&self._ptr[0].handle, handle.getPtr(), sizeof(self._ptr[0].handle)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_28cudaExternalMemoryHandleDesc_6handle_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_handle); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_anon_union1, 0, "handle", 0))) __PYX_ERR(0, 8509, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_28cudaExternalMemoryHandleDesc_6handle_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_anon_union1 *)__pyx_v_handle)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_28cudaExternalMemoryHandleDesc_6handle_2__set__(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_anon_union1 *__pyx_v_handle) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 8508, 0, __PYX_ERR(0, 8508, __pyx_L1_error)); /* "cuda/cudart.pyx":8510 * @handle.setter * def handle(self, handle not None : anon_union1): * string.memcpy(&self._ptr[0].handle, handle.getPtr(), sizeof(self._ptr[0].handle)) # <<<<<<<<<<<<<< * @property * def size(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_handle), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8510, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8510, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8510, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).handle), ((union anon_union1 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).handle)))); /* "cuda/cudart.pyx":8508 * def handle(self): * return self._handle * @handle.setter # <<<<<<<<<<<<<< * def handle(self, handle not None : anon_union1): * string.memcpy(&self._ptr[0].handle, handle.getPtr(), sizeof(self._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_AddTraceback("cuda.cudart.cudaExternalMemoryHandleDesc.handle.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8511 * def handle(self, handle not None : anon_union1): * string.memcpy(&self._ptr[0].handle, handle.getPtr(), sizeof(self._ptr[0].handle)) * @property # <<<<<<<<<<<<<< * def size(self): * return self._ptr[0].size */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_28cudaExternalMemoryHandleDesc_4size_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_28cudaExternalMemoryHandleDesc_4size___get__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_28cudaExternalMemoryHandleDesc_4size___get__(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8511, 0, __PYX_ERR(0, 8511, __pyx_L1_error)); /* "cuda/cudart.pyx":8513 * @property * def size(self): * return self._ptr[0].size # <<<<<<<<<<<<<< * @size.setter * def size(self, unsigned long long size): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG((__pyx_v_self->_ptr[0]).size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8513, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8511 * def handle(self, handle not None : anon_union1): * string.memcpy(&self._ptr[0].handle, handle.getPtr(), sizeof(self._ptr[0].handle)) * @property # <<<<<<<<<<<<<< * def size(self): * return self._ptr[0].size */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryHandleDesc.size.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8514 * def size(self): * return self._ptr[0].size * @size.setter # <<<<<<<<<<<<<< * def size(self, unsigned long long size): * self._ptr[0].size = size */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_28cudaExternalMemoryHandleDesc_4size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_size); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_PY_LONG_LONG(__pyx_arg_size); if (unlikely((__pyx_v_size == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8515, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryHandleDesc.size.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_28cudaExternalMemoryHandleDesc_4size_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *)__pyx_v_self), ((unsigned PY_LONG_LONG)__pyx_v_size)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_28cudaExternalMemoryHandleDesc_4size_2__set__(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_size) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8514, 0, __PYX_ERR(0, 8514, __pyx_L1_error)); /* "cuda/cudart.pyx":8516 * @size.setter * def size(self, unsigned long long size): * self._ptr[0].size = size # <<<<<<<<<<<<<< * @property * def flags(self): */ (__pyx_v_self->_ptr[0]).size = __pyx_v_size; /* "cuda/cudart.pyx":8514 * def size(self): * return self._ptr[0].size * @size.setter # <<<<<<<<<<<<<< * def size(self, unsigned long long size): * self._ptr[0].size = size */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryHandleDesc.size.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8517 * def size(self, unsigned long long size): * self._ptr[0].size = size * @property # <<<<<<<<<<<<<< * def flags(self): * return self._ptr[0].flags */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_28cudaExternalMemoryHandleDesc_5flags_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_28cudaExternalMemoryHandleDesc_5flags___get__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_28cudaExternalMemoryHandleDesc_5flags___get__(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8517, 0, __PYX_ERR(0, 8517, __pyx_L1_error)); /* "cuda/cudart.pyx":8519 * @property * def flags(self): * return self._ptr[0].flags # <<<<<<<<<<<<<< * @flags.setter * def flags(self, unsigned int flags): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).flags); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8519, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8517 * def size(self, unsigned long long size): * self._ptr[0].size = size * @property # <<<<<<<<<<<<<< * def flags(self): * return self._ptr[0].flags */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryHandleDesc.flags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8520 * def flags(self): * return self._ptr[0].flags * @flags.setter # <<<<<<<<<<<<<< * def flags(self, unsigned int flags): * self._ptr[0].flags = flags */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_28cudaExternalMemoryHandleDesc_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_flags); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8521, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryHandleDesc.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_28cudaExternalMemoryHandleDesc_5flags_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *)__pyx_v_self), ((unsigned int)__pyx_v_flags)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_28cudaExternalMemoryHandleDesc_5flags_2__set__(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *__pyx_v_self, unsigned int __pyx_v_flags) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8520, 0, __PYX_ERR(0, 8520, __pyx_L1_error)); /* "cuda/cudart.pyx":8522 * @flags.setter * def flags(self, unsigned int flags): * self._ptr[0].flags = flags # <<<<<<<<<<<<<< * * cdef class cudaExternalMemoryBufferDesc: */ (__pyx_v_self->_ptr[0]).flags = __pyx_v_flags; /* "cuda/cudart.pyx":8520 * def flags(self): * return self._ptr[0].flags * @flags.setter # <<<<<<<<<<<<<< * def flags(self, unsigned int flags): * self._ptr[0].flags = flags */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryHandleDesc.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_28cudaExternalMemoryHandleDesc_10__reduce_cython__, "cudaExternalMemoryHandleDesc.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_28cudaExternalMemoryHandleDesc_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_28cudaExternalMemoryHandleDesc_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_28cudaExternalMemoryHandleDesc_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_28cudaExternalMemoryHandleDesc_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_28cudaExternalMemoryHandleDesc_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__171) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaExternalMemoryHandleDesc.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_28cudaExternalMemoryHandleDesc_12__setstate_cython__, "cudaExternalMemoryHandleDesc.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_28cudaExternalMemoryHandleDesc_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_28cudaExternalMemoryHandleDesc_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_28cudaExternalMemoryHandleDesc_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryHandleDesc.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_28cudaExternalMemoryHandleDesc_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_28cudaExternalMemoryHandleDesc_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__172) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaExternalMemoryHandleDesc.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8543 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_28cudaExternalMemoryBufferDesc_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_28cudaExternalMemoryBufferDesc_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 8543, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 8543, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8543, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 8543, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryBufferDesc.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_28cudaExternalMemoryBufferDesc___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryBufferDesc *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_28cudaExternalMemoryBufferDesc___cinit__(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryBufferDesc *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 8543, 0, __PYX_ERR(0, 8543, __pyx_L1_error)); /* "cuda/cudart.pyx":8544 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":8545 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaExternalMemoryBufferDesc__val); /* "cuda/cudart.pyx":8544 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":8547 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * pass */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaExternalMemoryBufferDesc *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":8543 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryBufferDesc.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8548 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_28cudaExternalMemoryBufferDesc_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_28cudaExternalMemoryBufferDesc_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 8548, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 8548, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8548, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 8548, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryBufferDesc.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_28cudaExternalMemoryBufferDesc_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryBufferDesc *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_28cudaExternalMemoryBufferDesc_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryBufferDesc *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 8548, 0, __PYX_ERR(0, 8548, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryBufferDesc.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8550 * def __init__(self, void_ptr _ptr = 0): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_28cudaExternalMemoryBufferDesc_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_28cudaExternalMemoryBufferDesc_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryBufferDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_28cudaExternalMemoryBufferDesc_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryBufferDesc *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 8550, 0, __PYX_ERR(0, 8550, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaExternalMemoryBufferDesc.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":8552 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_28cudaExternalMemoryBufferDesc_6getPtr, "cudaExternalMemoryBufferDesc.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_28cudaExternalMemoryBufferDesc_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_28cudaExternalMemoryBufferDesc_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_28cudaExternalMemoryBufferDesc_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_28cudaExternalMemoryBufferDesc_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryBufferDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_28cudaExternalMemoryBufferDesc_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryBufferDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__173) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 8552, 0, __PYX_ERR(0, 8552, __pyx_L1_error)); /* "cuda/cudart.pyx":8553 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8553, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8552 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryBufferDesc.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8554 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_28cudaExternalMemoryBufferDesc_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_28cudaExternalMemoryBufferDesc_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryBufferDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_28cudaExternalMemoryBufferDesc_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryBufferDesc *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 8554, 0, __PYX_ERR(0, 8554, __pyx_L1_error)); /* "cuda/cudart.pyx":8555 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":8556 * def __repr__(self): * if self._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, 8556, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":8557 * if self._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/cudart.pyx":8558 * str_list = [] * try: * str_list += ['offset : ' + str(self.offset)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['offset : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_offset_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8558, __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, 8558, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_offset, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8558, __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, 8558, __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)) __PYX_ERR(0, 8558, __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, 8558, __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/cudart.pyx":8557 * if self._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/cudart.pyx":8559 * try: * str_list += ['offset : ' + str(self.offset)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['offset : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryBufferDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 8559, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":8560 * str_list += ['offset : ' + str(self.offset)] * except ValueError: * str_list += ['offset : '] # <<<<<<<<<<<<<< * try: * str_list += ['size : ' + str(self.size)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8560, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_offset_ValueError); __Pyx_GIVEREF(__pyx_kp_u_offset_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_offset_ValueError)) __PYX_ERR(0, 8560, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8560, __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/cudart.pyx":8557 * if self._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/cudart.pyx":8561 * except ValueError: * str_list += ['offset : '] * 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/cudart.pyx":8562 * str_list += ['offset : '] * try: * str_list += ['size : ' + str(self.size)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['size : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_size_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8562, __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, 8562, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_size, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8562, __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, 8562, __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)) __PYX_ERR(0, 8562, __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, 8562, __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/cudart.pyx":8561 * except ValueError: * str_list += ['offset : '] * 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/cudart.pyx":8563 * try: * str_list += ['size : ' + str(self.size)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['size : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryBufferDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 8563, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":8564 * str_list += ['size : ' + str(self.size)] * except ValueError: * str_list += ['size : '] # <<<<<<<<<<<<<< * try: * str_list += ['flags : ' + str(self.flags)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8564, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_size_ValueError); __Pyx_GIVEREF(__pyx_kp_u_size_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_size_ValueError)) __PYX_ERR(0, 8564, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8564, __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/cudart.pyx":8561 * except ValueError: * str_list += ['offset : '] * 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/cudart.pyx":8565 * except ValueError: * str_list += ['size : '] * 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/cudart.pyx":8566 * str_list += ['size : '] * try: * str_list += ['flags : ' + str(self.flags)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['flags : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_flags_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8566, __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, 8566, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_flags, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8566, __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, 8566, __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)) __PYX_ERR(0, 8566, __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, 8566, __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/cudart.pyx":8565 * except ValueError: * str_list += ['size : '] * 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/cudart.pyx":8567 * try: * str_list += ['flags : ' + str(self.flags)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['flags : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryBufferDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 8567, __pyx_L22_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":8568 * str_list += ['flags : ' + str(self.flags)] * except ValueError: * str_list += ['flags : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8568, __pyx_L22_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_flags_ValueError); __Pyx_GIVEREF(__pyx_kp_u_flags_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_flags_ValueError)) __PYX_ERR(0, 8568, __pyx_L22_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8568, __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/cudart.pyx":8565 * except ValueError: * str_list += ['size : '] * 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/cudart.pyx":8569 * except ValueError: * str_list += ['flags : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8569, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8555 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":8571 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def offset(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":8554 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaExternalMemoryBufferDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8572 * else: * return '' * @property # <<<<<<<<<<<<<< * def offset(self): * return self._ptr[0].offset */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_28cudaExternalMemoryBufferDesc_6offset_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_28cudaExternalMemoryBufferDesc_6offset___get__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryBufferDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_28cudaExternalMemoryBufferDesc_6offset___get__(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryBufferDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8572, 0, __PYX_ERR(0, 8572, __pyx_L1_error)); /* "cuda/cudart.pyx":8574 * @property * def offset(self): * return self._ptr[0].offset # <<<<<<<<<<<<<< * @offset.setter * def offset(self, unsigned long long offset): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG((__pyx_v_self->_ptr[0]).offset); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8574, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8572 * else: * return '' * @property # <<<<<<<<<<<<<< * def offset(self): * return self._ptr[0].offset */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryBufferDesc.offset.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8575 * def offset(self): * return self._ptr[0].offset * @offset.setter # <<<<<<<<<<<<<< * def offset(self, unsigned long long offset): * self._ptr[0].offset = offset */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_28cudaExternalMemoryBufferDesc_6offset_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_offset); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_PY_LONG_LONG(__pyx_arg_offset); if (unlikely((__pyx_v_offset == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8576, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryBufferDesc.offset.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_28cudaExternalMemoryBufferDesc_6offset_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryBufferDesc *)__pyx_v_self), ((unsigned PY_LONG_LONG)__pyx_v_offset)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_28cudaExternalMemoryBufferDesc_6offset_2__set__(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryBufferDesc *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_offset) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8575, 0, __PYX_ERR(0, 8575, __pyx_L1_error)); /* "cuda/cudart.pyx":8577 * @offset.setter * def offset(self, unsigned long long offset): * self._ptr[0].offset = offset # <<<<<<<<<<<<<< * @property * def size(self): */ (__pyx_v_self->_ptr[0]).offset = __pyx_v_offset; /* "cuda/cudart.pyx":8575 * def offset(self): * return self._ptr[0].offset * @offset.setter # <<<<<<<<<<<<<< * def offset(self, unsigned long long offset): * self._ptr[0].offset = offset */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryBufferDesc.offset.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8578 * def offset(self, unsigned long long offset): * self._ptr[0].offset = offset * @property # <<<<<<<<<<<<<< * def size(self): * return self._ptr[0].size */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_28cudaExternalMemoryBufferDesc_4size_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_28cudaExternalMemoryBufferDesc_4size___get__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryBufferDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_28cudaExternalMemoryBufferDesc_4size___get__(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryBufferDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8578, 0, __PYX_ERR(0, 8578, __pyx_L1_error)); /* "cuda/cudart.pyx":8580 * @property * def size(self): * return self._ptr[0].size # <<<<<<<<<<<<<< * @size.setter * def size(self, unsigned long long size): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG((__pyx_v_self->_ptr[0]).size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8580, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8578 * def offset(self, unsigned long long offset): * self._ptr[0].offset = offset * @property # <<<<<<<<<<<<<< * def size(self): * return self._ptr[0].size */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryBufferDesc.size.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8581 * def size(self): * return self._ptr[0].size * @size.setter # <<<<<<<<<<<<<< * def size(self, unsigned long long size): * self._ptr[0].size = size */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_28cudaExternalMemoryBufferDesc_4size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_size); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_PY_LONG_LONG(__pyx_arg_size); if (unlikely((__pyx_v_size == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8582, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryBufferDesc.size.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_28cudaExternalMemoryBufferDesc_4size_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryBufferDesc *)__pyx_v_self), ((unsigned PY_LONG_LONG)__pyx_v_size)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_28cudaExternalMemoryBufferDesc_4size_2__set__(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryBufferDesc *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_size) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8581, 0, __PYX_ERR(0, 8581, __pyx_L1_error)); /* "cuda/cudart.pyx":8583 * @size.setter * def size(self, unsigned long long size): * self._ptr[0].size = size # <<<<<<<<<<<<<< * @property * def flags(self): */ (__pyx_v_self->_ptr[0]).size = __pyx_v_size; /* "cuda/cudart.pyx":8581 * def size(self): * return self._ptr[0].size * @size.setter # <<<<<<<<<<<<<< * def size(self, unsigned long long size): * self._ptr[0].size = size */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryBufferDesc.size.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8584 * def size(self, unsigned long long size): * self._ptr[0].size = size * @property # <<<<<<<<<<<<<< * def flags(self): * return self._ptr[0].flags */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_28cudaExternalMemoryBufferDesc_5flags_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_28cudaExternalMemoryBufferDesc_5flags___get__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryBufferDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_28cudaExternalMemoryBufferDesc_5flags___get__(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryBufferDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8584, 0, __PYX_ERR(0, 8584, __pyx_L1_error)); /* "cuda/cudart.pyx":8586 * @property * def flags(self): * return self._ptr[0].flags # <<<<<<<<<<<<<< * @flags.setter * def flags(self, unsigned int flags): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).flags); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8586, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8584 * def size(self, unsigned long long size): * self._ptr[0].size = size * @property # <<<<<<<<<<<<<< * def flags(self): * return self._ptr[0].flags */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryBufferDesc.flags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8587 * def flags(self): * return self._ptr[0].flags * @flags.setter # <<<<<<<<<<<<<< * def flags(self, unsigned int flags): * self._ptr[0].flags = flags */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_28cudaExternalMemoryBufferDesc_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_flags); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8588, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryBufferDesc.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_28cudaExternalMemoryBufferDesc_5flags_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryBufferDesc *)__pyx_v_self), ((unsigned int)__pyx_v_flags)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_28cudaExternalMemoryBufferDesc_5flags_2__set__(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryBufferDesc *__pyx_v_self, unsigned int __pyx_v_flags) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8587, 0, __PYX_ERR(0, 8587, __pyx_L1_error)); /* "cuda/cudart.pyx":8589 * @flags.setter * def flags(self, unsigned int flags): * self._ptr[0].flags = flags # <<<<<<<<<<<<<< * * cdef class cudaExternalMemoryMipmappedArrayDesc: */ (__pyx_v_self->_ptr[0]).flags = __pyx_v_flags; /* "cuda/cudart.pyx":8587 * def flags(self): * return self._ptr[0].flags * @flags.setter # <<<<<<<<<<<<<< * def flags(self, unsigned int flags): * self._ptr[0].flags = flags */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryBufferDesc.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_28cudaExternalMemoryBufferDesc_10__reduce_cython__, "cudaExternalMemoryBufferDesc.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_28cudaExternalMemoryBufferDesc_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_28cudaExternalMemoryBufferDesc_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_28cudaExternalMemoryBufferDesc_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_28cudaExternalMemoryBufferDesc_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryBufferDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_28cudaExternalMemoryBufferDesc_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryBufferDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__174) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaExternalMemoryBufferDesc.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_28cudaExternalMemoryBufferDesc_12__setstate_cython__, "cudaExternalMemoryBufferDesc.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_28cudaExternalMemoryBufferDesc_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_28cudaExternalMemoryBufferDesc_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_28cudaExternalMemoryBufferDesc_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryBufferDesc.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_28cudaExternalMemoryBufferDesc_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryBufferDesc *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_28cudaExternalMemoryBufferDesc_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryBufferDesc *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__175) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaExternalMemoryBufferDesc.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8616 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 8616, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 8616, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8616, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 8616, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryMipmappedArrayDesc.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc___cinit__(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 8616, 0, __PYX_ERR(0, 8616, __pyx_L1_error)); /* "cuda/cudart.pyx":8617 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":8618 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaExternalMemoryMipmappedArrayDesc__val); /* "cuda/cudart.pyx":8617 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":8620 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * self._formatDesc = cudaChannelFormatDesc(_ptr=&self._ptr[0].formatDesc) */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaExternalMemoryMipmappedArrayDesc *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":8616 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryMipmappedArrayDesc.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8621 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._formatDesc = cudaChannelFormatDesc(_ptr=&self._ptr[0].formatDesc) * self._extent = cudaExtent(_ptr=&self._ptr[0].extent) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 8621, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 8621, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8621, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 8621, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryMipmappedArrayDesc.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_2__init__(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 8621, 0, __PYX_ERR(0, 8621, __pyx_L1_error)); /* "cuda/cudart.pyx":8622 * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): * self._formatDesc = cudaChannelFormatDesc(_ptr=&self._ptr[0].formatDesc) # <<<<<<<<<<<<<< * self._extent = cudaExtent(_ptr=&self._ptr[0].extent) * def __dealloc__(self): */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8622, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).formatDesc))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8622, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 8622, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaChannelFormatDesc), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8622, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_formatDesc); __Pyx_DECREF((PyObject *)__pyx_v_self->_formatDesc); __pyx_v_self->_formatDesc = ((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":8623 * def __init__(self, void_ptr _ptr = 0): * self._formatDesc = cudaChannelFormatDesc(_ptr=&self._ptr[0].formatDesc) * self._extent = cudaExtent(_ptr=&self._ptr[0].extent) # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8623, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).extent))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8623, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_ptr, __pyx_t_1) < 0) __PYX_ERR(0, 8623, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExtent), __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8623, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GIVEREF(__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_6cudart_cudaExtent *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":8621 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._formatDesc = cudaChannelFormatDesc(_ptr=&self._ptr[0].formatDesc) * self._extent = cudaExtent(_ptr=&self._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.cudart.cudaExternalMemoryMipmappedArrayDesc.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8624 * self._formatDesc = cudaChannelFormatDesc(_ptr=&self._ptr[0].formatDesc) * self._extent = cudaExtent(_ptr=&self._ptr[0].extent) * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_36cudaExternalMemoryMipmappedArrayDesc_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 8624, 0, __PYX_ERR(0, 8624, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaExternalMemoryMipmappedArrayDesc.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":8626 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_36cudaExternalMemoryMipmappedArrayDesc_6getPtr, "cudaExternalMemoryMipmappedArrayDesc.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__176) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 8626, 0, __PYX_ERR(0, 8626, __pyx_L1_error)); /* "cuda/cudart.pyx":8627 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8627, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8626 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryMipmappedArrayDesc.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8628 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_36cudaExternalMemoryMipmappedArrayDesc_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_9genexpr30__pyx_v_line = NULL; PyObject *__pyx_9genexpr31__pyx_v_line = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 8628, 0, __PYX_ERR(0, 8628, __pyx_L1_error)); /* "cuda/cudart.pyx":8629 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":8630 * def __repr__(self): * if self._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, 8630, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":8631 * if self._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/cudart.pyx":8632 * str_list = [] * try: * str_list += ['offset : ' + str(self.offset)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['offset : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_offset_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8632, __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, 8632, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_offset, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8632, __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, 8632, __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)) __PYX_ERR(0, 8632, __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, 8632, __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/cudart.pyx":8631 * if self._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/cudart.pyx":8633 * try: * str_list += ['offset : ' + str(self.offset)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['offset : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryMipmappedArrayDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 8633, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":8634 * str_list += ['offset : ' + str(self.offset)] * except ValueError: * str_list += ['offset : '] # <<<<<<<<<<<<<< * 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, 8634, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_offset_ValueError); __Pyx_GIVEREF(__pyx_kp_u_offset_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_offset_ValueError)) __PYX_ERR(0, 8634, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8634, __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/cudart.pyx":8631 * if self._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/cudart.pyx":8635 * except ValueError: * str_list += ['offset : '] * 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/cudart.pyx":8636 * str_list += ['offset : '] * try: * str_list += ['formatDesc :\n' + '\n'.join([' ' + line for line in str(self.formatDesc).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['formatDesc : '] */ { /* enter inner scope */ __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8636, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_formatDesc_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8636, __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, 8636, __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, 8636, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 8636, __pyx_L20_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_11); __Pyx_INCREF(__pyx_t_6); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 8636, __pyx_L20_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8636, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_9genexpr30__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr30__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8636, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 8636, __pyx_L20_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_9genexpr30__pyx_v_line); __pyx_9genexpr30__pyx_v_line = 0; goto __pyx_L24_exit_scope; __pyx_L20_error:; __Pyx_XDECREF(__pyx_9genexpr30__pyx_v_line); __pyx_9genexpr30__pyx_v_line = 0; goto __pyx_L12_error; __pyx_L24_exit_scope:; } /* exit inner scope */ __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8636, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_formatDesc, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8636, __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, 8636, __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)) __PYX_ERR(0, 8636, __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, 8636, __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/cudart.pyx":8635 * except ValueError: * str_list += ['offset : '] * 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/cudart.pyx":8637 * try: * str_list += ['formatDesc :\n' + '\n'.join([' ' + line for line in str(self.formatDesc).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['formatDesc : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryMipmappedArrayDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 8637, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":8638 * str_list += ['formatDesc :\n' + '\n'.join([' ' + line for line in str(self.formatDesc).splitlines()])] * except ValueError: * str_list += ['formatDesc : '] # <<<<<<<<<<<<<< * 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, 8638, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_formatDesc_ValueError); __Pyx_GIVEREF(__pyx_kp_u_formatDesc_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_formatDesc_ValueError)) __PYX_ERR(0, 8638, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8638, __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/cudart.pyx":8635 * except ValueError: * str_list += ['offset : '] * 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/cudart.pyx":8639 * except ValueError: * str_list += ['formatDesc : '] * 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/cudart.pyx":8640 * str_list += ['formatDesc : '] * try: * str_list += ['extent :\n' + '\n'.join([' ' + line for line in str(self.extent).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['extent : '] */ { /* enter inner scope */ __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8640, __pyx_L35_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_extent_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8640, __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, 8640, __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, 8640, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 8640, __pyx_L35_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_2 = PyList_GET_ITEM(__pyx_t_8, __pyx_t_11); __Pyx_INCREF(__pyx_t_2); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 8640, __pyx_L35_error) #else __pyx_t_2 = __Pyx_PySequence_ITEM(__pyx_t_8, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8640, __pyx_L35_error) __Pyx_GOTREF(__pyx_t_2); #endif __Pyx_XDECREF_SET(__pyx_9genexpr31__pyx_v_line, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr31__pyx_v_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8640, __pyx_L35_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 8640, __pyx_L35_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_9genexpr31__pyx_v_line); __pyx_9genexpr31__pyx_v_line = 0; goto __pyx_L39_exit_scope; __pyx_L35_error:; __Pyx_XDECREF(__pyx_9genexpr31__pyx_v_line); __pyx_9genexpr31__pyx_v_line = 0; goto __pyx_L27_error; __pyx_L39_exit_scope:; } /* exit inner scope */ __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8640, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_extent, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8640, __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, 8640, __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)) __PYX_ERR(0, 8640, __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, 8640, __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/cudart.pyx":8639 * except ValueError: * str_list += ['formatDesc : '] * 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/cudart.pyx":8641 * try: * str_list += ['extent :\n' + '\n'.join([' ' + line for line in str(self.extent).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['extent : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryMipmappedArrayDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 8641, __pyx_L29_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":8642 * str_list += ['extent :\n' + '\n'.join([' ' + line for line in str(self.extent).splitlines()])] * except ValueError: * str_list += ['extent : '] # <<<<<<<<<<<<<< * try: * str_list += ['flags : ' + str(self.flags)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8642, __pyx_L29_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_extent_ValueError); __Pyx_GIVEREF(__pyx_kp_u_extent_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_extent_ValueError)) __PYX_ERR(0, 8642, __pyx_L29_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8642, __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/cudart.pyx":8639 * except ValueError: * str_list += ['formatDesc : '] * 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/cudart.pyx":8643 * except ValueError: * str_list += ['extent : '] * 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/cudart.pyx":8644 * str_list += ['extent : '] * try: * str_list += ['flags : ' + str(self.flags)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['flags : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_flags_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8644, __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, 8644, __pyx_L42_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_flags, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8644, __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, 8644, __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)) __PYX_ERR(0, 8644, __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, 8644, __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/cudart.pyx":8643 * except ValueError: * str_list += ['extent : '] * 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/cudart.pyx":8645 * try: * str_list += ['flags : ' + str(self.flags)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['flags : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryMipmappedArrayDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_8, &__pyx_t_6) < 0) __PYX_ERR(0, 8645, __pyx_L44_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":8646 * str_list += ['flags : ' + str(self.flags)] * except ValueError: * str_list += ['flags : '] # <<<<<<<<<<<<<< * try: * str_list += ['numLevels : ' + str(self.numLevels)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8646, __pyx_L44_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_flags_ValueError); __Pyx_GIVEREF(__pyx_kp_u_flags_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_flags_ValueError)) __PYX_ERR(0, 8646, __pyx_L44_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8646, __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/cudart.pyx":8643 * except ValueError: * str_list += ['extent : '] * 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/cudart.pyx":8647 * except ValueError: * str_list += ['flags : '] * 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/cudart.pyx":8648 * str_list += ['flags : '] * try: * str_list += ['numLevels : ' + str(self.numLevels)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['numLevels : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_numLevels_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8648, __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, 8648, __pyx_L50_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_numLevels, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8648, __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, 8648, __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)) __PYX_ERR(0, 8648, __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, 8648, __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/cudart.pyx":8647 * except ValueError: * str_list += ['flags : '] * 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/cudart.pyx":8649 * try: * str_list += ['numLevels : ' + str(self.numLevels)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['numLevels : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryMipmappedArrayDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 8649, __pyx_L52_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":8650 * str_list += ['numLevels : ' + str(self.numLevels)] * except ValueError: * str_list += ['numLevels : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8650, __pyx_L52_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_numLevels_ValueError); __Pyx_GIVEREF(__pyx_kp_u_numLevels_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_numLevels_ValueError)) __PYX_ERR(0, 8650, __pyx_L52_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8650, __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/cudart.pyx":8647 * except ValueError: * str_list += ['flags : '] * 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/cudart.pyx":8651 * except ValueError: * str_list += ['numLevels : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8651, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8629 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":8653 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def offset(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":8628 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaExternalMemoryMipmappedArrayDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XDECREF(__pyx_9genexpr30__pyx_v_line); __Pyx_XDECREF(__pyx_9genexpr31__pyx_v_line); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8654 * else: * return '' * @property # <<<<<<<<<<<<<< * def offset(self): * return self._ptr[0].offset */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_6offset_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_36cudaExternalMemoryMipmappedArrayDesc_6offset___get__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_6offset___get__(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8654, 0, __PYX_ERR(0, 8654, __pyx_L1_error)); /* "cuda/cudart.pyx":8656 * @property * def offset(self): * return self._ptr[0].offset # <<<<<<<<<<<<<< * @offset.setter * def offset(self, unsigned long long offset): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG((__pyx_v_self->_ptr[0]).offset); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8656, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8654 * else: * return '' * @property # <<<<<<<<<<<<<< * def offset(self): * return self._ptr[0].offset */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryMipmappedArrayDesc.offset.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8657 * def offset(self): * return self._ptr[0].offset * @offset.setter # <<<<<<<<<<<<<< * def offset(self, unsigned long long offset): * self._ptr[0].offset = offset */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_6offset_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_offset); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_PY_LONG_LONG(__pyx_arg_offset); if (unlikely((__pyx_v_offset == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8658, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryMipmappedArrayDesc.offset.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_6offset_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *)__pyx_v_self), ((unsigned PY_LONG_LONG)__pyx_v_offset)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_6offset_2__set__(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_offset) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8657, 0, __PYX_ERR(0, 8657, __pyx_L1_error)); /* "cuda/cudart.pyx":8659 * @offset.setter * def offset(self, unsigned long long offset): * self._ptr[0].offset = offset # <<<<<<<<<<<<<< * @property * def formatDesc(self): */ (__pyx_v_self->_ptr[0]).offset = __pyx_v_offset; /* "cuda/cudart.pyx":8657 * def offset(self): * return self._ptr[0].offset * @offset.setter # <<<<<<<<<<<<<< * def offset(self, unsigned long long offset): * self._ptr[0].offset = offset */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryMipmappedArrayDesc.offset.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8660 * def offset(self, unsigned long long offset): * self._ptr[0].offset = offset * @property # <<<<<<<<<<<<<< * def formatDesc(self): * return self._formatDesc */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_10formatDesc_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_36cudaExternalMemoryMipmappedArrayDesc_10formatDesc___get__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_10formatDesc___get__(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8660, 0, __PYX_ERR(0, 8660, __pyx_L1_error)); /* "cuda/cudart.pyx":8662 * @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/cudart.pyx":8660 * def offset(self, unsigned long long offset): * self._ptr[0].offset = offset * @property # <<<<<<<<<<<<<< * def formatDesc(self): * return self._formatDesc */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryMipmappedArrayDesc.formatDesc.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8663 * def formatDesc(self): * return self._formatDesc * @formatDesc.setter # <<<<<<<<<<<<<< * def formatDesc(self, formatDesc not None : cudaChannelFormatDesc): * string.memcpy(&self._ptr[0].formatDesc, formatDesc.getPtr(), sizeof(self._ptr[0].formatDesc)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_10formatDesc_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_formatDesc); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_cudaChannelFormatDesc, 0, "formatDesc", 0))) __PYX_ERR(0, 8664, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_10formatDesc_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)__pyx_v_formatDesc)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_10formatDesc_2__set__(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *__pyx_v_formatDesc) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 8663, 0, __PYX_ERR(0, 8663, __pyx_L1_error)); /* "cuda/cudart.pyx":8665 * @formatDesc.setter * def formatDesc(self, formatDesc not None : cudaChannelFormatDesc): * string.memcpy(&self._ptr[0].formatDesc, formatDesc.getPtr(), sizeof(self._ptr[0].formatDesc)) # <<<<<<<<<<<<<< * @property * def extent(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_formatDesc), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8665, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8665, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8665, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).formatDesc), ((struct cudaChannelFormatDesc *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).formatDesc)))); /* "cuda/cudart.pyx":8663 * def formatDesc(self): * return self._formatDesc * @formatDesc.setter # <<<<<<<<<<<<<< * def formatDesc(self, formatDesc not None : cudaChannelFormatDesc): * string.memcpy(&self._ptr[0].formatDesc, formatDesc.getPtr(), sizeof(self._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_AddTraceback("cuda.cudart.cudaExternalMemoryMipmappedArrayDesc.formatDesc.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8666 * def formatDesc(self, formatDesc not None : cudaChannelFormatDesc): * string.memcpy(&self._ptr[0].formatDesc, formatDesc.getPtr(), sizeof(self._ptr[0].formatDesc)) * @property # <<<<<<<<<<<<<< * def extent(self): * return self._extent */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_6extent_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_36cudaExternalMemoryMipmappedArrayDesc_6extent___get__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_6extent___get__(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8666, 0, __PYX_ERR(0, 8666, __pyx_L1_error)); /* "cuda/cudart.pyx":8668 * @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/cudart.pyx":8666 * def formatDesc(self, formatDesc not None : cudaChannelFormatDesc): * string.memcpy(&self._ptr[0].formatDesc, formatDesc.getPtr(), sizeof(self._ptr[0].formatDesc)) * @property # <<<<<<<<<<<<<< * def extent(self): * return self._extent */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryMipmappedArrayDesc.extent.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8669 * def extent(self): * return self._extent * @extent.setter # <<<<<<<<<<<<<< * def extent(self, extent not None : cudaExtent): * string.memcpy(&self._ptr[0].extent, extent.getPtr(), sizeof(self._ptr[0].extent)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_6extent_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_extent); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_cudaExtent, 0, "extent", 0))) __PYX_ERR(0, 8670, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_6extent_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_cudaExtent *)__pyx_v_extent)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_6extent_2__set__(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_cudaExtent *__pyx_v_extent) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 8669, 0, __PYX_ERR(0, 8669, __pyx_L1_error)); /* "cuda/cudart.pyx":8671 * @extent.setter * def extent(self, extent not None : cudaExtent): * string.memcpy(&self._ptr[0].extent, extent.getPtr(), sizeof(self._ptr[0].extent)) # <<<<<<<<<<<<<< * @property * def flags(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_extent), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8671, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8671, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8671, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).extent), ((struct cudaExtent *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).extent)))); /* "cuda/cudart.pyx":8669 * def extent(self): * return self._extent * @extent.setter # <<<<<<<<<<<<<< * def extent(self, extent not None : cudaExtent): * string.memcpy(&self._ptr[0].extent, extent.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryMipmappedArrayDesc.extent.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8672 * def extent(self, extent not None : cudaExtent): * string.memcpy(&self._ptr[0].extent, extent.getPtr(), sizeof(self._ptr[0].extent)) * @property # <<<<<<<<<<<<<< * def flags(self): * return self._ptr[0].flags */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_5flags_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_36cudaExternalMemoryMipmappedArrayDesc_5flags___get__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_5flags___get__(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8672, 0, __PYX_ERR(0, 8672, __pyx_L1_error)); /* "cuda/cudart.pyx":8674 * @property * def flags(self): * return self._ptr[0].flags # <<<<<<<<<<<<<< * @flags.setter * def flags(self, unsigned int flags): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).flags); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8674, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8672 * def extent(self, extent not None : cudaExtent): * string.memcpy(&self._ptr[0].extent, extent.getPtr(), sizeof(self._ptr[0].extent)) * @property # <<<<<<<<<<<<<< * def flags(self): * return self._ptr[0].flags */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryMipmappedArrayDesc.flags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8675 * def flags(self): * return self._ptr[0].flags * @flags.setter # <<<<<<<<<<<<<< * def flags(self, unsigned int flags): * self._ptr[0].flags = flags */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_flags); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8676, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryMipmappedArrayDesc.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_5flags_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *)__pyx_v_self), ((unsigned int)__pyx_v_flags)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_5flags_2__set__(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self, unsigned int __pyx_v_flags) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8675, 0, __PYX_ERR(0, 8675, __pyx_L1_error)); /* "cuda/cudart.pyx":8677 * @flags.setter * def flags(self, unsigned int flags): * self._ptr[0].flags = flags # <<<<<<<<<<<<<< * @property * def numLevels(self): */ (__pyx_v_self->_ptr[0]).flags = __pyx_v_flags; /* "cuda/cudart.pyx":8675 * def flags(self): * return self._ptr[0].flags * @flags.setter # <<<<<<<<<<<<<< * def flags(self, unsigned int flags): * self._ptr[0].flags = flags */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryMipmappedArrayDesc.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8678 * def flags(self, unsigned int flags): * self._ptr[0].flags = flags * @property # <<<<<<<<<<<<<< * def numLevels(self): * return self._ptr[0].numLevels */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_9numLevels_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_36cudaExternalMemoryMipmappedArrayDesc_9numLevels___get__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_9numLevels___get__(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8678, 0, __PYX_ERR(0, 8678, __pyx_L1_error)); /* "cuda/cudart.pyx":8680 * @property * def numLevels(self): * return self._ptr[0].numLevels # <<<<<<<<<<<<<< * @numLevels.setter * def numLevels(self, unsigned int numLevels): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).numLevels); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8680, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8678 * def flags(self, unsigned int flags): * self._ptr[0].flags = flags * @property # <<<<<<<<<<<<<< * def numLevels(self): * return self._ptr[0].numLevels */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryMipmappedArrayDesc.numLevels.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8681 * def numLevels(self): * return self._ptr[0].numLevels * @numLevels.setter # <<<<<<<<<<<<<< * def numLevels(self, unsigned int numLevels): * self._ptr[0].numLevels = numLevels */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_9numLevels_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_numLevels); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_numLevels); if (unlikely((__pyx_v_numLevels == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8682, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryMipmappedArrayDesc.numLevels.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_9numLevels_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *)__pyx_v_self), ((unsigned int)__pyx_v_numLevels)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_9numLevels_2__set__(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self, unsigned int __pyx_v_numLevels) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8681, 0, __PYX_ERR(0, 8681, __pyx_L1_error)); /* "cuda/cudart.pyx":8683 * @numLevels.setter * def numLevels(self, unsigned int numLevels): * self._ptr[0].numLevels = numLevels # <<<<<<<<<<<<<< * * cdef class anon_struct6: */ (__pyx_v_self->_ptr[0]).numLevels = __pyx_v_numLevels; /* "cuda/cudart.pyx":8681 * def numLevels(self): * return self._ptr[0].numLevels * @numLevels.setter # <<<<<<<<<<<<<< * def numLevels(self, unsigned int numLevels): * self._ptr[0].numLevels = numLevels */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryMipmappedArrayDesc.numLevels.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_36cudaExternalMemoryMipmappedArrayDesc_10__reduce_cython__, "cudaExternalMemoryMipmappedArrayDesc.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__177) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaExternalMemoryMipmappedArrayDesc.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_36cudaExternalMemoryMipmappedArrayDesc_12__setstate_cython__, "cudaExternalMemoryMipmappedArrayDesc.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryMipmappedArrayDesc.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__178) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaExternalMemoryMipmappedArrayDesc.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8700 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12anon_struct6_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_12anon_struct6_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 8700, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 8700, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8700, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 8700, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct6.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct6___cinit__(((struct __pyx_obj_4cuda_6cudart_anon_struct6 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12anon_struct6___cinit__(struct __pyx_obj_4cuda_6cudart_anon_struct6 *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 8700, 0, __PYX_ERR(0, 8700, __pyx_L1_error)); /* "cuda/cudart.pyx":8701 * """ * def __cinit__(self, void_ptr _ptr): * self._ptr = _ptr # <<<<<<<<<<<<<< * * def __init__(self, void_ptr _ptr): */ __pyx_v_self->_ptr = ((struct cudaExternalSemaphoreHandleDesc *)__pyx_v__ptr); /* "cuda/cudart.pyx":8700 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct6.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8703 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12anon_struct6_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_12anon_struct6_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 8703, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 8703, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8703, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 8703, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct6.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct6_2__init__(((struct __pyx_obj_4cuda_6cudart_anon_struct6 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12anon_struct6_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct6 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 8703, 0, __PYX_ERR(0, 8703, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct6.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8705 * def __init__(self, void_ptr _ptr): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_12anon_struct6_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct6_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_anon_struct6 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_12anon_struct6_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct6 *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 8705, 0, __PYX_ERR(0, 8705, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.anon_struct6.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":8707 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].handle.win32 * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct6_6getPtr, "anon_struct6.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_12anon_struct6_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct6_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct6_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct6_6getPtr(((struct __pyx_obj_4cuda_6cudart_anon_struct6 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct6_6getPtr(struct __pyx_obj_4cuda_6cudart_anon_struct6 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__179) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 8707, 0, __PYX_ERR(0, 8707, __pyx_L1_error)); /* "cuda/cudart.pyx":8708 * pass * def getPtr(self): * return &self._ptr[0].handle.win32 # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).handle.win32))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8708, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8707 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].handle.win32 * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct6.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8709 * def getPtr(self): * return &self._ptr[0].handle.win32 * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12anon_struct6_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12anon_struct6_8__repr__(((struct __pyx_obj_4cuda_6cudart_anon_struct6 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct6_8__repr__(struct __pyx_obj_4cuda_6cudart_anon_struct6 *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 8709, 0, __PYX_ERR(0, 8709, __pyx_L1_error)); /* "cuda/cudart.pyx":8710 * return &self._ptr[0].handle.win32 * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":8711 * def __repr__(self): * if self._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, 8711, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":8712 * if self._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/cudart.pyx":8713 * str_list = [] * try: * str_list += ['handle : ' + hex(self.handle)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['handle : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_handle_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8713, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8713, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_kp_u_handle, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8713, __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, 8713, __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)) __PYX_ERR(0, 8713, __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, 8713, __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/cudart.pyx":8712 * if self._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/cudart.pyx":8714 * try: * str_list += ['handle : ' + hex(self.handle)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['handle : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 8714, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":8715 * str_list += ['handle : ' + hex(self.handle)] * except ValueError: * str_list += ['handle : '] # <<<<<<<<<<<<<< * try: * str_list += ['name : ' + hex(self.name)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8715, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_handle_ValueError); __Pyx_GIVEREF(__pyx_kp_u_handle_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_handle_ValueError)) __PYX_ERR(0, 8715, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8715, __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/cudart.pyx":8712 * if self._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/cudart.pyx":8716 * except ValueError: * str_list += ['handle : '] * 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/cudart.pyx":8717 * str_list += ['handle : '] * try: * str_list += ['name : ' + hex(self.name)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['name : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_name_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8717, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8717, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = PyNumber_Add(__pyx_kp_u_name, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8717, __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, 8717, __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)) __PYX_ERR(0, 8717, __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, 8717, __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/cudart.pyx":8716 * except ValueError: * str_list += ['handle : '] * 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/cudart.pyx":8718 * try: * str_list += ['name : ' + hex(self.name)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['name : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 8718, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":8719 * str_list += ['name : ' + hex(self.name)] * except ValueError: * str_list += ['name : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8719, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_name_ValueError); __Pyx_GIVEREF(__pyx_kp_u_name_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_name_ValueError)) __PYX_ERR(0, 8719, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8719, __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/cudart.pyx":8716 * except ValueError: * str_list += ['handle : '] * 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/cudart.pyx":8720 * except ValueError: * str_list += ['name : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8720, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8710 * return &self._ptr[0].handle.win32 * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":8722 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def handle(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":8709 * def getPtr(self): * return &self._ptr[0].handle.win32 * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.anon_struct6.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8723 * else: * return '' * @property # <<<<<<<<<<<<<< * def handle(self): * return self._ptr[0].handle.win32.handle */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12anon_struct6_6handle_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_12anon_struct6_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_6cudart_12anon_struct6_6handle___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct6 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct6_6handle___get__(struct __pyx_obj_4cuda_6cudart_anon_struct6 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8723, 0, __PYX_ERR(0, 8723, __pyx_L1_error)); /* "cuda/cudart.pyx":8725 * @property * def handle(self): * return self._ptr[0].handle.win32.handle # <<<<<<<<<<<<<< * @handle.setter * def handle(self, handle): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).handle.win32.handle)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8725, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8723 * else: * return '' * @property # <<<<<<<<<<<<<< * def handle(self): * return self._ptr[0].handle.win32.handle */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct6.handle.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8726 * def handle(self): * return self._ptr[0].handle.win32.handle * @handle.setter # <<<<<<<<<<<<<< * def handle(self, handle): * _chandle = utils.HelperInputVoidPtr(handle) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12anon_struct6_6handle_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_handle); /*proto*/ static int __pyx_pw_4cuda_6cudart_12anon_struct6_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_6cudart_12anon_struct6_6handle_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct6 *)__pyx_v_self), ((PyObject *)__pyx_v_handle)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12anon_struct6_6handle_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct6 *__pyx_v_self, PyObject *__pyx_v_handle) { PyObject *__pyx_v__chandle = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 8726, 0, __PYX_ERR(0, 8726, __pyx_L1_error)); /* "cuda/cudart.pyx":8728 * @handle.setter * def handle(self, handle): * _chandle = utils.HelperInputVoidPtr(handle) # <<<<<<<<<<<<<< * self._ptr[0].handle.win32.handle = _chandle.cptr * @property */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_handle); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8728, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__chandle = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":8729 * def handle(self, handle): * _chandle = utils.HelperInputVoidPtr(handle) * self._ptr[0].handle.win32.handle = _chandle.cptr # <<<<<<<<<<<<<< * @property * def name(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v__chandle, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8729, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8729, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).handle.win32.handle = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":8726 * def handle(self): * return self._ptr[0].handle.win32.handle * @handle.setter # <<<<<<<<<<<<<< * def handle(self, handle): * _chandle = utils.HelperInputVoidPtr(handle) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct6.handle.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v__chandle); __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8730 * _chandle = utils.HelperInputVoidPtr(handle) * self._ptr[0].handle.win32.handle = _chandle.cptr * @property # <<<<<<<<<<<<<< * def name(self): * return self._ptr[0].handle.win32.name */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12anon_struct6_4name_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_12anon_struct6_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_6cudart_12anon_struct6_4name___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct6 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct6_4name___get__(struct __pyx_obj_4cuda_6cudart_anon_struct6 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8730, 0, __PYX_ERR(0, 8730, __pyx_L1_error)); /* "cuda/cudart.pyx":8732 * @property * def name(self): * return self._ptr[0].handle.win32.name # <<<<<<<<<<<<<< * @name.setter * def name(self, name): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).handle.win32.name)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8732, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8730 * _chandle = utils.HelperInputVoidPtr(handle) * self._ptr[0].handle.win32.handle = _chandle.cptr * @property # <<<<<<<<<<<<<< * def name(self): * return self._ptr[0].handle.win32.name */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct6.name.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8733 * def name(self): * return self._ptr[0].handle.win32.name * @name.setter # <<<<<<<<<<<<<< * def name(self, name): * _cname = utils.HelperInputVoidPtr(name) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12anon_struct6_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/ static int __pyx_pw_4cuda_6cudart_12anon_struct6_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_6cudart_12anon_struct6_4name_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct6 *)__pyx_v_self), ((PyObject *)__pyx_v_name)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12anon_struct6_4name_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct6 *__pyx_v_self, PyObject *__pyx_v_name) { PyObject *__pyx_v__cname = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 8733, 0, __PYX_ERR(0, 8733, __pyx_L1_error)); /* "cuda/cudart.pyx":8735 * @name.setter * def name(self, name): * _cname = utils.HelperInputVoidPtr(name) # <<<<<<<<<<<<<< * self._ptr[0].handle.win32.name = _cname.cptr * */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8735, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__cname = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":8736 * def name(self, name): * _cname = utils.HelperInputVoidPtr(name) * self._ptr[0].handle.win32.name = _cname.cptr # <<<<<<<<<<<<<< * * cdef class anon_union2: */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v__cname, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8736, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8736, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).handle.win32.name = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":8733 * def name(self): * return self._ptr[0].handle.win32.name * @name.setter # <<<<<<<<<<<<<< * def name(self, name): * _cname = utils.HelperInputVoidPtr(name) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct6.name.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v__cname); __Pyx_TraceReturn(Py_None, 0); __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_6cudart_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_6cudart_12anon_struct6_10__reduce_cython__, "anon_struct6.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_12anon_struct6_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct6_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct6_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct6_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct6 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct6_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct6 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__180) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct6.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_12anon_struct6_12__setstate_cython__, "anon_struct6.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_12anon_struct6_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct6_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct6_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct6.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_struct6_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct6 *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_struct6_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct6 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__181) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct6.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8755 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_11anon_union2_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_11anon_union2_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 8755, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 8755, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8755, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 8755, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_union2.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union2___cinit__(((struct __pyx_obj_4cuda_6cudart_anon_union2 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_11anon_union2___cinit__(struct __pyx_obj_4cuda_6cudart_anon_union2 *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 8755, 0, __PYX_ERR(0, 8755, __pyx_L1_error)); /* "cuda/cudart.pyx":8756 * """ * def __cinit__(self, void_ptr _ptr): * self._ptr = _ptr # <<<<<<<<<<<<<< * * def __init__(self, void_ptr _ptr): */ __pyx_v_self->_ptr = ((struct cudaExternalSemaphoreHandleDesc *)__pyx_v__ptr); /* "cuda/cudart.pyx":8755 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_union2.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8758 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._win32 = anon_struct6(_ptr=self._ptr) * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_11anon_union2_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_11anon_union2_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 8758, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 8758, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8758, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 8758, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_union2.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union2_2__init__(((struct __pyx_obj_4cuda_6cudart_anon_union2 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_11anon_union2_2__init__(struct __pyx_obj_4cuda_6cudart_anon_union2 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 8758, 0, __PYX_ERR(0, 8758, __pyx_L1_error)); /* "cuda/cudart.pyx":8759 * * def __init__(self, void_ptr _ptr): * self._win32 = anon_struct6(_ptr=self._ptr) # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8759, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8759, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 8759, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct6), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8759, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_win32); __Pyx_DECREF((PyObject *)__pyx_v_self->_win32); __pyx_v_self->_win32 = ((struct __pyx_obj_4cuda_6cudart_anon_struct6 *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":8758 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._win32 = anon_struct6(_ptr=self._ptr) * def __dealloc__(self): */ /* 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.cudart.anon_union2.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8760 * def __init__(self, void_ptr _ptr): * self._win32 = anon_struct6(_ptr=self._ptr) * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_11anon_union2_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_11anon_union2_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_anon_union2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_11anon_union2_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_union2 *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 8760, 0, __PYX_ERR(0, 8760, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.anon_union2.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":8762 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].handle * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_11anon_union2_6getPtr, "anon_union2.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_11anon_union2_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union2_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union2_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union2_6getPtr(((struct __pyx_obj_4cuda_6cudart_anon_union2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union2_6getPtr(struct __pyx_obj_4cuda_6cudart_anon_union2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__182) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 8762, 0, __PYX_ERR(0, 8762, __pyx_L1_error)); /* "cuda/cudart.pyx":8763 * pass * def getPtr(self): * return &self._ptr[0].handle # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).handle))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8763, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8762 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].handle * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_union2.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8764 * def getPtr(self): * return &self._ptr[0].handle * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_11anon_union2_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_11anon_union2_8__repr__(((struct __pyx_obj_4cuda_6cudart_anon_union2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union2_8__repr__(struct __pyx_obj_4cuda_6cudart_anon_union2 *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_9genexpr32__pyx_v_line = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 8764, 0, __PYX_ERR(0, 8764, __pyx_L1_error)); /* "cuda/cudart.pyx":8765 * return &self._ptr[0].handle * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":8766 * def __repr__(self): * if self._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, 8766, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":8767 * if self._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/cudart.pyx":8768 * str_list = [] * try: * str_list += ['fd : ' + str(self.fd)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['fd : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_fd_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8768, __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, 8768, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_fd, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8768, __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, 8768, __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)) __PYX_ERR(0, 8768, __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, 8768, __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/cudart.pyx":8767 * if self._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/cudart.pyx":8769 * try: * str_list += ['fd : ' + str(self.fd)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['fd : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 8769, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":8770 * str_list += ['fd : ' + str(self.fd)] * except ValueError: * str_list += ['fd : '] # <<<<<<<<<<<<<< * 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, 8770, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_fd_ValueError); __Pyx_GIVEREF(__pyx_kp_u_fd_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_fd_ValueError)) __PYX_ERR(0, 8770, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8770, __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/cudart.pyx":8767 * if self._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/cudart.pyx":8771 * except ValueError: * str_list += ['fd : '] * 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/cudart.pyx":8772 * str_list += ['fd : '] * try: * str_list += ['win32 :\n' + '\n'.join([' ' + line for line in str(self.win32).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['win32 : '] */ { /* enter inner scope */ __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8772, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_win32_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8772, __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, 8772, __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, 8772, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 8772, __pyx_L20_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_11); __Pyx_INCREF(__pyx_t_6); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 8772, __pyx_L20_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8772, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_9genexpr32__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr32__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8772, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 8772, __pyx_L20_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_9genexpr32__pyx_v_line); __pyx_9genexpr32__pyx_v_line = 0; goto __pyx_L24_exit_scope; __pyx_L20_error:; __Pyx_XDECREF(__pyx_9genexpr32__pyx_v_line); __pyx_9genexpr32__pyx_v_line = 0; goto __pyx_L12_error; __pyx_L24_exit_scope:; } /* exit inner scope */ __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8772, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_win32, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8772, __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, 8772, __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)) __PYX_ERR(0, 8772, __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, 8772, __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/cudart.pyx":8771 * except ValueError: * str_list += ['fd : '] * 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/cudart.pyx":8773 * try: * str_list += ['win32 :\n' + '\n'.join([' ' + line for line in str(self.win32).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['win32 : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 8773, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":8774 * str_list += ['win32 :\n' + '\n'.join([' ' + line for line in str(self.win32).splitlines()])] * except ValueError: * str_list += ['win32 : '] # <<<<<<<<<<<<<< * try: * str_list += ['nvSciSyncObj : ' + hex(self.nvSciSyncObj)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8774, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_win32_ValueError); __Pyx_GIVEREF(__pyx_kp_u_win32_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_win32_ValueError)) __PYX_ERR(0, 8774, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8774, __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/cudart.pyx":8771 * except ValueError: * str_list += ['fd : '] * 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/cudart.pyx":8775 * except ValueError: * str_list += ['win32 : '] * 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/cudart.pyx":8776 * str_list += ['win32 : '] * try: * str_list += ['nvSciSyncObj : ' + hex(self.nvSciSyncObj)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['nvSciSyncObj : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_nvSciSyncObj_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8776, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8776, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u_nvSciSyncObj, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8776, __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, 8776, __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)) __PYX_ERR(0, 8776, __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, 8776, __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/cudart.pyx":8775 * except ValueError: * str_list += ['win32 : '] * 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/cudart.pyx":8777 * try: * str_list += ['nvSciSyncObj : ' + hex(self.nvSciSyncObj)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['nvSciSyncObj : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 8777, __pyx_L29_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":8778 * str_list += ['nvSciSyncObj : ' + hex(self.nvSciSyncObj)] * except ValueError: * str_list += ['nvSciSyncObj : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8778, __pyx_L29_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_nvSciSyncObj_ValueError); __Pyx_GIVEREF(__pyx_kp_u_nvSciSyncObj_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_nvSciSyncObj_ValueError)) __PYX_ERR(0, 8778, __pyx_L29_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8778, __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/cudart.pyx":8775 * except ValueError: * str_list += ['win32 : '] * 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/cudart.pyx":8779 * except ValueError: * str_list += ['nvSciSyncObj : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8779, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8765 * return &self._ptr[0].handle * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":8781 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def fd(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":8764 * def getPtr(self): * return &self._ptr[0].handle * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.anon_union2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XDECREF(__pyx_9genexpr32__pyx_v_line); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8782 * else: * return '' * @property # <<<<<<<<<<<<<< * def fd(self): * return self._ptr[0].handle.fd */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_11anon_union2_2fd_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_11anon_union2_2fd___get__(((struct __pyx_obj_4cuda_6cudart_anon_union2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union2_2fd___get__(struct __pyx_obj_4cuda_6cudart_anon_union2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8782, 0, __PYX_ERR(0, 8782, __pyx_L1_error)); /* "cuda/cudart.pyx":8784 * @property * def fd(self): * return self._ptr[0].handle.fd # <<<<<<<<<<<<<< * @fd.setter * def fd(self, int fd): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).handle.fd); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8784, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8782 * else: * return '' * @property # <<<<<<<<<<<<<< * def fd(self): * return self._ptr[0].handle.fd */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_union2.fd.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8785 * def fd(self): * return self._ptr[0].handle.fd * @fd.setter # <<<<<<<<<<<<<< * def fd(self, int fd): * self._ptr[0].handle.fd = fd */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_11anon_union2_2fd_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_fd); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_fd); if (unlikely((__pyx_v_fd == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8786, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.anon_union2.fd.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union2_2fd_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_union2 *)__pyx_v_self), ((int)__pyx_v_fd)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_11anon_union2_2fd_2__set__(struct __pyx_obj_4cuda_6cudart_anon_union2 *__pyx_v_self, int __pyx_v_fd) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8785, 0, __PYX_ERR(0, 8785, __pyx_L1_error)); /* "cuda/cudart.pyx":8787 * @fd.setter * def fd(self, int fd): * self._ptr[0].handle.fd = fd # <<<<<<<<<<<<<< * @property * def win32(self): */ (__pyx_v_self->_ptr[0]).handle.fd = __pyx_v_fd; /* "cuda/cudart.pyx":8785 * def fd(self): * return self._ptr[0].handle.fd * @fd.setter # <<<<<<<<<<<<<< * def fd(self, int fd): * self._ptr[0].handle.fd = fd */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_union2.fd.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8788 * def fd(self, int fd): * self._ptr[0].handle.fd = fd * @property # <<<<<<<<<<<<<< * def win32(self): * return self._win32 */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_11anon_union2_5win32_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_11anon_union2_5win32___get__(((struct __pyx_obj_4cuda_6cudart_anon_union2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union2_5win32___get__(struct __pyx_obj_4cuda_6cudart_anon_union2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8788, 0, __PYX_ERR(0, 8788, __pyx_L1_error)); /* "cuda/cudart.pyx":8790 * @property * def win32(self): * return self._win32 # <<<<<<<<<<<<<< * @win32.setter * def win32(self, win32 not None : anon_struct6): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_self->_win32); __pyx_r = ((PyObject *)__pyx_v_self->_win32); goto __pyx_L0; /* "cuda/cudart.pyx":8788 * def fd(self, int fd): * self._ptr[0].handle.fd = fd * @property # <<<<<<<<<<<<<< * def win32(self): * return self._win32 */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_union2.win32.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8791 * def win32(self): * return self._win32 * @win32.setter # <<<<<<<<<<<<<< * def win32(self, win32 not None : anon_struct6): * string.memcpy(&self._ptr[0].handle.win32, win32.getPtr(), sizeof(self._ptr[0].handle.win32)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_11anon_union2_5win32_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_win32); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_anon_struct6, 0, "win32", 0))) __PYX_ERR(0, 8792, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union2_5win32_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_union2 *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_anon_struct6 *)__pyx_v_win32)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_11anon_union2_5win32_2__set__(struct __pyx_obj_4cuda_6cudart_anon_union2 *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_anon_struct6 *__pyx_v_win32) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 8791, 0, __PYX_ERR(0, 8791, __pyx_L1_error)); /* "cuda/cudart.pyx":8793 * @win32.setter * def win32(self, win32 not None : anon_struct6): * string.memcpy(&self._ptr[0].handle.win32, win32.getPtr(), sizeof(self._ptr[0].handle.win32)) # <<<<<<<<<<<<<< * @property * def nvSciSyncObj(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_win32), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8793, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8793, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8793, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).handle.win32), ((struct anon_struct6 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).handle.win32)))); /* "cuda/cudart.pyx":8791 * def win32(self): * return self._win32 * @win32.setter # <<<<<<<<<<<<<< * def win32(self, win32 not None : anon_struct6): * string.memcpy(&self._ptr[0].handle.win32, win32.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.anon_union2.win32.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8794 * def win32(self, win32 not None : anon_struct6): * string.memcpy(&self._ptr[0].handle.win32, win32.getPtr(), sizeof(self._ptr[0].handle.win32)) * @property # <<<<<<<<<<<<<< * def nvSciSyncObj(self): * return self._ptr[0].handle.nvSciSyncObj */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_11anon_union2_12nvSciSyncObj_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_11anon_union2_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_6cudart_11anon_union2_12nvSciSyncObj___get__(((struct __pyx_obj_4cuda_6cudart_anon_union2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union2_12nvSciSyncObj___get__(struct __pyx_obj_4cuda_6cudart_anon_union2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8794, 0, __PYX_ERR(0, 8794, __pyx_L1_error)); /* "cuda/cudart.pyx":8796 * @property * def nvSciSyncObj(self): * return self._ptr[0].handle.nvSciSyncObj # <<<<<<<<<<<<<< * @nvSciSyncObj.setter * def nvSciSyncObj(self, nvSciSyncObj): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).handle.nvSciSyncObj)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8796, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8794 * def win32(self, win32 not None : anon_struct6): * string.memcpy(&self._ptr[0].handle.win32, win32.getPtr(), sizeof(self._ptr[0].handle.win32)) * @property # <<<<<<<<<<<<<< * def nvSciSyncObj(self): * return self._ptr[0].handle.nvSciSyncObj */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_union2.nvSciSyncObj.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8797 * def nvSciSyncObj(self): * return self._ptr[0].handle.nvSciSyncObj * @nvSciSyncObj.setter # <<<<<<<<<<<<<< * def nvSciSyncObj(self, nvSciSyncObj): * _cnvSciSyncObj = utils.HelperInputVoidPtr(nvSciSyncObj) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_11anon_union2_12nvSciSyncObj_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_nvSciSyncObj); /*proto*/ static int __pyx_pw_4cuda_6cudart_11anon_union2_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_6cudart_11anon_union2_12nvSciSyncObj_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_union2 *)__pyx_v_self), ((PyObject *)__pyx_v_nvSciSyncObj)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_11anon_union2_12nvSciSyncObj_2__set__(struct __pyx_obj_4cuda_6cudart_anon_union2 *__pyx_v_self, PyObject *__pyx_v_nvSciSyncObj) { PyObject *__pyx_v__cnvSciSyncObj = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 8797, 0, __PYX_ERR(0, 8797, __pyx_L1_error)); /* "cuda/cudart.pyx":8799 * @nvSciSyncObj.setter * def nvSciSyncObj(self, nvSciSyncObj): * _cnvSciSyncObj = utils.HelperInputVoidPtr(nvSciSyncObj) # <<<<<<<<<<<<<< * self._ptr[0].handle.nvSciSyncObj = _cnvSciSyncObj.cptr * */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_nvSciSyncObj); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8799, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__cnvSciSyncObj = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":8800 * def nvSciSyncObj(self, nvSciSyncObj): * _cnvSciSyncObj = utils.HelperInputVoidPtr(nvSciSyncObj) * self._ptr[0].handle.nvSciSyncObj = _cnvSciSyncObj.cptr # <<<<<<<<<<<<<< * * cdef class cudaExternalSemaphoreHandleDesc: */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v__cnvSciSyncObj, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8800, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8800, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).handle.nvSciSyncObj = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":8797 * def nvSciSyncObj(self): * return self._ptr[0].handle.nvSciSyncObj * @nvSciSyncObj.setter # <<<<<<<<<<<<<< * def nvSciSyncObj(self, nvSciSyncObj): * _cnvSciSyncObj = utils.HelperInputVoidPtr(nvSciSyncObj) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_union2.nvSciSyncObj.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v__cnvSciSyncObj); __Pyx_TraceReturn(Py_None, 0); __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_6cudart_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_6cudart_11anon_union2_10__reduce_cython__, "anon_union2.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_11anon_union2_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union2_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union2_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union2_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_anon_union2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union2_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_union2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__183) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_union2.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_11anon_union2_12__setstate_cython__, "anon_union2.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_11anon_union2_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union2_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union2_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_union2.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union2_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_anon_union2 *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union2_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_union2 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__184) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_union2.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8821 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._val_ptr = calloc(1, sizeof(ccudart.cudaExternalSemaphoreHandleDesc)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 8821, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 8821, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8821, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 8821, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreHandleDesc.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc___cinit__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; struct cudaExternalSemaphoreHandleDesc *__pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 8821, 0, __PYX_ERR(0, 8821, __pyx_L1_error)); /* "cuda/cudart.pyx":8822 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._val_ptr = calloc(1, sizeof(ccudart.cudaExternalSemaphoreHandleDesc)) * self._ptr = self._val_ptr */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":8823 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._val_ptr = calloc(1, sizeof(ccudart.cudaExternalSemaphoreHandleDesc)) # <<<<<<<<<<<<<< * self._ptr = self._val_ptr * else: */ __pyx_v_self->_val_ptr = ((struct cudaExternalSemaphoreHandleDesc *)calloc(1, (sizeof(struct cudaExternalSemaphoreHandleDesc)))); /* "cuda/cudart.pyx":8824 * if _ptr == 0: * self._val_ptr = calloc(1, sizeof(ccudart.cudaExternalSemaphoreHandleDesc)) * self._ptr = self._val_ptr # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_t_2 = __pyx_v_self->_val_ptr; __pyx_v_self->_ptr = __pyx_t_2; /* "cuda/cudart.pyx":8822 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._val_ptr = calloc(1, sizeof(ccudart.cudaExternalSemaphoreHandleDesc)) * self._ptr = self._val_ptr */ goto __pyx_L3; } /* "cuda/cudart.pyx":8826 * self._ptr = self._val_ptr * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * self._handle = anon_union2(_ptr=self._ptr) */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaExternalSemaphoreHandleDesc *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":8821 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._val_ptr = calloc(1, sizeof(ccudart.cudaExternalSemaphoreHandleDesc)) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreHandleDesc.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8827 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._handle = anon_union2(_ptr=self._ptr) * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 8827, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 8827, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8827, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 8827, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreHandleDesc.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_2__init__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 8827, 0, __PYX_ERR(0, 8827, __pyx_L1_error)); /* "cuda/cudart.pyx":8828 * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): * self._handle = anon_union2(_ptr=self._ptr) # <<<<<<<<<<<<<< * def __dealloc__(self): * if self._val_ptr is not NULL: */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8828, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8828, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 8828, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_anon_union2), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8828, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_handle); __Pyx_DECREF((PyObject *)__pyx_v_self->_handle); __pyx_v_self->_handle = ((struct __pyx_obj_4cuda_6cudart_anon_union2 *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":8827 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._handle = anon_union2(_ptr=self._ptr) * def __dealloc__(self): */ /* 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.cudart.cudaExternalSemaphoreHandleDesc.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8829 * def __init__(self, void_ptr _ptr = 0): * self._handle = anon_union2(_ptr=self._ptr) * def __dealloc__(self): # <<<<<<<<<<<<<< * if self._val_ptr is not NULL: * free(self._val_ptr) */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_31cudaExternalSemaphoreHandleDesc_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_4__dealloc__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 8829, 0, __PYX_ERR(0, 8829, __pyx_L1_error)); /* "cuda/cudart.pyx":8830 * self._handle = anon_union2(_ptr=self._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/cudart.pyx":8831 * def __dealloc__(self): * if self._val_ptr is not NULL: * free(self._val_ptr) # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ free(__pyx_v_self->_val_ptr); /* "cuda/cudart.pyx":8830 * self._handle = anon_union2(_ptr=self._ptr) * def __dealloc__(self): * if self._val_ptr is not NULL: # <<<<<<<<<<<<<< * free(self._val_ptr) * def getPtr(self): */ } /* "cuda/cudart.pyx":8829 * def __init__(self, void_ptr _ptr = 0): * self._handle = anon_union2(_ptr=self._ptr) * def __dealloc__(self): # <<<<<<<<<<<<<< * if self._val_ptr is not NULL: * free(self._val_ptr) */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaExternalSemaphoreHandleDesc.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":8832 * if self._val_ptr is not NULL: * free(self._val_ptr) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_31cudaExternalSemaphoreHandleDesc_6getPtr, "cudaExternalSemaphoreHandleDesc.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__185) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 8832, 0, __PYX_ERR(0, 8832, __pyx_L1_error)); /* "cuda/cudart.pyx":8833 * free(self._val_ptr) * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8833, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8832 * if self._val_ptr is not NULL: * free(self._val_ptr) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreHandleDesc.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8834 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_31cudaExternalSemaphoreHandleDesc_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_9genexpr33__pyx_v_line = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 8834, 0, __PYX_ERR(0, 8834, __pyx_L1_error)); /* "cuda/cudart.pyx":8835 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":8836 * def __repr__(self): * if self._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, 8836, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":8837 * if self._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/cudart.pyx":8838 * str_list = [] * try: * str_list += ['type : ' + str(self.type)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['type : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_type_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8838, __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, 8838, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_type, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8838, __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, 8838, __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)) __PYX_ERR(0, 8838, __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, 8838, __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/cudart.pyx":8837 * if self._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/cudart.pyx":8839 * try: * str_list += ['type : ' + str(self.type)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['type : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreHandleDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 8839, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":8840 * str_list += ['type : ' + str(self.type)] * except ValueError: * str_list += ['type : '] # <<<<<<<<<<<<<< * 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, 8840, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_type_ValueError); __Pyx_GIVEREF(__pyx_kp_u_type_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_type_ValueError)) __PYX_ERR(0, 8840, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8840, __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/cudart.pyx":8837 * if self._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/cudart.pyx":8841 * except ValueError: * str_list += ['type : '] * 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/cudart.pyx":8842 * str_list += ['type : '] * try: * str_list += ['handle :\n' + '\n'.join([' ' + line for line in str(self.handle).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['handle : '] */ { /* enter inner scope */ __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8842, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_handle_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8842, __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, 8842, __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, 8842, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 8842, __pyx_L20_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_11); __Pyx_INCREF(__pyx_t_6); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 8842, __pyx_L20_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8842, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_9genexpr33__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr33__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8842, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 8842, __pyx_L20_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_9genexpr33__pyx_v_line); __pyx_9genexpr33__pyx_v_line = 0; goto __pyx_L24_exit_scope; __pyx_L20_error:; __Pyx_XDECREF(__pyx_9genexpr33__pyx_v_line); __pyx_9genexpr33__pyx_v_line = 0; goto __pyx_L12_error; __pyx_L24_exit_scope:; } /* exit inner scope */ __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8842, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_handle_3, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8842, __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, 8842, __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)) __PYX_ERR(0, 8842, __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, 8842, __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/cudart.pyx":8841 * except ValueError: * str_list += ['type : '] * 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/cudart.pyx":8843 * try: * str_list += ['handle :\n' + '\n'.join([' ' + line for line in str(self.handle).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['handle : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreHandleDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 8843, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":8844 * str_list += ['handle :\n' + '\n'.join([' ' + line for line in str(self.handle).splitlines()])] * except ValueError: * str_list += ['handle : '] # <<<<<<<<<<<<<< * try: * str_list += ['flags : ' + str(self.flags)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8844, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_handle_ValueError); __Pyx_GIVEREF(__pyx_kp_u_handle_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_handle_ValueError)) __PYX_ERR(0, 8844, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8844, __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/cudart.pyx":8841 * except ValueError: * str_list += ['type : '] * 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/cudart.pyx":8845 * except ValueError: * str_list += ['handle : '] * 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/cudart.pyx":8846 * str_list += ['handle : '] * try: * str_list += ['flags : ' + str(self.flags)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['flags : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_flags_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8846, __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, 8846, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_flags, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8846, __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, 8846, __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)) __PYX_ERR(0, 8846, __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, 8846, __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/cudart.pyx":8845 * except ValueError: * str_list += ['handle : '] * 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/cudart.pyx":8847 * try: * str_list += ['flags : ' + str(self.flags)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['flags : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreHandleDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_8) < 0) __PYX_ERR(0, 8847, __pyx_L29_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":8848 * str_list += ['flags : ' + str(self.flags)] * except ValueError: * str_list += ['flags : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8848, __pyx_L29_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_flags_ValueError); __Pyx_GIVEREF(__pyx_kp_u_flags_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_flags_ValueError)) __PYX_ERR(0, 8848, __pyx_L29_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8848, __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/cudart.pyx":8845 * except ValueError: * str_list += ['handle : '] * 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/cudart.pyx":8849 * except ValueError: * str_list += ['flags : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8849, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8835 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":8851 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def type(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":8834 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaExternalSemaphoreHandleDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XDECREF(__pyx_9genexpr33__pyx_v_line); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8852 * else: * return '' * @property # <<<<<<<<<<<<<< * def type(self): * return cudaExternalSemaphoreHandleType(self._ptr[0].type) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_4type_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_31cudaExternalSemaphoreHandleDesc_4type___get__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_4type___get__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8852, 0, __PYX_ERR(0, 8852, __pyx_L1_error)); /* "cuda/cudart.pyx":8854 * @property * def type(self): * return cudaExternalSemaphoreHandleType(self._ptr[0].type) # <<<<<<<<<<<<<< * @type.setter * def type(self, type not None : cudaExternalSemaphoreHandleType): */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaExternalSemaphoreHandleType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8854, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaExternalSemaphoreHandleType((__pyx_v_self->_ptr[0]).type); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8854, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8854, __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/cudart.pyx":8852 * else: * return '' * @property # <<<<<<<<<<<<<< * def type(self): * return cudaExternalSemaphoreHandleType(self._ptr[0].type) */ /* 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.cudart.cudaExternalSemaphoreHandleDesc.type.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8855 * def type(self): * return cudaExternalSemaphoreHandleType(self._ptr[0].type) * @type.setter # <<<<<<<<<<<<<< * def type(self, type not None : cudaExternalSemaphoreHandleType): * self._ptr[0].type = type.value */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_4type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_type); /*proto*/ static int __pyx_pw_4cuda_6cudart_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, 8856, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_4type_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc *)__pyx_v_self), ((PyObject *)__pyx_v_type)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_4type_2__set__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc *__pyx_v_self, PyObject *__pyx_v_type) { int __pyx_r; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 8855, 0, __PYX_ERR(0, 8855, __pyx_L1_error)); /* "cuda/cudart.pyx":8857 * @type.setter * def type(self, type not None : cudaExternalSemaphoreHandleType): * self._ptr[0].type = type.value # <<<<<<<<<<<<<< * @property * def handle(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_type, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8857, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaExternalSemaphoreHandleType)__Pyx_PyInt_As_enum__cudaExternalSemaphoreHandleType(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 8857, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).type = __pyx_t_2; /* "cuda/cudart.pyx":8855 * def type(self): * return cudaExternalSemaphoreHandleType(self._ptr[0].type) * @type.setter # <<<<<<<<<<<<<< * def type(self, type not None : cudaExternalSemaphoreHandleType): * self._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.cudart.cudaExternalSemaphoreHandleDesc.type.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8858 * def type(self, type not None : cudaExternalSemaphoreHandleType): * self._ptr[0].type = type.value * @property # <<<<<<<<<<<<<< * def handle(self): * return self._handle */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_6handle_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_31cudaExternalSemaphoreHandleDesc_6handle___get__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_6handle___get__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8858, 0, __PYX_ERR(0, 8858, __pyx_L1_error)); /* "cuda/cudart.pyx":8860 * @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/cudart.pyx":8858 * def type(self, type not None : cudaExternalSemaphoreHandleType): * self._ptr[0].type = type.value * @property # <<<<<<<<<<<<<< * def handle(self): * return self._handle */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreHandleDesc.handle.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8861 * def handle(self): * return self._handle * @handle.setter # <<<<<<<<<<<<<< * def handle(self, handle not None : anon_union2): * string.memcpy(&self._ptr[0].handle, handle.getPtr(), sizeof(self._ptr[0].handle)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_6handle_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_handle); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_anon_union2, 0, "handle", 0))) __PYX_ERR(0, 8862, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_6handle_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_anon_union2 *)__pyx_v_handle)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_6handle_2__set__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_anon_union2 *__pyx_v_handle) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 8861, 0, __PYX_ERR(0, 8861, __pyx_L1_error)); /* "cuda/cudart.pyx":8863 * @handle.setter * def handle(self, handle not None : anon_union2): * string.memcpy(&self._ptr[0].handle, handle.getPtr(), sizeof(self._ptr[0].handle)) # <<<<<<<<<<<<<< * @property * def flags(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_handle), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8863, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).handle), ((union anon_union2 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).handle)))); /* "cuda/cudart.pyx":8861 * def handle(self): * return self._handle * @handle.setter # <<<<<<<<<<<<<< * def handle(self, handle not None : anon_union2): * string.memcpy(&self._ptr[0].handle, handle.getPtr(), sizeof(self._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_AddTraceback("cuda.cudart.cudaExternalSemaphoreHandleDesc.handle.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8864 * def handle(self, handle not None : anon_union2): * string.memcpy(&self._ptr[0].handle, handle.getPtr(), sizeof(self._ptr[0].handle)) * @property # <<<<<<<<<<<<<< * def flags(self): * return self._ptr[0].flags */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_5flags_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_31cudaExternalSemaphoreHandleDesc_5flags___get__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_5flags___get__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8864, 0, __PYX_ERR(0, 8864, __pyx_L1_error)); /* "cuda/cudart.pyx":8866 * @property * def flags(self): * return self._ptr[0].flags # <<<<<<<<<<<<<< * @flags.setter * def flags(self, unsigned int flags): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).flags); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8866, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8864 * def handle(self, handle not None : anon_union2): * string.memcpy(&self._ptr[0].handle, handle.getPtr(), sizeof(self._ptr[0].handle)) * @property # <<<<<<<<<<<<<< * def flags(self): * return self._ptr[0].flags */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreHandleDesc.flags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8867 * def flags(self): * return self._ptr[0].flags * @flags.setter # <<<<<<<<<<<<<< * def flags(self, unsigned int flags): * self._ptr[0].flags = flags */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_flags); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8868, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreHandleDesc.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_5flags_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc *)__pyx_v_self), ((unsigned int)__pyx_v_flags)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_5flags_2__set__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc *__pyx_v_self, unsigned int __pyx_v_flags) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8867, 0, __PYX_ERR(0, 8867, __pyx_L1_error)); /* "cuda/cudart.pyx":8869 * @flags.setter * def flags(self, unsigned int flags): * self._ptr[0].flags = flags # <<<<<<<<<<<<<< * * cdef class anon_struct13: */ (__pyx_v_self->_ptr[0]).flags = __pyx_v_flags; /* "cuda/cudart.pyx":8867 * def flags(self): * return self._ptr[0].flags * @flags.setter # <<<<<<<<<<<<<< * def flags(self, unsigned int flags): * self._ptr[0].flags = flags */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreHandleDesc.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_31cudaExternalSemaphoreHandleDesc_10__reduce_cython__, "cudaExternalSemaphoreHandleDesc.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__186) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaExternalSemaphoreHandleDesc.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_31cudaExternalSemaphoreHandleDesc_12__setstate_cython__, "cudaExternalSemaphoreHandleDesc.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreHandleDesc.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__187) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaExternalSemaphoreHandleDesc.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8884 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct13_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct13_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 8884, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 8884, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8884, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 8884, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct13.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct13___cinit__(((struct __pyx_obj_4cuda_6cudart_anon_struct13 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct13___cinit__(struct __pyx_obj_4cuda_6cudart_anon_struct13 *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 8884, 0, __PYX_ERR(0, 8884, __pyx_L1_error)); /* "cuda/cudart.pyx":8885 * """ * def __cinit__(self, void_ptr _ptr): * self._ptr = _ptr # <<<<<<<<<<<<<< * * def __init__(self, void_ptr _ptr): */ __pyx_v_self->_ptr = ((struct cudaExternalSemaphoreSignalParams *)__pyx_v__ptr); /* "cuda/cudart.pyx":8884 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct13.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8887 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct13_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct13_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 8887, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 8887, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8887, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 8887, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct13.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct13_2__init__(((struct __pyx_obj_4cuda_6cudart_anon_struct13 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct13_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct13 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 8887, 0, __PYX_ERR(0, 8887, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct13.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8889 * def __init__(self, void_ptr _ptr): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_13anon_struct13_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_13anon_struct13_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_anon_struct13 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_13anon_struct13_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct13 *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 8889, 0, __PYX_ERR(0, 8889, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.anon_struct13.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":8891 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].params.fence * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_13anon_struct13_6getPtr, "anon_struct13.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_13anon_struct13_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct13_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct13_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct13_6getPtr(((struct __pyx_obj_4cuda_6cudart_anon_struct13 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct13_6getPtr(struct __pyx_obj_4cuda_6cudart_anon_struct13 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__188) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 8891, 0, __PYX_ERR(0, 8891, __pyx_L1_error)); /* "cuda/cudart.pyx":8892 * pass * def getPtr(self): * return &self._ptr[0].params.fence # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).params.fence))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8892, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8891 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].params.fence * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct13.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8893 * def getPtr(self): * return &self._ptr[0].params.fence * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct13_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_13anon_struct13_8__repr__(((struct __pyx_obj_4cuda_6cudart_anon_struct13 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct13_8__repr__(struct __pyx_obj_4cuda_6cudart_anon_struct13 *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 8893, 0, __PYX_ERR(0, 8893, __pyx_L1_error)); /* "cuda/cudart.pyx":8894 * return &self._ptr[0].params.fence * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":8895 * def __repr__(self): * if self._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, 8895, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":8896 * if self._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/cudart.pyx":8897 * str_list = [] * try: * str_list += ['value : ' + str(self.value)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['value : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8897, __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, 8897, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_value_2, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8897, __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, 8897, __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)) __PYX_ERR(0, 8897, __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, 8897, __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/cudart.pyx":8896 * if self._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/cudart.pyx":8898 * try: * str_list += ['value : ' + str(self.value)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['value : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 8898, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":8899 * str_list += ['value : ' + str(self.value)] * except ValueError: * str_list += ['value : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8899, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_value_ValueError); __Pyx_GIVEREF(__pyx_kp_u_value_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_value_ValueError)) __PYX_ERR(0, 8899, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8899, __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/cudart.pyx":8896 * if self._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/cudart.pyx":8900 * except ValueError: * str_list += ['value : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8900, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8894 * return &self._ptr[0].params.fence * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":8902 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def value(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":8893 * def getPtr(self): * return &self._ptr[0].params.fence * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8903 * else: * return '' * @property # <<<<<<<<<<<<<< * def value(self): * return self._ptr[0].params.fence.value */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct13_5value_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_13anon_struct13_5value___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct13 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct13_5value___get__(struct __pyx_obj_4cuda_6cudart_anon_struct13 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8903, 0, __PYX_ERR(0, 8903, __pyx_L1_error)); /* "cuda/cudart.pyx":8905 * @property * def value(self): * return self._ptr[0].params.fence.value # <<<<<<<<<<<<<< * @value.setter * def value(self, unsigned long long value): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG((__pyx_v_self->_ptr[0]).params.fence.value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8905, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8903 * else: * return '' * @property # <<<<<<<<<<<<<< * def value(self): * return self._ptr[0].params.fence.value */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct13.value.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8906 * def value(self): * return self._ptr[0].params.fence.value * @value.setter # <<<<<<<<<<<<<< * def value(self, unsigned long long value): * self._ptr[0].params.fence.value = value */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct13_5value_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_PY_LONG_LONG(__pyx_arg_value); if (unlikely((__pyx_v_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8907, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct13.value.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct13_5value_2__set__(((struct __pyx_obj_4cuda_6cudart_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_6cudart_13anon_struct13_5value_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct13 *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_value) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8906, 0, __PYX_ERR(0, 8906, __pyx_L1_error)); /* "cuda/cudart.pyx":8908 * @value.setter * def value(self, unsigned long long value): * self._ptr[0].params.fence.value = value # <<<<<<<<<<<<<< * * cdef class anon_union5: */ (__pyx_v_self->_ptr[0]).params.fence.value = __pyx_v_value; /* "cuda/cudart.pyx":8906 * def value(self): * return self._ptr[0].params.fence.value * @value.setter # <<<<<<<<<<<<<< * def value(self, unsigned long long value): * self._ptr[0].params.fence.value = value */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct13.value.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_13anon_struct13_10__reduce_cython__, "anon_struct13.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_13anon_struct13_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct13_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct13_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct13_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct13 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct13_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct13 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__189) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct13.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_13anon_struct13_12__setstate_cython__, "anon_struct13.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_13anon_struct13_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct13_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct13_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct13.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct13_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct13 *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct13_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct13 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__190) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct13.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8925 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_11anon_union5_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_11anon_union5_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 8925, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 8925, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8925, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 8925, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_union5.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union5___cinit__(((struct __pyx_obj_4cuda_6cudart_anon_union5 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_11anon_union5___cinit__(struct __pyx_obj_4cuda_6cudart_anon_union5 *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 8925, 0, __PYX_ERR(0, 8925, __pyx_L1_error)); /* "cuda/cudart.pyx":8926 * """ * def __cinit__(self, void_ptr _ptr): * self._ptr = _ptr # <<<<<<<<<<<<<< * * def __init__(self, void_ptr _ptr): */ __pyx_v_self->_ptr = ((struct cudaExternalSemaphoreSignalParams *)__pyx_v__ptr); /* "cuda/cudart.pyx":8925 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_union5.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8928 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_11anon_union5_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_11anon_union5_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 8928, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 8928, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8928, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 8928, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_union5.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union5_2__init__(((struct __pyx_obj_4cuda_6cudart_anon_union5 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_11anon_union5_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_union5 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 8928, 0, __PYX_ERR(0, 8928, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_union5.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8930 * def __init__(self, void_ptr _ptr): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_11anon_union5_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_11anon_union5_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_anon_union5 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_11anon_union5_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_union5 *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 8930, 0, __PYX_ERR(0, 8930, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.anon_union5.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":8932 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].params.nvSciSync * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_11anon_union5_6getPtr, "anon_union5.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_11anon_union5_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union5_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union5_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union5_6getPtr(((struct __pyx_obj_4cuda_6cudart_anon_union5 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union5_6getPtr(struct __pyx_obj_4cuda_6cudart_anon_union5 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__191) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 8932, 0, __PYX_ERR(0, 8932, __pyx_L1_error)); /* "cuda/cudart.pyx":8933 * pass * def getPtr(self): * return &self._ptr[0].params.nvSciSync # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).params.nvSciSync))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8933, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8932 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].params.nvSciSync * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_union5.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8934 * def getPtr(self): * return &self._ptr[0].params.nvSciSync * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_11anon_union5_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_11anon_union5_8__repr__(((struct __pyx_obj_4cuda_6cudart_anon_union5 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union5_8__repr__(struct __pyx_obj_4cuda_6cudart_anon_union5 *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 8934, 0, __PYX_ERR(0, 8934, __pyx_L1_error)); /* "cuda/cudart.pyx":8935 * return &self._ptr[0].params.nvSciSync * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":8936 * def __repr__(self): * if self._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, 8936, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":8937 * if self._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/cudart.pyx":8938 * str_list = [] * try: * str_list += ['fence : ' + hex(self.fence)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['fence : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_fence_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8938, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8938, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_kp_u_fence, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8938, __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, 8938, __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)) __PYX_ERR(0, 8938, __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, 8938, __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/cudart.pyx":8937 * if self._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/cudart.pyx":8939 * try: * str_list += ['fence : ' + hex(self.fence)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['fence : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 8939, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":8940 * str_list += ['fence : ' + hex(self.fence)] * except ValueError: * str_list += ['fence : '] # <<<<<<<<<<<<<< * try: * str_list += ['reserved : ' + str(self.reserved)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8940, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_fence_ValueError); __Pyx_GIVEREF(__pyx_kp_u_fence_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_fence_ValueError)) __PYX_ERR(0, 8940, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8940, __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/cudart.pyx":8937 * if self._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/cudart.pyx":8941 * except ValueError: * str_list += ['fence : '] * 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/cudart.pyx":8942 * str_list += ['fence : '] * try: * str_list += ['reserved : ' + str(self.reserved)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['reserved : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_reserved_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8942, __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, 8942, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_reserved, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8942, __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, 8942, __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)) __PYX_ERR(0, 8942, __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, 8942, __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/cudart.pyx":8941 * except ValueError: * str_list += ['fence : '] * 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/cudart.pyx":8943 * try: * str_list += ['reserved : ' + str(self.reserved)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['reserved : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 8943, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":8944 * str_list += ['reserved : ' + str(self.reserved)] * except ValueError: * str_list += ['reserved : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8944, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_reserved_ValueError); __Pyx_GIVEREF(__pyx_kp_u_reserved_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_reserved_ValueError)) __PYX_ERR(0, 8944, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8944, __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/cudart.pyx":8941 * except ValueError: * str_list += ['fence : '] * 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/cudart.pyx":8945 * except ValueError: * str_list += ['reserved : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8945, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8935 * return &self._ptr[0].params.nvSciSync * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":8947 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def fence(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":8934 * def getPtr(self): * return &self._ptr[0].params.nvSciSync * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8948 * else: * return '' * @property # <<<<<<<<<<<<<< * def fence(self): * return self._ptr[0].params.nvSciSync.fence */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_11anon_union5_5fence_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_11anon_union5_5fence___get__(((struct __pyx_obj_4cuda_6cudart_anon_union5 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union5_5fence___get__(struct __pyx_obj_4cuda_6cudart_anon_union5 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8948, 0, __PYX_ERR(0, 8948, __pyx_L1_error)); /* "cuda/cudart.pyx":8950 * @property * def fence(self): * return self._ptr[0].params.nvSciSync.fence # <<<<<<<<<<<<<< * @fence.setter * def fence(self, fence): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).params.nvSciSync.fence)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8950, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8948 * else: * return '' * @property # <<<<<<<<<<<<<< * def fence(self): * return self._ptr[0].params.nvSciSync.fence */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_union5.fence.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8951 * def fence(self): * return self._ptr[0].params.nvSciSync.fence * @fence.setter # <<<<<<<<<<<<<< * def fence(self, fence): * _cfence = utils.HelperInputVoidPtr(fence) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_11anon_union5_5fence_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_fence); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_11anon_union5_5fence_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_union5 *)__pyx_v_self), ((PyObject *)__pyx_v_fence)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_11anon_union5_5fence_2__set__(struct __pyx_obj_4cuda_6cudart_anon_union5 *__pyx_v_self, PyObject *__pyx_v_fence) { PyObject *__pyx_v__cfence = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 8951, 0, __PYX_ERR(0, 8951, __pyx_L1_error)); /* "cuda/cudart.pyx":8953 * @fence.setter * def fence(self, fence): * _cfence = utils.HelperInputVoidPtr(fence) # <<<<<<<<<<<<<< * self._ptr[0].params.nvSciSync.fence = _cfence.cptr * @property */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_fence); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8953, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__cfence = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":8954 * def fence(self, fence): * _cfence = utils.HelperInputVoidPtr(fence) * self._ptr[0].params.nvSciSync.fence = _cfence.cptr # <<<<<<<<<<<<<< * @property * def reserved(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v__cfence, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8954, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8954, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).params.nvSciSync.fence = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":8951 * def fence(self): * return self._ptr[0].params.nvSciSync.fence * @fence.setter # <<<<<<<<<<<<<< * def fence(self, fence): * _cfence = utils.HelperInputVoidPtr(fence) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_union5.fence.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v__cfence); __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8955 * _cfence = utils.HelperInputVoidPtr(fence) * self._ptr[0].params.nvSciSync.fence = _cfence.cptr * @property # <<<<<<<<<<<<<< * def reserved(self): * return self._ptr[0].params.nvSciSync.reserved */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_11anon_union5_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_11anon_union5_8reserved___get__(((struct __pyx_obj_4cuda_6cudart_anon_union5 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union5_8reserved___get__(struct __pyx_obj_4cuda_6cudart_anon_union5 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8955, 0, __PYX_ERR(0, 8955, __pyx_L1_error)); /* "cuda/cudart.pyx":8957 * @property * def reserved(self): * return self._ptr[0].params.nvSciSync.reserved # <<<<<<<<<<<<<< * @reserved.setter * def reserved(self, unsigned long long reserved): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG((__pyx_v_self->_ptr[0]).params.nvSciSync.reserved); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8957, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8955 * _cfence = utils.HelperInputVoidPtr(fence) * self._ptr[0].params.nvSciSync.fence = _cfence.cptr * @property # <<<<<<<<<<<<<< * def reserved(self): * return self._ptr[0].params.nvSciSync.reserved */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_union5.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8958 * def reserved(self): * return self._ptr[0].params.nvSciSync.reserved * @reserved.setter # <<<<<<<<<<<<<< * def reserved(self, unsigned long long reserved): * self._ptr[0].params.nvSciSync.reserved = reserved */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_11anon_union5_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_reserved); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_PY_LONG_LONG(__pyx_arg_reserved); if (unlikely((__pyx_v_reserved == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8959, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.anon_union5.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union5_8reserved_2__set__(((struct __pyx_obj_4cuda_6cudart_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_6cudart_11anon_union5_8reserved_2__set__(struct __pyx_obj_4cuda_6cudart_anon_union5 *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_reserved) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8958, 0, __PYX_ERR(0, 8958, __pyx_L1_error)); /* "cuda/cudart.pyx":8960 * @reserved.setter * def reserved(self, unsigned long long reserved): * self._ptr[0].params.nvSciSync.reserved = reserved # <<<<<<<<<<<<<< * * cdef class anon_struct14: */ (__pyx_v_self->_ptr[0]).params.nvSciSync.reserved = __pyx_v_reserved; /* "cuda/cudart.pyx":8958 * def reserved(self): * return self._ptr[0].params.nvSciSync.reserved * @reserved.setter # <<<<<<<<<<<<<< * def reserved(self, unsigned long long reserved): * self._ptr[0].params.nvSciSync.reserved = reserved */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_union5.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_11anon_union5_10__reduce_cython__, "anon_union5.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_11anon_union5_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union5_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union5_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union5_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_anon_union5 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union5_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_union5 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__192) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_union5.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_11anon_union5_12__setstate_cython__, "anon_union5.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_11anon_union5_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union5_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union5_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_union5.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union5_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_anon_union5 *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union5_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_union5 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__193) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_union5.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8975 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct14_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct14_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 8975, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 8975, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8975, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 8975, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct14.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct14___cinit__(((struct __pyx_obj_4cuda_6cudart_anon_struct14 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct14___cinit__(struct __pyx_obj_4cuda_6cudart_anon_struct14 *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 8975, 0, __PYX_ERR(0, 8975, __pyx_L1_error)); /* "cuda/cudart.pyx":8976 * """ * def __cinit__(self, void_ptr _ptr): * self._ptr = _ptr # <<<<<<<<<<<<<< * * def __init__(self, void_ptr _ptr): */ __pyx_v_self->_ptr = ((struct cudaExternalSemaphoreSignalParams *)__pyx_v__ptr); /* "cuda/cudart.pyx":8975 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct14.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8978 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct14_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct14_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 8978, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 8978, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8978, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 8978, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct14.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct14_2__init__(((struct __pyx_obj_4cuda_6cudart_anon_struct14 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct14_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct14 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 8978, 0, __PYX_ERR(0, 8978, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct14.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":8980 * def __init__(self, void_ptr _ptr): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_13anon_struct14_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_13anon_struct14_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_anon_struct14 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_13anon_struct14_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct14 *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 8980, 0, __PYX_ERR(0, 8980, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.anon_struct14.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":8982 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].params.keyedMutex * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_13anon_struct14_6getPtr, "anon_struct14.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_13anon_struct14_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct14_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct14_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct14_6getPtr(((struct __pyx_obj_4cuda_6cudart_anon_struct14 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct14_6getPtr(struct __pyx_obj_4cuda_6cudart_anon_struct14 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__194) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 8982, 0, __PYX_ERR(0, 8982, __pyx_L1_error)); /* "cuda/cudart.pyx":8983 * pass * def getPtr(self): * return &self._ptr[0].params.keyedMutex # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).params.keyedMutex))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8983, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8982 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].params.keyedMutex * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct14.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8984 * def getPtr(self): * return &self._ptr[0].params.keyedMutex * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct14_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_13anon_struct14_8__repr__(((struct __pyx_obj_4cuda_6cudart_anon_struct14 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct14_8__repr__(struct __pyx_obj_4cuda_6cudart_anon_struct14 *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 8984, 0, __PYX_ERR(0, 8984, __pyx_L1_error)); /* "cuda/cudart.pyx":8985 * return &self._ptr[0].params.keyedMutex * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":8986 * def __repr__(self): * if self._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, 8986, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":8987 * if self._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/cudart.pyx":8988 * str_list = [] * try: * str_list += ['key : ' + str(self.key)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['key : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_key_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8988, __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, 8988, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_key, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8988, __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, 8988, __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)) __PYX_ERR(0, 8988, __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, 8988, __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/cudart.pyx":8987 * if self._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/cudart.pyx":8989 * try: * str_list += ['key : ' + str(self.key)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['key : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 8989, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":8990 * str_list += ['key : ' + str(self.key)] * except ValueError: * str_list += ['key : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8990, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_key_ValueError); __Pyx_GIVEREF(__pyx_kp_u_key_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_key_ValueError)) __PYX_ERR(0, 8990, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8990, __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/cudart.pyx":8987 * if self._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/cudart.pyx":8991 * except ValueError: * str_list += ['key : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8991, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8985 * return &self._ptr[0].params.keyedMutex * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":8993 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def key(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":8984 * def getPtr(self): * return &self._ptr[0].params.keyedMutex * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8994 * else: * return '' * @property # <<<<<<<<<<<<<< * def key(self): * return self._ptr[0].params.keyedMutex.key */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct14_3key_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_13anon_struct14_3key___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct14 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct14_3key___get__(struct __pyx_obj_4cuda_6cudart_anon_struct14 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 8994, 0, __PYX_ERR(0, 8994, __pyx_L1_error)); /* "cuda/cudart.pyx":8996 * @property * def key(self): * return self._ptr[0].params.keyedMutex.key # <<<<<<<<<<<<<< * @key.setter * def key(self, unsigned long long key): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG((__pyx_v_self->_ptr[0]).params.keyedMutex.key); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8996, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":8994 * else: * return '' * @property # <<<<<<<<<<<<<< * def key(self): * return self._ptr[0].params.keyedMutex.key */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct14.key.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":8997 * def key(self): * return self._ptr[0].params.keyedMutex.key * @key.setter # <<<<<<<<<<<<<< * def key(self, unsigned long long key): * self._ptr[0].params.keyedMutex.key = key */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct14_3key_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_key); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_PY_LONG_LONG(__pyx_arg_key); if (unlikely((__pyx_v_key == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8998, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct14.key.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct14_3key_2__set__(((struct __pyx_obj_4cuda_6cudart_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_6cudart_13anon_struct14_3key_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct14 *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_key) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 8997, 0, __PYX_ERR(0, 8997, __pyx_L1_error)); /* "cuda/cudart.pyx":8999 * @key.setter * def key(self, unsigned long long key): * self._ptr[0].params.keyedMutex.key = key # <<<<<<<<<<<<<< * * cdef class anon_struct15: */ (__pyx_v_self->_ptr[0]).params.keyedMutex.key = __pyx_v_key; /* "cuda/cudart.pyx":8997 * def key(self): * return self._ptr[0].params.keyedMutex.key * @key.setter # <<<<<<<<<<<<<< * def key(self, unsigned long long key): * self._ptr[0].params.keyedMutex.key = key */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct14.key.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_13anon_struct14_10__reduce_cython__, "anon_struct14.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_13anon_struct14_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct14_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct14_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct14_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct14 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct14_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct14 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__195) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct14.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_13anon_struct14_12__setstate_cython__, "anon_struct14.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_13anon_struct14_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct14_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct14_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct14.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct14_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct14 *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct14_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct14 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__196) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct14.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9020 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct15_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct15_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 9020, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 9020, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9020, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 9020, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct15.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct15___cinit__(((struct __pyx_obj_4cuda_6cudart_anon_struct15 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct15___cinit__(struct __pyx_obj_4cuda_6cudart_anon_struct15 *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 9020, 0, __PYX_ERR(0, 9020, __pyx_L1_error)); /* "cuda/cudart.pyx":9021 * """ * def __cinit__(self, void_ptr _ptr): * self._ptr = _ptr # <<<<<<<<<<<<<< * * def __init__(self, void_ptr _ptr): */ __pyx_v_self->_ptr = ((struct cudaExternalSemaphoreSignalParams *)__pyx_v__ptr); /* "cuda/cudart.pyx":9020 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct15.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":9023 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._fence = anon_struct13(_ptr=self._ptr) * self._nvSciSync = anon_union5(_ptr=self._ptr) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct15_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct15_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 9023, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 9023, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9023, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 9023, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct15.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct15_2__init__(((struct __pyx_obj_4cuda_6cudart_anon_struct15 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct15_2__init__(struct __pyx_obj_4cuda_6cudart_anon_struct15 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 9023, 0, __PYX_ERR(0, 9023, __pyx_L1_error)); /* "cuda/cudart.pyx":9024 * * def __init__(self, void_ptr _ptr): * self._fence = anon_struct13(_ptr=self._ptr) # <<<<<<<<<<<<<< * self._nvSciSync = anon_union5(_ptr=self._ptr) * self._keyedMutex = anon_struct14(_ptr=self._ptr) */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9024, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9024, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 9024, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct13), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9024, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_fence); __Pyx_DECREF((PyObject *)__pyx_v_self->_fence); __pyx_v_self->_fence = ((struct __pyx_obj_4cuda_6cudart_anon_struct13 *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":9025 * def __init__(self, void_ptr _ptr): * self._fence = anon_struct13(_ptr=self._ptr) * self._nvSciSync = anon_union5(_ptr=self._ptr) # <<<<<<<<<<<<<< * self._keyedMutex = anon_struct14(_ptr=self._ptr) * def __dealloc__(self): */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9025, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9025, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_ptr, __pyx_t_1) < 0) __PYX_ERR(0, 9025, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_anon_union5), __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9025, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GIVEREF(__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_6cudart_anon_union5 *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":9026 * self._fence = anon_struct13(_ptr=self._ptr) * self._nvSciSync = anon_union5(_ptr=self._ptr) * self._keyedMutex = anon_struct14(_ptr=self._ptr) # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9026, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9026, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 9026, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct14), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9026, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_keyedMutex); __Pyx_DECREF((PyObject *)__pyx_v_self->_keyedMutex); __pyx_v_self->_keyedMutex = ((struct __pyx_obj_4cuda_6cudart_anon_struct14 *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":9023 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._fence = anon_struct13(_ptr=self._ptr) * self._nvSciSync = anon_union5(_ptr=self._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.cudart.anon_struct15.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9027 * self._nvSciSync = anon_union5(_ptr=self._ptr) * self._keyedMutex = anon_struct14(_ptr=self._ptr) * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_13anon_struct15_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_13anon_struct15_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_anon_struct15 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_13anon_struct15_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct15 *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 9027, 0, __PYX_ERR(0, 9027, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.anon_struct15.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":9029 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].params * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_13anon_struct15_6getPtr, "anon_struct15.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_13anon_struct15_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct15_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct15_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct15_6getPtr(((struct __pyx_obj_4cuda_6cudart_anon_struct15 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct15_6getPtr(struct __pyx_obj_4cuda_6cudart_anon_struct15 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__197) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 9029, 0, __PYX_ERR(0, 9029, __pyx_L1_error)); /* "cuda/cudart.pyx":9030 * pass * def getPtr(self): * return &self._ptr[0].params # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).params))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9030, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9029 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].params * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct15.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9031 * def getPtr(self): * return &self._ptr[0].params * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct15_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_13anon_struct15_8__repr__(((struct __pyx_obj_4cuda_6cudart_anon_struct15 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct15_8__repr__(struct __pyx_obj_4cuda_6cudart_anon_struct15 *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_9genexpr34__pyx_v_line = NULL; PyObject *__pyx_9genexpr35__pyx_v_line = NULL; PyObject *__pyx_9genexpr36__pyx_v_line = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 9031, 0, __PYX_ERR(0, 9031, __pyx_L1_error)); /* "cuda/cudart.pyx":9032 * return &self._ptr[0].params * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":9033 * def __repr__(self): * if self._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, 9033, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":9034 * if self._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/cudart.pyx":9035 * str_list = [] * try: * str_list += ['fence :\n' + '\n'.join([' ' + line for line in str(self.fence).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['fence : '] */ { /* enter inner scope */ __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9035, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_fence_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9035, __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, 9035, __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, 9035, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 9035, __pyx_L12_error) #endif if (__pyx_t_8 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_7, __pyx_t_8); __Pyx_INCREF(__pyx_t_6); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(0, 9035, __pyx_L12_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9035, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_9genexpr34__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr34__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9035, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 9035, __pyx_L12_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_9genexpr34__pyx_v_line); __pyx_9genexpr34__pyx_v_line = 0; goto __pyx_L16_exit_scope; __pyx_L12_error:; __Pyx_XDECREF(__pyx_9genexpr34__pyx_v_line); __pyx_9genexpr34__pyx_v_line = 0; goto __pyx_L4_error; __pyx_L16_exit_scope:; } /* exit inner scope */ __pyx_t_7 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9035, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_fence_3, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9035, __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, 9035, __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)) __PYX_ERR(0, 9035, __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, 9035, __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/cudart.pyx":9034 * if self._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/cudart.pyx":9036 * try: * str_list += ['fence :\n' + '\n'.join([' ' + line for line in str(self.fence).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['fence : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.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, 9036, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":9037 * str_list += ['fence :\n' + '\n'.join([' ' + line for line in str(self.fence).splitlines()])] * except ValueError: * str_list += ['fence : '] # <<<<<<<<<<<<<< * 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, 9037, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_fence_ValueError); __Pyx_GIVEREF(__pyx_kp_u_fence_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_fence_ValueError)) __PYX_ERR(0, 9037, __pyx_L6_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9037, __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/cudart.pyx":9034 * if self._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/cudart.pyx":9038 * except ValueError: * str_list += ['fence : '] * 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/cudart.pyx":9039 * str_list += ['fence : '] * try: * str_list += ['nvSciSync :\n' + '\n'.join([' ' + line for line in str(self.nvSciSync).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['nvSciSync : '] */ { /* enter inner scope */ __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9039, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_nvSciSync_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9039, __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, 9039, __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, 9039, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 9039, __pyx_L27_error) #endif if (__pyx_t_8 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_7 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_8); __Pyx_INCREF(__pyx_t_7); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(0, 9039, __pyx_L27_error) #else __pyx_t_7 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9039, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_7); #endif __Pyx_XDECREF_SET(__pyx_9genexpr35__pyx_v_line, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr35__pyx_v_line); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9039, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_7); if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_7))) __PYX_ERR(0, 9039, __pyx_L27_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_9genexpr35__pyx_v_line); __pyx_9genexpr35__pyx_v_line = 0; goto __pyx_L31_exit_scope; __pyx_L27_error:; __Pyx_XDECREF(__pyx_9genexpr35__pyx_v_line); __pyx_9genexpr35__pyx_v_line = 0; goto __pyx_L19_error; __pyx_L31_exit_scope:; } /* exit inner scope */ __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9039, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_nvSciSync, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9039, __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, 9039, __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)) __PYX_ERR(0, 9039, __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, 9039, __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/cudart.pyx":9038 * except ValueError: * str_list += ['fence : '] * 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/cudart.pyx":9040 * try: * str_list += ['nvSciSync :\n' + '\n'.join([' ' + line for line in str(self.nvSciSync).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['nvSciSync : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.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, 9040, __pyx_L21_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":9041 * str_list += ['nvSciSync :\n' + '\n'.join([' ' + line for line in str(self.nvSciSync).splitlines()])] * except ValueError: * str_list += ['nvSciSync : '] # <<<<<<<<<<<<<< * 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, 9041, __pyx_L21_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_nvSciSync_ValueError); __Pyx_GIVEREF(__pyx_kp_u_nvSciSync_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_nvSciSync_ValueError)) __PYX_ERR(0, 9041, __pyx_L21_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9041, __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/cudart.pyx":9038 * except ValueError: * str_list += ['fence : '] * 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/cudart.pyx":9042 * except ValueError: * str_list += ['nvSciSync : '] * 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/cudart.pyx":9043 * str_list += ['nvSciSync : '] * try: * str_list += ['keyedMutex :\n' + '\n'.join([' ' + line for line in str(self.keyedMutex).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['keyedMutex : '] */ { /* enter inner scope */ __pyx_t_7 = PyList_New(0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9043, __pyx_L42_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_keyedMutex_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9043, __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, 9043, __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, 9043, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 9043, __pyx_L42_error) #endif if (__pyx_t_8 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_2 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_8); __Pyx_INCREF(__pyx_t_2); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(0, 9043, __pyx_L42_error) #else __pyx_t_2 = __Pyx_PySequence_ITEM(__pyx_t_6, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9043, __pyx_L42_error) __Pyx_GOTREF(__pyx_t_2); #endif __Pyx_XDECREF_SET(__pyx_9genexpr36__pyx_v_line, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr36__pyx_v_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9043, __pyx_L42_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__Pyx_ListComp_Append(__pyx_t_7, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 9043, __pyx_L42_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_9genexpr36__pyx_v_line); __pyx_9genexpr36__pyx_v_line = 0; goto __pyx_L46_exit_scope; __pyx_L42_error:; __Pyx_XDECREF(__pyx_9genexpr36__pyx_v_line); __pyx_9genexpr36__pyx_v_line = 0; goto __pyx_L34_error; __pyx_L46_exit_scope:; } /* exit inner scope */ __pyx_t_6 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9043, __pyx_L34_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_keyedMutex, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9043, __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, 9043, __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)) __PYX_ERR(0, 9043, __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, 9043, __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/cudart.pyx":9042 * except ValueError: * str_list += ['nvSciSync : '] * 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/cudart.pyx":9044 * try: * str_list += ['keyedMutex :\n' + '\n'.join([' ' + line for line in str(self.keyedMutex).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['keyedMutex : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.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, 9044, __pyx_L36_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":9045 * str_list += ['keyedMutex :\n' + '\n'.join([' ' + line for line in str(self.keyedMutex).splitlines()])] * except ValueError: * str_list += ['keyedMutex : '] # <<<<<<<<<<<<<< * try: * str_list += ['reserved : ' + str(self.reserved)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9045, __pyx_L36_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_keyedMutex_ValueError); __Pyx_GIVEREF(__pyx_kp_u_keyedMutex_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_keyedMutex_ValueError)) __PYX_ERR(0, 9045, __pyx_L36_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9045, __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/cudart.pyx":9042 * except ValueError: * str_list += ['nvSciSync : '] * 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/cudart.pyx":9046 * except ValueError: * str_list += ['keyedMutex : '] * 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/cudart.pyx":9047 * str_list += ['keyedMutex : '] * try: * str_list += ['reserved : ' + str(self.reserved)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['reserved : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_reserved_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9047, __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, 9047, __pyx_L49_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_reserved, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9047, __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, 9047, __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)) __PYX_ERR(0, 9047, __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, 9047, __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/cudart.pyx":9046 * except ValueError: * str_list += ['keyedMutex : '] * 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/cudart.pyx":9048 * try: * str_list += ['reserved : ' + str(self.reserved)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['reserved : '] * return '\n'.join(str_list) */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.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, 9048, __pyx_L51_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":9049 * str_list += ['reserved : ' + str(self.reserved)] * except ValueError: * str_list += ['reserved : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9049, __pyx_L51_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_reserved_ValueError); __Pyx_GIVEREF(__pyx_kp_u_reserved_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_reserved_ValueError)) __PYX_ERR(0, 9049, __pyx_L51_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9049, __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/cudart.pyx":9046 * except ValueError: * str_list += ['keyedMutex : '] * 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/cudart.pyx":9050 * except ValueError: * str_list += ['reserved : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_7 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9050, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9032 * return &self._ptr[0].params * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":9052 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def fence(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":9031 * def getPtr(self): * return &self._ptr[0].params * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.anon_struct15.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XDECREF(__pyx_9genexpr34__pyx_v_line); __Pyx_XDECREF(__pyx_9genexpr35__pyx_v_line); __Pyx_XDECREF(__pyx_9genexpr36__pyx_v_line); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9053 * else: * return '' * @property # <<<<<<<<<<<<<< * def fence(self): * return self._fence */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct15_5fence_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_13anon_struct15_5fence___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct15 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct15_5fence___get__(struct __pyx_obj_4cuda_6cudart_anon_struct15 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9053, 0, __PYX_ERR(0, 9053, __pyx_L1_error)); /* "cuda/cudart.pyx":9055 * @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/cudart.pyx":9053 * else: * return '' * @property # <<<<<<<<<<<<<< * def fence(self): * return self._fence */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct15.fence.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9056 * def fence(self): * return self._fence * @fence.setter # <<<<<<<<<<<<<< * def fence(self, fence not None : anon_struct13): * string.memcpy(&self._ptr[0].params.fence, fence.getPtr(), sizeof(self._ptr[0].params.fence)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct15_5fence_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_fence); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_anon_struct13, 0, "fence", 0))) __PYX_ERR(0, 9057, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct15_5fence_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct15 *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_anon_struct13 *)__pyx_v_fence)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct15_5fence_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct15 *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_anon_struct13 *__pyx_v_fence) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 9056, 0, __PYX_ERR(0, 9056, __pyx_L1_error)); /* "cuda/cudart.pyx":9058 * @fence.setter * def fence(self, fence not None : anon_struct13): * string.memcpy(&self._ptr[0].params.fence, fence.getPtr(), sizeof(self._ptr[0].params.fence)) # <<<<<<<<<<<<<< * @property * def nvSciSync(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_fence), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9058, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9058, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9058, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).params.fence), ((struct anon_struct13 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).params.fence)))); /* "cuda/cudart.pyx":9056 * def fence(self): * return self._fence * @fence.setter # <<<<<<<<<<<<<< * def fence(self, fence not None : anon_struct13): * string.memcpy(&self._ptr[0].params.fence, fence.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.anon_struct15.fence.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9059 * def fence(self, fence not None : anon_struct13): * string.memcpy(&self._ptr[0].params.fence, fence.getPtr(), sizeof(self._ptr[0].params.fence)) * @property # <<<<<<<<<<<<<< * def nvSciSync(self): * return self._nvSciSync */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct15_9nvSciSync_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_13anon_struct15_9nvSciSync___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct15 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct15_9nvSciSync___get__(struct __pyx_obj_4cuda_6cudart_anon_struct15 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9059, 0, __PYX_ERR(0, 9059, __pyx_L1_error)); /* "cuda/cudart.pyx":9061 * @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/cudart.pyx":9059 * def fence(self, fence not None : anon_struct13): * string.memcpy(&self._ptr[0].params.fence, fence.getPtr(), sizeof(self._ptr[0].params.fence)) * @property # <<<<<<<<<<<<<< * def nvSciSync(self): * return self._nvSciSync */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct15.nvSciSync.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9062 * def nvSciSync(self): * return self._nvSciSync * @nvSciSync.setter # <<<<<<<<<<<<<< * def nvSciSync(self, nvSciSync not None : anon_union5): * string.memcpy(&self._ptr[0].params.nvSciSync, nvSciSync.getPtr(), sizeof(self._ptr[0].params.nvSciSync)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct15_9nvSciSync_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_nvSciSync); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_anon_union5, 0, "nvSciSync", 0))) __PYX_ERR(0, 9063, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct15_9nvSciSync_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct15 *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_anon_union5 *)__pyx_v_nvSciSync)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct15_9nvSciSync_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct15 *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_anon_union5 *__pyx_v_nvSciSync) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 9062, 0, __PYX_ERR(0, 9062, __pyx_L1_error)); /* "cuda/cudart.pyx":9064 * @nvSciSync.setter * def nvSciSync(self, nvSciSync not None : anon_union5): * string.memcpy(&self._ptr[0].params.nvSciSync, nvSciSync.getPtr(), sizeof(self._ptr[0].params.nvSciSync)) # <<<<<<<<<<<<<< * @property * def keyedMutex(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_nvSciSync), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9064, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9064, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9064, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).params.nvSciSync), ((union anon_union5 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).params.nvSciSync)))); /* "cuda/cudart.pyx":9062 * def nvSciSync(self): * return self._nvSciSync * @nvSciSync.setter # <<<<<<<<<<<<<< * def nvSciSync(self, nvSciSync not None : anon_union5): * string.memcpy(&self._ptr[0].params.nvSciSync, nvSciSync.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.anon_struct15.nvSciSync.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9065 * def nvSciSync(self, nvSciSync not None : anon_union5): * string.memcpy(&self._ptr[0].params.nvSciSync, nvSciSync.getPtr(), sizeof(self._ptr[0].params.nvSciSync)) * @property # <<<<<<<<<<<<<< * def keyedMutex(self): * return self._keyedMutex */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct15_10keyedMutex_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_13anon_struct15_10keyedMutex___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct15 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct15_10keyedMutex___get__(struct __pyx_obj_4cuda_6cudart_anon_struct15 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9065, 0, __PYX_ERR(0, 9065, __pyx_L1_error)); /* "cuda/cudart.pyx":9067 * @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/cudart.pyx":9065 * def nvSciSync(self, nvSciSync not None : anon_union5): * string.memcpy(&self._ptr[0].params.nvSciSync, nvSciSync.getPtr(), sizeof(self._ptr[0].params.nvSciSync)) * @property # <<<<<<<<<<<<<< * def keyedMutex(self): * return self._keyedMutex */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct15.keyedMutex.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9068 * def keyedMutex(self): * return self._keyedMutex * @keyedMutex.setter # <<<<<<<<<<<<<< * def keyedMutex(self, keyedMutex not None : anon_struct14): * string.memcpy(&self._ptr[0].params.keyedMutex, keyedMutex.getPtr(), sizeof(self._ptr[0].params.keyedMutex)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct15_10keyedMutex_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_keyedMutex); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_anon_struct14, 0, "keyedMutex", 0))) __PYX_ERR(0, 9069, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct15_10keyedMutex_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct15 *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_anon_struct14 *)__pyx_v_keyedMutex)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct15_10keyedMutex_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct15 *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_anon_struct14 *__pyx_v_keyedMutex) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 9068, 0, __PYX_ERR(0, 9068, __pyx_L1_error)); /* "cuda/cudart.pyx":9070 * @keyedMutex.setter * def keyedMutex(self, keyedMutex not None : anon_struct14): * string.memcpy(&self._ptr[0].params.keyedMutex, keyedMutex.getPtr(), sizeof(self._ptr[0].params.keyedMutex)) # <<<<<<<<<<<<<< * @property * def reserved(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_keyedMutex), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9070, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9070, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9070, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).params.keyedMutex), ((struct anon_struct14 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).params.keyedMutex)))); /* "cuda/cudart.pyx":9068 * def keyedMutex(self): * return self._keyedMutex * @keyedMutex.setter # <<<<<<<<<<<<<< * def keyedMutex(self, keyedMutex not None : anon_struct14): * string.memcpy(&self._ptr[0].params.keyedMutex, keyedMutex.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.anon_struct15.keyedMutex.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9071 * def keyedMutex(self, keyedMutex not None : anon_struct14): * string.memcpy(&self._ptr[0].params.keyedMutex, keyedMutex.getPtr(), sizeof(self._ptr[0].params.keyedMutex)) * @property # <<<<<<<<<<<<<< * def reserved(self): * return self._ptr[0].params.reserved */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct15_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_13anon_struct15_8reserved___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct15 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct15_8reserved___get__(struct __pyx_obj_4cuda_6cudart_anon_struct15 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9071, 0, __PYX_ERR(0, 9071, __pyx_L1_error)); /* "cuda/cudart.pyx":9073 * @property * def reserved(self): * return self._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->_ptr[0]).params.reserved, 12); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9073, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9071 * def keyedMutex(self, keyedMutex not None : anon_struct14): * string.memcpy(&self._ptr[0].params.keyedMutex, keyedMutex.getPtr(), sizeof(self._ptr[0].params.keyedMutex)) * @property # <<<<<<<<<<<<<< * def reserved(self): * return self._ptr[0].params.reserved */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct15.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9074 * def reserved(self): * return self._ptr[0].params.reserved * @reserved.setter # <<<<<<<<<<<<<< * def reserved(self, reserved): * self._ptr[0].params.reserved = reserved */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct15_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_13anon_struct15_8reserved_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct15 *)__pyx_v_self), ((PyObject *)__pyx_v_reserved)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct15_8reserved_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct15 *__pyx_v_self, PyObject *__pyx_v_reserved) { int __pyx_r; __Pyx_TraceDeclarations unsigned int __pyx_t_1[12]; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 9074, 0, __PYX_ERR(0, 9074, __pyx_L1_error)); /* "cuda/cudart.pyx":9076 * @reserved.setter * def reserved(self, reserved): * self._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, 9076, __pyx_L1_error) memcpy(&((__pyx_v_self->_ptr[0]).params.reserved[0]), __pyx_t_1, sizeof((__pyx_v_self->_ptr[0]).params.reserved[0]) * (12)); /* "cuda/cudart.pyx":9074 * def reserved(self): * return self._ptr[0].params.reserved * @reserved.setter # <<<<<<<<<<<<<< * def reserved(self, reserved): * self._ptr[0].params.reserved = reserved */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct15.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_13anon_struct15_10__reduce_cython__, "anon_struct15.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_13anon_struct15_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct15_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct15_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct15_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct15 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct15_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct15 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__198) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct15.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_13anon_struct15_12__setstate_cython__, "anon_struct15.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_13anon_struct15_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct15_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct15_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct15.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct15_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct15 *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct15_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct15 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__199) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct15.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9104 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 9104, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 9104, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9104, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 9104, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_33cudaExternalSemaphoreSignalParams___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_33cudaExternalSemaphoreSignalParams___cinit__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 9104, 0, __PYX_ERR(0, 9104, __pyx_L1_error)); /* "cuda/cudart.pyx":9105 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":9106 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaExternalSemaphoreSignalParams__val); /* "cuda/cudart.pyx":9105 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":9108 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * self._params = anon_struct15(_ptr=self._ptr) */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaExternalSemaphoreSignalParams *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":9104 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":9109 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._params = anon_struct15(_ptr=self._ptr) * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 9109, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 9109, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9109, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 9109, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_2__init__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 9109, 0, __PYX_ERR(0, 9109, __pyx_L1_error)); /* "cuda/cudart.pyx":9110 * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): * self._params = anon_struct15(_ptr=self._ptr) # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9110, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9110, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 9110, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct15), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9110, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_params); __Pyx_DECREF((PyObject *)__pyx_v_self->_params); __pyx_v_self->_params = ((struct __pyx_obj_4cuda_6cudart_anon_struct15 *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":9109 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._params = anon_struct15(_ptr=self._ptr) * def __dealloc__(self): */ /* 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.cudart.cudaExternalSemaphoreSignalParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9111 * def __init__(self, void_ptr _ptr = 0): * self._params = anon_struct15(_ptr=self._ptr) * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_33cudaExternalSemaphoreSignalParams_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 9111, 0, __PYX_ERR(0, 9111, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaExternalSemaphoreSignalParams.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":9113 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_33cudaExternalSemaphoreSignalParams_6getPtr, "cudaExternalSemaphoreSignalParams.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__200) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 9113, 0, __PYX_ERR(0, 9113, __pyx_L1_error)); /* "cuda/cudart.pyx":9114 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9114, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9113 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalParams.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9115 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_33cudaExternalSemaphoreSignalParams_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_9genexpr37__pyx_v_line = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 9115, 0, __PYX_ERR(0, 9115, __pyx_L1_error)); /* "cuda/cudart.pyx":9116 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":9117 * def __repr__(self): * if self._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, 9117, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":9118 * if self._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/cudart.pyx":9119 * str_list = [] * try: * str_list += ['params :\n' + '\n'.join([' ' + line for line in str(self.params).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['params : '] */ { /* enter inner scope */ __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9119, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_params_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9119, __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, 9119, __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, 9119, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 9119, __pyx_L12_error) #endif if (__pyx_t_8 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_7, __pyx_t_8); __Pyx_INCREF(__pyx_t_6); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(0, 9119, __pyx_L12_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9119, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_9genexpr37__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr37__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9119, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 9119, __pyx_L12_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_9genexpr37__pyx_v_line); __pyx_9genexpr37__pyx_v_line = 0; goto __pyx_L16_exit_scope; __pyx_L12_error:; __Pyx_XDECREF(__pyx_9genexpr37__pyx_v_line); __pyx_9genexpr37__pyx_v_line = 0; goto __pyx_L4_error; __pyx_L16_exit_scope:; } /* exit inner scope */ __pyx_t_7 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9119, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_params, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9119, __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, 9119, __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)) __PYX_ERR(0, 9119, __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, 9119, __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/cudart.pyx":9118 * if self._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/cudart.pyx":9120 * try: * str_list += ['params :\n' + '\n'.join([' ' + line for line in str(self.params).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['params : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 9120, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":9121 * str_list += ['params :\n' + '\n'.join([' ' + line for line in str(self.params).splitlines()])] * except ValueError: * str_list += ['params : '] # <<<<<<<<<<<<<< * try: * str_list += ['flags : ' + str(self.flags)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9121, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_params_ValueError); __Pyx_GIVEREF(__pyx_kp_u_params_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_params_ValueError)) __PYX_ERR(0, 9121, __pyx_L6_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9121, __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/cudart.pyx":9118 * if self._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/cudart.pyx":9122 * except ValueError: * str_list += ['params : '] * 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/cudart.pyx":9123 * str_list += ['params : '] * try: * str_list += ['flags : ' + str(self.flags)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['flags : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_flags_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9123, __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, 9123, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_flags, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9123, __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, 9123, __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)) __PYX_ERR(0, 9123, __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, 9123, __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/cudart.pyx":9122 * except ValueError: * str_list += ['params : '] * 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/cudart.pyx":9124 * try: * str_list += ['flags : ' + str(self.flags)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['flags : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_7, &__pyx_t_2) < 0) __PYX_ERR(0, 9124, __pyx_L21_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":9125 * str_list += ['flags : ' + str(self.flags)] * except ValueError: * str_list += ['flags : '] # <<<<<<<<<<<<<< * try: * str_list += ['reserved : ' + str(self.reserved)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9125, __pyx_L21_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_flags_ValueError); __Pyx_GIVEREF(__pyx_kp_u_flags_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_flags_ValueError)) __PYX_ERR(0, 9125, __pyx_L21_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9125, __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/cudart.pyx":9122 * except ValueError: * str_list += ['params : '] * 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/cudart.pyx":9126 * except ValueError: * str_list += ['flags : '] * 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/cudart.pyx":9127 * str_list += ['flags : '] * try: * str_list += ['reserved : ' + str(self.reserved)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['reserved : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_reserved_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9127, __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, 9127, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_reserved, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9127, __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, 9127, __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)) __PYX_ERR(0, 9127, __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, 9127, __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/cudart.pyx":9126 * except ValueError: * str_list += ['flags : '] * 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/cudart.pyx":9128 * try: * str_list += ['reserved : ' + str(self.reserved)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['reserved : '] * return '\n'.join(str_list) */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 9128, __pyx_L29_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":9129 * str_list += ['reserved : ' + str(self.reserved)] * except ValueError: * str_list += ['reserved : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9129, __pyx_L29_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_reserved_ValueError); __Pyx_GIVEREF(__pyx_kp_u_reserved_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_reserved_ValueError)) __PYX_ERR(0, 9129, __pyx_L29_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9129, __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/cudart.pyx":9126 * except ValueError: * str_list += ['flags : '] * 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/cudart.pyx":9130 * except ValueError: * str_list += ['reserved : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_6 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9130, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9116 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":9132 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def params(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":9115 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaExternalSemaphoreSignalParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XDECREF(__pyx_9genexpr37__pyx_v_line); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9133 * else: * return '' * @property # <<<<<<<<<<<<<< * def params(self): * return self._params */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_6params_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_33cudaExternalSemaphoreSignalParams_6params___get__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_6params___get__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9133, 0, __PYX_ERR(0, 9133, __pyx_L1_error)); /* "cuda/cudart.pyx":9135 * @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/cudart.pyx":9133 * else: * return '' * @property # <<<<<<<<<<<<<< * def params(self): * return self._params */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalParams.params.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9136 * def params(self): * return self._params * @params.setter # <<<<<<<<<<<<<< * def params(self, params not None : anon_struct15): * string.memcpy(&self._ptr[0].params, params.getPtr(), sizeof(self._ptr[0].params)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_6params_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_params); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_anon_struct15, 0, "params", 0))) __PYX_ERR(0, 9137, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_6params_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_anon_struct15 *)__pyx_v_params)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_6params_2__set__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_anon_struct15 *__pyx_v_params) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 9136, 0, __PYX_ERR(0, 9136, __pyx_L1_error)); /* "cuda/cudart.pyx":9138 * @params.setter * def params(self, params not None : anon_struct15): * string.memcpy(&self._ptr[0].params, params.getPtr(), sizeof(self._ptr[0].params)) # <<<<<<<<<<<<<< * @property * def flags(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_params), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9138, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).params), ((struct anon_struct15 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).params)))); /* "cuda/cudart.pyx":9136 * def params(self): * return self._params * @params.setter # <<<<<<<<<<<<<< * def params(self, params not None : anon_struct15): * string.memcpy(&self._ptr[0].params, params.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalParams.params.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9139 * def params(self, params not None : anon_struct15): * string.memcpy(&self._ptr[0].params, params.getPtr(), sizeof(self._ptr[0].params)) * @property # <<<<<<<<<<<<<< * def flags(self): * return self._ptr[0].flags */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_5flags_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_33cudaExternalSemaphoreSignalParams_5flags___get__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_5flags___get__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9139, 0, __PYX_ERR(0, 9139, __pyx_L1_error)); /* "cuda/cudart.pyx":9141 * @property * def flags(self): * return self._ptr[0].flags # <<<<<<<<<<<<<< * @flags.setter * def flags(self, unsigned int flags): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).flags); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9141, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9139 * def params(self, params not None : anon_struct15): * string.memcpy(&self._ptr[0].params, params.getPtr(), sizeof(self._ptr[0].params)) * @property # <<<<<<<<<<<<<< * def flags(self): * return self._ptr[0].flags */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalParams.flags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9142 * def flags(self): * return self._ptr[0].flags * @flags.setter # <<<<<<<<<<<<<< * def flags(self, unsigned int flags): * self._ptr[0].flags = flags */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_flags); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9143, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalParams.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_5flags_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *)__pyx_v_self), ((unsigned int)__pyx_v_flags)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_5flags_2__set__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *__pyx_v_self, unsigned int __pyx_v_flags) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 9142, 0, __PYX_ERR(0, 9142, __pyx_L1_error)); /* "cuda/cudart.pyx":9144 * @flags.setter * def flags(self, unsigned int flags): * self._ptr[0].flags = flags # <<<<<<<<<<<<<< * @property * def reserved(self): */ (__pyx_v_self->_ptr[0]).flags = __pyx_v_flags; /* "cuda/cudart.pyx":9142 * def flags(self): * return self._ptr[0].flags * @flags.setter # <<<<<<<<<<<<<< * def flags(self, unsigned int flags): * self._ptr[0].flags = flags */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalParams.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":9145 * def flags(self, unsigned int flags): * self._ptr[0].flags = flags * @property # <<<<<<<<<<<<<< * def reserved(self): * return self._ptr[0].reserved */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_33cudaExternalSemaphoreSignalParams_8reserved___get__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_8reserved___get__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9145, 0, __PYX_ERR(0, 9145, __pyx_L1_error)); /* "cuda/cudart.pyx":9147 * @property * def reserved(self): * return self._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->_ptr[0]).reserved, 16); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9147, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9145 * def flags(self, unsigned int flags): * self._ptr[0].flags = flags * @property # <<<<<<<<<<<<<< * def reserved(self): * return self._ptr[0].reserved */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalParams.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9148 * def reserved(self): * return self._ptr[0].reserved * @reserved.setter # <<<<<<<<<<<<<< * def reserved(self, reserved): * self._ptr[0].reserved = reserved */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_33cudaExternalSemaphoreSignalParams_8reserved_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *)__pyx_v_self), ((PyObject *)__pyx_v_reserved)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_8reserved_2__set__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *__pyx_v_self, PyObject *__pyx_v_reserved) { int __pyx_r; __Pyx_TraceDeclarations unsigned int __pyx_t_1[16]; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 9148, 0, __PYX_ERR(0, 9148, __pyx_L1_error)); /* "cuda/cudart.pyx":9150 * @reserved.setter * def reserved(self, reserved): * self._ptr[0].reserved = reserved # <<<<<<<<<<<<<< * * cdef class anon_struct16: */ if (unlikely((__Pyx_carray_from_py_unsigned_int(__pyx_v_reserved, __pyx_t_1, 16) < 0))) __PYX_ERR(0, 9150, __pyx_L1_error) memcpy(&((__pyx_v_self->_ptr[0]).reserved[0]), __pyx_t_1, sizeof((__pyx_v_self->_ptr[0]).reserved[0]) * (16)); /* "cuda/cudart.pyx":9148 * def reserved(self): * return self._ptr[0].reserved * @reserved.setter # <<<<<<<<<<<<<< * def reserved(self, reserved): * self._ptr[0].reserved = reserved */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalParams.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_33cudaExternalSemaphoreSignalParams_10__reduce_cython__, "cudaExternalSemaphoreSignalParams.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__201) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaExternalSemaphoreSignalParams.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_33cudaExternalSemaphoreSignalParams_12__setstate_cython__, "cudaExternalSemaphoreSignalParams.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__202) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaExternalSemaphoreSignalParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9165 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct16_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct16_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 9165, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 9165, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9165, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 9165, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct16.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct16___cinit__(((struct __pyx_obj_4cuda_6cudart_anon_struct16 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct16___cinit__(struct __pyx_obj_4cuda_6cudart_anon_struct16 *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 9165, 0, __PYX_ERR(0, 9165, __pyx_L1_error)); /* "cuda/cudart.pyx":9166 * """ * def __cinit__(self, void_ptr _ptr): * self._ptr = _ptr # <<<<<<<<<<<<<< * * def __init__(self, void_ptr _ptr): */ __pyx_v_self->_ptr = ((struct cudaExternalSemaphoreWaitParams *)__pyx_v__ptr); /* "cuda/cudart.pyx":9165 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct16.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":9168 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct16_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct16_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 9168, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 9168, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9168, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 9168, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct16.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct16_2__init__(((struct __pyx_obj_4cuda_6cudart_anon_struct16 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct16_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct16 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 9168, 0, __PYX_ERR(0, 9168, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct16.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":9170 * def __init__(self, void_ptr _ptr): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_13anon_struct16_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_13anon_struct16_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_anon_struct16 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_13anon_struct16_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct16 *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 9170, 0, __PYX_ERR(0, 9170, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.anon_struct16.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":9172 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].params.fence * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_13anon_struct16_6getPtr, "anon_struct16.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_13anon_struct16_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct16_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct16_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct16_6getPtr(((struct __pyx_obj_4cuda_6cudart_anon_struct16 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct16_6getPtr(struct __pyx_obj_4cuda_6cudart_anon_struct16 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__203) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 9172, 0, __PYX_ERR(0, 9172, __pyx_L1_error)); /* "cuda/cudart.pyx":9173 * pass * def getPtr(self): * return &self._ptr[0].params.fence # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).params.fence))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9173, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9172 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].params.fence * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct16.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9174 * def getPtr(self): * return &self._ptr[0].params.fence * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct16_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_13anon_struct16_8__repr__(((struct __pyx_obj_4cuda_6cudart_anon_struct16 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct16_8__repr__(struct __pyx_obj_4cuda_6cudart_anon_struct16 *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 9174, 0, __PYX_ERR(0, 9174, __pyx_L1_error)); /* "cuda/cudart.pyx":9175 * return &self._ptr[0].params.fence * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":9176 * def __repr__(self): * if self._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, 9176, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":9177 * if self._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/cudart.pyx":9178 * str_list = [] * try: * str_list += ['value : ' + str(self.value)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['value : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9178, __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, 9178, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_value_2, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9178, __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, 9178, __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)) __PYX_ERR(0, 9178, __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, 9178, __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/cudart.pyx":9177 * if self._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/cudart.pyx":9179 * try: * str_list += ['value : ' + str(self.value)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['value : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 9179, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":9180 * str_list += ['value : ' + str(self.value)] * except ValueError: * str_list += ['value : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 9180, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_value_ValueError); __Pyx_GIVEREF(__pyx_kp_u_value_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_value_ValueError)) __PYX_ERR(0, 9180, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9180, __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/cudart.pyx":9177 * if self._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/cudart.pyx":9181 * except ValueError: * str_list += ['value : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9181, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9175 * return &self._ptr[0].params.fence * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":9183 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def value(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":9174 * def getPtr(self): * return &self._ptr[0].params.fence * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9184 * else: * return '' * @property # <<<<<<<<<<<<<< * def value(self): * return self._ptr[0].params.fence.value */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct16_5value_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct16_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_6cudart_13anon_struct16_5value___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct16 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct16_5value___get__(struct __pyx_obj_4cuda_6cudart_anon_struct16 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9184, 0, __PYX_ERR(0, 9184, __pyx_L1_error)); /* "cuda/cudart.pyx":9186 * @property * def value(self): * return self._ptr[0].params.fence.value # <<<<<<<<<<<<<< * @value.setter * def value(self, unsigned long long value): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG((__pyx_v_self->_ptr[0]).params.fence.value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9186, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9184 * else: * return '' * @property # <<<<<<<<<<<<<< * def value(self): * return self._ptr[0].params.fence.value */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct16.value.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9187 * def value(self): * return self._ptr[0].params.fence.value * @value.setter # <<<<<<<<<<<<<< * def value(self, unsigned long long value): * self._ptr[0].params.fence.value = value */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct16_5value_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct16_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_PyInt_As_unsigned_PY_LONG_LONG(__pyx_arg_value); if (unlikely((__pyx_v_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9188, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct16.value.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct16_5value_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct16 *)__pyx_v_self), ((unsigned PY_LONG_LONG)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct16_5value_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct16 *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_value) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 9187, 0, __PYX_ERR(0, 9187, __pyx_L1_error)); /* "cuda/cudart.pyx":9189 * @value.setter * def value(self, unsigned long long value): * self._ptr[0].params.fence.value = value # <<<<<<<<<<<<<< * * cdef class anon_union6: */ (__pyx_v_self->_ptr[0]).params.fence.value = __pyx_v_value; /* "cuda/cudart.pyx":9187 * def value(self): * return self._ptr[0].params.fence.value * @value.setter # <<<<<<<<<<<<<< * def value(self, unsigned long long value): * self._ptr[0].params.fence.value = value */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct16.value.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_13anon_struct16_10__reduce_cython__, "anon_struct16.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_13anon_struct16_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct16_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct16_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct16_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct16 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct16_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct16 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__204) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct16.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_13anon_struct16_12__setstate_cython__, "anon_struct16.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_13anon_struct16_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct16_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct16_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct16.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct16_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct16 *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct16_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct16 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__205) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct16.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9206 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_11anon_union6_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_11anon_union6_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 9206, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 9206, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9206, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 9206, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_union6.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union6___cinit__(((struct __pyx_obj_4cuda_6cudart_anon_union6 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_11anon_union6___cinit__(struct __pyx_obj_4cuda_6cudart_anon_union6 *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 9206, 0, __PYX_ERR(0, 9206, __pyx_L1_error)); /* "cuda/cudart.pyx":9207 * """ * def __cinit__(self, void_ptr _ptr): * self._ptr = _ptr # <<<<<<<<<<<<<< * * def __init__(self, void_ptr _ptr): */ __pyx_v_self->_ptr = ((struct cudaExternalSemaphoreWaitParams *)__pyx_v__ptr); /* "cuda/cudart.pyx":9206 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_union6.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":9209 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_11anon_union6_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_11anon_union6_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 9209, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 9209, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9209, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 9209, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_union6.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union6_2__init__(((struct __pyx_obj_4cuda_6cudart_anon_union6 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_11anon_union6_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_union6 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 9209, 0, __PYX_ERR(0, 9209, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_union6.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":9211 * def __init__(self, void_ptr _ptr): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_11anon_union6_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_11anon_union6_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_6cudart_11anon_union6_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_anon_union6 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_11anon_union6_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_union6 *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 9211, 0, __PYX_ERR(0, 9211, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.anon_union6.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":9213 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].params.nvSciSync * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_11anon_union6_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_6cudart_11anon_union6_6getPtr, "anon_union6.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_11anon_union6_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union6_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union6_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_11anon_union6_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union6_6getPtr(((struct __pyx_obj_4cuda_6cudart_anon_union6 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union6_6getPtr(struct __pyx_obj_4cuda_6cudart_anon_union6 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__206) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 9213, 0, __PYX_ERR(0, 9213, __pyx_L1_error)); /* "cuda/cudart.pyx":9214 * pass * def getPtr(self): * return &self._ptr[0].params.nvSciSync # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).params.nvSciSync))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9214, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9213 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].params.nvSciSync * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_union6.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9215 * def getPtr(self): * return &self._ptr[0].params.nvSciSync * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_11anon_union6_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_11anon_union6_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_6cudart_11anon_union6_8__repr__(((struct __pyx_obj_4cuda_6cudart_anon_union6 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union6_8__repr__(struct __pyx_obj_4cuda_6cudart_anon_union6 *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 9215, 0, __PYX_ERR(0, 9215, __pyx_L1_error)); /* "cuda/cudart.pyx":9216 * return &self._ptr[0].params.nvSciSync * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":9217 * def __repr__(self): * if self._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, 9217, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":9218 * if self._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/cudart.pyx":9219 * str_list = [] * try: * str_list += ['fence : ' + hex(self.fence)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['fence : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_fence_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9219, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9219, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_kp_u_fence, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9219, __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, 9219, __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)) __PYX_ERR(0, 9219, __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, 9219, __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/cudart.pyx":9218 * if self._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/cudart.pyx":9220 * try: * str_list += ['fence : ' + hex(self.fence)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['fence : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.anon_union6.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 9220, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":9221 * str_list += ['fence : ' + hex(self.fence)] * except ValueError: * str_list += ['fence : '] # <<<<<<<<<<<<<< * try: * str_list += ['reserved : ' + str(self.reserved)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 9221, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_fence_ValueError); __Pyx_GIVEREF(__pyx_kp_u_fence_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_fence_ValueError)) __PYX_ERR(0, 9221, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9221, __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/cudart.pyx":9218 * if self._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/cudart.pyx":9222 * except ValueError: * str_list += ['fence : '] * 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/cudart.pyx":9223 * str_list += ['fence : '] * try: * str_list += ['reserved : ' + str(self.reserved)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['reserved : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_reserved_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9223, __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, 9223, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_reserved, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9223, __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, 9223, __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)) __PYX_ERR(0, 9223, __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, 9223, __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/cudart.pyx":9222 * except ValueError: * str_list += ['fence : '] * 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/cudart.pyx":9224 * try: * str_list += ['reserved : ' + str(self.reserved)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['reserved : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.anon_union6.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 9224, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":9225 * str_list += ['reserved : ' + str(self.reserved)] * except ValueError: * str_list += ['reserved : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9225, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_reserved_ValueError); __Pyx_GIVEREF(__pyx_kp_u_reserved_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_reserved_ValueError)) __PYX_ERR(0, 9225, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 9225, __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/cudart.pyx":9222 * except ValueError: * str_list += ['fence : '] * 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/cudart.pyx":9226 * except ValueError: * str_list += ['reserved : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9226, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9216 * return &self._ptr[0].params.nvSciSync * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":9228 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def fence(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":9215 * def getPtr(self): * return &self._ptr[0].params.nvSciSync * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.anon_union6.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9229 * else: * return '' * @property # <<<<<<<<<<<<<< * def fence(self): * return self._ptr[0].params.nvSciSync.fence */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_11anon_union6_5fence_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_11anon_union6_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_6cudart_11anon_union6_5fence___get__(((struct __pyx_obj_4cuda_6cudart_anon_union6 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union6_5fence___get__(struct __pyx_obj_4cuda_6cudart_anon_union6 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9229, 0, __PYX_ERR(0, 9229, __pyx_L1_error)); /* "cuda/cudart.pyx":9231 * @property * def fence(self): * return self._ptr[0].params.nvSciSync.fence # <<<<<<<<<<<<<< * @fence.setter * def fence(self, fence): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).params.nvSciSync.fence)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9231, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9229 * else: * return '' * @property # <<<<<<<<<<<<<< * def fence(self): * return self._ptr[0].params.nvSciSync.fence */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_union6.fence.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9232 * def fence(self): * return self._ptr[0].params.nvSciSync.fence * @fence.setter # <<<<<<<<<<<<<< * def fence(self, fence): * _cfence = utils.HelperInputVoidPtr(fence) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_11anon_union6_5fence_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_fence); /*proto*/ static int __pyx_pw_4cuda_6cudart_11anon_union6_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_6cudart_11anon_union6_5fence_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_union6 *)__pyx_v_self), ((PyObject *)__pyx_v_fence)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_11anon_union6_5fence_2__set__(struct __pyx_obj_4cuda_6cudart_anon_union6 *__pyx_v_self, PyObject *__pyx_v_fence) { PyObject *__pyx_v__cfence = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 9232, 0, __PYX_ERR(0, 9232, __pyx_L1_error)); /* "cuda/cudart.pyx":9234 * @fence.setter * def fence(self, fence): * _cfence = utils.HelperInputVoidPtr(fence) # <<<<<<<<<<<<<< * self._ptr[0].params.nvSciSync.fence = _cfence.cptr * @property */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_fence); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9234, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__cfence = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":9235 * def fence(self, fence): * _cfence = utils.HelperInputVoidPtr(fence) * self._ptr[0].params.nvSciSync.fence = _cfence.cptr # <<<<<<<<<<<<<< * @property * def reserved(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v__cfence, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9235, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).params.nvSciSync.fence = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":9232 * def fence(self): * return self._ptr[0].params.nvSciSync.fence * @fence.setter # <<<<<<<<<<<<<< * def fence(self, fence): * _cfence = utils.HelperInputVoidPtr(fence) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_union6.fence.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v__cfence); __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9236 * _cfence = utils.HelperInputVoidPtr(fence) * self._ptr[0].params.nvSciSync.fence = _cfence.cptr * @property # <<<<<<<<<<<<<< * def reserved(self): * return self._ptr[0].params.nvSciSync.reserved */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_11anon_union6_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_11anon_union6_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_6cudart_11anon_union6_8reserved___get__(((struct __pyx_obj_4cuda_6cudart_anon_union6 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union6_8reserved___get__(struct __pyx_obj_4cuda_6cudart_anon_union6 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9236, 0, __PYX_ERR(0, 9236, __pyx_L1_error)); /* "cuda/cudart.pyx":9238 * @property * def reserved(self): * return self._ptr[0].params.nvSciSync.reserved # <<<<<<<<<<<<<< * @reserved.setter * def reserved(self, unsigned long long reserved): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG((__pyx_v_self->_ptr[0]).params.nvSciSync.reserved); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9238, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9236 * _cfence = utils.HelperInputVoidPtr(fence) * self._ptr[0].params.nvSciSync.fence = _cfence.cptr * @property # <<<<<<<<<<<<<< * def reserved(self): * return self._ptr[0].params.nvSciSync.reserved */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_union6.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9239 * def reserved(self): * return self._ptr[0].params.nvSciSync.reserved * @reserved.setter # <<<<<<<<<<<<<< * def reserved(self, unsigned long long reserved): * self._ptr[0].params.nvSciSync.reserved = reserved */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_11anon_union6_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_reserved); /*proto*/ static int __pyx_pw_4cuda_6cudart_11anon_union6_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_PyInt_As_unsigned_PY_LONG_LONG(__pyx_arg_reserved); if (unlikely((__pyx_v_reserved == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9240, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.anon_union6.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union6_8reserved_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_union6 *)__pyx_v_self), ((unsigned PY_LONG_LONG)__pyx_v_reserved)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_11anon_union6_8reserved_2__set__(struct __pyx_obj_4cuda_6cudart_anon_union6 *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_reserved) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 9239, 0, __PYX_ERR(0, 9239, __pyx_L1_error)); /* "cuda/cudart.pyx":9241 * @reserved.setter * def reserved(self, unsigned long long reserved): * self._ptr[0].params.nvSciSync.reserved = reserved # <<<<<<<<<<<<<< * * cdef class anon_struct17: */ (__pyx_v_self->_ptr[0]).params.nvSciSync.reserved = __pyx_v_reserved; /* "cuda/cudart.pyx":9239 * def reserved(self): * return self._ptr[0].params.nvSciSync.reserved * @reserved.setter # <<<<<<<<<<<<<< * def reserved(self, unsigned long long reserved): * self._ptr[0].params.nvSciSync.reserved = reserved */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_union6.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_11anon_union6_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_6cudart_11anon_union6_10__reduce_cython__, "anon_union6.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_11anon_union6_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union6_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union6_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_11anon_union6_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union6_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_anon_union6 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union6_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_union6 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__207) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_union6.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_11anon_union6_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_6cudart_11anon_union6_12__setstate_cython__, "anon_union6.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_11anon_union6_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union6_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union6_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_11anon_union6_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_union6.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union6_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_anon_union6 *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union6_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_union6 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__208) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_union6.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9258 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct17_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct17_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 9258, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 9258, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9258, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 9258, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct17.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct17___cinit__(((struct __pyx_obj_4cuda_6cudart_anon_struct17 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct17___cinit__(struct __pyx_obj_4cuda_6cudart_anon_struct17 *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 9258, 0, __PYX_ERR(0, 9258, __pyx_L1_error)); /* "cuda/cudart.pyx":9259 * """ * def __cinit__(self, void_ptr _ptr): * self._ptr = _ptr # <<<<<<<<<<<<<< * * def __init__(self, void_ptr _ptr): */ __pyx_v_self->_ptr = ((struct cudaExternalSemaphoreWaitParams *)__pyx_v__ptr); /* "cuda/cudart.pyx":9258 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct17.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":9261 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct17_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct17_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 9261, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 9261, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9261, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 9261, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct17.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct17_2__init__(((struct __pyx_obj_4cuda_6cudart_anon_struct17 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct17_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct17 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 9261, 0, __PYX_ERR(0, 9261, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct17.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":9263 * def __init__(self, void_ptr _ptr): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_13anon_struct17_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_13anon_struct17_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_anon_struct17 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_13anon_struct17_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct17 *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 9263, 0, __PYX_ERR(0, 9263, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.anon_struct17.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":9265 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].params.keyedMutex * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_13anon_struct17_6getPtr, "anon_struct17.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_13anon_struct17_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct17_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct17_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct17_6getPtr(((struct __pyx_obj_4cuda_6cudart_anon_struct17 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct17_6getPtr(struct __pyx_obj_4cuda_6cudart_anon_struct17 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__209) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 9265, 0, __PYX_ERR(0, 9265, __pyx_L1_error)); /* "cuda/cudart.pyx":9266 * pass * def getPtr(self): * return &self._ptr[0].params.keyedMutex # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).params.keyedMutex))); 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/cudart.pyx":9265 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].params.keyedMutex * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct17.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9267 * def getPtr(self): * return &self._ptr[0].params.keyedMutex * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct17_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_13anon_struct17_8__repr__(((struct __pyx_obj_4cuda_6cudart_anon_struct17 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct17_8__repr__(struct __pyx_obj_4cuda_6cudart_anon_struct17 *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 9267, 0, __PYX_ERR(0, 9267, __pyx_L1_error)); /* "cuda/cudart.pyx":9268 * return &self._ptr[0].params.keyedMutex * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":9269 * def __repr__(self): * if self._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, 9269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":9270 * if self._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/cudart.pyx":9271 * str_list = [] * try: * str_list += ['key : ' + str(self.key)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['key : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_key_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9271, __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, 9271, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_key, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9271, __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, 9271, __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)) __PYX_ERR(0, 9271, __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, 9271, __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/cudart.pyx":9270 * if self._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/cudart.pyx":9272 * try: * str_list += ['key : ' + str(self.key)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['key : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 9272, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":9273 * str_list += ['key : ' + str(self.key)] * except ValueError: * str_list += ['key : '] # <<<<<<<<<<<<<< * try: * str_list += ['timeoutMs : ' + str(self.timeoutMs)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 9273, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_key_ValueError); __Pyx_GIVEREF(__pyx_kp_u_key_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_key_ValueError)) __PYX_ERR(0, 9273, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9273, __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/cudart.pyx":9270 * if self._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/cudart.pyx":9274 * except ValueError: * str_list += ['key : '] * 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/cudart.pyx":9275 * str_list += ['key : '] * try: * str_list += ['timeoutMs : ' + str(self.timeoutMs)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['timeoutMs : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_timeoutMs_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9275, __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, 9275, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_timeoutMs, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9275, __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, 9275, __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)) __PYX_ERR(0, 9275, __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, 9275, __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/cudart.pyx":9274 * except ValueError: * str_list += ['key : '] * 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/cudart.pyx":9276 * try: * str_list += ['timeoutMs : ' + str(self.timeoutMs)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['timeoutMs : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 9276, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":9277 * str_list += ['timeoutMs : ' + str(self.timeoutMs)] * except ValueError: * str_list += ['timeoutMs : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9277, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_timeoutMs_ValueError); __Pyx_GIVEREF(__pyx_kp_u_timeoutMs_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_timeoutMs_ValueError)) __PYX_ERR(0, 9277, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 9277, __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/cudart.pyx":9274 * except ValueError: * str_list += ['key : '] * 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/cudart.pyx":9278 * except ValueError: * str_list += ['timeoutMs : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9278, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9268 * return &self._ptr[0].params.keyedMutex * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":9280 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def key(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":9267 * def getPtr(self): * return &self._ptr[0].params.keyedMutex * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9281 * else: * return '' * @property # <<<<<<<<<<<<<< * def key(self): * return self._ptr[0].params.keyedMutex.key */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct17_3key_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct17_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_6cudart_13anon_struct17_3key___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct17 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct17_3key___get__(struct __pyx_obj_4cuda_6cudart_anon_struct17 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9281, 0, __PYX_ERR(0, 9281, __pyx_L1_error)); /* "cuda/cudart.pyx":9283 * @property * def key(self): * return self._ptr[0].params.keyedMutex.key # <<<<<<<<<<<<<< * @key.setter * def key(self, unsigned long long key): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG((__pyx_v_self->_ptr[0]).params.keyedMutex.key); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9283, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9281 * else: * return '' * @property # <<<<<<<<<<<<<< * def key(self): * return self._ptr[0].params.keyedMutex.key */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct17.key.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9284 * def key(self): * return self._ptr[0].params.keyedMutex.key * @key.setter # <<<<<<<<<<<<<< * def key(self, unsigned long long key): * self._ptr[0].params.keyedMutex.key = key */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct17_3key_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_key); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct17_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_PyInt_As_unsigned_PY_LONG_LONG(__pyx_arg_key); if (unlikely((__pyx_v_key == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9285, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct17.key.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct17_3key_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct17 *)__pyx_v_self), ((unsigned PY_LONG_LONG)__pyx_v_key)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct17_3key_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct17 *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_key) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 9284, 0, __PYX_ERR(0, 9284, __pyx_L1_error)); /* "cuda/cudart.pyx":9286 * @key.setter * def key(self, unsigned long long key): * self._ptr[0].params.keyedMutex.key = key # <<<<<<<<<<<<<< * @property * def timeoutMs(self): */ (__pyx_v_self->_ptr[0]).params.keyedMutex.key = __pyx_v_key; /* "cuda/cudart.pyx":9284 * def key(self): * return self._ptr[0].params.keyedMutex.key * @key.setter # <<<<<<<<<<<<<< * def key(self, unsigned long long key): * self._ptr[0].params.keyedMutex.key = key */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct17.key.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":9287 * def key(self, unsigned long long key): * self._ptr[0].params.keyedMutex.key = key * @property # <<<<<<<<<<<<<< * def timeoutMs(self): * return self._ptr[0].params.keyedMutex.timeoutMs */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct17_9timeoutMs_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct17_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_6cudart_13anon_struct17_9timeoutMs___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct17 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct17_9timeoutMs___get__(struct __pyx_obj_4cuda_6cudart_anon_struct17 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9287, 0, __PYX_ERR(0, 9287, __pyx_L1_error)); /* "cuda/cudart.pyx":9289 * @property * def timeoutMs(self): * return self._ptr[0].params.keyedMutex.timeoutMs # <<<<<<<<<<<<<< * @timeoutMs.setter * def timeoutMs(self, unsigned int timeoutMs): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).params.keyedMutex.timeoutMs); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9287 * def key(self, unsigned long long key): * self._ptr[0].params.keyedMutex.key = key * @property # <<<<<<<<<<<<<< * def timeoutMs(self): * return self._ptr[0].params.keyedMutex.timeoutMs */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct17.timeoutMs.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9290 * def timeoutMs(self): * return self._ptr[0].params.keyedMutex.timeoutMs * @timeoutMs.setter # <<<<<<<<<<<<<< * def timeoutMs(self, unsigned int timeoutMs): * self._ptr[0].params.keyedMutex.timeoutMs = timeoutMs */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct17_9timeoutMs_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_timeoutMs); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct17_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_PyInt_As_unsigned_int(__pyx_arg_timeoutMs); if (unlikely((__pyx_v_timeoutMs == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9291, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct17.timeoutMs.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct17_9timeoutMs_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct17 *)__pyx_v_self), ((unsigned int)__pyx_v_timeoutMs)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct17_9timeoutMs_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct17 *__pyx_v_self, unsigned int __pyx_v_timeoutMs) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 9290, 0, __PYX_ERR(0, 9290, __pyx_L1_error)); /* "cuda/cudart.pyx":9292 * @timeoutMs.setter * def timeoutMs(self, unsigned int timeoutMs): * self._ptr[0].params.keyedMutex.timeoutMs = timeoutMs # <<<<<<<<<<<<<< * * cdef class anon_struct18: */ (__pyx_v_self->_ptr[0]).params.keyedMutex.timeoutMs = __pyx_v_timeoutMs; /* "cuda/cudart.pyx":9290 * def timeoutMs(self): * return self._ptr[0].params.keyedMutex.timeoutMs * @timeoutMs.setter # <<<<<<<<<<<<<< * def timeoutMs(self, unsigned int timeoutMs): * self._ptr[0].params.keyedMutex.timeoutMs = timeoutMs */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct17.timeoutMs.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_13anon_struct17_10__reduce_cython__, "anon_struct17.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_13anon_struct17_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct17_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct17_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct17_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct17 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct17_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct17 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__210) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct17.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_13anon_struct17_12__setstate_cython__, "anon_struct17.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_13anon_struct17_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct17_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct17_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct17.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct17_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct17 *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct17_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct17 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__211) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct17.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9313 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct18_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct18_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 9313, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 9313, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9313, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 9313, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct18.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct18___cinit__(((struct __pyx_obj_4cuda_6cudart_anon_struct18 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct18___cinit__(struct __pyx_obj_4cuda_6cudart_anon_struct18 *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 9313, 0, __PYX_ERR(0, 9313, __pyx_L1_error)); /* "cuda/cudart.pyx":9314 * """ * def __cinit__(self, void_ptr _ptr): * self._ptr = _ptr # <<<<<<<<<<<<<< * * def __init__(self, void_ptr _ptr): */ __pyx_v_self->_ptr = ((struct cudaExternalSemaphoreWaitParams *)__pyx_v__ptr); /* "cuda/cudart.pyx":9313 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct18.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":9316 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._fence = anon_struct16(_ptr=self._ptr) * self._nvSciSync = anon_union6(_ptr=self._ptr) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct18_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct18_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 9316, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 9316, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9316, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 9316, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct18.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct18_2__init__(((struct __pyx_obj_4cuda_6cudart_anon_struct18 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct18_2__init__(struct __pyx_obj_4cuda_6cudart_anon_struct18 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 9316, 0, __PYX_ERR(0, 9316, __pyx_L1_error)); /* "cuda/cudart.pyx":9317 * * def __init__(self, void_ptr _ptr): * self._fence = anon_struct16(_ptr=self._ptr) # <<<<<<<<<<<<<< * self._nvSciSync = anon_union6(_ptr=self._ptr) * self._keyedMutex = anon_struct17(_ptr=self._ptr) */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9317, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9317, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 9317, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct16), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9317, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_fence); __Pyx_DECREF((PyObject *)__pyx_v_self->_fence); __pyx_v_self->_fence = ((struct __pyx_obj_4cuda_6cudart_anon_struct16 *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":9318 * def __init__(self, void_ptr _ptr): * self._fence = anon_struct16(_ptr=self._ptr) * self._nvSciSync = anon_union6(_ptr=self._ptr) # <<<<<<<<<<<<<< * self._keyedMutex = anon_struct17(_ptr=self._ptr) * def __dealloc__(self): */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9318, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9318, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_ptr, __pyx_t_1) < 0) __PYX_ERR(0, 9318, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_anon_union6), __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9318, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GIVEREF(__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_6cudart_anon_union6 *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":9319 * self._fence = anon_struct16(_ptr=self._ptr) * self._nvSciSync = anon_union6(_ptr=self._ptr) * self._keyedMutex = anon_struct17(_ptr=self._ptr) # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9319, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9319, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 9319, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct17), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9319, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_keyedMutex); __Pyx_DECREF((PyObject *)__pyx_v_self->_keyedMutex); __pyx_v_self->_keyedMutex = ((struct __pyx_obj_4cuda_6cudart_anon_struct17 *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":9316 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._fence = anon_struct16(_ptr=self._ptr) * self._nvSciSync = anon_union6(_ptr=self._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.cudart.anon_struct18.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9320 * self._nvSciSync = anon_union6(_ptr=self._ptr) * self._keyedMutex = anon_struct17(_ptr=self._ptr) * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_13anon_struct18_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_13anon_struct18_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_anon_struct18 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_13anon_struct18_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct18 *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 9320, 0, __PYX_ERR(0, 9320, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.anon_struct18.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":9322 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].params * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_13anon_struct18_6getPtr, "anon_struct18.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_13anon_struct18_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct18_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct18_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct18_6getPtr(((struct __pyx_obj_4cuda_6cudart_anon_struct18 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct18_6getPtr(struct __pyx_obj_4cuda_6cudart_anon_struct18 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__212) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 9322, 0, __PYX_ERR(0, 9322, __pyx_L1_error)); /* "cuda/cudart.pyx":9323 * pass * def getPtr(self): * return &self._ptr[0].params # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).params))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9323, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9322 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].params * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct18.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9324 * def getPtr(self): * return &self._ptr[0].params * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct18_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_13anon_struct18_8__repr__(((struct __pyx_obj_4cuda_6cudart_anon_struct18 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct18_8__repr__(struct __pyx_obj_4cuda_6cudart_anon_struct18 *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_9genexpr38__pyx_v_line = NULL; PyObject *__pyx_9genexpr39__pyx_v_line = NULL; PyObject *__pyx_9genexpr40__pyx_v_line = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 9324, 0, __PYX_ERR(0, 9324, __pyx_L1_error)); /* "cuda/cudart.pyx":9325 * return &self._ptr[0].params * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":9326 * def __repr__(self): * if self._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, 9326, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":9327 * if self._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/cudart.pyx":9328 * str_list = [] * try: * str_list += ['fence :\n' + '\n'.join([' ' + line for line in str(self.fence).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['fence : '] */ { /* enter inner scope */ __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9328, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_fence_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9328, __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, 9328, __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, 9328, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 9328, __pyx_L12_error) #endif if (__pyx_t_8 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_7, __pyx_t_8); __Pyx_INCREF(__pyx_t_6); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(0, 9328, __pyx_L12_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9328, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_9genexpr38__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr38__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9328, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 9328, __pyx_L12_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_9genexpr38__pyx_v_line); __pyx_9genexpr38__pyx_v_line = 0; goto __pyx_L16_exit_scope; __pyx_L12_error:; __Pyx_XDECREF(__pyx_9genexpr38__pyx_v_line); __pyx_9genexpr38__pyx_v_line = 0; goto __pyx_L4_error; __pyx_L16_exit_scope:; } /* exit inner scope */ __pyx_t_7 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9328, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_fence_3, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9328, __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, 9328, __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)) __PYX_ERR(0, 9328, __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, 9328, __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/cudart.pyx":9327 * if self._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/cudart.pyx":9329 * try: * str_list += ['fence :\n' + '\n'.join([' ' + line for line in str(self.fence).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['fence : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.anon_struct18.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 9329, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":9330 * str_list += ['fence :\n' + '\n'.join([' ' + line for line in str(self.fence).splitlines()])] * except ValueError: * str_list += ['fence : '] # <<<<<<<<<<<<<< * 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, 9330, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_fence_ValueError); __Pyx_GIVEREF(__pyx_kp_u_fence_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_fence_ValueError)) __PYX_ERR(0, 9330, __pyx_L6_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9330, __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/cudart.pyx":9327 * if self._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/cudart.pyx":9331 * except ValueError: * str_list += ['fence : '] * 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/cudart.pyx":9332 * str_list += ['fence : '] * try: * str_list += ['nvSciSync :\n' + '\n'.join([' ' + line for line in str(self.nvSciSync).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['nvSciSync : '] */ { /* enter inner scope */ __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9332, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_nvSciSync_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9332, __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, 9332, __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, 9332, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 9332, __pyx_L27_error) #endif if (__pyx_t_8 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_7 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_8); __Pyx_INCREF(__pyx_t_7); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(0, 9332, __pyx_L27_error) #else __pyx_t_7 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9332, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_7); #endif __Pyx_XDECREF_SET(__pyx_9genexpr39__pyx_v_line, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr39__pyx_v_line); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9332, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_7); if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_7))) __PYX_ERR(0, 9332, __pyx_L27_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_9genexpr39__pyx_v_line); __pyx_9genexpr39__pyx_v_line = 0; goto __pyx_L31_exit_scope; __pyx_L27_error:; __Pyx_XDECREF(__pyx_9genexpr39__pyx_v_line); __pyx_9genexpr39__pyx_v_line = 0; goto __pyx_L19_error; __pyx_L31_exit_scope:; } /* exit inner scope */ __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9332, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_nvSciSync, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9332, __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, 9332, __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)) __PYX_ERR(0, 9332, __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, 9332, __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/cudart.pyx":9331 * except ValueError: * str_list += ['fence : '] * 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/cudart.pyx":9333 * try: * str_list += ['nvSciSync :\n' + '\n'.join([' ' + line for line in str(self.nvSciSync).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['nvSciSync : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.anon_struct18.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 9333, __pyx_L21_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":9334 * str_list += ['nvSciSync :\n' + '\n'.join([' ' + line for line in str(self.nvSciSync).splitlines()])] * except ValueError: * str_list += ['nvSciSync : '] # <<<<<<<<<<<<<< * 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, 9334, __pyx_L21_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_nvSciSync_ValueError); __Pyx_GIVEREF(__pyx_kp_u_nvSciSync_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_nvSciSync_ValueError)) __PYX_ERR(0, 9334, __pyx_L21_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9334, __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/cudart.pyx":9331 * except ValueError: * str_list += ['fence : '] * 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/cudart.pyx":9335 * except ValueError: * str_list += ['nvSciSync : '] * 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/cudart.pyx":9336 * str_list += ['nvSciSync : '] * try: * str_list += ['keyedMutex :\n' + '\n'.join([' ' + line for line in str(self.keyedMutex).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['keyedMutex : '] */ { /* enter inner scope */ __pyx_t_7 = PyList_New(0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9336, __pyx_L42_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_keyedMutex_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9336, __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, 9336, __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, 9336, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 9336, __pyx_L42_error) #endif if (__pyx_t_8 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_2 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_8); __Pyx_INCREF(__pyx_t_2); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(0, 9336, __pyx_L42_error) #else __pyx_t_2 = __Pyx_PySequence_ITEM(__pyx_t_6, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9336, __pyx_L42_error) __Pyx_GOTREF(__pyx_t_2); #endif __Pyx_XDECREF_SET(__pyx_9genexpr40__pyx_v_line, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr40__pyx_v_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9336, __pyx_L42_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__Pyx_ListComp_Append(__pyx_t_7, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 9336, __pyx_L42_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_9genexpr40__pyx_v_line); __pyx_9genexpr40__pyx_v_line = 0; goto __pyx_L46_exit_scope; __pyx_L42_error:; __Pyx_XDECREF(__pyx_9genexpr40__pyx_v_line); __pyx_9genexpr40__pyx_v_line = 0; goto __pyx_L34_error; __pyx_L46_exit_scope:; } /* exit inner scope */ __pyx_t_6 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9336, __pyx_L34_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_keyedMutex, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9336, __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, 9336, __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)) __PYX_ERR(0, 9336, __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, 9336, __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/cudart.pyx":9335 * except ValueError: * str_list += ['nvSciSync : '] * 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/cudart.pyx":9337 * try: * str_list += ['keyedMutex :\n' + '\n'.join([' ' + line for line in str(self.keyedMutex).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['keyedMutex : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.anon_struct18.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 9337, __pyx_L36_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":9338 * str_list += ['keyedMutex :\n' + '\n'.join([' ' + line for line in str(self.keyedMutex).splitlines()])] * except ValueError: * str_list += ['keyedMutex : '] # <<<<<<<<<<<<<< * try: * str_list += ['reserved : ' + str(self.reserved)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9338, __pyx_L36_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_keyedMutex_ValueError); __Pyx_GIVEREF(__pyx_kp_u_keyedMutex_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_keyedMutex_ValueError)) __PYX_ERR(0, 9338, __pyx_L36_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9338, __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/cudart.pyx":9335 * except ValueError: * str_list += ['nvSciSync : '] * 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/cudart.pyx":9339 * except ValueError: * str_list += ['keyedMutex : '] * 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/cudart.pyx":9340 * str_list += ['keyedMutex : '] * try: * str_list += ['reserved : ' + str(self.reserved)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['reserved : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_reserved_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9340, __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, 9340, __pyx_L49_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_reserved, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9340, __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, 9340, __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)) __PYX_ERR(0, 9340, __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, 9340, __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/cudart.pyx":9339 * except ValueError: * str_list += ['keyedMutex : '] * 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/cudart.pyx":9341 * try: * str_list += ['reserved : ' + str(self.reserved)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['reserved : '] * return '\n'.join(str_list) */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.anon_struct18.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(0, 9341, __pyx_L51_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":9342 * str_list += ['reserved : ' + str(self.reserved)] * except ValueError: * str_list += ['reserved : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9342, __pyx_L51_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_reserved_ValueError); __Pyx_GIVEREF(__pyx_kp_u_reserved_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_reserved_ValueError)) __PYX_ERR(0, 9342, __pyx_L51_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9342, __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/cudart.pyx":9339 * except ValueError: * str_list += ['keyedMutex : '] * 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/cudart.pyx":9343 * except ValueError: * str_list += ['reserved : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_7 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9343, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9325 * return &self._ptr[0].params * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":9345 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def fence(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":9324 * def getPtr(self): * return &self._ptr[0].params * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.anon_struct18.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XDECREF(__pyx_9genexpr38__pyx_v_line); __Pyx_XDECREF(__pyx_9genexpr39__pyx_v_line); __Pyx_XDECREF(__pyx_9genexpr40__pyx_v_line); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9346 * else: * return '' * @property # <<<<<<<<<<<<<< * def fence(self): * return self._fence */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct18_5fence_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct18_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_6cudart_13anon_struct18_5fence___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct18 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct18_5fence___get__(struct __pyx_obj_4cuda_6cudart_anon_struct18 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9346, 0, __PYX_ERR(0, 9346, __pyx_L1_error)); /* "cuda/cudart.pyx":9348 * @property * def fence(self): * return self._fence # <<<<<<<<<<<<<< * @fence.setter * def fence(self, fence not None : anon_struct16): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_self->_fence); __pyx_r = ((PyObject *)__pyx_v_self->_fence); goto __pyx_L0; /* "cuda/cudart.pyx":9346 * else: * return '' * @property # <<<<<<<<<<<<<< * def fence(self): * return self._fence */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct18.fence.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9349 * def fence(self): * return self._fence * @fence.setter # <<<<<<<<<<<<<< * def fence(self, fence not None : anon_struct16): * string.memcpy(&self._ptr[0].params.fence, fence.getPtr(), sizeof(self._ptr[0].params.fence)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct18_5fence_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_fence); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct18_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_ptype_4cuda_6cudart_anon_struct16, 0, "fence", 0))) __PYX_ERR(0, 9350, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct18_5fence_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct18 *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_anon_struct16 *)__pyx_v_fence)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct18_5fence_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct18 *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_anon_struct16 *__pyx_v_fence) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 9349, 0, __PYX_ERR(0, 9349, __pyx_L1_error)); /* "cuda/cudart.pyx":9351 * @fence.setter * def fence(self, fence not None : anon_struct16): * string.memcpy(&self._ptr[0].params.fence, fence.getPtr(), sizeof(self._ptr[0].params.fence)) # <<<<<<<<<<<<<< * @property * def nvSciSync(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_fence), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9351, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9351, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9351, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).params.fence), ((struct anon_struct16 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).params.fence)))); /* "cuda/cudart.pyx":9349 * def fence(self): * return self._fence * @fence.setter # <<<<<<<<<<<<<< * def fence(self, fence not None : anon_struct16): * string.memcpy(&self._ptr[0].params.fence, fence.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.anon_struct18.fence.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9352 * def fence(self, fence not None : anon_struct16): * string.memcpy(&self._ptr[0].params.fence, fence.getPtr(), sizeof(self._ptr[0].params.fence)) * @property # <<<<<<<<<<<<<< * def nvSciSync(self): * return self._nvSciSync */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct18_9nvSciSync_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct18_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_6cudart_13anon_struct18_9nvSciSync___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct18 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct18_9nvSciSync___get__(struct __pyx_obj_4cuda_6cudart_anon_struct18 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9352, 0, __PYX_ERR(0, 9352, __pyx_L1_error)); /* "cuda/cudart.pyx":9354 * @property * def nvSciSync(self): * return self._nvSciSync # <<<<<<<<<<<<<< * @nvSciSync.setter * def nvSciSync(self, nvSciSync not None : anon_union6): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_self->_nvSciSync); __pyx_r = ((PyObject *)__pyx_v_self->_nvSciSync); goto __pyx_L0; /* "cuda/cudart.pyx":9352 * def fence(self, fence not None : anon_struct16): * string.memcpy(&self._ptr[0].params.fence, fence.getPtr(), sizeof(self._ptr[0].params.fence)) * @property # <<<<<<<<<<<<<< * def nvSciSync(self): * return self._nvSciSync */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct18.nvSciSync.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9355 * def nvSciSync(self): * return self._nvSciSync * @nvSciSync.setter # <<<<<<<<<<<<<< * def nvSciSync(self, nvSciSync not None : anon_union6): * string.memcpy(&self._ptr[0].params.nvSciSync, nvSciSync.getPtr(), sizeof(self._ptr[0].params.nvSciSync)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct18_9nvSciSync_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_nvSciSync); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct18_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_ptype_4cuda_6cudart_anon_union6, 0, "nvSciSync", 0))) __PYX_ERR(0, 9356, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct18_9nvSciSync_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct18 *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_anon_union6 *)__pyx_v_nvSciSync)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct18_9nvSciSync_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct18 *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_anon_union6 *__pyx_v_nvSciSync) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 9355, 0, __PYX_ERR(0, 9355, __pyx_L1_error)); /* "cuda/cudart.pyx":9357 * @nvSciSync.setter * def nvSciSync(self, nvSciSync not None : anon_union6): * string.memcpy(&self._ptr[0].params.nvSciSync, nvSciSync.getPtr(), sizeof(self._ptr[0].params.nvSciSync)) # <<<<<<<<<<<<<< * @property * def keyedMutex(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_nvSciSync), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9357, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9357, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9357, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).params.nvSciSync), ((union anon_union6 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).params.nvSciSync)))); /* "cuda/cudart.pyx":9355 * def nvSciSync(self): * return self._nvSciSync * @nvSciSync.setter # <<<<<<<<<<<<<< * def nvSciSync(self, nvSciSync not None : anon_union6): * string.memcpy(&self._ptr[0].params.nvSciSync, nvSciSync.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.anon_struct18.nvSciSync.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9358 * def nvSciSync(self, nvSciSync not None : anon_union6): * string.memcpy(&self._ptr[0].params.nvSciSync, nvSciSync.getPtr(), sizeof(self._ptr[0].params.nvSciSync)) * @property # <<<<<<<<<<<<<< * def keyedMutex(self): * return self._keyedMutex */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct18_10keyedMutex_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct18_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_6cudart_13anon_struct18_10keyedMutex___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct18 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct18_10keyedMutex___get__(struct __pyx_obj_4cuda_6cudart_anon_struct18 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9358, 0, __PYX_ERR(0, 9358, __pyx_L1_error)); /* "cuda/cudart.pyx":9360 * @property * def keyedMutex(self): * return self._keyedMutex # <<<<<<<<<<<<<< * @keyedMutex.setter * def keyedMutex(self, keyedMutex not None : anon_struct17): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_self->_keyedMutex); __pyx_r = ((PyObject *)__pyx_v_self->_keyedMutex); goto __pyx_L0; /* "cuda/cudart.pyx":9358 * def nvSciSync(self, nvSciSync not None : anon_union6): * string.memcpy(&self._ptr[0].params.nvSciSync, nvSciSync.getPtr(), sizeof(self._ptr[0].params.nvSciSync)) * @property # <<<<<<<<<<<<<< * def keyedMutex(self): * return self._keyedMutex */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct18.keyedMutex.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9361 * def keyedMutex(self): * return self._keyedMutex * @keyedMutex.setter # <<<<<<<<<<<<<< * def keyedMutex(self, keyedMutex not None : anon_struct17): * string.memcpy(&self._ptr[0].params.keyedMutex, keyedMutex.getPtr(), sizeof(self._ptr[0].params.keyedMutex)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct18_10keyedMutex_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_keyedMutex); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct18_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_ptype_4cuda_6cudart_anon_struct17, 0, "keyedMutex", 0))) __PYX_ERR(0, 9362, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct18_10keyedMutex_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct18 *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_anon_struct17 *)__pyx_v_keyedMutex)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct18_10keyedMutex_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct18 *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_anon_struct17 *__pyx_v_keyedMutex) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 9361, 0, __PYX_ERR(0, 9361, __pyx_L1_error)); /* "cuda/cudart.pyx":9363 * @keyedMutex.setter * def keyedMutex(self, keyedMutex not None : anon_struct17): * string.memcpy(&self._ptr[0].params.keyedMutex, keyedMutex.getPtr(), sizeof(self._ptr[0].params.keyedMutex)) # <<<<<<<<<<<<<< * @property * def reserved(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_keyedMutex), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9363, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9363, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9363, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).params.keyedMutex), ((struct anon_struct17 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).params.keyedMutex)))); /* "cuda/cudart.pyx":9361 * def keyedMutex(self): * return self._keyedMutex * @keyedMutex.setter # <<<<<<<<<<<<<< * def keyedMutex(self, keyedMutex not None : anon_struct17): * string.memcpy(&self._ptr[0].params.keyedMutex, keyedMutex.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.anon_struct18.keyedMutex.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9364 * def keyedMutex(self, keyedMutex not None : anon_struct17): * string.memcpy(&self._ptr[0].params.keyedMutex, keyedMutex.getPtr(), sizeof(self._ptr[0].params.keyedMutex)) * @property # <<<<<<<<<<<<<< * def reserved(self): * return self._ptr[0].params.reserved */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct18_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct18_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_6cudart_13anon_struct18_8reserved___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct18 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct18_8reserved___get__(struct __pyx_obj_4cuda_6cudart_anon_struct18 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9364, 0, __PYX_ERR(0, 9364, __pyx_L1_error)); /* "cuda/cudart.pyx":9366 * @property * def reserved(self): * return self._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->_ptr[0]).params.reserved, 10); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9366, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9364 * def keyedMutex(self, keyedMutex not None : anon_struct17): * string.memcpy(&self._ptr[0].params.keyedMutex, keyedMutex.getPtr(), sizeof(self._ptr[0].params.keyedMutex)) * @property # <<<<<<<<<<<<<< * def reserved(self): * return self._ptr[0].params.reserved */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct18.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9367 * def reserved(self): * return self._ptr[0].params.reserved * @reserved.setter # <<<<<<<<<<<<<< * def reserved(self, reserved): * self._ptr[0].params.reserved = reserved */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct18_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct18_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_6cudart_13anon_struct18_8reserved_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct18 *)__pyx_v_self), ((PyObject *)__pyx_v_reserved)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct18_8reserved_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct18 *__pyx_v_self, PyObject *__pyx_v_reserved) { int __pyx_r; __Pyx_TraceDeclarations unsigned int __pyx_t_1[10]; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 9367, 0, __PYX_ERR(0, 9367, __pyx_L1_error)); /* "cuda/cudart.pyx":9369 * @reserved.setter * def reserved(self, reserved): * self._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, 9369, __pyx_L1_error) memcpy(&((__pyx_v_self->_ptr[0]).params.reserved[0]), __pyx_t_1, sizeof((__pyx_v_self->_ptr[0]).params.reserved[0]) * (10)); /* "cuda/cudart.pyx":9367 * def reserved(self): * return self._ptr[0].params.reserved * @reserved.setter # <<<<<<<<<<<<<< * def reserved(self, reserved): * self._ptr[0].params.reserved = reserved */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct18.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_13anon_struct18_10__reduce_cython__, "anon_struct18.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_13anon_struct18_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct18_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct18_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct18_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct18 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct18_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct18 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__213) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct18.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_13anon_struct18_12__setstate_cython__, "anon_struct18.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_13anon_struct18_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct18_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct18_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct18.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct18_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct18 *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct18_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct18 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__214) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct18.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9397 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 9397, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 9397, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9397, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 9397, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreWaitParams___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreWaitParams___cinit__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 9397, 0, __PYX_ERR(0, 9397, __pyx_L1_error)); /* "cuda/cudart.pyx":9398 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":9399 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaExternalSemaphoreWaitParams__val); /* "cuda/cudart.pyx":9398 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":9401 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * self._params = anon_struct18(_ptr=self._ptr) */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaExternalSemaphoreWaitParams *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":9397 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":9402 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._params = anon_struct18(_ptr=self._ptr) * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 9402, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 9402, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9402, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 9402, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_2__init__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 9402, 0, __PYX_ERR(0, 9402, __pyx_L1_error)); /* "cuda/cudart.pyx":9403 * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): * self._params = anon_struct18(_ptr=self._ptr) # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9403, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9403, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 9403, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct18), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9403, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_params); __Pyx_DECREF((PyObject *)__pyx_v_self->_params); __pyx_v_self->_params = ((struct __pyx_obj_4cuda_6cudart_anon_struct18 *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":9402 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._params = anon_struct18(_ptr=self._ptr) * def __dealloc__(self): */ /* 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.cudart.cudaExternalSemaphoreWaitParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9404 * def __init__(self, void_ptr _ptr = 0): * self._params = anon_struct18(_ptr=self._ptr) * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_31cudaExternalSemaphoreWaitParams_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 9404, 0, __PYX_ERR(0, 9404, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaExternalSemaphoreWaitParams.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":9406 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_31cudaExternalSemaphoreWaitParams_6getPtr, "cudaExternalSemaphoreWaitParams.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__215) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 9406, 0, __PYX_ERR(0, 9406, __pyx_L1_error)); /* "cuda/cudart.pyx":9407 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9407, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9406 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitParams.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9408 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_31cudaExternalSemaphoreWaitParams_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_9genexpr41__pyx_v_line = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 9408, 0, __PYX_ERR(0, 9408, __pyx_L1_error)); /* "cuda/cudart.pyx":9409 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":9410 * def __repr__(self): * if self._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, 9410, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":9411 * if self._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/cudart.pyx":9412 * str_list = [] * try: * str_list += ['params :\n' + '\n'.join([' ' + line for line in str(self.params).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['params : '] */ { /* enter inner scope */ __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9412, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_params_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9412, __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, 9412, __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, 9412, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 9412, __pyx_L12_error) #endif if (__pyx_t_8 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_7, __pyx_t_8); __Pyx_INCREF(__pyx_t_6); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(0, 9412, __pyx_L12_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9412, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_9genexpr41__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr41__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9412, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 9412, __pyx_L12_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_9genexpr41__pyx_v_line); __pyx_9genexpr41__pyx_v_line = 0; goto __pyx_L16_exit_scope; __pyx_L12_error:; __Pyx_XDECREF(__pyx_9genexpr41__pyx_v_line); __pyx_9genexpr41__pyx_v_line = 0; goto __pyx_L4_error; __pyx_L16_exit_scope:; } /* exit inner scope */ __pyx_t_7 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9412, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_params, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9412, __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, 9412, __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)) __PYX_ERR(0, 9412, __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, 9412, __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/cudart.pyx":9411 * if self._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/cudart.pyx":9413 * try: * str_list += ['params :\n' + '\n'.join([' ' + line for line in str(self.params).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['params : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 9413, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":9414 * str_list += ['params :\n' + '\n'.join([' ' + line for line in str(self.params).splitlines()])] * except ValueError: * str_list += ['params : '] # <<<<<<<<<<<<<< * try: * str_list += ['flags : ' + str(self.flags)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9414, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_params_ValueError); __Pyx_GIVEREF(__pyx_kp_u_params_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_params_ValueError)) __PYX_ERR(0, 9414, __pyx_L6_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9414, __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/cudart.pyx":9411 * if self._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/cudart.pyx":9415 * except ValueError: * str_list += ['params : '] * 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/cudart.pyx":9416 * str_list += ['params : '] * try: * str_list += ['flags : ' + str(self.flags)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['flags : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_flags_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9416, __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, 9416, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_flags, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9416, __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, 9416, __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)) __PYX_ERR(0, 9416, __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, 9416, __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/cudart.pyx":9415 * except ValueError: * str_list += ['params : '] * 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/cudart.pyx":9417 * try: * str_list += ['flags : ' + str(self.flags)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['flags : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_7, &__pyx_t_2) < 0) __PYX_ERR(0, 9417, __pyx_L21_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":9418 * str_list += ['flags : ' + str(self.flags)] * except ValueError: * str_list += ['flags : '] # <<<<<<<<<<<<<< * try: * str_list += ['reserved : ' + str(self.reserved)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9418, __pyx_L21_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_flags_ValueError); __Pyx_GIVEREF(__pyx_kp_u_flags_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_flags_ValueError)) __PYX_ERR(0, 9418, __pyx_L21_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9418, __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/cudart.pyx":9415 * except ValueError: * str_list += ['params : '] * 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/cudart.pyx":9419 * except ValueError: * str_list += ['flags : '] * 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/cudart.pyx":9420 * str_list += ['flags : '] * try: * str_list += ['reserved : ' + str(self.reserved)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['reserved : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_reserved_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9420, __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, 9420, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_reserved, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9420, __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, 9420, __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)) __PYX_ERR(0, 9420, __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, 9420, __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/cudart.pyx":9419 * except ValueError: * str_list += ['flags : '] * 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/cudart.pyx":9421 * try: * str_list += ['reserved : ' + str(self.reserved)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['reserved : '] * return '\n'.join(str_list) */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 9421, __pyx_L29_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":9422 * str_list += ['reserved : ' + str(self.reserved)] * except ValueError: * str_list += ['reserved : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9422, __pyx_L29_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_reserved_ValueError); __Pyx_GIVEREF(__pyx_kp_u_reserved_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_reserved_ValueError)) __PYX_ERR(0, 9422, __pyx_L29_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9422, __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/cudart.pyx":9419 * except ValueError: * str_list += ['flags : '] * 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/cudart.pyx":9423 * except ValueError: * str_list += ['reserved : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_6 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9423, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9409 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":9425 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def params(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":9408 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaExternalSemaphoreWaitParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XDECREF(__pyx_9genexpr41__pyx_v_line); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9426 * else: * return '' * @property # <<<<<<<<<<<<<< * def params(self): * return self._params */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_6params_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_31cudaExternalSemaphoreWaitParams_6params___get__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_6params___get__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9426, 0, __PYX_ERR(0, 9426, __pyx_L1_error)); /* "cuda/cudart.pyx":9428 * @property * def params(self): * return self._params # <<<<<<<<<<<<<< * @params.setter * def params(self, params not None : anon_struct18): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_self->_params); __pyx_r = ((PyObject *)__pyx_v_self->_params); goto __pyx_L0; /* "cuda/cudart.pyx":9426 * else: * return '' * @property # <<<<<<<<<<<<<< * def params(self): * return self._params */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitParams.params.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9429 * def params(self): * return self._params * @params.setter # <<<<<<<<<<<<<< * def params(self, params not None : anon_struct18): * string.memcpy(&self._ptr[0].params, params.getPtr(), sizeof(self._ptr[0].params)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_6params_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_params); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_anon_struct18, 0, "params", 0))) __PYX_ERR(0, 9430, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_6params_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_anon_struct18 *)__pyx_v_params)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_6params_2__set__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_anon_struct18 *__pyx_v_params) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 9429, 0, __PYX_ERR(0, 9429, __pyx_L1_error)); /* "cuda/cudart.pyx":9431 * @params.setter * def params(self, params not None : anon_struct18): * string.memcpy(&self._ptr[0].params, params.getPtr(), sizeof(self._ptr[0].params)) # <<<<<<<<<<<<<< * @property * def flags(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_params), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9431, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9431, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9431, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).params), ((struct anon_struct18 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).params)))); /* "cuda/cudart.pyx":9429 * def params(self): * return self._params * @params.setter # <<<<<<<<<<<<<< * def params(self, params not None : anon_struct18): * string.memcpy(&self._ptr[0].params, params.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitParams.params.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9432 * def params(self, params not None : anon_struct18): * string.memcpy(&self._ptr[0].params, params.getPtr(), sizeof(self._ptr[0].params)) * @property # <<<<<<<<<<<<<< * def flags(self): * return self._ptr[0].flags */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_5flags_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_31cudaExternalSemaphoreWaitParams_5flags___get__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_5flags___get__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9432, 0, __PYX_ERR(0, 9432, __pyx_L1_error)); /* "cuda/cudart.pyx":9434 * @property * def flags(self): * return self._ptr[0].flags # <<<<<<<<<<<<<< * @flags.setter * def flags(self, unsigned int flags): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).flags); 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/cudart.pyx":9432 * def params(self, params not None : anon_struct18): * string.memcpy(&self._ptr[0].params, params.getPtr(), sizeof(self._ptr[0].params)) * @property # <<<<<<<<<<<<<< * def flags(self): * return self._ptr[0].flags */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitParams.flags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9435 * def flags(self): * return self._ptr[0].flags * @flags.setter # <<<<<<<<<<<<<< * def flags(self, unsigned int flags): * self._ptr[0].flags = flags */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_flags); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9436, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitParams.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_5flags_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *)__pyx_v_self), ((unsigned int)__pyx_v_flags)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_5flags_2__set__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *__pyx_v_self, unsigned int __pyx_v_flags) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 9435, 0, __PYX_ERR(0, 9435, __pyx_L1_error)); /* "cuda/cudart.pyx":9437 * @flags.setter * def flags(self, unsigned int flags): * self._ptr[0].flags = flags # <<<<<<<<<<<<<< * @property * def reserved(self): */ (__pyx_v_self->_ptr[0]).flags = __pyx_v_flags; /* "cuda/cudart.pyx":9435 * def flags(self): * return self._ptr[0].flags * @flags.setter # <<<<<<<<<<<<<< * def flags(self, unsigned int flags): * self._ptr[0].flags = flags */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitParams.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":9438 * def flags(self, unsigned int flags): * self._ptr[0].flags = flags * @property # <<<<<<<<<<<<<< * def reserved(self): * return self._ptr[0].reserved */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_31cudaExternalSemaphoreWaitParams_8reserved___get__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_8reserved___get__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9438, 0, __PYX_ERR(0, 9438, __pyx_L1_error)); /* "cuda/cudart.pyx":9440 * @property * def reserved(self): * return self._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->_ptr[0]).reserved, 16); 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/cudart.pyx":9438 * def flags(self, unsigned int flags): * self._ptr[0].flags = flags * @property # <<<<<<<<<<<<<< * def reserved(self): * return self._ptr[0].reserved */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitParams.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9441 * def reserved(self): * return self._ptr[0].reserved * @reserved.setter # <<<<<<<<<<<<<< * def reserved(self, reserved): * self._ptr[0].reserved = reserved */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_31cudaExternalSemaphoreWaitParams_8reserved_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *)__pyx_v_self), ((PyObject *)__pyx_v_reserved)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_8reserved_2__set__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *__pyx_v_self, PyObject *__pyx_v_reserved) { int __pyx_r; __Pyx_TraceDeclarations unsigned int __pyx_t_1[16]; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 9441, 0, __PYX_ERR(0, 9441, __pyx_L1_error)); /* "cuda/cudart.pyx":9443 * @reserved.setter * def reserved(self, reserved): * self._ptr[0].reserved = reserved # <<<<<<<<<<<<<< * * cdef class cudaKernelNodeParams: */ if (unlikely((__Pyx_carray_from_py_unsigned_int(__pyx_v_reserved, __pyx_t_1, 16) < 0))) __PYX_ERR(0, 9443, __pyx_L1_error) memcpy(&((__pyx_v_self->_ptr[0]).reserved[0]), __pyx_t_1, sizeof((__pyx_v_self->_ptr[0]).reserved[0]) * (16)); /* "cuda/cudart.pyx":9441 * def reserved(self): * return self._ptr[0].reserved * @reserved.setter # <<<<<<<<<<<<<< * def reserved(self, reserved): * self._ptr[0].reserved = reserved */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitParams.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_31cudaExternalSemaphoreWaitParams_10__reduce_cython__, "cudaExternalSemaphoreWaitParams.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__216) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaExternalSemaphoreWaitParams.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_31cudaExternalSemaphoreWaitParams_12__setstate_cython__, "cudaExternalSemaphoreWaitParams.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__217) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaExternalSemaphoreWaitParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9470 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 9470, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 9470, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9470, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 9470, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaKernelNodeParams___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_20cudaKernelNodeParams___cinit__(struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 9470, 0, __PYX_ERR(0, 9470, __pyx_L1_error)); /* "cuda/cudart.pyx":9471 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":9472 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaKernelNodeParams__val); /* "cuda/cudart.pyx":9471 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":9474 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * self._gridDim = dim3(_ptr=&self._ptr[0].gridDim) */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaKernelNodeParams *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":9470 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":9475 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._gridDim = dim3(_ptr=&self._ptr[0].gridDim) * self._blockDim = dim3(_ptr=&self._ptr[0].blockDim) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 9475, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 9475, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9475, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 9475, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaKernelNodeParams_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_20cudaKernelNodeParams_2__init__(struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 9475, 0, __PYX_ERR(0, 9475, __pyx_L1_error)); /* "cuda/cudart.pyx":9476 * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): * self._gridDim = dim3(_ptr=&self._ptr[0].gridDim) # <<<<<<<<<<<<<< * self._blockDim = dim3(_ptr=&self._ptr[0].blockDim) * def __dealloc__(self): */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9476, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).gridDim))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9476, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 9476, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_dim3), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9476, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_gridDim); __Pyx_DECREF((PyObject *)__pyx_v_self->_gridDim); __pyx_v_self->_gridDim = ((struct __pyx_obj_4cuda_6cudart_dim3 *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":9477 * def __init__(self, void_ptr _ptr = 0): * self._gridDim = dim3(_ptr=&self._ptr[0].gridDim) * self._blockDim = dim3(_ptr=&self._ptr[0].blockDim) # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9477, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).blockDim))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9477, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_ptr, __pyx_t_1) < 0) __PYX_ERR(0, 9477, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_dim3), __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9477, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GIVEREF(__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_6cudart_dim3 *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":9475 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._gridDim = dim3(_ptr=&self._ptr[0].gridDim) * self._blockDim = dim3(_ptr=&self._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.cudart.cudaKernelNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9478 * self._gridDim = dim3(_ptr=&self._ptr[0].gridDim) * self._blockDim = dim3(_ptr=&self._ptr[0].blockDim) * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_20cudaKernelNodeParams_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_20cudaKernelNodeParams_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 9478, 0, __PYX_ERR(0, 9478, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaKernelNodeParams.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":9480 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaKernelNodeParams_6getPtr, "cudaKernelNodeParams.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_20cudaKernelNodeParams_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaKernelNodeParams_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaKernelNodeParams_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaKernelNodeParams_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__218) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 9480, 0, __PYX_ERR(0, 9480, __pyx_L1_error)); /* "cuda/cudart.pyx":9481 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9481, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9480 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParams.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9482 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaKernelNodeParams_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaKernelNodeParams_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_9genexpr42__pyx_v_line = NULL; PyObject *__pyx_9genexpr43__pyx_v_line = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 9482, 0, __PYX_ERR(0, 9482, __pyx_L1_error)); /* "cuda/cudart.pyx":9483 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":9484 * def __repr__(self): * if self._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, 9484, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":9485 * if self._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/cudart.pyx":9486 * str_list = [] * try: * str_list += ['func : ' + hex(self.func)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['func : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_func_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9486, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9486, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_kp_u_func, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9486, __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, 9486, __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)) __PYX_ERR(0, 9486, __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, 9486, __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/cudart.pyx":9485 * if self._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/cudart.pyx":9487 * try: * str_list += ['func : ' + hex(self.func)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['func : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 9487, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":9488 * str_list += ['func : ' + hex(self.func)] * except ValueError: * str_list += ['func : '] # <<<<<<<<<<<<<< * 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, 9488, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_func_ValueError); __Pyx_GIVEREF(__pyx_kp_u_func_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_func_ValueError)) __PYX_ERR(0, 9488, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9488, __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/cudart.pyx":9485 * if self._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/cudart.pyx":9489 * except ValueError: * str_list += ['func : '] * 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/cudart.pyx":9490 * str_list += ['func : '] * try: * str_list += ['gridDim :\n' + '\n'.join([' ' + line for line in str(self.gridDim).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['gridDim : '] */ { /* enter inner scope */ __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9490, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_gridDim_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9490, __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, 9490, __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, 9490, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 9490, __pyx_L20_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_11); __Pyx_INCREF(__pyx_t_6); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 9490, __pyx_L20_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9490, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_9genexpr42__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr42__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9490, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 9490, __pyx_L20_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_9genexpr42__pyx_v_line); __pyx_9genexpr42__pyx_v_line = 0; goto __pyx_L24_exit_scope; __pyx_L20_error:; __Pyx_XDECREF(__pyx_9genexpr42__pyx_v_line); __pyx_9genexpr42__pyx_v_line = 0; goto __pyx_L12_error; __pyx_L24_exit_scope:; } /* exit inner scope */ __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9490, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_gridDim, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9490, __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, 9490, __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)) __PYX_ERR(0, 9490, __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, 9490, __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/cudart.pyx":9489 * except ValueError: * str_list += ['func : '] * 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/cudart.pyx":9491 * try: * str_list += ['gridDim :\n' + '\n'.join([' ' + line for line in str(self.gridDim).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['gridDim : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 9491, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":9492 * str_list += ['gridDim :\n' + '\n'.join([' ' + line for line in str(self.gridDim).splitlines()])] * except ValueError: * str_list += ['gridDim : '] # <<<<<<<<<<<<<< * 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, 9492, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_gridDim_ValueError); __Pyx_GIVEREF(__pyx_kp_u_gridDim_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_gridDim_ValueError)) __PYX_ERR(0, 9492, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 9492, __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/cudart.pyx":9489 * except ValueError: * str_list += ['func : '] * 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/cudart.pyx":9493 * except ValueError: * str_list += ['gridDim : '] * 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/cudart.pyx":9494 * str_list += ['gridDim : '] * try: * str_list += ['blockDim :\n' + '\n'.join([' ' + line for line in str(self.blockDim).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['blockDim : '] */ { /* enter inner scope */ __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9494, __pyx_L35_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_blockDim_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9494, __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, 9494, __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, 9494, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 9494, __pyx_L35_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_2 = PyList_GET_ITEM(__pyx_t_8, __pyx_t_11); __Pyx_INCREF(__pyx_t_2); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 9494, __pyx_L35_error) #else __pyx_t_2 = __Pyx_PySequence_ITEM(__pyx_t_8, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9494, __pyx_L35_error) __Pyx_GOTREF(__pyx_t_2); #endif __Pyx_XDECREF_SET(__pyx_9genexpr43__pyx_v_line, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr43__pyx_v_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9494, __pyx_L35_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 9494, __pyx_L35_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_9genexpr43__pyx_v_line); __pyx_9genexpr43__pyx_v_line = 0; goto __pyx_L39_exit_scope; __pyx_L35_error:; __Pyx_XDECREF(__pyx_9genexpr43__pyx_v_line); __pyx_9genexpr43__pyx_v_line = 0; goto __pyx_L27_error; __pyx_L39_exit_scope:; } /* exit inner scope */ __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9494, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_blockDim, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9494, __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, 9494, __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)) __PYX_ERR(0, 9494, __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, 9494, __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/cudart.pyx":9493 * except ValueError: * str_list += ['gridDim : '] * 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/cudart.pyx":9495 * try: * str_list += ['blockDim :\n' + '\n'.join([' ' + line for line in str(self.blockDim).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['blockDim : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 9495, __pyx_L29_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":9496 * str_list += ['blockDim :\n' + '\n'.join([' ' + line for line in str(self.blockDim).splitlines()])] * except ValueError: * str_list += ['blockDim : '] # <<<<<<<<<<<<<< * try: * str_list += ['sharedMemBytes : ' + str(self.sharedMemBytes)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 9496, __pyx_L29_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_blockDim_ValueError); __Pyx_GIVEREF(__pyx_kp_u_blockDim_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_blockDim_ValueError)) __PYX_ERR(0, 9496, __pyx_L29_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9496, __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/cudart.pyx":9493 * except ValueError: * str_list += ['gridDim : '] * 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/cudart.pyx":9497 * except ValueError: * str_list += ['blockDim : '] * 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/cudart.pyx":9498 * str_list += ['blockDim : '] * try: * str_list += ['sharedMemBytes : ' + str(self.sharedMemBytes)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['sharedMemBytes : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_sharedMemBytes_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9498, __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, 9498, __pyx_L42_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_sharedMemBytes, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9498, __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, 9498, __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)) __PYX_ERR(0, 9498, __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, 9498, __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/cudart.pyx":9497 * except ValueError: * str_list += ['blockDim : '] * 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/cudart.pyx":9499 * try: * str_list += ['sharedMemBytes : ' + str(self.sharedMemBytes)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['sharedMemBytes : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_8, &__pyx_t_6) < 0) __PYX_ERR(0, 9499, __pyx_L44_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":9500 * str_list += ['sharedMemBytes : ' + str(self.sharedMemBytes)] * except ValueError: * str_list += ['sharedMemBytes : '] # <<<<<<<<<<<<<< * try: * str_list += ['kernelParams : ' + str(self.kernelParams)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9500, __pyx_L44_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_sharedMemBytes_ValueError); __Pyx_GIVEREF(__pyx_kp_u_sharedMemBytes_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_sharedMemBytes_ValueError)) __PYX_ERR(0, 9500, __pyx_L44_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 9500, __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/cudart.pyx":9497 * except ValueError: * str_list += ['blockDim : '] * 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/cudart.pyx":9501 * except ValueError: * str_list += ['sharedMemBytes : '] * 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/cudart.pyx":9502 * str_list += ['sharedMemBytes : '] * try: * str_list += ['kernelParams : ' + str(self.kernelParams)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['kernelParams : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_kernelParams_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9502, __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, 9502, __pyx_L50_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_kernelParams, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9502, __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, 9502, __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)) __PYX_ERR(0, 9502, __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, 9502, __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/cudart.pyx":9501 * except ValueError: * str_list += ['sharedMemBytes : '] * 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/cudart.pyx":9503 * try: * str_list += ['kernelParams : ' + str(self.kernelParams)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['kernelParams : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 9503, __pyx_L52_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":9504 * str_list += ['kernelParams : ' + str(self.kernelParams)] * except ValueError: * str_list += ['kernelParams : '] # <<<<<<<<<<<<<< * try: * str_list += ['extra : ' + str(self.extra)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 9504, __pyx_L52_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_kernelParams_ValueError); __Pyx_GIVEREF(__pyx_kp_u_kernelParams_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_kernelParams_ValueError)) __PYX_ERR(0, 9504, __pyx_L52_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9504, __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/cudart.pyx":9501 * except ValueError: * str_list += ['sharedMemBytes : '] * 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/cudart.pyx":9505 * except ValueError: * str_list += ['kernelParams : '] * 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/cudart.pyx":9506 * str_list += ['kernelParams : '] * try: * str_list += ['extra : ' + str(self.extra)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['extra : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_extra_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9506, __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, 9506, __pyx_L58_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_extra, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9506, __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, 9506, __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)) __PYX_ERR(0, 9506, __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, 9506, __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/cudart.pyx":9505 * except ValueError: * str_list += ['kernelParams : '] * 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/cudart.pyx":9507 * try: * str_list += ['extra : ' + str(self.extra)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['extra : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_8, &__pyx_t_6) < 0) __PYX_ERR(0, 9507, __pyx_L60_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":9508 * str_list += ['extra : ' + str(self.extra)] * except ValueError: * str_list += ['extra : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9508, __pyx_L60_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_extra_ValueError); __Pyx_GIVEREF(__pyx_kp_u_extra_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_extra_ValueError)) __PYX_ERR(0, 9508, __pyx_L60_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 9508, __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/cudart.pyx":9505 * except ValueError: * str_list += ['kernelParams : '] * 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/cudart.pyx":9509 * except ValueError: * str_list += ['extra : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_6 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9509, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9483 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":9511 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def func(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":9482 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaKernelNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XDECREF(__pyx_9genexpr42__pyx_v_line); __Pyx_XDECREF(__pyx_9genexpr43__pyx_v_line); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9512 * else: * return '' * @property # <<<<<<<<<<<<<< * def func(self): * return self._ptr[0].func */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_4func_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaKernelNodeParams_4func___get__(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaKernelNodeParams_4func___get__(struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9512, 0, __PYX_ERR(0, 9512, __pyx_L1_error)); /* "cuda/cudart.pyx":9514 * @property * def func(self): * return self._ptr[0].func # <<<<<<<<<<<<<< * @func.setter * def func(self, func): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).func)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9514, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9512 * else: * return '' * @property # <<<<<<<<<<<<<< * def func(self): * return self._ptr[0].func */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParams.func.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9515 * def func(self): * return self._ptr[0].func * @func.setter # <<<<<<<<<<<<<< * def func(self, func): * _cfunc = utils.HelperInputVoidPtr(func) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_4func_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_func); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_20cudaKernelNodeParams_4func_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_func)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_20cudaKernelNodeParams_4func_2__set__(struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *__pyx_v_self, PyObject *__pyx_v_func) { PyObject *__pyx_v__cfunc = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 9515, 0, __PYX_ERR(0, 9515, __pyx_L1_error)); /* "cuda/cudart.pyx":9517 * @func.setter * def func(self, func): * _cfunc = utils.HelperInputVoidPtr(func) # <<<<<<<<<<<<<< * self._ptr[0].func = _cfunc.cptr * @property */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_func); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9517, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__cfunc = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":9518 * def func(self, func): * _cfunc = utils.HelperInputVoidPtr(func) * self._ptr[0].func = _cfunc.cptr # <<<<<<<<<<<<<< * @property * def gridDim(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v__cfunc, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9518, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9518, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).func = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":9515 * def func(self): * return self._ptr[0].func * @func.setter # <<<<<<<<<<<<<< * def func(self, func): * _cfunc = utils.HelperInputVoidPtr(func) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParams.func.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v__cfunc); __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9519 * _cfunc = utils.HelperInputVoidPtr(func) * self._ptr[0].func = _cfunc.cptr * @property # <<<<<<<<<<<<<< * def gridDim(self): * return self._gridDim */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_7gridDim_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaKernelNodeParams_7gridDim___get__(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaKernelNodeParams_7gridDim___get__(struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9519, 0, __PYX_ERR(0, 9519, __pyx_L1_error)); /* "cuda/cudart.pyx":9521 * @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/cudart.pyx":9519 * _cfunc = utils.HelperInputVoidPtr(func) * self._ptr[0].func = _cfunc.cptr * @property # <<<<<<<<<<<<<< * def gridDim(self): * return self._gridDim */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParams.gridDim.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9522 * def gridDim(self): * return self._gridDim * @gridDim.setter # <<<<<<<<<<<<<< * def gridDim(self, gridDim not None : dim3): * string.memcpy(&self._ptr[0].gridDim, gridDim.getPtr(), sizeof(self._ptr[0].gridDim)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_7gridDim_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_gridDim); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_dim3, 0, "gridDim", 0))) __PYX_ERR(0, 9523, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_20cudaKernelNodeParams_7gridDim_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_dim3 *)__pyx_v_gridDim)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_20cudaKernelNodeParams_7gridDim_2__set__(struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_dim3 *__pyx_v_gridDim) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 9522, 0, __PYX_ERR(0, 9522, __pyx_L1_error)); /* "cuda/cudart.pyx":9524 * @gridDim.setter * def gridDim(self, gridDim not None : dim3): * string.memcpy(&self._ptr[0].gridDim, gridDim.getPtr(), sizeof(self._ptr[0].gridDim)) # <<<<<<<<<<<<<< * @property * def blockDim(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_gridDim), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9524, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9524, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9524, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).gridDim), ((struct dim3 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).gridDim)))); /* "cuda/cudart.pyx":9522 * def gridDim(self): * return self._gridDim * @gridDim.setter # <<<<<<<<<<<<<< * def gridDim(self, gridDim not None : dim3): * string.memcpy(&self._ptr[0].gridDim, gridDim.getPtr(), sizeof(self._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_AddTraceback("cuda.cudart.cudaKernelNodeParams.gridDim.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9525 * def gridDim(self, gridDim not None : dim3): * string.memcpy(&self._ptr[0].gridDim, gridDim.getPtr(), sizeof(self._ptr[0].gridDim)) * @property # <<<<<<<<<<<<<< * def blockDim(self): * return self._blockDim */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_8blockDim_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaKernelNodeParams_8blockDim___get__(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaKernelNodeParams_8blockDim___get__(struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9525, 0, __PYX_ERR(0, 9525, __pyx_L1_error)); /* "cuda/cudart.pyx":9527 * @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/cudart.pyx":9525 * def gridDim(self, gridDim not None : dim3): * string.memcpy(&self._ptr[0].gridDim, gridDim.getPtr(), sizeof(self._ptr[0].gridDim)) * @property # <<<<<<<<<<<<<< * def blockDim(self): * return self._blockDim */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParams.blockDim.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9528 * def blockDim(self): * return self._blockDim * @blockDim.setter # <<<<<<<<<<<<<< * def blockDim(self, blockDim not None : dim3): * string.memcpy(&self._ptr[0].blockDim, blockDim.getPtr(), sizeof(self._ptr[0].blockDim)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_8blockDim_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_blockDim); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_dim3, 0, "blockDim", 0))) __PYX_ERR(0, 9529, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_20cudaKernelNodeParams_8blockDim_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_dim3 *)__pyx_v_blockDim)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_20cudaKernelNodeParams_8blockDim_2__set__(struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_dim3 *__pyx_v_blockDim) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 9528, 0, __PYX_ERR(0, 9528, __pyx_L1_error)); /* "cuda/cudart.pyx":9530 * @blockDim.setter * def blockDim(self, blockDim not None : dim3): * string.memcpy(&self._ptr[0].blockDim, blockDim.getPtr(), sizeof(self._ptr[0].blockDim)) # <<<<<<<<<<<<<< * @property * def sharedMemBytes(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_blockDim), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9530, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9530, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9530, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).blockDim), ((struct dim3 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).blockDim)))); /* "cuda/cudart.pyx":9528 * def blockDim(self): * return self._blockDim * @blockDim.setter # <<<<<<<<<<<<<< * def blockDim(self, blockDim not None : dim3): * string.memcpy(&self._ptr[0].blockDim, blockDim.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParams.blockDim.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9531 * def blockDim(self, blockDim not None : dim3): * string.memcpy(&self._ptr[0].blockDim, blockDim.getPtr(), sizeof(self._ptr[0].blockDim)) * @property # <<<<<<<<<<<<<< * def sharedMemBytes(self): * return self._ptr[0].sharedMemBytes */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_14sharedMemBytes_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaKernelNodeParams_14sharedMemBytes___get__(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaKernelNodeParams_14sharedMemBytes___get__(struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9531, 0, __PYX_ERR(0, 9531, __pyx_L1_error)); /* "cuda/cudart.pyx":9533 * @property * def sharedMemBytes(self): * return self._ptr[0].sharedMemBytes # <<<<<<<<<<<<<< * @sharedMemBytes.setter * def sharedMemBytes(self, unsigned int sharedMemBytes): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).sharedMemBytes); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9533, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9531 * def blockDim(self, blockDim not None : dim3): * string.memcpy(&self._ptr[0].blockDim, blockDim.getPtr(), sizeof(self._ptr[0].blockDim)) * @property # <<<<<<<<<<<<<< * def sharedMemBytes(self): * return self._ptr[0].sharedMemBytes */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParams.sharedMemBytes.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9534 * def sharedMemBytes(self): * return self._ptr[0].sharedMemBytes * @sharedMemBytes.setter # <<<<<<<<<<<<<< * def sharedMemBytes(self, unsigned int sharedMemBytes): * self._ptr[0].sharedMemBytes = sharedMemBytes */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_14sharedMemBytes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_sharedMemBytes); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_sharedMemBytes); if (unlikely((__pyx_v_sharedMemBytes == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9535, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParams.sharedMemBytes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaKernelNodeParams_14sharedMemBytes_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *)__pyx_v_self), ((unsigned int)__pyx_v_sharedMemBytes)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_20cudaKernelNodeParams_14sharedMemBytes_2__set__(struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *__pyx_v_self, unsigned int __pyx_v_sharedMemBytes) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 9534, 0, __PYX_ERR(0, 9534, __pyx_L1_error)); /* "cuda/cudart.pyx":9536 * @sharedMemBytes.setter * def sharedMemBytes(self, unsigned int sharedMemBytes): * self._ptr[0].sharedMemBytes = sharedMemBytes # <<<<<<<<<<<<<< * @property * def kernelParams(self): */ (__pyx_v_self->_ptr[0]).sharedMemBytes = __pyx_v_sharedMemBytes; /* "cuda/cudart.pyx":9534 * def sharedMemBytes(self): * return self._ptr[0].sharedMemBytes * @sharedMemBytes.setter # <<<<<<<<<<<<<< * def sharedMemBytes(self, unsigned int sharedMemBytes): * self._ptr[0].sharedMemBytes = sharedMemBytes */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParams.sharedMemBytes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":9537 * def sharedMemBytes(self, unsigned int sharedMemBytes): * self._ptr[0].sharedMemBytes = sharedMemBytes * @property # <<<<<<<<<<<<<< * def kernelParams(self): * return self._ptr[0].kernelParams */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_12kernelParams_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaKernelNodeParams_12kernelParams___get__(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaKernelNodeParams_12kernelParams___get__(struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9537, 0, __PYX_ERR(0, 9537, __pyx_L1_error)); /* "cuda/cudart.pyx":9539 * @property * def kernelParams(self): * return self._ptr[0].kernelParams # <<<<<<<<<<<<<< * @kernelParams.setter * def kernelParams(self, kernelParams): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).kernelParams)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9539, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9537 * def sharedMemBytes(self, unsigned int sharedMemBytes): * self._ptr[0].sharedMemBytes = sharedMemBytes * @property # <<<<<<<<<<<<<< * def kernelParams(self): * return self._ptr[0].kernelParams */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParams.kernelParams.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9540 * def kernelParams(self): * return self._ptr[0].kernelParams * @kernelParams.setter # <<<<<<<<<<<<<< * def kernelParams(self, kernelParams): * self._ckernelParams = utils.HelperKernelParams(kernelParams) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_12kernelParams_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_kernelParams); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_20cudaKernelNodeParams_12kernelParams_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_kernelParams)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_20cudaKernelNodeParams_12kernelParams_2__set__(struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *__pyx_v_self, PyObject *__pyx_v_kernelParams) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 9540, 0, __PYX_ERR(0, 9540, __pyx_L1_error)); /* "cuda/cudart.pyx":9542 * @kernelParams.setter * def kernelParams(self, kernelParams): * self._ckernelParams = utils.HelperKernelParams(kernelParams) # <<<<<<<<<<<<<< * self._ptr[0].kernelParams = self._ckernelParams.ckernelParams * @property */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperKernelParams), __pyx_v_kernelParams); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9542, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v_self->_ckernelParams); __Pyx_DECREF((PyObject *)__pyx_v_self->_ckernelParams); __pyx_v_self->_ckernelParams = ((struct __pyx_obj_4cuda_4_lib_5utils_HelperKernelParams *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":9543 * def kernelParams(self, kernelParams): * self._ckernelParams = utils.HelperKernelParams(kernelParams) * self._ptr[0].kernelParams = self._ckernelParams.ckernelParams # <<<<<<<<<<<<<< * @property * def extra(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->_ckernelParams), __pyx_n_s_ckernelParams); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9543, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9543, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).kernelParams = ((void **)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":9540 * def kernelParams(self): * return self._ptr[0].kernelParams * @kernelParams.setter # <<<<<<<<<<<<<< * def kernelParams(self, kernelParams): * self._ckernelParams = utils.HelperKernelParams(kernelParams) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParams.kernelParams.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9544 * self._ckernelParams = utils.HelperKernelParams(kernelParams) * self._ptr[0].kernelParams = self._ckernelParams.ckernelParams * @property # <<<<<<<<<<<<<< * def extra(self): * return self._ptr[0].extra */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_5extra_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaKernelNodeParams_5extra___get__(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaKernelNodeParams_5extra___get__(struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9544, 0, __PYX_ERR(0, 9544, __pyx_L1_error)); /* "cuda/cudart.pyx":9546 * @property * def extra(self): * return self._ptr[0].extra # <<<<<<<<<<<<<< * @extra.setter * def extra(self, void_ptr extra): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).extra)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9546, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9544 * self._ckernelParams = utils.HelperKernelParams(kernelParams) * self._ptr[0].kernelParams = self._ckernelParams.ckernelParams * @property # <<<<<<<<<<<<<< * def extra(self): * return self._ptr[0].extra */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParams.extra.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9547 * def extra(self): * return self._ptr[0].extra * @extra.setter # <<<<<<<<<<<<<< * def extra(self, void_ptr extra): * self._ptr[0].extra = extra */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_5extra_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_extra); /*proto*/ static int __pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_5extra_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_extra) { __pyx_t_4cuda_6cudart_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_PyInt_As_unsigned_PY_LONG_LONG(__pyx_arg_extra); if (unlikely((__pyx_v_extra == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9548, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParams.extra.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaKernelNodeParams_5extra_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *)__pyx_v_self), ((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_extra)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_20cudaKernelNodeParams_5extra_2__set__(struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v_extra) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 9547, 0, __PYX_ERR(0, 9547, __pyx_L1_error)); /* "cuda/cudart.pyx":9549 * @extra.setter * def extra(self, void_ptr extra): * self._ptr[0].extra = extra # <<<<<<<<<<<<<< * * cdef class cudaKernelNodeParamsV2: */ (__pyx_v_self->_ptr[0]).extra = ((void **)__pyx_v_extra); /* "cuda/cudart.pyx":9547 * def extra(self): * return self._ptr[0].extra * @extra.setter # <<<<<<<<<<<<<< * def extra(self, void_ptr extra): * self._ptr[0].extra = extra */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParams.extra.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_20cudaKernelNodeParams_10__reduce_cython__, "cudaKernelNodeParams.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_20cudaKernelNodeParams_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaKernelNodeParams_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaKernelNodeParams_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaKernelNodeParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__219) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaKernelNodeParams.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_20cudaKernelNodeParams_12__setstate_cython__, "cudaKernelNodeParams.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_20cudaKernelNodeParams_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaKernelNodeParams_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaKernelNodeParams_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaKernelNodeParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__220) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaKernelNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9576 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 9576, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 9576, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9576, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 9576, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParamsV2.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_22cudaKernelNodeParamsV2___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_22cudaKernelNodeParamsV2___cinit__(struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 9576, 0, __PYX_ERR(0, 9576, __pyx_L1_error)); /* "cuda/cudart.pyx":9577 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":9578 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaKernelNodeParamsV2__val); /* "cuda/cudart.pyx":9577 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":9580 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * self._gridDim = dim3(_ptr=&self._ptr[0].gridDim) */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaKernelNodeParamsV2 *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":9576 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParamsV2.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":9581 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._gridDim = dim3(_ptr=&self._ptr[0].gridDim) * self._blockDim = dim3(_ptr=&self._ptr[0].blockDim) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 9581, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 9581, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9581, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 9581, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParamsV2.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_22cudaKernelNodeParamsV2_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_22cudaKernelNodeParamsV2_2__init__(struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 9581, 0, __PYX_ERR(0, 9581, __pyx_L1_error)); /* "cuda/cudart.pyx":9582 * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): * self._gridDim = dim3(_ptr=&self._ptr[0].gridDim) # <<<<<<<<<<<<<< * self._blockDim = dim3(_ptr=&self._ptr[0].blockDim) * def __dealloc__(self): */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9582, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).gridDim))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9582, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 9582, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_dim3), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9582, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_gridDim); __Pyx_DECREF((PyObject *)__pyx_v_self->_gridDim); __pyx_v_self->_gridDim = ((struct __pyx_obj_4cuda_6cudart_dim3 *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":9583 * def __init__(self, void_ptr _ptr = 0): * self._gridDim = dim3(_ptr=&self._ptr[0].gridDim) * self._blockDim = dim3(_ptr=&self._ptr[0].blockDim) # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9583, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).blockDim))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9583, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_ptr, __pyx_t_1) < 0) __PYX_ERR(0, 9583, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_dim3), __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9583, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GIVEREF(__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_6cudart_dim3 *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":9581 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._gridDim = dim3(_ptr=&self._ptr[0].gridDim) * self._blockDim = dim3(_ptr=&self._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.cudart.cudaKernelNodeParamsV2.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9584 * self._gridDim = dim3(_ptr=&self._ptr[0].gridDim) * self._blockDim = dim3(_ptr=&self._ptr[0].blockDim) * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_22cudaKernelNodeParamsV2_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_22cudaKernelNodeParamsV2_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 9584, 0, __PYX_ERR(0, 9584, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaKernelNodeParamsV2.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":9586 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_22cudaKernelNodeParamsV2_6getPtr, "cudaKernelNodeParamsV2.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_22cudaKernelNodeParamsV2_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_22cudaKernelNodeParamsV2_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_22cudaKernelNodeParamsV2_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaKernelNodeParamsV2_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__221) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 9586, 0, __PYX_ERR(0, 9586, __pyx_L1_error)); /* "cuda/cudart.pyx":9587 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9587, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9586 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParamsV2.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9588 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_22cudaKernelNodeParamsV2_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaKernelNodeParamsV2_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_9genexpr44__pyx_v_line = NULL; PyObject *__pyx_9genexpr45__pyx_v_line = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 9588, 0, __PYX_ERR(0, 9588, __pyx_L1_error)); /* "cuda/cudart.pyx":9589 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":9590 * def __repr__(self): * if self._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, 9590, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":9591 * if self._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/cudart.pyx":9592 * str_list = [] * try: * str_list += ['func : ' + hex(self.func)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['func : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_func_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9592, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9592, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_kp_u_func, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9592, __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, 9592, __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)) __PYX_ERR(0, 9592, __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, 9592, __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/cudart.pyx":9591 * if self._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/cudart.pyx":9593 * try: * str_list += ['func : ' + hex(self.func)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['func : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 9593, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":9594 * str_list += ['func : ' + hex(self.func)] * except ValueError: * str_list += ['func : '] # <<<<<<<<<<<<<< * 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, 9594, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_func_ValueError); __Pyx_GIVEREF(__pyx_kp_u_func_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_func_ValueError)) __PYX_ERR(0, 9594, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9594, __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/cudart.pyx":9591 * if self._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/cudart.pyx":9595 * except ValueError: * str_list += ['func : '] * 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/cudart.pyx":9596 * str_list += ['func : '] * try: * str_list += ['gridDim :\n' + '\n'.join([' ' + line for line in str(self.gridDim).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['gridDim : '] */ { /* enter inner scope */ __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9596, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_gridDim_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9596, __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, 9596, __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, 9596, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 9596, __pyx_L20_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_11); __Pyx_INCREF(__pyx_t_6); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 9596, __pyx_L20_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9596, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_9genexpr44__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr44__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9596, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 9596, __pyx_L20_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_9genexpr44__pyx_v_line); __pyx_9genexpr44__pyx_v_line = 0; goto __pyx_L24_exit_scope; __pyx_L20_error:; __Pyx_XDECREF(__pyx_9genexpr44__pyx_v_line); __pyx_9genexpr44__pyx_v_line = 0; goto __pyx_L12_error; __pyx_L24_exit_scope:; } /* exit inner scope */ __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9596, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_gridDim, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9596, __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, 9596, __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)) __PYX_ERR(0, 9596, __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, 9596, __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/cudart.pyx":9595 * except ValueError: * str_list += ['func : '] * 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/cudart.pyx":9597 * try: * str_list += ['gridDim :\n' + '\n'.join([' ' + line for line in str(self.gridDim).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['gridDim : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 9597, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":9598 * str_list += ['gridDim :\n' + '\n'.join([' ' + line for line in str(self.gridDim).splitlines()])] * except ValueError: * str_list += ['gridDim : '] # <<<<<<<<<<<<<< * 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, 9598, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_gridDim_ValueError); __Pyx_GIVEREF(__pyx_kp_u_gridDim_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_gridDim_ValueError)) __PYX_ERR(0, 9598, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 9598, __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/cudart.pyx":9595 * except ValueError: * str_list += ['func : '] * 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/cudart.pyx":9599 * except ValueError: * str_list += ['gridDim : '] * 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/cudart.pyx":9600 * str_list += ['gridDim : '] * try: * str_list += ['blockDim :\n' + '\n'.join([' ' + line for line in str(self.blockDim).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['blockDim : '] */ { /* enter inner scope */ __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9600, __pyx_L35_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_blockDim_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9600, __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, 9600, __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, 9600, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 9600, __pyx_L35_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_2 = PyList_GET_ITEM(__pyx_t_8, __pyx_t_11); __Pyx_INCREF(__pyx_t_2); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 9600, __pyx_L35_error) #else __pyx_t_2 = __Pyx_PySequence_ITEM(__pyx_t_8, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9600, __pyx_L35_error) __Pyx_GOTREF(__pyx_t_2); #endif __Pyx_XDECREF_SET(__pyx_9genexpr45__pyx_v_line, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr45__pyx_v_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9600, __pyx_L35_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 9600, __pyx_L35_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_9genexpr45__pyx_v_line); __pyx_9genexpr45__pyx_v_line = 0; goto __pyx_L39_exit_scope; __pyx_L35_error:; __Pyx_XDECREF(__pyx_9genexpr45__pyx_v_line); __pyx_9genexpr45__pyx_v_line = 0; goto __pyx_L27_error; __pyx_L39_exit_scope:; } /* exit inner scope */ __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9600, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_blockDim, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9600, __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, 9600, __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)) __PYX_ERR(0, 9600, __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, 9600, __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/cudart.pyx":9599 * except ValueError: * str_list += ['gridDim : '] * 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/cudart.pyx":9601 * try: * str_list += ['blockDim :\n' + '\n'.join([' ' + line for line in str(self.blockDim).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['blockDim : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 9601, __pyx_L29_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":9602 * str_list += ['blockDim :\n' + '\n'.join([' ' + line for line in str(self.blockDim).splitlines()])] * except ValueError: * str_list += ['blockDim : '] # <<<<<<<<<<<<<< * try: * str_list += ['sharedMemBytes : ' + str(self.sharedMemBytes)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 9602, __pyx_L29_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_blockDim_ValueError); __Pyx_GIVEREF(__pyx_kp_u_blockDim_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_blockDim_ValueError)) __PYX_ERR(0, 9602, __pyx_L29_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9602, __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/cudart.pyx":9599 * except ValueError: * str_list += ['gridDim : '] * 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/cudart.pyx":9603 * except ValueError: * str_list += ['blockDim : '] * 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/cudart.pyx":9604 * str_list += ['blockDim : '] * try: * str_list += ['sharedMemBytes : ' + str(self.sharedMemBytes)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['sharedMemBytes : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_sharedMemBytes_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9604, __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, 9604, __pyx_L42_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_sharedMemBytes, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9604, __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, 9604, __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)) __PYX_ERR(0, 9604, __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, 9604, __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/cudart.pyx":9603 * except ValueError: * str_list += ['blockDim : '] * 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/cudart.pyx":9605 * try: * str_list += ['sharedMemBytes : ' + str(self.sharedMemBytes)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['sharedMemBytes : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_8, &__pyx_t_6) < 0) __PYX_ERR(0, 9605, __pyx_L44_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":9606 * str_list += ['sharedMemBytes : ' + str(self.sharedMemBytes)] * except ValueError: * str_list += ['sharedMemBytes : '] # <<<<<<<<<<<<<< * try: * str_list += ['kernelParams : ' + str(self.kernelParams)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9606, __pyx_L44_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_sharedMemBytes_ValueError); __Pyx_GIVEREF(__pyx_kp_u_sharedMemBytes_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_sharedMemBytes_ValueError)) __PYX_ERR(0, 9606, __pyx_L44_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 9606, __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/cudart.pyx":9603 * except ValueError: * str_list += ['blockDim : '] * 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/cudart.pyx":9607 * except ValueError: * str_list += ['sharedMemBytes : '] * 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/cudart.pyx":9608 * str_list += ['sharedMemBytes : '] * try: * str_list += ['kernelParams : ' + str(self.kernelParams)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['kernelParams : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_kernelParams_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9608, __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, 9608, __pyx_L50_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_kernelParams, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9608, __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, 9608, __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)) __PYX_ERR(0, 9608, __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, 9608, __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/cudart.pyx":9607 * except ValueError: * str_list += ['sharedMemBytes : '] * 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/cudart.pyx":9609 * try: * str_list += ['kernelParams : ' + str(self.kernelParams)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['kernelParams : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 9609, __pyx_L52_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":9610 * str_list += ['kernelParams : ' + str(self.kernelParams)] * except ValueError: * str_list += ['kernelParams : '] # <<<<<<<<<<<<<< * try: * str_list += ['extra : ' + str(self.extra)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 9610, __pyx_L52_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_kernelParams_ValueError); __Pyx_GIVEREF(__pyx_kp_u_kernelParams_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_kernelParams_ValueError)) __PYX_ERR(0, 9610, __pyx_L52_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9610, __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/cudart.pyx":9607 * except ValueError: * str_list += ['sharedMemBytes : '] * 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/cudart.pyx":9611 * except ValueError: * str_list += ['kernelParams : '] * 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/cudart.pyx":9612 * str_list += ['kernelParams : '] * try: * str_list += ['extra : ' + str(self.extra)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['extra : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_extra_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9612, __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, 9612, __pyx_L58_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_extra, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9612, __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, 9612, __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)) __PYX_ERR(0, 9612, __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, 9612, __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/cudart.pyx":9611 * except ValueError: * str_list += ['kernelParams : '] * 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/cudart.pyx":9613 * try: * str_list += ['extra : ' + str(self.extra)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['extra : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_8, &__pyx_t_6) < 0) __PYX_ERR(0, 9613, __pyx_L60_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":9614 * str_list += ['extra : ' + str(self.extra)] * except ValueError: * str_list += ['extra : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9614, __pyx_L60_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_extra_ValueError); __Pyx_GIVEREF(__pyx_kp_u_extra_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_extra_ValueError)) __PYX_ERR(0, 9614, __pyx_L60_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 9614, __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/cudart.pyx":9611 * except ValueError: * str_list += ['kernelParams : '] * 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/cudart.pyx":9615 * except ValueError: * str_list += ['extra : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_6 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9615, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9589 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":9617 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def func(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":9588 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaKernelNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XDECREF(__pyx_9genexpr44__pyx_v_line); __Pyx_XDECREF(__pyx_9genexpr45__pyx_v_line); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9618 * else: * return '' * @property # <<<<<<<<<<<<<< * def func(self): * return self._ptr[0].func */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_4func_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_22cudaKernelNodeParamsV2_4func___get__(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaKernelNodeParamsV2_4func___get__(struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9618, 0, __PYX_ERR(0, 9618, __pyx_L1_error)); /* "cuda/cudart.pyx":9620 * @property * def func(self): * return self._ptr[0].func # <<<<<<<<<<<<<< * @func.setter * def func(self, func): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).func)); 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/cudart.pyx":9618 * else: * return '' * @property # <<<<<<<<<<<<<< * def func(self): * return self._ptr[0].func */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParamsV2.func.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9621 * def func(self): * return self._ptr[0].func * @func.setter # <<<<<<<<<<<<<< * def func(self, func): * _cfunc = utils.HelperInputVoidPtr(func) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_4func_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_func); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_22cudaKernelNodeParamsV2_4func_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *)__pyx_v_self), ((PyObject *)__pyx_v_func)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_22cudaKernelNodeParamsV2_4func_2__set__(struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *__pyx_v_self, PyObject *__pyx_v_func) { PyObject *__pyx_v__cfunc = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 9621, 0, __PYX_ERR(0, 9621, __pyx_L1_error)); /* "cuda/cudart.pyx":9623 * @func.setter * def func(self, func): * _cfunc = utils.HelperInputVoidPtr(func) # <<<<<<<<<<<<<< * self._ptr[0].func = _cfunc.cptr * @property */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_func); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9623, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__cfunc = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":9624 * def func(self, func): * _cfunc = utils.HelperInputVoidPtr(func) * self._ptr[0].func = _cfunc.cptr # <<<<<<<<<<<<<< * @property * def gridDim(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v__cfunc, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9624, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9624, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).func = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":9621 * def func(self): * return self._ptr[0].func * @func.setter # <<<<<<<<<<<<<< * def func(self, func): * _cfunc = utils.HelperInputVoidPtr(func) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParamsV2.func.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v__cfunc); __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9625 * _cfunc = utils.HelperInputVoidPtr(func) * self._ptr[0].func = _cfunc.cptr * @property # <<<<<<<<<<<<<< * def gridDim(self): * return self._gridDim */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_7gridDim_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_22cudaKernelNodeParamsV2_7gridDim___get__(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaKernelNodeParamsV2_7gridDim___get__(struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9625, 0, __PYX_ERR(0, 9625, __pyx_L1_error)); /* "cuda/cudart.pyx":9627 * @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/cudart.pyx":9625 * _cfunc = utils.HelperInputVoidPtr(func) * self._ptr[0].func = _cfunc.cptr * @property # <<<<<<<<<<<<<< * def gridDim(self): * return self._gridDim */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParamsV2.gridDim.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9628 * def gridDim(self): * return self._gridDim * @gridDim.setter # <<<<<<<<<<<<<< * def gridDim(self, gridDim not None : dim3): * string.memcpy(&self._ptr[0].gridDim, gridDim.getPtr(), sizeof(self._ptr[0].gridDim)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_7gridDim_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_gridDim); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_dim3, 0, "gridDim", 0))) __PYX_ERR(0, 9629, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_22cudaKernelNodeParamsV2_7gridDim_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_dim3 *)__pyx_v_gridDim)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_22cudaKernelNodeParamsV2_7gridDim_2__set__(struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_dim3 *__pyx_v_gridDim) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 9628, 0, __PYX_ERR(0, 9628, __pyx_L1_error)); /* "cuda/cudart.pyx":9630 * @gridDim.setter * def gridDim(self, gridDim not None : dim3): * string.memcpy(&self._ptr[0].gridDim, gridDim.getPtr(), sizeof(self._ptr[0].gridDim)) # <<<<<<<<<<<<<< * @property * def blockDim(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_gridDim), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9630, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9630, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9630, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).gridDim), ((struct dim3 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).gridDim)))); /* "cuda/cudart.pyx":9628 * def gridDim(self): * return self._gridDim * @gridDim.setter # <<<<<<<<<<<<<< * def gridDim(self, gridDim not None : dim3): * string.memcpy(&self._ptr[0].gridDim, gridDim.getPtr(), sizeof(self._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_AddTraceback("cuda.cudart.cudaKernelNodeParamsV2.gridDim.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9631 * def gridDim(self, gridDim not None : dim3): * string.memcpy(&self._ptr[0].gridDim, gridDim.getPtr(), sizeof(self._ptr[0].gridDim)) * @property # <<<<<<<<<<<<<< * def blockDim(self): * return self._blockDim */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_8blockDim_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_22cudaKernelNodeParamsV2_8blockDim___get__(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaKernelNodeParamsV2_8blockDim___get__(struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9631, 0, __PYX_ERR(0, 9631, __pyx_L1_error)); /* "cuda/cudart.pyx":9633 * @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/cudart.pyx":9631 * def gridDim(self, gridDim not None : dim3): * string.memcpy(&self._ptr[0].gridDim, gridDim.getPtr(), sizeof(self._ptr[0].gridDim)) * @property # <<<<<<<<<<<<<< * def blockDim(self): * return self._blockDim */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParamsV2.blockDim.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9634 * def blockDim(self): * return self._blockDim * @blockDim.setter # <<<<<<<<<<<<<< * def blockDim(self, blockDim not None : dim3): * string.memcpy(&self._ptr[0].blockDim, blockDim.getPtr(), sizeof(self._ptr[0].blockDim)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_8blockDim_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_blockDim); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_dim3, 0, "blockDim", 0))) __PYX_ERR(0, 9635, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_22cudaKernelNodeParamsV2_8blockDim_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_dim3 *)__pyx_v_blockDim)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_22cudaKernelNodeParamsV2_8blockDim_2__set__(struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_dim3 *__pyx_v_blockDim) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 9634, 0, __PYX_ERR(0, 9634, __pyx_L1_error)); /* "cuda/cudart.pyx":9636 * @blockDim.setter * def blockDim(self, blockDim not None : dim3): * string.memcpy(&self._ptr[0].blockDim, blockDim.getPtr(), sizeof(self._ptr[0].blockDim)) # <<<<<<<<<<<<<< * @property * def sharedMemBytes(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_blockDim), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9636, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9636, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9636, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).blockDim), ((struct dim3 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).blockDim)))); /* "cuda/cudart.pyx":9634 * def blockDim(self): * return self._blockDim * @blockDim.setter # <<<<<<<<<<<<<< * def blockDim(self, blockDim not None : dim3): * string.memcpy(&self._ptr[0].blockDim, blockDim.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParamsV2.blockDim.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9637 * def blockDim(self, blockDim not None : dim3): * string.memcpy(&self._ptr[0].blockDim, blockDim.getPtr(), sizeof(self._ptr[0].blockDim)) * @property # <<<<<<<<<<<<<< * def sharedMemBytes(self): * return self._ptr[0].sharedMemBytes */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_14sharedMemBytes_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_22cudaKernelNodeParamsV2_14sharedMemBytes___get__(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaKernelNodeParamsV2_14sharedMemBytes___get__(struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9637, 0, __PYX_ERR(0, 9637, __pyx_L1_error)); /* "cuda/cudart.pyx":9639 * @property * def sharedMemBytes(self): * return self._ptr[0].sharedMemBytes # <<<<<<<<<<<<<< * @sharedMemBytes.setter * def sharedMemBytes(self, unsigned int sharedMemBytes): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).sharedMemBytes); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9639, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9637 * def blockDim(self, blockDim not None : dim3): * string.memcpy(&self._ptr[0].blockDim, blockDim.getPtr(), sizeof(self._ptr[0].blockDim)) * @property # <<<<<<<<<<<<<< * def sharedMemBytes(self): * return self._ptr[0].sharedMemBytes */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParamsV2.sharedMemBytes.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9640 * def sharedMemBytes(self): * return self._ptr[0].sharedMemBytes * @sharedMemBytes.setter # <<<<<<<<<<<<<< * def sharedMemBytes(self, unsigned int sharedMemBytes): * self._ptr[0].sharedMemBytes = sharedMemBytes */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_14sharedMemBytes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_sharedMemBytes); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_sharedMemBytes); if (unlikely((__pyx_v_sharedMemBytes == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9641, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParamsV2.sharedMemBytes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_22cudaKernelNodeParamsV2_14sharedMemBytes_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *)__pyx_v_self), ((unsigned int)__pyx_v_sharedMemBytes)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_22cudaKernelNodeParamsV2_14sharedMemBytes_2__set__(struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *__pyx_v_self, unsigned int __pyx_v_sharedMemBytes) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 9640, 0, __PYX_ERR(0, 9640, __pyx_L1_error)); /* "cuda/cudart.pyx":9642 * @sharedMemBytes.setter * def sharedMemBytes(self, unsigned int sharedMemBytes): * self._ptr[0].sharedMemBytes = sharedMemBytes # <<<<<<<<<<<<<< * @property * def kernelParams(self): */ (__pyx_v_self->_ptr[0]).sharedMemBytes = __pyx_v_sharedMemBytes; /* "cuda/cudart.pyx":9640 * def sharedMemBytes(self): * return self._ptr[0].sharedMemBytes * @sharedMemBytes.setter # <<<<<<<<<<<<<< * def sharedMemBytes(self, unsigned int sharedMemBytes): * self._ptr[0].sharedMemBytes = sharedMemBytes */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParamsV2.sharedMemBytes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":9643 * def sharedMemBytes(self, unsigned int sharedMemBytes): * self._ptr[0].sharedMemBytes = sharedMemBytes * @property # <<<<<<<<<<<<<< * def kernelParams(self): * return self._ptr[0].kernelParams */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_12kernelParams_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_22cudaKernelNodeParamsV2_12kernelParams___get__(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaKernelNodeParamsV2_12kernelParams___get__(struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9643, 0, __PYX_ERR(0, 9643, __pyx_L1_error)); /* "cuda/cudart.pyx":9645 * @property * def kernelParams(self): * return self._ptr[0].kernelParams # <<<<<<<<<<<<<< * @kernelParams.setter * def kernelParams(self, kernelParams): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).kernelParams)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9645, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9643 * def sharedMemBytes(self, unsigned int sharedMemBytes): * self._ptr[0].sharedMemBytes = sharedMemBytes * @property # <<<<<<<<<<<<<< * def kernelParams(self): * return self._ptr[0].kernelParams */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParamsV2.kernelParams.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9646 * def kernelParams(self): * return self._ptr[0].kernelParams * @kernelParams.setter # <<<<<<<<<<<<<< * def kernelParams(self, kernelParams): * self._ckernelParams = utils.HelperKernelParams(kernelParams) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_12kernelParams_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_kernelParams); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_22cudaKernelNodeParamsV2_12kernelParams_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *)__pyx_v_self), ((PyObject *)__pyx_v_kernelParams)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_22cudaKernelNodeParamsV2_12kernelParams_2__set__(struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *__pyx_v_self, PyObject *__pyx_v_kernelParams) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 9646, 0, __PYX_ERR(0, 9646, __pyx_L1_error)); /* "cuda/cudart.pyx":9648 * @kernelParams.setter * def kernelParams(self, kernelParams): * self._ckernelParams = utils.HelperKernelParams(kernelParams) # <<<<<<<<<<<<<< * self._ptr[0].kernelParams = self._ckernelParams.ckernelParams * @property */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperKernelParams), __pyx_v_kernelParams); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9648, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF((PyObject *)__pyx_v_self->_ckernelParams); __Pyx_DECREF((PyObject *)__pyx_v_self->_ckernelParams); __pyx_v_self->_ckernelParams = ((struct __pyx_obj_4cuda_4_lib_5utils_HelperKernelParams *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":9649 * def kernelParams(self, kernelParams): * self._ckernelParams = utils.HelperKernelParams(kernelParams) * self._ptr[0].kernelParams = self._ckernelParams.ckernelParams # <<<<<<<<<<<<<< * @property * def extra(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->_ckernelParams), __pyx_n_s_ckernelParams); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9649, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).kernelParams = ((void **)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":9646 * def kernelParams(self): * return self._ptr[0].kernelParams * @kernelParams.setter # <<<<<<<<<<<<<< * def kernelParams(self, kernelParams): * self._ckernelParams = utils.HelperKernelParams(kernelParams) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParamsV2.kernelParams.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9650 * self._ckernelParams = utils.HelperKernelParams(kernelParams) * self._ptr[0].kernelParams = self._ckernelParams.ckernelParams * @property # <<<<<<<<<<<<<< * def extra(self): * return self._ptr[0].extra */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_5extra_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_22cudaKernelNodeParamsV2_5extra___get__(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaKernelNodeParamsV2_5extra___get__(struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9650, 0, __PYX_ERR(0, 9650, __pyx_L1_error)); /* "cuda/cudart.pyx":9652 * @property * def extra(self): * return self._ptr[0].extra # <<<<<<<<<<<<<< * @extra.setter * def extra(self, void_ptr extra): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).extra)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9652, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9650 * self._ckernelParams = utils.HelperKernelParams(kernelParams) * self._ptr[0].kernelParams = self._ckernelParams.ckernelParams * @property # <<<<<<<<<<<<<< * def extra(self): * return self._ptr[0].extra */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParamsV2.extra.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9653 * def extra(self): * return self._ptr[0].extra * @extra.setter # <<<<<<<<<<<<<< * def extra(self, void_ptr extra): * self._ptr[0].extra = extra */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_5extra_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_extra); /*proto*/ static int __pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_5extra_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_extra) { __pyx_t_4cuda_6cudart_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_PyInt_As_unsigned_PY_LONG_LONG(__pyx_arg_extra); if (unlikely((__pyx_v_extra == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9654, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParamsV2.extra.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_22cudaKernelNodeParamsV2_5extra_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *)__pyx_v_self), ((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_extra)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_22cudaKernelNodeParamsV2_5extra_2__set__(struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v_extra) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 9653, 0, __PYX_ERR(0, 9653, __pyx_L1_error)); /* "cuda/cudart.pyx":9655 * @extra.setter * def extra(self, void_ptr extra): * self._ptr[0].extra = extra # <<<<<<<<<<<<<< * * cdef class cudaExternalSemaphoreSignalNodeParams: */ (__pyx_v_self->_ptr[0]).extra = ((void **)__pyx_v_extra); /* "cuda/cudart.pyx":9653 * def extra(self): * return self._ptr[0].extra * @extra.setter # <<<<<<<<<<<<<< * def extra(self, void_ptr extra): * self._ptr[0].extra = extra */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParamsV2.extra.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_22cudaKernelNodeParamsV2_10__reduce_cython__, "cudaKernelNodeParamsV2.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_22cudaKernelNodeParamsV2_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_22cudaKernelNodeParamsV2_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_22cudaKernelNodeParamsV2_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaKernelNodeParamsV2_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__222) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaKernelNodeParamsV2.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_22cudaKernelNodeParamsV2_12__setstate_cython__, "cudaKernelNodeParamsV2.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_22cudaKernelNodeParamsV2_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_22cudaKernelNodeParamsV2_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaKernelNodeParamsV2.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_22cudaKernelNodeParamsV2_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaKernelNodeParamsV2_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__223) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaKernelNodeParamsV2.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9677 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 9677, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 9677, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9677, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 9677, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalNodeParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams___cinit__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 9677, 0, __PYX_ERR(0, 9677, __pyx_L1_error)); /* "cuda/cudart.pyx":9678 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":9679 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaExternalSemaphoreSignalNodeParams__val); /* "cuda/cudart.pyx":9678 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":9681 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * pass */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaExternalSemaphoreSignalNodeParams *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":9677 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalNodeParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":9682 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 9682, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 9682, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9682, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 9682, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 9682, 0, __PYX_ERR(0, 9682, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":9684 * def __init__(self, void_ptr _ptr = 0): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * if self._extSemArray is not NULL: * free(self._extSemArray) */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_37cudaExternalSemaphoreSignalNodeParams_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_4__dealloc__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 9684, 0, __PYX_ERR(0, 9684, __pyx_L1_error)); /* "cuda/cudart.pyx":9685 * pass * def __dealloc__(self): * 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/cudart.pyx":9686 * def __dealloc__(self): * if self._extSemArray is not NULL: * free(self._extSemArray) # <<<<<<<<<<<<<< * if self._paramsArray is not NULL: * free(self._paramsArray) */ free(__pyx_v_self->_extSemArray); /* "cuda/cudart.pyx":9685 * pass * def __dealloc__(self): * if self._extSemArray is not NULL: # <<<<<<<<<<<<<< * free(self._extSemArray) * if self._paramsArray is not NULL: */ } /* "cuda/cudart.pyx":9687 * 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/cudart.pyx":9688 * free(self._extSemArray) * if self._paramsArray is not NULL: * free(self._paramsArray) # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ free(__pyx_v_self->_paramsArray); /* "cuda/cudart.pyx":9687 * if self._extSemArray is not NULL: * free(self._extSemArray) * if self._paramsArray is not NULL: # <<<<<<<<<<<<<< * free(self._paramsArray) * def getPtr(self): */ } /* "cuda/cudart.pyx":9684 * def __init__(self, void_ptr _ptr = 0): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * if self._extSemArray is not NULL: * free(self._extSemArray) */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaExternalSemaphoreSignalNodeParams.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":9689 * if self._paramsArray is not NULL: * free(self._paramsArray) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_37cudaExternalSemaphoreSignalNodeParams_6getPtr, "cudaExternalSemaphoreSignalNodeParams.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__224) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 9689, 0, __PYX_ERR(0, 9689, __pyx_L1_error)); /* "cuda/cudart.pyx":9690 * free(self._paramsArray) * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9690, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9689 * if self._paramsArray is not NULL: * free(self._paramsArray) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalNodeParams.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9691 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_37cudaExternalSemaphoreSignalNodeParams_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 9691, 0, __PYX_ERR(0, 9691, __pyx_L1_error)); /* "cuda/cudart.pyx":9692 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":9693 * def __repr__(self): * if self._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, 9693, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":9694 * if self._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/cudart.pyx":9695 * str_list = [] * try: * str_list += ['extSemArray : ' + str(self.extSemArray)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['extSemArray : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_extSemArray_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9695, __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, 9695, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_extSemArray, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9695, __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, 9695, __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)) __PYX_ERR(0, 9695, __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, 9695, __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/cudart.pyx":9694 * if self._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/cudart.pyx":9696 * try: * str_list += ['extSemArray : ' + str(self.extSemArray)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['extSemArray : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 9696, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":9697 * str_list += ['extSemArray : ' + str(self.extSemArray)] * except ValueError: * str_list += ['extSemArray : '] # <<<<<<<<<<<<<< * try: * str_list += ['paramsArray : ' + str(self.paramsArray)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 9697, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_extSemArray_ValueError); __Pyx_GIVEREF(__pyx_kp_u_extSemArray_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_extSemArray_ValueError)) __PYX_ERR(0, 9697, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9697, __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/cudart.pyx":9694 * if self._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/cudart.pyx":9698 * except ValueError: * str_list += ['extSemArray : '] * 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/cudart.pyx":9699 * str_list += ['extSemArray : '] * try: * str_list += ['paramsArray : ' + str(self.paramsArray)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['paramsArray : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_paramsArray_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9699, __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, 9699, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_paramsArray, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9699, __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, 9699, __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)) __PYX_ERR(0, 9699, __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, 9699, __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/cudart.pyx":9698 * except ValueError: * str_list += ['extSemArray : '] * 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/cudart.pyx":9700 * try: * str_list += ['paramsArray : ' + str(self.paramsArray)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['paramsArray : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 9700, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":9701 * str_list += ['paramsArray : ' + str(self.paramsArray)] * except ValueError: * str_list += ['paramsArray : '] # <<<<<<<<<<<<<< * try: * str_list += ['numExtSems : ' + str(self.numExtSems)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9701, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_paramsArray_ValueError); __Pyx_GIVEREF(__pyx_kp_u_paramsArray_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_paramsArray_ValueError)) __PYX_ERR(0, 9701, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 9701, __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/cudart.pyx":9698 * except ValueError: * str_list += ['extSemArray : '] * 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/cudart.pyx":9702 * except ValueError: * str_list += ['paramsArray : '] * 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/cudart.pyx":9703 * str_list += ['paramsArray : '] * try: * str_list += ['numExtSems : ' + str(self.numExtSems)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['numExtSems : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_numExtSems_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9703, __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, 9703, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_numExtSems, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9703, __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, 9703, __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)) __PYX_ERR(0, 9703, __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, 9703, __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/cudart.pyx":9702 * except ValueError: * str_list += ['paramsArray : '] * 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/cudart.pyx":9704 * try: * str_list += ['numExtSems : ' + str(self.numExtSems)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['numExtSems : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 9704, __pyx_L22_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":9705 * str_list += ['numExtSems : ' + str(self.numExtSems)] * except ValueError: * str_list += ['numExtSems : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 9705, __pyx_L22_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_numExtSems_ValueError); __Pyx_GIVEREF(__pyx_kp_u_numExtSems_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_numExtSems_ValueError)) __PYX_ERR(0, 9705, __pyx_L22_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9705, __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/cudart.pyx":9702 * except ValueError: * str_list += ['paramsArray : '] * 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/cudart.pyx":9706 * except ValueError: * str_list += ['numExtSems : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9706, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9692 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":9708 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def extSemArray(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":9691 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaExternalSemaphoreSignalNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9709 * else: * return '' * @property # <<<<<<<<<<<<<< * def extSemArray(self): * arrs = [self._ptr[0].extSemArray + x*sizeof(ccudart.cudaExternalSemaphore_t) for x in range(self._extSemArray_length)] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_11extSemArray_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_37cudaExternalSemaphoreSignalNodeParams_11extSemArray___get__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_11extSemArray___get__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *__pyx_v_self) { PyObject *__pyx_v_arrs = NULL; size_t __pyx_9genexpr46__pyx_v_x; PyObject *__pyx_9genexpr47__pyx_v_arr = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9709, 0, __PYX_ERR(0, 9709, __pyx_L1_error)); /* "cuda/cudart.pyx":9711 * @property * def extSemArray(self): * arrs = [self._ptr[0].extSemArray + x*sizeof(ccudart.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, 9711, __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_9genexpr46__pyx_v_x = __pyx_t_4; __pyx_t_5 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG((((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).extSemArray) + (__pyx_9genexpr46__pyx_v_x * (sizeof(cudaExternalSemaphore_t))))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9711, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 9711, __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/cudart.pyx":9712 * def extSemArray(self): * arrs = [self._ptr[0].extSemArray + x*sizeof(ccudart.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, 9712, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 9712, __pyx_L7_error) #endif if (__pyx_t_6 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_7 = PyList_GET_ITEM(__pyx_t_5, __pyx_t_6); __Pyx_INCREF(__pyx_t_7); __pyx_t_6++; if (unlikely((0 < 0))) __PYX_ERR(0, 9712, __pyx_L7_error) #else __pyx_t_7 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9712, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_7); #endif __Pyx_XDECREF_SET(__pyx_9genexpr47__pyx_v_arr, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9712, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_ptr, __pyx_9genexpr47__pyx_v_arr) < 0) __PYX_ERR(0, 9712, __pyx_L7_error) __pyx_t_8 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalSemaphore_t), __pyx_empty_tuple, __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9712, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_8))) __PYX_ERR(0, 9712, __pyx_L7_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_9genexpr47__pyx_v_arr); __pyx_9genexpr47__pyx_v_arr = 0; goto __pyx_L11_exit_scope; __pyx_L7_error:; __Pyx_XDECREF(__pyx_9genexpr47__pyx_v_arr); __pyx_9genexpr47__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/cudart.pyx":9709 * else: * return '' * @property # <<<<<<<<<<<<<< * def extSemArray(self): * arrs = [self._ptr[0].extSemArray + x*sizeof(ccudart.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_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalNodeParams.extSemArray.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_arrs); __Pyx_XDECREF(__pyx_9genexpr47__pyx_v_arr); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9713 * arrs = [self._ptr[0].extSemArray + x*sizeof(ccudart.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_6cudart_37cudaExternalSemaphoreSignalNodeParams_11extSemArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_37cudaExternalSemaphoreSignalNodeParams_11extSemArray_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_val)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_11extSemArray_2__set__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *__pyx_v_self, PyObject *__pyx_v_val) { Py_ssize_t __pyx_v_idx; int __pyx_r; __Pyx_TraceDeclarations __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; cudaExternalSemaphore_t *__pyx_t_6; Py_ssize_t __pyx_t_7; Py_ssize_t __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 9713, 0, __PYX_ERR(0, 9713, __pyx_L1_error)); /* "cuda/cudart.pyx":9715 * @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, 9715, __pyx_L1_error) __pyx_t_2 = (__pyx_t_1 == 0); if (__pyx_t_2) { /* "cuda/cudart.pyx":9716 * def extSemArray(self, val): * if len(val) == 0: * free(self._extSemArray) # <<<<<<<<<<<<<< * self._extSemArray_length = 0 * self._ptr[0].extSemArray = NULL */ free(__pyx_v_self->_extSemArray); /* "cuda/cudart.pyx":9717 * if len(val) == 0: * free(self._extSemArray) * self._extSemArray_length = 0 # <<<<<<<<<<<<<< * self._ptr[0].extSemArray = NULL * else: */ __pyx_v_self->_extSemArray_length = 0; /* "cuda/cudart.pyx":9718 * free(self._extSemArray) * self._extSemArray_length = 0 * self._ptr[0].extSemArray = NULL # <<<<<<<<<<<<<< * else: * if self._extSemArray_length != len(val): */ (__pyx_v_self->_ptr[0]).extSemArray = NULL; /* "cuda/cudart.pyx":9715 * @extSemArray.setter * def extSemArray(self, val): * if len(val) == 0: # <<<<<<<<<<<<<< * free(self._extSemArray) * self._extSemArray_length = 0 */ goto __pyx_L3; } /* "cuda/cudart.pyx":9720 * self._ptr[0].extSemArray = NULL * else: * if self._extSemArray_length != len(val): # <<<<<<<<<<<<<< * free(self._extSemArray) * self._extSemArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphore_t)) */ /*else*/ { __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 9720, __pyx_L1_error) __pyx_t_2 = (__pyx_v_self->_extSemArray_length != ((size_t)__pyx_t_1)); if (__pyx_t_2) { /* "cuda/cudart.pyx":9721 * else: * if self._extSemArray_length != len(val): * free(self._extSemArray) # <<<<<<<<<<<<<< * self._extSemArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphore_t)) * if self._extSemArray is NULL: */ free(__pyx_v_self->_extSemArray); /* "cuda/cudart.pyx":9722 * if self._extSemArray_length != len(val): * free(self._extSemArray) * self._extSemArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphore_t)) # <<<<<<<<<<<<<< * if self._extSemArray is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphore_t))) */ __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 9722, __pyx_L1_error) __pyx_v_self->_extSemArray = ((cudaExternalSemaphore_t *)calloc(__pyx_t_1, (sizeof(cudaExternalSemaphore_t)))); /* "cuda/cudart.pyx":9723 * free(self._extSemArray) * self._extSemArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphore_t)) * if self._extSemArray is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphore_t))) * self._extSemArray_length = len(val) */ __pyx_t_2 = (__pyx_v_self->_extSemArray == NULL); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":9724 * self._extSemArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphore_t)) * if self._extSemArray is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphore_t))) # <<<<<<<<<<<<<< * self._extSemArray_length = len(val) * self._ptr[0].extSemArray = self._extSemArray */ __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 9724, __pyx_L1_error) __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9724, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9724, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9724, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_n_u_x_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9724, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyInt_FromSize_t((sizeof(cudaExternalSemaphore_t))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9724, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9724, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9724, __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_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9724, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __PYX_ERR(0, 9724, __pyx_L1_error) /* "cuda/cudart.pyx":9723 * free(self._extSemArray) * self._extSemArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphore_t)) * if self._extSemArray is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphore_t))) * self._extSemArray_length = len(val) */ } /* "cuda/cudart.pyx":9725 * if self._extSemArray is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphore_t))) * self._extSemArray_length = len(val) # <<<<<<<<<<<<<< * self._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, 9725, __pyx_L1_error) __pyx_v_self->_extSemArray_length = ((size_t)__pyx_t_1); /* "cuda/cudart.pyx":9726 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphore_t))) * self._extSemArray_length = len(val) * self._ptr[0].extSemArray = self._extSemArray # <<<<<<<<<<<<<< * for idx in range(len(val)): * self._extSemArray[idx] = (val[idx])._ptr[0] */ __pyx_t_6 = __pyx_v_self->_extSemArray; (__pyx_v_self->_ptr[0]).extSemArray = __pyx_t_6; /* "cuda/cudart.pyx":9720 * self._ptr[0].extSemArray = NULL * else: * if self._extSemArray_length != len(val): # <<<<<<<<<<<<<< * free(self._extSemArray) * self._extSemArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphore_t)) */ } /* "cuda/cudart.pyx":9727 * self._extSemArray_length = len(val) * self._ptr[0].extSemArray = self._extSemArray * for idx in range(len(val)): # <<<<<<<<<<<<<< * self._extSemArray[idx] = (val[idx])._ptr[0] * */ __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 9727, __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/cudart.pyx":9728 * self._ptr[0].extSemArray = self._extSemArray * for idx in range(len(val)): * self._extSemArray[idx] = (val[idx])._ptr[0] # <<<<<<<<<<<<<< * * @property */ __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_val, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9728, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); (__pyx_v_self->_extSemArray[__pyx_v_idx]) = (((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphore_t *)__pyx_t_5)->_ptr[0]); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __pyx_L3:; /* "cuda/cudart.pyx":9713 * arrs = [self._ptr[0].extSemArray + x*sizeof(ccudart.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_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalNodeParams.extSemArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9730 * self._extSemArray[idx] = (val[idx])._ptr[0] * * @property # <<<<<<<<<<<<<< * def paramsArray(self): * arrs = [self._ptr[0].paramsArray + x*sizeof(ccudart.cudaExternalSemaphoreSignalParams) for x in range(self._paramsArray_length)] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_11paramsArray_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_37cudaExternalSemaphoreSignalNodeParams_11paramsArray___get__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_11paramsArray___get__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *__pyx_v_self) { PyObject *__pyx_v_arrs = NULL; size_t __pyx_9genexpr48__pyx_v_x; PyObject *__pyx_9genexpr49__pyx_v_arr = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9730, 0, __PYX_ERR(0, 9730, __pyx_L1_error)); /* "cuda/cudart.pyx":9732 * @property * def paramsArray(self): * arrs = [self._ptr[0].paramsArray + x*sizeof(ccudart.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, 9732, __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_9genexpr48__pyx_v_x = __pyx_t_4; __pyx_t_5 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG((((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).paramsArray) + (__pyx_9genexpr48__pyx_v_x * (sizeof(struct cudaExternalSemaphoreSignalParams))))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9732, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 9732, __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/cudart.pyx":9733 * def paramsArray(self): * arrs = [self._ptr[0].paramsArray + x*sizeof(ccudart.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, 9733, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 9733, __pyx_L7_error) #endif if (__pyx_t_6 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_7 = PyList_GET_ITEM(__pyx_t_5, __pyx_t_6); __Pyx_INCREF(__pyx_t_7); __pyx_t_6++; if (unlikely((0 < 0))) __PYX_ERR(0, 9733, __pyx_L7_error) #else __pyx_t_7 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9733, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_7); #endif __Pyx_XDECREF_SET(__pyx_9genexpr49__pyx_v_arr, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9733, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_ptr, __pyx_9genexpr49__pyx_v_arr) < 0) __PYX_ERR(0, 9733, __pyx_L7_error) __pyx_t_8 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalParams), __pyx_empty_tuple, __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9733, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_8))) __PYX_ERR(0, 9733, __pyx_L7_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_9genexpr49__pyx_v_arr); __pyx_9genexpr49__pyx_v_arr = 0; goto __pyx_L11_exit_scope; __pyx_L7_error:; __Pyx_XDECREF(__pyx_9genexpr49__pyx_v_arr); __pyx_9genexpr49__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/cudart.pyx":9730 * self._extSemArray[idx] = (val[idx])._ptr[0] * * @property # <<<<<<<<<<<<<< * def paramsArray(self): * arrs = [self._ptr[0].paramsArray + x*sizeof(ccudart.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_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalNodeParams.paramsArray.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_arrs); __Pyx_XDECREF(__pyx_9genexpr49__pyx_v_arr); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9734 * arrs = [self._ptr[0].paramsArray + x*sizeof(ccudart.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_6cudart_37cudaExternalSemaphoreSignalNodeParams_11paramsArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_37cudaExternalSemaphoreSignalNodeParams_11paramsArray_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_val)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_11paramsArray_2__set__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *__pyx_v_self, PyObject *__pyx_v_val) { Py_ssize_t __pyx_v_idx; int __pyx_r; __Pyx_TraceDeclarations __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; struct cudaExternalSemaphoreSignalParams *__pyx_t_6; Py_ssize_t __pyx_t_7; Py_ssize_t __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 9734, 0, __PYX_ERR(0, 9734, __pyx_L1_error)); /* "cuda/cudart.pyx":9736 * @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, 9736, __pyx_L1_error) __pyx_t_2 = (__pyx_t_1 == 0); if (__pyx_t_2) { /* "cuda/cudart.pyx":9737 * def paramsArray(self, val): * if len(val) == 0: * free(self._paramsArray) # <<<<<<<<<<<<<< * self._paramsArray_length = 0 * self._ptr[0].paramsArray = NULL */ free(__pyx_v_self->_paramsArray); /* "cuda/cudart.pyx":9738 * if len(val) == 0: * free(self._paramsArray) * self._paramsArray_length = 0 # <<<<<<<<<<<<<< * self._ptr[0].paramsArray = NULL * else: */ __pyx_v_self->_paramsArray_length = 0; /* "cuda/cudart.pyx":9739 * free(self._paramsArray) * self._paramsArray_length = 0 * self._ptr[0].paramsArray = NULL # <<<<<<<<<<<<<< * else: * if self._paramsArray_length != len(val): */ (__pyx_v_self->_ptr[0]).paramsArray = NULL; /* "cuda/cudart.pyx":9736 * @paramsArray.setter * def paramsArray(self, val): * if len(val) == 0: # <<<<<<<<<<<<<< * free(self._paramsArray) * self._paramsArray_length = 0 */ goto __pyx_L3; } /* "cuda/cudart.pyx":9741 * self._ptr[0].paramsArray = NULL * else: * if self._paramsArray_length != len(val): # <<<<<<<<<<<<<< * free(self._paramsArray) * self._paramsArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphoreSignalParams)) */ /*else*/ { __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 9741, __pyx_L1_error) __pyx_t_2 = (__pyx_v_self->_paramsArray_length != ((size_t)__pyx_t_1)); if (__pyx_t_2) { /* "cuda/cudart.pyx":9742 * else: * if self._paramsArray_length != len(val): * free(self._paramsArray) # <<<<<<<<<<<<<< * self._paramsArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphoreSignalParams)) * if self._paramsArray is NULL: */ free(__pyx_v_self->_paramsArray); /* "cuda/cudart.pyx":9743 * if self._paramsArray_length != len(val): * free(self._paramsArray) * self._paramsArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphoreSignalParams)) # <<<<<<<<<<<<<< * if self._paramsArray is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphoreSignalParams))) */ __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 9743, __pyx_L1_error) __pyx_v_self->_paramsArray = ((struct cudaExternalSemaphoreSignalParams *)calloc(__pyx_t_1, (sizeof(struct cudaExternalSemaphoreSignalParams)))); /* "cuda/cudart.pyx":9744 * free(self._paramsArray) * self._paramsArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphoreSignalParams)) * if self._paramsArray is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphoreSignalParams))) * self._paramsArray_length = len(val) */ __pyx_t_2 = (__pyx_v_self->_paramsArray == NULL); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":9745 * self._paramsArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphoreSignalParams)) * if self._paramsArray is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphoreSignalParams))) # <<<<<<<<<<<<<< * self._paramsArray_length = len(val) * self._ptr[0].paramsArray = self._paramsArray */ __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 9745, __pyx_L1_error) __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9745, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9745, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9745, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_n_u_x_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9745, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaExternalSemaphoreSignalParams))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9745, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9745, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9745, __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_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9745, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __PYX_ERR(0, 9745, __pyx_L1_error) /* "cuda/cudart.pyx":9744 * free(self._paramsArray) * self._paramsArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphoreSignalParams)) * if self._paramsArray is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphoreSignalParams))) * self._paramsArray_length = len(val) */ } /* "cuda/cudart.pyx":9746 * if self._paramsArray is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphoreSignalParams))) * self._paramsArray_length = len(val) # <<<<<<<<<<<<<< * self._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, 9746, __pyx_L1_error) __pyx_v_self->_paramsArray_length = ((size_t)__pyx_t_1); /* "cuda/cudart.pyx":9747 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphoreSignalParams))) * self._paramsArray_length = len(val) * self._ptr[0].paramsArray = self._paramsArray # <<<<<<<<<<<<<< * for idx in range(len(val)): * string.memcpy(&self._paramsArray[idx], (val[idx])._ptr, sizeof(ccudart.cudaExternalSemaphoreSignalParams)) */ __pyx_t_6 = __pyx_v_self->_paramsArray; (__pyx_v_self->_ptr[0]).paramsArray = __pyx_t_6; /* "cuda/cudart.pyx":9741 * self._ptr[0].paramsArray = NULL * else: * if self._paramsArray_length != len(val): # <<<<<<<<<<<<<< * free(self._paramsArray) * self._paramsArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphoreSignalParams)) */ } /* "cuda/cudart.pyx":9748 * self._paramsArray_length = len(val) * self._ptr[0].paramsArray = self._paramsArray * for idx in range(len(val)): # <<<<<<<<<<<<<< * string.memcpy(&self._paramsArray[idx], (val[idx])._ptr, sizeof(ccudart.cudaExternalSemaphoreSignalParams)) * */ __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 9748, __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/cudart.pyx":9749 * self._ptr[0].paramsArray = self._paramsArray * for idx in range(len(val)): * string.memcpy(&self._paramsArray[idx], (val[idx])._ptr, sizeof(ccudart.cudaExternalSemaphoreSignalParams)) # <<<<<<<<<<<<<< * * @property */ __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_val, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9749, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); (void)(memcpy((&(__pyx_v_self->_paramsArray[__pyx_v_idx])), ((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *)__pyx_t_5)->_ptr, (sizeof(struct cudaExternalSemaphoreSignalParams)))); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __pyx_L3:; /* "cuda/cudart.pyx":9734 * arrs = [self._ptr[0].paramsArray + x*sizeof(ccudart.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_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalNodeParams.paramsArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9751 * string.memcpy(&self._paramsArray[idx], (val[idx])._ptr, sizeof(ccudart.cudaExternalSemaphoreSignalParams)) * * @property # <<<<<<<<<<<<<< * def numExtSems(self): * return self._ptr[0].numExtSems */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_10numExtSems_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_37cudaExternalSemaphoreSignalNodeParams_10numExtSems___get__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_10numExtSems___get__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9751, 0, __PYX_ERR(0, 9751, __pyx_L1_error)); /* "cuda/cudart.pyx":9753 * @property * def numExtSems(self): * return self._ptr[0].numExtSems # <<<<<<<<<<<<<< * @numExtSems.setter * def numExtSems(self, unsigned int numExtSems): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).numExtSems); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9753, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9751 * string.memcpy(&self._paramsArray[idx], (val[idx])._ptr, sizeof(ccudart.cudaExternalSemaphoreSignalParams)) * * @property # <<<<<<<<<<<<<< * def numExtSems(self): * return self._ptr[0].numExtSems */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalNodeParams.numExtSems.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9754 * def numExtSems(self): * return self._ptr[0].numExtSems * @numExtSems.setter # <<<<<<<<<<<<<< * def numExtSems(self, unsigned int numExtSems): * self._ptr[0].numExtSems = numExtSems */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_10numExtSems_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_numExtSems); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_numExtSems); if (unlikely((__pyx_v_numExtSems == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9755, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalNodeParams.numExtSems.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_10numExtSems_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *)__pyx_v_self), ((unsigned int)__pyx_v_numExtSems)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_10numExtSems_2__set__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *__pyx_v_self, unsigned int __pyx_v_numExtSems) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 9754, 0, __PYX_ERR(0, 9754, __pyx_L1_error)); /* "cuda/cudart.pyx":9756 * @numExtSems.setter * def numExtSems(self, unsigned int numExtSems): * self._ptr[0].numExtSems = numExtSems # <<<<<<<<<<<<<< * * cdef class cudaExternalSemaphoreSignalNodeParamsV2: */ (__pyx_v_self->_ptr[0]).numExtSems = __pyx_v_numExtSems; /* "cuda/cudart.pyx":9754 * def numExtSems(self): * return self._ptr[0].numExtSems * @numExtSems.setter # <<<<<<<<<<<<<< * def numExtSems(self, unsigned int numExtSems): * self._ptr[0].numExtSems = numExtSems */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalNodeParams.numExtSems.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_37cudaExternalSemaphoreSignalNodeParams_10__reduce_cython__, "cudaExternalSemaphoreSignalNodeParams.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__225) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaExternalSemaphoreSignalNodeParams.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_37cudaExternalSemaphoreSignalNodeParams_12__setstate_cython__, "cudaExternalSemaphoreSignalNodeParams.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__226) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaExternalSemaphoreSignalNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9778 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 9778, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 9778, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9778, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 9778, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalNodeParamsV2.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2___cinit__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 9778, 0, __PYX_ERR(0, 9778, __pyx_L1_error)); /* "cuda/cudart.pyx":9779 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":9780 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaExternalSemaphoreSignalNodeParamsV2__val); /* "cuda/cudart.pyx":9779 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":9782 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * pass */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaExternalSemaphoreSignalNodeParamsV2 *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":9778 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalNodeParamsV2.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":9783 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 9783, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 9783, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9783, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 9783, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalNodeParamsV2.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 9783, 0, __PYX_ERR(0, 9783, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalNodeParamsV2.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":9785 * def __init__(self, void_ptr _ptr = 0): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * if self._extSemArray is not NULL: * free(self._extSemArray) */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_4__dealloc__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 9785, 0, __PYX_ERR(0, 9785, __pyx_L1_error)); /* "cuda/cudart.pyx":9786 * pass * def __dealloc__(self): * 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/cudart.pyx":9787 * def __dealloc__(self): * if self._extSemArray is not NULL: * free(self._extSemArray) # <<<<<<<<<<<<<< * if self._paramsArray is not NULL: * free(self._paramsArray) */ free(__pyx_v_self->_extSemArray); /* "cuda/cudart.pyx":9786 * pass * def __dealloc__(self): * if self._extSemArray is not NULL: # <<<<<<<<<<<<<< * free(self._extSemArray) * if self._paramsArray is not NULL: */ } /* "cuda/cudart.pyx":9788 * 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/cudart.pyx":9789 * free(self._extSemArray) * if self._paramsArray is not NULL: * free(self._paramsArray) # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ free(__pyx_v_self->_paramsArray); /* "cuda/cudart.pyx":9788 * if self._extSemArray is not NULL: * free(self._extSemArray) * if self._paramsArray is not NULL: # <<<<<<<<<<<<<< * free(self._paramsArray) * def getPtr(self): */ } /* "cuda/cudart.pyx":9785 * def __init__(self, void_ptr _ptr = 0): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * if self._extSemArray is not NULL: * free(self._extSemArray) */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaExternalSemaphoreSignalNodeParamsV2.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":9790 * if self._paramsArray is not NULL: * free(self._paramsArray) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_6getPtr, "cudaExternalSemaphoreSignalNodeParamsV2.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__227) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 9790, 0, __PYX_ERR(0, 9790, __pyx_L1_error)); /* "cuda/cudart.pyx":9791 * free(self._paramsArray) * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9791, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9790 * if self._paramsArray is not NULL: * free(self._paramsArray) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalNodeParamsV2.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9792 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 9792, 0, __PYX_ERR(0, 9792, __pyx_L1_error)); /* "cuda/cudart.pyx":9793 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":9794 * def __repr__(self): * if self._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, 9794, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":9795 * if self._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/cudart.pyx":9796 * str_list = [] * try: * str_list += ['extSemArray : ' + str(self.extSemArray)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['extSemArray : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_extSemArray_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9796, __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, 9796, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_extSemArray, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9796, __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, 9796, __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)) __PYX_ERR(0, 9796, __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, 9796, __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/cudart.pyx":9795 * if self._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/cudart.pyx":9797 * try: * str_list += ['extSemArray : ' + str(self.extSemArray)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['extSemArray : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 9797, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":9798 * str_list += ['extSemArray : ' + str(self.extSemArray)] * except ValueError: * str_list += ['extSemArray : '] # <<<<<<<<<<<<<< * try: * str_list += ['paramsArray : ' + str(self.paramsArray)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 9798, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_extSemArray_ValueError); __Pyx_GIVEREF(__pyx_kp_u_extSemArray_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_extSemArray_ValueError)) __PYX_ERR(0, 9798, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9798, __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/cudart.pyx":9795 * if self._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/cudart.pyx":9799 * except ValueError: * str_list += ['extSemArray : '] * 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/cudart.pyx":9800 * str_list += ['extSemArray : '] * try: * str_list += ['paramsArray : ' + str(self.paramsArray)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['paramsArray : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_paramsArray_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9800, __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, 9800, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_paramsArray, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9800, __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, 9800, __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)) __PYX_ERR(0, 9800, __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, 9800, __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/cudart.pyx":9799 * except ValueError: * str_list += ['extSemArray : '] * 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/cudart.pyx":9801 * try: * str_list += ['paramsArray : ' + str(self.paramsArray)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['paramsArray : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 9801, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":9802 * str_list += ['paramsArray : ' + str(self.paramsArray)] * except ValueError: * str_list += ['paramsArray : '] # <<<<<<<<<<<<<< * try: * str_list += ['numExtSems : ' + str(self.numExtSems)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9802, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_paramsArray_ValueError); __Pyx_GIVEREF(__pyx_kp_u_paramsArray_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_paramsArray_ValueError)) __PYX_ERR(0, 9802, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 9802, __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/cudart.pyx":9799 * except ValueError: * str_list += ['extSemArray : '] * 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/cudart.pyx":9803 * except ValueError: * str_list += ['paramsArray : '] * 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/cudart.pyx":9804 * str_list += ['paramsArray : '] * try: * str_list += ['numExtSems : ' + str(self.numExtSems)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['numExtSems : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_numExtSems_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9804, __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, 9804, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_numExtSems, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9804, __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, 9804, __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)) __PYX_ERR(0, 9804, __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, 9804, __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/cudart.pyx":9803 * except ValueError: * str_list += ['paramsArray : '] * 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/cudart.pyx":9805 * try: * str_list += ['numExtSems : ' + str(self.numExtSems)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['numExtSems : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalNodeParamsV2.__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_L22_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":9806 * str_list += ['numExtSems : ' + str(self.numExtSems)] * except ValueError: * str_list += ['numExtSems : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 9806, __pyx_L22_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_numExtSems_ValueError); __Pyx_GIVEREF(__pyx_kp_u_numExtSems_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_numExtSems_ValueError)) __PYX_ERR(0, 9806, __pyx_L22_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9806, __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/cudart.pyx":9803 * except ValueError: * str_list += ['paramsArray : '] * 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/cudart.pyx":9807 * except ValueError: * str_list += ['numExtSems : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __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/cudart.pyx":9793 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":9809 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def extSemArray(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":9792 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaExternalSemaphoreSignalNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9810 * else: * return '' * @property # <<<<<<<<<<<<<< * def extSemArray(self): * arrs = [self._ptr[0].extSemArray + x*sizeof(ccudart.cudaExternalSemaphore_t) for x in range(self._extSemArray_length)] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_11extSemArray_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_11extSemArray___get__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_11extSemArray___get__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_self) { PyObject *__pyx_v_arrs = NULL; size_t __pyx_9genexpr50__pyx_v_x; PyObject *__pyx_9genexpr51__pyx_v_arr = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9810, 0, __PYX_ERR(0, 9810, __pyx_L1_error)); /* "cuda/cudart.pyx":9812 * @property * def extSemArray(self): * arrs = [self._ptr[0].extSemArray + x*sizeof(ccudart.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, 9812, __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_9genexpr50__pyx_v_x = __pyx_t_4; __pyx_t_5 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG((((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).extSemArray) + (__pyx_9genexpr50__pyx_v_x * (sizeof(cudaExternalSemaphore_t))))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9812, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 9812, __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/cudart.pyx":9813 * def extSemArray(self): * arrs = [self._ptr[0].extSemArray + x*sizeof(ccudart.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, 9813, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 9813, __pyx_L7_error) #endif if (__pyx_t_6 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_7 = PyList_GET_ITEM(__pyx_t_5, __pyx_t_6); __Pyx_INCREF(__pyx_t_7); __pyx_t_6++; if (unlikely((0 < 0))) __PYX_ERR(0, 9813, __pyx_L7_error) #else __pyx_t_7 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9813, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_7); #endif __Pyx_XDECREF_SET(__pyx_9genexpr51__pyx_v_arr, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9813, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_ptr, __pyx_9genexpr51__pyx_v_arr) < 0) __PYX_ERR(0, 9813, __pyx_L7_error) __pyx_t_8 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalSemaphore_t), __pyx_empty_tuple, __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9813, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_8))) __PYX_ERR(0, 9813, __pyx_L7_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_9genexpr51__pyx_v_arr); __pyx_9genexpr51__pyx_v_arr = 0; goto __pyx_L11_exit_scope; __pyx_L7_error:; __Pyx_XDECREF(__pyx_9genexpr51__pyx_v_arr); __pyx_9genexpr51__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/cudart.pyx":9810 * else: * return '' * @property # <<<<<<<<<<<<<< * def extSemArray(self): * arrs = [self._ptr[0].extSemArray + x*sizeof(ccudart.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_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalNodeParamsV2.extSemArray.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_arrs); __Pyx_XDECREF(__pyx_9genexpr51__pyx_v_arr); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9814 * arrs = [self._ptr[0].extSemArray + x*sizeof(ccudart.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_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_11extSemArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_11extSemArray_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 *)__pyx_v_self), ((PyObject *)__pyx_v_val)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_11extSemArray_2__set__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_self, PyObject *__pyx_v_val) { Py_ssize_t __pyx_v_idx; int __pyx_r; __Pyx_TraceDeclarations __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; cudaExternalSemaphore_t *__pyx_t_6; Py_ssize_t __pyx_t_7; Py_ssize_t __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 9814, 0, __PYX_ERR(0, 9814, __pyx_L1_error)); /* "cuda/cudart.pyx":9816 * @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, 9816, __pyx_L1_error) __pyx_t_2 = (__pyx_t_1 == 0); if (__pyx_t_2) { /* "cuda/cudart.pyx":9817 * def extSemArray(self, val): * if len(val) == 0: * free(self._extSemArray) # <<<<<<<<<<<<<< * self._extSemArray_length = 0 * self._ptr[0].extSemArray = NULL */ free(__pyx_v_self->_extSemArray); /* "cuda/cudart.pyx":9818 * if len(val) == 0: * free(self._extSemArray) * self._extSemArray_length = 0 # <<<<<<<<<<<<<< * self._ptr[0].extSemArray = NULL * else: */ __pyx_v_self->_extSemArray_length = 0; /* "cuda/cudart.pyx":9819 * free(self._extSemArray) * self._extSemArray_length = 0 * self._ptr[0].extSemArray = NULL # <<<<<<<<<<<<<< * else: * if self._extSemArray_length != len(val): */ (__pyx_v_self->_ptr[0]).extSemArray = NULL; /* "cuda/cudart.pyx":9816 * @extSemArray.setter * def extSemArray(self, val): * if len(val) == 0: # <<<<<<<<<<<<<< * free(self._extSemArray) * self._extSemArray_length = 0 */ goto __pyx_L3; } /* "cuda/cudart.pyx":9821 * self._ptr[0].extSemArray = NULL * else: * if self._extSemArray_length != len(val): # <<<<<<<<<<<<<< * free(self._extSemArray) * self._extSemArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphore_t)) */ /*else*/ { __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 9821, __pyx_L1_error) __pyx_t_2 = (__pyx_v_self->_extSemArray_length != ((size_t)__pyx_t_1)); if (__pyx_t_2) { /* "cuda/cudart.pyx":9822 * else: * if self._extSemArray_length != len(val): * free(self._extSemArray) # <<<<<<<<<<<<<< * self._extSemArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphore_t)) * if self._extSemArray is NULL: */ free(__pyx_v_self->_extSemArray); /* "cuda/cudart.pyx":9823 * if self._extSemArray_length != len(val): * free(self._extSemArray) * self._extSemArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphore_t)) # <<<<<<<<<<<<<< * if self._extSemArray is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphore_t))) */ __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 9823, __pyx_L1_error) __pyx_v_self->_extSemArray = ((cudaExternalSemaphore_t *)calloc(__pyx_t_1, (sizeof(cudaExternalSemaphore_t)))); /* "cuda/cudart.pyx":9824 * free(self._extSemArray) * self._extSemArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphore_t)) * if self._extSemArray is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphore_t))) * self._extSemArray_length = len(val) */ __pyx_t_2 = (__pyx_v_self->_extSemArray == NULL); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":9825 * self._extSemArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphore_t)) * if self._extSemArray is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphore_t))) # <<<<<<<<<<<<<< * self._extSemArray_length = len(val) * self._ptr[0].extSemArray = self._extSemArray */ __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 9825, __pyx_L1_error) __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9825, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9825, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9825, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_n_u_x_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9825, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyInt_FromSize_t((sizeof(cudaExternalSemaphore_t))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9825, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9825, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9825, __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_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9825, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __PYX_ERR(0, 9825, __pyx_L1_error) /* "cuda/cudart.pyx":9824 * free(self._extSemArray) * self._extSemArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphore_t)) * if self._extSemArray is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphore_t))) * self._extSemArray_length = len(val) */ } /* "cuda/cudart.pyx":9826 * if self._extSemArray is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphore_t))) * self._extSemArray_length = len(val) # <<<<<<<<<<<<<< * self._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, 9826, __pyx_L1_error) __pyx_v_self->_extSemArray_length = ((size_t)__pyx_t_1); /* "cuda/cudart.pyx":9827 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphore_t))) * self._extSemArray_length = len(val) * self._ptr[0].extSemArray = self._extSemArray # <<<<<<<<<<<<<< * for idx in range(len(val)): * self._extSemArray[idx] = (val[idx])._ptr[0] */ __pyx_t_6 = __pyx_v_self->_extSemArray; (__pyx_v_self->_ptr[0]).extSemArray = __pyx_t_6; /* "cuda/cudart.pyx":9821 * self._ptr[0].extSemArray = NULL * else: * if self._extSemArray_length != len(val): # <<<<<<<<<<<<<< * free(self._extSemArray) * self._extSemArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphore_t)) */ } /* "cuda/cudart.pyx":9828 * self._extSemArray_length = len(val) * self._ptr[0].extSemArray = self._extSemArray * for idx in range(len(val)): # <<<<<<<<<<<<<< * self._extSemArray[idx] = (val[idx])._ptr[0] * */ __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 9828, __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/cudart.pyx":9829 * self._ptr[0].extSemArray = self._extSemArray * for idx in range(len(val)): * self._extSemArray[idx] = (val[idx])._ptr[0] # <<<<<<<<<<<<<< * * @property */ __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_val, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9829, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); (__pyx_v_self->_extSemArray[__pyx_v_idx]) = (((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphore_t *)__pyx_t_5)->_ptr[0]); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __pyx_L3:; /* "cuda/cudart.pyx":9814 * arrs = [self._ptr[0].extSemArray + x*sizeof(ccudart.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_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalNodeParamsV2.extSemArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9831 * self._extSemArray[idx] = (val[idx])._ptr[0] * * @property # <<<<<<<<<<<<<< * def paramsArray(self): * arrs = [self._ptr[0].paramsArray + x*sizeof(ccudart.cudaExternalSemaphoreSignalParams) for x in range(self._paramsArray_length)] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_11paramsArray_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_11paramsArray___get__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_11paramsArray___get__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_self) { PyObject *__pyx_v_arrs = NULL; size_t __pyx_9genexpr52__pyx_v_x; PyObject *__pyx_9genexpr53__pyx_v_arr = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9831, 0, __PYX_ERR(0, 9831, __pyx_L1_error)); /* "cuda/cudart.pyx":9833 * @property * def paramsArray(self): * arrs = [self._ptr[0].paramsArray + x*sizeof(ccudart.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, 9833, __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_9genexpr52__pyx_v_x = __pyx_t_4; __pyx_t_5 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG((((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).paramsArray) + (__pyx_9genexpr52__pyx_v_x * (sizeof(struct cudaExternalSemaphoreSignalParams))))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9833, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 9833, __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/cudart.pyx":9834 * def paramsArray(self): * arrs = [self._ptr[0].paramsArray + x*sizeof(ccudart.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, 9834, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 9834, __pyx_L7_error) #endif if (__pyx_t_6 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_7 = PyList_GET_ITEM(__pyx_t_5, __pyx_t_6); __Pyx_INCREF(__pyx_t_7); __pyx_t_6++; if (unlikely((0 < 0))) __PYX_ERR(0, 9834, __pyx_L7_error) #else __pyx_t_7 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9834, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_7); #endif __Pyx_XDECREF_SET(__pyx_9genexpr53__pyx_v_arr, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9834, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_ptr, __pyx_9genexpr53__pyx_v_arr) < 0) __PYX_ERR(0, 9834, __pyx_L7_error) __pyx_t_8 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalParams), __pyx_empty_tuple, __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9834, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_8))) __PYX_ERR(0, 9834, __pyx_L7_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_9genexpr53__pyx_v_arr); __pyx_9genexpr53__pyx_v_arr = 0; goto __pyx_L11_exit_scope; __pyx_L7_error:; __Pyx_XDECREF(__pyx_9genexpr53__pyx_v_arr); __pyx_9genexpr53__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/cudart.pyx":9831 * self._extSemArray[idx] = (val[idx])._ptr[0] * * @property # <<<<<<<<<<<<<< * def paramsArray(self): * arrs = [self._ptr[0].paramsArray + x*sizeof(ccudart.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_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalNodeParamsV2.paramsArray.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_arrs); __Pyx_XDECREF(__pyx_9genexpr53__pyx_v_arr); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9835 * arrs = [self._ptr[0].paramsArray + x*sizeof(ccudart.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_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_11paramsArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_11paramsArray_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 *)__pyx_v_self), ((PyObject *)__pyx_v_val)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_11paramsArray_2__set__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_self, PyObject *__pyx_v_val) { Py_ssize_t __pyx_v_idx; int __pyx_r; __Pyx_TraceDeclarations __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; struct cudaExternalSemaphoreSignalParams *__pyx_t_6; Py_ssize_t __pyx_t_7; Py_ssize_t __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 9835, 0, __PYX_ERR(0, 9835, __pyx_L1_error)); /* "cuda/cudart.pyx":9837 * @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, 9837, __pyx_L1_error) __pyx_t_2 = (__pyx_t_1 == 0); if (__pyx_t_2) { /* "cuda/cudart.pyx":9838 * def paramsArray(self, val): * if len(val) == 0: * free(self._paramsArray) # <<<<<<<<<<<<<< * self._paramsArray_length = 0 * self._ptr[0].paramsArray = NULL */ free(__pyx_v_self->_paramsArray); /* "cuda/cudart.pyx":9839 * if len(val) == 0: * free(self._paramsArray) * self._paramsArray_length = 0 # <<<<<<<<<<<<<< * self._ptr[0].paramsArray = NULL * else: */ __pyx_v_self->_paramsArray_length = 0; /* "cuda/cudart.pyx":9840 * free(self._paramsArray) * self._paramsArray_length = 0 * self._ptr[0].paramsArray = NULL # <<<<<<<<<<<<<< * else: * if self._paramsArray_length != len(val): */ (__pyx_v_self->_ptr[0]).paramsArray = NULL; /* "cuda/cudart.pyx":9837 * @paramsArray.setter * def paramsArray(self, val): * if len(val) == 0: # <<<<<<<<<<<<<< * free(self._paramsArray) * self._paramsArray_length = 0 */ goto __pyx_L3; } /* "cuda/cudart.pyx":9842 * self._ptr[0].paramsArray = NULL * else: * if self._paramsArray_length != len(val): # <<<<<<<<<<<<<< * free(self._paramsArray) * self._paramsArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphoreSignalParams)) */ /*else*/ { __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 9842, __pyx_L1_error) __pyx_t_2 = (__pyx_v_self->_paramsArray_length != ((size_t)__pyx_t_1)); if (__pyx_t_2) { /* "cuda/cudart.pyx":9843 * else: * if self._paramsArray_length != len(val): * free(self._paramsArray) # <<<<<<<<<<<<<< * self._paramsArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphoreSignalParams)) * if self._paramsArray is NULL: */ free(__pyx_v_self->_paramsArray); /* "cuda/cudart.pyx":9844 * if self._paramsArray_length != len(val): * free(self._paramsArray) * self._paramsArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphoreSignalParams)) # <<<<<<<<<<<<<< * if self._paramsArray is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphoreSignalParams))) */ __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 9844, __pyx_L1_error) __pyx_v_self->_paramsArray = ((struct cudaExternalSemaphoreSignalParams *)calloc(__pyx_t_1, (sizeof(struct cudaExternalSemaphoreSignalParams)))); /* "cuda/cudart.pyx":9845 * free(self._paramsArray) * self._paramsArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphoreSignalParams)) * if self._paramsArray is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphoreSignalParams))) * self._paramsArray_length = len(val) */ __pyx_t_2 = (__pyx_v_self->_paramsArray == NULL); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":9846 * self._paramsArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphoreSignalParams)) * if self._paramsArray is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphoreSignalParams))) # <<<<<<<<<<<<<< * self._paramsArray_length = len(val) * self._ptr[0].paramsArray = self._paramsArray */ __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 9846, __pyx_L1_error) __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9846, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9846, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9846, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_n_u_x_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9846, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaExternalSemaphoreSignalParams))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9846, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9846, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9846, __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_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9846, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __PYX_ERR(0, 9846, __pyx_L1_error) /* "cuda/cudart.pyx":9845 * free(self._paramsArray) * self._paramsArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphoreSignalParams)) * if self._paramsArray is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphoreSignalParams))) * self._paramsArray_length = len(val) */ } /* "cuda/cudart.pyx":9847 * if self._paramsArray is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphoreSignalParams))) * self._paramsArray_length = len(val) # <<<<<<<<<<<<<< * self._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, 9847, __pyx_L1_error) __pyx_v_self->_paramsArray_length = ((size_t)__pyx_t_1); /* "cuda/cudart.pyx":9848 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphoreSignalParams))) * self._paramsArray_length = len(val) * self._ptr[0].paramsArray = self._paramsArray # <<<<<<<<<<<<<< * for idx in range(len(val)): * string.memcpy(&self._paramsArray[idx], (val[idx])._ptr, sizeof(ccudart.cudaExternalSemaphoreSignalParams)) */ __pyx_t_6 = __pyx_v_self->_paramsArray; (__pyx_v_self->_ptr[0]).paramsArray = __pyx_t_6; /* "cuda/cudart.pyx":9842 * self._ptr[0].paramsArray = NULL * else: * if self._paramsArray_length != len(val): # <<<<<<<<<<<<<< * free(self._paramsArray) * self._paramsArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphoreSignalParams)) */ } /* "cuda/cudart.pyx":9849 * self._paramsArray_length = len(val) * self._ptr[0].paramsArray = self._paramsArray * for idx in range(len(val)): # <<<<<<<<<<<<<< * string.memcpy(&self._paramsArray[idx], (val[idx])._ptr, sizeof(ccudart.cudaExternalSemaphoreSignalParams)) * */ __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 9849, __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/cudart.pyx":9850 * self._ptr[0].paramsArray = self._paramsArray * for idx in range(len(val)): * string.memcpy(&self._paramsArray[idx], (val[idx])._ptr, sizeof(ccudart.cudaExternalSemaphoreSignalParams)) # <<<<<<<<<<<<<< * * @property */ __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_val, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9850, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); (void)(memcpy((&(__pyx_v_self->_paramsArray[__pyx_v_idx])), ((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *)__pyx_t_5)->_ptr, (sizeof(struct cudaExternalSemaphoreSignalParams)))); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __pyx_L3:; /* "cuda/cudart.pyx":9835 * arrs = [self._ptr[0].paramsArray + x*sizeof(ccudart.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_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalNodeParamsV2.paramsArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9852 * string.memcpy(&self._paramsArray[idx], (val[idx])._ptr, sizeof(ccudart.cudaExternalSemaphoreSignalParams)) * * @property # <<<<<<<<<<<<<< * def numExtSems(self): * return self._ptr[0].numExtSems */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_10numExtSems_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_10numExtSems___get__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_10numExtSems___get__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9852, 0, __PYX_ERR(0, 9852, __pyx_L1_error)); /* "cuda/cudart.pyx":9854 * @property * def numExtSems(self): * return self._ptr[0].numExtSems # <<<<<<<<<<<<<< * @numExtSems.setter * def numExtSems(self, unsigned int numExtSems): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).numExtSems); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9854, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9852 * string.memcpy(&self._paramsArray[idx], (val[idx])._ptr, sizeof(ccudart.cudaExternalSemaphoreSignalParams)) * * @property # <<<<<<<<<<<<<< * def numExtSems(self): * return self._ptr[0].numExtSems */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalNodeParamsV2.numExtSems.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9855 * def numExtSems(self): * return self._ptr[0].numExtSems * @numExtSems.setter # <<<<<<<<<<<<<< * def numExtSems(self, unsigned int numExtSems): * self._ptr[0].numExtSems = numExtSems */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_10numExtSems_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_numExtSems); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_numExtSems); if (unlikely((__pyx_v_numExtSems == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9856, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalNodeParamsV2.numExtSems.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_10numExtSems_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 *)__pyx_v_self), ((unsigned int)__pyx_v_numExtSems)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_10numExtSems_2__set__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_self, unsigned int __pyx_v_numExtSems) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 9855, 0, __PYX_ERR(0, 9855, __pyx_L1_error)); /* "cuda/cudart.pyx":9857 * @numExtSems.setter * def numExtSems(self, unsigned int numExtSems): * self._ptr[0].numExtSems = numExtSems # <<<<<<<<<<<<<< * * cdef class cudaExternalSemaphoreWaitNodeParams: */ (__pyx_v_self->_ptr[0]).numExtSems = __pyx_v_numExtSems; /* "cuda/cudart.pyx":9855 * def numExtSems(self): * return self._ptr[0].numExtSems * @numExtSems.setter # <<<<<<<<<<<<<< * def numExtSems(self, unsigned int numExtSems): * self._ptr[0].numExtSems = numExtSems */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalNodeParamsV2.numExtSems.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_10__reduce_cython__, "cudaExternalSemaphoreSignalNodeParamsV2.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__228) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaExternalSemaphoreSignalNodeParamsV2.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_12__setstate_cython__, "cudaExternalSemaphoreSignalNodeParamsV2.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreSignalNodeParamsV2.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__229) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaExternalSemaphoreSignalNodeParamsV2.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9879 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 9879, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 9879, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9879, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 9879, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitNodeParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams___cinit__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 9879, 0, __PYX_ERR(0, 9879, __pyx_L1_error)); /* "cuda/cudart.pyx":9880 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":9881 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaExternalSemaphoreWaitNodeParams__val); /* "cuda/cudart.pyx":9880 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":9883 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * pass */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaExternalSemaphoreWaitNodeParams *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":9879 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitNodeParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":9884 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 9884, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 9884, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9884, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 9884, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 9884, 0, __PYX_ERR(0, 9884, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":9886 * def __init__(self, void_ptr _ptr = 0): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * if self._extSemArray is not NULL: * free(self._extSemArray) */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_35cudaExternalSemaphoreWaitNodeParams_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_4__dealloc__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 9886, 0, __PYX_ERR(0, 9886, __pyx_L1_error)); /* "cuda/cudart.pyx":9887 * pass * def __dealloc__(self): * 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/cudart.pyx":9888 * def __dealloc__(self): * if self._extSemArray is not NULL: * free(self._extSemArray) # <<<<<<<<<<<<<< * if self._paramsArray is not NULL: * free(self._paramsArray) */ free(__pyx_v_self->_extSemArray); /* "cuda/cudart.pyx":9887 * pass * def __dealloc__(self): * if self._extSemArray is not NULL: # <<<<<<<<<<<<<< * free(self._extSemArray) * if self._paramsArray is not NULL: */ } /* "cuda/cudart.pyx":9889 * 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/cudart.pyx":9890 * free(self._extSemArray) * if self._paramsArray is not NULL: * free(self._paramsArray) # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ free(__pyx_v_self->_paramsArray); /* "cuda/cudart.pyx":9889 * if self._extSemArray is not NULL: * free(self._extSemArray) * if self._paramsArray is not NULL: # <<<<<<<<<<<<<< * free(self._paramsArray) * def getPtr(self): */ } /* "cuda/cudart.pyx":9886 * def __init__(self, void_ptr _ptr = 0): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * if self._extSemArray is not NULL: * free(self._extSemArray) */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaExternalSemaphoreWaitNodeParams.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":9891 * if self._paramsArray is not NULL: * free(self._paramsArray) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_35cudaExternalSemaphoreWaitNodeParams_6getPtr, "cudaExternalSemaphoreWaitNodeParams.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__230) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 9891, 0, __PYX_ERR(0, 9891, __pyx_L1_error)); /* "cuda/cudart.pyx":9892 * free(self._paramsArray) * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9892, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9891 * if self._paramsArray is not NULL: * free(self._paramsArray) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitNodeParams.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9893 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_35cudaExternalSemaphoreWaitNodeParams_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 9893, 0, __PYX_ERR(0, 9893, __pyx_L1_error)); /* "cuda/cudart.pyx":9894 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":9895 * def __repr__(self): * if self._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, 9895, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":9896 * if self._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/cudart.pyx":9897 * str_list = [] * try: * str_list += ['extSemArray : ' + str(self.extSemArray)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['extSemArray : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_extSemArray_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9897, __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, 9897, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_extSemArray, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9897, __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, 9897, __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)) __PYX_ERR(0, 9897, __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, 9897, __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/cudart.pyx":9896 * if self._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/cudart.pyx":9898 * try: * str_list += ['extSemArray : ' + str(self.extSemArray)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['extSemArray : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 9898, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":9899 * str_list += ['extSemArray : ' + str(self.extSemArray)] * except ValueError: * str_list += ['extSemArray : '] # <<<<<<<<<<<<<< * try: * str_list += ['paramsArray : ' + str(self.paramsArray)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 9899, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_extSemArray_ValueError); __Pyx_GIVEREF(__pyx_kp_u_extSemArray_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_extSemArray_ValueError)) __PYX_ERR(0, 9899, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9899, __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/cudart.pyx":9896 * if self._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/cudart.pyx":9900 * except ValueError: * str_list += ['extSemArray : '] * 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/cudart.pyx":9901 * str_list += ['extSemArray : '] * try: * str_list += ['paramsArray : ' + str(self.paramsArray)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['paramsArray : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_paramsArray_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9901, __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, 9901, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_paramsArray, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9901, __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, 9901, __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)) __PYX_ERR(0, 9901, __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, 9901, __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/cudart.pyx":9900 * except ValueError: * str_list += ['extSemArray : '] * 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/cudart.pyx":9902 * try: * str_list += ['paramsArray : ' + str(self.paramsArray)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['paramsArray : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 9902, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":9903 * str_list += ['paramsArray : ' + str(self.paramsArray)] * except ValueError: * str_list += ['paramsArray : '] # <<<<<<<<<<<<<< * try: * str_list += ['numExtSems : ' + str(self.numExtSems)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9903, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_paramsArray_ValueError); __Pyx_GIVEREF(__pyx_kp_u_paramsArray_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_paramsArray_ValueError)) __PYX_ERR(0, 9903, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 9903, __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/cudart.pyx":9900 * except ValueError: * str_list += ['extSemArray : '] * 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/cudart.pyx":9904 * except ValueError: * str_list += ['paramsArray : '] * 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/cudart.pyx":9905 * str_list += ['paramsArray : '] * try: * str_list += ['numExtSems : ' + str(self.numExtSems)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['numExtSems : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_numExtSems_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9905, __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, 9905, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_numExtSems, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9905, __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, 9905, __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)) __PYX_ERR(0, 9905, __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, 9905, __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/cudart.pyx":9904 * except ValueError: * str_list += ['paramsArray : '] * 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/cudart.pyx":9906 * try: * str_list += ['numExtSems : ' + str(self.numExtSems)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['numExtSems : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 9906, __pyx_L22_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":9907 * str_list += ['numExtSems : ' + str(self.numExtSems)] * except ValueError: * str_list += ['numExtSems : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 9907, __pyx_L22_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_numExtSems_ValueError); __Pyx_GIVEREF(__pyx_kp_u_numExtSems_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_numExtSems_ValueError)) __PYX_ERR(0, 9907, __pyx_L22_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9907, __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/cudart.pyx":9904 * except ValueError: * str_list += ['paramsArray : '] * 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/cudart.pyx":9908 * except ValueError: * str_list += ['numExtSems : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9908, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9894 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":9910 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def extSemArray(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":9893 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaExternalSemaphoreWaitNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9911 * else: * return '' * @property # <<<<<<<<<<<<<< * def extSemArray(self): * arrs = [self._ptr[0].extSemArray + x*sizeof(ccudart.cudaExternalSemaphore_t) for x in range(self._extSemArray_length)] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_11extSemArray_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_35cudaExternalSemaphoreWaitNodeParams_11extSemArray___get__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_11extSemArray___get__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *__pyx_v_self) { PyObject *__pyx_v_arrs = NULL; size_t __pyx_9genexpr54__pyx_v_x; PyObject *__pyx_9genexpr55__pyx_v_arr = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9911, 0, __PYX_ERR(0, 9911, __pyx_L1_error)); /* "cuda/cudart.pyx":9913 * @property * def extSemArray(self): * arrs = [self._ptr[0].extSemArray + x*sizeof(ccudart.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, 9913, __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_9genexpr54__pyx_v_x = __pyx_t_4; __pyx_t_5 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG((((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).extSemArray) + (__pyx_9genexpr54__pyx_v_x * (sizeof(cudaExternalSemaphore_t))))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9913, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 9913, __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/cudart.pyx":9914 * def extSemArray(self): * arrs = [self._ptr[0].extSemArray + x*sizeof(ccudart.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, 9914, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 9914, __pyx_L7_error) #endif if (__pyx_t_6 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_7 = PyList_GET_ITEM(__pyx_t_5, __pyx_t_6); __Pyx_INCREF(__pyx_t_7); __pyx_t_6++; if (unlikely((0 < 0))) __PYX_ERR(0, 9914, __pyx_L7_error) #else __pyx_t_7 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9914, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_7); #endif __Pyx_XDECREF_SET(__pyx_9genexpr55__pyx_v_arr, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9914, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_ptr, __pyx_9genexpr55__pyx_v_arr) < 0) __PYX_ERR(0, 9914, __pyx_L7_error) __pyx_t_8 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalSemaphore_t), __pyx_empty_tuple, __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9914, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_8))) __PYX_ERR(0, 9914, __pyx_L7_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_9genexpr55__pyx_v_arr); __pyx_9genexpr55__pyx_v_arr = 0; goto __pyx_L11_exit_scope; __pyx_L7_error:; __Pyx_XDECREF(__pyx_9genexpr55__pyx_v_arr); __pyx_9genexpr55__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/cudart.pyx":9911 * else: * return '' * @property # <<<<<<<<<<<<<< * def extSemArray(self): * arrs = [self._ptr[0].extSemArray + x*sizeof(ccudart.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_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitNodeParams.extSemArray.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_arrs); __Pyx_XDECREF(__pyx_9genexpr55__pyx_v_arr); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9915 * arrs = [self._ptr[0].extSemArray + x*sizeof(ccudart.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_6cudart_35cudaExternalSemaphoreWaitNodeParams_11extSemArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_35cudaExternalSemaphoreWaitNodeParams_11extSemArray_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_val)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_11extSemArray_2__set__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *__pyx_v_self, PyObject *__pyx_v_val) { Py_ssize_t __pyx_v_idx; int __pyx_r; __Pyx_TraceDeclarations __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; cudaExternalSemaphore_t *__pyx_t_6; Py_ssize_t __pyx_t_7; Py_ssize_t __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 9915, 0, __PYX_ERR(0, 9915, __pyx_L1_error)); /* "cuda/cudart.pyx":9917 * @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, 9917, __pyx_L1_error) __pyx_t_2 = (__pyx_t_1 == 0); if (__pyx_t_2) { /* "cuda/cudart.pyx":9918 * def extSemArray(self, val): * if len(val) == 0: * free(self._extSemArray) # <<<<<<<<<<<<<< * self._extSemArray_length = 0 * self._ptr[0].extSemArray = NULL */ free(__pyx_v_self->_extSemArray); /* "cuda/cudart.pyx":9919 * if len(val) == 0: * free(self._extSemArray) * self._extSemArray_length = 0 # <<<<<<<<<<<<<< * self._ptr[0].extSemArray = NULL * else: */ __pyx_v_self->_extSemArray_length = 0; /* "cuda/cudart.pyx":9920 * free(self._extSemArray) * self._extSemArray_length = 0 * self._ptr[0].extSemArray = NULL # <<<<<<<<<<<<<< * else: * if self._extSemArray_length != len(val): */ (__pyx_v_self->_ptr[0]).extSemArray = NULL; /* "cuda/cudart.pyx":9917 * @extSemArray.setter * def extSemArray(self, val): * if len(val) == 0: # <<<<<<<<<<<<<< * free(self._extSemArray) * self._extSemArray_length = 0 */ goto __pyx_L3; } /* "cuda/cudart.pyx":9922 * self._ptr[0].extSemArray = NULL * else: * if self._extSemArray_length != len(val): # <<<<<<<<<<<<<< * free(self._extSemArray) * self._extSemArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphore_t)) */ /*else*/ { __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 9922, __pyx_L1_error) __pyx_t_2 = (__pyx_v_self->_extSemArray_length != ((size_t)__pyx_t_1)); if (__pyx_t_2) { /* "cuda/cudart.pyx":9923 * else: * if self._extSemArray_length != len(val): * free(self._extSemArray) # <<<<<<<<<<<<<< * self._extSemArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphore_t)) * if self._extSemArray is NULL: */ free(__pyx_v_self->_extSemArray); /* "cuda/cudart.pyx":9924 * if self._extSemArray_length != len(val): * free(self._extSemArray) * self._extSemArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphore_t)) # <<<<<<<<<<<<<< * if self._extSemArray is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphore_t))) */ __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 9924, __pyx_L1_error) __pyx_v_self->_extSemArray = ((cudaExternalSemaphore_t *)calloc(__pyx_t_1, (sizeof(cudaExternalSemaphore_t)))); /* "cuda/cudart.pyx":9925 * free(self._extSemArray) * self._extSemArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphore_t)) * if self._extSemArray is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphore_t))) * self._extSemArray_length = len(val) */ __pyx_t_2 = (__pyx_v_self->_extSemArray == NULL); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":9926 * self._extSemArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphore_t)) * if self._extSemArray is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphore_t))) # <<<<<<<<<<<<<< * self._extSemArray_length = len(val) * self._ptr[0].extSemArray = self._extSemArray */ __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 9926, __pyx_L1_error) __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9926, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9926, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9926, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_n_u_x_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9926, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyInt_FromSize_t((sizeof(cudaExternalSemaphore_t))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9926, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9926, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9926, __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_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9926, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __PYX_ERR(0, 9926, __pyx_L1_error) /* "cuda/cudart.pyx":9925 * free(self._extSemArray) * self._extSemArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphore_t)) * if self._extSemArray is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphore_t))) * self._extSemArray_length = len(val) */ } /* "cuda/cudart.pyx":9927 * if self._extSemArray is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphore_t))) * self._extSemArray_length = len(val) # <<<<<<<<<<<<<< * self._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, 9927, __pyx_L1_error) __pyx_v_self->_extSemArray_length = ((size_t)__pyx_t_1); /* "cuda/cudart.pyx":9928 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphore_t))) * self._extSemArray_length = len(val) * self._ptr[0].extSemArray = self._extSemArray # <<<<<<<<<<<<<< * for idx in range(len(val)): * self._extSemArray[idx] = (val[idx])._ptr[0] */ __pyx_t_6 = __pyx_v_self->_extSemArray; (__pyx_v_self->_ptr[0]).extSemArray = __pyx_t_6; /* "cuda/cudart.pyx":9922 * self._ptr[0].extSemArray = NULL * else: * if self._extSemArray_length != len(val): # <<<<<<<<<<<<<< * free(self._extSemArray) * self._extSemArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphore_t)) */ } /* "cuda/cudart.pyx":9929 * self._extSemArray_length = len(val) * self._ptr[0].extSemArray = self._extSemArray * for idx in range(len(val)): # <<<<<<<<<<<<<< * self._extSemArray[idx] = (val[idx])._ptr[0] * */ __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 9929, __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/cudart.pyx":9930 * self._ptr[0].extSemArray = self._extSemArray * for idx in range(len(val)): * self._extSemArray[idx] = (val[idx])._ptr[0] # <<<<<<<<<<<<<< * * @property */ __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_val, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9930, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); (__pyx_v_self->_extSemArray[__pyx_v_idx]) = (((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphore_t *)__pyx_t_5)->_ptr[0]); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __pyx_L3:; /* "cuda/cudart.pyx":9915 * arrs = [self._ptr[0].extSemArray + x*sizeof(ccudart.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_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitNodeParams.extSemArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9932 * self._extSemArray[idx] = (val[idx])._ptr[0] * * @property # <<<<<<<<<<<<<< * def paramsArray(self): * arrs = [self._ptr[0].paramsArray + x*sizeof(ccudart.cudaExternalSemaphoreWaitParams) for x in range(self._paramsArray_length)] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_11paramsArray_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_35cudaExternalSemaphoreWaitNodeParams_11paramsArray___get__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_11paramsArray___get__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *__pyx_v_self) { PyObject *__pyx_v_arrs = NULL; size_t __pyx_9genexpr56__pyx_v_x; PyObject *__pyx_9genexpr57__pyx_v_arr = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9932, 0, __PYX_ERR(0, 9932, __pyx_L1_error)); /* "cuda/cudart.pyx":9934 * @property * def paramsArray(self): * arrs = [self._ptr[0].paramsArray + x*sizeof(ccudart.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, 9934, __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_9genexpr56__pyx_v_x = __pyx_t_4; __pyx_t_5 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG((((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).paramsArray) + (__pyx_9genexpr56__pyx_v_x * (sizeof(struct cudaExternalSemaphoreWaitParams))))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9934, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 9934, __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/cudart.pyx":9935 * def paramsArray(self): * arrs = [self._ptr[0].paramsArray + x*sizeof(ccudart.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, 9935, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 9935, __pyx_L7_error) #endif if (__pyx_t_6 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_7 = PyList_GET_ITEM(__pyx_t_5, __pyx_t_6); __Pyx_INCREF(__pyx_t_7); __pyx_t_6++; if (unlikely((0 < 0))) __PYX_ERR(0, 9935, __pyx_L7_error) #else __pyx_t_7 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9935, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_7); #endif __Pyx_XDECREF_SET(__pyx_9genexpr57__pyx_v_arr, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9935, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_ptr, __pyx_9genexpr57__pyx_v_arr) < 0) __PYX_ERR(0, 9935, __pyx_L7_error) __pyx_t_8 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitParams), __pyx_empty_tuple, __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9935, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_8))) __PYX_ERR(0, 9935, __pyx_L7_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_9genexpr57__pyx_v_arr); __pyx_9genexpr57__pyx_v_arr = 0; goto __pyx_L11_exit_scope; __pyx_L7_error:; __Pyx_XDECREF(__pyx_9genexpr57__pyx_v_arr); __pyx_9genexpr57__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/cudart.pyx":9932 * self._extSemArray[idx] = (val[idx])._ptr[0] * * @property # <<<<<<<<<<<<<< * def paramsArray(self): * arrs = [self._ptr[0].paramsArray + x*sizeof(ccudart.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_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitNodeParams.paramsArray.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_arrs); __Pyx_XDECREF(__pyx_9genexpr57__pyx_v_arr); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9936 * arrs = [self._ptr[0].paramsArray + x*sizeof(ccudart.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_6cudart_35cudaExternalSemaphoreWaitNodeParams_11paramsArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_35cudaExternalSemaphoreWaitNodeParams_11paramsArray_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_val)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_11paramsArray_2__set__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *__pyx_v_self, PyObject *__pyx_v_val) { Py_ssize_t __pyx_v_idx; int __pyx_r; __Pyx_TraceDeclarations __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; struct cudaExternalSemaphoreWaitParams *__pyx_t_6; Py_ssize_t __pyx_t_7; Py_ssize_t __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 9936, 0, __PYX_ERR(0, 9936, __pyx_L1_error)); /* "cuda/cudart.pyx":9938 * @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, 9938, __pyx_L1_error) __pyx_t_2 = (__pyx_t_1 == 0); if (__pyx_t_2) { /* "cuda/cudart.pyx":9939 * def paramsArray(self, val): * if len(val) == 0: * free(self._paramsArray) # <<<<<<<<<<<<<< * self._paramsArray_length = 0 * self._ptr[0].paramsArray = NULL */ free(__pyx_v_self->_paramsArray); /* "cuda/cudart.pyx":9940 * if len(val) == 0: * free(self._paramsArray) * self._paramsArray_length = 0 # <<<<<<<<<<<<<< * self._ptr[0].paramsArray = NULL * else: */ __pyx_v_self->_paramsArray_length = 0; /* "cuda/cudart.pyx":9941 * free(self._paramsArray) * self._paramsArray_length = 0 * self._ptr[0].paramsArray = NULL # <<<<<<<<<<<<<< * else: * if self._paramsArray_length != len(val): */ (__pyx_v_self->_ptr[0]).paramsArray = NULL; /* "cuda/cudart.pyx":9938 * @paramsArray.setter * def paramsArray(self, val): * if len(val) == 0: # <<<<<<<<<<<<<< * free(self._paramsArray) * self._paramsArray_length = 0 */ goto __pyx_L3; } /* "cuda/cudart.pyx":9943 * self._ptr[0].paramsArray = NULL * else: * if self._paramsArray_length != len(val): # <<<<<<<<<<<<<< * free(self._paramsArray) * self._paramsArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphoreWaitParams)) */ /*else*/ { __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 9943, __pyx_L1_error) __pyx_t_2 = (__pyx_v_self->_paramsArray_length != ((size_t)__pyx_t_1)); if (__pyx_t_2) { /* "cuda/cudart.pyx":9944 * else: * if self._paramsArray_length != len(val): * free(self._paramsArray) # <<<<<<<<<<<<<< * self._paramsArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphoreWaitParams)) * if self._paramsArray is NULL: */ free(__pyx_v_self->_paramsArray); /* "cuda/cudart.pyx":9945 * if self._paramsArray_length != len(val): * free(self._paramsArray) * self._paramsArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphoreWaitParams)) # <<<<<<<<<<<<<< * if self._paramsArray is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphoreWaitParams))) */ __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 9945, __pyx_L1_error) __pyx_v_self->_paramsArray = ((struct cudaExternalSemaphoreWaitParams *)calloc(__pyx_t_1, (sizeof(struct cudaExternalSemaphoreWaitParams)))); /* "cuda/cudart.pyx":9946 * free(self._paramsArray) * self._paramsArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphoreWaitParams)) * if self._paramsArray is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphoreWaitParams))) * self._paramsArray_length = len(val) */ __pyx_t_2 = (__pyx_v_self->_paramsArray == NULL); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":9947 * self._paramsArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphoreWaitParams)) * if self._paramsArray is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphoreWaitParams))) # <<<<<<<<<<<<<< * self._paramsArray_length = len(val) * self._ptr[0].paramsArray = self._paramsArray */ __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 9947, __pyx_L1_error) __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9947, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9947, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9947, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_n_u_x_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9947, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaExternalSemaphoreWaitParams))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9947, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9947, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9947, __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_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9947, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __PYX_ERR(0, 9947, __pyx_L1_error) /* "cuda/cudart.pyx":9946 * free(self._paramsArray) * self._paramsArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphoreWaitParams)) * if self._paramsArray is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphoreWaitParams))) * self._paramsArray_length = len(val) */ } /* "cuda/cudart.pyx":9948 * if self._paramsArray is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphoreWaitParams))) * self._paramsArray_length = len(val) # <<<<<<<<<<<<<< * self._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, 9948, __pyx_L1_error) __pyx_v_self->_paramsArray_length = ((size_t)__pyx_t_1); /* "cuda/cudart.pyx":9949 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphoreWaitParams))) * self._paramsArray_length = len(val) * self._ptr[0].paramsArray = self._paramsArray # <<<<<<<<<<<<<< * for idx in range(len(val)): * string.memcpy(&self._paramsArray[idx], (val[idx])._ptr, sizeof(ccudart.cudaExternalSemaphoreWaitParams)) */ __pyx_t_6 = __pyx_v_self->_paramsArray; (__pyx_v_self->_ptr[0]).paramsArray = __pyx_t_6; /* "cuda/cudart.pyx":9943 * self._ptr[0].paramsArray = NULL * else: * if self._paramsArray_length != len(val): # <<<<<<<<<<<<<< * free(self._paramsArray) * self._paramsArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphoreWaitParams)) */ } /* "cuda/cudart.pyx":9950 * self._paramsArray_length = len(val) * self._ptr[0].paramsArray = self._paramsArray * for idx in range(len(val)): # <<<<<<<<<<<<<< * string.memcpy(&self._paramsArray[idx], (val[idx])._ptr, sizeof(ccudart.cudaExternalSemaphoreWaitParams)) * */ __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 9950, __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/cudart.pyx":9951 * self._ptr[0].paramsArray = self._paramsArray * for idx in range(len(val)): * string.memcpy(&self._paramsArray[idx], (val[idx])._ptr, sizeof(ccudart.cudaExternalSemaphoreWaitParams)) # <<<<<<<<<<<<<< * * @property */ __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_val, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9951, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); (void)(memcpy((&(__pyx_v_self->_paramsArray[__pyx_v_idx])), ((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *)__pyx_t_5)->_ptr, (sizeof(struct cudaExternalSemaphoreWaitParams)))); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __pyx_L3:; /* "cuda/cudart.pyx":9936 * arrs = [self._ptr[0].paramsArray + x*sizeof(ccudart.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_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitNodeParams.paramsArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9953 * string.memcpy(&self._paramsArray[idx], (val[idx])._ptr, sizeof(ccudart.cudaExternalSemaphoreWaitParams)) * * @property # <<<<<<<<<<<<<< * def numExtSems(self): * return self._ptr[0].numExtSems */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_10numExtSems_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_35cudaExternalSemaphoreWaitNodeParams_10numExtSems___get__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_10numExtSems___get__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 9953, 0, __PYX_ERR(0, 9953, __pyx_L1_error)); /* "cuda/cudart.pyx":9955 * @property * def numExtSems(self): * return self._ptr[0].numExtSems # <<<<<<<<<<<<<< * @numExtSems.setter * def numExtSems(self, unsigned int numExtSems): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).numExtSems); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9955, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9953 * string.memcpy(&self._paramsArray[idx], (val[idx])._ptr, sizeof(ccudart.cudaExternalSemaphoreWaitParams)) * * @property # <<<<<<<<<<<<<< * def numExtSems(self): * return self._ptr[0].numExtSems */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitNodeParams.numExtSems.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9956 * def numExtSems(self): * return self._ptr[0].numExtSems * @numExtSems.setter # <<<<<<<<<<<<<< * def numExtSems(self, unsigned int numExtSems): * self._ptr[0].numExtSems = numExtSems */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_10numExtSems_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_numExtSems); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_numExtSems); if (unlikely((__pyx_v_numExtSems == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9957, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitNodeParams.numExtSems.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_10numExtSems_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *)__pyx_v_self), ((unsigned int)__pyx_v_numExtSems)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_10numExtSems_2__set__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *__pyx_v_self, unsigned int __pyx_v_numExtSems) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 9956, 0, __PYX_ERR(0, 9956, __pyx_L1_error)); /* "cuda/cudart.pyx":9958 * @numExtSems.setter * def numExtSems(self, unsigned int numExtSems): * self._ptr[0].numExtSems = numExtSems # <<<<<<<<<<<<<< * * cdef class cudaExternalSemaphoreWaitNodeParamsV2: */ (__pyx_v_self->_ptr[0]).numExtSems = __pyx_v_numExtSems; /* "cuda/cudart.pyx":9956 * def numExtSems(self): * return self._ptr[0].numExtSems * @numExtSems.setter # <<<<<<<<<<<<<< * def numExtSems(self, unsigned int numExtSems): * self._ptr[0].numExtSems = numExtSems */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitNodeParams.numExtSems.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_35cudaExternalSemaphoreWaitNodeParams_10__reduce_cython__, "cudaExternalSemaphoreWaitNodeParams.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__231) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaExternalSemaphoreWaitNodeParams.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_35cudaExternalSemaphoreWaitNodeParams_12__setstate_cython__, "cudaExternalSemaphoreWaitNodeParams.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__232) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaExternalSemaphoreWaitNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9980 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 9980, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 9980, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9980, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 9980, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitNodeParamsV2.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2___cinit__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 9980, 0, __PYX_ERR(0, 9980, __pyx_L1_error)); /* "cuda/cudart.pyx":9981 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":9982 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaExternalSemaphoreWaitNodeParamsV2__val); /* "cuda/cudart.pyx":9981 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":9984 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * pass */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaExternalSemaphoreWaitNodeParamsV2 *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":9980 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitNodeParamsV2.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":9985 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 9985, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 9985, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9985, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 9985, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitNodeParamsV2.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 9985, 0, __PYX_ERR(0, 9985, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitNodeParamsV2.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":9987 * def __init__(self, void_ptr _ptr = 0): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * if self._extSemArray is not NULL: * free(self._extSemArray) */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_4__dealloc__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 9987, 0, __PYX_ERR(0, 9987, __pyx_L1_error)); /* "cuda/cudart.pyx":9988 * pass * def __dealloc__(self): * 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/cudart.pyx":9989 * def __dealloc__(self): * if self._extSemArray is not NULL: * free(self._extSemArray) # <<<<<<<<<<<<<< * if self._paramsArray is not NULL: * free(self._paramsArray) */ free(__pyx_v_self->_extSemArray); /* "cuda/cudart.pyx":9988 * pass * def __dealloc__(self): * if self._extSemArray is not NULL: # <<<<<<<<<<<<<< * free(self._extSemArray) * if self._paramsArray is not NULL: */ } /* "cuda/cudart.pyx":9990 * 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/cudart.pyx":9991 * free(self._extSemArray) * if self._paramsArray is not NULL: * free(self._paramsArray) # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ free(__pyx_v_self->_paramsArray); /* "cuda/cudart.pyx":9990 * if self._extSemArray is not NULL: * free(self._extSemArray) * if self._paramsArray is not NULL: # <<<<<<<<<<<<<< * free(self._paramsArray) * def getPtr(self): */ } /* "cuda/cudart.pyx":9987 * def __init__(self, void_ptr _ptr = 0): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * if self._extSemArray is not NULL: * free(self._extSemArray) */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaExternalSemaphoreWaitNodeParamsV2.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":9992 * if self._paramsArray is not NULL: * free(self._paramsArray) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_6getPtr, "cudaExternalSemaphoreWaitNodeParamsV2.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__233) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 9992, 0, __PYX_ERR(0, 9992, __pyx_L1_error)); /* "cuda/cudart.pyx":9993 * free(self._paramsArray) * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9993, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9992 * if self._paramsArray is not NULL: * free(self._paramsArray) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitNodeParamsV2.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":9994 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 9994, 0, __PYX_ERR(0, 9994, __pyx_L1_error)); /* "cuda/cudart.pyx":9995 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":9996 * def __repr__(self): * if self._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, 9996, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":9997 * if self._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/cudart.pyx":9998 * str_list = [] * try: * str_list += ['extSemArray : ' + str(self.extSemArray)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['extSemArray : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_extSemArray_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9998, __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, 9998, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_extSemArray, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9998, __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, 9998, __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)) __PYX_ERR(0, 9998, __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, 9998, __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/cudart.pyx":9997 * if self._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/cudart.pyx":9999 * try: * str_list += ['extSemArray : ' + str(self.extSemArray)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['extSemArray : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 9999, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":10000 * str_list += ['extSemArray : ' + str(self.extSemArray)] * except ValueError: * str_list += ['extSemArray : '] # <<<<<<<<<<<<<< * try: * str_list += ['paramsArray : ' + str(self.paramsArray)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10000, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_extSemArray_ValueError); __Pyx_GIVEREF(__pyx_kp_u_extSemArray_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_extSemArray_ValueError)) __PYX_ERR(0, 10000, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10000, __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/cudart.pyx":9997 * if self._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/cudart.pyx":10001 * except ValueError: * str_list += ['extSemArray : '] * 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/cudart.pyx":10002 * str_list += ['extSemArray : '] * try: * str_list += ['paramsArray : ' + str(self.paramsArray)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['paramsArray : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_paramsArray_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10002, __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, 10002, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_paramsArray, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10002, __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, 10002, __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)) __PYX_ERR(0, 10002, __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, 10002, __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/cudart.pyx":10001 * except ValueError: * str_list += ['extSemArray : '] * 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/cudart.pyx":10003 * try: * str_list += ['paramsArray : ' + str(self.paramsArray)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['paramsArray : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 10003, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":10004 * str_list += ['paramsArray : ' + str(self.paramsArray)] * except ValueError: * str_list += ['paramsArray : '] # <<<<<<<<<<<<<< * try: * str_list += ['numExtSems : ' + str(self.numExtSems)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10004, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_paramsArray_ValueError); __Pyx_GIVEREF(__pyx_kp_u_paramsArray_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_paramsArray_ValueError)) __PYX_ERR(0, 10004, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10004, __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/cudart.pyx":10001 * except ValueError: * str_list += ['extSemArray : '] * 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/cudart.pyx":10005 * except ValueError: * str_list += ['paramsArray : '] * 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/cudart.pyx":10006 * str_list += ['paramsArray : '] * try: * str_list += ['numExtSems : ' + str(self.numExtSems)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['numExtSems : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_numExtSems_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10006, __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, 10006, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_numExtSems, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10006, __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, 10006, __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)) __PYX_ERR(0, 10006, __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, 10006, __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/cudart.pyx":10005 * except ValueError: * str_list += ['paramsArray : '] * 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/cudart.pyx":10007 * try: * str_list += ['numExtSems : ' + str(self.numExtSems)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['numExtSems : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 10007, __pyx_L22_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":10008 * str_list += ['numExtSems : ' + str(self.numExtSems)] * except ValueError: * str_list += ['numExtSems : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10008, __pyx_L22_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_numExtSems_ValueError); __Pyx_GIVEREF(__pyx_kp_u_numExtSems_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_numExtSems_ValueError)) __PYX_ERR(0, 10008, __pyx_L22_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10008, __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/cudart.pyx":10005 * except ValueError: * str_list += ['paramsArray : '] * 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/cudart.pyx":10009 * except ValueError: * str_list += ['numExtSems : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10009, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":9995 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":10011 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def extSemArray(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":9994 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaExternalSemaphoreWaitNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10012 * else: * return '' * @property # <<<<<<<<<<<<<< * def extSemArray(self): * arrs = [self._ptr[0].extSemArray + x*sizeof(ccudart.cudaExternalSemaphore_t) for x in range(self._extSemArray_length)] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_11extSemArray_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_11extSemArray___get__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_11extSemArray___get__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_self) { PyObject *__pyx_v_arrs = NULL; size_t __pyx_9genexpr58__pyx_v_x; PyObject *__pyx_9genexpr59__pyx_v_arr = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10012, 0, __PYX_ERR(0, 10012, __pyx_L1_error)); /* "cuda/cudart.pyx":10014 * @property * def extSemArray(self): * arrs = [self._ptr[0].extSemArray + x*sizeof(ccudart.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, 10014, __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_9genexpr58__pyx_v_x = __pyx_t_4; __pyx_t_5 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG((((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).extSemArray) + (__pyx_9genexpr58__pyx_v_x * (sizeof(cudaExternalSemaphore_t))))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 10014, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 10014, __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/cudart.pyx":10015 * def extSemArray(self): * arrs = [self._ptr[0].extSemArray + x*sizeof(ccudart.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, 10015, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 10015, __pyx_L7_error) #endif if (__pyx_t_6 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_7 = PyList_GET_ITEM(__pyx_t_5, __pyx_t_6); __Pyx_INCREF(__pyx_t_7); __pyx_t_6++; if (unlikely((0 < 0))) __PYX_ERR(0, 10015, __pyx_L7_error) #else __pyx_t_7 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10015, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_7); #endif __Pyx_XDECREF_SET(__pyx_9genexpr59__pyx_v_arr, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10015, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_ptr, __pyx_9genexpr59__pyx_v_arr) < 0) __PYX_ERR(0, 10015, __pyx_L7_error) __pyx_t_8 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalSemaphore_t), __pyx_empty_tuple, __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10015, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_8))) __PYX_ERR(0, 10015, __pyx_L7_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_9genexpr59__pyx_v_arr); __pyx_9genexpr59__pyx_v_arr = 0; goto __pyx_L11_exit_scope; __pyx_L7_error:; __Pyx_XDECREF(__pyx_9genexpr59__pyx_v_arr); __pyx_9genexpr59__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/cudart.pyx":10012 * else: * return '' * @property # <<<<<<<<<<<<<< * def extSemArray(self): * arrs = [self._ptr[0].extSemArray + x*sizeof(ccudart.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_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitNodeParamsV2.extSemArray.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_arrs); __Pyx_XDECREF(__pyx_9genexpr59__pyx_v_arr); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10016 * arrs = [self._ptr[0].extSemArray + x*sizeof(ccudart.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_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_11extSemArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_11extSemArray_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 *)__pyx_v_self), ((PyObject *)__pyx_v_val)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_11extSemArray_2__set__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_self, PyObject *__pyx_v_val) { Py_ssize_t __pyx_v_idx; int __pyx_r; __Pyx_TraceDeclarations __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; cudaExternalSemaphore_t *__pyx_t_6; Py_ssize_t __pyx_t_7; Py_ssize_t __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 10016, 0, __PYX_ERR(0, 10016, __pyx_L1_error)); /* "cuda/cudart.pyx":10018 * @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, 10018, __pyx_L1_error) __pyx_t_2 = (__pyx_t_1 == 0); if (__pyx_t_2) { /* "cuda/cudart.pyx":10019 * def extSemArray(self, val): * if len(val) == 0: * free(self._extSemArray) # <<<<<<<<<<<<<< * self._extSemArray_length = 0 * self._ptr[0].extSemArray = NULL */ free(__pyx_v_self->_extSemArray); /* "cuda/cudart.pyx":10020 * if len(val) == 0: * free(self._extSemArray) * self._extSemArray_length = 0 # <<<<<<<<<<<<<< * self._ptr[0].extSemArray = NULL * else: */ __pyx_v_self->_extSemArray_length = 0; /* "cuda/cudart.pyx":10021 * free(self._extSemArray) * self._extSemArray_length = 0 * self._ptr[0].extSemArray = NULL # <<<<<<<<<<<<<< * else: * if self._extSemArray_length != len(val): */ (__pyx_v_self->_ptr[0]).extSemArray = NULL; /* "cuda/cudart.pyx":10018 * @extSemArray.setter * def extSemArray(self, val): * if len(val) == 0: # <<<<<<<<<<<<<< * free(self._extSemArray) * self._extSemArray_length = 0 */ goto __pyx_L3; } /* "cuda/cudart.pyx":10023 * self._ptr[0].extSemArray = NULL * else: * if self._extSemArray_length != len(val): # <<<<<<<<<<<<<< * free(self._extSemArray) * self._extSemArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphore_t)) */ /*else*/ { __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 10023, __pyx_L1_error) __pyx_t_2 = (__pyx_v_self->_extSemArray_length != ((size_t)__pyx_t_1)); if (__pyx_t_2) { /* "cuda/cudart.pyx":10024 * else: * if self._extSemArray_length != len(val): * free(self._extSemArray) # <<<<<<<<<<<<<< * self._extSemArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphore_t)) * if self._extSemArray is NULL: */ free(__pyx_v_self->_extSemArray); /* "cuda/cudart.pyx":10025 * if self._extSemArray_length != len(val): * free(self._extSemArray) * self._extSemArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphore_t)) # <<<<<<<<<<<<<< * if self._extSemArray is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphore_t))) */ __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 10025, __pyx_L1_error) __pyx_v_self->_extSemArray = ((cudaExternalSemaphore_t *)calloc(__pyx_t_1, (sizeof(cudaExternalSemaphore_t)))); /* "cuda/cudart.pyx":10026 * free(self._extSemArray) * self._extSemArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphore_t)) * if self._extSemArray is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphore_t))) * self._extSemArray_length = len(val) */ __pyx_t_2 = (__pyx_v_self->_extSemArray == NULL); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":10027 * self._extSemArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphore_t)) * if self._extSemArray is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphore_t))) # <<<<<<<<<<<<<< * self._extSemArray_length = len(val) * self._ptr[0].extSemArray = self._extSemArray */ __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 10027, __pyx_L1_error) __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10027, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 10027, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10027, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_n_u_x_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 10027, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyInt_FromSize_t((sizeof(cudaExternalSemaphore_t))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10027, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 10027, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10027, __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_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 10027, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __PYX_ERR(0, 10027, __pyx_L1_error) /* "cuda/cudart.pyx":10026 * free(self._extSemArray) * self._extSemArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphore_t)) * if self._extSemArray is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphore_t))) * self._extSemArray_length = len(val) */ } /* "cuda/cudart.pyx":10028 * if self._extSemArray is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphore_t))) * self._extSemArray_length = len(val) # <<<<<<<<<<<<<< * self._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, 10028, __pyx_L1_error) __pyx_v_self->_extSemArray_length = ((size_t)__pyx_t_1); /* "cuda/cudart.pyx":10029 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphore_t))) * self._extSemArray_length = len(val) * self._ptr[0].extSemArray = self._extSemArray # <<<<<<<<<<<<<< * for idx in range(len(val)): * self._extSemArray[idx] = (val[idx])._ptr[0] */ __pyx_t_6 = __pyx_v_self->_extSemArray; (__pyx_v_self->_ptr[0]).extSemArray = __pyx_t_6; /* "cuda/cudart.pyx":10023 * self._ptr[0].extSemArray = NULL * else: * if self._extSemArray_length != len(val): # <<<<<<<<<<<<<< * free(self._extSemArray) * self._extSemArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphore_t)) */ } /* "cuda/cudart.pyx":10030 * self._extSemArray_length = len(val) * self._ptr[0].extSemArray = self._extSemArray * for idx in range(len(val)): # <<<<<<<<<<<<<< * self._extSemArray[idx] = (val[idx])._ptr[0] * */ __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 10030, __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/cudart.pyx":10031 * self._ptr[0].extSemArray = self._extSemArray * for idx in range(len(val)): * self._extSemArray[idx] = (val[idx])._ptr[0] # <<<<<<<<<<<<<< * * @property */ __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_val, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 10031, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); (__pyx_v_self->_extSemArray[__pyx_v_idx]) = (((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphore_t *)__pyx_t_5)->_ptr[0]); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __pyx_L3:; /* "cuda/cudart.pyx":10016 * arrs = [self._ptr[0].extSemArray + x*sizeof(ccudart.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_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitNodeParamsV2.extSemArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10033 * self._extSemArray[idx] = (val[idx])._ptr[0] * * @property # <<<<<<<<<<<<<< * def paramsArray(self): * arrs = [self._ptr[0].paramsArray + x*sizeof(ccudart.cudaExternalSemaphoreWaitParams) for x in range(self._paramsArray_length)] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_11paramsArray_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_11paramsArray___get__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_11paramsArray___get__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_self) { PyObject *__pyx_v_arrs = NULL; size_t __pyx_9genexpr60__pyx_v_x; PyObject *__pyx_9genexpr61__pyx_v_arr = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10033, 0, __PYX_ERR(0, 10033, __pyx_L1_error)); /* "cuda/cudart.pyx":10035 * @property * def paramsArray(self): * arrs = [self._ptr[0].paramsArray + x*sizeof(ccudart.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, 10035, __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_9genexpr60__pyx_v_x = __pyx_t_4; __pyx_t_5 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG((((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).paramsArray) + (__pyx_9genexpr60__pyx_v_x * (sizeof(struct cudaExternalSemaphoreWaitParams))))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 10035, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 10035, __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/cudart.pyx":10036 * def paramsArray(self): * arrs = [self._ptr[0].paramsArray + x*sizeof(ccudart.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, 10036, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 10036, __pyx_L7_error) #endif if (__pyx_t_6 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_7 = PyList_GET_ITEM(__pyx_t_5, __pyx_t_6); __Pyx_INCREF(__pyx_t_7); __pyx_t_6++; if (unlikely((0 < 0))) __PYX_ERR(0, 10036, __pyx_L7_error) #else __pyx_t_7 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10036, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_7); #endif __Pyx_XDECREF_SET(__pyx_9genexpr61__pyx_v_arr, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10036, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_ptr, __pyx_9genexpr61__pyx_v_arr) < 0) __PYX_ERR(0, 10036, __pyx_L7_error) __pyx_t_8 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitParams), __pyx_empty_tuple, __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10036, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_8))) __PYX_ERR(0, 10036, __pyx_L7_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_9genexpr61__pyx_v_arr); __pyx_9genexpr61__pyx_v_arr = 0; goto __pyx_L11_exit_scope; __pyx_L7_error:; __Pyx_XDECREF(__pyx_9genexpr61__pyx_v_arr); __pyx_9genexpr61__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/cudart.pyx":10033 * self._extSemArray[idx] = (val[idx])._ptr[0] * * @property # <<<<<<<<<<<<<< * def paramsArray(self): * arrs = [self._ptr[0].paramsArray + x*sizeof(ccudart.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_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitNodeParamsV2.paramsArray.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_arrs); __Pyx_XDECREF(__pyx_9genexpr61__pyx_v_arr); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10037 * arrs = [self._ptr[0].paramsArray + x*sizeof(ccudart.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_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_11paramsArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_11paramsArray_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 *)__pyx_v_self), ((PyObject *)__pyx_v_val)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_11paramsArray_2__set__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_self, PyObject *__pyx_v_val) { Py_ssize_t __pyx_v_idx; int __pyx_r; __Pyx_TraceDeclarations __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; struct cudaExternalSemaphoreWaitParams *__pyx_t_6; Py_ssize_t __pyx_t_7; Py_ssize_t __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 10037, 0, __PYX_ERR(0, 10037, __pyx_L1_error)); /* "cuda/cudart.pyx":10039 * @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, 10039, __pyx_L1_error) __pyx_t_2 = (__pyx_t_1 == 0); if (__pyx_t_2) { /* "cuda/cudart.pyx":10040 * def paramsArray(self, val): * if len(val) == 0: * free(self._paramsArray) # <<<<<<<<<<<<<< * self._paramsArray_length = 0 * self._ptr[0].paramsArray = NULL */ free(__pyx_v_self->_paramsArray); /* "cuda/cudart.pyx":10041 * if len(val) == 0: * free(self._paramsArray) * self._paramsArray_length = 0 # <<<<<<<<<<<<<< * self._ptr[0].paramsArray = NULL * else: */ __pyx_v_self->_paramsArray_length = 0; /* "cuda/cudart.pyx":10042 * free(self._paramsArray) * self._paramsArray_length = 0 * self._ptr[0].paramsArray = NULL # <<<<<<<<<<<<<< * else: * if self._paramsArray_length != len(val): */ (__pyx_v_self->_ptr[0]).paramsArray = NULL; /* "cuda/cudart.pyx":10039 * @paramsArray.setter * def paramsArray(self, val): * if len(val) == 0: # <<<<<<<<<<<<<< * free(self._paramsArray) * self._paramsArray_length = 0 */ goto __pyx_L3; } /* "cuda/cudart.pyx":10044 * self._ptr[0].paramsArray = NULL * else: * if self._paramsArray_length != len(val): # <<<<<<<<<<<<<< * free(self._paramsArray) * self._paramsArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphoreWaitParams)) */ /*else*/ { __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 10044, __pyx_L1_error) __pyx_t_2 = (__pyx_v_self->_paramsArray_length != ((size_t)__pyx_t_1)); if (__pyx_t_2) { /* "cuda/cudart.pyx":10045 * else: * if self._paramsArray_length != len(val): * free(self._paramsArray) # <<<<<<<<<<<<<< * self._paramsArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphoreWaitParams)) * if self._paramsArray is NULL: */ free(__pyx_v_self->_paramsArray); /* "cuda/cudart.pyx":10046 * if self._paramsArray_length != len(val): * free(self._paramsArray) * self._paramsArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphoreWaitParams)) # <<<<<<<<<<<<<< * if self._paramsArray is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphoreWaitParams))) */ __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 10046, __pyx_L1_error) __pyx_v_self->_paramsArray = ((struct cudaExternalSemaphoreWaitParams *)calloc(__pyx_t_1, (sizeof(struct cudaExternalSemaphoreWaitParams)))); /* "cuda/cudart.pyx":10047 * free(self._paramsArray) * self._paramsArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphoreWaitParams)) * if self._paramsArray is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphoreWaitParams))) * self._paramsArray_length = len(val) */ __pyx_t_2 = (__pyx_v_self->_paramsArray == NULL); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":10048 * self._paramsArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphoreWaitParams)) * if self._paramsArray is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphoreWaitParams))) # <<<<<<<<<<<<<< * self._paramsArray_length = len(val) * self._ptr[0].paramsArray = self._paramsArray */ __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 10048, __pyx_L1_error) __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10048, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 10048, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10048, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_n_u_x_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 10048, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaExternalSemaphoreWaitParams))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10048, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 10048, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10048, __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_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 10048, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __PYX_ERR(0, 10048, __pyx_L1_error) /* "cuda/cudart.pyx":10047 * free(self._paramsArray) * self._paramsArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphoreWaitParams)) * if self._paramsArray is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphoreWaitParams))) * self._paramsArray_length = len(val) */ } /* "cuda/cudart.pyx":10049 * if self._paramsArray is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphoreWaitParams))) * self._paramsArray_length = len(val) # <<<<<<<<<<<<<< * self._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, 10049, __pyx_L1_error) __pyx_v_self->_paramsArray_length = ((size_t)__pyx_t_1); /* "cuda/cudart.pyx":10050 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphoreWaitParams))) * self._paramsArray_length = len(val) * self._ptr[0].paramsArray = self._paramsArray # <<<<<<<<<<<<<< * for idx in range(len(val)): * string.memcpy(&self._paramsArray[idx], (val[idx])._ptr, sizeof(ccudart.cudaExternalSemaphoreWaitParams)) */ __pyx_t_6 = __pyx_v_self->_paramsArray; (__pyx_v_self->_ptr[0]).paramsArray = __pyx_t_6; /* "cuda/cudart.pyx":10044 * self._ptr[0].paramsArray = NULL * else: * if self._paramsArray_length != len(val): # <<<<<<<<<<<<<< * free(self._paramsArray) * self._paramsArray = calloc(len(val), sizeof(ccudart.cudaExternalSemaphoreWaitParams)) */ } /* "cuda/cudart.pyx":10051 * self._paramsArray_length = len(val) * self._ptr[0].paramsArray = self._paramsArray * for idx in range(len(val)): # <<<<<<<<<<<<<< * string.memcpy(&self._paramsArray[idx], (val[idx])._ptr, sizeof(ccudart.cudaExternalSemaphoreWaitParams)) * */ __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 10051, __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/cudart.pyx":10052 * self._ptr[0].paramsArray = self._paramsArray * for idx in range(len(val)): * string.memcpy(&self._paramsArray[idx], (val[idx])._ptr, sizeof(ccudart.cudaExternalSemaphoreWaitParams)) # <<<<<<<<<<<<<< * * @property */ __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_val, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 10052, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); (void)(memcpy((&(__pyx_v_self->_paramsArray[__pyx_v_idx])), ((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *)__pyx_t_5)->_ptr, (sizeof(struct cudaExternalSemaphoreWaitParams)))); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } __pyx_L3:; /* "cuda/cudart.pyx":10037 * arrs = [self._ptr[0].paramsArray + x*sizeof(ccudart.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_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitNodeParamsV2.paramsArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10054 * string.memcpy(&self._paramsArray[idx], (val[idx])._ptr, sizeof(ccudart.cudaExternalSemaphoreWaitParams)) * * @property # <<<<<<<<<<<<<< * def numExtSems(self): * return self._ptr[0].numExtSems */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_10numExtSems_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_10numExtSems___get__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_10numExtSems___get__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10054, 0, __PYX_ERR(0, 10054, __pyx_L1_error)); /* "cuda/cudart.pyx":10056 * @property * def numExtSems(self): * return self._ptr[0].numExtSems # <<<<<<<<<<<<<< * @numExtSems.setter * def numExtSems(self, unsigned int numExtSems): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).numExtSems); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10056, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":10054 * string.memcpy(&self._paramsArray[idx], (val[idx])._ptr, sizeof(ccudart.cudaExternalSemaphoreWaitParams)) * * @property # <<<<<<<<<<<<<< * def numExtSems(self): * return self._ptr[0].numExtSems */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitNodeParamsV2.numExtSems.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10057 * def numExtSems(self): * return self._ptr[0].numExtSems * @numExtSems.setter # <<<<<<<<<<<<<< * def numExtSems(self, unsigned int numExtSems): * self._ptr[0].numExtSems = numExtSems */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_10numExtSems_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_numExtSems); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_numExtSems); if (unlikely((__pyx_v_numExtSems == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 10058, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitNodeParamsV2.numExtSems.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_10numExtSems_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 *)__pyx_v_self), ((unsigned int)__pyx_v_numExtSems)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_10numExtSems_2__set__(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_self, unsigned int __pyx_v_numExtSems) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 10057, 0, __PYX_ERR(0, 10057, __pyx_L1_error)); /* "cuda/cudart.pyx":10059 * @numExtSems.setter * def numExtSems(self, unsigned int numExtSems): * self._ptr[0].numExtSems = numExtSems # <<<<<<<<<<<<<< * * cdef class cudaConditionalNodeParams: */ (__pyx_v_self->_ptr[0]).numExtSems = __pyx_v_numExtSems; /* "cuda/cudart.pyx":10057 * def numExtSems(self): * return self._ptr[0].numExtSems * @numExtSems.setter # <<<<<<<<<<<<<< * def numExtSems(self, unsigned int numExtSems): * self._ptr[0].numExtSems = numExtSems */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitNodeParamsV2.numExtSems.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_10__reduce_cython__, "cudaExternalSemaphoreWaitNodeParamsV2.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__234) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaExternalSemaphoreWaitNodeParamsV2.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_12__setstate_cython__, "cudaExternalSemaphoreWaitNodeParamsV2.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaExternalSemaphoreWaitNodeParamsV2.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__235) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaExternalSemaphoreWaitNodeParamsV2.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10092 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_25cudaConditionalNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_25cudaConditionalNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 10092, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 10092, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10092, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 10092, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaConditionalNodeParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_25cudaConditionalNodeParams___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_25cudaConditionalNodeParams___cinit__(struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 10092, 0, __PYX_ERR(0, 10092, __pyx_L1_error)); /* "cuda/cudart.pyx":10093 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":10094 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaConditionalNodeParams__val); /* "cuda/cudart.pyx":10093 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":10096 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * self._handle = cudaGraphConditionalHandle(_ptr=&self._ptr[0].handle) */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaConditionalNodeParams *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":10092 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaConditionalNodeParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":10097 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._handle = cudaGraphConditionalHandle(_ptr=&self._ptr[0].handle) * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_25cudaConditionalNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_25cudaConditionalNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 10097, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 10097, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10097, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 10097, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaConditionalNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_25cudaConditionalNodeParams_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_25cudaConditionalNodeParams_2__init__(struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 10097, 0, __PYX_ERR(0, 10097, __pyx_L1_error)); /* "cuda/cudart.pyx":10098 * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): * self._handle = cudaGraphConditionalHandle(_ptr=&self._ptr[0].handle) # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10098, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).handle))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10098, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 10098, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphConditionalHandle), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10098, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_handle); __Pyx_DECREF((PyObject *)__pyx_v_self->_handle); __pyx_v_self->_handle = ((struct __pyx_obj_4cuda_6cudart_cudaGraphConditionalHandle *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":10097 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._handle = cudaGraphConditionalHandle(_ptr=&self._ptr[0].handle) * def __dealloc__(self): */ /* 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.cudart.cudaConditionalNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10099 * def __init__(self, void_ptr _ptr = 0): * self._handle = cudaGraphConditionalHandle(_ptr=&self._ptr[0].handle) * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_25cudaConditionalNodeParams_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_25cudaConditionalNodeParams_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_25cudaConditionalNodeParams_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 10099, 0, __PYX_ERR(0, 10099, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaConditionalNodeParams.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":10101 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_25cudaConditionalNodeParams_6getPtr, "cudaConditionalNodeParams.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_25cudaConditionalNodeParams_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_25cudaConditionalNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_25cudaConditionalNodeParams_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_25cudaConditionalNodeParams_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaConditionalNodeParams_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__236) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 10101, 0, __PYX_ERR(0, 10101, __pyx_L1_error)); /* "cuda/cudart.pyx":10102 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10102, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":10101 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaConditionalNodeParams.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10103 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_25cudaConditionalNodeParams_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_25cudaConditionalNodeParams_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaConditionalNodeParams_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 10103, 0, __PYX_ERR(0, 10103, __pyx_L1_error)); /* "cuda/cudart.pyx":10104 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":10105 * def __repr__(self): * if self._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, 10105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":10106 * if self._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/cudart.pyx":10107 * str_list = [] * try: * str_list += ['handle : ' + str(self.handle)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['handle : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_handle_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10107, __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, 10107, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_handle, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10107, __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, 10107, __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)) __PYX_ERR(0, 10107, __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, 10107, __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/cudart.pyx":10106 * if self._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/cudart.pyx":10108 * try: * str_list += ['handle : ' + str(self.handle)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['handle : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaConditionalNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 10108, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":10109 * str_list += ['handle : ' + str(self.handle)] * except ValueError: * str_list += ['handle : '] # <<<<<<<<<<<<<< * try: * str_list += ['type : ' + str(self.type)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10109, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_handle_ValueError); __Pyx_GIVEREF(__pyx_kp_u_handle_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_handle_ValueError)) __PYX_ERR(0, 10109, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10109, __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/cudart.pyx":10106 * if self._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/cudart.pyx":10110 * except ValueError: * str_list += ['handle : '] * 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/cudart.pyx":10111 * str_list += ['handle : '] * try: * str_list += ['type : ' + str(self.type)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['type : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_type_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10111, __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, 10111, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_type, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10111, __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, 10111, __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)) __PYX_ERR(0, 10111, __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, 10111, __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/cudart.pyx":10110 * except ValueError: * str_list += ['handle : '] * 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/cudart.pyx":10112 * try: * str_list += ['type : ' + str(self.type)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['type : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaConditionalNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 10112, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":10113 * str_list += ['type : ' + str(self.type)] * except ValueError: * str_list += ['type : '] # <<<<<<<<<<<<<< * try: * str_list += ['size : ' + str(self.size)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10113, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_type_ValueError); __Pyx_GIVEREF(__pyx_kp_u_type_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_type_ValueError)) __PYX_ERR(0, 10113, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10113, __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/cudart.pyx":10110 * except ValueError: * str_list += ['handle : '] * 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/cudart.pyx":10114 * except ValueError: * str_list += ['type : '] * 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/cudart.pyx":10115 * str_list += ['type : '] * try: * str_list += ['size : ' + str(self.size)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['size : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_size_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10115, __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, 10115, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_size, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10115, __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, 10115, __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)) __PYX_ERR(0, 10115, __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, 10115, __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/cudart.pyx":10114 * except ValueError: * str_list += ['type : '] * 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/cudart.pyx":10116 * try: * str_list += ['size : ' + str(self.size)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['size : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaConditionalNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 10116, __pyx_L22_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":10117 * str_list += ['size : ' + str(self.size)] * except ValueError: * str_list += ['size : '] # <<<<<<<<<<<<<< * try: * str_list += ['phGraph_out : ' + str(self.phGraph_out)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10117, __pyx_L22_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_size_ValueError); __Pyx_GIVEREF(__pyx_kp_u_size_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_size_ValueError)) __PYX_ERR(0, 10117, __pyx_L22_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10117, __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/cudart.pyx":10114 * except ValueError: * str_list += ['type : '] * 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/cudart.pyx":10118 * except ValueError: * str_list += ['size : '] * 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/cudart.pyx":10119 * str_list += ['size : '] * try: * str_list += ['phGraph_out : ' + str(self.phGraph_out)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['phGraph_out : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_phGraph_out_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10119, __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, 10119, __pyx_L28_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_phGraph_out, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10119, __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, 10119, __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)) __PYX_ERR(0, 10119, __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, 10119, __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/cudart.pyx":10118 * except ValueError: * str_list += ['size : '] * 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/cudart.pyx":10120 * try: * str_list += ['phGraph_out : ' + str(self.phGraph_out)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['phGraph_out : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaConditionalNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 10120, __pyx_L30_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":10121 * str_list += ['phGraph_out : ' + str(self.phGraph_out)] * except ValueError: * str_list += ['phGraph_out : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10121, __pyx_L30_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_phGraph_out_ValueError); __Pyx_GIVEREF(__pyx_kp_u_phGraph_out_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_phGraph_out_ValueError)) __PYX_ERR(0, 10121, __pyx_L30_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10121, __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/cudart.pyx":10118 * except ValueError: * str_list += ['size : '] * 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/cudart.pyx":10122 * except ValueError: * str_list += ['phGraph_out : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10122, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":10104 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":10124 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def handle(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":10103 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaConditionalNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10125 * else: * return '' * @property # <<<<<<<<<<<<<< * def handle(self): * return self._handle */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_25cudaConditionalNodeParams_6handle_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_25cudaConditionalNodeParams_6handle___get__(((struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaConditionalNodeParams_6handle___get__(struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10125, 0, __PYX_ERR(0, 10125, __pyx_L1_error)); /* "cuda/cudart.pyx":10127 * @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/cudart.pyx":10125 * else: * return '' * @property # <<<<<<<<<<<<<< * def handle(self): * return self._handle */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaConditionalNodeParams.handle.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10128 * def handle(self): * return self._handle * @handle.setter # <<<<<<<<<<<<<< * def handle(self, handle): * cdef ccudart.cudaGraphConditionalHandle chandle */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_25cudaConditionalNodeParams_6handle_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_handle); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_25cudaConditionalNodeParams_6handle_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_handle)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_25cudaConditionalNodeParams_6handle_2__set__(struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *__pyx_v_self, PyObject *__pyx_v_handle) { cudaGraphConditionalHandle __pyx_v_chandle; PyObject *__pyx_v_phandle = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 10128, 0, __PYX_ERR(0, 10128, __pyx_L1_error)); /* "cuda/cudart.pyx":10131 * def handle(self, handle): * cdef ccudart.cudaGraphConditionalHandle chandle * if handle is None: # <<<<<<<<<<<<<< * chandle = 0 * elif isinstance(handle, (cudaGraphConditionalHandle)): */ __pyx_t_1 = (__pyx_v_handle == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":10132 * cdef ccudart.cudaGraphConditionalHandle chandle * if handle is None: * chandle = 0 # <<<<<<<<<<<<<< * elif isinstance(handle, (cudaGraphConditionalHandle)): * phandle = int(handle) */ __pyx_v_chandle = ((cudaGraphConditionalHandle)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":10131 * def handle(self, handle): * cdef ccudart.cudaGraphConditionalHandle chandle * if handle is None: # <<<<<<<<<<<<<< * chandle = 0 * elif isinstance(handle, (cudaGraphConditionalHandle)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":10133 * if handle is None: * chandle = 0 * elif isinstance(handle, (cudaGraphConditionalHandle)): # <<<<<<<<<<<<<< * phandle = int(handle) * chandle = phandle */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_handle, __pyx_ptype_4cuda_6cudart_cudaGraphConditionalHandle); if (__pyx_t_1) { /* "cuda/cudart.pyx":10134 * chandle = 0 * elif isinstance(handle, (cudaGraphConditionalHandle)): * phandle = int(handle) # <<<<<<<<<<<<<< * chandle = phandle * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_handle); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10134, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_phandle = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":10135 * elif isinstance(handle, (cudaGraphConditionalHandle)): * phandle = int(handle) * chandle = phandle # <<<<<<<<<<<<<< * else: * phandle = int(cudaGraphConditionalHandle(handle)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phandle); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10135, __pyx_L1_error) __pyx_v_chandle = ((cudaGraphConditionalHandle)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":10133 * if handle is None: * chandle = 0 * elif isinstance(handle, (cudaGraphConditionalHandle)): # <<<<<<<<<<<<<< * phandle = int(handle) * chandle = phandle */ goto __pyx_L3; } /* "cuda/cudart.pyx":10137 * chandle = phandle * else: * phandle = int(cudaGraphConditionalHandle(handle)) # <<<<<<<<<<<<<< * chandle = phandle * self._handle._ptr[0] = chandle */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphConditionalHandle), __pyx_v_handle); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10137, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 10137, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_phandle = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":10138 * else: * phandle = int(cudaGraphConditionalHandle(handle)) * chandle = phandle # <<<<<<<<<<<<<< * self._handle._ptr[0] = chandle * */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phandle); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10138, __pyx_L1_error) __pyx_v_chandle = ((cudaGraphConditionalHandle)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":10139 * phandle = int(cudaGraphConditionalHandle(handle)) * chandle = phandle * self._handle._ptr[0] = chandle # <<<<<<<<<<<<<< * * @property */ (__pyx_v_self->_handle->_ptr[0]) = __pyx_v_chandle; /* "cuda/cudart.pyx":10128 * def handle(self): * return self._handle * @handle.setter # <<<<<<<<<<<<<< * def handle(self, handle): * cdef ccudart.cudaGraphConditionalHandle chandle */ /* 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.cudart.cudaConditionalNodeParams.handle.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v_phandle); __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10141 * self._handle._ptr[0] = chandle * * @property # <<<<<<<<<<<<<< * def type(self): * return cudaGraphConditionalNodeType(self._ptr[0].type) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_25cudaConditionalNodeParams_4type_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_25cudaConditionalNodeParams_4type___get__(((struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaConditionalNodeParams_4type___get__(struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10141, 0, __PYX_ERR(0, 10141, __pyx_L1_error)); /* "cuda/cudart.pyx":10143 * @property * def type(self): * return cudaGraphConditionalNodeType(self._ptr[0].type) # <<<<<<<<<<<<<< * @type.setter * def type(self, type not None : cudaGraphConditionalNodeType): */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaGraphConditionalNodeType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10143, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaGraphConditionalNodeType((__pyx_v_self->_ptr[0]).type); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10143, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10143, __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/cudart.pyx":10141 * self._handle._ptr[0] = chandle * * @property # <<<<<<<<<<<<<< * def type(self): * return cudaGraphConditionalNodeType(self._ptr[0].type) */ /* 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.cudart.cudaConditionalNodeParams.type.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10144 * def type(self): * return cudaGraphConditionalNodeType(self._ptr[0].type) * @type.setter # <<<<<<<<<<<<<< * def type(self, type not None : cudaGraphConditionalNodeType): * self._ptr[0].type = type.value */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_25cudaConditionalNodeParams_4type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_type); /*proto*/ static int __pyx_pw_4cuda_6cudart_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, 10145, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_25cudaConditionalNodeParams_4type_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_type)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_25cudaConditionalNodeParams_4type_2__set__(struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *__pyx_v_self, PyObject *__pyx_v_type) { int __pyx_r; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 10144, 0, __PYX_ERR(0, 10144, __pyx_L1_error)); /* "cuda/cudart.pyx":10146 * @type.setter * def type(self, type not None : cudaGraphConditionalNodeType): * self._ptr[0].type = type.value # <<<<<<<<<<<<<< * @property * def size(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_type, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10146, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaGraphConditionalNodeType)__Pyx_PyInt_As_enum__cudaGraphConditionalNodeType(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 10146, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).type = __pyx_t_2; /* "cuda/cudart.pyx":10144 * def type(self): * return cudaGraphConditionalNodeType(self._ptr[0].type) * @type.setter # <<<<<<<<<<<<<< * def type(self, type not None : cudaGraphConditionalNodeType): * self._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.cudart.cudaConditionalNodeParams.type.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10147 * def type(self, type not None : cudaGraphConditionalNodeType): * self._ptr[0].type = type.value * @property # <<<<<<<<<<<<<< * def size(self): * return self._ptr[0].size */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_25cudaConditionalNodeParams_4size_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_25cudaConditionalNodeParams_4size___get__(((struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaConditionalNodeParams_4size___get__(struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10147, 0, __PYX_ERR(0, 10147, __pyx_L1_error)); /* "cuda/cudart.pyx":10149 * @property * def size(self): * return self._ptr[0].size # <<<<<<<<<<<<<< * @size.setter * def size(self, unsigned int size): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10149, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":10147 * def type(self, type not None : cudaGraphConditionalNodeType): * self._ptr[0].type = type.value * @property # <<<<<<<<<<<<<< * def size(self): * return self._ptr[0].size */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaConditionalNodeParams.size.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10150 * def size(self): * return self._ptr[0].size * @size.setter # <<<<<<<<<<<<<< * def size(self, unsigned int size): * self._ptr[0].size = size */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_25cudaConditionalNodeParams_4size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_size); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_size); if (unlikely((__pyx_v_size == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 10151, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaConditionalNodeParams.size.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_25cudaConditionalNodeParams_4size_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *)__pyx_v_self), ((unsigned int)__pyx_v_size)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_25cudaConditionalNodeParams_4size_2__set__(struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *__pyx_v_self, unsigned int __pyx_v_size) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 10150, 0, __PYX_ERR(0, 10150, __pyx_L1_error)); /* "cuda/cudart.pyx":10152 * @size.setter * def size(self, unsigned int size): * self._ptr[0].size = size # <<<<<<<<<<<<<< * @property * def phGraph_out(self): */ (__pyx_v_self->_ptr[0]).size = __pyx_v_size; /* "cuda/cudart.pyx":10150 * def size(self): * return self._ptr[0].size * @size.setter # <<<<<<<<<<<<<< * def size(self, unsigned int size): * self._ptr[0].size = size */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaConditionalNodeParams.size.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":10153 * def size(self, unsigned int size): * self._ptr[0].size = size * @property # <<<<<<<<<<<<<< * def phGraph_out(self): * arrs = [self._ptr[0].phGraph_out + x*sizeof(ccudart.cudaGraph_t) for x in range(self.size)] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_25cudaConditionalNodeParams_11phGraph_out_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_25cudaConditionalNodeParams_11phGraph_out___get__(((struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaConditionalNodeParams_11phGraph_out___get__(struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *__pyx_v_self) { PyObject *__pyx_v_arrs = NULL; PyObject *__pyx_9genexpr62__pyx_v_x = NULL; PyObject *__pyx_9genexpr63__pyx_v_arr = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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)(PyObject *); 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("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10153, 0, __PYX_ERR(0, 10153, __pyx_L1_error)); /* "cuda/cudart.pyx":10155 * @property * def phGraph_out(self): * arrs = [self._ptr[0].phGraph_out + x*sizeof(ccudart.cudaGraph_t) for x in range(self.size)] # <<<<<<<<<<<<<< * return [cudaGraph_t(_ptr=arr) for arr in arrs] * */ { /* enter inner scope */ __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10155, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_size_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10155, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10155, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) { __pyx_t_2 = __pyx_t_3; __Pyx_INCREF(__pyx_t_2); __pyx_t_4 = 0; __pyx_t_5 = NULL; } else { __pyx_t_4 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10155, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 10155, __pyx_L5_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; for (;;) { if (likely(!__pyx_t_5)) { if (likely(PyList_CheckExact(__pyx_t_2))) { { Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 10155, __pyx_L5_error) #endif if (__pyx_t_4 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_3 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_3); __pyx_t_4++; if (unlikely((0 < 0))) __PYX_ERR(0, 10155, __pyx_L5_error) #else __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10155, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_3); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_2); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 10155, __pyx_L5_error) #endif if (__pyx_t_4 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_3); __pyx_t_4++; if (unlikely((0 < 0))) __PYX_ERR(0, 10155, __pyx_L5_error) #else __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10155, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_3); #endif } } else { __pyx_t_3 = __pyx_t_5(__pyx_t_2); if (unlikely(!__pyx_t_3)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 10155, __pyx_L5_error) } break; } __Pyx_GOTREF(__pyx_t_3); } __Pyx_XDECREF_SET(__pyx_9genexpr62__pyx_v_x, __pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).phGraph_out)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10155, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraph_t))); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10155, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = PyNumber_Multiply(__pyx_9genexpr62__pyx_v_x, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10155, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10155, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 10155, __pyx_L5_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_9genexpr62__pyx_v_x); __pyx_9genexpr62__pyx_v_x = 0; goto __pyx_L9_exit_scope; __pyx_L5_error:; __Pyx_XDECREF(__pyx_9genexpr62__pyx_v_x); __pyx_9genexpr62__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/cudart.pyx":10156 * def phGraph_out(self): * arrs = [self._ptr[0].phGraph_out + x*sizeof(ccudart.cudaGraph_t) for x in range(self.size)] * return [cudaGraph_t(_ptr=arr) for arr in arrs] # <<<<<<<<<<<<<< * * cdef class cudaChildGraphNodeParams: */ __Pyx_XDECREF(__pyx_r); { /* enter inner scope */ __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10156, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __pyx_v_arrs; __Pyx_INCREF(__pyx_t_2); __pyx_t_4 = 0; for (;;) { { Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 10156, __pyx_L12_error) #endif if (__pyx_t_4 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_6); __pyx_t_4++; if (unlikely((0 < 0))) __PYX_ERR(0, 10156, __pyx_L12_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10156, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_9genexpr63__pyx_v_arr, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10156, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_ptr, __pyx_9genexpr63__pyx_v_arr) < 0) __PYX_ERR(0, 10156, __pyx_L12_error) __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_empty_tuple, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10156, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_7))) __PYX_ERR(0, 10156, __pyx_L12_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_9genexpr63__pyx_v_arr); __pyx_9genexpr63__pyx_v_arr = 0; goto __pyx_L16_exit_scope; __pyx_L12_error:; __Pyx_XDECREF(__pyx_9genexpr63__pyx_v_arr); __pyx_9genexpr63__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/cudart.pyx":10153 * def size(self, unsigned int size): * self._ptr[0].size = size * @property # <<<<<<<<<<<<<< * def phGraph_out(self): * arrs = [self._ptr[0].phGraph_out + x*sizeof(ccudart.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_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.cudaConditionalNodeParams.phGraph_out.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_arrs); __Pyx_XDECREF(__pyx_9genexpr62__pyx_v_x); __Pyx_XDECREF(__pyx_9genexpr63__pyx_v_arr); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_25cudaConditionalNodeParams_10__reduce_cython__, "cudaConditionalNodeParams.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_25cudaConditionalNodeParams_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_25cudaConditionalNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_25cudaConditionalNodeParams_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_25cudaConditionalNodeParams_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaConditionalNodeParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__237) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaConditionalNodeParams.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_25cudaConditionalNodeParams_12__setstate_cython__, "cudaConditionalNodeParams.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_25cudaConditionalNodeParams_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_25cudaConditionalNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_25cudaConditionalNodeParams_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaConditionalNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_25cudaConditionalNodeParams_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaConditionalNodeParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__238) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaConditionalNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10174 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_24cudaChildGraphNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_24cudaChildGraphNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 10174, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 10174, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10174, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 10174, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaChildGraphNodeParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_24cudaChildGraphNodeParams___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaChildGraphNodeParams *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_24cudaChildGraphNodeParams___cinit__(struct __pyx_obj_4cuda_6cudart_cudaChildGraphNodeParams *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 10174, 0, __PYX_ERR(0, 10174, __pyx_L1_error)); /* "cuda/cudart.pyx":10175 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":10176 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaChildGraphNodeParams__val); /* "cuda/cudart.pyx":10175 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":10178 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * self._graph = cudaGraph_t(_ptr=&self._ptr[0].graph) */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaChildGraphNodeParams *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":10174 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaChildGraphNodeParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":10179 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._graph = cudaGraph_t(_ptr=&self._ptr[0].graph) * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_24cudaChildGraphNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_24cudaChildGraphNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 10179, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 10179, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10179, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 10179, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaChildGraphNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_24cudaChildGraphNodeParams_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaChildGraphNodeParams *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_24cudaChildGraphNodeParams_2__init__(struct __pyx_obj_4cuda_6cudart_cudaChildGraphNodeParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 10179, 0, __PYX_ERR(0, 10179, __pyx_L1_error)); /* "cuda/cudart.pyx":10180 * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): * self._graph = cudaGraph_t(_ptr=&self._ptr[0].graph) # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).graph))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 10180, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_graph); __Pyx_DECREF((PyObject *)__pyx_v_self->_graph); __pyx_v_self->_graph = ((struct __pyx_obj_4cuda_6cudart_cudaGraph_t *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":10179 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._graph = cudaGraph_t(_ptr=&self._ptr[0].graph) * def __dealloc__(self): */ /* 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.cudart.cudaChildGraphNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10181 * def __init__(self, void_ptr _ptr = 0): * self._graph = cudaGraph_t(_ptr=&self._ptr[0].graph) * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_24cudaChildGraphNodeParams_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_24cudaChildGraphNodeParams_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaChildGraphNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_24cudaChildGraphNodeParams_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaChildGraphNodeParams *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 10181, 0, __PYX_ERR(0, 10181, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaChildGraphNodeParams.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":10183 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_24cudaChildGraphNodeParams_6getPtr, "cudaChildGraphNodeParams.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_24cudaChildGraphNodeParams_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_24cudaChildGraphNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_24cudaChildGraphNodeParams_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_24cudaChildGraphNodeParams_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaChildGraphNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaChildGraphNodeParams_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaChildGraphNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__239) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 10183, 0, __PYX_ERR(0, 10183, __pyx_L1_error)); /* "cuda/cudart.pyx":10184 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10184, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":10183 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaChildGraphNodeParams.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10185 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_24cudaChildGraphNodeParams_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_24cudaChildGraphNodeParams_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaChildGraphNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaChildGraphNodeParams_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaChildGraphNodeParams *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 10185, 0, __PYX_ERR(0, 10185, __pyx_L1_error)); /* "cuda/cudart.pyx":10186 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":10187 * def __repr__(self): * if self._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, 10187, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":10188 * if self._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/cudart.pyx":10189 * str_list = [] * try: * str_list += ['graph : ' + str(self.graph)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['graph : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_graph_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10189, __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, 10189, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_graph, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10189, __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, 10189, __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)) __PYX_ERR(0, 10189, __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, 10189, __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/cudart.pyx":10188 * if self._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/cudart.pyx":10190 * try: * str_list += ['graph : ' + str(self.graph)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['graph : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaChildGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 10190, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":10191 * str_list += ['graph : ' + str(self.graph)] * except ValueError: * str_list += ['graph : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10191, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_graph_ValueError); __Pyx_GIVEREF(__pyx_kp_u_graph_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_graph_ValueError)) __PYX_ERR(0, 10191, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10191, __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/cudart.pyx":10188 * if self._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/cudart.pyx":10192 * except ValueError: * str_list += ['graph : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10192, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":10186 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":10194 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def graph(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":10185 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaChildGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10195 * else: * return '' * @property # <<<<<<<<<<<<<< * def graph(self): * return self._graph */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_24cudaChildGraphNodeParams_5graph_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_24cudaChildGraphNodeParams_5graph___get__(((struct __pyx_obj_4cuda_6cudart_cudaChildGraphNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaChildGraphNodeParams_5graph___get__(struct __pyx_obj_4cuda_6cudart_cudaChildGraphNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10195, 0, __PYX_ERR(0, 10195, __pyx_L1_error)); /* "cuda/cudart.pyx":10197 * @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/cudart.pyx":10195 * else: * return '' * @property # <<<<<<<<<<<<<< * def graph(self): * return self._graph */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaChildGraphNodeParams.graph.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10198 * def graph(self): * return self._graph * @graph.setter # <<<<<<<<<<<<<< * def graph(self, graph): * cdef ccudart.cudaGraph_t cgraph */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_24cudaChildGraphNodeParams_5graph_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_graph); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_24cudaChildGraphNodeParams_5graph_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaChildGraphNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_graph)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_24cudaChildGraphNodeParams_5graph_2__set__(struct __pyx_obj_4cuda_6cudart_cudaChildGraphNodeParams *__pyx_v_self, PyObject *__pyx_v_graph) { cudaGraph_t __pyx_v_cgraph; PyObject *__pyx_v_pgraph = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 10198, 0, __PYX_ERR(0, 10198, __pyx_L1_error)); /* "cuda/cudart.pyx":10201 * def graph(self, graph): * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_1 = (__pyx_v_graph == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":10202 * cdef ccudart.cudaGraph_t cgraph * if graph is None: * cgraph = 0 # <<<<<<<<<<<<<< * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) */ __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":10201 * def graph(self, graph): * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":10203 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":10204 * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) # <<<<<<<<<<<<<< * cgraph = pgraph * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10204, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pgraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":10205 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) * cgraph = pgraph # <<<<<<<<<<<<<< * else: * pgraph = int(cudaGraph_t(graph)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10205, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":10203 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ goto __pyx_L3; } /* "cuda/cudart.pyx":10207 * cgraph = pgraph * else: * pgraph = int(cudaGraph_t(graph)) # <<<<<<<<<<<<<< * cgraph = pgraph * self._graph._ptr[0] = cgraph */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10207, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 10207, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pgraph = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":10208 * else: * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph # <<<<<<<<<<<<<< * self._graph._ptr[0] = cgraph * */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10208, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":10209 * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph * self._graph._ptr[0] = cgraph # <<<<<<<<<<<<<< * * cdef class cudaEventRecordNodeParams: */ (__pyx_v_self->_graph->__pyx_base._ptr[0]) = __pyx_v_cgraph; /* "cuda/cudart.pyx":10198 * def graph(self): * return self._graph * @graph.setter # <<<<<<<<<<<<<< * def graph(self, graph): * cdef ccudart.cudaGraph_t cgraph */ /* 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.cudart.cudaChildGraphNodeParams.graph.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pgraph); __Pyx_TraceReturn(Py_None, 0); __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_6cudart_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_6cudart_24cudaChildGraphNodeParams_10__reduce_cython__, "cudaChildGraphNodeParams.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_24cudaChildGraphNodeParams_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_24cudaChildGraphNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_24cudaChildGraphNodeParams_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_24cudaChildGraphNodeParams_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaChildGraphNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaChildGraphNodeParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaChildGraphNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__240) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaChildGraphNodeParams.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_24cudaChildGraphNodeParams_12__setstate_cython__, "cudaChildGraphNodeParams.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_24cudaChildGraphNodeParams_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_24cudaChildGraphNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_24cudaChildGraphNodeParams_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaChildGraphNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_24cudaChildGraphNodeParams_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaChildGraphNodeParams *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaChildGraphNodeParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaChildGraphNodeParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__241) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaChildGraphNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10226 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_25cudaEventRecordNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_25cudaEventRecordNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 10226, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 10226, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10226, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 10226, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaEventRecordNodeParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_25cudaEventRecordNodeParams___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaEventRecordNodeParams *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_25cudaEventRecordNodeParams___cinit__(struct __pyx_obj_4cuda_6cudart_cudaEventRecordNodeParams *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 10226, 0, __PYX_ERR(0, 10226, __pyx_L1_error)); /* "cuda/cudart.pyx":10227 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":10228 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaEventRecordNodeParams__val); /* "cuda/cudart.pyx":10227 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":10230 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * self._event = cudaEvent_t(_ptr=&self._ptr[0].event) */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaEventRecordNodeParams *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":10226 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaEventRecordNodeParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":10231 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._event = cudaEvent_t(_ptr=&self._ptr[0].event) * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_25cudaEventRecordNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_25cudaEventRecordNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 10231, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 10231, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10231, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 10231, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaEventRecordNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_25cudaEventRecordNodeParams_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaEventRecordNodeParams *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_25cudaEventRecordNodeParams_2__init__(struct __pyx_obj_4cuda_6cudart_cudaEventRecordNodeParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 10231, 0, __PYX_ERR(0, 10231, __pyx_L1_error)); /* "cuda/cudart.pyx":10232 * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): * self._event = cudaEvent_t(_ptr=&self._ptr[0].event) # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10232, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).event))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10232, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 10232, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEvent_t), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10232, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_event); __Pyx_DECREF((PyObject *)__pyx_v_self->_event); __pyx_v_self->_event = ((struct __pyx_obj_4cuda_6cudart_cudaEvent_t *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":10231 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._event = cudaEvent_t(_ptr=&self._ptr[0].event) * def __dealloc__(self): */ /* 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.cudart.cudaEventRecordNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10233 * def __init__(self, void_ptr _ptr = 0): * self._event = cudaEvent_t(_ptr=&self._ptr[0].event) * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_25cudaEventRecordNodeParams_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_25cudaEventRecordNodeParams_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaEventRecordNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_25cudaEventRecordNodeParams_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaEventRecordNodeParams *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 10233, 0, __PYX_ERR(0, 10233, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaEventRecordNodeParams.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":10235 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_25cudaEventRecordNodeParams_6getPtr, "cudaEventRecordNodeParams.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_25cudaEventRecordNodeParams_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_25cudaEventRecordNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_25cudaEventRecordNodeParams_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_25cudaEventRecordNodeParams_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaEventRecordNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaEventRecordNodeParams_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaEventRecordNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__242) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 10235, 0, __PYX_ERR(0, 10235, __pyx_L1_error)); /* "cuda/cudart.pyx":10236 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10236, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":10235 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaEventRecordNodeParams.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10237 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_25cudaEventRecordNodeParams_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_25cudaEventRecordNodeParams_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaEventRecordNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaEventRecordNodeParams_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaEventRecordNodeParams *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 10237, 0, __PYX_ERR(0, 10237, __pyx_L1_error)); /* "cuda/cudart.pyx":10238 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":10239 * def __repr__(self): * if self._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, 10239, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":10240 * if self._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/cudart.pyx":10241 * str_list = [] * try: * str_list += ['event : ' + str(self.event)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['event : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_event_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10241, __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, 10241, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_event, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10241, __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, 10241, __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)) __PYX_ERR(0, 10241, __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, 10241, __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/cudart.pyx":10240 * if self._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/cudart.pyx":10242 * try: * str_list += ['event : ' + str(self.event)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['event : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaEventRecordNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 10242, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":10243 * str_list += ['event : ' + str(self.event)] * except ValueError: * str_list += ['event : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10243, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_event_ValueError); __Pyx_GIVEREF(__pyx_kp_u_event_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_event_ValueError)) __PYX_ERR(0, 10243, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10243, __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/cudart.pyx":10240 * if self._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/cudart.pyx":10244 * except ValueError: * str_list += ['event : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10244, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":10238 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":10246 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def event(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":10237 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaEventRecordNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10247 * else: * return '' * @property # <<<<<<<<<<<<<< * def event(self): * return self._event */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_25cudaEventRecordNodeParams_5event_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_25cudaEventRecordNodeParams_5event___get__(((struct __pyx_obj_4cuda_6cudart_cudaEventRecordNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaEventRecordNodeParams_5event___get__(struct __pyx_obj_4cuda_6cudart_cudaEventRecordNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10247, 0, __PYX_ERR(0, 10247, __pyx_L1_error)); /* "cuda/cudart.pyx":10249 * @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/cudart.pyx":10247 * else: * return '' * @property # <<<<<<<<<<<<<< * def event(self): * return self._event */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaEventRecordNodeParams.event.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10250 * def event(self): * return self._event * @event.setter # <<<<<<<<<<<<<< * def event(self, event): * cdef ccudart.cudaEvent_t cevent */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_25cudaEventRecordNodeParams_5event_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_event); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_25cudaEventRecordNodeParams_5event_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaEventRecordNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_event)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_25cudaEventRecordNodeParams_5event_2__set__(struct __pyx_obj_4cuda_6cudart_cudaEventRecordNodeParams *__pyx_v_self, PyObject *__pyx_v_event) { cudaEvent_t __pyx_v_cevent; PyObject *__pyx_v_pevent = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 10250, 0, __PYX_ERR(0, 10250, __pyx_L1_error)); /* "cuda/cudart.pyx":10253 * def event(self, event): * cdef ccudart.cudaEvent_t cevent * if event is None: # <<<<<<<<<<<<<< * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): */ __pyx_t_1 = (__pyx_v_event == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":10254 * cdef ccudart.cudaEvent_t cevent * if event is None: * cevent = 0 # <<<<<<<<<<<<<< * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) */ __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":10253 * def event(self, event): * cdef ccudart.cudaEvent_t cevent * if event is None: # <<<<<<<<<<<<<< * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":10255 * if event is None: * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pevent = int(event) * cevent = pevent */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUevent); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":10256 * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) # <<<<<<<<<<<<<< * cevent = pevent * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10256, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pevent = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":10257 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) * cevent = pevent # <<<<<<<<<<<<<< * else: * pevent = int(cudaEvent_t(event)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10257, __pyx_L1_error) __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":10255 * if event is None: * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pevent = int(event) * cevent = pevent */ goto __pyx_L3; } /* "cuda/cudart.pyx":10259 * cevent = pevent * else: * pevent = int(cudaEvent_t(event)) # <<<<<<<<<<<<<< * cevent = pevent * self._event._ptr[0] = cevent */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEvent_t), __pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10259, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 10259, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pevent = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":10260 * else: * pevent = int(cudaEvent_t(event)) * cevent = pevent # <<<<<<<<<<<<<< * self._event._ptr[0] = cevent * */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10260, __pyx_L1_error) __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":10261 * pevent = int(cudaEvent_t(event)) * cevent = pevent * self._event._ptr[0] = cevent # <<<<<<<<<<<<<< * * cdef class cudaEventWaitNodeParams: */ (__pyx_v_self->_event->__pyx_base._ptr[0]) = __pyx_v_cevent; /* "cuda/cudart.pyx":10250 * def event(self): * return self._event * @event.setter # <<<<<<<<<<<<<< * def event(self, event): * cdef ccudart.cudaEvent_t cevent */ /* 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.cudart.cudaEventRecordNodeParams.event.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pevent); __Pyx_TraceReturn(Py_None, 0); __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_6cudart_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_6cudart_25cudaEventRecordNodeParams_10__reduce_cython__, "cudaEventRecordNodeParams.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_25cudaEventRecordNodeParams_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_25cudaEventRecordNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_25cudaEventRecordNodeParams_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_25cudaEventRecordNodeParams_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaEventRecordNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaEventRecordNodeParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaEventRecordNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__243) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaEventRecordNodeParams.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_25cudaEventRecordNodeParams_12__setstate_cython__, "cudaEventRecordNodeParams.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_25cudaEventRecordNodeParams_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_25cudaEventRecordNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_25cudaEventRecordNodeParams_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaEventRecordNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_25cudaEventRecordNodeParams_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaEventRecordNodeParams *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaEventRecordNodeParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaEventRecordNodeParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__244) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaEventRecordNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10278 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_23cudaEventWaitNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_23cudaEventWaitNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 10278, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 10278, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10278, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 10278, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaEventWaitNodeParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_23cudaEventWaitNodeParams___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaEventWaitNodeParams *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_23cudaEventWaitNodeParams___cinit__(struct __pyx_obj_4cuda_6cudart_cudaEventWaitNodeParams *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 10278, 0, __PYX_ERR(0, 10278, __pyx_L1_error)); /* "cuda/cudart.pyx":10279 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":10280 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaEventWaitNodeParams__val); /* "cuda/cudart.pyx":10279 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":10282 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * self._event = cudaEvent_t(_ptr=&self._ptr[0].event) */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaEventWaitNodeParams *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":10278 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaEventWaitNodeParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":10283 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._event = cudaEvent_t(_ptr=&self._ptr[0].event) * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_23cudaEventWaitNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_23cudaEventWaitNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 10283, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 10283, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10283, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 10283, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaEventWaitNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_23cudaEventWaitNodeParams_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaEventWaitNodeParams *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_23cudaEventWaitNodeParams_2__init__(struct __pyx_obj_4cuda_6cudart_cudaEventWaitNodeParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 10283, 0, __PYX_ERR(0, 10283, __pyx_L1_error)); /* "cuda/cudart.pyx":10284 * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): * self._event = cudaEvent_t(_ptr=&self._ptr[0].event) # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10284, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).event))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10284, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 10284, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEvent_t), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10284, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_event); __Pyx_DECREF((PyObject *)__pyx_v_self->_event); __pyx_v_self->_event = ((struct __pyx_obj_4cuda_6cudart_cudaEvent_t *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":10283 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._event = cudaEvent_t(_ptr=&self._ptr[0].event) * def __dealloc__(self): */ /* 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.cudart.cudaEventWaitNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10285 * def __init__(self, void_ptr _ptr = 0): * self._event = cudaEvent_t(_ptr=&self._ptr[0].event) * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_23cudaEventWaitNodeParams_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_23cudaEventWaitNodeParams_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaEventWaitNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_23cudaEventWaitNodeParams_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaEventWaitNodeParams *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 10285, 0, __PYX_ERR(0, 10285, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaEventWaitNodeParams.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":10287 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_23cudaEventWaitNodeParams_6getPtr, "cudaEventWaitNodeParams.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_23cudaEventWaitNodeParams_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_23cudaEventWaitNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_23cudaEventWaitNodeParams_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_23cudaEventWaitNodeParams_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaEventWaitNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_23cudaEventWaitNodeParams_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaEventWaitNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__245) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 10287, 0, __PYX_ERR(0, 10287, __pyx_L1_error)); /* "cuda/cudart.pyx":10288 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10288, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":10287 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaEventWaitNodeParams.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10289 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_23cudaEventWaitNodeParams_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_23cudaEventWaitNodeParams_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaEventWaitNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_23cudaEventWaitNodeParams_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaEventWaitNodeParams *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 10289, 0, __PYX_ERR(0, 10289, __pyx_L1_error)); /* "cuda/cudart.pyx":10290 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":10291 * def __repr__(self): * if self._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, 10291, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":10292 * if self._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/cudart.pyx":10293 * str_list = [] * try: * str_list += ['event : ' + str(self.event)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['event : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_event_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10293, __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, 10293, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_event, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10293, __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, 10293, __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)) __PYX_ERR(0, 10293, __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, 10293, __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/cudart.pyx":10292 * if self._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/cudart.pyx":10294 * try: * str_list += ['event : ' + str(self.event)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['event : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaEventWaitNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 10294, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":10295 * str_list += ['event : ' + str(self.event)] * except ValueError: * str_list += ['event : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10295, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_event_ValueError); __Pyx_GIVEREF(__pyx_kp_u_event_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_event_ValueError)) __PYX_ERR(0, 10295, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10295, __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/cudart.pyx":10292 * if self._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/cudart.pyx":10296 * except ValueError: * str_list += ['event : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10296, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":10290 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":10298 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def event(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":10289 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaEventWaitNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10299 * else: * return '' * @property # <<<<<<<<<<<<<< * def event(self): * return self._event */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_23cudaEventWaitNodeParams_5event_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_23cudaEventWaitNodeParams_5event___get__(((struct __pyx_obj_4cuda_6cudart_cudaEventWaitNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_23cudaEventWaitNodeParams_5event___get__(struct __pyx_obj_4cuda_6cudart_cudaEventWaitNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10299, 0, __PYX_ERR(0, 10299, __pyx_L1_error)); /* "cuda/cudart.pyx":10301 * @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/cudart.pyx":10299 * else: * return '' * @property # <<<<<<<<<<<<<< * def event(self): * return self._event */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaEventWaitNodeParams.event.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10302 * def event(self): * return self._event * @event.setter # <<<<<<<<<<<<<< * def event(self, event): * cdef ccudart.cudaEvent_t cevent */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_23cudaEventWaitNodeParams_5event_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_event); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_23cudaEventWaitNodeParams_5event_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaEventWaitNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_event)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_23cudaEventWaitNodeParams_5event_2__set__(struct __pyx_obj_4cuda_6cudart_cudaEventWaitNodeParams *__pyx_v_self, PyObject *__pyx_v_event) { cudaEvent_t __pyx_v_cevent; PyObject *__pyx_v_pevent = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 10302, 0, __PYX_ERR(0, 10302, __pyx_L1_error)); /* "cuda/cudart.pyx":10305 * def event(self, event): * cdef ccudart.cudaEvent_t cevent * if event is None: # <<<<<<<<<<<<<< * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): */ __pyx_t_1 = (__pyx_v_event == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":10306 * cdef ccudart.cudaEvent_t cevent * if event is None: * cevent = 0 # <<<<<<<<<<<<<< * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) */ __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":10305 * def event(self, event): * cdef ccudart.cudaEvent_t cevent * if event is None: # <<<<<<<<<<<<<< * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":10307 * if event is None: * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pevent = int(event) * cevent = pevent */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUevent); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":10308 * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) # <<<<<<<<<<<<<< * cevent = pevent * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10308, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pevent = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":10309 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) * cevent = pevent # <<<<<<<<<<<<<< * else: * pevent = int(cudaEvent_t(event)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10309, __pyx_L1_error) __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":10307 * if event is None: * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pevent = int(event) * cevent = pevent */ goto __pyx_L3; } /* "cuda/cudart.pyx":10311 * cevent = pevent * else: * pevent = int(cudaEvent_t(event)) # <<<<<<<<<<<<<< * cevent = pevent * self._event._ptr[0] = cevent */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEvent_t), __pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10311, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 10311, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pevent = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":10312 * else: * pevent = int(cudaEvent_t(event)) * cevent = pevent # <<<<<<<<<<<<<< * self._event._ptr[0] = cevent * */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10312, __pyx_L1_error) __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":10313 * pevent = int(cudaEvent_t(event)) * cevent = pevent * self._event._ptr[0] = cevent # <<<<<<<<<<<<<< * * cdef class cudaGraphNodeParams: */ (__pyx_v_self->_event->__pyx_base._ptr[0]) = __pyx_v_cevent; /* "cuda/cudart.pyx":10302 * def event(self): * return self._event * @event.setter # <<<<<<<<<<<<<< * def event(self, event): * cdef ccudart.cudaEvent_t cevent */ /* 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.cudart.cudaEventWaitNodeParams.event.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pevent); __Pyx_TraceReturn(Py_None, 0); __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_6cudart_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_6cudart_23cudaEventWaitNodeParams_10__reduce_cython__, "cudaEventWaitNodeParams.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_23cudaEventWaitNodeParams_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_23cudaEventWaitNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_23cudaEventWaitNodeParams_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_23cudaEventWaitNodeParams_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaEventWaitNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_23cudaEventWaitNodeParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaEventWaitNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__246) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaEventWaitNodeParams.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_23cudaEventWaitNodeParams_12__setstate_cython__, "cudaEventWaitNodeParams.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_23cudaEventWaitNodeParams_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_23cudaEventWaitNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_23cudaEventWaitNodeParams_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaEventWaitNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_23cudaEventWaitNodeParams_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaEventWaitNodeParams *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_23cudaEventWaitNodeParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaEventWaitNodeParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__247) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaEventWaitNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10360 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._val_ptr = calloc(1, sizeof(ccudart.cudaGraphNodeParams)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 10360, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 10360, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10360, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 10360, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams___cinit__(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; struct cudaGraphNodeParams *__pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 10360, 0, __PYX_ERR(0, 10360, __pyx_L1_error)); /* "cuda/cudart.pyx":10361 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._val_ptr = calloc(1, sizeof(ccudart.cudaGraphNodeParams)) * self._ptr = self._val_ptr */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":10362 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._val_ptr = calloc(1, sizeof(ccudart.cudaGraphNodeParams)) # <<<<<<<<<<<<<< * self._ptr = self._val_ptr * else: */ __pyx_v_self->_val_ptr = ((struct cudaGraphNodeParams *)calloc(1, (sizeof(struct cudaGraphNodeParams)))); /* "cuda/cudart.pyx":10363 * if _ptr == 0: * self._val_ptr = calloc(1, sizeof(ccudart.cudaGraphNodeParams)) * self._ptr = self._val_ptr # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_t_2 = __pyx_v_self->_val_ptr; __pyx_v_self->_ptr = __pyx_t_2; /* "cuda/cudart.pyx":10361 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._val_ptr = calloc(1, sizeof(ccudart.cudaGraphNodeParams)) * self._ptr = self._val_ptr */ goto __pyx_L3; } /* "cuda/cudart.pyx":10365 * self._ptr = self._val_ptr * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * self._kernel = cudaKernelNodeParamsV2(_ptr=&self._ptr[0].kernel) */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaGraphNodeParams *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":10360 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._val_ptr = calloc(1, sizeof(ccudart.cudaGraphNodeParams)) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":10366 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._kernel = cudaKernelNodeParamsV2(_ptr=&self._ptr[0].kernel) * self._memcpy = cudaMemcpyNodeParams(_ptr=&self._ptr[0].memcpy) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 10366, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 10366, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10366, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 10366, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_2__init__(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 10366, 0, __PYX_ERR(0, 10366, __pyx_L1_error)); /* "cuda/cudart.pyx":10367 * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): * self._kernel = cudaKernelNodeParamsV2(_ptr=&self._ptr[0].kernel) # <<<<<<<<<<<<<< * self._memcpy = cudaMemcpyNodeParams(_ptr=&self._ptr[0].memcpy) * self._memset = cudaMemsetParamsV2(_ptr=&self._ptr[0].memset) */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10367, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).kernel))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10367, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 10367, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaKernelNodeParamsV2), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10367, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_kernel); __Pyx_DECREF((PyObject *)__pyx_v_self->_kernel); __pyx_v_self->_kernel = ((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":10368 * def __init__(self, void_ptr _ptr = 0): * self._kernel = cudaKernelNodeParamsV2(_ptr=&self._ptr[0].kernel) * self._memcpy = cudaMemcpyNodeParams(_ptr=&self._ptr[0].memcpy) # <<<<<<<<<<<<<< * self._memset = cudaMemsetParamsV2(_ptr=&self._ptr[0].memset) * self._host = cudaHostNodeParamsV2(_ptr=&self._ptr[0].host) */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10368, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).memcpy))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10368, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_ptr, __pyx_t_1) < 0) __PYX_ERR(0, 10368, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemcpyNodeParams), __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10368, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GIVEREF(__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_6cudart_cudaMemcpyNodeParams *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":10369 * self._kernel = cudaKernelNodeParamsV2(_ptr=&self._ptr[0].kernel) * self._memcpy = cudaMemcpyNodeParams(_ptr=&self._ptr[0].memcpy) * self._memset = cudaMemsetParamsV2(_ptr=&self._ptr[0].memset) # <<<<<<<<<<<<<< * self._host = cudaHostNodeParamsV2(_ptr=&self._ptr[0].host) * self._graph = cudaChildGraphNodeParams(_ptr=&self._ptr[0].graph) */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10369, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).memset))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10369, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 10369, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemsetParamsV2), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10369, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_memset); __Pyx_DECREF((PyObject *)__pyx_v_self->_memset); __pyx_v_self->_memset = ((struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":10370 * self._memcpy = cudaMemcpyNodeParams(_ptr=&self._ptr[0].memcpy) * self._memset = cudaMemsetParamsV2(_ptr=&self._ptr[0].memset) * self._host = cudaHostNodeParamsV2(_ptr=&self._ptr[0].host) # <<<<<<<<<<<<<< * self._graph = cudaChildGraphNodeParams(_ptr=&self._ptr[0].graph) * self._eventWait = cudaEventWaitNodeParams(_ptr=&self._ptr[0].eventWait) */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10370, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).host))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10370, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_ptr, __pyx_t_1) < 0) __PYX_ERR(0, 10370, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaHostNodeParamsV2), __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10370, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GIVEREF(__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_6cudart_cudaHostNodeParamsV2 *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":10371 * self._memset = cudaMemsetParamsV2(_ptr=&self._ptr[0].memset) * self._host = cudaHostNodeParamsV2(_ptr=&self._ptr[0].host) * self._graph = cudaChildGraphNodeParams(_ptr=&self._ptr[0].graph) # <<<<<<<<<<<<<< * self._eventWait = cudaEventWaitNodeParams(_ptr=&self._ptr[0].eventWait) * self._eventRecord = cudaEventRecordNodeParams(_ptr=&self._ptr[0].eventRecord) */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10371, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).graph))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10371, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 10371, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaChildGraphNodeParams), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10371, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_graph); __Pyx_DECREF((PyObject *)__pyx_v_self->_graph); __pyx_v_self->_graph = ((struct __pyx_obj_4cuda_6cudart_cudaChildGraphNodeParams *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":10372 * self._host = cudaHostNodeParamsV2(_ptr=&self._ptr[0].host) * self._graph = cudaChildGraphNodeParams(_ptr=&self._ptr[0].graph) * self._eventWait = cudaEventWaitNodeParams(_ptr=&self._ptr[0].eventWait) # <<<<<<<<<<<<<< * self._eventRecord = cudaEventRecordNodeParams(_ptr=&self._ptr[0].eventRecord) * self._extSemSignal = cudaExternalSemaphoreSignalNodeParamsV2(_ptr=&self._ptr[0].extSemSignal) */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10372, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).eventWait))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10372, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_ptr, __pyx_t_1) < 0) __PYX_ERR(0, 10372, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEventWaitNodeParams), __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10372, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GIVEREF(__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_6cudart_cudaEventWaitNodeParams *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":10373 * self._graph = cudaChildGraphNodeParams(_ptr=&self._ptr[0].graph) * self._eventWait = cudaEventWaitNodeParams(_ptr=&self._ptr[0].eventWait) * self._eventRecord = cudaEventRecordNodeParams(_ptr=&self._ptr[0].eventRecord) # <<<<<<<<<<<<<< * self._extSemSignal = cudaExternalSemaphoreSignalNodeParamsV2(_ptr=&self._ptr[0].extSemSignal) * self._extSemWait = cudaExternalSemaphoreWaitNodeParamsV2(_ptr=&self._ptr[0].extSemWait) */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10373, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).eventRecord))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10373, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 10373, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEventRecordNodeParams), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10373, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_eventRecord); __Pyx_DECREF((PyObject *)__pyx_v_self->_eventRecord); __pyx_v_self->_eventRecord = ((struct __pyx_obj_4cuda_6cudart_cudaEventRecordNodeParams *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":10374 * self._eventWait = cudaEventWaitNodeParams(_ptr=&self._ptr[0].eventWait) * self._eventRecord = cudaEventRecordNodeParams(_ptr=&self._ptr[0].eventRecord) * self._extSemSignal = cudaExternalSemaphoreSignalNodeParamsV2(_ptr=&self._ptr[0].extSemSignal) # <<<<<<<<<<<<<< * self._extSemWait = cudaExternalSemaphoreWaitNodeParamsV2(_ptr=&self._ptr[0].extSemWait) * self._alloc = cudaMemAllocNodeParamsV2(_ptr=&self._ptr[0].alloc) */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10374, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).extSemSignal))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10374, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_ptr, __pyx_t_1) < 0) __PYX_ERR(0, 10374, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2), __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10374, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GIVEREF(__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_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":10375 * self._eventRecord = cudaEventRecordNodeParams(_ptr=&self._ptr[0].eventRecord) * self._extSemSignal = cudaExternalSemaphoreSignalNodeParamsV2(_ptr=&self._ptr[0].extSemSignal) * self._extSemWait = cudaExternalSemaphoreWaitNodeParamsV2(_ptr=&self._ptr[0].extSemWait) # <<<<<<<<<<<<<< * self._alloc = cudaMemAllocNodeParamsV2(_ptr=&self._ptr[0].alloc) * self._free = cudaMemFreeNodeParams(_ptr=&self._ptr[0].free) */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10375, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).extSemWait))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10375, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 10375, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10375, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_extSemWait); __Pyx_DECREF((PyObject *)__pyx_v_self->_extSemWait); __pyx_v_self->_extSemWait = ((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":10376 * self._extSemSignal = cudaExternalSemaphoreSignalNodeParamsV2(_ptr=&self._ptr[0].extSemSignal) * self._extSemWait = cudaExternalSemaphoreWaitNodeParamsV2(_ptr=&self._ptr[0].extSemWait) * self._alloc = cudaMemAllocNodeParamsV2(_ptr=&self._ptr[0].alloc) # <<<<<<<<<<<<<< * self._free = cudaMemFreeNodeParams(_ptr=&self._ptr[0].free) * self._conditional = cudaConditionalNodeParams(_ptr=&self._ptr[0].conditional) */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10376, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).alloc))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10376, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_ptr, __pyx_t_1) < 0) __PYX_ERR(0, 10376, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParamsV2), __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10376, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GIVEREF(__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_6cudart_cudaMemAllocNodeParamsV2 *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":10377 * self._extSemWait = cudaExternalSemaphoreWaitNodeParamsV2(_ptr=&self._ptr[0].extSemWait) * self._alloc = cudaMemAllocNodeParamsV2(_ptr=&self._ptr[0].alloc) * self._free = cudaMemFreeNodeParams(_ptr=&self._ptr[0].free) # <<<<<<<<<<<<<< * self._conditional = cudaConditionalNodeParams(_ptr=&self._ptr[0].conditional) * def __dealloc__(self): */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10377, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).free))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10377, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 10377, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemFreeNodeParams), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10377, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_free); __Pyx_DECREF((PyObject *)__pyx_v_self->_free); __pyx_v_self->_free = ((struct __pyx_obj_4cuda_6cudart_cudaMemFreeNodeParams *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":10378 * self._alloc = cudaMemAllocNodeParamsV2(_ptr=&self._ptr[0].alloc) * self._free = cudaMemFreeNodeParams(_ptr=&self._ptr[0].free) * self._conditional = cudaConditionalNodeParams(_ptr=&self._ptr[0].conditional) # <<<<<<<<<<<<<< * def __dealloc__(self): * if self._val_ptr is not NULL: */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10378, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).conditional))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10378, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_ptr, __pyx_t_1) < 0) __PYX_ERR(0, 10378, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaConditionalNodeParams), __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10378, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GIVEREF(__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_6cudart_cudaConditionalNodeParams *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":10366 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._kernel = cudaKernelNodeParamsV2(_ptr=&self._ptr[0].kernel) * self._memcpy = cudaMemcpyNodeParams(_ptr=&self._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.cudart.cudaGraphNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10379 * self._free = cudaMemFreeNodeParams(_ptr=&self._ptr[0].free) * self._conditional = cudaConditionalNodeParams(_ptr=&self._ptr[0].conditional) * def __dealloc__(self): # <<<<<<<<<<<<<< * if self._val_ptr is not NULL: * free(self._val_ptr) */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_19cudaGraphNodeParams_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_4__dealloc__(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 10379, 0, __PYX_ERR(0, 10379, __pyx_L1_error)); /* "cuda/cudart.pyx":10380 * self._conditional = cudaConditionalNodeParams(_ptr=&self._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/cudart.pyx":10381 * def __dealloc__(self): * if self._val_ptr is not NULL: * free(self._val_ptr) # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ free(__pyx_v_self->_val_ptr); /* "cuda/cudart.pyx":10380 * self._conditional = cudaConditionalNodeParams(_ptr=&self._ptr[0].conditional) * def __dealloc__(self): * if self._val_ptr is not NULL: # <<<<<<<<<<<<<< * free(self._val_ptr) * def getPtr(self): */ } /* "cuda/cudart.pyx":10379 * self._free = cudaMemFreeNodeParams(_ptr=&self._ptr[0].free) * self._conditional = cudaConditionalNodeParams(_ptr=&self._ptr[0].conditional) * def __dealloc__(self): # <<<<<<<<<<<<<< * if self._val_ptr is not NULL: * free(self._val_ptr) */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaGraphNodeParams.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":10382 * if self._val_ptr is not NULL: * free(self._val_ptr) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_19cudaGraphNodeParams_6getPtr, "cudaGraphNodeParams.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_19cudaGraphNodeParams_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_19cudaGraphNodeParams_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__248) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 10382, 0, __PYX_ERR(0, 10382, __pyx_L1_error)); /* "cuda/cudart.pyx":10383 * free(self._val_ptr) * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10383, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":10382 * if self._val_ptr is not NULL: * free(self._val_ptr) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10384 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_19cudaGraphNodeParams_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_9genexpr64__pyx_v_line = NULL; PyObject *__pyx_9genexpr65__pyx_v_line = NULL; PyObject *__pyx_9genexpr66__pyx_v_line = NULL; PyObject *__pyx_9genexpr67__pyx_v_line = NULL; PyObject *__pyx_9genexpr68__pyx_v_line = NULL; PyObject *__pyx_9genexpr69__pyx_v_line = NULL; PyObject *__pyx_9genexpr70__pyx_v_line = NULL; PyObject *__pyx_9genexpr71__pyx_v_line = NULL; PyObject *__pyx_9genexpr72__pyx_v_line = NULL; PyObject *__pyx_9genexpr73__pyx_v_line = NULL; PyObject *__pyx_9genexpr74__pyx_v_line = NULL; PyObject *__pyx_9genexpr75__pyx_v_line = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 10384, 0, __PYX_ERR(0, 10384, __pyx_L1_error)); /* "cuda/cudart.pyx":10385 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":10386 * def __repr__(self): * if self._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, 10386, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":10387 * if self._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/cudart.pyx":10388 * str_list = [] * try: * str_list += ['type : ' + str(self.type)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['type : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_type_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10388, __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, 10388, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_type, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10388, __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, 10388, __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)) __PYX_ERR(0, 10388, __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, 10388, __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/cudart.pyx":10387 * if self._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/cudart.pyx":10389 * try: * str_list += ['type : ' + str(self.type)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['type : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 10389, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":10390 * str_list += ['type : ' + str(self.type)] * except ValueError: * str_list += ['type : '] # <<<<<<<<<<<<<< * try: * str_list += ['reserved0 : ' + str(self.reserved0)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10390, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_type_ValueError); __Pyx_GIVEREF(__pyx_kp_u_type_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_type_ValueError)) __PYX_ERR(0, 10390, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10390, __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/cudart.pyx":10387 * if self._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/cudart.pyx":10391 * except ValueError: * str_list += ['type : '] * 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/cudart.pyx":10392 * str_list += ['type : '] * try: * str_list += ['reserved0 : ' + str(self.reserved0)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['reserved0 : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_reserved0_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10392, __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, 10392, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_reserved0, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10392, __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, 10392, __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)) __PYX_ERR(0, 10392, __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, 10392, __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/cudart.pyx":10391 * except ValueError: * str_list += ['type : '] * 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/cudart.pyx":10393 * try: * str_list += ['reserved0 : ' + str(self.reserved0)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['reserved0 : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 10393, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":10394 * str_list += ['reserved0 : ' + str(self.reserved0)] * except ValueError: * str_list += ['reserved0 : '] # <<<<<<<<<<<<<< * try: * str_list += ['reserved1 : ' + str(self.reserved1)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10394, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_reserved0_ValueError); __Pyx_GIVEREF(__pyx_kp_u_reserved0_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_reserved0_ValueError)) __PYX_ERR(0, 10394, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10394, __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/cudart.pyx":10391 * except ValueError: * str_list += ['type : '] * 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/cudart.pyx":10395 * except ValueError: * str_list += ['reserved0 : '] * 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/cudart.pyx":10396 * str_list += ['reserved0 : '] * try: * str_list += ['reserved1 : ' + str(self.reserved1)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['reserved1 : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_reserved1_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10396, __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, 10396, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_reserved1, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10396, __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, 10396, __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)) __PYX_ERR(0, 10396, __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, 10396, __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/cudart.pyx":10395 * except ValueError: * str_list += ['reserved0 : '] * 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/cudart.pyx":10397 * try: * str_list += ['reserved1 : ' + str(self.reserved1)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['reserved1 : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 10397, __pyx_L22_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":10398 * str_list += ['reserved1 : ' + str(self.reserved1)] * except ValueError: * str_list += ['reserved1 : '] # <<<<<<<<<<<<<< * 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, 10398, __pyx_L22_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_reserved1_ValueError); __Pyx_GIVEREF(__pyx_kp_u_reserved1_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_reserved1_ValueError)) __PYX_ERR(0, 10398, __pyx_L22_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10398, __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/cudart.pyx":10395 * except ValueError: * str_list += ['reserved0 : '] * 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/cudart.pyx":10399 * except ValueError: * str_list += ['reserved1 : '] * 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/cudart.pyx":10400 * str_list += ['reserved1 : '] * try: * str_list += ['kernel :\n' + '\n'.join([' ' + line for line in str(self.kernel).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['kernel : '] */ { /* enter inner scope */ __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10400, __pyx_L36_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_kernel_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10400, __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, 10400, __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, 10400, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 10400, __pyx_L36_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_11); __Pyx_INCREF(__pyx_t_6); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 10400, __pyx_L36_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10400, __pyx_L36_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_9genexpr64__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr64__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10400, __pyx_L36_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 10400, __pyx_L36_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_9genexpr64__pyx_v_line); __pyx_9genexpr64__pyx_v_line = 0; goto __pyx_L40_exit_scope; __pyx_L36_error:; __Pyx_XDECREF(__pyx_9genexpr64__pyx_v_line); __pyx_9genexpr64__pyx_v_line = 0; goto __pyx_L28_error; __pyx_L40_exit_scope:; } /* exit inner scope */ __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10400, __pyx_L28_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_kernel, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10400, __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, 10400, __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)) __PYX_ERR(0, 10400, __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, 10400, __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/cudart.pyx":10399 * except ValueError: * str_list += ['reserved1 : '] * 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/cudart.pyx":10401 * try: * str_list += ['kernel :\n' + '\n'.join([' ' + line for line in str(self.kernel).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['kernel : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 10401, __pyx_L30_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":10402 * str_list += ['kernel :\n' + '\n'.join([' ' + line for line in str(self.kernel).splitlines()])] * except ValueError: * str_list += ['kernel : '] # <<<<<<<<<<<<<< * 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, 10402, __pyx_L30_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_kernel_ValueError); __Pyx_GIVEREF(__pyx_kp_u_kernel_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_kernel_ValueError)) __PYX_ERR(0, 10402, __pyx_L30_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10402, __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/cudart.pyx":10399 * except ValueError: * str_list += ['reserved1 : '] * 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/cudart.pyx":10403 * except ValueError: * str_list += ['kernel : '] * 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/cudart.pyx":10404 * str_list += ['kernel : '] * try: * str_list += ['memcpy :\n' + '\n'.join([' ' + line for line in str(self.memcpy).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['memcpy : '] */ { /* enter inner scope */ __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10404, __pyx_L51_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_memcpy_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10404, __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, 10404, __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, 10404, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 10404, __pyx_L51_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_2 = PyList_GET_ITEM(__pyx_t_8, __pyx_t_11); __Pyx_INCREF(__pyx_t_2); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 10404, __pyx_L51_error) #else __pyx_t_2 = __Pyx_PySequence_ITEM(__pyx_t_8, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10404, __pyx_L51_error) __Pyx_GOTREF(__pyx_t_2); #endif __Pyx_XDECREF_SET(__pyx_9genexpr65__pyx_v_line, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr65__pyx_v_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10404, __pyx_L51_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 10404, __pyx_L51_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_9genexpr65__pyx_v_line); __pyx_9genexpr65__pyx_v_line = 0; goto __pyx_L55_exit_scope; __pyx_L51_error:; __Pyx_XDECREF(__pyx_9genexpr65__pyx_v_line); __pyx_9genexpr65__pyx_v_line = 0; goto __pyx_L43_error; __pyx_L55_exit_scope:; } /* exit inner scope */ __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10404, __pyx_L43_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_memcpy, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10404, __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, 10404, __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)) __PYX_ERR(0, 10404, __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, 10404, __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/cudart.pyx":10403 * except ValueError: * str_list += ['kernel : '] * 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/cudart.pyx":10405 * try: * str_list += ['memcpy :\n' + '\n'.join([' ' + line for line in str(self.memcpy).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['memcpy : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 10405, __pyx_L45_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":10406 * str_list += ['memcpy :\n' + '\n'.join([' ' + line for line in str(self.memcpy).splitlines()])] * except ValueError: * str_list += ['memcpy : '] # <<<<<<<<<<<<<< * 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, 10406, __pyx_L45_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_memcpy_ValueError); __Pyx_GIVEREF(__pyx_kp_u_memcpy_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_memcpy_ValueError)) __PYX_ERR(0, 10406, __pyx_L45_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10406, __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/cudart.pyx":10403 * except ValueError: * str_list += ['kernel : '] * 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/cudart.pyx":10407 * except ValueError: * str_list += ['memcpy : '] * 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/cudart.pyx":10408 * str_list += ['memcpy : '] * try: * str_list += ['memset :\n' + '\n'.join([' ' + line for line in str(self.memset).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['memset : '] */ { /* enter inner scope */ __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10408, __pyx_L66_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_memset_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10408, __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, 10408, __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, 10408, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 10408, __pyx_L66_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_8 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_11); __Pyx_INCREF(__pyx_t_8); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 10408, __pyx_L66_error) #else __pyx_t_8 = __Pyx_PySequence_ITEM(__pyx_t_6, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10408, __pyx_L66_error) __Pyx_GOTREF(__pyx_t_8); #endif __Pyx_XDECREF_SET(__pyx_9genexpr66__pyx_v_line, __pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr66__pyx_v_line); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10408, __pyx_L66_error) __Pyx_GOTREF(__pyx_t_8); if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_8))) __PYX_ERR(0, 10408, __pyx_L66_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_9genexpr66__pyx_v_line); __pyx_9genexpr66__pyx_v_line = 0; goto __pyx_L70_exit_scope; __pyx_L66_error:; __Pyx_XDECREF(__pyx_9genexpr66__pyx_v_line); __pyx_9genexpr66__pyx_v_line = 0; goto __pyx_L58_error; __pyx_L70_exit_scope:; } /* exit inner scope */ __pyx_t_6 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10408, __pyx_L58_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_memset, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10408, __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, 10408, __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)) __PYX_ERR(0, 10408, __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, 10408, __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/cudart.pyx":10407 * except ValueError: * str_list += ['memcpy : '] * 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/cudart.pyx":10409 * try: * str_list += ['memset :\n' + '\n'.join([' ' + line for line in str(self.memset).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['memset : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 10409, __pyx_L60_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":10410 * str_list += ['memset :\n' + '\n'.join([' ' + line for line in str(self.memset).splitlines()])] * except ValueError: * str_list += ['memset : '] # <<<<<<<<<<<<<< * 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, 10410, __pyx_L60_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_memset_ValueError); __Pyx_GIVEREF(__pyx_kp_u_memset_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_memset_ValueError)) __PYX_ERR(0, 10410, __pyx_L60_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10410, __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/cudart.pyx":10407 * except ValueError: * str_list += ['memcpy : '] * 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/cudart.pyx":10411 * except ValueError: * str_list += ['memset : '] * 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/cudart.pyx":10412 * str_list += ['memset : '] * try: * str_list += ['host :\n' + '\n'.join([' ' + line for line in str(self.host).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['host : '] */ { /* enter inner scope */ __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10412, __pyx_L81_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_host_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10412, __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, 10412, __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, 10412, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 10412, __pyx_L81_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_11); __Pyx_INCREF(__pyx_t_6); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 10412, __pyx_L81_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10412, __pyx_L81_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_9genexpr67__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr67__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10412, __pyx_L81_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 10412, __pyx_L81_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_9genexpr67__pyx_v_line); __pyx_9genexpr67__pyx_v_line = 0; goto __pyx_L85_exit_scope; __pyx_L81_error:; __Pyx_XDECREF(__pyx_9genexpr67__pyx_v_line); __pyx_9genexpr67__pyx_v_line = 0; goto __pyx_L73_error; __pyx_L85_exit_scope:; } /* exit inner scope */ __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10412, __pyx_L73_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_host, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10412, __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, 10412, __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)) __PYX_ERR(0, 10412, __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, 10412, __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/cudart.pyx":10411 * except ValueError: * str_list += ['memset : '] * 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/cudart.pyx":10413 * try: * str_list += ['host :\n' + '\n'.join([' ' + line for line in str(self.host).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['host : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 10413, __pyx_L75_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":10414 * str_list += ['host :\n' + '\n'.join([' ' + line for line in str(self.host).splitlines()])] * except ValueError: * str_list += ['host : '] # <<<<<<<<<<<<<< * 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, 10414, __pyx_L75_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_host_ValueError); __Pyx_GIVEREF(__pyx_kp_u_host_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_host_ValueError)) __PYX_ERR(0, 10414, __pyx_L75_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10414, __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/cudart.pyx":10411 * except ValueError: * str_list += ['memset : '] * 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/cudart.pyx":10415 * except ValueError: * str_list += ['host : '] * 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/cudart.pyx":10416 * str_list += ['host : '] * try: * str_list += ['graph :\n' + '\n'.join([' ' + line for line in str(self.graph).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['graph : '] */ { /* enter inner scope */ __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10416, __pyx_L96_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_graph_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10416, __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, 10416, __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, 10416, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 10416, __pyx_L96_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_2 = PyList_GET_ITEM(__pyx_t_8, __pyx_t_11); __Pyx_INCREF(__pyx_t_2); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 10416, __pyx_L96_error) #else __pyx_t_2 = __Pyx_PySequence_ITEM(__pyx_t_8, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10416, __pyx_L96_error) __Pyx_GOTREF(__pyx_t_2); #endif __Pyx_XDECREF_SET(__pyx_9genexpr68__pyx_v_line, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr68__pyx_v_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10416, __pyx_L96_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 10416, __pyx_L96_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_9genexpr68__pyx_v_line); __pyx_9genexpr68__pyx_v_line = 0; goto __pyx_L100_exit_scope; __pyx_L96_error:; __Pyx_XDECREF(__pyx_9genexpr68__pyx_v_line); __pyx_9genexpr68__pyx_v_line = 0; goto __pyx_L88_error; __pyx_L100_exit_scope:; } /* exit inner scope */ __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10416, __pyx_L88_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_graph_3, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10416, __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, 10416, __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)) __PYX_ERR(0, 10416, __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, 10416, __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/cudart.pyx":10415 * except ValueError: * str_list += ['host : '] * 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/cudart.pyx":10417 * try: * str_list += ['graph :\n' + '\n'.join([' ' + line for line in str(self.graph).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['graph : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 10417, __pyx_L90_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":10418 * str_list += ['graph :\n' + '\n'.join([' ' + line for line in str(self.graph).splitlines()])] * except ValueError: * str_list += ['graph : '] # <<<<<<<<<<<<<< * 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, 10418, __pyx_L90_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_graph_ValueError); __Pyx_GIVEREF(__pyx_kp_u_graph_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_graph_ValueError)) __PYX_ERR(0, 10418, __pyx_L90_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10418, __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/cudart.pyx":10415 * except ValueError: * str_list += ['host : '] * 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/cudart.pyx":10419 * except ValueError: * str_list += ['graph : '] * 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/cudart.pyx":10420 * str_list += ['graph : '] * try: * str_list += ['eventWait :\n' + '\n'.join([' ' + line for line in str(self.eventWait).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['eventWait : '] */ { /* enter inner scope */ __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10420, __pyx_L111_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_eventWait_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10420, __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, 10420, __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, 10420, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 10420, __pyx_L111_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_8 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_11); __Pyx_INCREF(__pyx_t_8); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 10420, __pyx_L111_error) #else __pyx_t_8 = __Pyx_PySequence_ITEM(__pyx_t_6, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10420, __pyx_L111_error) __Pyx_GOTREF(__pyx_t_8); #endif __Pyx_XDECREF_SET(__pyx_9genexpr69__pyx_v_line, __pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr69__pyx_v_line); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10420, __pyx_L111_error) __Pyx_GOTREF(__pyx_t_8); if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_8))) __PYX_ERR(0, 10420, __pyx_L111_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_9genexpr69__pyx_v_line); __pyx_9genexpr69__pyx_v_line = 0; goto __pyx_L115_exit_scope; __pyx_L111_error:; __Pyx_XDECREF(__pyx_9genexpr69__pyx_v_line); __pyx_9genexpr69__pyx_v_line = 0; goto __pyx_L103_error; __pyx_L115_exit_scope:; } /* exit inner scope */ __pyx_t_6 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10420, __pyx_L103_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_eventWait, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10420, __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, 10420, __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)) __PYX_ERR(0, 10420, __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, 10420, __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/cudart.pyx":10419 * except ValueError: * str_list += ['graph : '] * 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/cudart.pyx":10421 * try: * str_list += ['eventWait :\n' + '\n'.join([' ' + line for line in str(self.eventWait).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['eventWait : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 10421, __pyx_L105_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":10422 * str_list += ['eventWait :\n' + '\n'.join([' ' + line for line in str(self.eventWait).splitlines()])] * except ValueError: * str_list += ['eventWait : '] # <<<<<<<<<<<<<< * 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, 10422, __pyx_L105_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_eventWait_ValueError); __Pyx_GIVEREF(__pyx_kp_u_eventWait_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_eventWait_ValueError)) __PYX_ERR(0, 10422, __pyx_L105_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10422, __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/cudart.pyx":10419 * except ValueError: * str_list += ['graph : '] * 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/cudart.pyx":10423 * except ValueError: * str_list += ['eventWait : '] * 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/cudart.pyx":10424 * str_list += ['eventWait : '] * try: * str_list += ['eventRecord :\n' + '\n'.join([' ' + line for line in str(self.eventRecord).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['eventRecord : '] */ { /* enter inner scope */ __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10424, __pyx_L126_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_eventRecord_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10424, __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, 10424, __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, 10424, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 10424, __pyx_L126_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_11); __Pyx_INCREF(__pyx_t_6); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 10424, __pyx_L126_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10424, __pyx_L126_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_9genexpr70__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr70__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10424, __pyx_L126_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 10424, __pyx_L126_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_9genexpr70__pyx_v_line); __pyx_9genexpr70__pyx_v_line = 0; goto __pyx_L130_exit_scope; __pyx_L126_error:; __Pyx_XDECREF(__pyx_9genexpr70__pyx_v_line); __pyx_9genexpr70__pyx_v_line = 0; goto __pyx_L118_error; __pyx_L130_exit_scope:; } /* exit inner scope */ __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10424, __pyx_L118_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_eventRecord, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10424, __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, 10424, __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)) __PYX_ERR(0, 10424, __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, 10424, __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/cudart.pyx":10423 * except ValueError: * str_list += ['eventWait : '] * 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/cudart.pyx":10425 * try: * str_list += ['eventRecord :\n' + '\n'.join([' ' + line for line in str(self.eventRecord).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['eventRecord : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 10425, __pyx_L120_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":10426 * str_list += ['eventRecord :\n' + '\n'.join([' ' + line for line in str(self.eventRecord).splitlines()])] * except ValueError: * str_list += ['eventRecord : '] # <<<<<<<<<<<<<< * 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, 10426, __pyx_L120_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_eventRecord_ValueError); __Pyx_GIVEREF(__pyx_kp_u_eventRecord_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_eventRecord_ValueError)) __PYX_ERR(0, 10426, __pyx_L120_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10426, __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/cudart.pyx":10423 * except ValueError: * str_list += ['eventWait : '] * 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/cudart.pyx":10427 * except ValueError: * str_list += ['eventRecord : '] * 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/cudart.pyx":10428 * str_list += ['eventRecord : '] * try: * str_list += ['extSemSignal :\n' + '\n'.join([' ' + line for line in str(self.extSemSignal).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['extSemSignal : '] */ { /* enter inner scope */ __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10428, __pyx_L141_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_extSemSignal_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10428, __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, 10428, __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, 10428, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 10428, __pyx_L141_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_2 = PyList_GET_ITEM(__pyx_t_8, __pyx_t_11); __Pyx_INCREF(__pyx_t_2); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 10428, __pyx_L141_error) #else __pyx_t_2 = __Pyx_PySequence_ITEM(__pyx_t_8, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10428, __pyx_L141_error) __Pyx_GOTREF(__pyx_t_2); #endif __Pyx_XDECREF_SET(__pyx_9genexpr71__pyx_v_line, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr71__pyx_v_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10428, __pyx_L141_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 10428, __pyx_L141_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_9genexpr71__pyx_v_line); __pyx_9genexpr71__pyx_v_line = 0; goto __pyx_L145_exit_scope; __pyx_L141_error:; __Pyx_XDECREF(__pyx_9genexpr71__pyx_v_line); __pyx_9genexpr71__pyx_v_line = 0; goto __pyx_L133_error; __pyx_L145_exit_scope:; } /* exit inner scope */ __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10428, __pyx_L133_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_extSemSignal, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10428, __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, 10428, __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)) __PYX_ERR(0, 10428, __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, 10428, __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/cudart.pyx":10427 * except ValueError: * str_list += ['eventRecord : '] * 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/cudart.pyx":10429 * try: * str_list += ['extSemSignal :\n' + '\n'.join([' ' + line for line in str(self.extSemSignal).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['extSemSignal : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 10429, __pyx_L135_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":10430 * str_list += ['extSemSignal :\n' + '\n'.join([' ' + line for line in str(self.extSemSignal).splitlines()])] * except ValueError: * str_list += ['extSemSignal : '] # <<<<<<<<<<<<<< * 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, 10430, __pyx_L135_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_extSemSignal_ValueError); __Pyx_GIVEREF(__pyx_kp_u_extSemSignal_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_extSemSignal_ValueError)) __PYX_ERR(0, 10430, __pyx_L135_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10430, __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/cudart.pyx":10427 * except ValueError: * str_list += ['eventRecord : '] * 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/cudart.pyx":10431 * except ValueError: * str_list += ['extSemSignal : '] * 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/cudart.pyx":10432 * str_list += ['extSemSignal : '] * try: * str_list += ['extSemWait :\n' + '\n'.join([' ' + line for line in str(self.extSemWait).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['extSemWait : '] */ { /* enter inner scope */ __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10432, __pyx_L156_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_extSemWait_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10432, __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, 10432, __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, 10432, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 10432, __pyx_L156_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_8 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_11); __Pyx_INCREF(__pyx_t_8); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 10432, __pyx_L156_error) #else __pyx_t_8 = __Pyx_PySequence_ITEM(__pyx_t_6, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10432, __pyx_L156_error) __Pyx_GOTREF(__pyx_t_8); #endif __Pyx_XDECREF_SET(__pyx_9genexpr72__pyx_v_line, __pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr72__pyx_v_line); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10432, __pyx_L156_error) __Pyx_GOTREF(__pyx_t_8); if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_8))) __PYX_ERR(0, 10432, __pyx_L156_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_9genexpr72__pyx_v_line); __pyx_9genexpr72__pyx_v_line = 0; goto __pyx_L160_exit_scope; __pyx_L156_error:; __Pyx_XDECREF(__pyx_9genexpr72__pyx_v_line); __pyx_9genexpr72__pyx_v_line = 0; goto __pyx_L148_error; __pyx_L160_exit_scope:; } /* exit inner scope */ __pyx_t_6 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10432, __pyx_L148_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_extSemWait, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10432, __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, 10432, __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)) __PYX_ERR(0, 10432, __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, 10432, __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/cudart.pyx":10431 * except ValueError: * str_list += ['extSemSignal : '] * 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/cudart.pyx":10433 * try: * str_list += ['extSemWait :\n' + '\n'.join([' ' + line for line in str(self.extSemWait).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['extSemWait : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 10433, __pyx_L150_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":10434 * str_list += ['extSemWait :\n' + '\n'.join([' ' + line for line in str(self.extSemWait).splitlines()])] * except ValueError: * str_list += ['extSemWait : '] # <<<<<<<<<<<<<< * 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, 10434, __pyx_L150_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_extSemWait_ValueError); __Pyx_GIVEREF(__pyx_kp_u_extSemWait_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_extSemWait_ValueError)) __PYX_ERR(0, 10434, __pyx_L150_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10434, __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/cudart.pyx":10431 * except ValueError: * str_list += ['extSemSignal : '] * 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/cudart.pyx":10435 * except ValueError: * str_list += ['extSemWait : '] * 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/cudart.pyx":10436 * str_list += ['extSemWait : '] * try: * str_list += ['alloc :\n' + '\n'.join([' ' + line for line in str(self.alloc).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['alloc : '] */ { /* enter inner scope */ __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10436, __pyx_L171_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_alloc_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10436, __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, 10436, __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, 10436, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 10436, __pyx_L171_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_11); __Pyx_INCREF(__pyx_t_6); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 10436, __pyx_L171_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10436, __pyx_L171_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_9genexpr73__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr73__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10436, __pyx_L171_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 10436, __pyx_L171_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_9genexpr73__pyx_v_line); __pyx_9genexpr73__pyx_v_line = 0; goto __pyx_L175_exit_scope; __pyx_L171_error:; __Pyx_XDECREF(__pyx_9genexpr73__pyx_v_line); __pyx_9genexpr73__pyx_v_line = 0; goto __pyx_L163_error; __pyx_L175_exit_scope:; } /* exit inner scope */ __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10436, __pyx_L163_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_alloc, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10436, __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, 10436, __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)) __PYX_ERR(0, 10436, __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, 10436, __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/cudart.pyx":10435 * except ValueError: * str_list += ['extSemWait : '] * 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/cudart.pyx":10437 * try: * str_list += ['alloc :\n' + '\n'.join([' ' + line for line in str(self.alloc).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['alloc : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 10437, __pyx_L165_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":10438 * str_list += ['alloc :\n' + '\n'.join([' ' + line for line in str(self.alloc).splitlines()])] * except ValueError: * str_list += ['alloc : '] # <<<<<<<<<<<<<< * 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, 10438, __pyx_L165_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_alloc_ValueError); __Pyx_GIVEREF(__pyx_kp_u_alloc_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_alloc_ValueError)) __PYX_ERR(0, 10438, __pyx_L165_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10438, __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/cudart.pyx":10435 * except ValueError: * str_list += ['extSemWait : '] * 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/cudart.pyx":10439 * except ValueError: * str_list += ['alloc : '] * 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/cudart.pyx":10440 * str_list += ['alloc : '] * try: * str_list += ['free :\n' + '\n'.join([' ' + line for line in str(self.free).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['free : '] */ { /* enter inner scope */ __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10440, __pyx_L186_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_free_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10440, __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, 10440, __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, 10440, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 10440, __pyx_L186_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_2 = PyList_GET_ITEM(__pyx_t_8, __pyx_t_11); __Pyx_INCREF(__pyx_t_2); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 10440, __pyx_L186_error) #else __pyx_t_2 = __Pyx_PySequence_ITEM(__pyx_t_8, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10440, __pyx_L186_error) __Pyx_GOTREF(__pyx_t_2); #endif __Pyx_XDECREF_SET(__pyx_9genexpr74__pyx_v_line, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr74__pyx_v_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10440, __pyx_L186_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 10440, __pyx_L186_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_9genexpr74__pyx_v_line); __pyx_9genexpr74__pyx_v_line = 0; goto __pyx_L190_exit_scope; __pyx_L186_error:; __Pyx_XDECREF(__pyx_9genexpr74__pyx_v_line); __pyx_9genexpr74__pyx_v_line = 0; goto __pyx_L178_error; __pyx_L190_exit_scope:; } /* exit inner scope */ __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10440, __pyx_L178_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_free, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10440, __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, 10440, __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)) __PYX_ERR(0, 10440, __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, 10440, __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/cudart.pyx":10439 * except ValueError: * str_list += ['alloc : '] * 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/cudart.pyx":10441 * try: * str_list += ['free :\n' + '\n'.join([' ' + line for line in str(self.free).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['free : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 10441, __pyx_L180_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":10442 * str_list += ['free :\n' + '\n'.join([' ' + line for line in str(self.free).splitlines()])] * except ValueError: * str_list += ['free : '] # <<<<<<<<<<<<<< * 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, 10442, __pyx_L180_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_free_ValueError); __Pyx_GIVEREF(__pyx_kp_u_free_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_free_ValueError)) __PYX_ERR(0, 10442, __pyx_L180_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10442, __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/cudart.pyx":10439 * except ValueError: * str_list += ['alloc : '] * 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/cudart.pyx":10443 * except ValueError: * str_list += ['free : '] * 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/cudart.pyx":10444 * str_list += ['free : '] * try: * str_list += ['conditional :\n' + '\n'.join([' ' + line for line in str(self.conditional).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['conditional : '] */ { /* enter inner scope */ __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10444, __pyx_L201_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_conditional_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10444, __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, 10444, __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, 10444, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 10444, __pyx_L201_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_8 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_11); __Pyx_INCREF(__pyx_t_8); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 10444, __pyx_L201_error) #else __pyx_t_8 = __Pyx_PySequence_ITEM(__pyx_t_6, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10444, __pyx_L201_error) __Pyx_GOTREF(__pyx_t_8); #endif __Pyx_XDECREF_SET(__pyx_9genexpr75__pyx_v_line, __pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr75__pyx_v_line); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10444, __pyx_L201_error) __Pyx_GOTREF(__pyx_t_8); if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_8))) __PYX_ERR(0, 10444, __pyx_L201_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_9genexpr75__pyx_v_line); __pyx_9genexpr75__pyx_v_line = 0; goto __pyx_L205_exit_scope; __pyx_L201_error:; __Pyx_XDECREF(__pyx_9genexpr75__pyx_v_line); __pyx_9genexpr75__pyx_v_line = 0; goto __pyx_L193_error; __pyx_L205_exit_scope:; } /* exit inner scope */ __pyx_t_6 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10444, __pyx_L193_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_conditional, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10444, __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, 10444, __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)) __PYX_ERR(0, 10444, __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, 10444, __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/cudart.pyx":10443 * except ValueError: * str_list += ['free : '] * 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/cudart.pyx":10445 * try: * str_list += ['conditional :\n' + '\n'.join([' ' + line for line in str(self.conditional).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['conditional : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 10445, __pyx_L195_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":10446 * str_list += ['conditional :\n' + '\n'.join([' ' + line for line in str(self.conditional).splitlines()])] * except ValueError: * str_list += ['conditional : '] # <<<<<<<<<<<<<< * try: * str_list += ['reserved2 : ' + str(self.reserved2)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10446, __pyx_L195_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_conditional_ValueError); __Pyx_GIVEREF(__pyx_kp_u_conditional_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_conditional_ValueError)) __PYX_ERR(0, 10446, __pyx_L195_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10446, __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/cudart.pyx":10443 * except ValueError: * str_list += ['free : '] * 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/cudart.pyx":10447 * except ValueError: * str_list += ['conditional : '] * 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/cudart.pyx":10448 * str_list += ['conditional : '] * try: * str_list += ['reserved2 : ' + str(self.reserved2)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['reserved2 : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_reserved2_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10448, __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, 10448, __pyx_L208_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_reserved2, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10448, __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, 10448, __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)) __PYX_ERR(0, 10448, __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, 10448, __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/cudart.pyx":10447 * except ValueError: * str_list += ['conditional : '] * 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/cudart.pyx":10449 * try: * str_list += ['reserved2 : ' + str(self.reserved2)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['reserved2 : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 10449, __pyx_L210_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":10450 * str_list += ['reserved2 : ' + str(self.reserved2)] * except ValueError: * str_list += ['reserved2 : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10450, __pyx_L210_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_reserved2_ValueError); __Pyx_GIVEREF(__pyx_kp_u_reserved2_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_reserved2_ValueError)) __PYX_ERR(0, 10450, __pyx_L210_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10450, __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/cudart.pyx":10447 * except ValueError: * str_list += ['conditional : '] * 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/cudart.pyx":10451 * except ValueError: * str_list += ['reserved2 : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10451, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":10385 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":10453 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def type(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":10384 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XDECREF(__pyx_9genexpr64__pyx_v_line); __Pyx_XDECREF(__pyx_9genexpr65__pyx_v_line); __Pyx_XDECREF(__pyx_9genexpr66__pyx_v_line); __Pyx_XDECREF(__pyx_9genexpr67__pyx_v_line); __Pyx_XDECREF(__pyx_9genexpr68__pyx_v_line); __Pyx_XDECREF(__pyx_9genexpr69__pyx_v_line); __Pyx_XDECREF(__pyx_9genexpr70__pyx_v_line); __Pyx_XDECREF(__pyx_9genexpr71__pyx_v_line); __Pyx_XDECREF(__pyx_9genexpr72__pyx_v_line); __Pyx_XDECREF(__pyx_9genexpr73__pyx_v_line); __Pyx_XDECREF(__pyx_9genexpr74__pyx_v_line); __Pyx_XDECREF(__pyx_9genexpr75__pyx_v_line); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10454 * else: * return '' * @property # <<<<<<<<<<<<<< * def type(self): * return cudaGraphNodeType(self._ptr[0].type) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_4type_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_19cudaGraphNodeParams_4type___get__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_4type___get__(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10454, 0, __PYX_ERR(0, 10454, __pyx_L1_error)); /* "cuda/cudart.pyx":10456 * @property * def type(self): * return cudaGraphNodeType(self._ptr[0].type) # <<<<<<<<<<<<<< * @type.setter * def type(self, type not None : cudaGraphNodeType): */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaGraphNodeType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10456, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaGraphNodeType((__pyx_v_self->_ptr[0]).type); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10456, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10456, __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/cudart.pyx":10454 * else: * return '' * @property # <<<<<<<<<<<<<< * def type(self): * return cudaGraphNodeType(self._ptr[0].type) */ /* 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.cudart.cudaGraphNodeParams.type.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10457 * def type(self): * return cudaGraphNodeType(self._ptr[0].type) * @type.setter # <<<<<<<<<<<<<< * def type(self, type not None : cudaGraphNodeType): * self._ptr[0].type = type.value */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_4type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_type); /*proto*/ static int __pyx_pw_4cuda_6cudart_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, 10458, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_4type_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_type)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_4type_2__set__(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self, PyObject *__pyx_v_type) { int __pyx_r; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 10457, 0, __PYX_ERR(0, 10457, __pyx_L1_error)); /* "cuda/cudart.pyx":10459 * @type.setter * def type(self, type not None : cudaGraphNodeType): * self._ptr[0].type = type.value # <<<<<<<<<<<<<< * @property * def reserved0(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_type, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10459, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaGraphNodeType)__Pyx_PyInt_As_enum__cudaGraphNodeType(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 10459, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).type = __pyx_t_2; /* "cuda/cudart.pyx":10457 * def type(self): * return cudaGraphNodeType(self._ptr[0].type) * @type.setter # <<<<<<<<<<<<<< * def type(self, type not None : cudaGraphNodeType): * self._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.cudart.cudaGraphNodeParams.type.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10460 * def type(self, type not None : cudaGraphNodeType): * self._ptr[0].type = type.value * @property # <<<<<<<<<<<<<< * def reserved0(self): * return self._ptr[0].reserved0 */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_9reserved0_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_19cudaGraphNodeParams_9reserved0___get__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_9reserved0___get__(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10460, 0, __PYX_ERR(0, 10460, __pyx_L1_error)); /* "cuda/cudart.pyx":10462 * @property * def reserved0(self): * return self._ptr[0].reserved0 # <<<<<<<<<<<<<< * @reserved0.setter * def reserved0(self, reserved0): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_ptr[0]).reserved0, 3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10462, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":10460 * def type(self, type not None : cudaGraphNodeType): * self._ptr[0].type = type.value * @property # <<<<<<<<<<<<<< * def reserved0(self): * return self._ptr[0].reserved0 */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.reserved0.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10463 * def reserved0(self): * return self._ptr[0].reserved0 * @reserved0.setter # <<<<<<<<<<<<<< * def reserved0(self, reserved0): * self._ptr[0].reserved0 = reserved0 */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_9reserved0_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved0); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_19cudaGraphNodeParams_9reserved0_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_reserved0)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_9reserved0_2__set__(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self, PyObject *__pyx_v_reserved0) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1[3]; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 10463, 0, __PYX_ERR(0, 10463, __pyx_L1_error)); /* "cuda/cudart.pyx":10465 * @reserved0.setter * def reserved0(self, reserved0): * self._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, 10465, __pyx_L1_error) memcpy(&((__pyx_v_self->_ptr[0]).reserved0[0]), __pyx_t_1, sizeof((__pyx_v_self->_ptr[0]).reserved0[0]) * (3)); /* "cuda/cudart.pyx":10463 * def reserved0(self): * return self._ptr[0].reserved0 * @reserved0.setter # <<<<<<<<<<<<<< * def reserved0(self, reserved0): * self._ptr[0].reserved0 = reserved0 */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.reserved0.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":10466 * def reserved0(self, reserved0): * self._ptr[0].reserved0 = reserved0 * @property # <<<<<<<<<<<<<< * def reserved1(self): * return self._ptr[0].reserved1 */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_9reserved1_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_19cudaGraphNodeParams_9reserved1___get__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_9reserved1___get__(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10466, 0, __PYX_ERR(0, 10466, __pyx_L1_error)); /* "cuda/cudart.pyx":10468 * @property * def reserved1(self): * return self._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->_ptr[0]).reserved1, 29); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10468, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":10466 * def reserved0(self, reserved0): * self._ptr[0].reserved0 = reserved0 * @property # <<<<<<<<<<<<<< * def reserved1(self): * return self._ptr[0].reserved1 */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.reserved1.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10469 * def reserved1(self): * return self._ptr[0].reserved1 * @reserved1.setter # <<<<<<<<<<<<<< * def reserved1(self, reserved1): * self._ptr[0].reserved1 = reserved1 */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_9reserved1_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved1); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_19cudaGraphNodeParams_9reserved1_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_reserved1)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_9reserved1_2__set__(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self, PyObject *__pyx_v_reserved1) { int __pyx_r; __Pyx_TraceDeclarations PY_LONG_LONG __pyx_t_1[29]; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 10469, 0, __PYX_ERR(0, 10469, __pyx_L1_error)); /* "cuda/cudart.pyx":10471 * @reserved1.setter * def reserved1(self, reserved1): * self._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, 10471, __pyx_L1_error) memcpy(&((__pyx_v_self->_ptr[0]).reserved1[0]), __pyx_t_1, sizeof((__pyx_v_self->_ptr[0]).reserved1[0]) * (29)); /* "cuda/cudart.pyx":10469 * def reserved1(self): * return self._ptr[0].reserved1 * @reserved1.setter # <<<<<<<<<<<<<< * def reserved1(self, reserved1): * self._ptr[0].reserved1 = reserved1 */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.reserved1.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":10472 * def reserved1(self, reserved1): * self._ptr[0].reserved1 = reserved1 * @property # <<<<<<<<<<<<<< * def kernel(self): * return self._kernel */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_6kernel_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_19cudaGraphNodeParams_6kernel___get__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_6kernel___get__(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10472, 0, __PYX_ERR(0, 10472, __pyx_L1_error)); /* "cuda/cudart.pyx":10474 * @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/cudart.pyx":10472 * def reserved1(self, reserved1): * self._ptr[0].reserved1 = reserved1 * @property # <<<<<<<<<<<<<< * def kernel(self): * return self._kernel */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.kernel.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10475 * def kernel(self): * return self._kernel * @kernel.setter # <<<<<<<<<<<<<< * def kernel(self, kernel not None : cudaKernelNodeParamsV2): * string.memcpy(&self._ptr[0].kernel, kernel.getPtr(), sizeof(self._ptr[0].kernel)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_6kernel_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_kernel); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_cudaKernelNodeParamsV2, 0, "kernel", 0))) __PYX_ERR(0, 10476, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_6kernel_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *)__pyx_v_kernel)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_6kernel_2__set__(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *__pyx_v_kernel) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 10475, 0, __PYX_ERR(0, 10475, __pyx_L1_error)); /* "cuda/cudart.pyx":10477 * @kernel.setter * def kernel(self, kernel not None : cudaKernelNodeParamsV2): * string.memcpy(&self._ptr[0].kernel, kernel.getPtr(), sizeof(self._ptr[0].kernel)) # <<<<<<<<<<<<<< * @property * def memcpy(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_kernel), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10477, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10477, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10477, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).kernel), ((struct cudaKernelNodeParamsV2 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).kernel)))); /* "cuda/cudart.pyx":10475 * def kernel(self): * return self._kernel * @kernel.setter # <<<<<<<<<<<<<< * def kernel(self, kernel not None : cudaKernelNodeParamsV2): * string.memcpy(&self._ptr[0].kernel, kernel.getPtr(), sizeof(self._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_AddTraceback("cuda.cudart.cudaGraphNodeParams.kernel.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10478 * def kernel(self, kernel not None : cudaKernelNodeParamsV2): * string.memcpy(&self._ptr[0].kernel, kernel.getPtr(), sizeof(self._ptr[0].kernel)) * @property # <<<<<<<<<<<<<< * def memcpy(self): * return self._memcpy */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_6memcpy_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_19cudaGraphNodeParams_6memcpy___get__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_6memcpy___get__(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10478, 0, __PYX_ERR(0, 10478, __pyx_L1_error)); /* "cuda/cudart.pyx":10480 * @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/cudart.pyx":10478 * def kernel(self, kernel not None : cudaKernelNodeParamsV2): * string.memcpy(&self._ptr[0].kernel, kernel.getPtr(), sizeof(self._ptr[0].kernel)) * @property # <<<<<<<<<<<<<< * def memcpy(self): * return self._memcpy */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.memcpy.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10481 * def memcpy(self): * return self._memcpy * @memcpy.setter # <<<<<<<<<<<<<< * def memcpy(self, memcpy not None : cudaMemcpyNodeParams): * string.memcpy(&self._ptr[0].memcpy, memcpy.getPtr(), sizeof(self._ptr[0].memcpy)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_6memcpy_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_memcpy); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_cudaMemcpyNodeParams, 0, "memcpy", 0))) __PYX_ERR(0, 10482, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_6memcpy_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *)__pyx_v_memcpy)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_6memcpy_2__set__(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *__pyx_v_memcpy) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 10481, 0, __PYX_ERR(0, 10481, __pyx_L1_error)); /* "cuda/cudart.pyx":10483 * @memcpy.setter * def memcpy(self, memcpy not None : cudaMemcpyNodeParams): * string.memcpy(&self._ptr[0].memcpy, memcpy.getPtr(), sizeof(self._ptr[0].memcpy)) # <<<<<<<<<<<<<< * @property * def memset(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_memcpy), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10483, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10483, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10483, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).memcpy), ((struct cudaMemcpyNodeParams *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).memcpy)))); /* "cuda/cudart.pyx":10481 * def memcpy(self): * return self._memcpy * @memcpy.setter # <<<<<<<<<<<<<< * def memcpy(self, memcpy not None : cudaMemcpyNodeParams): * string.memcpy(&self._ptr[0].memcpy, memcpy.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.memcpy.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10484 * def memcpy(self, memcpy not None : cudaMemcpyNodeParams): * string.memcpy(&self._ptr[0].memcpy, memcpy.getPtr(), sizeof(self._ptr[0].memcpy)) * @property # <<<<<<<<<<<<<< * def memset(self): * return self._memset */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_6memset_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_19cudaGraphNodeParams_6memset___get__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_6memset___get__(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10484, 0, __PYX_ERR(0, 10484, __pyx_L1_error)); /* "cuda/cudart.pyx":10486 * @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/cudart.pyx":10484 * def memcpy(self, memcpy not None : cudaMemcpyNodeParams): * string.memcpy(&self._ptr[0].memcpy, memcpy.getPtr(), sizeof(self._ptr[0].memcpy)) * @property # <<<<<<<<<<<<<< * def memset(self): * return self._memset */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.memset.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10487 * def memset(self): * return self._memset * @memset.setter # <<<<<<<<<<<<<< * def memset(self, memset not None : cudaMemsetParamsV2): * string.memcpy(&self._ptr[0].memset, memset.getPtr(), sizeof(self._ptr[0].memset)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_6memset_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_memset); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_cudaMemsetParamsV2, 0, "memset", 0))) __PYX_ERR(0, 10488, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_6memset_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *)__pyx_v_memset)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_6memset_2__set__(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *__pyx_v_memset) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 10487, 0, __PYX_ERR(0, 10487, __pyx_L1_error)); /* "cuda/cudart.pyx":10489 * @memset.setter * def memset(self, memset not None : cudaMemsetParamsV2): * string.memcpy(&self._ptr[0].memset, memset.getPtr(), sizeof(self._ptr[0].memset)) # <<<<<<<<<<<<<< * @property * def host(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_memset), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10489, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10489, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10489, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).memset), ((struct cudaMemsetParamsV2 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).memset)))); /* "cuda/cudart.pyx":10487 * def memset(self): * return self._memset * @memset.setter # <<<<<<<<<<<<<< * def memset(self, memset not None : cudaMemsetParamsV2): * string.memcpy(&self._ptr[0].memset, memset.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.memset.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10490 * def memset(self, memset not None : cudaMemsetParamsV2): * string.memcpy(&self._ptr[0].memset, memset.getPtr(), sizeof(self._ptr[0].memset)) * @property # <<<<<<<<<<<<<< * def host(self): * return self._host */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_4host_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_19cudaGraphNodeParams_4host___get__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_4host___get__(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10490, 0, __PYX_ERR(0, 10490, __pyx_L1_error)); /* "cuda/cudart.pyx":10492 * @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/cudart.pyx":10490 * def memset(self, memset not None : cudaMemsetParamsV2): * string.memcpy(&self._ptr[0].memset, memset.getPtr(), sizeof(self._ptr[0].memset)) * @property # <<<<<<<<<<<<<< * def host(self): * return self._host */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.host.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10493 * def host(self): * return self._host * @host.setter # <<<<<<<<<<<<<< * def host(self, host not None : cudaHostNodeParamsV2): * string.memcpy(&self._ptr[0].host, host.getPtr(), sizeof(self._ptr[0].host)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_4host_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_host); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_cudaHostNodeParamsV2, 0, "host", 0))) __PYX_ERR(0, 10494, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_4host_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2 *)__pyx_v_host)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_4host_2__set__(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2 *__pyx_v_host) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 10493, 0, __PYX_ERR(0, 10493, __pyx_L1_error)); /* "cuda/cudart.pyx":10495 * @host.setter * def host(self, host not None : cudaHostNodeParamsV2): * string.memcpy(&self._ptr[0].host, host.getPtr(), sizeof(self._ptr[0].host)) # <<<<<<<<<<<<<< * @property * def graph(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_host), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10495, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10495, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10495, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).host), ((struct cudaHostNodeParamsV2 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).host)))); /* "cuda/cudart.pyx":10493 * def host(self): * return self._host * @host.setter # <<<<<<<<<<<<<< * def host(self, host not None : cudaHostNodeParamsV2): * string.memcpy(&self._ptr[0].host, host.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.host.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10496 * def host(self, host not None : cudaHostNodeParamsV2): * string.memcpy(&self._ptr[0].host, host.getPtr(), sizeof(self._ptr[0].host)) * @property # <<<<<<<<<<<<<< * def graph(self): * return self._graph */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_5graph_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_19cudaGraphNodeParams_5graph___get__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_5graph___get__(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10496, 0, __PYX_ERR(0, 10496, __pyx_L1_error)); /* "cuda/cudart.pyx":10498 * @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/cudart.pyx":10496 * def host(self, host not None : cudaHostNodeParamsV2): * string.memcpy(&self._ptr[0].host, host.getPtr(), sizeof(self._ptr[0].host)) * @property # <<<<<<<<<<<<<< * def graph(self): * return self._graph */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.graph.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10499 * def graph(self): * return self._graph * @graph.setter # <<<<<<<<<<<<<< * def graph(self, graph not None : cudaChildGraphNodeParams): * string.memcpy(&self._ptr[0].graph, graph.getPtr(), sizeof(self._ptr[0].graph)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_5graph_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_graph); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_cudaChildGraphNodeParams, 0, "graph", 0))) __PYX_ERR(0, 10500, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_5graph_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_cudaChildGraphNodeParams *)__pyx_v_graph)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_5graph_2__set__(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_cudaChildGraphNodeParams *__pyx_v_graph) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 10499, 0, __PYX_ERR(0, 10499, __pyx_L1_error)); /* "cuda/cudart.pyx":10501 * @graph.setter * def graph(self, graph not None : cudaChildGraphNodeParams): * string.memcpy(&self._ptr[0].graph, graph.getPtr(), sizeof(self._ptr[0].graph)) # <<<<<<<<<<<<<< * @property * def eventWait(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_graph), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10501, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10501, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10501, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).graph), ((struct cudaChildGraphNodeParams *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).graph)))); /* "cuda/cudart.pyx":10499 * def graph(self): * return self._graph * @graph.setter # <<<<<<<<<<<<<< * def graph(self, graph not None : cudaChildGraphNodeParams): * string.memcpy(&self._ptr[0].graph, graph.getPtr(), sizeof(self._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_AddTraceback("cuda.cudart.cudaGraphNodeParams.graph.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10502 * def graph(self, graph not None : cudaChildGraphNodeParams): * string.memcpy(&self._ptr[0].graph, graph.getPtr(), sizeof(self._ptr[0].graph)) * @property # <<<<<<<<<<<<<< * def eventWait(self): * return self._eventWait */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_9eventWait_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_19cudaGraphNodeParams_9eventWait___get__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_9eventWait___get__(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10502, 0, __PYX_ERR(0, 10502, __pyx_L1_error)); /* "cuda/cudart.pyx":10504 * @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/cudart.pyx":10502 * def graph(self, graph not None : cudaChildGraphNodeParams): * string.memcpy(&self._ptr[0].graph, graph.getPtr(), sizeof(self._ptr[0].graph)) * @property # <<<<<<<<<<<<<< * def eventWait(self): * return self._eventWait */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.eventWait.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10505 * def eventWait(self): * return self._eventWait * @eventWait.setter # <<<<<<<<<<<<<< * def eventWait(self, eventWait not None : cudaEventWaitNodeParams): * string.memcpy(&self._ptr[0].eventWait, eventWait.getPtr(), sizeof(self._ptr[0].eventWait)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_9eventWait_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_eventWait); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_cudaEventWaitNodeParams, 0, "eventWait", 0))) __PYX_ERR(0, 10506, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_9eventWait_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_cudaEventWaitNodeParams *)__pyx_v_eventWait)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_9eventWait_2__set__(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_cudaEventWaitNodeParams *__pyx_v_eventWait) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 10505, 0, __PYX_ERR(0, 10505, __pyx_L1_error)); /* "cuda/cudart.pyx":10507 * @eventWait.setter * def eventWait(self, eventWait not None : cudaEventWaitNodeParams): * string.memcpy(&self._ptr[0].eventWait, eventWait.getPtr(), sizeof(self._ptr[0].eventWait)) # <<<<<<<<<<<<<< * @property * def eventRecord(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_eventWait), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10507, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10507, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10507, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).eventWait), ((struct cudaEventWaitNodeParams *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).eventWait)))); /* "cuda/cudart.pyx":10505 * def eventWait(self): * return self._eventWait * @eventWait.setter # <<<<<<<<<<<<<< * def eventWait(self, eventWait not None : cudaEventWaitNodeParams): * string.memcpy(&self._ptr[0].eventWait, eventWait.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.eventWait.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10508 * def eventWait(self, eventWait not None : cudaEventWaitNodeParams): * string.memcpy(&self._ptr[0].eventWait, eventWait.getPtr(), sizeof(self._ptr[0].eventWait)) * @property # <<<<<<<<<<<<<< * def eventRecord(self): * return self._eventRecord */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_11eventRecord_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_19cudaGraphNodeParams_11eventRecord___get__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_11eventRecord___get__(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10508, 0, __PYX_ERR(0, 10508, __pyx_L1_error)); /* "cuda/cudart.pyx":10510 * @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/cudart.pyx":10508 * def eventWait(self, eventWait not None : cudaEventWaitNodeParams): * string.memcpy(&self._ptr[0].eventWait, eventWait.getPtr(), sizeof(self._ptr[0].eventWait)) * @property # <<<<<<<<<<<<<< * def eventRecord(self): * return self._eventRecord */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.eventRecord.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10511 * def eventRecord(self): * return self._eventRecord * @eventRecord.setter # <<<<<<<<<<<<<< * def eventRecord(self, eventRecord not None : cudaEventRecordNodeParams): * string.memcpy(&self._ptr[0].eventRecord, eventRecord.getPtr(), sizeof(self._ptr[0].eventRecord)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_11eventRecord_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_eventRecord); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_cudaEventRecordNodeParams, 0, "eventRecord", 0))) __PYX_ERR(0, 10512, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_11eventRecord_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_cudaEventRecordNodeParams *)__pyx_v_eventRecord)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_11eventRecord_2__set__(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_cudaEventRecordNodeParams *__pyx_v_eventRecord) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 10511, 0, __PYX_ERR(0, 10511, __pyx_L1_error)); /* "cuda/cudart.pyx":10513 * @eventRecord.setter * def eventRecord(self, eventRecord not None : cudaEventRecordNodeParams): * string.memcpy(&self._ptr[0].eventRecord, eventRecord.getPtr(), sizeof(self._ptr[0].eventRecord)) # <<<<<<<<<<<<<< * @property * def extSemSignal(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_eventRecord), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10513, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10513, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10513, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).eventRecord), ((struct cudaEventRecordNodeParams *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).eventRecord)))); /* "cuda/cudart.pyx":10511 * def eventRecord(self): * return self._eventRecord * @eventRecord.setter # <<<<<<<<<<<<<< * def eventRecord(self, eventRecord not None : cudaEventRecordNodeParams): * string.memcpy(&self._ptr[0].eventRecord, eventRecord.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.eventRecord.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10514 * def eventRecord(self, eventRecord not None : cudaEventRecordNodeParams): * string.memcpy(&self._ptr[0].eventRecord, eventRecord.getPtr(), sizeof(self._ptr[0].eventRecord)) * @property # <<<<<<<<<<<<<< * def extSemSignal(self): * return self._extSemSignal */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_12extSemSignal_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_19cudaGraphNodeParams_12extSemSignal___get__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_12extSemSignal___get__(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10514, 0, __PYX_ERR(0, 10514, __pyx_L1_error)); /* "cuda/cudart.pyx":10516 * @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/cudart.pyx":10514 * def eventRecord(self, eventRecord not None : cudaEventRecordNodeParams): * string.memcpy(&self._ptr[0].eventRecord, eventRecord.getPtr(), sizeof(self._ptr[0].eventRecord)) * @property # <<<<<<<<<<<<<< * def extSemSignal(self): * return self._extSemSignal */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.extSemSignal.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10517 * def extSemSignal(self): * return self._extSemSignal * @extSemSignal.setter # <<<<<<<<<<<<<< * def extSemSignal(self, extSemSignal not None : cudaExternalSemaphoreSignalNodeParamsV2): * string.memcpy(&self._ptr[0].extSemSignal, extSemSignal.getPtr(), sizeof(self._ptr[0].extSemSignal)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_12extSemSignal_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_extSemSignal); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2, 0, "extSemSignal", 0))) __PYX_ERR(0, 10518, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_12extSemSignal_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 *)__pyx_v_extSemSignal)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_12extSemSignal_2__set__(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_extSemSignal) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 10517, 0, __PYX_ERR(0, 10517, __pyx_L1_error)); /* "cuda/cudart.pyx":10519 * @extSemSignal.setter * def extSemSignal(self, extSemSignal not None : cudaExternalSemaphoreSignalNodeParamsV2): * string.memcpy(&self._ptr[0].extSemSignal, extSemSignal.getPtr(), sizeof(self._ptr[0].extSemSignal)) # <<<<<<<<<<<<<< * @property * def extSemWait(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_extSemSignal), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10519, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10519, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10519, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).extSemSignal), ((struct cudaExternalSemaphoreSignalNodeParamsV2 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).extSemSignal)))); /* "cuda/cudart.pyx":10517 * def extSemSignal(self): * return self._extSemSignal * @extSemSignal.setter # <<<<<<<<<<<<<< * def extSemSignal(self, extSemSignal not None : cudaExternalSemaphoreSignalNodeParamsV2): * string.memcpy(&self._ptr[0].extSemSignal, extSemSignal.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.extSemSignal.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10520 * def extSemSignal(self, extSemSignal not None : cudaExternalSemaphoreSignalNodeParamsV2): * string.memcpy(&self._ptr[0].extSemSignal, extSemSignal.getPtr(), sizeof(self._ptr[0].extSemSignal)) * @property # <<<<<<<<<<<<<< * def extSemWait(self): * return self._extSemWait */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_10extSemWait_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_19cudaGraphNodeParams_10extSemWait___get__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_10extSemWait___get__(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10520, 0, __PYX_ERR(0, 10520, __pyx_L1_error)); /* "cuda/cudart.pyx":10522 * @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/cudart.pyx":10520 * def extSemSignal(self, extSemSignal not None : cudaExternalSemaphoreSignalNodeParamsV2): * string.memcpy(&self._ptr[0].extSemSignal, extSemSignal.getPtr(), sizeof(self._ptr[0].extSemSignal)) * @property # <<<<<<<<<<<<<< * def extSemWait(self): * return self._extSemWait */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.extSemWait.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10523 * def extSemWait(self): * return self._extSemWait * @extSemWait.setter # <<<<<<<<<<<<<< * def extSemWait(self, extSemWait not None : cudaExternalSemaphoreWaitNodeParamsV2): * string.memcpy(&self._ptr[0].extSemWait, extSemWait.getPtr(), sizeof(self._ptr[0].extSemWait)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_10extSemWait_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_extSemWait); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2, 0, "extSemWait", 0))) __PYX_ERR(0, 10524, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_10extSemWait_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 *)__pyx_v_extSemWait)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_10extSemWait_2__set__(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_extSemWait) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 10523, 0, __PYX_ERR(0, 10523, __pyx_L1_error)); /* "cuda/cudart.pyx":10525 * @extSemWait.setter * def extSemWait(self, extSemWait not None : cudaExternalSemaphoreWaitNodeParamsV2): * string.memcpy(&self._ptr[0].extSemWait, extSemWait.getPtr(), sizeof(self._ptr[0].extSemWait)) # <<<<<<<<<<<<<< * @property * def alloc(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_extSemWait), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10525, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10525, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10525, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).extSemWait), ((struct cudaExternalSemaphoreWaitNodeParamsV2 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).extSemWait)))); /* "cuda/cudart.pyx":10523 * def extSemWait(self): * return self._extSemWait * @extSemWait.setter # <<<<<<<<<<<<<< * def extSemWait(self, extSemWait not None : cudaExternalSemaphoreWaitNodeParamsV2): * string.memcpy(&self._ptr[0].extSemWait, extSemWait.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.extSemWait.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10526 * def extSemWait(self, extSemWait not None : cudaExternalSemaphoreWaitNodeParamsV2): * string.memcpy(&self._ptr[0].extSemWait, extSemWait.getPtr(), sizeof(self._ptr[0].extSemWait)) * @property # <<<<<<<<<<<<<< * def alloc(self): * return self._alloc */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_5alloc_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_19cudaGraphNodeParams_5alloc___get__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_5alloc___get__(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10526, 0, __PYX_ERR(0, 10526, __pyx_L1_error)); /* "cuda/cudart.pyx":10528 * @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/cudart.pyx":10526 * def extSemWait(self, extSemWait not None : cudaExternalSemaphoreWaitNodeParamsV2): * string.memcpy(&self._ptr[0].extSemWait, extSemWait.getPtr(), sizeof(self._ptr[0].extSemWait)) * @property # <<<<<<<<<<<<<< * def alloc(self): * return self._alloc */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.alloc.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10529 * def alloc(self): * return self._alloc * @alloc.setter # <<<<<<<<<<<<<< * def alloc(self, alloc not None : cudaMemAllocNodeParamsV2): * string.memcpy(&self._ptr[0].alloc, alloc.getPtr(), sizeof(self._ptr[0].alloc)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_5alloc_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_alloc); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_cudaMemAllocNodeParamsV2, 0, "alloc", 0))) __PYX_ERR(0, 10530, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_5alloc_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *)__pyx_v_alloc)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_5alloc_2__set__(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *__pyx_v_alloc) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 10529, 0, __PYX_ERR(0, 10529, __pyx_L1_error)); /* "cuda/cudart.pyx":10531 * @alloc.setter * def alloc(self, alloc not None : cudaMemAllocNodeParamsV2): * string.memcpy(&self._ptr[0].alloc, alloc.getPtr(), sizeof(self._ptr[0].alloc)) # <<<<<<<<<<<<<< * @property * def free(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_alloc), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10531, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10531, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10531, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).alloc), ((struct cudaMemAllocNodeParamsV2 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).alloc)))); /* "cuda/cudart.pyx":10529 * def alloc(self): * return self._alloc * @alloc.setter # <<<<<<<<<<<<<< * def alloc(self, alloc not None : cudaMemAllocNodeParamsV2): * string.memcpy(&self._ptr[0].alloc, alloc.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.alloc.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10532 * def alloc(self, alloc not None : cudaMemAllocNodeParamsV2): * string.memcpy(&self._ptr[0].alloc, alloc.getPtr(), sizeof(self._ptr[0].alloc)) * @property # <<<<<<<<<<<<<< * def free(self): * return self._free */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_4free_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_19cudaGraphNodeParams_4free___get__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_4free___get__(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10532, 0, __PYX_ERR(0, 10532, __pyx_L1_error)); /* "cuda/cudart.pyx":10534 * @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/cudart.pyx":10532 * def alloc(self, alloc not None : cudaMemAllocNodeParamsV2): * string.memcpy(&self._ptr[0].alloc, alloc.getPtr(), sizeof(self._ptr[0].alloc)) * @property # <<<<<<<<<<<<<< * def free(self): * return self._free */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.free.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10535 * def free(self): * return self._free * @free.setter # <<<<<<<<<<<<<< * def free(self, free not None : cudaMemFreeNodeParams): * string.memcpy(&self._ptr[0].free, free.getPtr(), sizeof(self._ptr[0].free)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_4free_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_free); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_cudaMemFreeNodeParams, 0, "free", 0))) __PYX_ERR(0, 10536, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_4free_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_cudaMemFreeNodeParams *)__pyx_v_free)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_4free_2__set__(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_cudaMemFreeNodeParams *__pyx_v_free) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 10535, 0, __PYX_ERR(0, 10535, __pyx_L1_error)); /* "cuda/cudart.pyx":10537 * @free.setter * def free(self, free not None : cudaMemFreeNodeParams): * string.memcpy(&self._ptr[0].free, free.getPtr(), sizeof(self._ptr[0].free)) # <<<<<<<<<<<<<< * @property * def conditional(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_free), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10537, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10537, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10537, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).free), ((struct cudaMemFreeNodeParams *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).free)))); /* "cuda/cudart.pyx":10535 * def free(self): * return self._free * @free.setter # <<<<<<<<<<<<<< * def free(self, free not None : cudaMemFreeNodeParams): * string.memcpy(&self._ptr[0].free, free.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.free.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10538 * def free(self, free not None : cudaMemFreeNodeParams): * string.memcpy(&self._ptr[0].free, free.getPtr(), sizeof(self._ptr[0].free)) * @property # <<<<<<<<<<<<<< * def conditional(self): * return self._conditional */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_11conditional_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_19cudaGraphNodeParams_11conditional___get__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_11conditional___get__(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10538, 0, __PYX_ERR(0, 10538, __pyx_L1_error)); /* "cuda/cudart.pyx":10540 * @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/cudart.pyx":10538 * def free(self, free not None : cudaMemFreeNodeParams): * string.memcpy(&self._ptr[0].free, free.getPtr(), sizeof(self._ptr[0].free)) * @property # <<<<<<<<<<<<<< * def conditional(self): * return self._conditional */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.conditional.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10541 * def conditional(self): * return self._conditional * @conditional.setter # <<<<<<<<<<<<<< * def conditional(self, conditional not None : cudaConditionalNodeParams): * string.memcpy(&self._ptr[0].conditional, conditional.getPtr(), sizeof(self._ptr[0].conditional)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_11conditional_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_conditional); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_cudaConditionalNodeParams, 0, "conditional", 0))) __PYX_ERR(0, 10542, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_11conditional_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *)__pyx_v_conditional)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_11conditional_2__set__(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *__pyx_v_conditional) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 10541, 0, __PYX_ERR(0, 10541, __pyx_L1_error)); /* "cuda/cudart.pyx":10543 * @conditional.setter * def conditional(self, conditional not None : cudaConditionalNodeParams): * string.memcpy(&self._ptr[0].conditional, conditional.getPtr(), sizeof(self._ptr[0].conditional)) # <<<<<<<<<<<<<< * @property * def reserved2(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_conditional), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10543, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10543, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10543, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).conditional), ((struct cudaConditionalNodeParams *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).conditional)))); /* "cuda/cudart.pyx":10541 * def conditional(self): * return self._conditional * @conditional.setter # <<<<<<<<<<<<<< * def conditional(self, conditional not None : cudaConditionalNodeParams): * string.memcpy(&self._ptr[0].conditional, conditional.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.conditional.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10544 * def conditional(self, conditional not None : cudaConditionalNodeParams): * string.memcpy(&self._ptr[0].conditional, conditional.getPtr(), sizeof(self._ptr[0].conditional)) * @property # <<<<<<<<<<<<<< * def reserved2(self): * return self._ptr[0].reserved2 */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_9reserved2_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_19cudaGraphNodeParams_9reserved2___get__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_9reserved2___get__(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10544, 0, __PYX_ERR(0, 10544, __pyx_L1_error)); /* "cuda/cudart.pyx":10546 * @property * def reserved2(self): * return self._ptr[0].reserved2 # <<<<<<<<<<<<<< * @reserved2.setter * def reserved2(self, long long reserved2): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_PY_LONG_LONG((__pyx_v_self->_ptr[0]).reserved2); 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/cudart.pyx":10544 * def conditional(self, conditional not None : cudaConditionalNodeParams): * string.memcpy(&self._ptr[0].conditional, conditional.getPtr(), sizeof(self._ptr[0].conditional)) * @property # <<<<<<<<<<<<<< * def reserved2(self): * return self._ptr[0].reserved2 */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.reserved2.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10547 * def reserved2(self): * return self._ptr[0].reserved2 * @reserved2.setter # <<<<<<<<<<<<<< * def reserved2(self, long long reserved2): * self._ptr[0].reserved2 = reserved2 */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_9reserved2_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_reserved2); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_PY_LONG_LONG(__pyx_arg_reserved2); if (unlikely((__pyx_v_reserved2 == (PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10548, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.reserved2.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_9reserved2_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self), ((PY_LONG_LONG)__pyx_v_reserved2)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_9reserved2_2__set__(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self, PY_LONG_LONG __pyx_v_reserved2) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 10547, 0, __PYX_ERR(0, 10547, __pyx_L1_error)); /* "cuda/cudart.pyx":10549 * @reserved2.setter * def reserved2(self, long long reserved2): * self._ptr[0].reserved2 = reserved2 # <<<<<<<<<<<<<< * * cdef class cudaGraphEdgeData_st: */ (__pyx_v_self->_ptr[0]).reserved2 = __pyx_v_reserved2; /* "cuda/cudart.pyx":10547 * def reserved2(self): * return self._ptr[0].reserved2 * @reserved2.setter # <<<<<<<<<<<<<< * def reserved2(self, long long reserved2): * self._ptr[0].reserved2 = reserved2 */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.reserved2.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_19cudaGraphNodeParams_10__reduce_cython__, "cudaGraphNodeParams.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_19cudaGraphNodeParams_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_19cudaGraphNodeParams_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__249) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaGraphNodeParams.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_19cudaGraphNodeParams_12__setstate_cython__, "cudaGraphNodeParams.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_19cudaGraphNodeParams_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_19cudaGraphNodeParams_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaGraphNodeParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__250) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaGraphNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10591 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaGraphEdgeData_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_20cudaGraphEdgeData_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 10591, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 10591, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10591, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 10591, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphEdgeData_st.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaGraphEdgeData_st___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_20cudaGraphEdgeData_st___cinit__(struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 10591, 0, __PYX_ERR(0, 10591, __pyx_L1_error)); /* "cuda/cudart.pyx":10592 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":10593 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaGraphEdgeData_st__val); /* "cuda/cudart.pyx":10592 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":10595 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * pass */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaGraphEdgeData_st *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":10591 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphEdgeData_st.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":10596 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaGraphEdgeData_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_20cudaGraphEdgeData_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 10596, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 10596, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10596, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 10596, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphEdgeData_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaGraphEdgeData_st_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_20cudaGraphEdgeData_st_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 10596, 0, __PYX_ERR(0, 10596, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphEdgeData_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":10598 * def __init__(self, void_ptr _ptr = 0): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_20cudaGraphEdgeData_st_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_20cudaGraphEdgeData_st_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_20cudaGraphEdgeData_st_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 10598, 0, __PYX_ERR(0, 10598, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaGraphEdgeData_st.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":10600 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaGraphEdgeData_st_6getPtr, "cudaGraphEdgeData_st.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_20cudaGraphEdgeData_st_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaGraphEdgeData_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaGraphEdgeData_st_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaGraphEdgeData_st_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaGraphEdgeData_st_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__251) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 10600, 0, __PYX_ERR(0, 10600, __pyx_L1_error)); /* "cuda/cudart.pyx":10601 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10601, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":10600 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaGraphEdgeData_st.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10602 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaGraphEdgeData_st_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaGraphEdgeData_st_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaGraphEdgeData_st_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 10602, 0, __PYX_ERR(0, 10602, __pyx_L1_error)); /* "cuda/cudart.pyx":10603 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":10604 * def __repr__(self): * if self._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, 10604, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":10605 * if self._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/cudart.pyx":10606 * str_list = [] * try: * str_list += ['from_port : ' + str(self.from_port)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['from_port : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_from_port_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10606, __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, 10606, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_from_port, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10606, __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, 10606, __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)) __PYX_ERR(0, 10606, __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, 10606, __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/cudart.pyx":10605 * if self._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/cudart.pyx":10607 * try: * str_list += ['from_port : ' + str(self.from_port)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['from_port : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 10607, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":10608 * str_list += ['from_port : ' + str(self.from_port)] * except ValueError: * str_list += ['from_port : '] # <<<<<<<<<<<<<< * try: * str_list += ['to_port : ' + str(self.to_port)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10608, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_from_port_ValueError); __Pyx_GIVEREF(__pyx_kp_u_from_port_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_from_port_ValueError)) __PYX_ERR(0, 10608, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10608, __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/cudart.pyx":10605 * if self._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/cudart.pyx":10609 * except ValueError: * str_list += ['from_port : '] * 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/cudart.pyx":10610 * str_list += ['from_port : '] * try: * str_list += ['to_port : ' + str(self.to_port)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['to_port : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_port_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10610, __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, 10610, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_to_port, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10610, __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, 10610, __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)) __PYX_ERR(0, 10610, __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, 10610, __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/cudart.pyx":10609 * except ValueError: * str_list += ['from_port : '] * 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/cudart.pyx":10611 * try: * str_list += ['to_port : ' + str(self.to_port)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['to_port : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 10611, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":10612 * str_list += ['to_port : ' + str(self.to_port)] * except ValueError: * str_list += ['to_port : '] # <<<<<<<<<<<<<< * try: * str_list += ['type : ' + str(self.type)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10612, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_to_port_ValueError); __Pyx_GIVEREF(__pyx_kp_u_to_port_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_to_port_ValueError)) __PYX_ERR(0, 10612, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10612, __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/cudart.pyx":10609 * except ValueError: * str_list += ['from_port : '] * 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/cudart.pyx":10613 * except ValueError: * str_list += ['to_port : '] * 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/cudart.pyx":10614 * str_list += ['to_port : '] * try: * str_list += ['type : ' + str(self.type)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['type : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_type_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10614, __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, 10614, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_type, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10614, __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, 10614, __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)) __PYX_ERR(0, 10614, __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, 10614, __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/cudart.pyx":10613 * except ValueError: * str_list += ['to_port : '] * 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/cudart.pyx":10615 * try: * str_list += ['type : ' + str(self.type)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['type : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 10615, __pyx_L22_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":10616 * str_list += ['type : ' + str(self.type)] * except ValueError: * str_list += ['type : '] # <<<<<<<<<<<<<< * try: * str_list += ['reserved : ' + str(self.reserved)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10616, __pyx_L22_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_type_ValueError); __Pyx_GIVEREF(__pyx_kp_u_type_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_type_ValueError)) __PYX_ERR(0, 10616, __pyx_L22_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10616, __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/cudart.pyx":10613 * except ValueError: * str_list += ['to_port : '] * 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/cudart.pyx":10617 * except ValueError: * str_list += ['type : '] * 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/cudart.pyx":10618 * str_list += ['type : '] * try: * str_list += ['reserved : ' + str(self.reserved)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['reserved : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_reserved_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10618, __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, 10618, __pyx_L28_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_reserved, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10618, __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, 10618, __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)) __PYX_ERR(0, 10618, __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, 10618, __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/cudart.pyx":10617 * except ValueError: * str_list += ['type : '] * 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/cudart.pyx":10619 * try: * str_list += ['reserved : ' + str(self.reserved)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['reserved : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 10619, __pyx_L30_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":10620 * str_list += ['reserved : ' + str(self.reserved)] * except ValueError: * str_list += ['reserved : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10620, __pyx_L30_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_reserved_ValueError); __Pyx_GIVEREF(__pyx_kp_u_reserved_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_reserved_ValueError)) __PYX_ERR(0, 10620, __pyx_L30_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10620, __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/cudart.pyx":10617 * except ValueError: * str_list += ['type : '] * 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/cudart.pyx":10621 * except ValueError: * str_list += ['reserved : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10621, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":10603 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":10623 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def from_port(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":10602 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10624 * else: * return '' * @property # <<<<<<<<<<<<<< * def from_port(self): * return self._ptr[0].from_port */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaGraphEdgeData_st_9from_port_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaGraphEdgeData_st_9from_port___get__(((struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaGraphEdgeData_st_9from_port___get__(struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10624, 0, __PYX_ERR(0, 10624, __pyx_L1_error)); /* "cuda/cudart.pyx":10626 * @property * def from_port(self): * return self._ptr[0].from_port # <<<<<<<<<<<<<< * @from_port.setter * def from_port(self, unsigned char from_port): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_char((__pyx_v_self->_ptr[0]).from_port); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10626, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":10624 * else: * return '' * @property # <<<<<<<<<<<<<< * def from_port(self): * return self._ptr[0].from_port */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaGraphEdgeData_st.from_port.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10627 * def from_port(self): * return self._ptr[0].from_port * @from_port.setter # <<<<<<<<<<<<<< * def from_port(self, unsigned char from_port): * self._ptr[0].from_port = from_port */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaGraphEdgeData_st_9from_port_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_from_port); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_char(__pyx_arg_from_port); if (unlikely((__pyx_v_from_port == (unsigned char)-1) && PyErr_Occurred())) __PYX_ERR(0, 10628, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.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_6cudart_20cudaGraphEdgeData_st_9from_port_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st *)__pyx_v_self), ((unsigned char)__pyx_v_from_port)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_20cudaGraphEdgeData_st_9from_port_2__set__(struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st *__pyx_v_self, unsigned char __pyx_v_from_port) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 10627, 0, __PYX_ERR(0, 10627, __pyx_L1_error)); /* "cuda/cudart.pyx":10629 * @from_port.setter * def from_port(self, unsigned char from_port): * self._ptr[0].from_port = from_port # <<<<<<<<<<<<<< * @property * def to_port(self): */ (__pyx_v_self->_ptr[0]).from_port = __pyx_v_from_port; /* "cuda/cudart.pyx":10627 * def from_port(self): * return self._ptr[0].from_port * @from_port.setter # <<<<<<<<<<<<<< * def from_port(self, unsigned char from_port): * self._ptr[0].from_port = from_port */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphEdgeData_st.from_port.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":10630 * def from_port(self, unsigned char from_port): * self._ptr[0].from_port = from_port * @property # <<<<<<<<<<<<<< * def to_port(self): * return self._ptr[0].to_port */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaGraphEdgeData_st_7to_port_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaGraphEdgeData_st_7to_port___get__(((struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaGraphEdgeData_st_7to_port___get__(struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10630, 0, __PYX_ERR(0, 10630, __pyx_L1_error)); /* "cuda/cudart.pyx":10632 * @property * def to_port(self): * return self._ptr[0].to_port # <<<<<<<<<<<<<< * @to_port.setter * def to_port(self, unsigned char to_port): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_char((__pyx_v_self->_ptr[0]).to_port); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10632, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":10630 * def from_port(self, unsigned char from_port): * self._ptr[0].from_port = from_port * @property # <<<<<<<<<<<<<< * def to_port(self): * return self._ptr[0].to_port */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaGraphEdgeData_st.to_port.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10633 * def to_port(self): * return self._ptr[0].to_port * @to_port.setter # <<<<<<<<<<<<<< * def to_port(self, unsigned char to_port): * self._ptr[0].to_port = to_port */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaGraphEdgeData_st_7to_port_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_to_port); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_char(__pyx_arg_to_port); if (unlikely((__pyx_v_to_port == (unsigned char)-1) && PyErr_Occurred())) __PYX_ERR(0, 10634, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.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_6cudart_20cudaGraphEdgeData_st_7to_port_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st *)__pyx_v_self), ((unsigned char)__pyx_v_to_port)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_20cudaGraphEdgeData_st_7to_port_2__set__(struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st *__pyx_v_self, unsigned char __pyx_v_to_port) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 10633, 0, __PYX_ERR(0, 10633, __pyx_L1_error)); /* "cuda/cudart.pyx":10635 * @to_port.setter * def to_port(self, unsigned char to_port): * self._ptr[0].to_port = to_port # <<<<<<<<<<<<<< * @property * def type(self): */ (__pyx_v_self->_ptr[0]).to_port = __pyx_v_to_port; /* "cuda/cudart.pyx":10633 * def to_port(self): * return self._ptr[0].to_port * @to_port.setter # <<<<<<<<<<<<<< * def to_port(self, unsigned char to_port): * self._ptr[0].to_port = to_port */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphEdgeData_st.to_port.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":10636 * def to_port(self, unsigned char to_port): * self._ptr[0].to_port = to_port * @property # <<<<<<<<<<<<<< * def type(self): * return self._ptr[0].type */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaGraphEdgeData_st_4type_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaGraphEdgeData_st_4type___get__(((struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaGraphEdgeData_st_4type___get__(struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10636, 0, __PYX_ERR(0, 10636, __pyx_L1_error)); /* "cuda/cudart.pyx":10638 * @property * def type(self): * return self._ptr[0].type # <<<<<<<<<<<<<< * @type.setter * def type(self, unsigned char type): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_char((__pyx_v_self->_ptr[0]).type); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10638, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":10636 * def to_port(self, unsigned char to_port): * self._ptr[0].to_port = to_port * @property # <<<<<<<<<<<<<< * def type(self): * return self._ptr[0].type */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaGraphEdgeData_st.type.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10639 * def type(self): * return self._ptr[0].type * @type.setter # <<<<<<<<<<<<<< * def type(self, unsigned char type): * self._ptr[0].type = type */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaGraphEdgeData_st_4type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_type); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_char(__pyx_arg_type); if (unlikely((__pyx_v_type == (unsigned char)-1) && PyErr_Occurred())) __PYX_ERR(0, 10640, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphEdgeData_st.type.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaGraphEdgeData_st_4type_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st *)__pyx_v_self), ((unsigned char)__pyx_v_type)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_20cudaGraphEdgeData_st_4type_2__set__(struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st *__pyx_v_self, unsigned char __pyx_v_type) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 10639, 0, __PYX_ERR(0, 10639, __pyx_L1_error)); /* "cuda/cudart.pyx":10641 * @type.setter * def type(self, unsigned char type): * self._ptr[0].type = type # <<<<<<<<<<<<<< * @property * def reserved(self): */ (__pyx_v_self->_ptr[0]).type = __pyx_v_type; /* "cuda/cudart.pyx":10639 * def type(self): * return self._ptr[0].type * @type.setter # <<<<<<<<<<<<<< * def type(self, unsigned char type): * self._ptr[0].type = type */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphEdgeData_st.type.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":10642 * def type(self, unsigned char type): * self._ptr[0].type = type * @property # <<<<<<<<<<<<<< * def reserved(self): * return PyBytes_FromStringAndSize(self._ptr[0].reserved, 5) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_20cudaGraphEdgeData_st_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_20cudaGraphEdgeData_st_8reserved___get__(((struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaGraphEdgeData_st_8reserved___get__(struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10642, 0, __PYX_ERR(0, 10642, __pyx_L1_error)); /* "cuda/cudart.pyx":10644 * @property * def reserved(self): * return PyBytes_FromStringAndSize(self._ptr[0].reserved, 5) # <<<<<<<<<<<<<< * @reserved.setter * def reserved(self, reserved): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyBytes_FromStringAndSize(((char *)(__pyx_v_self->_ptr[0]).reserved), 5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10644, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":10642 * def type(self, unsigned char type): * self._ptr[0].type = type * @property # <<<<<<<<<<<<<< * def reserved(self): * return PyBytes_FromStringAndSize(self._ptr[0].reserved, 5) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaGraphEdgeData_st.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10645 * def reserved(self): * return PyBytes_FromStringAndSize(self._ptr[0].reserved, 5) * @reserved.setter # <<<<<<<<<<<<<< * def reserved(self, reserved): * if len(reserved) != 5: */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_20cudaGraphEdgeData_st_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_20cudaGraphEdgeData_st_8reserved_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st *)__pyx_v_self), ((PyObject *)__pyx_v_reserved)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_20cudaGraphEdgeData_st_8reserved_2__set__(struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st *__pyx_v_self, PyObject *__pyx_v_reserved) { PyObject *__pyx_v_i = NULL; PyObject *__pyx_v_b = NULL; int __pyx_r; __Pyx_TraceDeclarations __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)(PyObject *); PyObject *__pyx_t_6 = NULL; unsigned char __pyx_t_7; Py_ssize_t __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 10645, 0, __PYX_ERR(0, 10645, __pyx_L1_error)); /* "cuda/cudart.pyx":10647 * @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, 10647, __pyx_L1_error) __pyx_t_2 = (__pyx_t_1 != 5); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":10648 * 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._ptr[0].reserved[i] = b */ __pyx_t_1 = PyObject_Length(__pyx_v_reserved); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 10648, __pyx_L1_error) __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10648, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 10648, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_reserved_length_must_be_5_is, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10648, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 10648, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __PYX_ERR(0, 10648, __pyx_L1_error) /* "cuda/cudart.pyx":10647 * @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/cudart.pyx":10649 * if len(reserved) != 5: * raise ValueError("reserved length must be 5, is " + str(len(reserved))) * for i, b in enumerate(reserved): # <<<<<<<<<<<<<< * self._ptr[0].reserved[i] = b * */ __Pyx_INCREF(__pyx_int_0); __pyx_t_4 = __pyx_int_0; if (likely(PyList_CheckExact(__pyx_v_reserved)) || PyTuple_CheckExact(__pyx_v_reserved)) { __pyx_t_3 = __pyx_v_reserved; __Pyx_INCREF(__pyx_t_3); __pyx_t_1 = 0; __pyx_t_5 = NULL; } else { __pyx_t_1 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_reserved); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 10649, __pyx_L1_error) } for (;;) { if (likely(!__pyx_t_5)) { if (likely(PyList_CheckExact(__pyx_t_3))) { { Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 10649, __pyx_L1_error) #endif if (__pyx_t_1 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_1); __Pyx_INCREF(__pyx_t_6); __pyx_t_1++; if (unlikely((0 < 0))) __PYX_ERR(0, 10649, __pyx_L1_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 10649, __pyx_L1_error) #endif if (__pyx_t_1 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_1); __Pyx_INCREF(__pyx_t_6); __pyx_t_1++; if (unlikely((0 < 0))) __PYX_ERR(0, 10649, __pyx_L1_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); #endif } } else { __pyx_t_6 = __pyx_t_5(__pyx_t_3); if (unlikely(!__pyx_t_6)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 10649, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_6); } __Pyx_XDECREF_SET(__pyx_v_b, __pyx_t_6); __pyx_t_6 = 0; __Pyx_INCREF(__pyx_t_4); __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_4); __pyx_t_6 = __Pyx_PyInt_AddObjC(__pyx_t_4, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = __pyx_t_6; __pyx_t_6 = 0; /* "cuda/cudart.pyx":10650 * raise ValueError("reserved length must be 5, is " + str(len(reserved))) * for i, b in enumerate(reserved): * self._ptr[0].reserved[i] = b # <<<<<<<<<<<<<< * * cdef class cudaGraphInstantiateParams_st: */ __pyx_t_7 = __Pyx_PyInt_As_unsigned_char(__pyx_v_b); if (unlikely((__pyx_t_7 == (unsigned char)-1) && PyErr_Occurred())) __PYX_ERR(0, 10650, __pyx_L1_error) __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 10650, __pyx_L1_error) ((__pyx_v_self->_ptr[0]).reserved[__pyx_t_8]) = __pyx_t_7; /* "cuda/cudart.pyx":10649 * if len(reserved) != 5: * raise ValueError("reserved length must be 5, is " + str(len(reserved))) * for i, b in enumerate(reserved): # <<<<<<<<<<<<<< * self._ptr[0].reserved[i] = b * */ } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":10645 * def reserved(self): * return PyBytes_FromStringAndSize(self._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_6); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(Py_None, 0); __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_6cudart_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_6cudart_20cudaGraphEdgeData_st_10__reduce_cython__, "cudaGraphEdgeData_st.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_20cudaGraphEdgeData_st_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaGraphEdgeData_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaGraphEdgeData_st_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaGraphEdgeData_st_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaGraphEdgeData_st_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__252) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaGraphEdgeData_st.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_20cudaGraphEdgeData_st_12__setstate_cython__, "cudaGraphEdgeData_st.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_20cudaGraphEdgeData_st_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaGraphEdgeData_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaGraphEdgeData_st_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphEdgeData_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaGraphEdgeData_st_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaGraphEdgeData_st_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__253) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaGraphEdgeData_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10673 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_29cudaGraphInstantiateParams_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_29cudaGraphInstantiateParams_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 10673, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 10673, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10673, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 10673, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphInstantiateParams_st.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_29cudaGraphInstantiateParams_st___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_29cudaGraphInstantiateParams_st___cinit__(struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 10673, 0, __PYX_ERR(0, 10673, __pyx_L1_error)); /* "cuda/cudart.pyx":10674 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":10675 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaGraphInstantiateParams_st__val); /* "cuda/cudart.pyx":10674 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":10677 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * self._uploadStream = cudaStream_t(_ptr=&self._ptr[0].uploadStream) */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaGraphInstantiateParams_st *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":10673 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphInstantiateParams_st.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":10678 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._uploadStream = cudaStream_t(_ptr=&self._ptr[0].uploadStream) * self._errNode_out = cudaGraphNode_t(_ptr=&self._ptr[0].errNode_out) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_29cudaGraphInstantiateParams_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_29cudaGraphInstantiateParams_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 10678, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 10678, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10678, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 10678, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphInstantiateParams_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_29cudaGraphInstantiateParams_st_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_29cudaGraphInstantiateParams_st_2__init__(struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 10678, 0, __PYX_ERR(0, 10678, __pyx_L1_error)); /* "cuda/cudart.pyx":10679 * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): * self._uploadStream = cudaStream_t(_ptr=&self._ptr[0].uploadStream) # <<<<<<<<<<<<<< * self._errNode_out = cudaGraphNode_t(_ptr=&self._ptr[0].errNode_out) * def __dealloc__(self): */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10679, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).uploadStream))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10679, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 10679, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10679, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_uploadStream); __Pyx_DECREF((PyObject *)__pyx_v_self->_uploadStream); __pyx_v_self->_uploadStream = ((struct __pyx_obj_4cuda_6cudart_cudaStream_t *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":10680 * def __init__(self, void_ptr _ptr = 0): * self._uploadStream = cudaStream_t(_ptr=&self._ptr[0].uploadStream) * self._errNode_out = cudaGraphNode_t(_ptr=&self._ptr[0].errNode_out) # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10680, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).errNode_out))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10680, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_ptr, __pyx_t_1) < 0) __PYX_ERR(0, 10680, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10680, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GIVEREF(__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_6cudart_cudaGraphNode_t *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":10678 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._uploadStream = cudaStream_t(_ptr=&self._ptr[0].uploadStream) * self._errNode_out = cudaGraphNode_t(_ptr=&self._ptr[0].errNode_out) */ /* 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.cudart.cudaGraphInstantiateParams_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10681 * self._uploadStream = cudaStream_t(_ptr=&self._ptr[0].uploadStream) * self._errNode_out = cudaGraphNode_t(_ptr=&self._ptr[0].errNode_out) * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_29cudaGraphInstantiateParams_st_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_29cudaGraphInstantiateParams_st_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_29cudaGraphInstantiateParams_st_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 10681, 0, __PYX_ERR(0, 10681, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaGraphInstantiateParams_st.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":10683 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_29cudaGraphInstantiateParams_st_6getPtr, "cudaGraphInstantiateParams_st.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_29cudaGraphInstantiateParams_st_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_29cudaGraphInstantiateParams_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_29cudaGraphInstantiateParams_st_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_29cudaGraphInstantiateParams_st_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_29cudaGraphInstantiateParams_st_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__254) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 10683, 0, __PYX_ERR(0, 10683, __pyx_L1_error)); /* "cuda/cudart.pyx":10684 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10684, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":10683 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaGraphInstantiateParams_st.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10685 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_29cudaGraphInstantiateParams_st_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_29cudaGraphInstantiateParams_st_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_29cudaGraphInstantiateParams_st_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 10685, 0, __PYX_ERR(0, 10685, __pyx_L1_error)); /* "cuda/cudart.pyx":10686 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":10687 * def __repr__(self): * if self._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, 10687, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":10688 * if self._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/cudart.pyx":10689 * str_list = [] * try: * str_list += ['flags : ' + str(self.flags)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['flags : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_flags_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10689, __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, 10689, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_flags, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10689, __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, 10689, __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)) __PYX_ERR(0, 10689, __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, 10689, __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/cudart.pyx":10688 * if self._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/cudart.pyx":10690 * try: * str_list += ['flags : ' + str(self.flags)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['flags : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 10690, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":10691 * str_list += ['flags : ' + str(self.flags)] * except ValueError: * str_list += ['flags : '] # <<<<<<<<<<<<<< * try: * str_list += ['uploadStream : ' + str(self.uploadStream)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10691, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_flags_ValueError); __Pyx_GIVEREF(__pyx_kp_u_flags_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_flags_ValueError)) __PYX_ERR(0, 10691, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10691, __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/cudart.pyx":10688 * if self._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/cudart.pyx":10692 * except ValueError: * str_list += ['flags : '] * 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/cudart.pyx":10693 * str_list += ['flags : '] * try: * str_list += ['uploadStream : ' + str(self.uploadStream)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['uploadStream : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_uploadStream_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10693, __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, 10693, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_uploadStream, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10693, __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, 10693, __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)) __PYX_ERR(0, 10693, __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, 10693, __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/cudart.pyx":10692 * except ValueError: * str_list += ['flags : '] * 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/cudart.pyx":10694 * try: * str_list += ['uploadStream : ' + str(self.uploadStream)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['uploadStream : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 10694, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":10695 * str_list += ['uploadStream : ' + str(self.uploadStream)] * except ValueError: * str_list += ['uploadStream : '] # <<<<<<<<<<<<<< * try: * str_list += ['errNode_out : ' + str(self.errNode_out)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10695, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_uploadStream_ValueError); __Pyx_GIVEREF(__pyx_kp_u_uploadStream_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_uploadStream_ValueError)) __PYX_ERR(0, 10695, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10695, __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/cudart.pyx":10692 * except ValueError: * str_list += ['flags : '] * 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/cudart.pyx":10696 * except ValueError: * str_list += ['uploadStream : '] * 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/cudart.pyx":10697 * str_list += ['uploadStream : '] * try: * str_list += ['errNode_out : ' + str(self.errNode_out)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['errNode_out : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_errNode_out_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10697, __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, 10697, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_errNode_out, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10697, __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, 10697, __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)) __PYX_ERR(0, 10697, __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, 10697, __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/cudart.pyx":10696 * except ValueError: * str_list += ['uploadStream : '] * 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/cudart.pyx":10698 * try: * str_list += ['errNode_out : ' + str(self.errNode_out)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['errNode_out : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 10698, __pyx_L22_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":10699 * str_list += ['errNode_out : ' + str(self.errNode_out)] * except ValueError: * str_list += ['errNode_out : '] # <<<<<<<<<<<<<< * try: * str_list += ['result_out : ' + str(self.result_out)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10699, __pyx_L22_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_errNode_out_ValueError); __Pyx_GIVEREF(__pyx_kp_u_errNode_out_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_errNode_out_ValueError)) __PYX_ERR(0, 10699, __pyx_L22_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10699, __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/cudart.pyx":10696 * except ValueError: * str_list += ['uploadStream : '] * 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/cudart.pyx":10700 * except ValueError: * str_list += ['errNode_out : '] * 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/cudart.pyx":10701 * str_list += ['errNode_out : '] * try: * str_list += ['result_out : ' + str(self.result_out)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['result_out : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_result_out_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10701, __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, 10701, __pyx_L28_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_result_out, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10701, __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, 10701, __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)) __PYX_ERR(0, 10701, __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, 10701, __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/cudart.pyx":10700 * except ValueError: * str_list += ['errNode_out : '] * 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/cudart.pyx":10702 * try: * str_list += ['result_out : ' + str(self.result_out)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['result_out : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 10702, __pyx_L30_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":10703 * str_list += ['result_out : ' + str(self.result_out)] * except ValueError: * str_list += ['result_out : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10703, __pyx_L30_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_result_out_ValueError); __Pyx_GIVEREF(__pyx_kp_u_result_out_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_result_out_ValueError)) __PYX_ERR(0, 10703, __pyx_L30_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10703, __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/cudart.pyx":10700 * except ValueError: * str_list += ['errNode_out : '] * 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/cudart.pyx":10704 * except ValueError: * str_list += ['result_out : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10704, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":10686 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":10706 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def flags(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":10685 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10707 * else: * return '' * @property # <<<<<<<<<<<<<< * def flags(self): * return self._ptr[0].flags */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_29cudaGraphInstantiateParams_st_5flags_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_29cudaGraphInstantiateParams_st_5flags___get__(((struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_29cudaGraphInstantiateParams_st_5flags___get__(struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10707, 0, __PYX_ERR(0, 10707, __pyx_L1_error)); /* "cuda/cudart.pyx":10709 * @property * def flags(self): * return self._ptr[0].flags # <<<<<<<<<<<<<< * @flags.setter * def flags(self, unsigned long long flags): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG((__pyx_v_self->_ptr[0]).flags); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10709, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":10707 * else: * return '' * @property # <<<<<<<<<<<<<< * def flags(self): * return self._ptr[0].flags */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaGraphInstantiateParams_st.flags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10710 * def flags(self): * return self._ptr[0].flags * @flags.setter # <<<<<<<<<<<<<< * def flags(self, unsigned long long flags): * self._ptr[0].flags = flags */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_29cudaGraphInstantiateParams_st_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_PY_LONG_LONG(__pyx_arg_flags); if (unlikely((__pyx_v_flags == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10711, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphInstantiateParams_st.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_29cudaGraphInstantiateParams_st_5flags_2__set__(((struct __pyx_obj_4cuda_6cudart_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_6cudart_29cudaGraphInstantiateParams_st_5flags_2__set__(struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_flags) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 10710, 0, __PYX_ERR(0, 10710, __pyx_L1_error)); /* "cuda/cudart.pyx":10712 * @flags.setter * def flags(self, unsigned long long flags): * self._ptr[0].flags = flags # <<<<<<<<<<<<<< * @property * def uploadStream(self): */ (__pyx_v_self->_ptr[0]).flags = __pyx_v_flags; /* "cuda/cudart.pyx":10710 * def flags(self): * return self._ptr[0].flags * @flags.setter # <<<<<<<<<<<<<< * def flags(self, unsigned long long flags): * self._ptr[0].flags = flags */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphInstantiateParams_st.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":10713 * def flags(self, unsigned long long flags): * self._ptr[0].flags = flags * @property # <<<<<<<<<<<<<< * def uploadStream(self): * return self._uploadStream */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_29cudaGraphInstantiateParams_st_12uploadStream_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_29cudaGraphInstantiateParams_st_12uploadStream___get__(((struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_29cudaGraphInstantiateParams_st_12uploadStream___get__(struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10713, 0, __PYX_ERR(0, 10713, __pyx_L1_error)); /* "cuda/cudart.pyx":10715 * @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/cudart.pyx":10713 * def flags(self, unsigned long long flags): * self._ptr[0].flags = flags * @property # <<<<<<<<<<<<<< * def uploadStream(self): * return self._uploadStream */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphInstantiateParams_st.uploadStream.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10716 * def uploadStream(self): * return self._uploadStream * @uploadStream.setter # <<<<<<<<<<<<<< * def uploadStream(self, uploadStream): * cdef ccudart.cudaStream_t cuploadStream */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_29cudaGraphInstantiateParams_st_12uploadStream_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_uploadStream); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_29cudaGraphInstantiateParams_st_12uploadStream_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st *)__pyx_v_self), ((PyObject *)__pyx_v_uploadStream)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_29cudaGraphInstantiateParams_st_12uploadStream_2__set__(struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st *__pyx_v_self, PyObject *__pyx_v_uploadStream) { cudaStream_t __pyx_v_cuploadStream; PyObject *__pyx_v_puploadStream = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 10716, 0, __PYX_ERR(0, 10716, __pyx_L1_error)); /* "cuda/cudart.pyx":10719 * def uploadStream(self, uploadStream): * cdef ccudart.cudaStream_t cuploadStream * if uploadStream is None: # <<<<<<<<<<<<<< * cuploadStream = 0 * elif isinstance(uploadStream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_uploadStream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":10720 * cdef ccudart.cudaStream_t cuploadStream * if uploadStream is None: * cuploadStream = 0 # <<<<<<<<<<<<<< * elif isinstance(uploadStream, (cudaStream_t,cuda.CUstream)): * puploadStream = int(uploadStream) */ __pyx_v_cuploadStream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":10719 * def uploadStream(self, uploadStream): * cdef ccudart.cudaStream_t cuploadStream * if uploadStream is None: # <<<<<<<<<<<<<< * cuploadStream = 0 * elif isinstance(uploadStream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":10721 * if uploadStream is None: * cuploadStream = 0 * elif isinstance(uploadStream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * puploadStream = int(uploadStream) * cuploadStream = puploadStream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_uploadStream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":10722 * cuploadStream = 0 * elif isinstance(uploadStream, (cudaStream_t,cuda.CUstream)): * puploadStream = int(uploadStream) # <<<<<<<<<<<<<< * cuploadStream = puploadStream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_uploadStream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10722, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_puploadStream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":10723 * elif isinstance(uploadStream, (cudaStream_t,cuda.CUstream)): * puploadStream = int(uploadStream) * cuploadStream = puploadStream # <<<<<<<<<<<<<< * else: * puploadStream = int(cudaStream_t(uploadStream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_puploadStream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10723, __pyx_L1_error) __pyx_v_cuploadStream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":10721 * if uploadStream is None: * cuploadStream = 0 * elif isinstance(uploadStream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * puploadStream = int(uploadStream) * cuploadStream = puploadStream */ goto __pyx_L3; } /* "cuda/cudart.pyx":10725 * cuploadStream = puploadStream * else: * puploadStream = int(cudaStream_t(uploadStream)) # <<<<<<<<<<<<<< * cuploadStream = puploadStream * self._uploadStream._ptr[0] = cuploadStream */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_uploadStream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10725, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 10725, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_puploadStream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":10726 * else: * puploadStream = int(cudaStream_t(uploadStream)) * cuploadStream = puploadStream # <<<<<<<<<<<<<< * self._uploadStream._ptr[0] = cuploadStream * @property */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_puploadStream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10726, __pyx_L1_error) __pyx_v_cuploadStream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":10727 * puploadStream = int(cudaStream_t(uploadStream)) * cuploadStream = puploadStream * self._uploadStream._ptr[0] = cuploadStream # <<<<<<<<<<<<<< * @property * def errNode_out(self): */ (__pyx_v_self->_uploadStream->__pyx_base._ptr[0]) = __pyx_v_cuploadStream; /* "cuda/cudart.pyx":10716 * def uploadStream(self): * return self._uploadStream * @uploadStream.setter # <<<<<<<<<<<<<< * def uploadStream(self, uploadStream): * cdef ccudart.cudaStream_t cuploadStream */ /* 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.cudart.cudaGraphInstantiateParams_st.uploadStream.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v_puploadStream); __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10728 * cuploadStream = puploadStream * self._uploadStream._ptr[0] = cuploadStream * @property # <<<<<<<<<<<<<< * def errNode_out(self): * return self._errNode_out */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_29cudaGraphInstantiateParams_st_11errNode_out_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_29cudaGraphInstantiateParams_st_11errNode_out___get__(((struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_29cudaGraphInstantiateParams_st_11errNode_out___get__(struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10728, 0, __PYX_ERR(0, 10728, __pyx_L1_error)); /* "cuda/cudart.pyx":10730 * @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/cudart.pyx":10728 * cuploadStream = puploadStream * self._uploadStream._ptr[0] = cuploadStream * @property # <<<<<<<<<<<<<< * def errNode_out(self): * return self._errNode_out */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphInstantiateParams_st.errNode_out.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10731 * def errNode_out(self): * return self._errNode_out * @errNode_out.setter # <<<<<<<<<<<<<< * def errNode_out(self, errNode_out): * cdef ccudart.cudaGraphNode_t cerrNode_out */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_29cudaGraphInstantiateParams_st_11errNode_out_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_errNode_out); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_29cudaGraphInstantiateParams_st_11errNode_out_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st *)__pyx_v_self), ((PyObject *)__pyx_v_errNode_out)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_29cudaGraphInstantiateParams_st_11errNode_out_2__set__(struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st *__pyx_v_self, PyObject *__pyx_v_errNode_out) { cudaGraphNode_t __pyx_v_cerrNode_out; PyObject *__pyx_v_perrNode_out = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 10731, 0, __PYX_ERR(0, 10731, __pyx_L1_error)); /* "cuda/cudart.pyx":10734 * def errNode_out(self, errNode_out): * cdef ccudart.cudaGraphNode_t cerrNode_out * if errNode_out is None: # <<<<<<<<<<<<<< * cerrNode_out = 0 * elif isinstance(errNode_out, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_errNode_out == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":10735 * cdef ccudart.cudaGraphNode_t cerrNode_out * if errNode_out is None: * cerrNode_out = 0 # <<<<<<<<<<<<<< * elif isinstance(errNode_out, (cudaGraphNode_t,cuda.CUgraphNode)): * perrNode_out = int(errNode_out) */ __pyx_v_cerrNode_out = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":10734 * def errNode_out(self, errNode_out): * cdef ccudart.cudaGraphNode_t cerrNode_out * if errNode_out is None: # <<<<<<<<<<<<<< * cerrNode_out = 0 * elif isinstance(errNode_out, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":10736 * if errNode_out is None: * cerrNode_out = 0 * elif isinstance(errNode_out, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * perrNode_out = int(errNode_out) * cerrNode_out = perrNode_out */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_errNode_out, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":10737 * cerrNode_out = 0 * elif isinstance(errNode_out, (cudaGraphNode_t,cuda.CUgraphNode)): * perrNode_out = int(errNode_out) # <<<<<<<<<<<<<< * cerrNode_out = perrNode_out * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_errNode_out); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10737, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_perrNode_out = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":10738 * elif isinstance(errNode_out, (cudaGraphNode_t,cuda.CUgraphNode)): * perrNode_out = int(errNode_out) * cerrNode_out = perrNode_out # <<<<<<<<<<<<<< * else: * perrNode_out = int(cudaGraphNode_t(errNode_out)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_perrNode_out); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10738, __pyx_L1_error) __pyx_v_cerrNode_out = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":10736 * if errNode_out is None: * cerrNode_out = 0 * elif isinstance(errNode_out, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * perrNode_out = int(errNode_out) * cerrNode_out = perrNode_out */ goto __pyx_L3; } /* "cuda/cudart.pyx":10740 * cerrNode_out = perrNode_out * else: * perrNode_out = int(cudaGraphNode_t(errNode_out)) # <<<<<<<<<<<<<< * cerrNode_out = perrNode_out * self._errNode_out._ptr[0] = cerrNode_out */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_errNode_out); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10740, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 10740, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_perrNode_out = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":10741 * else: * perrNode_out = int(cudaGraphNode_t(errNode_out)) * cerrNode_out = perrNode_out # <<<<<<<<<<<<<< * self._errNode_out._ptr[0] = cerrNode_out * @property */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_perrNode_out); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10741, __pyx_L1_error) __pyx_v_cerrNode_out = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":10742 * perrNode_out = int(cudaGraphNode_t(errNode_out)) * cerrNode_out = perrNode_out * self._errNode_out._ptr[0] = cerrNode_out # <<<<<<<<<<<<<< * @property * def result_out(self): */ (__pyx_v_self->_errNode_out->__pyx_base._ptr[0]) = __pyx_v_cerrNode_out; /* "cuda/cudart.pyx":10731 * def errNode_out(self): * return self._errNode_out * @errNode_out.setter # <<<<<<<<<<<<<< * def errNode_out(self, errNode_out): * cdef ccudart.cudaGraphNode_t cerrNode_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.cudart.cudaGraphInstantiateParams_st.errNode_out.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v_perrNode_out); __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10743 * cerrNode_out = perrNode_out * self._errNode_out._ptr[0] = cerrNode_out * @property # <<<<<<<<<<<<<< * def result_out(self): * return cudaGraphInstantiateResult(self._ptr[0].result_out) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_29cudaGraphInstantiateParams_st_10result_out_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_29cudaGraphInstantiateParams_st_10result_out___get__(((struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_29cudaGraphInstantiateParams_st_10result_out___get__(struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10743, 0, __PYX_ERR(0, 10743, __pyx_L1_error)); /* "cuda/cudart.pyx":10745 * @property * def result_out(self): * return cudaGraphInstantiateResult(self._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_n_s_cudaGraphInstantiateResult); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10745, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaGraphInstantiateResult((__pyx_v_self->_ptr[0]).result_out); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10745, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10745, __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/cudart.pyx":10743 * cerrNode_out = perrNode_out * self._errNode_out._ptr[0] = cerrNode_out * @property # <<<<<<<<<<<<<< * def result_out(self): * return cudaGraphInstantiateResult(self._ptr[0].result_out) */ /* 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.cudart.cudaGraphInstantiateParams_st.result_out.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10746 * def result_out(self): * return cudaGraphInstantiateResult(self._ptr[0].result_out) * @result_out.setter # <<<<<<<<<<<<<< * def result_out(self, result_out not None : cudaGraphInstantiateResult): * self._ptr[0].result_out = result_out.value */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_29cudaGraphInstantiateParams_st_10result_out_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_result_out); /*proto*/ static int __pyx_pw_4cuda_6cudart_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, 10747, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_29cudaGraphInstantiateParams_st_10result_out_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st *)__pyx_v_self), ((PyObject *)__pyx_v_result_out)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_29cudaGraphInstantiateParams_st_10result_out_2__set__(struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st *__pyx_v_self, PyObject *__pyx_v_result_out) { int __pyx_r; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 10746, 0, __PYX_ERR(0, 10746, __pyx_L1_error)); /* "cuda/cudart.pyx":10748 * @result_out.setter * def result_out(self, result_out not None : cudaGraphInstantiateResult): * self._ptr[0].result_out = result_out.value # <<<<<<<<<<<<<< * * cdef class cudaGraphExecUpdateResultInfo_st: */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_result_out, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10748, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaGraphInstantiateResult)__Pyx_PyInt_As_enum__cudaGraphInstantiateResult(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 10748, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).result_out = __pyx_t_2; /* "cuda/cudart.pyx":10746 * def result_out(self): * return cudaGraphInstantiateResult(self._ptr[0].result_out) * @result_out.setter # <<<<<<<<<<<<<< * def result_out(self, result_out not None : cudaGraphInstantiateResult): * self._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.cudart.cudaGraphInstantiateParams_st.result_out.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __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_6cudart_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_6cudart_29cudaGraphInstantiateParams_st_10__reduce_cython__, "cudaGraphInstantiateParams_st.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_29cudaGraphInstantiateParams_st_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_29cudaGraphInstantiateParams_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_29cudaGraphInstantiateParams_st_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_29cudaGraphInstantiateParams_st_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_29cudaGraphInstantiateParams_st_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__255) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaGraphInstantiateParams_st.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_29cudaGraphInstantiateParams_st_12__setstate_cython__, "cudaGraphInstantiateParams_st.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_29cudaGraphInstantiateParams_st_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_29cudaGraphInstantiateParams_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_29cudaGraphInstantiateParams_st_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphInstantiateParams_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_29cudaGraphInstantiateParams_st_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_29cudaGraphInstantiateParams_st_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__256) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaGraphInstantiateParams_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10772 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 10772, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 10772, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10772, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 10772, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphExecUpdateResultInfo_st.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st___cinit__(struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 10772, 0, __PYX_ERR(0, 10772, __pyx_L1_error)); /* "cuda/cudart.pyx":10773 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":10774 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaGraphExecUpdateResultInfo_st__val); /* "cuda/cudart.pyx":10773 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":10776 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * self._errorNode = cudaGraphNode_t(_ptr=&self._ptr[0].errorNode) */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaGraphExecUpdateResultInfo_st *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":10772 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphExecUpdateResultInfo_st.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":10777 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._errorNode = cudaGraphNode_t(_ptr=&self._ptr[0].errorNode) * self._errorFromNode = cudaGraphNode_t(_ptr=&self._ptr[0].errorFromNode) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 10777, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 10777, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10777, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 10777, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphExecUpdateResultInfo_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_2__init__(struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 10777, 0, __PYX_ERR(0, 10777, __pyx_L1_error)); /* "cuda/cudart.pyx":10778 * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): * self._errorNode = cudaGraphNode_t(_ptr=&self._ptr[0].errorNode) # <<<<<<<<<<<<<< * self._errorFromNode = cudaGraphNode_t(_ptr=&self._ptr[0].errorFromNode) * def __dealloc__(self): */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10778, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).errorNode))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10778, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 10778, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10778, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_errorNode); __Pyx_DECREF((PyObject *)__pyx_v_self->_errorNode); __pyx_v_self->_errorNode = ((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":10779 * def __init__(self, void_ptr _ptr = 0): * self._errorNode = cudaGraphNode_t(_ptr=&self._ptr[0].errorNode) * self._errorFromNode = cudaGraphNode_t(_ptr=&self._ptr[0].errorFromNode) # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10779, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).errorFromNode))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10779, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_ptr, __pyx_t_1) < 0) __PYX_ERR(0, 10779, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10779, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GIVEREF(__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_6cudart_cudaGraphNode_t *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":10777 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._errorNode = cudaGraphNode_t(_ptr=&self._ptr[0].errorNode) * self._errorFromNode = cudaGraphNode_t(_ptr=&self._ptr[0].errorFromNode) */ /* 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.cudart.cudaGraphExecUpdateResultInfo_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10780 * self._errorNode = cudaGraphNode_t(_ptr=&self._ptr[0].errorNode) * self._errorFromNode = cudaGraphNode_t(_ptr=&self._ptr[0].errorFromNode) * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_32cudaGraphExecUpdateResultInfo_st_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 10780, 0, __PYX_ERR(0, 10780, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaGraphExecUpdateResultInfo_st.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":10782 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_32cudaGraphExecUpdateResultInfo_st_6getPtr, "cudaGraphExecUpdateResultInfo_st.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__257) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 10782, 0, __PYX_ERR(0, 10782, __pyx_L1_error)); /* "cuda/cudart.pyx":10783 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10783, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":10782 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaGraphExecUpdateResultInfo_st.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10784 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_32cudaGraphExecUpdateResultInfo_st_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 10784, 0, __PYX_ERR(0, 10784, __pyx_L1_error)); /* "cuda/cudart.pyx":10785 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":10786 * def __repr__(self): * if self._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, 10786, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":10787 * if self._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/cudart.pyx":10788 * str_list = [] * try: * str_list += ['result : ' + str(self.result)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['result : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_result_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10788, __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, 10788, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_result, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10788, __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, 10788, __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)) __PYX_ERR(0, 10788, __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, 10788, __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/cudart.pyx":10787 * if self._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/cudart.pyx":10789 * try: * str_list += ['result : ' + str(self.result)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['result : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 10789, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":10790 * str_list += ['result : ' + str(self.result)] * except ValueError: * str_list += ['result : '] # <<<<<<<<<<<<<< * try: * str_list += ['errorNode : ' + str(self.errorNode)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10790, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_result_ValueError); __Pyx_GIVEREF(__pyx_kp_u_result_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_result_ValueError)) __PYX_ERR(0, 10790, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10790, __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/cudart.pyx":10787 * if self._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/cudart.pyx":10791 * except ValueError: * str_list += ['result : '] * 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/cudart.pyx":10792 * str_list += ['result : '] * try: * str_list += ['errorNode : ' + str(self.errorNode)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['errorNode : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_errorNode_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10792, __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, 10792, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_errorNode, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10792, __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, 10792, __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)) __PYX_ERR(0, 10792, __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, 10792, __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/cudart.pyx":10791 * except ValueError: * str_list += ['result : '] * 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/cudart.pyx":10793 * try: * str_list += ['errorNode : ' + str(self.errorNode)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['errorNode : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 10793, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":10794 * str_list += ['errorNode : ' + str(self.errorNode)] * except ValueError: * str_list += ['errorNode : '] # <<<<<<<<<<<<<< * try: * str_list += ['errorFromNode : ' + str(self.errorFromNode)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10794, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_errorNode_ValueError); __Pyx_GIVEREF(__pyx_kp_u_errorNode_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_errorNode_ValueError)) __PYX_ERR(0, 10794, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10794, __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/cudart.pyx":10791 * except ValueError: * str_list += ['result : '] * 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/cudart.pyx":10795 * except ValueError: * str_list += ['errorNode : '] * 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/cudart.pyx":10796 * str_list += ['errorNode : '] * try: * str_list += ['errorFromNode : ' + str(self.errorFromNode)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['errorFromNode : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_errorFromNode_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10796, __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, 10796, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_errorFromNode, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10796, __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, 10796, __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)) __PYX_ERR(0, 10796, __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, 10796, __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/cudart.pyx":10795 * except ValueError: * str_list += ['errorNode : '] * 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/cudart.pyx":10797 * try: * str_list += ['errorFromNode : ' + str(self.errorFromNode)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['errorFromNode : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 10797, __pyx_L22_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":10798 * str_list += ['errorFromNode : ' + str(self.errorFromNode)] * except ValueError: * str_list += ['errorFromNode : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10798, __pyx_L22_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_errorFromNode_ValueError); __Pyx_GIVEREF(__pyx_kp_u_errorFromNode_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_errorFromNode_ValueError)) __PYX_ERR(0, 10798, __pyx_L22_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10798, __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/cudart.pyx":10795 * except ValueError: * str_list += ['errorNode : '] * 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/cudart.pyx":10799 * except ValueError: * str_list += ['errorFromNode : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10799, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":10785 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":10801 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def result(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":10784 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10802 * else: * return '' * @property # <<<<<<<<<<<<<< * def result(self): * return cudaGraphExecUpdateResult(self._ptr[0].result) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_6result_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_32cudaGraphExecUpdateResultInfo_st_6result___get__(((struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_6result___get__(struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10802, 0, __PYX_ERR(0, 10802, __pyx_L1_error)); /* "cuda/cudart.pyx":10804 * @property * def result(self): * return cudaGraphExecUpdateResult(self._ptr[0].result) # <<<<<<<<<<<<<< * @result.setter * def result(self, result not None : cudaGraphExecUpdateResult): */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaGraphExecUpdateResult); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10804, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaGraphExecUpdateResult((__pyx_v_self->_ptr[0]).result); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10804, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10804, __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/cudart.pyx":10802 * else: * return '' * @property # <<<<<<<<<<<<<< * def result(self): * return cudaGraphExecUpdateResult(self._ptr[0].result) */ /* 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.cudart.cudaGraphExecUpdateResultInfo_st.result.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10805 * def result(self): * return cudaGraphExecUpdateResult(self._ptr[0].result) * @result.setter # <<<<<<<<<<<<<< * def result(self, result not None : cudaGraphExecUpdateResult): * self._ptr[0].result = result.value */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_6result_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_result); /*proto*/ static int __pyx_pw_4cuda_6cudart_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, 10806, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_6result_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st *)__pyx_v_self), ((PyObject *)__pyx_v_result)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_6result_2__set__(struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st *__pyx_v_self, PyObject *__pyx_v_result) { int __pyx_r; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 10805, 0, __PYX_ERR(0, 10805, __pyx_L1_error)); /* "cuda/cudart.pyx":10807 * @result.setter * def result(self, result not None : cudaGraphExecUpdateResult): * self._ptr[0].result = result.value # <<<<<<<<<<<<<< * @property * def errorNode(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_result, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10807, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaGraphExecUpdateResult)__Pyx_PyInt_As_enum__cudaGraphExecUpdateResult(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 10807, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).result = __pyx_t_2; /* "cuda/cudart.pyx":10805 * def result(self): * return cudaGraphExecUpdateResult(self._ptr[0].result) * @result.setter # <<<<<<<<<<<<<< * def result(self, result not None : cudaGraphExecUpdateResult): * self._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.cudart.cudaGraphExecUpdateResultInfo_st.result.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10808 * def result(self, result not None : cudaGraphExecUpdateResult): * self._ptr[0].result = result.value * @property # <<<<<<<<<<<<<< * def errorNode(self): * return self._errorNode */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_9errorNode_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_32cudaGraphExecUpdateResultInfo_st_9errorNode___get__(((struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_9errorNode___get__(struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10808, 0, __PYX_ERR(0, 10808, __pyx_L1_error)); /* "cuda/cudart.pyx":10810 * @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/cudart.pyx":10808 * def result(self, result not None : cudaGraphExecUpdateResult): * self._ptr[0].result = result.value * @property # <<<<<<<<<<<<<< * def errorNode(self): * return self._errorNode */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphExecUpdateResultInfo_st.errorNode.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10811 * def errorNode(self): * return self._errorNode * @errorNode.setter # <<<<<<<<<<<<<< * def errorNode(self, errorNode): * cdef ccudart.cudaGraphNode_t cerrorNode */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_9errorNode_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_errorNode); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_32cudaGraphExecUpdateResultInfo_st_9errorNode_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st *)__pyx_v_self), ((PyObject *)__pyx_v_errorNode)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_9errorNode_2__set__(struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st *__pyx_v_self, PyObject *__pyx_v_errorNode) { cudaGraphNode_t __pyx_v_cerrorNode; PyObject *__pyx_v_perrorNode = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 10811, 0, __PYX_ERR(0, 10811, __pyx_L1_error)); /* "cuda/cudart.pyx":10814 * def errorNode(self, errorNode): * cdef ccudart.cudaGraphNode_t cerrorNode * if errorNode is None: # <<<<<<<<<<<<<< * cerrorNode = 0 * elif isinstance(errorNode, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_errorNode == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":10815 * cdef ccudart.cudaGraphNode_t cerrorNode * if errorNode is None: * cerrorNode = 0 # <<<<<<<<<<<<<< * elif isinstance(errorNode, (cudaGraphNode_t,cuda.CUgraphNode)): * perrorNode = int(errorNode) */ __pyx_v_cerrorNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":10814 * def errorNode(self, errorNode): * cdef ccudart.cudaGraphNode_t cerrorNode * if errorNode is None: # <<<<<<<<<<<<<< * cerrorNode = 0 * elif isinstance(errorNode, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":10816 * if errorNode is None: * cerrorNode = 0 * elif isinstance(errorNode, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * perrorNode = int(errorNode) * cerrorNode = perrorNode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_errorNode, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":10817 * cerrorNode = 0 * elif isinstance(errorNode, (cudaGraphNode_t,cuda.CUgraphNode)): * perrorNode = int(errorNode) # <<<<<<<<<<<<<< * cerrorNode = perrorNode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_errorNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10817, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_perrorNode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":10818 * elif isinstance(errorNode, (cudaGraphNode_t,cuda.CUgraphNode)): * perrorNode = int(errorNode) * cerrorNode = perrorNode # <<<<<<<<<<<<<< * else: * perrorNode = int(cudaGraphNode_t(errorNode)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_perrorNode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10818, __pyx_L1_error) __pyx_v_cerrorNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":10816 * if errorNode is None: * cerrorNode = 0 * elif isinstance(errorNode, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * perrorNode = int(errorNode) * cerrorNode = perrorNode */ goto __pyx_L3; } /* "cuda/cudart.pyx":10820 * cerrorNode = perrorNode * else: * perrorNode = int(cudaGraphNode_t(errorNode)) # <<<<<<<<<<<<<< * cerrorNode = perrorNode * self._errorNode._ptr[0] = cerrorNode */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_errorNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10820, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 10820, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_perrorNode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":10821 * else: * perrorNode = int(cudaGraphNode_t(errorNode)) * cerrorNode = perrorNode # <<<<<<<<<<<<<< * self._errorNode._ptr[0] = cerrorNode * @property */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_perrorNode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10821, __pyx_L1_error) __pyx_v_cerrorNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":10822 * perrorNode = int(cudaGraphNode_t(errorNode)) * cerrorNode = perrorNode * self._errorNode._ptr[0] = cerrorNode # <<<<<<<<<<<<<< * @property * def errorFromNode(self): */ (__pyx_v_self->_errorNode->__pyx_base._ptr[0]) = __pyx_v_cerrorNode; /* "cuda/cudart.pyx":10811 * def errorNode(self): * return self._errorNode * @errorNode.setter # <<<<<<<<<<<<<< * def errorNode(self, errorNode): * cdef ccudart.cudaGraphNode_t cerrorNode */ /* 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.cudart.cudaGraphExecUpdateResultInfo_st.errorNode.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v_perrorNode); __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10823 * cerrorNode = perrorNode * self._errorNode._ptr[0] = cerrorNode * @property # <<<<<<<<<<<<<< * def errorFromNode(self): * return self._errorFromNode */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_13errorFromNode_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_32cudaGraphExecUpdateResultInfo_st_13errorFromNode___get__(((struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_13errorFromNode___get__(struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10823, 0, __PYX_ERR(0, 10823, __pyx_L1_error)); /* "cuda/cudart.pyx":10825 * @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/cudart.pyx":10823 * cerrorNode = perrorNode * self._errorNode._ptr[0] = cerrorNode * @property # <<<<<<<<<<<<<< * def errorFromNode(self): * return self._errorFromNode */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphExecUpdateResultInfo_st.errorFromNode.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10826 * def errorFromNode(self): * return self._errorFromNode * @errorFromNode.setter # <<<<<<<<<<<<<< * def errorFromNode(self, errorFromNode): * cdef ccudart.cudaGraphNode_t cerrorFromNode */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_13errorFromNode_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_errorFromNode); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_32cudaGraphExecUpdateResultInfo_st_13errorFromNode_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st *)__pyx_v_self), ((PyObject *)__pyx_v_errorFromNode)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_13errorFromNode_2__set__(struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st *__pyx_v_self, PyObject *__pyx_v_errorFromNode) { cudaGraphNode_t __pyx_v_cerrorFromNode; PyObject *__pyx_v_perrorFromNode = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 10826, 0, __PYX_ERR(0, 10826, __pyx_L1_error)); /* "cuda/cudart.pyx":10829 * def errorFromNode(self, errorFromNode): * cdef ccudart.cudaGraphNode_t cerrorFromNode * if errorFromNode is None: # <<<<<<<<<<<<<< * cerrorFromNode = 0 * elif isinstance(errorFromNode, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_errorFromNode == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":10830 * cdef ccudart.cudaGraphNode_t cerrorFromNode * if errorFromNode is None: * cerrorFromNode = 0 # <<<<<<<<<<<<<< * elif isinstance(errorFromNode, (cudaGraphNode_t,cuda.CUgraphNode)): * perrorFromNode = int(errorFromNode) */ __pyx_v_cerrorFromNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":10829 * def errorFromNode(self, errorFromNode): * cdef ccudart.cudaGraphNode_t cerrorFromNode * if errorFromNode is None: # <<<<<<<<<<<<<< * cerrorFromNode = 0 * elif isinstance(errorFromNode, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":10831 * if errorFromNode is None: * cerrorFromNode = 0 * elif isinstance(errorFromNode, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * perrorFromNode = int(errorFromNode) * cerrorFromNode = perrorFromNode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_errorFromNode, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":10832 * cerrorFromNode = 0 * elif isinstance(errorFromNode, (cudaGraphNode_t,cuda.CUgraphNode)): * perrorFromNode = int(errorFromNode) # <<<<<<<<<<<<<< * cerrorFromNode = perrorFromNode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_errorFromNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10832, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_perrorFromNode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":10833 * elif isinstance(errorFromNode, (cudaGraphNode_t,cuda.CUgraphNode)): * perrorFromNode = int(errorFromNode) * cerrorFromNode = perrorFromNode # <<<<<<<<<<<<<< * else: * perrorFromNode = int(cudaGraphNode_t(errorFromNode)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_perrorFromNode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10833, __pyx_L1_error) __pyx_v_cerrorFromNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":10831 * if errorFromNode is None: * cerrorFromNode = 0 * elif isinstance(errorFromNode, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * perrorFromNode = int(errorFromNode) * cerrorFromNode = perrorFromNode */ goto __pyx_L3; } /* "cuda/cudart.pyx":10835 * cerrorFromNode = perrorFromNode * else: * perrorFromNode = int(cudaGraphNode_t(errorFromNode)) # <<<<<<<<<<<<<< * cerrorFromNode = perrorFromNode * self._errorFromNode._ptr[0] = cerrorFromNode */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_errorFromNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10835, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 10835, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_perrorFromNode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":10836 * else: * perrorFromNode = int(cudaGraphNode_t(errorFromNode)) * cerrorFromNode = perrorFromNode # <<<<<<<<<<<<<< * self._errorFromNode._ptr[0] = cerrorFromNode * */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_perrorFromNode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10836, __pyx_L1_error) __pyx_v_cerrorFromNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":10837 * perrorFromNode = int(cudaGraphNode_t(errorFromNode)) * cerrorFromNode = perrorFromNode * self._errorFromNode._ptr[0] = cerrorFromNode # <<<<<<<<<<<<<< * * cdef class anon_struct19: */ (__pyx_v_self->_errorFromNode->__pyx_base._ptr[0]) = __pyx_v_cerrorFromNode; /* "cuda/cudart.pyx":10826 * def errorFromNode(self): * return self._errorFromNode * @errorFromNode.setter # <<<<<<<<<<<<<< * def errorFromNode(self, errorFromNode): * cdef ccudart.cudaGraphNode_t cerrorFromNode */ /* 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.cudart.cudaGraphExecUpdateResultInfo_st.errorFromNode.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v_perrorFromNode); __Pyx_TraceReturn(Py_None, 0); __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_6cudart_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_6cudart_32cudaGraphExecUpdateResultInfo_st_10__reduce_cython__, "cudaGraphExecUpdateResultInfo_st.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__258) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaGraphExecUpdateResultInfo_st.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_32cudaGraphExecUpdateResultInfo_st_12__setstate_cython__, "cudaGraphExecUpdateResultInfo_st.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphExecUpdateResultInfo_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__259) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaGraphExecUpdateResultInfo_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10856 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct19_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct19_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 10856, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 10856, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_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:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct19.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct19___cinit__(((struct __pyx_obj_4cuda_6cudart_anon_struct19 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct19___cinit__(struct __pyx_obj_4cuda_6cudart_anon_struct19 *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 10856, 0, __PYX_ERR(0, 10856, __pyx_L1_error)); /* "cuda/cudart.pyx":10857 * """ * def __cinit__(self, void_ptr _ptr): * self._ptr = _ptr # <<<<<<<<<<<<<< * * def __init__(self, void_ptr _ptr): */ __pyx_v_self->_ptr = ((struct cudaGraphKernelNodeUpdate *)__pyx_v__ptr); /* "cuda/cudart.pyx":10856 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct19.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":10859 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct19_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct19_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 10859, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 10859, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_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:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct19.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct19_2__init__(((struct __pyx_obj_4cuda_6cudart_anon_struct19 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct19_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct19 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 10859, 0, __PYX_ERR(0, 10859, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct19.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":10861 * def __init__(self, void_ptr _ptr): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_13anon_struct19_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_13anon_struct19_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_anon_struct19 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_13anon_struct19_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct19 *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 10861, 0, __PYX_ERR(0, 10861, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.anon_struct19.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":10863 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].updateData.param * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_13anon_struct19_6getPtr, "anon_struct19.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_13anon_struct19_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct19_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct19_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct19_6getPtr(((struct __pyx_obj_4cuda_6cudart_anon_struct19 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct19_6getPtr(struct __pyx_obj_4cuda_6cudart_anon_struct19 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__260) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 10863, 0, __PYX_ERR(0, 10863, __pyx_L1_error)); /* "cuda/cudart.pyx":10864 * pass * def getPtr(self): * return &self._ptr[0].updateData.param # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).updateData.param))); 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/cudart.pyx":10863 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].updateData.param * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct19.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10865 * def getPtr(self): * return &self._ptr[0].updateData.param * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct19_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_13anon_struct19_8__repr__(((struct __pyx_obj_4cuda_6cudart_anon_struct19 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct19_8__repr__(struct __pyx_obj_4cuda_6cudart_anon_struct19 *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 10865, 0, __PYX_ERR(0, 10865, __pyx_L1_error)); /* "cuda/cudart.pyx":10866 * return &self._ptr[0].updateData.param * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":10867 * def __repr__(self): * if self._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, 10867, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":10868 * if self._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/cudart.pyx":10869 * str_list = [] * try: * str_list += ['pValue : ' + hex(self.pValue)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['pValue : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_pValue_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10869, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_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 = PyNumber_Add(__pyx_kp_u_pValue, __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)) __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/cudart.pyx":10868 * if self._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/cudart.pyx":10870 * try: * str_list += ['pValue : ' + hex(self.pValue)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['pValue : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 10870, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":10871 * str_list += ['pValue : ' + hex(self.pValue)] * except ValueError: * str_list += ['pValue : '] # <<<<<<<<<<<<<< * try: * str_list += ['offset : ' + str(self.offset)] */ __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_kp_u_pValue_ValueError); __Pyx_GIVEREF(__pyx_kp_u_pValue_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_pValue_ValueError)) __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/cudart.pyx":10868 * if self._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/cudart.pyx":10872 * except ValueError: * str_list += ['pValue : '] * 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/cudart.pyx":10873 * str_list += ['pValue : '] * try: * str_list += ['offset : ' + str(self.offset)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['offset : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_offset_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_kp_u_offset, __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)) __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/cudart.pyx":10872 * except ValueError: * str_list += ['pValue : '] * 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/cudart.pyx":10874 * try: * str_list += ['offset : ' + str(self.offset)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['offset : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 10874, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":10875 * str_list += ['offset : ' + str(self.offset)] * except ValueError: * str_list += ['offset : '] # <<<<<<<<<<<<<< * try: * str_list += ['size : ' + str(self.size)] */ __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_kp_u_offset_ValueError); __Pyx_GIVEREF(__pyx_kp_u_offset_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_offset_ValueError)) __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/cudart.pyx":10872 * except ValueError: * str_list += ['pValue : '] * 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/cudart.pyx":10876 * except ValueError: * str_list += ['offset : '] * 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/cudart.pyx":10877 * str_list += ['offset : '] * try: * str_list += ['size : ' + str(self.size)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['size : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_size_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10877, __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, 10877, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_size, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10877, __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, 10877, __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)) __PYX_ERR(0, 10877, __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, 10877, __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/cudart.pyx":10876 * except ValueError: * str_list += ['offset : '] * 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/cudart.pyx":10878 * try: * str_list += ['size : ' + str(self.size)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['size : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 10878, __pyx_L22_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":10879 * str_list += ['size : ' + str(self.size)] * except ValueError: * str_list += ['size : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10879, __pyx_L22_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_size_ValueError); __Pyx_GIVEREF(__pyx_kp_u_size_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_size_ValueError)) __PYX_ERR(0, 10879, __pyx_L22_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10879, __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/cudart.pyx":10876 * except ValueError: * str_list += ['offset : '] * 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/cudart.pyx":10880 * except ValueError: * str_list += ['size : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10880, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":10866 * return &self._ptr[0].updateData.param * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":10882 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def pValue(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":10865 * def getPtr(self): * return &self._ptr[0].updateData.param * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10883 * else: * return '' * @property # <<<<<<<<<<<<<< * def pValue(self): * return self._ptr[0].updateData.param.pValue */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct19_6pValue_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct19_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_6cudart_13anon_struct19_6pValue___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct19 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct19_6pValue___get__(struct __pyx_obj_4cuda_6cudart_anon_struct19 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10883, 0, __PYX_ERR(0, 10883, __pyx_L1_error)); /* "cuda/cudart.pyx":10885 * @property * def pValue(self): * return self._ptr[0].updateData.param.pValue # <<<<<<<<<<<<<< * @pValue.setter * def pValue(self, pValue): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_self->_ptr[0]).updateData.param.pValue)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10885, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":10883 * else: * return '' * @property # <<<<<<<<<<<<<< * def pValue(self): * return self._ptr[0].updateData.param.pValue */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct19.pValue.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10886 * def pValue(self): * return self._ptr[0].updateData.param.pValue * @pValue.setter # <<<<<<<<<<<<<< * def pValue(self, pValue): * _cpValue = utils.HelperInputVoidPtr(pValue) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct19_6pValue_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_pValue); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct19_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_6cudart_13anon_struct19_6pValue_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct19 *)__pyx_v_self), ((PyObject *)__pyx_v_pValue)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct19_6pValue_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct19 *__pyx_v_self, PyObject *__pyx_v_pValue) { PyObject *__pyx_v__cpValue = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 10886, 0, __PYX_ERR(0, 10886, __pyx_L1_error)); /* "cuda/cudart.pyx":10888 * @pValue.setter * def pValue(self, pValue): * _cpValue = utils.HelperInputVoidPtr(pValue) # <<<<<<<<<<<<<< * self._ptr[0].updateData.param.pValue = _cpValue.cptr * @property */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_pValue); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10888, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__cpValue = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":10889 * def pValue(self, pValue): * _cpValue = utils.HelperInputVoidPtr(pValue) * self._ptr[0].updateData.param.pValue = _cpValue.cptr # <<<<<<<<<<<<<< * @property * def offset(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v__cpValue, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10889, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10889, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).updateData.param.pValue = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":10886 * def pValue(self): * return self._ptr[0].updateData.param.pValue * @pValue.setter # <<<<<<<<<<<<<< * def pValue(self, pValue): * _cpValue = utils.HelperInputVoidPtr(pValue) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct19.pValue.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v__cpValue); __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10890 * _cpValue = utils.HelperInputVoidPtr(pValue) * self._ptr[0].updateData.param.pValue = _cpValue.cptr * @property # <<<<<<<<<<<<<< * def offset(self): * return self._ptr[0].updateData.param.offset */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct19_6offset_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct19_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_6cudart_13anon_struct19_6offset___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct19 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct19_6offset___get__(struct __pyx_obj_4cuda_6cudart_anon_struct19 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10890, 0, __PYX_ERR(0, 10890, __pyx_L1_error)); /* "cuda/cudart.pyx":10892 * @property * def offset(self): * return self._ptr[0].updateData.param.offset # <<<<<<<<<<<<<< * @offset.setter * def offset(self, size_t offset): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).updateData.param.offset); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10892, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":10890 * _cpValue = utils.HelperInputVoidPtr(pValue) * self._ptr[0].updateData.param.pValue = _cpValue.cptr * @property # <<<<<<<<<<<<<< * def offset(self): * return self._ptr[0].updateData.param.offset */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct19.offset.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10893 * def offset(self): * return self._ptr[0].updateData.param.offset * @offset.setter # <<<<<<<<<<<<<< * def offset(self, size_t offset): * self._ptr[0].updateData.param.offset = offset */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct19_6offset_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_offset); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct19_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_PyInt_As_size_t(__pyx_arg_offset); if (unlikely((__pyx_v_offset == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 10894, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct19.offset.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct19_6offset_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct19 *)__pyx_v_self), ((size_t)__pyx_v_offset)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct19_6offset_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct19 *__pyx_v_self, size_t __pyx_v_offset) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 10893, 0, __PYX_ERR(0, 10893, __pyx_L1_error)); /* "cuda/cudart.pyx":10895 * @offset.setter * def offset(self, size_t offset): * self._ptr[0].updateData.param.offset = offset # <<<<<<<<<<<<<< * @property * def size(self): */ (__pyx_v_self->_ptr[0]).updateData.param.offset = __pyx_v_offset; /* "cuda/cudart.pyx":10893 * def offset(self): * return self._ptr[0].updateData.param.offset * @offset.setter # <<<<<<<<<<<<<< * def offset(self, size_t offset): * self._ptr[0].updateData.param.offset = offset */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct19.offset.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":10896 * def offset(self, size_t offset): * self._ptr[0].updateData.param.offset = offset * @property # <<<<<<<<<<<<<< * def size(self): * return self._ptr[0].updateData.param.size */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct19_4size_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct19_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_6cudart_13anon_struct19_4size___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct19 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct19_4size___get__(struct __pyx_obj_4cuda_6cudart_anon_struct19 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10896, 0, __PYX_ERR(0, 10896, __pyx_L1_error)); /* "cuda/cudart.pyx":10898 * @property * def size(self): * return self._ptr[0].updateData.param.size # <<<<<<<<<<<<<< * @size.setter * def size(self, size_t size): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((__pyx_v_self->_ptr[0]).updateData.param.size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10898, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":10896 * def offset(self, size_t offset): * self._ptr[0].updateData.param.offset = offset * @property # <<<<<<<<<<<<<< * def size(self): * return self._ptr[0].updateData.param.size */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct19.size.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10899 * def size(self): * return self._ptr[0].updateData.param.size * @size.setter # <<<<<<<<<<<<<< * def size(self, size_t size): * self._ptr[0].updateData.param.size = size */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct19_4size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_size); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct19_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_PyInt_As_size_t(__pyx_arg_size); if (unlikely((__pyx_v_size == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 10900, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct19.size.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct19_4size_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct19 *)__pyx_v_self), ((size_t)__pyx_v_size)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct19_4size_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct19 *__pyx_v_self, size_t __pyx_v_size) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 10899, 0, __PYX_ERR(0, 10899, __pyx_L1_error)); /* "cuda/cudart.pyx":10901 * @size.setter * def size(self, size_t size): * self._ptr[0].updateData.param.size = size # <<<<<<<<<<<<<< * * cdef class anon_union8: */ (__pyx_v_self->_ptr[0]).updateData.param.size = __pyx_v_size; /* "cuda/cudart.pyx":10899 * def size(self): * return self._ptr[0].updateData.param.size * @size.setter # <<<<<<<<<<<<<< * def size(self, size_t size): * self._ptr[0].updateData.param.size = size */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct19.size.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_13anon_struct19_10__reduce_cython__, "anon_struct19.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_13anon_struct19_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct19_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct19_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct19_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct19 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct19_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct19 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__261) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct19.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_13anon_struct19_12__setstate_cython__, "anon_struct19.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_13anon_struct19_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct19_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct19_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct19.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct19_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct19 *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct19_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct19 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__262) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct19.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10920 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_11anon_union8_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_11anon_union8_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 10920, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 10920, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10920, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 10920, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_union8.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union8___cinit__(((struct __pyx_obj_4cuda_6cudart_anon_union8 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_11anon_union8___cinit__(struct __pyx_obj_4cuda_6cudart_anon_union8 *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 10920, 0, __PYX_ERR(0, 10920, __pyx_L1_error)); /* "cuda/cudart.pyx":10921 * """ * def __cinit__(self, void_ptr _ptr): * self._ptr = _ptr # <<<<<<<<<<<<<< * * def __init__(self, void_ptr _ptr): */ __pyx_v_self->_ptr = ((struct cudaGraphKernelNodeUpdate *)__pyx_v__ptr); /* "cuda/cudart.pyx":10920 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_union8.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":10923 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._gridDim = dim3(_ptr=&self._ptr[0].updateData.gridDim) * self._param = anon_struct19(_ptr=self._ptr) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_11anon_union8_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_11anon_union8_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 10923, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 10923, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10923, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 10923, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_union8.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union8_2__init__(((struct __pyx_obj_4cuda_6cudart_anon_union8 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_11anon_union8_2__init__(struct __pyx_obj_4cuda_6cudart_anon_union8 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 10923, 0, __PYX_ERR(0, 10923, __pyx_L1_error)); /* "cuda/cudart.pyx":10924 * * def __init__(self, void_ptr _ptr): * self._gridDim = dim3(_ptr=&self._ptr[0].updateData.gridDim) # <<<<<<<<<<<<<< * self._param = anon_struct19(_ptr=self._ptr) * def __dealloc__(self): */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10924, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).updateData.gridDim))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10924, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 10924, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_dim3), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10924, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_gridDim); __Pyx_DECREF((PyObject *)__pyx_v_self->_gridDim); __pyx_v_self->_gridDim = ((struct __pyx_obj_4cuda_6cudart_dim3 *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":10925 * def __init__(self, void_ptr _ptr): * self._gridDim = dim3(_ptr=&self._ptr[0].updateData.gridDim) * self._param = anon_struct19(_ptr=self._ptr) # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10925, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10925, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_ptr, __pyx_t_1) < 0) __PYX_ERR(0, 10925, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct19), __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10925, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GIVEREF(__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_6cudart_anon_struct19 *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":10923 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._gridDim = dim3(_ptr=&self._ptr[0].updateData.gridDim) * self._param = anon_struct19(_ptr=self._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.cudart.anon_union8.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10926 * self._gridDim = dim3(_ptr=&self._ptr[0].updateData.gridDim) * self._param = anon_struct19(_ptr=self._ptr) * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_11anon_union8_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_11anon_union8_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_anon_union8 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_11anon_union8_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_union8 *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 10926, 0, __PYX_ERR(0, 10926, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.anon_union8.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":10928 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].updateData * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_11anon_union8_6getPtr, "anon_union8.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_11anon_union8_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union8_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union8_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union8_6getPtr(((struct __pyx_obj_4cuda_6cudart_anon_union8 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union8_6getPtr(struct __pyx_obj_4cuda_6cudart_anon_union8 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__263) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 10928, 0, __PYX_ERR(0, 10928, __pyx_L1_error)); /* "cuda/cudart.pyx":10929 * pass * def getPtr(self): * return &self._ptr[0].updateData # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).updateData))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10929, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":10928 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].updateData * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_union8.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10930 * def getPtr(self): * return &self._ptr[0].updateData * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_11anon_union8_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_11anon_union8_8__repr__(((struct __pyx_obj_4cuda_6cudart_anon_union8 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union8_8__repr__(struct __pyx_obj_4cuda_6cudart_anon_union8 *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_9genexpr76__pyx_v_line = NULL; PyObject *__pyx_9genexpr77__pyx_v_line = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 10930, 0, __PYX_ERR(0, 10930, __pyx_L1_error)); /* "cuda/cudart.pyx":10931 * return &self._ptr[0].updateData * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":10932 * def __repr__(self): * if self._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, 10932, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":10933 * if self._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/cudart.pyx":10934 * str_list = [] * try: * str_list += ['gridDim :\n' + '\n'.join([' ' + line for line in str(self.gridDim).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['gridDim : '] */ { /* enter inner scope */ __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10934, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_gridDim_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10934, __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, 10934, __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, 10934, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 10934, __pyx_L12_error) #endif if (__pyx_t_8 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_7, __pyx_t_8); __Pyx_INCREF(__pyx_t_6); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(0, 10934, __pyx_L12_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10934, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_9genexpr76__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr76__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10934, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 10934, __pyx_L12_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_9genexpr76__pyx_v_line); __pyx_9genexpr76__pyx_v_line = 0; goto __pyx_L16_exit_scope; __pyx_L12_error:; __Pyx_XDECREF(__pyx_9genexpr76__pyx_v_line); __pyx_9genexpr76__pyx_v_line = 0; goto __pyx_L4_error; __pyx_L16_exit_scope:; } /* exit inner scope */ __pyx_t_7 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10934, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_gridDim, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10934, __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, 10934, __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)) __PYX_ERR(0, 10934, __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, 10934, __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/cudart.pyx":10933 * if self._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/cudart.pyx":10935 * try: * str_list += ['gridDim :\n' + '\n'.join([' ' + line for line in str(self.gridDim).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['gridDim : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.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, 10935, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":10936 * str_list += ['gridDim :\n' + '\n'.join([' ' + line for line in str(self.gridDim).splitlines()])] * except ValueError: * str_list += ['gridDim : '] # <<<<<<<<<<<<<< * 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, 10936, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_gridDim_ValueError); __Pyx_GIVEREF(__pyx_kp_u_gridDim_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_gridDim_ValueError)) __PYX_ERR(0, 10936, __pyx_L6_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 10936, __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/cudart.pyx":10933 * if self._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/cudart.pyx":10937 * except ValueError: * str_list += ['gridDim : '] * 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/cudart.pyx":10938 * str_list += ['gridDim : '] * try: * str_list += ['param :\n' + '\n'.join([' ' + line for line in str(self.param).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['param : '] */ { /* enter inner scope */ __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10938, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_param_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10938, __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, 10938, __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, 10938, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 10938, __pyx_L27_error) #endif if (__pyx_t_8 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_7 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_8); __Pyx_INCREF(__pyx_t_7); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(0, 10938, __pyx_L27_error) #else __pyx_t_7 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10938, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_7); #endif __Pyx_XDECREF_SET(__pyx_9genexpr77__pyx_v_line, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr77__pyx_v_line); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10938, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_7); if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_7))) __PYX_ERR(0, 10938, __pyx_L27_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_9genexpr77__pyx_v_line); __pyx_9genexpr77__pyx_v_line = 0; goto __pyx_L31_exit_scope; __pyx_L27_error:; __Pyx_XDECREF(__pyx_9genexpr77__pyx_v_line); __pyx_9genexpr77__pyx_v_line = 0; goto __pyx_L19_error; __pyx_L31_exit_scope:; } /* exit inner scope */ __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10938, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_param, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10938, __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, 10938, __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)) __PYX_ERR(0, 10938, __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, 10938, __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/cudart.pyx":10937 * except ValueError: * str_list += ['gridDim : '] * 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/cudart.pyx":10939 * try: * str_list += ['param :\n' + '\n'.join([' ' + line for line in str(self.param).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['param : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.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, 10939, __pyx_L21_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":10940 * str_list += ['param :\n' + '\n'.join([' ' + line for line in str(self.param).splitlines()])] * except ValueError: * str_list += ['param : '] # <<<<<<<<<<<<<< * try: * str_list += ['isEnabled : ' + str(self.isEnabled)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 10940, __pyx_L21_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_param_ValueError); __Pyx_GIVEREF(__pyx_kp_u_param_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_param_ValueError)) __PYX_ERR(0, 10940, __pyx_L21_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10940, __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/cudart.pyx":10937 * except ValueError: * str_list += ['gridDim : '] * 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/cudart.pyx":10941 * except ValueError: * str_list += ['param : '] * 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/cudart.pyx":10942 * str_list += ['param : '] * try: * str_list += ['isEnabled : ' + str(self.isEnabled)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['isEnabled : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_isEnabled_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10942, __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, 10942, __pyx_L34_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_isEnabled, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10942, __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, 10942, __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)) __PYX_ERR(0, 10942, __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, 10942, __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/cudart.pyx":10941 * except ValueError: * str_list += ['param : '] * 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/cudart.pyx":10943 * try: * str_list += ['isEnabled : ' + str(self.isEnabled)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['isEnabled : '] * return '\n'.join(str_list) */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.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, 10943, __pyx_L36_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":10944 * str_list += ['isEnabled : ' + str(self.isEnabled)] * except ValueError: * str_list += ['isEnabled : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10944, __pyx_L36_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_isEnabled_ValueError); __Pyx_GIVEREF(__pyx_kp_u_isEnabled_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_isEnabled_ValueError)) __PYX_ERR(0, 10944, __pyx_L36_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 10944, __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/cudart.pyx":10941 * except ValueError: * str_list += ['param : '] * 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/cudart.pyx":10945 * except ValueError: * str_list += ['isEnabled : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_6 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10945, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":10931 * return &self._ptr[0].updateData * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":10947 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def gridDim(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":10930 * def getPtr(self): * return &self._ptr[0].updateData * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.anon_union8.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XDECREF(__pyx_9genexpr76__pyx_v_line); __Pyx_XDECREF(__pyx_9genexpr77__pyx_v_line); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10948 * else: * return '' * @property # <<<<<<<<<<<<<< * def gridDim(self): * return self._gridDim */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_11anon_union8_7gridDim_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_11anon_union8_7gridDim___get__(((struct __pyx_obj_4cuda_6cudart_anon_union8 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union8_7gridDim___get__(struct __pyx_obj_4cuda_6cudart_anon_union8 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10948, 0, __PYX_ERR(0, 10948, __pyx_L1_error)); /* "cuda/cudart.pyx":10950 * @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/cudart.pyx":10948 * else: * return '' * @property # <<<<<<<<<<<<<< * def gridDim(self): * return self._gridDim */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_union8.gridDim.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10951 * def gridDim(self): * return self._gridDim * @gridDim.setter # <<<<<<<<<<<<<< * def gridDim(self, gridDim not None : dim3): * string.memcpy(&self._ptr[0].updateData.gridDim, gridDim.getPtr(), sizeof(self._ptr[0].updateData.gridDim)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_11anon_union8_7gridDim_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_gridDim); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_dim3, 0, "gridDim", 0))) __PYX_ERR(0, 10952, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union8_7gridDim_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_union8 *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_dim3 *)__pyx_v_gridDim)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_11anon_union8_7gridDim_2__set__(struct __pyx_obj_4cuda_6cudart_anon_union8 *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_dim3 *__pyx_v_gridDim) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 10951, 0, __PYX_ERR(0, 10951, __pyx_L1_error)); /* "cuda/cudart.pyx":10953 * @gridDim.setter * def gridDim(self, gridDim not None : dim3): * string.memcpy(&self._ptr[0].updateData.gridDim, gridDim.getPtr(), sizeof(self._ptr[0].updateData.gridDim)) # <<<<<<<<<<<<<< * @property * def param(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_gridDim), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10953, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10953, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10953, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).updateData.gridDim), ((struct dim3 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).updateData.gridDim)))); /* "cuda/cudart.pyx":10951 * def gridDim(self): * return self._gridDim * @gridDim.setter # <<<<<<<<<<<<<< * def gridDim(self, gridDim not None : dim3): * string.memcpy(&self._ptr[0].updateData.gridDim, gridDim.getPtr(), sizeof(self._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_AddTraceback("cuda.cudart.anon_union8.gridDim.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10954 * def gridDim(self, gridDim not None : dim3): * string.memcpy(&self._ptr[0].updateData.gridDim, gridDim.getPtr(), sizeof(self._ptr[0].updateData.gridDim)) * @property # <<<<<<<<<<<<<< * def param(self): * return self._param */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_11anon_union8_5param_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_11anon_union8_5param___get__(((struct __pyx_obj_4cuda_6cudart_anon_union8 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union8_5param___get__(struct __pyx_obj_4cuda_6cudart_anon_union8 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10954, 0, __PYX_ERR(0, 10954, __pyx_L1_error)); /* "cuda/cudart.pyx":10956 * @property * def param(self): * return self._param # <<<<<<<<<<<<<< * @param.setter * def param(self, param not None : anon_struct19): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_self->_param); __pyx_r = ((PyObject *)__pyx_v_self->_param); goto __pyx_L0; /* "cuda/cudart.pyx":10954 * def gridDim(self, gridDim not None : dim3): * string.memcpy(&self._ptr[0].updateData.gridDim, gridDim.getPtr(), sizeof(self._ptr[0].updateData.gridDim)) * @property # <<<<<<<<<<<<<< * def param(self): * return self._param */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_union8.param.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10957 * def param(self): * return self._param * @param.setter # <<<<<<<<<<<<<< * def param(self, param not None : anon_struct19): * string.memcpy(&self._ptr[0].updateData.param, param.getPtr(), sizeof(self._ptr[0].updateData.param)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_11anon_union8_5param_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_param); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_anon_struct19, 0, "param", 0))) __PYX_ERR(0, 10958, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union8_5param_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_union8 *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_anon_struct19 *)__pyx_v_param)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_11anon_union8_5param_2__set__(struct __pyx_obj_4cuda_6cudart_anon_union8 *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_anon_struct19 *__pyx_v_param) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 10957, 0, __PYX_ERR(0, 10957, __pyx_L1_error)); /* "cuda/cudart.pyx":10959 * @param.setter * def param(self, param not None : anon_struct19): * string.memcpy(&self._ptr[0].updateData.param, param.getPtr(), sizeof(self._ptr[0].updateData.param)) # <<<<<<<<<<<<<< * @property * def isEnabled(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_param), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10959, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10959, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10959, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).updateData.param), ((struct anon_struct19 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).updateData.param)))); /* "cuda/cudart.pyx":10957 * def param(self): * return self._param * @param.setter # <<<<<<<<<<<<<< * def param(self, param not None : anon_struct19): * string.memcpy(&self._ptr[0].updateData.param, param.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.anon_union8.param.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10960 * def param(self, param not None : anon_struct19): * string.memcpy(&self._ptr[0].updateData.param, param.getPtr(), sizeof(self._ptr[0].updateData.param)) * @property # <<<<<<<<<<<<<< * def isEnabled(self): * return self._ptr[0].updateData.isEnabled */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_11anon_union8_9isEnabled_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_11anon_union8_9isEnabled___get__(((struct __pyx_obj_4cuda_6cudart_anon_union8 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union8_9isEnabled___get__(struct __pyx_obj_4cuda_6cudart_anon_union8 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 10960, 0, __PYX_ERR(0, 10960, __pyx_L1_error)); /* "cuda/cudart.pyx":10962 * @property * def isEnabled(self): * return self._ptr[0].updateData.isEnabled # <<<<<<<<<<<<<< * @isEnabled.setter * def isEnabled(self, unsigned int isEnabled): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).updateData.isEnabled); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10962, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":10960 * def param(self, param not None : anon_struct19): * string.memcpy(&self._ptr[0].updateData.param, param.getPtr(), sizeof(self._ptr[0].updateData.param)) * @property # <<<<<<<<<<<<<< * def isEnabled(self): * return self._ptr[0].updateData.isEnabled */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_union8.isEnabled.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10963 * def isEnabled(self): * return self._ptr[0].updateData.isEnabled * @isEnabled.setter # <<<<<<<<<<<<<< * def isEnabled(self, unsigned int isEnabled): * self._ptr[0].updateData.isEnabled = isEnabled */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_11anon_union8_9isEnabled_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_isEnabled); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_isEnabled); if (unlikely((__pyx_v_isEnabled == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 10964, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.anon_union8.isEnabled.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union8_9isEnabled_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_union8 *)__pyx_v_self), ((unsigned int)__pyx_v_isEnabled)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_11anon_union8_9isEnabled_2__set__(struct __pyx_obj_4cuda_6cudart_anon_union8 *__pyx_v_self, unsigned int __pyx_v_isEnabled) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 10963, 0, __PYX_ERR(0, 10963, __pyx_L1_error)); /* "cuda/cudart.pyx":10965 * @isEnabled.setter * def isEnabled(self, unsigned int isEnabled): * self._ptr[0].updateData.isEnabled = isEnabled # <<<<<<<<<<<<<< * * cdef class cudaGraphKernelNodeUpdate: */ (__pyx_v_self->_ptr[0]).updateData.isEnabled = __pyx_v_isEnabled; /* "cuda/cudart.pyx":10963 * def isEnabled(self): * return self._ptr[0].updateData.isEnabled * @isEnabled.setter # <<<<<<<<<<<<<< * def isEnabled(self, unsigned int isEnabled): * self._ptr[0].updateData.isEnabled = isEnabled */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_union8.isEnabled.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_11anon_union8_10__reduce_cython__, "anon_union8.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_11anon_union8_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union8_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union8_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union8_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_anon_union8 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union8_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_union8 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__264) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_union8.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_11anon_union8_12__setstate_cython__, "anon_union8.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_11anon_union8_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union8_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union8_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_union8.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union8_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_anon_union8 *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union8_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_union8 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__265) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_union8.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10988 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._val_ptr = calloc(1, sizeof(ccudart.cudaGraphKernelNodeUpdate)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_25cudaGraphKernelNodeUpdate_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_25cudaGraphKernelNodeUpdate_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 10988, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 10988, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10988, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 10988, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphKernelNodeUpdate.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_25cudaGraphKernelNodeUpdate___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaGraphKernelNodeUpdate *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_25cudaGraphKernelNodeUpdate___cinit__(struct __pyx_obj_4cuda_6cudart_cudaGraphKernelNodeUpdate *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; struct cudaGraphKernelNodeUpdate *__pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 10988, 0, __PYX_ERR(0, 10988, __pyx_L1_error)); /* "cuda/cudart.pyx":10989 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._val_ptr = calloc(1, sizeof(ccudart.cudaGraphKernelNodeUpdate)) * self._ptr = self._val_ptr */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":10990 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._val_ptr = calloc(1, sizeof(ccudart.cudaGraphKernelNodeUpdate)) # <<<<<<<<<<<<<< * self._ptr = self._val_ptr * else: */ __pyx_v_self->_val_ptr = ((struct cudaGraphKernelNodeUpdate *)calloc(1, (sizeof(struct cudaGraphKernelNodeUpdate)))); /* "cuda/cudart.pyx":10991 * if _ptr == 0: * self._val_ptr = calloc(1, sizeof(ccudart.cudaGraphKernelNodeUpdate)) * self._ptr = self._val_ptr # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_t_2 = __pyx_v_self->_val_ptr; __pyx_v_self->_ptr = __pyx_t_2; /* "cuda/cudart.pyx":10989 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._val_ptr = calloc(1, sizeof(ccudart.cudaGraphKernelNodeUpdate)) * self._ptr = self._val_ptr */ goto __pyx_L3; } /* "cuda/cudart.pyx":10993 * self._ptr = self._val_ptr * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * self._node = cudaGraphDeviceNode_t(_ptr=&self._ptr[0].node) */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaGraphKernelNodeUpdate *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":10988 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._val_ptr = calloc(1, sizeof(ccudart.cudaGraphKernelNodeUpdate)) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphKernelNodeUpdate.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":10994 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._node = cudaGraphDeviceNode_t(_ptr=&self._ptr[0].node) * self._updateData = anon_union8(_ptr=self._ptr) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_25cudaGraphKernelNodeUpdate_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_25cudaGraphKernelNodeUpdate_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 10994, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 10994, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10994, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 10994, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphKernelNodeUpdate.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_25cudaGraphKernelNodeUpdate_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaGraphKernelNodeUpdate *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_25cudaGraphKernelNodeUpdate_2__init__(struct __pyx_obj_4cuda_6cudart_cudaGraphKernelNodeUpdate *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 10994, 0, __PYX_ERR(0, 10994, __pyx_L1_error)); /* "cuda/cudart.pyx":10995 * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): * self._node = cudaGraphDeviceNode_t(_ptr=&self._ptr[0].node) # <<<<<<<<<<<<<< * self._updateData = anon_union8(_ptr=self._ptr) * def __dealloc__(self): */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10995, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).node))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10995, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 10995, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphDeviceNode_t), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10995, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_node); __Pyx_DECREF((PyObject *)__pyx_v_self->_node); __pyx_v_self->_node = ((struct __pyx_obj_4cuda_6cudart_cudaGraphDeviceNode_t *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":10996 * def __init__(self, void_ptr _ptr = 0): * self._node = cudaGraphDeviceNode_t(_ptr=&self._ptr[0].node) * self._updateData = anon_union8(_ptr=self._ptr) # <<<<<<<<<<<<<< * def __dealloc__(self): * if self._val_ptr is not NULL: */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10996, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10996, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_ptr, __pyx_t_1) < 0) __PYX_ERR(0, 10996, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_anon_union8), __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10996, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GIVEREF(__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_6cudart_anon_union8 *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":10994 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._node = cudaGraphDeviceNode_t(_ptr=&self._ptr[0].node) * self._updateData = anon_union8(_ptr=self._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.cudart.cudaGraphKernelNodeUpdate.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":10997 * self._node = cudaGraphDeviceNode_t(_ptr=&self._ptr[0].node) * self._updateData = anon_union8(_ptr=self._ptr) * def __dealloc__(self): # <<<<<<<<<<<<<< * if self._val_ptr is not NULL: * free(self._val_ptr) */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_25cudaGraphKernelNodeUpdate_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_25cudaGraphKernelNodeUpdate_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaGraphKernelNodeUpdate *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_25cudaGraphKernelNodeUpdate_4__dealloc__(struct __pyx_obj_4cuda_6cudart_cudaGraphKernelNodeUpdate *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 10997, 0, __PYX_ERR(0, 10997, __pyx_L1_error)); /* "cuda/cudart.pyx":10998 * self._updateData = anon_union8(_ptr=self._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/cudart.pyx":10999 * def __dealloc__(self): * if self._val_ptr is not NULL: * free(self._val_ptr) # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ free(__pyx_v_self->_val_ptr); /* "cuda/cudart.pyx":10998 * self._updateData = anon_union8(_ptr=self._ptr) * def __dealloc__(self): * if self._val_ptr is not NULL: # <<<<<<<<<<<<<< * free(self._val_ptr) * def getPtr(self): */ } /* "cuda/cudart.pyx":10997 * self._node = cudaGraphDeviceNode_t(_ptr=&self._ptr[0].node) * self._updateData = anon_union8(_ptr=self._ptr) * def __dealloc__(self): # <<<<<<<<<<<<<< * if self._val_ptr is not NULL: * free(self._val_ptr) */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaGraphKernelNodeUpdate.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":11000 * if self._val_ptr is not NULL: * free(self._val_ptr) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_25cudaGraphKernelNodeUpdate_6getPtr, "cudaGraphKernelNodeUpdate.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_25cudaGraphKernelNodeUpdate_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_25cudaGraphKernelNodeUpdate_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_25cudaGraphKernelNodeUpdate_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_25cudaGraphKernelNodeUpdate_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaGraphKernelNodeUpdate *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaGraphKernelNodeUpdate_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaGraphKernelNodeUpdate *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__266) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 11000, 0, __PYX_ERR(0, 11000, __pyx_L1_error)); /* "cuda/cudart.pyx":11001 * free(self._val_ptr) * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11001, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11000 * if self._val_ptr is not NULL: * free(self._val_ptr) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaGraphKernelNodeUpdate.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11002 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_25cudaGraphKernelNodeUpdate_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_25cudaGraphKernelNodeUpdate_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaGraphKernelNodeUpdate *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaGraphKernelNodeUpdate_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaGraphKernelNodeUpdate *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_9genexpr78__pyx_v_line = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 11002, 0, __PYX_ERR(0, 11002, __pyx_L1_error)); /* "cuda/cudart.pyx":11003 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":11004 * def __repr__(self): * if self._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, 11004, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":11005 * if self._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/cudart.pyx":11006 * str_list = [] * try: * str_list += ['node : ' + str(self.node)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['node : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_node_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11006, __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, 11006, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_node, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11006, __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, 11006, __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)) __PYX_ERR(0, 11006, __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, 11006, __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/cudart.pyx":11005 * if self._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/cudart.pyx":11007 * try: * str_list += ['node : ' + str(self.node)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['node : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaGraphKernelNodeUpdate.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 11007, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":11008 * str_list += ['node : ' + str(self.node)] * except ValueError: * str_list += ['node : '] # <<<<<<<<<<<<<< * try: * str_list += ['field : ' + str(self.field)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11008, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_node_ValueError); __Pyx_GIVEREF(__pyx_kp_u_node_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_node_ValueError)) __PYX_ERR(0, 11008, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11008, __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/cudart.pyx":11005 * if self._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/cudart.pyx":11009 * except ValueError: * str_list += ['node : '] * 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/cudart.pyx":11010 * str_list += ['node : '] * try: * str_list += ['field : ' + str(self.field)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['field : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_field_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11010, __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, 11010, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_field, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11010, __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, 11010, __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)) __PYX_ERR(0, 11010, __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, 11010, __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/cudart.pyx":11009 * except ValueError: * str_list += ['node : '] * 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/cudart.pyx":11011 * try: * str_list += ['field : ' + str(self.field)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['field : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaGraphKernelNodeUpdate.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 11011, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":11012 * str_list += ['field : ' + str(self.field)] * except ValueError: * str_list += ['field : '] # <<<<<<<<<<<<<< * 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, 11012, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_field_ValueError); __Pyx_GIVEREF(__pyx_kp_u_field_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_field_ValueError)) __PYX_ERR(0, 11012, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11012, __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/cudart.pyx":11009 * except ValueError: * str_list += ['node : '] * 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/cudart.pyx":11013 * except ValueError: * str_list += ['field : '] * 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/cudart.pyx":11014 * str_list += ['field : '] * try: * str_list += ['updateData :\n' + '\n'.join([' ' + line for line in str(self.updateData).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['updateData : '] */ { /* enter inner scope */ __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11014, __pyx_L28_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_updateData_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11014, __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, 11014, __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, 11014, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 11014, __pyx_L28_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_8, __pyx_t_11); __Pyx_INCREF(__pyx_t_6); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 11014, __pyx_L28_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_8, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11014, __pyx_L28_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_9genexpr78__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr78__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11014, __pyx_L28_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 11014, __pyx_L28_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_9genexpr78__pyx_v_line); __pyx_9genexpr78__pyx_v_line = 0; goto __pyx_L32_exit_scope; __pyx_L28_error:; __Pyx_XDECREF(__pyx_9genexpr78__pyx_v_line); __pyx_9genexpr78__pyx_v_line = 0; goto __pyx_L20_error; __pyx_L32_exit_scope:; } /* exit inner scope */ __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11014, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_updateData, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11014, __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, 11014, __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)) __PYX_ERR(0, 11014, __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, 11014, __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/cudart.pyx":11013 * except ValueError: * str_list += ['field : '] * 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/cudart.pyx":11015 * try: * str_list += ['updateData :\n' + '\n'.join([' ' + line for line in str(self.updateData).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['updateData : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaGraphKernelNodeUpdate.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_8, &__pyx_t_6) < 0) __PYX_ERR(0, 11015, __pyx_L22_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":11016 * str_list += ['updateData :\n' + '\n'.join([' ' + line for line in str(self.updateData).splitlines()])] * except ValueError: * str_list += ['updateData : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11016, __pyx_L22_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_updateData_ValueError); __Pyx_GIVEREF(__pyx_kp_u_updateData_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_updateData_ValueError)) __PYX_ERR(0, 11016, __pyx_L22_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11016, __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/cudart.pyx":11013 * except ValueError: * str_list += ['field : '] * 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/cudart.pyx":11017 * except ValueError: * str_list += ['updateData : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_6 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11017, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11003 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":11019 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def node(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":11002 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaGraphKernelNodeUpdate.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XDECREF(__pyx_9genexpr78__pyx_v_line); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11020 * else: * return '' * @property # <<<<<<<<<<<<<< * def node(self): * return self._node */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_25cudaGraphKernelNodeUpdate_4node_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_25cudaGraphKernelNodeUpdate_4node___get__(((struct __pyx_obj_4cuda_6cudart_cudaGraphKernelNodeUpdate *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaGraphKernelNodeUpdate_4node___get__(struct __pyx_obj_4cuda_6cudart_cudaGraphKernelNodeUpdate *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11020, 0, __PYX_ERR(0, 11020, __pyx_L1_error)); /* "cuda/cudart.pyx":11022 * @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/cudart.pyx":11020 * else: * return '' * @property # <<<<<<<<<<<<<< * def node(self): * return self._node */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphKernelNodeUpdate.node.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11023 * def node(self): * return self._node * @node.setter # <<<<<<<<<<<<<< * def node(self, node): * cdef ccudart.cudaGraphDeviceNode_t cnode */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_25cudaGraphKernelNodeUpdate_4node_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_node); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_25cudaGraphKernelNodeUpdate_4node_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaGraphKernelNodeUpdate *)__pyx_v_self), ((PyObject *)__pyx_v_node)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_25cudaGraphKernelNodeUpdate_4node_2__set__(struct __pyx_obj_4cuda_6cudart_cudaGraphKernelNodeUpdate *__pyx_v_self, PyObject *__pyx_v_node) { cudaGraphDeviceNode_t __pyx_v_cnode; PyObject *__pyx_v_pnode = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 11023, 0, __PYX_ERR(0, 11023, __pyx_L1_error)); /* "cuda/cudart.pyx":11026 * def node(self, node): * cdef ccudart.cudaGraphDeviceNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphDeviceNode_t,)): */ __pyx_t_1 = (__pyx_v_node == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":11027 * cdef ccudart.cudaGraphDeviceNode_t cnode * if node is None: * cnode = 0 # <<<<<<<<<<<<<< * elif isinstance(node, (cudaGraphDeviceNode_t,)): * pnode = int(node) */ __pyx_v_cnode = ((cudaGraphDeviceNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":11026 * def node(self, node): * cdef ccudart.cudaGraphDeviceNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphDeviceNode_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":11028 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphDeviceNode_t,)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_node, __pyx_ptype_4cuda_6cudart_cudaGraphDeviceNode_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":11029 * cnode = 0 * elif isinstance(node, (cudaGraphDeviceNode_t,)): * pnode = int(node) # <<<<<<<<<<<<<< * cnode = pnode * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11029, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_pnode = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":11030 * elif isinstance(node, (cudaGraphDeviceNode_t,)): * pnode = int(node) * cnode = pnode # <<<<<<<<<<<<<< * else: * pnode = int(cudaGraphDeviceNode_t(node)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11030, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphDeviceNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":11028 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphDeviceNode_t,)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ goto __pyx_L3; } /* "cuda/cudart.pyx":11032 * cnode = pnode * else: * pnode = int(cudaGraphDeviceNode_t(node)) # <<<<<<<<<<<<<< * cnode = pnode * self._node._ptr[0] = cnode */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphDeviceNode_t), __pyx_v_node); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11032, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 11032, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_pnode = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":11033 * else: * pnode = int(cudaGraphDeviceNode_t(node)) * cnode = pnode # <<<<<<<<<<<<<< * self._node._ptr[0] = cnode * @property */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11033, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphDeviceNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":11034 * pnode = int(cudaGraphDeviceNode_t(node)) * cnode = pnode * self._node._ptr[0] = cnode # <<<<<<<<<<<<<< * @property * def field(self): */ (__pyx_v_self->_node->_ptr[0]) = __pyx_v_cnode; /* "cuda/cudart.pyx":11023 * def node(self): * return self._node * @node.setter # <<<<<<<<<<<<<< * def node(self, node): * cdef ccudart.cudaGraphDeviceNode_t cnode */ /* 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.cudart.cudaGraphKernelNodeUpdate.node.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pnode); __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11035 * cnode = pnode * self._node._ptr[0] = cnode * @property # <<<<<<<<<<<<<< * def field(self): * return cudaGraphKernelNodeField(self._ptr[0].field) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_25cudaGraphKernelNodeUpdate_5field_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_25cudaGraphKernelNodeUpdate_5field___get__(((struct __pyx_obj_4cuda_6cudart_cudaGraphKernelNodeUpdate *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaGraphKernelNodeUpdate_5field___get__(struct __pyx_obj_4cuda_6cudart_cudaGraphKernelNodeUpdate *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11035, 0, __PYX_ERR(0, 11035, __pyx_L1_error)); /* "cuda/cudart.pyx":11037 * @property * def field(self): * return cudaGraphKernelNodeField(self._ptr[0].field) # <<<<<<<<<<<<<< * @field.setter * def field(self, field not None : cudaGraphKernelNodeField): */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaGraphKernelNodeField); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11037, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaGraphKernelNodeField((__pyx_v_self->_ptr[0]).field); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11037, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11037, __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/cudart.pyx":11035 * cnode = pnode * self._node._ptr[0] = cnode * @property # <<<<<<<<<<<<<< * def field(self): * return cudaGraphKernelNodeField(self._ptr[0].field) */ /* 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.cudart.cudaGraphKernelNodeUpdate.field.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11038 * def field(self): * return cudaGraphKernelNodeField(self._ptr[0].field) * @field.setter # <<<<<<<<<<<<<< * def field(self, field not None : cudaGraphKernelNodeField): * self._ptr[0].field = field.value */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_25cudaGraphKernelNodeUpdate_5field_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_field); /*proto*/ static int __pyx_pw_4cuda_6cudart_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, 11039, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_25cudaGraphKernelNodeUpdate_5field_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaGraphKernelNodeUpdate *)__pyx_v_self), ((PyObject *)__pyx_v_field)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_25cudaGraphKernelNodeUpdate_5field_2__set__(struct __pyx_obj_4cuda_6cudart_cudaGraphKernelNodeUpdate *__pyx_v_self, PyObject *__pyx_v_field) { int __pyx_r; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 11038, 0, __PYX_ERR(0, 11038, __pyx_L1_error)); /* "cuda/cudart.pyx":11040 * @field.setter * def field(self, field not None : cudaGraphKernelNodeField): * self._ptr[0].field = field.value # <<<<<<<<<<<<<< * @property * def updateData(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_field, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11040, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaGraphKernelNodeField)__Pyx_PyInt_As_enum__cudaGraphKernelNodeField(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 11040, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).field = __pyx_t_2; /* "cuda/cudart.pyx":11038 * def field(self): * return cudaGraphKernelNodeField(self._ptr[0].field) * @field.setter # <<<<<<<<<<<<<< * def field(self, field not None : cudaGraphKernelNodeField): * self._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.cudart.cudaGraphKernelNodeUpdate.field.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11041 * def field(self, field not None : cudaGraphKernelNodeField): * self._ptr[0].field = field.value * @property # <<<<<<<<<<<<<< * def updateData(self): * return self._updateData */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_25cudaGraphKernelNodeUpdate_10updateData_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_25cudaGraphKernelNodeUpdate_10updateData___get__(((struct __pyx_obj_4cuda_6cudart_cudaGraphKernelNodeUpdate *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaGraphKernelNodeUpdate_10updateData___get__(struct __pyx_obj_4cuda_6cudart_cudaGraphKernelNodeUpdate *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11041, 0, __PYX_ERR(0, 11041, __pyx_L1_error)); /* "cuda/cudart.pyx":11043 * @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/cudart.pyx":11041 * def field(self, field not None : cudaGraphKernelNodeField): * self._ptr[0].field = field.value * @property # <<<<<<<<<<<<<< * def updateData(self): * return self._updateData */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphKernelNodeUpdate.updateData.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11044 * def updateData(self): * return self._updateData * @updateData.setter # <<<<<<<<<<<<<< * def updateData(self, updateData not None : anon_union8): * string.memcpy(&self._ptr[0].updateData, updateData.getPtr(), sizeof(self._ptr[0].updateData)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_25cudaGraphKernelNodeUpdate_10updateData_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_updateData); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_anon_union8, 0, "updateData", 0))) __PYX_ERR(0, 11045, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_25cudaGraphKernelNodeUpdate_10updateData_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaGraphKernelNodeUpdate *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_anon_union8 *)__pyx_v_updateData)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_25cudaGraphKernelNodeUpdate_10updateData_2__set__(struct __pyx_obj_4cuda_6cudart_cudaGraphKernelNodeUpdate *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_anon_union8 *__pyx_v_updateData) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 11044, 0, __PYX_ERR(0, 11044, __pyx_L1_error)); /* "cuda/cudart.pyx":11046 * @updateData.setter * def updateData(self, updateData not None : anon_union8): * string.memcpy(&self._ptr[0].updateData, updateData.getPtr(), sizeof(self._ptr[0].updateData)) # <<<<<<<<<<<<<< * * cdef class cudaLaunchMemSyncDomainMap_st: */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_updateData), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11046, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11046, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11046, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).updateData), ((union anon_union8 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).updateData)))); /* "cuda/cudart.pyx":11044 * def updateData(self): * return self._updateData * @updateData.setter # <<<<<<<<<<<<<< * def updateData(self, updateData not None : anon_union8): * string.memcpy(&self._ptr[0].updateData, updateData.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaGraphKernelNodeUpdate.updateData.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __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_6cudart_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_6cudart_25cudaGraphKernelNodeUpdate_10__reduce_cython__, "cudaGraphKernelNodeUpdate.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_25cudaGraphKernelNodeUpdate_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_25cudaGraphKernelNodeUpdate_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_25cudaGraphKernelNodeUpdate_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_25cudaGraphKernelNodeUpdate_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaGraphKernelNodeUpdate *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaGraphKernelNodeUpdate_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaGraphKernelNodeUpdate *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__267) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaGraphKernelNodeUpdate.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_25cudaGraphKernelNodeUpdate_12__setstate_cython__, "cudaGraphKernelNodeUpdate.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_25cudaGraphKernelNodeUpdate_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_25cudaGraphKernelNodeUpdate_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_25cudaGraphKernelNodeUpdate_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphKernelNodeUpdate.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_25cudaGraphKernelNodeUpdate_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaGraphKernelNodeUpdate *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaGraphKernelNodeUpdate_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaGraphKernelNodeUpdate *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__268) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaGraphKernelNodeUpdate.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11071 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 11071, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 11071, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11071, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 11071, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaLaunchMemSyncDomainMap_st.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st___cinit__(struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 11071, 0, __PYX_ERR(0, 11071, __pyx_L1_error)); /* "cuda/cudart.pyx":11072 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":11073 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaLaunchMemSyncDomainMap_st__val); /* "cuda/cudart.pyx":11072 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":11075 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * pass */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaLaunchMemSyncDomainMap_st *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":11071 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaLaunchMemSyncDomainMap_st.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":11076 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 11076, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 11076, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11076, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 11076, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaLaunchMemSyncDomainMap_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 11076, 0, __PYX_ERR(0, 11076, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaLaunchMemSyncDomainMap_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":11078 * def __init__(self, void_ptr _ptr = 0): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_29cudaLaunchMemSyncDomainMap_st_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 11078, 0, __PYX_ERR(0, 11078, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaLaunchMemSyncDomainMap_st.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":11080 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_29cudaLaunchMemSyncDomainMap_st_6getPtr, "cudaLaunchMemSyncDomainMap_st.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__269) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 11080, 0, __PYX_ERR(0, 11080, __pyx_L1_error)); /* "cuda/cudart.pyx":11081 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11081, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11080 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaLaunchMemSyncDomainMap_st.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11082 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_29cudaLaunchMemSyncDomainMap_st_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 11082, 0, __PYX_ERR(0, 11082, __pyx_L1_error)); /* "cuda/cudart.pyx":11083 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":11084 * def __repr__(self): * if self._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, 11084, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":11085 * if self._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/cudart.pyx":11086 * str_list = [] * try: * str_list += ['default_ : ' + str(self.default_)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['default_ : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_default_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11086, __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, 11086, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_default, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11086, __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, 11086, __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)) __PYX_ERR(0, 11086, __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, 11086, __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/cudart.pyx":11085 * if self._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/cudart.pyx":11087 * try: * str_list += ['default_ : ' + str(self.default_)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['default_ : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 11087, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":11088 * str_list += ['default_ : ' + str(self.default_)] * except ValueError: * str_list += ['default_ : '] # <<<<<<<<<<<<<< * try: * str_list += ['remote : ' + str(self.remote)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11088, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_default__ValueError); __Pyx_GIVEREF(__pyx_kp_u_default__ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_default__ValueError)) __PYX_ERR(0, 11088, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11088, __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/cudart.pyx":11085 * if self._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/cudart.pyx":11089 * except ValueError: * str_list += ['default_ : '] * 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/cudart.pyx":11090 * str_list += ['default_ : '] * try: * str_list += ['remote : ' + str(self.remote)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['remote : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_remote_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11090, __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, 11090, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_remote, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11090, __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, 11090, __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)) __PYX_ERR(0, 11090, __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, 11090, __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/cudart.pyx":11089 * except ValueError: * str_list += ['default_ : '] * 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/cudart.pyx":11091 * try: * str_list += ['remote : ' + str(self.remote)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['remote : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 11091, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":11092 * str_list += ['remote : ' + str(self.remote)] * except ValueError: * str_list += ['remote : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11092, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_remote_ValueError); __Pyx_GIVEREF(__pyx_kp_u_remote_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_remote_ValueError)) __PYX_ERR(0, 11092, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11092, __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/cudart.pyx":11089 * except ValueError: * str_list += ['default_ : '] * 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/cudart.pyx":11093 * except ValueError: * str_list += ['remote : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11093, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11083 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":11095 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def default_(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":11082 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11096 * else: * return '' * @property # <<<<<<<<<<<<<< * def default_(self): * return self._ptr[0].default_ */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_8default__1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_29cudaLaunchMemSyncDomainMap_st_8default____get__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_8default____get__(struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11096, 0, __PYX_ERR(0, 11096, __pyx_L1_error)); /* "cuda/cudart.pyx":11098 * @property * def default_(self): * return self._ptr[0].default_ # <<<<<<<<<<<<<< * @default_.setter * def default_(self, unsigned char default_): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_char((__pyx_v_self->_ptr[0]).default_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11098, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11096 * else: * return '' * @property # <<<<<<<<<<<<<< * def default_(self): * return self._ptr[0].default_ */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaLaunchMemSyncDomainMap_st.default_.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11099 * def default_(self): * return self._ptr[0].default_ * @default_.setter # <<<<<<<<<<<<<< * def default_(self, unsigned char default_): * self._ptr[0].default_ = default_ */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_8default__3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_default_); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_char(__pyx_arg_default_); if (unlikely((__pyx_v_default_ == (unsigned char)-1) && PyErr_Occurred())) __PYX_ERR(0, 11100, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaLaunchMemSyncDomainMap_st.default_.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_8default__2__set__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st *)__pyx_v_self), ((unsigned char)__pyx_v_default_)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_8default__2__set__(struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st *__pyx_v_self, unsigned char __pyx_v_default_) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 11099, 0, __PYX_ERR(0, 11099, __pyx_L1_error)); /* "cuda/cudart.pyx":11101 * @default_.setter * def default_(self, unsigned char default_): * self._ptr[0].default_ = default_ # <<<<<<<<<<<<<< * @property * def remote(self): */ (__pyx_v_self->_ptr[0]).default_ = __pyx_v_default_; /* "cuda/cudart.pyx":11099 * def default_(self): * return self._ptr[0].default_ * @default_.setter # <<<<<<<<<<<<<< * def default_(self, unsigned char default_): * self._ptr[0].default_ = default_ */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaLaunchMemSyncDomainMap_st.default_.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":11102 * def default_(self, unsigned char default_): * self._ptr[0].default_ = default_ * @property # <<<<<<<<<<<<<< * def remote(self): * return self._ptr[0].remote */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_6remote_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_29cudaLaunchMemSyncDomainMap_st_6remote___get__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_6remote___get__(struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11102, 0, __PYX_ERR(0, 11102, __pyx_L1_error)); /* "cuda/cudart.pyx":11104 * @property * def remote(self): * return self._ptr[0].remote # <<<<<<<<<<<<<< * @remote.setter * def remote(self, unsigned char remote): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_char((__pyx_v_self->_ptr[0]).remote); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11102 * def default_(self, unsigned char default_): * self._ptr[0].default_ = default_ * @property # <<<<<<<<<<<<<< * def remote(self): * return self._ptr[0].remote */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaLaunchMemSyncDomainMap_st.remote.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11105 * def remote(self): * return self._ptr[0].remote * @remote.setter # <<<<<<<<<<<<<< * def remote(self, unsigned char remote): * self._ptr[0].remote = remote */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_6remote_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_remote); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_char(__pyx_arg_remote); if (unlikely((__pyx_v_remote == (unsigned char)-1) && PyErr_Occurred())) __PYX_ERR(0, 11106, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaLaunchMemSyncDomainMap_st.remote.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_6remote_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st *)__pyx_v_self), ((unsigned char)__pyx_v_remote)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_6remote_2__set__(struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st *__pyx_v_self, unsigned char __pyx_v_remote) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 11105, 0, __PYX_ERR(0, 11105, __pyx_L1_error)); /* "cuda/cudart.pyx":11107 * @remote.setter * def remote(self, unsigned char remote): * self._ptr[0].remote = remote # <<<<<<<<<<<<<< * * cdef class anon_struct20: */ (__pyx_v_self->_ptr[0]).remote = __pyx_v_remote; /* "cuda/cudart.pyx":11105 * def remote(self): * return self._ptr[0].remote * @remote.setter # <<<<<<<<<<<<<< * def remote(self, unsigned char remote): * self._ptr[0].remote = remote */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaLaunchMemSyncDomainMap_st.remote.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_29cudaLaunchMemSyncDomainMap_st_10__reduce_cython__, "cudaLaunchMemSyncDomainMap_st.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__270) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaLaunchMemSyncDomainMap_st.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_29cudaLaunchMemSyncDomainMap_st_12__setstate_cython__, "cudaLaunchMemSyncDomainMap_st.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaLaunchMemSyncDomainMap_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__271) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaLaunchMemSyncDomainMap_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11126 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct20_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct20_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 11126, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 11126, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11126, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 11126, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct20.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct20___cinit__(((struct __pyx_obj_4cuda_6cudart_anon_struct20 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct20___cinit__(struct __pyx_obj_4cuda_6cudart_anon_struct20 *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 11126, 0, __PYX_ERR(0, 11126, __pyx_L1_error)); /* "cuda/cudart.pyx":11127 * """ * def __cinit__(self, void_ptr _ptr): * self._ptr = _ptr # <<<<<<<<<<<<<< * * def __init__(self, void_ptr _ptr): */ __pyx_v_self->_ptr = ((union cudaLaunchAttributeValue *)__pyx_v__ptr); /* "cuda/cudart.pyx":11126 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct20.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":11129 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct20_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct20_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 11129, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 11129, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11129, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 11129, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct20.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct20_2__init__(((struct __pyx_obj_4cuda_6cudart_anon_struct20 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct20_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct20 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 11129, 0, __PYX_ERR(0, 11129, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct20.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":11131 * def __init__(self, void_ptr _ptr): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_13anon_struct20_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_13anon_struct20_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_anon_struct20 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_13anon_struct20_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct20 *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 11131, 0, __PYX_ERR(0, 11131, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.anon_struct20.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":11133 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].clusterDim * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_13anon_struct20_6getPtr, "anon_struct20.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_13anon_struct20_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct20_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct20_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct20_6getPtr(((struct __pyx_obj_4cuda_6cudart_anon_struct20 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct20_6getPtr(struct __pyx_obj_4cuda_6cudart_anon_struct20 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__272) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 11133, 0, __PYX_ERR(0, 11133, __pyx_L1_error)); /* "cuda/cudart.pyx":11134 * pass * def getPtr(self): * return &self._ptr[0].clusterDim # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).clusterDim))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11134, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11133 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].clusterDim * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct20.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11135 * def getPtr(self): * return &self._ptr[0].clusterDim * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct20_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_13anon_struct20_8__repr__(((struct __pyx_obj_4cuda_6cudart_anon_struct20 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct20_8__repr__(struct __pyx_obj_4cuda_6cudart_anon_struct20 *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 11135, 0, __PYX_ERR(0, 11135, __pyx_L1_error)); /* "cuda/cudart.pyx":11136 * return &self._ptr[0].clusterDim * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":11137 * def __repr__(self): * if self._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, 11137, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":11138 * if self._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/cudart.pyx":11139 * str_list = [] * try: * str_list += ['x : ' + str(self.x)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['x : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_x_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11139, __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, 11139, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_x, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11139, __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, 11139, __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)) __PYX_ERR(0, 11139, __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, 11139, __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/cudart.pyx":11138 * if self._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/cudart.pyx":11140 * try: * str_list += ['x : ' + str(self.x)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['x : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 11140, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":11141 * str_list += ['x : ' + str(self.x)] * except ValueError: * str_list += ['x : '] # <<<<<<<<<<<<<< * try: * str_list += ['y : ' + str(self.y)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11141, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_x_ValueError); __Pyx_GIVEREF(__pyx_kp_u_x_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_x_ValueError)) __PYX_ERR(0, 11141, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11141, __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/cudart.pyx":11138 * if self._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/cudart.pyx":11142 * except ValueError: * str_list += ['x : '] * 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/cudart.pyx":11143 * str_list += ['x : '] * try: * str_list += ['y : ' + str(self.y)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['y : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_y_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11143, __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, 11143, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_y, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11143, __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, 11143, __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)) __PYX_ERR(0, 11143, __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, 11143, __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/cudart.pyx":11142 * except ValueError: * str_list += ['x : '] * 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/cudart.pyx":11144 * try: * str_list += ['y : ' + str(self.y)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['y : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 11144, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":11145 * str_list += ['y : ' + str(self.y)] * except ValueError: * str_list += ['y : '] # <<<<<<<<<<<<<< * try: * str_list += ['z : ' + str(self.z)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11145, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_y_ValueError); __Pyx_GIVEREF(__pyx_kp_u_y_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_y_ValueError)) __PYX_ERR(0, 11145, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11145, __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/cudart.pyx":11142 * except ValueError: * str_list += ['x : '] * 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/cudart.pyx":11146 * except ValueError: * str_list += ['y : '] * 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/cudart.pyx":11147 * str_list += ['y : '] * try: * str_list += ['z : ' + str(self.z)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['z : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_z_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11147, __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, 11147, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_z, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11147, __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, 11147, __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)) __PYX_ERR(0, 11147, __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, 11147, __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/cudart.pyx":11146 * except ValueError: * str_list += ['y : '] * 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/cudart.pyx":11148 * try: * str_list += ['z : ' + str(self.z)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['z : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 11148, __pyx_L22_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":11149 * str_list += ['z : ' + str(self.z)] * except ValueError: * str_list += ['z : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11149, __pyx_L22_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_z_ValueError); __Pyx_GIVEREF(__pyx_kp_u_z_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_z_ValueError)) __PYX_ERR(0, 11149, __pyx_L22_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11149, __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/cudart.pyx":11146 * except ValueError: * str_list += ['y : '] * 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/cudart.pyx":11150 * except ValueError: * str_list += ['z : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11150, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11136 * return &self._ptr[0].clusterDim * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":11152 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def x(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":11135 * def getPtr(self): * return &self._ptr[0].clusterDim * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11153 * else: * return '' * @property # <<<<<<<<<<<<<< * def x(self): * return self._ptr[0].clusterDim.x */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct20_1x_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct20_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_6cudart_13anon_struct20_1x___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct20 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct20_1x___get__(struct __pyx_obj_4cuda_6cudart_anon_struct20 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11153, 0, __PYX_ERR(0, 11153, __pyx_L1_error)); /* "cuda/cudart.pyx":11155 * @property * def x(self): * return self._ptr[0].clusterDim.x # <<<<<<<<<<<<<< * @x.setter * def x(self, unsigned int x): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).clusterDim.x); 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/cudart.pyx":11153 * else: * return '' * @property # <<<<<<<<<<<<<< * def x(self): * return self._ptr[0].clusterDim.x */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct20.x.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11156 * def x(self): * return self._ptr[0].clusterDim.x * @x.setter # <<<<<<<<<<<<<< * def x(self, unsigned int x): * self._ptr[0].clusterDim.x = x */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct20_1x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_x); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct20_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_PyInt_As_unsigned_int(__pyx_arg_x); if (unlikely((__pyx_v_x == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 11157, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct20.x.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct20_1x_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct20 *)__pyx_v_self), ((unsigned int)__pyx_v_x)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct20_1x_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct20 *__pyx_v_self, unsigned int __pyx_v_x) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 11156, 0, __PYX_ERR(0, 11156, __pyx_L1_error)); /* "cuda/cudart.pyx":11158 * @x.setter * def x(self, unsigned int x): * self._ptr[0].clusterDim.x = x # <<<<<<<<<<<<<< * @property * def y(self): */ (__pyx_v_self->_ptr[0]).clusterDim.x = __pyx_v_x; /* "cuda/cudart.pyx":11156 * def x(self): * return self._ptr[0].clusterDim.x * @x.setter # <<<<<<<<<<<<<< * def x(self, unsigned int x): * self._ptr[0].clusterDim.x = x */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct20.x.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":11159 * def x(self, unsigned int x): * self._ptr[0].clusterDim.x = x * @property # <<<<<<<<<<<<<< * def y(self): * return self._ptr[0].clusterDim.y */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct20_1y_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct20_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_6cudart_13anon_struct20_1y___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct20 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct20_1y___get__(struct __pyx_obj_4cuda_6cudart_anon_struct20 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11159, 0, __PYX_ERR(0, 11159, __pyx_L1_error)); /* "cuda/cudart.pyx":11161 * @property * def y(self): * return self._ptr[0].clusterDim.y # <<<<<<<<<<<<<< * @y.setter * def y(self, unsigned int y): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).clusterDim.y); 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/cudart.pyx":11159 * def x(self, unsigned int x): * self._ptr[0].clusterDim.x = x * @property # <<<<<<<<<<<<<< * def y(self): * return self._ptr[0].clusterDim.y */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct20.y.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11162 * def y(self): * return self._ptr[0].clusterDim.y * @y.setter # <<<<<<<<<<<<<< * def y(self, unsigned int y): * self._ptr[0].clusterDim.y = y */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct20_1y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_y); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct20_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_PyInt_As_unsigned_int(__pyx_arg_y); if (unlikely((__pyx_v_y == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 11163, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct20.y.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct20_1y_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct20 *)__pyx_v_self), ((unsigned int)__pyx_v_y)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct20_1y_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct20 *__pyx_v_self, unsigned int __pyx_v_y) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 11162, 0, __PYX_ERR(0, 11162, __pyx_L1_error)); /* "cuda/cudart.pyx":11164 * @y.setter * def y(self, unsigned int y): * self._ptr[0].clusterDim.y = y # <<<<<<<<<<<<<< * @property * def z(self): */ (__pyx_v_self->_ptr[0]).clusterDim.y = __pyx_v_y; /* "cuda/cudart.pyx":11162 * def y(self): * return self._ptr[0].clusterDim.y * @y.setter # <<<<<<<<<<<<<< * def y(self, unsigned int y): * self._ptr[0].clusterDim.y = y */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct20.y.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":11165 * def y(self, unsigned int y): * self._ptr[0].clusterDim.y = y * @property # <<<<<<<<<<<<<< * def z(self): * return self._ptr[0].clusterDim.z */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct20_1z_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct20_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_6cudart_13anon_struct20_1z___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct20 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct20_1z___get__(struct __pyx_obj_4cuda_6cudart_anon_struct20 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11165, 0, __PYX_ERR(0, 11165, __pyx_L1_error)); /* "cuda/cudart.pyx":11167 * @property * def z(self): * return self._ptr[0].clusterDim.z # <<<<<<<<<<<<<< * @z.setter * def z(self, unsigned int z): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).clusterDim.z); 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/cudart.pyx":11165 * def y(self, unsigned int y): * self._ptr[0].clusterDim.y = y * @property # <<<<<<<<<<<<<< * def z(self): * return self._ptr[0].clusterDim.z */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct20.z.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11168 * def z(self): * return self._ptr[0].clusterDim.z * @z.setter # <<<<<<<<<<<<<< * def z(self, unsigned int z): * self._ptr[0].clusterDim.z = z */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct20_1z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_z); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct20_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_PyInt_As_unsigned_int(__pyx_arg_z); if (unlikely((__pyx_v_z == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 11169, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct20.z.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct20_1z_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct20 *)__pyx_v_self), ((unsigned int)__pyx_v_z)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct20_1z_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct20 *__pyx_v_self, unsigned int __pyx_v_z) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 11168, 0, __PYX_ERR(0, 11168, __pyx_L1_error)); /* "cuda/cudart.pyx":11170 * @z.setter * def z(self, unsigned int z): * self._ptr[0].clusterDim.z = z # <<<<<<<<<<<<<< * * cdef class anon_struct21: */ (__pyx_v_self->_ptr[0]).clusterDim.z = __pyx_v_z; /* "cuda/cudart.pyx":11168 * def z(self): * return self._ptr[0].clusterDim.z * @z.setter # <<<<<<<<<<<<<< * def z(self, unsigned int z): * self._ptr[0].clusterDim.z = z */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct20.z.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_13anon_struct20_10__reduce_cython__, "anon_struct20.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_13anon_struct20_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct20_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct20_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct20_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct20 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct20_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct20 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__273) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct20.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_13anon_struct20_12__setstate_cython__, "anon_struct20.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_13anon_struct20_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct20_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct20_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct20.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct20_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct20 *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct20_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct20 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__274) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct20.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11189 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct21_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct21_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 11189, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 11189, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11189, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 11189, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct21.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct21___cinit__(((struct __pyx_obj_4cuda_6cudart_anon_struct21 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct21___cinit__(struct __pyx_obj_4cuda_6cudart_anon_struct21 *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 11189, 0, __PYX_ERR(0, 11189, __pyx_L1_error)); /* "cuda/cudart.pyx":11190 * """ * def __cinit__(self, void_ptr _ptr): * self._ptr = _ptr # <<<<<<<<<<<<<< * * def __init__(self, void_ptr _ptr): */ __pyx_v_self->_ptr = ((union cudaLaunchAttributeValue *)__pyx_v__ptr); /* "cuda/cudart.pyx":11189 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct21.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":11192 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._event = cudaEvent_t(_ptr=&self._ptr[0].programmaticEvent.event) * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct21_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct21_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 11192, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 11192, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11192, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 11192, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct21.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct21_2__init__(((struct __pyx_obj_4cuda_6cudart_anon_struct21 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct21_2__init__(struct __pyx_obj_4cuda_6cudart_anon_struct21 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 11192, 0, __PYX_ERR(0, 11192, __pyx_L1_error)); /* "cuda/cudart.pyx":11193 * * def __init__(self, void_ptr _ptr): * self._event = cudaEvent_t(_ptr=&self._ptr[0].programmaticEvent.event) # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11193, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).programmaticEvent.event))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11193, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 11193, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEvent_t), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11193, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_event); __Pyx_DECREF((PyObject *)__pyx_v_self->_event); __pyx_v_self->_event = ((struct __pyx_obj_4cuda_6cudart_cudaEvent_t *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":11192 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._event = cudaEvent_t(_ptr=&self._ptr[0].programmaticEvent.event) * def __dealloc__(self): */ /* 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.cudart.anon_struct21.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11194 * def __init__(self, void_ptr _ptr): * self._event = cudaEvent_t(_ptr=&self._ptr[0].programmaticEvent.event) * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_13anon_struct21_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_13anon_struct21_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_anon_struct21 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_13anon_struct21_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct21 *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 11194, 0, __PYX_ERR(0, 11194, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.anon_struct21.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":11196 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].programmaticEvent * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_13anon_struct21_6getPtr, "anon_struct21.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_13anon_struct21_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct21_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct21_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct21_6getPtr(((struct __pyx_obj_4cuda_6cudart_anon_struct21 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct21_6getPtr(struct __pyx_obj_4cuda_6cudart_anon_struct21 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__275) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 11196, 0, __PYX_ERR(0, 11196, __pyx_L1_error)); /* "cuda/cudart.pyx":11197 * pass * def getPtr(self): * return &self._ptr[0].programmaticEvent # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).programmaticEvent))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11197, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11196 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].programmaticEvent * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct21.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11198 * def getPtr(self): * return &self._ptr[0].programmaticEvent * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct21_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_13anon_struct21_8__repr__(((struct __pyx_obj_4cuda_6cudart_anon_struct21 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct21_8__repr__(struct __pyx_obj_4cuda_6cudart_anon_struct21 *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 11198, 0, __PYX_ERR(0, 11198, __pyx_L1_error)); /* "cuda/cudart.pyx":11199 * return &self._ptr[0].programmaticEvent * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":11200 * def __repr__(self): * if self._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, 11200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":11201 * if self._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/cudart.pyx":11202 * str_list = [] * try: * str_list += ['event : ' + str(self.event)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['event : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_event_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11202, __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, 11202, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_event, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11202, __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, 11202, __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)) __PYX_ERR(0, 11202, __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, 11202, __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/cudart.pyx":11201 * if self._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/cudart.pyx":11203 * try: * str_list += ['event : ' + str(self.event)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['event : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 11203, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":11204 * str_list += ['event : ' + str(self.event)] * except ValueError: * str_list += ['event : '] # <<<<<<<<<<<<<< * try: * str_list += ['flags : ' + str(self.flags)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11204, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_event_ValueError); __Pyx_GIVEREF(__pyx_kp_u_event_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_event_ValueError)) __PYX_ERR(0, 11204, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11204, __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/cudart.pyx":11201 * if self._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/cudart.pyx":11205 * except ValueError: * str_list += ['event : '] * 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/cudart.pyx":11206 * str_list += ['event : '] * try: * str_list += ['flags : ' + str(self.flags)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['flags : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_flags_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11206, __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, 11206, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_flags, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11206, __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, 11206, __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)) __PYX_ERR(0, 11206, __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, 11206, __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/cudart.pyx":11205 * except ValueError: * str_list += ['event : '] * 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/cudart.pyx":11207 * try: * str_list += ['flags : ' + str(self.flags)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['flags : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 11207, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":11208 * str_list += ['flags : ' + str(self.flags)] * except ValueError: * str_list += ['flags : '] # <<<<<<<<<<<<<< * try: * str_list += ['triggerAtBlockStart : ' + str(self.triggerAtBlockStart)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11208, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_flags_ValueError); __Pyx_GIVEREF(__pyx_kp_u_flags_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_flags_ValueError)) __PYX_ERR(0, 11208, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11208, __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/cudart.pyx":11205 * except ValueError: * str_list += ['event : '] * 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/cudart.pyx":11209 * except ValueError: * str_list += ['flags : '] * 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/cudart.pyx":11210 * str_list += ['flags : '] * try: * str_list += ['triggerAtBlockStart : ' + str(self.triggerAtBlockStart)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['triggerAtBlockStart : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_triggerAtBlockStart_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11210, __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, 11210, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_triggerAtBlockStart, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11210, __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, 11210, __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)) __PYX_ERR(0, 11210, __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, 11210, __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/cudart.pyx":11209 * except ValueError: * str_list += ['flags : '] * 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/cudart.pyx":11211 * try: * str_list += ['triggerAtBlockStart : ' + str(self.triggerAtBlockStart)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['triggerAtBlockStart : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 11211, __pyx_L22_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":11212 * str_list += ['triggerAtBlockStart : ' + str(self.triggerAtBlockStart)] * except ValueError: * str_list += ['triggerAtBlockStart : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11212, __pyx_L22_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_triggerAtBlockStart_ValueError); __Pyx_GIVEREF(__pyx_kp_u_triggerAtBlockStart_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_triggerAtBlockStart_ValueError)) __PYX_ERR(0, 11212, __pyx_L22_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11212, __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/cudart.pyx":11209 * except ValueError: * str_list += ['flags : '] * 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/cudart.pyx":11213 * except ValueError: * str_list += ['triggerAtBlockStart : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11213, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11199 * return &self._ptr[0].programmaticEvent * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":11215 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def event(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":11198 * def getPtr(self): * return &self._ptr[0].programmaticEvent * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11216 * else: * return '' * @property # <<<<<<<<<<<<<< * def event(self): * return self._event */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct21_5event_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct21_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_6cudart_13anon_struct21_5event___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct21 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct21_5event___get__(struct __pyx_obj_4cuda_6cudart_anon_struct21 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11216, 0, __PYX_ERR(0, 11216, __pyx_L1_error)); /* "cuda/cudart.pyx":11218 * @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/cudart.pyx":11216 * else: * return '' * @property # <<<<<<<<<<<<<< * def event(self): * return self._event */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct21.event.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11219 * def event(self): * return self._event * @event.setter # <<<<<<<<<<<<<< * def event(self, event): * cdef ccudart.cudaEvent_t cevent */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct21_5event_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_event); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct21_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_6cudart_13anon_struct21_5event_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct21 *)__pyx_v_self), ((PyObject *)__pyx_v_event)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct21_5event_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct21 *__pyx_v_self, PyObject *__pyx_v_event) { cudaEvent_t __pyx_v_cevent; PyObject *__pyx_v_pevent = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 11219, 0, __PYX_ERR(0, 11219, __pyx_L1_error)); /* "cuda/cudart.pyx":11222 * def event(self, event): * cdef ccudart.cudaEvent_t cevent * if event is None: # <<<<<<<<<<<<<< * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): */ __pyx_t_1 = (__pyx_v_event == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":11223 * cdef ccudart.cudaEvent_t cevent * if event is None: * cevent = 0 # <<<<<<<<<<<<<< * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) */ __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":11222 * def event(self, event): * cdef ccudart.cudaEvent_t cevent * if event is None: # <<<<<<<<<<<<<< * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":11224 * if event is None: * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pevent = int(event) * cevent = pevent */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUevent); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":11225 * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) # <<<<<<<<<<<<<< * cevent = pevent * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pevent = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":11226 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) * cevent = pevent # <<<<<<<<<<<<<< * else: * pevent = int(cudaEvent_t(event)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11226, __pyx_L1_error) __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":11224 * if event is None: * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pevent = int(event) * cevent = pevent */ goto __pyx_L3; } /* "cuda/cudart.pyx":11228 * cevent = pevent * else: * pevent = int(cudaEvent_t(event)) # <<<<<<<<<<<<<< * cevent = pevent * self._event._ptr[0] = cevent */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEvent_t), __pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11228, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11228, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pevent = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":11229 * else: * pevent = int(cudaEvent_t(event)) * cevent = pevent # <<<<<<<<<<<<<< * self._event._ptr[0] = cevent * @property */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11229, __pyx_L1_error) __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":11230 * pevent = int(cudaEvent_t(event)) * cevent = pevent * self._event._ptr[0] = cevent # <<<<<<<<<<<<<< * @property * def flags(self): */ (__pyx_v_self->_event->__pyx_base._ptr[0]) = __pyx_v_cevent; /* "cuda/cudart.pyx":11219 * def event(self): * return self._event * @event.setter # <<<<<<<<<<<<<< * def event(self, event): * cdef ccudart.cudaEvent_t cevent */ /* 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.cudart.anon_struct21.event.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pevent); __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11231 * cevent = pevent * self._event._ptr[0] = cevent * @property # <<<<<<<<<<<<<< * def flags(self): * return self._ptr[0].programmaticEvent.flags */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct21_5flags_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct21_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_6cudart_13anon_struct21_5flags___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct21 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct21_5flags___get__(struct __pyx_obj_4cuda_6cudart_anon_struct21 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11231, 0, __PYX_ERR(0, 11231, __pyx_L1_error)); /* "cuda/cudart.pyx":11233 * @property * def flags(self): * return self._ptr[0].programmaticEvent.flags # <<<<<<<<<<<<<< * @flags.setter * def flags(self, int flags): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).programmaticEvent.flags); 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/cudart.pyx":11231 * cevent = pevent * self._event._ptr[0] = cevent * @property # <<<<<<<<<<<<<< * def flags(self): * return self._ptr[0].programmaticEvent.flags */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct21.flags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11234 * def flags(self): * return self._ptr[0].programmaticEvent.flags * @flags.setter # <<<<<<<<<<<<<< * def flags(self, int flags): * self._ptr[0].programmaticEvent.flags = flags */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct21_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct21_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_PyInt_As_int(__pyx_arg_flags); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 11235, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct21.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct21_5flags_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct21 *)__pyx_v_self), ((int)__pyx_v_flags)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct21_5flags_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct21 *__pyx_v_self, int __pyx_v_flags) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 11234, 0, __PYX_ERR(0, 11234, __pyx_L1_error)); /* "cuda/cudart.pyx":11236 * @flags.setter * def flags(self, int flags): * self._ptr[0].programmaticEvent.flags = flags # <<<<<<<<<<<<<< * @property * def triggerAtBlockStart(self): */ (__pyx_v_self->_ptr[0]).programmaticEvent.flags = __pyx_v_flags; /* "cuda/cudart.pyx":11234 * def flags(self): * return self._ptr[0].programmaticEvent.flags * @flags.setter # <<<<<<<<<<<<<< * def flags(self, int flags): * self._ptr[0].programmaticEvent.flags = flags */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct21.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":11237 * def flags(self, int flags): * self._ptr[0].programmaticEvent.flags = flags * @property # <<<<<<<<<<<<<< * def triggerAtBlockStart(self): * return self._ptr[0].programmaticEvent.triggerAtBlockStart */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct21_19triggerAtBlockStart_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct21_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_6cudart_13anon_struct21_19triggerAtBlockStart___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct21 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct21_19triggerAtBlockStart___get__(struct __pyx_obj_4cuda_6cudart_anon_struct21 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11237, 0, __PYX_ERR(0, 11237, __pyx_L1_error)); /* "cuda/cudart.pyx":11239 * @property * def triggerAtBlockStart(self): * return self._ptr[0].programmaticEvent.triggerAtBlockStart # <<<<<<<<<<<<<< * @triggerAtBlockStart.setter * def triggerAtBlockStart(self, int triggerAtBlockStart): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).programmaticEvent.triggerAtBlockStart); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11239, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11237 * def flags(self, int flags): * self._ptr[0].programmaticEvent.flags = flags * @property # <<<<<<<<<<<<<< * def triggerAtBlockStart(self): * return self._ptr[0].programmaticEvent.triggerAtBlockStart */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct21.triggerAtBlockStart.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11240 * def triggerAtBlockStart(self): * return self._ptr[0].programmaticEvent.triggerAtBlockStart * @triggerAtBlockStart.setter # <<<<<<<<<<<<<< * def triggerAtBlockStart(self, int triggerAtBlockStart): * self._ptr[0].programmaticEvent.triggerAtBlockStart = triggerAtBlockStart */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct21_19triggerAtBlockStart_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_triggerAtBlockStart); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct21_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_PyInt_As_int(__pyx_arg_triggerAtBlockStart); if (unlikely((__pyx_v_triggerAtBlockStart == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 11241, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct21.triggerAtBlockStart.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct21_19triggerAtBlockStart_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct21 *)__pyx_v_self), ((int)__pyx_v_triggerAtBlockStart)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct21_19triggerAtBlockStart_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct21 *__pyx_v_self, int __pyx_v_triggerAtBlockStart) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 11240, 0, __PYX_ERR(0, 11240, __pyx_L1_error)); /* "cuda/cudart.pyx":11242 * @triggerAtBlockStart.setter * def triggerAtBlockStart(self, int triggerAtBlockStart): * self._ptr[0].programmaticEvent.triggerAtBlockStart = triggerAtBlockStart # <<<<<<<<<<<<<< * * cdef class anon_struct22: */ (__pyx_v_self->_ptr[0]).programmaticEvent.triggerAtBlockStart = __pyx_v_triggerAtBlockStart; /* "cuda/cudart.pyx":11240 * def triggerAtBlockStart(self): * return self._ptr[0].programmaticEvent.triggerAtBlockStart * @triggerAtBlockStart.setter # <<<<<<<<<<<<<< * def triggerAtBlockStart(self, int triggerAtBlockStart): * self._ptr[0].programmaticEvent.triggerAtBlockStart = triggerAtBlockStart */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct21.triggerAtBlockStart.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_13anon_struct21_10__reduce_cython__, "anon_struct21.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_13anon_struct21_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct21_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct21_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct21_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct21 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct21_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct21 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__276) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct21.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_13anon_struct21_12__setstate_cython__, "anon_struct21.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_13anon_struct21_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct21_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct21_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct21.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct21_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct21 *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct21_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct21 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__277) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct21.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11259 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct22_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct22_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 11259, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 11259, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11259, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 11259, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct22.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct22___cinit__(((struct __pyx_obj_4cuda_6cudart_anon_struct22 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct22___cinit__(struct __pyx_obj_4cuda_6cudart_anon_struct22 *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 11259, 0, __PYX_ERR(0, 11259, __pyx_L1_error)); /* "cuda/cudart.pyx":11260 * """ * def __cinit__(self, void_ptr _ptr): * self._ptr = _ptr # <<<<<<<<<<<<<< * * def __init__(self, void_ptr _ptr): */ __pyx_v_self->_ptr = ((union cudaLaunchAttributeValue *)__pyx_v__ptr); /* "cuda/cudart.pyx":11259 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct22.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":11262 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._event = cudaEvent_t(_ptr=&self._ptr[0].launchCompletionEvent.event) * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct22_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct22_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 11262, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 11262, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11262, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 11262, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct22.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct22_2__init__(((struct __pyx_obj_4cuda_6cudart_anon_struct22 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct22_2__init__(struct __pyx_obj_4cuda_6cudart_anon_struct22 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 11262, 0, __PYX_ERR(0, 11262, __pyx_L1_error)); /* "cuda/cudart.pyx":11263 * * def __init__(self, void_ptr _ptr): * self._event = cudaEvent_t(_ptr=&self._ptr[0].launchCompletionEvent.event) # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11263, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).launchCompletionEvent.event))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11263, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 11263, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEvent_t), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11263, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_event); __Pyx_DECREF((PyObject *)__pyx_v_self->_event); __pyx_v_self->_event = ((struct __pyx_obj_4cuda_6cudart_cudaEvent_t *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":11262 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._event = cudaEvent_t(_ptr=&self._ptr[0].launchCompletionEvent.event) * def __dealloc__(self): */ /* 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.cudart.anon_struct22.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11264 * def __init__(self, void_ptr _ptr): * self._event = cudaEvent_t(_ptr=&self._ptr[0].launchCompletionEvent.event) * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_13anon_struct22_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_13anon_struct22_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_anon_struct22 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_13anon_struct22_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct22 *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 11264, 0, __PYX_ERR(0, 11264, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.anon_struct22.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":11266 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].launchCompletionEvent * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_13anon_struct22_6getPtr, "anon_struct22.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_13anon_struct22_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct22_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct22_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct22_6getPtr(((struct __pyx_obj_4cuda_6cudart_anon_struct22 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct22_6getPtr(struct __pyx_obj_4cuda_6cudart_anon_struct22 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__278) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 11266, 0, __PYX_ERR(0, 11266, __pyx_L1_error)); /* "cuda/cudart.pyx":11267 * pass * def getPtr(self): * return &self._ptr[0].launchCompletionEvent # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).launchCompletionEvent))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11267, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11266 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].launchCompletionEvent * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct22.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11268 * def getPtr(self): * return &self._ptr[0].launchCompletionEvent * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct22_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_13anon_struct22_8__repr__(((struct __pyx_obj_4cuda_6cudart_anon_struct22 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct22_8__repr__(struct __pyx_obj_4cuda_6cudart_anon_struct22 *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 11268, 0, __PYX_ERR(0, 11268, __pyx_L1_error)); /* "cuda/cudart.pyx":11269 * return &self._ptr[0].launchCompletionEvent * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":11270 * def __repr__(self): * if self._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, 11270, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":11271 * if self._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/cudart.pyx":11272 * str_list = [] * try: * str_list += ['event : ' + str(self.event)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['event : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_event_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11272, __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, 11272, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_event, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11272, __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, 11272, __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)) __PYX_ERR(0, 11272, __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, 11272, __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/cudart.pyx":11271 * if self._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/cudart.pyx":11273 * try: * str_list += ['event : ' + str(self.event)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['event : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 11273, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":11274 * str_list += ['event : ' + str(self.event)] * except ValueError: * str_list += ['event : '] # <<<<<<<<<<<<<< * try: * str_list += ['flags : ' + str(self.flags)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11274, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_event_ValueError); __Pyx_GIVEREF(__pyx_kp_u_event_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_event_ValueError)) __PYX_ERR(0, 11274, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11274, __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/cudart.pyx":11271 * if self._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/cudart.pyx":11275 * except ValueError: * str_list += ['event : '] * 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/cudart.pyx":11276 * str_list += ['event : '] * try: * str_list += ['flags : ' + str(self.flags)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['flags : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_flags_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11276, __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, 11276, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_flags, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11276, __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, 11276, __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)) __PYX_ERR(0, 11276, __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, 11276, __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/cudart.pyx":11275 * except ValueError: * str_list += ['event : '] * 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/cudart.pyx":11277 * try: * str_list += ['flags : ' + str(self.flags)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['flags : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.anon_struct22.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 11277, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":11278 * str_list += ['flags : ' + str(self.flags)] * except ValueError: * str_list += ['flags : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11278, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_flags_ValueError); __Pyx_GIVEREF(__pyx_kp_u_flags_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_flags_ValueError)) __PYX_ERR(0, 11278, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11278, __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/cudart.pyx":11275 * except ValueError: * str_list += ['event : '] * 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/cudart.pyx":11279 * except ValueError: * str_list += ['flags : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11279, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11269 * return &self._ptr[0].launchCompletionEvent * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":11281 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def event(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":11268 * def getPtr(self): * return &self._ptr[0].launchCompletionEvent * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11282 * else: * return '' * @property # <<<<<<<<<<<<<< * def event(self): * return self._event */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct22_5event_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct22_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_6cudart_13anon_struct22_5event___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct22 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct22_5event___get__(struct __pyx_obj_4cuda_6cudart_anon_struct22 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11282, 0, __PYX_ERR(0, 11282, __pyx_L1_error)); /* "cuda/cudart.pyx":11284 * @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/cudart.pyx":11282 * else: * return '' * @property # <<<<<<<<<<<<<< * def event(self): * return self._event */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct22.event.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11285 * def event(self): * return self._event * @event.setter # <<<<<<<<<<<<<< * def event(self, event): * cdef ccudart.cudaEvent_t cevent */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct22_5event_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_event); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct22_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_6cudart_13anon_struct22_5event_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct22 *)__pyx_v_self), ((PyObject *)__pyx_v_event)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct22_5event_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct22 *__pyx_v_self, PyObject *__pyx_v_event) { cudaEvent_t __pyx_v_cevent; PyObject *__pyx_v_pevent = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 11285, 0, __PYX_ERR(0, 11285, __pyx_L1_error)); /* "cuda/cudart.pyx":11288 * def event(self, event): * cdef ccudart.cudaEvent_t cevent * if event is None: # <<<<<<<<<<<<<< * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): */ __pyx_t_1 = (__pyx_v_event == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":11289 * cdef ccudart.cudaEvent_t cevent * if event is None: * cevent = 0 # <<<<<<<<<<<<<< * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) */ __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":11288 * def event(self, event): * cdef ccudart.cudaEvent_t cevent * if event is None: # <<<<<<<<<<<<<< * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":11290 * if event is None: * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pevent = int(event) * cevent = pevent */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUevent); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":11291 * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) # <<<<<<<<<<<<<< * cevent = pevent * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11291, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pevent = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":11292 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) * cevent = pevent # <<<<<<<<<<<<<< * else: * pevent = int(cudaEvent_t(event)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11292, __pyx_L1_error) __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":11290 * if event is None: * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pevent = int(event) * cevent = pevent */ goto __pyx_L3; } /* "cuda/cudart.pyx":11294 * cevent = pevent * else: * pevent = int(cudaEvent_t(event)) # <<<<<<<<<<<<<< * cevent = pevent * self._event._ptr[0] = cevent */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEvent_t), __pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11294, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11294, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pevent = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":11295 * else: * pevent = int(cudaEvent_t(event)) * cevent = pevent # <<<<<<<<<<<<<< * self._event._ptr[0] = cevent * @property */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11295, __pyx_L1_error) __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":11296 * pevent = int(cudaEvent_t(event)) * cevent = pevent * self._event._ptr[0] = cevent # <<<<<<<<<<<<<< * @property * def flags(self): */ (__pyx_v_self->_event->__pyx_base._ptr[0]) = __pyx_v_cevent; /* "cuda/cudart.pyx":11285 * def event(self): * return self._event * @event.setter # <<<<<<<<<<<<<< * def event(self, event): * cdef ccudart.cudaEvent_t cevent */ /* 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.cudart.anon_struct22.event.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pevent); __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11297 * cevent = pevent * self._event._ptr[0] = cevent * @property # <<<<<<<<<<<<<< * def flags(self): * return self._ptr[0].launchCompletionEvent.flags */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct22_5flags_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct22_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_6cudart_13anon_struct22_5flags___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct22 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct22_5flags___get__(struct __pyx_obj_4cuda_6cudart_anon_struct22 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11297, 0, __PYX_ERR(0, 11297, __pyx_L1_error)); /* "cuda/cudart.pyx":11299 * @property * def flags(self): * return self._ptr[0].launchCompletionEvent.flags # <<<<<<<<<<<<<< * @flags.setter * def flags(self, int flags): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).launchCompletionEvent.flags); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11299, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11297 * cevent = pevent * self._event._ptr[0] = cevent * @property # <<<<<<<<<<<<<< * def flags(self): * return self._ptr[0].launchCompletionEvent.flags */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct22.flags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11300 * def flags(self): * return self._ptr[0].launchCompletionEvent.flags * @flags.setter # <<<<<<<<<<<<<< * def flags(self, int flags): * self._ptr[0].launchCompletionEvent.flags = flags */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct22_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct22_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_PyInt_As_int(__pyx_arg_flags); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 11301, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct22.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct22_5flags_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct22 *)__pyx_v_self), ((int)__pyx_v_flags)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct22_5flags_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct22 *__pyx_v_self, int __pyx_v_flags) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 11300, 0, __PYX_ERR(0, 11300, __pyx_L1_error)); /* "cuda/cudart.pyx":11302 * @flags.setter * def flags(self, int flags): * self._ptr[0].launchCompletionEvent.flags = flags # <<<<<<<<<<<<<< * * cdef class anon_struct23: */ (__pyx_v_self->_ptr[0]).launchCompletionEvent.flags = __pyx_v_flags; /* "cuda/cudart.pyx":11300 * def flags(self): * return self._ptr[0].launchCompletionEvent.flags * @flags.setter # <<<<<<<<<<<<<< * def flags(self, int flags): * self._ptr[0].launchCompletionEvent.flags = flags */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct22.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_13anon_struct22_10__reduce_cython__, "anon_struct22.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_13anon_struct22_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct22_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct22_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct22_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct22 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct22_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct22 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__279) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct22.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_13anon_struct22_12__setstate_cython__, "anon_struct22.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_13anon_struct22_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct22_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct22_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct22.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct22_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct22 *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct22_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct22 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__280) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct22.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11319 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct23_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct23_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 11319, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 11319, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11319, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 11319, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct23.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct23___cinit__(((struct __pyx_obj_4cuda_6cudart_anon_struct23 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct23___cinit__(struct __pyx_obj_4cuda_6cudart_anon_struct23 *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 11319, 0, __PYX_ERR(0, 11319, __pyx_L1_error)); /* "cuda/cudart.pyx":11320 * """ * def __cinit__(self, void_ptr _ptr): * self._ptr = _ptr # <<<<<<<<<<<<<< * * def __init__(self, void_ptr _ptr): */ __pyx_v_self->_ptr = ((union cudaLaunchAttributeValue *)__pyx_v__ptr); /* "cuda/cudart.pyx":11319 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct23.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":11322 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._devNode = cudaGraphDeviceNode_t(_ptr=&self._ptr[0].deviceUpdatableKernelNode.devNode) * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct23_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct23_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 11322, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 11322, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11322, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 11322, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct23.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct23_2__init__(((struct __pyx_obj_4cuda_6cudart_anon_struct23 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct23_2__init__(struct __pyx_obj_4cuda_6cudart_anon_struct23 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 11322, 0, __PYX_ERR(0, 11322, __pyx_L1_error)); /* "cuda/cudart.pyx":11323 * * def __init__(self, void_ptr _ptr): * self._devNode = cudaGraphDeviceNode_t(_ptr=&self._ptr[0].deviceUpdatableKernelNode.devNode) # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11323, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).deviceUpdatableKernelNode.devNode))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11323, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 11323, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphDeviceNode_t), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11323, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_devNode); __Pyx_DECREF((PyObject *)__pyx_v_self->_devNode); __pyx_v_self->_devNode = ((struct __pyx_obj_4cuda_6cudart_cudaGraphDeviceNode_t *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":11322 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._devNode = cudaGraphDeviceNode_t(_ptr=&self._ptr[0].deviceUpdatableKernelNode.devNode) * def __dealloc__(self): */ /* 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.cudart.anon_struct23.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11324 * def __init__(self, void_ptr _ptr): * self._devNode = cudaGraphDeviceNode_t(_ptr=&self._ptr[0].deviceUpdatableKernelNode.devNode) * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_13anon_struct23_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_13anon_struct23_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_6cudart_13anon_struct23_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_anon_struct23 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_13anon_struct23_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct23 *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 11324, 0, __PYX_ERR(0, 11324, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.anon_struct23.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":11326 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].deviceUpdatableKernelNode * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct23_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_6cudart_13anon_struct23_6getPtr, "anon_struct23.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_13anon_struct23_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct23_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct23_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct23_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct23_6getPtr(((struct __pyx_obj_4cuda_6cudart_anon_struct23 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct23_6getPtr(struct __pyx_obj_4cuda_6cudart_anon_struct23 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__281) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 11326, 0, __PYX_ERR(0, 11326, __pyx_L1_error)); /* "cuda/cudart.pyx":11327 * pass * def getPtr(self): * return &self._ptr[0].deviceUpdatableKernelNode # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).deviceUpdatableKernelNode))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11327, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11326 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].deviceUpdatableKernelNode * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct23.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11328 * def getPtr(self): * return &self._ptr[0].deviceUpdatableKernelNode * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct23_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct23_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_6cudart_13anon_struct23_8__repr__(((struct __pyx_obj_4cuda_6cudart_anon_struct23 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct23_8__repr__(struct __pyx_obj_4cuda_6cudart_anon_struct23 *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 11328, 0, __PYX_ERR(0, 11328, __pyx_L1_error)); /* "cuda/cudart.pyx":11329 * return &self._ptr[0].deviceUpdatableKernelNode * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":11330 * def __repr__(self): * if self._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, 11330, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":11331 * if self._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/cudart.pyx":11332 * str_list = [] * try: * str_list += ['deviceUpdatable : ' + str(self.deviceUpdatable)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['deviceUpdatable : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_deviceUpdatable_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11332, __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, 11332, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_deviceUpdatable, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11332, __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, 11332, __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)) __PYX_ERR(0, 11332, __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, 11332, __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/cudart.pyx":11331 * if self._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/cudart.pyx":11333 * try: * str_list += ['deviceUpdatable : ' + str(self.deviceUpdatable)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['deviceUpdatable : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.anon_struct23.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 11333, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":11334 * str_list += ['deviceUpdatable : ' + str(self.deviceUpdatable)] * except ValueError: * str_list += ['deviceUpdatable : '] # <<<<<<<<<<<<<< * try: * str_list += ['devNode : ' + str(self.devNode)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11334, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_deviceUpdatable_ValueError); __Pyx_GIVEREF(__pyx_kp_u_deviceUpdatable_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_deviceUpdatable_ValueError)) __PYX_ERR(0, 11334, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11334, __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/cudart.pyx":11331 * if self._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/cudart.pyx":11335 * except ValueError: * str_list += ['deviceUpdatable : '] * 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/cudart.pyx":11336 * str_list += ['deviceUpdatable : '] * try: * str_list += ['devNode : ' + str(self.devNode)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['devNode : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_devNode_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11336, __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, 11336, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_devNode, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11336, __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, 11336, __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)) __PYX_ERR(0, 11336, __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, 11336, __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/cudart.pyx":11335 * except ValueError: * str_list += ['deviceUpdatable : '] * 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/cudart.pyx":11337 * try: * str_list += ['devNode : ' + str(self.devNode)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['devNode : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.anon_struct23.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 11337, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":11338 * str_list += ['devNode : ' + str(self.devNode)] * except ValueError: * str_list += ['devNode : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11338, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_devNode_ValueError); __Pyx_GIVEREF(__pyx_kp_u_devNode_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_devNode_ValueError)) __PYX_ERR(0, 11338, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11338, __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/cudart.pyx":11335 * except ValueError: * str_list += ['deviceUpdatable : '] * 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/cudart.pyx":11339 * except ValueError: * str_list += ['devNode : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11339, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11329 * return &self._ptr[0].deviceUpdatableKernelNode * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":11341 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def deviceUpdatable(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":11328 * def getPtr(self): * return &self._ptr[0].deviceUpdatableKernelNode * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.anon_struct23.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11342 * else: * return '' * @property # <<<<<<<<<<<<<< * def deviceUpdatable(self): * return self._ptr[0].deviceUpdatableKernelNode.deviceUpdatable */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct23_15deviceUpdatable_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct23_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_6cudart_13anon_struct23_15deviceUpdatable___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct23 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct23_15deviceUpdatable___get__(struct __pyx_obj_4cuda_6cudart_anon_struct23 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11342, 0, __PYX_ERR(0, 11342, __pyx_L1_error)); /* "cuda/cudart.pyx":11344 * @property * def deviceUpdatable(self): * return self._ptr[0].deviceUpdatableKernelNode.deviceUpdatable # <<<<<<<<<<<<<< * @deviceUpdatable.setter * def deviceUpdatable(self, int deviceUpdatable): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).deviceUpdatableKernelNode.deviceUpdatable); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11344, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11342 * else: * return '' * @property # <<<<<<<<<<<<<< * def deviceUpdatable(self): * return self._ptr[0].deviceUpdatableKernelNode.deviceUpdatable */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct23.deviceUpdatable.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11345 * def deviceUpdatable(self): * return self._ptr[0].deviceUpdatableKernelNode.deviceUpdatable * @deviceUpdatable.setter # <<<<<<<<<<<<<< * def deviceUpdatable(self, int deviceUpdatable): * self._ptr[0].deviceUpdatableKernelNode.deviceUpdatable = deviceUpdatable */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct23_15deviceUpdatable_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_deviceUpdatable); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct23_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_PyInt_As_int(__pyx_arg_deviceUpdatable); if (unlikely((__pyx_v_deviceUpdatable == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 11346, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct23.deviceUpdatable.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct23_15deviceUpdatable_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct23 *)__pyx_v_self), ((int)__pyx_v_deviceUpdatable)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct23_15deviceUpdatable_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct23 *__pyx_v_self, int __pyx_v_deviceUpdatable) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 11345, 0, __PYX_ERR(0, 11345, __pyx_L1_error)); /* "cuda/cudart.pyx":11347 * @deviceUpdatable.setter * def deviceUpdatable(self, int deviceUpdatable): * self._ptr[0].deviceUpdatableKernelNode.deviceUpdatable = deviceUpdatable # <<<<<<<<<<<<<< * @property * def devNode(self): */ (__pyx_v_self->_ptr[0]).deviceUpdatableKernelNode.deviceUpdatable = __pyx_v_deviceUpdatable; /* "cuda/cudart.pyx":11345 * def deviceUpdatable(self): * return self._ptr[0].deviceUpdatableKernelNode.deviceUpdatable * @deviceUpdatable.setter # <<<<<<<<<<<<<< * def deviceUpdatable(self, int deviceUpdatable): * self._ptr[0].deviceUpdatableKernelNode.deviceUpdatable = deviceUpdatable */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct23.deviceUpdatable.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":11348 * def deviceUpdatable(self, int deviceUpdatable): * self._ptr[0].deviceUpdatableKernelNode.deviceUpdatable = deviceUpdatable * @property # <<<<<<<<<<<<<< * def devNode(self): * return self._devNode */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct23_7devNode_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct23_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_6cudart_13anon_struct23_7devNode___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct23 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct23_7devNode___get__(struct __pyx_obj_4cuda_6cudart_anon_struct23 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11348, 0, __PYX_ERR(0, 11348, __pyx_L1_error)); /* "cuda/cudart.pyx":11350 * @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/cudart.pyx":11348 * def deviceUpdatable(self, int deviceUpdatable): * self._ptr[0].deviceUpdatableKernelNode.deviceUpdatable = deviceUpdatable * @property # <<<<<<<<<<<<<< * def devNode(self): * return self._devNode */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct23.devNode.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11351 * def devNode(self): * return self._devNode * @devNode.setter # <<<<<<<<<<<<<< * def devNode(self, devNode): * cdef ccudart.cudaGraphDeviceNode_t cdevNode */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct23_7devNode_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_devNode); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct23_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_6cudart_13anon_struct23_7devNode_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct23 *)__pyx_v_self), ((PyObject *)__pyx_v_devNode)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct23_7devNode_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct23 *__pyx_v_self, PyObject *__pyx_v_devNode) { cudaGraphDeviceNode_t __pyx_v_cdevNode; PyObject *__pyx_v_pdevNode = NULL; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 11351, 0, __PYX_ERR(0, 11351, __pyx_L1_error)); /* "cuda/cudart.pyx":11354 * def devNode(self, devNode): * cdef ccudart.cudaGraphDeviceNode_t cdevNode * if devNode is None: # <<<<<<<<<<<<<< * cdevNode = 0 * elif isinstance(devNode, (cudaGraphDeviceNode_t,)): */ __pyx_t_1 = (__pyx_v_devNode == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":11355 * cdef ccudart.cudaGraphDeviceNode_t cdevNode * if devNode is None: * cdevNode = 0 # <<<<<<<<<<<<<< * elif isinstance(devNode, (cudaGraphDeviceNode_t,)): * pdevNode = int(devNode) */ __pyx_v_cdevNode = ((cudaGraphDeviceNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":11354 * def devNode(self, devNode): * cdef ccudart.cudaGraphDeviceNode_t cdevNode * if devNode is None: # <<<<<<<<<<<<<< * cdevNode = 0 * elif isinstance(devNode, (cudaGraphDeviceNode_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":11356 * if devNode is None: * cdevNode = 0 * elif isinstance(devNode, (cudaGraphDeviceNode_t,)): # <<<<<<<<<<<<<< * pdevNode = int(devNode) * cdevNode = pdevNode */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_devNode, __pyx_ptype_4cuda_6cudart_cudaGraphDeviceNode_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":11357 * cdevNode = 0 * elif isinstance(devNode, (cudaGraphDeviceNode_t,)): * pdevNode = int(devNode) # <<<<<<<<<<<<<< * cdevNode = pdevNode * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_devNode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11357, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_pdevNode = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":11358 * elif isinstance(devNode, (cudaGraphDeviceNode_t,)): * pdevNode = int(devNode) * cdevNode = pdevNode # <<<<<<<<<<<<<< * else: * pdevNode = int(cudaGraphDeviceNode_t(devNode)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pdevNode); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11358, __pyx_L1_error) __pyx_v_cdevNode = ((cudaGraphDeviceNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":11356 * if devNode is None: * cdevNode = 0 * elif isinstance(devNode, (cudaGraphDeviceNode_t,)): # <<<<<<<<<<<<<< * pdevNode = int(devNode) * cdevNode = pdevNode */ goto __pyx_L3; } /* "cuda/cudart.pyx":11360 * cdevNode = pdevNode * else: * pdevNode = int(cudaGraphDeviceNode_t(devNode)) # <<<<<<<<<<<<<< * cdevNode = pdevNode * self._devNode._ptr[0] = cdevNode */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphDeviceNode_t), __pyx_v_devNode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11360, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 11360, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_pdevNode = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":11361 * else: * pdevNode = int(cudaGraphDeviceNode_t(devNode)) * cdevNode = pdevNode # <<<<<<<<<<<<<< * self._devNode._ptr[0] = cdevNode * */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pdevNode); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11361, __pyx_L1_error) __pyx_v_cdevNode = ((cudaGraphDeviceNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":11362 * pdevNode = int(cudaGraphDeviceNode_t(devNode)) * cdevNode = pdevNode * self._devNode._ptr[0] = cdevNode # <<<<<<<<<<<<<< * * cdef class cudaLaunchAttributeValue: */ (__pyx_v_self->_devNode->_ptr[0]) = __pyx_v_cdevNode; /* "cuda/cudart.pyx":11351 * def devNode(self): * return self._devNode * @devNode.setter # <<<<<<<<<<<<<< * def devNode(self, devNode): * cdef ccudart.cudaGraphDeviceNode_t cdevNode */ /* 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.cudart.anon_struct23.devNode.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pdevNode); __Pyx_TraceReturn(Py_None, 0); __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_6cudart_13anon_struct23_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_6cudart_13anon_struct23_10__reduce_cython__, "anon_struct23.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_13anon_struct23_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct23_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct23_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct23_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct23_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct23 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct23_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct23 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__282) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct23.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_13anon_struct23_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_6cudart_13anon_struct23_12__setstate_cython__, "anon_struct23.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_13anon_struct23_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct23_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct23_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct23_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct23.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct23_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct23 *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct23_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct23 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__283) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct23.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11435 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 11435, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 11435, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11435, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 11435, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue___cinit__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 11435, 0, __PYX_ERR(0, 11435, __pyx_L1_error)); /* "cuda/cudart.pyx":11436 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":11437 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaLaunchAttributeValue__val); /* "cuda/cudart.pyx":11436 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":11439 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * self._accessPolicyWindow = cudaAccessPolicyWindow(_ptr=&self._ptr[0].accessPolicyWindow) */ /*else*/ { __pyx_v_self->_ptr = ((union cudaLaunchAttributeValue *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":11435 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":11440 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._accessPolicyWindow = cudaAccessPolicyWindow(_ptr=&self._ptr[0].accessPolicyWindow) * self._clusterDim = anon_struct20(_ptr=self._ptr) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 11440, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 11440, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11440, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 11440, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_2__init__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 11440, 0, __PYX_ERR(0, 11440, __pyx_L1_error)); /* "cuda/cudart.pyx":11441 * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): * self._accessPolicyWindow = cudaAccessPolicyWindow(_ptr=&self._ptr[0].accessPolicyWindow) # <<<<<<<<<<<<<< * self._clusterDim = anon_struct20(_ptr=self._ptr) * self._programmaticEvent = anon_struct21(_ptr=self._ptr) */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11441, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).accessPolicyWindow))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11441, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 11441, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaAccessPolicyWindow), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11441, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_accessPolicyWindow); __Pyx_DECREF((PyObject *)__pyx_v_self->_accessPolicyWindow); __pyx_v_self->_accessPolicyWindow = ((struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":11442 * def __init__(self, void_ptr _ptr = 0): * self._accessPolicyWindow = cudaAccessPolicyWindow(_ptr=&self._ptr[0].accessPolicyWindow) * self._clusterDim = anon_struct20(_ptr=self._ptr) # <<<<<<<<<<<<<< * self._programmaticEvent = anon_struct21(_ptr=self._ptr) * self._memSyncDomainMap = cudaLaunchMemSyncDomainMap(_ptr=&self._ptr[0].memSyncDomainMap) */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11442, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11442, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_ptr, __pyx_t_1) < 0) __PYX_ERR(0, 11442, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct20), __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11442, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GIVEREF(__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_6cudart_anon_struct20 *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":11443 * self._accessPolicyWindow = cudaAccessPolicyWindow(_ptr=&self._ptr[0].accessPolicyWindow) * self._clusterDim = anon_struct20(_ptr=self._ptr) * self._programmaticEvent = anon_struct21(_ptr=self._ptr) # <<<<<<<<<<<<<< * self._memSyncDomainMap = cudaLaunchMemSyncDomainMap(_ptr=&self._ptr[0].memSyncDomainMap) * self._launchCompletionEvent = anon_struct22(_ptr=self._ptr) */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11443, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11443, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 11443, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct21), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11443, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_programmaticEvent); __Pyx_DECREF((PyObject *)__pyx_v_self->_programmaticEvent); __pyx_v_self->_programmaticEvent = ((struct __pyx_obj_4cuda_6cudart_anon_struct21 *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":11444 * self._clusterDim = anon_struct20(_ptr=self._ptr) * self._programmaticEvent = anon_struct21(_ptr=self._ptr) * self._memSyncDomainMap = cudaLaunchMemSyncDomainMap(_ptr=&self._ptr[0].memSyncDomainMap) # <<<<<<<<<<<<<< * self._launchCompletionEvent = anon_struct22(_ptr=self._ptr) * self._deviceUpdatableKernelNode = anon_struct23(_ptr=self._ptr) */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11444, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).memSyncDomainMap))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11444, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_ptr, __pyx_t_1) < 0) __PYX_ERR(0, 11444, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap), __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11444, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GIVEREF(__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_6cudart_cudaLaunchMemSyncDomainMap *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":11445 * self._programmaticEvent = anon_struct21(_ptr=self._ptr) * self._memSyncDomainMap = cudaLaunchMemSyncDomainMap(_ptr=&self._ptr[0].memSyncDomainMap) * self._launchCompletionEvent = anon_struct22(_ptr=self._ptr) # <<<<<<<<<<<<<< * self._deviceUpdatableKernelNode = anon_struct23(_ptr=self._ptr) * def __dealloc__(self): */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11445, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11445, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 11445, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct22), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11445, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_launchCompletionEvent); __Pyx_DECREF((PyObject *)__pyx_v_self->_launchCompletionEvent); __pyx_v_self->_launchCompletionEvent = ((struct __pyx_obj_4cuda_6cudart_anon_struct22 *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":11446 * self._memSyncDomainMap = cudaLaunchMemSyncDomainMap(_ptr=&self._ptr[0].memSyncDomainMap) * self._launchCompletionEvent = anon_struct22(_ptr=self._ptr) * self._deviceUpdatableKernelNode = anon_struct23(_ptr=self._ptr) # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11446, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11446, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_ptr, __pyx_t_1) < 0) __PYX_ERR(0, 11446, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct23), __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11446, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GIVEREF(__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_6cudart_anon_struct23 *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":11440 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._accessPolicyWindow = cudaAccessPolicyWindow(_ptr=&self._ptr[0].accessPolicyWindow) * self._clusterDim = anon_struct20(_ptr=self._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.cudart.cudaLaunchAttributeValue.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11447 * self._launchCompletionEvent = anon_struct22(_ptr=self._ptr) * self._deviceUpdatableKernelNode = anon_struct23(_ptr=self._ptr) * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_24cudaLaunchAttributeValue_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 11447, 0, __PYX_ERR(0, 11447, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaLaunchAttributeValue.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":11449 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_24cudaLaunchAttributeValue_6getPtr, "cudaLaunchAttributeValue.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_24cudaLaunchAttributeValue_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_24cudaLaunchAttributeValue_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__284) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 11449, 0, __PYX_ERR(0, 11449, __pyx_L1_error)); /* "cuda/cudart.pyx":11450 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11450, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11449 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11451 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_24cudaLaunchAttributeValue_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_9genexpr79__pyx_v_line = NULL; PyObject *__pyx_9genexpr80__pyx_v_line = NULL; PyObject *__pyx_9genexpr81__pyx_v_line = NULL; PyObject *__pyx_9genexpr82__pyx_v_line = NULL; PyObject *__pyx_9genexpr83__pyx_v_line = NULL; PyObject *__pyx_9genexpr84__pyx_v_line = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 11451, 0, __PYX_ERR(0, 11451, __pyx_L1_error)); /* "cuda/cudart.pyx":11452 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":11453 * def __repr__(self): * if self._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, 11453, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":11454 * if self._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/cudart.pyx":11455 * str_list = [] * try: * str_list += ['pad : ' + str(self.pad)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['pad : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_pad_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11455, __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, 11455, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_pad, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11455, __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, 11455, __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)) __PYX_ERR(0, 11455, __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, 11455, __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/cudart.pyx":11454 * if self._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/cudart.pyx":11456 * try: * str_list += ['pad : ' + str(self.pad)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['pad : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 11456, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":11457 * str_list += ['pad : ' + str(self.pad)] * except ValueError: * str_list += ['pad : '] # <<<<<<<<<<<<<< * 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, 11457, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_pad_ValueError); __Pyx_GIVEREF(__pyx_kp_u_pad_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_pad_ValueError)) __PYX_ERR(0, 11457, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11457, __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/cudart.pyx":11454 * if self._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/cudart.pyx":11458 * except ValueError: * str_list += ['pad : '] * 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/cudart.pyx":11459 * str_list += ['pad : '] * try: * str_list += ['accessPolicyWindow :\n' + '\n'.join([' ' + line for line in str(self.accessPolicyWindow).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['accessPolicyWindow : '] */ { /* enter inner scope */ __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11459, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_accessPolicyWindow_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11459, __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, 11459, __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, 11459, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 11459, __pyx_L20_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_11); __Pyx_INCREF(__pyx_t_6); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 11459, __pyx_L20_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11459, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_9genexpr79__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr79__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11459, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 11459, __pyx_L20_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_9genexpr79__pyx_v_line); __pyx_9genexpr79__pyx_v_line = 0; goto __pyx_L24_exit_scope; __pyx_L20_error:; __Pyx_XDECREF(__pyx_9genexpr79__pyx_v_line); __pyx_9genexpr79__pyx_v_line = 0; goto __pyx_L12_error; __pyx_L24_exit_scope:; } /* exit inner scope */ __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11459, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_accessPolicyWindow, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11459, __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, 11459, __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)) __PYX_ERR(0, 11459, __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, 11459, __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/cudart.pyx":11458 * except ValueError: * str_list += ['pad : '] * 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/cudart.pyx":11460 * try: * str_list += ['accessPolicyWindow :\n' + '\n'.join([' ' + line for line in str(self.accessPolicyWindow).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['accessPolicyWindow : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 11460, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":11461 * str_list += ['accessPolicyWindow :\n' + '\n'.join([' ' + line for line in str(self.accessPolicyWindow).splitlines()])] * except ValueError: * str_list += ['accessPolicyWindow : '] # <<<<<<<<<<<<<< * try: * str_list += ['cooperative : ' + str(self.cooperative)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11461, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_accessPolicyWindow_ValueError); __Pyx_GIVEREF(__pyx_kp_u_accessPolicyWindow_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_accessPolicyWindow_ValueError)) __PYX_ERR(0, 11461, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11461, __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/cudart.pyx":11458 * except ValueError: * str_list += ['pad : '] * 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/cudart.pyx":11462 * except ValueError: * str_list += ['accessPolicyWindow : '] * 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/cudart.pyx":11463 * str_list += ['accessPolicyWindow : '] * try: * str_list += ['cooperative : ' + str(self.cooperative)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['cooperative : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_cooperative_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11463, __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, 11463, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_cooperative, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11463, __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, 11463, __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)) __PYX_ERR(0, 11463, __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, 11463, __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/cudart.pyx":11462 * except ValueError: * str_list += ['accessPolicyWindow : '] * 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/cudart.pyx":11464 * try: * str_list += ['cooperative : ' + str(self.cooperative)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['cooperative : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_8) < 0) __PYX_ERR(0, 11464, __pyx_L29_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":11465 * str_list += ['cooperative : ' + str(self.cooperative)] * except ValueError: * str_list += ['cooperative : '] # <<<<<<<<<<<<<< * try: * str_list += ['syncPolicy : ' + str(self.syncPolicy)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11465, __pyx_L29_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_cooperative_ValueError); __Pyx_GIVEREF(__pyx_kp_u_cooperative_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_cooperative_ValueError)) __PYX_ERR(0, 11465, __pyx_L29_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11465, __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/cudart.pyx":11462 * except ValueError: * str_list += ['accessPolicyWindow : '] * 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/cudart.pyx":11466 * except ValueError: * str_list += ['cooperative : '] * 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/cudart.pyx":11467 * str_list += ['cooperative : '] * try: * str_list += ['syncPolicy : ' + str(self.syncPolicy)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['syncPolicy : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_syncPolicy_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11467, __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, 11467, __pyx_L35_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_syncPolicy, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11467, __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, 11467, __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)) __PYX_ERR(0, 11467, __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, 11467, __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/cudart.pyx":11466 * except ValueError: * str_list += ['cooperative : '] * 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/cudart.pyx":11468 * try: * str_list += ['syncPolicy : ' + str(self.syncPolicy)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['syncPolicy : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 11468, __pyx_L37_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":11469 * str_list += ['syncPolicy : ' + str(self.syncPolicy)] * except ValueError: * str_list += ['syncPolicy : '] # <<<<<<<<<<<<<< * 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, 11469, __pyx_L37_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_syncPolicy_ValueError); __Pyx_GIVEREF(__pyx_kp_u_syncPolicy_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_syncPolicy_ValueError)) __PYX_ERR(0, 11469, __pyx_L37_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11469, __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/cudart.pyx":11466 * except ValueError: * str_list += ['cooperative : '] * 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/cudart.pyx":11470 * except ValueError: * str_list += ['syncPolicy : '] * 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/cudart.pyx":11471 * str_list += ['syncPolicy : '] * try: * str_list += ['clusterDim :\n' + '\n'.join([' ' + line for line in str(self.clusterDim).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['clusterDim : '] */ { /* enter inner scope */ __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11471, __pyx_L51_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_clusterDim_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11471, __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, 11471, __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, 11471, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 11471, __pyx_L51_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_2 = PyList_GET_ITEM(__pyx_t_8, __pyx_t_11); __Pyx_INCREF(__pyx_t_2); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 11471, __pyx_L51_error) #else __pyx_t_2 = __Pyx_PySequence_ITEM(__pyx_t_8, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11471, __pyx_L51_error) __Pyx_GOTREF(__pyx_t_2); #endif __Pyx_XDECREF_SET(__pyx_9genexpr80__pyx_v_line, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr80__pyx_v_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11471, __pyx_L51_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 11471, __pyx_L51_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_9genexpr80__pyx_v_line); __pyx_9genexpr80__pyx_v_line = 0; goto __pyx_L55_exit_scope; __pyx_L51_error:; __Pyx_XDECREF(__pyx_9genexpr80__pyx_v_line); __pyx_9genexpr80__pyx_v_line = 0; goto __pyx_L43_error; __pyx_L55_exit_scope:; } /* exit inner scope */ __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11471, __pyx_L43_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_clusterDim, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11471, __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, 11471, __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)) __PYX_ERR(0, 11471, __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, 11471, __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/cudart.pyx":11470 * except ValueError: * str_list += ['syncPolicy : '] * 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/cudart.pyx":11472 * try: * str_list += ['clusterDim :\n' + '\n'.join([' ' + line for line in str(self.clusterDim).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['clusterDim : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 11472, __pyx_L45_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":11473 * str_list += ['clusterDim :\n' + '\n'.join([' ' + line for line in str(self.clusterDim).splitlines()])] * except ValueError: * str_list += ['clusterDim : '] # <<<<<<<<<<<<<< * try: * str_list += ['clusterSchedulingPolicyPreference : ' + str(self.clusterSchedulingPolicyPreference)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11473, __pyx_L45_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_clusterDim_ValueError); __Pyx_GIVEREF(__pyx_kp_u_clusterDim_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_clusterDim_ValueError)) __PYX_ERR(0, 11473, __pyx_L45_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11473, __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/cudart.pyx":11470 * except ValueError: * str_list += ['syncPolicy : '] * 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/cudart.pyx":11474 * except ValueError: * str_list += ['clusterDim : '] * 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/cudart.pyx":11475 * str_list += ['clusterDim : '] * try: * str_list += ['clusterSchedulingPolicyPreference : ' + str(self.clusterSchedulingPolicyPreference)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['clusterSchedulingPolicyPreference : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_clusterSchedulingPolicyPreferenc_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11475, __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, 11475, __pyx_L58_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_clusterSchedulingPolicyPreferenc, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11475, __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, 11475, __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)) __PYX_ERR(0, 11475, __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, 11475, __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/cudart.pyx":11474 * except ValueError: * str_list += ['clusterDim : '] * 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/cudart.pyx":11476 * try: * str_list += ['clusterSchedulingPolicyPreference : ' + str(self.clusterSchedulingPolicyPreference)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['clusterSchedulingPolicyPreference : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_8, &__pyx_t_6) < 0) __PYX_ERR(0, 11476, __pyx_L60_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":11477 * str_list += ['clusterSchedulingPolicyPreference : ' + str(self.clusterSchedulingPolicyPreference)] * except ValueError: * str_list += ['clusterSchedulingPolicyPreference : '] # <<<<<<<<<<<<<< * try: * str_list += ['programmaticStreamSerializationAllowed : ' + str(self.programmaticStreamSerializationAllowed)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11477, __pyx_L60_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_clusterSchedulingPolicyPreferenc_3); __Pyx_GIVEREF(__pyx_kp_u_clusterSchedulingPolicyPreferenc_3); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_clusterSchedulingPolicyPreferenc_3)) __PYX_ERR(0, 11477, __pyx_L60_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11477, __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/cudart.pyx":11474 * except ValueError: * str_list += ['clusterDim : '] * 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/cudart.pyx":11478 * except ValueError: * str_list += ['clusterSchedulingPolicyPreference : '] * 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/cudart.pyx":11479 * str_list += ['clusterSchedulingPolicyPreference : '] * try: * str_list += ['programmaticStreamSerializationAllowed : ' + str(self.programmaticStreamSerializationAllowed)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['programmaticStreamSerializationAllowed : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_programmaticStreamSerializationA_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11479, __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, 11479, __pyx_L66_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_programmaticStreamSerializationA, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11479, __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, 11479, __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)) __PYX_ERR(0, 11479, __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, 11479, __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/cudart.pyx":11478 * except ValueError: * str_list += ['clusterSchedulingPolicyPreference : '] * 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/cudart.pyx":11480 * try: * str_list += ['programmaticStreamSerializationAllowed : ' + str(self.programmaticStreamSerializationAllowed)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['programmaticStreamSerializationAllowed : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 11480, __pyx_L68_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":11481 * str_list += ['programmaticStreamSerializationAllowed : ' + str(self.programmaticStreamSerializationAllowed)] * except ValueError: * str_list += ['programmaticStreamSerializationAllowed : '] # <<<<<<<<<<<<<< * 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, 11481, __pyx_L68_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_programmaticStreamSerializationA_3); __Pyx_GIVEREF(__pyx_kp_u_programmaticStreamSerializationA_3); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_programmaticStreamSerializationA_3)) __PYX_ERR(0, 11481, __pyx_L68_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11481, __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/cudart.pyx":11478 * except ValueError: * str_list += ['clusterSchedulingPolicyPreference : '] * 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/cudart.pyx":11482 * except ValueError: * str_list += ['programmaticStreamSerializationAllowed : '] * 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/cudart.pyx":11483 * str_list += ['programmaticStreamSerializationAllowed : '] * try: * str_list += ['programmaticEvent :\n' + '\n'.join([' ' + line for line in str(self.programmaticEvent).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['programmaticEvent : '] */ { /* enter inner scope */ __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11483, __pyx_L82_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_programmaticEvent_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11483, __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, 11483, __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, 11483, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 11483, __pyx_L82_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_8 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_11); __Pyx_INCREF(__pyx_t_8); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 11483, __pyx_L82_error) #else __pyx_t_8 = __Pyx_PySequence_ITEM(__pyx_t_6, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11483, __pyx_L82_error) __Pyx_GOTREF(__pyx_t_8); #endif __Pyx_XDECREF_SET(__pyx_9genexpr81__pyx_v_line, __pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr81__pyx_v_line); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11483, __pyx_L82_error) __Pyx_GOTREF(__pyx_t_8); if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_8))) __PYX_ERR(0, 11483, __pyx_L82_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_9genexpr81__pyx_v_line); __pyx_9genexpr81__pyx_v_line = 0; goto __pyx_L86_exit_scope; __pyx_L82_error:; __Pyx_XDECREF(__pyx_9genexpr81__pyx_v_line); __pyx_9genexpr81__pyx_v_line = 0; goto __pyx_L74_error; __pyx_L86_exit_scope:; } /* exit inner scope */ __pyx_t_6 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11483, __pyx_L74_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_programmaticEvent, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11483, __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, 11483, __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)) __PYX_ERR(0, 11483, __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, 11483, __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/cudart.pyx":11482 * except ValueError: * str_list += ['programmaticStreamSerializationAllowed : '] * 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/cudart.pyx":11484 * try: * str_list += ['programmaticEvent :\n' + '\n'.join([' ' + line for line in str(self.programmaticEvent).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['programmaticEvent : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 11484, __pyx_L76_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":11485 * str_list += ['programmaticEvent :\n' + '\n'.join([' ' + line for line in str(self.programmaticEvent).splitlines()])] * except ValueError: * str_list += ['programmaticEvent : '] # <<<<<<<<<<<<<< * try: * str_list += ['priority : ' + str(self.priority)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11485, __pyx_L76_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_programmaticEvent_ValueError); __Pyx_GIVEREF(__pyx_kp_u_programmaticEvent_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_programmaticEvent_ValueError)) __PYX_ERR(0, 11485, __pyx_L76_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11485, __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/cudart.pyx":11482 * except ValueError: * str_list += ['programmaticStreamSerializationAllowed : '] * 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/cudart.pyx":11486 * except ValueError: * str_list += ['programmaticEvent : '] * 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/cudart.pyx":11487 * str_list += ['programmaticEvent : '] * try: * str_list += ['priority : ' + str(self.priority)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['priority : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_priority_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11487, __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, 11487, __pyx_L89_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_priority, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11487, __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, 11487, __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)) __PYX_ERR(0, 11487, __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, 11487, __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/cudart.pyx":11486 * except ValueError: * str_list += ['programmaticEvent : '] * 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/cudart.pyx":11488 * try: * str_list += ['priority : ' + str(self.priority)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['priority : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 11488, __pyx_L91_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":11489 * str_list += ['priority : ' + str(self.priority)] * except ValueError: * str_list += ['priority : '] # <<<<<<<<<<<<<< * 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, 11489, __pyx_L91_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_priority_ValueError); __Pyx_GIVEREF(__pyx_kp_u_priority_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_priority_ValueError)) __PYX_ERR(0, 11489, __pyx_L91_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11489, __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/cudart.pyx":11486 * except ValueError: * str_list += ['programmaticEvent : '] * 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/cudart.pyx":11490 * except ValueError: * str_list += ['priority : '] * 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/cudart.pyx":11491 * str_list += ['priority : '] * try: * str_list += ['memSyncDomainMap :\n' + '\n'.join([' ' + line for line in str(self.memSyncDomainMap).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['memSyncDomainMap : '] */ { /* enter inner scope */ __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11491, __pyx_L105_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_memSyncDomainMap_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11491, __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, 11491, __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, 11491, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 11491, __pyx_L105_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_8, __pyx_t_11); __Pyx_INCREF(__pyx_t_6); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 11491, __pyx_L105_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_8, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11491, __pyx_L105_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_9genexpr82__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr82__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11491, __pyx_L105_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 11491, __pyx_L105_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_9genexpr82__pyx_v_line); __pyx_9genexpr82__pyx_v_line = 0; goto __pyx_L109_exit_scope; __pyx_L105_error:; __Pyx_XDECREF(__pyx_9genexpr82__pyx_v_line); __pyx_9genexpr82__pyx_v_line = 0; goto __pyx_L97_error; __pyx_L109_exit_scope:; } /* exit inner scope */ __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11491, __pyx_L97_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_memSyncDomainMap, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11491, __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, 11491, __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)) __PYX_ERR(0, 11491, __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, 11491, __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/cudart.pyx":11490 * except ValueError: * str_list += ['priority : '] * 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/cudart.pyx":11492 * try: * str_list += ['memSyncDomainMap :\n' + '\n'.join([' ' + line for line in str(self.memSyncDomainMap).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['memSyncDomainMap : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_8, &__pyx_t_6) < 0) __PYX_ERR(0, 11492, __pyx_L99_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":11493 * str_list += ['memSyncDomainMap :\n' + '\n'.join([' ' + line for line in str(self.memSyncDomainMap).splitlines()])] * except ValueError: * str_list += ['memSyncDomainMap : '] # <<<<<<<<<<<<<< * try: * str_list += ['memSyncDomain : ' + str(self.memSyncDomain)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11493, __pyx_L99_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_memSyncDomainMap_ValueError); __Pyx_GIVEREF(__pyx_kp_u_memSyncDomainMap_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_memSyncDomainMap_ValueError)) __PYX_ERR(0, 11493, __pyx_L99_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11493, __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/cudart.pyx":11490 * except ValueError: * str_list += ['priority : '] * 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/cudart.pyx":11494 * except ValueError: * str_list += ['memSyncDomainMap : '] * 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/cudart.pyx":11495 * str_list += ['memSyncDomainMap : '] * try: * str_list += ['memSyncDomain : ' + str(self.memSyncDomain)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['memSyncDomain : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_memSyncDomain_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11495, __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, 11495, __pyx_L112_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_memSyncDomain, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11495, __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, 11495, __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)) __PYX_ERR(0, 11495, __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, 11495, __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/cudart.pyx":11494 * except ValueError: * str_list += ['memSyncDomainMap : '] * 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/cudart.pyx":11496 * try: * str_list += ['memSyncDomain : ' + str(self.memSyncDomain)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['memSyncDomain : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 11496, __pyx_L114_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":11497 * str_list += ['memSyncDomain : ' + str(self.memSyncDomain)] * except ValueError: * str_list += ['memSyncDomain : '] # <<<<<<<<<<<<<< * try: * str_list += ['launchCompletionEvent :\n' + '\n'.join([' ' + line for line in str(self.launchCompletionEvent).splitlines()])] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11497, __pyx_L114_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_memSyncDomain_ValueError); __Pyx_GIVEREF(__pyx_kp_u_memSyncDomain_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_memSyncDomain_ValueError)) __PYX_ERR(0, 11497, __pyx_L114_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11497, __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/cudart.pyx":11494 * except ValueError: * str_list += ['memSyncDomainMap : '] * 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/cudart.pyx":11498 * except ValueError: * str_list += ['memSyncDomain : '] * 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_5, &__pyx_t_4, &__pyx_t_3); __Pyx_XGOTREF(__pyx_t_5); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_3); /*try:*/ { /* "cuda/cudart.pyx":11499 * str_list += ['memSyncDomain : '] * try: * str_list += ['launchCompletionEvent :\n' + '\n'.join([' ' + line for line in str(self.launchCompletionEvent).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['launchCompletionEvent : '] */ { /* enter inner scope */ __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11499, __pyx_L128_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_launchCompletionEvent_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11499, __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, 11499, __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, 11499, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 11499, __pyx_L128_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_8 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_11); __Pyx_INCREF(__pyx_t_8); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 11499, __pyx_L128_error) #else __pyx_t_8 = __Pyx_PySequence_ITEM(__pyx_t_6, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11499, __pyx_L128_error) __Pyx_GOTREF(__pyx_t_8); #endif __Pyx_XDECREF_SET(__pyx_9genexpr83__pyx_v_line, __pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr83__pyx_v_line); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11499, __pyx_L128_error) __Pyx_GOTREF(__pyx_t_8); if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_8))) __PYX_ERR(0, 11499, __pyx_L128_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_9genexpr83__pyx_v_line); __pyx_9genexpr83__pyx_v_line = 0; goto __pyx_L132_exit_scope; __pyx_L128_error:; __Pyx_XDECREF(__pyx_9genexpr83__pyx_v_line); __pyx_9genexpr83__pyx_v_line = 0; goto __pyx_L120_error; __pyx_L132_exit_scope:; } /* exit inner scope */ __pyx_t_6 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11499, __pyx_L120_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_launchCompletionEvent, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11499, __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, 11499, __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)) __PYX_ERR(0, 11499, __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, 11499, __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/cudart.pyx":11498 * except ValueError: * str_list += ['memSyncDomain : '] * try: # <<<<<<<<<<<<<< * str_list += ['launchCompletionEvent :\n' + '\n'.join([' ' + line for line in str(self.launchCompletionEvent).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/cudart.pyx":11500 * try: * str_list += ['launchCompletionEvent :\n' + '\n'.join([' ' + line for line in str(self.launchCompletionEvent).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['launchCompletionEvent : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 11500, __pyx_L122_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":11501 * str_list += ['launchCompletionEvent :\n' + '\n'.join([' ' + line for line in str(self.launchCompletionEvent).splitlines()])] * except ValueError: * str_list += ['launchCompletionEvent : '] # <<<<<<<<<<<<<< * try: * str_list += ['deviceUpdatableKernelNode :\n' + '\n'.join([' ' + line for line in str(self.deviceUpdatableKernelNode).splitlines()])] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11501, __pyx_L122_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_launchCompletionEvent_ValueError); __Pyx_GIVEREF(__pyx_kp_u_launchCompletionEvent_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_launchCompletionEvent_ValueError)) __PYX_ERR(0, 11501, __pyx_L122_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11501, __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/cudart.pyx":11498 * except ValueError: * str_list += ['memSyncDomain : '] * try: # <<<<<<<<<<<<<< * str_list += ['launchCompletionEvent :\n' + '\n'.join([' ' + line for line in str(self.launchCompletionEvent).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/cudart.pyx":11502 * except ValueError: * str_list += ['launchCompletionEvent : '] * 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_3, &__pyx_t_4, &__pyx_t_5); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_5); /*try:*/ { /* "cuda/cudart.pyx":11503 * str_list += ['launchCompletionEvent : '] * try: * str_list += ['deviceUpdatableKernelNode :\n' + '\n'.join([' ' + line for line in str(self.deviceUpdatableKernelNode).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['deviceUpdatableKernelNode : '] */ { /* enter inner scope */ __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11503, __pyx_L143_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_deviceUpdatableKernelNode_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11503, __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, 11503, __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, 11503, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 11503, __pyx_L143_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_11); __Pyx_INCREF(__pyx_t_6); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 11503, __pyx_L143_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11503, __pyx_L143_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_9genexpr84__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr84__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11503, __pyx_L143_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 11503, __pyx_L143_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_9genexpr84__pyx_v_line); __pyx_9genexpr84__pyx_v_line = 0; goto __pyx_L147_exit_scope; __pyx_L143_error:; __Pyx_XDECREF(__pyx_9genexpr84__pyx_v_line); __pyx_9genexpr84__pyx_v_line = 0; goto __pyx_L135_error; __pyx_L147_exit_scope:; } /* exit inner scope */ __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11503, __pyx_L135_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_deviceUpdatableKernelNode, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11503, __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, 11503, __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)) __PYX_ERR(0, 11503, __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, 11503, __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/cudart.pyx":11502 * except ValueError: * str_list += ['launchCompletionEvent : '] * try: # <<<<<<<<<<<<<< * str_list += ['deviceUpdatableKernelNode :\n' + '\n'.join([' ' + line for line in str(self.deviceUpdatableKernelNode).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/cudart.pyx":11504 * try: * str_list += ['deviceUpdatableKernelNode :\n' + '\n'.join([' ' + line for line in str(self.deviceUpdatableKernelNode).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['deviceUpdatableKernelNode : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 11504, __pyx_L137_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":11505 * str_list += ['deviceUpdatableKernelNode :\n' + '\n'.join([' ' + line for line in str(self.deviceUpdatableKernelNode).splitlines()])] * except ValueError: * str_list += ['deviceUpdatableKernelNode : '] # <<<<<<<<<<<<<< * try: * str_list += ['sharedMemCarveout : ' + str(self.sharedMemCarveout)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11505, __pyx_L137_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_deviceUpdatableKernelNode_ValueE); __Pyx_GIVEREF(__pyx_kp_u_deviceUpdatableKernelNode_ValueE); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_deviceUpdatableKernelNode_ValueE)) __PYX_ERR(0, 11505, __pyx_L137_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11505, __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/cudart.pyx":11502 * except ValueError: * str_list += ['launchCompletionEvent : '] * try: # <<<<<<<<<<<<<< * str_list += ['deviceUpdatableKernelNode :\n' + '\n'.join([' ' + line for line in str(self.deviceUpdatableKernelNode).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/cudart.pyx":11506 * except ValueError: * str_list += ['deviceUpdatableKernelNode : '] * try: # <<<<<<<<<<<<<< * str_list += ['sharedMemCarveout : ' + str(self.sharedMemCarveout)] * 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/cudart.pyx":11507 * str_list += ['deviceUpdatableKernelNode : '] * try: * str_list += ['sharedMemCarveout : ' + str(self.sharedMemCarveout)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['sharedMemCarveout : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_sharedMemCarveout_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11507, __pyx_L150_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11507, __pyx_L150_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_sharedMemCarveout, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11507, __pyx_L150_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, 11507, __pyx_L150_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_6); if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6)) __PYX_ERR(0, 11507, __pyx_L150_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, 11507, __pyx_L150_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/cudart.pyx":11506 * except ValueError: * str_list += ['deviceUpdatableKernelNode : '] * try: # <<<<<<<<<<<<<< * str_list += ['sharedMemCarveout : ' + str(self.sharedMemCarveout)] * 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/cudart.pyx":11508 * try: * str_list += ['sharedMemCarveout : ' + str(self.sharedMemCarveout)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['sharedMemCarveout : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_8) < 0) __PYX_ERR(0, 11508, __pyx_L152_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":11509 * str_list += ['sharedMemCarveout : ' + str(self.sharedMemCarveout)] * except ValueError: * str_list += ['sharedMemCarveout : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11509, __pyx_L152_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_sharedMemCarveout_ValueError); __Pyx_GIVEREF(__pyx_kp_u_sharedMemCarveout_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_sharedMemCarveout_ValueError)) __PYX_ERR(0, 11509, __pyx_L152_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11509, __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_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; goto __pyx_L151_exception_handled; } goto __pyx_L152_except_error; /* "cuda/cudart.pyx":11506 * except ValueError: * str_list += ['deviceUpdatableKernelNode : '] * try: # <<<<<<<<<<<<<< * str_list += ['sharedMemCarveout : ' + str(self.sharedMemCarveout)] * 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/cudart.pyx":11510 * except ValueError: * str_list += ['sharedMemCarveout : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11510, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11452 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":11512 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def pad(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":11451 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaLaunchAttributeValue.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XDECREF(__pyx_9genexpr79__pyx_v_line); __Pyx_XDECREF(__pyx_9genexpr80__pyx_v_line); __Pyx_XDECREF(__pyx_9genexpr81__pyx_v_line); __Pyx_XDECREF(__pyx_9genexpr82__pyx_v_line); __Pyx_XDECREF(__pyx_9genexpr83__pyx_v_line); __Pyx_XDECREF(__pyx_9genexpr84__pyx_v_line); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11513 * else: * return '' * @property # <<<<<<<<<<<<<< * def pad(self): * return PyBytes_FromStringAndSize(self._ptr[0].pad, 64) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_3pad_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_24cudaLaunchAttributeValue_3pad___get__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_3pad___get__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11513, 0, __PYX_ERR(0, 11513, __pyx_L1_error)); /* "cuda/cudart.pyx":11515 * @property * def pad(self): * return PyBytes_FromStringAndSize(self._ptr[0].pad, 64) # <<<<<<<<<<<<<< * @pad.setter * def pad(self, pad): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyBytes_FromStringAndSize((__pyx_v_self->_ptr[0]).pad, 64); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11515, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11513 * else: * return '' * @property # <<<<<<<<<<<<<< * def pad(self): * return PyBytes_FromStringAndSize(self._ptr[0].pad, 64) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.pad.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11516 * def pad(self): * return PyBytes_FromStringAndSize(self._ptr[0].pad, 64) * @pad.setter # <<<<<<<<<<<<<< * def pad(self, pad): * if len(pad) != 64: */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_3pad_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_pad); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_24cudaLaunchAttributeValue_3pad_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)__pyx_v_self), ((PyObject *)__pyx_v_pad)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_3pad_2__set__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *__pyx_v_self, PyObject *__pyx_v_pad) { PyObject *__pyx_v_i = NULL; PyObject *__pyx_v_b = NULL; int __pyx_r; __Pyx_TraceDeclarations __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)(PyObject *); PyObject *__pyx_t_6 = NULL; int __pyx_t_7; char __pyx_t_8; Py_ssize_t __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 11516, 0, __PYX_ERR(0, 11516, __pyx_L1_error)); /* "cuda/cudart.pyx":11518 * @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, 11518, __pyx_L1_error) __pyx_t_2 = (__pyx_t_1 != 64); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":11519 * 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_1 = PyObject_Length(__pyx_v_pad); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 11519, __pyx_L1_error) __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11519, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_Unicode(__pyx_t_3); 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 = 0; __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_pad_length_must_be_64_is, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11519, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_3); 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 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __PYX_ERR(0, 11519, __pyx_L1_error) /* "cuda/cudart.pyx":11518 * @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/cudart.pyx":11520 * 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/cudart.pyx":11521 * 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_int_0); __pyx_t_4 = __pyx_int_0; if (likely(PyList_CheckExact(__pyx_v_pad)) || PyTuple_CheckExact(__pyx_v_pad)) { __pyx_t_3 = __pyx_v_pad; __Pyx_INCREF(__pyx_t_3); __pyx_t_1 = 0; __pyx_t_5 = NULL; } else { __pyx_t_1 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_pad); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11521, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11521, __pyx_L1_error) } for (;;) { if (likely(!__pyx_t_5)) { if (likely(PyList_CheckExact(__pyx_t_3))) { { Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 11521, __pyx_L1_error) #endif if (__pyx_t_1 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_1); __Pyx_INCREF(__pyx_t_6); __pyx_t_1++; if (unlikely((0 < 0))) __PYX_ERR(0, 11521, __pyx_L1_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11521, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 11521, __pyx_L1_error) #endif if (__pyx_t_1 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_1); __Pyx_INCREF(__pyx_t_6); __pyx_t_1++; if (unlikely((0 < 0))) __PYX_ERR(0, 11521, __pyx_L1_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11521, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); #endif } } else { __pyx_t_6 = __pyx_t_5(__pyx_t_3); if (unlikely(!__pyx_t_6)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 11521, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_6); } __Pyx_XDECREF_SET(__pyx_v_b, __pyx_t_6); __pyx_t_6 = 0; __Pyx_INCREF(__pyx_t_4); __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_4); __pyx_t_6 = __Pyx_PyInt_AddObjC(__pyx_t_4, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11521, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = __pyx_t_6; __pyx_t_6 = 0; /* "cuda/cudart.pyx":11522 * if CHAR_MIN == 0: * for i, b in enumerate(pad): * if b < 0 and b > -129: # <<<<<<<<<<<<<< * b = b + 256 * self._ptr[0].pad[i] = b */ __pyx_t_6 = PyObject_RichCompare(__pyx_v_b, __pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11522, __pyx_L1_error) __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 11522, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__pyx_t_7) { } else { __pyx_t_2 = __pyx_t_7; goto __pyx_L8_bool_binop_done; } __pyx_t_6 = PyObject_RichCompare(__pyx_v_b, __pyx_int_neg_129, Py_GT); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11522, __pyx_L1_error) __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 11522, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_2 = __pyx_t_7; __pyx_L8_bool_binop_done:; if (__pyx_t_2) { /* "cuda/cudart.pyx":11523 * for i, b in enumerate(pad): * if b < 0 and b > -129: * b = b + 256 # <<<<<<<<<<<<<< * self._ptr[0].pad[i] = b * else: */ __pyx_t_6 = __Pyx_PyInt_AddObjC(__pyx_v_b, __pyx_int_256, 0x100, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11523, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF_SET(__pyx_v_b, __pyx_t_6); __pyx_t_6 = 0; /* "cuda/cudart.pyx":11522 * if CHAR_MIN == 0: * for i, b in enumerate(pad): * if b < 0 and b > -129: # <<<<<<<<<<<<<< * b = b + 256 * self._ptr[0].pad[i] = b */ } /* "cuda/cudart.pyx":11524 * if b < 0 and b > -129: * b = b + 256 * self._ptr[0].pad[i] = b # <<<<<<<<<<<<<< * else: * for i, b in enumerate(pad): */ __pyx_t_8 = __Pyx_PyInt_As_char(__pyx_v_b); if (unlikely((__pyx_t_8 == (char)-1) && PyErr_Occurred())) __PYX_ERR(0, 11524, __pyx_L1_error) __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 11524, __pyx_L1_error) ((__pyx_v_self->_ptr[0]).pad[__pyx_t_9]) = __pyx_t_8; /* "cuda/cudart.pyx":11521 * 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_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":11520 * 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/cudart.pyx":11526 * self._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_int_0); __pyx_t_4 = __pyx_int_0; if (likely(PyList_CheckExact(__pyx_v_pad)) || PyTuple_CheckExact(__pyx_v_pad)) { __pyx_t_3 = __pyx_v_pad; __Pyx_INCREF(__pyx_t_3); __pyx_t_1 = 0; __pyx_t_5 = NULL; } else { __pyx_t_1 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_pad); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11526, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11526, __pyx_L1_error) } for (;;) { if (likely(!__pyx_t_5)) { if (likely(PyList_CheckExact(__pyx_t_3))) { { Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 11526, __pyx_L1_error) #endif if (__pyx_t_1 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_1); __Pyx_INCREF(__pyx_t_6); __pyx_t_1++; if (unlikely((0 < 0))) __PYX_ERR(0, 11526, __pyx_L1_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11526, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 11526, __pyx_L1_error) #endif if (__pyx_t_1 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_1); __Pyx_INCREF(__pyx_t_6); __pyx_t_1++; if (unlikely((0 < 0))) __PYX_ERR(0, 11526, __pyx_L1_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11526, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); #endif } } else { __pyx_t_6 = __pyx_t_5(__pyx_t_3); if (unlikely(!__pyx_t_6)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 11526, __pyx_L1_error) } break; } __Pyx_GOTREF(__pyx_t_6); } __Pyx_XDECREF_SET(__pyx_v_b, __pyx_t_6); __pyx_t_6 = 0; __Pyx_INCREF(__pyx_t_4); __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_4); __pyx_t_6 = __Pyx_PyInt_AddObjC(__pyx_t_4, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11526, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = __pyx_t_6; __pyx_t_6 = 0; /* "cuda/cudart.pyx":11527 * else: * for i, b in enumerate(pad): * if b > 127 and b < 256: # <<<<<<<<<<<<<< * b = b - 256 * self._ptr[0].pad[i] = b */ __pyx_t_6 = PyObject_RichCompare(__pyx_v_b, __pyx_int_127, Py_GT); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11527, __pyx_L1_error) __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 11527, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__pyx_t_7) { } else { __pyx_t_2 = __pyx_t_7; goto __pyx_L14_bool_binop_done; } __pyx_t_6 = PyObject_RichCompare(__pyx_v_b, __pyx_int_256, Py_LT); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11527, __pyx_L1_error) __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 11527, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_2 = __pyx_t_7; __pyx_L14_bool_binop_done:; if (__pyx_t_2) { /* "cuda/cudart.pyx":11528 * for i, b in enumerate(pad): * if b > 127 and b < 256: * b = b - 256 # <<<<<<<<<<<<<< * self._ptr[0].pad[i] = b * @property */ __pyx_t_6 = __Pyx_PyInt_SubtractObjC(__pyx_v_b, __pyx_int_256, 0x100, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11528, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF_SET(__pyx_v_b, __pyx_t_6); __pyx_t_6 = 0; /* "cuda/cudart.pyx":11527 * else: * for i, b in enumerate(pad): * if b > 127 and b < 256: # <<<<<<<<<<<<<< * b = b - 256 * self._ptr[0].pad[i] = b */ } /* "cuda/cudart.pyx":11529 * if b > 127 and b < 256: * b = b - 256 * self._ptr[0].pad[i] = b # <<<<<<<<<<<<<< * @property * def accessPolicyWindow(self): */ __pyx_t_8 = __Pyx_PyInt_As_char(__pyx_v_b); if (unlikely((__pyx_t_8 == (char)-1) && PyErr_Occurred())) __PYX_ERR(0, 11529, __pyx_L1_error) __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 11529, __pyx_L1_error) ((__pyx_v_self->_ptr[0]).pad[__pyx_t_9]) = __pyx_t_8; /* "cuda/cudart.pyx":11526 * self._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_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_L4:; /* "cuda/cudart.pyx":11516 * def pad(self): * return PyBytes_FromStringAndSize(self._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_6); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11530 * b = b - 256 * self._ptr[0].pad[i] = b * @property # <<<<<<<<<<<<<< * def accessPolicyWindow(self): * return self._accessPolicyWindow */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_18accessPolicyWindow_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_24cudaLaunchAttributeValue_18accessPolicyWindow___get__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_18accessPolicyWindow___get__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11530, 0, __PYX_ERR(0, 11530, __pyx_L1_error)); /* "cuda/cudart.pyx":11532 * @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/cudart.pyx":11530 * b = b - 256 * self._ptr[0].pad[i] = b * @property # <<<<<<<<<<<<<< * def accessPolicyWindow(self): * return self._accessPolicyWindow */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.accessPolicyWindow.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11533 * def accessPolicyWindow(self): * return self._accessPolicyWindow * @accessPolicyWindow.setter # <<<<<<<<<<<<<< * def accessPolicyWindow(self, accessPolicyWindow not None : cudaAccessPolicyWindow): * string.memcpy(&self._ptr[0].accessPolicyWindow, accessPolicyWindow.getPtr(), sizeof(self._ptr[0].accessPolicyWindow)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_18accessPolicyWindow_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_accessPolicyWindow); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_cudaAccessPolicyWindow, 0, "accessPolicyWindow", 0))) __PYX_ERR(0, 11534, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_18accessPolicyWindow_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *)__pyx_v_accessPolicyWindow)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_18accessPolicyWindow_2__set__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *__pyx_v_accessPolicyWindow) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 11533, 0, __PYX_ERR(0, 11533, __pyx_L1_error)); /* "cuda/cudart.pyx":11535 * @accessPolicyWindow.setter * def accessPolicyWindow(self, accessPolicyWindow not None : cudaAccessPolicyWindow): * string.memcpy(&self._ptr[0].accessPolicyWindow, accessPolicyWindow.getPtr(), sizeof(self._ptr[0].accessPolicyWindow)) # <<<<<<<<<<<<<< * @property * def cooperative(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_accessPolicyWindow), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11535, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11535, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11535, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).accessPolicyWindow), ((struct cudaAccessPolicyWindow *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).accessPolicyWindow)))); /* "cuda/cudart.pyx":11533 * def accessPolicyWindow(self): * return self._accessPolicyWindow * @accessPolicyWindow.setter # <<<<<<<<<<<<<< * def accessPolicyWindow(self, accessPolicyWindow not None : cudaAccessPolicyWindow): * string.memcpy(&self._ptr[0].accessPolicyWindow, accessPolicyWindow.getPtr(), sizeof(self._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_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.accessPolicyWindow.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11536 * def accessPolicyWindow(self, accessPolicyWindow not None : cudaAccessPolicyWindow): * string.memcpy(&self._ptr[0].accessPolicyWindow, accessPolicyWindow.getPtr(), sizeof(self._ptr[0].accessPolicyWindow)) * @property # <<<<<<<<<<<<<< * def cooperative(self): * return self._ptr[0].cooperative */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_11cooperative_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_24cudaLaunchAttributeValue_11cooperative___get__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_11cooperative___get__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11536, 0, __PYX_ERR(0, 11536, __pyx_L1_error)); /* "cuda/cudart.pyx":11538 * @property * def cooperative(self): * return self._ptr[0].cooperative # <<<<<<<<<<<<<< * @cooperative.setter * def cooperative(self, int cooperative): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).cooperative); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11538, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11536 * def accessPolicyWindow(self, accessPolicyWindow not None : cudaAccessPolicyWindow): * string.memcpy(&self._ptr[0].accessPolicyWindow, accessPolicyWindow.getPtr(), sizeof(self._ptr[0].accessPolicyWindow)) * @property # <<<<<<<<<<<<<< * def cooperative(self): * return self._ptr[0].cooperative */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.cooperative.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11539 * def cooperative(self): * return self._ptr[0].cooperative * @cooperative.setter # <<<<<<<<<<<<<< * def cooperative(self, int cooperative): * self._ptr[0].cooperative = cooperative */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_11cooperative_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_cooperative); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_cooperative); if (unlikely((__pyx_v_cooperative == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 11540, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.cooperative.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_11cooperative_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)__pyx_v_self), ((int)__pyx_v_cooperative)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_11cooperative_2__set__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *__pyx_v_self, int __pyx_v_cooperative) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 11539, 0, __PYX_ERR(0, 11539, __pyx_L1_error)); /* "cuda/cudart.pyx":11541 * @cooperative.setter * def cooperative(self, int cooperative): * self._ptr[0].cooperative = cooperative # <<<<<<<<<<<<<< * @property * def syncPolicy(self): */ (__pyx_v_self->_ptr[0]).cooperative = __pyx_v_cooperative; /* "cuda/cudart.pyx":11539 * def cooperative(self): * return self._ptr[0].cooperative * @cooperative.setter # <<<<<<<<<<<<<< * def cooperative(self, int cooperative): * self._ptr[0].cooperative = cooperative */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.cooperative.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":11542 * def cooperative(self, int cooperative): * self._ptr[0].cooperative = cooperative * @property # <<<<<<<<<<<<<< * def syncPolicy(self): * return cudaSynchronizationPolicy(self._ptr[0].syncPolicy) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_10syncPolicy_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_24cudaLaunchAttributeValue_10syncPolicy___get__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_10syncPolicy___get__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11542, 0, __PYX_ERR(0, 11542, __pyx_L1_error)); /* "cuda/cudart.pyx":11544 * @property * def syncPolicy(self): * return cudaSynchronizationPolicy(self._ptr[0].syncPolicy) # <<<<<<<<<<<<<< * @syncPolicy.setter * def syncPolicy(self, syncPolicy not None : cudaSynchronizationPolicy): */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaSynchronizationPolicy); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11544, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaSynchronizationPolicy((__pyx_v_self->_ptr[0]).syncPolicy); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11544, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11544, __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/cudart.pyx":11542 * def cooperative(self, int cooperative): * self._ptr[0].cooperative = cooperative * @property # <<<<<<<<<<<<<< * def syncPolicy(self): * return cudaSynchronizationPolicy(self._ptr[0].syncPolicy) */ /* 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.cudart.cudaLaunchAttributeValue.syncPolicy.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11545 * def syncPolicy(self): * return cudaSynchronizationPolicy(self._ptr[0].syncPolicy) * @syncPolicy.setter # <<<<<<<<<<<<<< * def syncPolicy(self, syncPolicy not None : cudaSynchronizationPolicy): * self._ptr[0].syncPolicy = syncPolicy.value */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_10syncPolicy_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_syncPolicy); /*proto*/ static int __pyx_pw_4cuda_6cudart_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, 11546, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_10syncPolicy_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)__pyx_v_self), ((PyObject *)__pyx_v_syncPolicy)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_10syncPolicy_2__set__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *__pyx_v_self, PyObject *__pyx_v_syncPolicy) { int __pyx_r; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 11545, 0, __PYX_ERR(0, 11545, __pyx_L1_error)); /* "cuda/cudart.pyx":11547 * @syncPolicy.setter * def syncPolicy(self, syncPolicy not None : cudaSynchronizationPolicy): * self._ptr[0].syncPolicy = syncPolicy.value # <<<<<<<<<<<<<< * @property * def clusterDim(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_syncPolicy, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11547, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaSynchronizationPolicy)__Pyx_PyInt_As_enum__cudaSynchronizationPolicy(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 11547, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).syncPolicy = __pyx_t_2; /* "cuda/cudart.pyx":11545 * def syncPolicy(self): * return cudaSynchronizationPolicy(self._ptr[0].syncPolicy) * @syncPolicy.setter # <<<<<<<<<<<<<< * def syncPolicy(self, syncPolicy not None : cudaSynchronizationPolicy): * self._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.cudart.cudaLaunchAttributeValue.syncPolicy.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11548 * def syncPolicy(self, syncPolicy not None : cudaSynchronizationPolicy): * self._ptr[0].syncPolicy = syncPolicy.value * @property # <<<<<<<<<<<<<< * def clusterDim(self): * return self._clusterDim */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_10clusterDim_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_24cudaLaunchAttributeValue_10clusterDim___get__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_10clusterDim___get__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11548, 0, __PYX_ERR(0, 11548, __pyx_L1_error)); /* "cuda/cudart.pyx":11550 * @property * def clusterDim(self): * return self._clusterDim # <<<<<<<<<<<<<< * @clusterDim.setter * def clusterDim(self, clusterDim not None : anon_struct20): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_self->_clusterDim); __pyx_r = ((PyObject *)__pyx_v_self->_clusterDim); goto __pyx_L0; /* "cuda/cudart.pyx":11548 * def syncPolicy(self, syncPolicy not None : cudaSynchronizationPolicy): * self._ptr[0].syncPolicy = syncPolicy.value * @property # <<<<<<<<<<<<<< * def clusterDim(self): * return self._clusterDim */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.clusterDim.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11551 * def clusterDim(self): * return self._clusterDim * @clusterDim.setter # <<<<<<<<<<<<<< * def clusterDim(self, clusterDim not None : anon_struct20): * string.memcpy(&self._ptr[0].clusterDim, clusterDim.getPtr(), sizeof(self._ptr[0].clusterDim)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_10clusterDim_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_clusterDim); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_anon_struct20, 0, "clusterDim", 0))) __PYX_ERR(0, 11552, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_10clusterDim_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_anon_struct20 *)__pyx_v_clusterDim)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_10clusterDim_2__set__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_anon_struct20 *__pyx_v_clusterDim) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 11551, 0, __PYX_ERR(0, 11551, __pyx_L1_error)); /* "cuda/cudart.pyx":11553 * @clusterDim.setter * def clusterDim(self, clusterDim not None : anon_struct20): * string.memcpy(&self._ptr[0].clusterDim, clusterDim.getPtr(), sizeof(self._ptr[0].clusterDim)) # <<<<<<<<<<<<<< * @property * def clusterSchedulingPolicyPreference(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_clusterDim), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11553, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11553, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11553, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).clusterDim), ((struct anon_struct20 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).clusterDim)))); /* "cuda/cudart.pyx":11551 * def clusterDim(self): * return self._clusterDim * @clusterDim.setter # <<<<<<<<<<<<<< * def clusterDim(self, clusterDim not None : anon_struct20): * string.memcpy(&self._ptr[0].clusterDim, clusterDim.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.clusterDim.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11554 * def clusterDim(self, clusterDim not None : anon_struct20): * string.memcpy(&self._ptr[0].clusterDim, clusterDim.getPtr(), sizeof(self._ptr[0].clusterDim)) * @property # <<<<<<<<<<<<<< * def clusterSchedulingPolicyPreference(self): * return cudaClusterSchedulingPolicy(self._ptr[0].clusterSchedulingPolicyPreference) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_33clusterSchedulingPolicyPreference_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_24cudaLaunchAttributeValue_33clusterSchedulingPolicyPreference___get__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_33clusterSchedulingPolicyPreference___get__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11554, 0, __PYX_ERR(0, 11554, __pyx_L1_error)); /* "cuda/cudart.pyx":11556 * @property * def clusterSchedulingPolicyPreference(self): * return cudaClusterSchedulingPolicy(self._ptr[0].clusterSchedulingPolicyPreference) # <<<<<<<<<<<<<< * @clusterSchedulingPolicyPreference.setter * def clusterSchedulingPolicyPreference(self, clusterSchedulingPolicyPreference not None : cudaClusterSchedulingPolicy): */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaClusterSchedulingPolicy); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11556, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaClusterSchedulingPolicy((__pyx_v_self->_ptr[0]).clusterSchedulingPolicyPreference); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11556, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11556, __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/cudart.pyx":11554 * def clusterDim(self, clusterDim not None : anon_struct20): * string.memcpy(&self._ptr[0].clusterDim, clusterDim.getPtr(), sizeof(self._ptr[0].clusterDim)) * @property # <<<<<<<<<<<<<< * def clusterSchedulingPolicyPreference(self): * return cudaClusterSchedulingPolicy(self._ptr[0].clusterSchedulingPolicyPreference) */ /* 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.cudart.cudaLaunchAttributeValue.clusterSchedulingPolicyPreference.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11557 * def clusterSchedulingPolicyPreference(self): * return cudaClusterSchedulingPolicy(self._ptr[0].clusterSchedulingPolicyPreference) * @clusterSchedulingPolicyPreference.setter # <<<<<<<<<<<<<< * def clusterSchedulingPolicyPreference(self, clusterSchedulingPolicyPreference not None : cudaClusterSchedulingPolicy): * self._ptr[0].clusterSchedulingPolicyPreference = clusterSchedulingPolicyPreference.value */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_33clusterSchedulingPolicyPreference_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_clusterSchedulingPolicyPreference); /*proto*/ static int __pyx_pw_4cuda_6cudart_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, 11558, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_33clusterSchedulingPolicyPreference_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)__pyx_v_self), ((PyObject *)__pyx_v_clusterSchedulingPolicyPreference)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_33clusterSchedulingPolicyPreference_2__set__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *__pyx_v_self, PyObject *__pyx_v_clusterSchedulingPolicyPreference) { int __pyx_r; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 11557, 0, __PYX_ERR(0, 11557, __pyx_L1_error)); /* "cuda/cudart.pyx":11559 * @clusterSchedulingPolicyPreference.setter * def clusterSchedulingPolicyPreference(self, clusterSchedulingPolicyPreference not None : cudaClusterSchedulingPolicy): * self._ptr[0].clusterSchedulingPolicyPreference = clusterSchedulingPolicyPreference.value # <<<<<<<<<<<<<< * @property * def programmaticStreamSerializationAllowed(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_clusterSchedulingPolicyPreference, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11559, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaClusterSchedulingPolicy)__Pyx_PyInt_As_enum__cudaClusterSchedulingPolicy(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 11559, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).clusterSchedulingPolicyPreference = __pyx_t_2; /* "cuda/cudart.pyx":11557 * def clusterSchedulingPolicyPreference(self): * return cudaClusterSchedulingPolicy(self._ptr[0].clusterSchedulingPolicyPreference) * @clusterSchedulingPolicyPreference.setter # <<<<<<<<<<<<<< * def clusterSchedulingPolicyPreference(self, clusterSchedulingPolicyPreference not None : cudaClusterSchedulingPolicy): * self._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.cudart.cudaLaunchAttributeValue.clusterSchedulingPolicyPreference.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11560 * def clusterSchedulingPolicyPreference(self, clusterSchedulingPolicyPreference not None : cudaClusterSchedulingPolicy): * self._ptr[0].clusterSchedulingPolicyPreference = clusterSchedulingPolicyPreference.value * @property # <<<<<<<<<<<<<< * def programmaticStreamSerializationAllowed(self): * return self._ptr[0].programmaticStreamSerializationAllowed */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_38programmaticStreamSerializationAllowed_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_24cudaLaunchAttributeValue_38programmaticStreamSerializationAllowed___get__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_38programmaticStreamSerializationAllowed___get__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11560, 0, __PYX_ERR(0, 11560, __pyx_L1_error)); /* "cuda/cudart.pyx":11562 * @property * def programmaticStreamSerializationAllowed(self): * return self._ptr[0].programmaticStreamSerializationAllowed # <<<<<<<<<<<<<< * @programmaticStreamSerializationAllowed.setter * def programmaticStreamSerializationAllowed(self, int programmaticStreamSerializationAllowed): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).programmaticStreamSerializationAllowed); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11562, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11560 * def clusterSchedulingPolicyPreference(self, clusterSchedulingPolicyPreference not None : cudaClusterSchedulingPolicy): * self._ptr[0].clusterSchedulingPolicyPreference = clusterSchedulingPolicyPreference.value * @property # <<<<<<<<<<<<<< * def programmaticStreamSerializationAllowed(self): * return self._ptr[0].programmaticStreamSerializationAllowed */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.programmaticStreamSerializationAllowed.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11563 * def programmaticStreamSerializationAllowed(self): * return self._ptr[0].programmaticStreamSerializationAllowed * @programmaticStreamSerializationAllowed.setter # <<<<<<<<<<<<<< * def programmaticStreamSerializationAllowed(self, int programmaticStreamSerializationAllowed): * self._ptr[0].programmaticStreamSerializationAllowed = programmaticStreamSerializationAllowed */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_38programmaticStreamSerializationAllowed_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_programmaticStreamSerializationAllowed); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_programmaticStreamSerializationAllowed); if (unlikely((__pyx_v_programmaticStreamSerializationAllowed == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 11564, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.programmaticStreamSerializationAllowed.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_38programmaticStreamSerializationAllowed_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)__pyx_v_self), ((int)__pyx_v_programmaticStreamSerializationAllowed)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_38programmaticStreamSerializationAllowed_2__set__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *__pyx_v_self, int __pyx_v_programmaticStreamSerializationAllowed) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 11563, 0, __PYX_ERR(0, 11563, __pyx_L1_error)); /* "cuda/cudart.pyx":11565 * @programmaticStreamSerializationAllowed.setter * def programmaticStreamSerializationAllowed(self, int programmaticStreamSerializationAllowed): * self._ptr[0].programmaticStreamSerializationAllowed = programmaticStreamSerializationAllowed # <<<<<<<<<<<<<< * @property * def programmaticEvent(self): */ (__pyx_v_self->_ptr[0]).programmaticStreamSerializationAllowed = __pyx_v_programmaticStreamSerializationAllowed; /* "cuda/cudart.pyx":11563 * def programmaticStreamSerializationAllowed(self): * return self._ptr[0].programmaticStreamSerializationAllowed * @programmaticStreamSerializationAllowed.setter # <<<<<<<<<<<<<< * def programmaticStreamSerializationAllowed(self, int programmaticStreamSerializationAllowed): * self._ptr[0].programmaticStreamSerializationAllowed = programmaticStreamSerializationAllowed */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.programmaticStreamSerializationAllowed.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":11566 * def programmaticStreamSerializationAllowed(self, int programmaticStreamSerializationAllowed): * self._ptr[0].programmaticStreamSerializationAllowed = programmaticStreamSerializationAllowed * @property # <<<<<<<<<<<<<< * def programmaticEvent(self): * return self._programmaticEvent */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_17programmaticEvent_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_24cudaLaunchAttributeValue_17programmaticEvent___get__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_17programmaticEvent___get__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11566, 0, __PYX_ERR(0, 11566, __pyx_L1_error)); /* "cuda/cudart.pyx":11568 * @property * def programmaticEvent(self): * return self._programmaticEvent # <<<<<<<<<<<<<< * @programmaticEvent.setter * def programmaticEvent(self, programmaticEvent not None : anon_struct21): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_self->_programmaticEvent); __pyx_r = ((PyObject *)__pyx_v_self->_programmaticEvent); goto __pyx_L0; /* "cuda/cudart.pyx":11566 * def programmaticStreamSerializationAllowed(self, int programmaticStreamSerializationAllowed): * self._ptr[0].programmaticStreamSerializationAllowed = programmaticStreamSerializationAllowed * @property # <<<<<<<<<<<<<< * def programmaticEvent(self): * return self._programmaticEvent */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.programmaticEvent.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11569 * def programmaticEvent(self): * return self._programmaticEvent * @programmaticEvent.setter # <<<<<<<<<<<<<< * def programmaticEvent(self, programmaticEvent not None : anon_struct21): * string.memcpy(&self._ptr[0].programmaticEvent, programmaticEvent.getPtr(), sizeof(self._ptr[0].programmaticEvent)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_17programmaticEvent_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_programmaticEvent); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_anon_struct21, 0, "programmaticEvent", 0))) __PYX_ERR(0, 11570, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_17programmaticEvent_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_anon_struct21 *)__pyx_v_programmaticEvent)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_17programmaticEvent_2__set__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_anon_struct21 *__pyx_v_programmaticEvent) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 11569, 0, __PYX_ERR(0, 11569, __pyx_L1_error)); /* "cuda/cudart.pyx":11571 * @programmaticEvent.setter * def programmaticEvent(self, programmaticEvent not None : anon_struct21): * string.memcpy(&self._ptr[0].programmaticEvent, programmaticEvent.getPtr(), sizeof(self._ptr[0].programmaticEvent)) # <<<<<<<<<<<<<< * @property * def priority(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_programmaticEvent), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11571, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11571, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11571, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).programmaticEvent), ((struct anon_struct21 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).programmaticEvent)))); /* "cuda/cudart.pyx":11569 * def programmaticEvent(self): * return self._programmaticEvent * @programmaticEvent.setter # <<<<<<<<<<<<<< * def programmaticEvent(self, programmaticEvent not None : anon_struct21): * string.memcpy(&self._ptr[0].programmaticEvent, programmaticEvent.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.programmaticEvent.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11572 * def programmaticEvent(self, programmaticEvent not None : anon_struct21): * string.memcpy(&self._ptr[0].programmaticEvent, programmaticEvent.getPtr(), sizeof(self._ptr[0].programmaticEvent)) * @property # <<<<<<<<<<<<<< * def priority(self): * return self._ptr[0].priority */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_8priority_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_24cudaLaunchAttributeValue_8priority___get__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_8priority___get__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11572, 0, __PYX_ERR(0, 11572, __pyx_L1_error)); /* "cuda/cudart.pyx":11574 * @property * def priority(self): * return self._ptr[0].priority # <<<<<<<<<<<<<< * @priority.setter * def priority(self, int priority): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).priority); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11574, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11572 * def programmaticEvent(self, programmaticEvent not None : anon_struct21): * string.memcpy(&self._ptr[0].programmaticEvent, programmaticEvent.getPtr(), sizeof(self._ptr[0].programmaticEvent)) * @property # <<<<<<<<<<<<<< * def priority(self): * return self._ptr[0].priority */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.priority.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11575 * def priority(self): * return self._ptr[0].priority * @priority.setter # <<<<<<<<<<<<<< * def priority(self, int priority): * self._ptr[0].priority = priority */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_8priority_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_priority); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_priority); if (unlikely((__pyx_v_priority == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 11576, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.priority.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_8priority_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)__pyx_v_self), ((int)__pyx_v_priority)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_8priority_2__set__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *__pyx_v_self, int __pyx_v_priority) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 11575, 0, __PYX_ERR(0, 11575, __pyx_L1_error)); /* "cuda/cudart.pyx":11577 * @priority.setter * def priority(self, int priority): * self._ptr[0].priority = priority # <<<<<<<<<<<<<< * @property * def memSyncDomainMap(self): */ (__pyx_v_self->_ptr[0]).priority = __pyx_v_priority; /* "cuda/cudart.pyx":11575 * def priority(self): * return self._ptr[0].priority * @priority.setter # <<<<<<<<<<<<<< * def priority(self, int priority): * self._ptr[0].priority = priority */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.priority.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":11578 * def priority(self, int priority): * self._ptr[0].priority = priority * @property # <<<<<<<<<<<<<< * def memSyncDomainMap(self): * return self._memSyncDomainMap */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_16memSyncDomainMap_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_24cudaLaunchAttributeValue_16memSyncDomainMap___get__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_16memSyncDomainMap___get__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11578, 0, __PYX_ERR(0, 11578, __pyx_L1_error)); /* "cuda/cudart.pyx":11580 * @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/cudart.pyx":11578 * def priority(self, int priority): * self._ptr[0].priority = priority * @property # <<<<<<<<<<<<<< * def memSyncDomainMap(self): * return self._memSyncDomainMap */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.memSyncDomainMap.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11581 * def memSyncDomainMap(self): * return self._memSyncDomainMap * @memSyncDomainMap.setter # <<<<<<<<<<<<<< * def memSyncDomainMap(self, memSyncDomainMap not None : cudaLaunchMemSyncDomainMap): * string.memcpy(&self._ptr[0].memSyncDomainMap, memSyncDomainMap.getPtr(), sizeof(self._ptr[0].memSyncDomainMap)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_16memSyncDomainMap_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_memSyncDomainMap); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap, 0, "memSyncDomainMap", 0))) __PYX_ERR(0, 11582, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_16memSyncDomainMap_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap *)__pyx_v_memSyncDomainMap)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_16memSyncDomainMap_2__set__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap *__pyx_v_memSyncDomainMap) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 11581, 0, __PYX_ERR(0, 11581, __pyx_L1_error)); /* "cuda/cudart.pyx":11583 * @memSyncDomainMap.setter * def memSyncDomainMap(self, memSyncDomainMap not None : cudaLaunchMemSyncDomainMap): * string.memcpy(&self._ptr[0].memSyncDomainMap, memSyncDomainMap.getPtr(), sizeof(self._ptr[0].memSyncDomainMap)) # <<<<<<<<<<<<<< * @property * def memSyncDomain(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_memSyncDomainMap), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11583, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11583, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11583, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).memSyncDomainMap), ((cudaLaunchMemSyncDomainMap *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).memSyncDomainMap)))); /* "cuda/cudart.pyx":11581 * def memSyncDomainMap(self): * return self._memSyncDomainMap * @memSyncDomainMap.setter # <<<<<<<<<<<<<< * def memSyncDomainMap(self, memSyncDomainMap not None : cudaLaunchMemSyncDomainMap): * string.memcpy(&self._ptr[0].memSyncDomainMap, memSyncDomainMap.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.memSyncDomainMap.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11584 * def memSyncDomainMap(self, memSyncDomainMap not None : cudaLaunchMemSyncDomainMap): * string.memcpy(&self._ptr[0].memSyncDomainMap, memSyncDomainMap.getPtr(), sizeof(self._ptr[0].memSyncDomainMap)) * @property # <<<<<<<<<<<<<< * def memSyncDomain(self): * return cudaLaunchMemSyncDomain(self._ptr[0].memSyncDomain) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_13memSyncDomain_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_24cudaLaunchAttributeValue_13memSyncDomain___get__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_13memSyncDomain___get__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11584, 0, __PYX_ERR(0, 11584, __pyx_L1_error)); /* "cuda/cudart.pyx":11586 * @property * def memSyncDomain(self): * return cudaLaunchMemSyncDomain(self._ptr[0].memSyncDomain) # <<<<<<<<<<<<<< * @memSyncDomain.setter * def memSyncDomain(self, memSyncDomain not None : cudaLaunchMemSyncDomain): */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaLaunchMemSyncDomain); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11586, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaLaunchMemSyncDomain((__pyx_v_self->_ptr[0]).memSyncDomain); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11586, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11586, __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/cudart.pyx":11584 * def memSyncDomainMap(self, memSyncDomainMap not None : cudaLaunchMemSyncDomainMap): * string.memcpy(&self._ptr[0].memSyncDomainMap, memSyncDomainMap.getPtr(), sizeof(self._ptr[0].memSyncDomainMap)) * @property # <<<<<<<<<<<<<< * def memSyncDomain(self): * return cudaLaunchMemSyncDomain(self._ptr[0].memSyncDomain) */ /* 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.cudart.cudaLaunchAttributeValue.memSyncDomain.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11587 * def memSyncDomain(self): * return cudaLaunchMemSyncDomain(self._ptr[0].memSyncDomain) * @memSyncDomain.setter # <<<<<<<<<<<<<< * def memSyncDomain(self, memSyncDomain not None : cudaLaunchMemSyncDomain): * self._ptr[0].memSyncDomain = memSyncDomain.value */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_13memSyncDomain_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_memSyncDomain); /*proto*/ static int __pyx_pw_4cuda_6cudart_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, 11588, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_13memSyncDomain_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)__pyx_v_self), ((PyObject *)__pyx_v_memSyncDomain)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_13memSyncDomain_2__set__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *__pyx_v_self, PyObject *__pyx_v_memSyncDomain) { int __pyx_r; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 11587, 0, __PYX_ERR(0, 11587, __pyx_L1_error)); /* "cuda/cudart.pyx":11589 * @memSyncDomain.setter * def memSyncDomain(self, memSyncDomain not None : cudaLaunchMemSyncDomain): * self._ptr[0].memSyncDomain = memSyncDomain.value # <<<<<<<<<<<<<< * @property * def launchCompletionEvent(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_memSyncDomain, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11589, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaLaunchMemSyncDomain)__Pyx_PyInt_As_enum__cudaLaunchMemSyncDomain(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 11589, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).memSyncDomain = __pyx_t_2; /* "cuda/cudart.pyx":11587 * def memSyncDomain(self): * return cudaLaunchMemSyncDomain(self._ptr[0].memSyncDomain) * @memSyncDomain.setter # <<<<<<<<<<<<<< * def memSyncDomain(self, memSyncDomain not None : cudaLaunchMemSyncDomain): * self._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.cudart.cudaLaunchAttributeValue.memSyncDomain.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11590 * def memSyncDomain(self, memSyncDomain not None : cudaLaunchMemSyncDomain): * self._ptr[0].memSyncDomain = memSyncDomain.value * @property # <<<<<<<<<<<<<< * def launchCompletionEvent(self): * return self._launchCompletionEvent */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_21launchCompletionEvent_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_24cudaLaunchAttributeValue_21launchCompletionEvent___get__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_21launchCompletionEvent___get__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11590, 0, __PYX_ERR(0, 11590, __pyx_L1_error)); /* "cuda/cudart.pyx":11592 * @property * def launchCompletionEvent(self): * return self._launchCompletionEvent # <<<<<<<<<<<<<< * @launchCompletionEvent.setter * def launchCompletionEvent(self, launchCompletionEvent not None : anon_struct22): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_self->_launchCompletionEvent); __pyx_r = ((PyObject *)__pyx_v_self->_launchCompletionEvent); goto __pyx_L0; /* "cuda/cudart.pyx":11590 * def memSyncDomain(self, memSyncDomain not None : cudaLaunchMemSyncDomain): * self._ptr[0].memSyncDomain = memSyncDomain.value * @property # <<<<<<<<<<<<<< * def launchCompletionEvent(self): * return self._launchCompletionEvent */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.launchCompletionEvent.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11593 * def launchCompletionEvent(self): * return self._launchCompletionEvent * @launchCompletionEvent.setter # <<<<<<<<<<<<<< * def launchCompletionEvent(self, launchCompletionEvent not None : anon_struct22): * string.memcpy(&self._ptr[0].launchCompletionEvent, launchCompletionEvent.getPtr(), sizeof(self._ptr[0].launchCompletionEvent)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_21launchCompletionEvent_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_launchCompletionEvent); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_anon_struct22, 0, "launchCompletionEvent", 0))) __PYX_ERR(0, 11594, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_21launchCompletionEvent_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_anon_struct22 *)__pyx_v_launchCompletionEvent)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_21launchCompletionEvent_2__set__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_anon_struct22 *__pyx_v_launchCompletionEvent) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 11593, 0, __PYX_ERR(0, 11593, __pyx_L1_error)); /* "cuda/cudart.pyx":11595 * @launchCompletionEvent.setter * def launchCompletionEvent(self, launchCompletionEvent not None : anon_struct22): * string.memcpy(&self._ptr[0].launchCompletionEvent, launchCompletionEvent.getPtr(), sizeof(self._ptr[0].launchCompletionEvent)) # <<<<<<<<<<<<<< * @property * def deviceUpdatableKernelNode(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_launchCompletionEvent), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11595, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11595, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11595, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).launchCompletionEvent), ((struct anon_struct22 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).launchCompletionEvent)))); /* "cuda/cudart.pyx":11593 * def launchCompletionEvent(self): * return self._launchCompletionEvent * @launchCompletionEvent.setter # <<<<<<<<<<<<<< * def launchCompletionEvent(self, launchCompletionEvent not None : anon_struct22): * string.memcpy(&self._ptr[0].launchCompletionEvent, launchCompletionEvent.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.launchCompletionEvent.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11596 * def launchCompletionEvent(self, launchCompletionEvent not None : anon_struct22): * string.memcpy(&self._ptr[0].launchCompletionEvent, launchCompletionEvent.getPtr(), sizeof(self._ptr[0].launchCompletionEvent)) * @property # <<<<<<<<<<<<<< * def deviceUpdatableKernelNode(self): * return self._deviceUpdatableKernelNode */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_25deviceUpdatableKernelNode_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_24cudaLaunchAttributeValue_25deviceUpdatableKernelNode___get__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_25deviceUpdatableKernelNode___get__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11596, 0, __PYX_ERR(0, 11596, __pyx_L1_error)); /* "cuda/cudart.pyx":11598 * @property * def deviceUpdatableKernelNode(self): * return self._deviceUpdatableKernelNode # <<<<<<<<<<<<<< * @deviceUpdatableKernelNode.setter * def deviceUpdatableKernelNode(self, deviceUpdatableKernelNode not None : anon_struct23): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_self->_deviceUpdatableKernelNode); __pyx_r = ((PyObject *)__pyx_v_self->_deviceUpdatableKernelNode); goto __pyx_L0; /* "cuda/cudart.pyx":11596 * def launchCompletionEvent(self, launchCompletionEvent not None : anon_struct22): * string.memcpy(&self._ptr[0].launchCompletionEvent, launchCompletionEvent.getPtr(), sizeof(self._ptr[0].launchCompletionEvent)) * @property # <<<<<<<<<<<<<< * def deviceUpdatableKernelNode(self): * return self._deviceUpdatableKernelNode */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.deviceUpdatableKernelNode.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11599 * def deviceUpdatableKernelNode(self): * return self._deviceUpdatableKernelNode * @deviceUpdatableKernelNode.setter # <<<<<<<<<<<<<< * def deviceUpdatableKernelNode(self, deviceUpdatableKernelNode not None : anon_struct23): * string.memcpy(&self._ptr[0].deviceUpdatableKernelNode, deviceUpdatableKernelNode.getPtr(), sizeof(self._ptr[0].deviceUpdatableKernelNode)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_25deviceUpdatableKernelNode_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_deviceUpdatableKernelNode); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_anon_struct23, 0, "deviceUpdatableKernelNode", 0))) __PYX_ERR(0, 11600, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_25deviceUpdatableKernelNode_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_anon_struct23 *)__pyx_v_deviceUpdatableKernelNode)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_25deviceUpdatableKernelNode_2__set__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_anon_struct23 *__pyx_v_deviceUpdatableKernelNode) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 11599, 0, __PYX_ERR(0, 11599, __pyx_L1_error)); /* "cuda/cudart.pyx":11601 * @deviceUpdatableKernelNode.setter * def deviceUpdatableKernelNode(self, deviceUpdatableKernelNode not None : anon_struct23): * string.memcpy(&self._ptr[0].deviceUpdatableKernelNode, deviceUpdatableKernelNode.getPtr(), sizeof(self._ptr[0].deviceUpdatableKernelNode)) # <<<<<<<<<<<<<< * @property * def sharedMemCarveout(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_deviceUpdatableKernelNode), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11601, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11601, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11601, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).deviceUpdatableKernelNode), ((struct anon_struct23 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).deviceUpdatableKernelNode)))); /* "cuda/cudart.pyx":11599 * def deviceUpdatableKernelNode(self): * return self._deviceUpdatableKernelNode * @deviceUpdatableKernelNode.setter # <<<<<<<<<<<<<< * def deviceUpdatableKernelNode(self, deviceUpdatableKernelNode not None : anon_struct23): * string.memcpy(&self._ptr[0].deviceUpdatableKernelNode, deviceUpdatableKernelNode.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.deviceUpdatableKernelNode.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11602 * def deviceUpdatableKernelNode(self, deviceUpdatableKernelNode not None : anon_struct23): * string.memcpy(&self._ptr[0].deviceUpdatableKernelNode, deviceUpdatableKernelNode.getPtr(), sizeof(self._ptr[0].deviceUpdatableKernelNode)) * @property # <<<<<<<<<<<<<< * def sharedMemCarveout(self): * return self._ptr[0].sharedMemCarveout */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_17sharedMemCarveout_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_24cudaLaunchAttributeValue_17sharedMemCarveout___get__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_17sharedMemCarveout___get__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11602, 0, __PYX_ERR(0, 11602, __pyx_L1_error)); /* "cuda/cudart.pyx":11604 * @property * def sharedMemCarveout(self): * return self._ptr[0].sharedMemCarveout # <<<<<<<<<<<<<< * @sharedMemCarveout.setter * def sharedMemCarveout(self, unsigned int sharedMemCarveout): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).sharedMemCarveout); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11604, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11602 * def deviceUpdatableKernelNode(self, deviceUpdatableKernelNode not None : anon_struct23): * string.memcpy(&self._ptr[0].deviceUpdatableKernelNode, deviceUpdatableKernelNode.getPtr(), sizeof(self._ptr[0].deviceUpdatableKernelNode)) * @property # <<<<<<<<<<<<<< * def sharedMemCarveout(self): * return self._ptr[0].sharedMemCarveout */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.sharedMemCarveout.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11605 * def sharedMemCarveout(self): * return self._ptr[0].sharedMemCarveout * @sharedMemCarveout.setter # <<<<<<<<<<<<<< * def sharedMemCarveout(self, unsigned int sharedMemCarveout): * self._ptr[0].sharedMemCarveout = sharedMemCarveout */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_17sharedMemCarveout_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_sharedMemCarveout); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_sharedMemCarveout); if (unlikely((__pyx_v_sharedMemCarveout == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 11606, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.sharedMemCarveout.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_17sharedMemCarveout_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)__pyx_v_self), ((unsigned int)__pyx_v_sharedMemCarveout)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_17sharedMemCarveout_2__set__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *__pyx_v_self, unsigned int __pyx_v_sharedMemCarveout) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 11605, 0, __PYX_ERR(0, 11605, __pyx_L1_error)); /* "cuda/cudart.pyx":11607 * @sharedMemCarveout.setter * def sharedMemCarveout(self, unsigned int sharedMemCarveout): * self._ptr[0].sharedMemCarveout = sharedMemCarveout # <<<<<<<<<<<<<< * * cdef class cudaLaunchAttribute_st: */ (__pyx_v_self->_ptr[0]).sharedMemCarveout = __pyx_v_sharedMemCarveout; /* "cuda/cudart.pyx":11605 * def sharedMemCarveout(self): * return self._ptr[0].sharedMemCarveout * @sharedMemCarveout.setter # <<<<<<<<<<<<<< * def sharedMemCarveout(self, unsigned int sharedMemCarveout): * self._ptr[0].sharedMemCarveout = sharedMemCarveout */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.sharedMemCarveout.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_24cudaLaunchAttributeValue_10__reduce_cython__, "cudaLaunchAttributeValue.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_24cudaLaunchAttributeValue_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_24cudaLaunchAttributeValue_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__285) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaLaunchAttributeValue.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_24cudaLaunchAttributeValue_12__setstate_cython__, "cudaLaunchAttributeValue.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_24cudaLaunchAttributeValue_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_24cudaLaunchAttributeValue_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttributeValue.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaLaunchAttributeValue_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__286) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaLaunchAttributeValue.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11626 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_22cudaLaunchAttribute_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_22cudaLaunchAttribute_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 11626, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 11626, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11626, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 11626, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttribute_st.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_22cudaLaunchAttribute_st___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute_st *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_22cudaLaunchAttribute_st___cinit__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute_st *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 11626, 0, __PYX_ERR(0, 11626, __pyx_L1_error)); /* "cuda/cudart.pyx":11627 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":11628 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaLaunchAttribute_st__val); /* "cuda/cudart.pyx":11627 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":11630 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * self._val = cudaLaunchAttributeValue(_ptr=&self._ptr[0].val) */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaLaunchAttribute_st *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":11626 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttribute_st.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":11631 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._val = cudaLaunchAttributeValue(_ptr=&self._ptr[0].val) * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_22cudaLaunchAttribute_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_22cudaLaunchAttribute_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 11631, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 11631, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11631, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 11631, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttribute_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_22cudaLaunchAttribute_st_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute_st *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_22cudaLaunchAttribute_st_2__init__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute_st *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 11631, 0, __PYX_ERR(0, 11631, __pyx_L1_error)); /* "cuda/cudart.pyx":11632 * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): * self._val = cudaLaunchAttributeValue(_ptr=&self._ptr[0].val) # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11632, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).val))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11632, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 11632, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaLaunchAttributeValue), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11632, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_val); __Pyx_DECREF((PyObject *)__pyx_v_self->_val); __pyx_v_self->_val = ((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":11631 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._val = cudaLaunchAttributeValue(_ptr=&self._ptr[0].val) * def __dealloc__(self): */ /* 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.cudart.cudaLaunchAttribute_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11633 * def __init__(self, void_ptr _ptr = 0): * self._val = cudaLaunchAttributeValue(_ptr=&self._ptr[0].val) * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_22cudaLaunchAttribute_st_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_22cudaLaunchAttribute_st_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_22cudaLaunchAttribute_st_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute_st *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 11633, 0, __PYX_ERR(0, 11633, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaLaunchAttribute_st.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":11635 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_22cudaLaunchAttribute_st_6getPtr, "cudaLaunchAttribute_st.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_22cudaLaunchAttribute_st_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_22cudaLaunchAttribute_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_22cudaLaunchAttribute_st_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_22cudaLaunchAttribute_st_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaLaunchAttribute_st_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__287) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 11635, 0, __PYX_ERR(0, 11635, __pyx_L1_error)); /* "cuda/cudart.pyx":11636 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11636, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11635 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttribute_st.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11637 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_22cudaLaunchAttribute_st_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_22cudaLaunchAttribute_st_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaLaunchAttribute_st_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute_st *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_9genexpr85__pyx_v_line = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 11637, 0, __PYX_ERR(0, 11637, __pyx_L1_error)); /* "cuda/cudart.pyx":11638 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":11639 * def __repr__(self): * if self._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, 11639, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":11640 * if self._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/cudart.pyx":11641 * str_list = [] * try: * str_list += ['id : ' + str(self.id)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['id : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11641, __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, 11641, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_id, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11641, __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, 11641, __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)) __PYX_ERR(0, 11641, __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, 11641, __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/cudart.pyx":11640 * if self._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/cudart.pyx":11642 * try: * str_list += ['id : ' + str(self.id)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['id : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 11642, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":11643 * str_list += ['id : ' + str(self.id)] * except ValueError: * str_list += ['id : '] # <<<<<<<<<<<<<< * 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, 11643, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_id_ValueError); __Pyx_GIVEREF(__pyx_kp_u_id_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_id_ValueError)) __PYX_ERR(0, 11643, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11643, __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/cudart.pyx":11640 * if self._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/cudart.pyx":11644 * except ValueError: * str_list += ['id : '] * 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/cudart.pyx":11645 * str_list += ['id : '] * try: * str_list += ['val :\n' + '\n'.join([' ' + line for line in str(self.val).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['val : '] */ { /* enter inner scope */ __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11645, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_val_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11645, __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, 11645, __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, 11645, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 11645, __pyx_L20_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_11); __Pyx_INCREF(__pyx_t_6); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 11645, __pyx_L20_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11645, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_9genexpr85__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr85__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11645, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 11645, __pyx_L20_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_9genexpr85__pyx_v_line); __pyx_9genexpr85__pyx_v_line = 0; goto __pyx_L24_exit_scope; __pyx_L20_error:; __Pyx_XDECREF(__pyx_9genexpr85__pyx_v_line); __pyx_9genexpr85__pyx_v_line = 0; goto __pyx_L12_error; __pyx_L24_exit_scope:; } /* exit inner scope */ __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11645, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_val, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11645, __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, 11645, __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)) __PYX_ERR(0, 11645, __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, 11645, __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/cudart.pyx":11644 * except ValueError: * str_list += ['id : '] * 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/cudart.pyx":11646 * try: * str_list += ['val :\n' + '\n'.join([' ' + line for line in str(self.val).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['val : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 11646, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":11647 * str_list += ['val :\n' + '\n'.join([' ' + line for line in str(self.val).splitlines()])] * except ValueError: * str_list += ['val : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11647, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_val_ValueError); __Pyx_GIVEREF(__pyx_kp_u_val_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_val_ValueError)) __PYX_ERR(0, 11647, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11647, __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/cudart.pyx":11644 * except ValueError: * str_list += ['id : '] * 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/cudart.pyx":11648 * except ValueError: * str_list += ['val : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_6 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11648, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11638 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":11650 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def id(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":11637 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaLaunchAttribute_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XDECREF(__pyx_9genexpr85__pyx_v_line); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11651 * else: * return '' * @property # <<<<<<<<<<<<<< * def id(self): * return cudaLaunchAttributeID(self._ptr[0].id) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_22cudaLaunchAttribute_st_2id_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_22cudaLaunchAttribute_st_2id___get__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaLaunchAttribute_st_2id___get__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11651, 0, __PYX_ERR(0, 11651, __pyx_L1_error)); /* "cuda/cudart.pyx":11653 * @property * def id(self): * return cudaLaunchAttributeID(self._ptr[0].id) # <<<<<<<<<<<<<< * @id.setter * def id(self, id not None : cudaLaunchAttributeID): */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaLaunchAttributeID); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11653, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID((__pyx_v_self->_ptr[0]).id); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11653, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11653, __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/cudart.pyx":11651 * else: * return '' * @property # <<<<<<<<<<<<<< * def id(self): * return cudaLaunchAttributeID(self._ptr[0].id) */ /* 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.cudart.cudaLaunchAttribute_st.id.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11654 * def id(self): * return cudaLaunchAttributeID(self._ptr[0].id) * @id.setter # <<<<<<<<<<<<<< * def id(self, id not None : cudaLaunchAttributeID): * self._ptr[0].id = id.value */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_22cudaLaunchAttribute_st_2id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_id); /*proto*/ static int __pyx_pw_4cuda_6cudart_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, 11655, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_22cudaLaunchAttribute_st_2id_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute_st *)__pyx_v_self), ((PyObject *)__pyx_v_id)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_22cudaLaunchAttribute_st_2id_2__set__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute_st *__pyx_v_self, PyObject *__pyx_v_id) { int __pyx_r; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 11654, 0, __PYX_ERR(0, 11654, __pyx_L1_error)); /* "cuda/cudart.pyx":11656 * @id.setter * def id(self, id not None : cudaLaunchAttributeID): * self._ptr[0].id = id.value # <<<<<<<<<<<<<< * @property * def val(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_id, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11656, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaLaunchAttributeID)__Pyx_PyInt_As_enum__cudaLaunchAttributeID(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 11656, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).id = __pyx_t_2; /* "cuda/cudart.pyx":11654 * def id(self): * return cudaLaunchAttributeID(self._ptr[0].id) * @id.setter # <<<<<<<<<<<<<< * def id(self, id not None : cudaLaunchAttributeID): * self._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.cudart.cudaLaunchAttribute_st.id.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11657 * def id(self, id not None : cudaLaunchAttributeID): * self._ptr[0].id = id.value * @property # <<<<<<<<<<<<<< * def val(self): * return self._val */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_22cudaLaunchAttribute_st_3val_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_22cudaLaunchAttribute_st_3val___get__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaLaunchAttribute_st_3val___get__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11657, 0, __PYX_ERR(0, 11657, __pyx_L1_error)); /* "cuda/cudart.pyx":11659 * @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/cudart.pyx":11657 * def id(self, id not None : cudaLaunchAttributeID): * self._ptr[0].id = id.value * @property # <<<<<<<<<<<<<< * def val(self): * return self._val */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttribute_st.val.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11660 * def val(self): * return self._val * @val.setter # <<<<<<<<<<<<<< * def val(self, val not None : cudaLaunchAttributeValue): * string.memcpy(&self._ptr[0].val, val.getPtr(), sizeof(self._ptr[0].val)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_22cudaLaunchAttribute_st_3val_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_cudaLaunchAttributeValue, 0, "val", 0))) __PYX_ERR(0, 11661, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_22cudaLaunchAttribute_st_3val_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute_st *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)__pyx_v_val)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_22cudaLaunchAttribute_st_3val_2__set__(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute_st *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *__pyx_v_val) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 11660, 0, __PYX_ERR(0, 11660, __pyx_L1_error)); /* "cuda/cudart.pyx":11662 * @val.setter * def val(self, val not None : cudaLaunchAttributeValue): * string.memcpy(&self._ptr[0].val, val.getPtr(), sizeof(self._ptr[0].val)) # <<<<<<<<<<<<<< * * cdef class anon_struct24: */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_val), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11662, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11662, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11662, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).val), ((union cudaLaunchAttributeValue *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).val)))); /* "cuda/cudart.pyx":11660 * def val(self): * return self._val * @val.setter # <<<<<<<<<<<<<< * def val(self, val not None : cudaLaunchAttributeValue): * string.memcpy(&self._ptr[0].val, val.getPtr(), sizeof(self._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_AddTraceback("cuda.cudart.cudaLaunchAttribute_st.val.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __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_6cudart_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_6cudart_22cudaLaunchAttribute_st_10__reduce_cython__, "cudaLaunchAttribute_st.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_22cudaLaunchAttribute_st_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_22cudaLaunchAttribute_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_22cudaLaunchAttribute_st_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_22cudaLaunchAttribute_st_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaLaunchAttribute_st_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__288) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaLaunchAttribute_st.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_22cudaLaunchAttribute_st_12__setstate_cython__, "cudaLaunchAttribute_st.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_22cudaLaunchAttribute_st_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_22cudaLaunchAttribute_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_22cudaLaunchAttribute_st_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaLaunchAttribute_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_22cudaLaunchAttribute_st_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute_st *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaLaunchAttribute_st_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute_st *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__289) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaLaunchAttribute_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11677 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct24_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct24_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 11677, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 11677, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11677, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 11677, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct24.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct24___cinit__(((struct __pyx_obj_4cuda_6cudart_anon_struct24 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct24___cinit__(struct __pyx_obj_4cuda_6cudart_anon_struct24 *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 11677, 0, __PYX_ERR(0, 11677, __pyx_L1_error)); /* "cuda/cudart.pyx":11678 * """ * def __cinit__(self, void_ptr _ptr): * self._ptr = _ptr # <<<<<<<<<<<<<< * * def __init__(self, void_ptr _ptr): */ __pyx_v_self->_ptr = ((struct cudaAsyncNotificationInfo *)__pyx_v__ptr); /* "cuda/cudart.pyx":11677 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct24.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":11680 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct24_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct24_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 11680, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 11680, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11680, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 11680, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct24.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct24_2__init__(((struct __pyx_obj_4cuda_6cudart_anon_struct24 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct24_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct24 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 11680, 0, __PYX_ERR(0, 11680, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct24.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":11682 * def __init__(self, void_ptr _ptr): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_13anon_struct24_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_13anon_struct24_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_6cudart_13anon_struct24_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_anon_struct24 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_13anon_struct24_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct24 *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 11682, 0, __PYX_ERR(0, 11682, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.anon_struct24.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":11684 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].info.overBudget * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct24_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_6cudart_13anon_struct24_6getPtr, "anon_struct24.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_13anon_struct24_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct24_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct24_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct24_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct24_6getPtr(((struct __pyx_obj_4cuda_6cudart_anon_struct24 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct24_6getPtr(struct __pyx_obj_4cuda_6cudart_anon_struct24 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__290) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 11684, 0, __PYX_ERR(0, 11684, __pyx_L1_error)); /* "cuda/cudart.pyx":11685 * pass * def getPtr(self): * return &self._ptr[0].info.overBudget # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).info.overBudget))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11685, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11684 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].info.overBudget * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct24.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11686 * def getPtr(self): * return &self._ptr[0].info.overBudget * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct24_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct24_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_6cudart_13anon_struct24_8__repr__(((struct __pyx_obj_4cuda_6cudart_anon_struct24 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct24_8__repr__(struct __pyx_obj_4cuda_6cudart_anon_struct24 *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 11686, 0, __PYX_ERR(0, 11686, __pyx_L1_error)); /* "cuda/cudart.pyx":11687 * return &self._ptr[0].info.overBudget * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":11688 * def __repr__(self): * if self._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, 11688, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":11689 * if self._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/cudart.pyx":11690 * str_list = [] * try: * str_list += ['bytesOverBudget : ' + str(self.bytesOverBudget)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['bytesOverBudget : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_bytesOverBudget_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11690, __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, 11690, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_bytesOverBudget, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11690, __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, 11690, __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)) __PYX_ERR(0, 11690, __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, 11690, __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/cudart.pyx":11689 * if self._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/cudart.pyx":11691 * try: * str_list += ['bytesOverBudget : ' + str(self.bytesOverBudget)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['bytesOverBudget : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.anon_struct24.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 11691, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":11692 * str_list += ['bytesOverBudget : ' + str(self.bytesOverBudget)] * except ValueError: * str_list += ['bytesOverBudget : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11692, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_bytesOverBudget_ValueError); __Pyx_GIVEREF(__pyx_kp_u_bytesOverBudget_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_bytesOverBudget_ValueError)) __PYX_ERR(0, 11692, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11692, __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/cudart.pyx":11689 * if self._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/cudart.pyx":11693 * except ValueError: * str_list += ['bytesOverBudget : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11693, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11687 * return &self._ptr[0].info.overBudget * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":11695 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def bytesOverBudget(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":11686 * def getPtr(self): * return &self._ptr[0].info.overBudget * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.anon_struct24.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11696 * else: * return '' * @property # <<<<<<<<<<<<<< * def bytesOverBudget(self): * return self._ptr[0].info.overBudget.bytesOverBudget */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct24_15bytesOverBudget_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct24_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_6cudart_13anon_struct24_15bytesOverBudget___get__(((struct __pyx_obj_4cuda_6cudart_anon_struct24 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct24_15bytesOverBudget___get__(struct __pyx_obj_4cuda_6cudart_anon_struct24 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11696, 0, __PYX_ERR(0, 11696, __pyx_L1_error)); /* "cuda/cudart.pyx":11698 * @property * def bytesOverBudget(self): * return self._ptr[0].info.overBudget.bytesOverBudget # <<<<<<<<<<<<<< * @bytesOverBudget.setter * def bytesOverBudget(self, unsigned long long bytesOverBudget): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG((__pyx_v_self->_ptr[0]).info.overBudget.bytesOverBudget); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11698, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11696 * else: * return '' * @property # <<<<<<<<<<<<<< * def bytesOverBudget(self): * return self._ptr[0].info.overBudget.bytesOverBudget */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_struct24.bytesOverBudget.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11699 * def bytesOverBudget(self): * return self._ptr[0].info.overBudget.bytesOverBudget * @bytesOverBudget.setter # <<<<<<<<<<<<<< * def bytesOverBudget(self, unsigned long long bytesOverBudget): * self._ptr[0].info.overBudget.bytesOverBudget = bytesOverBudget */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_13anon_struct24_15bytesOverBudget_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_bytesOverBudget); /*proto*/ static int __pyx_pw_4cuda_6cudart_13anon_struct24_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_PyInt_As_unsigned_PY_LONG_LONG(__pyx_arg_bytesOverBudget); if (unlikely((__pyx_v_bytesOverBudget == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11700, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct24.bytesOverBudget.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct24_15bytesOverBudget_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_struct24 *)__pyx_v_self), ((unsigned PY_LONG_LONG)__pyx_v_bytesOverBudget)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_13anon_struct24_15bytesOverBudget_2__set__(struct __pyx_obj_4cuda_6cudart_anon_struct24 *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_bytesOverBudget) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 11699, 0, __PYX_ERR(0, 11699, __pyx_L1_error)); /* "cuda/cudart.pyx":11701 * @bytesOverBudget.setter * def bytesOverBudget(self, unsigned long long bytesOverBudget): * self._ptr[0].info.overBudget.bytesOverBudget = bytesOverBudget # <<<<<<<<<<<<<< * * cdef class anon_union9: */ (__pyx_v_self->_ptr[0]).info.overBudget.bytesOverBudget = __pyx_v_bytesOverBudget; /* "cuda/cudart.pyx":11699 * def bytesOverBudget(self): * return self._ptr[0].info.overBudget.bytesOverBudget * @bytesOverBudget.setter # <<<<<<<<<<<<<< * def bytesOverBudget(self, unsigned long long bytesOverBudget): * self._ptr[0].info.overBudget.bytesOverBudget = bytesOverBudget */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_struct24.bytesOverBudget.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_13anon_struct24_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_6cudart_13anon_struct24_10__reduce_cython__, "anon_struct24.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_13anon_struct24_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct24_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct24_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct24_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct24_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct24 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct24_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct24 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__291) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct24.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_13anon_struct24_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_6cudart_13anon_struct24_12__setstate_cython__, "anon_struct24.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_13anon_struct24_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct24_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct24_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_13anon_struct24_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_struct24.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_13anon_struct24_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_anon_struct24 *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_13anon_struct24_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_struct24 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__292) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_struct24.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11716 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_11anon_union9_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_11anon_union9_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 11716, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 11716, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11716, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 11716, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_union9.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union9___cinit__(((struct __pyx_obj_4cuda_6cudart_anon_union9 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_11anon_union9___cinit__(struct __pyx_obj_4cuda_6cudart_anon_union9 *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 11716, 0, __PYX_ERR(0, 11716, __pyx_L1_error)); /* "cuda/cudart.pyx":11717 * """ * def __cinit__(self, void_ptr _ptr): * self._ptr = _ptr # <<<<<<<<<<<<<< * * def __init__(self, void_ptr _ptr): */ __pyx_v_self->_ptr = ((struct cudaAsyncNotificationInfo *)__pyx_v__ptr); /* "cuda/cudart.pyx":11716 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_union9.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":11719 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._overBudget = anon_struct24(_ptr=self._ptr) * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_11anon_union9_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_11anon_union9_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 11719, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 11719, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11719, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 11719, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_union9.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union9_2__init__(((struct __pyx_obj_4cuda_6cudart_anon_union9 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_11anon_union9_2__init__(struct __pyx_obj_4cuda_6cudart_anon_union9 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 11719, 0, __PYX_ERR(0, 11719, __pyx_L1_error)); /* "cuda/cudart.pyx":11720 * * def __init__(self, void_ptr _ptr): * self._overBudget = anon_struct24(_ptr=self._ptr) # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11720, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11720, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 11720, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct24), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11720, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_overBudget); __Pyx_DECREF((PyObject *)__pyx_v_self->_overBudget); __pyx_v_self->_overBudget = ((struct __pyx_obj_4cuda_6cudart_anon_struct24 *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":11719 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._overBudget = anon_struct24(_ptr=self._ptr) * def __dealloc__(self): */ /* 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.cudart.anon_union9.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11721 * def __init__(self, void_ptr _ptr): * self._overBudget = anon_struct24(_ptr=self._ptr) * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_11anon_union9_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_11anon_union9_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_anon_union9 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_11anon_union9_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_union9 *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 11721, 0, __PYX_ERR(0, 11721, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.anon_union9.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":11723 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].info * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_11anon_union9_6getPtr, "anon_union9.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_11anon_union9_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union9_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union9_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union9_6getPtr(((struct __pyx_obj_4cuda_6cudart_anon_union9 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union9_6getPtr(struct __pyx_obj_4cuda_6cudart_anon_union9 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__293) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 11723, 0, __PYX_ERR(0, 11723, __pyx_L1_error)); /* "cuda/cudart.pyx":11724 * pass * def getPtr(self): * return &self._ptr[0].info # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).info))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11724, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11723 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].info * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_union9.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11725 * def getPtr(self): * return &self._ptr[0].info * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_11anon_union9_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_11anon_union9_8__repr__(((struct __pyx_obj_4cuda_6cudart_anon_union9 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union9_8__repr__(struct __pyx_obj_4cuda_6cudart_anon_union9 *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_9genexpr86__pyx_v_line = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 11725, 0, __PYX_ERR(0, 11725, __pyx_L1_error)); /* "cuda/cudart.pyx":11726 * return &self._ptr[0].info * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":11727 * def __repr__(self): * if self._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, 11727, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":11728 * if self._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/cudart.pyx":11729 * str_list = [] * try: * str_list += ['overBudget :\n' + '\n'.join([' ' + line for line in str(self.overBudget).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['overBudget : '] */ { /* enter inner scope */ __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11729, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_overBudget_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11729, __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, 11729, __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, 11729, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 11729, __pyx_L12_error) #endif if (__pyx_t_8 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_7, __pyx_t_8); __Pyx_INCREF(__pyx_t_6); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(0, 11729, __pyx_L12_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11729, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_9genexpr86__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr86__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11729, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 11729, __pyx_L12_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_9genexpr86__pyx_v_line); __pyx_9genexpr86__pyx_v_line = 0; goto __pyx_L16_exit_scope; __pyx_L12_error:; __Pyx_XDECREF(__pyx_9genexpr86__pyx_v_line); __pyx_9genexpr86__pyx_v_line = 0; goto __pyx_L4_error; __pyx_L16_exit_scope:; } /* exit inner scope */ __pyx_t_7 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 11729, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_overBudget, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11729, __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, 11729, __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)) __PYX_ERR(0, 11729, __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, 11729, __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/cudart.pyx":11728 * if self._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/cudart.pyx":11730 * try: * str_list += ['overBudget :\n' + '\n'.join([' ' + line for line in str(self.overBudget).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['overBudget : '] * return '\n'.join(str_list) */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.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, 11730, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":11731 * str_list += ['overBudget :\n' + '\n'.join([' ' + line for line in str(self.overBudget).splitlines()])] * except ValueError: * str_list += ['overBudget : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11731, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_overBudget_ValueError); __Pyx_GIVEREF(__pyx_kp_u_overBudget_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_overBudget_ValueError)) __PYX_ERR(0, 11731, __pyx_L6_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 11731, __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/cudart.pyx":11728 * if self._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/cudart.pyx":11732 * except ValueError: * str_list += ['overBudget : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_6 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11732, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11726 * return &self._ptr[0].info * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":11734 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def overBudget(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":11725 * def getPtr(self): * return &self._ptr[0].info * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.anon_union9.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XDECREF(__pyx_9genexpr86__pyx_v_line); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11735 * else: * return '' * @property # <<<<<<<<<<<<<< * def overBudget(self): * return self._overBudget */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_11anon_union9_10overBudget_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_11anon_union9_10overBudget___get__(((struct __pyx_obj_4cuda_6cudart_anon_union9 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union9_10overBudget___get__(struct __pyx_obj_4cuda_6cudart_anon_union9 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11735, 0, __PYX_ERR(0, 11735, __pyx_L1_error)); /* "cuda/cudart.pyx":11737 * @property * def overBudget(self): * return self._overBudget # <<<<<<<<<<<<<< * @overBudget.setter * def overBudget(self, overBudget not None : anon_struct24): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF((PyObject *)__pyx_v_self->_overBudget); __pyx_r = ((PyObject *)__pyx_v_self->_overBudget); goto __pyx_L0; /* "cuda/cudart.pyx":11735 * else: * return '' * @property # <<<<<<<<<<<<<< * def overBudget(self): * return self._overBudget */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_union9.overBudget.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11738 * def overBudget(self): * return self._overBudget * @overBudget.setter # <<<<<<<<<<<<<< * def overBudget(self, overBudget not None : anon_struct24): * string.memcpy(&self._ptr[0].info.overBudget, overBudget.getPtr(), sizeof(self._ptr[0].info.overBudget)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_11anon_union9_10overBudget_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_overBudget); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_anon_struct24, 0, "overBudget", 0))) __PYX_ERR(0, 11739, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union9_10overBudget_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_union9 *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_anon_struct24 *)__pyx_v_overBudget)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_11anon_union9_10overBudget_2__set__(struct __pyx_obj_4cuda_6cudart_anon_union9 *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_anon_struct24 *__pyx_v_overBudget) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 11738, 0, __PYX_ERR(0, 11738, __pyx_L1_error)); /* "cuda/cudart.pyx":11740 * @overBudget.setter * def overBudget(self, overBudget not None : anon_struct24): * string.memcpy(&self._ptr[0].info.overBudget, overBudget.getPtr(), sizeof(self._ptr[0].info.overBudget)) # <<<<<<<<<<<<<< * * cdef class cudaAsyncNotificationInfo: */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_overBudget), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11740, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11740, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11740, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).info.overBudget), ((struct anon_struct24 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).info.overBudget)))); /* "cuda/cudart.pyx":11738 * def overBudget(self): * return self._overBudget * @overBudget.setter # <<<<<<<<<<<<<< * def overBudget(self, overBudget not None : anon_struct24): * string.memcpy(&self._ptr[0].info.overBudget, overBudget.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.anon_union9.overBudget.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __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_6cudart_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_6cudart_11anon_union9_10__reduce_cython__, "anon_union9.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_11anon_union9_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union9_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union9_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union9_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_anon_union9 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union9_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_union9 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__294) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_union9.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_11anon_union9_12__setstate_cython__, "anon_union9.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_11anon_union9_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union9_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union9_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_union9.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_11anon_union9_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_anon_union9 *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_11anon_union9_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_union9 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__295) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_union9.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11759 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._val_ptr = calloc(1, sizeof(ccudart.cudaAsyncNotificationInfo)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_25cudaAsyncNotificationInfo_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_25cudaAsyncNotificationInfo_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 11759, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 11759, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_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_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 11759, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaAsyncNotificationInfo.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_25cudaAsyncNotificationInfo___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaAsyncNotificationInfo *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_25cudaAsyncNotificationInfo___cinit__(struct __pyx_obj_4cuda_6cudart_cudaAsyncNotificationInfo *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; struct cudaAsyncNotificationInfo *__pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 11759, 0, __PYX_ERR(0, 11759, __pyx_L1_error)); /* "cuda/cudart.pyx":11760 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._val_ptr = calloc(1, sizeof(ccudart.cudaAsyncNotificationInfo)) * self._ptr = self._val_ptr */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":11761 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._val_ptr = calloc(1, sizeof(ccudart.cudaAsyncNotificationInfo)) # <<<<<<<<<<<<<< * self._ptr = self._val_ptr * else: */ __pyx_v_self->_val_ptr = ((struct cudaAsyncNotificationInfo *)calloc(1, (sizeof(struct cudaAsyncNotificationInfo)))); /* "cuda/cudart.pyx":11762 * if _ptr == 0: * self._val_ptr = calloc(1, sizeof(ccudart.cudaAsyncNotificationInfo)) * self._ptr = self._val_ptr # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_t_2 = __pyx_v_self->_val_ptr; __pyx_v_self->_ptr = __pyx_t_2; /* "cuda/cudart.pyx":11760 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._val_ptr = calloc(1, sizeof(ccudart.cudaAsyncNotificationInfo)) * self._ptr = self._val_ptr */ goto __pyx_L3; } /* "cuda/cudart.pyx":11764 * self._ptr = self._val_ptr * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * self._info = anon_union9(_ptr=self._ptr) */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaAsyncNotificationInfo *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":11759 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._val_ptr = calloc(1, sizeof(ccudart.cudaAsyncNotificationInfo)) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaAsyncNotificationInfo.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":11765 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._info = anon_union9(_ptr=self._ptr) * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_25cudaAsyncNotificationInfo_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_25cudaAsyncNotificationInfo_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 11765, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 11765, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11765, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 11765, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaAsyncNotificationInfo.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_25cudaAsyncNotificationInfo_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaAsyncNotificationInfo *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_25cudaAsyncNotificationInfo_2__init__(struct __pyx_obj_4cuda_6cudart_cudaAsyncNotificationInfo *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 11765, 0, __PYX_ERR(0, 11765, __pyx_L1_error)); /* "cuda/cudart.pyx":11766 * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): * self._info = anon_union9(_ptr=self._ptr) # <<<<<<<<<<<<<< * def __dealloc__(self): * if self._val_ptr is not NULL: */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11766, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11766, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 11766, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_anon_union9), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11766, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_info); __Pyx_DECREF((PyObject *)__pyx_v_self->_info); __pyx_v_self->_info = ((struct __pyx_obj_4cuda_6cudart_anon_union9 *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":11765 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._info = anon_union9(_ptr=self._ptr) * def __dealloc__(self): */ /* 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.cudart.cudaAsyncNotificationInfo.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11767 * def __init__(self, void_ptr _ptr = 0): * self._info = anon_union9(_ptr=self._ptr) * def __dealloc__(self): # <<<<<<<<<<<<<< * if self._val_ptr is not NULL: * free(self._val_ptr) */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_25cudaAsyncNotificationInfo_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_25cudaAsyncNotificationInfo_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaAsyncNotificationInfo *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_25cudaAsyncNotificationInfo_4__dealloc__(struct __pyx_obj_4cuda_6cudart_cudaAsyncNotificationInfo *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 11767, 0, __PYX_ERR(0, 11767, __pyx_L1_error)); /* "cuda/cudart.pyx":11768 * self._info = anon_union9(_ptr=self._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/cudart.pyx":11769 * def __dealloc__(self): * if self._val_ptr is not NULL: * free(self._val_ptr) # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ free(__pyx_v_self->_val_ptr); /* "cuda/cudart.pyx":11768 * self._info = anon_union9(_ptr=self._ptr) * def __dealloc__(self): * if self._val_ptr is not NULL: # <<<<<<<<<<<<<< * free(self._val_ptr) * def getPtr(self): */ } /* "cuda/cudart.pyx":11767 * def __init__(self, void_ptr _ptr = 0): * self._info = anon_union9(_ptr=self._ptr) * def __dealloc__(self): # <<<<<<<<<<<<<< * if self._val_ptr is not NULL: * free(self._val_ptr) */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaAsyncNotificationInfo.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":11770 * if self._val_ptr is not NULL: * free(self._val_ptr) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_25cudaAsyncNotificationInfo_6getPtr, "cudaAsyncNotificationInfo.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_25cudaAsyncNotificationInfo_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_25cudaAsyncNotificationInfo_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_25cudaAsyncNotificationInfo_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_25cudaAsyncNotificationInfo_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaAsyncNotificationInfo *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaAsyncNotificationInfo_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaAsyncNotificationInfo *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__296) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 11770, 0, __PYX_ERR(0, 11770, __pyx_L1_error)); /* "cuda/cudart.pyx":11771 * free(self._val_ptr) * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11771, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11770 * if self._val_ptr is not NULL: * free(self._val_ptr) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaAsyncNotificationInfo.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11772 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_25cudaAsyncNotificationInfo_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_25cudaAsyncNotificationInfo_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaAsyncNotificationInfo *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaAsyncNotificationInfo_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaAsyncNotificationInfo *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_9genexpr87__pyx_v_line = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 11772, 0, __PYX_ERR(0, 11772, __pyx_L1_error)); /* "cuda/cudart.pyx":11773 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":11774 * def __repr__(self): * if self._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, 11774, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":11775 * if self._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/cudart.pyx":11776 * str_list = [] * try: * str_list += ['type : ' + str(self.type)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['type : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_type_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11776, __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, 11776, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_type, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11776, __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, 11776, __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)) __PYX_ERR(0, 11776, __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, 11776, __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/cudart.pyx":11775 * if self._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/cudart.pyx":11777 * try: * str_list += ['type : ' + str(self.type)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['type : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaAsyncNotificationInfo.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 11777, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":11778 * str_list += ['type : ' + str(self.type)] * except ValueError: * str_list += ['type : '] # <<<<<<<<<<<<<< * 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, 11778, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_type_ValueError); __Pyx_GIVEREF(__pyx_kp_u_type_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_type_ValueError)) __PYX_ERR(0, 11778, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11778, __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/cudart.pyx":11775 * if self._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/cudart.pyx":11779 * except ValueError: * str_list += ['type : '] * 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/cudart.pyx":11780 * str_list += ['type : '] * try: * str_list += ['info :\n' + '\n'.join([' ' + line for line in str(self.info).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['info : '] */ { /* enter inner scope */ __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11780, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_info_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11780, __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, 11780, __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, 11780, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 11780, __pyx_L20_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_11); __Pyx_INCREF(__pyx_t_6); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 11780, __pyx_L20_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11780, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_9genexpr87__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr87__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11780, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 11780, __pyx_L20_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_9genexpr87__pyx_v_line); __pyx_9genexpr87__pyx_v_line = 0; goto __pyx_L24_exit_scope; __pyx_L20_error:; __Pyx_XDECREF(__pyx_9genexpr87__pyx_v_line); __pyx_9genexpr87__pyx_v_line = 0; goto __pyx_L12_error; __pyx_L24_exit_scope:; } /* exit inner scope */ __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11780, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_info, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11780, __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, 11780, __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)) __PYX_ERR(0, 11780, __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, 11780, __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/cudart.pyx":11779 * except ValueError: * str_list += ['type : '] * 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/cudart.pyx":11781 * try: * str_list += ['info :\n' + '\n'.join([' ' + line for line in str(self.info).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['info : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaAsyncNotificationInfo.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 11781, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":11782 * str_list += ['info :\n' + '\n'.join([' ' + line for line in str(self.info).splitlines()])] * except ValueError: * str_list += ['info : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11782, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_info_ValueError); __Pyx_GIVEREF(__pyx_kp_u_info_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_info_ValueError)) __PYX_ERR(0, 11782, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11782, __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/cudart.pyx":11779 * except ValueError: * str_list += ['type : '] * 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/cudart.pyx":11783 * except ValueError: * str_list += ['info : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_6 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11783, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11773 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":11785 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def type(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":11772 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaAsyncNotificationInfo.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XDECREF(__pyx_9genexpr87__pyx_v_line); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11786 * else: * return '' * @property # <<<<<<<<<<<<<< * def type(self): * return cudaAsyncNotificationType(self._ptr[0].type) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_25cudaAsyncNotificationInfo_4type_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_25cudaAsyncNotificationInfo_4type___get__(((struct __pyx_obj_4cuda_6cudart_cudaAsyncNotificationInfo *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaAsyncNotificationInfo_4type___get__(struct __pyx_obj_4cuda_6cudart_cudaAsyncNotificationInfo *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11786, 0, __PYX_ERR(0, 11786, __pyx_L1_error)); /* "cuda/cudart.pyx":11788 * @property * def type(self): * return cudaAsyncNotificationType(self._ptr[0].type) # <<<<<<<<<<<<<< * @type.setter * def type(self, type not None : cudaAsyncNotificationType): */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaAsyncNotificationType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11788, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaAsyncNotificationType_enum((__pyx_v_self->_ptr[0]).type); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11788, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11788, __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/cudart.pyx":11786 * else: * return '' * @property # <<<<<<<<<<<<<< * def type(self): * return cudaAsyncNotificationType(self._ptr[0].type) */ /* 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.cudart.cudaAsyncNotificationInfo.type.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11789 * def type(self): * return cudaAsyncNotificationType(self._ptr[0].type) * @type.setter # <<<<<<<<<<<<<< * def type(self, type not None : cudaAsyncNotificationType): * self._ptr[0].type = type.value */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_25cudaAsyncNotificationInfo_4type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_type); /*proto*/ static int __pyx_pw_4cuda_6cudart_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, 11790, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_25cudaAsyncNotificationInfo_4type_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaAsyncNotificationInfo *)__pyx_v_self), ((PyObject *)__pyx_v_type)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_25cudaAsyncNotificationInfo_4type_2__set__(struct __pyx_obj_4cuda_6cudart_cudaAsyncNotificationInfo *__pyx_v_self, PyObject *__pyx_v_type) { int __pyx_r; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 11789, 0, __PYX_ERR(0, 11789, __pyx_L1_error)); /* "cuda/cudart.pyx":11791 * @type.setter * def type(self, type not None : cudaAsyncNotificationType): * self._ptr[0].type = type.value # <<<<<<<<<<<<<< * @property * def info(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_type, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11791, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaAsyncNotificationType_enum)__Pyx_PyInt_As_enum__cudaAsyncNotificationType_enum(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 11791, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).type = __pyx_t_2; /* "cuda/cudart.pyx":11789 * def type(self): * return cudaAsyncNotificationType(self._ptr[0].type) * @type.setter # <<<<<<<<<<<<<< * def type(self, type not None : cudaAsyncNotificationType): * self._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.cudart.cudaAsyncNotificationInfo.type.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11792 * def type(self, type not None : cudaAsyncNotificationType): * self._ptr[0].type = type.value * @property # <<<<<<<<<<<<<< * def info(self): * return self._info */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_25cudaAsyncNotificationInfo_4info_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_25cudaAsyncNotificationInfo_4info___get__(((struct __pyx_obj_4cuda_6cudart_cudaAsyncNotificationInfo *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaAsyncNotificationInfo_4info___get__(struct __pyx_obj_4cuda_6cudart_cudaAsyncNotificationInfo *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11792, 0, __PYX_ERR(0, 11792, __pyx_L1_error)); /* "cuda/cudart.pyx":11794 * @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/cudart.pyx":11792 * def type(self, type not None : cudaAsyncNotificationType): * self._ptr[0].type = type.value * @property # <<<<<<<<<<<<<< * def info(self): * return self._info */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaAsyncNotificationInfo.info.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11795 * def info(self): * return self._info * @info.setter # <<<<<<<<<<<<<< * def info(self, info not None : anon_union9): * string.memcpy(&self._ptr[0].info, info.getPtr(), sizeof(self._ptr[0].info)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_25cudaAsyncNotificationInfo_4info_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_info); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_anon_union9, 0, "info", 0))) __PYX_ERR(0, 11796, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_25cudaAsyncNotificationInfo_4info_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaAsyncNotificationInfo *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_anon_union9 *)__pyx_v_info)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_25cudaAsyncNotificationInfo_4info_2__set__(struct __pyx_obj_4cuda_6cudart_cudaAsyncNotificationInfo *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_anon_union9 *__pyx_v_info) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 11795, 0, __PYX_ERR(0, 11795, __pyx_L1_error)); /* "cuda/cudart.pyx":11797 * @info.setter * def info(self, info not None : anon_union9): * string.memcpy(&self._ptr[0].info, info.getPtr(), sizeof(self._ptr[0].info)) # <<<<<<<<<<<<<< * * cdef class cudaTextureDesc: */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_info), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11797, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11797, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11797, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).info), ((union anon_union9 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).info)))); /* "cuda/cudart.pyx":11795 * def info(self): * return self._info * @info.setter # <<<<<<<<<<<<<< * def info(self, info not None : anon_union9): * string.memcpy(&self._ptr[0].info, info.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaAsyncNotificationInfo.info.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __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_6cudart_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_6cudart_25cudaAsyncNotificationInfo_10__reduce_cython__, "cudaAsyncNotificationInfo.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_25cudaAsyncNotificationInfo_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_25cudaAsyncNotificationInfo_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_25cudaAsyncNotificationInfo_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_25cudaAsyncNotificationInfo_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaAsyncNotificationInfo *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaAsyncNotificationInfo_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaAsyncNotificationInfo *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__297) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaAsyncNotificationInfo.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_25cudaAsyncNotificationInfo_12__setstate_cython__, "cudaAsyncNotificationInfo.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_25cudaAsyncNotificationInfo_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_25cudaAsyncNotificationInfo_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_25cudaAsyncNotificationInfo_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaAsyncNotificationInfo.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_25cudaAsyncNotificationInfo_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaAsyncNotificationInfo *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_25cudaAsyncNotificationInfo_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaAsyncNotificationInfo *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__298) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaAsyncNotificationInfo.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11838 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_15cudaTextureDesc_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_15cudaTextureDesc_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 11838, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 11838, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11838, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 11838, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_15cudaTextureDesc___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_15cudaTextureDesc___cinit__(struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 11838, 0, __PYX_ERR(0, 11838, __pyx_L1_error)); /* "cuda/cudart.pyx":11839 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":11840 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaTextureDesc__val); /* "cuda/cudart.pyx":11839 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":11842 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * pass */ /*else*/ { __pyx_v_self->_ptr = ((struct cudaTextureDesc *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":11838 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":11843 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_15cudaTextureDesc_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_15cudaTextureDesc_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 11843, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 11843, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11843, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 11843, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_15cudaTextureDesc_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_15cudaTextureDesc_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 11843, 0, __PYX_ERR(0, 11843, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":11845 * def __init__(self, void_ptr _ptr = 0): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_15cudaTextureDesc_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_15cudaTextureDesc_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_15cudaTextureDesc_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 11845, 0, __PYX_ERR(0, 11845, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaTextureDesc.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":11847 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_15cudaTextureDesc_6getPtr, "cudaTextureDesc.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_15cudaTextureDesc_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_15cudaTextureDesc_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_15cudaTextureDesc_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_15cudaTextureDesc_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_15cudaTextureDesc_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__299) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 11847, 0, __PYX_ERR(0, 11847, __pyx_L1_error)); /* "cuda/cudart.pyx":11848 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11848, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11847 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11849 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_15cudaTextureDesc_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_15cudaTextureDesc_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_15cudaTextureDesc_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 11849, 0, __PYX_ERR(0, 11849, __pyx_L1_error)); /* "cuda/cudart.pyx":11850 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":11851 * def __repr__(self): * if self._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, 11851, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":11852 * if self._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/cudart.pyx":11853 * str_list = [] * try: * str_list += ['addressMode : ' + str(self.addressMode)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['addressMode : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_addressMode_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11853, __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, 11853, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_addressMode, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11853, __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, 11853, __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)) __PYX_ERR(0, 11853, __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, 11853, __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/cudart.pyx":11852 * if self._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/cudart.pyx":11854 * try: * str_list += ['addressMode : ' + str(self.addressMode)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['addressMode : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 11854, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":11855 * str_list += ['addressMode : ' + str(self.addressMode)] * except ValueError: * str_list += ['addressMode : '] # <<<<<<<<<<<<<< * try: * str_list += ['filterMode : ' + str(self.filterMode)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11855, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_addressMode_ValueError); __Pyx_GIVEREF(__pyx_kp_u_addressMode_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_addressMode_ValueError)) __PYX_ERR(0, 11855, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11855, __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/cudart.pyx":11852 * if self._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/cudart.pyx":11856 * except ValueError: * str_list += ['addressMode : '] * 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/cudart.pyx":11857 * str_list += ['addressMode : '] * try: * str_list += ['filterMode : ' + str(self.filterMode)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['filterMode : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_filterMode_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11857, __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, 11857, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_filterMode, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11857, __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, 11857, __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)) __PYX_ERR(0, 11857, __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, 11857, __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/cudart.pyx":11856 * except ValueError: * str_list += ['addressMode : '] * 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/cudart.pyx":11858 * try: * str_list += ['filterMode : ' + str(self.filterMode)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['filterMode : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 11858, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":11859 * str_list += ['filterMode : ' + str(self.filterMode)] * except ValueError: * str_list += ['filterMode : '] # <<<<<<<<<<<<<< * try: * str_list += ['readMode : ' + str(self.readMode)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11859, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_filterMode_ValueError); __Pyx_GIVEREF(__pyx_kp_u_filterMode_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_filterMode_ValueError)) __PYX_ERR(0, 11859, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11859, __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/cudart.pyx":11856 * except ValueError: * str_list += ['addressMode : '] * 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/cudart.pyx":11860 * except ValueError: * str_list += ['filterMode : '] * 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/cudart.pyx":11861 * str_list += ['filterMode : '] * try: * str_list += ['readMode : ' + str(self.readMode)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['readMode : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_readMode_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11861, __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, 11861, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_readMode, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11861, __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, 11861, __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)) __PYX_ERR(0, 11861, __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, 11861, __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/cudart.pyx":11860 * except ValueError: * str_list += ['filterMode : '] * 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/cudart.pyx":11862 * try: * str_list += ['readMode : ' + str(self.readMode)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['readMode : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 11862, __pyx_L22_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":11863 * str_list += ['readMode : ' + str(self.readMode)] * except ValueError: * str_list += ['readMode : '] # <<<<<<<<<<<<<< * try: * str_list += ['sRGB : ' + str(self.sRGB)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11863, __pyx_L22_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_readMode_ValueError); __Pyx_GIVEREF(__pyx_kp_u_readMode_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_readMode_ValueError)) __PYX_ERR(0, 11863, __pyx_L22_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11863, __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/cudart.pyx":11860 * except ValueError: * str_list += ['filterMode : '] * 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/cudart.pyx":11864 * except ValueError: * str_list += ['readMode : '] * 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/cudart.pyx":11865 * str_list += ['readMode : '] * try: * str_list += ['sRGB : ' + str(self.sRGB)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['sRGB : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_sRGB_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11865, __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, 11865, __pyx_L28_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_sRGB, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11865, __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, 11865, __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)) __PYX_ERR(0, 11865, __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, 11865, __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/cudart.pyx":11864 * except ValueError: * str_list += ['readMode : '] * 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/cudart.pyx":11866 * try: * str_list += ['sRGB : ' + str(self.sRGB)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['sRGB : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 11866, __pyx_L30_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":11867 * str_list += ['sRGB : ' + str(self.sRGB)] * except ValueError: * str_list += ['sRGB : '] # <<<<<<<<<<<<<< * try: * str_list += ['borderColor : ' + str(self.borderColor)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11867, __pyx_L30_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_sRGB_ValueError); __Pyx_GIVEREF(__pyx_kp_u_sRGB_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_sRGB_ValueError)) __PYX_ERR(0, 11867, __pyx_L30_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11867, __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/cudart.pyx":11864 * except ValueError: * str_list += ['readMode : '] * 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/cudart.pyx":11868 * except ValueError: * str_list += ['sRGB : '] * 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/cudart.pyx":11869 * str_list += ['sRGB : '] * try: * str_list += ['borderColor : ' + str(self.borderColor)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['borderColor : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_borderColor_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11869, __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, 11869, __pyx_L36_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_borderColor, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11869, __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, 11869, __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)) __PYX_ERR(0, 11869, __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, 11869, __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/cudart.pyx":11868 * except ValueError: * str_list += ['sRGB : '] * 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/cudart.pyx":11870 * try: * str_list += ['borderColor : ' + str(self.borderColor)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['borderColor : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 11870, __pyx_L38_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":11871 * str_list += ['borderColor : ' + str(self.borderColor)] * except ValueError: * str_list += ['borderColor : '] # <<<<<<<<<<<<<< * try: * str_list += ['normalizedCoords : ' + str(self.normalizedCoords)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11871, __pyx_L38_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_borderColor_ValueError); __Pyx_GIVEREF(__pyx_kp_u_borderColor_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_borderColor_ValueError)) __PYX_ERR(0, 11871, __pyx_L38_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11871, __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/cudart.pyx":11868 * except ValueError: * str_list += ['sRGB : '] * 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/cudart.pyx":11872 * except ValueError: * str_list += ['borderColor : '] * 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/cudart.pyx":11873 * str_list += ['borderColor : '] * try: * str_list += ['normalizedCoords : ' + str(self.normalizedCoords)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['normalizedCoords : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_normalizedCoords_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11873, __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, 11873, __pyx_L44_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_normalizedCoords, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11873, __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, 11873, __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)) __PYX_ERR(0, 11873, __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, 11873, __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/cudart.pyx":11872 * except ValueError: * str_list += ['borderColor : '] * 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/cudart.pyx":11874 * try: * str_list += ['normalizedCoords : ' + str(self.normalizedCoords)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['normalizedCoords : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 11874, __pyx_L46_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":11875 * str_list += ['normalizedCoords : ' + str(self.normalizedCoords)] * except ValueError: * str_list += ['normalizedCoords : '] # <<<<<<<<<<<<<< * try: * str_list += ['maxAnisotropy : ' + str(self.maxAnisotropy)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11875, __pyx_L46_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_normalizedCoords_ValueError); __Pyx_GIVEREF(__pyx_kp_u_normalizedCoords_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_normalizedCoords_ValueError)) __PYX_ERR(0, 11875, __pyx_L46_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11875, __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/cudart.pyx":11872 * except ValueError: * str_list += ['borderColor : '] * 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/cudart.pyx":11876 * except ValueError: * str_list += ['normalizedCoords : '] * 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/cudart.pyx":11877 * str_list += ['normalizedCoords : '] * try: * str_list += ['maxAnisotropy : ' + str(self.maxAnisotropy)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['maxAnisotropy : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_maxAnisotropy_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11877, __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, 11877, __pyx_L52_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_maxAnisotropy, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11877, __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, 11877, __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)) __PYX_ERR(0, 11877, __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, 11877, __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/cudart.pyx":11876 * except ValueError: * str_list += ['normalizedCoords : '] * 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/cudart.pyx":11878 * try: * str_list += ['maxAnisotropy : ' + str(self.maxAnisotropy)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['maxAnisotropy : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 11878, __pyx_L54_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":11879 * str_list += ['maxAnisotropy : ' + str(self.maxAnisotropy)] * except ValueError: * str_list += ['maxAnisotropy : '] # <<<<<<<<<<<<<< * try: * str_list += ['mipmapFilterMode : ' + str(self.mipmapFilterMode)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11879, __pyx_L54_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_maxAnisotropy_ValueError); __Pyx_GIVEREF(__pyx_kp_u_maxAnisotropy_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_maxAnisotropy_ValueError)) __PYX_ERR(0, 11879, __pyx_L54_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11879, __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/cudart.pyx":11876 * except ValueError: * str_list += ['normalizedCoords : '] * 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/cudart.pyx":11880 * except ValueError: * str_list += ['maxAnisotropy : '] * 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/cudart.pyx":11881 * str_list += ['maxAnisotropy : '] * try: * str_list += ['mipmapFilterMode : ' + str(self.mipmapFilterMode)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['mipmapFilterMode : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_mipmapFilterMode_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11881, __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, 11881, __pyx_L60_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_mipmapFilterMode, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11881, __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, 11881, __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)) __PYX_ERR(0, 11881, __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, 11881, __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/cudart.pyx":11880 * except ValueError: * str_list += ['maxAnisotropy : '] * 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/cudart.pyx":11882 * try: * str_list += ['mipmapFilterMode : ' + str(self.mipmapFilterMode)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['mipmapFilterMode : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 11882, __pyx_L62_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":11883 * str_list += ['mipmapFilterMode : ' + str(self.mipmapFilterMode)] * except ValueError: * str_list += ['mipmapFilterMode : '] # <<<<<<<<<<<<<< * try: * str_list += ['mipmapLevelBias : ' + str(self.mipmapLevelBias)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11883, __pyx_L62_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_mipmapFilterMode_ValueError); __Pyx_GIVEREF(__pyx_kp_u_mipmapFilterMode_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_mipmapFilterMode_ValueError)) __PYX_ERR(0, 11883, __pyx_L62_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11883, __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/cudart.pyx":11880 * except ValueError: * str_list += ['maxAnisotropy : '] * 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/cudart.pyx":11884 * except ValueError: * str_list += ['mipmapFilterMode : '] * 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/cudart.pyx":11885 * str_list += ['mipmapFilterMode : '] * try: * str_list += ['mipmapLevelBias : ' + str(self.mipmapLevelBias)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['mipmapLevelBias : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_mipmapLevelBias_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11885, __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, 11885, __pyx_L68_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_mipmapLevelBias, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11885, __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, 11885, __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)) __PYX_ERR(0, 11885, __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, 11885, __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/cudart.pyx":11884 * except ValueError: * str_list += ['mipmapFilterMode : '] * 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/cudart.pyx":11886 * try: * str_list += ['mipmapLevelBias : ' + str(self.mipmapLevelBias)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['mipmapLevelBias : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 11886, __pyx_L70_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":11887 * str_list += ['mipmapLevelBias : ' + str(self.mipmapLevelBias)] * except ValueError: * str_list += ['mipmapLevelBias : '] # <<<<<<<<<<<<<< * try: * str_list += ['minMipmapLevelClamp : ' + str(self.minMipmapLevelClamp)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11887, __pyx_L70_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_mipmapLevelBias_ValueError); __Pyx_GIVEREF(__pyx_kp_u_mipmapLevelBias_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_mipmapLevelBias_ValueError)) __PYX_ERR(0, 11887, __pyx_L70_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11887, __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/cudart.pyx":11884 * except ValueError: * str_list += ['mipmapFilterMode : '] * 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/cudart.pyx":11888 * except ValueError: * str_list += ['mipmapLevelBias : '] * 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/cudart.pyx":11889 * str_list += ['mipmapLevelBias : '] * try: * str_list += ['minMipmapLevelClamp : ' + str(self.minMipmapLevelClamp)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['minMipmapLevelClamp : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_minMipmapLevelClamp_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11889, __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, 11889, __pyx_L76_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_minMipmapLevelClamp, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11889, __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, 11889, __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)) __PYX_ERR(0, 11889, __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, 11889, __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/cudart.pyx":11888 * except ValueError: * str_list += ['mipmapLevelBias : '] * 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/cudart.pyx":11890 * try: * str_list += ['minMipmapLevelClamp : ' + str(self.minMipmapLevelClamp)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['minMipmapLevelClamp : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 11890, __pyx_L78_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":11891 * str_list += ['minMipmapLevelClamp : ' + str(self.minMipmapLevelClamp)] * except ValueError: * str_list += ['minMipmapLevelClamp : '] # <<<<<<<<<<<<<< * try: * str_list += ['maxMipmapLevelClamp : ' + str(self.maxMipmapLevelClamp)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11891, __pyx_L78_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_minMipmapLevelClamp_ValueError); __Pyx_GIVEREF(__pyx_kp_u_minMipmapLevelClamp_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_minMipmapLevelClamp_ValueError)) __PYX_ERR(0, 11891, __pyx_L78_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11891, __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/cudart.pyx":11888 * except ValueError: * str_list += ['mipmapLevelBias : '] * 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/cudart.pyx":11892 * except ValueError: * str_list += ['minMipmapLevelClamp : '] * 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/cudart.pyx":11893 * str_list += ['minMipmapLevelClamp : '] * try: * str_list += ['maxMipmapLevelClamp : ' + str(self.maxMipmapLevelClamp)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['maxMipmapLevelClamp : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_maxMipmapLevelClamp_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11893, __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, 11893, __pyx_L84_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_maxMipmapLevelClamp, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11893, __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, 11893, __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)) __PYX_ERR(0, 11893, __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, 11893, __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/cudart.pyx":11892 * except ValueError: * str_list += ['minMipmapLevelClamp : '] * 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/cudart.pyx":11894 * try: * str_list += ['maxMipmapLevelClamp : ' + str(self.maxMipmapLevelClamp)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['maxMipmapLevelClamp : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 11894, __pyx_L86_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":11895 * str_list += ['maxMipmapLevelClamp : ' + str(self.maxMipmapLevelClamp)] * except ValueError: * str_list += ['maxMipmapLevelClamp : '] # <<<<<<<<<<<<<< * try: * str_list += ['disableTrilinearOptimization : ' + str(self.disableTrilinearOptimization)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11895, __pyx_L86_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_maxMipmapLevelClamp_ValueError); __Pyx_GIVEREF(__pyx_kp_u_maxMipmapLevelClamp_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_maxMipmapLevelClamp_ValueError)) __PYX_ERR(0, 11895, __pyx_L86_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11895, __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/cudart.pyx":11892 * except ValueError: * str_list += ['minMipmapLevelClamp : '] * 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/cudart.pyx":11896 * except ValueError: * str_list += ['maxMipmapLevelClamp : '] * 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/cudart.pyx":11897 * str_list += ['maxMipmapLevelClamp : '] * try: * str_list += ['disableTrilinearOptimization : ' + str(self.disableTrilinearOptimization)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['disableTrilinearOptimization : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_disableTrilinearOptimization_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11897, __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, 11897, __pyx_L92_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_disableTrilinearOptimization, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11897, __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, 11897, __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)) __PYX_ERR(0, 11897, __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, 11897, __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/cudart.pyx":11896 * except ValueError: * str_list += ['maxMipmapLevelClamp : '] * 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/cudart.pyx":11898 * try: * str_list += ['disableTrilinearOptimization : ' + str(self.disableTrilinearOptimization)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['disableTrilinearOptimization : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 11898, __pyx_L94_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":11899 * str_list += ['disableTrilinearOptimization : ' + str(self.disableTrilinearOptimization)] * except ValueError: * str_list += ['disableTrilinearOptimization : '] # <<<<<<<<<<<<<< * try: * str_list += ['seamlessCubemap : ' + str(self.seamlessCubemap)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11899, __pyx_L94_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_disableTrilinearOptimization_Val); __Pyx_GIVEREF(__pyx_kp_u_disableTrilinearOptimization_Val); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_disableTrilinearOptimization_Val)) __PYX_ERR(0, 11899, __pyx_L94_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11899, __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/cudart.pyx":11896 * except ValueError: * str_list += ['maxMipmapLevelClamp : '] * 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/cudart.pyx":11900 * except ValueError: * str_list += ['disableTrilinearOptimization : '] * 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/cudart.pyx":11901 * str_list += ['disableTrilinearOptimization : '] * try: * str_list += ['seamlessCubemap : ' + str(self.seamlessCubemap)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['seamlessCubemap : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_seamlessCubemap_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11901, __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, 11901, __pyx_L100_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_seamlessCubemap, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11901, __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, 11901, __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)) __PYX_ERR(0, 11901, __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, 11901, __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/cudart.pyx":11900 * except ValueError: * str_list += ['disableTrilinearOptimization : '] * 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/cudart.pyx":11902 * try: * str_list += ['seamlessCubemap : ' + str(self.seamlessCubemap)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['seamlessCubemap : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 11902, __pyx_L102_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":11903 * str_list += ['seamlessCubemap : ' + str(self.seamlessCubemap)] * except ValueError: * str_list += ['seamlessCubemap : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11903, __pyx_L102_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_seamlessCubemap_ValueError); __Pyx_GIVEREF(__pyx_kp_u_seamlessCubemap_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_seamlessCubemap_ValueError)) __PYX_ERR(0, 11903, __pyx_L102_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11903, __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/cudart.pyx":11900 * except ValueError: * str_list += ['disableTrilinearOptimization : '] * 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/cudart.pyx":11904 * except ValueError: * str_list += ['seamlessCubemap : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11904, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11850 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":11906 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def addressMode(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":11849 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaTextureDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11907 * else: * return '' * @property # <<<<<<<<<<<<<< * def addressMode(self): * return [cudaTextureAddressMode(_x) for _x in list(self._ptr[0].addressMode)] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_15cudaTextureDesc_11addressMode_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_15cudaTextureDesc_11addressMode___get__(((struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_15cudaTextureDesc_11addressMode___get__(struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *__pyx_v_self) { PyObject *__pyx_9genexpr88__pyx_v__x = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; PyObject *__pyx_t_6 = NULL; unsigned int __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11907, 0, __PYX_ERR(0, 11907, __pyx_L1_error)); /* "cuda/cudart.pyx":11909 * @property * def addressMode(self): * return [cudaTextureAddressMode(_x) for _x in list(self._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, 11909, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_carray_to_py_enum__cudaTextureAddressMode((__pyx_v_self->_ptr[0]).addressMode, 3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11909, __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, 11909, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 11909, __pyx_L5_error) #endif if (__pyx_t_4 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_3 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_3); __pyx_t_4++; if (unlikely((0 < 0))) __PYX_ERR(0, 11909, __pyx_L5_error) #else __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11909, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_3); #endif __Pyx_XDECREF_SET(__pyx_9genexpr88__pyx_v__x, __pyx_t_3); __pyx_t_3 = 0; __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaTextureAddressMode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11909, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_7 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_9genexpr88__pyx_v__x}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11909, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_3))) __PYX_ERR(0, 11909, __pyx_L5_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_9genexpr88__pyx_v__x); __pyx_9genexpr88__pyx_v__x = 0; goto __pyx_L9_exit_scope; __pyx_L5_error:; __Pyx_XDECREF(__pyx_9genexpr88__pyx_v__x); __pyx_9genexpr88__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/cudart.pyx":11907 * else: * return '' * @property # <<<<<<<<<<<<<< * def addressMode(self): * return [cudaTextureAddressMode(_x) for _x in list(self._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_6); __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.addressMode.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_9genexpr88__pyx_v__x); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11910 * def addressMode(self): * return [cudaTextureAddressMode(_x) for _x in list(self._ptr[0].addressMode)] * @addressMode.setter # <<<<<<<<<<<<<< * def addressMode(self, addressMode): * self._ptr[0].addressMode = [_x.value for _x in addressMode] */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_15cudaTextureDesc_11addressMode_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_addressMode); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_15cudaTextureDesc_11addressMode_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *)__pyx_v_self), ((PyObject *)__pyx_v_addressMode)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_15cudaTextureDesc_11addressMode_2__set__(struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *__pyx_v_self, PyObject *__pyx_v_addressMode) { PyObject *__pyx_9genexpr89__pyx_v__x = NULL; int __pyx_r; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 11910, 0, __PYX_ERR(0, 11910, __pyx_L1_error)); /* "cuda/cudart.pyx":11912 * @addressMode.setter * def addressMode(self, addressMode): * self._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, 11912, __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, 11912, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 11912, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 11912, __pyx_L5_error) #endif if (__pyx_t_3 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_5 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_5); __pyx_t_3++; if (unlikely((0 < 0))) __PYX_ERR(0, 11912, __pyx_L5_error) #else __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11912, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_5); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_2); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 11912, __pyx_L5_error) #endif if (__pyx_t_3 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_5); __pyx_t_3++; if (unlikely((0 < 0))) __PYX_ERR(0, 11912, __pyx_L5_error) #else __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11912, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_5); #endif } } else { __pyx_t_5 = __pyx_t_4(__pyx_t_2); if (unlikely(!__pyx_t_5)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 11912, __pyx_L5_error) } break; } __Pyx_GOTREF(__pyx_t_5); } __Pyx_XDECREF_SET(__pyx_9genexpr89__pyx_v__x, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_9genexpr89__pyx_v__x, __pyx_n_s_value); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11912, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_5); if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 11912, __pyx_L5_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_9genexpr89__pyx_v__x); __pyx_9genexpr89__pyx_v__x = 0; goto __pyx_L9_exit_scope; __pyx_L5_error:; __Pyx_XDECREF(__pyx_9genexpr89__pyx_v__x); __pyx_9genexpr89__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, 11912, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; memcpy(&((__pyx_v_self->_ptr[0]).addressMode[0]), __pyx_t_6, sizeof((__pyx_v_self->_ptr[0]).addressMode[0]) * (3)); /* "cuda/cudart.pyx":11910 * def addressMode(self): * return [cudaTextureAddressMode(_x) for _x in list(self._ptr[0].addressMode)] * @addressMode.setter # <<<<<<<<<<<<<< * def addressMode(self, addressMode): * self._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.cudart.cudaTextureDesc.addressMode.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_9genexpr89__pyx_v__x); __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11913 * def addressMode(self, addressMode): * self._ptr[0].addressMode = [_x.value for _x in addressMode] * @property # <<<<<<<<<<<<<< * def filterMode(self): * return cudaTextureFilterMode(self._ptr[0].filterMode) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_15cudaTextureDesc_10filterMode_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_15cudaTextureDesc_10filterMode___get__(((struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_15cudaTextureDesc_10filterMode___get__(struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11913, 0, __PYX_ERR(0, 11913, __pyx_L1_error)); /* "cuda/cudart.pyx":11915 * @property * def filterMode(self): * return cudaTextureFilterMode(self._ptr[0].filterMode) # <<<<<<<<<<<<<< * @filterMode.setter * def filterMode(self, filterMode not None : cudaTextureFilterMode): */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaTextureFilterMode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11915, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaTextureFilterMode((__pyx_v_self->_ptr[0]).filterMode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11915, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11915, __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/cudart.pyx":11913 * def addressMode(self, addressMode): * self._ptr[0].addressMode = [_x.value for _x in addressMode] * @property # <<<<<<<<<<<<<< * def filterMode(self): * return cudaTextureFilterMode(self._ptr[0].filterMode) */ /* 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.cudart.cudaTextureDesc.filterMode.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11916 * def filterMode(self): * return cudaTextureFilterMode(self._ptr[0].filterMode) * @filterMode.setter # <<<<<<<<<<<<<< * def filterMode(self, filterMode not None : cudaTextureFilterMode): * self._ptr[0].filterMode = filterMode.value */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_15cudaTextureDesc_10filterMode_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_filterMode); /*proto*/ static int __pyx_pw_4cuda_6cudart_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, 11917, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_15cudaTextureDesc_10filterMode_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *)__pyx_v_self), ((PyObject *)__pyx_v_filterMode)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_15cudaTextureDesc_10filterMode_2__set__(struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *__pyx_v_self, PyObject *__pyx_v_filterMode) { int __pyx_r; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 11916, 0, __PYX_ERR(0, 11916, __pyx_L1_error)); /* "cuda/cudart.pyx":11918 * @filterMode.setter * def filterMode(self, filterMode not None : cudaTextureFilterMode): * self._ptr[0].filterMode = filterMode.value # <<<<<<<<<<<<<< * @property * def readMode(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_filterMode, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11918, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaTextureFilterMode)__Pyx_PyInt_As_enum__cudaTextureFilterMode(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 11918, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).filterMode = __pyx_t_2; /* "cuda/cudart.pyx":11916 * def filterMode(self): * return cudaTextureFilterMode(self._ptr[0].filterMode) * @filterMode.setter # <<<<<<<<<<<<<< * def filterMode(self, filterMode not None : cudaTextureFilterMode): * self._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.cudart.cudaTextureDesc.filterMode.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11919 * def filterMode(self, filterMode not None : cudaTextureFilterMode): * self._ptr[0].filterMode = filterMode.value * @property # <<<<<<<<<<<<<< * def readMode(self): * return cudaTextureReadMode(self._ptr[0].readMode) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_15cudaTextureDesc_8readMode_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_15cudaTextureDesc_8readMode___get__(((struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_15cudaTextureDesc_8readMode___get__(struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11919, 0, __PYX_ERR(0, 11919, __pyx_L1_error)); /* "cuda/cudart.pyx":11921 * @property * def readMode(self): * return cudaTextureReadMode(self._ptr[0].readMode) # <<<<<<<<<<<<<< * @readMode.setter * def readMode(self, readMode not None : cudaTextureReadMode): */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaTextureReadMode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11921, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaTextureReadMode((__pyx_v_self->_ptr[0]).readMode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11921, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11921, __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/cudart.pyx":11919 * def filterMode(self, filterMode not None : cudaTextureFilterMode): * self._ptr[0].filterMode = filterMode.value * @property # <<<<<<<<<<<<<< * def readMode(self): * return cudaTextureReadMode(self._ptr[0].readMode) */ /* 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.cudart.cudaTextureDesc.readMode.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11922 * def readMode(self): * return cudaTextureReadMode(self._ptr[0].readMode) * @readMode.setter # <<<<<<<<<<<<<< * def readMode(self, readMode not None : cudaTextureReadMode): * self._ptr[0].readMode = readMode.value */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_15cudaTextureDesc_8readMode_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_readMode); /*proto*/ static int __pyx_pw_4cuda_6cudart_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, 11923, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_15cudaTextureDesc_8readMode_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *)__pyx_v_self), ((PyObject *)__pyx_v_readMode)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_15cudaTextureDesc_8readMode_2__set__(struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *__pyx_v_self, PyObject *__pyx_v_readMode) { int __pyx_r; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 11922, 0, __PYX_ERR(0, 11922, __pyx_L1_error)); /* "cuda/cudart.pyx":11924 * @readMode.setter * def readMode(self, readMode not None : cudaTextureReadMode): * self._ptr[0].readMode = readMode.value # <<<<<<<<<<<<<< * @property * def sRGB(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_readMode, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11924, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaTextureReadMode)__Pyx_PyInt_As_enum__cudaTextureReadMode(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 11924, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).readMode = __pyx_t_2; /* "cuda/cudart.pyx":11922 * def readMode(self): * return cudaTextureReadMode(self._ptr[0].readMode) * @readMode.setter # <<<<<<<<<<<<<< * def readMode(self, readMode not None : cudaTextureReadMode): * self._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.cudart.cudaTextureDesc.readMode.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11925 * def readMode(self, readMode not None : cudaTextureReadMode): * self._ptr[0].readMode = readMode.value * @property # <<<<<<<<<<<<<< * def sRGB(self): * return self._ptr[0].sRGB */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_15cudaTextureDesc_4sRGB_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_15cudaTextureDesc_4sRGB___get__(((struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_15cudaTextureDesc_4sRGB___get__(struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11925, 0, __PYX_ERR(0, 11925, __pyx_L1_error)); /* "cuda/cudart.pyx":11927 * @property * def sRGB(self): * return self._ptr[0].sRGB # <<<<<<<<<<<<<< * @sRGB.setter * def sRGB(self, int sRGB): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).sRGB); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11927, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11925 * def readMode(self, readMode not None : cudaTextureReadMode): * self._ptr[0].readMode = readMode.value * @property # <<<<<<<<<<<<<< * def sRGB(self): * return self._ptr[0].sRGB */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.sRGB.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11928 * def sRGB(self): * return self._ptr[0].sRGB * @sRGB.setter # <<<<<<<<<<<<<< * def sRGB(self, int sRGB): * self._ptr[0].sRGB = sRGB */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_15cudaTextureDesc_4sRGB_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_sRGB); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_sRGB); if (unlikely((__pyx_v_sRGB == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 11929, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.sRGB.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_15cudaTextureDesc_4sRGB_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *)__pyx_v_self), ((int)__pyx_v_sRGB)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_15cudaTextureDesc_4sRGB_2__set__(struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *__pyx_v_self, int __pyx_v_sRGB) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 11928, 0, __PYX_ERR(0, 11928, __pyx_L1_error)); /* "cuda/cudart.pyx":11930 * @sRGB.setter * def sRGB(self, int sRGB): * self._ptr[0].sRGB = sRGB # <<<<<<<<<<<<<< * @property * def borderColor(self): */ (__pyx_v_self->_ptr[0]).sRGB = __pyx_v_sRGB; /* "cuda/cudart.pyx":11928 * def sRGB(self): * return self._ptr[0].sRGB * @sRGB.setter # <<<<<<<<<<<<<< * def sRGB(self, int sRGB): * self._ptr[0].sRGB = sRGB */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.sRGB.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":11931 * def sRGB(self, int sRGB): * self._ptr[0].sRGB = sRGB * @property # <<<<<<<<<<<<<< * def borderColor(self): * return self._ptr[0].borderColor */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_15cudaTextureDesc_11borderColor_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_15cudaTextureDesc_11borderColor___get__(((struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_15cudaTextureDesc_11borderColor___get__(struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11931, 0, __PYX_ERR(0, 11931, __pyx_L1_error)); /* "cuda/cudart.pyx":11933 * @property * def borderColor(self): * return self._ptr[0].borderColor # <<<<<<<<<<<<<< * @borderColor.setter * def borderColor(self, borderColor): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_carray_to_py_float((__pyx_v_self->_ptr[0]).borderColor, 4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11933, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11931 * def sRGB(self, int sRGB): * self._ptr[0].sRGB = sRGB * @property # <<<<<<<<<<<<<< * def borderColor(self): * return self._ptr[0].borderColor */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.borderColor.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11934 * def borderColor(self): * return self._ptr[0].borderColor * @borderColor.setter # <<<<<<<<<<<<<< * def borderColor(self, borderColor): * self._ptr[0].borderColor = borderColor */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_15cudaTextureDesc_11borderColor_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_borderColor); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_15cudaTextureDesc_11borderColor_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *)__pyx_v_self), ((PyObject *)__pyx_v_borderColor)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_15cudaTextureDesc_11borderColor_2__set__(struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *__pyx_v_self, PyObject *__pyx_v_borderColor) { int __pyx_r; __Pyx_TraceDeclarations float __pyx_t_1[4]; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 11934, 0, __PYX_ERR(0, 11934, __pyx_L1_error)); /* "cuda/cudart.pyx":11936 * @borderColor.setter * def borderColor(self, borderColor): * self._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, 11936, __pyx_L1_error) memcpy(&((__pyx_v_self->_ptr[0]).borderColor[0]), __pyx_t_1, sizeof((__pyx_v_self->_ptr[0]).borderColor[0]) * (4)); /* "cuda/cudart.pyx":11934 * def borderColor(self): * return self._ptr[0].borderColor * @borderColor.setter # <<<<<<<<<<<<<< * def borderColor(self, borderColor): * self._ptr[0].borderColor = borderColor */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.borderColor.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":11937 * def borderColor(self, borderColor): * self._ptr[0].borderColor = borderColor * @property # <<<<<<<<<<<<<< * def normalizedCoords(self): * return self._ptr[0].normalizedCoords */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_15cudaTextureDesc_16normalizedCoords_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_15cudaTextureDesc_16normalizedCoords___get__(((struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_15cudaTextureDesc_16normalizedCoords___get__(struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11937, 0, __PYX_ERR(0, 11937, __pyx_L1_error)); /* "cuda/cudart.pyx":11939 * @property * def normalizedCoords(self): * return self._ptr[0].normalizedCoords # <<<<<<<<<<<<<< * @normalizedCoords.setter * def normalizedCoords(self, int normalizedCoords): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).normalizedCoords); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11939, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11937 * def borderColor(self, borderColor): * self._ptr[0].borderColor = borderColor * @property # <<<<<<<<<<<<<< * def normalizedCoords(self): * return self._ptr[0].normalizedCoords */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.normalizedCoords.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11940 * def normalizedCoords(self): * return self._ptr[0].normalizedCoords * @normalizedCoords.setter # <<<<<<<<<<<<<< * def normalizedCoords(self, int normalizedCoords): * self._ptr[0].normalizedCoords = normalizedCoords */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_15cudaTextureDesc_16normalizedCoords_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_normalizedCoords); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_normalizedCoords); if (unlikely((__pyx_v_normalizedCoords == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 11941, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.normalizedCoords.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_15cudaTextureDesc_16normalizedCoords_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *)__pyx_v_self), ((int)__pyx_v_normalizedCoords)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_15cudaTextureDesc_16normalizedCoords_2__set__(struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *__pyx_v_self, int __pyx_v_normalizedCoords) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 11940, 0, __PYX_ERR(0, 11940, __pyx_L1_error)); /* "cuda/cudart.pyx":11942 * @normalizedCoords.setter * def normalizedCoords(self, int normalizedCoords): * self._ptr[0].normalizedCoords = normalizedCoords # <<<<<<<<<<<<<< * @property * def maxAnisotropy(self): */ (__pyx_v_self->_ptr[0]).normalizedCoords = __pyx_v_normalizedCoords; /* "cuda/cudart.pyx":11940 * def normalizedCoords(self): * return self._ptr[0].normalizedCoords * @normalizedCoords.setter # <<<<<<<<<<<<<< * def normalizedCoords(self, int normalizedCoords): * self._ptr[0].normalizedCoords = normalizedCoords */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.normalizedCoords.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":11943 * def normalizedCoords(self, int normalizedCoords): * self._ptr[0].normalizedCoords = normalizedCoords * @property # <<<<<<<<<<<<<< * def maxAnisotropy(self): * return self._ptr[0].maxAnisotropy */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_15cudaTextureDesc_13maxAnisotropy_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_15cudaTextureDesc_13maxAnisotropy___get__(((struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_15cudaTextureDesc_13maxAnisotropy___get__(struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11943, 0, __PYX_ERR(0, 11943, __pyx_L1_error)); /* "cuda/cudart.pyx":11945 * @property * def maxAnisotropy(self): * return self._ptr[0].maxAnisotropy # <<<<<<<<<<<<<< * @maxAnisotropy.setter * def maxAnisotropy(self, unsigned int maxAnisotropy): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).maxAnisotropy); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11945, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11943 * def normalizedCoords(self, int normalizedCoords): * self._ptr[0].normalizedCoords = normalizedCoords * @property # <<<<<<<<<<<<<< * def maxAnisotropy(self): * return self._ptr[0].maxAnisotropy */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.maxAnisotropy.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11946 * def maxAnisotropy(self): * return self._ptr[0].maxAnisotropy * @maxAnisotropy.setter # <<<<<<<<<<<<<< * def maxAnisotropy(self, unsigned int maxAnisotropy): * self._ptr[0].maxAnisotropy = maxAnisotropy */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_15cudaTextureDesc_13maxAnisotropy_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxAnisotropy); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_maxAnisotropy); if (unlikely((__pyx_v_maxAnisotropy == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 11947, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.maxAnisotropy.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_15cudaTextureDesc_13maxAnisotropy_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *)__pyx_v_self), ((unsigned int)__pyx_v_maxAnisotropy)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_15cudaTextureDesc_13maxAnisotropy_2__set__(struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *__pyx_v_self, unsigned int __pyx_v_maxAnisotropy) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 11946, 0, __PYX_ERR(0, 11946, __pyx_L1_error)); /* "cuda/cudart.pyx":11948 * @maxAnisotropy.setter * def maxAnisotropy(self, unsigned int maxAnisotropy): * self._ptr[0].maxAnisotropy = maxAnisotropy # <<<<<<<<<<<<<< * @property * def mipmapFilterMode(self): */ (__pyx_v_self->_ptr[0]).maxAnisotropy = __pyx_v_maxAnisotropy; /* "cuda/cudart.pyx":11946 * def maxAnisotropy(self): * return self._ptr[0].maxAnisotropy * @maxAnisotropy.setter # <<<<<<<<<<<<<< * def maxAnisotropy(self, unsigned int maxAnisotropy): * self._ptr[0].maxAnisotropy = maxAnisotropy */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.maxAnisotropy.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":11949 * def maxAnisotropy(self, unsigned int maxAnisotropy): * self._ptr[0].maxAnisotropy = maxAnisotropy * @property # <<<<<<<<<<<<<< * def mipmapFilterMode(self): * return cudaTextureFilterMode(self._ptr[0].mipmapFilterMode) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_15cudaTextureDesc_16mipmapFilterMode_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_15cudaTextureDesc_16mipmapFilterMode___get__(((struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_15cudaTextureDesc_16mipmapFilterMode___get__(struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11949, 0, __PYX_ERR(0, 11949, __pyx_L1_error)); /* "cuda/cudart.pyx":11951 * @property * def mipmapFilterMode(self): * return cudaTextureFilterMode(self._ptr[0].mipmapFilterMode) # <<<<<<<<<<<<<< * @mipmapFilterMode.setter * def mipmapFilterMode(self, mipmapFilterMode not None : cudaTextureFilterMode): */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaTextureFilterMode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11951, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaTextureFilterMode((__pyx_v_self->_ptr[0]).mipmapFilterMode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11951, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11951, __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/cudart.pyx":11949 * def maxAnisotropy(self, unsigned int maxAnisotropy): * self._ptr[0].maxAnisotropy = maxAnisotropy * @property # <<<<<<<<<<<<<< * def mipmapFilterMode(self): * return cudaTextureFilterMode(self._ptr[0].mipmapFilterMode) */ /* 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.cudart.cudaTextureDesc.mipmapFilterMode.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11952 * def mipmapFilterMode(self): * return cudaTextureFilterMode(self._ptr[0].mipmapFilterMode) * @mipmapFilterMode.setter # <<<<<<<<<<<<<< * def mipmapFilterMode(self, mipmapFilterMode not None : cudaTextureFilterMode): * self._ptr[0].mipmapFilterMode = mipmapFilterMode.value */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_15cudaTextureDesc_16mipmapFilterMode_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_mipmapFilterMode); /*proto*/ static int __pyx_pw_4cuda_6cudart_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, 11953, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_15cudaTextureDesc_16mipmapFilterMode_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *)__pyx_v_self), ((PyObject *)__pyx_v_mipmapFilterMode)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_15cudaTextureDesc_16mipmapFilterMode_2__set__(struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *__pyx_v_self, PyObject *__pyx_v_mipmapFilterMode) { int __pyx_r; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 11952, 0, __PYX_ERR(0, 11952, __pyx_L1_error)); /* "cuda/cudart.pyx":11954 * @mipmapFilterMode.setter * def mipmapFilterMode(self, mipmapFilterMode not None : cudaTextureFilterMode): * self._ptr[0].mipmapFilterMode = mipmapFilterMode.value # <<<<<<<<<<<<<< * @property * def mipmapLevelBias(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_mipmapFilterMode, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11954, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaTextureFilterMode)__Pyx_PyInt_As_enum__cudaTextureFilterMode(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 11954, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).mipmapFilterMode = __pyx_t_2; /* "cuda/cudart.pyx":11952 * def mipmapFilterMode(self): * return cudaTextureFilterMode(self._ptr[0].mipmapFilterMode) * @mipmapFilterMode.setter # <<<<<<<<<<<<<< * def mipmapFilterMode(self, mipmapFilterMode not None : cudaTextureFilterMode): * self._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.cudart.cudaTextureDesc.mipmapFilterMode.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11955 * def mipmapFilterMode(self, mipmapFilterMode not None : cudaTextureFilterMode): * self._ptr[0].mipmapFilterMode = mipmapFilterMode.value * @property # <<<<<<<<<<<<<< * def mipmapLevelBias(self): * return self._ptr[0].mipmapLevelBias */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_15cudaTextureDesc_15mipmapLevelBias_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_15cudaTextureDesc_15mipmapLevelBias___get__(((struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_15cudaTextureDesc_15mipmapLevelBias___get__(struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11955, 0, __PYX_ERR(0, 11955, __pyx_L1_error)); /* "cuda/cudart.pyx":11957 * @property * def mipmapLevelBias(self): * return self._ptr[0].mipmapLevelBias # <<<<<<<<<<<<<< * @mipmapLevelBias.setter * def mipmapLevelBias(self, float mipmapLevelBias): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble((__pyx_v_self->_ptr[0]).mipmapLevelBias); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11957, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11955 * def mipmapFilterMode(self, mipmapFilterMode not None : cudaTextureFilterMode): * self._ptr[0].mipmapFilterMode = mipmapFilterMode.value * @property # <<<<<<<<<<<<<< * def mipmapLevelBias(self): * return self._ptr[0].mipmapLevelBias */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.mipmapLevelBias.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11958 * def mipmapLevelBias(self): * return self._ptr[0].mipmapLevelBias * @mipmapLevelBias.setter # <<<<<<<<<<<<<< * def mipmapLevelBias(self, float mipmapLevelBias): * self._ptr[0].mipmapLevelBias = mipmapLevelBias */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_15cudaTextureDesc_15mipmapLevelBias_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_mipmapLevelBias); /*proto*/ static int __pyx_pw_4cuda_6cudart_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, 11959, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.mipmapLevelBias.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_15cudaTextureDesc_15mipmapLevelBias_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *)__pyx_v_self), ((float)__pyx_v_mipmapLevelBias)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_15cudaTextureDesc_15mipmapLevelBias_2__set__(struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *__pyx_v_self, float __pyx_v_mipmapLevelBias) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 11958, 0, __PYX_ERR(0, 11958, __pyx_L1_error)); /* "cuda/cudart.pyx":11960 * @mipmapLevelBias.setter * def mipmapLevelBias(self, float mipmapLevelBias): * self._ptr[0].mipmapLevelBias = mipmapLevelBias # <<<<<<<<<<<<<< * @property * def minMipmapLevelClamp(self): */ (__pyx_v_self->_ptr[0]).mipmapLevelBias = __pyx_v_mipmapLevelBias; /* "cuda/cudart.pyx":11958 * def mipmapLevelBias(self): * return self._ptr[0].mipmapLevelBias * @mipmapLevelBias.setter # <<<<<<<<<<<<<< * def mipmapLevelBias(self, float mipmapLevelBias): * self._ptr[0].mipmapLevelBias = mipmapLevelBias */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.mipmapLevelBias.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":11961 * def mipmapLevelBias(self, float mipmapLevelBias): * self._ptr[0].mipmapLevelBias = mipmapLevelBias * @property # <<<<<<<<<<<<<< * def minMipmapLevelClamp(self): * return self._ptr[0].minMipmapLevelClamp */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_15cudaTextureDesc_19minMipmapLevelClamp_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_15cudaTextureDesc_19minMipmapLevelClamp___get__(((struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_15cudaTextureDesc_19minMipmapLevelClamp___get__(struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11961, 0, __PYX_ERR(0, 11961, __pyx_L1_error)); /* "cuda/cudart.pyx":11963 * @property * def minMipmapLevelClamp(self): * return self._ptr[0].minMipmapLevelClamp # <<<<<<<<<<<<<< * @minMipmapLevelClamp.setter * def minMipmapLevelClamp(self, float minMipmapLevelClamp): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble((__pyx_v_self->_ptr[0]).minMipmapLevelClamp); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11963, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11961 * def mipmapLevelBias(self, float mipmapLevelBias): * self._ptr[0].mipmapLevelBias = mipmapLevelBias * @property # <<<<<<<<<<<<<< * def minMipmapLevelClamp(self): * return self._ptr[0].minMipmapLevelClamp */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.minMipmapLevelClamp.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11964 * def minMipmapLevelClamp(self): * return self._ptr[0].minMipmapLevelClamp * @minMipmapLevelClamp.setter # <<<<<<<<<<<<<< * def minMipmapLevelClamp(self, float minMipmapLevelClamp): * self._ptr[0].minMipmapLevelClamp = minMipmapLevelClamp */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_15cudaTextureDesc_19minMipmapLevelClamp_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_minMipmapLevelClamp); /*proto*/ static int __pyx_pw_4cuda_6cudart_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, 11965, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.minMipmapLevelClamp.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_15cudaTextureDesc_19minMipmapLevelClamp_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *)__pyx_v_self), ((float)__pyx_v_minMipmapLevelClamp)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_15cudaTextureDesc_19minMipmapLevelClamp_2__set__(struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *__pyx_v_self, float __pyx_v_minMipmapLevelClamp) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 11964, 0, __PYX_ERR(0, 11964, __pyx_L1_error)); /* "cuda/cudart.pyx":11966 * @minMipmapLevelClamp.setter * def minMipmapLevelClamp(self, float minMipmapLevelClamp): * self._ptr[0].minMipmapLevelClamp = minMipmapLevelClamp # <<<<<<<<<<<<<< * @property * def maxMipmapLevelClamp(self): */ (__pyx_v_self->_ptr[0]).minMipmapLevelClamp = __pyx_v_minMipmapLevelClamp; /* "cuda/cudart.pyx":11964 * def minMipmapLevelClamp(self): * return self._ptr[0].minMipmapLevelClamp * @minMipmapLevelClamp.setter # <<<<<<<<<<<<<< * def minMipmapLevelClamp(self, float minMipmapLevelClamp): * self._ptr[0].minMipmapLevelClamp = minMipmapLevelClamp */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.minMipmapLevelClamp.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":11967 * def minMipmapLevelClamp(self, float minMipmapLevelClamp): * self._ptr[0].minMipmapLevelClamp = minMipmapLevelClamp * @property # <<<<<<<<<<<<<< * def maxMipmapLevelClamp(self): * return self._ptr[0].maxMipmapLevelClamp */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_15cudaTextureDesc_19maxMipmapLevelClamp_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_15cudaTextureDesc_19maxMipmapLevelClamp___get__(((struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_15cudaTextureDesc_19maxMipmapLevelClamp___get__(struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11967, 0, __PYX_ERR(0, 11967, __pyx_L1_error)); /* "cuda/cudart.pyx":11969 * @property * def maxMipmapLevelClamp(self): * return self._ptr[0].maxMipmapLevelClamp # <<<<<<<<<<<<<< * @maxMipmapLevelClamp.setter * def maxMipmapLevelClamp(self, float maxMipmapLevelClamp): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble((__pyx_v_self->_ptr[0]).maxMipmapLevelClamp); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11969, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11967 * def minMipmapLevelClamp(self, float minMipmapLevelClamp): * self._ptr[0].minMipmapLevelClamp = minMipmapLevelClamp * @property # <<<<<<<<<<<<<< * def maxMipmapLevelClamp(self): * return self._ptr[0].maxMipmapLevelClamp */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.maxMipmapLevelClamp.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11970 * def maxMipmapLevelClamp(self): * return self._ptr[0].maxMipmapLevelClamp * @maxMipmapLevelClamp.setter # <<<<<<<<<<<<<< * def maxMipmapLevelClamp(self, float maxMipmapLevelClamp): * self._ptr[0].maxMipmapLevelClamp = maxMipmapLevelClamp */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_15cudaTextureDesc_19maxMipmapLevelClamp_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxMipmapLevelClamp); /*proto*/ static int __pyx_pw_4cuda_6cudart_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, 11971, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.maxMipmapLevelClamp.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_15cudaTextureDesc_19maxMipmapLevelClamp_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *)__pyx_v_self), ((float)__pyx_v_maxMipmapLevelClamp)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_15cudaTextureDesc_19maxMipmapLevelClamp_2__set__(struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *__pyx_v_self, float __pyx_v_maxMipmapLevelClamp) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 11970, 0, __PYX_ERR(0, 11970, __pyx_L1_error)); /* "cuda/cudart.pyx":11972 * @maxMipmapLevelClamp.setter * def maxMipmapLevelClamp(self, float maxMipmapLevelClamp): * self._ptr[0].maxMipmapLevelClamp = maxMipmapLevelClamp # <<<<<<<<<<<<<< * @property * def disableTrilinearOptimization(self): */ (__pyx_v_self->_ptr[0]).maxMipmapLevelClamp = __pyx_v_maxMipmapLevelClamp; /* "cuda/cudart.pyx":11970 * def maxMipmapLevelClamp(self): * return self._ptr[0].maxMipmapLevelClamp * @maxMipmapLevelClamp.setter # <<<<<<<<<<<<<< * def maxMipmapLevelClamp(self, float maxMipmapLevelClamp): * self._ptr[0].maxMipmapLevelClamp = maxMipmapLevelClamp */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.maxMipmapLevelClamp.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":11973 * def maxMipmapLevelClamp(self, float maxMipmapLevelClamp): * self._ptr[0].maxMipmapLevelClamp = maxMipmapLevelClamp * @property # <<<<<<<<<<<<<< * def disableTrilinearOptimization(self): * return self._ptr[0].disableTrilinearOptimization */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_15cudaTextureDesc_28disableTrilinearOptimization_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_15cudaTextureDesc_28disableTrilinearOptimization___get__(((struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_15cudaTextureDesc_28disableTrilinearOptimization___get__(struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11973, 0, __PYX_ERR(0, 11973, __pyx_L1_error)); /* "cuda/cudart.pyx":11975 * @property * def disableTrilinearOptimization(self): * return self._ptr[0].disableTrilinearOptimization # <<<<<<<<<<<<<< * @disableTrilinearOptimization.setter * def disableTrilinearOptimization(self, int disableTrilinearOptimization): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).disableTrilinearOptimization); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11975, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11973 * def maxMipmapLevelClamp(self, float maxMipmapLevelClamp): * self._ptr[0].maxMipmapLevelClamp = maxMipmapLevelClamp * @property # <<<<<<<<<<<<<< * def disableTrilinearOptimization(self): * return self._ptr[0].disableTrilinearOptimization */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.disableTrilinearOptimization.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11976 * def disableTrilinearOptimization(self): * return self._ptr[0].disableTrilinearOptimization * @disableTrilinearOptimization.setter # <<<<<<<<<<<<<< * def disableTrilinearOptimization(self, int disableTrilinearOptimization): * self._ptr[0].disableTrilinearOptimization = disableTrilinearOptimization */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_15cudaTextureDesc_28disableTrilinearOptimization_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_disableTrilinearOptimization); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_disableTrilinearOptimization); if (unlikely((__pyx_v_disableTrilinearOptimization == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 11977, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.disableTrilinearOptimization.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_15cudaTextureDesc_28disableTrilinearOptimization_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *)__pyx_v_self), ((int)__pyx_v_disableTrilinearOptimization)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_15cudaTextureDesc_28disableTrilinearOptimization_2__set__(struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *__pyx_v_self, int __pyx_v_disableTrilinearOptimization) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 11976, 0, __PYX_ERR(0, 11976, __pyx_L1_error)); /* "cuda/cudart.pyx":11978 * @disableTrilinearOptimization.setter * def disableTrilinearOptimization(self, int disableTrilinearOptimization): * self._ptr[0].disableTrilinearOptimization = disableTrilinearOptimization # <<<<<<<<<<<<<< * @property * def seamlessCubemap(self): */ (__pyx_v_self->_ptr[0]).disableTrilinearOptimization = __pyx_v_disableTrilinearOptimization; /* "cuda/cudart.pyx":11976 * def disableTrilinearOptimization(self): * return self._ptr[0].disableTrilinearOptimization * @disableTrilinearOptimization.setter # <<<<<<<<<<<<<< * def disableTrilinearOptimization(self, int disableTrilinearOptimization): * self._ptr[0].disableTrilinearOptimization = disableTrilinearOptimization */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.disableTrilinearOptimization.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":11979 * def disableTrilinearOptimization(self, int disableTrilinearOptimization): * self._ptr[0].disableTrilinearOptimization = disableTrilinearOptimization * @property # <<<<<<<<<<<<<< * def seamlessCubemap(self): * return self._ptr[0].seamlessCubemap */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_15cudaTextureDesc_15seamlessCubemap_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_15cudaTextureDesc_15seamlessCubemap___get__(((struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_15cudaTextureDesc_15seamlessCubemap___get__(struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 11979, 0, __PYX_ERR(0, 11979, __pyx_L1_error)); /* "cuda/cudart.pyx":11981 * @property * def seamlessCubemap(self): * return self._ptr[0].seamlessCubemap # <<<<<<<<<<<<<< * @seamlessCubemap.setter * def seamlessCubemap(self, int seamlessCubemap): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int((__pyx_v_self->_ptr[0]).seamlessCubemap); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11981, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":11979 * def disableTrilinearOptimization(self, int disableTrilinearOptimization): * self._ptr[0].disableTrilinearOptimization = disableTrilinearOptimization * @property # <<<<<<<<<<<<<< * def seamlessCubemap(self): * return self._ptr[0].seamlessCubemap */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.seamlessCubemap.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":11982 * def seamlessCubemap(self): * return self._ptr[0].seamlessCubemap * @seamlessCubemap.setter # <<<<<<<<<<<<<< * def seamlessCubemap(self, int seamlessCubemap): * self._ptr[0].seamlessCubemap = seamlessCubemap */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_15cudaTextureDesc_15seamlessCubemap_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_seamlessCubemap); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_int(__pyx_arg_seamlessCubemap); if (unlikely((__pyx_v_seamlessCubemap == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 11983, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.seamlessCubemap.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_15cudaTextureDesc_15seamlessCubemap_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *)__pyx_v_self), ((int)__pyx_v_seamlessCubemap)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_15cudaTextureDesc_15seamlessCubemap_2__set__(struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *__pyx_v_self, int __pyx_v_seamlessCubemap) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 11982, 0, __PYX_ERR(0, 11982, __pyx_L1_error)); /* "cuda/cudart.pyx":11984 * @seamlessCubemap.setter * def seamlessCubemap(self, int seamlessCubemap): * self._ptr[0].seamlessCubemap = seamlessCubemap # <<<<<<<<<<<<<< * * cdef class cudaEglPlaneDesc_st: */ (__pyx_v_self->_ptr[0]).seamlessCubemap = __pyx_v_seamlessCubemap; /* "cuda/cudart.pyx":11982 * def seamlessCubemap(self): * return self._ptr[0].seamlessCubemap * @seamlessCubemap.setter # <<<<<<<<<<<<<< * def seamlessCubemap(self, int seamlessCubemap): * self._ptr[0].seamlessCubemap = seamlessCubemap */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.seamlessCubemap.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_15cudaTextureDesc_10__reduce_cython__, "cudaTextureDesc.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_15cudaTextureDesc_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_15cudaTextureDesc_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_15cudaTextureDesc_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_15cudaTextureDesc_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_15cudaTextureDesc_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__300) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaTextureDesc.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_15cudaTextureDesc_12__setstate_cython__, "cudaTextureDesc.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_15cudaTextureDesc_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_15cudaTextureDesc_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_15cudaTextureDesc_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaTextureDesc.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_15cudaTextureDesc_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_15cudaTextureDesc_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__301) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaTextureDesc.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12014 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12014, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 12014, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12014, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 12014, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaEglPlaneDesc_st.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_19cudaEglPlaneDesc_st___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_19cudaEglPlaneDesc_st___cinit__(struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 12014, 0, __PYX_ERR(0, 12014, __pyx_L1_error)); /* "cuda/cudart.pyx":12015 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":12016 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaEglPlaneDesc_st__val); /* "cuda/cudart.pyx":12015 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":12018 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * self._channelDesc = cudaChannelFormatDesc(_ptr=&self._ptr[0].channelDesc) */ /*else*/ { __pyx_v_self->_ptr = ((struct __pyx_t_4cuda_7ccudart_cudaEglPlaneDesc_st *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":12014 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaEglPlaneDesc_st.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":12019 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._channelDesc = cudaChannelFormatDesc(_ptr=&self._ptr[0].channelDesc) * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12019, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 12019, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12019, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 12019, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaEglPlaneDesc_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_19cudaEglPlaneDesc_st_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_19cudaEglPlaneDesc_st_2__init__(struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 12019, 0, __PYX_ERR(0, 12019, __pyx_L1_error)); /* "cuda/cudart.pyx":12020 * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): * self._channelDesc = cudaChannelFormatDesc(_ptr=&self._ptr[0].channelDesc) # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12020, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).channelDesc))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12020, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 12020, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaChannelFormatDesc), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12020, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_channelDesc); __Pyx_DECREF((PyObject *)__pyx_v_self->_channelDesc); __pyx_v_self->_channelDesc = ((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":12019 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._channelDesc = cudaChannelFormatDesc(_ptr=&self._ptr[0].channelDesc) * def __dealloc__(self): */ /* 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.cudart.cudaEglPlaneDesc_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12021 * def __init__(self, void_ptr _ptr = 0): * self._channelDesc = cudaChannelFormatDesc(_ptr=&self._ptr[0].channelDesc) * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_19cudaEglPlaneDesc_st_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_19cudaEglPlaneDesc_st_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 12021, 0, __PYX_ERR(0, 12021, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaEglPlaneDesc_st.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":12023 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_19cudaEglPlaneDesc_st_6getPtr, "cudaEglPlaneDesc_st.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_19cudaEglPlaneDesc_st_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_19cudaEglPlaneDesc_st_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_19cudaEglPlaneDesc_st_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaEglPlaneDesc_st_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__302) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 12023, 0, __PYX_ERR(0, 12023, __pyx_L1_error)); /* "cuda/cudart.pyx":12024 * pass * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12024, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12023 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaEglPlaneDesc_st.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12025 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_19cudaEglPlaneDesc_st_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaEglPlaneDesc_st_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_9genexpr90__pyx_v_line = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 12025, 0, __PYX_ERR(0, 12025, __pyx_L1_error)); /* "cuda/cudart.pyx":12026 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":12027 * def __repr__(self): * if self._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, 12027, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":12028 * if self._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/cudart.pyx":12029 * str_list = [] * try: * str_list += ['width : ' + str(self.width)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['width : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_width_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12029, __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, 12029, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_width, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12029, __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, 12029, __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)) __PYX_ERR(0, 12029, __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, 12029, __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/cudart.pyx":12028 * if self._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/cudart.pyx":12030 * try: * str_list += ['width : ' + str(self.width)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['width : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 12030, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":12031 * str_list += ['width : ' + str(self.width)] * except ValueError: * str_list += ['width : '] # <<<<<<<<<<<<<< * try: * str_list += ['height : ' + str(self.height)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12031, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_width_ValueError); __Pyx_GIVEREF(__pyx_kp_u_width_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_width_ValueError)) __PYX_ERR(0, 12031, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12031, __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/cudart.pyx":12028 * if self._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/cudart.pyx":12032 * except ValueError: * str_list += ['width : '] * 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/cudart.pyx":12033 * str_list += ['width : '] * try: * str_list += ['height : ' + str(self.height)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['height : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_height_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12033, __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, 12033, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_height, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12033, __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, 12033, __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)) __PYX_ERR(0, 12033, __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, 12033, __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/cudart.pyx":12032 * except ValueError: * str_list += ['width : '] * 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/cudart.pyx":12034 * try: * str_list += ['height : ' + str(self.height)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['height : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 12034, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":12035 * str_list += ['height : ' + str(self.height)] * except ValueError: * str_list += ['height : '] # <<<<<<<<<<<<<< * try: * str_list += ['depth : ' + str(self.depth)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12035, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_height_ValueError); __Pyx_GIVEREF(__pyx_kp_u_height_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_height_ValueError)) __PYX_ERR(0, 12035, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12035, __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/cudart.pyx":12032 * except ValueError: * str_list += ['width : '] * 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/cudart.pyx":12036 * except ValueError: * str_list += ['height : '] * 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/cudart.pyx":12037 * str_list += ['height : '] * try: * str_list += ['depth : ' + str(self.depth)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['depth : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_depth_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12037, __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, 12037, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_depth, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12037, __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, 12037, __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)) __PYX_ERR(0, 12037, __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, 12037, __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/cudart.pyx":12036 * except ValueError: * str_list += ['height : '] * 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/cudart.pyx":12038 * try: * str_list += ['depth : ' + str(self.depth)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['depth : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 12038, __pyx_L22_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":12039 * str_list += ['depth : ' + str(self.depth)] * except ValueError: * str_list += ['depth : '] # <<<<<<<<<<<<<< * try: * str_list += ['pitch : ' + str(self.pitch)] */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12039, __pyx_L22_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_depth_ValueError); __Pyx_GIVEREF(__pyx_kp_u_depth_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_depth_ValueError)) __PYX_ERR(0, 12039, __pyx_L22_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12039, __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/cudart.pyx":12036 * except ValueError: * str_list += ['height : '] * 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/cudart.pyx":12040 * except ValueError: * str_list += ['depth : '] * 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/cudart.pyx":12041 * str_list += ['depth : '] * try: * str_list += ['pitch : ' + str(self.pitch)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['pitch : '] */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_pitch_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12041, __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, 12041, __pyx_L28_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_pitch, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12041, __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, 12041, __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)) __PYX_ERR(0, 12041, __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, 12041, __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/cudart.pyx":12040 * except ValueError: * str_list += ['depth : '] * 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/cudart.pyx":12042 * try: * str_list += ['pitch : ' + str(self.pitch)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['pitch : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 12042, __pyx_L30_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); /* "cuda/cudart.pyx":12043 * str_list += ['pitch : ' + str(self.pitch)] * except ValueError: * str_list += ['pitch : '] # <<<<<<<<<<<<<< * try: * str_list += ['numChannels : ' + str(self.numChannels)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12043, __pyx_L30_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_pitch_ValueError); __Pyx_GIVEREF(__pyx_kp_u_pitch_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_pitch_ValueError)) __PYX_ERR(0, 12043, __pyx_L30_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12043, __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/cudart.pyx":12040 * except ValueError: * str_list += ['depth : '] * 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/cudart.pyx":12044 * except ValueError: * str_list += ['pitch : '] * 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/cudart.pyx":12045 * str_list += ['pitch : '] * try: * str_list += ['numChannels : ' + str(self.numChannels)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['numChannels : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_numChannels_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12045, __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, 12045, __pyx_L36_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_numChannels, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12045, __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, 12045, __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)) __PYX_ERR(0, 12045, __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, 12045, __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/cudart.pyx":12044 * except ValueError: * str_list += ['pitch : '] * 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/cudart.pyx":12046 * try: * str_list += ['numChannels : ' + str(self.numChannels)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['numChannels : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 12046, __pyx_L38_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":12047 * str_list += ['numChannels : ' + str(self.numChannels)] * except ValueError: * str_list += ['numChannels : '] # <<<<<<<<<<<<<< * 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, 12047, __pyx_L38_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_numChannels_ValueError); __Pyx_GIVEREF(__pyx_kp_u_numChannels_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_numChannels_ValueError)) __PYX_ERR(0, 12047, __pyx_L38_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12047, __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/cudart.pyx":12044 * except ValueError: * str_list += ['pitch : '] * 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/cudart.pyx":12048 * except ValueError: * str_list += ['numChannels : '] * 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/cudart.pyx":12049 * str_list += ['numChannels : '] * try: * str_list += ['channelDesc :\n' + '\n'.join([' ' + line for line in str(self.channelDesc).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['channelDesc : '] */ { /* enter inner scope */ __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12049, __pyx_L52_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_channelDesc_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12049, __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, 12049, __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, 12049, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 12049, __pyx_L52_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_11); __Pyx_INCREF(__pyx_t_6); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 12049, __pyx_L52_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12049, __pyx_L52_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_9genexpr90__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr90__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12049, __pyx_L52_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 12049, __pyx_L52_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_9genexpr90__pyx_v_line); __pyx_9genexpr90__pyx_v_line = 0; goto __pyx_L56_exit_scope; __pyx_L52_error:; __Pyx_XDECREF(__pyx_9genexpr90__pyx_v_line); __pyx_9genexpr90__pyx_v_line = 0; goto __pyx_L44_error; __pyx_L56_exit_scope:; } /* exit inner scope */ __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12049, __pyx_L44_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_channelDesc, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12049, __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, 12049, __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)) __PYX_ERR(0, 12049, __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, 12049, __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/cudart.pyx":12048 * except ValueError: * str_list += ['numChannels : '] * 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/cudart.pyx":12050 * try: * str_list += ['channelDesc :\n' + '\n'.join([' ' + line for line in str(self.channelDesc).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['channelDesc : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 12050, __pyx_L46_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":12051 * str_list += ['channelDesc :\n' + '\n'.join([' ' + line for line in str(self.channelDesc).splitlines()])] * except ValueError: * str_list += ['channelDesc : '] # <<<<<<<<<<<<<< * try: * str_list += ['reserved : ' + str(self.reserved)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12051, __pyx_L46_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_channelDesc_ValueError); __Pyx_GIVEREF(__pyx_kp_u_channelDesc_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_channelDesc_ValueError)) __PYX_ERR(0, 12051, __pyx_L46_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12051, __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/cudart.pyx":12048 * except ValueError: * str_list += ['numChannels : '] * 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/cudart.pyx":12052 * except ValueError: * str_list += ['channelDesc : '] * 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/cudart.pyx":12053 * str_list += ['channelDesc : '] * try: * str_list += ['reserved : ' + str(self.reserved)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['reserved : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_reserved_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12053, __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, 12053, __pyx_L59_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_reserved, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12053, __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, 12053, __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)) __PYX_ERR(0, 12053, __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, 12053, __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/cudart.pyx":12052 * except ValueError: * str_list += ['channelDesc : '] * 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/cudart.pyx":12054 * try: * str_list += ['reserved : ' + str(self.reserved)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['reserved : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 12054, __pyx_L61_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":12055 * str_list += ['reserved : ' + str(self.reserved)] * except ValueError: * str_list += ['reserved : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12055, __pyx_L61_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_reserved_ValueError); __Pyx_GIVEREF(__pyx_kp_u_reserved_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_reserved_ValueError)) __PYX_ERR(0, 12055, __pyx_L61_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12055, __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/cudart.pyx":12052 * except ValueError: * str_list += ['channelDesc : '] * 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/cudart.pyx":12056 * except ValueError: * str_list += ['reserved : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_8 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12056, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12026 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":12058 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def width(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":12025 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaEglPlaneDesc_st.__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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12059 * else: * return '' * @property # <<<<<<<<<<<<<< * def width(self): * return self._ptr[0].width */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_5width_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_19cudaEglPlaneDesc_st_5width___get__(((struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaEglPlaneDesc_st_5width___get__(struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 12059, 0, __PYX_ERR(0, 12059, __pyx_L1_error)); /* "cuda/cudart.pyx":12061 * @property * def width(self): * return self._ptr[0].width # <<<<<<<<<<<<<< * @width.setter * def width(self, unsigned int width): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).width); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12061, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12059 * else: * return '' * @property # <<<<<<<<<<<<<< * def width(self): * return self._ptr[0].width */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaEglPlaneDesc_st.width.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12062 * def width(self): * return self._ptr[0].width * @width.setter # <<<<<<<<<<<<<< * def width(self, unsigned int width): * self._ptr[0].width = width */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_5width_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_width); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_width); if (unlikely((__pyx_v_width == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 12063, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaEglPlaneDesc_st.width.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_19cudaEglPlaneDesc_st_5width_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *)__pyx_v_self), ((unsigned int)__pyx_v_width)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_19cudaEglPlaneDesc_st_5width_2__set__(struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *__pyx_v_self, unsigned int __pyx_v_width) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 12062, 0, __PYX_ERR(0, 12062, __pyx_L1_error)); /* "cuda/cudart.pyx":12064 * @width.setter * def width(self, unsigned int width): * self._ptr[0].width = width # <<<<<<<<<<<<<< * @property * def height(self): */ (__pyx_v_self->_ptr[0]).width = __pyx_v_width; /* "cuda/cudart.pyx":12062 * def width(self): * return self._ptr[0].width * @width.setter # <<<<<<<<<<<<<< * def width(self, unsigned int width): * self._ptr[0].width = width */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaEglPlaneDesc_st.width.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":12065 * def width(self, unsigned int width): * self._ptr[0].width = width * @property # <<<<<<<<<<<<<< * def height(self): * return self._ptr[0].height */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_6height_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_19cudaEglPlaneDesc_st_6height___get__(((struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaEglPlaneDesc_st_6height___get__(struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 12065, 0, __PYX_ERR(0, 12065, __pyx_L1_error)); /* "cuda/cudart.pyx":12067 * @property * def height(self): * return self._ptr[0].height # <<<<<<<<<<<<<< * @height.setter * def height(self, unsigned int height): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).height); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12067, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12065 * def width(self, unsigned int width): * self._ptr[0].width = width * @property # <<<<<<<<<<<<<< * def height(self): * return self._ptr[0].height */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaEglPlaneDesc_st.height.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12068 * def height(self): * return self._ptr[0].height * @height.setter # <<<<<<<<<<<<<< * def height(self, unsigned int height): * self._ptr[0].height = height */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_6height_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_height); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_height); if (unlikely((__pyx_v_height == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 12069, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaEglPlaneDesc_st.height.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_19cudaEglPlaneDesc_st_6height_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *)__pyx_v_self), ((unsigned int)__pyx_v_height)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_19cudaEglPlaneDesc_st_6height_2__set__(struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *__pyx_v_self, unsigned int __pyx_v_height) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 12068, 0, __PYX_ERR(0, 12068, __pyx_L1_error)); /* "cuda/cudart.pyx":12070 * @height.setter * def height(self, unsigned int height): * self._ptr[0].height = height # <<<<<<<<<<<<<< * @property * def depth(self): */ (__pyx_v_self->_ptr[0]).height = __pyx_v_height; /* "cuda/cudart.pyx":12068 * def height(self): * return self._ptr[0].height * @height.setter # <<<<<<<<<<<<<< * def height(self, unsigned int height): * self._ptr[0].height = height */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaEglPlaneDesc_st.height.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":12071 * def height(self, unsigned int height): * self._ptr[0].height = height * @property # <<<<<<<<<<<<<< * def depth(self): * return self._ptr[0].depth */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_5depth_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_19cudaEglPlaneDesc_st_5depth___get__(((struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaEglPlaneDesc_st_5depth___get__(struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 12071, 0, __PYX_ERR(0, 12071, __pyx_L1_error)); /* "cuda/cudart.pyx":12073 * @property * def depth(self): * return self._ptr[0].depth # <<<<<<<<<<<<<< * @depth.setter * def depth(self, unsigned int depth): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).depth); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12073, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12071 * def height(self, unsigned int height): * self._ptr[0].height = height * @property # <<<<<<<<<<<<<< * def depth(self): * return self._ptr[0].depth */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaEglPlaneDesc_st.depth.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12074 * def depth(self): * return self._ptr[0].depth * @depth.setter # <<<<<<<<<<<<<< * def depth(self, unsigned int depth): * self._ptr[0].depth = depth */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_5depth_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_depth); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_depth); if (unlikely((__pyx_v_depth == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 12075, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaEglPlaneDesc_st.depth.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_19cudaEglPlaneDesc_st_5depth_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *)__pyx_v_self), ((unsigned int)__pyx_v_depth)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_19cudaEglPlaneDesc_st_5depth_2__set__(struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *__pyx_v_self, unsigned int __pyx_v_depth) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 12074, 0, __PYX_ERR(0, 12074, __pyx_L1_error)); /* "cuda/cudart.pyx":12076 * @depth.setter * def depth(self, unsigned int depth): * self._ptr[0].depth = depth # <<<<<<<<<<<<<< * @property * def pitch(self): */ (__pyx_v_self->_ptr[0]).depth = __pyx_v_depth; /* "cuda/cudart.pyx":12074 * def depth(self): * return self._ptr[0].depth * @depth.setter # <<<<<<<<<<<<<< * def depth(self, unsigned int depth): * self._ptr[0].depth = depth */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaEglPlaneDesc_st.depth.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":12077 * def depth(self, unsigned int depth): * self._ptr[0].depth = depth * @property # <<<<<<<<<<<<<< * def pitch(self): * return self._ptr[0].pitch */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_5pitch_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_19cudaEglPlaneDesc_st_5pitch___get__(((struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaEglPlaneDesc_st_5pitch___get__(struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 12077, 0, __PYX_ERR(0, 12077, __pyx_L1_error)); /* "cuda/cudart.pyx":12079 * @property * def pitch(self): * return self._ptr[0].pitch # <<<<<<<<<<<<<< * @pitch.setter * def pitch(self, unsigned int pitch): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).pitch); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12079, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12077 * def depth(self, unsigned int depth): * self._ptr[0].depth = depth * @property # <<<<<<<<<<<<<< * def pitch(self): * return self._ptr[0].pitch */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaEglPlaneDesc_st.pitch.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12080 * def pitch(self): * return self._ptr[0].pitch * @pitch.setter # <<<<<<<<<<<<<< * def pitch(self, unsigned int pitch): * self._ptr[0].pitch = pitch */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_5pitch_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_pitch); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_pitch); if (unlikely((__pyx_v_pitch == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 12081, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaEglPlaneDesc_st.pitch.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_19cudaEglPlaneDesc_st_5pitch_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *)__pyx_v_self), ((unsigned int)__pyx_v_pitch)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_19cudaEglPlaneDesc_st_5pitch_2__set__(struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *__pyx_v_self, unsigned int __pyx_v_pitch) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 12080, 0, __PYX_ERR(0, 12080, __pyx_L1_error)); /* "cuda/cudart.pyx":12082 * @pitch.setter * def pitch(self, unsigned int pitch): * self._ptr[0].pitch = pitch # <<<<<<<<<<<<<< * @property * def numChannels(self): */ (__pyx_v_self->_ptr[0]).pitch = __pyx_v_pitch; /* "cuda/cudart.pyx":12080 * def pitch(self): * return self._ptr[0].pitch * @pitch.setter # <<<<<<<<<<<<<< * def pitch(self, unsigned int pitch): * self._ptr[0].pitch = pitch */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaEglPlaneDesc_st.pitch.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":12083 * def pitch(self, unsigned int pitch): * self._ptr[0].pitch = pitch * @property # <<<<<<<<<<<<<< * def numChannels(self): * return self._ptr[0].numChannels */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_11numChannels_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_19cudaEglPlaneDesc_st_11numChannels___get__(((struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaEglPlaneDesc_st_11numChannels___get__(struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 12083, 0, __PYX_ERR(0, 12083, __pyx_L1_error)); /* "cuda/cudart.pyx":12085 * @property * def numChannels(self): * return self._ptr[0].numChannels # <<<<<<<<<<<<<< * @numChannels.setter * def numChannels(self, unsigned int numChannels): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).numChannels); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12085, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12083 * def pitch(self, unsigned int pitch): * self._ptr[0].pitch = pitch * @property # <<<<<<<<<<<<<< * def numChannels(self): * return self._ptr[0].numChannels */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaEglPlaneDesc_st.numChannels.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12086 * def numChannels(self): * return self._ptr[0].numChannels * @numChannels.setter # <<<<<<<<<<<<<< * def numChannels(self, unsigned int numChannels): * self._ptr[0].numChannels = numChannels */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_11numChannels_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_numChannels); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_numChannels); if (unlikely((__pyx_v_numChannels == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 12087, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaEglPlaneDesc_st.numChannels.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_19cudaEglPlaneDesc_st_11numChannels_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *)__pyx_v_self), ((unsigned int)__pyx_v_numChannels)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_19cudaEglPlaneDesc_st_11numChannels_2__set__(struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *__pyx_v_self, unsigned int __pyx_v_numChannels) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 12086, 0, __PYX_ERR(0, 12086, __pyx_L1_error)); /* "cuda/cudart.pyx":12088 * @numChannels.setter * def numChannels(self, unsigned int numChannels): * self._ptr[0].numChannels = numChannels # <<<<<<<<<<<<<< * @property * def channelDesc(self): */ (__pyx_v_self->_ptr[0]).numChannels = __pyx_v_numChannels; /* "cuda/cudart.pyx":12086 * def numChannels(self): * return self._ptr[0].numChannels * @numChannels.setter # <<<<<<<<<<<<<< * def numChannels(self, unsigned int numChannels): * self._ptr[0].numChannels = numChannels */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaEglPlaneDesc_st.numChannels.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":12089 * def numChannels(self, unsigned int numChannels): * self._ptr[0].numChannels = numChannels * @property # <<<<<<<<<<<<<< * def channelDesc(self): * return self._channelDesc */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_11channelDesc_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_19cudaEglPlaneDesc_st_11channelDesc___get__(((struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaEglPlaneDesc_st_11channelDesc___get__(struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 12089, 0, __PYX_ERR(0, 12089, __pyx_L1_error)); /* "cuda/cudart.pyx":12091 * @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/cudart.pyx":12089 * def numChannels(self, unsigned int numChannels): * self._ptr[0].numChannels = numChannels * @property # <<<<<<<<<<<<<< * def channelDesc(self): * return self._channelDesc */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaEglPlaneDesc_st.channelDesc.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12092 * def channelDesc(self): * return self._channelDesc * @channelDesc.setter # <<<<<<<<<<<<<< * def channelDesc(self, channelDesc not None : cudaChannelFormatDesc): * string.memcpy(&self._ptr[0].channelDesc, channelDesc.getPtr(), sizeof(self._ptr[0].channelDesc)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_11channelDesc_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_channelDesc); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_cudaChannelFormatDesc, 0, "channelDesc", 0))) __PYX_ERR(0, 12093, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_19cudaEglPlaneDesc_st_11channelDesc_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)__pyx_v_channelDesc)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_19cudaEglPlaneDesc_st_11channelDesc_2__set__(struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *__pyx_v_channelDesc) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 12092, 0, __PYX_ERR(0, 12092, __pyx_L1_error)); /* "cuda/cudart.pyx":12094 * @channelDesc.setter * def channelDesc(self, channelDesc not None : cudaChannelFormatDesc): * string.memcpy(&self._ptr[0].channelDesc, channelDesc.getPtr(), sizeof(self._ptr[0].channelDesc)) # <<<<<<<<<<<<<< * @property * def reserved(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_channelDesc), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12094, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12094, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12094, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).channelDesc), ((struct cudaChannelFormatDesc *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).channelDesc)))); /* "cuda/cudart.pyx":12092 * def channelDesc(self): * return self._channelDesc * @channelDesc.setter # <<<<<<<<<<<<<< * def channelDesc(self, channelDesc not None : cudaChannelFormatDesc): * string.memcpy(&self._ptr[0].channelDesc, channelDesc.getPtr(), sizeof(self._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_AddTraceback("cuda.cudart.cudaEglPlaneDesc_st.channelDesc.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12095 * def channelDesc(self, channelDesc not None : cudaChannelFormatDesc): * string.memcpy(&self._ptr[0].channelDesc, channelDesc.getPtr(), sizeof(self._ptr[0].channelDesc)) * @property # <<<<<<<<<<<<<< * def reserved(self): * return self._ptr[0].reserved */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_19cudaEglPlaneDesc_st_8reserved___get__(((struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaEglPlaneDesc_st_8reserved___get__(struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 12095, 0, __PYX_ERR(0, 12095, __pyx_L1_error)); /* "cuda/cudart.pyx":12097 * @property * def reserved(self): * return self._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->_ptr[0]).reserved, 4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12097, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12095 * def channelDesc(self, channelDesc not None : cudaChannelFormatDesc): * string.memcpy(&self._ptr[0].channelDesc, channelDesc.getPtr(), sizeof(self._ptr[0].channelDesc)) * @property # <<<<<<<<<<<<<< * def reserved(self): * return self._ptr[0].reserved */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaEglPlaneDesc_st.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12098 * def reserved(self): * return self._ptr[0].reserved * @reserved.setter # <<<<<<<<<<<<<< * def reserved(self, reserved): * self._ptr[0].reserved = reserved */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_19cudaEglPlaneDesc_st_8reserved_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *)__pyx_v_self), ((PyObject *)__pyx_v_reserved)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_19cudaEglPlaneDesc_st_8reserved_2__set__(struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *__pyx_v_self, PyObject *__pyx_v_reserved) { int __pyx_r; __Pyx_TraceDeclarations unsigned int __pyx_t_1[4]; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 12098, 0, __PYX_ERR(0, 12098, __pyx_L1_error)); /* "cuda/cudart.pyx":12100 * @reserved.setter * def reserved(self, reserved): * self._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, 12100, __pyx_L1_error) memcpy(&((__pyx_v_self->_ptr[0]).reserved[0]), __pyx_t_1, sizeof((__pyx_v_self->_ptr[0]).reserved[0]) * (4)); /* "cuda/cudart.pyx":12098 * def reserved(self): * return self._ptr[0].reserved * @reserved.setter # <<<<<<<<<<<<<< * def reserved(self, reserved): * self._ptr[0].reserved = reserved */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaEglPlaneDesc_st.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 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_6cudart_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_6cudart_19cudaEglPlaneDesc_st_10__reduce_cython__, "cudaEglPlaneDesc_st.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_19cudaEglPlaneDesc_st_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_19cudaEglPlaneDesc_st_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_19cudaEglPlaneDesc_st_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaEglPlaneDesc_st_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__303) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaEglPlaneDesc_st.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_19cudaEglPlaneDesc_st_12__setstate_cython__, "cudaEglPlaneDesc_st.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_19cudaEglPlaneDesc_st_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_19cudaEglPlaneDesc_st_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaEglPlaneDesc_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_19cudaEglPlaneDesc_st_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaEglPlaneDesc_st_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__304) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaEglPlaneDesc_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12117 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12anon_union10_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_12anon_union10_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12117, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 12117, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12117, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 12117, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_union10.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_union10___cinit__(((struct __pyx_obj_4cuda_6cudart_anon_union10 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12anon_union10___cinit__(struct __pyx_obj_4cuda_6cudart_anon_union10 *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 12117, 0, __PYX_ERR(0, 12117, __pyx_L1_error)); /* "cuda/cudart.pyx":12118 * """ * def __cinit__(self, void_ptr _ptr): * self._ptr = _ptr # <<<<<<<<<<<<<< * * def __init__(self, void_ptr _ptr): */ __pyx_v_self->_ptr = ((struct __pyx_t_4cuda_7ccudart_cudaEglFrame_st *)__pyx_v__ptr); /* "cuda/cudart.pyx":12117 * * """ * def __cinit__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * self._ptr = _ptr * */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_union10.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":12120 * self._ptr = _ptr * * def __init__(self, void_ptr _ptr): # <<<<<<<<<<<<<< * pass * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12anon_union10_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_12anon_union10_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr)) != 0)) { (void)__Pyx_Arg_NewRef_VARARGS(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12120, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 12120, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); } __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12120, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 12120, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_union10.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_union10_2__init__(((struct __pyx_obj_4cuda_6cudart_anon_union10 *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12anon_union10_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_union10 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__init__", __pyx_f[0], 12120, 0, __PYX_ERR(0, 12120, __pyx_L1_error)); /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.anon_union10.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":12122 * def __init__(self, void_ptr _ptr): * pass * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def getPtr(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_12anon_union10_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_12anon_union10_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_anon_union10 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_12anon_union10_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_union10 *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 12122, 0, __PYX_ERR(0, 12122, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.anon_union10.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":12124 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].frame * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12anon_union10_6getPtr, "anon_union10.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_12anon_union10_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_union10_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_union10_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_union10_6getPtr(((struct __pyx_obj_4cuda_6cudart_anon_union10 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_union10_6getPtr(struct __pyx_obj_4cuda_6cudart_anon_union10 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__305) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 12124, 0, __PYX_ERR(0, 12124, __pyx_L1_error)); /* "cuda/cudart.pyx":12125 * pass * def getPtr(self): * return &self._ptr[0].frame # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_self->_ptr[0]).frame))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12125, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12124 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].frame * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.anon_union10.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12126 * def getPtr(self): * return &self._ptr[0].frame * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12anon_union10_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12anon_union10_8__repr__(((struct __pyx_obj_4cuda_6cudart_anon_union10 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_union10_8__repr__(struct __pyx_obj_4cuda_6cudart_anon_union10 *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_9genexpr91__pyx_v_line = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 12126, 0, __PYX_ERR(0, 12126, __pyx_L1_error)); /* "cuda/cudart.pyx":12127 * return &self._ptr[0].frame * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":12128 * def __repr__(self): * if self._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, 12128, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":12129 * if self._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/cudart.pyx":12130 * str_list = [] * try: * str_list += ['pArray : ' + str(self.pArray)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['pArray : '] */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_pArray_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12130, __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, 12130, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_pArray, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12130, __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, 12130, __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)) __PYX_ERR(0, 12130, __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, 12130, __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/cudart.pyx":12129 * if self._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/cudart.pyx":12131 * try: * str_list += ['pArray : ' + str(self.pArray)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['pArray : '] * try: */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 12131, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); /* "cuda/cudart.pyx":12132 * str_list += ['pArray : ' + str(self.pArray)] * except ValueError: * str_list += ['pArray : '] # <<<<<<<<<<<<<< * 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, 12132, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_INCREF(__pyx_kp_u_pArray_ValueError); __Pyx_GIVEREF(__pyx_kp_u_pArray_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_kp_u_pArray_ValueError)) __PYX_ERR(0, 12132, __pyx_L6_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12132, __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/cudart.pyx":12129 * if self._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/cudart.pyx":12133 * except ValueError: * str_list += ['pArray : '] * 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/cudart.pyx":12134 * str_list += ['pArray : '] * try: * str_list += ['pPitch :\n' + '\n'.join([' ' + line for line in str(self.pPitch).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['pPitch : '] */ { /* enter inner scope */ __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12134, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_pPitch_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12134, __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, 12134, __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, 12134, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 12134, __pyx_L20_error) #endif if (__pyx_t_11 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_11); __Pyx_INCREF(__pyx_t_6); __pyx_t_11++; if (unlikely((0 < 0))) __PYX_ERR(0, 12134, __pyx_L20_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12134, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_9genexpr91__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr91__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12134, __pyx_L20_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 12134, __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_kp_u__51, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12134, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_kp_u_pPitch, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12134, __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, 12134, __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)) __PYX_ERR(0, 12134, __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, 12134, __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/cudart.pyx":12133 * except ValueError: * str_list += ['pArray : '] * 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/cudart.pyx":12135 * try: * str_list += ['pPitch :\n' + '\n'.join([' ' + line for line in str(self.pPitch).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['pPitch : '] * return '\n'.join(str_list) */ __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_7) { __Pyx_AddTraceback("cuda.cudart.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, 12135, __pyx_L14_except_error) __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":12136 * str_list += ['pPitch :\n' + '\n'.join([' ' + line for line in str(self.pPitch).splitlines()])] * except ValueError: * str_list += ['pPitch : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12136, __pyx_L14_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_pPitch_ValueError); __Pyx_GIVEREF(__pyx_kp_u_pPitch_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_pPitch_ValueError)) __PYX_ERR(0, 12136, __pyx_L14_except_error); __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12136, __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/cudart.pyx":12133 * except ValueError: * str_list += ['pArray : '] * 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/cudart.pyx":12137 * except ValueError: * str_list += ['pPitch : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_6 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12137, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12127 * return &self._ptr[0].frame * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":12139 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def pArray(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":12126 * def getPtr(self): * return &self._ptr[0].frame * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.anon_union10.__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_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12140 * else: * return '' * @property # <<<<<<<<<<<<<< * def pArray(self): * return [cudaArray_t(init_value=_pArray) for _pArray in self._ptr[0].frame.pArray] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12anon_union10_6pArray_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12anon_union10_6pArray___get__(((struct __pyx_obj_4cuda_6cudart_anon_union10 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_union10_6pArray___get__(struct __pyx_obj_4cuda_6cudart_anon_union10 *__pyx_v_self) { cudaArray_t __pyx_9genexpr92__pyx_v__pArray; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 12140, 0, __PYX_ERR(0, 12140, __pyx_L1_error)); /* "cuda/cudart.pyx":12142 * @property * def pArray(self): * return [cudaArray_t(init_value=_pArray) for _pArray in self._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, 12142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = ((__pyx_v_self->_ptr[0]).frame.pArray + 3); for (__pyx_t_4 = (__pyx_v_self->_ptr[0]).frame.pArray; __pyx_t_4 < __pyx_t_3; __pyx_t_4++) { __pyx_t_2 = __pyx_t_4; __pyx_9genexpr92__pyx_v__pArray = (__pyx_t_2[0]); __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_9genexpr92__pyx_v__pArray)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_init_value, __pyx_t_6) < 0) __PYX_ERR(0, 12142, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_t), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 12142, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } /* exit inner scope */ __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12140 * else: * return '' * @property # <<<<<<<<<<<<<< * def pArray(self): * return [cudaArray_t(init_value=_pArray) for _pArray in self._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_AddTraceback("cuda.cudart.anon_union10.pArray.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12143 * def pArray(self): * return [cudaArray_t(init_value=_pArray) for _pArray in self._ptr[0].frame.pArray] * @pArray.setter # <<<<<<<<<<<<<< * def pArray(self, pArray : List[cudaArray_t]): * if len(pArray) != 3: */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12anon_union10_6pArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_pArray); /*proto*/ static int __pyx_pw_4cuda_6cudart_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", 1))) __PYX_ERR(0, 12144, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_12anon_union10_6pArray_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_union10 *)__pyx_v_self), ((PyObject*)__pyx_v_pArray)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12anon_union10_6pArray_2__set__(struct __pyx_obj_4cuda_6cudart_anon_union10 *__pyx_v_self, PyObject *__pyx_v_pArray) { Py_ssize_t __pyx_v__idx; PyObject *__pyx_v__pArray = NULL; PyObject *__pyx_9genexpr93__pyx_v__pArray = NULL; int __pyx_r; __Pyx_TraceDeclarations __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; Py_ssize_t __pyx_t_6; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); __Pyx_TraceCall("__set__", __pyx_f[0], 12143, 0, __PYX_ERR(0, 12143, __pyx_L1_error)); __Pyx_INCREF(__pyx_v_pArray); /* "cuda/cudart.pyx":12145 * @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, 12145, __pyx_L1_error) __pyx_t_2 = (__pyx_t_1 != 3); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":12146 * 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_1 = __Pyx_PyList_GET_SIZE(__pyx_v_pArray); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12146, __pyx_L1_error) __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12146, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12146, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_INCREF(__pyx_kp_u_not_enough_values_found_during_a); __Pyx_GIVEREF(__pyx_kp_u_not_enough_values_found_during_a); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_kp_u_not_enough_values_found_during_a)) __PYX_ERR(0, 12146, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3)) __PYX_ERR(0, 12146, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_IndexError, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12146, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __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/cudart.pyx":12145 * @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/cudart.pyx":12147 * 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._ptr[0].frame.pArray[_idx] = _pArray */ { /* enter inner scope */ __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12147, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __pyx_v_pArray; __Pyx_INCREF(__pyx_t_4); __pyx_t_1 = 0; for (;;) { { Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_4); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 12147, __pyx_L6_error) #endif if (__pyx_t_1 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_5 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_1); __Pyx_INCREF(__pyx_t_5); __pyx_t_1++; if (unlikely((0 < 0))) __PYX_ERR(0, 12147, __pyx_L6_error) #else __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_4, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12147, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_5); #endif __Pyx_XDECREF_SET(__pyx_9genexpr93__pyx_v__pArray, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_9genexpr93__pyx_v__pArray); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12147, __pyx_L6_error) __Pyx_GOTREF(__pyx_t_5); if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 12147, __pyx_L6_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_9genexpr93__pyx_v__pArray); __pyx_9genexpr93__pyx_v__pArray = 0; goto __pyx_L10_exit_scope; __pyx_L6_error:; __Pyx_XDECREF(__pyx_9genexpr93__pyx_v__pArray); __pyx_9genexpr93__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/cudart.pyx":12148 * 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._ptr[0].frame.pArray[_idx] = _pArray * */ __pyx_t_1 = 0; __pyx_t_3 = __pyx_v_pArray; __Pyx_INCREF(__pyx_t_3); __pyx_t_6 = 0; for (;;) { { Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 12148, __pyx_L1_error) #endif if (__pyx_t_6 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_6); __Pyx_INCREF(__pyx_t_4); __pyx_t_6++; if (unlikely((0 < 0))) __PYX_ERR(0, 12148, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif __Pyx_XDECREF_SET(__pyx_v__pArray, __pyx_t_4); __pyx_t_4 = 0; __pyx_v__idx = __pyx_t_1; __pyx_t_1 = (__pyx_t_1 + 1); /* "cuda/cudart.pyx":12149 * pArray = [int(_pArray) for _pArray in pArray] * for _idx, _pArray in enumerate(pArray): * self._ptr[0].frame.pArray[_idx] = _pArray # <<<<<<<<<<<<<< * * @property */ __pyx_t_7 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v__pArray); if (unlikely((__pyx_t_7 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12149, __pyx_L1_error) ((__pyx_v_self->_ptr[0]).frame.pArray[__pyx_v__idx]) = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_7)); /* "cuda/cudart.pyx":12148 * 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._ptr[0].frame.pArray[_idx] = _pArray * */ } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":12143 * def pArray(self): * return [cudaArray_t(init_value=_pArray) for _pArray in self._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.cudart.anon_union10.pArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v__pArray); __Pyx_XDECREF(__pyx_9genexpr93__pyx_v__pArray); __Pyx_XDECREF(__pyx_v_pArray); __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12151 * self._ptr[0].frame.pArray[_idx] = _pArray * * @property # <<<<<<<<<<<<<< * def pPitch(self): * out_pPitch = [cudaPitchedPtr() for _pPitch in self._ptr[0].frame.pPitch] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_12anon_union10_6pPitch_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12anon_union10_6pPitch___get__(((struct __pyx_obj_4cuda_6cudart_anon_union10 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_union10_6pPitch___get__(struct __pyx_obj_4cuda_6cudart_anon_union10 *__pyx_v_self) { PyObject *__pyx_v_out_pPitch = NULL; Py_ssize_t __pyx_v__idx; CYTHON_UNUSED struct cudaPitchedPtr __pyx_9genexpr94__pyx_v__pPitch; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; Py_ssize_t __pyx_t_6; Py_ssize_t __pyx_t_7; Py_ssize_t __pyx_t_8; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_11; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 12151, 0, __PYX_ERR(0, 12151, __pyx_L1_error)); /* "cuda/cudart.pyx":12153 * @property * def pPitch(self): * out_pPitch = [cudaPitchedPtr() for _pPitch in self._ptr[0].frame.pPitch] # <<<<<<<<<<<<<< * for _idx in range(len(out_pPitch)): * string.memcpy(out_pPitch[_idx].getPtr(), &self._ptr[0].frame.pPitch[_idx], sizeof(ccudart.cudaPitchedPtr)) */ { /* enter inner scope */ __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12153, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = ((__pyx_v_self->_ptr[0]).frame.pPitch + 3); for (__pyx_t_4 = (__pyx_v_self->_ptr[0]).frame.pPitch; __pyx_t_4 < __pyx_t_3; __pyx_t_4++) { __pyx_t_2 = __pyx_t_4; __pyx_9genexpr94__pyx_v__pPitch = (__pyx_t_2[0]); __pyx_t_5 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaPitchedPtr)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12153, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 12153, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } /* exit inner scope */ __pyx_v_out_pPitch = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":12154 * def pPitch(self): * out_pPitch = [cudaPitchedPtr() for _pPitch in self._ptr[0].frame.pPitch] * for _idx in range(len(out_pPitch)): # <<<<<<<<<<<<<< * string.memcpy(out_pPitch[_idx].getPtr(), &self._ptr[0].frame.pPitch[_idx], sizeof(ccudart.cudaPitchedPtr)) * return out_pPitch */ __pyx_t_6 = __Pyx_PyList_GET_SIZE(__pyx_v_out_pPitch); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12154, __pyx_L1_error) __pyx_t_7 = __pyx_t_6; for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) { __pyx_v__idx = __pyx_t_8; /* "cuda/cudart.pyx":12155 * out_pPitch = [cudaPitchedPtr() for _pPitch in self._ptr[0].frame.pPitch] * for _idx in range(len(out_pPitch)): * string.memcpy(out_pPitch[_idx].getPtr(), &self._ptr[0].frame.pPitch[_idx], sizeof(ccudart.cudaPitchedPtr)) # <<<<<<<<<<<<<< * return out_pPitch * @pPitch.setter */ __pyx_t_5 = __Pyx_GetItemInt_List(__pyx_v_out_pPitch, __pyx_v__idx, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_getPtr); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_9, __pyx_callargs+1-__pyx_t_10, 0+__pyx_t_10); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __pyx_t_11 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_11 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12155, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy(((struct cudaPitchedPtr *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_11)), (&((__pyx_v_self->_ptr[0]).frame.pPitch[__pyx_v__idx])), (sizeof(struct cudaPitchedPtr)))); } /* "cuda/cudart.pyx":12156 * for _idx in range(len(out_pPitch)): * string.memcpy(out_pPitch[_idx].getPtr(), &self._ptr[0].frame.pPitch[_idx], sizeof(ccudart.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/cudart.pyx":12151 * self._ptr[0].frame.pArray[_idx] = _pArray * * @property # <<<<<<<<<<<<<< * def pPitch(self): * out_pPitch = [cudaPitchedPtr() for _pPitch in self._ptr[0].frame.pPitch] */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12157 * string.memcpy(out_pPitch[_idx].getPtr(), &self._ptr[0].frame.pPitch[_idx], sizeof(ccudart.cudaPitchedPtr)) * return out_pPitch * @pPitch.setter # <<<<<<<<<<<<<< * def pPitch(self, pPitch : List[cudaPitchedPtr]): * if len(pPitch) != 3: */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_12anon_union10_6pPitch_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_pPitch); /*proto*/ static int __pyx_pw_4cuda_6cudart_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", 1))) __PYX_ERR(0, 12158, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_12anon_union10_6pPitch_2__set__(((struct __pyx_obj_4cuda_6cudart_anon_union10 *)__pyx_v_self), ((PyObject*)__pyx_v_pPitch)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_12anon_union10_6pPitch_2__set__(struct __pyx_obj_4cuda_6cudart_anon_union10 *__pyx_v_self, PyObject *__pyx_v_pPitch) { Py_ssize_t __pyx_v__idx; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations Py_ssize_t __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; Py_ssize_t __pyx_t_5; Py_ssize_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 12157, 0, __PYX_ERR(0, 12157, __pyx_L1_error)); /* "cuda/cudart.pyx":12159 * @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, 12159, __pyx_L1_error) __pyx_t_2 = (__pyx_t_1 != 3); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":12160 * 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._ptr[0].frame.pPitch[_idx], pPitch[_idx].getPtr(), sizeof(ccudart.cudaPitchedPtr)) */ __pyx_t_1 = __Pyx_PyList_GET_SIZE(__pyx_v_pPitch); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12160, __pyx_L1_error) __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12160, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12160, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_INCREF(__pyx_kp_u_not_enough_values_found_during_a); __Pyx_GIVEREF(__pyx_kp_u_not_enough_values_found_during_a); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_kp_u_not_enough_values_found_during_a)) __PYX_ERR(0, 12160, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3)) __PYX_ERR(0, 12160, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_IndexError, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12160, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 12160, __pyx_L1_error) /* "cuda/cudart.pyx":12159 * @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/cudart.pyx":12161 * 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._ptr[0].frame.pPitch[_idx], pPitch[_idx].getPtr(), sizeof(ccudart.cudaPitchedPtr)) * */ __pyx_t_1 = __Pyx_PyList_GET_SIZE(__pyx_v_pPitch); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12161, __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/cudart.pyx":12162 * raise IndexError('not enough values found during array assignment, expected 3, got', len(pPitch)) * for _idx in range(len(pPitch)): * string.memcpy(&self._ptr[0].frame.pPitch[_idx], pPitch[_idx].getPtr(), sizeof(ccudart.cudaPitchedPtr)) # <<<<<<<<<<<<<< * * cdef class cudaEglFrame_st: */ __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_pPitch, __pyx_v__idx, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12162, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_getPtr); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12162, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_8, 0+__pyx_t_8); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12162, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __pyx_t_9 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_3); if (unlikely((__pyx_t_9 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12162, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; (void)(memcpy((&((__pyx_v_self->_ptr[0]).frame.pPitch[__pyx_v__idx])), ((struct cudaPitchedPtr *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_9)), (sizeof(struct cudaPitchedPtr)))); } /* "cuda/cudart.pyx":12157 * string.memcpy(out_pPitch[_idx].getPtr(), &self._ptr[0].frame.pPitch[_idx], sizeof(ccudart.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_7); __Pyx_AddTraceback("cuda.cudart.anon_union10.pPitch.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __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_6cudart_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_6cudart_12anon_union10_10__reduce_cython__, "anon_union10.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_12anon_union10_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_union10_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_union10_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_union10_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_anon_union10 *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_union10_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_union10 *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__306) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_union10.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_12anon_union10_12__setstate_cython__, "anon_union10.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_12anon_union10_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_union10_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_union10_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.anon_union10.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_12anon_union10_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_anon_union10 *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12anon_union10_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_anon_union10 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__307) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.anon_union10.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12194 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._val_ptr = calloc(1, sizeof(ccudart.cudaEglFrame_st)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_15cudaEglFrame_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_15cudaEglFrame_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12194, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 12194, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12194, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 12194, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaEglFrame_st.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_15cudaEglFrame_st___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_15cudaEglFrame_st___cinit__(struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *__pyx_v_self, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; struct __pyx_t_4cuda_7ccudart_cudaEglFrame_st *__pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 12194, 0, __PYX_ERR(0, 12194, __pyx_L1_error)); /* "cuda/cudart.pyx":12195 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._val_ptr = calloc(1, sizeof(ccudart.cudaEglFrame_st)) * self._ptr = self._val_ptr */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":12196 * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: * self._val_ptr = calloc(1, sizeof(ccudart.cudaEglFrame_st)) # <<<<<<<<<<<<<< * self._ptr = self._val_ptr * else: */ __pyx_v_self->_val_ptr = ((struct __pyx_t_4cuda_7ccudart_cudaEglFrame_st *)calloc(1, (sizeof(struct __pyx_t_4cuda_7ccudart_cudaEglFrame_st)))); /* "cuda/cudart.pyx":12197 * if _ptr == 0: * self._val_ptr = calloc(1, sizeof(ccudart.cudaEglFrame_st)) * self._ptr = self._val_ptr # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_t_2 = __pyx_v_self->_val_ptr; __pyx_v_self->_ptr = __pyx_t_2; /* "cuda/cudart.pyx":12195 * """ * def __cinit__(self, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._val_ptr = calloc(1, sizeof(ccudart.cudaEglFrame_st)) * self._ptr = self._val_ptr */ goto __pyx_L3; } /* "cuda/cudart.pyx":12199 * self._ptr = self._val_ptr * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * def __init__(self, void_ptr _ptr = 0): * self._frame = anon_union10(_ptr=self._ptr) */ /*else*/ { __pyx_v_self->_ptr = ((struct __pyx_t_4cuda_7ccudart_cudaEglFrame_st *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":12194 * * """ * def __cinit__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._val_ptr = calloc(1, sizeof(ccudart.cudaEglFrame_st)) */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaEglFrame_st.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":12200 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._frame = anon_union10(_ptr=self._ptr) * def __dealloc__(self): */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_15cudaEglFrame_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_15cudaEglFrame_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12200, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 12200, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12200, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 12200, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaEglFrame_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_15cudaEglFrame_st_2__init__(((struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *)__pyx_v_self), __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_15cudaEglFrame_st_2__init__(struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations 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("__init__", 1); __Pyx_TraceCall("__init__", __pyx_f[0], 12200, 0, __PYX_ERR(0, 12200, __pyx_L1_error)); /* "cuda/cudart.pyx":12201 * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): * self._frame = anon_union10(_ptr=self._ptr) # <<<<<<<<<<<<<< * def __dealloc__(self): * if self._val_ptr is not NULL: */ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12201, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12201, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ptr, __pyx_t_2) < 0) __PYX_ERR(0, 12201, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_anon_union10), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12201, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF((PyObject *)__pyx_v_self->_frame); __Pyx_DECREF((PyObject *)__pyx_v_self->_frame); __pyx_v_self->_frame = ((struct __pyx_obj_4cuda_6cudart_anon_union10 *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":12200 * else: * self._ptr = _ptr * def __init__(self, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * self._frame = anon_union10(_ptr=self._ptr) * def __dealloc__(self): */ /* 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.cudart.cudaEglFrame_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12202 * def __init__(self, void_ptr _ptr = 0): * self._frame = anon_union10(_ptr=self._ptr) * def __dealloc__(self): # <<<<<<<<<<<<<< * if self._val_ptr is not NULL: * free(self._val_ptr) */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_15cudaEglFrame_st_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_15cudaEglFrame_st_4__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_15cudaEglFrame_st_4__dealloc__(struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 12202, 0, __PYX_ERR(0, 12202, __pyx_L1_error)); /* "cuda/cudart.pyx":12203 * self._frame = anon_union10(_ptr=self._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/cudart.pyx":12204 * def __dealloc__(self): * if self._val_ptr is not NULL: * free(self._val_ptr) # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ free(__pyx_v_self->_val_ptr); /* "cuda/cudart.pyx":12203 * self._frame = anon_union10(_ptr=self._ptr) * def __dealloc__(self): * if self._val_ptr is not NULL: # <<<<<<<<<<<<<< * free(self._val_ptr) * def getPtr(self): */ } /* "cuda/cudart.pyx":12202 * def __init__(self, void_ptr _ptr = 0): * self._frame = anon_union10(_ptr=self._ptr) * def __dealloc__(self): # <<<<<<<<<<<<<< * if self._val_ptr is not NULL: * free(self._val_ptr) */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaEglFrame_st.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":12205 * if self._val_ptr is not NULL: * free(self._val_ptr) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_15cudaEglFrame_st_6getPtr, "cudaEglFrame_st.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_15cudaEglFrame_st_7getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_15cudaEglFrame_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_15cudaEglFrame_st_6getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_15cudaEglFrame_st_6getPtr(((struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_15cudaEglFrame_st_6getPtr(struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__308) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 12205, 0, __PYX_ERR(0, 12205, __pyx_L1_error)); /* "cuda/cudart.pyx":12206 * free(self._val_ptr) * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * def __repr__(self): * if self._ptr is not NULL: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12206, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12205 * if self._val_ptr is not NULL: * free(self._val_ptr) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaEglFrame_st.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12207 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._ptr is not NULL: * str_list = [] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_15cudaEglFrame_st_9__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_15cudaEglFrame_st_8__repr__(((struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_15cudaEglFrame_st_8__repr__(struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *__pyx_v_self) { PyObject *__pyx_v_str_list = NULL; PyObject *__pyx_9genexpr95__pyx_v_line = NULL; PyObject *__pyx_9genexpr96__pyx_v_line = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 12207, 0, __PYX_ERR(0, 12207, __pyx_L1_error)); /* "cuda/cudart.pyx":12208 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ __pyx_t_1 = (__pyx_v_self->_ptr != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":12209 * def __repr__(self): * if self._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, 12209, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_str_list = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":12210 * if self._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/cudart.pyx":12211 * str_list = [] * try: * str_list += ['frame :\n' + '\n'.join([' ' + line for line in str(self.frame).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['frame : '] */ { /* enter inner scope */ __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12211, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_frame_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12211, __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, 12211, __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, 12211, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 12211, __pyx_L12_error) #endif if (__pyx_t_8 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_6 = PyList_GET_ITEM(__pyx_t_7, __pyx_t_8); __Pyx_INCREF(__pyx_t_6); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(0, 12211, __pyx_L12_error) #else __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12211, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); #endif __Pyx_XDECREF_SET(__pyx_9genexpr95__pyx_v_line, __pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr95__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12211, __pyx_L12_error) __Pyx_GOTREF(__pyx_t_6); if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 12211, __pyx_L12_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_9genexpr95__pyx_v_line); __pyx_9genexpr95__pyx_v_line = 0; goto __pyx_L16_exit_scope; __pyx_L12_error:; __Pyx_XDECREF(__pyx_9genexpr95__pyx_v_line); __pyx_9genexpr95__pyx_v_line = 0; goto __pyx_L4_error; __pyx_L16_exit_scope:; } /* exit inner scope */ __pyx_t_7 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12211, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_kp_u_frame, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12211, __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, 12211, __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)) __PYX_ERR(0, 12211, __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, 12211, __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/cudart.pyx":12210 * if self._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/cudart.pyx":12212 * try: * str_list += ['frame :\n' + '\n'.join([' ' + line for line in str(self.frame).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['frame : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.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, 12212, __pyx_L6_except_error) __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":12213 * str_list += ['frame :\n' + '\n'.join([' ' + line for line in str(self.frame).splitlines()])] * except ValueError: * str_list += ['frame : '] # <<<<<<<<<<<<<< * 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, 12213, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_frame_ValueError); __Pyx_GIVEREF(__pyx_kp_u_frame_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_frame_ValueError)) __PYX_ERR(0, 12213, __pyx_L6_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 12213, __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/cudart.pyx":12210 * if self._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/cudart.pyx":12214 * except ValueError: * str_list += ['frame : '] * 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/cudart.pyx":12215 * str_list += ['frame : '] * try: * str_list += ['planeDesc :\n' + '\n'.join([' ' + line for line in str(self.planeDesc).splitlines()])] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['planeDesc : '] */ { /* enter inner scope */ __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12215, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_planeDesc_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12215, __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, 12215, __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, 12215, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 12215, __pyx_L27_error) #endif if (__pyx_t_8 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_7 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_8); __Pyx_INCREF(__pyx_t_7); __pyx_t_8++; if (unlikely((0 < 0))) __PYX_ERR(0, 12215, __pyx_L27_error) #else __pyx_t_7 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12215, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_7); #endif __Pyx_XDECREF_SET(__pyx_9genexpr96__pyx_v_line, __pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = PyNumber_Add(__pyx_kp_u__62, __pyx_9genexpr96__pyx_v_line); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12215, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_7); if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_7))) __PYX_ERR(0, 12215, __pyx_L27_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 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_L31_exit_scope; __pyx_L27_error:; __Pyx_XDECREF(__pyx_9genexpr96__pyx_v_line); __pyx_9genexpr96__pyx_v_line = 0; goto __pyx_L19_error; __pyx_L31_exit_scope:; } /* exit inner scope */ __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__51, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12215, __pyx_L19_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_planeDesc, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12215, __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, 12215, __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)) __PYX_ERR(0, 12215, __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, 12215, __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/cudart.pyx":12214 * except ValueError: * str_list += ['frame : '] * 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/cudart.pyx":12216 * try: * str_list += ['planeDesc :\n' + '\n'.join([' ' + line for line in str(self.planeDesc).splitlines()])] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['planeDesc : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.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, 12216, __pyx_L21_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":12217 * str_list += ['planeDesc :\n' + '\n'.join([' ' + line for line in str(self.planeDesc).splitlines()])] * except ValueError: * str_list += ['planeDesc : '] # <<<<<<<<<<<<<< * try: * str_list += ['planeCount : ' + str(self.planeCount)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 12217, __pyx_L21_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_planeDesc_ValueError); __Pyx_GIVEREF(__pyx_kp_u_planeDesc_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_planeDesc_ValueError)) __PYX_ERR(0, 12217, __pyx_L21_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12217, __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/cudart.pyx":12214 * except ValueError: * str_list += ['frame : '] * 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/cudart.pyx":12218 * except ValueError: * str_list += ['planeDesc : '] * 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/cudart.pyx":12219 * str_list += ['planeDesc : '] * try: * str_list += ['planeCount : ' + str(self.planeCount)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['planeCount : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_planeCount_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12219, __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, 12219, __pyx_L34_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_planeCount, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12219, __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, 12219, __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)) __PYX_ERR(0, 12219, __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, 12219, __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/cudart.pyx":12218 * except ValueError: * str_list += ['planeDesc : '] * 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/cudart.pyx":12220 * try: * str_list += ['planeCount : ' + str(self.planeCount)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['planeCount : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.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, 12220, __pyx_L36_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":12221 * str_list += ['planeCount : ' + str(self.planeCount)] * except ValueError: * str_list += ['planeCount : '] # <<<<<<<<<<<<<< * try: * str_list += ['frameType : ' + str(self.frameType)] */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12221, __pyx_L36_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_planeCount_ValueError); __Pyx_GIVEREF(__pyx_kp_u_planeCount_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_planeCount_ValueError)) __PYX_ERR(0, 12221, __pyx_L36_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 12221, __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/cudart.pyx":12218 * except ValueError: * str_list += ['planeDesc : '] * 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/cudart.pyx":12222 * except ValueError: * str_list += ['planeCount : '] * 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/cudart.pyx":12223 * str_list += ['planeCount : '] * try: * str_list += ['frameType : ' + str(self.frameType)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['frameType : '] */ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_frameType_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12223, __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, 12223, __pyx_L42_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_frameType, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12223, __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, 12223, __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)) __PYX_ERR(0, 12223, __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, 12223, __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/cudart.pyx":12222 * except ValueError: * str_list += ['planeCount : '] * 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/cudart.pyx":12224 * try: * str_list += ['frameType : ' + str(self.frameType)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['frameType : '] * try: */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.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, 12224, __pyx_L44_except_error) __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_7); /* "cuda/cudart.pyx":12225 * str_list += ['frameType : ' + str(self.frameType)] * except ValueError: * str_list += ['frameType : '] # <<<<<<<<<<<<<< * try: * str_list += ['eglColorFormat : ' + str(self.eglColorFormat)] */ __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 12225, __pyx_L44_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_INCREF(__pyx_kp_u_frameType_ValueError); __Pyx_GIVEREF(__pyx_kp_u_frameType_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_kp_u_frameType_ValueError)) __PYX_ERR(0, 12225, __pyx_L44_except_error); __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12225, __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/cudart.pyx":12222 * except ValueError: * str_list += ['planeCount : '] * 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/cudart.pyx":12226 * except ValueError: * str_list += ['frameType : '] * 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/cudart.pyx":12227 * str_list += ['frameType : '] * try: * str_list += ['eglColorFormat : ' + str(self.eglColorFormat)] # <<<<<<<<<<<<<< * except ValueError: * str_list += ['eglColorFormat : '] */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_eglColorFormat_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12227, __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, 12227, __pyx_L50_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_eglColorFormat, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12227, __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, 12227, __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)) __PYX_ERR(0, 12227, __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, 12227, __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/cudart.pyx":12226 * except ValueError: * str_list += ['frameType : '] * 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/cudart.pyx":12228 * try: * str_list += ['eglColorFormat : ' + str(self.eglColorFormat)] * except ValueError: # <<<<<<<<<<<<<< * str_list += ['eglColorFormat : '] * return '\n'.join(str_list) */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_AddTraceback("cuda.cudart.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, 12228, __pyx_L52_except_error) __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_6); /* "cuda/cudart.pyx":12229 * str_list += ['eglColorFormat : ' + str(self.eglColorFormat)] * except ValueError: * str_list += ['eglColorFormat : '] # <<<<<<<<<<<<<< * return '\n'.join(str_list) * else: */ __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12229, __pyx_L52_except_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_INCREF(__pyx_kp_u_eglColorFormat_ValueError); __Pyx_GIVEREF(__pyx_kp_u_eglColorFormat_ValueError); if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_eglColorFormat_ValueError)) __PYX_ERR(0, 12229, __pyx_L52_except_error); __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 12229, __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/cudart.pyx":12226 * except ValueError: * str_list += ['frameType : '] * 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/cudart.pyx":12230 * except ValueError: * str_list += ['eglColorFormat : '] * return '\n'.join(str_list) # <<<<<<<<<<<<<< * else: * return '' */ __Pyx_XDECREF(__pyx_r); __pyx_t_6 = PyUnicode_Join(__pyx_kp_u__51, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12230, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12208 * return self._ptr * def __repr__(self): * if self._ptr is not NULL: # <<<<<<<<<<<<<< * str_list = [] * try: */ } /* "cuda/cudart.pyx":12232 * return '\n'.join(str_list) * else: * return '' # <<<<<<<<<<<<<< * @property * def frame(self): */ /*else*/ { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_kp_u__52); __pyx_r = __pyx_kp_u__52; goto __pyx_L0; } /* "cuda/cudart.pyx":12207 * def getPtr(self): * return self._ptr * def __repr__(self): # <<<<<<<<<<<<<< * if self._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.cudart.cudaEglFrame_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_str_list); __Pyx_XDECREF(__pyx_9genexpr95__pyx_v_line); __Pyx_XDECREF(__pyx_9genexpr96__pyx_v_line); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12233 * else: * return '' * @property # <<<<<<<<<<<<<< * def frame(self): * return self._frame */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_15cudaEglFrame_st_5frame_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_15cudaEglFrame_st_5frame___get__(((struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_15cudaEglFrame_st_5frame___get__(struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 12233, 0, __PYX_ERR(0, 12233, __pyx_L1_error)); /* "cuda/cudart.pyx":12235 * @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/cudart.pyx":12233 * else: * return '' * @property # <<<<<<<<<<<<<< * def frame(self): * return self._frame */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaEglFrame_st.frame.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12236 * def frame(self): * return self._frame * @frame.setter # <<<<<<<<<<<<<< * def frame(self, frame not None : anon_union10): * string.memcpy(&self._ptr[0].frame, frame.getPtr(), sizeof(self._ptr[0].frame)) */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_15cudaEglFrame_st_5frame_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_frame); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_ptype_4cuda_6cudart_anon_union10, 0, "frame", 0))) __PYX_ERR(0, 12237, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_15cudaEglFrame_st_5frame_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *)__pyx_v_self), ((struct __pyx_obj_4cuda_6cudart_anon_union10 *)__pyx_v_frame)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_15cudaEglFrame_st_5frame_2__set__(struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *__pyx_v_self, struct __pyx_obj_4cuda_6cudart_anon_union10 *__pyx_v_frame) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 12236, 0, __PYX_ERR(0, 12236, __pyx_L1_error)); /* "cuda/cudart.pyx":12238 * @frame.setter * def frame(self, frame not None : anon_union10): * string.memcpy(&self._ptr[0].frame, frame.getPtr(), sizeof(self._ptr[0].frame)) # <<<<<<<<<<<<<< * @property * def planeDesc(self): */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_frame), __pyx_n_s_getPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12238, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12238, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12238, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy((&(__pyx_v_self->_ptr[0]).frame), ((union __pyx_t_4cuda_7ccudart_anon_union10 *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)), (sizeof((__pyx_v_self->_ptr[0]).frame)))); /* "cuda/cudart.pyx":12236 * def frame(self): * return self._frame * @frame.setter # <<<<<<<<<<<<<< * def frame(self, frame not None : anon_union10): * string.memcpy(&self._ptr[0].frame, frame.getPtr(), sizeof(self._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_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaEglFrame_st.frame.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12239 * def frame(self, frame not None : anon_union10): * string.memcpy(&self._ptr[0].frame, frame.getPtr(), sizeof(self._ptr[0].frame)) * @property # <<<<<<<<<<<<<< * def planeDesc(self): * out_planeDesc = [cudaEglPlaneDesc() for _planeDesc in self._ptr[0].planeDesc] */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_15cudaEglFrame_st_9planeDesc_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_15cudaEglFrame_st_9planeDesc___get__(((struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_15cudaEglFrame_st_9planeDesc___get__(struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *__pyx_v_self) { PyObject *__pyx_v_out_planeDesc = NULL; Py_ssize_t __pyx_v__idx; CYTHON_UNUSED __pyx_t_4cuda_7ccudart_cudaEglPlaneDesc __pyx_9genexpr97__pyx_v__planeDesc; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_7ccudart_cudaEglPlaneDesc *__pyx_t_2; __pyx_t_4cuda_7ccudart_cudaEglPlaneDesc *__pyx_t_3; __pyx_t_4cuda_7ccudart_cudaEglPlaneDesc *__pyx_t_4; PyObject *__pyx_t_5 = NULL; Py_ssize_t __pyx_t_6; Py_ssize_t __pyx_t_7; Py_ssize_t __pyx_t_8; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_11; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 12239, 0, __PYX_ERR(0, 12239, __pyx_L1_error)); /* "cuda/cudart.pyx":12241 * @property * def planeDesc(self): * out_planeDesc = [cudaEglPlaneDesc() for _planeDesc in self._ptr[0].planeDesc] # <<<<<<<<<<<<<< * for _idx in range(len(out_planeDesc)): * string.memcpy(out_planeDesc[_idx].getPtr(), &self._ptr[0].planeDesc[_idx], sizeof(ccudart.cudaEglPlaneDesc)) */ { /* enter inner scope */ __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12241, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = ((__pyx_v_self->_ptr[0]).planeDesc + 3); for (__pyx_t_4 = (__pyx_v_self->_ptr[0]).planeDesc; __pyx_t_4 < __pyx_t_3; __pyx_t_4++) { __pyx_t_2 = __pyx_t_4; __pyx_9genexpr97__pyx_v__planeDesc = (__pyx_t_2[0]); __pyx_t_5 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEglPlaneDesc)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12241, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 12241, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } /* exit inner scope */ __pyx_v_out_planeDesc = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":12242 * def planeDesc(self): * out_planeDesc = [cudaEglPlaneDesc() for _planeDesc in self._ptr[0].planeDesc] * for _idx in range(len(out_planeDesc)): # <<<<<<<<<<<<<< * string.memcpy(out_planeDesc[_idx].getPtr(), &self._ptr[0].planeDesc[_idx], sizeof(ccudart.cudaEglPlaneDesc)) * return out_planeDesc */ __pyx_t_6 = __Pyx_PyList_GET_SIZE(__pyx_v_out_planeDesc); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12242, __pyx_L1_error) __pyx_t_7 = __pyx_t_6; for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) { __pyx_v__idx = __pyx_t_8; /* "cuda/cudart.pyx":12243 * out_planeDesc = [cudaEglPlaneDesc() for _planeDesc in self._ptr[0].planeDesc] * for _idx in range(len(out_planeDesc)): * string.memcpy(out_planeDesc[_idx].getPtr(), &self._ptr[0].planeDesc[_idx], sizeof(ccudart.cudaEglPlaneDesc)) # <<<<<<<<<<<<<< * return out_planeDesc * @planeDesc.setter */ __pyx_t_5 = __Pyx_GetItemInt_List(__pyx_v_out_planeDesc, __pyx_v__idx, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12243, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_getPtr); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12243, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_9))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_9, __pyx_callargs+1-__pyx_t_10, 0+__pyx_t_10); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12243, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __pyx_t_11 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_11 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12243, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (void)(memcpy(((__pyx_t_4cuda_7ccudart_cudaEglPlaneDesc *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_11)), (&((__pyx_v_self->_ptr[0]).planeDesc[__pyx_v__idx])), (sizeof(__pyx_t_4cuda_7ccudart_cudaEglPlaneDesc)))); } /* "cuda/cudart.pyx":12244 * for _idx in range(len(out_planeDesc)): * string.memcpy(out_planeDesc[_idx].getPtr(), &self._ptr[0].planeDesc[_idx], sizeof(ccudart.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/cudart.pyx":12239 * def frame(self, frame not None : anon_union10): * string.memcpy(&self._ptr[0].frame, frame.getPtr(), sizeof(self._ptr[0].frame)) * @property # <<<<<<<<<<<<<< * def planeDesc(self): * out_planeDesc = [cudaEglPlaneDesc() for _planeDesc in self._ptr[0].planeDesc] */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12245 * string.memcpy(out_planeDesc[_idx].getPtr(), &self._ptr[0].planeDesc[_idx], sizeof(ccudart.cudaEglPlaneDesc)) * return out_planeDesc * @planeDesc.setter # <<<<<<<<<<<<<< * def planeDesc(self, planeDesc : List[cudaEglPlaneDesc]): * if len(planeDesc) != 3: */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_15cudaEglFrame_st_9planeDesc_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_planeDesc); /*proto*/ static int __pyx_pw_4cuda_6cudart_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", 1))) __PYX_ERR(0, 12246, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_15cudaEglFrame_st_9planeDesc_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *)__pyx_v_self), ((PyObject*)__pyx_v_planeDesc)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_15cudaEglFrame_st_9planeDesc_2__set__(struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *__pyx_v_self, PyObject *__pyx_v_planeDesc) { Py_ssize_t __pyx_v__idx; int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations Py_ssize_t __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; Py_ssize_t __pyx_t_5; Py_ssize_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 12245, 0, __PYX_ERR(0, 12245, __pyx_L1_error)); /* "cuda/cudart.pyx":12247 * @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, 12247, __pyx_L1_error) __pyx_t_2 = (__pyx_t_1 != 3); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":12248 * 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._ptr[0].planeDesc[_idx], planeDesc[_idx].getPtr(), sizeof(ccudart.cudaEglPlaneDesc)) */ __pyx_t_1 = __Pyx_PyList_GET_SIZE(__pyx_v_planeDesc); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12248, __pyx_L1_error) __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12248, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12248, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_INCREF(__pyx_kp_u_not_enough_values_found_during_a); __Pyx_GIVEREF(__pyx_kp_u_not_enough_values_found_during_a); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_kp_u_not_enough_values_found_during_a)) __PYX_ERR(0, 12248, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3)) __PYX_ERR(0, 12248, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_IndexError, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12248, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 12248, __pyx_L1_error) /* "cuda/cudart.pyx":12247 * @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/cudart.pyx":12249 * 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._ptr[0].planeDesc[_idx], planeDesc[_idx].getPtr(), sizeof(ccudart.cudaEglPlaneDesc)) * */ __pyx_t_1 = __Pyx_PyList_GET_SIZE(__pyx_v_planeDesc); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12249, __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/cudart.pyx":12250 * raise IndexError('not enough values found during array assignment, expected 3, got', len(planeDesc)) * for _idx in range(len(planeDesc)): * string.memcpy(&self._ptr[0].planeDesc[_idx], planeDesc[_idx].getPtr(), sizeof(ccudart.cudaEglPlaneDesc)) # <<<<<<<<<<<<<< * * @property */ __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_planeDesc, __pyx_v__idx, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_getPtr); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_8, 0+__pyx_t_8); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __pyx_t_9 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_3); if (unlikely((__pyx_t_9 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12250, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; (void)(memcpy((&((__pyx_v_self->_ptr[0]).planeDesc[__pyx_v__idx])), ((__pyx_t_4cuda_7ccudart_cudaEglPlaneDesc *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_9)), (sizeof(__pyx_t_4cuda_7ccudart_cudaEglPlaneDesc)))); } /* "cuda/cudart.pyx":12245 * string.memcpy(out_planeDesc[_idx].getPtr(), &self._ptr[0].planeDesc[_idx], sizeof(ccudart.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_7); __Pyx_AddTraceback("cuda.cudart.cudaEglFrame_st.planeDesc.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12252 * string.memcpy(&self._ptr[0].planeDesc[_idx], planeDesc[_idx].getPtr(), sizeof(ccudart.cudaEglPlaneDesc)) * * @property # <<<<<<<<<<<<<< * def planeCount(self): * return self._ptr[0].planeCount */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_15cudaEglFrame_st_10planeCount_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_15cudaEglFrame_st_10planeCount___get__(((struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_15cudaEglFrame_st_10planeCount___get__(struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 12252, 0, __PYX_ERR(0, 12252, __pyx_L1_error)); /* "cuda/cudart.pyx":12254 * @property * def planeCount(self): * return self._ptr[0].planeCount # <<<<<<<<<<<<<< * @planeCount.setter * def planeCount(self, unsigned int planeCount): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_self->_ptr[0]).planeCount); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12254, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12252 * string.memcpy(&self._ptr[0].planeDesc[_idx], planeDesc[_idx].getPtr(), sizeof(ccudart.cudaEglPlaneDesc)) * * @property # <<<<<<<<<<<<<< * def planeCount(self): * return self._ptr[0].planeCount */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaEglFrame_st.planeCount.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12255 * def planeCount(self): * return self._ptr[0].planeCount * @planeCount.setter # <<<<<<<<<<<<<< * def planeCount(self, unsigned int planeCount): * self._ptr[0].planeCount = planeCount */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_15cudaEglFrame_st_10planeCount_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_planeCount); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_PyInt_As_unsigned_int(__pyx_arg_planeCount); if (unlikely((__pyx_v_planeCount == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 12256, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("cuda.cudart.cudaEglFrame_st.planeCount.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_15cudaEglFrame_st_10planeCount_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *)__pyx_v_self), ((unsigned int)__pyx_v_planeCount)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_15cudaEglFrame_st_10planeCount_2__set__(struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *__pyx_v_self, unsigned int __pyx_v_planeCount) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__set__", __pyx_f[0], 12255, 0, __PYX_ERR(0, 12255, __pyx_L1_error)); /* "cuda/cudart.pyx":12257 * @planeCount.setter * def planeCount(self, unsigned int planeCount): * self._ptr[0].planeCount = planeCount # <<<<<<<<<<<<<< * @property * def frameType(self): */ (__pyx_v_self->_ptr[0]).planeCount = __pyx_v_planeCount; /* "cuda/cudart.pyx":12255 * def planeCount(self): * return self._ptr[0].planeCount * @planeCount.setter # <<<<<<<<<<<<<< * def planeCount(self, unsigned int planeCount): * self._ptr[0].planeCount = planeCount */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaEglFrame_st.planeCount.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":12258 * def planeCount(self, unsigned int planeCount): * self._ptr[0].planeCount = planeCount * @property # <<<<<<<<<<<<<< * def frameType(self): * return cudaEglFrameType(self._ptr[0].frameType) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_15cudaEglFrame_st_9frameType_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_15cudaEglFrame_st_9frameType___get__(((struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_15cudaEglFrame_st_9frameType___get__(struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 12258, 0, __PYX_ERR(0, 12258, __pyx_L1_error)); /* "cuda/cudart.pyx":12260 * @property * def frameType(self): * return cudaEglFrameType(self._ptr[0].frameType) # <<<<<<<<<<<<<< * @frameType.setter * def frameType(self, frameType not None : cudaEglFrameType): */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaEglFrameType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12260, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglFrameType_enum((__pyx_v_self->_ptr[0]).frameType); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12260, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12260, __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/cudart.pyx":12258 * def planeCount(self, unsigned int planeCount): * self._ptr[0].planeCount = planeCount * @property # <<<<<<<<<<<<<< * def frameType(self): * return cudaEglFrameType(self._ptr[0].frameType) */ /* 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.cudart.cudaEglFrame_st.frameType.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12261 * def frameType(self): * return cudaEglFrameType(self._ptr[0].frameType) * @frameType.setter # <<<<<<<<<<<<<< * def frameType(self, frameType not None : cudaEglFrameType): * self._ptr[0].frameType = frameType.value */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_15cudaEglFrame_st_9frameType_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_frameType); /*proto*/ static int __pyx_pw_4cuda_6cudart_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, 12262, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_15cudaEglFrame_st_9frameType_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *)__pyx_v_self), ((PyObject *)__pyx_v_frameType)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_15cudaEglFrame_st_9frameType_2__set__(struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *__pyx_v_self, PyObject *__pyx_v_frameType) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_7ccudart_cudaEglFrameType __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 12261, 0, __PYX_ERR(0, 12261, __pyx_L1_error)); /* "cuda/cudart.pyx":12263 * @frameType.setter * def frameType(self, frameType not None : cudaEglFrameType): * self._ptr[0].frameType = frameType.value # <<<<<<<<<<<<<< * @property * def eglColorFormat(self): */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_frameType, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12263, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum)__Pyx_PyInt_As_enum____pyx_t_4cuda_7ccudart_cudaEglFrameType_enum(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12263, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).frameType = __pyx_t_2; /* "cuda/cudart.pyx":12261 * def frameType(self): * return cudaEglFrameType(self._ptr[0].frameType) * @frameType.setter # <<<<<<<<<<<<<< * def frameType(self, frameType not None : cudaEglFrameType): * self._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.cudart.cudaEglFrame_st.frameType.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12264 * def frameType(self, frameType not None : cudaEglFrameType): * self._ptr[0].frameType = frameType.value * @property # <<<<<<<<<<<<<< * def eglColorFormat(self): * return cudaEglColorFormat(self._ptr[0].eglColorFormat) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_15cudaEglFrame_st_14eglColorFormat_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_15cudaEglFrame_st_14eglColorFormat___get__(((struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_15cudaEglFrame_st_14eglColorFormat___get__(struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 1); __Pyx_TraceCall("__get__", __pyx_f[0], 12264, 0, __PYX_ERR(0, 12264, __pyx_L1_error)); /* "cuda/cudart.pyx":12266 * @property * def eglColorFormat(self): * return cudaEglColorFormat(self._ptr[0].eglColorFormat) # <<<<<<<<<<<<<< * @eglColorFormat.setter * def eglColorFormat(self, eglColorFormat not None : cudaEglColorFormat): */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaEglColorFormat); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum((__pyx_v_self->_ptr[0]).eglColorFormat); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12266, __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/cudart.pyx":12264 * def frameType(self, frameType not None : cudaEglFrameType): * self._ptr[0].frameType = frameType.value * @property # <<<<<<<<<<<<<< * def eglColorFormat(self): * return cudaEglColorFormat(self._ptr[0].eglColorFormat) */ /* 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.cudart.cudaEglFrame_st.eglColorFormat.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12267 * def eglColorFormat(self): * return cudaEglColorFormat(self._ptr[0].eglColorFormat) * @eglColorFormat.setter # <<<<<<<<<<<<<< * def eglColorFormat(self, eglColorFormat not None : cudaEglColorFormat): * self._ptr[0].eglColorFormat = eglColorFormat.value */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_15cudaEglFrame_st_14eglColorFormat_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_eglColorFormat); /*proto*/ static int __pyx_pw_4cuda_6cudart_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, 12268, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_15cudaEglFrame_st_14eglColorFormat_2__set__(((struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *)__pyx_v_self), ((PyObject *)__pyx_v_eglColorFormat)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_15cudaEglFrame_st_14eglColorFormat_2__set__(struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *__pyx_v_self, PyObject *__pyx_v_eglColorFormat) { int __pyx_r; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_7ccudart_cudaEglColorFormat __pyx_t_2; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 1); __Pyx_TraceCall("__set__", __pyx_f[0], 12267, 0, __PYX_ERR(0, 12267, __pyx_L1_error)); /* "cuda/cudart.pyx":12269 * @eglColorFormat.setter * def eglColorFormat(self, eglColorFormat not None : cudaEglColorFormat): * self._ptr[0].eglColorFormat = eglColorFormat.value # <<<<<<<<<<<<<< * * cdef class cudaGraphConditionalHandle: */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_eglColorFormat, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum)__Pyx_PyInt_As_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12269, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; (__pyx_v_self->_ptr[0]).eglColorFormat = __pyx_t_2; /* "cuda/cudart.pyx":12267 * def eglColorFormat(self): * return cudaEglColorFormat(self._ptr[0].eglColorFormat) * @eglColorFormat.setter # <<<<<<<<<<<<<< * def eglColorFormat(self, eglColorFormat not None : cudaEglColorFormat): * self._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.cudart.cudaEglFrame_st.eglColorFormat.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); __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_6cudart_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_6cudart_15cudaEglFrame_st_10__reduce_cython__, "cudaEglFrame_st.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_15cudaEglFrame_st_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_15cudaEglFrame_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_15cudaEglFrame_st_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_15cudaEglFrame_st_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_15cudaEglFrame_st_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__309) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaEglFrame_st.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_15cudaEglFrame_st_12__setstate_cython__, "cudaEglFrame_st.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_15cudaEglFrame_st_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_15cudaEglFrame_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_15cudaEglFrame_st_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaEglFrame_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_15cudaEglFrame_st_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_15cudaEglFrame_st_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__310) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaEglFrame_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12282 * * """ * def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_26cudaGraphConditionalHandle_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_26cudaGraphConditionalHandle_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { unsigned PY_LONG_LONG __pyx_v_init_value; __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_init_value,&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_init_value); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12282, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[1] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12282, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 12282, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_init_value = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12282, __pyx_L3_error) } else { __pyx_v_init_value = ((unsigned PY_LONG_LONG)0); } if (values[1]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12282, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 12282, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphConditionalHandle.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_26cudaGraphConditionalHandle___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaGraphConditionalHandle *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_26cudaGraphConditionalHandle___cinit__(struct __pyx_obj_4cuda_6cudart_cudaGraphConditionalHandle *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_init_value, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 12282, 0, __PYX_ERR(0, 12282, __pyx_L1_error)); /* "cuda/cudart.pyx":12283 * """ * def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":12284 * def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaGraphConditionalHandle__val); /* "cuda/cudart.pyx":12283 * """ * def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":12286 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * if init_value: * self._ptr[0] = init_value */ /*else*/ { __pyx_v_self->_ptr = ((cudaGraphConditionalHandle *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":12287 * else: * self._ptr = _ptr * if init_value: # <<<<<<<<<<<<<< * self._ptr[0] = init_value * def __dealloc__(self): */ __pyx_t_1 = (__pyx_v_init_value != 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":12288 * self._ptr = _ptr * if init_value: * self._ptr[0] = init_value # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ (__pyx_v_self->_ptr[0]) = __pyx_v_init_value; /* "cuda/cudart.pyx":12287 * else: * self._ptr = _ptr * if init_value: # <<<<<<<<<<<<<< * self._ptr[0] = init_value * def __dealloc__(self): */ } /* "cuda/cudart.pyx":12282 * * """ * def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphConditionalHandle.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":12289 * if init_value: * self._ptr[0] = init_value * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def __repr__(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_26cudaGraphConditionalHandle_3__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_26cudaGraphConditionalHandle_2__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaGraphConditionalHandle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_26cudaGraphConditionalHandle_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaGraphConditionalHandle *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 12289, 0, __PYX_ERR(0, 12289, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaGraphConditionalHandle.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":12291 * def __dealloc__(self): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __int__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_26cudaGraphConditionalHandle_5__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_26cudaGraphConditionalHandle_4__repr__(((struct __pyx_obj_4cuda_6cudart_cudaGraphConditionalHandle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_26cudaGraphConditionalHandle_4__repr__(struct __pyx_obj_4cuda_6cudart_cudaGraphConditionalHandle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 12291, 0, __PYX_ERR(0, 12291, __pyx_L1_error)); /* "cuda/cudart.pyx":12292 * pass * def __repr__(self): * return '' # <<<<<<<<<<<<<< * def __int__(self): * return self._ptr[0] */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12292, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12292, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12292, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_kp_u_cudaGraphConditionalHandle, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12292, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_kp_u_); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12292, __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/cudart.pyx":12291 * def __dealloc__(self): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __int__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaGraphConditionalHandle.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12293 * def __repr__(self): * return '' * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_26cudaGraphConditionalHandle_7__int__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_26cudaGraphConditionalHandle_6__int__(((struct __pyx_obj_4cuda_6cudart_cudaGraphConditionalHandle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_26cudaGraphConditionalHandle_6__int__(struct __pyx_obj_4cuda_6cudart_cudaGraphConditionalHandle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__int__", 1); __Pyx_TraceCall("__int__", __pyx_f[0], 12293, 0, __PYX_ERR(0, 12293, __pyx_L1_error)); /* "cuda/cudart.pyx":12294 * return '' * def __int__(self): * return self._ptr[0] # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((unsigned PY_LONG_LONG)(__pyx_v_self->_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12294, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12293 * def __repr__(self): * return '' * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaGraphConditionalHandle.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12295 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_26cudaGraphConditionalHandle_8getPtr, "cudaGraphConditionalHandle.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_26cudaGraphConditionalHandle_9getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_26cudaGraphConditionalHandle_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_26cudaGraphConditionalHandle_8getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_26cudaGraphConditionalHandle_8getPtr(((struct __pyx_obj_4cuda_6cudart_cudaGraphConditionalHandle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_26cudaGraphConditionalHandle_8getPtr(struct __pyx_obj_4cuda_6cudart_cudaGraphConditionalHandle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__311) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 12295, 0, __PYX_ERR(0, 12295, __pyx_L1_error)); /* "cuda/cudart.pyx":12296 * return self._ptr[0] * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * * cdef class cudaSurfaceObject_t: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12296, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12295 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaGraphConditionalHandle.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_26cudaGraphConditionalHandle_10__reduce_cython__, "cudaGraphConditionalHandle.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_26cudaGraphConditionalHandle_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_26cudaGraphConditionalHandle_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_26cudaGraphConditionalHandle_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_26cudaGraphConditionalHandle_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaGraphConditionalHandle *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_26cudaGraphConditionalHandle_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaGraphConditionalHandle *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__312) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaGraphConditionalHandle.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_26cudaGraphConditionalHandle_12__setstate_cython__, "cudaGraphConditionalHandle.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_26cudaGraphConditionalHandle_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_26cudaGraphConditionalHandle_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_26cudaGraphConditionalHandle_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphConditionalHandle.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_26cudaGraphConditionalHandle_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaGraphConditionalHandle *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_26cudaGraphConditionalHandle_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaGraphConditionalHandle *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__313) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaGraphConditionalHandle.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12309 * * """ * def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_19cudaSurfaceObject_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_init_value,&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_init_value); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12309, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[1] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12309, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 12309, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_init_value = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12309, __pyx_L3_error) } else { __pyx_v_init_value = ((unsigned PY_LONG_LONG)0); } if (values[1]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12309, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 12309, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaSurfaceObject_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_19cudaSurfaceObject_t___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaSurfaceObject_t *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_19cudaSurfaceObject_t___cinit__(struct __pyx_obj_4cuda_6cudart_cudaSurfaceObject_t *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_init_value, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 12309, 0, __PYX_ERR(0, 12309, __pyx_L1_error)); /* "cuda/cudart.pyx":12310 * """ * def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":12311 * def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaSurfaceObject_t__val); /* "cuda/cudart.pyx":12310 * """ * def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":12313 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * if init_value: * self._ptr[0] = init_value */ /*else*/ { __pyx_v_self->_ptr = ((cudaSurfaceObject_t *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":12314 * else: * self._ptr = _ptr * if init_value: # <<<<<<<<<<<<<< * self._ptr[0] = init_value * def __dealloc__(self): */ __pyx_t_1 = (__pyx_v_init_value != 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":12315 * self._ptr = _ptr * if init_value: * self._ptr[0] = init_value # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ (__pyx_v_self->_ptr[0]) = __pyx_v_init_value; /* "cuda/cudart.pyx":12314 * else: * self._ptr = _ptr * if init_value: # <<<<<<<<<<<<<< * self._ptr[0] = init_value * def __dealloc__(self): */ } /* "cuda/cudart.pyx":12309 * * """ * def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaSurfaceObject_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":12316 * if init_value: * self._ptr[0] = init_value * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def __repr__(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_19cudaSurfaceObject_t_3__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_19cudaSurfaceObject_t_2__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaSurfaceObject_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_19cudaSurfaceObject_t_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaSurfaceObject_t *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 12316, 0, __PYX_ERR(0, 12316, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaSurfaceObject_t.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":12318 * def __dealloc__(self): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __int__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_19cudaSurfaceObject_t_5__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_19cudaSurfaceObject_t_4__repr__(((struct __pyx_obj_4cuda_6cudart_cudaSurfaceObject_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaSurfaceObject_t_4__repr__(struct __pyx_obj_4cuda_6cudart_cudaSurfaceObject_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 12318, 0, __PYX_ERR(0, 12318, __pyx_L1_error)); /* "cuda/cudart.pyx":12319 * pass * def __repr__(self): * return '' # <<<<<<<<<<<<<< * def __int__(self): * return self._ptr[0] */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12319, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12319, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12319, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_kp_u_cudaSurfaceObject_t, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12319, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_kp_u_); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12319, __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/cudart.pyx":12318 * def __dealloc__(self): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __int__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaSurfaceObject_t.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12320 * def __repr__(self): * return '' * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_19cudaSurfaceObject_t_7__int__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_19cudaSurfaceObject_t_6__int__(((struct __pyx_obj_4cuda_6cudart_cudaSurfaceObject_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaSurfaceObject_t_6__int__(struct __pyx_obj_4cuda_6cudart_cudaSurfaceObject_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__int__", 1); __Pyx_TraceCall("__int__", __pyx_f[0], 12320, 0, __PYX_ERR(0, 12320, __pyx_L1_error)); /* "cuda/cudart.pyx":12321 * return '' * def __int__(self): * return self._ptr[0] # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((unsigned PY_LONG_LONG)(__pyx_v_self->_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12321, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12320 * def __repr__(self): * return '' * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaSurfaceObject_t.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12322 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_19cudaSurfaceObject_t_8getPtr, "cudaSurfaceObject_t.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_19cudaSurfaceObject_t_9getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_19cudaSurfaceObject_t_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_19cudaSurfaceObject_t_8getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_19cudaSurfaceObject_t_8getPtr(((struct __pyx_obj_4cuda_6cudart_cudaSurfaceObject_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaSurfaceObject_t_8getPtr(struct __pyx_obj_4cuda_6cudart_cudaSurfaceObject_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__314) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 12322, 0, __PYX_ERR(0, 12322, __pyx_L1_error)); /* "cuda/cudart.pyx":12323 * return self._ptr[0] * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * * cdef class cudaTextureObject_t: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12323, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12322 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaSurfaceObject_t.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_19cudaSurfaceObject_t_10__reduce_cython__, "cudaSurfaceObject_t.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_19cudaSurfaceObject_t_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_19cudaSurfaceObject_t_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_19cudaSurfaceObject_t_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_19cudaSurfaceObject_t_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaSurfaceObject_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaSurfaceObject_t_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaSurfaceObject_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__315) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaSurfaceObject_t.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_19cudaSurfaceObject_t_12__setstate_cython__, "cudaSurfaceObject_t.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_19cudaSurfaceObject_t_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_19cudaSurfaceObject_t_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_19cudaSurfaceObject_t_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaSurfaceObject_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_19cudaSurfaceObject_t_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaSurfaceObject_t *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaSurfaceObject_t_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaSurfaceObject_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__316) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaSurfaceObject_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12336 * * """ * def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_19cudaTextureObject_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_init_value,&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_init_value); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12336, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[1] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12336, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 12336, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_init_value = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12336, __pyx_L3_error) } else { __pyx_v_init_value = ((unsigned PY_LONG_LONG)0); } if (values[1]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12336, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 12336, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaTextureObject_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_19cudaTextureObject_t___cinit__(((struct __pyx_obj_4cuda_6cudart_cudaTextureObject_t *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_19cudaTextureObject_t___cinit__(struct __pyx_obj_4cuda_6cudart_cudaTextureObject_t *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_init_value, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 12336, 0, __PYX_ERR(0, 12336, __pyx_L1_error)); /* "cuda/cudart.pyx":12337 * """ * def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":12338 * def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_cudaTextureObject_t__val); /* "cuda/cudart.pyx":12337 * """ * def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":12340 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * if init_value: * self._ptr[0] = init_value */ /*else*/ { __pyx_v_self->_ptr = ((cudaTextureObject_t *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":12341 * else: * self._ptr = _ptr * if init_value: # <<<<<<<<<<<<<< * self._ptr[0] = init_value * def __dealloc__(self): */ __pyx_t_1 = (__pyx_v_init_value != 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":12342 * self._ptr = _ptr * if init_value: * self._ptr[0] = init_value # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ (__pyx_v_self->_ptr[0]) = __pyx_v_init_value; /* "cuda/cudart.pyx":12341 * else: * self._ptr = _ptr * if init_value: # <<<<<<<<<<<<<< * self._ptr[0] = init_value * def __dealloc__(self): */ } /* "cuda/cudart.pyx":12336 * * """ * def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaTextureObject_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":12343 * if init_value: * self._ptr[0] = init_value * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def __repr__(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_19cudaTextureObject_t_3__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_19cudaTextureObject_t_2__dealloc__(((struct __pyx_obj_4cuda_6cudart_cudaTextureObject_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_19cudaTextureObject_t_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaTextureObject_t *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 12343, 0, __PYX_ERR(0, 12343, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.cudaTextureObject_t.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":12345 * def __dealloc__(self): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __int__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_19cudaTextureObject_t_5__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_19cudaTextureObject_t_4__repr__(((struct __pyx_obj_4cuda_6cudart_cudaTextureObject_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaTextureObject_t_4__repr__(struct __pyx_obj_4cuda_6cudart_cudaTextureObject_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 12345, 0, __PYX_ERR(0, 12345, __pyx_L1_error)); /* "cuda/cudart.pyx":12346 * pass * def __repr__(self): * return '' # <<<<<<<<<<<<<< * def __int__(self): * return self._ptr[0] */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12346, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12346, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12346, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_kp_u_cudaTextureObject_t, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12346, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_kp_u_); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12346, __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/cudart.pyx":12345 * def __dealloc__(self): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __int__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.cudaTextureObject_t.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12347 * def __repr__(self): * return '' * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_19cudaTextureObject_t_7__int__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_19cudaTextureObject_t_6__int__(((struct __pyx_obj_4cuda_6cudart_cudaTextureObject_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaTextureObject_t_6__int__(struct __pyx_obj_4cuda_6cudart_cudaTextureObject_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__int__", 1); __Pyx_TraceCall("__int__", __pyx_f[0], 12347, 0, __PYX_ERR(0, 12347, __pyx_L1_error)); /* "cuda/cudart.pyx":12348 * return '' * def __int__(self): * return self._ptr[0] # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((unsigned PY_LONG_LONG)(__pyx_v_self->_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12348, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12347 * def __repr__(self): * return '' * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaTextureObject_t.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12349 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_19cudaTextureObject_t_8getPtr, "cudaTextureObject_t.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_19cudaTextureObject_t_9getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_19cudaTextureObject_t_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_19cudaTextureObject_t_8getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_19cudaTextureObject_t_8getPtr(((struct __pyx_obj_4cuda_6cudart_cudaTextureObject_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaTextureObject_t_8getPtr(struct __pyx_obj_4cuda_6cudart_cudaTextureObject_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__317) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 12349, 0, __PYX_ERR(0, 12349, __pyx_L1_error)); /* "cuda/cudart.pyx":12350 * return self._ptr[0] * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * * cdef class GLenum: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12350, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12349 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.cudaTextureObject_t.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_19cudaTextureObject_t_10__reduce_cython__, "cudaTextureObject_t.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_19cudaTextureObject_t_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_19cudaTextureObject_t_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_19cudaTextureObject_t_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_19cudaTextureObject_t_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_cudaTextureObject_t *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaTextureObject_t_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaTextureObject_t *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__318) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaTextureObject_t.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_19cudaTextureObject_t_12__setstate_cython__, "cudaTextureObject_t.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_19cudaTextureObject_t_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_19cudaTextureObject_t_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_19cudaTextureObject_t_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaTextureObject_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_19cudaTextureObject_t_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_cudaTextureObject_t *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_19cudaTextureObject_t_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_cudaTextureObject_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__319) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.cudaTextureObject_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12361 * * """ * def __cinit__(self, unsigned int init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_6GLenum_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_6GLenum_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { unsigned int __pyx_v_init_value; __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_init_value,&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_init_value); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12361, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[1] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12361, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 12361, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_init_value = __Pyx_PyInt_As_unsigned_int(values[0]); if (unlikely((__pyx_v_init_value == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 12361, __pyx_L3_error) } else { __pyx_v_init_value = ((unsigned int)0); } if (values[1]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12361, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 12361, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.GLenum.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_6GLenum___cinit__(((struct __pyx_obj_4cuda_6cudart_GLenum *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_6GLenum___cinit__(struct __pyx_obj_4cuda_6cudart_GLenum *__pyx_v_self, unsigned int __pyx_v_init_value, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 12361, 0, __PYX_ERR(0, 12361, __pyx_L1_error)); /* "cuda/cudart.pyx":12362 * """ * def __cinit__(self, unsigned int init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":12363 * def __cinit__(self, unsigned int init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_GLenum__val); /* "cuda/cudart.pyx":12362 * """ * def __cinit__(self, unsigned int init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":12365 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * if init_value: * self._ptr[0] = init_value */ /*else*/ { __pyx_v_self->_ptr = ((__pyx_t_4cuda_7ccudart_GLenum *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":12366 * else: * self._ptr = _ptr * if init_value: # <<<<<<<<<<<<<< * self._ptr[0] = init_value * def __dealloc__(self): */ __pyx_t_1 = (__pyx_v_init_value != 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":12367 * self._ptr = _ptr * if init_value: * self._ptr[0] = init_value # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ (__pyx_v_self->_ptr[0]) = __pyx_v_init_value; /* "cuda/cudart.pyx":12366 * else: * self._ptr = _ptr * if init_value: # <<<<<<<<<<<<<< * self._ptr[0] = init_value * def __dealloc__(self): */ } /* "cuda/cudart.pyx":12361 * * """ * def __cinit__(self, unsigned int init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.GLenum.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":12368 * if init_value: * self._ptr[0] = init_value * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def __repr__(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_6GLenum_3__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_6GLenum_2__dealloc__(((struct __pyx_obj_4cuda_6cudart_GLenum *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_6GLenum_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_GLenum *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 12368, 0, __PYX_ERR(0, 12368, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.GLenum.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":12370 * def __dealloc__(self): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __int__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_6GLenum_5__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_6GLenum_4__repr__(((struct __pyx_obj_4cuda_6cudart_GLenum *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_6GLenum_4__repr__(struct __pyx_obj_4cuda_6cudart_GLenum *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 12370, 0, __PYX_ERR(0, 12370, __pyx_L1_error)); /* "cuda/cudart.pyx":12371 * pass * def __repr__(self): * return '' # <<<<<<<<<<<<<< * def __int__(self): * return self._ptr[0] */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12371, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12371, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12371, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_kp_u_GLenum, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12371, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_kp_u_); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12371, __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/cudart.pyx":12370 * def __dealloc__(self): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __int__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.GLenum.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12372 * def __repr__(self): * return '' * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_6GLenum_7__int__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_6GLenum_6__int__(((struct __pyx_obj_4cuda_6cudart_GLenum *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_6GLenum_6__int__(struct __pyx_obj_4cuda_6cudart_GLenum *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__int__", 1); __Pyx_TraceCall("__int__", __pyx_f[0], 12372, 0, __PYX_ERR(0, 12372, __pyx_L1_error)); /* "cuda/cudart.pyx":12373 * return '' * def __int__(self): * return self._ptr[0] # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(((unsigned int)(__pyx_v_self->_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12373, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12372 * def __repr__(self): * return '' * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.GLenum.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12374 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_6GLenum_8getPtr, "GLenum.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_6GLenum_9getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_6GLenum_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_6GLenum_8getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_6GLenum_8getPtr(((struct __pyx_obj_4cuda_6cudart_GLenum *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_6GLenum_8getPtr(struct __pyx_obj_4cuda_6cudart_GLenum *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__320) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 12374, 0, __PYX_ERR(0, 12374, __pyx_L1_error)); /* "cuda/cudart.pyx":12375 * return self._ptr[0] * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * * cdef class GLuint: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12375, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12374 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.GLenum.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_6GLenum_10__reduce_cython__, "GLenum.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_6GLenum_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_6GLenum_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_6GLenum_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_6GLenum_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_GLenum *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_6GLenum_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_GLenum *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__321) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.GLenum.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_6GLenum_12__setstate_cython__, "GLenum.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_6GLenum_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_6GLenum_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_6GLenum_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.GLenum.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_6GLenum_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_GLenum *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_6GLenum_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_GLenum *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__322) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.GLenum.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12386 * * """ * def __cinit__(self, unsigned int init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_6GLuint_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_6GLuint_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { unsigned int __pyx_v_init_value; __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_init_value,&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_init_value); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12386, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[1] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12386, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 12386, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_init_value = __Pyx_PyInt_As_unsigned_int(values[0]); if (unlikely((__pyx_v_init_value == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 12386, __pyx_L3_error) } else { __pyx_v_init_value = ((unsigned int)0); } if (values[1]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12386, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 12386, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.GLuint.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_6GLuint___cinit__(((struct __pyx_obj_4cuda_6cudart_GLuint *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_6GLuint___cinit__(struct __pyx_obj_4cuda_6cudart_GLuint *__pyx_v_self, unsigned int __pyx_v_init_value, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 12386, 0, __PYX_ERR(0, 12386, __pyx_L1_error)); /* "cuda/cudart.pyx":12387 * """ * def __cinit__(self, unsigned int init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":12388 * def __cinit__(self, unsigned int init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_GLuint__val); /* "cuda/cudart.pyx":12387 * """ * def __cinit__(self, unsigned int init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":12390 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * if init_value: * self._ptr[0] = init_value */ /*else*/ { __pyx_v_self->_ptr = ((__pyx_t_4cuda_7ccudart_GLuint *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":12391 * else: * self._ptr = _ptr * if init_value: # <<<<<<<<<<<<<< * self._ptr[0] = init_value * def __dealloc__(self): */ __pyx_t_1 = (__pyx_v_init_value != 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":12392 * self._ptr = _ptr * if init_value: * self._ptr[0] = init_value # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ (__pyx_v_self->_ptr[0]) = __pyx_v_init_value; /* "cuda/cudart.pyx":12391 * else: * self._ptr = _ptr * if init_value: # <<<<<<<<<<<<<< * self._ptr[0] = init_value * def __dealloc__(self): */ } /* "cuda/cudart.pyx":12386 * * """ * def __cinit__(self, unsigned int init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.GLuint.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":12393 * if init_value: * self._ptr[0] = init_value * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def __repr__(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_6GLuint_3__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_6GLuint_2__dealloc__(((struct __pyx_obj_4cuda_6cudart_GLuint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_6GLuint_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_GLuint *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 12393, 0, __PYX_ERR(0, 12393, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.GLuint.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":12395 * def __dealloc__(self): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __int__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_6GLuint_5__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_6GLuint_4__repr__(((struct __pyx_obj_4cuda_6cudart_GLuint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_6GLuint_4__repr__(struct __pyx_obj_4cuda_6cudart_GLuint *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 12395, 0, __PYX_ERR(0, 12395, __pyx_L1_error)); /* "cuda/cudart.pyx":12396 * pass * def __repr__(self): * return '' # <<<<<<<<<<<<<< * def __int__(self): * return self._ptr[0] */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12396, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12396, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12396, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_kp_u_GLuint, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12396, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_kp_u_); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12396, __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/cudart.pyx":12395 * def __dealloc__(self): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __int__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.GLuint.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12397 * def __repr__(self): * return '' * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_6GLuint_7__int__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_6GLuint_6__int__(((struct __pyx_obj_4cuda_6cudart_GLuint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_6GLuint_6__int__(struct __pyx_obj_4cuda_6cudart_GLuint *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__int__", 1); __Pyx_TraceCall("__int__", __pyx_f[0], 12397, 0, __PYX_ERR(0, 12397, __pyx_L1_error)); /* "cuda/cudart.pyx":12398 * return '' * def __int__(self): * return self._ptr[0] # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(((unsigned int)(__pyx_v_self->_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12398, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12397 * def __repr__(self): * return '' * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.GLuint.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12399 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_6GLuint_8getPtr, "GLuint.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_6GLuint_9getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_6GLuint_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_6GLuint_8getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_6GLuint_8getPtr(((struct __pyx_obj_4cuda_6cudart_GLuint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_6GLuint_8getPtr(struct __pyx_obj_4cuda_6cudart_GLuint *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__323) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 12399, 0, __PYX_ERR(0, 12399, __pyx_L1_error)); /* "cuda/cudart.pyx":12400 * return self._ptr[0] * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * * cdef class EGLint: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12400, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12399 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.GLuint.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_6GLuint_10__reduce_cython__, "GLuint.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_6GLuint_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_6GLuint_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_6GLuint_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_6GLuint_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_GLuint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_6GLuint_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_GLuint *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__324) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.GLuint.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_6GLuint_12__setstate_cython__, "GLuint.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_6GLuint_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_6GLuint_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_6GLuint_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.GLuint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_6GLuint_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_GLuint *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_6GLuint_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_GLuint *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__325) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.GLuint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12411 * * """ * def __cinit__(self, unsigned int init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_6EGLint_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_6EGLint_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { unsigned int __pyx_v_init_value; __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_init_value,&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_init_value); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12411, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[1] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12411, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 12411, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_init_value = __Pyx_PyInt_As_unsigned_int(values[0]); if (unlikely((__pyx_v_init_value == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 12411, __pyx_L3_error) } else { __pyx_v_init_value = ((unsigned int)0); } if (values[1]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12411, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 12411, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.EGLint.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_6EGLint___cinit__(((struct __pyx_obj_4cuda_6cudart_EGLint *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_6EGLint___cinit__(struct __pyx_obj_4cuda_6cudart_EGLint *__pyx_v_self, unsigned int __pyx_v_init_value, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 12411, 0, __PYX_ERR(0, 12411, __pyx_L1_error)); /* "cuda/cudart.pyx":12412 * """ * def __cinit__(self, unsigned int init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":12413 * def __cinit__(self, unsigned int init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_EGLint__val); /* "cuda/cudart.pyx":12412 * """ * def __cinit__(self, unsigned int init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":12415 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * if init_value: * self._ptr[0] = init_value */ /*else*/ { __pyx_v_self->_ptr = ((__pyx_t_4cuda_7ccudart_EGLint *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":12416 * else: * self._ptr = _ptr * if init_value: # <<<<<<<<<<<<<< * self._ptr[0] = init_value * def __dealloc__(self): */ __pyx_t_1 = (__pyx_v_init_value != 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":12417 * self._ptr = _ptr * if init_value: * self._ptr[0] = init_value # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ (__pyx_v_self->_ptr[0]) = __pyx_v_init_value; /* "cuda/cudart.pyx":12416 * else: * self._ptr = _ptr * if init_value: # <<<<<<<<<<<<<< * self._ptr[0] = init_value * def __dealloc__(self): */ } /* "cuda/cudart.pyx":12411 * * """ * def __cinit__(self, unsigned int init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.EGLint.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":12418 * if init_value: * self._ptr[0] = init_value * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def __repr__(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_6EGLint_3__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_6EGLint_2__dealloc__(((struct __pyx_obj_4cuda_6cudart_EGLint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_6EGLint_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_EGLint *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 12418, 0, __PYX_ERR(0, 12418, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.EGLint.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":12420 * def __dealloc__(self): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __int__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_6EGLint_5__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_6EGLint_4__repr__(((struct __pyx_obj_4cuda_6cudart_EGLint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_6EGLint_4__repr__(struct __pyx_obj_4cuda_6cudart_EGLint *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 12420, 0, __PYX_ERR(0, 12420, __pyx_L1_error)); /* "cuda/cudart.pyx":12421 * pass * def __repr__(self): * return '' # <<<<<<<<<<<<<< * def __int__(self): * return self._ptr[0] */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12421, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12421, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12421, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_kp_u_EGLint, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12421, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_kp_u_); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12421, __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/cudart.pyx":12420 * def __dealloc__(self): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __int__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.EGLint.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12422 * def __repr__(self): * return '' * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_6EGLint_7__int__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_6EGLint_6__int__(((struct __pyx_obj_4cuda_6cudart_EGLint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_6EGLint_6__int__(struct __pyx_obj_4cuda_6cudart_EGLint *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__int__", 1); __Pyx_TraceCall("__int__", __pyx_f[0], 12422, 0, __PYX_ERR(0, 12422, __pyx_L1_error)); /* "cuda/cudart.pyx":12423 * return '' * def __int__(self): * return self._ptr[0] # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(((unsigned int)(__pyx_v_self->_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12423, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12422 * def __repr__(self): * return '' * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.EGLint.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12424 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_6EGLint_8getPtr, "EGLint.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_6EGLint_9getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_6EGLint_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_6EGLint_8getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_6EGLint_8getPtr(((struct __pyx_obj_4cuda_6cudart_EGLint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_6EGLint_8getPtr(struct __pyx_obj_4cuda_6cudart_EGLint *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__326) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 12424, 0, __PYX_ERR(0, 12424, __pyx_L1_error)); /* "cuda/cudart.pyx":12425 * return self._ptr[0] * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * * cdef class VdpDevice: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12425, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12424 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.EGLint.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_6EGLint_10__reduce_cython__, "EGLint.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_6EGLint_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_6EGLint_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_6EGLint_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_6EGLint_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_EGLint *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_6EGLint_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_EGLint *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__327) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.EGLint.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_6EGLint_12__setstate_cython__, "EGLint.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_6EGLint_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_6EGLint_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_6EGLint_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.EGLint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_6EGLint_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_EGLint *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_6EGLint_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_EGLint *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__328) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.EGLint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12436 * * """ * def __cinit__(self, uint32_t init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_9VdpDevice_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_9VdpDevice_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { uint32_t __pyx_v_init_value; __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_init_value,&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_init_value); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12436, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[1] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12436, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 12436, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_init_value = __Pyx_PyInt_As_uint32_t(values[0]); if (unlikely((__pyx_v_init_value == ((uint32_t)-1)) && PyErr_Occurred())) __PYX_ERR(0, 12436, __pyx_L3_error) } else { __pyx_v_init_value = ((uint32_t)0); } if (values[1]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12436, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 12436, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.VdpDevice.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_9VdpDevice___cinit__(((struct __pyx_obj_4cuda_6cudart_VdpDevice *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_9VdpDevice___cinit__(struct __pyx_obj_4cuda_6cudart_VdpDevice *__pyx_v_self, uint32_t __pyx_v_init_value, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 12436, 0, __PYX_ERR(0, 12436, __pyx_L1_error)); /* "cuda/cudart.pyx":12437 * """ * def __cinit__(self, uint32_t init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":12438 * def __cinit__(self, uint32_t init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_VdpDevice__val); /* "cuda/cudart.pyx":12437 * """ * def __cinit__(self, uint32_t init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":12440 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * if init_value: * self._ptr[0] = init_value */ /*else*/ { __pyx_v_self->_ptr = ((__pyx_t_4cuda_7ccudart_VdpDevice *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":12441 * else: * self._ptr = _ptr * if init_value: # <<<<<<<<<<<<<< * self._ptr[0] = init_value * def __dealloc__(self): */ __pyx_t_1 = (__pyx_v_init_value != 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":12442 * self._ptr = _ptr * if init_value: * self._ptr[0] = init_value # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ (__pyx_v_self->_ptr[0]) = __pyx_v_init_value; /* "cuda/cudart.pyx":12441 * else: * self._ptr = _ptr * if init_value: # <<<<<<<<<<<<<< * self._ptr[0] = init_value * def __dealloc__(self): */ } /* "cuda/cudart.pyx":12436 * * """ * def __cinit__(self, uint32_t init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.VdpDevice.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":12443 * if init_value: * self._ptr[0] = init_value * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def __repr__(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_9VdpDevice_3__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_9VdpDevice_2__dealloc__(((struct __pyx_obj_4cuda_6cudart_VdpDevice *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_9VdpDevice_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_VdpDevice *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 12443, 0, __PYX_ERR(0, 12443, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.VdpDevice.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":12445 * def __dealloc__(self): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __int__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_9VdpDevice_5__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_9VdpDevice_4__repr__(((struct __pyx_obj_4cuda_6cudart_VdpDevice *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_9VdpDevice_4__repr__(struct __pyx_obj_4cuda_6cudart_VdpDevice *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 12445, 0, __PYX_ERR(0, 12445, __pyx_L1_error)); /* "cuda/cudart.pyx":12446 * pass * def __repr__(self): * return '' # <<<<<<<<<<<<<< * def __int__(self): * return self._ptr[0] */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12446, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12446, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12446, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_kp_u_VdpDevice, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12446, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_kp_u_); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12446, __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/cudart.pyx":12445 * def __dealloc__(self): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __int__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.VdpDevice.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12447 * def __repr__(self): * return '' * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_9VdpDevice_7__int__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_9VdpDevice_6__int__(((struct __pyx_obj_4cuda_6cudart_VdpDevice *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_9VdpDevice_6__int__(struct __pyx_obj_4cuda_6cudart_VdpDevice *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__int__", 1); __Pyx_TraceCall("__int__", __pyx_f[0], 12447, 0, __PYX_ERR(0, 12447, __pyx_L1_error)); /* "cuda/cudart.pyx":12448 * return '' * def __int__(self): * return self._ptr[0] # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_uint32_t(((uint32_t)(__pyx_v_self->_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12448, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12447 * def __repr__(self): * return '' * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.VdpDevice.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12449 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_9VdpDevice_8getPtr, "VdpDevice.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_9VdpDevice_9getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_9VdpDevice_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_9VdpDevice_8getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_9VdpDevice_8getPtr(((struct __pyx_obj_4cuda_6cudart_VdpDevice *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_9VdpDevice_8getPtr(struct __pyx_obj_4cuda_6cudart_VdpDevice *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__329) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 12449, 0, __PYX_ERR(0, 12449, __pyx_L1_error)); /* "cuda/cudart.pyx":12450 * return self._ptr[0] * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * * cdef class VdpGetProcAddress: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12450, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12449 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.VdpDevice.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_9VdpDevice_10__reduce_cython__, "VdpDevice.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_9VdpDevice_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_9VdpDevice_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_9VdpDevice_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_9VdpDevice_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_VdpDevice *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_9VdpDevice_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_VdpDevice *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__330) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.VdpDevice.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_9VdpDevice_12__setstate_cython__, "VdpDevice.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_9VdpDevice_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_9VdpDevice_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_9VdpDevice_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.VdpDevice.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_9VdpDevice_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_VdpDevice *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_9VdpDevice_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_VdpDevice *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__331) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.VdpDevice.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12461 * * """ * def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_17VdpGetProcAddress_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_17VdpGetProcAddress_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { unsigned PY_LONG_LONG __pyx_v_init_value; __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_init_value,&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_init_value); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12461, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[1] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12461, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 12461, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_init_value = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12461, __pyx_L3_error) } else { __pyx_v_init_value = ((unsigned PY_LONG_LONG)0); } if (values[1]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12461, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 12461, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.VdpGetProcAddress.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_17VdpGetProcAddress___cinit__(((struct __pyx_obj_4cuda_6cudart_VdpGetProcAddress *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_17VdpGetProcAddress___cinit__(struct __pyx_obj_4cuda_6cudart_VdpGetProcAddress *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_init_value, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 12461, 0, __PYX_ERR(0, 12461, __pyx_L1_error)); /* "cuda/cudart.pyx":12462 * """ * def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":12463 * def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_VdpGetProcAddress__val); /* "cuda/cudart.pyx":12462 * """ * def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":12465 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * if init_value: * self._ptr[0] = init_value */ /*else*/ { __pyx_v_self->_ptr = ((__pyx_t_4cuda_7ccudart_VdpGetProcAddress *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":12466 * else: * self._ptr = _ptr * if init_value: # <<<<<<<<<<<<<< * self._ptr[0] = init_value * def __dealloc__(self): */ __pyx_t_1 = (__pyx_v_init_value != 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":12467 * self._ptr = _ptr * if init_value: * self._ptr[0] = init_value # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ (__pyx_v_self->_ptr[0]) = __pyx_v_init_value; /* "cuda/cudart.pyx":12466 * else: * self._ptr = _ptr * if init_value: # <<<<<<<<<<<<<< * self._ptr[0] = init_value * def __dealloc__(self): */ } /* "cuda/cudart.pyx":12461 * * """ * def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.VdpGetProcAddress.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":12468 * if init_value: * self._ptr[0] = init_value * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def __repr__(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_17VdpGetProcAddress_3__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_17VdpGetProcAddress_2__dealloc__(((struct __pyx_obj_4cuda_6cudart_VdpGetProcAddress *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_17VdpGetProcAddress_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_VdpGetProcAddress *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 12468, 0, __PYX_ERR(0, 12468, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.VdpGetProcAddress.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":12470 * def __dealloc__(self): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __int__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_17VdpGetProcAddress_5__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_17VdpGetProcAddress_4__repr__(((struct __pyx_obj_4cuda_6cudart_VdpGetProcAddress *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_17VdpGetProcAddress_4__repr__(struct __pyx_obj_4cuda_6cudart_VdpGetProcAddress *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 12470, 0, __PYX_ERR(0, 12470, __pyx_L1_error)); /* "cuda/cudart.pyx":12471 * pass * def __repr__(self): * return '' # <<<<<<<<<<<<<< * def __int__(self): * return self._ptr[0] */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12471, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12471, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12471, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_kp_u_VdpGetProcAddress, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12471, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_kp_u_); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12471, __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/cudart.pyx":12470 * def __dealloc__(self): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __int__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.VdpGetProcAddress.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12472 * def __repr__(self): * return '' * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_17VdpGetProcAddress_7__int__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_17VdpGetProcAddress_6__int__(((struct __pyx_obj_4cuda_6cudart_VdpGetProcAddress *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_17VdpGetProcAddress_6__int__(struct __pyx_obj_4cuda_6cudart_VdpGetProcAddress *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__int__", 1); __Pyx_TraceCall("__int__", __pyx_f[0], 12472, 0, __PYX_ERR(0, 12472, __pyx_L1_error)); /* "cuda/cudart.pyx":12473 * return '' * def __int__(self): * return self._ptr[0] # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((unsigned PY_LONG_LONG)(__pyx_v_self->_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12473, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12472 * def __repr__(self): * return '' * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.VdpGetProcAddress.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12474 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_17VdpGetProcAddress_8getPtr, "VdpGetProcAddress.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_17VdpGetProcAddress_9getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_17VdpGetProcAddress_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_17VdpGetProcAddress_8getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_17VdpGetProcAddress_8getPtr(((struct __pyx_obj_4cuda_6cudart_VdpGetProcAddress *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_17VdpGetProcAddress_8getPtr(struct __pyx_obj_4cuda_6cudart_VdpGetProcAddress *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__332) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 12474, 0, __PYX_ERR(0, 12474, __pyx_L1_error)); /* "cuda/cudart.pyx":12475 * return self._ptr[0] * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * * cdef class VdpVideoSurface: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12475, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12474 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.VdpGetProcAddress.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_17VdpGetProcAddress_10__reduce_cython__, "VdpGetProcAddress.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_17VdpGetProcAddress_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_17VdpGetProcAddress_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_17VdpGetProcAddress_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_17VdpGetProcAddress_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_VdpGetProcAddress *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_17VdpGetProcAddress_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_VdpGetProcAddress *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__333) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.VdpGetProcAddress.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_17VdpGetProcAddress_12__setstate_cython__, "VdpGetProcAddress.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_17VdpGetProcAddress_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_17VdpGetProcAddress_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_17VdpGetProcAddress_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.VdpGetProcAddress.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_17VdpGetProcAddress_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_VdpGetProcAddress *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_17VdpGetProcAddress_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_VdpGetProcAddress *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__334) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.VdpGetProcAddress.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12486 * * """ * def __cinit__(self, uint32_t init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_15VdpVideoSurface_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_15VdpVideoSurface_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { uint32_t __pyx_v_init_value; __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_init_value,&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_init_value); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12486, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[1] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12486, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 12486, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_init_value = __Pyx_PyInt_As_uint32_t(values[0]); if (unlikely((__pyx_v_init_value == ((uint32_t)-1)) && PyErr_Occurred())) __PYX_ERR(0, 12486, __pyx_L3_error) } else { __pyx_v_init_value = ((uint32_t)0); } if (values[1]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12486, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 12486, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.VdpVideoSurface.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_15VdpVideoSurface___cinit__(((struct __pyx_obj_4cuda_6cudart_VdpVideoSurface *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_15VdpVideoSurface___cinit__(struct __pyx_obj_4cuda_6cudart_VdpVideoSurface *__pyx_v_self, uint32_t __pyx_v_init_value, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 12486, 0, __PYX_ERR(0, 12486, __pyx_L1_error)); /* "cuda/cudart.pyx":12487 * """ * def __cinit__(self, uint32_t init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":12488 * def __cinit__(self, uint32_t init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_VdpVideoSurface__val); /* "cuda/cudart.pyx":12487 * """ * def __cinit__(self, uint32_t init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":12490 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * if init_value: * self._ptr[0] = init_value */ /*else*/ { __pyx_v_self->_ptr = ((__pyx_t_4cuda_7ccudart_VdpVideoSurface *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":12491 * else: * self._ptr = _ptr * if init_value: # <<<<<<<<<<<<<< * self._ptr[0] = init_value * def __dealloc__(self): */ __pyx_t_1 = (__pyx_v_init_value != 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":12492 * self._ptr = _ptr * if init_value: * self._ptr[0] = init_value # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ (__pyx_v_self->_ptr[0]) = __pyx_v_init_value; /* "cuda/cudart.pyx":12491 * else: * self._ptr = _ptr * if init_value: # <<<<<<<<<<<<<< * self._ptr[0] = init_value * def __dealloc__(self): */ } /* "cuda/cudart.pyx":12486 * * """ * def __cinit__(self, uint32_t init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.VdpVideoSurface.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":12493 * if init_value: * self._ptr[0] = init_value * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def __repr__(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_15VdpVideoSurface_3__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_15VdpVideoSurface_2__dealloc__(((struct __pyx_obj_4cuda_6cudart_VdpVideoSurface *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_15VdpVideoSurface_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_VdpVideoSurface *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 12493, 0, __PYX_ERR(0, 12493, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.VdpVideoSurface.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":12495 * def __dealloc__(self): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __int__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_15VdpVideoSurface_5__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_15VdpVideoSurface_4__repr__(((struct __pyx_obj_4cuda_6cudart_VdpVideoSurface *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_15VdpVideoSurface_4__repr__(struct __pyx_obj_4cuda_6cudart_VdpVideoSurface *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 12495, 0, __PYX_ERR(0, 12495, __pyx_L1_error)); /* "cuda/cudart.pyx":12496 * pass * def __repr__(self): * return '' # <<<<<<<<<<<<<< * def __int__(self): * return self._ptr[0] */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12496, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12496, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12496, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_kp_u_VdpVideoSurface, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12496, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_kp_u_); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12496, __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/cudart.pyx":12495 * def __dealloc__(self): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __int__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.VdpVideoSurface.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12497 * def __repr__(self): * return '' * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_15VdpVideoSurface_7__int__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_15VdpVideoSurface_6__int__(((struct __pyx_obj_4cuda_6cudart_VdpVideoSurface *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_15VdpVideoSurface_6__int__(struct __pyx_obj_4cuda_6cudart_VdpVideoSurface *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__int__", 1); __Pyx_TraceCall("__int__", __pyx_f[0], 12497, 0, __PYX_ERR(0, 12497, __pyx_L1_error)); /* "cuda/cudart.pyx":12498 * return '' * def __int__(self): * return self._ptr[0] # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_uint32_t(((uint32_t)(__pyx_v_self->_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12498, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12497 * def __repr__(self): * return '' * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.VdpVideoSurface.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12499 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_15VdpVideoSurface_8getPtr, "VdpVideoSurface.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_15VdpVideoSurface_9getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_15VdpVideoSurface_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_15VdpVideoSurface_8getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_15VdpVideoSurface_8getPtr(((struct __pyx_obj_4cuda_6cudart_VdpVideoSurface *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_15VdpVideoSurface_8getPtr(struct __pyx_obj_4cuda_6cudart_VdpVideoSurface *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__335) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 12499, 0, __PYX_ERR(0, 12499, __pyx_L1_error)); /* "cuda/cudart.pyx":12500 * return self._ptr[0] * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * * cdef class VdpOutputSurface: */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12500, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12499 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.VdpVideoSurface.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_15VdpVideoSurface_10__reduce_cython__, "VdpVideoSurface.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_15VdpVideoSurface_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_15VdpVideoSurface_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_15VdpVideoSurface_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_15VdpVideoSurface_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_VdpVideoSurface *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_15VdpVideoSurface_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_VdpVideoSurface *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__336) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.VdpVideoSurface.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_15VdpVideoSurface_12__setstate_cython__, "VdpVideoSurface.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_15VdpVideoSurface_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_15VdpVideoSurface_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_15VdpVideoSurface_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.VdpVideoSurface.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_15VdpVideoSurface_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_VdpVideoSurface *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_15VdpVideoSurface_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_VdpVideoSurface *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__337) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.VdpVideoSurface.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12511 * * """ * def __cinit__(self, uint32_t init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* Python wrapper */ static int __pyx_pw_4cuda_6cudart_16VdpOutputSurface_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_4cuda_6cudart_16VdpOutputSurface_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { uint32_t __pyx_v_init_value; __pyx_t_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #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 **__pyx_pyargnames[] = {&__pyx_n_s_init_value,&__pyx_n_s_ptr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds); switch (__pyx_nargs) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_init_value); if (value) { values[0] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12511, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr); if (value) { values[1] = __Pyx_Arg_NewRef_VARARGS(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12511, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__cinit__") < 0)) __PYX_ERR(0, 12511, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_init_value = __Pyx_PyInt_As_uint32_t(values[0]); if (unlikely((__pyx_v_init_value == ((uint32_t)-1)) && PyErr_Occurred())) __PYX_ERR(0, 12511, __pyx_L3_error) } else { __pyx_v_init_value = ((uint32_t)0); } if (values[1]) { __pyx_v__ptr = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12511, __pyx_L3_error) } else { __pyx_v__ptr = ((__pyx_t_4cuda_6cudart_void_ptr)0); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 12511, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.VdpOutputSurface.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_16VdpOutputSurface___cinit__(((struct __pyx_obj_4cuda_6cudart_VdpOutputSurface *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_VARARGS(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_4cuda_6cudart_16VdpOutputSurface___cinit__(struct __pyx_obj_4cuda_6cudart_VdpOutputSurface *__pyx_v_self, uint32_t __pyx_v_init_value, __pyx_t_4cuda_6cudart_void_ptr __pyx_v__ptr) { int __pyx_r; __Pyx_TraceDeclarations int __pyx_t_1; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__cinit__", __pyx_f[0], 12511, 0, __PYX_ERR(0, 12511, __pyx_L1_error)); /* "cuda/cudart.pyx":12512 * """ * def __cinit__(self, uint32_t init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ __pyx_t_1 = (__pyx_v__ptr == 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":12513 * def __cinit__(self, uint32_t init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: * self._ptr = &self.__val # <<<<<<<<<<<<<< * else: * self._ptr = _ptr */ __pyx_v_self->_ptr = (&__pyx_v_self->_VdpOutputSurface__val); /* "cuda/cudart.pyx":12512 * """ * def __cinit__(self, uint32_t init_value = 0, void_ptr _ptr = 0): * if _ptr == 0: # <<<<<<<<<<<<<< * self._ptr = &self.__val * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":12515 * self._ptr = &self.__val * else: * self._ptr = _ptr # <<<<<<<<<<<<<< * if init_value: * self._ptr[0] = init_value */ /*else*/ { __pyx_v_self->_ptr = ((__pyx_t_4cuda_7ccudart_VdpOutputSurface *)__pyx_v__ptr); } __pyx_L3:; /* "cuda/cudart.pyx":12516 * else: * self._ptr = _ptr * if init_value: # <<<<<<<<<<<<<< * self._ptr[0] = init_value * def __dealloc__(self): */ __pyx_t_1 = (__pyx_v_init_value != 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":12517 * self._ptr = _ptr * if init_value: * self._ptr[0] = init_value # <<<<<<<<<<<<<< * def __dealloc__(self): * pass */ (__pyx_v_self->_ptr[0]) = __pyx_v_init_value; /* "cuda/cudart.pyx":12516 * else: * self._ptr = _ptr * if init_value: # <<<<<<<<<<<<<< * self._ptr[0] = init_value * def __dealloc__(self): */ } /* "cuda/cudart.pyx":12511 * * """ * def __cinit__(self, uint32_t init_value = 0, void_ptr _ptr = 0): # <<<<<<<<<<<<<< * if _ptr == 0: * self._ptr = &self.__val */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.VdpOutputSurface.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); return __pyx_r; } /* "cuda/cudart.pyx":12518 * if init_value: * self._ptr[0] = init_value * def __dealloc__(self): # <<<<<<<<<<<<<< * pass * def __repr__(self): */ /* Python wrapper */ static void __pyx_pw_4cuda_6cudart_16VdpOutputSurface_3__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_4cuda_6cudart_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_6cudart_16VdpOutputSurface_2__dealloc__(((struct __pyx_obj_4cuda_6cudart_VdpOutputSurface *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_4cuda_6cudart_16VdpOutputSurface_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_VdpOutputSurface *__pyx_v_self) { __Pyx_TraceDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceCall("__dealloc__", __pyx_f[0], 12518, 0, __PYX_ERR(0, 12518, __pyx_L1_error)); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_WriteUnraisable("cuda.cudart.VdpOutputSurface.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_TraceReturn(Py_None, 0); } /* "cuda/cudart.pyx":12520 * def __dealloc__(self): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __int__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_16VdpOutputSurface_5__repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_16VdpOutputSurface_4__repr__(((struct __pyx_obj_4cuda_6cudart_VdpOutputSurface *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_16VdpOutputSurface_4__repr__(struct __pyx_obj_4cuda_6cudart_VdpOutputSurface *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; unsigned int __pyx_t_4; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 1); __Pyx_TraceCall("__repr__", __pyx_f[0], 12520, 0, __PYX_ERR(0, 12520, __pyx_L1_error)); /* "cuda/cudart.pyx":12521 * pass * def __repr__(self): * return '' # <<<<<<<<<<<<<< * def __int__(self): * return self._ptr[0] */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_int); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12521, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; __pyx_t_4 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_2))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_4 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12521, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12521, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_kp_u_VdpOutputSurface, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12521, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_kp_u_); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12521, __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/cudart.pyx":12520 * def __dealloc__(self): * pass * def __repr__(self): # <<<<<<<<<<<<<< * return '' * def __int__(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("cuda.cudart.VdpOutputSurface.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12522 * def __repr__(self): * return '' * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_16VdpOutputSurface_7__int__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_16VdpOutputSurface_6__int__(((struct __pyx_obj_4cuda_6cudart_VdpOutputSurface *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_16VdpOutputSurface_6__int__(struct __pyx_obj_4cuda_6cudart_VdpOutputSurface *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__int__", 1); __Pyx_TraceCall("__int__", __pyx_f[0], 12522, 0, __PYX_ERR(0, 12522, __pyx_L1_error)); /* "cuda/cudart.pyx":12523 * return '' * def __int__(self): * return self._ptr[0] # <<<<<<<<<<<<<< * def getPtr(self): * return self._ptr */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_uint32_t(((uint32_t)(__pyx_v_self->_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12523, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12522 * def __repr__(self): * return '' * def __int__(self): # <<<<<<<<<<<<<< * return self._ptr[0] * def getPtr(self): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.VdpOutputSurface.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12524 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_16VdpOutputSurface_8getPtr, "VdpOutputSurface.getPtr(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_16VdpOutputSurface_9getPtr = {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_16VdpOutputSurface_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_16VdpOutputSurface_8getPtr}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "getPtr", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_16VdpOutputSurface_8getPtr(((struct __pyx_obj_4cuda_6cudart_VdpOutputSurface *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_16VdpOutputSurface_8getPtr(struct __pyx_obj_4cuda_6cudart_VdpOutputSurface *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__338) __Pyx_RefNannySetupContext("getPtr", 1); __Pyx_TraceCall("getPtr", __pyx_f[0], 12524, 0, __PYX_ERR(0, 12524, __pyx_L1_error)); /* "cuda/cudart.pyx":12525 * return self._ptr[0] * def getPtr(self): * return self._ptr # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)__pyx_v_self->_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12525, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12524 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cuda.cudart.VdpOutputSurface.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_16VdpOutputSurface_10__reduce_cython__, "VdpOutputSurface.__reduce_cython__(self)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_16VdpOutputSurface_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_16VdpOutputSurface_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_16VdpOutputSurface_10__reduce_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (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;} if (unlikely(__pyx_kwds) && __Pyx_NumKwargs_FASTCALL(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__reduce_cython__", 0))) return NULL; __pyx_r = __pyx_pf_4cuda_6cudart_16VdpOutputSurface_10__reduce_cython__(((struct __pyx_obj_4cuda_6cudart_VdpOutputSurface *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_16VdpOutputSurface_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_VdpOutputSurface *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__339) __Pyx_RefNannySetupContext("__reduce_cython__", 1); __Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.VdpOutputSurface.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __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_6cudart_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_6cudart_16VdpOutputSurface_12__setstate_cython__, "VdpOutputSurface.__setstate_cython__(self, __pyx_state)"); static PyMethodDef __pyx_mdef_4cuda_6cudart_16VdpOutputSurface_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_16VdpOutputSurface_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_16VdpOutputSurface_12__setstate_cython__}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_state,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pyx_state)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 3, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__setstate_cython__") < 0)) __PYX_ERR(1, 3, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __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(1, 3, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.VdpOutputSurface.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_16VdpOutputSurface_12__setstate_cython__(((struct __pyx_obj_4cuda_6cudart_VdpOutputSurface *)__pyx_v_self), __pyx_v___pyx_state); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_16VdpOutputSurface_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_6cudart_VdpOutputSurface *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__340) __Pyx_RefNannySetupContext("__setstate_cython__", 1); __Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error)); /* "(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(__pyx_builtin_TypeError, __pyx_kp_s_no_default___reduce___due_to_non, 0, 0); __PYX_ERR(1, 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.cudart.VdpOutputSurface.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12527 * return self._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_6cudart_1cudaDeviceReset(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_cudaDeviceReset, "cudaDeviceReset()\n Destroy all allocations and reset all state on the current device in the current process.\n\n Explicitly destroys and cleans up all resources associated with the\n current device in the current process. It is the caller's\n responsibility to ensure that the resources are not accessed or passed\n in subsequent API calls and doing so will result in undefined behavior.\n These 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`\n and :py:obj:`~.cudaGraphicsResource_t`. These resources also include\n memory allocations by :py:obj:`~.cudaMalloc`,\n :py:obj:`~.cudaMallocHost`, :py:obj:`~.cudaMallocManaged` and\n :py:obj:`~.cudaMallocPitch`. Any subsequent API call to this device\n will reinitialize the device.\n\n Note that this function will reset the device immediately. It is the\n caller's responsibility to ensure that the device is not being accessed\n by any other host threads from the process when this function is\n called.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`\n\n See Also\n --------\n :py:obj:`~.cudaDeviceSynchronize`\n\n Notes\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\n 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`.\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_1cudaDeviceReset = {"cudaDeviceReset", (PyCFunction)__pyx_pw_4cuda_6cudart_1cudaDeviceReset, METH_NOARGS, __pyx_doc_4cuda_6cudart_cudaDeviceReset}; static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_cudaDeviceReset(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_cudaDeviceReset(CYTHON_UNUSED PyObject *__pyx_self) { cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__341) __Pyx_RefNannySetupContext("cudaDeviceReset", 1); __Pyx_TraceCall("cudaDeviceReset", __pyx_f[0], 12527, 0, __PYX_ERR(0, 12527, __pyx_L1_error)); /* "cuda/cudart.pyx":12567 * 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`. * """ * err = ccudart.cudaDeviceReset() # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_1 = __pyx_f_4cuda_7ccudart_cudaDeviceReset(); if (unlikely(__pyx_t_1 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 12567, __pyx_L1_error) __pyx_v_err = __pyx_t_1; /* "cuda/cudart.pyx":12568 * """ * err = ccudart.cudaDeviceReset() * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12568, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12568, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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(0, 12568, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12568, __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)) __PYX_ERR(0, 12568, __pyx_L1_error); __pyx_t_2 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12527 * return self._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_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaDeviceReset", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12570 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceSynchronize(): * """ Wait for compute device to finish. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_3cudaDeviceSynchronize(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_2cudaDeviceSynchronize, "cudaDeviceSynchronize()\n Wait for compute device to finish.\n\n Blocks until the device has completed all preceding requested tasks.\n :py:obj:`~.cudaDeviceSynchronize()` returns an error if one of the\n preceding tasks has failed. If the\n :py:obj:`~.cudaDeviceScheduleBlockingSync` flag was set for this\n device, the host thread will block until the device has finished its\n work.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`\n\n See Also\n --------\n :py:obj:`~.cudaDeviceReset`, :py:obj:`~.cuCtxSynchronize`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_3cudaDeviceSynchronize = {"cudaDeviceSynchronize", (PyCFunction)__pyx_pw_4cuda_6cudart_3cudaDeviceSynchronize, METH_NOARGS, __pyx_doc_4cuda_6cudart_2cudaDeviceSynchronize}; static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_2cudaDeviceSynchronize(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_2cudaDeviceSynchronize(CYTHON_UNUSED PyObject *__pyx_self) { cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__342) __Pyx_RefNannySetupContext("cudaDeviceSynchronize", 1); __Pyx_TraceCall("cudaDeviceSynchronize", __pyx_f[0], 12570, 0, __PYX_ERR(0, 12570, __pyx_L1_error)); /* "cuda/cudart.pyx":12590 * :py:obj:`~.cudaDeviceReset`, :py:obj:`~.cuCtxSynchronize` * """ * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaDeviceSynchronize() * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":12591 * """ * with nogil: * err = ccudart.cudaDeviceSynchronize() # <<<<<<<<<<<<<< * * return (cudaError_t(err),) */ __pyx_t_1 = __pyx_f_4cuda_7ccudart_cudaDeviceSynchronize(); if (unlikely(__pyx_t_1 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 12591, __pyx_L4_error) __pyx_v_err = __pyx_t_1; } /* "cuda/cudart.pyx":12590 * :py:obj:`~.cudaDeviceReset`, :py:obj:`~.cuCtxSynchronize` * """ * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaDeviceSynchronize() * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L5; } __pyx_L4_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L5:; } } /* "cuda/cudart.pyx":12593 * err = ccudart.cudaDeviceSynchronize() * * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12593, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12593, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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(0, 12593, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12593, __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)) __PYX_ERR(0, 12593, __pyx_L1_error); __pyx_t_2 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12570 * return (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_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaDeviceSynchronize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12595 * return (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_6cudart_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_6cudart_4cudaDeviceSetLimit, "cudaDeviceSetLimit(limit: cudaLimit, size_t value)\n Set resource limits.\n\n Setting `limit` to `value` is a request by the application to update\n the current limit maintained by the device. The driver is free to\n modify the requested value to meet h/w requirements (this could be\n clamping to minimum or maximum values, rounding up to nearest element\n size, etc). The application can use :py:obj:`~.cudaDeviceGetLimit()` to\n find out exactly what the limit has been set to.\n\n Setting each :py:obj:`~.cudaLimit` has its own specific restrictions,\n so 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 than 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 purely 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\n Parameters\n ----------\n limit : :py:obj:`~.cudaLimit`\n Limit to set\n value : size_t\n Size of limit\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorUnsupportedLimit`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorMemoryAllocation`\n\n See Also\n --------\n :py:obj:`~.cudaDeviceGetLimit`, :py:obj:`~.cuCtxSetLimit`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_5cudaDeviceSetLimit = {"cudaDeviceSetLimit", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_5cudaDeviceSetLimit, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_4cudaDeviceSetLimit}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_limit,&__pyx_n_s_value,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_limit)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12595, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_value)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12595, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaDeviceSetLimit", 1, 2, 2, 1); __PYX_ERR(0, 12595, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaDeviceSetLimit") < 0)) __PYX_ERR(0, 12595, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_limit = values[0]; __pyx_v_value = __Pyx_PyInt_As_size_t(values[1]); if (unlikely((__pyx_v_value == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 12596, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaDeviceSetLimit", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 12595, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 12596, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_4cudaDeviceSetLimit(__pyx_self, __pyx_v_limit, __pyx_v_value); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_4cudaDeviceSetLimit(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_limit, size_t __pyx_v_value) { enum cudaLimit __pyx_v_climit; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; PyObject *__pyx_t_6 = NULL; unsigned int __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__343) __Pyx_RefNannySetupContext("cudaDeviceSetLimit", 1); __Pyx_TraceCall("cudaDeviceSetLimit", __pyx_f[0], 12595, 0, __PYX_ERR(0, 12595, __pyx_L1_error)); /* "cuda/cudart.pyx":12690 * :py:obj:`~.cudaDeviceGetLimit`, :py:obj:`~.cuCtxSetLimit` * """ * cdef ccudart.cudaLimit climit = limit.value # <<<<<<<<<<<<<< * err = ccudart.cudaDeviceSetLimit(climit, value) * return (cudaError_t(err),) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_limit, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12690, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaLimit)__Pyx_PyInt_As_enum__cudaLimit(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12690, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_climit = __pyx_t_2; /* "cuda/cudart.pyx":12691 * """ * cdef ccudart.cudaLimit climit = limit.value * err = ccudart.cudaDeviceSetLimit(climit, value) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_3 = __pyx_f_4cuda_7ccudart_cudaDeviceSetLimit(__pyx_v_climit, __pyx_v_value); if (unlikely(__pyx_t_3 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 12691, __pyx_L1_error) __pyx_v_err = __pyx_t_3; /* "cuda/cudart.pyx":12692 * cdef ccudart.cudaLimit climit = limit.value * err = ccudart.cudaDeviceSetLimit(climit, value) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12692, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12692, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_7 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_5}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12692, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12692, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1)) __PYX_ERR(0, 12692, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12595 * return (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_XDECREF(__pyx_t_6); __Pyx_AddTraceback("cuda.cudart.cudaDeviceSetLimit", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12694 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceGetLimit(limit not None : cudaLimit): * """ Return resource limits. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_6cudaDeviceGetLimit, "cudaDeviceGetLimit(limit: cudaLimit)\n Return resource limits.\n\n Returns 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\n Parameters\n ----------\n limit : :py:obj:`~.cudaLimit`\n Limit to query\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorUnsupportedLimit`, :py:obj:`~.cudaErrorInvalidValue`\n pValue : int\n Returned size of the limit\n\n See Also\n --------\n :py:obj:`~.cudaDeviceSetLimit`, :py:obj:`~.cuCtxGetLimit`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_7cudaDeviceGetLimit = {"cudaDeviceGetLimit", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_7cudaDeviceGetLimit, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_6cudaDeviceGetLimit}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_limit,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_limit)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12694, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaDeviceGetLimit") < 0)) __PYX_ERR(0, 12694, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_limit = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaDeviceGetLimit", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 12694, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 12695, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_6cudaDeviceGetLimit(__pyx_self, __pyx_v_limit); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_6cudaDeviceGetLimit(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_limit) { size_t __pyx_v_pValue; enum cudaLimit __pyx_v_climit; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; PyObject *__pyx_t_6 = NULL; unsigned int __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__344) __Pyx_RefNannySetupContext("cudaDeviceGetLimit", 1); __Pyx_TraceCall("cudaDeviceGetLimit", __pyx_f[0], 12694, 0, __PYX_ERR(0, 12694, __pyx_L1_error)); /* "cuda/cudart.pyx":12743 * :py:obj:`~.cudaDeviceSetLimit`, :py:obj:`~.cuCtxGetLimit` * """ * cdef size_t pValue = 0 # <<<<<<<<<<<<<< * cdef ccudart.cudaLimit climit = limit.value * err = ccudart.cudaDeviceGetLimit(&pValue, climit) */ __pyx_v_pValue = 0; /* "cuda/cudart.pyx":12744 * """ * cdef size_t pValue = 0 * cdef ccudart.cudaLimit climit = limit.value # <<<<<<<<<<<<<< * err = ccudart.cudaDeviceGetLimit(&pValue, climit) * return (cudaError_t(err), pValue) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_limit, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12744, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaLimit)__Pyx_PyInt_As_enum__cudaLimit(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12744, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_climit = __pyx_t_2; /* "cuda/cudart.pyx":12745 * cdef size_t pValue = 0 * cdef ccudart.cudaLimit climit = limit.value * err = ccudart.cudaDeviceGetLimit(&pValue, climit) # <<<<<<<<<<<<<< * return (cudaError_t(err), pValue) * */ __pyx_t_3 = __pyx_f_4cuda_7ccudart_cudaDeviceGetLimit((&__pyx_v_pValue), __pyx_v_climit); if (unlikely(__pyx_t_3 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 12745, __pyx_L1_error) __pyx_v_err = __pyx_t_3; /* "cuda/cudart.pyx":12746 * cdef ccudart.cudaLimit climit = limit.value * err = ccudart.cudaDeviceGetLimit(&pValue, climit) * return (cudaError_t(err), pValue) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12746, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12746, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_7 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_5}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12746, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = __Pyx_PyInt_FromSize_t(__pyx_v_pValue); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12746, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12746, __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)) __PYX_ERR(0, 12746, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_4)) __PYX_ERR(0, 12746, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12694 * return (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_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("cuda.cudart.cudaDeviceGetLimit", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12748 * return (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_6cudart_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_6cudart_8cudaDeviceGetTexture1DLinearMaxWidth, "cudaDeviceGetTexture1DLinearMaxWidth(cudaChannelFormatDesc fmtDesc: Optional[cudaChannelFormatDesc], int device)\n Returns the maximum number of elements allocatable in a 1D linear texture for a given element size.\n\n Returns in `maxWidthInElements` the maximum number of elements\n allocatable in a 1D linear texture for given format descriptor\n `fmtDesc`.\n\n Parameters\n ----------\n fmtDesc : :py:obj:`~.cudaChannelFormatDesc`\n Texture format description.\n None : int\n None\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorUnsupportedLimit`, :py:obj:`~.cudaErrorInvalidValue`\n maxWidthInElements : int\n Returns maximum number of texture elements allocatable for given\n `fmtDesc`.\n\n See Also\n --------\n :py:obj:`~.cuDeviceGetTexture1DLinearMaxWidth`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_9cudaDeviceGetTexture1DLinearMaxWidth = {"cudaDeviceGetTexture1DLinearMaxWidth", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_9cudaDeviceGetTexture1DLinearMaxWidth, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_8cudaDeviceGetTexture1DLinearMaxWidth}; static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_fmtDesc,&__pyx_n_s_device_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_fmtDesc)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12748, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_device_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12748, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaDeviceGetTexture1DLinearMaxWidth", 1, 2, 2, 1); __PYX_ERR(0, 12748, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaDeviceGetTexture1DLinearMaxWidth") < 0)) __PYX_ERR(0, 12748, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_fmtDesc = ((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)values[0]); __pyx_v_device = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 12749, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaDeviceGetTexture1DLinearMaxWidth", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 12748, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaChannelFormatDesc, 1, "fmtDesc", 0))) __PYX_ERR(0, 12749, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_8cudaDeviceGetTexture1DLinearMaxWidth(__pyx_self, __pyx_v_fmtDesc, __pyx_v_device); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_8cudaDeviceGetTexture1DLinearMaxWidth(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *__pyx_v_fmtDesc, int __pyx_v_device) { size_t __pyx_v_maxWidthInElements; struct cudaChannelFormatDesc *__pyx_v_cfmtDesc_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations struct cudaChannelFormatDesc *__pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; cudaError_t __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__345) __Pyx_RefNannySetupContext("cudaDeviceGetTexture1DLinearMaxWidth", 1); __Pyx_TraceCall("cudaDeviceGetTexture1DLinearMaxWidth", __pyx_f[0], 12748, 0, __PYX_ERR(0, 12748, __pyx_L1_error)); /* "cuda/cudart.pyx":12775 * :py:obj:`~.cuDeviceGetTexture1DLinearMaxWidth` * """ * cdef size_t maxWidthInElements = 0 # <<<<<<<<<<<<<< * cdef ccudart.cudaChannelFormatDesc* cfmtDesc_ptr = fmtDesc._ptr if fmtDesc != None else NULL * err = ccudart.cudaDeviceGetTexture1DLinearMaxWidth(&maxWidthInElements, cfmtDesc_ptr, device) */ __pyx_v_maxWidthInElements = 0; /* "cuda/cudart.pyx":12776 * """ * cdef size_t maxWidthInElements = 0 * cdef ccudart.cudaChannelFormatDesc* cfmtDesc_ptr = fmtDesc._ptr if fmtDesc != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaDeviceGetTexture1DLinearMaxWidth(&maxWidthInElements, cfmtDesc_ptr, device) * return (cudaError_t(err), maxWidthInElements) */ __pyx_t_2 = PyObject_RichCompare(((PyObject *)__pyx_v_fmtDesc), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12776, __pyx_L1_error) __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 12776, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_3) { __pyx_t_1 = __pyx_v_fmtDesc->_ptr; } else { __pyx_t_1 = NULL; } __pyx_v_cfmtDesc_ptr = __pyx_t_1; /* "cuda/cudart.pyx":12777 * cdef size_t maxWidthInElements = 0 * cdef ccudart.cudaChannelFormatDesc* cfmtDesc_ptr = fmtDesc._ptr if fmtDesc != None else NULL * err = ccudart.cudaDeviceGetTexture1DLinearMaxWidth(&maxWidthInElements, cfmtDesc_ptr, device) # <<<<<<<<<<<<<< * return (cudaError_t(err), maxWidthInElements) * */ __pyx_t_4 = __pyx_f_4cuda_7ccudart_cudaDeviceGetTexture1DLinearMaxWidth((&__pyx_v_maxWidthInElements), __pyx_v_cfmtDesc_ptr, __pyx_v_device); if (unlikely(__pyx_t_4 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 12777, __pyx_L1_error) __pyx_v_err = __pyx_t_4; /* "cuda/cudart.pyx":12778 * cdef ccudart.cudaChannelFormatDesc* cfmtDesc_ptr = fmtDesc._ptr if fmtDesc != None else NULL * err = ccudart.cudaDeviceGetTexture1DLinearMaxWidth(&maxWidthInElements, cfmtDesc_ptr, device) * return (cudaError_t(err), maxWidthInElements) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12778, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12778, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __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, 12778, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = __Pyx_PyInt_FromSize_t(__pyx_v_maxWidthInElements); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12778, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12778, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_2)) __PYX_ERR(0, 12778, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_5)) __PYX_ERR(0, 12778, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_5 = 0; __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12748 * return (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_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.cudaDeviceGetTexture1DLinearMaxWidth", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12780 * return (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_6cudart_11cudaDeviceGetCacheConfig(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_10cudaDeviceGetCacheConfig, "cudaDeviceGetCacheConfig()\n Returns the preferred cache configuration for the current device.\n\n On devices where the L1 cache and shared memory use the same hardware\n resources, this returns through `pCacheConfig` the preferred cache\n configuration for the current device. This is only a preference. The\n runtime will use the requested configuration if possible, but it is\n free to choose a different configuration if required to execute\n functions.\n\n This will return a `pCacheConfig` of\n :py:obj:`~.cudaFuncCachePreferNone` on devices where the size of the L1\n cache and shared memory are fixed.\n\n The 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\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`\n pCacheConfig : :py:obj:`~.cudaFuncCache`\n Returned cache configuration\n\n See Also\n --------\n :py:obj:`~.cudaDeviceSetCacheConfig`, :py:obj:`~.cudaFuncSetCacheConfig (C API)`, cudaFuncSetCacheConfig (C++ API), :py:obj:`~.cuCtxGetCacheConfig`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_11cudaDeviceGetCacheConfig = {"cudaDeviceGetCacheConfig", (PyCFunction)__pyx_pw_4cuda_6cudart_11cudaDeviceGetCacheConfig, METH_NOARGS, __pyx_doc_4cuda_6cudart_10cudaDeviceGetCacheConfig}; static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_10cudaDeviceGetCacheConfig(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_10cudaDeviceGetCacheConfig(CYTHON_UNUSED PyObject *__pyx_self) { enum cudaFuncCache __pyx_v_pCacheConfig; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; unsigned int __pyx_t_6; PyObject *__pyx_t_7 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__346) __Pyx_RefNannySetupContext("cudaDeviceGetCacheConfig", 1); __Pyx_TraceCall("cudaDeviceGetCacheConfig", __pyx_f[0], 12780, 0, __PYX_ERR(0, 12780, __pyx_L1_error)); /* "cuda/cudart.pyx":12821 * """ * cdef ccudart.cudaFuncCache pCacheConfig * err = ccudart.cudaDeviceGetCacheConfig(&pCacheConfig) # <<<<<<<<<<<<<< * return (cudaError_t(err), cudaFuncCache(pCacheConfig)) * */ __pyx_t_1 = __pyx_f_4cuda_7ccudart_cudaDeviceGetCacheConfig((&__pyx_v_pCacheConfig)); if (unlikely(__pyx_t_1 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 12821, __pyx_L1_error) __pyx_v_err = __pyx_t_1; /* "cuda/cudart.pyx":12822 * cdef ccudart.cudaFuncCache pCacheConfig * err = ccudart.cudaDeviceGetCacheConfig(&pCacheConfig) * return (cudaError_t(err), cudaFuncCache(pCacheConfig)) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12822, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12822, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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(0, 12822, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaFuncCache); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12822, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaFuncCache(__pyx_v_pCacheConfig); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12822, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_5}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12822, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12822, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 12822, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3)) __PYX_ERR(0, 12822, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_3 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12780 * return (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_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.cudaDeviceGetCacheConfig", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12824 * return (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_6cudart_13cudaDeviceGetStreamPriorityRange(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_12cudaDeviceGetStreamPriorityRange, "cudaDeviceGetStreamPriorityRange()\n Returns numerical values that correspond to the least and greatest stream priorities.\n\n Returns in `*leastPriority` and `*greatestPriority` the numerical\n values that correspond to the least and greatest stream priorities\n respectively. Stream priorities follow a convention where lower numbers\n imply greater priorities. The range of meaningful stream priorities is\n given by [`*greatestPriority`, `*leastPriority`]. If the user attempts\n to create a stream with a priority value that is outside the the\n meaningful range as specified by this API, the priority is\n automatically clamped down or up to either `*leastPriority` or\n `*greatestPriority` respectively. See\n :py:obj:`~.cudaStreamCreateWithPriority` for details on creating a\n priority stream. A NULL may be passed in for `*leastPriority` or\n `*greatestPriority` if the value is not desired.\n\n This function will return '0' in both `*leastPriority` and\n `*greatestPriority` if the current context's device does not support\n stream priorities (see :py:obj:`~.cudaDeviceGetAttribute`).\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`\n leastPriority : int\n Pointer to an int in which the numerical value for least stream\n priority is returned\n greatestPriority : int\n Pointer to an int in which the numerical value for greatest stream\n priority is returned\n\n See Also\n --------\n :py:obj:`~.cudaStreamCreateWithPriority`, :py:obj:`~.cudaStreamGetPriority`, :py:obj:`~.cuCtxGetStreamPriorityRange`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_13cudaDeviceGetStreamPriorityRange = {"cudaDeviceGetStreamPriorityRange", (PyCFunction)__pyx_pw_4cuda_6cudart_13cudaDeviceGetStreamPriorityRange, METH_NOARGS, __pyx_doc_4cuda_6cudart_12cudaDeviceGetStreamPriorityRange}; static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_12cudaDeviceGetStreamPriorityRange(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_12cudaDeviceGetStreamPriorityRange(CYTHON_UNUSED PyObject *__pyx_self) { int __pyx_v_leastPriority; int __pyx_v_greatestPriority; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__347) __Pyx_RefNannySetupContext("cudaDeviceGetStreamPriorityRange", 1); __Pyx_TraceCall("cudaDeviceGetStreamPriorityRange", __pyx_f[0], 12824, 0, __PYX_ERR(0, 12824, __pyx_L1_error)); /* "cuda/cudart.pyx":12860 * :py:obj:`~.cudaStreamCreateWithPriority`, :py:obj:`~.cudaStreamGetPriority`, :py:obj:`~.cuCtxGetStreamPriorityRange` * """ * cdef int leastPriority = 0 # <<<<<<<<<<<<<< * cdef int greatestPriority = 0 * err = ccudart.cudaDeviceGetStreamPriorityRange(&leastPriority, &greatestPriority) */ __pyx_v_leastPriority = 0; /* "cuda/cudart.pyx":12861 * """ * cdef int leastPriority = 0 * cdef int greatestPriority = 0 # <<<<<<<<<<<<<< * err = ccudart.cudaDeviceGetStreamPriorityRange(&leastPriority, &greatestPriority) * return (cudaError_t(err), leastPriority, greatestPriority) */ __pyx_v_greatestPriority = 0; /* "cuda/cudart.pyx":12862 * cdef int leastPriority = 0 * cdef int greatestPriority = 0 * err = ccudart.cudaDeviceGetStreamPriorityRange(&leastPriority, &greatestPriority) # <<<<<<<<<<<<<< * return (cudaError_t(err), leastPriority, greatestPriority) * */ __pyx_t_1 = __pyx_f_4cuda_7ccudart_cudaDeviceGetStreamPriorityRange((&__pyx_v_leastPriority), (&__pyx_v_greatestPriority)); if (unlikely(__pyx_t_1 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 12862, __pyx_L1_error) __pyx_v_err = __pyx_t_1; /* "cuda/cudart.pyx":12863 * cdef int greatestPriority = 0 * err = ccudart.cudaDeviceGetStreamPriorityRange(&leastPriority, &greatestPriority) * return (cudaError_t(err), leastPriority, greatestPriority) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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(0, 12863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_leastPriority); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_greatestPriority); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12863, __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)) __PYX_ERR(0, 12863, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_3)) __PYX_ERR(0, 12863, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_4)) __PYX_ERR(0, 12863, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_3 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12824 * return (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_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaDeviceGetStreamPriorityRange", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12865 * return (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_6cudart_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_6cudart_14cudaDeviceSetCacheConfig, "cudaDeviceSetCacheConfig(cacheConfig: cudaFuncCache)\n Sets the preferred cache configuration for the current device.\n\n On devices where the L1 cache and shared memory use the same hardware\n resources, this sets through `cacheConfig` the preferred cache\n configuration for the current device. This is only a preference. The\n runtime will use the requested configuration if possible, but it is\n free to choose a different configuration if required to execute the\n function. 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\n device-wide cache configuration to :py:obj:`~.cudaFuncCachePreferNone`\n will cause subsequent kernel launches to prefer to not change the cache\n configuration unless required to launch the kernel.\n\n This setting does nothing on devices where the size of the L1 cache and\n shared memory are fixed.\n\n Launching a kernel with a different preference than the most recent\n preference setting may insert a device-side synchronization point.\n\n The 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\n Parameters\n ----------\n cacheConfig : :py:obj:`~.cudaFuncCache`\n Requested cache configuration\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`\n\n See Also\n --------\n :py:obj:`~.cudaDeviceGetCacheConfig`, :py:obj:`~.cudaFuncSetCacheConfig (C API)`, cudaFuncSetCacheConfig (C++ API), :py:obj:`~.cuCtxSetCacheConfig`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_15cudaDeviceSetCacheConfig = {"cudaDeviceSetCacheConfig", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_15cudaDeviceSetCacheConfig, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_14cudaDeviceSetCacheConfig}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_cacheConfig,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_cacheConfig)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12865, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaDeviceSetCacheConfig") < 0)) __PYX_ERR(0, 12865, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_cacheConfig = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaDeviceSetCacheConfig", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 12865, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 12866, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_14cudaDeviceSetCacheConfig(__pyx_self, __pyx_v_cacheConfig); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_14cudaDeviceSetCacheConfig(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_cacheConfig) { enum cudaFuncCache __pyx_v_ccacheConfig; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; PyObject *__pyx_t_6 = NULL; unsigned int __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__348) __Pyx_RefNannySetupContext("cudaDeviceSetCacheConfig", 1); __Pyx_TraceCall("cudaDeviceSetCacheConfig", __pyx_f[0], 12865, 0, __PYX_ERR(0, 12865, __pyx_L1_error)); /* "cuda/cudart.pyx":12915 * :py:obj:`~.cudaDeviceGetCacheConfig`, :py:obj:`~.cudaFuncSetCacheConfig (C API)`, cudaFuncSetCacheConfig (C++ API), :py:obj:`~.cuCtxSetCacheConfig` * """ * cdef ccudart.cudaFuncCache ccacheConfig = cacheConfig.value # <<<<<<<<<<<<<< * err = ccudart.cudaDeviceSetCacheConfig(ccacheConfig) * return (cudaError_t(err),) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_cacheConfig, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12915, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaFuncCache)__Pyx_PyInt_As_enum__cudaFuncCache(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12915, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_ccacheConfig = __pyx_t_2; /* "cuda/cudart.pyx":12916 * """ * cdef ccudart.cudaFuncCache ccacheConfig = cacheConfig.value * err = ccudart.cudaDeviceSetCacheConfig(ccacheConfig) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_3 = __pyx_f_4cuda_7ccudart_cudaDeviceSetCacheConfig(__pyx_v_ccacheConfig); if (unlikely(__pyx_t_3 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 12916, __pyx_L1_error) __pyx_v_err = __pyx_t_3; /* "cuda/cudart.pyx":12917 * cdef ccudart.cudaFuncCache ccacheConfig = cacheConfig.value * err = ccudart.cudaDeviceSetCacheConfig(ccacheConfig) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12917, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12917, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_7 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_5}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12917, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12917, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1)) __PYX_ERR(0, 12917, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12865 * return (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_XDECREF(__pyx_t_6); __Pyx_AddTraceback("cuda.cudart.cudaDeviceSetCacheConfig", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12919 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceGetByPCIBusId(char* pciBusId): * """ Returns a handle to a compute device. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_16cudaDeviceGetByPCIBusId, "cudaDeviceGetByPCIBusId(char *pciBusId)\n Returns a handle to a compute device.\n\n Returns in `*device` a device ordinal given a PCI bus ID string.\n\n where `domain`, `bus`, `device`, and `function` are all hexadecimal\n values\n\n Parameters\n ----------\n pciBusId : bytes\n String in one of the following forms:\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidDevice`\n device : int\n Returned device ordinal\n\n See Also\n --------\n :py:obj:`~.cudaDeviceGetPCIBusId`, :py:obj:`~.cuDeviceGetByPCIBusId`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_17cudaDeviceGetByPCIBusId = {"cudaDeviceGetByPCIBusId", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_17cudaDeviceGetByPCIBusId, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_16cudaDeviceGetByPCIBusId}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pciBusId,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pciBusId)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12919, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaDeviceGetByPCIBusId") < 0)) __PYX_ERR(0, 12919, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_pciBusId = __Pyx_PyObject_AsWritableString(values[0]); if (unlikely((!__pyx_v_pciBusId) && PyErr_Occurred())) __PYX_ERR(0, 12920, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaDeviceGetByPCIBusId", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 12919, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaDeviceGetByPCIBusId", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_16cudaDeviceGetByPCIBusId(__pyx_self, __pyx_v_pciBusId); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_16cudaDeviceGetByPCIBusId(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_pciBusId) { int __pyx_v_device; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__349) __Pyx_RefNannySetupContext("cudaDeviceGetByPCIBusId", 1); __Pyx_TraceCall("cudaDeviceGetByPCIBusId", __pyx_f[0], 12919, 0, __PYX_ERR(0, 12919, __pyx_L1_error)); /* "cuda/cudart.pyx":12944 * :py:obj:`~.cudaDeviceGetPCIBusId`, :py:obj:`~.cuDeviceGetByPCIBusId` * """ * cdef int device = 0 # <<<<<<<<<<<<<< * err = ccudart.cudaDeviceGetByPCIBusId(&device, pciBusId) * return (cudaError_t(err), device) */ __pyx_v_device = 0; /* "cuda/cudart.pyx":12945 * """ * cdef int device = 0 * err = ccudart.cudaDeviceGetByPCIBusId(&device, pciBusId) # <<<<<<<<<<<<<< * return (cudaError_t(err), device) * */ __pyx_t_1 = __pyx_f_4cuda_7ccudart_cudaDeviceGetByPCIBusId((&__pyx_v_device), __pyx_v_pciBusId); if (unlikely(__pyx_t_1 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 12945, __pyx_L1_error) __pyx_v_err = __pyx_t_1; /* "cuda/cudart.pyx":12946 * cdef int device = 0 * err = ccudart.cudaDeviceGetByPCIBusId(&device, pciBusId) * return (cudaError_t(err), device) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12946, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12946, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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(0, 12946, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_device); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12946, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12946, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 12946, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3)) __PYX_ERR(0, 12946, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_3 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12919 * return (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_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaDeviceGetByPCIBusId", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12948 * return (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_6cudart_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_6cudart_18cudaDeviceGetPCIBusId, "cudaDeviceGetPCIBusId(int length, int device)\n Returns a PCI Bus Id string for the device.\n\n Returns an ASCII string identifying the device `dev` in the NULL-\n terminated string pointed to by `pciBusId`. `length` specifies the\n maximum length of the string that may be returned.\n\n where `domain`, `bus`, `device`, and `function` are all hexadecimal\n values. pciBusId should be large enough to store 13 characters\n including the NULL-terminator.\n\n Parameters\n ----------\n length : int\n Maximum length of string to store in `name`\n device : int\n Device to get identifier string for\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidDevice`\n pciBusId : bytes\n Returned identifier string for the device in the following format\n\n See Also\n --------\n :py:obj:`~.cudaDeviceGetByPCIBusId`, :py:obj:`~.cuDeviceGetPCIBusId`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_19cudaDeviceGetPCIBusId = {"cudaDeviceGetPCIBusId", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_19cudaDeviceGetPCIBusId, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_18cudaDeviceGetPCIBusId}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_length,&__pyx_n_s_device_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_length)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12948, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_device_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12948, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaDeviceGetPCIBusId", 1, 2, 2, 1); __PYX_ERR(0, 12948, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaDeviceGetPCIBusId") < 0)) __PYX_ERR(0, 12948, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_length = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_length == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 12949, __pyx_L3_error) __pyx_v_device = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 12949, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaDeviceGetPCIBusId", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 12948, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaDeviceGetPCIBusId", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_18cudaDeviceGetPCIBusId(__pyx_self, __pyx_v_length, __pyx_v_device); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_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_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char *__pyx_t_2; cudaError_t __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; unsigned int __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__350) __Pyx_RefNannySetupContext("cudaDeviceGetPCIBusId", 1); __Pyx_TraceCall("cudaDeviceGetPCIBusId", __pyx_f[0], 12948, 0, __PYX_ERR(0, 12948, __pyx_L1_error)); /* "cuda/cudart.pyx":12978 * :py:obj:`~.cudaDeviceGetByPCIBusId`, :py:obj:`~.cuDeviceGetPCIBusId` * """ * pypciBusId = b" " * length # <<<<<<<<<<<<<< * cdef char* pciBusId = pypciBusId * err = ccudart.cudaDeviceGetPCIBusId(pciBusId, length, device) */ __pyx_t_1 = __Pyx_PySequence_Multiply(__pyx_kp_b__351, __pyx_v_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12978, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_pypciBusId = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":12979 * """ * pypciBusId = b" " * length * cdef char* pciBusId = pypciBusId # <<<<<<<<<<<<<< * err = ccudart.cudaDeviceGetPCIBusId(pciBusId, length, device) * return (cudaError_t(err), pypciBusId) */ __pyx_t_2 = __Pyx_PyBytes_AsWritableString(__pyx_v_pypciBusId); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 12979, __pyx_L1_error) __pyx_v_pciBusId = __pyx_t_2; /* "cuda/cudart.pyx":12980 * pypciBusId = b" " * length * cdef char* pciBusId = pypciBusId * err = ccudart.cudaDeviceGetPCIBusId(pciBusId, length, device) # <<<<<<<<<<<<<< * return (cudaError_t(err), pypciBusId) * */ __pyx_t_3 = __pyx_f_4cuda_7ccudart_cudaDeviceGetPCIBusId(__pyx_v_pciBusId, __pyx_v_length, __pyx_v_device); if (unlikely(__pyx_t_3 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 12980, __pyx_L1_error) __pyx_v_err = __pyx_t_3; /* "cuda/cudart.pyx":12981 * cdef char* pciBusId = pypciBusId * err = ccudart.cudaDeviceGetPCIBusId(pciBusId, length, device) * return (cudaError_t(err), pypciBusId) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12981, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12981, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_7 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_5}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12981, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12981, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1)) __PYX_ERR(0, 12981, __pyx_L1_error); __Pyx_INCREF(__pyx_v_pypciBusId); __Pyx_GIVEREF(__pyx_v_pypciBusId); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_pypciBusId)) __PYX_ERR(0, 12981, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12948 * return (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_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("cuda.cudart.cudaDeviceGetPCIBusId", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pypciBusId); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":12983 * return (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_6cudart_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_6cudart_20cudaIpcGetEventHandle, "cudaIpcGetEventHandle(event)\n Gets an interprocess handle for a previously allocated event.\n\n Takes as input a previously allocated event. This event must have been\n created with the :py:obj:`~.cudaEventInterprocess` and\n :py:obj:`~.cudaEventDisableTiming` flags set. This opaque handle may be\n copied into other processes and opened with\n :py:obj:`~.cudaIpcOpenEventHandle` to allow efficient hardware\n synchronization between GPU work in different processes.\n\n After 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\n used in either process. Performing operations on the imported event\n after the exported event has been freed with\n :py:obj:`~.cudaEventDestroy` will result in undefined behavior.\n\n IPC functionality is restricted to devices with support for unified\n addressing on Linux and Windows operating systems. IPC functionality on\n Windows is supported for compatibility purposes but not recommended as\n it comes with performance cost. Users can test their device for IPC\n functionality by calling :py:obj:`~.cudaDeviceGetAttribute` with\n :py:obj:`~.cudaDevAttrIpcEventSupport`\n\n Parameters\n ----------\n event : :py:obj:`~.CUevent` or :py:obj:`~.cudaEvent_t`\n Event allocated with :py:obj:`~.cudaEventInterprocess` and\n :py:obj:`~.cudaEventDisableTiming` flags.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorMemoryAllocation`, :py:obj:`~.cudaErrorMapBufferObjectFailed`, :py:obj:`~.cudaErrorNotSupported`, :py:obj:`~.cudaErrorInvalidValue`\n handle : :py:obj:`~.cudaIpcEventHandle_t`\n Pointer to a user allocated cudaIpcEventHandle in which to return\n the opaque event handle\n\n See Also\n --------\n :py:obj:`~.cuda""EventCreate`, :py:obj:`~.cudaEventDestroy`, :py:obj:`~.cudaEventSynchronize`, :py:obj:`~.cudaEventQuery`, :py:obj:`~.cudaStreamWaitEvent`, :py:obj:`~.cudaIpcOpenEventHandle`, :py:obj:`~.cudaIpcGetMemHandle`, :py:obj:`~.cudaIpcOpenMemHandle`, :py:obj:`~.cudaIpcCloseMemHandle`, :py:obj:`~.cuIpcGetEventHandle`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_21cudaIpcGetEventHandle = {"cudaIpcGetEventHandle", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_21cudaIpcGetEventHandle, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaIpcGetEventHandle}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_event_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_event_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12983, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaIpcGetEventHandle") < 0)) __PYX_ERR(0, 12983, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_event = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaIpcGetEventHandle", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 12983, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaIpcGetEventHandle", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_20cudaIpcGetEventHandle(__pyx_self, __pyx_v_event); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_20cudaIpcGetEventHandle(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_event) { cudaEvent_t __pyx_v_cevent; PyObject *__pyx_v_pevent = NULL; struct __pyx_obj_4cuda_6cudart_cudaIpcEventHandle_t *__pyx_v_handle = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__352) __Pyx_RefNannySetupContext("cudaIpcGetEventHandle", 1); __Pyx_TraceCall("cudaIpcGetEventHandle", __pyx_f[0], 12983, 0, __PYX_ERR(0, 12983, __pyx_L1_error)); /* "cuda/cudart.pyx":13027 * """ * cdef ccudart.cudaEvent_t cevent * if event is None: # <<<<<<<<<<<<<< * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): */ __pyx_t_1 = (__pyx_v_event == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":13028 * cdef ccudart.cudaEvent_t cevent * if event is None: * cevent = 0 # <<<<<<<<<<<<<< * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) */ __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":13027 * """ * cdef ccudart.cudaEvent_t cevent * if event is None: # <<<<<<<<<<<<<< * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":13029 * if event is None: * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pevent = int(event) * cevent = pevent */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUevent); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":13030 * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) # <<<<<<<<<<<<<< * cevent = pevent * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13030, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pevent = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":13031 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) * cevent = pevent # <<<<<<<<<<<<<< * else: * pevent = int(cudaEvent_t(event)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13031, __pyx_L1_error) __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":13029 * if event is None: * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pevent = int(event) * cevent = pevent */ goto __pyx_L3; } /* "cuda/cudart.pyx":13033 * cevent = pevent * else: * pevent = int(cudaEvent_t(event)) # <<<<<<<<<<<<<< * cevent = pevent * cdef cudaIpcEventHandle_t handle = cudaIpcEventHandle_t() */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEvent_t), __pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13033, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 13033, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pevent = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":13034 * else: * pevent = int(cudaEvent_t(event)) * cevent = pevent # <<<<<<<<<<<<<< * cdef cudaIpcEventHandle_t handle = cudaIpcEventHandle_t() * err = ccudart.cudaIpcGetEventHandle(handle._ptr, cevent) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13034, __pyx_L1_error) __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":13035 * pevent = int(cudaEvent_t(event)) * cevent = pevent * cdef cudaIpcEventHandle_t handle = cudaIpcEventHandle_t() # <<<<<<<<<<<<<< * err = ccudart.cudaIpcGetEventHandle(handle._ptr, cevent) * return (cudaError_t(err), handle) */ __pyx_t_5 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaIpcEventHandle_t)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 13035, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_handle = ((struct __pyx_obj_4cuda_6cudart_cudaIpcEventHandle_t *)__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":13036 * cevent = pevent * cdef cudaIpcEventHandle_t handle = cudaIpcEventHandle_t() * err = ccudart.cudaIpcGetEventHandle(handle._ptr, cevent) # <<<<<<<<<<<<<< * return (cudaError_t(err), handle) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaIpcGetEventHandle(((cudaIpcEventHandle_t *)__pyx_v_handle->__pyx_base._ptr), __pyx_v_cevent); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 13036, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":13037 * cdef cudaIpcEventHandle_t handle = cudaIpcEventHandle_t() * err = ccudart.cudaIpcGetEventHandle(handle._ptr, cevent) * return (cudaError_t(err), handle) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13037, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 13037, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 13037, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13037, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 13037, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_handle); __Pyx_GIVEREF((PyObject *)__pyx_v_handle); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_v_handle))) __PYX_ERR(0, 13037, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":12983 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":13039 * return (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_6cudart_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_6cudart_22cudaIpcOpenEventHandle, "cudaIpcOpenEventHandle(cudaIpcEventHandle_t handle: cudaIpcEventHandle_t)\n Opens an interprocess event handle for use in the current process.\n\n Opens 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\n the :py:obj:`~.cudaEventDisableTiming` flag specified. This event must\n be freed with :py:obj:`~.cudaEventDestroy`.\n\n Performing operations on the imported event after the exported event\n has been freed with :py:obj:`~.cudaEventDestroy` will result in\n undefined behavior.\n\n IPC functionality is restricted to devices with support for unified\n addressing on Linux and Windows operating systems. IPC functionality on\n Windows is supported for compatibility purposes but not recommended as\n it comes with performance cost. Users can test their device for IPC\n functionality by calling :py:obj:`~.cudaDeviceGetAttribute` with\n :py:obj:`~.cudaDevAttrIpcEventSupport`\n\n Parameters\n ----------\n handle : :py:obj:`~.cudaIpcEventHandle_t`\n Interprocess handle to open\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorMapBufferObjectFailed`, :py:obj:`~.cudaErrorNotSupported`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorDeviceUninitialized`\n event : :py:obj:`~.cudaEvent_t`\n Returns the imported event\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_23cudaIpcOpenEventHandle = {"cudaIpcOpenEventHandle", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_23cudaIpcOpenEventHandle, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_22cudaIpcOpenEventHandle}; static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_handle_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_handle_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 13039, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaIpcOpenEventHandle") < 0)) __PYX_ERR(0, 13039, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_handle = ((struct __pyx_obj_4cuda_6cudart_cudaIpcEventHandle_t *)values[0]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaIpcOpenEventHandle", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 13039, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaIpcEventHandle_t, 0, "handle", 0))) __PYX_ERR(0, 13040, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_22cudaIpcOpenEventHandle(__pyx_self, __pyx_v_handle); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_22cudaIpcOpenEventHandle(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_6cudart_cudaIpcEventHandle_t *__pyx_v_handle) { struct __pyx_obj_4cuda_6cudart_cudaEvent_t *__pyx_v_event = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; cudaError_t __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__353) __Pyx_RefNannySetupContext("cudaIpcOpenEventHandle", 1); __Pyx_TraceCall("cudaIpcOpenEventHandle", __pyx_f[0], 13039, 0, __PYX_ERR(0, 13039, __pyx_L1_error)); /* "cuda/cudart.pyx":13076 * :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() # <<<<<<<<<<<<<< * err = ccudart.cudaIpcOpenEventHandle(event._ptr, handle._ptr[0]) * return (cudaError_t(err), event) */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEvent_t)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13076, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_event = ((struct __pyx_obj_4cuda_6cudart_cudaEvent_t *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":13077 * """ * cdef cudaEvent_t event = cudaEvent_t() * err = ccudart.cudaIpcOpenEventHandle(event._ptr, handle._ptr[0]) # <<<<<<<<<<<<<< * return (cudaError_t(err), event) * */ __pyx_t_2 = __pyx_f_4cuda_7ccudart_cudaIpcOpenEventHandle(((cudaEvent_t *)__pyx_v_event->__pyx_base._ptr), (__pyx_v_handle->__pyx_base._ptr[0])); if (unlikely(__pyx_t_2 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 13077, __pyx_L1_error) __pyx_v_err = __pyx_t_2; /* "cuda/cudart.pyx":13078 * cdef cudaEvent_t event = cudaEvent_t() * err = ccudart.cudaIpcOpenEventHandle(event._ptr, handle._ptr[0]) * return (cudaError_t(err), event) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13078, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13078, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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, 13078, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13078, __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)) __PYX_ERR(0, 13078, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_event); __Pyx_GIVEREF((PyObject *)__pyx_v_event); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_v_event))) __PYX_ERR(0, 13078, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":13039 * return (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_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaIpcOpenEventHandle", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_event); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":13080 * return (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_6cudart_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_6cudart_24cudaIpcGetMemHandle, "cudaIpcGetMemHandle(devPtr)\n Gets an interprocess memory handle for an existing device memory allocation.\n\n Takes a pointer to the base of an existing device memory allocation\n created with :py:obj:`~.cudaMalloc` and exports it for use in another\n process. This is a lightweight operation and may be called multiple\n times on an allocation without adverse effects.\n\n If a region of memory is freed with :py:obj:`~.cudaFree` and a\n subsequent call to :py:obj:`~.cudaMalloc` returns memory with the same\n device address, :py:obj:`~.cudaIpcGetMemHandle` will return a unique\n handle for the new memory.\n\n IPC functionality is restricted to devices with support for unified\n addressing on Linux and Windows operating systems. IPC functionality on\n Windows is supported for compatibility purposes but not recommended as\n it comes with performance cost. Users can test their device for IPC\n functionality by calling :py:obj:`~.cudaDeviceGetAttribute` with\n :py:obj:`~.cudaDevAttrIpcEventSupport`\n\n Parameters\n ----------\n devPtr : Any\n Base pointer to previously allocated device memory\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorMemoryAllocation`, :py:obj:`~.cudaErrorMapBufferObjectFailed`, :py:obj:`~.cudaErrorNotSupported`, :py:obj:`~.cudaErrorInvalidValue`\n handle : :py:obj:`~.cudaIpcMemHandle_t`\n Pointer to user allocated :py:obj:`~.cudaIpcMemHandle` to return\n the handle in.\n\n See Also\n --------\n :py:obj:`~.cudaMalloc`, :py:obj:`~.cudaFree`, :py:obj:`~.cudaIpcGetEventHandle`, :py:obj:`~.cudaIpcOpenEventHandle`, :py:obj:`~.cudaIpcOpenMemHandle`, :py:obj:`~.cudaIpcCloseMemHandle`, :py:obj:`~.cuIpcGetMemHandle`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_25cudaIpcGetMemHandle = {"cudaIpcGetMemHandle", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_25cudaIpcGetMemHandle, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_24cudaIpcGetMemHandle}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_devPtr_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_devPtr_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 13080, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaIpcGetMemHandle") < 0)) __PYX_ERR(0, 13080, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_devPtr = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaIpcGetMemHandle", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 13080, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaIpcGetMemHandle", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_24cudaIpcGetMemHandle(__pyx_self, __pyx_v_devPtr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_24cudaIpcGetMemHandle(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_devPtr) { struct __pyx_obj_4cuda_6cudart_cudaIpcMemHandle_t *__pyx_v_handle = 0; PyObject *__pyx_v_cdevPtr = NULL; void *__pyx_v_cdevPtr_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; cudaError_t __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; unsigned int __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__354) __Pyx_RefNannySetupContext("cudaIpcGetMemHandle", 1); __Pyx_TraceCall("cudaIpcGetMemHandle", __pyx_f[0], 13080, 0, __PYX_ERR(0, 13080, __pyx_L1_error)); /* "cuda/cudart.pyx":13118 * :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() # <<<<<<<<<<<<<< * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaIpcMemHandle_t)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13118, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_handle = ((struct __pyx_obj_4cuda_6cudart_cudaIpcMemHandle_t *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":13119 * """ * cdef cudaIpcMemHandle_t handle = cudaIpcMemHandle_t() * cdevPtr = utils.HelperInputVoidPtr(devPtr) # <<<<<<<<<<<<<< * cdef void* cdevPtr_ptr = cdevPtr.cptr * err = ccudart.cudaIpcGetMemHandle(handle._ptr, cdevPtr_ptr) */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_devPtr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13119, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_cdevPtr = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":13120 * cdef cudaIpcMemHandle_t handle = cudaIpcMemHandle_t() * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr # <<<<<<<<<<<<<< * err = ccudart.cudaIpcGetMemHandle(handle._ptr, cdevPtr_ptr) * return (cudaError_t(err), handle) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_cdevPtr, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13120, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13120, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cdevPtr_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":13121 * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr * err = ccudart.cudaIpcGetMemHandle(handle._ptr, cdevPtr_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err), handle) * */ __pyx_t_3 = __pyx_f_4cuda_7ccudart_cudaIpcGetMemHandle(((cudaIpcMemHandle_t *)__pyx_v_handle->__pyx_base._ptr), __pyx_v_cdevPtr_ptr); if (unlikely(__pyx_t_3 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 13121, __pyx_L1_error) __pyx_v_err = __pyx_t_3; /* "cuda/cudart.pyx":13122 * cdef void* cdevPtr_ptr = cdevPtr.cptr * err = ccudart.cudaIpcGetMemHandle(handle._ptr, cdevPtr_ptr) * return (cudaError_t(err), handle) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13122, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 13122, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_7 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_5}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13122, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13122, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1)) __PYX_ERR(0, 13122, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_handle); __Pyx_GIVEREF((PyObject *)__pyx_v_handle); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, ((PyObject *)__pyx_v_handle))) __PYX_ERR(0, 13122, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":13080 * return (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_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("cuda.cudart.cudaIpcGetMemHandle", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_handle); __Pyx_XDECREF(__pyx_v_cdevPtr); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":13124 * return (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_6cudart_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_6cudart_26cudaIpcOpenMemHandle, "cudaIpcOpenMemHandle(cudaIpcMemHandle_t handle: cudaIpcMemHandle_t, unsigned int flags)\n Opens an interprocess memory handle exported from another process and returns a device pointer usable in the local process.\n\n Maps memory exported from another process with\n :py:obj:`~.cudaIpcGetMemHandle` into the current device address space.\n For contexts on different devices :py:obj:`~.cudaIpcOpenMemHandle` can\n attempt to enable peer access between the devices as if the user called\n :py:obj:`~.cudaDeviceEnablePeerAccess`. This behavior is controlled by\n the :py:obj:`~.cudaIpcMemLazyEnablePeerAccess` flag.\n :py:obj:`~.cudaDeviceCanAccessPeer` can determine if a mapping is\n possible.\n\n :py:obj:`~.cudaIpcOpenMemHandle` can open handles to devices that may\n not be visible in the process calling the API.\n\n Contexts that may open :py:obj:`~.cudaIpcMemHandles` are restricted in\n the following way. :py:obj:`~.cudaIpcMemHandles` from each device in a\n given process may only be opened by one context per device per other\n process.\n\n If the memory handle has already been opened by the current context,\n the reference count on the handle is incremented by 1 and the existing\n device pointer is returned.\n\n Memory returned from :py:obj:`~.cudaIpcOpenMemHandle` must be freed\n with :py:obj:`~.cudaIpcCloseMemHandle`.\n\n Calling :py:obj:`~.cudaFree` on an exported memory region before\n calling :py:obj:`~.cudaIpcCloseMemHandle` in the importing context will\n result in undefined behavior.\n\n IPC functionality is restricted to devices with support for unified\n addressing on Linux and Windows operating systems. IPC functionality on\n Windows is supported for compatibility purposes but not recommended as\n it comes with performance cost. Users can test their device for IPC\n functionality by calling :py:obj:`~.cudaDeviceGetAttribute` with\n :py:obj:`~.cudaDevAttrIpcEventSupport`\n\n P""arameters\n ----------\n handle : :py:obj:`~.cudaIpcMemHandle_t`\n :py:obj:`~.cudaIpcMemHandle` to open\n flags : unsigned int\n Flags for this operation. Must be specified as\n :py:obj:`~.cudaIpcMemLazyEnablePeerAccess`\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorMapBufferObjectFailed`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorDeviceUninitialized`, :py:obj:`~.cudaErrorTooManyPeers`, :py:obj:`~.cudaErrorNotSupported`, :py:obj:`~.cudaErrorInvalidValue`\n devPtr : Any\n Returned device pointer\n\n See 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\n Notes\n -----\n No guarantees are made about the address returned in `*devPtr`. \n In particular, multiple processes may not receive the same address for the same `handle`.\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_27cudaIpcOpenMemHandle = {"cudaIpcOpenMemHandle", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_27cudaIpcOpenMemHandle, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_26cudaIpcOpenMemHandle}; static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_handle_2,&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_handle_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 13124, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 13124, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaIpcOpenMemHandle", 1, 2, 2, 1); __PYX_ERR(0, 13124, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaIpcOpenMemHandle") < 0)) __PYX_ERR(0, 13124, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_handle = ((struct __pyx_obj_4cuda_6cudart_cudaIpcMemHandle_t *)values[0]); __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[1]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 13125, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaIpcOpenMemHandle", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 13124, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaIpcMemHandle_t, 0, "handle", 0))) __PYX_ERR(0, 13125, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_26cudaIpcOpenMemHandle(__pyx_self, __pyx_v_handle, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_26cudaIpcOpenMemHandle(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_6cudart_cudaIpcMemHandle_t *__pyx_v_handle, unsigned int __pyx_v_flags) { __pyx_t_4cuda_6cudart_void_ptr __pyx_v_devPtr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__355) __Pyx_RefNannySetupContext("cudaIpcOpenMemHandle", 1); __Pyx_TraceCall("cudaIpcOpenMemHandle", __pyx_f[0], 13124, 0, __PYX_ERR(0, 13124, __pyx_L1_error)); /* "cuda/cudart.pyx":13187 * In particular, multiple processes may not receive the same address for the same `handle`. * """ * cdef void_ptr devPtr = 0 # <<<<<<<<<<<<<< * err = ccudart.cudaIpcOpenMemHandle(&devPtr, handle._ptr[0], flags) * return (cudaError_t(err), devPtr) */ __pyx_v_devPtr = 0; /* "cuda/cudart.pyx":13188 * """ * cdef void_ptr devPtr = 0 * err = ccudart.cudaIpcOpenMemHandle(&devPtr, handle._ptr[0], flags) # <<<<<<<<<<<<<< * return (cudaError_t(err), devPtr) * */ __pyx_t_1 = __pyx_f_4cuda_7ccudart_cudaIpcOpenMemHandle(((void **)(&__pyx_v_devPtr)), (__pyx_v_handle->__pyx_base._ptr[0]), __pyx_v_flags); if (unlikely(__pyx_t_1 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 13188, __pyx_L1_error) __pyx_v_err = __pyx_t_1; /* "cuda/cudart.pyx":13189 * cdef void_ptr devPtr = 0 * err = ccudart.cudaIpcOpenMemHandle(&devPtr, handle._ptr[0], flags) * return (cudaError_t(err), devPtr) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13189, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13189, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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(0, 13189, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(__pyx_v_devPtr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13189, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13189, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 13189, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3)) __PYX_ERR(0, 13189, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_3 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":13124 * return (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_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaIpcOpenMemHandle", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":13191 * return (cudaError_t(err), devPtr) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaIpcCloseMemHandle(devPtr): * """ Attempts to close memory mapped with cudaIpcOpenMemHandle. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_28cudaIpcCloseMemHandle, "cudaIpcCloseMemHandle(devPtr)\n Attempts to close memory mapped with cudaIpcOpenMemHandle.\n\n Decrements the reference count of the memory returnd by\n :py:obj:`~.cudaIpcOpenMemHandle` by 1. When the reference count reaches\n 0, this API unmaps the memory. The original allocation in the exporting\n process as well as imported mappings in other processes will be\n unaffected.\n\n Any resources used to enable peer access will be freed if this is the\n last mapping using them.\n\n IPC functionality is restricted to devices with support for unified\n addressing on Linux and Windows operating systems. IPC functionality on\n Windows is supported for compatibility purposes but not recommended as\n it comes with performance cost. Users can test their device for IPC\n functionality by calling :py:obj:`~.cudaDeviceGetAttribute` with\n :py:obj:`~.cudaDevAttrIpcEventSupport`\n\n Parameters\n ----------\n devPtr : Any\n Device pointer returned by :py:obj:`~.cudaIpcOpenMemHandle`\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorMapBufferObjectFailed`, :py:obj:`~.cudaErrorNotSupported`, :py:obj:`~.cudaErrorInvalidValue`\n\n See Also\n --------\n :py:obj:`~.cudaMalloc`, :py:obj:`~.cudaFree`, :py:obj:`~.cudaIpcGetEventHandle`, :py:obj:`~.cudaIpcOpenEventHandle`, :py:obj:`~.cudaIpcGetMemHandle`, :py:obj:`~.cudaIpcOpenMemHandle`, :py:obj:`~.cuIpcCloseMemHandle`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_29cudaIpcCloseMemHandle = {"cudaIpcCloseMemHandle", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_29cudaIpcCloseMemHandle, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_28cudaIpcCloseMemHandle}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_devPtr_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_devPtr_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 13191, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaIpcCloseMemHandle") < 0)) __PYX_ERR(0, 13191, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_devPtr = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaIpcCloseMemHandle", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 13191, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaIpcCloseMemHandle", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_28cudaIpcCloseMemHandle(__pyx_self, __pyx_v_devPtr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_28cudaIpcCloseMemHandle(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_devPtr) { PyObject *__pyx_v_cdevPtr = NULL; void *__pyx_v_cdevPtr_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; cudaError_t __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; unsigned int __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__356) __Pyx_RefNannySetupContext("cudaIpcCloseMemHandle", 1); __Pyx_TraceCall("cudaIpcCloseMemHandle", __pyx_f[0], 13191, 0, __PYX_ERR(0, 13191, __pyx_L1_error)); /* "cuda/cudart.pyx":13225 * :py:obj:`~.cudaMalloc`, :py:obj:`~.cudaFree`, :py:obj:`~.cudaIpcGetEventHandle`, :py:obj:`~.cudaIpcOpenEventHandle`, :py:obj:`~.cudaIpcGetMemHandle`, :py:obj:`~.cudaIpcOpenMemHandle`, :py:obj:`~.cuIpcCloseMemHandle` * """ * cdevPtr = utils.HelperInputVoidPtr(devPtr) # <<<<<<<<<<<<<< * cdef void* cdevPtr_ptr = cdevPtr.cptr * err = ccudart.cudaIpcCloseMemHandle(cdevPtr_ptr) */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_devPtr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_cdevPtr = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":13226 * """ * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr # <<<<<<<<<<<<<< * err = ccudart.cudaIpcCloseMemHandle(cdevPtr_ptr) * return (cudaError_t(err),) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_cdevPtr, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13226, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13226, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cdevPtr_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":13227 * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr * err = ccudart.cudaIpcCloseMemHandle(cdevPtr_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_3 = __pyx_f_4cuda_7ccudart_cudaIpcCloseMemHandle(__pyx_v_cdevPtr_ptr); if (unlikely(__pyx_t_3 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 13227, __pyx_L1_error) __pyx_v_err = __pyx_t_3; /* "cuda/cudart.pyx":13228 * cdef void* cdevPtr_ptr = cdevPtr.cptr * err = ccudart.cudaIpcCloseMemHandle(cdevPtr_ptr) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13228, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 13228, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_7 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_5}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13228, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13228, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1)) __PYX_ERR(0, 13228, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":13191 * return (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_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("cuda.cudart.cudaIpcCloseMemHandle", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_cdevPtr); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":13230 * return (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_6cudart_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_6cudart_30cudaDeviceFlushGPUDirectRDMAWrites, "cudaDeviceFlushGPUDirectRDMAWrites(target: cudaFlushGPUDirectRDMAWritesTarget, scope: cudaFlushGPUDirectRDMAWritesScope)\n Blocks until remote writes are visible to the specified scope.\n\n Blocks until remote writes to the target context via mappings created\n through GPUDirect RDMA APIs, like nvidia_p2p_get_pages (see\n https://docs.nvidia.com/cuda/gpudirect-rdma for more information), are\n visible to the specified scope.\n\n If the scope equals or lies within the scope indicated by\n :py:obj:`~.cudaDevAttrGPUDirectRDMAWritesOrdering`, the call will be a\n no-op and can be safely omitted for performance. This can be determined\n by comparing the numerical values between the two enums, with smaller\n scopes having smaller values.\n\n Users may query support for this API via\n :py:obj:`~.cudaDevAttrGPUDirectRDMAFlushWritesOptions`.\n\n Parameters\n ----------\n target : :py:obj:`~.cudaFlushGPUDirectRDMAWritesTarget`\n The target of the operation, see cudaFlushGPUDirectRDMAWritesTarget\n scope : :py:obj:`~.cudaFlushGPUDirectRDMAWritesScope`\n The scope of the operation, see cudaFlushGPUDirectRDMAWritesScope\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorNotSupported`,\n\n See Also\n --------\n :py:obj:`~.cuFlushGPUDirectRDMAWrites`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_31cudaDeviceFlushGPUDirectRDMAWrites = {"cudaDeviceFlushGPUDirectRDMAWrites", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_31cudaDeviceFlushGPUDirectRDMAWrites, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_30cudaDeviceFlushGPUDirectRDMAWrites}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_target,&__pyx_n_s_scope,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_target)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 13230, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_scope)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 13230, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaDeviceFlushGPUDirectRDMAWrites", 1, 2, 2, 1); __PYX_ERR(0, 13230, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaDeviceFlushGPUDirectRDMAWrites") < 0)) __PYX_ERR(0, 13230, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __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, 13230, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 13231, __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, 13231, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_30cudaDeviceFlushGPUDirectRDMAWrites(__pyx_self, __pyx_v_target, __pyx_v_scope); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_30cudaDeviceFlushGPUDirectRDMAWrites(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_target, PyObject *__pyx_v_scope) { enum cudaFlushGPUDirectRDMAWritesTarget __pyx_v_ctarget; enum cudaFlushGPUDirectRDMAWritesScope __pyx_v_cscope; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__357) __Pyx_RefNannySetupContext("cudaDeviceFlushGPUDirectRDMAWrites", 1); __Pyx_TraceCall("cudaDeviceFlushGPUDirectRDMAWrites", __pyx_f[0], 13230, 0, __PYX_ERR(0, 13230, __pyx_L1_error)); /* "cuda/cudart.pyx":13264 * :py:obj:`~.cuFlushGPUDirectRDMAWrites` * """ * cdef ccudart.cudaFlushGPUDirectRDMAWritesTarget ctarget = target.value # <<<<<<<<<<<<<< * cdef ccudart.cudaFlushGPUDirectRDMAWritesScope cscope = scope.value * err = ccudart.cudaDeviceFlushGPUDirectRDMAWrites(ctarget, cscope) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_target, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13264, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaFlushGPUDirectRDMAWritesTarget)__Pyx_PyInt_As_enum__cudaFlushGPUDirectRDMAWritesTarget(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 13264, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_ctarget = __pyx_t_2; /* "cuda/cudart.pyx":13265 * """ * cdef ccudart.cudaFlushGPUDirectRDMAWritesTarget ctarget = target.value * cdef ccudart.cudaFlushGPUDirectRDMAWritesScope cscope = scope.value # <<<<<<<<<<<<<< * err = ccudart.cudaDeviceFlushGPUDirectRDMAWrites(ctarget, cscope) * return (cudaError_t(err),) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_scope, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13265, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = ((enum cudaFlushGPUDirectRDMAWritesScope)__Pyx_PyInt_As_enum__cudaFlushGPUDirectRDMAWritesScope(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 13265, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cscope = __pyx_t_3; /* "cuda/cudart.pyx":13266 * cdef ccudart.cudaFlushGPUDirectRDMAWritesTarget ctarget = target.value * cdef ccudart.cudaFlushGPUDirectRDMAWritesScope cscope = scope.value * err = ccudart.cudaDeviceFlushGPUDirectRDMAWrites(ctarget, cscope) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_4 = __pyx_f_4cuda_7ccudart_cudaDeviceFlushGPUDirectRDMAWrites(__pyx_v_ctarget, __pyx_v_cscope); if (unlikely(__pyx_t_4 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 13266, __pyx_L1_error) __pyx_v_err = __pyx_t_4; /* "cuda/cudart.pyx":13267 * cdef ccudart.cudaFlushGPUDirectRDMAWritesScope cscope = scope.value * err = ccudart.cudaDeviceFlushGPUDirectRDMAWrites(ctarget, cscope) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 13267, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13267, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13267, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 13267, __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)) __PYX_ERR(0, 13267, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":13230 * return (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_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.cudaDeviceFlushGPUDirectRDMAWrites", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":13269 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceRegisterAsyncNotification(int device, callbackFunc, userData): * """ Registers a callback function to receive async notifications. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_32cudaDeviceRegisterAsyncNotification, "cudaDeviceRegisterAsyncNotification(int device, callbackFunc, userData)\n Registers a callback function to receive async notifications.\n\n Registers `callbackFunc` to receive async notifications.\n\n The `userData` parameter is passed to the callback function at async\n notification time. Likewise, `callback` is also passed to the callback\n function to distinguish between multiple registered callbacks.\n\n The callback function being registered should be designed to return\n quickly (~10ms). Any long running tasks should be queued for execution\n on an application thread.\n\n Callbacks may not call cudaDeviceRegisterAsyncNotification or\n cudaDeviceUnregisterAsyncNotification. Doing so will result in\n :py:obj:`~.cudaErrorNotPermitted`. Async notification callbacks execute\n in an undefined order and may be serialized.\n\n Returns in `*callback` a handle representing the registered callback\n instance.\n\n Parameters\n ----------\n device : int\n The device on which to register the callback\n callbackFunc : :py:obj:`~.cudaAsyncCallback`\n The function to register as a callback\n userData : Any\n A generic pointer to user data. This is passed into the callback\n function.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess` :py:obj:`~.cudaErrorNotSupported` :py:obj:`~.cudaErrorInvalidDevice` :py:obj:`~.cudaErrorInvalidValue` :py:obj:`~.cudaErrorNotPermitted` :py:obj:`~.cudaErrorUnknown`\n callback : :py:obj:`~.cudaAsyncCallbackHandle_t`\n A handle representing the registered callback instance\n\n See Also\n --------\n :py:obj:`~.cudaDeviceUnregisterAsyncNotification`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_33cudaDeviceRegisterAsyncNotification = {"cudaDeviceRegisterAsyncNotification", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_33cudaDeviceRegisterAsyncNotification, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_32cudaDeviceRegisterAsyncNotification}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_device_2,&__pyx_n_s_callbackFunc,&__pyx_n_s_userData_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_device_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 13269, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_callbackFunc)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 13269, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaDeviceRegisterAsyncNotification", 1, 3, 3, 1); __PYX_ERR(0, 13269, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_userData_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 13269, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaDeviceRegisterAsyncNotification", 1, 3, 3, 2); __PYX_ERR(0, 13269, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaDeviceRegisterAsyncNotification") < 0)) __PYX_ERR(0, 13269, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_device = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 13270, __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, 13269, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaDeviceRegisterAsyncNotification", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_32cudaDeviceRegisterAsyncNotification(__pyx_self, __pyx_v_device, __pyx_v_callbackFunc, __pyx_v_userData); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_32cudaDeviceRegisterAsyncNotification(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device, PyObject *__pyx_v_callbackFunc, PyObject *__pyx_v_userData) { cudaAsyncCallback __pyx_v_ccallbackFunc; PyObject *__pyx_v_pcallbackFunc = NULL; PyObject *__pyx_v_cuserData = NULL; void *__pyx_v_cuserData_ptr; struct __pyx_obj_4cuda_6cudart_cudaAsyncCallbackHandle_t *__pyx_v_callback = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; cudaError_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__358) __Pyx_RefNannySetupContext("cudaDeviceRegisterAsyncNotification", 1); __Pyx_TraceCall("cudaDeviceRegisterAsyncNotification", __pyx_f[0], 13269, 0, __PYX_ERR(0, 13269, __pyx_L1_error)); /* "cuda/cudart.pyx":13313 * """ * cdef ccudart.cudaAsyncCallback ccallbackFunc * if callbackFunc is None: # <<<<<<<<<<<<<< * ccallbackFunc = 0 * elif isinstance(callbackFunc, (cudaAsyncCallback,)): */ __pyx_t_1 = (__pyx_v_callbackFunc == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":13314 * cdef ccudart.cudaAsyncCallback ccallbackFunc * if callbackFunc is None: * ccallbackFunc = 0 # <<<<<<<<<<<<<< * elif isinstance(callbackFunc, (cudaAsyncCallback,)): * pcallbackFunc = int(callbackFunc) */ __pyx_v_ccallbackFunc = ((cudaAsyncCallback)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":13313 * """ * cdef ccudart.cudaAsyncCallback ccallbackFunc * if callbackFunc is None: # <<<<<<<<<<<<<< * ccallbackFunc = 0 * elif isinstance(callbackFunc, (cudaAsyncCallback,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":13315 * if callbackFunc is None: * ccallbackFunc = 0 * elif isinstance(callbackFunc, (cudaAsyncCallback,)): # <<<<<<<<<<<<<< * pcallbackFunc = int(callbackFunc) * ccallbackFunc = pcallbackFunc */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_callbackFunc, __pyx_ptype_4cuda_6cudart_cudaAsyncCallback); if (__pyx_t_1) { /* "cuda/cudart.pyx":13316 * ccallbackFunc = 0 * elif isinstance(callbackFunc, (cudaAsyncCallback,)): * pcallbackFunc = int(callbackFunc) # <<<<<<<<<<<<<< * ccallbackFunc = pcallbackFunc * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_callbackFunc); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13316, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_pcallbackFunc = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":13317 * elif isinstance(callbackFunc, (cudaAsyncCallback,)): * pcallbackFunc = int(callbackFunc) * ccallbackFunc = pcallbackFunc # <<<<<<<<<<<<<< * else: * pcallbackFunc = int(cudaAsyncCallback(callbackFunc)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pcallbackFunc); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13317, __pyx_L1_error) __pyx_v_ccallbackFunc = ((cudaAsyncCallback)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":13315 * if callbackFunc is None: * ccallbackFunc = 0 * elif isinstance(callbackFunc, (cudaAsyncCallback,)): # <<<<<<<<<<<<<< * pcallbackFunc = int(callbackFunc) * ccallbackFunc = pcallbackFunc */ goto __pyx_L3; } /* "cuda/cudart.pyx":13319 * ccallbackFunc = pcallbackFunc * else: * pcallbackFunc = int(cudaAsyncCallback(callbackFunc)) # <<<<<<<<<<<<<< * ccallbackFunc = pcallbackFunc * cuserData = utils.HelperInputVoidPtr(userData) */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaAsyncCallback), __pyx_v_callbackFunc); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13319, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13319, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_pcallbackFunc = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":13320 * else: * pcallbackFunc = int(cudaAsyncCallback(callbackFunc)) * ccallbackFunc = pcallbackFunc # <<<<<<<<<<<<<< * cuserData = utils.HelperInputVoidPtr(userData) * cdef void* cuserData_ptr = cuserData.cptr */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pcallbackFunc); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13320, __pyx_L1_error) __pyx_v_ccallbackFunc = ((cudaAsyncCallback)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":13321 * pcallbackFunc = int(cudaAsyncCallback(callbackFunc)) * ccallbackFunc = pcallbackFunc * cuserData = utils.HelperInputVoidPtr(userData) # <<<<<<<<<<<<<< * cdef void* cuserData_ptr = cuserData.cptr * cdef cudaAsyncCallbackHandle_t callback = cudaAsyncCallbackHandle_t() */ __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_userData); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13321, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_cuserData = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":13322 * ccallbackFunc = pcallbackFunc * cuserData = utils.HelperInputVoidPtr(userData) * cdef void* cuserData_ptr = cuserData.cptr # <<<<<<<<<<<<<< * cdef cudaAsyncCallbackHandle_t callback = cudaAsyncCallbackHandle_t() * err = ccudart.cudaDeviceRegisterAsyncNotification(device, ccallbackFunc, cuserData_ptr, callback._ptr) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_cuserData, __pyx_n_s_cptr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13322, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_4); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13322, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_cuserData_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":13323 * cuserData = utils.HelperInputVoidPtr(userData) * cdef void* cuserData_ptr = cuserData.cptr * cdef cudaAsyncCallbackHandle_t callback = cudaAsyncCallbackHandle_t() # <<<<<<<<<<<<<< * err = ccudart.cudaDeviceRegisterAsyncNotification(device, ccallbackFunc, cuserData_ptr, callback._ptr) * return (cudaError_t(err), callback) */ __pyx_t_4 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaAsyncCallbackHandle_t)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13323, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_callback = ((struct __pyx_obj_4cuda_6cudart_cudaAsyncCallbackHandle_t *)__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":13324 * cdef void* cuserData_ptr = cuserData.cptr * cdef cudaAsyncCallbackHandle_t callback = cudaAsyncCallbackHandle_t() * err = ccudart.cudaDeviceRegisterAsyncNotification(device, ccallbackFunc, cuserData_ptr, callback._ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err), callback) * */ __pyx_t_5 = __pyx_f_4cuda_7ccudart_cudaDeviceRegisterAsyncNotification(__pyx_v_device, __pyx_v_ccallbackFunc, __pyx_v_cuserData_ptr, ((cudaAsyncCallbackHandle_t *)__pyx_v_callback->_ptr)); if (unlikely(__pyx_t_5 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 13324, __pyx_L1_error) __pyx_v_err = __pyx_t_5; /* "cuda/cudart.pyx":13325 * cdef cudaAsyncCallbackHandle_t callback = cudaAsyncCallbackHandle_t() * err = ccudart.cudaDeviceRegisterAsyncNotification(device, ccallbackFunc, cuserData_ptr, callback._ptr) * return (cudaError_t(err), callback) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13325, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13325, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13325, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13325, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 13325, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_callback); __Pyx_GIVEREF((PyObject *)__pyx_v_callback); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_callback))) __PYX_ERR(0, 13325, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":13269 * return (cudaError_t(err),) * * @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_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.cudaDeviceRegisterAsyncNotification", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pcallbackFunc); __Pyx_XDECREF(__pyx_v_cuserData); __Pyx_XDECREF((PyObject *)__pyx_v_callback); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":13327 * return (cudaError_t(err), callback) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceUnregisterAsyncNotification(int device, callback): * """ Unregisters an async notification callback. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_34cudaDeviceUnregisterAsyncNotification, "cudaDeviceUnregisterAsyncNotification(int device, callback)\n Unregisters an async notification callback.\n\n Unregisters `callback` so that the corresponding callback function will\n stop receiving async notifications.\n\n Parameters\n ----------\n device : int\n The device from which to remove `callback`.\n callback : :py:obj:`~.cudaAsyncCallbackHandle_t`\n The callback instance to unregister from receiving async\n notifications.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess` :py:obj:`~.cudaErrorNotSupported` :py:obj:`~.cudaErrorInvalidDevice` :py:obj:`~.cudaErrorInvalidValue` :py:obj:`~.cudaErrorNotPermitted` :py:obj:`~.cudaErrorUnknown`\n\n See Also\n --------\n :py:obj:`~.cudaDeviceRegisterAsyncNotification`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_35cudaDeviceUnregisterAsyncNotification = {"cudaDeviceUnregisterAsyncNotification", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_35cudaDeviceUnregisterAsyncNotification, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_34cudaDeviceUnregisterAsyncNotification}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_device_2,&__pyx_n_s_callback,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_device_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 13327, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_callback)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 13327, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaDeviceUnregisterAsyncNotification", 1, 2, 2, 1); __PYX_ERR(0, 13327, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaDeviceUnregisterAsyncNotification") < 0)) __PYX_ERR(0, 13327, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_device = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 13328, __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, 13327, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaDeviceUnregisterAsyncNotification", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_34cudaDeviceUnregisterAsyncNotification(__pyx_self, __pyx_v_device, __pyx_v_callback); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_34cudaDeviceUnregisterAsyncNotification(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device, PyObject *__pyx_v_callback) { cudaAsyncCallbackHandle_t __pyx_v_ccallback; PyObject *__pyx_v_pcallback = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; cudaError_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__359) __Pyx_RefNannySetupContext("cudaDeviceUnregisterAsyncNotification", 1); __Pyx_TraceCall("cudaDeviceUnregisterAsyncNotification", __pyx_f[0], 13327, 0, __PYX_ERR(0, 13327, __pyx_L1_error)); /* "cuda/cudart.pyx":13352 * """ * cdef ccudart.cudaAsyncCallbackHandle_t ccallback * if callback is None: # <<<<<<<<<<<<<< * ccallback = 0 * elif isinstance(callback, (cudaAsyncCallbackHandle_t,)): */ __pyx_t_1 = (__pyx_v_callback == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":13353 * cdef ccudart.cudaAsyncCallbackHandle_t ccallback * if callback is None: * ccallback = 0 # <<<<<<<<<<<<<< * elif isinstance(callback, (cudaAsyncCallbackHandle_t,)): * pcallback = int(callback) */ __pyx_v_ccallback = ((cudaAsyncCallbackHandle_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":13352 * """ * cdef ccudart.cudaAsyncCallbackHandle_t ccallback * if callback is None: # <<<<<<<<<<<<<< * ccallback = 0 * elif isinstance(callback, (cudaAsyncCallbackHandle_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":13354 * if callback is None: * ccallback = 0 * elif isinstance(callback, (cudaAsyncCallbackHandle_t,)): # <<<<<<<<<<<<<< * pcallback = int(callback) * ccallback = pcallback */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_callback, __pyx_ptype_4cuda_6cudart_cudaAsyncCallbackHandle_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":13355 * ccallback = 0 * elif isinstance(callback, (cudaAsyncCallbackHandle_t,)): * pcallback = int(callback) # <<<<<<<<<<<<<< * ccallback = pcallback * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_callback); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13355, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_pcallback = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":13356 * elif isinstance(callback, (cudaAsyncCallbackHandle_t,)): * pcallback = int(callback) * ccallback = pcallback # <<<<<<<<<<<<<< * else: * pcallback = int(cudaAsyncCallbackHandle_t(callback)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pcallback); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13356, __pyx_L1_error) __pyx_v_ccallback = ((cudaAsyncCallbackHandle_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":13354 * if callback is None: * ccallback = 0 * elif isinstance(callback, (cudaAsyncCallbackHandle_t,)): # <<<<<<<<<<<<<< * pcallback = int(callback) * ccallback = pcallback */ goto __pyx_L3; } /* "cuda/cudart.pyx":13358 * ccallback = pcallback * else: * pcallback = int(cudaAsyncCallbackHandle_t(callback)) # <<<<<<<<<<<<<< * ccallback = pcallback * err = ccudart.cudaDeviceUnregisterAsyncNotification(device, ccallback) */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaAsyncCallbackHandle_t), __pyx_v_callback); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13358, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13358, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_pcallback = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":13359 * else: * pcallback = int(cudaAsyncCallbackHandle_t(callback)) * ccallback = pcallback # <<<<<<<<<<<<<< * err = ccudart.cudaDeviceUnregisterAsyncNotification(device, ccallback) * return (cudaError_t(err),) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pcallback); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13359, __pyx_L1_error) __pyx_v_ccallback = ((cudaAsyncCallbackHandle_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":13360 * pcallback = int(cudaAsyncCallbackHandle_t(callback)) * ccallback = pcallback * err = ccudart.cudaDeviceUnregisterAsyncNotification(device, ccallback) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_5 = __pyx_f_4cuda_7ccudart_cudaDeviceUnregisterAsyncNotification(__pyx_v_device, __pyx_v_ccallback); if (unlikely(__pyx_t_5 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 13360, __pyx_L1_error) __pyx_v_err = __pyx_t_5; /* "cuda/cudart.pyx":13361 * ccallback = pcallback * err = ccudart.cudaDeviceUnregisterAsyncNotification(device, ccallback) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13361, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13361, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13361, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13361, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 13361, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":13327 * return (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_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.cudaDeviceUnregisterAsyncNotification", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pcallback); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":13363 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceGetSharedMemConfig(): * """ Returns the shared memory configuration for the current device. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_37cudaDeviceGetSharedMemConfig(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_36cudaDeviceGetSharedMemConfig, "cudaDeviceGetSharedMemConfig()\n Returns the shared memory configuration for the current device.\n\n [Deprecated]\n\n This function will return in `pConfig` the current size of shared\n memory banks on the current device. On devices with configurable shared\n memory banks, :py:obj:`~.cudaDeviceSetSharedMemConfig` can be used to\n change this setting, so that all subsequent kernel launches will by\n default use the new bank size. When\n :py:obj:`~.cudaDeviceGetSharedMemConfig` is called on devices without\n configurable shared memory, it will return the fixed bank size of the\n hardware.\n\n The 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\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n pConfig : :py:obj:`~.cudaSharedMemConfig`\n Returned cache configuration\n\n See Also\n --------\n :py:obj:`~.cudaDeviceSetCacheConfig`, :py:obj:`~.cudaDeviceGetCacheConfig`, :py:obj:`~.cudaDeviceSetSharedMemConfig`, :py:obj:`~.cudaFuncSetCacheConfig`, :py:obj:`~.cuCtxGetSharedMemConfig`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_37cudaDeviceGetSharedMemConfig = {"cudaDeviceGetSharedMemConfig", (PyCFunction)__pyx_pw_4cuda_6cudart_37cudaDeviceGetSharedMemConfig, METH_NOARGS, __pyx_doc_4cuda_6cudart_36cudaDeviceGetSharedMemConfig}; static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_36cudaDeviceGetSharedMemConfig(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_36cudaDeviceGetSharedMemConfig(CYTHON_UNUSED PyObject *__pyx_self) { enum cudaSharedMemConfig __pyx_v_pConfig; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; unsigned int __pyx_t_6; PyObject *__pyx_t_7 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__360) __Pyx_RefNannySetupContext("cudaDeviceGetSharedMemConfig", 1); __Pyx_TraceCall("cudaDeviceGetSharedMemConfig", __pyx_f[0], 13363, 0, __PYX_ERR(0, 13363, __pyx_L1_error)); /* "cuda/cudart.pyx":13398 * """ * cdef ccudart.cudaSharedMemConfig pConfig * err = ccudart.cudaDeviceGetSharedMemConfig(&pConfig) # <<<<<<<<<<<<<< * return (cudaError_t(err), cudaSharedMemConfig(pConfig)) * */ __pyx_t_1 = __pyx_f_4cuda_7ccudart_cudaDeviceGetSharedMemConfig((&__pyx_v_pConfig)); if (unlikely(__pyx_t_1 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 13398, __pyx_L1_error) __pyx_v_err = __pyx_t_1; /* "cuda/cudart.pyx":13399 * cdef ccudart.cudaSharedMemConfig pConfig * err = ccudart.cudaDeviceGetSharedMemConfig(&pConfig) * return (cudaError_t(err), cudaSharedMemConfig(pConfig)) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13399, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13399, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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(0, 13399, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaSharedMemConfig); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13399, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaSharedMemConfig(__pyx_v_pConfig); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 13399, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_5}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13399, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13399, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 13399, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3)) __PYX_ERR(0, 13399, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_3 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":13363 * return (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_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.cudaDeviceGetSharedMemConfig", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":13401 * return (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_6cudart_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_6cudart_38cudaDeviceSetSharedMemConfig, "cudaDeviceSetSharedMemConfig(config: cudaSharedMemConfig)\n Sets the shared memory configuration for the current device.\n\n [Deprecated]\n\n On devices with configurable shared memory banks, this function will\n set the shared memory bank size which is used for all subsequent kernel\n launches. Any per-function setting of shared memory set via\n :py:obj:`~.cudaFuncSetSharedMemConfig` will override the device wide\n setting.\n\n Changing the shared memory configuration between launches may introduce\n a device side synchronization point.\n\n Changing the shared memory bank size will not increase shared memory\n usage or affect occupancy of kernels, but may have major effects on\n performance. Larger bank sizes will allow for greater potential\n bandwidth to shared memory, but will change what kinds of accesses to\n shared memory will result in bank conflicts.\n\n This function will do nothing on devices with fixed shared memory bank\n size.\n\n The 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\n Parameters\n ----------\n config : :py:obj:`~.cudaSharedMemConfig`\n Requested cache configuration\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\n See Also\n --------\n :py:obj:`~.cudaDeviceSetCacheConfig`, :py:obj:`~.cudaDeviceGetCacheConfig`, :py:obj:`~.cudaDeviceGetSharedMemConfig`, :py:obj:`~.cudaFuncSetCacheConfig`, :py:obj:`~.cuCtxSetSharedMemConfig`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_39cudaDeviceSetSharedMemConfig = {"cudaDeviceSetSharedMemConfig", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_39cudaDeviceSetSharedMemConfig, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_38cudaDeviceSetSharedMemConfig}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_config,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_config)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 13401, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaDeviceSetSharedMemConfig") < 0)) __PYX_ERR(0, 13401, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_config = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaDeviceSetSharedMemConfig", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 13401, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 13402, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_38cudaDeviceSetSharedMemConfig(__pyx_self, __pyx_v_config); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_38cudaDeviceSetSharedMemConfig(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_config) { enum cudaSharedMemConfig __pyx_v_cconfig; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; PyObject *__pyx_t_6 = NULL; unsigned int __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__361) __Pyx_RefNannySetupContext("cudaDeviceSetSharedMemConfig", 1); __Pyx_TraceCall("cudaDeviceSetSharedMemConfig", __pyx_f[0], 13401, 0, __PYX_ERR(0, 13401, __pyx_L1_error)); /* "cuda/cudart.pyx":13450 * :py:obj:`~.cudaDeviceSetCacheConfig`, :py:obj:`~.cudaDeviceGetCacheConfig`, :py:obj:`~.cudaDeviceGetSharedMemConfig`, :py:obj:`~.cudaFuncSetCacheConfig`, :py:obj:`~.cuCtxSetSharedMemConfig` * """ * cdef ccudart.cudaSharedMemConfig cconfig = config.value # <<<<<<<<<<<<<< * err = ccudart.cudaDeviceSetSharedMemConfig(cconfig) * return (cudaError_t(err),) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_config, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13450, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaSharedMemConfig)__Pyx_PyInt_As_enum__cudaSharedMemConfig(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 13450, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cconfig = __pyx_t_2; /* "cuda/cudart.pyx":13451 * """ * cdef ccudart.cudaSharedMemConfig cconfig = config.value * err = ccudart.cudaDeviceSetSharedMemConfig(cconfig) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_3 = __pyx_f_4cuda_7ccudart_cudaDeviceSetSharedMemConfig(__pyx_v_cconfig); if (unlikely(__pyx_t_3 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 13451, __pyx_L1_error) __pyx_v_err = __pyx_t_3; /* "cuda/cudart.pyx":13452 * cdef ccudart.cudaSharedMemConfig cconfig = config.value * err = ccudart.cudaDeviceSetSharedMemConfig(cconfig) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13452, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 13452, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_7 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_5}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13452, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13452, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1)) __PYX_ERR(0, 13452, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":13401 * return (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_XDECREF(__pyx_t_6); __Pyx_AddTraceback("cuda.cudart.cudaDeviceSetSharedMemConfig", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":13454 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGetLastError(): * """ Returns the last error from a runtime call. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_41cudaGetLastError(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_40cudaGetLastError, "cudaGetLastError()\n Returns the last error from a runtime call.\n\n Returns the last error that has been produced by any of the runtime\n calls in the same instance of the CUDA Runtime library in the host\n thread and resets it to :py:obj:`~.cudaSuccess`.\n\n Note: Multiple instances of the CUDA Runtime library can be present in\n an application when using a library that statically links the CUDA\n Runtime.\n\n Returns\n -------\n cudaError_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\n See Also\n --------\n :py:obj:`~.cudaPeekAtLastError`, :py:obj:`~.cudaGetErrorName`, :py:obj:`~.cudaGetErrorString`, :py:obj:`~.cudaError`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_41cudaGetLastError = {"cudaGetLastError", (PyCFunction)__pyx_pw_4cuda_6cudart_41cudaGetLastError, METH_NOARGS, __pyx_doc_4cuda_6cudart_40cudaGetLastError}; static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_40cudaGetLastError(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_40cudaGetLastError(CYTHON_UNUSED PyObject *__pyx_self) { cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__362) __Pyx_RefNannySetupContext("cudaGetLastError", 1); __Pyx_TraceCall("cudaGetLastError", __pyx_f[0], 13454, 0, __PYX_ERR(0, 13454, __pyx_L1_error)); /* "cuda/cudart.pyx":13475 * :py:obj:`~.cudaPeekAtLastError`, :py:obj:`~.cudaGetErrorName`, :py:obj:`~.cudaGetErrorString`, :py:obj:`~.cudaError` * """ * err = ccudart.cudaGetLastError() # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_1 = __pyx_f_4cuda_7ccudart_cudaGetLastError(); if (unlikely(__pyx_t_1 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 13475, __pyx_L1_error) __pyx_v_err = __pyx_t_1; /* "cuda/cudart.pyx":13476 * """ * err = ccudart.cudaGetLastError() * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13476, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13476, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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(0, 13476, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13476, __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)) __PYX_ERR(0, 13476, __pyx_L1_error); __pyx_t_2 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":13454 * return (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_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaGetLastError", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":13478 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaPeekAtLastError(): * """ Returns the last error from a runtime call. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_43cudaPeekAtLastError(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_42cudaPeekAtLastError, "cudaPeekAtLastError()\n Returns the last error from a runtime call.\n\n Returns the last error that has been produced by any of the runtime\n calls in the same instance of the CUDA Runtime library in the host\n thread. This call does not reset the error to :py:obj:`~.cudaSuccess`\n like :py:obj:`~.cudaGetLastError()`.\n\n Note: Multiple instances of the CUDA Runtime library can be present in\n an application when using a library that statically links the CUDA\n Runtime.\n\n Returns\n -------\n cudaError_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\n See Also\n --------\n :py:obj:`~.cudaGetLastError`, :py:obj:`~.cudaGetErrorName`, :py:obj:`~.cudaGetErrorString`, :py:obj:`~.cudaError`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_43cudaPeekAtLastError = {"cudaPeekAtLastError", (PyCFunction)__pyx_pw_4cuda_6cudart_43cudaPeekAtLastError, METH_NOARGS, __pyx_doc_4cuda_6cudart_42cudaPeekAtLastError}; static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_42cudaPeekAtLastError(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_42cudaPeekAtLastError(CYTHON_UNUSED PyObject *__pyx_self) { cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__363) __Pyx_RefNannySetupContext("cudaPeekAtLastError", 1); __Pyx_TraceCall("cudaPeekAtLastError", __pyx_f[0], 13478, 0, __PYX_ERR(0, 13478, __pyx_L1_error)); /* "cuda/cudart.pyx":13500 * :py:obj:`~.cudaGetLastError`, :py:obj:`~.cudaGetErrorName`, :py:obj:`~.cudaGetErrorString`, :py:obj:`~.cudaError` * """ * err = ccudart.cudaPeekAtLastError() # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_1 = __pyx_f_4cuda_7ccudart_cudaPeekAtLastError(); if (unlikely(__pyx_t_1 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 13500, __pyx_L1_error) __pyx_v_err = __pyx_t_1; /* "cuda/cudart.pyx":13501 * """ * err = ccudart.cudaPeekAtLastError() * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13501, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13501, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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(0, 13501, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13501, __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)) __PYX_ERR(0, 13501, __pyx_L1_error); __pyx_t_2 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":13478 * return (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_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaPeekAtLastError", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":13503 * return (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_6cudart_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_6cudart_44cudaGetErrorName, "cudaGetErrorName(error: cudaError_t)\n Returns the string representation of an error code enum name.\n\n Returns a string containing the name of an error code in the enum. If\n the error code is not recognized, \"unrecognized error code\" is\n returned.\n\n Parameters\n ----------\n error : :py:obj:`~.cudaError_t`\n Error code to convert to string\n\n Returns\n -------\n cudaError_t.cudaSuccess\n cudaError_t.cudaSuccess\n bytes\n `char*` pointer to a NULL-terminated string\n\n See Also\n --------\n :py:obj:`~.cudaGetErrorString`, :py:obj:`~.cudaGetLastError`, :py:obj:`~.cudaPeekAtLastError`, :py:obj:`~.cudaError`, :py:obj:`~.cuGetErrorName`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_45cudaGetErrorName = {"cudaGetErrorName", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_45cudaGetErrorName, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_44cudaGetErrorName}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_error,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_error)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 13503, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGetErrorName") < 0)) __PYX_ERR(0, 13503, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_error = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGetErrorName", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 13503, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 13504, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_44cudaGetErrorName(__pyx_self, __pyx_v_error); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_44cudaGetErrorName(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_error) { cudaError_t __pyx_v_cerror; char const *__pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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_TraceFrameInit(__pyx_codeobj__364) __Pyx_RefNannySetupContext("cudaGetErrorName", 1); __Pyx_TraceCall("cudaGetErrorName", __pyx_f[0], 13503, 0, __PYX_ERR(0, 13503, __pyx_L1_error)); /* "cuda/cudart.pyx":13527 * :py:obj:`~.cudaGetErrorString`, :py:obj:`~.cudaGetLastError`, :py:obj:`~.cudaPeekAtLastError`, :py:obj:`~.cudaError`, :py:obj:`~.cuGetErrorName` * """ * cdef ccudart.cudaError_t cerror = error.value # <<<<<<<<<<<<<< * err = ccudart.cudaGetErrorName(cerror) * return (cudaError_t.cudaSuccess, err) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_error, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13527, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaError)__Pyx_PyInt_As_enum__cudaError(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 13527, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cerror = __pyx_t_2; /* "cuda/cudart.pyx":13528 * """ * cdef ccudart.cudaError_t cerror = error.value * err = ccudart.cudaGetErrorName(cerror) # <<<<<<<<<<<<<< * return (cudaError_t.cudaSuccess, err) * */ __pyx_t_3 = __pyx_f_4cuda_7ccudart_cudaGetErrorName(__pyx_v_cerror); if (unlikely(__pyx_t_3 == ((char const *)NULL) && PyErr_Occurred())) __PYX_ERR(0, 13528, __pyx_L1_error) __pyx_v_err = __pyx_t_3; /* "cuda/cudart.pyx":13529 * cdef ccudart.cudaError_t cerror = error.value * err = ccudart.cudaGetErrorName(cerror) * return (cudaError_t.cudaSuccess, err) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13529, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_cudaSuccess); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13529, __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, 13529, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 13529, __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)) __PYX_ERR(0, 13529, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1)) __PYX_ERR(0, 13529, __pyx_L1_error); __pyx_t_4 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":13503 * return (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.cudart.cudaGetErrorName", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":13531 * 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_6cudart_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_6cudart_46cudaGetErrorString, "cudaGetErrorString(error: cudaError_t)\n Returns the description string for an error code.\n\n Returns the description string for an error code. If the error code is\n not recognized, \"unrecognized error code\" is returned.\n\n Parameters\n ----------\n error : :py:obj:`~.cudaError_t`\n Error code to convert to string\n\n Returns\n -------\n cudaError_t.cudaSuccess\n cudaError_t.cudaSuccess\n bytes\n `char*` pointer to a NULL-terminated string\n\n See Also\n --------\n :py:obj:`~.cudaGetErrorName`, :py:obj:`~.cudaGetLastError`, :py:obj:`~.cudaPeekAtLastError`, :py:obj:`~.cudaError`, :py:obj:`~.cuGetErrorString`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_47cudaGetErrorString = {"cudaGetErrorString", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_47cudaGetErrorString, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_46cudaGetErrorString}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_error,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_error)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 13531, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGetErrorString") < 0)) __PYX_ERR(0, 13531, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_error = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGetErrorString", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 13531, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 13532, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_46cudaGetErrorString(__pyx_self, __pyx_v_error); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_46cudaGetErrorString(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_error) { cudaError_t __pyx_v_cerror; char const *__pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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_TraceFrameInit(__pyx_codeobj__365) __Pyx_RefNannySetupContext("cudaGetErrorString", 1); __Pyx_TraceCall("cudaGetErrorString", __pyx_f[0], 13531, 0, __PYX_ERR(0, 13531, __pyx_L1_error)); /* "cuda/cudart.pyx":13554 * :py:obj:`~.cudaGetErrorName`, :py:obj:`~.cudaGetLastError`, :py:obj:`~.cudaPeekAtLastError`, :py:obj:`~.cudaError`, :py:obj:`~.cuGetErrorString` * """ * cdef ccudart.cudaError_t cerror = error.value # <<<<<<<<<<<<<< * err = ccudart.cudaGetErrorString(cerror) * return (cudaError_t.cudaSuccess, err) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_error, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13554, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaError)__Pyx_PyInt_As_enum__cudaError(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 13554, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cerror = __pyx_t_2; /* "cuda/cudart.pyx":13555 * """ * cdef ccudart.cudaError_t cerror = error.value * err = ccudart.cudaGetErrorString(cerror) # <<<<<<<<<<<<<< * return (cudaError_t.cudaSuccess, err) * */ __pyx_t_3 = __pyx_f_4cuda_7ccudart_cudaGetErrorString(__pyx_v_cerror); if (unlikely(__pyx_t_3 == ((char const *)NULL) && PyErr_Occurred())) __PYX_ERR(0, 13555, __pyx_L1_error) __pyx_v_err = __pyx_t_3; /* "cuda/cudart.pyx":13556 * cdef ccudart.cudaError_t cerror = error.value * err = ccudart.cudaGetErrorString(cerror) * return (cudaError_t.cudaSuccess, err) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13556, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_cudaSuccess); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13556, __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, 13556, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 13556, __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)) __PYX_ERR(0, 13556, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1)) __PYX_ERR(0, 13556, __pyx_L1_error); __pyx_t_4 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":13531 * 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.cudart.cudaGetErrorString", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":13558 * return (cudaError_t.cudaSuccess, err) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGetDeviceCount(): * """ Returns the number of compute-capable devices. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_49cudaGetDeviceCount(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_48cudaGetDeviceCount, "cudaGetDeviceCount()\n Returns the number of compute-capable devices.\n\n Returns in `*count` the number of devices with compute capability\n greater or equal to 2.0 that are available for execution.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`\n count : int\n Returns the number of devices with compute capability greater or\n equal to 2.0\n\n See Also\n --------\n :py:obj:`~.cudaGetDevice`, :py:obj:`~.cudaSetDevice`, :py:obj:`~.cudaGetDeviceProperties`, :py:obj:`~.cudaChooseDevice`, :py:obj:`~.cudaInitDevice`, :py:obj:`~.cuDeviceGetCount`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_49cudaGetDeviceCount = {"cudaGetDeviceCount", (PyCFunction)__pyx_pw_4cuda_6cudart_49cudaGetDeviceCount, METH_NOARGS, __pyx_doc_4cuda_6cudart_48cudaGetDeviceCount}; static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_48cudaGetDeviceCount(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_48cudaGetDeviceCount(CYTHON_UNUSED PyObject *__pyx_self) { int __pyx_v_count; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__366) __Pyx_RefNannySetupContext("cudaGetDeviceCount", 1); __Pyx_TraceCall("cudaGetDeviceCount", __pyx_f[0], 13558, 0, __PYX_ERR(0, 13558, __pyx_L1_error)); /* "cuda/cudart.pyx":13577 * :py:obj:`~.cudaGetDevice`, :py:obj:`~.cudaSetDevice`, :py:obj:`~.cudaGetDeviceProperties`, :py:obj:`~.cudaChooseDevice`, :py:obj:`~.cudaInitDevice`, :py:obj:`~.cuDeviceGetCount` * """ * cdef int count = 0 # <<<<<<<<<<<<<< * err = ccudart.cudaGetDeviceCount(&count) * return (cudaError_t(err), count) */ __pyx_v_count = 0; /* "cuda/cudart.pyx":13578 * """ * cdef int count = 0 * err = ccudart.cudaGetDeviceCount(&count) # <<<<<<<<<<<<<< * return (cudaError_t(err), count) * */ __pyx_t_1 = __pyx_f_4cuda_7ccudart_cudaGetDeviceCount((&__pyx_v_count)); if (unlikely(__pyx_t_1 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 13578, __pyx_L1_error) __pyx_v_err = __pyx_t_1; /* "cuda/cudart.pyx":13579 * cdef int count = 0 * err = ccudart.cudaGetDeviceCount(&count) * return (cudaError_t(err), count) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13579, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13579, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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(0, 13579, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_count); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13579, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13579, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 13579, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3)) __PYX_ERR(0, 13579, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_3 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":13558 * 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_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaGetDeviceCount", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":13581 * return (cudaError_t(err), count) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGetDeviceProperties(int device): * """ Returns information about the compute-device. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_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_6cudart_50cudaGetDeviceProperties, "cudaGetDeviceProperties(int device)\n Returns information about the compute-device.\n\n Returns in `*prop` the properties of device `dev`. The\n :py:obj:`~.cudaDeviceProp` structure is defined as:\n\n **View CUDA Toolkit Documentation for a C++ code example**\n\n where:\n\n - :py:obj:`~.name[256]` is an ASCII string identifying the device.\n\n - :py:obj:`~.uuid` is a 16-byte unique identifier.\n\n - :py:obj:`~.totalGlobalMem` is the total amount of global memory\n available on the device in bytes.\n\n - :py:obj:`~.sharedMemPerBlock` is the maximum amount of shared memory\n available to a thread block in bytes.\n\n - :py:obj:`~.regsPerBlock` is the maximum number of 32-bit registers\n available to a thread block.\n\n - :py:obj:`~.warpSize` is the warp size in threads.\n\n - :py:obj:`~.memPitch` is the maximum pitch in bytes allowed by the\n memory copy functions that involve memory regions allocated through\n :py:obj:`~.cudaMallocPitch()`.\n\n - :py:obj:`~.maxThreadsPerBlock` is the maximum number of threads per\n block.\n\n - :py:obj:`~.maxThreadsDim[3]` contains the maximum size of each\n dimension of a block.\n\n - :py:obj:`~.maxGridSize[3]` contains the maximum size of each\n dimension of a grid.\n\n - :py:obj:`~.clockRate` is the clock frequency in kilohertz.\n\n - :py:obj:`~.totalConstMem` is the total amount of constant memory\n available on the device in bytes.\n\n - :py:obj:`~.major`, :py:obj:`~.minor` are the major and minor revision\n numbers defining the device's compute capability.\n\n - :py:obj:`~.textureAlignment` is the alignment requirement; texture\n base addresses that are aligned to :py:obj:`~.textureAlignment` bytes\n do not need an offset applied to texture fetches.\n\n - :py:obj:`~.texturePitchAlignment` is the pitch alignment requirement\n for 2D texture references that are bound to pitched memory.\n\n - :py:obj:`~.devic""eOverlap` is 1 if the device can concurrently copy\n memory between host and device while executing a kernel, or 0 if not.\n Deprecated, use instead asyncEngineCount.\n\n - :py:obj:`~.multiProcessorCount` is the number of multiprocessors on\n the device.\n\n - :py:obj:`~.kernelExecTimeoutEnabled` is 1 if there is a run time\n limit for kernels executed on the device, or 0 if not.\n\n - :py:obj:`~.integrated` is 1 if the device is an integrated\n (motherboard) GPU and 0 if it is a discrete (card) component.\n\n - :py:obj:`~.canMapHostMemory` is 1 if the device can map host memory\n into the CUDA address space for use with\n :py:obj:`~.cudaHostAlloc()`/:py:obj:`~.cudaHostGetDevicePointer()`,\n or 0 if not.\n\n - :py:obj:`~.computeMode` is the compute mode that the device is\n currently in. Available modes are as follows:\n\n - cudaComputeModeDefault: Default mode - Device is not restricted and\n multiple threads can use :py:obj:`~.cudaSetDevice()` with this\n device.\n\n - cudaComputeModeProhibited: Compute-prohibited mode - No threads can\n use :py:obj:`~.cudaSetDevice()` with this device.\n\n - cudaComputeModeExclusiveProcess: Compute-exclusive-process mode -\n Many threads in one process will be able to use\n :py:obj:`~.cudaSetDevice()` with this device. When an occupied\n exclusive mode device is chosen with :py:obj:`~.cudaSetDevice`, all\n subsequent non-device management runtime functions will return\n :py:obj:`~.cudaErrorDevicesUnavailable`.\n\n - :py:obj:`~.maxTexture1D` is the maximum 1D texture size.\n\n - :py:obj:`~.maxTexture1DMipmap` is the maximum 1D mipmapped texture\n texture size.\n\n - :py:obj:`~.maxTexture1DLinear` is the maximum 1D texture size for\n textures bound to linear memory.\n\n - :py:obj:`~.maxTexture2D[2]` contains the maximum 2D texture\n dimensions.\n\n - :py:obj:`~.maxTexture""2DMipmap[2]` contains the maximum 2D mipmapped\n texture dimensions.\n\n - :py:obj:`~.maxTexture2DLinear[3]` contains the maximum 2D texture\n dimensions for 2D textures bound to pitch linear memory.\n\n - :py:obj:`~.maxTexture2DGather[2]` contains the maximum 2D texture\n dimensions if texture gather operations have to be performed.\n\n - :py:obj:`~.maxTexture3D[3]` contains the maximum 3D texture\n dimensions.\n\n - :py:obj:`~.maxTexture3DAlt[3]` contains the maximum alternate 3D\n texture dimensions.\n\n - :py:obj:`~.maxTextureCubemap` is the maximum cubemap texture width or\n height.\n\n - :py:obj:`~.maxTexture1DLayered[2]` contains the maximum 1D layered\n texture dimensions.\n\n - :py:obj:`~.maxTexture2DLayered[3]` contains the maximum 2D layered\n texture dimensions.\n\n - :py:obj:`~.maxTextureCubemapLayered[2]` contains the maximum cubemap\n layered texture dimensions.\n\n - :py:obj:`~.maxSurface1D` is the maximum 1D surface size.\n\n - :py:obj:`~.maxSurface2D[2]` contains the maximum 2D surface\n dimensions.\n\n - :py:obj:`~.maxSurface3D[3]` contains the maximum 3D surface\n dimensions.\n\n - :py:obj:`~.maxSurface1DLayered[2]` contains the maximum 1D layered\n surface dimensions.\n\n - :py:obj:`~.maxSurface2DLayered[3]` contains the maximum 2D layered\n surface dimensions.\n\n - :py:obj:`~.maxSurfaceCubemap` is the maximum cubemap surface width or\n height.\n\n - :py:obj:`~.maxSurfaceCubemapLayered[2]` contains the maximum cubemap\n layered surface dimensions.\n\n - :py:obj:`~.surfaceAlignment` specifies the alignment requirements for\n surfaces.\n\n - :py:obj:`~.concurrentKernels` is 1 if the device supports executing\n multiple kernels within the same context simultaneously, or 0 if not.\n It is not guaranteed that multiple kernels will be resident on the\n device concurrently so this feature should not be relie""d upon for\n correctness.\n\n - :py:obj:`~.ECCEnabled` is 1 if the device has ECC support turned on,\n or 0 if not.\n\n - :py:obj:`~.pciBusID` is the PCI bus identifier of the device.\n\n - :py:obj:`~.pciDeviceID` is the PCI device (sometimes called slot)\n identifier of the device.\n\n - :py:obj:`~.pciDomainID` is the PCI domain identifier of the device.\n\n - :py:obj:`~.tccDriver` is 1 if the device is using a TCC driver or 0\n if not.\n\n - :py:obj:`~.asyncEngineCount` is 1 when the device can concurrently\n copy memory between host and device while executing a kernel. It is 2\n when the device can concurrently copy memory between host and device\n in both directions and execute a kernel at the same time. It is 0 if\n neither of these is supported.\n\n - :py:obj:`~.unifiedAddressing` is 1 if the device shares a unified\n address space with the host and 0 otherwise.\n\n - :py:obj:`~.memoryClockRate` is the peak memory clock frequency in\n kilohertz.\n\n - :py:obj:`~.memoryBusWidth` is the memory bus width in bits.\n\n - :py:obj:`~.l2CacheSize` is L2 cache size in bytes.\n\n - :py:obj:`~.persistingL2CacheMaxSize` is L2 cache's maximum persisting\n lines size in bytes.\n\n - :py:obj:`~.maxThreadsPerMultiProcessor` is the number of maximum\n resident threads per multiprocessor.\n\n - :py:obj:`~.streamPrioritiesSupported` is 1 if the device supports\n stream priorities, or 0 if it is not supported.\n\n - :py:obj:`~.globalL1CacheSupported` is 1 if the device supports\n caching of globals in L1 cache, or 0 if it is not supported.\n\n - :py:obj:`~.localL1CacheSupported` is 1 if the device supports caching\n of locals in L1 cache, or 0 if it is not supported.\n\n - :py:obj:`~.sharedMemPerMultiprocessor` is the maximum amount of\n shared memory available to a multiprocessor in bytes; this amount is\n shared by all thread blocks simultaneo""usly resident on a\n multiprocessor.\n\n - :py:obj:`~.regsPerMultiprocessor` is the maximum number of 32-bit\n registers available to a multiprocessor; this number is shared by all\n thread blocks simultaneously resident on a multiprocessor.\n\n - :py:obj:`~.managedMemory` is 1 if the device supports allocating\n managed memory on this system, or 0 if it is not supported.\n\n - :py:obj:`~.isMultiGpuBoard` is 1 if the device is on a multi-GPU\n board (e.g. Gemini cards), and 0 if not;\n\n - :py:obj:`~.multiGpuBoardGroupID` is a unique identifier for a group\n of devices associated with the same board. Devices on the same multi-\n GPU board will share the same identifier.\n\n - :py:obj:`~.hostNativeAtomicSupported` is 1 if the link between the\n device and the host supports native atomic operations, or 0 if it is\n not supported.\n\n - :py:obj:`~.singleToDoublePrecisionPerfRatio` is the ratio of single\n precision performance (in floating-point operations per second) to\n double precision performance.\n\n - :py:obj:`~.pageableMemoryAccess` is 1 if the device supports\n coherently accessing pageable memory without calling cudaHostRegister\n on it, and 0 otherwise.\n\n - :py:obj:`~.concurrentManagedAccess` is 1 if the device can coherently\n access managed memory concurrently with the CPU, and 0 otherwise.\n\n - :py:obj:`~.computePreemptionSupported` is 1 if the device supports\n Compute Preemption, and 0 otherwise.\n\n - :py:obj:`~.canUseHostPointerForRegisteredMem` is 1 if the device can\n access host registered memory at the same virtual address as the CPU,\n and 0 otherwise.\n\n - :py:obj:`~.cooperativeLaunch` is 1 if the device supports launching\n cooperative kernels via :py:obj:`~.cudaLaunchCooperativeKernel`, and\n 0 otherwise.\n\n - :py:obj:`~.cooperativeMultiDeviceLaunch` is 1 if the device supports\n launching cooperative k""ernels via\n :py:obj:`~.cudaLaunchCooperativeKernelMultiDevice`, and 0 otherwise.\n\n - :py:obj:`~.sharedMemPerBlockOptin` is the per device maximum shared\n memory per block usable by special opt in\n\n - :py:obj:`~.pageableMemoryAccessUsesHostPageTables` is 1 if the device\n accesses pageable memory via the host's page tables, and 0 otherwise.\n\n - :py:obj:`~.directManagedMemAccessFromHost` is 1 if the host can\n directly access managed memory on the device without migration, and 0\n otherwise.\n\n - :py:obj:`~.maxBlocksPerMultiProcessor` is the maximum number of\n thread blocks that can reside on a multiprocessor.\n\n - :py:obj:`~.accessPolicyMaxWindowSize` is the maximum value of\n :py:obj:`~.cudaAccessPolicyWindow.num_bytes`.\n\n - :py:obj:`~.reservedSharedMemPerBlock` is the shared memory reserved\n by CUDA driver per block in bytes\n\n - :py:obj:`~.hostRegisterSupported` is 1 if the device supports host\n memory registration via :py:obj:`~.cudaHostRegister`, and 0\n otherwise.\n\n - :py:obj:`~.sparseCudaArraySupported` is 1 if the device supports\n sparse CUDA arrays and sparse CUDA mipmapped arrays, 0 otherwise\n\n - :py:obj:`~.hostRegisterReadOnlySupported` is 1 if the device supports\n using the :py:obj:`~.cudaHostRegister` flag cudaHostRegisterReadOnly\n to register memory that must be mapped as read-only to the GPU\n\n - :py:obj:`~.timelineSemaphoreInteropSupported` is 1 if external\n timeline semaphore interop is supported on the device, 0 otherwise\n\n - :py:obj:`~.memoryPoolsSupported` is 1 if the device supports using\n the cudaMallocAsync and cudaMemPool family of APIs, 0 otherwise\n\n - :py:obj:`~.gpuDirectRDMASupported` is 1 if the device supports\n GPUDirect RDMA APIs, 0 otherwise\n\n - :py:obj:`~.gpuDirectRDMAFlushWritesOptions` is a bitmask to be\n interpreted according to the\n :py:obj:`~.cudaFlushGPUDirectRDMAWrite""sOptions` enum\n\n - :py:obj:`~.gpuDirectRDMAWritesOrdering` See the\n :py:obj:`~.cudaGPUDirectRDMAWritesOrdering` enum for numerical values\n\n - :py:obj:`~.memoryPoolSupportedHandleTypes` is a bitmask of handle\n types supported with mempool-based IPC\n\n - :py:obj:`~.deferredMappingCudaArraySupported` is 1 if the device\n supports deferred mapping CUDA arrays and CUDA mipmapped arrays\n\n - :py:obj:`~.ipcEventSupported` is 1 if the device supports IPC Events,\n and 0 otherwise\n\n - :py:obj:`~.unifiedFunctionPointers` is 1 if the device support\n unified pointers, and 0 otherwise\n\n Parameters\n ----------\n device : int\n Device number to get properties for\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`\n prop : :py:obj:`~.cudaDeviceProp`\n Properties for the specified device\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_51cudaGetDeviceProperties = {"cudaGetDeviceProperties", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_51cudaGetDeviceProperties, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_50cudaGetDeviceProperties}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_device_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_device_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 13581, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGetDeviceProperties") < 0)) __PYX_ERR(0, 13581, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_device = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 13582, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGetDeviceProperties", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 13581, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGetDeviceProperties", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_50cudaGetDeviceProperties(__pyx_self, __pyx_v_device); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_50cudaGetDeviceProperties(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device) { struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_prop = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; cudaError_t __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__367) __Pyx_RefNannySetupContext("cudaGetDeviceProperties", 1); __Pyx_TraceCall("cudaGetDeviceProperties", __pyx_f[0], 13581, 0, __PYX_ERR(0, 13581, __pyx_L1_error)); /* "cuda/cudart.pyx":13904 * :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() # <<<<<<<<<<<<<< * err = ccudart.cudaGetDeviceProperties(prop._ptr, device) * return (cudaError_t(err), prop) */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaDeviceProp)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13904, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_prop = ((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":13905 * """ * cdef cudaDeviceProp prop = cudaDeviceProp() * err = ccudart.cudaGetDeviceProperties(prop._ptr, device) # <<<<<<<<<<<<<< * return (cudaError_t(err), prop) * */ __pyx_t_2 = __pyx_f_4cuda_7ccudart_cudaGetDeviceProperties(((struct cudaDeviceProp *)__pyx_v_prop->_ptr), __pyx_v_device); if (unlikely(__pyx_t_2 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 13905, __pyx_L1_error) __pyx_v_err = __pyx_t_2; /* "cuda/cudart.pyx":13906 * cdef cudaDeviceProp prop = cudaDeviceProp() * err = ccudart.cudaGetDeviceProperties(prop._ptr, device) * return (cudaError_t(err), prop) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13906, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13906, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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, 13906, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13906, __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)) __PYX_ERR(0, 13906, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_prop); __Pyx_GIVEREF((PyObject *)__pyx_v_prop); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_v_prop))) __PYX_ERR(0, 13906, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":13581 * return (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_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaGetDeviceProperties", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_prop); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":13908 * return (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_6cudart_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_6cudart_52cudaDeviceGetAttribute, "cudaDeviceGetAttribute(attr: cudaDeviceAttr, int device)\n Returns information about the device.\n\n Returns in `*value` the integer value of the attribute `attr` on device\n `device`. The supported attributes are:\n\n - :py:obj:`~.cudaDevAttrMaxThreadsPerBlock`: Maximum number of threads\n per block\n\n - :py:obj:`~.cudaDevAttrMaxBlockDimX`: Maximum x-dimension of a block\n\n - :py:obj:`~.cudaDevAttrMaxBlockDimY`: Maximum y-dimension of a block\n\n - :py:obj:`~.cudaDevAttrMaxBlockDimZ`: Maximum z-dimension of a block\n\n - :py:obj:`~.cudaDevAttrMaxGridDimX`: Maximum x-dimension of a grid\n\n - :py:obj:`~.cudaDevAttrMaxGridDimY`: Maximum y-dimension of a grid\n\n - :py:obj:`~.cudaDevAttrMaxGridDimZ`: Maximum z-dimension of a grid\n\n - :py:obj:`~.cudaDevAttrMaxSharedMemoryPerBlock`: Maximum amount of\n shared memory available to a thread block in bytes\n\n - :py:obj:`~.cudaDevAttrTotalConstantMemory`: Memory available on\n device for constant variables in a CUDA C kernel in bytes\n\n - :py:obj:`~.cudaDevAttrWarpSize`: Warp size in threads\n\n - :py:obj:`~.cudaDevAttrMaxPitch`: Maximum pitch in bytes allowed by\n the memory copy functions that involve memory regions allocated\n through :py:obj:`~.cudaMallocPitch()`\n\n - :py:obj:`~.cudaDevAttrMaxTexture1DWidth`: Maximum 1D texture width\n\n - :py:obj:`~.cudaDevAttrMaxTexture1DLinearWidth`: Maximum width for a\n 1D texture bound to linear memory\n\n - :py:obj:`~.cudaDevAttrMaxTexture1DMipmappedWidth`: Maximum mipmapped\n 1D texture width\n\n - :py:obj:`~.cudaDevAttrMaxTexture2DWidth`: Maximum 2D texture width\n\n - :py:obj:`~.cudaDevAttrMaxTexture2DHeight`: Maximum 2D texture height\n\n - :py:obj:`~.cudaDevAttrMaxTexture2DLinearWidth`: Maximum width for a\n 2D texture bound to linear memory\n\n - :py:obj:`~.cudaDevAttrMaxTexture2DLinearHeight`: Maximum height for a\n 2D texture bound to linear memory\n\n - :py:o""bj:`~.cudaDevAttrMaxTexture2DLinearPitch`: Maximum pitch in\n bytes for a 2D texture bound to linear memory\n\n - :py:obj:`~.cudaDevAttrMaxTexture2DMipmappedWidth`: Maximum mipmapped\n 2D texture width\n\n - :py:obj:`~.cudaDevAttrMaxTexture2DMipmappedHeight`: Maximum mipmapped\n 2D texture height\n\n - :py:obj:`~.cudaDevAttrMaxTexture3DWidth`: Maximum 3D texture width\n\n - :py:obj:`~.cudaDevAttrMaxTexture3DHeight`: Maximum 3D texture height\n\n - :py:obj:`~.cudaDevAttrMaxTexture3DDepth`: Maximum 3D texture depth\n\n - :py:obj:`~.cudaDevAttrMaxTexture3DWidthAlt`: Alternate maximum 3D\n texture width, 0 if no alternate maximum 3D texture size is supported\n\n - :py:obj:`~.cudaDevAttrMaxTexture3DHeightAlt`: Alternate maximum 3D\n texture height, 0 if no alternate maximum 3D texture size is\n supported\n\n - :py:obj:`~.cudaDevAttrMaxTexture3DDepthAlt`: Alternate maximum 3D\n texture depth, 0 if no alternate maximum 3D texture size is supported\n\n - :py:obj:`~.cudaDevAttrMaxTextureCubemapWidth`: Maximum cubemap\n texture width or height\n\n - :py:obj:`~.cudaDevAttrMaxTexture1DLayeredWidth`: Maximum 1D layered\n texture width\n\n - :py:obj:`~.cudaDevAttrMaxTexture1DLayeredLayers`: Maximum layers in a\n 1D layered texture\n\n - :py:obj:`~.cudaDevAttrMaxTexture2DLayeredWidth`: Maximum 2D layered\n texture width\n\n - :py:obj:`~.cudaDevAttrMaxTexture2DLayeredHeight`: Maximum 2D layered\n texture height\n\n - :py:obj:`~.cudaDevAttrMaxTexture2DLayeredLayers`: Maximum layers in a\n 2D layered texture\n\n - :py:obj:`~.cudaDevAttrMaxTextureCubemapLayeredWidth`: Maximum cubemap\n layered texture width or height\n\n - :py:obj:`~.cudaDevAttrMaxTextureCubemapLayeredLayers`: Maximum layers\n in a cubemap layered texture\n\n - :py:obj:`~.cudaDevAttrMaxSurface1DWidth`: Maximum 1D surface width\n\n - :py:obj:`~.cudaDevAttrMaxSurface2DWidth`: Maximum 2D surfac""e width\n\n - :py:obj:`~.cudaDevAttrMaxSurface2DHeight`: Maximum 2D surface height\n\n - :py:obj:`~.cudaDevAttrMaxSurface3DWidth`: Maximum 3D surface width\n\n - :py:obj:`~.cudaDevAttrMaxSurface3DHeight`: Maximum 3D surface height\n\n - :py:obj:`~.cudaDevAttrMaxSurface3DDepth`: Maximum 3D surface depth\n\n - :py:obj:`~.cudaDevAttrMaxSurface1DLayeredWidth`: Maximum 1D layered\n surface width\n\n - :py:obj:`~.cudaDevAttrMaxSurface1DLayeredLayers`: Maximum layers in a\n 1D layered surface\n\n - :py:obj:`~.cudaDevAttrMaxSurface2DLayeredWidth`: Maximum 2D layered\n surface width\n\n - :py:obj:`~.cudaDevAttrMaxSurface2DLayeredHeight`: Maximum 2D layered\n surface height\n\n - :py:obj:`~.cudaDevAttrMaxSurface2DLayeredLayers`: Maximum layers in a\n 2D layered surface\n\n - :py:obj:`~.cudaDevAttrMaxSurfaceCubemapWidth`: Maximum cubemap\n surface width\n\n - :py:obj:`~.cudaDevAttrMaxSurfaceCubemapLayeredWidth`: Maximum cubemap\n layered surface width\n\n - :py:obj:`~.cudaDevAttrMaxSurfaceCubemapLayeredLayers`: Maximum layers\n in a cubemap layered surface\n\n - :py:obj:`~.cudaDevAttrMaxRegistersPerBlock`: Maximum number of 32-bit\n registers available to a thread block\n\n - :py:obj:`~.cudaDevAttrClockRate`: Peak clock frequency in kilohertz\n\n - :py:obj:`~.cudaDevAttrTextureAlignment`: Alignment requirement;\n texture base addresses aligned to :py:obj:`~.textureAlign` bytes do\n not need an offset applied to texture fetches\n\n - :py:obj:`~.cudaDevAttrTexturePitchAlignment`: Pitch alignment\n requirement for 2D texture references bound to pitched memory\n\n - :py:obj:`~.cudaDevAttrGpuOverlap`: 1 if the device can concurrently\n copy memory between host and device while executing a kernel, or 0 if\n not\n\n - :py:obj:`~.cudaDevAttrMultiProcessorCount`: Number of multiprocessors\n on the device\n\n - :py:obj:`~.cudaDevAttrKernelExecTimeout`: 1 if"" there is a run time\n limit for kernels executed on the device, or 0 if not\n\n - :py:obj:`~.cudaDevAttrIntegrated`: 1 if the device is integrated with\n the memory subsystem, or 0 if not\n\n - :py:obj:`~.cudaDevAttrCanMapHostMemory`: 1 if the device can map host\n memory into the CUDA address space, or 0 if not\n\n - :py:obj:`~.cudaDevAttrComputeMode`: Compute mode is the compute mode\n that the device is currently in. Available modes are as follows:\n\n - :py:obj:`~.cudaComputeModeDefault`: Default mode - Device is not\n restricted and multiple threads can use :py:obj:`~.cudaSetDevice()`\n with this device.\n\n - :py:obj:`~.cudaComputeModeProhibited`: Compute-prohibited mode - No\n threads can use :py:obj:`~.cudaSetDevice()` with this device.\n\n - :py:obj:`~.cudaComputeModeExclusiveProcess`: Compute-exclusive-\n process mode - Many threads in one process will be able to use\n :py:obj:`~.cudaSetDevice()` with this device.\n\n - :py:obj:`~.cudaDevAttrConcurrentKernels`: 1 if the device supports\n executing multiple kernels within the same context simultaneously, or\n 0 if not. It is not guaranteed that multiple kernels will be resident\n on the device concurrently so this feature should not be relied upon\n for correctness.\n\n - :py:obj:`~.cudaDevAttrEccEnabled`: 1 if error correction is enabled\n on the device, 0 if error correction is disabled or not supported by\n the device\n\n - :py:obj:`~.cudaDevAttrPciBusId`: PCI bus identifier of the device\n\n - :py:obj:`~.cudaDevAttrPciDeviceId`: PCI device (also known as slot)\n identifier of the device\n\n - :py:obj:`~.cudaDevAttrTccDriver`: 1 if the device is using a TCC\n driver. TCC is only available on Tesla hardware running Windows Vista\n or later.\n\n - :py:obj:`~.cudaDevAttrMemoryClockRate`: Peak memory clock frequency\n in kilohertz\n\n - :py:obj:`~.cudaDevAttrG""lobalMemoryBusWidth`: Global memory bus width\n in bits\n\n - :py:obj:`~.cudaDevAttrL2CacheSize`: Size of L2 cache in bytes. 0 if\n the device doesn't have L2 cache.\n\n - :py:obj:`~.cudaDevAttrMaxThreadsPerMultiProcessor`: Maximum resident\n threads per multiprocessor\n\n - :py:obj:`~.cudaDevAttrUnifiedAddressing`: 1 if the device shares a\n unified address space with the host, or 0 if not\n\n - :py:obj:`~.cudaDevAttrComputeCapabilityMajor`: Major compute\n capability version number\n\n - :py:obj:`~.cudaDevAttrComputeCapabilityMinor`: Minor compute\n capability version number\n\n - :py:obj:`~.cudaDevAttrStreamPrioritiesSupported`: 1 if the device\n supports stream priorities, or 0 if not\n\n - :py:obj:`~.cudaDevAttrGlobalL1CacheSupported`: 1 if device supports\n caching globals in L1 cache, 0 if not\n\n - :py:obj:`~.cudaDevAttrLocalL1CacheSupported`: 1 if device supports\n caching locals in L1 cache, 0 if not\n\n - :py:obj:`~.cudaDevAttrMaxSharedMemoryPerMultiprocessor`: Maximum\n amount of shared memory available to a multiprocessor in bytes; this\n amount is shared by all thread blocks simultaneously resident on a\n multiprocessor\n\n - :py:obj:`~.cudaDevAttrMaxRegistersPerMultiprocessor`: Maximum number\n of 32-bit registers available to a multiprocessor; this number is\n shared by all thread blocks simultaneously resident on a\n multiprocessor\n\n - :py:obj:`~.cudaDevAttrManagedMemory`: 1 if device supports allocating\n managed memory, 0 if not\n\n - :py:obj:`~.cudaDevAttrIsMultiGpuBoard`: 1 if device is on a multi-GPU\n board, 0 if not\n\n - :py:obj:`~.cudaDevAttrMultiGpuBoardGroupID`: Unique identifier for a\n group of devices on the same multi-GPU board\n\n - :py:obj:`~.cudaDevAttrHostNativeAtomicSupported`: 1 if the link\n between the device and the host supports native atomic operations\n\n - :py:obj:`~.cudaDevAttrSing""leToDoublePrecisionPerfRatio`: Ratio of\n single precision performance (in floating-point operations per\n second) to double precision performance\n\n - :py:obj:`~.cudaDevAttrPageableMemoryAccess`: 1 if the device supports\n coherently accessing pageable memory without calling cudaHostRegister\n on it, and 0 otherwise\n\n - :py:obj:`~.cudaDevAttrConcurrentManagedAccess`: 1 if the device can\n coherently access managed memory concurrently with the CPU, and 0\n otherwise\n\n - :py:obj:`~.cudaDevAttrComputePreemptionSupported`: 1 if the device\n supports Compute Preemption, 0 if not\n\n - :py:obj:`~.cudaDevAttrCanUseHostPointerForRegisteredMem`: 1 if the\n device can access host registered memory at the same virtual address\n as the CPU, and 0 otherwise\n\n - :py:obj:`~.cudaDevAttrCooperativeLaunch`: 1 if the device supports\n launching cooperative kernels via\n :py:obj:`~.cudaLaunchCooperativeKernel`, and 0 otherwise\n\n - :py:obj:`~.cudaDevAttrCooperativeMultiDeviceLaunch`: 1 if the device\n supports launching cooperative kernels via\n :py:obj:`~.cudaLaunchCooperativeKernelMultiDevice`, and 0 otherwise\n\n - :py:obj:`~.cudaDevAttrCanFlushRemoteWrites`: 1 if the device supports\n flushing of outstanding remote writes, and 0 otherwise\n\n - :py:obj:`~.cudaDevAttrHostRegisterSupported`: 1 if the device\n supports host memory registration via :py:obj:`~.cudaHostRegister`,\n and 0 otherwise\n\n - :py:obj:`~.cudaDevAttrPageableMemoryAccessUsesHostPageTables`: 1 if\n the device accesses pageable memory via the host's page tables, and 0\n otherwise\n\n - :py:obj:`~.cudaDevAttrDirectManagedMemAccessFromHost`: 1 if the host\n can directly access managed memory on the device without migration,\n and 0 otherwise\n\n - :py:obj:`~.cudaDevAttrMaxSharedMemoryPerBlockOptin`: Maximum per\n block shared memory size on the device. This value can be op""ted into\n when using :py:obj:`~.cudaFuncSetAttribute`\n\n - :py:obj:`~.cudaDevAttrMaxBlocksPerMultiprocessor`: Maximum number of\n thread blocks that can reside on a multiprocessor\n\n - :py:obj:`~.cudaDevAttrMaxPersistingL2CacheSize`: Maximum L2\n persisting lines capacity setting in bytes\n\n - :py:obj:`~.cudaDevAttrMaxAccessPolicyWindowSize`: Maximum value of\n :py:obj:`~.cudaAccessPolicyWindow.num_bytes`\n\n - :py:obj:`~.cudaDevAttrReservedSharedMemoryPerBlock`: Shared memory\n reserved by CUDA driver per block in bytes\n\n - :py:obj:`~.cudaDevAttrSparseCudaArraySupported`: 1 if the device\n supports sparse CUDA arrays and sparse CUDA mipmapped arrays.\n\n - :py:obj:`~.cudaDevAttrHostRegisterReadOnlySupported`: Device supports\n using the :py:obj:`~.cudaHostRegister` flag cudaHostRegisterReadOnly\n to register memory that must be mapped as read-only to the GPU\n\n - :py:obj:`~.cudaDevAttrMemoryPoolsSupported`: 1 if the device supports\n using the cudaMallocAsync and cudaMemPool family of APIs, and 0\n otherwise\n\n - :py:obj:`~.cudaDevAttrGPUDirectRDMASupported`: 1 if the device\n supports GPUDirect RDMA APIs, and 0 otherwise\n\n - :py:obj:`~.cudaDevAttrGPUDirectRDMAFlushWritesOptions`: bitmask to be\n interpreted according to the\n :py:obj:`~.cudaFlushGPUDirectRDMAWritesOptions` enum\n\n - :py:obj:`~.cudaDevAttrGPUDirectRDMAWritesOrdering`: see the\n :py:obj:`~.cudaGPUDirectRDMAWritesOrdering` enum for numerical values\n\n - :py:obj:`~.cudaDevAttrMemoryPoolSupportedHandleTypes`: Bitmask of\n handle types supported with mempool based IPC\n\n - :py:obj:`~.cudaDevAttrDeferredMappingCudaArraySupported` : 1 if the\n device supports deferred mapping CUDA arrays and CUDA mipmapped\n arrays.\n\n - :py:obj:`~.cudaDevAttrIpcEventSupport`: 1 if the device supports IPC\n Events.\n\n - :py:obj:`~.cudaDevAttrNumaConfig`: NUMA configuration of a"" device:\n value is of type :py:obj:`~.cudaDeviceNumaConfig` enum\n\n - :py:obj:`~.cudaDevAttrNumaId`: NUMA node ID of the GPU memory\n\n Parameters\n ----------\n attr : :py:obj:`~.cudaDeviceAttr`\n Device attribute to query\n device : int\n Device number to query\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorInvalidValue`\n value : int\n Returned device attribute value\n\n See Also\n --------\n :py:obj:`~.cudaGetDeviceCount`, :py:obj:`~.cudaGetDevice`, :py:obj:`~.cudaSetDevice`, :py:obj:`~.cudaChooseDevice`, :py:obj:`~.cudaGetDeviceProperties`, :py:obj:`~.cudaInitDevice`, :py:obj:`~.cuDeviceGetAttribute`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_53cudaDeviceGetAttribute = {"cudaDeviceGetAttribute", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_53cudaDeviceGetAttribute, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_52cudaDeviceGetAttribute}; static PyObject *__pyx_pw_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_attr,&__pyx_n_s_device_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_attr)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 13908, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_device_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 13908, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaDeviceGetAttribute", 1, 2, 2, 1); __PYX_ERR(0, 13908, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaDeviceGetAttribute") < 0)) __PYX_ERR(0, 13908, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_attr = values[0]; __pyx_v_device = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 13909, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaDeviceGetAttribute", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 13908, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 13909, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_52cudaDeviceGetAttribute(__pyx_self, __pyx_v_attr, __pyx_v_device); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_52cudaDeviceGetAttribute(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_attr, int __pyx_v_device) { int __pyx_v_value; enum cudaDeviceAttr __pyx_v_cattr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; enum cudaDeviceAttr __pyx_t_2; cudaError_t __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; unsigned int __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__368) __Pyx_RefNannySetupContext("cudaDeviceGetAttribute", 1); __Pyx_TraceCall("cudaDeviceGetAttribute", __pyx_f[0], 13908, 0, __PYX_ERR(0, 13908, __pyx_L1_error)); /* "cuda/cudart.pyx":14270 * :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 ccudart.cudaDeviceAttr cattr = attr.value * err = ccudart.cudaDeviceGetAttribute(&value, cattr, device) */ __pyx_v_value = 0; /* "cuda/cudart.pyx":14271 * """ * cdef int value = 0 * cdef ccudart.cudaDeviceAttr cattr = attr.value # <<<<<<<<<<<<<< * err = ccudart.cudaDeviceGetAttribute(&value, cattr, device) * return (cudaError_t(err), value) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14271, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaDeviceAttr)__Pyx_PyInt_As_enum__cudaDeviceAttr(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 14271, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cattr = __pyx_t_2; /* "cuda/cudart.pyx":14272 * cdef int value = 0 * cdef ccudart.cudaDeviceAttr cattr = attr.value * err = ccudart.cudaDeviceGetAttribute(&value, cattr, device) # <<<<<<<<<<<<<< * return (cudaError_t(err), value) * */ __pyx_t_3 = __pyx_f_4cuda_7ccudart_cudaDeviceGetAttribute((&__pyx_v_value), __pyx_v_cattr, __pyx_v_device); if (unlikely(__pyx_t_3 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 14272, __pyx_L1_error) __pyx_v_err = __pyx_t_3; /* "cuda/cudart.pyx":14273 * cdef ccudart.cudaDeviceAttr cattr = attr.value * err = ccudart.cudaDeviceGetAttribute(&value, cattr, device) * return (cudaError_t(err), value) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14273, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 14273, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_7 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_5}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14273, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14273, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 14273, __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)) __PYX_ERR(0, 14273, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_4)) __PYX_ERR(0, 14273, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":13908 * return (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_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("cuda.cudart.cudaDeviceGetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":14275 * return (cudaError_t(err), value) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceGetDefaultMemPool(int device): * """ Returns the default mempool of a device. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_55cudaDeviceGetDefaultMemPool(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_54cudaDeviceGetDefaultMemPool, "cudaDeviceGetDefaultMemPool(int device)\n Returns the default mempool of a device.\n\n The default mempool of a device contains device memory from that\n device.\n\n Parameters\n ----------\n device : int\n None\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorInvalidValue` :py:obj:`~.cudaErrorNotSupported`\n memPool : :py:obj:`~.cudaMemPool_t`\n None\n\n See Also\n --------\n :py:obj:`~.cuDeviceGetDefaultMemPool`, :py:obj:`~.cudaMallocAsync`, :py:obj:`~.cudaMemPoolTrimTo`, :py:obj:`~.cudaMemPoolGetAttribute`, :py:obj:`~.cudaDeviceSetMemPool`, :py:obj:`~.cudaMemPoolSetAttribute`, :py:obj:`~.cudaMemPoolSetAccess`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_55cudaDeviceGetDefaultMemPool = {"cudaDeviceGetDefaultMemPool", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_55cudaDeviceGetDefaultMemPool, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_54cudaDeviceGetDefaultMemPool}; static PyObject *__pyx_pw_4cuda_6cudart_55cudaDeviceGetDefaultMemPool(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_device_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_device_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 14275, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaDeviceGetDefaultMemPool") < 0)) __PYX_ERR(0, 14275, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_device = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 14276, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaDeviceGetDefaultMemPool", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 14275, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaDeviceGetDefaultMemPool", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_54cudaDeviceGetDefaultMemPool(__pyx_self, __pyx_v_device); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_54cudaDeviceGetDefaultMemPool(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device) { struct __pyx_obj_4cuda_6cudart_cudaMemPool_t *__pyx_v_memPool = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; cudaError_t __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__369) __Pyx_RefNannySetupContext("cudaDeviceGetDefaultMemPool", 1); __Pyx_TraceCall("cudaDeviceGetDefaultMemPool", __pyx_f[0], 14275, 0, __PYX_ERR(0, 14275, __pyx_L1_error)); /* "cuda/cudart.pyx":14298 * :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 = ccudart.cudaDeviceGetDefaultMemPool(memPool._ptr, device) */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemPool_t)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14298, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_memPool = ((struct __pyx_obj_4cuda_6cudart_cudaMemPool_t *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":14299 * """ * cdef cudaMemPool_t memPool = cudaMemPool_t() * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaDeviceGetDefaultMemPool(memPool._ptr, device) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":14300 * cdef cudaMemPool_t memPool = cudaMemPool_t() * with nogil: * err = ccudart.cudaDeviceGetDefaultMemPool(memPool._ptr, device) # <<<<<<<<<<<<<< * * return (cudaError_t(err), memPool) */ __pyx_t_2 = __pyx_f_4cuda_7ccudart_cudaDeviceGetDefaultMemPool(((cudaMemPool_t *)__pyx_v_memPool->__pyx_base._ptr), __pyx_v_device); if (unlikely(__pyx_t_2 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 14300, __pyx_L4_error) __pyx_v_err = __pyx_t_2; } /* "cuda/cudart.pyx":14299 * """ * cdef cudaMemPool_t memPool = cudaMemPool_t() * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaDeviceGetDefaultMemPool(memPool._ptr, device) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L5; } __pyx_L4_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L5:; } } /* "cuda/cudart.pyx":14302 * err = ccudart.cudaDeviceGetDefaultMemPool(memPool._ptr, device) * * return (cudaError_t(err), memPool) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14302, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14302, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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, 14302, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14302, __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)) __PYX_ERR(0, 14302, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_memPool); __Pyx_GIVEREF((PyObject *)__pyx_v_memPool); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_v_memPool))) __PYX_ERR(0, 14302, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":14275 * return (cudaError_t(err), value) * * @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_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaDeviceGetDefaultMemPool", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_memPool); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":14304 * return (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_6cudart_57cudaDeviceSetMemPool(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_56cudaDeviceSetMemPool, "cudaDeviceSetMemPool(int device, memPool)\n Sets the current memory pool of a device.\n\n The memory pool must be local to the specified device. Unless a mempool\n is specified in the :py:obj:`~.cudaMallocAsync` call,\n :py:obj:`~.cudaMallocAsync` allocates from the current mempool of the\n provided stream's device. By default, a device's current memory pool is\n its default memory pool.\n\n Parameters\n ----------\n device : int\n None\n memPool : :py:obj:`~.CUmemoryPool` or :py:obj:`~.cudaMemPool_t`\n None\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue` :py:obj:`~.cudaErrorInvalidDevice` :py:obj:`~.cudaErrorNotSupported`\n\n See Also\n --------\n :py:obj:`~.cuDeviceSetMemPool`, :py:obj:`~.cudaDeviceGetMemPool`, :py:obj:`~.cudaDeviceGetDefaultMemPool`, :py:obj:`~.cudaMemPoolCreate`, :py:obj:`~.cudaMemPoolDestroy`, :py:obj:`~.cudaMallocFromPoolAsync`\n\n Notes\n -----\n Use :py:obj:`~.cudaMallocFromPoolAsync` to specify asynchronous allocations from a device different than the one the stream runs on.\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_57cudaDeviceSetMemPool = {"cudaDeviceSetMemPool", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_57cudaDeviceSetMemPool, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_56cudaDeviceSetMemPool}; static PyObject *__pyx_pw_4cuda_6cudart_57cudaDeviceSetMemPool(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_device_2,&__pyx_n_s_memPool,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_device_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 14304, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_memPool)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 14304, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaDeviceSetMemPool", 1, 2, 2, 1); __PYX_ERR(0, 14304, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaDeviceSetMemPool") < 0)) __PYX_ERR(0, 14304, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_device = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 14305, __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, 14304, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaDeviceSetMemPool", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_56cudaDeviceSetMemPool(__pyx_self, __pyx_v_device, __pyx_v_memPool); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_56cudaDeviceSetMemPool(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device, PyObject *__pyx_v_memPool) { cudaMemPool_t __pyx_v_cmemPool; PyObject *__pyx_v_pmemPool = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__370) __Pyx_RefNannySetupContext("cudaDeviceSetMemPool", 1); __Pyx_TraceCall("cudaDeviceSetMemPool", __pyx_f[0], 14304, 0, __PYX_ERR(0, 14304, __pyx_L1_error)); /* "cuda/cudart.pyx":14335 * """ * cdef ccudart.cudaMemPool_t cmemPool * if memPool is None: # <<<<<<<<<<<<<< * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): */ __pyx_t_1 = (__pyx_v_memPool == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":14336 * cdef ccudart.cudaMemPool_t cmemPool * if memPool is None: * cmemPool = 0 # <<<<<<<<<<<<<< * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): * pmemPool = int(memPool) */ __pyx_v_cmemPool = ((cudaMemPool_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":14335 * """ * cdef ccudart.cudaMemPool_t cmemPool * if memPool is None: # <<<<<<<<<<<<<< * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":14337 * if memPool is None: * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): # <<<<<<<<<<<<<< * pmemPool = int(memPool) * cmemPool = pmemPool */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_memPool, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUmemoryPool); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":14338 * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): * pmemPool = int(memPool) # <<<<<<<<<<<<<< * cmemPool = pmemPool * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_memPool); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14338, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pmemPool = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":14339 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): * pmemPool = int(memPool) * cmemPool = pmemPool # <<<<<<<<<<<<<< * else: * pmemPool = int(cudaMemPool_t(memPool)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pmemPool); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14339, __pyx_L1_error) __pyx_v_cmemPool = ((cudaMemPool_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":14337 * if memPool is None: * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): # <<<<<<<<<<<<<< * pmemPool = int(memPool) * cmemPool = pmemPool */ goto __pyx_L3; } /* "cuda/cudart.pyx":14341 * cmemPool = pmemPool * else: * pmemPool = int(cudaMemPool_t(memPool)) # <<<<<<<<<<<<<< * cmemPool = pmemPool * with nogil: */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemPool_t), __pyx_v_memPool); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14341, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 14341, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pmemPool = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":14342 * else: * pmemPool = int(cudaMemPool_t(memPool)) * cmemPool = pmemPool # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaDeviceSetMemPool(device, cmemPool) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pmemPool); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14342, __pyx_L1_error) __pyx_v_cmemPool = ((cudaMemPool_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":14343 * pmemPool = int(cudaMemPool_t(memPool)) * cmemPool = pmemPool * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaDeviceSetMemPool(device, cmemPool) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":14344 * cmemPool = pmemPool * with nogil: * err = ccudart.cudaDeviceSetMemPool(device, cmemPool) # <<<<<<<<<<<<<< * * return (cudaError_t(err),) */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaDeviceSetMemPool(__pyx_v_device, __pyx_v_cmemPool); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 14344, __pyx_L7_error) __pyx_v_err = __pyx_t_6; } /* "cuda/cudart.pyx":14343 * pmemPool = int(cudaMemPool_t(memPool)) * cmemPool = pmemPool * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaDeviceSetMemPool(device, cmemPool) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L8; } __pyx_L7_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L8:; } } /* "cuda/cudart.pyx":14346 * err = ccudart.cudaDeviceSetMemPool(device, cmemPool) * * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14346, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 14346, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 14346, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14346, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 14346, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":14304 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaDeviceSetMemPool", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pmemPool); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":14348 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceGetMemPool(int device): * """ Gets the current mempool for a device. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_59cudaDeviceGetMemPool(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_58cudaDeviceGetMemPool, "cudaDeviceGetMemPool(int device)\n Gets the current mempool for a device.\n\n Returns the last pool provided to :py:obj:`~.cudaDeviceSetMemPool` for\n this device or the device's default memory pool if\n :py:obj:`~.cudaDeviceSetMemPool` has never been called. By default the\n current mempool is the default mempool for a device, otherwise the\n returned pool must have been set with :py:obj:`~.cuDeviceSetMemPool` or\n :py:obj:`~.cudaDeviceSetMemPool`.\n\n Parameters\n ----------\n device : int\n None\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue` :py:obj:`~.cudaErrorNotSupported`\n memPool : :py:obj:`~.cudaMemPool_t`\n None\n\n See Also\n --------\n :py:obj:`~.cuDeviceGetMemPool`, :py:obj:`~.cudaDeviceGetDefaultMemPool`, :py:obj:`~.cudaDeviceSetMemPool`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_59cudaDeviceGetMemPool = {"cudaDeviceGetMemPool", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_59cudaDeviceGetMemPool, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_58cudaDeviceGetMemPool}; static PyObject *__pyx_pw_4cuda_6cudart_59cudaDeviceGetMemPool(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_device_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_device_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 14348, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaDeviceGetMemPool") < 0)) __PYX_ERR(0, 14348, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_device = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 14349, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaDeviceGetMemPool", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 14348, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaDeviceGetMemPool", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_58cudaDeviceGetMemPool(__pyx_self, __pyx_v_device); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_58cudaDeviceGetMemPool(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device) { struct __pyx_obj_4cuda_6cudart_cudaMemPool_t *__pyx_v_memPool = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; cudaError_t __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__371) __Pyx_RefNannySetupContext("cudaDeviceGetMemPool", 1); __Pyx_TraceCall("cudaDeviceGetMemPool", __pyx_f[0], 14348, 0, __PYX_ERR(0, 14348, __pyx_L1_error)); /* "cuda/cudart.pyx":14375 * :py:obj:`~.cuDeviceGetMemPool`, :py:obj:`~.cudaDeviceGetDefaultMemPool`, :py:obj:`~.cudaDeviceSetMemPool` * """ * cdef cudaMemPool_t memPool = cudaMemPool_t() # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaDeviceGetMemPool(memPool._ptr, device) */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemPool_t)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14375, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_memPool = ((struct __pyx_obj_4cuda_6cudart_cudaMemPool_t *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":14376 * """ * cdef cudaMemPool_t memPool = cudaMemPool_t() * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaDeviceGetMemPool(memPool._ptr, device) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":14377 * cdef cudaMemPool_t memPool = cudaMemPool_t() * with nogil: * err = ccudart.cudaDeviceGetMemPool(memPool._ptr, device) # <<<<<<<<<<<<<< * * return (cudaError_t(err), memPool) */ __pyx_t_2 = __pyx_f_4cuda_7ccudart_cudaDeviceGetMemPool(((cudaMemPool_t *)__pyx_v_memPool->__pyx_base._ptr), __pyx_v_device); if (unlikely(__pyx_t_2 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 14377, __pyx_L4_error) __pyx_v_err = __pyx_t_2; } /* "cuda/cudart.pyx":14376 * """ * cdef cudaMemPool_t memPool = cudaMemPool_t() * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaDeviceGetMemPool(memPool._ptr, device) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L5; } __pyx_L4_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L5:; } } /* "cuda/cudart.pyx":14379 * err = ccudart.cudaDeviceGetMemPool(memPool._ptr, device) * * return (cudaError_t(err), memPool) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14379, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14379, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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, 14379, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14379, __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)) __PYX_ERR(0, 14379, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_memPool); __Pyx_GIVEREF((PyObject *)__pyx_v_memPool); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_v_memPool))) __PYX_ERR(0, 14379, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":14348 * return (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_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaDeviceGetMemPool", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_memPool); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":14381 * return (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_6cudart_61cudaDeviceGetNvSciSyncAttributes(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_60cudaDeviceGetNvSciSyncAttributes, "cudaDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, int device, int flags)\n Return NvSciSync attributes that this device can support.\n\n Returns in `nvSciSyncAttrList`, the properties of NvSciSync that this\n CUDA device, `dev` can support. The returned `nvSciSyncAttrList` can be\n used to create an NvSciSync that matches this device's capabilities.\n\n If NvSciSyncAttrKey_RequiredPerm field in `nvSciSyncAttrList` is\n already set this API will return :py:obj:`~.cudaErrorInvalidValue`.\n\n The applications should set `nvSciSyncAttrList` to a valid\n NvSciSyncAttrList failing which this API will return\n :py:obj:`~.cudaErrorInvalidHandle`.\n\n The `flags` controls how applications intends to use the NvSciSync\n created 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\n At least one of these flags must be set, failing which the API returns\n :py:obj:`~.cudaErrorInvalidValue`. Both the flags are orthogonal to one\n another: a developer may set both these flags that allows to set both\n wait and signal specific attributes in the same `nvSciSyncAttrList`.\n\n Note that this API updates the input `nvSciSyncAttrList` with values\n equivalent to the following public attribute key-values:\n NvSciSyncAttrKey_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 - NvSciSyncA""ttrValPrimitiveType_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\n Parameters\n ----------\n nvSciSyncAttrList : Any\n Return NvSciSync attributes supported.\n device : int\n Valid Cuda Device to get NvSciSync attributes for.\n flags : int\n flags describing NvSciSync usage.\n\n Returns\n -------\n cudaError_t\n\n\n See Also\n --------\n :py:obj:`~.cudaImportExternalSemaphore`, :py:obj:`~.cudaDestroyExternalSemaphore`, :py:obj:`~.cudaSignalExternalSemaphoresAsync`, :py:obj:`~.cudaWaitExternalSemaphoresAsync`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_61cudaDeviceGetNvSciSyncAttributes = {"cudaDeviceGetNvSciSyncAttributes", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_61cudaDeviceGetNvSciSyncAttributes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_60cudaDeviceGetNvSciSyncAttributes}; static PyObject *__pyx_pw_4cuda_6cudart_61cudaDeviceGetNvSciSyncAttributes(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nvSciSyncAttrList,&__pyx_n_s_device_2,&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_nvSciSyncAttrList)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 14381, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_device_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 14381, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaDeviceGetNvSciSyncAttributes", 1, 3, 3, 1); __PYX_ERR(0, 14381, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 14381, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaDeviceGetNvSciSyncAttributes", 1, 3, 3, 2); __PYX_ERR(0, 14381, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaDeviceGetNvSciSyncAttributes") < 0)) __PYX_ERR(0, 14381, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_nvSciSyncAttrList = values[0]; __pyx_v_device = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 14382, __pyx_L3_error) __pyx_v_flags = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 14382, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaDeviceGetNvSciSyncAttributes", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 14381, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaDeviceGetNvSciSyncAttributes", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_60cudaDeviceGetNvSciSyncAttributes(__pyx_self, __pyx_v_nvSciSyncAttrList, __pyx_v_device, __pyx_v_flags); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_60cudaDeviceGetNvSciSyncAttributes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_nvSciSyncAttrList, int __pyx_v_device, int __pyx_v_flags) { PyObject *__pyx_v_cnvSciSyncAttrList = NULL; void *__pyx_v_cnvSciSyncAttrList_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; cudaError_t __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; unsigned int __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__372) __Pyx_RefNannySetupContext("cudaDeviceGetNvSciSyncAttributes", 1); __Pyx_TraceCall("cudaDeviceGetNvSciSyncAttributes", __pyx_f[0], 14381, 0, __PYX_ERR(0, 14381, __pyx_L1_error)); /* "cuda/cudart.pyx":14458 * :py:obj:`~.cudaImportExternalSemaphore`, :py:obj:`~.cudaDestroyExternalSemaphore`, :py:obj:`~.cudaSignalExternalSemaphoresAsync`, :py:obj:`~.cudaWaitExternalSemaphoresAsync` * """ * cnvSciSyncAttrList = utils.HelperInputVoidPtr(nvSciSyncAttrList) # <<<<<<<<<<<<<< * cdef void* cnvSciSyncAttrList_ptr = cnvSciSyncAttrList.cptr * err = ccudart.cudaDeviceGetNvSciSyncAttributes(cnvSciSyncAttrList_ptr, device, flags) */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_nvSciSyncAttrList); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14458, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_cnvSciSyncAttrList = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":14459 * """ * cnvSciSyncAttrList = utils.HelperInputVoidPtr(nvSciSyncAttrList) * cdef void* cnvSciSyncAttrList_ptr = cnvSciSyncAttrList.cptr # <<<<<<<<<<<<<< * err = ccudart.cudaDeviceGetNvSciSyncAttributes(cnvSciSyncAttrList_ptr, device, flags) * return (cudaError_t(err),) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_cnvSciSyncAttrList, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14459, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14459, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cnvSciSyncAttrList_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":14460 * cnvSciSyncAttrList = utils.HelperInputVoidPtr(nvSciSyncAttrList) * cdef void* cnvSciSyncAttrList_ptr = cnvSciSyncAttrList.cptr * err = ccudart.cudaDeviceGetNvSciSyncAttributes(cnvSciSyncAttrList_ptr, device, flags) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_3 = __pyx_f_4cuda_7ccudart_cudaDeviceGetNvSciSyncAttributes(__pyx_v_cnvSciSyncAttrList_ptr, __pyx_v_device, __pyx_v_flags); if (unlikely(__pyx_t_3 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 14460, __pyx_L1_error) __pyx_v_err = __pyx_t_3; /* "cuda/cudart.pyx":14461 * cdef void* cnvSciSyncAttrList_ptr = cnvSciSyncAttrList.cptr * err = ccudart.cudaDeviceGetNvSciSyncAttributes(cnvSciSyncAttrList_ptr, device, flags) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14461, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 14461, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_7 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_5}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14461, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14461, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1)) __PYX_ERR(0, 14461, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":14381 * return (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_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("cuda.cudart.cudaDeviceGetNvSciSyncAttributes", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_cnvSciSyncAttrList); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":14463 * return (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_6cudart_63cudaDeviceGetP2PAttribute(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_62cudaDeviceGetP2PAttribute, "cudaDeviceGetP2PAttribute(attr: cudaDeviceP2PAttr, int srcDevice, int dstDevice)\n Queries attributes of the link between two devices.\n\n Returns in `*value` the value of the requested attribute `attrib` of\n the link between `srcDevice` and `dstDevice`. The supported attributes\n are:\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 native atomic\n operations over the link are supported.\n\n - :py:obj:`~.cudaDevP2PAttrCudaArrayAccessSupported`: 1 if accessing\n CUDA arrays over the link is supported.\n\n Returns :py:obj:`~.cudaErrorInvalidDevice` if `srcDevice` or\n `dstDevice` are not valid or if they represent the same device.\n\n Returns :py:obj:`~.cudaErrorInvalidValue` if `attrib` is not valid or\n if `value` is a null pointer.\n\n Parameters\n ----------\n attrib : :py:obj:`~.cudaDeviceP2PAttr`\n The requested attribute of the link between `srcDevice` and\n `dstDevice`.\n srcDevice : int\n The source device of the target link.\n dstDevice : int\n The destination device of the target link.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorInvalidValue`\n value : int\n Returned value of the requested attribute\n\n See Also\n --------\n :py:obj:`~.cudaDeviceEnablePeerAccess`, :py:obj:`~.cudaDeviceDisablePeerAccess`, :py:obj:`~.cudaDeviceCanAccessPeer`, :py:obj:`~.cuDeviceGetP2PAttribute`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_63cudaDeviceGetP2PAttribute = {"cudaDeviceGetP2PAttribute", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_63cudaDeviceGetP2PAttribute, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_62cudaDeviceGetP2PAttribute}; static PyObject *__pyx_pw_4cuda_6cudart_63cudaDeviceGetP2PAttribute(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_attr,&__pyx_n_s_srcDevice_2,&__pyx_n_s_dstDevice_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_attr)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 14463, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_srcDevice_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 14463, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaDeviceGetP2PAttribute", 1, 3, 3, 1); __PYX_ERR(0, 14463, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dstDevice_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 14463, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaDeviceGetP2PAttribute", 1, 3, 3, 2); __PYX_ERR(0, 14463, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaDeviceGetP2PAttribute") < 0)) __PYX_ERR(0, 14463, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_attr = values[0]; __pyx_v_srcDevice = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_srcDevice == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 14464, __pyx_L3_error) __pyx_v_dstDevice = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_dstDevice == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 14464, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaDeviceGetP2PAttribute", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 14463, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 14464, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_62cudaDeviceGetP2PAttribute(__pyx_self, __pyx_v_attr, __pyx_v_srcDevice, __pyx_v_dstDevice); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_62cudaDeviceGetP2PAttribute(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_cattr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; enum cudaDeviceP2PAttr __pyx_t_2; cudaError_t __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; unsigned int __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__373) __Pyx_RefNannySetupContext("cudaDeviceGetP2PAttribute", 1); __Pyx_TraceCall("cudaDeviceGetP2PAttribute", __pyx_f[0], 14463, 0, __PYX_ERR(0, 14463, __pyx_L1_error)); /* "cuda/cudart.pyx":14512 * :py:obj:`~.cudaDeviceEnablePeerAccess`, :py:obj:`~.cudaDeviceDisablePeerAccess`, :py:obj:`~.cudaDeviceCanAccessPeer`, :py:obj:`~.cuDeviceGetP2PAttribute` * """ * cdef int value = 0 # <<<<<<<<<<<<<< * cdef ccudart.cudaDeviceP2PAttr cattr = attr.value * err = ccudart.cudaDeviceGetP2PAttribute(&value, cattr, srcDevice, dstDevice) */ __pyx_v_value = 0; /* "cuda/cudart.pyx":14513 * """ * cdef int value = 0 * cdef ccudart.cudaDeviceP2PAttr cattr = attr.value # <<<<<<<<<<<<<< * err = ccudart.cudaDeviceGetP2PAttribute(&value, cattr, srcDevice, dstDevice) * return (cudaError_t(err), value) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14513, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaDeviceP2PAttr)__Pyx_PyInt_As_enum__cudaDeviceP2PAttr(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 14513, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cattr = __pyx_t_2; /* "cuda/cudart.pyx":14514 * cdef int value = 0 * cdef ccudart.cudaDeviceP2PAttr cattr = attr.value * err = ccudart.cudaDeviceGetP2PAttribute(&value, cattr, srcDevice, dstDevice) # <<<<<<<<<<<<<< * return (cudaError_t(err), value) * */ __pyx_t_3 = __pyx_f_4cuda_7ccudart_cudaDeviceGetP2PAttribute((&__pyx_v_value), __pyx_v_cattr, __pyx_v_srcDevice, __pyx_v_dstDevice); if (unlikely(__pyx_t_3 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 14514, __pyx_L1_error) __pyx_v_err = __pyx_t_3; /* "cuda/cudart.pyx":14515 * cdef ccudart.cudaDeviceP2PAttr cattr = attr.value * err = ccudart.cudaDeviceGetP2PAttribute(&value, cattr, srcDevice, dstDevice) * return (cudaError_t(err), value) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14515, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 14515, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_7 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_5}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14515, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14515, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 14515, __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)) __PYX_ERR(0, 14515, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_4)) __PYX_ERR(0, 14515, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":14463 * return (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_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("cuda.cudart.cudaDeviceGetP2PAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":14517 * return (cudaError_t(err), value) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaChooseDevice(prop : Optional[cudaDeviceProp]): * """ Select compute-device which best matches criteria. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_65cudaChooseDevice(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_64cudaChooseDevice, "cudaChooseDevice(cudaDeviceProp prop: Optional[cudaDeviceProp])\n Select compute-device which best matches criteria.\n\n Returns in `*device` the device which has properties that best match\n `*prop`.\n\n Parameters\n ----------\n prop : :py:obj:`~.cudaDeviceProp`\n Desired device properties\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n device : int\n Device with best match\n\n See Also\n --------\n :py:obj:`~.cudaGetDeviceCount`, :py:obj:`~.cudaGetDevice`, :py:obj:`~.cudaSetDevice`, :py:obj:`~.cudaGetDeviceProperties`, :py:obj:`~.cudaInitDevice`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_65cudaChooseDevice = {"cudaChooseDevice", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_65cudaChooseDevice, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_64cudaChooseDevice}; static PyObject *__pyx_pw_4cuda_6cudart_65cudaChooseDevice(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_prop,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_prop)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 14517, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaChooseDevice") < 0)) __PYX_ERR(0, 14517, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_prop = ((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)values[0]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaChooseDevice", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 14517, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaDeviceProp, 1, "prop", 0))) __PYX_ERR(0, 14518, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_64cudaChooseDevice(__pyx_self, __pyx_v_prop); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_64cudaChooseDevice(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *__pyx_v_prop) { int __pyx_v_device; struct cudaDeviceProp *__pyx_v_cprop_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations struct cudaDeviceProp *__pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; cudaError_t __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__374) __Pyx_RefNannySetupContext("cudaChooseDevice", 1); __Pyx_TraceCall("cudaChooseDevice", __pyx_f[0], 14517, 0, __PYX_ERR(0, 14517, __pyx_L1_error)); /* "cuda/cudart.pyx":14540 * :py:obj:`~.cudaGetDeviceCount`, :py:obj:`~.cudaGetDevice`, :py:obj:`~.cudaSetDevice`, :py:obj:`~.cudaGetDeviceProperties`, :py:obj:`~.cudaInitDevice` * """ * cdef int device = 0 # <<<<<<<<<<<<<< * cdef ccudart.cudaDeviceProp* cprop_ptr = prop._ptr if prop != None else NULL * err = ccudart.cudaChooseDevice(&device, cprop_ptr) */ __pyx_v_device = 0; /* "cuda/cudart.pyx":14541 * """ * cdef int device = 0 * cdef ccudart.cudaDeviceProp* cprop_ptr = prop._ptr if prop != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaChooseDevice(&device, cprop_ptr) * return (cudaError_t(err), device) */ __pyx_t_2 = PyObject_RichCompare(((PyObject *)__pyx_v_prop), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14541, __pyx_L1_error) __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 14541, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_3) { __pyx_t_1 = __pyx_v_prop->_ptr; } else { __pyx_t_1 = NULL; } __pyx_v_cprop_ptr = __pyx_t_1; /* "cuda/cudart.pyx":14542 * cdef int device = 0 * cdef ccudart.cudaDeviceProp* cprop_ptr = prop._ptr if prop != None else NULL * err = ccudart.cudaChooseDevice(&device, cprop_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err), device) * */ __pyx_t_4 = __pyx_f_4cuda_7ccudart_cudaChooseDevice((&__pyx_v_device), __pyx_v_cprop_ptr); if (unlikely(__pyx_t_4 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 14542, __pyx_L1_error) __pyx_v_err = __pyx_t_4; /* "cuda/cudart.pyx":14543 * cdef ccudart.cudaDeviceProp* cprop_ptr = prop._ptr if prop != None else NULL * err = ccudart.cudaChooseDevice(&device, cprop_ptr) * return (cudaError_t(err), device) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 14543, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14543, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __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, 14543, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_device); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 14543, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14543, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_2)) __PYX_ERR(0, 14543, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_5)) __PYX_ERR(0, 14543, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_5 = 0; __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":14517 * return (cudaError_t(err), value) * * @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_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.cudaChooseDevice", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":14545 * return (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_6cudart_67cudaInitDevice(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_66cudaInitDevice, "cudaInitDevice(int device, unsigned int deviceFlags, unsigned int flags)\n Initialize device to be used for GPU executions.\n\n This function will initialize the CUDA Runtime structures and primary\n context on `device` when called, but the context will not be made\n current to `device`.\n\n When :py:obj:`~.cudaInitDeviceFlagsAreValid` is set in `flags`,\n deviceFlags are applied to the requested device. The values of\n deviceFlags match those of the flags parameters in\n :py:obj:`~.cudaSetDeviceFlags`. The effect may be verified by\n :py:obj:`~.cudaGetDeviceFlags`.\n\n This function will 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 Parameters\n ----------\n device : int\n Device on which the runtime will initialize itself.\n deviceFlags : unsigned int\n Parameters for device operation.\n flags : unsigned int\n Flags for controlling the device initialization.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`,\n\n See Also\n --------\n :py:obj:`~.cudaGetDeviceCount`, :py:obj:`~.cudaGetDevice`, :py:obj:`~.cudaGetDeviceProperties`, :py:obj:`~.cudaChooseDevice`, :py:obj:`~.cudaSetDevice` :py:obj:`~.cuCtxSetCurrent`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_67cudaInitDevice = {"cudaInitDevice", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_67cudaInitDevice, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_66cudaInitDevice}; static PyObject *__pyx_pw_4cuda_6cudart_67cudaInitDevice(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_device_2,&__pyx_n_s_deviceFlags,&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_device_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 14545, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_deviceFlags)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 14545, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaInitDevice", 1, 3, 3, 1); __PYX_ERR(0, 14545, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 14545, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaInitDevice", 1, 3, 3, 2); __PYX_ERR(0, 14545, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaInitDevice") < 0)) __PYX_ERR(0, 14545, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_device = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 14546, __pyx_L3_error) __pyx_v_deviceFlags = __Pyx_PyInt_As_unsigned_int(values[1]); if (unlikely((__pyx_v_deviceFlags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 14546, __pyx_L3_error) __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[2]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 14546, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaInitDevice", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 14545, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaInitDevice", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_66cudaInitDevice(__pyx_self, __pyx_v_device, __pyx_v_deviceFlags, __pyx_v_flags); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_66cudaInitDevice(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_TraceDeclarations __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; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__375) __Pyx_RefNannySetupContext("cudaInitDevice", 1); __Pyx_TraceCall("cudaInitDevice", __pyx_f[0], 14545, 0, __PYX_ERR(0, 14545, __pyx_L1_error)); /* "cuda/cudart.pyx":14581 * :py:obj:`~.cudaGetDeviceCount`, :py:obj:`~.cudaGetDevice`, :py:obj:`~.cudaGetDeviceProperties`, :py:obj:`~.cudaChooseDevice`, :py:obj:`~.cudaSetDevice` :py:obj:`~.cuCtxSetCurrent` * """ * err = ccudart.cudaInitDevice(device, deviceFlags, flags) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_1 = __pyx_f_4cuda_7ccudart_cudaInitDevice(__pyx_v_device, __pyx_v_deviceFlags, __pyx_v_flags); if (unlikely(__pyx_t_1 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 14581, __pyx_L1_error) __pyx_v_err = __pyx_t_1; /* "cuda/cudart.pyx":14582 * """ * err = ccudart.cudaInitDevice(device, deviceFlags, flags) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14582, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14582, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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(0, 14582, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14582, __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)) __PYX_ERR(0, 14582, __pyx_L1_error); __pyx_t_2 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":14545 * return (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_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaInitDevice", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":14584 * return (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_6cudart_69cudaSetDevice(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_68cudaSetDevice, "cudaSetDevice(int device)\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:`~.cudaHostRegister()` 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 "); static PyMethodDef __pyx_mdef_4cuda_6cudart_69cudaSetDevice = {"cudaSetDevice", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_69cudaSetDevice, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_68cudaSetDevice}; static PyObject *__pyx_pw_4cuda_6cudart_69cudaSetDevice(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_device_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_device_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 14584, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaSetDevice") < 0)) __PYX_ERR(0, 14584, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_device = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 14585, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaSetDevice", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 14584, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaSetDevice", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_68cudaSetDevice(__pyx_self, __pyx_v_device); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_68cudaSetDevice(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device) { cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__376) __Pyx_RefNannySetupContext("cudaSetDevice", 1); __Pyx_TraceCall("cudaSetDevice", __pyx_f[0], 14584, 0, __PYX_ERR(0, 14584, __pyx_L1_error)); /* "cuda/cudart.pyx":14633 * :py:obj:`~.cudaGetDeviceCount`, :py:obj:`~.cudaGetDevice`, :py:obj:`~.cudaGetDeviceProperties`, :py:obj:`~.cudaChooseDevice`, :py:obj:`~.cudaInitDevice`, :py:obj:`~.cuCtxSetCurrent` * """ * err = ccudart.cudaSetDevice(device) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_1 = __pyx_f_4cuda_7ccudart_cudaSetDevice(__pyx_v_device); if (unlikely(__pyx_t_1 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 14633, __pyx_L1_error) __pyx_v_err = __pyx_t_1; /* "cuda/cudart.pyx":14634 * """ * err = ccudart.cudaSetDevice(device) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14634, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14634, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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(0, 14634, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14634, __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)) __PYX_ERR(0, 14634, __pyx_L1_error); __pyx_t_2 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":14584 * return (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_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaSetDevice", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":14636 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGetDevice(): * """ Returns which device is currently being used. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_71cudaGetDevice(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_70cudaGetDevice, "cudaGetDevice()\n Returns which device is currently being used.\n\n Returns in `*device` the current device for the calling host thread.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorDeviceUnavailable`,\n device : int\n Returns the device on which the active host thread executes the\n device code.\n\n See Also\n --------\n :py:obj:`~.cudaGetDeviceCount`, :py:obj:`~.cudaSetDevice`, :py:obj:`~.cudaGetDeviceProperties`, :py:obj:`~.cudaChooseDevice`, :py:obj:`~.cuCtxGetCurrent`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_71cudaGetDevice = {"cudaGetDevice", (PyCFunction)__pyx_pw_4cuda_6cudart_71cudaGetDevice, METH_NOARGS, __pyx_doc_4cuda_6cudart_70cudaGetDevice}; static PyObject *__pyx_pw_4cuda_6cudart_71cudaGetDevice(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_6cudart_70cudaGetDevice(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_70cudaGetDevice(CYTHON_UNUSED PyObject *__pyx_self) { int __pyx_v_device; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__377) __Pyx_RefNannySetupContext("cudaGetDevice", 1); __Pyx_TraceCall("cudaGetDevice", __pyx_f[0], 14636, 0, __PYX_ERR(0, 14636, __pyx_L1_error)); /* "cuda/cudart.pyx":14654 * :py:obj:`~.cudaGetDeviceCount`, :py:obj:`~.cudaSetDevice`, :py:obj:`~.cudaGetDeviceProperties`, :py:obj:`~.cudaChooseDevice`, :py:obj:`~.cuCtxGetCurrent` * """ * cdef int device = 0 # <<<<<<<<<<<<<< * err = ccudart.cudaGetDevice(&device) * return (cudaError_t(err), device) */ __pyx_v_device = 0; /* "cuda/cudart.pyx":14655 * """ * cdef int device = 0 * err = ccudart.cudaGetDevice(&device) # <<<<<<<<<<<<<< * return (cudaError_t(err), device) * */ __pyx_t_1 = __pyx_f_4cuda_7ccudart_cudaGetDevice((&__pyx_v_device)); if (unlikely(__pyx_t_1 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 14655, __pyx_L1_error) __pyx_v_err = __pyx_t_1; /* "cuda/cudart.pyx":14656 * cdef int device = 0 * err = ccudart.cudaGetDevice(&device) * return (cudaError_t(err), device) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14656, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14656, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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(0, 14656, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_device); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14656, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14656, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 14656, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3)) __PYX_ERR(0, 14656, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_3 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":14636 * return (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_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaGetDevice", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":14658 * return (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_6cudart_73cudaSetDeviceFlags(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_72cudaSetDeviceFlags, "cudaSetDeviceFlags(unsigned int flags)\n Sets flags to be used for device executions.\n\n Records `flags` as the flags for the current device. If the current\n device has been set and that device has already been initialized, the\n previous flags are overwritten. If the current device has not been\n initialized, it is initialized with the provided flags. If no device\n has been made current to the calling thread, a default device is\n selected and initialized with the provided flags.\n\n The three LSBs of the `flags` parameter can be used to control how the\n CPU thread interacts with the OS scheduler when waiting for results\n from 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:`~.cudaDeviceScheduleBlocking""Sync`: Instruct CUDA to block\n the CPU thread on a synchronization primitive when waiting for the\n device to 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\n Parameters\n ----------\n flags : unsigned int\n Parameters for device operation\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\n See Also\n --------\n :py:obj:`~.cudaGetDeviceFlags`, :py:obj:`~.cudaGetDeviceCount`, :py:obj:`~.cudaGetDevice`, :py:obj:`~.cudaGetDeviceProperties`, :py:obj:`~.cudaSetDevi""ce`, :py:obj:`~.cudaSetValidDevices`, :py:obj:`~.cudaInitDevice`, :py:obj:`~.cudaChooseDevice`, :py:obj:`~.cuDevicePrimaryCtxSetFlags`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_73cudaSetDeviceFlags = {"cudaSetDeviceFlags", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_73cudaSetDeviceFlags, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_72cudaSetDeviceFlags}; static PyObject *__pyx_pw_4cuda_6cudart_73cudaSetDeviceFlags(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 14658, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaSetDeviceFlags") < 0)) __PYX_ERR(0, 14658, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[0]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 14659, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaSetDeviceFlags", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 14658, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaSetDeviceFlags", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_72cudaSetDeviceFlags(__pyx_self, __pyx_v_flags); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_72cudaSetDeviceFlags(CYTHON_UNUSED PyObject *__pyx_self, unsigned int __pyx_v_flags) { cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__378) __Pyx_RefNannySetupContext("cudaSetDeviceFlags", 1); __Pyx_TraceCall("cudaSetDeviceFlags", __pyx_f[0], 14658, 0, __PYX_ERR(0, 14658, __pyx_L1_error)); /* "cuda/cudart.pyx":14738 * :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` * """ * err = ccudart.cudaSetDeviceFlags(flags) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_1 = __pyx_f_4cuda_7ccudart_cudaSetDeviceFlags(__pyx_v_flags); if (unlikely(__pyx_t_1 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 14738, __pyx_L1_error) __pyx_v_err = __pyx_t_1; /* "cuda/cudart.pyx":14739 * """ * err = ccudart.cudaSetDeviceFlags(flags) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14739, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14739, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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(0, 14739, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14739, __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)) __PYX_ERR(0, 14739, __pyx_L1_error); __pyx_t_2 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":14658 * return (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_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaSetDeviceFlags", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":14741 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGetDeviceFlags(): * """ Gets the flags for the current device. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_75cudaGetDeviceFlags(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_74cudaGetDeviceFlags, "cudaGetDeviceFlags()\n Gets the flags for the current device.\n\n Returns in `flags` the flags for the current device. If there is a\n current device for the calling thread, the flags for the device are\n returned. If there is no current device, the flags for the first device\n are returned, which may be the default flags. Compare to the behavior\n of :py:obj:`~.cudaSetDeviceFlags`.\n\n Typically, the flags returned should match the behavior that will be\n seen if the calling thread uses a device after this call, without any\n change to the flags or current device inbetween by this or another\n thread. Note that if the device is not initialized, it is possible for\n another thread to change the flags for the current device before it is\n initialized. Additionally, when using exclusive mode, if this thread\n has not requested a specific device, it may use a device other than the\n first device, contrary to the assumption made by this function.\n\n If a context has been created via the driver API and is current to the\n calling thread, the flags for that context are always returned.\n\n Flags 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\n flags. The reason for this is that the current context may have been\n created via the driver API in which case the flag is not implicit and\n may be unset.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`\n flags : unsigned int\n Pointer to store the device flags\n\n See Also\n --------\n :py:obj:`~.cudaGetDevice`, :py:obj:`~.cudaGetDeviceProperties`, :py:obj:`~.cudaSetDevice`, :py:obj:`~.cudaSetDeviceFlags`, :py:obj:`~.cudaInitDevice`, :py:obj:`~.cuCtxGetFlags`, :py:obj:`~.cuDevicePrimaryCtxGetState`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_75cudaGetDeviceFlags = {"cudaGetDeviceFlags", (PyCFunction)__pyx_pw_4cuda_6cudart_75cudaGetDeviceFlags, METH_NOARGS, __pyx_doc_4cuda_6cudart_74cudaGetDeviceFlags}; static PyObject *__pyx_pw_4cuda_6cudart_75cudaGetDeviceFlags(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_6cudart_74cudaGetDeviceFlags(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_74cudaGetDeviceFlags(CYTHON_UNUSED PyObject *__pyx_self) { unsigned int __pyx_v_flags; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__379) __Pyx_RefNannySetupContext("cudaGetDeviceFlags", 1); __Pyx_TraceCall("cudaGetDeviceFlags", __pyx_f[0], 14741, 0, __PYX_ERR(0, 14741, __pyx_L1_error)); /* "cuda/cudart.pyx":14781 * :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 # <<<<<<<<<<<<<< * err = ccudart.cudaGetDeviceFlags(&flags) * return (cudaError_t(err), flags) */ __pyx_v_flags = 0; /* "cuda/cudart.pyx":14782 * """ * cdef unsigned int flags = 0 * err = ccudart.cudaGetDeviceFlags(&flags) # <<<<<<<<<<<<<< * return (cudaError_t(err), flags) * */ __pyx_t_1 = __pyx_f_4cuda_7ccudart_cudaGetDeviceFlags((&__pyx_v_flags)); if (unlikely(__pyx_t_1 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 14782, __pyx_L1_error) __pyx_v_err = __pyx_t_1; /* "cuda/cudart.pyx":14783 * cdef unsigned int flags = 0 * err = ccudart.cudaGetDeviceFlags(&flags) * return (cudaError_t(err), flags) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14783, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14783, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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(0, 14783, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = __Pyx_PyInt_From_unsigned_int(__pyx_v_flags); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14783, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14783, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 14783, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3)) __PYX_ERR(0, 14783, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_3 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":14741 * return (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_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaGetDeviceFlags", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":14785 * return (cudaError_t(err), flags) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamCreate(): * """ Create an asynchronous stream. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_77cudaStreamCreate(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_76cudaStreamCreate, "cudaStreamCreate()\n Create an asynchronous stream.\n\n Creates a new asynchronous stream on the context that is current to the\n calling host thread. If no context is current to the calling host\n thread, then the primary context for a device is selected, made current\n to the calling thread, and initialized before creating a stream on it.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n pStream : :py:obj:`~.cudaStream_t`\n Pointer to new stream identifier\n\n See Also\n --------\n :py:obj:`~.cudaStreamCreateWithPriority`, :py:obj:`~.cudaStreamCreateWithFlags`, :py:obj:`~.cudaStreamGetPriority`, :py:obj:`~.cudaStreamGetFlags`, :py:obj:`~.cudaStreamQuery`, :py:obj:`~.cudaStreamSynchronize`, :py:obj:`~.cudaStreamWaitEvent`, :py:obj:`~.cudaStreamAddCallback`, :py:obj:`~.cudaSetDevice`, :py:obj:`~.cudaStreamDestroy`, :py:obj:`~.cuStreamCreate`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_77cudaStreamCreate = {"cudaStreamCreate", (PyCFunction)__pyx_pw_4cuda_6cudart_77cudaStreamCreate, METH_NOARGS, __pyx_doc_4cuda_6cudart_76cudaStreamCreate}; static PyObject *__pyx_pw_4cuda_6cudart_77cudaStreamCreate(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_6cudart_76cudaStreamCreate(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_76cudaStreamCreate(CYTHON_UNUSED PyObject *__pyx_self) { struct __pyx_obj_4cuda_6cudart_cudaStream_t *__pyx_v_pStream = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; cudaError_t __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__380) __Pyx_RefNannySetupContext("cudaStreamCreate", 1); __Pyx_TraceCall("cudaStreamCreate", __pyx_f[0], 14785, 0, __PYX_ERR(0, 14785, __pyx_L1_error)); /* "cuda/cudart.pyx":14805 * :py:obj:`~.cudaStreamCreateWithPriority`, :py:obj:`~.cudaStreamCreateWithFlags`, :py:obj:`~.cudaStreamGetPriority`, :py:obj:`~.cudaStreamGetFlags`, :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() # <<<<<<<<<<<<<< * err = ccudart.cudaStreamCreate(pStream._ptr) * return (cudaError_t(err), pStream) */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14805, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_pStream = ((struct __pyx_obj_4cuda_6cudart_cudaStream_t *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":14806 * """ * cdef cudaStream_t pStream = cudaStream_t() * err = ccudart.cudaStreamCreate(pStream._ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err), pStream) * */ __pyx_t_2 = __pyx_f_4cuda_7ccudart_cudaStreamCreate(((cudaStream_t *)__pyx_v_pStream->__pyx_base._ptr)); if (unlikely(__pyx_t_2 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 14806, __pyx_L1_error) __pyx_v_err = __pyx_t_2; /* "cuda/cudart.pyx":14807 * cdef cudaStream_t pStream = cudaStream_t() * err = ccudart.cudaStreamCreate(pStream._ptr) * return (cudaError_t(err), pStream) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14807, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14807, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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, 14807, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14807, __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)) __PYX_ERR(0, 14807, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pStream); __Pyx_GIVEREF((PyObject *)__pyx_v_pStream); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_v_pStream))) __PYX_ERR(0, 14807, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":14785 * return (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_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaStreamCreate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_pStream); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":14809 * return (cudaError_t(err), pStream) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamCreateWithFlags(unsigned int flags): * """ Create an asynchronous stream. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_79cudaStreamCreateWithFlags(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_78cudaStreamCreateWithFlags, "cudaStreamCreateWithFlags(unsigned int flags)\n Create an asynchronous stream.\n\n Creates a new asynchronous stream on the context that is current to the\n calling host thread. If no context is current to the calling host\n thread, then the primary context for a device is selected, made current\n to the calling thread, and initialized before creating a stream on it.\n The `flags` argument determines the behaviors of the stream. Valid\n values 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\n Parameters\n ----------\n flags : unsigned int\n Parameters for stream creation\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n pStream : :py:obj:`~.cudaStream_t`\n Pointer to new stream identifier\n\n See Also\n --------\n :py:obj:`~.cudaStreamCreate`, :py:obj:`~.cudaStreamCreateWithPriority`, :py:obj:`~.cudaStreamGetFlags`, :py:obj:`~.cudaStreamQuery`, :py:obj:`~.cudaStreamSynchronize`, :py:obj:`~.cudaStreamWaitEvent`, :py:obj:`~.cudaStreamAddCallback`, :py:obj:`~.cudaSetDevice`, :py:obj:`~.cudaStreamDestroy`, :py:obj:`~.cuStreamCreate`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_79cudaStreamCreateWithFlags = {"cudaStreamCreateWithFlags", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_79cudaStreamCreateWithFlags, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_78cudaStreamCreateWithFlags}; static PyObject *__pyx_pw_4cuda_6cudart_79cudaStreamCreateWithFlags(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 14809, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaStreamCreateWithFlags") < 0)) __PYX_ERR(0, 14809, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[0]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 14810, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaStreamCreateWithFlags", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 14809, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaStreamCreateWithFlags", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_78cudaStreamCreateWithFlags(__pyx_self, __pyx_v_flags); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_78cudaStreamCreateWithFlags(CYTHON_UNUSED PyObject *__pyx_self, unsigned int __pyx_v_flags) { struct __pyx_obj_4cuda_6cudart_cudaStream_t *__pyx_v_pStream = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; cudaError_t __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__381) __Pyx_RefNannySetupContext("cudaStreamCreateWithFlags", 1); __Pyx_TraceCall("cudaStreamCreateWithFlags", __pyx_f[0], 14809, 0, __PYX_ERR(0, 14809, __pyx_L1_error)); /* "cuda/cudart.pyx":14843 * :py:obj:`~.cudaStreamCreate`, :py:obj:`~.cudaStreamCreateWithPriority`, :py:obj:`~.cudaStreamGetFlags`, :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() # <<<<<<<<<<<<<< * err = ccudart.cudaStreamCreateWithFlags(pStream._ptr, flags) * return (cudaError_t(err), pStream) */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14843, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_pStream = ((struct __pyx_obj_4cuda_6cudart_cudaStream_t *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":14844 * """ * cdef cudaStream_t pStream = cudaStream_t() * err = ccudart.cudaStreamCreateWithFlags(pStream._ptr, flags) # <<<<<<<<<<<<<< * return (cudaError_t(err), pStream) * */ __pyx_t_2 = __pyx_f_4cuda_7ccudart_cudaStreamCreateWithFlags(((cudaStream_t *)__pyx_v_pStream->__pyx_base._ptr), __pyx_v_flags); if (unlikely(__pyx_t_2 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 14844, __pyx_L1_error) __pyx_v_err = __pyx_t_2; /* "cuda/cudart.pyx":14845 * cdef cudaStream_t pStream = cudaStream_t() * err = ccudart.cudaStreamCreateWithFlags(pStream._ptr, flags) * return (cudaError_t(err), pStream) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14845, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14845, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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, 14845, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14845, __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)) __PYX_ERR(0, 14845, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pStream); __Pyx_GIVEREF((PyObject *)__pyx_v_pStream); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_v_pStream))) __PYX_ERR(0, 14845, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":14809 * return (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_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaStreamCreateWithFlags", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_pStream); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":14847 * return (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_6cudart_81cudaStreamCreateWithPriority(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_80cudaStreamCreateWithPriority, "cudaStreamCreateWithPriority(unsigned int flags, int priority)\n Create an asynchronous stream with the specified priority.\n\n Creates 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\n calling host thread. If no context is current to the calling host\n thread, then the primary context for a device is selected, made current\n to the calling thread, and initialized before creating a stream on it.\n This affects the scheduling priority of work in the stream. Priorities\n provide a hint to preferentially run work with higher priority when\n possible, but do not preempt already-running work or provide any other\n functional guarantee on execution order.\n\n `priority` follows a convention where lower numbers represent higher\n priorities. '0' represents default priority. The range of meaningful\n numerical priorities can be queried using\n :py:obj:`~.cudaDeviceGetStreamPriorityRange`. If the specified priority\n is outside the numerical range returned by\n :py:obj:`~.cudaDeviceGetStreamPriorityRange`, it will automatically be\n clamped to the lowest or the highest number in the range.\n\n Parameters\n ----------\n flags : unsigned int\n Flags for stream creation. See\n :py:obj:`~.cudaStreamCreateWithFlags` for a list of valid flags\n that can be passed\n priority : 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\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n pStream : :py:obj:`~.cudaStream_t`\n Pointer to new stream identifier\n\n See Also\n --------\n :py:obj:`~.cudaStreamCreate`, :py:obj:`~.cudaStreamCreateWithFlags`, :py:obj:`~.cudaD""eviceGetStreamPriorityRange`, :py:obj:`~.cudaStreamGetPriority`, :py:obj:`~.cudaStreamQuery`, :py:obj:`~.cudaStreamWaitEvent`, :py:obj:`~.cudaStreamAddCallback`, :py:obj:`~.cudaStreamSynchronize`, :py:obj:`~.cudaSetDevice`, :py:obj:`~.cudaStreamDestroy`, :py:obj:`~.cuStreamCreateWithPriority`\n\n Notes\n -----\n Stream priorities are supported only on GPUs with compute capability 3.5 or higher.\n\n 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.\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_81cudaStreamCreateWithPriority = {"cudaStreamCreateWithPriority", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_81cudaStreamCreateWithPriority, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_80cudaStreamCreateWithPriority}; static PyObject *__pyx_pw_4cuda_6cudart_81cudaStreamCreateWithPriority(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_flags_2,&__pyx_n_s_priority_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 14847, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_priority_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 14847, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaStreamCreateWithPriority", 1, 2, 2, 1); __PYX_ERR(0, 14847, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaStreamCreateWithPriority") < 0)) __PYX_ERR(0, 14847, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[0]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 14848, __pyx_L3_error) __pyx_v_priority = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_priority == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 14848, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaStreamCreateWithPriority", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 14847, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaStreamCreateWithPriority", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_80cudaStreamCreateWithPriority(__pyx_self, __pyx_v_flags, __pyx_v_priority); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_80cudaStreamCreateWithPriority(CYTHON_UNUSED PyObject *__pyx_self, unsigned int __pyx_v_flags, int __pyx_v_priority) { struct __pyx_obj_4cuda_6cudart_cudaStream_t *__pyx_v_pStream = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; cudaError_t __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__382) __Pyx_RefNannySetupContext("cudaStreamCreateWithPriority", 1); __Pyx_TraceCall("cudaStreamCreateWithPriority", __pyx_f[0], 14847, 0, __PYX_ERR(0, 14847, __pyx_L1_error)); /* "cuda/cudart.pyx":14898 * 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() # <<<<<<<<<<<<<< * err = ccudart.cudaStreamCreateWithPriority(pStream._ptr, flags, priority) * return (cudaError_t(err), pStream) */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14898, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_pStream = ((struct __pyx_obj_4cuda_6cudart_cudaStream_t *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":14899 * """ * cdef cudaStream_t pStream = cudaStream_t() * err = ccudart.cudaStreamCreateWithPriority(pStream._ptr, flags, priority) # <<<<<<<<<<<<<< * return (cudaError_t(err), pStream) * */ __pyx_t_2 = __pyx_f_4cuda_7ccudart_cudaStreamCreateWithPriority(((cudaStream_t *)__pyx_v_pStream->__pyx_base._ptr), __pyx_v_flags, __pyx_v_priority); if (unlikely(__pyx_t_2 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 14899, __pyx_L1_error) __pyx_v_err = __pyx_t_2; /* "cuda/cudart.pyx":14900 * cdef cudaStream_t pStream = cudaStream_t() * err = ccudart.cudaStreamCreateWithPriority(pStream._ptr, flags, priority) * return (cudaError_t(err), pStream) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14900, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14900, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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, 14900, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14900, __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)) __PYX_ERR(0, 14900, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pStream); __Pyx_GIVEREF((PyObject *)__pyx_v_pStream); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_v_pStream))) __PYX_ERR(0, 14900, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":14847 * return (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_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaStreamCreateWithPriority", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_pStream); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":14902 * return (cudaError_t(err), pStream) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamGetPriority(hStream): * """ Query the priority of a stream. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_83cudaStreamGetPriority(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_82cudaStreamGetPriority, "cudaStreamGetPriority(hStream)\n Query the priority of a stream.\n\n Query the priority of a stream. The priority is returned in in\n `priority`. Note that if the stream was created with a priority outside\n the meaningful numerical range returned by\n :py:obj:`~.cudaDeviceGetStreamPriorityRange`, this function returns the\n clamped priority. See :py:obj:`~.cudaStreamCreateWithPriority` for\n details about priority clamping.\n\n Parameters\n ----------\n hStream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n Handle to the stream to be queried\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`\n priority : int\n Pointer to a signed integer in which the stream's priority is\n returned\n\n See Also\n --------\n :py:obj:`~.cudaStreamCreateWithPriority`, :py:obj:`~.cudaDeviceGetStreamPriorityRange`, :py:obj:`~.cudaStreamGetFlags`, :py:obj:`~.cuStreamGetPriority`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_83cudaStreamGetPriority = {"cudaStreamGetPriority", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_83cudaStreamGetPriority, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_82cudaStreamGetPriority}; static PyObject *__pyx_pw_4cuda_6cudart_83cudaStreamGetPriority(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_hStream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hStream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 14902, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaStreamGetPriority") < 0)) __PYX_ERR(0, 14902, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_hStream = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaStreamGetPriority", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 14902, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaStreamGetPriority", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_82cudaStreamGetPriority(__pyx_self, __pyx_v_hStream); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_82cudaStreamGetPriority(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hStream) { cudaStream_t __pyx_v_chStream; PyObject *__pyx_v_phStream = NULL; int __pyx_v_priority; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__383) __Pyx_RefNannySetupContext("cudaStreamGetPriority", 1); __Pyx_TraceCall("cudaStreamGetPriority", __pyx_f[0], 14902, 0, __PYX_ERR(0, 14902, __pyx_L1_error)); /* "cuda/cudart.pyx":14931 * """ * cdef ccudart.cudaStream_t chStream * if hStream is None: # <<<<<<<<<<<<<< * chStream = 0 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_hStream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":14932 * cdef ccudart.cudaStream_t chStream * if hStream is None: * chStream = 0 # <<<<<<<<<<<<<< * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): * phStream = int(hStream) */ __pyx_v_chStream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":14931 * """ * cdef ccudart.cudaStream_t chStream * if hStream is None: # <<<<<<<<<<<<<< * chStream = 0 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":14933 * if hStream is None: * chStream = 0 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * phStream = int(hStream) * chStream = phStream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hStream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":14934 * chStream = 0 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): * phStream = int(hStream) # <<<<<<<<<<<<<< * chStream = phStream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hStream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14934, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_phStream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":14935 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): * phStream = int(hStream) * chStream = phStream # <<<<<<<<<<<<<< * else: * phStream = int(cudaStream_t(hStream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phStream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14935, __pyx_L1_error) __pyx_v_chStream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":14933 * if hStream is None: * chStream = 0 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * phStream = int(hStream) * chStream = phStream */ goto __pyx_L3; } /* "cuda/cudart.pyx":14937 * chStream = phStream * else: * phStream = int(cudaStream_t(hStream)) # <<<<<<<<<<<<<< * chStream = phStream * cdef int priority = 0 */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_hStream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14937, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 14937, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_phStream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":14938 * else: * phStream = int(cudaStream_t(hStream)) * chStream = phStream # <<<<<<<<<<<<<< * cdef int priority = 0 * err = ccudart.cudaStreamGetPriority(chStream, &priority) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phStream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14938, __pyx_L1_error) __pyx_v_chStream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":14939 * phStream = int(cudaStream_t(hStream)) * chStream = phStream * cdef int priority = 0 # <<<<<<<<<<<<<< * err = ccudart.cudaStreamGetPriority(chStream, &priority) * return (cudaError_t(err), priority) */ __pyx_v_priority = 0; /* "cuda/cudart.pyx":14940 * chStream = phStream * cdef int priority = 0 * err = ccudart.cudaStreamGetPriority(chStream, &priority) # <<<<<<<<<<<<<< * return (cudaError_t(err), priority) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaStreamGetPriority(__pyx_v_chStream, (&__pyx_v_priority)); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 14940, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":14941 * cdef int priority = 0 * err = ccudart.cudaStreamGetPriority(chStream, &priority) * return (cudaError_t(err), priority) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14941, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 14941, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 14941, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_priority); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14941, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 14941, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5)) __PYX_ERR(0, 14941, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_3)) __PYX_ERR(0, 14941, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_3 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":14902 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaStreamGetPriority", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_phStream); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":14943 * return (cudaError_t(err), priority) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamGetFlags(hStream): * """ Query the flags of a stream. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_85cudaStreamGetFlags(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_84cudaStreamGetFlags, "cudaStreamGetFlags(hStream)\n Query the flags of a stream.\n\n Query the flags of a stream. The flags are returned in `flags`. See\n :py:obj:`~.cudaStreamCreateWithFlags` for a list of valid flags.\n\n Parameters\n ----------\n hStream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n Handle to the stream to be queried\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`\n flags : unsigned int\n Pointer to an unsigned integer in which the stream's flags are\n returned\n\n See Also\n --------\n :py:obj:`~.cudaStreamCreateWithPriority`, :py:obj:`~.cudaStreamCreateWithFlags`, :py:obj:`~.cudaStreamGetPriority`, :py:obj:`~.cuStreamGetFlags`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_85cudaStreamGetFlags = {"cudaStreamGetFlags", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_85cudaStreamGetFlags, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_84cudaStreamGetFlags}; static PyObject *__pyx_pw_4cuda_6cudart_85cudaStreamGetFlags(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_hStream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hStream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 14943, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaStreamGetFlags") < 0)) __PYX_ERR(0, 14943, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_hStream = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaStreamGetFlags", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 14943, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaStreamGetFlags", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_84cudaStreamGetFlags(__pyx_self, __pyx_v_hStream); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_84cudaStreamGetFlags(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hStream) { cudaStream_t __pyx_v_chStream; PyObject *__pyx_v_phStream = NULL; unsigned int __pyx_v_flags; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__384) __Pyx_RefNannySetupContext("cudaStreamGetFlags", 1); __Pyx_TraceCall("cudaStreamGetFlags", __pyx_f[0], 14943, 0, __PYX_ERR(0, 14943, __pyx_L1_error)); /* "cuda/cudart.pyx":14968 * """ * cdef ccudart.cudaStream_t chStream * if hStream is None: # <<<<<<<<<<<<<< * chStream = 0 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_hStream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":14969 * cdef ccudart.cudaStream_t chStream * if hStream is None: * chStream = 0 # <<<<<<<<<<<<<< * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): * phStream = int(hStream) */ __pyx_v_chStream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":14968 * """ * cdef ccudart.cudaStream_t chStream * if hStream is None: # <<<<<<<<<<<<<< * chStream = 0 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":14970 * if hStream is None: * chStream = 0 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * phStream = int(hStream) * chStream = phStream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hStream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":14971 * chStream = 0 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): * phStream = int(hStream) # <<<<<<<<<<<<<< * chStream = phStream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hStream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14971, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_phStream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":14972 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): * phStream = int(hStream) * chStream = phStream # <<<<<<<<<<<<<< * else: * phStream = int(cudaStream_t(hStream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phStream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14972, __pyx_L1_error) __pyx_v_chStream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":14970 * if hStream is None: * chStream = 0 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * phStream = int(hStream) * chStream = phStream */ goto __pyx_L3; } /* "cuda/cudart.pyx":14974 * chStream = phStream * else: * phStream = int(cudaStream_t(hStream)) # <<<<<<<<<<<<<< * chStream = phStream * cdef unsigned int flags = 0 */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_hStream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14974, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 14974, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_phStream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":14975 * else: * phStream = int(cudaStream_t(hStream)) * chStream = phStream # <<<<<<<<<<<<<< * cdef unsigned int flags = 0 * err = ccudart.cudaStreamGetFlags(chStream, &flags) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phStream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14975, __pyx_L1_error) __pyx_v_chStream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":14976 * phStream = int(cudaStream_t(hStream)) * chStream = phStream * cdef unsigned int flags = 0 # <<<<<<<<<<<<<< * err = ccudart.cudaStreamGetFlags(chStream, &flags) * return (cudaError_t(err), flags) */ __pyx_v_flags = 0; /* "cuda/cudart.pyx":14977 * chStream = phStream * cdef unsigned int flags = 0 * err = ccudart.cudaStreamGetFlags(chStream, &flags) # <<<<<<<<<<<<<< * return (cudaError_t(err), flags) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaStreamGetFlags(__pyx_v_chStream, (&__pyx_v_flags)); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 14977, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":14978 * cdef unsigned int flags = 0 * err = ccudart.cudaStreamGetFlags(chStream, &flags) * return (cudaError_t(err), flags) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14978, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 14978, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 14978, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = __Pyx_PyInt_From_unsigned_int(__pyx_v_flags); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14978, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 14978, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5)) __PYX_ERR(0, 14978, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_3)) __PYX_ERR(0, 14978, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_3 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":14943 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaStreamGetFlags", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_phStream); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":14980 * return (cudaError_t(err), flags) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamGetId(hStream): * """ Query the Id of a stream. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_87cudaStreamGetId(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_86cudaStreamGetId, "cudaStreamGetId(hStream)\n Query the Id of a stream.\n\n Query the Id of a stream. The Id is returned in `streamId`. The Id is\n unique for the life of the program.\n\n The 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\n Parameters\n ----------\n hStream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n Handle to the stream to be queried\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`\n streamId : unsigned long long\n Pointer to an unsigned long long in which the stream Id is returned\n\n See Also\n --------\n :py:obj:`~.cudaStreamCreateWithPriority`, :py:obj:`~.cudaStreamCreateWithFlags`, :py:obj:`~.cudaStreamGetPriority`, :py:obj:`~.cudaStreamGetFlags`, :py:obj:`~.cuStreamGetId`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_87cudaStreamGetId = {"cudaStreamGetId", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_87cudaStreamGetId, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_86cudaStreamGetId}; static PyObject *__pyx_pw_4cuda_6cudart_87cudaStreamGetId(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_hStream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hStream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 14980, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaStreamGetId") < 0)) __PYX_ERR(0, 14980, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_hStream = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaStreamGetId", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 14980, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaStreamGetId", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_86cudaStreamGetId(__pyx_self, __pyx_v_hStream); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_86cudaStreamGetId(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hStream) { cudaStream_t __pyx_v_chStream; PyObject *__pyx_v_phStream = NULL; unsigned PY_LONG_LONG __pyx_v_streamId; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__385) __Pyx_RefNannySetupContext("cudaStreamGetId", 1); __Pyx_TraceCall("cudaStreamGetId", __pyx_f[0], 14980, 0, __PYX_ERR(0, 14980, __pyx_L1_error)); /* "cuda/cudart.pyx":15019 * """ * cdef ccudart.cudaStream_t chStream * if hStream is None: # <<<<<<<<<<<<<< * chStream = 0 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_hStream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":15020 * cdef ccudart.cudaStream_t chStream * if hStream is None: * chStream = 0 # <<<<<<<<<<<<<< * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): * phStream = int(hStream) */ __pyx_v_chStream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":15019 * """ * cdef ccudart.cudaStream_t chStream * if hStream is None: # <<<<<<<<<<<<<< * chStream = 0 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":15021 * if hStream is None: * chStream = 0 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * phStream = int(hStream) * chStream = phStream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hStream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":15022 * chStream = 0 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): * phStream = int(hStream) # <<<<<<<<<<<<<< * chStream = phStream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hStream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15022, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_phStream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":15023 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): * phStream = int(hStream) * chStream = phStream # <<<<<<<<<<<<<< * else: * phStream = int(cudaStream_t(hStream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phStream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15023, __pyx_L1_error) __pyx_v_chStream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":15021 * if hStream is None: * chStream = 0 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * phStream = int(hStream) * chStream = phStream */ goto __pyx_L3; } /* "cuda/cudart.pyx":15025 * chStream = phStream * else: * phStream = int(cudaStream_t(hStream)) # <<<<<<<<<<<<<< * chStream = phStream * cdef unsigned long long streamId = 0 */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_hStream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15025, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15025, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_phStream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":15026 * else: * phStream = int(cudaStream_t(hStream)) * chStream = phStream # <<<<<<<<<<<<<< * cdef unsigned long long streamId = 0 * err = ccudart.cudaStreamGetId(chStream, &streamId) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phStream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15026, __pyx_L1_error) __pyx_v_chStream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":15027 * phStream = int(cudaStream_t(hStream)) * chStream = phStream * cdef unsigned long long streamId = 0 # <<<<<<<<<<<<<< * err = ccudart.cudaStreamGetId(chStream, &streamId) * return (cudaError_t(err), streamId) */ __pyx_v_streamId = 0; /* "cuda/cudart.pyx":15028 * chStream = phStream * cdef unsigned long long streamId = 0 * err = ccudart.cudaStreamGetId(chStream, &streamId) # <<<<<<<<<<<<<< * return (cudaError_t(err), streamId) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaStreamGetId(__pyx_v_chStream, (&__pyx_v_streamId)); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 15028, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":15029 * cdef unsigned long long streamId = 0 * err = ccudart.cudaStreamGetId(chStream, &streamId) * return (cudaError_t(err), streamId) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15029, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 15029, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15029, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(__pyx_v_streamId); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15029, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 15029, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5)) __PYX_ERR(0, 15029, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_3)) __PYX_ERR(0, 15029, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_3 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":14980 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaStreamGetId", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_phStream); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":15031 * return (cudaError_t(err), streamId) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaCtxResetPersistingL2Cache(): * """ Resets all persisting lines in cache to normal status. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_89cudaCtxResetPersistingL2Cache(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_88cudaCtxResetPersistingL2Cache, "cudaCtxResetPersistingL2Cache()\n Resets all persisting lines in cache to normal status.\n\n Resets all persisting lines in cache to normal status. Takes effect on\n function return.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`,\n\n See Also\n --------\n :py:obj:`~.cudaAccessPolicyWindow`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_89cudaCtxResetPersistingL2Cache = {"cudaCtxResetPersistingL2Cache", (PyCFunction)__pyx_pw_4cuda_6cudart_89cudaCtxResetPersistingL2Cache, METH_NOARGS, __pyx_doc_4cuda_6cudart_88cudaCtxResetPersistingL2Cache}; static PyObject *__pyx_pw_4cuda_6cudart_89cudaCtxResetPersistingL2Cache(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_6cudart_88cudaCtxResetPersistingL2Cache(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_88cudaCtxResetPersistingL2Cache(CYTHON_UNUSED PyObject *__pyx_self) { cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__386) __Pyx_RefNannySetupContext("cudaCtxResetPersistingL2Cache", 1); __Pyx_TraceCall("cudaCtxResetPersistingL2Cache", __pyx_f[0], 15031, 0, __PYX_ERR(0, 15031, __pyx_L1_error)); /* "cuda/cudart.pyx":15047 * :py:obj:`~.cudaAccessPolicyWindow` * """ * err = ccudart.cudaCtxResetPersistingL2Cache() # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_1 = __pyx_f_4cuda_7ccudart_cudaCtxResetPersistingL2Cache(); if (unlikely(__pyx_t_1 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 15047, __pyx_L1_error) __pyx_v_err = __pyx_t_1; /* "cuda/cudart.pyx":15048 * """ * err = ccudart.cudaCtxResetPersistingL2Cache() * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15048, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15048, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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(0, 15048, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15048, __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)) __PYX_ERR(0, 15048, __pyx_L1_error); __pyx_t_2 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":15031 * return (cudaError_t(err), streamId) * * @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_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaCtxResetPersistingL2Cache", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":15050 * return (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_6cudart_91cudaStreamCopyAttributes(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_90cudaStreamCopyAttributes, "cudaStreamCopyAttributes(dst, src)\n Copies attributes from source stream to destination stream.\n\n Copies attributes from source stream `src` to destination stream `dst`.\n Both streams must have the same context.\n\n Parameters\n ----------\n dst : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n Destination stream\n src : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n Source stream For attributes see :py:obj:`~.cudaStreamAttrID`\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorNotSupported`\n\n See Also\n --------\n :py:obj:`~.cudaAccessPolicyWindow`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_91cudaStreamCopyAttributes = {"cudaStreamCopyAttributes", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_91cudaStreamCopyAttributes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_90cudaStreamCopyAttributes}; static PyObject *__pyx_pw_4cuda_6cudart_91cudaStreamCopyAttributes(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dst_2,&__pyx_n_s_src,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dst_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15050, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_src)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15050, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaStreamCopyAttributes", 1, 2, 2, 1); __PYX_ERR(0, 15050, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaStreamCopyAttributes") < 0)) __PYX_ERR(0, 15050, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __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, 15050, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaStreamCopyAttributes", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_90cudaStreamCopyAttributes(__pyx_self, __pyx_v_dst, __pyx_v_src); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_90cudaStreamCopyAttributes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dst, PyObject *__pyx_v_src) { cudaStream_t __pyx_v_csrc; PyObject *__pyx_v_psrc = NULL; cudaStream_t __pyx_v_cdst; PyObject *__pyx_v_pdst = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__387) __Pyx_RefNannySetupContext("cudaStreamCopyAttributes", 1); __Pyx_TraceCall("cudaStreamCopyAttributes", __pyx_f[0], 15050, 0, __PYX_ERR(0, 15050, __pyx_L1_error)); /* "cuda/cudart.pyx":15074 * """ * cdef ccudart.cudaStream_t csrc * if src is None: # <<<<<<<<<<<<<< * csrc = 0 * elif isinstance(src, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_src == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":15075 * cdef ccudart.cudaStream_t csrc * if src is None: * csrc = 0 # <<<<<<<<<<<<<< * elif isinstance(src, (cudaStream_t,cuda.CUstream)): * psrc = int(src) */ __pyx_v_csrc = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":15074 * """ * cdef ccudart.cudaStream_t csrc * if src is None: # <<<<<<<<<<<<<< * csrc = 0 * elif isinstance(src, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":15076 * if src is None: * csrc = 0 * elif isinstance(src, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * psrc = int(src) * csrc = psrc */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_src, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":15077 * csrc = 0 * elif isinstance(src, (cudaStream_t,cuda.CUstream)): * psrc = int(src) # <<<<<<<<<<<<<< * csrc = psrc * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_src); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15077, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_psrc = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":15078 * elif isinstance(src, (cudaStream_t,cuda.CUstream)): * psrc = int(src) * csrc = psrc # <<<<<<<<<<<<<< * else: * psrc = int(cudaStream_t(src)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_psrc); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15078, __pyx_L1_error) __pyx_v_csrc = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":15076 * if src is None: * csrc = 0 * elif isinstance(src, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * psrc = int(src) * csrc = psrc */ goto __pyx_L3; } /* "cuda/cudart.pyx":15080 * csrc = psrc * else: * psrc = int(cudaStream_t(src)) # <<<<<<<<<<<<<< * csrc = psrc * cdef ccudart.cudaStream_t cdst */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_src); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15080, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15080, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_psrc = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":15081 * else: * psrc = int(cudaStream_t(src)) * csrc = psrc # <<<<<<<<<<<<<< * cdef ccudart.cudaStream_t cdst * if dst is None: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_psrc); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15081, __pyx_L1_error) __pyx_v_csrc = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":15083 * csrc = psrc * cdef ccudart.cudaStream_t cdst * if dst is None: # <<<<<<<<<<<<<< * cdst = 0 * elif isinstance(dst, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_dst == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":15084 * cdef ccudart.cudaStream_t cdst * if dst is None: * cdst = 0 # <<<<<<<<<<<<<< * elif isinstance(dst, (cudaStream_t,cuda.CUstream)): * pdst = int(dst) */ __pyx_v_cdst = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":15083 * csrc = psrc * cdef ccudart.cudaStream_t cdst * if dst is None: # <<<<<<<<<<<<<< * cdst = 0 * elif isinstance(dst, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":15085 * if dst is None: * cdst = 0 * elif isinstance(dst, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pdst = int(dst) * cdst = pdst */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_dst, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L7_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":15086 * cdst = 0 * elif isinstance(dst, (cudaStream_t,cuda.CUstream)): * pdst = int(dst) # <<<<<<<<<<<<<< * cdst = pdst * else: */ __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_v_dst); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15086, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pdst = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":15087 * elif isinstance(dst, (cudaStream_t,cuda.CUstream)): * pdst = int(dst) * cdst = pdst # <<<<<<<<<<<<<< * else: * pdst = int(cudaStream_t(dst)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pdst); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15087, __pyx_L1_error) __pyx_v_cdst = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":15085 * if dst is None: * cdst = 0 * elif isinstance(dst, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pdst = int(dst) * cdst = pdst */ goto __pyx_L6; } /* "cuda/cudart.pyx":15089 * cdst = pdst * else: * pdst = int(cudaStream_t(dst)) # <<<<<<<<<<<<<< * cdst = pdst * err = ccudart.cudaStreamCopyAttributes(cdst, csrc) */ /*else*/ { __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_dst); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15089, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15089, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_pdst = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":15090 * else: * pdst = int(cudaStream_t(dst)) * cdst = pdst # <<<<<<<<<<<<<< * err = ccudart.cudaStreamCopyAttributes(cdst, csrc) * return (cudaError_t(err),) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pdst); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15090, __pyx_L1_error) __pyx_v_cdst = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L6:; /* "cuda/cudart.pyx":15091 * pdst = int(cudaStream_t(dst)) * cdst = pdst * err = ccudart.cudaStreamCopyAttributes(cdst, csrc) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaStreamCopyAttributes(__pyx_v_cdst, __pyx_v_csrc); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 15091, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":15092 * cdst = pdst * err = ccudart.cudaStreamCopyAttributes(cdst, csrc) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15092, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 15092, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __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, 15092, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15092, __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)) __PYX_ERR(0, 15092, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":15050 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":15094 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamGetAttribute(hStream, attr not None : cudaStreamAttrID): * """ Queries stream attribute. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_93cudaStreamGetAttribute(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_92cudaStreamGetAttribute, "cudaStreamGetAttribute(hStream, attr: cudaStreamAttrID)\n Queries stream attribute.\n\n Queries attribute `attr` from `hStream` and stores it in corresponding\n member of `value_out`.\n\n Parameters\n ----------\n hStream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n\n attr : :py:obj:`~.cudaStreamAttrID`\n\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`\n value_out : :py:obj:`~.cudaStreamAttrValue`\n\n\n See Also\n --------\n :py:obj:`~.cudaAccessPolicyWindow`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_93cudaStreamGetAttribute = {"cudaStreamGetAttribute", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_93cudaStreamGetAttribute, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_92cudaStreamGetAttribute}; static PyObject *__pyx_pw_4cuda_6cudart_93cudaStreamGetAttribute(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_hStream,&__pyx_n_s_attr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hStream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15094, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_attr)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15094, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaStreamGetAttribute", 1, 2, 2, 1); __PYX_ERR(0, 15094, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaStreamGetAttribute") < 0)) __PYX_ERR(0, 15094, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __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, 15094, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 15095, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_92cudaStreamGetAttribute(__pyx_self, __pyx_v_hStream, __pyx_v_attr); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_92cudaStreamGetAttribute(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hStream, PyObject *__pyx_v_attr) { cudaStream_t __pyx_v_chStream; PyObject *__pyx_v_phStream = NULL; __pyx_t_4cuda_7ccudart_cudaStreamAttrID __pyx_v_cattr; struct __pyx_obj_4cuda_6cudart_cudaStreamAttrValue *__pyx_v_value_out = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; __pyx_t_4cuda_7ccudart_cudaStreamAttrID __pyx_t_6; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__388) __Pyx_RefNannySetupContext("cudaStreamGetAttribute", 1); __Pyx_TraceCall("cudaStreamGetAttribute", __pyx_f[0], 15094, 0, __PYX_ERR(0, 15094, __pyx_L1_error)); /* "cuda/cudart.pyx":15120 * """ * cdef ccudart.cudaStream_t chStream * if hStream is None: # <<<<<<<<<<<<<< * chStream = 0 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_hStream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":15121 * cdef ccudart.cudaStream_t chStream * if hStream is None: * chStream = 0 # <<<<<<<<<<<<<< * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): * phStream = int(hStream) */ __pyx_v_chStream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":15120 * """ * cdef ccudart.cudaStream_t chStream * if hStream is None: # <<<<<<<<<<<<<< * chStream = 0 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":15122 * if hStream is None: * chStream = 0 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * phStream = int(hStream) * chStream = phStream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hStream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":15123 * chStream = 0 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): * phStream = int(hStream) # <<<<<<<<<<<<<< * chStream = phStream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hStream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15123, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_phStream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":15124 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): * phStream = int(hStream) * chStream = phStream # <<<<<<<<<<<<<< * else: * phStream = int(cudaStream_t(hStream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phStream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15124, __pyx_L1_error) __pyx_v_chStream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":15122 * if hStream is None: * chStream = 0 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * phStream = int(hStream) * chStream = phStream */ goto __pyx_L3; } /* "cuda/cudart.pyx":15126 * chStream = phStream * else: * phStream = int(cudaStream_t(hStream)) # <<<<<<<<<<<<<< * chStream = phStream * cdef ccudart.cudaStreamAttrID cattr = attr.value */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_hStream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15126, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15126, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_phStream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":15127 * else: * phStream = int(cudaStream_t(hStream)) * chStream = phStream # <<<<<<<<<<<<<< * cdef ccudart.cudaStreamAttrID cattr = attr.value * cdef cudaStreamAttrValue value_out = cudaStreamAttrValue() */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phStream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15127, __pyx_L1_error) __pyx_v_chStream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":15128 * phStream = int(cudaStream_t(hStream)) * chStream = phStream * cdef ccudart.cudaStreamAttrID cattr = attr.value # <<<<<<<<<<<<<< * cdef cudaStreamAttrValue value_out = cudaStreamAttrValue() * err = ccudart.cudaStreamGetAttribute(chStream, cattr, value_out._ptr) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_n_s_value); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15128, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = ((enum cudaLaunchAttributeID)__Pyx_PyInt_As_enum__cudaLaunchAttributeID(__pyx_t_5)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15128, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_cattr = __pyx_t_6; /* "cuda/cudart.pyx":15129 * chStream = phStream * cdef ccudart.cudaStreamAttrID cattr = attr.value * cdef cudaStreamAttrValue value_out = cudaStreamAttrValue() # <<<<<<<<<<<<<< * err = ccudart.cudaStreamGetAttribute(chStream, cattr, value_out._ptr) * return (cudaError_t(err), value_out) */ __pyx_t_5 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStreamAttrValue)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_value_out = ((struct __pyx_obj_4cuda_6cudart_cudaStreamAttrValue *)__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":15130 * cdef ccudart.cudaStreamAttrID cattr = attr.value * cdef cudaStreamAttrValue value_out = cudaStreamAttrValue() * err = ccudart.cudaStreamGetAttribute(chStream, cattr, value_out._ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err), value_out) * */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaStreamGetAttribute(__pyx_v_chStream, __pyx_v_cattr, ((__pyx_t_4cuda_7ccudart_cudaStreamAttrValue *)__pyx_v_value_out->__pyx_base._ptr)); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 15130, __pyx_L1_error) __pyx_v_err = __pyx_t_7; /* "cuda/cudart.pyx":15131 * cdef cudaStreamAttrValue value_out = cudaStreamAttrValue() * err = ccudart.cudaStreamGetAttribute(chStream, cattr, value_out._ptr) * return (cudaError_t(err), value_out) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 15131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_8}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 15131, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_value_out); __Pyx_GIVEREF((PyObject *)__pyx_v_value_out); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_v_value_out))) __PYX_ERR(0, 15131, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":15094 * return (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_5); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":15133 * return (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_6cudart_95cudaStreamSetAttribute(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_94cudaStreamSetAttribute, "cudaStreamSetAttribute(hStream, attr: cudaStreamAttrID, cudaStreamAttrValue value: Optional[cudaStreamAttrValue])\n Sets stream attribute.\n\n Sets attribute `attr` on `hStream` from corresponding attribute of\n `value`. The updated attribute will be applied to subsequent work\n submitted to the stream. It will not affect previously submitted work.\n\n Parameters\n ----------\n hStream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n\n attr : :py:obj:`~.cudaStreamAttrID`\n\n value : :py:obj:`~.cudaStreamAttrValue`\n\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`\n\n See Also\n --------\n :py:obj:`~.cudaAccessPolicyWindow`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_95cudaStreamSetAttribute = {"cudaStreamSetAttribute", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_95cudaStreamSetAttribute, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_94cudaStreamSetAttribute}; static PyObject *__pyx_pw_4cuda_6cudart_95cudaStreamSetAttribute(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_hStream,&__pyx_n_s_attr,&__pyx_n_s_value,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hStream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15133, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_attr)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15133, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaStreamSetAttribute", 1, 3, 3, 1); __PYX_ERR(0, 15133, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_value)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15133, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaStreamSetAttribute", 1, 3, 3, 2); __PYX_ERR(0, 15133, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaStreamSetAttribute") < 0)) __PYX_ERR(0, 15133, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_hStream = values[0]; __pyx_v_attr = values[1]; __pyx_v_value = ((struct __pyx_obj_4cuda_6cudart_cudaStreamAttrValue *)values[2]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaStreamSetAttribute", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 15133, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 15134, __pyx_L1_error) } if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), __pyx_ptype_4cuda_6cudart_cudaStreamAttrValue, 1, "value", 0))) __PYX_ERR(0, 15134, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_94cudaStreamSetAttribute(__pyx_self, __pyx_v_hStream, __pyx_v_attr, __pyx_v_value); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_94cudaStreamSetAttribute(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hStream, PyObject *__pyx_v_attr, struct __pyx_obj_4cuda_6cudart_cudaStreamAttrValue *__pyx_v_value) { cudaStream_t __pyx_v_chStream; PyObject *__pyx_v_phStream = NULL; __pyx_t_4cuda_7ccudart_cudaStreamAttrID __pyx_v_cattr; __pyx_t_4cuda_7ccudart_cudaStreamAttrValue *__pyx_v_cvalue_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; __pyx_t_4cuda_7ccudart_cudaStreamAttrID __pyx_t_6; union cudaLaunchAttributeValue *__pyx_t_7; cudaError_t __pyx_t_8; PyObject *__pyx_t_9 = NULL; PyObject *__pyx_t_10 = NULL; unsigned int __pyx_t_11; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__389) __Pyx_RefNannySetupContext("cudaStreamSetAttribute", 1); __Pyx_TraceCall("cudaStreamSetAttribute", __pyx_f[0], 15133, 0, __PYX_ERR(0, 15133, __pyx_L1_error)); /* "cuda/cudart.pyx":15160 * """ * cdef ccudart.cudaStream_t chStream * if hStream is None: # <<<<<<<<<<<<<< * chStream = 0 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_hStream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":15161 * cdef ccudart.cudaStream_t chStream * if hStream is None: * chStream = 0 # <<<<<<<<<<<<<< * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): * phStream = int(hStream) */ __pyx_v_chStream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":15160 * """ * cdef ccudart.cudaStream_t chStream * if hStream is None: # <<<<<<<<<<<<<< * chStream = 0 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":15162 * if hStream is None: * chStream = 0 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * phStream = int(hStream) * chStream = phStream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hStream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":15163 * chStream = 0 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): * phStream = int(hStream) # <<<<<<<<<<<<<< * chStream = phStream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hStream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15163, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_phStream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":15164 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): * phStream = int(hStream) * chStream = phStream # <<<<<<<<<<<<<< * else: * phStream = int(cudaStream_t(hStream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phStream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15164, __pyx_L1_error) __pyx_v_chStream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":15162 * if hStream is None: * chStream = 0 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * phStream = int(hStream) * chStream = phStream */ goto __pyx_L3; } /* "cuda/cudart.pyx":15166 * chStream = phStream * else: * phStream = int(cudaStream_t(hStream)) # <<<<<<<<<<<<<< * chStream = phStream * cdef ccudart.cudaStreamAttrID cattr = attr.value */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_hStream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_phStream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":15167 * else: * phStream = int(cudaStream_t(hStream)) * chStream = phStream # <<<<<<<<<<<<<< * cdef ccudart.cudaStreamAttrID cattr = attr.value * cdef ccudart.cudaStreamAttrValue* cvalue_ptr = value._ptr if value != None else NULL */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phStream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15167, __pyx_L1_error) __pyx_v_chStream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":15168 * phStream = int(cudaStream_t(hStream)) * chStream = phStream * cdef ccudart.cudaStreamAttrID cattr = attr.value # <<<<<<<<<<<<<< * cdef ccudart.cudaStreamAttrValue* cvalue_ptr = value._ptr if value != None else NULL * err = ccudart.cudaStreamSetAttribute(chStream, cattr, cvalue_ptr) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_n_s_value); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15168, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = ((enum cudaLaunchAttributeID)__Pyx_PyInt_As_enum__cudaLaunchAttributeID(__pyx_t_5)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15168, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_cattr = __pyx_t_6; /* "cuda/cudart.pyx":15169 * chStream = phStream * cdef ccudart.cudaStreamAttrID cattr = attr.value * cdef ccudart.cudaStreamAttrValue* cvalue_ptr = value._ptr if value != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaStreamSetAttribute(chStream, cattr, cvalue_ptr) * return (cudaError_t(err),) */ __pyx_t_5 = PyObject_RichCompare(((PyObject *)__pyx_v_value), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15169, __pyx_L1_error) __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 15169, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_1) { __pyx_t_7 = __pyx_v_value->__pyx_base._ptr; } else { __pyx_t_7 = NULL; } __pyx_v_cvalue_ptr = __pyx_t_7; /* "cuda/cudart.pyx":15170 * cdef ccudart.cudaStreamAttrID cattr = attr.value * cdef ccudart.cudaStreamAttrValue* cvalue_ptr = value._ptr if value != None else NULL * err = ccudart.cudaStreamSetAttribute(chStream, cattr, cvalue_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_8 = __pyx_f_4cuda_7ccudart_cudaStreamSetAttribute(__pyx_v_chStream, __pyx_v_cattr, __pyx_v_cvalue_ptr); if (unlikely(__pyx_t_8 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 15170, __pyx_L1_error) __pyx_v_err = __pyx_t_8; /* "cuda/cudart.pyx":15171 * cdef ccudart.cudaStreamAttrValue* cvalue_ptr = value._ptr if value != None else NULL * err = ccudart.cudaStreamSetAttribute(chStream, cattr, cvalue_ptr) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15171, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_9 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 15171, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_10 = NULL; __pyx_t_11 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_10)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_10); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_11 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_t_9}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_11, 1+__pyx_t_11); __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15171, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15171, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 15171, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":15133 * return (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_5); __Pyx_XDECREF(__pyx_t_9); __Pyx_XDECREF(__pyx_t_10); __Pyx_AddTraceback("cuda.cudart.cudaStreamSetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_phStream); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":15173 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamDestroy(stream): * """ Destroys and cleans up an asynchronous stream. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_97cudaStreamDestroy(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_96cudaStreamDestroy, "cudaStreamDestroy(stream)\n Destroys and cleans up an asynchronous stream.\n\n Destroys and cleans up the asynchronous stream specified by `stream`.\n\n In case the device is still doing work in the stream `stream` when\n :py:obj:`~.cudaStreamDestroy()` is called, the function will return\n immediately and the resources associated with `stream` will be released\n automatically once the device has completed all work in `stream`.\n\n Parameters\n ----------\n stream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n Stream identifier\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`\n\n See Also\n --------\n :py:obj:`~.cudaStreamCreate`, :py:obj:`~.cudaStreamCreateWithFlags`, :py:obj:`~.cudaStreamQuery`, :py:obj:`~.cudaStreamWaitEvent`, :py:obj:`~.cudaStreamSynchronize`, :py:obj:`~.cudaStreamAddCallback`, :py:obj:`~.cuStreamDestroy`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_97cudaStreamDestroy = {"cudaStreamDestroy", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_97cudaStreamDestroy, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_96cudaStreamDestroy}; static PyObject *__pyx_pw_4cuda_6cudart_97cudaStreamDestroy(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_stream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15173, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaStreamDestroy") < 0)) __PYX_ERR(0, 15173, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_stream = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaStreamDestroy", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 15173, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaStreamDestroy", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_96cudaStreamDestroy(__pyx_self, __pyx_v_stream); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_96cudaStreamDestroy(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_stream) { cudaStream_t __pyx_v_cstream; PyObject *__pyx_v_pstream = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__390) __Pyx_RefNannySetupContext("cudaStreamDestroy", 1); __Pyx_TraceCall("cudaStreamDestroy", __pyx_f[0], 15173, 0, __PYX_ERR(0, 15173, __pyx_L1_error)); /* "cuda/cudart.pyx":15199 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_stream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":15200 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":15199 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":15201 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":15202 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15202, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pstream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":15203 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15203, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":15201 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L3; } /* "cuda/cudart.pyx":15205 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * err = ccudart.cudaStreamDestroy(cstream) */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pstream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":15206 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * err = ccudart.cudaStreamDestroy(cstream) * return (cudaError_t(err),) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15206, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":15207 * pstream = int(cudaStream_t(stream)) * cstream = pstream * err = ccudart.cudaStreamDestroy(cstream) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaStreamDestroy(__pyx_v_cstream); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 15207, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":15208 * cstream = pstream * err = ccudart.cudaStreamDestroy(cstream) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15208, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 15208, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15208, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15208, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 15208, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":15173 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaStreamDestroy", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pstream); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":15210 * return (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_6cudart_99cudaStreamWaitEvent(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_98cudaStreamWaitEvent, "cudaStreamWaitEvent(stream, event, unsigned int flags)\n Make a compute stream wait on an event.\n\n Makes all future work submitted to `stream` wait for all work captured\n in `event`. See :py:obj:`~.cudaEventRecord()` for details on what is\n captured by an event. The synchronization will be performed efficiently\n on the device when applicable. `event` may be from a different device\n than `stream`.\n\n flags 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\n Parameters\n ----------\n stream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n Stream to wait\n event : :py:obj:`~.CUevent` or :py:obj:`~.cudaEvent_t`\n Event to wait on\n flags : unsigned int\n Parameters for the operation(See above)\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`\n\n See Also\n --------\n :py:obj:`~.cudaStreamCreate`, :py:obj:`~.cudaStreamCreateWithFlags`, :py:obj:`~.cudaStreamQuery`, :py:obj:`~.cudaStreamSynchronize`, :py:obj:`~.cudaStreamAddCallback`, :py:obj:`~.cudaStreamDestroy`, :py:obj:`~.cuStreamWaitEvent`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_99cudaStreamWaitEvent = {"cudaStreamWaitEvent", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_99cudaStreamWaitEvent, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_98cudaStreamWaitEvent}; static PyObject *__pyx_pw_4cuda_6cudart_99cudaStreamWaitEvent(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_stream,&__pyx_n_s_event_2,&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15210, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_event_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15210, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaStreamWaitEvent", 1, 3, 3, 1); __PYX_ERR(0, 15210, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15210, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaStreamWaitEvent", 1, 3, 3, 2); __PYX_ERR(0, 15210, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaStreamWaitEvent") < 0)) __PYX_ERR(0, 15210, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_stream = values[0]; __pyx_v_event = values[1]; __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[2]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 15211, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaStreamWaitEvent", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 15210, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaStreamWaitEvent", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_98cudaStreamWaitEvent(__pyx_self, __pyx_v_stream, __pyx_v_event, __pyx_v_flags); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_98cudaStreamWaitEvent(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_stream, PyObject *__pyx_v_event, unsigned int __pyx_v_flags) { cudaEvent_t __pyx_v_cevent; PyObject *__pyx_v_pevent = NULL; cudaStream_t __pyx_v_cstream; PyObject *__pyx_v_pstream = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__391) __Pyx_RefNannySetupContext("cudaStreamWaitEvent", 1); __Pyx_TraceCall("cudaStreamWaitEvent", __pyx_f[0], 15210, 0, __PYX_ERR(0, 15210, __pyx_L1_error)); /* "cuda/cudart.pyx":15246 * """ * cdef ccudart.cudaEvent_t cevent * if event is None: # <<<<<<<<<<<<<< * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): */ __pyx_t_1 = (__pyx_v_event == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":15247 * cdef ccudart.cudaEvent_t cevent * if event is None: * cevent = 0 # <<<<<<<<<<<<<< * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) */ __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":15246 * """ * cdef ccudart.cudaEvent_t cevent * if event is None: # <<<<<<<<<<<<<< * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":15248 * if event is None: * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pevent = int(event) * cevent = pevent */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUevent); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":15249 * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) # <<<<<<<<<<<<<< * cevent = pevent * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15249, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pevent = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":15250 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) * cevent = pevent # <<<<<<<<<<<<<< * else: * pevent = int(cudaEvent_t(event)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15250, __pyx_L1_error) __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":15248 * if event is None: * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pevent = int(event) * cevent = pevent */ goto __pyx_L3; } /* "cuda/cudart.pyx":15252 * cevent = pevent * else: * pevent = int(cudaEvent_t(event)) # <<<<<<<<<<<<<< * cevent = pevent * cdef ccudart.cudaStream_t cstream */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEvent_t), __pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pevent = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":15253 * else: * pevent = int(cudaEvent_t(event)) * cevent = pevent # <<<<<<<<<<<<<< * cdef ccudart.cudaStream_t cstream * if stream is None: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15253, __pyx_L1_error) __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":15255 * cevent = pevent * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_stream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":15256 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":15255 * cevent = pevent * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":15257 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L7_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":15258 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15258, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pstream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":15259 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15259, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":15257 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L6; } /* "cuda/cudart.pyx":15261 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * with nogil: */ /*else*/ { __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15261, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15261, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_pstream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":15262 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaStreamWaitEvent(cstream, cevent, flags) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15262, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L6:; /* "cuda/cudart.pyx":15263 * pstream = int(cudaStream_t(stream)) * cstream = pstream * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaStreamWaitEvent(cstream, cevent, flags) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":15264 * cstream = pstream * with nogil: * err = ccudart.cudaStreamWaitEvent(cstream, cevent, flags) # <<<<<<<<<<<<<< * * return (cudaError_t(err),) */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaStreamWaitEvent(__pyx_v_cstream, __pyx_v_cevent, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 15264, __pyx_L10_error) __pyx_v_err = __pyx_t_6; } /* "cuda/cudart.pyx":15263 * pstream = int(cudaStream_t(stream)) * cstream = pstream * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaStreamWaitEvent(cstream, cevent, flags) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L11; } __pyx_L10_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L11:; } } /* "cuda/cudart.pyx":15266 * err = ccudart.cudaStreamWaitEvent(cstream, cevent, flags) * * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 15266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __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, 15266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15266, __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)) __PYX_ERR(0, 15266, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":15210 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":15268 * return (cudaError_t(err),) * * @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_6cudart_101cudaStreamAddCallback(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_100cudaStreamAddCallback, "cudaStreamAddCallback(stream, callback, userData, unsigned int flags)\n Add a callback to a compute stream.\n\n Adds a callback to be called on the host after all currently enqueued\n items in the stream have completed. For each cudaStreamAddCallback\n call, a callback will be executed exactly once. The callback will block\n later work in the stream until it is finished.\n\n The callback may be passed :py:obj:`~.cudaSuccess` or an error code. In\n the event of a device error, all subsequently executed callbacks will\n receive an appropriate :py:obj:`~.cudaError_t`.\n\n Callbacks must not make any CUDA API calls. Attempting to use CUDA APIs\n may result in :py:obj:`~.cudaErrorNotPermitted`. Callbacks must not\n perform any synchronization that may depend on outstanding device work\n or other callbacks that are not mandated to run earlier. Callbacks\n without a mandated order (in independent streams) execute in undefined\n order and may be serialized.\n\n For the purposes of Unified Memory, callback execution makes a number\n of 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 remai""n idle if no\n device work follows the callback, and will remain idle across\n consecutive callbacks without device 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\n Parameters\n ----------\n stream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n Stream to add callback to\n callback : :py:obj:`~.cudaStreamCallback_t`\n The function to call once preceding stream operations are complete\n userData : Any\n User specified data to be passed to the callback function\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:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorNotSupported`\n\n See 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\n Notes\n -----\n This 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`.\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_101cudaStreamAddCallback = {"cudaStreamAddCallback", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_101cudaStreamAddCallback, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_100cudaStreamAddCallback}; static PyObject *__pyx_pw_4cuda_6cudart_101cudaStreamAddCallback(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_stream,&__pyx_n_s_callback,&__pyx_n_s_userData_2,&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15268, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_callback)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15268, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaStreamAddCallback", 1, 4, 4, 1); __PYX_ERR(0, 15268, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_userData_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15268, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaStreamAddCallback", 1, 4, 4, 2); __PYX_ERR(0, 15268, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15268, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaStreamAddCallback", 1, 4, 4, 3); __PYX_ERR(0, 15268, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaStreamAddCallback") < 0)) __PYX_ERR(0, 15268, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); } __pyx_v_stream = values[0]; __pyx_v_callback = values[1]; __pyx_v_userData = values[2]; __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[3]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 15269, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaStreamAddCallback", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 15268, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaStreamAddCallback", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_100cudaStreamAddCallback(__pyx_self, __pyx_v_stream, __pyx_v_callback, __pyx_v_userData, __pyx_v_flags); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_100cudaStreamAddCallback(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_ccallback; PyObject *__pyx_v_pcallback = NULL; cudaStream_t __pyx_v_cstream; PyObject *__pyx_v_pstream = NULL; PyObject *__pyx_v_cuserData = NULL; void *__pyx_v_cuserData_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_t_5; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__392) __Pyx_RefNannySetupContext("cudaStreamAddCallback", 1); __Pyx_TraceCall("cudaStreamAddCallback", __pyx_f[0], 15268, 0, __PYX_ERR(0, 15268, __pyx_L1_error)); /* "cuda/cudart.pyx":15338 * """ * cdef ccudart.cudaStreamCallback_t ccallback * if callback is None: # <<<<<<<<<<<<<< * ccallback = 0 * elif isinstance(callback, (cudaStreamCallback_t,)): */ __pyx_t_1 = (__pyx_v_callback == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":15339 * cdef ccudart.cudaStreamCallback_t ccallback * if callback is None: * ccallback = 0 # <<<<<<<<<<<<<< * elif isinstance(callback, (cudaStreamCallback_t,)): * pcallback = int(callback) */ __pyx_v_ccallback = ((cudaStreamCallback_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":15338 * """ * cdef ccudart.cudaStreamCallback_t ccallback * if callback is None: # <<<<<<<<<<<<<< * ccallback = 0 * elif isinstance(callback, (cudaStreamCallback_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":15340 * if callback is None: * ccallback = 0 * elif isinstance(callback, (cudaStreamCallback_t,)): # <<<<<<<<<<<<<< * pcallback = int(callback) * ccallback = pcallback */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_callback, __pyx_ptype_4cuda_6cudart_cudaStreamCallback_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":15341 * ccallback = 0 * elif isinstance(callback, (cudaStreamCallback_t,)): * pcallback = int(callback) # <<<<<<<<<<<<<< * ccallback = pcallback * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_callback); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15341, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_pcallback = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":15342 * elif isinstance(callback, (cudaStreamCallback_t,)): * pcallback = int(callback) * ccallback = pcallback # <<<<<<<<<<<<<< * else: * pcallback = int(cudaStreamCallback_t(callback)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pcallback); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15342, __pyx_L1_error) __pyx_v_ccallback = ((cudaStreamCallback_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":15340 * if callback is None: * ccallback = 0 * elif isinstance(callback, (cudaStreamCallback_t,)): # <<<<<<<<<<<<<< * pcallback = int(callback) * ccallback = pcallback */ goto __pyx_L3; } /* "cuda/cudart.pyx":15344 * ccallback = pcallback * else: * pcallback = int(cudaStreamCallback_t(callback)) # <<<<<<<<<<<<<< * ccallback = pcallback * cdef ccudart.cudaStream_t cstream */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStreamCallback_t), __pyx_v_callback); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15344, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15344, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_pcallback = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":15345 * else: * pcallback = int(cudaStreamCallback_t(callback)) * ccallback = pcallback # <<<<<<<<<<<<<< * cdef ccudart.cudaStream_t cstream * if stream is None: */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pcallback); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15345, __pyx_L1_error) __pyx_v_ccallback = ((cudaStreamCallback_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":15347 * ccallback = pcallback * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_stream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":15348 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":15347 * ccallback = pcallback * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L4; } /* "cuda/cudart.pyx":15349 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_5 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_cudaStream_t); if (!__pyx_t_5) { } else { __pyx_t_1 = __pyx_t_5; goto __pyx_L5_bool_binop_done; } __pyx_t_5 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_5; __pyx_L5_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":15350 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15350, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_pstream = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":15351 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15351, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":15349 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L4; } /* "cuda/cudart.pyx":15353 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * cuserData = utils.HelperInputVoidPtr(userData) */ /*else*/ { __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15353, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15353, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_pstream = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":15354 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * cuserData = utils.HelperInputVoidPtr(userData) * cdef void* cuserData_ptr = cuserData.cptr */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15354, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L4:; /* "cuda/cudart.pyx":15355 * pstream = int(cudaStream_t(stream)) * cstream = pstream * cuserData = utils.HelperInputVoidPtr(userData) # <<<<<<<<<<<<<< * cdef void* cuserData_ptr = cuserData.cptr * with nogil: */ __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_userData); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15355, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_cuserData = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":15356 * cstream = pstream * cuserData = utils.HelperInputVoidPtr(userData) * cdef void* cuserData_ptr = cuserData.cptr # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaStreamAddCallback(cstream, ccallback, cuserData_ptr, flags) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_cuserData, __pyx_n_s_cptr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15356, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_2); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15356, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_cuserData_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":15357 * cuserData = utils.HelperInputVoidPtr(userData) * cdef void* cuserData_ptr = cuserData.cptr * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaStreamAddCallback(cstream, ccallback, cuserData_ptr, flags) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":15358 * cdef void* cuserData_ptr = cuserData.cptr * with nogil: * err = ccudart.cudaStreamAddCallback(cstream, ccallback, cuserData_ptr, flags) # <<<<<<<<<<<<<< * * return (cudaError_t(err),) */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaStreamAddCallback(__pyx_v_cstream, __pyx_v_ccallback, __pyx_v_cuserData_ptr, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 15358, __pyx_L8_error) __pyx_v_err = __pyx_t_6; } /* "cuda/cudart.pyx":15357 * cuserData = utils.HelperInputVoidPtr(userData) * cdef void* cuserData_ptr = cuserData.cptr * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaStreamAddCallback(cstream, ccallback, cuserData_ptr, flags) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L9; } __pyx_L8_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L9:; } } /* "cuda/cudart.pyx":15360 * err = ccudart.cudaStreamAddCallback(cstream, ccallback, cuserData_ptr, flags) * * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15360, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 15360, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15360, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15360, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 15360, __pyx_L1_error); __pyx_t_2 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":15268 * return (cudaError_t(err),) * * @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_4); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaStreamAddCallback", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pcallback); __Pyx_XDECREF(__pyx_v_pstream); __Pyx_XDECREF(__pyx_v_cuserData); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":15362 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamSynchronize(stream): * """ Waits for stream tasks to complete. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_103cudaStreamSynchronize(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_102cudaStreamSynchronize, "cudaStreamSynchronize(stream)\n Waits for stream tasks to complete.\n\n Blocks until `stream` has completed all operations. If the\n :py:obj:`~.cudaDeviceScheduleBlockingSync` flag was set for this\n device, the host thread will block until the stream is finished with\n all of its tasks.\n\n Parameters\n ----------\n stream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n Stream identifier\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidResourceHandle`\n\n See Also\n --------\n :py:obj:`~.cudaStreamCreate`, :py:obj:`~.cudaStreamCreateWithFlags`, :py:obj:`~.cudaStreamQuery`, :py:obj:`~.cudaStreamWaitEvent`, :py:obj:`~.cudaStreamAddCallback`, :py:obj:`~.cudaStreamDestroy`, :py:obj:`~.cuStreamSynchronize`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_103cudaStreamSynchronize = {"cudaStreamSynchronize", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_103cudaStreamSynchronize, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_102cudaStreamSynchronize}; static PyObject *__pyx_pw_4cuda_6cudart_103cudaStreamSynchronize(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_stream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15362, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaStreamSynchronize") < 0)) __PYX_ERR(0, 15362, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_stream = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaStreamSynchronize", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 15362, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaStreamSynchronize", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_102cudaStreamSynchronize(__pyx_self, __pyx_v_stream); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_102cudaStreamSynchronize(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_stream) { cudaStream_t __pyx_v_cstream; PyObject *__pyx_v_pstream = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__393) __Pyx_RefNannySetupContext("cudaStreamSynchronize", 1); __Pyx_TraceCall("cudaStreamSynchronize", __pyx_f[0], 15362, 0, __PYX_ERR(0, 15362, __pyx_L1_error)); /* "cuda/cudart.pyx":15386 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_stream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":15387 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":15386 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":15388 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":15389 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15389, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pstream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":15390 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15390, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":15388 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L3; } /* "cuda/cudart.pyx":15392 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * with nogil: */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15392, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15392, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pstream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":15393 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaStreamSynchronize(cstream) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15393, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":15394 * pstream = int(cudaStream_t(stream)) * cstream = pstream * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaStreamSynchronize(cstream) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":15395 * cstream = pstream * with nogil: * err = ccudart.cudaStreamSynchronize(cstream) # <<<<<<<<<<<<<< * * return (cudaError_t(err),) */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaStreamSynchronize(__pyx_v_cstream); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 15395, __pyx_L7_error) __pyx_v_err = __pyx_t_6; } /* "cuda/cudart.pyx":15394 * pstream = int(cudaStream_t(stream)) * cstream = pstream * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaStreamSynchronize(cstream) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L8; } __pyx_L7_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L8:; } } /* "cuda/cudart.pyx":15397 * err = ccudart.cudaStreamSynchronize(cstream) * * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15397, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 15397, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15397, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15397, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 15397, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":15362 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaStreamSynchronize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pstream); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":15399 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamQuery(stream): * """ Queries an asynchronous stream for completion status. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_105cudaStreamQuery(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_104cudaStreamQuery, "cudaStreamQuery(stream)\n Queries an asynchronous stream for completion status.\n\n Returns :py:obj:`~.cudaSuccess` if all operations in `stream` have\n completed, or :py:obj:`~.cudaErrorNotReady` if not.\n\n For the purposes of Unified Memory, a return value of\n :py:obj:`~.cudaSuccess` is equivalent to having called\n :py:obj:`~.cudaStreamSynchronize()`.\n\n Parameters\n ----------\n stream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n Stream identifier\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorNotReady`, :py:obj:`~.cudaErrorInvalidResourceHandle`\n\n See Also\n --------\n :py:obj:`~.cudaStreamCreate`, :py:obj:`~.cudaStreamCreateWithFlags`, :py:obj:`~.cudaStreamWaitEvent`, :py:obj:`~.cudaStreamSynchronize`, :py:obj:`~.cudaStreamAddCallback`, :py:obj:`~.cudaStreamDestroy`, :py:obj:`~.cuStreamQuery`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_105cudaStreamQuery = {"cudaStreamQuery", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_105cudaStreamQuery, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_104cudaStreamQuery}; static PyObject *__pyx_pw_4cuda_6cudart_105cudaStreamQuery(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_stream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15399, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaStreamQuery") < 0)) __PYX_ERR(0, 15399, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_stream = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaStreamQuery", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 15399, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaStreamQuery", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_104cudaStreamQuery(__pyx_self, __pyx_v_stream); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_104cudaStreamQuery(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_stream) { cudaStream_t __pyx_v_cstream; PyObject *__pyx_v_pstream = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__394) __Pyx_RefNannySetupContext("cudaStreamQuery", 1); __Pyx_TraceCall("cudaStreamQuery", __pyx_f[0], 15399, 0, __PYX_ERR(0, 15399, __pyx_L1_error)); /* "cuda/cudart.pyx":15425 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_stream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":15426 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":15425 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":15427 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":15428 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15428, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pstream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":15429 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15429, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":15427 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L3; } /* "cuda/cudart.pyx":15431 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * err = ccudart.cudaStreamQuery(cstream) */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15431, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15431, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pstream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":15432 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * err = ccudart.cudaStreamQuery(cstream) * return (cudaError_t(err),) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15432, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":15433 * pstream = int(cudaStream_t(stream)) * cstream = pstream * err = ccudart.cudaStreamQuery(cstream) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaStreamQuery(__pyx_v_cstream); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 15433, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":15434 * cstream = pstream * err = ccudart.cudaStreamQuery(cstream) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15434, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 15434, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15434, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15434, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 15434, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":15399 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaStreamQuery", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pstream); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":15436 * return (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_6cudart_107cudaStreamAttachMemAsync(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_106cudaStreamAttachMemAsync, "cudaStreamAttachMemAsync(stream, devPtr, size_t length, unsigned int flags)\n Attach memory to a stream asynchronously.\n\n Enqueues an operation in `stream` to specify stream association of\n `length` bytes of memory starting from `devPtr`. This function is a\n stream-ordered operation, meaning that it is dependent on, and will\n only take effect when, previous work in stream has completed. Any\n previous 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\n For managed allocations, `length` must be either zero or the entire\n allocation's size. Both indicate that the entire allocation's stream\n association is being changed. Currently, it is not possible to change\n stream association for a portion of a managed allocation.\n\n For pageable allocations, `length` must be non-zero.\n\n The 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`\n flag is specified, the memory can be accessed by any stream on any\n device. If the :py:obj:`~.cudaMemAttachHost` flag is specified, the\n program makes a guarantee that it won't access the memory on the device\n from any stream on a device that has a zero value for the device\n attribute :py:obj:`~.cudaDevAttrConcurrentManagedAccess`. If the\n :py:obj:`~.cudaMemAttachSingle` flag is specified and `stream`"" is\n associated with a device that has a zero value for the device attribute\n :py:obj:`~.cudaDevAttrConcurrentManagedAccess`, the program makes a\n guarantee that it will only access the memory on the device from\n `stream`. It is illegal to attach singly to the NULL stream, because\n the NULL stream is a virtual global stream and not a specific stream.\n An error will be returned in this case.\n\n When memory is associated with a single stream, the Unified Memory\n system will allow CPU access to this memory region so long as all\n operations in `stream` have completed, regardless of whether other\n streams are active. In effect, this constrains exclusive ownership of\n the managed memory region by an active GPU to per-stream activity\n instead of whole-GPU activity.\n\n Accessing memory on the device from streams that are not associated\n with it will produce undefined results. No error checking is performed\n by the Unified Memory system to ensure that kernels launched into other\n streams do not access this region.\n\n It is a program's responsibility to order calls to\n :py:obj:`~.cudaStreamAttachMemAsync` via events, synchronization or\n other means to ensure legal access to memory at all times. Data\n visibility and coherency will be changed appropriately for all kernels\n which follow a stream-association change.\n\n If `stream` is destroyed while data is associated with it, the\n association is removed and the association reverts to the default\n visibility of the allocation as specified at\n :py:obj:`~.cudaMallocManaged`. For managed variables, the default\n association is always :py:obj:`~.cudaMemAttachGlobal`. Note that\n destroying a stream is an asynchronous operation, and as a result, the\n change to default association won't happen until all work in the stream\n has completed.\n\n Parameters\n ----------\n stream : :py:obj:`~.CUstream` or :py:obj:`~.cuda""Stream_t`\n Stream in which to enqueue the attach operation\n devPtr : Any\n Pointer to memory (must be a pointer to managed memory or to a\n valid host-accessible region of system-allocated memory)\n length : size_t\n Length of memory (defaults to zero)\n flags : 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\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorNotReady`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_107cudaStreamAttachMemAsync = {"cudaStreamAttachMemAsync", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_107cudaStreamAttachMemAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_106cudaStreamAttachMemAsync}; static PyObject *__pyx_pw_4cuda_6cudart_107cudaStreamAttachMemAsync(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_stream,&__pyx_n_s_devPtr_2,&__pyx_n_s_length,&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15436, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_devPtr_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15436, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaStreamAttachMemAsync", 1, 4, 4, 1); __PYX_ERR(0, 15436, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_length)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15436, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaStreamAttachMemAsync", 1, 4, 4, 2); __PYX_ERR(0, 15436, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15436, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaStreamAttachMemAsync", 1, 4, 4, 3); __PYX_ERR(0, 15436, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaStreamAttachMemAsync") < 0)) __PYX_ERR(0, 15436, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); } __pyx_v_stream = values[0]; __pyx_v_devPtr = values[1]; __pyx_v_length = __Pyx_PyInt_As_size_t(values[2]); if (unlikely((__pyx_v_length == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 15437, __pyx_L3_error) __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[3]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 15437, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaStreamAttachMemAsync", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 15436, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaStreamAttachMemAsync", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_106cudaStreamAttachMemAsync(__pyx_self, __pyx_v_stream, __pyx_v_devPtr, __pyx_v_length, __pyx_v_flags); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_106cudaStreamAttachMemAsync(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_cstream; PyObject *__pyx_v_pstream = NULL; PyObject *__pyx_v_cdevPtr = NULL; void *__pyx_v_cdevPtr_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__395) __Pyx_RefNannySetupContext("cudaStreamAttachMemAsync", 1); __Pyx_TraceCall("cudaStreamAttachMemAsync", __pyx_f[0], 15436, 0, __PYX_ERR(0, 15436, __pyx_L1_error)); /* "cuda/cudart.pyx":15531 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_stream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":15532 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":15531 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":15533 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":15534 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15534, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pstream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":15535 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15535, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":15533 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L3; } /* "cuda/cudart.pyx":15537 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * cdevPtr = utils.HelperInputVoidPtr(devPtr) */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15537, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15537, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pstream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":15538 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15538, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":15539 * pstream = int(cudaStream_t(stream)) * cstream = pstream * cdevPtr = utils.HelperInputVoidPtr(devPtr) # <<<<<<<<<<<<<< * cdef void* cdevPtr_ptr = cdevPtr.cptr * err = ccudart.cudaStreamAttachMemAsync(cstream, cdevPtr_ptr, length, flags) */ __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_devPtr); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15539, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_cdevPtr = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":15540 * cstream = pstream * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr # <<<<<<<<<<<<<< * err = ccudart.cudaStreamAttachMemAsync(cstream, cdevPtr_ptr, length, flags) * return (cudaError_t(err),) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_cdevPtr, __pyx_n_s_cptr); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15540, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15540, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_cdevPtr_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":15541 * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr * err = ccudart.cudaStreamAttachMemAsync(cstream, cdevPtr_ptr, length, flags) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaStreamAttachMemAsync(__pyx_v_cstream, __pyx_v_cdevPtr_ptr, __pyx_v_length, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 15541, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":15542 * cdef void* cdevPtr_ptr = cdevPtr.cptr * err = ccudart.cudaStreamAttachMemAsync(cstream, cdevPtr_ptr, length, flags) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15542, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 15542, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15542, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15542, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 15542, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":15436 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaStreamAttachMemAsync", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pstream); __Pyx_XDECREF(__pyx_v_cdevPtr); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":15544 * return (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_6cudart_109cudaStreamBeginCapture(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_108cudaStreamBeginCapture, "cudaStreamBeginCapture(stream, mode: cudaStreamCaptureMode)\n Begins graph capture on a stream.\n\n Begin graph capture on `stream`. When a stream is in capture mode, all\n operations pushed into the stream will not be executed, but will\n instead 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\n same stream in which it was initiated, and it may only be initiated if\n the stream is not already in capture mode. The capture mode may be\n queried via :py:obj:`~.cudaStreamIsCapturing`. A unique id representing\n the capture sequence may be queried via\n :py:obj:`~.cudaStreamGetCaptureInfo`.\n\n If `mode` is not :py:obj:`~.cudaStreamCaptureModeRelaxed`,\n :py:obj:`~.cudaStreamEndCapture` must be called on this stream from the\n same thread.\n\n Parameters\n ----------\n stream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n Stream in which to initiate capture\n mode : :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\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\n See Also\n --------\n :py:obj:`~.cudaStreamCreate`, :py:obj:`~.cudaStreamIsCapturing`, :py:obj:`~.cudaStreamEndCapture`, :py:obj:`~.cudaThreadExchangeStreamCaptureMode`\n\n Notes\n -----\n 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.\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_109cudaStreamBeginCapture = {"cudaStreamBeginCapture", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_109cudaStreamBeginCapture, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_108cudaStreamBeginCapture}; static PyObject *__pyx_pw_4cuda_6cudart_109cudaStreamBeginCapture(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_stream,&__pyx_n_s_mode,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15544, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_mode)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15544, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaStreamBeginCapture", 1, 2, 2, 1); __PYX_ERR(0, 15544, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaStreamBeginCapture") < 0)) __PYX_ERR(0, 15544, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __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, 15544, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 15545, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_108cudaStreamBeginCapture(__pyx_self, __pyx_v_stream, __pyx_v_mode); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_108cudaStreamBeginCapture(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_stream, PyObject *__pyx_v_mode) { cudaStream_t __pyx_v_cstream; PyObject *__pyx_v_pstream = NULL; enum cudaStreamCaptureMode __pyx_v_cmode; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; enum cudaStreamCaptureMode __pyx_t_6; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__396) __Pyx_RefNannySetupContext("cudaStreamBeginCapture", 1); __Pyx_TraceCall("cudaStreamBeginCapture", __pyx_f[0], 15544, 0, __PYX_ERR(0, 15544, __pyx_L1_error)); /* "cuda/cudart.pyx":15586 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_stream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":15587 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":15586 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":15588 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":15589 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15589, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pstream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":15590 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15590, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":15588 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L3; } /* "cuda/cudart.pyx":15592 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * cdef ccudart.cudaStreamCaptureMode cmode = mode.value */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15592, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15592, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pstream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":15593 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * cdef ccudart.cudaStreamCaptureMode cmode = mode.value * err = ccudart.cudaStreamBeginCapture(cstream, cmode) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15593, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":15594 * pstream = int(cudaStream_t(stream)) * cstream = pstream * cdef ccudart.cudaStreamCaptureMode cmode = mode.value # <<<<<<<<<<<<<< * err = ccudart.cudaStreamBeginCapture(cstream, cmode) * return (cudaError_t(err),) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_mode, __pyx_n_s_value); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15594, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = ((enum cudaStreamCaptureMode)__Pyx_PyInt_As_enum__cudaStreamCaptureMode(__pyx_t_5)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15594, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_cmode = __pyx_t_6; /* "cuda/cudart.pyx":15595 * cstream = pstream * cdef ccudart.cudaStreamCaptureMode cmode = mode.value * err = ccudart.cudaStreamBeginCapture(cstream, cmode) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaStreamBeginCapture(__pyx_v_cstream, __pyx_v_cmode); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 15595, __pyx_L1_error) __pyx_v_err = __pyx_t_7; /* "cuda/cudart.pyx":15596 * cdef ccudart.cudaStreamCaptureMode cmode = mode.value * err = ccudart.cudaStreamBeginCapture(cstream, cmode) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15596, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 15596, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_8}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15596, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15596, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 15596, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":15544 * return (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_5); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.cudaStreamBeginCapture", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pstream); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":15598 * return (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_6cudart_111cudaStreamBeginCaptureToGraph(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_110cudaStreamBeginCaptureToGraph, "cudaStreamBeginCaptureToGraph(stream, graph, dependencies: Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], dependencyData: Optional[Tuple[cudaGraphEdgeData] | List[cudaGraphEdgeData]], size_t numDependencies, mode: cudaStreamCaptureMode)\n Begins graph capture on a stream to an existing graph.\n\n Begin graph capture on `stream`. When a stream is in capture mode, all\n operations pushed into the stream will not be executed, but will\n instead be captured into `graph`, which will be returned via\n :py:obj:`~.cudaStreamEndCapture`.\n\n Capture may not be initiated if `stream` is\n :py:obj:`~.cudaStreamLegacy`. Capture must be ended on the same stream\n in which it was initiated, and it may only be initiated if the stream\n is not already in capture mode. The capture mode may be queried via\n :py:obj:`~.cudaStreamIsCapturing`. A unique id representing the capture\n sequence may be queried via :py:obj:`~.cudaStreamGetCaptureInfo`.\n\n If `mode` is not :py:obj:`~.cudaStreamCaptureModeRelaxed`,\n :py:obj:`~.cudaStreamEndCapture` must be called on this stream from the\n same thread.\n\n Parameters\n ----------\n stream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n Stream in which to initiate capture.\n graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n Graph to capture into.\n dependencies : List[:py:obj:`~.cudaGraphNode_t`]\n Dependencies of the first node captured in the stream. Can be NULL\n if numDependencies is 0.\n dependencyData : List[:py:obj:`~.cudaGraphEdgeData`]\n Optional array of data associated with each dependency.\n numDependencies : size_t\n Number of dependencies.\n mode : :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\n Returns\n -------""\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\n See Also\n --------\n :py:obj:`~.cudaStreamCreate`, :py:obj:`~.cudaStreamIsCapturing`, :py:obj:`~.cudaStreamEndCapture`, :py:obj:`~.cudaThreadExchangeStreamCaptureMode`\n\n Notes\n -----\n 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.\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_111cudaStreamBeginCaptureToGraph = {"cudaStreamBeginCaptureToGraph", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_111cudaStreamBeginCaptureToGraph, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_110cudaStreamBeginCaptureToGraph}; static PyObject *__pyx_pw_4cuda_6cudart_111cudaStreamBeginCaptureToGraph(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_stream,&__pyx_n_s_graph_2,&__pyx_n_s_dependencies,&__pyx_n_s_dependencyData,&__pyx_n_s_numDependencies,&__pyx_n_s_mode,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 6: values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15598, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_graph_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15598, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaStreamBeginCaptureToGraph", 1, 6, 6, 1); __PYX_ERR(0, 15598, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15598, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaStreamBeginCaptureToGraph", 1, 6, 6, 2); __PYX_ERR(0, 15598, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dependencyData)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15598, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaStreamBeginCaptureToGraph", 1, 6, 6, 3); __PYX_ERR(0, 15598, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_numDependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[4]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15598, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaStreamBeginCaptureToGraph", 1, 6, 6, 4); __PYX_ERR(0, 15598, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_mode)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[5]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15598, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaStreamBeginCaptureToGraph", 1, 6, 6, 5); __PYX_ERR(0, 15598, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaStreamBeginCaptureToGraph") < 0)) __PYX_ERR(0, 15598, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 6)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5); } __pyx_v_stream = values[0]; __pyx_v_graph = values[1]; __pyx_v_dependencies = values[2]; __pyx_v_dependencyData = values[3]; __pyx_v_numDependencies = __Pyx_PyInt_As_size_t(values[4]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 15599, __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, 15598, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 15599, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_110cudaStreamBeginCaptureToGraph(__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; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_29cudaStreamBeginCaptureToGraph_2generator(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":15650 * """ * 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[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * dependencies = [] if dependencies is None else dependencies */ static PyObject *__pyx_pf_4cuda_6cudart_29cudaStreamBeginCaptureToGraph_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct__genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct__genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct__genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct__genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 15650, __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_6cudart_29cudaStreamBeginCaptureToGraph_2generator, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaStreamBeginCaptureToGraph_lo, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 15650, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.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_6cudart_29cudaStreamBeginCaptureToGraph_2generator(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct__genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct__genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 15650, 0, __PYX_ERR(0, 15650, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 15650, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 15650, __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, 15650, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15650, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 15650, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 15650, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15650, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 15650, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 15650, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15650, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 15650, __pyx_L1_error) } 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_ptype_4cuda_6cudart_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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_29cudaStreamBeginCaptureToGraph_5generator1(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":15653 * raise TypeError("Argument 'dependencyData' is not instance of type (expected Tuple[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * dependencies = [] if dependencies is None else dependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in dependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ static PyObject *__pyx_pf_4cuda_6cudart_29cudaStreamBeginCaptureToGraph_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct_1_genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_1_genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_1_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_1_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 15653, __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_6cudart_29cudaStreamBeginCaptureToGraph_5generator1, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaStreamBeginCaptureToGraph_lo, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 15653, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.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_6cudart_29cudaStreamBeginCaptureToGraph_5generator1(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_1_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_1_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 15653, 0, __PYX_ERR(0, 15653, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 15653, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 15653, __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, 15653, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15653, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 15653, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 15653, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15653, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 15653, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 15653, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15653, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 15653, __pyx_L1_error) } 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_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":15598 * return (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_6cudart_110cudaStreamBeginCaptureToGraph(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_cgraph; PyObject *__pyx_v_pgraph = NULL; cudaStream_t __pyx_v_cstream; PyObject *__pyx_v_pstream = NULL; cudaGraphNode_t *__pyx_v_cdependencies; Py_ssize_t __pyx_v_idx; cudaGraphEdgeData *__pyx_v_cdependencyData; enum cudaStreamCaptureMode __pyx_v_cmode; cudaError_t __pyx_v_err; PyObject *__pyx_gb_4cuda_6cudart_29cudaStreamBeginCaptureToGraph_2generator = 0; PyObject *__pyx_gb_4cuda_6cudart_29cudaStreamBeginCaptureToGraph_5generator1 = 0; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; Py_ssize_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; Py_ssize_t __pyx_t_8; Py_ssize_t __pyx_t_9; enum cudaStreamCaptureMode __pyx_t_10; cudaGraphNode_t *__pyx_t_11; struct cudaGraphEdgeData_st *__pyx_t_12; cudaError_t __pyx_t_13; PyObject *__pyx_t_14 = NULL; unsigned int __pyx_t_15; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__397) __Pyx_RefNannySetupContext("cudaStreamBeginCaptureToGraph", 0); __Pyx_TraceCall("cudaStreamBeginCaptureToGraph", __pyx_f[0], 15598, 0, __PYX_ERR(0, 15598, __pyx_L1_error)); __Pyx_INCREF(__pyx_v_dependencies); __Pyx_INCREF(__pyx_v_dependencyData); /* "cuda/cudart.pyx":15649 * 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[ccudart.cudaGraphEdgeData,] or List[ccudart.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, 15649, __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/cudart.pyx":15650 * """ * 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[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * dependencies = [] if dependencies is None else dependencies */ __pyx_t_1 = __pyx_pf_4cuda_6cudart_29cudaStreamBeginCaptureToGraph_genexpr(NULL, __pyx_v_dependencyData); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15650, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15650, __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, 15650, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_4 = (!__pyx_t_2); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":15651 * 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[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") # <<<<<<<<<<<<<< * dependencies = [] if dependencies is None else dependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in dependencies): */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__398, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15651, __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, 15651, __pyx_L1_error) /* "cuda/cudart.pyx":15650 * """ * 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[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * dependencies = [] if dependencies is None else dependencies */ } /* "cuda/cudart.pyx":15652 * if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in dependencyData): * raise TypeError("Argument 'dependencyData' is not instance of type (expected Tuple[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * dependencies = [] if dependencies is None else dependencies # <<<<<<<<<<<<<< * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in dependencies): * raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.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, 15652, __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/cudart.pyx":15653 * raise TypeError("Argument 'dependencyData' is not instance of type (expected Tuple[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * dependencies = [] if dependencies is None else dependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in dependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ __pyx_t_3 = __pyx_pf_4cuda_6cudart_29cudaStreamBeginCaptureToGraph_3genexpr(NULL, __pyx_v_dependencies); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15653, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_Generator_Next(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15653, __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, 15653, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_2 = (!__pyx_t_4); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":15654 * dependencies = [] if dependencies is None else dependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in dependencies): * raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") # <<<<<<<<<<<<<< * cdef ccudart.cudaGraph_t cgraph * if graph is None: */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__399, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15654, __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, 15654, __pyx_L1_error) /* "cuda/cudart.pyx":15653 * raise TypeError("Argument 'dependencyData' is not instance of type (expected Tuple[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * dependencies = [] if dependencies is None else dependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in dependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ } /* "cuda/cudart.pyx":15656 * raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_2 = (__pyx_v_graph == Py_None); if (__pyx_t_2) { /* "cuda/cudart.pyx":15657 * cdef ccudart.cudaGraph_t cgraph * if graph is None: * cgraph = 0 # <<<<<<<<<<<<<< * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) */ __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":15656 * raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L5; } /* "cuda/cudart.pyx":15658 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ __pyx_t_4 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_2 = __pyx_t_4; __pyx_L6_bool_binop_done:; if (__pyx_t_2) { /* "cuda/cudart.pyx":15659 * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) # <<<<<<<<<<<<<< * cgraph = pgraph * else: */ __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15659, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_pgraph = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":15660 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) * cgraph = pgraph # <<<<<<<<<<<<<< * else: * pgraph = int(cudaGraph_t(graph)) */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15660, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); /* "cuda/cudart.pyx":15658 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ goto __pyx_L5; } /* "cuda/cudart.pyx":15662 * cgraph = pgraph * else: * pgraph = int(cudaGraph_t(graph)) # <<<<<<<<<<<<<< * cgraph = pgraph * cdef ccudart.cudaStream_t cstream */ /*else*/ { __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_graph); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15662, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15662, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_pgraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":15663 * else: * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph # <<<<<<<<<<<<<< * cdef ccudart.cudaStream_t cstream * if stream is None: */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15663, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); } __pyx_L5:; /* "cuda/cudart.pyx":15665 * cgraph = pgraph * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_2 = (__pyx_v_stream == Py_None); if (__pyx_t_2) { /* "cuda/cudart.pyx":15666 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":15665 * cgraph = pgraph * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L8; } /* "cuda/cudart.pyx":15667 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_4 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_2 = __pyx_t_4; __pyx_L9_bool_binop_done:; if (__pyx_t_2) { /* "cuda/cudart.pyx":15668 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15668, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pstream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":15669 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15669, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); /* "cuda/cudart.pyx":15667 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L8; } /* "cuda/cudart.pyx":15671 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * cdef ccudart.cudaGraphNode_t* cdependencies = NULL */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15671, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15671, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pstream = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":15672 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t* cdependencies = NULL * if len(dependencies) > 0: */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15672, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); } __pyx_L8:; /* "cuda/cudart.pyx":15673 * pstream = int(cudaStream_t(stream)) * cstream = pstream * cdef ccudart.cudaGraphNode_t* cdependencies = NULL # <<<<<<<<<<<<<< * if len(dependencies) > 0: * cdependencies = calloc(len(dependencies), sizeof(ccudart.cudaGraphNode_t)) */ __pyx_v_cdependencies = NULL; /* "cuda/cudart.pyx":15674 * cstream = pstream * cdef ccudart.cudaGraphNode_t* cdependencies = NULL * if len(dependencies) > 0: # <<<<<<<<<<<<<< * cdependencies = calloc(len(dependencies), sizeof(ccudart.cudaGraphNode_t)) * if cdependencies is NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_dependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 15674, __pyx_L1_error) __pyx_t_2 = (__pyx_t_6 > 0); if (__pyx_t_2) { /* "cuda/cudart.pyx":15675 * cdef ccudart.cudaGraphNode_t* cdependencies = NULL * if len(dependencies) > 0: * cdependencies = calloc(len(dependencies), sizeof(ccudart.cudaGraphNode_t)) # <<<<<<<<<<<<<< * if cdependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) */ __pyx_t_6 = PyObject_Length(__pyx_v_dependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 15675, __pyx_L1_error) __pyx_v_cdependencies = ((cudaGraphNode_t *)calloc(__pyx_t_6, (sizeof(cudaGraphNode_t)))); /* "cuda/cudart.pyx":15676 * if len(dependencies) > 0: * cdependencies = calloc(len(dependencies), sizeof(ccudart.cudaGraphNode_t)) * if cdependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ __pyx_t_2 = (__pyx_v_cdependencies == NULL); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":15677 * cdependencies = calloc(len(dependencies), sizeof(ccudart.cudaGraphNode_t)) * if cdependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) # <<<<<<<<<<<<<< * else: * for idx in range(len(dependencies)): */ __pyx_t_6 = PyObject_Length(__pyx_v_dependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 15677, __pyx_L1_error) __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15677, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15677, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15677, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_n_u_x_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15677, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15677, __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, 15677, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15677, __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 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 15677, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_7, 0, 0, 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __PYX_ERR(0, 15677, __pyx_L1_error) /* "cuda/cudart.pyx":15676 * if len(dependencies) > 0: * cdependencies = calloc(len(dependencies), sizeof(ccudart.cudaGraphNode_t)) * if cdependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ } /* "cuda/cudart.pyx":15679 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: * for idx in range(len(dependencies)): # <<<<<<<<<<<<<< * cdependencies[idx] = (dependencies[idx])._ptr[0] * cdef ccudart.cudaGraphEdgeData* cdependencyData = NULL */ /*else*/ { __pyx_t_6 = PyObject_Length(__pyx_v_dependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 15679, __pyx_L1_error) __pyx_t_8 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_idx = __pyx_t_9; /* "cuda/cudart.pyx":15680 * else: * for idx in range(len(dependencies)): * cdependencies[idx] = (dependencies[idx])._ptr[0] # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphEdgeData* cdependencyData = NULL * if len(dependencyData) > 0: */ __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_dependencies, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 15680, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); (__pyx_v_cdependencies[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_7)->__pyx_base._ptr[0])); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } /* "cuda/cudart.pyx":15674 * cstream = pstream * cdef ccudart.cudaGraphNode_t* cdependencies = NULL * if len(dependencies) > 0: # <<<<<<<<<<<<<< * cdependencies = calloc(len(dependencies), sizeof(ccudart.cudaGraphNode_t)) * if cdependencies is NULL: */ } /* "cuda/cudart.pyx":15681 * for idx in range(len(dependencies)): * cdependencies[idx] = (dependencies[idx])._ptr[0] * cdef ccudart.cudaGraphEdgeData* cdependencyData = NULL # <<<<<<<<<<<<<< * if len(dependencyData) > 0: * cdependencyData = calloc(len(dependencyData), sizeof(ccudart.cudaGraphEdgeData)) */ __pyx_v_cdependencyData = NULL; /* "cuda/cudart.pyx":15682 * cdependencies[idx] = (dependencies[idx])._ptr[0] * cdef ccudart.cudaGraphEdgeData* cdependencyData = NULL * if len(dependencyData) > 0: # <<<<<<<<<<<<<< * cdependencyData = calloc(len(dependencyData), sizeof(ccudart.cudaGraphEdgeData)) * if cdependencyData is NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_dependencyData); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 15682, __pyx_L1_error) __pyx_t_2 = (__pyx_t_6 > 0); if (__pyx_t_2) { /* "cuda/cudart.pyx":15683 * cdef ccudart.cudaGraphEdgeData* cdependencyData = NULL * if len(dependencyData) > 0: * cdependencyData = calloc(len(dependencyData), sizeof(ccudart.cudaGraphEdgeData)) # <<<<<<<<<<<<<< * if cdependencyData is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencyData)) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) */ __pyx_t_6 = PyObject_Length(__pyx_v_dependencyData); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 15683, __pyx_L1_error) __pyx_v_cdependencyData = ((cudaGraphEdgeData *)calloc(__pyx_t_6, (sizeof(cudaGraphEdgeData)))); /* "cuda/cudart.pyx":15684 * if len(dependencyData) > 0: * cdependencyData = calloc(len(dependencyData), sizeof(ccudart.cudaGraphEdgeData)) * if cdependencyData is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencyData)) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) * for idx in range(len(dependencyData)): */ __pyx_t_2 = (__pyx_v_cdependencyData == NULL); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":15685 * cdependencyData = calloc(len(dependencyData), sizeof(ccudart.cudaGraphEdgeData)) * if cdependencyData is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencyData)) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) # <<<<<<<<<<<<<< * for idx in range(len(dependencyData)): * string.memcpy(&cdependencyData[idx], (dependencyData[idx])._ptr, sizeof(ccudart.cudaGraphEdgeData)) */ __pyx_t_6 = PyObject_Length(__pyx_v_dependencyData); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 15685, __pyx_L1_error) __pyx_t_7 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 15685, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15685, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 15685, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_7, __pyx_n_u_x_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15685, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphEdgeData))); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 15685, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15685, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 15685, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15685, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 15685, __pyx_L1_error) /* "cuda/cudart.pyx":15684 * if len(dependencyData) > 0: * cdependencyData = calloc(len(dependencyData), sizeof(ccudart.cudaGraphEdgeData)) * if cdependencyData is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencyData)) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) * for idx in range(len(dependencyData)): */ } /* "cuda/cudart.pyx":15686 * if cdependencyData is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencyData)) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) * for idx in range(len(dependencyData)): # <<<<<<<<<<<<<< * string.memcpy(&cdependencyData[idx], (dependencyData[idx])._ptr, sizeof(ccudart.cudaGraphEdgeData)) * if numDependencies > len(dependencies): raise RuntimeError("List is too small: " + str(len(dependencies)) + " < " + str(numDependencies)) */ __pyx_t_6 = PyObject_Length(__pyx_v_dependencyData); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 15686, __pyx_L1_error) __pyx_t_8 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_idx = __pyx_t_9; /* "cuda/cudart.pyx":15687 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencyData)) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) * for idx in range(len(dependencyData)): * string.memcpy(&cdependencyData[idx], (dependencyData[idx])._ptr, sizeof(ccudart.cudaGraphEdgeData)) # <<<<<<<<<<<<<< * if numDependencies > len(dependencies): raise RuntimeError("List is too small: " + str(len(dependencies)) + " < " + str(numDependencies)) * cdef ccudart.cudaStreamCaptureMode cmode = mode.value */ __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_dependencyData, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15687, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); (void)(memcpy((&(__pyx_v_cdependencyData[__pyx_v_idx])), ((struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData *)__pyx_t_3)->__pyx_base._ptr, (sizeof(cudaGraphEdgeData)))); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } /* "cuda/cudart.pyx":15682 * cdependencies[idx] = (dependencies[idx])._ptr[0] * cdef ccudart.cudaGraphEdgeData* cdependencyData = NULL * if len(dependencyData) > 0: # <<<<<<<<<<<<<< * cdependencyData = calloc(len(dependencyData), sizeof(ccudart.cudaGraphEdgeData)) * if cdependencyData is NULL: */ } /* "cuda/cudart.pyx":15688 * for idx in range(len(dependencyData)): * string.memcpy(&cdependencyData[idx], (dependencyData[idx])._ptr, sizeof(ccudart.cudaGraphEdgeData)) * if numDependencies > len(dependencies): raise RuntimeError("List is too small: " + str(len(dependencies)) + " < " + str(numDependencies)) # <<<<<<<<<<<<<< * cdef ccudart.cudaStreamCaptureMode cmode = mode.value * err = ccudart.cudaStreamBeginCaptureToGraph(cstream, cgraph, (dependencies[0])._ptr if len(dependencies) == 1 else cdependencies, (dependencyData[0])._ptr if len(dependencyData) == 1 else cdependencyData, numDependencies, cmode) */ __pyx_t_6 = PyObject_Length(__pyx_v_dependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 15688, __pyx_L1_error) __pyx_t_2 = (__pyx_v_numDependencies > ((size_t)__pyx_t_6)); if (unlikely(__pyx_t_2)) { __pyx_t_6 = PyObject_Length(__pyx_v_dependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 15688, __pyx_L1_error) __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15688, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 15688, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_List_is_too_small, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15688, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_kp_u__400); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 15688, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyInt_FromSize_t(__pyx_v_numDependencies); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15688, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15688, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_7, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15688, __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 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15688, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(0, 15688, __pyx_L1_error) } /* "cuda/cudart.pyx":15689 * string.memcpy(&cdependencyData[idx], (dependencyData[idx])._ptr, sizeof(ccudart.cudaGraphEdgeData)) * if numDependencies > len(dependencies): raise RuntimeError("List is too small: " + str(len(dependencies)) + " < " + str(numDependencies)) * cdef ccudart.cudaStreamCaptureMode cmode = mode.value # <<<<<<<<<<<<<< * err = ccudart.cudaStreamBeginCaptureToGraph(cstream, cgraph, (dependencies[0])._ptr if len(dependencies) == 1 else cdependencies, (dependencyData[0])._ptr if len(dependencyData) == 1 else cdependencyData, numDependencies, cmode) * if cdependencies is not NULL: */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_mode, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15689, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_10 = ((enum cudaStreamCaptureMode)__Pyx_PyInt_As_enum__cudaStreamCaptureMode(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15689, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cmode = __pyx_t_10; /* "cuda/cudart.pyx":15690 * if numDependencies > len(dependencies): raise RuntimeError("List is too small: " + str(len(dependencies)) + " < " + str(numDependencies)) * cdef ccudart.cudaStreamCaptureMode cmode = mode.value * err = ccudart.cudaStreamBeginCaptureToGraph(cstream, cgraph, (dependencies[0])._ptr if len(dependencies) == 1 else cdependencies, (dependencyData[0])._ptr if len(dependencyData) == 1 else cdependencyData, numDependencies, cmode) # <<<<<<<<<<<<<< * if cdependencies is not NULL: * free(cdependencies) */ __pyx_t_6 = PyObject_Length(__pyx_v_dependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 15690, __pyx_L1_error) __pyx_t_2 = (__pyx_t_6 == 1); if (__pyx_t_2) { __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_dependencies, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15690, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_11 = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._ptr); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_11 = __pyx_v_cdependencies; } __pyx_t_6 = PyObject_Length(__pyx_v_dependencyData); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 15690, __pyx_L1_error) __pyx_t_2 = (__pyx_t_6 == 1); if (__pyx_t_2) { __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_dependencyData, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15690, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_12 = ((struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData *)__pyx_t_1)->__pyx_base._ptr; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_12 = __pyx_v_cdependencyData; } __pyx_t_13 = __pyx_f_4cuda_7ccudart_cudaStreamBeginCaptureToGraph(__pyx_v_cstream, __pyx_v_cgraph, __pyx_t_11, __pyx_t_12, __pyx_v_numDependencies, __pyx_v_cmode); if (unlikely(__pyx_t_13 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 15690, __pyx_L1_error) __pyx_v_err = __pyx_t_13; /* "cuda/cudart.pyx":15691 * cdef ccudart.cudaStreamCaptureMode cmode = mode.value * err = ccudart.cudaStreamBeginCaptureToGraph(cstream, cgraph, (dependencies[0])._ptr if len(dependencies) == 1 else cdependencies, (dependencyData[0])._ptr if len(dependencyData) == 1 else cdependencyData, numDependencies, cmode) * if cdependencies is not NULL: # <<<<<<<<<<<<<< * free(cdependencies) * if cdependencyData is not NULL: */ __pyx_t_2 = (__pyx_v_cdependencies != NULL); if (__pyx_t_2) { /* "cuda/cudart.pyx":15692 * err = ccudart.cudaStreamBeginCaptureToGraph(cstream, cgraph, (dependencies[0])._ptr if len(dependencies) == 1 else cdependencies, (dependencyData[0])._ptr if len(dependencyData) == 1 else cdependencyData, numDependencies, cmode) * if cdependencies is not NULL: * free(cdependencies) # <<<<<<<<<<<<<< * if cdependencyData is not NULL: * free(cdependencyData) */ free(__pyx_v_cdependencies); /* "cuda/cudart.pyx":15691 * cdef ccudart.cudaStreamCaptureMode cmode = mode.value * err = ccudart.cudaStreamBeginCaptureToGraph(cstream, cgraph, (dependencies[0])._ptr if len(dependencies) == 1 else cdependencies, (dependencyData[0])._ptr if len(dependencyData) == 1 else cdependencyData, numDependencies, cmode) * if cdependencies is not NULL: # <<<<<<<<<<<<<< * free(cdependencies) * if cdependencyData is not NULL: */ } /* "cuda/cudart.pyx":15693 * if cdependencies is not NULL: * free(cdependencies) * if cdependencyData is not NULL: # <<<<<<<<<<<<<< * free(cdependencyData) * return (cudaError_t(err),) */ __pyx_t_2 = (__pyx_v_cdependencyData != NULL); if (__pyx_t_2) { /* "cuda/cudart.pyx":15694 * free(cdependencies) * if cdependencyData is not NULL: * free(cdependencyData) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ free(__pyx_v_cdependencyData); /* "cuda/cudart.pyx":15693 * if cdependencies is not NULL: * free(cdependencies) * if cdependencyData is not NULL: # <<<<<<<<<<<<<< * free(cdependencyData) * return (cudaError_t(err),) */ } /* "cuda/cudart.pyx":15695 * if cdependencyData is not NULL: * free(cdependencyData) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15695, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 15695, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_14 = NULL; __pyx_t_15 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_14)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_14); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_15 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_14, __pyx_t_7}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_15, 1+__pyx_t_15); __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15695, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15695, __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)) __PYX_ERR(0, 15695, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":15598 * return (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_7); __Pyx_XDECREF(__pyx_t_14); __Pyx_AddTraceback("cuda.cudart.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_6cudart_29cudaStreamBeginCaptureToGraph_2generator); __Pyx_XDECREF(__pyx_gb_4cuda_6cudart_29cudaStreamBeginCaptureToGraph_5generator1); __Pyx_XDECREF(__pyx_v_dependencies); __Pyx_XDECREF(__pyx_v_dependencyData); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":15697 * return (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_6cudart_113cudaThreadExchangeStreamCaptureMode(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_112cudaThreadExchangeStreamCaptureMode, "cudaThreadExchangeStreamCaptureMode(mode: cudaStreamCaptureMode)\n Swaps the stream capture interaction mode for a thread.\n\n Sets the calling thread's stream capture interaction mode to the value\n contained in `*mode`, and overwrites `*mode` with the previous mode for\n the thread. To facilitate deterministic behavior across function or\n module boundaries, callers are encouraged to use this API in a push-pop\n fashion:\n\n **View CUDA Toolkit Documentation for a C++ code example**\n\n During stream capture (see :py:obj:`~.cudaStreamBeginCapture`), some\n actions, such as a call to :py:obj:`~.cudaMalloc`, may be unsafe. In\n the case of :py:obj:`~.cudaMalloc`, the operation is not enqueued\n asynchronously to a stream, and is not observed by stream capture.\n Therefore, if the sequence of operations captured via\n :py:obj:`~.cudaStreamBeginCapture` depended on the allocation being\n replayed whenever the graph is launched, the captured graph would be\n invalid.\n\n Therefore, stream capture places restrictions on API calls that can be\n made within or concurrently to a\n :py:obj:`~.cudaStreamBeginCapture`-:py:obj:`~.cudaStreamEndCapture`\n sequence. This behavior can be controlled via this API and flags to\n :py:obj:`~.cudaStreamBeginCapture`.\n\n A 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. Conc""urrent 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\n Parameters\n ----------\n mode : :py:obj:`~.cudaStreamCaptureMode`\n Pointer to mode value to swap with the current mode\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n mode : :py:obj:`~.cudaStreamCaptureMode`\n Pointer to mode value to swap with the current mode\n\n See Also\n --------\n :py:obj:`~.cudaStreamBeginCapture`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_113cudaThreadExchangeStreamCaptureMode = {"cudaThreadExchangeStreamCaptureMode", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_113cudaThreadExchangeStreamCaptureMode, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_112cudaThreadExchangeStreamCaptureMode}; static PyObject *__pyx_pw_4cuda_6cudart_113cudaThreadExchangeStreamCaptureMode(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_mode,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_mode)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15697, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaThreadExchangeStreamCaptureMode") < 0)) __PYX_ERR(0, 15697, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_mode = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaThreadExchangeStreamCaptureMode", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 15697, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 15698, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_112cudaThreadExchangeStreamCaptureMode(__pyx_self, __pyx_v_mode); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_112cudaThreadExchangeStreamCaptureMode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_mode) { enum cudaStreamCaptureMode __pyx_v_cmode; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; enum cudaStreamCaptureMode __pyx_t_2; cudaError_t __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; unsigned int __pyx_t_7; PyObject *__pyx_t_8 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__401) __Pyx_RefNannySetupContext("cudaThreadExchangeStreamCaptureMode", 1); __Pyx_TraceCall("cudaThreadExchangeStreamCaptureMode", __pyx_f[0], 15697, 0, __PYX_ERR(0, 15697, __pyx_L1_error)); /* "cuda/cudart.pyx":15761 * :py:obj:`~.cudaStreamBeginCapture` * """ * cdef ccudart.cudaStreamCaptureMode cmode = mode.value # <<<<<<<<<<<<<< * err = ccudart.cudaThreadExchangeStreamCaptureMode(&cmode) * return (cudaError_t(err), cudaStreamCaptureMode(cmode)) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_mode, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15761, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaStreamCaptureMode)__Pyx_PyInt_As_enum__cudaStreamCaptureMode(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15761, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cmode = __pyx_t_2; /* "cuda/cudart.pyx":15762 * """ * cdef ccudart.cudaStreamCaptureMode cmode = mode.value * err = ccudart.cudaThreadExchangeStreamCaptureMode(&cmode) # <<<<<<<<<<<<<< * return (cudaError_t(err), cudaStreamCaptureMode(cmode)) * */ __pyx_t_3 = __pyx_f_4cuda_7ccudart_cudaThreadExchangeStreamCaptureMode((&__pyx_v_cmode)); if (unlikely(__pyx_t_3 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 15762, __pyx_L1_error) __pyx_v_err = __pyx_t_3; /* "cuda/cudart.pyx":15763 * cdef ccudart.cudaStreamCaptureMode cmode = mode.value * err = ccudart.cudaThreadExchangeStreamCaptureMode(&cmode) * return (cudaError_t(err), cudaStreamCaptureMode(cmode)) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15763, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15763, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_7 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_5}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15763, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaStreamCaptureMode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15763, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaStreamCaptureMode(__pyx_v_cmode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 15763, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_7 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_7 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15763, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15763, __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)) __PYX_ERR(0, 15763, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_4)) __PYX_ERR(0, 15763, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":15697 * return (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_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaThreadExchangeStreamCaptureMode", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":15765 * return (cudaError_t(err), cudaStreamCaptureMode(cmode)) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamEndCapture(stream): * """ Ends capture on a stream, returning the captured graph. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_115cudaStreamEndCapture(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_114cudaStreamEndCapture, "cudaStreamEndCapture(stream)\n Ends capture on a stream, returning the captured graph.\n\n End capture on `stream`, returning the captured graph via `pGraph`.\n Capture must have been initiated on `stream` via a call to\n :py:obj:`~.cudaStreamBeginCapture`. If capture was invalidated, due to\n a violation of the rules of stream capture, then a NULL graph will be\n returned.\n\n If the `mode` argument to :py:obj:`~.cudaStreamBeginCapture` was not\n :py:obj:`~.cudaStreamCaptureModeRelaxed`, this call must be from the\n same thread as :py:obj:`~.cudaStreamBeginCapture`.\n\n Parameters\n ----------\n stream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n Stream to query\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorStreamCaptureWrongThread`\n pGraph : :py:obj:`~.cudaGraph_t`\n The captured graph\n\n See Also\n --------\n :py:obj:`~.cudaStreamCreate`, :py:obj:`~.cudaStreamBeginCapture`, :py:obj:`~.cudaStreamIsCapturing`, :py:obj:`~.cudaGraphDestroy`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_115cudaStreamEndCapture = {"cudaStreamEndCapture", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_115cudaStreamEndCapture, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_114cudaStreamEndCapture}; static PyObject *__pyx_pw_4cuda_6cudart_115cudaStreamEndCapture(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_stream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15765, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaStreamEndCapture") < 0)) __PYX_ERR(0, 15765, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_stream = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaStreamEndCapture", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 15765, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaStreamEndCapture", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_114cudaStreamEndCapture(__pyx_self, __pyx_v_stream); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_114cudaStreamEndCapture(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_stream) { cudaStream_t __pyx_v_cstream; PyObject *__pyx_v_pstream = NULL; struct __pyx_obj_4cuda_6cudart_cudaGraph_t *__pyx_v_pGraph = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__402) __Pyx_RefNannySetupContext("cudaStreamEndCapture", 1); __Pyx_TraceCall("cudaStreamEndCapture", __pyx_f[0], 15765, 0, __PYX_ERR(0, 15765, __pyx_L1_error)); /* "cuda/cudart.pyx":15796 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_stream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":15797 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":15796 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":15798 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":15799 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15799, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pstream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":15800 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15800, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":15798 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L3; } /* "cuda/cudart.pyx":15802 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * cdef cudaGraph_t pGraph = cudaGraph_t() */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15802, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15802, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pstream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":15803 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * cdef cudaGraph_t pGraph = cudaGraph_t() * err = ccudart.cudaStreamEndCapture(cstream, pGraph._ptr) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15803, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":15804 * pstream = int(cudaStream_t(stream)) * cstream = pstream * cdef cudaGraph_t pGraph = cudaGraph_t() # <<<<<<<<<<<<<< * err = ccudart.cudaStreamEndCapture(cstream, pGraph._ptr) * return (cudaError_t(err), pGraph) */ __pyx_t_5 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15804, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pGraph = ((struct __pyx_obj_4cuda_6cudart_cudaGraph_t *)__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":15805 * cstream = pstream * cdef cudaGraph_t pGraph = cudaGraph_t() * err = ccudart.cudaStreamEndCapture(cstream, pGraph._ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err), pGraph) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaStreamEndCapture(__pyx_v_cstream, ((cudaGraph_t *)__pyx_v_pGraph->__pyx_base._ptr)); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 15805, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":15806 * cdef cudaGraph_t pGraph = cudaGraph_t() * err = ccudart.cudaStreamEndCapture(cstream, pGraph._ptr) * return (cudaError_t(err), pGraph) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15806, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 15806, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15806, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15806, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 15806, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pGraph); __Pyx_GIVEREF((PyObject *)__pyx_v_pGraph); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_v_pGraph))) __PYX_ERR(0, 15806, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":15765 * return (cudaError_t(err), cudaStreamCaptureMode(cmode)) * * @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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":15808 * return (cudaError_t(err), pGraph) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamIsCapturing(stream): * """ Returns a stream's capture status. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_117cudaStreamIsCapturing(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_116cudaStreamIsCapturing, "cudaStreamIsCapturing(stream)\n Returns a stream's capture status.\n\n Return the capture status of `stream` via `pCaptureStatus`. After a\n successful 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\n Note that, if this is called on :py:obj:`~.cudaStreamLegacy` (the \"null\n stream\") while a blocking stream on the same device is capturing, it\n will return :py:obj:`~.cudaErrorStreamCaptureImplicit` and\n `*pCaptureStatus` is unspecified after the call. The blocking stream\n capture is not invalidated.\n\n When a blocking stream is capturing, the legacy stream is in an\n unusable state until the blocking stream capture is terminated. The\n legacy stream is not supported for stream capture, but attempted use\n would have an implicit dependency on the capturing stream(s).\n\n Parameters\n ----------\n stream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n Stream to query\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorStreamCaptureImplicit`\n pCaptureStatus : :py:obj:`~.cudaStreamCaptureStatus`\n Returns the stream's capture status\n\n See Also\n --------\n :py:obj:`~.cudaStreamCreate`, :py:obj:`~.cudaStreamBeginCapture`, :py:obj:`~.cudaStreamEndCapture`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_117cudaStreamIsCapturing = {"cudaStreamIsCapturing", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_117cudaStreamIsCapturing, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_116cudaStreamIsCapturing}; static PyObject *__pyx_pw_4cuda_6cudart_117cudaStreamIsCapturing(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_stream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15808, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaStreamIsCapturing") < 0)) __PYX_ERR(0, 15808, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_stream = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaStreamIsCapturing", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 15808, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaStreamIsCapturing", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_116cudaStreamIsCapturing(__pyx_self, __pyx_v_stream); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_116cudaStreamIsCapturing(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_stream) { cudaStream_t __pyx_v_cstream; PyObject *__pyx_v_pstream = NULL; enum cudaStreamCaptureStatus __pyx_v_pCaptureStatus; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; PyObject *__pyx_t_10 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__403) __Pyx_RefNannySetupContext("cudaStreamIsCapturing", 1); __Pyx_TraceCall("cudaStreamIsCapturing", __pyx_f[0], 15808, 0, __PYX_ERR(0, 15808, __pyx_L1_error)); /* "cuda/cudart.pyx":15853 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_stream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":15854 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":15853 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":15855 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":15856 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15856, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pstream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":15857 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15857, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":15855 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L3; } /* "cuda/cudart.pyx":15859 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * cdef ccudart.cudaStreamCaptureStatus pCaptureStatus */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15859, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15859, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pstream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":15860 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * cdef ccudart.cudaStreamCaptureStatus pCaptureStatus * err = ccudart.cudaStreamIsCapturing(cstream, &pCaptureStatus) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15860, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":15862 * cstream = pstream * cdef ccudart.cudaStreamCaptureStatus pCaptureStatus * err = ccudart.cudaStreamIsCapturing(cstream, &pCaptureStatus) # <<<<<<<<<<<<<< * return (cudaError_t(err), cudaStreamCaptureStatus(pCaptureStatus)) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaStreamIsCapturing(__pyx_v_cstream, (&__pyx_v_pCaptureStatus)); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 15862, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":15863 * cdef ccudart.cudaStreamCaptureStatus pCaptureStatus * err = ccudart.cudaStreamIsCapturing(cstream, &pCaptureStatus) * return (cudaError_t(err), cudaStreamCaptureStatus(pCaptureStatus)) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 15863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_cudaStreamCaptureStatus); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 15863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = __Pyx_PyInt_From_enum__cudaStreamCaptureStatus(__pyx_v_pCaptureStatus); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 15863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_10 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_10)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_10); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_t_8}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 15863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5)) __PYX_ERR(0, 15863, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_3)) __PYX_ERR(0, 15863, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_3 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":15808 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_10); __Pyx_AddTraceback("cuda.cudart.cudaStreamIsCapturing", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pstream); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":15865 * return (cudaError_t(err), cudaStreamCaptureStatus(pCaptureStatus)) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamGetCaptureInfo(stream): * """ Query a stream's capture state. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_119cudaStreamGetCaptureInfo(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_118cudaStreamGetCaptureInfo, "cudaStreamGetCaptureInfo(stream)\n Query a stream's capture state.\n\n Query stream state related to stream capture.\n\n If called on :py:obj:`~.cudaStreamLegacy` (the \"null stream\") while a\n stream not created with :py:obj:`~.cudaStreamNonBlocking` is capturing,\n returns :py:obj:`~.cudaErrorStreamCaptureImplicit`.\n\n Valid data (other than capture status) is returned only if both of the\n following are true:\n\n - the call returns cudaSuccess\n\n - the returned capture status is\n :py:obj:`~.cudaStreamCaptureStatusActive`\n\n Parameters\n ----------\n stream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n The stream to query\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorStreamCaptureImplicit`\n captureStatus_out : :py:obj:`~.cudaStreamCaptureStatus`\n Location to return the capture status of the stream; required\n id_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\n graph_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:`~.cudaErrorStreamCaptureUnjoined`.\n dependencies_out : List[:py:obj:`~.cudaGraphNode_t`]\n Optional location to store a pointer to an array of nodes. The next\n node to be cap""tured 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.\n numDependencies_out : int\n Optional location to store the size of the array returned in\n dependencies_out.\n\n See Also\n --------\n :py:obj:`~.cudaStreamGetCaptureInfo_v3`, :py:obj:`~.cudaStreamBeginCapture`, :py:obj:`~.cudaStreamIsCapturing`, :py:obj:`~.cudaStreamUpdateCaptureDependencies`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_119cudaStreamGetCaptureInfo = {"cudaStreamGetCaptureInfo", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_119cudaStreamGetCaptureInfo, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_118cudaStreamGetCaptureInfo}; static PyObject *__pyx_pw_4cuda_6cudart_119cudaStreamGetCaptureInfo(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_stream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15865, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaStreamGetCaptureInfo") < 0)) __PYX_ERR(0, 15865, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_stream = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaStreamGetCaptureInfo", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 15865, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaStreamGetCaptureInfo", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_118cudaStreamGetCaptureInfo(__pyx_self, __pyx_v_stream); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_118cudaStreamGetCaptureInfo(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_stream) { cudaStream_t __pyx_v_cstream; PyObject *__pyx_v_pstream = NULL; enum cudaStreamCaptureStatus __pyx_v_captureStatus_out; unsigned PY_LONG_LONG __pyx_v_id_out; struct __pyx_obj_4cuda_6cudart_cudaGraph_t *__pyx_v_graph_out = 0; cudaGraphNode_t const *__pyx_v_cdependencies_out; PyObject *__pyx_v_pydependencies_out = NULL; size_t __pyx_v_numDependencies_out; cudaError_t __pyx_v_err; size_t __pyx_10genexpr100__pyx_v_idx; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; 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_TraceFrameInit(__pyx_codeobj__404) __Pyx_RefNannySetupContext("cudaStreamGetCaptureInfo", 1); __Pyx_TraceCall("cudaStreamGetCaptureInfo", __pyx_f[0], 15865, 0, __PYX_ERR(0, 15865, __pyx_L1_error)); /* "cuda/cudart.pyx":15925 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_stream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":15926 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":15925 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":15927 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":15928 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15928, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pstream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":15929 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15929, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":15927 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L3; } /* "cuda/cudart.pyx":15931 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * cdef ccudart.cudaStreamCaptureStatus captureStatus_out */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15931, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15931, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pstream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":15932 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * cdef ccudart.cudaStreamCaptureStatus captureStatus_out * cdef unsigned long long id_out = 0 */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15932, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":15934 * cstream = pstream * cdef ccudart.cudaStreamCaptureStatus captureStatus_out * cdef unsigned long long id_out = 0 # <<<<<<<<<<<<<< * cdef cudaGraph_t graph_out = cudaGraph_t() * cdef const ccudart.cudaGraphNode_t* cdependencies_out = NULL */ __pyx_v_id_out = 0; /* "cuda/cudart.pyx":15935 * cdef ccudart.cudaStreamCaptureStatus captureStatus_out * cdef unsigned long long id_out = 0 * cdef cudaGraph_t graph_out = cudaGraph_t() # <<<<<<<<<<<<<< * cdef const ccudart.cudaGraphNode_t* cdependencies_out = NULL * pydependencies_out = [] */ __pyx_t_5 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15935, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_graph_out = ((struct __pyx_obj_4cuda_6cudart_cudaGraph_t *)__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":15936 * cdef unsigned long long id_out = 0 * cdef cudaGraph_t graph_out = cudaGraph_t() * cdef const ccudart.cudaGraphNode_t* cdependencies_out = NULL # <<<<<<<<<<<<<< * pydependencies_out = [] * cdef size_t numDependencies_out = 0 */ __pyx_v_cdependencies_out = NULL; /* "cuda/cudart.pyx":15937 * cdef cudaGraph_t graph_out = cudaGraph_t() * cdef const ccudart.cudaGraphNode_t* cdependencies_out = NULL * pydependencies_out = [] # <<<<<<<<<<<<<< * cdef size_t numDependencies_out = 0 * err = ccudart.cudaStreamGetCaptureInfo(cstream, &captureStatus_out, &id_out, graph_out._ptr, &cdependencies_out, &numDependencies_out) */ __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15937, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pydependencies_out = ((PyObject*)__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":15938 * cdef const ccudart.cudaGraphNode_t* cdependencies_out = NULL * pydependencies_out = [] * cdef size_t numDependencies_out = 0 # <<<<<<<<<<<<<< * err = ccudart.cudaStreamGetCaptureInfo(cstream, &captureStatus_out, &id_out, graph_out._ptr, &cdependencies_out, &numDependencies_out) * if cudaError_t(err) == cudaError_t(0): */ __pyx_v_numDependencies_out = 0; /* "cuda/cudart.pyx":15939 * pydependencies_out = [] * cdef size_t numDependencies_out = 0 * err = ccudart.cudaStreamGetCaptureInfo(cstream, &captureStatus_out, &id_out, graph_out._ptr, &cdependencies_out, &numDependencies_out) # <<<<<<<<<<<<<< * if cudaError_t(err) == cudaError_t(0): * pydependencies_out = [cudaGraphNode_t(init_value=cdependencies_out[idx]) for idx in range(numDependencies_out)] */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaStreamGetCaptureInfo(__pyx_v_cstream, (&__pyx_v_captureStatus_out), (&__pyx_v_id_out), ((cudaGraph_t *)__pyx_v_graph_out->__pyx_base._ptr), (&__pyx_v_cdependencies_out), (&__pyx_v_numDependencies_out)); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 15939, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":15940 * cdef size_t numDependencies_out = 0 * err = ccudart.cudaStreamGetCaptureInfo(cstream, &captureStatus_out, &id_out, graph_out._ptr, &cdependencies_out, &numDependencies_out) * if cudaError_t(err) == cudaError_t(0): # <<<<<<<<<<<<<< * pydependencies_out = [cudaGraphNode_t(init_value=cdependencies_out[idx]) for idx in range(numDependencies_out)] * return (cudaError_t(err), cudaStreamCaptureStatus(captureStatus_out), id_out, graph_out, pydependencies_out, numDependencies_out) */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15940, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 15940, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15940, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 15940, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_int_0}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15940, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __pyx_t_7 = PyObject_RichCompare(__pyx_t_5, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_7); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 15940, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 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, 15940, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (__pyx_t_1) { /* "cuda/cudart.pyx":15941 * err = ccudart.cudaStreamGetCaptureInfo(cstream, &captureStatus_out, &id_out, graph_out._ptr, &cdependencies_out, &numDependencies_out) * if cudaError_t(err) == cudaError_t(0): * pydependencies_out = [cudaGraphNode_t(init_value=cdependencies_out[idx]) for idx in range(numDependencies_out)] # <<<<<<<<<<<<<< * return (cudaError_t(err), cudaStreamCaptureStatus(captureStatus_out), id_out, graph_out, pydependencies_out, numDependencies_out) * */ { /* enter inner scope */ __pyx_t_7 = PyList_New(0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 15941, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_10 = __pyx_v_numDependencies_out; __pyx_t_11 = __pyx_t_10; for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_10genexpr100__pyx_v_idx = __pyx_t_12; __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15941, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_cdependencies_out[__pyx_10genexpr100__pyx_v_idx]))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15941, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_init_value, __pyx_t_5) < 0) __PYX_ERR(0, 15941, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_empty_tuple, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15941, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(__Pyx_ListComp_Append(__pyx_t_7, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 15941, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } /* exit inner scope */ __Pyx_DECREF_SET(__pyx_v_pydependencies_out, ((PyObject*)__pyx_t_7)); __pyx_t_7 = 0; /* "cuda/cudart.pyx":15940 * cdef size_t numDependencies_out = 0 * err = ccudart.cudaStreamGetCaptureInfo(cstream, &captureStatus_out, &id_out, graph_out._ptr, &cdependencies_out, &numDependencies_out) * if cudaError_t(err) == cudaError_t(0): # <<<<<<<<<<<<<< * pydependencies_out = [cudaGraphNode_t(init_value=cdependencies_out[idx]) for idx in range(numDependencies_out)] * return (cudaError_t(err), cudaStreamCaptureStatus(captureStatus_out), id_out, graph_out, pydependencies_out, numDependencies_out) */ } /* "cuda/cudart.pyx":15942 * if cudaError_t(err) == cudaError_t(0): * pydependencies_out = [cudaGraphNode_t(init_value=cdependencies_out[idx]) for idx in range(numDependencies_out)] * return (cudaError_t(err), cudaStreamCaptureStatus(captureStatus_out), id_out, graph_out, pydependencies_out, numDependencies_out) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15942, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15942, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_3}; __pyx_t_7 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __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, 15942, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaStreamCaptureStatus); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15942, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = __Pyx_PyInt_From_enum__cudaStreamCaptureStatus(__pyx_v_captureStatus_out); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 15942, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_13 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_13)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_13); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_t_8}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15942, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(__pyx_v_id_out); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15942, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = __Pyx_PyInt_FromSize_t(__pyx_v_numDependencies_out); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 15942, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_13 = PyTuple_New(6); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 15942, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_13); __Pyx_GIVEREF(__pyx_t_7); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_13, 0, __pyx_t_7)) __PYX_ERR(0, 15942, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_13, 1, __pyx_t_5)) __PYX_ERR(0, 15942, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_13, 2, __pyx_t_3)) __PYX_ERR(0, 15942, __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))) __PYX_ERR(0, 15942, __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)) __PYX_ERR(0, 15942, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_8); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_13, 5, __pyx_t_8)) __PYX_ERR(0, 15942, __pyx_L1_error); __pyx_t_7 = 0; __pyx_t_5 = 0; __pyx_t_3 = 0; __pyx_t_8 = 0; __pyx_r = __pyx_t_13; __pyx_t_13 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":15865 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_13); __Pyx_AddTraceback("cuda.cudart.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_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":15944 * return (cudaError_t(err), cudaStreamCaptureStatus(captureStatus_out), id_out, graph_out, pydependencies_out, numDependencies_out) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamGetCaptureInfo_v3(stream): * """ Query a stream's capture state (12.3+) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_121cudaStreamGetCaptureInfo_v3(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_120cudaStreamGetCaptureInfo_v3, "cudaStreamGetCaptureInfo_v3(stream)\n Query a stream's capture state (12.3+)\n\n Query stream state related to stream capture.\n\n If called on :py:obj:`~.cudaStreamLegacy` (the \"null stream\") while a\n stream not created with :py:obj:`~.cudaStreamNonBlocking` is capturing,\n returns :py:obj:`~.cudaErrorStreamCaptureImplicit`.\n\n Valid data (other than capture status) is returned only if both of the\n following are true:\n\n - the call returns cudaSuccess\n\n - the returned capture status is\n :py:obj:`~.cudaStreamCaptureStatusActive`\n\n If `edgeData_out` is non-NULL then `dependencies_out` must be as well.\n If `dependencies_out` is non-NULL and `edgeData_out` is NULL, but there\n is non-zero edge data for one or more of the current stream\n dependencies, the call will return :py:obj:`~.cudaErrorLossyQuery`.\n\n Parameters\n ----------\n stream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n The stream to query\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorStreamCaptureImplicit`, :py:obj:`~.cudaErrorLossyQuery`\n captureStatus_out : :py:obj:`~.cudaStreamCaptureStatus`\n Location to return the capture status of the stream; required\n id_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\n graph_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 unreach""able from the original stream at\n :py:obj:`~.cudaStreamEndCapture` due to direct actions on the graph\n do not trigger :py:obj:`~.cudaErrorStreamCaptureUnjoined`.\n dependencies_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.\n edgeData_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.\n numDependencies_out : int\n Optional location to store the size of the array returned in\n dependencies_out.\n\n See Also\n --------\n :py:obj:`~.cudaStreamBeginCapture`, :py:obj:`~.cudaStreamIsCapturing`, :py:obj:`~.cudaStreamUpdateCaptureDependencies`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_121cudaStreamGetCaptureInfo_v3 = {"cudaStreamGetCaptureInfo_v3", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_121cudaStreamGetCaptureInfo_v3, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_120cudaStreamGetCaptureInfo_v3}; static PyObject *__pyx_pw_4cuda_6cudart_121cudaStreamGetCaptureInfo_v3(PyObject *__pyx_self, #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_v3 (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_stream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15944, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaStreamGetCaptureInfo_v3") < 0)) __PYX_ERR(0, 15944, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_stream = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaStreamGetCaptureInfo_v3", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 15944, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaStreamGetCaptureInfo_v3", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_120cudaStreamGetCaptureInfo_v3(__pyx_self, __pyx_v_stream); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_120cudaStreamGetCaptureInfo_v3(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_stream) { cudaStream_t __pyx_v_cstream; PyObject *__pyx_v_pstream = NULL; enum cudaStreamCaptureStatus __pyx_v_captureStatus_out; unsigned PY_LONG_LONG __pyx_v_id_out; struct __pyx_obj_4cuda_6cudart_cudaGraph_t *__pyx_v_graph_out = 0; cudaGraphNode_t const *__pyx_v_cdependencies_out; PyObject *__pyx_v_pydependencies_out = NULL; cudaGraphEdgeData const *__pyx_v_cedgeData_out; PyObject *__pyx_v_pyedgeData_out = NULL; size_t __pyx_v_numDependencies_out; cudaError_t __pyx_v_err; size_t __pyx_10genexpr101__pyx_v_idx; size_t __pyx_10genexpr102__pyx_v_idx; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; 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_TraceFrameInit(__pyx_codeobj__405) __Pyx_RefNannySetupContext("cudaStreamGetCaptureInfo_v3", 1); __Pyx_TraceCall("cudaStreamGetCaptureInfo_v3", __pyx_f[0], 15944, 0, __PYX_ERR(0, 15944, __pyx_L1_error)); /* "cuda/cudart.pyx":16016 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_stream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":16017 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":16016 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":16018 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":16019 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16019, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pstream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":16020 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 16020, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":16018 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L3; } /* "cuda/cudart.pyx":16022 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * cdef ccudart.cudaStreamCaptureStatus captureStatus_out */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16022, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16022, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pstream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":16023 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * cdef ccudart.cudaStreamCaptureStatus captureStatus_out * cdef unsigned long long id_out = 0 */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 16023, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":16025 * cstream = pstream * cdef ccudart.cudaStreamCaptureStatus captureStatus_out * cdef unsigned long long id_out = 0 # <<<<<<<<<<<<<< * cdef cudaGraph_t graph_out = cudaGraph_t() * cdef const ccudart.cudaGraphNode_t* cdependencies_out = NULL */ __pyx_v_id_out = 0; /* "cuda/cudart.pyx":16026 * cdef ccudart.cudaStreamCaptureStatus captureStatus_out * cdef unsigned long long id_out = 0 * cdef cudaGraph_t graph_out = cudaGraph_t() # <<<<<<<<<<<<<< * cdef const ccudart.cudaGraphNode_t* cdependencies_out = NULL * pydependencies_out = [] */ __pyx_t_5 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16026, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_graph_out = ((struct __pyx_obj_4cuda_6cudart_cudaGraph_t *)__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":16027 * cdef unsigned long long id_out = 0 * cdef cudaGraph_t graph_out = cudaGraph_t() * cdef const ccudart.cudaGraphNode_t* cdependencies_out = NULL # <<<<<<<<<<<<<< * pydependencies_out = [] * cdef const ccudart.cudaGraphEdgeData* cedgeData_out = NULL */ __pyx_v_cdependencies_out = NULL; /* "cuda/cudart.pyx":16028 * cdef cudaGraph_t graph_out = cudaGraph_t() * cdef const ccudart.cudaGraphNode_t* cdependencies_out = NULL * pydependencies_out = [] # <<<<<<<<<<<<<< * cdef const ccudart.cudaGraphEdgeData* cedgeData_out = NULL * pyedgeData_out = [] */ __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16028, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pydependencies_out = ((PyObject*)__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":16029 * cdef const ccudart.cudaGraphNode_t* cdependencies_out = NULL * pydependencies_out = [] * cdef const ccudart.cudaGraphEdgeData* cedgeData_out = NULL # <<<<<<<<<<<<<< * pyedgeData_out = [] * cdef size_t numDependencies_out = 0 */ __pyx_v_cedgeData_out = NULL; /* "cuda/cudart.pyx":16030 * pydependencies_out = [] * cdef const ccudart.cudaGraphEdgeData* cedgeData_out = NULL * pyedgeData_out = [] # <<<<<<<<<<<<<< * cdef size_t numDependencies_out = 0 * err = ccudart.cudaStreamGetCaptureInfo_v3(cstream, &captureStatus_out, &id_out, graph_out._ptr, &cdependencies_out, &cedgeData_out, &numDependencies_out) */ __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16030, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pyedgeData_out = ((PyObject*)__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":16031 * cdef const ccudart.cudaGraphEdgeData* cedgeData_out = NULL * pyedgeData_out = [] * cdef size_t numDependencies_out = 0 # <<<<<<<<<<<<<< * err = ccudart.cudaStreamGetCaptureInfo_v3(cstream, &captureStatus_out, &id_out, graph_out._ptr, &cdependencies_out, &cedgeData_out, &numDependencies_out) * if cudaError_t(err) == cudaError_t(0): */ __pyx_v_numDependencies_out = 0; /* "cuda/cudart.pyx":16032 * pyedgeData_out = [] * cdef size_t numDependencies_out = 0 * err = ccudart.cudaStreamGetCaptureInfo_v3(cstream, &captureStatus_out, &id_out, graph_out._ptr, &cdependencies_out, &cedgeData_out, &numDependencies_out) # <<<<<<<<<<<<<< * if cudaError_t(err) == cudaError_t(0): * pydependencies_out = [cudaGraphNode_t(init_value=cdependencies_out[idx]) for idx in range(numDependencies_out)] */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaStreamGetCaptureInfo_v3(__pyx_v_cstream, (&__pyx_v_captureStatus_out), (&__pyx_v_id_out), ((cudaGraph_t *)__pyx_v_graph_out->__pyx_base._ptr), (&__pyx_v_cdependencies_out), (&__pyx_v_cedgeData_out), (&__pyx_v_numDependencies_out)); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 16032, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":16033 * cdef size_t numDependencies_out = 0 * err = ccudart.cudaStreamGetCaptureInfo_v3(cstream, &captureStatus_out, &id_out, graph_out._ptr, &cdependencies_out, &cedgeData_out, &numDependencies_out) * if cudaError_t(err) == cudaError_t(0): # <<<<<<<<<<<<<< * pydependencies_out = [cudaGraphNode_t(init_value=cdependencies_out[idx]) for idx in range(numDependencies_out)] * if cudaError_t(err) == cudaError_t(0): */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16033, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16033, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16033, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16033, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_int_0}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16033, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __pyx_t_7 = PyObject_RichCompare(__pyx_t_5, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_7); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16033, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 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, 16033, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (__pyx_t_1) { /* "cuda/cudart.pyx":16034 * err = ccudart.cudaStreamGetCaptureInfo_v3(cstream, &captureStatus_out, &id_out, graph_out._ptr, &cdependencies_out, &cedgeData_out, &numDependencies_out) * if cudaError_t(err) == cudaError_t(0): * pydependencies_out = [cudaGraphNode_t(init_value=cdependencies_out[idx]) for idx in range(numDependencies_out)] # <<<<<<<<<<<<<< * if cudaError_t(err) == cudaError_t(0): * pyedgeData_out = [cudaGraphEdgeData(_ptr=&cedgeData_out[idx]) for idx in range(numDependencies_out)] */ { /* enter inner scope */ __pyx_t_7 = PyList_New(0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16034, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_10 = __pyx_v_numDependencies_out; __pyx_t_11 = __pyx_t_10; for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_10genexpr101__pyx_v_idx = __pyx_t_12; __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16034, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_cdependencies_out[__pyx_10genexpr101__pyx_v_idx]))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16034, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_init_value, __pyx_t_5) < 0) __PYX_ERR(0, 16034, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_empty_tuple, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16034, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(__Pyx_ListComp_Append(__pyx_t_7, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 16034, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } /* exit inner scope */ __Pyx_DECREF_SET(__pyx_v_pydependencies_out, ((PyObject*)__pyx_t_7)); __pyx_t_7 = 0; /* "cuda/cudart.pyx":16033 * cdef size_t numDependencies_out = 0 * err = ccudart.cudaStreamGetCaptureInfo_v3(cstream, &captureStatus_out, &id_out, graph_out._ptr, &cdependencies_out, &cedgeData_out, &numDependencies_out) * if cudaError_t(err) == cudaError_t(0): # <<<<<<<<<<<<<< * pydependencies_out = [cudaGraphNode_t(init_value=cdependencies_out[idx]) for idx in range(numDependencies_out)] * if cudaError_t(err) == cudaError_t(0): */ } /* "cuda/cudart.pyx":16035 * if cudaError_t(err) == cudaError_t(0): * pydependencies_out = [cudaGraphNode_t(init_value=cdependencies_out[idx]) for idx in range(numDependencies_out)] * if cudaError_t(err) == cudaError_t(0): # <<<<<<<<<<<<<< * pyedgeData_out = [cudaGraphEdgeData(_ptr=&cedgeData_out[idx]) for idx in range(numDependencies_out)] * return (cudaError_t(err), cudaStreamCaptureStatus(captureStatus_out), id_out, graph_out, pydependencies_out, pyedgeData_out, numDependencies_out) */ __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16035, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16035, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_3}; __pyx_t_7 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __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, 16035, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16035, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_int_0}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16035, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyObject_RichCompare(__pyx_t_7, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16035, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 16035, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_1) { /* "cuda/cudart.pyx":16036 * pydependencies_out = [cudaGraphNode_t(init_value=cdependencies_out[idx]) for idx in range(numDependencies_out)] * if cudaError_t(err) == cudaError_t(0): * pyedgeData_out = [cudaGraphEdgeData(_ptr=&cedgeData_out[idx]) for idx in range(numDependencies_out)] # <<<<<<<<<<<<<< * return (cudaError_t(err), cudaStreamCaptureStatus(captureStatus_out), id_out, graph_out, pydependencies_out, pyedgeData_out, numDependencies_out) * */ { /* enter inner scope */ __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16036, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_10 = __pyx_v_numDependencies_out; __pyx_t_11 = __pyx_t_10; for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_10genexpr102__pyx_v_idx = __pyx_t_12; __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16036, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_cedgeData_out[__pyx_10genexpr102__pyx_v_idx])))); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16036, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_ptr, __pyx_t_7) < 0) __PYX_ERR(0, 16036, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphEdgeData), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16036, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_7))) __PYX_ERR(0, 16036, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } /* exit inner scope */ __Pyx_DECREF_SET(__pyx_v_pyedgeData_out, ((PyObject*)__pyx_t_3)); __pyx_t_3 = 0; /* "cuda/cudart.pyx":16035 * if cudaError_t(err) == cudaError_t(0): * pydependencies_out = [cudaGraphNode_t(init_value=cdependencies_out[idx]) for idx in range(numDependencies_out)] * if cudaError_t(err) == cudaError_t(0): # <<<<<<<<<<<<<< * pyedgeData_out = [cudaGraphEdgeData(_ptr=&cedgeData_out[idx]) for idx in range(numDependencies_out)] * return (cudaError_t(err), cudaStreamCaptureStatus(captureStatus_out), id_out, graph_out, pydependencies_out, pyedgeData_out, numDependencies_out) */ } /* "cuda/cudart.pyx":16037 * if cudaError_t(err) == cudaError_t(0): * pyedgeData_out = [cudaGraphEdgeData(_ptr=&cedgeData_out[idx]) for idx in range(numDependencies_out)] * return (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_7, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16037, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16037, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_5}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16037, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaStreamCaptureStatus); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16037, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_8 = __Pyx_PyInt_From_enum__cudaStreamCaptureStatus(__pyx_v_captureStatus_out); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 16037, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_13 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_13)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_13); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_t_8}; __pyx_t_7 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16037, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(__pyx_v_id_out); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16037, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_8 = __Pyx_PyInt_FromSize_t(__pyx_v_numDependencies_out); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 16037, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_13 = PyTuple_New(7); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 16037, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_13); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_13, 0, __pyx_t_3)) __PYX_ERR(0, 16037, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_7); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_13, 1, __pyx_t_7)) __PYX_ERR(0, 16037, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_13, 2, __pyx_t_5)) __PYX_ERR(0, 16037, __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))) __PYX_ERR(0, 16037, __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)) __PYX_ERR(0, 16037, __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)) __PYX_ERR(0, 16037, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_8); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_13, 6, __pyx_t_8)) __PYX_ERR(0, 16037, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_7 = 0; __pyx_t_5 = 0; __pyx_t_8 = 0; __pyx_r = __pyx_t_13; __pyx_t_13 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":15944 * return (cudaError_t(err), cudaStreamCaptureStatus(captureStatus_out), id_out, graph_out, pydependencies_out, numDependencies_out) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamGetCaptureInfo_v3(stream): * """ Query a stream's capture state (12.3+) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_13); __Pyx_AddTraceback("cuda.cudart.cudaStreamGetCaptureInfo_v3", __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":16039 * return (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]], size_t numDependencies, unsigned int flags): * """ Update the set of dependencies in a capturing stream (11.3+) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_123cudaStreamUpdateCaptureDependencies(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_122cudaStreamUpdateCaptureDependencies, "cudaStreamUpdateCaptureDependencies(stream, dependencies: Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], size_t numDependencies, unsigned int flags)\n Update the set of dependencies in a capturing stream (11.3+)\n\n Modifies the dependency set of a capturing stream. The dependency set\n is the set of nodes that the next captured node in the stream will\n depend on.\n\n Valid flags are :py:obj:`~.cudaStreamAddCaptureDependencies` and\n :py:obj:`~.cudaStreamSetCaptureDependencies`. These control whether the\n set passed to the API is added to the existing set or replaces it. A\n flags value of 0 defaults to\n :py:obj:`~.cudaStreamAddCaptureDependencies`.\n\n Nodes that are removed from the dependency set via this API do not\n result in :py:obj:`~.cudaErrorStreamCaptureUnjoined` if they are\n unreachable from the stream at :py:obj:`~.cudaStreamEndCapture`.\n\n Returns :py:obj:`~.cudaErrorIllegalState` if the stream is not\n capturing.\n\n This API is new in CUDA 11.3. Developers requiring compatibility across\n minor versions of the CUDA driver to 11.0 should not use this API or\n provide a fallback.\n\n Parameters\n ----------\n stream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n The stream to update\n dependencies : List[:py:obj:`~.cudaGraphNode_t`]\n The set of dependencies to add\n numDependencies : size_t\n The size of the dependencies array\n flags : unsigned int\n See above\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorIllegalState`\n\n See Also\n --------\n :py:obj:`~.cudaStreamBeginCapture`, :py:obj:`~.cudaStreamGetCaptureInfo`,\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_123cudaStreamUpdateCaptureDependencies = {"cudaStreamUpdateCaptureDependencies", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_123cudaStreamUpdateCaptureDependencies, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_122cudaStreamUpdateCaptureDependencies}; static PyObject *__pyx_pw_4cuda_6cudart_123cudaStreamUpdateCaptureDependencies(PyObject *__pyx_self, #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; 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[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("cudaStreamUpdateCaptureDependencies (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_stream,&__pyx_n_s_dependencies,&__pyx_n_s_numDependencies,&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 16039, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 16039, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaStreamUpdateCaptureDependencies", 1, 4, 4, 1); __PYX_ERR(0, 16039, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_numDependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 16039, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaStreamUpdateCaptureDependencies", 1, 4, 4, 2); __PYX_ERR(0, 16039, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 16039, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaStreamUpdateCaptureDependencies", 1, 4, 4, 3); __PYX_ERR(0, 16039, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaStreamUpdateCaptureDependencies") < 0)) __PYX_ERR(0, 16039, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); } __pyx_v_stream = values[0]; __pyx_v_dependencies = values[1]; __pyx_v_numDependencies = __Pyx_PyInt_As_size_t(values[2]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 16040, __pyx_L3_error) __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[3]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 16040, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaStreamUpdateCaptureDependencies", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 16039, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaStreamUpdateCaptureDependencies", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_122cudaStreamUpdateCaptureDependencies(__pyx_self, __pyx_v_stream, __pyx_v_dependencies, __pyx_v_numDependencies, __pyx_v_flags); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_35cudaStreamUpdateCaptureDependencies_2generator2(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":16085 * """ * dependencies = [] if dependencies is None else dependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in dependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaStream_t cstream */ static PyObject *__pyx_pf_4cuda_6cudart_35cudaStreamUpdateCaptureDependencies_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct_2_genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_2_genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_2_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_2_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 16085, __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_6cudart_35cudaStreamUpdateCaptureDependencies_2generator2, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaStreamUpdateCaptureDependenc, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 16085, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.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_6cudart_35cudaStreamUpdateCaptureDependencies_2generator2(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_2_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_2_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 16085, 0, __PYX_ERR(0, 16085, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 16085, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 16085, __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, 16085, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16085, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 16085, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 16085, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16085, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 16085, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 16085, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16085, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 16085, __pyx_L1_error) } 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_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":16039 * return (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]], size_t numDependencies, unsigned int flags): * """ Update the set of dependencies in a capturing stream (11.3+) */ static PyObject *__pyx_pf_4cuda_6cudart_122cudaStreamUpdateCaptureDependencies(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_stream, PyObject *__pyx_v_dependencies, size_t __pyx_v_numDependencies, unsigned int __pyx_v_flags) { cudaStream_t __pyx_v_cstream; PyObject *__pyx_v_pstream = NULL; cudaGraphNode_t *__pyx_v_cdependencies; Py_ssize_t __pyx_v_idx; cudaError_t __pyx_v_err; PyObject *__pyx_gb_4cuda_6cudart_35cudaStreamUpdateCaptureDependencies_2generator2 = 0; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; Py_ssize_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; Py_ssize_t __pyx_t_8; Py_ssize_t __pyx_t_9; cudaGraphNode_t *__pyx_t_10; cudaError_t __pyx_t_11; PyObject *__pyx_t_12 = NULL; unsigned int __pyx_t_13; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__406) __Pyx_RefNannySetupContext("cudaStreamUpdateCaptureDependencies", 0); __Pyx_TraceCall("cudaStreamUpdateCaptureDependencies", __pyx_f[0], 16039, 0, __PYX_ERR(0, 16039, __pyx_L1_error)); __Pyx_INCREF(__pyx_v_dependencies); /* "cuda/cudart.pyx":16084 * :py:obj:`~.cudaStreamBeginCapture`, :py:obj:`~.cudaStreamGetCaptureInfo`, * """ * dependencies = [] if dependencies is None else dependencies # <<<<<<<<<<<<<< * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in dependencies): * raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") */ __pyx_t_2 = (__pyx_v_dependencies == Py_None); if (__pyx_t_2) { __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16084, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __pyx_t_3; __pyx_t_3 = 0; } else { __Pyx_INCREF(__pyx_v_dependencies); __pyx_t_1 = __pyx_v_dependencies; } __Pyx_DECREF_SET(__pyx_v_dependencies, __pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":16085 * """ * dependencies = [] if dependencies is None else dependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in dependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaStream_t cstream */ __pyx_t_1 = __pyx_pf_4cuda_6cudart_35cudaStreamUpdateCaptureDependencies_genexpr(NULL, __pyx_v_dependencies); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16085, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16085, __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, 16085, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_4 = (!__pyx_t_2); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":16086 * dependencies = [] if dependencies is None else dependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in dependencies): * raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") # <<<<<<<<<<<<<< * cdef ccudart.cudaStream_t cstream * if stream is None: */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__399, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16086, __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, 16086, __pyx_L1_error) /* "cuda/cudart.pyx":16085 * """ * dependencies = [] if dependencies is None else dependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in dependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaStream_t cstream */ } /* "cuda/cudart.pyx":16088 * raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_4 = (__pyx_v_stream == Py_None); if (__pyx_t_4) { /* "cuda/cudart.pyx":16089 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":16088 * raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L4; } /* "cuda/cudart.pyx":16090 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_cudaStream_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_stream, __pyx_ptype_4cuda_4cuda_CUstream); __pyx_t_4 = __pyx_t_2; __pyx_L5_bool_binop_done:; if (__pyx_t_4) { /* "cuda/cudart.pyx":16091 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16091, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pstream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":16092 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 16092, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); /* "cuda/cudart.pyx":16090 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L4; } /* "cuda/cudart.pyx":16094 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * cdef ccudart.cudaGraphNode_t* cdependencies = NULL */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16094, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16094, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pstream = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":16095 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t* cdependencies = NULL * if len(dependencies) > 0: */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 16095, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); } __pyx_L4:; /* "cuda/cudart.pyx":16096 * pstream = int(cudaStream_t(stream)) * cstream = pstream * cdef ccudart.cudaGraphNode_t* cdependencies = NULL # <<<<<<<<<<<<<< * if len(dependencies) > 0: * cdependencies = calloc(len(dependencies), sizeof(ccudart.cudaGraphNode_t)) */ __pyx_v_cdependencies = NULL; /* "cuda/cudart.pyx":16097 * cstream = pstream * cdef ccudart.cudaGraphNode_t* cdependencies = NULL * if len(dependencies) > 0: # <<<<<<<<<<<<<< * cdependencies = calloc(len(dependencies), sizeof(ccudart.cudaGraphNode_t)) * if cdependencies is NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_dependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 16097, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 > 0); if (__pyx_t_4) { /* "cuda/cudart.pyx":16098 * cdef ccudart.cudaGraphNode_t* cdependencies = NULL * if len(dependencies) > 0: * cdependencies = calloc(len(dependencies), sizeof(ccudart.cudaGraphNode_t)) # <<<<<<<<<<<<<< * if cdependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) */ __pyx_t_6 = PyObject_Length(__pyx_v_dependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 16098, __pyx_L1_error) __pyx_v_cdependencies = ((cudaGraphNode_t *)calloc(__pyx_t_6, (sizeof(cudaGraphNode_t)))); /* "cuda/cudart.pyx":16099 * if len(dependencies) > 0: * cdependencies = calloc(len(dependencies), sizeof(ccudart.cudaGraphNode_t)) * if cdependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ __pyx_t_4 = (__pyx_v_cdependencies == NULL); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":16100 * cdependencies = calloc(len(dependencies), sizeof(ccudart.cudaGraphNode_t)) * if cdependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) # <<<<<<<<<<<<<< * else: * for idx in range(len(dependencies)): */ __pyx_t_6 = PyObject_Length(__pyx_v_dependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 16100, __pyx_L1_error) __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_n_u_x_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16100, __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, 16100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16100, __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 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_7, 0, 0, 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __PYX_ERR(0, 16100, __pyx_L1_error) /* "cuda/cudart.pyx":16099 * if len(dependencies) > 0: * cdependencies = calloc(len(dependencies), sizeof(ccudart.cudaGraphNode_t)) * if cdependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ } /* "cuda/cudart.pyx":16102 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: * for idx in range(len(dependencies)): # <<<<<<<<<<<<<< * cdependencies[idx] = (dependencies[idx])._ptr[0] * if numDependencies > len(dependencies): raise RuntimeError("List is too small: " + str(len(dependencies)) + " < " + str(numDependencies)) */ /*else*/ { __pyx_t_6 = PyObject_Length(__pyx_v_dependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 16102, __pyx_L1_error) __pyx_t_8 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_idx = __pyx_t_9; /* "cuda/cudart.pyx":16103 * else: * for idx in range(len(dependencies)): * cdependencies[idx] = (dependencies[idx])._ptr[0] # <<<<<<<<<<<<<< * if numDependencies > len(dependencies): raise RuntimeError("List is too small: " + str(len(dependencies)) + " < " + str(numDependencies)) * err = ccudart.cudaStreamUpdateCaptureDependencies(cstream, (dependencies[0])._ptr if len(dependencies) == 1 else cdependencies, numDependencies, flags) */ __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_dependencies, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16103, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); (__pyx_v_cdependencies[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_7)->__pyx_base._ptr[0])); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } /* "cuda/cudart.pyx":16097 * cstream = pstream * cdef ccudart.cudaGraphNode_t* cdependencies = NULL * if len(dependencies) > 0: # <<<<<<<<<<<<<< * cdependencies = calloc(len(dependencies), sizeof(ccudart.cudaGraphNode_t)) * if cdependencies is NULL: */ } /* "cuda/cudart.pyx":16104 * for idx in range(len(dependencies)): * cdependencies[idx] = (dependencies[idx])._ptr[0] * if numDependencies > len(dependencies): raise RuntimeError("List is too small: " + str(len(dependencies)) + " < " + str(numDependencies)) # <<<<<<<<<<<<<< * err = ccudart.cudaStreamUpdateCaptureDependencies(cstream, (dependencies[0])._ptr if len(dependencies) == 1 else cdependencies, numDependencies, flags) * if cdependencies is not NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_dependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 16104, __pyx_L1_error) __pyx_t_4 = (__pyx_v_numDependencies > ((size_t)__pyx_t_6)); if (unlikely(__pyx_t_4)) { __pyx_t_6 = PyObject_Length(__pyx_v_dependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 16104, __pyx_L1_error) __pyx_t_7 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_List_is_too_small, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_7, __pyx_kp_u__400); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyInt_FromSize_t(__pyx_v_numDependencies); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 16104, __pyx_L1_error) } /* "cuda/cudart.pyx":16105 * cdependencies[idx] = (dependencies[idx])._ptr[0] * if numDependencies > len(dependencies): raise RuntimeError("List is too small: " + str(len(dependencies)) + " < " + str(numDependencies)) * err = ccudart.cudaStreamUpdateCaptureDependencies(cstream, (dependencies[0])._ptr if len(dependencies) == 1 else cdependencies, numDependencies, flags) # <<<<<<<<<<<<<< * if cdependencies is not NULL: * free(cdependencies) */ __pyx_t_6 = PyObject_Length(__pyx_v_dependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 16105, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 == 1); if (__pyx_t_4) { __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_dependencies, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_10 = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_3)->__pyx_base._ptr); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_10 = __pyx_v_cdependencies; } __pyx_t_11 = __pyx_f_4cuda_7ccudart_cudaStreamUpdateCaptureDependencies(__pyx_v_cstream, __pyx_t_10, __pyx_v_numDependencies, __pyx_v_flags); if (unlikely(__pyx_t_11 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 16105, __pyx_L1_error) __pyx_v_err = __pyx_t_11; /* "cuda/cudart.pyx":16106 * if numDependencies > len(dependencies): raise RuntimeError("List is too small: " + str(len(dependencies)) + " < " + str(numDependencies)) * err = ccudart.cudaStreamUpdateCaptureDependencies(cstream, (dependencies[0])._ptr if len(dependencies) == 1 else cdependencies, numDependencies, flags) * if cdependencies is not NULL: # <<<<<<<<<<<<<< * free(cdependencies) * return (cudaError_t(err),) */ __pyx_t_4 = (__pyx_v_cdependencies != NULL); if (__pyx_t_4) { /* "cuda/cudart.pyx":16107 * err = ccudart.cudaStreamUpdateCaptureDependencies(cstream, (dependencies[0])._ptr if len(dependencies) == 1 else cdependencies, numDependencies, flags) * if cdependencies is not NULL: * free(cdependencies) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ free(__pyx_v_cdependencies); /* "cuda/cudart.pyx":16106 * if numDependencies > len(dependencies): raise RuntimeError("List is too small: " + str(len(dependencies)) + " < " + str(numDependencies)) * err = ccudart.cudaStreamUpdateCaptureDependencies(cstream, (dependencies[0])._ptr if len(dependencies) == 1 else cdependencies, numDependencies, flags) * if cdependencies is not NULL: # <<<<<<<<<<<<<< * free(cdependencies) * return (cudaError_t(err),) */ } /* "cuda/cudart.pyx":16108 * if cdependencies is not NULL: * free(cdependencies) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16108, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16108, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_12 = NULL; __pyx_t_13 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_12)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_12); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_13 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_12, __pyx_t_1}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_13, 1+__pyx_t_13); __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16108, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16108, __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)) __PYX_ERR(0, 16108, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":16039 * return (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]], size_t numDependencies, unsigned int flags): * """ Update the set of dependencies in a capturing stream (11.3+) */ /* 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_12); __Pyx_AddTraceback("cuda.cudart.cudaStreamUpdateCaptureDependencies", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pstream); __Pyx_XDECREF(__pyx_gb_4cuda_6cudart_35cudaStreamUpdateCaptureDependencies_2generator2); __Pyx_XDECREF(__pyx_v_dependencies); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":16110 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamUpdateCaptureDependencies_v2(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 (12.3+) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_125cudaStreamUpdateCaptureDependencies_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_6cudart_124cudaStreamUpdateCaptureDependencies_v2, "cudaStreamUpdateCaptureDependencies_v2(stream, dependencies: Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], dependencyData: Optional[Tuple[cudaGraphEdgeData] | List[cudaGraphEdgeData]], size_t numDependencies, unsigned int flags)\n Update the set of dependencies in a capturing stream (12.3+)\n\n Modifies the dependency set of a capturing stream. The dependency set\n is the set of nodes that the next captured node in the stream will\n depend on.\n\n Valid flags are :py:obj:`~.cudaStreamAddCaptureDependencies` and\n :py:obj:`~.cudaStreamSetCaptureDependencies`. These control whether the\n set passed to the API is added to the existing set or replaces it. A\n flags value of 0 defaults to\n :py:obj:`~.cudaStreamAddCaptureDependencies`.\n\n Nodes that are removed from the dependency set via this API do not\n result in :py:obj:`~.cudaErrorStreamCaptureUnjoined` if they are\n unreachable from the stream at :py:obj:`~.cudaStreamEndCapture`.\n\n Returns :py:obj:`~.cudaErrorIllegalState` if the stream is not\n capturing.\n\n Parameters\n ----------\n stream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n The stream to update\n dependencies : List[:py:obj:`~.cudaGraphNode_t`]\n The set of dependencies to add\n dependencyData : List[:py:obj:`~.cudaGraphEdgeData`]\n Optional array of data associated with each dependency.\n numDependencies : size_t\n The size of the dependencies array\n flags : unsigned int\n See above\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorIllegalState`\n\n See Also\n --------\n :py:obj:`~.cudaStreamBeginCapture`, :py:obj:`~.cudaStreamGetCaptureInfo`,\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_125cudaStreamUpdateCaptureDependencies_v2 = {"cudaStreamUpdateCaptureDependencies_v2", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_125cudaStreamUpdateCaptureDependencies_v2, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_124cudaStreamUpdateCaptureDependencies_v2}; static PyObject *__pyx_pw_4cuda_6cudart_125cudaStreamUpdateCaptureDependencies_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_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_v2 (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_stream,&__pyx_n_s_dependencies,&__pyx_n_s_dependencyData,&__pyx_n_s_numDependencies,&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 16110, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 16110, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaStreamUpdateCaptureDependencies_v2", 1, 5, 5, 1); __PYX_ERR(0, 16110, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dependencyData)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 16110, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaStreamUpdateCaptureDependencies_v2", 1, 5, 5, 2); __PYX_ERR(0, 16110, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_numDependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 16110, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaStreamUpdateCaptureDependencies_v2", 1, 5, 5, 3); __PYX_ERR(0, 16110, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[4]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 16110, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaStreamUpdateCaptureDependencies_v2", 1, 5, 5, 4); __PYX_ERR(0, 16110, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaStreamUpdateCaptureDependencies_v2") < 0)) __PYX_ERR(0, 16110, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 5)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); } __pyx_v_stream = values[0]; __pyx_v_dependencies = values[1]; __pyx_v_dependencyData = values[2]; __pyx_v_numDependencies = __Pyx_PyInt_As_size_t(values[3]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 16111, __pyx_L3_error) __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[4]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 16111, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaStreamUpdateCaptureDependencies_v2", 1, 5, 5, __pyx_nargs); __PYX_ERR(0, 16110, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaStreamUpdateCaptureDependencies_v2", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_124cudaStreamUpdateCaptureDependencies_v2(__pyx_self, __pyx_v_stream, __pyx_v_dependencies, __pyx_v_dependencyData, __pyx_v_numDependencies, __pyx_v_flags); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_38cudaStreamUpdateCaptureDependencies_v2_2generator3(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":16154 * """ * 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[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * dependencies = [] if dependencies is None else dependencies */ static PyObject *__pyx_pf_4cuda_6cudart_38cudaStreamUpdateCaptureDependencies_v2_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct_3_genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_3_genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_3_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_3_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 16154, __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_6cudart_38cudaStreamUpdateCaptureDependencies_v2_2generator3, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaStreamUpdateCaptureDependenc_2, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 16154, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaStreamUpdateCaptureDependencies_v2.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_6cudart_38cudaStreamUpdateCaptureDependencies_v2_2generator3(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_3_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_3_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 16154, 0, __PYX_ERR(0, 16154, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 16154, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 16154, __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, 16154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16154, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 16154, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 16154, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 16154, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 16154, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 16154, __pyx_L1_error) } 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_ptype_4cuda_6cudart_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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_38cudaStreamUpdateCaptureDependencies_v2_5generator4(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":16157 * raise TypeError("Argument 'dependencyData' is not instance of type (expected Tuple[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * dependencies = [] if dependencies is None else dependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in dependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaStream_t cstream */ static PyObject *__pyx_pf_4cuda_6cudart_38cudaStreamUpdateCaptureDependencies_v2_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct_4_genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_4_genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_4_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_4_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 16157, __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_6cudart_38cudaStreamUpdateCaptureDependencies_v2_5generator4, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaStreamUpdateCaptureDependenc_2, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 16157, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaStreamUpdateCaptureDependencies_v2.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_6cudart_38cudaStreamUpdateCaptureDependencies_v2_5generator4(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_4_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_4_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 16157, 0, __PYX_ERR(0, 16157, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 16157, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 16157, __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, 16157, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16157, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 16157, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 16157, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16157, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 16157, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 16157, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16157, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 16157, __pyx_L1_error) } 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_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":16110 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamUpdateCaptureDependencies_v2(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 (12.3+) */ static PyObject *__pyx_pf_4cuda_6cudart_124cudaStreamUpdateCaptureDependencies_v2(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_cstream; PyObject *__pyx_v_pstream = NULL; cudaGraphNode_t *__pyx_v_cdependencies; Py_ssize_t __pyx_v_idx; cudaGraphEdgeData *__pyx_v_cdependencyData; cudaError_t __pyx_v_err; PyObject *__pyx_gb_4cuda_6cudart_38cudaStreamUpdateCaptureDependencies_v2_2generator3 = 0; PyObject *__pyx_gb_4cuda_6cudart_38cudaStreamUpdateCaptureDependencies_v2_5generator4 = 0; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; Py_ssize_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; Py_ssize_t __pyx_t_8; Py_ssize_t __pyx_t_9; cudaGraphNode_t *__pyx_t_10; struct cudaGraphEdgeData_st *__pyx_t_11; cudaError_t __pyx_t_12; PyObject *__pyx_t_13 = NULL; unsigned int __pyx_t_14; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__407) __Pyx_RefNannySetupContext("cudaStreamUpdateCaptureDependencies_v2", 0); __Pyx_TraceCall("cudaStreamUpdateCaptureDependencies_v2", __pyx_f[0], 16110, 0, __PYX_ERR(0, 16110, __pyx_L1_error)); __Pyx_INCREF(__pyx_v_dependencies); __Pyx_INCREF(__pyx_v_dependencyData); /* "cuda/cudart.pyx":16153 * :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[ccudart.cudaGraphEdgeData,] or List[ccudart.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, 16153, __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/cudart.pyx":16154 * """ * 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[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * dependencies = [] if dependencies is None else dependencies */ __pyx_t_1 = __pyx_pf_4cuda_6cudart_38cudaStreamUpdateCaptureDependencies_v2_genexpr(NULL, __pyx_v_dependencyData); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16154, __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, 16154, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_4 = (!__pyx_t_2); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":16155 * 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[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") # <<<<<<<<<<<<<< * dependencies = [] if dependencies is None else dependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in dependencies): */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__398, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16155, __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, 16155, __pyx_L1_error) /* "cuda/cudart.pyx":16154 * """ * 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[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * dependencies = [] if dependencies is None else dependencies */ } /* "cuda/cudart.pyx":16156 * if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in dependencyData): * raise TypeError("Argument 'dependencyData' is not instance of type (expected Tuple[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * dependencies = [] if dependencies is None else dependencies # <<<<<<<<<<<<<< * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in dependencies): * raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.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, 16156, __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/cudart.pyx":16157 * raise TypeError("Argument 'dependencyData' is not instance of type (expected Tuple[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * dependencies = [] if dependencies is None else dependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in dependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaStream_t cstream */ __pyx_t_3 = __pyx_pf_4cuda_6cudart_38cudaStreamUpdateCaptureDependencies_v2_3genexpr(NULL, __pyx_v_dependencies); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16157, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_Generator_Next(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16157, __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, 16157, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_2 = (!__pyx_t_4); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":16158 * dependencies = [] if dependencies is None else dependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in dependencies): * raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") # <<<<<<<<<<<<<< * cdef ccudart.cudaStream_t cstream * if stream is None: */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__399, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16158, __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, 16158, __pyx_L1_error) /* "cuda/cudart.pyx":16157 * raise TypeError("Argument 'dependencyData' is not instance of type (expected Tuple[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * dependencies = [] if dependencies is None else dependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in dependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaStream_t cstream */ } /* "cuda/cudart.pyx":16160 * raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_2 = (__pyx_v_stream == Py_None); if (__pyx_t_2) { /* "cuda/cudart.pyx":16161 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":16160 * raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L5; } /* "cuda/cudart.pyx":16162 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_4 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_2 = __pyx_t_4; __pyx_L6_bool_binop_done:; if (__pyx_t_2) { /* "cuda/cudart.pyx":16163 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16163, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_pstream = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":16164 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 16164, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); /* "cuda/cudart.pyx":16162 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L5; } /* "cuda/cudart.pyx":16166 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * cdef ccudart.cudaGraphNode_t* cdependencies = NULL */ /*else*/ { __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_pstream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":16167 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t* cdependencies = NULL * if len(dependencies) > 0: */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 16167, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); } __pyx_L5:; /* "cuda/cudart.pyx":16168 * pstream = int(cudaStream_t(stream)) * cstream = pstream * cdef ccudart.cudaGraphNode_t* cdependencies = NULL # <<<<<<<<<<<<<< * if len(dependencies) > 0: * cdependencies = calloc(len(dependencies), sizeof(ccudart.cudaGraphNode_t)) */ __pyx_v_cdependencies = NULL; /* "cuda/cudart.pyx":16169 * cstream = pstream * cdef ccudart.cudaGraphNode_t* cdependencies = NULL * if len(dependencies) > 0: # <<<<<<<<<<<<<< * cdependencies = calloc(len(dependencies), sizeof(ccudart.cudaGraphNode_t)) * if cdependencies is NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_dependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 16169, __pyx_L1_error) __pyx_t_2 = (__pyx_t_6 > 0); if (__pyx_t_2) { /* "cuda/cudart.pyx":16170 * cdef ccudart.cudaGraphNode_t* cdependencies = NULL * if len(dependencies) > 0: * cdependencies = calloc(len(dependencies), sizeof(ccudart.cudaGraphNode_t)) # <<<<<<<<<<<<<< * if cdependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) */ __pyx_t_6 = PyObject_Length(__pyx_v_dependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 16170, __pyx_L1_error) __pyx_v_cdependencies = ((cudaGraphNode_t *)calloc(__pyx_t_6, (sizeof(cudaGraphNode_t)))); /* "cuda/cudart.pyx":16171 * if len(dependencies) > 0: * cdependencies = calloc(len(dependencies), sizeof(ccudart.cudaGraphNode_t)) * if cdependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ __pyx_t_2 = (__pyx_v_cdependencies == NULL); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":16172 * cdependencies = calloc(len(dependencies), sizeof(ccudart.cudaGraphNode_t)) * if cdependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) # <<<<<<<<<<<<<< * else: * for idx in range(len(dependencies)): */ __pyx_t_6 = PyObject_Length(__pyx_v_dependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 16172, __pyx_L1_error) __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_n_u_x_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_7, 0, 0, 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __PYX_ERR(0, 16172, __pyx_L1_error) /* "cuda/cudart.pyx":16171 * if len(dependencies) > 0: * cdependencies = calloc(len(dependencies), sizeof(ccudart.cudaGraphNode_t)) * if cdependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ } /* "cuda/cudart.pyx":16174 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: * for idx in range(len(dependencies)): # <<<<<<<<<<<<<< * cdependencies[idx] = (dependencies[idx])._ptr[0] * cdef ccudart.cudaGraphEdgeData* cdependencyData = NULL */ /*else*/ { __pyx_t_6 = PyObject_Length(__pyx_v_dependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 16174, __pyx_L1_error) __pyx_t_8 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_idx = __pyx_t_9; /* "cuda/cudart.pyx":16175 * else: * for idx in range(len(dependencies)): * cdependencies[idx] = (dependencies[idx])._ptr[0] # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphEdgeData* cdependencyData = NULL * if len(dependencyData) > 0: */ __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_dependencies, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16175, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); (__pyx_v_cdependencies[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_7)->__pyx_base._ptr[0])); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } /* "cuda/cudart.pyx":16169 * cstream = pstream * cdef ccudart.cudaGraphNode_t* cdependencies = NULL * if len(dependencies) > 0: # <<<<<<<<<<<<<< * cdependencies = calloc(len(dependencies), sizeof(ccudart.cudaGraphNode_t)) * if cdependencies is NULL: */ } /* "cuda/cudart.pyx":16176 * for idx in range(len(dependencies)): * cdependencies[idx] = (dependencies[idx])._ptr[0] * cdef ccudart.cudaGraphEdgeData* cdependencyData = NULL # <<<<<<<<<<<<<< * if len(dependencyData) > 0: * cdependencyData = calloc(len(dependencyData), sizeof(ccudart.cudaGraphEdgeData)) */ __pyx_v_cdependencyData = NULL; /* "cuda/cudart.pyx":16177 * cdependencies[idx] = (dependencies[idx])._ptr[0] * cdef ccudart.cudaGraphEdgeData* cdependencyData = NULL * if len(dependencyData) > 0: # <<<<<<<<<<<<<< * cdependencyData = calloc(len(dependencyData), sizeof(ccudart.cudaGraphEdgeData)) * if cdependencyData is NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_dependencyData); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 16177, __pyx_L1_error) __pyx_t_2 = (__pyx_t_6 > 0); if (__pyx_t_2) { /* "cuda/cudart.pyx":16178 * cdef ccudart.cudaGraphEdgeData* cdependencyData = NULL * if len(dependencyData) > 0: * cdependencyData = calloc(len(dependencyData), sizeof(ccudart.cudaGraphEdgeData)) # <<<<<<<<<<<<<< * if cdependencyData is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencyData)) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) */ __pyx_t_6 = PyObject_Length(__pyx_v_dependencyData); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 16178, __pyx_L1_error) __pyx_v_cdependencyData = ((cudaGraphEdgeData *)calloc(__pyx_t_6, (sizeof(cudaGraphEdgeData)))); /* "cuda/cudart.pyx":16179 * if len(dependencyData) > 0: * cdependencyData = calloc(len(dependencyData), sizeof(ccudart.cudaGraphEdgeData)) * if cdependencyData is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencyData)) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) * for idx in range(len(dependencyData)): */ __pyx_t_2 = (__pyx_v_cdependencyData == NULL); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":16180 * cdependencyData = calloc(len(dependencyData), sizeof(ccudart.cudaGraphEdgeData)) * if cdependencyData is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencyData)) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) # <<<<<<<<<<<<<< * for idx in range(len(dependencyData)): * string.memcpy(&cdependencyData[idx], (dependencyData[idx])._ptr, sizeof(ccudart.cudaGraphEdgeData)) */ __pyx_t_6 = PyObject_Length(__pyx_v_dependencyData); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 16180, __pyx_L1_error) __pyx_t_7 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_7, __pyx_n_u_x_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphEdgeData))); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(0, 16180, __pyx_L1_error) /* "cuda/cudart.pyx":16179 * if len(dependencyData) > 0: * cdependencyData = calloc(len(dependencyData), sizeof(ccudart.cudaGraphEdgeData)) * if cdependencyData is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencyData)) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) * for idx in range(len(dependencyData)): */ } /* "cuda/cudart.pyx":16181 * if cdependencyData is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencyData)) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) * for idx in range(len(dependencyData)): # <<<<<<<<<<<<<< * string.memcpy(&cdependencyData[idx], (dependencyData[idx])._ptr, sizeof(ccudart.cudaGraphEdgeData)) * err = ccudart.cudaStreamUpdateCaptureDependencies_v2(cstream, (dependencies[0])._ptr if len(dependencies) == 1 else cdependencies, (dependencyData[0])._ptr if len(dependencyData) == 1 else cdependencyData, numDependencies, flags) */ __pyx_t_6 = PyObject_Length(__pyx_v_dependencyData); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 16181, __pyx_L1_error) __pyx_t_8 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_idx = __pyx_t_9; /* "cuda/cudart.pyx":16182 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencyData)) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) * for idx in range(len(dependencyData)): * string.memcpy(&cdependencyData[idx], (dependencyData[idx])._ptr, sizeof(ccudart.cudaGraphEdgeData)) # <<<<<<<<<<<<<< * err = ccudart.cudaStreamUpdateCaptureDependencies_v2(cstream, (dependencies[0])._ptr if len(dependencies) == 1 else cdependencies, (dependencyData[0])._ptr if len(dependencyData) == 1 else cdependencyData, numDependencies, flags) * if cdependencies is not NULL: */ __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_dependencyData, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16182, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); (void)(memcpy((&(__pyx_v_cdependencyData[__pyx_v_idx])), ((struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData *)__pyx_t_1)->__pyx_base._ptr, (sizeof(cudaGraphEdgeData)))); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } /* "cuda/cudart.pyx":16177 * cdependencies[idx] = (dependencies[idx])._ptr[0] * cdef ccudart.cudaGraphEdgeData* cdependencyData = NULL * if len(dependencyData) > 0: # <<<<<<<<<<<<<< * cdependencyData = calloc(len(dependencyData), sizeof(ccudart.cudaGraphEdgeData)) * if cdependencyData is NULL: */ } /* "cuda/cudart.pyx":16183 * for idx in range(len(dependencyData)): * string.memcpy(&cdependencyData[idx], (dependencyData[idx])._ptr, sizeof(ccudart.cudaGraphEdgeData)) * err = ccudart.cudaStreamUpdateCaptureDependencies_v2(cstream, (dependencies[0])._ptr if len(dependencies) == 1 else cdependencies, (dependencyData[0])._ptr if len(dependencyData) == 1 else cdependencyData, numDependencies, flags) # <<<<<<<<<<<<<< * if cdependencies is not NULL: * free(cdependencies) */ __pyx_t_6 = PyObject_Length(__pyx_v_dependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 16183, __pyx_L1_error) __pyx_t_2 = (__pyx_t_6 == 1); if (__pyx_t_2) { __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_dependencies, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16183, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_10 = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._ptr); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_10 = __pyx_v_cdependencies; } __pyx_t_6 = PyObject_Length(__pyx_v_dependencyData); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 16183, __pyx_L1_error) __pyx_t_2 = (__pyx_t_6 == 1); if (__pyx_t_2) { __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_dependencyData, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16183, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_11 = ((struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData *)__pyx_t_1)->__pyx_base._ptr; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_11 = __pyx_v_cdependencyData; } __pyx_t_12 = __pyx_f_4cuda_7ccudart_cudaStreamUpdateCaptureDependencies_v2(__pyx_v_cstream, __pyx_t_10, __pyx_t_11, __pyx_v_numDependencies, __pyx_v_flags); if (unlikely(__pyx_t_12 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 16183, __pyx_L1_error) __pyx_v_err = __pyx_t_12; /* "cuda/cudart.pyx":16184 * string.memcpy(&cdependencyData[idx], (dependencyData[idx])._ptr, sizeof(ccudart.cudaGraphEdgeData)) * err = ccudart.cudaStreamUpdateCaptureDependencies_v2(cstream, (dependencies[0])._ptr if len(dependencies) == 1 else cdependencies, (dependencyData[0])._ptr if len(dependencyData) == 1 else cdependencyData, numDependencies, flags) * if cdependencies is not NULL: # <<<<<<<<<<<<<< * free(cdependencies) * if cdependencyData is not NULL: */ __pyx_t_2 = (__pyx_v_cdependencies != NULL); if (__pyx_t_2) { /* "cuda/cudart.pyx":16185 * err = ccudart.cudaStreamUpdateCaptureDependencies_v2(cstream, (dependencies[0])._ptr if len(dependencies) == 1 else cdependencies, (dependencyData[0])._ptr if len(dependencyData) == 1 else cdependencyData, numDependencies, flags) * if cdependencies is not NULL: * free(cdependencies) # <<<<<<<<<<<<<< * if cdependencyData is not NULL: * free(cdependencyData) */ free(__pyx_v_cdependencies); /* "cuda/cudart.pyx":16184 * string.memcpy(&cdependencyData[idx], (dependencyData[idx])._ptr, sizeof(ccudart.cudaGraphEdgeData)) * err = ccudart.cudaStreamUpdateCaptureDependencies_v2(cstream, (dependencies[0])._ptr if len(dependencies) == 1 else cdependencies, (dependencyData[0])._ptr if len(dependencyData) == 1 else cdependencyData, numDependencies, flags) * if cdependencies is not NULL: # <<<<<<<<<<<<<< * free(cdependencies) * if cdependencyData is not NULL: */ } /* "cuda/cudart.pyx":16186 * if cdependencies is not NULL: * free(cdependencies) * if cdependencyData is not NULL: # <<<<<<<<<<<<<< * free(cdependencyData) * return (cudaError_t(err),) */ __pyx_t_2 = (__pyx_v_cdependencyData != NULL); if (__pyx_t_2) { /* "cuda/cudart.pyx":16187 * free(cdependencies) * if cdependencyData is not NULL: * free(cdependencyData) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ free(__pyx_v_cdependencyData); /* "cuda/cudart.pyx":16186 * if cdependencies is not NULL: * free(cdependencies) * if cdependencyData is not NULL: # <<<<<<<<<<<<<< * free(cdependencyData) * return (cudaError_t(err),) */ } /* "cuda/cudart.pyx":16188 * if cdependencyData is not NULL: * free(cdependencyData) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16188, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16188, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_13 = NULL; __pyx_t_14 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_13)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_13); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_14 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_t_3}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_14, 1+__pyx_t_14); __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16188, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16188, __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)) __PYX_ERR(0, 16188, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":16110 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamUpdateCaptureDependencies_v2(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 (12.3+) */ /* 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_13); __Pyx_AddTraceback("cuda.cudart.cudaStreamUpdateCaptureDependencies_v2", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pstream); __Pyx_XDECREF(__pyx_gb_4cuda_6cudart_38cudaStreamUpdateCaptureDependencies_v2_2generator3); __Pyx_XDECREF(__pyx_gb_4cuda_6cudart_38cudaStreamUpdateCaptureDependencies_v2_5generator4); __Pyx_XDECREF(__pyx_v_dependencies); __Pyx_XDECREF(__pyx_v_dependencyData); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":16190 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEventCreate(): * """ Creates an event object. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_127cudaEventCreate(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_126cudaEventCreate, "cudaEventCreate()\n Creates an event object.\n\n Creates an event object for the current device using\n :py:obj:`~.cudaEventDefault`.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorLaunchFailure`, :py:obj:`~.cudaErrorMemoryAllocation`\n event : :py:obj:`~.cudaEvent_t`\n Newly created event\n\n See Also\n --------\n 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_127cudaEventCreate = {"cudaEventCreate", (PyCFunction)__pyx_pw_4cuda_6cudart_127cudaEventCreate, METH_NOARGS, __pyx_doc_4cuda_6cudart_126cudaEventCreate}; static PyObject *__pyx_pw_4cuda_6cudart_127cudaEventCreate(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_6cudart_126cudaEventCreate(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_126cudaEventCreate(CYTHON_UNUSED PyObject *__pyx_self) { struct __pyx_obj_4cuda_6cudart_cudaEvent_t *__pyx_v_event = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; cudaError_t __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__408) __Pyx_RefNannySetupContext("cudaEventCreate", 1); __Pyx_TraceCall("cudaEventCreate", __pyx_f[0], 16190, 0, __PYX_ERR(0, 16190, __pyx_L1_error)); /* "cuda/cudart.pyx":16208 * 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() # <<<<<<<<<<<<<< * err = ccudart.cudaEventCreate(event._ptr) * return (cudaError_t(err), event) */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEvent_t)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16208, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_event = ((struct __pyx_obj_4cuda_6cudart_cudaEvent_t *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":16209 * """ * cdef cudaEvent_t event = cudaEvent_t() * err = ccudart.cudaEventCreate(event._ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err), event) * */ __pyx_t_2 = __pyx_f_4cuda_7ccudart_cudaEventCreate(((cudaEvent_t *)__pyx_v_event->__pyx_base._ptr)); if (unlikely(__pyx_t_2 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 16209, __pyx_L1_error) __pyx_v_err = __pyx_t_2; /* "cuda/cudart.pyx":16210 * cdef cudaEvent_t event = cudaEvent_t() * err = ccudart.cudaEventCreate(event._ptr) * return (cudaError_t(err), event) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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, 16210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16210, __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)) __PYX_ERR(0, 16210, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_event); __Pyx_GIVEREF((PyObject *)__pyx_v_event); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_v_event))) __PYX_ERR(0, 16210, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":16190 * return (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_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaEventCreate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_event); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":16212 * return (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_6cudart_129cudaEventCreateWithFlags(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_128cudaEventCreateWithFlags, "cudaEventCreateWithFlags(unsigned int flags)\n Creates an event object with the specified flags.\n\n Creates an event object for the current device with the specified\n flags. 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\n Parameters\n ----------\n flags : unsigned int\n Flags for new event\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorLaunchFailure`, :py:obj:`~.cudaErrorMemoryAllocation`\n event : :py:obj:`~.cudaEvent_t`\n Newly created event\n\n See Also\n --------\n :py:obj:`~.cudaEventCreate (C API)`, :py:obj:`~.cudaEventSynchronize`, :py:obj:`~.cudaEventDestroy`, :py:obj:`~.cudaEventElapsedTime`, :py:obj:`~.cudaStreamWaitEvent`, :py:obj:`~.cuEventCreate`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_129cudaEventCreateWithFlags = {"cudaEventCreateWithFlags", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_129cudaEventCreateWithFlags, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_128cudaEventCreateWithFlags}; static PyObject *__pyx_pw_4cuda_6cudart_129cudaEventCreateWithFlags(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 16212, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaEventCreateWithFlags") < 0)) __PYX_ERR(0, 16212, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[0]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 16213, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaEventCreateWithFlags", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 16212, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaEventCreateWithFlags", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_128cudaEventCreateWithFlags(__pyx_self, __pyx_v_flags); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_128cudaEventCreateWithFlags(CYTHON_UNUSED PyObject *__pyx_self, unsigned int __pyx_v_flags) { struct __pyx_obj_4cuda_6cudart_cudaEvent_t *__pyx_v_event = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; cudaError_t __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__409) __Pyx_RefNannySetupContext("cudaEventCreateWithFlags", 1); __Pyx_TraceCall("cudaEventCreateWithFlags", __pyx_f[0], 16212, 0, __PYX_ERR(0, 16212, __pyx_L1_error)); /* "cuda/cudart.pyx":16254 * :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() # <<<<<<<<<<<<<< * err = ccudart.cudaEventCreateWithFlags(event._ptr, flags) * return (cudaError_t(err), event) */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEvent_t)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16254, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_event = ((struct __pyx_obj_4cuda_6cudart_cudaEvent_t *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":16255 * """ * cdef cudaEvent_t event = cudaEvent_t() * err = ccudart.cudaEventCreateWithFlags(event._ptr, flags) # <<<<<<<<<<<<<< * return (cudaError_t(err), event) * */ __pyx_t_2 = __pyx_f_4cuda_7ccudart_cudaEventCreateWithFlags(((cudaEvent_t *)__pyx_v_event->__pyx_base._ptr), __pyx_v_flags); if (unlikely(__pyx_t_2 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 16255, __pyx_L1_error) __pyx_v_err = __pyx_t_2; /* "cuda/cudart.pyx":16256 * cdef cudaEvent_t event = cudaEvent_t() * err = ccudart.cudaEventCreateWithFlags(event._ptr, flags) * return (cudaError_t(err), event) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16256, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16256, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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, 16256, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16256, __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)) __PYX_ERR(0, 16256, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_event); __Pyx_GIVEREF((PyObject *)__pyx_v_event); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_v_event))) __PYX_ERR(0, 16256, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":16212 * return (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_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaEventCreateWithFlags", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_event); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":16258 * return (cudaError_t(err), event) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEventRecord(event, stream): * """ Records an event. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_131cudaEventRecord(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_130cudaEventRecord, "cudaEventRecord(event, stream)\n Records an event.\n\n Captures 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\n then examine or wait for completion of the work that was captured. Uses\n of `stream` after this call do not modify `event`. See note on default\n stream behavior for what is captured in the default case.\n\n :py:obj:`~.cudaEventRecord()` can be called multiple times on the same\n event and will overwrite the previously captured state. Other APIs such\n as :py:obj:`~.cudaStreamWaitEvent()` use the most recently captured\n state at the time of the API call, and are not affected by later calls\n to :py:obj:`~.cudaEventRecord()`. Before the first call to\n :py:obj:`~.cudaEventRecord()`, an event represents an empty set of\n work, so for example :py:obj:`~.cudaEventQuery()` would return\n :py:obj:`~.cudaSuccess`.\n\n Parameters\n ----------\n event : :py:obj:`~.CUevent` or :py:obj:`~.cudaEvent_t`\n Event to record\n stream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n Stream in which to record event\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorLaunchFailure`\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_131cudaEventRecord = {"cudaEventRecord", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_131cudaEventRecord, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_130cudaEventRecord}; static PyObject *__pyx_pw_4cuda_6cudart_131cudaEventRecord(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_event_2,&__pyx_n_s_stream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_event_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 16258, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 16258, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaEventRecord", 1, 2, 2, 1); __PYX_ERR(0, 16258, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaEventRecord") < 0)) __PYX_ERR(0, 16258, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __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, 16258, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaEventRecord", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_130cudaEventRecord(__pyx_self, __pyx_v_event, __pyx_v_stream); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_130cudaEventRecord(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_event, PyObject *__pyx_v_stream) { cudaStream_t __pyx_v_cstream; PyObject *__pyx_v_pstream = NULL; cudaEvent_t __pyx_v_cevent; PyObject *__pyx_v_pevent = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__410) __Pyx_RefNannySetupContext("cudaEventRecord", 1); __Pyx_TraceCall("cudaEventRecord", __pyx_f[0], 16258, 0, __PYX_ERR(0, 16258, __pyx_L1_error)); /* "cuda/cudart.pyx":16295 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_stream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":16296 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":16295 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":16297 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":16298 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16298, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pstream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":16299 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 16299, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":16297 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L3; } /* "cuda/cudart.pyx":16301 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * cdef ccudart.cudaEvent_t cevent */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16301, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16301, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pstream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":16302 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * cdef ccudart.cudaEvent_t cevent * if event is None: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 16302, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":16304 * cstream = pstream * cdef ccudart.cudaEvent_t cevent * if event is None: # <<<<<<<<<<<<<< * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): */ __pyx_t_1 = (__pyx_v_event == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":16305 * cdef ccudart.cudaEvent_t cevent * if event is None: * cevent = 0 # <<<<<<<<<<<<<< * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) */ __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":16304 * cstream = pstream * cdef ccudart.cudaEvent_t cevent * if event is None: # <<<<<<<<<<<<<< * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":16306 * if event is None: * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pevent = int(event) * cevent = pevent */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUevent); __pyx_t_1 = __pyx_t_2; __pyx_L7_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":16307 * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) # <<<<<<<<<<<<<< * cevent = pevent * else: */ __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_v_event); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16307, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pevent = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":16308 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) * cevent = pevent # <<<<<<<<<<<<<< * else: * pevent = int(cudaEvent_t(event)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 16308, __pyx_L1_error) __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":16306 * if event is None: * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pevent = int(event) * cevent = pevent */ goto __pyx_L6; } /* "cuda/cudart.pyx":16310 * cevent = pevent * else: * pevent = int(cudaEvent_t(event)) # <<<<<<<<<<<<<< * cevent = pevent * err = ccudart.cudaEventRecord(cevent, cstream) */ /*else*/ { __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEvent_t), __pyx_v_event); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16310, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16310, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_pevent = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":16311 * else: * pevent = int(cudaEvent_t(event)) * cevent = pevent # <<<<<<<<<<<<<< * err = ccudart.cudaEventRecord(cevent, cstream) * return (cudaError_t(err),) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 16311, __pyx_L1_error) __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L6:; /* "cuda/cudart.pyx":16312 * pevent = int(cudaEvent_t(event)) * cevent = pevent * err = ccudart.cudaEventRecord(cevent, cstream) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaEventRecord(__pyx_v_cevent, __pyx_v_cstream); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 16312, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":16313 * cevent = pevent * err = ccudart.cudaEventRecord(cevent, cstream) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16313, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16313, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __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, 16313, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16313, __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)) __PYX_ERR(0, 16313, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":16258 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":16315 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEventRecordWithFlags(event, stream, unsigned int flags): * """ Records an event. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_133cudaEventRecordWithFlags(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_132cudaEventRecordWithFlags, "cudaEventRecordWithFlags(event, stream, unsigned int flags)\n Records an event.\n\n Captures 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\n then examine or wait for completion of the work that was captured. Uses\n of `stream` after this call do not modify `event`. See note on default\n stream behavior for what is captured in the default case.\n\n :py:obj:`~.cudaEventRecordWithFlags()` can be called multiple times on\n the same event and will overwrite the previously captured state. Other\n APIs such as :py:obj:`~.cudaStreamWaitEvent()` use the most recently\n captured state at the time of the API call, and are not affected by\n later calls to :py:obj:`~.cudaEventRecordWithFlags()`. Before the first\n call to :py:obj:`~.cudaEventRecordWithFlags()`, an event represents an\n empty set of work, so for example :py:obj:`~.cudaEventQuery()` would\n return :py:obj:`~.cudaSuccess`.\n\n flags 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\n Parameters\n ----------\n event : :py:obj:`~.CUevent` or :py:obj:`~.cudaEvent_t`\n Event to record\n stream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n Stream in which to record event\n flags : unsigned int\n Parameters for the operation(See above)\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorLaunchFailure`\n\n See 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:`~.cuEventRecord`,\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_133cudaEventRecordWithFlags = {"cudaEventRecordWithFlags", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_133cudaEventRecordWithFlags, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_132cudaEventRecordWithFlags}; static PyObject *__pyx_pw_4cuda_6cudart_133cudaEventRecordWithFlags(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_event_2,&__pyx_n_s_stream,&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_event_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 16315, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 16315, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaEventRecordWithFlags", 1, 3, 3, 1); __PYX_ERR(0, 16315, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 16315, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaEventRecordWithFlags", 1, 3, 3, 2); __PYX_ERR(0, 16315, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaEventRecordWithFlags") < 0)) __PYX_ERR(0, 16315, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_event = values[0]; __pyx_v_stream = values[1]; __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[2]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 16316, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaEventRecordWithFlags", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 16315, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaEventRecordWithFlags", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_132cudaEventRecordWithFlags(__pyx_self, __pyx_v_event, __pyx_v_stream, __pyx_v_flags); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_132cudaEventRecordWithFlags(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_event, PyObject *__pyx_v_stream, unsigned int __pyx_v_flags) { cudaStream_t __pyx_v_cstream; PyObject *__pyx_v_pstream = NULL; cudaEvent_t __pyx_v_cevent; PyObject *__pyx_v_pevent = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__411) __Pyx_RefNannySetupContext("cudaEventRecordWithFlags", 1); __Pyx_TraceCall("cudaEventRecordWithFlags", __pyx_f[0], 16315, 0, __PYX_ERR(0, 16315, __pyx_L1_error)); /* "cuda/cudart.pyx":16361 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_stream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":16362 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":16361 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":16363 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":16364 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16364, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pstream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":16365 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 16365, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":16363 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L3; } /* "cuda/cudart.pyx":16367 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * cdef ccudart.cudaEvent_t cevent */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16367, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16367, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pstream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":16368 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * cdef ccudart.cudaEvent_t cevent * if event is None: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 16368, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":16370 * cstream = pstream * cdef ccudart.cudaEvent_t cevent * if event is None: # <<<<<<<<<<<<<< * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): */ __pyx_t_1 = (__pyx_v_event == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":16371 * cdef ccudart.cudaEvent_t cevent * if event is None: * cevent = 0 # <<<<<<<<<<<<<< * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) */ __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":16370 * cstream = pstream * cdef ccudart.cudaEvent_t cevent * if event is None: # <<<<<<<<<<<<<< * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":16372 * if event is None: * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pevent = int(event) * cevent = pevent */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUevent); __pyx_t_1 = __pyx_t_2; __pyx_L7_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":16373 * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) # <<<<<<<<<<<<<< * cevent = pevent * else: */ __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_v_event); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16373, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pevent = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":16374 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) * cevent = pevent # <<<<<<<<<<<<<< * else: * pevent = int(cudaEvent_t(event)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 16374, __pyx_L1_error) __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":16372 * if event is None: * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pevent = int(event) * cevent = pevent */ goto __pyx_L6; } /* "cuda/cudart.pyx":16376 * cevent = pevent * else: * pevent = int(cudaEvent_t(event)) # <<<<<<<<<<<<<< * cevent = pevent * err = ccudart.cudaEventRecordWithFlags(cevent, cstream, flags) */ /*else*/ { __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEvent_t), __pyx_v_event); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16376, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16376, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_pevent = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":16377 * else: * pevent = int(cudaEvent_t(event)) * cevent = pevent # <<<<<<<<<<<<<< * err = ccudart.cudaEventRecordWithFlags(cevent, cstream, flags) * return (cudaError_t(err),) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 16377, __pyx_L1_error) __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L6:; /* "cuda/cudart.pyx":16378 * pevent = int(cudaEvent_t(event)) * cevent = pevent * err = ccudart.cudaEventRecordWithFlags(cevent, cstream, flags) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaEventRecordWithFlags(__pyx_v_cevent, __pyx_v_cstream, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 16378, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":16379 * cevent = pevent * err = ccudart.cudaEventRecordWithFlags(cevent, cstream, flags) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16379, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16379, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __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, 16379, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16379, __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)) __PYX_ERR(0, 16379, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":16315 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":16381 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEventQuery(event): * """ Queries an event's status. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_135cudaEventQuery(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_134cudaEventQuery, "cudaEventQuery(event)\n Queries an event's status.\n\n Queries the status of all work currently captured by `event`. See\n :py:obj:`~.cudaEventRecord()` for details on what is captured by an\n event.\n\n Returns :py:obj:`~.cudaSuccess` if all captured work has been\n completed, or :py:obj:`~.cudaErrorNotReady` if any captured work is\n incomplete.\n\n For the purposes of Unified Memory, a return value of\n :py:obj:`~.cudaSuccess` is equivalent to having called\n :py:obj:`~.cudaEventSynchronize()`.\n\n Parameters\n ----------\n event : :py:obj:`~.CUevent` or :py:obj:`~.cudaEvent_t`\n Event to query\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorNotReady`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorLaunchFailure`\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_135cudaEventQuery = {"cudaEventQuery", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_135cudaEventQuery, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_134cudaEventQuery}; static PyObject *__pyx_pw_4cuda_6cudart_135cudaEventQuery(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_event_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_event_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 16381, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaEventQuery") < 0)) __PYX_ERR(0, 16381, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_event = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaEventQuery", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 16381, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaEventQuery", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_134cudaEventQuery(__pyx_self, __pyx_v_event); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_134cudaEventQuery(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_event) { cudaEvent_t __pyx_v_cevent; PyObject *__pyx_v_pevent = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__412) __Pyx_RefNannySetupContext("cudaEventQuery", 1); __Pyx_TraceCall("cudaEventQuery", __pyx_f[0], 16381, 0, __PYX_ERR(0, 16381, __pyx_L1_error)); /* "cuda/cudart.pyx":16412 * """ * cdef ccudart.cudaEvent_t cevent * if event is None: # <<<<<<<<<<<<<< * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): */ __pyx_t_1 = (__pyx_v_event == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":16413 * cdef ccudart.cudaEvent_t cevent * if event is None: * cevent = 0 # <<<<<<<<<<<<<< * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) */ __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":16412 * """ * cdef ccudart.cudaEvent_t cevent * if event is None: # <<<<<<<<<<<<<< * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":16414 * if event is None: * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pevent = int(event) * cevent = pevent */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUevent); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":16415 * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) # <<<<<<<<<<<<<< * cevent = pevent * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16415, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pevent = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":16416 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) * cevent = pevent # <<<<<<<<<<<<<< * else: * pevent = int(cudaEvent_t(event)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 16416, __pyx_L1_error) __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":16414 * if event is None: * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pevent = int(event) * cevent = pevent */ goto __pyx_L3; } /* "cuda/cudart.pyx":16418 * cevent = pevent * else: * pevent = int(cudaEvent_t(event)) # <<<<<<<<<<<<<< * cevent = pevent * err = ccudart.cudaEventQuery(cevent) */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEvent_t), __pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16418, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16418, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pevent = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":16419 * else: * pevent = int(cudaEvent_t(event)) * cevent = pevent # <<<<<<<<<<<<<< * err = ccudart.cudaEventQuery(cevent) * return (cudaError_t(err),) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 16419, __pyx_L1_error) __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":16420 * pevent = int(cudaEvent_t(event)) * cevent = pevent * err = ccudart.cudaEventQuery(cevent) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaEventQuery(__pyx_v_cevent); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 16420, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":16421 * cevent = pevent * err = ccudart.cudaEventQuery(cevent) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16421, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16421, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16421, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16421, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 16421, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":16381 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaEventQuery", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pevent); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":16423 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEventSynchronize(event): * """ Waits for an event to complete. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_137cudaEventSynchronize(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_136cudaEventSynchronize, "cudaEventSynchronize(event)\n Waits for an event to complete.\n\n Waits until the completion of all work currently captured in `event`.\n See :py:obj:`~.cudaEventRecord()` for details on what is captured by an\n event.\n\n Waiting for an event that was created with the\n :py:obj:`~.cudaEventBlockingSync` flag will cause the calling CPU\n thread to block until the event has been completed by the device. If\n the :py:obj:`~.cudaEventBlockingSync` flag has not been set, then the\n CPU thread will busy-wait until the event has been completed by the\n device.\n\n Parameters\n ----------\n event : :py:obj:`~.CUevent` or :py:obj:`~.cudaEvent_t`\n Event to wait for\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorLaunchFailure`\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_137cudaEventSynchronize = {"cudaEventSynchronize", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_137cudaEventSynchronize, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_136cudaEventSynchronize}; static PyObject *__pyx_pw_4cuda_6cudart_137cudaEventSynchronize(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_event_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_event_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 16423, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaEventSynchronize") < 0)) __PYX_ERR(0, 16423, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_event = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaEventSynchronize", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 16423, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaEventSynchronize", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_136cudaEventSynchronize(__pyx_self, __pyx_v_event); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_136cudaEventSynchronize(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_event) { cudaEvent_t __pyx_v_cevent; PyObject *__pyx_v_pevent = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__413) __Pyx_RefNannySetupContext("cudaEventSynchronize", 1); __Pyx_TraceCall("cudaEventSynchronize", __pyx_f[0], 16423, 0, __PYX_ERR(0, 16423, __pyx_L1_error)); /* "cuda/cudart.pyx":16453 * """ * cdef ccudart.cudaEvent_t cevent * if event is None: # <<<<<<<<<<<<<< * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): */ __pyx_t_1 = (__pyx_v_event == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":16454 * cdef ccudart.cudaEvent_t cevent * if event is None: * cevent = 0 # <<<<<<<<<<<<<< * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) */ __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":16453 * """ * cdef ccudart.cudaEvent_t cevent * if event is None: # <<<<<<<<<<<<<< * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":16455 * if event is None: * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pevent = int(event) * cevent = pevent */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUevent); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":16456 * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) # <<<<<<<<<<<<<< * cevent = pevent * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16456, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pevent = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":16457 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) * cevent = pevent # <<<<<<<<<<<<<< * else: * pevent = int(cudaEvent_t(event)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 16457, __pyx_L1_error) __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":16455 * if event is None: * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pevent = int(event) * cevent = pevent */ goto __pyx_L3; } /* "cuda/cudart.pyx":16459 * cevent = pevent * else: * pevent = int(cudaEvent_t(event)) # <<<<<<<<<<<<<< * cevent = pevent * err = ccudart.cudaEventSynchronize(cevent) */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEvent_t), __pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16459, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16459, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pevent = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":16460 * else: * pevent = int(cudaEvent_t(event)) * cevent = pevent # <<<<<<<<<<<<<< * err = ccudart.cudaEventSynchronize(cevent) * return (cudaError_t(err),) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 16460, __pyx_L1_error) __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":16461 * pevent = int(cudaEvent_t(event)) * cevent = pevent * err = ccudart.cudaEventSynchronize(cevent) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaEventSynchronize(__pyx_v_cevent); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 16461, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":16462 * cevent = pevent * err = ccudart.cudaEventSynchronize(cevent) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16462, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16462, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16462, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16462, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 16462, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":16423 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaEventSynchronize", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pevent); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":16464 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEventDestroy(event): * """ Destroys an event object. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_139cudaEventDestroy(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_138cudaEventDestroy, "cudaEventDestroy(event)\n Destroys an event object.\n\n Destroys the event specified by `event`.\n\n An 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\n on completion of the event, and any associated resources will\n automatically be released asynchronously at completion.\n\n Parameters\n ----------\n event : :py:obj:`~.CUevent` or :py:obj:`~.cudaEvent_t`\n Event to destroy\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorLaunchFailure`\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_139cudaEventDestroy = {"cudaEventDestroy", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_139cudaEventDestroy, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_138cudaEventDestroy}; static PyObject *__pyx_pw_4cuda_6cudart_139cudaEventDestroy(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_event_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_event_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 16464, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaEventDestroy") < 0)) __PYX_ERR(0, 16464, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_event = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaEventDestroy", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 16464, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaEventDestroy", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_138cudaEventDestroy(__pyx_self, __pyx_v_event); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_138cudaEventDestroy(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_event) { cudaEvent_t __pyx_v_cevent; PyObject *__pyx_v_pevent = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__414) __Pyx_RefNannySetupContext("cudaEventDestroy", 1); __Pyx_TraceCall("cudaEventDestroy", __pyx_f[0], 16464, 0, __PYX_ERR(0, 16464, __pyx_L1_error)); /* "cuda/cudart.pyx":16491 * """ * cdef ccudart.cudaEvent_t cevent * if event is None: # <<<<<<<<<<<<<< * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): */ __pyx_t_1 = (__pyx_v_event == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":16492 * cdef ccudart.cudaEvent_t cevent * if event is None: * cevent = 0 # <<<<<<<<<<<<<< * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) */ __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":16491 * """ * cdef ccudart.cudaEvent_t cevent * if event is None: # <<<<<<<<<<<<<< * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":16493 * if event is None: * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pevent = int(event) * cevent = pevent */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUevent); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":16494 * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) # <<<<<<<<<<<<<< * cevent = pevent * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16494, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pevent = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":16495 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) * cevent = pevent # <<<<<<<<<<<<<< * else: * pevent = int(cudaEvent_t(event)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 16495, __pyx_L1_error) __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":16493 * if event is None: * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pevent = int(event) * cevent = pevent */ goto __pyx_L3; } /* "cuda/cudart.pyx":16497 * cevent = pevent * else: * pevent = int(cudaEvent_t(event)) # <<<<<<<<<<<<<< * cevent = pevent * err = ccudart.cudaEventDestroy(cevent) */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEvent_t), __pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16497, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16497, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pevent = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":16498 * else: * pevent = int(cudaEvent_t(event)) * cevent = pevent # <<<<<<<<<<<<<< * err = ccudart.cudaEventDestroy(cevent) * return (cudaError_t(err),) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 16498, __pyx_L1_error) __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":16499 * pevent = int(cudaEvent_t(event)) * cevent = pevent * err = ccudart.cudaEventDestroy(cevent) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaEventDestroy(__pyx_v_cevent); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 16499, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":16500 * cevent = pevent * err = ccudart.cudaEventDestroy(cevent) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16500, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16500, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16500, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16500, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 16500, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":16464 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaEventDestroy", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pevent); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":16502 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEventElapsedTime(start, end): * """ Computes the elapsed time between events. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_141cudaEventElapsedTime(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_140cudaEventElapsedTime, "cudaEventElapsedTime(start, end)\n Computes the elapsed time between events.\n\n Computes the elapsed time between two events (in milliseconds with a\n resolution of around 0.5 microseconds).\n\n If either event was last recorded in a non-NULL stream, the resulting\n time may be greater than expected (even if both used the same stream\n handle). This happens because the :py:obj:`~.cudaEventRecord()`\n operation takes place asynchronously and there is no guarantee that the\n measured latency is actually just between the two events. Any number of\n other different stream operations could execute in between the two\n measured events, thus altering the timing in a significant way.\n\n If :py:obj:`~.cudaEventRecord()` has not been called on either event,\n then :py:obj:`~.cudaErrorInvalidResourceHandle` is returned. If\n :py:obj:`~.cudaEventRecord()` has been called on both events but one or\n both of them has not yet been completed (that is,\n :py:obj:`~.cudaEventQuery()` would return :py:obj:`~.cudaErrorNotReady`\n on at least one of the events), :py:obj:`~.cudaErrorNotReady` is\n returned. If either event was created with the\n :py:obj:`~.cudaEventDisableTiming` flag, then this function will return\n :py:obj:`~.cudaErrorInvalidResourceHandle`.\n\n Parameters\n ----------\n start : :py:obj:`~.CUevent` or :py:obj:`~.cudaEvent_t`\n Starting event\n end : :py:obj:`~.CUevent` or :py:obj:`~.cudaEvent_t`\n Ending event\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorNotReady`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorLaunchFailure`, :py:obj:`~.cudaErrorUnknown`\n ms : float\n Time between `start` and `end` in ms\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_141cudaEventElapsedTime = {"cudaEventElapsedTime", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_141cudaEventElapsedTime, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_140cudaEventElapsedTime}; static PyObject *__pyx_pw_4cuda_6cudart_141cudaEventElapsedTime(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_start,&__pyx_n_s_end,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_start)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 16502, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_end)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 16502, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaEventElapsedTime", 1, 2, 2, 1); __PYX_ERR(0, 16502, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaEventElapsedTime") < 0)) __PYX_ERR(0, 16502, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __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, 16502, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaEventElapsedTime", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_140cudaEventElapsedTime(__pyx_self, __pyx_v_start, __pyx_v_end); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_140cudaEventElapsedTime(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_start, PyObject *__pyx_v_end) { cudaEvent_t __pyx_v_cend; PyObject *__pyx_v_pend = NULL; cudaEvent_t __pyx_v_cstart; PyObject *__pyx_v_pstart = NULL; float __pyx_v_ms; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__415) __Pyx_RefNannySetupContext("cudaEventElapsedTime", 1); __Pyx_TraceCall("cudaEventElapsedTime", __pyx_f[0], 16502, 0, __PYX_ERR(0, 16502, __pyx_L1_error)); /* "cuda/cudart.pyx":16546 * """ * cdef ccudart.cudaEvent_t cend * if end is None: # <<<<<<<<<<<<<< * cend = 0 * elif isinstance(end, (cudaEvent_t,cuda.CUevent)): */ __pyx_t_1 = (__pyx_v_end == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":16547 * cdef ccudart.cudaEvent_t cend * if end is None: * cend = 0 # <<<<<<<<<<<<<< * elif isinstance(end, (cudaEvent_t,cuda.CUevent)): * pend = int(end) */ __pyx_v_cend = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":16546 * """ * cdef ccudart.cudaEvent_t cend * if end is None: # <<<<<<<<<<<<<< * cend = 0 * elif isinstance(end, (cudaEvent_t,cuda.CUevent)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":16548 * if end is None: * cend = 0 * elif isinstance(end, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pend = int(end) * cend = pend */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_end, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUevent); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":16549 * cend = 0 * elif isinstance(end, (cudaEvent_t,cuda.CUevent)): * pend = int(end) # <<<<<<<<<<<<<< * cend = pend * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_end); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16549, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pend = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":16550 * elif isinstance(end, (cudaEvent_t,cuda.CUevent)): * pend = int(end) * cend = pend # <<<<<<<<<<<<<< * else: * pend = int(cudaEvent_t(end)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pend); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 16550, __pyx_L1_error) __pyx_v_cend = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":16548 * if end is None: * cend = 0 * elif isinstance(end, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pend = int(end) * cend = pend */ goto __pyx_L3; } /* "cuda/cudart.pyx":16552 * cend = pend * else: * pend = int(cudaEvent_t(end)) # <<<<<<<<<<<<<< * cend = pend * cdef ccudart.cudaEvent_t cstart */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEvent_t), __pyx_v_end); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16552, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16552, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pend = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":16553 * else: * pend = int(cudaEvent_t(end)) * cend = pend # <<<<<<<<<<<<<< * cdef ccudart.cudaEvent_t cstart * if start is None: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pend); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 16553, __pyx_L1_error) __pyx_v_cend = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":16555 * cend = pend * cdef ccudart.cudaEvent_t cstart * if start is None: # <<<<<<<<<<<<<< * cstart = 0 * elif isinstance(start, (cudaEvent_t,cuda.CUevent)): */ __pyx_t_1 = (__pyx_v_start == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":16556 * cdef ccudart.cudaEvent_t cstart * if start is None: * cstart = 0 # <<<<<<<<<<<<<< * elif isinstance(start, (cudaEvent_t,cuda.CUevent)): * pstart = int(start) */ __pyx_v_cstart = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":16555 * cend = pend * cdef ccudart.cudaEvent_t cstart * if start is None: # <<<<<<<<<<<<<< * cstart = 0 * elif isinstance(start, (cudaEvent_t,cuda.CUevent)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":16557 * if start is None: * cstart = 0 * elif isinstance(start, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pstart = int(start) * cstart = pstart */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_start, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUevent); __pyx_t_1 = __pyx_t_2; __pyx_L7_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":16558 * cstart = 0 * elif isinstance(start, (cudaEvent_t,cuda.CUevent)): * pstart = int(start) # <<<<<<<<<<<<<< * cstart = pstart * else: */ __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_v_start); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16558, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pstart = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":16559 * elif isinstance(start, (cudaEvent_t,cuda.CUevent)): * pstart = int(start) * cstart = pstart # <<<<<<<<<<<<<< * else: * pstart = int(cudaEvent_t(start)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstart); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 16559, __pyx_L1_error) __pyx_v_cstart = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":16557 * if start is None: * cstart = 0 * elif isinstance(start, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pstart = int(start) * cstart = pstart */ goto __pyx_L6; } /* "cuda/cudart.pyx":16561 * cstart = pstart * else: * pstart = int(cudaEvent_t(start)) # <<<<<<<<<<<<<< * cstart = pstart * cdef float ms = 0 */ /*else*/ { __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEvent_t), __pyx_v_start); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16561, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16561, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_pstart = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":16562 * else: * pstart = int(cudaEvent_t(start)) * cstart = pstart # <<<<<<<<<<<<<< * cdef float ms = 0 * err = ccudart.cudaEventElapsedTime(&ms, cstart, cend) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstart); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 16562, __pyx_L1_error) __pyx_v_cstart = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L6:; /* "cuda/cudart.pyx":16563 * pstart = int(cudaEvent_t(start)) * cstart = pstart * cdef float ms = 0 # <<<<<<<<<<<<<< * err = ccudart.cudaEventElapsedTime(&ms, cstart, cend) * return (cudaError_t(err), ms) */ __pyx_v_ms = 0.0; /* "cuda/cudart.pyx":16564 * cstart = pstart * cdef float ms = 0 * err = ccudart.cudaEventElapsedTime(&ms, cstart, cend) # <<<<<<<<<<<<<< * return (cudaError_t(err), ms) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaEventElapsedTime((&__pyx_v_ms), __pyx_v_cstart, __pyx_v_cend); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 16564, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":16565 * cdef float ms = 0 * err = ccudart.cudaEventElapsedTime(&ms, cstart, cend) * return (cudaError_t(err), ms) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16565, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16565, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __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, 16565, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyFloat_FromDouble(__pyx_v_ms); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16565, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16565, __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)) __PYX_ERR(0, 16565, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_5)) __PYX_ERR(0, 16565, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_5 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":16502 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":16567 * return (cudaError_t(err), ms) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaImportExternalMemory(memHandleDesc : Optional[cudaExternalMemoryHandleDesc]): * """ Imports an external memory object. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_143cudaImportExternalMemory(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_142cudaImportExternalMemory, "cudaImportExternalMemory(cudaExternalMemoryHandleDesc memHandleDesc: Optional[cudaExternalMemoryHandleDesc])\n Imports an external memory object.\n\n Imports an externally allocated memory object and returns a handle to\n that in `extMem_out`.\n\n The properties of the handle being imported must be described in\n `memHandleDesc`. The :py:obj:`~.cudaExternalMemoryHandleDesc` structure\n is defined as follows:\n\n **View CUDA Toolkit Documentation for a C++ code example**\n\n where :py:obj:`~.cudaExternalMemoryHandleDesc.type` specifies the type\n of handle being imported. :py:obj:`~.cudaExternalMemoryHandleType` is\n defined as:\n\n **View CUDA Toolkit Documentation for a C++ code example**\n\n If :py:obj:`~.cudaExternalMemoryHandleDesc.type` is\n :py:obj:`~.cudaExternalMemoryHandleTypeOpaqueFd`, then\n :py:obj:`~.cudaExternalMemoryHandleDesc`::handle::fd must be a valid\n file descriptor referencing a memory object. Ownership of the file\n descriptor is transferred to the CUDA driver when the handle is\n imported successfully. Performing any operations on the file descriptor\n after it is imported results in undefined behavior.\n\n If :py:obj:`~.cudaExternalMemoryHandleDesc.type` is\n :py:obj:`~.cudaExternalMemoryHandleTypeOpaqueWin32`, then exactly one\n of :py:obj:`~.cudaExternalMemoryHandleDesc`::handle::win32::handle and\n :py:obj:`~.cudaExternalMemoryHandleDesc`::handle::win32::name must not\n be NULL. If\n :py:obj:`~.cudaExternalMemoryHandleDesc`::handle::win32::handle is not\n NULL, then it must represent a valid shared NT handle that references a\n memory object. Ownership of this handle is not transferred to CUDA\n after the import operation, so the application must release the handle\n using the appropriate system call. If\n :py:obj:`~.cudaExternalMemoryHandleDesc`::handle::win32::name is not\n NULL, then it must point to a NULL-terminated array of UTF-16\n characters"" that refers to a memory object.\n\n If :py:obj:`~.cudaExternalMemoryHandleDesc.type` is\n :py:obj:`~.cudaExternalMemoryHandleTypeOpaqueWin32Kmt`, then\n :py:obj:`~.cudaExternalMemoryHandleDesc`::handle::win32::handle must be\n non-NULL and\n :py:obj:`~.cudaExternalMemoryHandleDesc`::handle::win32::name must be\n NULL. The handle specified must be a globally shared KMT handle. This\n handle does not hold a reference to the underlying object, and thus\n will be invalid when all references to the memory object are destroyed.\n\n If :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\n be NULL. If\n :py:obj:`~.cudaExternalMemoryHandleDesc`::handle::win32::handle is not\n NULL, then it must represent a valid shared NT handle that is returned\n by ID3D12Device::CreateSharedHandle when referring to a ID3D12Heap\n object. This handle holds a reference to the underlying object. If\n :py:obj:`~.cudaExternalMemoryHandleDesc`::handle::win32::name is not\n NULL, then it must point to a NULL-terminated array of UTF-16\n characters that refers to a ID3D12Heap object.\n\n If :py:obj:`~.cudaExternalMemoryHandleDesc.type` is\n :py:obj:`~.cudaExternalMemoryHandleTypeD3D12Resource`, then exactly one\n of :py:obj:`~.cudaExternalMemoryHandleDesc`::handle::win32::handle and\n :py:obj:`~.cudaExternalMemoryHandleDesc`::handle::win32::name must not\n be NULL. If\n :py:obj:`~.cudaExternalMemoryHandleDesc`::handle::win32::handle is not\n NULL, then it must represent a valid shared NT handle that is returned\n by ID3D12Device::CreateSharedHandle when referring to a ID3D12Resource\n object. This handle holds a reference to the underlying object. If\n :py:obj:`~.cudaExternalMemoryHandleDesc`::handl""e::win32::name is not\n NULL, then it must point to a NULL-terminated array of UTF-16\n characters that refers to a ID3D12Resource object.\n\n If :py:obj:`~.cudaExternalMemoryHandleDesc.type` is\n :py:obj:`~.cudaExternalMemoryHandleTypeD3D11Resource`,then exactly one\n of :py:obj:`~.cudaExternalMemoryHandleDesc`::handle::win32::handle and\n :py:obj:`~.cudaExternalMemoryHandleDesc`::handle::win32::name must not\n be NULL. If\n :py:obj:`~.cudaExternalMemoryHandleDesc`::handle::win32::handle is\n not NULL, then it must represent a valid shared NT handle that is\n returned by IDXGIResource1::CreateSharedHandle when referring to a\n ID3D11Resource object. If\n :py:obj:`~.cudaExternalMemoryHandleDesc`::handle::win32::name is not\n NULL, then it must point to a NULL-terminated array of UTF-16\n characters that refers to a ID3D11Resource object.\n\n If :py:obj:`~.cudaExternalMemoryHandleDesc.type` is\n :py:obj:`~.cudaExternalMemoryHandleTypeD3D11ResourceKmt`, then\n :py:obj:`~.cudaExternalMemoryHandleDesc`::handle::win32::handle must be\n non-NULL and\n :py:obj:`~.cudaExternalMemoryHandleDesc`::handle::win32::name must be\n NULL. The handle specified must be a valid shared KMT handle that is\n returned by IDXGIResource::GetSharedHandle when referring to a\n ID3D11Resource object.\n\n If :py:obj:`~.cudaExternalMemoryHandleDesc.type` is\n :py:obj:`~.cudaExternalMemoryHandleTypeNvSciBuf`, then\n :py:obj:`~.cudaExternalMemoryHandleDesc`::handle::nvSciBufObject must\n be NON-NULL and reference a valid NvSciBuf object. If the NvSciBuf\n object imported into CUDA is also mapped by other drivers, then the\n application must use :py:obj:`~.cudaWaitExternalSemaphoresAsync` or\n :py:obj:`~.cudaSignalExternalSemaphoresAsync` as approprriate barriers\n to maintain coherence between CUDA and the other drivers. See\n :py:obj:`~.cudaExternalSemaphoreWaitSkipNvSciBufMemSync` and\n :py:obj:`~.cuda""ExternalSemaphoreSignalSkipNvSciBufMemSync` for memory\n synchronization.\n\n The size of the memory object must be specified in\n :py:obj:`~.cudaExternalMemoryHandleDesc.size`.\n\n Specifying the flag :py:obj:`~.cudaExternalMemoryDedicated` in\n :py:obj:`~.cudaExternalMemoryHandleDesc.flags` indicates that the\n resource is a dedicated resource. The definition of what a dedicated\n resource is outside the scope of this extension. This flag must be set\n if :py:obj:`~.cudaExternalMemoryHandleDesc.type` is one of the\n following: :py:obj:`~.cudaExternalMemoryHandleTypeD3D12Resource`\n :py:obj:`~.cudaExternalMemoryHandleTypeD3D11Resource`\n :py:obj:`~.cudaExternalMemoryHandleTypeD3D11ResourceKmt`\n\n Parameters\n ----------\n memHandleDesc : :py:obj:`~.cudaExternalMemoryHandleDesc`\n Memory import handle descriptor\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorOperatingSystem`\n extMem_out : :py:obj:`~.cudaExternalMemory_t`\n Returned handle to an external memory object\n\n See Also\n --------\n :py:obj:`~.cudaDestroyExternalMemory`, :py:obj:`~.cudaExternalMemoryGetMappedBuffer`, :py:obj:`~.cudaExternalMemoryGetMappedMipmappedArray`\n\n Notes\n -----\n If 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\n and Cache Control\" chapter from Vulkan specification.\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_143cudaImportExternalMemory = {"cudaImportExternalMemory", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_143cudaImportExternalMemory, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_142cudaImportExternalMemory}; static PyObject *__pyx_pw_4cuda_6cudart_143cudaImportExternalMemory(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_memHandleDesc,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_memHandleDesc)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 16567, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaImportExternalMemory") < 0)) __PYX_ERR(0, 16567, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_memHandleDesc = ((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *)values[0]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaImportExternalMemory", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 16567, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaExternalMemoryHandleDesc, 1, "memHandleDesc", 0))) __PYX_ERR(0, 16568, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_142cudaImportExternalMemory(__pyx_self, __pyx_v_memHandleDesc); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_142cudaImportExternalMemory(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *__pyx_v_memHandleDesc) { struct __pyx_obj_4cuda_6cudart_cudaExternalMemory_t *__pyx_v_extMem_out = 0; struct cudaExternalMemoryHandleDesc *__pyx_v_cmemHandleDesc_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; struct cudaExternalMemoryHandleDesc *__pyx_t_2; int __pyx_t_3; cudaError_t __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__416) __Pyx_RefNannySetupContext("cudaImportExternalMemory", 1); __Pyx_TraceCall("cudaImportExternalMemory", __pyx_f[0], 16567, 0, __PYX_ERR(0, 16567, __pyx_L1_error)); /* "cuda/cudart.pyx":16710 * and Cache Control" chapter from Vulkan specification. * """ * cdef cudaExternalMemory_t extMem_out = cudaExternalMemory_t() # <<<<<<<<<<<<<< * cdef ccudart.cudaExternalMemoryHandleDesc* cmemHandleDesc_ptr = memHandleDesc._ptr if memHandleDesc != None else NULL * err = ccudart.cudaImportExternalMemory(extMem_out._ptr, cmemHandleDesc_ptr) */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalMemory_t)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16710, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_extMem_out = ((struct __pyx_obj_4cuda_6cudart_cudaExternalMemory_t *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":16711 * """ * cdef cudaExternalMemory_t extMem_out = cudaExternalMemory_t() * cdef ccudart.cudaExternalMemoryHandleDesc* cmemHandleDesc_ptr = memHandleDesc._ptr if memHandleDesc != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaImportExternalMemory(extMem_out._ptr, cmemHandleDesc_ptr) * return (cudaError_t(err), extMem_out) */ __pyx_t_1 = PyObject_RichCompare(((PyObject *)__pyx_v_memHandleDesc), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16711, __pyx_L1_error) __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 16711, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_3) { __pyx_t_2 = __pyx_v_memHandleDesc->_ptr; } else { __pyx_t_2 = NULL; } __pyx_v_cmemHandleDesc_ptr = __pyx_t_2; /* "cuda/cudart.pyx":16712 * cdef cudaExternalMemory_t extMem_out = cudaExternalMemory_t() * cdef ccudart.cudaExternalMemoryHandleDesc* cmemHandleDesc_ptr = memHandleDesc._ptr if memHandleDesc != None else NULL * err = ccudart.cudaImportExternalMemory(extMem_out._ptr, cmemHandleDesc_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err), extMem_out) * */ __pyx_t_4 = __pyx_f_4cuda_7ccudart_cudaImportExternalMemory(((cudaExternalMemory_t *)__pyx_v_extMem_out->_ptr), __pyx_v_cmemHandleDesc_ptr); if (unlikely(__pyx_t_4 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 16712, __pyx_L1_error) __pyx_v_err = __pyx_t_4; /* "cuda/cudart.pyx":16713 * cdef ccudart.cudaExternalMemoryHandleDesc* cmemHandleDesc_ptr = memHandleDesc._ptr if memHandleDesc != None else NULL * err = ccudart.cudaImportExternalMemory(extMem_out._ptr, cmemHandleDesc_ptr) * return (cudaError_t(err), extMem_out) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16713, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16713, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16713, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16713, __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)) __PYX_ERR(0, 16713, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_extMem_out); __Pyx_GIVEREF((PyObject *)__pyx_v_extMem_out); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_v_extMem_out))) __PYX_ERR(0, 16713, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":16567 * return (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_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.cudaImportExternalMemory", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_extMem_out); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":16715 * return (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_6cudart_145cudaExternalMemoryGetMappedBuffer(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_144cudaExternalMemoryGetMappedBuffer, "cudaExternalMemoryGetMappedBuffer(extMem, cudaExternalMemoryBufferDesc bufferDesc: Optional[cudaExternalMemoryBufferDesc])\n Maps a buffer onto an imported memory object.\n\n Maps a buffer onto an imported memory object and returns a device\n pointer in `devPtr`.\n\n The properties of the buffer being mapped must be described in\n `bufferDesc`. The :py:obj:`~.cudaExternalMemoryBufferDesc` structure is\n defined as follows:\n\n **View CUDA Toolkit Documentation for a C++ code example**\n\n where :py:obj:`~.cudaExternalMemoryBufferDesc.offset` is the offset in\n the memory object where the buffer's base address is.\n :py:obj:`~.cudaExternalMemoryBufferDesc.size` is the size of the\n buffer. :py:obj:`~.cudaExternalMemoryBufferDesc.flags` must be zero.\n\n The offset and size have to be suitably aligned to match the\n requirements of the external API. Mapping two buffers whose ranges\n overlap may or may not result in the same virtual address being\n returned for the overlapped portion. In such cases, the application\n must ensure that all accesses to that region from the GPU are volatile.\n Otherwise writes made via one address are not guaranteed to be visible\n via the other address, even if they're issued by the same thread. It is\n recommended that applications map the combined range instead of mapping\n separate buffers and then apply the appropriate offsets to the returned\n pointer to derive the individual buffers.\n\n The returned pointer `devPtr` must be freed using :py:obj:`~.cudaFree`.\n\n Parameters\n ----------\n extMem : :py:obj:`~.cudaExternalMemory_t`\n Handle to external memory object\n bufferDesc : :py:obj:`~.cudaExternalMemoryBufferDesc`\n Buffer descriptor\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`\n devPtr : Any\n Returned device pointer to"" buffer\n\n See Also\n --------\n :py:obj:`~.cudaImportExternalMemory`, :py:obj:`~.cudaDestroyExternalMemory`, :py:obj:`~.cudaExternalMemoryGetMappedMipmappedArray`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_145cudaExternalMemoryGetMappedBuffer = {"cudaExternalMemoryGetMappedBuffer", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_145cudaExternalMemoryGetMappedBuffer, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_144cudaExternalMemoryGetMappedBuffer}; static PyObject *__pyx_pw_4cuda_6cudart_145cudaExternalMemoryGetMappedBuffer(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_extMem,&__pyx_n_s_bufferDesc,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_extMem)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 16715, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_bufferDesc)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 16715, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaExternalMemoryGetMappedBuffer", 1, 2, 2, 1); __PYX_ERR(0, 16715, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaExternalMemoryGetMappedBuffer") < 0)) __PYX_ERR(0, 16715, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_extMem = values[0]; __pyx_v_bufferDesc = ((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryBufferDesc *)values[1]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaExternalMemoryGetMappedBuffer", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 16715, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaExternalMemoryBufferDesc, 1, "bufferDesc", 0))) __PYX_ERR(0, 16716, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_144cudaExternalMemoryGetMappedBuffer(__pyx_self, __pyx_v_extMem, __pyx_v_bufferDesc); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_144cudaExternalMemoryGetMappedBuffer(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_extMem, struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryBufferDesc *__pyx_v_bufferDesc) { cudaExternalMemory_t __pyx_v_cextMem; PyObject *__pyx_v_pextMem = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_v_devPtr; struct cudaExternalMemoryBufferDesc *__pyx_v_cbufferDesc_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; struct cudaExternalMemoryBufferDesc *__pyx_t_5; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__417) __Pyx_RefNannySetupContext("cudaExternalMemoryGetMappedBuffer", 1); __Pyx_TraceCall("cudaExternalMemoryGetMappedBuffer", __pyx_f[0], 16715, 0, __PYX_ERR(0, 16715, __pyx_L1_error)); /* "cuda/cudart.pyx":16765 * """ * cdef ccudart.cudaExternalMemory_t cextMem * if extMem is None: # <<<<<<<<<<<<<< * cextMem = 0 * elif isinstance(extMem, (cudaExternalMemory_t,)): */ __pyx_t_1 = (__pyx_v_extMem == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":16766 * cdef ccudart.cudaExternalMemory_t cextMem * if extMem is None: * cextMem = 0 # <<<<<<<<<<<<<< * elif isinstance(extMem, (cudaExternalMemory_t,)): * pextMem = int(extMem) */ __pyx_v_cextMem = ((cudaExternalMemory_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":16765 * """ * cdef ccudart.cudaExternalMemory_t cextMem * if extMem is None: # <<<<<<<<<<<<<< * cextMem = 0 * elif isinstance(extMem, (cudaExternalMemory_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":16767 * if extMem is None: * cextMem = 0 * elif isinstance(extMem, (cudaExternalMemory_t,)): # <<<<<<<<<<<<<< * pextMem = int(extMem) * cextMem = pextMem */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_extMem, __pyx_ptype_4cuda_6cudart_cudaExternalMemory_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":16768 * cextMem = 0 * elif isinstance(extMem, (cudaExternalMemory_t,)): * pextMem = int(extMem) # <<<<<<<<<<<<<< * cextMem = pextMem * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_extMem); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16768, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_pextMem = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":16769 * elif isinstance(extMem, (cudaExternalMemory_t,)): * pextMem = int(extMem) * cextMem = pextMem # <<<<<<<<<<<<<< * else: * pextMem = int(cudaExternalMemory_t(extMem)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pextMem); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 16769, __pyx_L1_error) __pyx_v_cextMem = ((cudaExternalMemory_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":16767 * if extMem is None: * cextMem = 0 * elif isinstance(extMem, (cudaExternalMemory_t,)): # <<<<<<<<<<<<<< * pextMem = int(extMem) * cextMem = pextMem */ goto __pyx_L3; } /* "cuda/cudart.pyx":16771 * cextMem = pextMem * else: * pextMem = int(cudaExternalMemory_t(extMem)) # <<<<<<<<<<<<<< * cextMem = pextMem * cdef void_ptr devPtr = 0 */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalMemory_t), __pyx_v_extMem); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16771, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16771, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_pextMem = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":16772 * else: * pextMem = int(cudaExternalMemory_t(extMem)) * cextMem = pextMem # <<<<<<<<<<<<<< * cdef void_ptr devPtr = 0 * cdef ccudart.cudaExternalMemoryBufferDesc* cbufferDesc_ptr = bufferDesc._ptr if bufferDesc != None else NULL */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pextMem); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 16772, __pyx_L1_error) __pyx_v_cextMem = ((cudaExternalMemory_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":16773 * pextMem = int(cudaExternalMemory_t(extMem)) * cextMem = pextMem * cdef void_ptr devPtr = 0 # <<<<<<<<<<<<<< * cdef ccudart.cudaExternalMemoryBufferDesc* cbufferDesc_ptr = bufferDesc._ptr if bufferDesc != None else NULL * err = ccudart.cudaExternalMemoryGetMappedBuffer(&devPtr, cextMem, cbufferDesc_ptr) */ __pyx_v_devPtr = 0; /* "cuda/cudart.pyx":16774 * cextMem = pextMem * cdef void_ptr devPtr = 0 * cdef ccudart.cudaExternalMemoryBufferDesc* cbufferDesc_ptr = bufferDesc._ptr if bufferDesc != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaExternalMemoryGetMappedBuffer(&devPtr, cextMem, cbufferDesc_ptr) * return (cudaError_t(err), devPtr) */ __pyx_t_4 = PyObject_RichCompare(((PyObject *)__pyx_v_bufferDesc), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16774, __pyx_L1_error) __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 16774, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__pyx_t_1) { __pyx_t_5 = __pyx_v_bufferDesc->_ptr; } else { __pyx_t_5 = NULL; } __pyx_v_cbufferDesc_ptr = __pyx_t_5; /* "cuda/cudart.pyx":16775 * cdef void_ptr devPtr = 0 * cdef ccudart.cudaExternalMemoryBufferDesc* cbufferDesc_ptr = bufferDesc._ptr if bufferDesc != None else NULL * err = ccudart.cudaExternalMemoryGetMappedBuffer(&devPtr, cextMem, cbufferDesc_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err), devPtr) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaExternalMemoryGetMappedBuffer(((void **)(&__pyx_v_devPtr)), __pyx_v_cextMem, __pyx_v_cbufferDesc_ptr); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 16775, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":16776 * cdef ccudart.cudaExternalMemoryBufferDesc* cbufferDesc_ptr = bufferDesc._ptr if bufferDesc != None else NULL * err = ccudart.cudaExternalMemoryGetMappedBuffer(&devPtr, cextMem, cbufferDesc_ptr) * return (cudaError_t(err), devPtr) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16776, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16776, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16776, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(__pyx_v_devPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16776, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16776, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4)) __PYX_ERR(0, 16776, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_2)) __PYX_ERR(0, 16776, __pyx_L1_error); __pyx_t_4 = 0; __pyx_t_2 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":16715 * return (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_4); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaExternalMemoryGetMappedBuffer", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pextMem); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":16778 * return (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_6cudart_147cudaExternalMemoryGetMappedMipmappedArray(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_146cudaExternalMemoryGetMappedMipmappedArray, "cudaExternalMemoryGetMappedMipmappedArray(extMem, cudaExternalMemoryMipmappedArrayDesc mipmapDesc: Optional[cudaExternalMemoryMipmappedArrayDesc])\n Maps a CUDA mipmapped array onto an external memory object.\n\n Maps a CUDA mipmapped array onto an external object and returns a\n handle to it in `mipmap`.\n\n The properties of the CUDA mipmapped array being mapped must be\n described in `mipmapDesc`. The structure\n :py:obj:`~.cudaExternalMemoryMipmappedArrayDesc` is defined as follows:\n\n **View CUDA Toolkit Documentation for a C++ code example**\n\n where :py:obj:`~.cudaExternalMemoryMipmappedArrayDesc.offset` is the\n offset in the memory object where the base level of the mipmap chain\n is. :py:obj:`~.cudaExternalMemoryMipmappedArrayDesc.formatDesc`\n describes the format of the data.\n :py:obj:`~.cudaExternalMemoryMipmappedArrayDesc.extent` specifies the\n dimensions of the base level of the mipmap chain.\n :py:obj:`~.cudaExternalMemoryMipmappedArrayDesc.flags` are flags\n associated with CUDA mipmapped arrays. For further details, please\n refer to the documentation for :py:obj:`~.cudaMalloc3DArray`. Note that\n if the mipmapped array is bound as a color target in the graphics API,\n then the flag :py:obj:`~.cudaArrayColorAttachment` must be specified in\n :py:obj:`~.cudaExternalMemoryMipmappedArrayDesc.flags`.\n :py:obj:`~.cudaExternalMemoryMipmappedArrayDesc.numLevels` specifies\n the total number of levels in the mipmap chain.\n\n The returned CUDA mipmapped array must be freed using\n :py:obj:`~.cudaFreeMipmappedArray`.\n\n Parameters\n ----------\n extMem : :py:obj:`~.cudaExternalMemory_t`\n Handle to external memory object\n mipmapDesc : :py:obj:`~.cudaExternalMemoryMipmappedArrayDesc`\n CUDA array descriptor\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`""\n mipmap : :py:obj:`~.cudaMipmappedArray_t`\n Returned CUDA mipmapped array\n\n See Also\n --------\n :py:obj:`~.cudaImportExternalMemory`, :py:obj:`~.cudaDestroyExternalMemory`, :py:obj:`~.cudaExternalMemoryGetMappedBuffer`\n\n Notes\n -----\n If :py:obj:`~.cudaExternalMemoryHandleDesc.type` is :py:obj:`~.cudaExternalMemoryHandleTypeNvSciBuf`, then :py:obj:`~.cudaExternalMemoryMipmappedArrayDesc.numLevels` must not be greater than 1.\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_147cudaExternalMemoryGetMappedMipmappedArray = {"cudaExternalMemoryGetMappedMipmappedArray", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_147cudaExternalMemoryGetMappedMipmappedArray, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_146cudaExternalMemoryGetMappedMipmappedArray}; static PyObject *__pyx_pw_4cuda_6cudart_147cudaExternalMemoryGetMappedMipmappedArray(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_extMem,&__pyx_n_s_mipmapDesc,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_extMem)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 16778, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_mipmapDesc)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 16778, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaExternalMemoryGetMappedMipmappedArray", 1, 2, 2, 1); __PYX_ERR(0, 16778, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaExternalMemoryGetMappedMipmappedArray") < 0)) __PYX_ERR(0, 16778, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_extMem = values[0]; __pyx_v_mipmapDesc = ((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *)values[1]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaExternalMemoryGetMappedMipmappedArray", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 16778, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc, 1, "mipmapDesc", 0))) __PYX_ERR(0, 16779, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_146cudaExternalMemoryGetMappedMipmappedArray(__pyx_self, __pyx_v_extMem, __pyx_v_mipmapDesc); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_146cudaExternalMemoryGetMappedMipmappedArray(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_extMem, struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_mipmapDesc) { cudaExternalMemory_t __pyx_v_cextMem; PyObject *__pyx_v_pextMem = NULL; struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_t *__pyx_v_mipmap = 0; struct cudaExternalMemoryMipmappedArrayDesc *__pyx_v_cmipmapDesc_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; struct cudaExternalMemoryMipmappedArrayDesc *__pyx_t_5; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__418) __Pyx_RefNannySetupContext("cudaExternalMemoryGetMappedMipmappedArray", 1); __Pyx_TraceCall("cudaExternalMemoryGetMappedMipmappedArray", __pyx_f[0], 16778, 0, __PYX_ERR(0, 16778, __pyx_L1_error)); /* "cuda/cudart.pyx":16832 * """ * cdef ccudart.cudaExternalMemory_t cextMem * if extMem is None: # <<<<<<<<<<<<<< * cextMem = 0 * elif isinstance(extMem, (cudaExternalMemory_t,)): */ __pyx_t_1 = (__pyx_v_extMem == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":16833 * cdef ccudart.cudaExternalMemory_t cextMem * if extMem is None: * cextMem = 0 # <<<<<<<<<<<<<< * elif isinstance(extMem, (cudaExternalMemory_t,)): * pextMem = int(extMem) */ __pyx_v_cextMem = ((cudaExternalMemory_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":16832 * """ * cdef ccudart.cudaExternalMemory_t cextMem * if extMem is None: # <<<<<<<<<<<<<< * cextMem = 0 * elif isinstance(extMem, (cudaExternalMemory_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":16834 * if extMem is None: * cextMem = 0 * elif isinstance(extMem, (cudaExternalMemory_t,)): # <<<<<<<<<<<<<< * pextMem = int(extMem) * cextMem = pextMem */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_extMem, __pyx_ptype_4cuda_6cudart_cudaExternalMemory_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":16835 * cextMem = 0 * elif isinstance(extMem, (cudaExternalMemory_t,)): * pextMem = int(extMem) # <<<<<<<<<<<<<< * cextMem = pextMem * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_extMem); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16835, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_pextMem = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":16836 * elif isinstance(extMem, (cudaExternalMemory_t,)): * pextMem = int(extMem) * cextMem = pextMem # <<<<<<<<<<<<<< * else: * pextMem = int(cudaExternalMemory_t(extMem)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pextMem); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 16836, __pyx_L1_error) __pyx_v_cextMem = ((cudaExternalMemory_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":16834 * if extMem is None: * cextMem = 0 * elif isinstance(extMem, (cudaExternalMemory_t,)): # <<<<<<<<<<<<<< * pextMem = int(extMem) * cextMem = pextMem */ goto __pyx_L3; } /* "cuda/cudart.pyx":16838 * cextMem = pextMem * else: * pextMem = int(cudaExternalMemory_t(extMem)) # <<<<<<<<<<<<<< * cextMem = pextMem * cdef cudaMipmappedArray_t mipmap = cudaMipmappedArray_t() */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalMemory_t), __pyx_v_extMem); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16838, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16838, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_pextMem = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":16839 * else: * pextMem = int(cudaExternalMemory_t(extMem)) * cextMem = pextMem # <<<<<<<<<<<<<< * cdef cudaMipmappedArray_t mipmap = cudaMipmappedArray_t() * cdef ccudart.cudaExternalMemoryMipmappedArrayDesc* cmipmapDesc_ptr = mipmapDesc._ptr if mipmapDesc != None else NULL */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pextMem); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 16839, __pyx_L1_error) __pyx_v_cextMem = ((cudaExternalMemory_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":16840 * pextMem = int(cudaExternalMemory_t(extMem)) * cextMem = pextMem * cdef cudaMipmappedArray_t mipmap = cudaMipmappedArray_t() # <<<<<<<<<<<<<< * cdef ccudart.cudaExternalMemoryMipmappedArrayDesc* cmipmapDesc_ptr = mipmapDesc._ptr if mipmapDesc != None else NULL * err = ccudart.cudaExternalMemoryGetMappedMipmappedArray(mipmap._ptr, cextMem, cmipmapDesc_ptr) */ __pyx_t_4 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMipmappedArray_t)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16840, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_mipmap = ((struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_t *)__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":16841 * cextMem = pextMem * cdef cudaMipmappedArray_t mipmap = cudaMipmappedArray_t() * cdef ccudart.cudaExternalMemoryMipmappedArrayDesc* cmipmapDesc_ptr = mipmapDesc._ptr if mipmapDesc != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaExternalMemoryGetMappedMipmappedArray(mipmap._ptr, cextMem, cmipmapDesc_ptr) * return (cudaError_t(err), mipmap) */ __pyx_t_4 = PyObject_RichCompare(((PyObject *)__pyx_v_mipmapDesc), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16841, __pyx_L1_error) __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 16841, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__pyx_t_1) { __pyx_t_5 = __pyx_v_mipmapDesc->_ptr; } else { __pyx_t_5 = NULL; } __pyx_v_cmipmapDesc_ptr = __pyx_t_5; /* "cuda/cudart.pyx":16842 * cdef cudaMipmappedArray_t mipmap = cudaMipmappedArray_t() * cdef ccudart.cudaExternalMemoryMipmappedArrayDesc* cmipmapDesc_ptr = mipmapDesc._ptr if mipmapDesc != None else NULL * err = ccudart.cudaExternalMemoryGetMappedMipmappedArray(mipmap._ptr, cextMem, cmipmapDesc_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err), mipmap) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaExternalMemoryGetMappedMipmappedArray(((cudaMipmappedArray_t *)__pyx_v_mipmap->_ptr), __pyx_v_cextMem, __pyx_v_cmipmapDesc_ptr); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 16842, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":16843 * cdef ccudart.cudaExternalMemoryMipmappedArrayDesc* cmipmapDesc_ptr = mipmapDesc._ptr if mipmapDesc != None else NULL * err = ccudart.cudaExternalMemoryGetMappedMipmappedArray(mipmap._ptr, cextMem, cmipmapDesc_ptr) * return (cudaError_t(err), mipmap) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16843, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16843, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16843, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16843, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 16843, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_mipmap); __Pyx_GIVEREF((PyObject *)__pyx_v_mipmap); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_mipmap))) __PYX_ERR(0, 16843, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":16778 * return (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_4); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":16845 * return (cudaError_t(err), mipmap) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDestroyExternalMemory(extMem): * """ Destroys an external memory object. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_149cudaDestroyExternalMemory(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_148cudaDestroyExternalMemory, "cudaDestroyExternalMemory(extMem)\n Destroys an external memory object.\n\n Destroys the specified external memory object. Any existing buffers and\n CUDA mipmapped arrays mapped onto this object must no longer be used\n and must be explicitly freed using :py:obj:`~.cudaFree` and\n :py:obj:`~.cudaFreeMipmappedArray` respectively.\n\n Parameters\n ----------\n extMem : :py:obj:`~.cudaExternalMemory_t`\n External memory object to be destroyed\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidResourceHandle`\n\n See Also\n --------\n :py:obj:`~.cudaImportExternalMemory`, :py:obj:`~.cudaExternalMemoryGetMappedBuffer`, :py:obj:`~.cudaExternalMemoryGetMappedMipmappedArray`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_149cudaDestroyExternalMemory = {"cudaDestroyExternalMemory", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_149cudaDestroyExternalMemory, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_148cudaDestroyExternalMemory}; static PyObject *__pyx_pw_4cuda_6cudart_149cudaDestroyExternalMemory(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_extMem,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_extMem)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 16845, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaDestroyExternalMemory") < 0)) __PYX_ERR(0, 16845, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_extMem = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaDestroyExternalMemory", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 16845, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaDestroyExternalMemory", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_148cudaDestroyExternalMemory(__pyx_self, __pyx_v_extMem); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_148cudaDestroyExternalMemory(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_extMem) { cudaExternalMemory_t __pyx_v_cextMem; PyObject *__pyx_v_pextMem = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; cudaError_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__419) __Pyx_RefNannySetupContext("cudaDestroyExternalMemory", 1); __Pyx_TraceCall("cudaDestroyExternalMemory", __pyx_f[0], 16845, 0, __PYX_ERR(0, 16845, __pyx_L1_error)); /* "cuda/cudart.pyx":16869 * """ * cdef ccudart.cudaExternalMemory_t cextMem * if extMem is None: # <<<<<<<<<<<<<< * cextMem = 0 * elif isinstance(extMem, (cudaExternalMemory_t,)): */ __pyx_t_1 = (__pyx_v_extMem == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":16870 * cdef ccudart.cudaExternalMemory_t cextMem * if extMem is None: * cextMem = 0 # <<<<<<<<<<<<<< * elif isinstance(extMem, (cudaExternalMemory_t,)): * pextMem = int(extMem) */ __pyx_v_cextMem = ((cudaExternalMemory_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":16869 * """ * cdef ccudart.cudaExternalMemory_t cextMem * if extMem is None: # <<<<<<<<<<<<<< * cextMem = 0 * elif isinstance(extMem, (cudaExternalMemory_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":16871 * if extMem is None: * cextMem = 0 * elif isinstance(extMem, (cudaExternalMemory_t,)): # <<<<<<<<<<<<<< * pextMem = int(extMem) * cextMem = pextMem */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_extMem, __pyx_ptype_4cuda_6cudart_cudaExternalMemory_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":16872 * cextMem = 0 * elif isinstance(extMem, (cudaExternalMemory_t,)): * pextMem = int(extMem) # <<<<<<<<<<<<<< * cextMem = pextMem * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_extMem); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16872, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_pextMem = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":16873 * elif isinstance(extMem, (cudaExternalMemory_t,)): * pextMem = int(extMem) * cextMem = pextMem # <<<<<<<<<<<<<< * else: * pextMem = int(cudaExternalMemory_t(extMem)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pextMem); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 16873, __pyx_L1_error) __pyx_v_cextMem = ((cudaExternalMemory_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":16871 * if extMem is None: * cextMem = 0 * elif isinstance(extMem, (cudaExternalMemory_t,)): # <<<<<<<<<<<<<< * pextMem = int(extMem) * cextMem = pextMem */ goto __pyx_L3; } /* "cuda/cudart.pyx":16875 * cextMem = pextMem * else: * pextMem = int(cudaExternalMemory_t(extMem)) # <<<<<<<<<<<<<< * cextMem = pextMem * err = ccudart.cudaDestroyExternalMemory(cextMem) */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalMemory_t), __pyx_v_extMem); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16875, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16875, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_pextMem = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":16876 * else: * pextMem = int(cudaExternalMemory_t(extMem)) * cextMem = pextMem # <<<<<<<<<<<<<< * err = ccudart.cudaDestroyExternalMemory(cextMem) * return (cudaError_t(err),) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pextMem); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 16876, __pyx_L1_error) __pyx_v_cextMem = ((cudaExternalMemory_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":16877 * pextMem = int(cudaExternalMemory_t(extMem)) * cextMem = pextMem * err = ccudart.cudaDestroyExternalMemory(cextMem) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_5 = __pyx_f_4cuda_7ccudart_cudaDestroyExternalMemory(__pyx_v_cextMem); if (unlikely(__pyx_t_5 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 16877, __pyx_L1_error) __pyx_v_err = __pyx_t_5; /* "cuda/cudart.pyx":16878 * cextMem = pextMem * err = ccudart.cudaDestroyExternalMemory(cextMem) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16878, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16878, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16878, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16878, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 16878, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":16845 * return (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_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.cudaDestroyExternalMemory", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pextMem); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":16880 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaImportExternalSemaphore(semHandleDesc : Optional[cudaExternalSemaphoreHandleDesc]): * """ Imports an external semaphore. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_151cudaImportExternalSemaphore(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_150cudaImportExternalSemaphore, "cudaImportExternalSemaphore(cudaExternalSemaphoreHandleDesc semHandleDesc: Optional[cudaExternalSemaphoreHandleDesc])\n Imports an external semaphore.\n\n Imports an externally allocated synchronization object and returns a\n handle to that in `extSem_out`.\n\n The properties of the handle being imported must be described in\n `semHandleDesc`. The :py:obj:`~.cudaExternalSemaphoreHandleDesc` is\n defined as follows:\n\n **View CUDA Toolkit Documentation for a C++ code example**\n\n where :py:obj:`~.cudaExternalSemaphoreHandleDesc.type` specifies the\n type of handle being imported.\n :py:obj:`~.cudaExternalSemaphoreHandleType` is defined as:\n\n **View CUDA Toolkit Documentation for a C++ code example**\n\n If :py:obj:`~.cudaExternalSemaphoreHandleDesc.type` is\n :py:obj:`~.cudaExternalSemaphoreHandleTypeOpaqueFd`, then\n :py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::fd must be a valid\n file descriptor referencing a synchronization object. Ownership of the\n file descriptor is transferred to the CUDA driver when the handle is\n imported successfully. Performing any operations on the file descriptor\n after it is imported results in undefined behavior.\n\n If :py:obj:`~.cudaExternalSemaphoreHandleDesc.type` is\n :py:obj:`~.cudaExternalSemaphoreHandleTypeOpaqueWin32`, then exactly\n one of\n :py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::handle and\n :py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::name must\n not be NULL. If\n :py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::handle is\n not NULL, then it must represent a valid shared NT handle that\n references a synchronization object. Ownership of this handle is not\n transferred to CUDA after the import operation, so the application must\n release the handle using the appropriate system call. If\n :py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::name is not\n NULL, then it ""must name a valid synchronization object.\n\n If :py:obj:`~.cudaExternalSemaphoreHandleDesc.type` is\n :py:obj:`~.cudaExternalSemaphoreHandleTypeOpaqueWin32Kmt`, then\n :py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::handle must\n be non-NULL and\n :py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::name must\n be NULL. The handle specified must be a globally shared KMT handle.\n This handle does not hold a reference to the underlying object, and\n thus will be invalid when all references to the synchronization object\n are destroyed.\n\n If :py:obj:`~.cudaExternalSemaphoreHandleDesc.type` is\n :py:obj:`~.cudaExternalSemaphoreHandleTypeD3D12Fence`, then exactly one\n of :py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::handle\n and :py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::name\n must not be NULL. If\n :py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::handle is\n not NULL, then it must represent a valid shared NT handle that is\n returned by ID3D12Device::CreateSharedHandle when referring to a\n ID3D12Fence object. This handle holds a reference to the underlying\n object. If\n :py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::name is not\n NULL, then it must name a valid synchronization object that refers to a\n valid ID3D12Fence object.\n\n If :py:obj:`~.cudaExternalSemaphoreHandleDesc.type` is\n :py:obj:`~.cudaExternalSemaphoreHandleTypeD3D11Fence`, then exactly one\n of :py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::handle\n and :py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::name\n must not be NULL. If\n :py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::handle is\n not NULL, then it must represent a valid shared NT handle that is\n returned by ID3D11Fence::CreateSharedHandle. If\n :py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::name is not\n NULL, then it"" must name a valid synchronization object that refers to a\n valid ID3D11Fence object.\n\n If :py:obj:`~.cudaExternalSemaphoreHandleDesc.type` is\n :py:obj:`~.cudaExternalSemaphoreHandleTypeNvSciSync`, then\n :py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::nvSciSyncObj\n represents a valid NvSciSyncObj.\n\n :py:obj:`~.cudaExternalSemaphoreHandleTypeKeyedMutex`, then exactly one\n of :py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::handle\n and :py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::name\n must not be NULL. If\n :py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::handle is\n not NULL, then it represent a valid shared NT handle that is returned\n by IDXGIResource1::CreateSharedHandle when referring to a\n IDXGIKeyedMutex object.\n\n If :py:obj:`~.cudaExternalSemaphoreHandleDesc.type` is\n :py:obj:`~.cudaExternalSemaphoreHandleTypeKeyedMutexKmt`, then\n :py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::handle must\n be non-NULL and\n :py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::name must\n be NULL. The handle specified must represent a valid KMT handle that is\n returned by IDXGIResource::GetSharedHandle when referring to a\n IDXGIKeyedMutex object.\n\n If :py:obj:`~.cudaExternalSemaphoreHandleDesc.type` is\n :py:obj:`~.cudaExternalSemaphoreHandleTypeTimelineSemaphoreFd`, then\n :py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::fd must be a valid\n file descriptor referencing a synchronization object. Ownership of the\n file descriptor is transferred to the CUDA driver when the handle is\n imported successfully. Performing any operations on the file descriptor\n after it is imported results in undefined behavior.\n\n If :py:obj:`~.cudaExternalSemaphoreHandleDesc.type` is\n :py:obj:`~.cudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32`, then\n exactly one of\n :py:obj:`~.cudaExternalSemaphoreHandleDes""c`::handle::win32::handle and\n :py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::name must\n not be NULL. If\n :py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::handle is\n not NULL, then it must represent a valid shared NT handle that\n references a synchronization object. Ownership of this handle is not\n transferred to CUDA after the import operation, so the application must\n release the handle using the appropriate system call. If\n :py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::name is not\n NULL, then it must name a valid synchronization object.\n\n Parameters\n ----------\n semHandleDesc : :py:obj:`~.cudaExternalSemaphoreHandleDesc`\n Semaphore import handle descriptor\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorOperatingSystem`\n extSem_out : :py:obj:`~.cudaExternalSemaphore_t`\n Returned handle to an external semaphore\n\n See Also\n --------\n :py:obj:`~.cudaDestroyExternalSemaphore`, :py:obj:`~.cudaSignalExternalSemaphoresAsync`, :py:obj:`~.cudaWaitExternalSemaphoresAsync`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_151cudaImportExternalSemaphore = {"cudaImportExternalSemaphore", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_151cudaImportExternalSemaphore, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_150cudaImportExternalSemaphore}; static PyObject *__pyx_pw_4cuda_6cudart_151cudaImportExternalSemaphore(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_semHandleDesc,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_semHandleDesc)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 16880, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaImportExternalSemaphore") < 0)) __PYX_ERR(0, 16880, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_semHandleDesc = ((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc *)values[0]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaImportExternalSemaphore", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 16880, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaExternalSemaphoreHandleDesc, 1, "semHandleDesc", 0))) __PYX_ERR(0, 16881, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_150cudaImportExternalSemaphore(__pyx_self, __pyx_v_semHandleDesc); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_150cudaImportExternalSemaphore(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc *__pyx_v_semHandleDesc) { struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphore_t *__pyx_v_extSem_out = 0; struct cudaExternalSemaphoreHandleDesc *__pyx_v_csemHandleDesc_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; struct cudaExternalSemaphoreHandleDesc *__pyx_t_2; int __pyx_t_3; cudaError_t __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__420) __Pyx_RefNannySetupContext("cudaImportExternalSemaphore", 1); __Pyx_TraceCall("cudaImportExternalSemaphore", __pyx_f[0], 16880, 0, __PYX_ERR(0, 16880, __pyx_L1_error)); /* "cuda/cudart.pyx":17018 * :py:obj:`~.cudaDestroyExternalSemaphore`, :py:obj:`~.cudaSignalExternalSemaphoresAsync`, :py:obj:`~.cudaWaitExternalSemaphoresAsync` * """ * cdef cudaExternalSemaphore_t extSem_out = cudaExternalSemaphore_t() # <<<<<<<<<<<<<< * cdef ccudart.cudaExternalSemaphoreHandleDesc* csemHandleDesc_ptr = semHandleDesc._ptr if semHandleDesc != None else NULL * err = ccudart.cudaImportExternalSemaphore(extSem_out._ptr, csemHandleDesc_ptr) */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalSemaphore_t)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17018, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_extSem_out = ((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphore_t *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":17019 * """ * cdef cudaExternalSemaphore_t extSem_out = cudaExternalSemaphore_t() * cdef ccudart.cudaExternalSemaphoreHandleDesc* csemHandleDesc_ptr = semHandleDesc._ptr if semHandleDesc != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaImportExternalSemaphore(extSem_out._ptr, csemHandleDesc_ptr) * return (cudaError_t(err), extSem_out) */ __pyx_t_1 = PyObject_RichCompare(((PyObject *)__pyx_v_semHandleDesc), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17019, __pyx_L1_error) __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 17019, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_3) { __pyx_t_2 = __pyx_v_semHandleDesc->_ptr; } else { __pyx_t_2 = NULL; } __pyx_v_csemHandleDesc_ptr = __pyx_t_2; /* "cuda/cudart.pyx":17020 * cdef cudaExternalSemaphore_t extSem_out = cudaExternalSemaphore_t() * cdef ccudart.cudaExternalSemaphoreHandleDesc* csemHandleDesc_ptr = semHandleDesc._ptr if semHandleDesc != None else NULL * err = ccudart.cudaImportExternalSemaphore(extSem_out._ptr, csemHandleDesc_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err), extSem_out) * */ __pyx_t_4 = __pyx_f_4cuda_7ccudart_cudaImportExternalSemaphore(((cudaExternalSemaphore_t *)__pyx_v_extSem_out->_ptr), __pyx_v_csemHandleDesc_ptr); if (unlikely(__pyx_t_4 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 17020, __pyx_L1_error) __pyx_v_err = __pyx_t_4; /* "cuda/cudart.pyx":17021 * cdef ccudart.cudaExternalSemaphoreHandleDesc* csemHandleDesc_ptr = semHandleDesc._ptr if semHandleDesc != None else NULL * err = ccudart.cudaImportExternalSemaphore(extSem_out._ptr, csemHandleDesc_ptr) * return (cudaError_t(err), extSem_out) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17021, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 17021, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17021, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17021, __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)) __PYX_ERR(0, 17021, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_extSem_out); __Pyx_GIVEREF((PyObject *)__pyx_v_extSem_out); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_v_extSem_out))) __PYX_ERR(0, 17021, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":16880 * return (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_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.cudaImportExternalSemaphore", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_extSem_out); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":17023 * return (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_6cudart_153cudaSignalExternalSemaphoresAsync(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_152cudaSignalExternalSemaphoresAsync, "cudaSignalExternalSemaphoresAsync(extSemArray: Optional[Tuple[cudaExternalSemaphore_t] | List[cudaExternalSemaphore_t]], paramsArray: Optional[Tuple[cudaExternalSemaphoreSignalParams] | List[cudaExternalSemaphoreSignalParams]], unsigned int numExtSems, stream)\n Signals a set of external semaphore objects.\n\n Enqueues a signal operation on a set of externally allocated semaphore\n object in the specified stream. The operations will be executed when\n all prior operations in the stream complete.\n\n The exact semantics of signaling a semaphore depends on the type of the\n object.\n\n If the semaphore object is any one of the following types:\n :py:obj:`~.cudaExternalSemaphoreHandleTypeOpaqueFd`,\n :py:obj:`~.cudaExternalSemaphoreHandleTypeOpaqueWin32`,\n :py:obj:`~.cudaExternalSemaphoreHandleTypeOpaqueWin32Kmt` then\n signaling the semaphore will set it to the signaled state.\n\n If 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\n the semaphore will be set to the value specified in\n :py:obj:`~.cudaExternalSemaphoreSignalParams`::params::fence::value.\n\n If the semaphore object is of the type\n :py:obj:`~.cudaExternalSemaphoreHandleTypeNvSciSync` this API sets\n :py:obj:`~.cudaExternalSemaphoreSignalParams`::params::nvSciSync::fence\n to a value that can be used by subsequent waiters of the same NvSciSync\n object to order operations with those currently submitted in `stream`.\n Such an update will overwrite previous contents of\n :py:obj:`~.cudaExternalSemaphoreSignalParams`::params::nvSciSync::fence.\n By default, signaling such an external semaphore object causes\n appropriate memory synchronization operations to be performed ov""er all\n the external memory objects that are imported as\n :py:obj:`~.cudaExternalMemoryHandleTypeNvSciBuf`. This ensures that any\n subsequent accesses made by other importers of the same set of NvSciBuf\n memory object(s) are coherent. These operations can be skipped by\n specifying the flag\n :py:obj:`~.cudaExternalSemaphoreSignalSkipNvSciBufMemSync`, which can\n be used as a performance optimization when data coherency is not\n required. But specifying this flag in scenarios where data coherency is\n required results in undefined behavior. Also, for semaphore object of\n the type :py:obj:`~.cudaExternalSemaphoreHandleTypeNvSciSync`, if the\n NvSciSyncAttrList used to create the NvSciSyncObj had not set the flags\n in :py:obj:`~.cudaDeviceGetNvSciSyncAttributes` to\n cudaNvSciSyncAttrSignal, this API will return cudaErrorNotSupported.\n\n :py:obj:`~.cudaExternalSemaphoreSignalParams`::params::nvSciSync::fence\n associated with semaphore object of the type\n :py:obj:`~.cudaExternalSemaphoreHandleTypeNvSciSync` can be\n deterministic. For this the NvSciSyncAttrList used to create the\n semaphore object must have value of\n NvSciSyncAttrKey_RequireDeterministicFences key set to true.\n Deterministic fences allow users to enqueue a wait over the semaphore\n object even before corresponding signal is enqueued. For such a\n semaphore object, CUDA guarantees that each signal operation will\n increment the fence value by '1'. Users are expected to track count of\n signals enqueued on the semaphore object and insert waits accordingly.\n When such a semaphore object is signaled from multiple streams, due to\n concurrent stream execution, it is possible that the order in which the\n semaphore gets signaled is indeterministic. This could lead to waiters\n of the semaphore getting unblocked incorrectly. Users are expected to\n handle such situations, either by not using the same semaphore ""object\n with deterministic fence support enabled in different streams or by\n adding explicit dependency amongst such streams so that the semaphore\n is signaled in order.\n\n If the semaphore object is any one of the following types:\n :py:obj:`~.cudaExternalSemaphoreHandleTypeKeyedMutex`,\n :py:obj:`~.cudaExternalSemaphoreHandleTypeKeyedMutexKmt`, then the\n keyed mutex will be released with the key specified in\n :py:obj:`~.cudaExternalSemaphoreSignalParams`::params::keyedmutex::key.\n\n Parameters\n ----------\n extSemArray : List[:py:obj:`~.cudaExternalSemaphore_t`]\n Set of external semaphores to be signaled\n paramsArray : List[:py:obj:`~.cudaExternalSemaphoreSignalParams`]\n Array of semaphore parameters\n numExtSems : unsigned int\n Number of semaphores to signal\n stream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n Stream to enqueue the signal operations in\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidResourceHandle`\n\n See Also\n --------\n :py:obj:`~.cudaImportExternalSemaphore`, :py:obj:`~.cudaDestroyExternalSemaphore`, :py:obj:`~.cudaWaitExternalSemaphoresAsync`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_153cudaSignalExternalSemaphoresAsync = {"cudaSignalExternalSemaphoresAsync", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_153cudaSignalExternalSemaphoresAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_152cudaSignalExternalSemaphoresAsync}; static PyObject *__pyx_pw_4cuda_6cudart_153cudaSignalExternalSemaphoresAsync(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_extSemArray_2,&__pyx_n_s_paramsArray_2,&__pyx_n_s_numExtSems_2,&__pyx_n_s_stream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_extSemArray_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17023, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_paramsArray_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17023, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaSignalExternalSemaphoresAsync", 1, 4, 4, 1); __PYX_ERR(0, 17023, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_numExtSems_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17023, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaSignalExternalSemaphoresAsync", 1, 4, 4, 2); __PYX_ERR(0, 17023, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17023, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaSignalExternalSemaphoresAsync", 1, 4, 4, 3); __PYX_ERR(0, 17023, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaSignalExternalSemaphoresAsync") < 0)) __PYX_ERR(0, 17023, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); } __pyx_v_extSemArray = values[0]; __pyx_v_paramsArray = values[1]; __pyx_v_numExtSems = __Pyx_PyInt_As_unsigned_int(values[2]); if (unlikely((__pyx_v_numExtSems == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 17024, __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, 17023, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaSignalExternalSemaphoresAsync", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_152cudaSignalExternalSemaphoresAsync(__pyx_self, __pyx_v_extSemArray, __pyx_v_paramsArray, __pyx_v_numExtSems, __pyx_v_stream); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_33cudaSignalExternalSemaphoresAsync_2generator5(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":17127 * cstream = 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[ccudart.cudaExternalSemaphoreSignalParams,] or List[ccudart.cudaExternalSemaphoreSignalParams,]") * extSemArray = [] if extSemArray is None else extSemArray */ static PyObject *__pyx_pf_4cuda_6cudart_33cudaSignalExternalSemaphoresAsync_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct_5_genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_5_genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_5_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_5_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 17127, __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_6cudart_33cudaSignalExternalSemaphoresAsync_2generator5, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaSignalExternalSemaphoresAsyn, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 17127, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.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_6cudart_33cudaSignalExternalSemaphoresAsync_2generator5(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_5_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_5_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 17127, 0, __PYX_ERR(0, 17127, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 17127, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 17127, __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, 17127, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17127, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 17127, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 17127, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17127, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 17127, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 17127, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17127, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 17127, __pyx_L1_error) } 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_ptype_4cuda_6cudart_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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_33cudaSignalExternalSemaphoresAsync_5generator6(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":17130 * raise TypeError("Argument 'paramsArray' is not instance of type (expected Tuple[ccudart.cudaExternalSemaphoreSignalParams,] or List[ccudart.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[ccudart.cudaExternalSemaphore_t,] or List[ccudart.cudaExternalSemaphore_t,]") * cdef ccudart.cudaExternalSemaphore_t* cextSemArray = NULL */ static PyObject *__pyx_pf_4cuda_6cudart_33cudaSignalExternalSemaphoresAsync_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct_6_genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_6_genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_6_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_6_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 17130, __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_6cudart_33cudaSignalExternalSemaphoresAsync_5generator6, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaSignalExternalSemaphoresAsyn, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 17130, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.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_6cudart_33cudaSignalExternalSemaphoresAsync_5generator6(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_6_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_6_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 17130, 0, __PYX_ERR(0, 17130, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 17130, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 17130, __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, 17130, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17130, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 17130, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 17130, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17130, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 17130, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 17130, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17130, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 17130, __pyx_L1_error) } 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_ptype_4cuda_6cudart_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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":17023 * return (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_6cudart_152cudaSignalExternalSemaphoresAsync(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_cstream; PyObject *__pyx_v_pstream = NULL; cudaExternalSemaphore_t *__pyx_v_cextSemArray; Py_ssize_t __pyx_v_idx; struct cudaExternalSemaphoreSignalParams *__pyx_v_cparamsArray; cudaError_t __pyx_v_err; PyObject *__pyx_gb_4cuda_6cudart_33cudaSignalExternalSemaphoresAsync_2generator5 = 0; PyObject *__pyx_gb_4cuda_6cudart_33cudaSignalExternalSemaphoresAsync_5generator6 = 0; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; Py_ssize_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; Py_ssize_t __pyx_t_8; Py_ssize_t __pyx_t_9; cudaExternalSemaphore_t *__pyx_t_10; struct cudaExternalSemaphoreSignalParams *__pyx_t_11; cudaError_t __pyx_t_12; PyObject *__pyx_t_13 = NULL; unsigned int __pyx_t_14; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__421) __Pyx_RefNannySetupContext("cudaSignalExternalSemaphoresAsync", 0); __Pyx_TraceCall("cudaSignalExternalSemaphoresAsync", __pyx_f[0], 17023, 0, __PYX_ERR(0, 17023, __pyx_L1_error)); __Pyx_INCREF(__pyx_v_extSemArray); __Pyx_INCREF(__pyx_v_paramsArray); /* "cuda/cudart.pyx":17118 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_stream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":17119 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":17118 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":17120 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":17121 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17121, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pstream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":17122 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17122, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":17120 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L3; } /* "cuda/cudart.pyx":17124 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * paramsArray = [] if paramsArray is None else paramsArray */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17124, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17124, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pstream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":17125 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * paramsArray = [] if paramsArray is None else paramsArray * if not all(isinstance(_x, (cudaExternalSemaphoreSignalParams,)) for _x in paramsArray): */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17125, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":17126 * pstream = int(cudaStream_t(stream)) * cstream = 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[ccudart.cudaExternalSemaphoreSignalParams,] or List[ccudart.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, 17126, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __pyx_t_3; __pyx_t_3 = 0; } else { __Pyx_INCREF(__pyx_v_paramsArray); __pyx_t_5 = __pyx_v_paramsArray; } __Pyx_DECREF_SET(__pyx_v_paramsArray, __pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":17127 * cstream = 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[ccudart.cudaExternalSemaphoreSignalParams,] or List[ccudart.cudaExternalSemaphoreSignalParams,]") * extSemArray = [] if extSemArray is None else extSemArray */ __pyx_t_5 = __pyx_pf_4cuda_6cudart_33cudaSignalExternalSemaphoresAsync_genexpr(NULL, __pyx_v_paramsArray); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17127, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17127, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 17127, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_2 = (!__pyx_t_1); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":17128 * 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[ccudart.cudaExternalSemaphoreSignalParams,] or List[ccudart.cudaExternalSemaphoreSignalParams,]") # <<<<<<<<<<<<<< * extSemArray = [] if extSemArray is None else extSemArray * if not all(isinstance(_x, (cudaExternalSemaphore_t,)) for _x in extSemArray): */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__422, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17128, __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, 17128, __pyx_L1_error) /* "cuda/cudart.pyx":17127 * cstream = 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[ccudart.cudaExternalSemaphoreSignalParams,] or List[ccudart.cudaExternalSemaphoreSignalParams,]") * extSemArray = [] if extSemArray is None else extSemArray */ } /* "cuda/cudart.pyx":17129 * if not all(isinstance(_x, (cudaExternalSemaphoreSignalParams,)) for _x in paramsArray): * raise TypeError("Argument 'paramsArray' is not instance of type (expected Tuple[ccudart.cudaExternalSemaphoreSignalParams,] or List[ccudart.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[ccudart.cudaExternalSemaphore_t,] or List[ccudart.cudaExternalSemaphore_t,]") */ __pyx_t_2 = (__pyx_v_extSemArray == Py_None); if (__pyx_t_2) { __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __pyx_t_5; __pyx_t_5 = 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/cudart.pyx":17130 * raise TypeError("Argument 'paramsArray' is not instance of type (expected Tuple[ccudart.cudaExternalSemaphoreSignalParams,] or List[ccudart.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[ccudart.cudaExternalSemaphore_t,] or List[ccudart.cudaExternalSemaphore_t,]") * cdef ccudart.cudaExternalSemaphore_t* cextSemArray = NULL */ __pyx_t_3 = __pyx_pf_4cuda_6cudart_33cudaSignalExternalSemaphoresAsync_3genexpr(NULL, __pyx_v_extSemArray); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17130, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_Generator_Next(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17130, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 17130, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = (!__pyx_t_2); if (unlikely(__pyx_t_1)) { /* "cuda/cudart.pyx":17131 * 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[ccudart.cudaExternalSemaphore_t,] or List[ccudart.cudaExternalSemaphore_t,]") # <<<<<<<<<<<<<< * cdef ccudart.cudaExternalSemaphore_t* cextSemArray = NULL * if len(extSemArray) > 0: */ __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__423, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __PYX_ERR(0, 17131, __pyx_L1_error) /* "cuda/cudart.pyx":17130 * raise TypeError("Argument 'paramsArray' is not instance of type (expected Tuple[ccudart.cudaExternalSemaphoreSignalParams,] or List[ccudart.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[ccudart.cudaExternalSemaphore_t,] or List[ccudart.cudaExternalSemaphore_t,]") * cdef ccudart.cudaExternalSemaphore_t* cextSemArray = NULL */ } /* "cuda/cudart.pyx":17132 * if not all(isinstance(_x, (cudaExternalSemaphore_t,)) for _x in extSemArray): * raise TypeError("Argument 'extSemArray' is not instance of type (expected Tuple[ccudart.cudaExternalSemaphore_t,] or List[ccudart.cudaExternalSemaphore_t,]") * cdef ccudart.cudaExternalSemaphore_t* cextSemArray = NULL # <<<<<<<<<<<<<< * if len(extSemArray) > 0: * cextSemArray = calloc(len(extSemArray), sizeof(ccudart.cudaExternalSemaphore_t)) */ __pyx_v_cextSemArray = NULL; /* "cuda/cudart.pyx":17133 * raise TypeError("Argument 'extSemArray' is not instance of type (expected Tuple[ccudart.cudaExternalSemaphore_t,] or List[ccudart.cudaExternalSemaphore_t,]") * cdef ccudart.cudaExternalSemaphore_t* cextSemArray = NULL * if len(extSemArray) > 0: # <<<<<<<<<<<<<< * cextSemArray = calloc(len(extSemArray), sizeof(ccudart.cudaExternalSemaphore_t)) * if cextSemArray is NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_extSemArray); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17133, __pyx_L1_error) __pyx_t_1 = (__pyx_t_6 > 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":17134 * cdef ccudart.cudaExternalSemaphore_t* cextSemArray = NULL * if len(extSemArray) > 0: * cextSemArray = calloc(len(extSemArray), sizeof(ccudart.cudaExternalSemaphore_t)) # <<<<<<<<<<<<<< * if cextSemArray is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(extSemArray)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphore_t))) */ __pyx_t_6 = PyObject_Length(__pyx_v_extSemArray); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17134, __pyx_L1_error) __pyx_v_cextSemArray = ((cudaExternalSemaphore_t *)calloc(__pyx_t_6, (sizeof(cudaExternalSemaphore_t)))); /* "cuda/cudart.pyx":17135 * if len(extSemArray) > 0: * cextSemArray = calloc(len(extSemArray), sizeof(ccudart.cudaExternalSemaphore_t)) * if cextSemArray is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(extSemArray)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphore_t))) * else: */ __pyx_t_1 = (__pyx_v_cextSemArray == NULL); if (unlikely(__pyx_t_1)) { /* "cuda/cudart.pyx":17136 * cextSemArray = calloc(len(extSemArray), sizeof(ccudart.cudaExternalSemaphore_t)) * if cextSemArray is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(extSemArray)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphore_t))) # <<<<<<<<<<<<<< * else: * for idx in range(len(extSemArray)): */ __pyx_t_6 = PyObject_Length(__pyx_v_extSemArray); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17136, __pyx_L1_error) __pyx_t_5 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17136, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17136, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17136, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_5, __pyx_n_u_x_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17136, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyInt_FromSize_t((sizeof(cudaExternalSemaphore_t))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17136, __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, 17136, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17136, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 17136, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_7, 0, 0, 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __PYX_ERR(0, 17136, __pyx_L1_error) /* "cuda/cudart.pyx":17135 * if len(extSemArray) > 0: * cextSemArray = calloc(len(extSemArray), sizeof(ccudart.cudaExternalSemaphore_t)) * if cextSemArray is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(extSemArray)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphore_t))) * else: */ } /* "cuda/cudart.pyx":17138 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(extSemArray)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphore_t))) * else: * for idx in range(len(extSemArray)): # <<<<<<<<<<<<<< * cextSemArray[idx] = (extSemArray[idx])._ptr[0] * cdef ccudart.cudaExternalSemaphoreSignalParams* cparamsArray = NULL */ /*else*/ { __pyx_t_6 = PyObject_Length(__pyx_v_extSemArray); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17138, __pyx_L1_error) __pyx_t_8 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_idx = __pyx_t_9; /* "cuda/cudart.pyx":17139 * else: * for idx in range(len(extSemArray)): * cextSemArray[idx] = (extSemArray[idx])._ptr[0] # <<<<<<<<<<<<<< * cdef ccudart.cudaExternalSemaphoreSignalParams* cparamsArray = NULL * if len(paramsArray) > 0: */ __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_extSemArray, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 17139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); (__pyx_v_cextSemArray[__pyx_v_idx]) = ((cudaExternalSemaphore_t)(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphore_t *)__pyx_t_7)->_ptr[0])); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } /* "cuda/cudart.pyx":17133 * raise TypeError("Argument 'extSemArray' is not instance of type (expected Tuple[ccudart.cudaExternalSemaphore_t,] or List[ccudart.cudaExternalSemaphore_t,]") * cdef ccudart.cudaExternalSemaphore_t* cextSemArray = NULL * if len(extSemArray) > 0: # <<<<<<<<<<<<<< * cextSemArray = calloc(len(extSemArray), sizeof(ccudart.cudaExternalSemaphore_t)) * if cextSemArray is NULL: */ } /* "cuda/cudart.pyx":17140 * for idx in range(len(extSemArray)): * cextSemArray[idx] = (extSemArray[idx])._ptr[0] * cdef ccudart.cudaExternalSemaphoreSignalParams* cparamsArray = NULL # <<<<<<<<<<<<<< * if len(paramsArray) > 0: * cparamsArray = calloc(len(paramsArray), sizeof(ccudart.cudaExternalSemaphoreSignalParams)) */ __pyx_v_cparamsArray = NULL; /* "cuda/cudart.pyx":17141 * cextSemArray[idx] = (extSemArray[idx])._ptr[0] * cdef ccudart.cudaExternalSemaphoreSignalParams* cparamsArray = NULL * if len(paramsArray) > 0: # <<<<<<<<<<<<<< * cparamsArray = calloc(len(paramsArray), sizeof(ccudart.cudaExternalSemaphoreSignalParams)) * if cparamsArray is NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_paramsArray); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17141, __pyx_L1_error) __pyx_t_1 = (__pyx_t_6 > 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":17142 * cdef ccudart.cudaExternalSemaphoreSignalParams* cparamsArray = NULL * if len(paramsArray) > 0: * cparamsArray = calloc(len(paramsArray), sizeof(ccudart.cudaExternalSemaphoreSignalParams)) # <<<<<<<<<<<<<< * if cparamsArray is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(paramsArray)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphoreSignalParams))) */ __pyx_t_6 = PyObject_Length(__pyx_v_paramsArray); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17142, __pyx_L1_error) __pyx_v_cparamsArray = ((struct cudaExternalSemaphoreSignalParams *)calloc(__pyx_t_6, (sizeof(struct cudaExternalSemaphoreSignalParams)))); /* "cuda/cudart.pyx":17143 * if len(paramsArray) > 0: * cparamsArray = calloc(len(paramsArray), sizeof(ccudart.cudaExternalSemaphoreSignalParams)) * if cparamsArray is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(paramsArray)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphoreSignalParams))) * for idx in range(len(paramsArray)): */ __pyx_t_1 = (__pyx_v_cparamsArray == NULL); if (unlikely(__pyx_t_1)) { /* "cuda/cudart.pyx":17144 * cparamsArray = calloc(len(paramsArray), sizeof(ccudart.cudaExternalSemaphoreSignalParams)) * if cparamsArray is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(paramsArray)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphoreSignalParams))) # <<<<<<<<<<<<<< * for idx in range(len(paramsArray)): * string.memcpy(&cparamsArray[idx], (paramsArray[idx])._ptr, sizeof(ccudart.cudaExternalSemaphoreSignalParams)) */ __pyx_t_6 = PyObject_Length(__pyx_v_paramsArray); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17144, __pyx_L1_error) __pyx_t_7 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 17144, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_5 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17144, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 17144, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_7, __pyx_n_u_x_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17144, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaExternalSemaphoreSignalParams))); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 17144, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17144, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_5, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 17144, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17144, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 17144, __pyx_L1_error) /* "cuda/cudart.pyx":17143 * if len(paramsArray) > 0: * cparamsArray = calloc(len(paramsArray), sizeof(ccudart.cudaExternalSemaphoreSignalParams)) * if cparamsArray is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(paramsArray)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphoreSignalParams))) * for idx in range(len(paramsArray)): */ } /* "cuda/cudart.pyx":17145 * if cparamsArray is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(paramsArray)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphoreSignalParams))) * for idx in range(len(paramsArray)): # <<<<<<<<<<<<<< * string.memcpy(&cparamsArray[idx], (paramsArray[idx])._ptr, sizeof(ccudart.cudaExternalSemaphoreSignalParams)) * if numExtSems > len(extSemArray): raise RuntimeError("List is too small: " + str(len(extSemArray)) + " < " + str(numExtSems)) */ __pyx_t_6 = PyObject_Length(__pyx_v_paramsArray); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17145, __pyx_L1_error) __pyx_t_8 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_idx = __pyx_t_9; /* "cuda/cudart.pyx":17146 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(paramsArray)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphoreSignalParams))) * for idx in range(len(paramsArray)): * string.memcpy(&cparamsArray[idx], (paramsArray[idx])._ptr, sizeof(ccudart.cudaExternalSemaphoreSignalParams)) # <<<<<<<<<<<<<< * 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_3 = __Pyx_GetItemInt(__pyx_v_paramsArray, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17146, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); (void)(memcpy((&(__pyx_v_cparamsArray[__pyx_v_idx])), ((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *)__pyx_t_3)->_ptr, (sizeof(struct cudaExternalSemaphoreSignalParams)))); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } /* "cuda/cudart.pyx":17141 * cextSemArray[idx] = (extSemArray[idx])._ptr[0] * cdef ccudart.cudaExternalSemaphoreSignalParams* cparamsArray = NULL * if len(paramsArray) > 0: # <<<<<<<<<<<<<< * cparamsArray = calloc(len(paramsArray), sizeof(ccudart.cudaExternalSemaphoreSignalParams)) * if cparamsArray is NULL: */ } /* "cuda/cudart.pyx":17147 * for idx in range(len(paramsArray)): * string.memcpy(&cparamsArray[idx], (paramsArray[idx])._ptr, sizeof(ccudart.cudaExternalSemaphoreSignalParams)) * 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)) * err = ccudart.cudaSignalExternalSemaphoresAsync((extSemArray[0])._ptr if len(extSemArray) == 1 else cextSemArray, (paramsArray[0])._ptr if len(paramsArray) == 1 else cparamsArray, numExtSems, cstream) */ __pyx_t_6 = PyObject_Length(__pyx_v_extSemArray); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17147, __pyx_L1_error) __pyx_t_1 = (__pyx_v_numExtSems > __pyx_t_6); if (unlikely(__pyx_t_1)) { __pyx_t_6 = PyObject_Length(__pyx_v_extSemArray); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17147, __pyx_L1_error) __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17147, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 17147, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_List_is_too_small, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17147, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_kp_u__400); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 17147, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyInt_From_unsigned_int(__pyx_v_numExtSems); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17147, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17147, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_7, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17147, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17147, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __PYX_ERR(0, 17147, __pyx_L1_error) } /* "cuda/cudart.pyx":17148 * string.memcpy(&cparamsArray[idx], (paramsArray[idx])._ptr, sizeof(ccudart.cudaExternalSemaphoreSignalParams)) * 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)) # <<<<<<<<<<<<<< * err = ccudart.cudaSignalExternalSemaphoresAsync((extSemArray[0])._ptr if len(extSemArray) == 1 else cextSemArray, (paramsArray[0])._ptr if len(paramsArray) == 1 else cparamsArray, numExtSems, cstream) * if cextSemArray is not NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_paramsArray); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17148, __pyx_L1_error) __pyx_t_1 = (__pyx_v_numExtSems > __pyx_t_6); if (unlikely(__pyx_t_1)) { __pyx_t_6 = PyObject_Length(__pyx_v_paramsArray); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17148, __pyx_L1_error) __pyx_t_5 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_kp_u_List_is_too_small, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_5, __pyx_kp_u__400); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_numExtSems); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17148, __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, 17148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 17148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_7, 0, 0, 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __PYX_ERR(0, 17148, __pyx_L1_error) } /* "cuda/cudart.pyx":17149 * 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)) * err = ccudart.cudaSignalExternalSemaphoresAsync((extSemArray[0])._ptr if len(extSemArray) == 1 else cextSemArray, (paramsArray[0])._ptr if len(paramsArray) == 1 else cparamsArray, numExtSems, cstream) # <<<<<<<<<<<<<< * if cextSemArray is not NULL: * free(cextSemArray) */ __pyx_t_6 = PyObject_Length(__pyx_v_extSemArray); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17149, __pyx_L1_error) __pyx_t_1 = (__pyx_t_6 == 1); if (__pyx_t_1) { __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_extSemArray, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 17149, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_10 = ((cudaExternalSemaphore_t *)((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphore_t *)__pyx_t_7)->_ptr); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else { __pyx_t_10 = __pyx_v_cextSemArray; } __pyx_t_6 = PyObject_Length(__pyx_v_paramsArray); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17149, __pyx_L1_error) __pyx_t_1 = (__pyx_t_6 == 1); if (__pyx_t_1) { __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_paramsArray, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 17149, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_11 = ((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *)__pyx_t_7)->_ptr; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else { __pyx_t_11 = __pyx_v_cparamsArray; } __pyx_t_12 = __pyx_f_4cuda_7ccudart_cudaSignalExternalSemaphoresAsync(__pyx_t_10, __pyx_t_11, __pyx_v_numExtSems, __pyx_v_cstream); if (unlikely(__pyx_t_12 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 17149, __pyx_L1_error) __pyx_v_err = __pyx_t_12; /* "cuda/cudart.pyx":17150 * if numExtSems > len(paramsArray): raise RuntimeError("List is too small: " + str(len(paramsArray)) + " < " + str(numExtSems)) * err = ccudart.cudaSignalExternalSemaphoresAsync((extSemArray[0])._ptr if len(extSemArray) == 1 else cextSemArray, (paramsArray[0])._ptr if len(paramsArray) == 1 else cparamsArray, numExtSems, cstream) * if cextSemArray is not NULL: # <<<<<<<<<<<<<< * free(cextSemArray) * if cparamsArray is not NULL: */ __pyx_t_1 = (__pyx_v_cextSemArray != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":17151 * err = ccudart.cudaSignalExternalSemaphoresAsync((extSemArray[0])._ptr if len(extSemArray) == 1 else cextSemArray, (paramsArray[0])._ptr if len(paramsArray) == 1 else cparamsArray, numExtSems, cstream) * if cextSemArray is not NULL: * free(cextSemArray) # <<<<<<<<<<<<<< * if cparamsArray is not NULL: * free(cparamsArray) */ free(__pyx_v_cextSemArray); /* "cuda/cudart.pyx":17150 * if numExtSems > len(paramsArray): raise RuntimeError("List is too small: " + str(len(paramsArray)) + " < " + str(numExtSems)) * err = ccudart.cudaSignalExternalSemaphoresAsync((extSemArray[0])._ptr if len(extSemArray) == 1 else cextSemArray, (paramsArray[0])._ptr if len(paramsArray) == 1 else cparamsArray, numExtSems, cstream) * if cextSemArray is not NULL: # <<<<<<<<<<<<<< * free(cextSemArray) * if cparamsArray is not NULL: */ } /* "cuda/cudart.pyx":17152 * if cextSemArray is not NULL: * free(cextSemArray) * if cparamsArray is not NULL: # <<<<<<<<<<<<<< * free(cparamsArray) * return (cudaError_t(err),) */ __pyx_t_1 = (__pyx_v_cparamsArray != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":17153 * free(cextSemArray) * if cparamsArray is not NULL: * free(cparamsArray) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ free(__pyx_v_cparamsArray); /* "cuda/cudart.pyx":17152 * if cextSemArray is not NULL: * free(cextSemArray) * if cparamsArray is not NULL: # <<<<<<<<<<<<<< * free(cparamsArray) * return (cudaError_t(err),) */ } /* "cuda/cudart.pyx":17154 * if cparamsArray is not NULL: * free(cparamsArray) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_13 = NULL; __pyx_t_14 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_13)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_13); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_14 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_t_3}; __pyx_t_7 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_14, 1+__pyx_t_14); __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 17154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_7); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_7)) __PYX_ERR(0, 17154, __pyx_L1_error); __pyx_t_7 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":17023 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_13); __Pyx_AddTraceback("cuda.cudart.cudaSignalExternalSemaphoresAsync", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pstream); __Pyx_XDECREF(__pyx_gb_4cuda_6cudart_33cudaSignalExternalSemaphoresAsync_2generator5); __Pyx_XDECREF(__pyx_gb_4cuda_6cudart_33cudaSignalExternalSemaphoresAsync_5generator6); __Pyx_XDECREF(__pyx_v_extSemArray); __Pyx_XDECREF(__pyx_v_paramsArray); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":17156 * return (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_6cudart_155cudaWaitExternalSemaphoresAsync(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_154cudaWaitExternalSemaphoresAsync, "cudaWaitExternalSemaphoresAsync(extSemArray: Optional[Tuple[cudaExternalSemaphore_t] | List[cudaExternalSemaphore_t]], paramsArray: Optional[Tuple[cudaExternalSemaphoreWaitParams] | List[cudaExternalSemaphoreWaitParams]], unsigned int numExtSems, stream)\n Waits on a set of external semaphore objects.\n\n Enqueues a wait operation on a set of externally allocated semaphore\n object in the specified stream. The operations will be executed when\n all prior operations in the stream complete.\n\n The exact semantics of waiting on a semaphore depends on the type of\n the object.\n\n If the semaphore object is any one of the following types:\n :py:obj:`~.cudaExternalSemaphoreHandleTypeOpaqueFd`,\n :py:obj:`~.cudaExternalSemaphoreHandleTypeOpaqueWin32`,\n :py:obj:`~.cudaExternalSemaphoreHandleTypeOpaqueWin32Kmt` then waiting\n on the semaphore will wait until the semaphore reaches the signaled\n state. The semaphore will then be reset to the unsignaled state.\n Therefore for every signal operation, there can only be one wait\n operation.\n\n If 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\n waiting on the semaphore will wait until the value of the semaphore is\n greater than or equal to\n :py:obj:`~.cudaExternalSemaphoreWaitParams`::params::fence::value.\n\n If the semaphore object is of the type\n :py:obj:`~.cudaExternalSemaphoreHandleTypeNvSciSync` then, waiting on\n the semaphore will wait until the\n :py:obj:`~.cudaExternalSemaphoreSignalParams`::params::nvSciSync::fence\n is signaled by the signaler of the NvSciSyncObj that was associated\n with this semaphore object. By default, waiting on such an external\n semaphore object ""causes appropriate memory synchronization operations\n to be performed over all external memory objects that are imported as\n :py:obj:`~.cudaExternalMemoryHandleTypeNvSciBuf`. This ensures that any\n subsequent accesses made by other importers of the same set of NvSciBuf\n memory object(s) are coherent. These operations can be skipped by\n specifying the flag\n :py:obj:`~.cudaExternalSemaphoreWaitSkipNvSciBufMemSync`, which can be\n used as a performance optimization when data coherency is not required.\n But specifying this flag in scenarios where data coherency is required\n results in undefined behavior. Also, for semaphore object of the type\n :py:obj:`~.cudaExternalSemaphoreHandleTypeNvSciSync`, if the\n NvSciSyncAttrList used to create the NvSciSyncObj had not set the flags\n in :py:obj:`~.cudaDeviceGetNvSciSyncAttributes` to\n cudaNvSciSyncAttrWait, this API will return cudaErrorNotSupported.\n\n If the semaphore object is any one of the following types:\n :py:obj:`~.cudaExternalSemaphoreHandleTypeKeyedMutex`,\n :py:obj:`~.cudaExternalSemaphoreHandleTypeKeyedMutexKmt`, then the\n keyed mutex will be acquired when it is released with the key specified\n in\n :py:obj:`~.cudaExternalSemaphoreSignalParams`::params::keyedmutex::key\n or until the timeout specified by\n :py:obj:`~.cudaExternalSemaphoreSignalParams`::params::keyedmutex::timeoutMs\n has lapsed. The timeout interval can either be a finite value specified\n in milliseconds or an infinite value. In case an infinite value is\n specified the timeout never elapses. The windows INFINITE macro must be\n used to specify infinite timeout\n\n Parameters\n ----------\n extSemArray : List[:py:obj:`~.cudaExternalSemaphore_t`]\n External semaphores to be waited on\n paramsArray : List[:py:obj:`~.cudaExternalSemaphoreWaitParams`]\n Array of semaphore parameters\n numExtSems : unsigned int\n Number of semap""hores to wait on\n stream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n Stream to enqueue the wait operations in\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidResourceHandle` :py:obj:`~.cudaErrorTimeout`\n\n See Also\n --------\n :py:obj:`~.cudaImportExternalSemaphore`, :py:obj:`~.cudaDestroyExternalSemaphore`, :py:obj:`~.cudaSignalExternalSemaphoresAsync`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_155cudaWaitExternalSemaphoresAsync = {"cudaWaitExternalSemaphoresAsync", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_155cudaWaitExternalSemaphoresAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_154cudaWaitExternalSemaphoresAsync}; static PyObject *__pyx_pw_4cuda_6cudart_155cudaWaitExternalSemaphoresAsync(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_extSemArray_2,&__pyx_n_s_paramsArray_2,&__pyx_n_s_numExtSems_2,&__pyx_n_s_stream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_extSemArray_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17156, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_paramsArray_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17156, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaWaitExternalSemaphoresAsync", 1, 4, 4, 1); __PYX_ERR(0, 17156, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_numExtSems_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17156, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaWaitExternalSemaphoresAsync", 1, 4, 4, 2); __PYX_ERR(0, 17156, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17156, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaWaitExternalSemaphoresAsync", 1, 4, 4, 3); __PYX_ERR(0, 17156, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaWaitExternalSemaphoresAsync") < 0)) __PYX_ERR(0, 17156, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); } __pyx_v_extSemArray = values[0]; __pyx_v_paramsArray = values[1]; __pyx_v_numExtSems = __Pyx_PyInt_As_unsigned_int(values[2]); if (unlikely((__pyx_v_numExtSems == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 17157, __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, 17156, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaWaitExternalSemaphoresAsync", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_154cudaWaitExternalSemaphoresAsync(__pyx_self, __pyx_v_extSemArray, __pyx_v_paramsArray, __pyx_v_numExtSems, __pyx_v_stream); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_31cudaWaitExternalSemaphoresAsync_2generator7(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":17249 * cstream = 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[ccudart.cudaExternalSemaphoreWaitParams,] or List[ccudart.cudaExternalSemaphoreWaitParams,]") * extSemArray = [] if extSemArray is None else extSemArray */ static PyObject *__pyx_pf_4cuda_6cudart_31cudaWaitExternalSemaphoresAsync_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct_7_genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_7_genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_7_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_7_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 17249, __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_6cudart_31cudaWaitExternalSemaphoresAsync_2generator7, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaWaitExternalSemaphoresAsync, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 17249, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.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_6cudart_31cudaWaitExternalSemaphoresAsync_2generator7(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_7_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_7_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 17249, 0, __PYX_ERR(0, 17249, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 17249, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 17249, __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, 17249, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17249, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 17249, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 17249, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17249, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 17249, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 17249, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17249, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 17249, __pyx_L1_error) } 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_ptype_4cuda_6cudart_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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_31cudaWaitExternalSemaphoresAsync_5generator8(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":17252 * raise TypeError("Argument 'paramsArray' is not instance of type (expected Tuple[ccudart.cudaExternalSemaphoreWaitParams,] or List[ccudart.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[ccudart.cudaExternalSemaphore_t,] or List[ccudart.cudaExternalSemaphore_t,]") * cdef ccudart.cudaExternalSemaphore_t* cextSemArray = NULL */ static PyObject *__pyx_pf_4cuda_6cudart_31cudaWaitExternalSemaphoresAsync_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct_8_genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_8_genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_8_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_8_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 17252, __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_6cudart_31cudaWaitExternalSemaphoresAsync_5generator8, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaWaitExternalSemaphoresAsync, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 17252, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.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_6cudart_31cudaWaitExternalSemaphoresAsync_5generator8(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_8_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_8_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 17252, 0, __PYX_ERR(0, 17252, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 17252, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 17252, __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, 17252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17252, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 17252, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 17252, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 17252, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 17252, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 17252, __pyx_L1_error) } 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_ptype_4cuda_6cudart_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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":17156 * return (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_6cudart_154cudaWaitExternalSemaphoresAsync(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_cstream; PyObject *__pyx_v_pstream = NULL; cudaExternalSemaphore_t *__pyx_v_cextSemArray; Py_ssize_t __pyx_v_idx; struct cudaExternalSemaphoreWaitParams *__pyx_v_cparamsArray; cudaError_t __pyx_v_err; PyObject *__pyx_gb_4cuda_6cudart_31cudaWaitExternalSemaphoresAsync_2generator7 = 0; PyObject *__pyx_gb_4cuda_6cudart_31cudaWaitExternalSemaphoresAsync_5generator8 = 0; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; Py_ssize_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; Py_ssize_t __pyx_t_8; Py_ssize_t __pyx_t_9; cudaExternalSemaphore_t *__pyx_t_10; struct cudaExternalSemaphoreWaitParams *__pyx_t_11; cudaError_t __pyx_t_12; PyObject *__pyx_t_13 = NULL; unsigned int __pyx_t_14; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__424) __Pyx_RefNannySetupContext("cudaWaitExternalSemaphoresAsync", 0); __Pyx_TraceCall("cudaWaitExternalSemaphoresAsync", __pyx_f[0], 17156, 0, __PYX_ERR(0, 17156, __pyx_L1_error)); __Pyx_INCREF(__pyx_v_extSemArray); __Pyx_INCREF(__pyx_v_paramsArray); /* "cuda/cudart.pyx":17240 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_stream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":17241 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":17240 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":17242 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":17243 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17243, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pstream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":17244 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17244, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":17242 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L3; } /* "cuda/cudart.pyx":17246 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * paramsArray = [] if paramsArray is None else paramsArray */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17246, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17246, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pstream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":17247 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * paramsArray = [] if paramsArray is None else paramsArray * if not all(isinstance(_x, (cudaExternalSemaphoreWaitParams,)) for _x in paramsArray): */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17247, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":17248 * pstream = int(cudaStream_t(stream)) * cstream = 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[ccudart.cudaExternalSemaphoreWaitParams,] or List[ccudart.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, 17248, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __pyx_t_3; __pyx_t_3 = 0; } else { __Pyx_INCREF(__pyx_v_paramsArray); __pyx_t_5 = __pyx_v_paramsArray; } __Pyx_DECREF_SET(__pyx_v_paramsArray, __pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":17249 * cstream = 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[ccudart.cudaExternalSemaphoreWaitParams,] or List[ccudart.cudaExternalSemaphoreWaitParams,]") * extSemArray = [] if extSemArray is None else extSemArray */ __pyx_t_5 = __pyx_pf_4cuda_6cudart_31cudaWaitExternalSemaphoresAsync_genexpr(NULL, __pyx_v_paramsArray); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17249, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17249, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 17249, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_2 = (!__pyx_t_1); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":17250 * 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[ccudart.cudaExternalSemaphoreWaitParams,] or List[ccudart.cudaExternalSemaphoreWaitParams,]") # <<<<<<<<<<<<<< * extSemArray = [] if extSemArray is None else extSemArray * if not all(isinstance(_x, (cudaExternalSemaphore_t,)) for _x in extSemArray): */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__425, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17250, __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, 17250, __pyx_L1_error) /* "cuda/cudart.pyx":17249 * cstream = 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[ccudart.cudaExternalSemaphoreWaitParams,] or List[ccudart.cudaExternalSemaphoreWaitParams,]") * extSemArray = [] if extSemArray is None else extSemArray */ } /* "cuda/cudart.pyx":17251 * if not all(isinstance(_x, (cudaExternalSemaphoreWaitParams,)) for _x in paramsArray): * raise TypeError("Argument 'paramsArray' is not instance of type (expected Tuple[ccudart.cudaExternalSemaphoreWaitParams,] or List[ccudart.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[ccudart.cudaExternalSemaphore_t,] or List[ccudart.cudaExternalSemaphore_t,]") */ __pyx_t_2 = (__pyx_v_extSemArray == Py_None); if (__pyx_t_2) { __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17251, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __pyx_t_5; __pyx_t_5 = 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/cudart.pyx":17252 * raise TypeError("Argument 'paramsArray' is not instance of type (expected Tuple[ccudart.cudaExternalSemaphoreWaitParams,] or List[ccudart.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[ccudart.cudaExternalSemaphore_t,] or List[ccudart.cudaExternalSemaphore_t,]") * cdef ccudart.cudaExternalSemaphore_t* cextSemArray = NULL */ __pyx_t_3 = __pyx_pf_4cuda_6cudart_31cudaWaitExternalSemaphoresAsync_3genexpr(NULL, __pyx_v_extSemArray); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_Generator_Next(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 17252, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = (!__pyx_t_2); if (unlikely(__pyx_t_1)) { /* "cuda/cudart.pyx":17253 * 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[ccudart.cudaExternalSemaphore_t,] or List[ccudart.cudaExternalSemaphore_t,]") # <<<<<<<<<<<<<< * cdef ccudart.cudaExternalSemaphore_t* cextSemArray = NULL * if len(extSemArray) > 0: */ __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__423, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17253, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __PYX_ERR(0, 17253, __pyx_L1_error) /* "cuda/cudart.pyx":17252 * raise TypeError("Argument 'paramsArray' is not instance of type (expected Tuple[ccudart.cudaExternalSemaphoreWaitParams,] or List[ccudart.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[ccudart.cudaExternalSemaphore_t,] or List[ccudart.cudaExternalSemaphore_t,]") * cdef ccudart.cudaExternalSemaphore_t* cextSemArray = NULL */ } /* "cuda/cudart.pyx":17254 * if not all(isinstance(_x, (cudaExternalSemaphore_t,)) for _x in extSemArray): * raise TypeError("Argument 'extSemArray' is not instance of type (expected Tuple[ccudart.cudaExternalSemaphore_t,] or List[ccudart.cudaExternalSemaphore_t,]") * cdef ccudart.cudaExternalSemaphore_t* cextSemArray = NULL # <<<<<<<<<<<<<< * if len(extSemArray) > 0: * cextSemArray = calloc(len(extSemArray), sizeof(ccudart.cudaExternalSemaphore_t)) */ __pyx_v_cextSemArray = NULL; /* "cuda/cudart.pyx":17255 * raise TypeError("Argument 'extSemArray' is not instance of type (expected Tuple[ccudart.cudaExternalSemaphore_t,] or List[ccudart.cudaExternalSemaphore_t,]") * cdef ccudart.cudaExternalSemaphore_t* cextSemArray = NULL * if len(extSemArray) > 0: # <<<<<<<<<<<<<< * cextSemArray = calloc(len(extSemArray), sizeof(ccudart.cudaExternalSemaphore_t)) * if cextSemArray is NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_extSemArray); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17255, __pyx_L1_error) __pyx_t_1 = (__pyx_t_6 > 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":17256 * cdef ccudart.cudaExternalSemaphore_t* cextSemArray = NULL * if len(extSemArray) > 0: * cextSemArray = calloc(len(extSemArray), sizeof(ccudart.cudaExternalSemaphore_t)) # <<<<<<<<<<<<<< * if cextSemArray is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(extSemArray)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphore_t))) */ __pyx_t_6 = PyObject_Length(__pyx_v_extSemArray); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17256, __pyx_L1_error) __pyx_v_cextSemArray = ((cudaExternalSemaphore_t *)calloc(__pyx_t_6, (sizeof(cudaExternalSemaphore_t)))); /* "cuda/cudart.pyx":17257 * if len(extSemArray) > 0: * cextSemArray = calloc(len(extSemArray), sizeof(ccudart.cudaExternalSemaphore_t)) * if cextSemArray is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(extSemArray)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphore_t))) * else: */ __pyx_t_1 = (__pyx_v_cextSemArray == NULL); if (unlikely(__pyx_t_1)) { /* "cuda/cudart.pyx":17258 * cextSemArray = calloc(len(extSemArray), sizeof(ccudart.cudaExternalSemaphore_t)) * if cextSemArray is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(extSemArray)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphore_t))) # <<<<<<<<<<<<<< * else: * for idx in range(len(extSemArray)): */ __pyx_t_6 = PyObject_Length(__pyx_v_extSemArray); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17258, __pyx_L1_error) __pyx_t_5 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17258, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17258, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17258, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_5, __pyx_n_u_x_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17258, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyInt_FromSize_t((sizeof(cudaExternalSemaphore_t))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17258, __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, 17258, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17258, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 17258, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_7, 0, 0, 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __PYX_ERR(0, 17258, __pyx_L1_error) /* "cuda/cudart.pyx":17257 * if len(extSemArray) > 0: * cextSemArray = calloc(len(extSemArray), sizeof(ccudart.cudaExternalSemaphore_t)) * if cextSemArray is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(extSemArray)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphore_t))) * else: */ } /* "cuda/cudart.pyx":17260 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(extSemArray)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphore_t))) * else: * for idx in range(len(extSemArray)): # <<<<<<<<<<<<<< * cextSemArray[idx] = (extSemArray[idx])._ptr[0] * cdef ccudart.cudaExternalSemaphoreWaitParams* cparamsArray = NULL */ /*else*/ { __pyx_t_6 = PyObject_Length(__pyx_v_extSemArray); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17260, __pyx_L1_error) __pyx_t_8 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_idx = __pyx_t_9; /* "cuda/cudart.pyx":17261 * else: * for idx in range(len(extSemArray)): * cextSemArray[idx] = (extSemArray[idx])._ptr[0] # <<<<<<<<<<<<<< * cdef ccudart.cudaExternalSemaphoreWaitParams* cparamsArray = NULL * if len(paramsArray) > 0: */ __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_extSemArray, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 17261, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); (__pyx_v_cextSemArray[__pyx_v_idx]) = ((cudaExternalSemaphore_t)(((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphore_t *)__pyx_t_7)->_ptr[0])); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } /* "cuda/cudart.pyx":17255 * raise TypeError("Argument 'extSemArray' is not instance of type (expected Tuple[ccudart.cudaExternalSemaphore_t,] or List[ccudart.cudaExternalSemaphore_t,]") * cdef ccudart.cudaExternalSemaphore_t* cextSemArray = NULL * if len(extSemArray) > 0: # <<<<<<<<<<<<<< * cextSemArray = calloc(len(extSemArray), sizeof(ccudart.cudaExternalSemaphore_t)) * if cextSemArray is NULL: */ } /* "cuda/cudart.pyx":17262 * for idx in range(len(extSemArray)): * cextSemArray[idx] = (extSemArray[idx])._ptr[0] * cdef ccudart.cudaExternalSemaphoreWaitParams* cparamsArray = NULL # <<<<<<<<<<<<<< * if len(paramsArray) > 0: * cparamsArray = calloc(len(paramsArray), sizeof(ccudart.cudaExternalSemaphoreWaitParams)) */ __pyx_v_cparamsArray = NULL; /* "cuda/cudart.pyx":17263 * cextSemArray[idx] = (extSemArray[idx])._ptr[0] * cdef ccudart.cudaExternalSemaphoreWaitParams* cparamsArray = NULL * if len(paramsArray) > 0: # <<<<<<<<<<<<<< * cparamsArray = calloc(len(paramsArray), sizeof(ccudart.cudaExternalSemaphoreWaitParams)) * if cparamsArray is NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_paramsArray); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17263, __pyx_L1_error) __pyx_t_1 = (__pyx_t_6 > 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":17264 * cdef ccudart.cudaExternalSemaphoreWaitParams* cparamsArray = NULL * if len(paramsArray) > 0: * cparamsArray = calloc(len(paramsArray), sizeof(ccudart.cudaExternalSemaphoreWaitParams)) # <<<<<<<<<<<<<< * if cparamsArray is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(paramsArray)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphoreWaitParams))) */ __pyx_t_6 = PyObject_Length(__pyx_v_paramsArray); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17264, __pyx_L1_error) __pyx_v_cparamsArray = ((struct cudaExternalSemaphoreWaitParams *)calloc(__pyx_t_6, (sizeof(struct cudaExternalSemaphoreWaitParams)))); /* "cuda/cudart.pyx":17265 * if len(paramsArray) > 0: * cparamsArray = calloc(len(paramsArray), sizeof(ccudart.cudaExternalSemaphoreWaitParams)) * if cparamsArray is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(paramsArray)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphoreWaitParams))) * for idx in range(len(paramsArray)): */ __pyx_t_1 = (__pyx_v_cparamsArray == NULL); if (unlikely(__pyx_t_1)) { /* "cuda/cudart.pyx":17266 * cparamsArray = calloc(len(paramsArray), sizeof(ccudart.cudaExternalSemaphoreWaitParams)) * if cparamsArray is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(paramsArray)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphoreWaitParams))) # <<<<<<<<<<<<<< * for idx in range(len(paramsArray)): * string.memcpy(&cparamsArray[idx], (paramsArray[idx])._ptr, sizeof(ccudart.cudaExternalSemaphoreWaitParams)) */ __pyx_t_6 = PyObject_Length(__pyx_v_paramsArray); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17266, __pyx_L1_error) __pyx_t_7 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 17266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_5 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 17266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_7, __pyx_n_u_x_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaExternalSemaphoreWaitParams))); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 17266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_5, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 17266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 17266, __pyx_L1_error) /* "cuda/cudart.pyx":17265 * if len(paramsArray) > 0: * cparamsArray = calloc(len(paramsArray), sizeof(ccudart.cudaExternalSemaphoreWaitParams)) * if cparamsArray is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(paramsArray)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphoreWaitParams))) * for idx in range(len(paramsArray)): */ } /* "cuda/cudart.pyx":17267 * if cparamsArray is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(paramsArray)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphoreWaitParams))) * for idx in range(len(paramsArray)): # <<<<<<<<<<<<<< * string.memcpy(&cparamsArray[idx], (paramsArray[idx])._ptr, sizeof(ccudart.cudaExternalSemaphoreWaitParams)) * if numExtSems > len(extSemArray): raise RuntimeError("List is too small: " + str(len(extSemArray)) + " < " + str(numExtSems)) */ __pyx_t_6 = PyObject_Length(__pyx_v_paramsArray); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17267, __pyx_L1_error) __pyx_t_8 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_idx = __pyx_t_9; /* "cuda/cudart.pyx":17268 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(paramsArray)) + 'x' + str(sizeof(ccudart.cudaExternalSemaphoreWaitParams))) * for idx in range(len(paramsArray)): * string.memcpy(&cparamsArray[idx], (paramsArray[idx])._ptr, sizeof(ccudart.cudaExternalSemaphoreWaitParams)) # <<<<<<<<<<<<<< * 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_3 = __Pyx_GetItemInt(__pyx_v_paramsArray, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17268, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); (void)(memcpy((&(__pyx_v_cparamsArray[__pyx_v_idx])), ((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *)__pyx_t_3)->_ptr, (sizeof(struct cudaExternalSemaphoreWaitParams)))); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } /* "cuda/cudart.pyx":17263 * cextSemArray[idx] = (extSemArray[idx])._ptr[0] * cdef ccudart.cudaExternalSemaphoreWaitParams* cparamsArray = NULL * if len(paramsArray) > 0: # <<<<<<<<<<<<<< * cparamsArray = calloc(len(paramsArray), sizeof(ccudart.cudaExternalSemaphoreWaitParams)) * if cparamsArray is NULL: */ } /* "cuda/cudart.pyx":17269 * for idx in range(len(paramsArray)): * string.memcpy(&cparamsArray[idx], (paramsArray[idx])._ptr, sizeof(ccudart.cudaExternalSemaphoreWaitParams)) * 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)) * err = ccudart.cudaWaitExternalSemaphoresAsync((extSemArray[0])._ptr if len(extSemArray) == 1 else cextSemArray, (paramsArray[0])._ptr if len(paramsArray) == 1 else cparamsArray, numExtSems, cstream) */ __pyx_t_6 = PyObject_Length(__pyx_v_extSemArray); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17269, __pyx_L1_error) __pyx_t_1 = (__pyx_v_numExtSems > __pyx_t_6); if (unlikely(__pyx_t_1)) { __pyx_t_6 = PyObject_Length(__pyx_v_extSemArray); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17269, __pyx_L1_error) __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 17269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_List_is_too_small, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_kp_u__400); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 17269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyInt_From_unsigned_int(__pyx_v_numExtSems); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_7, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __PYX_ERR(0, 17269, __pyx_L1_error) } /* "cuda/cudart.pyx":17270 * string.memcpy(&cparamsArray[idx], (paramsArray[idx])._ptr, sizeof(ccudart.cudaExternalSemaphoreWaitParams)) * 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)) # <<<<<<<<<<<<<< * err = ccudart.cudaWaitExternalSemaphoresAsync((extSemArray[0])._ptr if len(extSemArray) == 1 else cextSemArray, (paramsArray[0])._ptr if len(paramsArray) == 1 else cparamsArray, numExtSems, cstream) * if cextSemArray is not NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_paramsArray); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17270, __pyx_L1_error) __pyx_t_1 = (__pyx_v_numExtSems > __pyx_t_6); if (unlikely(__pyx_t_1)) { __pyx_t_6 = PyObject_Length(__pyx_v_paramsArray); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17270, __pyx_L1_error) __pyx_t_5 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17270, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17270, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_kp_u_List_is_too_small, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17270, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_5, __pyx_kp_u__400); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17270, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_numExtSems); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17270, __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, 17270, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17270, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 17270, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_7, 0, 0, 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __PYX_ERR(0, 17270, __pyx_L1_error) } /* "cuda/cudart.pyx":17271 * 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)) * err = ccudart.cudaWaitExternalSemaphoresAsync((extSemArray[0])._ptr if len(extSemArray) == 1 else cextSemArray, (paramsArray[0])._ptr if len(paramsArray) == 1 else cparamsArray, numExtSems, cstream) # <<<<<<<<<<<<<< * if cextSemArray is not NULL: * free(cextSemArray) */ __pyx_t_6 = PyObject_Length(__pyx_v_extSemArray); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17271, __pyx_L1_error) __pyx_t_1 = (__pyx_t_6 == 1); if (__pyx_t_1) { __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_extSemArray, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 17271, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_10 = ((cudaExternalSemaphore_t *)((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphore_t *)__pyx_t_7)->_ptr); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else { __pyx_t_10 = __pyx_v_cextSemArray; } __pyx_t_6 = PyObject_Length(__pyx_v_paramsArray); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17271, __pyx_L1_error) __pyx_t_1 = (__pyx_t_6 == 1); if (__pyx_t_1) { __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_paramsArray, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 17271, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_11 = ((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *)__pyx_t_7)->_ptr; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else { __pyx_t_11 = __pyx_v_cparamsArray; } __pyx_t_12 = __pyx_f_4cuda_7ccudart_cudaWaitExternalSemaphoresAsync(__pyx_t_10, __pyx_t_11, __pyx_v_numExtSems, __pyx_v_cstream); if (unlikely(__pyx_t_12 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 17271, __pyx_L1_error) __pyx_v_err = __pyx_t_12; /* "cuda/cudart.pyx":17272 * if numExtSems > len(paramsArray): raise RuntimeError("List is too small: " + str(len(paramsArray)) + " < " + str(numExtSems)) * err = ccudart.cudaWaitExternalSemaphoresAsync((extSemArray[0])._ptr if len(extSemArray) == 1 else cextSemArray, (paramsArray[0])._ptr if len(paramsArray) == 1 else cparamsArray, numExtSems, cstream) * if cextSemArray is not NULL: # <<<<<<<<<<<<<< * free(cextSemArray) * if cparamsArray is not NULL: */ __pyx_t_1 = (__pyx_v_cextSemArray != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":17273 * err = ccudart.cudaWaitExternalSemaphoresAsync((extSemArray[0])._ptr if len(extSemArray) == 1 else cextSemArray, (paramsArray[0])._ptr if len(paramsArray) == 1 else cparamsArray, numExtSems, cstream) * if cextSemArray is not NULL: * free(cextSemArray) # <<<<<<<<<<<<<< * if cparamsArray is not NULL: * free(cparamsArray) */ free(__pyx_v_cextSemArray); /* "cuda/cudart.pyx":17272 * if numExtSems > len(paramsArray): raise RuntimeError("List is too small: " + str(len(paramsArray)) + " < " + str(numExtSems)) * err = ccudart.cudaWaitExternalSemaphoresAsync((extSemArray[0])._ptr if len(extSemArray) == 1 else cextSemArray, (paramsArray[0])._ptr if len(paramsArray) == 1 else cparamsArray, numExtSems, cstream) * if cextSemArray is not NULL: # <<<<<<<<<<<<<< * free(cextSemArray) * if cparamsArray is not NULL: */ } /* "cuda/cudart.pyx":17274 * if cextSemArray is not NULL: * free(cextSemArray) * if cparamsArray is not NULL: # <<<<<<<<<<<<<< * free(cparamsArray) * return (cudaError_t(err),) */ __pyx_t_1 = (__pyx_v_cparamsArray != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":17275 * free(cextSemArray) * if cparamsArray is not NULL: * free(cparamsArray) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ free(__pyx_v_cparamsArray); /* "cuda/cudart.pyx":17274 * if cextSemArray is not NULL: * free(cextSemArray) * if cparamsArray is not NULL: # <<<<<<<<<<<<<< * free(cparamsArray) * return (cudaError_t(err),) */ } /* "cuda/cudart.pyx":17276 * if cparamsArray is not NULL: * free(cparamsArray) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17276, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17276, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_13 = NULL; __pyx_t_14 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_13)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_13); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_14 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_t_3}; __pyx_t_7 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_14, 1+__pyx_t_14); __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 17276, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17276, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_7); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_7)) __PYX_ERR(0, 17276, __pyx_L1_error); __pyx_t_7 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":17156 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_13); __Pyx_AddTraceback("cuda.cudart.cudaWaitExternalSemaphoresAsync", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pstream); __Pyx_XDECREF(__pyx_gb_4cuda_6cudart_31cudaWaitExternalSemaphoresAsync_2generator7); __Pyx_XDECREF(__pyx_gb_4cuda_6cudart_31cudaWaitExternalSemaphoresAsync_5generator8); __Pyx_XDECREF(__pyx_v_extSemArray); __Pyx_XDECREF(__pyx_v_paramsArray); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":17278 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDestroyExternalSemaphore(extSem): * """ Destroys an external semaphore. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_157cudaDestroyExternalSemaphore(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_156cudaDestroyExternalSemaphore, "cudaDestroyExternalSemaphore(extSem)\n Destroys an external semaphore.\n\n Destroys an external semaphore object and releases any references to\n the underlying resource. Any outstanding signals or waits must have\n completed before the semaphore is destroyed.\n\n Parameters\n ----------\n extSem : :py:obj:`~.cudaExternalSemaphore_t`\n External semaphore to be destroyed\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidResourceHandle`\n\n See Also\n --------\n :py:obj:`~.cudaImportExternalSemaphore`, :py:obj:`~.cudaSignalExternalSemaphoresAsync`, :py:obj:`~.cudaWaitExternalSemaphoresAsync`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_157cudaDestroyExternalSemaphore = {"cudaDestroyExternalSemaphore", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_157cudaDestroyExternalSemaphore, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_156cudaDestroyExternalSemaphore}; static PyObject *__pyx_pw_4cuda_6cudart_157cudaDestroyExternalSemaphore(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_extSem,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_extSem)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17278, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaDestroyExternalSemaphore") < 0)) __PYX_ERR(0, 17278, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_extSem = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaDestroyExternalSemaphore", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 17278, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaDestroyExternalSemaphore", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_156cudaDestroyExternalSemaphore(__pyx_self, __pyx_v_extSem); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_156cudaDestroyExternalSemaphore(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_extSem) { cudaExternalSemaphore_t __pyx_v_cextSem; PyObject *__pyx_v_pextSem = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; cudaError_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__426) __Pyx_RefNannySetupContext("cudaDestroyExternalSemaphore", 1); __Pyx_TraceCall("cudaDestroyExternalSemaphore", __pyx_f[0], 17278, 0, __PYX_ERR(0, 17278, __pyx_L1_error)); /* "cuda/cudart.pyx":17301 * """ * cdef ccudart.cudaExternalSemaphore_t cextSem * if extSem is None: # <<<<<<<<<<<<<< * cextSem = 0 * elif isinstance(extSem, (cudaExternalSemaphore_t,)): */ __pyx_t_1 = (__pyx_v_extSem == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":17302 * cdef ccudart.cudaExternalSemaphore_t cextSem * if extSem is None: * cextSem = 0 # <<<<<<<<<<<<<< * elif isinstance(extSem, (cudaExternalSemaphore_t,)): * pextSem = int(extSem) */ __pyx_v_cextSem = ((cudaExternalSemaphore_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":17301 * """ * cdef ccudart.cudaExternalSemaphore_t cextSem * if extSem is None: # <<<<<<<<<<<<<< * cextSem = 0 * elif isinstance(extSem, (cudaExternalSemaphore_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":17303 * if extSem is None: * cextSem = 0 * elif isinstance(extSem, (cudaExternalSemaphore_t,)): # <<<<<<<<<<<<<< * pextSem = int(extSem) * cextSem = pextSem */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_extSem, __pyx_ptype_4cuda_6cudart_cudaExternalSemaphore_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":17304 * cextSem = 0 * elif isinstance(extSem, (cudaExternalSemaphore_t,)): * pextSem = int(extSem) # <<<<<<<<<<<<<< * cextSem = pextSem * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_extSem); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17304, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_pextSem = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":17305 * elif isinstance(extSem, (cudaExternalSemaphore_t,)): * pextSem = int(extSem) * cextSem = pextSem # <<<<<<<<<<<<<< * else: * pextSem = int(cudaExternalSemaphore_t(extSem)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pextSem); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17305, __pyx_L1_error) __pyx_v_cextSem = ((cudaExternalSemaphore_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":17303 * if extSem is None: * cextSem = 0 * elif isinstance(extSem, (cudaExternalSemaphore_t,)): # <<<<<<<<<<<<<< * pextSem = int(extSem) * cextSem = pextSem */ goto __pyx_L3; } /* "cuda/cudart.pyx":17307 * cextSem = pextSem * else: * pextSem = int(cudaExternalSemaphore_t(extSem)) # <<<<<<<<<<<<<< * cextSem = pextSem * err = ccudart.cudaDestroyExternalSemaphore(cextSem) */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalSemaphore_t), __pyx_v_extSem); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17307, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17307, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_pextSem = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":17308 * else: * pextSem = int(cudaExternalSemaphore_t(extSem)) * cextSem = pextSem # <<<<<<<<<<<<<< * err = ccudart.cudaDestroyExternalSemaphore(cextSem) * return (cudaError_t(err),) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pextSem); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17308, __pyx_L1_error) __pyx_v_cextSem = ((cudaExternalSemaphore_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":17309 * pextSem = int(cudaExternalSemaphore_t(extSem)) * cextSem = pextSem * err = ccudart.cudaDestroyExternalSemaphore(cextSem) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_5 = __pyx_f_4cuda_7ccudart_cudaDestroyExternalSemaphore(__pyx_v_cextSem); if (unlikely(__pyx_t_5 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 17309, __pyx_L1_error) __pyx_v_err = __pyx_t_5; /* "cuda/cudart.pyx":17310 * cextSem = pextSem * err = ccudart.cudaDestroyExternalSemaphore(cextSem) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17310, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 17310, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17310, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17310, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 17310, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":17278 * return (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_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.cudaDestroyExternalSemaphore", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pextSem); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":17312 * return (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_6cudart_159cudaFuncSetCacheConfig(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_158cudaFuncSetCacheConfig, "cudaFuncSetCacheConfig(func, cacheConfig: cudaFuncCache)\n Sets the preferred cache configuration for a device function.\n\n On devices where the L1 cache and shared memory use the same hardware\n resources, this sets through `cacheConfig` the preferred cache\n configuration for the function specified via `func`. This is only a\n preference. The runtime will use the requested configuration if\n possible, but it is free to choose a different configuration if\n required to execute `func`.\n\n `func` is a device function symbol and must be declared as a `None`\n function. If the specified function does not exist, then\n :py:obj:`~.cudaErrorInvalidDeviceFunction` is returned. For templated\n functions, pass the function symbol as follows:\n func_name\n\n This setting does nothing on devices where the size of the L1 cache and\n shared memory are fixed.\n\n Launching a kernel with a different preference than the most recent\n preference setting may insert a device-side synchronization point.\n\n The 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\n Parameters\n ----------\n func : Any\n Device function symbol\n cacheConfig : :py:obj:`~.cudaFuncCache`\n Requested cache configuration\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDeviceFunction`2\n\n See Also\n --------\n cudaFuncSetCacheConfig (C++ API), :py:obj:`~.cudaFuncGetAttributes (C API)`, :py:obj:`~.cudaLaunchKernel (C API)`, :py:obj:`~.cuFuncSetCacheConf""ig`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_159cudaFuncSetCacheConfig = {"cudaFuncSetCacheConfig", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_159cudaFuncSetCacheConfig, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_158cudaFuncSetCacheConfig}; static PyObject *__pyx_pw_4cuda_6cudart_159cudaFuncSetCacheConfig(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_func_2,&__pyx_n_s_cacheConfig,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_func_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17312, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_cacheConfig)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17312, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaFuncSetCacheConfig", 1, 2, 2, 1); __PYX_ERR(0, 17312, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaFuncSetCacheConfig") < 0)) __PYX_ERR(0, 17312, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __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, 17312, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 17313, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_158cudaFuncSetCacheConfig(__pyx_self, __pyx_v_func, __pyx_v_cacheConfig); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_158cudaFuncSetCacheConfig(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_func, PyObject *__pyx_v_cacheConfig) { PyObject *__pyx_v_cfunc = NULL; void *__pyx_v_cfunc_ptr; enum cudaFuncCache __pyx_v_ccacheConfig; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; enum cudaFuncCache __pyx_t_3; cudaError_t __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__427) __Pyx_RefNannySetupContext("cudaFuncSetCacheConfig", 1); __Pyx_TraceCall("cudaFuncSetCacheConfig", __pyx_f[0], 17312, 0, __PYX_ERR(0, 17312, __pyx_L1_error)); /* "cuda/cudart.pyx":17365 * cudaFuncSetCacheConfig (C++ API), :py:obj:`~.cudaFuncGetAttributes (C API)`, :py:obj:`~.cudaLaunchKernel (C API)`, :py:obj:`~.cuFuncSetCacheConfig` * """ * cfunc = utils.HelperInputVoidPtr(func) # <<<<<<<<<<<<<< * cdef void* cfunc_ptr = cfunc.cptr * cdef ccudart.cudaFuncCache ccacheConfig = cacheConfig.value */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_func); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17365, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_cfunc = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":17366 * """ * cfunc = utils.HelperInputVoidPtr(func) * cdef void* cfunc_ptr = cfunc.cptr # <<<<<<<<<<<<<< * cdef ccudart.cudaFuncCache ccacheConfig = cacheConfig.value * err = ccudart.cudaFuncSetCacheConfig(cfunc_ptr, ccacheConfig) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_cfunc, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17366, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17366, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cfunc_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":17367 * cfunc = utils.HelperInputVoidPtr(func) * cdef void* cfunc_ptr = cfunc.cptr * cdef ccudart.cudaFuncCache ccacheConfig = cacheConfig.value # <<<<<<<<<<<<<< * err = ccudart.cudaFuncSetCacheConfig(cfunc_ptr, ccacheConfig) * return (cudaError_t(err),) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_cacheConfig, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17367, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = ((enum cudaFuncCache)__Pyx_PyInt_As_enum__cudaFuncCache(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17367, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_ccacheConfig = __pyx_t_3; /* "cuda/cudart.pyx":17368 * cdef void* cfunc_ptr = cfunc.cptr * cdef ccudart.cudaFuncCache ccacheConfig = cacheConfig.value * err = ccudart.cudaFuncSetCacheConfig(cfunc_ptr, ccacheConfig) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_4 = __pyx_f_4cuda_7ccudart_cudaFuncSetCacheConfig(__pyx_v_cfunc_ptr, __pyx_v_ccacheConfig); if (unlikely(__pyx_t_4 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 17368, __pyx_L1_error) __pyx_v_err = __pyx_t_4; /* "cuda/cudart.pyx":17369 * cdef ccudart.cudaFuncCache ccacheConfig = cacheConfig.value * err = ccudart.cudaFuncSetCacheConfig(cfunc_ptr, ccacheConfig) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17369, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 17369, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17369, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17369, __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)) __PYX_ERR(0, 17369, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":17312 * return (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_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.cudaFuncSetCacheConfig", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_cfunc); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":17371 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaFuncGetAttributes(func): * """ Find out attributes for a given function. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_161cudaFuncGetAttributes(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_160cudaFuncGetAttributes, "cudaFuncGetAttributes(func)\n Find out attributes for a given function.\n\n This 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\n specified function does not exist, then\n :py:obj:`~.cudaErrorInvalidDeviceFunction` is returned. For templated\n functions, pass the function symbol as follows:\n func_name\n\n Note that some function attributes such as\n :py:obj:`~.maxThreadsPerBlock` may vary based on the device that is\n currently being used.\n\n Parameters\n ----------\n func : Any\n Device function symbol\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDeviceFunction`2\n attr : :py:obj:`~.cudaFuncAttributes`\n Return pointer to function's attributes\n\n See Also\n --------\n :py:obj:`~.cudaFuncSetCacheConfig (C API)`, cudaFuncGetAttributes (C++ API), :py:obj:`~.cudaLaunchKernel (C API)`, :py:obj:`~.cuFuncGetAttribute`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_161cudaFuncGetAttributes = {"cudaFuncGetAttributes", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_161cudaFuncGetAttributes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_160cudaFuncGetAttributes}; static PyObject *__pyx_pw_4cuda_6cudart_161cudaFuncGetAttributes(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_func_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_func_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17371, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaFuncGetAttributes") < 0)) __PYX_ERR(0, 17371, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_func = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaFuncGetAttributes", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 17371, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaFuncGetAttributes", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_160cudaFuncGetAttributes(__pyx_self, __pyx_v_func); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_160cudaFuncGetAttributes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_func) { struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *__pyx_v_attr = 0; PyObject *__pyx_v_cfunc = NULL; void *__pyx_v_cfunc_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; cudaError_t __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; unsigned int __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__428) __Pyx_RefNannySetupContext("cudaFuncGetAttributes", 1); __Pyx_TraceCall("cudaFuncGetAttributes", __pyx_f[0], 17371, 0, __PYX_ERR(0, 17371, __pyx_L1_error)); /* "cuda/cudart.pyx":17403 * :py:obj:`~.cudaFuncSetCacheConfig (C API)`, cudaFuncGetAttributes (C++ API), :py:obj:`~.cudaLaunchKernel (C API)`, :py:obj:`~.cuFuncGetAttribute` * """ * cdef cudaFuncAttributes attr = cudaFuncAttributes() # <<<<<<<<<<<<<< * cfunc = utils.HelperInputVoidPtr(func) * cdef void* cfunc_ptr = cfunc.cptr */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaFuncAttributes)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17403, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_attr = ((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":17404 * """ * cdef cudaFuncAttributes attr = cudaFuncAttributes() * cfunc = utils.HelperInputVoidPtr(func) # <<<<<<<<<<<<<< * cdef void* cfunc_ptr = cfunc.cptr * err = ccudart.cudaFuncGetAttributes(attr._ptr, cfunc_ptr) */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_func); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17404, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_cfunc = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":17405 * cdef cudaFuncAttributes attr = cudaFuncAttributes() * cfunc = utils.HelperInputVoidPtr(func) * cdef void* cfunc_ptr = cfunc.cptr # <<<<<<<<<<<<<< * err = ccudart.cudaFuncGetAttributes(attr._ptr, cfunc_ptr) * return (cudaError_t(err), attr) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_cfunc, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17405, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17405, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cfunc_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":17406 * cfunc = utils.HelperInputVoidPtr(func) * cdef void* cfunc_ptr = cfunc.cptr * err = ccudart.cudaFuncGetAttributes(attr._ptr, cfunc_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err), attr) * */ __pyx_t_3 = __pyx_f_4cuda_7ccudart_cudaFuncGetAttributes(((struct cudaFuncAttributes *)__pyx_v_attr->_ptr), __pyx_v_cfunc_ptr); if (unlikely(__pyx_t_3 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 17406, __pyx_L1_error) __pyx_v_err = __pyx_t_3; /* "cuda/cudart.pyx":17407 * cdef void* cfunc_ptr = cfunc.cptr * err = ccudart.cudaFuncGetAttributes(attr._ptr, cfunc_ptr) * return (cudaError_t(err), attr) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17407, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17407, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_7 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_5}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17407, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17407, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1)) __PYX_ERR(0, 17407, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_attr); __Pyx_GIVEREF((PyObject *)__pyx_v_attr); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, ((PyObject *)__pyx_v_attr))) __PYX_ERR(0, 17407, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":17371 * return (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_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("cuda.cudart.cudaFuncGetAttributes", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_attr); __Pyx_XDECREF(__pyx_v_cfunc); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":17409 * return (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_6cudart_163cudaFuncSetAttribute(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_162cudaFuncSetAttribute, "cudaFuncSetAttribute(func, attr: cudaFuncAttribute, int value)\n Set attributes for a given function.\n\n This function sets the attributes of a function specified via `func`.\n The parameter `func` must be a pointer to a function that executes on\n the device. The parameter specified by `func` must be declared as a\n `None` function. The enumeration defined by `attr` is set to the value\n defined by `value`. If the specified function does not exist, then\n :py:obj:`~.cudaErrorInvalidDeviceFunction` is returned. If the\n specified attribute cannot be written, or if the value is incorrect,\n then :py:obj:`~.cudaErrorInvalidValue` is returned.\n\n Valid 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:o""bj:`~.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\n cudaLaunchKernel (C++ API), cudaFuncSetCacheConfig (C++ API),\n :py:obj:`~.cudaFuncGetAttributes (C API)`,\n\n Parameters\n ----------\n func : Any\n Function to get attributes of\n attr : :py:obj:`~.cudaFuncAttribute`\n Attribute to set\n value : int\n Value to set\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDeviceFunction`, :py:obj:`~.cudaErrorInvalidValue`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_163cudaFuncSetAttribute = {"cudaFuncSetAttribute", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_163cudaFuncSetAttribute, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_162cudaFuncSetAttribute}; static PyObject *__pyx_pw_4cuda_6cudart_163cudaFuncSetAttribute(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_func_2,&__pyx_n_s_attr,&__pyx_n_s_value,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_func_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17409, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_attr)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17409, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaFuncSetAttribute", 1, 3, 3, 1); __PYX_ERR(0, 17409, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_value)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17409, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaFuncSetAttribute", 1, 3, 3, 2); __PYX_ERR(0, 17409, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaFuncSetAttribute") < 0)) __PYX_ERR(0, 17409, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_func = values[0]; __pyx_v_attr = values[1]; __pyx_v_value = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 17410, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaFuncSetAttribute", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 17409, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 17410, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_162cudaFuncSetAttribute(__pyx_self, __pyx_v_func, __pyx_v_attr, __pyx_v_value); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_162cudaFuncSetAttribute(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_func, PyObject *__pyx_v_attr, int __pyx_v_value) { PyObject *__pyx_v_cfunc = NULL; void *__pyx_v_cfunc_ptr; enum cudaFuncAttribute __pyx_v_cattr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; enum cudaFuncAttribute __pyx_t_3; cudaError_t __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__429) __Pyx_RefNannySetupContext("cudaFuncSetAttribute", 1); __Pyx_TraceCall("cudaFuncSetAttribute", __pyx_f[0], 17409, 0, __PYX_ERR(0, 17409, __pyx_L1_error)); /* "cuda/cudart.pyx":17485 * :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDeviceFunction`, :py:obj:`~.cudaErrorInvalidValue` * """ * cfunc = utils.HelperInputVoidPtr(func) # <<<<<<<<<<<<<< * cdef void* cfunc_ptr = cfunc.cptr * cdef ccudart.cudaFuncAttribute cattr = attr.value */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_func); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17485, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_cfunc = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":17486 * """ * cfunc = utils.HelperInputVoidPtr(func) * cdef void* cfunc_ptr = cfunc.cptr # <<<<<<<<<<<<<< * cdef ccudart.cudaFuncAttribute cattr = attr.value * err = ccudart.cudaFuncSetAttribute(cfunc_ptr, cattr, value) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_cfunc, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17486, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17486, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cfunc_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":17487 * cfunc = utils.HelperInputVoidPtr(func) * cdef void* cfunc_ptr = cfunc.cptr * cdef ccudart.cudaFuncAttribute cattr = attr.value # <<<<<<<<<<<<<< * err = ccudart.cudaFuncSetAttribute(cfunc_ptr, cattr, value) * return (cudaError_t(err),) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17487, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = ((enum cudaFuncAttribute)__Pyx_PyInt_As_enum__cudaFuncAttribute(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17487, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cattr = __pyx_t_3; /* "cuda/cudart.pyx":17488 * cdef void* cfunc_ptr = cfunc.cptr * cdef ccudart.cudaFuncAttribute cattr = attr.value * err = ccudart.cudaFuncSetAttribute(cfunc_ptr, cattr, value) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_4 = __pyx_f_4cuda_7ccudart_cudaFuncSetAttribute(__pyx_v_cfunc_ptr, __pyx_v_cattr, __pyx_v_value); if (unlikely(__pyx_t_4 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 17488, __pyx_L1_error) __pyx_v_err = __pyx_t_4; /* "cuda/cudart.pyx":17489 * cdef ccudart.cudaFuncAttribute cattr = attr.value * err = ccudart.cudaFuncSetAttribute(cfunc_ptr, cattr, value) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17489, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 17489, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17489, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17489, __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)) __PYX_ERR(0, 17489, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":17409 * return (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_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.cudaFuncSetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_cfunc); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":17491 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaLaunchHostFunc(stream, fn, userData): * """ Enqueues a host function call in a stream. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_165cudaLaunchHostFunc(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_164cudaLaunchHostFunc, "cudaLaunchHostFunc(stream, fn, userData)\n Enqueues a host function call in a stream.\n\n Enqueues a host function to run in a stream. The function will be\n called after currently enqueued work and will block work added after\n it.\n\n The host function must not make any CUDA API calls. Attempting to use a\n CUDA API may result in :py:obj:`~.cudaErrorNotPermitted`, but this is\n not required. The host function must not perform any synchronization\n that may depend on outstanding CUDA work not mandated to run earlier.\n Host functions without a mandated order (such as in independent\n streams) execute in undefined order and may be serialized.\n\n For the purposes of Unified Memory, execution makes a number of\n guarantees:\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\n Note that, in constrast to :py:obj:`~.cuStreamAddCallback`, the\n function will not be called in the event of an error in the CUDA\n context.\n\n Parameters\n ----------\n hStream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n Stream to enqueue function call in\n fn : :py:obj:`~.cudaHostFn_t`\n The function to call once preceding stream operations are complete\n userData : Any\n User-specified data to be passed to the function\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorNotSupported`\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_165cudaLaunchHostFunc = {"cudaLaunchHostFunc", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_165cudaLaunchHostFunc, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_164cudaLaunchHostFunc}; static PyObject *__pyx_pw_4cuda_6cudart_165cudaLaunchHostFunc(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_stream,&__pyx_n_s_fn_2,&__pyx_n_s_userData_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17491, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_fn_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17491, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaLaunchHostFunc", 1, 3, 3, 1); __PYX_ERR(0, 17491, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_userData_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17491, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaLaunchHostFunc", 1, 3, 3, 2); __PYX_ERR(0, 17491, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaLaunchHostFunc") < 0)) __PYX_ERR(0, 17491, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __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, 17491, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaLaunchHostFunc", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_164cudaLaunchHostFunc(__pyx_self, __pyx_v_stream, __pyx_v_fn, __pyx_v_userData); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_164cudaLaunchHostFunc(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_stream, PyObject *__pyx_v_fn, PyObject *__pyx_v_userData) { cudaHostFn_t __pyx_v_cfn; PyObject *__pyx_v_pfn = NULL; cudaStream_t __pyx_v_cstream; PyObject *__pyx_v_pstream = NULL; PyObject *__pyx_v_cuserData = NULL; void *__pyx_v_cuserData_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_t_5; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__430) __Pyx_RefNannySetupContext("cudaLaunchHostFunc", 1); __Pyx_TraceCall("cudaLaunchHostFunc", __pyx_f[0], 17491, 0, __PYX_ERR(0, 17491, __pyx_L1_error)); /* "cuda/cudart.pyx":17554 * """ * cdef ccudart.cudaHostFn_t cfn * if fn is None: # <<<<<<<<<<<<<< * cfn = 0 * elif isinstance(fn, (cudaHostFn_t,)): */ __pyx_t_1 = (__pyx_v_fn == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":17555 * cdef ccudart.cudaHostFn_t cfn * if fn is None: * cfn = 0 # <<<<<<<<<<<<<< * elif isinstance(fn, (cudaHostFn_t,)): * pfn = int(fn) */ __pyx_v_cfn = ((cudaHostFn_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":17554 * """ * cdef ccudart.cudaHostFn_t cfn * if fn is None: # <<<<<<<<<<<<<< * cfn = 0 * elif isinstance(fn, (cudaHostFn_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":17556 * if fn is None: * cfn = 0 * elif isinstance(fn, (cudaHostFn_t,)): # <<<<<<<<<<<<<< * pfn = int(fn) * cfn = pfn */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_fn, __pyx_ptype_4cuda_6cudart_cudaHostFn_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":17557 * cfn = 0 * elif isinstance(fn, (cudaHostFn_t,)): * pfn = int(fn) # <<<<<<<<<<<<<< * cfn = pfn * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_fn); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17557, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_pfn = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":17558 * elif isinstance(fn, (cudaHostFn_t,)): * pfn = int(fn) * cfn = pfn # <<<<<<<<<<<<<< * else: * pfn = int(cudaHostFn_t(fn)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pfn); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17558, __pyx_L1_error) __pyx_v_cfn = ((cudaHostFn_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":17556 * if fn is None: * cfn = 0 * elif isinstance(fn, (cudaHostFn_t,)): # <<<<<<<<<<<<<< * pfn = int(fn) * cfn = pfn */ goto __pyx_L3; } /* "cuda/cudart.pyx":17560 * cfn = pfn * else: * pfn = int(cudaHostFn_t(fn)) # <<<<<<<<<<<<<< * cfn = pfn * cdef ccudart.cudaStream_t cstream */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaHostFn_t), __pyx_v_fn); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17560, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17560, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_pfn = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":17561 * else: * pfn = int(cudaHostFn_t(fn)) * cfn = pfn # <<<<<<<<<<<<<< * cdef ccudart.cudaStream_t cstream * if stream is None: */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pfn); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17561, __pyx_L1_error) __pyx_v_cfn = ((cudaHostFn_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":17563 * cfn = pfn * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_stream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":17564 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":17563 * cfn = pfn * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L4; } /* "cuda/cudart.pyx":17565 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_5 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_cudaStream_t); if (!__pyx_t_5) { } else { __pyx_t_1 = __pyx_t_5; goto __pyx_L5_bool_binop_done; } __pyx_t_5 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_5; __pyx_L5_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":17566 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17566, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_pstream = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":17567 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17567, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":17565 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L4; } /* "cuda/cudart.pyx":17569 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * cuserData = utils.HelperInputVoidPtr(userData) */ /*else*/ { __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17569, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17569, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_pstream = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":17570 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * cuserData = utils.HelperInputVoidPtr(userData) * cdef void* cuserData_ptr = cuserData.cptr */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17570, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L4:; /* "cuda/cudart.pyx":17571 * pstream = int(cudaStream_t(stream)) * cstream = pstream * cuserData = utils.HelperInputVoidPtr(userData) # <<<<<<<<<<<<<< * cdef void* cuserData_ptr = cuserData.cptr * with nogil: */ __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_userData); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17571, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_cuserData = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":17572 * cstream = pstream * cuserData = utils.HelperInputVoidPtr(userData) * cdef void* cuserData_ptr = cuserData.cptr # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaLaunchHostFunc(cstream, cfn, cuserData_ptr) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_cuserData, __pyx_n_s_cptr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17572, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_2); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17572, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_cuserData_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":17573 * cuserData = utils.HelperInputVoidPtr(userData) * cdef void* cuserData_ptr = cuserData.cptr * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaLaunchHostFunc(cstream, cfn, cuserData_ptr) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":17574 * cdef void* cuserData_ptr = cuserData.cptr * with nogil: * err = ccudart.cudaLaunchHostFunc(cstream, cfn, cuserData_ptr) # <<<<<<<<<<<<<< * * return (cudaError_t(err),) */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaLaunchHostFunc(__pyx_v_cstream, __pyx_v_cfn, __pyx_v_cuserData_ptr); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 17574, __pyx_L8_error) __pyx_v_err = __pyx_t_6; } /* "cuda/cudart.pyx":17573 * cuserData = utils.HelperInputVoidPtr(userData) * cdef void* cuserData_ptr = cuserData.cptr * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaLaunchHostFunc(cstream, cfn, cuserData_ptr) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L9; } __pyx_L8_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L9:; } } /* "cuda/cudart.pyx":17576 * err = ccudart.cudaLaunchHostFunc(cstream, cfn, cuserData_ptr) * * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17576, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 17576, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17576, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17576, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 17576, __pyx_L1_error); __pyx_t_2 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":17491 * return (cudaError_t(err),) * * @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_4); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaLaunchHostFunc", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pfn); __Pyx_XDECREF(__pyx_v_pstream); __Pyx_XDECREF(__pyx_v_cuserData); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":17578 * return (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_6cudart_167cudaFuncSetSharedMemConfig(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_166cudaFuncSetSharedMemConfig, "cudaFuncSetSharedMemConfig(func, config: cudaSharedMemConfig)\n Sets the shared memory configuration for a device function.\n\n [Deprecated]\n\n On devices with configurable shared memory banks, this function will\n force all subsequent launches of the specified device function to have\n the given shared memory bank size configuration. On any given launch of\n the function, the shared memory configuration of the device will be\n temporarily changed if needed to suit the function's preferred\n configuration. Changes in shared memory configuration between\n subsequent launches of functions, may introduce a device side\n synchronization point.\n\n Any per-function setting of shared memory bank size set via\n :py:obj:`~.cudaFuncSetSharedMemConfig` will override the device wide\n setting set by :py:obj:`~.cudaDeviceSetSharedMemConfig`.\n\n Changing the shared memory bank size will not increase shared memory\n usage or affect occupancy of kernels, but may have major effects on\n performance. Larger bank sizes will allow for greater potential\n bandwidth to shared memory, but will change what kinds of accesses to\n shared memory will result in bank conflicts.\n\n This function will do nothing on devices with fixed shared memory bank\n size.\n\n For templated functions, pass the function symbol as follows:\n func_name\n\n The 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\n Parameters\n ----------\n func : Any\n Device function symbol\n config : :py:o""bj:`~.cudaSharedMemConfig`\n Requested shared memory configuration\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDeviceFunction`, :py:obj:`~.cudaErrorInvalidValue`,2\n\n See Also\n --------\n :py:obj:`~.cudaDeviceSetSharedMemConfig`, :py:obj:`~.cudaDeviceGetSharedMemConfig`, :py:obj:`~.cudaDeviceSetCacheConfig`, :py:obj:`~.cudaDeviceGetCacheConfig`, :py:obj:`~.cudaFuncSetCacheConfig`, :py:obj:`~.cuFuncSetSharedMemConfig`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_167cudaFuncSetSharedMemConfig = {"cudaFuncSetSharedMemConfig", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_167cudaFuncSetSharedMemConfig, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_166cudaFuncSetSharedMemConfig}; static PyObject *__pyx_pw_4cuda_6cudart_167cudaFuncSetSharedMemConfig(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_func_2,&__pyx_n_s_config,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_func_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17578, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_config)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17578, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaFuncSetSharedMemConfig", 1, 2, 2, 1); __PYX_ERR(0, 17578, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaFuncSetSharedMemConfig") < 0)) __PYX_ERR(0, 17578, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __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, 17578, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 17579, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_166cudaFuncSetSharedMemConfig(__pyx_self, __pyx_v_func, __pyx_v_config); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_166cudaFuncSetSharedMemConfig(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_func, PyObject *__pyx_v_config) { PyObject *__pyx_v_cfunc = NULL; void *__pyx_v_cfunc_ptr; enum cudaSharedMemConfig __pyx_v_cconfig; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; enum cudaSharedMemConfig __pyx_t_3; cudaError_t __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__431) __Pyx_RefNannySetupContext("cudaFuncSetSharedMemConfig", 1); __Pyx_TraceCall("cudaFuncSetSharedMemConfig", __pyx_f[0], 17578, 0, __PYX_ERR(0, 17578, __pyx_L1_error)); /* "cuda/cudart.pyx":17636 * :py:obj:`~.cudaDeviceSetSharedMemConfig`, :py:obj:`~.cudaDeviceGetSharedMemConfig`, :py:obj:`~.cudaDeviceSetCacheConfig`, :py:obj:`~.cudaDeviceGetCacheConfig`, :py:obj:`~.cudaFuncSetCacheConfig`, :py:obj:`~.cuFuncSetSharedMemConfig` * """ * cfunc = utils.HelperInputVoidPtr(func) # <<<<<<<<<<<<<< * cdef void* cfunc_ptr = cfunc.cptr * cdef ccudart.cudaSharedMemConfig cconfig = config.value */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_func); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17636, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_cfunc = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":17637 * """ * cfunc = utils.HelperInputVoidPtr(func) * cdef void* cfunc_ptr = cfunc.cptr # <<<<<<<<<<<<<< * cdef ccudart.cudaSharedMemConfig cconfig = config.value * err = ccudart.cudaFuncSetSharedMemConfig(cfunc_ptr, cconfig) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_cfunc, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17637, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17637, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cfunc_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":17638 * cfunc = utils.HelperInputVoidPtr(func) * cdef void* cfunc_ptr = cfunc.cptr * cdef ccudart.cudaSharedMemConfig cconfig = config.value # <<<<<<<<<<<<<< * err = ccudart.cudaFuncSetSharedMemConfig(cfunc_ptr, cconfig) * return (cudaError_t(err),) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_config, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17638, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = ((enum cudaSharedMemConfig)__Pyx_PyInt_As_enum__cudaSharedMemConfig(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17638, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cconfig = __pyx_t_3; /* "cuda/cudart.pyx":17639 * cdef void* cfunc_ptr = cfunc.cptr * cdef ccudart.cudaSharedMemConfig cconfig = config.value * err = ccudart.cudaFuncSetSharedMemConfig(cfunc_ptr, cconfig) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_4 = __pyx_f_4cuda_7ccudart_cudaFuncSetSharedMemConfig(__pyx_v_cfunc_ptr, __pyx_v_cconfig); if (unlikely(__pyx_t_4 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 17639, __pyx_L1_error) __pyx_v_err = __pyx_t_4; /* "cuda/cudart.pyx":17640 * cdef ccudart.cudaSharedMemConfig cconfig = config.value * err = ccudart.cudaFuncSetSharedMemConfig(cfunc_ptr, cconfig) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17640, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 17640, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17640, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17640, __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)) __PYX_ERR(0, 17640, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":17578 * return (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_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.cudaFuncSetSharedMemConfig", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_cfunc); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":17642 * return (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_6cudart_169cudaOccupancyMaxActiveBlocksPerMultiprocessor(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_168cudaOccupancyMaxActiveBlocksPerMultiprocessor, "cudaOccupancyMaxActiveBlocksPerMultiprocessor(func, int blockSize, size_t dynamicSMemSize)\n Returns occupancy for a device function.\n\n Returns in `*numBlocks` the maximum number of active blocks per\n streaming multiprocessor for the device function.\n\n Parameters\n ----------\n func : Any\n Kernel function for which occupancy is calculated\n blockSize : int\n Block size the kernel is intended to be launched with\n dynamicSMemSize : size_t\n Per-block dynamic shared memory usage intended, in bytes\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorInvalidDeviceFunction`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorUnknown`,\n numBlocks : int\n Returned occupancy\n\n See Also\n --------\n :py:obj:`~.cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags`, cudaOccupancyMaxPotentialBlockSize (C++ API), cudaOccupancyMaxPotentialBlockSizeWithFlags (C++ API), cudaOccupancyMaxPotentialBlockSizeVariableSMem (C++ API), cudaOccupancyMaxPotentialBlockSizeVariableSMemWithFlags (C++ API), cudaOccupancyAvailableDynamicSMemPerBlock (C++ API), :py:obj:`~.cuOccupancyMaxActiveBlocksPerMultiprocessor`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_169cudaOccupancyMaxActiveBlocksPerMultiprocessor = {"cudaOccupancyMaxActiveBlocksPerMultiprocessor", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_169cudaOccupancyMaxActiveBlocksPerMultiprocessor, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_168cudaOccupancyMaxActiveBlocksPerMultiprocessor}; static PyObject *__pyx_pw_4cuda_6cudart_169cudaOccupancyMaxActiveBlocksPerMultiprocessor(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_func_2,&__pyx_n_s_blockSize,&__pyx_n_s_dynamicSMemSize,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_func_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17642, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_blockSize)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17642, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaOccupancyMaxActiveBlocksPerMultiprocessor", 1, 3, 3, 1); __PYX_ERR(0, 17642, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dynamicSMemSize)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17642, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaOccupancyMaxActiveBlocksPerMultiprocessor", 1, 3, 3, 2); __PYX_ERR(0, 17642, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaOccupancyMaxActiveBlocksPerMultiprocessor") < 0)) __PYX_ERR(0, 17642, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_func = values[0]; __pyx_v_blockSize = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_blockSize == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 17643, __pyx_L3_error) __pyx_v_dynamicSMemSize = __Pyx_PyInt_As_size_t(values[2]); if (unlikely((__pyx_v_dynamicSMemSize == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 17643, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaOccupancyMaxActiveBlocksPerMultiprocessor", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 17642, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaOccupancyMaxActiveBlocksPerMultiprocessor", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_168cudaOccupancyMaxActiveBlocksPerMultiprocessor(__pyx_self, __pyx_v_func, __pyx_v_blockSize, __pyx_v_dynamicSMemSize); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_168cudaOccupancyMaxActiveBlocksPerMultiprocessor(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_func, int __pyx_v_blockSize, size_t __pyx_v_dynamicSMemSize) { int __pyx_v_numBlocks; PyObject *__pyx_v_cfunc = NULL; void *__pyx_v_cfunc_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; cudaError_t __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; unsigned int __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__432) __Pyx_RefNannySetupContext("cudaOccupancyMaxActiveBlocksPerMultiprocessor", 1); __Pyx_TraceCall("cudaOccupancyMaxActiveBlocksPerMultiprocessor", __pyx_f[0], 17642, 0, __PYX_ERR(0, 17642, __pyx_L1_error)); /* "cuda/cudart.pyx":17669 * :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 # <<<<<<<<<<<<<< * cfunc = utils.HelperInputVoidPtr(func) * cdef void* cfunc_ptr = cfunc.cptr */ __pyx_v_numBlocks = 0; /* "cuda/cudart.pyx":17670 * """ * cdef int numBlocks = 0 * cfunc = utils.HelperInputVoidPtr(func) # <<<<<<<<<<<<<< * cdef void* cfunc_ptr = cfunc.cptr * err = ccudart.cudaOccupancyMaxActiveBlocksPerMultiprocessor(&numBlocks, cfunc_ptr, blockSize, dynamicSMemSize) */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_func); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17670, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_cfunc = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":17671 * cdef int numBlocks = 0 * cfunc = utils.HelperInputVoidPtr(func) * cdef void* cfunc_ptr = cfunc.cptr # <<<<<<<<<<<<<< * err = ccudart.cudaOccupancyMaxActiveBlocksPerMultiprocessor(&numBlocks, cfunc_ptr, blockSize, dynamicSMemSize) * return (cudaError_t(err), numBlocks) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_cfunc, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17671, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17671, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cfunc_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":17672 * cfunc = utils.HelperInputVoidPtr(func) * cdef void* cfunc_ptr = cfunc.cptr * err = ccudart.cudaOccupancyMaxActiveBlocksPerMultiprocessor(&numBlocks, cfunc_ptr, blockSize, dynamicSMemSize) # <<<<<<<<<<<<<< * return (cudaError_t(err), numBlocks) * */ __pyx_t_3 = __pyx_f_4cuda_7ccudart_cudaOccupancyMaxActiveBlocksPerMultiprocessor((&__pyx_v_numBlocks), __pyx_v_cfunc_ptr, __pyx_v_blockSize, __pyx_v_dynamicSMemSize); if (unlikely(__pyx_t_3 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 17672, __pyx_L1_error) __pyx_v_err = __pyx_t_3; /* "cuda/cudart.pyx":17673 * cdef void* cfunc_ptr = cfunc.cptr * err = ccudart.cudaOccupancyMaxActiveBlocksPerMultiprocessor(&numBlocks, cfunc_ptr, blockSize, dynamicSMemSize) * return (cudaError_t(err), numBlocks) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17673, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17673, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_7 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_5}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17673, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_numBlocks); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17673, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17673, __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)) __PYX_ERR(0, 17673, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_4)) __PYX_ERR(0, 17673, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":17642 * return (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_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("cuda.cudart.cudaOccupancyMaxActiveBlocksPerMultiprocessor", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_cfunc); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":17675 * return (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_6cudart_171cudaOccupancyAvailableDynamicSMemPerBlock(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_170cudaOccupancyAvailableDynamicSMemPerBlock, "cudaOccupancyAvailableDynamicSMemPerBlock(func, int numBlocks, int blockSize)\n Returns dynamic shared memory available per block when launching `numBlocks` blocks on SM.\n\n Returns in `*dynamicSmemSize` the maximum size of dynamic shared memory\n to allow `numBlocks` blocks per SM.\n\n Parameters\n ----------\n func : Any\n Kernel function for which occupancy is calculated\n numBlocks : int\n Number of blocks to fit on SM\n blockSize : int\n Size of the block\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorInvalidDeviceFunction`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorUnknown`,\n dynamicSmemSize : int\n Returned maximum dynamic shared memory\n\n See Also\n --------\n :py:obj:`~.cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags`, cudaOccupancyMaxPotentialBlockSize (C++ API), cudaOccupancyMaxPotentialBlockSizeWithFlags (C++ API), cudaOccupancyMaxPotentialBlockSizeVariableSMem (C++ API), cudaOccupancyMaxPotentialBlockSizeVariableSMemWithFlags (C++ API), :py:obj:`~.cudaOccupancyAvailableDynamicSMemPerBlock`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_171cudaOccupancyAvailableDynamicSMemPerBlock = {"cudaOccupancyAvailableDynamicSMemPerBlock", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_171cudaOccupancyAvailableDynamicSMemPerBlock, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_170cudaOccupancyAvailableDynamicSMemPerBlock}; static PyObject *__pyx_pw_4cuda_6cudart_171cudaOccupancyAvailableDynamicSMemPerBlock(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_func_2,&__pyx_n_s_numBlocks,&__pyx_n_s_blockSize,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_func_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17675, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_numBlocks)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17675, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaOccupancyAvailableDynamicSMemPerBlock", 1, 3, 3, 1); __PYX_ERR(0, 17675, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_blockSize)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17675, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaOccupancyAvailableDynamicSMemPerBlock", 1, 3, 3, 2); __PYX_ERR(0, 17675, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaOccupancyAvailableDynamicSMemPerBlock") < 0)) __PYX_ERR(0, 17675, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_func = values[0]; __pyx_v_numBlocks = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_numBlocks == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 17676, __pyx_L3_error) __pyx_v_blockSize = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_blockSize == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 17676, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaOccupancyAvailableDynamicSMemPerBlock", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 17675, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaOccupancyAvailableDynamicSMemPerBlock", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_170cudaOccupancyAvailableDynamicSMemPerBlock(__pyx_self, __pyx_v_func, __pyx_v_numBlocks, __pyx_v_blockSize); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_170cudaOccupancyAvailableDynamicSMemPerBlock(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_func, int __pyx_v_numBlocks, int __pyx_v_blockSize) { size_t __pyx_v_dynamicSmemSize; PyObject *__pyx_v_cfunc = NULL; void *__pyx_v_cfunc_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; cudaError_t __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; unsigned int __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__433) __Pyx_RefNannySetupContext("cudaOccupancyAvailableDynamicSMemPerBlock", 1); __Pyx_TraceCall("cudaOccupancyAvailableDynamicSMemPerBlock", __pyx_f[0], 17675, 0, __PYX_ERR(0, 17675, __pyx_L1_error)); /* "cuda/cudart.pyx":17702 * :py:obj:`~.cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags`, cudaOccupancyMaxPotentialBlockSize (C++ API), cudaOccupancyMaxPotentialBlockSizeWithFlags (C++ API), cudaOccupancyMaxPotentialBlockSizeVariableSMem (C++ API), cudaOccupancyMaxPotentialBlockSizeVariableSMemWithFlags (C++ API), :py:obj:`~.cudaOccupancyAvailableDynamicSMemPerBlock` * """ * cdef size_t dynamicSmemSize = 0 # <<<<<<<<<<<<<< * cfunc = utils.HelperInputVoidPtr(func) * cdef void* cfunc_ptr = cfunc.cptr */ __pyx_v_dynamicSmemSize = 0; /* "cuda/cudart.pyx":17703 * """ * cdef size_t dynamicSmemSize = 0 * cfunc = utils.HelperInputVoidPtr(func) # <<<<<<<<<<<<<< * cdef void* cfunc_ptr = cfunc.cptr * err = ccudart.cudaOccupancyAvailableDynamicSMemPerBlock(&dynamicSmemSize, cfunc_ptr, numBlocks, blockSize) */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_func); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17703, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_cfunc = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":17704 * cdef size_t dynamicSmemSize = 0 * cfunc = utils.HelperInputVoidPtr(func) * cdef void* cfunc_ptr = cfunc.cptr # <<<<<<<<<<<<<< * err = ccudart.cudaOccupancyAvailableDynamicSMemPerBlock(&dynamicSmemSize, cfunc_ptr, numBlocks, blockSize) * return (cudaError_t(err), dynamicSmemSize) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_cfunc, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17704, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17704, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cfunc_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":17705 * cfunc = utils.HelperInputVoidPtr(func) * cdef void* cfunc_ptr = cfunc.cptr * err = ccudart.cudaOccupancyAvailableDynamicSMemPerBlock(&dynamicSmemSize, cfunc_ptr, numBlocks, blockSize) # <<<<<<<<<<<<<< * return (cudaError_t(err), dynamicSmemSize) * */ __pyx_t_3 = __pyx_f_4cuda_7ccudart_cudaOccupancyAvailableDynamicSMemPerBlock((&__pyx_v_dynamicSmemSize), __pyx_v_cfunc_ptr, __pyx_v_numBlocks, __pyx_v_blockSize); if (unlikely(__pyx_t_3 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 17705, __pyx_L1_error) __pyx_v_err = __pyx_t_3; /* "cuda/cudart.pyx":17706 * cdef void* cfunc_ptr = cfunc.cptr * err = ccudart.cudaOccupancyAvailableDynamicSMemPerBlock(&dynamicSmemSize, cfunc_ptr, numBlocks, blockSize) * return (cudaError_t(err), dynamicSmemSize) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17706, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17706, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_7 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_5}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17706, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = __Pyx_PyInt_FromSize_t(__pyx_v_dynamicSmemSize); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17706, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17706, __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)) __PYX_ERR(0, 17706, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_4)) __PYX_ERR(0, 17706, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":17675 * return (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_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("cuda.cudart.cudaOccupancyAvailableDynamicSMemPerBlock", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_cfunc); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":17708 * return (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_6cudart_173cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_172cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags, "cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(func, int blockSize, size_t dynamicSMemSize, unsigned int flags)\n Returns occupancy for a device function with the specified flags.\n\n Returns in `*numBlocks` the maximum number of active blocks per\n streaming multiprocessor for the device function.\n\n The `flags` parameter controls how special cases are handled. Valid\n flags 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\n Parameters\n ----------\n func : Any\n Kernel function for which occupancy is calculated\n blockSize : int\n Block size the kernel is intended to be launched with\n dynamicSMemSize : size_t\n Per-block dynamic shared memory usage intended, in bytes\n flags : unsigned int\n Requested behavior for the occupancy calculator\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorInvalidDeviceFunction`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorUnknown`,\n numBlocks : int\n Returned occupancy\n\n See Also\n --------\n :py:obj:`~.cudaOccupancyMaxActiveBlocksPerMultiprocessor`, cudaOccupancyMaxPotentialBlockSize (C++ API), cudaOccupancyMaxPotentialBlockSizeWithFlags (C++ API), cudaOccupancyMaxPotentialBl""ockSizeVariableSMem (C++ API), cudaOccupancyMaxPotentialBlockSizeVariableSMemWithFlags (C++ API), cudaOccupancyAvailableDynamicSMemPerBlock (C++ API), :py:obj:`~.cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_173cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags = {"cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_173cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_172cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags}; static PyObject *__pyx_pw_4cuda_6cudart_173cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_func_2,&__pyx_n_s_blockSize,&__pyx_n_s_dynamicSMemSize,&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_func_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17708, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_blockSize)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17708, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags", 1, 4, 4, 1); __PYX_ERR(0, 17708, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dynamicSMemSize)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17708, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags", 1, 4, 4, 2); __PYX_ERR(0, 17708, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17708, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags", 1, 4, 4, 3); __PYX_ERR(0, 17708, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags") < 0)) __PYX_ERR(0, 17708, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); } __pyx_v_func = values[0]; __pyx_v_blockSize = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_blockSize == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 17709, __pyx_L3_error) __pyx_v_dynamicSMemSize = __Pyx_PyInt_As_size_t(values[2]); if (unlikely((__pyx_v_dynamicSMemSize == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 17709, __pyx_L3_error) __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[3]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 17709, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 17708, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_172cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(__pyx_self, __pyx_v_func, __pyx_v_blockSize, __pyx_v_dynamicSMemSize, __pyx_v_flags); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_172cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(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; PyObject *__pyx_v_cfunc = NULL; void *__pyx_v_cfunc_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; cudaError_t __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; unsigned int __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__434) __Pyx_RefNannySetupContext("cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags", 1); __Pyx_TraceCall("cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags", __pyx_f[0], 17708, 0, __PYX_ERR(0, 17708, __pyx_L1_error)); /* "cuda/cudart.pyx":17752 * :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 # <<<<<<<<<<<<<< * cfunc = utils.HelperInputVoidPtr(func) * cdef void* cfunc_ptr = cfunc.cptr */ __pyx_v_numBlocks = 0; /* "cuda/cudart.pyx":17753 * """ * cdef int numBlocks = 0 * cfunc = utils.HelperInputVoidPtr(func) # <<<<<<<<<<<<<< * cdef void* cfunc_ptr = cfunc.cptr * err = ccudart.cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(&numBlocks, cfunc_ptr, blockSize, dynamicSMemSize, flags) */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_func); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17753, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_cfunc = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":17754 * cdef int numBlocks = 0 * cfunc = utils.HelperInputVoidPtr(func) * cdef void* cfunc_ptr = cfunc.cptr # <<<<<<<<<<<<<< * err = ccudart.cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(&numBlocks, cfunc_ptr, blockSize, dynamicSMemSize, flags) * return (cudaError_t(err), numBlocks) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_cfunc, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17754, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17754, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cfunc_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":17755 * cfunc = utils.HelperInputVoidPtr(func) * cdef void* cfunc_ptr = cfunc.cptr * err = ccudart.cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(&numBlocks, cfunc_ptr, blockSize, dynamicSMemSize, flags) # <<<<<<<<<<<<<< * return (cudaError_t(err), numBlocks) * */ __pyx_t_3 = __pyx_f_4cuda_7ccudart_cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags((&__pyx_v_numBlocks), __pyx_v_cfunc_ptr, __pyx_v_blockSize, __pyx_v_dynamicSMemSize, __pyx_v_flags); if (unlikely(__pyx_t_3 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 17755, __pyx_L1_error) __pyx_v_err = __pyx_t_3; /* "cuda/cudart.pyx":17756 * cdef void* cfunc_ptr = cfunc.cptr * err = ccudart.cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(&numBlocks, cfunc_ptr, blockSize, dynamicSMemSize, flags) * return (cudaError_t(err), numBlocks) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17756, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17756, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_7 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_5}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17756, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_numBlocks); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17756, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17756, __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)) __PYX_ERR(0, 17756, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_4)) __PYX_ERR(0, 17756, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":17708 * return (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_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("cuda.cudart.cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_cfunc); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":17758 * return (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_6cudart_175cudaMallocManaged(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_174cudaMallocManaged, "cudaMallocManaged(size_t size, unsigned int flags)\n Allocates memory that will be automatically managed by the Unified Memory system.\n\n Allocates `size` bytes of managed memory on the device and returns in\n `*devPtr` a pointer to the allocated memory. If the device doesn't\n support allocating managed memory, :py:obj:`~.cudaErrorNotSupported` is\n returned. Support for managed memory can be queried using the device\n attribute :py:obj:`~.cudaDevAttrManagedMemory`. The allocated memory is\n suitably aligned for any kind of variable. The memory is not cleared.\n If `size` is 0, :py:obj:`~.cudaMallocManaged` returns\n :py:obj:`~.cudaErrorInvalidValue`. The pointer is valid on the CPU and\n on all GPUs in the system that support managed memory. All accesses to\n this 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\n specified, then this memory is accessible from any stream on any\n device. If :py:obj:`~.cudaMemAttachHost` is specified, then the\n allocation should not be accessed from devices that have a zero value\n for the device attribute\n :py:obj:`~.cudaDevAttrConcurrentManagedAccess`; an explicit call to\n :py:obj:`~.cudaStreamAttachMemAsync` will be required to enable access\n on such devices.\n\n If the association is later changed via\n :py:obj:`~.cudaStreamAttachMemAsync` to a single stream, the default\n association, as specifed during :py:obj:`~.cudaMallocManaged`, is\n restored when that stream is destroyed. For managed variables, the\n default association is always :py:obj:`~.cudaMemAttachGlobal`. Note\n that destroying a stream is an asynchronous operation, and as a result,\n the change to def""ault association won't happen until all work in the\n stream has completed.\n\n Memory allocated with :py:obj:`~.cudaMallocManaged` should be released\n with :py:obj:`~.cudaFree`.\n\n Device memory oversubscription is possible for GPUs that have a non-\n zero value for the device attribute\n :py:obj:`~.cudaDevAttrConcurrentManagedAccess`. Managed memory on such\n GPUs may be evicted from device memory to host memory at any time by\n the Unified Memory driver in order to make room for other allocations.\n\n In a system where all GPUs have a non-zero value for the device\n attribute :py:obj:`~.cudaDevAttrConcurrentManagedAccess`, managed\n memory may not be populated when this API returns and instead may be\n populated on access. In such systems, managed memory can migrate to any\n processor's memory at any time. The Unified Memory driver will employ\n heuristics to maintain data locality and prevent excessive page faults\n to the extent possible. The application can also guide the driver about\n memory usage patterns via :py:obj:`~.cudaMemAdvise`. The application\n can also explicitly migrate memory to a desired processor's memory via\n :py:obj:`~.cudaMemPrefetchAsync`.\n\n In a multi-GPU system where all of the GPUs have a zero value for the\n device attribute :py:obj:`~.cudaDevAttrConcurrentManagedAccess` and all\n the GPUs have peer-to-peer support with each other, the physical\n storage for managed memory is created on the GPU which is active at the\n time :py:obj:`~.cudaMallocManaged` is called. All other GPUs will\n reference the data at reduced bandwidth via peer mappings over the PCIe\n bus. The Unified Memory driver does not migrate memory among such GPUs.\n\n In a multi-GPU system where not all GPUs have peer-to-peer support with\n each other and where the value of the device attribute\n :py:obj:`~.cudaDevAttrConcurrentManagedAccess` is zero for at least one\n of those GP""Us, the location chosen for physical storage of managed\n memory 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\n Parameters\n ----------\n size : size_t\n Requested allocation size in bytes\n flags : unsigned int\n Must be either :py:obj:`~.cudaMemAttachGlobal` or\n :py:obj:`~.cudaMemAttachHost` (defaults to\n :py:obj:`~.cudaMemAttachGlobal`)\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorMemoryAllocation`, :py:obj:`~.cudaErrorNotSupported`, :py:obj:`~.cudaErrorInvalidValue`\n devPtr : Any\n Pointer to allocated device memory\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_175cudaMallocManaged = {"cudaMallocManaged", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_175cudaMallocManaged, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_174cudaMallocManaged}; static PyObject *__pyx_pw_4cuda_6cudart_175cudaMallocManaged(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_size_2,&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_size_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17758, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17758, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMallocManaged", 1, 2, 2, 1); __PYX_ERR(0, 17758, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMallocManaged") < 0)) __PYX_ERR(0, 17758, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_size = __Pyx_PyInt_As_size_t(values[0]); if (unlikely((__pyx_v_size == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 17759, __pyx_L3_error) __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[1]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 17759, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaMallocManaged", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 17758, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMallocManaged", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_174cudaMallocManaged(__pyx_self, __pyx_v_size, __pyx_v_flags); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_174cudaMallocManaged(CYTHON_UNUSED PyObject *__pyx_self, size_t __pyx_v_size, unsigned int __pyx_v_flags) { __pyx_t_4cuda_6cudart_void_ptr __pyx_v_devPtr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__435) __Pyx_RefNannySetupContext("cudaMallocManaged", 1); __Pyx_TraceCall("cudaMallocManaged", __pyx_f[0], 17758, 0, __PYX_ERR(0, 17758, __pyx_L1_error)); /* "cuda/cudart.pyx":17882 * :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 = ccudart.cudaMallocManaged(&devPtr, size, flags) */ __pyx_v_devPtr = 0; /* "cuda/cudart.pyx":17883 * """ * cdef void_ptr devPtr = 0 * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMallocManaged(&devPtr, size, flags) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":17884 * cdef void_ptr devPtr = 0 * with nogil: * err = ccudart.cudaMallocManaged(&devPtr, size, flags) # <<<<<<<<<<<<<< * * return (cudaError_t(err), devPtr) */ __pyx_t_1 = __pyx_f_4cuda_7ccudart_cudaMallocManaged(((void **)(&__pyx_v_devPtr)), __pyx_v_size, __pyx_v_flags); if (unlikely(__pyx_t_1 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 17884, __pyx_L4_error) __pyx_v_err = __pyx_t_1; } /* "cuda/cudart.pyx":17883 * """ * cdef void_ptr devPtr = 0 * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMallocManaged(&devPtr, size, flags) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L5; } __pyx_L4_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L5:; } } /* "cuda/cudart.pyx":17886 * err = ccudart.cudaMallocManaged(&devPtr, size, flags) * * return (cudaError_t(err), devPtr) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17886, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17886, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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(0, 17886, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(__pyx_v_devPtr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17886, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17886, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 17886, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3)) __PYX_ERR(0, 17886, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_3 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":17758 * return (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_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaMallocManaged", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":17888 * return (cudaError_t(err), devPtr) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMalloc(size_t size): * """ Allocate memory on the device. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_177cudaMalloc(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_176cudaMalloc, "cudaMalloc(size_t size)\n Allocate memory on the device.\n\n Allocates `size` bytes of linear memory on the device and returns in\n `*devPtr` a pointer to the allocated memory. The allocated memory is\n suitably aligned for any kind of variable. The memory is not cleared.\n :py:obj:`~.cudaMalloc()` returns :py:obj:`~.cudaErrorMemoryAllocation`\n in case of failure.\n\n The device version of :py:obj:`~.cudaFree` cannot be used with a\n `*devPtr` allocated using the host API, and vice versa.\n\n Parameters\n ----------\n size : size_t\n Requested allocation size in bytes\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorMemoryAllocation`\n devPtr : Any\n Pointer to allocated device memory\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_177cudaMalloc = {"cudaMalloc", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_177cudaMalloc, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_176cudaMalloc}; static PyObject *__pyx_pw_4cuda_6cudart_177cudaMalloc(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_size_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_size_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17888, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMalloc") < 0)) __PYX_ERR(0, 17888, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_size = __Pyx_PyInt_As_size_t(values[0]); if (unlikely((__pyx_v_size == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 17889, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaMalloc", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 17888, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMalloc", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_176cudaMalloc(__pyx_self, __pyx_v_size); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_176cudaMalloc(CYTHON_UNUSED PyObject *__pyx_self, size_t __pyx_v_size) { __pyx_t_4cuda_6cudart_void_ptr __pyx_v_devPtr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__436) __Pyx_RefNannySetupContext("cudaMalloc", 1); __Pyx_TraceCall("cudaMalloc", __pyx_f[0], 17888, 0, __PYX_ERR(0, 17888, __pyx_L1_error)); /* "cuda/cudart.pyx":17917 * :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 = ccudart.cudaMalloc(&devPtr, size) */ __pyx_v_devPtr = 0; /* "cuda/cudart.pyx":17918 * """ * cdef void_ptr devPtr = 0 * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMalloc(&devPtr, size) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":17919 * cdef void_ptr devPtr = 0 * with nogil: * err = ccudart.cudaMalloc(&devPtr, size) # <<<<<<<<<<<<<< * * return (cudaError_t(err), devPtr) */ __pyx_t_1 = __pyx_f_4cuda_7ccudart_cudaMalloc(((void **)(&__pyx_v_devPtr)), __pyx_v_size); if (unlikely(__pyx_t_1 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 17919, __pyx_L4_error) __pyx_v_err = __pyx_t_1; } /* "cuda/cudart.pyx":17918 * """ * cdef void_ptr devPtr = 0 * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMalloc(&devPtr, size) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L5; } __pyx_L4_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L5:; } } /* "cuda/cudart.pyx":17921 * err = ccudart.cudaMalloc(&devPtr, size) * * return (cudaError_t(err), devPtr) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17921, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17921, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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(0, 17921, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(__pyx_v_devPtr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17921, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17921, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 17921, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3)) __PYX_ERR(0, 17921, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_3 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":17888 * return (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_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaMalloc", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":17923 * return (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_6cudart_179cudaMallocHost(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_178cudaMallocHost, "cudaMallocHost(size_t size)\n Allocates page-locked memory on the host.\n\n Allocates `size` bytes of host memory that is page-locked and\n accessible to the device. The driver tracks the virtual memory ranges\n allocated with this function and automatically accelerates calls to\n functions such as :py:obj:`~.cudaMemcpy`*(). Since the memory can be\n accessed directly by the device, it can be read or written with much\n higher bandwidth than pageable memory obtained with functions such as\n :py:obj:`~.malloc()`.\n\n On systems where :py:obj:`~.pageableMemoryAccessUsesHostPageTables` is\n true, :py:obj:`~.cudaMallocHost` may not page-lock the allocated\n memory.\n\n Page-locking excessive amounts of memory with\n :py:obj:`~.cudaMallocHost()` may degrade system performance, since it\n reduces the amount of memory available to the system for paging. As a\n result, this function is best used sparingly to allocate staging areas\n for data exchange between host and device.\n\n Parameters\n ----------\n size : size_t\n Requested allocation size in bytes\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorMemoryAllocation`\n ptr : Any\n Pointer to allocated host memory\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_179cudaMallocHost = {"cudaMallocHost", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_179cudaMallocHost, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_178cudaMallocHost}; static PyObject *__pyx_pw_4cuda_6cudart_179cudaMallocHost(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_size_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_size_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17923, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMallocHost") < 0)) __PYX_ERR(0, 17923, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_size = __Pyx_PyInt_As_size_t(values[0]); if (unlikely((__pyx_v_size == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 17924, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaMallocHost", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 17923, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMallocHost", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_178cudaMallocHost(__pyx_self, __pyx_v_size); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_178cudaMallocHost(CYTHON_UNUSED PyObject *__pyx_self, size_t __pyx_v_size) { __pyx_t_4cuda_6cudart_void_ptr __pyx_v_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__437) __Pyx_RefNannySetupContext("cudaMallocHost", 1); __Pyx_TraceCall("cudaMallocHost", __pyx_f[0], 17923, 0, __PYX_ERR(0, 17923, __pyx_L1_error)); /* "cuda/cudart.pyx":17961 * :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 # <<<<<<<<<<<<<< * err = ccudart.cudaMallocHost(&ptr, size) * return (cudaError_t(err), ptr) */ __pyx_v_ptr = 0; /* "cuda/cudart.pyx":17962 * """ * cdef void_ptr ptr = 0 * err = ccudart.cudaMallocHost(&ptr, size) # <<<<<<<<<<<<<< * return (cudaError_t(err), ptr) * */ __pyx_t_1 = __pyx_f_4cuda_7ccudart_cudaMallocHost(((void **)(&__pyx_v_ptr)), __pyx_v_size); if (unlikely(__pyx_t_1 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 17962, __pyx_L1_error) __pyx_v_err = __pyx_t_1; /* "cuda/cudart.pyx":17963 * cdef void_ptr ptr = 0 * err = ccudart.cudaMallocHost(&ptr, size) * return (cudaError_t(err), ptr) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17963, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17963, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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(0, 17963, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(__pyx_v_ptr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17963, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17963, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 17963, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3)) __PYX_ERR(0, 17963, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_3 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":17923 * return (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_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaMallocHost", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":17965 * return (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_6cudart_181cudaMallocPitch(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_180cudaMallocPitch, "cudaMallocPitch(size_t width, size_t height)\n Allocates pitched memory on the device.\n\n Allocates at least `width` (in bytes) * `height` bytes of linear memory\n on the device and returns in `*devPtr` a pointer to the allocated\n memory. The function may pad the allocation to ensure that\n corresponding pointers in any given row will continue to meet the\n alignment requirements for coalescing as the address is updated from\n row to row. The pitch returned in `*pitch` by\n :py:obj:`~.cudaMallocPitch()` is the width in bytes of the allocation.\n The intended usage of `pitch` is as a separate parameter of the\n allocation, used to compute addresses within the 2D array. Given the\n row and column of an array element of type `T`, the address is computed\n as:\n\n **View CUDA Toolkit Documentation for a C++ code example**\n\n For allocations of 2D arrays, it is recommended that programmers\n consider performing pitch allocations using\n :py:obj:`~.cudaMallocPitch()`. Due to pitch alignment restrictions in\n the hardware, this is especially true if the application will be\n performing 2D memory copies between different regions of device memory\n (whether linear memory or CUDA arrays).\n\n Parameters\n ----------\n width : size_t\n Requested pitched allocation width (in bytes)\n height : size_t\n Requested pitched allocation height\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorMemoryAllocation`\n devPtr : Any\n Pointer to allocated pitched device memory\n pitch : int\n Pitch for allocation\n\n See 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:`~.cuMemAl""locPitch`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_181cudaMallocPitch = {"cudaMallocPitch", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_181cudaMallocPitch, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_180cudaMallocPitch}; static PyObject *__pyx_pw_4cuda_6cudart_181cudaMallocPitch(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_width_2,&__pyx_n_s_height_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_width_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17965, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_height_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17965, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMallocPitch", 1, 2, 2, 1); __PYX_ERR(0, 17965, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMallocPitch") < 0)) __PYX_ERR(0, 17965, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_width = __Pyx_PyInt_As_size_t(values[0]); if (unlikely((__pyx_v_width == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 17966, __pyx_L3_error) __pyx_v_height = __Pyx_PyInt_As_size_t(values[1]); if (unlikely((__pyx_v_height == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 17966, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaMallocPitch", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 17965, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMallocPitch", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_180cudaMallocPitch(__pyx_self, __pyx_v_width, __pyx_v_height); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_180cudaMallocPitch(CYTHON_UNUSED PyObject *__pyx_self, size_t __pyx_v_width, size_t __pyx_v_height) { __pyx_t_4cuda_6cudart_void_ptr __pyx_v_devPtr; size_t __pyx_v_pitch; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__438) __Pyx_RefNannySetupContext("cudaMallocPitch", 1); __Pyx_TraceCall("cudaMallocPitch", __pyx_f[0], 17965, 0, __PYX_ERR(0, 17965, __pyx_L1_error)); /* "cuda/cudart.pyx":18010 * :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 * err = ccudart.cudaMallocPitch(&devPtr, &pitch, width, height) */ __pyx_v_devPtr = 0; /* "cuda/cudart.pyx":18011 * """ * cdef void_ptr devPtr = 0 * cdef size_t pitch = 0 # <<<<<<<<<<<<<< * err = ccudart.cudaMallocPitch(&devPtr, &pitch, width, height) * return (cudaError_t(err), devPtr, pitch) */ __pyx_v_pitch = 0; /* "cuda/cudart.pyx":18012 * cdef void_ptr devPtr = 0 * cdef size_t pitch = 0 * err = ccudart.cudaMallocPitch(&devPtr, &pitch, width, height) # <<<<<<<<<<<<<< * return (cudaError_t(err), devPtr, pitch) * */ __pyx_t_1 = __pyx_f_4cuda_7ccudart_cudaMallocPitch(((void **)(&__pyx_v_devPtr)), (&__pyx_v_pitch), __pyx_v_width, __pyx_v_height); if (unlikely(__pyx_t_1 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 18012, __pyx_L1_error) __pyx_v_err = __pyx_t_1; /* "cuda/cudart.pyx":18013 * cdef size_t pitch = 0 * err = ccudart.cudaMallocPitch(&devPtr, &pitch, width, height) * return (cudaError_t(err), devPtr, pitch) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18013, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18013, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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(0, 18013, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(__pyx_v_devPtr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18013, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_FromSize_t(__pyx_v_pitch); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18013, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 18013, __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)) __PYX_ERR(0, 18013, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_3)) __PYX_ERR(0, 18013, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_4)) __PYX_ERR(0, 18013, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_3 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":17965 * return (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_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaMallocPitch", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":18015 * return (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_6cudart_183cudaMallocArray(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_182cudaMallocArray, "cudaMallocArray(cudaChannelFormatDesc desc: Optional[cudaChannelFormatDesc], size_t width, size_t height, unsigned int flags)\n Allocate an array on the device.\n\n Allocates a CUDA array according to the\n :py:obj:`~.cudaChannelFormatDesc` structure `desc` and returns a handle\n to the new CUDA array in `*array`.\n\n The :py:obj:`~.cudaChannelFormatDesc` is defined as:\n\n **View CUDA Toolkit Documentation for a C++ code example**\n\n where :py:obj:`~.cudaChannelFormatKind` is one of\n :py:obj:`~.cudaChannelFormatKindSigned`,\n :py:obj:`~.cudaChannelFormatKindUnsigned`, or\n :py:obj:`~.cudaChannelFormatKindFloat`.\n\n The `flags` parameter enables different options to be specified that\n affect 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\n Parameters\n ----------\n desc : :py:obj:`~.cudaCha""nnelFormatDesc`\n Requested channel format\n width : size_t\n Requested array allocation width\n height : size_t\n Requested array allocation height\n flags : unsigned int\n Requested properties of allocated array\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorMemoryAllocation`\n array : :py:obj:`~.cudaArray_t`\n Pointer to allocated array in device memory\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_183cudaMallocArray = {"cudaMallocArray", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_183cudaMallocArray, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_182cudaMallocArray}; static PyObject *__pyx_pw_4cuda_6cudart_183cudaMallocArray(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_desc_2,&__pyx_n_s_width_2,&__pyx_n_s_height_2,&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_desc_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 18015, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_width_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 18015, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMallocArray", 1, 4, 4, 1); __PYX_ERR(0, 18015, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_height_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 18015, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMallocArray", 1, 4, 4, 2); __PYX_ERR(0, 18015, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 18015, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMallocArray", 1, 4, 4, 3); __PYX_ERR(0, 18015, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMallocArray") < 0)) __PYX_ERR(0, 18015, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); } __pyx_v_desc = ((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)values[0]); __pyx_v_width = __Pyx_PyInt_As_size_t(values[1]); if (unlikely((__pyx_v_width == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 18016, __pyx_L3_error) __pyx_v_height = __Pyx_PyInt_As_size_t(values[2]); if (unlikely((__pyx_v_height == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 18016, __pyx_L3_error) __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[3]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 18016, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaMallocArray", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 18015, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaChannelFormatDesc, 1, "desc", 0))) __PYX_ERR(0, 18016, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_182cudaMallocArray(__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; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_182cudaMallocArray(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *__pyx_v_desc, size_t __pyx_v_width, size_t __pyx_v_height, unsigned int __pyx_v_flags) { struct __pyx_obj_4cuda_6cudart_cudaArray_t *__pyx_v_array = 0; struct cudaChannelFormatDesc *__pyx_v_cdesc_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; struct cudaChannelFormatDesc *__pyx_t_2; int __pyx_t_3; cudaError_t __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__439) __Pyx_RefNannySetupContext("cudaMallocArray", 1); __Pyx_TraceCall("cudaMallocArray", __pyx_f[0], 18015, 0, __PYX_ERR(0, 18015, __pyx_L1_error)); /* "cuda/cudart.pyx":18081 * :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 ccudart.cudaChannelFormatDesc* cdesc_ptr = desc._ptr if desc != None else NULL * with nogil: */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_t)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18081, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_array = ((struct __pyx_obj_4cuda_6cudart_cudaArray_t *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":18082 * """ * cdef cudaArray_t array = cudaArray_t() * cdef ccudart.cudaChannelFormatDesc* cdesc_ptr = desc._ptr if desc != None else NULL # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaMallocArray(array._ptr, cdesc_ptr, width, height, flags) */ __pyx_t_1 = PyObject_RichCompare(((PyObject *)__pyx_v_desc), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18082, __pyx_L1_error) __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 18082, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_3) { __pyx_t_2 = __pyx_v_desc->_ptr; } else { __pyx_t_2 = NULL; } __pyx_v_cdesc_ptr = __pyx_t_2; /* "cuda/cudart.pyx":18083 * cdef cudaArray_t array = cudaArray_t() * cdef ccudart.cudaChannelFormatDesc* cdesc_ptr = desc._ptr if desc != None else NULL * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMallocArray(array._ptr, cdesc_ptr, width, height, flags) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":18084 * cdef ccudart.cudaChannelFormatDesc* cdesc_ptr = desc._ptr if desc != None else NULL * with nogil: * err = ccudart.cudaMallocArray(array._ptr, cdesc_ptr, width, height, flags) # <<<<<<<<<<<<<< * * return (cudaError_t(err), array) */ __pyx_t_4 = __pyx_f_4cuda_7ccudart_cudaMallocArray(((cudaArray_t *)__pyx_v_array->_ptr), __pyx_v_cdesc_ptr, __pyx_v_width, __pyx_v_height, __pyx_v_flags); if (unlikely(__pyx_t_4 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 18084, __pyx_L4_error) __pyx_v_err = __pyx_t_4; } /* "cuda/cudart.pyx":18083 * cdef cudaArray_t array = cudaArray_t() * cdef ccudart.cudaChannelFormatDesc* cdesc_ptr = desc._ptr if desc != None else NULL * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMallocArray(array._ptr, cdesc_ptr, width, height, flags) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L5; } __pyx_L4_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L5:; } } /* "cuda/cudart.pyx":18086 * err = ccudart.cudaMallocArray(array._ptr, cdesc_ptr, width, height, flags) * * return (cudaError_t(err), array) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 18086, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 18086, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18086, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 18086, __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)) __PYX_ERR(0, 18086, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_array); __Pyx_GIVEREF((PyObject *)__pyx_v_array); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_v_array))) __PYX_ERR(0, 18086, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":18015 * return (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_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.cudaMallocArray", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_array); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":18088 * return (cudaError_t(err), array) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaFree(devPtr): * """ Frees memory on the device. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_185cudaFree(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_184cudaFree, "cudaFree(devPtr)\n Frees memory on the device.\n\n Frees the memory space pointed to by `devPtr`, which must have been\n returned by a previous call to one of the following memory allocation\n APIs - :py:obj:`~.cudaMalloc()`, :py:obj:`~.cudaMallocPitch()`,\n :py:obj:`~.cudaMallocManaged()`, :py:obj:`~.cudaMallocAsync()`,\n :py:obj:`~.cudaMallocFromPoolAsync()`.\n\n Note - This API will not perform any implicit synchronization when the\n pointer was allocated with :py:obj:`~.cudaMallocAsync` or\n :py:obj:`~.cudaMallocFromPoolAsync`. Callers must ensure that all\n accesses to these pointer have completed before invoking\n :py:obj:`~.cudaFree`. For best performance and memory reuse, users\n should use :py:obj:`~.cudaFreeAsync` to free memory allocated via the\n stream ordered memory allocator. For all other pointers, this API may\n perform implicit synchronization.\n\n If :py:obj:`~.cudaFree`(`devPtr`) has already been called before, an\n error is returned. If `devPtr` is 0, no operation is performed.\n :py:obj:`~.cudaFree()` returns :py:obj:`~.cudaErrorValue` in case of\n failure.\n\n The device version of :py:obj:`~.cudaFree` cannot be used with a\n `*devPtr` allocated using the host API, and vice versa.\n\n Parameters\n ----------\n devPtr : Any\n Device pointer to memory to free\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_185cudaFree = {"cudaFree", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_185cudaFree, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_184cudaFree}; static PyObject *__pyx_pw_4cuda_6cudart_185cudaFree(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_devPtr_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_devPtr_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 18088, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaFree") < 0)) __PYX_ERR(0, 18088, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_devPtr = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaFree", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 18088, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaFree", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_184cudaFree(__pyx_self, __pyx_v_devPtr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_184cudaFree(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_devPtr) { PyObject *__pyx_v_cdevPtr = NULL; void *__pyx_v_cdevPtr_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; cudaError_t __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; unsigned int __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__440) __Pyx_RefNannySetupContext("cudaFree", 1); __Pyx_TraceCall("cudaFree", __pyx_f[0], 18088, 0, __PYX_ERR(0, 18088, __pyx_L1_error)); /* "cuda/cudart.pyx":18129 * :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` * """ * cdevPtr = utils.HelperInputVoidPtr(devPtr) # <<<<<<<<<<<<<< * cdef void* cdevPtr_ptr = cdevPtr.cptr * with nogil: */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_devPtr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_cdevPtr = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":18130 * """ * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaFree(cdevPtr_ptr) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_cdevPtr, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18130, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 18130, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cdevPtr_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":18131 * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaFree(cdevPtr_ptr) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":18132 * cdef void* cdevPtr_ptr = cdevPtr.cptr * with nogil: * err = ccudart.cudaFree(cdevPtr_ptr) # <<<<<<<<<<<<<< * * return (cudaError_t(err),) */ __pyx_t_3 = __pyx_f_4cuda_7ccudart_cudaFree(__pyx_v_cdevPtr_ptr); if (unlikely(__pyx_t_3 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 18132, __pyx_L4_error) __pyx_v_err = __pyx_t_3; } /* "cuda/cudart.pyx":18131 * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaFree(cdevPtr_ptr) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L5; } __pyx_L4_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L5:; } } /* "cuda/cudart.pyx":18134 * err = ccudart.cudaFree(cdevPtr_ptr) * * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18134, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 18134, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_7 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_5}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18134, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18134, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1)) __PYX_ERR(0, 18134, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":18088 * return (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_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("cuda.cudart.cudaFree", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_cdevPtr); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":18136 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaFreeHost(ptr): * """ Frees page-locked memory. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_187cudaFreeHost(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_186cudaFreeHost, "cudaFreeHost(ptr)\n Frees page-locked memory.\n\n Frees the memory space pointed to by `hostPtr`, which must have been\n returned by a previous call to :py:obj:`~.cudaMallocHost()` or\n :py:obj:`~.cudaHostAlloc()`.\n\n Parameters\n ----------\n ptr : Any\n Pointer to memory to free\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_187cudaFreeHost = {"cudaFreeHost", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_187cudaFreeHost, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_186cudaFreeHost}; static PyObject *__pyx_pw_4cuda_6cudart_187cudaFreeHost(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ptr_3,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr_3)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 18136, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaFreeHost") < 0)) __PYX_ERR(0, 18136, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_ptr = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaFreeHost", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 18136, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaFreeHost", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_186cudaFreeHost(__pyx_self, __pyx_v_ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_186cudaFreeHost(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ptr) { PyObject *__pyx_v_cptr = NULL; void *__pyx_v_cptr_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; cudaError_t __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; unsigned int __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__441) __Pyx_RefNannySetupContext("cudaFreeHost", 1); __Pyx_TraceCall("cudaFreeHost", __pyx_f[0], 18136, 0, __PYX_ERR(0, 18136, __pyx_L1_error)); /* "cuda/cudart.pyx":18158 * :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` * """ * cptr = utils.HelperInputVoidPtr(ptr) # <<<<<<<<<<<<<< * cdef void* cptr_ptr = cptr.cptr * with nogil: */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_ptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18158, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_cptr = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":18159 * """ * cptr = utils.HelperInputVoidPtr(ptr) * cdef void* cptr_ptr = cptr.cptr # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaFreeHost(cptr_ptr) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_cptr, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18159, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 18159, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cptr_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":18160 * cptr = utils.HelperInputVoidPtr(ptr) * cdef void* cptr_ptr = cptr.cptr * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaFreeHost(cptr_ptr) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":18161 * cdef void* cptr_ptr = cptr.cptr * with nogil: * err = ccudart.cudaFreeHost(cptr_ptr) # <<<<<<<<<<<<<< * * return (cudaError_t(err),) */ __pyx_t_3 = __pyx_f_4cuda_7ccudart_cudaFreeHost(__pyx_v_cptr_ptr); if (unlikely(__pyx_t_3 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 18161, __pyx_L4_error) __pyx_v_err = __pyx_t_3; } /* "cuda/cudart.pyx":18160 * cptr = utils.HelperInputVoidPtr(ptr) * cdef void* cptr_ptr = cptr.cptr * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaFreeHost(cptr_ptr) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L5; } __pyx_L4_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L5:; } } /* "cuda/cudart.pyx":18163 * err = ccudart.cudaFreeHost(cptr_ptr) * * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18163, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 18163, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_7 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_5}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18163, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18163, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1)) __PYX_ERR(0, 18163, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":18136 * return (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_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("cuda.cudart.cudaFreeHost", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_cptr); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":18165 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaFreeArray(array): * """ Frees an array on the device. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_189cudaFreeArray(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_188cudaFreeArray, "cudaFreeArray(array)\n Frees an array on the device.\n\n Frees the CUDA array `array`, which must have been returned by a\n previous call to :py:obj:`~.cudaMallocArray()`. If `devPtr` is 0, no\n operation is performed.\n\n Parameters\n ----------\n array : :py:obj:`~.cudaArray_t`\n Pointer to array to free\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_189cudaFreeArray = {"cudaFreeArray", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_189cudaFreeArray, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_188cudaFreeArray}; static PyObject *__pyx_pw_4cuda_6cudart_189cudaFreeArray(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_array_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_array_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 18165, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaFreeArray") < 0)) __PYX_ERR(0, 18165, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_array = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaFreeArray", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 18165, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaFreeArray", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_188cudaFreeArray(__pyx_self, __pyx_v_array); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_188cudaFreeArray(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_array) { cudaArray_t __pyx_v_carray; PyObject *__pyx_v_parray = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; cudaError_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__442) __Pyx_RefNannySetupContext("cudaFreeArray", 1); __Pyx_TraceCall("cudaFreeArray", __pyx_f[0], 18165, 0, __PYX_ERR(0, 18165, __pyx_L1_error)); /* "cuda/cudart.pyx":18188 * """ * cdef ccudart.cudaArray_t carray * if array is None: # <<<<<<<<<<<<<< * carray = 0 * elif isinstance(array, (cudaArray_t,)): */ __pyx_t_1 = (__pyx_v_array == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":18189 * cdef ccudart.cudaArray_t carray * if array is None: * carray = 0 # <<<<<<<<<<<<<< * elif isinstance(array, (cudaArray_t,)): * parray = int(array) */ __pyx_v_carray = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":18188 * """ * cdef ccudart.cudaArray_t carray * if array is None: # <<<<<<<<<<<<<< * carray = 0 * elif isinstance(array, (cudaArray_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":18190 * if array is None: * carray = 0 * elif isinstance(array, (cudaArray_t,)): # <<<<<<<<<<<<<< * parray = int(array) * carray = parray */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_array, __pyx_ptype_4cuda_6cudart_cudaArray_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":18191 * carray = 0 * elif isinstance(array, (cudaArray_t,)): * parray = int(array) # <<<<<<<<<<<<<< * carray = parray * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_array); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18191, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_parray = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":18192 * elif isinstance(array, (cudaArray_t,)): * parray = int(array) * carray = parray # <<<<<<<<<<<<<< * else: * parray = int(cudaArray_t(array)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_parray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 18192, __pyx_L1_error) __pyx_v_carray = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":18190 * if array is None: * carray = 0 * elif isinstance(array, (cudaArray_t,)): # <<<<<<<<<<<<<< * parray = int(array) * carray = parray */ goto __pyx_L3; } /* "cuda/cudart.pyx":18194 * carray = parray * else: * parray = int(cudaArray_t(array)) # <<<<<<<<<<<<<< * carray = parray * with nogil: */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_t), __pyx_v_array); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18194, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18194, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_parray = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":18195 * else: * parray = int(cudaArray_t(array)) * carray = parray # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaFreeArray(carray) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_parray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 18195, __pyx_L1_error) __pyx_v_carray = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":18196 * parray = int(cudaArray_t(array)) * carray = parray * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaFreeArray(carray) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":18197 * carray = parray * with nogil: * err = ccudart.cudaFreeArray(carray) # <<<<<<<<<<<<<< * * return (cudaError_t(err),) */ __pyx_t_5 = __pyx_f_4cuda_7ccudart_cudaFreeArray(__pyx_v_carray); if (unlikely(__pyx_t_5 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 18197, __pyx_L5_error) __pyx_v_err = __pyx_t_5; } /* "cuda/cudart.pyx":18196 * parray = int(cudaArray_t(array)) * carray = parray * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaFreeArray(carray) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L6; } __pyx_L5_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L6:; } } /* "cuda/cudart.pyx":18199 * err = ccudart.cudaFreeArray(carray) * * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18199, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 18199, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18199, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18199, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 18199, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":18165 * return (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_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.cudaFreeArray", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_parray); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":18201 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaFreeMipmappedArray(mipmappedArray): * """ Frees a mipmapped array on the device. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_191cudaFreeMipmappedArray(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_190cudaFreeMipmappedArray, "cudaFreeMipmappedArray(mipmappedArray)\n Frees a mipmapped array on the device.\n\n Frees the CUDA mipmapped array `mipmappedArray`, which must have been\n returned by a previous call to :py:obj:`~.cudaMallocMipmappedArray()`.\n If `devPtr` is 0, no operation is performed.\n\n Parameters\n ----------\n mipmappedArray : :py:obj:`~.cudaMipmappedArray_t`\n Pointer to mipmapped array to free\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_191cudaFreeMipmappedArray = {"cudaFreeMipmappedArray", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_191cudaFreeMipmappedArray, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_190cudaFreeMipmappedArray}; static PyObject *__pyx_pw_4cuda_6cudart_191cudaFreeMipmappedArray(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_mipmappedArray,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_mipmappedArray)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 18201, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaFreeMipmappedArray") < 0)) __PYX_ERR(0, 18201, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_mipmappedArray = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaFreeMipmappedArray", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 18201, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaFreeMipmappedArray", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_190cudaFreeMipmappedArray(__pyx_self, __pyx_v_mipmappedArray); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_190cudaFreeMipmappedArray(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_mipmappedArray) { cudaMipmappedArray_t __pyx_v_cmipmappedArray; PyObject *__pyx_v_pmipmappedArray = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; cudaError_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__443) __Pyx_RefNannySetupContext("cudaFreeMipmappedArray", 1); __Pyx_TraceCall("cudaFreeMipmappedArray", __pyx_f[0], 18201, 0, __PYX_ERR(0, 18201, __pyx_L1_error)); /* "cuda/cudart.pyx":18224 * """ * cdef ccudart.cudaMipmappedArray_t cmipmappedArray * if mipmappedArray is None: # <<<<<<<<<<<<<< * cmipmappedArray = 0 * elif isinstance(mipmappedArray, (cudaMipmappedArray_t,)): */ __pyx_t_1 = (__pyx_v_mipmappedArray == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":18225 * cdef ccudart.cudaMipmappedArray_t cmipmappedArray * if mipmappedArray is None: * cmipmappedArray = 0 # <<<<<<<<<<<<<< * elif isinstance(mipmappedArray, (cudaMipmappedArray_t,)): * pmipmappedArray = int(mipmappedArray) */ __pyx_v_cmipmappedArray = ((cudaMipmappedArray_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":18224 * """ * cdef ccudart.cudaMipmappedArray_t cmipmappedArray * if mipmappedArray is None: # <<<<<<<<<<<<<< * cmipmappedArray = 0 * elif isinstance(mipmappedArray, (cudaMipmappedArray_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":18226 * if mipmappedArray is None: * cmipmappedArray = 0 * elif isinstance(mipmappedArray, (cudaMipmappedArray_t,)): # <<<<<<<<<<<<<< * pmipmappedArray = int(mipmappedArray) * cmipmappedArray = pmipmappedArray */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_mipmappedArray, __pyx_ptype_4cuda_6cudart_cudaMipmappedArray_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":18227 * cmipmappedArray = 0 * elif isinstance(mipmappedArray, (cudaMipmappedArray_t,)): * pmipmappedArray = int(mipmappedArray) # <<<<<<<<<<<<<< * cmipmappedArray = pmipmappedArray * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_mipmappedArray); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18227, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_pmipmappedArray = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":18228 * elif isinstance(mipmappedArray, (cudaMipmappedArray_t,)): * pmipmappedArray = int(mipmappedArray) * cmipmappedArray = pmipmappedArray # <<<<<<<<<<<<<< * else: * pmipmappedArray = int(cudaMipmappedArray_t(mipmappedArray)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pmipmappedArray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 18228, __pyx_L1_error) __pyx_v_cmipmappedArray = ((cudaMipmappedArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":18226 * if mipmappedArray is None: * cmipmappedArray = 0 * elif isinstance(mipmappedArray, (cudaMipmappedArray_t,)): # <<<<<<<<<<<<<< * pmipmappedArray = int(mipmappedArray) * cmipmappedArray = pmipmappedArray */ goto __pyx_L3; } /* "cuda/cudart.pyx":18230 * cmipmappedArray = pmipmappedArray * else: * pmipmappedArray = int(cudaMipmappedArray_t(mipmappedArray)) # <<<<<<<<<<<<<< * cmipmappedArray = pmipmappedArray * err = ccudart.cudaFreeMipmappedArray(cmipmappedArray) */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMipmappedArray_t), __pyx_v_mipmappedArray); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18230, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18230, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_pmipmappedArray = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":18231 * else: * pmipmappedArray = int(cudaMipmappedArray_t(mipmappedArray)) * cmipmappedArray = pmipmappedArray # <<<<<<<<<<<<<< * err = ccudart.cudaFreeMipmappedArray(cmipmappedArray) * return (cudaError_t(err),) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pmipmappedArray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 18231, __pyx_L1_error) __pyx_v_cmipmappedArray = ((cudaMipmappedArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":18232 * pmipmappedArray = int(cudaMipmappedArray_t(mipmappedArray)) * cmipmappedArray = pmipmappedArray * err = ccudart.cudaFreeMipmappedArray(cmipmappedArray) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_5 = __pyx_f_4cuda_7ccudart_cudaFreeMipmappedArray(__pyx_v_cmipmappedArray); if (unlikely(__pyx_t_5 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 18232, __pyx_L1_error) __pyx_v_err = __pyx_t_5; /* "cuda/cudart.pyx":18233 * cmipmappedArray = pmipmappedArray * err = ccudart.cudaFreeMipmappedArray(cmipmappedArray) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18233, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 18233, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18233, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18233, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 18233, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":18201 * return (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_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.cudaFreeMipmappedArray", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pmipmappedArray); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":18235 * return (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_6cudart_193cudaHostAlloc(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_192cudaHostAlloc, "cudaHostAlloc(size_t size, unsigned int flags)\n Allocates page-locked memory on the host.\n\n Allocates `size` bytes of host memory that is page-locked and\n accessible to the device. The driver tracks the virtual memory ranges\n allocated with this function and automatically accelerates calls to\n functions such as :py:obj:`~.cudaMemcpy()`. Since the memory can be\n accessed directly by the device, it can be read or written with much\n higher bandwidth than pageable memory obtained with functions such as\n :py:obj:`~.malloc()`. Allocating excessive amounts of pinned memory may\n degrade system performance, since it reduces the amount of memory\n available to the system for paging. As a result, this function is best\n used sparingly to allocate staging areas for data exchange between host\n and device.\n\n The `flags` parameter enables different options to be specified that\n affect 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\n All of these flags are orthogonal"" to one another: a developer may\n allocate memory that is portable, mapped and/or write-combined with no\n restrictions.\n\n In order for the :py:obj:`~.cudaHostAllocMapped` flag to have any\n effect, the CUDA context must support the :py:obj:`~.cudaDeviceMapHost`\n flag, which can be checked via :py:obj:`~.cudaGetDeviceFlags()`. The\n :py:obj:`~.cudaDeviceMapHost` flag is implicitly set for contexts\n created via the runtime API.\n\n The :py:obj:`~.cudaHostAllocMapped` flag may be specified on CUDA\n contexts for devices that do not support mapped pinned memory. The\n failure is deferred to :py:obj:`~.cudaHostGetDevicePointer()` because\n the memory may be mapped into other CUDA contexts via the\n :py:obj:`~.cudaHostAllocPortable` flag.\n\n Memory allocated by this function must be freed with\n :py:obj:`~.cudaFreeHost()`.\n\n Parameters\n ----------\n size : size_t\n Requested allocation size in bytes\n flags : unsigned int\n Requested properties of allocated memory\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorMemoryAllocation`\n pHost : Any\n Device pointer to allocated memory\n\n See Also\n --------\n :py:obj:`~.cudaSetDeviceFlags`, :py:obj:`~.cudaMallocHost (C API)`, :py:obj:`~.cudaFreeHost`, :py:obj:`~.cudaGetDeviceFlags`, :py:obj:`~.cuMemHostAlloc`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_193cudaHostAlloc = {"cudaHostAlloc", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_193cudaHostAlloc, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_192cudaHostAlloc}; static PyObject *__pyx_pw_4cuda_6cudart_193cudaHostAlloc(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_size_2,&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_size_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 18235, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 18235, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaHostAlloc", 1, 2, 2, 1); __PYX_ERR(0, 18235, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaHostAlloc") < 0)) __PYX_ERR(0, 18235, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_size = __Pyx_PyInt_As_size_t(values[0]); if (unlikely((__pyx_v_size == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 18236, __pyx_L3_error) __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[1]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 18236, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaHostAlloc", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 18235, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaHostAlloc", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_192cudaHostAlloc(__pyx_self, __pyx_v_size, __pyx_v_flags); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_192cudaHostAlloc(CYTHON_UNUSED PyObject *__pyx_self, size_t __pyx_v_size, unsigned int __pyx_v_flags) { __pyx_t_4cuda_6cudart_void_ptr __pyx_v_pHost; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__444) __Pyx_RefNannySetupContext("cudaHostAlloc", 1); __Pyx_TraceCall("cudaHostAlloc", __pyx_f[0], 18235, 0, __PYX_ERR(0, 18235, __pyx_L1_error)); /* "cuda/cudart.pyx":18310 * :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 = ccudart.cudaHostAlloc(&pHost, size, flags) */ __pyx_v_pHost = 0; /* "cuda/cudart.pyx":18311 * """ * cdef void_ptr pHost = 0 * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaHostAlloc(&pHost, size, flags) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":18312 * cdef void_ptr pHost = 0 * with nogil: * err = ccudart.cudaHostAlloc(&pHost, size, flags) # <<<<<<<<<<<<<< * * return (cudaError_t(err), pHost) */ __pyx_t_1 = __pyx_f_4cuda_7ccudart_cudaHostAlloc(((void **)(&__pyx_v_pHost)), __pyx_v_size, __pyx_v_flags); if (unlikely(__pyx_t_1 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 18312, __pyx_L4_error) __pyx_v_err = __pyx_t_1; } /* "cuda/cudart.pyx":18311 * """ * cdef void_ptr pHost = 0 * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaHostAlloc(&pHost, size, flags) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L5; } __pyx_L4_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L5:; } } /* "cuda/cudart.pyx":18314 * err = ccudart.cudaHostAlloc(&pHost, size, flags) * * return (cudaError_t(err), pHost) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18314, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18314, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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(0, 18314, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(__pyx_v_pHost); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18314, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18314, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 18314, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3)) __PYX_ERR(0, 18314, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_3 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":18235 * return (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_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaHostAlloc", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":18316 * return (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_6cudart_195cudaHostRegister(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_194cudaHostRegister, "cudaHostRegister(ptr, size_t size, unsigned int flags)\n Registers an existing host memory range for use by CUDA.\n\n Page-locks the memory range specified by `ptr` and `size` and maps it\n for the device(s) as specified by `flags`. This memory range also is\n added to the same tracking mechanism as :py:obj:`~.cudaHostAlloc()` to\n automatically accelerate calls to functions such as\n :py:obj:`~.cudaMemcpy()`. Since the memory can be accessed directly by\n the device, it can be read or written with much higher bandwidth than\n pageable memory that has not been registered. Page-locking excessive\n amounts of memory may degrade system performance, since it reduces the\n amount of memory available to the system for paging. As a result, this\n function is best used sparingly to register staging areas for data\n exchange between host and device.\n\n On systems where :py:obj:`~.pageableMemoryAccessUsesHostPageTables` is\n true, :py:obj:`~.cudaHostRegister` will not page-lock the memory range\n specified by `ptr` but only populate unpopulated pages.\n\n :py:obj:`~.cudaHostRegister` is supported only on I/O coherent devices\n that have a non-zero value for the device attribute\n :py:obj:`~.cudaDevAttrHostRegisterSupported`.\n\n The `flags` parameter enables different options to be specified that\n affect 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 obt""ained by\n calling :py:obj:`~.cudaHostGetDevicePointer()`.\n\n - :py:obj:`~.cudaHostRegisterIoMemory`: The passed 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 cudaDeviceAttrReadOnlyHostRegisterSupported. Using\n this flag with a current context associated with a device that does\n not have this attribute set will cause :py:obj:`~.cudaHostRegister`\n to error with cudaErrorNotSupported.\n\n All of these flags are orthogonal to one another: a developer may page-\n lock memory that is portable or mapped with no restrictions.\n\n The 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\n The :py:obj:`~.cudaHostRegisterMapped` flag may be specified on CUDA\n contexts for devices that do not support mapped pinned memory. The\n failure is deferred to :py:obj:`~.cudaHostGetDevicePointer()` because\n the memory may be mapped into other CUDA contexts via the\n :py:obj:`~.cudaHostRegisterPortable` flag.\n\n For devices that have a non-zero value for the device attribute\n :py:obj:`~.cudaDevAttrCanUseHostPointerForRegisteredMem`, the memory\n can also be accessed from the device using the host pointer `ptr`. The\n device pointer returned by :py:obj:`~.cudaHostGetDevicePointer()` may\n or may not match the original host pointer `ptr` and d""epends on the\n devices visible to the application. If all devices visible to the\n application have a non-zero value for the device attribute, the device\n pointer returned by :py:obj:`~.cudaHostGetDevicePointer()` will match\n the original pointer `ptr`. If any device visible to the application\n has a zero value for the device attribute, the device pointer returned\n by :py:obj:`~.cudaHostGetDevicePointer()` will not match the original\n host pointer `ptr`, but it will be suitable for use on all devices\n provided Unified Virtual Addressing is enabled. In such systems, it is\n valid to access the memory using either pointer on devices that have a\n non-zero value for the device attribute. Note however that such devices\n should access the memory using only of the two pointers and not both.\n\n The memory page-locked by this function must be unregistered with\n :py:obj:`~.cudaHostUnregister()`.\n\n Parameters\n ----------\n ptr : Any\n Host pointer to memory to page-lock\n size : size_t\n Size in bytes of the address range to page-lock in bytes\n flags : unsigned int\n Flags for allocation request\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorMemoryAllocation`, :py:obj:`~.cudaErrorHostMemoryAlreadyRegistered`, :py:obj:`~.cudaErrorNotSupported`\n\n See Also\n --------\n :py:obj:`~.cudaHostUnregister`, :py:obj:`~.cudaHostGetFlags`, :py:obj:`~.cudaHostGetDevicePointer`, :py:obj:`~.cuMemHostRegister`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_195cudaHostRegister = {"cudaHostRegister", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_195cudaHostRegister, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_194cudaHostRegister}; static PyObject *__pyx_pw_4cuda_6cudart_195cudaHostRegister(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ptr_3,&__pyx_n_s_size_2,&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr_3)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 18316, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_size_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 18316, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaHostRegister", 1, 3, 3, 1); __PYX_ERR(0, 18316, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 18316, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaHostRegister", 1, 3, 3, 2); __PYX_ERR(0, 18316, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaHostRegister") < 0)) __PYX_ERR(0, 18316, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_ptr = values[0]; __pyx_v_size = __Pyx_PyInt_As_size_t(values[1]); if (unlikely((__pyx_v_size == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 18317, __pyx_L3_error) __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[2]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 18317, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaHostRegister", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 18316, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaHostRegister", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_194cudaHostRegister(__pyx_self, __pyx_v_ptr, __pyx_v_size, __pyx_v_flags); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_194cudaHostRegister(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ptr, size_t __pyx_v_size, unsigned int __pyx_v_flags) { PyObject *__pyx_v_cptr = NULL; void *__pyx_v_cptr_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; cudaError_t __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; unsigned int __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__445) __Pyx_RefNannySetupContext("cudaHostRegister", 1); __Pyx_TraceCall("cudaHostRegister", __pyx_f[0], 18316, 0, __PYX_ERR(0, 18316, __pyx_L1_error)); /* "cuda/cudart.pyx":18423 * :py:obj:`~.cudaHostUnregister`, :py:obj:`~.cudaHostGetFlags`, :py:obj:`~.cudaHostGetDevicePointer`, :py:obj:`~.cuMemHostRegister` * """ * cptr = utils.HelperInputVoidPtr(ptr) # <<<<<<<<<<<<<< * cdef void* cptr_ptr = cptr.cptr * with nogil: */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_ptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18423, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_cptr = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":18424 * """ * cptr = utils.HelperInputVoidPtr(ptr) * cdef void* cptr_ptr = cptr.cptr # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaHostRegister(cptr_ptr, size, flags) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_cptr, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18424, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 18424, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cptr_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":18425 * cptr = utils.HelperInputVoidPtr(ptr) * cdef void* cptr_ptr = cptr.cptr * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaHostRegister(cptr_ptr, size, flags) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":18426 * cdef void* cptr_ptr = cptr.cptr * with nogil: * err = ccudart.cudaHostRegister(cptr_ptr, size, flags) # <<<<<<<<<<<<<< * * return (cudaError_t(err),) */ __pyx_t_3 = __pyx_f_4cuda_7ccudart_cudaHostRegister(__pyx_v_cptr_ptr, __pyx_v_size, __pyx_v_flags); if (unlikely(__pyx_t_3 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 18426, __pyx_L4_error) __pyx_v_err = __pyx_t_3; } /* "cuda/cudart.pyx":18425 * cptr = utils.HelperInputVoidPtr(ptr) * cdef void* cptr_ptr = cptr.cptr * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaHostRegister(cptr_ptr, size, flags) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L5; } __pyx_L4_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L5:; } } /* "cuda/cudart.pyx":18428 * err = ccudart.cudaHostRegister(cptr_ptr, size, flags) * * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18428, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 18428, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_7 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_5}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18428, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18428, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1)) __PYX_ERR(0, 18428, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":18316 * return (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_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("cuda.cudart.cudaHostRegister", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_cptr); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":18430 * return (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_6cudart_197cudaHostUnregister(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_196cudaHostUnregister, "cudaHostUnregister(ptr)\n Unregisters a memory range that was registered with cudaHostRegister.\n\n Unmaps the memory range whose base address is specified by `ptr`, and\n makes it pageable again.\n\n The base address must be the same one specified to\n :py:obj:`~.cudaHostRegister()`.\n\n Parameters\n ----------\n ptr : Any\n Host pointer to memory to unregister\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorHostMemoryNotRegistered`\n\n See Also\n --------\n :py:obj:`~.cudaHostUnregister`, :py:obj:`~.cuMemHostUnregister`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_197cudaHostUnregister = {"cudaHostUnregister", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_197cudaHostUnregister, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_196cudaHostUnregister}; static PyObject *__pyx_pw_4cuda_6cudart_197cudaHostUnregister(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ptr_3,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr_3)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 18430, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaHostUnregister") < 0)) __PYX_ERR(0, 18430, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_ptr = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaHostUnregister", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 18430, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaHostUnregister", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_196cudaHostUnregister(__pyx_self, __pyx_v_ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_196cudaHostUnregister(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ptr) { PyObject *__pyx_v_cptr = NULL; void *__pyx_v_cptr_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; cudaError_t __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; unsigned int __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__446) __Pyx_RefNannySetupContext("cudaHostUnregister", 1); __Pyx_TraceCall("cudaHostUnregister", __pyx_f[0], 18430, 0, __PYX_ERR(0, 18430, __pyx_L1_error)); /* "cuda/cudart.pyx":18454 * :py:obj:`~.cudaHostUnregister`, :py:obj:`~.cuMemHostUnregister` * """ * cptr = utils.HelperInputVoidPtr(ptr) # <<<<<<<<<<<<<< * cdef void* cptr_ptr = cptr.cptr * with nogil: */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_ptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18454, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_cptr = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":18455 * """ * cptr = utils.HelperInputVoidPtr(ptr) * cdef void* cptr_ptr = cptr.cptr # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaHostUnregister(cptr_ptr) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_cptr, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18455, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 18455, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cptr_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":18456 * cptr = utils.HelperInputVoidPtr(ptr) * cdef void* cptr_ptr = cptr.cptr * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaHostUnregister(cptr_ptr) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":18457 * cdef void* cptr_ptr = cptr.cptr * with nogil: * err = ccudart.cudaHostUnregister(cptr_ptr) # <<<<<<<<<<<<<< * * return (cudaError_t(err),) */ __pyx_t_3 = __pyx_f_4cuda_7ccudart_cudaHostUnregister(__pyx_v_cptr_ptr); if (unlikely(__pyx_t_3 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 18457, __pyx_L4_error) __pyx_v_err = __pyx_t_3; } /* "cuda/cudart.pyx":18456 * cptr = utils.HelperInputVoidPtr(ptr) * cdef void* cptr_ptr = cptr.cptr * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaHostUnregister(cptr_ptr) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L5; } __pyx_L4_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L5:; } } /* "cuda/cudart.pyx":18459 * err = ccudart.cudaHostUnregister(cptr_ptr) * * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18459, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 18459, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_7 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_5}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18459, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18459, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1)) __PYX_ERR(0, 18459, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":18430 * return (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_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("cuda.cudart.cudaHostUnregister", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_cptr); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":18461 * return (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_6cudart_199cudaHostGetDevicePointer(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_198cudaHostGetDevicePointer, "cudaHostGetDevicePointer(pHost, unsigned int flags)\n Passes back device pointer of mapped host memory allocated by cudaHostAlloc or registered by cudaHostRegister.\n\n Passes back the device pointer corresponding to the mapped, pinned host\n buffer 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\n context creation occurred, or if called on a device that does not\n support mapped, pinned memory.\n\n For devices that have a non-zero value for the device attribute\n :py:obj:`~.cudaDevAttrCanUseHostPointerForRegisteredMem`, the memory\n can also be accessed from the device using the host pointer `pHost`.\n The device pointer returned by :py:obj:`~.cudaHostGetDevicePointer()`\n may or may not match the original host pointer `pHost` and depends on\n the devices visible to the application. If all devices visible to the\n application have a non-zero value for the device attribute, the device\n pointer returned by :py:obj:`~.cudaHostGetDevicePointer()` will match\n the original pointer `pHost`. If any device visible to the application\n has a zero value for the device attribute, the device pointer returned\n by :py:obj:`~.cudaHostGetDevicePointer()` will not match the original\n host pointer `pHost`, but it will be suitable for use on all devices\n provided Unified Virtual Addressing is enabled. In such systems, it is\n valid to access the memory using either pointer on devices that have a\n non-zero value for the device attribute. Note however that such devices\n should 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\n Parameters\n ----------\n pHost : Any\n Requested host pointer mapping\n flags : unsigned int\n Flag""s for extensions (must be 0 for now)\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorMemoryAllocation`\n pDevice : Any\n Returned device pointer for mapped memory\n\n See Also\n --------\n :py:obj:`~.cudaSetDeviceFlags`, :py:obj:`~.cudaHostAlloc`, :py:obj:`~.cuMemHostGetDevicePointer`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_199cudaHostGetDevicePointer = {"cudaHostGetDevicePointer", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_199cudaHostGetDevicePointer, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_198cudaHostGetDevicePointer}; static PyObject *__pyx_pw_4cuda_6cudart_199cudaHostGetDevicePointer(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pHost,&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pHost)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 18461, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 18461, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaHostGetDevicePointer", 1, 2, 2, 1); __PYX_ERR(0, 18461, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaHostGetDevicePointer") < 0)) __PYX_ERR(0, 18461, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_pHost = values[0]; __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[1]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 18462, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaHostGetDevicePointer", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 18461, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaHostGetDevicePointer", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_198cudaHostGetDevicePointer(__pyx_self, __pyx_v_pHost, __pyx_v_flags); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_198cudaHostGetDevicePointer(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_pHost, unsigned int __pyx_v_flags) { __pyx_t_4cuda_6cudart_void_ptr __pyx_v_pDevice; PyObject *__pyx_v_cpHost = NULL; void *__pyx_v_cpHost_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; cudaError_t __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; unsigned int __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__447) __Pyx_RefNannySetupContext("cudaHostGetDevicePointer", 1); __Pyx_TraceCall("cudaHostGetDevicePointer", __pyx_f[0], 18461, 0, __PYX_ERR(0, 18461, __pyx_L1_error)); /* "cuda/cudart.pyx":18511 * :py:obj:`~.cudaSetDeviceFlags`, :py:obj:`~.cudaHostAlloc`, :py:obj:`~.cuMemHostGetDevicePointer` * """ * cdef void_ptr pDevice = 0 # <<<<<<<<<<<<<< * cpHost = utils.HelperInputVoidPtr(pHost) * cdef void* cpHost_ptr = cpHost.cptr */ __pyx_v_pDevice = 0; /* "cuda/cudart.pyx":18512 * """ * cdef void_ptr pDevice = 0 * cpHost = utils.HelperInputVoidPtr(pHost) # <<<<<<<<<<<<<< * cdef void* cpHost_ptr = cpHost.cptr * err = ccudart.cudaHostGetDevicePointer(&pDevice, cpHost_ptr, flags) */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_pHost); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18512, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_cpHost = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":18513 * cdef void_ptr pDevice = 0 * cpHost = utils.HelperInputVoidPtr(pHost) * cdef void* cpHost_ptr = cpHost.cptr # <<<<<<<<<<<<<< * err = ccudart.cudaHostGetDevicePointer(&pDevice, cpHost_ptr, flags) * return (cudaError_t(err), pDevice) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_cpHost, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18513, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 18513, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cpHost_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":18514 * cpHost = utils.HelperInputVoidPtr(pHost) * cdef void* cpHost_ptr = cpHost.cptr * err = ccudart.cudaHostGetDevicePointer(&pDevice, cpHost_ptr, flags) # <<<<<<<<<<<<<< * return (cudaError_t(err), pDevice) * */ __pyx_t_3 = __pyx_f_4cuda_7ccudart_cudaHostGetDevicePointer(((void **)(&__pyx_v_pDevice)), __pyx_v_cpHost_ptr, __pyx_v_flags); if (unlikely(__pyx_t_3 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 18514, __pyx_L1_error) __pyx_v_err = __pyx_t_3; /* "cuda/cudart.pyx":18515 * cdef void* cpHost_ptr = cpHost.cptr * err = ccudart.cudaHostGetDevicePointer(&pDevice, cpHost_ptr, flags) * return (cudaError_t(err), pDevice) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18515, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 18515, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_7 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_5}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18515, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(__pyx_v_pDevice); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18515, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 18515, __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)) __PYX_ERR(0, 18515, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_4)) __PYX_ERR(0, 18515, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":18461 * return (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_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("cuda.cudart.cudaHostGetDevicePointer", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_cpHost); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":18517 * return (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_6cudart_201cudaHostGetFlags(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_200cudaHostGetFlags, "cudaHostGetFlags(pHost)\n Passes back flags used to allocate pinned host memory allocated by cudaHostAlloc.\n\n :py:obj:`~.cudaHostGetFlags()` will fail if the input pointer does not\n reside in an address range allocated by :py:obj:`~.cudaHostAlloc()`.\n\n Parameters\n ----------\n pHost : Any\n Host pointer\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n pFlags : unsigned int\n Returned flags word\n\n See Also\n --------\n :py:obj:`~.cudaHostAlloc`, :py:obj:`~.cuMemHostGetFlags`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_201cudaHostGetFlags = {"cudaHostGetFlags", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_201cudaHostGetFlags, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_200cudaHostGetFlags}; static PyObject *__pyx_pw_4cuda_6cudart_201cudaHostGetFlags(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pHost,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pHost)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 18517, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaHostGetFlags") < 0)) __PYX_ERR(0, 18517, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_pHost = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaHostGetFlags", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 18517, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaHostGetFlags", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_200cudaHostGetFlags(__pyx_self, __pyx_v_pHost); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_200cudaHostGetFlags(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_pHost) { unsigned int __pyx_v_pFlags; PyObject *__pyx_v_cpHost = NULL; void *__pyx_v_cpHost_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; cudaError_t __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; unsigned int __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__448) __Pyx_RefNannySetupContext("cudaHostGetFlags", 1); __Pyx_TraceCall("cudaHostGetFlags", __pyx_f[0], 18517, 0, __PYX_ERR(0, 18517, __pyx_L1_error)); /* "cuda/cudart.pyx":18540 * :py:obj:`~.cudaHostAlloc`, :py:obj:`~.cuMemHostGetFlags` * """ * cdef unsigned int pFlags = 0 # <<<<<<<<<<<<<< * cpHost = utils.HelperInputVoidPtr(pHost) * cdef void* cpHost_ptr = cpHost.cptr */ __pyx_v_pFlags = 0; /* "cuda/cudart.pyx":18541 * """ * cdef unsigned int pFlags = 0 * cpHost = utils.HelperInputVoidPtr(pHost) # <<<<<<<<<<<<<< * cdef void* cpHost_ptr = cpHost.cptr * err = ccudart.cudaHostGetFlags(&pFlags, cpHost_ptr) */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_pHost); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18541, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_cpHost = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":18542 * cdef unsigned int pFlags = 0 * cpHost = utils.HelperInputVoidPtr(pHost) * cdef void* cpHost_ptr = cpHost.cptr # <<<<<<<<<<<<<< * err = ccudart.cudaHostGetFlags(&pFlags, cpHost_ptr) * return (cudaError_t(err), pFlags) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_cpHost, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18542, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 18542, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cpHost_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":18543 * cpHost = utils.HelperInputVoidPtr(pHost) * cdef void* cpHost_ptr = cpHost.cptr * err = ccudart.cudaHostGetFlags(&pFlags, cpHost_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err), pFlags) * */ __pyx_t_3 = __pyx_f_4cuda_7ccudart_cudaHostGetFlags((&__pyx_v_pFlags), __pyx_v_cpHost_ptr); if (unlikely(__pyx_t_3 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 18543, __pyx_L1_error) __pyx_v_err = __pyx_t_3; /* "cuda/cudart.pyx":18544 * cdef void* cpHost_ptr = cpHost.cptr * err = ccudart.cudaHostGetFlags(&pFlags, cpHost_ptr) * return (cudaError_t(err), pFlags) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18544, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 18544, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_7 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_5}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18544, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = __Pyx_PyInt_From_unsigned_int(__pyx_v_pFlags); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18544, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 18544, __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)) __PYX_ERR(0, 18544, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_4)) __PYX_ERR(0, 18544, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":18517 * return (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_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("cuda.cudart.cudaHostGetFlags", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_cpHost); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":18546 * return (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_6cudart_203cudaMalloc3D(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_202cudaMalloc3D, "cudaMalloc3D(cudaExtent extent: cudaExtent)\n Allocates logical 1D, 2D, or 3D memory objects on the device.\n\n Allocates at least `width` * `height` * `depth` bytes of linear memory\n on the device and returns a :py:obj:`~.cudaPitchedPtr` in which `ptr`\n is a pointer to the allocated memory. The function may pad the\n allocation to ensure hardware alignment requirements are met. The pitch\n returned in the `pitch` field of `pitchedDevPtr` is the width in bytes\n of the allocation.\n\n The returned :py:obj:`~.cudaPitchedPtr` contains additional fields\n `xsize` and `ysize`, the logical width and height of the allocation,\n which are equivalent to the `width` and `height` `extent` parameters\n provided by the programmer during allocation.\n\n For allocations of 2D and 3D objects, it is highly recommended that\n programmers perform allocations using :py:obj:`~.cudaMalloc3D()` or\n :py:obj:`~.cudaMallocPitch()`. Due to alignment restrictions in the\n hardware, this is especially true if the application will be performing\n memory copies involving 2D or 3D objects (whether linear memory or CUDA\n arrays).\n\n Parameters\n ----------\n extent : :py:obj:`~.cudaExtent`\n Requested allocation size (`width` field in bytes)\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorMemoryAllocation`\n pitchedDevPtr : :py:obj:`~.cudaPitchedPtr`\n Pointer to allocated pitched device memory\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_203cudaMalloc3D = {"cudaMalloc3D", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_203cudaMalloc3D, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_202cudaMalloc3D}; static PyObject *__pyx_pw_4cuda_6cudart_203cudaMalloc3D(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_extent_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_extent_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 18546, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMalloc3D") < 0)) __PYX_ERR(0, 18546, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_extent = ((struct __pyx_obj_4cuda_6cudart_cudaExtent *)values[0]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaMalloc3D", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 18546, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaExtent, 0, "extent", 0))) __PYX_ERR(0, 18547, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_202cudaMalloc3D(__pyx_self, __pyx_v_extent); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_202cudaMalloc3D(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_6cudart_cudaExtent *__pyx_v_extent) { struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *__pyx_v_pitchedDevPtr = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; cudaError_t __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__449) __Pyx_RefNannySetupContext("cudaMalloc3D", 1); __Pyx_TraceCall("cudaMalloc3D", __pyx_f[0], 18546, 0, __PYX_ERR(0, 18546, __pyx_L1_error)); /* "cuda/cudart.pyx":18585 * :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() # <<<<<<<<<<<<<< * err = ccudart.cudaMalloc3D(pitchedDevPtr._ptr, extent._ptr[0]) * return (cudaError_t(err), pitchedDevPtr) */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaPitchedPtr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18585, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_pitchedDevPtr = ((struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":18586 * """ * cdef cudaPitchedPtr pitchedDevPtr = cudaPitchedPtr() * err = ccudart.cudaMalloc3D(pitchedDevPtr._ptr, extent._ptr[0]) # <<<<<<<<<<<<<< * return (cudaError_t(err), pitchedDevPtr) * */ __pyx_t_2 = __pyx_f_4cuda_7ccudart_cudaMalloc3D(((struct cudaPitchedPtr *)__pyx_v_pitchedDevPtr->_ptr), (__pyx_v_extent->_ptr[0])); if (unlikely(__pyx_t_2 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 18586, __pyx_L1_error) __pyx_v_err = __pyx_t_2; /* "cuda/cudart.pyx":18587 * cdef cudaPitchedPtr pitchedDevPtr = cudaPitchedPtr() * err = ccudart.cudaMalloc3D(pitchedDevPtr._ptr, extent._ptr[0]) * return (cudaError_t(err), pitchedDevPtr) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18587, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18587, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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, 18587, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18587, __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)) __PYX_ERR(0, 18587, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pitchedDevPtr); __Pyx_GIVEREF((PyObject *)__pyx_v_pitchedDevPtr); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_v_pitchedDevPtr))) __PYX_ERR(0, 18587, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":18546 * return (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_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaMalloc3D", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_pitchedDevPtr); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":18589 * return (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_6cudart_205cudaMalloc3DArray(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_204cudaMalloc3DArray, "cudaMalloc3DArray(cudaChannelFormatDesc desc: Optional[cudaChannelFormatDesc], cudaExtent extent: cudaExtent, unsigned int flags)\n Allocate an array on the device.\n\n Allocates a CUDA array according to the\n :py:obj:`~.cudaChannelFormatDesc` structure `desc` and returns a handle\n to the new CUDA array in `*array`.\n\n The :py:obj:`~.cudaChannelFormatDesc` is defined as:\n\n **View CUDA Toolkit Documentation for a C++ code example**\n\n where :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\n The `flags` parameter enables different options to be specified that\n affect 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\n The width, height and depth extents must meet certain ""size requirements\n as listed in the following table. All values are specified in elements.\n\n Note that 2D CUDA arrays have different size requirements if the\n :py:obj:`~.cudaArrayTextureGather` flag is set. In that case, the valid\n range for (width, height, depth) is ((1,maxTexture2DGather[0]),\n (1,maxTexture2DGather[1]), 0).\n\n **View CUDA Toolkit Documentation for a table example**\n\n Parameters\n ----------\n desc : :py:obj:`~.cudaChannelFormatDesc`\n Requested channel format\n extent : :py:obj:`~.cudaExtent`\n Requested allocation size (`width` field in elements)\n flags : unsigned int\n Flags for extensions\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorMemoryAllocation`\n array : :py:obj:`~.cudaArray_t`\n Pointer to allocated array in device memory\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_205cudaMalloc3DArray = {"cudaMalloc3DArray", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_205cudaMalloc3DArray, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_204cudaMalloc3DArray}; static PyObject *__pyx_pw_4cuda_6cudart_205cudaMalloc3DArray(PyObject *__pyx_self, #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_6cudart_cudaChannelFormatDesc *__pyx_v_desc = 0; struct __pyx_obj_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_desc_2,&__pyx_n_s_extent_2,&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_desc_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 18589, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_extent_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 18589, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMalloc3DArray", 1, 3, 3, 1); __PYX_ERR(0, 18589, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 18589, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMalloc3DArray", 1, 3, 3, 2); __PYX_ERR(0, 18589, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMalloc3DArray") < 0)) __PYX_ERR(0, 18589, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_desc = ((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)values[0]); __pyx_v_extent = ((struct __pyx_obj_4cuda_6cudart_cudaExtent *)values[1]); __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[2]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 18590, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaMalloc3DArray", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 18589, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaChannelFormatDesc, 1, "desc", 0))) __PYX_ERR(0, 18590, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_extent), __pyx_ptype_4cuda_6cudart_cudaExtent, 0, "extent", 0))) __PYX_ERR(0, 18590, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_204cudaMalloc3DArray(__pyx_self, __pyx_v_desc, __pyx_v_extent, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_204cudaMalloc3DArray(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *__pyx_v_desc, struct __pyx_obj_4cuda_6cudart_cudaExtent *__pyx_v_extent, unsigned int __pyx_v_flags) { struct __pyx_obj_4cuda_6cudart_cudaArray_t *__pyx_v_array = 0; struct cudaChannelFormatDesc *__pyx_v_cdesc_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; struct cudaChannelFormatDesc *__pyx_t_2; int __pyx_t_3; cudaError_t __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__450) __Pyx_RefNannySetupContext("cudaMalloc3DArray", 1); __Pyx_TraceCall("cudaMalloc3DArray", __pyx_f[0], 18589, 0, __PYX_ERR(0, 18589, __pyx_L1_error)); /* "cuda/cudart.pyx":18701 * :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 ccudart.cudaChannelFormatDesc* cdesc_ptr = desc._ptr if desc != None else NULL * with nogil: */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_t)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18701, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_array = ((struct __pyx_obj_4cuda_6cudart_cudaArray_t *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":18702 * """ * cdef cudaArray_t array = cudaArray_t() * cdef ccudart.cudaChannelFormatDesc* cdesc_ptr = desc._ptr if desc != None else NULL # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaMalloc3DArray(array._ptr, cdesc_ptr, extent._ptr[0], flags) */ __pyx_t_1 = PyObject_RichCompare(((PyObject *)__pyx_v_desc), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18702, __pyx_L1_error) __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 18702, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_3) { __pyx_t_2 = __pyx_v_desc->_ptr; } else { __pyx_t_2 = NULL; } __pyx_v_cdesc_ptr = __pyx_t_2; /* "cuda/cudart.pyx":18703 * cdef cudaArray_t array = cudaArray_t() * cdef ccudart.cudaChannelFormatDesc* cdesc_ptr = desc._ptr if desc != None else NULL * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMalloc3DArray(array._ptr, cdesc_ptr, extent._ptr[0], flags) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":18704 * cdef ccudart.cudaChannelFormatDesc* cdesc_ptr = desc._ptr if desc != None else NULL * with nogil: * err = ccudart.cudaMalloc3DArray(array._ptr, cdesc_ptr, extent._ptr[0], flags) # <<<<<<<<<<<<<< * * return (cudaError_t(err), array) */ __pyx_t_4 = __pyx_f_4cuda_7ccudart_cudaMalloc3DArray(((cudaArray_t *)__pyx_v_array->_ptr), __pyx_v_cdesc_ptr, (__pyx_v_extent->_ptr[0]), __pyx_v_flags); if (unlikely(__pyx_t_4 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 18704, __pyx_L4_error) __pyx_v_err = __pyx_t_4; } /* "cuda/cudart.pyx":18703 * cdef cudaArray_t array = cudaArray_t() * cdef ccudart.cudaChannelFormatDesc* cdesc_ptr = desc._ptr if desc != None else NULL * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMalloc3DArray(array._ptr, cdesc_ptr, extent._ptr[0], flags) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L5; } __pyx_L4_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L5:; } } /* "cuda/cudart.pyx":18706 * err = ccudart.cudaMalloc3DArray(array._ptr, cdesc_ptr, extent._ptr[0], flags) * * return (cudaError_t(err), array) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 18706, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 18706, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18706, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 18706, __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)) __PYX_ERR(0, 18706, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_array); __Pyx_GIVEREF((PyObject *)__pyx_v_array); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_v_array))) __PYX_ERR(0, 18706, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":18589 * return (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_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.cudaMalloc3DArray", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_array); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":18708 * return (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_6cudart_207cudaMallocMipmappedArray(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_206cudaMallocMipmappedArray, "cudaMallocMipmappedArray(cudaChannelFormatDesc desc: Optional[cudaChannelFormatDesc], cudaExtent extent: cudaExtent, unsigned int numLevels, unsigned int flags)\n Allocate a mipmapped array on the device.\n\n Allocates a CUDA mipmapped array according to the\n :py:obj:`~.cudaChannelFormatDesc` structure `desc` and returns a handle\n to the new CUDA mipmapped array in `*mipmappedArray`. `numLevels`\n specifies the number of mipmap levels to be allocated. This value is\n clamped to the range [1, 1 + floor(log2(max(width, height, depth)))].\n\n The :py:obj:`~.cudaChannelFormatDesc` is defined as:\n\n **View CUDA Toolkit Documentation for a C++ code example**\n\n where :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, cudaArrayCubemap 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\n The `flags` parameter enables different options to be specified that\n affect 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\n The width, height and depth extents must meet certain size requirements\n as listed in the following table. All values are specified in elements.\n\n **View CUDA Toolkit Documentation for a table example**\n\n Parameters\n ----------\n desc : :py:obj:`~.cudaChannelFormatDesc`\n Requested channel format\n extent : :py:obj:`~.cudaExtent`\n Requested allocation size (`width` field in elements)\n numLevels : unsigned int\n Number of mipmap levels to allocate\n flags : unsigned int\n Flags for extensions\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorMemoryAllocation`\n mipmappedArray : :py:obj:`~.cudaMipmappedArray_t`\n Pointer to allocated mipmapped array in device memory\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_207cudaMallocMipmappedArray = {"cudaMallocMipmappedArray", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_207cudaMallocMipmappedArray, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_206cudaMallocMipmappedArray}; static PyObject *__pyx_pw_4cuda_6cudart_207cudaMallocMipmappedArray(PyObject *__pyx_self, #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_6cudart_cudaChannelFormatDesc *__pyx_v_desc = 0; struct __pyx_obj_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_desc_2,&__pyx_n_s_extent_2,&__pyx_n_s_numLevels_2,&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_desc_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 18708, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_extent_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 18708, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMallocMipmappedArray", 1, 4, 4, 1); __PYX_ERR(0, 18708, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_numLevels_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 18708, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMallocMipmappedArray", 1, 4, 4, 2); __PYX_ERR(0, 18708, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 18708, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMallocMipmappedArray", 1, 4, 4, 3); __PYX_ERR(0, 18708, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMallocMipmappedArray") < 0)) __PYX_ERR(0, 18708, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); } __pyx_v_desc = ((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)values[0]); __pyx_v_extent = ((struct __pyx_obj_4cuda_6cudart_cudaExtent *)values[1]); __pyx_v_numLevels = __Pyx_PyInt_As_unsigned_int(values[2]); if (unlikely((__pyx_v_numLevels == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 18709, __pyx_L3_error) __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[3]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 18709, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaMallocMipmappedArray", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 18708, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaChannelFormatDesc, 1, "desc", 0))) __PYX_ERR(0, 18709, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_extent), __pyx_ptype_4cuda_6cudart_cudaExtent, 0, "extent", 0))) __PYX_ERR(0, 18709, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_206cudaMallocMipmappedArray(__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; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_206cudaMallocMipmappedArray(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *__pyx_v_desc, struct __pyx_obj_4cuda_6cudart_cudaExtent *__pyx_v_extent, unsigned int __pyx_v_numLevels, unsigned int __pyx_v_flags) { struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_t *__pyx_v_mipmappedArray = 0; struct cudaChannelFormatDesc *__pyx_v_cdesc_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; struct cudaChannelFormatDesc *__pyx_t_2; int __pyx_t_3; cudaError_t __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__451) __Pyx_RefNannySetupContext("cudaMallocMipmappedArray", 1); __Pyx_TraceCall("cudaMallocMipmappedArray", __pyx_f[0], 18708, 0, __PYX_ERR(0, 18708, __pyx_L1_error)); /* "cuda/cudart.pyx":18823 * :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 ccudart.cudaChannelFormatDesc* cdesc_ptr = desc._ptr if desc != None else NULL * err = ccudart.cudaMallocMipmappedArray(mipmappedArray._ptr, cdesc_ptr, extent._ptr[0], numLevels, flags) */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMipmappedArray_t)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18823, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_mipmappedArray = ((struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_t *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":18824 * """ * cdef cudaMipmappedArray_t mipmappedArray = cudaMipmappedArray_t() * cdef ccudart.cudaChannelFormatDesc* cdesc_ptr = desc._ptr if desc != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaMallocMipmappedArray(mipmappedArray._ptr, cdesc_ptr, extent._ptr[0], numLevels, flags) * return (cudaError_t(err), mipmappedArray) */ __pyx_t_1 = PyObject_RichCompare(((PyObject *)__pyx_v_desc), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18824, __pyx_L1_error) __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 18824, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_3) { __pyx_t_2 = __pyx_v_desc->_ptr; } else { __pyx_t_2 = NULL; } __pyx_v_cdesc_ptr = __pyx_t_2; /* "cuda/cudart.pyx":18825 * cdef cudaMipmappedArray_t mipmappedArray = cudaMipmappedArray_t() * cdef ccudart.cudaChannelFormatDesc* cdesc_ptr = desc._ptr if desc != None else NULL * err = ccudart.cudaMallocMipmappedArray(mipmappedArray._ptr, cdesc_ptr, extent._ptr[0], numLevels, flags) # <<<<<<<<<<<<<< * return (cudaError_t(err), mipmappedArray) * */ __pyx_t_4 = __pyx_f_4cuda_7ccudart_cudaMallocMipmappedArray(((cudaMipmappedArray_t *)__pyx_v_mipmappedArray->_ptr), __pyx_v_cdesc_ptr, (__pyx_v_extent->_ptr[0]), __pyx_v_numLevels, __pyx_v_flags); if (unlikely(__pyx_t_4 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 18825, __pyx_L1_error) __pyx_v_err = __pyx_t_4; /* "cuda/cudart.pyx":18826 * cdef ccudart.cudaChannelFormatDesc* cdesc_ptr = desc._ptr if desc != None else NULL * err = ccudart.cudaMallocMipmappedArray(mipmappedArray._ptr, cdesc_ptr, extent._ptr[0], numLevels, flags) * return (cudaError_t(err), mipmappedArray) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 18826, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 18826, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18826, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 18826, __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)) __PYX_ERR(0, 18826, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_mipmappedArray); __Pyx_GIVEREF((PyObject *)__pyx_v_mipmappedArray); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_v_mipmappedArray))) __PYX_ERR(0, 18826, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":18708 * return (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_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.cudaMallocMipmappedArray", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_mipmappedArray); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":18828 * return (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_6cudart_209cudaGetMipmappedArrayLevel(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_208cudaGetMipmappedArrayLevel, "cudaGetMipmappedArrayLevel(mipmappedArray, unsigned int level)\n Gets a mipmap level of a CUDA mipmapped array.\n\n Returns in `*levelArray` a CUDA array that represents a single mipmap\n level of the CUDA mipmapped array `mipmappedArray`.\n\n If `level` is greater than the maximum number of levels in this\n mipmapped array, :py:obj:`~.cudaErrorInvalidValue` is returned.\n\n If `mipmappedArray` is NULL, :py:obj:`~.cudaErrorInvalidResourceHandle`\n is returned.\n\n Parameters\n ----------\n mipmappedArray : :py:obj:`~.cudaMipmappedArray_const_t`\n CUDA mipmapped array\n level : unsigned int\n Mipmap level\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue` :py:obj:`~.cudaErrorInvalidResourceHandle`\n levelArray : :py:obj:`~.cudaArray_t`\n Returned mipmap level CUDA array\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_209cudaGetMipmappedArrayLevel = {"cudaGetMipmappedArrayLevel", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_209cudaGetMipmappedArrayLevel, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_208cudaGetMipmappedArrayLevel}; static PyObject *__pyx_pw_4cuda_6cudart_209cudaGetMipmappedArrayLevel(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_mipmappedArray,&__pyx_n_s_level,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_mipmappedArray)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 18828, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_level)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 18828, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGetMipmappedArrayLevel", 1, 2, 2, 1); __PYX_ERR(0, 18828, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGetMipmappedArrayLevel") < 0)) __PYX_ERR(0, 18828, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_mipmappedArray = values[0]; __pyx_v_level = __Pyx_PyInt_As_unsigned_int(values[1]); if (unlikely((__pyx_v_level == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 18829, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGetMipmappedArrayLevel", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 18828, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGetMipmappedArrayLevel", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_208cudaGetMipmappedArrayLevel(__pyx_self, __pyx_v_mipmappedArray, __pyx_v_level); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_208cudaGetMipmappedArrayLevel(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_mipmappedArray, unsigned int __pyx_v_level) { cudaMipmappedArray_const_t __pyx_v_cmipmappedArray; PyObject *__pyx_v_pmipmappedArray = NULL; struct __pyx_obj_4cuda_6cudart_cudaArray_t *__pyx_v_levelArray = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; cudaError_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__452) __Pyx_RefNannySetupContext("cudaGetMipmappedArrayLevel", 1); __Pyx_TraceCall("cudaGetMipmappedArrayLevel", __pyx_f[0], 18828, 0, __PYX_ERR(0, 18828, __pyx_L1_error)); /* "cuda/cudart.pyx":18860 * """ * cdef ccudart.cudaMipmappedArray_const_t cmipmappedArray * if mipmappedArray is None: # <<<<<<<<<<<<<< * cmipmappedArray = 0 * elif isinstance(mipmappedArray, (cudaMipmappedArray_const_t,)): */ __pyx_t_1 = (__pyx_v_mipmappedArray == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":18861 * cdef ccudart.cudaMipmappedArray_const_t cmipmappedArray * if mipmappedArray is None: * cmipmappedArray = 0 # <<<<<<<<<<<<<< * elif isinstance(mipmappedArray, (cudaMipmappedArray_const_t,)): * pmipmappedArray = int(mipmappedArray) */ __pyx_v_cmipmappedArray = ((cudaMipmappedArray_const_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":18860 * """ * cdef ccudart.cudaMipmappedArray_const_t cmipmappedArray * if mipmappedArray is None: # <<<<<<<<<<<<<< * cmipmappedArray = 0 * elif isinstance(mipmappedArray, (cudaMipmappedArray_const_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":18862 * if mipmappedArray is None: * cmipmappedArray = 0 * elif isinstance(mipmappedArray, (cudaMipmappedArray_const_t,)): # <<<<<<<<<<<<<< * pmipmappedArray = int(mipmappedArray) * cmipmappedArray = pmipmappedArray */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_mipmappedArray, __pyx_ptype_4cuda_6cudart_cudaMipmappedArray_const_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":18863 * cmipmappedArray = 0 * elif isinstance(mipmappedArray, (cudaMipmappedArray_const_t,)): * pmipmappedArray = int(mipmappedArray) # <<<<<<<<<<<<<< * cmipmappedArray = pmipmappedArray * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_mipmappedArray); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_pmipmappedArray = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":18864 * elif isinstance(mipmappedArray, (cudaMipmappedArray_const_t,)): * pmipmappedArray = int(mipmappedArray) * cmipmappedArray = pmipmappedArray # <<<<<<<<<<<<<< * else: * pmipmappedArray = int(cudaMipmappedArray_const_t(mipmappedArray)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pmipmappedArray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 18864, __pyx_L1_error) __pyx_v_cmipmappedArray = ((cudaMipmappedArray_const_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":18862 * if mipmappedArray is None: * cmipmappedArray = 0 * elif isinstance(mipmappedArray, (cudaMipmappedArray_const_t,)): # <<<<<<<<<<<<<< * pmipmappedArray = int(mipmappedArray) * cmipmappedArray = pmipmappedArray */ goto __pyx_L3; } /* "cuda/cudart.pyx":18866 * cmipmappedArray = pmipmappedArray * else: * pmipmappedArray = int(cudaMipmappedArray_const_t(mipmappedArray)) # <<<<<<<<<<<<<< * cmipmappedArray = pmipmappedArray * cdef cudaArray_t levelArray = cudaArray_t() */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMipmappedArray_const_t), __pyx_v_mipmappedArray); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18866, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18866, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_pmipmappedArray = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":18867 * else: * pmipmappedArray = int(cudaMipmappedArray_const_t(mipmappedArray)) * cmipmappedArray = pmipmappedArray # <<<<<<<<<<<<<< * cdef cudaArray_t levelArray = cudaArray_t() * err = ccudart.cudaGetMipmappedArrayLevel(levelArray._ptr, cmipmappedArray, level) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pmipmappedArray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 18867, __pyx_L1_error) __pyx_v_cmipmappedArray = ((cudaMipmappedArray_const_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":18868 * pmipmappedArray = int(cudaMipmappedArray_const_t(mipmappedArray)) * cmipmappedArray = pmipmappedArray * cdef cudaArray_t levelArray = cudaArray_t() # <<<<<<<<<<<<<< * err = ccudart.cudaGetMipmappedArrayLevel(levelArray._ptr, cmipmappedArray, level) * return (cudaError_t(err), levelArray) */ __pyx_t_4 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_t)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18868, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_levelArray = ((struct __pyx_obj_4cuda_6cudart_cudaArray_t *)__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":18869 * cmipmappedArray = pmipmappedArray * cdef cudaArray_t levelArray = cudaArray_t() * err = ccudart.cudaGetMipmappedArrayLevel(levelArray._ptr, cmipmappedArray, level) # <<<<<<<<<<<<<< * return (cudaError_t(err), levelArray) * */ __pyx_t_5 = __pyx_f_4cuda_7ccudart_cudaGetMipmappedArrayLevel(((cudaArray_t *)__pyx_v_levelArray->_ptr), __pyx_v_cmipmappedArray, __pyx_v_level); if (unlikely(__pyx_t_5 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 18869, __pyx_L1_error) __pyx_v_err = __pyx_t_5; /* "cuda/cudart.pyx":18870 * cdef cudaArray_t levelArray = cudaArray_t() * err = ccudart.cudaGetMipmappedArrayLevel(levelArray._ptr, cmipmappedArray, level) * return (cudaError_t(err), levelArray) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18870, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 18870, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18870, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18870, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 18870, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_levelArray); __Pyx_GIVEREF((PyObject *)__pyx_v_levelArray); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_levelArray))) __PYX_ERR(0, 18870, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":18828 * return (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_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":18872 * return (cudaError_t(err), levelArray) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemcpy3D(p : Optional[cudaMemcpy3DParms]): * """ Copies data between 3D objects. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_211cudaMemcpy3D(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_210cudaMemcpy3D, "cudaMemcpy3D(cudaMemcpy3DParms p: Optional[cudaMemcpy3DParms])\n Copies 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\n source and destination objects may be in either host memory, device\n memory, or a CUDA array. The source, destination, extent, and kind of\n copy performed is specified by the :py:obj:`~.cudaMemcpy3DParms` struct\n which should be initialized to zero before use:\n\n **View CUDA Toolkit Documentation for a C++ code example**\n\n The struct passed to :py:obj:`~.cudaMemcpy3D()` must specify one of\n `srcArray` or `srcPtr` and one of `dstArray` or `dstPtr`. Passing more\n than one non-zero source or destination will cause\n :py:obj:`~.cudaMemcpy3D()` to return an error.\n\n The `srcPos` and `dstPos` fields are optional offsets into the source\n and destination objects and are defined in units of each object's\n elements. The element for a host or device pointer is assumed to be\n unsigned char.\n\n The `extent` field defines the dimensions of the transferred area in\n elements. If a CUDA array is participating in the copy, the extent is\n defined in terms of that array's elements. If no CUDA array is\n participating in the copy then the extents are defined in elements of\n unsigned char.\n\n The `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`.\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. For :py:obj:`~.cudaMemcpyHostToHost` or\n :py:obj:`~.cudaMemcpyHostToDevice` or""\n :py:obj:`~.cudaMemcpyDeviceToHost` passed as kind and cudaArray type\n passed as source or destination, if the kind implies cudaArray type to\n be present on the host, :py:obj:`~.cudaMemcpy3D()` will disregard that\n implication and silently correct the kind based on the fact that\n cudaArray type can only be present on the device.\n\n If the source and destination are both arrays,\n :py:obj:`~.cudaMemcpy3D()` will return an error if they do not have the\n same element size.\n\n The source and destination object may not overlap. If overlapping\n source and destination objects are specified, undefined behavior will\n result.\n\n The source object must entirely contain the region defined by `srcPos`\n and `extent`. The destination object must entirely contain the region\n defined 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()`\n will always be valid.\n\n Parameters\n ----------\n p : :py:obj:`~.cudaMemcpy3DParms`\n 3D memory copy parameters\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidPitchValue`, :py:obj:`~.cudaErrorInvalidMemcpyDirection`\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_211cudaMemcpy3D = {"cudaMemcpy3D", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_211cudaMemcpy3D, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_210cudaMemcpy3D}; static PyObject *__pyx_pw_4cuda_6cudart_211cudaMemcpy3D(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_p,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_p)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 18872, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemcpy3D") < 0)) __PYX_ERR(0, 18872, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_p = ((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *)values[0]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaMemcpy3D", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 18872, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaMemcpy3DParms, 1, "p", 0))) __PYX_ERR(0, 18873, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_210cudaMemcpy3D(__pyx_self, __pyx_v_p); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_210cudaMemcpy3D(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *__pyx_v_p) { struct cudaMemcpy3DParms *__pyx_v_cp_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations struct cudaMemcpy3DParms *__pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; cudaError_t __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__453) __Pyx_RefNannySetupContext("cudaMemcpy3D", 1); __Pyx_TraceCall("cudaMemcpy3D", __pyx_f[0], 18872, 0, __PYX_ERR(0, 18872, __pyx_L1_error)); /* "cuda/cudart.pyx":18948 * :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 ccudart.cudaMemcpy3DParms* cp_ptr = p._ptr if p != None else NULL # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaMemcpy3D(cp_ptr) */ __pyx_t_2 = PyObject_RichCompare(((PyObject *)__pyx_v_p), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18948, __pyx_L1_error) __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 18948, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_3) { __pyx_t_1 = __pyx_v_p->_ptr; } else { __pyx_t_1 = NULL; } __pyx_v_cp_ptr = __pyx_t_1; /* "cuda/cudart.pyx":18949 * """ * cdef ccudart.cudaMemcpy3DParms* cp_ptr = p._ptr if p != None else NULL * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemcpy3D(cp_ptr) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":18950 * cdef ccudart.cudaMemcpy3DParms* cp_ptr = p._ptr if p != None else NULL * with nogil: * err = ccudart.cudaMemcpy3D(cp_ptr) # <<<<<<<<<<<<<< * * return (cudaError_t(err),) */ __pyx_t_4 = __pyx_f_4cuda_7ccudart_cudaMemcpy3D(__pyx_v_cp_ptr); if (unlikely(__pyx_t_4 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 18950, __pyx_L4_error) __pyx_v_err = __pyx_t_4; } /* "cuda/cudart.pyx":18949 * """ * cdef ccudart.cudaMemcpy3DParms* cp_ptr = p._ptr if p != None else NULL * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemcpy3D(cp_ptr) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L5; } __pyx_L4_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L5:; } } /* "cuda/cudart.pyx":18952 * err = ccudart.cudaMemcpy3D(cp_ptr) * * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 18952, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 18952, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __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, 18952, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 18952, __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)) __PYX_ERR(0, 18952, __pyx_L1_error); __pyx_t_2 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":18872 * return (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_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3D", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":18954 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemcpy3DPeer(p : Optional[cudaMemcpy3DPeerParms]): * """ Copies memory between devices. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_213cudaMemcpy3DPeer(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_212cudaMemcpy3DPeer, "cudaMemcpy3DPeer(cudaMemcpy3DPeerParms p: Optional[cudaMemcpy3DPeerParms])\n Copies memory between devices.\n\n Perform a 3D memory copy according to the parameters specified in `p`.\n See the definition of the :py:obj:`~.cudaMemcpy3DPeerParms` structure\n for documentation of its parameters.\n\n Note that this function is synchronous with respect to the host only if\n the source or destination of the transfer is host memory. Note also\n that this copy is serialized with respect to all pending and future\n asynchronous work in to the current device, the copy's source device,\n and the copy's destination device (use\n :py:obj:`~.cudaMemcpy3DPeerAsync` to avoid this synchronization).\n\n Parameters\n ----------\n p : :py:obj:`~.cudaMemcpy3DPeerParms`\n Parameters for the memory copy\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorInvalidPitchValue`\n\n See Also\n --------\n :py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpyPeer`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpyPeerAsync`, :py:obj:`~.cudaMemcpy3DPeerAsync`, :py:obj:`~.cuMemcpy3DPeer`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_213cudaMemcpy3DPeer = {"cudaMemcpy3DPeer", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_213cudaMemcpy3DPeer, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_212cudaMemcpy3DPeer}; static PyObject *__pyx_pw_4cuda_6cudart_213cudaMemcpy3DPeer(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_p,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_p)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 18954, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemcpy3DPeer") < 0)) __PYX_ERR(0, 18954, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_p = ((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *)values[0]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaMemcpy3DPeer", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 18954, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaMemcpy3DPeerParms, 1, "p", 0))) __PYX_ERR(0, 18955, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_212cudaMemcpy3DPeer(__pyx_self, __pyx_v_p); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_212cudaMemcpy3DPeer(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *__pyx_v_p) { struct cudaMemcpy3DPeerParms *__pyx_v_cp_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations struct cudaMemcpy3DPeerParms *__pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; cudaError_t __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__454) __Pyx_RefNannySetupContext("cudaMemcpy3DPeer", 1); __Pyx_TraceCall("cudaMemcpy3DPeer", __pyx_f[0], 18954, 0, __PYX_ERR(0, 18954, __pyx_L1_error)); /* "cuda/cudart.pyx":18983 * :py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpyPeer`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpyPeerAsync`, :py:obj:`~.cudaMemcpy3DPeerAsync`, :py:obj:`~.cuMemcpy3DPeer` * """ * cdef ccudart.cudaMemcpy3DPeerParms* cp_ptr = p._ptr if p != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaMemcpy3DPeer(cp_ptr) * return (cudaError_t(err),) */ __pyx_t_2 = PyObject_RichCompare(((PyObject *)__pyx_v_p), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18983, __pyx_L1_error) __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 18983, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_3) { __pyx_t_1 = __pyx_v_p->_ptr; } else { __pyx_t_1 = NULL; } __pyx_v_cp_ptr = __pyx_t_1; /* "cuda/cudart.pyx":18984 * """ * cdef ccudart.cudaMemcpy3DPeerParms* cp_ptr = p._ptr if p != None else NULL * err = ccudart.cudaMemcpy3DPeer(cp_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_4 = __pyx_f_4cuda_7ccudart_cudaMemcpy3DPeer(__pyx_v_cp_ptr); if (unlikely(__pyx_t_4 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 18984, __pyx_L1_error) __pyx_v_err = __pyx_t_4; /* "cuda/cudart.pyx":18985 * cdef ccudart.cudaMemcpy3DPeerParms* cp_ptr = p._ptr if p != None else NULL * err = ccudart.cudaMemcpy3DPeer(cp_ptr) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 18985, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 18985, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __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, 18985, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 18985, __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)) __PYX_ERR(0, 18985, __pyx_L1_error); __pyx_t_2 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":18954 * return (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_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DPeer", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":18987 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemcpy3DAsync(p : Optional[cudaMemcpy3DParms], stream): * """ Copies data between 3D objects. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_215cudaMemcpy3DAsync(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_214cudaMemcpy3DAsync, "cudaMemcpy3DAsync(cudaMemcpy3DParms p: Optional[cudaMemcpy3DParms], stream)\n Copies 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\n source and destination objects may be in either host memory, device\n memory, or a CUDA array. The source, destination, extent, and kind of\n copy performed is specified by the :py:obj:`~.cudaMemcpy3DParms` struct\n which should be initialized to zero before use:\n\n **View CUDA Toolkit Documentation for a C++ code example**\n\n The struct passed to :py:obj:`~.cudaMemcpy3DAsync()` must specify one\n of `srcArray` or `srcPtr` and one of `dstArray` or `dstPtr`. Passing\n more than one non-zero source or destination will cause\n :py:obj:`~.cudaMemcpy3DAsync()` to return an error.\n\n The `srcPos` and `dstPos` fields are optional offsets into the source\n and destination objects and are defined in units of each object's\n elements. The element for a host or device pointer is assumed to be\n unsigned char. For CUDA arrays, positions must be in the range [0,\n 2048) for any dimension.\n\n The `extent` field defines the dimensions of the transferred area in\n elements. If a CUDA array is participating in the copy, the extent is\n defined in terms of that array's elements. If no CUDA array is\n participating in the copy then the extents are defined in elements of\n unsigned char.\n\n The `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`.\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 u""nified virtual addressing. For :py:obj:`~.cudaMemcpyHostToHost` or\n :py:obj:`~.cudaMemcpyHostToDevice` or\n :py:obj:`~.cudaMemcpyDeviceToHost` passed as kind and cudaArray type\n passed as source or destination, if the kind implies cudaArray type to\n be present on the host, :py:obj:`~.cudaMemcpy3DAsync()` will disregard\n that implication and silently correct the kind based on the fact that\n cudaArray type can only be present on the device.\n\n If the source and destination are both arrays,\n :py:obj:`~.cudaMemcpy3DAsync()` will return an error if they do not\n have the same element size.\n\n The source and destination object may not overlap. If overlapping\n source and destination objects are specified, undefined behavior will\n result.\n\n The source object must lie entirely within the region defined by\n `srcPos` and `extent`. The destination object must lie entirely within\n the 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()`\n will always be valid.\n\n :py:obj:`~.cudaMemcpy3DAsync()` is asynchronous with respect to the\n host, so the call may return before the copy is complete. The copy can\n optionally be associated to a stream by passing a non-zero `stream`\n argument. If `kind` is :py:obj:`~.cudaMemcpyHostToDevice` or\n :py:obj:`~.cudaMemcpyDeviceToHost` and `stream` is non-zero, the copy\n may overlap with operations in other streams.\n\n The device version of this function only handles device to device\n copies and cannot be given local or shared pointers.\n\n Parameters\n ----------\n p : :py:obj:`~.cudaMemcpy3DParms`\n 3D memory copy parameters\n stream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n Stream identifier\n\n Returns\n -------""\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidPitchValue`, :py:obj:`~.cudaErrorInvalidMemcpyDirection`\n\n See Also\n --------\n :py:obj:`~.cudaMalloc3D`, :py:obj:`~.cudaMalloc3DArray`, :py:obj:`~.cudaMemset3D`, :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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_215cudaMemcpy3DAsync = {"cudaMemcpy3DAsync", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_215cudaMemcpy3DAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_214cudaMemcpy3DAsync}; static PyObject *__pyx_pw_4cuda_6cudart_215cudaMemcpy3DAsync(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_p,&__pyx_n_s_stream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_p)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 18987, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 18987, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy3DAsync", 1, 2, 2, 1); __PYX_ERR(0, 18987, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemcpy3DAsync") < 0)) __PYX_ERR(0, 18987, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_p = ((struct __pyx_obj_4cuda_6cudart_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, 18987, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaMemcpy3DParms, 1, "p", 0))) __PYX_ERR(0, 18988, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_214cudaMemcpy3DAsync(__pyx_self, __pyx_v_p, __pyx_v_stream); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_214cudaMemcpy3DAsync(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *__pyx_v_p, PyObject *__pyx_v_stream) { cudaStream_t __pyx_v_cstream; PyObject *__pyx_v_pstream = NULL; struct cudaMemcpy3DParms *__pyx_v_cp_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; struct cudaMemcpy3DParms *__pyx_t_6; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__455) __Pyx_RefNannySetupContext("cudaMemcpy3DAsync", 1); __Pyx_TraceCall("cudaMemcpy3DAsync", __pyx_f[0], 18987, 0, __PYX_ERR(0, 18987, __pyx_L1_error)); /* "cuda/cudart.pyx":19077 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_stream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":19078 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":19077 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":19079 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":19080 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19080, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pstream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":19081 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19081, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":19079 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L3; } /* "cuda/cudart.pyx":19083 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * cdef ccudart.cudaMemcpy3DParms* cp_ptr = p._ptr if p != None else NULL */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19083, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 19083, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pstream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":19084 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * cdef ccudart.cudaMemcpy3DParms* cp_ptr = p._ptr if p != None else NULL * with nogil: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19084, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":19085 * pstream = int(cudaStream_t(stream)) * cstream = pstream * cdef ccudart.cudaMemcpy3DParms* cp_ptr = p._ptr if p != None else NULL # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaMemcpy3DAsync(cp_ptr, cstream) */ __pyx_t_5 = PyObject_RichCompare(((PyObject *)__pyx_v_p), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 19085, __pyx_L1_error) __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 19085, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_1) { __pyx_t_6 = __pyx_v_p->_ptr; } else { __pyx_t_6 = NULL; } __pyx_v_cp_ptr = __pyx_t_6; /* "cuda/cudart.pyx":19086 * cstream = pstream * cdef ccudart.cudaMemcpy3DParms* cp_ptr = p._ptr if p != None else NULL * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemcpy3DAsync(cp_ptr, cstream) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":19087 * cdef ccudart.cudaMemcpy3DParms* cp_ptr = p._ptr if p != None else NULL * with nogil: * err = ccudart.cudaMemcpy3DAsync(cp_ptr, cstream) # <<<<<<<<<<<<<< * * return (cudaError_t(err),) */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaMemcpy3DAsync(__pyx_v_cp_ptr, __pyx_v_cstream); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 19087, __pyx_L7_error) __pyx_v_err = __pyx_t_7; } /* "cuda/cudart.pyx":19086 * cstream = pstream * cdef ccudart.cudaMemcpy3DParms* cp_ptr = p._ptr if p != None else NULL * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemcpy3DAsync(cp_ptr, cstream) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L8; } __pyx_L7_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L8:; } } /* "cuda/cudart.pyx":19089 * err = ccudart.cudaMemcpy3DAsync(cp_ptr, cstream) * * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19089, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 19089, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_8}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 19089, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19089, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 19089, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":18987 * return (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_5); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DAsync", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pstream); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":19091 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemcpy3DPeerAsync(p : Optional[cudaMemcpy3DPeerParms], stream): * """ Copies memory between devices asynchronously. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_217cudaMemcpy3DPeerAsync(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_216cudaMemcpy3DPeerAsync, "cudaMemcpy3DPeerAsync(cudaMemcpy3DPeerParms p: Optional[cudaMemcpy3DPeerParms], stream)\n Copies memory between devices asynchronously.\n\n Perform a 3D memory copy according to the parameters specified in `p`.\n See the definition of the :py:obj:`~.cudaMemcpy3DPeerParms` structure\n for documentation of its parameters.\n\n Parameters\n ----------\n p : :py:obj:`~.cudaMemcpy3DPeerParms`\n Parameters for the memory copy\n stream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n Stream identifier\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorInvalidPitchValue`\n\n See Also\n --------\n :py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpyPeer`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpyPeerAsync`, :py:obj:`~.cudaMemcpy3DPeerAsync`, :py:obj:`~.cuMemcpy3DPeerAsync`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_217cudaMemcpy3DPeerAsync = {"cudaMemcpy3DPeerAsync", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_217cudaMemcpy3DPeerAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_216cudaMemcpy3DPeerAsync}; static PyObject *__pyx_pw_4cuda_6cudart_217cudaMemcpy3DPeerAsync(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_p,&__pyx_n_s_stream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_p)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19091, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19091, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy3DPeerAsync", 1, 2, 2, 1); __PYX_ERR(0, 19091, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemcpy3DPeerAsync") < 0)) __PYX_ERR(0, 19091, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_p = ((struct __pyx_obj_4cuda_6cudart_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, 19091, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaMemcpy3DPeerParms, 1, "p", 0))) __PYX_ERR(0, 19092, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_216cudaMemcpy3DPeerAsync(__pyx_self, __pyx_v_p, __pyx_v_stream); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_216cudaMemcpy3DPeerAsync(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *__pyx_v_p, PyObject *__pyx_v_stream) { cudaStream_t __pyx_v_cstream; PyObject *__pyx_v_pstream = NULL; struct cudaMemcpy3DPeerParms *__pyx_v_cp_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; struct cudaMemcpy3DPeerParms *__pyx_t_6; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__456) __Pyx_RefNannySetupContext("cudaMemcpy3DPeerAsync", 1); __Pyx_TraceCall("cudaMemcpy3DPeerAsync", __pyx_f[0], 19091, 0, __PYX_ERR(0, 19091, __pyx_L1_error)); /* "cuda/cudart.pyx":19116 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_stream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":19117 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":19116 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":19118 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":19119 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19119, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pstream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":19120 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19120, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":19118 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L3; } /* "cuda/cudart.pyx":19122 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * cdef ccudart.cudaMemcpy3DPeerParms* cp_ptr = p._ptr if p != None else NULL */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19122, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 19122, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pstream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":19123 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * cdef ccudart.cudaMemcpy3DPeerParms* cp_ptr = p._ptr if p != None else NULL * err = ccudart.cudaMemcpy3DPeerAsync(cp_ptr, cstream) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19123, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":19124 * pstream = int(cudaStream_t(stream)) * cstream = pstream * cdef ccudart.cudaMemcpy3DPeerParms* cp_ptr = p._ptr if p != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaMemcpy3DPeerAsync(cp_ptr, cstream) * return (cudaError_t(err),) */ __pyx_t_5 = PyObject_RichCompare(((PyObject *)__pyx_v_p), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 19124, __pyx_L1_error) __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 19124, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_1) { __pyx_t_6 = __pyx_v_p->_ptr; } else { __pyx_t_6 = NULL; } __pyx_v_cp_ptr = __pyx_t_6; /* "cuda/cudart.pyx":19125 * cstream = pstream * cdef ccudart.cudaMemcpy3DPeerParms* cp_ptr = p._ptr if p != None else NULL * err = ccudart.cudaMemcpy3DPeerAsync(cp_ptr, cstream) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaMemcpy3DPeerAsync(__pyx_v_cp_ptr, __pyx_v_cstream); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 19125, __pyx_L1_error) __pyx_v_err = __pyx_t_7; /* "cuda/cudart.pyx":19126 * cdef ccudart.cudaMemcpy3DPeerParms* cp_ptr = p._ptr if p != None else NULL * err = ccudart.cudaMemcpy3DPeerAsync(cp_ptr, cstream) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19126, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 19126, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_8}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 19126, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19126, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 19126, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":19091 * return (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_5); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.cudaMemcpy3DPeerAsync", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pstream); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":19128 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemGetInfo(): * """ Gets free and total device memory. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_219cudaMemGetInfo(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_218cudaMemGetInfo, "cudaMemGetInfo()\n Gets free and total device memory.\n\n Returns in `*total` the total amount of memory available to the the\n current context. Returns in `*free` the amount of memory on the device\n that is free according to the OS. CUDA is not guaranteed to be able to\n allocate all of the memory that the OS reports as free. In a multi-\n tenet situation, free estimate returned is prone to race condition\n where a new allocation/free done by a different process or a different\n thread in the same process between the time when free memory was\n estimated and reported, will result in deviation in free value reported\n and actual free memory.\n\n The integrated GPU on Tegra shares memory with CPU and other component\n of the SoC. The free and total values returned by the API excludes the\n SWAP memory space maintained by the OS on some platforms. The OS may\n move some of the memory pages into swap area as the GPU or CPU allocate\n or access memory. See Tegra app note on how to calculate total and free\n memory on Tegra.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorLaunchFailure`\n free : int\n Returned free memory in bytes\n total : int\n Returned total memory in bytes\n\n See Also\n --------\n :py:obj:`~.cuMemGetInfo`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_219cudaMemGetInfo = {"cudaMemGetInfo", (PyCFunction)__pyx_pw_4cuda_6cudart_219cudaMemGetInfo, METH_NOARGS, __pyx_doc_4cuda_6cudart_218cudaMemGetInfo}; static PyObject *__pyx_pw_4cuda_6cudart_219cudaMemGetInfo(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_6cudart_218cudaMemGetInfo(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_218cudaMemGetInfo(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_TraceDeclarations __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; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__457) __Pyx_RefNannySetupContext("cudaMemGetInfo", 1); __Pyx_TraceCall("cudaMemGetInfo", __pyx_f[0], 19128, 0, __PYX_ERR(0, 19128, __pyx_L1_error)); /* "cuda/cudart.pyx":19162 * :py:obj:`~.cuMemGetInfo` * """ * cdef size_t free = 0 # <<<<<<<<<<<<<< * cdef size_t total = 0 * err = ccudart.cudaMemGetInfo(&free, &total) */ __pyx_v_free = 0; /* "cuda/cudart.pyx":19163 * """ * cdef size_t free = 0 * cdef size_t total = 0 # <<<<<<<<<<<<<< * err = ccudart.cudaMemGetInfo(&free, &total) * return (cudaError_t(err), free, total) */ __pyx_v_total = 0; /* "cuda/cudart.pyx":19164 * cdef size_t free = 0 * cdef size_t total = 0 * err = ccudart.cudaMemGetInfo(&free, &total) # <<<<<<<<<<<<<< * return (cudaError_t(err), free, total) * */ __pyx_t_1 = __pyx_f_4cuda_7ccudart_cudaMemGetInfo((&__pyx_v_free), (&__pyx_v_total)); if (unlikely(__pyx_t_1 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 19164, __pyx_L1_error) __pyx_v_err = __pyx_t_1; /* "cuda/cudart.pyx":19165 * cdef size_t total = 0 * err = ccudart.cudaMemGetInfo(&free, &total) * return (cudaError_t(err), free, total) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19165, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19165, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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(0, 19165, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = __Pyx_PyInt_FromSize_t(__pyx_v_free); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19165, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_FromSize_t(__pyx_v_total); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19165, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 19165, __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)) __PYX_ERR(0, 19165, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_3)) __PYX_ERR(0, 19165, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_4)) __PYX_ERR(0, 19165, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_3 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":19128 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemGetInfo(): * """ Gets free and total device memory. */ /* 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.cudart.cudaMemGetInfo", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":19167 * return (cudaError_t(err), free, total) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaArrayGetInfo(array): * """ Gets info about the specified cudaArray. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_221cudaArrayGetInfo(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_220cudaArrayGetInfo, "cudaArrayGetInfo(array)\n Gets info about the specified cudaArray.\n\n Returns in `*desc`, `*extent` and `*flags` respectively, the type,\n shape and flags of `array`.\n\n Any of `*desc`, `*extent` and `*flags` may be specified as NULL.\n\n Parameters\n ----------\n array : :py:obj:`~.cudaArray_t`\n The :py:obj:`~.cudaArray` to get info for\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n desc : :py:obj:`~.cudaChannelFormatDesc`\n Returned array type\n extent : :py:obj:`~.cudaExtent`\n Returned array shape. 2D arrays will have depth of zero\n flags : unsigned int\n Returned array flags\n\n See Also\n --------\n :py:obj:`~.cuArrayGetDescriptor`, :py:obj:`~.cuArray3DGetDescriptor`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_221cudaArrayGetInfo = {"cudaArrayGetInfo", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_221cudaArrayGetInfo, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_220cudaArrayGetInfo}; static PyObject *__pyx_pw_4cuda_6cudart_221cudaArrayGetInfo(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_array_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_array_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19167, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaArrayGetInfo") < 0)) __PYX_ERR(0, 19167, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_array = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaArrayGetInfo", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 19167, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaArrayGetInfo", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_220cudaArrayGetInfo(__pyx_self, __pyx_v_array); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_220cudaArrayGetInfo(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_array) { cudaArray_t __pyx_v_carray; PyObject *__pyx_v_parray = NULL; struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *__pyx_v_desc = 0; struct __pyx_obj_4cuda_6cudart_cudaExtent *__pyx_v_extent = 0; unsigned int __pyx_v_flags; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; cudaError_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__458) __Pyx_RefNannySetupContext("cudaArrayGetInfo", 1); __Pyx_TraceCall("cudaArrayGetInfo", __pyx_f[0], 19167, 0, __PYX_ERR(0, 19167, __pyx_L1_error)); /* "cuda/cudart.pyx":19197 * """ * cdef ccudart.cudaArray_t carray * if array is None: # <<<<<<<<<<<<<< * carray = 0 * elif isinstance(array, (cudaArray_t,)): */ __pyx_t_1 = (__pyx_v_array == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":19198 * cdef ccudart.cudaArray_t carray * if array is None: * carray = 0 # <<<<<<<<<<<<<< * elif isinstance(array, (cudaArray_t,)): * parray = int(array) */ __pyx_v_carray = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":19197 * """ * cdef ccudart.cudaArray_t carray * if array is None: # <<<<<<<<<<<<<< * carray = 0 * elif isinstance(array, (cudaArray_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":19199 * if array is None: * carray = 0 * elif isinstance(array, (cudaArray_t,)): # <<<<<<<<<<<<<< * parray = int(array) * carray = parray */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_array, __pyx_ptype_4cuda_6cudart_cudaArray_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":19200 * carray = 0 * elif isinstance(array, (cudaArray_t,)): * parray = int(array) # <<<<<<<<<<<<<< * carray = parray * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_array); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_parray = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":19201 * elif isinstance(array, (cudaArray_t,)): * parray = int(array) * carray = parray # <<<<<<<<<<<<<< * else: * parray = int(cudaArray_t(array)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_parray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19201, __pyx_L1_error) __pyx_v_carray = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":19199 * if array is None: * carray = 0 * elif isinstance(array, (cudaArray_t,)): # <<<<<<<<<<<<<< * parray = int(array) * carray = parray */ goto __pyx_L3; } /* "cuda/cudart.pyx":19203 * carray = parray * else: * parray = int(cudaArray_t(array)) # <<<<<<<<<<<<<< * carray = parray * cdef cudaChannelFormatDesc desc = cudaChannelFormatDesc() */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_t), __pyx_v_array); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19203, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19203, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_parray = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":19204 * else: * parray = int(cudaArray_t(array)) * carray = parray # <<<<<<<<<<<<<< * cdef cudaChannelFormatDesc desc = cudaChannelFormatDesc() * cdef cudaExtent extent = cudaExtent() */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_parray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19204, __pyx_L1_error) __pyx_v_carray = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":19205 * parray = int(cudaArray_t(array)) * carray = parray * cdef cudaChannelFormatDesc desc = cudaChannelFormatDesc() # <<<<<<<<<<<<<< * cdef cudaExtent extent = cudaExtent() * cdef unsigned int flags = 0 */ __pyx_t_4 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaChannelFormatDesc)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_desc = ((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":19206 * carray = parray * cdef cudaChannelFormatDesc desc = cudaChannelFormatDesc() * cdef cudaExtent extent = cudaExtent() # <<<<<<<<<<<<<< * cdef unsigned int flags = 0 * err = ccudart.cudaArrayGetInfo(desc._ptr, extent._ptr, &flags, carray) */ __pyx_t_4 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExtent)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19206, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_extent = ((struct __pyx_obj_4cuda_6cudart_cudaExtent *)__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":19207 * cdef cudaChannelFormatDesc desc = cudaChannelFormatDesc() * cdef cudaExtent extent = cudaExtent() * cdef unsigned int flags = 0 # <<<<<<<<<<<<<< * err = ccudart.cudaArrayGetInfo(desc._ptr, extent._ptr, &flags, carray) * return (cudaError_t(err), desc, extent, flags) */ __pyx_v_flags = 0; /* "cuda/cudart.pyx":19208 * cdef cudaExtent extent = cudaExtent() * cdef unsigned int flags = 0 * err = ccudart.cudaArrayGetInfo(desc._ptr, extent._ptr, &flags, carray) # <<<<<<<<<<<<<< * return (cudaError_t(err), desc, extent, flags) * */ __pyx_t_5 = __pyx_f_4cuda_7ccudart_cudaArrayGetInfo(((struct cudaChannelFormatDesc *)__pyx_v_desc->_ptr), ((struct cudaExtent *)__pyx_v_extent->_ptr), (&__pyx_v_flags), __pyx_v_carray); if (unlikely(__pyx_t_5 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 19208, __pyx_L1_error) __pyx_v_err = __pyx_t_5; /* "cuda/cudart.pyx":19209 * cdef unsigned int flags = 0 * err = ccudart.cudaArrayGetInfo(desc._ptr, extent._ptr, &flags, carray) * return (cudaError_t(err), desc, extent, flags) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19209, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 19209, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19209, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = __Pyx_PyInt_From_unsigned_int(__pyx_v_flags); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19209, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = PyTuple_New(4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 19209, __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)) __PYX_ERR(0, 19209, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_desc); __Pyx_GIVEREF((PyObject *)__pyx_v_desc); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_desc))) __PYX_ERR(0, 19209, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_extent); __Pyx_GIVEREF((PyObject *)__pyx_v_extent); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 2, ((PyObject *)__pyx_v_extent))) __PYX_ERR(0, 19209, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_2)) __PYX_ERR(0, 19209, __pyx_L1_error); __pyx_t_4 = 0; __pyx_t_2 = 0; __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":19167 * return (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_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":19211 * return (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_6cudart_223cudaArrayGetPlane(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_222cudaArrayGetPlane, "cudaArrayGetPlane(hArray, unsigned int planeIdx)\n Gets a CUDA array plane from a CUDA array.\n\n Returns in `pPlaneArray` a CUDA array that represents a single format\n plane of the CUDA array `hArray`.\n\n If `planeIdx` is greater than the maximum number of planes in this\n array 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\n Note that if the `hArray` has format\n :py:obj:`~.cudaChannelFormatKindNV12`, then passing in 0 for `planeIdx`\n returns a CUDA array of the same size as `hArray` but with one 8-bit\n channel and :py:obj:`~.cudaChannelFormatKindUnsigned` as its format\n kind. If 1 is passed for `planeIdx`, then the returned CUDA array has\n half the height and width of `hArray` with two 8-bit channels and\n :py:obj:`~.cudaChannelFormatKindUnsigned` as its format kind.\n\n Parameters\n ----------\n hArray : :py:obj:`~.cudaArray_t`\n CUDA array\n planeIdx : unsigned int\n Plane index\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue` :py:obj:`~.cudaErrorInvalidResourceHandle`\n pPlaneArray : :py:obj:`~.cudaArray_t`\n Returned CUDA array referenced by the `planeIdx`\n\n See Also\n --------\n :py:obj:`~.cuArrayGetPlane`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_223cudaArrayGetPlane = {"cudaArrayGetPlane", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_223cudaArrayGetPlane, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_222cudaArrayGetPlane}; static PyObject *__pyx_pw_4cuda_6cudart_223cudaArrayGetPlane(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_hArray,&__pyx_n_s_planeIdx,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hArray)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19211, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_planeIdx)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19211, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaArrayGetPlane", 1, 2, 2, 1); __PYX_ERR(0, 19211, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaArrayGetPlane") < 0)) __PYX_ERR(0, 19211, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_hArray = values[0]; __pyx_v_planeIdx = __Pyx_PyInt_As_unsigned_int(values[1]); if (unlikely((__pyx_v_planeIdx == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 19212, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaArrayGetPlane", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 19211, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaArrayGetPlane", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_222cudaArrayGetPlane(__pyx_self, __pyx_v_hArray, __pyx_v_planeIdx); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_222cudaArrayGetPlane(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hArray, unsigned int __pyx_v_planeIdx) { cudaArray_t __pyx_v_chArray; PyObject *__pyx_v_phArray = NULL; struct __pyx_obj_4cuda_6cudart_cudaArray_t *__pyx_v_pPlaneArray = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; cudaError_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__459) __Pyx_RefNannySetupContext("cudaArrayGetPlane", 1); __Pyx_TraceCall("cudaArrayGetPlane", __pyx_f[0], 19211, 0, __PYX_ERR(0, 19211, __pyx_L1_error)); /* "cuda/cudart.pyx":19250 * """ * cdef ccudart.cudaArray_t chArray * if hArray is None: # <<<<<<<<<<<<<< * chArray = 0 * elif isinstance(hArray, (cudaArray_t,)): */ __pyx_t_1 = (__pyx_v_hArray == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":19251 * cdef ccudart.cudaArray_t chArray * if hArray is None: * chArray = 0 # <<<<<<<<<<<<<< * elif isinstance(hArray, (cudaArray_t,)): * phArray = int(hArray) */ __pyx_v_chArray = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":19250 * """ * cdef ccudart.cudaArray_t chArray * if hArray is None: # <<<<<<<<<<<<<< * chArray = 0 * elif isinstance(hArray, (cudaArray_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":19252 * if hArray is None: * chArray = 0 * elif isinstance(hArray, (cudaArray_t,)): # <<<<<<<<<<<<<< * phArray = int(hArray) * chArray = phArray */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_hArray, __pyx_ptype_4cuda_6cudart_cudaArray_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":19253 * chArray = 0 * elif isinstance(hArray, (cudaArray_t,)): * phArray = int(hArray) # <<<<<<<<<<<<<< * chArray = phArray * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_hArray); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19253, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_phArray = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":19254 * elif isinstance(hArray, (cudaArray_t,)): * phArray = int(hArray) * chArray = phArray # <<<<<<<<<<<<<< * else: * phArray = int(cudaArray_t(hArray)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phArray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19254, __pyx_L1_error) __pyx_v_chArray = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":19252 * if hArray is None: * chArray = 0 * elif isinstance(hArray, (cudaArray_t,)): # <<<<<<<<<<<<<< * phArray = int(hArray) * chArray = phArray */ goto __pyx_L3; } /* "cuda/cudart.pyx":19256 * chArray = phArray * else: * phArray = int(cudaArray_t(hArray)) # <<<<<<<<<<<<<< * chArray = phArray * cdef cudaArray_t pPlaneArray = cudaArray_t() */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_t), __pyx_v_hArray); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19256, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19256, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_phArray = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":19257 * else: * phArray = int(cudaArray_t(hArray)) * chArray = phArray # <<<<<<<<<<<<<< * cdef cudaArray_t pPlaneArray = cudaArray_t() * err = ccudart.cudaArrayGetPlane(pPlaneArray._ptr, chArray, planeIdx) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phArray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19257, __pyx_L1_error) __pyx_v_chArray = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":19258 * phArray = int(cudaArray_t(hArray)) * chArray = phArray * cdef cudaArray_t pPlaneArray = cudaArray_t() # <<<<<<<<<<<<<< * err = ccudart.cudaArrayGetPlane(pPlaneArray._ptr, chArray, planeIdx) * return (cudaError_t(err), pPlaneArray) */ __pyx_t_4 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_t)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19258, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_pPlaneArray = ((struct __pyx_obj_4cuda_6cudart_cudaArray_t *)__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":19259 * chArray = phArray * cdef cudaArray_t pPlaneArray = cudaArray_t() * err = ccudart.cudaArrayGetPlane(pPlaneArray._ptr, chArray, planeIdx) # <<<<<<<<<<<<<< * return (cudaError_t(err), pPlaneArray) * */ __pyx_t_5 = __pyx_f_4cuda_7ccudart_cudaArrayGetPlane(((cudaArray_t *)__pyx_v_pPlaneArray->_ptr), __pyx_v_chArray, __pyx_v_planeIdx); if (unlikely(__pyx_t_5 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 19259, __pyx_L1_error) __pyx_v_err = __pyx_t_5; /* "cuda/cudart.pyx":19260 * cdef cudaArray_t pPlaneArray = cudaArray_t() * err = ccudart.cudaArrayGetPlane(pPlaneArray._ptr, chArray, planeIdx) * return (cudaError_t(err), pPlaneArray) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19260, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 19260, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19260, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19260, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 19260, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pPlaneArray); __Pyx_GIVEREF((PyObject *)__pyx_v_pPlaneArray); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_pPlaneArray))) __PYX_ERR(0, 19260, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":19211 * return (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_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":19262 * return (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_6cudart_225cudaArrayGetMemoryRequirements(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_224cudaArrayGetMemoryRequirements, "cudaArrayGetMemoryRequirements(array, int device)\n Returns the memory requirements of a CUDA array.\n\n Returns the memory requirements of a CUDA array in `memoryRequirements`\n If the CUDA array is not allocated with flag\n :py:obj:`~.cudaArrayDeferredMapping` :py:obj:`~.cudaErrorInvalidValue`\n will be returned.\n\n The returned value in :py:obj:`~.cudaArrayMemoryRequirements.size`\n represents the total size of the CUDA array. The returned value in\n :py:obj:`~.cudaArrayMemoryRequirements.alignment` represents the\n alignment necessary for mapping the CUDA array.\n\n Parameters\n ----------\n array : :py:obj:`~.cudaArray_t`\n CUDA array to get the memory requirements of\n device : int\n Device to get the memory requirements for\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess` :py:obj:`~.cudaErrorInvalidValue`\n memoryRequirements : :py:obj:`~.cudaArrayMemoryRequirements`\n Pointer to :py:obj:`~.cudaArrayMemoryRequirements`\n\n See Also\n --------\n :py:obj:`~.cudaMipmappedArrayGetMemoryRequirements`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_225cudaArrayGetMemoryRequirements = {"cudaArrayGetMemoryRequirements", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_225cudaArrayGetMemoryRequirements, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_224cudaArrayGetMemoryRequirements}; static PyObject *__pyx_pw_4cuda_6cudart_225cudaArrayGetMemoryRequirements(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_array_2,&__pyx_n_s_device_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_array_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19262, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_device_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19262, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaArrayGetMemoryRequirements", 1, 2, 2, 1); __PYX_ERR(0, 19262, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaArrayGetMemoryRequirements") < 0)) __PYX_ERR(0, 19262, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_array = values[0]; __pyx_v_device = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 19263, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaArrayGetMemoryRequirements", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 19262, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaArrayGetMemoryRequirements", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_224cudaArrayGetMemoryRequirements(__pyx_self, __pyx_v_array, __pyx_v_device); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_224cudaArrayGetMemoryRequirements(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_array, int __pyx_v_device) { cudaArray_t __pyx_v_carray; PyObject *__pyx_v_parray = NULL; struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements *__pyx_v_memoryRequirements = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; cudaError_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__460) __Pyx_RefNannySetupContext("cudaArrayGetMemoryRequirements", 1); __Pyx_TraceCall("cudaArrayGetMemoryRequirements", __pyx_f[0], 19262, 0, __PYX_ERR(0, 19262, __pyx_L1_error)); /* "cuda/cudart.pyx":19295 * """ * cdef ccudart.cudaArray_t carray * if array is None: # <<<<<<<<<<<<<< * carray = 0 * elif isinstance(array, (cudaArray_t,)): */ __pyx_t_1 = (__pyx_v_array == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":19296 * cdef ccudart.cudaArray_t carray * if array is None: * carray = 0 # <<<<<<<<<<<<<< * elif isinstance(array, (cudaArray_t,)): * parray = int(array) */ __pyx_v_carray = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":19295 * """ * cdef ccudart.cudaArray_t carray * if array is None: # <<<<<<<<<<<<<< * carray = 0 * elif isinstance(array, (cudaArray_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":19297 * if array is None: * carray = 0 * elif isinstance(array, (cudaArray_t,)): # <<<<<<<<<<<<<< * parray = int(array) * carray = parray */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_array, __pyx_ptype_4cuda_6cudart_cudaArray_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":19298 * carray = 0 * elif isinstance(array, (cudaArray_t,)): * parray = int(array) # <<<<<<<<<<<<<< * carray = parray * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_array); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19298, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_parray = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":19299 * elif isinstance(array, (cudaArray_t,)): * parray = int(array) * carray = parray # <<<<<<<<<<<<<< * else: * parray = int(cudaArray_t(array)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_parray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19299, __pyx_L1_error) __pyx_v_carray = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":19297 * if array is None: * carray = 0 * elif isinstance(array, (cudaArray_t,)): # <<<<<<<<<<<<<< * parray = int(array) * carray = parray */ goto __pyx_L3; } /* "cuda/cudart.pyx":19301 * carray = parray * else: * parray = int(cudaArray_t(array)) # <<<<<<<<<<<<<< * carray = parray * cdef cudaArrayMemoryRequirements memoryRequirements = cudaArrayMemoryRequirements() */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_t), __pyx_v_array); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19301, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19301, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_parray = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":19302 * else: * parray = int(cudaArray_t(array)) * carray = parray # <<<<<<<<<<<<<< * cdef cudaArrayMemoryRequirements memoryRequirements = cudaArrayMemoryRequirements() * err = ccudart.cudaArrayGetMemoryRequirements(memoryRequirements._ptr, carray, device) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_parray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19302, __pyx_L1_error) __pyx_v_carray = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":19303 * parray = int(cudaArray_t(array)) * carray = parray * cdef cudaArrayMemoryRequirements memoryRequirements = cudaArrayMemoryRequirements() # <<<<<<<<<<<<<< * err = ccudart.cudaArrayGetMemoryRequirements(memoryRequirements._ptr, carray, device) * return (cudaError_t(err), memoryRequirements) */ __pyx_t_4 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArrayMemoryRequirements)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19303, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_memoryRequirements = ((struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements *)__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":19304 * carray = parray * cdef cudaArrayMemoryRequirements memoryRequirements = cudaArrayMemoryRequirements() * err = ccudart.cudaArrayGetMemoryRequirements(memoryRequirements._ptr, carray, device) # <<<<<<<<<<<<<< * return (cudaError_t(err), memoryRequirements) * */ __pyx_t_5 = __pyx_f_4cuda_7ccudart_cudaArrayGetMemoryRequirements(((struct cudaArrayMemoryRequirements *)__pyx_v_memoryRequirements->_ptr), __pyx_v_carray, __pyx_v_device); if (unlikely(__pyx_t_5 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 19304, __pyx_L1_error) __pyx_v_err = __pyx_t_5; /* "cuda/cudart.pyx":19305 * cdef cudaArrayMemoryRequirements memoryRequirements = cudaArrayMemoryRequirements() * err = ccudart.cudaArrayGetMemoryRequirements(memoryRequirements._ptr, carray, device) * return (cudaError_t(err), memoryRequirements) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19305, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 19305, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19305, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19305, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 19305, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_memoryRequirements); __Pyx_GIVEREF((PyObject *)__pyx_v_memoryRequirements); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_memoryRequirements))) __PYX_ERR(0, 19305, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":19262 * return (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_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":19307 * return (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_6cudart_227cudaMipmappedArrayGetMemoryRequirements(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_226cudaMipmappedArrayGetMemoryRequirements, "cudaMipmappedArrayGetMemoryRequirements(mipmap, int device)\n Returns the memory requirements of a CUDA mipmapped array.\n\n Returns the memory requirements of a CUDA mipmapped array in\n `memoryRequirements` If the CUDA mipmapped array is not allocated with\n flag :py:obj:`~.cudaArrayDeferredMapping`\n :py:obj:`~.cudaErrorInvalidValue` will be returned.\n\n The returned value in :py:obj:`~.cudaArrayMemoryRequirements.size`\n represents the total size of the CUDA mipmapped array. The returned\n value in :py:obj:`~.cudaArrayMemoryRequirements.alignment` represents\n the alignment necessary for mapping the CUDA mipmapped array.\n\n Parameters\n ----------\n mipmap : :py:obj:`~.cudaMipmappedArray_t`\n CUDA mipmapped array to get the memory requirements of\n device : int\n Device to get the memory requirements for\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess` :py:obj:`~.cudaErrorInvalidValue`\n memoryRequirements : :py:obj:`~.cudaArrayMemoryRequirements`\n Pointer to :py:obj:`~.cudaArrayMemoryRequirements`\n\n See Also\n --------\n :py:obj:`~.cudaArrayGetMemoryRequirements`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_227cudaMipmappedArrayGetMemoryRequirements = {"cudaMipmappedArrayGetMemoryRequirements", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_227cudaMipmappedArrayGetMemoryRequirements, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_226cudaMipmappedArrayGetMemoryRequirements}; static PyObject *__pyx_pw_4cuda_6cudart_227cudaMipmappedArrayGetMemoryRequirements(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_mipmap_2,&__pyx_n_s_device_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_mipmap_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19307, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_device_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19307, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMipmappedArrayGetMemoryRequirements", 1, 2, 2, 1); __PYX_ERR(0, 19307, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMipmappedArrayGetMemoryRequirements") < 0)) __PYX_ERR(0, 19307, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_mipmap = values[0]; __pyx_v_device = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 19308, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaMipmappedArrayGetMemoryRequirements", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 19307, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMipmappedArrayGetMemoryRequirements", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_226cudaMipmappedArrayGetMemoryRequirements(__pyx_self, __pyx_v_mipmap, __pyx_v_device); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_226cudaMipmappedArrayGetMemoryRequirements(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_mipmap, int __pyx_v_device) { cudaMipmappedArray_t __pyx_v_cmipmap; PyObject *__pyx_v_pmipmap = NULL; struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements *__pyx_v_memoryRequirements = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; cudaError_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__461) __Pyx_RefNannySetupContext("cudaMipmappedArrayGetMemoryRequirements", 1); __Pyx_TraceCall("cudaMipmappedArrayGetMemoryRequirements", __pyx_f[0], 19307, 0, __PYX_ERR(0, 19307, __pyx_L1_error)); /* "cuda/cudart.pyx":19340 * """ * cdef ccudart.cudaMipmappedArray_t cmipmap * if mipmap is None: # <<<<<<<<<<<<<< * cmipmap = 0 * elif isinstance(mipmap, (cudaMipmappedArray_t,)): */ __pyx_t_1 = (__pyx_v_mipmap == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":19341 * cdef ccudart.cudaMipmappedArray_t cmipmap * if mipmap is None: * cmipmap = 0 # <<<<<<<<<<<<<< * elif isinstance(mipmap, (cudaMipmappedArray_t,)): * pmipmap = int(mipmap) */ __pyx_v_cmipmap = ((cudaMipmappedArray_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":19340 * """ * cdef ccudart.cudaMipmappedArray_t cmipmap * if mipmap is None: # <<<<<<<<<<<<<< * cmipmap = 0 * elif isinstance(mipmap, (cudaMipmappedArray_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":19342 * if mipmap is None: * cmipmap = 0 * elif isinstance(mipmap, (cudaMipmappedArray_t,)): # <<<<<<<<<<<<<< * pmipmap = int(mipmap) * cmipmap = pmipmap */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_mipmap, __pyx_ptype_4cuda_6cudart_cudaMipmappedArray_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":19343 * cmipmap = 0 * elif isinstance(mipmap, (cudaMipmappedArray_t,)): * pmipmap = int(mipmap) # <<<<<<<<<<<<<< * cmipmap = pmipmap * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_mipmap); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19343, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_pmipmap = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":19344 * elif isinstance(mipmap, (cudaMipmappedArray_t,)): * pmipmap = int(mipmap) * cmipmap = pmipmap # <<<<<<<<<<<<<< * else: * pmipmap = int(cudaMipmappedArray_t(mipmap)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pmipmap); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19344, __pyx_L1_error) __pyx_v_cmipmap = ((cudaMipmappedArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":19342 * if mipmap is None: * cmipmap = 0 * elif isinstance(mipmap, (cudaMipmappedArray_t,)): # <<<<<<<<<<<<<< * pmipmap = int(mipmap) * cmipmap = pmipmap */ goto __pyx_L3; } /* "cuda/cudart.pyx":19346 * cmipmap = pmipmap * else: * pmipmap = int(cudaMipmappedArray_t(mipmap)) # <<<<<<<<<<<<<< * cmipmap = pmipmap * cdef cudaArrayMemoryRequirements memoryRequirements = cudaArrayMemoryRequirements() */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMipmappedArray_t), __pyx_v_mipmap); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19346, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19346, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_pmipmap = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":19347 * else: * pmipmap = int(cudaMipmappedArray_t(mipmap)) * cmipmap = pmipmap # <<<<<<<<<<<<<< * cdef cudaArrayMemoryRequirements memoryRequirements = cudaArrayMemoryRequirements() * err = ccudart.cudaMipmappedArrayGetMemoryRequirements(memoryRequirements._ptr, cmipmap, device) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pmipmap); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19347, __pyx_L1_error) __pyx_v_cmipmap = ((cudaMipmappedArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":19348 * pmipmap = int(cudaMipmappedArray_t(mipmap)) * cmipmap = pmipmap * cdef cudaArrayMemoryRequirements memoryRequirements = cudaArrayMemoryRequirements() # <<<<<<<<<<<<<< * err = ccudart.cudaMipmappedArrayGetMemoryRequirements(memoryRequirements._ptr, cmipmap, device) * return (cudaError_t(err), memoryRequirements) */ __pyx_t_4 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArrayMemoryRequirements)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19348, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_memoryRequirements = ((struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements *)__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":19349 * cmipmap = pmipmap * cdef cudaArrayMemoryRequirements memoryRequirements = cudaArrayMemoryRequirements() * err = ccudart.cudaMipmappedArrayGetMemoryRequirements(memoryRequirements._ptr, cmipmap, device) # <<<<<<<<<<<<<< * return (cudaError_t(err), memoryRequirements) * */ __pyx_t_5 = __pyx_f_4cuda_7ccudart_cudaMipmappedArrayGetMemoryRequirements(((struct cudaArrayMemoryRequirements *)__pyx_v_memoryRequirements->_ptr), __pyx_v_cmipmap, __pyx_v_device); if (unlikely(__pyx_t_5 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 19349, __pyx_L1_error) __pyx_v_err = __pyx_t_5; /* "cuda/cudart.pyx":19350 * cdef cudaArrayMemoryRequirements memoryRequirements = cudaArrayMemoryRequirements() * err = ccudart.cudaMipmappedArrayGetMemoryRequirements(memoryRequirements._ptr, cmipmap, device) * return (cudaError_t(err), memoryRequirements) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19350, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 19350, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19350, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19350, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 19350, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_memoryRequirements); __Pyx_GIVEREF((PyObject *)__pyx_v_memoryRequirements); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_memoryRequirements))) __PYX_ERR(0, 19350, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":19307 * return (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_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":19352 * return (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_6cudart_229cudaArrayGetSparseProperties(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_228cudaArrayGetSparseProperties, "cudaArrayGetSparseProperties(array)\n Returns the layout properties of a sparse CUDA array.\n\n Returns 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\n returned.\n\n If the returned value in :py:obj:`~.cudaArraySparseProperties.flags`\n contains :py:obj:`~.cudaArraySparsePropertiesSingleMipTail`, then\n :py:obj:`~.cudaArraySparseProperties.miptailSize` represents the total\n size of the array. Otherwise, it will be zero. Also, the returned value\n in :py:obj:`~.cudaArraySparseProperties.miptailFirstLevel` is always\n zero. Note that the `array` must have been allocated using\n :py:obj:`~.cudaMallocArray` or :py:obj:`~.cudaMalloc3DArray`. For CUDA\n arrays obtained using :py:obj:`~.cudaMipmappedArrayGetLevel`,\n :py:obj:`~.cudaErrorInvalidValue` will be returned. Instead,\n :py:obj:`~.cudaMipmappedArrayGetSparseProperties` must be used to\n obtain the sparse properties of the entire CUDA mipmapped array to\n which `array` belongs to.\n\n Parameters\n ----------\n array : :py:obj:`~.cudaArray_t`\n The CUDA array to get the sparse properties of\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess` :py:obj:`~.cudaErrorInvalidValue`\n sparseProperties : :py:obj:`~.cudaArraySparseProperties`\n Pointer to return the :py:obj:`~.cudaArraySparseProperties`\n\n See Also\n --------\n :py:obj:`~.cudaMipmappedArrayGetSparseProperties`, :py:obj:`~.cuMemMapArrayAsync`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_229cudaArrayGetSparseProperties = {"cudaArrayGetSparseProperties", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_229cudaArrayGetSparseProperties, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_228cudaArrayGetSparseProperties}; static PyObject *__pyx_pw_4cuda_6cudart_229cudaArrayGetSparseProperties(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_array_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_array_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19352, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaArrayGetSparseProperties") < 0)) __PYX_ERR(0, 19352, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_array = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaArrayGetSparseProperties", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 19352, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaArrayGetSparseProperties", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_228cudaArrayGetSparseProperties(__pyx_self, __pyx_v_array); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_228cudaArrayGetSparseProperties(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_array) { cudaArray_t __pyx_v_carray; PyObject *__pyx_v_parray = NULL; struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *__pyx_v_sparseProperties = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; cudaError_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__462) __Pyx_RefNannySetupContext("cudaArrayGetSparseProperties", 1); __Pyx_TraceCall("cudaArrayGetSparseProperties", __pyx_f[0], 19352, 0, __PYX_ERR(0, 19352, __pyx_L1_error)); /* "cuda/cudart.pyx":19391 * """ * cdef ccudart.cudaArray_t carray * if array is None: # <<<<<<<<<<<<<< * carray = 0 * elif isinstance(array, (cudaArray_t,)): */ __pyx_t_1 = (__pyx_v_array == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":19392 * cdef ccudart.cudaArray_t carray * if array is None: * carray = 0 # <<<<<<<<<<<<<< * elif isinstance(array, (cudaArray_t,)): * parray = int(array) */ __pyx_v_carray = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":19391 * """ * cdef ccudart.cudaArray_t carray * if array is None: # <<<<<<<<<<<<<< * carray = 0 * elif isinstance(array, (cudaArray_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":19393 * if array is None: * carray = 0 * elif isinstance(array, (cudaArray_t,)): # <<<<<<<<<<<<<< * parray = int(array) * carray = parray */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_array, __pyx_ptype_4cuda_6cudart_cudaArray_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":19394 * carray = 0 * elif isinstance(array, (cudaArray_t,)): * parray = int(array) # <<<<<<<<<<<<<< * carray = parray * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_array); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19394, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_parray = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":19395 * elif isinstance(array, (cudaArray_t,)): * parray = int(array) * carray = parray # <<<<<<<<<<<<<< * else: * parray = int(cudaArray_t(array)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_parray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19395, __pyx_L1_error) __pyx_v_carray = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":19393 * if array is None: * carray = 0 * elif isinstance(array, (cudaArray_t,)): # <<<<<<<<<<<<<< * parray = int(array) * carray = parray */ goto __pyx_L3; } /* "cuda/cudart.pyx":19397 * carray = parray * else: * parray = int(cudaArray_t(array)) # <<<<<<<<<<<<<< * carray = parray * cdef cudaArraySparseProperties sparseProperties = cudaArraySparseProperties() */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_t), __pyx_v_array); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19397, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19397, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_parray = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":19398 * else: * parray = int(cudaArray_t(array)) * carray = parray # <<<<<<<<<<<<<< * cdef cudaArraySparseProperties sparseProperties = cudaArraySparseProperties() * err = ccudart.cudaArrayGetSparseProperties(sparseProperties._ptr, carray) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_parray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19398, __pyx_L1_error) __pyx_v_carray = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":19399 * parray = int(cudaArray_t(array)) * carray = parray * cdef cudaArraySparseProperties sparseProperties = cudaArraySparseProperties() # <<<<<<<<<<<<<< * err = ccudart.cudaArrayGetSparseProperties(sparseProperties._ptr, carray) * return (cudaError_t(err), sparseProperties) */ __pyx_t_4 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArraySparseProperties)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19399, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_sparseProperties = ((struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *)__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":19400 * carray = parray * cdef cudaArraySparseProperties sparseProperties = cudaArraySparseProperties() * err = ccudart.cudaArrayGetSparseProperties(sparseProperties._ptr, carray) # <<<<<<<<<<<<<< * return (cudaError_t(err), sparseProperties) * */ __pyx_t_5 = __pyx_f_4cuda_7ccudart_cudaArrayGetSparseProperties(((struct cudaArraySparseProperties *)__pyx_v_sparseProperties->_ptr), __pyx_v_carray); if (unlikely(__pyx_t_5 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 19400, __pyx_L1_error) __pyx_v_err = __pyx_t_5; /* "cuda/cudart.pyx":19401 * cdef cudaArraySparseProperties sparseProperties = cudaArraySparseProperties() * err = ccudart.cudaArrayGetSparseProperties(sparseProperties._ptr, carray) * return (cudaError_t(err), sparseProperties) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19401, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 19401, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19401, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19401, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 19401, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_sparseProperties); __Pyx_GIVEREF((PyObject *)__pyx_v_sparseProperties); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_sparseProperties))) __PYX_ERR(0, 19401, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":19352 * return (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_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":19403 * return (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_6cudart_231cudaMipmappedArrayGetSparseProperties(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_230cudaMipmappedArrayGetSparseProperties, "cudaMipmappedArrayGetSparseProperties(mipmap)\n Returns the layout properties of a sparse CUDA mipmapped array.\n\n Returns the sparse array layout properties in `sparseProperties`. If\n the CUDA mipmapped array is not allocated with flag\n :py:obj:`~.cudaArraySparse` :py:obj:`~.cudaErrorInvalidValue` will be\n returned.\n\n For non-layered CUDA mipmapped arrays,\n :py:obj:`~.cudaArraySparseProperties.miptailSize` returns the size of\n the mip tail region. The mip tail region includes all mip levels whose\n width, height or depth is less than that of the tile. For layered CUDA\n mipmapped arrays, if :py:obj:`~.cudaArraySparseProperties.flags`\n contains :py:obj:`~.cudaArraySparsePropertiesSingleMipTail`, then\n :py:obj:`~.cudaArraySparseProperties.miptailSize` specifies the size of\n the mip tail of all layers combined. Otherwise,\n :py:obj:`~.cudaArraySparseProperties.miptailSize` specifies mip tail\n size per layer. The returned value of\n :py:obj:`~.cudaArraySparseProperties.miptailFirstLevel` is valid only\n if :py:obj:`~.cudaArraySparseProperties.miptailSize` is non-zero.\n\n Parameters\n ----------\n mipmap : :py:obj:`~.cudaMipmappedArray_t`\n The CUDA mipmapped array to get the sparse properties of\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess` :py:obj:`~.cudaErrorInvalidValue`\n sparseProperties : :py:obj:`~.cudaArraySparseProperties`\n Pointer to return :py:obj:`~.cudaArraySparseProperties`\n\n See Also\n --------\n :py:obj:`~.cudaArrayGetSparseProperties`, :py:obj:`~.cuMemMapArrayAsync`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_231cudaMipmappedArrayGetSparseProperties = {"cudaMipmappedArrayGetSparseProperties", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_231cudaMipmappedArrayGetSparseProperties, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_230cudaMipmappedArrayGetSparseProperties}; static PyObject *__pyx_pw_4cuda_6cudart_231cudaMipmappedArrayGetSparseProperties(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_mipmap_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_mipmap_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19403, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMipmappedArrayGetSparseProperties") < 0)) __PYX_ERR(0, 19403, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_mipmap = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaMipmappedArrayGetSparseProperties", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 19403, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMipmappedArrayGetSparseProperties", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_230cudaMipmappedArrayGetSparseProperties(__pyx_self, __pyx_v_mipmap); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_230cudaMipmappedArrayGetSparseProperties(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_mipmap) { cudaMipmappedArray_t __pyx_v_cmipmap; PyObject *__pyx_v_pmipmap = NULL; struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *__pyx_v_sparseProperties = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; cudaError_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__463) __Pyx_RefNannySetupContext("cudaMipmappedArrayGetSparseProperties", 1); __Pyx_TraceCall("cudaMipmappedArrayGetSparseProperties", __pyx_f[0], 19403, 0, __PYX_ERR(0, 19403, __pyx_L1_error)); /* "cuda/cudart.pyx":19442 * """ * cdef ccudart.cudaMipmappedArray_t cmipmap * if mipmap is None: # <<<<<<<<<<<<<< * cmipmap = 0 * elif isinstance(mipmap, (cudaMipmappedArray_t,)): */ __pyx_t_1 = (__pyx_v_mipmap == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":19443 * cdef ccudart.cudaMipmappedArray_t cmipmap * if mipmap is None: * cmipmap = 0 # <<<<<<<<<<<<<< * elif isinstance(mipmap, (cudaMipmappedArray_t,)): * pmipmap = int(mipmap) */ __pyx_v_cmipmap = ((cudaMipmappedArray_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":19442 * """ * cdef ccudart.cudaMipmappedArray_t cmipmap * if mipmap is None: # <<<<<<<<<<<<<< * cmipmap = 0 * elif isinstance(mipmap, (cudaMipmappedArray_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":19444 * if mipmap is None: * cmipmap = 0 * elif isinstance(mipmap, (cudaMipmappedArray_t,)): # <<<<<<<<<<<<<< * pmipmap = int(mipmap) * cmipmap = pmipmap */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_mipmap, __pyx_ptype_4cuda_6cudart_cudaMipmappedArray_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":19445 * cmipmap = 0 * elif isinstance(mipmap, (cudaMipmappedArray_t,)): * pmipmap = int(mipmap) # <<<<<<<<<<<<<< * cmipmap = pmipmap * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_mipmap); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19445, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_pmipmap = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":19446 * elif isinstance(mipmap, (cudaMipmappedArray_t,)): * pmipmap = int(mipmap) * cmipmap = pmipmap # <<<<<<<<<<<<<< * else: * pmipmap = int(cudaMipmappedArray_t(mipmap)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pmipmap); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19446, __pyx_L1_error) __pyx_v_cmipmap = ((cudaMipmappedArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":19444 * if mipmap is None: * cmipmap = 0 * elif isinstance(mipmap, (cudaMipmappedArray_t,)): # <<<<<<<<<<<<<< * pmipmap = int(mipmap) * cmipmap = pmipmap */ goto __pyx_L3; } /* "cuda/cudart.pyx":19448 * cmipmap = pmipmap * else: * pmipmap = int(cudaMipmappedArray_t(mipmap)) # <<<<<<<<<<<<<< * cmipmap = pmipmap * cdef cudaArraySparseProperties sparseProperties = cudaArraySparseProperties() */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMipmappedArray_t), __pyx_v_mipmap); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19448, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19448, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_pmipmap = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":19449 * else: * pmipmap = int(cudaMipmappedArray_t(mipmap)) * cmipmap = pmipmap # <<<<<<<<<<<<<< * cdef cudaArraySparseProperties sparseProperties = cudaArraySparseProperties() * err = ccudart.cudaMipmappedArrayGetSparseProperties(sparseProperties._ptr, cmipmap) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pmipmap); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19449, __pyx_L1_error) __pyx_v_cmipmap = ((cudaMipmappedArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":19450 * pmipmap = int(cudaMipmappedArray_t(mipmap)) * cmipmap = pmipmap * cdef cudaArraySparseProperties sparseProperties = cudaArraySparseProperties() # <<<<<<<<<<<<<< * err = ccudart.cudaMipmappedArrayGetSparseProperties(sparseProperties._ptr, cmipmap) * return (cudaError_t(err), sparseProperties) */ __pyx_t_4 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArraySparseProperties)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19450, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_sparseProperties = ((struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *)__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":19451 * cmipmap = pmipmap * cdef cudaArraySparseProperties sparseProperties = cudaArraySparseProperties() * err = ccudart.cudaMipmappedArrayGetSparseProperties(sparseProperties._ptr, cmipmap) # <<<<<<<<<<<<<< * return (cudaError_t(err), sparseProperties) * */ __pyx_t_5 = __pyx_f_4cuda_7ccudart_cudaMipmappedArrayGetSparseProperties(((struct cudaArraySparseProperties *)__pyx_v_sparseProperties->_ptr), __pyx_v_cmipmap); if (unlikely(__pyx_t_5 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 19451, __pyx_L1_error) __pyx_v_err = __pyx_t_5; /* "cuda/cudart.pyx":19452 * cdef cudaArraySparseProperties sparseProperties = cudaArraySparseProperties() * err = ccudart.cudaMipmappedArrayGetSparseProperties(sparseProperties._ptr, cmipmap) * return (cudaError_t(err), sparseProperties) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19452, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 19452, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19452, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19452, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 19452, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_sparseProperties); __Pyx_GIVEREF((PyObject *)__pyx_v_sparseProperties); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_sparseProperties))) __PYX_ERR(0, 19452, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":19403 * return (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_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":19454 * return (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_6cudart_233cudaMemcpy(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_232cudaMemcpy, "cudaMemcpy(dst, src, size_t count, kind: cudaMemcpyKind)\n Copies 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_6cudart_233cudaMemcpy = {"cudaMemcpy", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_233cudaMemcpy, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_232cudaMemcpy}; static PyObject *__pyx_pw_4cuda_6cudart_233cudaMemcpy(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dst_2,&__pyx_n_s_src,&__pyx_n_s_count,&__pyx_n_s_kind_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dst_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19454, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_src)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19454, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy", 1, 4, 4, 1); __PYX_ERR(0, 19454, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_count)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19454, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy", 1, 4, 4, 2); __PYX_ERR(0, 19454, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_kind_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19454, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy", 1, 4, 4, 3); __PYX_ERR(0, 19454, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemcpy") < 0)) __PYX_ERR(0, 19454, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); } __pyx_v_dst = values[0]; __pyx_v_src = values[1]; __pyx_v_count = __Pyx_PyInt_As_size_t(values[2]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 19455, __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, 19454, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 19455, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_232cudaMemcpy(__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; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_232cudaMemcpy(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_cdst = NULL; void *__pyx_v_cdst_ptr; PyObject *__pyx_v_csrc = NULL; void *__pyx_v_csrc_ptr; enum cudaMemcpyKind __pyx_v_ckind; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; enum cudaMemcpyKind __pyx_t_3; cudaError_t __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__464) __Pyx_RefNannySetupContext("cudaMemcpy", 1); __Pyx_TraceCall("cudaMemcpy", __pyx_f[0], 19454, 0, __PYX_ERR(0, 19454, __pyx_L1_error)); /* "cuda/cudart.pyx":19492 * :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` * """ * cdst = utils.HelperInputVoidPtr(dst) # <<<<<<<<<<<<<< * cdef void* cdst_ptr = cdst.cptr * csrc = utils.HelperInputVoidPtr(src) */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_dst); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19492, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_cdst = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":19493 * """ * cdst = utils.HelperInputVoidPtr(dst) * cdef void* cdst_ptr = cdst.cptr # <<<<<<<<<<<<<< * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_cdst, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19493, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19493, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cdst_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":19494 * cdst = utils.HelperInputVoidPtr(dst) * cdef void* cdst_ptr = cdst.cptr * csrc = utils.HelperInputVoidPtr(src) # <<<<<<<<<<<<<< * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_src); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19494, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_csrc = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":19495 * cdef void* cdst_ptr = cdst.cptr * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr # <<<<<<<<<<<<<< * cdef ccudart.cudaMemcpyKind ckind = kind.value * with nogil: */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_csrc, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19495, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19495, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_csrc_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":19496 * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaMemcpy(cdst_ptr, csrc_ptr, count, ckind) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_kind, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19496, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = ((enum cudaMemcpyKind)__Pyx_PyInt_As_enum__cudaMemcpyKind(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19496, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_ckind = __pyx_t_3; /* "cuda/cudart.pyx":19497 * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemcpy(cdst_ptr, csrc_ptr, count, ckind) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":19498 * cdef ccudart.cudaMemcpyKind ckind = kind.value * with nogil: * err = ccudart.cudaMemcpy(cdst_ptr, csrc_ptr, count, ckind) # <<<<<<<<<<<<<< * * return (cudaError_t(err),) */ __pyx_t_4 = __pyx_f_4cuda_7ccudart_cudaMemcpy(__pyx_v_cdst_ptr, __pyx_v_csrc_ptr, __pyx_v_count, __pyx_v_ckind); if (unlikely(__pyx_t_4 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 19498, __pyx_L4_error) __pyx_v_err = __pyx_t_4; } /* "cuda/cudart.pyx":19497 * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemcpy(cdst_ptr, csrc_ptr, count, ckind) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L5; } __pyx_L4_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L5:; } } /* "cuda/cudart.pyx":19500 * err = ccudart.cudaMemcpy(cdst_ptr, csrc_ptr, count, ckind) * * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 19500, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 19500, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19500, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 19500, __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)) __PYX_ERR(0, 19500, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":19454 * return (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_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.cudaMemcpy", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_cdst); __Pyx_XDECREF(__pyx_v_csrc); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":19502 * return (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_6cudart_235cudaMemcpyPeer(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_234cudaMemcpyPeer, "cudaMemcpyPeer(dst, int dstDevice, src, int srcDevice, size_t count)\n Copies memory between two devices.\n\n Copies memory from one device to memory on another device. `dst` is the\n base device pointer of the destination memory and `dstDevice` is the\n destination device. `src` is the base device pointer of the source\n memory and `srcDevice` is the source device. `count` specifies the\n number of bytes to copy.\n\n Note that this function is asynchronous with respect to the host, but\n serialized with respect all pending and future asynchronous work in to\n the current device, `srcDevice`, and `dstDevice` (use\n :py:obj:`~.cudaMemcpyPeerAsync` to avoid this synchronization).\n\n Parameters\n ----------\n dst : Any\n Destination device pointer\n dstDevice : int\n Destination device\n src : Any\n Source device pointer\n srcDevice : int\n Source device\n count : size_t\n Size of memory copy in bytes\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidDevice`\n\n See Also\n --------\n :py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpyPeerAsync`, :py:obj:`~.cudaMemcpy3DPeerAsync`, :py:obj:`~.cuMemcpyPeer`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_235cudaMemcpyPeer = {"cudaMemcpyPeer", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_235cudaMemcpyPeer, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_234cudaMemcpyPeer}; static PyObject *__pyx_pw_4cuda_6cudart_235cudaMemcpyPeer(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dst_2,&__pyx_n_s_dstDevice_2,&__pyx_n_s_src,&__pyx_n_s_srcDevice_2,&__pyx_n_s_count,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dst_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19502, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dstDevice_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19502, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyPeer", 1, 5, 5, 1); __PYX_ERR(0, 19502, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_src)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19502, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyPeer", 1, 5, 5, 2); __PYX_ERR(0, 19502, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_srcDevice_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19502, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyPeer", 1, 5, 5, 3); __PYX_ERR(0, 19502, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_count)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[4]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19502, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyPeer", 1, 5, 5, 4); __PYX_ERR(0, 19502, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemcpyPeer") < 0)) __PYX_ERR(0, 19502, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 5)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); } __pyx_v_dst = values[0]; __pyx_v_dstDevice = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_dstDevice == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 19503, __pyx_L3_error) __pyx_v_src = values[2]; __pyx_v_srcDevice = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_srcDevice == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 19503, __pyx_L3_error) __pyx_v_count = __Pyx_PyInt_As_size_t(values[4]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 19503, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaMemcpyPeer", 1, 5, 5, __pyx_nargs); __PYX_ERR(0, 19502, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemcpyPeer", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_234cudaMemcpyPeer(__pyx_self, __pyx_v_dst, __pyx_v_dstDevice, __pyx_v_src, __pyx_v_srcDevice, __pyx_v_count); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_234cudaMemcpyPeer(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_cdst = NULL; void *__pyx_v_cdst_ptr; PyObject *__pyx_v_csrc = NULL; void *__pyx_v_csrc_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; cudaError_t __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; unsigned int __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__465) __Pyx_RefNannySetupContext("cudaMemcpyPeer", 1); __Pyx_TraceCall("cudaMemcpyPeer", __pyx_f[0], 19502, 0, __PYX_ERR(0, 19502, __pyx_L1_error)); /* "cuda/cudart.pyx":19539 * :py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpyPeerAsync`, :py:obj:`~.cudaMemcpy3DPeerAsync`, :py:obj:`~.cuMemcpyPeer` * """ * cdst = utils.HelperInputVoidPtr(dst) # <<<<<<<<<<<<<< * cdef void* cdst_ptr = cdst.cptr * csrc = utils.HelperInputVoidPtr(src) */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_dst); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19539, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_cdst = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":19540 * """ * cdst = utils.HelperInputVoidPtr(dst) * cdef void* cdst_ptr = cdst.cptr # <<<<<<<<<<<<<< * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_cdst, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19540, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19540, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cdst_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":19541 * cdst = utils.HelperInputVoidPtr(dst) * cdef void* cdst_ptr = cdst.cptr * csrc = utils.HelperInputVoidPtr(src) # <<<<<<<<<<<<<< * cdef void* csrc_ptr = csrc.cptr * with nogil: */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_src); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19541, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_csrc = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":19542 * cdef void* cdst_ptr = cdst.cptr * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaMemcpyPeer(cdst_ptr, dstDevice, csrc_ptr, srcDevice, count) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_csrc, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19542, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19542, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_csrc_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":19543 * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemcpyPeer(cdst_ptr, dstDevice, csrc_ptr, srcDevice, count) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":19544 * cdef void* csrc_ptr = csrc.cptr * with nogil: * err = ccudart.cudaMemcpyPeer(cdst_ptr, dstDevice, csrc_ptr, srcDevice, count) # <<<<<<<<<<<<<< * * return (cudaError_t(err),) */ __pyx_t_3 = __pyx_f_4cuda_7ccudart_cudaMemcpyPeer(__pyx_v_cdst_ptr, __pyx_v_dstDevice, __pyx_v_csrc_ptr, __pyx_v_srcDevice, __pyx_v_count); if (unlikely(__pyx_t_3 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 19544, __pyx_L4_error) __pyx_v_err = __pyx_t_3; } /* "cuda/cudart.pyx":19543 * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemcpyPeer(cdst_ptr, dstDevice, csrc_ptr, srcDevice, count) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L5; } __pyx_L4_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L5:; } } /* "cuda/cudart.pyx":19546 * err = ccudart.cudaMemcpyPeer(cdst_ptr, dstDevice, csrc_ptr, srcDevice, count) * * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19546, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 19546, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_7 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_5}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19546, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19546, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1)) __PYX_ERR(0, 19546, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":19502 * return (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_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("cuda.cudart.cudaMemcpyPeer", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_cdst); __Pyx_XDECREF(__pyx_v_csrc); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":19548 * return (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_6cudart_237cudaMemcpy2D(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_236cudaMemcpy2D, "cudaMemcpy2D(dst, size_t dpitch, src, size_t spitch, size_t width, size_t height, kind: cudaMemcpyKind)\n Copies data between host and device.\n\n Copies a matrix (`height` rows of `width` bytes each) from the memory\n area 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`.\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. `dpitch` and `spitch` are the widths in\n memory in bytes of the 2D arrays pointed to by `dst` and `src`,\n including any padding added to the end of each row. The memory areas\n may not overlap. `width` must not exceed either `dpitch` or `spitch`.\n Calling :py:obj:`~.cudaMemcpy2D()` with `dst` and `src` pointers that\n do not match the direction of the copy results in an undefined\n behavior. :py:obj:`~.cudaMemcpy2D()` returns an error if `dpitch` or\n `spitch` exceeds the maximum allowed.\n\n Parameters\n ----------\n dst : Any\n Destination memory address\n dpitch : size_t\n Pitch of destination memory\n src : Any\n Source memory address\n spitch : size_t\n Pitch of source memory\n width : size_t\n Width of matrix transfer (columns in bytes)\n height : size_t\n Height of matrix transfer (rows)\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:`~.cudaErrorInvalidPitchValue`, :py:obj:`~.cudaErrorInvalidMemcpyDirection`\n\n See Also\n --------""\n :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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_237cudaMemcpy2D = {"cudaMemcpy2D", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_237cudaMemcpy2D, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_236cudaMemcpy2D}; static PyObject *__pyx_pw_4cuda_6cudart_237cudaMemcpy2D(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dst_2,&__pyx_n_s_dpitch,&__pyx_n_s_src,&__pyx_n_s_spitch,&__pyx_n_s_width_2,&__pyx_n_s_height_2,&__pyx_n_s_kind_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 7: values[6] = __Pyx_Arg_FASTCALL(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dst_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19548, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dpitch)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19548, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2D", 1, 7, 7, 1); __PYX_ERR(0, 19548, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_src)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19548, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2D", 1, 7, 7, 2); __PYX_ERR(0, 19548, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_spitch)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19548, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2D", 1, 7, 7, 3); __PYX_ERR(0, 19548, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_width_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[4]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19548, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2D", 1, 7, 7, 4); __PYX_ERR(0, 19548, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_height_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[5]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19548, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2D", 1, 7, 7, 5); __PYX_ERR(0, 19548, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 6: if (likely((values[6] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_kind_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[6]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19548, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2D", 1, 7, 7, 6); __PYX_ERR(0, 19548, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemcpy2D") < 0)) __PYX_ERR(0, 19548, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 7)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5); values[6] = __Pyx_Arg_FASTCALL(__pyx_args, 6); } __pyx_v_dst = values[0]; __pyx_v_dpitch = __Pyx_PyInt_As_size_t(values[1]); if (unlikely((__pyx_v_dpitch == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 19549, __pyx_L3_error) __pyx_v_src = values[2]; __pyx_v_spitch = __Pyx_PyInt_As_size_t(values[3]); if (unlikely((__pyx_v_spitch == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 19549, __pyx_L3_error) __pyx_v_width = __Pyx_PyInt_As_size_t(values[4]); if (unlikely((__pyx_v_width == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 19549, __pyx_L3_error) __pyx_v_height = __Pyx_PyInt_As_size_t(values[5]); if (unlikely((__pyx_v_height == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 19549, __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, 19548, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 19549, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_236cudaMemcpy2D(__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; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_236cudaMemcpy2D(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_cdst = NULL; void *__pyx_v_cdst_ptr; PyObject *__pyx_v_csrc = NULL; void *__pyx_v_csrc_ptr; enum cudaMemcpyKind __pyx_v_ckind; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; enum cudaMemcpyKind __pyx_t_3; cudaError_t __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__466) __Pyx_RefNannySetupContext("cudaMemcpy2D", 1); __Pyx_TraceCall("cudaMemcpy2D", __pyx_f[0], 19548, 0, __PYX_ERR(0, 19548, __pyx_L1_error)); /* "cuda/cudart.pyx":19596 * :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` * """ * cdst = utils.HelperInputVoidPtr(dst) # <<<<<<<<<<<<<< * cdef void* cdst_ptr = cdst.cptr * csrc = utils.HelperInputVoidPtr(src) */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_dst); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19596, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_cdst = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":19597 * """ * cdst = utils.HelperInputVoidPtr(dst) * cdef void* cdst_ptr = cdst.cptr # <<<<<<<<<<<<<< * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_cdst, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19597, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19597, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cdst_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":19598 * cdst = utils.HelperInputVoidPtr(dst) * cdef void* cdst_ptr = cdst.cptr * csrc = utils.HelperInputVoidPtr(src) # <<<<<<<<<<<<<< * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_src); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19598, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_csrc = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":19599 * cdef void* cdst_ptr = cdst.cptr * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr # <<<<<<<<<<<<<< * cdef ccudart.cudaMemcpyKind ckind = kind.value * with nogil: */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_csrc, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19599, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19599, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_csrc_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":19600 * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaMemcpy2D(cdst_ptr, dpitch, csrc_ptr, spitch, width, height, ckind) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_kind, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19600, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = ((enum cudaMemcpyKind)__Pyx_PyInt_As_enum__cudaMemcpyKind(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19600, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_ckind = __pyx_t_3; /* "cuda/cudart.pyx":19601 * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemcpy2D(cdst_ptr, dpitch, csrc_ptr, spitch, width, height, ckind) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":19602 * cdef ccudart.cudaMemcpyKind ckind = kind.value * with nogil: * err = ccudart.cudaMemcpy2D(cdst_ptr, dpitch, csrc_ptr, spitch, width, height, ckind) # <<<<<<<<<<<<<< * * return (cudaError_t(err),) */ __pyx_t_4 = __pyx_f_4cuda_7ccudart_cudaMemcpy2D(__pyx_v_cdst_ptr, __pyx_v_dpitch, __pyx_v_csrc_ptr, __pyx_v_spitch, __pyx_v_width, __pyx_v_height, __pyx_v_ckind); if (unlikely(__pyx_t_4 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 19602, __pyx_L4_error) __pyx_v_err = __pyx_t_4; } /* "cuda/cudart.pyx":19601 * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemcpy2D(cdst_ptr, dpitch, csrc_ptr, spitch, width, height, ckind) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L5; } __pyx_L4_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L5:; } } /* "cuda/cudart.pyx":19604 * err = ccudart.cudaMemcpy2D(cdst_ptr, dpitch, csrc_ptr, spitch, width, height, ckind) * * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 19604, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 19604, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19604, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 19604, __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)) __PYX_ERR(0, 19604, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":19548 * return (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_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.cudaMemcpy2D", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_cdst); __Pyx_XDECREF(__pyx_v_csrc); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":19606 * return (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_6cudart_239cudaMemcpy2DToArray(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_238cudaMemcpy2DToArray, "cudaMemcpy2DToArray(dst, size_t wOffset, size_t hOffset, src, size_t spitch, size_t width, size_t height, kind: cudaMemcpyKind)\n Copies data between host and device.\n\n Copies a matrix (`height` rows of `width` bytes each) from the memory\n area pointed to by `src` to the CUDA array `dst` starting at `hOffset`\n rows and `wOffset` bytes from the upper left corner, where `kind`\n 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`.\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. `spitch` is the width in memory in bytes of\n the 2D array pointed to by `src`, including any padding added to the\n end of each row. `wOffset` + `width` must not exceed the width of the\n CUDA array `dst`. `width` must not exceed `spitch`.\n :py:obj:`~.cudaMemcpy2DToArray()` returns an error if `spitch` exceeds\n the maximum allowed.\n\n Parameters\n ----------\n dst : :py:obj:`~.cudaArray_t`\n Destination memory address\n wOffset : size_t\n Destination starting X offset (columns in bytes)\n hOffset : size_t\n Destination starting Y offset (rows)\n src : Any\n Source memory address\n spitch : size_t\n Pitch of source memory\n width : size_t\n Width of matrix transfer (columns in bytes)\n height : size_t\n Height of matrix transfer (rows)\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:`~.cudaErrorInvalidPitchValue`, :py:obj:`~.cudaErrorInvalidMemcpyDirection`""\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_239cudaMemcpy2DToArray = {"cudaMemcpy2DToArray", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_239cudaMemcpy2DToArray, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_238cudaMemcpy2DToArray}; static PyObject *__pyx_pw_4cuda_6cudart_239cudaMemcpy2DToArray(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dst_2,&__pyx_n_s_wOffset,&__pyx_n_s_hOffset,&__pyx_n_s_src,&__pyx_n_s_spitch,&__pyx_n_s_width_2,&__pyx_n_s_height_2,&__pyx_n_s_kind_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 8: values[7] = __Pyx_Arg_FASTCALL(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = __Pyx_Arg_FASTCALL(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dst_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19606, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_wOffset)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19606, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DToArray", 1, 8, 8, 1); __PYX_ERR(0, 19606, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hOffset)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19606, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DToArray", 1, 8, 8, 2); __PYX_ERR(0, 19606, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_src)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19606, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DToArray", 1, 8, 8, 3); __PYX_ERR(0, 19606, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_spitch)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[4]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19606, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DToArray", 1, 8, 8, 4); __PYX_ERR(0, 19606, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_width_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[5]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19606, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DToArray", 1, 8, 8, 5); __PYX_ERR(0, 19606, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 6: if (likely((values[6] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_height_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[6]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19606, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DToArray", 1, 8, 8, 6); __PYX_ERR(0, 19606, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 7: if (likely((values[7] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_kind_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[7]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19606, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DToArray", 1, 8, 8, 7); __PYX_ERR(0, 19606, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemcpy2DToArray") < 0)) __PYX_ERR(0, 19606, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 8)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5); values[6] = __Pyx_Arg_FASTCALL(__pyx_args, 6); values[7] = __Pyx_Arg_FASTCALL(__pyx_args, 7); } __pyx_v_dst = values[0]; __pyx_v_wOffset = __Pyx_PyInt_As_size_t(values[1]); if (unlikely((__pyx_v_wOffset == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 19607, __pyx_L3_error) __pyx_v_hOffset = __Pyx_PyInt_As_size_t(values[2]); if (unlikely((__pyx_v_hOffset == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 19607, __pyx_L3_error) __pyx_v_src = values[3]; __pyx_v_spitch = __Pyx_PyInt_As_size_t(values[4]); if (unlikely((__pyx_v_spitch == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 19607, __pyx_L3_error) __pyx_v_width = __Pyx_PyInt_As_size_t(values[5]); if (unlikely((__pyx_v_width == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 19607, __pyx_L3_error) __pyx_v_height = __Pyx_PyInt_As_size_t(values[6]); if (unlikely((__pyx_v_height == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 19607, __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, 19606, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 19607, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_238cudaMemcpy2DToArray(__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; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_238cudaMemcpy2DToArray(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_cdst; PyObject *__pyx_v_pdst = NULL; PyObject *__pyx_v_csrc = NULL; void *__pyx_v_csrc_ptr; enum cudaMemcpyKind __pyx_v_ckind; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; enum cudaMemcpyKind __pyx_t_5; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__467) __Pyx_RefNannySetupContext("cudaMemcpy2DToArray", 1); __Pyx_TraceCall("cudaMemcpy2DToArray", __pyx_f[0], 19606, 0, __PYX_ERR(0, 19606, __pyx_L1_error)); /* "cuda/cudart.pyx":19656 * """ * cdef ccudart.cudaArray_t cdst * if dst is None: # <<<<<<<<<<<<<< * cdst = 0 * elif isinstance(dst, (cudaArray_t,)): */ __pyx_t_1 = (__pyx_v_dst == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":19657 * cdef ccudart.cudaArray_t cdst * if dst is None: * cdst = 0 # <<<<<<<<<<<<<< * elif isinstance(dst, (cudaArray_t,)): * pdst = int(dst) */ __pyx_v_cdst = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":19656 * """ * cdef ccudart.cudaArray_t cdst * if dst is None: # <<<<<<<<<<<<<< * cdst = 0 * elif isinstance(dst, (cudaArray_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":19658 * if dst is None: * cdst = 0 * elif isinstance(dst, (cudaArray_t,)): # <<<<<<<<<<<<<< * pdst = int(dst) * cdst = pdst */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_dst, __pyx_ptype_4cuda_6cudart_cudaArray_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":19659 * cdst = 0 * elif isinstance(dst, (cudaArray_t,)): * pdst = int(dst) # <<<<<<<<<<<<<< * cdst = pdst * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_dst); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19659, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_pdst = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":19660 * elif isinstance(dst, (cudaArray_t,)): * pdst = int(dst) * cdst = pdst # <<<<<<<<<<<<<< * else: * pdst = int(cudaArray_t(dst)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pdst); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19660, __pyx_L1_error) __pyx_v_cdst = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":19658 * if dst is None: * cdst = 0 * elif isinstance(dst, (cudaArray_t,)): # <<<<<<<<<<<<<< * pdst = int(dst) * cdst = pdst */ goto __pyx_L3; } /* "cuda/cudart.pyx":19662 * cdst = pdst * else: * pdst = int(cudaArray_t(dst)) # <<<<<<<<<<<<<< * cdst = pdst * csrc = utils.HelperInputVoidPtr(src) */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_t), __pyx_v_dst); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19662, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19662, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_pdst = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":19663 * else: * pdst = int(cudaArray_t(dst)) * cdst = pdst # <<<<<<<<<<<<<< * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pdst); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19663, __pyx_L1_error) __pyx_v_cdst = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":19664 * pdst = int(cudaArray_t(dst)) * cdst = pdst * csrc = utils.HelperInputVoidPtr(src) # <<<<<<<<<<<<<< * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value */ __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_src); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19664, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_csrc = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":19665 * cdst = pdst * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr # <<<<<<<<<<<<<< * cdef ccudart.cudaMemcpyKind ckind = kind.value * with nogil: */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_csrc, __pyx_n_s_cptr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19665, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_4); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19665, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_csrc_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":19666 * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaMemcpy2DToArray(cdst, wOffset, hOffset, csrc_ptr, spitch, width, height, ckind) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_kind, __pyx_n_s_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19666, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = ((enum cudaMemcpyKind)__Pyx_PyInt_As_enum__cudaMemcpyKind(__pyx_t_4)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19666, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_ckind = __pyx_t_5; /* "cuda/cudart.pyx":19667 * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemcpy2DToArray(cdst, wOffset, hOffset, csrc_ptr, spitch, width, height, ckind) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":19668 * cdef ccudart.cudaMemcpyKind ckind = kind.value * with nogil: * err = ccudart.cudaMemcpy2DToArray(cdst, wOffset, hOffset, csrc_ptr, spitch, width, height, ckind) # <<<<<<<<<<<<<< * * return (cudaError_t(err),) */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaMemcpy2DToArray(__pyx_v_cdst, __pyx_v_wOffset, __pyx_v_hOffset, __pyx_v_csrc_ptr, __pyx_v_spitch, __pyx_v_width, __pyx_v_height, __pyx_v_ckind); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 19668, __pyx_L5_error) __pyx_v_err = __pyx_t_6; } /* "cuda/cudart.pyx":19667 * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemcpy2DToArray(cdst, wOffset, hOffset, csrc_ptr, spitch, width, height, ckind) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L6; } __pyx_L5_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L6:; } } /* "cuda/cudart.pyx":19670 * err = ccudart.cudaMemcpy2DToArray(cdst, wOffset, hOffset, csrc_ptr, spitch, width, height, ckind) * * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19670, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 19670, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19670, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19670, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 19670, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":19606 * return (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_4); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaMemcpy2DToArray", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pdst); __Pyx_XDECREF(__pyx_v_csrc); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":19672 * return (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_6cudart_241cudaMemcpy2DFromArray(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_240cudaMemcpy2DFromArray, "cudaMemcpy2DFromArray(dst, size_t dpitch, src, size_t wOffset, size_t hOffset, size_t width, size_t height, kind: cudaMemcpyKind)\n Copies data between host and device.\n\n Copies a matrix (`height` rows of `width` bytes each) from the CUDA\n array `src` starting at `hOffset` rows and `wOffset` bytes from the\n upper left corner to the memory area pointed to by `dst`, where `kind`\n 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`.\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. `dpitch` is the width in memory in bytes of\n the 2D array pointed to by `dst`, including any padding added to the\n end of each row. `wOffset` + `width` must not exceed the width of the\n CUDA array `src`. `width` must not exceed `dpitch`.\n :py:obj:`~.cudaMemcpy2DFromArray()` returns an error if `dpitch`\n exceeds the maximum allowed.\n\n Parameters\n ----------\n dst : Any\n Destination memory address\n dpitch : size_t\n Pitch of destination memory\n src : :py:obj:`~.cudaArray_const_t`\n Source memory address\n wOffset : size_t\n Source starting X offset (columns in bytes)\n hOffset : size_t\n Source starting Y offset (rows)\n width : size_t\n Width of matrix transfer (columns in bytes)\n height : size_t\n Height of matrix transfer (rows)\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:`~.cudaErrorInvalidPitchValue`, :py:obj:`~.cudaErrorInvalidMemcpyDirec""tion`\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_241cudaMemcpy2DFromArray = {"cudaMemcpy2DFromArray", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_241cudaMemcpy2DFromArray, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_240cudaMemcpy2DFromArray}; static PyObject *__pyx_pw_4cuda_6cudart_241cudaMemcpy2DFromArray(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dst_2,&__pyx_n_s_dpitch,&__pyx_n_s_src,&__pyx_n_s_wOffset,&__pyx_n_s_hOffset,&__pyx_n_s_width_2,&__pyx_n_s_height_2,&__pyx_n_s_kind_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 8: values[7] = __Pyx_Arg_FASTCALL(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = __Pyx_Arg_FASTCALL(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dst_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19672, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dpitch)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19672, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DFromArray", 1, 8, 8, 1); __PYX_ERR(0, 19672, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_src)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19672, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DFromArray", 1, 8, 8, 2); __PYX_ERR(0, 19672, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_wOffset)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19672, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DFromArray", 1, 8, 8, 3); __PYX_ERR(0, 19672, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hOffset)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[4]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19672, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DFromArray", 1, 8, 8, 4); __PYX_ERR(0, 19672, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_width_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[5]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19672, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DFromArray", 1, 8, 8, 5); __PYX_ERR(0, 19672, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 6: if (likely((values[6] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_height_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[6]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19672, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DFromArray", 1, 8, 8, 6); __PYX_ERR(0, 19672, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 7: if (likely((values[7] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_kind_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[7]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19672, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DFromArray", 1, 8, 8, 7); __PYX_ERR(0, 19672, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemcpy2DFromArray") < 0)) __PYX_ERR(0, 19672, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 8)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5); values[6] = __Pyx_Arg_FASTCALL(__pyx_args, 6); values[7] = __Pyx_Arg_FASTCALL(__pyx_args, 7); } __pyx_v_dst = values[0]; __pyx_v_dpitch = __Pyx_PyInt_As_size_t(values[1]); if (unlikely((__pyx_v_dpitch == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 19673, __pyx_L3_error) __pyx_v_src = values[2]; __pyx_v_wOffset = __Pyx_PyInt_As_size_t(values[3]); if (unlikely((__pyx_v_wOffset == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 19673, __pyx_L3_error) __pyx_v_hOffset = __Pyx_PyInt_As_size_t(values[4]); if (unlikely((__pyx_v_hOffset == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 19673, __pyx_L3_error) __pyx_v_width = __Pyx_PyInt_As_size_t(values[5]); if (unlikely((__pyx_v_width == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 19673, __pyx_L3_error) __pyx_v_height = __Pyx_PyInt_As_size_t(values[6]); if (unlikely((__pyx_v_height == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 19673, __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, 19672, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 19673, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_240cudaMemcpy2DFromArray(__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; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_240cudaMemcpy2DFromArray(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_csrc; PyObject *__pyx_v_psrc = NULL; PyObject *__pyx_v_cdst = NULL; void *__pyx_v_cdst_ptr; enum cudaMemcpyKind __pyx_v_ckind; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; enum cudaMemcpyKind __pyx_t_5; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__468) __Pyx_RefNannySetupContext("cudaMemcpy2DFromArray", 1); __Pyx_TraceCall("cudaMemcpy2DFromArray", __pyx_f[0], 19672, 0, __PYX_ERR(0, 19672, __pyx_L1_error)); /* "cuda/cudart.pyx":19722 * """ * cdef ccudart.cudaArray_const_t csrc * if src is None: # <<<<<<<<<<<<<< * csrc = 0 * elif isinstance(src, (cudaArray_const_t,)): */ __pyx_t_1 = (__pyx_v_src == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":19723 * cdef ccudart.cudaArray_const_t csrc * if src is None: * csrc = 0 # <<<<<<<<<<<<<< * elif isinstance(src, (cudaArray_const_t,)): * psrc = int(src) */ __pyx_v_csrc = ((cudaArray_const_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":19722 * """ * cdef ccudart.cudaArray_const_t csrc * if src is None: # <<<<<<<<<<<<<< * csrc = 0 * elif isinstance(src, (cudaArray_const_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":19724 * if src is None: * csrc = 0 * elif isinstance(src, (cudaArray_const_t,)): # <<<<<<<<<<<<<< * psrc = int(src) * csrc = psrc */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_src, __pyx_ptype_4cuda_6cudart_cudaArray_const_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":19725 * csrc = 0 * elif isinstance(src, (cudaArray_const_t,)): * psrc = int(src) # <<<<<<<<<<<<<< * csrc = psrc * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_src); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19725, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_psrc = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":19726 * elif isinstance(src, (cudaArray_const_t,)): * psrc = int(src) * csrc = psrc # <<<<<<<<<<<<<< * else: * psrc = int(cudaArray_const_t(src)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_psrc); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19726, __pyx_L1_error) __pyx_v_csrc = ((cudaArray_const_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":19724 * if src is None: * csrc = 0 * elif isinstance(src, (cudaArray_const_t,)): # <<<<<<<<<<<<<< * psrc = int(src) * csrc = psrc */ goto __pyx_L3; } /* "cuda/cudart.pyx":19728 * csrc = psrc * else: * psrc = int(cudaArray_const_t(src)) # <<<<<<<<<<<<<< * csrc = psrc * cdst = utils.HelperInputVoidPtr(dst) */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_const_t), __pyx_v_src); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19728, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19728, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_psrc = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":19729 * else: * psrc = int(cudaArray_const_t(src)) * csrc = psrc # <<<<<<<<<<<<<< * cdst = utils.HelperInputVoidPtr(dst) * cdef void* cdst_ptr = cdst.cptr */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_psrc); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19729, __pyx_L1_error) __pyx_v_csrc = ((cudaArray_const_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":19730 * psrc = int(cudaArray_const_t(src)) * csrc = psrc * cdst = utils.HelperInputVoidPtr(dst) # <<<<<<<<<<<<<< * cdef void* cdst_ptr = cdst.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value */ __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_dst); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19730, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_cdst = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":19731 * csrc = psrc * cdst = utils.HelperInputVoidPtr(dst) * cdef void* cdst_ptr = cdst.cptr # <<<<<<<<<<<<<< * cdef ccudart.cudaMemcpyKind ckind = kind.value * with nogil: */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_cdst, __pyx_n_s_cptr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19731, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_4); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19731, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_cdst_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":19732 * cdst = utils.HelperInputVoidPtr(dst) * cdef void* cdst_ptr = cdst.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaMemcpy2DFromArray(cdst_ptr, dpitch, csrc, wOffset, hOffset, width, height, ckind) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_kind, __pyx_n_s_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19732, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = ((enum cudaMemcpyKind)__Pyx_PyInt_As_enum__cudaMemcpyKind(__pyx_t_4)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19732, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_ckind = __pyx_t_5; /* "cuda/cudart.pyx":19733 * cdef void* cdst_ptr = cdst.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemcpy2DFromArray(cdst_ptr, dpitch, csrc, wOffset, hOffset, width, height, ckind) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":19734 * cdef ccudart.cudaMemcpyKind ckind = kind.value * with nogil: * err = ccudart.cudaMemcpy2DFromArray(cdst_ptr, dpitch, csrc, wOffset, hOffset, width, height, ckind) # <<<<<<<<<<<<<< * * return (cudaError_t(err),) */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaMemcpy2DFromArray(__pyx_v_cdst_ptr, __pyx_v_dpitch, __pyx_v_csrc, __pyx_v_wOffset, __pyx_v_hOffset, __pyx_v_width, __pyx_v_height, __pyx_v_ckind); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 19734, __pyx_L5_error) __pyx_v_err = __pyx_t_6; } /* "cuda/cudart.pyx":19733 * cdef void* cdst_ptr = cdst.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemcpy2DFromArray(cdst_ptr, dpitch, csrc, wOffset, hOffset, width, height, ckind) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L6; } __pyx_L5_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L6:; } } /* "cuda/cudart.pyx":19736 * err = ccudart.cudaMemcpy2DFromArray(cdst_ptr, dpitch, csrc, wOffset, hOffset, width, height, ckind) * * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19736, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 19736, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19736, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19736, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 19736, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":19672 * return (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_4); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaMemcpy2DFromArray", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_psrc); __Pyx_XDECREF(__pyx_v_cdst); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":19738 * return (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_6cudart_243cudaMemcpy2DArrayToArray(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_242cudaMemcpy2DArrayToArray, "cudaMemcpy2DArrayToArray(dst, size_t wOffsetDst, size_t hOffsetDst, src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, kind: cudaMemcpyKind)\n Copies data between host and device.\n\n Copies a matrix (`height` rows of `width` bytes each) from the CUDA\n array `src` starting at `hOffsetSrc` rows and `wOffsetSrc` bytes from\n the upper left corner to the CUDA array `dst` starting at `hOffsetDst`\n rows and `wOffsetDst` bytes from the upper left corner, where `kind`\n 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`.\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. `wOffsetDst` + `width` must not exceed the\n width of the CUDA array `dst`. `wOffsetSrc` + `width` must not exceed\n the width of the CUDA array `src`.\n\n Parameters\n ----------\n dst : :py:obj:`~.cudaArray_t`\n Destination memory address\n wOffsetDst : size_t\n Destination starting X offset (columns in bytes)\n hOffsetDst : size_t\n Destination starting Y offset (rows)\n src : :py:obj:`~.cudaArray_const_t`\n Source memory address\n wOffsetSrc : size_t\n Source starting X offset (columns in bytes)\n hOffsetSrc : size_t\n Source starting Y offset (rows)\n width : size_t\n Width of matrix transfer (columns in bytes)\n height : size_t\n Height of matrix transfer (rows)\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:`~.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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_243cudaMemcpy2DArrayToArray = {"cudaMemcpy2DArrayToArray", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_243cudaMemcpy2DArrayToArray, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_242cudaMemcpy2DArrayToArray}; static PyObject *__pyx_pw_4cuda_6cudart_243cudaMemcpy2DArrayToArray(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dst_2,&__pyx_n_s_wOffsetDst,&__pyx_n_s_hOffsetDst,&__pyx_n_s_src,&__pyx_n_s_wOffsetSrc,&__pyx_n_s_hOffsetSrc,&__pyx_n_s_width_2,&__pyx_n_s_height_2,&__pyx_n_s_kind_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 9: values[8] = __Pyx_Arg_FASTCALL(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = __Pyx_Arg_FASTCALL(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = __Pyx_Arg_FASTCALL(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dst_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19738, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_wOffsetDst)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19738, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DArrayToArray", 1, 9, 9, 1); __PYX_ERR(0, 19738, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hOffsetDst)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19738, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DArrayToArray", 1, 9, 9, 2); __PYX_ERR(0, 19738, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_src)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19738, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DArrayToArray", 1, 9, 9, 3); __PYX_ERR(0, 19738, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_wOffsetSrc)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[4]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19738, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DArrayToArray", 1, 9, 9, 4); __PYX_ERR(0, 19738, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hOffsetSrc)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[5]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19738, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DArrayToArray", 1, 9, 9, 5); __PYX_ERR(0, 19738, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 6: if (likely((values[6] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_width_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[6]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19738, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DArrayToArray", 1, 9, 9, 6); __PYX_ERR(0, 19738, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 7: if (likely((values[7] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_height_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[7]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19738, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DArrayToArray", 1, 9, 9, 7); __PYX_ERR(0, 19738, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 8: if (likely((values[8] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_kind_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[8]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19738, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DArrayToArray", 1, 9, 9, 8); __PYX_ERR(0, 19738, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemcpy2DArrayToArray") < 0)) __PYX_ERR(0, 19738, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 9)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5); values[6] = __Pyx_Arg_FASTCALL(__pyx_args, 6); values[7] = __Pyx_Arg_FASTCALL(__pyx_args, 7); values[8] = __Pyx_Arg_FASTCALL(__pyx_args, 8); } __pyx_v_dst = values[0]; __pyx_v_wOffsetDst = __Pyx_PyInt_As_size_t(values[1]); if (unlikely((__pyx_v_wOffsetDst == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 19739, __pyx_L3_error) __pyx_v_hOffsetDst = __Pyx_PyInt_As_size_t(values[2]); if (unlikely((__pyx_v_hOffsetDst == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 19739, __pyx_L3_error) __pyx_v_src = values[3]; __pyx_v_wOffsetSrc = __Pyx_PyInt_As_size_t(values[4]); if (unlikely((__pyx_v_wOffsetSrc == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 19739, __pyx_L3_error) __pyx_v_hOffsetSrc = __Pyx_PyInt_As_size_t(values[5]); if (unlikely((__pyx_v_hOffsetSrc == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 19739, __pyx_L3_error) __pyx_v_width = __Pyx_PyInt_As_size_t(values[6]); if (unlikely((__pyx_v_width == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 19739, __pyx_L3_error) __pyx_v_height = __Pyx_PyInt_As_size_t(values[7]); if (unlikely((__pyx_v_height == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 19739, __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, 19738, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 19739, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_242cudaMemcpy2DArrayToArray(__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; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_242cudaMemcpy2DArrayToArray(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_csrc; PyObject *__pyx_v_psrc = NULL; cudaArray_t __pyx_v_cdst; PyObject *__pyx_v_pdst = NULL; enum cudaMemcpyKind __pyx_v_ckind; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; enum cudaMemcpyKind __pyx_t_5; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__469) __Pyx_RefNannySetupContext("cudaMemcpy2DArrayToArray", 1); __Pyx_TraceCall("cudaMemcpy2DArrayToArray", __pyx_f[0], 19738, 0, __PYX_ERR(0, 19738, __pyx_L1_error)); /* "cuda/cudart.pyx":19788 * """ * cdef ccudart.cudaArray_const_t csrc * if src is None: # <<<<<<<<<<<<<< * csrc = 0 * elif isinstance(src, (cudaArray_const_t,)): */ __pyx_t_1 = (__pyx_v_src == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":19789 * cdef ccudart.cudaArray_const_t csrc * if src is None: * csrc = 0 # <<<<<<<<<<<<<< * elif isinstance(src, (cudaArray_const_t,)): * psrc = int(src) */ __pyx_v_csrc = ((cudaArray_const_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":19788 * """ * cdef ccudart.cudaArray_const_t csrc * if src is None: # <<<<<<<<<<<<<< * csrc = 0 * elif isinstance(src, (cudaArray_const_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":19790 * if src is None: * csrc = 0 * elif isinstance(src, (cudaArray_const_t,)): # <<<<<<<<<<<<<< * psrc = int(src) * csrc = psrc */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_src, __pyx_ptype_4cuda_6cudart_cudaArray_const_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":19791 * csrc = 0 * elif isinstance(src, (cudaArray_const_t,)): * psrc = int(src) # <<<<<<<<<<<<<< * csrc = psrc * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_src); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19791, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_psrc = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":19792 * elif isinstance(src, (cudaArray_const_t,)): * psrc = int(src) * csrc = psrc # <<<<<<<<<<<<<< * else: * psrc = int(cudaArray_const_t(src)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_psrc); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19792, __pyx_L1_error) __pyx_v_csrc = ((cudaArray_const_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":19790 * if src is None: * csrc = 0 * elif isinstance(src, (cudaArray_const_t,)): # <<<<<<<<<<<<<< * psrc = int(src) * csrc = psrc */ goto __pyx_L3; } /* "cuda/cudart.pyx":19794 * csrc = psrc * else: * psrc = int(cudaArray_const_t(src)) # <<<<<<<<<<<<<< * csrc = psrc * cdef ccudart.cudaArray_t cdst */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_const_t), __pyx_v_src); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19794, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19794, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_psrc = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":19795 * else: * psrc = int(cudaArray_const_t(src)) * csrc = psrc # <<<<<<<<<<<<<< * cdef ccudart.cudaArray_t cdst * if dst is None: */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_psrc); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19795, __pyx_L1_error) __pyx_v_csrc = ((cudaArray_const_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":19797 * csrc = psrc * cdef ccudart.cudaArray_t cdst * if dst is None: # <<<<<<<<<<<<<< * cdst = 0 * elif isinstance(dst, (cudaArray_t,)): */ __pyx_t_1 = (__pyx_v_dst == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":19798 * cdef ccudart.cudaArray_t cdst * if dst is None: * cdst = 0 # <<<<<<<<<<<<<< * elif isinstance(dst, (cudaArray_t,)): * pdst = int(dst) */ __pyx_v_cdst = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":19797 * csrc = psrc * cdef ccudart.cudaArray_t cdst * if dst is None: # <<<<<<<<<<<<<< * cdst = 0 * elif isinstance(dst, (cudaArray_t,)): */ goto __pyx_L4; } /* "cuda/cudart.pyx":19799 * if dst is None: * cdst = 0 * elif isinstance(dst, (cudaArray_t,)): # <<<<<<<<<<<<<< * pdst = int(dst) * cdst = pdst */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_dst, __pyx_ptype_4cuda_6cudart_cudaArray_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":19800 * cdst = 0 * elif isinstance(dst, (cudaArray_t,)): * pdst = int(dst) # <<<<<<<<<<<<<< * cdst = pdst * else: */ __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_dst); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19800, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_pdst = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":19801 * elif isinstance(dst, (cudaArray_t,)): * pdst = int(dst) * cdst = pdst # <<<<<<<<<<<<<< * else: * pdst = int(cudaArray_t(dst)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pdst); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19801, __pyx_L1_error) __pyx_v_cdst = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":19799 * if dst is None: * cdst = 0 * elif isinstance(dst, (cudaArray_t,)): # <<<<<<<<<<<<<< * pdst = int(dst) * cdst = pdst */ goto __pyx_L4; } /* "cuda/cudart.pyx":19803 * cdst = pdst * else: * pdst = int(cudaArray_t(dst)) # <<<<<<<<<<<<<< * cdst = pdst * cdef ccudart.cudaMemcpyKind ckind = kind.value */ /*else*/ { __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_t), __pyx_v_dst); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19803, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19803, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_pdst = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":19804 * else: * pdst = int(cudaArray_t(dst)) * cdst = pdst # <<<<<<<<<<<<<< * cdef ccudart.cudaMemcpyKind ckind = kind.value * err = ccudart.cudaMemcpy2DArrayToArray(cdst, wOffsetDst, hOffsetDst, csrc, wOffsetSrc, hOffsetSrc, width, height, ckind) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pdst); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19804, __pyx_L1_error) __pyx_v_cdst = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L4:; /* "cuda/cudart.pyx":19805 * pdst = int(cudaArray_t(dst)) * cdst = pdst * cdef ccudart.cudaMemcpyKind ckind = kind.value # <<<<<<<<<<<<<< * err = ccudart.cudaMemcpy2DArrayToArray(cdst, wOffsetDst, hOffsetDst, csrc, wOffsetSrc, hOffsetSrc, width, height, ckind) * return (cudaError_t(err),) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_kind, __pyx_n_s_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19805, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = ((enum cudaMemcpyKind)__Pyx_PyInt_As_enum__cudaMemcpyKind(__pyx_t_2)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19805, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_ckind = __pyx_t_5; /* "cuda/cudart.pyx":19806 * cdst = pdst * cdef ccudart.cudaMemcpyKind ckind = kind.value * err = ccudart.cudaMemcpy2DArrayToArray(cdst, wOffsetDst, hOffsetDst, csrc, wOffsetSrc, hOffsetSrc, width, height, ckind) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaMemcpy2DArrayToArray(__pyx_v_cdst, __pyx_v_wOffsetDst, __pyx_v_hOffsetDst, __pyx_v_csrc, __pyx_v_wOffsetSrc, __pyx_v_hOffsetSrc, __pyx_v_width, __pyx_v_height, __pyx_v_ckind); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 19806, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":19807 * cdef ccudart.cudaMemcpyKind ckind = kind.value * err = ccudart.cudaMemcpy2DArrayToArray(cdst, wOffsetDst, hOffsetDst, csrc, wOffsetSrc, hOffsetSrc, width, height, ckind) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19807, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 19807, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19807, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19807, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 19807, __pyx_L1_error); __pyx_t_2 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":19738 * return (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_4); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":19809 * return (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_6cudart_245cudaMemcpyAsync(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_244cudaMemcpyAsync, "cudaMemcpyAsync(dst, src, size_t count, kind: cudaMemcpyKind, stream)\n Copies 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.\n\n The memory areas may not overlap. Calling :py:obj:`~.cudaMemcpyAsync()`\n with `dst` and `src` pointers that do not match the direction of the\n copy results in an undefined behavior.\n\n :py:obj:`~.cudaMemcpyAsync()` is asynchronous with respect to the host,\n so the call may return before the copy is complete. The copy can\n optionally be associated to a stream by passing a non-zero `stream`\n argument. If `kind` is :py:obj:`~.cudaMemcpyHostToDevice` or\n :py:obj:`~.cudaMemcpyDeviceToHost` and the `stream` is non-zero, the\n copy may overlap with operations in other streams.\n\n The device version of this function only handles device to device\n copies and cannot be given local or shared pointers.\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 stream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n Stream identifier\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:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpy2D`, :py:obj:`~.cudaMemcpy2DToArray`, :py:obj:`~.cudaMemcpy2DFromArray`, :py:obj:`~.cudaMemcpy2DArrayToArray`, :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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_245cudaMemcpyAsync = {"cudaMemcpyAsync", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_245cudaMemcpyAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_244cudaMemcpyAsync}; static PyObject *__pyx_pw_4cuda_6cudart_245cudaMemcpyAsync(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dst_2,&__pyx_n_s_src,&__pyx_n_s_count,&__pyx_n_s_kind_2,&__pyx_n_s_stream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dst_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19809, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_src)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19809, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyAsync", 1, 5, 5, 1); __PYX_ERR(0, 19809, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_count)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19809, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyAsync", 1, 5, 5, 2); __PYX_ERR(0, 19809, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_kind_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19809, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyAsync", 1, 5, 5, 3); __PYX_ERR(0, 19809, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[4]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19809, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyAsync", 1, 5, 5, 4); __PYX_ERR(0, 19809, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemcpyAsync") < 0)) __PYX_ERR(0, 19809, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 5)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); } __pyx_v_dst = values[0]; __pyx_v_src = values[1]; __pyx_v_count = __Pyx_PyInt_As_size_t(values[2]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 19810, __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, 19809, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 19810, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_244cudaMemcpyAsync(__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; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_244cudaMemcpyAsync(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_cstream; PyObject *__pyx_v_pstream = NULL; PyObject *__pyx_v_cdst = NULL; void *__pyx_v_cdst_ptr; PyObject *__pyx_v_csrc = NULL; void *__pyx_v_csrc_ptr; enum cudaMemcpyKind __pyx_v_ckind; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; enum cudaMemcpyKind __pyx_t_6; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__470) __Pyx_RefNannySetupContext("cudaMemcpyAsync", 1); __Pyx_TraceCall("cudaMemcpyAsync", __pyx_f[0], 19809, 0, __PYX_ERR(0, 19809, __pyx_L1_error)); /* "cuda/cudart.pyx":19860 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_stream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":19861 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":19860 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":19862 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":19863 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pstream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":19864 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19864, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":19862 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L3; } /* "cuda/cudart.pyx":19866 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * cdst = utils.HelperInputVoidPtr(dst) */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19866, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 19866, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pstream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":19867 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * cdst = utils.HelperInputVoidPtr(dst) * cdef void* cdst_ptr = cdst.cptr */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19867, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":19868 * pstream = int(cudaStream_t(stream)) * cstream = pstream * cdst = utils.HelperInputVoidPtr(dst) # <<<<<<<<<<<<<< * cdef void* cdst_ptr = cdst.cptr * csrc = utils.HelperInputVoidPtr(src) */ __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_dst); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 19868, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_cdst = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":19869 * cstream = pstream * cdst = utils.HelperInputVoidPtr(dst) * cdef void* cdst_ptr = cdst.cptr # <<<<<<<<<<<<<< * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_cdst, __pyx_n_s_cptr); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 19869, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19869, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_cdst_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":19870 * cdst = utils.HelperInputVoidPtr(dst) * cdef void* cdst_ptr = cdst.cptr * csrc = utils.HelperInputVoidPtr(src) # <<<<<<<<<<<<<< * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value */ __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_src); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 19870, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_csrc = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":19871 * cdef void* cdst_ptr = cdst.cptr * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr # <<<<<<<<<<<<<< * cdef ccudart.cudaMemcpyKind ckind = kind.value * with nogil: */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_csrc, __pyx_n_s_cptr); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 19871, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19871, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_csrc_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":19872 * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaMemcpyAsync(cdst_ptr, csrc_ptr, count, ckind, cstream) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_kind, __pyx_n_s_value); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 19872, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = ((enum cudaMemcpyKind)__Pyx_PyInt_As_enum__cudaMemcpyKind(__pyx_t_5)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19872, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_ckind = __pyx_t_6; /* "cuda/cudart.pyx":19873 * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemcpyAsync(cdst_ptr, csrc_ptr, count, ckind, cstream) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":19874 * cdef ccudart.cudaMemcpyKind ckind = kind.value * with nogil: * err = ccudart.cudaMemcpyAsync(cdst_ptr, csrc_ptr, count, ckind, cstream) # <<<<<<<<<<<<<< * * return (cudaError_t(err),) */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaMemcpyAsync(__pyx_v_cdst_ptr, __pyx_v_csrc_ptr, __pyx_v_count, __pyx_v_ckind, __pyx_v_cstream); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 19874, __pyx_L7_error) __pyx_v_err = __pyx_t_7; } /* "cuda/cudart.pyx":19873 * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemcpyAsync(cdst_ptr, csrc_ptr, count, ckind, cstream) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L8; } __pyx_L7_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L8:; } } /* "cuda/cudart.pyx":19876 * err = ccudart.cudaMemcpyAsync(cdst_ptr, csrc_ptr, count, ckind, cstream) * * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19876, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 19876, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_8}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 19876, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19876, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 19876, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":19809 * return (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_5); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.cudaMemcpyAsync", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pstream); __Pyx_XDECREF(__pyx_v_cdst); __Pyx_XDECREF(__pyx_v_csrc); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":19878 * return (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_6cudart_247cudaMemcpyPeerAsync(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_246cudaMemcpyPeerAsync, "cudaMemcpyPeerAsync(dst, int dstDevice, src, int srcDevice, size_t count, stream)\n Copies memory between two devices asynchronously.\n\n Copies memory from one device to memory on another device. `dst` is the\n base device pointer of the destination memory and `dstDevice` is the\n destination device. `src` is the base device pointer of the source\n memory and `srcDevice` is the source device. `count` specifies the\n number of bytes to copy.\n\n Note that this function is asynchronous with respect to the host and\n all work on other devices.\n\n Parameters\n ----------\n dst : Any\n Destination device pointer\n dstDevice : int\n Destination device\n src : Any\n Source device pointer\n srcDevice : int\n Source device\n count : size_t\n Size of memory copy in bytes\n stream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n Stream identifier\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidDevice`\n\n See Also\n --------\n :py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpyPeer`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpy3DPeerAsync`, :py:obj:`~.cuMemcpyPeerAsync`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_247cudaMemcpyPeerAsync = {"cudaMemcpyPeerAsync", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_247cudaMemcpyPeerAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_246cudaMemcpyPeerAsync}; static PyObject *__pyx_pw_4cuda_6cudart_247cudaMemcpyPeerAsync(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dst_2,&__pyx_n_s_dstDevice_2,&__pyx_n_s_src,&__pyx_n_s_srcDevice_2,&__pyx_n_s_count,&__pyx_n_s_stream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 6: values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dst_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19878, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dstDevice_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19878, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyPeerAsync", 1, 6, 6, 1); __PYX_ERR(0, 19878, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_src)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19878, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyPeerAsync", 1, 6, 6, 2); __PYX_ERR(0, 19878, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_srcDevice_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19878, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyPeerAsync", 1, 6, 6, 3); __PYX_ERR(0, 19878, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_count)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[4]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19878, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyPeerAsync", 1, 6, 6, 4); __PYX_ERR(0, 19878, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[5]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19878, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyPeerAsync", 1, 6, 6, 5); __PYX_ERR(0, 19878, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemcpyPeerAsync") < 0)) __PYX_ERR(0, 19878, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 6)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5); } __pyx_v_dst = values[0]; __pyx_v_dstDevice = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_dstDevice == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 19879, __pyx_L3_error) __pyx_v_src = values[2]; __pyx_v_srcDevice = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_srcDevice == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 19879, __pyx_L3_error) __pyx_v_count = __Pyx_PyInt_As_size_t(values[4]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 19879, __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, 19878, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemcpyPeerAsync", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_246cudaMemcpyPeerAsync(__pyx_self, __pyx_v_dst, __pyx_v_dstDevice, __pyx_v_src, __pyx_v_srcDevice, __pyx_v_count, __pyx_v_stream); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_246cudaMemcpyPeerAsync(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_cstream; PyObject *__pyx_v_pstream = NULL; PyObject *__pyx_v_cdst = NULL; void *__pyx_v_cdst_ptr; PyObject *__pyx_v_csrc = NULL; void *__pyx_v_csrc_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__471) __Pyx_RefNannySetupContext("cudaMemcpyPeerAsync", 1); __Pyx_TraceCall("cudaMemcpyPeerAsync", __pyx_f[0], 19878, 0, __PYX_ERR(0, 19878, __pyx_L1_error)); /* "cuda/cudart.pyx":19916 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_stream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":19917 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":19916 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":19918 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":19919 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19919, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pstream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":19920 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19920, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":19918 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L3; } /* "cuda/cudart.pyx":19922 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * cdst = utils.HelperInputVoidPtr(dst) */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19922, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 19922, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pstream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":19923 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * cdst = utils.HelperInputVoidPtr(dst) * cdef void* cdst_ptr = cdst.cptr */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19923, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":19924 * pstream = int(cudaStream_t(stream)) * cstream = pstream * cdst = utils.HelperInputVoidPtr(dst) # <<<<<<<<<<<<<< * cdef void* cdst_ptr = cdst.cptr * csrc = utils.HelperInputVoidPtr(src) */ __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_dst); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 19924, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_cdst = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":19925 * cstream = pstream * cdst = utils.HelperInputVoidPtr(dst) * cdef void* cdst_ptr = cdst.cptr # <<<<<<<<<<<<<< * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_cdst, __pyx_n_s_cptr); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 19925, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19925, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_cdst_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":19926 * cdst = utils.HelperInputVoidPtr(dst) * cdef void* cdst_ptr = cdst.cptr * csrc = utils.HelperInputVoidPtr(src) # <<<<<<<<<<<<<< * cdef void* csrc_ptr = csrc.cptr * with nogil: */ __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_src); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 19926, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_csrc = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":19927 * cdef void* cdst_ptr = cdst.cptr * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaMemcpyPeerAsync(cdst_ptr, dstDevice, csrc_ptr, srcDevice, count, cstream) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_csrc, __pyx_n_s_cptr); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 19927, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19927, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_csrc_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":19928 * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemcpyPeerAsync(cdst_ptr, dstDevice, csrc_ptr, srcDevice, count, cstream) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":19929 * cdef void* csrc_ptr = csrc.cptr * with nogil: * err = ccudart.cudaMemcpyPeerAsync(cdst_ptr, dstDevice, csrc_ptr, srcDevice, count, cstream) # <<<<<<<<<<<<<< * * return (cudaError_t(err),) */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaMemcpyPeerAsync(__pyx_v_cdst_ptr, __pyx_v_dstDevice, __pyx_v_csrc_ptr, __pyx_v_srcDevice, __pyx_v_count, __pyx_v_cstream); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 19929, __pyx_L7_error) __pyx_v_err = __pyx_t_6; } /* "cuda/cudart.pyx":19928 * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemcpyPeerAsync(cdst_ptr, dstDevice, csrc_ptr, srcDevice, count, cstream) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L8; } __pyx_L7_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L8:; } } /* "cuda/cudart.pyx":19931 * err = ccudart.cudaMemcpyPeerAsync(cdst_ptr, dstDevice, csrc_ptr, srcDevice, count, cstream) * * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19931, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 19931, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 19931, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19931, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 19931, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":19878 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaMemcpyPeerAsync", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pstream); __Pyx_XDECREF(__pyx_v_cdst); __Pyx_XDECREF(__pyx_v_csrc); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":19933 * return (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_6cudart_249cudaMemcpy2DAsync(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_248cudaMemcpy2DAsync, "cudaMemcpy2DAsync(dst, size_t dpitch, src, size_t spitch, size_t width, size_t height, kind: cudaMemcpyKind, stream)\n Copies data between host and device.\n\n Copies a matrix (`height` rows of `width` bytes each) from the memory\n area 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`.\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. `dpitch` and `spitch` are the widths in\n memory in bytes of the 2D arrays pointed to by `dst` and `src`,\n including any padding added to the end of each row. The memory areas\n may not overlap. `width` must not exceed either `dpitch` or `spitch`.\n\n Calling :py:obj:`~.cudaMemcpy2DAsync()` with `dst` and `src` pointers\n that do not match the direction of the copy results in an undefined\n behavior. :py:obj:`~.cudaMemcpy2DAsync()` returns an error if `dpitch`\n or `spitch` is greater than the maximum allowed.\n\n :py:obj:`~.cudaMemcpy2DAsync()` is asynchronous with respect to the\n host, so the call may return before the copy is complete. The copy can\n optionally be associated to a stream by passing a non-zero `stream`\n argument. If `kind` is :py:obj:`~.cudaMemcpyHostToDevice` or\n :py:obj:`~.cudaMemcpyDeviceToHost` and `stream` is non-zero, the copy\n may overlap with operations in other streams.\n\n The device version of this function only handles device to device\n copies and cannot be given local or shared pointers.\n\n Parameters\n ----------\n dst : Any\n Destination memory address\n dp""itch : size_t\n Pitch of destination memory\n src : Any\n Source memory address\n spitch : size_t\n Pitch of source memory\n width : size_t\n Width of matrix transfer (columns in bytes)\n height : size_t\n Height of matrix transfer (rows)\n kind : :py:obj:`~.cudaMemcpyKind`\n Type of transfer\n stream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n Stream identifier\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidPitchValue`, :py:obj:`~.cudaErrorInvalidMemcpyDirection`\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_249cudaMemcpy2DAsync = {"cudaMemcpy2DAsync", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_249cudaMemcpy2DAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_248cudaMemcpy2DAsync}; static PyObject *__pyx_pw_4cuda_6cudart_249cudaMemcpy2DAsync(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dst_2,&__pyx_n_s_dpitch,&__pyx_n_s_src,&__pyx_n_s_spitch,&__pyx_n_s_width_2,&__pyx_n_s_height_2,&__pyx_n_s_kind_2,&__pyx_n_s_stream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 8: values[7] = __Pyx_Arg_FASTCALL(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = __Pyx_Arg_FASTCALL(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dst_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19933, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dpitch)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19933, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DAsync", 1, 8, 8, 1); __PYX_ERR(0, 19933, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_src)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19933, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DAsync", 1, 8, 8, 2); __PYX_ERR(0, 19933, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_spitch)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19933, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DAsync", 1, 8, 8, 3); __PYX_ERR(0, 19933, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_width_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[4]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19933, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DAsync", 1, 8, 8, 4); __PYX_ERR(0, 19933, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_height_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[5]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19933, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DAsync", 1, 8, 8, 5); __PYX_ERR(0, 19933, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 6: if (likely((values[6] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_kind_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[6]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19933, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DAsync", 1, 8, 8, 6); __PYX_ERR(0, 19933, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 7: if (likely((values[7] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[7]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19933, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DAsync", 1, 8, 8, 7); __PYX_ERR(0, 19933, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemcpy2DAsync") < 0)) __PYX_ERR(0, 19933, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 8)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5); values[6] = __Pyx_Arg_FASTCALL(__pyx_args, 6); values[7] = __Pyx_Arg_FASTCALL(__pyx_args, 7); } __pyx_v_dst = values[0]; __pyx_v_dpitch = __Pyx_PyInt_As_size_t(values[1]); if (unlikely((__pyx_v_dpitch == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 19934, __pyx_L3_error) __pyx_v_src = values[2]; __pyx_v_spitch = __Pyx_PyInt_As_size_t(values[3]); if (unlikely((__pyx_v_spitch == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 19934, __pyx_L3_error) __pyx_v_width = __Pyx_PyInt_As_size_t(values[4]); if (unlikely((__pyx_v_width == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 19934, __pyx_L3_error) __pyx_v_height = __Pyx_PyInt_As_size_t(values[5]); if (unlikely((__pyx_v_height == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 19934, __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, 19933, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 19934, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_248cudaMemcpy2DAsync(__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; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_248cudaMemcpy2DAsync(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_cstream; PyObject *__pyx_v_pstream = NULL; PyObject *__pyx_v_cdst = NULL; void *__pyx_v_cdst_ptr; PyObject *__pyx_v_csrc = NULL; void *__pyx_v_csrc_ptr; enum cudaMemcpyKind __pyx_v_ckind; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; enum cudaMemcpyKind __pyx_t_6; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__472) __Pyx_RefNannySetupContext("cudaMemcpy2DAsync", 1); __Pyx_TraceCall("cudaMemcpy2DAsync", __pyx_f[0], 19933, 0, __PYX_ERR(0, 19933, __pyx_L1_error)); /* "cuda/cudart.pyx":19995 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_stream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":19996 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":19995 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":19997 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":19998 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19998, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pstream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":19999 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19999, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":19997 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L3; } /* "cuda/cudart.pyx":20001 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * cdst = utils.HelperInputVoidPtr(dst) */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20001, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20001, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pstream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":20002 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * cdst = utils.HelperInputVoidPtr(dst) * cdef void* cdst_ptr = cdst.cptr */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20002, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":20003 * pstream = int(cudaStream_t(stream)) * cstream = pstream * cdst = utils.HelperInputVoidPtr(dst) # <<<<<<<<<<<<<< * cdef void* cdst_ptr = cdst.cptr * csrc = utils.HelperInputVoidPtr(src) */ __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_dst); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20003, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_cdst = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":20004 * cstream = pstream * cdst = utils.HelperInputVoidPtr(dst) * cdef void* cdst_ptr = cdst.cptr # <<<<<<<<<<<<<< * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_cdst, __pyx_n_s_cptr); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20004, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20004, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_cdst_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":20005 * cdst = utils.HelperInputVoidPtr(dst) * cdef void* cdst_ptr = cdst.cptr * csrc = utils.HelperInputVoidPtr(src) # <<<<<<<<<<<<<< * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value */ __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_src); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20005, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_csrc = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":20006 * cdef void* cdst_ptr = cdst.cptr * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr # <<<<<<<<<<<<<< * cdef ccudart.cudaMemcpyKind ckind = kind.value * with nogil: */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_csrc, __pyx_n_s_cptr); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20006, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20006, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_csrc_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":20007 * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaMemcpy2DAsync(cdst_ptr, dpitch, csrc_ptr, spitch, width, height, ckind, cstream) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_kind, __pyx_n_s_value); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20007, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = ((enum cudaMemcpyKind)__Pyx_PyInt_As_enum__cudaMemcpyKind(__pyx_t_5)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20007, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_ckind = __pyx_t_6; /* "cuda/cudart.pyx":20008 * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemcpy2DAsync(cdst_ptr, dpitch, csrc_ptr, spitch, width, height, ckind, cstream) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":20009 * cdef ccudart.cudaMemcpyKind ckind = kind.value * with nogil: * err = ccudart.cudaMemcpy2DAsync(cdst_ptr, dpitch, csrc_ptr, spitch, width, height, ckind, cstream) # <<<<<<<<<<<<<< * * return (cudaError_t(err),) */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaMemcpy2DAsync(__pyx_v_cdst_ptr, __pyx_v_dpitch, __pyx_v_csrc_ptr, __pyx_v_spitch, __pyx_v_width, __pyx_v_height, __pyx_v_ckind, __pyx_v_cstream); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 20009, __pyx_L7_error) __pyx_v_err = __pyx_t_7; } /* "cuda/cudart.pyx":20008 * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemcpy2DAsync(cdst_ptr, dpitch, csrc_ptr, spitch, width, height, ckind, cstream) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L8; } __pyx_L7_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L8:; } } /* "cuda/cudart.pyx":20011 * err = ccudart.cudaMemcpy2DAsync(cdst_ptr, dpitch, csrc_ptr, spitch, width, height, ckind, cstream) * * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20011, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 20011, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_8}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20011, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20011, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 20011, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":19933 * return (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_5); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.cudaMemcpy2DAsync", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pstream); __Pyx_XDECREF(__pyx_v_cdst); __Pyx_XDECREF(__pyx_v_csrc); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":20013 * return (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_6cudart_251cudaMemcpy2DToArrayAsync(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_250cudaMemcpy2DToArrayAsync, "cudaMemcpy2DToArrayAsync(dst, size_t wOffset, size_t hOffset, src, size_t spitch, size_t width, size_t height, kind: cudaMemcpyKind, stream)\n Copies data between host and device.\n\n Copies a matrix (`height` rows of `width` bytes each) from the memory\n area pointed to by `src` to the CUDA array `dst` starting at `hOffset`\n rows and `wOffset` bytes from the upper left corner, where `kind`\n 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`.\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. `spitch` is the width in memory in bytes of\n the 2D array pointed to by `src`, including any padding added to the\n end of each row. `wOffset` + `width` must not exceed the width of the\n CUDA array `dst`. `width` must not exceed `spitch`.\n :py:obj:`~.cudaMemcpy2DToArrayAsync()` returns an error if `spitch`\n exceeds the maximum allowed.\n\n :py:obj:`~.cudaMemcpy2DToArrayAsync()` is asynchronous with respect to\n the host, so the call may return before the copy is complete. The copy\n can optionally be associated to a stream by passing a non-zero `stream`\n argument. If `kind` is :py:obj:`~.cudaMemcpyHostToDevice` or\n :py:obj:`~.cudaMemcpyDeviceToHost` and `stream` is non-zero, the copy\n may overlap with operations in other streams.\n\n :py:obj:`~.cudaMemcpy2DFromArrayAsync`,\n :py:obj:`~.cudaMemcpyToSymbolAsync`,\n :py:obj:`~.cudaMemcpyFromSymbolAsync`, :py:obj:`~.cuMemcpy2DAsync`\n\n Parameters\n ----------\n dst : :py:obj:`~.cudaArray_t`\n Destination memory address\n wOffset : size_t\n Destination ""starting X offset (columns in bytes)\n hOffset : size_t\n Destination starting Y offset (rows)\n src : Any\n Source memory address\n spitch : size_t\n Pitch of source memory\n width : size_t\n Width of matrix transfer (columns in bytes)\n height : size_t\n Height of matrix transfer (rows)\n kind : :py:obj:`~.cudaMemcpyKind`\n Type of transfer\n stream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n Stream identifier\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidPitchValue`, :py:obj:`~.cudaErrorInvalidMemcpyDirection`\n\n See 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`,\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_251cudaMemcpy2DToArrayAsync = {"cudaMemcpy2DToArrayAsync", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_251cudaMemcpy2DToArrayAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_250cudaMemcpy2DToArrayAsync}; static PyObject *__pyx_pw_4cuda_6cudart_251cudaMemcpy2DToArrayAsync(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dst_2,&__pyx_n_s_wOffset,&__pyx_n_s_hOffset,&__pyx_n_s_src,&__pyx_n_s_spitch,&__pyx_n_s_width_2,&__pyx_n_s_height_2,&__pyx_n_s_kind_2,&__pyx_n_s_stream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 9: values[8] = __Pyx_Arg_FASTCALL(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = __Pyx_Arg_FASTCALL(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = __Pyx_Arg_FASTCALL(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dst_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20013, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_wOffset)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20013, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DToArrayAsync", 1, 9, 9, 1); __PYX_ERR(0, 20013, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hOffset)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20013, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DToArrayAsync", 1, 9, 9, 2); __PYX_ERR(0, 20013, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_src)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20013, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DToArrayAsync", 1, 9, 9, 3); __PYX_ERR(0, 20013, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_spitch)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[4]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20013, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DToArrayAsync", 1, 9, 9, 4); __PYX_ERR(0, 20013, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_width_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[5]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20013, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DToArrayAsync", 1, 9, 9, 5); __PYX_ERR(0, 20013, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 6: if (likely((values[6] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_height_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[6]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20013, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DToArrayAsync", 1, 9, 9, 6); __PYX_ERR(0, 20013, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 7: if (likely((values[7] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_kind_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[7]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20013, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DToArrayAsync", 1, 9, 9, 7); __PYX_ERR(0, 20013, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 8: if (likely((values[8] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[8]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20013, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DToArrayAsync", 1, 9, 9, 8); __PYX_ERR(0, 20013, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemcpy2DToArrayAsync") < 0)) __PYX_ERR(0, 20013, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 9)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5); values[6] = __Pyx_Arg_FASTCALL(__pyx_args, 6); values[7] = __Pyx_Arg_FASTCALL(__pyx_args, 7); values[8] = __Pyx_Arg_FASTCALL(__pyx_args, 8); } __pyx_v_dst = values[0]; __pyx_v_wOffset = __Pyx_PyInt_As_size_t(values[1]); if (unlikely((__pyx_v_wOffset == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 20014, __pyx_L3_error) __pyx_v_hOffset = __Pyx_PyInt_As_size_t(values[2]); if (unlikely((__pyx_v_hOffset == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 20014, __pyx_L3_error) __pyx_v_src = values[3]; __pyx_v_spitch = __Pyx_PyInt_As_size_t(values[4]); if (unlikely((__pyx_v_spitch == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 20014, __pyx_L3_error) __pyx_v_width = __Pyx_PyInt_As_size_t(values[5]); if (unlikely((__pyx_v_width == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 20014, __pyx_L3_error) __pyx_v_height = __Pyx_PyInt_As_size_t(values[6]); if (unlikely((__pyx_v_height == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 20014, __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, 20013, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 20014, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_250cudaMemcpy2DToArrayAsync(__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; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_250cudaMemcpy2DToArrayAsync(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_cstream; PyObject *__pyx_v_pstream = NULL; cudaArray_t __pyx_v_cdst; PyObject *__pyx_v_pdst = NULL; PyObject *__pyx_v_csrc = NULL; void *__pyx_v_csrc_ptr; enum cudaMemcpyKind __pyx_v_ckind; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; enum cudaMemcpyKind __pyx_t_6; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__473) __Pyx_RefNannySetupContext("cudaMemcpy2DToArrayAsync", 1); __Pyx_TraceCall("cudaMemcpy2DToArrayAsync", __pyx_f[0], 20013, 0, __PYX_ERR(0, 20013, __pyx_L1_error)); /* "cuda/cudart.pyx":20076 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_stream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":20077 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":20076 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":20078 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":20079 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20079, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pstream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":20080 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20080, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":20078 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L3; } /* "cuda/cudart.pyx":20082 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * cdef ccudart.cudaArray_t cdst */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20082, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20082, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pstream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":20083 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * cdef ccudart.cudaArray_t cdst * if dst is None: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20083, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":20085 * cstream = pstream * cdef ccudart.cudaArray_t cdst * if dst is None: # <<<<<<<<<<<<<< * cdst = 0 * elif isinstance(dst, (cudaArray_t,)): */ __pyx_t_1 = (__pyx_v_dst == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":20086 * cdef ccudart.cudaArray_t cdst * if dst is None: * cdst = 0 # <<<<<<<<<<<<<< * elif isinstance(dst, (cudaArray_t,)): * pdst = int(dst) */ __pyx_v_cdst = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":20085 * cstream = pstream * cdef ccudart.cudaArray_t cdst * if dst is None: # <<<<<<<<<<<<<< * cdst = 0 * elif isinstance(dst, (cudaArray_t,)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":20087 * if dst is None: * cdst = 0 * elif isinstance(dst, (cudaArray_t,)): # <<<<<<<<<<<<<< * pdst = int(dst) * cdst = pdst */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_dst, __pyx_ptype_4cuda_6cudart_cudaArray_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":20088 * cdst = 0 * elif isinstance(dst, (cudaArray_t,)): * pdst = int(dst) # <<<<<<<<<<<<<< * cdst = pdst * else: */ __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_v_dst); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20088, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pdst = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":20089 * elif isinstance(dst, (cudaArray_t,)): * pdst = int(dst) * cdst = pdst # <<<<<<<<<<<<<< * else: * pdst = int(cudaArray_t(dst)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pdst); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20089, __pyx_L1_error) __pyx_v_cdst = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":20087 * if dst is None: * cdst = 0 * elif isinstance(dst, (cudaArray_t,)): # <<<<<<<<<<<<<< * pdst = int(dst) * cdst = pdst */ goto __pyx_L6; } /* "cuda/cudart.pyx":20091 * cdst = pdst * else: * pdst = int(cudaArray_t(dst)) # <<<<<<<<<<<<<< * cdst = pdst * csrc = utils.HelperInputVoidPtr(src) */ /*else*/ { __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_t), __pyx_v_dst); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20091, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20091, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_pdst = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":20092 * else: * pdst = int(cudaArray_t(dst)) * cdst = pdst # <<<<<<<<<<<<<< * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pdst); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20092, __pyx_L1_error) __pyx_v_cdst = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L6:; /* "cuda/cudart.pyx":20093 * pdst = int(cudaArray_t(dst)) * cdst = pdst * csrc = utils.HelperInputVoidPtr(src) # <<<<<<<<<<<<<< * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value */ __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_src); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20093, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_csrc = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":20094 * cdst = pdst * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr # <<<<<<<<<<<<<< * cdef ccudart.cudaMemcpyKind ckind = kind.value * with nogil: */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_csrc, __pyx_n_s_cptr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20094, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_3); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20094, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_csrc_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":20095 * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaMemcpy2DToArrayAsync(cdst, wOffset, hOffset, csrc_ptr, spitch, width, height, ckind, cstream) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_kind, __pyx_n_s_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20095, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = ((enum cudaMemcpyKind)__Pyx_PyInt_As_enum__cudaMemcpyKind(__pyx_t_3)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20095, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_ckind = __pyx_t_6; /* "cuda/cudart.pyx":20096 * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemcpy2DToArrayAsync(cdst, wOffset, hOffset, csrc_ptr, spitch, width, height, ckind, cstream) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":20097 * cdef ccudart.cudaMemcpyKind ckind = kind.value * with nogil: * err = ccudart.cudaMemcpy2DToArrayAsync(cdst, wOffset, hOffset, csrc_ptr, spitch, width, height, ckind, cstream) # <<<<<<<<<<<<<< * * return (cudaError_t(err),) */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaMemcpy2DToArrayAsync(__pyx_v_cdst, __pyx_v_wOffset, __pyx_v_hOffset, __pyx_v_csrc_ptr, __pyx_v_spitch, __pyx_v_width, __pyx_v_height, __pyx_v_ckind, __pyx_v_cstream); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 20097, __pyx_L8_error) __pyx_v_err = __pyx_t_7; } /* "cuda/cudart.pyx":20096 * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemcpy2DToArrayAsync(cdst, wOffset, hOffset, csrc_ptr, spitch, width, height, ckind, cstream) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L9; } __pyx_L8_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L9:; } } /* "cuda/cudart.pyx":20099 * err = ccudart.cudaMemcpy2DToArrayAsync(cdst, wOffset, hOffset, csrc_ptr, spitch, width, height, ckind, cstream) * * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20099, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_8 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 20099, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_8}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20099, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20099, __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)) __PYX_ERR(0, 20099, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":20013 * return (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_5); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.cudaMemcpy2DToArrayAsync", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pstream); __Pyx_XDECREF(__pyx_v_pdst); __Pyx_XDECREF(__pyx_v_csrc); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":20101 * return (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_6cudart_253cudaMemcpy2DFromArrayAsync(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_252cudaMemcpy2DFromArrayAsync, "cudaMemcpy2DFromArrayAsync(dst, size_t dpitch, src, size_t wOffset, size_t hOffset, size_t width, size_t height, kind: cudaMemcpyKind, stream)\n Copies data between host and device.\n\n Copies a matrix (`height` rows of `width` bytes each) from the CUDA\n array `src` starting at `hOffset` rows and `wOffset` bytes from the\n upper left corner to the memory area pointed to by `dst`, where `kind`\n 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`.\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. `dpitch` is the width in memory in bytes of\n the 2D array pointed to by `dst`, including any padding added to the\n end of each row. `wOffset` + `width` must not exceed the width of the\n CUDA array `src`. `width` must not exceed `dpitch`.\n :py:obj:`~.cudaMemcpy2DFromArrayAsync()` returns an error if `dpitch`\n exceeds the maximum allowed.\n\n :py:obj:`~.cudaMemcpy2DFromArrayAsync()` is asynchronous with respect\n to the host, so the call may return before the copy is complete. The\n copy 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\n may overlap with operations in other streams.\n\n :py:obj:`~.cudaMemcpyToSymbolAsync`,\n :py:obj:`~.cudaMemcpyFromSymbolAsync`, :py:obj:`~.cuMemcpy2DAsync`\n\n Parameters\n ----------\n dst : Any\n Destination memory address\n dpitch : size_t\n Pitch of destination memory\n src : :py:obj:`~.cudaArray_const_t`""\n Source memory address\n wOffset : size_t\n Source starting X offset (columns in bytes)\n hOffset : size_t\n Source starting Y offset (rows)\n width : size_t\n Width of matrix transfer (columns in bytes)\n height : size_t\n Height of matrix transfer (rows)\n kind : :py:obj:`~.cudaMemcpyKind`\n Type of transfer\n stream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n Stream identifier\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidPitchValue`, :py:obj:`~.cudaErrorInvalidMemcpyDirection`\n\n See 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`,\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_253cudaMemcpy2DFromArrayAsync = {"cudaMemcpy2DFromArrayAsync", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_253cudaMemcpy2DFromArrayAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_252cudaMemcpy2DFromArrayAsync}; static PyObject *__pyx_pw_4cuda_6cudart_253cudaMemcpy2DFromArrayAsync(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dst_2,&__pyx_n_s_dpitch,&__pyx_n_s_src,&__pyx_n_s_wOffset,&__pyx_n_s_hOffset,&__pyx_n_s_width_2,&__pyx_n_s_height_2,&__pyx_n_s_kind_2,&__pyx_n_s_stream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 9: values[8] = __Pyx_Arg_FASTCALL(__pyx_args, 8); CYTHON_FALLTHROUGH; case 8: values[7] = __Pyx_Arg_FASTCALL(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = __Pyx_Arg_FASTCALL(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dst_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20101, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dpitch)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20101, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DFromArrayAsync", 1, 9, 9, 1); __PYX_ERR(0, 20101, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_src)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20101, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DFromArrayAsync", 1, 9, 9, 2); __PYX_ERR(0, 20101, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_wOffset)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20101, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DFromArrayAsync", 1, 9, 9, 3); __PYX_ERR(0, 20101, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hOffset)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[4]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20101, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DFromArrayAsync", 1, 9, 9, 4); __PYX_ERR(0, 20101, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_width_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[5]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20101, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DFromArrayAsync", 1, 9, 9, 5); __PYX_ERR(0, 20101, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 6: if (likely((values[6] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_height_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[6]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20101, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DFromArrayAsync", 1, 9, 9, 6); __PYX_ERR(0, 20101, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 7: if (likely((values[7] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_kind_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[7]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20101, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DFromArrayAsync", 1, 9, 9, 7); __PYX_ERR(0, 20101, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 8: if (likely((values[8] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[8]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20101, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DFromArrayAsync", 1, 9, 9, 8); __PYX_ERR(0, 20101, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemcpy2DFromArrayAsync") < 0)) __PYX_ERR(0, 20101, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 9)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5); values[6] = __Pyx_Arg_FASTCALL(__pyx_args, 6); values[7] = __Pyx_Arg_FASTCALL(__pyx_args, 7); values[8] = __Pyx_Arg_FASTCALL(__pyx_args, 8); } __pyx_v_dst = values[0]; __pyx_v_dpitch = __Pyx_PyInt_As_size_t(values[1]); if (unlikely((__pyx_v_dpitch == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 20102, __pyx_L3_error) __pyx_v_src = values[2]; __pyx_v_wOffset = __Pyx_PyInt_As_size_t(values[3]); if (unlikely((__pyx_v_wOffset == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 20102, __pyx_L3_error) __pyx_v_hOffset = __Pyx_PyInt_As_size_t(values[4]); if (unlikely((__pyx_v_hOffset == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 20102, __pyx_L3_error) __pyx_v_width = __Pyx_PyInt_As_size_t(values[5]); if (unlikely((__pyx_v_width == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 20102, __pyx_L3_error) __pyx_v_height = __Pyx_PyInt_As_size_t(values[6]); if (unlikely((__pyx_v_height == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 20102, __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, 20101, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 20102, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_252cudaMemcpy2DFromArrayAsync(__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; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_252cudaMemcpy2DFromArrayAsync(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_cstream; PyObject *__pyx_v_pstream = NULL; cudaArray_const_t __pyx_v_csrc; PyObject *__pyx_v_psrc = NULL; PyObject *__pyx_v_cdst = NULL; void *__pyx_v_cdst_ptr; enum cudaMemcpyKind __pyx_v_ckind; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; enum cudaMemcpyKind __pyx_t_6; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__474) __Pyx_RefNannySetupContext("cudaMemcpy2DFromArrayAsync", 1); __Pyx_TraceCall("cudaMemcpy2DFromArrayAsync", __pyx_f[0], 20101, 0, __PYX_ERR(0, 20101, __pyx_L1_error)); /* "cuda/cudart.pyx":20163 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_stream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":20164 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":20163 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":20165 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":20166 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pstream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":20167 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20167, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":20165 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L3; } /* "cuda/cudart.pyx":20169 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * cdef ccudart.cudaArray_const_t csrc */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20169, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20169, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pstream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":20170 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * cdef ccudart.cudaArray_const_t csrc * if src is None: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20170, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":20172 * cstream = pstream * cdef ccudart.cudaArray_const_t csrc * if src is None: # <<<<<<<<<<<<<< * csrc = 0 * elif isinstance(src, (cudaArray_const_t,)): */ __pyx_t_1 = (__pyx_v_src == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":20173 * cdef ccudart.cudaArray_const_t csrc * if src is None: * csrc = 0 # <<<<<<<<<<<<<< * elif isinstance(src, (cudaArray_const_t,)): * psrc = int(src) */ __pyx_v_csrc = ((cudaArray_const_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":20172 * cstream = pstream * cdef ccudart.cudaArray_const_t csrc * if src is None: # <<<<<<<<<<<<<< * csrc = 0 * elif isinstance(src, (cudaArray_const_t,)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":20174 * if src is None: * csrc = 0 * elif isinstance(src, (cudaArray_const_t,)): # <<<<<<<<<<<<<< * psrc = int(src) * csrc = psrc */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_src, __pyx_ptype_4cuda_6cudart_cudaArray_const_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":20175 * csrc = 0 * elif isinstance(src, (cudaArray_const_t,)): * psrc = int(src) # <<<<<<<<<<<<<< * csrc = psrc * else: */ __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_v_src); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20175, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_psrc = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":20176 * elif isinstance(src, (cudaArray_const_t,)): * psrc = int(src) * csrc = psrc # <<<<<<<<<<<<<< * else: * psrc = int(cudaArray_const_t(src)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_psrc); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20176, __pyx_L1_error) __pyx_v_csrc = ((cudaArray_const_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":20174 * if src is None: * csrc = 0 * elif isinstance(src, (cudaArray_const_t,)): # <<<<<<<<<<<<<< * psrc = int(src) * csrc = psrc */ goto __pyx_L6; } /* "cuda/cudart.pyx":20178 * csrc = psrc * else: * psrc = int(cudaArray_const_t(src)) # <<<<<<<<<<<<<< * csrc = psrc * cdst = utils.HelperInputVoidPtr(dst) */ /*else*/ { __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_const_t), __pyx_v_src); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20178, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20178, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_psrc = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":20179 * else: * psrc = int(cudaArray_const_t(src)) * csrc = psrc # <<<<<<<<<<<<<< * cdst = utils.HelperInputVoidPtr(dst) * cdef void* cdst_ptr = cdst.cptr */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_psrc); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20179, __pyx_L1_error) __pyx_v_csrc = ((cudaArray_const_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L6:; /* "cuda/cudart.pyx":20180 * psrc = int(cudaArray_const_t(src)) * csrc = psrc * cdst = utils.HelperInputVoidPtr(dst) # <<<<<<<<<<<<<< * cdef void* cdst_ptr = cdst.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value */ __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_dst); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_cdst = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":20181 * csrc = psrc * cdst = utils.HelperInputVoidPtr(dst) * cdef void* cdst_ptr = cdst.cptr # <<<<<<<<<<<<<< * cdef ccudart.cudaMemcpyKind ckind = kind.value * with nogil: */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_cdst, __pyx_n_s_cptr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20181, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_3); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20181, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_cdst_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":20182 * cdst = utils.HelperInputVoidPtr(dst) * cdef void* cdst_ptr = cdst.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaMemcpy2DFromArrayAsync(cdst_ptr, dpitch, csrc, wOffset, hOffset, width, height, ckind, cstream) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_kind, __pyx_n_s_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20182, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = ((enum cudaMemcpyKind)__Pyx_PyInt_As_enum__cudaMemcpyKind(__pyx_t_3)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20182, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_ckind = __pyx_t_6; /* "cuda/cudart.pyx":20183 * cdef void* cdst_ptr = cdst.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemcpy2DFromArrayAsync(cdst_ptr, dpitch, csrc, wOffset, hOffset, width, height, ckind, cstream) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":20184 * cdef ccudart.cudaMemcpyKind ckind = kind.value * with nogil: * err = ccudart.cudaMemcpy2DFromArrayAsync(cdst_ptr, dpitch, csrc, wOffset, hOffset, width, height, ckind, cstream) # <<<<<<<<<<<<<< * * return (cudaError_t(err),) */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaMemcpy2DFromArrayAsync(__pyx_v_cdst_ptr, __pyx_v_dpitch, __pyx_v_csrc, __pyx_v_wOffset, __pyx_v_hOffset, __pyx_v_width, __pyx_v_height, __pyx_v_ckind, __pyx_v_cstream); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 20184, __pyx_L8_error) __pyx_v_err = __pyx_t_7; } /* "cuda/cudart.pyx":20183 * cdef void* cdst_ptr = cdst.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemcpy2DFromArrayAsync(cdst_ptr, dpitch, csrc, wOffset, hOffset, width, height, ckind, cstream) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L9; } __pyx_L8_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L9:; } } /* "cuda/cudart.pyx":20186 * err = ccudart.cudaMemcpy2DFromArrayAsync(cdst_ptr, dpitch, csrc, wOffset, hOffset, width, height, ckind, cstream) * * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20186, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_8 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 20186, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_8}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20186, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20186, __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)) __PYX_ERR(0, 20186, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":20101 * return (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_5); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.cudaMemcpy2DFromArrayAsync", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pstream); __Pyx_XDECREF(__pyx_v_psrc); __Pyx_XDECREF(__pyx_v_cdst); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":20188 * return (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_6cudart_255cudaMemset(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_254cudaMemset, "cudaMemset(devPtr, int value, size_t count)\n Initializes or sets device memory to a value.\n\n Fills the first `count` bytes of the memory area pointed to by `devPtr`\n with the constant byte value `value`.\n\n Note that this function is asynchronous with respect to the host unless\n `devPtr` refers to pinned host memory.\n\n Parameters\n ----------\n devPtr : Any\n Pointer to device memory\n value : int\n Value to set for each byte of specified memory\n count : size_t\n Size in bytes to set\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n\n See Also\n --------\n :py:obj:`~.cuMemsetD8`, :py:obj:`~.cuMemsetD16`, :py:obj:`~.cuMemsetD32`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_255cudaMemset = {"cudaMemset", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_255cudaMemset, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_254cudaMemset}; static PyObject *__pyx_pw_4cuda_6cudart_255cudaMemset(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_devPtr_2,&__pyx_n_s_value,&__pyx_n_s_count,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_devPtr_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20188, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_value)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20188, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemset", 1, 3, 3, 1); __PYX_ERR(0, 20188, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_count)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20188, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemset", 1, 3, 3, 2); __PYX_ERR(0, 20188, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemset") < 0)) __PYX_ERR(0, 20188, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_devPtr = values[0]; __pyx_v_value = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 20189, __pyx_L3_error) __pyx_v_count = __Pyx_PyInt_As_size_t(values[2]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 20189, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaMemset", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 20188, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemset", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_254cudaMemset(__pyx_self, __pyx_v_devPtr, __pyx_v_value, __pyx_v_count); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_254cudaMemset(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_devPtr, int __pyx_v_value, size_t __pyx_v_count) { PyObject *__pyx_v_cdevPtr = NULL; void *__pyx_v_cdevPtr_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; cudaError_t __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; unsigned int __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__475) __Pyx_RefNannySetupContext("cudaMemset", 1); __Pyx_TraceCall("cudaMemset", __pyx_f[0], 20188, 0, __PYX_ERR(0, 20188, __pyx_L1_error)); /* "cuda/cudart.pyx":20216 * :py:obj:`~.cuMemsetD8`, :py:obj:`~.cuMemsetD16`, :py:obj:`~.cuMemsetD32` * """ * cdevPtr = utils.HelperInputVoidPtr(devPtr) # <<<<<<<<<<<<<< * cdef void* cdevPtr_ptr = cdevPtr.cptr * with nogil: */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_devPtr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20216, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_cdevPtr = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":20217 * """ * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaMemset(cdevPtr_ptr, value, count) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_cdevPtr, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20217, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20217, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cdevPtr_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":20218 * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemset(cdevPtr_ptr, value, count) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":20219 * cdef void* cdevPtr_ptr = cdevPtr.cptr * with nogil: * err = ccudart.cudaMemset(cdevPtr_ptr, value, count) # <<<<<<<<<<<<<< * * return (cudaError_t(err),) */ __pyx_t_3 = __pyx_f_4cuda_7ccudart_cudaMemset(__pyx_v_cdevPtr_ptr, __pyx_v_value, __pyx_v_count); if (unlikely(__pyx_t_3 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 20219, __pyx_L4_error) __pyx_v_err = __pyx_t_3; } /* "cuda/cudart.pyx":20218 * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemset(cdevPtr_ptr, value, count) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L5; } __pyx_L4_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L5:; } } /* "cuda/cudart.pyx":20221 * err = ccudart.cudaMemset(cdevPtr_ptr, value, count) * * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 20221, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20221, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_7 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_5}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20221, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 20221, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1)) __PYX_ERR(0, 20221, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":20188 * return (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_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("cuda.cudart.cudaMemset", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_cdevPtr); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":20223 * return (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_6cudart_257cudaMemset2D(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_256cudaMemset2D, "cudaMemset2D(devPtr, size_t pitch, int value, size_t width, size_t height)\n Initializes or sets device memory to a value.\n\n Sets to the specified value `value` a matrix (`height` rows of `width`\n bytes each) pointed to by `dstPtr`. `pitch` is the width in bytes of\n the 2D array pointed to by `dstPtr`, including any padding added to the\n end of each row. This function performs fastest when the pitch is one\n that has been passed back by :py:obj:`~.cudaMallocPitch()`.\n\n Note that this function is asynchronous with respect to the host unless\n `devPtr` refers to pinned host memory.\n\n Parameters\n ----------\n devPtr : Any\n Pointer to 2D device memory\n pitch : size_t\n Pitch in bytes of 2D device memory(Unused if `height` is 1)\n value : int\n Value to set for each byte of specified memory\n width : size_t\n Width of matrix set (columns in bytes)\n height : size_t\n Height of matrix set (rows)\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_257cudaMemset2D = {"cudaMemset2D", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_257cudaMemset2D, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_256cudaMemset2D}; static PyObject *__pyx_pw_4cuda_6cudart_257cudaMemset2D(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_devPtr_2,&__pyx_n_s_pitch_2,&__pyx_n_s_value,&__pyx_n_s_width_2,&__pyx_n_s_height_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_devPtr_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20223, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pitch_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20223, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemset2D", 1, 5, 5, 1); __PYX_ERR(0, 20223, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_value)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20223, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemset2D", 1, 5, 5, 2); __PYX_ERR(0, 20223, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_width_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20223, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemset2D", 1, 5, 5, 3); __PYX_ERR(0, 20223, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_height_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[4]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20223, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemset2D", 1, 5, 5, 4); __PYX_ERR(0, 20223, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemset2D") < 0)) __PYX_ERR(0, 20223, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 5)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); } __pyx_v_devPtr = values[0]; __pyx_v_pitch = __Pyx_PyInt_As_size_t(values[1]); if (unlikely((__pyx_v_pitch == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 20224, __pyx_L3_error) __pyx_v_value = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 20224, __pyx_L3_error) __pyx_v_width = __Pyx_PyInt_As_size_t(values[3]); if (unlikely((__pyx_v_width == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 20224, __pyx_L3_error) __pyx_v_height = __Pyx_PyInt_As_size_t(values[4]); if (unlikely((__pyx_v_height == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 20224, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaMemset2D", 1, 5, 5, __pyx_nargs); __PYX_ERR(0, 20223, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemset2D", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_256cudaMemset2D(__pyx_self, __pyx_v_devPtr, __pyx_v_pitch, __pyx_v_value, __pyx_v_width, __pyx_v_height); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_256cudaMemset2D(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_cdevPtr = NULL; void *__pyx_v_cdevPtr_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; cudaError_t __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; unsigned int __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__476) __Pyx_RefNannySetupContext("cudaMemset2D", 1); __Pyx_TraceCall("cudaMemset2D", __pyx_f[0], 20223, 0, __PYX_ERR(0, 20223, __pyx_L1_error)); /* "cuda/cudart.pyx":20258 * :py:obj:`~.cudaMemset`, :py:obj:`~.cudaMemset3D`, :py:obj:`~.cudaMemsetAsync`, :py:obj:`~.cudaMemset2DAsync`, :py:obj:`~.cudaMemset3DAsync`, :py:obj:`~.cuMemsetD2D8`, :py:obj:`~.cuMemsetD2D16`, :py:obj:`~.cuMemsetD2D32` * """ * cdevPtr = utils.HelperInputVoidPtr(devPtr) # <<<<<<<<<<<<<< * cdef void* cdevPtr_ptr = cdevPtr.cptr * err = ccudart.cudaMemset2D(cdevPtr_ptr, pitch, value, width, height) */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_devPtr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20258, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_cdevPtr = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":20259 * """ * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr # <<<<<<<<<<<<<< * err = ccudart.cudaMemset2D(cdevPtr_ptr, pitch, value, width, height) * return (cudaError_t(err),) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_cdevPtr, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20259, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20259, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cdevPtr_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":20260 * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr * err = ccudart.cudaMemset2D(cdevPtr_ptr, pitch, value, width, height) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_3 = __pyx_f_4cuda_7ccudart_cudaMemset2D(__pyx_v_cdevPtr_ptr, __pyx_v_pitch, __pyx_v_value, __pyx_v_width, __pyx_v_height); if (unlikely(__pyx_t_3 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 20260, __pyx_L1_error) __pyx_v_err = __pyx_t_3; /* "cuda/cudart.pyx":20261 * cdef void* cdevPtr_ptr = cdevPtr.cptr * err = ccudart.cudaMemset2D(cdevPtr_ptr, pitch, value, width, height) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 20261, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20261, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_7 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_5}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20261, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 20261, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1)) __PYX_ERR(0, 20261, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":20223 * return (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_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("cuda.cudart.cudaMemset2D", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_cdevPtr); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":20263 * return (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_6cudart_259cudaMemset3D(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_258cudaMemset3D, "cudaMemset3D(cudaPitchedPtr pitchedDevPtr: cudaPitchedPtr, int value, cudaExtent extent: cudaExtent)\n Initializes or sets device memory to a value.\n\n Initializes each element of a 3D array to the specified value `value`.\n The object to initialize is defined by `pitchedDevPtr`. The `pitch`\n field of `pitchedDevPtr` is the width in memory in bytes of the 3D\n array pointed to by `pitchedDevPtr`, including any padding added to the\n end of each row. The `xsize` field specifies the logical width of each\n row in bytes, while the `ysize` field specifies the height of each 2D\n slice in rows. The `pitch` field of `pitchedDevPtr` is ignored when\n `height` and `depth` are both equal to 1.\n\n The extents of the initialized region are specified as a `width` in\n bytes, a `height` in rows, and a `depth` in slices.\n\n Extents with `width` greater than or equal to the `xsize` of\n `pitchedDevPtr` may perform significantly faster than extents narrower\n than the `xsize`. Secondarily, extents with `height` equal to the\n `ysize` of `pitchedDevPtr` will perform faster than when the `height`\n is shorter than the `ysize`.\n\n This function performs fastest when the `pitchedDevPtr` has been\n allocated by :py:obj:`~.cudaMalloc3D()`.\n\n Note that this function is asynchronous with respect to the host unless\n `pitchedDevPtr` refers to pinned host memory.\n\n Parameters\n ----------\n pitchedDevPtr : :py:obj:`~.cudaPitchedPtr`\n Pointer to pitched device memory\n value : int\n Value to set for each byte of specified memory\n extent : :py:obj:`~.cudaExtent`\n Size parameters for where to set device memory (`width` field in\n bytes)\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n\n See Also\n --------\n :py:obj:`~.cudaMemset`, :py:obj:`~.cudaMemset2D`, :py:obj:`~.cudaMemsetAsync`, :py:obj:`~.cudaMemset2DA""sync`, :py:obj:`~.cudaMemset3DAsync`, :py:obj:`~.cudaMalloc3D`, :py:obj:`~.make_cudaPitchedPtr`, :py:obj:`~.make_cudaExtent`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_259cudaMemset3D = {"cudaMemset3D", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_259cudaMemset3D, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_258cudaMemset3D}; static PyObject *__pyx_pw_4cuda_6cudart_259cudaMemset3D(PyObject *__pyx_self, #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_6cudart_cudaPitchedPtr *__pyx_v_pitchedDevPtr = 0; int __pyx_v_value; struct __pyx_obj_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pitchedDevPtr,&__pyx_n_s_value,&__pyx_n_s_extent_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pitchedDevPtr)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20263, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_value)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20263, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemset3D", 1, 3, 3, 1); __PYX_ERR(0, 20263, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_extent_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20263, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemset3D", 1, 3, 3, 2); __PYX_ERR(0, 20263, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemset3D") < 0)) __PYX_ERR(0, 20263, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_pitchedDevPtr = ((struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *)values[0]); __pyx_v_value = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 20264, __pyx_L3_error) __pyx_v_extent = ((struct __pyx_obj_4cuda_6cudart_cudaExtent *)values[2]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaMemset3D", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 20263, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaPitchedPtr, 0, "pitchedDevPtr", 0))) __PYX_ERR(0, 20264, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_extent), __pyx_ptype_4cuda_6cudart_cudaExtent, 0, "extent", 0))) __PYX_ERR(0, 20264, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_258cudaMemset3D(__pyx_self, __pyx_v_pitchedDevPtr, __pyx_v_value, __pyx_v_extent); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_258cudaMemset3D(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *__pyx_v_pitchedDevPtr, int __pyx_v_value, struct __pyx_obj_4cuda_6cudart_cudaExtent *__pyx_v_extent) { cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__477) __Pyx_RefNannySetupContext("cudaMemset3D", 1); __Pyx_TraceCall("cudaMemset3D", __pyx_f[0], 20263, 0, __PYX_ERR(0, 20263, __pyx_L1_error)); /* "cuda/cudart.pyx":20310 * :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` * """ * err = ccudart.cudaMemset3D(pitchedDevPtr._ptr[0], value, extent._ptr[0]) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_1 = __pyx_f_4cuda_7ccudart_cudaMemset3D((__pyx_v_pitchedDevPtr->_ptr[0]), __pyx_v_value, (__pyx_v_extent->_ptr[0])); if (unlikely(__pyx_t_1 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 20310, __pyx_L1_error) __pyx_v_err = __pyx_t_1; /* "cuda/cudart.pyx":20311 * """ * err = ccudart.cudaMemset3D(pitchedDevPtr._ptr[0], value, extent._ptr[0]) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20311, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 20311, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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(0, 20311, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20311, __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)) __PYX_ERR(0, 20311, __pyx_L1_error); __pyx_t_2 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":20263 * return (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_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaMemset3D", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":20313 * return (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_6cudart_261cudaMemsetAsync(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_260cudaMemsetAsync, "cudaMemsetAsync(devPtr, int value, size_t count, stream)\n Initializes or sets device memory to a value.\n\n Fills the first `count` bytes of the memory area pointed to by `devPtr`\n with the constant byte value `value`.\n\n :py:obj:`~.cudaMemsetAsync()` is asynchronous with respect to the host,\n so the call may return before the memset is complete. The operation can\n optionally be associated to a stream by passing a non-zero `stream`\n argument. If `stream` is non-zero, the operation may overlap with\n operations in other streams.\n\n The device version of this function only handles device to device\n copies and cannot be given local or shared pointers.\n\n Parameters\n ----------\n devPtr : Any\n Pointer to device memory\n value : int\n Value to set for each byte of specified memory\n count : size_t\n Size in bytes to set\n stream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n Stream identifier\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_261cudaMemsetAsync = {"cudaMemsetAsync", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_261cudaMemsetAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_260cudaMemsetAsync}; static PyObject *__pyx_pw_4cuda_6cudart_261cudaMemsetAsync(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_devPtr_2,&__pyx_n_s_value,&__pyx_n_s_count,&__pyx_n_s_stream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_devPtr_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20313, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_value)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20313, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemsetAsync", 1, 4, 4, 1); __PYX_ERR(0, 20313, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_count)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20313, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemsetAsync", 1, 4, 4, 2); __PYX_ERR(0, 20313, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20313, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemsetAsync", 1, 4, 4, 3); __PYX_ERR(0, 20313, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemsetAsync") < 0)) __PYX_ERR(0, 20313, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); } __pyx_v_devPtr = values[0]; __pyx_v_value = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 20314, __pyx_L3_error) __pyx_v_count = __Pyx_PyInt_As_size_t(values[2]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 20314, __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, 20313, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemsetAsync", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_260cudaMemsetAsync(__pyx_self, __pyx_v_devPtr, __pyx_v_value, __pyx_v_count, __pyx_v_stream); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_260cudaMemsetAsync(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_cstream; PyObject *__pyx_v_pstream = NULL; PyObject *__pyx_v_cdevPtr = NULL; void *__pyx_v_cdevPtr_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__478) __Pyx_RefNannySetupContext("cudaMemsetAsync", 1); __Pyx_TraceCall("cudaMemsetAsync", __pyx_f[0], 20313, 0, __PYX_ERR(0, 20313, __pyx_L1_error)); /* "cuda/cudart.pyx":20350 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_stream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":20351 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":20350 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":20352 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":20353 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20353, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pstream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":20354 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20354, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":20352 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L3; } /* "cuda/cudart.pyx":20356 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * cdevPtr = utils.HelperInputVoidPtr(devPtr) */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20356, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20356, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pstream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":20357 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20357, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":20358 * pstream = int(cudaStream_t(stream)) * cstream = pstream * cdevPtr = utils.HelperInputVoidPtr(devPtr) # <<<<<<<<<<<<<< * cdef void* cdevPtr_ptr = cdevPtr.cptr * with nogil: */ __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_devPtr); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20358, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_cdevPtr = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":20359 * cstream = pstream * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaMemsetAsync(cdevPtr_ptr, value, count, cstream) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_cdevPtr, __pyx_n_s_cptr); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20359, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20359, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_cdevPtr_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":20360 * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemsetAsync(cdevPtr_ptr, value, count, cstream) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":20361 * cdef void* cdevPtr_ptr = cdevPtr.cptr * with nogil: * err = ccudart.cudaMemsetAsync(cdevPtr_ptr, value, count, cstream) # <<<<<<<<<<<<<< * * return (cudaError_t(err),) */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaMemsetAsync(__pyx_v_cdevPtr_ptr, __pyx_v_value, __pyx_v_count, __pyx_v_cstream); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 20361, __pyx_L7_error) __pyx_v_err = __pyx_t_6; } /* "cuda/cudart.pyx":20360 * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemsetAsync(cdevPtr_ptr, value, count, cstream) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L8; } __pyx_L7_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L8:; } } /* "cuda/cudart.pyx":20363 * err = ccudart.cudaMemsetAsync(cdevPtr_ptr, value, count, cstream) * * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20363, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 20363, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20363, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20363, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 20363, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":20313 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaMemsetAsync", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pstream); __Pyx_XDECREF(__pyx_v_cdevPtr); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":20365 * return (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_6cudart_263cudaMemset2DAsync(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_262cudaMemset2DAsync, "cudaMemset2DAsync(devPtr, size_t pitch, int value, size_t width, size_t height, stream)\n Initializes or sets device memory to a value.\n\n Sets to the specified value `value` a matrix (`height` rows of `width`\n bytes each) pointed to by `dstPtr`. `pitch` is the width in bytes of\n the 2D array pointed to by `dstPtr`, including any padding added to the\n end of each row. This function performs fastest when the pitch is one\n that has been passed back by :py:obj:`~.cudaMallocPitch()`.\n\n :py:obj:`~.cudaMemset2DAsync()` is asynchronous with respect to the\n host, so the call may return before the memset is complete. The\n operation can optionally be associated to a stream by passing a non-\n zero `stream` argument. If `stream` is non-zero, the operation may\n overlap with operations in other streams.\n\n The device version of this function only handles device to device\n copies and cannot be given local or shared pointers.\n\n Parameters\n ----------\n devPtr : Any\n Pointer to 2D device memory\n pitch : size_t\n Pitch in bytes of 2D device memory(Unused if `height` is 1)\n value : int\n Value to set for each byte of specified memory\n width : size_t\n Width of matrix set (columns in bytes)\n height : size_t\n Height of matrix set (rows)\n stream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n Stream identifier\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_263cudaMemset2DAsync = {"cudaMemset2DAsync", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_263cudaMemset2DAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_262cudaMemset2DAsync}; static PyObject *__pyx_pw_4cuda_6cudart_263cudaMemset2DAsync(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_devPtr_2,&__pyx_n_s_pitch_2,&__pyx_n_s_value,&__pyx_n_s_width_2,&__pyx_n_s_height_2,&__pyx_n_s_stream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 6: values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_devPtr_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20365, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pitch_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20365, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemset2DAsync", 1, 6, 6, 1); __PYX_ERR(0, 20365, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_value)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20365, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemset2DAsync", 1, 6, 6, 2); __PYX_ERR(0, 20365, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_width_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20365, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemset2DAsync", 1, 6, 6, 3); __PYX_ERR(0, 20365, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_height_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[4]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20365, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemset2DAsync", 1, 6, 6, 4); __PYX_ERR(0, 20365, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[5]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20365, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemset2DAsync", 1, 6, 6, 5); __PYX_ERR(0, 20365, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemset2DAsync") < 0)) __PYX_ERR(0, 20365, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 6)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5); } __pyx_v_devPtr = values[0]; __pyx_v_pitch = __Pyx_PyInt_As_size_t(values[1]); if (unlikely((__pyx_v_pitch == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 20366, __pyx_L3_error) __pyx_v_value = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 20366, __pyx_L3_error) __pyx_v_width = __Pyx_PyInt_As_size_t(values[3]); if (unlikely((__pyx_v_width == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 20366, __pyx_L3_error) __pyx_v_height = __Pyx_PyInt_As_size_t(values[4]); if (unlikely((__pyx_v_height == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 20366, __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, 20365, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemset2DAsync", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_262cudaMemset2DAsync(__pyx_self, __pyx_v_devPtr, __pyx_v_pitch, __pyx_v_value, __pyx_v_width, __pyx_v_height, __pyx_v_stream); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_262cudaMemset2DAsync(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_cstream; PyObject *__pyx_v_pstream = NULL; PyObject *__pyx_v_cdevPtr = NULL; void *__pyx_v_cdevPtr_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__479) __Pyx_RefNannySetupContext("cudaMemset2DAsync", 1); __Pyx_TraceCall("cudaMemset2DAsync", __pyx_f[0], 20365, 0, __PYX_ERR(0, 20365, __pyx_L1_error)); /* "cuda/cudart.pyx":20409 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_stream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":20410 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":20409 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":20411 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":20412 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20412, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pstream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":20413 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20413, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":20411 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L3; } /* "cuda/cudart.pyx":20415 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * cdevPtr = utils.HelperInputVoidPtr(devPtr) */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20415, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20415, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pstream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":20416 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20416, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":20417 * pstream = int(cudaStream_t(stream)) * cstream = pstream * cdevPtr = utils.HelperInputVoidPtr(devPtr) # <<<<<<<<<<<<<< * cdef void* cdevPtr_ptr = cdevPtr.cptr * err = ccudart.cudaMemset2DAsync(cdevPtr_ptr, pitch, value, width, height, cstream) */ __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_devPtr); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20417, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_cdevPtr = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":20418 * cstream = pstream * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr # <<<<<<<<<<<<<< * err = ccudart.cudaMemset2DAsync(cdevPtr_ptr, pitch, value, width, height, cstream) * return (cudaError_t(err),) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_cdevPtr, __pyx_n_s_cptr); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20418, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20418, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_cdevPtr_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":20419 * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr * err = ccudart.cudaMemset2DAsync(cdevPtr_ptr, pitch, value, width, height, cstream) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaMemset2DAsync(__pyx_v_cdevPtr_ptr, __pyx_v_pitch, __pyx_v_value, __pyx_v_width, __pyx_v_height, __pyx_v_cstream); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 20419, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":20420 * cdef void* cdevPtr_ptr = cdevPtr.cptr * err = ccudart.cudaMemset2DAsync(cdevPtr_ptr, pitch, value, width, height, cstream) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20420, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 20420, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20420, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20420, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 20420, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":20365 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaMemset2DAsync", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pstream); __Pyx_XDECREF(__pyx_v_cdevPtr); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":20422 * return (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_6cudart_265cudaMemset3DAsync(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_264cudaMemset3DAsync, "cudaMemset3DAsync(cudaPitchedPtr pitchedDevPtr: cudaPitchedPtr, int value, cudaExtent extent: cudaExtent, stream)\n Initializes or sets device memory to a value.\n\n Initializes each element of a 3D array to the specified value `value`.\n The object to initialize is defined by `pitchedDevPtr`. The `pitch`\n field of `pitchedDevPtr` is the width in memory in bytes of the 3D\n array pointed to by `pitchedDevPtr`, including any padding added to the\n end of each row. The `xsize` field specifies the logical width of each\n row in bytes, while the `ysize` field specifies the height of each 2D\n slice in rows. The `pitch` field of `pitchedDevPtr` is ignored when\n `height` and `depth` are both equal to 1.\n\n The extents of the initialized region are specified as a `width` in\n bytes, a `height` in rows, and a `depth` in slices.\n\n Extents with `width` greater than or equal to the `xsize` of\n `pitchedDevPtr` may perform significantly faster than extents narrower\n than the `xsize`. Secondarily, extents with `height` equal to the\n `ysize` of `pitchedDevPtr` will perform faster than when the `height`\n is shorter than the `ysize`.\n\n This function performs fastest when the `pitchedDevPtr` has been\n allocated by :py:obj:`~.cudaMalloc3D()`.\n\n :py:obj:`~.cudaMemset3DAsync()` is asynchronous with respect to the\n host, so the call may return before the memset is complete. The\n operation can optionally be associated to a stream by passing a non-\n zero `stream` argument. If `stream` is non-zero, the operation may\n overlap with operations in other streams.\n\n The device version of this function only handles device to device\n copies and cannot be given local or shared pointers.\n\n Parameters\n ----------\n pitchedDevPtr : :py:obj:`~.cudaPitchedPtr`\n Pointer to pitched device memory\n value : int\n Value to set for each byte of specified memory\n extent : :py:obj:`~.cud""aExtent`\n Size parameters for where to set device memory (`width` field in\n bytes)\n stream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n Stream identifier\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_265cudaMemset3DAsync = {"cudaMemset3DAsync", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_265cudaMemset3DAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_264cudaMemset3DAsync}; static PyObject *__pyx_pw_4cuda_6cudart_265cudaMemset3DAsync(PyObject *__pyx_self, #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_6cudart_cudaPitchedPtr *__pyx_v_pitchedDevPtr = 0; int __pyx_v_value; struct __pyx_obj_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pitchedDevPtr,&__pyx_n_s_value,&__pyx_n_s_extent_2,&__pyx_n_s_stream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pitchedDevPtr)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20422, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_value)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20422, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemset3DAsync", 1, 4, 4, 1); __PYX_ERR(0, 20422, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_extent_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20422, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemset3DAsync", 1, 4, 4, 2); __PYX_ERR(0, 20422, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20422, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemset3DAsync", 1, 4, 4, 3); __PYX_ERR(0, 20422, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemset3DAsync") < 0)) __PYX_ERR(0, 20422, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); } __pyx_v_pitchedDevPtr = ((struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *)values[0]); __pyx_v_value = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 20423, __pyx_L3_error) __pyx_v_extent = ((struct __pyx_obj_4cuda_6cudart_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, 20422, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaPitchedPtr, 0, "pitchedDevPtr", 0))) __PYX_ERR(0, 20423, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_extent), __pyx_ptype_4cuda_6cudart_cudaExtent, 0, "extent", 0))) __PYX_ERR(0, 20423, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_264cudaMemset3DAsync(__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; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_264cudaMemset3DAsync(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *__pyx_v_pitchedDevPtr, int __pyx_v_value, struct __pyx_obj_4cuda_6cudart_cudaExtent *__pyx_v_extent, PyObject *__pyx_v_stream) { cudaStream_t __pyx_v_cstream; PyObject *__pyx_v_pstream = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__480) __Pyx_RefNannySetupContext("cudaMemset3DAsync", 1); __Pyx_TraceCall("cudaMemset3DAsync", __pyx_f[0], 20422, 0, __PYX_ERR(0, 20422, __pyx_L1_error)); /* "cuda/cudart.pyx":20478 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_stream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":20479 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":20478 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":20480 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":20481 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20481, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pstream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":20482 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20482, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":20480 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L3; } /* "cuda/cudart.pyx":20484 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * err = ccudart.cudaMemset3DAsync(pitchedDevPtr._ptr[0], value, extent._ptr[0], cstream) */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20484, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20484, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pstream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":20485 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * err = ccudart.cudaMemset3DAsync(pitchedDevPtr._ptr[0], value, extent._ptr[0], cstream) * return (cudaError_t(err),) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20485, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":20486 * pstream = int(cudaStream_t(stream)) * cstream = pstream * err = ccudart.cudaMemset3DAsync(pitchedDevPtr._ptr[0], value, extent._ptr[0], cstream) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaMemset3DAsync((__pyx_v_pitchedDevPtr->_ptr[0]), __pyx_v_value, (__pyx_v_extent->_ptr[0]), __pyx_v_cstream); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 20486, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":20487 * cstream = pstream * err = ccudart.cudaMemset3DAsync(pitchedDevPtr._ptr[0], value, extent._ptr[0], cstream) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20487, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 20487, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20487, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20487, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 20487, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":20422 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaMemset3DAsync", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pstream); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":20489 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemPrefetchAsync(devPtr, size_t count, int dstDevice, stream): * """ Prefetches memory to the specified destination device. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_267cudaMemPrefetchAsync(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_266cudaMemPrefetchAsync, "cudaMemPrefetchAsync(devPtr, size_t count, int dstDevice, stream)\n Prefetches memory to the specified destination device.\n\n Prefetches memory to the specified destination device. `devPtr` is the\n base device pointer of the memory to be prefetched and `dstDevice` is\n the destination device. `count` specifies the number of bytes to copy.\n `stream` is the stream in which the operation is enqueued. The memory\n range must refer to managed memory allocated via\n :py:obj:`~.cudaMallocManaged` or declared via managed variables, or it\n may also refer to system-allocated memory on systems with non-zero\n cudaDevAttrPageableMemoryAccess.\n\n Passing in cudaCpuDeviceId for `dstDevice` will prefetch the data to\n host memory. If `dstDevice` is a GPU, then the device attribute\n :py:obj:`~.cudaDevAttrConcurrentManagedAccess` must be non-zero.\n Additionally, `stream` must be associated with a device that has a non-\n zero value for the device attribute\n :py:obj:`~.cudaDevAttrConcurrentManagedAccess`.\n\n The start address and end address of the memory range will be rounded\n down and rounded up respectively to be aligned to CPU page size before\n the prefetch operation is enqueued in the stream.\n\n If no physical memory has been allocated for this region, then this\n memory region will be populated and mapped on the destination device.\n If there's insufficient memory to prefetch the desired region, the\n Unified Memory driver may evict pages from other\n :py:obj:`~.cudaMallocManaged` allocations to host memory in order to\n make room. Device memory allocated using :py:obj:`~.cudaMalloc` or\n :py:obj:`~.cudaMallocArray` will not be evicted.\n\n By default, any mappings to the previous location of the migrated pages\n are removed and mappings for the new location are only setup on\n `dstDevice`. The exact behavior however also depends on the settings\n applied to this memory range via :py"":obj:`~.cudaMemAdvise` as described\n below:\n\n If :py:obj:`~.cudaMemAdviseSetReadMostly` was set on any subset of this\n memory range, then that subset will create a read-only copy of the\n pages on `dstDevice`.\n\n If :py:obj:`~.cudaMemAdviseSetPreferredLocation` was called on any\n subset of this memory range, then the pages will be migrated to\n `dstDevice` even if `dstDevice` is not the preferred location of any\n pages in the memory range.\n\n If :py:obj:`~.cudaMemAdviseSetAccessedBy` was called on any subset of\n this memory range, then mappings to those pages from all the\n appropriate processors are updated to refer to the new location if\n establishing such a mapping is possible. Otherwise, those mappings are\n cleared.\n\n Note that this API is not required for functionality and only serves to\n improve performance by allowing the application to migrate data to a\n suitable location before it is accessed. Memory accesses to this range\n are always coherent and are allowed even when the data is actively\n being migrated.\n\n Note that this function is asynchronous with respect to the host and\n all work on other devices.\n\n Parameters\n ----------\n devPtr : Any\n Pointer to be prefetched\n count : size_t\n Size in bytes\n dstDevice : int\n Destination device to prefetch to\n stream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n Stream to enqueue prefetch operation\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidDevice`\n\n See Also\n --------\n :py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpyPeer`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpy3DPeerAsync`, :py:obj:`~.cudaMemAdvise`, :py:obj:`~.cudaMemAdvise_v2` :py:obj:`~.cuMemPrefetchAsync`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_267cudaMemPrefetchAsync = {"cudaMemPrefetchAsync", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_267cudaMemPrefetchAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_266cudaMemPrefetchAsync}; static PyObject *__pyx_pw_4cuda_6cudart_267cudaMemPrefetchAsync(PyObject *__pyx_self, #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; int __pyx_v_dstDevice; 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("cudaMemPrefetchAsync (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_devPtr_2,&__pyx_n_s_count,&__pyx_n_s_dstDevice_2,&__pyx_n_s_stream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_devPtr_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20489, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_count)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20489, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemPrefetchAsync", 1, 4, 4, 1); __PYX_ERR(0, 20489, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dstDevice_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20489, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemPrefetchAsync", 1, 4, 4, 2); __PYX_ERR(0, 20489, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20489, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemPrefetchAsync", 1, 4, 4, 3); __PYX_ERR(0, 20489, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemPrefetchAsync") < 0)) __PYX_ERR(0, 20489, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); } __pyx_v_devPtr = values[0]; __pyx_v_count = __Pyx_PyInt_As_size_t(values[1]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 20490, __pyx_L3_error) __pyx_v_dstDevice = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_dstDevice == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 20490, __pyx_L3_error) __pyx_v_stream = values[3]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaMemPrefetchAsync", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 20489, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemPrefetchAsync", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_266cudaMemPrefetchAsync(__pyx_self, __pyx_v_devPtr, __pyx_v_count, __pyx_v_dstDevice, __pyx_v_stream); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_266cudaMemPrefetchAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_devPtr, size_t __pyx_v_count, int __pyx_v_dstDevice, PyObject *__pyx_v_stream) { cudaStream_t __pyx_v_cstream; PyObject *__pyx_v_pstream = NULL; PyObject *__pyx_v_cdevPtr = NULL; void *__pyx_v_cdevPtr_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__481) __Pyx_RefNannySetupContext("cudaMemPrefetchAsync", 1); __Pyx_TraceCall("cudaMemPrefetchAsync", __pyx_f[0], 20489, 0, __PYX_ERR(0, 20489, __pyx_L1_error)); /* "cuda/cudart.pyx":20572 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_stream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":20573 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":20572 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":20574 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":20575 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20575, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pstream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":20576 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20576, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":20574 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L3; } /* "cuda/cudart.pyx":20578 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * cdevPtr = utils.HelperInputVoidPtr(devPtr) */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20578, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20578, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pstream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":20579 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20579, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":20580 * pstream = int(cudaStream_t(stream)) * cstream = pstream * cdevPtr = utils.HelperInputVoidPtr(devPtr) # <<<<<<<<<<<<<< * cdef void* cdevPtr_ptr = cdevPtr.cptr * with nogil: */ __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_devPtr); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20580, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_cdevPtr = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":20581 * cstream = pstream * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaMemPrefetchAsync(cdevPtr_ptr, count, dstDevice, cstream) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_cdevPtr, __pyx_n_s_cptr); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20581, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20581, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_cdevPtr_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":20582 * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemPrefetchAsync(cdevPtr_ptr, count, dstDevice, cstream) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":20583 * cdef void* cdevPtr_ptr = cdevPtr.cptr * with nogil: * err = ccudart.cudaMemPrefetchAsync(cdevPtr_ptr, count, dstDevice, cstream) # <<<<<<<<<<<<<< * * return (cudaError_t(err),) */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaMemPrefetchAsync(__pyx_v_cdevPtr_ptr, __pyx_v_count, __pyx_v_dstDevice, __pyx_v_cstream); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 20583, __pyx_L7_error) __pyx_v_err = __pyx_t_6; } /* "cuda/cudart.pyx":20582 * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemPrefetchAsync(cdevPtr_ptr, count, dstDevice, cstream) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L8; } __pyx_L7_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L8:; } } /* "cuda/cudart.pyx":20585 * err = ccudart.cudaMemPrefetchAsync(cdevPtr_ptr, count, dstDevice, cstream) * * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20585, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 20585, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20585, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20585, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 20585, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":20489 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemPrefetchAsync(devPtr, size_t count, int dstDevice, stream): * """ Prefetches memory to the specified destination device. */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaMemPrefetchAsync", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pstream); __Pyx_XDECREF(__pyx_v_cdevPtr); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":20587 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemPrefetchAsync_v2(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_6cudart_269cudaMemPrefetchAsync_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_6cudart_268cudaMemPrefetchAsync_v2, "cudaMemPrefetchAsync_v2(devPtr, size_t count, cudaMemLocation location: cudaMemLocation, unsigned int flags, stream)\n Prefetches memory to the specified destination location.\n\n Prefetches memory to the specified destination location. `devPtr` is\n the base device pointer of the memory to be prefetched and `location`\n specifies the destination location. `count` specifies the number of\n bytes to copy. `stream` is the stream in which the operation is\n enqueued. The memory range must refer to managed memory allocated via\n :py:obj:`~.cudaMallocManaged` or declared via managed variables, or it\n may also refer to system-allocated memory on systems with non-zero\n cudaDevAttrPageableMemoryAccess.\n\n Specifying :py:obj:`~.cudaMemLocationTypeDevice` for\n :py:obj:`~.cudaMemLocation.type` will prefetch memory to GPU specified\n by device ordinal :py:obj:`~.cudaMemLocation.id` which must have non-\n zero value for the device attribute\n :py:obj:`~.concurrentManagedAccess`. Additionally, `stream` must be\n associated with a device that has a non-zero value for the device\n attribute :py:obj:`~.concurrentManagedAccess`. Specifying\n :py:obj:`~.cudaMemLocationTypeHost` as :py:obj:`~.cudaMemLocation.type`\n will prefetch data to host memory. Applications can request prefetching\n memory 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\n memory to the host NUMA node closest to the current thread's CPU by\n specifying :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\n The start address"" and end address of the memory range will be rounded\n down and rounded up respectively to be aligned to CPU page size before\n the prefetch operation is enqueued in the stream.\n\n If no physical memory has been allocated for this region, then this\n memory region will be populated and mapped on the destination device.\n If there's insufficient memory to prefetch the desired region, the\n Unified Memory driver may evict pages from other\n :py:obj:`~.cudaMallocManaged` allocations to host memory in order to\n make room. Device memory allocated using :py:obj:`~.cudaMalloc` or\n :py:obj:`~.cudaMallocArray` will not be evicted.\n\n By default, any mappings to the previous location of the migrated pages\n are removed and mappings for the new location are only setup on the\n destination location. The exact behavior however also depends on the\n settings applied to this memory range via :py:obj:`~.cuMemAdvise` as\n described below:\n\n If :py:obj:`~.cudaMemAdviseSetReadMostly` was set on any subset of this\n memory range, then that subset will create a read-only copy of the\n pages on destination location. If however the destination location is a\n host NUMA node, then any pages of that subset that are already in\n another host NUMA node will be transferred to the destination.\n\n If :py:obj:`~.cudaMemAdviseSetPreferredLocation` was called on any\n subset of this memory range, then the pages will be migrated to\n `location` even if `location` is not the preferred location of any\n pages in the memory range.\n\n If :py:obj:`~.cudaMemAdviseSetAccessedBy` was called on any subset of\n this memory range, then mappings to those pages from all the\n appropriate processors are updated to refer to the new location if\n establishing such a mapping is possible. Otherwise, those mappings are\n cleared.\n\n Note that this API is not required for functionality and only serves to\n improve perform""ance by allowing the application to migrate data to a\n suitable location before it is accessed. Memory accesses to this range\n are always coherent and are allowed even when the data is actively\n being migrated.\n\n Note that this function is asynchronous with respect to the host and\n all work on other devices.\n\n Parameters\n ----------\n devPtr : Any\n Pointer to be prefetched\n count : size_t\n Size in bytes\n location : :py:obj:`~.cudaMemLocation`\n location to prefetch to\n flags : unsigned int\n flags for future use, must be zero now.\n stream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n Stream to enqueue prefetch operation\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidDevice`\n\n See Also\n --------\n :py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpyPeer`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpy3DPeerAsync`, :py:obj:`~.cudaMemAdvise`, :py:obj:`~.cudaMemAdvise_v2` :py:obj:`~.cuMemPrefetchAsync`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_269cudaMemPrefetchAsync_v2 = {"cudaMemPrefetchAsync_v2", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_269cudaMemPrefetchAsync_v2, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_268cudaMemPrefetchAsync_v2}; static PyObject *__pyx_pw_4cuda_6cudart_269cudaMemPrefetchAsync_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_devPtr = 0; size_t __pyx_v_count; struct __pyx_obj_4cuda_6cudart_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_v2 (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_devPtr_2,&__pyx_n_s_count,&__pyx_n_s_location_2,&__pyx_n_s_flags_2,&__pyx_n_s_stream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_devPtr_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20587, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_count)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20587, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemPrefetchAsync_v2", 1, 5, 5, 1); __PYX_ERR(0, 20587, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_location_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20587, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemPrefetchAsync_v2", 1, 5, 5, 2); __PYX_ERR(0, 20587, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20587, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemPrefetchAsync_v2", 1, 5, 5, 3); __PYX_ERR(0, 20587, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[4]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20587, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemPrefetchAsync_v2", 1, 5, 5, 4); __PYX_ERR(0, 20587, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemPrefetchAsync_v2") < 0)) __PYX_ERR(0, 20587, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 5)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); } __pyx_v_devPtr = values[0]; __pyx_v_count = __Pyx_PyInt_As_size_t(values[1]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 20588, __pyx_L3_error) __pyx_v_location = ((struct __pyx_obj_4cuda_6cudart_cudaMemLocation *)values[2]); __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[3]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 20588, __pyx_L3_error) __pyx_v_stream = values[4]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaMemPrefetchAsync_v2", 1, 5, 5, __pyx_nargs); __PYX_ERR(0, 20587, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemPrefetchAsync_v2", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_location), __pyx_ptype_4cuda_6cudart_cudaMemLocation, 0, "location", 0))) __PYX_ERR(0, 20588, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_268cudaMemPrefetchAsync_v2(__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; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_268cudaMemPrefetchAsync_v2(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_devPtr, size_t __pyx_v_count, struct __pyx_obj_4cuda_6cudart_cudaMemLocation *__pyx_v_location, unsigned int __pyx_v_flags, PyObject *__pyx_v_stream) { cudaStream_t __pyx_v_cstream; PyObject *__pyx_v_pstream = NULL; PyObject *__pyx_v_cdevPtr = NULL; void *__pyx_v_cdevPtr_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__482) __Pyx_RefNannySetupContext("cudaMemPrefetchAsync_v2", 1); __Pyx_TraceCall("cudaMemPrefetchAsync_v2", __pyx_f[0], 20587, 0, __PYX_ERR(0, 20587, __pyx_L1_error)); /* "cuda/cudart.pyx":20688 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_stream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":20689 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":20688 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":20690 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":20691 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20691, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pstream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":20692 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20692, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":20690 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L3; } /* "cuda/cudart.pyx":20694 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * cdevPtr = utils.HelperInputVoidPtr(devPtr) */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20694, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20694, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pstream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":20695 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20695, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":20696 * pstream = int(cudaStream_t(stream)) * cstream = pstream * cdevPtr = utils.HelperInputVoidPtr(devPtr) # <<<<<<<<<<<<<< * cdef void* cdevPtr_ptr = cdevPtr.cptr * with nogil: */ __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_devPtr); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20696, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_cdevPtr = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":20697 * cstream = pstream * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaMemPrefetchAsync_v2(cdevPtr_ptr, count, location._ptr[0], flags, cstream) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_cdevPtr, __pyx_n_s_cptr); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20697, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20697, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_cdevPtr_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":20698 * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemPrefetchAsync_v2(cdevPtr_ptr, count, location._ptr[0], flags, cstream) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":20699 * cdef void* cdevPtr_ptr = cdevPtr.cptr * with nogil: * err = ccudart.cudaMemPrefetchAsync_v2(cdevPtr_ptr, count, location._ptr[0], flags, cstream) # <<<<<<<<<<<<<< * * return (cudaError_t(err),) */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaMemPrefetchAsync_v2(__pyx_v_cdevPtr_ptr, __pyx_v_count, (__pyx_v_location->_ptr[0]), __pyx_v_flags, __pyx_v_cstream); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 20699, __pyx_L7_error) __pyx_v_err = __pyx_t_6; } /* "cuda/cudart.pyx":20698 * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemPrefetchAsync_v2(cdevPtr_ptr, count, location._ptr[0], flags, cstream) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L8; } __pyx_L7_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L8:; } } /* "cuda/cudart.pyx":20701 * err = ccudart.cudaMemPrefetchAsync_v2(cdevPtr_ptr, count, location._ptr[0], flags, cstream) * * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20701, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 20701, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20701, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20701, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 20701, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":20587 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemPrefetchAsync_v2(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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaMemPrefetchAsync_v2", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pstream); __Pyx_XDECREF(__pyx_v_cdevPtr); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":20703 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemAdvise(devPtr, size_t count, advice not None : cudaMemoryAdvise, int device): * """ Advise about the usage of a given memory range. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_271cudaMemAdvise(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_270cudaMemAdvise, "cudaMemAdvise(devPtr, size_t count, advice: cudaMemoryAdvise, int device)\n Advise about the usage of a given memory range.\n\n Advise the Unified Memory subsystem about the usage pattern for the\n memory range starting at `devPtr` with a size of `count` bytes. The\n start address and end address of the memory range will be rounded down\n and rounded up respectively to be aligned to CPU page size before the\n advice is applied. The memory range must refer to managed memory\n allocated via :py:obj:`~.cudaMallocManaged` or declared via managed\n variables. The memory range could also refer to system-allocated\n pageable memory provided it represents a valid, host-accessible region\n of memory and all additional constraints imposed by `advice` as\n outlined below are also satisfied. Specifying an invalid system-\n allocated pageable memory range results in an error being returned.\n\n The `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` is called on this\n region, it will create a read-only copy of the data on the\n destination processor. If any processor writes to this region, all\n copies of the corresponding page will be invalidated except for the\n one where the write occurred. The `device` argument is ignored for\n this advice. Note that for a page to be read-duplicated, the\n accessing processor must either be the CPU or a GPU that has a non-\n zero value for the device attribute\n :py:obj:`~.cudaDevAttrConcurrentManagedAccess`. Also, if a context is\n created on a device that does not have the device attribute\n :py:obj:`~"".cudaDevAttrConcurrentManagedAccess` set, then read-\n duplication will not occur until all such contexts are destroyed. If\n the memory region refers to valid system-allocated pageable memory,\n then the accessing device must have a non-zero value for the device\n attribute :py:obj:`~.cudaDevAttrPageableMemoryAccess` for a read-only\n copy to be created on that device. Note however that if the accessing\n device also has a non-zero value for the device 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:`~.cudaMemAdviceReadMostly` 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.\n\n - :py:obj:`~.cudaMemAdviseSetPreferredLocation`: This advice sets the\n preferred location for the data to be the memory belonging to\n `device`. Passing in cudaCpuDeviceId for `device` sets the preferred\n location as host memory. If `device` is a GPU, then it must have a\n 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, the""n 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 `device` will not result in a read-only copy being\n created on that device as outlined in description for the advice\n :py:obj:`~.cudaMemAdviseSetReadMostly`. If the memory region refers\n to valid system-allocated pageable memory, then `device` must have a\n non-zero value 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.\n\n - :py:obj:`~.cudaMemAdviseSetAccessedBy`: This advice implies that the\n data will be accessed by `device`. Passing in\n :py:obj:`~.cudaCpuDeviceId` for `device` will set the advice for the\n CPU. If `device` is a GPU, then the device attribute\n :py:obj:`~.cudaDevAttrConcurrentManagedAccess` must be non-zero. This\n advice does not cause data mig""ration and has no impact on the\n location of the data per se. Instead, it causes the data to always be\n mapped in the specified processor's page tables, as long as the\n location of the data permits a mapping to be established. If the data\n gets migrated for any reason, the mappings are updated accordingly.\n This advice is recommended in scenarios where data locality is not\n important, but avoiding faults is. Consider for example a system\n containing multiple GPUs with peer-to-peer access enabled, where the\n data located on one GPU is occasionally accessed by peer GPUs. In\n such scenarios, migrating data over to the other GPUs is not as\n important because the accesses are infrequent and the overhead of\n migration may be too high. But preventing faults can still help\n improve performance, and so having a mapping set up in advance is\n useful. Note that on CPU access of this data, the data may be\n migrated to host memory because the CPU typically cannot access\n device memory directly. Any GPU that had the\n :py:obj:`~.cudaMemAdviceSetAccessedBy` 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 `device`, then the policies associated with\n :py:obj:`~.cudaMemAdviseSetPreferredLocation` will override the\n policies of this advice. If the memory region refers to valid system-\n allocated pageable memory, then `device` must have a non-zero value\n for the device attribute :py:obj:`~.cudaDevAttrPageableMemoryAccess`.\n Additionally, if `device` has a non-zero value for the device\n attribute\n "" :py:obj:`~.cudaDevAttrPageableMemoryAccessUsesHostPageTables`, then\n this call has no effect.\n\n - :py:obj:`~.cudaMemAdviseUnsetAccessedBy`: Undoes the effect of\n :py:obj:`~.cudaMemAdviseSetAccessedBy`. Any mappings to the data from\n `device` 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, then `device` must have a non-zero value\n for the device attribute :py:obj:`~.cudaDevAttrPageableMemoryAccess`.\n Additionally, if `device` has a non-zero value for the device\n attribute\n :py:obj:`~.cudaDevAttrPageableMemoryAccessUsesHostPageTables`, then\n this call has no effect.\n\n Parameters\n ----------\n devPtr : Any\n Pointer to memory to set the advice for\n count : size_t\n Size in bytes of the memory range\n advice : :py:obj:`~.cudaMemoryAdvise`\n Advice to be applied for the specified memory range\n device : int\n Device to apply the advice for\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidDevice`\n\n See Also\n --------\n :py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpyPeer`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpy3DPeerAsync`, :py:obj:`~.cudaMemPrefetchAsync`, :py:obj:`~.cuMemAdvise`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_271cudaMemAdvise = {"cudaMemAdvise", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_271cudaMemAdvise, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_270cudaMemAdvise}; static PyObject *__pyx_pw_4cuda_6cudart_271cudaMemAdvise(PyObject *__pyx_self, #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; 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("cudaMemAdvise (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_devPtr_2,&__pyx_n_s_count,&__pyx_n_s_advice,&__pyx_n_s_device_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_devPtr_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20703, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_count)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20703, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemAdvise", 1, 4, 4, 1); __PYX_ERR(0, 20703, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_advice)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20703, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemAdvise", 1, 4, 4, 2); __PYX_ERR(0, 20703, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_device_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20703, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemAdvise", 1, 4, 4, 3); __PYX_ERR(0, 20703, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemAdvise") < 0)) __PYX_ERR(0, 20703, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); } __pyx_v_devPtr = values[0]; __pyx_v_count = __Pyx_PyInt_As_size_t(values[1]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 20704, __pyx_L3_error) __pyx_v_advice = values[2]; __pyx_v_device = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 20704, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaMemAdvise", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 20703, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 20704, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_270cudaMemAdvise(__pyx_self, __pyx_v_devPtr, __pyx_v_count, __pyx_v_advice, __pyx_v_device); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_270cudaMemAdvise(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_devPtr, size_t __pyx_v_count, PyObject *__pyx_v_advice, int __pyx_v_device) { PyObject *__pyx_v_cdevPtr = NULL; void *__pyx_v_cdevPtr_ptr; enum cudaMemoryAdvise __pyx_v_cadvice; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; enum cudaMemoryAdvise __pyx_t_3; cudaError_t __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__483) __Pyx_RefNannySetupContext("cudaMemAdvise", 1); __Pyx_TraceCall("cudaMemAdvise", __pyx_f[0], 20703, 0, __PYX_ERR(0, 20703, __pyx_L1_error)); /* "cuda/cudart.pyx":20859 * :py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpyPeer`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpy3DPeerAsync`, :py:obj:`~.cudaMemPrefetchAsync`, :py:obj:`~.cuMemAdvise` * """ * cdevPtr = utils.HelperInputVoidPtr(devPtr) # <<<<<<<<<<<<<< * cdef void* cdevPtr_ptr = cdevPtr.cptr * cdef ccudart.cudaMemoryAdvise cadvice = advice.value */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_devPtr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20859, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_cdevPtr = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":20860 * """ * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr # <<<<<<<<<<<<<< * cdef ccudart.cudaMemoryAdvise cadvice = advice.value * with nogil: */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_cdevPtr, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20860, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20860, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cdevPtr_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":20861 * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr * cdef ccudart.cudaMemoryAdvise cadvice = advice.value # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaMemAdvise(cdevPtr_ptr, count, cadvice, device) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_advice, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20861, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = ((enum cudaMemoryAdvise)__Pyx_PyInt_As_enum__cudaMemoryAdvise(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20861, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cadvice = __pyx_t_3; /* "cuda/cudart.pyx":20862 * cdef void* cdevPtr_ptr = cdevPtr.cptr * cdef ccudart.cudaMemoryAdvise cadvice = advice.value * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemAdvise(cdevPtr_ptr, count, cadvice, device) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":20863 * cdef ccudart.cudaMemoryAdvise cadvice = advice.value * with nogil: * err = ccudart.cudaMemAdvise(cdevPtr_ptr, count, cadvice, device) # <<<<<<<<<<<<<< * * return (cudaError_t(err),) */ __pyx_t_4 = __pyx_f_4cuda_7ccudart_cudaMemAdvise(__pyx_v_cdevPtr_ptr, __pyx_v_count, __pyx_v_cadvice, __pyx_v_device); if (unlikely(__pyx_t_4 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 20863, __pyx_L4_error) __pyx_v_err = __pyx_t_4; } /* "cuda/cudart.pyx":20862 * cdef void* cdevPtr_ptr = cdevPtr.cptr * cdef ccudart.cudaMemoryAdvise cadvice = advice.value * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemAdvise(cdevPtr_ptr, count, cadvice, device) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L5; } __pyx_L4_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L5:; } } /* "cuda/cudart.pyx":20865 * err = ccudart.cudaMemAdvise(cdevPtr_ptr, count, cadvice, device) * * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20865, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 20865, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20865, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20865, __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)) __PYX_ERR(0, 20865, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":20703 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemAdvise(devPtr, size_t count, advice not None : cudaMemoryAdvise, int device): * """ Advise about the usage of a given memory range. */ /* 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_AddTraceback("cuda.cudart.cudaMemAdvise", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_cdevPtr); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":20867 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemAdvise_v2(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_6cudart_273cudaMemAdvise_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_6cudart_272cudaMemAdvise_v2, "cudaMemAdvise_v2(devPtr, size_t count, advice: cudaMemoryAdvise, cudaMemLocation location: cudaMemLocation)\n Advise about the usage of a given memory range.\n\n Advise the Unified Memory subsystem about the usage pattern for the\n memory range starting at `devPtr` with a size of `count` bytes. The\n start address and end address of the memory range will be rounded down\n and rounded up respectively to be aligned to CPU page size before the\n advice is applied. The memory range must refer to managed memory\n allocated via :py:obj:`~.cudaMallocManaged` or declared via managed\n variables. The memory range could also refer to system-allocated\n pageable memory provided it represents a valid, host-accessible region\n of memory and all additional constraints imposed by `advice` as\n outlined below are also satisfied. Specifying an invalid system-\n allocated pageable memory range results in an error being returned.\n\n The `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_v2` 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_v2` 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 p""age 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 :py: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 mem""ory 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 locatio""n 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:`~.cudaDevAttrPageableMemoryAcces""sUsesHostPageTables`, 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:`~.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 Parameters\n ----------\n devPtr : Any\n Pointer to memory to set the advice for\n count : size_t\n Size in bytes of the memory range\n advice : :py:obj:`~.cudaMemoryAdvise`\n Advice to be applied for the specified memory range\n location : :py:obj:`~.cudaMemLocation`\n location to apply the advice for\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidDevice`\n\n See Also\n --------\n :py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpyPeer`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpy3DPeerAsync`, :py:obj:`~.cudaMemPrefetchAsync`, :py:obj:`~.cuMemAdvise`, :py:obj:`~.cuMemAdvise_v2`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_273cudaMemAdvise_v2 = {"cudaMemAdvise_v2", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_273cudaMemAdvise_v2, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_272cudaMemAdvise_v2}; static PyObject *__pyx_pw_4cuda_6cudart_273cudaMemAdvise_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_devPtr = 0; size_t __pyx_v_count; PyObject *__pyx_v_advice = 0; struct __pyx_obj_4cuda_6cudart_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_v2 (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_devPtr_2,&__pyx_n_s_count,&__pyx_n_s_advice,&__pyx_n_s_location_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_devPtr_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20867, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_count)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20867, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemAdvise_v2", 1, 4, 4, 1); __PYX_ERR(0, 20867, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_advice)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20867, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemAdvise_v2", 1, 4, 4, 2); __PYX_ERR(0, 20867, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_location_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 20867, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemAdvise_v2", 1, 4, 4, 3); __PYX_ERR(0, 20867, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemAdvise_v2") < 0)) __PYX_ERR(0, 20867, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); } __pyx_v_devPtr = values[0]; __pyx_v_count = __Pyx_PyInt_As_size_t(values[1]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 20868, __pyx_L3_error) __pyx_v_advice = values[2]; __pyx_v_location = ((struct __pyx_obj_4cuda_6cudart_cudaMemLocation *)values[3]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaMemAdvise_v2", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 20867, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemAdvise_v2", __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, 20868, __pyx_L1_error) } if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_location), __pyx_ptype_4cuda_6cudart_cudaMemLocation, 0, "location", 0))) __PYX_ERR(0, 20868, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_272cudaMemAdvise_v2(__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; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_272cudaMemAdvise_v2(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_devPtr, size_t __pyx_v_count, PyObject *__pyx_v_advice, struct __pyx_obj_4cuda_6cudart_cudaMemLocation *__pyx_v_location) { PyObject *__pyx_v_cdevPtr = NULL; void *__pyx_v_cdevPtr_ptr; enum cudaMemoryAdvise __pyx_v_cadvice; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; enum cudaMemoryAdvise __pyx_t_3; cudaError_t __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__484) __Pyx_RefNannySetupContext("cudaMemAdvise_v2", 1); __Pyx_TraceCall("cudaMemAdvise_v2", __pyx_f[0], 20867, 0, __PYX_ERR(0, 20867, __pyx_L1_error)); /* "cuda/cudart.pyx":21054 * :py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpyPeer`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpy3DPeerAsync`, :py:obj:`~.cudaMemPrefetchAsync`, :py:obj:`~.cuMemAdvise`, :py:obj:`~.cuMemAdvise_v2` * """ * cdevPtr = utils.HelperInputVoidPtr(devPtr) # <<<<<<<<<<<<<< * cdef void* cdevPtr_ptr = cdevPtr.cptr * cdef ccudart.cudaMemoryAdvise cadvice = advice.value */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_devPtr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21054, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_cdevPtr = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":21055 * """ * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr # <<<<<<<<<<<<<< * cdef ccudart.cudaMemoryAdvise cadvice = advice.value * with nogil: */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_cdevPtr, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21055, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21055, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cdevPtr_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":21056 * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr * cdef ccudart.cudaMemoryAdvise cadvice = advice.value # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaMemAdvise_v2(cdevPtr_ptr, count, cadvice, location._ptr[0]) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_advice, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21056, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = ((enum cudaMemoryAdvise)__Pyx_PyInt_As_enum__cudaMemoryAdvise(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21056, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cadvice = __pyx_t_3; /* "cuda/cudart.pyx":21057 * cdef void* cdevPtr_ptr = cdevPtr.cptr * cdef ccudart.cudaMemoryAdvise cadvice = advice.value * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemAdvise_v2(cdevPtr_ptr, count, cadvice, location._ptr[0]) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":21058 * cdef ccudart.cudaMemoryAdvise cadvice = advice.value * with nogil: * err = ccudart.cudaMemAdvise_v2(cdevPtr_ptr, count, cadvice, location._ptr[0]) # <<<<<<<<<<<<<< * * return (cudaError_t(err),) */ __pyx_t_4 = __pyx_f_4cuda_7ccudart_cudaMemAdvise_v2(__pyx_v_cdevPtr_ptr, __pyx_v_count, __pyx_v_cadvice, (__pyx_v_location->_ptr[0])); if (unlikely(__pyx_t_4 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 21058, __pyx_L4_error) __pyx_v_err = __pyx_t_4; } /* "cuda/cudart.pyx":21057 * cdef void* cdevPtr_ptr = cdevPtr.cptr * cdef ccudart.cudaMemoryAdvise cadvice = advice.value * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemAdvise_v2(cdevPtr_ptr, count, cadvice, location._ptr[0]) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L5; } __pyx_L4_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L5:; } } /* "cuda/cudart.pyx":21060 * err = ccudart.cudaMemAdvise_v2(cdevPtr_ptr, count, cadvice, location._ptr[0]) * * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21060, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 21060, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21060, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21060, __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)) __PYX_ERR(0, 21060, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":20867 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemAdvise_v2(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_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.cudaMemAdvise_v2", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_cdevPtr); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":21062 * return (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_6cudart_275cudaMemRangeGetAttribute(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_274cudaMemRangeGetAttribute, "cudaMemRangeGetAttribute(size_t dataSize, attribute: cudaMemRangeAttribute, devPtr, size_t count)\n Query an attribute of a given memory range.\n\n Query an attribute about the memory range starting at `devPtr` with a\n size of `count` bytes. The memory range must refer to managed memory\n allocated via :py:obj:`~.cudaMallocManaged` or declared via managed\n variables.\n\n The `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 returned 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,\n or :py:obj:`~.cudaMemLocationType` will be\n "":py:obj:`~.cudaMemLocationTypeHost` if all pages in the memory\n range 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 node 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\n of 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 integer,\n and `dataSize` must be 4. If the\n :py:obj:`~.cudaMemRangeAttributePreferredLocationType` query for the\n same address range returns :py:obj:`~.cudaMemLocationTypeDevice`, it\n will be a valid device ordinal or if it returns\n :py:obj:`~.cudaMemLocationTypeHostNuma`, it will be a valid host NUMA\n node ID or if it returns any other location type, the id should be\n 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\n prefetched 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\n CPU or :py:obj:`~.cudaMemLocationTypeHostNuma` if the last prefetch\n location was a specific host NUMA node. If any page in the memory\n ran""ge 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 operation to that location has completed or even\n begun.\n\n - :py:obj:`~.cudaMemRangeAttributeLastPrefetchLocationId`: If this\n attribute is specified, `data` will be interpreted as a 32-bit integer,\n and `dataSize` must be 4. If the\n :py:obj:`~.cudaMemRangeAttributeLastPrefetchLocationType` query for the\n same address range returns :py:obj:`~.cudaMemLocationTypeDevice`, it\n will be a valid device ordinal or if it returns\n :py:obj:`~.cudaMemLocationTypeHostNuma`, it will be a valid host NUMA\n node ID or if it returns any other location type, the id should be\n ignored.\n\n Parameters\n ----------\n dataSize : size_t\n Array containing the size of data\n attribute : :py:obj:`~.cudaMemRangeAttribute`\n The attribute to query\n devPtr : Any\n Start of the range to query\n count : size_t\n Size of the range to query\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n data : Any\n A pointers to a memory location where the result of each attribute\n query will be written to.\n\n See Also\n --------\n :py:obj:`~.cudaMemRangeGetAttributes`, :py:obj:`~.cudaMemPrefetchAsync`, :py:obj:`~.cudaMemAdvise`, :py:obj:`~.cuMemRangeGetAttribute`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_275cudaMemRangeGetAttribute = {"cudaMemRangeGetAttribute", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_275cudaMemRangeGetAttribute, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_274cudaMemRangeGetAttribute}; static PyObject *__pyx_pw_4cuda_6cudart_275cudaMemRangeGetAttribute(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dataSize,&__pyx_n_s_attribute,&__pyx_n_s_devPtr_2,&__pyx_n_s_count,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dataSize)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21062, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_attribute)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21062, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemRangeGetAttribute", 1, 4, 4, 1); __PYX_ERR(0, 21062, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_devPtr_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21062, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemRangeGetAttribute", 1, 4, 4, 2); __PYX_ERR(0, 21062, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_count)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21062, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemRangeGetAttribute", 1, 4, 4, 3); __PYX_ERR(0, 21062, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemRangeGetAttribute") < 0)) __PYX_ERR(0, 21062, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); } __pyx_v_dataSize = __Pyx_PyInt_As_size_t(values[0]); if (unlikely((__pyx_v_dataSize == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21063, __pyx_L3_error) __pyx_v_attribute = values[1]; __pyx_v_devPtr = values[2]; __pyx_v_count = __Pyx_PyInt_As_size_t(values[3]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21063, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaMemRangeGetAttribute", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 21062, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 21063, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_274cudaMemRangeGetAttribute(__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; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_274cudaMemRangeGetAttribute(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_4_lib_5utils_HelperCUmem_range_attribute *__pyx_v_cdata = 0; void *__pyx_v_cdata_ptr; enum cudaMemRangeAttribute __pyx_v_cattribute; PyObject *__pyx_v_cdevPtr = NULL; void *__pyx_v_cdevPtr_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; enum cudaMemRangeAttribute __pyx_t_4; cudaError_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__485) __Pyx_RefNannySetupContext("cudaMemRangeGetAttribute", 1); __Pyx_TraceCall("cudaMemRangeGetAttribute", __pyx_f[0], 21062, 0, __PYX_ERR(0, 21062, __pyx_L1_error)); /* "cuda/cudart.pyx":21199 * :py:obj:`~.cudaMemRangeGetAttributes`, :py:obj:`~.cudaMemPrefetchAsync`, :py:obj:`~.cudaMemAdvise`, :py:obj:`~.cuMemRangeGetAttribute` * """ * cdef utils.HelperCUmem_range_attribute cdata = utils.HelperCUmem_range_attribute(attribute, dataSize) # <<<<<<<<<<<<<< * cdef void* cdata_ptr = cdata.cptr * cdef ccudart.cudaMemRangeAttribute cattribute = attribute.value */ __pyx_t_1 = __Pyx_PyInt_FromSize_t(__pyx_v_dataSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21199, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21199, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_attribute); __Pyx_GIVEREF(__pyx_v_attribute); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_attribute)) __PYX_ERR(0, 21199, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1)) __PYX_ERR(0, 21199, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperCUmem_range_attribute), __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21199, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_cdata = ((struct __pyx_obj_4cuda_4_lib_5utils_HelperCUmem_range_attribute *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":21200 * """ * cdef utils.HelperCUmem_range_attribute cdata = utils.HelperCUmem_range_attribute(attribute, dataSize) * cdef void* cdata_ptr = cdata.cptr # <<<<<<<<<<<<<< * cdef ccudart.cudaMemRangeAttribute cattribute = attribute.value * cdevPtr = utils.HelperInputVoidPtr(devPtr) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cdata), __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21200, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cdata_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":21201 * cdef utils.HelperCUmem_range_attribute cdata = utils.HelperCUmem_range_attribute(attribute, dataSize) * cdef void* cdata_ptr = cdata.cptr * cdef ccudart.cudaMemRangeAttribute cattribute = attribute.value # <<<<<<<<<<<<<< * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_attribute, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21201, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = ((enum cudaMemRangeAttribute)__Pyx_PyInt_As_enum__cudaMemRangeAttribute(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21201, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cattribute = __pyx_t_4; /* "cuda/cudart.pyx":21202 * cdef void* cdata_ptr = cdata.cptr * cdef ccudart.cudaMemRangeAttribute cattribute = attribute.value * cdevPtr = utils.HelperInputVoidPtr(devPtr) # <<<<<<<<<<<<<< * cdef void* cdevPtr_ptr = cdevPtr.cptr * err = ccudart.cudaMemRangeGetAttribute(cdata_ptr, dataSize, cattribute, cdevPtr_ptr, count) */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_devPtr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21202, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_cdevPtr = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":21203 * cdef ccudart.cudaMemRangeAttribute cattribute = attribute.value * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr # <<<<<<<<<<<<<< * err = ccudart.cudaMemRangeGetAttribute(cdata_ptr, dataSize, cattribute, cdevPtr_ptr, count) * return (cudaError_t(err), cdata.pyObj()) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_cdevPtr, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21203, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21203, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cdevPtr_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":21204 * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr * err = ccudart.cudaMemRangeGetAttribute(cdata_ptr, dataSize, cattribute, cdevPtr_ptr, count) # <<<<<<<<<<<<<< * return (cudaError_t(err), cdata.pyObj()) * */ __pyx_t_5 = __pyx_f_4cuda_7ccudart_cudaMemRangeGetAttribute(__pyx_v_cdata_ptr, __pyx_v_dataSize, __pyx_v_cattribute, __pyx_v_cdevPtr_ptr, __pyx_v_count); if (unlikely(__pyx_t_5 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 21204, __pyx_L1_error) __pyx_v_err = __pyx_t_5; /* "cuda/cudart.pyx":21205 * cdef void* cdevPtr_ptr = cdevPtr.cptr * err = ccudart.cudaMemRangeGetAttribute(cdata_ptr, dataSize, cattribute, cdevPtr_ptr, count) * return (cudaError_t(err), cdata.pyObj()) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 21205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cdata), __pyx_n_s_pyObj); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 21205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_6))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, NULL}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_6, __pyx_callargs+1-__pyx_t_8, 0+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 21205, __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)) __PYX_ERR(0, 21205, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_2)) __PYX_ERR(0, 21205, __pyx_L1_error); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":21062 * return (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_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.cudaMemRangeGetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_cdata); __Pyx_XDECREF(__pyx_v_cdevPtr); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":21207 * return (cudaError_t(err), cdata.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_6cudart_277cudaMemRangeGetAttributes(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_276cudaMemRangeGetAttributes, "cudaMemRangeGetAttributes(dataSizes: Tuple[int] | List[int], attributes: Optional[Tuple[cudaMemRangeAttribute] | List[cudaMemRangeAttribute]], size_t numAttributes, devPtr, size_t count)\n Query attributes of a given memory range.\n\n Query attributes of the memory range starting at `devPtr` with a size\n of `count` bytes. The memory range must refer to managed memory\n allocated via :py:obj:`~.cudaMallocManaged` or declared via managed\n variables. The `attributes` array will be interpreted to have\n `numAttributes` entries. The `dataSizes` array will also be interpreted\n to have `numAttributes` entries. The results of the query will be\n stored in `data`.\n\n The list of supported attributes are given below. Please refer to\n :py:obj:`~.cudaMemRangeGetAttribute` for attribute descriptions and\n restrictions.\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\n Parameters\n ----------\n dataSizes : List[int]\n Array containing the sizes of each result\n attributes : List[:py:obj:`~.cudaMemRangeAttribute`]\n An array of attributes to query (numAttributes and the number of\n attributes in this array should match)\n numAttributes : size_t\n Number of attributes to query\n devPtr : Any\n Start of the range to query\n count : size_t\n Size of the range to query\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n data : 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\n See Also\n --------\n :py:obj:`~.cudaMemRangeGetAttribute`, :py:obj:`~.cudaMemAdvise`, :py:obj:`~.cudaMemPrefetchAsync`, :py:obj:`~.cuMemRangeGetAttributes`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_277cudaMemRangeGetAttributes = {"cudaMemRangeGetAttributes", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_277cudaMemRangeGetAttributes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_276cudaMemRangeGetAttributes}; static PyObject *__pyx_pw_4cuda_6cudart_277cudaMemRangeGetAttributes(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dataSizes,&__pyx_n_s_attributes,&__pyx_n_s_numAttributes,&__pyx_n_s_devPtr_2,&__pyx_n_s_count,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dataSizes)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21207, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_attributes)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21207, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemRangeGetAttributes", 1, 5, 5, 1); __PYX_ERR(0, 21207, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_numAttributes)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21207, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemRangeGetAttributes", 1, 5, 5, 2); __PYX_ERR(0, 21207, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_devPtr_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21207, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemRangeGetAttributes", 1, 5, 5, 3); __PYX_ERR(0, 21207, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_count)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[4]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21207, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemRangeGetAttributes", 1, 5, 5, 4); __PYX_ERR(0, 21207, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemRangeGetAttributes") < 0)) __PYX_ERR(0, 21207, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 5)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); } __pyx_v_dataSizes = values[0]; __pyx_v_attributes = values[1]; __pyx_v_numAttributes = __Pyx_PyInt_As_size_t(values[2]); if (unlikely((__pyx_v_numAttributes == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21208, __pyx_L3_error) __pyx_v_devPtr = values[3]; __pyx_v_count = __Pyx_PyInt_As_size_t(values[4]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21208, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaMemRangeGetAttributes", 1, 5, 5, __pyx_nargs); __PYX_ERR(0, 21207, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemRangeGetAttributes", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_276cudaMemRangeGetAttributes(__pyx_self, __pyx_v_dataSizes, __pyx_v_attributes, __pyx_v_numAttributes, __pyx_v_devPtr, __pyx_v_count); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_25cudaMemRangeGetAttributes_2generator9(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":21266 * """ * 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[ccudart.cudaMemRangeAttribute] or List[ccudart.cudaMemRangeAttribute]") * if not all(isinstance(_x, (int)) for _x in dataSizes): */ static PyObject *__pyx_pf_4cuda_6cudart_25cudaMemRangeGetAttributes_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct_9_genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_9_genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_9_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_9_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 21266, __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_6cudart_25cudaMemRangeGetAttributes_2generator9, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaMemRangeGetAttributes_locals, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 21266, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.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_6cudart_25cudaMemRangeGetAttributes_2generator9(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_9_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_9_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 21266, 0, __PYX_ERR(0, 21266, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 21266, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 21266, __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, 21266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21266, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 21266, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 21266, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 21266, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 21266, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 21266, __pyx_L1_error) } 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_n_s_cudaMemRangeAttribute); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21266, __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, 21266, __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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_25cudaMemRangeGetAttributes_5generator10(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":21268 * if not all(isinstance(_x, (cudaMemRangeAttribute)) for _x in attributes): * raise TypeError("Argument 'attributes' is not instance of type (expected Tuple[ccudart.cudaMemRangeAttribute] or List[ccudart.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 = [utils.HelperCUmem_range_attribute(pyattributes, pydataSizes) for (pyattributes, pydataSizes) in zip(attributes, dataSizes)] */ static PyObject *__pyx_pf_4cuda_6cudart_25cudaMemRangeGetAttributes_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct_10_genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_10_genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_10_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_10_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 21268, __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_6cudart_25cudaMemRangeGetAttributes_5generator10, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaMemRangeGetAttributes_locals, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 21268, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.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_6cudart_25cudaMemRangeGetAttributes_5generator10(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_10_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_10_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 21268, 0, __PYX_ERR(0, 21268, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 21268, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 21268, __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, 21268, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21268, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 21268, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 21268, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21268, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 21268, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 21268, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21268, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 21268, __pyx_L1_error) } 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 = PyInt_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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":21207 * return (cudaError_t(err), cdata.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_6cudart_276cudaMemRangeGetAttributes(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_4_lib_5utils_InputVoidPtrPtrHelper *__pyx_v_voidStarHelperdata = 0; void **__pyx_v_cvoidStarHelper_ptr; std::vector __pyx_v_cdataSizes; std::vector __pyx_v_cattributes; PyObject *__pyx_v_cdevPtr = NULL; void *__pyx_v_cdevPtr_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_gb_4cuda_6cudart_25cudaMemRangeGetAttributes_2generator9 = 0; PyObject *__pyx_gb_4cuda_6cudart_25cudaMemRangeGetAttributes_5generator10 = 0; PyObject *__pyx_10genexpr112__pyx_v_pyattributes = NULL; PyObject *__pyx_10genexpr112__pyx_v_pydataSizes = NULL; PyObject *__pyx_10genexpr113__pyx_v_pyattributes = NULL; PyObject *__pyx_10genexpr114__pyx_v_obj = NULL; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; Py_ssize_t __pyx_t_6; PyObject *(*__pyx_t_7)(PyObject *); PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; PyObject *__pyx_t_10 = NULL; PyObject *(*__pyx_t_11)(PyObject *); __pyx_t_4cuda_6cudart_void_ptr __pyx_t_12; std::vector __pyx_t_13; std::vector __pyx_t_14; cudaError_t __pyx_t_15; unsigned int __pyx_t_16; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__486) __Pyx_RefNannySetupContext("cudaMemRangeGetAttributes", 0); __Pyx_TraceCall("cudaMemRangeGetAttributes", __pyx_f[0], 21207, 0, __PYX_ERR(0, 21207, __pyx_L1_error)); __Pyx_INCREF(__pyx_v_attributes); /* "cuda/cudart.pyx":21265 * :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[ccudart.cudaMemRangeAttribute] or List[ccudart.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, 21265, __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/cudart.pyx":21266 * """ * 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[ccudart.cudaMemRangeAttribute] or List[ccudart.cudaMemRangeAttribute]") * if not all(isinstance(_x, (int)) for _x in dataSizes): */ __pyx_t_1 = __pyx_pf_4cuda_6cudart_25cudaMemRangeGetAttributes_genexpr(NULL, __pyx_v_attributes); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21266, __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, 21266, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_4 = (!__pyx_t_2); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":21267 * 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[ccudart.cudaMemRangeAttribute] or List[ccudart.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_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__487, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21267, __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, 21267, __pyx_L1_error) /* "cuda/cudart.pyx":21266 * """ * 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[ccudart.cudaMemRangeAttribute] or List[ccudart.cudaMemRangeAttribute]") * if not all(isinstance(_x, (int)) for _x in dataSizes): */ } /* "cuda/cudart.pyx":21268 * if not all(isinstance(_x, (cudaMemRangeAttribute)) for _x in attributes): * raise TypeError("Argument 'attributes' is not instance of type (expected Tuple[ccudart.cudaMemRangeAttribute] or List[ccudart.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 = [utils.HelperCUmem_range_attribute(pyattributes, pydataSizes) for (pyattributes, pydataSizes) in zip(attributes, dataSizes)] */ __pyx_t_3 = __pyx_pf_4cuda_6cudart_25cudaMemRangeGetAttributes_3genexpr(NULL, __pyx_v_dataSizes); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21268, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_Generator_Next(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21268, __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, 21268, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_2 = (!__pyx_t_4); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":21269 * raise TypeError("Argument 'attributes' is not instance of type (expected Tuple[ccudart.cudaMemRangeAttribute] or List[ccudart.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 = [utils.HelperCUmem_range_attribute(pyattributes, pydataSizes) for (pyattributes, pydataSizes) in zip(attributes, dataSizes)] * cdef utils.InputVoidPtrPtrHelper voidStarHelperdata = utils.InputVoidPtrPtrHelper(pylist) */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__488, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21269, __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, 21269, __pyx_L1_error) /* "cuda/cudart.pyx":21268 * if not all(isinstance(_x, (cudaMemRangeAttribute)) for _x in attributes): * raise TypeError("Argument 'attributes' is not instance of type (expected Tuple[ccudart.cudaMemRangeAttribute] or List[ccudart.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 = [utils.HelperCUmem_range_attribute(pyattributes, pydataSizes) for (pyattributes, pydataSizes) in zip(attributes, dataSizes)] */ } /* "cuda/cudart.pyx":21270 * 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 = [utils.HelperCUmem_range_attribute(pyattributes, pydataSizes) for (pyattributes, pydataSizes) in zip(attributes, dataSizes)] # <<<<<<<<<<<<<< * cdef utils.InputVoidPtrPtrHelper voidStarHelperdata = utils.InputVoidPtrPtrHelper(pylist) * cdef void** cvoidStarHelper_ptr = voidStarHelperdata.cptr */ { /* enter inner scope */ __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21270, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21270, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v_attributes); __Pyx_GIVEREF(__pyx_v_attributes); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_attributes)) __PYX_ERR(0, 21270, __pyx_L7_error); __Pyx_INCREF(__pyx_v_dataSizes); __Pyx_GIVEREF(__pyx_v_dataSizes); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_dataSizes)) __PYX_ERR(0, 21270, __pyx_L7_error); __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_zip, __pyx_t_3, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21270, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (likely(PyList_CheckExact(__pyx_t_5)) || PyTuple_CheckExact(__pyx_t_5)) { __pyx_t_3 = __pyx_t_5; __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_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21270, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21270, __pyx_L7_error) } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 21270, __pyx_L7_error) #endif if (__pyx_t_6 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_5 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_6); __Pyx_INCREF(__pyx_t_5); __pyx_t_6++; if (unlikely((0 < 0))) __PYX_ERR(0, 21270, __pyx_L7_error) #else __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21270, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 21270, __pyx_L7_error) #endif if (__pyx_t_6 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_6); __Pyx_INCREF(__pyx_t_5); __pyx_t_6++; if (unlikely((0 < 0))) __PYX_ERR(0, 21270, __pyx_L7_error) #else __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21270, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); #endif } } else { __pyx_t_5 = __pyx_t_7(__pyx_t_3); if (unlikely(!__pyx_t_5)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 21270, __pyx_L7_error) } break; } __Pyx_GOTREF(__pyx_t_5); } if ((likely(PyTuple_CheckExact(__pyx_t_5))) || (PyList_CheckExact(__pyx_t_5))) { PyObject* sequence = __pyx_t_5; 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, 21270, __pyx_L7_error) } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS if (likely(PyTuple_CheckExact(sequence))) { __pyx_t_8 = PyTuple_GET_ITEM(sequence, 0); __pyx_t_9 = PyTuple_GET_ITEM(sequence, 1); } else { __pyx_t_8 = PyList_GET_ITEM(sequence, 0); __pyx_t_9 = PyList_GET_ITEM(sequence, 1); } __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(__pyx_t_9); #else __pyx_t_8 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 21270, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 21270, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_9); #endif __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else { Py_ssize_t index = -1; __pyx_t_10 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 21270, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_11 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_10); index = 0; __pyx_t_8 = __pyx_t_11(__pyx_t_10); if (unlikely(!__pyx_t_8)) goto __pyx_L10_unpacking_failed; __Pyx_GOTREF(__pyx_t_8); index = 1; __pyx_t_9 = __pyx_t_11(__pyx_t_10); if (unlikely(!__pyx_t_9)) goto __pyx_L10_unpacking_failed; __Pyx_GOTREF(__pyx_t_9); if (__Pyx_IternextUnpackEndCheck(__pyx_t_11(__pyx_t_10), 2) < 0) __PYX_ERR(0, 21270, __pyx_L7_error) __pyx_t_11 = NULL; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; goto __pyx_L11_unpacking_done; __pyx_L10_unpacking_failed:; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_11 = NULL; if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); __PYX_ERR(0, 21270, __pyx_L7_error) __pyx_L11_unpacking_done:; } __Pyx_XDECREF_SET(__pyx_10genexpr112__pyx_v_pyattributes, __pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF_SET(__pyx_10genexpr112__pyx_v_pydataSizes, __pyx_t_9); __pyx_t_9 = 0; __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21270, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_INCREF(__pyx_10genexpr112__pyx_v_pyattributes); __Pyx_GIVEREF(__pyx_10genexpr112__pyx_v_pyattributes); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_10genexpr112__pyx_v_pyattributes)) __PYX_ERR(0, 21270, __pyx_L7_error); __Pyx_INCREF(__pyx_10genexpr112__pyx_v_pydataSizes); __Pyx_GIVEREF(__pyx_10genexpr112__pyx_v_pydataSizes); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_10genexpr112__pyx_v_pydataSizes)) __PYX_ERR(0, 21270, __pyx_L7_error); __pyx_t_9 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperCUmem_range_attribute), __pyx_t_5, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 21270, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_9))) __PYX_ERR(0, 21270, __pyx_L7_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_10genexpr112__pyx_v_pyattributes); __pyx_10genexpr112__pyx_v_pyattributes = 0; __Pyx_XDECREF(__pyx_10genexpr112__pyx_v_pydataSizes); __pyx_10genexpr112__pyx_v_pydataSizes = 0; goto __pyx_L13_exit_scope; __pyx_L7_error:; __Pyx_XDECREF(__pyx_10genexpr112__pyx_v_pyattributes); __pyx_10genexpr112__pyx_v_pyattributes = 0; __Pyx_XDECREF(__pyx_10genexpr112__pyx_v_pydataSizes); __pyx_10genexpr112__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/cudart.pyx":21271 * raise TypeError("Argument 'dataSizes' is not instance of type (expected Tuple[int] or List[int]") * pylist = [utils.HelperCUmem_range_attribute(pyattributes, pydataSizes) for (pyattributes, pydataSizes) in zip(attributes, dataSizes)] * cdef utils.InputVoidPtrPtrHelper voidStarHelperdata = utils.InputVoidPtrPtrHelper(pylist) # <<<<<<<<<<<<<< * cdef void** cvoidStarHelper_ptr = voidStarHelperdata.cptr * cdef vector[size_t] cdataSizes = dataSizes */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_InputVoidPtrPtrHelper), __pyx_v_pylist); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21271, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_voidStarHelperdata = ((struct __pyx_obj_4cuda_4_lib_5utils_InputVoidPtrPtrHelper *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":21272 * pylist = [utils.HelperCUmem_range_attribute(pyattributes, pydataSizes) for (pyattributes, pydataSizes) in zip(attributes, dataSizes)] * cdef utils.InputVoidPtrPtrHelper voidStarHelperdata = utils.InputVoidPtrPtrHelper(pylist) * cdef void** cvoidStarHelper_ptr = voidStarHelperdata.cptr # <<<<<<<<<<<<<< * cdef vector[size_t] cdataSizes = dataSizes * cdef vector[ccudart.cudaMemRangeAttribute] cattributes = [pyattributes.value for pyattributes in (attributes)] */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_voidStarHelperdata), __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21272, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_12 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_12 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21272, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cvoidStarHelper_ptr = ((void **)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_12)); /* "cuda/cudart.pyx":21273 * cdef utils.InputVoidPtrPtrHelper voidStarHelperdata = utils.InputVoidPtrPtrHelper(pylist) * cdef void** cvoidStarHelper_ptr = voidStarHelperdata.cptr * cdef vector[size_t] cdataSizes = dataSizes # <<<<<<<<<<<<<< * cdef vector[ccudart.cudaMemRangeAttribute] cattributes = [pyattributes.value for pyattributes in (attributes)] * if numAttributes > len(dataSizes): raise RuntimeError("List is too small: " + str(len(dataSizes)) + " < " + str(numAttributes)) */ __pyx_t_13 = __pyx_convert_vector_from_py_size_t(__pyx_v_dataSizes); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21273, __pyx_L1_error) __pyx_v_cdataSizes = __PYX_STD_MOVE_IF_SUPPORTED(__pyx_t_13); /* "cuda/cudart.pyx":21274 * cdef void** cvoidStarHelper_ptr = voidStarHelperdata.cptr * cdef vector[size_t] cdataSizes = dataSizes * cdef vector[ccudart.cudaMemRangeAttribute] cattributes = [pyattributes.value for pyattributes in (attributes)] # <<<<<<<<<<<<<< * if numAttributes > len(dataSizes): raise RuntimeError("List is too small: " + str(len(dataSizes)) + " < " + str(numAttributes)) * if numAttributes > 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, 21274, __pyx_L16_error) __Pyx_GOTREF(__pyx_t_1); if (likely(PyList_CheckExact(__pyx_v_attributes)) || PyTuple_CheckExact(__pyx_v_attributes)) { __pyx_t_3 = __pyx_v_attributes; __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_attributes); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21274, __pyx_L16_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21274, __pyx_L16_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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 21274, __pyx_L16_error) #endif if (__pyx_t_6 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_9 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_6); __Pyx_INCREF(__pyx_t_9); __pyx_t_6++; if (unlikely((0 < 0))) __PYX_ERR(0, 21274, __pyx_L16_error) #else __pyx_t_9 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 21274, __pyx_L16_error) __Pyx_GOTREF(__pyx_t_9); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 21274, __pyx_L16_error) #endif if (__pyx_t_6 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_9 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_6); __Pyx_INCREF(__pyx_t_9); __pyx_t_6++; if (unlikely((0 < 0))) __PYX_ERR(0, 21274, __pyx_L16_error) #else __pyx_t_9 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 21274, __pyx_L16_error) __Pyx_GOTREF(__pyx_t_9); #endif } } else { __pyx_t_9 = __pyx_t_7(__pyx_t_3); if (unlikely(!__pyx_t_9)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 21274, __pyx_L16_error) } break; } __Pyx_GOTREF(__pyx_t_9); } __Pyx_XDECREF_SET(__pyx_10genexpr113__pyx_v_pyattributes, __pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_10genexpr113__pyx_v_pyattributes, __pyx_n_s_value); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 21274, __pyx_L16_error) __Pyx_GOTREF(__pyx_t_9); if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_9))) __PYX_ERR(0, 21274, __pyx_L16_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_10genexpr113__pyx_v_pyattributes); __pyx_10genexpr113__pyx_v_pyattributes = 0; goto __pyx_L20_exit_scope; __pyx_L16_error:; __Pyx_XDECREF(__pyx_10genexpr113__pyx_v_pyattributes); __pyx_10genexpr113__pyx_v_pyattributes = 0; goto __pyx_L1_error; __pyx_L20_exit_scope:; } /* exit inner scope */ __pyx_t_14 = __pyx_convert_vector_from_py_enum__cudaMemRangeAttribute(__pyx_t_1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21274, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cattributes = __PYX_STD_MOVE_IF_SUPPORTED(__pyx_t_14); /* "cuda/cudart.pyx":21275 * cdef vector[size_t] cdataSizes = dataSizes * cdef vector[ccudart.cudaMemRangeAttribute] cattributes = [pyattributes.value for pyattributes in (attributes)] * if numAttributes > len(dataSizes): raise RuntimeError("List is too small: " + str(len(dataSizes)) + " < " + str(numAttributes)) # <<<<<<<<<<<<<< * if numAttributes > len(attributes): raise RuntimeError("List is too small: " + str(len(attributes)) + " < " + str(numAttributes)) * cdevPtr = utils.HelperInputVoidPtr(devPtr) */ __pyx_t_6 = PyObject_Length(__pyx_v_dataSizes); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 21275, __pyx_L1_error) __pyx_t_2 = (__pyx_v_numAttributes > ((size_t)__pyx_t_6)); if (unlikely(__pyx_t_2)) { __pyx_t_6 = PyObject_Length(__pyx_v_dataSizes); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 21275, __pyx_L1_error) __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21275, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21275, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_kp_u_List_is_too_small, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21275, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_kp_u__400); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21275, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyInt_FromSize_t(__pyx_v_numAttributes); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21275, __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, 21275, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21275, __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 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 21275, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_9, 0, 0, 0); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __PYX_ERR(0, 21275, __pyx_L1_error) } /* "cuda/cudart.pyx":21276 * cdef vector[ccudart.cudaMemRangeAttribute] cattributes = [pyattributes.value for pyattributes in (attributes)] * if numAttributes > len(dataSizes): raise RuntimeError("List is too small: " + str(len(dataSizes)) + " < " + str(numAttributes)) * if numAttributes > len(attributes): raise RuntimeError("List is too small: " + str(len(attributes)) + " < " + str(numAttributes)) # <<<<<<<<<<<<<< * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr */ __pyx_t_6 = PyObject_Length(__pyx_v_attributes); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 21276, __pyx_L1_error) __pyx_t_2 = (__pyx_v_numAttributes > ((size_t)__pyx_t_6)); if (unlikely(__pyx_t_2)) { __pyx_t_6 = PyObject_Length(__pyx_v_attributes); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 21276, __pyx_L1_error) __pyx_t_9 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 21276, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21276, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyUnicode_Concat(__pyx_kp_u_List_is_too_small, __pyx_t_1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 21276, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_9, __pyx_kp_u__400); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21276, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyInt_FromSize_t(__pyx_v_numAttributes); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 21276, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21276, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_9 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 21276, __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 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21276, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 21276, __pyx_L1_error) } /* "cuda/cudart.pyx":21277 * if numAttributes > len(dataSizes): raise RuntimeError("List is too small: " + str(len(dataSizes)) + " < " + str(numAttributes)) * if numAttributes > len(attributes): raise RuntimeError("List is too small: " + str(len(attributes)) + " < " + str(numAttributes)) * cdevPtr = utils.HelperInputVoidPtr(devPtr) # <<<<<<<<<<<<<< * cdef void* cdevPtr_ptr = cdevPtr.cptr * err = ccudart.cudaMemRangeGetAttributes(cvoidStarHelper_ptr, cdataSizes.data(), cattributes.data(), numAttributes, cdevPtr_ptr, count) */ __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_devPtr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21277, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_cdevPtr = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":21278 * if numAttributes > len(attributes): raise RuntimeError("List is too small: " + str(len(attributes)) + " < " + str(numAttributes)) * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr # <<<<<<<<<<<<<< * err = ccudart.cudaMemRangeGetAttributes(cvoidStarHelper_ptr, cdataSizes.data(), cattributes.data(), numAttributes, cdevPtr_ptr, count) * return (cudaError_t(err), [obj.pyObj() for obj in pylist]) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_cdevPtr, __pyx_n_s_cptr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21278, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_12 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_3); if (unlikely((__pyx_t_12 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21278, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_cdevPtr_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_12)); /* "cuda/cudart.pyx":21279 * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr * err = ccudart.cudaMemRangeGetAttributes(cvoidStarHelper_ptr, cdataSizes.data(), cattributes.data(), numAttributes, cdevPtr_ptr, count) # <<<<<<<<<<<<<< * return (cudaError_t(err), [obj.pyObj() for obj in pylist]) * */ __pyx_t_15 = __pyx_f_4cuda_7ccudart_cudaMemRangeGetAttributes(__pyx_v_cvoidStarHelper_ptr, __pyx_v_cdataSizes.data(), __pyx_v_cattributes.data(), __pyx_v_numAttributes, __pyx_v_cdevPtr_ptr, __pyx_v_count); if (unlikely(__pyx_t_15 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 21279, __pyx_L1_error) __pyx_v_err = __pyx_t_15; /* "cuda/cudart.pyx":21280 * cdef void* cdevPtr_ptr = cdevPtr.cptr * err = ccudart.cudaMemRangeGetAttributes(cvoidStarHelper_ptr, cdataSizes.data(), cattributes.data(), numAttributes, cdevPtr_ptr, count) * return (cudaError_t(err), [obj.pyObj() for obj in pylist]) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 21280, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_1 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21280, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = NULL; __pyx_t_16 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_9))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_9); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_9, function); __pyx_t_16 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_1}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_9, __pyx_callargs+1-__pyx_t_16, 1+__pyx_t_16); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21280, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } { /* enter inner scope */ __pyx_t_9 = PyList_New(0); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 21280, __pyx_L25_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_1 = __pyx_v_pylist; __Pyx_INCREF(__pyx_t_1); __pyx_t_6 = 0; for (;;) { { Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 21280, __pyx_L25_error) #endif if (__pyx_t_6 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_5 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_6); __Pyx_INCREF(__pyx_t_5); __pyx_t_6++; if (unlikely((0 < 0))) __PYX_ERR(0, 21280, __pyx_L25_error) #else __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21280, __pyx_L25_error) __Pyx_GOTREF(__pyx_t_5); #endif __Pyx_XDECREF_SET(__pyx_10genexpr114__pyx_v_obj, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_10genexpr114__pyx_v_obj, __pyx_n_s_pyObj); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 21280, __pyx_L25_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_10 = NULL; __pyx_t_16 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_8))) { __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_8); if (likely(__pyx_t_10)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); __Pyx_INCREF(__pyx_t_10); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_8, function); __pyx_t_16 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_10, NULL}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_8, __pyx_callargs+1-__pyx_t_16, 0+__pyx_t_16); __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21280, __pyx_L25_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } if (unlikely(__Pyx_ListComp_Append(__pyx_t_9, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 21280, __pyx_L25_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_10genexpr114__pyx_v_obj); __pyx_10genexpr114__pyx_v_obj = 0; goto __pyx_L29_exit_scope; __pyx_L25_error:; __Pyx_XDECREF(__pyx_10genexpr114__pyx_v_obj); __pyx_10genexpr114__pyx_v_obj = 0; goto __pyx_L1_error; __pyx_L29_exit_scope:; } /* exit inner scope */ __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21280, __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)) __PYX_ERR(0, 21280, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_9); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_9)) __PYX_ERR(0, 21280, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_9 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":21207 * return (cudaError_t(err), cdata.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_5); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_XDECREF(__pyx_t_10); __Pyx_AddTraceback("cuda.cudart.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(__pyx_v_cdevPtr); __Pyx_XDECREF(__pyx_gb_4cuda_6cudart_25cudaMemRangeGetAttributes_2generator9); __Pyx_XDECREF(__pyx_gb_4cuda_6cudart_25cudaMemRangeGetAttributes_5generator10); __Pyx_XDECREF(__pyx_10genexpr112__pyx_v_pyattributes); __Pyx_XDECREF(__pyx_10genexpr112__pyx_v_pydataSizes); __Pyx_XDECREF(__pyx_10genexpr113__pyx_v_pyattributes); __Pyx_XDECREF(__pyx_10genexpr114__pyx_v_obj); __Pyx_XDECREF(__pyx_v_attributes); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":21282 * return (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_6cudart_279cudaMemcpyToArray(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_278cudaMemcpyToArray, "cudaMemcpyToArray(dst, size_t wOffset, size_t hOffset, src, size_t count, kind: cudaMemcpyKind)\n Copies data between host and device.\n\n [Deprecated]\n\n Copies `count` bytes from the memory area pointed to by `src` to the\n CUDA array `dst` starting at `hOffset` rows and `wOffset` bytes from\n the upper left corner, where `kind` specifies the direction of the\n 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.\n\n Parameters\n ----------\n dst : :py:obj:`~.cudaArray_t`\n Destination memory address\n wOffset : size_t\n Destination starting X offset (columns in bytes)\n hOffset : size_t\n Destination starting Y offset (rows)\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:`~.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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_279cudaMemcpyToArray = {"cudaMemcpyToArray", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_279cudaMemcpyToArray, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_278cudaMemcpyToArray}; static PyObject *__pyx_pw_4cuda_6cudart_279cudaMemcpyToArray(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dst_2,&__pyx_n_s_wOffset,&__pyx_n_s_hOffset,&__pyx_n_s_src,&__pyx_n_s_count,&__pyx_n_s_kind_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 6: values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dst_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21282, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_wOffset)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21282, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyToArray", 1, 6, 6, 1); __PYX_ERR(0, 21282, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hOffset)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21282, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyToArray", 1, 6, 6, 2); __PYX_ERR(0, 21282, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_src)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21282, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyToArray", 1, 6, 6, 3); __PYX_ERR(0, 21282, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_count)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[4]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21282, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyToArray", 1, 6, 6, 4); __PYX_ERR(0, 21282, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_kind_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[5]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21282, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyToArray", 1, 6, 6, 5); __PYX_ERR(0, 21282, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemcpyToArray") < 0)) __PYX_ERR(0, 21282, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 6)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5); } __pyx_v_dst = values[0]; __pyx_v_wOffset = __Pyx_PyInt_As_size_t(values[1]); if (unlikely((__pyx_v_wOffset == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21283, __pyx_L3_error) __pyx_v_hOffset = __Pyx_PyInt_As_size_t(values[2]); if (unlikely((__pyx_v_hOffset == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21283, __pyx_L3_error) __pyx_v_src = values[3]; __pyx_v_count = __Pyx_PyInt_As_size_t(values[4]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21283, __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, 21282, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 21283, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_278cudaMemcpyToArray(__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; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_278cudaMemcpyToArray(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_cdst; PyObject *__pyx_v_pdst = NULL; PyObject *__pyx_v_csrc = NULL; void *__pyx_v_csrc_ptr; enum cudaMemcpyKind __pyx_v_ckind; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; enum cudaMemcpyKind __pyx_t_5; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__489) __Pyx_RefNannySetupContext("cudaMemcpyToArray", 1); __Pyx_TraceCall("cudaMemcpyToArray", __pyx_f[0], 21282, 0, __PYX_ERR(0, 21282, __pyx_L1_error)); /* "cuda/cudart.pyx":21324 * """ * cdef ccudart.cudaArray_t cdst * if dst is None: # <<<<<<<<<<<<<< * cdst = 0 * elif isinstance(dst, (cudaArray_t,)): */ __pyx_t_1 = (__pyx_v_dst == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":21325 * cdef ccudart.cudaArray_t cdst * if dst is None: * cdst = 0 # <<<<<<<<<<<<<< * elif isinstance(dst, (cudaArray_t,)): * pdst = int(dst) */ __pyx_v_cdst = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":21324 * """ * cdef ccudart.cudaArray_t cdst * if dst is None: # <<<<<<<<<<<<<< * cdst = 0 * elif isinstance(dst, (cudaArray_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":21326 * if dst is None: * cdst = 0 * elif isinstance(dst, (cudaArray_t,)): # <<<<<<<<<<<<<< * pdst = int(dst) * cdst = pdst */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_dst, __pyx_ptype_4cuda_6cudart_cudaArray_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":21327 * cdst = 0 * elif isinstance(dst, (cudaArray_t,)): * pdst = int(dst) # <<<<<<<<<<<<<< * cdst = pdst * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_dst); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21327, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_pdst = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":21328 * elif isinstance(dst, (cudaArray_t,)): * pdst = int(dst) * cdst = pdst # <<<<<<<<<<<<<< * else: * pdst = int(cudaArray_t(dst)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pdst); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21328, __pyx_L1_error) __pyx_v_cdst = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":21326 * if dst is None: * cdst = 0 * elif isinstance(dst, (cudaArray_t,)): # <<<<<<<<<<<<<< * pdst = int(dst) * cdst = pdst */ goto __pyx_L3; } /* "cuda/cudart.pyx":21330 * cdst = pdst * else: * pdst = int(cudaArray_t(dst)) # <<<<<<<<<<<<<< * cdst = pdst * csrc = utils.HelperInputVoidPtr(src) */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_t), __pyx_v_dst); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21330, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21330, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_pdst = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":21331 * else: * pdst = int(cudaArray_t(dst)) * cdst = pdst # <<<<<<<<<<<<<< * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pdst); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21331, __pyx_L1_error) __pyx_v_cdst = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":21332 * pdst = int(cudaArray_t(dst)) * cdst = pdst * csrc = utils.HelperInputVoidPtr(src) # <<<<<<<<<<<<<< * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value */ __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_src); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21332, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_csrc = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":21333 * cdst = pdst * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr # <<<<<<<<<<<<<< * cdef ccudart.cudaMemcpyKind ckind = kind.value * err = ccudart.cudaMemcpyToArray(cdst, wOffset, hOffset, csrc_ptr, count, ckind) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_csrc, __pyx_n_s_cptr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21333, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_4); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21333, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_csrc_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":21334 * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value # <<<<<<<<<<<<<< * err = ccudart.cudaMemcpyToArray(cdst, wOffset, hOffset, csrc_ptr, count, ckind) * return (cudaError_t(err),) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_kind, __pyx_n_s_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21334, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = ((enum cudaMemcpyKind)__Pyx_PyInt_As_enum__cudaMemcpyKind(__pyx_t_4)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21334, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_ckind = __pyx_t_5; /* "cuda/cudart.pyx":21335 * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value * err = ccudart.cudaMemcpyToArray(cdst, wOffset, hOffset, csrc_ptr, count, ckind) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaMemcpyToArray(__pyx_v_cdst, __pyx_v_wOffset, __pyx_v_hOffset, __pyx_v_csrc_ptr, __pyx_v_count, __pyx_v_ckind); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 21335, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":21336 * cdef ccudart.cudaMemcpyKind ckind = kind.value * err = ccudart.cudaMemcpyToArray(cdst, wOffset, hOffset, csrc_ptr, count, ckind) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21336, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21336, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21336, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21336, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 21336, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":21282 * return (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_4); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaMemcpyToArray", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pdst); __Pyx_XDECREF(__pyx_v_csrc); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":21338 * return (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_6cudart_281cudaMemcpyFromArray(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_280cudaMemcpyFromArray, "cudaMemcpyFromArray(dst, src, size_t wOffset, size_t hOffset, size_t count, kind: cudaMemcpyKind)\n Copies data between host and device.\n\n [Deprecated]\n\n Copies `count` bytes from the CUDA array `src` starting at `hOffset`\n rows and `wOffset` bytes from the upper left corner to the memory area\n pointed to by `dst`, where `kind` specifies the direction of the copy,\n 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.\n\n Parameters\n ----------\n dst : Any\n Destination memory address\n src : :py:obj:`~.cudaArray_const_t`\n Source memory address\n wOffset : size_t\n Source starting X offset (columns in bytes)\n hOffset : size_t\n Source starting Y offset (rows)\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:`~.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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_281cudaMemcpyFromArray = {"cudaMemcpyFromArray", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_281cudaMemcpyFromArray, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_280cudaMemcpyFromArray}; static PyObject *__pyx_pw_4cuda_6cudart_281cudaMemcpyFromArray(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dst_2,&__pyx_n_s_src,&__pyx_n_s_wOffset,&__pyx_n_s_hOffset,&__pyx_n_s_count,&__pyx_n_s_kind_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 6: values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dst_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21338, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_src)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21338, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyFromArray", 1, 6, 6, 1); __PYX_ERR(0, 21338, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_wOffset)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21338, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyFromArray", 1, 6, 6, 2); __PYX_ERR(0, 21338, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hOffset)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21338, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyFromArray", 1, 6, 6, 3); __PYX_ERR(0, 21338, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_count)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[4]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21338, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyFromArray", 1, 6, 6, 4); __PYX_ERR(0, 21338, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_kind_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[5]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21338, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyFromArray", 1, 6, 6, 5); __PYX_ERR(0, 21338, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemcpyFromArray") < 0)) __PYX_ERR(0, 21338, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 6)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5); } __pyx_v_dst = values[0]; __pyx_v_src = values[1]; __pyx_v_wOffset = __Pyx_PyInt_As_size_t(values[2]); if (unlikely((__pyx_v_wOffset == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21339, __pyx_L3_error) __pyx_v_hOffset = __Pyx_PyInt_As_size_t(values[3]); if (unlikely((__pyx_v_hOffset == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21339, __pyx_L3_error) __pyx_v_count = __Pyx_PyInt_As_size_t(values[4]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21339, __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, 21338, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 21339, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_280cudaMemcpyFromArray(__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; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_280cudaMemcpyFromArray(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_csrc; PyObject *__pyx_v_psrc = NULL; PyObject *__pyx_v_cdst = NULL; void *__pyx_v_cdst_ptr; enum cudaMemcpyKind __pyx_v_ckind; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; enum cudaMemcpyKind __pyx_t_5; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__490) __Pyx_RefNannySetupContext("cudaMemcpyFromArray", 1); __Pyx_TraceCall("cudaMemcpyFromArray", __pyx_f[0], 21338, 0, __PYX_ERR(0, 21338, __pyx_L1_error)); /* "cuda/cudart.pyx":21380 * """ * cdef ccudart.cudaArray_const_t csrc * if src is None: # <<<<<<<<<<<<<< * csrc = 0 * elif isinstance(src, (cudaArray_const_t,)): */ __pyx_t_1 = (__pyx_v_src == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":21381 * cdef ccudart.cudaArray_const_t csrc * if src is None: * csrc = 0 # <<<<<<<<<<<<<< * elif isinstance(src, (cudaArray_const_t,)): * psrc = int(src) */ __pyx_v_csrc = ((cudaArray_const_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":21380 * """ * cdef ccudart.cudaArray_const_t csrc * if src is None: # <<<<<<<<<<<<<< * csrc = 0 * elif isinstance(src, (cudaArray_const_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":21382 * if src is None: * csrc = 0 * elif isinstance(src, (cudaArray_const_t,)): # <<<<<<<<<<<<<< * psrc = int(src) * csrc = psrc */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_src, __pyx_ptype_4cuda_6cudart_cudaArray_const_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":21383 * csrc = 0 * elif isinstance(src, (cudaArray_const_t,)): * psrc = int(src) # <<<<<<<<<<<<<< * csrc = psrc * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_src); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21383, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_psrc = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":21384 * elif isinstance(src, (cudaArray_const_t,)): * psrc = int(src) * csrc = psrc # <<<<<<<<<<<<<< * else: * psrc = int(cudaArray_const_t(src)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_psrc); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21384, __pyx_L1_error) __pyx_v_csrc = ((cudaArray_const_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":21382 * if src is None: * csrc = 0 * elif isinstance(src, (cudaArray_const_t,)): # <<<<<<<<<<<<<< * psrc = int(src) * csrc = psrc */ goto __pyx_L3; } /* "cuda/cudart.pyx":21386 * csrc = psrc * else: * psrc = int(cudaArray_const_t(src)) # <<<<<<<<<<<<<< * csrc = psrc * cdst = utils.HelperInputVoidPtr(dst) */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_const_t), __pyx_v_src); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21386, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21386, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_psrc = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":21387 * else: * psrc = int(cudaArray_const_t(src)) * csrc = psrc # <<<<<<<<<<<<<< * cdst = utils.HelperInputVoidPtr(dst) * cdef void* cdst_ptr = cdst.cptr */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_psrc); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21387, __pyx_L1_error) __pyx_v_csrc = ((cudaArray_const_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":21388 * psrc = int(cudaArray_const_t(src)) * csrc = psrc * cdst = utils.HelperInputVoidPtr(dst) # <<<<<<<<<<<<<< * cdef void* cdst_ptr = cdst.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value */ __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_dst); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21388, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_cdst = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":21389 * csrc = psrc * cdst = utils.HelperInputVoidPtr(dst) * cdef void* cdst_ptr = cdst.cptr # <<<<<<<<<<<<<< * cdef ccudart.cudaMemcpyKind ckind = kind.value * err = ccudart.cudaMemcpyFromArray(cdst_ptr, csrc, wOffset, hOffset, count, ckind) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_cdst, __pyx_n_s_cptr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21389, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_4); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21389, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_cdst_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":21390 * cdst = utils.HelperInputVoidPtr(dst) * cdef void* cdst_ptr = cdst.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value # <<<<<<<<<<<<<< * err = ccudart.cudaMemcpyFromArray(cdst_ptr, csrc, wOffset, hOffset, count, ckind) * return (cudaError_t(err),) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_kind, __pyx_n_s_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21390, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = ((enum cudaMemcpyKind)__Pyx_PyInt_As_enum__cudaMemcpyKind(__pyx_t_4)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21390, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_ckind = __pyx_t_5; /* "cuda/cudart.pyx":21391 * cdef void* cdst_ptr = cdst.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value * err = ccudart.cudaMemcpyFromArray(cdst_ptr, csrc, wOffset, hOffset, count, ckind) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaMemcpyFromArray(__pyx_v_cdst_ptr, __pyx_v_csrc, __pyx_v_wOffset, __pyx_v_hOffset, __pyx_v_count, __pyx_v_ckind); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 21391, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":21392 * cdef ccudart.cudaMemcpyKind ckind = kind.value * err = ccudart.cudaMemcpyFromArray(cdst_ptr, csrc, wOffset, hOffset, count, ckind) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21392, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21392, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21392, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21392, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 21392, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":21338 * return (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_4); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaMemcpyFromArray", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_psrc); __Pyx_XDECREF(__pyx_v_cdst); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":21394 * return (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_6cudart_283cudaMemcpyArrayToArray(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_282cudaMemcpyArrayToArray, "cudaMemcpyArrayToArray(dst, size_t wOffsetDst, size_t hOffsetDst, src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, kind: cudaMemcpyKind)\n Copies data between host and device.\n\n [Deprecated]\n\n Copies `count` bytes from the CUDA array `src` starting at `hOffsetSrc`\n rows and `wOffsetSrc` bytes from the upper left corner to the CUDA\n array `dst` starting at `hOffsetDst` rows and `wOffsetDst` bytes from\n the upper left corner, where `kind` specifies the direction of the\n 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.\n\n Parameters\n ----------\n dst : :py:obj:`~.cudaArray_t`\n Destination memory address\n wOffsetDst : size_t\n Destination starting X offset (columns in bytes)\n hOffsetDst : size_t\n Destination starting Y offset (rows)\n src : :py:obj:`~.cudaArray_const_t`\n Source memory address\n wOffsetSrc : size_t\n Source starting X offset (columns in bytes)\n hOffsetSrc : size_t\n Source starting Y offset (rows)\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:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpy2D`, :py:obj:`~.cudaMemcpyToArray`, :py:obj:`~.cudaMemcpy2DToArray`, :py:obj:`~.cudaMemcpyFromArray`, :py:obj:`~.cudaMemcpy2DFromArray`, :py:obj:`~.cudaMemcpy2DArrayToArray`, :py:obj:`~.cudaMemcpyTo""Symbol`, :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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_283cudaMemcpyArrayToArray = {"cudaMemcpyArrayToArray", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_283cudaMemcpyArrayToArray, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_282cudaMemcpyArrayToArray}; static PyObject *__pyx_pw_4cuda_6cudart_283cudaMemcpyArrayToArray(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dst_2,&__pyx_n_s_wOffsetDst,&__pyx_n_s_hOffsetDst,&__pyx_n_s_src,&__pyx_n_s_wOffsetSrc,&__pyx_n_s_hOffsetSrc,&__pyx_n_s_count,&__pyx_n_s_kind_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 8: values[7] = __Pyx_Arg_FASTCALL(__pyx_args, 7); CYTHON_FALLTHROUGH; case 7: values[6] = __Pyx_Arg_FASTCALL(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dst_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21394, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_wOffsetDst)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21394, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyArrayToArray", 1, 8, 8, 1); __PYX_ERR(0, 21394, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hOffsetDst)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21394, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyArrayToArray", 1, 8, 8, 2); __PYX_ERR(0, 21394, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_src)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21394, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyArrayToArray", 1, 8, 8, 3); __PYX_ERR(0, 21394, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_wOffsetSrc)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[4]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21394, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyArrayToArray", 1, 8, 8, 4); __PYX_ERR(0, 21394, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hOffsetSrc)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[5]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21394, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyArrayToArray", 1, 8, 8, 5); __PYX_ERR(0, 21394, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 6: if (likely((values[6] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_count)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[6]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21394, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyArrayToArray", 1, 8, 8, 6); __PYX_ERR(0, 21394, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 7: if (likely((values[7] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_kind_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[7]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21394, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyArrayToArray", 1, 8, 8, 7); __PYX_ERR(0, 21394, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemcpyArrayToArray") < 0)) __PYX_ERR(0, 21394, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 8)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5); values[6] = __Pyx_Arg_FASTCALL(__pyx_args, 6); values[7] = __Pyx_Arg_FASTCALL(__pyx_args, 7); } __pyx_v_dst = values[0]; __pyx_v_wOffsetDst = __Pyx_PyInt_As_size_t(values[1]); if (unlikely((__pyx_v_wOffsetDst == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21395, __pyx_L3_error) __pyx_v_hOffsetDst = __Pyx_PyInt_As_size_t(values[2]); if (unlikely((__pyx_v_hOffsetDst == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21395, __pyx_L3_error) __pyx_v_src = values[3]; __pyx_v_wOffsetSrc = __Pyx_PyInt_As_size_t(values[4]); if (unlikely((__pyx_v_wOffsetSrc == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21395, __pyx_L3_error) __pyx_v_hOffsetSrc = __Pyx_PyInt_As_size_t(values[5]); if (unlikely((__pyx_v_hOffsetSrc == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21395, __pyx_L3_error) __pyx_v_count = __Pyx_PyInt_As_size_t(values[6]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21395, __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, 21394, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 21395, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_282cudaMemcpyArrayToArray(__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; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_282cudaMemcpyArrayToArray(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_csrc; PyObject *__pyx_v_psrc = NULL; cudaArray_t __pyx_v_cdst; PyObject *__pyx_v_pdst = NULL; enum cudaMemcpyKind __pyx_v_ckind; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; enum cudaMemcpyKind __pyx_t_5; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__491) __Pyx_RefNannySetupContext("cudaMemcpyArrayToArray", 1); __Pyx_TraceCall("cudaMemcpyArrayToArray", __pyx_f[0], 21394, 0, __PYX_ERR(0, 21394, __pyx_L1_error)); /* "cuda/cudart.pyx":21441 * """ * cdef ccudart.cudaArray_const_t csrc * if src is None: # <<<<<<<<<<<<<< * csrc = 0 * elif isinstance(src, (cudaArray_const_t,)): */ __pyx_t_1 = (__pyx_v_src == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":21442 * cdef ccudart.cudaArray_const_t csrc * if src is None: * csrc = 0 # <<<<<<<<<<<<<< * elif isinstance(src, (cudaArray_const_t,)): * psrc = int(src) */ __pyx_v_csrc = ((cudaArray_const_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":21441 * """ * cdef ccudart.cudaArray_const_t csrc * if src is None: # <<<<<<<<<<<<<< * csrc = 0 * elif isinstance(src, (cudaArray_const_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":21443 * if src is None: * csrc = 0 * elif isinstance(src, (cudaArray_const_t,)): # <<<<<<<<<<<<<< * psrc = int(src) * csrc = psrc */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_src, __pyx_ptype_4cuda_6cudart_cudaArray_const_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":21444 * csrc = 0 * elif isinstance(src, (cudaArray_const_t,)): * psrc = int(src) # <<<<<<<<<<<<<< * csrc = psrc * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_src); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21444, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_psrc = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":21445 * elif isinstance(src, (cudaArray_const_t,)): * psrc = int(src) * csrc = psrc # <<<<<<<<<<<<<< * else: * psrc = int(cudaArray_const_t(src)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_psrc); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21445, __pyx_L1_error) __pyx_v_csrc = ((cudaArray_const_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":21443 * if src is None: * csrc = 0 * elif isinstance(src, (cudaArray_const_t,)): # <<<<<<<<<<<<<< * psrc = int(src) * csrc = psrc */ goto __pyx_L3; } /* "cuda/cudart.pyx":21447 * csrc = psrc * else: * psrc = int(cudaArray_const_t(src)) # <<<<<<<<<<<<<< * csrc = psrc * cdef ccudart.cudaArray_t cdst */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_const_t), __pyx_v_src); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21447, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21447, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_psrc = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":21448 * else: * psrc = int(cudaArray_const_t(src)) * csrc = psrc # <<<<<<<<<<<<<< * cdef ccudart.cudaArray_t cdst * if dst is None: */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_psrc); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21448, __pyx_L1_error) __pyx_v_csrc = ((cudaArray_const_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":21450 * csrc = psrc * cdef ccudart.cudaArray_t cdst * if dst is None: # <<<<<<<<<<<<<< * cdst = 0 * elif isinstance(dst, (cudaArray_t,)): */ __pyx_t_1 = (__pyx_v_dst == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":21451 * cdef ccudart.cudaArray_t cdst * if dst is None: * cdst = 0 # <<<<<<<<<<<<<< * elif isinstance(dst, (cudaArray_t,)): * pdst = int(dst) */ __pyx_v_cdst = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":21450 * csrc = psrc * cdef ccudart.cudaArray_t cdst * if dst is None: # <<<<<<<<<<<<<< * cdst = 0 * elif isinstance(dst, (cudaArray_t,)): */ goto __pyx_L4; } /* "cuda/cudart.pyx":21452 * if dst is None: * cdst = 0 * elif isinstance(dst, (cudaArray_t,)): # <<<<<<<<<<<<<< * pdst = int(dst) * cdst = pdst */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_dst, __pyx_ptype_4cuda_6cudart_cudaArray_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":21453 * cdst = 0 * elif isinstance(dst, (cudaArray_t,)): * pdst = int(dst) # <<<<<<<<<<<<<< * cdst = pdst * else: */ __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_dst); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21453, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_pdst = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":21454 * elif isinstance(dst, (cudaArray_t,)): * pdst = int(dst) * cdst = pdst # <<<<<<<<<<<<<< * else: * pdst = int(cudaArray_t(dst)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pdst); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21454, __pyx_L1_error) __pyx_v_cdst = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":21452 * if dst is None: * cdst = 0 * elif isinstance(dst, (cudaArray_t,)): # <<<<<<<<<<<<<< * pdst = int(dst) * cdst = pdst */ goto __pyx_L4; } /* "cuda/cudart.pyx":21456 * cdst = pdst * else: * pdst = int(cudaArray_t(dst)) # <<<<<<<<<<<<<< * cdst = pdst * cdef ccudart.cudaMemcpyKind ckind = kind.value */ /*else*/ { __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_t), __pyx_v_dst); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21456, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21456, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_pdst = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":21457 * else: * pdst = int(cudaArray_t(dst)) * cdst = pdst # <<<<<<<<<<<<<< * cdef ccudart.cudaMemcpyKind ckind = kind.value * err = ccudart.cudaMemcpyArrayToArray(cdst, wOffsetDst, hOffsetDst, csrc, wOffsetSrc, hOffsetSrc, count, ckind) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pdst); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21457, __pyx_L1_error) __pyx_v_cdst = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L4:; /* "cuda/cudart.pyx":21458 * pdst = int(cudaArray_t(dst)) * cdst = pdst * cdef ccudart.cudaMemcpyKind ckind = kind.value # <<<<<<<<<<<<<< * err = ccudart.cudaMemcpyArrayToArray(cdst, wOffsetDst, hOffsetDst, csrc, wOffsetSrc, hOffsetSrc, count, ckind) * return (cudaError_t(err),) */ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_kind, __pyx_n_s_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21458, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = ((enum cudaMemcpyKind)__Pyx_PyInt_As_enum__cudaMemcpyKind(__pyx_t_2)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21458, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_ckind = __pyx_t_5; /* "cuda/cudart.pyx":21459 * cdst = pdst * cdef ccudart.cudaMemcpyKind ckind = kind.value * err = ccudart.cudaMemcpyArrayToArray(cdst, wOffsetDst, hOffsetDst, csrc, wOffsetSrc, hOffsetSrc, count, ckind) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaMemcpyArrayToArray(__pyx_v_cdst, __pyx_v_wOffsetDst, __pyx_v_hOffsetDst, __pyx_v_csrc, __pyx_v_wOffsetSrc, __pyx_v_hOffsetSrc, __pyx_v_count, __pyx_v_ckind); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 21459, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":21460 * cdef ccudart.cudaMemcpyKind ckind = kind.value * err = ccudart.cudaMemcpyArrayToArray(cdst, wOffsetDst, hOffsetDst, csrc, wOffsetSrc, hOffsetSrc, count, ckind) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21460, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21460, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21460, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21460, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 21460, __pyx_L1_error); __pyx_t_2 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":21394 * return (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_4); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":21462 * return (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_6cudart_285cudaMemcpyToArrayAsync(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_284cudaMemcpyToArrayAsync, "cudaMemcpyToArrayAsync(dst, size_t wOffset, size_t hOffset, src, size_t count, kind: cudaMemcpyKind, stream)\n Copies data between host and device.\n\n [Deprecated]\n\n Copies `count` bytes from the memory area pointed to by `src` to the\n CUDA array `dst` starting at `hOffset` rows and `wOffset` bytes from\n the upper left corner, where `kind` specifies the direction of the\n 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.\n\n :py:obj:`~.cudaMemcpyToArrayAsync()` is asynchronous with respect to\n the host, so the call may return before the copy is complete. The copy\n can optionally be associated to a stream by passing a non-zero `stream`\n argument. If `kind` is :py:obj:`~.cudaMemcpyHostToDevice` or\n :py:obj:`~.cudaMemcpyDeviceToHost` and `stream` is non-zero, the copy\n may overlap with operations in other streams.\n\n Parameters\n ----------\n dst : :py:obj:`~.cudaArray_t`\n Destination memory address\n wOffset : size_t\n Destination starting X offset (columns in bytes)\n hOffset : size_t\n Destination starting Y offset (rows)\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 stream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n Stream identifier\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:`~.cudaMemcp""y`, :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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_285cudaMemcpyToArrayAsync = {"cudaMemcpyToArrayAsync", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_285cudaMemcpyToArrayAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_284cudaMemcpyToArrayAsync}; static PyObject *__pyx_pw_4cuda_6cudart_285cudaMemcpyToArrayAsync(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dst_2,&__pyx_n_s_wOffset,&__pyx_n_s_hOffset,&__pyx_n_s_src,&__pyx_n_s_count,&__pyx_n_s_kind_2,&__pyx_n_s_stream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 7: values[6] = __Pyx_Arg_FASTCALL(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dst_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21462, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_wOffset)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21462, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyToArrayAsync", 1, 7, 7, 1); __PYX_ERR(0, 21462, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hOffset)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21462, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyToArrayAsync", 1, 7, 7, 2); __PYX_ERR(0, 21462, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_src)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21462, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyToArrayAsync", 1, 7, 7, 3); __PYX_ERR(0, 21462, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_count)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[4]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21462, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyToArrayAsync", 1, 7, 7, 4); __PYX_ERR(0, 21462, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_kind_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[5]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21462, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyToArrayAsync", 1, 7, 7, 5); __PYX_ERR(0, 21462, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 6: if (likely((values[6] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[6]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21462, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyToArrayAsync", 1, 7, 7, 6); __PYX_ERR(0, 21462, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemcpyToArrayAsync") < 0)) __PYX_ERR(0, 21462, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 7)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5); values[6] = __Pyx_Arg_FASTCALL(__pyx_args, 6); } __pyx_v_dst = values[0]; __pyx_v_wOffset = __Pyx_PyInt_As_size_t(values[1]); if (unlikely((__pyx_v_wOffset == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21463, __pyx_L3_error) __pyx_v_hOffset = __Pyx_PyInt_As_size_t(values[2]); if (unlikely((__pyx_v_hOffset == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21463, __pyx_L3_error) __pyx_v_src = values[3]; __pyx_v_count = __Pyx_PyInt_As_size_t(values[4]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21463, __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, 21462, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 21463, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_284cudaMemcpyToArrayAsync(__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; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_284cudaMemcpyToArrayAsync(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_cstream; PyObject *__pyx_v_pstream = NULL; cudaArray_t __pyx_v_cdst; PyObject *__pyx_v_pdst = NULL; PyObject *__pyx_v_csrc = NULL; void *__pyx_v_csrc_ptr; enum cudaMemcpyKind __pyx_v_ckind; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; enum cudaMemcpyKind __pyx_t_6; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__492) __Pyx_RefNannySetupContext("cudaMemcpyToArrayAsync", 1); __Pyx_TraceCall("cudaMemcpyToArrayAsync", __pyx_f[0], 21462, 0, __PYX_ERR(0, 21462, __pyx_L1_error)); /* "cuda/cudart.pyx":21513 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_stream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":21514 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":21513 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":21515 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":21516 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21516, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pstream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":21517 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21517, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":21515 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L3; } /* "cuda/cudart.pyx":21519 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * cdef ccudart.cudaArray_t cdst */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21519, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21519, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pstream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":21520 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * cdef ccudart.cudaArray_t cdst * if dst is None: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21520, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":21522 * cstream = pstream * cdef ccudart.cudaArray_t cdst * if dst is None: # <<<<<<<<<<<<<< * cdst = 0 * elif isinstance(dst, (cudaArray_t,)): */ __pyx_t_1 = (__pyx_v_dst == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":21523 * cdef ccudart.cudaArray_t cdst * if dst is None: * cdst = 0 # <<<<<<<<<<<<<< * elif isinstance(dst, (cudaArray_t,)): * pdst = int(dst) */ __pyx_v_cdst = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":21522 * cstream = pstream * cdef ccudart.cudaArray_t cdst * if dst is None: # <<<<<<<<<<<<<< * cdst = 0 * elif isinstance(dst, (cudaArray_t,)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":21524 * if dst is None: * cdst = 0 * elif isinstance(dst, (cudaArray_t,)): # <<<<<<<<<<<<<< * pdst = int(dst) * cdst = pdst */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_dst, __pyx_ptype_4cuda_6cudart_cudaArray_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":21525 * cdst = 0 * elif isinstance(dst, (cudaArray_t,)): * pdst = int(dst) # <<<<<<<<<<<<<< * cdst = pdst * else: */ __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_v_dst); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21525, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pdst = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":21526 * elif isinstance(dst, (cudaArray_t,)): * pdst = int(dst) * cdst = pdst # <<<<<<<<<<<<<< * else: * pdst = int(cudaArray_t(dst)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pdst); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21526, __pyx_L1_error) __pyx_v_cdst = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":21524 * if dst is None: * cdst = 0 * elif isinstance(dst, (cudaArray_t,)): # <<<<<<<<<<<<<< * pdst = int(dst) * cdst = pdst */ goto __pyx_L6; } /* "cuda/cudart.pyx":21528 * cdst = pdst * else: * pdst = int(cudaArray_t(dst)) # <<<<<<<<<<<<<< * cdst = pdst * csrc = utils.HelperInputVoidPtr(src) */ /*else*/ { __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_t), __pyx_v_dst); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21528, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21528, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_pdst = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":21529 * else: * pdst = int(cudaArray_t(dst)) * cdst = pdst # <<<<<<<<<<<<<< * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pdst); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21529, __pyx_L1_error) __pyx_v_cdst = ((cudaArray_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L6:; /* "cuda/cudart.pyx":21530 * pdst = int(cudaArray_t(dst)) * cdst = pdst * csrc = utils.HelperInputVoidPtr(src) # <<<<<<<<<<<<<< * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value */ __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_src); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21530, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_csrc = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":21531 * cdst = pdst * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr # <<<<<<<<<<<<<< * cdef ccudart.cudaMemcpyKind ckind = kind.value * err = ccudart.cudaMemcpyToArrayAsync(cdst, wOffset, hOffset, csrc_ptr, count, ckind, cstream) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_csrc, __pyx_n_s_cptr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21531, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_3); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21531, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_csrc_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":21532 * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value # <<<<<<<<<<<<<< * err = ccudart.cudaMemcpyToArrayAsync(cdst, wOffset, hOffset, csrc_ptr, count, ckind, cstream) * return (cudaError_t(err),) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_kind, __pyx_n_s_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21532, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = ((enum cudaMemcpyKind)__Pyx_PyInt_As_enum__cudaMemcpyKind(__pyx_t_3)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21532, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_ckind = __pyx_t_6; /* "cuda/cudart.pyx":21533 * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value * err = ccudart.cudaMemcpyToArrayAsync(cdst, wOffset, hOffset, csrc_ptr, count, ckind, cstream) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaMemcpyToArrayAsync(__pyx_v_cdst, __pyx_v_wOffset, __pyx_v_hOffset, __pyx_v_csrc_ptr, __pyx_v_count, __pyx_v_ckind, __pyx_v_cstream); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 21533, __pyx_L1_error) __pyx_v_err = __pyx_t_7; /* "cuda/cudart.pyx":21534 * cdef ccudart.cudaMemcpyKind ckind = kind.value * err = ccudart.cudaMemcpyToArrayAsync(cdst, wOffset, hOffset, csrc_ptr, count, ckind, cstream) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21534, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_8 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 21534, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_8}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21534, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21534, __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)) __PYX_ERR(0, 21534, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":21462 * return (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_5); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.cudaMemcpyToArrayAsync", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pstream); __Pyx_XDECREF(__pyx_v_pdst); __Pyx_XDECREF(__pyx_v_csrc); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":21536 * return (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_6cudart_287cudaMemcpyFromArrayAsync(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_286cudaMemcpyFromArrayAsync, "cudaMemcpyFromArrayAsync(dst, src, size_t wOffset, size_t hOffset, size_t count, kind: cudaMemcpyKind, stream)\n Copies data between host and device.\n\n [Deprecated]\n\n Copies `count` bytes from the CUDA array `src` starting at `hOffset`\n rows and `wOffset` bytes from the upper left corner to the memory area\n pointed to by `dst`, where `kind` specifies the direction of the copy,\n 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.\n\n :py:obj:`~.cudaMemcpyFromArrayAsync()` is asynchronous with respect to\n the host, so the call may return before the copy is complete. The copy\n can optionally be associated to a stream by passing a non-zero `stream`\n argument. If `kind` is :py:obj:`~.cudaMemcpyHostToDevice` or\n :py:obj:`~.cudaMemcpyDeviceToHost` and `stream` is non-zero, the copy\n may overlap with operations in other streams.\n\n Parameters\n ----------\n dst : Any\n Destination memory address\n src : :py:obj:`~.cudaArray_const_t`\n Source memory address\n wOffset : size_t\n Source starting X offset (columns in bytes)\n hOffset : size_t\n Source starting Y offset (rows)\n count : size_t\n Size in bytes to copy\n kind : :py:obj:`~.cudaMemcpyKind`\n Type of transfer\n stream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n Stream identifier\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:`~.cudaMemcp""y`, :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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_287cudaMemcpyFromArrayAsync = {"cudaMemcpyFromArrayAsync", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_287cudaMemcpyFromArrayAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_286cudaMemcpyFromArrayAsync}; static PyObject *__pyx_pw_4cuda_6cudart_287cudaMemcpyFromArrayAsync(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_dst_2,&__pyx_n_s_src,&__pyx_n_s_wOffset,&__pyx_n_s_hOffset,&__pyx_n_s_count,&__pyx_n_s_kind_2,&__pyx_n_s_stream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 7: values[6] = __Pyx_Arg_FASTCALL(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dst_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21536, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_src)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21536, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyFromArrayAsync", 1, 7, 7, 1); __PYX_ERR(0, 21536, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_wOffset)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21536, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyFromArrayAsync", 1, 7, 7, 2); __PYX_ERR(0, 21536, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hOffset)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21536, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyFromArrayAsync", 1, 7, 7, 3); __PYX_ERR(0, 21536, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_count)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[4]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21536, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyFromArrayAsync", 1, 7, 7, 4); __PYX_ERR(0, 21536, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_kind_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[5]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21536, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyFromArrayAsync", 1, 7, 7, 5); __PYX_ERR(0, 21536, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 6: if (likely((values[6] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[6]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21536, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemcpyFromArrayAsync", 1, 7, 7, 6); __PYX_ERR(0, 21536, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemcpyFromArrayAsync") < 0)) __PYX_ERR(0, 21536, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 7)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5); values[6] = __Pyx_Arg_FASTCALL(__pyx_args, 6); } __pyx_v_dst = values[0]; __pyx_v_src = values[1]; __pyx_v_wOffset = __Pyx_PyInt_As_size_t(values[2]); if (unlikely((__pyx_v_wOffset == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21537, __pyx_L3_error) __pyx_v_hOffset = __Pyx_PyInt_As_size_t(values[3]); if (unlikely((__pyx_v_hOffset == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21537, __pyx_L3_error) __pyx_v_count = __Pyx_PyInt_As_size_t(values[4]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21537, __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, 21536, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 21537, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_286cudaMemcpyFromArrayAsync(__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; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_286cudaMemcpyFromArrayAsync(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_cstream; PyObject *__pyx_v_pstream = NULL; cudaArray_const_t __pyx_v_csrc; PyObject *__pyx_v_psrc = NULL; PyObject *__pyx_v_cdst = NULL; void *__pyx_v_cdst_ptr; enum cudaMemcpyKind __pyx_v_ckind; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; enum cudaMemcpyKind __pyx_t_6; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__493) __Pyx_RefNannySetupContext("cudaMemcpyFromArrayAsync", 1); __Pyx_TraceCall("cudaMemcpyFromArrayAsync", __pyx_f[0], 21536, 0, __PYX_ERR(0, 21536, __pyx_L1_error)); /* "cuda/cudart.pyx":21587 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_stream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":21588 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":21587 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":21589 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":21590 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21590, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pstream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":21591 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21591, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":21589 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L3; } /* "cuda/cudart.pyx":21593 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * cdef ccudart.cudaArray_const_t csrc */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21593, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21593, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pstream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":21594 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * cdef ccudart.cudaArray_const_t csrc * if src is None: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21594, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":21596 * cstream = pstream * cdef ccudart.cudaArray_const_t csrc * if src is None: # <<<<<<<<<<<<<< * csrc = 0 * elif isinstance(src, (cudaArray_const_t,)): */ __pyx_t_1 = (__pyx_v_src == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":21597 * cdef ccudart.cudaArray_const_t csrc * if src is None: * csrc = 0 # <<<<<<<<<<<<<< * elif isinstance(src, (cudaArray_const_t,)): * psrc = int(src) */ __pyx_v_csrc = ((cudaArray_const_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":21596 * cstream = pstream * cdef ccudart.cudaArray_const_t csrc * if src is None: # <<<<<<<<<<<<<< * csrc = 0 * elif isinstance(src, (cudaArray_const_t,)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":21598 * if src is None: * csrc = 0 * elif isinstance(src, (cudaArray_const_t,)): # <<<<<<<<<<<<<< * psrc = int(src) * csrc = psrc */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_src, __pyx_ptype_4cuda_6cudart_cudaArray_const_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":21599 * csrc = 0 * elif isinstance(src, (cudaArray_const_t,)): * psrc = int(src) # <<<<<<<<<<<<<< * csrc = psrc * else: */ __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_v_src); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21599, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_psrc = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":21600 * elif isinstance(src, (cudaArray_const_t,)): * psrc = int(src) * csrc = psrc # <<<<<<<<<<<<<< * else: * psrc = int(cudaArray_const_t(src)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_psrc); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21600, __pyx_L1_error) __pyx_v_csrc = ((cudaArray_const_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":21598 * if src is None: * csrc = 0 * elif isinstance(src, (cudaArray_const_t,)): # <<<<<<<<<<<<<< * psrc = int(src) * csrc = psrc */ goto __pyx_L6; } /* "cuda/cudart.pyx":21602 * csrc = psrc * else: * psrc = int(cudaArray_const_t(src)) # <<<<<<<<<<<<<< * csrc = psrc * cdst = utils.HelperInputVoidPtr(dst) */ /*else*/ { __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_const_t), __pyx_v_src); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21602, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21602, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_psrc = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":21603 * else: * psrc = int(cudaArray_const_t(src)) * csrc = psrc # <<<<<<<<<<<<<< * cdst = utils.HelperInputVoidPtr(dst) * cdef void* cdst_ptr = cdst.cptr */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_psrc); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21603, __pyx_L1_error) __pyx_v_csrc = ((cudaArray_const_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L6:; /* "cuda/cudart.pyx":21604 * psrc = int(cudaArray_const_t(src)) * csrc = psrc * cdst = utils.HelperInputVoidPtr(dst) # <<<<<<<<<<<<<< * cdef void* cdst_ptr = cdst.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value */ __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_dst); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21604, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_cdst = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":21605 * csrc = psrc * cdst = utils.HelperInputVoidPtr(dst) * cdef void* cdst_ptr = cdst.cptr # <<<<<<<<<<<<<< * cdef ccudart.cudaMemcpyKind ckind = kind.value * err = ccudart.cudaMemcpyFromArrayAsync(cdst_ptr, csrc, wOffset, hOffset, count, ckind, cstream) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_cdst, __pyx_n_s_cptr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21605, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_3); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21605, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_cdst_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":21606 * cdst = utils.HelperInputVoidPtr(dst) * cdef void* cdst_ptr = cdst.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value # <<<<<<<<<<<<<< * err = ccudart.cudaMemcpyFromArrayAsync(cdst_ptr, csrc, wOffset, hOffset, count, ckind, cstream) * return (cudaError_t(err),) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_kind, __pyx_n_s_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21606, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = ((enum cudaMemcpyKind)__Pyx_PyInt_As_enum__cudaMemcpyKind(__pyx_t_3)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21606, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_ckind = __pyx_t_6; /* "cuda/cudart.pyx":21607 * cdef void* cdst_ptr = cdst.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value * err = ccudart.cudaMemcpyFromArrayAsync(cdst_ptr, csrc, wOffset, hOffset, count, ckind, cstream) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaMemcpyFromArrayAsync(__pyx_v_cdst_ptr, __pyx_v_csrc, __pyx_v_wOffset, __pyx_v_hOffset, __pyx_v_count, __pyx_v_ckind, __pyx_v_cstream); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 21607, __pyx_L1_error) __pyx_v_err = __pyx_t_7; /* "cuda/cudart.pyx":21608 * cdef ccudart.cudaMemcpyKind ckind = kind.value * err = ccudart.cudaMemcpyFromArrayAsync(cdst_ptr, csrc, wOffset, hOffset, count, ckind, cstream) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21608, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_8 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 21608, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_8}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21608, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21608, __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)) __PYX_ERR(0, 21608, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":21536 * return (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_5); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.cudaMemcpyFromArrayAsync", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pstream); __Pyx_XDECREF(__pyx_v_psrc); __Pyx_XDECREF(__pyx_v_cdst); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":21610 * return (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_6cudart_289cudaMallocAsync(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_288cudaMallocAsync, "cudaMallocAsync(size_t size, hStream)\n Allocates memory with stream ordered semantics.\n\n Inserts an allocation operation into `hStream`. A pointer to the\n allocated memory is returned immediately in *dptr. The allocation must\n not be accessed until the the allocation operation completes. The\n allocation comes from the memory pool associated with the stream's\n device.\n\n Parameters\n ----------\n size : size_t\n Number of bytes to allocate\n hStream : :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\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorNotSupported`, :py:obj:`~.cudaErrorOutOfMemory`,\n devPtr : Any\n Returned device pointer\n\n See 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\n Notes\n -----\n The default memory pool of a device contains device memory from that device.\n\n Basic 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\n During 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.\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_289cudaMallocAsync = {"cudaMallocAsync", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_289cudaMallocAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_288cudaMallocAsync}; static PyObject *__pyx_pw_4cuda_6cudart_289cudaMallocAsync(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_size_2,&__pyx_n_s_hStream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_size_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21610, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hStream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21610, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMallocAsync", 1, 2, 2, 1); __PYX_ERR(0, 21610, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMallocAsync") < 0)) __PYX_ERR(0, 21610, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_size = __Pyx_PyInt_As_size_t(values[0]); if (unlikely((__pyx_v_size == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21611, __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, 21610, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMallocAsync", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_288cudaMallocAsync(__pyx_self, __pyx_v_size, __pyx_v_hStream); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_288cudaMallocAsync(CYTHON_UNUSED PyObject *__pyx_self, size_t __pyx_v_size, PyObject *__pyx_v_hStream) { cudaStream_t __pyx_v_chStream; PyObject *__pyx_v_phStream = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_v_devPtr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__494) __Pyx_RefNannySetupContext("cudaMallocAsync", 1); __Pyx_TraceCall("cudaMallocAsync", __pyx_f[0], 21610, 0, __PYX_ERR(0, 21610, __pyx_L1_error)); /* "cuda/cudart.pyx":21648 * """ * cdef ccudart.cudaStream_t chStream * if hStream is None: # <<<<<<<<<<<<<< * chStream = 0 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_hStream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":21649 * cdef ccudart.cudaStream_t chStream * if hStream is None: * chStream = 0 # <<<<<<<<<<<<<< * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): * phStream = int(hStream) */ __pyx_v_chStream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":21648 * """ * cdef ccudart.cudaStream_t chStream * if hStream is None: # <<<<<<<<<<<<<< * chStream = 0 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":21650 * if hStream is None: * chStream = 0 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * phStream = int(hStream) * chStream = phStream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hStream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":21651 * chStream = 0 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): * phStream = int(hStream) # <<<<<<<<<<<<<< * chStream = phStream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hStream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21651, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_phStream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":21652 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): * phStream = int(hStream) * chStream = phStream # <<<<<<<<<<<<<< * else: * phStream = int(cudaStream_t(hStream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phStream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21652, __pyx_L1_error) __pyx_v_chStream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":21650 * if hStream is None: * chStream = 0 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * phStream = int(hStream) * chStream = phStream */ goto __pyx_L3; } /* "cuda/cudart.pyx":21654 * chStream = phStream * else: * phStream = int(cudaStream_t(hStream)) # <<<<<<<<<<<<<< * chStream = phStream * cdef void_ptr devPtr = 0 */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_hStream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21654, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21654, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_phStream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":21655 * else: * phStream = int(cudaStream_t(hStream)) * chStream = phStream # <<<<<<<<<<<<<< * cdef void_ptr devPtr = 0 * with nogil: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phStream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21655, __pyx_L1_error) __pyx_v_chStream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":21656 * phStream = int(cudaStream_t(hStream)) * chStream = phStream * cdef void_ptr devPtr = 0 # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaMallocAsync(&devPtr, size, chStream) */ __pyx_v_devPtr = 0; /* "cuda/cudart.pyx":21657 * chStream = phStream * cdef void_ptr devPtr = 0 * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMallocAsync(&devPtr, size, chStream) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":21658 * cdef void_ptr devPtr = 0 * with nogil: * err = ccudart.cudaMallocAsync(&devPtr, size, chStream) # <<<<<<<<<<<<<< * * return (cudaError_t(err), devPtr) */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaMallocAsync(((void **)(&__pyx_v_devPtr)), __pyx_v_size, __pyx_v_chStream); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 21658, __pyx_L7_error) __pyx_v_err = __pyx_t_6; } /* "cuda/cudart.pyx":21657 * chStream = phStream * cdef void_ptr devPtr = 0 * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMallocAsync(&devPtr, size, chStream) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L8; } __pyx_L7_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L8:; } } /* "cuda/cudart.pyx":21660 * err = ccudart.cudaMallocAsync(&devPtr, size, chStream) * * return (cudaError_t(err), devPtr) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21660, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21660, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21660, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(__pyx_v_devPtr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21660, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21660, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5)) __PYX_ERR(0, 21660, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_3)) __PYX_ERR(0, 21660, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_3 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":21610 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaMallocAsync", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_phStream); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":21662 * return (cudaError_t(err), devPtr) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaFreeAsync(devPtr, hStream): * """ Frees memory with stream ordered semantics. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_291cudaFreeAsync(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_290cudaFreeAsync, "cudaFreeAsync(devPtr, hStream)\n Frees memory with stream ordered semantics.\n\n Inserts a free operation into `hStream`. The allocation must not be\n accessed after stream execution reaches the free. After this API\n returns, accessing the memory from any subsequent work launched on the\n GPU or querying its pointer attributes results in undefined behavior.\n\n Parameters\n ----------\n dptr : Any\n memory to free\n hStream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n The stream establishing the stream ordering promise\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorNotSupported`\n\n See Also\n --------\n :py:obj:`~.cuMemFreeAsync`, :py:obj:`~.cudaMallocAsync`\n\n Notes\n -----\n During stream capture, this function results in the creation of a free node and must therefore be passed the address of a graph allocation.\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_291cudaFreeAsync = {"cudaFreeAsync", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_291cudaFreeAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_290cudaFreeAsync}; static PyObject *__pyx_pw_4cuda_6cudart_291cudaFreeAsync(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_devPtr_2,&__pyx_n_s_hStream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_devPtr_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21662, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hStream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21662, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaFreeAsync", 1, 2, 2, 1); __PYX_ERR(0, 21662, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaFreeAsync") < 0)) __PYX_ERR(0, 21662, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __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, 21662, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaFreeAsync", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_290cudaFreeAsync(__pyx_self, __pyx_v_devPtr, __pyx_v_hStream); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_290cudaFreeAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_devPtr, PyObject *__pyx_v_hStream) { cudaStream_t __pyx_v_chStream; PyObject *__pyx_v_phStream = NULL; PyObject *__pyx_v_cdevPtr = NULL; void *__pyx_v_cdevPtr_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__495) __Pyx_RefNannySetupContext("cudaFreeAsync", 1); __Pyx_TraceCall("cudaFreeAsync", __pyx_f[0], 21662, 0, __PYX_ERR(0, 21662, __pyx_L1_error)); /* "cuda/cudart.pyx":21692 * """ * cdef ccudart.cudaStream_t chStream * if hStream is None: # <<<<<<<<<<<<<< * chStream = 0 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_hStream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":21693 * cdef ccudart.cudaStream_t chStream * if hStream is None: * chStream = 0 # <<<<<<<<<<<<<< * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): * phStream = int(hStream) */ __pyx_v_chStream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":21692 * """ * cdef ccudart.cudaStream_t chStream * if hStream is None: # <<<<<<<<<<<<<< * chStream = 0 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":21694 * if hStream is None: * chStream = 0 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * phStream = int(hStream) * chStream = phStream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hStream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":21695 * chStream = 0 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): * phStream = int(hStream) # <<<<<<<<<<<<<< * chStream = phStream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hStream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21695, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_phStream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":21696 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): * phStream = int(hStream) * chStream = phStream # <<<<<<<<<<<<<< * else: * phStream = int(cudaStream_t(hStream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phStream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21696, __pyx_L1_error) __pyx_v_chStream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":21694 * if hStream is None: * chStream = 0 * elif isinstance(hStream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * phStream = int(hStream) * chStream = phStream */ goto __pyx_L3; } /* "cuda/cudart.pyx":21698 * chStream = phStream * else: * phStream = int(cudaStream_t(hStream)) # <<<<<<<<<<<<<< * chStream = phStream * cdevPtr = utils.HelperInputVoidPtr(devPtr) */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_hStream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21698, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21698, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_phStream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":21699 * else: * phStream = int(cudaStream_t(hStream)) * chStream = phStream # <<<<<<<<<<<<<< * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phStream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21699, __pyx_L1_error) __pyx_v_chStream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":21700 * phStream = int(cudaStream_t(hStream)) * chStream = phStream * cdevPtr = utils.HelperInputVoidPtr(devPtr) # <<<<<<<<<<<<<< * cdef void* cdevPtr_ptr = cdevPtr.cptr * with nogil: */ __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_devPtr); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21700, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_cdevPtr = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":21701 * chStream = phStream * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaFreeAsync(cdevPtr_ptr, chStream) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_cdevPtr, __pyx_n_s_cptr); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21701, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21701, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_cdevPtr_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":21702 * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaFreeAsync(cdevPtr_ptr, chStream) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":21703 * cdef void* cdevPtr_ptr = cdevPtr.cptr * with nogil: * err = ccudart.cudaFreeAsync(cdevPtr_ptr, chStream) # <<<<<<<<<<<<<< * * return (cudaError_t(err),) */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaFreeAsync(__pyx_v_cdevPtr_ptr, __pyx_v_chStream); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 21703, __pyx_L7_error) __pyx_v_err = __pyx_t_6; } /* "cuda/cudart.pyx":21702 * cdevPtr = utils.HelperInputVoidPtr(devPtr) * cdef void* cdevPtr_ptr = cdevPtr.cptr * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaFreeAsync(cdevPtr_ptr, chStream) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L8; } __pyx_L7_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L8:; } } /* "cuda/cudart.pyx":21705 * err = ccudart.cudaFreeAsync(cdevPtr_ptr, chStream) * * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21705, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21705, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21705, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21705, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 21705, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":21662 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaFreeAsync", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_phStream); __Pyx_XDECREF(__pyx_v_cdevPtr); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":21707 * return (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_6cudart_293cudaMemPoolTrimTo(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_292cudaMemPoolTrimTo, "cudaMemPoolTrimTo(memPool, size_t minBytesToKeep)\n Tries to release memory back to the OS.\n\n Releases memory back to the OS until the pool contains fewer than\n minBytesToKeep reserved bytes, or there is no more memory that the\n allocator can safely release. The allocator cannot release OS\n allocations that back outstanding asynchronous allocations. The OS\n allocations may happen at different granularity from the user\n allocations.\n\n Parameters\n ----------\n pool : :py:obj:`~.CUmemoryPool` or :py:obj:`~.cudaMemPool_t`\n The memory pool to trim\n minBytesToKeep : 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\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\n See Also\n --------\n :py:obj:`~.cuMemPoolTrimTo`, :py:obj:`~.cudaMallocAsync`, :py:obj:`~.cudaFreeAsync`, :py:obj:`~.cudaDeviceGetDefaultMemPool`, :py:obj:`~.cudaDeviceGetMemPool`, :py:obj:`~.cudaMemPoolCreate`\n\n Notes\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.\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_293cudaMemPoolTrimTo = {"cudaMemPoolTrimTo", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_293cudaMemPoolTrimTo, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_292cudaMemPoolTrimTo}; static PyObject *__pyx_pw_4cuda_6cudart_293cudaMemPoolTrimTo(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_memPool,&__pyx_n_s_minBytesToKeep,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_memPool)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21707, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_minBytesToKeep)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21707, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemPoolTrimTo", 1, 2, 2, 1); __PYX_ERR(0, 21707, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemPoolTrimTo") < 0)) __PYX_ERR(0, 21707, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_memPool = values[0]; __pyx_v_minBytesToKeep = __Pyx_PyInt_As_size_t(values[1]); if (unlikely((__pyx_v_minBytesToKeep == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21708, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaMemPoolTrimTo", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 21707, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemPoolTrimTo", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_292cudaMemPoolTrimTo(__pyx_self, __pyx_v_memPool, __pyx_v_minBytesToKeep); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_292cudaMemPoolTrimTo(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_memPool, size_t __pyx_v_minBytesToKeep) { cudaMemPool_t __pyx_v_cmemPool; PyObject *__pyx_v_pmemPool = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__496) __Pyx_RefNannySetupContext("cudaMemPoolTrimTo", 1); __Pyx_TraceCall("cudaMemPoolTrimTo", __pyx_f[0], 21707, 0, __PYX_ERR(0, 21707, __pyx_L1_error)); /* "cuda/cudart.pyx":21743 * """ * cdef ccudart.cudaMemPool_t cmemPool * if memPool is None: # <<<<<<<<<<<<<< * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): */ __pyx_t_1 = (__pyx_v_memPool == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":21744 * cdef ccudart.cudaMemPool_t cmemPool * if memPool is None: * cmemPool = 0 # <<<<<<<<<<<<<< * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): * pmemPool = int(memPool) */ __pyx_v_cmemPool = ((cudaMemPool_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":21743 * """ * cdef ccudart.cudaMemPool_t cmemPool * if memPool is None: # <<<<<<<<<<<<<< * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":21745 * if memPool is None: * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): # <<<<<<<<<<<<<< * pmemPool = int(memPool) * cmemPool = pmemPool */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_memPool, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUmemoryPool); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":21746 * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): * pmemPool = int(memPool) # <<<<<<<<<<<<<< * cmemPool = pmemPool * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_memPool); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21746, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pmemPool = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":21747 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): * pmemPool = int(memPool) * cmemPool = pmemPool # <<<<<<<<<<<<<< * else: * pmemPool = int(cudaMemPool_t(memPool)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pmemPool); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21747, __pyx_L1_error) __pyx_v_cmemPool = ((cudaMemPool_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":21745 * if memPool is None: * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): # <<<<<<<<<<<<<< * pmemPool = int(memPool) * cmemPool = pmemPool */ goto __pyx_L3; } /* "cuda/cudart.pyx":21749 * cmemPool = pmemPool * else: * pmemPool = int(cudaMemPool_t(memPool)) # <<<<<<<<<<<<<< * cmemPool = pmemPool * with nogil: */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemPool_t), __pyx_v_memPool); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21749, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21749, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pmemPool = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":21750 * else: * pmemPool = int(cudaMemPool_t(memPool)) * cmemPool = pmemPool # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaMemPoolTrimTo(cmemPool, minBytesToKeep) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pmemPool); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21750, __pyx_L1_error) __pyx_v_cmemPool = ((cudaMemPool_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":21751 * pmemPool = int(cudaMemPool_t(memPool)) * cmemPool = pmemPool * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemPoolTrimTo(cmemPool, minBytesToKeep) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":21752 * cmemPool = pmemPool * with nogil: * err = ccudart.cudaMemPoolTrimTo(cmemPool, minBytesToKeep) # <<<<<<<<<<<<<< * * return (cudaError_t(err),) */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaMemPoolTrimTo(__pyx_v_cmemPool, __pyx_v_minBytesToKeep); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 21752, __pyx_L7_error) __pyx_v_err = __pyx_t_6; } /* "cuda/cudart.pyx":21751 * pmemPool = int(cudaMemPool_t(memPool)) * cmemPool = pmemPool * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemPoolTrimTo(cmemPool, minBytesToKeep) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L8; } __pyx_L7_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L8:; } } /* "cuda/cudart.pyx":21754 * err = ccudart.cudaMemPoolTrimTo(cmemPool, minBytesToKeep) * * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21754, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21754, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21754, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21754, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 21754, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":21707 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaMemPoolTrimTo", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pmemPool); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":21756 * return (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_6cudart_295cudaMemPoolSetAttribute(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_294cudaMemPoolSetAttribute, "cudaMemPoolSetAttribute(memPool, attr: cudaMemPoolAttr, value)\n Sets attributes of a memory pool.\n\n Supported 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\n Parameters\n ----------\n pool : :py:obj:`~.CUmemoryPool` or :py:obj:`~.cudaMemPool_t`\n The memory pool to modify\n attr : :py:obj:`~.cudaMemPoolAttr`\n The attribute to modify\n value : Any\n Pointer to the value to assign\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\n See Also\n --------\n :py:obj:`~.cuMemPoolSetAttribute`, :py:obj:`~.cudaMallocAsync`, :py:obj:`~.cudaFreeAsync`, :py:obj:`~.cudaDeviceGetDefaultMemPool`, :py:obj:`~.cudaDeviceGetMemPool`, :py:obj:`~.cudaMemPoolCreate`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_295cudaMemPoolSetAttribute = {"cudaMemPoolSetAttribute", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_295cudaMemPoolSetAttribute, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_294cudaMemPoolSetAttribute}; static PyObject *__pyx_pw_4cuda_6cudart_295cudaMemPoolSetAttribute(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_memPool,&__pyx_n_s_attr,&__pyx_n_s_value,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_memPool)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21756, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_attr)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21756, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemPoolSetAttribute", 1, 3, 3, 1); __PYX_ERR(0, 21756, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_value)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21756, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemPoolSetAttribute", 1, 3, 3, 2); __PYX_ERR(0, 21756, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemPoolSetAttribute") < 0)) __PYX_ERR(0, 21756, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __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, 21756, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 21757, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_294cudaMemPoolSetAttribute(__pyx_self, __pyx_v_memPool, __pyx_v_attr, __pyx_v_value); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_294cudaMemPoolSetAttribute(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_memPool, PyObject *__pyx_v_attr, PyObject *__pyx_v_value) { cudaMemPool_t __pyx_v_cmemPool; PyObject *__pyx_v_pmemPool = NULL; enum cudaMemPoolAttr __pyx_v_cattr; struct __pyx_obj_4cuda_4_lib_5utils_HelperCUmemPool_attribute *__pyx_v_cvalue = 0; void *__pyx_v_cvalue_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; enum cudaMemPoolAttr __pyx_t_6; PyObject *__pyx_t_7 = NULL; cudaError_t __pyx_t_8; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__497) __Pyx_RefNannySetupContext("cudaMemPoolSetAttribute", 1); __Pyx_TraceCall("cudaMemPoolSetAttribute", __pyx_f[0], 21756, 0, __PYX_ERR(0, 21756, __pyx_L1_error)); /* "cuda/cudart.pyx":21815 * """ * cdef ccudart.cudaMemPool_t cmemPool * if memPool is None: # <<<<<<<<<<<<<< * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): */ __pyx_t_1 = (__pyx_v_memPool == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":21816 * cdef ccudart.cudaMemPool_t cmemPool * if memPool is None: * cmemPool = 0 # <<<<<<<<<<<<<< * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): * pmemPool = int(memPool) */ __pyx_v_cmemPool = ((cudaMemPool_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":21815 * """ * cdef ccudart.cudaMemPool_t cmemPool * if memPool is None: # <<<<<<<<<<<<<< * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":21817 * if memPool is None: * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): # <<<<<<<<<<<<<< * pmemPool = int(memPool) * cmemPool = pmemPool */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_memPool, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUmemoryPool); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":21818 * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): * pmemPool = int(memPool) # <<<<<<<<<<<<<< * cmemPool = pmemPool * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_memPool); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21818, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pmemPool = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":21819 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): * pmemPool = int(memPool) * cmemPool = pmemPool # <<<<<<<<<<<<<< * else: * pmemPool = int(cudaMemPool_t(memPool)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pmemPool); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21819, __pyx_L1_error) __pyx_v_cmemPool = ((cudaMemPool_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":21817 * if memPool is None: * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): # <<<<<<<<<<<<<< * pmemPool = int(memPool) * cmemPool = pmemPool */ goto __pyx_L3; } /* "cuda/cudart.pyx":21821 * cmemPool = pmemPool * else: * pmemPool = int(cudaMemPool_t(memPool)) # <<<<<<<<<<<<<< * cmemPool = pmemPool * cdef ccudart.cudaMemPoolAttr cattr = attr.value */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemPool_t), __pyx_v_memPool); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21821, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21821, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pmemPool = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":21822 * else: * pmemPool = int(cudaMemPool_t(memPool)) * cmemPool = pmemPool # <<<<<<<<<<<<<< * cdef ccudart.cudaMemPoolAttr cattr = attr.value * cdef utils.HelperCUmemPool_attribute cvalue = utils.HelperCUmemPool_attribute(attr, value, is_getter=False) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pmemPool); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21822, __pyx_L1_error) __pyx_v_cmemPool = ((cudaMemPool_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":21823 * pmemPool = int(cudaMemPool_t(memPool)) * cmemPool = pmemPool * cdef ccudart.cudaMemPoolAttr cattr = attr.value # <<<<<<<<<<<<<< * cdef utils.HelperCUmemPool_attribute cvalue = utils.HelperCUmemPool_attribute(attr, value, is_getter=False) * cdef void* cvalue_ptr = cvalue.cptr */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_n_s_value); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21823, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = ((enum cudaMemPoolAttr)__Pyx_PyInt_As_enum__cudaMemPoolAttr(__pyx_t_5)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21823, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_cattr = __pyx_t_6; /* "cuda/cudart.pyx":21824 * cmemPool = pmemPool * cdef ccudart.cudaMemPoolAttr cattr = attr.value * cdef utils.HelperCUmemPool_attribute cvalue = utils.HelperCUmemPool_attribute(attr, value, is_getter=False) # <<<<<<<<<<<<<< * cdef void* cvalue_ptr = cvalue.cptr * with nogil: */ __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21824, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_INCREF(__pyx_v_attr); __Pyx_GIVEREF(__pyx_v_attr); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_attr)) __PYX_ERR(0, 21824, __pyx_L1_error); __Pyx_INCREF(__pyx_v_value); __Pyx_GIVEREF(__pyx_v_value); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_v_value)) __PYX_ERR(0, 21824, __pyx_L1_error); __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21824, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_is_getter, Py_False) < 0) __PYX_ERR(0, 21824, __pyx_L1_error) __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperCUmemPool_attribute), __pyx_t_5, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21824, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_cvalue = ((struct __pyx_obj_4cuda_4_lib_5utils_HelperCUmemPool_attribute *)__pyx_t_7); __pyx_t_7 = 0; /* "cuda/cudart.pyx":21825 * cdef ccudart.cudaMemPoolAttr cattr = attr.value * cdef utils.HelperCUmemPool_attribute cvalue = utils.HelperCUmemPool_attribute(attr, value, is_getter=False) * cdef void* cvalue_ptr = cvalue.cptr # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaMemPoolSetAttribute(cmemPool, cattr, cvalue_ptr) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cvalue), __pyx_n_s_cptr); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21825, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_7); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21825, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_v_cvalue_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":21826 * cdef utils.HelperCUmemPool_attribute cvalue = utils.HelperCUmemPool_attribute(attr, value, is_getter=False) * cdef void* cvalue_ptr = cvalue.cptr * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemPoolSetAttribute(cmemPool, cattr, cvalue_ptr) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":21827 * cdef void* cvalue_ptr = cvalue.cptr * with nogil: * err = ccudart.cudaMemPoolSetAttribute(cmemPool, cattr, cvalue_ptr) # <<<<<<<<<<<<<< * * return (cudaError_t(err),) */ __pyx_t_8 = __pyx_f_4cuda_7ccudart_cudaMemPoolSetAttribute(__pyx_v_cmemPool, __pyx_v_cattr, __pyx_v_cvalue_ptr); if (unlikely(__pyx_t_8 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 21827, __pyx_L7_error) __pyx_v_err = __pyx_t_8; } /* "cuda/cudart.pyx":21826 * cdef utils.HelperCUmemPool_attribute cvalue = utils.HelperCUmemPool_attribute(attr, value, is_getter=False) * cdef void* cvalue_ptr = cvalue.cptr * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemPoolSetAttribute(cmemPool, cattr, cvalue_ptr) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L8; } __pyx_L7_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L8:; } } /* "cuda/cudart.pyx":21829 * err = ccudart.cudaMemPoolSetAttribute(cmemPool, cattr, cvalue_ptr) * * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21829, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21829, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_5}; __pyx_t_7 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21829, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21829, __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)) __PYX_ERR(0, 21829, __pyx_L1_error); __pyx_t_7 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":21756 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.cudaMemPoolSetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pmemPool); __Pyx_XDECREF((PyObject *)__pyx_v_cvalue); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":21831 * return (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_6cudart_297cudaMemPoolGetAttribute(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_296cudaMemPoolGetAttribute, "cudaMemPoolGetAttribute(memPool, attr: cudaMemPoolAttr)\n Gets attributes of a memory pool.\n\n Supported 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:ob""j:`~.cudaMemPoolAttrUsedMemHigh`: (value type = cuuint64_t)\n High watermark of the amount of memory from the pool that was in use\n by the application since the last time it was reset.\n\n Parameters\n ----------\n pool : :py:obj:`~.CUmemoryPool` or :py:obj:`~.cudaMemPool_t`\n The memory pool to get attributes of\n attr : :py:obj:`~.cudaMemPoolAttr`\n The attribute to get\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n value : Any\n Retrieved value\n\n See Also\n --------\n :py:obj:`~.cuMemPoolGetAttribute`, :py:obj:`~.cudaMallocAsync`, :py:obj:`~.cudaFreeAsync`, :py:obj:`~.cudaDeviceGetDefaultMemPool`, :py:obj:`~.cudaDeviceGetMemPool`, :py:obj:`~.cudaMemPoolCreate`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_297cudaMemPoolGetAttribute = {"cudaMemPoolGetAttribute", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_297cudaMemPoolGetAttribute, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_296cudaMemPoolGetAttribute}; static PyObject *__pyx_pw_4cuda_6cudart_297cudaMemPoolGetAttribute(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_memPool,&__pyx_n_s_attr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_memPool)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21831, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_attr)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21831, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemPoolGetAttribute", 1, 2, 2, 1); __PYX_ERR(0, 21831, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemPoolGetAttribute") < 0)) __PYX_ERR(0, 21831, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __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, 21831, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 21832, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_296cudaMemPoolGetAttribute(__pyx_self, __pyx_v_memPool, __pyx_v_attr); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_296cudaMemPoolGetAttribute(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_memPool, PyObject *__pyx_v_attr) { cudaMemPool_t __pyx_v_cmemPool; PyObject *__pyx_v_pmemPool = NULL; enum cudaMemPoolAttr __pyx_v_cattr; struct __pyx_obj_4cuda_4_lib_5utils_HelperCUmemPool_attribute *__pyx_v_cvalue = 0; void *__pyx_v_cvalue_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; enum cudaMemPoolAttr __pyx_t_6; PyObject *__pyx_t_7 = NULL; cudaError_t __pyx_t_8; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__498) __Pyx_RefNannySetupContext("cudaMemPoolGetAttribute", 1); __Pyx_TraceCall("cudaMemPoolGetAttribute", __pyx_f[0], 21831, 0, __PYX_ERR(0, 21831, __pyx_L1_error)); /* "cuda/cudart.pyx":21896 * """ * cdef ccudart.cudaMemPool_t cmemPool * if memPool is None: # <<<<<<<<<<<<<< * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): */ __pyx_t_1 = (__pyx_v_memPool == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":21897 * cdef ccudart.cudaMemPool_t cmemPool * if memPool is None: * cmemPool = 0 # <<<<<<<<<<<<<< * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): * pmemPool = int(memPool) */ __pyx_v_cmemPool = ((cudaMemPool_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":21896 * """ * cdef ccudart.cudaMemPool_t cmemPool * if memPool is None: # <<<<<<<<<<<<<< * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":21898 * if memPool is None: * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): # <<<<<<<<<<<<<< * pmemPool = int(memPool) * cmemPool = pmemPool */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_memPool, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUmemoryPool); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":21899 * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): * pmemPool = int(memPool) # <<<<<<<<<<<<<< * cmemPool = pmemPool * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_memPool); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21899, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pmemPool = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":21900 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): * pmemPool = int(memPool) * cmemPool = pmemPool # <<<<<<<<<<<<<< * else: * pmemPool = int(cudaMemPool_t(memPool)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pmemPool); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21900, __pyx_L1_error) __pyx_v_cmemPool = ((cudaMemPool_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":21898 * if memPool is None: * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): # <<<<<<<<<<<<<< * pmemPool = int(memPool) * cmemPool = pmemPool */ goto __pyx_L3; } /* "cuda/cudart.pyx":21902 * cmemPool = pmemPool * else: * pmemPool = int(cudaMemPool_t(memPool)) # <<<<<<<<<<<<<< * cmemPool = pmemPool * cdef ccudart.cudaMemPoolAttr cattr = attr.value */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemPool_t), __pyx_v_memPool); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21902, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21902, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pmemPool = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":21903 * else: * pmemPool = int(cudaMemPool_t(memPool)) * cmemPool = pmemPool # <<<<<<<<<<<<<< * cdef ccudart.cudaMemPoolAttr cattr = attr.value * cdef utils.HelperCUmemPool_attribute cvalue = utils.HelperCUmemPool_attribute(attr, 0, is_getter=True) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pmemPool); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21903, __pyx_L1_error) __pyx_v_cmemPool = ((cudaMemPool_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":21904 * pmemPool = int(cudaMemPool_t(memPool)) * cmemPool = pmemPool * cdef ccudart.cudaMemPoolAttr cattr = attr.value # <<<<<<<<<<<<<< * cdef utils.HelperCUmemPool_attribute cvalue = utils.HelperCUmemPool_attribute(attr, 0, is_getter=True) * cdef void* cvalue_ptr = cvalue.cptr */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_n_s_value); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21904, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = ((enum cudaMemPoolAttr)__Pyx_PyInt_As_enum__cudaMemPoolAttr(__pyx_t_5)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21904, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_cattr = __pyx_t_6; /* "cuda/cudart.pyx":21905 * cmemPool = pmemPool * cdef ccudart.cudaMemPoolAttr cattr = attr.value * cdef utils.HelperCUmemPool_attribute cvalue = utils.HelperCUmemPool_attribute(attr, 0, is_getter=True) # <<<<<<<<<<<<<< * cdef void* cvalue_ptr = cvalue.cptr * with nogil: */ __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21905, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_INCREF(__pyx_v_attr); __Pyx_GIVEREF(__pyx_v_attr); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_attr)) __PYX_ERR(0, 21905, __pyx_L1_error); __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_int_0)) __PYX_ERR(0, 21905, __pyx_L1_error); __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21905, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_is_getter, Py_True) < 0) __PYX_ERR(0, 21905, __pyx_L1_error) __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperCUmemPool_attribute), __pyx_t_5, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21905, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_cvalue = ((struct __pyx_obj_4cuda_4_lib_5utils_HelperCUmemPool_attribute *)__pyx_t_7); __pyx_t_7 = 0; /* "cuda/cudart.pyx":21906 * cdef ccudart.cudaMemPoolAttr cattr = attr.value * cdef utils.HelperCUmemPool_attribute cvalue = utils.HelperCUmemPool_attribute(attr, 0, is_getter=True) * cdef void* cvalue_ptr = cvalue.cptr # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaMemPoolGetAttribute(cmemPool, cattr, cvalue_ptr) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cvalue), __pyx_n_s_cptr); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21906, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_7); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21906, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_v_cvalue_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":21907 * cdef utils.HelperCUmemPool_attribute cvalue = utils.HelperCUmemPool_attribute(attr, 0, is_getter=True) * cdef void* cvalue_ptr = cvalue.cptr * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemPoolGetAttribute(cmemPool, cattr, cvalue_ptr) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":21908 * cdef void* cvalue_ptr = cvalue.cptr * with nogil: * err = ccudart.cudaMemPoolGetAttribute(cmemPool, cattr, cvalue_ptr) # <<<<<<<<<<<<<< * * return (cudaError_t(err), cvalue.pyObj()) */ __pyx_t_8 = __pyx_f_4cuda_7ccudart_cudaMemPoolGetAttribute(__pyx_v_cmemPool, __pyx_v_cattr, __pyx_v_cvalue_ptr); if (unlikely(__pyx_t_8 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 21908, __pyx_L7_error) __pyx_v_err = __pyx_t_8; } /* "cuda/cudart.pyx":21907 * cdef utils.HelperCUmemPool_attribute cvalue = utils.HelperCUmemPool_attribute(attr, 0, is_getter=True) * cdef void* cvalue_ptr = cvalue.cptr * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaMemPoolGetAttribute(cmemPool, cattr, cvalue_ptr) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L8; } __pyx_L7_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L8:; } } /* "cuda/cudart.pyx":21910 * err = ccudart.cudaMemPoolGetAttribute(cmemPool, cattr, cvalue_ptr) * * return (cudaError_t(err), cvalue.pyObj()) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21910, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21910, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_5}; __pyx_t_7 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21910, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cvalue), __pyx_n_s_pyObj); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21910, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, NULL}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_10, 0+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21910, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21910, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_7); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_7)) __PYX_ERR(0, 21910, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_3)) __PYX_ERR(0, 21910, __pyx_L1_error); __pyx_t_7 = 0; __pyx_t_3 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":21831 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.cudaMemPoolGetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pmemPool); __Pyx_XDECREF((PyObject *)__pyx_v_cvalue); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":21912 * return (cudaError_t(err), cvalue.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_6cudart_299cudaMemPoolSetAccess(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_298cudaMemPoolSetAccess, "cudaMemPoolSetAccess(memPool, descList: Optional[Tuple[cudaMemAccessDesc] | List[cudaMemAccessDesc]], size_t count)\n Controls visibility of pools between devices.\n\n Parameters\n ----------\n pool : :py:obj:`~.CUmemoryPool` or :py:obj:`~.cudaMemPool_t`\n The pool being modified\n map : List[:py:obj:`~.cudaMemAccessDesc`]\n Array of access descriptors. Each descriptor instructs the access\n to enable for a single gpu\n count : size_t\n Number of descriptors in the map array.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\n See Also\n --------\n :py:obj:`~.cuMemPoolSetAccess`, :py:obj:`~.cudaMemPoolGetAccess`, :py:obj:`~.cudaMallocAsync`, :py:obj:`~.cudaFreeAsync`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_299cudaMemPoolSetAccess = {"cudaMemPoolSetAccess", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_299cudaMemPoolSetAccess, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_298cudaMemPoolSetAccess}; static PyObject *__pyx_pw_4cuda_6cudart_299cudaMemPoolSetAccess(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_memPool,&__pyx_n_s_descList,&__pyx_n_s_count,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_memPool)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21912, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_descList)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21912, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemPoolSetAccess", 1, 3, 3, 1); __PYX_ERR(0, 21912, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_count)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21912, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemPoolSetAccess", 1, 3, 3, 2); __PYX_ERR(0, 21912, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemPoolSetAccess") < 0)) __PYX_ERR(0, 21912, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_memPool = values[0]; __pyx_v_descList = values[1]; __pyx_v_count = __Pyx_PyInt_As_size_t(values[2]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21913, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaMemPoolSetAccess", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 21912, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemPoolSetAccess", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_298cudaMemPoolSetAccess(__pyx_self, __pyx_v_memPool, __pyx_v_descList, __pyx_v_count); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_20cudaMemPoolSetAccess_2generator11(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":21936 * """ * 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[ccudart.cudaMemAccessDesc,] or List[ccudart.cudaMemAccessDesc,]") * cdef ccudart.cudaMemPool_t cmemPool */ static PyObject *__pyx_pf_4cuda_6cudart_20cudaMemPoolSetAccess_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct_11_genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_11_genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_11_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_11_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 21936, __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_6cudart_20cudaMemPoolSetAccess_2generator11, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaMemPoolSetAccess_locals_gene, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 21936, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.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_6cudart_20cudaMemPoolSetAccess_2generator11(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_11_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_11_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 21936, 0, __PYX_ERR(0, 21936, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 21936, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 21936, __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, 21936, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21936, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 21936, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 21936, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21936, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 21936, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 21936, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21936, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 21936, __pyx_L1_error) } 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_ptype_4cuda_6cudart_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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":21912 * return (cudaError_t(err), cvalue.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_6cudart_298cudaMemPoolSetAccess(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_memPool, PyObject *__pyx_v_descList, size_t __pyx_v_count) { cudaMemPool_t __pyx_v_cmemPool; PyObject *__pyx_v_pmemPool = NULL; struct cudaMemAccessDesc *__pyx_v_cdescList; Py_ssize_t __pyx_v_idx; cudaError_t __pyx_v_err; PyObject *__pyx_gb_4cuda_6cudart_20cudaMemPoolSetAccess_2generator11 = 0; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; Py_ssize_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; Py_ssize_t __pyx_t_8; Py_ssize_t __pyx_t_9; struct cudaMemAccessDesc *__pyx_t_10; cudaError_t __pyx_t_11; PyObject *__pyx_t_12 = NULL; unsigned int __pyx_t_13; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__499) __Pyx_RefNannySetupContext("cudaMemPoolSetAccess", 0); __Pyx_TraceCall("cudaMemPoolSetAccess", __pyx_f[0], 21912, 0, __PYX_ERR(0, 21912, __pyx_L1_error)); __Pyx_INCREF(__pyx_v_descList); /* "cuda/cudart.pyx":21935 * :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[ccudart.cudaMemAccessDesc,] or List[ccudart.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, 21935, __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/cudart.pyx":21936 * """ * 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[ccudart.cudaMemAccessDesc,] or List[ccudart.cudaMemAccessDesc,]") * cdef ccudart.cudaMemPool_t cmemPool */ __pyx_t_1 = __pyx_pf_4cuda_6cudart_20cudaMemPoolSetAccess_genexpr(NULL, __pyx_v_descList); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21936, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21936, __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, 21936, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_4 = (!__pyx_t_2); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":21937 * 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[ccudart.cudaMemAccessDesc,] or List[ccudart.cudaMemAccessDesc,]") # <<<<<<<<<<<<<< * cdef ccudart.cudaMemPool_t cmemPool * if memPool is None: */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__500, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21937, __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, 21937, __pyx_L1_error) /* "cuda/cudart.pyx":21936 * """ * 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[ccudart.cudaMemAccessDesc,] or List[ccudart.cudaMemAccessDesc,]") * cdef ccudart.cudaMemPool_t cmemPool */ } /* "cuda/cudart.pyx":21939 * raise TypeError("Argument 'descList' is not instance of type (expected Tuple[ccudart.cudaMemAccessDesc,] or List[ccudart.cudaMemAccessDesc,]") * cdef ccudart.cudaMemPool_t cmemPool * if memPool is None: # <<<<<<<<<<<<<< * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): */ __pyx_t_4 = (__pyx_v_memPool == Py_None); if (__pyx_t_4) { /* "cuda/cudart.pyx":21940 * cdef ccudart.cudaMemPool_t cmemPool * if memPool is None: * cmemPool = 0 # <<<<<<<<<<<<<< * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): * pmemPool = int(memPool) */ __pyx_v_cmemPool = ((cudaMemPool_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":21939 * raise TypeError("Argument 'descList' is not instance of type (expected Tuple[ccudart.cudaMemAccessDesc,] or List[ccudart.cudaMemAccessDesc,]") * cdef ccudart.cudaMemPool_t cmemPool * if memPool is None: # <<<<<<<<<<<<<< * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): */ goto __pyx_L4; } /* "cuda/cudart.pyx":21941 * if memPool is None: * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): # <<<<<<<<<<<<<< * pmemPool = int(memPool) * cmemPool = pmemPool */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_memPool, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUmemoryPool); __pyx_t_4 = __pyx_t_2; __pyx_L5_bool_binop_done:; if (__pyx_t_4) { /* "cuda/cudart.pyx":21942 * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): * pmemPool = int(memPool) # <<<<<<<<<<<<<< * cmemPool = pmemPool * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_memPool); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21942, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pmemPool = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":21943 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): * pmemPool = int(memPool) * cmemPool = pmemPool # <<<<<<<<<<<<<< * else: * pmemPool = int(cudaMemPool_t(memPool)) */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pmemPool); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21943, __pyx_L1_error) __pyx_v_cmemPool = ((cudaMemPool_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); /* "cuda/cudart.pyx":21941 * if memPool is None: * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): # <<<<<<<<<<<<<< * pmemPool = int(memPool) * cmemPool = pmemPool */ goto __pyx_L4; } /* "cuda/cudart.pyx":21945 * cmemPool = pmemPool * else: * pmemPool = int(cudaMemPool_t(memPool)) # <<<<<<<<<<<<<< * cmemPool = pmemPool * cdef ccudart.cudaMemAccessDesc* cdescList = NULL */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemPool_t), __pyx_v_memPool); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21945, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21945, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pmemPool = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":21946 * else: * pmemPool = int(cudaMemPool_t(memPool)) * cmemPool = pmemPool # <<<<<<<<<<<<<< * cdef ccudart.cudaMemAccessDesc* cdescList = NULL * if len(descList) > 0: */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pmemPool); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21946, __pyx_L1_error) __pyx_v_cmemPool = ((cudaMemPool_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); } __pyx_L4:; /* "cuda/cudart.pyx":21947 * pmemPool = int(cudaMemPool_t(memPool)) * cmemPool = pmemPool * cdef ccudart.cudaMemAccessDesc* cdescList = NULL # <<<<<<<<<<<<<< * if len(descList) > 0: * cdescList = calloc(len(descList), sizeof(ccudart.cudaMemAccessDesc)) */ __pyx_v_cdescList = NULL; /* "cuda/cudart.pyx":21948 * cmemPool = pmemPool * cdef ccudart.cudaMemAccessDesc* cdescList = NULL * if len(descList) > 0: # <<<<<<<<<<<<<< * cdescList = calloc(len(descList), sizeof(ccudart.cudaMemAccessDesc)) * if cdescList is NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_descList); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 21948, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 > 0); if (__pyx_t_4) { /* "cuda/cudart.pyx":21949 * cdef ccudart.cudaMemAccessDesc* cdescList = NULL * if len(descList) > 0: * cdescList = calloc(len(descList), sizeof(ccudart.cudaMemAccessDesc)) # <<<<<<<<<<<<<< * if cdescList is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(descList)) + 'x' + str(sizeof(ccudart.cudaMemAccessDesc))) */ __pyx_t_6 = PyObject_Length(__pyx_v_descList); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 21949, __pyx_L1_error) __pyx_v_cdescList = ((struct cudaMemAccessDesc *)calloc(__pyx_t_6, (sizeof(struct cudaMemAccessDesc)))); /* "cuda/cudart.pyx":21950 * if len(descList) > 0: * cdescList = calloc(len(descList), sizeof(ccudart.cudaMemAccessDesc)) * if cdescList is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(descList)) + 'x' + str(sizeof(ccudart.cudaMemAccessDesc))) * for idx in range(len(descList)): */ __pyx_t_4 = (__pyx_v_cdescList == NULL); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":21951 * cdescList = calloc(len(descList), sizeof(ccudart.cudaMemAccessDesc)) * if cdescList is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(descList)) + 'x' + str(sizeof(ccudart.cudaMemAccessDesc))) # <<<<<<<<<<<<<< * for idx in range(len(descList)): * string.memcpy(&cdescList[idx], (descList[idx])._ptr, sizeof(ccudart.cudaMemAccessDesc)) */ __pyx_t_6 = PyObject_Length(__pyx_v_descList); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 21951, __pyx_L1_error) __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21951, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21951, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21951, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_n_u_x_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21951, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaMemAccessDesc))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21951, __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, 21951, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21951, __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 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21951, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_7, 0, 0, 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __PYX_ERR(0, 21951, __pyx_L1_error) /* "cuda/cudart.pyx":21950 * if len(descList) > 0: * cdescList = calloc(len(descList), sizeof(ccudart.cudaMemAccessDesc)) * if cdescList is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(descList)) + 'x' + str(sizeof(ccudart.cudaMemAccessDesc))) * for idx in range(len(descList)): */ } /* "cuda/cudart.pyx":21952 * if cdescList is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(descList)) + 'x' + str(sizeof(ccudart.cudaMemAccessDesc))) * for idx in range(len(descList)): # <<<<<<<<<<<<<< * string.memcpy(&cdescList[idx], (descList[idx])._ptr, sizeof(ccudart.cudaMemAccessDesc)) * if count > len(descList): raise RuntimeError("List is too small: " + str(len(descList)) + " < " + str(count)) */ __pyx_t_6 = PyObject_Length(__pyx_v_descList); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 21952, __pyx_L1_error) __pyx_t_8 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_idx = __pyx_t_9; /* "cuda/cudart.pyx":21953 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(descList)) + 'x' + str(sizeof(ccudart.cudaMemAccessDesc))) * for idx in range(len(descList)): * string.memcpy(&cdescList[idx], (descList[idx])._ptr, sizeof(ccudart.cudaMemAccessDesc)) # <<<<<<<<<<<<<< * if count > len(descList): raise RuntimeError("List is too small: " + str(len(descList)) + " < " + str(count)) * err = ccudart.cudaMemPoolSetAccess(cmemPool, (descList[0])._ptr if len(descList) == 1 else cdescList, count) */ __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_descList, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21953, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); (void)(memcpy((&(__pyx_v_cdescList[__pyx_v_idx])), ((struct __pyx_obj_4cuda_6cudart_cudaMemAccessDesc *)__pyx_t_7)->_ptr, (sizeof(struct cudaMemAccessDesc)))); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } /* "cuda/cudart.pyx":21948 * cmemPool = pmemPool * cdef ccudart.cudaMemAccessDesc* cdescList = NULL * if len(descList) > 0: # <<<<<<<<<<<<<< * cdescList = calloc(len(descList), sizeof(ccudart.cudaMemAccessDesc)) * if cdescList is NULL: */ } /* "cuda/cudart.pyx":21954 * for idx in range(len(descList)): * string.memcpy(&cdescList[idx], (descList[idx])._ptr, sizeof(ccudart.cudaMemAccessDesc)) * if count > len(descList): raise RuntimeError("List is too small: " + str(len(descList)) + " < " + str(count)) # <<<<<<<<<<<<<< * err = ccudart.cudaMemPoolSetAccess(cmemPool, (descList[0])._ptr if len(descList) == 1 else cdescList, count) * if cdescList is not NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_descList); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 21954, __pyx_L1_error) __pyx_t_4 = (__pyx_v_count > ((size_t)__pyx_t_6)); if (unlikely(__pyx_t_4)) { __pyx_t_6 = PyObject_Length(__pyx_v_descList); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 21954, __pyx_L1_error) __pyx_t_7 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21954, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21954, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_List_is_too_small, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21954, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_7, __pyx_kp_u__400); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21954, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyInt_FromSize_t(__pyx_v_count); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21954, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21954, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21954, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21954, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 21954, __pyx_L1_error) } /* "cuda/cudart.pyx":21955 * string.memcpy(&cdescList[idx], (descList[idx])._ptr, sizeof(ccudart.cudaMemAccessDesc)) * if count > len(descList): raise RuntimeError("List is too small: " + str(len(descList)) + " < " + str(count)) * err = ccudart.cudaMemPoolSetAccess(cmemPool, (descList[0])._ptr if len(descList) == 1 else cdescList, count) # <<<<<<<<<<<<<< * if cdescList is not NULL: * free(cdescList) */ __pyx_t_6 = PyObject_Length(__pyx_v_descList); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 21955, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 == 1); if (__pyx_t_4) { __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_descList, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21955, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_10 = ((struct __pyx_obj_4cuda_6cudart_cudaMemAccessDesc *)__pyx_t_3)->_ptr; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_10 = __pyx_v_cdescList; } __pyx_t_11 = __pyx_f_4cuda_7ccudart_cudaMemPoolSetAccess(__pyx_v_cmemPool, __pyx_t_10, __pyx_v_count); if (unlikely(__pyx_t_11 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 21955, __pyx_L1_error) __pyx_v_err = __pyx_t_11; /* "cuda/cudart.pyx":21956 * if count > len(descList): raise RuntimeError("List is too small: " + str(len(descList)) + " < " + str(count)) * err = ccudart.cudaMemPoolSetAccess(cmemPool, (descList[0])._ptr if len(descList) == 1 else cdescList, count) * if cdescList is not NULL: # <<<<<<<<<<<<<< * free(cdescList) * return (cudaError_t(err),) */ __pyx_t_4 = (__pyx_v_cdescList != NULL); if (__pyx_t_4) { /* "cuda/cudart.pyx":21957 * err = ccudart.cudaMemPoolSetAccess(cmemPool, (descList[0])._ptr if len(descList) == 1 else cdescList, count) * if cdescList is not NULL: * free(cdescList) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ free(__pyx_v_cdescList); /* "cuda/cudart.pyx":21956 * if count > len(descList): raise RuntimeError("List is too small: " + str(len(descList)) + " < " + str(count)) * err = ccudart.cudaMemPoolSetAccess(cmemPool, (descList[0])._ptr if len(descList) == 1 else cdescList, count) * if cdescList is not NULL: # <<<<<<<<<<<<<< * free(cdescList) * return (cudaError_t(err),) */ } /* "cuda/cudart.pyx":21958 * if cdescList is not NULL: * free(cdescList) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21958, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21958, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_12 = NULL; __pyx_t_13 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_12)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_12); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_13 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_12, __pyx_t_1}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_13, 1+__pyx_t_13); __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21958, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21958, __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)) __PYX_ERR(0, 21958, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":21912 * return (cudaError_t(err), cvalue.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_7); __Pyx_XDECREF(__pyx_t_12); __Pyx_AddTraceback("cuda.cudart.cudaMemPoolSetAccess", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pmemPool); __Pyx_XDECREF(__pyx_gb_4cuda_6cudart_20cudaMemPoolSetAccess_2generator11); __Pyx_XDECREF(__pyx_v_descList); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":21960 * return (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_6cudart_301cudaMemPoolGetAccess(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_300cudaMemPoolGetAccess, "cudaMemPoolGetAccess(memPool, cudaMemLocation location: Optional[cudaMemLocation])\n Returns the accessibility of a pool from a device.\n\n Returns the accessibility of the pool's memory from the specified\n location.\n\n Parameters\n ----------\n memPool : :py:obj:`~.CUmemoryPool` or :py:obj:`~.cudaMemPool_t`\n the pool being queried\n location : :py:obj:`~.cudaMemLocation`\n the location accessing the pool\n\n Returns\n -------\n cudaError_t\n\n flags : :py:obj:`~.cudaMemAccessFlags`\n the accessibility of the pool from the specified location\n\n See Also\n --------\n :py:obj:`~.cuMemPoolGetAccess`, :py:obj:`~.cudaMemPoolSetAccess`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_301cudaMemPoolGetAccess = {"cudaMemPoolGetAccess", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_301cudaMemPoolGetAccess, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_300cudaMemPoolGetAccess}; static PyObject *__pyx_pw_4cuda_6cudart_301cudaMemPoolGetAccess(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_memPool,&__pyx_n_s_location_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_memPool)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21960, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_location_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21960, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemPoolGetAccess", 1, 2, 2, 1); __PYX_ERR(0, 21960, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemPoolGetAccess") < 0)) __PYX_ERR(0, 21960, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_memPool = values[0]; __pyx_v_location = ((struct __pyx_obj_4cuda_6cudart_cudaMemLocation *)values[1]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaMemPoolGetAccess", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 21960, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaMemLocation, 1, "location", 0))) __PYX_ERR(0, 21961, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_300cudaMemPoolGetAccess(__pyx_self, __pyx_v_memPool, __pyx_v_location); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_300cudaMemPoolGetAccess(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_memPool, struct __pyx_obj_4cuda_6cudart_cudaMemLocation *__pyx_v_location) { cudaMemPool_t __pyx_v_cmemPool; PyObject *__pyx_v_pmemPool = NULL; enum cudaMemAccessFlags __pyx_v_flags; struct cudaMemLocation *__pyx_v_clocation_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; struct cudaMemLocation *__pyx_t_6; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; PyObject *__pyx_t_11 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__501) __Pyx_RefNannySetupContext("cudaMemPoolGetAccess", 1); __Pyx_TraceCall("cudaMemPoolGetAccess", __pyx_f[0], 21960, 0, __PYX_ERR(0, 21960, __pyx_L1_error)); /* "cuda/cudart.pyx":21986 * """ * cdef ccudart.cudaMemPool_t cmemPool * if memPool is None: # <<<<<<<<<<<<<< * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): */ __pyx_t_1 = (__pyx_v_memPool == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":21987 * cdef ccudart.cudaMemPool_t cmemPool * if memPool is None: * cmemPool = 0 # <<<<<<<<<<<<<< * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): * pmemPool = int(memPool) */ __pyx_v_cmemPool = ((cudaMemPool_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":21986 * """ * cdef ccudart.cudaMemPool_t cmemPool * if memPool is None: # <<<<<<<<<<<<<< * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":21988 * if memPool is None: * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): # <<<<<<<<<<<<<< * pmemPool = int(memPool) * cmemPool = pmemPool */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_memPool, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUmemoryPool); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":21989 * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): * pmemPool = int(memPool) # <<<<<<<<<<<<<< * cmemPool = pmemPool * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_memPool); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21989, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pmemPool = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":21990 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): * pmemPool = int(memPool) * cmemPool = pmemPool # <<<<<<<<<<<<<< * else: * pmemPool = int(cudaMemPool_t(memPool)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pmemPool); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21990, __pyx_L1_error) __pyx_v_cmemPool = ((cudaMemPool_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":21988 * if memPool is None: * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): # <<<<<<<<<<<<<< * pmemPool = int(memPool) * cmemPool = pmemPool */ goto __pyx_L3; } /* "cuda/cudart.pyx":21992 * cmemPool = pmemPool * else: * pmemPool = int(cudaMemPool_t(memPool)) # <<<<<<<<<<<<<< * cmemPool = pmemPool * cdef ccudart.cudaMemAccessFlags flags */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemPool_t), __pyx_v_memPool); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21992, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21992, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pmemPool = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":21993 * else: * pmemPool = int(cudaMemPool_t(memPool)) * cmemPool = pmemPool # <<<<<<<<<<<<<< * cdef ccudart.cudaMemAccessFlags flags * cdef ccudart.cudaMemLocation* clocation_ptr = location._ptr if location != None else NULL */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pmemPool); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21993, __pyx_L1_error) __pyx_v_cmemPool = ((cudaMemPool_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":21995 * cmemPool = pmemPool * cdef ccudart.cudaMemAccessFlags flags * cdef ccudart.cudaMemLocation* clocation_ptr = location._ptr if location != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaMemPoolGetAccess(&flags, cmemPool, clocation_ptr) * return (cudaError_t(err), cudaMemAccessFlags(flags)) */ __pyx_t_5 = PyObject_RichCompare(((PyObject *)__pyx_v_location), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21995, __pyx_L1_error) __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 21995, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_1) { __pyx_t_6 = __pyx_v_location->_ptr; } else { __pyx_t_6 = NULL; } __pyx_v_clocation_ptr = __pyx_t_6; /* "cuda/cudart.pyx":21996 * cdef ccudart.cudaMemAccessFlags flags * cdef ccudart.cudaMemLocation* clocation_ptr = location._ptr if location != None else NULL * err = ccudart.cudaMemPoolGetAccess(&flags, cmemPool, clocation_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err), cudaMemAccessFlags(flags)) * */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaMemPoolGetAccess((&__pyx_v_flags), __pyx_v_cmemPool, __pyx_v_clocation_ptr); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 21996, __pyx_L1_error) __pyx_v_err = __pyx_t_7; /* "cuda/cudart.pyx":21997 * cdef ccudart.cudaMemLocation* clocation_ptr = location._ptr if location != None else NULL * err = ccudart.cudaMemPoolGetAccess(&flags, cmemPool, clocation_ptr) * return (cudaError_t(err), cudaMemAccessFlags(flags)) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21997, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 21997, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_8}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21997, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_cudaMemAccessFlags); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 21997, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = __Pyx_PyInt_From_enum__cudaMemAccessFlags(__pyx_v_flags); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 21997, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_11 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_8))) { __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_8); if (likely(__pyx_t_11)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); __Pyx_INCREF(__pyx_t_11); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_8, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_11, __pyx_t_9}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_8, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21997, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 21997, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_5)) __PYX_ERR(0, 21997, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_3)) __PYX_ERR(0, 21997, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_3 = 0; __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":21960 * return (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_5); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_XDECREF(__pyx_t_11); __Pyx_AddTraceback("cuda.cudart.cudaMemPoolGetAccess", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pmemPool); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":21999 * return (cudaError_t(err), cudaMemAccessFlags(flags)) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemPoolCreate(poolProps : Optional[cudaMemPoolProps]): * """ Creates a memory pool. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_303cudaMemPoolCreate(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_302cudaMemPoolCreate, "cudaMemPoolCreate(cudaMemPoolProps poolProps: Optional[cudaMemPoolProps])\n Creates a memory pool.\n\n Creates a CUDA memory pool and returns the handle in `pool`. The\n `poolProps` determines the properties of the pool such as the backing\n device and IPC capabilities.\n\n To create a memory pool targeting a specific host NUMA node,\n 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\n ID of the host memory node. Specifying\n :py:obj:`~.cudaMemLocationTypeHostNumaCurrent` or\n :py:obj:`~.cudaMemLocationTypeHost` as the\n :py:obj:`~.cudaMemPoolProps`::cudaMemLocation::type will result in\n :py:obj:`~.cudaErrorInvalidValue`. By default, the pool's memory will\n be accessible from the device it is allocated on. In the case of pools\n created with :py:obj:`~.cudaMemLocationTypeHostNuma`, their default\n accessibility will be from the host CPU. Applications can control the\n maximum size of the pool by specifying a non-zero value for\n :py:obj:`~.cudaMemPoolProps.maxSize`. If set to 0, the maximum size of\n the pool will default to a system dependent value.\n\n Applications can set :py:obj:`~.cudaMemPoolProps.handleTypes` to\n :py:obj:`~.cudaMemHandleTypeFabric` in order to create\n :py:obj:`~.cudaMemPool_t` suitable for sharing within an IMEX domain.\n An IMEX domain is either an OS instance or a group of securely\n connected OS instances using the NVIDIA IMEX daemon. An IMEX channel is\n a global resource within the IMEX domain that represents a logical\n entity that aims to provide fine grained accessibility control for the\n participating processes. When exporter and importer CUDA processes have\n been granted access to the same IMEX channel, they can securely share\n memory. If the allocating process does not have access setup for an""\n IMEX channel, attempting to export a :py:obj:`~.CUmemoryPool` with\n :py:obj:`~.cudaMemHandleTypeFabric` will result in\n :py:obj:`~.cudaErrorNotPermitted`. The nvidia-modprobe CLI provides\n more information regarding setting up of IMEX channels.\n\n Parameters\n ----------\n poolProps : :py:obj:`~.cudaMemPoolProps`\n None\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorNotSupported`\n memPool : :py:obj:`~.cudaMemPool_t`\n None\n\n See Also\n --------\n :py:obj:`~.cuMemPoolCreate`, :py:obj:`~.cudaDeviceSetMemPool`, :py:obj:`~.cudaMallocFromPoolAsync`, :py:obj:`~.cudaMemPoolExportToShareableHandle`, :py:obj:`~.cudaDeviceGetDefaultMemPool`, :py:obj:`~.cudaDeviceGetMemPool`\n\n Notes\n -----\n Specifying cudaMemHandleTypeNone creates a memory pool that will not support IPC.\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_303cudaMemPoolCreate = {"cudaMemPoolCreate", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_303cudaMemPoolCreate, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_302cudaMemPoolCreate}; static PyObject *__pyx_pw_4cuda_6cudart_303cudaMemPoolCreate(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_poolProps_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_poolProps_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21999, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemPoolCreate") < 0)) __PYX_ERR(0, 21999, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_poolProps = ((struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *)values[0]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaMemPoolCreate", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 21999, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaMemPoolProps, 1, "poolProps", 0))) __PYX_ERR(0, 22000, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_302cudaMemPoolCreate(__pyx_self, __pyx_v_poolProps); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_302cudaMemPoolCreate(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *__pyx_v_poolProps) { struct __pyx_obj_4cuda_6cudart_cudaMemPool_t *__pyx_v_memPool = 0; struct cudaMemPoolProps *__pyx_v_cpoolProps_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; struct cudaMemPoolProps *__pyx_t_2; int __pyx_t_3; cudaError_t __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__502) __Pyx_RefNannySetupContext("cudaMemPoolCreate", 1); __Pyx_TraceCall("cudaMemPoolCreate", __pyx_f[0], 21999, 0, __PYX_ERR(0, 21999, __pyx_L1_error)); /* "cuda/cudart.pyx":22059 * Specifying cudaMemHandleTypeNone creates a memory pool that will not support IPC. * """ * cdef cudaMemPool_t memPool = cudaMemPool_t() # <<<<<<<<<<<<<< * cdef ccudart.cudaMemPoolProps* cpoolProps_ptr = poolProps._ptr if poolProps != None else NULL * err = ccudart.cudaMemPoolCreate(memPool._ptr, cpoolProps_ptr) */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemPool_t)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22059, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_memPool = ((struct __pyx_obj_4cuda_6cudart_cudaMemPool_t *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":22060 * """ * cdef cudaMemPool_t memPool = cudaMemPool_t() * cdef ccudart.cudaMemPoolProps* cpoolProps_ptr = poolProps._ptr if poolProps != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaMemPoolCreate(memPool._ptr, cpoolProps_ptr) * return (cudaError_t(err), memPool) */ __pyx_t_1 = PyObject_RichCompare(((PyObject *)__pyx_v_poolProps), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22060, __pyx_L1_error) __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 22060, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_3) { __pyx_t_2 = __pyx_v_poolProps->_ptr; } else { __pyx_t_2 = NULL; } __pyx_v_cpoolProps_ptr = __pyx_t_2; /* "cuda/cudart.pyx":22061 * cdef cudaMemPool_t memPool = cudaMemPool_t() * cdef ccudart.cudaMemPoolProps* cpoolProps_ptr = poolProps._ptr if poolProps != None else NULL * err = ccudart.cudaMemPoolCreate(memPool._ptr, cpoolProps_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err), memPool) * */ __pyx_t_4 = __pyx_f_4cuda_7ccudart_cudaMemPoolCreate(((cudaMemPool_t *)__pyx_v_memPool->__pyx_base._ptr), __pyx_v_cpoolProps_ptr); if (unlikely(__pyx_t_4 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 22061, __pyx_L1_error) __pyx_v_err = __pyx_t_4; /* "cuda/cudart.pyx":22062 * cdef ccudart.cudaMemPoolProps* cpoolProps_ptr = poolProps._ptr if poolProps != None else NULL * err = ccudart.cudaMemPoolCreate(memPool._ptr, cpoolProps_ptr) * return (cudaError_t(err), memPool) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 22062, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 22062, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22062, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 22062, __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)) __PYX_ERR(0, 22062, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_memPool); __Pyx_GIVEREF((PyObject *)__pyx_v_memPool); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_v_memPool))) __PYX_ERR(0, 22062, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":21999 * return (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_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.cudaMemPoolCreate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_memPool); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":22064 * return (cudaError_t(err), memPool) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemPoolDestroy(memPool): * """ Destroys the specified memory pool. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_305cudaMemPoolDestroy(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_304cudaMemPoolDestroy, "cudaMemPoolDestroy(memPool)\n Destroys the specified memory pool.\n\n If any pointers obtained from this pool haven't been freed or the pool\n has free operations that haven't completed when\n :py:obj:`~.cudaMemPoolDestroy` is invoked, the function will return\n immediately and the resources associated with the pool will be released\n automatically once there are no more outstanding allocations.\n\n Destroying the current mempool of a device sets the default mempool of\n that device as the current mempool for that device.\n\n Parameters\n ----------\n memPool : :py:obj:`~.CUmemoryPool` or :py:obj:`~.cudaMemPool_t`\n None\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\n See Also\n --------\n cuMemPoolDestroy, :py:obj:`~.cudaFreeAsync`, :py:obj:`~.cudaDeviceSetMemPool`, :py:obj:`~.cudaDeviceGetDefaultMemPool`, :py:obj:`~.cudaDeviceGetMemPool`, :py:obj:`~.cudaMemPoolCreate`\n\n Notes\n -----\n A device's default memory pool cannot be destroyed.\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_305cudaMemPoolDestroy = {"cudaMemPoolDestroy", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_305cudaMemPoolDestroy, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_304cudaMemPoolDestroy}; static PyObject *__pyx_pw_4cuda_6cudart_305cudaMemPoolDestroy(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_memPool,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_memPool)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22064, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemPoolDestroy") < 0)) __PYX_ERR(0, 22064, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_memPool = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaMemPoolDestroy", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 22064, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemPoolDestroy", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_304cudaMemPoolDestroy(__pyx_self, __pyx_v_memPool); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_304cudaMemPoolDestroy(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_memPool) { cudaMemPool_t __pyx_v_cmemPool; PyObject *__pyx_v_pmemPool = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__503) __Pyx_RefNannySetupContext("cudaMemPoolDestroy", 1); __Pyx_TraceCall("cudaMemPoolDestroy", __pyx_f[0], 22064, 0, __PYX_ERR(0, 22064, __pyx_L1_error)); /* "cuda/cudart.pyx":22096 * """ * cdef ccudart.cudaMemPool_t cmemPool * if memPool is None: # <<<<<<<<<<<<<< * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): */ __pyx_t_1 = (__pyx_v_memPool == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":22097 * cdef ccudart.cudaMemPool_t cmemPool * if memPool is None: * cmemPool = 0 # <<<<<<<<<<<<<< * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): * pmemPool = int(memPool) */ __pyx_v_cmemPool = ((cudaMemPool_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":22096 * """ * cdef ccudart.cudaMemPool_t cmemPool * if memPool is None: # <<<<<<<<<<<<<< * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":22098 * if memPool is None: * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): # <<<<<<<<<<<<<< * pmemPool = int(memPool) * cmemPool = pmemPool */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_memPool, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUmemoryPool); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":22099 * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): * pmemPool = int(memPool) # <<<<<<<<<<<<<< * cmemPool = pmemPool * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_memPool); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22099, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pmemPool = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":22100 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): * pmemPool = int(memPool) * cmemPool = pmemPool # <<<<<<<<<<<<<< * else: * pmemPool = int(cudaMemPool_t(memPool)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pmemPool); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22100, __pyx_L1_error) __pyx_v_cmemPool = ((cudaMemPool_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":22098 * if memPool is None: * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): # <<<<<<<<<<<<<< * pmemPool = int(memPool) * cmemPool = pmemPool */ goto __pyx_L3; } /* "cuda/cudart.pyx":22102 * cmemPool = pmemPool * else: * pmemPool = int(cudaMemPool_t(memPool)) # <<<<<<<<<<<<<< * cmemPool = pmemPool * err = ccudart.cudaMemPoolDestroy(cmemPool) */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemPool_t), __pyx_v_memPool); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22102, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 22102, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pmemPool = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":22103 * else: * pmemPool = int(cudaMemPool_t(memPool)) * cmemPool = pmemPool # <<<<<<<<<<<<<< * err = ccudart.cudaMemPoolDestroy(cmemPool) * return (cudaError_t(err),) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pmemPool); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22103, __pyx_L1_error) __pyx_v_cmemPool = ((cudaMemPool_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":22104 * pmemPool = int(cudaMemPool_t(memPool)) * cmemPool = pmemPool * err = ccudart.cudaMemPoolDestroy(cmemPool) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaMemPoolDestroy(__pyx_v_cmemPool); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 22104, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":22105 * cmemPool = pmemPool * err = ccudart.cudaMemPoolDestroy(cmemPool) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 22105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 22105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 22105, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":22064 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaMemPoolDestroy", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pmemPool); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":22107 * return (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_6cudart_307cudaMallocFromPoolAsync(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_306cudaMallocFromPoolAsync, "cudaMallocFromPoolAsync(size_t size, memPool, stream)\n Allocates memory from a specified pool with stream ordered semantics.\n\n Inserts an allocation operation into `hStream`. A pointer to the\n allocated memory is returned immediately in *dptr. The allocation must\n not be accessed until the the allocation operation completes. The\n allocation comes from the specified memory pool.\n\n Parameters\n ----------\n bytesize : size_t\n Number of bytes to allocate\n memPool : :py:obj:`~.CUmemoryPool` or :py:obj:`~.cudaMemPool_t`\n The pool to allocate from\n stream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n The stream establishing the stream ordering semantic\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorNotSupported`, :py:obj:`~.cudaErrorOutOfMemory`\n ptr : Any\n Returned device pointer\n\n See 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\n Notes\n -----\n During 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.\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_307cudaMallocFromPoolAsync = {"cudaMallocFromPoolAsync", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_307cudaMallocFromPoolAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_306cudaMallocFromPoolAsync}; static PyObject *__pyx_pw_4cuda_6cudart_307cudaMallocFromPoolAsync(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_size_2,&__pyx_n_s_memPool,&__pyx_n_s_stream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_size_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22107, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_memPool)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22107, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMallocFromPoolAsync", 1, 3, 3, 1); __PYX_ERR(0, 22107, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22107, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMallocFromPoolAsync", 1, 3, 3, 2); __PYX_ERR(0, 22107, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMallocFromPoolAsync") < 0)) __PYX_ERR(0, 22107, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_size = __Pyx_PyInt_As_size_t(values[0]); if (unlikely((__pyx_v_size == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 22108, __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, 22107, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMallocFromPoolAsync", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_306cudaMallocFromPoolAsync(__pyx_self, __pyx_v_size, __pyx_v_memPool, __pyx_v_stream); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_306cudaMallocFromPoolAsync(CYTHON_UNUSED PyObject *__pyx_self, size_t __pyx_v_size, PyObject *__pyx_v_memPool, PyObject *__pyx_v_stream) { cudaStream_t __pyx_v_cstream; PyObject *__pyx_v_pstream = NULL; cudaMemPool_t __pyx_v_cmemPool; PyObject *__pyx_v_pmemPool = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_v_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__504) __Pyx_RefNannySetupContext("cudaMallocFromPoolAsync", 1); __Pyx_TraceCall("cudaMallocFromPoolAsync", __pyx_f[0], 22107, 0, __PYX_ERR(0, 22107, __pyx_L1_error)); /* "cuda/cudart.pyx":22141 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_stream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":22142 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":22141 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":22143 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":22144 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22144, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pstream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":22145 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22145, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":22143 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L3; } /* "cuda/cudart.pyx":22147 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * cdef ccudart.cudaMemPool_t cmemPool */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22147, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 22147, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pstream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":22148 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * cdef ccudart.cudaMemPool_t cmemPool * if memPool is None: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22148, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":22150 * cstream = pstream * cdef ccudart.cudaMemPool_t cmemPool * if memPool is None: # <<<<<<<<<<<<<< * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): */ __pyx_t_1 = (__pyx_v_memPool == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":22151 * cdef ccudart.cudaMemPool_t cmemPool * if memPool is None: * cmemPool = 0 # <<<<<<<<<<<<<< * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): * pmemPool = int(memPool) */ __pyx_v_cmemPool = ((cudaMemPool_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":22150 * cstream = pstream * cdef ccudart.cudaMemPool_t cmemPool * if memPool is None: # <<<<<<<<<<<<<< * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":22152 * if memPool is None: * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): # <<<<<<<<<<<<<< * pmemPool = int(memPool) * cmemPool = pmemPool */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_memPool, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUmemoryPool); __pyx_t_1 = __pyx_t_2; __pyx_L7_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":22153 * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): * pmemPool = int(memPool) # <<<<<<<<<<<<<< * cmemPool = pmemPool * else: */ __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_v_memPool); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 22153, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pmemPool = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":22154 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): * pmemPool = int(memPool) * cmemPool = pmemPool # <<<<<<<<<<<<<< * else: * pmemPool = int(cudaMemPool_t(memPool)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pmemPool); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22154, __pyx_L1_error) __pyx_v_cmemPool = ((cudaMemPool_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":22152 * if memPool is None: * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): # <<<<<<<<<<<<<< * pmemPool = int(memPool) * cmemPool = pmemPool */ goto __pyx_L6; } /* "cuda/cudart.pyx":22156 * cmemPool = pmemPool * else: * pmemPool = int(cudaMemPool_t(memPool)) # <<<<<<<<<<<<<< * cmemPool = pmemPool * cdef void_ptr ptr = 0 */ /*else*/ { __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemPool_t), __pyx_v_memPool); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 22156, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22156, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_pmemPool = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":22157 * else: * pmemPool = int(cudaMemPool_t(memPool)) * cmemPool = pmemPool # <<<<<<<<<<<<<< * cdef void_ptr ptr = 0 * err = ccudart.cudaMallocFromPoolAsync(&ptr, size, cmemPool, cstream) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pmemPool); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22157, __pyx_L1_error) __pyx_v_cmemPool = ((cudaMemPool_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L6:; /* "cuda/cudart.pyx":22158 * pmemPool = int(cudaMemPool_t(memPool)) * cmemPool = pmemPool * cdef void_ptr ptr = 0 # <<<<<<<<<<<<<< * err = ccudart.cudaMallocFromPoolAsync(&ptr, size, cmemPool, cstream) * return (cudaError_t(err), ptr) */ __pyx_v_ptr = 0; /* "cuda/cudart.pyx":22159 * cmemPool = pmemPool * cdef void_ptr ptr = 0 * err = ccudart.cudaMallocFromPoolAsync(&ptr, size, cmemPool, cstream) # <<<<<<<<<<<<<< * return (cudaError_t(err), ptr) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaMallocFromPoolAsync(((void **)(&__pyx_v_ptr)), __pyx_v_size, __pyx_v_cmemPool, __pyx_v_cstream); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 22159, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":22160 * cdef void_ptr ptr = 0 * err = ccudart.cudaMallocFromPoolAsync(&ptr, size, cmemPool, cstream) * return (cudaError_t(err), ptr) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 22160, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 22160, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __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, 22160, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(__pyx_v_ptr); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 22160, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 22160, __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)) __PYX_ERR(0, 22160, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_5)) __PYX_ERR(0, 22160, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_5 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":22107 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":22162 * return (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_6cudart_309cudaMemPoolExportToShareableHandle(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_308cudaMemPoolExportToShareableHandle, "cudaMemPoolExportToShareableHandle(memPool, handleType: cudaMemAllocationHandleType, unsigned int flags)\n Exports a memory pool to the requested handle type.\n\n Given an IPC capable mempool, create an OS handle to share the pool\n with another process. A recipient process can convert the shareable\n handle into a mempool with\n :py:obj:`~.cudaMemPoolImportFromShareableHandle`. Individual pointers\n can then be shared with the :py:obj:`~.cudaMemPoolExportPointer` and\n :py:obj:`~.cudaMemPoolImportPointer` APIs. The implementation of what\n the shareable handle is and how it can be transferred is defined by the\n requested handle type.\n\n Parameters\n ----------\n pool : :py:obj:`~.CUmemoryPool` or :py:obj:`~.cudaMemPool_t`\n pool to export\n handleType : :py:obj:`~.cudaMemAllocationHandleType`\n the type of handle to create\n flags : unsigned int\n must be 0\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorOutOfMemory`\n handle_out : Any\n pointer to the location in which to store the requested handle\n\n See Also\n --------\n :py:obj:`~.cuMemPoolExportToShareableHandle`, :py:obj:`~.cudaMemPoolImportFromShareableHandle`, :py:obj:`~.cudaMemPoolExportPointer`, :py:obj:`~.cudaMemPoolImportPointer`\n\n Notes\n -----\n : To create an IPC capable mempool, create a mempool with a CUmemAllocationHandleType other than cudaMemHandleTypeNone.\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_309cudaMemPoolExportToShareableHandle = {"cudaMemPoolExportToShareableHandle", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_309cudaMemPoolExportToShareableHandle, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_308cudaMemPoolExportToShareableHandle}; static PyObject *__pyx_pw_4cuda_6cudart_309cudaMemPoolExportToShareableHandle(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_memPool,&__pyx_n_s_handleType,&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_memPool)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22162, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_handleType)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22162, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemPoolExportToShareableHandle", 1, 3, 3, 1); __PYX_ERR(0, 22162, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22162, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemPoolExportToShareableHandle", 1, 3, 3, 2); __PYX_ERR(0, 22162, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemPoolExportToShareableHandle") < 0)) __PYX_ERR(0, 22162, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_memPool = values[0]; __pyx_v_handleType = values[1]; __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[2]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 22163, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaMemPoolExportToShareableHandle", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 22162, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 22163, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_308cudaMemPoolExportToShareableHandle(__pyx_self, __pyx_v_memPool, __pyx_v_handleType, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_308cudaMemPoolExportToShareableHandle(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_memPool, PyObject *__pyx_v_handleType, unsigned int __pyx_v_flags) { cudaMemPool_t __pyx_v_cmemPool; PyObject *__pyx_v_pmemPool = NULL; struct __pyx_obj_4cuda_4_lib_5utils_HelperCUmemAllocationHandleType *__pyx_v_cshareableHandle = 0; void *__pyx_v_cshareableHandle_ptr; enum cudaMemAllocationHandleType __pyx_v_chandleType; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; enum cudaMemAllocationHandleType __pyx_t_6; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__505) __Pyx_RefNannySetupContext("cudaMemPoolExportToShareableHandle", 1); __Pyx_TraceCall("cudaMemPoolExportToShareableHandle", __pyx_f[0], 22162, 0, __PYX_ERR(0, 22162, __pyx_L1_error)); /* "cuda/cudart.pyx":22200 * """ * cdef ccudart.cudaMemPool_t cmemPool * if memPool is None: # <<<<<<<<<<<<<< * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): */ __pyx_t_1 = (__pyx_v_memPool == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":22201 * cdef ccudart.cudaMemPool_t cmemPool * if memPool is None: * cmemPool = 0 # <<<<<<<<<<<<<< * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): * pmemPool = int(memPool) */ __pyx_v_cmemPool = ((cudaMemPool_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":22200 * """ * cdef ccudart.cudaMemPool_t cmemPool * if memPool is None: # <<<<<<<<<<<<<< * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":22202 * if memPool is None: * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): # <<<<<<<<<<<<<< * pmemPool = int(memPool) * cmemPool = pmemPool */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_memPool, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUmemoryPool); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":22203 * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): * pmemPool = int(memPool) # <<<<<<<<<<<<<< * cmemPool = pmemPool * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_memPool); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22203, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pmemPool = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":22204 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): * pmemPool = int(memPool) * cmemPool = pmemPool # <<<<<<<<<<<<<< * else: * pmemPool = int(cudaMemPool_t(memPool)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pmemPool); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22204, __pyx_L1_error) __pyx_v_cmemPool = ((cudaMemPool_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":22202 * if memPool is None: * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): # <<<<<<<<<<<<<< * pmemPool = int(memPool) * cmemPool = pmemPool */ goto __pyx_L3; } /* "cuda/cudart.pyx":22206 * cmemPool = pmemPool * else: * pmemPool = int(cudaMemPool_t(memPool)) # <<<<<<<<<<<<<< * cmemPool = pmemPool * cdef utils.HelperCUmemAllocationHandleType cshareableHandle = utils.HelperCUmemAllocationHandleType(handleType) */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemPool_t), __pyx_v_memPool); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22206, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 22206, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pmemPool = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":22207 * else: * pmemPool = int(cudaMemPool_t(memPool)) * cmemPool = pmemPool # <<<<<<<<<<<<<< * cdef utils.HelperCUmemAllocationHandleType cshareableHandle = utils.HelperCUmemAllocationHandleType(handleType) * cdef void* cshareableHandle_ptr = cshareableHandle.cptr */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pmemPool); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22207, __pyx_L1_error) __pyx_v_cmemPool = ((cudaMemPool_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":22208 * pmemPool = int(cudaMemPool_t(memPool)) * cmemPool = pmemPool * cdef utils.HelperCUmemAllocationHandleType cshareableHandle = utils.HelperCUmemAllocationHandleType(handleType) # <<<<<<<<<<<<<< * cdef void* cshareableHandle_ptr = cshareableHandle.cptr * cdef ccudart.cudaMemAllocationHandleType chandleType = handleType.value */ __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperCUmemAllocationHandleType), __pyx_v_handleType); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 22208, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_cshareableHandle = ((struct __pyx_obj_4cuda_4_lib_5utils_HelperCUmemAllocationHandleType *)__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":22209 * cmemPool = pmemPool * cdef utils.HelperCUmemAllocationHandleType cshareableHandle = utils.HelperCUmemAllocationHandleType(handleType) * cdef void* cshareableHandle_ptr = cshareableHandle.cptr # <<<<<<<<<<<<<< * cdef ccudart.cudaMemAllocationHandleType chandleType = handleType.value * err = ccudart.cudaMemPoolExportToShareableHandle(cshareableHandle_ptr, cmemPool, chandleType, flags) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cshareableHandle), __pyx_n_s_cptr); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 22209, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22209, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_cshareableHandle_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":22210 * cdef utils.HelperCUmemAllocationHandleType cshareableHandle = utils.HelperCUmemAllocationHandleType(handleType) * cdef void* cshareableHandle_ptr = cshareableHandle.cptr * cdef ccudart.cudaMemAllocationHandleType chandleType = handleType.value # <<<<<<<<<<<<<< * err = ccudart.cudaMemPoolExportToShareableHandle(cshareableHandle_ptr, cmemPool, chandleType, flags) * return (cudaError_t(err), cshareableHandle.pyObj()) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_handleType, __pyx_n_s_value); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 22210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = ((enum cudaMemAllocationHandleType)__Pyx_PyInt_As_enum__cudaMemAllocationHandleType(__pyx_t_5)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22210, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_chandleType = __pyx_t_6; /* "cuda/cudart.pyx":22211 * cdef void* cshareableHandle_ptr = cshareableHandle.cptr * cdef ccudart.cudaMemAllocationHandleType chandleType = handleType.value * err = ccudart.cudaMemPoolExportToShareableHandle(cshareableHandle_ptr, cmemPool, chandleType, flags) # <<<<<<<<<<<<<< * return (cudaError_t(err), cshareableHandle.pyObj()) * */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaMemPoolExportToShareableHandle(__pyx_v_cshareableHandle_ptr, __pyx_v_cmemPool, __pyx_v_chandleType, __pyx_v_flags); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 22211, __pyx_L1_error) __pyx_v_err = __pyx_t_7; /* "cuda/cudart.pyx":22212 * cdef ccudart.cudaMemAllocationHandleType chandleType = handleType.value * err = ccudart.cudaMemPoolExportToShareableHandle(cshareableHandle_ptr, cmemPool, chandleType, flags) * return (cudaError_t(err), cshareableHandle.pyObj()) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22212, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 22212, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_8}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 22212, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cshareableHandle), __pyx_n_s_pyObj); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 22212, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_8))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_8); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_8, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, NULL}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_8, __pyx_callargs+1-__pyx_t_10, 0+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22212, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 22212, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_5)) __PYX_ERR(0, 22212, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_3)) __PYX_ERR(0, 22212, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_3 = 0; __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":22162 * return (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_5); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.cudaMemPoolExportToShareableHandle", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pmemPool); __Pyx_XDECREF((PyObject *)__pyx_v_cshareableHandle); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":22214 * return (cudaError_t(err), cshareableHandle.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_6cudart_311cudaMemPoolImportFromShareableHandle(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_310cudaMemPoolImportFromShareableHandle, "cudaMemPoolImportFromShareableHandle(shareableHandle, handleType: cudaMemAllocationHandleType, unsigned int flags)\n imports a memory pool from a shared handle.\n\n Specific allocations can be imported from the imported pool with\n :py:obj:`~.cudaMemPoolImportPointer`.\n\n Parameters\n ----------\n handle : Any\n OS handle of the pool to open\n handleType : :py:obj:`~.cudaMemAllocationHandleType`\n The type of handle being imported\n flags : unsigned int\n must be 0\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorOutOfMemory`\n pool_out : :py:obj:`~.cudaMemPool_t`\n Returned memory pool\n\n See Also\n --------\n :py:obj:`~.cuMemPoolImportFromShareableHandle`, :py:obj:`~.cudaMemPoolExportToShareableHandle`, :py:obj:`~.cudaMemPoolExportPointer`, :py:obj:`~.cudaMemPoolImportPointer`\n\n Notes\n -----\n 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.\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_311cudaMemPoolImportFromShareableHandle = {"cudaMemPoolImportFromShareableHandle", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_311cudaMemPoolImportFromShareableHandle, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_310cudaMemPoolImportFromShareableHandle}; static PyObject *__pyx_pw_4cuda_6cudart_311cudaMemPoolImportFromShareableHandle(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_shareableHandle,&__pyx_n_s_handleType,&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_shareableHandle)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22214, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_handleType)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22214, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemPoolImportFromShareableHandle", 1, 3, 3, 1); __PYX_ERR(0, 22214, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22214, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemPoolImportFromShareableHandle", 1, 3, 3, 2); __PYX_ERR(0, 22214, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemPoolImportFromShareableHandle") < 0)) __PYX_ERR(0, 22214, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_shareableHandle = values[0]; __pyx_v_handleType = values[1]; __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[2]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 22215, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaMemPoolImportFromShareableHandle", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 22214, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 22215, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_310cudaMemPoolImportFromShareableHandle(__pyx_self, __pyx_v_shareableHandle, __pyx_v_handleType, __pyx_v_flags); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_310cudaMemPoolImportFromShareableHandle(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_shareableHandle, PyObject *__pyx_v_handleType, unsigned int __pyx_v_flags) { struct __pyx_obj_4cuda_6cudart_cudaMemPool_t *__pyx_v_memPool = 0; PyObject *__pyx_v_cshareableHandle = NULL; void *__pyx_v_cshareableHandle_ptr; enum cudaMemAllocationHandleType __pyx_v_chandleType; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; enum cudaMemAllocationHandleType __pyx_t_3; cudaError_t __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__506) __Pyx_RefNannySetupContext("cudaMemPoolImportFromShareableHandle", 1); __Pyx_TraceCall("cudaMemPoolImportFromShareableHandle", __pyx_f[0], 22214, 0, __PYX_ERR(0, 22214, __pyx_L1_error)); /* "cuda/cudart.pyx":22245 * 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() # <<<<<<<<<<<<<< * cshareableHandle = utils.HelperInputVoidPtr(shareableHandle) * cdef void* cshareableHandle_ptr = cshareableHandle.cptr */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemPool_t)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22245, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_memPool = ((struct __pyx_obj_4cuda_6cudart_cudaMemPool_t *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":22246 * """ * cdef cudaMemPool_t memPool = cudaMemPool_t() * cshareableHandle = utils.HelperInputVoidPtr(shareableHandle) # <<<<<<<<<<<<<< * cdef void* cshareableHandle_ptr = cshareableHandle.cptr * cdef ccudart.cudaMemAllocationHandleType chandleType = handleType.value */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_shareableHandle); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22246, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_cshareableHandle = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":22247 * cdef cudaMemPool_t memPool = cudaMemPool_t() * cshareableHandle = utils.HelperInputVoidPtr(shareableHandle) * cdef void* cshareableHandle_ptr = cshareableHandle.cptr # <<<<<<<<<<<<<< * cdef ccudart.cudaMemAllocationHandleType chandleType = handleType.value * err = ccudart.cudaMemPoolImportFromShareableHandle(memPool._ptr, cshareableHandle_ptr, chandleType, flags) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_cshareableHandle, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22247, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22247, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cshareableHandle_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":22248 * cshareableHandle = utils.HelperInputVoidPtr(shareableHandle) * cdef void* cshareableHandle_ptr = cshareableHandle.cptr * cdef ccudart.cudaMemAllocationHandleType chandleType = handleType.value # <<<<<<<<<<<<<< * err = ccudart.cudaMemPoolImportFromShareableHandle(memPool._ptr, cshareableHandle_ptr, chandleType, flags) * return (cudaError_t(err), memPool) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_handleType, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22248, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = ((enum cudaMemAllocationHandleType)__Pyx_PyInt_As_enum__cudaMemAllocationHandleType(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22248, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_chandleType = __pyx_t_3; /* "cuda/cudart.pyx":22249 * cdef void* cshareableHandle_ptr = cshareableHandle.cptr * cdef ccudart.cudaMemAllocationHandleType chandleType = handleType.value * err = ccudart.cudaMemPoolImportFromShareableHandle(memPool._ptr, cshareableHandle_ptr, chandleType, flags) # <<<<<<<<<<<<<< * return (cudaError_t(err), memPool) * */ __pyx_t_4 = __pyx_f_4cuda_7ccudart_cudaMemPoolImportFromShareableHandle(((cudaMemPool_t *)__pyx_v_memPool->__pyx_base._ptr), __pyx_v_cshareableHandle_ptr, __pyx_v_chandleType, __pyx_v_flags); if (unlikely(__pyx_t_4 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 22249, __pyx_L1_error) __pyx_v_err = __pyx_t_4; /* "cuda/cudart.pyx":22250 * cdef ccudart.cudaMemAllocationHandleType chandleType = handleType.value * err = ccudart.cudaMemPoolImportFromShareableHandle(memPool._ptr, cshareableHandle_ptr, chandleType, flags) * return (cudaError_t(err), memPool) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 22250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 22250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 22250, __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)) __PYX_ERR(0, 22250, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_memPool); __Pyx_GIVEREF((PyObject *)__pyx_v_memPool); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_v_memPool))) __PYX_ERR(0, 22250, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":22214 * return (cudaError_t(err), cshareableHandle.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_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.cudaMemPoolImportFromShareableHandle", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_memPool); __Pyx_XDECREF(__pyx_v_cshareableHandle); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":22252 * return (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_6cudart_313cudaMemPoolExportPointer(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_312cudaMemPoolExportPointer, "cudaMemPoolExportPointer(ptr)\n Export data to share a memory pool allocation between processes.\n\n Constructs `shareData_out` for sharing a specific allocation from an\n already shared memory pool. The recipient process can import the\n allocation with the :py:obj:`~.cudaMemPoolImportPointer` api. The data\n is not a handle and may be shared through any IPC mechanism.\n\n Parameters\n ----------\n ptr : Any\n pointer to memory being exported\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorOutOfMemory`\n shareData_out : :py:obj:`~.cudaMemPoolPtrExportData`\n Returned export data\n\n See Also\n --------\n :py:obj:`~.cuMemPoolExportPointer`, :py:obj:`~.cudaMemPoolExportToShareableHandle`, :py:obj:`~.cudaMemPoolImportFromShareableHandle`, :py:obj:`~.cudaMemPoolImportPointer`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_313cudaMemPoolExportPointer = {"cudaMemPoolExportPointer", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_313cudaMemPoolExportPointer, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_312cudaMemPoolExportPointer}; static PyObject *__pyx_pw_4cuda_6cudart_313cudaMemPoolExportPointer(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ptr_3,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr_3)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22252, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemPoolExportPointer") < 0)) __PYX_ERR(0, 22252, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_ptr = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaMemPoolExportPointer", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 22252, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaMemPoolExportPointer", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_312cudaMemPoolExportPointer(__pyx_self, __pyx_v_ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_312cudaMemPoolExportPointer(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ptr) { struct __pyx_obj_4cuda_6cudart_cudaMemPoolPtrExportData *__pyx_v_exportData = 0; PyObject *__pyx_v_cptr = NULL; void *__pyx_v_cptr_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; cudaError_t __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; unsigned int __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__507) __Pyx_RefNannySetupContext("cudaMemPoolExportPointer", 1); __Pyx_TraceCall("cudaMemPoolExportPointer", __pyx_f[0], 22252, 0, __PYX_ERR(0, 22252, __pyx_L1_error)); /* "cuda/cudart.pyx":22277 * :py:obj:`~.cuMemPoolExportPointer`, :py:obj:`~.cudaMemPoolExportToShareableHandle`, :py:obj:`~.cudaMemPoolImportFromShareableHandle`, :py:obj:`~.cudaMemPoolImportPointer` * """ * cdef cudaMemPoolPtrExportData exportData = cudaMemPoolPtrExportData() # <<<<<<<<<<<<<< * cptr = utils.HelperInputVoidPtr(ptr) * cdef void* cptr_ptr = cptr.cptr */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemPoolPtrExportData)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22277, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_exportData = ((struct __pyx_obj_4cuda_6cudart_cudaMemPoolPtrExportData *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":22278 * """ * cdef cudaMemPoolPtrExportData exportData = cudaMemPoolPtrExportData() * cptr = utils.HelperInputVoidPtr(ptr) # <<<<<<<<<<<<<< * cdef void* cptr_ptr = cptr.cptr * err = ccudart.cudaMemPoolExportPointer(exportData._ptr, cptr_ptr) */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_ptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22278, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_cptr = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":22279 * cdef cudaMemPoolPtrExportData exportData = cudaMemPoolPtrExportData() * cptr = utils.HelperInputVoidPtr(ptr) * cdef void* cptr_ptr = cptr.cptr # <<<<<<<<<<<<<< * err = ccudart.cudaMemPoolExportPointer(exportData._ptr, cptr_ptr) * return (cudaError_t(err), exportData) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_cptr, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22279, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22279, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cptr_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":22280 * cptr = utils.HelperInputVoidPtr(ptr) * cdef void* cptr_ptr = cptr.cptr * err = ccudart.cudaMemPoolExportPointer(exportData._ptr, cptr_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err), exportData) * */ __pyx_t_3 = __pyx_f_4cuda_7ccudart_cudaMemPoolExportPointer(((struct cudaMemPoolPtrExportData *)__pyx_v_exportData->_ptr), __pyx_v_cptr_ptr); if (unlikely(__pyx_t_3 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 22280, __pyx_L1_error) __pyx_v_err = __pyx_t_3; /* "cuda/cudart.pyx":22281 * cdef void* cptr_ptr = cptr.cptr * err = ccudart.cudaMemPoolExportPointer(exportData._ptr, cptr_ptr) * return (cudaError_t(err), exportData) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22281, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 22281, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_7 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_5}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22281, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22281, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1)) __PYX_ERR(0, 22281, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_exportData); __Pyx_GIVEREF((PyObject *)__pyx_v_exportData); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, ((PyObject *)__pyx_v_exportData))) __PYX_ERR(0, 22281, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":22252 * return (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_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("cuda.cudart.cudaMemPoolExportPointer", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_exportData); __Pyx_XDECREF(__pyx_v_cptr); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":22283 * return (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_6cudart_315cudaMemPoolImportPointer(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_314cudaMemPoolImportPointer, "cudaMemPoolImportPointer(memPool, cudaMemPoolPtrExportData exportData: Optional[cudaMemPoolPtrExportData])\n Import a memory pool allocation from another process.\n\n Returns in `ptr_out` a pointer to the imported memory. The imported\n memory must not be accessed before the allocation operation completes\n in the exporting process. The imported memory must be freed from all\n importing processes before being freed in the exporting process. The\n pointer may be freed with cudaFree or cudaFreeAsync. If\n :py:obj:`~.cudaFreeAsync` is used, the free must be completed on the\n importing process before the free operation on the exporting process.\n\n Parameters\n ----------\n pool : :py:obj:`~.CUmemoryPool` or :py:obj:`~.cudaMemPool_t`\n pool from which to import\n shareData : :py:obj:`~.cudaMemPoolPtrExportData`\n data specifying the memory to import\n\n Returns\n -------\n cudaError_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`\n ptr_out : Any\n pointer to imported memory\n\n See Also\n --------\n :py:obj:`~.cuMemPoolImportPointer`, :py:obj:`~.cudaMemPoolExportToShareableHandle`, :py:obj:`~.cudaMemPoolImportFromShareableHandle`, :py:obj:`~.cudaMemPoolExportPointer`\n\n Notes\n -----\n The :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`.\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_315cudaMemPoolImportPointer = {"cudaMemPoolImportPointer", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_315cudaMemPoolImportPointer, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_314cudaMemPoolImportPointer}; static PyObject *__pyx_pw_4cuda_6cudart_315cudaMemPoolImportPointer(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_memPool,&__pyx_n_s_exportData,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_memPool)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22283, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_exportData)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22283, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaMemPoolImportPointer", 1, 2, 2, 1); __PYX_ERR(0, 22283, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaMemPoolImportPointer") < 0)) __PYX_ERR(0, 22283, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_memPool = values[0]; __pyx_v_exportData = ((struct __pyx_obj_4cuda_6cudart_cudaMemPoolPtrExportData *)values[1]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaMemPoolImportPointer", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 22283, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaMemPoolPtrExportData, 1, "exportData", 0))) __PYX_ERR(0, 22284, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_314cudaMemPoolImportPointer(__pyx_self, __pyx_v_memPool, __pyx_v_exportData); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_314cudaMemPoolImportPointer(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_memPool, struct __pyx_obj_4cuda_6cudart_cudaMemPoolPtrExportData *__pyx_v_exportData) { cudaMemPool_t __pyx_v_cmemPool; PyObject *__pyx_v_pmemPool = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_v_ptr; struct cudaMemPoolPtrExportData *__pyx_v_cexportData_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; struct cudaMemPoolPtrExportData *__pyx_t_6; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__508) __Pyx_RefNannySetupContext("cudaMemPoolImportPointer", 1); __Pyx_TraceCall("cudaMemPoolImportPointer", __pyx_f[0], 22283, 0, __PYX_ERR(0, 22283, __pyx_L1_error)); /* "cuda/cudart.pyx":22318 * """ * cdef ccudart.cudaMemPool_t cmemPool * if memPool is None: # <<<<<<<<<<<<<< * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): */ __pyx_t_1 = (__pyx_v_memPool == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":22319 * cdef ccudart.cudaMemPool_t cmemPool * if memPool is None: * cmemPool = 0 # <<<<<<<<<<<<<< * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): * pmemPool = int(memPool) */ __pyx_v_cmemPool = ((cudaMemPool_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":22318 * """ * cdef ccudart.cudaMemPool_t cmemPool * if memPool is None: # <<<<<<<<<<<<<< * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":22320 * if memPool is None: * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): # <<<<<<<<<<<<<< * pmemPool = int(memPool) * cmemPool = pmemPool */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_memPool, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUmemoryPool); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":22321 * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): * pmemPool = int(memPool) # <<<<<<<<<<<<<< * cmemPool = pmemPool * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_memPool); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22321, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pmemPool = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":22322 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): * pmemPool = int(memPool) * cmemPool = pmemPool # <<<<<<<<<<<<<< * else: * pmemPool = int(cudaMemPool_t(memPool)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pmemPool); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22322, __pyx_L1_error) __pyx_v_cmemPool = ((cudaMemPool_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":22320 * if memPool is None: * cmemPool = 0 * elif isinstance(memPool, (cudaMemPool_t,cuda.CUmemoryPool)): # <<<<<<<<<<<<<< * pmemPool = int(memPool) * cmemPool = pmemPool */ goto __pyx_L3; } /* "cuda/cudart.pyx":22324 * cmemPool = pmemPool * else: * pmemPool = int(cudaMemPool_t(memPool)) # <<<<<<<<<<<<<< * cmemPool = pmemPool * cdef void_ptr ptr = 0 */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemPool_t), __pyx_v_memPool); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22324, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 22324, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pmemPool = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":22325 * else: * pmemPool = int(cudaMemPool_t(memPool)) * cmemPool = pmemPool # <<<<<<<<<<<<<< * cdef void_ptr ptr = 0 * cdef ccudart.cudaMemPoolPtrExportData* cexportData_ptr = exportData._ptr if exportData != None else NULL */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pmemPool); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22325, __pyx_L1_error) __pyx_v_cmemPool = ((cudaMemPool_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":22326 * pmemPool = int(cudaMemPool_t(memPool)) * cmemPool = pmemPool * cdef void_ptr ptr = 0 # <<<<<<<<<<<<<< * cdef ccudart.cudaMemPoolPtrExportData* cexportData_ptr = exportData._ptr if exportData != None else NULL * err = ccudart.cudaMemPoolImportPointer(&ptr, cmemPool, cexportData_ptr) */ __pyx_v_ptr = 0; /* "cuda/cudart.pyx":22327 * cmemPool = pmemPool * cdef void_ptr ptr = 0 * cdef ccudart.cudaMemPoolPtrExportData* cexportData_ptr = exportData._ptr if exportData != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaMemPoolImportPointer(&ptr, cmemPool, cexportData_ptr) * return (cudaError_t(err), ptr) */ __pyx_t_5 = PyObject_RichCompare(((PyObject *)__pyx_v_exportData), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 22327, __pyx_L1_error) __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 22327, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_1) { __pyx_t_6 = __pyx_v_exportData->_ptr; } else { __pyx_t_6 = NULL; } __pyx_v_cexportData_ptr = __pyx_t_6; /* "cuda/cudart.pyx":22328 * cdef void_ptr ptr = 0 * cdef ccudart.cudaMemPoolPtrExportData* cexportData_ptr = exportData._ptr if exportData != None else NULL * err = ccudart.cudaMemPoolImportPointer(&ptr, cmemPool, cexportData_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err), ptr) * */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaMemPoolImportPointer(((void **)(&__pyx_v_ptr)), __pyx_v_cmemPool, __pyx_v_cexportData_ptr); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 22328, __pyx_L1_error) __pyx_v_err = __pyx_t_7; /* "cuda/cudart.pyx":22329 * cdef ccudart.cudaMemPoolPtrExportData* cexportData_ptr = exportData._ptr if exportData != None else NULL * err = ccudart.cudaMemPoolImportPointer(&ptr, cmemPool, cexportData_ptr) * return (cudaError_t(err), ptr) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22329, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 22329, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_8}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 22329, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(__pyx_v_ptr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22329, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 22329, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_5)) __PYX_ERR(0, 22329, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_3)) __PYX_ERR(0, 22329, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_3 = 0; __pyx_r = __pyx_t_8; __pyx_t_8 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":22283 * return (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_5); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.cudaMemPoolImportPointer", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pmemPool); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":22331 * return (cudaError_t(err), ptr) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaPointerGetAttributes(ptr): * """ Returns attributes about a specified pointer. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_317cudaPointerGetAttributes(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_316cudaPointerGetAttributes, "cudaPointerGetAttributes(ptr)\n Returns attributes about a specified pointer.\n\n Returns in `*attributes` the attributes of the pointer `ptr`. If\n pointer was not allocated in, mapped by or registered with context\n supporting unified addressing :py:obj:`~.cudaErrorInvalidValue` is\n returned.\n\n The :py:obj:`~.cudaPointerAttributes` structure is defined as:\n\n **View CUDA Toolkit Documentation for a C++ code example**\n\n In 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\n Parameters\n ----------\n ptr : Any\n Pointer to get attributes for\n\n Returns\n -------\n c""udaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorInvalidValue`\n attributes : :py:obj:`~.cudaPointerAttributes`\n Attributes for the specified pointer\n\n See Also\n --------\n :py:obj:`~.cudaGetDeviceCount`, :py:obj:`~.cudaGetDevice`, :py:obj:`~.cudaSetDevice`, :py:obj:`~.cudaChooseDevice`, :py:obj:`~.cudaInitDevice`, :py:obj:`~.cuPointerGetAttributes`\n\n Notes\n -----\n 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`.\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_317cudaPointerGetAttributes = {"cudaPointerGetAttributes", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_317cudaPointerGetAttributes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_316cudaPointerGetAttributes}; static PyObject *__pyx_pw_4cuda_6cudart_317cudaPointerGetAttributes(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ptr_3,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr_3)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22331, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaPointerGetAttributes") < 0)) __PYX_ERR(0, 22331, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_ptr = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaPointerGetAttributes", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 22331, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaPointerGetAttributes", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_316cudaPointerGetAttributes(__pyx_self, __pyx_v_ptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_316cudaPointerGetAttributes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ptr) { struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes *__pyx_v_attributes = 0; PyObject *__pyx_v_cptr = NULL; void *__pyx_v_cptr_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; cudaError_t __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; unsigned int __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__509) __Pyx_RefNannySetupContext("cudaPointerGetAttributes", 1); __Pyx_TraceCall("cudaPointerGetAttributes", __pyx_f[0], 22331, 0, __PYX_ERR(0, 22331, __pyx_L1_error)); /* "cuda/cudart.pyx":22391 * 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() # <<<<<<<<<<<<<< * cptr = utils.HelperInputVoidPtr(ptr) * cdef void* cptr_ptr = cptr.cptr */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaPointerAttributes)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22391, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_attributes = ((struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":22392 * """ * cdef cudaPointerAttributes attributes = cudaPointerAttributes() * cptr = utils.HelperInputVoidPtr(ptr) # <<<<<<<<<<<<<< * cdef void* cptr_ptr = cptr.cptr * err = ccudart.cudaPointerGetAttributes(attributes._ptr, cptr_ptr) */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_ptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22392, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_cptr = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":22393 * cdef cudaPointerAttributes attributes = cudaPointerAttributes() * cptr = utils.HelperInputVoidPtr(ptr) * cdef void* cptr_ptr = cptr.cptr # <<<<<<<<<<<<<< * err = ccudart.cudaPointerGetAttributes(attributes._ptr, cptr_ptr) * return (cudaError_t(err), attributes) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_cptr, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22393, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22393, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cptr_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":22394 * cptr = utils.HelperInputVoidPtr(ptr) * cdef void* cptr_ptr = cptr.cptr * err = ccudart.cudaPointerGetAttributes(attributes._ptr, cptr_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err), attributes) * */ __pyx_t_3 = __pyx_f_4cuda_7ccudart_cudaPointerGetAttributes(((struct cudaPointerAttributes *)__pyx_v_attributes->_ptr), __pyx_v_cptr_ptr); if (unlikely(__pyx_t_3 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 22394, __pyx_L1_error) __pyx_v_err = __pyx_t_3; /* "cuda/cudart.pyx":22395 * cdef void* cptr_ptr = cptr.cptr * err = ccudart.cudaPointerGetAttributes(attributes._ptr, cptr_ptr) * return (cudaError_t(err), attributes) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22395, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 22395, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_7 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_5}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22395, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22395, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1)) __PYX_ERR(0, 22395, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_attributes); __Pyx_GIVEREF((PyObject *)__pyx_v_attributes); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, ((PyObject *)__pyx_v_attributes))) __PYX_ERR(0, 22395, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":22331 * return (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_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("cuda.cudart.cudaPointerGetAttributes", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_attributes); __Pyx_XDECREF(__pyx_v_cptr); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":22397 * return (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_6cudart_319cudaDeviceCanAccessPeer(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_318cudaDeviceCanAccessPeer, "cudaDeviceCanAccessPeer(int device, int peerDevice)\n Queries if a device may directly access a peer device's memory.\n\n Returns in `*canAccessPeer` a value of 1 if device `device` is capable\n of directly accessing memory from `peerDevice` and 0 otherwise. If\n direct access of `peerDevice` from `device` is possible, then access\n may be enabled by calling :py:obj:`~.cudaDeviceEnablePeerAccess()`.\n\n Parameters\n ----------\n device : int\n Device from which allocations on `peerDevice` are to be directly\n accessed.\n peerDevice : int\n Device on which the allocations to be directly accessed by `device`\n reside.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`\n canAccessPeer : int\n Returned access capability\n\n See Also\n --------\n :py:obj:`~.cudaDeviceEnablePeerAccess`, :py:obj:`~.cudaDeviceDisablePeerAccess`, :py:obj:`~.cuDeviceCanAccessPeer`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_319cudaDeviceCanAccessPeer = {"cudaDeviceCanAccessPeer", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_319cudaDeviceCanAccessPeer, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_318cudaDeviceCanAccessPeer}; static PyObject *__pyx_pw_4cuda_6cudart_319cudaDeviceCanAccessPeer(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_device_2,&__pyx_n_s_peerDevice,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_device_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22397, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_peerDevice)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22397, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaDeviceCanAccessPeer", 1, 2, 2, 1); __PYX_ERR(0, 22397, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaDeviceCanAccessPeer") < 0)) __PYX_ERR(0, 22397, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_device = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 22398, __pyx_L3_error) __pyx_v_peerDevice = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_peerDevice == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 22398, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaDeviceCanAccessPeer", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 22397, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaDeviceCanAccessPeer", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_318cudaDeviceCanAccessPeer(__pyx_self, __pyx_v_device, __pyx_v_peerDevice); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_318cudaDeviceCanAccessPeer(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_TraceDeclarations __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; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__510) __Pyx_RefNannySetupContext("cudaDeviceCanAccessPeer", 1); __Pyx_TraceCall("cudaDeviceCanAccessPeer", __pyx_f[0], 22397, 0, __PYX_ERR(0, 22397, __pyx_L1_error)); /* "cuda/cudart.pyx":22426 * :py:obj:`~.cudaDeviceEnablePeerAccess`, :py:obj:`~.cudaDeviceDisablePeerAccess`, :py:obj:`~.cuDeviceCanAccessPeer` * """ * cdef int canAccessPeer = 0 # <<<<<<<<<<<<<< * err = ccudart.cudaDeviceCanAccessPeer(&canAccessPeer, device, peerDevice) * return (cudaError_t(err), canAccessPeer) */ __pyx_v_canAccessPeer = 0; /* "cuda/cudart.pyx":22427 * """ * cdef int canAccessPeer = 0 * err = ccudart.cudaDeviceCanAccessPeer(&canAccessPeer, device, peerDevice) # <<<<<<<<<<<<<< * return (cudaError_t(err), canAccessPeer) * */ __pyx_t_1 = __pyx_f_4cuda_7ccudart_cudaDeviceCanAccessPeer((&__pyx_v_canAccessPeer), __pyx_v_device, __pyx_v_peerDevice); if (unlikely(__pyx_t_1 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 22427, __pyx_L1_error) __pyx_v_err = __pyx_t_1; /* "cuda/cudart.pyx":22428 * cdef int canAccessPeer = 0 * err = ccudart.cudaDeviceCanAccessPeer(&canAccessPeer, device, peerDevice) * return (cudaError_t(err), canAccessPeer) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22428, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22428, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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(0, 22428, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_canAccessPeer); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22428, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22428, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 22428, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3)) __PYX_ERR(0, 22428, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_3 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":22397 * return (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_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaDeviceCanAccessPeer", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":22430 * return (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_6cudart_321cudaDeviceEnablePeerAccess(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_320cudaDeviceEnablePeerAccess, "cudaDeviceEnablePeerAccess(int peerDevice, unsigned int flags)\n Enables direct access to memory allocations on a peer device.\n\n On success, all allocations from `peerDevice` will immediately be\n accessible by the current device. They will remain accessible until\n access is explicitly disabled using\n :py:obj:`~.cudaDeviceDisablePeerAccess()` or either device is reset\n using :py:obj:`~.cudaDeviceReset()`.\n\n Note that access granted by this call is unidirectional and that in\n order to access memory on the current device from `peerDevice`, a\n separate symmetric call to :py:obj:`~.cudaDeviceEnablePeerAccess()` is\n required.\n\n Note that there are both device-wide and system-wide limitations per\n system configuration, as noted in the CUDA Programming Guide under the\n section \"Peer-to-Peer Memory Access\".\n\n Returns :py:obj:`~.cudaErrorInvalidDevice` if\n :py:obj:`~.cudaDeviceCanAccessPeer()` indicates that the current device\n cannot directly access memory from `peerDevice`.\n\n Returns :py:obj:`~.cudaErrorPeerAccessAlreadyEnabled` if direct access\n of `peerDevice` from the current device has already been enabled.\n\n Returns :py:obj:`~.cudaErrorInvalidValue` if `flags` is not 0.\n\n Parameters\n ----------\n peerDevice : int\n Peer device to enable direct access to from the current device\n flags : unsigned int\n Reserved for future use and must be set to 0\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorPeerAccessAlreadyEnabled`, :py:obj:`~.cudaErrorInvalidValue`\n\n See Also\n --------\n :py:obj:`~.cudaDeviceCanAccessPeer`, :py:obj:`~.cudaDeviceDisablePeerAccess`, :py:obj:`~.cuCtxEnablePeerAccess`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_321cudaDeviceEnablePeerAccess = {"cudaDeviceEnablePeerAccess", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_321cudaDeviceEnablePeerAccess, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_320cudaDeviceEnablePeerAccess}; static PyObject *__pyx_pw_4cuda_6cudart_321cudaDeviceEnablePeerAccess(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_peerDevice,&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_peerDevice)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22430, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22430, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaDeviceEnablePeerAccess", 1, 2, 2, 1); __PYX_ERR(0, 22430, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaDeviceEnablePeerAccess") < 0)) __PYX_ERR(0, 22430, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_peerDevice = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_peerDevice == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 22431, __pyx_L3_error) __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[1]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 22431, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaDeviceEnablePeerAccess", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 22430, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaDeviceEnablePeerAccess", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_320cudaDeviceEnablePeerAccess(__pyx_self, __pyx_v_peerDevice, __pyx_v_flags); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_320cudaDeviceEnablePeerAccess(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_peerDevice, unsigned int __pyx_v_flags) { cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__511) __Pyx_RefNannySetupContext("cudaDeviceEnablePeerAccess", 1); __Pyx_TraceCall("cudaDeviceEnablePeerAccess", __pyx_f[0], 22430, 0, __PYX_ERR(0, 22430, __pyx_L1_error)); /* "cuda/cudart.pyx":22474 * :py:obj:`~.cudaDeviceCanAccessPeer`, :py:obj:`~.cudaDeviceDisablePeerAccess`, :py:obj:`~.cuCtxEnablePeerAccess` * """ * err = ccudart.cudaDeviceEnablePeerAccess(peerDevice, flags) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_1 = __pyx_f_4cuda_7ccudart_cudaDeviceEnablePeerAccess(__pyx_v_peerDevice, __pyx_v_flags); if (unlikely(__pyx_t_1 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 22474, __pyx_L1_error) __pyx_v_err = __pyx_t_1; /* "cuda/cudart.pyx":22475 * """ * err = ccudart.cudaDeviceEnablePeerAccess(peerDevice, flags) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22475, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22475, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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(0, 22475, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22475, __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)) __PYX_ERR(0, 22475, __pyx_L1_error); __pyx_t_2 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":22430 * return (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_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaDeviceEnablePeerAccess", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":22477 * return (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_6cudart_323cudaDeviceDisablePeerAccess(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_322cudaDeviceDisablePeerAccess, "cudaDeviceDisablePeerAccess(int peerDevice)\n Disables direct access to memory allocations on a peer device.\n\n Returns :py:obj:`~.cudaErrorPeerAccessNotEnabled` if direct access to\n memory on `peerDevice` has not yet been enabled from the current\n device.\n\n Parameters\n ----------\n peerDevice : int\n Peer device to disable direct access to\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorPeerAccessNotEnabled`, :py:obj:`~.cudaErrorInvalidDevice`\n\n See Also\n --------\n :py:obj:`~.cudaDeviceCanAccessPeer`, :py:obj:`~.cudaDeviceEnablePeerAccess`, :py:obj:`~.cuCtxDisablePeerAccess`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_323cudaDeviceDisablePeerAccess = {"cudaDeviceDisablePeerAccess", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_323cudaDeviceDisablePeerAccess, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_322cudaDeviceDisablePeerAccess}; static PyObject *__pyx_pw_4cuda_6cudart_323cudaDeviceDisablePeerAccess(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_peerDevice,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_peerDevice)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22477, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaDeviceDisablePeerAccess") < 0)) __PYX_ERR(0, 22477, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_peerDevice = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_peerDevice == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 22478, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaDeviceDisablePeerAccess", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 22477, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaDeviceDisablePeerAccess", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_322cudaDeviceDisablePeerAccess(__pyx_self, __pyx_v_peerDevice); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_322cudaDeviceDisablePeerAccess(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_peerDevice) { cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__512) __Pyx_RefNannySetupContext("cudaDeviceDisablePeerAccess", 1); __Pyx_TraceCall("cudaDeviceDisablePeerAccess", __pyx_f[0], 22477, 0, __PYX_ERR(0, 22477, __pyx_L1_error)); /* "cuda/cudart.pyx":22499 * :py:obj:`~.cudaDeviceCanAccessPeer`, :py:obj:`~.cudaDeviceEnablePeerAccess`, :py:obj:`~.cuCtxDisablePeerAccess` * """ * err = ccudart.cudaDeviceDisablePeerAccess(peerDevice) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_1 = __pyx_f_4cuda_7ccudart_cudaDeviceDisablePeerAccess(__pyx_v_peerDevice); if (unlikely(__pyx_t_1 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 22499, __pyx_L1_error) __pyx_v_err = __pyx_t_1; /* "cuda/cudart.pyx":22500 * """ * err = ccudart.cudaDeviceDisablePeerAccess(peerDevice) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22500, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22500, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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(0, 22500, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22500, __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)) __PYX_ERR(0, 22500, __pyx_L1_error); __pyx_t_2 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":22477 * return (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_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaDeviceDisablePeerAccess", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":22502 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphicsUnregisterResource(resource): * """ Unregisters a graphics resource for access by CUDA. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_325cudaGraphicsUnregisterResource(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_324cudaGraphicsUnregisterResource, "cudaGraphicsUnregisterResource(resource)\n Unregisters a graphics resource for access by CUDA.\n\n Unregisters the graphics resource `resource` so it is not accessible by\n CUDA unless registered again.\n\n If `resource` is invalid then\n :py:obj:`~.cudaErrorInvalidResourceHandle` is returned.\n\n Parameters\n ----------\n resource : :py:obj:`~.cudaGraphicsResource_t`\n Resource to unregister\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorUnknown`\n\n See Also\n --------\n :py:obj:`~.cudaGraphicsD3D9RegisterResource`, :py:obj:`~.cudaGraphicsD3D10RegisterResource`, :py:obj:`~.cudaGraphicsD3D11RegisterResource`, :py:obj:`~.cudaGraphicsGLRegisterBuffer`, :py:obj:`~.cudaGraphicsGLRegisterImage`, :py:obj:`~.cuGraphicsUnregisterResource`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_325cudaGraphicsUnregisterResource = {"cudaGraphicsUnregisterResource", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_325cudaGraphicsUnregisterResource, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_324cudaGraphicsUnregisterResource}; static PyObject *__pyx_pw_4cuda_6cudart_325cudaGraphicsUnregisterResource(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_resource,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_resource)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22502, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphicsUnregisterResource") < 0)) __PYX_ERR(0, 22502, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_resource = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphicsUnregisterResource", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 22502, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphicsUnregisterResource", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_324cudaGraphicsUnregisterResource(__pyx_self, __pyx_v_resource); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_324cudaGraphicsUnregisterResource(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_resource) { cudaGraphicsResource_t __pyx_v_cresource; PyObject *__pyx_v_presource = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; cudaError_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__513) __Pyx_RefNannySetupContext("cudaGraphicsUnregisterResource", 1); __Pyx_TraceCall("cudaGraphicsUnregisterResource", __pyx_f[0], 22502, 0, __PYX_ERR(0, 22502, __pyx_L1_error)); /* "cuda/cudart.pyx":22527 * """ * cdef ccudart.cudaGraphicsResource_t cresource * if resource is None: # <<<<<<<<<<<<<< * cresource = 0 * elif isinstance(resource, (cudaGraphicsResource_t,)): */ __pyx_t_1 = (__pyx_v_resource == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":22528 * cdef ccudart.cudaGraphicsResource_t cresource * if resource is None: * cresource = 0 # <<<<<<<<<<<<<< * elif isinstance(resource, (cudaGraphicsResource_t,)): * presource = int(resource) */ __pyx_v_cresource = ((cudaGraphicsResource_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":22527 * """ * cdef ccudart.cudaGraphicsResource_t cresource * if resource is None: # <<<<<<<<<<<<<< * cresource = 0 * elif isinstance(resource, (cudaGraphicsResource_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":22529 * if resource is None: * cresource = 0 * elif isinstance(resource, (cudaGraphicsResource_t,)): # <<<<<<<<<<<<<< * presource = int(resource) * cresource = presource */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_resource, __pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":22530 * cresource = 0 * elif isinstance(resource, (cudaGraphicsResource_t,)): * presource = int(resource) # <<<<<<<<<<<<<< * cresource = presource * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_resource); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22530, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_presource = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":22531 * elif isinstance(resource, (cudaGraphicsResource_t,)): * presource = int(resource) * cresource = presource # <<<<<<<<<<<<<< * else: * presource = int(cudaGraphicsResource_t(resource)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_presource); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22531, __pyx_L1_error) __pyx_v_cresource = ((cudaGraphicsResource_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":22529 * if resource is None: * cresource = 0 * elif isinstance(resource, (cudaGraphicsResource_t,)): # <<<<<<<<<<<<<< * presource = int(resource) * cresource = presource */ goto __pyx_L3; } /* "cuda/cudart.pyx":22533 * cresource = presource * else: * presource = int(cudaGraphicsResource_t(resource)) # <<<<<<<<<<<<<< * cresource = presource * err = ccudart.cudaGraphicsUnregisterResource(cresource) */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t), __pyx_v_resource); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22533, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22533, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_presource = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":22534 * else: * presource = int(cudaGraphicsResource_t(resource)) * cresource = presource # <<<<<<<<<<<<<< * err = ccudart.cudaGraphicsUnregisterResource(cresource) * return (cudaError_t(err),) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_presource); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22534, __pyx_L1_error) __pyx_v_cresource = ((cudaGraphicsResource_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":22535 * presource = int(cudaGraphicsResource_t(resource)) * cresource = presource * err = ccudart.cudaGraphicsUnregisterResource(cresource) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_5 = __pyx_f_4cuda_7ccudart_cudaGraphicsUnregisterResource(__pyx_v_cresource); if (unlikely(__pyx_t_5 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 22535, __pyx_L1_error) __pyx_v_err = __pyx_t_5; /* "cuda/cudart.pyx":22536 * cresource = presource * err = ccudart.cudaGraphicsUnregisterResource(cresource) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22536, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 22536, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22536, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22536, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 22536, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":22502 * return (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_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.cudaGraphicsUnregisterResource", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_presource); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":22538 * return (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_6cudart_327cudaGraphicsResourceSetMapFlags(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_326cudaGraphicsResourceSetMapFlags, "cudaGraphicsResourceSetMapFlags(resource, unsigned int flags)\n Set usage flags for mapping a graphics resource.\n\n Set `flags` for mapping the graphics resource `resource`.\n\n Changes to `flags` will take effect the next time `resource` is mapped.\n The `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\n If `resource` is presently mapped for access by CUDA then\n :py:obj:`~.cudaErrorUnknown` is returned. If `flags` is not one of the\n above values then :py:obj:`~.cudaErrorInvalidValue` is returned.\n\n Parameters\n ----------\n resource : :py:obj:`~.cudaGraphicsResource_t`\n Registered resource to set flags for\n flags : unsigned int\n Parameters for resource mapping\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorUnknown`,\n\n See Also\n --------\n :py:obj:`~.cudaGraphicsMapResources`, :py:obj:`~.cuGraphicsResourceSetMapFlags`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_327cudaGraphicsResourceSetMapFlags = {"cudaGraphicsResourceSetMapFlags", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_327cudaGraphicsResourceSetMapFlags, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_326cudaGraphicsResourceSetMapFlags}; static PyObject *__pyx_pw_4cuda_6cudart_327cudaGraphicsResourceSetMapFlags(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_resource,&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_resource)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22538, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22538, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphicsResourceSetMapFlags", 1, 2, 2, 1); __PYX_ERR(0, 22538, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphicsResourceSetMapFlags") < 0)) __PYX_ERR(0, 22538, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_resource = values[0]; __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[1]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 22539, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphicsResourceSetMapFlags", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 22538, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphicsResourceSetMapFlags", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_326cudaGraphicsResourceSetMapFlags(__pyx_self, __pyx_v_resource, __pyx_v_flags); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_326cudaGraphicsResourceSetMapFlags(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_resource, unsigned int __pyx_v_flags) { cudaGraphicsResource_t __pyx_v_cresource; PyObject *__pyx_v_presource = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; cudaError_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__514) __Pyx_RefNannySetupContext("cudaGraphicsResourceSetMapFlags", 1); __Pyx_TraceCall("cudaGraphicsResourceSetMapFlags", __pyx_f[0], 22538, 0, __PYX_ERR(0, 22538, __pyx_L1_error)); /* "cuda/cudart.pyx":22580 * """ * cdef ccudart.cudaGraphicsResource_t cresource * if resource is None: # <<<<<<<<<<<<<< * cresource = 0 * elif isinstance(resource, (cudaGraphicsResource_t,)): */ __pyx_t_1 = (__pyx_v_resource == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":22581 * cdef ccudart.cudaGraphicsResource_t cresource * if resource is None: * cresource = 0 # <<<<<<<<<<<<<< * elif isinstance(resource, (cudaGraphicsResource_t,)): * presource = int(resource) */ __pyx_v_cresource = ((cudaGraphicsResource_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":22580 * """ * cdef ccudart.cudaGraphicsResource_t cresource * if resource is None: # <<<<<<<<<<<<<< * cresource = 0 * elif isinstance(resource, (cudaGraphicsResource_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":22582 * if resource is None: * cresource = 0 * elif isinstance(resource, (cudaGraphicsResource_t,)): # <<<<<<<<<<<<<< * presource = int(resource) * cresource = presource */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_resource, __pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":22583 * cresource = 0 * elif isinstance(resource, (cudaGraphicsResource_t,)): * presource = int(resource) # <<<<<<<<<<<<<< * cresource = presource * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_resource); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22583, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_presource = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":22584 * elif isinstance(resource, (cudaGraphicsResource_t,)): * presource = int(resource) * cresource = presource # <<<<<<<<<<<<<< * else: * presource = int(cudaGraphicsResource_t(resource)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_presource); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22584, __pyx_L1_error) __pyx_v_cresource = ((cudaGraphicsResource_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":22582 * if resource is None: * cresource = 0 * elif isinstance(resource, (cudaGraphicsResource_t,)): # <<<<<<<<<<<<<< * presource = int(resource) * cresource = presource */ goto __pyx_L3; } /* "cuda/cudart.pyx":22586 * cresource = presource * else: * presource = int(cudaGraphicsResource_t(resource)) # <<<<<<<<<<<<<< * cresource = presource * err = ccudart.cudaGraphicsResourceSetMapFlags(cresource, flags) */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t), __pyx_v_resource); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22586, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22586, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_presource = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":22587 * else: * presource = int(cudaGraphicsResource_t(resource)) * cresource = presource # <<<<<<<<<<<<<< * err = ccudart.cudaGraphicsResourceSetMapFlags(cresource, flags) * return (cudaError_t(err),) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_presource); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22587, __pyx_L1_error) __pyx_v_cresource = ((cudaGraphicsResource_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":22588 * presource = int(cudaGraphicsResource_t(resource)) * cresource = presource * err = ccudart.cudaGraphicsResourceSetMapFlags(cresource, flags) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_5 = __pyx_f_4cuda_7ccudart_cudaGraphicsResourceSetMapFlags(__pyx_v_cresource, __pyx_v_flags); if (unlikely(__pyx_t_5 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 22588, __pyx_L1_error) __pyx_v_err = __pyx_t_5; /* "cuda/cudart.pyx":22589 * cresource = presource * err = ccudart.cudaGraphicsResourceSetMapFlags(cresource, flags) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22589, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 22589, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22589, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22589, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 22589, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":22538 * return (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_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.cudaGraphicsResourceSetMapFlags", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_presource); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":22591 * return (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_6cudart_329cudaGraphicsMapResources(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_328cudaGraphicsMapResources, "cudaGraphicsMapResources(int count, resources, stream)\n Map graphics resources for access by CUDA.\n\n Maps the `count` graphics resources in `resources` for access by CUDA.\n\n The resources in `resources` may be accessed by CUDA until they are\n unmapped. The graphics API from which `resources` were registered\n should not access any resources while they are mapped by CUDA. If an\n application does so, the results are undefined.\n\n This function provides the synchronization guarantee that any graphics\n calls issued before :py:obj:`~.cudaGraphicsMapResources()` will\n complete before any subsequent CUDA work issued in `stream` begins.\n\n If `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\n Parameters\n ----------\n count : int\n Number of resources to map\n resources : :py:obj:`~.cudaGraphicsResource_t`\n Resources to map for CUDA\n stream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n Stream for synchronization\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorUnknown`\n\n See Also\n --------\n :py:obj:`~.cudaGraphicsResourceGetMappedPointer`, :py:obj:`~.cudaGraphicsSubResourceGetMappedArray`, :py:obj:`~.cudaGraphicsUnmapResources`, :py:obj:`~.cuGraphicsMapResources`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_329cudaGraphicsMapResources = {"cudaGraphicsMapResources", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_329cudaGraphicsMapResources, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_328cudaGraphicsMapResources}; static PyObject *__pyx_pw_4cuda_6cudart_329cudaGraphicsMapResources(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_count,&__pyx_n_s_resources,&__pyx_n_s_stream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_count)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22591, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_resources)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22591, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphicsMapResources", 1, 3, 3, 1); __PYX_ERR(0, 22591, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22591, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphicsMapResources", 1, 3, 3, 2); __PYX_ERR(0, 22591, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphicsMapResources") < 0)) __PYX_ERR(0, 22591, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_count = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_count == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 22592, __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, 22591, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphicsMapResources", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_328cudaGraphicsMapResources(__pyx_self, __pyx_v_count, __pyx_v_resources, __pyx_v_stream); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_328cudaGraphicsMapResources(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_count, PyObject *__pyx_v_resources, PyObject *__pyx_v_stream) { cudaStream_t __pyx_v_cstream; PyObject *__pyx_v_pstream = NULL; cudaGraphicsResource_t *__pyx_v_cresources; PyObject *__pyx_v_presources = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; unsigned int __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_TraceFrameInit(__pyx_codeobj__515) __Pyx_RefNannySetupContext("cudaGraphicsMapResources", 1); __Pyx_TraceCall("cudaGraphicsMapResources", __pyx_f[0], 22591, 0, __PYX_ERR(0, 22591, __pyx_L1_error)); /* "cuda/cudart.pyx":22630 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_stream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":22631 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":22630 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":22632 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":22633 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22633, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pstream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":22634 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22634, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":22632 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L3; } /* "cuda/cudart.pyx":22636 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * cdef ccudart.cudaGraphicsResource_t *cresources */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22636, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 22636, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pstream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":22637 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphicsResource_t *cresources * if resources is None: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22637, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":22639 * cstream = pstream * cdef ccudart.cudaGraphicsResource_t *cresources * if resources is None: # <<<<<<<<<<<<<< * cresources = NULL * elif isinstance(resources, (cudaGraphicsResource_t,)): */ __pyx_t_1 = (__pyx_v_resources == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":22640 * cdef ccudart.cudaGraphicsResource_t *cresources * if resources is None: * cresources = NULL # <<<<<<<<<<<<<< * elif isinstance(resources, (cudaGraphicsResource_t,)): * presources = resources.getPtr() */ __pyx_v_cresources = ((cudaGraphicsResource_t *)((__pyx_t_4cuda_6cudart_void_ptr)NULL)); /* "cuda/cudart.pyx":22639 * cstream = pstream * cdef ccudart.cudaGraphicsResource_t *cresources * if resources is None: # <<<<<<<<<<<<<< * cresources = NULL * elif isinstance(resources, (cudaGraphicsResource_t,)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":22641 * if resources is None: * cresources = NULL * elif isinstance(resources, (cudaGraphicsResource_t,)): # <<<<<<<<<<<<<< * presources = resources.getPtr() * cresources = presources */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_resources, __pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":22642 * cresources = NULL * elif isinstance(resources, (cudaGraphicsResource_t,)): * presources = resources.getPtr() # <<<<<<<<<<<<<< * cresources = presources * elif isinstance(resources, (int)): */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_resources, __pyx_n_s_getPtr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22642, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = NULL; __pyx_t_7 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_7 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_7, 0+__pyx_t_7); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 22642, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v_presources = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":22643 * elif isinstance(resources, (cudaGraphicsResource_t,)): * presources = resources.getPtr() * cresources = presources # <<<<<<<<<<<<<< * elif isinstance(resources, (int)): * cresources = resources */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_presources); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22643, __pyx_L1_error) __pyx_v_cresources = ((cudaGraphicsResource_t *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":22641 * if resources is None: * cresources = NULL * elif isinstance(resources, (cudaGraphicsResource_t,)): # <<<<<<<<<<<<<< * presources = resources.getPtr() * cresources = presources */ goto __pyx_L6; } /* "cuda/cudart.pyx":22644 * presources = resources.getPtr() * cresources = presources * elif isinstance(resources, (int)): # <<<<<<<<<<<<<< * cresources = resources * else: */ __pyx_t_1 = PyInt_Check(__pyx_v_resources); if (likely(__pyx_t_1)) { /* "cuda/cudart.pyx":22645 * cresources = presources * elif isinstance(resources, (int)): * cresources = resources # <<<<<<<<<<<<<< * else: * raise TypeError("Argument 'resources' is not instance of type (expected , found " + str(type(resources))) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_resources); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22645, __pyx_L1_error) __pyx_v_cresources = ((cudaGraphicsResource_t *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":22644 * presources = resources.getPtr() * cresources = presources * elif isinstance(resources, (int)): # <<<<<<<<<<<<<< * cresources = resources * else: */ goto __pyx_L6; } /* "cuda/cudart.pyx":22647 * cresources = resources * else: * raise TypeError("Argument 'resources' is not instance of type (expected , found " + str(type(resources))) # <<<<<<<<<<<<<< * err = ccudart.cudaGraphicsMapResources(count, cresources, cstream) * return (cudaError_t(err),) */ /*else*/ { __pyx_t_5 = __Pyx_PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_resources))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 22647, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Argument_resources_is_not_instan, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22647, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 22647, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __PYX_ERR(0, 22647, __pyx_L1_error) } __pyx_L6:; /* "cuda/cudart.pyx":22648 * else: * raise TypeError("Argument 'resources' is not instance of type (expected , found " + str(type(resources))) * err = ccudart.cudaGraphicsMapResources(count, cresources, cstream) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_8 = __pyx_f_4cuda_7ccudart_cudaGraphicsMapResources(__pyx_v_count, __pyx_v_cresources, __pyx_v_cstream); if (unlikely(__pyx_t_8 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 22648, __pyx_L1_error) __pyx_v_err = __pyx_t_8; /* "cuda/cudart.pyx":22649 * raise TypeError("Argument 'resources' is not instance of type (expected , found " + str(type(resources))) * err = ccudart.cudaGraphicsMapResources(count, cresources, cstream) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 22649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_9 = NULL; __pyx_t_7 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_7 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_6}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 22649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 22649, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":22591 * return (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_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":22651 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphicsUnmapResources(int count, resources, stream): * """ Unmap graphics resources. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_331cudaGraphicsUnmapResources(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_330cudaGraphicsUnmapResources, "cudaGraphicsUnmapResources(int count, resources, stream)\n Unmap graphics resources.\n\n Unmaps the `count` graphics resources in `resources`.\n\n Once unmapped, the resources in `resources` may not be accessed by CUDA\n until they are mapped again.\n\n This function provides the synchronization guarantee that any CUDA work\n issued in `stream` before :py:obj:`~.cudaGraphicsUnmapResources()` will\n complete before any subsequently issued graphics work begins.\n\n If `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\n Parameters\n ----------\n count : int\n Number of resources to unmap\n resources : :py:obj:`~.cudaGraphicsResource_t`\n Resources to unmap\n stream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n Stream for synchronization\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorUnknown`\n\n See Also\n --------\n :py:obj:`~.cudaGraphicsMapResources`, :py:obj:`~.cuGraphicsUnmapResources`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_331cudaGraphicsUnmapResources = {"cudaGraphicsUnmapResources", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_331cudaGraphicsUnmapResources, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_330cudaGraphicsUnmapResources}; static PyObject *__pyx_pw_4cuda_6cudart_331cudaGraphicsUnmapResources(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_count,&__pyx_n_s_resources,&__pyx_n_s_stream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_count)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22651, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_resources)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22651, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphicsUnmapResources", 1, 3, 3, 1); __PYX_ERR(0, 22651, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22651, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphicsUnmapResources", 1, 3, 3, 2); __PYX_ERR(0, 22651, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphicsUnmapResources") < 0)) __PYX_ERR(0, 22651, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_count = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_count == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 22652, __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, 22651, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphicsUnmapResources", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_330cudaGraphicsUnmapResources(__pyx_self, __pyx_v_count, __pyx_v_resources, __pyx_v_stream); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_330cudaGraphicsUnmapResources(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_count, PyObject *__pyx_v_resources, PyObject *__pyx_v_stream) { cudaStream_t __pyx_v_cstream; PyObject *__pyx_v_pstream = NULL; cudaGraphicsResource_t *__pyx_v_cresources; PyObject *__pyx_v_presources = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; unsigned int __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_TraceFrameInit(__pyx_codeobj__516) __Pyx_RefNannySetupContext("cudaGraphicsUnmapResources", 1); __Pyx_TraceCall("cudaGraphicsUnmapResources", __pyx_f[0], 22651, 0, __PYX_ERR(0, 22651, __pyx_L1_error)); /* "cuda/cudart.pyx":22688 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_stream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":22689 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":22688 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":22690 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":22691 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22691, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pstream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":22692 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22692, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":22690 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L3; } /* "cuda/cudart.pyx":22694 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * cdef ccudart.cudaGraphicsResource_t *cresources */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22694, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 22694, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pstream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":22695 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphicsResource_t *cresources * if resources is None: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22695, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":22697 * cstream = pstream * cdef ccudart.cudaGraphicsResource_t *cresources * if resources is None: # <<<<<<<<<<<<<< * cresources = NULL * elif isinstance(resources, (cudaGraphicsResource_t,)): */ __pyx_t_1 = (__pyx_v_resources == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":22698 * cdef ccudart.cudaGraphicsResource_t *cresources * if resources is None: * cresources = NULL # <<<<<<<<<<<<<< * elif isinstance(resources, (cudaGraphicsResource_t,)): * presources = resources.getPtr() */ __pyx_v_cresources = ((cudaGraphicsResource_t *)((__pyx_t_4cuda_6cudart_void_ptr)NULL)); /* "cuda/cudart.pyx":22697 * cstream = pstream * cdef ccudart.cudaGraphicsResource_t *cresources * if resources is None: # <<<<<<<<<<<<<< * cresources = NULL * elif isinstance(resources, (cudaGraphicsResource_t,)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":22699 * if resources is None: * cresources = NULL * elif isinstance(resources, (cudaGraphicsResource_t,)): # <<<<<<<<<<<<<< * presources = resources.getPtr() * cresources = presources */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_resources, __pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":22700 * cresources = NULL * elif isinstance(resources, (cudaGraphicsResource_t,)): * presources = resources.getPtr() # <<<<<<<<<<<<<< * cresources = presources * elif isinstance(resources, (int)): */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_resources, __pyx_n_s_getPtr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22700, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = NULL; __pyx_t_7 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_7 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_7, 0+__pyx_t_7); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 22700, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v_presources = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":22701 * elif isinstance(resources, (cudaGraphicsResource_t,)): * presources = resources.getPtr() * cresources = presources # <<<<<<<<<<<<<< * elif isinstance(resources, (int)): * cresources = resources */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_presources); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22701, __pyx_L1_error) __pyx_v_cresources = ((cudaGraphicsResource_t *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":22699 * if resources is None: * cresources = NULL * elif isinstance(resources, (cudaGraphicsResource_t,)): # <<<<<<<<<<<<<< * presources = resources.getPtr() * cresources = presources */ goto __pyx_L6; } /* "cuda/cudart.pyx":22702 * presources = resources.getPtr() * cresources = presources * elif isinstance(resources, (int)): # <<<<<<<<<<<<<< * cresources = resources * else: */ __pyx_t_1 = PyInt_Check(__pyx_v_resources); if (likely(__pyx_t_1)) { /* "cuda/cudart.pyx":22703 * cresources = presources * elif isinstance(resources, (int)): * cresources = resources # <<<<<<<<<<<<<< * else: * raise TypeError("Argument 'resources' is not instance of type (expected , found " + str(type(resources))) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_resources); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22703, __pyx_L1_error) __pyx_v_cresources = ((cudaGraphicsResource_t *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":22702 * presources = resources.getPtr() * cresources = presources * elif isinstance(resources, (int)): # <<<<<<<<<<<<<< * cresources = resources * else: */ goto __pyx_L6; } /* "cuda/cudart.pyx":22705 * cresources = resources * else: * raise TypeError("Argument 'resources' is not instance of type (expected , found " + str(type(resources))) # <<<<<<<<<<<<<< * err = ccudart.cudaGraphicsUnmapResources(count, cresources, cstream) * return (cudaError_t(err),) */ /*else*/ { __pyx_t_5 = __Pyx_PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_resources))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 22705, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Argument_resources_is_not_instan, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22705, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 22705, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __PYX_ERR(0, 22705, __pyx_L1_error) } __pyx_L6:; /* "cuda/cudart.pyx":22706 * else: * raise TypeError("Argument 'resources' is not instance of type (expected , found " + str(type(resources))) * err = ccudart.cudaGraphicsUnmapResources(count, cresources, cstream) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_8 = __pyx_f_4cuda_7ccudart_cudaGraphicsUnmapResources(__pyx_v_count, __pyx_v_cresources, __pyx_v_cstream); if (unlikely(__pyx_t_8 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 22706, __pyx_L1_error) __pyx_v_err = __pyx_t_8; /* "cuda/cudart.pyx":22707 * raise TypeError("Argument 'resources' is not instance of type (expected , found " + str(type(resources))) * err = ccudart.cudaGraphicsUnmapResources(count, cresources, cstream) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22707, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 22707, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_9 = NULL; __pyx_t_7 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_7 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_6}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 22707, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22707, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 22707, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":22651 * return (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_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":22709 * return (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_6cudart_333cudaGraphicsResourceGetMappedPointer(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_332cudaGraphicsResourceGetMappedPointer, "cudaGraphicsResourceGetMappedPointer(resource)\n Get an device pointer through which to access a mapped graphics resource.\n\n Returns in `*devPtr` a pointer through which the mapped graphics\n resource `resource` may be accessed. Returns in `*size` the size of the\n memory in bytes which may be accessed from that pointer. The value set\n in `devPtr` may change every time that `resource` is mapped.\n\n If `resource` is not a buffer then it cannot be accessed via a pointer\n and :py:obj:`~.cudaErrorUnknown` is returned. If `resource` is not\n mapped then :py:obj:`~.cudaErrorUnknown` is returned.\n\n Parameters\n ----------\n resource : :py:obj:`~.cudaGraphicsResource_t`\n None\n\n Returns\n -------\n cudaError_t\n\n devPtr : Any\n None\n size : int\n None\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_333cudaGraphicsResourceGetMappedPointer = {"cudaGraphicsResourceGetMappedPointer", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_333cudaGraphicsResourceGetMappedPointer, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_332cudaGraphicsResourceGetMappedPointer}; static PyObject *__pyx_pw_4cuda_6cudart_333cudaGraphicsResourceGetMappedPointer(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_resource,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_resource)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22709, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphicsResourceGetMappedPointer") < 0)) __PYX_ERR(0, 22709, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_resource = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphicsResourceGetMappedPointer", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 22709, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphicsResourceGetMappedPointer", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_332cudaGraphicsResourceGetMappedPointer(__pyx_self, __pyx_v_resource); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_332cudaGraphicsResourceGetMappedPointer(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_resource) { cudaGraphicsResource_t __pyx_v_cresource; PyObject *__pyx_v_presource = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_v_devPtr; size_t __pyx_v_size; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; cudaError_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__517) __Pyx_RefNannySetupContext("cudaGraphicsResourceGetMappedPointer", 1); __Pyx_TraceCall("cudaGraphicsResourceGetMappedPointer", __pyx_f[0], 22709, 0, __PYX_ERR(0, 22709, __pyx_L1_error)); /* "cuda/cudart.pyx":22737 * """ * cdef ccudart.cudaGraphicsResource_t cresource * if resource is None: # <<<<<<<<<<<<<< * cresource = 0 * elif isinstance(resource, (cudaGraphicsResource_t,)): */ __pyx_t_1 = (__pyx_v_resource == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":22738 * cdef ccudart.cudaGraphicsResource_t cresource * if resource is None: * cresource = 0 # <<<<<<<<<<<<<< * elif isinstance(resource, (cudaGraphicsResource_t,)): * presource = int(resource) */ __pyx_v_cresource = ((cudaGraphicsResource_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":22737 * """ * cdef ccudart.cudaGraphicsResource_t cresource * if resource is None: # <<<<<<<<<<<<<< * cresource = 0 * elif isinstance(resource, (cudaGraphicsResource_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":22739 * if resource is None: * cresource = 0 * elif isinstance(resource, (cudaGraphicsResource_t,)): # <<<<<<<<<<<<<< * presource = int(resource) * cresource = presource */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_resource, __pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":22740 * cresource = 0 * elif isinstance(resource, (cudaGraphicsResource_t,)): * presource = int(resource) # <<<<<<<<<<<<<< * cresource = presource * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_resource); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22740, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_presource = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":22741 * elif isinstance(resource, (cudaGraphicsResource_t,)): * presource = int(resource) * cresource = presource # <<<<<<<<<<<<<< * else: * presource = int(cudaGraphicsResource_t(resource)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_presource); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22741, __pyx_L1_error) __pyx_v_cresource = ((cudaGraphicsResource_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":22739 * if resource is None: * cresource = 0 * elif isinstance(resource, (cudaGraphicsResource_t,)): # <<<<<<<<<<<<<< * presource = int(resource) * cresource = presource */ goto __pyx_L3; } /* "cuda/cudart.pyx":22743 * cresource = presource * else: * presource = int(cudaGraphicsResource_t(resource)) # <<<<<<<<<<<<<< * cresource = presource * cdef void_ptr devPtr = 0 */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t), __pyx_v_resource); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22743, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22743, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_presource = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":22744 * else: * presource = int(cudaGraphicsResource_t(resource)) * cresource = presource # <<<<<<<<<<<<<< * cdef void_ptr devPtr = 0 * cdef size_t size = 0 */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_presource); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22744, __pyx_L1_error) __pyx_v_cresource = ((cudaGraphicsResource_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":22745 * presource = int(cudaGraphicsResource_t(resource)) * cresource = presource * cdef void_ptr devPtr = 0 # <<<<<<<<<<<<<< * cdef size_t size = 0 * err = ccudart.cudaGraphicsResourceGetMappedPointer(&devPtr, &size, cresource) */ __pyx_v_devPtr = 0; /* "cuda/cudart.pyx":22746 * cresource = presource * cdef void_ptr devPtr = 0 * cdef size_t size = 0 # <<<<<<<<<<<<<< * err = ccudart.cudaGraphicsResourceGetMappedPointer(&devPtr, &size, cresource) * return (cudaError_t(err), devPtr, size) */ __pyx_v_size = 0; /* "cuda/cudart.pyx":22747 * cdef void_ptr devPtr = 0 * cdef size_t size = 0 * err = ccudart.cudaGraphicsResourceGetMappedPointer(&devPtr, &size, cresource) # <<<<<<<<<<<<<< * return (cudaError_t(err), devPtr, size) * */ __pyx_t_5 = __pyx_f_4cuda_7ccudart_cudaGraphicsResourceGetMappedPointer(((void **)(&__pyx_v_devPtr)), (&__pyx_v_size), __pyx_v_cresource); if (unlikely(__pyx_t_5 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 22747, __pyx_L1_error) __pyx_v_err = __pyx_t_5; /* "cuda/cudart.pyx":22748 * cdef size_t size = 0 * err = ccudart.cudaGraphicsResourceGetMappedPointer(&devPtr, &size, cresource) * return (cudaError_t(err), devPtr, size) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22748, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 22748, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22748, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(__pyx_v_devPtr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22748, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_FromSize_t(__pyx_v_size); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 22748, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = PyTuple_New(3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 22748, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4)) __PYX_ERR(0, 22748, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_2)) __PYX_ERR(0, 22748, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_6); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_t_6)) __PYX_ERR(0, 22748, __pyx_L1_error); __pyx_t_4 = 0; __pyx_t_2 = 0; __pyx_t_6 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":22709 * return (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_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.cudaGraphicsResourceGetMappedPointer", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_presource); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":22750 * return (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_6cudart_335cudaGraphicsSubResourceGetMappedArray(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_334cudaGraphicsSubResourceGetMappedArray, "cudaGraphicsSubResourceGetMappedArray(resource, unsigned int arrayIndex, unsigned int mipLevel)\n Get an array through which to access a subresource of a mapped graphics resource.\n\n Returns in `*array` an array through which the subresource of the\n mapped graphics resource `resource` which corresponds to array index\n `arrayIndex` and mipmap level `mipLevel` may be accessed. The value set\n in `array` may change every time that `resource` is mapped.\n\n If `resource` is not a texture then it cannot be accessed via an array\n and :py:obj:`~.cudaErrorUnknown` is returned. If `arrayIndex` is not a\n valid array index for `resource` then :py:obj:`~.cudaErrorInvalidValue`\n is returned. If `mipLevel` is not a valid mipmap level for `resource`\n then :py:obj:`~.cudaErrorInvalidValue` is returned. If `resource` is\n not mapped then :py:obj:`~.cudaErrorUnknown` is returned.\n\n Parameters\n ----------\n resource : :py:obj:`~.cudaGraphicsResource_t`\n Mapped resource to access\n arrayIndex : 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\n mipLevel : unsigned int\n Mipmap level for the subresource to access\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorUnknown`\n array : :py:obj:`~.cudaArray_t`\n Returned array through which a subresource of `resource` may be\n accessed\n\n See Also\n --------\n :py:obj:`~.cudaGraphicsResourceGetMappedPointer`, :py:obj:`~.cuGraphicsSubResourceGetMappedArray`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_335cudaGraphicsSubResourceGetMappedArray = {"cudaGraphicsSubResourceGetMappedArray", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_335cudaGraphicsSubResourceGetMappedArray, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_334cudaGraphicsSubResourceGetMappedArray}; static PyObject *__pyx_pw_4cuda_6cudart_335cudaGraphicsSubResourceGetMappedArray(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_resource,&__pyx_n_s_arrayIndex,&__pyx_n_s_mipLevel,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_resource)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22750, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_arrayIndex)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22750, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphicsSubResourceGetMappedArray", 1, 3, 3, 1); __PYX_ERR(0, 22750, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_mipLevel)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22750, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphicsSubResourceGetMappedArray", 1, 3, 3, 2); __PYX_ERR(0, 22750, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphicsSubResourceGetMappedArray") < 0)) __PYX_ERR(0, 22750, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_resource = values[0]; __pyx_v_arrayIndex = __Pyx_PyInt_As_unsigned_int(values[1]); if (unlikely((__pyx_v_arrayIndex == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 22751, __pyx_L3_error) __pyx_v_mipLevel = __Pyx_PyInt_As_unsigned_int(values[2]); if (unlikely((__pyx_v_mipLevel == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 22751, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphicsSubResourceGetMappedArray", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 22750, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphicsSubResourceGetMappedArray", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_334cudaGraphicsSubResourceGetMappedArray(__pyx_self, __pyx_v_resource, __pyx_v_arrayIndex, __pyx_v_mipLevel); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_334cudaGraphicsSubResourceGetMappedArray(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_resource, unsigned int __pyx_v_arrayIndex, unsigned int __pyx_v_mipLevel) { cudaGraphicsResource_t __pyx_v_cresource; PyObject *__pyx_v_presource = NULL; struct __pyx_obj_4cuda_6cudart_cudaArray_t *__pyx_v_array = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; cudaError_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__518) __Pyx_RefNannySetupContext("cudaGraphicsSubResourceGetMappedArray", 1); __Pyx_TraceCall("cudaGraphicsSubResourceGetMappedArray", __pyx_f[0], 22750, 0, __PYX_ERR(0, 22750, __pyx_L1_error)); /* "cuda/cudart.pyx":22790 * """ * cdef ccudart.cudaGraphicsResource_t cresource * if resource is None: # <<<<<<<<<<<<<< * cresource = 0 * elif isinstance(resource, (cudaGraphicsResource_t,)): */ __pyx_t_1 = (__pyx_v_resource == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":22791 * cdef ccudart.cudaGraphicsResource_t cresource * if resource is None: * cresource = 0 # <<<<<<<<<<<<<< * elif isinstance(resource, (cudaGraphicsResource_t,)): * presource = int(resource) */ __pyx_v_cresource = ((cudaGraphicsResource_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":22790 * """ * cdef ccudart.cudaGraphicsResource_t cresource * if resource is None: # <<<<<<<<<<<<<< * cresource = 0 * elif isinstance(resource, (cudaGraphicsResource_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":22792 * if resource is None: * cresource = 0 * elif isinstance(resource, (cudaGraphicsResource_t,)): # <<<<<<<<<<<<<< * presource = int(resource) * cresource = presource */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_resource, __pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":22793 * cresource = 0 * elif isinstance(resource, (cudaGraphicsResource_t,)): * presource = int(resource) # <<<<<<<<<<<<<< * cresource = presource * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_resource); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22793, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_presource = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":22794 * elif isinstance(resource, (cudaGraphicsResource_t,)): * presource = int(resource) * cresource = presource # <<<<<<<<<<<<<< * else: * presource = int(cudaGraphicsResource_t(resource)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_presource); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22794, __pyx_L1_error) __pyx_v_cresource = ((cudaGraphicsResource_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":22792 * if resource is None: * cresource = 0 * elif isinstance(resource, (cudaGraphicsResource_t,)): # <<<<<<<<<<<<<< * presource = int(resource) * cresource = presource */ goto __pyx_L3; } /* "cuda/cudart.pyx":22796 * cresource = presource * else: * presource = int(cudaGraphicsResource_t(resource)) # <<<<<<<<<<<<<< * cresource = presource * cdef cudaArray_t array = cudaArray_t() */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t), __pyx_v_resource); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22796, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22796, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_presource = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":22797 * else: * presource = int(cudaGraphicsResource_t(resource)) * cresource = presource # <<<<<<<<<<<<<< * cdef cudaArray_t array = cudaArray_t() * err = ccudart.cudaGraphicsSubResourceGetMappedArray(array._ptr, cresource, arrayIndex, mipLevel) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_presource); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22797, __pyx_L1_error) __pyx_v_cresource = ((cudaGraphicsResource_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":22798 * presource = int(cudaGraphicsResource_t(resource)) * cresource = presource * cdef cudaArray_t array = cudaArray_t() # <<<<<<<<<<<<<< * err = ccudart.cudaGraphicsSubResourceGetMappedArray(array._ptr, cresource, arrayIndex, mipLevel) * return (cudaError_t(err), array) */ __pyx_t_4 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_t)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22798, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_array = ((struct __pyx_obj_4cuda_6cudart_cudaArray_t *)__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":22799 * cresource = presource * cdef cudaArray_t array = cudaArray_t() * err = ccudart.cudaGraphicsSubResourceGetMappedArray(array._ptr, cresource, arrayIndex, mipLevel) # <<<<<<<<<<<<<< * return (cudaError_t(err), array) * */ __pyx_t_5 = __pyx_f_4cuda_7ccudart_cudaGraphicsSubResourceGetMappedArray(((cudaArray_t *)__pyx_v_array->_ptr), __pyx_v_cresource, __pyx_v_arrayIndex, __pyx_v_mipLevel); if (unlikely(__pyx_t_5 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 22799, __pyx_L1_error) __pyx_v_err = __pyx_t_5; /* "cuda/cudart.pyx":22800 * cdef cudaArray_t array = cudaArray_t() * err = ccudart.cudaGraphicsSubResourceGetMappedArray(array._ptr, cresource, arrayIndex, mipLevel) * return (cudaError_t(err), array) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22800, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 22800, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22800, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22800, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 22800, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_array); __Pyx_GIVEREF((PyObject *)__pyx_v_array); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_array))) __PYX_ERR(0, 22800, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":22750 * return (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_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":22802 * return (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_6cudart_337cudaGraphicsResourceGetMappedMipmappedArray(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_336cudaGraphicsResourceGetMappedMipmappedArray, "cudaGraphicsResourceGetMappedMipmappedArray(resource)\n Get a mipmapped array through which to access a mapped graphics resource.\n\n Returns in `*mipmappedArray` a mipmapped array through which the mapped\n graphics resource `resource` may be accessed. The value set in\n `mipmappedArray` may change every time that `resource` is mapped.\n\n If `resource` is not a texture then it cannot be accessed via an array\n and :py:obj:`~.cudaErrorUnknown` is returned. If `resource` is not\n mapped then :py:obj:`~.cudaErrorUnknown` is returned.\n\n Parameters\n ----------\n resource : :py:obj:`~.cudaGraphicsResource_t`\n Mapped resource to access\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorUnknown`\n mipmappedArray : :py:obj:`~.cudaMipmappedArray_t`\n Returned mipmapped array through which `resource` may be accessed\n\n See Also\n --------\n :py:obj:`~.cudaGraphicsResourceGetMappedPointer`, :py:obj:`~.cuGraphicsResourceGetMappedMipmappedArray`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_337cudaGraphicsResourceGetMappedMipmappedArray = {"cudaGraphicsResourceGetMappedMipmappedArray", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_337cudaGraphicsResourceGetMappedMipmappedArray, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_336cudaGraphicsResourceGetMappedMipmappedArray}; static PyObject *__pyx_pw_4cuda_6cudart_337cudaGraphicsResourceGetMappedMipmappedArray(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_resource,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_resource)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22802, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphicsResourceGetMappedMipmappedArray") < 0)) __PYX_ERR(0, 22802, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_resource = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphicsResourceGetMappedMipmappedArray", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 22802, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphicsResourceGetMappedMipmappedArray", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_336cudaGraphicsResourceGetMappedMipmappedArray(__pyx_self, __pyx_v_resource); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_336cudaGraphicsResourceGetMappedMipmappedArray(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_resource) { cudaGraphicsResource_t __pyx_v_cresource; PyObject *__pyx_v_presource = NULL; struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_t *__pyx_v_mipmappedArray = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; cudaError_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__519) __Pyx_RefNannySetupContext("cudaGraphicsResourceGetMappedMipmappedArray", 1); __Pyx_TraceCall("cudaGraphicsResourceGetMappedMipmappedArray", __pyx_f[0], 22802, 0, __PYX_ERR(0, 22802, __pyx_L1_error)); /* "cuda/cudart.pyx":22831 * """ * cdef ccudart.cudaGraphicsResource_t cresource * if resource is None: # <<<<<<<<<<<<<< * cresource = 0 * elif isinstance(resource, (cudaGraphicsResource_t,)): */ __pyx_t_1 = (__pyx_v_resource == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":22832 * cdef ccudart.cudaGraphicsResource_t cresource * if resource is None: * cresource = 0 # <<<<<<<<<<<<<< * elif isinstance(resource, (cudaGraphicsResource_t,)): * presource = int(resource) */ __pyx_v_cresource = ((cudaGraphicsResource_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":22831 * """ * cdef ccudart.cudaGraphicsResource_t cresource * if resource is None: # <<<<<<<<<<<<<< * cresource = 0 * elif isinstance(resource, (cudaGraphicsResource_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":22833 * if resource is None: * cresource = 0 * elif isinstance(resource, (cudaGraphicsResource_t,)): # <<<<<<<<<<<<<< * presource = int(resource) * cresource = presource */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_resource, __pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":22834 * cresource = 0 * elif isinstance(resource, (cudaGraphicsResource_t,)): * presource = int(resource) # <<<<<<<<<<<<<< * cresource = presource * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_resource); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22834, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_presource = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":22835 * elif isinstance(resource, (cudaGraphicsResource_t,)): * presource = int(resource) * cresource = presource # <<<<<<<<<<<<<< * else: * presource = int(cudaGraphicsResource_t(resource)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_presource); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22835, __pyx_L1_error) __pyx_v_cresource = ((cudaGraphicsResource_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":22833 * if resource is None: * cresource = 0 * elif isinstance(resource, (cudaGraphicsResource_t,)): # <<<<<<<<<<<<<< * presource = int(resource) * cresource = presource */ goto __pyx_L3; } /* "cuda/cudart.pyx":22837 * cresource = presource * else: * presource = int(cudaGraphicsResource_t(resource)) # <<<<<<<<<<<<<< * cresource = presource * cdef cudaMipmappedArray_t mipmappedArray = cudaMipmappedArray_t() */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t), __pyx_v_resource); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22837, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22837, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_presource = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":22838 * else: * presource = int(cudaGraphicsResource_t(resource)) * cresource = presource # <<<<<<<<<<<<<< * cdef cudaMipmappedArray_t mipmappedArray = cudaMipmappedArray_t() * err = ccudart.cudaGraphicsResourceGetMappedMipmappedArray(mipmappedArray._ptr, cresource) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_presource); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22838, __pyx_L1_error) __pyx_v_cresource = ((cudaGraphicsResource_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":22839 * presource = int(cudaGraphicsResource_t(resource)) * cresource = presource * cdef cudaMipmappedArray_t mipmappedArray = cudaMipmappedArray_t() # <<<<<<<<<<<<<< * err = ccudart.cudaGraphicsResourceGetMappedMipmappedArray(mipmappedArray._ptr, cresource) * return (cudaError_t(err), mipmappedArray) */ __pyx_t_4 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMipmappedArray_t)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22839, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_mipmappedArray = ((struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_t *)__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":22840 * cresource = presource * cdef cudaMipmappedArray_t mipmappedArray = cudaMipmappedArray_t() * err = ccudart.cudaGraphicsResourceGetMappedMipmappedArray(mipmappedArray._ptr, cresource) # <<<<<<<<<<<<<< * return (cudaError_t(err), mipmappedArray) * */ __pyx_t_5 = __pyx_f_4cuda_7ccudart_cudaGraphicsResourceGetMappedMipmappedArray(((cudaMipmappedArray_t *)__pyx_v_mipmappedArray->_ptr), __pyx_v_cresource); if (unlikely(__pyx_t_5 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 22840, __pyx_L1_error) __pyx_v_err = __pyx_t_5; /* "cuda/cudart.pyx":22841 * cdef cudaMipmappedArray_t mipmappedArray = cudaMipmappedArray_t() * err = ccudart.cudaGraphicsResourceGetMappedMipmappedArray(mipmappedArray._ptr, cresource) * return (cudaError_t(err), mipmappedArray) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22841, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 22841, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22841, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22841, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 22841, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_mipmappedArray); __Pyx_GIVEREF((PyObject *)__pyx_v_mipmappedArray); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_mipmappedArray))) __PYX_ERR(0, 22841, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":22802 * return (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_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":22843 * return (cudaError_t(err), mipmappedArray) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGetChannelDesc(array): * """ Get the channel descriptor of an array. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_339cudaGetChannelDesc(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_338cudaGetChannelDesc, "cudaGetChannelDesc(array)\n Get the channel descriptor of an array.\n\n Returns in `*desc` the channel descriptor of the CUDA array `array`.\n\n Parameters\n ----------\n array : :py:obj:`~.cudaArray_const_t`\n Memory array on device\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n desc : :py:obj:`~.cudaChannelFormatDesc`\n Channel format\n\n See Also\n --------\n :py:obj:`~.cudaCreateChannelDesc (C API)`, :py:obj:`~.cudaCreateTextureObject`, :py:obj:`~.cudaCreateSurfaceObject`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_339cudaGetChannelDesc = {"cudaGetChannelDesc", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_339cudaGetChannelDesc, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_338cudaGetChannelDesc}; static PyObject *__pyx_pw_4cuda_6cudart_339cudaGetChannelDesc(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_array_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_array_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22843, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGetChannelDesc") < 0)) __PYX_ERR(0, 22843, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_array = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGetChannelDesc", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 22843, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGetChannelDesc", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_338cudaGetChannelDesc(__pyx_self, __pyx_v_array); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_338cudaGetChannelDesc(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_array) { cudaArray_const_t __pyx_v_carray; PyObject *__pyx_v_parray = NULL; struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *__pyx_v_desc = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; cudaError_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__520) __Pyx_RefNannySetupContext("cudaGetChannelDesc", 1); __Pyx_TraceCall("cudaGetChannelDesc", __pyx_f[0], 22843, 0, __PYX_ERR(0, 22843, __pyx_L1_error)); /* "cuda/cudart.pyx":22866 * """ * cdef ccudart.cudaArray_const_t carray * if array is None: # <<<<<<<<<<<<<< * carray = 0 * elif isinstance(array, (cudaArray_const_t,)): */ __pyx_t_1 = (__pyx_v_array == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":22867 * cdef ccudart.cudaArray_const_t carray * if array is None: * carray = 0 # <<<<<<<<<<<<<< * elif isinstance(array, (cudaArray_const_t,)): * parray = int(array) */ __pyx_v_carray = ((cudaArray_const_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":22866 * """ * cdef ccudart.cudaArray_const_t carray * if array is None: # <<<<<<<<<<<<<< * carray = 0 * elif isinstance(array, (cudaArray_const_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":22868 * if array is None: * carray = 0 * elif isinstance(array, (cudaArray_const_t,)): # <<<<<<<<<<<<<< * parray = int(array) * carray = parray */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_array, __pyx_ptype_4cuda_6cudart_cudaArray_const_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":22869 * carray = 0 * elif isinstance(array, (cudaArray_const_t,)): * parray = int(array) # <<<<<<<<<<<<<< * carray = parray * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_array); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22869, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_parray = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":22870 * elif isinstance(array, (cudaArray_const_t,)): * parray = int(array) * carray = parray # <<<<<<<<<<<<<< * else: * parray = int(cudaArray_const_t(array)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_parray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22870, __pyx_L1_error) __pyx_v_carray = ((cudaArray_const_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":22868 * if array is None: * carray = 0 * elif isinstance(array, (cudaArray_const_t,)): # <<<<<<<<<<<<<< * parray = int(array) * carray = parray */ goto __pyx_L3; } /* "cuda/cudart.pyx":22872 * carray = parray * else: * parray = int(cudaArray_const_t(array)) # <<<<<<<<<<<<<< * carray = parray * cdef cudaChannelFormatDesc desc = cudaChannelFormatDesc() */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_const_t), __pyx_v_array); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22872, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22872, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_parray = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":22873 * else: * parray = int(cudaArray_const_t(array)) * carray = parray # <<<<<<<<<<<<<< * cdef cudaChannelFormatDesc desc = cudaChannelFormatDesc() * with nogil: */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_parray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22873, __pyx_L1_error) __pyx_v_carray = ((cudaArray_const_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":22874 * parray = int(cudaArray_const_t(array)) * carray = parray * cdef cudaChannelFormatDesc desc = cudaChannelFormatDesc() # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaGetChannelDesc(desc._ptr, carray) */ __pyx_t_4 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaChannelFormatDesc)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22874, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_desc = ((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":22875 * carray = parray * cdef cudaChannelFormatDesc desc = cudaChannelFormatDesc() * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaGetChannelDesc(desc._ptr, carray) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":22876 * cdef cudaChannelFormatDesc desc = cudaChannelFormatDesc() * with nogil: * err = ccudart.cudaGetChannelDesc(desc._ptr, carray) # <<<<<<<<<<<<<< * * return (cudaError_t(err), desc) */ __pyx_t_5 = __pyx_f_4cuda_7ccudart_cudaGetChannelDesc(((struct cudaChannelFormatDesc *)__pyx_v_desc->_ptr), __pyx_v_carray); if (unlikely(__pyx_t_5 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 22876, __pyx_L5_error) __pyx_v_err = __pyx_t_5; } /* "cuda/cudart.pyx":22875 * carray = parray * cdef cudaChannelFormatDesc desc = cudaChannelFormatDesc() * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaGetChannelDesc(desc._ptr, carray) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L6; } __pyx_L5_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L6:; } } /* "cuda/cudart.pyx":22878 * err = ccudart.cudaGetChannelDesc(desc._ptr, carray) * * return (cudaError_t(err), desc) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22878, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 22878, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22878, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22878, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 22878, __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))) __PYX_ERR(0, 22878, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":22843 * return (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_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":22880 * return (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_6cudart_341cudaCreateChannelDesc(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_340cudaCreateChannelDesc, "cudaCreateChannelDesc(int x, int y, int z, int w, f: cudaChannelFormatKind)\n Returns a channel descriptor using the specified format.\n\n Returns a channel descriptor with format `f` and number of bits of each\n component `x`, `y`, `z`, and `w`. The :py:obj:`~.cudaChannelFormatDesc`\n is defined as:\n\n **View CUDA Toolkit Documentation for a C++ code example**\n\n where :py:obj:`~.cudaChannelFormatKind` is one of\n :py:obj:`~.cudaChannelFormatKindSigned`,\n :py:obj:`~.cudaChannelFormatKindUnsigned`, or\n :py:obj:`~.cudaChannelFormatKindFloat`.\n\n Parameters\n ----------\n x : int\n X component\n y : int\n Y component\n z : int\n Z component\n w : int\n W component\n f : :py:obj:`~.cudaChannelFormatKind`\n Channel format\n\n Returns\n -------\n cudaError_t.cudaSuccess\n cudaError_t.cudaSuccess\n :py:obj:`~.cudaChannelFormatDesc`\n Channel descriptor with format `f`\n\n See Also\n --------\n cudaCreateChannelDesc (C++ API), :py:obj:`~.cudaGetChannelDesc`, :py:obj:`~.cudaCreateTextureObject`, :py:obj:`~.cudaCreateSurfaceObject`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_341cudaCreateChannelDesc = {"cudaCreateChannelDesc", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_341cudaCreateChannelDesc, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_340cudaCreateChannelDesc}; static PyObject *__pyx_pw_4cuda_6cudart_341cudaCreateChannelDesc(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x_2,&__pyx_n_s_y_2,&__pyx_n_s_z_2,&__pyx_n_s_w_2,&__pyx_n_s_f_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_x_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22880, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_y_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22880, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaCreateChannelDesc", 1, 5, 5, 1); __PYX_ERR(0, 22880, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_z_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22880, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaCreateChannelDesc", 1, 5, 5, 2); __PYX_ERR(0, 22880, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_w_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22880, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaCreateChannelDesc", 1, 5, 5, 3); __PYX_ERR(0, 22880, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_f_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[4]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22880, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaCreateChannelDesc", 1, 5, 5, 4); __PYX_ERR(0, 22880, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaCreateChannelDesc") < 0)) __PYX_ERR(0, 22880, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 5)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); } __pyx_v_x = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_x == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 22881, __pyx_L3_error) __pyx_v_y = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_y == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 22881, __pyx_L3_error) __pyx_v_z = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_z == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 22881, __pyx_L3_error) __pyx_v_w = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_w == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 22881, __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, 22880, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 22881, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_340cudaCreateChannelDesc(__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; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_340cudaCreateChannelDesc(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_cf; struct cudaChannelFormatDesc __pyx_v_err; struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *__pyx_v_wrapper = 0; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; enum cudaChannelFormatKind __pyx_t_2; struct cudaChannelFormatDesc __pyx_t_3; PyObject *__pyx_t_4 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__521) __Pyx_RefNannySetupContext("cudaCreateChannelDesc", 1); __Pyx_TraceCall("cudaCreateChannelDesc", __pyx_f[0], 22880, 0, __PYX_ERR(0, 22880, __pyx_L1_error)); /* "cuda/cudart.pyx":22919 * cudaCreateChannelDesc (C++ API), :py:obj:`~.cudaGetChannelDesc`, :py:obj:`~.cudaCreateTextureObject`, :py:obj:`~.cudaCreateSurfaceObject` * """ * cdef ccudart.cudaChannelFormatKind cf = f.value # <<<<<<<<<<<<<< * err = ccudart.cudaCreateChannelDesc(x, y, z, w, cf) * cdef cudaChannelFormatDesc wrapper = cudaChannelFormatDesc() */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_f, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22919, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaChannelFormatKind)__Pyx_PyInt_As_enum__cudaChannelFormatKind(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22919, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cf = __pyx_t_2; /* "cuda/cudart.pyx":22920 * """ * cdef ccudart.cudaChannelFormatKind cf = f.value * err = ccudart.cudaCreateChannelDesc(x, y, z, w, cf) # <<<<<<<<<<<<<< * cdef cudaChannelFormatDesc wrapper = cudaChannelFormatDesc() * wrapper._ptr[0] = err */ __pyx_t_3 = __pyx_f_4cuda_7ccudart_cudaCreateChannelDesc(__pyx_v_x, __pyx_v_y, __pyx_v_z, __pyx_v_w, __pyx_v_cf); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22920, __pyx_L1_error) __pyx_v_err = __pyx_t_3; /* "cuda/cudart.pyx":22921 * cdef ccudart.cudaChannelFormatKind cf = f.value * err = ccudart.cudaCreateChannelDesc(x, y, z, w, cf) * cdef cudaChannelFormatDesc wrapper = cudaChannelFormatDesc() # <<<<<<<<<<<<<< * wrapper._ptr[0] = err * return (cudaError_t.cudaSuccess, wrapper) */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaChannelFormatDesc)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22921, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_wrapper = ((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":22922 * err = ccudart.cudaCreateChannelDesc(x, y, z, w, cf) * cdef cudaChannelFormatDesc wrapper = cudaChannelFormatDesc() * wrapper._ptr[0] = err # <<<<<<<<<<<<<< * return (cudaError_t.cudaSuccess, wrapper) * */ (__pyx_v_wrapper->_ptr[0]) = __pyx_v_err; /* "cuda/cudart.pyx":22923 * cdef cudaChannelFormatDesc wrapper = cudaChannelFormatDesc() * wrapper._ptr[0] = err * return (cudaError_t.cudaSuccess, wrapper) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22923, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_cudaSuccess); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22923, __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, 22923, __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)) __PYX_ERR(0, 22923, __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))) __PYX_ERR(0, 22923, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":22880 * return (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.cudart.cudaCreateChannelDesc", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_wrapper); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":22925 * 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_6cudart_343cudaCreateTextureObject(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_342cudaCreateTextureObject, "cudaCreateTextureObject(cudaResourceDesc pResDesc: Optional[cudaResourceDesc], cudaTextureDesc pTexDesc: Optional[cudaTextureDesc], cudaResourceViewDesc pResViewDesc: Optional[cudaResourceViewDesc])\n Creates a texture object.\n\n Creates a texture object and returns it in `pTexObject`. `pResDesc`\n describes the data to texture from. `pTexDesc` describes how the data\n should be sampled. `pResViewDesc` is an optional argument that\n specifies an alternate format for the data described by `pResDesc`, and\n also describes the subresource region to restrict access to when\n texturing. `pResViewDesc` can only be specified if the type of resource\n is a CUDA array or a CUDA mipmapped array not in a block compressed\n format.\n\n Texture objects are only supported on devices of compute capability 3.0\n or higher. Additionally, a texture object is an opaque value, and, as\n such, should only be accessed through CUDA API calls.\n\n The :py:obj:`~.cudaResourceDesc` structure is defined as:\n\n **View CUDA Toolkit Documentation for a C++ code example**\n\n where:\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\n If :py:obj:`~.cudaResourceDesc.resType` is set to\n :py:obj:`~.cudaResourceTypeArray`,\n :py:obj:`~.cudaResourceDesc`::res::array::array must be set to a valid\n CUDA array handle.\n\n If :py:obj:`~.cudaResourceDesc.resType` is set to\n :py:obj:`~.cudaResourceTypeMipmappedArray`,\n :py:obj:`~.cudaResourceDesc`::res::mipmap::mipmap must be set to a\n valid CUDA mipmapped array handle and\n :py:obj:`~.cudaTextureDesc.normalizedCoords` must be set to true.\n\n If :py:obj:`~.cudaResourceDesc.resType` is set to\n :py:obj:`~.cudaResourceTypeLinear`,\n :py:obj:`~.cudaResourceDesc`::res::linear::devPtr must be set to a\n valid device pointer, th""at is aligned to\n :py:obj:`~.cudaDeviceProp.textureAlignment`.\n :py:obj:`~.cudaResourceDesc`::res::linear::desc describes the format\n and the number of components per array element.\n :py:obj:`~.cudaResourceDesc`::res::linear::sizeInBytes specifies the\n size of the array in bytes. The total number of elements in the linear\n address range cannot exceed\n :py:obj:`~.cudaDeviceProp.maxTexture1DLinear`. The number of elements\n is computed as (sizeInBytes / sizeof(desc)).\n\n If :py:obj:`~.cudaResourceDesc.resType` is set to\n :py:obj:`~.cudaResourceTypePitch2D`,\n :py:obj:`~.cudaResourceDesc`::res::pitch2D::devPtr must be set to a\n valid device pointer, that is aligned to\n :py:obj:`~.cudaDeviceProp.textureAlignment`.\n :py:obj:`~.cudaResourceDesc`::res::pitch2D::desc describes the format\n and 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\n and 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\n pitch 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\n The :py:obj:`~.cudaTextureDesc` struct is defined as\n\n **View CUDA Toolkit Documentation for a C++ code example**\n\n where\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 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 coordi""nates 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\n The :py:obj:`~.cudaResourceViewDesc` struct is defined as\n\n **View CUDA Toolkit Documentation for a C++ code example**\n\n where:\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 other\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 l""evel 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\n Parameters\n ----------\n pResDesc : :py:obj:`~.cudaResourceDesc`\n Resource descriptor\n pTexDesc : :py:obj:`~.cudaTextureDesc`\n Texture descriptor\n pResViewDesc : :py:obj:`~.cudaResourceViewDesc`\n Resource view descriptor\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n pTexObject : :py:obj:`~.cudaTextureObject_t`\n Texture object to create\n\n See Also\n --------\n :py:obj:`~.cudaDestroyTextureObject`, :py:obj:`~.cuTexObjectCreate`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_343cudaCreateTextureObject = {"cudaCreateTextureObject", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_343cudaCreateTextureObject, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_342cudaCreateTextureObject}; static PyObject *__pyx_pw_4cuda_6cudart_343cudaCreateTextureObject(PyObject *__pyx_self, #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_6cudart_cudaResourceDesc *__pyx_v_pResDesc = 0; struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *__pyx_v_pTexDesc = 0; struct __pyx_obj_4cuda_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pResDesc,&__pyx_n_s_pTexDesc,&__pyx_n_s_pResViewDesc,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pResDesc)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22925, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pTexDesc)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22925, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaCreateTextureObject", 1, 3, 3, 1); __PYX_ERR(0, 22925, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pResViewDesc)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22925, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaCreateTextureObject", 1, 3, 3, 2); __PYX_ERR(0, 22925, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaCreateTextureObject") < 0)) __PYX_ERR(0, 22925, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_pResDesc = ((struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *)values[0]); __pyx_v_pTexDesc = ((struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *)values[1]); __pyx_v_pResViewDesc = ((struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *)values[2]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaCreateTextureObject", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 22925, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaResourceDesc, 1, "pResDesc", 0))) __PYX_ERR(0, 22926, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pTexDesc), __pyx_ptype_4cuda_6cudart_cudaTextureDesc, 1, "pTexDesc", 0))) __PYX_ERR(0, 22926, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pResViewDesc), __pyx_ptype_4cuda_6cudart_cudaResourceViewDesc, 1, "pResViewDesc", 0))) __PYX_ERR(0, 22926, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_342cudaCreateTextureObject(__pyx_self, __pyx_v_pResDesc, __pyx_v_pTexDesc, __pyx_v_pResViewDesc); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_342cudaCreateTextureObject(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *__pyx_v_pResDesc, struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *__pyx_v_pTexDesc, struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *__pyx_v_pResViewDesc) { struct __pyx_obj_4cuda_6cudart_cudaTextureObject_t *__pyx_v_pTexObject = 0; struct cudaResourceDesc *__pyx_v_cpResDesc_ptr; struct cudaTextureDesc *__pyx_v_cpTexDesc_ptr; struct cudaResourceViewDesc *__pyx_v_cpResViewDesc_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; struct cudaResourceDesc *__pyx_t_2; int __pyx_t_3; struct cudaTextureDesc *__pyx_t_4; struct cudaResourceViewDesc *__pyx_t_5; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__522) __Pyx_RefNannySetupContext("cudaCreateTextureObject", 1); __Pyx_TraceCall("cudaCreateTextureObject", __pyx_f[0], 22925, 0, __PYX_ERR(0, 22925, __pyx_L1_error)); /* "cuda/cudart.pyx":23157 * :py:obj:`~.cudaDestroyTextureObject`, :py:obj:`~.cuTexObjectCreate` * """ * cdef cudaTextureObject_t pTexObject = cudaTextureObject_t() # <<<<<<<<<<<<<< * cdef ccudart.cudaResourceDesc* cpResDesc_ptr = pResDesc._ptr if pResDesc != None else NULL * cdef ccudart.cudaTextureDesc* cpTexDesc_ptr = pTexDesc._ptr if pTexDesc != None else NULL */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaTextureObject_t)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23157, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_pTexObject = ((struct __pyx_obj_4cuda_6cudart_cudaTextureObject_t *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":23158 * """ * cdef cudaTextureObject_t pTexObject = cudaTextureObject_t() * cdef ccudart.cudaResourceDesc* cpResDesc_ptr = pResDesc._ptr if pResDesc != None else NULL # <<<<<<<<<<<<<< * cdef ccudart.cudaTextureDesc* cpTexDesc_ptr = pTexDesc._ptr if pTexDesc != None else NULL * cdef ccudart.cudaResourceViewDesc* cpResViewDesc_ptr = pResViewDesc._ptr if pResViewDesc != None else NULL */ __pyx_t_1 = PyObject_RichCompare(((PyObject *)__pyx_v_pResDesc), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23158, __pyx_L1_error) __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 23158, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_3) { __pyx_t_2 = __pyx_v_pResDesc->_ptr; } else { __pyx_t_2 = NULL; } __pyx_v_cpResDesc_ptr = __pyx_t_2; /* "cuda/cudart.pyx":23159 * cdef cudaTextureObject_t pTexObject = cudaTextureObject_t() * cdef ccudart.cudaResourceDesc* cpResDesc_ptr = pResDesc._ptr if pResDesc != None else NULL * cdef ccudart.cudaTextureDesc* cpTexDesc_ptr = pTexDesc._ptr if pTexDesc != None else NULL # <<<<<<<<<<<<<< * cdef ccudart.cudaResourceViewDesc* cpResViewDesc_ptr = pResViewDesc._ptr if pResViewDesc != None else NULL * err = ccudart.cudaCreateTextureObject(pTexObject._ptr, cpResDesc_ptr, cpTexDesc_ptr, cpResViewDesc_ptr) */ __pyx_t_1 = PyObject_RichCompare(((PyObject *)__pyx_v_pTexDesc), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23159, __pyx_L1_error) __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 23159, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_3) { __pyx_t_4 = __pyx_v_pTexDesc->_ptr; } else { __pyx_t_4 = NULL; } __pyx_v_cpTexDesc_ptr = __pyx_t_4; /* "cuda/cudart.pyx":23160 * cdef ccudart.cudaResourceDesc* cpResDesc_ptr = pResDesc._ptr if pResDesc != None else NULL * cdef ccudart.cudaTextureDesc* cpTexDesc_ptr = pTexDesc._ptr if pTexDesc != None else NULL * cdef ccudart.cudaResourceViewDesc* cpResViewDesc_ptr = pResViewDesc._ptr if pResViewDesc != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaCreateTextureObject(pTexObject._ptr, cpResDesc_ptr, cpTexDesc_ptr, cpResViewDesc_ptr) * return (cudaError_t(err), pTexObject) */ __pyx_t_1 = PyObject_RichCompare(((PyObject *)__pyx_v_pResViewDesc), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23160, __pyx_L1_error) __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 23160, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_3) { __pyx_t_5 = __pyx_v_pResViewDesc->_ptr; } else { __pyx_t_5 = NULL; } __pyx_v_cpResViewDesc_ptr = __pyx_t_5; /* "cuda/cudart.pyx":23161 * cdef ccudart.cudaTextureDesc* cpTexDesc_ptr = pTexDesc._ptr if pTexDesc != None else NULL * cdef ccudart.cudaResourceViewDesc* cpResViewDesc_ptr = pResViewDesc._ptr if pResViewDesc != None else NULL * err = ccudart.cudaCreateTextureObject(pTexObject._ptr, cpResDesc_ptr, cpTexDesc_ptr, cpResViewDesc_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err), pTexObject) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaCreateTextureObject(((cudaTextureObject_t *)__pyx_v_pTexObject->_ptr), __pyx_v_cpResDesc_ptr, __pyx_v_cpTexDesc_ptr, __pyx_v_cpResViewDesc_ptr); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 23161, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":23162 * cdef ccudart.cudaResourceViewDesc* cpResViewDesc_ptr = pResViewDesc._ptr if pResViewDesc != None else NULL * err = ccudart.cudaCreateTextureObject(pTexObject._ptr, cpResDesc_ptr, cpTexDesc_ptr, cpResViewDesc_ptr) * return (cudaError_t(err), pTexObject) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 23162, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 23162, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_8}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23162, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 23162, __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)) __PYX_ERR(0, 23162, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pTexObject); __Pyx_GIVEREF((PyObject *)__pyx_v_pTexObject); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_pTexObject))) __PYX_ERR(0, 23162, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":22925 * 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_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.cudaCreateTextureObject", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_pTexObject); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":23164 * return (cudaError_t(err), pTexObject) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDestroyTextureObject(texObject): * """ Destroys a texture object. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_345cudaDestroyTextureObject(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_344cudaDestroyTextureObject, "cudaDestroyTextureObject(texObject)\n Destroys a texture object.\n\n Destroys the texture object specified by `texObject`.\n\n Parameters\n ----------\n texObject : :py:obj:`~.cudaTextureObject_t`\n Texture object to destroy\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\n See Also\n --------\n :py:obj:`~.cudaCreateTextureObject`, :py:obj:`~.cuTexObjectDestroy`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_345cudaDestroyTextureObject = {"cudaDestroyTextureObject", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_345cudaDestroyTextureObject, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_344cudaDestroyTextureObject}; static PyObject *__pyx_pw_4cuda_6cudart_345cudaDestroyTextureObject(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_texObject,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_texObject)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23164, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaDestroyTextureObject") < 0)) __PYX_ERR(0, 23164, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_texObject = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaDestroyTextureObject", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 23164, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaDestroyTextureObject", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_344cudaDestroyTextureObject(__pyx_self, __pyx_v_texObject); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_344cudaDestroyTextureObject(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_texObject) { cudaTextureObject_t __pyx_v_ctexObject; PyObject *__pyx_v_ptexObject = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; cudaError_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__523) __Pyx_RefNannySetupContext("cudaDestroyTextureObject", 1); __Pyx_TraceCall("cudaDestroyTextureObject", __pyx_f[0], 23164, 0, __PYX_ERR(0, 23164, __pyx_L1_error)); /* "cuda/cudart.pyx":23185 * """ * cdef ccudart.cudaTextureObject_t ctexObject * if texObject is None: # <<<<<<<<<<<<<< * ctexObject = 0 * elif isinstance(texObject, (cudaTextureObject_t,)): */ __pyx_t_1 = (__pyx_v_texObject == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":23186 * cdef ccudart.cudaTextureObject_t ctexObject * if texObject is None: * ctexObject = 0 # <<<<<<<<<<<<<< * elif isinstance(texObject, (cudaTextureObject_t,)): * ptexObject = int(texObject) */ __pyx_v_ctexObject = ((cudaTextureObject_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":23185 * """ * cdef ccudart.cudaTextureObject_t ctexObject * if texObject is None: # <<<<<<<<<<<<<< * ctexObject = 0 * elif isinstance(texObject, (cudaTextureObject_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":23187 * if texObject is None: * ctexObject = 0 * elif isinstance(texObject, (cudaTextureObject_t,)): # <<<<<<<<<<<<<< * ptexObject = int(texObject) * ctexObject = ptexObject */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_texObject, __pyx_ptype_4cuda_6cudart_cudaTextureObject_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":23188 * ctexObject = 0 * elif isinstance(texObject, (cudaTextureObject_t,)): * ptexObject = int(texObject) # <<<<<<<<<<<<<< * ctexObject = ptexObject * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_texObject); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23188, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_ptexObject = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":23189 * elif isinstance(texObject, (cudaTextureObject_t,)): * ptexObject = int(texObject) * ctexObject = ptexObject # <<<<<<<<<<<<<< * else: * ptexObject = int(cudaTextureObject_t(texObject)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_ptexObject); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23189, __pyx_L1_error) __pyx_v_ctexObject = ((cudaTextureObject_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":23187 * if texObject is None: * ctexObject = 0 * elif isinstance(texObject, (cudaTextureObject_t,)): # <<<<<<<<<<<<<< * ptexObject = int(texObject) * ctexObject = ptexObject */ goto __pyx_L3; } /* "cuda/cudart.pyx":23191 * ctexObject = ptexObject * else: * ptexObject = int(cudaTextureObject_t(texObject)) # <<<<<<<<<<<<<< * ctexObject = ptexObject * with nogil: */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaTextureObject_t), __pyx_v_texObject); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23191, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23191, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_ptexObject = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":23192 * else: * ptexObject = int(cudaTextureObject_t(texObject)) * ctexObject = ptexObject # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaDestroyTextureObject(ctexObject) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_ptexObject); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23192, __pyx_L1_error) __pyx_v_ctexObject = ((cudaTextureObject_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":23193 * ptexObject = int(cudaTextureObject_t(texObject)) * ctexObject = ptexObject * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaDestroyTextureObject(ctexObject) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":23194 * ctexObject = ptexObject * with nogil: * err = ccudart.cudaDestroyTextureObject(ctexObject) # <<<<<<<<<<<<<< * * return (cudaError_t(err),) */ __pyx_t_5 = __pyx_f_4cuda_7ccudart_cudaDestroyTextureObject(__pyx_v_ctexObject); if (unlikely(__pyx_t_5 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 23194, __pyx_L5_error) __pyx_v_err = __pyx_t_5; } /* "cuda/cudart.pyx":23193 * ptexObject = int(cudaTextureObject_t(texObject)) * ctexObject = ptexObject * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaDestroyTextureObject(ctexObject) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L6; } __pyx_L5_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L6:; } } /* "cuda/cudart.pyx":23196 * err = ccudart.cudaDestroyTextureObject(ctexObject) * * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23196, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 23196, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23196, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23196, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 23196, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":23164 * return (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_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.cudaDestroyTextureObject", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_ptexObject); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":23198 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGetTextureObjectResourceDesc(texObject): * """ Returns a texture object's resource descriptor. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_347cudaGetTextureObjectResourceDesc(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_346cudaGetTextureObjectResourceDesc, "cudaGetTextureObjectResourceDesc(texObject)\n Returns a texture object's resource descriptor.\n\n Returns the resource descriptor for the texture object specified by\n `texObject`.\n\n Parameters\n ----------\n texObject : :py:obj:`~.cudaTextureObject_t`\n Texture object\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n pResDesc : :py:obj:`~.cudaResourceDesc`\n Resource descriptor\n\n See Also\n --------\n :py:obj:`~.cudaCreateTextureObject`, :py:obj:`~.cuTexObjectGetResourceDesc`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_347cudaGetTextureObjectResourceDesc = {"cudaGetTextureObjectResourceDesc", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_347cudaGetTextureObjectResourceDesc, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_346cudaGetTextureObjectResourceDesc}; static PyObject *__pyx_pw_4cuda_6cudart_347cudaGetTextureObjectResourceDesc(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_texObject,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_texObject)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23198, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGetTextureObjectResourceDesc") < 0)) __PYX_ERR(0, 23198, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_texObject = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGetTextureObjectResourceDesc", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 23198, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGetTextureObjectResourceDesc", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_346cudaGetTextureObjectResourceDesc(__pyx_self, __pyx_v_texObject); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_346cudaGetTextureObjectResourceDesc(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_texObject) { cudaTextureObject_t __pyx_v_ctexObject; PyObject *__pyx_v_ptexObject = NULL; struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *__pyx_v_pResDesc = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; cudaError_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__524) __Pyx_RefNannySetupContext("cudaGetTextureObjectResourceDesc", 1); __Pyx_TraceCall("cudaGetTextureObjectResourceDesc", __pyx_f[0], 23198, 0, __PYX_ERR(0, 23198, __pyx_L1_error)); /* "cuda/cudart.pyx":23222 * """ * cdef ccudart.cudaTextureObject_t ctexObject * if texObject is None: # <<<<<<<<<<<<<< * ctexObject = 0 * elif isinstance(texObject, (cudaTextureObject_t,)): */ __pyx_t_1 = (__pyx_v_texObject == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":23223 * cdef ccudart.cudaTextureObject_t ctexObject * if texObject is None: * ctexObject = 0 # <<<<<<<<<<<<<< * elif isinstance(texObject, (cudaTextureObject_t,)): * ptexObject = int(texObject) */ __pyx_v_ctexObject = ((cudaTextureObject_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":23222 * """ * cdef ccudart.cudaTextureObject_t ctexObject * if texObject is None: # <<<<<<<<<<<<<< * ctexObject = 0 * elif isinstance(texObject, (cudaTextureObject_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":23224 * if texObject is None: * ctexObject = 0 * elif isinstance(texObject, (cudaTextureObject_t,)): # <<<<<<<<<<<<<< * ptexObject = int(texObject) * ctexObject = ptexObject */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_texObject, __pyx_ptype_4cuda_6cudart_cudaTextureObject_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":23225 * ctexObject = 0 * elif isinstance(texObject, (cudaTextureObject_t,)): * ptexObject = int(texObject) # <<<<<<<<<<<<<< * ctexObject = ptexObject * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_texObject); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_ptexObject = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":23226 * elif isinstance(texObject, (cudaTextureObject_t,)): * ptexObject = int(texObject) * ctexObject = ptexObject # <<<<<<<<<<<<<< * else: * ptexObject = int(cudaTextureObject_t(texObject)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_ptexObject); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23226, __pyx_L1_error) __pyx_v_ctexObject = ((cudaTextureObject_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":23224 * if texObject is None: * ctexObject = 0 * elif isinstance(texObject, (cudaTextureObject_t,)): # <<<<<<<<<<<<<< * ptexObject = int(texObject) * ctexObject = ptexObject */ goto __pyx_L3; } /* "cuda/cudart.pyx":23228 * ctexObject = ptexObject * else: * ptexObject = int(cudaTextureObject_t(texObject)) # <<<<<<<<<<<<<< * ctexObject = ptexObject * cdef cudaResourceDesc pResDesc = cudaResourceDesc() */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaTextureObject_t), __pyx_v_texObject); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23228, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23228, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_ptexObject = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":23229 * else: * ptexObject = int(cudaTextureObject_t(texObject)) * ctexObject = ptexObject # <<<<<<<<<<<<<< * cdef cudaResourceDesc pResDesc = cudaResourceDesc() * with nogil: */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_ptexObject); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23229, __pyx_L1_error) __pyx_v_ctexObject = ((cudaTextureObject_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":23230 * ptexObject = int(cudaTextureObject_t(texObject)) * ctexObject = ptexObject * cdef cudaResourceDesc pResDesc = cudaResourceDesc() # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaGetTextureObjectResourceDesc(pResDesc._ptr, ctexObject) */ __pyx_t_4 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaResourceDesc)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23230, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_pResDesc = ((struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *)__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":23231 * ctexObject = ptexObject * cdef cudaResourceDesc pResDesc = cudaResourceDesc() * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaGetTextureObjectResourceDesc(pResDesc._ptr, ctexObject) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":23232 * cdef cudaResourceDesc pResDesc = cudaResourceDesc() * with nogil: * err = ccudart.cudaGetTextureObjectResourceDesc(pResDesc._ptr, ctexObject) # <<<<<<<<<<<<<< * * return (cudaError_t(err), pResDesc) */ __pyx_t_5 = __pyx_f_4cuda_7ccudart_cudaGetTextureObjectResourceDesc(((struct cudaResourceDesc *)__pyx_v_pResDesc->_ptr), __pyx_v_ctexObject); if (unlikely(__pyx_t_5 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 23232, __pyx_L5_error) __pyx_v_err = __pyx_t_5; } /* "cuda/cudart.pyx":23231 * ctexObject = ptexObject * cdef cudaResourceDesc pResDesc = cudaResourceDesc() * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaGetTextureObjectResourceDesc(pResDesc._ptr, ctexObject) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L6; } __pyx_L5_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L6:; } } /* "cuda/cudart.pyx":23234 * err = ccudart.cudaGetTextureObjectResourceDesc(pResDesc._ptr, ctexObject) * * return (cudaError_t(err), pResDesc) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23234, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 23234, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23234, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23234, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 23234, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pResDesc); __Pyx_GIVEREF((PyObject *)__pyx_v_pResDesc); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_pResDesc))) __PYX_ERR(0, 23234, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":23198 * return (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_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":23236 * return (cudaError_t(err), pResDesc) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGetTextureObjectTextureDesc(texObject): * """ Returns a texture object's texture descriptor. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_349cudaGetTextureObjectTextureDesc(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_348cudaGetTextureObjectTextureDesc, "cudaGetTextureObjectTextureDesc(texObject)\n Returns a texture object's texture descriptor.\n\n Returns the texture descriptor for the texture object specified by\n `texObject`.\n\n Parameters\n ----------\n texObject : :py:obj:`~.cudaTextureObject_t`\n Texture object\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n pTexDesc : :py:obj:`~.cudaTextureDesc`\n Texture descriptor\n\n See Also\n --------\n :py:obj:`~.cudaCreateTextureObject`, :py:obj:`~.cuTexObjectGetTextureDesc`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_349cudaGetTextureObjectTextureDesc = {"cudaGetTextureObjectTextureDesc", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_349cudaGetTextureObjectTextureDesc, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_348cudaGetTextureObjectTextureDesc}; static PyObject *__pyx_pw_4cuda_6cudart_349cudaGetTextureObjectTextureDesc(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_texObject,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_texObject)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23236, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGetTextureObjectTextureDesc") < 0)) __PYX_ERR(0, 23236, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_texObject = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGetTextureObjectTextureDesc", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 23236, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGetTextureObjectTextureDesc", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_348cudaGetTextureObjectTextureDesc(__pyx_self, __pyx_v_texObject); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_348cudaGetTextureObjectTextureDesc(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_texObject) { cudaTextureObject_t __pyx_v_ctexObject; PyObject *__pyx_v_ptexObject = NULL; struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *__pyx_v_pTexDesc = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; cudaError_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__525) __Pyx_RefNannySetupContext("cudaGetTextureObjectTextureDesc", 1); __Pyx_TraceCall("cudaGetTextureObjectTextureDesc", __pyx_f[0], 23236, 0, __PYX_ERR(0, 23236, __pyx_L1_error)); /* "cuda/cudart.pyx":23260 * """ * cdef ccudart.cudaTextureObject_t ctexObject * if texObject is None: # <<<<<<<<<<<<<< * ctexObject = 0 * elif isinstance(texObject, (cudaTextureObject_t,)): */ __pyx_t_1 = (__pyx_v_texObject == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":23261 * cdef ccudart.cudaTextureObject_t ctexObject * if texObject is None: * ctexObject = 0 # <<<<<<<<<<<<<< * elif isinstance(texObject, (cudaTextureObject_t,)): * ptexObject = int(texObject) */ __pyx_v_ctexObject = ((cudaTextureObject_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":23260 * """ * cdef ccudart.cudaTextureObject_t ctexObject * if texObject is None: # <<<<<<<<<<<<<< * ctexObject = 0 * elif isinstance(texObject, (cudaTextureObject_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":23262 * if texObject is None: * ctexObject = 0 * elif isinstance(texObject, (cudaTextureObject_t,)): # <<<<<<<<<<<<<< * ptexObject = int(texObject) * ctexObject = ptexObject */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_texObject, __pyx_ptype_4cuda_6cudart_cudaTextureObject_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":23263 * ctexObject = 0 * elif isinstance(texObject, (cudaTextureObject_t,)): * ptexObject = int(texObject) # <<<<<<<<<<<<<< * ctexObject = ptexObject * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_texObject); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23263, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_ptexObject = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":23264 * elif isinstance(texObject, (cudaTextureObject_t,)): * ptexObject = int(texObject) * ctexObject = ptexObject # <<<<<<<<<<<<<< * else: * ptexObject = int(cudaTextureObject_t(texObject)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_ptexObject); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23264, __pyx_L1_error) __pyx_v_ctexObject = ((cudaTextureObject_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":23262 * if texObject is None: * ctexObject = 0 * elif isinstance(texObject, (cudaTextureObject_t,)): # <<<<<<<<<<<<<< * ptexObject = int(texObject) * ctexObject = ptexObject */ goto __pyx_L3; } /* "cuda/cudart.pyx":23266 * ctexObject = ptexObject * else: * ptexObject = int(cudaTextureObject_t(texObject)) # <<<<<<<<<<<<<< * ctexObject = ptexObject * cdef cudaTextureDesc pTexDesc = cudaTextureDesc() */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaTextureObject_t), __pyx_v_texObject); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_ptexObject = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":23267 * else: * ptexObject = int(cudaTextureObject_t(texObject)) * ctexObject = ptexObject # <<<<<<<<<<<<<< * cdef cudaTextureDesc pTexDesc = cudaTextureDesc() * with nogil: */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_ptexObject); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23267, __pyx_L1_error) __pyx_v_ctexObject = ((cudaTextureObject_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":23268 * ptexObject = int(cudaTextureObject_t(texObject)) * ctexObject = ptexObject * cdef cudaTextureDesc pTexDesc = cudaTextureDesc() # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaGetTextureObjectTextureDesc(pTexDesc._ptr, ctexObject) */ __pyx_t_4 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaTextureDesc)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23268, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_pTexDesc = ((struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *)__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":23269 * ctexObject = ptexObject * cdef cudaTextureDesc pTexDesc = cudaTextureDesc() * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaGetTextureObjectTextureDesc(pTexDesc._ptr, ctexObject) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":23270 * cdef cudaTextureDesc pTexDesc = cudaTextureDesc() * with nogil: * err = ccudart.cudaGetTextureObjectTextureDesc(pTexDesc._ptr, ctexObject) # <<<<<<<<<<<<<< * * return (cudaError_t(err), pTexDesc) */ __pyx_t_5 = __pyx_f_4cuda_7ccudart_cudaGetTextureObjectTextureDesc(((struct cudaTextureDesc *)__pyx_v_pTexDesc->_ptr), __pyx_v_ctexObject); if (unlikely(__pyx_t_5 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 23270, __pyx_L5_error) __pyx_v_err = __pyx_t_5; } /* "cuda/cudart.pyx":23269 * ctexObject = ptexObject * cdef cudaTextureDesc pTexDesc = cudaTextureDesc() * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaGetTextureObjectTextureDesc(pTexDesc._ptr, ctexObject) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L6; } __pyx_L5_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L6:; } } /* "cuda/cudart.pyx":23272 * err = ccudart.cudaGetTextureObjectTextureDesc(pTexDesc._ptr, ctexObject) * * return (cudaError_t(err), pTexDesc) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23272, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 23272, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23272, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23272, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 23272, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pTexDesc); __Pyx_GIVEREF((PyObject *)__pyx_v_pTexDesc); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_pTexDesc))) __PYX_ERR(0, 23272, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":23236 * return (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_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":23274 * return (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_6cudart_351cudaGetTextureObjectResourceViewDesc(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_350cudaGetTextureObjectResourceViewDesc, "cudaGetTextureObjectResourceViewDesc(texObject)\n Returns a texture object's resource view descriptor.\n\n Returns the resource view descriptor for the texture object specified\n by `texObject`. If no resource view was specified,\n :py:obj:`~.cudaErrorInvalidValue` is returned.\n\n Parameters\n ----------\n texObject : :py:obj:`~.cudaTextureObject_t`\n Texture object\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n pResViewDesc : :py:obj:`~.cudaResourceViewDesc`\n Resource view descriptor\n\n See Also\n --------\n :py:obj:`~.cudaCreateTextureObject`, :py:obj:`~.cuTexObjectGetResourceViewDesc`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_351cudaGetTextureObjectResourceViewDesc = {"cudaGetTextureObjectResourceViewDesc", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_351cudaGetTextureObjectResourceViewDesc, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_350cudaGetTextureObjectResourceViewDesc}; static PyObject *__pyx_pw_4cuda_6cudart_351cudaGetTextureObjectResourceViewDesc(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_texObject,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_texObject)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23274, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGetTextureObjectResourceViewDesc") < 0)) __PYX_ERR(0, 23274, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_texObject = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGetTextureObjectResourceViewDesc", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 23274, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGetTextureObjectResourceViewDesc", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_350cudaGetTextureObjectResourceViewDesc(__pyx_self, __pyx_v_texObject); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_350cudaGetTextureObjectResourceViewDesc(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_texObject) { cudaTextureObject_t __pyx_v_ctexObject; PyObject *__pyx_v_ptexObject = NULL; struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *__pyx_v_pResViewDesc = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; cudaError_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__526) __Pyx_RefNannySetupContext("cudaGetTextureObjectResourceViewDesc", 1); __Pyx_TraceCall("cudaGetTextureObjectResourceViewDesc", __pyx_f[0], 23274, 0, __PYX_ERR(0, 23274, __pyx_L1_error)); /* "cuda/cudart.pyx":23299 * """ * cdef ccudart.cudaTextureObject_t ctexObject * if texObject is None: # <<<<<<<<<<<<<< * ctexObject = 0 * elif isinstance(texObject, (cudaTextureObject_t,)): */ __pyx_t_1 = (__pyx_v_texObject == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":23300 * cdef ccudart.cudaTextureObject_t ctexObject * if texObject is None: * ctexObject = 0 # <<<<<<<<<<<<<< * elif isinstance(texObject, (cudaTextureObject_t,)): * ptexObject = int(texObject) */ __pyx_v_ctexObject = ((cudaTextureObject_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":23299 * """ * cdef ccudart.cudaTextureObject_t ctexObject * if texObject is None: # <<<<<<<<<<<<<< * ctexObject = 0 * elif isinstance(texObject, (cudaTextureObject_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":23301 * if texObject is None: * ctexObject = 0 * elif isinstance(texObject, (cudaTextureObject_t,)): # <<<<<<<<<<<<<< * ptexObject = int(texObject) * ctexObject = ptexObject */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_texObject, __pyx_ptype_4cuda_6cudart_cudaTextureObject_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":23302 * ctexObject = 0 * elif isinstance(texObject, (cudaTextureObject_t,)): * ptexObject = int(texObject) # <<<<<<<<<<<<<< * ctexObject = ptexObject * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_texObject); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23302, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_ptexObject = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":23303 * elif isinstance(texObject, (cudaTextureObject_t,)): * ptexObject = int(texObject) * ctexObject = ptexObject # <<<<<<<<<<<<<< * else: * ptexObject = int(cudaTextureObject_t(texObject)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_ptexObject); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23303, __pyx_L1_error) __pyx_v_ctexObject = ((cudaTextureObject_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":23301 * if texObject is None: * ctexObject = 0 * elif isinstance(texObject, (cudaTextureObject_t,)): # <<<<<<<<<<<<<< * ptexObject = int(texObject) * ctexObject = ptexObject */ goto __pyx_L3; } /* "cuda/cudart.pyx":23305 * ctexObject = ptexObject * else: * ptexObject = int(cudaTextureObject_t(texObject)) # <<<<<<<<<<<<<< * ctexObject = ptexObject * cdef cudaResourceViewDesc pResViewDesc = cudaResourceViewDesc() */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaTextureObject_t), __pyx_v_texObject); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23305, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23305, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_ptexObject = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":23306 * else: * ptexObject = int(cudaTextureObject_t(texObject)) * ctexObject = ptexObject # <<<<<<<<<<<<<< * cdef cudaResourceViewDesc pResViewDesc = cudaResourceViewDesc() * err = ccudart.cudaGetTextureObjectResourceViewDesc(pResViewDesc._ptr, ctexObject) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_ptexObject); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23306, __pyx_L1_error) __pyx_v_ctexObject = ((cudaTextureObject_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":23307 * ptexObject = int(cudaTextureObject_t(texObject)) * ctexObject = ptexObject * cdef cudaResourceViewDesc pResViewDesc = cudaResourceViewDesc() # <<<<<<<<<<<<<< * err = ccudart.cudaGetTextureObjectResourceViewDesc(pResViewDesc._ptr, ctexObject) * return (cudaError_t(err), pResViewDesc) */ __pyx_t_4 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaResourceViewDesc)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23307, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_pResViewDesc = ((struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *)__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":23308 * ctexObject = ptexObject * cdef cudaResourceViewDesc pResViewDesc = cudaResourceViewDesc() * err = ccudart.cudaGetTextureObjectResourceViewDesc(pResViewDesc._ptr, ctexObject) # <<<<<<<<<<<<<< * return (cudaError_t(err), pResViewDesc) * */ __pyx_t_5 = __pyx_f_4cuda_7ccudart_cudaGetTextureObjectResourceViewDesc(((struct cudaResourceViewDesc *)__pyx_v_pResViewDesc->_ptr), __pyx_v_ctexObject); if (unlikely(__pyx_t_5 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 23308, __pyx_L1_error) __pyx_v_err = __pyx_t_5; /* "cuda/cudart.pyx":23309 * cdef cudaResourceViewDesc pResViewDesc = cudaResourceViewDesc() * err = ccudart.cudaGetTextureObjectResourceViewDesc(pResViewDesc._ptr, ctexObject) * return (cudaError_t(err), pResViewDesc) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23309, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 23309, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23309, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23309, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 23309, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pResViewDesc); __Pyx_GIVEREF((PyObject *)__pyx_v_pResViewDesc); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_pResViewDesc))) __PYX_ERR(0, 23309, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":23274 * return (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_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":23311 * return (cudaError_t(err), pResViewDesc) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaCreateSurfaceObject(pResDesc : Optional[cudaResourceDesc]): * """ Creates a surface object. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_353cudaCreateSurfaceObject(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_352cudaCreateSurfaceObject, "cudaCreateSurfaceObject(cudaResourceDesc pResDesc: Optional[cudaResourceDesc])\n Creates a surface object.\n\n Creates a surface object and returns it in `pSurfObject`. `pResDesc`\n describes 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\n CUDA array handle.\n\n Surface objects are only supported on devices of compute capability 3.0\n or higher. Additionally, a surface object is an opaque value, and, as\n such, should only be accessed through CUDA API calls.\n\n Parameters\n ----------\n pResDesc : :py:obj:`~.cudaResourceDesc`\n Resource descriptor\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidChannelDescriptor`, :py:obj:`~.cudaErrorInvalidResourceHandle`\n pSurfObject : :py:obj:`~.cudaSurfaceObject_t`\n Surface object to create\n\n See Also\n --------\n :py:obj:`~.cudaDestroySurfaceObject`, :py:obj:`~.cuSurfObjectCreate`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_353cudaCreateSurfaceObject = {"cudaCreateSurfaceObject", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_353cudaCreateSurfaceObject, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_352cudaCreateSurfaceObject}; static PyObject *__pyx_pw_4cuda_6cudart_353cudaCreateSurfaceObject(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pResDesc,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pResDesc)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23311, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaCreateSurfaceObject") < 0)) __PYX_ERR(0, 23311, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_pResDesc = ((struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *)values[0]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaCreateSurfaceObject", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 23311, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaResourceDesc, 1, "pResDesc", 0))) __PYX_ERR(0, 23312, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_352cudaCreateSurfaceObject(__pyx_self, __pyx_v_pResDesc); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_352cudaCreateSurfaceObject(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *__pyx_v_pResDesc) { struct __pyx_obj_4cuda_6cudart_cudaSurfaceObject_t *__pyx_v_pSurfObject = 0; struct cudaResourceDesc *__pyx_v_cpResDesc_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; struct cudaResourceDesc *__pyx_t_2; int __pyx_t_3; cudaError_t __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__527) __Pyx_RefNannySetupContext("cudaCreateSurfaceObject", 1); __Pyx_TraceCall("cudaCreateSurfaceObject", __pyx_f[0], 23311, 0, __PYX_ERR(0, 23311, __pyx_L1_error)); /* "cuda/cudart.pyx":23342 * :py:obj:`~.cudaDestroySurfaceObject`, :py:obj:`~.cuSurfObjectCreate` * """ * cdef cudaSurfaceObject_t pSurfObject = cudaSurfaceObject_t() # <<<<<<<<<<<<<< * cdef ccudart.cudaResourceDesc* cpResDesc_ptr = pResDesc._ptr if pResDesc != None else NULL * with nogil: */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaSurfaceObject_t)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23342, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_pSurfObject = ((struct __pyx_obj_4cuda_6cudart_cudaSurfaceObject_t *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":23343 * """ * cdef cudaSurfaceObject_t pSurfObject = cudaSurfaceObject_t() * cdef ccudart.cudaResourceDesc* cpResDesc_ptr = pResDesc._ptr if pResDesc != None else NULL # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaCreateSurfaceObject(pSurfObject._ptr, cpResDesc_ptr) */ __pyx_t_1 = PyObject_RichCompare(((PyObject *)__pyx_v_pResDesc), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23343, __pyx_L1_error) __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 23343, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_3) { __pyx_t_2 = __pyx_v_pResDesc->_ptr; } else { __pyx_t_2 = NULL; } __pyx_v_cpResDesc_ptr = __pyx_t_2; /* "cuda/cudart.pyx":23344 * cdef cudaSurfaceObject_t pSurfObject = cudaSurfaceObject_t() * cdef ccudart.cudaResourceDesc* cpResDesc_ptr = pResDesc._ptr if pResDesc != None else NULL * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaCreateSurfaceObject(pSurfObject._ptr, cpResDesc_ptr) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":23345 * cdef ccudart.cudaResourceDesc* cpResDesc_ptr = pResDesc._ptr if pResDesc != None else NULL * with nogil: * err = ccudart.cudaCreateSurfaceObject(pSurfObject._ptr, cpResDesc_ptr) # <<<<<<<<<<<<<< * * return (cudaError_t(err), pSurfObject) */ __pyx_t_4 = __pyx_f_4cuda_7ccudart_cudaCreateSurfaceObject(((cudaSurfaceObject_t *)__pyx_v_pSurfObject->_ptr), __pyx_v_cpResDesc_ptr); if (unlikely(__pyx_t_4 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 23345, __pyx_L4_error) __pyx_v_err = __pyx_t_4; } /* "cuda/cudart.pyx":23344 * cdef cudaSurfaceObject_t pSurfObject = cudaSurfaceObject_t() * cdef ccudart.cudaResourceDesc* cpResDesc_ptr = pResDesc._ptr if pResDesc != None else NULL * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaCreateSurfaceObject(pSurfObject._ptr, cpResDesc_ptr) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L5; } __pyx_L4_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L5:; } } /* "cuda/cudart.pyx":23347 * err = ccudart.cudaCreateSurfaceObject(pSurfObject._ptr, cpResDesc_ptr) * * return (cudaError_t(err), pSurfObject) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 23347, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 23347, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23347, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 23347, __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)) __PYX_ERR(0, 23347, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pSurfObject); __Pyx_GIVEREF((PyObject *)__pyx_v_pSurfObject); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_v_pSurfObject))) __PYX_ERR(0, 23347, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":23311 * return (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_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.cudaCreateSurfaceObject", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_pSurfObject); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":23349 * return (cudaError_t(err), pSurfObject) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDestroySurfaceObject(surfObject): * """ Destroys a surface object. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_355cudaDestroySurfaceObject(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_354cudaDestroySurfaceObject, "cudaDestroySurfaceObject(surfObject)\n Destroys a surface object.\n\n Destroys the surface object specified by `surfObject`.\n\n Parameters\n ----------\n surfObject : :py:obj:`~.cudaSurfaceObject_t`\n Surface object to destroy\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\n See Also\n --------\n :py:obj:`~.cudaCreateSurfaceObject`, :py:obj:`~.cuSurfObjectDestroy`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_355cudaDestroySurfaceObject = {"cudaDestroySurfaceObject", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_355cudaDestroySurfaceObject, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_354cudaDestroySurfaceObject}; static PyObject *__pyx_pw_4cuda_6cudart_355cudaDestroySurfaceObject(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_surfObject,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_surfObject)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23349, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaDestroySurfaceObject") < 0)) __PYX_ERR(0, 23349, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_surfObject = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaDestroySurfaceObject", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 23349, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaDestroySurfaceObject", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_354cudaDestroySurfaceObject(__pyx_self, __pyx_v_surfObject); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_354cudaDestroySurfaceObject(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_surfObject) { cudaSurfaceObject_t __pyx_v_csurfObject; PyObject *__pyx_v_psurfObject = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; cudaError_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__528) __Pyx_RefNannySetupContext("cudaDestroySurfaceObject", 1); __Pyx_TraceCall("cudaDestroySurfaceObject", __pyx_f[0], 23349, 0, __PYX_ERR(0, 23349, __pyx_L1_error)); /* "cuda/cudart.pyx":23370 * """ * cdef ccudart.cudaSurfaceObject_t csurfObject * if surfObject is None: # <<<<<<<<<<<<<< * csurfObject = 0 * elif isinstance(surfObject, (cudaSurfaceObject_t,)): */ __pyx_t_1 = (__pyx_v_surfObject == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":23371 * cdef ccudart.cudaSurfaceObject_t csurfObject * if surfObject is None: * csurfObject = 0 # <<<<<<<<<<<<<< * elif isinstance(surfObject, (cudaSurfaceObject_t,)): * psurfObject = int(surfObject) */ __pyx_v_csurfObject = ((cudaSurfaceObject_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":23370 * """ * cdef ccudart.cudaSurfaceObject_t csurfObject * if surfObject is None: # <<<<<<<<<<<<<< * csurfObject = 0 * elif isinstance(surfObject, (cudaSurfaceObject_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":23372 * if surfObject is None: * csurfObject = 0 * elif isinstance(surfObject, (cudaSurfaceObject_t,)): # <<<<<<<<<<<<<< * psurfObject = int(surfObject) * csurfObject = psurfObject */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_surfObject, __pyx_ptype_4cuda_6cudart_cudaSurfaceObject_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":23373 * csurfObject = 0 * elif isinstance(surfObject, (cudaSurfaceObject_t,)): * psurfObject = int(surfObject) # <<<<<<<<<<<<<< * csurfObject = psurfObject * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_surfObject); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23373, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_psurfObject = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":23374 * elif isinstance(surfObject, (cudaSurfaceObject_t,)): * psurfObject = int(surfObject) * csurfObject = psurfObject # <<<<<<<<<<<<<< * else: * psurfObject = int(cudaSurfaceObject_t(surfObject)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_psurfObject); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23374, __pyx_L1_error) __pyx_v_csurfObject = ((cudaSurfaceObject_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":23372 * if surfObject is None: * csurfObject = 0 * elif isinstance(surfObject, (cudaSurfaceObject_t,)): # <<<<<<<<<<<<<< * psurfObject = int(surfObject) * csurfObject = psurfObject */ goto __pyx_L3; } /* "cuda/cudart.pyx":23376 * csurfObject = psurfObject * else: * psurfObject = int(cudaSurfaceObject_t(surfObject)) # <<<<<<<<<<<<<< * csurfObject = psurfObject * with nogil: */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaSurfaceObject_t), __pyx_v_surfObject); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23376, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23376, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_psurfObject = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":23377 * else: * psurfObject = int(cudaSurfaceObject_t(surfObject)) * csurfObject = psurfObject # <<<<<<<<<<<<<< * with nogil: * err = ccudart.cudaDestroySurfaceObject(csurfObject) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_psurfObject); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23377, __pyx_L1_error) __pyx_v_csurfObject = ((cudaSurfaceObject_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":23378 * psurfObject = int(cudaSurfaceObject_t(surfObject)) * csurfObject = psurfObject * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaDestroySurfaceObject(csurfObject) * */ { #ifdef WITH_THREAD PyThreadState *_save; _save = NULL; Py_UNBLOCK_THREADS __Pyx_FastGIL_Remember(); #endif /*try:*/ { /* "cuda/cudart.pyx":23379 * csurfObject = psurfObject * with nogil: * err = ccudart.cudaDestroySurfaceObject(csurfObject) # <<<<<<<<<<<<<< * * return (cudaError_t(err),) */ __pyx_t_5 = __pyx_f_4cuda_7ccudart_cudaDestroySurfaceObject(__pyx_v_csurfObject); if (unlikely(__pyx_t_5 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 23379, __pyx_L5_error) __pyx_v_err = __pyx_t_5; } /* "cuda/cudart.pyx":23378 * psurfObject = int(cudaSurfaceObject_t(surfObject)) * csurfObject = psurfObject * with nogil: # <<<<<<<<<<<<<< * err = ccudart.cudaDestroySurfaceObject(csurfObject) * */ /*finally:*/ { /*normal exit:*/{ #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L6; } __pyx_L5_error: { #ifdef WITH_THREAD __Pyx_FastGIL_Forget(); Py_BLOCK_THREADS #endif goto __pyx_L1_error; } __pyx_L6:; } } /* "cuda/cudart.pyx":23381 * err = ccudart.cudaDestroySurfaceObject(csurfObject) * * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23381, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 23381, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23381, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23381, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 23381, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":23349 * return (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_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.cudaDestroySurfaceObject", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_psurfObject); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":23383 * return (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_6cudart_357cudaGetSurfaceObjectResourceDesc(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_356cudaGetSurfaceObjectResourceDesc, "cudaGetSurfaceObjectResourceDesc(surfObject)\n Returns a surface object's resource descriptor Returns the resource descriptor for the surface object specified by `surfObject`.\n\n Parameters\n ----------\n surfObject : :py:obj:`~.cudaSurfaceObject_t`\n Surface object\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n pResDesc : :py:obj:`~.cudaResourceDesc`\n Resource descriptor\n\n See Also\n --------\n :py:obj:`~.cudaCreateSurfaceObject`, :py:obj:`~.cuSurfObjectGetResourceDesc`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_357cudaGetSurfaceObjectResourceDesc = {"cudaGetSurfaceObjectResourceDesc", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_357cudaGetSurfaceObjectResourceDesc, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_356cudaGetSurfaceObjectResourceDesc}; static PyObject *__pyx_pw_4cuda_6cudart_357cudaGetSurfaceObjectResourceDesc(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_surfObject,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_surfObject)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23383, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGetSurfaceObjectResourceDesc") < 0)) __PYX_ERR(0, 23383, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_surfObject = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGetSurfaceObjectResourceDesc", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 23383, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGetSurfaceObjectResourceDesc", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_356cudaGetSurfaceObjectResourceDesc(__pyx_self, __pyx_v_surfObject); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_356cudaGetSurfaceObjectResourceDesc(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_surfObject) { cudaSurfaceObject_t __pyx_v_csurfObject; PyObject *__pyx_v_psurfObject = NULL; struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *__pyx_v_pResDesc = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; cudaError_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__529) __Pyx_RefNannySetupContext("cudaGetSurfaceObjectResourceDesc", 1); __Pyx_TraceCall("cudaGetSurfaceObjectResourceDesc", __pyx_f[0], 23383, 0, __PYX_ERR(0, 23383, __pyx_L1_error)); /* "cuda/cudart.pyx":23404 * """ * cdef ccudart.cudaSurfaceObject_t csurfObject * if surfObject is None: # <<<<<<<<<<<<<< * csurfObject = 0 * elif isinstance(surfObject, (cudaSurfaceObject_t,)): */ __pyx_t_1 = (__pyx_v_surfObject == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":23405 * cdef ccudart.cudaSurfaceObject_t csurfObject * if surfObject is None: * csurfObject = 0 # <<<<<<<<<<<<<< * elif isinstance(surfObject, (cudaSurfaceObject_t,)): * psurfObject = int(surfObject) */ __pyx_v_csurfObject = ((cudaSurfaceObject_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":23404 * """ * cdef ccudart.cudaSurfaceObject_t csurfObject * if surfObject is None: # <<<<<<<<<<<<<< * csurfObject = 0 * elif isinstance(surfObject, (cudaSurfaceObject_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":23406 * if surfObject is None: * csurfObject = 0 * elif isinstance(surfObject, (cudaSurfaceObject_t,)): # <<<<<<<<<<<<<< * psurfObject = int(surfObject) * csurfObject = psurfObject */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_surfObject, __pyx_ptype_4cuda_6cudart_cudaSurfaceObject_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":23407 * csurfObject = 0 * elif isinstance(surfObject, (cudaSurfaceObject_t,)): * psurfObject = int(surfObject) # <<<<<<<<<<<<<< * csurfObject = psurfObject * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_surfObject); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23407, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_psurfObject = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":23408 * elif isinstance(surfObject, (cudaSurfaceObject_t,)): * psurfObject = int(surfObject) * csurfObject = psurfObject # <<<<<<<<<<<<<< * else: * psurfObject = int(cudaSurfaceObject_t(surfObject)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_psurfObject); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23408, __pyx_L1_error) __pyx_v_csurfObject = ((cudaSurfaceObject_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":23406 * if surfObject is None: * csurfObject = 0 * elif isinstance(surfObject, (cudaSurfaceObject_t,)): # <<<<<<<<<<<<<< * psurfObject = int(surfObject) * csurfObject = psurfObject */ goto __pyx_L3; } /* "cuda/cudart.pyx":23410 * csurfObject = psurfObject * else: * psurfObject = int(cudaSurfaceObject_t(surfObject)) # <<<<<<<<<<<<<< * csurfObject = psurfObject * cdef cudaResourceDesc pResDesc = cudaResourceDesc() */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaSurfaceObject_t), __pyx_v_surfObject); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23410, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23410, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_psurfObject = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":23411 * else: * psurfObject = int(cudaSurfaceObject_t(surfObject)) * csurfObject = psurfObject # <<<<<<<<<<<<<< * cdef cudaResourceDesc pResDesc = cudaResourceDesc() * err = ccudart.cudaGetSurfaceObjectResourceDesc(pResDesc._ptr, csurfObject) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_psurfObject); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23411, __pyx_L1_error) __pyx_v_csurfObject = ((cudaSurfaceObject_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":23412 * psurfObject = int(cudaSurfaceObject_t(surfObject)) * csurfObject = psurfObject * cdef cudaResourceDesc pResDesc = cudaResourceDesc() # <<<<<<<<<<<<<< * err = ccudart.cudaGetSurfaceObjectResourceDesc(pResDesc._ptr, csurfObject) * return (cudaError_t(err), pResDesc) */ __pyx_t_4 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaResourceDesc)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23412, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_pResDesc = ((struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *)__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":23413 * csurfObject = psurfObject * cdef cudaResourceDesc pResDesc = cudaResourceDesc() * err = ccudart.cudaGetSurfaceObjectResourceDesc(pResDesc._ptr, csurfObject) # <<<<<<<<<<<<<< * return (cudaError_t(err), pResDesc) * */ __pyx_t_5 = __pyx_f_4cuda_7ccudart_cudaGetSurfaceObjectResourceDesc(((struct cudaResourceDesc *)__pyx_v_pResDesc->_ptr), __pyx_v_csurfObject); if (unlikely(__pyx_t_5 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 23413, __pyx_L1_error) __pyx_v_err = __pyx_t_5; /* "cuda/cudart.pyx":23414 * cdef cudaResourceDesc pResDesc = cudaResourceDesc() * err = ccudart.cudaGetSurfaceObjectResourceDesc(pResDesc._ptr, csurfObject) * return (cudaError_t(err), pResDesc) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23414, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 23414, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23414, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23414, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 23414, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pResDesc); __Pyx_GIVEREF((PyObject *)__pyx_v_pResDesc); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_pResDesc))) __PYX_ERR(0, 23414, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":23383 * return (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_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":23416 * return (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_6cudart_359cudaDriverGetVersion(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_358cudaDriverGetVersion, "cudaDriverGetVersion()\n Returns the latest version of CUDA supported by the driver.\n\n Returns in `*driverVersion` the latest version of CUDA supported by the\n driver. The version is returned as (1000 * major + 10 * minor). For\n example, CUDA 9.2 would be represented by 9020. If no driver is\n installed, then 0 is returned as the driver version.\n\n This function automatically returns :py:obj:`~.cudaErrorInvalidValue`\n if `driverVersion` is NULL.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n driverVersion : int\n Returns the CUDA driver version.\n\n See Also\n --------\n :py:obj:`~.cudaRuntimeGetVersion`, :py:obj:`~.cuDriverGetVersion`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_359cudaDriverGetVersion = {"cudaDriverGetVersion", (PyCFunction)__pyx_pw_4cuda_6cudart_359cudaDriverGetVersion, METH_NOARGS, __pyx_doc_4cuda_6cudart_358cudaDriverGetVersion}; static PyObject *__pyx_pw_4cuda_6cudart_359cudaDriverGetVersion(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_6cudart_358cudaDriverGetVersion(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_358cudaDriverGetVersion(CYTHON_UNUSED PyObject *__pyx_self) { int __pyx_v_driverVersion; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__530) __Pyx_RefNannySetupContext("cudaDriverGetVersion", 1); __Pyx_TraceCall("cudaDriverGetVersion", __pyx_f[0], 23416, 0, __PYX_ERR(0, 23416, __pyx_L1_error)); /* "cuda/cudart.pyx":23439 * :py:obj:`~.cudaRuntimeGetVersion`, :py:obj:`~.cuDriverGetVersion` * """ * cdef int driverVersion = 0 # <<<<<<<<<<<<<< * err = ccudart.cudaDriverGetVersion(&driverVersion) * return (cudaError_t(err), driverVersion) */ __pyx_v_driverVersion = 0; /* "cuda/cudart.pyx":23440 * """ * cdef int driverVersion = 0 * err = ccudart.cudaDriverGetVersion(&driverVersion) # <<<<<<<<<<<<<< * return (cudaError_t(err), driverVersion) * */ __pyx_t_1 = __pyx_f_4cuda_7ccudart_cudaDriverGetVersion((&__pyx_v_driverVersion)); if (unlikely(__pyx_t_1 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 23440, __pyx_L1_error) __pyx_v_err = __pyx_t_1; /* "cuda/cudart.pyx":23441 * cdef int driverVersion = 0 * err = ccudart.cudaDriverGetVersion(&driverVersion) * return (cudaError_t(err), driverVersion) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23441, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23441, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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(0, 23441, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_driverVersion); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23441, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23441, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 23441, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3)) __PYX_ERR(0, 23441, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_3 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":23416 * return (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_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaDriverGetVersion", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":23443 * return (cudaError_t(err), driverVersion) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaRuntimeGetVersion(): * """ Returns the CUDA Runtime version. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_361cudaRuntimeGetVersion(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_360cudaRuntimeGetVersion, "cudaRuntimeGetVersion()\n Returns the CUDA Runtime version.\n\n Returns in `*runtimeVersion` the version number of the current CUDA\n Runtime instance. The version is returned as (1000 * major + 10 *\n minor). For example, CUDA 9.2 would be represented by 9020.\n\n As of CUDA 12.0, this function no longer initializes CUDA. The purpose\n of this API is solely to return a compile-time constant stating the\n CUDA Toolkit version in the above format.\n\n This function automatically returns :py:obj:`~.cudaErrorInvalidValue`\n if the `runtimeVersion` argument is NULL.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n runtimeVersion : int\n Returns the CUDA Runtime version.\n\n See Also\n --------\n :py:obj:`~.cudaDriverGetVersion`, :py:obj:`~.cuDriverGetVersion`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_361cudaRuntimeGetVersion = {"cudaRuntimeGetVersion", (PyCFunction)__pyx_pw_4cuda_6cudart_361cudaRuntimeGetVersion, METH_NOARGS, __pyx_doc_4cuda_6cudart_360cudaRuntimeGetVersion}; static PyObject *__pyx_pw_4cuda_6cudart_361cudaRuntimeGetVersion(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_6cudart_360cudaRuntimeGetVersion(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_360cudaRuntimeGetVersion(CYTHON_UNUSED PyObject *__pyx_self) { int __pyx_v_runtimeVersion; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__531) __Pyx_RefNannySetupContext("cudaRuntimeGetVersion", 1); __Pyx_TraceCall("cudaRuntimeGetVersion", __pyx_f[0], 23443, 0, __PYX_ERR(0, 23443, __pyx_L1_error)); /* "cuda/cudart.pyx":23469 * :py:obj:`~.cudaDriverGetVersion`, :py:obj:`~.cuDriverGetVersion` * """ * cdef int runtimeVersion = 0 # <<<<<<<<<<<<<< * err = ccudart.cudaRuntimeGetVersion(&runtimeVersion) * return (cudaError_t(err), runtimeVersion) */ __pyx_v_runtimeVersion = 0; /* "cuda/cudart.pyx":23470 * """ * cdef int runtimeVersion = 0 * err = ccudart.cudaRuntimeGetVersion(&runtimeVersion) # <<<<<<<<<<<<<< * return (cudaError_t(err), runtimeVersion) * */ __pyx_t_1 = __pyx_f_4cuda_7ccudart_cudaRuntimeGetVersion((&__pyx_v_runtimeVersion)); if (unlikely(__pyx_t_1 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 23470, __pyx_L1_error) __pyx_v_err = __pyx_t_1; /* "cuda/cudart.pyx":23471 * cdef int runtimeVersion = 0 * err = ccudart.cudaRuntimeGetVersion(&runtimeVersion) * return (cudaError_t(err), runtimeVersion) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23471, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23471, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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(0, 23471, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_runtimeVersion); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23471, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23471, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 23471, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3)) __PYX_ERR(0, 23471, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_3 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":23443 * return (cudaError_t(err), driverVersion) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaRuntimeGetVersion(): * """ Returns the CUDA Runtime version. */ /* 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.cudart.cudaRuntimeGetVersion", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":23473 * return (cudaError_t(err), runtimeVersion) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphCreate(unsigned int flags): * """ Creates a graph. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_363cudaGraphCreate(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_362cudaGraphCreate, "cudaGraphCreate(unsigned int flags)\n Creates a graph.\n\n Creates an empty graph, which is returned via `pGraph`.\n\n Parameters\n ----------\n flags : unsigned int\n Graph creation flags, must be 0\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorMemoryAllocation`\n pGraph : :py:obj:`~.cudaGraph_t`\n Returns newly created graph\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_363cudaGraphCreate = {"cudaGraphCreate", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_363cudaGraphCreate, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_362cudaGraphCreate}; static PyObject *__pyx_pw_4cuda_6cudart_363cudaGraphCreate(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23473, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphCreate") < 0)) __PYX_ERR(0, 23473, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[0]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 23474, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphCreate", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 23473, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphCreate", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_362cudaGraphCreate(__pyx_self, __pyx_v_flags); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_362cudaGraphCreate(CYTHON_UNUSED PyObject *__pyx_self, unsigned int __pyx_v_flags) { struct __pyx_obj_4cuda_6cudart_cudaGraph_t *__pyx_v_pGraph = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; cudaError_t __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__532) __Pyx_RefNannySetupContext("cudaGraphCreate", 1); __Pyx_TraceCall("cudaGraphCreate", __pyx_f[0], 23473, 0, __PYX_ERR(0, 23473, __pyx_L1_error)); /* "cuda/cudart.pyx":23495 * :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() # <<<<<<<<<<<<<< * err = ccudart.cudaGraphCreate(pGraph._ptr, flags) * return (cudaError_t(err), pGraph) */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23495, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_pGraph = ((struct __pyx_obj_4cuda_6cudart_cudaGraph_t *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":23496 * """ * cdef cudaGraph_t pGraph = cudaGraph_t() * err = ccudart.cudaGraphCreate(pGraph._ptr, flags) # <<<<<<<<<<<<<< * return (cudaError_t(err), pGraph) * */ __pyx_t_2 = __pyx_f_4cuda_7ccudart_cudaGraphCreate(((cudaGraph_t *)__pyx_v_pGraph->__pyx_base._ptr), __pyx_v_flags); if (unlikely(__pyx_t_2 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 23496, __pyx_L1_error) __pyx_v_err = __pyx_t_2; /* "cuda/cudart.pyx":23497 * cdef cudaGraph_t pGraph = cudaGraph_t() * err = ccudart.cudaGraphCreate(pGraph._ptr, flags) * return (cudaError_t(err), pGraph) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23497, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23497, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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, 23497, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23497, __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)) __PYX_ERR(0, 23497, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pGraph); __Pyx_GIVEREF((PyObject *)__pyx_v_pGraph); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_v_pGraph))) __PYX_ERR(0, 23497, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":23473 * return (cudaError_t(err), runtimeVersion) * * @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_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaGraphCreate", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_pGraph); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":23499 * return (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_6cudart_365cudaGraphAddKernelNode(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_364cudaGraphAddKernelNode, "cudaGraphAddKernelNode(graph, pDependencies: Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], size_t numDependencies, cudaKernelNodeParams pNodeParams: Optional[cudaKernelNodeParams])\n Creates a kernel execution node and adds it to a graph.\n\n Creates a new kernel execution node and adds it to `graph` with\n `numDependencies` dependencies specified via `pDependencies` and\n arguments specified in `pNodeParams`. It is possible for\n `numDependencies` to be 0, in which case the node will be placed at the\n root of the graph. `pDependencies` may not have any duplicate entries.\n A handle to the new node will be returned in `pGraphNode`.\n\n The :py:obj:`~.cudaKernelNodeParams` structure is defined as:\n\n **View CUDA Toolkit Documentation for a C++ code example**\n\n When 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\n contains (`blockDim.x` x `blockDim.y` x `blockDim.z`) threads.\n\n `sharedMem` sets the amount of dynamic shared memory that will be\n available to each thread block.\n\n Kernel parameters to `func` can be specified in one of two ways:\n\n 1) Kernel parameters can be specified via `kernelParams`. If the kernel\n has N parameters, then `kernelParams` needs to be an array of N\n pointers. Each pointer, from `kernelParams`[0] to `kernelParams`[N-1],\n points to the region of memory from which the actual parameter will be\n copied. The number of kernel parameters and their offsets and sizes do\n not need to be specified as that information is retrieved directly from\n the kernel's image.\n\n 2) Kernel parameters can also be packaged by the application into a\n single buffer that is passed in via `extra`. This places the burden on\n the application of knowing each kernel parameter's size and\n alignment/padding within the buffer. The `extra` parameter exists to\n allow this function to"" take additional less commonly used arguments.\n `extra` specifies a list of names of extra settings and their\n corresponding values. Each extra setting name is immediately followed\n by the corresponding value. The list must be terminated with either\n NULL 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\n The error :py:obj:`~.cudaErrorInvalidValue` will be returned if kernel\n parameters are specified with both `kernelParams` and `extra` (i.e.\n both `kernelParams` and `extra` are non-NULL).\n\n The `kernelParams` or `extra` array, as well as the argument values it\n points to, are copied during this call.\n\n Parameters\n ----------\n graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n Graph to which to add the node\n pDependencies : List[:py:obj:`~.cudaGraphNode_t`]\n Dependencies of the node\n numDependencies : size_t\n Number of dependencies\n pNodeParams : :py:obj:`~.cudaKernelNodeParams`\n Parameters for the GPU execution node\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidDeviceFunction`\n pGraphNode : :py:obj:`~.cudaGraphNode_t`\n Returns newly created node\n\n See 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\n Notes\n -----\n 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.\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_365cudaGraphAddKernelNode = {"cudaGraphAddKernelNode", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_365cudaGraphAddKernelNode, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_364cudaGraphAddKernelNode}; static PyObject *__pyx_pw_4cuda_6cudart_365cudaGraphAddKernelNode(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_graph_2,&__pyx_n_s_pDependencies,&__pyx_n_s_numDependencies,&__pyx_n_s_pNodeParams,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_graph_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23499, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pDependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23499, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddKernelNode", 1, 4, 4, 1); __PYX_ERR(0, 23499, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_numDependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23499, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddKernelNode", 1, 4, 4, 2); __PYX_ERR(0, 23499, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pNodeParams)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23499, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddKernelNode", 1, 4, 4, 3); __PYX_ERR(0, 23499, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphAddKernelNode") < 0)) __PYX_ERR(0, 23499, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); } __pyx_v_graph = values[0]; __pyx_v_pDependencies = values[1]; __pyx_v_numDependencies = __Pyx_PyInt_As_size_t(values[2]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 23500, __pyx_L3_error) __pyx_v_pNodeParams = ((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *)values[3]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphAddKernelNode", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 23499, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaKernelNodeParams, 1, "pNodeParams", 0))) __PYX_ERR(0, 23500, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_364cudaGraphAddKernelNode(__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; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_22cudaGraphAddKernelNode_2generator12(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":23587 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ static PyObject *__pyx_pf_4cuda_6cudart_22cudaGraphAddKernelNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct_12_genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_12_genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_12_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_12_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 23587, __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_6cudart_22cudaGraphAddKernelNode_2generator12, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaGraphAddKernelNode_locals_ge, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 23587, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.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_6cudart_22cudaGraphAddKernelNode_2generator12(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_12_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_12_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 23587, 0, __PYX_ERR(0, 23587, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 23587, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 23587, __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, 23587, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23587, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 23587, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 23587, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23587, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 23587, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 23587, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23587, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 23587, __pyx_L1_error) } 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_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":23499 * return (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_6cudart_364cudaGraphAddKernelNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_pDependencies, size_t __pyx_v_numDependencies, struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *__pyx_v_pNodeParams) { cudaGraph_t __pyx_v_cgraph; PyObject *__pyx_v_pgraph = NULL; struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *__pyx_v_pGraphNode = 0; cudaGraphNode_t *__pyx_v_cpDependencies; Py_ssize_t __pyx_v_idx; struct cudaKernelNodeParams *__pyx_v_cpNodeParams_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_gb_4cuda_6cudart_22cudaGraphAddKernelNode_2generator12 = 0; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; Py_ssize_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; Py_ssize_t __pyx_t_8; Py_ssize_t __pyx_t_9; struct cudaKernelNodeParams *__pyx_t_10; cudaGraphNode_t *__pyx_t_11; cudaError_t __pyx_t_12; PyObject *__pyx_t_13 = NULL; unsigned int __pyx_t_14; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__533) __Pyx_RefNannySetupContext("cudaGraphAddKernelNode", 0); __Pyx_TraceCall("cudaGraphAddKernelNode", __pyx_f[0], 23499, 0, __PYX_ERR(0, 23499, __pyx_L1_error)); __Pyx_INCREF(__pyx_v_pDependencies); /* "cuda/cudart.pyx":23586 * 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,cuda.CUgraphNode)) for _x in pDependencies): * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.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, 23586, __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/cudart.pyx":23587 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ __pyx_t_1 = __pyx_pf_4cuda_6cudart_22cudaGraphAddKernelNode_genexpr(NULL, __pyx_v_pDependencies); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23587, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23587, __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, 23587, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_4 = (!__pyx_t_2); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":23588 * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") # <<<<<<<<<<<<<< * cdef ccudart.cudaGraph_t cgraph * if graph is None: */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__534, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23588, __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, 23588, __pyx_L1_error) /* "cuda/cudart.pyx":23587 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ } /* "cuda/cudart.pyx":23590 * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_4 = (__pyx_v_graph == Py_None); if (__pyx_t_4) { /* "cuda/cudart.pyx":23591 * cdef ccudart.cudaGraph_t cgraph * if graph is None: * cgraph = 0 # <<<<<<<<<<<<<< * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) */ __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":23590 * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L4; } /* "cuda/cudart.pyx":23592 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_4 = __pyx_t_2; __pyx_L5_bool_binop_done:; if (__pyx_t_4) { /* "cuda/cudart.pyx":23593 * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) # <<<<<<<<<<<<<< * cgraph = pgraph * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23593, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pgraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":23594 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) * cgraph = pgraph # <<<<<<<<<<<<<< * else: * pgraph = int(cudaGraph_t(graph)) */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23594, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); /* "cuda/cudart.pyx":23592 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ goto __pyx_L4; } /* "cuda/cudart.pyx":23596 * cgraph = pgraph * else: * pgraph = int(cudaGraph_t(graph)) # <<<<<<<<<<<<<< * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23596, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23596, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pgraph = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":23597 * else: * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph # <<<<<<<<<<<<<< * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23597, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); } __pyx_L4:; /* "cuda/cudart.pyx":23598 * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23598, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_pGraphNode = ((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":23599 * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL # <<<<<<<<<<<<<< * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) */ __pyx_v_cpDependencies = NULL; /* "cuda/cudart.pyx":23600 * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: # <<<<<<<<<<<<<< * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23600, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 > 0); if (__pyx_t_4) { /* "cuda/cudart.pyx":23601 * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) # <<<<<<<<<<<<<< * if cpDependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23601, __pyx_L1_error) __pyx_v_cpDependencies = ((cudaGraphNode_t *)calloc(__pyx_t_6, (sizeof(cudaGraphNode_t)))); /* "cuda/cudart.pyx":23602 * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ __pyx_t_4 = (__pyx_v_cpDependencies == NULL); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":23603 * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) # <<<<<<<<<<<<<< * else: * for idx in range(len(pDependencies)): */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23603, __pyx_L1_error) __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23603, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23603, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23603, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_n_u_x_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23603, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23603, __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, 23603, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23603, __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 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 23603, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_7, 0, 0, 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __PYX_ERR(0, 23603, __pyx_L1_error) /* "cuda/cudart.pyx":23602 * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ } /* "cuda/cudart.pyx":23605 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: * for idx in range(len(pDependencies)): # <<<<<<<<<<<<<< * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) */ /*else*/ { __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23605, __pyx_L1_error) __pyx_t_8 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_idx = __pyx_t_9; /* "cuda/cudart.pyx":23606 * else: * for idx in range(len(pDependencies)): * cpDependencies[idx] = (pDependencies[idx])._ptr[0] # <<<<<<<<<<<<<< * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * cdef ccudart.cudaKernelNodeParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL */ __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_pDependencies, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 23606, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); (__pyx_v_cpDependencies[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_7)->__pyx_base._ptr[0])); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } /* "cuda/cudart.pyx":23600 * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: # <<<<<<<<<<<<<< * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: */ } /* "cuda/cudart.pyx":23607 * for idx in range(len(pDependencies)): * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) # <<<<<<<<<<<<<< * cdef ccudart.cudaKernelNodeParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL * err = ccudart.cudaGraphAddKernelNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cpNodeParams_ptr) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23607, __pyx_L1_error) __pyx_t_4 = (__pyx_v_numDependencies > ((size_t)__pyx_t_6)); if (unlikely(__pyx_t_4)) { __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23607, __pyx_L1_error) __pyx_t_7 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 23607, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23607, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_List_is_too_small, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 23607, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_7, __pyx_kp_u__400); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23607, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyInt_FromSize_t(__pyx_v_numDependencies); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 23607, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23607, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 23607, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23607, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 23607, __pyx_L1_error) } /* "cuda/cudart.pyx":23608 * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * cdef ccudart.cudaKernelNodeParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaGraphAddKernelNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cpNodeParams_ptr) * if cpDependencies is not NULL: */ __pyx_t_3 = PyObject_RichCompare(((PyObject *)__pyx_v_pNodeParams), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23608, __pyx_L1_error) __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 23608, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_4) { __pyx_t_10 = __pyx_v_pNodeParams->_ptr; } else { __pyx_t_10 = NULL; } __pyx_v_cpNodeParams_ptr = __pyx_t_10; /* "cuda/cudart.pyx":23609 * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * cdef ccudart.cudaKernelNodeParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL * err = ccudart.cudaGraphAddKernelNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cpNodeParams_ptr) # <<<<<<<<<<<<<< * if cpDependencies is not NULL: * free(cpDependencies) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23609, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 == 1); if (__pyx_t_4) { __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_pDependencies, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23609, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_11 = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_3)->__pyx_base._ptr); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_11 = __pyx_v_cpDependencies; } __pyx_t_12 = __pyx_f_4cuda_7ccudart_cudaGraphAddKernelNode(((cudaGraphNode_t *)__pyx_v_pGraphNode->__pyx_base._ptr), __pyx_v_cgraph, __pyx_t_11, __pyx_v_numDependencies, __pyx_v_cpNodeParams_ptr); if (unlikely(__pyx_t_12 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 23609, __pyx_L1_error) __pyx_v_err = __pyx_t_12; /* "cuda/cudart.pyx":23610 * cdef ccudart.cudaKernelNodeParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL * err = ccudart.cudaGraphAddKernelNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cpNodeParams_ptr) * if cpDependencies is not NULL: # <<<<<<<<<<<<<< * free(cpDependencies) * return (cudaError_t(err), pGraphNode) */ __pyx_t_4 = (__pyx_v_cpDependencies != NULL); if (__pyx_t_4) { /* "cuda/cudart.pyx":23611 * err = ccudart.cudaGraphAddKernelNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cpNodeParams_ptr) * if cpDependencies is not NULL: * free(cpDependencies) # <<<<<<<<<<<<<< * return (cudaError_t(err), pGraphNode) * */ free(__pyx_v_cpDependencies); /* "cuda/cudart.pyx":23610 * cdef ccudart.cudaKernelNodeParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL * err = ccudart.cudaGraphAddKernelNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cpNodeParams_ptr) * if cpDependencies is not NULL: # <<<<<<<<<<<<<< * free(cpDependencies) * return (cudaError_t(err), pGraphNode) */ } /* "cuda/cudart.pyx":23612 * if cpDependencies is not NULL: * free(cpDependencies) * return (cudaError_t(err), pGraphNode) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 23612, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23612, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_13 = NULL; __pyx_t_14 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_13)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_13); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_14 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_t_1}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_14, 1+__pyx_t_14); __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23612, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 23612, __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)) __PYX_ERR(0, 23612, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pGraphNode); __Pyx_GIVEREF((PyObject *)__pyx_v_pGraphNode); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_pGraphNode))) __PYX_ERR(0, 23612, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":23499 * return (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_7); __Pyx_XDECREF(__pyx_t_13); __Pyx_AddTraceback("cuda.cudart.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_6cudart_22cudaGraphAddKernelNode_2generator12); __Pyx_XDECREF(__pyx_v_pDependencies); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":23614 * return (cudaError_t(err), pGraphNode) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphKernelNodeGetParams(node): * """ Returns a kernel node's parameters. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_367cudaGraphKernelNodeGetParams(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_366cudaGraphKernelNodeGetParams, "cudaGraphKernelNodeGetParams(node)\n Returns a kernel node's parameters.\n\n Returns the parameters of kernel node `node` in `pNodeParams`. The\n `kernelParams` or `extra` array returned in `pNodeParams`, as well as\n the argument values it points to, are owned by the node. This memory\n remains valid until the node is destroyed or its parameters are\n modified, and should not be modified directly. Use\n :py:obj:`~.cudaGraphKernelNodeSetParams` to update the parameters of\n this node.\n\n The params will contain either `kernelParams` or `extra`, according to\n which of these was most recently set on the node.\n\n Parameters\n ----------\n node : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Node to get the parameters for\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidDeviceFunction`\n pNodeParams : :py:obj:`~.cudaKernelNodeParams`\n Pointer to return the parameters\n\n See Also\n --------\n :py:obj:`~.cudaLaunchKernel`, :py:obj:`~.cudaGraphAddKernelNode`, :py:obj:`~.cudaGraphKernelNodeSetParams`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_367cudaGraphKernelNodeGetParams = {"cudaGraphKernelNodeGetParams", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_367cudaGraphKernelNodeGetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_366cudaGraphKernelNodeGetParams}; static PyObject *__pyx_pw_4cuda_6cudart_367cudaGraphKernelNodeGetParams(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_node_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_node_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23614, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphKernelNodeGetParams") < 0)) __PYX_ERR(0, 23614, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_node = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphKernelNodeGetParams", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 23614, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphKernelNodeGetParams", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_366cudaGraphKernelNodeGetParams(__pyx_self, __pyx_v_node); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_366cudaGraphKernelNodeGetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node) { cudaGraphNode_t __pyx_v_cnode; PyObject *__pyx_v_pnode = NULL; struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *__pyx_v_pNodeParams = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__535) __Pyx_RefNannySetupContext("cudaGraphKernelNodeGetParams", 1); __Pyx_TraceCall("cudaGraphKernelNodeGetParams", __pyx_f[0], 23614, 0, __PYX_ERR(0, 23614, __pyx_L1_error)); /* "cuda/cudart.pyx":23646 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_node == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":23647 * cdef ccudart.cudaGraphNode_t cnode * if node is None: * cnode = 0 # <<<<<<<<<<<<<< * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) */ __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":23646 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":23648 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":23649 * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) # <<<<<<<<<<<<<< * cnode = pnode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pnode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":23650 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) * cnode = pnode # <<<<<<<<<<<<<< * else: * pnode = int(cudaGraphNode_t(node)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23650, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":23648 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ goto __pyx_L3; } /* "cuda/cudart.pyx":23652 * cnode = pnode * else: * pnode = int(cudaGraphNode_t(node)) # <<<<<<<<<<<<<< * cnode = pnode * cdef cudaKernelNodeParams pNodeParams = cudaKernelNodeParams() */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23652, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 23652, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pnode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":23653 * else: * pnode = int(cudaGraphNode_t(node)) * cnode = pnode # <<<<<<<<<<<<<< * cdef cudaKernelNodeParams pNodeParams = cudaKernelNodeParams() * err = ccudart.cudaGraphKernelNodeGetParams(cnode, pNodeParams._ptr) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23653, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":23654 * pnode = int(cudaGraphNode_t(node)) * cnode = pnode * cdef cudaKernelNodeParams pNodeParams = cudaKernelNodeParams() # <<<<<<<<<<<<<< * err = ccudart.cudaGraphKernelNodeGetParams(cnode, pNodeParams._ptr) * return (cudaError_t(err), pNodeParams) */ __pyx_t_5 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaKernelNodeParams)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 23654, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pNodeParams = ((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *)__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":23655 * cnode = pnode * cdef cudaKernelNodeParams pNodeParams = cudaKernelNodeParams() * err = ccudart.cudaGraphKernelNodeGetParams(cnode, pNodeParams._ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err), pNodeParams) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaGraphKernelNodeGetParams(__pyx_v_cnode, ((struct cudaKernelNodeParams *)__pyx_v_pNodeParams->_ptr)); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 23655, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":23656 * cdef cudaKernelNodeParams pNodeParams = cudaKernelNodeParams() * err = ccudart.cudaGraphKernelNodeGetParams(cnode, pNodeParams._ptr) * return (cudaError_t(err), pNodeParams) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23656, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 23656, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 23656, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23656, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 23656, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pNodeParams); __Pyx_GIVEREF((PyObject *)__pyx_v_pNodeParams); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_v_pNodeParams))) __PYX_ERR(0, 23656, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":23614 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":23658 * return (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_6cudart_369cudaGraphKernelNodeSetParams(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_368cudaGraphKernelNodeSetParams, "cudaGraphKernelNodeSetParams(node, cudaKernelNodeParams pNodeParams: Optional[cudaKernelNodeParams])\n Sets a kernel node's parameters.\n\n Sets the parameters of kernel node `node` to `pNodeParams`.\n\n Parameters\n ----------\n node : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Node to set the parameters for\n pNodeParams : :py:obj:`~.cudaKernelNodeParams`\n Parameters to copy\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorMemoryAllocation`\n\n See Also\n --------\n :py:obj:`~.cudaGraphNodeSetParams`, :py:obj:`~.cudaLaunchKernel`, :py:obj:`~.cudaGraphAddKernelNode`, :py:obj:`~.cudaGraphKernelNodeGetParams`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_369cudaGraphKernelNodeSetParams = {"cudaGraphKernelNodeSetParams", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_369cudaGraphKernelNodeSetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_368cudaGraphKernelNodeSetParams}; static PyObject *__pyx_pw_4cuda_6cudart_369cudaGraphKernelNodeSetParams(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_node_2,&__pyx_n_s_pNodeParams,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_node_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23658, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pNodeParams)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23658, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphKernelNodeSetParams", 1, 2, 2, 1); __PYX_ERR(0, 23658, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphKernelNodeSetParams") < 0)) __PYX_ERR(0, 23658, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_node = values[0]; __pyx_v_pNodeParams = ((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *)values[1]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphKernelNodeSetParams", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 23658, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaKernelNodeParams, 1, "pNodeParams", 0))) __PYX_ERR(0, 23659, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_368cudaGraphKernelNodeSetParams(__pyx_self, __pyx_v_node, __pyx_v_pNodeParams); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_368cudaGraphKernelNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node, struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *__pyx_v_pNodeParams) { cudaGraphNode_t __pyx_v_cnode; PyObject *__pyx_v_pnode = NULL; struct cudaKernelNodeParams *__pyx_v_cpNodeParams_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; struct cudaKernelNodeParams *__pyx_t_6; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__536) __Pyx_RefNannySetupContext("cudaGraphKernelNodeSetParams", 1); __Pyx_TraceCall("cudaGraphKernelNodeSetParams", __pyx_f[0], 23658, 0, __PYX_ERR(0, 23658, __pyx_L1_error)); /* "cuda/cudart.pyx":23681 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_node == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":23682 * cdef ccudart.cudaGraphNode_t cnode * if node is None: * cnode = 0 # <<<<<<<<<<<<<< * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) */ __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":23681 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":23683 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":23684 * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) # <<<<<<<<<<<<<< * cnode = pnode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23684, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pnode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":23685 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) * cnode = pnode # <<<<<<<<<<<<<< * else: * pnode = int(cudaGraphNode_t(node)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23685, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":23683 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ goto __pyx_L3; } /* "cuda/cudart.pyx":23687 * cnode = pnode * else: * pnode = int(cudaGraphNode_t(node)) # <<<<<<<<<<<<<< * cnode = pnode * cdef ccudart.cudaKernelNodeParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23687, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 23687, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pnode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":23688 * else: * pnode = int(cudaGraphNode_t(node)) * cnode = pnode # <<<<<<<<<<<<<< * cdef ccudart.cudaKernelNodeParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL * err = ccudart.cudaGraphKernelNodeSetParams(cnode, cpNodeParams_ptr) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23688, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":23689 * pnode = int(cudaGraphNode_t(node)) * cnode = pnode * cdef ccudart.cudaKernelNodeParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaGraphKernelNodeSetParams(cnode, cpNodeParams_ptr) * return (cudaError_t(err),) */ __pyx_t_5 = PyObject_RichCompare(((PyObject *)__pyx_v_pNodeParams), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 23689, __pyx_L1_error) __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 23689, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_1) { __pyx_t_6 = __pyx_v_pNodeParams->_ptr; } else { __pyx_t_6 = NULL; } __pyx_v_cpNodeParams_ptr = __pyx_t_6; /* "cuda/cudart.pyx":23690 * cnode = pnode * cdef ccudart.cudaKernelNodeParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL * err = ccudart.cudaGraphKernelNodeSetParams(cnode, cpNodeParams_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaGraphKernelNodeSetParams(__pyx_v_cnode, __pyx_v_cpNodeParams_ptr); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 23690, __pyx_L1_error) __pyx_v_err = __pyx_t_7; /* "cuda/cudart.pyx":23691 * cdef ccudart.cudaKernelNodeParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL * err = ccudart.cudaGraphKernelNodeSetParams(cnode, cpNodeParams_ptr) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23691, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 23691, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_8}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 23691, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23691, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 23691, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":23658 * return (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_5); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.cudaGraphKernelNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pnode); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":23693 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphKernelNodeCopyAttributes(hSrc, hDst): * """ Copies attributes from source node to destination node. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_371cudaGraphKernelNodeCopyAttributes(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_370cudaGraphKernelNodeCopyAttributes, "cudaGraphKernelNodeCopyAttributes(hSrc, hDst)\n Copies attributes from source node to destination node.\n\n Copies attributes from source node `src` to destination node `dst`.\n Both node must have the same context.\n\n Parameters\n ----------\n dst : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Destination node\n src : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Source node For list of attributes see\n :py:obj:`~.cudaKernelNodeAttrID`\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidContext`\n\n See Also\n --------\n :py:obj:`~.cudaAccessPolicyWindow`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_371cudaGraphKernelNodeCopyAttributes = {"cudaGraphKernelNodeCopyAttributes", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_371cudaGraphKernelNodeCopyAttributes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_370cudaGraphKernelNodeCopyAttributes}; static PyObject *__pyx_pw_4cuda_6cudart_371cudaGraphKernelNodeCopyAttributes(PyObject *__pyx_self, #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_hSrc = 0; PyObject *__pyx_v_hDst = 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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_hSrc,&__pyx_n_s_hDst,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hSrc)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23693, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hDst)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23693, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphKernelNodeCopyAttributes", 1, 2, 2, 1); __PYX_ERR(0, 23693, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphKernelNodeCopyAttributes") < 0)) __PYX_ERR(0, 23693, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_hSrc = values[0]; __pyx_v_hDst = values[1]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphKernelNodeCopyAttributes", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 23693, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphKernelNodeCopyAttributes", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_370cudaGraphKernelNodeCopyAttributes(__pyx_self, __pyx_v_hSrc, __pyx_v_hDst); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_370cudaGraphKernelNodeCopyAttributes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hSrc, PyObject *__pyx_v_hDst) { cudaGraphNode_t __pyx_v_chDst; PyObject *__pyx_v_phDst = NULL; cudaGraphNode_t __pyx_v_chSrc; PyObject *__pyx_v_phSrc = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__537) __Pyx_RefNannySetupContext("cudaGraphKernelNodeCopyAttributes", 1); __Pyx_TraceCall("cudaGraphKernelNodeCopyAttributes", __pyx_f[0], 23693, 0, __PYX_ERR(0, 23693, __pyx_L1_error)); /* "cuda/cudart.pyx":23718 * """ * cdef ccudart.cudaGraphNode_t chDst * if hDst is None: # <<<<<<<<<<<<<< * chDst = 0 * elif isinstance(hDst, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_hDst == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":23719 * cdef ccudart.cudaGraphNode_t chDst * if hDst is None: * chDst = 0 # <<<<<<<<<<<<<< * elif isinstance(hDst, (cudaGraphNode_t,cuda.CUgraphNode)): * phDst = int(hDst) */ __pyx_v_chDst = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":23718 * """ * cdef ccudart.cudaGraphNode_t chDst * if hDst is None: # <<<<<<<<<<<<<< * chDst = 0 * elif isinstance(hDst, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":23720 * if hDst is None: * chDst = 0 * elif isinstance(hDst, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * phDst = int(hDst) * chDst = phDst */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hDst, __pyx_ptype_4cuda_6cudart_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_hDst, __pyx_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":23721 * chDst = 0 * elif isinstance(hDst, (cudaGraphNode_t,cuda.CUgraphNode)): * phDst = int(hDst) # <<<<<<<<<<<<<< * chDst = phDst * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hDst); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23721, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_phDst = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":23722 * elif isinstance(hDst, (cudaGraphNode_t,cuda.CUgraphNode)): * phDst = int(hDst) * chDst = phDst # <<<<<<<<<<<<<< * else: * phDst = int(cudaGraphNode_t(hDst)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phDst); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23722, __pyx_L1_error) __pyx_v_chDst = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":23720 * if hDst is None: * chDst = 0 * elif isinstance(hDst, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * phDst = int(hDst) * chDst = phDst */ goto __pyx_L3; } /* "cuda/cudart.pyx":23724 * chDst = phDst * else: * phDst = int(cudaGraphNode_t(hDst)) # <<<<<<<<<<<<<< * chDst = phDst * cdef ccudart.cudaGraphNode_t chSrc */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_hDst); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23724, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 23724, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_phDst = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":23725 * else: * phDst = int(cudaGraphNode_t(hDst)) * chDst = phDst # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t chSrc * if hSrc is None: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phDst); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23725, __pyx_L1_error) __pyx_v_chDst = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":23727 * chDst = phDst * cdef ccudart.cudaGraphNode_t chSrc * if hSrc is None: # <<<<<<<<<<<<<< * chSrc = 0 * elif isinstance(hSrc, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_hSrc == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":23728 * cdef ccudart.cudaGraphNode_t chSrc * if hSrc is None: * chSrc = 0 # <<<<<<<<<<<<<< * elif isinstance(hSrc, (cudaGraphNode_t,cuda.CUgraphNode)): * phSrc = int(hSrc) */ __pyx_v_chSrc = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":23727 * chDst = phDst * cdef ccudart.cudaGraphNode_t chSrc * if hSrc is None: # <<<<<<<<<<<<<< * chSrc = 0 * elif isinstance(hSrc, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":23729 * if hSrc is None: * chSrc = 0 * elif isinstance(hSrc, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * phSrc = int(hSrc) * chSrc = phSrc */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hSrc, __pyx_ptype_4cuda_6cudart_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_hSrc, __pyx_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L7_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":23730 * chSrc = 0 * elif isinstance(hSrc, (cudaGraphNode_t,cuda.CUgraphNode)): * phSrc = int(hSrc) # <<<<<<<<<<<<<< * chSrc = phSrc * else: */ __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_v_hSrc); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 23730, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_phSrc = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":23731 * elif isinstance(hSrc, (cudaGraphNode_t,cuda.CUgraphNode)): * phSrc = int(hSrc) * chSrc = phSrc # <<<<<<<<<<<<<< * else: * phSrc = int(cudaGraphNode_t(hSrc)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phSrc); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23731, __pyx_L1_error) __pyx_v_chSrc = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":23729 * if hSrc is None: * chSrc = 0 * elif isinstance(hSrc, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * phSrc = int(hSrc) * chSrc = phSrc */ goto __pyx_L6; } /* "cuda/cudart.pyx":23733 * chSrc = phSrc * else: * phSrc = int(cudaGraphNode_t(hSrc)) # <<<<<<<<<<<<<< * chSrc = phSrc * err = ccudart.cudaGraphKernelNodeCopyAttributes(chSrc, chDst) */ /*else*/ { __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_hSrc); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 23733, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23733, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_phSrc = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":23734 * else: * phSrc = int(cudaGraphNode_t(hSrc)) * chSrc = phSrc # <<<<<<<<<<<<<< * err = ccudart.cudaGraphKernelNodeCopyAttributes(chSrc, chDst) * return (cudaError_t(err),) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phSrc); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23734, __pyx_L1_error) __pyx_v_chSrc = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L6:; /* "cuda/cudart.pyx":23735 * phSrc = int(cudaGraphNode_t(hSrc)) * chSrc = phSrc * err = ccudart.cudaGraphKernelNodeCopyAttributes(chSrc, chDst) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaGraphKernelNodeCopyAttributes(__pyx_v_chSrc, __pyx_v_chDst); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 23735, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":23736 * chSrc = phSrc * err = ccudart.cudaGraphKernelNodeCopyAttributes(chSrc, chDst) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 23736, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 23736, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __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, 23736, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 23736, __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)) __PYX_ERR(0, 23736, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":23693 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphKernelNodeCopyAttributes(hSrc, hDst): * """ Copies attributes from source node to destination node. */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaGraphKernelNodeCopyAttributes", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_phDst); __Pyx_XDECREF(__pyx_v_phSrc); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":23738 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphKernelNodeGetAttribute(hNode, attr not None : cudaKernelNodeAttrID): * """ Queries node attribute. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_373cudaGraphKernelNodeGetAttribute(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_372cudaGraphKernelNodeGetAttribute, "cudaGraphKernelNodeGetAttribute(hNode, attr: cudaKernelNodeAttrID)\n Queries node attribute.\n\n Queries attribute `attr` from node `hNode` and stores it in\n corresponding member of `value_out`.\n\n Parameters\n ----------\n hNode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n\n attr : :py:obj:`~.cudaKernelNodeAttrID`\n\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`\n value_out : :py:obj:`~.cudaKernelNodeAttrValue`\n\n\n See Also\n --------\n :py:obj:`~.cudaAccessPolicyWindow`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_373cudaGraphKernelNodeGetAttribute = {"cudaGraphKernelNodeGetAttribute", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_373cudaGraphKernelNodeGetAttribute, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_372cudaGraphKernelNodeGetAttribute}; static PyObject *__pyx_pw_4cuda_6cudart_373cudaGraphKernelNodeGetAttribute(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_hNode,&__pyx_n_s_attr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hNode)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23738, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_attr)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23738, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphKernelNodeGetAttribute", 1, 2, 2, 1); __PYX_ERR(0, 23738, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphKernelNodeGetAttribute") < 0)) __PYX_ERR(0, 23738, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __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, 23738, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 23739, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_372cudaGraphKernelNodeGetAttribute(__pyx_self, __pyx_v_hNode, __pyx_v_attr); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_372cudaGraphKernelNodeGetAttribute(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hNode, PyObject *__pyx_v_attr) { cudaGraphNode_t __pyx_v_chNode; PyObject *__pyx_v_phNode = NULL; __pyx_t_4cuda_7ccudart_cudaKernelNodeAttrID __pyx_v_cattr; struct __pyx_obj_4cuda_6cudart_cudaKernelNodeAttrValue *__pyx_v_value_out = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; __pyx_t_4cuda_7ccudart_cudaKernelNodeAttrID __pyx_t_6; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__538) __Pyx_RefNannySetupContext("cudaGraphKernelNodeGetAttribute", 1); __Pyx_TraceCall("cudaGraphKernelNodeGetAttribute", __pyx_f[0], 23738, 0, __PYX_ERR(0, 23738, __pyx_L1_error)); /* "cuda/cudart.pyx":23764 * """ * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: # <<<<<<<<<<<<<< * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_hNode == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":23765 * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: * chNode = 0 # <<<<<<<<<<<<<< * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): * phNode = int(hNode) */ __pyx_v_chNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":23764 * """ * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: # <<<<<<<<<<<<<< * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":23766 * if hNode is None: * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * phNode = int(hNode) * chNode = phNode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":23767 * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): * phNode = int(hNode) # <<<<<<<<<<<<<< * chNode = phNode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23767, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_phNode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":23768 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): * phNode = int(hNode) * chNode = phNode # <<<<<<<<<<<<<< * else: * phNode = int(cudaGraphNode_t(hNode)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23768, __pyx_L1_error) __pyx_v_chNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":23766 * if hNode is None: * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * phNode = int(hNode) * chNode = phNode */ goto __pyx_L3; } /* "cuda/cudart.pyx":23770 * chNode = phNode * else: * phNode = int(cudaGraphNode_t(hNode)) # <<<<<<<<<<<<<< * chNode = phNode * cdef ccudart.cudaKernelNodeAttrID cattr = attr.value */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_hNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23770, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 23770, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_phNode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":23771 * else: * phNode = int(cudaGraphNode_t(hNode)) * chNode = phNode # <<<<<<<<<<<<<< * cdef ccudart.cudaKernelNodeAttrID cattr = attr.value * cdef cudaKernelNodeAttrValue value_out = cudaKernelNodeAttrValue() */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23771, __pyx_L1_error) __pyx_v_chNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":23772 * phNode = int(cudaGraphNode_t(hNode)) * chNode = phNode * cdef ccudart.cudaKernelNodeAttrID cattr = attr.value # <<<<<<<<<<<<<< * cdef cudaKernelNodeAttrValue value_out = cudaKernelNodeAttrValue() * err = ccudart.cudaGraphKernelNodeGetAttribute(chNode, cattr, value_out._ptr) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_n_s_value); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 23772, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = ((enum cudaLaunchAttributeID)__Pyx_PyInt_As_enum__cudaLaunchAttributeID(__pyx_t_5)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23772, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_cattr = __pyx_t_6; /* "cuda/cudart.pyx":23773 * chNode = phNode * cdef ccudart.cudaKernelNodeAttrID cattr = attr.value * cdef cudaKernelNodeAttrValue value_out = cudaKernelNodeAttrValue() # <<<<<<<<<<<<<< * err = ccudart.cudaGraphKernelNodeGetAttribute(chNode, cattr, value_out._ptr) * return (cudaError_t(err), value_out) */ __pyx_t_5 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaKernelNodeAttrValue)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 23773, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_value_out = ((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeAttrValue *)__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":23774 * cdef ccudart.cudaKernelNodeAttrID cattr = attr.value * cdef cudaKernelNodeAttrValue value_out = cudaKernelNodeAttrValue() * err = ccudart.cudaGraphKernelNodeGetAttribute(chNode, cattr, value_out._ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err), value_out) * */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaGraphKernelNodeGetAttribute(__pyx_v_chNode, __pyx_v_cattr, ((__pyx_t_4cuda_7ccudart_cudaKernelNodeAttrValue *)__pyx_v_value_out->__pyx_base._ptr)); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 23774, __pyx_L1_error) __pyx_v_err = __pyx_t_7; /* "cuda/cudart.pyx":23775 * cdef cudaKernelNodeAttrValue value_out = cudaKernelNodeAttrValue() * err = ccudart.cudaGraphKernelNodeGetAttribute(chNode, cattr, value_out._ptr) * return (cudaError_t(err), value_out) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23775, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 23775, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_8}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 23775, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23775, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 23775, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_value_out); __Pyx_GIVEREF((PyObject *)__pyx_v_value_out); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_v_value_out))) __PYX_ERR(0, 23775, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":23738 * return (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_5); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":23777 * return (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_6cudart_375cudaGraphKernelNodeSetAttribute(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_374cudaGraphKernelNodeSetAttribute, "cudaGraphKernelNodeSetAttribute(hNode, attr: cudaKernelNodeAttrID, cudaKernelNodeAttrValue value: Optional[cudaKernelNodeAttrValue])\n Sets node attribute.\n\n Sets attribute `attr` on node `hNode` from corresponding attribute of\n `value`.\n\n Parameters\n ----------\n hNode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n\n attr : :py:obj:`~.cudaKernelNodeAttrID`\n\n value : :py:obj:`~.cudaKernelNodeAttrValue`\n\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`\n\n See Also\n --------\n :py:obj:`~.cudaAccessPolicyWindow`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_375cudaGraphKernelNodeSetAttribute = {"cudaGraphKernelNodeSetAttribute", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_375cudaGraphKernelNodeSetAttribute, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_374cudaGraphKernelNodeSetAttribute}; static PyObject *__pyx_pw_4cuda_6cudart_375cudaGraphKernelNodeSetAttribute(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_hNode,&__pyx_n_s_attr,&__pyx_n_s_value,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hNode)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23777, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_attr)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23777, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphKernelNodeSetAttribute", 1, 3, 3, 1); __PYX_ERR(0, 23777, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_value)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23777, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphKernelNodeSetAttribute", 1, 3, 3, 2); __PYX_ERR(0, 23777, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphKernelNodeSetAttribute") < 0)) __PYX_ERR(0, 23777, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_hNode = values[0]; __pyx_v_attr = values[1]; __pyx_v_value = ((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeAttrValue *)values[2]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphKernelNodeSetAttribute", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 23777, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 23778, __pyx_L1_error) } if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), __pyx_ptype_4cuda_6cudart_cudaKernelNodeAttrValue, 1, "value", 0))) __PYX_ERR(0, 23778, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_374cudaGraphKernelNodeSetAttribute(__pyx_self, __pyx_v_hNode, __pyx_v_attr, __pyx_v_value); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_374cudaGraphKernelNodeSetAttribute(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hNode, PyObject *__pyx_v_attr, struct __pyx_obj_4cuda_6cudart_cudaKernelNodeAttrValue *__pyx_v_value) { cudaGraphNode_t __pyx_v_chNode; PyObject *__pyx_v_phNode = NULL; __pyx_t_4cuda_7ccudart_cudaKernelNodeAttrID __pyx_v_cattr; __pyx_t_4cuda_7ccudart_cudaKernelNodeAttrValue *__pyx_v_cvalue_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; __pyx_t_4cuda_7ccudart_cudaKernelNodeAttrID __pyx_t_6; union cudaLaunchAttributeValue *__pyx_t_7; cudaError_t __pyx_t_8; PyObject *__pyx_t_9 = NULL; PyObject *__pyx_t_10 = NULL; unsigned int __pyx_t_11; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__539) __Pyx_RefNannySetupContext("cudaGraphKernelNodeSetAttribute", 1); __Pyx_TraceCall("cudaGraphKernelNodeSetAttribute", __pyx_f[0], 23777, 0, __PYX_ERR(0, 23777, __pyx_L1_error)); /* "cuda/cudart.pyx":23803 * """ * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: # <<<<<<<<<<<<<< * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_hNode == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":23804 * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: * chNode = 0 # <<<<<<<<<<<<<< * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): * phNode = int(hNode) */ __pyx_v_chNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":23803 * """ * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: # <<<<<<<<<<<<<< * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":23805 * if hNode is None: * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * phNode = int(hNode) * chNode = phNode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":23806 * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): * phNode = int(hNode) # <<<<<<<<<<<<<< * chNode = phNode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23806, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_phNode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":23807 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): * phNode = int(hNode) * chNode = phNode # <<<<<<<<<<<<<< * else: * phNode = int(cudaGraphNode_t(hNode)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23807, __pyx_L1_error) __pyx_v_chNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":23805 * if hNode is None: * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * phNode = int(hNode) * chNode = phNode */ goto __pyx_L3; } /* "cuda/cudart.pyx":23809 * chNode = phNode * else: * phNode = int(cudaGraphNode_t(hNode)) # <<<<<<<<<<<<<< * chNode = phNode * cdef ccudart.cudaKernelNodeAttrID cattr = attr.value */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_hNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23809, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 23809, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_phNode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":23810 * else: * phNode = int(cudaGraphNode_t(hNode)) * chNode = phNode # <<<<<<<<<<<<<< * cdef ccudart.cudaKernelNodeAttrID cattr = attr.value * cdef ccudart.cudaKernelNodeAttrValue* cvalue_ptr = value._ptr if value != None else NULL */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23810, __pyx_L1_error) __pyx_v_chNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":23811 * phNode = int(cudaGraphNode_t(hNode)) * chNode = phNode * cdef ccudart.cudaKernelNodeAttrID cattr = attr.value # <<<<<<<<<<<<<< * cdef ccudart.cudaKernelNodeAttrValue* cvalue_ptr = value._ptr if value != None else NULL * err = ccudart.cudaGraphKernelNodeSetAttribute(chNode, cattr, cvalue_ptr) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_n_s_value); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 23811, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = ((enum cudaLaunchAttributeID)__Pyx_PyInt_As_enum__cudaLaunchAttributeID(__pyx_t_5)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23811, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_cattr = __pyx_t_6; /* "cuda/cudart.pyx":23812 * chNode = phNode * cdef ccudart.cudaKernelNodeAttrID cattr = attr.value * cdef ccudart.cudaKernelNodeAttrValue* cvalue_ptr = value._ptr if value != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaGraphKernelNodeSetAttribute(chNode, cattr, cvalue_ptr) * return (cudaError_t(err),) */ __pyx_t_5 = PyObject_RichCompare(((PyObject *)__pyx_v_value), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 23812, __pyx_L1_error) __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 23812, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_1) { __pyx_t_7 = __pyx_v_value->__pyx_base._ptr; } else { __pyx_t_7 = NULL; } __pyx_v_cvalue_ptr = __pyx_t_7; /* "cuda/cudart.pyx":23813 * cdef ccudart.cudaKernelNodeAttrID cattr = attr.value * cdef ccudart.cudaKernelNodeAttrValue* cvalue_ptr = value._ptr if value != None else NULL * err = ccudart.cudaGraphKernelNodeSetAttribute(chNode, cattr, cvalue_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_8 = __pyx_f_4cuda_7ccudart_cudaGraphKernelNodeSetAttribute(__pyx_v_chNode, __pyx_v_cattr, __pyx_v_cvalue_ptr); if (unlikely(__pyx_t_8 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 23813, __pyx_L1_error) __pyx_v_err = __pyx_t_8; /* "cuda/cudart.pyx":23814 * cdef ccudart.cudaKernelNodeAttrValue* cvalue_ptr = value._ptr if value != None else NULL * err = ccudart.cudaGraphKernelNodeSetAttribute(chNode, cattr, cvalue_ptr) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23814, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_9 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 23814, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_10 = NULL; __pyx_t_11 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_10)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_10); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_11 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_t_9}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_11, 1+__pyx_t_11); __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 23814, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23814, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 23814, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":23777 * return (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_5); __Pyx_XDECREF(__pyx_t_9); __Pyx_XDECREF(__pyx_t_10); __Pyx_AddTraceback("cuda.cudart.cudaGraphKernelNodeSetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_phNode); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":23816 * return (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_6cudart_377cudaGraphAddMemcpyNode(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_376cudaGraphAddMemcpyNode, "cudaGraphAddMemcpyNode(graph, pDependencies: Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], size_t numDependencies, cudaMemcpy3DParms pCopyParams: Optional[cudaMemcpy3DParms])\n Creates a memcpy node and adds it to a graph.\n\n Creates a new memcpy node and adds it to `graph` with `numDependencies`\n dependencies specified via `pDependencies`. It is possible for\n `numDependencies` to be 0, in which case the node will be placed at the\n root of the graph. `pDependencies` may not have any duplicate entries.\n A handle to the new node will be returned in `pGraphNode`.\n\n When the graph is launched, the node will perform the memcpy described\n by `pCopyParams`. See :py:obj:`~.cudaMemcpy3D()` for a description of\n the structure and its restrictions.\n\n Memcpy nodes have some additional restrictions with regards to managed\n memory, if the system contains at least one device which has a zero\n value for the device attribute\n :py:obj:`~.cudaDevAttrConcurrentManagedAccess`.\n\n Parameters\n ----------\n graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n Graph to which to add the node\n pDependencies : List[:py:obj:`~.cudaGraphNode_t`]\n Dependencies of the node\n numDependencies : size_t\n Number of dependencies\n pCopyParams : :py:obj:`~.cudaMemcpy3DParms`\n Parameters for the memory copy\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n pGraphNode : :py:obj:`~.cudaGraphNode_t`\n Returns newly created node\n\n See 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:`~.cudaGraphAddChildGrap""hNode`, :py:obj:`~.cudaGraphAddEmptyNode`, :py:obj:`~.cudaGraphAddKernelNode`, :py:obj:`~.cudaGraphAddHostNode`, :py:obj:`~.cudaGraphAddMemsetNode`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_377cudaGraphAddMemcpyNode = {"cudaGraphAddMemcpyNode", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_377cudaGraphAddMemcpyNode, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_376cudaGraphAddMemcpyNode}; static PyObject *__pyx_pw_4cuda_6cudart_377cudaGraphAddMemcpyNode(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_graph_2,&__pyx_n_s_pDependencies,&__pyx_n_s_numDependencies,&__pyx_n_s_pCopyParams,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_graph_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23816, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pDependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23816, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddMemcpyNode", 1, 4, 4, 1); __PYX_ERR(0, 23816, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_numDependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23816, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddMemcpyNode", 1, 4, 4, 2); __PYX_ERR(0, 23816, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pCopyParams)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23816, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddMemcpyNode", 1, 4, 4, 3); __PYX_ERR(0, 23816, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphAddMemcpyNode") < 0)) __PYX_ERR(0, 23816, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); } __pyx_v_graph = values[0]; __pyx_v_pDependencies = values[1]; __pyx_v_numDependencies = __Pyx_PyInt_As_size_t(values[2]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 23817, __pyx_L3_error) __pyx_v_pCopyParams = ((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *)values[3]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphAddMemcpyNode", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 23816, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaMemcpy3DParms, 1, "pCopyParams", 0))) __PYX_ERR(0, 23817, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_376cudaGraphAddMemcpyNode(__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; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_22cudaGraphAddMemcpyNode_2generator13(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":23858 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ static PyObject *__pyx_pf_4cuda_6cudart_22cudaGraphAddMemcpyNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct_13_genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_13_genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_13_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_13_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 23858, __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_6cudart_22cudaGraphAddMemcpyNode_2generator13, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaGraphAddMemcpyNode_locals_ge, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 23858, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.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_6cudart_22cudaGraphAddMemcpyNode_2generator13(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_13_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_13_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 23858, 0, __PYX_ERR(0, 23858, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 23858, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 23858, __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, 23858, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23858, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 23858, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 23858, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23858, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 23858, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 23858, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23858, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 23858, __pyx_L1_error) } 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_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":23816 * return (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_6cudart_376cudaGraphAddMemcpyNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_pDependencies, size_t __pyx_v_numDependencies, struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *__pyx_v_pCopyParams) { cudaGraph_t __pyx_v_cgraph; PyObject *__pyx_v_pgraph = NULL; struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *__pyx_v_pGraphNode = 0; cudaGraphNode_t *__pyx_v_cpDependencies; Py_ssize_t __pyx_v_idx; struct cudaMemcpy3DParms *__pyx_v_cpCopyParams_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_gb_4cuda_6cudart_22cudaGraphAddMemcpyNode_2generator13 = 0; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; Py_ssize_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; Py_ssize_t __pyx_t_8; Py_ssize_t __pyx_t_9; struct cudaMemcpy3DParms *__pyx_t_10; cudaGraphNode_t *__pyx_t_11; cudaError_t __pyx_t_12; PyObject *__pyx_t_13 = NULL; unsigned int __pyx_t_14; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__540) __Pyx_RefNannySetupContext("cudaGraphAddMemcpyNode", 0); __Pyx_TraceCall("cudaGraphAddMemcpyNode", __pyx_f[0], 23816, 0, __PYX_ERR(0, 23816, __pyx_L1_error)); __Pyx_INCREF(__pyx_v_pDependencies); /* "cuda/cudart.pyx":23857 * :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,cuda.CUgraphNode)) for _x in pDependencies): * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.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, 23857, __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/cudart.pyx":23858 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ __pyx_t_1 = __pyx_pf_4cuda_6cudart_22cudaGraphAddMemcpyNode_genexpr(NULL, __pyx_v_pDependencies); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23858, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23858, __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, 23858, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_4 = (!__pyx_t_2); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":23859 * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") # <<<<<<<<<<<<<< * cdef ccudart.cudaGraph_t cgraph * if graph is None: */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__534, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23859, __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, 23859, __pyx_L1_error) /* "cuda/cudart.pyx":23858 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ } /* "cuda/cudart.pyx":23861 * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_4 = (__pyx_v_graph == Py_None); if (__pyx_t_4) { /* "cuda/cudart.pyx":23862 * cdef ccudart.cudaGraph_t cgraph * if graph is None: * cgraph = 0 # <<<<<<<<<<<<<< * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) */ __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":23861 * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L4; } /* "cuda/cudart.pyx":23863 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_4 = __pyx_t_2; __pyx_L5_bool_binop_done:; if (__pyx_t_4) { /* "cuda/cudart.pyx":23864 * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) # <<<<<<<<<<<<<< * cgraph = pgraph * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23864, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pgraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":23865 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) * cgraph = pgraph # <<<<<<<<<<<<<< * else: * pgraph = int(cudaGraph_t(graph)) */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23865, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); /* "cuda/cudart.pyx":23863 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ goto __pyx_L4; } /* "cuda/cudart.pyx":23867 * cgraph = pgraph * else: * pgraph = int(cudaGraph_t(graph)) # <<<<<<<<<<<<<< * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23867, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23867, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pgraph = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":23868 * else: * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph # <<<<<<<<<<<<<< * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23868, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); } __pyx_L4:; /* "cuda/cudart.pyx":23869 * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23869, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_pGraphNode = ((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":23870 * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL # <<<<<<<<<<<<<< * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) */ __pyx_v_cpDependencies = NULL; /* "cuda/cudart.pyx":23871 * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: # <<<<<<<<<<<<<< * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23871, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 > 0); if (__pyx_t_4) { /* "cuda/cudart.pyx":23872 * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) # <<<<<<<<<<<<<< * if cpDependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23872, __pyx_L1_error) __pyx_v_cpDependencies = ((cudaGraphNode_t *)calloc(__pyx_t_6, (sizeof(cudaGraphNode_t)))); /* "cuda/cudart.pyx":23873 * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ __pyx_t_4 = (__pyx_v_cpDependencies == NULL); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":23874 * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) # <<<<<<<<<<<<<< * else: * for idx in range(len(pDependencies)): */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23874, __pyx_L1_error) __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23874, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23874, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23874, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_n_u_x_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23874, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23874, __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, 23874, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23874, __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 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 23874, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_7, 0, 0, 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __PYX_ERR(0, 23874, __pyx_L1_error) /* "cuda/cudart.pyx":23873 * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ } /* "cuda/cudart.pyx":23876 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: * for idx in range(len(pDependencies)): # <<<<<<<<<<<<<< * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) */ /*else*/ { __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23876, __pyx_L1_error) __pyx_t_8 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_idx = __pyx_t_9; /* "cuda/cudart.pyx":23877 * else: * for idx in range(len(pDependencies)): * cpDependencies[idx] = (pDependencies[idx])._ptr[0] # <<<<<<<<<<<<<< * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * cdef ccudart.cudaMemcpy3DParms* cpCopyParams_ptr = pCopyParams._ptr if pCopyParams != None else NULL */ __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_pDependencies, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 23877, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); (__pyx_v_cpDependencies[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_7)->__pyx_base._ptr[0])); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } /* "cuda/cudart.pyx":23871 * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: # <<<<<<<<<<<<<< * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: */ } /* "cuda/cudart.pyx":23878 * for idx in range(len(pDependencies)): * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) # <<<<<<<<<<<<<< * cdef ccudart.cudaMemcpy3DParms* cpCopyParams_ptr = pCopyParams._ptr if pCopyParams != None else NULL * err = ccudart.cudaGraphAddMemcpyNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cpCopyParams_ptr) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23878, __pyx_L1_error) __pyx_t_4 = (__pyx_v_numDependencies > ((size_t)__pyx_t_6)); if (unlikely(__pyx_t_4)) { __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23878, __pyx_L1_error) __pyx_t_7 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 23878, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23878, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_List_is_too_small, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 23878, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_7, __pyx_kp_u__400); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23878, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyInt_FromSize_t(__pyx_v_numDependencies); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 23878, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23878, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 23878, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23878, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 23878, __pyx_L1_error) } /* "cuda/cudart.pyx":23879 * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * cdef ccudart.cudaMemcpy3DParms* cpCopyParams_ptr = pCopyParams._ptr if pCopyParams != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaGraphAddMemcpyNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cpCopyParams_ptr) * if cpDependencies is not NULL: */ __pyx_t_3 = PyObject_RichCompare(((PyObject *)__pyx_v_pCopyParams), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23879, __pyx_L1_error) __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 23879, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_4) { __pyx_t_10 = __pyx_v_pCopyParams->_ptr; } else { __pyx_t_10 = NULL; } __pyx_v_cpCopyParams_ptr = __pyx_t_10; /* "cuda/cudart.pyx":23880 * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * cdef ccudart.cudaMemcpy3DParms* cpCopyParams_ptr = pCopyParams._ptr if pCopyParams != None else NULL * err = ccudart.cudaGraphAddMemcpyNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cpCopyParams_ptr) # <<<<<<<<<<<<<< * if cpDependencies is not NULL: * free(cpDependencies) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23880, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 == 1); if (__pyx_t_4) { __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_pDependencies, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23880, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_11 = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_3)->__pyx_base._ptr); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_11 = __pyx_v_cpDependencies; } __pyx_t_12 = __pyx_f_4cuda_7ccudart_cudaGraphAddMemcpyNode(((cudaGraphNode_t *)__pyx_v_pGraphNode->__pyx_base._ptr), __pyx_v_cgraph, __pyx_t_11, __pyx_v_numDependencies, __pyx_v_cpCopyParams_ptr); if (unlikely(__pyx_t_12 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 23880, __pyx_L1_error) __pyx_v_err = __pyx_t_12; /* "cuda/cudart.pyx":23881 * cdef ccudart.cudaMemcpy3DParms* cpCopyParams_ptr = pCopyParams._ptr if pCopyParams != None else NULL * err = ccudart.cudaGraphAddMemcpyNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cpCopyParams_ptr) * if cpDependencies is not NULL: # <<<<<<<<<<<<<< * free(cpDependencies) * return (cudaError_t(err), pGraphNode) */ __pyx_t_4 = (__pyx_v_cpDependencies != NULL); if (__pyx_t_4) { /* "cuda/cudart.pyx":23882 * err = ccudart.cudaGraphAddMemcpyNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cpCopyParams_ptr) * if cpDependencies is not NULL: * free(cpDependencies) # <<<<<<<<<<<<<< * return (cudaError_t(err), pGraphNode) * */ free(__pyx_v_cpDependencies); /* "cuda/cudart.pyx":23881 * cdef ccudart.cudaMemcpy3DParms* cpCopyParams_ptr = pCopyParams._ptr if pCopyParams != None else NULL * err = ccudart.cudaGraphAddMemcpyNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cpCopyParams_ptr) * if cpDependencies is not NULL: # <<<<<<<<<<<<<< * free(cpDependencies) * return (cudaError_t(err), pGraphNode) */ } /* "cuda/cudart.pyx":23883 * if cpDependencies is not NULL: * free(cpDependencies) * return (cudaError_t(err), pGraphNode) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 23883, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23883, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_13 = NULL; __pyx_t_14 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_13)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_13); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_14 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_t_1}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_14, 1+__pyx_t_14); __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23883, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 23883, __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)) __PYX_ERR(0, 23883, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pGraphNode); __Pyx_GIVEREF((PyObject *)__pyx_v_pGraphNode); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_pGraphNode))) __PYX_ERR(0, 23883, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":23816 * return (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_7); __Pyx_XDECREF(__pyx_t_13); __Pyx_AddTraceback("cuda.cudart.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_6cudart_22cudaGraphAddMemcpyNode_2generator13); __Pyx_XDECREF(__pyx_v_pDependencies); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":23885 * return (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_6cudart_379cudaGraphAddMemcpyNode1D(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_378cudaGraphAddMemcpyNode1D, "cudaGraphAddMemcpyNode1D(graph, pDependencies: Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], size_t numDependencies, dst, src, size_t count, kind: cudaMemcpyKind)\n Creates a 1D memcpy node and adds it to a graph.\n\n Creates a new 1D memcpy node and adds it to `graph` with\n `numDependencies` dependencies specified via `pDependencies`. It is\n possible for `numDependencies` to be 0, in which case the node will be\n placed at the root of the graph. `pDependencies` may not have any\n duplicate entries. A handle to the new node will be returned in\n `pGraphNode`.\n\n When the graph is launched, the node will copy `count` bytes from the\n memory area pointed to by `src` to the memory area pointed to by `dst`,\n where `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`.\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. Launching a memcpy node with dst and src\n pointers that do not match the direction of the copy results in an\n undefined behavior.\n\n Memcpy nodes have some additional restrictions with regards to managed\n memory, if the system contains at least one device which has a zero\n value for the device attribute\n :py:obj:`~.cudaDevAttrConcurrentManagedAccess`.\n\n Parameters\n ----------\n graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n Graph to which to add the node\n pDependencies : List[:py:obj:`~.cudaGraphNode_t`]\n Dependencies of the node\n numDependencies : size_t\n Number of dependencies\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`\n pGraphNode : :py:obj:`~.cudaGraphNode_t`\n Returns newly created node\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_379cudaGraphAddMemcpyNode1D = {"cudaGraphAddMemcpyNode1D", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_379cudaGraphAddMemcpyNode1D, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_378cudaGraphAddMemcpyNode1D}; static PyObject *__pyx_pw_4cuda_6cudart_379cudaGraphAddMemcpyNode1D(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_graph_2,&__pyx_n_s_pDependencies,&__pyx_n_s_numDependencies,&__pyx_n_s_dst_2,&__pyx_n_s_src,&__pyx_n_s_count,&__pyx_n_s_kind_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 7: values[6] = __Pyx_Arg_FASTCALL(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_graph_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23885, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pDependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23885, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddMemcpyNode1D", 1, 7, 7, 1); __PYX_ERR(0, 23885, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_numDependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23885, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddMemcpyNode1D", 1, 7, 7, 2); __PYX_ERR(0, 23885, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dst_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23885, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddMemcpyNode1D", 1, 7, 7, 3); __PYX_ERR(0, 23885, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_src)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[4]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23885, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddMemcpyNode1D", 1, 7, 7, 4); __PYX_ERR(0, 23885, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_count)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[5]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23885, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddMemcpyNode1D", 1, 7, 7, 5); __PYX_ERR(0, 23885, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 6: if (likely((values[6] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_kind_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[6]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23885, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddMemcpyNode1D", 1, 7, 7, 6); __PYX_ERR(0, 23885, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphAddMemcpyNode1D") < 0)) __PYX_ERR(0, 23885, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 7)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5); values[6] = __Pyx_Arg_FASTCALL(__pyx_args, 6); } __pyx_v_graph = values[0]; __pyx_v_pDependencies = values[1]; __pyx_v_numDependencies = __Pyx_PyInt_As_size_t(values[2]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 23886, __pyx_L3_error) __pyx_v_dst = values[3]; __pyx_v_src = values[4]; __pyx_v_count = __Pyx_PyInt_As_size_t(values[5]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 23886, __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, 23885, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 23886, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_378cudaGraphAddMemcpyNode1D(__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; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_24cudaGraphAddMemcpyNode1D_2generator14(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":23943 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ static PyObject *__pyx_pf_4cuda_6cudart_24cudaGraphAddMemcpyNode1D_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct_14_genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_14_genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_14_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_14_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 23943, __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_6cudart_24cudaGraphAddMemcpyNode1D_2generator14, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaGraphAddMemcpyNode1D_locals, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 23943, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.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_6cudart_24cudaGraphAddMemcpyNode1D_2generator14(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_14_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_14_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 23943, 0, __PYX_ERR(0, 23943, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 23943, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 23943, __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, 23943, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23943, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 23943, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 23943, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23943, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 23943, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 23943, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23943, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 23943, __pyx_L1_error) } 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_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":23885 * return (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_6cudart_378cudaGraphAddMemcpyNode1D(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_cgraph; PyObject *__pyx_v_pgraph = NULL; struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *__pyx_v_pGraphNode = 0; cudaGraphNode_t *__pyx_v_cpDependencies; Py_ssize_t __pyx_v_idx; PyObject *__pyx_v_cdst = NULL; void *__pyx_v_cdst_ptr; PyObject *__pyx_v_csrc = NULL; void *__pyx_v_csrc_ptr; enum cudaMemcpyKind __pyx_v_ckind; cudaError_t __pyx_v_err; PyObject *__pyx_gb_4cuda_6cudart_24cudaGraphAddMemcpyNode1D_2generator14 = 0; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; Py_ssize_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; Py_ssize_t __pyx_t_8; Py_ssize_t __pyx_t_9; enum cudaMemcpyKind __pyx_t_10; cudaGraphNode_t *__pyx_t_11; cudaError_t __pyx_t_12; PyObject *__pyx_t_13 = NULL; unsigned int __pyx_t_14; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__541) __Pyx_RefNannySetupContext("cudaGraphAddMemcpyNode1D", 0); __Pyx_TraceCall("cudaGraphAddMemcpyNode1D", __pyx_f[0], 23885, 0, __PYX_ERR(0, 23885, __pyx_L1_error)); __Pyx_INCREF(__pyx_v_pDependencies); /* "cuda/cudart.pyx":23942 * :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,cuda.CUgraphNode)) for _x in pDependencies): * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.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, 23942, __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/cudart.pyx":23943 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ __pyx_t_1 = __pyx_pf_4cuda_6cudart_24cudaGraphAddMemcpyNode1D_genexpr(NULL, __pyx_v_pDependencies); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23943, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23943, __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, 23943, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_4 = (!__pyx_t_2); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":23944 * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") # <<<<<<<<<<<<<< * cdef ccudart.cudaGraph_t cgraph * if graph is None: */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__534, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23944, __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, 23944, __pyx_L1_error) /* "cuda/cudart.pyx":23943 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ } /* "cuda/cudart.pyx":23946 * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_4 = (__pyx_v_graph == Py_None); if (__pyx_t_4) { /* "cuda/cudart.pyx":23947 * cdef ccudart.cudaGraph_t cgraph * if graph is None: * cgraph = 0 # <<<<<<<<<<<<<< * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) */ __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":23946 * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L4; } /* "cuda/cudart.pyx":23948 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_4 = __pyx_t_2; __pyx_L5_bool_binop_done:; if (__pyx_t_4) { /* "cuda/cudart.pyx":23949 * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) # <<<<<<<<<<<<<< * cgraph = pgraph * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23949, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pgraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":23950 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) * cgraph = pgraph # <<<<<<<<<<<<<< * else: * pgraph = int(cudaGraph_t(graph)) */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23950, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); /* "cuda/cudart.pyx":23948 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ goto __pyx_L4; } /* "cuda/cudart.pyx":23952 * cgraph = pgraph * else: * pgraph = int(cudaGraph_t(graph)) # <<<<<<<<<<<<<< * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23952, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23952, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pgraph = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":23953 * else: * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph # <<<<<<<<<<<<<< * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23953, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); } __pyx_L4:; /* "cuda/cudart.pyx":23954 * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23954, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_pGraphNode = ((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":23955 * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL # <<<<<<<<<<<<<< * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) */ __pyx_v_cpDependencies = NULL; /* "cuda/cudart.pyx":23956 * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: # <<<<<<<<<<<<<< * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23956, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 > 0); if (__pyx_t_4) { /* "cuda/cudart.pyx":23957 * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) # <<<<<<<<<<<<<< * if cpDependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23957, __pyx_L1_error) __pyx_v_cpDependencies = ((cudaGraphNode_t *)calloc(__pyx_t_6, (sizeof(cudaGraphNode_t)))); /* "cuda/cudart.pyx":23958 * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ __pyx_t_4 = (__pyx_v_cpDependencies == NULL); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":23959 * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) # <<<<<<<<<<<<<< * else: * for idx in range(len(pDependencies)): */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23959, __pyx_L1_error) __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23959, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23959, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23959, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_n_u_x_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23959, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23959, __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, 23959, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23959, __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 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 23959, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_7, 0, 0, 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __PYX_ERR(0, 23959, __pyx_L1_error) /* "cuda/cudart.pyx":23958 * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ } /* "cuda/cudart.pyx":23961 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: * for idx in range(len(pDependencies)): # <<<<<<<<<<<<<< * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * cdst = utils.HelperInputVoidPtr(dst) */ /*else*/ { __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23961, __pyx_L1_error) __pyx_t_8 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_idx = __pyx_t_9; /* "cuda/cudart.pyx":23962 * else: * for idx in range(len(pDependencies)): * cpDependencies[idx] = (pDependencies[idx])._ptr[0] # <<<<<<<<<<<<<< * cdst = utils.HelperInputVoidPtr(dst) * cdef void* cdst_ptr = cdst.cptr */ __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_pDependencies, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 23962, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); (__pyx_v_cpDependencies[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_7)->__pyx_base._ptr[0])); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } /* "cuda/cudart.pyx":23956 * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: # <<<<<<<<<<<<<< * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: */ } /* "cuda/cudart.pyx":23963 * for idx in range(len(pDependencies)): * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * cdst = utils.HelperInputVoidPtr(dst) # <<<<<<<<<<<<<< * cdef void* cdst_ptr = cdst.cptr * csrc = utils.HelperInputVoidPtr(src) */ __pyx_t_7 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_dst); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 23963, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_v_cdst = __pyx_t_7; __pyx_t_7 = 0; /* "cuda/cudart.pyx":23964 * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * cdst = utils.HelperInputVoidPtr(dst) * cdef void* cdst_ptr = cdst.cptr # <<<<<<<<<<<<<< * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_cdst, __pyx_n_s_cptr); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 23964, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_7); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23964, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_v_cdst_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); /* "cuda/cudart.pyx":23965 * cdst = utils.HelperInputVoidPtr(dst) * cdef void* cdst_ptr = cdst.cptr * csrc = utils.HelperInputVoidPtr(src) # <<<<<<<<<<<<<< * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value */ __pyx_t_7 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_src); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 23965, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_v_csrc = __pyx_t_7; __pyx_t_7 = 0; /* "cuda/cudart.pyx":23966 * cdef void* cdst_ptr = cdst.cptr * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr # <<<<<<<<<<<<<< * cdef ccudart.cudaMemcpyKind ckind = kind.value * err = ccudart.cudaGraphAddMemcpyNode1D(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cdst_ptr, csrc_ptr, count, ckind) */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_csrc, __pyx_n_s_cptr); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 23966, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_7); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23966, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_v_csrc_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); /* "cuda/cudart.pyx":23967 * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value # <<<<<<<<<<<<<< * err = ccudart.cudaGraphAddMemcpyNode1D(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cdst_ptr, csrc_ptr, count, ckind) * if cpDependencies is not NULL: */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_kind, __pyx_n_s_value); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 23967, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_10 = ((enum cudaMemcpyKind)__Pyx_PyInt_As_enum__cudaMemcpyKind(__pyx_t_7)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23967, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_v_ckind = __pyx_t_10; /* "cuda/cudart.pyx":23968 * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value * err = ccudart.cudaGraphAddMemcpyNode1D(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cdst_ptr, csrc_ptr, count, ckind) # <<<<<<<<<<<<<< * if cpDependencies is not NULL: * free(cpDependencies) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23968, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 == 1); if (__pyx_t_4) { __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_pDependencies, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 23968, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_11 = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_7)->__pyx_base._ptr); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else { __pyx_t_11 = __pyx_v_cpDependencies; } __pyx_t_12 = __pyx_f_4cuda_7ccudart_cudaGraphAddMemcpyNode1D(((cudaGraphNode_t *)__pyx_v_pGraphNode->__pyx_base._ptr), __pyx_v_cgraph, __pyx_t_11, __pyx_v_numDependencies, __pyx_v_cdst_ptr, __pyx_v_csrc_ptr, __pyx_v_count, __pyx_v_ckind); if (unlikely(__pyx_t_12 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 23968, __pyx_L1_error) __pyx_v_err = __pyx_t_12; /* "cuda/cudart.pyx":23969 * cdef ccudart.cudaMemcpyKind ckind = kind.value * err = ccudart.cudaGraphAddMemcpyNode1D(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cdst_ptr, csrc_ptr, count, ckind) * if cpDependencies is not NULL: # <<<<<<<<<<<<<< * free(cpDependencies) * return (cudaError_t(err), pGraphNode) */ __pyx_t_4 = (__pyx_v_cpDependencies != NULL); if (__pyx_t_4) { /* "cuda/cudart.pyx":23970 * err = ccudart.cudaGraphAddMemcpyNode1D(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cdst_ptr, csrc_ptr, count, ckind) * if cpDependencies is not NULL: * free(cpDependencies) # <<<<<<<<<<<<<< * return (cudaError_t(err), pGraphNode) * */ free(__pyx_v_cpDependencies); /* "cuda/cudart.pyx":23969 * cdef ccudart.cudaMemcpyKind ckind = kind.value * err = ccudart.cudaGraphAddMemcpyNode1D(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cdst_ptr, csrc_ptr, count, ckind) * if cpDependencies is not NULL: # <<<<<<<<<<<<<< * free(cpDependencies) * return (cudaError_t(err), pGraphNode) */ } /* "cuda/cudart.pyx":23971 * if cpDependencies is not NULL: * free(cpDependencies) * return (cudaError_t(err), pGraphNode) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23971, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23971, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_13 = NULL; __pyx_t_14 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_13)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_13); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); __pyx_t_14 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_t_3}; __pyx_t_7 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_14, 1+__pyx_t_14); __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 23971, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23971, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_7); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_7)) __PYX_ERR(0, 23971, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pGraphNode); __Pyx_GIVEREF((PyObject *)__pyx_v_pGraphNode); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_pGraphNode))) __PYX_ERR(0, 23971, __pyx_L1_error); __pyx_t_7 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":23885 * return (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_7); __Pyx_XDECREF(__pyx_t_13); __Pyx_AddTraceback("cuda.cudart.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(__pyx_v_cdst); __Pyx_XDECREF(__pyx_v_csrc); __Pyx_XDECREF(__pyx_gb_4cuda_6cudart_24cudaGraphAddMemcpyNode1D_2generator14); __Pyx_XDECREF(__pyx_v_pDependencies); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":23973 * return (cudaError_t(err), pGraphNode) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphMemcpyNodeGetParams(node): * """ Returns a memcpy node's parameters. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_381cudaGraphMemcpyNodeGetParams(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_380cudaGraphMemcpyNodeGetParams, "cudaGraphMemcpyNodeGetParams(node)\n Returns a memcpy node's parameters.\n\n Returns the parameters of memcpy node `node` in `pNodeParams`.\n\n Parameters\n ----------\n node : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Node to get the parameters for\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n pNodeParams : :py:obj:`~.cudaMemcpy3DParms`\n Pointer to return the parameters\n\n See Also\n --------\n :py:obj:`~.cudaMemcpy3D`, :py:obj:`~.cudaGraphAddMemcpyNode`, :py:obj:`~.cudaGraphMemcpyNodeSetParams`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_381cudaGraphMemcpyNodeGetParams = {"cudaGraphMemcpyNodeGetParams", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_381cudaGraphMemcpyNodeGetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_380cudaGraphMemcpyNodeGetParams}; static PyObject *__pyx_pw_4cuda_6cudart_381cudaGraphMemcpyNodeGetParams(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_node_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_node_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23973, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphMemcpyNodeGetParams") < 0)) __PYX_ERR(0, 23973, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_node = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphMemcpyNodeGetParams", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 23973, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphMemcpyNodeGetParams", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_380cudaGraphMemcpyNodeGetParams(__pyx_self, __pyx_v_node); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_380cudaGraphMemcpyNodeGetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node) { cudaGraphNode_t __pyx_v_cnode; PyObject *__pyx_v_pnode = NULL; struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *__pyx_v_pNodeParams = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__542) __Pyx_RefNannySetupContext("cudaGraphMemcpyNodeGetParams", 1); __Pyx_TraceCall("cudaGraphMemcpyNodeGetParams", __pyx_f[0], 23973, 0, __PYX_ERR(0, 23973, __pyx_L1_error)); /* "cuda/cudart.pyx":23996 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_node == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":23997 * cdef ccudart.cudaGraphNode_t cnode * if node is None: * cnode = 0 # <<<<<<<<<<<<<< * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) */ __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":23996 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":23998 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":23999 * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) # <<<<<<<<<<<<<< * cnode = pnode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23999, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pnode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":24000 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) * cnode = pnode # <<<<<<<<<<<<<< * else: * pnode = int(cudaGraphNode_t(node)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24000, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":23998 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ goto __pyx_L3; } /* "cuda/cudart.pyx":24002 * cnode = pnode * else: * pnode = int(cudaGraphNode_t(node)) # <<<<<<<<<<<<<< * cnode = pnode * cdef cudaMemcpy3DParms pNodeParams = cudaMemcpy3DParms() */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24002, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24002, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pnode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":24003 * else: * pnode = int(cudaGraphNode_t(node)) * cnode = pnode # <<<<<<<<<<<<<< * cdef cudaMemcpy3DParms pNodeParams = cudaMemcpy3DParms() * err = ccudart.cudaGraphMemcpyNodeGetParams(cnode, pNodeParams._ptr) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24003, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":24004 * pnode = int(cudaGraphNode_t(node)) * cnode = pnode * cdef cudaMemcpy3DParms pNodeParams = cudaMemcpy3DParms() # <<<<<<<<<<<<<< * err = ccudart.cudaGraphMemcpyNodeGetParams(cnode, pNodeParams._ptr) * return (cudaError_t(err), pNodeParams) */ __pyx_t_5 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemcpy3DParms)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24004, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pNodeParams = ((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *)__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":24005 * cnode = pnode * cdef cudaMemcpy3DParms pNodeParams = cudaMemcpy3DParms() * err = ccudart.cudaGraphMemcpyNodeGetParams(cnode, pNodeParams._ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err), pNodeParams) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaGraphMemcpyNodeGetParams(__pyx_v_cnode, ((struct cudaMemcpy3DParms *)__pyx_v_pNodeParams->_ptr)); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 24005, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":24006 * cdef cudaMemcpy3DParms pNodeParams = cudaMemcpy3DParms() * err = ccudart.cudaGraphMemcpyNodeGetParams(cnode, pNodeParams._ptr) * return (cudaError_t(err), pNodeParams) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24006, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24006, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24006, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24006, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 24006, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pNodeParams); __Pyx_GIVEREF((PyObject *)__pyx_v_pNodeParams); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_v_pNodeParams))) __PYX_ERR(0, 24006, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":23973 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":24008 * return (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_6cudart_383cudaGraphMemcpyNodeSetParams(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_382cudaGraphMemcpyNodeSetParams, "cudaGraphMemcpyNodeSetParams(node, cudaMemcpy3DParms pNodeParams: Optional[cudaMemcpy3DParms])\n Sets a memcpy node's parameters.\n\n Sets the parameters of memcpy node `node` to `pNodeParams`.\n\n Parameters\n ----------\n node : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Node to set the parameters for\n pNodeParams : :py:obj:`~.cudaMemcpy3DParms`\n Parameters to copy\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n\n See Also\n --------\n :py:obj:`~.cudaGraphNodeSetParams`, :py:obj:`~.cudaMemcpy3D`, :py:obj:`~.cudaGraphMemcpyNodeSetParamsToSymbol`, :py:obj:`~.cudaGraphMemcpyNodeSetParamsFromSymbol`, :py:obj:`~.cudaGraphMemcpyNodeSetParams1D`, :py:obj:`~.cudaGraphAddMemcpyNode`, :py:obj:`~.cudaGraphMemcpyNodeGetParams`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_383cudaGraphMemcpyNodeSetParams = {"cudaGraphMemcpyNodeSetParams", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_383cudaGraphMemcpyNodeSetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_382cudaGraphMemcpyNodeSetParams}; static PyObject *__pyx_pw_4cuda_6cudart_383cudaGraphMemcpyNodeSetParams(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_node_2,&__pyx_n_s_pNodeParams,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_node_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24008, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pNodeParams)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24008, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphMemcpyNodeSetParams", 1, 2, 2, 1); __PYX_ERR(0, 24008, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphMemcpyNodeSetParams") < 0)) __PYX_ERR(0, 24008, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_node = values[0]; __pyx_v_pNodeParams = ((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *)values[1]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphMemcpyNodeSetParams", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 24008, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaMemcpy3DParms, 1, "pNodeParams", 0))) __PYX_ERR(0, 24009, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_382cudaGraphMemcpyNodeSetParams(__pyx_self, __pyx_v_node, __pyx_v_pNodeParams); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_382cudaGraphMemcpyNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node, struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *__pyx_v_pNodeParams) { cudaGraphNode_t __pyx_v_cnode; PyObject *__pyx_v_pnode = NULL; struct cudaMemcpy3DParms *__pyx_v_cpNodeParams_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; struct cudaMemcpy3DParms *__pyx_t_6; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__543) __Pyx_RefNannySetupContext("cudaGraphMemcpyNodeSetParams", 1); __Pyx_TraceCall("cudaGraphMemcpyNodeSetParams", __pyx_f[0], 24008, 0, __PYX_ERR(0, 24008, __pyx_L1_error)); /* "cuda/cudart.pyx":24031 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_node == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":24032 * cdef ccudart.cudaGraphNode_t cnode * if node is None: * cnode = 0 # <<<<<<<<<<<<<< * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) */ __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":24031 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":24033 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":24034 * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) # <<<<<<<<<<<<<< * cnode = pnode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24034, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pnode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":24035 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) * cnode = pnode # <<<<<<<<<<<<<< * else: * pnode = int(cudaGraphNode_t(node)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24035, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":24033 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ goto __pyx_L3; } /* "cuda/cudart.pyx":24037 * cnode = pnode * else: * pnode = int(cudaGraphNode_t(node)) # <<<<<<<<<<<<<< * cnode = pnode * cdef ccudart.cudaMemcpy3DParms* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24037, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24037, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pnode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":24038 * else: * pnode = int(cudaGraphNode_t(node)) * cnode = pnode # <<<<<<<<<<<<<< * cdef ccudart.cudaMemcpy3DParms* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL * err = ccudart.cudaGraphMemcpyNodeSetParams(cnode, cpNodeParams_ptr) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24038, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":24039 * pnode = int(cudaGraphNode_t(node)) * cnode = pnode * cdef ccudart.cudaMemcpy3DParms* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaGraphMemcpyNodeSetParams(cnode, cpNodeParams_ptr) * return (cudaError_t(err),) */ __pyx_t_5 = PyObject_RichCompare(((PyObject *)__pyx_v_pNodeParams), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24039, __pyx_L1_error) __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 24039, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_1) { __pyx_t_6 = __pyx_v_pNodeParams->_ptr; } else { __pyx_t_6 = NULL; } __pyx_v_cpNodeParams_ptr = __pyx_t_6; /* "cuda/cudart.pyx":24040 * cnode = pnode * cdef ccudart.cudaMemcpy3DParms* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL * err = ccudart.cudaGraphMemcpyNodeSetParams(cnode, cpNodeParams_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaGraphMemcpyNodeSetParams(__pyx_v_cnode, __pyx_v_cpNodeParams_ptr); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 24040, __pyx_L1_error) __pyx_v_err = __pyx_t_7; /* "cuda/cudart.pyx":24041 * cdef ccudart.cudaMemcpy3DParms* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL * err = ccudart.cudaGraphMemcpyNodeSetParams(cnode, cpNodeParams_ptr) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24041, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 24041, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_8}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24041, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24041, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 24041, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":24008 * return (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_5); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.cudaGraphMemcpyNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pnode); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":24043 * return (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_6cudart_385cudaGraphMemcpyNodeSetParams1D(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_384cudaGraphMemcpyNodeSetParams1D, "cudaGraphMemcpyNodeSetParams1D(node, dst, src, size_t count, kind: cudaMemcpyKind)\n Sets a memcpy node's parameters to perform a 1-dimensional copy.\n\n Sets the parameters of memcpy node `node` to the copy described by the\n provided parameters.\n\n When the graph is launched, the node will copy `count` bytes from the\n memory area pointed to by `src` to the memory area pointed to by `dst`,\n where `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`.\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. Launching a memcpy node with dst and src\n pointers that do not match the direction of the copy results in an\n undefined behavior.\n\n Parameters\n ----------\n node : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Node to set the parameters for\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`\n\n See Also\n --------\n :py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaGraphMemcpyNodeSetParams`, :py:obj:`~.cudaGraphAddMemcpyNode`, :py:obj:`~.cudaGraphMemcpyNodeGetParams`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_385cudaGraphMemcpyNodeSetParams1D = {"cudaGraphMemcpyNodeSetParams1D", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_385cudaGraphMemcpyNodeSetParams1D, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_384cudaGraphMemcpyNodeSetParams1D}; static PyObject *__pyx_pw_4cuda_6cudart_385cudaGraphMemcpyNodeSetParams1D(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_node_2,&__pyx_n_s_dst_2,&__pyx_n_s_src,&__pyx_n_s_count,&__pyx_n_s_kind_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_node_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24043, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dst_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24043, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphMemcpyNodeSetParams1D", 1, 5, 5, 1); __PYX_ERR(0, 24043, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_src)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24043, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphMemcpyNodeSetParams1D", 1, 5, 5, 2); __PYX_ERR(0, 24043, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_count)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24043, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphMemcpyNodeSetParams1D", 1, 5, 5, 3); __PYX_ERR(0, 24043, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_kind_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[4]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24043, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphMemcpyNodeSetParams1D", 1, 5, 5, 4); __PYX_ERR(0, 24043, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphMemcpyNodeSetParams1D") < 0)) __PYX_ERR(0, 24043, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 5)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); } __pyx_v_node = values[0]; __pyx_v_dst = values[1]; __pyx_v_src = values[2]; __pyx_v_count = __Pyx_PyInt_As_size_t(values[3]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 24044, __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, 24043, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 24044, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_384cudaGraphMemcpyNodeSetParams1D(__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; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_384cudaGraphMemcpyNodeSetParams1D(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_cnode; PyObject *__pyx_v_pnode = NULL; PyObject *__pyx_v_cdst = NULL; void *__pyx_v_cdst_ptr; PyObject *__pyx_v_csrc = NULL; void *__pyx_v_csrc_ptr; enum cudaMemcpyKind __pyx_v_ckind; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; enum cudaMemcpyKind __pyx_t_6; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__544) __Pyx_RefNannySetupContext("cudaGraphMemcpyNodeSetParams1D", 1); __Pyx_TraceCall("cudaGraphMemcpyNodeSetParams1D", __pyx_f[0], 24043, 0, __PYX_ERR(0, 24043, __pyx_L1_error)); /* "cuda/cudart.pyx":24086 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_node == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":24087 * cdef ccudart.cudaGraphNode_t cnode * if node is None: * cnode = 0 # <<<<<<<<<<<<<< * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) */ __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":24086 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":24088 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":24089 * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) # <<<<<<<<<<<<<< * cnode = pnode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24089, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pnode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":24090 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) * cnode = pnode # <<<<<<<<<<<<<< * else: * pnode = int(cudaGraphNode_t(node)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24090, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":24088 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ goto __pyx_L3; } /* "cuda/cudart.pyx":24092 * cnode = pnode * else: * pnode = int(cudaGraphNode_t(node)) # <<<<<<<<<<<<<< * cnode = pnode * cdst = utils.HelperInputVoidPtr(dst) */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24092, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24092, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pnode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":24093 * else: * pnode = int(cudaGraphNode_t(node)) * cnode = pnode # <<<<<<<<<<<<<< * cdst = utils.HelperInputVoidPtr(dst) * cdef void* cdst_ptr = cdst.cptr */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24093, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":24094 * pnode = int(cudaGraphNode_t(node)) * cnode = pnode * cdst = utils.HelperInputVoidPtr(dst) # <<<<<<<<<<<<<< * cdef void* cdst_ptr = cdst.cptr * csrc = utils.HelperInputVoidPtr(src) */ __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_dst); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24094, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_cdst = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":24095 * cnode = pnode * cdst = utils.HelperInputVoidPtr(dst) * cdef void* cdst_ptr = cdst.cptr # <<<<<<<<<<<<<< * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_cdst, __pyx_n_s_cptr); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24095, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24095, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_cdst_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":24096 * cdst = utils.HelperInputVoidPtr(dst) * cdef void* cdst_ptr = cdst.cptr * csrc = utils.HelperInputVoidPtr(src) # <<<<<<<<<<<<<< * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value */ __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_src); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24096, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_csrc = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":24097 * cdef void* cdst_ptr = cdst.cptr * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr # <<<<<<<<<<<<<< * cdef ccudart.cudaMemcpyKind ckind = kind.value * err = ccudart.cudaGraphMemcpyNodeSetParams1D(cnode, cdst_ptr, csrc_ptr, count, ckind) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_csrc, __pyx_n_s_cptr); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24097, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_5); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24097, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_csrc_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":24098 * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value # <<<<<<<<<<<<<< * err = ccudart.cudaGraphMemcpyNodeSetParams1D(cnode, cdst_ptr, csrc_ptr, count, ckind) * return (cudaError_t(err),) */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_kind, __pyx_n_s_value); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24098, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = ((enum cudaMemcpyKind)__Pyx_PyInt_As_enum__cudaMemcpyKind(__pyx_t_5)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24098, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_ckind = __pyx_t_6; /* "cuda/cudart.pyx":24099 * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value * err = ccudart.cudaGraphMemcpyNodeSetParams1D(cnode, cdst_ptr, csrc_ptr, count, ckind) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaGraphMemcpyNodeSetParams1D(__pyx_v_cnode, __pyx_v_cdst_ptr, __pyx_v_csrc_ptr, __pyx_v_count, __pyx_v_ckind); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 24099, __pyx_L1_error) __pyx_v_err = __pyx_t_7; /* "cuda/cudart.pyx":24100 * cdef ccudart.cudaMemcpyKind ckind = kind.value * err = ccudart.cudaGraphMemcpyNodeSetParams1D(cnode, cdst_ptr, csrc_ptr, count, ckind) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 24100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_8}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 24100, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":24043 * return (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_5); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.cudaGraphMemcpyNodeSetParams1D", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pnode); __Pyx_XDECREF(__pyx_v_cdst); __Pyx_XDECREF(__pyx_v_csrc); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":24102 * return (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_6cudart_387cudaGraphAddMemsetNode(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_386cudaGraphAddMemsetNode, "cudaGraphAddMemsetNode(graph, pDependencies: Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], size_t numDependencies, cudaMemsetParams pMemsetParams: Optional[cudaMemsetParams])\n Creates a memset node and adds it to a graph.\n\n Creates a new memset node and adds it to `graph` with `numDependencies`\n dependencies specified via `pDependencies`. It is possible for\n `numDependencies` to be 0, in which case the node will be placed at the\n root of the graph. `pDependencies` may not have any duplicate entries.\n A handle to the new node will be returned in `pGraphNode`.\n\n The element size must be 1, 2, or 4 bytes. When the graph is launched,\n the node will perform the memset described by `pMemsetParams`.\n\n Parameters\n ----------\n graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n Graph to which to add the node\n pDependencies : List[:py:obj:`~.cudaGraphNode_t`]\n Dependencies of the node\n numDependencies : size_t\n Number of dependencies\n pMemsetParams : :py:obj:`~.cudaMemsetParams`\n Parameters for the memory set\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidDevice`\n pGraphNode : :py:obj:`~.cudaGraphNode_t`\n Returns newly created node\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_387cudaGraphAddMemsetNode = {"cudaGraphAddMemsetNode", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_387cudaGraphAddMemsetNode, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_386cudaGraphAddMemsetNode}; static PyObject *__pyx_pw_4cuda_6cudart_387cudaGraphAddMemsetNode(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_graph_2,&__pyx_n_s_pDependencies,&__pyx_n_s_numDependencies,&__pyx_n_s_pMemsetParams,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_graph_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24102, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pDependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24102, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddMemsetNode", 1, 4, 4, 1); __PYX_ERR(0, 24102, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_numDependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24102, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddMemsetNode", 1, 4, 4, 2); __PYX_ERR(0, 24102, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pMemsetParams)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24102, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddMemsetNode", 1, 4, 4, 3); __PYX_ERR(0, 24102, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphAddMemsetNode") < 0)) __PYX_ERR(0, 24102, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); } __pyx_v_graph = values[0]; __pyx_v_pDependencies = values[1]; __pyx_v_numDependencies = __Pyx_PyInt_As_size_t(values[2]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 24103, __pyx_L3_error) __pyx_v_pMemsetParams = ((struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *)values[3]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphAddMemsetNode", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 24102, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaMemsetParams, 1, "pMemsetParams", 0))) __PYX_ERR(0, 24103, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_386cudaGraphAddMemsetNode(__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; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_22cudaGraphAddMemsetNode_2generator15(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":24138 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ static PyObject *__pyx_pf_4cuda_6cudart_22cudaGraphAddMemsetNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct_15_genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_15_genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_15_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_15_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 24138, __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_6cudart_22cudaGraphAddMemsetNode_2generator15, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaGraphAddMemsetNode_locals_ge, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 24138, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.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_6cudart_22cudaGraphAddMemsetNode_2generator15(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_15_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_15_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 24138, 0, __PYX_ERR(0, 24138, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 24138, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 24138, __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, 24138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24138, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 24138, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 24138, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 24138, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 24138, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 24138, __pyx_L1_error) } 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_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":24102 * return (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_6cudart_386cudaGraphAddMemsetNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_pDependencies, size_t __pyx_v_numDependencies, struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *__pyx_v_pMemsetParams) { cudaGraph_t __pyx_v_cgraph; PyObject *__pyx_v_pgraph = NULL; struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *__pyx_v_pGraphNode = 0; cudaGraphNode_t *__pyx_v_cpDependencies; Py_ssize_t __pyx_v_idx; struct cudaMemsetParams *__pyx_v_cpMemsetParams_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_gb_4cuda_6cudart_22cudaGraphAddMemsetNode_2generator15 = 0; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; Py_ssize_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; Py_ssize_t __pyx_t_8; Py_ssize_t __pyx_t_9; struct cudaMemsetParams *__pyx_t_10; cudaGraphNode_t *__pyx_t_11; cudaError_t __pyx_t_12; PyObject *__pyx_t_13 = NULL; unsigned int __pyx_t_14; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__545) __Pyx_RefNannySetupContext("cudaGraphAddMemsetNode", 0); __Pyx_TraceCall("cudaGraphAddMemsetNode", __pyx_f[0], 24102, 0, __PYX_ERR(0, 24102, __pyx_L1_error)); __Pyx_INCREF(__pyx_v_pDependencies); /* "cuda/cudart.pyx":24137 * :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,cuda.CUgraphNode)) for _x in pDependencies): * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.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, 24137, __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/cudart.pyx":24138 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ __pyx_t_1 = __pyx_pf_4cuda_6cudart_22cudaGraphAddMemsetNode_genexpr(NULL, __pyx_v_pDependencies); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24138, __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, 24138, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_4 = (!__pyx_t_2); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":24139 * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") # <<<<<<<<<<<<<< * cdef ccudart.cudaGraph_t cgraph * if graph is None: */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__534, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24139, __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, 24139, __pyx_L1_error) /* "cuda/cudart.pyx":24138 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ } /* "cuda/cudart.pyx":24141 * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_4 = (__pyx_v_graph == Py_None); if (__pyx_t_4) { /* "cuda/cudart.pyx":24142 * cdef ccudart.cudaGraph_t cgraph * if graph is None: * cgraph = 0 # <<<<<<<<<<<<<< * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) */ __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":24141 * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L4; } /* "cuda/cudart.pyx":24143 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_4 = __pyx_t_2; __pyx_L5_bool_binop_done:; if (__pyx_t_4) { /* "cuda/cudart.pyx":24144 * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) # <<<<<<<<<<<<<< * cgraph = pgraph * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24144, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pgraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":24145 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) * cgraph = pgraph # <<<<<<<<<<<<<< * else: * pgraph = int(cudaGraph_t(graph)) */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24145, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); /* "cuda/cudart.pyx":24143 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ goto __pyx_L4; } /* "cuda/cudart.pyx":24147 * cgraph = pgraph * else: * pgraph = int(cudaGraph_t(graph)) # <<<<<<<<<<<<<< * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24147, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24147, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pgraph = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":24148 * else: * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph # <<<<<<<<<<<<<< * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24148, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); } __pyx_L4:; /* "cuda/cudart.pyx":24149 * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24149, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_pGraphNode = ((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":24150 * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL # <<<<<<<<<<<<<< * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) */ __pyx_v_cpDependencies = NULL; /* "cuda/cudart.pyx":24151 * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: # <<<<<<<<<<<<<< * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24151, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 > 0); if (__pyx_t_4) { /* "cuda/cudart.pyx":24152 * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) # <<<<<<<<<<<<<< * if cpDependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24152, __pyx_L1_error) __pyx_v_cpDependencies = ((cudaGraphNode_t *)calloc(__pyx_t_6, (sizeof(cudaGraphNode_t)))); /* "cuda/cudart.pyx":24153 * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ __pyx_t_4 = (__pyx_v_cpDependencies == NULL); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":24154 * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) # <<<<<<<<<<<<<< * else: * for idx in range(len(pDependencies)): */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24154, __pyx_L1_error) __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_n_u_x_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24154, __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, 24154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24154, __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 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24154, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_7, 0, 0, 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __PYX_ERR(0, 24154, __pyx_L1_error) /* "cuda/cudart.pyx":24153 * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ } /* "cuda/cudart.pyx":24156 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: * for idx in range(len(pDependencies)): # <<<<<<<<<<<<<< * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) */ /*else*/ { __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24156, __pyx_L1_error) __pyx_t_8 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_idx = __pyx_t_9; /* "cuda/cudart.pyx":24157 * else: * for idx in range(len(pDependencies)): * cpDependencies[idx] = (pDependencies[idx])._ptr[0] # <<<<<<<<<<<<<< * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * cdef ccudart.cudaMemsetParams* cpMemsetParams_ptr = pMemsetParams._ptr if pMemsetParams != None else NULL */ __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_pDependencies, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24157, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); (__pyx_v_cpDependencies[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_7)->__pyx_base._ptr[0])); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } /* "cuda/cudart.pyx":24151 * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: # <<<<<<<<<<<<<< * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: */ } /* "cuda/cudart.pyx":24158 * for idx in range(len(pDependencies)): * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) # <<<<<<<<<<<<<< * cdef ccudart.cudaMemsetParams* cpMemsetParams_ptr = pMemsetParams._ptr if pMemsetParams != None else NULL * err = ccudart.cudaGraphAddMemsetNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cpMemsetParams_ptr) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24158, __pyx_L1_error) __pyx_t_4 = (__pyx_v_numDependencies > ((size_t)__pyx_t_6)); if (unlikely(__pyx_t_4)) { __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24158, __pyx_L1_error) __pyx_t_7 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24158, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24158, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_List_is_too_small, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24158, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_7, __pyx_kp_u__400); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24158, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyInt_FromSize_t(__pyx_v_numDependencies); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24158, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24158, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24158, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24158, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 24158, __pyx_L1_error) } /* "cuda/cudart.pyx":24159 * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * cdef ccudart.cudaMemsetParams* cpMemsetParams_ptr = pMemsetParams._ptr if pMemsetParams != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaGraphAddMemsetNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cpMemsetParams_ptr) * if cpDependencies is not NULL: */ __pyx_t_3 = PyObject_RichCompare(((PyObject *)__pyx_v_pMemsetParams), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24159, __pyx_L1_error) __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 24159, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_4) { __pyx_t_10 = __pyx_v_pMemsetParams->_ptr; } else { __pyx_t_10 = NULL; } __pyx_v_cpMemsetParams_ptr = __pyx_t_10; /* "cuda/cudart.pyx":24160 * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * cdef ccudart.cudaMemsetParams* cpMemsetParams_ptr = pMemsetParams._ptr if pMemsetParams != None else NULL * err = ccudart.cudaGraphAddMemsetNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cpMemsetParams_ptr) # <<<<<<<<<<<<<< * if cpDependencies is not NULL: * free(cpDependencies) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24160, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 == 1); if (__pyx_t_4) { __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_pDependencies, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24160, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_11 = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_3)->__pyx_base._ptr); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_11 = __pyx_v_cpDependencies; } __pyx_t_12 = __pyx_f_4cuda_7ccudart_cudaGraphAddMemsetNode(((cudaGraphNode_t *)__pyx_v_pGraphNode->__pyx_base._ptr), __pyx_v_cgraph, __pyx_t_11, __pyx_v_numDependencies, __pyx_v_cpMemsetParams_ptr); if (unlikely(__pyx_t_12 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 24160, __pyx_L1_error) __pyx_v_err = __pyx_t_12; /* "cuda/cudart.pyx":24161 * cdef ccudart.cudaMemsetParams* cpMemsetParams_ptr = pMemsetParams._ptr if pMemsetParams != None else NULL * err = ccudart.cudaGraphAddMemsetNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cpMemsetParams_ptr) * if cpDependencies is not NULL: # <<<<<<<<<<<<<< * free(cpDependencies) * return (cudaError_t(err), pGraphNode) */ __pyx_t_4 = (__pyx_v_cpDependencies != NULL); if (__pyx_t_4) { /* "cuda/cudart.pyx":24162 * err = ccudart.cudaGraphAddMemsetNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cpMemsetParams_ptr) * if cpDependencies is not NULL: * free(cpDependencies) # <<<<<<<<<<<<<< * return (cudaError_t(err), pGraphNode) * */ free(__pyx_v_cpDependencies); /* "cuda/cudart.pyx":24161 * cdef ccudart.cudaMemsetParams* cpMemsetParams_ptr = pMemsetParams._ptr if pMemsetParams != None else NULL * err = ccudart.cudaGraphAddMemsetNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cpMemsetParams_ptr) * if cpDependencies is not NULL: # <<<<<<<<<<<<<< * free(cpDependencies) * return (cudaError_t(err), pGraphNode) */ } /* "cuda/cudart.pyx":24163 * if cpDependencies is not NULL: * free(cpDependencies) * return (cudaError_t(err), pGraphNode) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24163, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24163, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_13 = NULL; __pyx_t_14 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_13)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_13); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_14 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_t_1}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_14, 1+__pyx_t_14); __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24163, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24163, __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)) __PYX_ERR(0, 24163, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pGraphNode); __Pyx_GIVEREF((PyObject *)__pyx_v_pGraphNode); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_pGraphNode))) __PYX_ERR(0, 24163, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":24102 * return (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_7); __Pyx_XDECREF(__pyx_t_13); __Pyx_AddTraceback("cuda.cudart.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_6cudart_22cudaGraphAddMemsetNode_2generator15); __Pyx_XDECREF(__pyx_v_pDependencies); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":24165 * return (cudaError_t(err), pGraphNode) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphMemsetNodeGetParams(node): * """ Returns a memset node's parameters. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_389cudaGraphMemsetNodeGetParams(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_388cudaGraphMemsetNodeGetParams, "cudaGraphMemsetNodeGetParams(node)\n Returns a memset node's parameters.\n\n Returns the parameters of memset node `node` in `pNodeParams`.\n\n Parameters\n ----------\n node : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Node to get the parameters for\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n pNodeParams : :py:obj:`~.cudaMemsetParams`\n Pointer to return the parameters\n\n See Also\n --------\n :py:obj:`~.cudaMemset2D`, :py:obj:`~.cudaGraphAddMemsetNode`, :py:obj:`~.cudaGraphMemsetNodeSetParams`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_389cudaGraphMemsetNodeGetParams = {"cudaGraphMemsetNodeGetParams", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_389cudaGraphMemsetNodeGetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_388cudaGraphMemsetNodeGetParams}; static PyObject *__pyx_pw_4cuda_6cudart_389cudaGraphMemsetNodeGetParams(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_node_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_node_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24165, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphMemsetNodeGetParams") < 0)) __PYX_ERR(0, 24165, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_node = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphMemsetNodeGetParams", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 24165, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphMemsetNodeGetParams", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_388cudaGraphMemsetNodeGetParams(__pyx_self, __pyx_v_node); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_388cudaGraphMemsetNodeGetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node) { cudaGraphNode_t __pyx_v_cnode; PyObject *__pyx_v_pnode = NULL; struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *__pyx_v_pNodeParams = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__546) __Pyx_RefNannySetupContext("cudaGraphMemsetNodeGetParams", 1); __Pyx_TraceCall("cudaGraphMemsetNodeGetParams", __pyx_f[0], 24165, 0, __PYX_ERR(0, 24165, __pyx_L1_error)); /* "cuda/cudart.pyx":24188 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_node == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":24189 * cdef ccudart.cudaGraphNode_t cnode * if node is None: * cnode = 0 # <<<<<<<<<<<<<< * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) */ __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":24188 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":24190 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":24191 * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) # <<<<<<<<<<<<<< * cnode = pnode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24191, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pnode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":24192 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) * cnode = pnode # <<<<<<<<<<<<<< * else: * pnode = int(cudaGraphNode_t(node)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24192, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":24190 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ goto __pyx_L3; } /* "cuda/cudart.pyx":24194 * cnode = pnode * else: * pnode = int(cudaGraphNode_t(node)) # <<<<<<<<<<<<<< * cnode = pnode * cdef cudaMemsetParams pNodeParams = cudaMemsetParams() */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24194, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24194, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pnode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":24195 * else: * pnode = int(cudaGraphNode_t(node)) * cnode = pnode # <<<<<<<<<<<<<< * cdef cudaMemsetParams pNodeParams = cudaMemsetParams() * err = ccudart.cudaGraphMemsetNodeGetParams(cnode, pNodeParams._ptr) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24195, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":24196 * pnode = int(cudaGraphNode_t(node)) * cnode = pnode * cdef cudaMemsetParams pNodeParams = cudaMemsetParams() # <<<<<<<<<<<<<< * err = ccudart.cudaGraphMemsetNodeGetParams(cnode, pNodeParams._ptr) * return (cudaError_t(err), pNodeParams) */ __pyx_t_5 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemsetParams)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24196, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pNodeParams = ((struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *)__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":24197 * cnode = pnode * cdef cudaMemsetParams pNodeParams = cudaMemsetParams() * err = ccudart.cudaGraphMemsetNodeGetParams(cnode, pNodeParams._ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err), pNodeParams) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaGraphMemsetNodeGetParams(__pyx_v_cnode, ((struct cudaMemsetParams *)__pyx_v_pNodeParams->_ptr)); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 24197, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":24198 * cdef cudaMemsetParams pNodeParams = cudaMemsetParams() * err = ccudart.cudaGraphMemsetNodeGetParams(cnode, pNodeParams._ptr) * return (cudaError_t(err), pNodeParams) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24198, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24198, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24198, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24198, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 24198, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pNodeParams); __Pyx_GIVEREF((PyObject *)__pyx_v_pNodeParams); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_v_pNodeParams))) __PYX_ERR(0, 24198, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":24165 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":24200 * return (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_6cudart_391cudaGraphMemsetNodeSetParams(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_390cudaGraphMemsetNodeSetParams, "cudaGraphMemsetNodeSetParams(node, cudaMemsetParams pNodeParams: Optional[cudaMemsetParams])\n Sets a memset node's parameters.\n\n Sets the parameters of memset node `node` to `pNodeParams`.\n\n Parameters\n ----------\n node : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Node to set the parameters for\n pNodeParams : :py:obj:`~.cudaMemsetParams`\n Parameters to copy\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\n See Also\n --------\n :py:obj:`~.cudaGraphNodeSetParams`, :py:obj:`~.cudaMemset2D`, :py:obj:`~.cudaGraphAddMemsetNode`, :py:obj:`~.cudaGraphMemsetNodeGetParams`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_391cudaGraphMemsetNodeSetParams = {"cudaGraphMemsetNodeSetParams", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_391cudaGraphMemsetNodeSetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_390cudaGraphMemsetNodeSetParams}; static PyObject *__pyx_pw_4cuda_6cudart_391cudaGraphMemsetNodeSetParams(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_node_2,&__pyx_n_s_pNodeParams,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_node_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24200, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pNodeParams)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24200, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphMemsetNodeSetParams", 1, 2, 2, 1); __PYX_ERR(0, 24200, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphMemsetNodeSetParams") < 0)) __PYX_ERR(0, 24200, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_node = values[0]; __pyx_v_pNodeParams = ((struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *)values[1]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphMemsetNodeSetParams", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 24200, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaMemsetParams, 1, "pNodeParams", 0))) __PYX_ERR(0, 24201, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_390cudaGraphMemsetNodeSetParams(__pyx_self, __pyx_v_node, __pyx_v_pNodeParams); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_390cudaGraphMemsetNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node, struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *__pyx_v_pNodeParams) { cudaGraphNode_t __pyx_v_cnode; PyObject *__pyx_v_pnode = NULL; struct cudaMemsetParams *__pyx_v_cpNodeParams_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; struct cudaMemsetParams *__pyx_t_6; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__547) __Pyx_RefNannySetupContext("cudaGraphMemsetNodeSetParams", 1); __Pyx_TraceCall("cudaGraphMemsetNodeSetParams", __pyx_f[0], 24200, 0, __PYX_ERR(0, 24200, __pyx_L1_error)); /* "cuda/cudart.pyx":24223 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_node == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":24224 * cdef ccudart.cudaGraphNode_t cnode * if node is None: * cnode = 0 # <<<<<<<<<<<<<< * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) */ __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":24223 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":24225 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":24226 * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) # <<<<<<<<<<<<<< * cnode = pnode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24226, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pnode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":24227 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) * cnode = pnode # <<<<<<<<<<<<<< * else: * pnode = int(cudaGraphNode_t(node)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24227, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":24225 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ goto __pyx_L3; } /* "cuda/cudart.pyx":24229 * cnode = pnode * else: * pnode = int(cudaGraphNode_t(node)) # <<<<<<<<<<<<<< * cnode = pnode * cdef ccudart.cudaMemsetParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pnode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":24230 * else: * pnode = int(cudaGraphNode_t(node)) * cnode = pnode # <<<<<<<<<<<<<< * cdef ccudart.cudaMemsetParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL * err = ccudart.cudaGraphMemsetNodeSetParams(cnode, cpNodeParams_ptr) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24230, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":24231 * pnode = int(cudaGraphNode_t(node)) * cnode = pnode * cdef ccudart.cudaMemsetParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaGraphMemsetNodeSetParams(cnode, cpNodeParams_ptr) * return (cudaError_t(err),) */ __pyx_t_5 = PyObject_RichCompare(((PyObject *)__pyx_v_pNodeParams), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24231, __pyx_L1_error) __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 24231, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_1) { __pyx_t_6 = __pyx_v_pNodeParams->_ptr; } else { __pyx_t_6 = NULL; } __pyx_v_cpNodeParams_ptr = __pyx_t_6; /* "cuda/cudart.pyx":24232 * cnode = pnode * cdef ccudart.cudaMemsetParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL * err = ccudart.cudaGraphMemsetNodeSetParams(cnode, cpNodeParams_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaGraphMemsetNodeSetParams(__pyx_v_cnode, __pyx_v_cpNodeParams_ptr); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 24232, __pyx_L1_error) __pyx_v_err = __pyx_t_7; /* "cuda/cudart.pyx":24233 * cdef ccudart.cudaMemsetParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL * err = ccudart.cudaGraphMemsetNodeSetParams(cnode, cpNodeParams_ptr) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24233, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 24233, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_8}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24233, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24233, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 24233, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":24200 * return (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_5); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.cudaGraphMemsetNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pnode); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":24235 * return (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_6cudart_393cudaGraphAddHostNode(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_392cudaGraphAddHostNode, "cudaGraphAddHostNode(graph, pDependencies: Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], size_t numDependencies, cudaHostNodeParams pNodeParams: Optional[cudaHostNodeParams])\n Creates a host execution node and adds it to a graph.\n\n Creates a new CPU execution node and adds it to `graph` with\n `numDependencies` dependencies specified via `pDependencies` and\n arguments specified in `pNodeParams`. It is possible for\n `numDependencies` to be 0, in which case the node will be placed at the\n root of the graph. `pDependencies` may not have any duplicate entries.\n A handle to the new node will be returned in `pGraphNode`.\n\n When the graph is launched, the node will invoke the specified CPU\n function. Host nodes are not supported under MPS with pre-Volta GPUs.\n\n Parameters\n ----------\n graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n Graph to which to add the node\n pDependencies : List[:py:obj:`~.cudaGraphNode_t`]\n Dependencies of the node\n numDependencies : size_t\n Number of dependencies\n pNodeParams : :py:obj:`~.cudaHostNodeParams`\n Parameters for the host node\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorNotSupported`, :py:obj:`~.cudaErrorInvalidValue`\n pGraphNode : :py:obj:`~.cudaGraphNode_t`\n Returns newly created node\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_393cudaGraphAddHostNode = {"cudaGraphAddHostNode", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_393cudaGraphAddHostNode, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_392cudaGraphAddHostNode}; static PyObject *__pyx_pw_4cuda_6cudart_393cudaGraphAddHostNode(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_graph_2,&__pyx_n_s_pDependencies,&__pyx_n_s_numDependencies,&__pyx_n_s_pNodeParams,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_graph_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24235, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pDependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24235, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddHostNode", 1, 4, 4, 1); __PYX_ERR(0, 24235, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_numDependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24235, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddHostNode", 1, 4, 4, 2); __PYX_ERR(0, 24235, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pNodeParams)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24235, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddHostNode", 1, 4, 4, 3); __PYX_ERR(0, 24235, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphAddHostNode") < 0)) __PYX_ERR(0, 24235, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); } __pyx_v_graph = values[0]; __pyx_v_pDependencies = values[1]; __pyx_v_numDependencies = __Pyx_PyInt_As_size_t(values[2]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 24236, __pyx_L3_error) __pyx_v_pNodeParams = ((struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *)values[3]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphAddHostNode", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 24235, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaHostNodeParams, 1, "pNodeParams", 0))) __PYX_ERR(0, 24236, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_392cudaGraphAddHostNode(__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; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_20cudaGraphAddHostNode_2generator16(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":24272 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ static PyObject *__pyx_pf_4cuda_6cudart_20cudaGraphAddHostNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct_16_genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_16_genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_16_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_16_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 24272, __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_6cudart_20cudaGraphAddHostNode_2generator16, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaGraphAddHostNode_locals_gene, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 24272, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.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_6cudart_20cudaGraphAddHostNode_2generator16(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_16_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_16_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 24272, 0, __PYX_ERR(0, 24272, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 24272, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 24272, __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, 24272, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24272, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 24272, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 24272, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24272, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 24272, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 24272, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24272, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 24272, __pyx_L1_error) } 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_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":24235 * return (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_6cudart_392cudaGraphAddHostNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_pDependencies, size_t __pyx_v_numDependencies, struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *__pyx_v_pNodeParams) { cudaGraph_t __pyx_v_cgraph; PyObject *__pyx_v_pgraph = NULL; struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *__pyx_v_pGraphNode = 0; cudaGraphNode_t *__pyx_v_cpDependencies; Py_ssize_t __pyx_v_idx; struct cudaHostNodeParams *__pyx_v_cpNodeParams_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_gb_4cuda_6cudart_20cudaGraphAddHostNode_2generator16 = 0; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; Py_ssize_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; Py_ssize_t __pyx_t_8; Py_ssize_t __pyx_t_9; struct cudaHostNodeParams *__pyx_t_10; cudaGraphNode_t *__pyx_t_11; cudaError_t __pyx_t_12; PyObject *__pyx_t_13 = NULL; unsigned int __pyx_t_14; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__548) __Pyx_RefNannySetupContext("cudaGraphAddHostNode", 0); __Pyx_TraceCall("cudaGraphAddHostNode", __pyx_f[0], 24235, 0, __PYX_ERR(0, 24235, __pyx_L1_error)); __Pyx_INCREF(__pyx_v_pDependencies); /* "cuda/cudart.pyx":24271 * :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,cuda.CUgraphNode)) for _x in pDependencies): * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.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, 24271, __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/cudart.pyx":24272 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ __pyx_t_1 = __pyx_pf_4cuda_6cudart_20cudaGraphAddHostNode_genexpr(NULL, __pyx_v_pDependencies); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24272, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24272, __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, 24272, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_4 = (!__pyx_t_2); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":24273 * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") # <<<<<<<<<<<<<< * cdef ccudart.cudaGraph_t cgraph * if graph is None: */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__534, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24273, __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, 24273, __pyx_L1_error) /* "cuda/cudart.pyx":24272 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ } /* "cuda/cudart.pyx":24275 * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_4 = (__pyx_v_graph == Py_None); if (__pyx_t_4) { /* "cuda/cudart.pyx":24276 * cdef ccudart.cudaGraph_t cgraph * if graph is None: * cgraph = 0 # <<<<<<<<<<<<<< * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) */ __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":24275 * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L4; } /* "cuda/cudart.pyx":24277 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_4 = __pyx_t_2; __pyx_L5_bool_binop_done:; if (__pyx_t_4) { /* "cuda/cudart.pyx":24278 * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) # <<<<<<<<<<<<<< * cgraph = pgraph * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24278, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pgraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":24279 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) * cgraph = pgraph # <<<<<<<<<<<<<< * else: * pgraph = int(cudaGraph_t(graph)) */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24279, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); /* "cuda/cudart.pyx":24277 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ goto __pyx_L4; } /* "cuda/cudart.pyx":24281 * cgraph = pgraph * else: * pgraph = int(cudaGraph_t(graph)) # <<<<<<<<<<<<<< * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24281, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24281, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pgraph = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":24282 * else: * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph # <<<<<<<<<<<<<< * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24282, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); } __pyx_L4:; /* "cuda/cudart.pyx":24283 * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24283, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_pGraphNode = ((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":24284 * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL # <<<<<<<<<<<<<< * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) */ __pyx_v_cpDependencies = NULL; /* "cuda/cudart.pyx":24285 * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: # <<<<<<<<<<<<<< * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24285, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 > 0); if (__pyx_t_4) { /* "cuda/cudart.pyx":24286 * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) # <<<<<<<<<<<<<< * if cpDependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24286, __pyx_L1_error) __pyx_v_cpDependencies = ((cudaGraphNode_t *)calloc(__pyx_t_6, (sizeof(cudaGraphNode_t)))); /* "cuda/cudart.pyx":24287 * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ __pyx_t_4 = (__pyx_v_cpDependencies == NULL); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":24288 * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) # <<<<<<<<<<<<<< * else: * for idx in range(len(pDependencies)): */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24288, __pyx_L1_error) __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24288, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24288, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24288, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_n_u_x_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24288, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24288, __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, 24288, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24288, __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 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24288, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_7, 0, 0, 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __PYX_ERR(0, 24288, __pyx_L1_error) /* "cuda/cudart.pyx":24287 * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ } /* "cuda/cudart.pyx":24290 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: * for idx in range(len(pDependencies)): # <<<<<<<<<<<<<< * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) */ /*else*/ { __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24290, __pyx_L1_error) __pyx_t_8 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_idx = __pyx_t_9; /* "cuda/cudart.pyx":24291 * else: * for idx in range(len(pDependencies)): * cpDependencies[idx] = (pDependencies[idx])._ptr[0] # <<<<<<<<<<<<<< * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * cdef ccudart.cudaHostNodeParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL */ __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_pDependencies, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24291, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); (__pyx_v_cpDependencies[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_7)->__pyx_base._ptr[0])); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } /* "cuda/cudart.pyx":24285 * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: # <<<<<<<<<<<<<< * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: */ } /* "cuda/cudart.pyx":24292 * for idx in range(len(pDependencies)): * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) # <<<<<<<<<<<<<< * cdef ccudart.cudaHostNodeParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL * err = ccudart.cudaGraphAddHostNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cpNodeParams_ptr) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24292, __pyx_L1_error) __pyx_t_4 = (__pyx_v_numDependencies > ((size_t)__pyx_t_6)); if (unlikely(__pyx_t_4)) { __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24292, __pyx_L1_error) __pyx_t_7 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24292, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24292, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_List_is_too_small, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24292, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_7, __pyx_kp_u__400); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24292, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyInt_FromSize_t(__pyx_v_numDependencies); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24292, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24292, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24292, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24292, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 24292, __pyx_L1_error) } /* "cuda/cudart.pyx":24293 * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * cdef ccudart.cudaHostNodeParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaGraphAddHostNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cpNodeParams_ptr) * if cpDependencies is not NULL: */ __pyx_t_3 = PyObject_RichCompare(((PyObject *)__pyx_v_pNodeParams), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24293, __pyx_L1_error) __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 24293, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_4) { __pyx_t_10 = __pyx_v_pNodeParams->_ptr; } else { __pyx_t_10 = NULL; } __pyx_v_cpNodeParams_ptr = __pyx_t_10; /* "cuda/cudart.pyx":24294 * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * cdef ccudart.cudaHostNodeParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL * err = ccudart.cudaGraphAddHostNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cpNodeParams_ptr) # <<<<<<<<<<<<<< * if cpDependencies is not NULL: * free(cpDependencies) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24294, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 == 1); if (__pyx_t_4) { __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_pDependencies, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24294, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_11 = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_3)->__pyx_base._ptr); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_11 = __pyx_v_cpDependencies; } __pyx_t_12 = __pyx_f_4cuda_7ccudart_cudaGraphAddHostNode(((cudaGraphNode_t *)__pyx_v_pGraphNode->__pyx_base._ptr), __pyx_v_cgraph, __pyx_t_11, __pyx_v_numDependencies, __pyx_v_cpNodeParams_ptr); if (unlikely(__pyx_t_12 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 24294, __pyx_L1_error) __pyx_v_err = __pyx_t_12; /* "cuda/cudart.pyx":24295 * cdef ccudart.cudaHostNodeParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL * err = ccudart.cudaGraphAddHostNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cpNodeParams_ptr) * if cpDependencies is not NULL: # <<<<<<<<<<<<<< * free(cpDependencies) * return (cudaError_t(err), pGraphNode) */ __pyx_t_4 = (__pyx_v_cpDependencies != NULL); if (__pyx_t_4) { /* "cuda/cudart.pyx":24296 * err = ccudart.cudaGraphAddHostNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cpNodeParams_ptr) * if cpDependencies is not NULL: * free(cpDependencies) # <<<<<<<<<<<<<< * return (cudaError_t(err), pGraphNode) * */ free(__pyx_v_cpDependencies); /* "cuda/cudart.pyx":24295 * cdef ccudart.cudaHostNodeParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL * err = ccudart.cudaGraphAddHostNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cpNodeParams_ptr) * if cpDependencies is not NULL: # <<<<<<<<<<<<<< * free(cpDependencies) * return (cudaError_t(err), pGraphNode) */ } /* "cuda/cudart.pyx":24297 * if cpDependencies is not NULL: * free(cpDependencies) * return (cudaError_t(err), pGraphNode) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24297, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24297, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_13 = NULL; __pyx_t_14 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_13)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_13); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_14 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_t_1}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_14, 1+__pyx_t_14); __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24297, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24297, __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)) __PYX_ERR(0, 24297, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pGraphNode); __Pyx_GIVEREF((PyObject *)__pyx_v_pGraphNode); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_pGraphNode))) __PYX_ERR(0, 24297, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":24235 * return (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_7); __Pyx_XDECREF(__pyx_t_13); __Pyx_AddTraceback("cuda.cudart.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_6cudart_20cudaGraphAddHostNode_2generator16); __Pyx_XDECREF(__pyx_v_pDependencies); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":24299 * return (cudaError_t(err), pGraphNode) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphHostNodeGetParams(node): * """ Returns a host node's parameters. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_395cudaGraphHostNodeGetParams(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_394cudaGraphHostNodeGetParams, "cudaGraphHostNodeGetParams(node)\n Returns a host node's parameters.\n\n Returns the parameters of host node `node` in `pNodeParams`.\n\n Parameters\n ----------\n node : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Node to get the parameters for\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n pNodeParams : :py:obj:`~.cudaHostNodeParams`\n Pointer to return the parameters\n\n See Also\n --------\n :py:obj:`~.cudaLaunchHostFunc`, :py:obj:`~.cudaGraphAddHostNode`, :py:obj:`~.cudaGraphHostNodeSetParams`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_395cudaGraphHostNodeGetParams = {"cudaGraphHostNodeGetParams", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_395cudaGraphHostNodeGetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_394cudaGraphHostNodeGetParams}; static PyObject *__pyx_pw_4cuda_6cudart_395cudaGraphHostNodeGetParams(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_node_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_node_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24299, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphHostNodeGetParams") < 0)) __PYX_ERR(0, 24299, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_node = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphHostNodeGetParams", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 24299, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphHostNodeGetParams", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_394cudaGraphHostNodeGetParams(__pyx_self, __pyx_v_node); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_394cudaGraphHostNodeGetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node) { cudaGraphNode_t __pyx_v_cnode; PyObject *__pyx_v_pnode = NULL; struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *__pyx_v_pNodeParams = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__549) __Pyx_RefNannySetupContext("cudaGraphHostNodeGetParams", 1); __Pyx_TraceCall("cudaGraphHostNodeGetParams", __pyx_f[0], 24299, 0, __PYX_ERR(0, 24299, __pyx_L1_error)); /* "cuda/cudart.pyx":24322 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_node == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":24323 * cdef ccudart.cudaGraphNode_t cnode * if node is None: * cnode = 0 # <<<<<<<<<<<<<< * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) */ __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":24322 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":24324 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":24325 * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) # <<<<<<<<<<<<<< * cnode = pnode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24325, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pnode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":24326 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) * cnode = pnode # <<<<<<<<<<<<<< * else: * pnode = int(cudaGraphNode_t(node)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24326, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":24324 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ goto __pyx_L3; } /* "cuda/cudart.pyx":24328 * cnode = pnode * else: * pnode = int(cudaGraphNode_t(node)) # <<<<<<<<<<<<<< * cnode = pnode * cdef cudaHostNodeParams pNodeParams = cudaHostNodeParams() */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24328, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24328, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pnode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":24329 * else: * pnode = int(cudaGraphNode_t(node)) * cnode = pnode # <<<<<<<<<<<<<< * cdef cudaHostNodeParams pNodeParams = cudaHostNodeParams() * err = ccudart.cudaGraphHostNodeGetParams(cnode, pNodeParams._ptr) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24329, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":24330 * pnode = int(cudaGraphNode_t(node)) * cnode = pnode * cdef cudaHostNodeParams pNodeParams = cudaHostNodeParams() # <<<<<<<<<<<<<< * err = ccudart.cudaGraphHostNodeGetParams(cnode, pNodeParams._ptr) * return (cudaError_t(err), pNodeParams) */ __pyx_t_5 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaHostNodeParams)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24330, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pNodeParams = ((struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *)__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":24331 * cnode = pnode * cdef cudaHostNodeParams pNodeParams = cudaHostNodeParams() * err = ccudart.cudaGraphHostNodeGetParams(cnode, pNodeParams._ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err), pNodeParams) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaGraphHostNodeGetParams(__pyx_v_cnode, ((struct cudaHostNodeParams *)__pyx_v_pNodeParams->_ptr)); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 24331, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":24332 * cdef cudaHostNodeParams pNodeParams = cudaHostNodeParams() * err = ccudart.cudaGraphHostNodeGetParams(cnode, pNodeParams._ptr) * return (cudaError_t(err), pNodeParams) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24332, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24332, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24332, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24332, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 24332, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pNodeParams); __Pyx_GIVEREF((PyObject *)__pyx_v_pNodeParams); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_v_pNodeParams))) __PYX_ERR(0, 24332, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":24299 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":24334 * return (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_6cudart_397cudaGraphHostNodeSetParams(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_396cudaGraphHostNodeSetParams, "cudaGraphHostNodeSetParams(node, cudaHostNodeParams pNodeParams: Optional[cudaHostNodeParams])\n Sets a host node's parameters.\n\n Sets the parameters of host node `node` to `nodeParams`.\n\n Parameters\n ----------\n node : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Node to set the parameters for\n pNodeParams : :py:obj:`~.cudaHostNodeParams`\n Parameters to copy\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\n See Also\n --------\n :py:obj:`~.cudaGraphNodeSetParams`, :py:obj:`~.cudaLaunchHostFunc`, :py:obj:`~.cudaGraphAddHostNode`, :py:obj:`~.cudaGraphHostNodeGetParams`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_397cudaGraphHostNodeSetParams = {"cudaGraphHostNodeSetParams", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_397cudaGraphHostNodeSetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_396cudaGraphHostNodeSetParams}; static PyObject *__pyx_pw_4cuda_6cudart_397cudaGraphHostNodeSetParams(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_node_2,&__pyx_n_s_pNodeParams,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_node_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24334, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pNodeParams)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24334, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphHostNodeSetParams", 1, 2, 2, 1); __PYX_ERR(0, 24334, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphHostNodeSetParams") < 0)) __PYX_ERR(0, 24334, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_node = values[0]; __pyx_v_pNodeParams = ((struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *)values[1]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphHostNodeSetParams", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 24334, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaHostNodeParams, 1, "pNodeParams", 0))) __PYX_ERR(0, 24335, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_396cudaGraphHostNodeSetParams(__pyx_self, __pyx_v_node, __pyx_v_pNodeParams); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_396cudaGraphHostNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node, struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *__pyx_v_pNodeParams) { cudaGraphNode_t __pyx_v_cnode; PyObject *__pyx_v_pnode = NULL; struct cudaHostNodeParams *__pyx_v_cpNodeParams_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; struct cudaHostNodeParams *__pyx_t_6; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__550) __Pyx_RefNannySetupContext("cudaGraphHostNodeSetParams", 1); __Pyx_TraceCall("cudaGraphHostNodeSetParams", __pyx_f[0], 24334, 0, __PYX_ERR(0, 24334, __pyx_L1_error)); /* "cuda/cudart.pyx":24357 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_node == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":24358 * cdef ccudart.cudaGraphNode_t cnode * if node is None: * cnode = 0 # <<<<<<<<<<<<<< * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) */ __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":24357 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":24359 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":24360 * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) # <<<<<<<<<<<<<< * cnode = pnode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24360, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pnode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":24361 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) * cnode = pnode # <<<<<<<<<<<<<< * else: * pnode = int(cudaGraphNode_t(node)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24361, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":24359 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ goto __pyx_L3; } /* "cuda/cudart.pyx":24363 * cnode = pnode * else: * pnode = int(cudaGraphNode_t(node)) # <<<<<<<<<<<<<< * cnode = pnode * cdef ccudart.cudaHostNodeParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24363, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24363, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pnode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":24364 * else: * pnode = int(cudaGraphNode_t(node)) * cnode = pnode # <<<<<<<<<<<<<< * cdef ccudart.cudaHostNodeParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL * err = ccudart.cudaGraphHostNodeSetParams(cnode, cpNodeParams_ptr) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24364, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":24365 * pnode = int(cudaGraphNode_t(node)) * cnode = pnode * cdef ccudart.cudaHostNodeParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaGraphHostNodeSetParams(cnode, cpNodeParams_ptr) * return (cudaError_t(err),) */ __pyx_t_5 = PyObject_RichCompare(((PyObject *)__pyx_v_pNodeParams), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24365, __pyx_L1_error) __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 24365, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_1) { __pyx_t_6 = __pyx_v_pNodeParams->_ptr; } else { __pyx_t_6 = NULL; } __pyx_v_cpNodeParams_ptr = __pyx_t_6; /* "cuda/cudart.pyx":24366 * cnode = pnode * cdef ccudart.cudaHostNodeParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL * err = ccudart.cudaGraphHostNodeSetParams(cnode, cpNodeParams_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaGraphHostNodeSetParams(__pyx_v_cnode, __pyx_v_cpNodeParams_ptr); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 24366, __pyx_L1_error) __pyx_v_err = __pyx_t_7; /* "cuda/cudart.pyx":24367 * cdef ccudart.cudaHostNodeParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL * err = ccudart.cudaGraphHostNodeSetParams(cnode, cpNodeParams_ptr) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24367, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 24367, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_8}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24367, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24367, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 24367, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":24334 * return (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_5); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.cudaGraphHostNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pnode); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":24369 * return (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_6cudart_399cudaGraphAddChildGraphNode(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_398cudaGraphAddChildGraphNode, "cudaGraphAddChildGraphNode(graph, pDependencies: Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], size_t numDependencies, childGraph)\n Creates a child graph node and adds it to a graph.\n\n Creates 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\n case the node will be placed at the root of the graph. `pDependencies`\n may not have any duplicate entries. A handle to the new node will be\n returned in `pGraphNode`.\n\n If `hGraph` contains allocation or free nodes, this call will return an\n error.\n\n The node executes an embedded child graph. The child graph is cloned in\n this call.\n\n Parameters\n ----------\n graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n Graph to which to add the node\n pDependencies : List[:py:obj:`~.cudaGraphNode_t`]\n Dependencies of the node\n numDependencies : size_t\n Number of dependencies\n childGraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n The graph to clone into this node\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n pGraphNode : :py:obj:`~.cudaGraphNode_t`\n Returns newly created node\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_399cudaGraphAddChildGraphNode = {"cudaGraphAddChildGraphNode", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_399cudaGraphAddChildGraphNode, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_398cudaGraphAddChildGraphNode}; static PyObject *__pyx_pw_4cuda_6cudart_399cudaGraphAddChildGraphNode(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_graph_2,&__pyx_n_s_pDependencies,&__pyx_n_s_numDependencies,&__pyx_n_s_childGraph,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_graph_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24369, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pDependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24369, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddChildGraphNode", 1, 4, 4, 1); __PYX_ERR(0, 24369, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_numDependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24369, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddChildGraphNode", 1, 4, 4, 2); __PYX_ERR(0, 24369, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_childGraph)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24369, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddChildGraphNode", 1, 4, 4, 3); __PYX_ERR(0, 24369, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphAddChildGraphNode") < 0)) __PYX_ERR(0, 24369, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); } __pyx_v_graph = values[0]; __pyx_v_pDependencies = values[1]; __pyx_v_numDependencies = __Pyx_PyInt_As_size_t(values[2]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 24370, __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, 24369, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphAddChildGraphNode", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_398cudaGraphAddChildGraphNode(__pyx_self, __pyx_v_graph, __pyx_v_pDependencies, __pyx_v_numDependencies, __pyx_v_childGraph); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_26cudaGraphAddChildGraphNode_2generator17(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":24418 * cchildGraph = pchildGraph * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ static PyObject *__pyx_pf_4cuda_6cudart_26cudaGraphAddChildGraphNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct_17_genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_17_genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_17_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_17_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 24418, __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_6cudart_26cudaGraphAddChildGraphNode_2generator17, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaGraphAddChildGraphNode_local, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 24418, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.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_6cudart_26cudaGraphAddChildGraphNode_2generator17(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_17_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_17_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 24418, 0, __PYX_ERR(0, 24418, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 24418, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 24418, __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, 24418, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24418, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 24418, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 24418, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24418, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 24418, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 24418, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24418, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 24418, __pyx_L1_error) } 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_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":24369 * return (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_6cudart_398cudaGraphAddChildGraphNode(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_cchildGraph; PyObject *__pyx_v_pchildGraph = NULL; cudaGraph_t __pyx_v_cgraph; PyObject *__pyx_v_pgraph = NULL; struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *__pyx_v_pGraphNode = 0; cudaGraphNode_t *__pyx_v_cpDependencies; Py_ssize_t __pyx_v_idx; cudaError_t __pyx_v_err; PyObject *__pyx_gb_4cuda_6cudart_26cudaGraphAddChildGraphNode_2generator17 = 0; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; Py_ssize_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; Py_ssize_t __pyx_t_8; Py_ssize_t __pyx_t_9; cudaGraphNode_t *__pyx_t_10; cudaError_t __pyx_t_11; PyObject *__pyx_t_12 = NULL; unsigned int __pyx_t_13; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__551) __Pyx_RefNannySetupContext("cudaGraphAddChildGraphNode", 0); __Pyx_TraceCall("cudaGraphAddChildGraphNode", __pyx_f[0], 24369, 0, __PYX_ERR(0, 24369, __pyx_L1_error)); __Pyx_INCREF(__pyx_v_pDependencies); /* "cuda/cudart.pyx":24409 * """ * cdef ccudart.cudaGraph_t cchildGraph * if childGraph is None: # <<<<<<<<<<<<<< * cchildGraph = 0 * elif isinstance(childGraph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_1 = (__pyx_v_childGraph == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":24410 * cdef ccudart.cudaGraph_t cchildGraph * if childGraph is None: * cchildGraph = 0 # <<<<<<<<<<<<<< * elif isinstance(childGraph, (cudaGraph_t,cuda.CUgraph)): * pchildGraph = int(childGraph) */ __pyx_v_cchildGraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":24409 * """ * cdef ccudart.cudaGraph_t cchildGraph * if childGraph is None: # <<<<<<<<<<<<<< * cchildGraph = 0 * elif isinstance(childGraph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":24411 * if childGraph is None: * cchildGraph = 0 * elif isinstance(childGraph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pchildGraph = int(childGraph) * cchildGraph = pchildGraph */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_childGraph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":24412 * cchildGraph = 0 * elif isinstance(childGraph, (cudaGraph_t,cuda.CUgraph)): * pchildGraph = int(childGraph) # <<<<<<<<<<<<<< * cchildGraph = pchildGraph * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_childGraph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24412, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pchildGraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":24413 * elif isinstance(childGraph, (cudaGraph_t,cuda.CUgraph)): * pchildGraph = int(childGraph) * cchildGraph = pchildGraph # <<<<<<<<<<<<<< * else: * pchildGraph = int(cudaGraph_t(childGraph)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pchildGraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24413, __pyx_L1_error) __pyx_v_cchildGraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":24411 * if childGraph is None: * cchildGraph = 0 * elif isinstance(childGraph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pchildGraph = int(childGraph) * cchildGraph = pchildGraph */ goto __pyx_L3; } /* "cuda/cudart.pyx":24415 * cchildGraph = pchildGraph * else: * pchildGraph = int(cudaGraph_t(childGraph)) # <<<<<<<<<<<<<< * cchildGraph = pchildGraph * pDependencies = [] if pDependencies is None else pDependencies */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_childGraph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24415, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24415, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pchildGraph = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":24416 * else: * pchildGraph = int(cudaGraph_t(childGraph)) * cchildGraph = pchildGraph # <<<<<<<<<<<<<< * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pchildGraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24416, __pyx_L1_error) __pyx_v_cchildGraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":24417 * pchildGraph = int(cudaGraph_t(childGraph)) * cchildGraph = pchildGraph * pDependencies = [] if pDependencies is None else pDependencies # <<<<<<<<<<<<<< * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.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, 24417, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __pyx_t_3; __pyx_t_3 = 0; } else { __Pyx_INCREF(__pyx_v_pDependencies); __pyx_t_5 = __pyx_v_pDependencies; } __Pyx_DECREF_SET(__pyx_v_pDependencies, __pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":24418 * cchildGraph = pchildGraph * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ __pyx_t_5 = __pyx_pf_4cuda_6cudart_26cudaGraphAddChildGraphNode_genexpr(NULL, __pyx_v_pDependencies); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24418, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24418, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 24418, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_2 = (!__pyx_t_1); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":24419 * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") # <<<<<<<<<<<<<< * cdef ccudart.cudaGraph_t cgraph * if graph is None: */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__534, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24419, __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, 24419, __pyx_L1_error) /* "cuda/cudart.pyx":24418 * cchildGraph = pchildGraph * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ } /* "cuda/cudart.pyx":24421 * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_2 = (__pyx_v_graph == Py_None); if (__pyx_t_2) { /* "cuda/cudart.pyx":24422 * cdef ccudart.cudaGraph_t cgraph * if graph is None: * cgraph = 0 # <<<<<<<<<<<<<< * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) */ __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":24421 * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L7; } /* "cuda/cudart.pyx":24423 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_2 = __pyx_t_1; __pyx_L8_bool_binop_done:; if (__pyx_t_2) { /* "cuda/cudart.pyx":24424 * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) # <<<<<<<<<<<<<< * cgraph = pgraph * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24424, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pgraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":24425 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) * cgraph = pgraph # <<<<<<<<<<<<<< * else: * pgraph = int(cudaGraph_t(graph)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24425, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":24423 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ goto __pyx_L7; } /* "cuda/cudart.pyx":24427 * cgraph = pgraph * else: * pgraph = int(cudaGraph_t(graph)) # <<<<<<<<<<<<<< * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24427, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24427, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pgraph = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":24428 * else: * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph # <<<<<<<<<<<<<< * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24428, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L7:; /* "cuda/cudart.pyx":24429 * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: */ __pyx_t_5 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24429, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pGraphNode = ((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":24430 * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL # <<<<<<<<<<<<<< * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) */ __pyx_v_cpDependencies = NULL; /* "cuda/cudart.pyx":24431 * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: # <<<<<<<<<<<<<< * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24431, __pyx_L1_error) __pyx_t_2 = (__pyx_t_6 > 0); if (__pyx_t_2) { /* "cuda/cudart.pyx":24432 * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) # <<<<<<<<<<<<<< * if cpDependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24432, __pyx_L1_error) __pyx_v_cpDependencies = ((cudaGraphNode_t *)calloc(__pyx_t_6, (sizeof(cudaGraphNode_t)))); /* "cuda/cudart.pyx":24433 * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ __pyx_t_2 = (__pyx_v_cpDependencies == NULL); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":24434 * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) # <<<<<<<<<<<<<< * else: * for idx in range(len(pDependencies)): */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24434, __pyx_L1_error) __pyx_t_5 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24434, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24434, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24434, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_5, __pyx_n_u_x_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24434, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24434, __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, 24434, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24434, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24434, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_7, 0, 0, 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __PYX_ERR(0, 24434, __pyx_L1_error) /* "cuda/cudart.pyx":24433 * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ } /* "cuda/cudart.pyx":24436 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: * for idx in range(len(pDependencies)): # <<<<<<<<<<<<<< * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) */ /*else*/ { __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24436, __pyx_L1_error) __pyx_t_8 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_idx = __pyx_t_9; /* "cuda/cudart.pyx":24437 * else: * for idx in range(len(pDependencies)): * cpDependencies[idx] = (pDependencies[idx])._ptr[0] # <<<<<<<<<<<<<< * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * err = ccudart.cudaGraphAddChildGraphNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cchildGraph) */ __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_pDependencies, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24437, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); (__pyx_v_cpDependencies[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_7)->__pyx_base._ptr[0])); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } /* "cuda/cudart.pyx":24431 * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: # <<<<<<<<<<<<<< * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: */ } /* "cuda/cudart.pyx":24438 * for idx in range(len(pDependencies)): * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) # <<<<<<<<<<<<<< * err = ccudart.cudaGraphAddChildGraphNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cchildGraph) * if cpDependencies is not NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24438, __pyx_L1_error) __pyx_t_2 = (__pyx_v_numDependencies > ((size_t)__pyx_t_6)); if (unlikely(__pyx_t_2)) { __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24438, __pyx_L1_error) __pyx_t_7 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24438, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_5 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24438, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_List_is_too_small, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24438, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_7, __pyx_kp_u__400); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24438, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyInt_FromSize_t(__pyx_v_numDependencies); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24438, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24438, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_5, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24438, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24438, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 24438, __pyx_L1_error) } /* "cuda/cudart.pyx":24439 * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * err = ccudart.cudaGraphAddChildGraphNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cchildGraph) # <<<<<<<<<<<<<< * if cpDependencies is not NULL: * free(cpDependencies) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24439, __pyx_L1_error) __pyx_t_2 = (__pyx_t_6 == 1); if (__pyx_t_2) { __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_pDependencies, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24439, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_10 = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_3)->__pyx_base._ptr); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_10 = __pyx_v_cpDependencies; } __pyx_t_11 = __pyx_f_4cuda_7ccudart_cudaGraphAddChildGraphNode(((cudaGraphNode_t *)__pyx_v_pGraphNode->__pyx_base._ptr), __pyx_v_cgraph, __pyx_t_10, __pyx_v_numDependencies, __pyx_v_cchildGraph); if (unlikely(__pyx_t_11 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 24439, __pyx_L1_error) __pyx_v_err = __pyx_t_11; /* "cuda/cudart.pyx":24440 * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * err = ccudart.cudaGraphAddChildGraphNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cchildGraph) * if cpDependencies is not NULL: # <<<<<<<<<<<<<< * free(cpDependencies) * return (cudaError_t(err), pGraphNode) */ __pyx_t_2 = (__pyx_v_cpDependencies != NULL); if (__pyx_t_2) { /* "cuda/cudart.pyx":24441 * err = ccudart.cudaGraphAddChildGraphNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cchildGraph) * if cpDependencies is not NULL: * free(cpDependencies) # <<<<<<<<<<<<<< * return (cudaError_t(err), pGraphNode) * */ free(__pyx_v_cpDependencies); /* "cuda/cudart.pyx":24440 * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * err = ccudart.cudaGraphAddChildGraphNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cchildGraph) * if cpDependencies is not NULL: # <<<<<<<<<<<<<< * free(cpDependencies) * return (cudaError_t(err), pGraphNode) */ } /* "cuda/cudart.pyx":24442 * if cpDependencies is not NULL: * free(cpDependencies) * return (cudaError_t(err), pGraphNode) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24442, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24442, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_12 = NULL; __pyx_t_13 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_12)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_12); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_13 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_12, __pyx_t_5}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_13, 1+__pyx_t_13); __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24442, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24442, __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)) __PYX_ERR(0, 24442, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pGraphNode); __Pyx_GIVEREF((PyObject *)__pyx_v_pGraphNode); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_pGraphNode))) __PYX_ERR(0, 24442, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":24369 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_12); __Pyx_AddTraceback("cuda.cudart.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_6cudart_26cudaGraphAddChildGraphNode_2generator17); __Pyx_XDECREF(__pyx_v_pDependencies); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":24444 * return (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_6cudart_401cudaGraphChildGraphNodeGetGraph(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_400cudaGraphChildGraphNodeGetGraph, "cudaGraphChildGraphNodeGetGraph(node)\n Gets a handle to the embedded graph of a child graph node.\n\n Gets a handle to the embedded graph in a child graph node. This call\n does not clone the graph. Changes to the graph will be reflected in the\n node, and the node retains ownership of the graph.\n\n Allocation and free nodes cannot be added to the returned graph.\n Attempting to do so will return an error.\n\n Parameters\n ----------\n node : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Node to get the embedded graph for\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n pGraph : :py:obj:`~.cudaGraph_t`\n Location to store a handle to the graph\n\n See Also\n --------\n :py:obj:`~.cudaGraphAddChildGraphNode`, :py:obj:`~.cudaGraphNodeFindInClone`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_401cudaGraphChildGraphNodeGetGraph = {"cudaGraphChildGraphNodeGetGraph", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_401cudaGraphChildGraphNodeGetGraph, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_400cudaGraphChildGraphNodeGetGraph}; static PyObject *__pyx_pw_4cuda_6cudart_401cudaGraphChildGraphNodeGetGraph(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_node_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_node_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24444, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphChildGraphNodeGetGraph") < 0)) __PYX_ERR(0, 24444, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_node = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphChildGraphNodeGetGraph", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 24444, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphChildGraphNodeGetGraph", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_400cudaGraphChildGraphNodeGetGraph(__pyx_self, __pyx_v_node); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_400cudaGraphChildGraphNodeGetGraph(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node) { cudaGraphNode_t __pyx_v_cnode; PyObject *__pyx_v_pnode = NULL; struct __pyx_obj_4cuda_6cudart_cudaGraph_t *__pyx_v_pGraph = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__552) __Pyx_RefNannySetupContext("cudaGraphChildGraphNodeGetGraph", 1); __Pyx_TraceCall("cudaGraphChildGraphNodeGetGraph", __pyx_f[0], 24444, 0, __PYX_ERR(0, 24444, __pyx_L1_error)); /* "cuda/cudart.pyx":24472 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_node == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":24473 * cdef ccudart.cudaGraphNode_t cnode * if node is None: * cnode = 0 # <<<<<<<<<<<<<< * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) */ __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":24472 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":24474 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":24475 * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) # <<<<<<<<<<<<<< * cnode = pnode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24475, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pnode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":24476 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) * cnode = pnode # <<<<<<<<<<<<<< * else: * pnode = int(cudaGraphNode_t(node)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24476, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":24474 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ goto __pyx_L3; } /* "cuda/cudart.pyx":24478 * cnode = pnode * else: * pnode = int(cudaGraphNode_t(node)) # <<<<<<<<<<<<<< * cnode = pnode * cdef cudaGraph_t pGraph = cudaGraph_t() */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24478, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24478, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pnode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":24479 * else: * pnode = int(cudaGraphNode_t(node)) * cnode = pnode # <<<<<<<<<<<<<< * cdef cudaGraph_t pGraph = cudaGraph_t() * err = ccudart.cudaGraphChildGraphNodeGetGraph(cnode, pGraph._ptr) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24479, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":24480 * pnode = int(cudaGraphNode_t(node)) * cnode = pnode * cdef cudaGraph_t pGraph = cudaGraph_t() # <<<<<<<<<<<<<< * err = ccudart.cudaGraphChildGraphNodeGetGraph(cnode, pGraph._ptr) * return (cudaError_t(err), pGraph) */ __pyx_t_5 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24480, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pGraph = ((struct __pyx_obj_4cuda_6cudart_cudaGraph_t *)__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":24481 * cnode = pnode * cdef cudaGraph_t pGraph = cudaGraph_t() * err = ccudart.cudaGraphChildGraphNodeGetGraph(cnode, pGraph._ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err), pGraph) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaGraphChildGraphNodeGetGraph(__pyx_v_cnode, ((cudaGraph_t *)__pyx_v_pGraph->__pyx_base._ptr)); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 24481, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":24482 * cdef cudaGraph_t pGraph = cudaGraph_t() * err = ccudart.cudaGraphChildGraphNodeGetGraph(cnode, pGraph._ptr) * return (cudaError_t(err), pGraph) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24482, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24482, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24482, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24482, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 24482, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pGraph); __Pyx_GIVEREF((PyObject *)__pyx_v_pGraph); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_v_pGraph))) __PYX_ERR(0, 24482, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":24444 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":24484 * return (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_6cudart_403cudaGraphAddEmptyNode(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_402cudaGraphAddEmptyNode, "cudaGraphAddEmptyNode(graph, pDependencies: Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], size_t numDependencies)\n Creates an empty node and adds it to a graph.\n\n Creates a new node which performs no operation, and adds it to `graph`\n with `numDependencies` dependencies specified via `pDependencies`. It\n is possible for `numDependencies` to be 0, in which case the node will\n be placed at the root of the graph. `pDependencies` may not have any\n duplicate entries. A handle to the new node will be returned in\n `pGraphNode`.\n\n An empty node performs no operation during execution, but can be used\n for transitive ordering. For example, a phased execution graph with 2\n groups of n nodes with a barrier between them can be represented using\n an empty node and 2*n dependency edges, rather than no empty node and\n n^2 dependency edges.\n\n Parameters\n ----------\n graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n Graph to which to add the node\n pDependencies : List[:py:obj:`~.cudaGraphNode_t`]\n Dependencies of the node\n numDependencies : size_t\n Number of dependencies\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n pGraphNode : :py:obj:`~.cudaGraphNode_t`\n Returns newly created node\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_403cudaGraphAddEmptyNode = {"cudaGraphAddEmptyNode", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_403cudaGraphAddEmptyNode, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_402cudaGraphAddEmptyNode}; static PyObject *__pyx_pw_4cuda_6cudart_403cudaGraphAddEmptyNode(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_graph_2,&__pyx_n_s_pDependencies,&__pyx_n_s_numDependencies,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_graph_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24484, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pDependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24484, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddEmptyNode", 1, 3, 3, 1); __PYX_ERR(0, 24484, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_numDependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24484, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddEmptyNode", 1, 3, 3, 2); __PYX_ERR(0, 24484, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphAddEmptyNode") < 0)) __PYX_ERR(0, 24484, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_graph = values[0]; __pyx_v_pDependencies = values[1]; __pyx_v_numDependencies = __Pyx_PyInt_As_size_t(values[2]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 24485, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphAddEmptyNode", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 24484, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphAddEmptyNode", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_402cudaGraphAddEmptyNode(__pyx_self, __pyx_v_graph, __pyx_v_pDependencies, __pyx_v_numDependencies); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_21cudaGraphAddEmptyNode_2generator18(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":24522 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ static PyObject *__pyx_pf_4cuda_6cudart_21cudaGraphAddEmptyNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct_18_genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_18_genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_18_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_18_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 24522, __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_6cudart_21cudaGraphAddEmptyNode_2generator18, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaGraphAddEmptyNode_locals_gen, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 24522, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.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_6cudart_21cudaGraphAddEmptyNode_2generator18(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_18_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_18_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 24522, 0, __PYX_ERR(0, 24522, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 24522, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 24522, __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, 24522, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24522, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 24522, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 24522, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24522, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 24522, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 24522, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24522, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 24522, __pyx_L1_error) } 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_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":24484 * return (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_6cudart_402cudaGraphAddEmptyNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_pDependencies, size_t __pyx_v_numDependencies) { cudaGraph_t __pyx_v_cgraph; PyObject *__pyx_v_pgraph = NULL; struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *__pyx_v_pGraphNode = 0; cudaGraphNode_t *__pyx_v_cpDependencies; Py_ssize_t __pyx_v_idx; cudaError_t __pyx_v_err; PyObject *__pyx_gb_4cuda_6cudart_21cudaGraphAddEmptyNode_2generator18 = 0; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; Py_ssize_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; Py_ssize_t __pyx_t_8; Py_ssize_t __pyx_t_9; cudaGraphNode_t *__pyx_t_10; cudaError_t __pyx_t_11; PyObject *__pyx_t_12 = NULL; unsigned int __pyx_t_13; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__553) __Pyx_RefNannySetupContext("cudaGraphAddEmptyNode", 0); __Pyx_TraceCall("cudaGraphAddEmptyNode", __pyx_f[0], 24484, 0, __PYX_ERR(0, 24484, __pyx_L1_error)); __Pyx_INCREF(__pyx_v_pDependencies); /* "cuda/cudart.pyx":24521 * :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,cuda.CUgraphNode)) for _x in pDependencies): * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.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, 24521, __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/cudart.pyx":24522 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ __pyx_t_1 = __pyx_pf_4cuda_6cudart_21cudaGraphAddEmptyNode_genexpr(NULL, __pyx_v_pDependencies); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24522, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24522, __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, 24522, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_4 = (!__pyx_t_2); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":24523 * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") # <<<<<<<<<<<<<< * cdef ccudart.cudaGraph_t cgraph * if graph is None: */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__534, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24523, __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, 24523, __pyx_L1_error) /* "cuda/cudart.pyx":24522 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ } /* "cuda/cudart.pyx":24525 * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_4 = (__pyx_v_graph == Py_None); if (__pyx_t_4) { /* "cuda/cudart.pyx":24526 * cdef ccudart.cudaGraph_t cgraph * if graph is None: * cgraph = 0 # <<<<<<<<<<<<<< * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) */ __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":24525 * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L4; } /* "cuda/cudart.pyx":24527 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_4 = __pyx_t_2; __pyx_L5_bool_binop_done:; if (__pyx_t_4) { /* "cuda/cudart.pyx":24528 * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) # <<<<<<<<<<<<<< * cgraph = pgraph * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24528, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pgraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":24529 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) * cgraph = pgraph # <<<<<<<<<<<<<< * else: * pgraph = int(cudaGraph_t(graph)) */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24529, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); /* "cuda/cudart.pyx":24527 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ goto __pyx_L4; } /* "cuda/cudart.pyx":24531 * cgraph = pgraph * else: * pgraph = int(cudaGraph_t(graph)) # <<<<<<<<<<<<<< * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24531, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24531, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pgraph = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":24532 * else: * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph # <<<<<<<<<<<<<< * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24532, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); } __pyx_L4:; /* "cuda/cudart.pyx":24533 * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24533, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_pGraphNode = ((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":24534 * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL # <<<<<<<<<<<<<< * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) */ __pyx_v_cpDependencies = NULL; /* "cuda/cudart.pyx":24535 * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: # <<<<<<<<<<<<<< * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24535, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 > 0); if (__pyx_t_4) { /* "cuda/cudart.pyx":24536 * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) # <<<<<<<<<<<<<< * if cpDependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24536, __pyx_L1_error) __pyx_v_cpDependencies = ((cudaGraphNode_t *)calloc(__pyx_t_6, (sizeof(cudaGraphNode_t)))); /* "cuda/cudart.pyx":24537 * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ __pyx_t_4 = (__pyx_v_cpDependencies == NULL); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":24538 * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) # <<<<<<<<<<<<<< * else: * for idx in range(len(pDependencies)): */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24538, __pyx_L1_error) __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24538, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24538, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24538, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_n_u_x_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24538, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24538, __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, 24538, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24538, __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 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24538, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_7, 0, 0, 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __PYX_ERR(0, 24538, __pyx_L1_error) /* "cuda/cudart.pyx":24537 * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ } /* "cuda/cudart.pyx":24540 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: * for idx in range(len(pDependencies)): # <<<<<<<<<<<<<< * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) */ /*else*/ { __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24540, __pyx_L1_error) __pyx_t_8 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_idx = __pyx_t_9; /* "cuda/cudart.pyx":24541 * else: * for idx in range(len(pDependencies)): * cpDependencies[idx] = (pDependencies[idx])._ptr[0] # <<<<<<<<<<<<<< * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * err = ccudart.cudaGraphAddEmptyNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies) */ __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_pDependencies, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24541, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); (__pyx_v_cpDependencies[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_7)->__pyx_base._ptr[0])); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } /* "cuda/cudart.pyx":24535 * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: # <<<<<<<<<<<<<< * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: */ } /* "cuda/cudart.pyx":24542 * for idx in range(len(pDependencies)): * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) # <<<<<<<<<<<<<< * err = ccudart.cudaGraphAddEmptyNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies) * if cpDependencies is not NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24542, __pyx_L1_error) __pyx_t_4 = (__pyx_v_numDependencies > ((size_t)__pyx_t_6)); if (unlikely(__pyx_t_4)) { __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24542, __pyx_L1_error) __pyx_t_7 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24542, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24542, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_List_is_too_small, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24542, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_7, __pyx_kp_u__400); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24542, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyInt_FromSize_t(__pyx_v_numDependencies); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24542, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24542, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24542, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24542, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 24542, __pyx_L1_error) } /* "cuda/cudart.pyx":24543 * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * err = ccudart.cudaGraphAddEmptyNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies) # <<<<<<<<<<<<<< * if cpDependencies is not NULL: * free(cpDependencies) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24543, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 == 1); if (__pyx_t_4) { __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_pDependencies, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24543, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_10 = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_3)->__pyx_base._ptr); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_10 = __pyx_v_cpDependencies; } __pyx_t_11 = __pyx_f_4cuda_7ccudart_cudaGraphAddEmptyNode(((cudaGraphNode_t *)__pyx_v_pGraphNode->__pyx_base._ptr), __pyx_v_cgraph, __pyx_t_10, __pyx_v_numDependencies); if (unlikely(__pyx_t_11 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 24543, __pyx_L1_error) __pyx_v_err = __pyx_t_11; /* "cuda/cudart.pyx":24544 * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * err = ccudart.cudaGraphAddEmptyNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies) * if cpDependencies is not NULL: # <<<<<<<<<<<<<< * free(cpDependencies) * return (cudaError_t(err), pGraphNode) */ __pyx_t_4 = (__pyx_v_cpDependencies != NULL); if (__pyx_t_4) { /* "cuda/cudart.pyx":24545 * err = ccudart.cudaGraphAddEmptyNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies) * if cpDependencies is not NULL: * free(cpDependencies) # <<<<<<<<<<<<<< * return (cudaError_t(err), pGraphNode) * */ free(__pyx_v_cpDependencies); /* "cuda/cudart.pyx":24544 * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * err = ccudart.cudaGraphAddEmptyNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies) * if cpDependencies is not NULL: # <<<<<<<<<<<<<< * free(cpDependencies) * return (cudaError_t(err), pGraphNode) */ } /* "cuda/cudart.pyx":24546 * if cpDependencies is not NULL: * free(cpDependencies) * return (cudaError_t(err), pGraphNode) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24546, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24546, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_12 = NULL; __pyx_t_13 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_12)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_12); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_13 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_12, __pyx_t_1}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_13, 1+__pyx_t_13); __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24546, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24546, __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)) __PYX_ERR(0, 24546, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pGraphNode); __Pyx_GIVEREF((PyObject *)__pyx_v_pGraphNode); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_pGraphNode))) __PYX_ERR(0, 24546, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":24484 * return (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_7); __Pyx_XDECREF(__pyx_t_12); __Pyx_AddTraceback("cuda.cudart.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_6cudart_21cudaGraphAddEmptyNode_2generator18); __Pyx_XDECREF(__pyx_v_pDependencies); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":24548 * return (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_6cudart_405cudaGraphAddEventRecordNode(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_404cudaGraphAddEventRecordNode, "cudaGraphAddEventRecordNode(graph, pDependencies: Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], size_t numDependencies, event)\n Creates an event record node and adds it to a graph.\n\n Creates a new event record node and adds it to `hGraph` with\n `numDependencies` dependencies specified via `dependencies` and event\n specified in `event`. It is possible for `numDependencies` to be 0, in\n which 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\n node will be returned in `phGraphNode`.\n\n Each launch of the graph will record `event` to capture execution of\n the node's dependencies.\n\n These nodes may not be used in loops or conditionals.\n\n Parameters\n ----------\n hGraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n Graph to which to add the node\n dependencies : List[:py:obj:`~.cudaGraphNode_t`]\n Dependencies of the node\n numDependencies : size_t\n Number of dependencies\n event : :py:obj:`~.CUevent` or :py:obj:`~.cudaEvent_t`\n Event for the node\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n phGraphNode : :py:obj:`~.cudaGraphNode_t`\n Returns newly created node\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_405cudaGraphAddEventRecordNode = {"cudaGraphAddEventRecordNode", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_405cudaGraphAddEventRecordNode, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_404cudaGraphAddEventRecordNode}; static PyObject *__pyx_pw_4cuda_6cudart_405cudaGraphAddEventRecordNode(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_graph_2,&__pyx_n_s_pDependencies,&__pyx_n_s_numDependencies,&__pyx_n_s_event_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_graph_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24548, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pDependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24548, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddEventRecordNode", 1, 4, 4, 1); __PYX_ERR(0, 24548, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_numDependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24548, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddEventRecordNode", 1, 4, 4, 2); __PYX_ERR(0, 24548, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_event_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24548, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddEventRecordNode", 1, 4, 4, 3); __PYX_ERR(0, 24548, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphAddEventRecordNode") < 0)) __PYX_ERR(0, 24548, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); } __pyx_v_graph = values[0]; __pyx_v_pDependencies = values[1]; __pyx_v_numDependencies = __Pyx_PyInt_As_size_t(values[2]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 24549, __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, 24548, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphAddEventRecordNode", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_404cudaGraphAddEventRecordNode(__pyx_self, __pyx_v_graph, __pyx_v_pDependencies, __pyx_v_numDependencies, __pyx_v_event); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_27cudaGraphAddEventRecordNode_2generator19(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":24596 * cevent = pevent * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ static PyObject *__pyx_pf_4cuda_6cudart_27cudaGraphAddEventRecordNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct_19_genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_19_genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_19_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_19_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 24596, __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_6cudart_27cudaGraphAddEventRecordNode_2generator19, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaGraphAddEventRecordNode_loca, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 24596, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.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_6cudart_27cudaGraphAddEventRecordNode_2generator19(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_19_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_19_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 24596, 0, __PYX_ERR(0, 24596, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 24596, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 24596, __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, 24596, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24596, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 24596, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 24596, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24596, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 24596, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 24596, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24596, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 24596, __pyx_L1_error) } 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_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":24548 * return (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_6cudart_404cudaGraphAddEventRecordNode(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_cevent; PyObject *__pyx_v_pevent = NULL; cudaGraph_t __pyx_v_cgraph; PyObject *__pyx_v_pgraph = NULL; struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *__pyx_v_pGraphNode = 0; cudaGraphNode_t *__pyx_v_cpDependencies; Py_ssize_t __pyx_v_idx; cudaError_t __pyx_v_err; PyObject *__pyx_gb_4cuda_6cudart_27cudaGraphAddEventRecordNode_2generator19 = 0; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; Py_ssize_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; Py_ssize_t __pyx_t_8; Py_ssize_t __pyx_t_9; cudaGraphNode_t *__pyx_t_10; cudaError_t __pyx_t_11; PyObject *__pyx_t_12 = NULL; unsigned int __pyx_t_13; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__554) __Pyx_RefNannySetupContext("cudaGraphAddEventRecordNode", 0); __Pyx_TraceCall("cudaGraphAddEventRecordNode", __pyx_f[0], 24548, 0, __PYX_ERR(0, 24548, __pyx_L1_error)); __Pyx_INCREF(__pyx_v_pDependencies); /* "cuda/cudart.pyx":24587 * """ * cdef ccudart.cudaEvent_t cevent * if event is None: # <<<<<<<<<<<<<< * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): */ __pyx_t_1 = (__pyx_v_event == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":24588 * cdef ccudart.cudaEvent_t cevent * if event is None: * cevent = 0 # <<<<<<<<<<<<<< * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) */ __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":24587 * """ * cdef ccudart.cudaEvent_t cevent * if event is None: # <<<<<<<<<<<<<< * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":24589 * if event is None: * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pevent = int(event) * cevent = pevent */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUevent); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":24590 * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) # <<<<<<<<<<<<<< * cevent = pevent * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24590, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pevent = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":24591 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) * cevent = pevent # <<<<<<<<<<<<<< * else: * pevent = int(cudaEvent_t(event)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24591, __pyx_L1_error) __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":24589 * if event is None: * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pevent = int(event) * cevent = pevent */ goto __pyx_L3; } /* "cuda/cudart.pyx":24593 * cevent = pevent * else: * pevent = int(cudaEvent_t(event)) # <<<<<<<<<<<<<< * cevent = pevent * pDependencies = [] if pDependencies is None else pDependencies */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEvent_t), __pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24593, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24593, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pevent = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":24594 * else: * pevent = int(cudaEvent_t(event)) * cevent = pevent # <<<<<<<<<<<<<< * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24594, __pyx_L1_error) __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":24595 * pevent = int(cudaEvent_t(event)) * cevent = pevent * pDependencies = [] if pDependencies is None else pDependencies # <<<<<<<<<<<<<< * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.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, 24595, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __pyx_t_3; __pyx_t_3 = 0; } else { __Pyx_INCREF(__pyx_v_pDependencies); __pyx_t_5 = __pyx_v_pDependencies; } __Pyx_DECREF_SET(__pyx_v_pDependencies, __pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":24596 * cevent = pevent * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ __pyx_t_5 = __pyx_pf_4cuda_6cudart_27cudaGraphAddEventRecordNode_genexpr(NULL, __pyx_v_pDependencies); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24596, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24596, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 24596, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_2 = (!__pyx_t_1); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":24597 * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") # <<<<<<<<<<<<<< * cdef ccudart.cudaGraph_t cgraph * if graph is None: */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__534, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24597, __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, 24597, __pyx_L1_error) /* "cuda/cudart.pyx":24596 * cevent = pevent * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ } /* "cuda/cudart.pyx":24599 * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_2 = (__pyx_v_graph == Py_None); if (__pyx_t_2) { /* "cuda/cudart.pyx":24600 * cdef ccudart.cudaGraph_t cgraph * if graph is None: * cgraph = 0 # <<<<<<<<<<<<<< * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) */ __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":24599 * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L7; } /* "cuda/cudart.pyx":24601 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_2 = __pyx_t_1; __pyx_L8_bool_binop_done:; if (__pyx_t_2) { /* "cuda/cudart.pyx":24602 * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) # <<<<<<<<<<<<<< * cgraph = pgraph * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24602, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pgraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":24603 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) * cgraph = pgraph # <<<<<<<<<<<<<< * else: * pgraph = int(cudaGraph_t(graph)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24603, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":24601 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ goto __pyx_L7; } /* "cuda/cudart.pyx":24605 * cgraph = pgraph * else: * pgraph = int(cudaGraph_t(graph)) # <<<<<<<<<<<<<< * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24605, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24605, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pgraph = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":24606 * else: * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph # <<<<<<<<<<<<<< * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24606, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L7:; /* "cuda/cudart.pyx":24607 * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: */ __pyx_t_5 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24607, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pGraphNode = ((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":24608 * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL # <<<<<<<<<<<<<< * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) */ __pyx_v_cpDependencies = NULL; /* "cuda/cudart.pyx":24609 * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: # <<<<<<<<<<<<<< * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24609, __pyx_L1_error) __pyx_t_2 = (__pyx_t_6 > 0); if (__pyx_t_2) { /* "cuda/cudart.pyx":24610 * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) # <<<<<<<<<<<<<< * if cpDependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24610, __pyx_L1_error) __pyx_v_cpDependencies = ((cudaGraphNode_t *)calloc(__pyx_t_6, (sizeof(cudaGraphNode_t)))); /* "cuda/cudart.pyx":24611 * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ __pyx_t_2 = (__pyx_v_cpDependencies == NULL); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":24612 * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) # <<<<<<<<<<<<<< * else: * for idx in range(len(pDependencies)): */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24612, __pyx_L1_error) __pyx_t_5 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24612, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24612, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24612, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_5, __pyx_n_u_x_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24612, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24612, __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, 24612, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24612, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24612, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_7, 0, 0, 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __PYX_ERR(0, 24612, __pyx_L1_error) /* "cuda/cudart.pyx":24611 * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ } /* "cuda/cudart.pyx":24614 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: * for idx in range(len(pDependencies)): # <<<<<<<<<<<<<< * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) */ /*else*/ { __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24614, __pyx_L1_error) __pyx_t_8 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_idx = __pyx_t_9; /* "cuda/cudart.pyx":24615 * else: * for idx in range(len(pDependencies)): * cpDependencies[idx] = (pDependencies[idx])._ptr[0] # <<<<<<<<<<<<<< * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * err = ccudart.cudaGraphAddEventRecordNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cevent) */ __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_pDependencies, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24615, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); (__pyx_v_cpDependencies[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_7)->__pyx_base._ptr[0])); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } /* "cuda/cudart.pyx":24609 * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: # <<<<<<<<<<<<<< * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: */ } /* "cuda/cudart.pyx":24616 * for idx in range(len(pDependencies)): * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) # <<<<<<<<<<<<<< * err = ccudart.cudaGraphAddEventRecordNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cevent) * if cpDependencies is not NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24616, __pyx_L1_error) __pyx_t_2 = (__pyx_v_numDependencies > ((size_t)__pyx_t_6)); if (unlikely(__pyx_t_2)) { __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24616, __pyx_L1_error) __pyx_t_7 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24616, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_5 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24616, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_List_is_too_small, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24616, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_7, __pyx_kp_u__400); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24616, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyInt_FromSize_t(__pyx_v_numDependencies); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24616, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24616, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_5, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24616, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24616, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 24616, __pyx_L1_error) } /* "cuda/cudart.pyx":24617 * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * err = ccudart.cudaGraphAddEventRecordNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cevent) # <<<<<<<<<<<<<< * if cpDependencies is not NULL: * free(cpDependencies) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24617, __pyx_L1_error) __pyx_t_2 = (__pyx_t_6 == 1); if (__pyx_t_2) { __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_pDependencies, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24617, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_10 = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_3)->__pyx_base._ptr); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_10 = __pyx_v_cpDependencies; } __pyx_t_11 = __pyx_f_4cuda_7ccudart_cudaGraphAddEventRecordNode(((cudaGraphNode_t *)__pyx_v_pGraphNode->__pyx_base._ptr), __pyx_v_cgraph, __pyx_t_10, __pyx_v_numDependencies, __pyx_v_cevent); if (unlikely(__pyx_t_11 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 24617, __pyx_L1_error) __pyx_v_err = __pyx_t_11; /* "cuda/cudart.pyx":24618 * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * err = ccudart.cudaGraphAddEventRecordNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cevent) * if cpDependencies is not NULL: # <<<<<<<<<<<<<< * free(cpDependencies) * return (cudaError_t(err), pGraphNode) */ __pyx_t_2 = (__pyx_v_cpDependencies != NULL); if (__pyx_t_2) { /* "cuda/cudart.pyx":24619 * err = ccudart.cudaGraphAddEventRecordNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cevent) * if cpDependencies is not NULL: * free(cpDependencies) # <<<<<<<<<<<<<< * return (cudaError_t(err), pGraphNode) * */ free(__pyx_v_cpDependencies); /* "cuda/cudart.pyx":24618 * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * err = ccudart.cudaGraphAddEventRecordNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cevent) * if cpDependencies is not NULL: # <<<<<<<<<<<<<< * free(cpDependencies) * return (cudaError_t(err), pGraphNode) */ } /* "cuda/cudart.pyx":24620 * if cpDependencies is not NULL: * free(cpDependencies) * return (cudaError_t(err), pGraphNode) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24620, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24620, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_12 = NULL; __pyx_t_13 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_12)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_12); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_13 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_12, __pyx_t_5}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_13, 1+__pyx_t_13); __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24620, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24620, __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)) __PYX_ERR(0, 24620, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pGraphNode); __Pyx_GIVEREF((PyObject *)__pyx_v_pGraphNode); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_pGraphNode))) __PYX_ERR(0, 24620, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":24548 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_12); __Pyx_AddTraceback("cuda.cudart.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_6cudart_27cudaGraphAddEventRecordNode_2generator19); __Pyx_XDECREF(__pyx_v_pDependencies); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":24622 * return (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_6cudart_407cudaGraphEventRecordNodeGetEvent(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_406cudaGraphEventRecordNodeGetEvent, "cudaGraphEventRecordNodeGetEvent(node)\n Returns the event associated with an event record node.\n\n Returns the event of event record node `hNode` in `event_out`.\n\n Parameters\n ----------\n hNode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Node to get the event for\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n event_out : :py:obj:`~.cudaEvent_t`\n Pointer to return the event\n\n See Also\n --------\n :py:obj:`~.cudaGraphAddEventRecordNode`, :py:obj:`~.cudaGraphEventRecordNodeSetEvent`, :py:obj:`~.cudaGraphEventWaitNodeGetEvent`, :py:obj:`~.cudaEventRecordWithFlags`, :py:obj:`~.cudaStreamWaitEvent`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_407cudaGraphEventRecordNodeGetEvent = {"cudaGraphEventRecordNodeGetEvent", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_407cudaGraphEventRecordNodeGetEvent, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_406cudaGraphEventRecordNodeGetEvent}; static PyObject *__pyx_pw_4cuda_6cudart_407cudaGraphEventRecordNodeGetEvent(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_node_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_node_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24622, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphEventRecordNodeGetEvent") < 0)) __PYX_ERR(0, 24622, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_node = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphEventRecordNodeGetEvent", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 24622, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphEventRecordNodeGetEvent", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_406cudaGraphEventRecordNodeGetEvent(__pyx_self, __pyx_v_node); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_406cudaGraphEventRecordNodeGetEvent(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node) { cudaGraphNode_t __pyx_v_cnode; PyObject *__pyx_v_pnode = NULL; struct __pyx_obj_4cuda_6cudart_cudaEvent_t *__pyx_v_event_out = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__555) __Pyx_RefNannySetupContext("cudaGraphEventRecordNodeGetEvent", 1); __Pyx_TraceCall("cudaGraphEventRecordNodeGetEvent", __pyx_f[0], 24622, 0, __PYX_ERR(0, 24622, __pyx_L1_error)); /* "cuda/cudart.pyx":24645 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_node == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":24646 * cdef ccudart.cudaGraphNode_t cnode * if node is None: * cnode = 0 # <<<<<<<<<<<<<< * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) */ __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":24645 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":24647 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":24648 * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) # <<<<<<<<<<<<<< * cnode = pnode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24648, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pnode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":24649 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) * cnode = pnode # <<<<<<<<<<<<<< * else: * pnode = int(cudaGraphNode_t(node)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24649, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":24647 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ goto __pyx_L3; } /* "cuda/cudart.pyx":24651 * cnode = pnode * else: * pnode = int(cudaGraphNode_t(node)) # <<<<<<<<<<<<<< * cnode = pnode * cdef cudaEvent_t event_out = cudaEvent_t() */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24651, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24651, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pnode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":24652 * else: * pnode = int(cudaGraphNode_t(node)) * cnode = pnode # <<<<<<<<<<<<<< * cdef cudaEvent_t event_out = cudaEvent_t() * err = ccudart.cudaGraphEventRecordNodeGetEvent(cnode, event_out._ptr) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24652, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":24653 * pnode = int(cudaGraphNode_t(node)) * cnode = pnode * cdef cudaEvent_t event_out = cudaEvent_t() # <<<<<<<<<<<<<< * err = ccudart.cudaGraphEventRecordNodeGetEvent(cnode, event_out._ptr) * return (cudaError_t(err), event_out) */ __pyx_t_5 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEvent_t)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24653, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_event_out = ((struct __pyx_obj_4cuda_6cudart_cudaEvent_t *)__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":24654 * cnode = pnode * cdef cudaEvent_t event_out = cudaEvent_t() * err = ccudart.cudaGraphEventRecordNodeGetEvent(cnode, event_out._ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err), event_out) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaGraphEventRecordNodeGetEvent(__pyx_v_cnode, ((cudaEvent_t *)__pyx_v_event_out->__pyx_base._ptr)); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 24654, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":24655 * cdef cudaEvent_t event_out = cudaEvent_t() * err = ccudart.cudaGraphEventRecordNodeGetEvent(cnode, event_out._ptr) * return (cudaError_t(err), event_out) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24655, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24655, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24655, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24655, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 24655, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_event_out); __Pyx_GIVEREF((PyObject *)__pyx_v_event_out); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_v_event_out))) __PYX_ERR(0, 24655, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":24622 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":24657 * return (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_6cudart_409cudaGraphEventRecordNodeSetEvent(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_408cudaGraphEventRecordNodeSetEvent, "cudaGraphEventRecordNodeSetEvent(node, event)\n Sets an event record node's event.\n\n Sets the event of event record node `hNode` to `event`.\n\n Parameters\n ----------\n hNode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Node to set the event for\n event : :py:obj:`~.CUevent` or :py:obj:`~.cudaEvent_t`\n Event to use\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\n See Also\n --------\n :py:obj:`~.cudaGraphNodeSetParams`, :py:obj:`~.cudaGraphAddEventRecordNode`, :py:obj:`~.cudaGraphEventRecordNodeGetEvent`, :py:obj:`~.cudaGraphEventWaitNodeSetEvent`, :py:obj:`~.cudaEventRecordWithFlags`, :py:obj:`~.cudaStreamWaitEvent`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_409cudaGraphEventRecordNodeSetEvent = {"cudaGraphEventRecordNodeSetEvent", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_409cudaGraphEventRecordNodeSetEvent, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_408cudaGraphEventRecordNodeSetEvent}; static PyObject *__pyx_pw_4cuda_6cudart_409cudaGraphEventRecordNodeSetEvent(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_node_2,&__pyx_n_s_event_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_node_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24657, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_event_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24657, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphEventRecordNodeSetEvent", 1, 2, 2, 1); __PYX_ERR(0, 24657, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphEventRecordNodeSetEvent") < 0)) __PYX_ERR(0, 24657, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __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, 24657, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphEventRecordNodeSetEvent", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_408cudaGraphEventRecordNodeSetEvent(__pyx_self, __pyx_v_node, __pyx_v_event); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_408cudaGraphEventRecordNodeSetEvent(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node, PyObject *__pyx_v_event) { cudaEvent_t __pyx_v_cevent; PyObject *__pyx_v_pevent = NULL; cudaGraphNode_t __pyx_v_cnode; PyObject *__pyx_v_pnode = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__556) __Pyx_RefNannySetupContext("cudaGraphEventRecordNodeSetEvent", 1); __Pyx_TraceCall("cudaGraphEventRecordNodeSetEvent", __pyx_f[0], 24657, 0, __PYX_ERR(0, 24657, __pyx_L1_error)); /* "cuda/cudart.pyx":24680 * """ * cdef ccudart.cudaEvent_t cevent * if event is None: # <<<<<<<<<<<<<< * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): */ __pyx_t_1 = (__pyx_v_event == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":24681 * cdef ccudart.cudaEvent_t cevent * if event is None: * cevent = 0 # <<<<<<<<<<<<<< * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) */ __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":24680 * """ * cdef ccudart.cudaEvent_t cevent * if event is None: # <<<<<<<<<<<<<< * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":24682 * if event is None: * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pevent = int(event) * cevent = pevent */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUevent); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":24683 * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) # <<<<<<<<<<<<<< * cevent = pevent * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24683, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pevent = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":24684 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) * cevent = pevent # <<<<<<<<<<<<<< * else: * pevent = int(cudaEvent_t(event)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24684, __pyx_L1_error) __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":24682 * if event is None: * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pevent = int(event) * cevent = pevent */ goto __pyx_L3; } /* "cuda/cudart.pyx":24686 * cevent = pevent * else: * pevent = int(cudaEvent_t(event)) # <<<<<<<<<<<<<< * cevent = pevent * cdef ccudart.cudaGraphNode_t cnode */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEvent_t), __pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24686, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24686, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pevent = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":24687 * else: * pevent = int(cudaEvent_t(event)) * cevent = pevent # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t cnode * if node is None: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24687, __pyx_L1_error) __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":24689 * cevent = pevent * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_node == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":24690 * cdef ccudart.cudaGraphNode_t cnode * if node is None: * cnode = 0 # <<<<<<<<<<<<<< * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) */ __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":24689 * cevent = pevent * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":24691 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L7_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":24692 * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) # <<<<<<<<<<<<<< * cnode = pnode * else: */ __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24692, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pnode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":24693 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) * cnode = pnode # <<<<<<<<<<<<<< * else: * pnode = int(cudaGraphNode_t(node)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24693, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":24691 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ goto __pyx_L6; } /* "cuda/cudart.pyx":24695 * cnode = pnode * else: * pnode = int(cudaGraphNode_t(node)) # <<<<<<<<<<<<<< * cnode = pnode * err = ccudart.cudaGraphEventRecordNodeSetEvent(cnode, cevent) */ /*else*/ { __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_node); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24695, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24695, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_pnode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":24696 * else: * pnode = int(cudaGraphNode_t(node)) * cnode = pnode # <<<<<<<<<<<<<< * err = ccudart.cudaGraphEventRecordNodeSetEvent(cnode, cevent) * return (cudaError_t(err),) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24696, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L6:; /* "cuda/cudart.pyx":24697 * pnode = int(cudaGraphNode_t(node)) * cnode = pnode * err = ccudart.cudaGraphEventRecordNodeSetEvent(cnode, cevent) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaGraphEventRecordNodeSetEvent(__pyx_v_cnode, __pyx_v_cevent); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 24697, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":24698 * cnode = pnode * err = ccudart.cudaGraphEventRecordNodeSetEvent(cnode, cevent) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24698, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24698, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __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, 24698, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24698, __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)) __PYX_ERR(0, 24698, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":24657 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":24700 * return (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_6cudart_411cudaGraphAddEventWaitNode(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_410cudaGraphAddEventWaitNode, "cudaGraphAddEventWaitNode(graph, pDependencies: Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], size_t numDependencies, event)\n Creates an event wait node and adds it to a graph.\n\n Creates a new event wait node and adds it to `hGraph` with\n `numDependencies` dependencies specified via `dependencies` and event\n specified in `event`. It is possible for `numDependencies` to be 0, in\n which 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\n node will be returned in `phGraphNode`.\n\n The graph node will wait for all work captured in `event`. See\n :py:obj:`~.cuEventRecord()` for details on what is captured by an\n event. The synchronization will be performed efficiently on the device\n when applicable. `event` may be from a different context or device than\n the launch stream.\n\n These nodes may not be used in loops or conditionals.\n\n Parameters\n ----------\n hGraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n Graph to which to add the node\n dependencies : List[:py:obj:`~.cudaGraphNode_t`]\n Dependencies of the node\n numDependencies : size_t\n Number of dependencies\n event : :py:obj:`~.CUevent` or :py:obj:`~.cudaEvent_t`\n Event for the node\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n phGraphNode : :py:obj:`~.cudaGraphNode_t`\n Returns newly created node\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_411cudaGraphAddEventWaitNode = {"cudaGraphAddEventWaitNode", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_411cudaGraphAddEventWaitNode, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_410cudaGraphAddEventWaitNode}; static PyObject *__pyx_pw_4cuda_6cudart_411cudaGraphAddEventWaitNode(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_graph_2,&__pyx_n_s_pDependencies,&__pyx_n_s_numDependencies,&__pyx_n_s_event_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_graph_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24700, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pDependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24700, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddEventWaitNode", 1, 4, 4, 1); __PYX_ERR(0, 24700, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_numDependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24700, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddEventWaitNode", 1, 4, 4, 2); __PYX_ERR(0, 24700, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_event_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24700, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddEventWaitNode", 1, 4, 4, 3); __PYX_ERR(0, 24700, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphAddEventWaitNode") < 0)) __PYX_ERR(0, 24700, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); } __pyx_v_graph = values[0]; __pyx_v_pDependencies = values[1]; __pyx_v_numDependencies = __Pyx_PyInt_As_size_t(values[2]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 24701, __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, 24700, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphAddEventWaitNode", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_410cudaGraphAddEventWaitNode(__pyx_self, __pyx_v_graph, __pyx_v_pDependencies, __pyx_v_numDependencies, __pyx_v_event); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_25cudaGraphAddEventWaitNode_2generator20(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":24751 * cevent = pevent * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ static PyObject *__pyx_pf_4cuda_6cudart_25cudaGraphAddEventWaitNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct_20_genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_20_genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_20_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_20_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 24751, __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_6cudart_25cudaGraphAddEventWaitNode_2generator20, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaGraphAddEventWaitNode_locals, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 24751, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.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_6cudart_25cudaGraphAddEventWaitNode_2generator20(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_20_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_20_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 24751, 0, __PYX_ERR(0, 24751, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 24751, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 24751, __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, 24751, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24751, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 24751, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 24751, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24751, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 24751, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 24751, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24751, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 24751, __pyx_L1_error) } 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_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":24700 * return (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_6cudart_410cudaGraphAddEventWaitNode(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_cevent; PyObject *__pyx_v_pevent = NULL; cudaGraph_t __pyx_v_cgraph; PyObject *__pyx_v_pgraph = NULL; struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *__pyx_v_pGraphNode = 0; cudaGraphNode_t *__pyx_v_cpDependencies; Py_ssize_t __pyx_v_idx; cudaError_t __pyx_v_err; PyObject *__pyx_gb_4cuda_6cudart_25cudaGraphAddEventWaitNode_2generator20 = 0; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; Py_ssize_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; Py_ssize_t __pyx_t_8; Py_ssize_t __pyx_t_9; cudaGraphNode_t *__pyx_t_10; cudaError_t __pyx_t_11; PyObject *__pyx_t_12 = NULL; unsigned int __pyx_t_13; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__557) __Pyx_RefNannySetupContext("cudaGraphAddEventWaitNode", 0); __Pyx_TraceCall("cudaGraphAddEventWaitNode", __pyx_f[0], 24700, 0, __PYX_ERR(0, 24700, __pyx_L1_error)); __Pyx_INCREF(__pyx_v_pDependencies); /* "cuda/cudart.pyx":24742 * """ * cdef ccudart.cudaEvent_t cevent * if event is None: # <<<<<<<<<<<<<< * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): */ __pyx_t_1 = (__pyx_v_event == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":24743 * cdef ccudart.cudaEvent_t cevent * if event is None: * cevent = 0 # <<<<<<<<<<<<<< * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) */ __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":24742 * """ * cdef ccudart.cudaEvent_t cevent * if event is None: # <<<<<<<<<<<<<< * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":24744 * if event is None: * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pevent = int(event) * cevent = pevent */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUevent); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":24745 * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) # <<<<<<<<<<<<<< * cevent = pevent * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24745, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pevent = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":24746 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) * cevent = pevent # <<<<<<<<<<<<<< * else: * pevent = int(cudaEvent_t(event)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24746, __pyx_L1_error) __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":24744 * if event is None: * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pevent = int(event) * cevent = pevent */ goto __pyx_L3; } /* "cuda/cudart.pyx":24748 * cevent = pevent * else: * pevent = int(cudaEvent_t(event)) # <<<<<<<<<<<<<< * cevent = pevent * pDependencies = [] if pDependencies is None else pDependencies */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEvent_t), __pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24748, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24748, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pevent = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":24749 * else: * pevent = int(cudaEvent_t(event)) * cevent = pevent # <<<<<<<<<<<<<< * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24749, __pyx_L1_error) __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":24750 * pevent = int(cudaEvent_t(event)) * cevent = pevent * pDependencies = [] if pDependencies is None else pDependencies # <<<<<<<<<<<<<< * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.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, 24750, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __pyx_t_3; __pyx_t_3 = 0; } else { __Pyx_INCREF(__pyx_v_pDependencies); __pyx_t_5 = __pyx_v_pDependencies; } __Pyx_DECREF_SET(__pyx_v_pDependencies, __pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":24751 * cevent = pevent * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ __pyx_t_5 = __pyx_pf_4cuda_6cudart_25cudaGraphAddEventWaitNode_genexpr(NULL, __pyx_v_pDependencies); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24751, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24751, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 24751, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_2 = (!__pyx_t_1); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":24752 * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") # <<<<<<<<<<<<<< * cdef ccudart.cudaGraph_t cgraph * if graph is None: */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__534, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24752, __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, 24752, __pyx_L1_error) /* "cuda/cudart.pyx":24751 * cevent = pevent * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ } /* "cuda/cudart.pyx":24754 * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_2 = (__pyx_v_graph == Py_None); if (__pyx_t_2) { /* "cuda/cudart.pyx":24755 * cdef ccudart.cudaGraph_t cgraph * if graph is None: * cgraph = 0 # <<<<<<<<<<<<<< * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) */ __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":24754 * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L7; } /* "cuda/cudart.pyx":24756 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_2 = __pyx_t_1; __pyx_L8_bool_binop_done:; if (__pyx_t_2) { /* "cuda/cudart.pyx":24757 * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) # <<<<<<<<<<<<<< * cgraph = pgraph * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24757, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pgraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":24758 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) * cgraph = pgraph # <<<<<<<<<<<<<< * else: * pgraph = int(cudaGraph_t(graph)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24758, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":24756 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ goto __pyx_L7; } /* "cuda/cudart.pyx":24760 * cgraph = pgraph * else: * pgraph = int(cudaGraph_t(graph)) # <<<<<<<<<<<<<< * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24760, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24760, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pgraph = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":24761 * else: * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph # <<<<<<<<<<<<<< * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24761, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L7:; /* "cuda/cudart.pyx":24762 * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: */ __pyx_t_5 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24762, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pGraphNode = ((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":24763 * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL # <<<<<<<<<<<<<< * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) */ __pyx_v_cpDependencies = NULL; /* "cuda/cudart.pyx":24764 * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: # <<<<<<<<<<<<<< * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24764, __pyx_L1_error) __pyx_t_2 = (__pyx_t_6 > 0); if (__pyx_t_2) { /* "cuda/cudart.pyx":24765 * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) # <<<<<<<<<<<<<< * if cpDependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24765, __pyx_L1_error) __pyx_v_cpDependencies = ((cudaGraphNode_t *)calloc(__pyx_t_6, (sizeof(cudaGraphNode_t)))); /* "cuda/cudart.pyx":24766 * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ __pyx_t_2 = (__pyx_v_cpDependencies == NULL); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":24767 * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) # <<<<<<<<<<<<<< * else: * for idx in range(len(pDependencies)): */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24767, __pyx_L1_error) __pyx_t_5 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24767, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24767, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24767, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_5, __pyx_n_u_x_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24767, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24767, __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, 24767, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24767, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24767, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_7, 0, 0, 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __PYX_ERR(0, 24767, __pyx_L1_error) /* "cuda/cudart.pyx":24766 * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ } /* "cuda/cudart.pyx":24769 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: * for idx in range(len(pDependencies)): # <<<<<<<<<<<<<< * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) */ /*else*/ { __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24769, __pyx_L1_error) __pyx_t_8 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_idx = __pyx_t_9; /* "cuda/cudart.pyx":24770 * else: * for idx in range(len(pDependencies)): * cpDependencies[idx] = (pDependencies[idx])._ptr[0] # <<<<<<<<<<<<<< * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * err = ccudart.cudaGraphAddEventWaitNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cevent) */ __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_pDependencies, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24770, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); (__pyx_v_cpDependencies[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_7)->__pyx_base._ptr[0])); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } /* "cuda/cudart.pyx":24764 * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: # <<<<<<<<<<<<<< * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: */ } /* "cuda/cudart.pyx":24771 * for idx in range(len(pDependencies)): * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) # <<<<<<<<<<<<<< * err = ccudart.cudaGraphAddEventWaitNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cevent) * if cpDependencies is not NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24771, __pyx_L1_error) __pyx_t_2 = (__pyx_v_numDependencies > ((size_t)__pyx_t_6)); if (unlikely(__pyx_t_2)) { __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24771, __pyx_L1_error) __pyx_t_7 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24771, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_5 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24771, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_List_is_too_small, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24771, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_7, __pyx_kp_u__400); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24771, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyInt_FromSize_t(__pyx_v_numDependencies); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24771, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24771, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_5, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24771, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24771, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 24771, __pyx_L1_error) } /* "cuda/cudart.pyx":24772 * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * err = ccudart.cudaGraphAddEventWaitNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cevent) # <<<<<<<<<<<<<< * if cpDependencies is not NULL: * free(cpDependencies) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24772, __pyx_L1_error) __pyx_t_2 = (__pyx_t_6 == 1); if (__pyx_t_2) { __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_pDependencies, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24772, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_10 = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_3)->__pyx_base._ptr); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_10 = __pyx_v_cpDependencies; } __pyx_t_11 = __pyx_f_4cuda_7ccudart_cudaGraphAddEventWaitNode(((cudaGraphNode_t *)__pyx_v_pGraphNode->__pyx_base._ptr), __pyx_v_cgraph, __pyx_t_10, __pyx_v_numDependencies, __pyx_v_cevent); if (unlikely(__pyx_t_11 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 24772, __pyx_L1_error) __pyx_v_err = __pyx_t_11; /* "cuda/cudart.pyx":24773 * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * err = ccudart.cudaGraphAddEventWaitNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cevent) * if cpDependencies is not NULL: # <<<<<<<<<<<<<< * free(cpDependencies) * return (cudaError_t(err), pGraphNode) */ __pyx_t_2 = (__pyx_v_cpDependencies != NULL); if (__pyx_t_2) { /* "cuda/cudart.pyx":24774 * err = ccudart.cudaGraphAddEventWaitNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cevent) * if cpDependencies is not NULL: * free(cpDependencies) # <<<<<<<<<<<<<< * return (cudaError_t(err), pGraphNode) * */ free(__pyx_v_cpDependencies); /* "cuda/cudart.pyx":24773 * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * err = ccudart.cudaGraphAddEventWaitNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cevent) * if cpDependencies is not NULL: # <<<<<<<<<<<<<< * free(cpDependencies) * return (cudaError_t(err), pGraphNode) */ } /* "cuda/cudart.pyx":24775 * if cpDependencies is not NULL: * free(cpDependencies) * return (cudaError_t(err), pGraphNode) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24775, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24775, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_12 = NULL; __pyx_t_13 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_12)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_12); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_13 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_12, __pyx_t_5}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_13, 1+__pyx_t_13); __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24775, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24775, __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)) __PYX_ERR(0, 24775, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pGraphNode); __Pyx_GIVEREF((PyObject *)__pyx_v_pGraphNode); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_pGraphNode))) __PYX_ERR(0, 24775, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":24700 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_12); __Pyx_AddTraceback("cuda.cudart.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_6cudart_25cudaGraphAddEventWaitNode_2generator20); __Pyx_XDECREF(__pyx_v_pDependencies); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":24777 * return (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_6cudart_413cudaGraphEventWaitNodeGetEvent(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_412cudaGraphEventWaitNodeGetEvent, "cudaGraphEventWaitNodeGetEvent(node)\n Returns the event associated with an event wait node.\n\n Returns the event of event wait node `hNode` in `event_out`.\n\n Parameters\n ----------\n hNode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Node to get the event for\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n event_out : :py:obj:`~.cudaEvent_t`\n Pointer to return the event\n\n See Also\n --------\n :py:obj:`~.cudaGraphAddEventWaitNode`, :py:obj:`~.cudaGraphEventWaitNodeSetEvent`, :py:obj:`~.cudaGraphEventRecordNodeGetEvent`, :py:obj:`~.cudaEventRecordWithFlags`, :py:obj:`~.cudaStreamWaitEvent`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_413cudaGraphEventWaitNodeGetEvent = {"cudaGraphEventWaitNodeGetEvent", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_413cudaGraphEventWaitNodeGetEvent, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_412cudaGraphEventWaitNodeGetEvent}; static PyObject *__pyx_pw_4cuda_6cudart_413cudaGraphEventWaitNodeGetEvent(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_node_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_node_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24777, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphEventWaitNodeGetEvent") < 0)) __PYX_ERR(0, 24777, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_node = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphEventWaitNodeGetEvent", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 24777, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphEventWaitNodeGetEvent", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_412cudaGraphEventWaitNodeGetEvent(__pyx_self, __pyx_v_node); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_412cudaGraphEventWaitNodeGetEvent(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node) { cudaGraphNode_t __pyx_v_cnode; PyObject *__pyx_v_pnode = NULL; struct __pyx_obj_4cuda_6cudart_cudaEvent_t *__pyx_v_event_out = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__558) __Pyx_RefNannySetupContext("cudaGraphEventWaitNodeGetEvent", 1); __Pyx_TraceCall("cudaGraphEventWaitNodeGetEvent", __pyx_f[0], 24777, 0, __PYX_ERR(0, 24777, __pyx_L1_error)); /* "cuda/cudart.pyx":24800 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_node == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":24801 * cdef ccudart.cudaGraphNode_t cnode * if node is None: * cnode = 0 # <<<<<<<<<<<<<< * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) */ __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":24800 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":24802 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":24803 * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) # <<<<<<<<<<<<<< * cnode = pnode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24803, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pnode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":24804 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) * cnode = pnode # <<<<<<<<<<<<<< * else: * pnode = int(cudaGraphNode_t(node)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24804, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":24802 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ goto __pyx_L3; } /* "cuda/cudart.pyx":24806 * cnode = pnode * else: * pnode = int(cudaGraphNode_t(node)) # <<<<<<<<<<<<<< * cnode = pnode * cdef cudaEvent_t event_out = cudaEvent_t() */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24806, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24806, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pnode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":24807 * else: * pnode = int(cudaGraphNode_t(node)) * cnode = pnode # <<<<<<<<<<<<<< * cdef cudaEvent_t event_out = cudaEvent_t() * err = ccudart.cudaGraphEventWaitNodeGetEvent(cnode, event_out._ptr) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24807, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":24808 * pnode = int(cudaGraphNode_t(node)) * cnode = pnode * cdef cudaEvent_t event_out = cudaEvent_t() # <<<<<<<<<<<<<< * err = ccudart.cudaGraphEventWaitNodeGetEvent(cnode, event_out._ptr) * return (cudaError_t(err), event_out) */ __pyx_t_5 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEvent_t)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24808, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_event_out = ((struct __pyx_obj_4cuda_6cudart_cudaEvent_t *)__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":24809 * cnode = pnode * cdef cudaEvent_t event_out = cudaEvent_t() * err = ccudart.cudaGraphEventWaitNodeGetEvent(cnode, event_out._ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err), event_out) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaGraphEventWaitNodeGetEvent(__pyx_v_cnode, ((cudaEvent_t *)__pyx_v_event_out->__pyx_base._ptr)); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 24809, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":24810 * cdef cudaEvent_t event_out = cudaEvent_t() * err = ccudart.cudaGraphEventWaitNodeGetEvent(cnode, event_out._ptr) * return (cudaError_t(err), event_out) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24810, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24810, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24810, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24810, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 24810, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_event_out); __Pyx_GIVEREF((PyObject *)__pyx_v_event_out); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_v_event_out))) __PYX_ERR(0, 24810, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":24777 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":24812 * return (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_6cudart_415cudaGraphEventWaitNodeSetEvent(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_414cudaGraphEventWaitNodeSetEvent, "cudaGraphEventWaitNodeSetEvent(node, event)\n Sets an event wait node's event.\n\n Sets the event of event wait node `hNode` to `event`.\n\n Parameters\n ----------\n hNode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Node to set the event for\n event : :py:obj:`~.CUevent` or :py:obj:`~.cudaEvent_t`\n Event to use\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\n See Also\n --------\n :py:obj:`~.cudaGraphNodeSetParams`, :py:obj:`~.cudaGraphAddEventWaitNode`, :py:obj:`~.cudaGraphEventWaitNodeGetEvent`, :py:obj:`~.cudaGraphEventRecordNodeSetEvent`, :py:obj:`~.cudaEventRecordWithFlags`, :py:obj:`~.cudaStreamWaitEvent`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_415cudaGraphEventWaitNodeSetEvent = {"cudaGraphEventWaitNodeSetEvent", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_415cudaGraphEventWaitNodeSetEvent, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_414cudaGraphEventWaitNodeSetEvent}; static PyObject *__pyx_pw_4cuda_6cudart_415cudaGraphEventWaitNodeSetEvent(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_node_2,&__pyx_n_s_event_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_node_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24812, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_event_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24812, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphEventWaitNodeSetEvent", 1, 2, 2, 1); __PYX_ERR(0, 24812, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphEventWaitNodeSetEvent") < 0)) __PYX_ERR(0, 24812, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __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, 24812, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphEventWaitNodeSetEvent", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_414cudaGraphEventWaitNodeSetEvent(__pyx_self, __pyx_v_node, __pyx_v_event); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_414cudaGraphEventWaitNodeSetEvent(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node, PyObject *__pyx_v_event) { cudaEvent_t __pyx_v_cevent; PyObject *__pyx_v_pevent = NULL; cudaGraphNode_t __pyx_v_cnode; PyObject *__pyx_v_pnode = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__559) __Pyx_RefNannySetupContext("cudaGraphEventWaitNodeSetEvent", 1); __Pyx_TraceCall("cudaGraphEventWaitNodeSetEvent", __pyx_f[0], 24812, 0, __PYX_ERR(0, 24812, __pyx_L1_error)); /* "cuda/cudart.pyx":24835 * """ * cdef ccudart.cudaEvent_t cevent * if event is None: # <<<<<<<<<<<<<< * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): */ __pyx_t_1 = (__pyx_v_event == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":24836 * cdef ccudart.cudaEvent_t cevent * if event is None: * cevent = 0 # <<<<<<<<<<<<<< * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) */ __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":24835 * """ * cdef ccudart.cudaEvent_t cevent * if event is None: # <<<<<<<<<<<<<< * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":24837 * if event is None: * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pevent = int(event) * cevent = pevent */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUevent); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":24838 * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) # <<<<<<<<<<<<<< * cevent = pevent * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24838, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pevent = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":24839 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) * cevent = pevent # <<<<<<<<<<<<<< * else: * pevent = int(cudaEvent_t(event)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24839, __pyx_L1_error) __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":24837 * if event is None: * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pevent = int(event) * cevent = pevent */ goto __pyx_L3; } /* "cuda/cudart.pyx":24841 * cevent = pevent * else: * pevent = int(cudaEvent_t(event)) # <<<<<<<<<<<<<< * cevent = pevent * cdef ccudart.cudaGraphNode_t cnode */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEvent_t), __pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24841, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24841, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pevent = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":24842 * else: * pevent = int(cudaEvent_t(event)) * cevent = pevent # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t cnode * if node is None: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24842, __pyx_L1_error) __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":24844 * cevent = pevent * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_node == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":24845 * cdef ccudart.cudaGraphNode_t cnode * if node is None: * cnode = 0 # <<<<<<<<<<<<<< * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) */ __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":24844 * cevent = pevent * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":24846 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L7_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":24847 * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) # <<<<<<<<<<<<<< * cnode = pnode * else: */ __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24847, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pnode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":24848 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) * cnode = pnode # <<<<<<<<<<<<<< * else: * pnode = int(cudaGraphNode_t(node)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24848, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":24846 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ goto __pyx_L6; } /* "cuda/cudart.pyx":24850 * cnode = pnode * else: * pnode = int(cudaGraphNode_t(node)) # <<<<<<<<<<<<<< * cnode = pnode * err = ccudart.cudaGraphEventWaitNodeSetEvent(cnode, cevent) */ /*else*/ { __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_node); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24850, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24850, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_pnode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":24851 * else: * pnode = int(cudaGraphNode_t(node)) * cnode = pnode # <<<<<<<<<<<<<< * err = ccudart.cudaGraphEventWaitNodeSetEvent(cnode, cevent) * return (cudaError_t(err),) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24851, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L6:; /* "cuda/cudart.pyx":24852 * pnode = int(cudaGraphNode_t(node)) * cnode = pnode * err = ccudart.cudaGraphEventWaitNodeSetEvent(cnode, cevent) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaGraphEventWaitNodeSetEvent(__pyx_v_cnode, __pyx_v_cevent); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 24852, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":24853 * cnode = pnode * err = ccudart.cudaGraphEventWaitNodeSetEvent(cnode, cevent) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24853, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24853, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __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, 24853, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24853, __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)) __PYX_ERR(0, 24853, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":24812 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":24855 * return (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_6cudart_417cudaGraphAddExternalSemaphoresSignalNode(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_416cudaGraphAddExternalSemaphoresSignalNode, "cudaGraphAddExternalSemaphoresSignalNode(graph, pDependencies: Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], size_t numDependencies, cudaExternalSemaphoreSignalNodeParams nodeParams: Optional[cudaExternalSemaphoreSignalNodeParams])\n Creates an external semaphore signal node and adds it to a graph.\n\n Creates a new external semaphore signal node and adds it to `graph`\n with `numDependencies` dependencies specified via `dependencies` and\n arguments specified in `nodeParams`. It is possible for\n `numDependencies` to be 0, in which case the node will be placed at the\n root of the graph. `dependencies` may not have any duplicate entries. A\n handle to the new node will be returned in `pGraphNode`.\n\n Performs a signal operation on a set of externally allocated semaphore\n objects when the node is launched. The operation(s) will occur after\n all of the node's dependencies have completed.\n\n Parameters\n ----------\n graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n Graph to which to add the node\n pDependencies : List[:py:obj:`~.cudaGraphNode_t`]\n Dependencies of the node\n numDependencies : size_t\n Number of dependencies\n nodeParams : :py:obj:`~.cudaExternalSemaphoreSignalNodeParams`\n Parameters for the node\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n pGraphNode : :py:obj:`~.cudaGraphNode_t`\n Returns newly created node\n\n See 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:`~.cud""aGraphDestroyNode`, :py:obj:`~.cudaGraphAddEventRecordNode`, :py:obj:`~.cudaGraphAddEventWaitNode`, :py:obj:`~.cudaGraphAddChildGraphNode`, :py:obj:`~.cudaGraphAddEmptyNode`, :py:obj:`~.cudaGraphAddKernelNode`, :py:obj:`~.cudaGraphAddMemcpyNode`, :py:obj:`~.cudaGraphAddMemsetNode`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_417cudaGraphAddExternalSemaphoresSignalNode = {"cudaGraphAddExternalSemaphoresSignalNode", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_417cudaGraphAddExternalSemaphoresSignalNode, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_416cudaGraphAddExternalSemaphoresSignalNode}; static PyObject *__pyx_pw_4cuda_6cudart_417cudaGraphAddExternalSemaphoresSignalNode(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_graph_2,&__pyx_n_s_pDependencies,&__pyx_n_s_numDependencies,&__pyx_n_s_nodeParams,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_graph_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24855, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pDependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24855, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddExternalSemaphoresSignalNode", 1, 4, 4, 1); __PYX_ERR(0, 24855, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_numDependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24855, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddExternalSemaphoresSignalNode", 1, 4, 4, 2); __PYX_ERR(0, 24855, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_nodeParams)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24855, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddExternalSemaphoresSignalNode", 1, 4, 4, 3); __PYX_ERR(0, 24855, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphAddExternalSemaphoresSignalNode") < 0)) __PYX_ERR(0, 24855, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); } __pyx_v_graph = values[0]; __pyx_v_pDependencies = values[1]; __pyx_v_numDependencies = __Pyx_PyInt_As_size_t(values[2]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 24856, __pyx_L3_error) __pyx_v_nodeParams = ((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *)values[3]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphAddExternalSemaphoresSignalNode", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 24855, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams, 1, "nodeParams", 0))) __PYX_ERR(0, 24856, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_416cudaGraphAddExternalSemaphoresSignalNode(__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; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_40cudaGraphAddExternalSemaphoresSignalNode_2generator21(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":24893 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ static PyObject *__pyx_pf_4cuda_6cudart_40cudaGraphAddExternalSemaphoresSignalNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct_21_genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_21_genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_21_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_21_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 24893, __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_6cudart_40cudaGraphAddExternalSemaphoresSignalNode_2generator21, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaGraphAddExternalSemaphoresSi, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 24893, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.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_6cudart_40cudaGraphAddExternalSemaphoresSignalNode_2generator21(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_21_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_21_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 24893, 0, __PYX_ERR(0, 24893, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 24893, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 24893, __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, 24893, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24893, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 24893, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 24893, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24893, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 24893, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 24893, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24893, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 24893, __pyx_L1_error) } 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_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":24855 * return (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_6cudart_416cudaGraphAddExternalSemaphoresSignalNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_pDependencies, size_t __pyx_v_numDependencies, struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *__pyx_v_nodeParams) { cudaGraph_t __pyx_v_cgraph; PyObject *__pyx_v_pgraph = NULL; struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *__pyx_v_pGraphNode = 0; cudaGraphNode_t *__pyx_v_cpDependencies; Py_ssize_t __pyx_v_idx; struct cudaExternalSemaphoreSignalNodeParams *__pyx_v_cnodeParams_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_gb_4cuda_6cudart_40cudaGraphAddExternalSemaphoresSignalNode_2generator21 = 0; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; Py_ssize_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; Py_ssize_t __pyx_t_8; Py_ssize_t __pyx_t_9; struct cudaExternalSemaphoreSignalNodeParams *__pyx_t_10; cudaGraphNode_t *__pyx_t_11; cudaError_t __pyx_t_12; PyObject *__pyx_t_13 = NULL; unsigned int __pyx_t_14; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__560) __Pyx_RefNannySetupContext("cudaGraphAddExternalSemaphoresSignalNode", 0); __Pyx_TraceCall("cudaGraphAddExternalSemaphoresSignalNode", __pyx_f[0], 24855, 0, __PYX_ERR(0, 24855, __pyx_L1_error)); __Pyx_INCREF(__pyx_v_pDependencies); /* "cuda/cudart.pyx":24892 * :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,cuda.CUgraphNode)) for _x in pDependencies): * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.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, 24892, __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/cudart.pyx":24893 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ __pyx_t_1 = __pyx_pf_4cuda_6cudart_40cudaGraphAddExternalSemaphoresSignalNode_genexpr(NULL, __pyx_v_pDependencies); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24893, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24893, __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, 24893, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_4 = (!__pyx_t_2); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":24894 * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") # <<<<<<<<<<<<<< * cdef ccudart.cudaGraph_t cgraph * if graph is None: */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__534, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24894, __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, 24894, __pyx_L1_error) /* "cuda/cudart.pyx":24893 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ } /* "cuda/cudart.pyx":24896 * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_4 = (__pyx_v_graph == Py_None); if (__pyx_t_4) { /* "cuda/cudart.pyx":24897 * cdef ccudart.cudaGraph_t cgraph * if graph is None: * cgraph = 0 # <<<<<<<<<<<<<< * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) */ __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":24896 * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L4; } /* "cuda/cudart.pyx":24898 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_4 = __pyx_t_2; __pyx_L5_bool_binop_done:; if (__pyx_t_4) { /* "cuda/cudart.pyx":24899 * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) # <<<<<<<<<<<<<< * cgraph = pgraph * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24899, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pgraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":24900 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) * cgraph = pgraph # <<<<<<<<<<<<<< * else: * pgraph = int(cudaGraph_t(graph)) */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24900, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); /* "cuda/cudart.pyx":24898 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ goto __pyx_L4; } /* "cuda/cudart.pyx":24902 * cgraph = pgraph * else: * pgraph = int(cudaGraph_t(graph)) # <<<<<<<<<<<<<< * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24902, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24902, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pgraph = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":24903 * else: * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph # <<<<<<<<<<<<<< * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24903, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); } __pyx_L4:; /* "cuda/cudart.pyx":24904 * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24904, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_pGraphNode = ((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":24905 * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL # <<<<<<<<<<<<<< * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) */ __pyx_v_cpDependencies = NULL; /* "cuda/cudart.pyx":24906 * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: # <<<<<<<<<<<<<< * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24906, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 > 0); if (__pyx_t_4) { /* "cuda/cudart.pyx":24907 * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) # <<<<<<<<<<<<<< * if cpDependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24907, __pyx_L1_error) __pyx_v_cpDependencies = ((cudaGraphNode_t *)calloc(__pyx_t_6, (sizeof(cudaGraphNode_t)))); /* "cuda/cudart.pyx":24908 * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ __pyx_t_4 = (__pyx_v_cpDependencies == NULL); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":24909 * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) # <<<<<<<<<<<<<< * else: * for idx in range(len(pDependencies)): */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24909, __pyx_L1_error) __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24909, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24909, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24909, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_n_u_x_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24909, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24909, __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, 24909, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24909, __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 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24909, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_7, 0, 0, 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __PYX_ERR(0, 24909, __pyx_L1_error) /* "cuda/cudart.pyx":24908 * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ } /* "cuda/cudart.pyx":24911 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: * for idx in range(len(pDependencies)): # <<<<<<<<<<<<<< * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) */ /*else*/ { __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24911, __pyx_L1_error) __pyx_t_8 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_idx = __pyx_t_9; /* "cuda/cudart.pyx":24912 * else: * for idx in range(len(pDependencies)): * cpDependencies[idx] = (pDependencies[idx])._ptr[0] # <<<<<<<<<<<<<< * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * cdef ccudart.cudaExternalSemaphoreSignalNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL */ __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_pDependencies, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24912, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); (__pyx_v_cpDependencies[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_7)->__pyx_base._ptr[0])); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } /* "cuda/cudart.pyx":24906 * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: # <<<<<<<<<<<<<< * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: */ } /* "cuda/cudart.pyx":24913 * for idx in range(len(pDependencies)): * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) # <<<<<<<<<<<<<< * cdef ccudart.cudaExternalSemaphoreSignalNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphAddExternalSemaphoresSignalNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cnodeParams_ptr) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24913, __pyx_L1_error) __pyx_t_4 = (__pyx_v_numDependencies > ((size_t)__pyx_t_6)); if (unlikely(__pyx_t_4)) { __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24913, __pyx_L1_error) __pyx_t_7 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24913, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24913, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_List_is_too_small, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24913, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_7, __pyx_kp_u__400); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24913, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyInt_FromSize_t(__pyx_v_numDependencies); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24913, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24913, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24913, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24913, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 24913, __pyx_L1_error) } /* "cuda/cudart.pyx":24914 * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * cdef ccudart.cudaExternalSemaphoreSignalNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaGraphAddExternalSemaphoresSignalNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cnodeParams_ptr) * if cpDependencies is not NULL: */ __pyx_t_3 = PyObject_RichCompare(((PyObject *)__pyx_v_nodeParams), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24914, __pyx_L1_error) __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 24914, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_4) { __pyx_t_10 = __pyx_v_nodeParams->_ptr; } else { __pyx_t_10 = NULL; } __pyx_v_cnodeParams_ptr = __pyx_t_10; /* "cuda/cudart.pyx":24915 * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * cdef ccudart.cudaExternalSemaphoreSignalNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphAddExternalSemaphoresSignalNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cnodeParams_ptr) # <<<<<<<<<<<<<< * if cpDependencies is not NULL: * free(cpDependencies) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24915, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 == 1); if (__pyx_t_4) { __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_pDependencies, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24915, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_11 = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_3)->__pyx_base._ptr); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_11 = __pyx_v_cpDependencies; } __pyx_t_12 = __pyx_f_4cuda_7ccudart_cudaGraphAddExternalSemaphoresSignalNode(((cudaGraphNode_t *)__pyx_v_pGraphNode->__pyx_base._ptr), __pyx_v_cgraph, __pyx_t_11, __pyx_v_numDependencies, __pyx_v_cnodeParams_ptr); if (unlikely(__pyx_t_12 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 24915, __pyx_L1_error) __pyx_v_err = __pyx_t_12; /* "cuda/cudart.pyx":24916 * cdef ccudart.cudaExternalSemaphoreSignalNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphAddExternalSemaphoresSignalNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cnodeParams_ptr) * if cpDependencies is not NULL: # <<<<<<<<<<<<<< * free(cpDependencies) * return (cudaError_t(err), pGraphNode) */ __pyx_t_4 = (__pyx_v_cpDependencies != NULL); if (__pyx_t_4) { /* "cuda/cudart.pyx":24917 * err = ccudart.cudaGraphAddExternalSemaphoresSignalNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cnodeParams_ptr) * if cpDependencies is not NULL: * free(cpDependencies) # <<<<<<<<<<<<<< * return (cudaError_t(err), pGraphNode) * */ free(__pyx_v_cpDependencies); /* "cuda/cudart.pyx":24916 * cdef ccudart.cudaExternalSemaphoreSignalNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphAddExternalSemaphoresSignalNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cnodeParams_ptr) * if cpDependencies is not NULL: # <<<<<<<<<<<<<< * free(cpDependencies) * return (cudaError_t(err), pGraphNode) */ } /* "cuda/cudart.pyx":24918 * if cpDependencies is not NULL: * free(cpDependencies) * return (cudaError_t(err), pGraphNode) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24918, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24918, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_13 = NULL; __pyx_t_14 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_13)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_13); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_14 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_t_1}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_14, 1+__pyx_t_14); __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24918, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24918, __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)) __PYX_ERR(0, 24918, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pGraphNode); __Pyx_GIVEREF((PyObject *)__pyx_v_pGraphNode); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_pGraphNode))) __PYX_ERR(0, 24918, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":24855 * return (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_7); __Pyx_XDECREF(__pyx_t_13); __Pyx_AddTraceback("cuda.cudart.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_6cudart_40cudaGraphAddExternalSemaphoresSignalNode_2generator21); __Pyx_XDECREF(__pyx_v_pDependencies); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":24920 * return (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_6cudart_419cudaGraphExternalSemaphoresSignalNodeGetParams(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_418cudaGraphExternalSemaphoresSignalNodeGetParams, "cudaGraphExternalSemaphoresSignalNodeGetParams(hNode)\n Returns an external semaphore signal node's parameters.\n\n Returns 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\n the node is destroyed or its parameters are modified, and should not be\n modified directly. Use\n :py:obj:`~.cudaGraphExternalSemaphoresSignalNodeSetParams` to update\n the parameters of this node.\n\n Parameters\n ----------\n hNode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Node to get the parameters for\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n params_out : :py:obj:`~.cudaExternalSemaphoreSignalNodeParams`\n Pointer to return the parameters\n\n See Also\n --------\n :py:obj:`~.cudaLaunchKernel`, :py:obj:`~.cudaGraphAddExternalSemaphoresSignalNode`, :py:obj:`~.cudaGraphExternalSemaphoresSignalNodeSetParams`, :py:obj:`~.cudaGraphAddExternalSemaphoresWaitNode`, :py:obj:`~.cudaSignalExternalSemaphoresAsync`, :py:obj:`~.cudaWaitExternalSemaphoresAsync`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_419cudaGraphExternalSemaphoresSignalNodeGetParams = {"cudaGraphExternalSemaphoresSignalNodeGetParams", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_419cudaGraphExternalSemaphoresSignalNodeGetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_418cudaGraphExternalSemaphoresSignalNodeGetParams}; static PyObject *__pyx_pw_4cuda_6cudart_419cudaGraphExternalSemaphoresSignalNodeGetParams(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_hNode,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hNode)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24920, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphExternalSemaphoresSignalNodeGetParams") < 0)) __PYX_ERR(0, 24920, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_hNode = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphExternalSemaphoresSignalNodeGetParams", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 24920, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphExternalSemaphoresSignalNodeGetParams", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_418cudaGraphExternalSemaphoresSignalNodeGetParams(__pyx_self, __pyx_v_hNode); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_418cudaGraphExternalSemaphoresSignalNodeGetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hNode) { cudaGraphNode_t __pyx_v_chNode; PyObject *__pyx_v_phNode = NULL; struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *__pyx_v_params_out = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__561) __Pyx_RefNannySetupContext("cudaGraphExternalSemaphoresSignalNodeGetParams", 1); __Pyx_TraceCall("cudaGraphExternalSemaphoresSignalNodeGetParams", __pyx_f[0], 24920, 0, __PYX_ERR(0, 24920, __pyx_L1_error)); /* "cuda/cudart.pyx":24949 * """ * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: # <<<<<<<<<<<<<< * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_hNode == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":24950 * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: * chNode = 0 # <<<<<<<<<<<<<< * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): * phNode = int(hNode) */ __pyx_v_chNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":24949 * """ * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: # <<<<<<<<<<<<<< * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":24951 * if hNode is None: * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * phNode = int(hNode) * chNode = phNode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":24952 * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): * phNode = int(hNode) # <<<<<<<<<<<<<< * chNode = phNode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24952, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_phNode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":24953 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): * phNode = int(hNode) * chNode = phNode # <<<<<<<<<<<<<< * else: * phNode = int(cudaGraphNode_t(hNode)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24953, __pyx_L1_error) __pyx_v_chNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":24951 * if hNode is None: * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * phNode = int(hNode) * chNode = phNode */ goto __pyx_L3; } /* "cuda/cudart.pyx":24955 * chNode = phNode * else: * phNode = int(cudaGraphNode_t(hNode)) # <<<<<<<<<<<<<< * chNode = phNode * cdef cudaExternalSemaphoreSignalNodeParams params_out = cudaExternalSemaphoreSignalNodeParams() */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_hNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24955, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24955, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_phNode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":24956 * else: * phNode = int(cudaGraphNode_t(hNode)) * chNode = phNode # <<<<<<<<<<<<<< * cdef cudaExternalSemaphoreSignalNodeParams params_out = cudaExternalSemaphoreSignalNodeParams() * err = ccudart.cudaGraphExternalSemaphoresSignalNodeGetParams(chNode, params_out._ptr) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24956, __pyx_L1_error) __pyx_v_chNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":24957 * phNode = int(cudaGraphNode_t(hNode)) * chNode = phNode * cdef cudaExternalSemaphoreSignalNodeParams params_out = cudaExternalSemaphoreSignalNodeParams() # <<<<<<<<<<<<<< * err = ccudart.cudaGraphExternalSemaphoresSignalNodeGetParams(chNode, params_out._ptr) * return (cudaError_t(err), params_out) */ __pyx_t_5 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24957, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_params_out = ((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *)__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":24958 * chNode = phNode * cdef cudaExternalSemaphoreSignalNodeParams params_out = cudaExternalSemaphoreSignalNodeParams() * err = ccudart.cudaGraphExternalSemaphoresSignalNodeGetParams(chNode, params_out._ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err), params_out) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaGraphExternalSemaphoresSignalNodeGetParams(__pyx_v_chNode, ((struct cudaExternalSemaphoreSignalNodeParams *)__pyx_v_params_out->_ptr)); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 24958, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":24959 * cdef cudaExternalSemaphoreSignalNodeParams params_out = cudaExternalSemaphoreSignalNodeParams() * err = ccudart.cudaGraphExternalSemaphoresSignalNodeGetParams(chNode, params_out._ptr) * return (cudaError_t(err), params_out) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24959, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24959, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24959, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24959, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 24959, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_params_out); __Pyx_GIVEREF((PyObject *)__pyx_v_params_out); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_v_params_out))) __PYX_ERR(0, 24959, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":24920 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":24961 * return (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_6cudart_421cudaGraphExternalSemaphoresSignalNodeSetParams(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_420cudaGraphExternalSemaphoresSignalNodeSetParams, "cudaGraphExternalSemaphoresSignalNodeSetParams(hNode, cudaExternalSemaphoreSignalNodeParams nodeParams: Optional[cudaExternalSemaphoreSignalNodeParams])\n Sets an external semaphore signal node's parameters.\n\n Sets the parameters of an external semaphore signal node `hNode` to\n `nodeParams`.\n\n Parameters\n ----------\n hNode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Node to set the parameters for\n nodeParams : :py:obj:`~.cudaExternalSemaphoreSignalNodeParams`\n Parameters to copy\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\n See Also\n --------\n :py:obj:`~.cudaGraphNodeSetParams`, :py:obj:`~.cudaGraphAddExternalSemaphoresSignalNode`, :py:obj:`~.cudaGraphExternalSemaphoresSignalNodeSetParams`, :py:obj:`~.cudaGraphAddExternalSemaphoresWaitNode`, :py:obj:`~.cudaSignalExternalSemaphoresAsync`, :py:obj:`~.cudaWaitExternalSemaphoresAsync`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_421cudaGraphExternalSemaphoresSignalNodeSetParams = {"cudaGraphExternalSemaphoresSignalNodeSetParams", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_421cudaGraphExternalSemaphoresSignalNodeSetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_420cudaGraphExternalSemaphoresSignalNodeSetParams}; static PyObject *__pyx_pw_4cuda_6cudart_421cudaGraphExternalSemaphoresSignalNodeSetParams(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_hNode,&__pyx_n_s_nodeParams,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hNode)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24961, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_nodeParams)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24961, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphExternalSemaphoresSignalNodeSetParams", 1, 2, 2, 1); __PYX_ERR(0, 24961, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphExternalSemaphoresSignalNodeSetParams") < 0)) __PYX_ERR(0, 24961, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_hNode = values[0]; __pyx_v_nodeParams = ((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *)values[1]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphExternalSemaphoresSignalNodeSetParams", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 24961, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams, 1, "nodeParams", 0))) __PYX_ERR(0, 24962, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_420cudaGraphExternalSemaphoresSignalNodeSetParams(__pyx_self, __pyx_v_hNode, __pyx_v_nodeParams); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_420cudaGraphExternalSemaphoresSignalNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hNode, struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *__pyx_v_nodeParams) { cudaGraphNode_t __pyx_v_chNode; PyObject *__pyx_v_phNode = NULL; struct cudaExternalSemaphoreSignalNodeParams *__pyx_v_cnodeParams_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; struct cudaExternalSemaphoreSignalNodeParams *__pyx_t_6; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__562) __Pyx_RefNannySetupContext("cudaGraphExternalSemaphoresSignalNodeSetParams", 1); __Pyx_TraceCall("cudaGraphExternalSemaphoresSignalNodeSetParams", __pyx_f[0], 24961, 0, __PYX_ERR(0, 24961, __pyx_L1_error)); /* "cuda/cudart.pyx":24985 * """ * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: # <<<<<<<<<<<<<< * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_hNode == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":24986 * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: * chNode = 0 # <<<<<<<<<<<<<< * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): * phNode = int(hNode) */ __pyx_v_chNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":24985 * """ * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: # <<<<<<<<<<<<<< * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":24987 * if hNode is None: * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * phNode = int(hNode) * chNode = phNode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":24988 * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): * phNode = int(hNode) # <<<<<<<<<<<<<< * chNode = phNode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24988, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_phNode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":24989 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): * phNode = int(hNode) * chNode = phNode # <<<<<<<<<<<<<< * else: * phNode = int(cudaGraphNode_t(hNode)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24989, __pyx_L1_error) __pyx_v_chNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":24987 * if hNode is None: * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * phNode = int(hNode) * chNode = phNode */ goto __pyx_L3; } /* "cuda/cudart.pyx":24991 * chNode = phNode * else: * phNode = int(cudaGraphNode_t(hNode)) # <<<<<<<<<<<<<< * chNode = phNode * cdef ccudart.cudaExternalSemaphoreSignalNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_hNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24991, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24991, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_phNode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":24992 * else: * phNode = int(cudaGraphNode_t(hNode)) * chNode = phNode # <<<<<<<<<<<<<< * cdef ccudart.cudaExternalSemaphoreSignalNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphExternalSemaphoresSignalNodeSetParams(chNode, cnodeParams_ptr) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24992, __pyx_L1_error) __pyx_v_chNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":24993 * phNode = int(cudaGraphNode_t(hNode)) * chNode = phNode * cdef ccudart.cudaExternalSemaphoreSignalNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaGraphExternalSemaphoresSignalNodeSetParams(chNode, cnodeParams_ptr) * return (cudaError_t(err),) */ __pyx_t_5 = PyObject_RichCompare(((PyObject *)__pyx_v_nodeParams), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24993, __pyx_L1_error) __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 24993, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_1) { __pyx_t_6 = __pyx_v_nodeParams->_ptr; } else { __pyx_t_6 = NULL; } __pyx_v_cnodeParams_ptr = __pyx_t_6; /* "cuda/cudart.pyx":24994 * chNode = phNode * cdef ccudart.cudaExternalSemaphoreSignalNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphExternalSemaphoresSignalNodeSetParams(chNode, cnodeParams_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaGraphExternalSemaphoresSignalNodeSetParams(__pyx_v_chNode, __pyx_v_cnodeParams_ptr); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 24994, __pyx_L1_error) __pyx_v_err = __pyx_t_7; /* "cuda/cudart.pyx":24995 * cdef ccudart.cudaExternalSemaphoreSignalNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphExternalSemaphoresSignalNodeSetParams(chNode, cnodeParams_ptr) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24995, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 24995, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_8}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24995, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24995, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 24995, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":24961 * return (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_5); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.cudaGraphExternalSemaphoresSignalNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_phNode); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":24997 * return (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_6cudart_423cudaGraphAddExternalSemaphoresWaitNode(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_422cudaGraphAddExternalSemaphoresWaitNode, "cudaGraphAddExternalSemaphoresWaitNode(graph, pDependencies: Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], size_t numDependencies, cudaExternalSemaphoreWaitNodeParams nodeParams: Optional[cudaExternalSemaphoreWaitNodeParams])\n Creates an external semaphore wait node and adds it to a graph.\n\n Creates a new external semaphore wait node and adds it to `graph` with\n `numDependencies` dependencies specified via `dependencies` and\n arguments specified in `nodeParams`. It is possible for\n `numDependencies` to be 0, in which case the node will be placed at the\n root of the graph. `dependencies` may not have any duplicate entries. A\n handle to the new node will be returned in `pGraphNode`.\n\n Performs a wait operation on a set of externally allocated semaphore\n objects when the node is launched. The node's dependencies will not be\n launched until the wait operation has completed.\n\n Parameters\n ----------\n graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n Graph to which to add the node\n pDependencies : List[:py:obj:`~.cudaGraphNode_t`]\n Dependencies of the node\n numDependencies : size_t\n Number of dependencies\n nodeParams : :py:obj:`~.cudaExternalSemaphoreWaitNodeParams`\n Parameters for the node\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n pGraphNode : :py:obj:`~.cudaGraphNode_t`\n Returns newly created node\n\n See 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:`~.cudaGraphDestroyN""ode`, :py:obj:`~.cudaGraphAddEventRecordNode`, :py:obj:`~.cudaGraphAddEventWaitNode`, :py:obj:`~.cudaGraphAddChildGraphNode`, :py:obj:`~.cudaGraphAddEmptyNode`, :py:obj:`~.cudaGraphAddKernelNode`, :py:obj:`~.cudaGraphAddMemcpyNode`, :py:obj:`~.cudaGraphAddMemsetNode`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_423cudaGraphAddExternalSemaphoresWaitNode = {"cudaGraphAddExternalSemaphoresWaitNode", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_423cudaGraphAddExternalSemaphoresWaitNode, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_422cudaGraphAddExternalSemaphoresWaitNode}; static PyObject *__pyx_pw_4cuda_6cudart_423cudaGraphAddExternalSemaphoresWaitNode(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_graph_2,&__pyx_n_s_pDependencies,&__pyx_n_s_numDependencies,&__pyx_n_s_nodeParams,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_graph_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24997, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pDependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24997, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddExternalSemaphoresWaitNode", 1, 4, 4, 1); __PYX_ERR(0, 24997, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_numDependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24997, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddExternalSemaphoresWaitNode", 1, 4, 4, 2); __PYX_ERR(0, 24997, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_nodeParams)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24997, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddExternalSemaphoresWaitNode", 1, 4, 4, 3); __PYX_ERR(0, 24997, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphAddExternalSemaphoresWaitNode") < 0)) __PYX_ERR(0, 24997, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); } __pyx_v_graph = values[0]; __pyx_v_pDependencies = values[1]; __pyx_v_numDependencies = __Pyx_PyInt_As_size_t(values[2]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 24998, __pyx_L3_error) __pyx_v_nodeParams = ((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *)values[3]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphAddExternalSemaphoresWaitNode", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 24997, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams, 1, "nodeParams", 0))) __PYX_ERR(0, 24998, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_422cudaGraphAddExternalSemaphoresWaitNode(__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; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_38cudaGraphAddExternalSemaphoresWaitNode_2generator22(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":25035 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ static PyObject *__pyx_pf_4cuda_6cudart_38cudaGraphAddExternalSemaphoresWaitNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct_22_genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_22_genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_22_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_22_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 25035, __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_6cudart_38cudaGraphAddExternalSemaphoresWaitNode_2generator22, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaGraphAddExternalSemaphoresWa, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 25035, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.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_6cudart_38cudaGraphAddExternalSemaphoresWaitNode_2generator22(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_22_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_22_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 25035, 0, __PYX_ERR(0, 25035, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 25035, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 25035, __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, 25035, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25035, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 25035, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 25035, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25035, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 25035, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 25035, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25035, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 25035, __pyx_L1_error) } 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_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":24997 * return (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_6cudart_422cudaGraphAddExternalSemaphoresWaitNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_pDependencies, size_t __pyx_v_numDependencies, struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *__pyx_v_nodeParams) { cudaGraph_t __pyx_v_cgraph; PyObject *__pyx_v_pgraph = NULL; struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *__pyx_v_pGraphNode = 0; cudaGraphNode_t *__pyx_v_cpDependencies; Py_ssize_t __pyx_v_idx; struct cudaExternalSemaphoreWaitNodeParams *__pyx_v_cnodeParams_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_gb_4cuda_6cudart_38cudaGraphAddExternalSemaphoresWaitNode_2generator22 = 0; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; Py_ssize_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; Py_ssize_t __pyx_t_8; Py_ssize_t __pyx_t_9; struct cudaExternalSemaphoreWaitNodeParams *__pyx_t_10; cudaGraphNode_t *__pyx_t_11; cudaError_t __pyx_t_12; PyObject *__pyx_t_13 = NULL; unsigned int __pyx_t_14; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__563) __Pyx_RefNannySetupContext("cudaGraphAddExternalSemaphoresWaitNode", 0); __Pyx_TraceCall("cudaGraphAddExternalSemaphoresWaitNode", __pyx_f[0], 24997, 0, __PYX_ERR(0, 24997, __pyx_L1_error)); __Pyx_INCREF(__pyx_v_pDependencies); /* "cuda/cudart.pyx":25034 * :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,cuda.CUgraphNode)) for _x in pDependencies): * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.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, 25034, __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/cudart.pyx":25035 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ __pyx_t_1 = __pyx_pf_4cuda_6cudart_38cudaGraphAddExternalSemaphoresWaitNode_genexpr(NULL, __pyx_v_pDependencies); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25035, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25035, __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, 25035, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_4 = (!__pyx_t_2); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":25036 * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") # <<<<<<<<<<<<<< * cdef ccudart.cudaGraph_t cgraph * if graph is None: */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__534, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25036, __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, 25036, __pyx_L1_error) /* "cuda/cudart.pyx":25035 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ } /* "cuda/cudart.pyx":25038 * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_4 = (__pyx_v_graph == Py_None); if (__pyx_t_4) { /* "cuda/cudart.pyx":25039 * cdef ccudart.cudaGraph_t cgraph * if graph is None: * cgraph = 0 # <<<<<<<<<<<<<< * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) */ __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":25038 * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L4; } /* "cuda/cudart.pyx":25040 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_4 = __pyx_t_2; __pyx_L5_bool_binop_done:; if (__pyx_t_4) { /* "cuda/cudart.pyx":25041 * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) # <<<<<<<<<<<<<< * cgraph = pgraph * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25041, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pgraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":25042 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) * cgraph = pgraph # <<<<<<<<<<<<<< * else: * pgraph = int(cudaGraph_t(graph)) */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25042, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); /* "cuda/cudart.pyx":25040 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ goto __pyx_L4; } /* "cuda/cudart.pyx":25044 * cgraph = pgraph * else: * pgraph = int(cudaGraph_t(graph)) # <<<<<<<<<<<<<< * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25044, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25044, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pgraph = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":25045 * else: * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph # <<<<<<<<<<<<<< * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25045, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); } __pyx_L4:; /* "cuda/cudart.pyx":25046 * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25046, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_pGraphNode = ((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":25047 * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL # <<<<<<<<<<<<<< * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) */ __pyx_v_cpDependencies = NULL; /* "cuda/cudart.pyx":25048 * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: # <<<<<<<<<<<<<< * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 25048, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 > 0); if (__pyx_t_4) { /* "cuda/cudart.pyx":25049 * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) # <<<<<<<<<<<<<< * if cpDependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 25049, __pyx_L1_error) __pyx_v_cpDependencies = ((cudaGraphNode_t *)calloc(__pyx_t_6, (sizeof(cudaGraphNode_t)))); /* "cuda/cudart.pyx":25050 * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ __pyx_t_4 = (__pyx_v_cpDependencies == NULL); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":25051 * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) # <<<<<<<<<<<<<< * else: * for idx in range(len(pDependencies)): */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 25051, __pyx_L1_error) __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25051, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25051, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25051, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_n_u_x_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25051, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25051, __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, 25051, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25051, __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 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25051, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_7, 0, 0, 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __PYX_ERR(0, 25051, __pyx_L1_error) /* "cuda/cudart.pyx":25050 * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ } /* "cuda/cudart.pyx":25053 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: * for idx in range(len(pDependencies)): # <<<<<<<<<<<<<< * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) */ /*else*/ { __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 25053, __pyx_L1_error) __pyx_t_8 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_idx = __pyx_t_9; /* "cuda/cudart.pyx":25054 * else: * for idx in range(len(pDependencies)): * cpDependencies[idx] = (pDependencies[idx])._ptr[0] # <<<<<<<<<<<<<< * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * cdef ccudart.cudaExternalSemaphoreWaitNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL */ __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_pDependencies, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25054, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); (__pyx_v_cpDependencies[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_7)->__pyx_base._ptr[0])); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } /* "cuda/cudart.pyx":25048 * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: # <<<<<<<<<<<<<< * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: */ } /* "cuda/cudart.pyx":25055 * for idx in range(len(pDependencies)): * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) # <<<<<<<<<<<<<< * cdef ccudart.cudaExternalSemaphoreWaitNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphAddExternalSemaphoresWaitNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cnodeParams_ptr) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 25055, __pyx_L1_error) __pyx_t_4 = (__pyx_v_numDependencies > ((size_t)__pyx_t_6)); if (unlikely(__pyx_t_4)) { __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 25055, __pyx_L1_error) __pyx_t_7 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25055, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25055, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_List_is_too_small, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25055, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_7, __pyx_kp_u__400); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25055, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyInt_FromSize_t(__pyx_v_numDependencies); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25055, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25055, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25055, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25055, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 25055, __pyx_L1_error) } /* "cuda/cudart.pyx":25056 * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * cdef ccudart.cudaExternalSemaphoreWaitNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaGraphAddExternalSemaphoresWaitNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cnodeParams_ptr) * if cpDependencies is not NULL: */ __pyx_t_3 = PyObject_RichCompare(((PyObject *)__pyx_v_nodeParams), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25056, __pyx_L1_error) __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 25056, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_4) { __pyx_t_10 = __pyx_v_nodeParams->_ptr; } else { __pyx_t_10 = NULL; } __pyx_v_cnodeParams_ptr = __pyx_t_10; /* "cuda/cudart.pyx":25057 * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * cdef ccudart.cudaExternalSemaphoreWaitNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphAddExternalSemaphoresWaitNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cnodeParams_ptr) # <<<<<<<<<<<<<< * if cpDependencies is not NULL: * free(cpDependencies) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 25057, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 == 1); if (__pyx_t_4) { __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_pDependencies, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25057, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_11 = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_3)->__pyx_base._ptr); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_11 = __pyx_v_cpDependencies; } __pyx_t_12 = __pyx_f_4cuda_7ccudart_cudaGraphAddExternalSemaphoresWaitNode(((cudaGraphNode_t *)__pyx_v_pGraphNode->__pyx_base._ptr), __pyx_v_cgraph, __pyx_t_11, __pyx_v_numDependencies, __pyx_v_cnodeParams_ptr); if (unlikely(__pyx_t_12 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 25057, __pyx_L1_error) __pyx_v_err = __pyx_t_12; /* "cuda/cudart.pyx":25058 * cdef ccudart.cudaExternalSemaphoreWaitNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphAddExternalSemaphoresWaitNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cnodeParams_ptr) * if cpDependencies is not NULL: # <<<<<<<<<<<<<< * free(cpDependencies) * return (cudaError_t(err), pGraphNode) */ __pyx_t_4 = (__pyx_v_cpDependencies != NULL); if (__pyx_t_4) { /* "cuda/cudart.pyx":25059 * err = ccudart.cudaGraphAddExternalSemaphoresWaitNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cnodeParams_ptr) * if cpDependencies is not NULL: * free(cpDependencies) # <<<<<<<<<<<<<< * return (cudaError_t(err), pGraphNode) * */ free(__pyx_v_cpDependencies); /* "cuda/cudart.pyx":25058 * cdef ccudart.cudaExternalSemaphoreWaitNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphAddExternalSemaphoresWaitNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cnodeParams_ptr) * if cpDependencies is not NULL: # <<<<<<<<<<<<<< * free(cpDependencies) * return (cudaError_t(err), pGraphNode) */ } /* "cuda/cudart.pyx":25060 * if cpDependencies is not NULL: * free(cpDependencies) * return (cudaError_t(err), pGraphNode) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25060, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25060, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_13 = NULL; __pyx_t_14 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_13)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_13); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_14 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_t_1}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_14, 1+__pyx_t_14); __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25060, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25060, __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)) __PYX_ERR(0, 25060, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pGraphNode); __Pyx_GIVEREF((PyObject *)__pyx_v_pGraphNode); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_pGraphNode))) __PYX_ERR(0, 25060, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":24997 * return (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_7); __Pyx_XDECREF(__pyx_t_13); __Pyx_AddTraceback("cuda.cudart.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_6cudart_38cudaGraphAddExternalSemaphoresWaitNode_2generator22); __Pyx_XDECREF(__pyx_v_pDependencies); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":25062 * return (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_6cudart_425cudaGraphExternalSemaphoresWaitNodeGetParams(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_424cudaGraphExternalSemaphoresWaitNodeGetParams, "cudaGraphExternalSemaphoresWaitNodeGetParams(hNode)\n Returns an external semaphore wait node's parameters.\n\n Returns 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\n the node is destroyed or its parameters are modified, and should not be\n modified directly. Use\n :py:obj:`~.cudaGraphExternalSemaphoresSignalNodeSetParams` to update\n the parameters of this node.\n\n Parameters\n ----------\n hNode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Node to get the parameters for\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n params_out : :py:obj:`~.cudaExternalSemaphoreWaitNodeParams`\n Pointer to return the parameters\n\n See Also\n --------\n :py:obj:`~.cudaLaunchKernel`, :py:obj:`~.cudaGraphAddExternalSemaphoresWaitNode`, :py:obj:`~.cudaGraphExternalSemaphoresWaitNodeSetParams`, :py:obj:`~.cudaGraphAddExternalSemaphoresWaitNode`, :py:obj:`~.cudaSignalExternalSemaphoresAsync`, :py:obj:`~.cudaWaitExternalSemaphoresAsync`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_425cudaGraphExternalSemaphoresWaitNodeGetParams = {"cudaGraphExternalSemaphoresWaitNodeGetParams", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_425cudaGraphExternalSemaphoresWaitNodeGetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_424cudaGraphExternalSemaphoresWaitNodeGetParams}; static PyObject *__pyx_pw_4cuda_6cudart_425cudaGraphExternalSemaphoresWaitNodeGetParams(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_hNode,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hNode)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25062, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphExternalSemaphoresWaitNodeGetParams") < 0)) __PYX_ERR(0, 25062, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_hNode = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphExternalSemaphoresWaitNodeGetParams", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 25062, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphExternalSemaphoresWaitNodeGetParams", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_424cudaGraphExternalSemaphoresWaitNodeGetParams(__pyx_self, __pyx_v_hNode); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_424cudaGraphExternalSemaphoresWaitNodeGetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hNode) { cudaGraphNode_t __pyx_v_chNode; PyObject *__pyx_v_phNode = NULL; struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *__pyx_v_params_out = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__564) __Pyx_RefNannySetupContext("cudaGraphExternalSemaphoresWaitNodeGetParams", 1); __Pyx_TraceCall("cudaGraphExternalSemaphoresWaitNodeGetParams", __pyx_f[0], 25062, 0, __PYX_ERR(0, 25062, __pyx_L1_error)); /* "cuda/cudart.pyx":25091 * """ * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: # <<<<<<<<<<<<<< * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_hNode == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":25092 * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: * chNode = 0 # <<<<<<<<<<<<<< * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): * phNode = int(hNode) */ __pyx_v_chNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":25091 * """ * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: # <<<<<<<<<<<<<< * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":25093 * if hNode is None: * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * phNode = int(hNode) * chNode = phNode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":25094 * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): * phNode = int(hNode) # <<<<<<<<<<<<<< * chNode = phNode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25094, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_phNode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":25095 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): * phNode = int(hNode) * chNode = phNode # <<<<<<<<<<<<<< * else: * phNode = int(cudaGraphNode_t(hNode)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25095, __pyx_L1_error) __pyx_v_chNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":25093 * if hNode is None: * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * phNode = int(hNode) * chNode = phNode */ goto __pyx_L3; } /* "cuda/cudart.pyx":25097 * chNode = phNode * else: * phNode = int(cudaGraphNode_t(hNode)) # <<<<<<<<<<<<<< * chNode = phNode * cdef cudaExternalSemaphoreWaitNodeParams params_out = cudaExternalSemaphoreWaitNodeParams() */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_hNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25097, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25097, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_phNode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":25098 * else: * phNode = int(cudaGraphNode_t(hNode)) * chNode = phNode # <<<<<<<<<<<<<< * cdef cudaExternalSemaphoreWaitNodeParams params_out = cudaExternalSemaphoreWaitNodeParams() * err = ccudart.cudaGraphExternalSemaphoresWaitNodeGetParams(chNode, params_out._ptr) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25098, __pyx_L1_error) __pyx_v_chNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":25099 * phNode = int(cudaGraphNode_t(hNode)) * chNode = phNode * cdef cudaExternalSemaphoreWaitNodeParams params_out = cudaExternalSemaphoreWaitNodeParams() # <<<<<<<<<<<<<< * err = ccudart.cudaGraphExternalSemaphoresWaitNodeGetParams(chNode, params_out._ptr) * return (cudaError_t(err), params_out) */ __pyx_t_5 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25099, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_params_out = ((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *)__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":25100 * chNode = phNode * cdef cudaExternalSemaphoreWaitNodeParams params_out = cudaExternalSemaphoreWaitNodeParams() * err = ccudart.cudaGraphExternalSemaphoresWaitNodeGetParams(chNode, params_out._ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err), params_out) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaGraphExternalSemaphoresWaitNodeGetParams(__pyx_v_chNode, ((struct cudaExternalSemaphoreWaitNodeParams *)__pyx_v_params_out->_ptr)); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 25100, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":25101 * cdef cudaExternalSemaphoreWaitNodeParams params_out = cudaExternalSemaphoreWaitNodeParams() * err = ccudart.cudaGraphExternalSemaphoresWaitNodeGetParams(chNode, params_out._ptr) * return (cudaError_t(err), params_out) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 25101, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_params_out); __Pyx_GIVEREF((PyObject *)__pyx_v_params_out); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_v_params_out))) __PYX_ERR(0, 25101, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":25062 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":25103 * return (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_6cudart_427cudaGraphExternalSemaphoresWaitNodeSetParams(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_426cudaGraphExternalSemaphoresWaitNodeSetParams, "cudaGraphExternalSemaphoresWaitNodeSetParams(hNode, cudaExternalSemaphoreWaitNodeParams nodeParams: Optional[cudaExternalSemaphoreWaitNodeParams])\n Sets an external semaphore wait node's parameters.\n\n Sets the parameters of an external semaphore wait node `hNode` to\n `nodeParams`.\n\n Parameters\n ----------\n hNode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Node to set the parameters for\n nodeParams : :py:obj:`~.cudaExternalSemaphoreWaitNodeParams`\n Parameters to copy\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\n See Also\n --------\n :py:obj:`~.cudaGraphNodeSetParams`, :py:obj:`~.cudaGraphAddExternalSemaphoresWaitNode`, :py:obj:`~.cudaGraphExternalSemaphoresWaitNodeSetParams`, :py:obj:`~.cudaGraphAddExternalSemaphoresWaitNode`, :py:obj:`~.cudaSignalExternalSemaphoresAsync`, :py:obj:`~.cudaWaitExternalSemaphoresAsync`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_427cudaGraphExternalSemaphoresWaitNodeSetParams = {"cudaGraphExternalSemaphoresWaitNodeSetParams", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_427cudaGraphExternalSemaphoresWaitNodeSetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_426cudaGraphExternalSemaphoresWaitNodeSetParams}; static PyObject *__pyx_pw_4cuda_6cudart_427cudaGraphExternalSemaphoresWaitNodeSetParams(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_hNode,&__pyx_n_s_nodeParams,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hNode)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25103, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_nodeParams)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25103, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphExternalSemaphoresWaitNodeSetParams", 1, 2, 2, 1); __PYX_ERR(0, 25103, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphExternalSemaphoresWaitNodeSetParams") < 0)) __PYX_ERR(0, 25103, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_hNode = values[0]; __pyx_v_nodeParams = ((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *)values[1]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphExternalSemaphoresWaitNodeSetParams", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 25103, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams, 1, "nodeParams", 0))) __PYX_ERR(0, 25104, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_426cudaGraphExternalSemaphoresWaitNodeSetParams(__pyx_self, __pyx_v_hNode, __pyx_v_nodeParams); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_426cudaGraphExternalSemaphoresWaitNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hNode, struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *__pyx_v_nodeParams) { cudaGraphNode_t __pyx_v_chNode; PyObject *__pyx_v_phNode = NULL; struct cudaExternalSemaphoreWaitNodeParams *__pyx_v_cnodeParams_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; struct cudaExternalSemaphoreWaitNodeParams *__pyx_t_6; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__565) __Pyx_RefNannySetupContext("cudaGraphExternalSemaphoresWaitNodeSetParams", 1); __Pyx_TraceCall("cudaGraphExternalSemaphoresWaitNodeSetParams", __pyx_f[0], 25103, 0, __PYX_ERR(0, 25103, __pyx_L1_error)); /* "cuda/cudart.pyx":25127 * """ * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: # <<<<<<<<<<<<<< * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_hNode == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":25128 * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: * chNode = 0 # <<<<<<<<<<<<<< * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): * phNode = int(hNode) */ __pyx_v_chNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":25127 * """ * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: # <<<<<<<<<<<<<< * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":25129 * if hNode is None: * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * phNode = int(hNode) * chNode = phNode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":25130 * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): * phNode = int(hNode) # <<<<<<<<<<<<<< * chNode = phNode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25130, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_phNode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":25131 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): * phNode = int(hNode) * chNode = phNode # <<<<<<<<<<<<<< * else: * phNode = int(cudaGraphNode_t(hNode)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25131, __pyx_L1_error) __pyx_v_chNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":25129 * if hNode is None: * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * phNode = int(hNode) * chNode = phNode */ goto __pyx_L3; } /* "cuda/cudart.pyx":25133 * chNode = phNode * else: * phNode = int(cudaGraphNode_t(hNode)) # <<<<<<<<<<<<<< * chNode = phNode * cdef ccudart.cudaExternalSemaphoreWaitNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_hNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_phNode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":25134 * else: * phNode = int(cudaGraphNode_t(hNode)) * chNode = phNode # <<<<<<<<<<<<<< * cdef ccudart.cudaExternalSemaphoreWaitNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphExternalSemaphoresWaitNodeSetParams(chNode, cnodeParams_ptr) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25134, __pyx_L1_error) __pyx_v_chNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":25135 * phNode = int(cudaGraphNode_t(hNode)) * chNode = phNode * cdef ccudart.cudaExternalSemaphoreWaitNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaGraphExternalSemaphoresWaitNodeSetParams(chNode, cnodeParams_ptr) * return (cudaError_t(err),) */ __pyx_t_5 = PyObject_RichCompare(((PyObject *)__pyx_v_nodeParams), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25135, __pyx_L1_error) __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 25135, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_1) { __pyx_t_6 = __pyx_v_nodeParams->_ptr; } else { __pyx_t_6 = NULL; } __pyx_v_cnodeParams_ptr = __pyx_t_6; /* "cuda/cudart.pyx":25136 * chNode = phNode * cdef ccudart.cudaExternalSemaphoreWaitNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphExternalSemaphoresWaitNodeSetParams(chNode, cnodeParams_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaGraphExternalSemaphoresWaitNodeSetParams(__pyx_v_chNode, __pyx_v_cnodeParams_ptr); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 25136, __pyx_L1_error) __pyx_v_err = __pyx_t_7; /* "cuda/cudart.pyx":25137 * cdef ccudart.cudaExternalSemaphoreWaitNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphExternalSemaphoresWaitNodeSetParams(chNode, cnodeParams_ptr) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25137, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 25137, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_8}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25137, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25137, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 25137, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":25103 * return (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_5); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.cudaGraphExternalSemaphoresWaitNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_phNode); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":25139 * return (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_6cudart_429cudaGraphAddMemAllocNode(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_428cudaGraphAddMemAllocNode, "cudaGraphAddMemAllocNode(graph, pDependencies: Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], size_t numDependencies, cudaMemAllocNodeParams nodeParams: Optional[cudaMemAllocNodeParams])\n Creates an allocation node and adds it to a graph.\n\n Creates a new allocation node and adds it to `graph` with\n `numDependencies` dependencies specified via `pDependencies` and\n arguments specified in `nodeParams`. It is possible for\n `numDependencies` to be 0, in which case the node will be placed at the\n root of the graph. `pDependencies` may not have any duplicate entries.\n A handle to the new node will be returned in `pGraphNode`.\n\n When :py:obj:`~.cudaGraphAddMemAllocNode` creates an allocation node,\n it returns the address of the allocation in `nodeParams.dptr`. The\n allocation's address remains fixed across instantiations and launches.\n\n If the allocation is freed in the same graph, by creating a free node\n using :py:obj:`~.cudaGraphAddMemFreeNode`, the allocation can be\n accessed by nodes ordered after the allocation node but before the free\n node. These allocations cannot be freed outside the owning graph, and\n they can only be freed once in the owning graph.\n\n If the allocation is not freed in the same graph, then it can be\n accessed not only by nodes in the graph which are ordered after the\n allocation node, but also by stream operations ordered after the\n graph's execution but before the allocation is freed.\n\n Allocations 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\n It is not possibl""e to free an allocation in both the owning graph and\n another graph. If the allocation is freed in the same graph, a free\n node cannot be added to another graph. If the allocation is freed in\n another graph, a free node can no longer be added to the owning graph.\n\n The following restrictions apply to graphs which contain allocation\n and/or memory free nodes:\n\n - Nodes and edges of the graph cannot be deleted.\n\n - The graph cannot be used in a child node.\n\n - Only one instantiation of the graph may exist at any point in time.\n\n - The graph cannot be cloned.\n\n Parameters\n ----------\n graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n Graph to which to add the node\n pDependencies : List[:py:obj:`~.cudaGraphNode_t`]\n Dependencies of the node\n numDependencies : size_t\n Number of dependencies\n nodeParams : :py:obj:`~.cudaMemAllocNodeParams`\n Parameters for the node\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorCudartUnloading`, :py:obj:`~.cudaErrorInitializationError`, :py:obj:`~.cudaErrorNotSupported`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorOutOfMemory`\n pGraphNode : :py:obj:`~.cudaGraphNode_t`\n Returns newly created node\n\n See 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:`~.cudaGraphAddKernelNo""de`, :py:obj:`~.cudaGraphAddMemcpyNode`, :py:obj:`~.cudaGraphAddMemsetNode`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_429cudaGraphAddMemAllocNode = {"cudaGraphAddMemAllocNode", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_429cudaGraphAddMemAllocNode, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_428cudaGraphAddMemAllocNode}; static PyObject *__pyx_pw_4cuda_6cudart_429cudaGraphAddMemAllocNode(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_graph_2,&__pyx_n_s_pDependencies,&__pyx_n_s_numDependencies,&__pyx_n_s_nodeParams,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_graph_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25139, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pDependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25139, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddMemAllocNode", 1, 4, 4, 1); __PYX_ERR(0, 25139, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_numDependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25139, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddMemAllocNode", 1, 4, 4, 2); __PYX_ERR(0, 25139, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_nodeParams)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25139, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddMemAllocNode", 1, 4, 4, 3); __PYX_ERR(0, 25139, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphAddMemAllocNode") < 0)) __PYX_ERR(0, 25139, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); } __pyx_v_graph = values[0]; __pyx_v_pDependencies = values[1]; __pyx_v_numDependencies = __Pyx_PyInt_As_size_t(values[2]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 25140, __pyx_L3_error) __pyx_v_nodeParams = ((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *)values[3]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphAddMemAllocNode", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 25139, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaMemAllocNodeParams, 1, "nodeParams", 0))) __PYX_ERR(0, 25140, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_428cudaGraphAddMemAllocNode(__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; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_24cudaGraphAddMemAllocNode_2generator23(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":25215 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ static PyObject *__pyx_pf_4cuda_6cudart_24cudaGraphAddMemAllocNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct_23_genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_23_genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_23_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_23_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 25215, __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_6cudart_24cudaGraphAddMemAllocNode_2generator23, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaGraphAddMemAllocNode_locals, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 25215, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.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_6cudart_24cudaGraphAddMemAllocNode_2generator23(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_23_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_23_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 25215, 0, __PYX_ERR(0, 25215, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 25215, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 25215, __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, 25215, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25215, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 25215, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 25215, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25215, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 25215, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 25215, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25215, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 25215, __pyx_L1_error) } 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_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":25139 * return (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_6cudart_428cudaGraphAddMemAllocNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_pDependencies, size_t __pyx_v_numDependencies, struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *__pyx_v_nodeParams) { cudaGraph_t __pyx_v_cgraph; PyObject *__pyx_v_pgraph = NULL; struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *__pyx_v_pGraphNode = 0; cudaGraphNode_t *__pyx_v_cpDependencies; Py_ssize_t __pyx_v_idx; struct cudaMemAllocNodeParams *__pyx_v_cnodeParams_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_gb_4cuda_6cudart_24cudaGraphAddMemAllocNode_2generator23 = 0; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; Py_ssize_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; Py_ssize_t __pyx_t_8; Py_ssize_t __pyx_t_9; struct cudaMemAllocNodeParams *__pyx_t_10; cudaGraphNode_t *__pyx_t_11; cudaError_t __pyx_t_12; PyObject *__pyx_t_13 = NULL; unsigned int __pyx_t_14; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__566) __Pyx_RefNannySetupContext("cudaGraphAddMemAllocNode", 0); __Pyx_TraceCall("cudaGraphAddMemAllocNode", __pyx_f[0], 25139, 0, __PYX_ERR(0, 25139, __pyx_L1_error)); __Pyx_INCREF(__pyx_v_pDependencies); /* "cuda/cudart.pyx":25214 * :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,cuda.CUgraphNode)) for _x in pDependencies): * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.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, 25214, __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/cudart.pyx":25215 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ __pyx_t_1 = __pyx_pf_4cuda_6cudart_24cudaGraphAddMemAllocNode_genexpr(NULL, __pyx_v_pDependencies); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25215, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25215, __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, 25215, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_4 = (!__pyx_t_2); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":25216 * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") # <<<<<<<<<<<<<< * cdef ccudart.cudaGraph_t cgraph * if graph is None: */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__534, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25216, __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, 25216, __pyx_L1_error) /* "cuda/cudart.pyx":25215 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ } /* "cuda/cudart.pyx":25218 * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_4 = (__pyx_v_graph == Py_None); if (__pyx_t_4) { /* "cuda/cudart.pyx":25219 * cdef ccudart.cudaGraph_t cgraph * if graph is None: * cgraph = 0 # <<<<<<<<<<<<<< * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) */ __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":25218 * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L4; } /* "cuda/cudart.pyx":25220 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_4 = __pyx_t_2; __pyx_L5_bool_binop_done:; if (__pyx_t_4) { /* "cuda/cudart.pyx":25221 * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) # <<<<<<<<<<<<<< * cgraph = pgraph * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25221, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pgraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":25222 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) * cgraph = pgraph # <<<<<<<<<<<<<< * else: * pgraph = int(cudaGraph_t(graph)) */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25222, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); /* "cuda/cudart.pyx":25220 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ goto __pyx_L4; } /* "cuda/cudart.pyx":25224 * cgraph = pgraph * else: * pgraph = int(cudaGraph_t(graph)) # <<<<<<<<<<<<<< * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25224, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25224, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pgraph = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":25225 * else: * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph # <<<<<<<<<<<<<< * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25225, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); } __pyx_L4:; /* "cuda/cudart.pyx":25226 * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25226, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_pGraphNode = ((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":25227 * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL # <<<<<<<<<<<<<< * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) */ __pyx_v_cpDependencies = NULL; /* "cuda/cudart.pyx":25228 * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: # <<<<<<<<<<<<<< * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 25228, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 > 0); if (__pyx_t_4) { /* "cuda/cudart.pyx":25229 * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) # <<<<<<<<<<<<<< * if cpDependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 25229, __pyx_L1_error) __pyx_v_cpDependencies = ((cudaGraphNode_t *)calloc(__pyx_t_6, (sizeof(cudaGraphNode_t)))); /* "cuda/cudart.pyx":25230 * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ __pyx_t_4 = (__pyx_v_cpDependencies == NULL); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":25231 * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) # <<<<<<<<<<<<<< * else: * for idx in range(len(pDependencies)): */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 25231, __pyx_L1_error) __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25231, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25231, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25231, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_n_u_x_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25231, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25231, __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, 25231, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25231, __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 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25231, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_7, 0, 0, 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __PYX_ERR(0, 25231, __pyx_L1_error) /* "cuda/cudart.pyx":25230 * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ } /* "cuda/cudart.pyx":25233 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: * for idx in range(len(pDependencies)): # <<<<<<<<<<<<<< * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) */ /*else*/ { __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 25233, __pyx_L1_error) __pyx_t_8 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_idx = __pyx_t_9; /* "cuda/cudart.pyx":25234 * else: * for idx in range(len(pDependencies)): * cpDependencies[idx] = (pDependencies[idx])._ptr[0] # <<<<<<<<<<<<<< * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * cdef ccudart.cudaMemAllocNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL */ __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_pDependencies, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25234, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); (__pyx_v_cpDependencies[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_7)->__pyx_base._ptr[0])); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } /* "cuda/cudart.pyx":25228 * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: # <<<<<<<<<<<<<< * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: */ } /* "cuda/cudart.pyx":25235 * for idx in range(len(pDependencies)): * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) # <<<<<<<<<<<<<< * cdef ccudart.cudaMemAllocNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphAddMemAllocNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cnodeParams_ptr) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 25235, __pyx_L1_error) __pyx_t_4 = (__pyx_v_numDependencies > ((size_t)__pyx_t_6)); if (unlikely(__pyx_t_4)) { __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 25235, __pyx_L1_error) __pyx_t_7 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_List_is_too_small, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_7, __pyx_kp_u__400); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyInt_FromSize_t(__pyx_v_numDependencies); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 25235, __pyx_L1_error) } /* "cuda/cudart.pyx":25236 * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * cdef ccudart.cudaMemAllocNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaGraphAddMemAllocNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cnodeParams_ptr) * if cpDependencies is not NULL: */ __pyx_t_3 = PyObject_RichCompare(((PyObject *)__pyx_v_nodeParams), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25236, __pyx_L1_error) __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 25236, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_4) { __pyx_t_10 = __pyx_v_nodeParams->_ptr; } else { __pyx_t_10 = NULL; } __pyx_v_cnodeParams_ptr = __pyx_t_10; /* "cuda/cudart.pyx":25237 * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * cdef ccudart.cudaMemAllocNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphAddMemAllocNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cnodeParams_ptr) # <<<<<<<<<<<<<< * if cpDependencies is not NULL: * free(cpDependencies) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 25237, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 == 1); if (__pyx_t_4) { __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_pDependencies, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25237, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_11 = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_3)->__pyx_base._ptr); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_11 = __pyx_v_cpDependencies; } __pyx_t_12 = __pyx_f_4cuda_7ccudart_cudaGraphAddMemAllocNode(((cudaGraphNode_t *)__pyx_v_pGraphNode->__pyx_base._ptr), __pyx_v_cgraph, __pyx_t_11, __pyx_v_numDependencies, __pyx_v_cnodeParams_ptr); if (unlikely(__pyx_t_12 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 25237, __pyx_L1_error) __pyx_v_err = __pyx_t_12; /* "cuda/cudart.pyx":25238 * cdef ccudart.cudaMemAllocNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphAddMemAllocNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cnodeParams_ptr) * if cpDependencies is not NULL: # <<<<<<<<<<<<<< * free(cpDependencies) * return (cudaError_t(err), pGraphNode) */ __pyx_t_4 = (__pyx_v_cpDependencies != NULL); if (__pyx_t_4) { /* "cuda/cudart.pyx":25239 * err = ccudart.cudaGraphAddMemAllocNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cnodeParams_ptr) * if cpDependencies is not NULL: * free(cpDependencies) # <<<<<<<<<<<<<< * return (cudaError_t(err), pGraphNode) * */ free(__pyx_v_cpDependencies); /* "cuda/cudart.pyx":25238 * cdef ccudart.cudaMemAllocNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphAddMemAllocNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cnodeParams_ptr) * if cpDependencies is not NULL: # <<<<<<<<<<<<<< * free(cpDependencies) * return (cudaError_t(err), pGraphNode) */ } /* "cuda/cudart.pyx":25240 * if cpDependencies is not NULL: * free(cpDependencies) * return (cudaError_t(err), pGraphNode) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25240, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25240, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_13 = NULL; __pyx_t_14 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_13)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_13); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_14 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_t_1}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_14, 1+__pyx_t_14); __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25240, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25240, __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)) __PYX_ERR(0, 25240, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pGraphNode); __Pyx_GIVEREF((PyObject *)__pyx_v_pGraphNode); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_pGraphNode))) __PYX_ERR(0, 25240, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":25139 * return (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_7); __Pyx_XDECREF(__pyx_t_13); __Pyx_AddTraceback("cuda.cudart.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_6cudart_24cudaGraphAddMemAllocNode_2generator23); __Pyx_XDECREF(__pyx_v_pDependencies); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":25242 * return (cudaError_t(err), pGraphNode) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphMemAllocNodeGetParams(node): * """ Returns a memory alloc node's parameters. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_431cudaGraphMemAllocNodeGetParams(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_430cudaGraphMemAllocNodeGetParams, "cudaGraphMemAllocNodeGetParams(node)\n Returns a memory alloc node's parameters.\n\n Returns the parameters of a memory alloc node `hNode` in `params_out`.\n The `poolProps` and `accessDescs` returned in `params_out`, are owned\n by the node. This memory remains valid until the node is destroyed. The\n returned parameters must not be modified.\n\n Parameters\n ----------\n node : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Node to get the parameters for\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n params_out : :py:obj:`~.cudaMemAllocNodeParams`\n Pointer to return the parameters\n\n See Also\n --------\n :py:obj:`~.cudaGraphAddMemAllocNode`, :py:obj:`~.cudaGraphMemFreeNodeGetParams`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_431cudaGraphMemAllocNodeGetParams = {"cudaGraphMemAllocNodeGetParams", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_431cudaGraphMemAllocNodeGetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_430cudaGraphMemAllocNodeGetParams}; static PyObject *__pyx_pw_4cuda_6cudart_431cudaGraphMemAllocNodeGetParams(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_node_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_node_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25242, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphMemAllocNodeGetParams") < 0)) __PYX_ERR(0, 25242, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_node = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphMemAllocNodeGetParams", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 25242, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphMemAllocNodeGetParams", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_430cudaGraphMemAllocNodeGetParams(__pyx_self, __pyx_v_node); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_430cudaGraphMemAllocNodeGetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node) { cudaGraphNode_t __pyx_v_cnode; PyObject *__pyx_v_pnode = NULL; struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *__pyx_v_params_out = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__567) __Pyx_RefNannySetupContext("cudaGraphMemAllocNodeGetParams", 1); __Pyx_TraceCall("cudaGraphMemAllocNodeGetParams", __pyx_f[0], 25242, 0, __PYX_ERR(0, 25242, __pyx_L1_error)); /* "cuda/cudart.pyx":25268 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_node == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":25269 * cdef ccudart.cudaGraphNode_t cnode * if node is None: * cnode = 0 # <<<<<<<<<<<<<< * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) */ __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":25268 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":25270 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":25271 * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) # <<<<<<<<<<<<<< * cnode = pnode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25271, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pnode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":25272 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) * cnode = pnode # <<<<<<<<<<<<<< * else: * pnode = int(cudaGraphNode_t(node)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25272, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":25270 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ goto __pyx_L3; } /* "cuda/cudart.pyx":25274 * cnode = pnode * else: * pnode = int(cudaGraphNode_t(node)) # <<<<<<<<<<<<<< * cnode = pnode * cdef cudaMemAllocNodeParams params_out = cudaMemAllocNodeParams() */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25274, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25274, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pnode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":25275 * else: * pnode = int(cudaGraphNode_t(node)) * cnode = pnode # <<<<<<<<<<<<<< * cdef cudaMemAllocNodeParams params_out = cudaMemAllocNodeParams() * err = ccudart.cudaGraphMemAllocNodeGetParams(cnode, params_out._ptr) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25275, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":25276 * pnode = int(cudaGraphNode_t(node)) * cnode = pnode * cdef cudaMemAllocNodeParams params_out = cudaMemAllocNodeParams() # <<<<<<<<<<<<<< * err = ccudart.cudaGraphMemAllocNodeGetParams(cnode, params_out._ptr) * return (cudaError_t(err), params_out) */ __pyx_t_5 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParams)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25276, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_params_out = ((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *)__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":25277 * cnode = pnode * cdef cudaMemAllocNodeParams params_out = cudaMemAllocNodeParams() * err = ccudart.cudaGraphMemAllocNodeGetParams(cnode, params_out._ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err), params_out) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaGraphMemAllocNodeGetParams(__pyx_v_cnode, ((struct cudaMemAllocNodeParams *)__pyx_v_params_out->_ptr)); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 25277, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":25278 * cdef cudaMemAllocNodeParams params_out = cudaMemAllocNodeParams() * err = ccudart.cudaGraphMemAllocNodeGetParams(cnode, params_out._ptr) * return (cudaError_t(err), params_out) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25278, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25278, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25278, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25278, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 25278, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_params_out); __Pyx_GIVEREF((PyObject *)__pyx_v_params_out); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_v_params_out))) __PYX_ERR(0, 25278, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":25242 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":25280 * return (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_6cudart_433cudaGraphAddMemFreeNode(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_432cudaGraphAddMemFreeNode, "cudaGraphAddMemFreeNode(graph, pDependencies: Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], size_t numDependencies, dptr)\n Creates a memory free node and adds it to a graph.\n\n Creates a new memory free node and adds it to `graph` with\n `numDependencies` dependencies specified via `pDependencies` and\n address specified in `dptr`. It is possible for `numDependencies` to be\n 0, 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\n node 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\n The following restrictions apply to graphs which contain allocation\n and/or memory free nodes:\n\n - Nodes and edges of the graph cannot be deleted.\n\n - The graph cannot be used in a child node.\n\n - Only one instantiation of the graph may exist at any point in time.\n\n - The graph cannot be cloned.\n\n Parameters\n ----------\n graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n Graph to which to add the node\n pDependencies : List[:py:obj:`~.cudaGraphNode_t`]\n Dependencies of the node\n numDependencies : size_t\n Number of dependencies\n dptr : Any\n Address of memory to free\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorCudartUnloading`, :py:obj:`~.cudaErrorInitializationError`, :py:obj:`~.cudaErrorNotSupported`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorOutOfMemory`\n pGraphNode : :py:obj:`~.cudaGraphNode_t`\n Returns newly created node\n\n See Also\n --------\n :py:obj:`~.cudaGraphAddNode`, :py:obj:`~.cudaGraphAddMemAllocNode`, :py:obj:`~.cudaGraphMemFreeNod""eGetParams`, :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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_433cudaGraphAddMemFreeNode = {"cudaGraphAddMemFreeNode", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_433cudaGraphAddMemFreeNode, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_432cudaGraphAddMemFreeNode}; static PyObject *__pyx_pw_4cuda_6cudart_433cudaGraphAddMemFreeNode(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_graph_2,&__pyx_n_s_pDependencies,&__pyx_n_s_numDependencies,&__pyx_n_s_dptr_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_graph_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25280, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pDependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25280, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddMemFreeNode", 1, 4, 4, 1); __PYX_ERR(0, 25280, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_numDependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25280, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddMemFreeNode", 1, 4, 4, 2); __PYX_ERR(0, 25280, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dptr_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25280, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddMemFreeNode", 1, 4, 4, 3); __PYX_ERR(0, 25280, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphAddMemFreeNode") < 0)) __PYX_ERR(0, 25280, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); } __pyx_v_graph = values[0]; __pyx_v_pDependencies = values[1]; __pyx_v_numDependencies = __Pyx_PyInt_As_size_t(values[2]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 25281, __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, 25280, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphAddMemFreeNode", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_432cudaGraphAddMemFreeNode(__pyx_self, __pyx_v_graph, __pyx_v_pDependencies, __pyx_v_numDependencies, __pyx_v_dptr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_23cudaGraphAddMemFreeNode_2generator24(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":25334 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ static PyObject *__pyx_pf_4cuda_6cudart_23cudaGraphAddMemFreeNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct_24_genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_24_genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_24_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_24_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 25334, __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_6cudart_23cudaGraphAddMemFreeNode_2generator24, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaGraphAddMemFreeNode_locals_g, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 25334, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.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_6cudart_23cudaGraphAddMemFreeNode_2generator24(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_24_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_24_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 25334, 0, __PYX_ERR(0, 25334, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 25334, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 25334, __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, 25334, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25334, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 25334, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 25334, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25334, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 25334, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 25334, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25334, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 25334, __pyx_L1_error) } 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_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":25280 * return (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_6cudart_432cudaGraphAddMemFreeNode(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_cgraph; PyObject *__pyx_v_pgraph = NULL; struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *__pyx_v_pGraphNode = 0; cudaGraphNode_t *__pyx_v_cpDependencies; Py_ssize_t __pyx_v_idx; PyObject *__pyx_v_cdptr = NULL; void *__pyx_v_cdptr_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_gb_4cuda_6cudart_23cudaGraphAddMemFreeNode_2generator24 = 0; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; Py_ssize_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; Py_ssize_t __pyx_t_8; Py_ssize_t __pyx_t_9; cudaGraphNode_t *__pyx_t_10; cudaError_t __pyx_t_11; PyObject *__pyx_t_12 = NULL; unsigned int __pyx_t_13; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__568) __Pyx_RefNannySetupContext("cudaGraphAddMemFreeNode", 0); __Pyx_TraceCall("cudaGraphAddMemFreeNode", __pyx_f[0], 25280, 0, __PYX_ERR(0, 25280, __pyx_L1_error)); __Pyx_INCREF(__pyx_v_pDependencies); /* "cuda/cudart.pyx":25333 * :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,cuda.CUgraphNode)) for _x in pDependencies): * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.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, 25333, __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/cudart.pyx":25334 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ __pyx_t_1 = __pyx_pf_4cuda_6cudart_23cudaGraphAddMemFreeNode_genexpr(NULL, __pyx_v_pDependencies); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25334, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25334, __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, 25334, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_4 = (!__pyx_t_2); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":25335 * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") # <<<<<<<<<<<<<< * cdef ccudart.cudaGraph_t cgraph * if graph is None: */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__534, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25335, __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, 25335, __pyx_L1_error) /* "cuda/cudart.pyx":25334 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ } /* "cuda/cudart.pyx":25337 * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_4 = (__pyx_v_graph == Py_None); if (__pyx_t_4) { /* "cuda/cudart.pyx":25338 * cdef ccudart.cudaGraph_t cgraph * if graph is None: * cgraph = 0 # <<<<<<<<<<<<<< * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) */ __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":25337 * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L4; } /* "cuda/cudart.pyx":25339 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_4 = __pyx_t_2; __pyx_L5_bool_binop_done:; if (__pyx_t_4) { /* "cuda/cudart.pyx":25340 * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) # <<<<<<<<<<<<<< * cgraph = pgraph * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25340, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pgraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":25341 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) * cgraph = pgraph # <<<<<<<<<<<<<< * else: * pgraph = int(cudaGraph_t(graph)) */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25341, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); /* "cuda/cudart.pyx":25339 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ goto __pyx_L4; } /* "cuda/cudart.pyx":25343 * cgraph = pgraph * else: * pgraph = int(cudaGraph_t(graph)) # <<<<<<<<<<<<<< * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25343, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25343, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pgraph = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":25344 * else: * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph # <<<<<<<<<<<<<< * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25344, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); } __pyx_L4:; /* "cuda/cudart.pyx":25345 * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25345, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_pGraphNode = ((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":25346 * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL # <<<<<<<<<<<<<< * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) */ __pyx_v_cpDependencies = NULL; /* "cuda/cudart.pyx":25347 * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: # <<<<<<<<<<<<<< * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 25347, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 > 0); if (__pyx_t_4) { /* "cuda/cudart.pyx":25348 * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) # <<<<<<<<<<<<<< * if cpDependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 25348, __pyx_L1_error) __pyx_v_cpDependencies = ((cudaGraphNode_t *)calloc(__pyx_t_6, (sizeof(cudaGraphNode_t)))); /* "cuda/cudart.pyx":25349 * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ __pyx_t_4 = (__pyx_v_cpDependencies == NULL); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":25350 * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) # <<<<<<<<<<<<<< * else: * for idx in range(len(pDependencies)): */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 25350, __pyx_L1_error) __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25350, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25350, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25350, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_n_u_x_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25350, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25350, __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, 25350, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25350, __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 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25350, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_7, 0, 0, 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __PYX_ERR(0, 25350, __pyx_L1_error) /* "cuda/cudart.pyx":25349 * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ } /* "cuda/cudart.pyx":25352 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: * for idx in range(len(pDependencies)): # <<<<<<<<<<<<<< * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) */ /*else*/ { __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 25352, __pyx_L1_error) __pyx_t_8 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_idx = __pyx_t_9; /* "cuda/cudart.pyx":25353 * else: * for idx in range(len(pDependencies)): * cpDependencies[idx] = (pDependencies[idx])._ptr[0] # <<<<<<<<<<<<<< * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * cdptr = utils.HelperInputVoidPtr(dptr) */ __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_pDependencies, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25353, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); (__pyx_v_cpDependencies[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_7)->__pyx_base._ptr[0])); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } /* "cuda/cudart.pyx":25347 * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: # <<<<<<<<<<<<<< * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: */ } /* "cuda/cudart.pyx":25354 * for idx in range(len(pDependencies)): * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) # <<<<<<<<<<<<<< * cdptr = utils.HelperInputVoidPtr(dptr) * cdef void* cdptr_ptr = cdptr.cptr */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 25354, __pyx_L1_error) __pyx_t_4 = (__pyx_v_numDependencies > ((size_t)__pyx_t_6)); if (unlikely(__pyx_t_4)) { __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 25354, __pyx_L1_error) __pyx_t_7 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25354, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25354, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_List_is_too_small, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25354, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_7, __pyx_kp_u__400); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25354, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyInt_FromSize_t(__pyx_v_numDependencies); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25354, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25354, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25354, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25354, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 25354, __pyx_L1_error) } /* "cuda/cudart.pyx":25355 * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * cdptr = utils.HelperInputVoidPtr(dptr) # <<<<<<<<<<<<<< * cdef void* cdptr_ptr = cdptr.cptr * err = ccudart.cudaGraphAddMemFreeNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cdptr_ptr) */ __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_dptr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25355, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_cdptr = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":25356 * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * cdptr = utils.HelperInputVoidPtr(dptr) * cdef void* cdptr_ptr = cdptr.cptr # <<<<<<<<<<<<<< * err = ccudart.cudaGraphAddMemFreeNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cdptr_ptr) * if cpDependencies is not NULL: */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_cdptr, __pyx_n_s_cptr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25356, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_3); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25356, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_cdptr_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); /* "cuda/cudart.pyx":25357 * cdptr = utils.HelperInputVoidPtr(dptr) * cdef void* cdptr_ptr = cdptr.cptr * err = ccudart.cudaGraphAddMemFreeNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cdptr_ptr) # <<<<<<<<<<<<<< * if cpDependencies is not NULL: * free(cpDependencies) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 25357, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 == 1); if (__pyx_t_4) { __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_pDependencies, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25357, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_10 = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_3)->__pyx_base._ptr); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_10 = __pyx_v_cpDependencies; } __pyx_t_11 = __pyx_f_4cuda_7ccudart_cudaGraphAddMemFreeNode(((cudaGraphNode_t *)__pyx_v_pGraphNode->__pyx_base._ptr), __pyx_v_cgraph, __pyx_t_10, __pyx_v_numDependencies, __pyx_v_cdptr_ptr); if (unlikely(__pyx_t_11 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 25357, __pyx_L1_error) __pyx_v_err = __pyx_t_11; /* "cuda/cudart.pyx":25358 * cdef void* cdptr_ptr = cdptr.cptr * err = ccudart.cudaGraphAddMemFreeNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cdptr_ptr) * if cpDependencies is not NULL: # <<<<<<<<<<<<<< * free(cpDependencies) * return (cudaError_t(err), pGraphNode) */ __pyx_t_4 = (__pyx_v_cpDependencies != NULL); if (__pyx_t_4) { /* "cuda/cudart.pyx":25359 * err = ccudart.cudaGraphAddMemFreeNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cdptr_ptr) * if cpDependencies is not NULL: * free(cpDependencies) # <<<<<<<<<<<<<< * return (cudaError_t(err), pGraphNode) * */ free(__pyx_v_cpDependencies); /* "cuda/cudart.pyx":25358 * cdef void* cdptr_ptr = cdptr.cptr * err = ccudart.cudaGraphAddMemFreeNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cdptr_ptr) * if cpDependencies is not NULL: # <<<<<<<<<<<<<< * free(cpDependencies) * return (cudaError_t(err), pGraphNode) */ } /* "cuda/cudart.pyx":25360 * if cpDependencies is not NULL: * free(cpDependencies) * return (cudaError_t(err), pGraphNode) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25360, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25360, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_12 = NULL; __pyx_t_13 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_12)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_12); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_13 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_12, __pyx_t_1}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_13, 1+__pyx_t_13); __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25360, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25360, __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)) __PYX_ERR(0, 25360, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pGraphNode); __Pyx_GIVEREF((PyObject *)__pyx_v_pGraphNode); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_pGraphNode))) __PYX_ERR(0, 25360, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":25280 * return (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_7); __Pyx_XDECREF(__pyx_t_12); __Pyx_AddTraceback("cuda.cudart.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(__pyx_v_cdptr); __Pyx_XDECREF(__pyx_gb_4cuda_6cudart_23cudaGraphAddMemFreeNode_2generator24); __Pyx_XDECREF(__pyx_v_pDependencies); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":25362 * return (cudaError_t(err), pGraphNode) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphMemFreeNodeGetParams(node): * """ Returns a memory free node's parameters. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_435cudaGraphMemFreeNodeGetParams(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_434cudaGraphMemFreeNodeGetParams, "cudaGraphMemFreeNodeGetParams(node)\n Returns a memory free node's parameters.\n\n Returns the address of a memory free node `hNode` in `dptr_out`.\n\n Parameters\n ----------\n node : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Node to get the parameters for\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n dptr_out : Any\n Pointer to return the device address\n\n See Also\n --------\n :py:obj:`~.cudaGraphAddMemFreeNode`, :py:obj:`~.cudaGraphMemFreeNodeGetParams`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_435cudaGraphMemFreeNodeGetParams = {"cudaGraphMemFreeNodeGetParams", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_435cudaGraphMemFreeNodeGetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_434cudaGraphMemFreeNodeGetParams}; static PyObject *__pyx_pw_4cuda_6cudart_435cudaGraphMemFreeNodeGetParams(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_node_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_node_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25362, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphMemFreeNodeGetParams") < 0)) __PYX_ERR(0, 25362, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_node = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphMemFreeNodeGetParams", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 25362, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphMemFreeNodeGetParams", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_434cudaGraphMemFreeNodeGetParams(__pyx_self, __pyx_v_node); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_434cudaGraphMemFreeNodeGetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node) { cudaGraphNode_t __pyx_v_cnode; PyObject *__pyx_v_pnode = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_v_dptr_out; void *__pyx_v_cdptr_out_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__569) __Pyx_RefNannySetupContext("cudaGraphMemFreeNodeGetParams", 1); __Pyx_TraceCall("cudaGraphMemFreeNodeGetParams", __pyx_f[0], 25362, 0, __PYX_ERR(0, 25362, __pyx_L1_error)); /* "cuda/cudart.pyx":25385 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_node == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":25386 * cdef ccudart.cudaGraphNode_t cnode * if node is None: * cnode = 0 # <<<<<<<<<<<<<< * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) */ __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":25385 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":25387 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":25388 * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) # <<<<<<<<<<<<<< * cnode = pnode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25388, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pnode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":25389 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) * cnode = pnode # <<<<<<<<<<<<<< * else: * pnode = int(cudaGraphNode_t(node)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25389, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":25387 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ goto __pyx_L3; } /* "cuda/cudart.pyx":25391 * cnode = pnode * else: * pnode = int(cudaGraphNode_t(node)) # <<<<<<<<<<<<<< * cnode = pnode * cdef void_ptr dptr_out = 0 */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25391, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25391, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pnode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":25392 * else: * pnode = int(cudaGraphNode_t(node)) * cnode = pnode # <<<<<<<<<<<<<< * cdef void_ptr dptr_out = 0 * cdef void* cdptr_out_ptr = &dptr_out */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25392, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":25393 * pnode = int(cudaGraphNode_t(node)) * cnode = pnode * cdef void_ptr dptr_out = 0 # <<<<<<<<<<<<<< * cdef void* cdptr_out_ptr = &dptr_out * err = ccudart.cudaGraphMemFreeNodeGetParams(cnode, cdptr_out_ptr) */ __pyx_v_dptr_out = 0; /* "cuda/cudart.pyx":25394 * cnode = pnode * cdef void_ptr dptr_out = 0 * cdef void* cdptr_out_ptr = &dptr_out # <<<<<<<<<<<<<< * err = ccudart.cudaGraphMemFreeNodeGetParams(cnode, cdptr_out_ptr) * return (cudaError_t(err), dptr_out) */ __pyx_v_cdptr_out_ptr = ((void *)(&__pyx_v_dptr_out)); /* "cuda/cudart.pyx":25395 * cdef void_ptr dptr_out = 0 * cdef void* cdptr_out_ptr = &dptr_out * err = ccudart.cudaGraphMemFreeNodeGetParams(cnode, cdptr_out_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err), dptr_out) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaGraphMemFreeNodeGetParams(__pyx_v_cnode, __pyx_v_cdptr_out_ptr); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 25395, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":25396 * cdef void* cdptr_out_ptr = &dptr_out * err = ccudart.cudaGraphMemFreeNodeGetParams(cnode, cdptr_out_ptr) * return (cudaError_t(err), dptr_out) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25396, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25396, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25396, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(__pyx_v_dptr_out); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25396, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25396, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5)) __PYX_ERR(0, 25396, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_3)) __PYX_ERR(0, 25396, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_3 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":25362 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaGraphMemFreeNodeGetParams", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pnode); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":25398 * return (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_6cudart_437cudaDeviceGraphMemTrim(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_436cudaDeviceGraphMemTrim, "cudaDeviceGraphMemTrim(int device)\n Free unused memory that was cached on the specified device for use with graphs back to the OS.\n\n Blocks which are not in use by a graph that is either currently\n executing or scheduled to execute are freed back to the operating\n system.\n\n Parameters\n ----------\n device : int\n The device for which cached memory should be freed.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\n See Also\n --------\n :py:obj:`~.cudaGraphAddMemAllocNode`, :py:obj:`~.cudaGraphAddMemFreeNode`, :py:obj:`~.cudaDeviceGetGraphMemAttribute`, :py:obj:`~.cudaDeviceSetGraphMemAttribute`, :py:obj:`~.cudaMallocAsync`, :py:obj:`~.cudaFreeAsync`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_437cudaDeviceGraphMemTrim = {"cudaDeviceGraphMemTrim", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_437cudaDeviceGraphMemTrim, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_436cudaDeviceGraphMemTrim}; static PyObject *__pyx_pw_4cuda_6cudart_437cudaDeviceGraphMemTrim(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_device_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_device_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25398, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaDeviceGraphMemTrim") < 0)) __PYX_ERR(0, 25398, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_device = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 25399, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaDeviceGraphMemTrim", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 25398, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaDeviceGraphMemTrim", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_436cudaDeviceGraphMemTrim(__pyx_self, __pyx_v_device); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_436cudaDeviceGraphMemTrim(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device) { cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__570) __Pyx_RefNannySetupContext("cudaDeviceGraphMemTrim", 1); __Pyx_TraceCall("cudaDeviceGraphMemTrim", __pyx_f[0], 25398, 0, __PYX_ERR(0, 25398, __pyx_L1_error)); /* "cuda/cudart.pyx":25420 * :py:obj:`~.cudaGraphAddMemAllocNode`, :py:obj:`~.cudaGraphAddMemFreeNode`, :py:obj:`~.cudaDeviceGetGraphMemAttribute`, :py:obj:`~.cudaDeviceSetGraphMemAttribute`, :py:obj:`~.cudaMallocAsync`, :py:obj:`~.cudaFreeAsync` * """ * err = ccudart.cudaDeviceGraphMemTrim(device) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_1 = __pyx_f_4cuda_7ccudart_cudaDeviceGraphMemTrim(__pyx_v_device); if (unlikely(__pyx_t_1 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 25420, __pyx_L1_error) __pyx_v_err = __pyx_t_1; /* "cuda/cudart.pyx":25421 * """ * err = ccudart.cudaDeviceGraphMemTrim(device) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25421, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25421, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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(0, 25421, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25421, __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)) __PYX_ERR(0, 25421, __pyx_L1_error); __pyx_t_2 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":25398 * return (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_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaDeviceGraphMemTrim", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":25423 * return (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_6cudart_439cudaDeviceGetGraphMemAttribute(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_438cudaDeviceGetGraphMemAttribute, "cudaDeviceGetGraphMemAttribute(int device, attr: cudaGraphMemAttributeType)\n Query asynchronous allocation attributes related to graphs.\n\n Valid 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\n Parameters\n ----------\n device : int\n Specifies the scope of the query\n attr : :py:obj:`~.cudaGraphMemAttributeType`\n attribute to get\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`\n value : Any\n retrieved value\n\n See Also\n --------\n :py:obj:`~.cudaDeviceSetGraphMemAttribute`, :py:obj:`~.cudaGraphAddMemAllocNode`, :py:obj:`~.cudaGraphAddMemFreeNode`, :py:obj:`~.cudaDeviceGraphMemTrim`, :py:obj:`~.cudaMallocAsync`, :py:obj:`~.cudaFreeAsync`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_439cudaDeviceGetGraphMemAttribute = {"cudaDeviceGetGraphMemAttribute", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_439cudaDeviceGetGraphMemAttribute, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_438cudaDeviceGetGraphMemAttribute}; static PyObject *__pyx_pw_4cuda_6cudart_439cudaDeviceGetGraphMemAttribute(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_device_2,&__pyx_n_s_attr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_device_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25423, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_attr)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25423, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaDeviceGetGraphMemAttribute", 1, 2, 2, 1); __PYX_ERR(0, 25423, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaDeviceGetGraphMemAttribute") < 0)) __PYX_ERR(0, 25423, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_device = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 25424, __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, 25423, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 25424, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_438cudaDeviceGetGraphMemAttribute(__pyx_self, __pyx_v_device, __pyx_v_attr); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_438cudaDeviceGetGraphMemAttribute(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device, PyObject *__pyx_v_attr) { enum cudaGraphMemAttributeType __pyx_v_cattr; struct __pyx_obj_4cuda_4_lib_5utils_HelperCUgraphMem_attribute *__pyx_v_cvalue = 0; void *__pyx_v_cvalue_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; enum cudaGraphMemAttributeType __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__571) __Pyx_RefNannySetupContext("cudaDeviceGetGraphMemAttribute", 1); __Pyx_TraceCall("cudaDeviceGetGraphMemAttribute", __pyx_f[0], 25423, 0, __PYX_ERR(0, 25423, __pyx_L1_error)); /* "cuda/cudart.pyx":25462 * :py:obj:`~.cudaDeviceSetGraphMemAttribute`, :py:obj:`~.cudaGraphAddMemAllocNode`, :py:obj:`~.cudaGraphAddMemFreeNode`, :py:obj:`~.cudaDeviceGraphMemTrim`, :py:obj:`~.cudaMallocAsync`, :py:obj:`~.cudaFreeAsync` * """ * cdef ccudart.cudaGraphMemAttributeType cattr = attr.value # <<<<<<<<<<<<<< * cdef utils.HelperCUgraphMem_attribute cvalue = utils.HelperCUgraphMem_attribute(attr, 0, is_getter=True) * cdef void* cvalue_ptr = cvalue.cptr */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25462, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaGraphMemAttributeType)__Pyx_PyInt_As_enum__cudaGraphMemAttributeType(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25462, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cattr = __pyx_t_2; /* "cuda/cudart.pyx":25463 * """ * cdef ccudart.cudaGraphMemAttributeType cattr = attr.value * cdef utils.HelperCUgraphMem_attribute cvalue = utils.HelperCUgraphMem_attribute(attr, 0, is_getter=True) # <<<<<<<<<<<<<< * cdef void* cvalue_ptr = cvalue.cptr * err = ccudart.cudaDeviceGetGraphMemAttribute(device, cattr, cvalue_ptr) */ __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25463, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v_attr); __Pyx_GIVEREF(__pyx_v_attr); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_attr)) __PYX_ERR(0, 25463, __pyx_L1_error); __Pyx_INCREF(__pyx_int_0); __Pyx_GIVEREF(__pyx_int_0); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_0)) __PYX_ERR(0, 25463, __pyx_L1_error); __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25463, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_is_getter, Py_True) < 0) __PYX_ERR(0, 25463, __pyx_L1_error) __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperCUgraphMem_attribute), __pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25463, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_cvalue = ((struct __pyx_obj_4cuda_4_lib_5utils_HelperCUgraphMem_attribute *)__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":25464 * cdef ccudart.cudaGraphMemAttributeType cattr = attr.value * cdef utils.HelperCUgraphMem_attribute cvalue = utils.HelperCUgraphMem_attribute(attr, 0, is_getter=True) * cdef void* cvalue_ptr = cvalue.cptr # <<<<<<<<<<<<<< * err = ccudart.cudaDeviceGetGraphMemAttribute(device, cattr, cvalue_ptr) * return (cudaError_t(err), cvalue.pyObj()) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cvalue), __pyx_n_s_cptr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25464, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_4); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25464, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_cvalue_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); /* "cuda/cudart.pyx":25465 * cdef utils.HelperCUgraphMem_attribute cvalue = utils.HelperCUgraphMem_attribute(attr, 0, is_getter=True) * cdef void* cvalue_ptr = cvalue.cptr * err = ccudart.cudaDeviceGetGraphMemAttribute(device, cattr, cvalue_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err), cvalue.pyObj()) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaDeviceGetGraphMemAttribute(__pyx_v_device, __pyx_v_cattr, __pyx_v_cvalue_ptr); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 25465, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":25466 * cdef void* cvalue_ptr = cvalue.cptr * err = ccudart.cudaDeviceGetGraphMemAttribute(device, cattr, cvalue_ptr) * return (cudaError_t(err), cvalue.pyObj()) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25466, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25466, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_1}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25466, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cvalue), __pyx_n_s_pyObj); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25466, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_1))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, NULL}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_8, 0+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25466, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25466, __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)) __PYX_ERR(0, 25466, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_3)) __PYX_ERR(0, 25466, __pyx_L1_error); __pyx_t_4 = 0; __pyx_t_3 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":25423 * return (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_4); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.cudaDeviceGetGraphMemAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_cvalue); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":25468 * return (cudaError_t(err), cvalue.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_6cudart_441cudaDeviceSetGraphMemAttribute(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_440cudaDeviceSetGraphMemAttribute, "cudaDeviceSetGraphMemAttribute(int device, attr: cudaGraphMemAttributeType, value)\n Set asynchronous allocation attributes related to graphs.\n\n Valid 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\n Parameters\n ----------\n device : int\n Specifies the scope of the query\n attr : :py:obj:`~.cudaGraphMemAttributeType`\n attribute to get\n value : Any\n pointer to value to set\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`\n\n See Also\n --------\n :py:obj:`~.cudaDeviceGetGraphMemAttribute`, :py:obj:`~.cudaGraphAddMemAllocNode`, :py:obj:`~.cudaGraphAddMemFreeNode`, :py:obj:`~.cudaDeviceGraphMemTrim`, :py:obj:`~.cudaMallocAsync`, :py:obj:`~.cudaFreeAsync`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_441cudaDeviceSetGraphMemAttribute = {"cudaDeviceSetGraphMemAttribute", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_441cudaDeviceSetGraphMemAttribute, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_440cudaDeviceSetGraphMemAttribute}; static PyObject *__pyx_pw_4cuda_6cudart_441cudaDeviceSetGraphMemAttribute(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_device_2,&__pyx_n_s_attr,&__pyx_n_s_value,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_device_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25468, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_attr)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25468, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaDeviceSetGraphMemAttribute", 1, 3, 3, 1); __PYX_ERR(0, 25468, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_value)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25468, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaDeviceSetGraphMemAttribute", 1, 3, 3, 2); __PYX_ERR(0, 25468, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaDeviceSetGraphMemAttribute") < 0)) __PYX_ERR(0, 25468, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_device = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 25469, __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, 25468, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 25469, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_440cudaDeviceSetGraphMemAttribute(__pyx_self, __pyx_v_device, __pyx_v_attr, __pyx_v_value); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_440cudaDeviceSetGraphMemAttribute(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device, PyObject *__pyx_v_attr, PyObject *__pyx_v_value) { enum cudaGraphMemAttributeType __pyx_v_cattr; struct __pyx_obj_4cuda_4_lib_5utils_HelperCUgraphMem_attribute *__pyx_v_cvalue = 0; void *__pyx_v_cvalue_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; enum cudaGraphMemAttributeType __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__572) __Pyx_RefNannySetupContext("cudaDeviceSetGraphMemAttribute", 1); __Pyx_TraceCall("cudaDeviceSetGraphMemAttribute", __pyx_f[0], 25468, 0, __PYX_ERR(0, 25468, __pyx_L1_error)); /* "cuda/cudart.pyx":25500 * :py:obj:`~.cudaDeviceGetGraphMemAttribute`, :py:obj:`~.cudaGraphAddMemAllocNode`, :py:obj:`~.cudaGraphAddMemFreeNode`, :py:obj:`~.cudaDeviceGraphMemTrim`, :py:obj:`~.cudaMallocAsync`, :py:obj:`~.cudaFreeAsync` * """ * cdef ccudart.cudaGraphMemAttributeType cattr = attr.value # <<<<<<<<<<<<<< * cdef utils.HelperCUgraphMem_attribute cvalue = utils.HelperCUgraphMem_attribute(attr, value, is_getter=False) * cdef void* cvalue_ptr = cvalue.cptr */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25500, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = ((enum cudaGraphMemAttributeType)__Pyx_PyInt_As_enum__cudaGraphMemAttributeType(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25500, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cattr = __pyx_t_2; /* "cuda/cudart.pyx":25501 * """ * cdef ccudart.cudaGraphMemAttributeType cattr = attr.value * cdef utils.HelperCUgraphMem_attribute cvalue = utils.HelperCUgraphMem_attribute(attr, value, is_getter=False) # <<<<<<<<<<<<<< * cdef void* cvalue_ptr = cvalue.cptr * err = ccudart.cudaDeviceSetGraphMemAttribute(device, cattr, cvalue_ptr) */ __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25501, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v_attr); __Pyx_GIVEREF(__pyx_v_attr); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_attr)) __PYX_ERR(0, 25501, __pyx_L1_error); __Pyx_INCREF(__pyx_v_value); __Pyx_GIVEREF(__pyx_v_value); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_value)) __PYX_ERR(0, 25501, __pyx_L1_error); __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25501, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_is_getter, Py_False) < 0) __PYX_ERR(0, 25501, __pyx_L1_error) __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperCUgraphMem_attribute), __pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25501, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_cvalue = ((struct __pyx_obj_4cuda_4_lib_5utils_HelperCUgraphMem_attribute *)__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":25502 * cdef ccudart.cudaGraphMemAttributeType cattr = attr.value * cdef utils.HelperCUgraphMem_attribute cvalue = utils.HelperCUgraphMem_attribute(attr, value, is_getter=False) * cdef void* cvalue_ptr = cvalue.cptr # <<<<<<<<<<<<<< * err = ccudart.cudaDeviceSetGraphMemAttribute(device, cattr, cvalue_ptr) * return (cudaError_t(err),) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cvalue), __pyx_n_s_cptr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25502, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_4); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25502, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_cvalue_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); /* "cuda/cudart.pyx":25503 * cdef utils.HelperCUgraphMem_attribute cvalue = utils.HelperCUgraphMem_attribute(attr, value, is_getter=False) * cdef void* cvalue_ptr = cvalue.cptr * err = ccudart.cudaDeviceSetGraphMemAttribute(device, cattr, cvalue_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaDeviceSetGraphMemAttribute(__pyx_v_device, __pyx_v_cattr, __pyx_v_cvalue_ptr); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 25503, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":25504 * cdef void* cvalue_ptr = cvalue.cptr * err = ccudart.cudaDeviceSetGraphMemAttribute(device, cattr, cvalue_ptr) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25504, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25504, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_1}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25504, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25504, __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)) __PYX_ERR(0, 25504, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":25468 * return (cudaError_t(err), cvalue.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_4); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.cudaDeviceSetGraphMemAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_cvalue); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":25506 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphClone(originalGraph): * """ Clones a graph. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_443cudaGraphClone(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_442cudaGraphClone, "cudaGraphClone(originalGraph)\n Clones a graph.\n\n This function creates a copy of `originalGraph` and returns it in\n `pGraphClone`. All parameters are copied into the cloned graph. The\n original graph may be modified after this call without affecting the\n clone.\n\n Child graph nodes in the original graph are recursively copied into the\n clone.\n\n Parameters\n ----------\n originalGraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n Graph to clone\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorMemoryAllocation`\n pGraphClone : :py:obj:`~.cudaGraph_t`\n Returns newly created cloned graph\n\n See Also\n --------\n :py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphNodeFindInClone`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_443cudaGraphClone = {"cudaGraphClone", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_443cudaGraphClone, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_442cudaGraphClone}; static PyObject *__pyx_pw_4cuda_6cudart_443cudaGraphClone(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_originalGraph,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_originalGraph)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25506, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphClone") < 0)) __PYX_ERR(0, 25506, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_originalGraph = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphClone", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 25506, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphClone", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_442cudaGraphClone(__pyx_self, __pyx_v_originalGraph); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_442cudaGraphClone(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_originalGraph) { cudaGraph_t __pyx_v_coriginalGraph; PyObject *__pyx_v_poriginalGraph = NULL; struct __pyx_obj_4cuda_6cudart_cudaGraph_t *__pyx_v_pGraphClone = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__573) __Pyx_RefNannySetupContext("cudaGraphClone", 1); __Pyx_TraceCall("cudaGraphClone", __pyx_f[0], 25506, 0, __PYX_ERR(0, 25506, __pyx_L1_error)); /* "cuda/cudart.pyx":25535 * """ * cdef ccudart.cudaGraph_t coriginalGraph * if originalGraph is None: # <<<<<<<<<<<<<< * coriginalGraph = 0 * elif isinstance(originalGraph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_1 = (__pyx_v_originalGraph == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":25536 * cdef ccudart.cudaGraph_t coriginalGraph * if originalGraph is None: * coriginalGraph = 0 # <<<<<<<<<<<<<< * elif isinstance(originalGraph, (cudaGraph_t,cuda.CUgraph)): * poriginalGraph = int(originalGraph) */ __pyx_v_coriginalGraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":25535 * """ * cdef ccudart.cudaGraph_t coriginalGraph * if originalGraph is None: # <<<<<<<<<<<<<< * coriginalGraph = 0 * elif isinstance(originalGraph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":25537 * if originalGraph is None: * coriginalGraph = 0 * elif isinstance(originalGraph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * poriginalGraph = int(originalGraph) * coriginalGraph = poriginalGraph */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_originalGraph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":25538 * coriginalGraph = 0 * elif isinstance(originalGraph, (cudaGraph_t,cuda.CUgraph)): * poriginalGraph = int(originalGraph) # <<<<<<<<<<<<<< * coriginalGraph = poriginalGraph * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_originalGraph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25538, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_poriginalGraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":25539 * elif isinstance(originalGraph, (cudaGraph_t,cuda.CUgraph)): * poriginalGraph = int(originalGraph) * coriginalGraph = poriginalGraph # <<<<<<<<<<<<<< * else: * poriginalGraph = int(cudaGraph_t(originalGraph)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_poriginalGraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25539, __pyx_L1_error) __pyx_v_coriginalGraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":25537 * if originalGraph is None: * coriginalGraph = 0 * elif isinstance(originalGraph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * poriginalGraph = int(originalGraph) * coriginalGraph = poriginalGraph */ goto __pyx_L3; } /* "cuda/cudart.pyx":25541 * coriginalGraph = poriginalGraph * else: * poriginalGraph = int(cudaGraph_t(originalGraph)) # <<<<<<<<<<<<<< * coriginalGraph = poriginalGraph * cdef cudaGraph_t pGraphClone = cudaGraph_t() */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_originalGraph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25541, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25541, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_poriginalGraph = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":25542 * else: * poriginalGraph = int(cudaGraph_t(originalGraph)) * coriginalGraph = poriginalGraph # <<<<<<<<<<<<<< * cdef cudaGraph_t pGraphClone = cudaGraph_t() * err = ccudart.cudaGraphClone(pGraphClone._ptr, coriginalGraph) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_poriginalGraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25542, __pyx_L1_error) __pyx_v_coriginalGraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":25543 * poriginalGraph = int(cudaGraph_t(originalGraph)) * coriginalGraph = poriginalGraph * cdef cudaGraph_t pGraphClone = cudaGraph_t() # <<<<<<<<<<<<<< * err = ccudart.cudaGraphClone(pGraphClone._ptr, coriginalGraph) * return (cudaError_t(err), pGraphClone) */ __pyx_t_5 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25543, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pGraphClone = ((struct __pyx_obj_4cuda_6cudart_cudaGraph_t *)__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":25544 * coriginalGraph = poriginalGraph * cdef cudaGraph_t pGraphClone = cudaGraph_t() * err = ccudart.cudaGraphClone(pGraphClone._ptr, coriginalGraph) # <<<<<<<<<<<<<< * return (cudaError_t(err), pGraphClone) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaGraphClone(((cudaGraph_t *)__pyx_v_pGraphClone->__pyx_base._ptr), __pyx_v_coriginalGraph); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 25544, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":25545 * cdef cudaGraph_t pGraphClone = cudaGraph_t() * err = ccudart.cudaGraphClone(pGraphClone._ptr, coriginalGraph) * return (cudaError_t(err), pGraphClone) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25545, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25545, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25545, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25545, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 25545, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pGraphClone); __Pyx_GIVEREF((PyObject *)__pyx_v_pGraphClone); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_v_pGraphClone))) __PYX_ERR(0, 25545, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":25506 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":25547 * return (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_6cudart_445cudaGraphNodeFindInClone(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_444cudaGraphNodeFindInClone, "cudaGraphNodeFindInClone(originalNode, clonedGraph)\n Finds a cloned version of a node.\n\n This 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`,\n and the corresponding cloned node in `clonedGraph` must not have been\n removed. The cloned node is then returned via `pClonedNode`.\n\n Parameters\n ----------\n originalNode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Handle to the original node\n clonedGraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n Cloned graph to query\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n pNode : :py:obj:`~.cudaGraphNode_t`\n Returns handle to the cloned node\n\n See Also\n --------\n :py:obj:`~.cudaGraphClone`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_445cudaGraphNodeFindInClone = {"cudaGraphNodeFindInClone", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_445cudaGraphNodeFindInClone, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_444cudaGraphNodeFindInClone}; static PyObject *__pyx_pw_4cuda_6cudart_445cudaGraphNodeFindInClone(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_originalNode,&__pyx_n_s_clonedGraph,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_originalNode)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25547, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_clonedGraph)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25547, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphNodeFindInClone", 1, 2, 2, 1); __PYX_ERR(0, 25547, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphNodeFindInClone") < 0)) __PYX_ERR(0, 25547, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __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, 25547, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeFindInClone", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_444cudaGraphNodeFindInClone(__pyx_self, __pyx_v_originalNode, __pyx_v_clonedGraph); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_444cudaGraphNodeFindInClone(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_originalNode, PyObject *__pyx_v_clonedGraph) { cudaGraph_t __pyx_v_cclonedGraph; PyObject *__pyx_v_pclonedGraph = NULL; cudaGraphNode_t __pyx_v_coriginalNode; PyObject *__pyx_v_poriginalNode = NULL; struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *__pyx_v_pNode = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__574) __Pyx_RefNannySetupContext("cudaGraphNodeFindInClone", 1); __Pyx_TraceCall("cudaGraphNodeFindInClone", __pyx_f[0], 25547, 0, __PYX_ERR(0, 25547, __pyx_L1_error)); /* "cuda/cudart.pyx":25579 * """ * cdef ccudart.cudaGraph_t cclonedGraph * if clonedGraph is None: # <<<<<<<<<<<<<< * cclonedGraph = 0 * elif isinstance(clonedGraph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_1 = (__pyx_v_clonedGraph == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":25580 * cdef ccudart.cudaGraph_t cclonedGraph * if clonedGraph is None: * cclonedGraph = 0 # <<<<<<<<<<<<<< * elif isinstance(clonedGraph, (cudaGraph_t,cuda.CUgraph)): * pclonedGraph = int(clonedGraph) */ __pyx_v_cclonedGraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":25579 * """ * cdef ccudart.cudaGraph_t cclonedGraph * if clonedGraph is None: # <<<<<<<<<<<<<< * cclonedGraph = 0 * elif isinstance(clonedGraph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":25581 * if clonedGraph is None: * cclonedGraph = 0 * elif isinstance(clonedGraph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pclonedGraph = int(clonedGraph) * cclonedGraph = pclonedGraph */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_clonedGraph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":25582 * cclonedGraph = 0 * elif isinstance(clonedGraph, (cudaGraph_t,cuda.CUgraph)): * pclonedGraph = int(clonedGraph) # <<<<<<<<<<<<<< * cclonedGraph = pclonedGraph * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_clonedGraph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25582, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pclonedGraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":25583 * elif isinstance(clonedGraph, (cudaGraph_t,cuda.CUgraph)): * pclonedGraph = int(clonedGraph) * cclonedGraph = pclonedGraph # <<<<<<<<<<<<<< * else: * pclonedGraph = int(cudaGraph_t(clonedGraph)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pclonedGraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25583, __pyx_L1_error) __pyx_v_cclonedGraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":25581 * if clonedGraph is None: * cclonedGraph = 0 * elif isinstance(clonedGraph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pclonedGraph = int(clonedGraph) * cclonedGraph = pclonedGraph */ goto __pyx_L3; } /* "cuda/cudart.pyx":25585 * cclonedGraph = pclonedGraph * else: * pclonedGraph = int(cudaGraph_t(clonedGraph)) # <<<<<<<<<<<<<< * cclonedGraph = pclonedGraph * cdef ccudart.cudaGraphNode_t coriginalNode */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_clonedGraph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25585, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25585, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pclonedGraph = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":25586 * else: * pclonedGraph = int(cudaGraph_t(clonedGraph)) * cclonedGraph = pclonedGraph # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t coriginalNode * if originalNode is None: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pclonedGraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25586, __pyx_L1_error) __pyx_v_cclonedGraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":25588 * cclonedGraph = pclonedGraph * cdef ccudart.cudaGraphNode_t coriginalNode * if originalNode is None: # <<<<<<<<<<<<<< * coriginalNode = 0 * elif isinstance(originalNode, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_originalNode == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":25589 * cdef ccudart.cudaGraphNode_t coriginalNode * if originalNode is None: * coriginalNode = 0 # <<<<<<<<<<<<<< * elif isinstance(originalNode, (cudaGraphNode_t,cuda.CUgraphNode)): * poriginalNode = int(originalNode) */ __pyx_v_coriginalNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":25588 * cclonedGraph = pclonedGraph * cdef ccudart.cudaGraphNode_t coriginalNode * if originalNode is None: # <<<<<<<<<<<<<< * coriginalNode = 0 * elif isinstance(originalNode, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":25590 * if originalNode is None: * coriginalNode = 0 * elif isinstance(originalNode, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * poriginalNode = int(originalNode) * coriginalNode = poriginalNode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_originalNode, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L7_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":25591 * coriginalNode = 0 * elif isinstance(originalNode, (cudaGraphNode_t,cuda.CUgraphNode)): * poriginalNode = int(originalNode) # <<<<<<<<<<<<<< * coriginalNode = poriginalNode * else: */ __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_v_originalNode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25591, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_poriginalNode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":25592 * elif isinstance(originalNode, (cudaGraphNode_t,cuda.CUgraphNode)): * poriginalNode = int(originalNode) * coriginalNode = poriginalNode # <<<<<<<<<<<<<< * else: * poriginalNode = int(cudaGraphNode_t(originalNode)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_poriginalNode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25592, __pyx_L1_error) __pyx_v_coriginalNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":25590 * if originalNode is None: * coriginalNode = 0 * elif isinstance(originalNode, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * poriginalNode = int(originalNode) * coriginalNode = poriginalNode */ goto __pyx_L6; } /* "cuda/cudart.pyx":25594 * coriginalNode = poriginalNode * else: * poriginalNode = int(cudaGraphNode_t(originalNode)) # <<<<<<<<<<<<<< * coriginalNode = poriginalNode * cdef cudaGraphNode_t pNode = cudaGraphNode_t() */ /*else*/ { __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_originalNode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25594, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25594, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_poriginalNode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":25595 * else: * poriginalNode = int(cudaGraphNode_t(originalNode)) * coriginalNode = poriginalNode # <<<<<<<<<<<<<< * cdef cudaGraphNode_t pNode = cudaGraphNode_t() * err = ccudart.cudaGraphNodeFindInClone(pNode._ptr, coriginalNode, cclonedGraph) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_poriginalNode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25595, __pyx_L1_error) __pyx_v_coriginalNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L6:; /* "cuda/cudart.pyx":25596 * poriginalNode = int(cudaGraphNode_t(originalNode)) * coriginalNode = poriginalNode * cdef cudaGraphNode_t pNode = cudaGraphNode_t() # <<<<<<<<<<<<<< * err = ccudart.cudaGraphNodeFindInClone(pNode._ptr, coriginalNode, cclonedGraph) * return (cudaError_t(err), pNode) */ __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25596, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pNode = ((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":25597 * coriginalNode = poriginalNode * cdef cudaGraphNode_t pNode = cudaGraphNode_t() * err = ccudart.cudaGraphNodeFindInClone(pNode._ptr, coriginalNode, cclonedGraph) # <<<<<<<<<<<<<< * return (cudaError_t(err), pNode) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaGraphNodeFindInClone(((cudaGraphNode_t *)__pyx_v_pNode->__pyx_base._ptr), __pyx_v_coriginalNode, __pyx_v_cclonedGraph); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 25597, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":25598 * cdef cudaGraphNode_t pNode = cudaGraphNode_t() * err = ccudart.cudaGraphNodeFindInClone(pNode._ptr, coriginalNode, cclonedGraph) * return (cudaError_t(err), pNode) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25598, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25598, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __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, 25598, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25598, __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)) __PYX_ERR(0, 25598, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pNode); __Pyx_GIVEREF((PyObject *)__pyx_v_pNode); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_v_pNode))) __PYX_ERR(0, 25598, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":25547 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":25600 * return (cudaError_t(err), pNode) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphNodeGetType(node): * """ Returns a node's type. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_447cudaGraphNodeGetType(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_446cudaGraphNodeGetType, "cudaGraphNodeGetType(node)\n Returns a node's type.\n\n Returns the node type of `node` in `pType`.\n\n Parameters\n ----------\n node : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Node to query\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n pType : :py:obj:`~.cudaGraphNodeType`\n Pointer to return the node type\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_447cudaGraphNodeGetType = {"cudaGraphNodeGetType", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_447cudaGraphNodeGetType, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_446cudaGraphNodeGetType}; static PyObject *__pyx_pw_4cuda_6cudart_447cudaGraphNodeGetType(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_node_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_node_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25600, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphNodeGetType") < 0)) __PYX_ERR(0, 25600, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_node = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphNodeGetType", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 25600, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeGetType", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_446cudaGraphNodeGetType(__pyx_self, __pyx_v_node); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_446cudaGraphNodeGetType(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node) { cudaGraphNode_t __pyx_v_cnode; PyObject *__pyx_v_pnode = NULL; enum cudaGraphNodeType __pyx_v_pType; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; PyObject *__pyx_t_10 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__575) __Pyx_RefNannySetupContext("cudaGraphNodeGetType", 1); __Pyx_TraceCall("cudaGraphNodeGetType", __pyx_f[0], 25600, 0, __PYX_ERR(0, 25600, __pyx_L1_error)); /* "cuda/cudart.pyx":25623 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_node == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":25624 * cdef ccudart.cudaGraphNode_t cnode * if node is None: * cnode = 0 # <<<<<<<<<<<<<< * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) */ __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":25623 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":25625 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":25626 * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) # <<<<<<<<<<<<<< * cnode = pnode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25626, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pnode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":25627 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) * cnode = pnode # <<<<<<<<<<<<<< * else: * pnode = int(cudaGraphNode_t(node)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25627, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":25625 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ goto __pyx_L3; } /* "cuda/cudart.pyx":25629 * cnode = pnode * else: * pnode = int(cudaGraphNode_t(node)) # <<<<<<<<<<<<<< * cnode = pnode * cdef ccudart.cudaGraphNodeType pType */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25629, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25629, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pnode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":25630 * else: * pnode = int(cudaGraphNode_t(node)) * cnode = pnode # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNodeType pType * err = ccudart.cudaGraphNodeGetType(cnode, &pType) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25630, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":25632 * cnode = pnode * cdef ccudart.cudaGraphNodeType pType * err = ccudart.cudaGraphNodeGetType(cnode, &pType) # <<<<<<<<<<<<<< * return (cudaError_t(err), cudaGraphNodeType(pType)) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaGraphNodeGetType(__pyx_v_cnode, (&__pyx_v_pType)); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 25632, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":25633 * cdef ccudart.cudaGraphNodeType pType * err = ccudart.cudaGraphNodeGetType(cnode, &pType) * return (cudaError_t(err), cudaGraphNodeType(pType)) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25633, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25633, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25633, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_cudaGraphNodeType); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25633, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = __Pyx_PyInt_From_enum__cudaGraphNodeType(__pyx_v_pType); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 25633, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_10 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_10)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_10); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_t_8}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25633, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25633, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5)) __PYX_ERR(0, 25633, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_3)) __PYX_ERR(0, 25633, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_3 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":25600 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_10); __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeGetType", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pnode); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":25635 * return (cudaError_t(err), cudaGraphNodeType(pType)) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphGetNodes(graph, size_t numNodes = 0): * """ Returns a graph's nodes. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_449cudaGraphGetNodes(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_448cudaGraphGetNodes, "cudaGraphGetNodes(graph, size_t numNodes=0)\n Returns a graph's nodes.\n\n Returns a list of `graph's` nodes. `nodes` may be NULL, in which case\n this function will return the number of nodes in `numNodes`. Otherwise,\n `numNodes` entries will be filled in. If `numNodes` is higher than the\n actual number of nodes, the remaining entries in `nodes` will be set to\n NULL, and the number of nodes actually obtained will be returned in\n `numNodes`.\n\n Parameters\n ----------\n graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n Graph to query\n numNodes : int\n See description\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n nodes : List[:py:obj:`~.cudaGraphNode_t`]\n Pointer to return the nodes\n numNodes : int\n See description\n\n See Also\n --------\n :py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphGetRootNodes`, :py:obj:`~.cudaGraphGetEdges`, :py:obj:`~.cudaGraphNodeGetType`, :py:obj:`~.cudaGraphNodeGetDependencies`, :py:obj:`~.cudaGraphNodeGetDependentNodes`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_449cudaGraphGetNodes = {"cudaGraphGetNodes", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_449cudaGraphGetNodes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_448cudaGraphGetNodes}; static PyObject *__pyx_pw_4cuda_6cudart_449cudaGraphGetNodes(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_graph_2,&__pyx_n_s_numNodes,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_graph_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25635, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_numNodes); if (value) { values[1] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25635, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphGetNodes") < 0)) __PYX_ERR(0, 25635, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_graph = values[0]; if (values[1]) { __pyx_v_numNodes = __Pyx_PyInt_As_size_t(values[1]); if (unlikely((__pyx_v_numNodes == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 25636, __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, 25635, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphGetNodes", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_448cudaGraphGetNodes(__pyx_self, __pyx_v_graph, __pyx_v_numNodes); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_448cudaGraphGetNodes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, size_t __pyx_v_numNodes) { size_t __pyx_v__graph_length; cudaGraph_t __pyx_v_cgraph; PyObject *__pyx_v_pgraph = NULL; cudaGraphNode_t *__pyx_v_cnodes; PyObject *__pyx_v_pynodes = NULL; cudaError_t __pyx_v_err; size_t __pyx_10genexpr129__pyx_v_idx; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; size_t __pyx_t_10; size_t __pyx_t_11; size_t __pyx_t_12; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__576) __Pyx_RefNannySetupContext("cudaGraphGetNodes", 1); __Pyx_TraceCall("cudaGraphGetNodes", __pyx_f[0], 25635, 0, __PYX_ERR(0, 25635, __pyx_L1_error)); /* "cuda/cudart.pyx":25666 * :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 ccudart.cudaGraph_t cgraph * if graph is None: */ __pyx_v__graph_length = __pyx_v_numNodes; /* "cuda/cudart.pyx":25668 * cdef size_t _graph_length = numNodes * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_1 = (__pyx_v_graph == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":25669 * cdef ccudart.cudaGraph_t cgraph * if graph is None: * cgraph = 0 # <<<<<<<<<<<<<< * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) */ __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":25668 * cdef size_t _graph_length = numNodes * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":25670 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":25671 * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) # <<<<<<<<<<<<<< * cgraph = pgraph * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25671, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pgraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":25672 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) * cgraph = pgraph # <<<<<<<<<<<<<< * else: * pgraph = int(cudaGraph_t(graph)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25672, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":25670 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ goto __pyx_L3; } /* "cuda/cudart.pyx":25674 * cgraph = pgraph * else: * pgraph = int(cudaGraph_t(graph)) # <<<<<<<<<<<<<< * cgraph = pgraph * cdef ccudart.cudaGraphNode_t* cnodes = NULL */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25674, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25674, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pgraph = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":25675 * else: * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t* cnodes = NULL * pynodes = [] */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25675, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":25676 * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph * cdef ccudart.cudaGraphNode_t* cnodes = NULL # <<<<<<<<<<<<<< * pynodes = [] * if _graph_length != 0: */ __pyx_v_cnodes = NULL; /* "cuda/cudart.pyx":25677 * cgraph = pgraph * cdef ccudart.cudaGraphNode_t* cnodes = NULL * pynodes = [] # <<<<<<<<<<<<<< * if _graph_length != 0: * cnodes = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) */ __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25677, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pynodes = ((PyObject*)__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":25678 * cdef ccudart.cudaGraphNode_t* cnodes = NULL * pynodes = [] * if _graph_length != 0: # <<<<<<<<<<<<<< * cnodes = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cnodes is NULL: */ __pyx_t_1 = (__pyx_v__graph_length != 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":25679 * pynodes = [] * if _graph_length != 0: * cnodes = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) # <<<<<<<<<<<<<< * if cnodes is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) */ __pyx_v_cnodes = ((cudaGraphNode_t *)calloc(__pyx_v__graph_length, (sizeof(cudaGraphNode_t)))); /* "cuda/cudart.pyx":25680 * if _graph_length != 0: * cnodes = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cnodes is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * err = ccudart.cudaGraphGetNodes(cgraph, cnodes, &numNodes) */ __pyx_t_1 = (__pyx_v_cnodes == NULL); if (unlikely(__pyx_t_1)) { /* "cuda/cudart.pyx":25681 * cnodes = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cnodes is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) # <<<<<<<<<<<<<< * err = ccudart.cudaGraphGetNodes(cgraph, cnodes, &numNodes) * if cudaError_t(err) == cudaError_t(0): */ __pyx_t_5 = __Pyx_PyInt_FromSize_t(__pyx_v__graph_length); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25681, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25681, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25681, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_5, __pyx_n_u_x_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25681, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25681, __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, 25681, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25681, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25681, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __PYX_ERR(0, 25681, __pyx_L1_error) /* "cuda/cudart.pyx":25680 * if _graph_length != 0: * cnodes = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cnodes is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * err = ccudart.cudaGraphGetNodes(cgraph, cnodes, &numNodes) */ } /* "cuda/cudart.pyx":25678 * cdef ccudart.cudaGraphNode_t* cnodes = NULL * pynodes = [] * if _graph_length != 0: # <<<<<<<<<<<<<< * cnodes = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cnodes is NULL: */ } /* "cuda/cudart.pyx":25682 * if cnodes is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * err = ccudart.cudaGraphGetNodes(cgraph, cnodes, &numNodes) # <<<<<<<<<<<<<< * if cudaError_t(err) == cudaError_t(0): * pynodes = [cudaGraphNode_t(init_value=cnodes[idx]) for idx in range(_graph_length)] */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaGraphGetNodes(__pyx_v_cgraph, __pyx_v_cnodes, (&__pyx_v_numNodes)); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 25682, __pyx_L1_error) __pyx_v_err = __pyx_t_7; /* "cuda/cudart.pyx":25683 * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * err = ccudart.cudaGraphGetNodes(cgraph, cnodes, &numNodes) * if cudaError_t(err) == cudaError_t(0): # <<<<<<<<<<<<<< * pynodes = [cudaGraphNode_t(init_value=cnodes[idx]) for idx in range(_graph_length)] * if cnodes is not NULL: */ __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25683, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25683, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_3}; __pyx_t_6 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25683, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25683, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_int_0}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25683, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyObject_RichCompare(__pyx_t_6, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25683, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 25683, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_1) { /* "cuda/cudart.pyx":25684 * err = ccudart.cudaGraphGetNodes(cgraph, cnodes, &numNodes) * if cudaError_t(err) == cudaError_t(0): * pynodes = [cudaGraphNode_t(init_value=cnodes[idx]) for idx in range(_graph_length)] # <<<<<<<<<<<<<< * if cnodes is not NULL: * free(cnodes) */ { /* enter inner scope */ __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25684, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_10 = __pyx_v__graph_length; __pyx_t_11 = __pyx_t_10; for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_10genexpr129__pyx_v_idx = __pyx_t_12; __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25684, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_cnodes[__pyx_10genexpr129__pyx_v_idx]))); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25684, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_init_value, __pyx_t_6) < 0) __PYX_ERR(0, 25684, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25684, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 25684, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } /* exit inner scope */ __Pyx_DECREF_SET(__pyx_v_pynodes, ((PyObject*)__pyx_t_3)); __pyx_t_3 = 0; /* "cuda/cudart.pyx":25683 * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * err = ccudart.cudaGraphGetNodes(cgraph, cnodes, &numNodes) * if cudaError_t(err) == cudaError_t(0): # <<<<<<<<<<<<<< * pynodes = [cudaGraphNode_t(init_value=cnodes[idx]) for idx in range(_graph_length)] * if cnodes is not NULL: */ } /* "cuda/cudart.pyx":25685 * if cudaError_t(err) == cudaError_t(0): * pynodes = [cudaGraphNode_t(init_value=cnodes[idx]) for idx in range(_graph_length)] * if cnodes is not NULL: # <<<<<<<<<<<<<< * free(cnodes) * return (cudaError_t(err), pynodes, numNodes) */ __pyx_t_1 = (__pyx_v_cnodes != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":25686 * pynodes = [cudaGraphNode_t(init_value=cnodes[idx]) for idx in range(_graph_length)] * if cnodes is not NULL: * free(cnodes) # <<<<<<<<<<<<<< * return (cudaError_t(err), pynodes, numNodes) * */ free(__pyx_v_cnodes); /* "cuda/cudart.pyx":25685 * if cudaError_t(err) == cudaError_t(0): * pynodes = [cudaGraphNode_t(init_value=cnodes[idx]) for idx in range(_graph_length)] * if cnodes is not NULL: # <<<<<<<<<<<<<< * free(cnodes) * return (cudaError_t(err), pynodes, numNodes) */ } /* "cuda/cudart.pyx":25687 * if cnodes is not NULL: * free(cnodes) * return (cudaError_t(err), pynodes, numNodes) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25687, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25687, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_6))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_5}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_6, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25687, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __pyx_t_6 = __Pyx_PyInt_FromSize_t(__pyx_v_numNodes); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25687, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25687, __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)) __PYX_ERR(0, 25687, __pyx_L1_error); __Pyx_INCREF(__pyx_v_pynodes); __Pyx_GIVEREF(__pyx_v_pynodes); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_v_pynodes)) __PYX_ERR(0, 25687, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_6); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_6)) __PYX_ERR(0, 25687, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_6 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":25635 * return (cudaError_t(err), cudaGraphNodeType(pType)) * * @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_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":25689 * return (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_6cudart_451cudaGraphGetRootNodes(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_450cudaGraphGetRootNodes, "cudaGraphGetRootNodes(graph, size_t pNumRootNodes=0)\n Returns a graph's root nodes.\n\n Returns a list of `graph's` root nodes. `pRootNodes` may be NULL, in\n which case this function will return the number of root nodes in\n `pNumRootNodes`. Otherwise, `pNumRootNodes` entries will be filled in.\n If `pNumRootNodes` is higher than the actual number of root nodes, the\n remaining entries in `pRootNodes` will be set to NULL, and the number\n of nodes actually obtained will be returned in `pNumRootNodes`.\n\n Parameters\n ----------\n graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n Graph to query\n pNumRootNodes : int\n See description\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n pRootNodes : List[:py:obj:`~.cudaGraphNode_t`]\n Pointer to return the root nodes\n pNumRootNodes : int\n See description\n\n See Also\n --------\n :py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphGetNodes`, :py:obj:`~.cudaGraphGetEdges`, :py:obj:`~.cudaGraphNodeGetType`, :py:obj:`~.cudaGraphNodeGetDependencies`, :py:obj:`~.cudaGraphNodeGetDependentNodes`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_451cudaGraphGetRootNodes = {"cudaGraphGetRootNodes", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_451cudaGraphGetRootNodes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_450cudaGraphGetRootNodes}; static PyObject *__pyx_pw_4cuda_6cudart_451cudaGraphGetRootNodes(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_graph_2,&__pyx_n_s_pNumRootNodes,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_graph_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25689, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pNumRootNodes); if (value) { values[1] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25689, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphGetRootNodes") < 0)) __PYX_ERR(0, 25689, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_graph = values[0]; if (values[1]) { __pyx_v_pNumRootNodes = __Pyx_PyInt_As_size_t(values[1]); if (unlikely((__pyx_v_pNumRootNodes == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 25690, __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, 25689, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphGetRootNodes", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_450cudaGraphGetRootNodes(__pyx_self, __pyx_v_graph, __pyx_v_pNumRootNodes); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_450cudaGraphGetRootNodes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, size_t __pyx_v_pNumRootNodes) { size_t __pyx_v__graph_length; cudaGraph_t __pyx_v_cgraph; PyObject *__pyx_v_pgraph = NULL; cudaGraphNode_t *__pyx_v_cpRootNodes; PyObject *__pyx_v_pypRootNodes = NULL; cudaError_t __pyx_v_err; size_t __pyx_10genexpr130__pyx_v_idx; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; size_t __pyx_t_10; size_t __pyx_t_11; size_t __pyx_t_12; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__577) __Pyx_RefNannySetupContext("cudaGraphGetRootNodes", 1); __Pyx_TraceCall("cudaGraphGetRootNodes", __pyx_f[0], 25689, 0, __PYX_ERR(0, 25689, __pyx_L1_error)); /* "cuda/cudart.pyx":25720 * :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 ccudart.cudaGraph_t cgraph * if graph is None: */ __pyx_v__graph_length = __pyx_v_pNumRootNodes; /* "cuda/cudart.pyx":25722 * cdef size_t _graph_length = pNumRootNodes * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_1 = (__pyx_v_graph == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":25723 * cdef ccudart.cudaGraph_t cgraph * if graph is None: * cgraph = 0 # <<<<<<<<<<<<<< * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) */ __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":25722 * cdef size_t _graph_length = pNumRootNodes * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":25724 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":25725 * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) # <<<<<<<<<<<<<< * cgraph = pgraph * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25725, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pgraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":25726 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) * cgraph = pgraph # <<<<<<<<<<<<<< * else: * pgraph = int(cudaGraph_t(graph)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25726, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":25724 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ goto __pyx_L3; } /* "cuda/cudart.pyx":25728 * cgraph = pgraph * else: * pgraph = int(cudaGraph_t(graph)) # <<<<<<<<<<<<<< * cgraph = pgraph * cdef ccudart.cudaGraphNode_t* cpRootNodes = NULL */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25728, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25728, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pgraph = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":25729 * else: * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t* cpRootNodes = NULL * pypRootNodes = [] */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25729, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":25730 * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph * cdef ccudart.cudaGraphNode_t* cpRootNodes = NULL # <<<<<<<<<<<<<< * pypRootNodes = [] * if _graph_length != 0: */ __pyx_v_cpRootNodes = NULL; /* "cuda/cudart.pyx":25731 * cgraph = pgraph * cdef ccudart.cudaGraphNode_t* cpRootNodes = NULL * pypRootNodes = [] # <<<<<<<<<<<<<< * if _graph_length != 0: * cpRootNodes = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) */ __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25731, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pypRootNodes = ((PyObject*)__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":25732 * cdef ccudart.cudaGraphNode_t* cpRootNodes = NULL * pypRootNodes = [] * if _graph_length != 0: # <<<<<<<<<<<<<< * cpRootNodes = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cpRootNodes is NULL: */ __pyx_t_1 = (__pyx_v__graph_length != 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":25733 * pypRootNodes = [] * if _graph_length != 0: * cpRootNodes = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) # <<<<<<<<<<<<<< * if cpRootNodes is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) */ __pyx_v_cpRootNodes = ((cudaGraphNode_t *)calloc(__pyx_v__graph_length, (sizeof(cudaGraphNode_t)))); /* "cuda/cudart.pyx":25734 * if _graph_length != 0: * cpRootNodes = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cpRootNodes is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * err = ccudart.cudaGraphGetRootNodes(cgraph, cpRootNodes, &pNumRootNodes) */ __pyx_t_1 = (__pyx_v_cpRootNodes == NULL); if (unlikely(__pyx_t_1)) { /* "cuda/cudart.pyx":25735 * cpRootNodes = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cpRootNodes is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) # <<<<<<<<<<<<<< * err = ccudart.cudaGraphGetRootNodes(cgraph, cpRootNodes, &pNumRootNodes) * if cudaError_t(err) == cudaError_t(0): */ __pyx_t_5 = __Pyx_PyInt_FromSize_t(__pyx_v__graph_length); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25735, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25735, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25735, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_5, __pyx_n_u_x_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25735, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25735, __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, 25735, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25735, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25735, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __PYX_ERR(0, 25735, __pyx_L1_error) /* "cuda/cudart.pyx":25734 * if _graph_length != 0: * cpRootNodes = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cpRootNodes is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * err = ccudart.cudaGraphGetRootNodes(cgraph, cpRootNodes, &pNumRootNodes) */ } /* "cuda/cudart.pyx":25732 * cdef ccudart.cudaGraphNode_t* cpRootNodes = NULL * pypRootNodes = [] * if _graph_length != 0: # <<<<<<<<<<<<<< * cpRootNodes = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cpRootNodes is NULL: */ } /* "cuda/cudart.pyx":25736 * if cpRootNodes is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * err = ccudart.cudaGraphGetRootNodes(cgraph, cpRootNodes, &pNumRootNodes) # <<<<<<<<<<<<<< * if cudaError_t(err) == cudaError_t(0): * pypRootNodes = [cudaGraphNode_t(init_value=cpRootNodes[idx]) for idx in range(_graph_length)] */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaGraphGetRootNodes(__pyx_v_cgraph, __pyx_v_cpRootNodes, (&__pyx_v_pNumRootNodes)); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 25736, __pyx_L1_error) __pyx_v_err = __pyx_t_7; /* "cuda/cudart.pyx":25737 * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * err = ccudart.cudaGraphGetRootNodes(cgraph, cpRootNodes, &pNumRootNodes) * if cudaError_t(err) == cudaError_t(0): # <<<<<<<<<<<<<< * pypRootNodes = [cudaGraphNode_t(init_value=cpRootNodes[idx]) for idx in range(_graph_length)] * if cpRootNodes is not NULL: */ __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25737, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25737, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_3}; __pyx_t_6 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25737, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25737, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_int_0}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25737, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyObject_RichCompare(__pyx_t_6, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25737, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 25737, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_1) { /* "cuda/cudart.pyx":25738 * err = ccudart.cudaGraphGetRootNodes(cgraph, cpRootNodes, &pNumRootNodes) * if cudaError_t(err) == cudaError_t(0): * pypRootNodes = [cudaGraphNode_t(init_value=cpRootNodes[idx]) for idx in range(_graph_length)] # <<<<<<<<<<<<<< * if cpRootNodes is not NULL: * free(cpRootNodes) */ { /* enter inner scope */ __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25738, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_10 = __pyx_v__graph_length; __pyx_t_11 = __pyx_t_10; for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_10genexpr130__pyx_v_idx = __pyx_t_12; __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25738, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_cpRootNodes[__pyx_10genexpr130__pyx_v_idx]))); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25738, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_init_value, __pyx_t_6) < 0) __PYX_ERR(0, 25738, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25738, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 25738, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } /* exit inner scope */ __Pyx_DECREF_SET(__pyx_v_pypRootNodes, ((PyObject*)__pyx_t_3)); __pyx_t_3 = 0; /* "cuda/cudart.pyx":25737 * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * err = ccudart.cudaGraphGetRootNodes(cgraph, cpRootNodes, &pNumRootNodes) * if cudaError_t(err) == cudaError_t(0): # <<<<<<<<<<<<<< * pypRootNodes = [cudaGraphNode_t(init_value=cpRootNodes[idx]) for idx in range(_graph_length)] * if cpRootNodes is not NULL: */ } /* "cuda/cudart.pyx":25739 * if cudaError_t(err) == cudaError_t(0): * pypRootNodes = [cudaGraphNode_t(init_value=cpRootNodes[idx]) for idx in range(_graph_length)] * if cpRootNodes is not NULL: # <<<<<<<<<<<<<< * free(cpRootNodes) * return (cudaError_t(err), pypRootNodes, pNumRootNodes) */ __pyx_t_1 = (__pyx_v_cpRootNodes != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":25740 * pypRootNodes = [cudaGraphNode_t(init_value=cpRootNodes[idx]) for idx in range(_graph_length)] * if cpRootNodes is not NULL: * free(cpRootNodes) # <<<<<<<<<<<<<< * return (cudaError_t(err), pypRootNodes, pNumRootNodes) * */ free(__pyx_v_cpRootNodes); /* "cuda/cudart.pyx":25739 * if cudaError_t(err) == cudaError_t(0): * pypRootNodes = [cudaGraphNode_t(init_value=cpRootNodes[idx]) for idx in range(_graph_length)] * if cpRootNodes is not NULL: # <<<<<<<<<<<<<< * free(cpRootNodes) * return (cudaError_t(err), pypRootNodes, pNumRootNodes) */ } /* "cuda/cudart.pyx":25741 * if cpRootNodes is not NULL: * free(cpRootNodes) * return (cudaError_t(err), pypRootNodes, pNumRootNodes) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25741, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25741, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_6))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_5}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_6, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25741, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __pyx_t_6 = __Pyx_PyInt_FromSize_t(__pyx_v_pNumRootNodes); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25741, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25741, __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)) __PYX_ERR(0, 25741, __pyx_L1_error); __Pyx_INCREF(__pyx_v_pypRootNodes); __Pyx_GIVEREF(__pyx_v_pypRootNodes); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_v_pypRootNodes)) __PYX_ERR(0, 25741, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_6); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_6)) __PYX_ERR(0, 25741, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_6 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":25689 * return (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_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":25743 * return (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_6cudart_453cudaGraphGetEdges(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_452cudaGraphGetEdges, "cudaGraphGetEdges(graph, size_t numEdges=0)\n Returns a graph's dependency edges.\n\n Returns a list of `graph's` dependency edges. Edges are returned via\n corresponding indices in `from` and `to`; that is, the node in `to`[i]\n has a dependency on the node in `from`[i]. `from` and `to` may both be\n NULL, in which case this function only returns the number of edges in\n `numEdges`. Otherwise, `numEdges` entries will be filled in. If\n `numEdges` is higher than the actual number of edges, the remaining\n entries in `from` and `to` will be set to NULL, and the number of edges\n actually returned will be written to `numEdges`.\n\n Parameters\n ----------\n graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n Graph to get the edges from\n numEdges : int\n See description\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n from : List[:py:obj:`~.cudaGraphNode_t`]\n Location to return edge endpoints\n to : List[:py:obj:`~.cudaGraphNode_t`]\n Location to return edge endpoints\n numEdges : int\n See description\n\n See Also\n --------\n :py:obj:`~.cudaGraphGetNodes`, :py:obj:`~.cudaGraphGetRootNodes`, :py:obj:`~.cudaGraphAddDependencies`, :py:obj:`~.cudaGraphRemoveDependencies`, :py:obj:`~.cudaGraphNodeGetDependencies`, :py:obj:`~.cudaGraphNodeGetDependentNodes`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_453cudaGraphGetEdges = {"cudaGraphGetEdges", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_453cudaGraphGetEdges, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_452cudaGraphGetEdges}; static PyObject *__pyx_pw_4cuda_6cudart_453cudaGraphGetEdges(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_graph_2,&__pyx_n_s_numEdges,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_graph_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25743, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_numEdges); if (value) { values[1] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25743, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphGetEdges") < 0)) __PYX_ERR(0, 25743, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_graph = values[0]; if (values[1]) { __pyx_v_numEdges = __Pyx_PyInt_As_size_t(values[1]); if (unlikely((__pyx_v_numEdges == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 25744, __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, 25743, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphGetEdges", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_452cudaGraphGetEdges(__pyx_self, __pyx_v_graph, __pyx_v_numEdges); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_452cudaGraphGetEdges(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, size_t __pyx_v_numEdges) { size_t __pyx_v__graph_length; cudaGraph_t __pyx_v_cgraph; PyObject *__pyx_v_pgraph = NULL; cudaGraphNode_t *__pyx_v_cfrom_; PyObject *__pyx_v_pyfrom_ = NULL; cudaGraphNode_t *__pyx_v_cto; PyObject *__pyx_v_pyto = NULL; cudaError_t __pyx_v_err; size_t __pyx_10genexpr131__pyx_v_idx; size_t __pyx_10genexpr132__pyx_v_idx; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; size_t __pyx_t_10; size_t __pyx_t_11; size_t __pyx_t_12; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__578) __Pyx_RefNannySetupContext("cudaGraphGetEdges", 1); __Pyx_TraceCall("cudaGraphGetEdges", __pyx_f[0], 25743, 0, __PYX_ERR(0, 25743, __pyx_L1_error)); /* "cuda/cudart.pyx":25778 * :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 ccudart.cudaGraph_t cgraph * if graph is None: */ __pyx_v__graph_length = __pyx_v_numEdges; /* "cuda/cudart.pyx":25780 * cdef size_t _graph_length = numEdges * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_1 = (__pyx_v_graph == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":25781 * cdef ccudart.cudaGraph_t cgraph * if graph is None: * cgraph = 0 # <<<<<<<<<<<<<< * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) */ __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":25780 * cdef size_t _graph_length = numEdges * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":25782 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":25783 * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) # <<<<<<<<<<<<<< * cgraph = pgraph * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25783, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pgraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":25784 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) * cgraph = pgraph # <<<<<<<<<<<<<< * else: * pgraph = int(cudaGraph_t(graph)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25784, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":25782 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ goto __pyx_L3; } /* "cuda/cudart.pyx":25786 * cgraph = pgraph * else: * pgraph = int(cudaGraph_t(graph)) # <<<<<<<<<<<<<< * cgraph = pgraph * cdef ccudart.cudaGraphNode_t* cfrom_ = NULL */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25786, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25786, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pgraph = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":25787 * else: * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t* cfrom_ = NULL * pyfrom_ = [] */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25787, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":25788 * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph * cdef ccudart.cudaGraphNode_t* cfrom_ = NULL # <<<<<<<<<<<<<< * pyfrom_ = [] * if _graph_length != 0: */ __pyx_v_cfrom_ = NULL; /* "cuda/cudart.pyx":25789 * cgraph = pgraph * cdef ccudart.cudaGraphNode_t* cfrom_ = NULL * pyfrom_ = [] # <<<<<<<<<<<<<< * if _graph_length != 0: * cfrom_ = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) */ __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25789, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pyfrom_ = ((PyObject*)__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":25790 * cdef ccudart.cudaGraphNode_t* cfrom_ = NULL * pyfrom_ = [] * if _graph_length != 0: # <<<<<<<<<<<<<< * cfrom_ = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cfrom_ is NULL: */ __pyx_t_1 = (__pyx_v__graph_length != 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":25791 * pyfrom_ = [] * if _graph_length != 0: * cfrom_ = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) # <<<<<<<<<<<<<< * if cfrom_ is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) */ __pyx_v_cfrom_ = ((cudaGraphNode_t *)calloc(__pyx_v__graph_length, (sizeof(cudaGraphNode_t)))); /* "cuda/cudart.pyx":25792 * if _graph_length != 0: * cfrom_ = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cfrom_ is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * cdef ccudart.cudaGraphNode_t* cto = NULL */ __pyx_t_1 = (__pyx_v_cfrom_ == NULL); if (unlikely(__pyx_t_1)) { /* "cuda/cudart.pyx":25793 * cfrom_ = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cfrom_ is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t* cto = NULL * pyto = [] */ __pyx_t_5 = __Pyx_PyInt_FromSize_t(__pyx_v__graph_length); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25793, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25793, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25793, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_5, __pyx_n_u_x_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25793, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25793, __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, 25793, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25793, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25793, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __PYX_ERR(0, 25793, __pyx_L1_error) /* "cuda/cudart.pyx":25792 * if _graph_length != 0: * cfrom_ = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cfrom_ is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * cdef ccudart.cudaGraphNode_t* cto = NULL */ } /* "cuda/cudart.pyx":25790 * cdef ccudart.cudaGraphNode_t* cfrom_ = NULL * pyfrom_ = [] * if _graph_length != 0: # <<<<<<<<<<<<<< * cfrom_ = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cfrom_ is NULL: */ } /* "cuda/cudart.pyx":25794 * if cfrom_ is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * cdef ccudart.cudaGraphNode_t* cto = NULL # <<<<<<<<<<<<<< * pyto = [] * if _graph_length != 0: */ __pyx_v_cto = NULL; /* "cuda/cudart.pyx":25795 * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * cdef ccudart.cudaGraphNode_t* cto = NULL * pyto = [] # <<<<<<<<<<<<<< * if _graph_length != 0: * cto = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) */ __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25795, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_v_pyto = ((PyObject*)__pyx_t_6); __pyx_t_6 = 0; /* "cuda/cudart.pyx":25796 * cdef ccudart.cudaGraphNode_t* cto = NULL * pyto = [] * if _graph_length != 0: # <<<<<<<<<<<<<< * cto = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cto is NULL: */ __pyx_t_1 = (__pyx_v__graph_length != 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":25797 * pyto = [] * if _graph_length != 0: * cto = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) # <<<<<<<<<<<<<< * if cto is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) */ __pyx_v_cto = ((cudaGraphNode_t *)calloc(__pyx_v__graph_length, (sizeof(cudaGraphNode_t)))); /* "cuda/cudart.pyx":25798 * if _graph_length != 0: * cto = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cto is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * err = ccudart.cudaGraphGetEdges(cgraph, cfrom_, cto, &numEdges) */ __pyx_t_1 = (__pyx_v_cto == NULL); if (unlikely(__pyx_t_1)) { /* "cuda/cudart.pyx":25799 * cto = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cto is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) # <<<<<<<<<<<<<< * err = ccudart.cudaGraphGetEdges(cgraph, cfrom_, cto, &numEdges) * if cudaError_t(err) == cudaError_t(0): */ __pyx_t_6 = __Pyx_PyInt_FromSize_t(__pyx_v__graph_length); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25799, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25799, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25799, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_6, __pyx_n_u_x_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25799, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25799, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25799, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_5, __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25799, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25799, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 25799, __pyx_L1_error) /* "cuda/cudart.pyx":25798 * if _graph_length != 0: * cto = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cto is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * err = ccudart.cudaGraphGetEdges(cgraph, cfrom_, cto, &numEdges) */ } /* "cuda/cudart.pyx":25796 * cdef ccudart.cudaGraphNode_t* cto = NULL * pyto = [] * if _graph_length != 0: # <<<<<<<<<<<<<< * cto = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cto is NULL: */ } /* "cuda/cudart.pyx":25800 * if cto is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * err = ccudart.cudaGraphGetEdges(cgraph, cfrom_, cto, &numEdges) # <<<<<<<<<<<<<< * if cudaError_t(err) == cudaError_t(0): * pyfrom_ = [cudaGraphNode_t(init_value=cfrom_[idx]) for idx in range(_graph_length)] */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaGraphGetEdges(__pyx_v_cgraph, __pyx_v_cfrom_, __pyx_v_cto, (&__pyx_v_numEdges)); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 25800, __pyx_L1_error) __pyx_v_err = __pyx_t_7; /* "cuda/cudart.pyx":25801 * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * err = ccudart.cudaGraphGetEdges(cgraph, cfrom_, cto, &numEdges) * if cudaError_t(err) == cudaError_t(0): # <<<<<<<<<<<<<< * pyfrom_ = [cudaGraphNode_t(init_value=cfrom_[idx]) for idx in range(_graph_length)] * if cfrom_ is not NULL: */ __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25801, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25801, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_6))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_5}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_6, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25801, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25801, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_int_0}; __pyx_t_6 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25801, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyObject_RichCompare(__pyx_t_3, __pyx_t_6, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25801, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 25801, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_1) { /* "cuda/cudart.pyx":25802 * err = ccudart.cudaGraphGetEdges(cgraph, cfrom_, cto, &numEdges) * if cudaError_t(err) == cudaError_t(0): * pyfrom_ = [cudaGraphNode_t(init_value=cfrom_[idx]) for idx in range(_graph_length)] # <<<<<<<<<<<<<< * if cfrom_ is not NULL: * free(cfrom_) */ { /* enter inner scope */ __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25802, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_10 = __pyx_v__graph_length; __pyx_t_11 = __pyx_t_10; for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_10genexpr131__pyx_v_idx = __pyx_t_12; __pyx_t_6 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25802, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_cfrom_[__pyx_10genexpr131__pyx_v_idx]))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25802, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_init_value, __pyx_t_3) < 0) __PYX_ERR(0, 25802, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_empty_tuple, __pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25802, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__Pyx_ListComp_Append(__pyx_t_5, (PyObject*)__pyx_t_3))) __PYX_ERR(0, 25802, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } /* exit inner scope */ __Pyx_DECREF_SET(__pyx_v_pyfrom_, ((PyObject*)__pyx_t_5)); __pyx_t_5 = 0; /* "cuda/cudart.pyx":25801 * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * err = ccudart.cudaGraphGetEdges(cgraph, cfrom_, cto, &numEdges) * if cudaError_t(err) == cudaError_t(0): # <<<<<<<<<<<<<< * pyfrom_ = [cudaGraphNode_t(init_value=cfrom_[idx]) for idx in range(_graph_length)] * if cfrom_ is not NULL: */ } /* "cuda/cudart.pyx":25803 * if cudaError_t(err) == cudaError_t(0): * pyfrom_ = [cudaGraphNode_t(init_value=cfrom_[idx]) for idx in range(_graph_length)] * if cfrom_ is not NULL: # <<<<<<<<<<<<<< * free(cfrom_) * if cudaError_t(err) == cudaError_t(0): */ __pyx_t_1 = (__pyx_v_cfrom_ != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":25804 * pyfrom_ = [cudaGraphNode_t(init_value=cfrom_[idx]) for idx in range(_graph_length)] * if cfrom_ is not NULL: * free(cfrom_) # <<<<<<<<<<<<<< * if cudaError_t(err) == cudaError_t(0): * pyto = [cudaGraphNode_t(init_value=cto[idx]) for idx in range(_graph_length)] */ free(__pyx_v_cfrom_); /* "cuda/cudart.pyx":25803 * if cudaError_t(err) == cudaError_t(0): * pyfrom_ = [cudaGraphNode_t(init_value=cfrom_[idx]) for idx in range(_graph_length)] * if cfrom_ is not NULL: # <<<<<<<<<<<<<< * free(cfrom_) * if cudaError_t(err) == cudaError_t(0): */ } /* "cuda/cudart.pyx":25805 * if cfrom_ is not NULL: * free(cfrom_) * if cudaError_t(err) == cudaError_t(0): # <<<<<<<<<<<<<< * pyto = [cudaGraphNode_t(init_value=cto[idx]) for idx in range(_graph_length)] * if cto is not NULL: */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25805, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25805, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25805, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25805, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_6))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_int_0}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_6, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25805, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __pyx_t_6 = PyObject_RichCompare(__pyx_t_5, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25805, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 25805, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__pyx_t_1) { /* "cuda/cudart.pyx":25806 * free(cfrom_) * if cudaError_t(err) == cudaError_t(0): * pyto = [cudaGraphNode_t(init_value=cto[idx]) for idx in range(_graph_length)] # <<<<<<<<<<<<<< * if cto is not NULL: * free(cto) */ { /* enter inner scope */ __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25806, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_10 = __pyx_v__graph_length; __pyx_t_11 = __pyx_t_10; for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_10genexpr132__pyx_v_idx = __pyx_t_12; __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25806, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_cto[__pyx_10genexpr132__pyx_v_idx]))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25806, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_init_value, __pyx_t_5) < 0) __PYX_ERR(0, 25806, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_empty_tuple, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25806, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 25806, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } /* exit inner scope */ __Pyx_DECREF_SET(__pyx_v_pyto, ((PyObject*)__pyx_t_6)); __pyx_t_6 = 0; /* "cuda/cudart.pyx":25805 * if cfrom_ is not NULL: * free(cfrom_) * if cudaError_t(err) == cudaError_t(0): # <<<<<<<<<<<<<< * pyto = [cudaGraphNode_t(init_value=cto[idx]) for idx in range(_graph_length)] * if cto is not NULL: */ } /* "cuda/cudart.pyx":25807 * if cudaError_t(err) == cudaError_t(0): * pyto = [cudaGraphNode_t(init_value=cto[idx]) for idx in range(_graph_length)] * if cto is not NULL: # <<<<<<<<<<<<<< * free(cto) * return (cudaError_t(err), pyfrom_, pyto, numEdges) */ __pyx_t_1 = (__pyx_v_cto != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":25808 * pyto = [cudaGraphNode_t(init_value=cto[idx]) for idx in range(_graph_length)] * if cto is not NULL: * free(cto) # <<<<<<<<<<<<<< * return (cudaError_t(err), pyfrom_, pyto, numEdges) * */ free(__pyx_v_cto); /* "cuda/cudart.pyx":25807 * if cudaError_t(err) == cudaError_t(0): * pyto = [cudaGraphNode_t(init_value=cto[idx]) for idx in range(_graph_length)] * if cto is not NULL: # <<<<<<<<<<<<<< * free(cto) * return (cudaError_t(err), pyfrom_, pyto, numEdges) */ } /* "cuda/cudart.pyx":25809 * if cto is not NULL: * free(cto) * return (cudaError_t(err), pyfrom_, pyto, numEdges) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25809, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25809, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_3}; __pyx_t_6 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25809, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = __Pyx_PyInt_FromSize_t(__pyx_v_numEdges); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25809, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = PyTuple_New(4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25809, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_6); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_6)) __PYX_ERR(0, 25809, __pyx_L1_error); __Pyx_INCREF(__pyx_v_pyfrom_); __Pyx_GIVEREF(__pyx_v_pyfrom_); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_pyfrom_)) __PYX_ERR(0, 25809, __pyx_L1_error); __Pyx_INCREF(__pyx_v_pyto); __Pyx_GIVEREF(__pyx_v_pyto); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_pyto)) __PYX_ERR(0, 25809, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_5)) __PYX_ERR(0, 25809, __pyx_L1_error); __pyx_t_6 = 0; __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":25743 * return (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_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":25811 * return (cudaError_t(err), pyfrom_, pyto, numEdges) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphGetEdges_v2(graph, size_t numEdges = 0): * """ Returns a graph's dependency edges (12.3+) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_455cudaGraphGetEdges_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_6cudart_454cudaGraphGetEdges_v2, "cudaGraphGetEdges_v2(graph, size_t numEdges=0)\n Returns a graph's dependency edges (12.3+)\n\n Returns a list of `graph's` dependency edges. Edges are returned via\n corresponding indices in `from`, `to` and `edgeData`; that is, the node\n in `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\n function only returns the number of edges in `numEdges`. Otherwise,\n `numEdges` entries will be filled in. If `numEdges` is higher than the\n actual number of edges, the remaining entries in `from` and `to` will\n be set to NULL, and the number of edges actually returned will be\n written to `numEdges`. `edgeData` may alone be NULL, in which case the\n edges must all have default (zeroed) edge data. Attempting a losst\n query via NULL `edgeData` will result in\n :py:obj:`~.cudaErrorLossyQuery`. If `edgeData` is non-NULL then `from`\n and `to` must be as well.\n\n Parameters\n ----------\n graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n Graph to get the edges from\n numEdges : int\n See description\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorLossyQuery`, :py:obj:`~.cudaErrorInvalidValue`\n from : List[:py:obj:`~.cudaGraphNode_t`]\n Location to return edge endpoints\n to : List[:py:obj:`~.cudaGraphNode_t`]\n Location to return edge endpoints\n edgeData : List[:py:obj:`~.cudaGraphEdgeData`]\n Optional location to return edge data\n numEdges : int\n See description\n\n See Also\n --------\n :py:obj:`~.cudaGraphGetNodes`, :py:obj:`~.cudaGraphGetRootNodes`, :py:obj:`~.cudaGraphAddDependencies`, :py:obj:`~.cudaGraphRemoveDependencies`, :py:obj:`~.cudaGraphNodeGetDependencies`, :py:obj:`~.cudaGraphNodeGetDependentNodes`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_455cudaGraphGetEdges_v2 = {"cudaGraphGetEdges_v2", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_455cudaGraphGetEdges_v2, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_454cudaGraphGetEdges_v2}; static PyObject *__pyx_pw_4cuda_6cudart_455cudaGraphGetEdges_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; 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_v2 (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_graph_2,&__pyx_n_s_numEdges,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_graph_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25811, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_numEdges); if (value) { values[1] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25811, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphGetEdges_v2") < 0)) __PYX_ERR(0, 25811, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_graph = values[0]; if (values[1]) { __pyx_v_numEdges = __Pyx_PyInt_As_size_t(values[1]); if (unlikely((__pyx_v_numEdges == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 25812, __pyx_L3_error) } else { __pyx_v_numEdges = ((size_t)((size_t)0)); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphGetEdges_v2", 0, 1, 2, __pyx_nargs); __PYX_ERR(0, 25811, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphGetEdges_v2", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_454cudaGraphGetEdges_v2(__pyx_self, __pyx_v_graph, __pyx_v_numEdges); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_454cudaGraphGetEdges_v2(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, size_t __pyx_v_numEdges) { size_t __pyx_v__graph_length; cudaGraph_t __pyx_v_cgraph; PyObject *__pyx_v_pgraph = NULL; cudaGraphNode_t *__pyx_v_cfrom_; PyObject *__pyx_v_pyfrom_ = NULL; cudaGraphNode_t *__pyx_v_cto; PyObject *__pyx_v_pyto = NULL; cudaGraphEdgeData *__pyx_v_cedgeData; PyObject *__pyx_v_pyedgeData = NULL; cudaError_t __pyx_v_err; size_t __pyx_10genexpr133__pyx_v_idx; size_t __pyx_10genexpr134__pyx_v_idx; size_t __pyx_10genexpr135__pyx_v_idx; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; size_t __pyx_t_10; size_t __pyx_t_11; size_t __pyx_t_12; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__579) __Pyx_RefNannySetupContext("cudaGraphGetEdges_v2", 1); __Pyx_TraceCall("cudaGraphGetEdges_v2", __pyx_f[0], 25811, 0, __PYX_ERR(0, 25811, __pyx_L1_error)); /* "cuda/cudart.pyx":25853 * :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 ccudart.cudaGraph_t cgraph * if graph is None: */ __pyx_v__graph_length = __pyx_v_numEdges; /* "cuda/cudart.pyx":25855 * cdef size_t _graph_length = numEdges * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_1 = (__pyx_v_graph == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":25856 * cdef ccudart.cudaGraph_t cgraph * if graph is None: * cgraph = 0 # <<<<<<<<<<<<<< * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) */ __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":25855 * cdef size_t _graph_length = numEdges * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":25857 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":25858 * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) # <<<<<<<<<<<<<< * cgraph = pgraph * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25858, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pgraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":25859 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) * cgraph = pgraph # <<<<<<<<<<<<<< * else: * pgraph = int(cudaGraph_t(graph)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25859, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":25857 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ goto __pyx_L3; } /* "cuda/cudart.pyx":25861 * cgraph = pgraph * else: * pgraph = int(cudaGraph_t(graph)) # <<<<<<<<<<<<<< * cgraph = pgraph * cdef ccudart.cudaGraphNode_t* cfrom_ = NULL */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25861, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25861, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pgraph = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":25862 * else: * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t* cfrom_ = NULL * pyfrom_ = [] */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25862, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":25863 * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph * cdef ccudart.cudaGraphNode_t* cfrom_ = NULL # <<<<<<<<<<<<<< * pyfrom_ = [] * if _graph_length != 0: */ __pyx_v_cfrom_ = NULL; /* "cuda/cudart.pyx":25864 * cgraph = pgraph * cdef ccudart.cudaGraphNode_t* cfrom_ = NULL * pyfrom_ = [] # <<<<<<<<<<<<<< * if _graph_length != 0: * cfrom_ = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) */ __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25864, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pyfrom_ = ((PyObject*)__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":25865 * cdef ccudart.cudaGraphNode_t* cfrom_ = NULL * pyfrom_ = [] * if _graph_length != 0: # <<<<<<<<<<<<<< * cfrom_ = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cfrom_ is NULL: */ __pyx_t_1 = (__pyx_v__graph_length != 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":25866 * pyfrom_ = [] * if _graph_length != 0: * cfrom_ = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) # <<<<<<<<<<<<<< * if cfrom_ is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) */ __pyx_v_cfrom_ = ((cudaGraphNode_t *)calloc(__pyx_v__graph_length, (sizeof(cudaGraphNode_t)))); /* "cuda/cudart.pyx":25867 * if _graph_length != 0: * cfrom_ = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cfrom_ is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * cdef ccudart.cudaGraphNode_t* cto = NULL */ __pyx_t_1 = (__pyx_v_cfrom_ == NULL); if (unlikely(__pyx_t_1)) { /* "cuda/cudart.pyx":25868 * cfrom_ = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cfrom_ is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t* cto = NULL * pyto = [] */ __pyx_t_5 = __Pyx_PyInt_FromSize_t(__pyx_v__graph_length); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25868, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25868, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25868, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_5, __pyx_n_u_x_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25868, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25868, __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, 25868, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25868, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25868, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __PYX_ERR(0, 25868, __pyx_L1_error) /* "cuda/cudart.pyx":25867 * if _graph_length != 0: * cfrom_ = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cfrom_ is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * cdef ccudart.cudaGraphNode_t* cto = NULL */ } /* "cuda/cudart.pyx":25865 * cdef ccudart.cudaGraphNode_t* cfrom_ = NULL * pyfrom_ = [] * if _graph_length != 0: # <<<<<<<<<<<<<< * cfrom_ = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cfrom_ is NULL: */ } /* "cuda/cudart.pyx":25869 * if cfrom_ is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * cdef ccudart.cudaGraphNode_t* cto = NULL # <<<<<<<<<<<<<< * pyto = [] * if _graph_length != 0: */ __pyx_v_cto = NULL; /* "cuda/cudart.pyx":25870 * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * cdef ccudart.cudaGraphNode_t* cto = NULL * pyto = [] # <<<<<<<<<<<<<< * if _graph_length != 0: * cto = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) */ __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25870, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_v_pyto = ((PyObject*)__pyx_t_6); __pyx_t_6 = 0; /* "cuda/cudart.pyx":25871 * cdef ccudart.cudaGraphNode_t* cto = NULL * pyto = [] * if _graph_length != 0: # <<<<<<<<<<<<<< * cto = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cto is NULL: */ __pyx_t_1 = (__pyx_v__graph_length != 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":25872 * pyto = [] * if _graph_length != 0: * cto = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) # <<<<<<<<<<<<<< * if cto is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) */ __pyx_v_cto = ((cudaGraphNode_t *)calloc(__pyx_v__graph_length, (sizeof(cudaGraphNode_t)))); /* "cuda/cudart.pyx":25873 * if _graph_length != 0: * cto = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cto is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * cdef ccudart.cudaGraphEdgeData* cedgeData = NULL */ __pyx_t_1 = (__pyx_v_cto == NULL); if (unlikely(__pyx_t_1)) { /* "cuda/cudart.pyx":25874 * cto = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cto is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphEdgeData* cedgeData = NULL * pyedgeData = [] */ __pyx_t_6 = __Pyx_PyInt_FromSize_t(__pyx_v__graph_length); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25874, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25874, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25874, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_6, __pyx_n_u_x_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25874, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25874, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25874, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_5, __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25874, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25874, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 25874, __pyx_L1_error) /* "cuda/cudart.pyx":25873 * if _graph_length != 0: * cto = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cto is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * cdef ccudart.cudaGraphEdgeData* cedgeData = NULL */ } /* "cuda/cudart.pyx":25871 * cdef ccudart.cudaGraphNode_t* cto = NULL * pyto = [] * if _graph_length != 0: # <<<<<<<<<<<<<< * cto = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cto is NULL: */ } /* "cuda/cudart.pyx":25875 * if cto is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * cdef ccudart.cudaGraphEdgeData* cedgeData = NULL # <<<<<<<<<<<<<< * pyedgeData = [] * if _graph_length != 0: */ __pyx_v_cedgeData = NULL; /* "cuda/cudart.pyx":25876 * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * cdef ccudart.cudaGraphEdgeData* cedgeData = NULL * pyedgeData = [] # <<<<<<<<<<<<<< * if _graph_length != 0: * cedgeData = calloc(_graph_length, sizeof(ccudart.cudaGraphEdgeData)) */ __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25876, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pyedgeData = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":25877 * cdef ccudart.cudaGraphEdgeData* cedgeData = NULL * pyedgeData = [] * if _graph_length != 0: # <<<<<<<<<<<<<< * cedgeData = calloc(_graph_length, sizeof(ccudart.cudaGraphEdgeData)) * if cedgeData is NULL: */ __pyx_t_1 = (__pyx_v__graph_length != 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":25878 * pyedgeData = [] * if _graph_length != 0: * cedgeData = calloc(_graph_length, sizeof(ccudart.cudaGraphEdgeData)) # <<<<<<<<<<<<<< * if cedgeData is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) */ __pyx_v_cedgeData = ((cudaGraphEdgeData *)calloc(__pyx_v__graph_length, (sizeof(cudaGraphEdgeData)))); /* "cuda/cudart.pyx":25879 * if _graph_length != 0: * cedgeData = calloc(_graph_length, sizeof(ccudart.cudaGraphEdgeData)) * if cedgeData is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) * err = ccudart.cudaGraphGetEdges_v2(cgraph, cfrom_, cto, cedgeData, &numEdges) */ __pyx_t_1 = (__pyx_v_cedgeData == NULL); if (unlikely(__pyx_t_1)) { /* "cuda/cudart.pyx":25880 * cedgeData = calloc(_graph_length, sizeof(ccudart.cudaGraphEdgeData)) * if cedgeData is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) # <<<<<<<<<<<<<< * err = ccudart.cudaGraphGetEdges_v2(cgraph, cfrom_, cto, cedgeData, &numEdges) * if cudaError_t(err) == cudaError_t(0): */ __pyx_t_3 = __Pyx_PyInt_FromSize_t(__pyx_v__graph_length); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25880, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25880, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25880, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_n_u_x_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25880, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphEdgeData))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25880, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25880, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_6, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25880, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25880, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __PYX_ERR(0, 25880, __pyx_L1_error) /* "cuda/cudart.pyx":25879 * if _graph_length != 0: * cedgeData = calloc(_graph_length, sizeof(ccudart.cudaGraphEdgeData)) * if cedgeData is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) * err = ccudart.cudaGraphGetEdges_v2(cgraph, cfrom_, cto, cedgeData, &numEdges) */ } /* "cuda/cudart.pyx":25877 * cdef ccudart.cudaGraphEdgeData* cedgeData = NULL * pyedgeData = [] * if _graph_length != 0: # <<<<<<<<<<<<<< * cedgeData = calloc(_graph_length, sizeof(ccudart.cudaGraphEdgeData)) * if cedgeData is NULL: */ } /* "cuda/cudart.pyx":25881 * if cedgeData is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) * err = ccudart.cudaGraphGetEdges_v2(cgraph, cfrom_, cto, cedgeData, &numEdges) # <<<<<<<<<<<<<< * if cudaError_t(err) == cudaError_t(0): * pyfrom_ = [cudaGraphNode_t(init_value=cfrom_[idx]) for idx in range(_graph_length)] */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaGraphGetEdges_v2(__pyx_v_cgraph, __pyx_v_cfrom_, __pyx_v_cto, __pyx_v_cedgeData, (&__pyx_v_numEdges)); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 25881, __pyx_L1_error) __pyx_v_err = __pyx_t_7; /* "cuda/cudart.pyx":25882 * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) * err = ccudart.cudaGraphGetEdges_v2(cgraph, cfrom_, cto, cedgeData, &numEdges) * if cudaError_t(err) == cudaError_t(0): # <<<<<<<<<<<<<< * pyfrom_ = [cudaGraphNode_t(init_value=cfrom_[idx]) for idx in range(_graph_length)] * if cfrom_ is not NULL: */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25882, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25882, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25882, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25882, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_6))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_int_0}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_6, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25882, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __pyx_t_6 = PyObject_RichCompare(__pyx_t_5, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25882, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 25882, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__pyx_t_1) { /* "cuda/cudart.pyx":25883 * err = ccudart.cudaGraphGetEdges_v2(cgraph, cfrom_, cto, cedgeData, &numEdges) * if cudaError_t(err) == cudaError_t(0): * pyfrom_ = [cudaGraphNode_t(init_value=cfrom_[idx]) for idx in range(_graph_length)] # <<<<<<<<<<<<<< * if cfrom_ is not NULL: * free(cfrom_) */ { /* enter inner scope */ __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25883, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_10 = __pyx_v__graph_length; __pyx_t_11 = __pyx_t_10; for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_10genexpr133__pyx_v_idx = __pyx_t_12; __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25883, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_cfrom_[__pyx_10genexpr133__pyx_v_idx]))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25883, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_init_value, __pyx_t_5) < 0) __PYX_ERR(0, 25883, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_empty_tuple, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25883, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 25883, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } /* exit inner scope */ __Pyx_DECREF_SET(__pyx_v_pyfrom_, ((PyObject*)__pyx_t_6)); __pyx_t_6 = 0; /* "cuda/cudart.pyx":25882 * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) * err = ccudart.cudaGraphGetEdges_v2(cgraph, cfrom_, cto, cedgeData, &numEdges) * if cudaError_t(err) == cudaError_t(0): # <<<<<<<<<<<<<< * pyfrom_ = [cudaGraphNode_t(init_value=cfrom_[idx]) for idx in range(_graph_length)] * if cfrom_ is not NULL: */ } /* "cuda/cudart.pyx":25884 * if cudaError_t(err) == cudaError_t(0): * pyfrom_ = [cudaGraphNode_t(init_value=cfrom_[idx]) for idx in range(_graph_length)] * if cfrom_ is not NULL: # <<<<<<<<<<<<<< * free(cfrom_) * if cudaError_t(err) == cudaError_t(0): */ __pyx_t_1 = (__pyx_v_cfrom_ != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":25885 * pyfrom_ = [cudaGraphNode_t(init_value=cfrom_[idx]) for idx in range(_graph_length)] * if cfrom_ is not NULL: * free(cfrom_) # <<<<<<<<<<<<<< * if cudaError_t(err) == cudaError_t(0): * pyto = [cudaGraphNode_t(init_value=cto[idx]) for idx in range(_graph_length)] */ free(__pyx_v_cfrom_); /* "cuda/cudart.pyx":25884 * if cudaError_t(err) == cudaError_t(0): * pyfrom_ = [cudaGraphNode_t(init_value=cfrom_[idx]) for idx in range(_graph_length)] * if cfrom_ is not NULL: # <<<<<<<<<<<<<< * free(cfrom_) * if cudaError_t(err) == cudaError_t(0): */ } /* "cuda/cudart.pyx":25886 * if cfrom_ is not NULL: * free(cfrom_) * if cudaError_t(err) == cudaError_t(0): # <<<<<<<<<<<<<< * pyto = [cudaGraphNode_t(init_value=cto[idx]) for idx in range(_graph_length)] * if cto is not NULL: */ __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25886, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25886, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_3}; __pyx_t_6 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25886, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25886, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_int_0}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25886, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyObject_RichCompare(__pyx_t_6, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25886, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 25886, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_1) { /* "cuda/cudart.pyx":25887 * free(cfrom_) * if cudaError_t(err) == cudaError_t(0): * pyto = [cudaGraphNode_t(init_value=cto[idx]) for idx in range(_graph_length)] # <<<<<<<<<<<<<< * if cto is not NULL: * free(cto) */ { /* enter inner scope */ __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25887, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_10 = __pyx_v__graph_length; __pyx_t_11 = __pyx_t_10; for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_10genexpr134__pyx_v_idx = __pyx_t_12; __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25887, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_cto[__pyx_10genexpr134__pyx_v_idx]))); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25887, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_init_value, __pyx_t_6) < 0) __PYX_ERR(0, 25887, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25887, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 25887, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } /* exit inner scope */ __Pyx_DECREF_SET(__pyx_v_pyto, ((PyObject*)__pyx_t_3)); __pyx_t_3 = 0; /* "cuda/cudart.pyx":25886 * if cfrom_ is not NULL: * free(cfrom_) * if cudaError_t(err) == cudaError_t(0): # <<<<<<<<<<<<<< * pyto = [cudaGraphNode_t(init_value=cto[idx]) for idx in range(_graph_length)] * if cto is not NULL: */ } /* "cuda/cudart.pyx":25888 * if cudaError_t(err) == cudaError_t(0): * pyto = [cudaGraphNode_t(init_value=cto[idx]) for idx in range(_graph_length)] * if cto is not NULL: # <<<<<<<<<<<<<< * free(cto) * if cudaError_t(err) == cudaError_t(0): */ __pyx_t_1 = (__pyx_v_cto != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":25889 * pyto = [cudaGraphNode_t(init_value=cto[idx]) for idx in range(_graph_length)] * if cto is not NULL: * free(cto) # <<<<<<<<<<<<<< * if cudaError_t(err) == cudaError_t(0): * pyedgeData = [cudaGraphEdgeData(_ptr=&cedgeData[idx]) for idx in range(_graph_length)] */ free(__pyx_v_cto); /* "cuda/cudart.pyx":25888 * if cudaError_t(err) == cudaError_t(0): * pyto = [cudaGraphNode_t(init_value=cto[idx]) for idx in range(_graph_length)] * if cto is not NULL: # <<<<<<<<<<<<<< * free(cto) * if cudaError_t(err) == cudaError_t(0): */ } /* "cuda/cudart.pyx":25890 * if cto is not NULL: * free(cto) * if cudaError_t(err) == cudaError_t(0): # <<<<<<<<<<<<<< * pyedgeData = [cudaGraphEdgeData(_ptr=&cedgeData[idx]) for idx in range(_graph_length)] * if cedgeData is not NULL: */ __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25890, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25890, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_6))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_5}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_6, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25890, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25890, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_int_0}; __pyx_t_6 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25890, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyObject_RichCompare(__pyx_t_3, __pyx_t_6, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25890, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 25890, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_1) { /* "cuda/cudart.pyx":25891 * free(cto) * if cudaError_t(err) == cudaError_t(0): * pyedgeData = [cudaGraphEdgeData(_ptr=&cedgeData[idx]) for idx in range(_graph_length)] # <<<<<<<<<<<<<< * if cedgeData is not NULL: * free(cedgeData) */ { /* enter inner scope */ __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25891, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_10 = __pyx_v__graph_length; __pyx_t_11 = __pyx_t_10; for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_10genexpr135__pyx_v_idx = __pyx_t_12; __pyx_t_6 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25891, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_cedgeData[__pyx_10genexpr135__pyx_v_idx])))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25891, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_ptr, __pyx_t_3) < 0) __PYX_ERR(0, 25891, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphEdgeData), __pyx_empty_tuple, __pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25891, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__Pyx_ListComp_Append(__pyx_t_5, (PyObject*)__pyx_t_3))) __PYX_ERR(0, 25891, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } /* exit inner scope */ __Pyx_DECREF_SET(__pyx_v_pyedgeData, ((PyObject*)__pyx_t_5)); __pyx_t_5 = 0; /* "cuda/cudart.pyx":25890 * if cto is not NULL: * free(cto) * if cudaError_t(err) == cudaError_t(0): # <<<<<<<<<<<<<< * pyedgeData = [cudaGraphEdgeData(_ptr=&cedgeData[idx]) for idx in range(_graph_length)] * if cedgeData is not NULL: */ } /* "cuda/cudart.pyx":25892 * if cudaError_t(err) == cudaError_t(0): * pyedgeData = [cudaGraphEdgeData(_ptr=&cedgeData[idx]) for idx in range(_graph_length)] * if cedgeData is not NULL: # <<<<<<<<<<<<<< * free(cedgeData) * return (cudaError_t(err), pyfrom_, pyto, pyedgeData, numEdges) */ __pyx_t_1 = (__pyx_v_cedgeData != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":25893 * pyedgeData = [cudaGraphEdgeData(_ptr=&cedgeData[idx]) for idx in range(_graph_length)] * if cedgeData is not NULL: * free(cedgeData) # <<<<<<<<<<<<<< * return (cudaError_t(err), pyfrom_, pyto, pyedgeData, numEdges) * */ free(__pyx_v_cedgeData); /* "cuda/cudart.pyx":25892 * if cudaError_t(err) == cudaError_t(0): * pyedgeData = [cudaGraphEdgeData(_ptr=&cedgeData[idx]) for idx in range(_graph_length)] * if cedgeData is not NULL: # <<<<<<<<<<<<<< * free(cedgeData) * return (cudaError_t(err), pyfrom_, pyto, pyedgeData, numEdges) */ } /* "cuda/cudart.pyx":25894 * if cedgeData is not NULL: * free(cedgeData) * return (cudaError_t(err), pyfrom_, pyto, pyedgeData, numEdges) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25894, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25894, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25894, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = __Pyx_PyInt_FromSize_t(__pyx_v_numEdges); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25894, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = PyTuple_New(5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25894, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_5)) __PYX_ERR(0, 25894, __pyx_L1_error); __Pyx_INCREF(__pyx_v_pyfrom_); __Pyx_GIVEREF(__pyx_v_pyfrom_); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_v_pyfrom_)) __PYX_ERR(0, 25894, __pyx_L1_error); __Pyx_INCREF(__pyx_v_pyto); __Pyx_GIVEREF(__pyx_v_pyto); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_pyto)) __PYX_ERR(0, 25894, __pyx_L1_error); __Pyx_INCREF(__pyx_v_pyedgeData); __Pyx_GIVEREF(__pyx_v_pyedgeData); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_v_pyedgeData)) __PYX_ERR(0, 25894, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_t_3)) __PYX_ERR(0, 25894, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_3 = 0; __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":25811 * return (cudaError_t(err), pyfrom_, pyto, numEdges) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphGetEdges_v2(graph, size_t numEdges = 0): * """ Returns a graph's dependency edges (12.3+) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaGraphGetEdges_v2", __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":25896 * return (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_6cudart_457cudaGraphNodeGetDependencies(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_456cudaGraphNodeGetDependencies, "cudaGraphNodeGetDependencies(node, size_t pNumDependencies=0)\n Returns a node's dependencies.\n\n Returns a list of `node's` dependencies. `pDependencies` may be NULL,\n in which case this function will return the number of dependencies in\n `pNumDependencies`. Otherwise, `pNumDependencies` entries will be\n filled in. If `pNumDependencies` is higher than the actual number of\n dependencies, the remaining entries in `pDependencies` will be set to\n NULL, and the number of nodes actually obtained will be returned in\n `pNumDependencies`.\n\n Parameters\n ----------\n node : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Node to query\n pNumDependencies : int\n See description\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n pDependencies : List[:py:obj:`~.cudaGraphNode_t`]\n Pointer to return the dependencies\n pNumDependencies : int\n See description\n\n See Also\n --------\n :py:obj:`~.cudaGraphNodeGetDependentNodes`, :py:obj:`~.cudaGraphGetNodes`, :py:obj:`~.cudaGraphGetRootNodes`, :py:obj:`~.cudaGraphGetEdges`, :py:obj:`~.cudaGraphAddDependencies`, :py:obj:`~.cudaGraphRemoveDependencies`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_457cudaGraphNodeGetDependencies = {"cudaGraphNodeGetDependencies", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_457cudaGraphNodeGetDependencies, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_456cudaGraphNodeGetDependencies}; static PyObject *__pyx_pw_4cuda_6cudart_457cudaGraphNodeGetDependencies(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_node_2,&__pyx_n_s_pNumDependencies,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_node_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25896, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pNumDependencies); if (value) { values[1] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25896, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphNodeGetDependencies") < 0)) __PYX_ERR(0, 25896, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_node = values[0]; if (values[1]) { __pyx_v_pNumDependencies = __Pyx_PyInt_As_size_t(values[1]); if (unlikely((__pyx_v_pNumDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 25897, __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, 25896, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeGetDependencies", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_456cudaGraphNodeGetDependencies(__pyx_self, __pyx_v_node, __pyx_v_pNumDependencies); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_456cudaGraphNodeGetDependencies(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node, size_t __pyx_v_pNumDependencies) { size_t __pyx_v__graph_length; cudaGraphNode_t __pyx_v_cnode; PyObject *__pyx_v_pnode = NULL; cudaGraphNode_t *__pyx_v_cpDependencies; PyObject *__pyx_v_pypDependencies = NULL; cudaError_t __pyx_v_err; size_t __pyx_10genexpr136__pyx_v_idx; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; size_t __pyx_t_10; size_t __pyx_t_11; size_t __pyx_t_12; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__580) __Pyx_RefNannySetupContext("cudaGraphNodeGetDependencies", 1); __Pyx_TraceCall("cudaGraphNodeGetDependencies", __pyx_f[0], 25896, 0, __PYX_ERR(0, 25896, __pyx_L1_error)); /* "cuda/cudart.pyx":25928 * :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 ccudart.cudaGraphNode_t cnode * if node is None: */ __pyx_v__graph_length = __pyx_v_pNumDependencies; /* "cuda/cudart.pyx":25930 * cdef size_t _graph_length = pNumDependencies * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_node == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":25931 * cdef ccudart.cudaGraphNode_t cnode * if node is None: * cnode = 0 # <<<<<<<<<<<<<< * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) */ __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":25930 * cdef size_t _graph_length = pNumDependencies * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":25932 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":25933 * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) # <<<<<<<<<<<<<< * cnode = pnode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25933, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pnode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":25934 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) * cnode = pnode # <<<<<<<<<<<<<< * else: * pnode = int(cudaGraphNode_t(node)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25934, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":25932 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ goto __pyx_L3; } /* "cuda/cudart.pyx":25936 * cnode = pnode * else: * pnode = int(cudaGraphNode_t(node)) # <<<<<<<<<<<<<< * cnode = pnode * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25936, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25936, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pnode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":25937 * else: * pnode = int(cudaGraphNode_t(node)) * cnode = pnode # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * pypDependencies = [] */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25937, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":25938 * pnode = int(cudaGraphNode_t(node)) * cnode = pnode * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL # <<<<<<<<<<<<<< * pypDependencies = [] * if _graph_length != 0: */ __pyx_v_cpDependencies = NULL; /* "cuda/cudart.pyx":25939 * cnode = pnode * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * pypDependencies = [] # <<<<<<<<<<<<<< * if _graph_length != 0: * cpDependencies = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) */ __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25939, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pypDependencies = ((PyObject*)__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":25940 * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * pypDependencies = [] * if _graph_length != 0: # <<<<<<<<<<<<<< * cpDependencies = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: */ __pyx_t_1 = (__pyx_v__graph_length != 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":25941 * pypDependencies = [] * if _graph_length != 0: * cpDependencies = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) # <<<<<<<<<<<<<< * if cpDependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) */ __pyx_v_cpDependencies = ((cudaGraphNode_t *)calloc(__pyx_v__graph_length, (sizeof(cudaGraphNode_t)))); /* "cuda/cudart.pyx":25942 * if _graph_length != 0: * cpDependencies = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * err = ccudart.cudaGraphNodeGetDependencies(cnode, cpDependencies, &pNumDependencies) */ __pyx_t_1 = (__pyx_v_cpDependencies == NULL); if (unlikely(__pyx_t_1)) { /* "cuda/cudart.pyx":25943 * cpDependencies = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) # <<<<<<<<<<<<<< * err = ccudart.cudaGraphNodeGetDependencies(cnode, cpDependencies, &pNumDependencies) * if cudaError_t(err) == cudaError_t(0): */ __pyx_t_5 = __Pyx_PyInt_FromSize_t(__pyx_v__graph_length); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25943, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25943, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25943, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_5, __pyx_n_u_x_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25943, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25943, __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, 25943, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25943, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25943, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __PYX_ERR(0, 25943, __pyx_L1_error) /* "cuda/cudart.pyx":25942 * if _graph_length != 0: * cpDependencies = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * err = ccudart.cudaGraphNodeGetDependencies(cnode, cpDependencies, &pNumDependencies) */ } /* "cuda/cudart.pyx":25940 * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * pypDependencies = [] * if _graph_length != 0: # <<<<<<<<<<<<<< * cpDependencies = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: */ } /* "cuda/cudart.pyx":25944 * if cpDependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * err = ccudart.cudaGraphNodeGetDependencies(cnode, cpDependencies, &pNumDependencies) # <<<<<<<<<<<<<< * if cudaError_t(err) == cudaError_t(0): * pypDependencies = [cudaGraphNode_t(init_value=cpDependencies[idx]) for idx in range(_graph_length)] */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaGraphNodeGetDependencies(__pyx_v_cnode, __pyx_v_cpDependencies, (&__pyx_v_pNumDependencies)); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 25944, __pyx_L1_error) __pyx_v_err = __pyx_t_7; /* "cuda/cudart.pyx":25945 * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * err = ccudart.cudaGraphNodeGetDependencies(cnode, cpDependencies, &pNumDependencies) * if cudaError_t(err) == cudaError_t(0): # <<<<<<<<<<<<<< * pypDependencies = [cudaGraphNode_t(init_value=cpDependencies[idx]) for idx in range(_graph_length)] * if cpDependencies is not NULL: */ __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25945, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25945, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_3}; __pyx_t_6 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25945, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25945, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_int_0}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25945, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyObject_RichCompare(__pyx_t_6, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25945, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 25945, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_1) { /* "cuda/cudart.pyx":25946 * err = ccudart.cudaGraphNodeGetDependencies(cnode, cpDependencies, &pNumDependencies) * if cudaError_t(err) == cudaError_t(0): * pypDependencies = [cudaGraphNode_t(init_value=cpDependencies[idx]) for idx in range(_graph_length)] # <<<<<<<<<<<<<< * if cpDependencies is not NULL: * free(cpDependencies) */ { /* enter inner scope */ __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25946, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_10 = __pyx_v__graph_length; __pyx_t_11 = __pyx_t_10; for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_10genexpr136__pyx_v_idx = __pyx_t_12; __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25946, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_cpDependencies[__pyx_10genexpr136__pyx_v_idx]))); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25946, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_init_value, __pyx_t_6) < 0) __PYX_ERR(0, 25946, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25946, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 25946, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } /* exit inner scope */ __Pyx_DECREF_SET(__pyx_v_pypDependencies, ((PyObject*)__pyx_t_3)); __pyx_t_3 = 0; /* "cuda/cudart.pyx":25945 * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * err = ccudart.cudaGraphNodeGetDependencies(cnode, cpDependencies, &pNumDependencies) * if cudaError_t(err) == cudaError_t(0): # <<<<<<<<<<<<<< * pypDependencies = [cudaGraphNode_t(init_value=cpDependencies[idx]) for idx in range(_graph_length)] * if cpDependencies is not NULL: */ } /* "cuda/cudart.pyx":25947 * if cudaError_t(err) == cudaError_t(0): * pypDependencies = [cudaGraphNode_t(init_value=cpDependencies[idx]) for idx in range(_graph_length)] * if cpDependencies is not NULL: # <<<<<<<<<<<<<< * free(cpDependencies) * return (cudaError_t(err), pypDependencies, pNumDependencies) */ __pyx_t_1 = (__pyx_v_cpDependencies != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":25948 * pypDependencies = [cudaGraphNode_t(init_value=cpDependencies[idx]) for idx in range(_graph_length)] * if cpDependencies is not NULL: * free(cpDependencies) # <<<<<<<<<<<<<< * return (cudaError_t(err), pypDependencies, pNumDependencies) * */ free(__pyx_v_cpDependencies); /* "cuda/cudart.pyx":25947 * if cudaError_t(err) == cudaError_t(0): * pypDependencies = [cudaGraphNode_t(init_value=cpDependencies[idx]) for idx in range(_graph_length)] * if cpDependencies is not NULL: # <<<<<<<<<<<<<< * free(cpDependencies) * return (cudaError_t(err), pypDependencies, pNumDependencies) */ } /* "cuda/cudart.pyx":25949 * if cpDependencies is not NULL: * free(cpDependencies) * return (cudaError_t(err), pypDependencies, pNumDependencies) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25949, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25949, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_6))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_5}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_6, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25949, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __pyx_t_6 = __Pyx_PyInt_FromSize_t(__pyx_v_pNumDependencies); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 25949, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25949, __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)) __PYX_ERR(0, 25949, __pyx_L1_error); __Pyx_INCREF(__pyx_v_pypDependencies); __Pyx_GIVEREF(__pyx_v_pypDependencies); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_v_pypDependencies)) __PYX_ERR(0, 25949, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_6); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_6)) __PYX_ERR(0, 25949, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_6 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":25896 * return (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_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeGetDependencies", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pnode); __Pyx_XDECREF(__pyx_v_pypDependencies); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":25951 * return (cudaError_t(err), pypDependencies, pNumDependencies) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphNodeGetDependencies_v2(node, size_t pNumDependencies = 0): * """ Returns a node's dependencies (12.3+) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_459cudaGraphNodeGetDependencies_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_6cudart_458cudaGraphNodeGetDependencies_v2, "cudaGraphNodeGetDependencies_v2(node, size_t pNumDependencies=0)\n Returns a node's dependencies (12.3+)\n\n Returns a list of `node's` dependencies. `pDependencies` may be NULL,\n in which case this function will return the number of dependencies in\n `pNumDependencies`. Otherwise, `pNumDependencies` entries will be\n filled in. If `pNumDependencies` is higher than the actual number of\n dependencies, the remaining entries in `pDependencies` will be set to\n NULL, and the number of nodes actually obtained will be returned in\n `pNumDependencies`.\n\n Note 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\n Parameters\n ----------\n node : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Node to query\n pNumDependencies : int\n See description\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorLossyQuery`, :py:obj:`~.cudaErrorInvalidValue`\n pDependencies : List[:py:obj:`~.cudaGraphNode_t`]\n Pointer to return the dependencies\n edgeData : List[:py:obj:`~.cudaGraphEdgeData`]\n Optional array to return edge data for each dependency\n pNumDependencies : int\n See description\n\n See Also\n --------\n :py:obj:`~.cudaGraphNodeGetDependentNodes`, :py:obj:`~.cudaGraphGetNodes`, :py:obj:`~.cudaGraphGetRootNodes`, :py:obj:`~.cudaGraphGetEdges`, :py:obj:`~.cudaGraphAddDependencies`, :py:obj:`~.cudaGraphRemoveDependencies`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_459cudaGraphNodeGetDependencies_v2 = {"cudaGraphNodeGetDependencies_v2", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_459cudaGraphNodeGetDependencies_v2, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_458cudaGraphNodeGetDependencies_v2}; static PyObject *__pyx_pw_4cuda_6cudart_459cudaGraphNodeGetDependencies_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_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_v2 (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_node_2,&__pyx_n_s_pNumDependencies,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_node_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25951, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pNumDependencies); if (value) { values[1] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25951, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphNodeGetDependencies_v2") < 0)) __PYX_ERR(0, 25951, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_node = values[0]; if (values[1]) { __pyx_v_pNumDependencies = __Pyx_PyInt_As_size_t(values[1]); if (unlikely((__pyx_v_pNumDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 25952, __pyx_L3_error) } else { __pyx_v_pNumDependencies = ((size_t)((size_t)0)); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphNodeGetDependencies_v2", 0, 1, 2, __pyx_nargs); __PYX_ERR(0, 25951, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeGetDependencies_v2", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_458cudaGraphNodeGetDependencies_v2(__pyx_self, __pyx_v_node, __pyx_v_pNumDependencies); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_458cudaGraphNodeGetDependencies_v2(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node, size_t __pyx_v_pNumDependencies) { size_t __pyx_v__graph_length; cudaGraphNode_t __pyx_v_cnode; PyObject *__pyx_v_pnode = NULL; cudaGraphNode_t *__pyx_v_cpDependencies; PyObject *__pyx_v_pypDependencies = NULL; cudaGraphEdgeData *__pyx_v_cedgeData; PyObject *__pyx_v_pyedgeData = NULL; cudaError_t __pyx_v_err; size_t __pyx_10genexpr137__pyx_v_idx; size_t __pyx_10genexpr138__pyx_v_idx; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; size_t __pyx_t_10; size_t __pyx_t_11; size_t __pyx_t_12; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__581) __Pyx_RefNannySetupContext("cudaGraphNodeGetDependencies_v2", 1); __Pyx_TraceCall("cudaGraphNodeGetDependencies_v2", __pyx_f[0], 25951, 0, __PYX_ERR(0, 25951, __pyx_L1_error)); /* "cuda/cudart.pyx":25990 * :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 ccudart.cudaGraphNode_t cnode * if node is None: */ __pyx_v__graph_length = __pyx_v_pNumDependencies; /* "cuda/cudart.pyx":25992 * cdef size_t _graph_length = pNumDependencies * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_node == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":25993 * cdef ccudart.cudaGraphNode_t cnode * if node is None: * cnode = 0 # <<<<<<<<<<<<<< * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) */ __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":25992 * cdef size_t _graph_length = pNumDependencies * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":25994 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":25995 * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) # <<<<<<<<<<<<<< * cnode = pnode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25995, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pnode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":25996 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) * cnode = pnode # <<<<<<<<<<<<<< * else: * pnode = int(cudaGraphNode_t(node)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25996, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":25994 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ goto __pyx_L3; } /* "cuda/cudart.pyx":25998 * cnode = pnode * else: * pnode = int(cudaGraphNode_t(node)) # <<<<<<<<<<<<<< * cnode = pnode * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25998, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25998, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pnode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":25999 * else: * pnode = int(cudaGraphNode_t(node)) * cnode = pnode # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * pypDependencies = [] */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25999, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":26000 * pnode = int(cudaGraphNode_t(node)) * cnode = pnode * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL # <<<<<<<<<<<<<< * pypDependencies = [] * if _graph_length != 0: */ __pyx_v_cpDependencies = NULL; /* "cuda/cudart.pyx":26001 * cnode = pnode * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * pypDependencies = [] # <<<<<<<<<<<<<< * if _graph_length != 0: * cpDependencies = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) */ __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26001, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pypDependencies = ((PyObject*)__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":26002 * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * pypDependencies = [] * if _graph_length != 0: # <<<<<<<<<<<<<< * cpDependencies = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: */ __pyx_t_1 = (__pyx_v__graph_length != 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":26003 * pypDependencies = [] * if _graph_length != 0: * cpDependencies = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) # <<<<<<<<<<<<<< * if cpDependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) */ __pyx_v_cpDependencies = ((cudaGraphNode_t *)calloc(__pyx_v__graph_length, (sizeof(cudaGraphNode_t)))); /* "cuda/cudart.pyx":26004 * if _graph_length != 0: * cpDependencies = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * cdef ccudart.cudaGraphEdgeData* cedgeData = NULL */ __pyx_t_1 = (__pyx_v_cpDependencies == NULL); if (unlikely(__pyx_t_1)) { /* "cuda/cudart.pyx":26005 * cpDependencies = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphEdgeData* cedgeData = NULL * pyedgeData = [] */ __pyx_t_5 = __Pyx_PyInt_FromSize_t(__pyx_v__graph_length); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26005, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26005, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26005, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_5, __pyx_n_u_x_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26005, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26005, __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, 26005, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26005, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26005, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __PYX_ERR(0, 26005, __pyx_L1_error) /* "cuda/cudart.pyx":26004 * if _graph_length != 0: * cpDependencies = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * cdef ccudart.cudaGraphEdgeData* cedgeData = NULL */ } /* "cuda/cudart.pyx":26002 * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * pypDependencies = [] * if _graph_length != 0: # <<<<<<<<<<<<<< * cpDependencies = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: */ } /* "cuda/cudart.pyx":26006 * if cpDependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * cdef ccudart.cudaGraphEdgeData* cedgeData = NULL # <<<<<<<<<<<<<< * pyedgeData = [] * if _graph_length != 0: */ __pyx_v_cedgeData = NULL; /* "cuda/cudart.pyx":26007 * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * cdef ccudart.cudaGraphEdgeData* cedgeData = NULL * pyedgeData = [] # <<<<<<<<<<<<<< * if _graph_length != 0: * cedgeData = calloc(_graph_length, sizeof(ccudart.cudaGraphEdgeData)) */ __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26007, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_v_pyedgeData = ((PyObject*)__pyx_t_6); __pyx_t_6 = 0; /* "cuda/cudart.pyx":26008 * cdef ccudart.cudaGraphEdgeData* cedgeData = NULL * pyedgeData = [] * if _graph_length != 0: # <<<<<<<<<<<<<< * cedgeData = calloc(_graph_length, sizeof(ccudart.cudaGraphEdgeData)) * if cedgeData is NULL: */ __pyx_t_1 = (__pyx_v__graph_length != 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":26009 * pyedgeData = [] * if _graph_length != 0: * cedgeData = calloc(_graph_length, sizeof(ccudart.cudaGraphEdgeData)) # <<<<<<<<<<<<<< * if cedgeData is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) */ __pyx_v_cedgeData = ((cudaGraphEdgeData *)calloc(__pyx_v__graph_length, (sizeof(cudaGraphEdgeData)))); /* "cuda/cudart.pyx":26010 * if _graph_length != 0: * cedgeData = calloc(_graph_length, sizeof(ccudart.cudaGraphEdgeData)) * if cedgeData is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) * err = ccudart.cudaGraphNodeGetDependencies_v2(cnode, cpDependencies, cedgeData, &pNumDependencies) */ __pyx_t_1 = (__pyx_v_cedgeData == NULL); if (unlikely(__pyx_t_1)) { /* "cuda/cudart.pyx":26011 * cedgeData = calloc(_graph_length, sizeof(ccudart.cudaGraphEdgeData)) * if cedgeData is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) # <<<<<<<<<<<<<< * err = ccudart.cudaGraphNodeGetDependencies_v2(cnode, cpDependencies, cedgeData, &pNumDependencies) * if cudaError_t(err) == cudaError_t(0): */ __pyx_t_6 = __Pyx_PyInt_FromSize_t(__pyx_v__graph_length); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26011, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26011, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26011, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_6, __pyx_n_u_x_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26011, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphEdgeData))); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26011, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26011, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_5, __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26011, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26011, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 26011, __pyx_L1_error) /* "cuda/cudart.pyx":26010 * if _graph_length != 0: * cedgeData = calloc(_graph_length, sizeof(ccudart.cudaGraphEdgeData)) * if cedgeData is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) * err = ccudart.cudaGraphNodeGetDependencies_v2(cnode, cpDependencies, cedgeData, &pNumDependencies) */ } /* "cuda/cudart.pyx":26008 * cdef ccudart.cudaGraphEdgeData* cedgeData = NULL * pyedgeData = [] * if _graph_length != 0: # <<<<<<<<<<<<<< * cedgeData = calloc(_graph_length, sizeof(ccudart.cudaGraphEdgeData)) * if cedgeData is NULL: */ } /* "cuda/cudart.pyx":26012 * if cedgeData is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) * err = ccudart.cudaGraphNodeGetDependencies_v2(cnode, cpDependencies, cedgeData, &pNumDependencies) # <<<<<<<<<<<<<< * if cudaError_t(err) == cudaError_t(0): * pypDependencies = [cudaGraphNode_t(init_value=cpDependencies[idx]) for idx in range(_graph_length)] */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaGraphNodeGetDependencies_v2(__pyx_v_cnode, __pyx_v_cpDependencies, __pyx_v_cedgeData, (&__pyx_v_pNumDependencies)); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 26012, __pyx_L1_error) __pyx_v_err = __pyx_t_7; /* "cuda/cudart.pyx":26013 * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) * err = ccudart.cudaGraphNodeGetDependencies_v2(cnode, cpDependencies, cedgeData, &pNumDependencies) * if cudaError_t(err) == cudaError_t(0): # <<<<<<<<<<<<<< * pypDependencies = [cudaGraphNode_t(init_value=cpDependencies[idx]) for idx in range(_graph_length)] * if cpDependencies is not NULL: */ __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26013, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26013, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_6))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_5}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_6, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26013, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26013, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_int_0}; __pyx_t_6 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26013, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyObject_RichCompare(__pyx_t_3, __pyx_t_6, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26013, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 26013, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_1) { /* "cuda/cudart.pyx":26014 * err = ccudart.cudaGraphNodeGetDependencies_v2(cnode, cpDependencies, cedgeData, &pNumDependencies) * if cudaError_t(err) == cudaError_t(0): * pypDependencies = [cudaGraphNode_t(init_value=cpDependencies[idx]) for idx in range(_graph_length)] # <<<<<<<<<<<<<< * if cpDependencies is not NULL: * free(cpDependencies) */ { /* enter inner scope */ __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26014, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_10 = __pyx_v__graph_length; __pyx_t_11 = __pyx_t_10; for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_10genexpr137__pyx_v_idx = __pyx_t_12; __pyx_t_6 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26014, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_cpDependencies[__pyx_10genexpr137__pyx_v_idx]))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26014, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_init_value, __pyx_t_3) < 0) __PYX_ERR(0, 26014, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_empty_tuple, __pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26014, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__Pyx_ListComp_Append(__pyx_t_5, (PyObject*)__pyx_t_3))) __PYX_ERR(0, 26014, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } /* exit inner scope */ __Pyx_DECREF_SET(__pyx_v_pypDependencies, ((PyObject*)__pyx_t_5)); __pyx_t_5 = 0; /* "cuda/cudart.pyx":26013 * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) * err = ccudart.cudaGraphNodeGetDependencies_v2(cnode, cpDependencies, cedgeData, &pNumDependencies) * if cudaError_t(err) == cudaError_t(0): # <<<<<<<<<<<<<< * pypDependencies = [cudaGraphNode_t(init_value=cpDependencies[idx]) for idx in range(_graph_length)] * if cpDependencies is not NULL: */ } /* "cuda/cudart.pyx":26015 * if cudaError_t(err) == cudaError_t(0): * pypDependencies = [cudaGraphNode_t(init_value=cpDependencies[idx]) for idx in range(_graph_length)] * if cpDependencies is not NULL: # <<<<<<<<<<<<<< * free(cpDependencies) * if cudaError_t(err) == cudaError_t(0): */ __pyx_t_1 = (__pyx_v_cpDependencies != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":26016 * pypDependencies = [cudaGraphNode_t(init_value=cpDependencies[idx]) for idx in range(_graph_length)] * if cpDependencies is not NULL: * free(cpDependencies) # <<<<<<<<<<<<<< * if cudaError_t(err) == cudaError_t(0): * pyedgeData = [cudaGraphEdgeData(_ptr=&cedgeData[idx]) for idx in range(_graph_length)] */ free(__pyx_v_cpDependencies); /* "cuda/cudart.pyx":26015 * if cudaError_t(err) == cudaError_t(0): * pypDependencies = [cudaGraphNode_t(init_value=cpDependencies[idx]) for idx in range(_graph_length)] * if cpDependencies is not NULL: # <<<<<<<<<<<<<< * free(cpDependencies) * if cudaError_t(err) == cudaError_t(0): */ } /* "cuda/cudart.pyx":26017 * if cpDependencies is not NULL: * free(cpDependencies) * if cudaError_t(err) == cudaError_t(0): # <<<<<<<<<<<<<< * pyedgeData = [cudaGraphEdgeData(_ptr=&cedgeData[idx]) for idx in range(_graph_length)] * if cedgeData is not NULL: */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26017, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26017, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26017, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26017, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_6))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_int_0}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_6, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26017, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __pyx_t_6 = PyObject_RichCompare(__pyx_t_5, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26017, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 26017, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__pyx_t_1) { /* "cuda/cudart.pyx":26018 * free(cpDependencies) * if cudaError_t(err) == cudaError_t(0): * pyedgeData = [cudaGraphEdgeData(_ptr=&cedgeData[idx]) for idx in range(_graph_length)] # <<<<<<<<<<<<<< * if cedgeData is not NULL: * free(cedgeData) */ { /* enter inner scope */ __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26018, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_10 = __pyx_v__graph_length; __pyx_t_11 = __pyx_t_10; for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_10genexpr138__pyx_v_idx = __pyx_t_12; __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26018, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_cedgeData[__pyx_10genexpr138__pyx_v_idx])))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26018, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_ptr, __pyx_t_5) < 0) __PYX_ERR(0, 26018, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphEdgeData), __pyx_empty_tuple, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26018, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 26018, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } /* exit inner scope */ __Pyx_DECREF_SET(__pyx_v_pyedgeData, ((PyObject*)__pyx_t_6)); __pyx_t_6 = 0; /* "cuda/cudart.pyx":26017 * if cpDependencies is not NULL: * free(cpDependencies) * if cudaError_t(err) == cudaError_t(0): # <<<<<<<<<<<<<< * pyedgeData = [cudaGraphEdgeData(_ptr=&cedgeData[idx]) for idx in range(_graph_length)] * if cedgeData is not NULL: */ } /* "cuda/cudart.pyx":26019 * if cudaError_t(err) == cudaError_t(0): * pyedgeData = [cudaGraphEdgeData(_ptr=&cedgeData[idx]) for idx in range(_graph_length)] * if cedgeData is not NULL: # <<<<<<<<<<<<<< * free(cedgeData) * return (cudaError_t(err), pypDependencies, pyedgeData, pNumDependencies) */ __pyx_t_1 = (__pyx_v_cedgeData != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":26020 * pyedgeData = [cudaGraphEdgeData(_ptr=&cedgeData[idx]) for idx in range(_graph_length)] * if cedgeData is not NULL: * free(cedgeData) # <<<<<<<<<<<<<< * return (cudaError_t(err), pypDependencies, pyedgeData, pNumDependencies) * */ free(__pyx_v_cedgeData); /* "cuda/cudart.pyx":26019 * if cudaError_t(err) == cudaError_t(0): * pyedgeData = [cudaGraphEdgeData(_ptr=&cedgeData[idx]) for idx in range(_graph_length)] * if cedgeData is not NULL: # <<<<<<<<<<<<<< * free(cedgeData) * return (cudaError_t(err), pypDependencies, pyedgeData, pNumDependencies) */ } /* "cuda/cudart.pyx":26021 * if cedgeData is not NULL: * free(cedgeData) * return (cudaError_t(err), pypDependencies, pyedgeData, pNumDependencies) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26021, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26021, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_3}; __pyx_t_6 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26021, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = __Pyx_PyInt_FromSize_t(__pyx_v_pNumDependencies); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26021, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = PyTuple_New(4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26021, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_6); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_6)) __PYX_ERR(0, 26021, __pyx_L1_error); __Pyx_INCREF(__pyx_v_pypDependencies); __Pyx_GIVEREF(__pyx_v_pypDependencies); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_pypDependencies)) __PYX_ERR(0, 26021, __pyx_L1_error); __Pyx_INCREF(__pyx_v_pyedgeData); __Pyx_GIVEREF(__pyx_v_pyedgeData); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_pyedgeData)) __PYX_ERR(0, 26021, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_5)) __PYX_ERR(0, 26021, __pyx_L1_error); __pyx_t_6 = 0; __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":25951 * return (cudaError_t(err), pypDependencies, pNumDependencies) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphNodeGetDependencies_v2(node, size_t pNumDependencies = 0): * """ Returns a node's dependencies (12.3+) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeGetDependencies_v2", __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":26023 * return (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_6cudart_461cudaGraphNodeGetDependentNodes(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_460cudaGraphNodeGetDependentNodes, "cudaGraphNodeGetDependentNodes(node, size_t pNumDependentNodes=0)\n Returns a node's dependent nodes.\n\n Returns a list of `node's` dependent nodes. `pDependentNodes` may be\n NULL, in which case this function will return the number of dependent\n nodes in `pNumDependentNodes`. Otherwise, `pNumDependentNodes` entries\n will be filled in. If `pNumDependentNodes` is higher than the actual\n number of dependent nodes, the remaining entries in `pDependentNodes`\n will be set to NULL, and the number of nodes actually obtained will be\n returned in `pNumDependentNodes`.\n\n Parameters\n ----------\n node : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Node to query\n pNumDependentNodes : int\n See description\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n pDependentNodes : List[:py:obj:`~.cudaGraphNode_t`]\n Pointer to return the dependent nodes\n pNumDependentNodes : int\n See description\n\n See Also\n --------\n :py:obj:`~.cudaGraphNodeGetDependencies`, :py:obj:`~.cudaGraphGetNodes`, :py:obj:`~.cudaGraphGetRootNodes`, :py:obj:`~.cudaGraphGetEdges`, :py:obj:`~.cudaGraphAddDependencies`, :py:obj:`~.cudaGraphRemoveDependencies`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_461cudaGraphNodeGetDependentNodes = {"cudaGraphNodeGetDependentNodes", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_461cudaGraphNodeGetDependentNodes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_460cudaGraphNodeGetDependentNodes}; static PyObject *__pyx_pw_4cuda_6cudart_461cudaGraphNodeGetDependentNodes(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_node_2,&__pyx_n_s_pNumDependentNodes,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_node_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26023, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pNumDependentNodes); if (value) { values[1] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26023, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphNodeGetDependentNodes") < 0)) __PYX_ERR(0, 26023, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_node = values[0]; if (values[1]) { __pyx_v_pNumDependentNodes = __Pyx_PyInt_As_size_t(values[1]); if (unlikely((__pyx_v_pNumDependentNodes == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 26024, __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, 26023, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeGetDependentNodes", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_460cudaGraphNodeGetDependentNodes(__pyx_self, __pyx_v_node, __pyx_v_pNumDependentNodes); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_460cudaGraphNodeGetDependentNodes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node, size_t __pyx_v_pNumDependentNodes) { size_t __pyx_v__graph_length; cudaGraphNode_t __pyx_v_cnode; PyObject *__pyx_v_pnode = NULL; cudaGraphNode_t *__pyx_v_cpDependentNodes; PyObject *__pyx_v_pypDependentNodes = NULL; cudaError_t __pyx_v_err; size_t __pyx_10genexpr139__pyx_v_idx; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; size_t __pyx_t_10; size_t __pyx_t_11; size_t __pyx_t_12; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__582) __Pyx_RefNannySetupContext("cudaGraphNodeGetDependentNodes", 1); __Pyx_TraceCall("cudaGraphNodeGetDependentNodes", __pyx_f[0], 26023, 0, __PYX_ERR(0, 26023, __pyx_L1_error)); /* "cuda/cudart.pyx":26055 * :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 ccudart.cudaGraphNode_t cnode * if node is None: */ __pyx_v__graph_length = __pyx_v_pNumDependentNodes; /* "cuda/cudart.pyx":26057 * cdef size_t _graph_length = pNumDependentNodes * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_node == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":26058 * cdef ccudart.cudaGraphNode_t cnode * if node is None: * cnode = 0 # <<<<<<<<<<<<<< * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) */ __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":26057 * cdef size_t _graph_length = pNumDependentNodes * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":26059 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":26060 * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) # <<<<<<<<<<<<<< * cnode = pnode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26060, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pnode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":26061 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) * cnode = pnode # <<<<<<<<<<<<<< * else: * pnode = int(cudaGraphNode_t(node)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26061, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":26059 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ goto __pyx_L3; } /* "cuda/cudart.pyx":26063 * cnode = pnode * else: * pnode = int(cudaGraphNode_t(node)) # <<<<<<<<<<<<<< * cnode = pnode * cdef ccudart.cudaGraphNode_t* cpDependentNodes = NULL */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26063, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26063, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pnode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":26064 * else: * pnode = int(cudaGraphNode_t(node)) * cnode = pnode # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t* cpDependentNodes = NULL * pypDependentNodes = [] */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26064, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":26065 * pnode = int(cudaGraphNode_t(node)) * cnode = pnode * cdef ccudart.cudaGraphNode_t* cpDependentNodes = NULL # <<<<<<<<<<<<<< * pypDependentNodes = [] * if _graph_length != 0: */ __pyx_v_cpDependentNodes = NULL; /* "cuda/cudart.pyx":26066 * cnode = pnode * cdef ccudart.cudaGraphNode_t* cpDependentNodes = NULL * pypDependentNodes = [] # <<<<<<<<<<<<<< * if _graph_length != 0: * cpDependentNodes = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) */ __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26066, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pypDependentNodes = ((PyObject*)__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":26067 * cdef ccudart.cudaGraphNode_t* cpDependentNodes = NULL * pypDependentNodes = [] * if _graph_length != 0: # <<<<<<<<<<<<<< * cpDependentNodes = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cpDependentNodes is NULL: */ __pyx_t_1 = (__pyx_v__graph_length != 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":26068 * pypDependentNodes = [] * if _graph_length != 0: * cpDependentNodes = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) # <<<<<<<<<<<<<< * if cpDependentNodes is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) */ __pyx_v_cpDependentNodes = ((cudaGraphNode_t *)calloc(__pyx_v__graph_length, (sizeof(cudaGraphNode_t)))); /* "cuda/cudart.pyx":26069 * if _graph_length != 0: * cpDependentNodes = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cpDependentNodes is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * err = ccudart.cudaGraphNodeGetDependentNodes(cnode, cpDependentNodes, &pNumDependentNodes) */ __pyx_t_1 = (__pyx_v_cpDependentNodes == NULL); if (unlikely(__pyx_t_1)) { /* "cuda/cudart.pyx":26070 * cpDependentNodes = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cpDependentNodes is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) # <<<<<<<<<<<<<< * err = ccudart.cudaGraphNodeGetDependentNodes(cnode, cpDependentNodes, &pNumDependentNodes) * if cudaError_t(err) == cudaError_t(0): */ __pyx_t_5 = __Pyx_PyInt_FromSize_t(__pyx_v__graph_length); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26070, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26070, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26070, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_5, __pyx_n_u_x_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26070, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26070, __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, 26070, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26070, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26070, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __PYX_ERR(0, 26070, __pyx_L1_error) /* "cuda/cudart.pyx":26069 * if _graph_length != 0: * cpDependentNodes = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cpDependentNodes is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * err = ccudart.cudaGraphNodeGetDependentNodes(cnode, cpDependentNodes, &pNumDependentNodes) */ } /* "cuda/cudart.pyx":26067 * cdef ccudart.cudaGraphNode_t* cpDependentNodes = NULL * pypDependentNodes = [] * if _graph_length != 0: # <<<<<<<<<<<<<< * cpDependentNodes = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cpDependentNodes is NULL: */ } /* "cuda/cudart.pyx":26071 * if cpDependentNodes is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * err = ccudart.cudaGraphNodeGetDependentNodes(cnode, cpDependentNodes, &pNumDependentNodes) # <<<<<<<<<<<<<< * if cudaError_t(err) == cudaError_t(0): * pypDependentNodes = [cudaGraphNode_t(init_value=cpDependentNodes[idx]) for idx in range(_graph_length)] */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaGraphNodeGetDependentNodes(__pyx_v_cnode, __pyx_v_cpDependentNodes, (&__pyx_v_pNumDependentNodes)); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 26071, __pyx_L1_error) __pyx_v_err = __pyx_t_7; /* "cuda/cudart.pyx":26072 * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * err = ccudart.cudaGraphNodeGetDependentNodes(cnode, cpDependentNodes, &pNumDependentNodes) * if cudaError_t(err) == cudaError_t(0): # <<<<<<<<<<<<<< * pypDependentNodes = [cudaGraphNode_t(init_value=cpDependentNodes[idx]) for idx in range(_graph_length)] * if cpDependentNodes is not NULL: */ __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26072, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26072, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_3}; __pyx_t_6 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26072, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26072, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_int_0}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26072, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyObject_RichCompare(__pyx_t_6, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26072, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 26072, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_1) { /* "cuda/cudart.pyx":26073 * err = ccudart.cudaGraphNodeGetDependentNodes(cnode, cpDependentNodes, &pNumDependentNodes) * if cudaError_t(err) == cudaError_t(0): * pypDependentNodes = [cudaGraphNode_t(init_value=cpDependentNodes[idx]) for idx in range(_graph_length)] # <<<<<<<<<<<<<< * if cpDependentNodes is not NULL: * free(cpDependentNodes) */ { /* enter inner scope */ __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26073, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_10 = __pyx_v__graph_length; __pyx_t_11 = __pyx_t_10; for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_10genexpr139__pyx_v_idx = __pyx_t_12; __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26073, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_cpDependentNodes[__pyx_10genexpr139__pyx_v_idx]))); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26073, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_init_value, __pyx_t_6) < 0) __PYX_ERR(0, 26073, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26073, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 26073, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } } /* exit inner scope */ __Pyx_DECREF_SET(__pyx_v_pypDependentNodes, ((PyObject*)__pyx_t_3)); __pyx_t_3 = 0; /* "cuda/cudart.pyx":26072 * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * err = ccudart.cudaGraphNodeGetDependentNodes(cnode, cpDependentNodes, &pNumDependentNodes) * if cudaError_t(err) == cudaError_t(0): # <<<<<<<<<<<<<< * pypDependentNodes = [cudaGraphNode_t(init_value=cpDependentNodes[idx]) for idx in range(_graph_length)] * if cpDependentNodes is not NULL: */ } /* "cuda/cudart.pyx":26074 * if cudaError_t(err) == cudaError_t(0): * pypDependentNodes = [cudaGraphNode_t(init_value=cpDependentNodes[idx]) for idx in range(_graph_length)] * if cpDependentNodes is not NULL: # <<<<<<<<<<<<<< * free(cpDependentNodes) * return (cudaError_t(err), pypDependentNodes, pNumDependentNodes) */ __pyx_t_1 = (__pyx_v_cpDependentNodes != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":26075 * pypDependentNodes = [cudaGraphNode_t(init_value=cpDependentNodes[idx]) for idx in range(_graph_length)] * if cpDependentNodes is not NULL: * free(cpDependentNodes) # <<<<<<<<<<<<<< * return (cudaError_t(err), pypDependentNodes, pNumDependentNodes) * */ free(__pyx_v_cpDependentNodes); /* "cuda/cudart.pyx":26074 * if cudaError_t(err) == cudaError_t(0): * pypDependentNodes = [cudaGraphNode_t(init_value=cpDependentNodes[idx]) for idx in range(_graph_length)] * if cpDependentNodes is not NULL: # <<<<<<<<<<<<<< * free(cpDependentNodes) * return (cudaError_t(err), pypDependentNodes, pNumDependentNodes) */ } /* "cuda/cudart.pyx":26076 * if cpDependentNodes is not NULL: * free(cpDependentNodes) * return (cudaError_t(err), pypDependentNodes, pNumDependentNodes) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26076, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26076, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_6))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_5}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_6, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26076, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __pyx_t_6 = __Pyx_PyInt_FromSize_t(__pyx_v_pNumDependentNodes); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26076, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26076, __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)) __PYX_ERR(0, 26076, __pyx_L1_error); __Pyx_INCREF(__pyx_v_pypDependentNodes); __Pyx_GIVEREF(__pyx_v_pypDependentNodes); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_v_pypDependentNodes)) __PYX_ERR(0, 26076, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_6); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_6)) __PYX_ERR(0, 26076, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_6 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":26023 * return (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_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeGetDependentNodes", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pnode); __Pyx_XDECREF(__pyx_v_pypDependentNodes); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":26078 * return (cudaError_t(err), pypDependentNodes, pNumDependentNodes) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphNodeGetDependentNodes_v2(node, size_t pNumDependentNodes = 0): * """ Returns a node's dependent nodes (12.3+) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_463cudaGraphNodeGetDependentNodes_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_6cudart_462cudaGraphNodeGetDependentNodes_v2, "cudaGraphNodeGetDependentNodes_v2(node, size_t pNumDependentNodes=0)\n Returns a node's dependent nodes (12.3+)\n\n Returns a list of `node's` dependent nodes. `pDependentNodes` may be\n NULL, in which case this function will return the number of dependent\n nodes in `pNumDependentNodes`. Otherwise, `pNumDependentNodes` entries\n will be filled in. If `pNumDependentNodes` is higher than the actual\n number of dependent nodes, the remaining entries in `pDependentNodes`\n will be set to NULL, and the number of nodes actually obtained will be\n returned in `pNumDependentNodes`.\n\n Note 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\n Parameters\n ----------\n node : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Node to query\n pNumDependentNodes : int\n See description\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorLossyQuery`, :py:obj:`~.cudaErrorInvalidValue`\n pDependentNodes : List[:py:obj:`~.cudaGraphNode_t`]\n Pointer to return the dependent nodes\n edgeData : List[:py:obj:`~.cudaGraphEdgeData`]\n Optional pointer to return edge data for dependent nodes\n pNumDependentNodes : int\n See description\n\n See Also\n --------\n :py:obj:`~.cudaGraphNodeGetDependencies`, :py:obj:`~.cudaGraphGetNodes`, :py:obj:`~.cudaGraphGetRootNodes`, :py:obj:`~.cudaGraphGetEdges`, :py:obj:`~.cudaGraphAddDependencies`, :py:obj:`~.cudaGraphRemoveDependencies`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_463cudaGraphNodeGetDependentNodes_v2 = {"cudaGraphNodeGetDependentNodes_v2", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_463cudaGraphNodeGetDependentNodes_v2, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_462cudaGraphNodeGetDependentNodes_v2}; static PyObject *__pyx_pw_4cuda_6cudart_463cudaGraphNodeGetDependentNodes_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_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_v2 (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_node_2,&__pyx_n_s_pNumDependentNodes,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_node_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26078, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pNumDependentNodes); if (value) { values[1] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26078, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphNodeGetDependentNodes_v2") < 0)) __PYX_ERR(0, 26078, __pyx_L3_error) } } else { switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_node = values[0]; if (values[1]) { __pyx_v_pNumDependentNodes = __Pyx_PyInt_As_size_t(values[1]); if (unlikely((__pyx_v_pNumDependentNodes == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 26079, __pyx_L3_error) } else { __pyx_v_pNumDependentNodes = ((size_t)((size_t)0)); } } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphNodeGetDependentNodes_v2", 0, 1, 2, __pyx_nargs); __PYX_ERR(0, 26078, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeGetDependentNodes_v2", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_462cudaGraphNodeGetDependentNodes_v2(__pyx_self, __pyx_v_node, __pyx_v_pNumDependentNodes); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_462cudaGraphNodeGetDependentNodes_v2(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node, size_t __pyx_v_pNumDependentNodes) { size_t __pyx_v__graph_length; cudaGraphNode_t __pyx_v_cnode; PyObject *__pyx_v_pnode = NULL; cudaGraphNode_t *__pyx_v_cpDependentNodes; PyObject *__pyx_v_pypDependentNodes = NULL; cudaGraphEdgeData *__pyx_v_cedgeData; PyObject *__pyx_v_pyedgeData = NULL; cudaError_t __pyx_v_err; size_t __pyx_10genexpr140__pyx_v_idx; size_t __pyx_10genexpr141__pyx_v_idx; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; size_t __pyx_t_10; size_t __pyx_t_11; size_t __pyx_t_12; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__583) __Pyx_RefNannySetupContext("cudaGraphNodeGetDependentNodes_v2", 1); __Pyx_TraceCall("cudaGraphNodeGetDependentNodes_v2", __pyx_f[0], 26078, 0, __PYX_ERR(0, 26078, __pyx_L1_error)); /* "cuda/cudart.pyx":26117 * :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 ccudart.cudaGraphNode_t cnode * if node is None: */ __pyx_v__graph_length = __pyx_v_pNumDependentNodes; /* "cuda/cudart.pyx":26119 * cdef size_t _graph_length = pNumDependentNodes * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_node == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":26120 * cdef ccudart.cudaGraphNode_t cnode * if node is None: * cnode = 0 # <<<<<<<<<<<<<< * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) */ __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":26119 * cdef size_t _graph_length = pNumDependentNodes * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":26121 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":26122 * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) # <<<<<<<<<<<<<< * cnode = pnode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26122, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pnode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":26123 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) * cnode = pnode # <<<<<<<<<<<<<< * else: * pnode = int(cudaGraphNode_t(node)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26123, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":26121 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ goto __pyx_L3; } /* "cuda/cudart.pyx":26125 * cnode = pnode * else: * pnode = int(cudaGraphNode_t(node)) # <<<<<<<<<<<<<< * cnode = pnode * cdef ccudart.cudaGraphNode_t* cpDependentNodes = NULL */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26125, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26125, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pnode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":26126 * else: * pnode = int(cudaGraphNode_t(node)) * cnode = pnode # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t* cpDependentNodes = NULL * pypDependentNodes = [] */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26126, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":26127 * pnode = int(cudaGraphNode_t(node)) * cnode = pnode * cdef ccudart.cudaGraphNode_t* cpDependentNodes = NULL # <<<<<<<<<<<<<< * pypDependentNodes = [] * if _graph_length != 0: */ __pyx_v_cpDependentNodes = NULL; /* "cuda/cudart.pyx":26128 * cnode = pnode * cdef ccudart.cudaGraphNode_t* cpDependentNodes = NULL * pypDependentNodes = [] # <<<<<<<<<<<<<< * if _graph_length != 0: * cpDependentNodes = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) */ __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26128, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pypDependentNodes = ((PyObject*)__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":26129 * cdef ccudart.cudaGraphNode_t* cpDependentNodes = NULL * pypDependentNodes = [] * if _graph_length != 0: # <<<<<<<<<<<<<< * cpDependentNodes = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cpDependentNodes is NULL: */ __pyx_t_1 = (__pyx_v__graph_length != 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":26130 * pypDependentNodes = [] * if _graph_length != 0: * cpDependentNodes = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) # <<<<<<<<<<<<<< * if cpDependentNodes is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) */ __pyx_v_cpDependentNodes = ((cudaGraphNode_t *)calloc(__pyx_v__graph_length, (sizeof(cudaGraphNode_t)))); /* "cuda/cudart.pyx":26131 * if _graph_length != 0: * cpDependentNodes = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cpDependentNodes is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * cdef ccudart.cudaGraphEdgeData* cedgeData = NULL */ __pyx_t_1 = (__pyx_v_cpDependentNodes == NULL); if (unlikely(__pyx_t_1)) { /* "cuda/cudart.pyx":26132 * cpDependentNodes = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cpDependentNodes is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphEdgeData* cedgeData = NULL * pyedgeData = [] */ __pyx_t_5 = __Pyx_PyInt_FromSize_t(__pyx_v__graph_length); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26132, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26132, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26132, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_5, __pyx_n_u_x_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26132, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26132, __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, 26132, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26132, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26132, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_6, 0, 0, 0); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __PYX_ERR(0, 26132, __pyx_L1_error) /* "cuda/cudart.pyx":26131 * if _graph_length != 0: * cpDependentNodes = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cpDependentNodes is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * cdef ccudart.cudaGraphEdgeData* cedgeData = NULL */ } /* "cuda/cudart.pyx":26129 * cdef ccudart.cudaGraphNode_t* cpDependentNodes = NULL * pypDependentNodes = [] * if _graph_length != 0: # <<<<<<<<<<<<<< * cpDependentNodes = calloc(_graph_length, sizeof(ccudart.cudaGraphNode_t)) * if cpDependentNodes is NULL: */ } /* "cuda/cudart.pyx":26133 * if cpDependentNodes is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * cdef ccudart.cudaGraphEdgeData* cedgeData = NULL # <<<<<<<<<<<<<< * pyedgeData = [] * if _graph_length != 0: */ __pyx_v_cedgeData = NULL; /* "cuda/cudart.pyx":26134 * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * cdef ccudart.cudaGraphEdgeData* cedgeData = NULL * pyedgeData = [] # <<<<<<<<<<<<<< * if _graph_length != 0: * cedgeData = calloc(_graph_length, sizeof(ccudart.cudaGraphEdgeData)) */ __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26134, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_v_pyedgeData = ((PyObject*)__pyx_t_6); __pyx_t_6 = 0; /* "cuda/cudart.pyx":26135 * cdef ccudart.cudaGraphEdgeData* cedgeData = NULL * pyedgeData = [] * if _graph_length != 0: # <<<<<<<<<<<<<< * cedgeData = calloc(_graph_length, sizeof(ccudart.cudaGraphEdgeData)) * if cedgeData is NULL: */ __pyx_t_1 = (__pyx_v__graph_length != 0); if (__pyx_t_1) { /* "cuda/cudart.pyx":26136 * pyedgeData = [] * if _graph_length != 0: * cedgeData = calloc(_graph_length, sizeof(ccudart.cudaGraphEdgeData)) # <<<<<<<<<<<<<< * if cedgeData is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) */ __pyx_v_cedgeData = ((cudaGraphEdgeData *)calloc(__pyx_v__graph_length, (sizeof(cudaGraphEdgeData)))); /* "cuda/cudart.pyx":26137 * if _graph_length != 0: * cedgeData = calloc(_graph_length, sizeof(ccudart.cudaGraphEdgeData)) * if cedgeData is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) * err = ccudart.cudaGraphNodeGetDependentNodes_v2(cnode, cpDependentNodes, cedgeData, &pNumDependentNodes) */ __pyx_t_1 = (__pyx_v_cedgeData == NULL); if (unlikely(__pyx_t_1)) { /* "cuda/cudart.pyx":26138 * cedgeData = calloc(_graph_length, sizeof(ccudart.cudaGraphEdgeData)) * if cedgeData is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) # <<<<<<<<<<<<<< * err = ccudart.cudaGraphNodeGetDependentNodes_v2(cnode, cpDependentNodes, cedgeData, &pNumDependentNodes) * if cudaError_t(err) == cudaError_t(0): */ __pyx_t_6 = __Pyx_PyInt_FromSize_t(__pyx_v__graph_length); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_6, __pyx_n_u_x_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphEdgeData))); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_5, __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 26138, __pyx_L1_error) /* "cuda/cudart.pyx":26137 * if _graph_length != 0: * cedgeData = calloc(_graph_length, sizeof(ccudart.cudaGraphEdgeData)) * if cedgeData is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) * err = ccudart.cudaGraphNodeGetDependentNodes_v2(cnode, cpDependentNodes, cedgeData, &pNumDependentNodes) */ } /* "cuda/cudart.pyx":26135 * cdef ccudart.cudaGraphEdgeData* cedgeData = NULL * pyedgeData = [] * if _graph_length != 0: # <<<<<<<<<<<<<< * cedgeData = calloc(_graph_length, sizeof(ccudart.cudaGraphEdgeData)) * if cedgeData is NULL: */ } /* "cuda/cudart.pyx":26139 * if cedgeData is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) * err = ccudart.cudaGraphNodeGetDependentNodes_v2(cnode, cpDependentNodes, cedgeData, &pNumDependentNodes) # <<<<<<<<<<<<<< * if cudaError_t(err) == cudaError_t(0): * pypDependentNodes = [cudaGraphNode_t(init_value=cpDependentNodes[idx]) for idx in range(_graph_length)] */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaGraphNodeGetDependentNodes_v2(__pyx_v_cnode, __pyx_v_cpDependentNodes, __pyx_v_cedgeData, (&__pyx_v_pNumDependentNodes)); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 26139, __pyx_L1_error) __pyx_v_err = __pyx_t_7; /* "cuda/cudart.pyx":26140 * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) * err = ccudart.cudaGraphNodeGetDependentNodes_v2(cnode, cpDependentNodes, cedgeData, &pNumDependentNodes) * if cudaError_t(err) == cudaError_t(0): # <<<<<<<<<<<<<< * pypDependentNodes = [cudaGraphNode_t(init_value=cpDependentNodes[idx]) for idx in range(_graph_length)] * if cpDependentNodes is not NULL: */ __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26140, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26140, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_6))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_5}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_6, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26140, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26140, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_int_0}; __pyx_t_6 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26140, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyObject_RichCompare(__pyx_t_3, __pyx_t_6, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26140, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 26140, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_1) { /* "cuda/cudart.pyx":26141 * err = ccudart.cudaGraphNodeGetDependentNodes_v2(cnode, cpDependentNodes, cedgeData, &pNumDependentNodes) * if cudaError_t(err) == cudaError_t(0): * pypDependentNodes = [cudaGraphNode_t(init_value=cpDependentNodes[idx]) for idx in range(_graph_length)] # <<<<<<<<<<<<<< * if cpDependentNodes is not NULL: * free(cpDependentNodes) */ { /* enter inner scope */ __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26141, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_10 = __pyx_v__graph_length; __pyx_t_11 = __pyx_t_10; for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_10genexpr140__pyx_v_idx = __pyx_t_12; __pyx_t_6 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26141, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_3 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_cpDependentNodes[__pyx_10genexpr140__pyx_v_idx]))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26141, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_init_value, __pyx_t_3) < 0) __PYX_ERR(0, 26141, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_empty_tuple, __pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26141, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(__Pyx_ListComp_Append(__pyx_t_5, (PyObject*)__pyx_t_3))) __PYX_ERR(0, 26141, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } /* exit inner scope */ __Pyx_DECREF_SET(__pyx_v_pypDependentNodes, ((PyObject*)__pyx_t_5)); __pyx_t_5 = 0; /* "cuda/cudart.pyx":26140 * raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) * err = ccudart.cudaGraphNodeGetDependentNodes_v2(cnode, cpDependentNodes, cedgeData, &pNumDependentNodes) * if cudaError_t(err) == cudaError_t(0): # <<<<<<<<<<<<<< * pypDependentNodes = [cudaGraphNode_t(init_value=cpDependentNodes[idx]) for idx in range(_graph_length)] * if cpDependentNodes is not NULL: */ } /* "cuda/cudart.pyx":26142 * if cudaError_t(err) == cudaError_t(0): * pypDependentNodes = [cudaGraphNode_t(init_value=cpDependentNodes[idx]) for idx in range(_graph_length)] * if cpDependentNodes is not NULL: # <<<<<<<<<<<<<< * free(cpDependentNodes) * if cudaError_t(err) == cudaError_t(0): */ __pyx_t_1 = (__pyx_v_cpDependentNodes != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":26143 * pypDependentNodes = [cudaGraphNode_t(init_value=cpDependentNodes[idx]) for idx in range(_graph_length)] * if cpDependentNodes is not NULL: * free(cpDependentNodes) # <<<<<<<<<<<<<< * if cudaError_t(err) == cudaError_t(0): * pyedgeData = [cudaGraphEdgeData(_ptr=&cedgeData[idx]) for idx in range(_graph_length)] */ free(__pyx_v_cpDependentNodes); /* "cuda/cudart.pyx":26142 * if cudaError_t(err) == cudaError_t(0): * pypDependentNodes = [cudaGraphNode_t(init_value=cpDependentNodes[idx]) for idx in range(_graph_length)] * if cpDependentNodes is not NULL: # <<<<<<<<<<<<<< * free(cpDependentNodes) * if cudaError_t(err) == cudaError_t(0): */ } /* "cuda/cudart.pyx":26144 * if cpDependentNodes is not NULL: * free(cpDependentNodes) * if cudaError_t(err) == cudaError_t(0): # <<<<<<<<<<<<<< * pyedgeData = [cudaGraphEdgeData(_ptr=&cedgeData[idx]) for idx in range(_graph_length)] * if cedgeData is not NULL: */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26144, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26144, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26144, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26144, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_6))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_6); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_6, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_int_0}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_6, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26144, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __pyx_t_6 = PyObject_RichCompare(__pyx_t_5, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26144, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 26144, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__pyx_t_1) { /* "cuda/cudart.pyx":26145 * free(cpDependentNodes) * if cudaError_t(err) == cudaError_t(0): * pyedgeData = [cudaGraphEdgeData(_ptr=&cedgeData[idx]) for idx in range(_graph_length)] # <<<<<<<<<<<<<< * if cedgeData is not NULL: * free(cedgeData) */ { /* enter inner scope */ __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26145, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_10 = __pyx_v__graph_length; __pyx_t_11 = __pyx_t_10; for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) { __pyx_10genexpr141__pyx_v_idx = __pyx_t_12; __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26145, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(&(__pyx_v_cedgeData[__pyx_10genexpr141__pyx_v_idx])))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26145, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_ptr, __pyx_t_5) < 0) __PYX_ERR(0, 26145, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphEdgeData), __pyx_empty_tuple, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26145, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 26145, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } } /* exit inner scope */ __Pyx_DECREF_SET(__pyx_v_pyedgeData, ((PyObject*)__pyx_t_6)); __pyx_t_6 = 0; /* "cuda/cudart.pyx":26144 * if cpDependentNodes is not NULL: * free(cpDependentNodes) * if cudaError_t(err) == cudaError_t(0): # <<<<<<<<<<<<<< * pyedgeData = [cudaGraphEdgeData(_ptr=&cedgeData[idx]) for idx in range(_graph_length)] * if cedgeData is not NULL: */ } /* "cuda/cudart.pyx":26146 * if cudaError_t(err) == cudaError_t(0): * pyedgeData = [cudaGraphEdgeData(_ptr=&cedgeData[idx]) for idx in range(_graph_length)] * if cedgeData is not NULL: # <<<<<<<<<<<<<< * free(cedgeData) * return (cudaError_t(err), pypDependentNodes, pyedgeData, pNumDependentNodes) */ __pyx_t_1 = (__pyx_v_cedgeData != NULL); if (__pyx_t_1) { /* "cuda/cudart.pyx":26147 * pyedgeData = [cudaGraphEdgeData(_ptr=&cedgeData[idx]) for idx in range(_graph_length)] * if cedgeData is not NULL: * free(cedgeData) # <<<<<<<<<<<<<< * return (cudaError_t(err), pypDependentNodes, pyedgeData, pNumDependentNodes) * */ free(__pyx_v_cedgeData); /* "cuda/cudart.pyx":26146 * if cudaError_t(err) == cudaError_t(0): * pyedgeData = [cudaGraphEdgeData(_ptr=&cedgeData[idx]) for idx in range(_graph_length)] * if cedgeData is not NULL: # <<<<<<<<<<<<<< * free(cedgeData) * return (cudaError_t(err), pypDependentNodes, pyedgeData, pNumDependentNodes) */ } /* "cuda/cudart.pyx":26148 * if cedgeData is not NULL: * free(cedgeData) * return (cudaError_t(err), pypDependentNodes, pyedgeData, pNumDependentNodes) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_3}; __pyx_t_6 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = __Pyx_PyInt_FromSize_t(__pyx_v_pNumDependentNodes); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = PyTuple_New(4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_6); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_6)) __PYX_ERR(0, 26148, __pyx_L1_error); __Pyx_INCREF(__pyx_v_pypDependentNodes); __Pyx_GIVEREF(__pyx_v_pypDependentNodes); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_pypDependentNodes)) __PYX_ERR(0, 26148, __pyx_L1_error); __Pyx_INCREF(__pyx_v_pyedgeData); __Pyx_GIVEREF(__pyx_v_pyedgeData); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_pyedgeData)) __PYX_ERR(0, 26148, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_5)) __PYX_ERR(0, 26148, __pyx_L1_error); __pyx_t_6 = 0; __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":26078 * return (cudaError_t(err), pypDependentNodes, pNumDependentNodes) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphNodeGetDependentNodes_v2(node, size_t pNumDependentNodes = 0): * """ Returns a node's dependent nodes (12.3+) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeGetDependentNodes_v2", __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":26150 * return (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]], size_t numDependencies): * """ Adds dependency edges to a graph. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_465cudaGraphAddDependencies(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_464cudaGraphAddDependencies, "cudaGraphAddDependencies(graph, from_: Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], to: Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], size_t numDependencies)\n Adds dependency edges to a graph.\n\n The number of dependencies to be added is defined by `numDependencies`\n Elements in `pFrom` and `pTo` at corresponding indices define a\n dependency. Each node in `pFrom` and `pTo` must belong to `graph`.\n\n If `numDependencies` is 0, elements in `pFrom` and `pTo` will be\n ignored. Specifying an existing dependency will return an error.\n\n Parameters\n ----------\n graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n Graph to which dependencies are added\n from : List[:py:obj:`~.cudaGraphNode_t`]\n Array of nodes that provide the dependencies\n to : List[:py:obj:`~.cudaGraphNode_t`]\n Array of dependent nodes\n numDependencies : size_t\n Number of dependencies to be added\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\n See Also\n --------\n :py:obj:`~.cudaGraphRemoveDependencies`, :py:obj:`~.cudaGraphGetEdges`, :py:obj:`~.cudaGraphNodeGetDependencies`, :py:obj:`~.cudaGraphNodeGetDependentNodes`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_465cudaGraphAddDependencies = {"cudaGraphAddDependencies", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_465cudaGraphAddDependencies, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_464cudaGraphAddDependencies}; static PyObject *__pyx_pw_4cuda_6cudart_465cudaGraphAddDependencies(PyObject *__pyx_self, #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; 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[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("cudaGraphAddDependencies (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_graph_2,&__pyx_n_s_from,&__pyx_n_s_to,&__pyx_n_s_numDependencies,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_graph_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26150, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_from)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26150, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddDependencies", 1, 4, 4, 1); __PYX_ERR(0, 26150, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_to)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26150, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddDependencies", 1, 4, 4, 2); __PYX_ERR(0, 26150, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_numDependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26150, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddDependencies", 1, 4, 4, 3); __PYX_ERR(0, 26150, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphAddDependencies") < 0)) __PYX_ERR(0, 26150, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); } __pyx_v_graph = values[0]; __pyx_v_from_ = values[1]; __pyx_v_to = values[2]; __pyx_v_numDependencies = __Pyx_PyInt_As_size_t(values[3]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 26151, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphAddDependencies", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 26150, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphAddDependencies", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_464cudaGraphAddDependencies(__pyx_self, __pyx_v_graph, __pyx_v_from_, __pyx_v_to, __pyx_v_numDependencies); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_24cudaGraphAddDependencies_2generator25(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":26182 * """ * to = [] if to is None else to * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in to): # <<<<<<<<<<<<<< * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * from_ = [] if from_ is None else from_ */ static PyObject *__pyx_pf_4cuda_6cudart_24cudaGraphAddDependencies_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct_25_genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_25_genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_25_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_25_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 26182, __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_6cudart_24cudaGraphAddDependencies_2generator25, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaGraphAddDependencies_locals, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 26182, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.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_6cudart_24cudaGraphAddDependencies_2generator25(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_25_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_25_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 26182, 0, __PYX_ERR(0, 26182, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 26182, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 26182, __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, 26182, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26182, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 26182, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 26182, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26182, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 26182, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 26182, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26182, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 26182, __pyx_L1_error) } 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_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_24cudaGraphAddDependencies_5generator26(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":26185 * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * from_ = [] if from_ is None else from_ * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in from_): # <<<<<<<<<<<<<< * raise TypeError("Argument 'from_' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ static PyObject *__pyx_pf_4cuda_6cudart_24cudaGraphAddDependencies_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct_26_genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_26_genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_26_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_26_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 26185, __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_6cudart_24cudaGraphAddDependencies_5generator26, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaGraphAddDependencies_locals, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 26185, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.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_6cudart_24cudaGraphAddDependencies_5generator26(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_26_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_26_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 26185, 0, __PYX_ERR(0, 26185, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 26185, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 26185, __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, 26185, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26185, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 26185, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 26185, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26185, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 26185, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 26185, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26185, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 26185, __pyx_L1_error) } 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_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":26150 * return (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]], size_t numDependencies): * """ Adds dependency edges to a graph. */ static PyObject *__pyx_pf_4cuda_6cudart_464cudaGraphAddDependencies(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_from_, PyObject *__pyx_v_to, size_t __pyx_v_numDependencies) { cudaGraph_t __pyx_v_cgraph; PyObject *__pyx_v_pgraph = NULL; cudaGraphNode_t *__pyx_v_cfrom_; Py_ssize_t __pyx_v_idx; cudaGraphNode_t *__pyx_v_cto; cudaError_t __pyx_v_err; PyObject *__pyx_gb_4cuda_6cudart_24cudaGraphAddDependencies_2generator25 = 0; PyObject *__pyx_gb_4cuda_6cudart_24cudaGraphAddDependencies_5generator26 = 0; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; Py_ssize_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; Py_ssize_t __pyx_t_8; Py_ssize_t __pyx_t_9; cudaGraphNode_t *__pyx_t_10; cudaGraphNode_t *__pyx_t_11; cudaError_t __pyx_t_12; PyObject *__pyx_t_13 = NULL; unsigned int __pyx_t_14; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__584) __Pyx_RefNannySetupContext("cudaGraphAddDependencies", 0); __Pyx_TraceCall("cudaGraphAddDependencies", __pyx_f[0], 26150, 0, __PYX_ERR(0, 26150, __pyx_L1_error)); __Pyx_INCREF(__pyx_v_from_); __Pyx_INCREF(__pyx_v_to); /* "cuda/cudart.pyx":26181 * :py:obj:`~.cudaGraphRemoveDependencies`, :py:obj:`~.cudaGraphGetEdges`, :py:obj:`~.cudaGraphNodeGetDependencies`, :py:obj:`~.cudaGraphNodeGetDependentNodes` * """ * to = [] if to is None else to # <<<<<<<<<<<<<< * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in to): * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") */ __pyx_t_2 = (__pyx_v_to == Py_None); if (__pyx_t_2) { __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26181, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __pyx_t_3; __pyx_t_3 = 0; } else { __Pyx_INCREF(__pyx_v_to); __pyx_t_1 = __pyx_v_to; } __Pyx_DECREF_SET(__pyx_v_to, __pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":26182 * """ * to = [] if to is None else to * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in to): # <<<<<<<<<<<<<< * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * from_ = [] if from_ is None else from_ */ __pyx_t_1 = __pyx_pf_4cuda_6cudart_24cudaGraphAddDependencies_genexpr(NULL, __pyx_v_to); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26182, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26182, __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, 26182, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_4 = (!__pyx_t_2); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":26183 * to = [] if to is None else to * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in to): * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") # <<<<<<<<<<<<<< * from_ = [] if from_ is None else from_ * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in from_): */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__585, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26183, __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, 26183, __pyx_L1_error) /* "cuda/cudart.pyx":26182 * """ * to = [] if to is None else to * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in to): # <<<<<<<<<<<<<< * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * from_ = [] if from_ is None else from_ */ } /* "cuda/cudart.pyx":26184 * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in to): * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * from_ = [] if from_ is None else from_ # <<<<<<<<<<<<<< * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in from_): * raise TypeError("Argument 'from_' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") */ __pyx_t_4 = (__pyx_v_from_ == Py_None); if (__pyx_t_4) { __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26184, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_1 = 0; } else { __Pyx_INCREF(__pyx_v_from_); __pyx_t_3 = __pyx_v_from_; } __Pyx_DECREF_SET(__pyx_v_from_, __pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":26185 * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * from_ = [] if from_ is None else from_ * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in from_): # <<<<<<<<<<<<<< * raise TypeError("Argument 'from_' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ __pyx_t_3 = __pyx_pf_4cuda_6cudart_24cudaGraphAddDependencies_3genexpr(NULL, __pyx_v_from_); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26185, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_Generator_Next(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26185, __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, 26185, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_2 = (!__pyx_t_4); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":26186 * from_ = [] if from_ is None else from_ * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in from_): * raise TypeError("Argument 'from_' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") # <<<<<<<<<<<<<< * cdef ccudart.cudaGraph_t cgraph * if graph is None: */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__586, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26186, __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, 26186, __pyx_L1_error) /* "cuda/cudart.pyx":26185 * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * from_ = [] if from_ is None else from_ * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in from_): # <<<<<<<<<<<<<< * raise TypeError("Argument 'from_' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ } /* "cuda/cudart.pyx":26188 * raise TypeError("Argument 'from_' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_2 = (__pyx_v_graph == Py_None); if (__pyx_t_2) { /* "cuda/cudart.pyx":26189 * cdef ccudart.cudaGraph_t cgraph * if graph is None: * cgraph = 0 # <<<<<<<<<<<<<< * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) */ __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":26188 * raise TypeError("Argument 'from_' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L5; } /* "cuda/cudart.pyx":26190 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ __pyx_t_4 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_2 = __pyx_t_4; __pyx_L6_bool_binop_done:; if (__pyx_t_2) { /* "cuda/cudart.pyx":26191 * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) # <<<<<<<<<<<<<< * cgraph = pgraph * else: */ __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26191, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_pgraph = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":26192 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) * cgraph = pgraph # <<<<<<<<<<<<<< * else: * pgraph = int(cudaGraph_t(graph)) */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26192, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); /* "cuda/cudart.pyx":26190 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ goto __pyx_L5; } /* "cuda/cudart.pyx":26194 * cgraph = pgraph * else: * pgraph = int(cudaGraph_t(graph)) # <<<<<<<<<<<<<< * cgraph = pgraph * cdef ccudart.cudaGraphNode_t* cfrom_ = NULL */ /*else*/ { __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_graph); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26194, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26194, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_pgraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":26195 * else: * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t* cfrom_ = NULL * if len(from_) > 0: */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26195, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); } __pyx_L5:; /* "cuda/cudart.pyx":26196 * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph * cdef ccudart.cudaGraphNode_t* cfrom_ = NULL # <<<<<<<<<<<<<< * if len(from_) > 0: * cfrom_ = calloc(len(from_), sizeof(ccudart.cudaGraphNode_t)) */ __pyx_v_cfrom_ = NULL; /* "cuda/cudart.pyx":26197 * cgraph = pgraph * cdef ccudart.cudaGraphNode_t* cfrom_ = NULL * if len(from_) > 0: # <<<<<<<<<<<<<< * cfrom_ = calloc(len(from_), sizeof(ccudart.cudaGraphNode_t)) * if cfrom_ is NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_from_); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26197, __pyx_L1_error) __pyx_t_2 = (__pyx_t_6 > 0); if (__pyx_t_2) { /* "cuda/cudart.pyx":26198 * cdef ccudart.cudaGraphNode_t* cfrom_ = NULL * if len(from_) > 0: * cfrom_ = calloc(len(from_), sizeof(ccudart.cudaGraphNode_t)) # <<<<<<<<<<<<<< * if cfrom_ is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(from_)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) */ __pyx_t_6 = PyObject_Length(__pyx_v_from_); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26198, __pyx_L1_error) __pyx_v_cfrom_ = ((cudaGraphNode_t *)calloc(__pyx_t_6, (sizeof(cudaGraphNode_t)))); /* "cuda/cudart.pyx":26199 * if len(from_) > 0: * cfrom_ = calloc(len(from_), sizeof(ccudart.cudaGraphNode_t)) * if cfrom_ is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(from_)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ __pyx_t_2 = (__pyx_v_cfrom_ == NULL); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":26200 * cfrom_ = calloc(len(from_), sizeof(ccudart.cudaGraphNode_t)) * if cfrom_ is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(from_)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) # <<<<<<<<<<<<<< * else: * for idx in range(len(from_)): */ __pyx_t_6 = PyObject_Length(__pyx_v_from_); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26200, __pyx_L1_error) __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_n_u_x_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_7, 0, 0, 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __PYX_ERR(0, 26200, __pyx_L1_error) /* "cuda/cudart.pyx":26199 * if len(from_) > 0: * cfrom_ = calloc(len(from_), sizeof(ccudart.cudaGraphNode_t)) * if cfrom_ is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(from_)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ } /* "cuda/cudart.pyx":26202 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(from_)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: * for idx in range(len(from_)): # <<<<<<<<<<<<<< * cfrom_[idx] = (from_[idx])._ptr[0] * cdef ccudart.cudaGraphNode_t* cto = NULL */ /*else*/ { __pyx_t_6 = PyObject_Length(__pyx_v_from_); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26202, __pyx_L1_error) __pyx_t_8 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_idx = __pyx_t_9; /* "cuda/cudart.pyx":26203 * else: * for idx in range(len(from_)): * cfrom_[idx] = (from_[idx])._ptr[0] # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t* cto = NULL * if len(to) > 0: */ __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_from_, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26203, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); (__pyx_v_cfrom_[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_7)->__pyx_base._ptr[0])); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } /* "cuda/cudart.pyx":26197 * cgraph = pgraph * cdef ccudart.cudaGraphNode_t* cfrom_ = NULL * if len(from_) > 0: # <<<<<<<<<<<<<< * cfrom_ = calloc(len(from_), sizeof(ccudart.cudaGraphNode_t)) * if cfrom_ is NULL: */ } /* "cuda/cudart.pyx":26204 * for idx in range(len(from_)): * cfrom_[idx] = (from_[idx])._ptr[0] * cdef ccudart.cudaGraphNode_t* cto = NULL # <<<<<<<<<<<<<< * if len(to) > 0: * cto = calloc(len(to), sizeof(ccudart.cudaGraphNode_t)) */ __pyx_v_cto = NULL; /* "cuda/cudart.pyx":26205 * cfrom_[idx] = (from_[idx])._ptr[0] * cdef ccudart.cudaGraphNode_t* cto = NULL * if len(to) > 0: # <<<<<<<<<<<<<< * cto = calloc(len(to), sizeof(ccudart.cudaGraphNode_t)) * if cto is NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_to); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26205, __pyx_L1_error) __pyx_t_2 = (__pyx_t_6 > 0); if (__pyx_t_2) { /* "cuda/cudart.pyx":26206 * cdef ccudart.cudaGraphNode_t* cto = NULL * if len(to) > 0: * cto = calloc(len(to), sizeof(ccudart.cudaGraphNode_t)) # <<<<<<<<<<<<<< * if cto is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(to)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) */ __pyx_t_6 = PyObject_Length(__pyx_v_to); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26206, __pyx_L1_error) __pyx_v_cto = ((cudaGraphNode_t *)calloc(__pyx_t_6, (sizeof(cudaGraphNode_t)))); /* "cuda/cudart.pyx":26207 * if len(to) > 0: * cto = calloc(len(to), sizeof(ccudart.cudaGraphNode_t)) * if cto is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(to)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ __pyx_t_2 = (__pyx_v_cto == NULL); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":26208 * cto = calloc(len(to), sizeof(ccudart.cudaGraphNode_t)) * if cto is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(to)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) # <<<<<<<<<<<<<< * else: * for idx in range(len(to)): */ __pyx_t_6 = PyObject_Length(__pyx_v_to); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26208, __pyx_L1_error) __pyx_t_7 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26208, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26208, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26208, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_7, __pyx_n_u_x_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26208, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26208, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26208, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26208, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26208, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(0, 26208, __pyx_L1_error) /* "cuda/cudart.pyx":26207 * if len(to) > 0: * cto = calloc(len(to), sizeof(ccudart.cudaGraphNode_t)) * if cto is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(to)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ } /* "cuda/cudart.pyx":26210 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(to)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: * for idx in range(len(to)): # <<<<<<<<<<<<<< * cto[idx] = (to[idx])._ptr[0] * if numDependencies > len(from_): raise RuntimeError("List is too small: " + str(len(from_)) + " < " + str(numDependencies)) */ /*else*/ { __pyx_t_6 = PyObject_Length(__pyx_v_to); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26210, __pyx_L1_error) __pyx_t_8 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_idx = __pyx_t_9; /* "cuda/cudart.pyx":26211 * else: * for idx in range(len(to)): * cto[idx] = (to[idx])._ptr[0] # <<<<<<<<<<<<<< * if numDependencies > len(from_): raise RuntimeError("List is too small: " + str(len(from_)) + " < " + str(numDependencies)) * if numDependencies > len(to): raise RuntimeError("List is too small: " + str(len(to)) + " < " + str(numDependencies)) */ __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_to, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26211, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); (__pyx_v_cto[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._ptr[0])); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } /* "cuda/cudart.pyx":26205 * cfrom_[idx] = (from_[idx])._ptr[0] * cdef ccudart.cudaGraphNode_t* cto = NULL * if len(to) > 0: # <<<<<<<<<<<<<< * cto = calloc(len(to), sizeof(ccudart.cudaGraphNode_t)) * if cto is NULL: */ } /* "cuda/cudart.pyx":26212 * for idx in range(len(to)): * cto[idx] = (to[idx])._ptr[0] * if numDependencies > len(from_): raise RuntimeError("List is too small: " + str(len(from_)) + " < " + str(numDependencies)) # <<<<<<<<<<<<<< * if numDependencies > len(to): raise RuntimeError("List is too small: " + str(len(to)) + " < " + str(numDependencies)) * err = ccudart.cudaGraphAddDependencies(cgraph, (from_[0])._ptr if len(from_) == 1 else cfrom_, (to[0])._ptr if len(to) == 1 else cto, numDependencies) */ __pyx_t_6 = PyObject_Length(__pyx_v_from_); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26212, __pyx_L1_error) __pyx_t_2 = (__pyx_v_numDependencies > ((size_t)__pyx_t_6)); if (unlikely(__pyx_t_2)) { __pyx_t_6 = PyObject_Length(__pyx_v_from_); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26212, __pyx_L1_error) __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26212, __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, 26212, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_kp_u_List_is_too_small, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26212, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_kp_u__400); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26212, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyInt_FromSize_t(__pyx_v_numDependencies); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26212, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26212, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_7, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26212, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26212, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 26212, __pyx_L1_error) } /* "cuda/cudart.pyx":26213 * cto[idx] = (to[idx])._ptr[0] * if numDependencies > len(from_): raise RuntimeError("List is too small: " + str(len(from_)) + " < " + str(numDependencies)) * if numDependencies > len(to): raise RuntimeError("List is too small: " + str(len(to)) + " < " + str(numDependencies)) # <<<<<<<<<<<<<< * err = ccudart.cudaGraphAddDependencies(cgraph, (from_[0])._ptr if len(from_) == 1 else cfrom_, (to[0])._ptr if len(to) == 1 else cto, numDependencies) * if cfrom_ is not NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_to); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26213, __pyx_L1_error) __pyx_t_2 = (__pyx_v_numDependencies > ((size_t)__pyx_t_6)); if (unlikely(__pyx_t_2)) { __pyx_t_6 = PyObject_Length(__pyx_v_to); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26213, __pyx_L1_error) __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26213, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26213, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_List_is_too_small, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26213, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_kp_u__400); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26213, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyInt_FromSize_t(__pyx_v_numDependencies); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26213, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26213, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26213, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26213, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_7, 0, 0, 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __PYX_ERR(0, 26213, __pyx_L1_error) } /* "cuda/cudart.pyx":26214 * if numDependencies > len(from_): raise RuntimeError("List is too small: " + str(len(from_)) + " < " + str(numDependencies)) * if numDependencies > len(to): raise RuntimeError("List is too small: " + str(len(to)) + " < " + str(numDependencies)) * err = ccudart.cudaGraphAddDependencies(cgraph, (from_[0])._ptr if len(from_) == 1 else cfrom_, (to[0])._ptr if len(to) == 1 else cto, numDependencies) # <<<<<<<<<<<<<< * if cfrom_ is not NULL: * free(cfrom_) */ __pyx_t_6 = PyObject_Length(__pyx_v_from_); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26214, __pyx_L1_error) __pyx_t_2 = (__pyx_t_6 == 1); if (__pyx_t_2) { __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_from_, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26214, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_10 = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_7)->__pyx_base._ptr); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else { __pyx_t_10 = __pyx_v_cfrom_; } __pyx_t_6 = PyObject_Length(__pyx_v_to); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26214, __pyx_L1_error) __pyx_t_2 = (__pyx_t_6 == 1); if (__pyx_t_2) { __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_to, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26214, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_11 = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_7)->__pyx_base._ptr); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else { __pyx_t_11 = __pyx_v_cto; } __pyx_t_12 = __pyx_f_4cuda_7ccudart_cudaGraphAddDependencies(__pyx_v_cgraph, __pyx_t_10, __pyx_t_11, __pyx_v_numDependencies); if (unlikely(__pyx_t_12 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 26214, __pyx_L1_error) __pyx_v_err = __pyx_t_12; /* "cuda/cudart.pyx":26215 * if numDependencies > len(to): raise RuntimeError("List is too small: " + str(len(to)) + " < " + str(numDependencies)) * err = ccudart.cudaGraphAddDependencies(cgraph, (from_[0])._ptr if len(from_) == 1 else cfrom_, (to[0])._ptr if len(to) == 1 else cto, numDependencies) * if cfrom_ is not NULL: # <<<<<<<<<<<<<< * free(cfrom_) * if cto is not NULL: */ __pyx_t_2 = (__pyx_v_cfrom_ != NULL); if (__pyx_t_2) { /* "cuda/cudart.pyx":26216 * err = ccudart.cudaGraphAddDependencies(cgraph, (from_[0])._ptr if len(from_) == 1 else cfrom_, (to[0])._ptr if len(to) == 1 else cto, numDependencies) * if cfrom_ is not NULL: * free(cfrom_) # <<<<<<<<<<<<<< * if cto is not NULL: * free(cto) */ free(__pyx_v_cfrom_); /* "cuda/cudart.pyx":26215 * if numDependencies > len(to): raise RuntimeError("List is too small: " + str(len(to)) + " < " + str(numDependencies)) * err = ccudart.cudaGraphAddDependencies(cgraph, (from_[0])._ptr if len(from_) == 1 else cfrom_, (to[0])._ptr if len(to) == 1 else cto, numDependencies) * if cfrom_ is not NULL: # <<<<<<<<<<<<<< * free(cfrom_) * if cto is not NULL: */ } /* "cuda/cudart.pyx":26217 * if cfrom_ is not NULL: * free(cfrom_) * if cto is not NULL: # <<<<<<<<<<<<<< * free(cto) * return (cudaError_t(err),) */ __pyx_t_2 = (__pyx_v_cto != NULL); if (__pyx_t_2) { /* "cuda/cudart.pyx":26218 * free(cfrom_) * if cto is not NULL: * free(cto) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ free(__pyx_v_cto); /* "cuda/cudart.pyx":26217 * if cfrom_ is not NULL: * free(cfrom_) * if cto is not NULL: # <<<<<<<<<<<<<< * free(cto) * return (cudaError_t(err),) */ } /* "cuda/cudart.pyx":26219 * if cto is not NULL: * free(cto) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_13 = NULL; __pyx_t_14 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_13)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_13); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_14 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_t_1}; __pyx_t_7 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_14, 1+__pyx_t_14); __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26219, __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)) __PYX_ERR(0, 26219, __pyx_L1_error); __pyx_t_7 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":26150 * return (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]], 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_7); __Pyx_XDECREF(__pyx_t_13); __Pyx_AddTraceback("cuda.cudart.cudaGraphAddDependencies", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pgraph); __Pyx_XDECREF(__pyx_gb_4cuda_6cudart_24cudaGraphAddDependencies_2generator25); __Pyx_XDECREF(__pyx_gb_4cuda_6cudart_24cudaGraphAddDependencies_5generator26); __Pyx_XDECREF(__pyx_v_from_); __Pyx_XDECREF(__pyx_v_to); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":26221 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphAddDependencies_v2(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. (12.3+) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_467cudaGraphAddDependencies_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_6cudart_466cudaGraphAddDependencies_v2, "cudaGraphAddDependencies_v2(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 Adds dependency edges to a graph. (12.3+)\n\n The number of dependencies to be added is defined by `numDependencies`\n Elements in `pFrom` and `pTo` at corresponding indices define a\n dependency. Each node in `pFrom` and `pTo` must belong to `graph`.\n\n If `numDependencies` is 0, elements in `pFrom` and `pTo` will be\n ignored. Specifying an existing dependency will return an error.\n\n Parameters\n ----------\n graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n Graph to which dependencies are added\n from : List[:py:obj:`~.cudaGraphNode_t`]\n Array of nodes that provide the dependencies\n to : List[:py:obj:`~.cudaGraphNode_t`]\n Array of dependent nodes\n edgeData : List[:py:obj:`~.cudaGraphEdgeData`]\n Optional array of edge data. If NULL, default (zeroed) edge data is\n assumed.\n numDependencies : size_t\n Number of dependencies to be added\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\n See Also\n --------\n :py:obj:`~.cudaGraphRemoveDependencies`, :py:obj:`~.cudaGraphGetEdges`, :py:obj:`~.cudaGraphNodeGetDependencies`, :py:obj:`~.cudaGraphNodeGetDependentNodes`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_467cudaGraphAddDependencies_v2 = {"cudaGraphAddDependencies_v2", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_467cudaGraphAddDependencies_v2, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_466cudaGraphAddDependencies_v2}; static PyObject *__pyx_pw_4cuda_6cudart_467cudaGraphAddDependencies_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_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_v2 (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_graph_2,&__pyx_n_s_from,&__pyx_n_s_to,&__pyx_n_s_edgeData,&__pyx_n_s_numDependencies,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_graph_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26221, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_from)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26221, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddDependencies_v2", 1, 5, 5, 1); __PYX_ERR(0, 26221, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_to)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26221, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddDependencies_v2", 1, 5, 5, 2); __PYX_ERR(0, 26221, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_edgeData)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26221, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddDependencies_v2", 1, 5, 5, 3); __PYX_ERR(0, 26221, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_numDependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[4]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26221, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddDependencies_v2", 1, 5, 5, 4); __PYX_ERR(0, 26221, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphAddDependencies_v2") < 0)) __PYX_ERR(0, 26221, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 5)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); } __pyx_v_graph = values[0]; __pyx_v_from_ = values[1]; __pyx_v_to = values[2]; __pyx_v_edgeData = values[3]; __pyx_v_numDependencies = __Pyx_PyInt_As_size_t(values[4]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 26222, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphAddDependencies_v2", 1, 5, 5, __pyx_nargs); __PYX_ERR(0, 26221, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphAddDependencies_v2", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_466cudaGraphAddDependencies_v2(__pyx_self, __pyx_v_graph, __pyx_v_from_, __pyx_v_to, __pyx_v_edgeData, __pyx_v_numDependencies); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_27cudaGraphAddDependencies_v2_2generator27(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":26256 * """ * 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[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * to = [] if to is None else to */ static PyObject *__pyx_pf_4cuda_6cudart_27cudaGraphAddDependencies_v2_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct_27_genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_27_genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_27_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_27_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 26256, __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_6cudart_27cudaGraphAddDependencies_v2_2generator27, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaGraphAddDependencies_v2_loca, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 26256, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphAddDependencies_v2.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_6cudart_27cudaGraphAddDependencies_v2_2generator27(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_27_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_27_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 26256, 0, __PYX_ERR(0, 26256, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 26256, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 26256, __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, 26256, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26256, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 26256, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 26256, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26256, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 26256, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 26256, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26256, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 26256, __pyx_L1_error) } 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_ptype_4cuda_6cudart_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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_27cudaGraphAddDependencies_v2_5generator28(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":26259 * raise TypeError("Argument 'edgeData' is not instance of type (expected Tuple[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * to = [] if to is None else to * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in to): # <<<<<<<<<<<<<< * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * from_ = [] if from_ is None else from_ */ static PyObject *__pyx_pf_4cuda_6cudart_27cudaGraphAddDependencies_v2_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct_28_genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_28_genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_28_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_28_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 26259, __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_6cudart_27cudaGraphAddDependencies_v2_5generator28, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaGraphAddDependencies_v2_loca, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 26259, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphAddDependencies_v2.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_6cudart_27cudaGraphAddDependencies_v2_5generator28(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_28_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_28_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 26259, 0, __PYX_ERR(0, 26259, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 26259, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 26259, __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, 26259, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26259, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 26259, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 26259, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26259, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 26259, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 26259, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26259, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 26259, __pyx_L1_error) } 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_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_27cudaGraphAddDependencies_v2_8generator29(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":26262 * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * from_ = [] if from_ is None else from_ * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in from_): # <<<<<<<<<<<<<< * raise TypeError("Argument 'from_' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ static PyObject *__pyx_pf_4cuda_6cudart_27cudaGraphAddDependencies_v2_6genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct_29_genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_29_genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_29_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_29_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 26262, __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_6cudart_27cudaGraphAddDependencies_v2_8generator29, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaGraphAddDependencies_v2_loca, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 26262, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphAddDependencies_v2.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_6cudart_27cudaGraphAddDependencies_v2_8generator29(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_29_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_29_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 26262, 0, __PYX_ERR(0, 26262, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 26262, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 26262, __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, 26262, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26262, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 26262, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 26262, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26262, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 26262, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 26262, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26262, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 26262, __pyx_L1_error) } 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_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":26221 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphAddDependencies_v2(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. (12.3+) */ static PyObject *__pyx_pf_4cuda_6cudart_466cudaGraphAddDependencies_v2(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_cgraph; PyObject *__pyx_v_pgraph = NULL; cudaGraphNode_t *__pyx_v_cfrom_; Py_ssize_t __pyx_v_idx; cudaGraphNode_t *__pyx_v_cto; cudaGraphEdgeData *__pyx_v_cedgeData; cudaError_t __pyx_v_err; PyObject *__pyx_gb_4cuda_6cudart_27cudaGraphAddDependencies_v2_2generator27 = 0; PyObject *__pyx_gb_4cuda_6cudart_27cudaGraphAddDependencies_v2_5generator28 = 0; PyObject *__pyx_gb_4cuda_6cudart_27cudaGraphAddDependencies_v2_8generator29 = 0; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; Py_ssize_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; Py_ssize_t __pyx_t_8; Py_ssize_t __pyx_t_9; cudaGraphNode_t *__pyx_t_10; cudaGraphNode_t *__pyx_t_11; struct cudaGraphEdgeData_st *__pyx_t_12; cudaError_t __pyx_t_13; PyObject *__pyx_t_14 = NULL; unsigned int __pyx_t_15; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__587) __Pyx_RefNannySetupContext("cudaGraphAddDependencies_v2", 0); __Pyx_TraceCall("cudaGraphAddDependencies_v2", __pyx_f[0], 26221, 0, __PYX_ERR(0, 26221, __pyx_L1_error)); __Pyx_INCREF(__pyx_v_from_); __Pyx_INCREF(__pyx_v_to); __Pyx_INCREF(__pyx_v_edgeData); /* "cuda/cudart.pyx":26255 * :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[ccudart.cudaGraphEdgeData,] or List[ccudart.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, 26255, __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/cudart.pyx":26256 * """ * 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[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * to = [] if to is None else to */ __pyx_t_1 = __pyx_pf_4cuda_6cudart_27cudaGraphAddDependencies_v2_genexpr(NULL, __pyx_v_edgeData); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26256, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26256, __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, 26256, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_4 = (!__pyx_t_2); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":26257 * 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[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") # <<<<<<<<<<<<<< * to = [] if to is None else to * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in to): */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__588, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26257, __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, 26257, __pyx_L1_error) /* "cuda/cudart.pyx":26256 * """ * 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[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * to = [] if to is None else to */ } /* "cuda/cudart.pyx":26258 * if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in edgeData): * raise TypeError("Argument 'edgeData' is not instance of type (expected Tuple[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * to = [] if to is None else to # <<<<<<<<<<<<<< * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in to): * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.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, 26258, __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/cudart.pyx":26259 * raise TypeError("Argument 'edgeData' is not instance of type (expected Tuple[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * to = [] if to is None else to * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in to): # <<<<<<<<<<<<<< * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * from_ = [] if from_ is None else from_ */ __pyx_t_3 = __pyx_pf_4cuda_6cudart_27cudaGraphAddDependencies_v2_3genexpr(NULL, __pyx_v_to); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26259, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_Generator_Next(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26259, __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, 26259, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_2 = (!__pyx_t_4); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":26260 * to = [] if to is None else to * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in to): * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") # <<<<<<<<<<<<<< * from_ = [] if from_ is None else from_ * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in from_): */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__585, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26260, __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, 26260, __pyx_L1_error) /* "cuda/cudart.pyx":26259 * raise TypeError("Argument 'edgeData' is not instance of type (expected Tuple[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * to = [] if to is None else to * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in to): # <<<<<<<<<<<<<< * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * from_ = [] if from_ is None else from_ */ } /* "cuda/cudart.pyx":26261 * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in to): * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * from_ = [] if from_ is None else from_ # <<<<<<<<<<<<<< * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in from_): * raise TypeError("Argument 'from_' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.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, 26261, __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/cudart.pyx":26262 * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * from_ = [] if from_ is None else from_ * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in from_): # <<<<<<<<<<<<<< * raise TypeError("Argument 'from_' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ __pyx_t_1 = __pyx_pf_4cuda_6cudart_27cudaGraphAddDependencies_v2_6genexpr(NULL, __pyx_v_from_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26262, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26262, __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, 26262, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_4 = (!__pyx_t_2); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":26263 * from_ = [] if from_ is None else from_ * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in from_): * raise TypeError("Argument 'from_' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") # <<<<<<<<<<<<<< * cdef ccudart.cudaGraph_t cgraph * if graph is None: */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__586, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26263, __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, 26263, __pyx_L1_error) /* "cuda/cudart.pyx":26262 * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * from_ = [] if from_ is None else from_ * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in from_): # <<<<<<<<<<<<<< * raise TypeError("Argument 'from_' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ } /* "cuda/cudart.pyx":26265 * raise TypeError("Argument 'from_' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_4 = (__pyx_v_graph == Py_None); if (__pyx_t_4) { /* "cuda/cudart.pyx":26266 * cdef ccudart.cudaGraph_t cgraph * if graph is None: * cgraph = 0 # <<<<<<<<<<<<<< * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) */ __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":26265 * raise TypeError("Argument 'from_' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":26267 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_4 = __pyx_t_2; __pyx_L7_bool_binop_done:; if (__pyx_t_4) { /* "cuda/cudart.pyx":26268 * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) # <<<<<<<<<<<<<< * cgraph = pgraph * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26268, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pgraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":26269 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) * cgraph = pgraph # <<<<<<<<<<<<<< * else: * pgraph = int(cudaGraph_t(graph)) */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26269, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); /* "cuda/cudart.pyx":26267 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ goto __pyx_L6; } /* "cuda/cudart.pyx":26271 * cgraph = pgraph * else: * pgraph = int(cudaGraph_t(graph)) # <<<<<<<<<<<<<< * cgraph = pgraph * cdef ccudart.cudaGraphNode_t* cfrom_ = NULL */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26271, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26271, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pgraph = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":26272 * else: * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t* cfrom_ = NULL * if len(from_) > 0: */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26272, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); } __pyx_L6:; /* "cuda/cudart.pyx":26273 * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph * cdef ccudart.cudaGraphNode_t* cfrom_ = NULL # <<<<<<<<<<<<<< * if len(from_) > 0: * cfrom_ = calloc(len(from_), sizeof(ccudart.cudaGraphNode_t)) */ __pyx_v_cfrom_ = NULL; /* "cuda/cudart.pyx":26274 * cgraph = pgraph * cdef ccudart.cudaGraphNode_t* cfrom_ = NULL * if len(from_) > 0: # <<<<<<<<<<<<<< * cfrom_ = calloc(len(from_), sizeof(ccudart.cudaGraphNode_t)) * if cfrom_ is NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_from_); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26274, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 > 0); if (__pyx_t_4) { /* "cuda/cudart.pyx":26275 * cdef ccudart.cudaGraphNode_t* cfrom_ = NULL * if len(from_) > 0: * cfrom_ = calloc(len(from_), sizeof(ccudart.cudaGraphNode_t)) # <<<<<<<<<<<<<< * if cfrom_ is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(from_)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) */ __pyx_t_6 = PyObject_Length(__pyx_v_from_); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26275, __pyx_L1_error) __pyx_v_cfrom_ = ((cudaGraphNode_t *)calloc(__pyx_t_6, (sizeof(cudaGraphNode_t)))); /* "cuda/cudart.pyx":26276 * if len(from_) > 0: * cfrom_ = calloc(len(from_), sizeof(ccudart.cudaGraphNode_t)) * if cfrom_ is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(from_)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ __pyx_t_4 = (__pyx_v_cfrom_ == NULL); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":26277 * cfrom_ = calloc(len(from_), sizeof(ccudart.cudaGraphNode_t)) * if cfrom_ is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(from_)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) # <<<<<<<<<<<<<< * else: * for idx in range(len(from_)): */ __pyx_t_6 = PyObject_Length(__pyx_v_from_); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26277, __pyx_L1_error) __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26277, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26277, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26277, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_n_u_x_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26277, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26277, __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, 26277, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26277, __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 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26277, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_7, 0, 0, 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __PYX_ERR(0, 26277, __pyx_L1_error) /* "cuda/cudart.pyx":26276 * if len(from_) > 0: * cfrom_ = calloc(len(from_), sizeof(ccudart.cudaGraphNode_t)) * if cfrom_ is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(from_)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ } /* "cuda/cudart.pyx":26279 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(from_)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: * for idx in range(len(from_)): # <<<<<<<<<<<<<< * cfrom_[idx] = (from_[idx])._ptr[0] * cdef ccudart.cudaGraphNode_t* cto = NULL */ /*else*/ { __pyx_t_6 = PyObject_Length(__pyx_v_from_); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26279, __pyx_L1_error) __pyx_t_8 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_idx = __pyx_t_9; /* "cuda/cudart.pyx":26280 * else: * for idx in range(len(from_)): * cfrom_[idx] = (from_[idx])._ptr[0] # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t* cto = NULL * if len(to) > 0: */ __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_from_, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26280, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); (__pyx_v_cfrom_[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_7)->__pyx_base._ptr[0])); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } /* "cuda/cudart.pyx":26274 * cgraph = pgraph * cdef ccudart.cudaGraphNode_t* cfrom_ = NULL * if len(from_) > 0: # <<<<<<<<<<<<<< * cfrom_ = calloc(len(from_), sizeof(ccudart.cudaGraphNode_t)) * if cfrom_ is NULL: */ } /* "cuda/cudart.pyx":26281 * for idx in range(len(from_)): * cfrom_[idx] = (from_[idx])._ptr[0] * cdef ccudart.cudaGraphNode_t* cto = NULL # <<<<<<<<<<<<<< * if len(to) > 0: * cto = calloc(len(to), sizeof(ccudart.cudaGraphNode_t)) */ __pyx_v_cto = NULL; /* "cuda/cudart.pyx":26282 * cfrom_[idx] = (from_[idx])._ptr[0] * cdef ccudart.cudaGraphNode_t* cto = NULL * if len(to) > 0: # <<<<<<<<<<<<<< * cto = calloc(len(to), sizeof(ccudart.cudaGraphNode_t)) * if cto is NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_to); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26282, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 > 0); if (__pyx_t_4) { /* "cuda/cudart.pyx":26283 * cdef ccudart.cudaGraphNode_t* cto = NULL * if len(to) > 0: * cto = calloc(len(to), sizeof(ccudart.cudaGraphNode_t)) # <<<<<<<<<<<<<< * if cto is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(to)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) */ __pyx_t_6 = PyObject_Length(__pyx_v_to); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26283, __pyx_L1_error) __pyx_v_cto = ((cudaGraphNode_t *)calloc(__pyx_t_6, (sizeof(cudaGraphNode_t)))); /* "cuda/cudart.pyx":26284 * if len(to) > 0: * cto = calloc(len(to), sizeof(ccudart.cudaGraphNode_t)) * if cto is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(to)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ __pyx_t_4 = (__pyx_v_cto == NULL); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":26285 * cto = calloc(len(to), sizeof(ccudart.cudaGraphNode_t)) * if cto is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(to)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) # <<<<<<<<<<<<<< * else: * for idx in range(len(to)): */ __pyx_t_6 = PyObject_Length(__pyx_v_to); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26285, __pyx_L1_error) __pyx_t_7 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26285, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26285, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26285, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_7, __pyx_n_u_x_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26285, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26285, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26285, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26285, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26285, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 26285, __pyx_L1_error) /* "cuda/cudart.pyx":26284 * if len(to) > 0: * cto = calloc(len(to), sizeof(ccudart.cudaGraphNode_t)) * if cto is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(to)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ } /* "cuda/cudart.pyx":26287 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(to)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: * for idx in range(len(to)): # <<<<<<<<<<<<<< * cto[idx] = (to[idx])._ptr[0] * cdef ccudart.cudaGraphEdgeData* cedgeData = NULL */ /*else*/ { __pyx_t_6 = PyObject_Length(__pyx_v_to); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26287, __pyx_L1_error) __pyx_t_8 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_idx = __pyx_t_9; /* "cuda/cudart.pyx":26288 * else: * for idx in range(len(to)): * cto[idx] = (to[idx])._ptr[0] # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphEdgeData* cedgeData = NULL * if len(edgeData) > 0: */ __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_to, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26288, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); (__pyx_v_cto[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_3)->__pyx_base._ptr[0])); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } /* "cuda/cudart.pyx":26282 * cfrom_[idx] = (from_[idx])._ptr[0] * cdef ccudart.cudaGraphNode_t* cto = NULL * if len(to) > 0: # <<<<<<<<<<<<<< * cto = calloc(len(to), sizeof(ccudart.cudaGraphNode_t)) * if cto is NULL: */ } /* "cuda/cudart.pyx":26289 * for idx in range(len(to)): * cto[idx] = (to[idx])._ptr[0] * cdef ccudart.cudaGraphEdgeData* cedgeData = NULL # <<<<<<<<<<<<<< * if len(edgeData) > 0: * cedgeData = calloc(len(edgeData), sizeof(ccudart.cudaGraphEdgeData)) */ __pyx_v_cedgeData = NULL; /* "cuda/cudart.pyx":26290 * cto[idx] = (to[idx])._ptr[0] * cdef ccudart.cudaGraphEdgeData* cedgeData = NULL * if len(edgeData) > 0: # <<<<<<<<<<<<<< * cedgeData = calloc(len(edgeData), sizeof(ccudart.cudaGraphEdgeData)) * if cedgeData is NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_edgeData); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26290, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 > 0); if (__pyx_t_4) { /* "cuda/cudart.pyx":26291 * cdef ccudart.cudaGraphEdgeData* cedgeData = NULL * if len(edgeData) > 0: * cedgeData = calloc(len(edgeData), sizeof(ccudart.cudaGraphEdgeData)) # <<<<<<<<<<<<<< * if cedgeData is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(edgeData)) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) */ __pyx_t_6 = PyObject_Length(__pyx_v_edgeData); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26291, __pyx_L1_error) __pyx_v_cedgeData = ((cudaGraphEdgeData *)calloc(__pyx_t_6, (sizeof(cudaGraphEdgeData)))); /* "cuda/cudart.pyx":26292 * if len(edgeData) > 0: * cedgeData = calloc(len(edgeData), sizeof(ccudart.cudaGraphEdgeData)) * if cedgeData is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(edgeData)) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) * for idx in range(len(edgeData)): */ __pyx_t_4 = (__pyx_v_cedgeData == NULL); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":26293 * cedgeData = calloc(len(edgeData), sizeof(ccudart.cudaGraphEdgeData)) * if cedgeData is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(edgeData)) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) # <<<<<<<<<<<<<< * for idx in range(len(edgeData)): * string.memcpy(&cedgeData[idx], (edgeData[idx])._ptr, sizeof(ccudart.cudaGraphEdgeData)) */ __pyx_t_6 = PyObject_Length(__pyx_v_edgeData); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26293, __pyx_L1_error) __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26293, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26293, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26293, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_n_u_x_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26293, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphEdgeData))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26293, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26293, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_7, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26293, __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 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26293, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(0, 26293, __pyx_L1_error) /* "cuda/cudart.pyx":26292 * if len(edgeData) > 0: * cedgeData = calloc(len(edgeData), sizeof(ccudart.cudaGraphEdgeData)) * if cedgeData is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(edgeData)) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) * for idx in range(len(edgeData)): */ } /* "cuda/cudart.pyx":26294 * if cedgeData is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(edgeData)) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) * for idx in range(len(edgeData)): # <<<<<<<<<<<<<< * string.memcpy(&cedgeData[idx], (edgeData[idx])._ptr, sizeof(ccudart.cudaGraphEdgeData)) * err = ccudart.cudaGraphAddDependencies_v2(cgraph, (from_[0])._ptr if len(from_) == 1 else cfrom_, (to[0])._ptr if len(to) == 1 else cto, (edgeData[0])._ptr if len(edgeData) == 1 else cedgeData, numDependencies) */ __pyx_t_6 = PyObject_Length(__pyx_v_edgeData); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26294, __pyx_L1_error) __pyx_t_8 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_idx = __pyx_t_9; /* "cuda/cudart.pyx":26295 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(edgeData)) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) * for idx in range(len(edgeData)): * string.memcpy(&cedgeData[idx], (edgeData[idx])._ptr, sizeof(ccudart.cudaGraphEdgeData)) # <<<<<<<<<<<<<< * err = ccudart.cudaGraphAddDependencies_v2(cgraph, (from_[0])._ptr if len(from_) == 1 else cfrom_, (to[0])._ptr if len(to) == 1 else cto, (edgeData[0])._ptr if len(edgeData) == 1 else cedgeData, numDependencies) * if cfrom_ is not NULL: */ __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_edgeData, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26295, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); (void)(memcpy((&(__pyx_v_cedgeData[__pyx_v_idx])), ((struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData *)__pyx_t_1)->__pyx_base._ptr, (sizeof(cudaGraphEdgeData)))); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } /* "cuda/cudart.pyx":26290 * cto[idx] = (to[idx])._ptr[0] * cdef ccudart.cudaGraphEdgeData* cedgeData = NULL * if len(edgeData) > 0: # <<<<<<<<<<<<<< * cedgeData = calloc(len(edgeData), sizeof(ccudart.cudaGraphEdgeData)) * if cedgeData is NULL: */ } /* "cuda/cudart.pyx":26296 * for idx in range(len(edgeData)): * string.memcpy(&cedgeData[idx], (edgeData[idx])._ptr, sizeof(ccudart.cudaGraphEdgeData)) * err = ccudart.cudaGraphAddDependencies_v2(cgraph, (from_[0])._ptr if len(from_) == 1 else cfrom_, (to[0])._ptr if len(to) == 1 else cto, (edgeData[0])._ptr if len(edgeData) == 1 else cedgeData, numDependencies) # <<<<<<<<<<<<<< * if cfrom_ is not NULL: * free(cfrom_) */ __pyx_t_6 = PyObject_Length(__pyx_v_from_); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26296, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 == 1); if (__pyx_t_4) { __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_from_, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26296, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_10 = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._ptr); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_10 = __pyx_v_cfrom_; } __pyx_t_6 = PyObject_Length(__pyx_v_to); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26296, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 == 1); if (__pyx_t_4) { __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_to, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26296, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_11 = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._ptr); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_11 = __pyx_v_cto; } __pyx_t_6 = PyObject_Length(__pyx_v_edgeData); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26296, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 == 1); if (__pyx_t_4) { __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_edgeData, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26296, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_12 = ((struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData *)__pyx_t_1)->__pyx_base._ptr; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_12 = __pyx_v_cedgeData; } __pyx_t_13 = __pyx_f_4cuda_7ccudart_cudaGraphAddDependencies_v2(__pyx_v_cgraph, __pyx_t_10, __pyx_t_11, __pyx_t_12, __pyx_v_numDependencies); if (unlikely(__pyx_t_13 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 26296, __pyx_L1_error) __pyx_v_err = __pyx_t_13; /* "cuda/cudart.pyx":26297 * string.memcpy(&cedgeData[idx], (edgeData[idx])._ptr, sizeof(ccudart.cudaGraphEdgeData)) * err = ccudart.cudaGraphAddDependencies_v2(cgraph, (from_[0])._ptr if len(from_) == 1 else cfrom_, (to[0])._ptr if len(to) == 1 else cto, (edgeData[0])._ptr if len(edgeData) == 1 else cedgeData, numDependencies) * if cfrom_ is not NULL: # <<<<<<<<<<<<<< * free(cfrom_) * if cto is not NULL: */ __pyx_t_4 = (__pyx_v_cfrom_ != NULL); if (__pyx_t_4) { /* "cuda/cudart.pyx":26298 * err = ccudart.cudaGraphAddDependencies_v2(cgraph, (from_[0])._ptr if len(from_) == 1 else cfrom_, (to[0])._ptr if len(to) == 1 else cto, (edgeData[0])._ptr if len(edgeData) == 1 else cedgeData, numDependencies) * if cfrom_ is not NULL: * free(cfrom_) # <<<<<<<<<<<<<< * if cto is not NULL: * free(cto) */ free(__pyx_v_cfrom_); /* "cuda/cudart.pyx":26297 * string.memcpy(&cedgeData[idx], (edgeData[idx])._ptr, sizeof(ccudart.cudaGraphEdgeData)) * err = ccudart.cudaGraphAddDependencies_v2(cgraph, (from_[0])._ptr if len(from_) == 1 else cfrom_, (to[0])._ptr if len(to) == 1 else cto, (edgeData[0])._ptr if len(edgeData) == 1 else cedgeData, numDependencies) * if cfrom_ is not NULL: # <<<<<<<<<<<<<< * free(cfrom_) * if cto is not NULL: */ } /* "cuda/cudart.pyx":26299 * if cfrom_ is not NULL: * free(cfrom_) * if cto is not NULL: # <<<<<<<<<<<<<< * free(cto) * if cedgeData is not NULL: */ __pyx_t_4 = (__pyx_v_cto != NULL); if (__pyx_t_4) { /* "cuda/cudart.pyx":26300 * free(cfrom_) * if cto is not NULL: * free(cto) # <<<<<<<<<<<<<< * if cedgeData is not NULL: * free(cedgeData) */ free(__pyx_v_cto); /* "cuda/cudart.pyx":26299 * if cfrom_ is not NULL: * free(cfrom_) * if cto is not NULL: # <<<<<<<<<<<<<< * free(cto) * if cedgeData is not NULL: */ } /* "cuda/cudart.pyx":26301 * if cto is not NULL: * free(cto) * if cedgeData is not NULL: # <<<<<<<<<<<<<< * free(cedgeData) * return (cudaError_t(err),) */ __pyx_t_4 = (__pyx_v_cedgeData != NULL); if (__pyx_t_4) { /* "cuda/cudart.pyx":26302 * free(cto) * if cedgeData is not NULL: * free(cedgeData) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ free(__pyx_v_cedgeData); /* "cuda/cudart.pyx":26301 * if cto is not NULL: * free(cto) * if cedgeData is not NULL: # <<<<<<<<<<<<<< * free(cedgeData) * return (cudaError_t(err),) */ } /* "cuda/cudart.pyx":26303 * if cedgeData is not NULL: * free(cedgeData) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26303, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26303, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_14 = NULL; __pyx_t_15 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_14)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_14); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_15 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_14, __pyx_t_7}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_15, 1+__pyx_t_15); __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26303, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26303, __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)) __PYX_ERR(0, 26303, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":26221 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphAddDependencies_v2(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. (12.3+) */ /* 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_14); __Pyx_AddTraceback("cuda.cudart.cudaGraphAddDependencies_v2", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pgraph); __Pyx_XDECREF(__pyx_gb_4cuda_6cudart_27cudaGraphAddDependencies_v2_2generator27); __Pyx_XDECREF(__pyx_gb_4cuda_6cudart_27cudaGraphAddDependencies_v2_5generator28); __Pyx_XDECREF(__pyx_gb_4cuda_6cudart_27cudaGraphAddDependencies_v2_8generator29); __Pyx_XDECREF(__pyx_v_from_); __Pyx_XDECREF(__pyx_v_to); __Pyx_XDECREF(__pyx_v_edgeData); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":26305 * return (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]], size_t numDependencies): * """ Removes dependency edges from a graph. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_469cudaGraphRemoveDependencies(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_468cudaGraphRemoveDependencies, "cudaGraphRemoveDependencies(graph, from_: Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], to: Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], size_t numDependencies)\n Removes dependency edges from a graph.\n\n The number of `pDependencies` to be removed is defined by\n `numDependencies`. Elements in `pFrom` and `pTo` at corresponding\n indices define a dependency. Each node in `pFrom` and `pTo` must belong\n to `graph`.\n\n If `numDependencies` is 0, elements in `pFrom` and `pTo` will be\n ignored. Specifying a non-existing dependency will return an error.\n\n Parameters\n ----------\n graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n Graph from which to remove dependencies\n from : List[:py:obj:`~.cudaGraphNode_t`]\n Array of nodes that provide the dependencies\n to : List[:py:obj:`~.cudaGraphNode_t`]\n Array of dependent nodes\n numDependencies : size_t\n Number of dependencies to be removed\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\n See Also\n --------\n :py:obj:`~.cudaGraphAddDependencies`, :py:obj:`~.cudaGraphGetEdges`, :py:obj:`~.cudaGraphNodeGetDependencies`, :py:obj:`~.cudaGraphNodeGetDependentNodes`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_469cudaGraphRemoveDependencies = {"cudaGraphRemoveDependencies", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_469cudaGraphRemoveDependencies, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_468cudaGraphRemoveDependencies}; static PyObject *__pyx_pw_4cuda_6cudart_469cudaGraphRemoveDependencies(PyObject *__pyx_self, #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; 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[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("cudaGraphRemoveDependencies (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_graph_2,&__pyx_n_s_from,&__pyx_n_s_to,&__pyx_n_s_numDependencies,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_graph_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26305, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_from)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26305, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphRemoveDependencies", 1, 4, 4, 1); __PYX_ERR(0, 26305, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_to)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26305, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphRemoveDependencies", 1, 4, 4, 2); __PYX_ERR(0, 26305, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_numDependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26305, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphRemoveDependencies", 1, 4, 4, 3); __PYX_ERR(0, 26305, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphRemoveDependencies") < 0)) __PYX_ERR(0, 26305, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); } __pyx_v_graph = values[0]; __pyx_v_from_ = values[1]; __pyx_v_to = values[2]; __pyx_v_numDependencies = __Pyx_PyInt_As_size_t(values[3]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 26306, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphRemoveDependencies", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 26305, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphRemoveDependencies", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_468cudaGraphRemoveDependencies(__pyx_self, __pyx_v_graph, __pyx_v_from_, __pyx_v_to, __pyx_v_numDependencies); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_27cudaGraphRemoveDependencies_2generator30(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":26338 * """ * to = [] if to is None else to * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in to): # <<<<<<<<<<<<<< * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * from_ = [] if from_ is None else from_ */ static PyObject *__pyx_pf_4cuda_6cudart_27cudaGraphRemoveDependencies_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct_30_genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_30_genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_30_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_30_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 26338, __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_6cudart_27cudaGraphRemoveDependencies_2generator30, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaGraphRemoveDependencies_loca, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 26338, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.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_6cudart_27cudaGraphRemoveDependencies_2generator30(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_30_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_30_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 26338, 0, __PYX_ERR(0, 26338, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 26338, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 26338, __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, 26338, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26338, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 26338, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 26338, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26338, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 26338, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 26338, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26338, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 26338, __pyx_L1_error) } 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_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_27cudaGraphRemoveDependencies_5generator31(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":26341 * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * from_ = [] if from_ is None else from_ * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in from_): # <<<<<<<<<<<<<< * raise TypeError("Argument 'from_' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ static PyObject *__pyx_pf_4cuda_6cudart_27cudaGraphRemoveDependencies_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct_31_genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_31_genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_31_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_31_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 26341, __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_6cudart_27cudaGraphRemoveDependencies_5generator31, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaGraphRemoveDependencies_loca, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 26341, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.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_6cudart_27cudaGraphRemoveDependencies_5generator31(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_31_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_31_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 26341, 0, __PYX_ERR(0, 26341, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 26341, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 26341, __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, 26341, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26341, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 26341, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 26341, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26341, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 26341, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 26341, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26341, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 26341, __pyx_L1_error) } 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_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":26305 * return (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]], size_t numDependencies): * """ Removes dependency edges from a graph. */ static PyObject *__pyx_pf_4cuda_6cudart_468cudaGraphRemoveDependencies(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_from_, PyObject *__pyx_v_to, size_t __pyx_v_numDependencies) { cudaGraph_t __pyx_v_cgraph; PyObject *__pyx_v_pgraph = NULL; cudaGraphNode_t *__pyx_v_cfrom_; Py_ssize_t __pyx_v_idx; cudaGraphNode_t *__pyx_v_cto; cudaError_t __pyx_v_err; PyObject *__pyx_gb_4cuda_6cudart_27cudaGraphRemoveDependencies_2generator30 = 0; PyObject *__pyx_gb_4cuda_6cudart_27cudaGraphRemoveDependencies_5generator31 = 0; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; Py_ssize_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; Py_ssize_t __pyx_t_8; Py_ssize_t __pyx_t_9; cudaGraphNode_t *__pyx_t_10; cudaGraphNode_t *__pyx_t_11; cudaError_t __pyx_t_12; PyObject *__pyx_t_13 = NULL; unsigned int __pyx_t_14; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__589) __Pyx_RefNannySetupContext("cudaGraphRemoveDependencies", 0); __Pyx_TraceCall("cudaGraphRemoveDependencies", __pyx_f[0], 26305, 0, __PYX_ERR(0, 26305, __pyx_L1_error)); __Pyx_INCREF(__pyx_v_from_); __Pyx_INCREF(__pyx_v_to); /* "cuda/cudart.pyx":26337 * :py:obj:`~.cudaGraphAddDependencies`, :py:obj:`~.cudaGraphGetEdges`, :py:obj:`~.cudaGraphNodeGetDependencies`, :py:obj:`~.cudaGraphNodeGetDependentNodes` * """ * to = [] if to is None else to # <<<<<<<<<<<<<< * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in to): * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") */ __pyx_t_2 = (__pyx_v_to == Py_None); if (__pyx_t_2) { __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26337, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __pyx_t_3; __pyx_t_3 = 0; } else { __Pyx_INCREF(__pyx_v_to); __pyx_t_1 = __pyx_v_to; } __Pyx_DECREF_SET(__pyx_v_to, __pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":26338 * """ * to = [] if to is None else to * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in to): # <<<<<<<<<<<<<< * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * from_ = [] if from_ is None else from_ */ __pyx_t_1 = __pyx_pf_4cuda_6cudart_27cudaGraphRemoveDependencies_genexpr(NULL, __pyx_v_to); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26338, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26338, __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, 26338, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_4 = (!__pyx_t_2); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":26339 * to = [] if to is None else to * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in to): * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") # <<<<<<<<<<<<<< * from_ = [] if from_ is None else from_ * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in from_): */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__585, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26339, __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, 26339, __pyx_L1_error) /* "cuda/cudart.pyx":26338 * """ * to = [] if to is None else to * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in to): # <<<<<<<<<<<<<< * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * from_ = [] if from_ is None else from_ */ } /* "cuda/cudart.pyx":26340 * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in to): * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * from_ = [] if from_ is None else from_ # <<<<<<<<<<<<<< * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in from_): * raise TypeError("Argument 'from_' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") */ __pyx_t_4 = (__pyx_v_from_ == Py_None); if (__pyx_t_4) { __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26340, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_1 = 0; } else { __Pyx_INCREF(__pyx_v_from_); __pyx_t_3 = __pyx_v_from_; } __Pyx_DECREF_SET(__pyx_v_from_, __pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":26341 * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * from_ = [] if from_ is None else from_ * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in from_): # <<<<<<<<<<<<<< * raise TypeError("Argument 'from_' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ __pyx_t_3 = __pyx_pf_4cuda_6cudart_27cudaGraphRemoveDependencies_3genexpr(NULL, __pyx_v_from_); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26341, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_Generator_Next(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26341, __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, 26341, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_2 = (!__pyx_t_4); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":26342 * from_ = [] if from_ is None else from_ * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in from_): * raise TypeError("Argument 'from_' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") # <<<<<<<<<<<<<< * cdef ccudart.cudaGraph_t cgraph * if graph is None: */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__586, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26342, __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, 26342, __pyx_L1_error) /* "cuda/cudart.pyx":26341 * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * from_ = [] if from_ is None else from_ * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in from_): # <<<<<<<<<<<<<< * raise TypeError("Argument 'from_' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ } /* "cuda/cudart.pyx":26344 * raise TypeError("Argument 'from_' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_2 = (__pyx_v_graph == Py_None); if (__pyx_t_2) { /* "cuda/cudart.pyx":26345 * cdef ccudart.cudaGraph_t cgraph * if graph is None: * cgraph = 0 # <<<<<<<<<<<<<< * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) */ __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":26344 * raise TypeError("Argument 'from_' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L5; } /* "cuda/cudart.pyx":26346 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ __pyx_t_4 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_2 = __pyx_t_4; __pyx_L6_bool_binop_done:; if (__pyx_t_2) { /* "cuda/cudart.pyx":26347 * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) # <<<<<<<<<<<<<< * cgraph = pgraph * else: */ __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26347, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_pgraph = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":26348 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) * cgraph = pgraph # <<<<<<<<<<<<<< * else: * pgraph = int(cudaGraph_t(graph)) */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26348, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); /* "cuda/cudart.pyx":26346 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ goto __pyx_L5; } /* "cuda/cudart.pyx":26350 * cgraph = pgraph * else: * pgraph = int(cudaGraph_t(graph)) # <<<<<<<<<<<<<< * cgraph = pgraph * cdef ccudart.cudaGraphNode_t* cfrom_ = NULL */ /*else*/ { __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_graph); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26350, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26350, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_pgraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":26351 * else: * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t* cfrom_ = NULL * if len(from_) > 0: */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26351, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); } __pyx_L5:; /* "cuda/cudart.pyx":26352 * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph * cdef ccudart.cudaGraphNode_t* cfrom_ = NULL # <<<<<<<<<<<<<< * if len(from_) > 0: * cfrom_ = calloc(len(from_), sizeof(ccudart.cudaGraphNode_t)) */ __pyx_v_cfrom_ = NULL; /* "cuda/cudart.pyx":26353 * cgraph = pgraph * cdef ccudart.cudaGraphNode_t* cfrom_ = NULL * if len(from_) > 0: # <<<<<<<<<<<<<< * cfrom_ = calloc(len(from_), sizeof(ccudart.cudaGraphNode_t)) * if cfrom_ is NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_from_); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26353, __pyx_L1_error) __pyx_t_2 = (__pyx_t_6 > 0); if (__pyx_t_2) { /* "cuda/cudart.pyx":26354 * cdef ccudart.cudaGraphNode_t* cfrom_ = NULL * if len(from_) > 0: * cfrom_ = calloc(len(from_), sizeof(ccudart.cudaGraphNode_t)) # <<<<<<<<<<<<<< * if cfrom_ is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(from_)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) */ __pyx_t_6 = PyObject_Length(__pyx_v_from_); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26354, __pyx_L1_error) __pyx_v_cfrom_ = ((cudaGraphNode_t *)calloc(__pyx_t_6, (sizeof(cudaGraphNode_t)))); /* "cuda/cudart.pyx":26355 * if len(from_) > 0: * cfrom_ = calloc(len(from_), sizeof(ccudart.cudaGraphNode_t)) * if cfrom_ is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(from_)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ __pyx_t_2 = (__pyx_v_cfrom_ == NULL); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":26356 * cfrom_ = calloc(len(from_), sizeof(ccudart.cudaGraphNode_t)) * if cfrom_ is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(from_)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) # <<<<<<<<<<<<<< * else: * for idx in range(len(from_)): */ __pyx_t_6 = PyObject_Length(__pyx_v_from_); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26356, __pyx_L1_error) __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26356, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26356, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26356, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_n_u_x_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26356, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26356, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26356, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26356, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26356, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_7, 0, 0, 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __PYX_ERR(0, 26356, __pyx_L1_error) /* "cuda/cudart.pyx":26355 * if len(from_) > 0: * cfrom_ = calloc(len(from_), sizeof(ccudart.cudaGraphNode_t)) * if cfrom_ is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(from_)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ } /* "cuda/cudart.pyx":26358 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(from_)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: * for idx in range(len(from_)): # <<<<<<<<<<<<<< * cfrom_[idx] = (from_[idx])._ptr[0] * cdef ccudart.cudaGraphNode_t* cto = NULL */ /*else*/ { __pyx_t_6 = PyObject_Length(__pyx_v_from_); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26358, __pyx_L1_error) __pyx_t_8 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_idx = __pyx_t_9; /* "cuda/cudart.pyx":26359 * else: * for idx in range(len(from_)): * cfrom_[idx] = (from_[idx])._ptr[0] # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t* cto = NULL * if len(to) > 0: */ __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_from_, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26359, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); (__pyx_v_cfrom_[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_7)->__pyx_base._ptr[0])); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } /* "cuda/cudart.pyx":26353 * cgraph = pgraph * cdef ccudart.cudaGraphNode_t* cfrom_ = NULL * if len(from_) > 0: # <<<<<<<<<<<<<< * cfrom_ = calloc(len(from_), sizeof(ccudart.cudaGraphNode_t)) * if cfrom_ is NULL: */ } /* "cuda/cudart.pyx":26360 * for idx in range(len(from_)): * cfrom_[idx] = (from_[idx])._ptr[0] * cdef ccudart.cudaGraphNode_t* cto = NULL # <<<<<<<<<<<<<< * if len(to) > 0: * cto = calloc(len(to), sizeof(ccudart.cudaGraphNode_t)) */ __pyx_v_cto = NULL; /* "cuda/cudart.pyx":26361 * cfrom_[idx] = (from_[idx])._ptr[0] * cdef ccudart.cudaGraphNode_t* cto = NULL * if len(to) > 0: # <<<<<<<<<<<<<< * cto = calloc(len(to), sizeof(ccudart.cudaGraphNode_t)) * if cto is NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_to); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26361, __pyx_L1_error) __pyx_t_2 = (__pyx_t_6 > 0); if (__pyx_t_2) { /* "cuda/cudart.pyx":26362 * cdef ccudart.cudaGraphNode_t* cto = NULL * if len(to) > 0: * cto = calloc(len(to), sizeof(ccudart.cudaGraphNode_t)) # <<<<<<<<<<<<<< * if cto is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(to)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) */ __pyx_t_6 = PyObject_Length(__pyx_v_to); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26362, __pyx_L1_error) __pyx_v_cto = ((cudaGraphNode_t *)calloc(__pyx_t_6, (sizeof(cudaGraphNode_t)))); /* "cuda/cudart.pyx":26363 * if len(to) > 0: * cto = calloc(len(to), sizeof(ccudart.cudaGraphNode_t)) * if cto is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(to)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ __pyx_t_2 = (__pyx_v_cto == NULL); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":26364 * cto = calloc(len(to), sizeof(ccudart.cudaGraphNode_t)) * if cto is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(to)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) # <<<<<<<<<<<<<< * else: * for idx in range(len(to)): */ __pyx_t_6 = PyObject_Length(__pyx_v_to); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26364, __pyx_L1_error) __pyx_t_7 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26364, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26364, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26364, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_7, __pyx_n_u_x_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26364, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26364, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26364, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26364, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26364, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(0, 26364, __pyx_L1_error) /* "cuda/cudart.pyx":26363 * if len(to) > 0: * cto = calloc(len(to), sizeof(ccudart.cudaGraphNode_t)) * if cto is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(to)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ } /* "cuda/cudart.pyx":26366 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(to)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: * for idx in range(len(to)): # <<<<<<<<<<<<<< * cto[idx] = (to[idx])._ptr[0] * if numDependencies > len(from_): raise RuntimeError("List is too small: " + str(len(from_)) + " < " + str(numDependencies)) */ /*else*/ { __pyx_t_6 = PyObject_Length(__pyx_v_to); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26366, __pyx_L1_error) __pyx_t_8 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_idx = __pyx_t_9; /* "cuda/cudart.pyx":26367 * else: * for idx in range(len(to)): * cto[idx] = (to[idx])._ptr[0] # <<<<<<<<<<<<<< * if numDependencies > len(from_): raise RuntimeError("List is too small: " + str(len(from_)) + " < " + str(numDependencies)) * if numDependencies > len(to): raise RuntimeError("List is too small: " + str(len(to)) + " < " + str(numDependencies)) */ __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_to, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26367, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); (__pyx_v_cto[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._ptr[0])); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } /* "cuda/cudart.pyx":26361 * cfrom_[idx] = (from_[idx])._ptr[0] * cdef ccudart.cudaGraphNode_t* cto = NULL * if len(to) > 0: # <<<<<<<<<<<<<< * cto = calloc(len(to), sizeof(ccudart.cudaGraphNode_t)) * if cto is NULL: */ } /* "cuda/cudart.pyx":26368 * for idx in range(len(to)): * cto[idx] = (to[idx])._ptr[0] * if numDependencies > len(from_): raise RuntimeError("List is too small: " + str(len(from_)) + " < " + str(numDependencies)) # <<<<<<<<<<<<<< * if numDependencies > len(to): raise RuntimeError("List is too small: " + str(len(to)) + " < " + str(numDependencies)) * err = ccudart.cudaGraphRemoveDependencies(cgraph, (from_[0])._ptr if len(from_) == 1 else cfrom_, (to[0])._ptr if len(to) == 1 else cto, numDependencies) */ __pyx_t_6 = PyObject_Length(__pyx_v_from_); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26368, __pyx_L1_error) __pyx_t_2 = (__pyx_v_numDependencies > ((size_t)__pyx_t_6)); if (unlikely(__pyx_t_2)) { __pyx_t_6 = PyObject_Length(__pyx_v_from_); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26368, __pyx_L1_error) __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26368, __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, 26368, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_kp_u_List_is_too_small, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26368, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_kp_u__400); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26368, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyInt_FromSize_t(__pyx_v_numDependencies); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26368, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26368, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_7, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26368, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26368, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 26368, __pyx_L1_error) } /* "cuda/cudart.pyx":26369 * cto[idx] = (to[idx])._ptr[0] * if numDependencies > len(from_): raise RuntimeError("List is too small: " + str(len(from_)) + " < " + str(numDependencies)) * if numDependencies > len(to): raise RuntimeError("List is too small: " + str(len(to)) + " < " + str(numDependencies)) # <<<<<<<<<<<<<< * err = ccudart.cudaGraphRemoveDependencies(cgraph, (from_[0])._ptr if len(from_) == 1 else cfrom_, (to[0])._ptr if len(to) == 1 else cto, numDependencies) * if cfrom_ is not NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_to); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26369, __pyx_L1_error) __pyx_t_2 = (__pyx_v_numDependencies > ((size_t)__pyx_t_6)); if (unlikely(__pyx_t_2)) { __pyx_t_6 = PyObject_Length(__pyx_v_to); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26369, __pyx_L1_error) __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26369, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26369, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_List_is_too_small, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26369, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_kp_u__400); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26369, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyInt_FromSize_t(__pyx_v_numDependencies); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26369, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26369, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26369, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26369, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_7, 0, 0, 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __PYX_ERR(0, 26369, __pyx_L1_error) } /* "cuda/cudart.pyx":26370 * if numDependencies > len(from_): raise RuntimeError("List is too small: " + str(len(from_)) + " < " + str(numDependencies)) * if numDependencies > len(to): raise RuntimeError("List is too small: " + str(len(to)) + " < " + str(numDependencies)) * err = ccudart.cudaGraphRemoveDependencies(cgraph, (from_[0])._ptr if len(from_) == 1 else cfrom_, (to[0])._ptr if len(to) == 1 else cto, numDependencies) # <<<<<<<<<<<<<< * if cfrom_ is not NULL: * free(cfrom_) */ __pyx_t_6 = PyObject_Length(__pyx_v_from_); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26370, __pyx_L1_error) __pyx_t_2 = (__pyx_t_6 == 1); if (__pyx_t_2) { __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_from_, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26370, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_10 = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_7)->__pyx_base._ptr); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else { __pyx_t_10 = __pyx_v_cfrom_; } __pyx_t_6 = PyObject_Length(__pyx_v_to); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26370, __pyx_L1_error) __pyx_t_2 = (__pyx_t_6 == 1); if (__pyx_t_2) { __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_to, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26370, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_11 = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_7)->__pyx_base._ptr); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else { __pyx_t_11 = __pyx_v_cto; } __pyx_t_12 = __pyx_f_4cuda_7ccudart_cudaGraphRemoveDependencies(__pyx_v_cgraph, __pyx_t_10, __pyx_t_11, __pyx_v_numDependencies); if (unlikely(__pyx_t_12 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 26370, __pyx_L1_error) __pyx_v_err = __pyx_t_12; /* "cuda/cudart.pyx":26371 * if numDependencies > len(to): raise RuntimeError("List is too small: " + str(len(to)) + " < " + str(numDependencies)) * err = ccudart.cudaGraphRemoveDependencies(cgraph, (from_[0])._ptr if len(from_) == 1 else cfrom_, (to[0])._ptr if len(to) == 1 else cto, numDependencies) * if cfrom_ is not NULL: # <<<<<<<<<<<<<< * free(cfrom_) * if cto is not NULL: */ __pyx_t_2 = (__pyx_v_cfrom_ != NULL); if (__pyx_t_2) { /* "cuda/cudart.pyx":26372 * err = ccudart.cudaGraphRemoveDependencies(cgraph, (from_[0])._ptr if len(from_) == 1 else cfrom_, (to[0])._ptr if len(to) == 1 else cto, numDependencies) * if cfrom_ is not NULL: * free(cfrom_) # <<<<<<<<<<<<<< * if cto is not NULL: * free(cto) */ free(__pyx_v_cfrom_); /* "cuda/cudart.pyx":26371 * if numDependencies > len(to): raise RuntimeError("List is too small: " + str(len(to)) + " < " + str(numDependencies)) * err = ccudart.cudaGraphRemoveDependencies(cgraph, (from_[0])._ptr if len(from_) == 1 else cfrom_, (to[0])._ptr if len(to) == 1 else cto, numDependencies) * if cfrom_ is not NULL: # <<<<<<<<<<<<<< * free(cfrom_) * if cto is not NULL: */ } /* "cuda/cudart.pyx":26373 * if cfrom_ is not NULL: * free(cfrom_) * if cto is not NULL: # <<<<<<<<<<<<<< * free(cto) * return (cudaError_t(err),) */ __pyx_t_2 = (__pyx_v_cto != NULL); if (__pyx_t_2) { /* "cuda/cudart.pyx":26374 * free(cfrom_) * if cto is not NULL: * free(cto) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ free(__pyx_v_cto); /* "cuda/cudart.pyx":26373 * if cfrom_ is not NULL: * free(cfrom_) * if cto is not NULL: # <<<<<<<<<<<<<< * free(cto) * return (cudaError_t(err),) */ } /* "cuda/cudart.pyx":26375 * if cto is not NULL: * free(cto) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26375, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26375, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_13 = NULL; __pyx_t_14 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_13)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_13); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_14 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_t_1}; __pyx_t_7 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_14, 1+__pyx_t_14); __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26375, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26375, __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)) __PYX_ERR(0, 26375, __pyx_L1_error); __pyx_t_7 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":26305 * return (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]], 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_7); __Pyx_XDECREF(__pyx_t_13); __Pyx_AddTraceback("cuda.cudart.cudaGraphRemoveDependencies", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pgraph); __Pyx_XDECREF(__pyx_gb_4cuda_6cudart_27cudaGraphRemoveDependencies_2generator30); __Pyx_XDECREF(__pyx_gb_4cuda_6cudart_27cudaGraphRemoveDependencies_5generator31); __Pyx_XDECREF(__pyx_v_from_); __Pyx_XDECREF(__pyx_v_to); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":26377 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphRemoveDependencies_v2(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. (12.3+) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_471cudaGraphRemoveDependencies_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_6cudart_470cudaGraphRemoveDependencies_v2, "cudaGraphRemoveDependencies_v2(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 Removes dependency edges from a graph. (12.3+)\n\n The number of `pDependencies` to be removed is defined by\n `numDependencies`. Elements in `pFrom` and `pTo` at corresponding\n indices define a dependency. Each node in `pFrom` and `pTo` must belong\n to `graph`.\n\n If `numDependencies` is 0, elements in `pFrom` and `pTo` will be\n ignored. Specifying an edge that does not exist in the graph, with data\n matching `edgeData`, results in an error. `edgeData` is nullable, which\n is equivalent to passing default (zeroed) data for each edge.\n\n Parameters\n ----------\n graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n Graph from which to remove dependencies\n from : List[:py:obj:`~.cudaGraphNode_t`]\n Array of nodes that provide the dependencies\n to : List[:py:obj:`~.cudaGraphNode_t`]\n Array of dependent nodes\n edgeData : List[:py:obj:`~.cudaGraphEdgeData`]\n Optional array of edge data. If NULL, edge data is assumed to be\n default (zeroed).\n numDependencies : size_t\n Number of dependencies to be removed\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\n See Also\n --------\n :py:obj:`~.cudaGraphAddDependencies`, :py:obj:`~.cudaGraphGetEdges`, :py:obj:`~.cudaGraphNodeGetDependencies`, :py:obj:`~.cudaGraphNodeGetDependentNodes`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_471cudaGraphRemoveDependencies_v2 = {"cudaGraphRemoveDependencies_v2", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_471cudaGraphRemoveDependencies_v2, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_470cudaGraphRemoveDependencies_v2}; static PyObject *__pyx_pw_4cuda_6cudart_471cudaGraphRemoveDependencies_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_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_v2 (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_graph_2,&__pyx_n_s_from,&__pyx_n_s_to,&__pyx_n_s_edgeData,&__pyx_n_s_numDependencies,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_graph_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26377, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_from)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26377, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphRemoveDependencies_v2", 1, 5, 5, 1); __PYX_ERR(0, 26377, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_to)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26377, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphRemoveDependencies_v2", 1, 5, 5, 2); __PYX_ERR(0, 26377, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_edgeData)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26377, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphRemoveDependencies_v2", 1, 5, 5, 3); __PYX_ERR(0, 26377, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_numDependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[4]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26377, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphRemoveDependencies_v2", 1, 5, 5, 4); __PYX_ERR(0, 26377, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphRemoveDependencies_v2") < 0)) __PYX_ERR(0, 26377, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 5)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); } __pyx_v_graph = values[0]; __pyx_v_from_ = values[1]; __pyx_v_to = values[2]; __pyx_v_edgeData = values[3]; __pyx_v_numDependencies = __Pyx_PyInt_As_size_t(values[4]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 26378, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphRemoveDependencies_v2", 1, 5, 5, __pyx_nargs); __PYX_ERR(0, 26377, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphRemoveDependencies_v2", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_470cudaGraphRemoveDependencies_v2(__pyx_self, __pyx_v_graph, __pyx_v_from_, __pyx_v_to, __pyx_v_edgeData, __pyx_v_numDependencies); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_30cudaGraphRemoveDependencies_v2_2generator32(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":26415 * """ * 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[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * to = [] if to is None else to */ static PyObject *__pyx_pf_4cuda_6cudart_30cudaGraphRemoveDependencies_v2_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct_32_genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_32_genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_32_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_32_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 26415, __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_6cudart_30cudaGraphRemoveDependencies_v2_2generator32, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaGraphRemoveDependencies_v2_l, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 26415, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphRemoveDependencies_v2.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_6cudart_30cudaGraphRemoveDependencies_v2_2generator32(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_32_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_32_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 26415, 0, __PYX_ERR(0, 26415, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 26415, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 26415, __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, 26415, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26415, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 26415, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 26415, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26415, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 26415, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 26415, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26415, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 26415, __pyx_L1_error) } 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_ptype_4cuda_6cudart_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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_30cudaGraphRemoveDependencies_v2_5generator33(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":26418 * raise TypeError("Argument 'edgeData' is not instance of type (expected Tuple[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * to = [] if to is None else to * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in to): # <<<<<<<<<<<<<< * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * from_ = [] if from_ is None else from_ */ static PyObject *__pyx_pf_4cuda_6cudart_30cudaGraphRemoveDependencies_v2_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct_33_genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_33_genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_33_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_33_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 26418, __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_6cudart_30cudaGraphRemoveDependencies_v2_5generator33, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaGraphRemoveDependencies_v2_l, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 26418, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphRemoveDependencies_v2.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_6cudart_30cudaGraphRemoveDependencies_v2_5generator33(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_33_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_33_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 26418, 0, __PYX_ERR(0, 26418, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 26418, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 26418, __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, 26418, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26418, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 26418, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 26418, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26418, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 26418, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 26418, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26418, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 26418, __pyx_L1_error) } 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_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_30cudaGraphRemoveDependencies_v2_8generator34(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":26421 * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * from_ = [] if from_ is None else from_ * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in from_): # <<<<<<<<<<<<<< * raise TypeError("Argument 'from_' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ static PyObject *__pyx_pf_4cuda_6cudart_30cudaGraphRemoveDependencies_v2_6genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct_34_genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_34_genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_34_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_34_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 26421, __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_6cudart_30cudaGraphRemoveDependencies_v2_8generator34, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaGraphRemoveDependencies_v2_l, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 26421, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphRemoveDependencies_v2.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_6cudart_30cudaGraphRemoveDependencies_v2_8generator34(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_34_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_34_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 26421, 0, __PYX_ERR(0, 26421, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 26421, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 26421, __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, 26421, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26421, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 26421, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 26421, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26421, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 26421, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 26421, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26421, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 26421, __pyx_L1_error) } 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_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":26377 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphRemoveDependencies_v2(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. (12.3+) */ static PyObject *__pyx_pf_4cuda_6cudart_470cudaGraphRemoveDependencies_v2(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_cgraph; PyObject *__pyx_v_pgraph = NULL; cudaGraphNode_t *__pyx_v_cfrom_; Py_ssize_t __pyx_v_idx; cudaGraphNode_t *__pyx_v_cto; cudaGraphEdgeData *__pyx_v_cedgeData; cudaError_t __pyx_v_err; PyObject *__pyx_gb_4cuda_6cudart_30cudaGraphRemoveDependencies_v2_2generator32 = 0; PyObject *__pyx_gb_4cuda_6cudart_30cudaGraphRemoveDependencies_v2_5generator33 = 0; PyObject *__pyx_gb_4cuda_6cudart_30cudaGraphRemoveDependencies_v2_8generator34 = 0; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; Py_ssize_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; Py_ssize_t __pyx_t_8; Py_ssize_t __pyx_t_9; cudaGraphNode_t *__pyx_t_10; cudaGraphNode_t *__pyx_t_11; struct cudaGraphEdgeData_st *__pyx_t_12; cudaError_t __pyx_t_13; PyObject *__pyx_t_14 = NULL; unsigned int __pyx_t_15; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__590) __Pyx_RefNannySetupContext("cudaGraphRemoveDependencies_v2", 0); __Pyx_TraceCall("cudaGraphRemoveDependencies_v2", __pyx_f[0], 26377, 0, __PYX_ERR(0, 26377, __pyx_L1_error)); __Pyx_INCREF(__pyx_v_from_); __Pyx_INCREF(__pyx_v_to); __Pyx_INCREF(__pyx_v_edgeData); /* "cuda/cudart.pyx":26414 * :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[ccudart.cudaGraphEdgeData,] or List[ccudart.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, 26414, __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/cudart.pyx":26415 * """ * 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[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * to = [] if to is None else to */ __pyx_t_1 = __pyx_pf_4cuda_6cudart_30cudaGraphRemoveDependencies_v2_genexpr(NULL, __pyx_v_edgeData); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26415, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26415, __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, 26415, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_4 = (!__pyx_t_2); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":26416 * 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[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") # <<<<<<<<<<<<<< * to = [] if to is None else to * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in to): */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__588, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26416, __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, 26416, __pyx_L1_error) /* "cuda/cudart.pyx":26415 * """ * 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[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * to = [] if to is None else to */ } /* "cuda/cudart.pyx":26417 * if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in edgeData): * raise TypeError("Argument 'edgeData' is not instance of type (expected Tuple[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * to = [] if to is None else to # <<<<<<<<<<<<<< * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in to): * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.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, 26417, __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/cudart.pyx":26418 * raise TypeError("Argument 'edgeData' is not instance of type (expected Tuple[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * to = [] if to is None else to * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in to): # <<<<<<<<<<<<<< * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * from_ = [] if from_ is None else from_ */ __pyx_t_3 = __pyx_pf_4cuda_6cudart_30cudaGraphRemoveDependencies_v2_3genexpr(NULL, __pyx_v_to); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26418, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_Generator_Next(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26418, __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, 26418, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_2 = (!__pyx_t_4); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":26419 * to = [] if to is None else to * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in to): * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") # <<<<<<<<<<<<<< * from_ = [] if from_ is None else from_ * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in from_): */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__585, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26419, __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, 26419, __pyx_L1_error) /* "cuda/cudart.pyx":26418 * raise TypeError("Argument 'edgeData' is not instance of type (expected Tuple[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * to = [] if to is None else to * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in to): # <<<<<<<<<<<<<< * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * from_ = [] if from_ is None else from_ */ } /* "cuda/cudart.pyx":26420 * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in to): * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * from_ = [] if from_ is None else from_ # <<<<<<<<<<<<<< * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in from_): * raise TypeError("Argument 'from_' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.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, 26420, __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/cudart.pyx":26421 * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * from_ = [] if from_ is None else from_ * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in from_): # <<<<<<<<<<<<<< * raise TypeError("Argument 'from_' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ __pyx_t_1 = __pyx_pf_4cuda_6cudart_30cudaGraphRemoveDependencies_v2_6genexpr(NULL, __pyx_v_from_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26421, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26421, __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, 26421, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_4 = (!__pyx_t_2); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":26422 * from_ = [] if from_ is None else from_ * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in from_): * raise TypeError("Argument 'from_' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") # <<<<<<<<<<<<<< * cdef ccudart.cudaGraph_t cgraph * if graph is None: */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__586, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26422, __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, 26422, __pyx_L1_error) /* "cuda/cudart.pyx":26421 * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * from_ = [] if from_ is None else from_ * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in from_): # <<<<<<<<<<<<<< * raise TypeError("Argument 'from_' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ } /* "cuda/cudart.pyx":26424 * raise TypeError("Argument 'from_' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_4 = (__pyx_v_graph == Py_None); if (__pyx_t_4) { /* "cuda/cudart.pyx":26425 * cdef ccudart.cudaGraph_t cgraph * if graph is None: * cgraph = 0 # <<<<<<<<<<<<<< * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) */ __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":26424 * raise TypeError("Argument 'from_' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":26426 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_4 = __pyx_t_2; __pyx_L7_bool_binop_done:; if (__pyx_t_4) { /* "cuda/cudart.pyx":26427 * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) # <<<<<<<<<<<<<< * cgraph = pgraph * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26427, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pgraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":26428 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) * cgraph = pgraph # <<<<<<<<<<<<<< * else: * pgraph = int(cudaGraph_t(graph)) */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26428, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); /* "cuda/cudart.pyx":26426 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ goto __pyx_L6; } /* "cuda/cudart.pyx":26430 * cgraph = pgraph * else: * pgraph = int(cudaGraph_t(graph)) # <<<<<<<<<<<<<< * cgraph = pgraph * cdef ccudart.cudaGraphNode_t* cfrom_ = NULL */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26430, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26430, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pgraph = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":26431 * else: * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t* cfrom_ = NULL * if len(from_) > 0: */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26431, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); } __pyx_L6:; /* "cuda/cudart.pyx":26432 * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph * cdef ccudart.cudaGraphNode_t* cfrom_ = NULL # <<<<<<<<<<<<<< * if len(from_) > 0: * cfrom_ = calloc(len(from_), sizeof(ccudart.cudaGraphNode_t)) */ __pyx_v_cfrom_ = NULL; /* "cuda/cudart.pyx":26433 * cgraph = pgraph * cdef ccudart.cudaGraphNode_t* cfrom_ = NULL * if len(from_) > 0: # <<<<<<<<<<<<<< * cfrom_ = calloc(len(from_), sizeof(ccudart.cudaGraphNode_t)) * if cfrom_ is NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_from_); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26433, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 > 0); if (__pyx_t_4) { /* "cuda/cudart.pyx":26434 * cdef ccudart.cudaGraphNode_t* cfrom_ = NULL * if len(from_) > 0: * cfrom_ = calloc(len(from_), sizeof(ccudart.cudaGraphNode_t)) # <<<<<<<<<<<<<< * if cfrom_ is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(from_)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) */ __pyx_t_6 = PyObject_Length(__pyx_v_from_); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26434, __pyx_L1_error) __pyx_v_cfrom_ = ((cudaGraphNode_t *)calloc(__pyx_t_6, (sizeof(cudaGraphNode_t)))); /* "cuda/cudart.pyx":26435 * if len(from_) > 0: * cfrom_ = calloc(len(from_), sizeof(ccudart.cudaGraphNode_t)) * if cfrom_ is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(from_)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ __pyx_t_4 = (__pyx_v_cfrom_ == NULL); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":26436 * cfrom_ = calloc(len(from_), sizeof(ccudart.cudaGraphNode_t)) * if cfrom_ is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(from_)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) # <<<<<<<<<<<<<< * else: * for idx in range(len(from_)): */ __pyx_t_6 = PyObject_Length(__pyx_v_from_); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26436, __pyx_L1_error) __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26436, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26436, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26436, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_n_u_x_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26436, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26436, __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, 26436, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26436, __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 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26436, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_7, 0, 0, 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __PYX_ERR(0, 26436, __pyx_L1_error) /* "cuda/cudart.pyx":26435 * if len(from_) > 0: * cfrom_ = calloc(len(from_), sizeof(ccudart.cudaGraphNode_t)) * if cfrom_ is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(from_)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ } /* "cuda/cudart.pyx":26438 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(from_)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: * for idx in range(len(from_)): # <<<<<<<<<<<<<< * cfrom_[idx] = (from_[idx])._ptr[0] * cdef ccudart.cudaGraphNode_t* cto = NULL */ /*else*/ { __pyx_t_6 = PyObject_Length(__pyx_v_from_); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26438, __pyx_L1_error) __pyx_t_8 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_idx = __pyx_t_9; /* "cuda/cudart.pyx":26439 * else: * for idx in range(len(from_)): * cfrom_[idx] = (from_[idx])._ptr[0] # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t* cto = NULL * if len(to) > 0: */ __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_from_, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26439, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); (__pyx_v_cfrom_[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_7)->__pyx_base._ptr[0])); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } /* "cuda/cudart.pyx":26433 * cgraph = pgraph * cdef ccudart.cudaGraphNode_t* cfrom_ = NULL * if len(from_) > 0: # <<<<<<<<<<<<<< * cfrom_ = calloc(len(from_), sizeof(ccudart.cudaGraphNode_t)) * if cfrom_ is NULL: */ } /* "cuda/cudart.pyx":26440 * for idx in range(len(from_)): * cfrom_[idx] = (from_[idx])._ptr[0] * cdef ccudart.cudaGraphNode_t* cto = NULL # <<<<<<<<<<<<<< * if len(to) > 0: * cto = calloc(len(to), sizeof(ccudart.cudaGraphNode_t)) */ __pyx_v_cto = NULL; /* "cuda/cudart.pyx":26441 * cfrom_[idx] = (from_[idx])._ptr[0] * cdef ccudart.cudaGraphNode_t* cto = NULL * if len(to) > 0: # <<<<<<<<<<<<<< * cto = calloc(len(to), sizeof(ccudart.cudaGraphNode_t)) * if cto is NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_to); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26441, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 > 0); if (__pyx_t_4) { /* "cuda/cudart.pyx":26442 * cdef ccudart.cudaGraphNode_t* cto = NULL * if len(to) > 0: * cto = calloc(len(to), sizeof(ccudart.cudaGraphNode_t)) # <<<<<<<<<<<<<< * if cto is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(to)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) */ __pyx_t_6 = PyObject_Length(__pyx_v_to); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26442, __pyx_L1_error) __pyx_v_cto = ((cudaGraphNode_t *)calloc(__pyx_t_6, (sizeof(cudaGraphNode_t)))); /* "cuda/cudart.pyx":26443 * if len(to) > 0: * cto = calloc(len(to), sizeof(ccudart.cudaGraphNode_t)) * if cto is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(to)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ __pyx_t_4 = (__pyx_v_cto == NULL); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":26444 * cto = calloc(len(to), sizeof(ccudart.cudaGraphNode_t)) * if cto is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(to)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) # <<<<<<<<<<<<<< * else: * for idx in range(len(to)): */ __pyx_t_6 = PyObject_Length(__pyx_v_to); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26444, __pyx_L1_error) __pyx_t_7 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26444, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26444, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26444, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_7, __pyx_n_u_x_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26444, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26444, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26444, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26444, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26444, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 26444, __pyx_L1_error) /* "cuda/cudart.pyx":26443 * if len(to) > 0: * cto = calloc(len(to), sizeof(ccudart.cudaGraphNode_t)) * if cto is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(to)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ } /* "cuda/cudart.pyx":26446 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(to)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: * for idx in range(len(to)): # <<<<<<<<<<<<<< * cto[idx] = (to[idx])._ptr[0] * cdef ccudart.cudaGraphEdgeData* cedgeData = NULL */ /*else*/ { __pyx_t_6 = PyObject_Length(__pyx_v_to); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26446, __pyx_L1_error) __pyx_t_8 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_idx = __pyx_t_9; /* "cuda/cudart.pyx":26447 * else: * for idx in range(len(to)): * cto[idx] = (to[idx])._ptr[0] # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphEdgeData* cedgeData = NULL * if len(edgeData) > 0: */ __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_to, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26447, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); (__pyx_v_cto[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_3)->__pyx_base._ptr[0])); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } } /* "cuda/cudart.pyx":26441 * cfrom_[idx] = (from_[idx])._ptr[0] * cdef ccudart.cudaGraphNode_t* cto = NULL * if len(to) > 0: # <<<<<<<<<<<<<< * cto = calloc(len(to), sizeof(ccudart.cudaGraphNode_t)) * if cto is NULL: */ } /* "cuda/cudart.pyx":26448 * for idx in range(len(to)): * cto[idx] = (to[idx])._ptr[0] * cdef ccudart.cudaGraphEdgeData* cedgeData = NULL # <<<<<<<<<<<<<< * if len(edgeData) > 0: * cedgeData = calloc(len(edgeData), sizeof(ccudart.cudaGraphEdgeData)) */ __pyx_v_cedgeData = NULL; /* "cuda/cudart.pyx":26449 * cto[idx] = (to[idx])._ptr[0] * cdef ccudart.cudaGraphEdgeData* cedgeData = NULL * if len(edgeData) > 0: # <<<<<<<<<<<<<< * cedgeData = calloc(len(edgeData), sizeof(ccudart.cudaGraphEdgeData)) * if cedgeData is NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_edgeData); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26449, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 > 0); if (__pyx_t_4) { /* "cuda/cudart.pyx":26450 * cdef ccudart.cudaGraphEdgeData* cedgeData = NULL * if len(edgeData) > 0: * cedgeData = calloc(len(edgeData), sizeof(ccudart.cudaGraphEdgeData)) # <<<<<<<<<<<<<< * if cedgeData is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(edgeData)) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) */ __pyx_t_6 = PyObject_Length(__pyx_v_edgeData); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26450, __pyx_L1_error) __pyx_v_cedgeData = ((cudaGraphEdgeData *)calloc(__pyx_t_6, (sizeof(cudaGraphEdgeData)))); /* "cuda/cudart.pyx":26451 * if len(edgeData) > 0: * cedgeData = calloc(len(edgeData), sizeof(ccudart.cudaGraphEdgeData)) * if cedgeData is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(edgeData)) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) * for idx in range(len(edgeData)): */ __pyx_t_4 = (__pyx_v_cedgeData == NULL); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":26452 * cedgeData = calloc(len(edgeData), sizeof(ccudart.cudaGraphEdgeData)) * if cedgeData is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(edgeData)) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) # <<<<<<<<<<<<<< * for idx in range(len(edgeData)): * string.memcpy(&cedgeData[idx], (edgeData[idx])._ptr, sizeof(ccudart.cudaGraphEdgeData)) */ __pyx_t_6 = PyObject_Length(__pyx_v_edgeData); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26452, __pyx_L1_error) __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26452, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26452, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26452, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_n_u_x_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26452, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphEdgeData))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26452, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26452, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_7, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26452, __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 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26452, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(0, 26452, __pyx_L1_error) /* "cuda/cudart.pyx":26451 * if len(edgeData) > 0: * cedgeData = calloc(len(edgeData), sizeof(ccudart.cudaGraphEdgeData)) * if cedgeData is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(edgeData)) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) * for idx in range(len(edgeData)): */ } /* "cuda/cudart.pyx":26453 * if cedgeData is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(edgeData)) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) * for idx in range(len(edgeData)): # <<<<<<<<<<<<<< * string.memcpy(&cedgeData[idx], (edgeData[idx])._ptr, sizeof(ccudart.cudaGraphEdgeData)) * err = ccudart.cudaGraphRemoveDependencies_v2(cgraph, (from_[0])._ptr if len(from_) == 1 else cfrom_, (to[0])._ptr if len(to) == 1 else cto, (edgeData[0])._ptr if len(edgeData) == 1 else cedgeData, numDependencies) */ __pyx_t_6 = PyObject_Length(__pyx_v_edgeData); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26453, __pyx_L1_error) __pyx_t_8 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_idx = __pyx_t_9; /* "cuda/cudart.pyx":26454 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(edgeData)) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) * for idx in range(len(edgeData)): * string.memcpy(&cedgeData[idx], (edgeData[idx])._ptr, sizeof(ccudart.cudaGraphEdgeData)) # <<<<<<<<<<<<<< * err = ccudart.cudaGraphRemoveDependencies_v2(cgraph, (from_[0])._ptr if len(from_) == 1 else cfrom_, (to[0])._ptr if len(to) == 1 else cto, (edgeData[0])._ptr if len(edgeData) == 1 else cedgeData, numDependencies) * if cfrom_ is not NULL: */ __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_edgeData, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26454, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); (void)(memcpy((&(__pyx_v_cedgeData[__pyx_v_idx])), ((struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData *)__pyx_t_1)->__pyx_base._ptr, (sizeof(cudaGraphEdgeData)))); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } /* "cuda/cudart.pyx":26449 * cto[idx] = (to[idx])._ptr[0] * cdef ccudart.cudaGraphEdgeData* cedgeData = NULL * if len(edgeData) > 0: # <<<<<<<<<<<<<< * cedgeData = calloc(len(edgeData), sizeof(ccudart.cudaGraphEdgeData)) * if cedgeData is NULL: */ } /* "cuda/cudart.pyx":26455 * for idx in range(len(edgeData)): * string.memcpy(&cedgeData[idx], (edgeData[idx])._ptr, sizeof(ccudart.cudaGraphEdgeData)) * err = ccudart.cudaGraphRemoveDependencies_v2(cgraph, (from_[0])._ptr if len(from_) == 1 else cfrom_, (to[0])._ptr if len(to) == 1 else cto, (edgeData[0])._ptr if len(edgeData) == 1 else cedgeData, numDependencies) # <<<<<<<<<<<<<< * if cfrom_ is not NULL: * free(cfrom_) */ __pyx_t_6 = PyObject_Length(__pyx_v_from_); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26455, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 == 1); if (__pyx_t_4) { __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_from_, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26455, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_10 = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._ptr); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_10 = __pyx_v_cfrom_; } __pyx_t_6 = PyObject_Length(__pyx_v_to); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26455, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 == 1); if (__pyx_t_4) { __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_to, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26455, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_11 = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._ptr); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_11 = __pyx_v_cto; } __pyx_t_6 = PyObject_Length(__pyx_v_edgeData); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26455, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 == 1); if (__pyx_t_4) { __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_edgeData, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26455, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_12 = ((struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData *)__pyx_t_1)->__pyx_base._ptr; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else { __pyx_t_12 = __pyx_v_cedgeData; } __pyx_t_13 = __pyx_f_4cuda_7ccudart_cudaGraphRemoveDependencies_v2(__pyx_v_cgraph, __pyx_t_10, __pyx_t_11, __pyx_t_12, __pyx_v_numDependencies); if (unlikely(__pyx_t_13 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 26455, __pyx_L1_error) __pyx_v_err = __pyx_t_13; /* "cuda/cudart.pyx":26456 * string.memcpy(&cedgeData[idx], (edgeData[idx])._ptr, sizeof(ccudart.cudaGraphEdgeData)) * err = ccudart.cudaGraphRemoveDependencies_v2(cgraph, (from_[0])._ptr if len(from_) == 1 else cfrom_, (to[0])._ptr if len(to) == 1 else cto, (edgeData[0])._ptr if len(edgeData) == 1 else cedgeData, numDependencies) * if cfrom_ is not NULL: # <<<<<<<<<<<<<< * free(cfrom_) * if cto is not NULL: */ __pyx_t_4 = (__pyx_v_cfrom_ != NULL); if (__pyx_t_4) { /* "cuda/cudart.pyx":26457 * err = ccudart.cudaGraphRemoveDependencies_v2(cgraph, (from_[0])._ptr if len(from_) == 1 else cfrom_, (to[0])._ptr if len(to) == 1 else cto, (edgeData[0])._ptr if len(edgeData) == 1 else cedgeData, numDependencies) * if cfrom_ is not NULL: * free(cfrom_) # <<<<<<<<<<<<<< * if cto is not NULL: * free(cto) */ free(__pyx_v_cfrom_); /* "cuda/cudart.pyx":26456 * string.memcpy(&cedgeData[idx], (edgeData[idx])._ptr, sizeof(ccudart.cudaGraphEdgeData)) * err = ccudart.cudaGraphRemoveDependencies_v2(cgraph, (from_[0])._ptr if len(from_) == 1 else cfrom_, (to[0])._ptr if len(to) == 1 else cto, (edgeData[0])._ptr if len(edgeData) == 1 else cedgeData, numDependencies) * if cfrom_ is not NULL: # <<<<<<<<<<<<<< * free(cfrom_) * if cto is not NULL: */ } /* "cuda/cudart.pyx":26458 * if cfrom_ is not NULL: * free(cfrom_) * if cto is not NULL: # <<<<<<<<<<<<<< * free(cto) * if cedgeData is not NULL: */ __pyx_t_4 = (__pyx_v_cto != NULL); if (__pyx_t_4) { /* "cuda/cudart.pyx":26459 * free(cfrom_) * if cto is not NULL: * free(cto) # <<<<<<<<<<<<<< * if cedgeData is not NULL: * free(cedgeData) */ free(__pyx_v_cto); /* "cuda/cudart.pyx":26458 * if cfrom_ is not NULL: * free(cfrom_) * if cto is not NULL: # <<<<<<<<<<<<<< * free(cto) * if cedgeData is not NULL: */ } /* "cuda/cudart.pyx":26460 * if cto is not NULL: * free(cto) * if cedgeData is not NULL: # <<<<<<<<<<<<<< * free(cedgeData) * return (cudaError_t(err),) */ __pyx_t_4 = (__pyx_v_cedgeData != NULL); if (__pyx_t_4) { /* "cuda/cudart.pyx":26461 * free(cto) * if cedgeData is not NULL: * free(cedgeData) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ free(__pyx_v_cedgeData); /* "cuda/cudart.pyx":26460 * if cto is not NULL: * free(cto) * if cedgeData is not NULL: # <<<<<<<<<<<<<< * free(cedgeData) * return (cudaError_t(err),) */ } /* "cuda/cudart.pyx":26462 * if cedgeData is not NULL: * free(cedgeData) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26462, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26462, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_14 = NULL; __pyx_t_15 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_14)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_14); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_15 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_14, __pyx_t_7}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_15, 1+__pyx_t_15); __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26462, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26462, __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)) __PYX_ERR(0, 26462, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":26377 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphRemoveDependencies_v2(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. (12.3+) */ /* 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_14); __Pyx_AddTraceback("cuda.cudart.cudaGraphRemoveDependencies_v2", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pgraph); __Pyx_XDECREF(__pyx_gb_4cuda_6cudart_30cudaGraphRemoveDependencies_v2_2generator32); __Pyx_XDECREF(__pyx_gb_4cuda_6cudart_30cudaGraphRemoveDependencies_v2_5generator33); __Pyx_XDECREF(__pyx_gb_4cuda_6cudart_30cudaGraphRemoveDependencies_v2_8generator34); __Pyx_XDECREF(__pyx_v_from_); __Pyx_XDECREF(__pyx_v_to); __Pyx_XDECREF(__pyx_v_edgeData); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":26464 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphDestroyNode(node): * """ Remove a node from the graph. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_473cudaGraphDestroyNode(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_472cudaGraphDestroyNode, "cudaGraphDestroyNode(node)\n Remove a node from the graph.\n\n Removes `node` from its graph. This operation also severs any\n dependencies of other nodes on `node` and vice versa.\n\n Dependencies cannot be removed from graphs which contain allocation or\n free nodes. Any attempt to do so will return an error.\n\n Parameters\n ----------\n node : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Node to remove\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\n See Also\n --------\n :py:obj:`~.cudaGraphAddChildGraphNode`, :py:obj:`~.cudaGraphAddEmptyNode`, :py:obj:`~.cudaGraphAddKernelNode`, :py:obj:`~.cudaGraphAddHostNode`, :py:obj:`~.cudaGraphAddMemcpyNode`, :py:obj:`~.cudaGraphAddMemsetNode`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_473cudaGraphDestroyNode = {"cudaGraphDestroyNode", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_473cudaGraphDestroyNode, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_472cudaGraphDestroyNode}; static PyObject *__pyx_pw_4cuda_6cudart_473cudaGraphDestroyNode(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_node_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_node_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26464, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphDestroyNode") < 0)) __PYX_ERR(0, 26464, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_node = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphDestroyNode", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 26464, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphDestroyNode", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_472cudaGraphDestroyNode(__pyx_self, __pyx_v_node); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_472cudaGraphDestroyNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node) { cudaGraphNode_t __pyx_v_cnode; PyObject *__pyx_v_pnode = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__591) __Pyx_RefNannySetupContext("cudaGraphDestroyNode", 1); __Pyx_TraceCall("cudaGraphDestroyNode", __pyx_f[0], 26464, 0, __PYX_ERR(0, 26464, __pyx_L1_error)); /* "cuda/cudart.pyx":26489 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_node == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":26490 * cdef ccudart.cudaGraphNode_t cnode * if node is None: * cnode = 0 # <<<<<<<<<<<<<< * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) */ __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":26489 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":26491 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":26492 * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) # <<<<<<<<<<<<<< * cnode = pnode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26492, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pnode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":26493 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) * cnode = pnode # <<<<<<<<<<<<<< * else: * pnode = int(cudaGraphNode_t(node)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26493, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":26491 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ goto __pyx_L3; } /* "cuda/cudart.pyx":26495 * cnode = pnode * else: * pnode = int(cudaGraphNode_t(node)) # <<<<<<<<<<<<<< * cnode = pnode * err = ccudart.cudaGraphDestroyNode(cnode) */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26495, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26495, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pnode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":26496 * else: * pnode = int(cudaGraphNode_t(node)) * cnode = pnode # <<<<<<<<<<<<<< * err = ccudart.cudaGraphDestroyNode(cnode) * return (cudaError_t(err),) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26496, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":26497 * pnode = int(cudaGraphNode_t(node)) * cnode = pnode * err = ccudart.cudaGraphDestroyNode(cnode) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaGraphDestroyNode(__pyx_v_cnode); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 26497, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":26498 * cnode = pnode * err = ccudart.cudaGraphDestroyNode(cnode) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26498, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26498, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26498, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26498, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 26498, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":26464 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaGraphDestroyNode", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pnode); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":26500 * return (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_6cudart_475cudaGraphInstantiate(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_474cudaGraphInstantiate, "cudaGraphInstantiate(graph, unsigned long long flags)\n Creates an executable graph from a graph.\n\n Instantiates `graph` as an executable graph. The graph is validated for\n any structural constraints or intra-node constraints which were not\n previously validated. If instantiation is successful, a handle to the\n instantiated graph is returned in `pGraphExec`.\n\n The `flags` parameter controls the behavior of instantiation and\n subsequent 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\n If `graph` contains any allocation or free nodes, there can be at most\n one executable graph in existence for that graph at a time. An attempt\n to instantiate a second executable graph before destroying the first\n with :py:obj:`~.cudaGraphExecDestroy` will result in an error. The same\n also applies if `graph` contains any device-updatable kernel nodes.\n\n Graphs instantiated for launch on the device have additional\n restrictions 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\n If `graph` is not instantiated for launch on the device but contains\n kernels which call device-side :py:obj:`~.cudaGraphLaunch()` from\n multiple devices, this will result in an error.\n\n Parameters\n ----------\n graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n Graph to instantiate\n flags : unsigned long long\n Flags to control instantiation. See\n :py:obj:`~.CUgraphInstantiate_flags`.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n pGraphExec : :py:obj:`~.cudaGraphExec_t`\n Returns instantiated graph\n\n See Also\n --------\n :py:obj:`~.cudaGraphInstantiateWithFlags`, :py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphUpload`, :py:obj:`~.cudaGraphLaunch`, :py:obj:`~.cudaGraphExecDestroy`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_475cudaGraphInstantiate = {"cudaGraphInstantiate", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_475cudaGraphInstantiate, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_474cudaGraphInstantiate}; static PyObject *__pyx_pw_4cuda_6cudart_475cudaGraphInstantiate(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_graph_2,&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_graph_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26500, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26500, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphInstantiate", 1, 2, 2, 1); __PYX_ERR(0, 26500, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphInstantiate") < 0)) __PYX_ERR(0, 26500, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_graph = values[0]; __pyx_v_flags = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v_flags == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26501, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphInstantiate", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 26500, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphInstantiate", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_474cudaGraphInstantiate(__pyx_self, __pyx_v_graph, __pyx_v_flags); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_474cudaGraphInstantiate(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, unsigned PY_LONG_LONG __pyx_v_flags) { cudaGraph_t __pyx_v_cgraph; PyObject *__pyx_v_pgraph = NULL; struct __pyx_obj_4cuda_6cudart_cudaGraphExec_t *__pyx_v_pGraphExec = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__592) __Pyx_RefNannySetupContext("cudaGraphInstantiate", 1); __Pyx_TraceCall("cudaGraphInstantiate", __pyx_f[0], 26500, 0, __PYX_ERR(0, 26500, __pyx_L1_error)); /* "cuda/cudart.pyx":26587 * """ * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_1 = (__pyx_v_graph == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":26588 * cdef ccudart.cudaGraph_t cgraph * if graph is None: * cgraph = 0 # <<<<<<<<<<<<<< * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) */ __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":26587 * """ * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":26589 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":26590 * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) # <<<<<<<<<<<<<< * cgraph = pgraph * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26590, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pgraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":26591 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) * cgraph = pgraph # <<<<<<<<<<<<<< * else: * pgraph = int(cudaGraph_t(graph)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26591, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":26589 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ goto __pyx_L3; } /* "cuda/cudart.pyx":26593 * cgraph = pgraph * else: * pgraph = int(cudaGraph_t(graph)) # <<<<<<<<<<<<<< * cgraph = pgraph * cdef cudaGraphExec_t pGraphExec = cudaGraphExec_t() */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26593, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26593, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pgraph = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":26594 * else: * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph # <<<<<<<<<<<<<< * cdef cudaGraphExec_t pGraphExec = cudaGraphExec_t() * err = ccudart.cudaGraphInstantiate(pGraphExec._ptr, cgraph, flags) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26594, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":26595 * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph * cdef cudaGraphExec_t pGraphExec = cudaGraphExec_t() # <<<<<<<<<<<<<< * err = ccudart.cudaGraphInstantiate(pGraphExec._ptr, cgraph, flags) * return (cudaError_t(err), pGraphExec) */ __pyx_t_5 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphExec_t)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26595, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pGraphExec = ((struct __pyx_obj_4cuda_6cudart_cudaGraphExec_t *)__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":26596 * cgraph = pgraph * cdef cudaGraphExec_t pGraphExec = cudaGraphExec_t() * err = ccudart.cudaGraphInstantiate(pGraphExec._ptr, cgraph, flags) # <<<<<<<<<<<<<< * return (cudaError_t(err), pGraphExec) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaGraphInstantiate(((cudaGraphExec_t *)__pyx_v_pGraphExec->__pyx_base._ptr), __pyx_v_cgraph, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 26596, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":26597 * cdef cudaGraphExec_t pGraphExec = cudaGraphExec_t() * err = ccudart.cudaGraphInstantiate(pGraphExec._ptr, cgraph, flags) * return (cudaError_t(err), pGraphExec) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26597, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26597, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26597, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26597, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 26597, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pGraphExec); __Pyx_GIVEREF((PyObject *)__pyx_v_pGraphExec); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_v_pGraphExec))) __PYX_ERR(0, 26597, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":26500 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":26599 * return (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_6cudart_477cudaGraphInstantiateWithFlags(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_476cudaGraphInstantiateWithFlags, "cudaGraphInstantiateWithFlags(graph, unsigned long long flags)\n Creates an executable graph from a graph.\n\n Instantiates `graph` as an executable graph. The graph is validated for\n any structural constraints or intra-node constraints which were not\n previously validated. If instantiation is successful, a handle to the\n instantiated graph is returned in `pGraphExec`.\n\n The `flags` parameter controls the behavior of instantiation and\n subsequent 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\n If `graph` contains any allocation or free nodes, there can be at most\n one executable graph in existence for that graph at a time. An attempt\n to instantiate a second executable graph before destroying the first\n with :py:obj:`~.cudaGraphExecDestroy` will result in an error. The same\n also applies if `graph` contains any device-updatable kernel nodes.\n\n If `graph` contains kernels which call device-side\n :py:obj:`~.cudaGraphLaunc""h()` from multiple devices, this will result\n in an error.\n\n Graphs instantiated for launch on the device have additional\n restrictions 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\n Parameters\n ----------\n graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n Graph to instantiate\n flags : unsigned long long\n Flags to control instantiation. See\n :py:obj:`~.CUgraphInstantiate_flags`.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n pGraphExec : :py:obj:`~.cudaGraphExec_t`\n Returns instantiated graph\n\n See Also\n --------\n :py:obj:`~.cudaGraphInstantiate`, :py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphUpload`, :py:obj:`~.cudaGraphLaunch`, :py:obj:`~.cudaGraphExecDestroy`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_477cudaGraphInstantiateWithFlags = {"cudaGraphInstantiateWithFlags", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_477cudaGraphInstantiateWithFlags, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_476cudaGraphInstantiateWithFlags}; static PyObject *__pyx_pw_4cuda_6cudart_477cudaGraphInstantiateWithFlags(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_graph_2,&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_graph_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26599, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26599, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphInstantiateWithFlags", 1, 2, 2, 1); __PYX_ERR(0, 26599, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphInstantiateWithFlags") < 0)) __PYX_ERR(0, 26599, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_graph = values[0]; __pyx_v_flags = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v_flags == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26600, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphInstantiateWithFlags", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 26599, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphInstantiateWithFlags", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_476cudaGraphInstantiateWithFlags(__pyx_self, __pyx_v_graph, __pyx_v_flags); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_476cudaGraphInstantiateWithFlags(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, unsigned PY_LONG_LONG __pyx_v_flags) { cudaGraph_t __pyx_v_cgraph; PyObject *__pyx_v_pgraph = NULL; struct __pyx_obj_4cuda_6cudart_cudaGraphExec_t *__pyx_v_pGraphExec = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__593) __Pyx_RefNannySetupContext("cudaGraphInstantiateWithFlags", 1); __Pyx_TraceCall("cudaGraphInstantiateWithFlags", __pyx_f[0], 26599, 0, __PYX_ERR(0, 26599, __pyx_L1_error)); /* "cuda/cudart.pyx":26688 * """ * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_1 = (__pyx_v_graph == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":26689 * cdef ccudart.cudaGraph_t cgraph * if graph is None: * cgraph = 0 # <<<<<<<<<<<<<< * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) */ __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":26688 * """ * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":26690 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":26691 * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) # <<<<<<<<<<<<<< * cgraph = pgraph * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26691, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pgraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":26692 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) * cgraph = pgraph # <<<<<<<<<<<<<< * else: * pgraph = int(cudaGraph_t(graph)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26692, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":26690 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ goto __pyx_L3; } /* "cuda/cudart.pyx":26694 * cgraph = pgraph * else: * pgraph = int(cudaGraph_t(graph)) # <<<<<<<<<<<<<< * cgraph = pgraph * cdef cudaGraphExec_t pGraphExec = cudaGraphExec_t() */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26694, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26694, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pgraph = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":26695 * else: * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph # <<<<<<<<<<<<<< * cdef cudaGraphExec_t pGraphExec = cudaGraphExec_t() * err = ccudart.cudaGraphInstantiateWithFlags(pGraphExec._ptr, cgraph, flags) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26695, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":26696 * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph * cdef cudaGraphExec_t pGraphExec = cudaGraphExec_t() # <<<<<<<<<<<<<< * err = ccudart.cudaGraphInstantiateWithFlags(pGraphExec._ptr, cgraph, flags) * return (cudaError_t(err), pGraphExec) */ __pyx_t_5 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphExec_t)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26696, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pGraphExec = ((struct __pyx_obj_4cuda_6cudart_cudaGraphExec_t *)__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":26697 * cgraph = pgraph * cdef cudaGraphExec_t pGraphExec = cudaGraphExec_t() * err = ccudart.cudaGraphInstantiateWithFlags(pGraphExec._ptr, cgraph, flags) # <<<<<<<<<<<<<< * return (cudaError_t(err), pGraphExec) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaGraphInstantiateWithFlags(((cudaGraphExec_t *)__pyx_v_pGraphExec->__pyx_base._ptr), __pyx_v_cgraph, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 26697, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":26698 * cdef cudaGraphExec_t pGraphExec = cudaGraphExec_t() * err = ccudart.cudaGraphInstantiateWithFlags(pGraphExec._ptr, cgraph, flags) * return (cudaError_t(err), pGraphExec) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26698, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26698, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26698, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26698, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 26698, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pGraphExec); __Pyx_GIVEREF((PyObject *)__pyx_v_pGraphExec); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_v_pGraphExec))) __PYX_ERR(0, 26698, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":26599 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":26700 * return (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_6cudart_479cudaGraphInstantiateWithParams(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_478cudaGraphInstantiateWithParams, "cudaGraphInstantiateWithParams(graph, cudaGraphInstantiateParams instantiateParams: Optional[cudaGraphInstantiateParams])\n Creates an executable graph from a graph.\n\n Instantiates `graph` as an executable graph according to the\n `instantiateParams` structure. The graph is validated for any\n structural constraints or intra-node constraints which were not\n previously validated. If instantiation is successful, a handle to the\n instantiated graph is returned in `pGraphExec`.\n\n `instantiateParams` controls the behavior of instantiation and\n subsequent graph launches, as well as returning more detailed\n information 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\n The `flags` field controls the behavior of instantiation and subsequent\n 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:`~.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\n If `graph` contains any allocation or free nodes, there can be at most\n one executable graph in existence for that graph at a time. An attempt\n to instantiate a second executable graph before destroying the first\n with :py:obj:`~.cudaGraphExecDestroy` will result in an error. The same\n also applies if `graph` contains any device-updatable kernel nodes.\n\n If `graph` contains kernels which call device-side\n :py:obj:`~.cudaGraphLaunch()` from multiple devices, this will result\n in an error.\n\n Graphs instantiated for launch on the device have additional\n restrictions 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\n In the event of an error, the `result_out` and `errNode_out` fields\n will contain more information about the nature of the error. Possible\n error 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\n If instantiation is successful, `result_out` will be set to\n :py:obj:`~.cudaGraphInstantiateSuccess`, and `hErrNode_out` will be set\n to NULL.\n\n Parameters\n ----------\n graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n Graph to instantiate\n instantiateParams : :py:obj:`~.cudaGraphInstantiateParams`\n Instantiation parameters\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n pGraphExec : :py:obj:`~.cudaGraphExec_t`\n Returns instantiated graph\n\n See Also\n --------\n :py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphInstantiate`, :py:obj:`~.cudaGraphInstantiateWithFlags`, :py:obj:`~.cudaGraphExecDestroy`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_479cudaGraphInstantiateWithParams = {"cudaGraphInstantiateWithParams", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_479cudaGraphInstantiateWithParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_478cudaGraphInstantiateWithParams}; static PyObject *__pyx_pw_4cuda_6cudart_479cudaGraphInstantiateWithParams(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_graph_2,&__pyx_n_s_instantiateParams,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_graph_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26700, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_instantiateParams)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26700, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphInstantiateWithParams", 1, 2, 2, 1); __PYX_ERR(0, 26700, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphInstantiateWithParams") < 0)) __PYX_ERR(0, 26700, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_graph = values[0]; __pyx_v_instantiateParams = ((struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams *)values[1]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphInstantiateWithParams", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 26700, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaGraphInstantiateParams, 1, "instantiateParams", 0))) __PYX_ERR(0, 26701, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_478cudaGraphInstantiateWithParams(__pyx_self, __pyx_v_graph, __pyx_v_instantiateParams); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_478cudaGraphInstantiateWithParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams *__pyx_v_instantiateParams) { cudaGraph_t __pyx_v_cgraph; PyObject *__pyx_v_pgraph = NULL; struct __pyx_obj_4cuda_6cudart_cudaGraphExec_t *__pyx_v_pGraphExec = 0; cudaGraphInstantiateParams *__pyx_v_cinstantiateParams_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; struct cudaGraphInstantiateParams_st *__pyx_t_6; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__594) __Pyx_RefNannySetupContext("cudaGraphInstantiateWithParams", 1); __Pyx_TraceCall("cudaGraphInstantiateWithParams", __pyx_f[0], 26700, 0, __PYX_ERR(0, 26700, __pyx_L1_error)); /* "cuda/cudart.pyx":26829 * """ * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_1 = (__pyx_v_graph == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":26830 * cdef ccudart.cudaGraph_t cgraph * if graph is None: * cgraph = 0 # <<<<<<<<<<<<<< * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) */ __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":26829 * """ * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":26831 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":26832 * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) # <<<<<<<<<<<<<< * cgraph = pgraph * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26832, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pgraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":26833 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) * cgraph = pgraph # <<<<<<<<<<<<<< * else: * pgraph = int(cudaGraph_t(graph)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26833, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":26831 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ goto __pyx_L3; } /* "cuda/cudart.pyx":26835 * cgraph = pgraph * else: * pgraph = int(cudaGraph_t(graph)) # <<<<<<<<<<<<<< * cgraph = pgraph * cdef cudaGraphExec_t pGraphExec = cudaGraphExec_t() */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26835, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26835, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pgraph = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":26836 * else: * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph # <<<<<<<<<<<<<< * cdef cudaGraphExec_t pGraphExec = cudaGraphExec_t() * cdef ccudart.cudaGraphInstantiateParams* cinstantiateParams_ptr = instantiateParams._ptr if instantiateParams != None else NULL */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26836, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":26837 * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph * cdef cudaGraphExec_t pGraphExec = cudaGraphExec_t() # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphInstantiateParams* cinstantiateParams_ptr = instantiateParams._ptr if instantiateParams != None else NULL * err = ccudart.cudaGraphInstantiateWithParams(pGraphExec._ptr, cgraph, cinstantiateParams_ptr) */ __pyx_t_5 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphExec_t)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26837, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pGraphExec = ((struct __pyx_obj_4cuda_6cudart_cudaGraphExec_t *)__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":26838 * cgraph = pgraph * cdef cudaGraphExec_t pGraphExec = cudaGraphExec_t() * cdef ccudart.cudaGraphInstantiateParams* cinstantiateParams_ptr = instantiateParams._ptr if instantiateParams != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaGraphInstantiateWithParams(pGraphExec._ptr, cgraph, cinstantiateParams_ptr) * return (cudaError_t(err), pGraphExec) */ __pyx_t_5 = PyObject_RichCompare(((PyObject *)__pyx_v_instantiateParams), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26838, __pyx_L1_error) __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 26838, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_1) { __pyx_t_6 = __pyx_v_instantiateParams->__pyx_base._ptr; } else { __pyx_t_6 = NULL; } __pyx_v_cinstantiateParams_ptr = __pyx_t_6; /* "cuda/cudart.pyx":26839 * cdef cudaGraphExec_t pGraphExec = cudaGraphExec_t() * cdef ccudart.cudaGraphInstantiateParams* cinstantiateParams_ptr = instantiateParams._ptr if instantiateParams != None else NULL * err = ccudart.cudaGraphInstantiateWithParams(pGraphExec._ptr, cgraph, cinstantiateParams_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err), pGraphExec) * */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaGraphInstantiateWithParams(((cudaGraphExec_t *)__pyx_v_pGraphExec->__pyx_base._ptr), __pyx_v_cgraph, __pyx_v_cinstantiateParams_ptr); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 26839, __pyx_L1_error) __pyx_v_err = __pyx_t_7; /* "cuda/cudart.pyx":26840 * cdef ccudart.cudaGraphInstantiateParams* cinstantiateParams_ptr = instantiateParams._ptr if instantiateParams != None else NULL * err = ccudart.cudaGraphInstantiateWithParams(pGraphExec._ptr, cgraph, cinstantiateParams_ptr) * return (cudaError_t(err), pGraphExec) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26840, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26840, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_8}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26840, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26840, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 26840, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pGraphExec); __Pyx_GIVEREF((PyObject *)__pyx_v_pGraphExec); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_v_pGraphExec))) __PYX_ERR(0, 26840, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":26700 * return (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_5); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":26842 * return (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_6cudart_481cudaGraphExecGetFlags(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_480cudaGraphExecGetFlags, "cudaGraphExecGetFlags(graphExec)\n Query the instantiation flags of an executable graph.\n\n Returns the flags that were passed to instantiation for the given\n executable graph. :py:obj:`~.cudaGraphInstantiateFlagUpload` will not\n be returned by this API as it does not affect the resulting executable\n graph.\n\n Parameters\n ----------\n graphExec : :py:obj:`~.CUgraphExec` or :py:obj:`~.cudaGraphExec_t`\n The executable graph to query\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n flags : unsigned long long\n Returns the instantiation flags\n\n See Also\n --------\n :py:obj:`~.cudaGraphInstantiate`, :py:obj:`~.cudaGraphInstantiateWithFlags`, :py:obj:`~.cudaGraphInstantiateWithParams`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_481cudaGraphExecGetFlags = {"cudaGraphExecGetFlags", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_481cudaGraphExecGetFlags, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_480cudaGraphExecGetFlags}; static PyObject *__pyx_pw_4cuda_6cudart_481cudaGraphExecGetFlags(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_graphExec,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_graphExec)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26842, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphExecGetFlags") < 0)) __PYX_ERR(0, 26842, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_graphExec = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphExecGetFlags", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 26842, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphExecGetFlags", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_480cudaGraphExecGetFlags(__pyx_self, __pyx_v_graphExec); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_480cudaGraphExecGetFlags(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graphExec) { cudaGraphExec_t __pyx_v_cgraphExec; PyObject *__pyx_v_pgraphExec = NULL; unsigned PY_LONG_LONG __pyx_v_flags; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__595) __Pyx_RefNannySetupContext("cudaGraphExecGetFlags", 1); __Pyx_TraceCall("cudaGraphExecGetFlags", __pyx_f[0], 26842, 0, __PYX_ERR(0, 26842, __pyx_L1_error)); /* "cuda/cudart.pyx":26868 * """ * cdef ccudart.cudaGraphExec_t cgraphExec * if graphExec is None: # <<<<<<<<<<<<<< * cgraphExec = 0 * elif isinstance(graphExec, (cudaGraphExec_t,cuda.CUgraphExec)): */ __pyx_t_1 = (__pyx_v_graphExec == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":26869 * cdef ccudart.cudaGraphExec_t cgraphExec * if graphExec is None: * cgraphExec = 0 # <<<<<<<<<<<<<< * elif isinstance(graphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * pgraphExec = int(graphExec) */ __pyx_v_cgraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":26868 * """ * cdef ccudart.cudaGraphExec_t cgraphExec * if graphExec is None: # <<<<<<<<<<<<<< * cgraphExec = 0 * elif isinstance(graphExec, (cudaGraphExec_t,cuda.CUgraphExec)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":26870 * if graphExec is None: * cgraphExec = 0 * elif isinstance(graphExec, (cudaGraphExec_t,cuda.CUgraphExec)): # <<<<<<<<<<<<<< * pgraphExec = int(graphExec) * cgraphExec = pgraphExec */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graphExec, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphExec); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":26871 * cgraphExec = 0 * elif isinstance(graphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * pgraphExec = int(graphExec) # <<<<<<<<<<<<<< * cgraphExec = pgraphExec * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graphExec); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26871, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pgraphExec = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":26872 * elif isinstance(graphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * pgraphExec = int(graphExec) * cgraphExec = pgraphExec # <<<<<<<<<<<<<< * else: * pgraphExec = int(cudaGraphExec_t(graphExec)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraphExec); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26872, __pyx_L1_error) __pyx_v_cgraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":26870 * if graphExec is None: * cgraphExec = 0 * elif isinstance(graphExec, (cudaGraphExec_t,cuda.CUgraphExec)): # <<<<<<<<<<<<<< * pgraphExec = int(graphExec) * cgraphExec = pgraphExec */ goto __pyx_L3; } /* "cuda/cudart.pyx":26874 * cgraphExec = pgraphExec * else: * pgraphExec = int(cudaGraphExec_t(graphExec)) # <<<<<<<<<<<<<< * cgraphExec = pgraphExec * cdef unsigned long long flags = 0 */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphExec_t), __pyx_v_graphExec); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26874, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26874, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pgraphExec = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":26875 * else: * pgraphExec = int(cudaGraphExec_t(graphExec)) * cgraphExec = pgraphExec # <<<<<<<<<<<<<< * cdef unsigned long long flags = 0 * err = ccudart.cudaGraphExecGetFlags(cgraphExec, &flags) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraphExec); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26875, __pyx_L1_error) __pyx_v_cgraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":26876 * pgraphExec = int(cudaGraphExec_t(graphExec)) * cgraphExec = pgraphExec * cdef unsigned long long flags = 0 # <<<<<<<<<<<<<< * err = ccudart.cudaGraphExecGetFlags(cgraphExec, &flags) * return (cudaError_t(err), flags) */ __pyx_v_flags = 0; /* "cuda/cudart.pyx":26877 * cgraphExec = pgraphExec * cdef unsigned long long flags = 0 * err = ccudart.cudaGraphExecGetFlags(cgraphExec, &flags) # <<<<<<<<<<<<<< * return (cudaError_t(err), flags) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaGraphExecGetFlags(__pyx_v_cgraphExec, (&__pyx_v_flags)); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 26877, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":26878 * cdef unsigned long long flags = 0 * err = ccudart.cudaGraphExecGetFlags(cgraphExec, &flags) * return (cudaError_t(err), flags) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26878, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26878, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26878, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(__pyx_v_flags); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26878, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26878, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5)) __PYX_ERR(0, 26878, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_3)) __PYX_ERR(0, 26878, __pyx_L1_error); __pyx_t_5 = 0; __pyx_t_3 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":26842 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaGraphExecGetFlags", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pgraphExec); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":26880 * return (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_6cudart_483cudaGraphExecKernelNodeSetParams(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_482cudaGraphExecKernelNodeSetParams, "cudaGraphExecKernelNodeSetParams(hGraphExec, node, cudaKernelNodeParams pNodeParams: Optional[cudaKernelNodeParams])\n Sets the parameters for a kernel node in the given graphExec.\n\n Sets the parameters of a kernel node in an executable graph\n `hGraphExec`. The node is identified by the corresponding node `node`\n in the non-executable graph, from which the executable graph was\n instantiated.\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\n The modifications only affect future launches of `hGraphExec`. Already\n enqueued or running launches of `hGraphExec` are not affected by this\n call. `node` is also not modified by this call.\n\n If `node` is a device-updatable kernel node, the next upload/launch of\n `hGraphExec` will overwrite any previous device-side updates.\n Additionally, applying host updates to a device-updatable kernel node\n while it is being updated from the device will result in undefined\n behavior.\n\n Parameters\n ----------\n hGraphExec : :py:obj:`~.CUgraphExec` or :py:""obj:`~.cudaGraphExec_t`\n The executable graph in which to set the specified node\n node : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n kernel node from the graph from which graphExec was instantiated\n pNodeParams : :py:obj:`~.cudaKernelNodeParams`\n Updated Parameters to set\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_483cudaGraphExecKernelNodeSetParams = {"cudaGraphExecKernelNodeSetParams", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_483cudaGraphExecKernelNodeSetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_482cudaGraphExecKernelNodeSetParams}; static PyObject *__pyx_pw_4cuda_6cudart_483cudaGraphExecKernelNodeSetParams(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_hGraphExec,&__pyx_n_s_node_2,&__pyx_n_s_pNodeParams,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hGraphExec)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26880, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_node_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26880, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphExecKernelNodeSetParams", 1, 3, 3, 1); __PYX_ERR(0, 26880, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pNodeParams)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26880, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphExecKernelNodeSetParams", 1, 3, 3, 2); __PYX_ERR(0, 26880, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphExecKernelNodeSetParams") < 0)) __PYX_ERR(0, 26880, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_hGraphExec = values[0]; __pyx_v_node = values[1]; __pyx_v_pNodeParams = ((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *)values[2]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphExecKernelNodeSetParams", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 26880, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaKernelNodeParams, 1, "pNodeParams", 0))) __PYX_ERR(0, 26881, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_482cudaGraphExecKernelNodeSetParams(__pyx_self, __pyx_v_hGraphExec, __pyx_v_node, __pyx_v_pNodeParams); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_482cudaGraphExecKernelNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_node, struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *__pyx_v_pNodeParams) { cudaGraphNode_t __pyx_v_cnode; PyObject *__pyx_v_pnode = NULL; cudaGraphExec_t __pyx_v_chGraphExec; PyObject *__pyx_v_phGraphExec = NULL; struct cudaKernelNodeParams *__pyx_v_cpNodeParams_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; struct cudaKernelNodeParams *__pyx_t_6; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__596) __Pyx_RefNannySetupContext("cudaGraphExecKernelNodeSetParams", 1); __Pyx_TraceCall("cudaGraphExecKernelNodeSetParams", __pyx_f[0], 26880, 0, __PYX_ERR(0, 26880, __pyx_L1_error)); /* "cuda/cudart.pyx":26939 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_node == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":26940 * cdef ccudart.cudaGraphNode_t cnode * if node is None: * cnode = 0 # <<<<<<<<<<<<<< * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) */ __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":26939 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":26941 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":26942 * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) # <<<<<<<<<<<<<< * cnode = pnode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26942, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pnode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":26943 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) * cnode = pnode # <<<<<<<<<<<<<< * else: * pnode = int(cudaGraphNode_t(node)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26943, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":26941 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ goto __pyx_L3; } /* "cuda/cudart.pyx":26945 * cnode = pnode * else: * pnode = int(cudaGraphNode_t(node)) # <<<<<<<<<<<<<< * cnode = pnode * cdef ccudart.cudaGraphExec_t chGraphExec */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26945, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26945, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pnode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":26946 * else: * pnode = int(cudaGraphNode_t(node)) * cnode = pnode # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26946, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":26948 * cnode = pnode * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: # <<<<<<<<<<<<<< * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): */ __pyx_t_1 = (__pyx_v_hGraphExec == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":26949 * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: * chGraphExec = 0 # <<<<<<<<<<<<<< * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) */ __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":26948 * cnode = pnode * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: # <<<<<<<<<<<<<< * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":26950 * if hGraphExec is None: * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): # <<<<<<<<<<<<<< * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphExec); __pyx_t_1 = __pyx_t_2; __pyx_L7_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":26951 * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) # <<<<<<<<<<<<<< * chGraphExec = phGraphExec * else: */ __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_v_hGraphExec); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26951, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_phGraphExec = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":26952 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec # <<<<<<<<<<<<<< * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26952, __pyx_L1_error) __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":26950 * if hGraphExec is None: * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): # <<<<<<<<<<<<<< * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec */ goto __pyx_L6; } /* "cuda/cudart.pyx":26954 * chGraphExec = phGraphExec * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) # <<<<<<<<<<<<<< * chGraphExec = phGraphExec * cdef ccudart.cudaKernelNodeParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL */ /*else*/ { __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphExec_t), __pyx_v_hGraphExec); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26954, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26954, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_phGraphExec = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":26955 * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) * chGraphExec = phGraphExec # <<<<<<<<<<<<<< * cdef ccudart.cudaKernelNodeParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL * err = ccudart.cudaGraphExecKernelNodeSetParams(chGraphExec, cnode, cpNodeParams_ptr) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26955, __pyx_L1_error) __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L6:; /* "cuda/cudart.pyx":26956 * phGraphExec = int(cudaGraphExec_t(hGraphExec)) * chGraphExec = phGraphExec * cdef ccudart.cudaKernelNodeParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaGraphExecKernelNodeSetParams(chGraphExec, cnode, cpNodeParams_ptr) * return (cudaError_t(err),) */ __pyx_t_3 = PyObject_RichCompare(((PyObject *)__pyx_v_pNodeParams), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26956, __pyx_L1_error) __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 26956, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_1) { __pyx_t_6 = __pyx_v_pNodeParams->_ptr; } else { __pyx_t_6 = NULL; } __pyx_v_cpNodeParams_ptr = __pyx_t_6; /* "cuda/cudart.pyx":26957 * chGraphExec = phGraphExec * cdef ccudart.cudaKernelNodeParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL * err = ccudart.cudaGraphExecKernelNodeSetParams(chGraphExec, cnode, cpNodeParams_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaGraphExecKernelNodeSetParams(__pyx_v_chGraphExec, __pyx_v_cnode, __pyx_v_cpNodeParams_ptr); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 26957, __pyx_L1_error) __pyx_v_err = __pyx_t_7; /* "cuda/cudart.pyx":26958 * cdef ccudart.cudaKernelNodeParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL * err = ccudart.cudaGraphExecKernelNodeSetParams(chGraphExec, cnode, cpNodeParams_ptr) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26958, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_8 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26958, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_8}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26958, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26958, __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)) __PYX_ERR(0, 26958, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":26880 * return (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_5); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":26960 * return (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_6cudart_485cudaGraphExecMemcpyNodeSetParams(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_484cudaGraphExecMemcpyNodeSetParams, "cudaGraphExecMemcpyNodeSetParams(hGraphExec, node, cudaMemcpy3DParms pNodeParams: Optional[cudaMemcpy3DParms])\n Sets the parameters for a memcpy node in the given graphExec.\n\n Updates the work represented by `node` in `hGraphExec` as though `node`\n had contained `pNodeParams` at instantiation. `node` must remain in the\n graph which was used to instantiate `hGraphExec`. Changed edges to and\n from `node` are ignored.\n\n The source and destination memory in `pNodeParams` must be allocated\n from the same contexts as the original source and destination memory.\n Both the instantiation-time memory operands and the memory operands in\n `pNodeParams` must be 1-dimensional. Zero-length operations are not\n supported.\n\n The modifications only affect future launches of `hGraphExec`. Already\n enqueued or running launches of `hGraphExec` are not affected by this\n call. `node` is also not modified by this call.\n\n Returns :py:obj:`~.cudaErrorInvalidValue` if the memory operands'\n mappings changed or either the original or new memory operands are\n multidimensional.\n\n Parameters\n ----------\n hGraphExec : :py:obj:`~.CUgraphExec` or :py:obj:`~.cudaGraphExec_t`\n The executable graph in which to set the specified node\n node : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Memcpy node from the graph which was used to instantiate graphExec\n pNodeParams : :py:obj:`~.cudaMemcpy3DParms`\n Updated Parameters to set\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n\n See 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:`~.cudaGraphExecChildGraphNodeSetParams`, :py:obj:`~.cudaGraphExecEventRecordNodeSetEvent`, :py:obj:`~.cudaGraphExecEventWaitNodeSetEvent`, :py:obj:`~.cudaGraphExecExternalSemaphoresSignalNodeSetParams`, :py:obj:`~.cudaGraphExecExternalSemaphoresWaitNodeSetParams`, :py:obj:`~.cudaGraphExecUpdate`, :py:obj:`~.cudaGraphInstantiate`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_485cudaGraphExecMemcpyNodeSetParams = {"cudaGraphExecMemcpyNodeSetParams", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_485cudaGraphExecMemcpyNodeSetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_484cudaGraphExecMemcpyNodeSetParams}; static PyObject *__pyx_pw_4cuda_6cudart_485cudaGraphExecMemcpyNodeSetParams(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_hGraphExec,&__pyx_n_s_node_2,&__pyx_n_s_pNodeParams,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hGraphExec)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26960, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_node_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26960, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphExecMemcpyNodeSetParams", 1, 3, 3, 1); __PYX_ERR(0, 26960, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pNodeParams)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26960, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphExecMemcpyNodeSetParams", 1, 3, 3, 2); __PYX_ERR(0, 26960, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphExecMemcpyNodeSetParams") < 0)) __PYX_ERR(0, 26960, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_hGraphExec = values[0]; __pyx_v_node = values[1]; __pyx_v_pNodeParams = ((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *)values[2]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphExecMemcpyNodeSetParams", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 26960, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaMemcpy3DParms, 1, "pNodeParams", 0))) __PYX_ERR(0, 26961, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_484cudaGraphExecMemcpyNodeSetParams(__pyx_self, __pyx_v_hGraphExec, __pyx_v_node, __pyx_v_pNodeParams); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_484cudaGraphExecMemcpyNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_node, struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *__pyx_v_pNodeParams) { cudaGraphNode_t __pyx_v_cnode; PyObject *__pyx_v_pnode = NULL; cudaGraphExec_t __pyx_v_chGraphExec; PyObject *__pyx_v_phGraphExec = NULL; struct cudaMemcpy3DParms *__pyx_v_cpNodeParams_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; struct cudaMemcpy3DParms *__pyx_t_6; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__597) __Pyx_RefNannySetupContext("cudaGraphExecMemcpyNodeSetParams", 1); __Pyx_TraceCall("cudaGraphExecMemcpyNodeSetParams", __pyx_f[0], 26960, 0, __PYX_ERR(0, 26960, __pyx_L1_error)); /* "cuda/cudart.pyx":27002 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_node == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":27003 * cdef ccudart.cudaGraphNode_t cnode * if node is None: * cnode = 0 # <<<<<<<<<<<<<< * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) */ __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":27002 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":27004 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":27005 * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) # <<<<<<<<<<<<<< * cnode = pnode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27005, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pnode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":27006 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) * cnode = pnode # <<<<<<<<<<<<<< * else: * pnode = int(cudaGraphNode_t(node)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27006, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":27004 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ goto __pyx_L3; } /* "cuda/cudart.pyx":27008 * cnode = pnode * else: * pnode = int(cudaGraphNode_t(node)) # <<<<<<<<<<<<<< * cnode = pnode * cdef ccudart.cudaGraphExec_t chGraphExec */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27008, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27008, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pnode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":27009 * else: * pnode = int(cudaGraphNode_t(node)) * cnode = pnode # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27009, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":27011 * cnode = pnode * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: # <<<<<<<<<<<<<< * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): */ __pyx_t_1 = (__pyx_v_hGraphExec == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":27012 * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: * chGraphExec = 0 # <<<<<<<<<<<<<< * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) */ __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":27011 * cnode = pnode * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: # <<<<<<<<<<<<<< * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":27013 * if hGraphExec is None: * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): # <<<<<<<<<<<<<< * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphExec); __pyx_t_1 = __pyx_t_2; __pyx_L7_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":27014 * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) # <<<<<<<<<<<<<< * chGraphExec = phGraphExec * else: */ __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_v_hGraphExec); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27014, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_phGraphExec = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":27015 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec # <<<<<<<<<<<<<< * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27015, __pyx_L1_error) __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":27013 * if hGraphExec is None: * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): # <<<<<<<<<<<<<< * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec */ goto __pyx_L6; } /* "cuda/cudart.pyx":27017 * chGraphExec = phGraphExec * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) # <<<<<<<<<<<<<< * chGraphExec = phGraphExec * cdef ccudart.cudaMemcpy3DParms* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL */ /*else*/ { __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphExec_t), __pyx_v_hGraphExec); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27017, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27017, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_phGraphExec = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":27018 * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) * chGraphExec = phGraphExec # <<<<<<<<<<<<<< * cdef ccudart.cudaMemcpy3DParms* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL * err = ccudart.cudaGraphExecMemcpyNodeSetParams(chGraphExec, cnode, cpNodeParams_ptr) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27018, __pyx_L1_error) __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L6:; /* "cuda/cudart.pyx":27019 * phGraphExec = int(cudaGraphExec_t(hGraphExec)) * chGraphExec = phGraphExec * cdef ccudart.cudaMemcpy3DParms* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaGraphExecMemcpyNodeSetParams(chGraphExec, cnode, cpNodeParams_ptr) * return (cudaError_t(err),) */ __pyx_t_3 = PyObject_RichCompare(((PyObject *)__pyx_v_pNodeParams), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27019, __pyx_L1_error) __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 27019, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_1) { __pyx_t_6 = __pyx_v_pNodeParams->_ptr; } else { __pyx_t_6 = NULL; } __pyx_v_cpNodeParams_ptr = __pyx_t_6; /* "cuda/cudart.pyx":27020 * chGraphExec = phGraphExec * cdef ccudart.cudaMemcpy3DParms* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL * err = ccudart.cudaGraphExecMemcpyNodeSetParams(chGraphExec, cnode, cpNodeParams_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaGraphExecMemcpyNodeSetParams(__pyx_v_chGraphExec, __pyx_v_cnode, __pyx_v_cpNodeParams_ptr); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 27020, __pyx_L1_error) __pyx_v_err = __pyx_t_7; /* "cuda/cudart.pyx":27021 * cdef ccudart.cudaMemcpy3DParms* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL * err = ccudart.cudaGraphExecMemcpyNodeSetParams(chGraphExec, cnode, cpNodeParams_ptr) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27021, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_8 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27021, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_8}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27021, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27021, __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)) __PYX_ERR(0, 27021, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":26960 * return (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_5); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":27023 * return (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_6cudart_487cudaGraphExecMemcpyNodeSetParams1D(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_486cudaGraphExecMemcpyNodeSetParams1D, "cudaGraphExecMemcpyNodeSetParams1D(hGraphExec, node, dst, src, size_t count, kind: cudaMemcpyKind)\n Sets the parameters for a memcpy node in the given graphExec to perform a 1-dimensional copy.\n\n Updates the work represented by `node` in `hGraphExec` as though `node`\n had contained the given params at instantiation. `node` must remain in\n the graph which was used to instantiate `hGraphExec`. Changed edges to\n and from `node` are ignored.\n\n `src` and `dst` must be allocated from the same contexts as the\n original source and destination memory. The instantiation-time memory\n operands must be 1-dimensional. Zero-length operations are not\n supported.\n\n The modifications only affect future launches of `hGraphExec`. Already\n enqueued or running launches of `hGraphExec` are not affected by this\n call. `node` is also not modified by this call.\n\n Returns :py:obj:`~.cudaErrorInvalidValue` if the memory operands'\n mappings changed or the original memory operands are multidimensional.\n\n Parameters\n ----------\n hGraphExec : :py:obj:`~.CUgraphExec` or :py:obj:`~.cudaGraphExec_t`\n The executable graph in which to set the specified node\n node : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Memcpy node from the graph which was used to instantiate graphExec\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`\n\n See Also\n --------\n :py:obj:`~.cudaGraphAddMemcpyNode`, :py:obj:`~.cudaGraphAddMemcpyNode1D`, :py:obj:`~.cudaGraphMemcpyNodeSetParams`, :py:obj:`~.cudaGraphMemcpyNodeSetParams1D`, :py:obj:`~.cudaGraphExecMemcpyNodeSetParams`, :py:obj:`~.cudaGraphExecKernelNodeSetParams`, :py:obj:`~.cudaGraphExecMem""setNodeSetParams`, :py:obj:`~.cudaGraphExecHostNodeSetParams`, :py:obj:`~.cudaGraphExecChildGraphNodeSetParams`, :py:obj:`~.cudaGraphExecEventRecordNodeSetEvent`, :py:obj:`~.cudaGraphExecEventWaitNodeSetEvent`, :py:obj:`~.cudaGraphExecExternalSemaphoresSignalNodeSetParams`, :py:obj:`~.cudaGraphExecExternalSemaphoresWaitNodeSetParams`, :py:obj:`~.cudaGraphExecUpdate`, :py:obj:`~.cudaGraphInstantiate`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_487cudaGraphExecMemcpyNodeSetParams1D = {"cudaGraphExecMemcpyNodeSetParams1D", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_487cudaGraphExecMemcpyNodeSetParams1D, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_486cudaGraphExecMemcpyNodeSetParams1D}; static PyObject *__pyx_pw_4cuda_6cudart_487cudaGraphExecMemcpyNodeSetParams1D(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_hGraphExec,&__pyx_n_s_node_2,&__pyx_n_s_dst_2,&__pyx_n_s_src,&__pyx_n_s_count,&__pyx_n_s_kind_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 6: values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hGraphExec)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27023, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_node_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27023, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphExecMemcpyNodeSetParams1D", 1, 6, 6, 1); __PYX_ERR(0, 27023, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dst_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27023, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphExecMemcpyNodeSetParams1D", 1, 6, 6, 2); __PYX_ERR(0, 27023, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_src)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27023, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphExecMemcpyNodeSetParams1D", 1, 6, 6, 3); __PYX_ERR(0, 27023, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_count)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[4]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27023, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphExecMemcpyNodeSetParams1D", 1, 6, 6, 4); __PYX_ERR(0, 27023, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_kind_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[5]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27023, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphExecMemcpyNodeSetParams1D", 1, 6, 6, 5); __PYX_ERR(0, 27023, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphExecMemcpyNodeSetParams1D") < 0)) __PYX_ERR(0, 27023, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 6)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); values[5] = __Pyx_Arg_FASTCALL(__pyx_args, 5); } __pyx_v_hGraphExec = values[0]; __pyx_v_node = values[1]; __pyx_v_dst = values[2]; __pyx_v_src = values[3]; __pyx_v_count = __Pyx_PyInt_As_size_t(values[4]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 27024, __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, 27023, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 27024, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_486cudaGraphExecMemcpyNodeSetParams1D(__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; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_486cudaGraphExecMemcpyNodeSetParams1D(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_cnode; PyObject *__pyx_v_pnode = NULL; cudaGraphExec_t __pyx_v_chGraphExec; PyObject *__pyx_v_phGraphExec = NULL; PyObject *__pyx_v_cdst = NULL; void *__pyx_v_cdst_ptr; PyObject *__pyx_v_csrc = NULL; void *__pyx_v_csrc_ptr; enum cudaMemcpyKind __pyx_v_ckind; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; enum cudaMemcpyKind __pyx_t_6; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__598) __Pyx_RefNannySetupContext("cudaGraphExecMemcpyNodeSetParams1D", 1); __Pyx_TraceCall("cudaGraphExecMemcpyNodeSetParams1D", __pyx_f[0], 27023, 0, __PYX_ERR(0, 27023, __pyx_L1_error)); /* "cuda/cudart.pyx":27069 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_node == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":27070 * cdef ccudart.cudaGraphNode_t cnode * if node is None: * cnode = 0 # <<<<<<<<<<<<<< * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) */ __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":27069 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":27071 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":27072 * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) # <<<<<<<<<<<<<< * cnode = pnode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27072, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pnode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":27073 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) * cnode = pnode # <<<<<<<<<<<<<< * else: * pnode = int(cudaGraphNode_t(node)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27073, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":27071 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ goto __pyx_L3; } /* "cuda/cudart.pyx":27075 * cnode = pnode * else: * pnode = int(cudaGraphNode_t(node)) # <<<<<<<<<<<<<< * cnode = pnode * cdef ccudart.cudaGraphExec_t chGraphExec */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27075, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27075, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pnode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":27076 * else: * pnode = int(cudaGraphNode_t(node)) * cnode = pnode # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27076, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":27078 * cnode = pnode * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: # <<<<<<<<<<<<<< * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): */ __pyx_t_1 = (__pyx_v_hGraphExec == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":27079 * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: * chGraphExec = 0 # <<<<<<<<<<<<<< * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) */ __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":27078 * cnode = pnode * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: # <<<<<<<<<<<<<< * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":27080 * if hGraphExec is None: * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): # <<<<<<<<<<<<<< * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphExec); __pyx_t_1 = __pyx_t_2; __pyx_L7_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":27081 * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) # <<<<<<<<<<<<<< * chGraphExec = phGraphExec * else: */ __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_v_hGraphExec); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27081, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_phGraphExec = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":27082 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec # <<<<<<<<<<<<<< * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27082, __pyx_L1_error) __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":27080 * if hGraphExec is None: * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): # <<<<<<<<<<<<<< * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec */ goto __pyx_L6; } /* "cuda/cudart.pyx":27084 * chGraphExec = phGraphExec * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) # <<<<<<<<<<<<<< * chGraphExec = phGraphExec * cdst = utils.HelperInputVoidPtr(dst) */ /*else*/ { __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphExec_t), __pyx_v_hGraphExec); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27084, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27084, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_phGraphExec = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":27085 * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) * chGraphExec = phGraphExec # <<<<<<<<<<<<<< * cdst = utils.HelperInputVoidPtr(dst) * cdef void* cdst_ptr = cdst.cptr */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27085, __pyx_L1_error) __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L6:; /* "cuda/cudart.pyx":27086 * phGraphExec = int(cudaGraphExec_t(hGraphExec)) * chGraphExec = phGraphExec * cdst = utils.HelperInputVoidPtr(dst) # <<<<<<<<<<<<<< * cdef void* cdst_ptr = cdst.cptr * csrc = utils.HelperInputVoidPtr(src) */ __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_dst); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27086, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_cdst = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":27087 * chGraphExec = phGraphExec * cdst = utils.HelperInputVoidPtr(dst) * cdef void* cdst_ptr = cdst.cptr # <<<<<<<<<<<<<< * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_cdst, __pyx_n_s_cptr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27087, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_3); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27087, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_cdst_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":27088 * cdst = utils.HelperInputVoidPtr(dst) * cdef void* cdst_ptr = cdst.cptr * csrc = utils.HelperInputVoidPtr(src) # <<<<<<<<<<<<<< * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value */ __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_src); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27088, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_csrc = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":27089 * cdef void* cdst_ptr = cdst.cptr * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr # <<<<<<<<<<<<<< * cdef ccudart.cudaMemcpyKind ckind = kind.value * err = ccudart.cudaGraphExecMemcpyNodeSetParams1D(chGraphExec, cnode, cdst_ptr, csrc_ptr, count, ckind) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_csrc, __pyx_n_s_cptr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27089, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_3); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27089, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_csrc_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":27090 * csrc = utils.HelperInputVoidPtr(src) * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value # <<<<<<<<<<<<<< * err = ccudart.cudaGraphExecMemcpyNodeSetParams1D(chGraphExec, cnode, cdst_ptr, csrc_ptr, count, ckind) * return (cudaError_t(err),) */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_kind, __pyx_n_s_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27090, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6 = ((enum cudaMemcpyKind)__Pyx_PyInt_As_enum__cudaMemcpyKind(__pyx_t_3)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27090, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_ckind = __pyx_t_6; /* "cuda/cudart.pyx":27091 * cdef void* csrc_ptr = csrc.cptr * cdef ccudart.cudaMemcpyKind ckind = kind.value * err = ccudart.cudaGraphExecMemcpyNodeSetParams1D(chGraphExec, cnode, cdst_ptr, csrc_ptr, count, ckind) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaGraphExecMemcpyNodeSetParams1D(__pyx_v_chGraphExec, __pyx_v_cnode, __pyx_v_cdst_ptr, __pyx_v_csrc_ptr, __pyx_v_count, __pyx_v_ckind); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 27091, __pyx_L1_error) __pyx_v_err = __pyx_t_7; /* "cuda/cudart.pyx":27092 * cdef ccudart.cudaMemcpyKind ckind = kind.value * err = ccudart.cudaGraphExecMemcpyNodeSetParams1D(chGraphExec, cnode, cdst_ptr, csrc_ptr, count, ckind) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27092, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_8 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27092, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_8}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27092, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27092, __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)) __PYX_ERR(0, 27092, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":27023 * return (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_5); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.cudaGraphExecMemcpyNodeSetParams1D", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pnode); __Pyx_XDECREF(__pyx_v_phGraphExec); __Pyx_XDECREF(__pyx_v_cdst); __Pyx_XDECREF(__pyx_v_csrc); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":27094 * return (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_6cudart_489cudaGraphExecMemsetNodeSetParams(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_488cudaGraphExecMemsetNodeSetParams, "cudaGraphExecMemsetNodeSetParams(hGraphExec, node, cudaMemsetParams pNodeParams: Optional[cudaMemsetParams])\n Sets the parameters for a memset node in the given graphExec.\n\n Updates the work represented by `node` in `hGraphExec` as though `node`\n had contained `pNodeParams` at instantiation. `node` must remain in the\n graph which was used to instantiate `hGraphExec`. Changed edges to and\n from `node` are ignored.\n\n Zero sized operations are not supported.\n\n The new destination pointer in `pNodeParams` must be to the same kind\n of allocation as the original destination pointer and have the same\n context association and device mapping as the original destination\n pointer.\n\n Both the value and pointer address may be updated. Changing other\n aspects of the memset (width, height, element size or pitch) may cause\n the update to be rejected. Specifically, for 2d memsets, all dimension\n changes are rejected. For 1d memsets, changes in height are explicitly\n rejected and other changes are oportunistically allowed if the\n resulting work maps onto the work resources already allocated for the\n node.\n\n The modifications only affect future launches of `hGraphExec`. Already\n enqueued or running launches of `hGraphExec` are not affected by this\n call. `node` is also not modified by this call.\n\n Parameters\n ----------\n hGraphExec : :py:obj:`~.CUgraphExec` or :py:obj:`~.cudaGraphExec_t`\n The executable graph in which to set the specified node\n node : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Memset node from the graph which was used to instantiate graphExec\n pNodeParams : :py:obj:`~.cudaMemsetParams`\n Updated Parameters to set\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n\n See Also\n --------\n :py:obj:`~.cudaGraphExecNodeSetParams`, :py:obj:`~.cudaGraphAddMemsetNo""de`, :py:obj:`~.cudaGraphMemsetNodeSetParams`, :py:obj:`~.cudaGraphExecKernelNodeSetParams`, :py:obj:`~.cudaGraphExecMemcpyNodeSetParams`, :py:obj:`~.cudaGraphExecHostNodeSetParams`, :py:obj:`~.cudaGraphExecChildGraphNodeSetParams`, :py:obj:`~.cudaGraphExecEventRecordNodeSetEvent`, :py:obj:`~.cudaGraphExecEventWaitNodeSetEvent`, :py:obj:`~.cudaGraphExecExternalSemaphoresSignalNodeSetParams`, :py:obj:`~.cudaGraphExecExternalSemaphoresWaitNodeSetParams`, :py:obj:`~.cudaGraphExecUpdate`, :py:obj:`~.cudaGraphInstantiate`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_489cudaGraphExecMemsetNodeSetParams = {"cudaGraphExecMemsetNodeSetParams", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_489cudaGraphExecMemsetNodeSetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_488cudaGraphExecMemsetNodeSetParams}; static PyObject *__pyx_pw_4cuda_6cudart_489cudaGraphExecMemsetNodeSetParams(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_hGraphExec,&__pyx_n_s_node_2,&__pyx_n_s_pNodeParams,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hGraphExec)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27094, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_node_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27094, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphExecMemsetNodeSetParams", 1, 3, 3, 1); __PYX_ERR(0, 27094, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pNodeParams)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27094, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphExecMemsetNodeSetParams", 1, 3, 3, 2); __PYX_ERR(0, 27094, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphExecMemsetNodeSetParams") < 0)) __PYX_ERR(0, 27094, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_hGraphExec = values[0]; __pyx_v_node = values[1]; __pyx_v_pNodeParams = ((struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *)values[2]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphExecMemsetNodeSetParams", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 27094, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaMemsetParams, 1, "pNodeParams", 0))) __PYX_ERR(0, 27095, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_488cudaGraphExecMemsetNodeSetParams(__pyx_self, __pyx_v_hGraphExec, __pyx_v_node, __pyx_v_pNodeParams); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_488cudaGraphExecMemsetNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_node, struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *__pyx_v_pNodeParams) { cudaGraphNode_t __pyx_v_cnode; PyObject *__pyx_v_pnode = NULL; cudaGraphExec_t __pyx_v_chGraphExec; PyObject *__pyx_v_phGraphExec = NULL; struct cudaMemsetParams *__pyx_v_cpNodeParams_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; struct cudaMemsetParams *__pyx_t_6; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__599) __Pyx_RefNannySetupContext("cudaGraphExecMemsetNodeSetParams", 1); __Pyx_TraceCall("cudaGraphExecMemsetNodeSetParams", __pyx_f[0], 27094, 0, __PYX_ERR(0, 27094, __pyx_L1_error)); /* "cuda/cudart.pyx":27141 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_node == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":27142 * cdef ccudart.cudaGraphNode_t cnode * if node is None: * cnode = 0 # <<<<<<<<<<<<<< * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) */ __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":27141 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":27143 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":27144 * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) # <<<<<<<<<<<<<< * cnode = pnode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27144, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pnode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":27145 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) * cnode = pnode # <<<<<<<<<<<<<< * else: * pnode = int(cudaGraphNode_t(node)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27145, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":27143 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ goto __pyx_L3; } /* "cuda/cudart.pyx":27147 * cnode = pnode * else: * pnode = int(cudaGraphNode_t(node)) # <<<<<<<<<<<<<< * cnode = pnode * cdef ccudart.cudaGraphExec_t chGraphExec */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27147, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27147, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pnode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":27148 * else: * pnode = int(cudaGraphNode_t(node)) * cnode = pnode # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27148, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":27150 * cnode = pnode * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: # <<<<<<<<<<<<<< * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): */ __pyx_t_1 = (__pyx_v_hGraphExec == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":27151 * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: * chGraphExec = 0 # <<<<<<<<<<<<<< * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) */ __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":27150 * cnode = pnode * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: # <<<<<<<<<<<<<< * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":27152 * if hGraphExec is None: * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): # <<<<<<<<<<<<<< * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphExec); __pyx_t_1 = __pyx_t_2; __pyx_L7_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":27153 * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) # <<<<<<<<<<<<<< * chGraphExec = phGraphExec * else: */ __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_v_hGraphExec); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27153, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_phGraphExec = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":27154 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec # <<<<<<<<<<<<<< * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27154, __pyx_L1_error) __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":27152 * if hGraphExec is None: * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): # <<<<<<<<<<<<<< * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec */ goto __pyx_L6; } /* "cuda/cudart.pyx":27156 * chGraphExec = phGraphExec * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) # <<<<<<<<<<<<<< * chGraphExec = phGraphExec * cdef ccudart.cudaMemsetParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL */ /*else*/ { __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphExec_t), __pyx_v_hGraphExec); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27156, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27156, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_phGraphExec = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":27157 * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) * chGraphExec = phGraphExec # <<<<<<<<<<<<<< * cdef ccudart.cudaMemsetParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL * err = ccudart.cudaGraphExecMemsetNodeSetParams(chGraphExec, cnode, cpNodeParams_ptr) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27157, __pyx_L1_error) __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L6:; /* "cuda/cudart.pyx":27158 * phGraphExec = int(cudaGraphExec_t(hGraphExec)) * chGraphExec = phGraphExec * cdef ccudart.cudaMemsetParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaGraphExecMemsetNodeSetParams(chGraphExec, cnode, cpNodeParams_ptr) * return (cudaError_t(err),) */ __pyx_t_3 = PyObject_RichCompare(((PyObject *)__pyx_v_pNodeParams), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27158, __pyx_L1_error) __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 27158, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_1) { __pyx_t_6 = __pyx_v_pNodeParams->_ptr; } else { __pyx_t_6 = NULL; } __pyx_v_cpNodeParams_ptr = __pyx_t_6; /* "cuda/cudart.pyx":27159 * chGraphExec = phGraphExec * cdef ccudart.cudaMemsetParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL * err = ccudart.cudaGraphExecMemsetNodeSetParams(chGraphExec, cnode, cpNodeParams_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaGraphExecMemsetNodeSetParams(__pyx_v_chGraphExec, __pyx_v_cnode, __pyx_v_cpNodeParams_ptr); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 27159, __pyx_L1_error) __pyx_v_err = __pyx_t_7; /* "cuda/cudart.pyx":27160 * cdef ccudart.cudaMemsetParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL * err = ccudart.cudaGraphExecMemsetNodeSetParams(chGraphExec, cnode, cpNodeParams_ptr) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27160, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_8 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27160, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_8}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27160, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27160, __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)) __PYX_ERR(0, 27160, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":27094 * return (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_5); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":27162 * return (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_6cudart_491cudaGraphExecHostNodeSetParams(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_490cudaGraphExecHostNodeSetParams, "cudaGraphExecHostNodeSetParams(hGraphExec, node, cudaHostNodeParams pNodeParams: Optional[cudaHostNodeParams])\n Sets the parameters for a host node in the given graphExec.\n\n Updates the work represented by `node` in `hGraphExec` as though `node`\n had contained `pNodeParams` at instantiation. `node` must remain in the\n graph which was used to instantiate `hGraphExec`. Changed edges to and\n from `node` are ignored.\n\n The modifications only affect future launches of `hGraphExec`. Already\n enqueued or running launches of `hGraphExec` are not affected by this\n call. `node` is also not modified by this call.\n\n Parameters\n ----------\n hGraphExec : :py:obj:`~.CUgraphExec` or :py:obj:`~.cudaGraphExec_t`\n The executable graph in which to set the specified node\n node : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Host node from the graph which was used to instantiate graphExec\n pNodeParams : :py:obj:`~.cudaHostNodeParams`\n Updated Parameters to set\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_491cudaGraphExecHostNodeSetParams = {"cudaGraphExecHostNodeSetParams", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_491cudaGraphExecHostNodeSetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_490cudaGraphExecHostNodeSetParams}; static PyObject *__pyx_pw_4cuda_6cudart_491cudaGraphExecHostNodeSetParams(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_hGraphExec,&__pyx_n_s_node_2,&__pyx_n_s_pNodeParams,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hGraphExec)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27162, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_node_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27162, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphExecHostNodeSetParams", 1, 3, 3, 1); __PYX_ERR(0, 27162, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pNodeParams)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27162, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphExecHostNodeSetParams", 1, 3, 3, 2); __PYX_ERR(0, 27162, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphExecHostNodeSetParams") < 0)) __PYX_ERR(0, 27162, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_hGraphExec = values[0]; __pyx_v_node = values[1]; __pyx_v_pNodeParams = ((struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *)values[2]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphExecHostNodeSetParams", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 27162, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaHostNodeParams, 1, "pNodeParams", 0))) __PYX_ERR(0, 27163, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_490cudaGraphExecHostNodeSetParams(__pyx_self, __pyx_v_hGraphExec, __pyx_v_node, __pyx_v_pNodeParams); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_490cudaGraphExecHostNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_node, struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *__pyx_v_pNodeParams) { cudaGraphNode_t __pyx_v_cnode; PyObject *__pyx_v_pnode = NULL; cudaGraphExec_t __pyx_v_chGraphExec; PyObject *__pyx_v_phGraphExec = NULL; struct cudaHostNodeParams *__pyx_v_cpNodeParams_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; struct cudaHostNodeParams *__pyx_t_6; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__600) __Pyx_RefNannySetupContext("cudaGraphExecHostNodeSetParams", 1); __Pyx_TraceCall("cudaGraphExecHostNodeSetParams", __pyx_f[0], 27162, 0, __PYX_ERR(0, 27162, __pyx_L1_error)); /* "cuda/cudart.pyx":27194 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_node == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":27195 * cdef ccudart.cudaGraphNode_t cnode * if node is None: * cnode = 0 # <<<<<<<<<<<<<< * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) */ __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":27194 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":27196 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":27197 * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) # <<<<<<<<<<<<<< * cnode = pnode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27197, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pnode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":27198 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) * cnode = pnode # <<<<<<<<<<<<<< * else: * pnode = int(cudaGraphNode_t(node)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27198, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":27196 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ goto __pyx_L3; } /* "cuda/cudart.pyx":27200 * cnode = pnode * else: * pnode = int(cudaGraphNode_t(node)) # <<<<<<<<<<<<<< * cnode = pnode * cdef ccudart.cudaGraphExec_t chGraphExec */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pnode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":27201 * else: * pnode = int(cudaGraphNode_t(node)) * cnode = pnode # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27201, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":27203 * cnode = pnode * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: # <<<<<<<<<<<<<< * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): */ __pyx_t_1 = (__pyx_v_hGraphExec == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":27204 * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: * chGraphExec = 0 # <<<<<<<<<<<<<< * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) */ __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":27203 * cnode = pnode * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: # <<<<<<<<<<<<<< * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":27205 * if hGraphExec is None: * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): # <<<<<<<<<<<<<< * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphExec); __pyx_t_1 = __pyx_t_2; __pyx_L7_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":27206 * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) # <<<<<<<<<<<<<< * chGraphExec = phGraphExec * else: */ __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_v_hGraphExec); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27206, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_phGraphExec = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":27207 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec # <<<<<<<<<<<<<< * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27207, __pyx_L1_error) __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":27205 * if hGraphExec is None: * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): # <<<<<<<<<<<<<< * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec */ goto __pyx_L6; } /* "cuda/cudart.pyx":27209 * chGraphExec = phGraphExec * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) # <<<<<<<<<<<<<< * chGraphExec = phGraphExec * cdef ccudart.cudaHostNodeParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL */ /*else*/ { __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphExec_t), __pyx_v_hGraphExec); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27209, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27209, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_phGraphExec = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":27210 * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) * chGraphExec = phGraphExec # <<<<<<<<<<<<<< * cdef ccudart.cudaHostNodeParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL * err = ccudart.cudaGraphExecHostNodeSetParams(chGraphExec, cnode, cpNodeParams_ptr) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27210, __pyx_L1_error) __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L6:; /* "cuda/cudart.pyx":27211 * phGraphExec = int(cudaGraphExec_t(hGraphExec)) * chGraphExec = phGraphExec * cdef ccudart.cudaHostNodeParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaGraphExecHostNodeSetParams(chGraphExec, cnode, cpNodeParams_ptr) * return (cudaError_t(err),) */ __pyx_t_3 = PyObject_RichCompare(((PyObject *)__pyx_v_pNodeParams), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27211, __pyx_L1_error) __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 27211, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_1) { __pyx_t_6 = __pyx_v_pNodeParams->_ptr; } else { __pyx_t_6 = NULL; } __pyx_v_cpNodeParams_ptr = __pyx_t_6; /* "cuda/cudart.pyx":27212 * chGraphExec = phGraphExec * cdef ccudart.cudaHostNodeParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL * err = ccudart.cudaGraphExecHostNodeSetParams(chGraphExec, cnode, cpNodeParams_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaGraphExecHostNodeSetParams(__pyx_v_chGraphExec, __pyx_v_cnode, __pyx_v_cpNodeParams_ptr); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 27212, __pyx_L1_error) __pyx_v_err = __pyx_t_7; /* "cuda/cudart.pyx":27213 * cdef ccudart.cudaHostNodeParams* cpNodeParams_ptr = pNodeParams._ptr if pNodeParams != None else NULL * err = ccudart.cudaGraphExecHostNodeSetParams(chGraphExec, cnode, cpNodeParams_ptr) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27213, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_8 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27213, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_8}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27213, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27213, __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)) __PYX_ERR(0, 27213, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":27162 * return (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_5); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":27215 * return (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_6cudart_493cudaGraphExecChildGraphNodeSetParams(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_492cudaGraphExecChildGraphNodeSetParams, "cudaGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph)\n Updates node parameters in the child graph node in the given graphExec.\n\n Updates the work represented by `node` in `hGraphExec` as though the\n nodes contained in `node's` graph had the parameters contained in\n `childGraph's` nodes at instantiation. `node` must remain in the graph\n which was used to instantiate `hGraphExec`. Changed edges to and from\n `node` are ignored.\n\n The modifications only affect future launches of `hGraphExec`. Already\n enqueued or running launches of `hGraphExec` are not affected by this\n call. `node` is also not modified by this call.\n\n The topology of `childGraph`, as well as the node insertion order, must\n match that of the graph contained in `node`. See\n :py:obj:`~.cudaGraphExecUpdate()` for a list of restrictions on what\n can be updated in an instantiated graph. The update is recursive, so\n child graph nodes contained within the top level child graph will also\n be updated.\n\n Parameters\n ----------\n hGraphExec : :py:obj:`~.CUgraphExec` or :py:obj:`~.cudaGraphExec_t`\n The executable graph in which to set the specified node\n node : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Host node from the graph which was used to instantiate graphExec\n childGraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n The graph supplying the updated parameters\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n\n See 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:`~.cudaGraph""ExecEventWaitNodeSetEvent`, :py:obj:`~.cudaGraphExecExternalSemaphoresSignalNodeSetParams`, :py:obj:`~.cudaGraphExecExternalSemaphoresWaitNodeSetParams`, :py:obj:`~.cudaGraphExecUpdate`, :py:obj:`~.cudaGraphInstantiate`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_493cudaGraphExecChildGraphNodeSetParams = {"cudaGraphExecChildGraphNodeSetParams", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_493cudaGraphExecChildGraphNodeSetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_492cudaGraphExecChildGraphNodeSetParams}; static PyObject *__pyx_pw_4cuda_6cudart_493cudaGraphExecChildGraphNodeSetParams(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_hGraphExec,&__pyx_n_s_node_2,&__pyx_n_s_childGraph,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hGraphExec)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27215, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_node_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27215, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphExecChildGraphNodeSetParams", 1, 3, 3, 1); __PYX_ERR(0, 27215, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_childGraph)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27215, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphExecChildGraphNodeSetParams", 1, 3, 3, 2); __PYX_ERR(0, 27215, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphExecChildGraphNodeSetParams") < 0)) __PYX_ERR(0, 27215, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __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, 27215, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphExecChildGraphNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_492cudaGraphExecChildGraphNodeSetParams(__pyx_self, __pyx_v_hGraphExec, __pyx_v_node, __pyx_v_childGraph); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_492cudaGraphExecChildGraphNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_node, PyObject *__pyx_v_childGraph) { cudaGraph_t __pyx_v_cchildGraph; PyObject *__pyx_v_pchildGraph = NULL; cudaGraphNode_t __pyx_v_cnode; PyObject *__pyx_v_pnode = NULL; cudaGraphExec_t __pyx_v_chGraphExec; PyObject *__pyx_v_phGraphExec = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__601) __Pyx_RefNannySetupContext("cudaGraphExecChildGraphNodeSetParams", 1); __Pyx_TraceCall("cudaGraphExecChildGraphNodeSetParams", __pyx_f[0], 27215, 0, __PYX_ERR(0, 27215, __pyx_L1_error)); /* "cuda/cudart.pyx":27255 * """ * cdef ccudart.cudaGraph_t cchildGraph * if childGraph is None: # <<<<<<<<<<<<<< * cchildGraph = 0 * elif isinstance(childGraph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_1 = (__pyx_v_childGraph == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":27256 * cdef ccudart.cudaGraph_t cchildGraph * if childGraph is None: * cchildGraph = 0 # <<<<<<<<<<<<<< * elif isinstance(childGraph, (cudaGraph_t,cuda.CUgraph)): * pchildGraph = int(childGraph) */ __pyx_v_cchildGraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":27255 * """ * cdef ccudart.cudaGraph_t cchildGraph * if childGraph is None: # <<<<<<<<<<<<<< * cchildGraph = 0 * elif isinstance(childGraph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":27257 * if childGraph is None: * cchildGraph = 0 * elif isinstance(childGraph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pchildGraph = int(childGraph) * cchildGraph = pchildGraph */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_childGraph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":27258 * cchildGraph = 0 * elif isinstance(childGraph, (cudaGraph_t,cuda.CUgraph)): * pchildGraph = int(childGraph) # <<<<<<<<<<<<<< * cchildGraph = pchildGraph * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_childGraph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27258, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pchildGraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":27259 * elif isinstance(childGraph, (cudaGraph_t,cuda.CUgraph)): * pchildGraph = int(childGraph) * cchildGraph = pchildGraph # <<<<<<<<<<<<<< * else: * pchildGraph = int(cudaGraph_t(childGraph)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pchildGraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27259, __pyx_L1_error) __pyx_v_cchildGraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":27257 * if childGraph is None: * cchildGraph = 0 * elif isinstance(childGraph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pchildGraph = int(childGraph) * cchildGraph = pchildGraph */ goto __pyx_L3; } /* "cuda/cudart.pyx":27261 * cchildGraph = pchildGraph * else: * pchildGraph = int(cudaGraph_t(childGraph)) # <<<<<<<<<<<<<< * cchildGraph = pchildGraph * cdef ccudart.cudaGraphNode_t cnode */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_childGraph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27261, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27261, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pchildGraph = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":27262 * else: * pchildGraph = int(cudaGraph_t(childGraph)) * cchildGraph = pchildGraph # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t cnode * if node is None: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pchildGraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27262, __pyx_L1_error) __pyx_v_cchildGraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":27264 * cchildGraph = pchildGraph * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_node == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":27265 * cdef ccudart.cudaGraphNode_t cnode * if node is None: * cnode = 0 # <<<<<<<<<<<<<< * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) */ __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":27264 * cchildGraph = pchildGraph * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":27266 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L7_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":27267 * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) # <<<<<<<<<<<<<< * cnode = pnode * else: */ __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27267, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pnode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":27268 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) * cnode = pnode # <<<<<<<<<<<<<< * else: * pnode = int(cudaGraphNode_t(node)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27268, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":27266 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ goto __pyx_L6; } /* "cuda/cudart.pyx":27270 * cnode = pnode * else: * pnode = int(cudaGraphNode_t(node)) # <<<<<<<<<<<<<< * cnode = pnode * cdef ccudart.cudaGraphExec_t chGraphExec */ /*else*/ { __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_node); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27270, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27270, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_pnode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":27271 * else: * pnode = int(cudaGraphNode_t(node)) * cnode = pnode # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27271, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L6:; /* "cuda/cudart.pyx":27273 * cnode = pnode * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: # <<<<<<<<<<<<<< * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): */ __pyx_t_1 = (__pyx_v_hGraphExec == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":27274 * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: * chGraphExec = 0 # <<<<<<<<<<<<<< * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) */ __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":27273 * cnode = pnode * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: # <<<<<<<<<<<<<< * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): */ goto __pyx_L9; } /* "cuda/cudart.pyx":27275 * if hGraphExec is None: * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): # <<<<<<<<<<<<<< * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphExec); __pyx_t_1 = __pyx_t_2; __pyx_L10_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":27276 * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) # <<<<<<<<<<<<<< * chGraphExec = phGraphExec * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hGraphExec); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27276, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_phGraphExec = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":27277 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec # <<<<<<<<<<<<<< * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27277, __pyx_L1_error) __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":27275 * if hGraphExec is None: * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): # <<<<<<<<<<<<<< * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec */ goto __pyx_L9; } /* "cuda/cudart.pyx":27279 * chGraphExec = phGraphExec * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) # <<<<<<<<<<<<<< * chGraphExec = phGraphExec * err = ccudart.cudaGraphExecChildGraphNodeSetParams(chGraphExec, cnode, cchildGraph) */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphExec_t), __pyx_v_hGraphExec); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27279, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27279, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_phGraphExec = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":27280 * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) * chGraphExec = phGraphExec # <<<<<<<<<<<<<< * err = ccudart.cudaGraphExecChildGraphNodeSetParams(chGraphExec, cnode, cchildGraph) * return (cudaError_t(err),) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27280, __pyx_L1_error) __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L9:; /* "cuda/cudart.pyx":27281 * phGraphExec = int(cudaGraphExec_t(hGraphExec)) * chGraphExec = phGraphExec * err = ccudart.cudaGraphExecChildGraphNodeSetParams(chGraphExec, cnode, cchildGraph) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaGraphExecChildGraphNodeSetParams(__pyx_v_chGraphExec, __pyx_v_cnode, __pyx_v_cchildGraph); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 27281, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":27282 * chGraphExec = phGraphExec * err = ccudart.cudaGraphExecChildGraphNodeSetParams(chGraphExec, cnode, cchildGraph) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27282, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 27282, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27282, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27282, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 27282, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":27215 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":27284 * return (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_6cudart_495cudaGraphExecEventRecordNodeSetEvent(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_494cudaGraphExecEventRecordNodeSetEvent, "cudaGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event)\n Sets the event for an event record node in the given graphExec.\n\n Sets the event of an event record node in an executable graph\n `hGraphExec`. The node is identified by the corresponding node `hNode`\n in the non-executable graph, from which the executable graph was\n instantiated.\n\n The modifications only affect future launches of `hGraphExec`. Already\n enqueued or running launches of `hGraphExec` are not affected by this\n call. `hNode` is also not modified by this call.\n\n Parameters\n ----------\n hGraphExec : :py:obj:`~.CUgraphExec` or :py:obj:`~.cudaGraphExec_t`\n The executable graph in which to set the specified node\n hNode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Event record node from the graph from which graphExec was\n instantiated\n event : :py:obj:`~.CUevent` or :py:obj:`~.cudaEvent_t`\n Updated event to use\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_495cudaGraphExecEventRecordNodeSetEvent = {"cudaGraphExecEventRecordNodeSetEvent", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_495cudaGraphExecEventRecordNodeSetEvent, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_494cudaGraphExecEventRecordNodeSetEvent}; static PyObject *__pyx_pw_4cuda_6cudart_495cudaGraphExecEventRecordNodeSetEvent(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_hGraphExec,&__pyx_n_s_hNode,&__pyx_n_s_event_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hGraphExec)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27284, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hNode)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27284, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphExecEventRecordNodeSetEvent", 1, 3, 3, 1); __PYX_ERR(0, 27284, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_event_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27284, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphExecEventRecordNodeSetEvent", 1, 3, 3, 2); __PYX_ERR(0, 27284, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphExecEventRecordNodeSetEvent") < 0)) __PYX_ERR(0, 27284, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __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, 27284, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphExecEventRecordNodeSetEvent", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_494cudaGraphExecEventRecordNodeSetEvent(__pyx_self, __pyx_v_hGraphExec, __pyx_v_hNode, __pyx_v_event); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_494cudaGraphExecEventRecordNodeSetEvent(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_hNode, PyObject *__pyx_v_event) { cudaEvent_t __pyx_v_cevent; PyObject *__pyx_v_pevent = NULL; cudaGraphNode_t __pyx_v_chNode; PyObject *__pyx_v_phNode = NULL; cudaGraphExec_t __pyx_v_chGraphExec; PyObject *__pyx_v_phGraphExec = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__602) __Pyx_RefNannySetupContext("cudaGraphExecEventRecordNodeSetEvent", 1); __Pyx_TraceCall("cudaGraphExecEventRecordNodeSetEvent", __pyx_f[0], 27284, 0, __PYX_ERR(0, 27284, __pyx_L1_error)); /* "cuda/cudart.pyx":27317 * """ * cdef ccudart.cudaEvent_t cevent * if event is None: # <<<<<<<<<<<<<< * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): */ __pyx_t_1 = (__pyx_v_event == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":27318 * cdef ccudart.cudaEvent_t cevent * if event is None: * cevent = 0 # <<<<<<<<<<<<<< * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) */ __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":27317 * """ * cdef ccudart.cudaEvent_t cevent * if event is None: # <<<<<<<<<<<<<< * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":27319 * if event is None: * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pevent = int(event) * cevent = pevent */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUevent); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":27320 * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) # <<<<<<<<<<<<<< * cevent = pevent * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27320, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pevent = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":27321 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) * cevent = pevent # <<<<<<<<<<<<<< * else: * pevent = int(cudaEvent_t(event)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27321, __pyx_L1_error) __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":27319 * if event is None: * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pevent = int(event) * cevent = pevent */ goto __pyx_L3; } /* "cuda/cudart.pyx":27323 * cevent = pevent * else: * pevent = int(cudaEvent_t(event)) # <<<<<<<<<<<<<< * cevent = pevent * cdef ccudart.cudaGraphNode_t chNode */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEvent_t), __pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27323, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27323, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pevent = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":27324 * else: * pevent = int(cudaEvent_t(event)) * cevent = pevent # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27324, __pyx_L1_error) __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":27326 * cevent = pevent * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: # <<<<<<<<<<<<<< * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_hNode == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":27327 * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: * chNode = 0 # <<<<<<<<<<<<<< * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): * phNode = int(hNode) */ __pyx_v_chNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":27326 * cevent = pevent * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: # <<<<<<<<<<<<<< * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":27328 * if hNode is None: * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * phNode = int(hNode) * chNode = phNode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L7_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":27329 * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): * phNode = int(hNode) # <<<<<<<<<<<<<< * chNode = phNode * else: */ __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_v_hNode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27329, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_phNode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":27330 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): * phNode = int(hNode) * chNode = phNode # <<<<<<<<<<<<<< * else: * phNode = int(cudaGraphNode_t(hNode)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27330, __pyx_L1_error) __pyx_v_chNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":27328 * if hNode is None: * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * phNode = int(hNode) * chNode = phNode */ goto __pyx_L6; } /* "cuda/cudart.pyx":27332 * chNode = phNode * else: * phNode = int(cudaGraphNode_t(hNode)) # <<<<<<<<<<<<<< * chNode = phNode * cdef ccudart.cudaGraphExec_t chGraphExec */ /*else*/ { __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_hNode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27332, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27332, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_phNode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":27333 * else: * phNode = int(cudaGraphNode_t(hNode)) * chNode = phNode # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27333, __pyx_L1_error) __pyx_v_chNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L6:; /* "cuda/cudart.pyx":27335 * chNode = phNode * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: # <<<<<<<<<<<<<< * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): */ __pyx_t_1 = (__pyx_v_hGraphExec == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":27336 * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: * chGraphExec = 0 # <<<<<<<<<<<<<< * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) */ __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":27335 * chNode = phNode * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: # <<<<<<<<<<<<<< * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): */ goto __pyx_L9; } /* "cuda/cudart.pyx":27337 * if hGraphExec is None: * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): # <<<<<<<<<<<<<< * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphExec); __pyx_t_1 = __pyx_t_2; __pyx_L10_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":27338 * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) # <<<<<<<<<<<<<< * chGraphExec = phGraphExec * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hGraphExec); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27338, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_phGraphExec = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":27339 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec # <<<<<<<<<<<<<< * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27339, __pyx_L1_error) __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":27337 * if hGraphExec is None: * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): # <<<<<<<<<<<<<< * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec */ goto __pyx_L9; } /* "cuda/cudart.pyx":27341 * chGraphExec = phGraphExec * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) # <<<<<<<<<<<<<< * chGraphExec = phGraphExec * err = ccudart.cudaGraphExecEventRecordNodeSetEvent(chGraphExec, chNode, cevent) */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphExec_t), __pyx_v_hGraphExec); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27341, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27341, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_phGraphExec = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":27342 * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) * chGraphExec = phGraphExec # <<<<<<<<<<<<<< * err = ccudart.cudaGraphExecEventRecordNodeSetEvent(chGraphExec, chNode, cevent) * return (cudaError_t(err),) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27342, __pyx_L1_error) __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L9:; /* "cuda/cudart.pyx":27343 * phGraphExec = int(cudaGraphExec_t(hGraphExec)) * chGraphExec = phGraphExec * err = ccudart.cudaGraphExecEventRecordNodeSetEvent(chGraphExec, chNode, cevent) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaGraphExecEventRecordNodeSetEvent(__pyx_v_chGraphExec, __pyx_v_chNode, __pyx_v_cevent); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 27343, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":27344 * chGraphExec = phGraphExec * err = ccudart.cudaGraphExecEventRecordNodeSetEvent(chGraphExec, chNode, cevent) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27344, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 27344, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27344, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27344, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 27344, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":27284 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":27346 * return (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_6cudart_497cudaGraphExecEventWaitNodeSetEvent(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_496cudaGraphExecEventWaitNodeSetEvent, "cudaGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event)\n Sets the event for an event wait node in the given graphExec.\n\n Sets the event of an event wait node in an executable graph\n `hGraphExec`. The node is identified by the corresponding node `hNode`\n in the non-executable graph, from which the executable graph was\n instantiated.\n\n The modifications only affect future launches of `hGraphExec`. Already\n enqueued or running launches of `hGraphExec` are not affected by this\n call. `hNode` is also not modified by this call.\n\n Parameters\n ----------\n hGraphExec : :py:obj:`~.CUgraphExec` or :py:obj:`~.cudaGraphExec_t`\n The executable graph in which to set the specified node\n hNode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Event wait node from the graph from which graphExec was\n instantiated\n event : :py:obj:`~.CUevent` or :py:obj:`~.cudaEvent_t`\n Updated event to use\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n\n See 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`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_497cudaGraphExecEventWaitNodeSetEvent = {"cudaGraphExecEventWaitNodeSetEvent", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_497cudaGraphExecEventWaitNodeSetEvent, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_496cudaGraphExecEventWaitNodeSetEvent}; static PyObject *__pyx_pw_4cuda_6cudart_497cudaGraphExecEventWaitNodeSetEvent(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_hGraphExec,&__pyx_n_s_hNode,&__pyx_n_s_event_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hGraphExec)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27346, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hNode)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27346, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphExecEventWaitNodeSetEvent", 1, 3, 3, 1); __PYX_ERR(0, 27346, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_event_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27346, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphExecEventWaitNodeSetEvent", 1, 3, 3, 2); __PYX_ERR(0, 27346, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphExecEventWaitNodeSetEvent") < 0)) __PYX_ERR(0, 27346, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __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, 27346, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphExecEventWaitNodeSetEvent", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_496cudaGraphExecEventWaitNodeSetEvent(__pyx_self, __pyx_v_hGraphExec, __pyx_v_hNode, __pyx_v_event); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_496cudaGraphExecEventWaitNodeSetEvent(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_hNode, PyObject *__pyx_v_event) { cudaEvent_t __pyx_v_cevent; PyObject *__pyx_v_pevent = NULL; cudaGraphNode_t __pyx_v_chNode; PyObject *__pyx_v_phNode = NULL; cudaGraphExec_t __pyx_v_chGraphExec; PyObject *__pyx_v_phGraphExec = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__603) __Pyx_RefNannySetupContext("cudaGraphExecEventWaitNodeSetEvent", 1); __Pyx_TraceCall("cudaGraphExecEventWaitNodeSetEvent", __pyx_f[0], 27346, 0, __PYX_ERR(0, 27346, __pyx_L1_error)); /* "cuda/cudart.pyx":27379 * """ * cdef ccudart.cudaEvent_t cevent * if event is None: # <<<<<<<<<<<<<< * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): */ __pyx_t_1 = (__pyx_v_event == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":27380 * cdef ccudart.cudaEvent_t cevent * if event is None: * cevent = 0 # <<<<<<<<<<<<<< * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) */ __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":27379 * """ * cdef ccudart.cudaEvent_t cevent * if event is None: # <<<<<<<<<<<<<< * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":27381 * if event is None: * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pevent = int(event) * cevent = pevent */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUevent); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":27382 * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) # <<<<<<<<<<<<<< * cevent = pevent * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27382, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pevent = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":27383 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): * pevent = int(event) * cevent = pevent # <<<<<<<<<<<<<< * else: * pevent = int(cudaEvent_t(event)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27383, __pyx_L1_error) __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":27381 * if event is None: * cevent = 0 * elif isinstance(event, (cudaEvent_t,cuda.CUevent)): # <<<<<<<<<<<<<< * pevent = int(event) * cevent = pevent */ goto __pyx_L3; } /* "cuda/cudart.pyx":27385 * cevent = pevent * else: * pevent = int(cudaEvent_t(event)) # <<<<<<<<<<<<<< * cevent = pevent * cdef ccudart.cudaGraphNode_t chNode */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEvent_t), __pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27385, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27385, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pevent = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":27386 * else: * pevent = int(cudaEvent_t(event)) * cevent = pevent # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27386, __pyx_L1_error) __pyx_v_cevent = ((cudaEvent_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":27388 * cevent = pevent * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: # <<<<<<<<<<<<<< * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_hNode == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":27389 * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: * chNode = 0 # <<<<<<<<<<<<<< * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): * phNode = int(hNode) */ __pyx_v_chNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":27388 * cevent = pevent * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: # <<<<<<<<<<<<<< * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":27390 * if hNode is None: * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * phNode = int(hNode) * chNode = phNode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L7_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":27391 * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): * phNode = int(hNode) # <<<<<<<<<<<<<< * chNode = phNode * else: */ __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_v_hNode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27391, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_phNode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":27392 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): * phNode = int(hNode) * chNode = phNode # <<<<<<<<<<<<<< * else: * phNode = int(cudaGraphNode_t(hNode)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27392, __pyx_L1_error) __pyx_v_chNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":27390 * if hNode is None: * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * phNode = int(hNode) * chNode = phNode */ goto __pyx_L6; } /* "cuda/cudart.pyx":27394 * chNode = phNode * else: * phNode = int(cudaGraphNode_t(hNode)) # <<<<<<<<<<<<<< * chNode = phNode * cdef ccudart.cudaGraphExec_t chGraphExec */ /*else*/ { __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_hNode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27394, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27394, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_phNode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":27395 * else: * phNode = int(cudaGraphNode_t(hNode)) * chNode = phNode # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27395, __pyx_L1_error) __pyx_v_chNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L6:; /* "cuda/cudart.pyx":27397 * chNode = phNode * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: # <<<<<<<<<<<<<< * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): */ __pyx_t_1 = (__pyx_v_hGraphExec == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":27398 * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: * chGraphExec = 0 # <<<<<<<<<<<<<< * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) */ __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":27397 * chNode = phNode * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: # <<<<<<<<<<<<<< * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): */ goto __pyx_L9; } /* "cuda/cudart.pyx":27399 * if hGraphExec is None: * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): # <<<<<<<<<<<<<< * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphExec); __pyx_t_1 = __pyx_t_2; __pyx_L10_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":27400 * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) # <<<<<<<<<<<<<< * chGraphExec = phGraphExec * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hGraphExec); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27400, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_phGraphExec = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":27401 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec # <<<<<<<<<<<<<< * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27401, __pyx_L1_error) __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":27399 * if hGraphExec is None: * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): # <<<<<<<<<<<<<< * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec */ goto __pyx_L9; } /* "cuda/cudart.pyx":27403 * chGraphExec = phGraphExec * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) # <<<<<<<<<<<<<< * chGraphExec = phGraphExec * err = ccudart.cudaGraphExecEventWaitNodeSetEvent(chGraphExec, chNode, cevent) */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphExec_t), __pyx_v_hGraphExec); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27403, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27403, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_phGraphExec = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":27404 * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) * chGraphExec = phGraphExec # <<<<<<<<<<<<<< * err = ccudart.cudaGraphExecEventWaitNodeSetEvent(chGraphExec, chNode, cevent) * return (cudaError_t(err),) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27404, __pyx_L1_error) __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L9:; /* "cuda/cudart.pyx":27405 * phGraphExec = int(cudaGraphExec_t(hGraphExec)) * chGraphExec = phGraphExec * err = ccudart.cudaGraphExecEventWaitNodeSetEvent(chGraphExec, chNode, cevent) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaGraphExecEventWaitNodeSetEvent(__pyx_v_chGraphExec, __pyx_v_chNode, __pyx_v_cevent); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 27405, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":27406 * chGraphExec = phGraphExec * err = ccudart.cudaGraphExecEventWaitNodeSetEvent(chGraphExec, chNode, cevent) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27406, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 27406, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27406, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27406, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 27406, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":27346 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":27408 * return (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_6cudart_499cudaGraphExecExternalSemaphoresSignalNodeSetParams(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_498cudaGraphExecExternalSemaphoresSignalNodeSetParams, "cudaGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, cudaExternalSemaphoreSignalNodeParams nodeParams: Optional[cudaExternalSemaphoreSignalNodeParams])\n Sets the parameters for an external semaphore signal node in the given graphExec.\n\n Sets the parameters of an external semaphore signal node in an\n executable graph `hGraphExec`. The node is identified by the\n corresponding node `hNode` in the non-executable graph, from which the\n executable graph was instantiated.\n\n `hNode` must not have been removed from the original graph.\n\n The modifications only affect future launches of `hGraphExec`. Already\n enqueued or running launches of `hGraphExec` are not affected by this\n call. `hNode` is also not modified by this call.\n\n Changing `nodeParams->numExtSems` is not supported.\n\n Parameters\n ----------\n hGraphExec : :py:obj:`~.CUgraphExec` or :py:obj:`~.cudaGraphExec_t`\n The executable graph in which to set the specified node\n hNode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n semaphore signal node from the graph from which graphExec was\n instantiated\n nodeParams : :py:obj:`~.cudaExternalSemaphoreSignalNodeParams`\n Updated Parameters to set\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n\n See 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:`~.cudaGraph""ExecExternalSemaphoresWaitNodeSetParams`, :py:obj:`~.cudaGraphExecUpdate`, :py:obj:`~.cudaGraphInstantiate`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_499cudaGraphExecExternalSemaphoresSignalNodeSetParams = {"cudaGraphExecExternalSemaphoresSignalNodeSetParams", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_499cudaGraphExecExternalSemaphoresSignalNodeSetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_498cudaGraphExecExternalSemaphoresSignalNodeSetParams}; static PyObject *__pyx_pw_4cuda_6cudart_499cudaGraphExecExternalSemaphoresSignalNodeSetParams(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_hGraphExec,&__pyx_n_s_hNode,&__pyx_n_s_nodeParams,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hGraphExec)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27408, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hNode)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27408, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphExecExternalSemaphoresSignalNodeSetParams", 1, 3, 3, 1); __PYX_ERR(0, 27408, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_nodeParams)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27408, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphExecExternalSemaphoresSignalNodeSetParams", 1, 3, 3, 2); __PYX_ERR(0, 27408, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphExecExternalSemaphoresSignalNodeSetParams") < 0)) __PYX_ERR(0, 27408, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_hGraphExec = values[0]; __pyx_v_hNode = values[1]; __pyx_v_nodeParams = ((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *)values[2]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphExecExternalSemaphoresSignalNodeSetParams", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 27408, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams, 1, "nodeParams", 0))) __PYX_ERR(0, 27409, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_498cudaGraphExecExternalSemaphoresSignalNodeSetParams(__pyx_self, __pyx_v_hGraphExec, __pyx_v_hNode, __pyx_v_nodeParams); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_498cudaGraphExecExternalSemaphoresSignalNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_hNode, struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *__pyx_v_nodeParams) { cudaGraphNode_t __pyx_v_chNode; PyObject *__pyx_v_phNode = NULL; cudaGraphExec_t __pyx_v_chGraphExec; PyObject *__pyx_v_phGraphExec = NULL; struct cudaExternalSemaphoreSignalNodeParams *__pyx_v_cnodeParams_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; struct cudaExternalSemaphoreSignalNodeParams *__pyx_t_6; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__604) __Pyx_RefNannySetupContext("cudaGraphExecExternalSemaphoresSignalNodeSetParams", 1); __Pyx_TraceCall("cudaGraphExecExternalSemaphoresSignalNodeSetParams", __pyx_f[0], 27408, 0, __PYX_ERR(0, 27408, __pyx_L1_error)); /* "cuda/cudart.pyx":27445 * """ * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: # <<<<<<<<<<<<<< * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_hNode == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":27446 * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: * chNode = 0 # <<<<<<<<<<<<<< * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): * phNode = int(hNode) */ __pyx_v_chNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":27445 * """ * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: # <<<<<<<<<<<<<< * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":27447 * if hNode is None: * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * phNode = int(hNode) * chNode = phNode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":27448 * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): * phNode = int(hNode) # <<<<<<<<<<<<<< * chNode = phNode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27448, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_phNode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":27449 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): * phNode = int(hNode) * chNode = phNode # <<<<<<<<<<<<<< * else: * phNode = int(cudaGraphNode_t(hNode)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27449, __pyx_L1_error) __pyx_v_chNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":27447 * if hNode is None: * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * phNode = int(hNode) * chNode = phNode */ goto __pyx_L3; } /* "cuda/cudart.pyx":27451 * chNode = phNode * else: * phNode = int(cudaGraphNode_t(hNode)) # <<<<<<<<<<<<<< * chNode = phNode * cdef ccudart.cudaGraphExec_t chGraphExec */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_hNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27451, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27451, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_phNode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":27452 * else: * phNode = int(cudaGraphNode_t(hNode)) * chNode = phNode # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27452, __pyx_L1_error) __pyx_v_chNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":27454 * chNode = phNode * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: # <<<<<<<<<<<<<< * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): */ __pyx_t_1 = (__pyx_v_hGraphExec == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":27455 * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: * chGraphExec = 0 # <<<<<<<<<<<<<< * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) */ __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":27454 * chNode = phNode * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: # <<<<<<<<<<<<<< * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":27456 * if hGraphExec is None: * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): # <<<<<<<<<<<<<< * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphExec); __pyx_t_1 = __pyx_t_2; __pyx_L7_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":27457 * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) # <<<<<<<<<<<<<< * chGraphExec = phGraphExec * else: */ __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_v_hGraphExec); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27457, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_phGraphExec = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":27458 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec # <<<<<<<<<<<<<< * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27458, __pyx_L1_error) __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":27456 * if hGraphExec is None: * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): # <<<<<<<<<<<<<< * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec */ goto __pyx_L6; } /* "cuda/cudart.pyx":27460 * chGraphExec = phGraphExec * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) # <<<<<<<<<<<<<< * chGraphExec = phGraphExec * cdef ccudart.cudaExternalSemaphoreSignalNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL */ /*else*/ { __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphExec_t), __pyx_v_hGraphExec); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27460, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27460, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_phGraphExec = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":27461 * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) * chGraphExec = phGraphExec # <<<<<<<<<<<<<< * cdef ccudart.cudaExternalSemaphoreSignalNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphExecExternalSemaphoresSignalNodeSetParams(chGraphExec, chNode, cnodeParams_ptr) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27461, __pyx_L1_error) __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L6:; /* "cuda/cudart.pyx":27462 * phGraphExec = int(cudaGraphExec_t(hGraphExec)) * chGraphExec = phGraphExec * cdef ccudart.cudaExternalSemaphoreSignalNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaGraphExecExternalSemaphoresSignalNodeSetParams(chGraphExec, chNode, cnodeParams_ptr) * return (cudaError_t(err),) */ __pyx_t_3 = PyObject_RichCompare(((PyObject *)__pyx_v_nodeParams), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27462, __pyx_L1_error) __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 27462, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_1) { __pyx_t_6 = __pyx_v_nodeParams->_ptr; } else { __pyx_t_6 = NULL; } __pyx_v_cnodeParams_ptr = __pyx_t_6; /* "cuda/cudart.pyx":27463 * chGraphExec = phGraphExec * cdef ccudart.cudaExternalSemaphoreSignalNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphExecExternalSemaphoresSignalNodeSetParams(chGraphExec, chNode, cnodeParams_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaGraphExecExternalSemaphoresSignalNodeSetParams(__pyx_v_chGraphExec, __pyx_v_chNode, __pyx_v_cnodeParams_ptr); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 27463, __pyx_L1_error) __pyx_v_err = __pyx_t_7; /* "cuda/cudart.pyx":27464 * cdef ccudart.cudaExternalSemaphoreSignalNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphExecExternalSemaphoresSignalNodeSetParams(chGraphExec, chNode, cnodeParams_ptr) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27464, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_8 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27464, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_8}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27464, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27464, __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)) __PYX_ERR(0, 27464, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":27408 * return (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_5); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":27466 * return (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_6cudart_501cudaGraphExecExternalSemaphoresWaitNodeSetParams(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_500cudaGraphExecExternalSemaphoresWaitNodeSetParams, "cudaGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, cudaExternalSemaphoreWaitNodeParams nodeParams: Optional[cudaExternalSemaphoreWaitNodeParams])\n Sets the parameters for an external semaphore wait node in the given graphExec.\n\n Sets the parameters of an external semaphore wait node in an executable\n graph `hGraphExec`. The node is identified by the corresponding node\n `hNode` in the non-executable graph, from which the executable graph\n was instantiated.\n\n `hNode` must not have been removed from the original graph.\n\n The modifications only affect future launches of `hGraphExec`. Already\n enqueued or running launches of `hGraphExec` are not affected by this\n call. `hNode` is also not modified by this call.\n\n Changing `nodeParams->numExtSems` is not supported.\n\n Parameters\n ----------\n hGraphExec : :py:obj:`~.CUgraphExec` or :py:obj:`~.cudaGraphExec_t`\n The executable graph in which to set the specified node\n hNode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n semaphore wait node from the graph from which graphExec was\n instantiated\n nodeParams : :py:obj:`~.cudaExternalSemaphoreWaitNodeParams`\n Updated Parameters to set\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n\n See 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:`~.cudaGraphExecExternalSema""phoresSignalNodeSetParams`, :py:obj:`~.cudaGraphExecUpdate`, :py:obj:`~.cudaGraphInstantiate`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_501cudaGraphExecExternalSemaphoresWaitNodeSetParams = {"cudaGraphExecExternalSemaphoresWaitNodeSetParams", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_501cudaGraphExecExternalSemaphoresWaitNodeSetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_500cudaGraphExecExternalSemaphoresWaitNodeSetParams}; static PyObject *__pyx_pw_4cuda_6cudart_501cudaGraphExecExternalSemaphoresWaitNodeSetParams(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_hGraphExec,&__pyx_n_s_hNode,&__pyx_n_s_nodeParams,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hGraphExec)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27466, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hNode)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27466, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphExecExternalSemaphoresWaitNodeSetParams", 1, 3, 3, 1); __PYX_ERR(0, 27466, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_nodeParams)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27466, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphExecExternalSemaphoresWaitNodeSetParams", 1, 3, 3, 2); __PYX_ERR(0, 27466, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphExecExternalSemaphoresWaitNodeSetParams") < 0)) __PYX_ERR(0, 27466, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_hGraphExec = values[0]; __pyx_v_hNode = values[1]; __pyx_v_nodeParams = ((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *)values[2]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphExecExternalSemaphoresWaitNodeSetParams", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 27466, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams, 1, "nodeParams", 0))) __PYX_ERR(0, 27467, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_500cudaGraphExecExternalSemaphoresWaitNodeSetParams(__pyx_self, __pyx_v_hGraphExec, __pyx_v_hNode, __pyx_v_nodeParams); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_500cudaGraphExecExternalSemaphoresWaitNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_hNode, struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *__pyx_v_nodeParams) { cudaGraphNode_t __pyx_v_chNode; PyObject *__pyx_v_phNode = NULL; cudaGraphExec_t __pyx_v_chGraphExec; PyObject *__pyx_v_phGraphExec = NULL; struct cudaExternalSemaphoreWaitNodeParams *__pyx_v_cnodeParams_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; struct cudaExternalSemaphoreWaitNodeParams *__pyx_t_6; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__605) __Pyx_RefNannySetupContext("cudaGraphExecExternalSemaphoresWaitNodeSetParams", 1); __Pyx_TraceCall("cudaGraphExecExternalSemaphoresWaitNodeSetParams", __pyx_f[0], 27466, 0, __PYX_ERR(0, 27466, __pyx_L1_error)); /* "cuda/cudart.pyx":27503 * """ * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: # <<<<<<<<<<<<<< * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_hNode == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":27504 * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: * chNode = 0 # <<<<<<<<<<<<<< * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): * phNode = int(hNode) */ __pyx_v_chNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":27503 * """ * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: # <<<<<<<<<<<<<< * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":27505 * if hNode is None: * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * phNode = int(hNode) * chNode = phNode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":27506 * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): * phNode = int(hNode) # <<<<<<<<<<<<<< * chNode = phNode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27506, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_phNode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":27507 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): * phNode = int(hNode) * chNode = phNode # <<<<<<<<<<<<<< * else: * phNode = int(cudaGraphNode_t(hNode)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27507, __pyx_L1_error) __pyx_v_chNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":27505 * if hNode is None: * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * phNode = int(hNode) * chNode = phNode */ goto __pyx_L3; } /* "cuda/cudart.pyx":27509 * chNode = phNode * else: * phNode = int(cudaGraphNode_t(hNode)) # <<<<<<<<<<<<<< * chNode = phNode * cdef ccudart.cudaGraphExec_t chGraphExec */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_hNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27509, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27509, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_phNode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":27510 * else: * phNode = int(cudaGraphNode_t(hNode)) * chNode = phNode # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27510, __pyx_L1_error) __pyx_v_chNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":27512 * chNode = phNode * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: # <<<<<<<<<<<<<< * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): */ __pyx_t_1 = (__pyx_v_hGraphExec == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":27513 * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: * chGraphExec = 0 # <<<<<<<<<<<<<< * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) */ __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":27512 * chNode = phNode * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: # <<<<<<<<<<<<<< * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":27514 * if hGraphExec is None: * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): # <<<<<<<<<<<<<< * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphExec); __pyx_t_1 = __pyx_t_2; __pyx_L7_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":27515 * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) # <<<<<<<<<<<<<< * chGraphExec = phGraphExec * else: */ __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_v_hGraphExec); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27515, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_phGraphExec = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":27516 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec # <<<<<<<<<<<<<< * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27516, __pyx_L1_error) __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":27514 * if hGraphExec is None: * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): # <<<<<<<<<<<<<< * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec */ goto __pyx_L6; } /* "cuda/cudart.pyx":27518 * chGraphExec = phGraphExec * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) # <<<<<<<<<<<<<< * chGraphExec = phGraphExec * cdef ccudart.cudaExternalSemaphoreWaitNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL */ /*else*/ { __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphExec_t), __pyx_v_hGraphExec); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27518, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27518, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_phGraphExec = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":27519 * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) * chGraphExec = phGraphExec # <<<<<<<<<<<<<< * cdef ccudart.cudaExternalSemaphoreWaitNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphExecExternalSemaphoresWaitNodeSetParams(chGraphExec, chNode, cnodeParams_ptr) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27519, __pyx_L1_error) __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L6:; /* "cuda/cudart.pyx":27520 * phGraphExec = int(cudaGraphExec_t(hGraphExec)) * chGraphExec = phGraphExec * cdef ccudart.cudaExternalSemaphoreWaitNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaGraphExecExternalSemaphoresWaitNodeSetParams(chGraphExec, chNode, cnodeParams_ptr) * return (cudaError_t(err),) */ __pyx_t_3 = PyObject_RichCompare(((PyObject *)__pyx_v_nodeParams), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27520, __pyx_L1_error) __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 27520, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_1) { __pyx_t_6 = __pyx_v_nodeParams->_ptr; } else { __pyx_t_6 = NULL; } __pyx_v_cnodeParams_ptr = __pyx_t_6; /* "cuda/cudart.pyx":27521 * chGraphExec = phGraphExec * cdef ccudart.cudaExternalSemaphoreWaitNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphExecExternalSemaphoresWaitNodeSetParams(chGraphExec, chNode, cnodeParams_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaGraphExecExternalSemaphoresWaitNodeSetParams(__pyx_v_chGraphExec, __pyx_v_chNode, __pyx_v_cnodeParams_ptr); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 27521, __pyx_L1_error) __pyx_v_err = __pyx_t_7; /* "cuda/cudart.pyx":27522 * cdef ccudart.cudaExternalSemaphoreWaitNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphExecExternalSemaphoresWaitNodeSetParams(chGraphExec, chNode, cnodeParams_ptr) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27522, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_8 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27522, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_8}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27522, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27522, __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)) __PYX_ERR(0, 27522, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":27466 * return (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_5); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":27524 * return (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_6cudart_503cudaGraphNodeSetEnabled(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_502cudaGraphNodeSetEnabled, "cudaGraphNodeSetEnabled(hGraphExec, hNode, unsigned int isEnabled)\n Enables or disables the specified node in the given graphExec.\n\n Sets `hNode` to be either enabled or disabled. Disabled nodes are\n functionally equivalent to empty nodes until they are reenabled.\n Existing node parameters are not affected by disabling/enabling the\n node.\n\n The node is identified by the corresponding node `hNode` in the non-\n executable graph, from which the executable graph was instantiated.\n\n `hNode` must not have been removed from the original graph.\n\n The modifications only affect future launches of `hGraphExec`. Already\n enqueued or running launches of `hGraphExec` are not affected by this\n call. `hNode` is also not modified by this call.\n\n Parameters\n ----------\n hGraphExec : :py:obj:`~.CUgraphExec` or :py:obj:`~.cudaGraphExec_t`\n The executable graph in which to set the specified node\n hNode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Node from the graph from which graphExec was instantiated\n isEnabled : unsigned int\n Node is enabled if != 0, otherwise the node is disabled\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n\n See Also\n --------\n :py:obj:`~.cudaGraphNodeGetEnabled`, :py:obj:`~.cudaGraphExecUpdate`, :py:obj:`~.cudaGraphInstantiate` :py:obj:`~.cudaGraphLaunch`\n\n Notes\n -----\n Currently only kernel, memset and memcpy nodes are supported.\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_503cudaGraphNodeSetEnabled = {"cudaGraphNodeSetEnabled", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_503cudaGraphNodeSetEnabled, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_502cudaGraphNodeSetEnabled}; static PyObject *__pyx_pw_4cuda_6cudart_503cudaGraphNodeSetEnabled(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_hGraphExec,&__pyx_n_s_hNode,&__pyx_n_s_isEnabled_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hGraphExec)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27524, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hNode)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27524, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphNodeSetEnabled", 1, 3, 3, 1); __PYX_ERR(0, 27524, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_isEnabled_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27524, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphNodeSetEnabled", 1, 3, 3, 2); __PYX_ERR(0, 27524, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphNodeSetEnabled") < 0)) __PYX_ERR(0, 27524, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_hGraphExec = values[0]; __pyx_v_hNode = values[1]; __pyx_v_isEnabled = __Pyx_PyInt_As_unsigned_int(values[2]); if (unlikely((__pyx_v_isEnabled == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 27525, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphNodeSetEnabled", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 27524, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeSetEnabled", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_502cudaGraphNodeSetEnabled(__pyx_self, __pyx_v_hGraphExec, __pyx_v_hNode, __pyx_v_isEnabled); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_502cudaGraphNodeSetEnabled(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_hNode, unsigned int __pyx_v_isEnabled) { cudaGraphNode_t __pyx_v_chNode; PyObject *__pyx_v_phNode = NULL; cudaGraphExec_t __pyx_v_chGraphExec; PyObject *__pyx_v_phGraphExec = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__606) __Pyx_RefNannySetupContext("cudaGraphNodeSetEnabled", 1); __Pyx_TraceCall("cudaGraphNodeSetEnabled", __pyx_f[0], 27524, 0, __PYX_ERR(0, 27524, __pyx_L1_error)); /* "cuda/cudart.pyx":27565 * """ * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: # <<<<<<<<<<<<<< * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_hNode == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":27566 * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: * chNode = 0 # <<<<<<<<<<<<<< * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): * phNode = int(hNode) */ __pyx_v_chNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":27565 * """ * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: # <<<<<<<<<<<<<< * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":27567 * if hNode is None: * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * phNode = int(hNode) * chNode = phNode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":27568 * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): * phNode = int(hNode) # <<<<<<<<<<<<<< * chNode = phNode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27568, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_phNode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":27569 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): * phNode = int(hNode) * chNode = phNode # <<<<<<<<<<<<<< * else: * phNode = int(cudaGraphNode_t(hNode)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27569, __pyx_L1_error) __pyx_v_chNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":27567 * if hNode is None: * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * phNode = int(hNode) * chNode = phNode */ goto __pyx_L3; } /* "cuda/cudart.pyx":27571 * chNode = phNode * else: * phNode = int(cudaGraphNode_t(hNode)) # <<<<<<<<<<<<<< * chNode = phNode * cdef ccudart.cudaGraphExec_t chGraphExec */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_hNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27571, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27571, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_phNode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":27572 * else: * phNode = int(cudaGraphNode_t(hNode)) * chNode = phNode # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27572, __pyx_L1_error) __pyx_v_chNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":27574 * chNode = phNode * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: # <<<<<<<<<<<<<< * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): */ __pyx_t_1 = (__pyx_v_hGraphExec == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":27575 * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: * chGraphExec = 0 # <<<<<<<<<<<<<< * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) */ __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":27574 * chNode = phNode * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: # <<<<<<<<<<<<<< * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":27576 * if hGraphExec is None: * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): # <<<<<<<<<<<<<< * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphExec); __pyx_t_1 = __pyx_t_2; __pyx_L7_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":27577 * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) # <<<<<<<<<<<<<< * chGraphExec = phGraphExec * else: */ __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_v_hGraphExec); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27577, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_phGraphExec = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":27578 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec # <<<<<<<<<<<<<< * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27578, __pyx_L1_error) __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":27576 * if hGraphExec is None: * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): # <<<<<<<<<<<<<< * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec */ goto __pyx_L6; } /* "cuda/cudart.pyx":27580 * chGraphExec = phGraphExec * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) # <<<<<<<<<<<<<< * chGraphExec = phGraphExec * err = ccudart.cudaGraphNodeSetEnabled(chGraphExec, chNode, isEnabled) */ /*else*/ { __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphExec_t), __pyx_v_hGraphExec); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27580, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27580, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_phGraphExec = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":27581 * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) * chGraphExec = phGraphExec # <<<<<<<<<<<<<< * err = ccudart.cudaGraphNodeSetEnabled(chGraphExec, chNode, isEnabled) * return (cudaError_t(err),) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27581, __pyx_L1_error) __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L6:; /* "cuda/cudart.pyx":27582 * phGraphExec = int(cudaGraphExec_t(hGraphExec)) * chGraphExec = phGraphExec * err = ccudart.cudaGraphNodeSetEnabled(chGraphExec, chNode, isEnabled) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaGraphNodeSetEnabled(__pyx_v_chGraphExec, __pyx_v_chNode, __pyx_v_isEnabled); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 27582, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":27583 * chGraphExec = phGraphExec * err = ccudart.cudaGraphNodeSetEnabled(chGraphExec, chNode, isEnabled) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27583, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 27583, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __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, 27583, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27583, __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)) __PYX_ERR(0, 27583, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":27524 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":27585 * return (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_6cudart_505cudaGraphNodeGetEnabled(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_504cudaGraphNodeGetEnabled, "cudaGraphNodeGetEnabled(hGraphExec, hNode)\n Query whether a node in the given graphExec is enabled.\n\n Sets isEnabled to 1 if `hNode` is enabled, or 0 if `hNode` is disabled.\n\n The node is identified by the corresponding node `hNode` in the non-\n executable graph, from which the executable graph was instantiated.\n\n `hNode` must not have been removed from the original graph.\n\n Parameters\n ----------\n hGraphExec : :py:obj:`~.CUgraphExec` or :py:obj:`~.cudaGraphExec_t`\n The executable graph in which to set the specified node\n hNode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Node from the graph from which graphExec was instantiated\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n isEnabled : unsigned int\n Location to return the enabled status of the node\n\n See Also\n --------\n :py:obj:`~.cudaGraphNodeSetEnabled`, :py:obj:`~.cudaGraphExecUpdate`, :py:obj:`~.cudaGraphInstantiate` :py:obj:`~.cudaGraphLaunch`\n\n Notes\n -----\n Currently only kernel, memset and memcpy nodes are supported.\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_505cudaGraphNodeGetEnabled = {"cudaGraphNodeGetEnabled", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_505cudaGraphNodeGetEnabled, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_504cudaGraphNodeGetEnabled}; static PyObject *__pyx_pw_4cuda_6cudart_505cudaGraphNodeGetEnabled(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_hGraphExec,&__pyx_n_s_hNode,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hGraphExec)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27585, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hNode)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27585, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphNodeGetEnabled", 1, 2, 2, 1); __PYX_ERR(0, 27585, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphNodeGetEnabled") < 0)) __PYX_ERR(0, 27585, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __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, 27585, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeGetEnabled", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_504cudaGraphNodeGetEnabled(__pyx_self, __pyx_v_hGraphExec, __pyx_v_hNode); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_504cudaGraphNodeGetEnabled(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_hNode) { cudaGraphNode_t __pyx_v_chNode; PyObject *__pyx_v_phNode = NULL; cudaGraphExec_t __pyx_v_chGraphExec; PyObject *__pyx_v_phGraphExec = NULL; unsigned int __pyx_v_isEnabled; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__607) __Pyx_RefNannySetupContext("cudaGraphNodeGetEnabled", 1); __Pyx_TraceCall("cudaGraphNodeGetEnabled", __pyx_f[0], 27585, 0, __PYX_ERR(0, 27585, __pyx_L1_error)); /* "cuda/cudart.pyx":27619 * """ * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: # <<<<<<<<<<<<<< * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_hNode == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":27620 * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: * chNode = 0 # <<<<<<<<<<<<<< * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): * phNode = int(hNode) */ __pyx_v_chNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":27619 * """ * cdef ccudart.cudaGraphNode_t chNode * if hNode is None: # <<<<<<<<<<<<<< * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":27621 * if hNode is None: * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * phNode = int(hNode) * chNode = phNode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":27622 * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): * phNode = int(hNode) # <<<<<<<<<<<<<< * chNode = phNode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27622, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_phNode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":27623 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): * phNode = int(hNode) * chNode = phNode # <<<<<<<<<<<<<< * else: * phNode = int(cudaGraphNode_t(hNode)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27623, __pyx_L1_error) __pyx_v_chNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":27621 * if hNode is None: * chNode = 0 * elif isinstance(hNode, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * phNode = int(hNode) * chNode = phNode */ goto __pyx_L3; } /* "cuda/cudart.pyx":27625 * chNode = phNode * else: * phNode = int(cudaGraphNode_t(hNode)) # <<<<<<<<<<<<<< * chNode = phNode * cdef ccudart.cudaGraphExec_t chGraphExec */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_hNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27625, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27625, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_phNode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":27626 * else: * phNode = int(cudaGraphNode_t(hNode)) * chNode = phNode # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27626, __pyx_L1_error) __pyx_v_chNode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":27628 * chNode = phNode * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: # <<<<<<<<<<<<<< * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): */ __pyx_t_1 = (__pyx_v_hGraphExec == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":27629 * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: * chGraphExec = 0 # <<<<<<<<<<<<<< * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) */ __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":27628 * chNode = phNode * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: # <<<<<<<<<<<<<< * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":27630 * if hGraphExec is None: * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): # <<<<<<<<<<<<<< * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphExec); __pyx_t_1 = __pyx_t_2; __pyx_L7_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":27631 * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) # <<<<<<<<<<<<<< * chGraphExec = phGraphExec * else: */ __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_v_hGraphExec); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27631, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_phGraphExec = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":27632 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec # <<<<<<<<<<<<<< * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27632, __pyx_L1_error) __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":27630 * if hGraphExec is None: * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): # <<<<<<<<<<<<<< * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec */ goto __pyx_L6; } /* "cuda/cudart.pyx":27634 * chGraphExec = phGraphExec * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) # <<<<<<<<<<<<<< * chGraphExec = phGraphExec * cdef unsigned int isEnabled = 0 */ /*else*/ { __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphExec_t), __pyx_v_hGraphExec); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27634, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27634, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_phGraphExec = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":27635 * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) * chGraphExec = phGraphExec # <<<<<<<<<<<<<< * cdef unsigned int isEnabled = 0 * err = ccudart.cudaGraphNodeGetEnabled(chGraphExec, chNode, &isEnabled) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27635, __pyx_L1_error) __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L6:; /* "cuda/cudart.pyx":27636 * phGraphExec = int(cudaGraphExec_t(hGraphExec)) * chGraphExec = phGraphExec * cdef unsigned int isEnabled = 0 # <<<<<<<<<<<<<< * err = ccudart.cudaGraphNodeGetEnabled(chGraphExec, chNode, &isEnabled) * return (cudaError_t(err), isEnabled) */ __pyx_v_isEnabled = 0; /* "cuda/cudart.pyx":27637 * chGraphExec = phGraphExec * cdef unsigned int isEnabled = 0 * err = ccudart.cudaGraphNodeGetEnabled(chGraphExec, chNode, &isEnabled) # <<<<<<<<<<<<<< * return (cudaError_t(err), isEnabled) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaGraphNodeGetEnabled(__pyx_v_chGraphExec, __pyx_v_chNode, (&__pyx_v_isEnabled)); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 27637, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":27638 * cdef unsigned int isEnabled = 0 * err = ccudart.cudaGraphNodeGetEnabled(chGraphExec, chNode, &isEnabled) * return (cudaError_t(err), isEnabled) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27638, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 27638, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __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, 27638, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_isEnabled); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27638, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 27638, __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)) __PYX_ERR(0, 27638, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_5)) __PYX_ERR(0, 27638, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_5 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":27585 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":27640 * return (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_6cudart_507cudaGraphExecUpdate(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_506cudaGraphExecUpdate, "cudaGraphExecUpdate(hGraphExec, hGraph)\n Check whether an executable graph can be updated with a graph and perform the update if possible.\n\n Updates the node parameters in the instantiated graph specified by\n `hGraphExec` with the node parameters in a topologically identical\n graph specified by `hGraph`.\n\n Limitations:\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 addres""s and assinged 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 - Changeing 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\n Note: The API may add further restrictions in future releases. The\n return code should always be checked.\n\n cudaGraphExecUpdate sets the result member of `resultInfo` to\n cudaGraphExecUpdateErrorTopologyChanged 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\n cudaGraphExecUpdate 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 node 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\n If the update fails for a reason not listed above, the result member of\n `resultInfo` will be set to cudaGraphExecUpdateError. If the update\n succeeds, the result member will be set to cudaGraphExecUpdateSuccess.\n\n cudaGraphExecUpdate returns cudaSuccess when the updated was performed\n successfully. It returns cudaErrorGraphExecUpdateFailure if the graph\n update was not performed because it included changes which violated\n constraints specific to instantiated graph update.\n\n Parameters\n ----------\n hGraphExec : :py:obj:`~.CUgraphExec` or :py:obj:`~.cudaGraphExec_t`\n The instantiated graph to be updated\n hGraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n The graph containing the updated para""meters\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorGraphExecUpdateFailure`,\n resultInfo : :py:obj:`~.cudaGraphExecUpdateResultInfo`\n the error info structure\n\n See Also\n --------\n :py:obj:`~.cudaGraphInstantiate`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_507cudaGraphExecUpdate = {"cudaGraphExecUpdate", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_507cudaGraphExecUpdate, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_506cudaGraphExecUpdate}; static PyObject *__pyx_pw_4cuda_6cudart_507cudaGraphExecUpdate(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_hGraphExec,&__pyx_n_s_hGraph,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hGraphExec)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27640, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_hGraph)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27640, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphExecUpdate", 1, 2, 2, 1); __PYX_ERR(0, 27640, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphExecUpdate") < 0)) __PYX_ERR(0, 27640, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __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, 27640, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphExecUpdate", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_506cudaGraphExecUpdate(__pyx_self, __pyx_v_hGraphExec, __pyx_v_hGraph); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_506cudaGraphExecUpdate(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_hGraph) { cudaGraph_t __pyx_v_chGraph; PyObject *__pyx_v_phGraph = NULL; cudaGraphExec_t __pyx_v_chGraphExec; PyObject *__pyx_v_phGraphExec = NULL; struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo *__pyx_v_resultInfo = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__608) __Pyx_RefNannySetupContext("cudaGraphExecUpdate", 1); __Pyx_TraceCall("cudaGraphExecUpdate", __pyx_f[0], 27640, 0, __PYX_ERR(0, 27640, __pyx_L1_error)); /* "cuda/cudart.pyx":27791 * """ * cdef ccudart.cudaGraph_t chGraph * if hGraph is None: # <<<<<<<<<<<<<< * chGraph = 0 * elif isinstance(hGraph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_1 = (__pyx_v_hGraph == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":27792 * cdef ccudart.cudaGraph_t chGraph * if hGraph is None: * chGraph = 0 # <<<<<<<<<<<<<< * elif isinstance(hGraph, (cudaGraph_t,cuda.CUgraph)): * phGraph = int(hGraph) */ __pyx_v_chGraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":27791 * """ * cdef ccudart.cudaGraph_t chGraph * if hGraph is None: # <<<<<<<<<<<<<< * chGraph = 0 * elif isinstance(hGraph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":27793 * if hGraph is None: * chGraph = 0 * elif isinstance(hGraph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * phGraph = int(hGraph) * chGraph = phGraph */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":27794 * chGraph = 0 * elif isinstance(hGraph, (cudaGraph_t,cuda.CUgraph)): * phGraph = int(hGraph) # <<<<<<<<<<<<<< * chGraph = phGraph * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hGraph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27794, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_phGraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":27795 * elif isinstance(hGraph, (cudaGraph_t,cuda.CUgraph)): * phGraph = int(hGraph) * chGraph = phGraph # <<<<<<<<<<<<<< * else: * phGraph = int(cudaGraph_t(hGraph)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phGraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27795, __pyx_L1_error) __pyx_v_chGraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":27793 * if hGraph is None: * chGraph = 0 * elif isinstance(hGraph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * phGraph = int(hGraph) * chGraph = phGraph */ goto __pyx_L3; } /* "cuda/cudart.pyx":27797 * chGraph = phGraph * else: * phGraph = int(cudaGraph_t(hGraph)) # <<<<<<<<<<<<<< * chGraph = phGraph * cdef ccudart.cudaGraphExec_t chGraphExec */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_hGraph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27797, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27797, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_phGraph = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":27798 * else: * phGraph = int(cudaGraph_t(hGraph)) * chGraph = phGraph # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phGraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27798, __pyx_L1_error) __pyx_v_chGraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":27800 * chGraph = phGraph * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: # <<<<<<<<<<<<<< * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): */ __pyx_t_1 = (__pyx_v_hGraphExec == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":27801 * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: * chGraphExec = 0 # <<<<<<<<<<<<<< * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) */ __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":27800 * chGraph = phGraph * cdef ccudart.cudaGraphExec_t chGraphExec * if hGraphExec is None: # <<<<<<<<<<<<<< * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":27802 * if hGraphExec is None: * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): # <<<<<<<<<<<<<< * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphExec); __pyx_t_1 = __pyx_t_2; __pyx_L7_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":27803 * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) # <<<<<<<<<<<<<< * chGraphExec = phGraphExec * else: */ __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_v_hGraphExec); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27803, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_phGraphExec = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":27804 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec # <<<<<<<<<<<<<< * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27804, __pyx_L1_error) __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":27802 * if hGraphExec is None: * chGraphExec = 0 * elif isinstance(hGraphExec, (cudaGraphExec_t,cuda.CUgraphExec)): # <<<<<<<<<<<<<< * phGraphExec = int(hGraphExec) * chGraphExec = phGraphExec */ goto __pyx_L6; } /* "cuda/cudart.pyx":27806 * chGraphExec = phGraphExec * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) # <<<<<<<<<<<<<< * chGraphExec = phGraphExec * cdef cudaGraphExecUpdateResultInfo resultInfo = cudaGraphExecUpdateResultInfo() */ /*else*/ { __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphExec_t), __pyx_v_hGraphExec); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27806, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27806, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_phGraphExec = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":27807 * else: * phGraphExec = int(cudaGraphExec_t(hGraphExec)) * chGraphExec = phGraphExec # <<<<<<<<<<<<<< * cdef cudaGraphExecUpdateResultInfo resultInfo = cudaGraphExecUpdateResultInfo() * err = ccudart.cudaGraphExecUpdate(chGraphExec, chGraph, resultInfo._ptr) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27807, __pyx_L1_error) __pyx_v_chGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L6:; /* "cuda/cudart.pyx":27808 * phGraphExec = int(cudaGraphExec_t(hGraphExec)) * chGraphExec = phGraphExec * cdef cudaGraphExecUpdateResultInfo resultInfo = cudaGraphExecUpdateResultInfo() # <<<<<<<<<<<<<< * err = ccudart.cudaGraphExecUpdate(chGraphExec, chGraph, resultInfo._ptr) * return (cudaError_t(err), resultInfo) */ __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphExecUpdateResultInfo)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27808, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_resultInfo = ((struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo *)__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":27809 * chGraphExec = phGraphExec * cdef cudaGraphExecUpdateResultInfo resultInfo = cudaGraphExecUpdateResultInfo() * err = ccudart.cudaGraphExecUpdate(chGraphExec, chGraph, resultInfo._ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err), resultInfo) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaGraphExecUpdate(__pyx_v_chGraphExec, __pyx_v_chGraph, ((cudaGraphExecUpdateResultInfo *)__pyx_v_resultInfo->__pyx_base._ptr)); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 27809, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":27810 * cdef cudaGraphExecUpdateResultInfo resultInfo = cudaGraphExecUpdateResultInfo() * err = ccudart.cudaGraphExecUpdate(chGraphExec, chGraph, resultInfo._ptr) * return (cudaError_t(err), resultInfo) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27810, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 27810, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __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, 27810, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27810, __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)) __PYX_ERR(0, 27810, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_resultInfo); __Pyx_GIVEREF((PyObject *)__pyx_v_resultInfo); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_v_resultInfo))) __PYX_ERR(0, 27810, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":27640 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":27812 * return (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_6cudart_509cudaGraphUpload(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_508cudaGraphUpload, "cudaGraphUpload(graphExec, stream)\n Uploads an executable graph in a stream.\n\n Uploads `hGraphExec` to the device in `hStream` without executing it.\n Uploads of the same `hGraphExec` will be serialized. Each upload is\n ordered behind both any previous work in `hStream` and any previous\n launches of `hGraphExec`. Uses memory cached by `stream` to back the\n allocations owned by `graphExec`.\n\n Parameters\n ----------\n hGraphExec : :py:obj:`~.CUgraphExec` or :py:obj:`~.cudaGraphExec_t`\n Executable graph to upload\n hStream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n Stream in which to upload the graph\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n\n See Also\n --------\n :py:obj:`~.cudaGraphInstantiate`, :py:obj:`~.cudaGraphLaunch`, :py:obj:`~.cudaGraphExecDestroy`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_509cudaGraphUpload = {"cudaGraphUpload", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_509cudaGraphUpload, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_508cudaGraphUpload}; static PyObject *__pyx_pw_4cuda_6cudart_509cudaGraphUpload(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_graphExec,&__pyx_n_s_stream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_graphExec)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27812, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27812, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphUpload", 1, 2, 2, 1); __PYX_ERR(0, 27812, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphUpload") < 0)) __PYX_ERR(0, 27812, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __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, 27812, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphUpload", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_508cudaGraphUpload(__pyx_self, __pyx_v_graphExec, __pyx_v_stream); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_508cudaGraphUpload(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graphExec, PyObject *__pyx_v_stream) { cudaStream_t __pyx_v_cstream; PyObject *__pyx_v_pstream = NULL; cudaGraphExec_t __pyx_v_cgraphExec; PyObject *__pyx_v_pgraphExec = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__609) __Pyx_RefNannySetupContext("cudaGraphUpload", 1); __Pyx_TraceCall("cudaGraphUpload", __pyx_f[0], 27812, 0, __PYX_ERR(0, 27812, __pyx_L1_error)); /* "cuda/cudart.pyx":27839 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_stream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":27840 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":27839 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":27841 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":27842 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27842, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pstream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":27843 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27843, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":27841 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L3; } /* "cuda/cudart.pyx":27845 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * cdef ccudart.cudaGraphExec_t cgraphExec */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27845, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27845, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pstream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":27846 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphExec_t cgraphExec * if graphExec is None: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27846, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":27848 * cstream = pstream * cdef ccudart.cudaGraphExec_t cgraphExec * if graphExec is None: # <<<<<<<<<<<<<< * cgraphExec = 0 * elif isinstance(graphExec, (cudaGraphExec_t,cuda.CUgraphExec)): */ __pyx_t_1 = (__pyx_v_graphExec == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":27849 * cdef ccudart.cudaGraphExec_t cgraphExec * if graphExec is None: * cgraphExec = 0 # <<<<<<<<<<<<<< * elif isinstance(graphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * pgraphExec = int(graphExec) */ __pyx_v_cgraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":27848 * cstream = pstream * cdef ccudart.cudaGraphExec_t cgraphExec * if graphExec is None: # <<<<<<<<<<<<<< * cgraphExec = 0 * elif isinstance(graphExec, (cudaGraphExec_t,cuda.CUgraphExec)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":27850 * if graphExec is None: * cgraphExec = 0 * elif isinstance(graphExec, (cudaGraphExec_t,cuda.CUgraphExec)): # <<<<<<<<<<<<<< * pgraphExec = int(graphExec) * cgraphExec = pgraphExec */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graphExec, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphExec); __pyx_t_1 = __pyx_t_2; __pyx_L7_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":27851 * cgraphExec = 0 * elif isinstance(graphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * pgraphExec = int(graphExec) # <<<<<<<<<<<<<< * cgraphExec = pgraphExec * else: */ __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_v_graphExec); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27851, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pgraphExec = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":27852 * elif isinstance(graphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * pgraphExec = int(graphExec) * cgraphExec = pgraphExec # <<<<<<<<<<<<<< * else: * pgraphExec = int(cudaGraphExec_t(graphExec)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraphExec); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27852, __pyx_L1_error) __pyx_v_cgraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":27850 * if graphExec is None: * cgraphExec = 0 * elif isinstance(graphExec, (cudaGraphExec_t,cuda.CUgraphExec)): # <<<<<<<<<<<<<< * pgraphExec = int(graphExec) * cgraphExec = pgraphExec */ goto __pyx_L6; } /* "cuda/cudart.pyx":27854 * cgraphExec = pgraphExec * else: * pgraphExec = int(cudaGraphExec_t(graphExec)) # <<<<<<<<<<<<<< * cgraphExec = pgraphExec * err = ccudart.cudaGraphUpload(cgraphExec, cstream) */ /*else*/ { __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphExec_t), __pyx_v_graphExec); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27854, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27854, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_pgraphExec = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":27855 * else: * pgraphExec = int(cudaGraphExec_t(graphExec)) * cgraphExec = pgraphExec # <<<<<<<<<<<<<< * err = ccudart.cudaGraphUpload(cgraphExec, cstream) * return (cudaError_t(err),) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraphExec); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27855, __pyx_L1_error) __pyx_v_cgraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L6:; /* "cuda/cudart.pyx":27856 * pgraphExec = int(cudaGraphExec_t(graphExec)) * cgraphExec = pgraphExec * err = ccudart.cudaGraphUpload(cgraphExec, cstream) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaGraphUpload(__pyx_v_cgraphExec, __pyx_v_cstream); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 27856, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":27857 * cgraphExec = pgraphExec * err = ccudart.cudaGraphUpload(cgraphExec, cstream) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27857, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 27857, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __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, 27857, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27857, __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)) __PYX_ERR(0, 27857, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":27812 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":27859 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphLaunch(graphExec, stream): * """ Launches an executable graph in a stream. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_511cudaGraphLaunch(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_510cudaGraphLaunch, "cudaGraphLaunch(graphExec, stream)\n Launches an executable graph in a stream.\n\n Executes `graphExec` in `stream`. Only one instance of `graphExec` may\n be executing at a time. Each launch is ordered behind both any previous\n work in `stream` and any previous launches of `graphExec`. To execute a\n graph concurrently, it must be instantiated multiple times into\n multiple executable graphs.\n\n If any allocations created by `graphExec` remain unfreed (from a\n previous launch) and `graphExec` was not instantiated with\n :py:obj:`~.cudaGraphInstantiateFlagAutoFreeOnLaunch`, the launch will\n fail with :py:obj:`~.cudaErrorInvalidValue`.\n\n Parameters\n ----------\n graphExec : :py:obj:`~.CUgraphExec` or :py:obj:`~.cudaGraphExec_t`\n Executable graph to launch\n stream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n Stream in which to launch the graph\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\n See Also\n --------\n :py:obj:`~.cudaGraphInstantiate`, :py:obj:`~.cudaGraphUpload`, :py:obj:`~.cudaGraphExecDestroy`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_511cudaGraphLaunch = {"cudaGraphLaunch", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_511cudaGraphLaunch, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_510cudaGraphLaunch}; static PyObject *__pyx_pw_4cuda_6cudart_511cudaGraphLaunch(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_graphExec,&__pyx_n_s_stream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_graphExec)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27859, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_stream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27859, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphLaunch", 1, 2, 2, 1); __PYX_ERR(0, 27859, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphLaunch") < 0)) __PYX_ERR(0, 27859, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __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, 27859, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphLaunch", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_510cudaGraphLaunch(__pyx_self, __pyx_v_graphExec, __pyx_v_stream); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_510cudaGraphLaunch(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graphExec, PyObject *__pyx_v_stream) { cudaStream_t __pyx_v_cstream; PyObject *__pyx_v_pstream = NULL; cudaGraphExec_t __pyx_v_cgraphExec; PyObject *__pyx_v_pgraphExec = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__610) __Pyx_RefNannySetupContext("cudaGraphLaunch", 1); __Pyx_TraceCall("cudaGraphLaunch", __pyx_f[0], 27859, 0, __PYX_ERR(0, 27859, __pyx_L1_error)); /* "cuda/cudart.pyx":27891 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_stream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":27892 * cdef ccudart.cudaStream_t cstream * if stream is None: * cstream = 0 # <<<<<<<<<<<<<< * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) */ __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":27891 * """ * cdef ccudart.cudaStream_t cstream * if stream is None: # <<<<<<<<<<<<<< * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":27893 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":27894 * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) # <<<<<<<<<<<<<< * cstream = pstream * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27894, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pstream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":27895 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): * pstream = int(stream) * cstream = pstream # <<<<<<<<<<<<<< * else: * pstream = int(cudaStream_t(stream)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27895, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":27893 * if stream is None: * cstream = 0 * elif isinstance(stream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * pstream = int(stream) * cstream = pstream */ goto __pyx_L3; } /* "cuda/cudart.pyx":27897 * cstream = pstream * else: * pstream = int(cudaStream_t(stream)) # <<<<<<<<<<<<<< * cstream = pstream * cdef ccudart.cudaGraphExec_t cgraphExec */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), __pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27897, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27897, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pstream = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":27898 * else: * pstream = int(cudaStream_t(stream)) * cstream = pstream # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphExec_t cgraphExec * if graphExec is None: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27898, __pyx_L1_error) __pyx_v_cstream = ((cudaStream_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":27900 * cstream = pstream * cdef ccudart.cudaGraphExec_t cgraphExec * if graphExec is None: # <<<<<<<<<<<<<< * cgraphExec = 0 * elif isinstance(graphExec, (cudaGraphExec_t,cuda.CUgraphExec)): */ __pyx_t_1 = (__pyx_v_graphExec == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":27901 * cdef ccudart.cudaGraphExec_t cgraphExec * if graphExec is None: * cgraphExec = 0 # <<<<<<<<<<<<<< * elif isinstance(graphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * pgraphExec = int(graphExec) */ __pyx_v_cgraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":27900 * cstream = pstream * cdef ccudart.cudaGraphExec_t cgraphExec * if graphExec is None: # <<<<<<<<<<<<<< * cgraphExec = 0 * elif isinstance(graphExec, (cudaGraphExec_t,cuda.CUgraphExec)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":27902 * if graphExec is None: * cgraphExec = 0 * elif isinstance(graphExec, (cudaGraphExec_t,cuda.CUgraphExec)): # <<<<<<<<<<<<<< * pgraphExec = int(graphExec) * cgraphExec = pgraphExec */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graphExec, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphExec); __pyx_t_1 = __pyx_t_2; __pyx_L7_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":27903 * cgraphExec = 0 * elif isinstance(graphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * pgraphExec = int(graphExec) # <<<<<<<<<<<<<< * cgraphExec = pgraphExec * else: */ __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_v_graphExec); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27903, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pgraphExec = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":27904 * elif isinstance(graphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * pgraphExec = int(graphExec) * cgraphExec = pgraphExec # <<<<<<<<<<<<<< * else: * pgraphExec = int(cudaGraphExec_t(graphExec)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraphExec); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27904, __pyx_L1_error) __pyx_v_cgraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":27902 * if graphExec is None: * cgraphExec = 0 * elif isinstance(graphExec, (cudaGraphExec_t,cuda.CUgraphExec)): # <<<<<<<<<<<<<< * pgraphExec = int(graphExec) * cgraphExec = pgraphExec */ goto __pyx_L6; } /* "cuda/cudart.pyx":27906 * cgraphExec = pgraphExec * else: * pgraphExec = int(cudaGraphExec_t(graphExec)) # <<<<<<<<<<<<<< * cgraphExec = pgraphExec * err = ccudart.cudaGraphLaunch(cgraphExec, cstream) */ /*else*/ { __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphExec_t), __pyx_v_graphExec); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27906, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27906, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_pgraphExec = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":27907 * else: * pgraphExec = int(cudaGraphExec_t(graphExec)) * cgraphExec = pgraphExec # <<<<<<<<<<<<<< * err = ccudart.cudaGraphLaunch(cgraphExec, cstream) * return (cudaError_t(err),) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraphExec); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27907, __pyx_L1_error) __pyx_v_cgraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L6:; /* "cuda/cudart.pyx":27908 * pgraphExec = int(cudaGraphExec_t(graphExec)) * cgraphExec = pgraphExec * err = ccudart.cudaGraphLaunch(cgraphExec, cstream) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaGraphLaunch(__pyx_v_cgraphExec, __pyx_v_cstream); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 27908, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":27909 * cgraphExec = pgraphExec * err = ccudart.cudaGraphLaunch(cgraphExec, cstream) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27909, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 27909, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __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, 27909, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27909, __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)) __PYX_ERR(0, 27909, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":27859 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":27911 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphExecDestroy(graphExec): * """ Destroys an executable graph. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_513cudaGraphExecDestroy(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_512cudaGraphExecDestroy, "cudaGraphExecDestroy(graphExec)\n Destroys an executable graph.\n\n Destroys the executable graph specified by `graphExec`.\n\n Parameters\n ----------\n graphExec : :py:obj:`~.CUgraphExec` or :py:obj:`~.cudaGraphExec_t`\n Executable graph to destroy\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\n See Also\n --------\n :py:obj:`~.cudaGraphInstantiate`, :py:obj:`~.cudaGraphUpload`, :py:obj:`~.cudaGraphLaunch`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_513cudaGraphExecDestroy = {"cudaGraphExecDestroy", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_513cudaGraphExecDestroy, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_512cudaGraphExecDestroy}; static PyObject *__pyx_pw_4cuda_6cudart_513cudaGraphExecDestroy(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_graphExec,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_graphExec)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27911, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphExecDestroy") < 0)) __PYX_ERR(0, 27911, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_graphExec = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphExecDestroy", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 27911, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphExecDestroy", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_512cudaGraphExecDestroy(__pyx_self, __pyx_v_graphExec); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_512cudaGraphExecDestroy(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graphExec) { cudaGraphExec_t __pyx_v_cgraphExec; PyObject *__pyx_v_pgraphExec = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__611) __Pyx_RefNannySetupContext("cudaGraphExecDestroy", 1); __Pyx_TraceCall("cudaGraphExecDestroy", __pyx_f[0], 27911, 0, __PYX_ERR(0, 27911, __pyx_L1_error)); /* "cuda/cudart.pyx":27932 * """ * cdef ccudart.cudaGraphExec_t cgraphExec * if graphExec is None: # <<<<<<<<<<<<<< * cgraphExec = 0 * elif isinstance(graphExec, (cudaGraphExec_t,cuda.CUgraphExec)): */ __pyx_t_1 = (__pyx_v_graphExec == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":27933 * cdef ccudart.cudaGraphExec_t cgraphExec * if graphExec is None: * cgraphExec = 0 # <<<<<<<<<<<<<< * elif isinstance(graphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * pgraphExec = int(graphExec) */ __pyx_v_cgraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":27932 * """ * cdef ccudart.cudaGraphExec_t cgraphExec * if graphExec is None: # <<<<<<<<<<<<<< * cgraphExec = 0 * elif isinstance(graphExec, (cudaGraphExec_t,cuda.CUgraphExec)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":27934 * if graphExec is None: * cgraphExec = 0 * elif isinstance(graphExec, (cudaGraphExec_t,cuda.CUgraphExec)): # <<<<<<<<<<<<<< * pgraphExec = int(graphExec) * cgraphExec = pgraphExec */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graphExec, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphExec); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":27935 * cgraphExec = 0 * elif isinstance(graphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * pgraphExec = int(graphExec) # <<<<<<<<<<<<<< * cgraphExec = pgraphExec * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graphExec); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27935, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pgraphExec = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":27936 * elif isinstance(graphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * pgraphExec = int(graphExec) * cgraphExec = pgraphExec # <<<<<<<<<<<<<< * else: * pgraphExec = int(cudaGraphExec_t(graphExec)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraphExec); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27936, __pyx_L1_error) __pyx_v_cgraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":27934 * if graphExec is None: * cgraphExec = 0 * elif isinstance(graphExec, (cudaGraphExec_t,cuda.CUgraphExec)): # <<<<<<<<<<<<<< * pgraphExec = int(graphExec) * cgraphExec = pgraphExec */ goto __pyx_L3; } /* "cuda/cudart.pyx":27938 * cgraphExec = pgraphExec * else: * pgraphExec = int(cudaGraphExec_t(graphExec)) # <<<<<<<<<<<<<< * cgraphExec = pgraphExec * err = ccudart.cudaGraphExecDestroy(cgraphExec) */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphExec_t), __pyx_v_graphExec); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27938, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27938, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pgraphExec = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":27939 * else: * pgraphExec = int(cudaGraphExec_t(graphExec)) * cgraphExec = pgraphExec # <<<<<<<<<<<<<< * err = ccudart.cudaGraphExecDestroy(cgraphExec) * return (cudaError_t(err),) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraphExec); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27939, __pyx_L1_error) __pyx_v_cgraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":27940 * pgraphExec = int(cudaGraphExec_t(graphExec)) * cgraphExec = pgraphExec * err = ccudart.cudaGraphExecDestroy(cgraphExec) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaGraphExecDestroy(__pyx_v_cgraphExec); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 27940, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":27941 * cgraphExec = pgraphExec * err = ccudart.cudaGraphExecDestroy(cgraphExec) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27941, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 27941, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27941, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27941, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 27941, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":27911 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaGraphExecDestroy", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pgraphExec); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":27943 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphDestroy(graph): * """ Destroys a graph. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_515cudaGraphDestroy(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_514cudaGraphDestroy, "cudaGraphDestroy(graph)\n Destroys a graph.\n\n Destroys the graph specified by `graph`, as well as all of its nodes.\n\n Parameters\n ----------\n graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n Graph to destroy\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\n See Also\n --------\n :py:obj:`~.cudaGraphCreate`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_515cudaGraphDestroy = {"cudaGraphDestroy", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_515cudaGraphDestroy, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_514cudaGraphDestroy}; static PyObject *__pyx_pw_4cuda_6cudart_515cudaGraphDestroy(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_graph_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_graph_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27943, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphDestroy") < 0)) __PYX_ERR(0, 27943, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_graph = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphDestroy", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 27943, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphDestroy", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_514cudaGraphDestroy(__pyx_self, __pyx_v_graph); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_514cudaGraphDestroy(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph) { cudaGraph_t __pyx_v_cgraph; PyObject *__pyx_v_pgraph = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__612) __Pyx_RefNannySetupContext("cudaGraphDestroy", 1); __Pyx_TraceCall("cudaGraphDestroy", __pyx_f[0], 27943, 0, __PYX_ERR(0, 27943, __pyx_L1_error)); /* "cuda/cudart.pyx":27964 * """ * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_1 = (__pyx_v_graph == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":27965 * cdef ccudart.cudaGraph_t cgraph * if graph is None: * cgraph = 0 # <<<<<<<<<<<<<< * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) */ __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":27964 * """ * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":27966 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":27967 * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) # <<<<<<<<<<<<<< * cgraph = pgraph * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27967, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pgraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":27968 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) * cgraph = pgraph # <<<<<<<<<<<<<< * else: * pgraph = int(cudaGraph_t(graph)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27968, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":27966 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ goto __pyx_L3; } /* "cuda/cudart.pyx":27970 * cgraph = pgraph * else: * pgraph = int(cudaGraph_t(graph)) # <<<<<<<<<<<<<< * cgraph = pgraph * err = ccudart.cudaGraphDestroy(cgraph) */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27970, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27970, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pgraph = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":27971 * else: * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph # <<<<<<<<<<<<<< * err = ccudart.cudaGraphDestroy(cgraph) * return (cudaError_t(err),) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27971, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":27972 * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph * err = ccudart.cudaGraphDestroy(cgraph) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaGraphDestroy(__pyx_v_cgraph); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 27972, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":27973 * cgraph = pgraph * err = ccudart.cudaGraphDestroy(cgraph) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27973, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 27973, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 27973, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27973, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 27973, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":27943 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaGraphDestroy", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pgraph); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":27975 * return (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_6cudart_517cudaGraphDebugDotPrint(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_516cudaGraphDebugDotPrint, "cudaGraphDebugDotPrint(graph, char *path, unsigned int flags)\n Write a DOT file describing graph structure.\n\n Using the provided `graph`, write to `path` a DOT formatted description\n of the graph. By default this includes the graph topology, node types,\n node id, kernel names and memcpy direction. `flags` can be specified to\n write more detailed information about each node type such as parameter\n values, kernel attributes, node and function handles.\n\n Parameters\n ----------\n graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n The graph to create a DOT file from\n path : bytes\n The path to write the DOT file to\n flags : unsigned int\n Flags from cudaGraphDebugDotFlags for specifying which additional\n node information to write\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorOperatingSystem`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_517cudaGraphDebugDotPrint = {"cudaGraphDebugDotPrint", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_517cudaGraphDebugDotPrint, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_516cudaGraphDebugDotPrint}; static PyObject *__pyx_pw_4cuda_6cudart_517cudaGraphDebugDotPrint(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_graph_2,&__pyx_n_s_path,&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_graph_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27975, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_path)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27975, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphDebugDotPrint", 1, 3, 3, 1); __PYX_ERR(0, 27975, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 27975, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphDebugDotPrint", 1, 3, 3, 2); __PYX_ERR(0, 27975, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphDebugDotPrint") < 0)) __PYX_ERR(0, 27975, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_graph = values[0]; __pyx_v_path = __Pyx_PyObject_AsWritableString(values[1]); if (unlikely((!__pyx_v_path) && PyErr_Occurred())) __PYX_ERR(0, 27976, __pyx_L3_error) __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[2]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 27976, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphDebugDotPrint", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 27975, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphDebugDotPrint", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_516cudaGraphDebugDotPrint(__pyx_self, __pyx_v_graph, __pyx_v_path, __pyx_v_flags); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_516cudaGraphDebugDotPrint(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, char *__pyx_v_path, unsigned int __pyx_v_flags) { cudaGraph_t __pyx_v_cgraph; PyObject *__pyx_v_pgraph = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__613) __Pyx_RefNannySetupContext("cudaGraphDebugDotPrint", 1); __Pyx_TraceCall("cudaGraphDebugDotPrint", __pyx_f[0], 27975, 0, __PYX_ERR(0, 27975, __pyx_L1_error)); /* "cuda/cudart.pyx":28001 * """ * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_1 = (__pyx_v_graph == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":28002 * cdef ccudart.cudaGraph_t cgraph * if graph is None: * cgraph = 0 # <<<<<<<<<<<<<< * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) */ __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":28001 * """ * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":28003 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":28004 * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) # <<<<<<<<<<<<<< * cgraph = pgraph * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28004, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pgraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":28005 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) * cgraph = pgraph # <<<<<<<<<<<<<< * else: * pgraph = int(cudaGraph_t(graph)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28005, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":28003 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ goto __pyx_L3; } /* "cuda/cudart.pyx":28007 * cgraph = pgraph * else: * pgraph = int(cudaGraph_t(graph)) # <<<<<<<<<<<<<< * cgraph = pgraph * err = ccudart.cudaGraphDebugDotPrint(cgraph, path, flags) */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28007, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28007, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pgraph = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":28008 * else: * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph # <<<<<<<<<<<<<< * err = ccudart.cudaGraphDebugDotPrint(cgraph, path, flags) * return (cudaError_t(err),) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28008, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":28009 * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph * err = ccudart.cudaGraphDebugDotPrint(cgraph, path, flags) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaGraphDebugDotPrint(__pyx_v_cgraph, __pyx_v_path, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 28009, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":28010 * cgraph = pgraph * err = ccudart.cudaGraphDebugDotPrint(cgraph, path, flags) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28010, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28010, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28010, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28010, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 28010, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":27975 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaGraphDebugDotPrint", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pgraph); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":28012 * return (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_6cudart_519cudaUserObjectCreate(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_518cudaUserObjectCreate, "cudaUserObjectCreate(ptr, destroy, unsigned int initialRefcount, unsigned int flags)\n Create a user object.\n\n Create a user object with the specified destructor callback and initial\n reference count. The initial references are owned by the caller.\n\n Destructor callbacks cannot make CUDA API calls and should avoid\n blocking behavior, as they are executed by a shared internal thread.\n Another thread may be signaled to perform such actions, if it does not\n block forward progress of tasks scheduled through CUDA.\n\n See CUDA User Objects in the CUDA C++ Programming Guide for more\n information on user objects.\n\n Parameters\n ----------\n ptr : Any\n The pointer to pass to the destroy function\n destroy : :py:obj:`~.cudaHostFn_t`\n Callback to free the user object when it is no longer in use\n initialRefcount : unsigned int\n The initial refcount to create the object with, typically 1. The\n initial references are owned by the calling thread.\n flags : 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\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n object_out : :py:obj:`~.cudaUserObject_t`\n Location to return the user object handle\n\n See Also\n --------\n :py:obj:`~.cudaUserObjectRetain`, :py:obj:`~.cudaUserObjectRelease`, :py:obj:`~.cudaGraphRetainUserObject`, :py:obj:`~.cudaGraphReleaseUserObject`, :py:obj:`~.cudaGraphCreate`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_519cudaUserObjectCreate = {"cudaUserObjectCreate", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_519cudaUserObjectCreate, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_518cudaUserObjectCreate}; static PyObject *__pyx_pw_4cuda_6cudart_519cudaUserObjectCreate(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ptr_3,&__pyx_n_s_destroy,&__pyx_n_s_initialRefcount,&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ptr_3)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28012, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_destroy)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28012, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaUserObjectCreate", 1, 4, 4, 1); __PYX_ERR(0, 28012, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_initialRefcount)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28012, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaUserObjectCreate", 1, 4, 4, 2); __PYX_ERR(0, 28012, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28012, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaUserObjectCreate", 1, 4, 4, 3); __PYX_ERR(0, 28012, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaUserObjectCreate") < 0)) __PYX_ERR(0, 28012, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); } __pyx_v_ptr = values[0]; __pyx_v_destroy = values[1]; __pyx_v_initialRefcount = __Pyx_PyInt_As_unsigned_int(values[2]); if (unlikely((__pyx_v_initialRefcount == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 28013, __pyx_L3_error) __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[3]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 28013, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaUserObjectCreate", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 28012, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaUserObjectCreate", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_518cudaUserObjectCreate(__pyx_self, __pyx_v_ptr, __pyx_v_destroy, __pyx_v_initialRefcount, __pyx_v_flags); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_518cudaUserObjectCreate(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_cdestroy; PyObject *__pyx_v_pdestroy = NULL; struct __pyx_obj_4cuda_6cudart_cudaUserObject_t *__pyx_v_object_out = 0; PyObject *__pyx_v_cptr = NULL; void *__pyx_v_cptr_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; cudaError_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__614) __Pyx_RefNannySetupContext("cudaUserObjectCreate", 1); __Pyx_TraceCall("cudaUserObjectCreate", __pyx_f[0], 28012, 0, __PYX_ERR(0, 28012, __pyx_L1_error)); /* "cuda/cudart.pyx":28055 * """ * cdef ccudart.cudaHostFn_t cdestroy * if destroy is None: # <<<<<<<<<<<<<< * cdestroy = 0 * elif isinstance(destroy, (cudaHostFn_t,)): */ __pyx_t_1 = (__pyx_v_destroy == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":28056 * cdef ccudart.cudaHostFn_t cdestroy * if destroy is None: * cdestroy = 0 # <<<<<<<<<<<<<< * elif isinstance(destroy, (cudaHostFn_t,)): * pdestroy = int(destroy) */ __pyx_v_cdestroy = ((cudaHostFn_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":28055 * """ * cdef ccudart.cudaHostFn_t cdestroy * if destroy is None: # <<<<<<<<<<<<<< * cdestroy = 0 * elif isinstance(destroy, (cudaHostFn_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":28057 * if destroy is None: * cdestroy = 0 * elif isinstance(destroy, (cudaHostFn_t,)): # <<<<<<<<<<<<<< * pdestroy = int(destroy) * cdestroy = pdestroy */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_destroy, __pyx_ptype_4cuda_6cudart_cudaHostFn_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":28058 * cdestroy = 0 * elif isinstance(destroy, (cudaHostFn_t,)): * pdestroy = int(destroy) # <<<<<<<<<<<<<< * cdestroy = pdestroy * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_destroy); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28058, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_pdestroy = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":28059 * elif isinstance(destroy, (cudaHostFn_t,)): * pdestroy = int(destroy) * cdestroy = pdestroy # <<<<<<<<<<<<<< * else: * pdestroy = int(cudaHostFn_t(destroy)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pdestroy); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28059, __pyx_L1_error) __pyx_v_cdestroy = ((cudaHostFn_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":28057 * if destroy is None: * cdestroy = 0 * elif isinstance(destroy, (cudaHostFn_t,)): # <<<<<<<<<<<<<< * pdestroy = int(destroy) * cdestroy = pdestroy */ goto __pyx_L3; } /* "cuda/cudart.pyx":28061 * cdestroy = pdestroy * else: * pdestroy = int(cudaHostFn_t(destroy)) # <<<<<<<<<<<<<< * cdestroy = pdestroy * cdef cudaUserObject_t object_out = cudaUserObject_t() */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaHostFn_t), __pyx_v_destroy); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28061, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28061, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_pdestroy = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":28062 * else: * pdestroy = int(cudaHostFn_t(destroy)) * cdestroy = pdestroy # <<<<<<<<<<<<<< * cdef cudaUserObject_t object_out = cudaUserObject_t() * cptr = utils.HelperInputVoidPtr(ptr) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pdestroy); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28062, __pyx_L1_error) __pyx_v_cdestroy = ((cudaHostFn_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":28063 * pdestroy = int(cudaHostFn_t(destroy)) * cdestroy = pdestroy * cdef cudaUserObject_t object_out = cudaUserObject_t() # <<<<<<<<<<<<<< * cptr = utils.HelperInputVoidPtr(ptr) * cdef void* cptr_ptr = cptr.cptr */ __pyx_t_4 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaUserObject_t)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28063, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_object_out = ((struct __pyx_obj_4cuda_6cudart_cudaUserObject_t *)__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":28064 * cdestroy = pdestroy * cdef cudaUserObject_t object_out = cudaUserObject_t() * cptr = utils.HelperInputVoidPtr(ptr) # <<<<<<<<<<<<<< * cdef void* cptr_ptr = cptr.cptr * err = ccudart.cudaUserObjectCreate(object_out._ptr, cptr_ptr, cdestroy, initialRefcount, flags) */ __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_ptr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28064, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_cptr = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":28065 * cdef cudaUserObject_t object_out = cudaUserObject_t() * cptr = utils.HelperInputVoidPtr(ptr) * cdef void* cptr_ptr = cptr.cptr # <<<<<<<<<<<<<< * err = ccudart.cudaUserObjectCreate(object_out._ptr, cptr_ptr, cdestroy, initialRefcount, flags) * return (cudaError_t(err), object_out) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_cptr, __pyx_n_s_cptr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28065, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_4); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28065, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_cptr_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":28066 * cptr = utils.HelperInputVoidPtr(ptr) * cdef void* cptr_ptr = cptr.cptr * err = ccudart.cudaUserObjectCreate(object_out._ptr, cptr_ptr, cdestroy, initialRefcount, flags) # <<<<<<<<<<<<<< * return (cudaError_t(err), object_out) * */ __pyx_t_5 = __pyx_f_4cuda_7ccudart_cudaUserObjectCreate(((cudaUserObject_t *)__pyx_v_object_out->__pyx_base._ptr), __pyx_v_cptr_ptr, __pyx_v_cdestroy, __pyx_v_initialRefcount, __pyx_v_flags); if (unlikely(__pyx_t_5 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 28066, __pyx_L1_error) __pyx_v_err = __pyx_t_5; /* "cuda/cudart.pyx":28067 * cdef void* cptr_ptr = cptr.cptr * err = ccudart.cudaUserObjectCreate(object_out._ptr, cptr_ptr, cdestroy, initialRefcount, flags) * return (cudaError_t(err), object_out) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28067, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 28067, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28067, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28067, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 28067, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_object_out); __Pyx_GIVEREF((PyObject *)__pyx_v_object_out); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_object_out))) __PYX_ERR(0, 28067, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":28012 * return (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_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.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(__pyx_v_cptr); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":28069 * return (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_6cudart_521cudaUserObjectRetain(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_520cudaUserObjectRetain, "cudaUserObjectRetain(object, unsigned int count)\n Retain a reference to a user object.\n\n Retains new references to a user object. The new references are owned\n by the caller.\n\n See CUDA User Objects in the CUDA C++ Programming Guide for more\n information on user objects.\n\n Parameters\n ----------\n object : :py:obj:`~.cudaUserObject_t`\n The object to retain\n count : unsigned int\n The number of references to retain, typically 1. Must be nonzero\n and not larger than INT_MAX.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\n See Also\n --------\n :py:obj:`~.cudaUserObjectCreate`, :py:obj:`~.cudaUserObjectRelease`, :py:obj:`~.cudaGraphRetainUserObject`, :py:obj:`~.cudaGraphReleaseUserObject`, :py:obj:`~.cudaGraphCreate`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_521cudaUserObjectRetain = {"cudaUserObjectRetain", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_521cudaUserObjectRetain, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_520cudaUserObjectRetain}; static PyObject *__pyx_pw_4cuda_6cudart_521cudaUserObjectRetain(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_object,&__pyx_n_s_count,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_object)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28069, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_count)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28069, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaUserObjectRetain", 1, 2, 2, 1); __PYX_ERR(0, 28069, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaUserObjectRetain") < 0)) __PYX_ERR(0, 28069, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_object = values[0]; __pyx_v_count = __Pyx_PyInt_As_unsigned_int(values[1]); if (unlikely((__pyx_v_count == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 28070, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaUserObjectRetain", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 28069, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaUserObjectRetain", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_520cudaUserObjectRetain(__pyx_self, __pyx_v_object, __pyx_v_count); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_520cudaUserObjectRetain(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_object, unsigned int __pyx_v_count) { cudaUserObject_t __pyx_v_cobject; PyObject *__pyx_v_pobject = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__615) __Pyx_RefNannySetupContext("cudaUserObjectRetain", 1); __Pyx_TraceCall("cudaUserObjectRetain", __pyx_f[0], 28069, 0, __PYX_ERR(0, 28069, __pyx_L1_error)); /* "cuda/cudart.pyx":28097 * """ * cdef ccudart.cudaUserObject_t cobject * if object is None: # <<<<<<<<<<<<<< * cobject = 0 * elif isinstance(object, (cudaUserObject_t,cuda.CUuserObject)): */ __pyx_t_1 = (__pyx_v_object == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":28098 * cdef ccudart.cudaUserObject_t cobject * if object is None: * cobject = 0 # <<<<<<<<<<<<<< * elif isinstance(object, (cudaUserObject_t,cuda.CUuserObject)): * pobject = int(object) */ __pyx_v_cobject = ((cudaUserObject_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":28097 * """ * cdef ccudart.cudaUserObject_t cobject * if object is None: # <<<<<<<<<<<<<< * cobject = 0 * elif isinstance(object, (cudaUserObject_t,cuda.CUuserObject)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":28099 * if object is None: * cobject = 0 * elif isinstance(object, (cudaUserObject_t,cuda.CUuserObject)): # <<<<<<<<<<<<<< * pobject = int(object) * cobject = pobject */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_object, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUuserObject); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":28100 * cobject = 0 * elif isinstance(object, (cudaUserObject_t,cuda.CUuserObject)): * pobject = int(object) # <<<<<<<<<<<<<< * cobject = pobject * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_object); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pobject = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":28101 * elif isinstance(object, (cudaUserObject_t,cuda.CUuserObject)): * pobject = int(object) * cobject = pobject # <<<<<<<<<<<<<< * else: * pobject = int(cudaUserObject_t(object)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pobject); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28101, __pyx_L1_error) __pyx_v_cobject = ((cudaUserObject_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":28099 * if object is None: * cobject = 0 * elif isinstance(object, (cudaUserObject_t,cuda.CUuserObject)): # <<<<<<<<<<<<<< * pobject = int(object) * cobject = pobject */ goto __pyx_L3; } /* "cuda/cudart.pyx":28103 * cobject = pobject * else: * pobject = int(cudaUserObject_t(object)) # <<<<<<<<<<<<<< * cobject = pobject * err = ccudart.cudaUserObjectRetain(cobject, count) */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaUserObject_t), __pyx_v_object); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28103, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28103, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pobject = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":28104 * else: * pobject = int(cudaUserObject_t(object)) * cobject = pobject # <<<<<<<<<<<<<< * err = ccudart.cudaUserObjectRetain(cobject, count) * return (cudaError_t(err),) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pobject); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28104, __pyx_L1_error) __pyx_v_cobject = ((cudaUserObject_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":28105 * pobject = int(cudaUserObject_t(object)) * cobject = pobject * err = ccudart.cudaUserObjectRetain(cobject, count) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaUserObjectRetain(__pyx_v_cobject, __pyx_v_count); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 28105, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":28106 * cobject = pobject * err = ccudart.cudaUserObjectRetain(cobject, count) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28106, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28106, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28106, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28106, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 28106, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":28069 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaUserObjectRetain", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pobject); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":28108 * return (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_6cudart_523cudaUserObjectRelease(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_522cudaUserObjectRelease, "cudaUserObjectRelease(object, unsigned int count)\n Release a reference to a user object.\n\n Releases user object references owned by the caller. The object's\n destructor is invoked if the reference count reaches zero.\n\n It is undefined behavior to release references not owned by the caller,\n or to use a user object handle after all references are released.\n\n See CUDA User Objects in the CUDA C++ Programming Guide for more\n information on user objects.\n\n Parameters\n ----------\n object : :py:obj:`~.cudaUserObject_t`\n The object to release\n count : unsigned int\n The number of references to release, typically 1. Must be nonzero\n and not larger than INT_MAX.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\n See Also\n --------\n :py:obj:`~.cudaUserObjectCreate`, :py:obj:`~.cudaUserObjectRetain`, :py:obj:`~.cudaGraphRetainUserObject`, :py:obj:`~.cudaGraphReleaseUserObject`, :py:obj:`~.cudaGraphCreate`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_523cudaUserObjectRelease = {"cudaUserObjectRelease", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_523cudaUserObjectRelease, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_522cudaUserObjectRelease}; static PyObject *__pyx_pw_4cuda_6cudart_523cudaUserObjectRelease(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_object,&__pyx_n_s_count,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_object)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28108, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_count)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28108, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaUserObjectRelease", 1, 2, 2, 1); __PYX_ERR(0, 28108, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaUserObjectRelease") < 0)) __PYX_ERR(0, 28108, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_object = values[0]; __pyx_v_count = __Pyx_PyInt_As_unsigned_int(values[1]); if (unlikely((__pyx_v_count == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 28109, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaUserObjectRelease", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 28108, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaUserObjectRelease", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_522cudaUserObjectRelease(__pyx_self, __pyx_v_object, __pyx_v_count); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_522cudaUserObjectRelease(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_object, unsigned int __pyx_v_count) { cudaUserObject_t __pyx_v_cobject; PyObject *__pyx_v_pobject = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__616) __Pyx_RefNannySetupContext("cudaUserObjectRelease", 1); __Pyx_TraceCall("cudaUserObjectRelease", __pyx_f[0], 28108, 0, __PYX_ERR(0, 28108, __pyx_L1_error)); /* "cuda/cudart.pyx":28139 * """ * cdef ccudart.cudaUserObject_t cobject * if object is None: # <<<<<<<<<<<<<< * cobject = 0 * elif isinstance(object, (cudaUserObject_t,cuda.CUuserObject)): */ __pyx_t_1 = (__pyx_v_object == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":28140 * cdef ccudart.cudaUserObject_t cobject * if object is None: * cobject = 0 # <<<<<<<<<<<<<< * elif isinstance(object, (cudaUserObject_t,cuda.CUuserObject)): * pobject = int(object) */ __pyx_v_cobject = ((cudaUserObject_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":28139 * """ * cdef ccudart.cudaUserObject_t cobject * if object is None: # <<<<<<<<<<<<<< * cobject = 0 * elif isinstance(object, (cudaUserObject_t,cuda.CUuserObject)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":28141 * if object is None: * cobject = 0 * elif isinstance(object, (cudaUserObject_t,cuda.CUuserObject)): # <<<<<<<<<<<<<< * pobject = int(object) * cobject = pobject */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_object, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUuserObject); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":28142 * cobject = 0 * elif isinstance(object, (cudaUserObject_t,cuda.CUuserObject)): * pobject = int(object) # <<<<<<<<<<<<<< * cobject = pobject * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_object); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pobject = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":28143 * elif isinstance(object, (cudaUserObject_t,cuda.CUuserObject)): * pobject = int(object) * cobject = pobject # <<<<<<<<<<<<<< * else: * pobject = int(cudaUserObject_t(object)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pobject); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28143, __pyx_L1_error) __pyx_v_cobject = ((cudaUserObject_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":28141 * if object is None: * cobject = 0 * elif isinstance(object, (cudaUserObject_t,cuda.CUuserObject)): # <<<<<<<<<<<<<< * pobject = int(object) * cobject = pobject */ goto __pyx_L3; } /* "cuda/cudart.pyx":28145 * cobject = pobject * else: * pobject = int(cudaUserObject_t(object)) # <<<<<<<<<<<<<< * cobject = pobject * err = ccudart.cudaUserObjectRelease(cobject, count) */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaUserObject_t), __pyx_v_object); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28145, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28145, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pobject = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":28146 * else: * pobject = int(cudaUserObject_t(object)) * cobject = pobject # <<<<<<<<<<<<<< * err = ccudart.cudaUserObjectRelease(cobject, count) * return (cudaError_t(err),) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pobject); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28146, __pyx_L1_error) __pyx_v_cobject = ((cudaUserObject_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":28147 * pobject = int(cudaUserObject_t(object)) * cobject = pobject * err = ccudart.cudaUserObjectRelease(cobject, count) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaUserObjectRelease(__pyx_v_cobject, __pyx_v_count); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 28147, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":28148 * cobject = pobject * err = ccudart.cudaUserObjectRelease(cobject, count) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 28148, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":28108 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaUserObjectRelease", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pobject); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":28150 * return (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_6cudart_525cudaGraphRetainUserObject(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_524cudaGraphRetainUserObject, "cudaGraphRetainUserObject(graph, object, unsigned int count, unsigned int flags)\n Retain a reference to a user object from a graph.\n\n Creates or moves user object references that will be owned by a CUDA\n graph.\n\n See CUDA User Objects in the CUDA C++ Programming Guide for more\n information on user objects.\n\n Parameters\n ----------\n graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n The graph to associate the reference with\n object : :py:obj:`~.cudaUserObject_t`\n The user object to retain a reference for\n count : unsigned int\n The number of references to add to the graph, typically 1. Must be\n nonzero and not larger than INT_MAX.\n flags : 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\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\n See Also\n --------\n :py:obj:`~.cudaUserObjectCreate` :py:obj:`~.cudaUserObjectRetain`, :py:obj:`~.cudaUserObjectRelease`, :py:obj:`~.cudaGraphReleaseUserObject`, :py:obj:`~.cudaGraphCreate`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_525cudaGraphRetainUserObject = {"cudaGraphRetainUserObject", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_525cudaGraphRetainUserObject, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_524cudaGraphRetainUserObject}; static PyObject *__pyx_pw_4cuda_6cudart_525cudaGraphRetainUserObject(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_graph_2,&__pyx_n_s_object,&__pyx_n_s_count,&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_graph_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28150, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_object)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28150, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphRetainUserObject", 1, 4, 4, 1); __PYX_ERR(0, 28150, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_count)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28150, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphRetainUserObject", 1, 4, 4, 2); __PYX_ERR(0, 28150, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28150, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphRetainUserObject", 1, 4, 4, 3); __PYX_ERR(0, 28150, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphRetainUserObject") < 0)) __PYX_ERR(0, 28150, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); } __pyx_v_graph = values[0]; __pyx_v_object = values[1]; __pyx_v_count = __Pyx_PyInt_As_unsigned_int(values[2]); if (unlikely((__pyx_v_count == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 28151, __pyx_L3_error) __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[3]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 28151, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphRetainUserObject", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 28150, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphRetainUserObject", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_524cudaGraphRetainUserObject(__pyx_self, __pyx_v_graph, __pyx_v_object, __pyx_v_count, __pyx_v_flags); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_524cudaGraphRetainUserObject(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_cobject; PyObject *__pyx_v_pobject = NULL; cudaGraph_t __pyx_v_cgraph; PyObject *__pyx_v_pgraph = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__617) __Pyx_RefNannySetupContext("cudaGraphRetainUserObject", 1); __Pyx_TraceCall("cudaGraphRetainUserObject", __pyx_f[0], 28150, 0, __PYX_ERR(0, 28150, __pyx_L1_error)); /* "cuda/cudart.pyx":28184 * """ * cdef ccudart.cudaUserObject_t cobject * if object is None: # <<<<<<<<<<<<<< * cobject = 0 * elif isinstance(object, (cudaUserObject_t,cuda.CUuserObject)): */ __pyx_t_1 = (__pyx_v_object == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":28185 * cdef ccudart.cudaUserObject_t cobject * if object is None: * cobject = 0 # <<<<<<<<<<<<<< * elif isinstance(object, (cudaUserObject_t,cuda.CUuserObject)): * pobject = int(object) */ __pyx_v_cobject = ((cudaUserObject_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":28184 * """ * cdef ccudart.cudaUserObject_t cobject * if object is None: # <<<<<<<<<<<<<< * cobject = 0 * elif isinstance(object, (cudaUserObject_t,cuda.CUuserObject)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":28186 * if object is None: * cobject = 0 * elif isinstance(object, (cudaUserObject_t,cuda.CUuserObject)): # <<<<<<<<<<<<<< * pobject = int(object) * cobject = pobject */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_object, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUuserObject); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":28187 * cobject = 0 * elif isinstance(object, (cudaUserObject_t,cuda.CUuserObject)): * pobject = int(object) # <<<<<<<<<<<<<< * cobject = pobject * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_object); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28187, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pobject = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":28188 * elif isinstance(object, (cudaUserObject_t,cuda.CUuserObject)): * pobject = int(object) * cobject = pobject # <<<<<<<<<<<<<< * else: * pobject = int(cudaUserObject_t(object)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pobject); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28188, __pyx_L1_error) __pyx_v_cobject = ((cudaUserObject_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":28186 * if object is None: * cobject = 0 * elif isinstance(object, (cudaUserObject_t,cuda.CUuserObject)): # <<<<<<<<<<<<<< * pobject = int(object) * cobject = pobject */ goto __pyx_L3; } /* "cuda/cudart.pyx":28190 * cobject = pobject * else: * pobject = int(cudaUserObject_t(object)) # <<<<<<<<<<<<<< * cobject = pobject * cdef ccudart.cudaGraph_t cgraph */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaUserObject_t), __pyx_v_object); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28190, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28190, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pobject = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":28191 * else: * pobject = int(cudaUserObject_t(object)) * cobject = pobject # <<<<<<<<<<<<<< * cdef ccudart.cudaGraph_t cgraph * if graph is None: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pobject); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28191, __pyx_L1_error) __pyx_v_cobject = ((cudaUserObject_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":28193 * cobject = pobject * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_1 = (__pyx_v_graph == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":28194 * cdef ccudart.cudaGraph_t cgraph * if graph is None: * cgraph = 0 # <<<<<<<<<<<<<< * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) */ __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":28193 * cobject = pobject * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":28195 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_1 = __pyx_t_2; __pyx_L7_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":28196 * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) # <<<<<<<<<<<<<< * cgraph = pgraph * else: */ __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28196, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pgraph = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":28197 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) * cgraph = pgraph # <<<<<<<<<<<<<< * else: * pgraph = int(cudaGraph_t(graph)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28197, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":28195 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ goto __pyx_L6; } /* "cuda/cudart.pyx":28199 * cgraph = pgraph * else: * pgraph = int(cudaGraph_t(graph)) # <<<<<<<<<<<<<< * cgraph = pgraph * err = ccudart.cudaGraphRetainUserObject(cgraph, cobject, count, flags) */ /*else*/ { __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_graph); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28199, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28199, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_pgraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":28200 * else: * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph # <<<<<<<<<<<<<< * err = ccudart.cudaGraphRetainUserObject(cgraph, cobject, count, flags) * return (cudaError_t(err),) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28200, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L6:; /* "cuda/cudart.pyx":28201 * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph * err = ccudart.cudaGraphRetainUserObject(cgraph, cobject, count, flags) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaGraphRetainUserObject(__pyx_v_cgraph, __pyx_v_cobject, __pyx_v_count, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 28201, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":28202 * cgraph = pgraph * err = ccudart.cudaGraphRetainUserObject(cgraph, cobject, count, flags) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28202, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28202, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __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, 28202, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28202, __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)) __PYX_ERR(0, 28202, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":28150 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":28204 * return (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_6cudart_527cudaGraphReleaseUserObject(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_526cudaGraphReleaseUserObject, "cudaGraphReleaseUserObject(graph, object, unsigned int count)\n Release a user object reference from a graph.\n\n Releases user object references owned by a graph.\n\n See CUDA User Objects in the CUDA C++ Programming Guide for more\n information on user objects.\n\n Parameters\n ----------\n graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n The graph that will release the reference\n object : :py:obj:`~.cudaUserObject_t`\n The user object to release a reference for\n count : unsigned int\n The number of references to release, typically 1. Must be nonzero\n and not larger than INT_MAX.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\n See Also\n --------\n :py:obj:`~.cudaUserObjectCreate` :py:obj:`~.cudaUserObjectRetain`, :py:obj:`~.cudaUserObjectRelease`, :py:obj:`~.cudaGraphRetainUserObject`, :py:obj:`~.cudaGraphCreate`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_527cudaGraphReleaseUserObject = {"cudaGraphReleaseUserObject", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_527cudaGraphReleaseUserObject, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_526cudaGraphReleaseUserObject}; static PyObject *__pyx_pw_4cuda_6cudart_527cudaGraphReleaseUserObject(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_graph_2,&__pyx_n_s_object,&__pyx_n_s_count,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_graph_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28204, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_object)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28204, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphReleaseUserObject", 1, 3, 3, 1); __PYX_ERR(0, 28204, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_count)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28204, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphReleaseUserObject", 1, 3, 3, 2); __PYX_ERR(0, 28204, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphReleaseUserObject") < 0)) __PYX_ERR(0, 28204, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_graph = values[0]; __pyx_v_object = values[1]; __pyx_v_count = __Pyx_PyInt_As_unsigned_int(values[2]); if (unlikely((__pyx_v_count == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 28205, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphReleaseUserObject", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 28204, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphReleaseUserObject", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_526cudaGraphReleaseUserObject(__pyx_self, __pyx_v_graph, __pyx_v_object, __pyx_v_count); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_526cudaGraphReleaseUserObject(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_object, unsigned int __pyx_v_count) { cudaUserObject_t __pyx_v_cobject; PyObject *__pyx_v_pobject = NULL; cudaGraph_t __pyx_v_cgraph; PyObject *__pyx_v_pgraph = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__618) __Pyx_RefNannySetupContext("cudaGraphReleaseUserObject", 1); __Pyx_TraceCall("cudaGraphReleaseUserObject", __pyx_f[0], 28204, 0, __PYX_ERR(0, 28204, __pyx_L1_error)); /* "cuda/cudart.pyx":28233 * """ * cdef ccudart.cudaUserObject_t cobject * if object is None: # <<<<<<<<<<<<<< * cobject = 0 * elif isinstance(object, (cudaUserObject_t,cuda.CUuserObject)): */ __pyx_t_1 = (__pyx_v_object == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":28234 * cdef ccudart.cudaUserObject_t cobject * if object is None: * cobject = 0 # <<<<<<<<<<<<<< * elif isinstance(object, (cudaUserObject_t,cuda.CUuserObject)): * pobject = int(object) */ __pyx_v_cobject = ((cudaUserObject_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":28233 * """ * cdef ccudart.cudaUserObject_t cobject * if object is None: # <<<<<<<<<<<<<< * cobject = 0 * elif isinstance(object, (cudaUserObject_t,cuda.CUuserObject)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":28235 * if object is None: * cobject = 0 * elif isinstance(object, (cudaUserObject_t,cuda.CUuserObject)): # <<<<<<<<<<<<<< * pobject = int(object) * cobject = pobject */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_object, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUuserObject); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":28236 * cobject = 0 * elif isinstance(object, (cudaUserObject_t,cuda.CUuserObject)): * pobject = int(object) # <<<<<<<<<<<<<< * cobject = pobject * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_object); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28236, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pobject = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":28237 * elif isinstance(object, (cudaUserObject_t,cuda.CUuserObject)): * pobject = int(object) * cobject = pobject # <<<<<<<<<<<<<< * else: * pobject = int(cudaUserObject_t(object)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pobject); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28237, __pyx_L1_error) __pyx_v_cobject = ((cudaUserObject_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":28235 * if object is None: * cobject = 0 * elif isinstance(object, (cudaUserObject_t,cuda.CUuserObject)): # <<<<<<<<<<<<<< * pobject = int(object) * cobject = pobject */ goto __pyx_L3; } /* "cuda/cudart.pyx":28239 * cobject = pobject * else: * pobject = int(cudaUserObject_t(object)) # <<<<<<<<<<<<<< * cobject = pobject * cdef ccudart.cudaGraph_t cgraph */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaUserObject_t), __pyx_v_object); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28239, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28239, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pobject = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":28240 * else: * pobject = int(cudaUserObject_t(object)) * cobject = pobject # <<<<<<<<<<<<<< * cdef ccudart.cudaGraph_t cgraph * if graph is None: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pobject); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28240, __pyx_L1_error) __pyx_v_cobject = ((cudaUserObject_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":28242 * cobject = pobject * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_1 = (__pyx_v_graph == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":28243 * cdef ccudart.cudaGraph_t cgraph * if graph is None: * cgraph = 0 # <<<<<<<<<<<<<< * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) */ __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":28242 * cobject = pobject * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":28244 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_1 = __pyx_t_2; __pyx_L7_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":28245 * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) # <<<<<<<<<<<<<< * cgraph = pgraph * else: */ __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28245, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pgraph = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":28246 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) * cgraph = pgraph # <<<<<<<<<<<<<< * else: * pgraph = int(cudaGraph_t(graph)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28246, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":28244 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ goto __pyx_L6; } /* "cuda/cudart.pyx":28248 * cgraph = pgraph * else: * pgraph = int(cudaGraph_t(graph)) # <<<<<<<<<<<<<< * cgraph = pgraph * err = ccudart.cudaGraphReleaseUserObject(cgraph, cobject, count) */ /*else*/ { __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_graph); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28248, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28248, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_pgraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":28249 * else: * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph # <<<<<<<<<<<<<< * err = ccudart.cudaGraphReleaseUserObject(cgraph, cobject, count) * return (cudaError_t(err),) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28249, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L6:; /* "cuda/cudart.pyx":28250 * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph * err = ccudart.cudaGraphReleaseUserObject(cgraph, cobject, count) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaGraphReleaseUserObject(__pyx_v_cgraph, __pyx_v_cobject, __pyx_v_count); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 28250, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":28251 * cgraph = pgraph * err = ccudart.cudaGraphReleaseUserObject(cgraph, cobject, count) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28251, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28251, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __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, 28251, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28251, __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)) __PYX_ERR(0, 28251, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":28204 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":28253 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphAddNode(graph, pDependencies : Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], size_t numDependencies, nodeParams : Optional[cudaGraphNodeParams]): * """ Adds a node of arbitrary type to a graph. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_529cudaGraphAddNode(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_528cudaGraphAddNode, "cudaGraphAddNode(graph, pDependencies: Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], size_t numDependencies, cudaGraphNodeParams nodeParams: Optional[cudaGraphNodeParams])\n Adds a node of arbitrary type to a graph.\n\n Creates 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\n entries.\n\n `nodeParams` is a tagged union. The node type should be specified in\n the `typename` field, and type-specific parameters in the corresponding\n union member. All unused bytes - that is, `reserved0` and all bytes\n past the utilized union member - must be set to zero. It is recommended\n to use brace initialization or memset to ensure all bytes are\n initialized.\n\n Note that for some node types, `nodeParams` may contain \"out\n parameters\" which are modified during the call, such as\n `nodeParams->alloc.dptr`.\n\n A handle to the new node will be returned in `phGraphNode`.\n\n Parameters\n ----------\n graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n Graph to which to add the node\n pDependencies : List[:py:obj:`~.cudaGraphNode_t`]\n Dependencies of the node\n numDependencies : size_t\n Number of dependencies\n nodeParams : :py:obj:`~.cudaGraphNodeParams`\n Specification of the node\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidDeviceFunction`, :py:obj:`~.cudaErrorNotSupported`\n pGraphNode : :py:obj:`~.cudaGraphNode_t`\n Returns newly created node\n\n See Also\n --------\n :py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphNodeSetParams`, :py:obj:`~.cudaGraphExecNodeSetParams`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_529cudaGraphAddNode = {"cudaGraphAddNode", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_529cudaGraphAddNode, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_528cudaGraphAddNode}; static PyObject *__pyx_pw_4cuda_6cudart_529cudaGraphAddNode(PyObject *__pyx_self, #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_6cudart_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[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("cudaGraphAddNode (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_graph_2,&__pyx_n_s_pDependencies,&__pyx_n_s_numDependencies,&__pyx_n_s_nodeParams,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_graph_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28253, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pDependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28253, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddNode", 1, 4, 4, 1); __PYX_ERR(0, 28253, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_numDependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28253, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddNode", 1, 4, 4, 2); __PYX_ERR(0, 28253, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_nodeParams)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28253, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddNode", 1, 4, 4, 3); __PYX_ERR(0, 28253, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphAddNode") < 0)) __PYX_ERR(0, 28253, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); } __pyx_v_graph = values[0]; __pyx_v_pDependencies = values[1]; __pyx_v_numDependencies = __Pyx_PyInt_As_size_t(values[2]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 28254, __pyx_L3_error) __pyx_v_nodeParams = ((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)values[3]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphAddNode", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 28253, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaGraphNodeParams, 1, "nodeParams", 0))) __PYX_ERR(0, 28254, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_528cudaGraphAddNode(__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; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_16cudaGraphAddNode_2generator35(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":28299 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ static PyObject *__pyx_pf_4cuda_6cudart_16cudaGraphAddNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct_35_genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_35_genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_35_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_35_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 28299, __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_6cudart_16cudaGraphAddNode_2generator35, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaGraphAddNode_locals_genexpr, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 28299, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.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_6cudart_16cudaGraphAddNode_2generator35(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_35_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_35_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 28299, 0, __PYX_ERR(0, 28299, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 28299, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 28299, __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, 28299, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28299, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 28299, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 28299, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28299, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 28299, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 28299, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28299, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 28299, __pyx_L1_error) } 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_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":28253 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphAddNode(graph, pDependencies : Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], size_t numDependencies, nodeParams : Optional[cudaGraphNodeParams]): * """ Adds a node of arbitrary type to a graph. */ static PyObject *__pyx_pf_4cuda_6cudart_528cudaGraphAddNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_pDependencies, size_t __pyx_v_numDependencies, struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_nodeParams) { cudaGraph_t __pyx_v_cgraph; PyObject *__pyx_v_pgraph = NULL; struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *__pyx_v_pGraphNode = 0; cudaGraphNode_t *__pyx_v_cpDependencies; Py_ssize_t __pyx_v_idx; struct cudaGraphNodeParams *__pyx_v_cnodeParams_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_gb_4cuda_6cudart_16cudaGraphAddNode_2generator35 = 0; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; Py_ssize_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; Py_ssize_t __pyx_t_8; Py_ssize_t __pyx_t_9; struct cudaGraphNodeParams *__pyx_t_10; cudaGraphNode_t *__pyx_t_11; cudaError_t __pyx_t_12; PyObject *__pyx_t_13 = NULL; unsigned int __pyx_t_14; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__619) __Pyx_RefNannySetupContext("cudaGraphAddNode", 0); __Pyx_TraceCall("cudaGraphAddNode", __pyx_f[0], 28253, 0, __PYX_ERR(0, 28253, __pyx_L1_error)); __Pyx_INCREF(__pyx_v_pDependencies); /* "cuda/cudart.pyx":28298 * :py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphNodeSetParams`, :py:obj:`~.cudaGraphExecNodeSetParams` * """ * pDependencies = [] if pDependencies is None else pDependencies # <<<<<<<<<<<<<< * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.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, 28298, __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/cudart.pyx":28299 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ __pyx_t_1 = __pyx_pf_4cuda_6cudart_16cudaGraphAddNode_genexpr(NULL, __pyx_v_pDependencies); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28299, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28299, __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, 28299, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_4 = (!__pyx_t_2); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":28300 * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") # <<<<<<<<<<<<<< * cdef ccudart.cudaGraph_t cgraph * if graph is None: */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__534, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28300, __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, 28300, __pyx_L1_error) /* "cuda/cudart.pyx":28299 * """ * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ } /* "cuda/cudart.pyx":28302 * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_4 = (__pyx_v_graph == Py_None); if (__pyx_t_4) { /* "cuda/cudart.pyx":28303 * cdef ccudart.cudaGraph_t cgraph * if graph is None: * cgraph = 0 # <<<<<<<<<<<<<< * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) */ __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":28302 * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L4; } /* "cuda/cudart.pyx":28304 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_4 = __pyx_t_2; __pyx_L5_bool_binop_done:; if (__pyx_t_4) { /* "cuda/cudart.pyx":28305 * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) # <<<<<<<<<<<<<< * cgraph = pgraph * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28305, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pgraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":28306 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) * cgraph = pgraph # <<<<<<<<<<<<<< * else: * pgraph = int(cudaGraph_t(graph)) */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28306, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); /* "cuda/cudart.pyx":28304 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ goto __pyx_L4; } /* "cuda/cudart.pyx":28308 * cgraph = pgraph * else: * pgraph = int(cudaGraph_t(graph)) # <<<<<<<<<<<<<< * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28308, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28308, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pgraph = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":28309 * else: * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph # <<<<<<<<<<<<<< * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28309, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); } __pyx_L4:; /* "cuda/cudart.pyx":28310 * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28310, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_pGraphNode = ((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":28311 * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL # <<<<<<<<<<<<<< * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) */ __pyx_v_cpDependencies = NULL; /* "cuda/cudart.pyx":28312 * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: # <<<<<<<<<<<<<< * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 28312, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 > 0); if (__pyx_t_4) { /* "cuda/cudart.pyx":28313 * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) # <<<<<<<<<<<<<< * if cpDependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 28313, __pyx_L1_error) __pyx_v_cpDependencies = ((cudaGraphNode_t *)calloc(__pyx_t_6, (sizeof(cudaGraphNode_t)))); /* "cuda/cudart.pyx":28314 * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ __pyx_t_4 = (__pyx_v_cpDependencies == NULL); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":28315 * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) # <<<<<<<<<<<<<< * else: * for idx in range(len(pDependencies)): */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 28315, __pyx_L1_error) __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28315, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28315, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28315, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_n_u_x_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28315, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28315, __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, 28315, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28315, __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 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28315, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_7, 0, 0, 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __PYX_ERR(0, 28315, __pyx_L1_error) /* "cuda/cudart.pyx":28314 * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ } /* "cuda/cudart.pyx":28317 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: * for idx in range(len(pDependencies)): # <<<<<<<<<<<<<< * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) */ /*else*/ { __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 28317, __pyx_L1_error) __pyx_t_8 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_idx = __pyx_t_9; /* "cuda/cudart.pyx":28318 * else: * for idx in range(len(pDependencies)): * cpDependencies[idx] = (pDependencies[idx])._ptr[0] # <<<<<<<<<<<<<< * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * cdef ccudart.cudaGraphNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL */ __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_pDependencies, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28318, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); (__pyx_v_cpDependencies[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_7)->__pyx_base._ptr[0])); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } /* "cuda/cudart.pyx":28312 * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: # <<<<<<<<<<<<<< * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: */ } /* "cuda/cudart.pyx":28319 * for idx in range(len(pDependencies)): * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphAddNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cnodeParams_ptr) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 28319, __pyx_L1_error) __pyx_t_4 = (__pyx_v_numDependencies > ((size_t)__pyx_t_6)); if (unlikely(__pyx_t_4)) { __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 28319, __pyx_L1_error) __pyx_t_7 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28319, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28319, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_List_is_too_small, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28319, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_7, __pyx_kp_u__400); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28319, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyInt_FromSize_t(__pyx_v_numDependencies); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28319, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28319, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28319, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28319, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 28319, __pyx_L1_error) } /* "cuda/cudart.pyx":28320 * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * cdef ccudart.cudaGraphNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaGraphAddNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cnodeParams_ptr) * if cpDependencies is not NULL: */ __pyx_t_3 = PyObject_RichCompare(((PyObject *)__pyx_v_nodeParams), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28320, __pyx_L1_error) __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 28320, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_4) { __pyx_t_10 = __pyx_v_nodeParams->_ptr; } else { __pyx_t_10 = NULL; } __pyx_v_cnodeParams_ptr = __pyx_t_10; /* "cuda/cudart.pyx":28321 * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * cdef ccudart.cudaGraphNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphAddNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cnodeParams_ptr) # <<<<<<<<<<<<<< * if cpDependencies is not NULL: * free(cpDependencies) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 28321, __pyx_L1_error) __pyx_t_4 = (__pyx_t_6 == 1); if (__pyx_t_4) { __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_pDependencies, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28321, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_11 = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_3)->__pyx_base._ptr); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } else { __pyx_t_11 = __pyx_v_cpDependencies; } __pyx_t_12 = __pyx_f_4cuda_7ccudart_cudaGraphAddNode(((cudaGraphNode_t *)__pyx_v_pGraphNode->__pyx_base._ptr), __pyx_v_cgraph, __pyx_t_11, __pyx_v_numDependencies, __pyx_v_cnodeParams_ptr); if (unlikely(__pyx_t_12 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 28321, __pyx_L1_error) __pyx_v_err = __pyx_t_12; /* "cuda/cudart.pyx":28322 * cdef ccudart.cudaGraphNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphAddNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cnodeParams_ptr) * if cpDependencies is not NULL: # <<<<<<<<<<<<<< * free(cpDependencies) * return (cudaError_t(err), pGraphNode) */ __pyx_t_4 = (__pyx_v_cpDependencies != NULL); if (__pyx_t_4) { /* "cuda/cudart.pyx":28323 * err = ccudart.cudaGraphAddNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cnodeParams_ptr) * if cpDependencies is not NULL: * free(cpDependencies) # <<<<<<<<<<<<<< * return (cudaError_t(err), pGraphNode) * */ free(__pyx_v_cpDependencies); /* "cuda/cudart.pyx":28322 * cdef ccudart.cudaGraphNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphAddNode(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, numDependencies, cnodeParams_ptr) * if cpDependencies is not NULL: # <<<<<<<<<<<<<< * free(cpDependencies) * return (cudaError_t(err), pGraphNode) */ } /* "cuda/cudart.pyx":28324 * if cpDependencies is not NULL: * free(cpDependencies) * return (cudaError_t(err), pGraphNode) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28324, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28324, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_13 = NULL; __pyx_t_14 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_7))) { __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_13)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_13); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); __pyx_t_14 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_t_1}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+1-__pyx_t_14, 1+__pyx_t_14); __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28324, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28324, __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)) __PYX_ERR(0, 28324, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pGraphNode); __Pyx_GIVEREF((PyObject *)__pyx_v_pGraphNode); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_pGraphNode))) __PYX_ERR(0, 28324, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":28253 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphAddNode(graph, pDependencies : Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], 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_7); __Pyx_XDECREF(__pyx_t_13); __Pyx_AddTraceback("cuda.cudart.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_6cudart_16cudaGraphAddNode_2generator35); __Pyx_XDECREF(__pyx_v_pDependencies); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":28326 * return (cudaError_t(err), pGraphNode) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphAddNode_v2(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 (12.3+) */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_531cudaGraphAddNode_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_6cudart_530cudaGraphAddNode_v2, "cudaGraphAddNode_v2(graph, pDependencies: Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], dependencyData: Optional[Tuple[cudaGraphEdgeData] | List[cudaGraphEdgeData]], size_t numDependencies, cudaGraphNodeParams nodeParams: Optional[cudaGraphNodeParams])\n Adds a node of arbitrary type to a graph (12.3+)\n\n Creates 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\n entries.\n\n `nodeParams` is a tagged union. The node type should be specified in\n the `typename` field, and type-specific parameters in the corresponding\n union member. All unused bytes - that is, `reserved0` and all bytes\n past the utilized union member - must be set to zero. It is recommended\n to use brace initialization or memset to ensure all bytes are\n initialized.\n\n Note that for some node types, `nodeParams` may contain \"out\n parameters\" which are modified during the call, such as\n `nodeParams->alloc.dptr`.\n\n A handle to the new node will be returned in `phGraphNode`.\n\n Parameters\n ----------\n graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n Graph to which to add the node\n pDependencies : List[:py:obj:`~.cudaGraphNode_t`]\n Dependencies of the node\n dependencyData : 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.\n numDependencies : size_t\n Number of dependencies\n nodeParams : :py:obj:`~.cudaGraphNodeParams`\n Specification of the node\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidDeviceFunction`, :py:obj:`~.cudaErrorNotSupported`\n pGraphNode : :py:obj:`~.""cudaGraphNode_t`\n Returns newly created node\n\n See Also\n --------\n :py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphNodeSetParams`, :py:obj:`~.cudaGraphExecNodeSetParams`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_531cudaGraphAddNode_v2 = {"cudaGraphAddNode_v2", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_531cudaGraphAddNode_v2, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_530cudaGraphAddNode_v2}; static PyObject *__pyx_pw_4cuda_6cudart_531cudaGraphAddNode_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_pDependencies = 0; PyObject *__pyx_v_dependencyData = 0; size_t __pyx_v_numDependencies; struct __pyx_obj_4cuda_6cudart_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_v2 (wrapper)", 0); #if !CYTHON_METH_FASTCALL #if CYTHON_ASSUME_SAFE_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_graph_2,&__pyx_n_s_pDependencies,&__pyx_n_s_dependencyData,&__pyx_n_s_numDependencies,&__pyx_n_s_nodeParams,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 5: values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_graph_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28326, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pDependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28326, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddNode_v2", 1, 5, 5, 1); __PYX_ERR(0, 28326, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_dependencyData)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28326, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddNode_v2", 1, 5, 5, 2); __PYX_ERR(0, 28326, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_numDependencies)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28326, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddNode_v2", 1, 5, 5, 3); __PYX_ERR(0, 28326, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_nodeParams)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[4]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28326, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphAddNode_v2", 1, 5, 5, 4); __PYX_ERR(0, 28326, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphAddNode_v2") < 0)) __PYX_ERR(0, 28326, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 5)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); values[4] = __Pyx_Arg_FASTCALL(__pyx_args, 4); } __pyx_v_graph = values[0]; __pyx_v_pDependencies = values[1]; __pyx_v_dependencyData = values[2]; __pyx_v_numDependencies = __Pyx_PyInt_As_size_t(values[3]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 28327, __pyx_L3_error) __pyx_v_nodeParams = ((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)values[4]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphAddNode_v2", 1, 5, 5, __pyx_nargs); __PYX_ERR(0, 28326, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphAddNode_v2", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeParams), __pyx_ptype_4cuda_6cudart_cudaGraphNodeParams, 1, "nodeParams", 0))) __PYX_ERR(0, 28327, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_530cudaGraphAddNode_v2(__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; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_19cudaGraphAddNode_v2_2generator36(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":28375 * """ * 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[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * pDependencies = [] if pDependencies is None else pDependencies */ static PyObject *__pyx_pf_4cuda_6cudart_19cudaGraphAddNode_v2_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct_36_genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_36_genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_36_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_36_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 28375, __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_6cudart_19cudaGraphAddNode_v2_2generator36, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaGraphAddNode_v2_locals_genex, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 28375, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphAddNode_v2.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_6cudart_19cudaGraphAddNode_v2_2generator36(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_36_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_36_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 28375, 0, __PYX_ERR(0, 28375, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 28375, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 28375, __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, 28375, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28375, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 28375, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 28375, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28375, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 28375, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 28375, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28375, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 28375, __pyx_L1_error) } 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_ptype_4cuda_6cudart_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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_4cuda_6cudart_19cudaGraphAddNode_v2_5generator37(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "cuda/cudart.pyx":28378 * raise TypeError("Argument 'dependencyData' is not instance of type (expected Tuple[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ static PyObject *__pyx_pf_4cuda_6cudart_19cudaGraphAddNode_v2_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) { struct __pyx_obj_4cuda_6cudart___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_6cudart___pyx_scope_struct_37_genexpr *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_37_genexpr(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_37_genexpr, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_37_genexpr *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 28378, __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_6cudart_19cudaGraphAddNode_v2_5generator37, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_genexpr, __pyx_n_s_cudaGraphAddNode_v2_locals_genex, __pyx_n_s_cuda_cudart); if (unlikely(!gen)) __PYX_ERR(0, 28378, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cuda.cudart.cudaGraphAddNode_v2.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_6cudart_19cudaGraphAddNode_v2_5generator37(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_37_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_37_genexpr *)__pyx_generator->closure); PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations 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); __Pyx_TraceCall("genexpr", __pyx_f[0], 28378, 0, __PYX_ERR(0, 28378, __pyx_L1_error)); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; default: /* CPython raises the right error here */ __Pyx_TraceReturn(Py_None, 0); __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 28378, __pyx_L1_error) if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 28378, __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, 28378, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28378, __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_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 28378, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 28378, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28378, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { { Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1); #if !CYTHON_ASSUME_SAFE_MACROS if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 28378, __pyx_L1_error) #endif if (__pyx_t_2 >= __pyx_temp) break; } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely((0 < 0))) __PYX_ERR(0, 28378, __pyx_L1_error) #else __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28378, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } } else { __pyx_t_4 = __pyx_t_3(__pyx_t_1); if (unlikely(!__pyx_t_4)) { PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); else __PYX_ERR(0, 28378, __pyx_L1_error) } 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_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_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_Generator_Replace_StopIteration(0); __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":28326 * return (cudaError_t(err), pGraphNode) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphAddNode_v2(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 (12.3+) */ static PyObject *__pyx_pf_4cuda_6cudart_530cudaGraphAddNode_v2(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_6cudart_cudaGraphNodeParams *__pyx_v_nodeParams) { cudaGraph_t __pyx_v_cgraph; PyObject *__pyx_v_pgraph = NULL; struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *__pyx_v_pGraphNode = 0; cudaGraphNode_t *__pyx_v_cpDependencies; Py_ssize_t __pyx_v_idx; cudaGraphEdgeData *__pyx_v_cdependencyData; struct cudaGraphNodeParams *__pyx_v_cnodeParams_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_gb_4cuda_6cudart_19cudaGraphAddNode_v2_2generator36 = 0; PyObject *__pyx_gb_4cuda_6cudart_19cudaGraphAddNode_v2_5generator37 = 0; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_5; Py_ssize_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; Py_ssize_t __pyx_t_8; Py_ssize_t __pyx_t_9; struct cudaGraphNodeParams *__pyx_t_10; cudaGraphNode_t *__pyx_t_11; struct cudaGraphEdgeData_st *__pyx_t_12; cudaError_t __pyx_t_13; PyObject *__pyx_t_14 = NULL; unsigned int __pyx_t_15; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__620) __Pyx_RefNannySetupContext("cudaGraphAddNode_v2", 0); __Pyx_TraceCall("cudaGraphAddNode_v2", __pyx_f[0], 28326, 0, __PYX_ERR(0, 28326, __pyx_L1_error)); __Pyx_INCREF(__pyx_v_pDependencies); __Pyx_INCREF(__pyx_v_dependencyData); /* "cuda/cudart.pyx":28374 * :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[ccudart.cudaGraphEdgeData,] or List[ccudart.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, 28374, __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/cudart.pyx":28375 * """ * 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[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * pDependencies = [] if pDependencies is None else pDependencies */ __pyx_t_1 = __pyx_pf_4cuda_6cudart_19cudaGraphAddNode_v2_genexpr(NULL, __pyx_v_dependencyData); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28375, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_Generator_Next(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28375, __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, 28375, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_4 = (!__pyx_t_2); if (unlikely(__pyx_t_4)) { /* "cuda/cudart.pyx":28376 * 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[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") # <<<<<<<<<<<<<< * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): */ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__398, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28376, __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, 28376, __pyx_L1_error) /* "cuda/cudart.pyx":28375 * """ * 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[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * pDependencies = [] if pDependencies is None else pDependencies */ } /* "cuda/cudart.pyx":28377 * if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in dependencyData): * raise TypeError("Argument 'dependencyData' is not instance of type (expected Tuple[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * pDependencies = [] if pDependencies is None else pDependencies # <<<<<<<<<<<<<< * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.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, 28377, __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/cudart.pyx":28378 * raise TypeError("Argument 'dependencyData' is not instance of type (expected Tuple[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ __pyx_t_3 = __pyx_pf_4cuda_6cudart_19cudaGraphAddNode_v2_3genexpr(NULL, __pyx_v_pDependencies); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28378, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_Generator_Next(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28378, __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, 28378, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_2 = (!__pyx_t_4); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":28379 * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") # <<<<<<<<<<<<<< * cdef ccudart.cudaGraph_t cgraph * if graph is None: */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__534, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28379, __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, 28379, __pyx_L1_error) /* "cuda/cudart.pyx":28378 * raise TypeError("Argument 'dependencyData' is not instance of type (expected Tuple[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): # <<<<<<<<<<<<<< * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph */ } /* "cuda/cudart.pyx":28381 * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_2 = (__pyx_v_graph == Py_None); if (__pyx_t_2) { /* "cuda/cudart.pyx":28382 * cdef ccudart.cudaGraph_t cgraph * if graph is None: * cgraph = 0 # <<<<<<<<<<<<<< * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) */ __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":28381 * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L5; } /* "cuda/cudart.pyx":28383 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ __pyx_t_4 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_2 = __pyx_t_4; __pyx_L6_bool_binop_done:; if (__pyx_t_2) { /* "cuda/cudart.pyx":28384 * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) # <<<<<<<<<<<<<< * cgraph = pgraph * else: */ __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28384, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_pgraph = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":28385 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) * cgraph = pgraph # <<<<<<<<<<<<<< * else: * pgraph = int(cudaGraph_t(graph)) */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28385, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); /* "cuda/cudart.pyx":28383 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ goto __pyx_L5; } /* "cuda/cudart.pyx":28387 * cgraph = pgraph * else: * pgraph = int(cudaGraph_t(graph)) # <<<<<<<<<<<<<< * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() */ /*else*/ { __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_graph); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28387, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28387, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_pgraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":28388 * else: * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph # <<<<<<<<<<<<<< * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL */ __pyx_t_5 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28388, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_5)); } __pyx_L5:; /* "cuda/cudart.pyx":28389 * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: */ __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28389, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pGraphNode = ((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":28390 * cgraph = pgraph * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL # <<<<<<<<<<<<<< * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) */ __pyx_v_cpDependencies = NULL; /* "cuda/cudart.pyx":28391 * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: # <<<<<<<<<<<<<< * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 28391, __pyx_L1_error) __pyx_t_2 = (__pyx_t_6 > 0); if (__pyx_t_2) { /* "cuda/cudart.pyx":28392 * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) # <<<<<<<<<<<<<< * if cpDependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 28392, __pyx_L1_error) __pyx_v_cpDependencies = ((cudaGraphNode_t *)calloc(__pyx_t_6, (sizeof(cudaGraphNode_t)))); /* "cuda/cudart.pyx":28393 * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ __pyx_t_2 = (__pyx_v_cpDependencies == NULL); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":28394 * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) # <<<<<<<<<<<<<< * else: * for idx in range(len(pDependencies)): */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 28394, __pyx_L1_error) __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28394, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28394, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28394, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_n_u_x_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28394, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28394, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28394, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28394, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28394, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_7, 0, 0, 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __PYX_ERR(0, 28394, __pyx_L1_error) /* "cuda/cudart.pyx":28393 * if len(pDependencies) > 0: * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: */ } /* "cuda/cudart.pyx":28396 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(ccudart.cudaGraphNode_t))) * else: * for idx in range(len(pDependencies)): # <<<<<<<<<<<<<< * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * cdef ccudart.cudaGraphEdgeData* cdependencyData = NULL */ /*else*/ { __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 28396, __pyx_L1_error) __pyx_t_8 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_idx = __pyx_t_9; /* "cuda/cudart.pyx":28397 * else: * for idx in range(len(pDependencies)): * cpDependencies[idx] = (pDependencies[idx])._ptr[0] # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphEdgeData* cdependencyData = NULL * if len(dependencyData) > 0: */ __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_pDependencies, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28397, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); (__pyx_v_cpDependencies[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_7)->__pyx_base._ptr[0])); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } } /* "cuda/cudart.pyx":28391 * cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t() * cdef ccudart.cudaGraphNode_t* cpDependencies = NULL * if len(pDependencies) > 0: # <<<<<<<<<<<<<< * cpDependencies = calloc(len(pDependencies), sizeof(ccudart.cudaGraphNode_t)) * if cpDependencies is NULL: */ } /* "cuda/cudart.pyx":28398 * for idx in range(len(pDependencies)): * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * cdef ccudart.cudaGraphEdgeData* cdependencyData = NULL # <<<<<<<<<<<<<< * if len(dependencyData) > 0: * cdependencyData = calloc(len(dependencyData), sizeof(ccudart.cudaGraphEdgeData)) */ __pyx_v_cdependencyData = NULL; /* "cuda/cudart.pyx":28399 * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * cdef ccudart.cudaGraphEdgeData* cdependencyData = NULL * if len(dependencyData) > 0: # <<<<<<<<<<<<<< * cdependencyData = calloc(len(dependencyData), sizeof(ccudart.cudaGraphEdgeData)) * if cdependencyData is NULL: */ __pyx_t_6 = PyObject_Length(__pyx_v_dependencyData); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 28399, __pyx_L1_error) __pyx_t_2 = (__pyx_t_6 > 0); if (__pyx_t_2) { /* "cuda/cudart.pyx":28400 * cdef ccudart.cudaGraphEdgeData* cdependencyData = NULL * if len(dependencyData) > 0: * cdependencyData = calloc(len(dependencyData), sizeof(ccudart.cudaGraphEdgeData)) # <<<<<<<<<<<<<< * if cdependencyData is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencyData)) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) */ __pyx_t_6 = PyObject_Length(__pyx_v_dependencyData); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 28400, __pyx_L1_error) __pyx_v_cdependencyData = ((cudaGraphEdgeData *)calloc(__pyx_t_6, (sizeof(cudaGraphEdgeData)))); /* "cuda/cudart.pyx":28401 * if len(dependencyData) > 0: * cdependencyData = calloc(len(dependencyData), sizeof(ccudart.cudaGraphEdgeData)) * if cdependencyData is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencyData)) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) * for idx in range(len(dependencyData)): */ __pyx_t_2 = (__pyx_v_cdependencyData == NULL); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":28402 * cdependencyData = calloc(len(dependencyData), sizeof(ccudart.cudaGraphEdgeData)) * if cdependencyData is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencyData)) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) # <<<<<<<<<<<<<< * for idx in range(len(dependencyData)): * string.memcpy(&cdependencyData[idx], (dependencyData[idx])._ptr, sizeof(ccudart.cudaGraphEdgeData)) */ __pyx_t_6 = PyObject_Length(__pyx_v_dependencyData); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 28402, __pyx_L1_error) __pyx_t_7 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28402, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28402, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28402, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_7, __pyx_n_u_x_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28402, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphEdgeData))); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28402, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28402, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28402, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28402, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(0, 28402, __pyx_L1_error) /* "cuda/cudart.pyx":28401 * if len(dependencyData) > 0: * cdependencyData = calloc(len(dependencyData), sizeof(ccudart.cudaGraphEdgeData)) * if cdependencyData is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencyData)) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) * for idx in range(len(dependencyData)): */ } /* "cuda/cudart.pyx":28403 * if cdependencyData is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencyData)) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) * for idx in range(len(dependencyData)): # <<<<<<<<<<<<<< * string.memcpy(&cdependencyData[idx], (dependencyData[idx])._ptr, sizeof(ccudart.cudaGraphEdgeData)) * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) */ __pyx_t_6 = PyObject_Length(__pyx_v_dependencyData); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 28403, __pyx_L1_error) __pyx_t_8 = __pyx_t_6; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_idx = __pyx_t_9; /* "cuda/cudart.pyx":28404 * raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencyData)) + 'x' + str(sizeof(ccudart.cudaGraphEdgeData))) * for idx in range(len(dependencyData)): * string.memcpy(&cdependencyData[idx], (dependencyData[idx])._ptr, sizeof(ccudart.cudaGraphEdgeData)) # <<<<<<<<<<<<<< * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * if numDependencies > len(dependencyData): raise RuntimeError("List is too small: " + str(len(dependencyData)) + " < " + str(numDependencies)) */ __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_dependencyData, __pyx_v_idx, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28404, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); (void)(memcpy((&(__pyx_v_cdependencyData[__pyx_v_idx])), ((struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData *)__pyx_t_1)->__pyx_base._ptr, (sizeof(cudaGraphEdgeData)))); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } /* "cuda/cudart.pyx":28399 * cpDependencies[idx] = (pDependencies[idx])._ptr[0] * cdef ccudart.cudaGraphEdgeData* cdependencyData = NULL * if len(dependencyData) > 0: # <<<<<<<<<<<<<< * cdependencyData = calloc(len(dependencyData), sizeof(ccudart.cudaGraphEdgeData)) * if cdependencyData is NULL: */ } /* "cuda/cudart.pyx":28405 * for idx in range(len(dependencyData)): * string.memcpy(&cdependencyData[idx], (dependencyData[idx])._ptr, sizeof(ccudart.cudaGraphEdgeData)) * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) # <<<<<<<<<<<<<< * if numDependencies > len(dependencyData): raise RuntimeError("List is too small: " + str(len(dependencyData)) + " < " + str(numDependencies)) * cdef ccudart.cudaGraphNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 28405, __pyx_L1_error) __pyx_t_2 = (__pyx_v_numDependencies > ((size_t)__pyx_t_6)); if (unlikely(__pyx_t_2)) { __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 28405, __pyx_L1_error) __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28405, __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, 28405, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_kp_u_List_is_too_small, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28405, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_kp_u__400); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28405, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyInt_FromSize_t(__pyx_v_numDependencies); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28405, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28405, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_7, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28405, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28405, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 28405, __pyx_L1_error) } /* "cuda/cudart.pyx":28406 * string.memcpy(&cdependencyData[idx], (dependencyData[idx])._ptr, sizeof(ccudart.cudaGraphEdgeData)) * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * if numDependencies > len(dependencyData): raise RuntimeError("List is too small: " + str(len(dependencyData)) + " < " + str(numDependencies)) # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphAddNode_v2(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, (dependencyData[0])._ptr if len(dependencyData) == 1 else cdependencyData, numDependencies, cnodeParams_ptr) */ __pyx_t_6 = PyObject_Length(__pyx_v_dependencyData); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 28406, __pyx_L1_error) __pyx_t_2 = (__pyx_v_numDependencies > ((size_t)__pyx_t_6)); if (unlikely(__pyx_t_2)) { __pyx_t_6 = PyObject_Length(__pyx_v_dependencyData); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 28406, __pyx_L1_error) __pyx_t_3 = PyInt_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28406, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28406, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_List_is_too_small, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28406, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_kp_u__400); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28406, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyInt_FromSize_t(__pyx_v_numDependencies); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28406, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28406, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28406, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_builtin_RuntimeError, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28406, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_7, 0, 0, 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __PYX_ERR(0, 28406, __pyx_L1_error) } /* "cuda/cudart.pyx":28407 * if numDependencies > len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies)) * if numDependencies > len(dependencyData): raise RuntimeError("List is too small: " + str(len(dependencyData)) + " < " + str(numDependencies)) * cdef ccudart.cudaGraphNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaGraphAddNode_v2(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, (dependencyData[0])._ptr if len(dependencyData) == 1 else cdependencyData, numDependencies, cnodeParams_ptr) * if cpDependencies is not NULL: */ __pyx_t_7 = PyObject_RichCompare(((PyObject *)__pyx_v_nodeParams), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_7); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28407, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 28407, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (__pyx_t_2) { __pyx_t_10 = __pyx_v_nodeParams->_ptr; } else { __pyx_t_10 = NULL; } __pyx_v_cnodeParams_ptr = __pyx_t_10; /* "cuda/cudart.pyx":28408 * if numDependencies > len(dependencyData): raise RuntimeError("List is too small: " + str(len(dependencyData)) + " < " + str(numDependencies)) * cdef ccudart.cudaGraphNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphAddNode_v2(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, (dependencyData[0])._ptr if len(dependencyData) == 1 else cdependencyData, numDependencies, cnodeParams_ptr) # <<<<<<<<<<<<<< * if cpDependencies is not NULL: * free(cpDependencies) */ __pyx_t_6 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 28408, __pyx_L1_error) __pyx_t_2 = (__pyx_t_6 == 1); if (__pyx_t_2) { __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_pDependencies, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28408, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_11 = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)__pyx_t_7)->__pyx_base._ptr); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else { __pyx_t_11 = __pyx_v_cpDependencies; } __pyx_t_6 = PyObject_Length(__pyx_v_dependencyData); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 28408, __pyx_L1_error) __pyx_t_2 = (__pyx_t_6 == 1); if (__pyx_t_2) { __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_dependencyData, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28408, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_12 = ((struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData *)__pyx_t_7)->__pyx_base._ptr; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else { __pyx_t_12 = __pyx_v_cdependencyData; } __pyx_t_13 = __pyx_f_4cuda_7ccudart_cudaGraphAddNode_v2(((cudaGraphNode_t *)__pyx_v_pGraphNode->__pyx_base._ptr), __pyx_v_cgraph, __pyx_t_11, __pyx_t_12, __pyx_v_numDependencies, __pyx_v_cnodeParams_ptr); if (unlikely(__pyx_t_13 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 28408, __pyx_L1_error) __pyx_v_err = __pyx_t_13; /* "cuda/cudart.pyx":28409 * cdef ccudart.cudaGraphNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphAddNode_v2(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, (dependencyData[0])._ptr if len(dependencyData) == 1 else cdependencyData, numDependencies, cnodeParams_ptr) * if cpDependencies is not NULL: # <<<<<<<<<<<<<< * free(cpDependencies) * if cdependencyData is not NULL: */ __pyx_t_2 = (__pyx_v_cpDependencies != NULL); if (__pyx_t_2) { /* "cuda/cudart.pyx":28410 * err = ccudart.cudaGraphAddNode_v2(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, (dependencyData[0])._ptr if len(dependencyData) == 1 else cdependencyData, numDependencies, cnodeParams_ptr) * if cpDependencies is not NULL: * free(cpDependencies) # <<<<<<<<<<<<<< * if cdependencyData is not NULL: * free(cdependencyData) */ free(__pyx_v_cpDependencies); /* "cuda/cudart.pyx":28409 * cdef ccudart.cudaGraphNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphAddNode_v2(pGraphNode._ptr, cgraph, (pDependencies[0])._ptr if len(pDependencies) == 1 else cpDependencies, (dependencyData[0])._ptr if len(dependencyData) == 1 else cdependencyData, numDependencies, cnodeParams_ptr) * if cpDependencies is not NULL: # <<<<<<<<<<<<<< * free(cpDependencies) * if cdependencyData is not NULL: */ } /* "cuda/cudart.pyx":28411 * if cpDependencies is not NULL: * free(cpDependencies) * if cdependencyData is not NULL: # <<<<<<<<<<<<<< * free(cdependencyData) * return (cudaError_t(err), pGraphNode) */ __pyx_t_2 = (__pyx_v_cdependencyData != NULL); if (__pyx_t_2) { /* "cuda/cudart.pyx":28412 * free(cpDependencies) * if cdependencyData is not NULL: * free(cdependencyData) # <<<<<<<<<<<<<< * return (cudaError_t(err), pGraphNode) * */ free(__pyx_v_cdependencyData); /* "cuda/cudart.pyx":28411 * if cpDependencies is not NULL: * free(cpDependencies) * if cdependencyData is not NULL: # <<<<<<<<<<<<<< * free(cdependencyData) * return (cudaError_t(err), pGraphNode) */ } /* "cuda/cudart.pyx":28413 * if cdependencyData is not NULL: * free(cdependencyData) * return (cudaError_t(err), pGraphNode) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28413, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28413, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_14 = NULL; __pyx_t_15 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_14)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_14); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_15 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_14, __pyx_t_1}; __pyx_t_7 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_15, 1+__pyx_t_15); __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28413, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28413, __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)) __PYX_ERR(0, 28413, __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))) __PYX_ERR(0, 28413, __pyx_L1_error); __pyx_t_7 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":28326 * return (cudaError_t(err), pGraphNode) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphAddNode_v2(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 (12.3+) */ /* 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_14); __Pyx_AddTraceback("cuda.cudart.cudaGraphAddNode_v2", __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_6cudart_19cudaGraphAddNode_v2_2generator36); __Pyx_XDECREF(__pyx_gb_4cuda_6cudart_19cudaGraphAddNode_v2_5generator37); __Pyx_XDECREF(__pyx_v_pDependencies); __Pyx_XDECREF(__pyx_v_dependencyData); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":28415 * return (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_6cudart_533cudaGraphNodeSetParams(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_532cudaGraphNodeSetParams, "cudaGraphNodeSetParams(node, cudaGraphNodeParams nodeParams: Optional[cudaGraphNodeParams])\n Update's a graph node's parameters.\n\n Sets the parameters of graph node `node` to `nodeParams`. The node type\n specified by `nodeParams->type` must match the type of `node`.\n `nodeParams` must be fully initialized and all unused bytes (reserved,\n padding) zeroed.\n\n Modifying parameters is not supported for node types\n cudaGraphNodeTypeMemAlloc and cudaGraphNodeTypeMemFree.\n\n Parameters\n ----------\n node : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Node to set the parameters for\n nodeParams : :py:obj:`~.cudaGraphNodeParams`\n Parameters to copy\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidDeviceFunction`, :py:obj:`~.cudaErrorNotSupported`\n\n See Also\n --------\n :py:obj:`~.cudaGraphAddNode`, :py:obj:`~.cudaGraphExecNodeSetParams`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_533cudaGraphNodeSetParams = {"cudaGraphNodeSetParams", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_533cudaGraphNodeSetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_532cudaGraphNodeSetParams}; static PyObject *__pyx_pw_4cuda_6cudart_533cudaGraphNodeSetParams(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_node_2,&__pyx_n_s_nodeParams,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_node_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28415, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_nodeParams)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28415, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphNodeSetParams", 1, 2, 2, 1); __PYX_ERR(0, 28415, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphNodeSetParams") < 0)) __PYX_ERR(0, 28415, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_node = values[0]; __pyx_v_nodeParams = ((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)values[1]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphNodeSetParams", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 28415, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaGraphNodeParams, 1, "nodeParams", 0))) __PYX_ERR(0, 28416, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_532cudaGraphNodeSetParams(__pyx_self, __pyx_v_node, __pyx_v_nodeParams); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_532cudaGraphNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node, struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_nodeParams) { cudaGraphNode_t __pyx_v_cnode; PyObject *__pyx_v_pnode = NULL; struct cudaGraphNodeParams *__pyx_v_cnodeParams_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; struct cudaGraphNodeParams *__pyx_t_6; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__621) __Pyx_RefNannySetupContext("cudaGraphNodeSetParams", 1); __Pyx_TraceCall("cudaGraphNodeSetParams", __pyx_f[0], 28415, 0, __PYX_ERR(0, 28415, __pyx_L1_error)); /* "cuda/cudart.pyx":28444 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_node == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":28445 * cdef ccudart.cudaGraphNode_t cnode * if node is None: * cnode = 0 # <<<<<<<<<<<<<< * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) */ __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":28444 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":28446 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":28447 * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) # <<<<<<<<<<<<<< * cnode = pnode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28447, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pnode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":28448 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) * cnode = pnode # <<<<<<<<<<<<<< * else: * pnode = int(cudaGraphNode_t(node)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28448, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":28446 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ goto __pyx_L3; } /* "cuda/cudart.pyx":28450 * cnode = pnode * else: * pnode = int(cudaGraphNode_t(node)) # <<<<<<<<<<<<<< * cnode = pnode * cdef ccudart.cudaGraphNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28450, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28450, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pnode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":28451 * else: * pnode = int(cudaGraphNode_t(node)) * cnode = pnode # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphNodeSetParams(cnode, cnodeParams_ptr) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28451, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":28452 * pnode = int(cudaGraphNode_t(node)) * cnode = pnode * cdef ccudart.cudaGraphNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaGraphNodeSetParams(cnode, cnodeParams_ptr) * return (cudaError_t(err),) */ __pyx_t_5 = PyObject_RichCompare(((PyObject *)__pyx_v_nodeParams), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28452, __pyx_L1_error) __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 28452, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_1) { __pyx_t_6 = __pyx_v_nodeParams->_ptr; } else { __pyx_t_6 = NULL; } __pyx_v_cnodeParams_ptr = __pyx_t_6; /* "cuda/cudart.pyx":28453 * cnode = pnode * cdef ccudart.cudaGraphNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphNodeSetParams(cnode, cnodeParams_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaGraphNodeSetParams(__pyx_v_cnode, __pyx_v_cnodeParams_ptr); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 28453, __pyx_L1_error) __pyx_v_err = __pyx_t_7; /* "cuda/cudart.pyx":28454 * cdef ccudart.cudaGraphNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphNodeSetParams(cnode, cnodeParams_ptr) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28454, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28454, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_8}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28454, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28454, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 28454, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":28415 * return (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_5); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.cudaGraphNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pnode); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":28456 * return (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_6cudart_535cudaGraphExecNodeSetParams(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_534cudaGraphExecNodeSetParams, "cudaGraphExecNodeSetParams(graphExec, node, cudaGraphNodeParams nodeParams: Optional[cudaGraphNodeParams])\n Update's a graph node's parameters in an instantiated graph.\n\n Sets the parameters of a node in an executable graph `graphExec`. The\n node is identified by the corresponding node `node` in the non-\n executable graph from which the executable graph was instantiated.\n `node` must not have been removed from the original graph.\n\n The modifications only affect future launches of `graphExec`. Already\n enqueued or running launches of `graphExec` are not affected by this\n call. `node` is also not modified by this call.\n\n Allowed changes to parameters on executable graphs are as follows:\n\n **View CUDA Toolkit Documentation for a table example**\n\n Parameters\n ----------\n graphExec : :py:obj:`~.CUgraphExec` or :py:obj:`~.cudaGraphExec_t`\n The executable graph in which to update the specified node\n node : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n Corresponding node from the graph from which graphExec was\n instantiated\n nodeParams : :py:obj:`~.cudaGraphNodeParams`\n Updated Parameters to set\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidDeviceFunction`, :py:obj:`~.cudaErrorNotSupported`\n\n See Also\n --------\n :py:obj:`~.cudaGraphAddNode`, :py:obj:`~.cudaGraphNodeSetParams` :py:obj:`~.cudaGraphExecUpdate`, :py:obj:`~.cudaGraphInstantiate`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_535cudaGraphExecNodeSetParams = {"cudaGraphExecNodeSetParams", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_535cudaGraphExecNodeSetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_534cudaGraphExecNodeSetParams}; static PyObject *__pyx_pw_4cuda_6cudart_535cudaGraphExecNodeSetParams(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_graphExec,&__pyx_n_s_node_2,&__pyx_n_s_nodeParams,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_graphExec)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28456, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_node_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28456, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphExecNodeSetParams", 1, 3, 3, 1); __PYX_ERR(0, 28456, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_nodeParams)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28456, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphExecNodeSetParams", 1, 3, 3, 2); __PYX_ERR(0, 28456, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphExecNodeSetParams") < 0)) __PYX_ERR(0, 28456, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_graphExec = values[0]; __pyx_v_node = values[1]; __pyx_v_nodeParams = ((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)values[2]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphExecNodeSetParams", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 28456, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaGraphNodeParams, 1, "nodeParams", 0))) __PYX_ERR(0, 28457, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_534cudaGraphExecNodeSetParams(__pyx_self, __pyx_v_graphExec, __pyx_v_node, __pyx_v_nodeParams); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_534cudaGraphExecNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graphExec, PyObject *__pyx_v_node, struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *__pyx_v_nodeParams) { cudaGraphNode_t __pyx_v_cnode; PyObject *__pyx_v_pnode = NULL; cudaGraphExec_t __pyx_v_cgraphExec; PyObject *__pyx_v_pgraphExec = NULL; struct cudaGraphNodeParams *__pyx_v_cnodeParams_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; struct cudaGraphNodeParams *__pyx_t_6; cudaError_t __pyx_t_7; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__622) __Pyx_RefNannySetupContext("cudaGraphExecNodeSetParams", 1); __Pyx_TraceCall("cudaGraphExecNodeSetParams", __pyx_f[0], 28456, 0, __PYX_ERR(0, 28456, __pyx_L1_error)); /* "cuda/cudart.pyx":28493 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ __pyx_t_1 = (__pyx_v_node == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":28494 * cdef ccudart.cudaGraphNode_t cnode * if node is None: * cnode = 0 # <<<<<<<<<<<<<< * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) */ __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":28493 * """ * cdef ccudart.cudaGraphNode_t cnode * if node is None: # <<<<<<<<<<<<<< * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":28495 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphNode); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":28496 * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) # <<<<<<<<<<<<<< * cnode = pnode * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28496, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pnode = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":28497 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): * pnode = int(node) * cnode = pnode # <<<<<<<<<<<<<< * else: * pnode = int(cudaGraphNode_t(node)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28497, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":28495 * if node is None: * cnode = 0 * elif isinstance(node, (cudaGraphNode_t,cuda.CUgraphNode)): # <<<<<<<<<<<<<< * pnode = int(node) * cnode = pnode */ goto __pyx_L3; } /* "cuda/cudart.pyx":28499 * cnode = pnode * else: * pnode = int(cudaGraphNode_t(node)) # <<<<<<<<<<<<<< * cnode = pnode * cdef ccudart.cudaGraphExec_t cgraphExec */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), __pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28499, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28499, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pnode = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":28500 * else: * pnode = int(cudaGraphNode_t(node)) * cnode = pnode # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphExec_t cgraphExec * if graphExec is None: */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28500, __pyx_L1_error) __pyx_v_cnode = ((cudaGraphNode_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":28502 * cnode = pnode * cdef ccudart.cudaGraphExec_t cgraphExec * if graphExec is None: # <<<<<<<<<<<<<< * cgraphExec = 0 * elif isinstance(graphExec, (cudaGraphExec_t,cuda.CUgraphExec)): */ __pyx_t_1 = (__pyx_v_graphExec == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":28503 * cdef ccudart.cudaGraphExec_t cgraphExec * if graphExec is None: * cgraphExec = 0 # <<<<<<<<<<<<<< * elif isinstance(graphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * pgraphExec = int(graphExec) */ __pyx_v_cgraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":28502 * cnode = pnode * cdef ccudart.cudaGraphExec_t cgraphExec * if graphExec is None: # <<<<<<<<<<<<<< * cgraphExec = 0 * elif isinstance(graphExec, (cudaGraphExec_t,cuda.CUgraphExec)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":28504 * if graphExec is None: * cgraphExec = 0 * elif isinstance(graphExec, (cudaGraphExec_t,cuda.CUgraphExec)): # <<<<<<<<<<<<<< * pgraphExec = int(graphExec) * cgraphExec = pgraphExec */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graphExec, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraphExec); __pyx_t_1 = __pyx_t_2; __pyx_L7_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":28505 * cgraphExec = 0 * elif isinstance(graphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * pgraphExec = int(graphExec) # <<<<<<<<<<<<<< * cgraphExec = pgraphExec * else: */ __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_v_graphExec); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28505, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pgraphExec = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":28506 * elif isinstance(graphExec, (cudaGraphExec_t,cuda.CUgraphExec)): * pgraphExec = int(graphExec) * cgraphExec = pgraphExec # <<<<<<<<<<<<<< * else: * pgraphExec = int(cudaGraphExec_t(graphExec)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraphExec); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28506, __pyx_L1_error) __pyx_v_cgraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":28504 * if graphExec is None: * cgraphExec = 0 * elif isinstance(graphExec, (cudaGraphExec_t,cuda.CUgraphExec)): # <<<<<<<<<<<<<< * pgraphExec = int(graphExec) * cgraphExec = pgraphExec */ goto __pyx_L6; } /* "cuda/cudart.pyx":28508 * cgraphExec = pgraphExec * else: * pgraphExec = int(cudaGraphExec_t(graphExec)) # <<<<<<<<<<<<<< * cgraphExec = pgraphExec * cdef ccudart.cudaGraphNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL */ /*else*/ { __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphExec_t), __pyx_v_graphExec); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28508, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28508, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_pgraphExec = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":28509 * else: * pgraphExec = int(cudaGraphExec_t(graphExec)) * cgraphExec = pgraphExec # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphExecNodeSetParams(cgraphExec, cnode, cnodeParams_ptr) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraphExec); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28509, __pyx_L1_error) __pyx_v_cgraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L6:; /* "cuda/cudart.pyx":28510 * pgraphExec = int(cudaGraphExec_t(graphExec)) * cgraphExec = pgraphExec * cdef ccudart.cudaGraphNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaGraphExecNodeSetParams(cgraphExec, cnode, cnodeParams_ptr) * return (cudaError_t(err),) */ __pyx_t_3 = PyObject_RichCompare(((PyObject *)__pyx_v_nodeParams), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28510, __pyx_L1_error) __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 28510, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_1) { __pyx_t_6 = __pyx_v_nodeParams->_ptr; } else { __pyx_t_6 = NULL; } __pyx_v_cnodeParams_ptr = __pyx_t_6; /* "cuda/cudart.pyx":28511 * cgraphExec = pgraphExec * cdef ccudart.cudaGraphNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphExecNodeSetParams(cgraphExec, cnode, cnodeParams_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaGraphExecNodeSetParams(__pyx_v_cgraphExec, __pyx_v_cnode, __pyx_v_cnodeParams_ptr); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 28511, __pyx_L1_error) __pyx_v_err = __pyx_t_7; /* "cuda/cudart.pyx":28512 * cdef ccudart.cudaGraphNodeParams* cnodeParams_ptr = nodeParams._ptr if nodeParams != None else NULL * err = ccudart.cudaGraphExecNodeSetParams(cgraphExec, cnode, cnodeParams_ptr) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28512, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_8 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28512, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; __pyx_t_10 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_10 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_8}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_10, 1+__pyx_t_10); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28512, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28512, __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)) __PYX_ERR(0, 28512, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":28456 * return (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_5); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":28514 * return (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_6cudart_537cudaGraphConditionalHandleCreate(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_536cudaGraphConditionalHandleCreate, "cudaGraphConditionalHandleCreate(graph, unsigned int defaultLaunchValue, unsigned int flags)\n Create a conditional handle.\n\n Creates a conditional handle associated with `hGraph`.\n\n The conditional handle must be associated with a conditional node in\n this graph or one of its children.\n\n Handles not associated with a conditional node may cause graph\n instantiation to fail.\n\n Parameters\n ----------\n hGraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n Graph which will contain the conditional node using this handle.\n defaultLaunchValue : unsigned int\n Optional initial value for the conditional variable.\n flags : unsigned int\n Currently must be cudaGraphCondAssignDefault or 0.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.CUDA_SUCCESS`, :py:obj:`~.CUDA_ERROR_INVALID_VALUE`, :py:obj:`~.CUDA_ERROR_NOT_SUPPORTED`\n pHandle_out : :py:obj:`~.cudaGraphConditionalHandle`\n Pointer used to return the handle to the caller.\n\n See Also\n --------\n :py:obj:`~.cuGraphAddNode`,\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_537cudaGraphConditionalHandleCreate = {"cudaGraphConditionalHandleCreate", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_537cudaGraphConditionalHandleCreate, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_536cudaGraphConditionalHandleCreate}; static PyObject *__pyx_pw_4cuda_6cudart_537cudaGraphConditionalHandleCreate(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_graph_2,&__pyx_n_s_defaultLaunchValue,&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_graph_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28514, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_defaultLaunchValue)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28514, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphConditionalHandleCreate", 1, 3, 3, 1); __PYX_ERR(0, 28514, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28514, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphConditionalHandleCreate", 1, 3, 3, 2); __PYX_ERR(0, 28514, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphConditionalHandleCreate") < 0)) __PYX_ERR(0, 28514, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_graph = values[0]; __pyx_v_defaultLaunchValue = __Pyx_PyInt_As_unsigned_int(values[1]); if (unlikely((__pyx_v_defaultLaunchValue == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 28515, __pyx_L3_error) __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[2]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 28515, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphConditionalHandleCreate", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 28514, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphConditionalHandleCreate", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_536cudaGraphConditionalHandleCreate(__pyx_self, __pyx_v_graph, __pyx_v_defaultLaunchValue, __pyx_v_flags); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_536cudaGraphConditionalHandleCreate(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, unsigned int __pyx_v_defaultLaunchValue, unsigned int __pyx_v_flags) { cudaGraph_t __pyx_v_cgraph; PyObject *__pyx_v_pgraph = NULL; struct __pyx_obj_4cuda_6cudart_cudaGraphConditionalHandle *__pyx_v_pHandle_out = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_4; PyObject *__pyx_t_5 = NULL; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; unsigned int __pyx_t_9; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__623) __Pyx_RefNannySetupContext("cudaGraphConditionalHandleCreate", 1); __Pyx_TraceCall("cudaGraphConditionalHandleCreate", __pyx_f[0], 28514, 0, __PYX_ERR(0, 28514, __pyx_L1_error)); /* "cuda/cudart.pyx":28547 * """ * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ __pyx_t_1 = (__pyx_v_graph == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":28548 * cdef ccudart.cudaGraph_t cgraph * if graph is None: * cgraph = 0 # <<<<<<<<<<<<<< * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) */ __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":28547 * """ * cdef ccudart.cudaGraph_t cgraph * if graph is None: # <<<<<<<<<<<<<< * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":28549 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUgraph); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":28550 * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) # <<<<<<<<<<<<<< * cgraph = pgraph * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28550, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_pgraph = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":28551 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): * pgraph = int(graph) * cgraph = pgraph # <<<<<<<<<<<<<< * else: * pgraph = int(cudaGraph_t(graph)) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28551, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); /* "cuda/cudart.pyx":28549 * if graph is None: * cgraph = 0 * elif isinstance(graph, (cudaGraph_t,cuda.CUgraph)): # <<<<<<<<<<<<<< * pgraph = int(graph) * cgraph = pgraph */ goto __pyx_L3; } /* "cuda/cudart.pyx":28553 * cgraph = pgraph * else: * pgraph = int(cudaGraph_t(graph)) # <<<<<<<<<<<<<< * cgraph = pgraph * cdef cudaGraphConditionalHandle pHandle_out = cudaGraphConditionalHandle() */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), __pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28553, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28553, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_pgraph = __pyx_t_5; __pyx_t_5 = 0; /* "cuda/cudart.pyx":28554 * else: * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph # <<<<<<<<<<<<<< * cdef cudaGraphConditionalHandle pHandle_out = cudaGraphConditionalHandle() * err = ccudart.cudaGraphConditionalHandleCreate(pHandle_out._ptr, cgraph, defaultLaunchValue, flags) */ __pyx_t_4 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28554, __pyx_L1_error) __pyx_v_cgraph = ((cudaGraph_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_4)); } __pyx_L3:; /* "cuda/cudart.pyx":28555 * pgraph = int(cudaGraph_t(graph)) * cgraph = pgraph * cdef cudaGraphConditionalHandle pHandle_out = cudaGraphConditionalHandle() # <<<<<<<<<<<<<< * err = ccudart.cudaGraphConditionalHandleCreate(pHandle_out._ptr, cgraph, defaultLaunchValue, flags) * return (cudaError_t(err), pHandle_out) */ __pyx_t_5 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphConditionalHandle)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28555, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_v_pHandle_out = ((struct __pyx_obj_4cuda_6cudart_cudaGraphConditionalHandle *)__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":28556 * cgraph = pgraph * cdef cudaGraphConditionalHandle pHandle_out = cudaGraphConditionalHandle() * err = ccudart.cudaGraphConditionalHandleCreate(pHandle_out._ptr, cgraph, defaultLaunchValue, flags) # <<<<<<<<<<<<<< * return (cudaError_t(err), pHandle_out) * */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaGraphConditionalHandleCreate(((cudaGraphConditionalHandle *)__pyx_v_pHandle_out->_ptr), __pyx_v_cgraph, __pyx_v_defaultLaunchValue, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 28556, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":28557 * cdef cudaGraphConditionalHandle pHandle_out = cudaGraphConditionalHandle() * err = ccudart.cudaGraphConditionalHandleCreate(pHandle_out._ptr, cgraph, defaultLaunchValue, flags) * return (cudaError_t(err), pHandle_out) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28557, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28557, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_9 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_9 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_5 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_9, 1+__pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28557, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28557, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5)) __PYX_ERR(0, 28557, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pHandle_out); __Pyx_GIVEREF((PyObject *)__pyx_v_pHandle_out); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_v_pHandle_out))) __PYX_ERR(0, 28557, __pyx_L1_error); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":28514 * return (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_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":28559 * return (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_6cudart_539cudaGetDriverEntryPoint(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_538cudaGetDriverEntryPoint, "cudaGetDriverEntryPoint(char *symbol, unsigned long long flags)\n Returns the requested driver API function pointer.\n\n Returns in `**funcPtr` the address of the CUDA driver function for the\n requested flags.\n\n For a requested driver symbol, if the CUDA version in which the driver\n symbol was introduced is less than or equal to the CUDA runtime\n version, the API will return the function pointer to the corresponding\n versioned driver function.\n\n The pointer returned by the API should be cast to a function pointer\n matching the requested driver function's definition in the API header\n file. The function pointer typedef can be picked up from the\n corresponding typedefs header file. For example, cudaTypedefs.h\n consists of function pointer typedefs for driver APIs defined in\n cuda.h.\n\n The API will return :py:obj:`~.cudaSuccess` and set the returned\n `funcPtr` if the requested driver function is valid and supported on\n the platform.\n\n The API will return :py:obj:`~.cudaSuccess` and set the returned\n `funcPtr` to NULL if the requested driver function is not supported on\n the platform, no ABI compatible driver function exists for the CUDA\n runtime version or if the driver symbol is invalid.\n\n It will also set the optional `driverStatus` to one of the values in\n :py:obj:`~.cudaDriverEntryPointQueryResult` with the following\n meanings:\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\n The requested flags can be:\n\n - :py:obj:`~.cudaEnableDefault`: This is the default mode. This is\n equivalent to :py:o""bj:`~.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\n Parameters\n ----------\n symbol : 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`.\n flags : unsigned long long\n Flags to specify search options.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorNotSupported`\n funcPtr : Any\n Location to return the function pointer to the requested driver\n function\n driverStatus : :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\n See Also\n --------\n :py:obj:`~.cuGetProcAddress`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_539cudaGetDriverEntryPoint = {"cudaGetDriverEntryPoint", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_539cudaGetDriverEntryPoint, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_538cudaGetDriverEntryPoint}; static PyObject *__pyx_pw_4cuda_6cudart_539cudaGetDriverEntryPoint(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_symbol,&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_symbol)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28559, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28559, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGetDriverEntryPoint", 1, 2, 2, 1); __PYX_ERR(0, 28559, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGetDriverEntryPoint") < 0)) __PYX_ERR(0, 28559, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_symbol = __Pyx_PyObject_AsWritableString(values[0]); if (unlikely((!__pyx_v_symbol) && PyErr_Occurred())) __PYX_ERR(0, 28560, __pyx_L3_error) __pyx_v_flags = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v_flags == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28560, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGetDriverEntryPoint", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 28559, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGetDriverEntryPoint", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_538cudaGetDriverEntryPoint(__pyx_self, __pyx_v_symbol, __pyx_v_flags); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_538cudaGetDriverEntryPoint(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_symbol, unsigned PY_LONG_LONG __pyx_v_flags) { __pyx_t_4cuda_6cudart_void_ptr __pyx_v_funcPtr; enum cudaDriverEntryPointQueryResult __pyx_v_driverStatus; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; unsigned int __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_TraceFrameInit(__pyx_codeobj__624) __Pyx_RefNannySetupContext("cudaGetDriverEntryPoint", 1); __Pyx_TraceCall("cudaGetDriverEntryPoint", __pyx_f[0], 28559, 0, __PYX_ERR(0, 28559, __pyx_L1_error)); /* "cuda/cudart.pyx":28646 * :py:obj:`~.cuGetProcAddress` * """ * cdef void_ptr funcPtr = 0 # <<<<<<<<<<<<<< * cdef ccudart.cudaDriverEntryPointQueryResult driverStatus * err = ccudart.cudaGetDriverEntryPoint(symbol, &funcPtr, flags, &driverStatus) */ __pyx_v_funcPtr = 0; /* "cuda/cudart.pyx":28648 * cdef void_ptr funcPtr = 0 * cdef ccudart.cudaDriverEntryPointQueryResult driverStatus * err = ccudart.cudaGetDriverEntryPoint(symbol, &funcPtr, flags, &driverStatus) # <<<<<<<<<<<<<< * return (cudaError_t(err), funcPtr, cudaDriverEntryPointQueryResult(driverStatus)) * */ __pyx_t_1 = __pyx_f_4cuda_7ccudart_cudaGetDriverEntryPoint(__pyx_v_symbol, ((void **)(&__pyx_v_funcPtr)), __pyx_v_flags, (&__pyx_v_driverStatus)); if (unlikely(__pyx_t_1 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 28648, __pyx_L1_error) __pyx_v_err = __pyx_t_1; /* "cuda/cudart.pyx":28649 * cdef ccudart.cudaDriverEntryPointQueryResult driverStatus * err = ccudart.cudaGetDriverEntryPoint(symbol, &funcPtr, flags, &driverStatus) * return (cudaError_t(err), funcPtr, cudaDriverEntryPointQueryResult(driverStatus)) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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(0, 28649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(__pyx_v_funcPtr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaDriverEntryPointQueryResult); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaDriverEntryPointQueryResult(__pyx_v_driverStatus); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28649, __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)) __PYX_ERR(0, 28649, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_3)) __PYX_ERR(0, 28649, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_4)) __PYX_ERR(0, 28649, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_3 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":28559 * return (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_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaGetDriverEntryPoint", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":28651 * return (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_6cudart_541cudaGetDriverEntryPointByVersion(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_540cudaGetDriverEntryPointByVersion, "cudaGetDriverEntryPointByVersion(char *symbol, unsigned int cudaVersion, unsigned long long flags)\n Returns the requested driver API function pointer by CUDA version.\n\n Returns in `**funcPtr` the address of the CUDA driver function for the\n requested flags and CUDA driver version.\n\n The CUDA version is specified as (1000 * major + 10 * minor), so CUDA\n 11.2 should be specified as 11020. For a requested driver symbol, if\n the specified CUDA version is greater than or equal to the CUDA version\n in which the driver symbol was introduced, this API will return the\n function pointer to the corresponding versioned function.\n\n The pointer returned by the API should be cast to a function pointer\n matching the requested driver function's definition in the API header\n file. The function pointer typedef can be picked up from the\n corresponding typedefs header file. For example, cudaTypedefs.h\n consists of function pointer typedefs for driver APIs defined in\n cuda.h.\n\n For the case where the CUDA version requested is greater than the CUDA\n Toolkit installed, there may not be an appropriate function pointer\n typedef in the corresponding header file and may need a custom typedef\n to match the driver function signature returned. This can be done by\n getting the typedefs from a later toolkit or creating appropriately\n matching custom function typedefs.\n\n The API will return :py:obj:`~.cudaSuccess` and set the returned\n `funcPtr` if the requested driver function is valid and supported on\n the platform.\n\n The API will return :py:obj:`~.cudaSuccess` and set the returned\n `funcPtr` to NULL if the requested driver function is not supported on\n the platform, no ABI compatible driver function exists for the\n requested version or if the driver symbol is invalid.\n\n It will also set the optional `driverStatus` to one of the values in\n :py:obj:`~.cudaDriverEntryPointQueryResu""lt` with the following\n meanings:\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\n The 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\n Parameters\n ----------\n symbol : 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.\n cudaVersion : unsigned int\n The CUDA version to look for the requested driver symbol\n flags : unsigned long long\n Flags to specify search options.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorNotSupported`\n funcPtr : Any\n Location to return the function pointer to the requested driver\n function""\n driverStatus : :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\n See Also\n --------\n :py:obj:`~.cuGetProcAddress`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_541cudaGetDriverEntryPointByVersion = {"cudaGetDriverEntryPointByVersion", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_541cudaGetDriverEntryPointByVersion, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_540cudaGetDriverEntryPointByVersion}; static PyObject *__pyx_pw_4cuda_6cudart_541cudaGetDriverEntryPointByVersion(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_symbol,&__pyx_n_s_cudaVersion,&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_symbol)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28651, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_cudaVersion)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28651, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGetDriverEntryPointByVersion", 1, 3, 3, 1); __PYX_ERR(0, 28651, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28651, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGetDriverEntryPointByVersion", 1, 3, 3, 2); __PYX_ERR(0, 28651, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGetDriverEntryPointByVersion") < 0)) __PYX_ERR(0, 28651, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_symbol = __Pyx_PyObject_AsWritableString(values[0]); if (unlikely((!__pyx_v_symbol) && PyErr_Occurred())) __PYX_ERR(0, 28652, __pyx_L3_error) __pyx_v_cudaVersion = __Pyx_PyInt_As_unsigned_int(values[1]); if (unlikely((__pyx_v_cudaVersion == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 28652, __pyx_L3_error) __pyx_v_flags = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(values[2]); if (unlikely((__pyx_v_flags == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28652, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGetDriverEntryPointByVersion", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 28651, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGetDriverEntryPointByVersion", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_540cudaGetDriverEntryPointByVersion(__pyx_self, __pyx_v_symbol, __pyx_v_cudaVersion, __pyx_v_flags); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_540cudaGetDriverEntryPointByVersion(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_symbol, unsigned int __pyx_v_cudaVersion, unsigned PY_LONG_LONG __pyx_v_flags) { __pyx_t_4cuda_6cudart_void_ptr __pyx_v_funcPtr; enum cudaDriverEntryPointQueryResult __pyx_v_driverStatus; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; unsigned int __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_TraceFrameInit(__pyx_codeobj__625) __Pyx_RefNannySetupContext("cudaGetDriverEntryPointByVersion", 1); __Pyx_TraceCall("cudaGetDriverEntryPointByVersion", __pyx_f[0], 28651, 0, __PYX_ERR(0, 28651, __pyx_L1_error)); /* "cuda/cudart.pyx":28746 * :py:obj:`~.cuGetProcAddress` * """ * cdef void_ptr funcPtr = 0 # <<<<<<<<<<<<<< * cdef ccudart.cudaDriverEntryPointQueryResult driverStatus * err = ccudart.cudaGetDriverEntryPointByVersion(symbol, &funcPtr, cudaVersion, flags, &driverStatus) */ __pyx_v_funcPtr = 0; /* "cuda/cudart.pyx":28748 * cdef void_ptr funcPtr = 0 * cdef ccudart.cudaDriverEntryPointQueryResult driverStatus * err = ccudart.cudaGetDriverEntryPointByVersion(symbol, &funcPtr, cudaVersion, flags, &driverStatus) # <<<<<<<<<<<<<< * return (cudaError_t(err), funcPtr, cudaDriverEntryPointQueryResult(driverStatus)) * */ __pyx_t_1 = __pyx_f_4cuda_7ccudart_cudaGetDriverEntryPointByVersion(__pyx_v_symbol, ((void **)(&__pyx_v_funcPtr)), __pyx_v_cudaVersion, __pyx_v_flags, (&__pyx_v_driverStatus)); if (unlikely(__pyx_t_1 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 28748, __pyx_L1_error) __pyx_v_err = __pyx_t_1; /* "cuda/cudart.pyx":28749 * cdef ccudart.cudaDriverEntryPointQueryResult driverStatus * err = ccudart.cudaGetDriverEntryPointByVersion(symbol, &funcPtr, cudaVersion, flags, &driverStatus) * return (cudaError_t(err), funcPtr, cudaDriverEntryPointQueryResult(driverStatus)) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28749, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28749, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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(0, 28749, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(__pyx_v_funcPtr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28749, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaDriverEntryPointQueryResult); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28749, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_7 = __Pyx_PyInt_From_enum__cudaDriverEntryPointQueryResult(__pyx_v_driverStatus); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28749, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28749, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28749, __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)) __PYX_ERR(0, 28749, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_3)) __PYX_ERR(0, 28749, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_4)) __PYX_ERR(0, 28749, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_3 = 0; __pyx_t_4 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":28651 * return (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_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.cudaGetDriverEntryPointByVersion", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":28751 * return (cudaError_t(err), funcPtr, cudaDriverEntryPointQueryResult(driverStatus)) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGetExportTable(pExportTableId : Optional[cudaUUID_t]): * """""" */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_543cudaGetExportTable(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_542cudaGetExportTable, "cudaGetExportTable(cudaUUID_t pExportTableId: Optional[cudaUUID_t])"); static PyMethodDef __pyx_mdef_4cuda_6cudart_543cudaGetExportTable = {"cudaGetExportTable", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_543cudaGetExportTable, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_542cudaGetExportTable}; static PyObject *__pyx_pw_4cuda_6cudart_543cudaGetExportTable(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pExportTableId,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pExportTableId)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28751, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGetExportTable") < 0)) __PYX_ERR(0, 28751, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_pExportTableId = ((struct __pyx_obj_4cuda_6cudart_cudaUUID_t *)values[0]); } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGetExportTable", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 28751, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaUUID_t, 1, "pExportTableId", 0))) __PYX_ERR(0, 28752, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_542cudaGetExportTable(__pyx_self, __pyx_v_pExportTableId); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_542cudaGetExportTable(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_6cudart_cudaUUID_t *__pyx_v_pExportTableId) { __pyx_t_4cuda_6cudart_void_ptr __pyx_v_ppExportTable; cudaUUID_t *__pyx_v_cpExportTableId_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations struct CUuuid_st *__pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; cudaError_t __pyx_t_4; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__626) __Pyx_RefNannySetupContext("cudaGetExportTable", 1); __Pyx_TraceCall("cudaGetExportTable", __pyx_f[0], 28751, 0, __PYX_ERR(0, 28751, __pyx_L1_error)); /* "cuda/cudart.pyx":28754 * def cudaGetExportTable(pExportTableId : Optional[cudaUUID_t]): * """""" * cdef void_ptr ppExportTable = 0 # <<<<<<<<<<<<<< * cdef ccudart.cudaUUID_t* cpExportTableId_ptr = pExportTableId._ptr if pExportTableId != None else NULL * err = ccudart.cudaGetExportTable(&ppExportTable, cpExportTableId_ptr) */ __pyx_v_ppExportTable = 0; /* "cuda/cudart.pyx":28755 * """""" * cdef void_ptr ppExportTable = 0 * cdef ccudart.cudaUUID_t* cpExportTableId_ptr = pExportTableId._ptr if pExportTableId != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaGetExportTable(&ppExportTable, cpExportTableId_ptr) * return (cudaError_t(err), ppExportTable) */ __pyx_t_2 = PyObject_RichCompare(((PyObject *)__pyx_v_pExportTableId), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28755, __pyx_L1_error) __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 28755, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_3) { __pyx_t_1 = __pyx_v_pExportTableId->__pyx_base._ptr; } else { __pyx_t_1 = NULL; } __pyx_v_cpExportTableId_ptr = __pyx_t_1; /* "cuda/cudart.pyx":28756 * cdef void_ptr ppExportTable = 0 * cdef ccudart.cudaUUID_t* cpExportTableId_ptr = pExportTableId._ptr if pExportTableId != None else NULL * err = ccudart.cudaGetExportTable(&ppExportTable, cpExportTableId_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err), ppExportTable) * */ __pyx_t_4 = __pyx_f_4cuda_7ccudart_cudaGetExportTable(((void const **)(&__pyx_v_ppExportTable)), __pyx_v_cpExportTableId_ptr); if (unlikely(__pyx_t_4 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 28756, __pyx_L1_error) __pyx_v_err = __pyx_t_4; /* "cuda/cudart.pyx":28757 * cdef ccudart.cudaUUID_t* cpExportTableId_ptr = pExportTableId._ptr if pExportTableId != None else NULL * err = ccudart.cudaGetExportTable(&ppExportTable, cpExportTableId_ptr) * return (cudaError_t(err), ppExportTable) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28757, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 28757, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __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, 28757, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __pyx_t_5 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(__pyx_v_ppExportTable); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28757, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 28757, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_2)) __PYX_ERR(0, 28757, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_5); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_5)) __PYX_ERR(0, 28757, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_5 = 0; __pyx_r = __pyx_t_6; __pyx_t_6 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":28751 * return (cudaError_t(err), funcPtr, cudaDriverEntryPointQueryResult(driverStatus)) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGetExportTable(pExportTableId : Optional[cudaUUID_t]): * """""" */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.cudaGetExportTable", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":28759 * return (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_6cudart_545cudaGetKernel(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_544cudaGetKernel, "cudaGetKernel(entryFuncAddr)\n Get pointer to device kernel that matches entry function `entryFuncAddr`.\n\n Returns in `kernelPtr` the device kernel corresponding to the entry\n function `entryFuncAddr`.\n\n Parameters\n ----------\n entryFuncAddr : Any\n Address of device entry function to search kernel for\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`\n kernelPtr : :py:obj:`~.cudaKernel_t`\n Returns the device kernel\n\n See Also\n --------\n cudaGetKernel (C++ API)\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_545cudaGetKernel = {"cudaGetKernel", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_545cudaGetKernel, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_544cudaGetKernel}; static PyObject *__pyx_pw_4cuda_6cudart_545cudaGetKernel(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_entryFuncAddr,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_entryFuncAddr)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28759, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGetKernel") < 0)) __PYX_ERR(0, 28759, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_entryFuncAddr = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGetKernel", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 28759, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGetKernel", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_544cudaGetKernel(__pyx_self, __pyx_v_entryFuncAddr); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_544cudaGetKernel(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_entryFuncAddr) { struct __pyx_obj_4cuda_6cudart_cudaKernel_t *__pyx_v_kernelPtr = 0; PyObject *__pyx_v_centryFuncAddr = NULL; void *__pyx_v_centryFuncAddr_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; cudaError_t __pyx_t_3; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; unsigned int __pyx_t_7; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__627) __Pyx_RefNannySetupContext("cudaGetKernel", 1); __Pyx_TraceCall("cudaGetKernel", __pyx_f[0], 28759, 0, __PYX_ERR(0, 28759, __pyx_L1_error)); /* "cuda/cudart.pyx":28782 * cudaGetKernel (C++ API) * """ * cdef cudaKernel_t kernelPtr = cudaKernel_t() # <<<<<<<<<<<<<< * centryFuncAddr = utils.HelperInputVoidPtr(entryFuncAddr) * cdef void* centryFuncAddr_ptr = centryFuncAddr.cptr */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaKernel_t)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28782, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_kernelPtr = ((struct __pyx_obj_4cuda_6cudart_cudaKernel_t *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":28783 * """ * cdef cudaKernel_t kernelPtr = cudaKernel_t() * centryFuncAddr = utils.HelperInputVoidPtr(entryFuncAddr) # <<<<<<<<<<<<<< * cdef void* centryFuncAddr_ptr = centryFuncAddr.cptr * err = ccudart.cudaGetKernel(kernelPtr._ptr, centryFuncAddr_ptr) */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_entryFuncAddr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28783, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_centryFuncAddr = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":28784 * cdef cudaKernel_t kernelPtr = cudaKernel_t() * centryFuncAddr = utils.HelperInputVoidPtr(entryFuncAddr) * cdef void* centryFuncAddr_ptr = centryFuncAddr.cptr # <<<<<<<<<<<<<< * err = ccudart.cudaGetKernel(kernelPtr._ptr, centryFuncAddr_ptr) * return (cudaError_t(err), kernelPtr) */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_centryFuncAddr, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28784, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28784, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_centryFuncAddr_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":28785 * centryFuncAddr = utils.HelperInputVoidPtr(entryFuncAddr) * cdef void* centryFuncAddr_ptr = centryFuncAddr.cptr * err = ccudart.cudaGetKernel(kernelPtr._ptr, centryFuncAddr_ptr) # <<<<<<<<<<<<<< * return (cudaError_t(err), kernelPtr) * */ __pyx_t_3 = __pyx_f_4cuda_7ccudart_cudaGetKernel(((cudaKernel_t *)__pyx_v_kernelPtr->_ptr), __pyx_v_centryFuncAddr_ptr); if (unlikely(__pyx_t_3 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 28785, __pyx_L1_error) __pyx_v_err = __pyx_t_3; /* "cuda/cudart.pyx":28786 * cdef void* centryFuncAddr_ptr = centryFuncAddr.cptr * err = ccudart.cudaGetKernel(kernelPtr._ptr, centryFuncAddr_ptr) * return (cudaError_t(err), kernelPtr) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28786, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28786, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_7 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_5}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28786, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28786, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1)) __PYX_ERR(0, 28786, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_kernelPtr); __Pyx_GIVEREF((PyObject *)__pyx_v_kernelPtr); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, ((PyObject *)__pyx_v_kernelPtr))) __PYX_ERR(0, 28786, __pyx_L1_error); __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":28759 * return (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_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("cuda.cudart.cudaGetKernel", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_kernelPtr); __Pyx_XDECREF(__pyx_v_centryFuncAddr); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":28788 * return (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_6cudart_547make_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_6cudart_546make_cudaPitchedPtr, "make_cudaPitchedPtr(d, size_t p, size_t xsz, size_t ysz)\n Returns a :py:obj:`~.cudaPitchedPtr` based on input parameters.\n\n Returns a :py:obj:`~.cudaPitchedPtr` based on the specified input\n parameters `d`, `p`, `xsz`, and `ysz`.\n\n Parameters\n ----------\n d : Any\n Pointer to allocated memory\n p : size_t\n Pitch of allocated memory in bytes\n xsz : size_t\n Logical width of allocation in elements\n ysz : size_t\n Logical height of allocation in elements\n\n Returns\n -------\n cudaError_t.cudaSuccess\n cudaError_t.cudaSuccess\n :py:obj:`~.cudaPitchedPtr`\n :py:obj:`~.cudaPitchedPtr` specified by `d`, `p`, `xsz`, and `ysz`\n\n See Also\n --------\n make_cudaExtent, make_cudaPos\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_547make_cudaPitchedPtr = {"make_cudaPitchedPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_547make_cudaPitchedPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_546make_cudaPitchedPtr}; static PyObject *__pyx_pw_4cuda_6cudart_547make_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_d,&__pyx_n_s_p,&__pyx_n_s_xsz,&__pyx_n_s_ysz,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_d)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28788, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_p)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28788, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("make_cudaPitchedPtr", 1, 4, 4, 1); __PYX_ERR(0, 28788, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_xsz)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28788, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("make_cudaPitchedPtr", 1, 4, 4, 2); __PYX_ERR(0, 28788, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ysz)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28788, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("make_cudaPitchedPtr", 1, 4, 4, 3); __PYX_ERR(0, 28788, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "make_cudaPitchedPtr") < 0)) __PYX_ERR(0, 28788, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); } __pyx_v_d = values[0]; __pyx_v_p = __Pyx_PyInt_As_size_t(values[1]); if (unlikely((__pyx_v_p == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 28789, __pyx_L3_error) __pyx_v_xsz = __Pyx_PyInt_As_size_t(values[2]); if (unlikely((__pyx_v_xsz == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 28789, __pyx_L3_error) __pyx_v_ysz = __Pyx_PyInt_As_size_t(values[3]); if (unlikely((__pyx_v_ysz == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 28789, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("make_cudaPitchedPtr", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 28788, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.make_cudaPitchedPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_546make_cudaPitchedPtr(__pyx_self, __pyx_v_d, __pyx_v_p, __pyx_v_xsz, __pyx_v_ysz); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_546make_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) { PyObject *__pyx_v_cd = NULL; void *__pyx_v_cd_ptr; struct cudaPitchedPtr __pyx_v_err; struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *__pyx_v_wrapper = 0; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_2; struct cudaPitchedPtr __pyx_t_3; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__628) __Pyx_RefNannySetupContext("make_cudaPitchedPtr", 1); __Pyx_TraceCall("make_cudaPitchedPtr", __pyx_f[0], 28788, 0, __PYX_ERR(0, 28788, __pyx_L1_error)); /* "cuda/cudart.pyx":28817 * make_cudaExtent, make_cudaPos * """ * cd = utils.HelperInputVoidPtr(d) # <<<<<<<<<<<<<< * cdef void* cd_ptr = cd.cptr * err = ccudart.make_cudaPitchedPtr(cd_ptr, p, xsz, ysz) */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr), __pyx_v_d); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28817, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_cd = __pyx_t_1; __pyx_t_1 = 0; /* "cuda/cudart.pyx":28818 * """ * cd = utils.HelperInputVoidPtr(d) * cdef void* cd_ptr = cd.cptr # <<<<<<<<<<<<<< * err = ccudart.make_cudaPitchedPtr(cd_ptr, p, xsz, ysz) * cdef cudaPitchedPtr wrapper = cudaPitchedPtr() */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_cd, __pyx_n_s_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28818, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28818, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_cd_ptr = ((void *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_2)); /* "cuda/cudart.pyx":28819 * cd = utils.HelperInputVoidPtr(d) * cdef void* cd_ptr = cd.cptr * err = ccudart.make_cudaPitchedPtr(cd_ptr, p, xsz, ysz) # <<<<<<<<<<<<<< * cdef cudaPitchedPtr wrapper = cudaPitchedPtr() * wrapper._ptr[0] = err */ __pyx_t_3 = __pyx_f_4cuda_7ccudart_make_cudaPitchedPtr(__pyx_v_cd_ptr, __pyx_v_p, __pyx_v_xsz, __pyx_v_ysz); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28819, __pyx_L1_error) __pyx_v_err = __pyx_t_3; /* "cuda/cudart.pyx":28820 * cdef void* cd_ptr = cd.cptr * err = ccudart.make_cudaPitchedPtr(cd_ptr, p, xsz, ysz) * cdef cudaPitchedPtr wrapper = cudaPitchedPtr() # <<<<<<<<<<<<<< * wrapper._ptr[0] = err * return wrapper */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaPitchedPtr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28820, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_wrapper = ((struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":28821 * err = ccudart.make_cudaPitchedPtr(cd_ptr, p, xsz, ysz) * cdef cudaPitchedPtr wrapper = cudaPitchedPtr() * wrapper._ptr[0] = err # <<<<<<<<<<<<<< * return wrapper * */ (__pyx_v_wrapper->_ptr[0]) = __pyx_v_err; /* "cuda/cudart.pyx":28822 * cdef cudaPitchedPtr wrapper = cudaPitchedPtr() * wrapper._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/cudart.pyx":28788 * return (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_AddTraceback("cuda.cudart.make_cudaPitchedPtr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_cd); __Pyx_XDECREF((PyObject *)__pyx_v_wrapper); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":28824 * 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_6cudart_549make_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_6cudart_548make_cudaPos, "make_cudaPos(size_t x, size_t y, size_t z)\n Returns a :py:obj:`~.cudaPos` based on input parameters.\n\n Returns a :py:obj:`~.cudaPos` based on the specified input parameters\n `x`, `y`, and `z`.\n\n Parameters\n ----------\n x : size_t\n X position\n y : size_t\n Y position\n z : size_t\n Z position\n\n Returns\n -------\n cudaError_t.cudaSuccess\n cudaError_t.cudaSuccess\n :py:obj:`~.cudaPos`\n :py:obj:`~.cudaPos` specified by `x`, `y`, and `z`\n\n See Also\n --------\n make_cudaExtent, make_cudaPitchedPtr\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_549make_cudaPos = {"make_cudaPos", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_549make_cudaPos, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_548make_cudaPos}; static PyObject *__pyx_pw_4cuda_6cudart_549make_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x_2,&__pyx_n_s_y_2,&__pyx_n_s_z_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_x_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28824, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_y_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28824, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("make_cudaPos", 1, 3, 3, 1); __PYX_ERR(0, 28824, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_z_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28824, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("make_cudaPos", 1, 3, 3, 2); __PYX_ERR(0, 28824, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "make_cudaPos") < 0)) __PYX_ERR(0, 28824, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_x = __Pyx_PyInt_As_size_t(values[0]); if (unlikely((__pyx_v_x == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 28825, __pyx_L3_error) __pyx_v_y = __Pyx_PyInt_As_size_t(values[1]); if (unlikely((__pyx_v_y == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 28825, __pyx_L3_error) __pyx_v_z = __Pyx_PyInt_As_size_t(values[2]); if (unlikely((__pyx_v_z == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 28825, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("make_cudaPos", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 28824, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.make_cudaPos", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_548make_cudaPos(__pyx_self, __pyx_v_x, __pyx_v_y, __pyx_v_z); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_548make_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_6cudart_cudaPos *__pyx_v_wrapper = 0; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations struct cudaPos __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__629) __Pyx_RefNannySetupContext("make_cudaPos", 1); __Pyx_TraceCall("make_cudaPos", __pyx_f[0], 28824, 0, __PYX_ERR(0, 28824, __pyx_L1_error)); /* "cuda/cudart.pyx":28851 * make_cudaExtent, make_cudaPitchedPtr * """ * err = ccudart.make_cudaPos(x, y, z) # <<<<<<<<<<<<<< * cdef cudaPos wrapper = cudaPos() * wrapper._ptr[0] = err */ __pyx_t_1 = __pyx_f_4cuda_7ccudart_make_cudaPos(__pyx_v_x, __pyx_v_y, __pyx_v_z); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28851, __pyx_L1_error) __pyx_v_err = __pyx_t_1; /* "cuda/cudart.pyx":28852 * """ * err = ccudart.make_cudaPos(x, y, z) * cdef cudaPos wrapper = cudaPos() # <<<<<<<<<<<<<< * wrapper._ptr[0] = err * return wrapper */ __pyx_t_2 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaPos)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28852, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_wrapper = ((struct __pyx_obj_4cuda_6cudart_cudaPos *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":28853 * err = ccudart.make_cudaPos(x, y, z) * cdef cudaPos wrapper = cudaPos() * wrapper._ptr[0] = err # <<<<<<<<<<<<<< * return wrapper * */ (__pyx_v_wrapper->_ptr[0]) = __pyx_v_err; /* "cuda/cudart.pyx":28854 * cdef cudaPos wrapper = cudaPos() * wrapper._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/cudart.pyx":28824 * 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_AddTraceback("cuda.cudart.make_cudaPos", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_wrapper); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":28856 * 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_6cudart_551make_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_6cudart_550make_cudaExtent, "make_cudaExtent(size_t w, size_t h, size_t d)\n Returns a :py:obj:`~.cudaExtent` based on input parameters.\n\n Returns a :py:obj:`~.cudaExtent` based on the specified input\n parameters `w`, `h`, and `d`.\n\n Parameters\n ----------\n w : size_t\n Width in elements when referring to array memory, in bytes when\n referring to linear memory\n h : size_t\n Height in elements\n d : size_t\n Depth in elements\n\n Returns\n -------\n cudaError_t.cudaSuccess\n cudaError_t.cudaSuccess\n :py:obj:`~.cudaExtent`\n :py:obj:`~.cudaExtent` specified by `w`, `h`, and `d`\n\n See Also\n --------\n make_cudaPitchedPtr, make_cudaPos\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_551make_cudaExtent = {"make_cudaExtent", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_551make_cudaExtent, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_550make_cudaExtent}; static PyObject *__pyx_pw_4cuda_6cudart_551make_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_w_2,&__pyx_n_s_h,&__pyx_n_s_d,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_w_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28856, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_h)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28856, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("make_cudaExtent", 1, 3, 3, 1); __PYX_ERR(0, 28856, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_d)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28856, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("make_cudaExtent", 1, 3, 3, 2); __PYX_ERR(0, 28856, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "make_cudaExtent") < 0)) __PYX_ERR(0, 28856, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_w = __Pyx_PyInt_As_size_t(values[0]); if (unlikely((__pyx_v_w == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 28857, __pyx_L3_error) __pyx_v_h = __Pyx_PyInt_As_size_t(values[1]); if (unlikely((__pyx_v_h == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 28857, __pyx_L3_error) __pyx_v_d = __Pyx_PyInt_As_size_t(values[2]); if (unlikely((__pyx_v_d == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 28857, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("make_cudaExtent", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 28856, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.make_cudaExtent", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_550make_cudaExtent(__pyx_self, __pyx_v_w, __pyx_v_h, __pyx_v_d); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_550make_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_6cudart_cudaExtent *__pyx_v_wrapper = 0; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations struct cudaExtent __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__630) __Pyx_RefNannySetupContext("make_cudaExtent", 1); __Pyx_TraceCall("make_cudaExtent", __pyx_f[0], 28856, 0, __PYX_ERR(0, 28856, __pyx_L1_error)); /* "cuda/cudart.pyx":28884 * make_cudaPitchedPtr, make_cudaPos * """ * err = ccudart.make_cudaExtent(w, h, d) # <<<<<<<<<<<<<< * cdef cudaExtent wrapper = cudaExtent() * wrapper._ptr[0] = err */ __pyx_t_1 = __pyx_f_4cuda_7ccudart_make_cudaExtent(__pyx_v_w, __pyx_v_h, __pyx_v_d); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28884, __pyx_L1_error) __pyx_v_err = __pyx_t_1; /* "cuda/cudart.pyx":28885 * """ * err = ccudart.make_cudaExtent(w, h, d) * cdef cudaExtent wrapper = cudaExtent() # <<<<<<<<<<<<<< * wrapper._ptr[0] = err * return wrapper */ __pyx_t_2 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExtent)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28885, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_wrapper = ((struct __pyx_obj_4cuda_6cudart_cudaExtent *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":28886 * err = ccudart.make_cudaExtent(w, h, d) * cdef cudaExtent wrapper = cudaExtent() * wrapper._ptr[0] = err # <<<<<<<<<<<<<< * return wrapper * */ (__pyx_v_wrapper->_ptr[0]) = __pyx_v_err; /* "cuda/cudart.pyx":28887 * cdef cudaExtent wrapper = cudaExtent() * wrapper._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/cudart.pyx":28856 * 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_AddTraceback("cuda.cudart.make_cudaExtent", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_wrapper); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":28889 * return wrapper * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphicsEGLRegisterImage(image, unsigned int flags): * """ Registers an EGL image. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_553cudaGraphicsEGLRegisterImage(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_552cudaGraphicsEGLRegisterImage, "cudaGraphicsEGLRegisterImage(image, unsigned int flags)\n Registers an EGL image.\n\n Registers the EGLImageKHR specified by `image` for access by CUDA. A\n handle to the registered object is returned as `pCudaResource`.\n Additional Mapping/Unmapping is not required for the registered\n resource and :py:obj:`~.cudaGraphicsResourceGetMappedEglFrame` can be\n directly called on the `pCudaResource`.\n\n The application will be responsible for synchronizing access to shared\n objects. The application must ensure that any pending operation which\n access the objects have completed before passing control to CUDA. This\n may be accomplished by issuing and waiting for glFinish command on all\n GLcontexts (for OpenGL and likewise for other APIs). The application\n will be also responsible for ensuring that any pending operation on the\n registered CUDA resource has completed prior to executing subsequent\n commands in other APIs accesing the same memory objects. This can be\n accomplished by calling cuCtxSynchronize or cuEventSynchronize\n (preferably).\n\n The 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\n The EGLImageKHR is an object which can be used to create EGLImage\n target resource. It is defined as a void pointer. typedef void*\n EGLImageKHR\n\n Parameters\n ----------""\n image : :py:obj:`~.EGLImageKHR`\n An EGLImageKHR image which can be used to create target resource.\n flags : unsigned int\n Map flags\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorUnknown`\n pCudaResource : :py:obj:`~.cudaGraphicsResource`\n Pointer to the returned object handle\n\n See Also\n --------\n :py:obj:`~.cudaGraphicsUnregisterResource`, :py:obj:`~.cudaGraphicsResourceGetMappedEglFrame`, :py:obj:`~.cuGraphicsEGLRegisterImage`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_553cudaGraphicsEGLRegisterImage = {"cudaGraphicsEGLRegisterImage", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_553cudaGraphicsEGLRegisterImage, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_552cudaGraphicsEGLRegisterImage}; static PyObject *__pyx_pw_4cuda_6cudart_553cudaGraphicsEGLRegisterImage(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_image,&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_image)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28889, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28889, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphicsEGLRegisterImage", 1, 2, 2, 1); __PYX_ERR(0, 28889, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphicsEGLRegisterImage") < 0)) __PYX_ERR(0, 28889, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_image = values[0]; __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[1]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 28890, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphicsEGLRegisterImage", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 28889, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphicsEGLRegisterImage", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_552cudaGraphicsEGLRegisterImage(__pyx_self, __pyx_v_image, __pyx_v_flags); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_552cudaGraphicsEGLRegisterImage(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_image, unsigned int __pyx_v_flags) { __pyx_t_4cuda_7ccudart_EGLImageKHR __pyx_v_cimage; PyObject *__pyx_v_pimage = NULL; struct __pyx_obj_4cuda_6cudart_cudaGraphicsResource_t *__pyx_v_pCudaResource = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; cudaError_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__631) __Pyx_RefNannySetupContext("cudaGraphicsEGLRegisterImage", 1); __Pyx_TraceCall("cudaGraphicsEGLRegisterImage", __pyx_f[0], 28889, 0, __PYX_ERR(0, 28889, __pyx_L1_error)); /* "cuda/cudart.pyx":28948 * """ * cdef ccudart.EGLImageKHR cimage * if image is None: # <<<<<<<<<<<<<< * cimage = 0 * elif isinstance(image, (EGLImageKHR,)): */ __pyx_t_1 = (__pyx_v_image == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":28949 * cdef ccudart.EGLImageKHR cimage * if image is None: * cimage = 0 # <<<<<<<<<<<<<< * elif isinstance(image, (EGLImageKHR,)): * pimage = int(image) */ __pyx_v_cimage = ((__pyx_t_4cuda_7ccudart_EGLImageKHR)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":28948 * """ * cdef ccudart.EGLImageKHR cimage * if image is None: # <<<<<<<<<<<<<< * cimage = 0 * elif isinstance(image, (EGLImageKHR,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":28950 * if image is None: * cimage = 0 * elif isinstance(image, (EGLImageKHR,)): # <<<<<<<<<<<<<< * pimage = int(image) * cimage = pimage */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_image, __pyx_ptype_4cuda_6cudart_EGLImageKHR); if (__pyx_t_1) { /* "cuda/cudart.pyx":28951 * cimage = 0 * elif isinstance(image, (EGLImageKHR,)): * pimage = int(image) # <<<<<<<<<<<<<< * cimage = pimage * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_image); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28951, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_pimage = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":28952 * elif isinstance(image, (EGLImageKHR,)): * pimage = int(image) * cimage = pimage # <<<<<<<<<<<<<< * else: * pimage = int(EGLImageKHR(image)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pimage); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28952, __pyx_L1_error) __pyx_v_cimage = ((__pyx_t_4cuda_7ccudart_EGLImageKHR)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":28950 * if image is None: * cimage = 0 * elif isinstance(image, (EGLImageKHR,)): # <<<<<<<<<<<<<< * pimage = int(image) * cimage = pimage */ goto __pyx_L3; } /* "cuda/cudart.pyx":28954 * cimage = pimage * else: * pimage = int(EGLImageKHR(image)) # <<<<<<<<<<<<<< * cimage = pimage * cdef cudaGraphicsResource_t pCudaResource = cudaGraphicsResource_t() */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_EGLImageKHR), __pyx_v_image); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28954, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28954, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_pimage = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":28955 * else: * pimage = int(EGLImageKHR(image)) * cimage = pimage # <<<<<<<<<<<<<< * cdef cudaGraphicsResource_t pCudaResource = cudaGraphicsResource_t() * err = ccudart.cudaGraphicsEGLRegisterImage(pCudaResource._ptr, cimage, flags) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pimage); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28955, __pyx_L1_error) __pyx_v_cimage = ((__pyx_t_4cuda_7ccudart_EGLImageKHR)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":28956 * pimage = int(EGLImageKHR(image)) * cimage = pimage * cdef cudaGraphicsResource_t pCudaResource = cudaGraphicsResource_t() # <<<<<<<<<<<<<< * err = ccudart.cudaGraphicsEGLRegisterImage(pCudaResource._ptr, cimage, flags) * return (cudaError_t(err), pCudaResource) */ __pyx_t_4 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28956, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_pCudaResource = ((struct __pyx_obj_4cuda_6cudart_cudaGraphicsResource_t *)__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":28957 * cimage = pimage * cdef cudaGraphicsResource_t pCudaResource = cudaGraphicsResource_t() * err = ccudart.cudaGraphicsEGLRegisterImage(pCudaResource._ptr, cimage, flags) # <<<<<<<<<<<<<< * return (cudaError_t(err), pCudaResource) * */ __pyx_t_5 = __pyx_f_4cuda_7ccudart_cudaGraphicsEGLRegisterImage(__pyx_v_pCudaResource->_ptr, __pyx_v_cimage, __pyx_v_flags); if (unlikely(__pyx_t_5 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 28957, __pyx_L1_error) __pyx_v_err = __pyx_t_5; /* "cuda/cudart.pyx":28958 * cdef cudaGraphicsResource_t pCudaResource = cudaGraphicsResource_t() * err = ccudart.cudaGraphicsEGLRegisterImage(pCudaResource._ptr, cimage, flags) * return (cudaError_t(err), pCudaResource) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28958, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 28958, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28958, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28958, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 28958, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_pCudaResource); __Pyx_GIVEREF((PyObject *)__pyx_v_pCudaResource); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_pCudaResource))) __PYX_ERR(0, 28958, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":28889 * 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_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":28960 * return (cudaError_t(err), pCudaResource) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEGLStreamConsumerConnect(eglStream): * """ Connect CUDA to EGLStream as a consumer. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_555cudaEGLStreamConsumerConnect(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_554cudaEGLStreamConsumerConnect, "cudaEGLStreamConsumerConnect(eglStream)\n Connect CUDA to EGLStream as a consumer.\n\n Connect CUDA as a consumer to EGLStreamKHR specified by `eglStream`.\n\n The EGLStreamKHR is an EGL object that transfers a sequence of image\n frames from one API to another.\n\n Parameters\n ----------\n eglStream : :py:obj:`~.EGLStreamKHR`\n EGLStreamKHR handle\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorUnknown`\n conn : :py:obj:`~.cudaEglStreamConnection`\n Pointer to the returned connection handle\n\n See Also\n --------\n :py:obj:`~.cudaEGLStreamConsumerDisconnect`, :py:obj:`~.cudaEGLStreamConsumerAcquireFrame`, :py:obj:`~.cudaEGLStreamConsumerReleaseFrame`, :py:obj:`~.cuEGLStreamConsumerConnect`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_555cudaEGLStreamConsumerConnect = {"cudaEGLStreamConsumerConnect", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_555cudaEGLStreamConsumerConnect, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_554cudaEGLStreamConsumerConnect}; static PyObject *__pyx_pw_4cuda_6cudart_555cudaEGLStreamConsumerConnect(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eglStream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_eglStream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28960, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaEGLStreamConsumerConnect") < 0)) __PYX_ERR(0, 28960, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_eglStream = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaEGLStreamConsumerConnect", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 28960, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaEGLStreamConsumerConnect", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_554cudaEGLStreamConsumerConnect(__pyx_self, __pyx_v_eglStream); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_554cudaEGLStreamConsumerConnect(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_eglStream) { __pyx_t_4cuda_7ccudart_EGLStreamKHR __pyx_v_ceglStream; PyObject *__pyx_v_peglStream = NULL; struct __pyx_obj_4cuda_6cudart_cudaEglStreamConnection *__pyx_v_conn = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; cudaError_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__632) __Pyx_RefNannySetupContext("cudaEGLStreamConsumerConnect", 1); __Pyx_TraceCall("cudaEGLStreamConsumerConnect", __pyx_f[0], 28960, 0, __PYX_ERR(0, 28960, __pyx_L1_error)); /* "cuda/cudart.pyx":28986 * """ * cdef ccudart.EGLStreamKHR ceglStream * if eglStream is None: # <<<<<<<<<<<<<< * ceglStream = 0 * elif isinstance(eglStream, (EGLStreamKHR,)): */ __pyx_t_1 = (__pyx_v_eglStream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":28987 * cdef ccudart.EGLStreamKHR ceglStream * if eglStream is None: * ceglStream = 0 # <<<<<<<<<<<<<< * elif isinstance(eglStream, (EGLStreamKHR,)): * peglStream = int(eglStream) */ __pyx_v_ceglStream = ((__pyx_t_4cuda_7ccudart_EGLStreamKHR)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":28986 * """ * cdef ccudart.EGLStreamKHR ceglStream * if eglStream is None: # <<<<<<<<<<<<<< * ceglStream = 0 * elif isinstance(eglStream, (EGLStreamKHR,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":28988 * if eglStream is None: * ceglStream = 0 * elif isinstance(eglStream, (EGLStreamKHR,)): # <<<<<<<<<<<<<< * peglStream = int(eglStream) * ceglStream = peglStream */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_eglStream, __pyx_ptype_4cuda_6cudart_EGLStreamKHR); if (__pyx_t_1) { /* "cuda/cudart.pyx":28989 * ceglStream = 0 * elif isinstance(eglStream, (EGLStreamKHR,)): * peglStream = int(eglStream) # <<<<<<<<<<<<<< * ceglStream = peglStream * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_eglStream); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28989, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_peglStream = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":28990 * elif isinstance(eglStream, (EGLStreamKHR,)): * peglStream = int(eglStream) * ceglStream = peglStream # <<<<<<<<<<<<<< * else: * peglStream = int(EGLStreamKHR(eglStream)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_peglStream); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28990, __pyx_L1_error) __pyx_v_ceglStream = ((__pyx_t_4cuda_7ccudart_EGLStreamKHR)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":28988 * if eglStream is None: * ceglStream = 0 * elif isinstance(eglStream, (EGLStreamKHR,)): # <<<<<<<<<<<<<< * peglStream = int(eglStream) * ceglStream = peglStream */ goto __pyx_L3; } /* "cuda/cudart.pyx":28992 * ceglStream = peglStream * else: * peglStream = int(EGLStreamKHR(eglStream)) # <<<<<<<<<<<<<< * ceglStream = peglStream * cdef cudaEglStreamConnection conn = cudaEglStreamConnection() */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_EGLStreamKHR), __pyx_v_eglStream); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28992, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28992, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_peglStream = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":28993 * else: * peglStream = int(EGLStreamKHR(eglStream)) * ceglStream = peglStream # <<<<<<<<<<<<<< * cdef cudaEglStreamConnection conn = cudaEglStreamConnection() * err = ccudart.cudaEGLStreamConsumerConnect(conn._ptr, ceglStream) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_peglStream); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28993, __pyx_L1_error) __pyx_v_ceglStream = ((__pyx_t_4cuda_7ccudart_EGLStreamKHR)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":28994 * peglStream = int(EGLStreamKHR(eglStream)) * ceglStream = peglStream * cdef cudaEglStreamConnection conn = cudaEglStreamConnection() # <<<<<<<<<<<<<< * err = ccudart.cudaEGLStreamConsumerConnect(conn._ptr, ceglStream) * return (cudaError_t(err), conn) */ __pyx_t_4 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEglStreamConnection)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28994, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_conn = ((struct __pyx_obj_4cuda_6cudart_cudaEglStreamConnection *)__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":28995 * ceglStream = peglStream * cdef cudaEglStreamConnection conn = cudaEglStreamConnection() * err = ccudart.cudaEGLStreamConsumerConnect(conn._ptr, ceglStream) # <<<<<<<<<<<<<< * return (cudaError_t(err), conn) * */ __pyx_t_5 = __pyx_f_4cuda_7ccudart_cudaEGLStreamConsumerConnect(((__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *)__pyx_v_conn->__pyx_base._ptr), __pyx_v_ceglStream); if (unlikely(__pyx_t_5 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 28995, __pyx_L1_error) __pyx_v_err = __pyx_t_5; /* "cuda/cudart.pyx":28996 * cdef cudaEglStreamConnection conn = cudaEglStreamConnection() * err = ccudart.cudaEGLStreamConsumerConnect(conn._ptr, ceglStream) * return (cudaError_t(err), conn) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28996, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 28996, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28996, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28996, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 28996, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_conn); __Pyx_GIVEREF((PyObject *)__pyx_v_conn); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_conn))) __PYX_ERR(0, 28996, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":28960 * return (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_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":28998 * return (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_6cudart_557cudaEGLStreamConsumerConnectWithFlags(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_556cudaEGLStreamConsumerConnectWithFlags, "cudaEGLStreamConsumerConnectWithFlags(eglStream, unsigned int flags)\n Connect CUDA to EGLStream as a consumer with given flags.\n\n Connect CUDA as a consumer to EGLStreamKHR specified by `stream` with\n specified `flags` defined by :py:obj:`~.cudaEglResourceLocationFlags`.\n\n The flags specify whether the consumer wants to access frames from\n system memory or video memory. Default is\n :py:obj:`~.cudaEglResourceLocationVidmem`.\n\n Parameters\n ----------\n eglStream : :py:obj:`~.EGLStreamKHR`\n EGLStreamKHR handle\n flags : unsigned int\n Flags denote intended location - system or video.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorUnknown`\n conn : :py:obj:`~.cudaEglStreamConnection`\n Pointer to the returned connection handle\n\n See Also\n --------\n :py:obj:`~.cudaEGLStreamConsumerDisconnect`, :py:obj:`~.cudaEGLStreamConsumerAcquireFrame`, :py:obj:`~.cudaEGLStreamConsumerReleaseFrame`, :py:obj:`~.cuEGLStreamConsumerConnectWithFlags`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_557cudaEGLStreamConsumerConnectWithFlags = {"cudaEGLStreamConsumerConnectWithFlags", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_557cudaEGLStreamConsumerConnectWithFlags, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_556cudaEGLStreamConsumerConnectWithFlags}; static PyObject *__pyx_pw_4cuda_6cudart_557cudaEGLStreamConsumerConnectWithFlags(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eglStream,&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_eglStream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28998, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28998, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaEGLStreamConsumerConnectWithFlags", 1, 2, 2, 1); __PYX_ERR(0, 28998, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaEGLStreamConsumerConnectWithFlags") < 0)) __PYX_ERR(0, 28998, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_eglStream = values[0]; __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[1]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 28999, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaEGLStreamConsumerConnectWithFlags", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 28998, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaEGLStreamConsumerConnectWithFlags", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_556cudaEGLStreamConsumerConnectWithFlags(__pyx_self, __pyx_v_eglStream, __pyx_v_flags); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_556cudaEGLStreamConsumerConnectWithFlags(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_eglStream, unsigned int __pyx_v_flags) { __pyx_t_4cuda_7ccudart_EGLStreamKHR __pyx_v_ceglStream; PyObject *__pyx_v_peglStream = NULL; struct __pyx_obj_4cuda_6cudart_cudaEglStreamConnection *__pyx_v_conn = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; cudaError_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__633) __Pyx_RefNannySetupContext("cudaEGLStreamConsumerConnectWithFlags", 1); __Pyx_TraceCall("cudaEGLStreamConsumerConnectWithFlags", __pyx_f[0], 28998, 0, __PYX_ERR(0, 28998, __pyx_L1_error)); /* "cuda/cudart.pyx":29028 * """ * cdef ccudart.EGLStreamKHR ceglStream * if eglStream is None: # <<<<<<<<<<<<<< * ceglStream = 0 * elif isinstance(eglStream, (EGLStreamKHR,)): */ __pyx_t_1 = (__pyx_v_eglStream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":29029 * cdef ccudart.EGLStreamKHR ceglStream * if eglStream is None: * ceglStream = 0 # <<<<<<<<<<<<<< * elif isinstance(eglStream, (EGLStreamKHR,)): * peglStream = int(eglStream) */ __pyx_v_ceglStream = ((__pyx_t_4cuda_7ccudart_EGLStreamKHR)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":29028 * """ * cdef ccudart.EGLStreamKHR ceglStream * if eglStream is None: # <<<<<<<<<<<<<< * ceglStream = 0 * elif isinstance(eglStream, (EGLStreamKHR,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":29030 * if eglStream is None: * ceglStream = 0 * elif isinstance(eglStream, (EGLStreamKHR,)): # <<<<<<<<<<<<<< * peglStream = int(eglStream) * ceglStream = peglStream */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_eglStream, __pyx_ptype_4cuda_6cudart_EGLStreamKHR); if (__pyx_t_1) { /* "cuda/cudart.pyx":29031 * ceglStream = 0 * elif isinstance(eglStream, (EGLStreamKHR,)): * peglStream = int(eglStream) # <<<<<<<<<<<<<< * ceglStream = peglStream * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_eglStream); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29031, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_peglStream = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":29032 * elif isinstance(eglStream, (EGLStreamKHR,)): * peglStream = int(eglStream) * ceglStream = peglStream # <<<<<<<<<<<<<< * else: * peglStream = int(EGLStreamKHR(eglStream)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_peglStream); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29032, __pyx_L1_error) __pyx_v_ceglStream = ((__pyx_t_4cuda_7ccudart_EGLStreamKHR)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":29030 * if eglStream is None: * ceglStream = 0 * elif isinstance(eglStream, (EGLStreamKHR,)): # <<<<<<<<<<<<<< * peglStream = int(eglStream) * ceglStream = peglStream */ goto __pyx_L3; } /* "cuda/cudart.pyx":29034 * ceglStream = peglStream * else: * peglStream = int(EGLStreamKHR(eglStream)) # <<<<<<<<<<<<<< * ceglStream = peglStream * cdef cudaEglStreamConnection conn = cudaEglStreamConnection() */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_EGLStreamKHR), __pyx_v_eglStream); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29034, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29034, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_peglStream = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":29035 * else: * peglStream = int(EGLStreamKHR(eglStream)) * ceglStream = peglStream # <<<<<<<<<<<<<< * cdef cudaEglStreamConnection conn = cudaEglStreamConnection() * err = ccudart.cudaEGLStreamConsumerConnectWithFlags(conn._ptr, ceglStream, flags) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_peglStream); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29035, __pyx_L1_error) __pyx_v_ceglStream = ((__pyx_t_4cuda_7ccudart_EGLStreamKHR)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":29036 * peglStream = int(EGLStreamKHR(eglStream)) * ceglStream = peglStream * cdef cudaEglStreamConnection conn = cudaEglStreamConnection() # <<<<<<<<<<<<<< * err = ccudart.cudaEGLStreamConsumerConnectWithFlags(conn._ptr, ceglStream, flags) * return (cudaError_t(err), conn) */ __pyx_t_4 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEglStreamConnection)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29036, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_conn = ((struct __pyx_obj_4cuda_6cudart_cudaEglStreamConnection *)__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":29037 * ceglStream = peglStream * cdef cudaEglStreamConnection conn = cudaEglStreamConnection() * err = ccudart.cudaEGLStreamConsumerConnectWithFlags(conn._ptr, ceglStream, flags) # <<<<<<<<<<<<<< * return (cudaError_t(err), conn) * */ __pyx_t_5 = __pyx_f_4cuda_7ccudart_cudaEGLStreamConsumerConnectWithFlags(((__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *)__pyx_v_conn->__pyx_base._ptr), __pyx_v_ceglStream, __pyx_v_flags); if (unlikely(__pyx_t_5 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 29037, __pyx_L1_error) __pyx_v_err = __pyx_t_5; /* "cuda/cudart.pyx":29038 * cdef cudaEglStreamConnection conn = cudaEglStreamConnection() * err = ccudart.cudaEGLStreamConsumerConnectWithFlags(conn._ptr, ceglStream, flags) * return (cudaError_t(err), conn) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29038, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 29038, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29038, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29038, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 29038, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_conn); __Pyx_GIVEREF((PyObject *)__pyx_v_conn); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_conn))) __PYX_ERR(0, 29038, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":28998 * return (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_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":29040 * return (cudaError_t(err), conn) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEGLStreamConsumerDisconnect(conn): * """ Disconnect CUDA as a consumer to EGLStream . */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_559cudaEGLStreamConsumerDisconnect(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_558cudaEGLStreamConsumerDisconnect, "cudaEGLStreamConsumerDisconnect(conn)\n Disconnect CUDA as a consumer to EGLStream .\n\n Disconnect CUDA as a consumer to EGLStreamKHR.\n\n Parameters\n ----------\n conn : :py:obj:`~.cudaEglStreamConnection`\n Conection to disconnect.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorUnknown`\n\n See Also\n --------\n :py:obj:`~.cudaEGLStreamConsumerConnect`, :py:obj:`~.cudaEGLStreamConsumerAcquireFrame`, :py:obj:`~.cudaEGLStreamConsumerReleaseFrame`, :py:obj:`~.cuEGLStreamConsumerDisconnect`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_559cudaEGLStreamConsumerDisconnect = {"cudaEGLStreamConsumerDisconnect", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_559cudaEGLStreamConsumerDisconnect, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_558cudaEGLStreamConsumerDisconnect}; static PyObject *__pyx_pw_4cuda_6cudart_559cudaEGLStreamConsumerDisconnect(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_conn,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_conn)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29040, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaEGLStreamConsumerDisconnect") < 0)) __PYX_ERR(0, 29040, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_conn = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaEGLStreamConsumerDisconnect", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 29040, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaEGLStreamConsumerDisconnect", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_558cudaEGLStreamConsumerDisconnect(__pyx_self, __pyx_v_conn); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_558cudaEGLStreamConsumerDisconnect(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_conn) { __pyx_t_4cuda_7ccudart_cudaEglStreamConnection *__pyx_v_cconn; PyObject *__pyx_v_pconn = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; unsigned int __pyx_t_6; __pyx_t_4cuda_6cudart_void_ptr __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_TraceFrameInit(__pyx_codeobj__634) __Pyx_RefNannySetupContext("cudaEGLStreamConsumerDisconnect", 1); __Pyx_TraceCall("cudaEGLStreamConsumerDisconnect", __pyx_f[0], 29040, 0, __PYX_ERR(0, 29040, __pyx_L1_error)); /* "cuda/cudart.pyx":29061 * """ * cdef ccudart.cudaEglStreamConnection *cconn * if conn is None: # <<<<<<<<<<<<<< * cconn = NULL * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): */ __pyx_t_1 = (__pyx_v_conn == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":29062 * cdef ccudart.cudaEglStreamConnection *cconn * if conn is None: * cconn = NULL # <<<<<<<<<<<<<< * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): * pconn = conn.getPtr() */ __pyx_v_cconn = ((__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *)((__pyx_t_4cuda_6cudart_void_ptr)NULL)); /* "cuda/cudart.pyx":29061 * """ * cdef ccudart.cudaEglStreamConnection *cconn * if conn is None: # <<<<<<<<<<<<<< * cconn = NULL * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":29063 * if conn is None: * cconn = NULL * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): # <<<<<<<<<<<<<< * pconn = conn.getPtr() * cconn = pconn */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_conn, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUeglStreamConnection); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":29064 * cconn = NULL * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): * pconn = conn.getPtr() # <<<<<<<<<<<<<< * cconn = pconn * elif isinstance(conn, (int)): */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_conn, __pyx_n_s_getPtr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29064, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29064, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_v_pconn = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":29065 * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): * pconn = conn.getPtr() * cconn = pconn # <<<<<<<<<<<<<< * elif isinstance(conn, (int)): * cconn = conn */ __pyx_t_7 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pconn); if (unlikely((__pyx_t_7 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29065, __pyx_L1_error) __pyx_v_cconn = ((__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_7)); /* "cuda/cudart.pyx":29063 * if conn is None: * cconn = NULL * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): # <<<<<<<<<<<<<< * pconn = conn.getPtr() * cconn = pconn */ goto __pyx_L3; } /* "cuda/cudart.pyx":29066 * pconn = conn.getPtr() * cconn = pconn * elif isinstance(conn, (int)): # <<<<<<<<<<<<<< * cconn = conn * else: */ __pyx_t_1 = PyInt_Check(__pyx_v_conn); if (likely(__pyx_t_1)) { /* "cuda/cudart.pyx":29067 * cconn = pconn * elif isinstance(conn, (int)): * cconn = conn # <<<<<<<<<<<<<< * else: * raise TypeError("Argument 'conn' is not instance of type (expected , found " + str(type(conn))) */ __pyx_t_7 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_conn); if (unlikely((__pyx_t_7 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29067, __pyx_L1_error) __pyx_v_cconn = ((__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_7)); /* "cuda/cudart.pyx":29066 * pconn = conn.getPtr() * cconn = pconn * elif isinstance(conn, (int)): # <<<<<<<<<<<<<< * cconn = conn * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":29069 * cconn = conn * else: * raise TypeError("Argument 'conn' is not instance of type (expected , found " + str(type(conn))) # <<<<<<<<<<<<<< * err = ccudart.cudaEGLStreamConsumerDisconnect(cconn) * return (cudaError_t(err),) */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_conn))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29069, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Argument_conn_is_not_instance_of, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29069, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29069, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 29069, __pyx_L1_error) } __pyx_L3:; /* "cuda/cudart.pyx":29070 * else: * raise TypeError("Argument 'conn' is not instance of type (expected , found " + str(type(conn))) * err = ccudart.cudaEGLStreamConsumerDisconnect(cconn) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_8 = __pyx_f_4cuda_7ccudart_cudaEGLStreamConsumerDisconnect(__pyx_v_cconn); if (unlikely(__pyx_t_8 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 29070, __pyx_L1_error) __pyx_v_err = __pyx_t_8; /* "cuda/cudart.pyx":29071 * raise TypeError("Argument 'conn' is not instance of type (expected , found " + str(type(conn))) * err = ccudart.cudaEGLStreamConsumerDisconnect(cconn) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29071, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 29071, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_9 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_5}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29071, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29071, __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)) __PYX_ERR(0, 29071, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":29040 * return (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_5); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.cudaEGLStreamConsumerDisconnect", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pconn); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":29073 * return (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_6cudart_561cudaEGLStreamConsumerAcquireFrame(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_560cudaEGLStreamConsumerAcquireFrame, "cudaEGLStreamConsumerAcquireFrame(conn, pCudaResource, pStream, unsigned int timeout)\n Acquire an image frame from the EGLStream with CUDA as a consumer.\n\n Acquire an image frame from EGLStreamKHR.\n :py:obj:`~.cudaGraphicsResourceGetMappedEglFrame` can be called on\n `pCudaResource` to get :py:obj:`~.cudaEglFrame`.\n\n Parameters\n ----------\n conn : :py:obj:`~.cudaEglStreamConnection`\n Connection on which to acquire\n pCudaResource : :py:obj:`~.cudaGraphicsResource_t`\n CUDA resource on which the EGLStream frame will be mapped for use.\n pStream : :py:obj:`~.cudaStream_t`\n CUDA stream for synchronization and any data migrations implied by\n :py:obj:`~.cudaEglResourceLocationFlags`.\n timeout : unsigned int\n Desired timeout in usec.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorUnknown`, :py:obj:`~.cudaErrorLaunchTimeout`\n\n See Also\n --------\n :py:obj:`~.cudaEGLStreamConsumerConnect`, :py:obj:`~.cudaEGLStreamConsumerDisconnect`, :py:obj:`~.cudaEGLStreamConsumerReleaseFrame`, :py:obj:`~.cuEGLStreamConsumerAcquireFrame`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_561cudaEGLStreamConsumerAcquireFrame = {"cudaEGLStreamConsumerAcquireFrame", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_561cudaEGLStreamConsumerAcquireFrame, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_560cudaEGLStreamConsumerAcquireFrame}; static PyObject *__pyx_pw_4cuda_6cudart_561cudaEGLStreamConsumerAcquireFrame(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_conn,&__pyx_n_s_pCudaResource,&__pyx_n_s_pStream,&__pyx_n_s_timeout,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 4: values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_conn)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29073, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pCudaResource)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29073, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaEGLStreamConsumerAcquireFrame", 1, 4, 4, 1); __PYX_ERR(0, 29073, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pStream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29073, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaEGLStreamConsumerAcquireFrame", 1, 4, 4, 2); __PYX_ERR(0, 29073, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_timeout)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[3]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29073, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaEGLStreamConsumerAcquireFrame", 1, 4, 4, 3); __PYX_ERR(0, 29073, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaEGLStreamConsumerAcquireFrame") < 0)) __PYX_ERR(0, 29073, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 4)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); values[3] = __Pyx_Arg_FASTCALL(__pyx_args, 3); } __pyx_v_conn = values[0]; __pyx_v_pCudaResource = values[1]; __pyx_v_pStream = values[2]; __pyx_v_timeout = __Pyx_PyInt_As_unsigned_int(values[3]); if (unlikely((__pyx_v_timeout == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 29074, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaEGLStreamConsumerAcquireFrame", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 29073, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaEGLStreamConsumerAcquireFrame", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_560cudaEGLStreamConsumerAcquireFrame(__pyx_self, __pyx_v_conn, __pyx_v_pCudaResource, __pyx_v_pStream, __pyx_v_timeout); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_560cudaEGLStreamConsumerAcquireFrame(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_cpStream; PyObject *__pyx_v_ppStream = NULL; cudaGraphicsResource_t *__pyx_v_cpCudaResource; PyObject *__pyx_v_ppCudaResource = NULL; __pyx_t_4cuda_7ccudart_cudaEglStreamConnection *__pyx_v_cconn; PyObject *__pyx_v_pconn = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; unsigned int __pyx_t_6; __pyx_t_4cuda_6cudart_void_ptr __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_TraceFrameInit(__pyx_codeobj__635) __Pyx_RefNannySetupContext("cudaEGLStreamConsumerAcquireFrame", 1); __Pyx_TraceCall("cudaEGLStreamConsumerAcquireFrame", __pyx_f[0], 29073, 0, __PYX_ERR(0, 29073, __pyx_L1_error)); /* "cuda/cudart.pyx":29103 * """ * cdef ccudart.cudaStream_t *cpStream * if pStream is None: # <<<<<<<<<<<<<< * cpStream = NULL * elif isinstance(pStream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_pStream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":29104 * cdef ccudart.cudaStream_t *cpStream * if pStream is None: * cpStream = NULL # <<<<<<<<<<<<<< * elif isinstance(pStream, (cudaStream_t,cuda.CUstream)): * ppStream = pStream.getPtr() */ __pyx_v_cpStream = ((cudaStream_t *)((__pyx_t_4cuda_6cudart_void_ptr)NULL)); /* "cuda/cudart.pyx":29103 * """ * cdef ccudart.cudaStream_t *cpStream * if pStream is None: # <<<<<<<<<<<<<< * cpStream = NULL * elif isinstance(pStream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":29105 * if pStream is None: * cpStream = NULL * elif isinstance(pStream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * ppStream = pStream.getPtr() * cpStream = ppStream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_pStream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":29106 * cpStream = NULL * elif isinstance(pStream, (cudaStream_t,cuda.CUstream)): * ppStream = pStream.getPtr() # <<<<<<<<<<<<<< * cpStream = ppStream * elif isinstance(pStream, (int)): */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_pStream, __pyx_n_s_getPtr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29106, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29106, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_v_ppStream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":29107 * elif isinstance(pStream, (cudaStream_t,cuda.CUstream)): * ppStream = pStream.getPtr() * cpStream = ppStream # <<<<<<<<<<<<<< * elif isinstance(pStream, (int)): * cpStream = pStream */ __pyx_t_7 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_ppStream); if (unlikely((__pyx_t_7 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29107, __pyx_L1_error) __pyx_v_cpStream = ((cudaStream_t *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_7)); /* "cuda/cudart.pyx":29105 * if pStream is None: * cpStream = NULL * elif isinstance(pStream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * ppStream = pStream.getPtr() * cpStream = ppStream */ goto __pyx_L3; } /* "cuda/cudart.pyx":29108 * ppStream = pStream.getPtr() * cpStream = ppStream * elif isinstance(pStream, (int)): # <<<<<<<<<<<<<< * cpStream = pStream * else: */ __pyx_t_1 = PyInt_Check(__pyx_v_pStream); if (likely(__pyx_t_1)) { /* "cuda/cudart.pyx":29109 * cpStream = ppStream * elif isinstance(pStream, (int)): * cpStream = pStream # <<<<<<<<<<<<<< * else: * raise TypeError("Argument 'pStream' is not instance of type (expected , found " + str(type(pStream))) */ __pyx_t_7 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pStream); if (unlikely((__pyx_t_7 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29109, __pyx_L1_error) __pyx_v_cpStream = ((cudaStream_t *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_7)); /* "cuda/cudart.pyx":29108 * ppStream = pStream.getPtr() * cpStream = ppStream * elif isinstance(pStream, (int)): # <<<<<<<<<<<<<< * cpStream = pStream * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":29111 * cpStream = pStream * else: * raise TypeError("Argument 'pStream' is not instance of type (expected , found " + str(type(pStream))) # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphicsResource_t *cpCudaResource * if pCudaResource is None: */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_pStream))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29111, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Argument_pStream_is_not_instance, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29111, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29111, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 29111, __pyx_L1_error) } __pyx_L3:; /* "cuda/cudart.pyx":29113 * raise TypeError("Argument 'pStream' is not instance of type (expected , found " + str(type(pStream))) * cdef ccudart.cudaGraphicsResource_t *cpCudaResource * if pCudaResource is None: # <<<<<<<<<<<<<< * cpCudaResource = NULL * elif isinstance(pCudaResource, (cudaGraphicsResource_t,)): */ __pyx_t_1 = (__pyx_v_pCudaResource == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":29114 * cdef ccudart.cudaGraphicsResource_t *cpCudaResource * if pCudaResource is None: * cpCudaResource = NULL # <<<<<<<<<<<<<< * elif isinstance(pCudaResource, (cudaGraphicsResource_t,)): * ppCudaResource = pCudaResource.getPtr() */ __pyx_v_cpCudaResource = ((cudaGraphicsResource_t *)((__pyx_t_4cuda_6cudart_void_ptr)NULL)); /* "cuda/cudart.pyx":29113 * raise TypeError("Argument 'pStream' is not instance of type (expected , found " + str(type(pStream))) * cdef ccudart.cudaGraphicsResource_t *cpCudaResource * if pCudaResource is None: # <<<<<<<<<<<<<< * cpCudaResource = NULL * elif isinstance(pCudaResource, (cudaGraphicsResource_t,)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":29115 * if pCudaResource is None: * cpCudaResource = NULL * elif isinstance(pCudaResource, (cudaGraphicsResource_t,)): # <<<<<<<<<<<<<< * ppCudaResource = pCudaResource.getPtr() * cpCudaResource = ppCudaResource */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_pCudaResource, __pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":29116 * cpCudaResource = NULL * elif isinstance(pCudaResource, (cudaGraphicsResource_t,)): * ppCudaResource = pCudaResource.getPtr() # <<<<<<<<<<<<<< * cpCudaResource = ppCudaResource * elif isinstance(pCudaResource, (int)): */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_pCudaResource, __pyx_n_s_getPtr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29116, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29116, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_v_ppCudaResource = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":29117 * elif isinstance(pCudaResource, (cudaGraphicsResource_t,)): * ppCudaResource = pCudaResource.getPtr() * cpCudaResource = ppCudaResource # <<<<<<<<<<<<<< * elif isinstance(pCudaResource, (int)): * cpCudaResource = pCudaResource */ __pyx_t_7 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_ppCudaResource); if (unlikely((__pyx_t_7 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29117, __pyx_L1_error) __pyx_v_cpCudaResource = ((cudaGraphicsResource_t *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_7)); /* "cuda/cudart.pyx":29115 * if pCudaResource is None: * cpCudaResource = NULL * elif isinstance(pCudaResource, (cudaGraphicsResource_t,)): # <<<<<<<<<<<<<< * ppCudaResource = pCudaResource.getPtr() * cpCudaResource = ppCudaResource */ goto __pyx_L6; } /* "cuda/cudart.pyx":29118 * ppCudaResource = pCudaResource.getPtr() * cpCudaResource = ppCudaResource * elif isinstance(pCudaResource, (int)): # <<<<<<<<<<<<<< * cpCudaResource = pCudaResource * else: */ __pyx_t_1 = PyInt_Check(__pyx_v_pCudaResource); if (likely(__pyx_t_1)) { /* "cuda/cudart.pyx":29119 * cpCudaResource = ppCudaResource * elif isinstance(pCudaResource, (int)): * cpCudaResource = pCudaResource # <<<<<<<<<<<<<< * else: * raise TypeError("Argument 'pCudaResource' is not instance of type (expected , found " + str(type(pCudaResource))) */ __pyx_t_7 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pCudaResource); if (unlikely((__pyx_t_7 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29119, __pyx_L1_error) __pyx_v_cpCudaResource = ((cudaGraphicsResource_t *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_7)); /* "cuda/cudart.pyx":29118 * ppCudaResource = pCudaResource.getPtr() * cpCudaResource = ppCudaResource * elif isinstance(pCudaResource, (int)): # <<<<<<<<<<<<<< * cpCudaResource = pCudaResource * else: */ goto __pyx_L6; } /* "cuda/cudart.pyx":29121 * cpCudaResource = pCudaResource * else: * raise TypeError("Argument 'pCudaResource' is not instance of type (expected , found " + str(type(pCudaResource))) # <<<<<<<<<<<<<< * cdef ccudart.cudaEglStreamConnection *cconn * if conn is None: */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_pCudaResource))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29121, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Argument_pCudaResource_is_not_in, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29121, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29121, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 29121, __pyx_L1_error) } __pyx_L6:; /* "cuda/cudart.pyx":29123 * raise TypeError("Argument 'pCudaResource' is not instance of type (expected , found " + str(type(pCudaResource))) * cdef ccudart.cudaEglStreamConnection *cconn * if conn is None: # <<<<<<<<<<<<<< * cconn = NULL * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): */ __pyx_t_1 = (__pyx_v_conn == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":29124 * cdef ccudart.cudaEglStreamConnection *cconn * if conn is None: * cconn = NULL # <<<<<<<<<<<<<< * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): * pconn = conn.getPtr() */ __pyx_v_cconn = ((__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *)((__pyx_t_4cuda_6cudart_void_ptr)NULL)); /* "cuda/cudart.pyx":29123 * raise TypeError("Argument 'pCudaResource' is not instance of type (expected , found " + str(type(pCudaResource))) * cdef ccudart.cudaEglStreamConnection *cconn * if conn is None: # <<<<<<<<<<<<<< * cconn = NULL * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): */ goto __pyx_L7; } /* "cuda/cudart.pyx":29125 * if conn is None: * cconn = NULL * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): # <<<<<<<<<<<<<< * pconn = conn.getPtr() * cconn = pconn */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_conn, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUeglStreamConnection); __pyx_t_1 = __pyx_t_2; __pyx_L8_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":29126 * cconn = NULL * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): * pconn = conn.getPtr() # <<<<<<<<<<<<<< * cconn = pconn * elif isinstance(conn, (int)): */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_conn, __pyx_n_s_getPtr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29126, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29126, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_v_pconn = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":29127 * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): * pconn = conn.getPtr() * cconn = pconn # <<<<<<<<<<<<<< * elif isinstance(conn, (int)): * cconn = conn */ __pyx_t_7 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pconn); if (unlikely((__pyx_t_7 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29127, __pyx_L1_error) __pyx_v_cconn = ((__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_7)); /* "cuda/cudart.pyx":29125 * if conn is None: * cconn = NULL * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): # <<<<<<<<<<<<<< * pconn = conn.getPtr() * cconn = pconn */ goto __pyx_L7; } /* "cuda/cudart.pyx":29128 * pconn = conn.getPtr() * cconn = pconn * elif isinstance(conn, (int)): # <<<<<<<<<<<<<< * cconn = conn * else: */ __pyx_t_1 = PyInt_Check(__pyx_v_conn); if (likely(__pyx_t_1)) { /* "cuda/cudart.pyx":29129 * cconn = pconn * elif isinstance(conn, (int)): * cconn = conn # <<<<<<<<<<<<<< * else: * raise TypeError("Argument 'conn' is not instance of type (expected , found " + str(type(conn))) */ __pyx_t_7 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_conn); if (unlikely((__pyx_t_7 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29129, __pyx_L1_error) __pyx_v_cconn = ((__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_7)); /* "cuda/cudart.pyx":29128 * pconn = conn.getPtr() * cconn = pconn * elif isinstance(conn, (int)): # <<<<<<<<<<<<<< * cconn = conn * else: */ goto __pyx_L7; } /* "cuda/cudart.pyx":29131 * cconn = conn * else: * raise TypeError("Argument 'conn' is not instance of type (expected , found " + str(type(conn))) # <<<<<<<<<<<<<< * err = ccudart.cudaEGLStreamConsumerAcquireFrame(cconn, cpCudaResource, cpStream, timeout) * return (cudaError_t(err),) */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_conn))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Argument_conn_is_not_instance_of, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 29131, __pyx_L1_error) } __pyx_L7:; /* "cuda/cudart.pyx":29132 * else: * raise TypeError("Argument 'conn' is not instance of type (expected , found " + str(type(conn))) * err = ccudart.cudaEGLStreamConsumerAcquireFrame(cconn, cpCudaResource, cpStream, timeout) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_8 = __pyx_f_4cuda_7ccudart_cudaEGLStreamConsumerAcquireFrame(__pyx_v_cconn, __pyx_v_cpCudaResource, __pyx_v_cpStream, __pyx_v_timeout); if (unlikely(__pyx_t_8 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 29132, __pyx_L1_error) __pyx_v_err = __pyx_t_8; /* "cuda/cudart.pyx":29133 * raise TypeError("Argument 'conn' is not instance of type (expected , found " + str(type(conn))) * err = ccudart.cudaEGLStreamConsumerAcquireFrame(cconn, cpCudaResource, cpStream, timeout) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 29133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_9 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_5}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29133, __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)) __PYX_ERR(0, 29133, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":29073 * return (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_5); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":29135 * return (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_6cudart_563cudaEGLStreamConsumerReleaseFrame(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_562cudaEGLStreamConsumerReleaseFrame, "cudaEGLStreamConsumerReleaseFrame(conn, pCudaResource, pStream)\n Releases the last frame acquired from the EGLStream.\n\n Release the acquired image frame specified by `pCudaResource` to\n EGLStreamKHR.\n\n Parameters\n ----------\n conn : :py:obj:`~.cudaEglStreamConnection`\n Connection on which to release\n pCudaResource : :py:obj:`~.cudaGraphicsResource_t`\n CUDA resource whose corresponding frame is to be released\n pStream : :py:obj:`~.cudaStream_t`\n CUDA stream on which release will be done.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorUnknown`\n\n See Also\n --------\n :py:obj:`~.cudaEGLStreamConsumerConnect`, :py:obj:`~.cudaEGLStreamConsumerDisconnect`, :py:obj:`~.cudaEGLStreamConsumerAcquireFrame`, :py:obj:`~.cuEGLStreamConsumerReleaseFrame`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_563cudaEGLStreamConsumerReleaseFrame = {"cudaEGLStreamConsumerReleaseFrame", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_563cudaEGLStreamConsumerReleaseFrame, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_562cudaEGLStreamConsumerReleaseFrame}; static PyObject *__pyx_pw_4cuda_6cudart_563cudaEGLStreamConsumerReleaseFrame(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_conn,&__pyx_n_s_pCudaResource,&__pyx_n_s_pStream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_conn)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29135, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pCudaResource)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29135, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaEGLStreamConsumerReleaseFrame", 1, 3, 3, 1); __PYX_ERR(0, 29135, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pStream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29135, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaEGLStreamConsumerReleaseFrame", 1, 3, 3, 2); __PYX_ERR(0, 29135, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaEGLStreamConsumerReleaseFrame") < 0)) __PYX_ERR(0, 29135, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __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, 29135, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaEGLStreamConsumerReleaseFrame", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_562cudaEGLStreamConsumerReleaseFrame(__pyx_self, __pyx_v_conn, __pyx_v_pCudaResource, __pyx_v_pStream); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_562cudaEGLStreamConsumerReleaseFrame(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_conn, PyObject *__pyx_v_pCudaResource, PyObject *__pyx_v_pStream) { cudaStream_t *__pyx_v_cpStream; PyObject *__pyx_v_ppStream = NULL; cudaGraphicsResource_t __pyx_v_cpCudaResource; PyObject *__pyx_v_ppCudaResource = NULL; __pyx_t_4cuda_7ccudart_cudaEglStreamConnection *__pyx_v_cconn; PyObject *__pyx_v_pconn = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; unsigned int __pyx_t_6; __pyx_t_4cuda_6cudart_void_ptr __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_TraceFrameInit(__pyx_codeobj__636) __Pyx_RefNannySetupContext("cudaEGLStreamConsumerReleaseFrame", 1); __Pyx_TraceCall("cudaEGLStreamConsumerReleaseFrame", __pyx_f[0], 29135, 0, __PYX_ERR(0, 29135, __pyx_L1_error)); /* "cuda/cudart.pyx":29161 * """ * cdef ccudart.cudaStream_t *cpStream * if pStream is None: # <<<<<<<<<<<<<< * cpStream = NULL * elif isinstance(pStream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_pStream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":29162 * cdef ccudart.cudaStream_t *cpStream * if pStream is None: * cpStream = NULL # <<<<<<<<<<<<<< * elif isinstance(pStream, (cudaStream_t,cuda.CUstream)): * ppStream = pStream.getPtr() */ __pyx_v_cpStream = ((cudaStream_t *)((__pyx_t_4cuda_6cudart_void_ptr)NULL)); /* "cuda/cudart.pyx":29161 * """ * cdef ccudart.cudaStream_t *cpStream * if pStream is None: # <<<<<<<<<<<<<< * cpStream = NULL * elif isinstance(pStream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":29163 * if pStream is None: * cpStream = NULL * elif isinstance(pStream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * ppStream = pStream.getPtr() * cpStream = ppStream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_pStream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":29164 * cpStream = NULL * elif isinstance(pStream, (cudaStream_t,cuda.CUstream)): * ppStream = pStream.getPtr() # <<<<<<<<<<<<<< * cpStream = ppStream * elif isinstance(pStream, (int)): */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_pStream, __pyx_n_s_getPtr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29164, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29164, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_v_ppStream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":29165 * elif isinstance(pStream, (cudaStream_t,cuda.CUstream)): * ppStream = pStream.getPtr() * cpStream = ppStream # <<<<<<<<<<<<<< * elif isinstance(pStream, (int)): * cpStream = pStream */ __pyx_t_7 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_ppStream); if (unlikely((__pyx_t_7 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29165, __pyx_L1_error) __pyx_v_cpStream = ((cudaStream_t *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_7)); /* "cuda/cudart.pyx":29163 * if pStream is None: * cpStream = NULL * elif isinstance(pStream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * ppStream = pStream.getPtr() * cpStream = ppStream */ goto __pyx_L3; } /* "cuda/cudart.pyx":29166 * ppStream = pStream.getPtr() * cpStream = ppStream * elif isinstance(pStream, (int)): # <<<<<<<<<<<<<< * cpStream = pStream * else: */ __pyx_t_1 = PyInt_Check(__pyx_v_pStream); if (likely(__pyx_t_1)) { /* "cuda/cudart.pyx":29167 * cpStream = ppStream * elif isinstance(pStream, (int)): * cpStream = pStream # <<<<<<<<<<<<<< * else: * raise TypeError("Argument 'pStream' is not instance of type (expected , found " + str(type(pStream))) */ __pyx_t_7 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pStream); if (unlikely((__pyx_t_7 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29167, __pyx_L1_error) __pyx_v_cpStream = ((cudaStream_t *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_7)); /* "cuda/cudart.pyx":29166 * ppStream = pStream.getPtr() * cpStream = ppStream * elif isinstance(pStream, (int)): # <<<<<<<<<<<<<< * cpStream = pStream * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":29169 * cpStream = pStream * else: * raise TypeError("Argument 'pStream' is not instance of type (expected , found " + str(type(pStream))) # <<<<<<<<<<<<<< * cdef ccudart.cudaGraphicsResource_t cpCudaResource * if pCudaResource is None: */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_pStream))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29169, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Argument_pStream_is_not_instance, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29169, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29169, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 29169, __pyx_L1_error) } __pyx_L3:; /* "cuda/cudart.pyx":29171 * raise TypeError("Argument 'pStream' is not instance of type (expected , found " + str(type(pStream))) * cdef ccudart.cudaGraphicsResource_t cpCudaResource * if pCudaResource is None: # <<<<<<<<<<<<<< * cpCudaResource = 0 * elif isinstance(pCudaResource, (cudaGraphicsResource_t,)): */ __pyx_t_1 = (__pyx_v_pCudaResource == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":29172 * cdef ccudart.cudaGraphicsResource_t cpCudaResource * if pCudaResource is None: * cpCudaResource = 0 # <<<<<<<<<<<<<< * elif isinstance(pCudaResource, (cudaGraphicsResource_t,)): * ppCudaResource = int(pCudaResource) */ __pyx_v_cpCudaResource = ((cudaGraphicsResource_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":29171 * raise TypeError("Argument 'pStream' is not instance of type (expected , found " + str(type(pStream))) * cdef ccudart.cudaGraphicsResource_t cpCudaResource * if pCudaResource is None: # <<<<<<<<<<<<<< * cpCudaResource = 0 * elif isinstance(pCudaResource, (cudaGraphicsResource_t,)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":29173 * if pCudaResource is None: * cpCudaResource = 0 * elif isinstance(pCudaResource, (cudaGraphicsResource_t,)): # <<<<<<<<<<<<<< * ppCudaResource = int(pCudaResource) * cpCudaResource = ppCudaResource */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_pCudaResource, __pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":29174 * cpCudaResource = 0 * elif isinstance(pCudaResource, (cudaGraphicsResource_t,)): * ppCudaResource = int(pCudaResource) # <<<<<<<<<<<<<< * cpCudaResource = ppCudaResource * else: */ __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_pCudaResource); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29174, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_ppCudaResource = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":29175 * elif isinstance(pCudaResource, (cudaGraphicsResource_t,)): * ppCudaResource = int(pCudaResource) * cpCudaResource = ppCudaResource # <<<<<<<<<<<<<< * else: * ppCudaResource = int(cudaGraphicsResource_t(pCudaResource)) */ __pyx_t_7 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_ppCudaResource); if (unlikely((__pyx_t_7 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29175, __pyx_L1_error) __pyx_v_cpCudaResource = ((cudaGraphicsResource_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_7)); /* "cuda/cudart.pyx":29173 * if pCudaResource is None: * cpCudaResource = 0 * elif isinstance(pCudaResource, (cudaGraphicsResource_t,)): # <<<<<<<<<<<<<< * ppCudaResource = int(pCudaResource) * cpCudaResource = ppCudaResource */ goto __pyx_L6; } /* "cuda/cudart.pyx":29177 * cpCudaResource = ppCudaResource * else: * ppCudaResource = int(cudaGraphicsResource_t(pCudaResource)) # <<<<<<<<<<<<<< * cpCudaResource = ppCudaResource * cdef ccudart.cudaEglStreamConnection *cconn */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t), __pyx_v_pCudaResource); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29177, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29177, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_ppCudaResource = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":29178 * else: * ppCudaResource = int(cudaGraphicsResource_t(pCudaResource)) * cpCudaResource = ppCudaResource # <<<<<<<<<<<<<< * cdef ccudart.cudaEglStreamConnection *cconn * if conn is None: */ __pyx_t_7 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_ppCudaResource); if (unlikely((__pyx_t_7 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29178, __pyx_L1_error) __pyx_v_cpCudaResource = ((cudaGraphicsResource_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_7)); } __pyx_L6:; /* "cuda/cudart.pyx":29180 * cpCudaResource = ppCudaResource * cdef ccudart.cudaEglStreamConnection *cconn * if conn is None: # <<<<<<<<<<<<<< * cconn = NULL * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): */ __pyx_t_1 = (__pyx_v_conn == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":29181 * cdef ccudart.cudaEglStreamConnection *cconn * if conn is None: * cconn = NULL # <<<<<<<<<<<<<< * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): * pconn = conn.getPtr() */ __pyx_v_cconn = ((__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *)((__pyx_t_4cuda_6cudart_void_ptr)NULL)); /* "cuda/cudart.pyx":29180 * cpCudaResource = ppCudaResource * cdef ccudart.cudaEglStreamConnection *cconn * if conn is None: # <<<<<<<<<<<<<< * cconn = NULL * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): */ goto __pyx_L7; } /* "cuda/cudart.pyx":29182 * if conn is None: * cconn = NULL * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): # <<<<<<<<<<<<<< * pconn = conn.getPtr() * cconn = pconn */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_conn, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUeglStreamConnection); __pyx_t_1 = __pyx_t_2; __pyx_L8_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":29183 * cconn = NULL * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): * pconn = conn.getPtr() # <<<<<<<<<<<<<< * cconn = pconn * elif isinstance(conn, (int)): */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_conn, __pyx_n_s_getPtr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29183, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29183, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v_pconn = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":29184 * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): * pconn = conn.getPtr() * cconn = pconn # <<<<<<<<<<<<<< * elif isinstance(conn, (int)): * cconn = conn */ __pyx_t_7 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pconn); if (unlikely((__pyx_t_7 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29184, __pyx_L1_error) __pyx_v_cconn = ((__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_7)); /* "cuda/cudart.pyx":29182 * if conn is None: * cconn = NULL * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): # <<<<<<<<<<<<<< * pconn = conn.getPtr() * cconn = pconn */ goto __pyx_L7; } /* "cuda/cudart.pyx":29185 * pconn = conn.getPtr() * cconn = pconn * elif isinstance(conn, (int)): # <<<<<<<<<<<<<< * cconn = conn * else: */ __pyx_t_1 = PyInt_Check(__pyx_v_conn); if (likely(__pyx_t_1)) { /* "cuda/cudart.pyx":29186 * cconn = pconn * elif isinstance(conn, (int)): * cconn = conn # <<<<<<<<<<<<<< * else: * raise TypeError("Argument 'conn' is not instance of type (expected , found " + str(type(conn))) */ __pyx_t_7 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_conn); if (unlikely((__pyx_t_7 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29186, __pyx_L1_error) __pyx_v_cconn = ((__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_7)); /* "cuda/cudart.pyx":29185 * pconn = conn.getPtr() * cconn = pconn * elif isinstance(conn, (int)): # <<<<<<<<<<<<<< * cconn = conn * else: */ goto __pyx_L7; } /* "cuda/cudart.pyx":29188 * cconn = conn * else: * raise TypeError("Argument 'conn' is not instance of type (expected , found " + str(type(conn))) # <<<<<<<<<<<<<< * err = ccudart.cudaEGLStreamConsumerReleaseFrame(cconn, cpCudaResource, cpStream) * return (cudaError_t(err),) */ /*else*/ { __pyx_t_4 = __Pyx_PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_conn))); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29188, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Argument_conn_is_not_instance_of, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29188, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29188, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __PYX_ERR(0, 29188, __pyx_L1_error) } __pyx_L7:; /* "cuda/cudart.pyx":29189 * else: * raise TypeError("Argument 'conn' is not instance of type (expected , found " + str(type(conn))) * err = ccudart.cudaEGLStreamConsumerReleaseFrame(cconn, cpCudaResource, cpStream) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_8 = __pyx_f_4cuda_7ccudart_cudaEGLStreamConsumerReleaseFrame(__pyx_v_cconn, __pyx_v_cpCudaResource, __pyx_v_cpStream); if (unlikely(__pyx_t_8 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 29189, __pyx_L1_error) __pyx_v_err = __pyx_t_8; /* "cuda/cudart.pyx":29190 * raise TypeError("Argument 'conn' is not instance of type (expected , found " + str(type(conn))) * err = ccudart.cudaEGLStreamConsumerReleaseFrame(cconn, cpCudaResource, cpStream) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29190, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 29190, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_9 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_5}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29190, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29190, __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)) __PYX_ERR(0, 29190, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":29135 * return (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_5); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":29192 * return (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_6cudart_565cudaEGLStreamProducerConnect(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_564cudaEGLStreamProducerConnect, "cudaEGLStreamProducerConnect(eglStream, width, height)\n Connect CUDA to EGLStream as a producer.\n\n Connect CUDA as a producer to EGLStreamKHR specified by `stream`.\n\n The EGLStreamKHR is an EGL object that transfers a sequence of image\n frames from one API to another.\n\n Parameters\n ----------\n eglStream : :py:obj:`~.EGLStreamKHR`\n EGLStreamKHR handle\n width : :py:obj:`~.EGLint`\n width of the image to be submitted to the stream\n height : :py:obj:`~.EGLint`\n height of the image to be submitted to the stream\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorUnknown`\n conn : :py:obj:`~.cudaEglStreamConnection`\n Pointer to the returned connection handle\n\n See Also\n --------\n :py:obj:`~.cudaEGLStreamProducerDisconnect`, :py:obj:`~.cudaEGLStreamProducerPresentFrame`, :py:obj:`~.cudaEGLStreamProducerReturnFrame`, :py:obj:`~.cuEGLStreamProducerConnect`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_565cudaEGLStreamProducerConnect = {"cudaEGLStreamProducerConnect", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_565cudaEGLStreamProducerConnect, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_564cudaEGLStreamProducerConnect}; static PyObject *__pyx_pw_4cuda_6cudart_565cudaEGLStreamProducerConnect(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eglStream,&__pyx_n_s_width_2,&__pyx_n_s_height_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_eglStream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29192, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_width_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29192, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaEGLStreamProducerConnect", 1, 3, 3, 1); __PYX_ERR(0, 29192, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_height_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29192, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaEGLStreamProducerConnect", 1, 3, 3, 2); __PYX_ERR(0, 29192, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaEGLStreamProducerConnect") < 0)) __PYX_ERR(0, 29192, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __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, 29192, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaEGLStreamProducerConnect", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_564cudaEGLStreamProducerConnect(__pyx_self, __pyx_v_eglStream, __pyx_v_width, __pyx_v_height); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_564cudaEGLStreamProducerConnect(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_eglStream, PyObject *__pyx_v_width, PyObject *__pyx_v_height) { __pyx_t_4cuda_7ccudart_EGLint __pyx_v_cheight; PyObject *__pyx_v_pheight = NULL; __pyx_t_4cuda_7ccudart_EGLint __pyx_v_cwidth; PyObject *__pyx_v_pwidth = NULL; __pyx_t_4cuda_7ccudart_EGLStreamKHR __pyx_v_ceglStream; PyObject *__pyx_v_peglStream = NULL; struct __pyx_obj_4cuda_6cudart_cudaEglStreamConnection *__pyx_v_conn = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; cudaError_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__637) __Pyx_RefNannySetupContext("cudaEGLStreamProducerConnect", 1); __Pyx_TraceCall("cudaEGLStreamProducerConnect", __pyx_f[0], 29192, 0, __PYX_ERR(0, 29192, __pyx_L1_error)); /* "cuda/cudart.pyx":29222 * """ * cdef ccudart.EGLint cheight * if height is None: # <<<<<<<<<<<<<< * cheight = 0 * elif isinstance(height, (EGLint,)): */ __pyx_t_1 = (__pyx_v_height == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":29223 * cdef ccudart.EGLint cheight * if height is None: * cheight = 0 # <<<<<<<<<<<<<< * elif isinstance(height, (EGLint,)): * pheight = int(height) */ __pyx_v_cheight = ((__pyx_t_4cuda_7ccudart_EGLint)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":29222 * """ * cdef ccudart.EGLint cheight * if height is None: # <<<<<<<<<<<<<< * cheight = 0 * elif isinstance(height, (EGLint,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":29224 * if height is None: * cheight = 0 * elif isinstance(height, (EGLint,)): # <<<<<<<<<<<<<< * pheight = int(height) * cheight = pheight */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_height, __pyx_ptype_4cuda_6cudart_EGLint); if (__pyx_t_1) { /* "cuda/cudart.pyx":29225 * cheight = 0 * elif isinstance(height, (EGLint,)): * pheight = int(height) # <<<<<<<<<<<<<< * cheight = pheight * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_height); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_pheight = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":29226 * elif isinstance(height, (EGLint,)): * pheight = int(height) * cheight = pheight # <<<<<<<<<<<<<< * else: * pheight = int(EGLint(height)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pheight); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29226, __pyx_L1_error) __pyx_v_cheight = ((__pyx_t_4cuda_7ccudart_EGLint)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":29224 * if height is None: * cheight = 0 * elif isinstance(height, (EGLint,)): # <<<<<<<<<<<<<< * pheight = int(height) * cheight = pheight */ goto __pyx_L3; } /* "cuda/cudart.pyx":29228 * cheight = pheight * else: * pheight = int(EGLint(height)) # <<<<<<<<<<<<<< * cheight = pheight * cdef ccudart.EGLint cwidth */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_EGLint), __pyx_v_height); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29228, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29228, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_pheight = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":29229 * else: * pheight = int(EGLint(height)) * cheight = pheight # <<<<<<<<<<<<<< * cdef ccudart.EGLint cwidth * if width is None: */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pheight); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29229, __pyx_L1_error) __pyx_v_cheight = ((__pyx_t_4cuda_7ccudart_EGLint)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":29231 * cheight = pheight * cdef ccudart.EGLint cwidth * if width is None: # <<<<<<<<<<<<<< * cwidth = 0 * elif isinstance(width, (EGLint,)): */ __pyx_t_1 = (__pyx_v_width == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":29232 * cdef ccudart.EGLint cwidth * if width is None: * cwidth = 0 # <<<<<<<<<<<<<< * elif isinstance(width, (EGLint,)): * pwidth = int(width) */ __pyx_v_cwidth = ((__pyx_t_4cuda_7ccudart_EGLint)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":29231 * cheight = pheight * cdef ccudart.EGLint cwidth * if width is None: # <<<<<<<<<<<<<< * cwidth = 0 * elif isinstance(width, (EGLint,)): */ goto __pyx_L4; } /* "cuda/cudart.pyx":29233 * if width is None: * cwidth = 0 * elif isinstance(width, (EGLint,)): # <<<<<<<<<<<<<< * pwidth = int(width) * cwidth = pwidth */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_width, __pyx_ptype_4cuda_6cudart_EGLint); if (__pyx_t_1) { /* "cuda/cudart.pyx":29234 * cwidth = 0 * elif isinstance(width, (EGLint,)): * pwidth = int(width) # <<<<<<<<<<<<<< * cwidth = pwidth * else: */ __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_width); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29234, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_pwidth = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":29235 * elif isinstance(width, (EGLint,)): * pwidth = int(width) * cwidth = pwidth # <<<<<<<<<<<<<< * else: * pwidth = int(EGLint(width)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pwidth); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29235, __pyx_L1_error) __pyx_v_cwidth = ((__pyx_t_4cuda_7ccudart_EGLint)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":29233 * if width is None: * cwidth = 0 * elif isinstance(width, (EGLint,)): # <<<<<<<<<<<<<< * pwidth = int(width) * cwidth = pwidth */ goto __pyx_L4; } /* "cuda/cudart.pyx":29237 * cwidth = pwidth * else: * pwidth = int(EGLint(width)) # <<<<<<<<<<<<<< * cwidth = pwidth * cdef ccudart.EGLStreamKHR ceglStream */ /*else*/ { __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_EGLint), __pyx_v_width); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29237, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29237, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_pwidth = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":29238 * else: * pwidth = int(EGLint(width)) * cwidth = pwidth # <<<<<<<<<<<<<< * cdef ccudart.EGLStreamKHR ceglStream * if eglStream is None: */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pwidth); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29238, __pyx_L1_error) __pyx_v_cwidth = ((__pyx_t_4cuda_7ccudart_EGLint)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L4:; /* "cuda/cudart.pyx":29240 * cwidth = pwidth * cdef ccudart.EGLStreamKHR ceglStream * if eglStream is None: # <<<<<<<<<<<<<< * ceglStream = 0 * elif isinstance(eglStream, (EGLStreamKHR,)): */ __pyx_t_1 = (__pyx_v_eglStream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":29241 * cdef ccudart.EGLStreamKHR ceglStream * if eglStream is None: * ceglStream = 0 # <<<<<<<<<<<<<< * elif isinstance(eglStream, (EGLStreamKHR,)): * peglStream = int(eglStream) */ __pyx_v_ceglStream = ((__pyx_t_4cuda_7ccudart_EGLStreamKHR)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":29240 * cwidth = pwidth * cdef ccudart.EGLStreamKHR ceglStream * if eglStream is None: # <<<<<<<<<<<<<< * ceglStream = 0 * elif isinstance(eglStream, (EGLStreamKHR,)): */ goto __pyx_L5; } /* "cuda/cudart.pyx":29242 * if eglStream is None: * ceglStream = 0 * elif isinstance(eglStream, (EGLStreamKHR,)): # <<<<<<<<<<<<<< * peglStream = int(eglStream) * ceglStream = peglStream */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_eglStream, __pyx_ptype_4cuda_6cudart_EGLStreamKHR); if (__pyx_t_1) { /* "cuda/cudart.pyx":29243 * ceglStream = 0 * elif isinstance(eglStream, (EGLStreamKHR,)): * peglStream = int(eglStream) # <<<<<<<<<<<<<< * ceglStream = peglStream * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_eglStream); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29243, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_peglStream = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":29244 * elif isinstance(eglStream, (EGLStreamKHR,)): * peglStream = int(eglStream) * ceglStream = peglStream # <<<<<<<<<<<<<< * else: * peglStream = int(EGLStreamKHR(eglStream)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_peglStream); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29244, __pyx_L1_error) __pyx_v_ceglStream = ((__pyx_t_4cuda_7ccudart_EGLStreamKHR)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":29242 * if eglStream is None: * ceglStream = 0 * elif isinstance(eglStream, (EGLStreamKHR,)): # <<<<<<<<<<<<<< * peglStream = int(eglStream) * ceglStream = peglStream */ goto __pyx_L5; } /* "cuda/cudart.pyx":29246 * ceglStream = peglStream * else: * peglStream = int(EGLStreamKHR(eglStream)) # <<<<<<<<<<<<<< * ceglStream = peglStream * cdef cudaEglStreamConnection conn = cudaEglStreamConnection() */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_EGLStreamKHR), __pyx_v_eglStream); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29246, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29246, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_peglStream = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":29247 * else: * peglStream = int(EGLStreamKHR(eglStream)) * ceglStream = peglStream # <<<<<<<<<<<<<< * cdef cudaEglStreamConnection conn = cudaEglStreamConnection() * err = ccudart.cudaEGLStreamProducerConnect(conn._ptr, ceglStream, cwidth, cheight) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_peglStream); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29247, __pyx_L1_error) __pyx_v_ceglStream = ((__pyx_t_4cuda_7ccudart_EGLStreamKHR)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L5:; /* "cuda/cudart.pyx":29248 * peglStream = int(EGLStreamKHR(eglStream)) * ceglStream = peglStream * cdef cudaEglStreamConnection conn = cudaEglStreamConnection() # <<<<<<<<<<<<<< * err = ccudart.cudaEGLStreamProducerConnect(conn._ptr, ceglStream, cwidth, cheight) * return (cudaError_t(err), conn) */ __pyx_t_4 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEglStreamConnection)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29248, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_conn = ((struct __pyx_obj_4cuda_6cudart_cudaEglStreamConnection *)__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":29249 * ceglStream = peglStream * cdef cudaEglStreamConnection conn = cudaEglStreamConnection() * err = ccudart.cudaEGLStreamProducerConnect(conn._ptr, ceglStream, cwidth, cheight) # <<<<<<<<<<<<<< * return (cudaError_t(err), conn) * */ __pyx_t_5 = __pyx_f_4cuda_7ccudart_cudaEGLStreamProducerConnect(((__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *)__pyx_v_conn->__pyx_base._ptr), __pyx_v_ceglStream, __pyx_v_cwidth, __pyx_v_cheight); if (unlikely(__pyx_t_5 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 29249, __pyx_L1_error) __pyx_v_err = __pyx_t_5; /* "cuda/cudart.pyx":29250 * cdef cudaEglStreamConnection conn = cudaEglStreamConnection() * err = ccudart.cudaEGLStreamProducerConnect(conn._ptr, ceglStream, cwidth, cheight) * return (cudaError_t(err), conn) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 29250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 29250, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_conn); __Pyx_GIVEREF((PyObject *)__pyx_v_conn); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_conn))) __PYX_ERR(0, 29250, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":29192 * return (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_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":29252 * return (cudaError_t(err), conn) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEGLStreamProducerDisconnect(conn): * """ Disconnect CUDA as a producer to EGLStream . */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_567cudaEGLStreamProducerDisconnect(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_566cudaEGLStreamProducerDisconnect, "cudaEGLStreamProducerDisconnect(conn)\n Disconnect CUDA as a producer to EGLStream .\n\n Disconnect CUDA as a producer to EGLStreamKHR.\n\n Parameters\n ----------\n conn : :py:obj:`~.cudaEglStreamConnection`\n Conection to disconnect.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorUnknown`\n\n See Also\n --------\n :py:obj:`~.cudaEGLStreamProducerConnect`, :py:obj:`~.cudaEGLStreamProducerPresentFrame`, :py:obj:`~.cudaEGLStreamProducerReturnFrame`, :py:obj:`~.cuEGLStreamProducerDisconnect`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_567cudaEGLStreamProducerDisconnect = {"cudaEGLStreamProducerDisconnect", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_567cudaEGLStreamProducerDisconnect, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_566cudaEGLStreamProducerDisconnect}; static PyObject *__pyx_pw_4cuda_6cudart_567cudaEGLStreamProducerDisconnect(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_conn,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_conn)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29252, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaEGLStreamProducerDisconnect") < 0)) __PYX_ERR(0, 29252, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_conn = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaEGLStreamProducerDisconnect", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 29252, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaEGLStreamProducerDisconnect", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_566cudaEGLStreamProducerDisconnect(__pyx_self, __pyx_v_conn); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_566cudaEGLStreamProducerDisconnect(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_conn) { __pyx_t_4cuda_7ccudart_cudaEglStreamConnection *__pyx_v_cconn; PyObject *__pyx_v_pconn = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; unsigned int __pyx_t_6; __pyx_t_4cuda_6cudart_void_ptr __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_TraceFrameInit(__pyx_codeobj__638) __Pyx_RefNannySetupContext("cudaEGLStreamProducerDisconnect", 1); __Pyx_TraceCall("cudaEGLStreamProducerDisconnect", __pyx_f[0], 29252, 0, __PYX_ERR(0, 29252, __pyx_L1_error)); /* "cuda/cudart.pyx":29273 * """ * cdef ccudart.cudaEglStreamConnection *cconn * if conn is None: # <<<<<<<<<<<<<< * cconn = NULL * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): */ __pyx_t_1 = (__pyx_v_conn == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":29274 * cdef ccudart.cudaEglStreamConnection *cconn * if conn is None: * cconn = NULL # <<<<<<<<<<<<<< * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): * pconn = conn.getPtr() */ __pyx_v_cconn = ((__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *)((__pyx_t_4cuda_6cudart_void_ptr)NULL)); /* "cuda/cudart.pyx":29273 * """ * cdef ccudart.cudaEglStreamConnection *cconn * if conn is None: # <<<<<<<<<<<<<< * cconn = NULL * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":29275 * if conn is None: * cconn = NULL * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): # <<<<<<<<<<<<<< * pconn = conn.getPtr() * cconn = pconn */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_conn, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUeglStreamConnection); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":29276 * cconn = NULL * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): * pconn = conn.getPtr() # <<<<<<<<<<<<<< * cconn = pconn * elif isinstance(conn, (int)): */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_conn, __pyx_n_s_getPtr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29276, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29276, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_v_pconn = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":29277 * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): * pconn = conn.getPtr() * cconn = pconn # <<<<<<<<<<<<<< * elif isinstance(conn, (int)): * cconn = conn */ __pyx_t_7 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pconn); if (unlikely((__pyx_t_7 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29277, __pyx_L1_error) __pyx_v_cconn = ((__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_7)); /* "cuda/cudart.pyx":29275 * if conn is None: * cconn = NULL * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): # <<<<<<<<<<<<<< * pconn = conn.getPtr() * cconn = pconn */ goto __pyx_L3; } /* "cuda/cudart.pyx":29278 * pconn = conn.getPtr() * cconn = pconn * elif isinstance(conn, (int)): # <<<<<<<<<<<<<< * cconn = conn * else: */ __pyx_t_1 = PyInt_Check(__pyx_v_conn); if (likely(__pyx_t_1)) { /* "cuda/cudart.pyx":29279 * cconn = pconn * elif isinstance(conn, (int)): * cconn = conn # <<<<<<<<<<<<<< * else: * raise TypeError("Argument 'conn' is not instance of type (expected , found " + str(type(conn))) */ __pyx_t_7 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_conn); if (unlikely((__pyx_t_7 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29279, __pyx_L1_error) __pyx_v_cconn = ((__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_7)); /* "cuda/cudart.pyx":29278 * pconn = conn.getPtr() * cconn = pconn * elif isinstance(conn, (int)): # <<<<<<<<<<<<<< * cconn = conn * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":29281 * cconn = conn * else: * raise TypeError("Argument 'conn' is not instance of type (expected , found " + str(type(conn))) # <<<<<<<<<<<<<< * err = ccudart.cudaEGLStreamProducerDisconnect(cconn) * return (cudaError_t(err),) */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_conn))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29281, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Argument_conn_is_not_instance_of, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29281, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29281, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 29281, __pyx_L1_error) } __pyx_L3:; /* "cuda/cudart.pyx":29282 * else: * raise TypeError("Argument 'conn' is not instance of type (expected , found " + str(type(conn))) * err = ccudart.cudaEGLStreamProducerDisconnect(cconn) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_8 = __pyx_f_4cuda_7ccudart_cudaEGLStreamProducerDisconnect(__pyx_v_cconn); if (unlikely(__pyx_t_8 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 29282, __pyx_L1_error) __pyx_v_err = __pyx_t_8; /* "cuda/cudart.pyx":29283 * raise TypeError("Argument 'conn' is not instance of type (expected , found " + str(type(conn))) * err = ccudart.cudaEGLStreamProducerDisconnect(cconn) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29283, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 29283, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_9 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_5}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29283, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29283, __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)) __PYX_ERR(0, 29283, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":29252 * return (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_5); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.cudaEGLStreamProducerDisconnect", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pconn); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":29285 * return (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_6cudart_569cudaEGLStreamProducerPresentFrame(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_568cudaEGLStreamProducerPresentFrame, "cudaEGLStreamProducerPresentFrame(conn, cudaEglFrame eglframe: cudaEglFrame, pStream)\n Present a CUDA eglFrame to the EGLStream with CUDA as a producer.\n\n The :py:obj:`~.cudaEglFrame` is defined as:\n\n **View CUDA Toolkit Documentation for a C++ code example**\n\n For :py:obj:`~.cudaEglFrame` of type :py:obj:`~.cudaEglFrameTypePitch`,\n the application may present sub-region of a memory allocation. In that\n case, :py:obj:`~.cudaPitchedPtr.ptr` will specify the start address of\n the sub-region in the allocation and :py:obj:`~.cudaEglPlaneDesc` will\n specify the dimensions of the sub-region.\n\n Parameters\n ----------\n conn : :py:obj:`~.cudaEglStreamConnection`\n Connection on which to present the CUDA array\n eglframe : :py:obj:`~.cudaEglFrame`\n CUDA Eglstream Proucer Frame handle to be sent to the consumer over\n EglStream.\n pStream : :py:obj:`~.cudaStream_t`\n CUDA stream on which to present the frame.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorUnknown`\n\n See Also\n --------\n :py:obj:`~.cudaEGLStreamProducerConnect`, :py:obj:`~.cudaEGLStreamProducerDisconnect`, :py:obj:`~.cudaEGLStreamProducerReturnFrame`, :py:obj:`~.cuEGLStreamProducerPresentFrame`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_569cudaEGLStreamProducerPresentFrame = {"cudaEGLStreamProducerPresentFrame", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_569cudaEGLStreamProducerPresentFrame, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_568cudaEGLStreamProducerPresentFrame}; static PyObject *__pyx_pw_4cuda_6cudart_569cudaEGLStreamProducerPresentFrame(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_conn,&__pyx_n_s_eglframe,&__pyx_n_s_pStream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_conn)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29285, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_eglframe)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29285, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaEGLStreamProducerPresentFrame", 1, 3, 3, 1); __PYX_ERR(0, 29285, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pStream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29285, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaEGLStreamProducerPresentFrame", 1, 3, 3, 2); __PYX_ERR(0, 29285, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaEGLStreamProducerPresentFrame") < 0)) __PYX_ERR(0, 29285, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_conn = values[0]; __pyx_v_eglframe = ((struct __pyx_obj_4cuda_6cudart_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, 29285, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaEglFrame, 0, "eglframe", 0))) __PYX_ERR(0, 29286, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_568cudaEGLStreamProducerPresentFrame(__pyx_self, __pyx_v_conn, __pyx_v_eglframe, __pyx_v_pStream); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_568cudaEGLStreamProducerPresentFrame(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_conn, struct __pyx_obj_4cuda_6cudart_cudaEglFrame *__pyx_v_eglframe, PyObject *__pyx_v_pStream) { cudaStream_t *__pyx_v_cpStream; PyObject *__pyx_v_ppStream = NULL; __pyx_t_4cuda_7ccudart_cudaEglStreamConnection *__pyx_v_cconn; PyObject *__pyx_v_pconn = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; unsigned int __pyx_t_6; __pyx_t_4cuda_6cudart_void_ptr __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_TraceFrameInit(__pyx_codeobj__639) __Pyx_RefNannySetupContext("cudaEGLStreamProducerPresentFrame", 1); __Pyx_TraceCall("cudaEGLStreamProducerPresentFrame", __pyx_f[0], 29285, 0, __PYX_ERR(0, 29285, __pyx_L1_error)); /* "cuda/cudart.pyx":29319 * """ * cdef ccudart.cudaStream_t *cpStream * if pStream is None: # <<<<<<<<<<<<<< * cpStream = NULL * elif isinstance(pStream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_pStream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":29320 * cdef ccudart.cudaStream_t *cpStream * if pStream is None: * cpStream = NULL # <<<<<<<<<<<<<< * elif isinstance(pStream, (cudaStream_t,cuda.CUstream)): * ppStream = pStream.getPtr() */ __pyx_v_cpStream = ((cudaStream_t *)((__pyx_t_4cuda_6cudart_void_ptr)NULL)); /* "cuda/cudart.pyx":29319 * """ * cdef ccudart.cudaStream_t *cpStream * if pStream is None: # <<<<<<<<<<<<<< * cpStream = NULL * elif isinstance(pStream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":29321 * if pStream is None: * cpStream = NULL * elif isinstance(pStream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * ppStream = pStream.getPtr() * cpStream = ppStream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_pStream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":29322 * cpStream = NULL * elif isinstance(pStream, (cudaStream_t,cuda.CUstream)): * ppStream = pStream.getPtr() # <<<<<<<<<<<<<< * cpStream = ppStream * elif isinstance(pStream, (int)): */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_pStream, __pyx_n_s_getPtr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29322, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29322, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_v_ppStream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":29323 * elif isinstance(pStream, (cudaStream_t,cuda.CUstream)): * ppStream = pStream.getPtr() * cpStream = ppStream # <<<<<<<<<<<<<< * elif isinstance(pStream, (int)): * cpStream = pStream */ __pyx_t_7 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_ppStream); if (unlikely((__pyx_t_7 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29323, __pyx_L1_error) __pyx_v_cpStream = ((cudaStream_t *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_7)); /* "cuda/cudart.pyx":29321 * if pStream is None: * cpStream = NULL * elif isinstance(pStream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * ppStream = pStream.getPtr() * cpStream = ppStream */ goto __pyx_L3; } /* "cuda/cudart.pyx":29324 * ppStream = pStream.getPtr() * cpStream = ppStream * elif isinstance(pStream, (int)): # <<<<<<<<<<<<<< * cpStream = pStream * else: */ __pyx_t_1 = PyInt_Check(__pyx_v_pStream); if (likely(__pyx_t_1)) { /* "cuda/cudart.pyx":29325 * cpStream = ppStream * elif isinstance(pStream, (int)): * cpStream = pStream # <<<<<<<<<<<<<< * else: * raise TypeError("Argument 'pStream' is not instance of type (expected , found " + str(type(pStream))) */ __pyx_t_7 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pStream); if (unlikely((__pyx_t_7 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29325, __pyx_L1_error) __pyx_v_cpStream = ((cudaStream_t *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_7)); /* "cuda/cudart.pyx":29324 * ppStream = pStream.getPtr() * cpStream = ppStream * elif isinstance(pStream, (int)): # <<<<<<<<<<<<<< * cpStream = pStream * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":29327 * cpStream = pStream * else: * raise TypeError("Argument 'pStream' is not instance of type (expected , found " + str(type(pStream))) # <<<<<<<<<<<<<< * cdef ccudart.cudaEglStreamConnection *cconn * if conn is None: */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_pStream))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29327, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Argument_pStream_is_not_instance, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29327, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29327, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 29327, __pyx_L1_error) } __pyx_L3:; /* "cuda/cudart.pyx":29329 * raise TypeError("Argument 'pStream' is not instance of type (expected , found " + str(type(pStream))) * cdef ccudart.cudaEglStreamConnection *cconn * if conn is None: # <<<<<<<<<<<<<< * cconn = NULL * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): */ __pyx_t_1 = (__pyx_v_conn == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":29330 * cdef ccudart.cudaEglStreamConnection *cconn * if conn is None: * cconn = NULL # <<<<<<<<<<<<<< * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): * pconn = conn.getPtr() */ __pyx_v_cconn = ((__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *)((__pyx_t_4cuda_6cudart_void_ptr)NULL)); /* "cuda/cudart.pyx":29329 * raise TypeError("Argument 'pStream' is not instance of type (expected , found " + str(type(pStream))) * cdef ccudart.cudaEglStreamConnection *cconn * if conn is None: # <<<<<<<<<<<<<< * cconn = NULL * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":29331 * if conn is None: * cconn = NULL * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): # <<<<<<<<<<<<<< * pconn = conn.getPtr() * cconn = pconn */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_conn, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUeglStreamConnection); __pyx_t_1 = __pyx_t_2; __pyx_L7_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":29332 * cconn = NULL * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): * pconn = conn.getPtr() # <<<<<<<<<<<<<< * cconn = pconn * elif isinstance(conn, (int)): */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_conn, __pyx_n_s_getPtr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29332, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29332, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_v_pconn = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":29333 * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): * pconn = conn.getPtr() * cconn = pconn # <<<<<<<<<<<<<< * elif isinstance(conn, (int)): * cconn = conn */ __pyx_t_7 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pconn); if (unlikely((__pyx_t_7 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29333, __pyx_L1_error) __pyx_v_cconn = ((__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_7)); /* "cuda/cudart.pyx":29331 * if conn is None: * cconn = NULL * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): # <<<<<<<<<<<<<< * pconn = conn.getPtr() * cconn = pconn */ goto __pyx_L6; } /* "cuda/cudart.pyx":29334 * pconn = conn.getPtr() * cconn = pconn * elif isinstance(conn, (int)): # <<<<<<<<<<<<<< * cconn = conn * else: */ __pyx_t_1 = PyInt_Check(__pyx_v_conn); if (likely(__pyx_t_1)) { /* "cuda/cudart.pyx":29335 * cconn = pconn * elif isinstance(conn, (int)): * cconn = conn # <<<<<<<<<<<<<< * else: * raise TypeError("Argument 'conn' is not instance of type (expected , found " + str(type(conn))) */ __pyx_t_7 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_conn); if (unlikely((__pyx_t_7 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29335, __pyx_L1_error) __pyx_v_cconn = ((__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_7)); /* "cuda/cudart.pyx":29334 * pconn = conn.getPtr() * cconn = pconn * elif isinstance(conn, (int)): # <<<<<<<<<<<<<< * cconn = conn * else: */ goto __pyx_L6; } /* "cuda/cudart.pyx":29337 * cconn = conn * else: * raise TypeError("Argument 'conn' is not instance of type (expected , found " + str(type(conn))) # <<<<<<<<<<<<<< * err = ccudart.cudaEGLStreamProducerPresentFrame(cconn, eglframe._ptr[0], cpStream) * return (cudaError_t(err),) */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_conn))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29337, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Argument_conn_is_not_instance_of, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29337, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29337, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 29337, __pyx_L1_error) } __pyx_L6:; /* "cuda/cudart.pyx":29338 * else: * raise TypeError("Argument 'conn' is not instance of type (expected , found " + str(type(conn))) * err = ccudart.cudaEGLStreamProducerPresentFrame(cconn, eglframe._ptr[0], cpStream) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_8 = __pyx_f_4cuda_7ccudart_cudaEGLStreamProducerPresentFrame(__pyx_v_cconn, (__pyx_v_eglframe->__pyx_base._ptr[0]), __pyx_v_cpStream); if (unlikely(__pyx_t_8 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 29338, __pyx_L1_error) __pyx_v_err = __pyx_t_8; /* "cuda/cudart.pyx":29339 * raise TypeError("Argument 'conn' is not instance of type (expected , found " + str(type(conn))) * err = ccudart.cudaEGLStreamProducerPresentFrame(cconn, eglframe._ptr[0], cpStream) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29339, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 29339, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_9 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_5}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29339, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29339, __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)) __PYX_ERR(0, 29339, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":29285 * return (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_5); __Pyx_XDECREF(__pyx_t_9); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":29341 * return (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_6cudart_571cudaEGLStreamProducerReturnFrame(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_570cudaEGLStreamProducerReturnFrame, "cudaEGLStreamProducerReturnFrame(conn, cudaEglFrame eglframe: Optional[cudaEglFrame], pStream)\n Return the CUDA eglFrame to the EGLStream last released by the consumer.\n\n This API can potentially return cudaErrorLaunchTimeout if the consumer\n has not returned a frame to EGL stream. If timeout is returned the\n application can retry.\n\n Parameters\n ----------\n conn : :py:obj:`~.cudaEglStreamConnection`\n Connection on which to present the CUDA array\n eglframe : :py:obj:`~.cudaEglFrame`\n CUDA Eglstream Proucer Frame handle returned from the consumer over\n EglStream.\n pStream : :py:obj:`~.cudaStream_t`\n CUDA stream on which to return the frame.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorLaunchTimeout`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorUnknown`\n\n See Also\n --------\n :py:obj:`~.cudaEGLStreamProducerConnect`, :py:obj:`~.cudaEGLStreamProducerDisconnect`, :py:obj:`~.cudaEGLStreamProducerPresentFrame`, :py:obj:`~.cuEGLStreamProducerReturnFrame`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_571cudaEGLStreamProducerReturnFrame = {"cudaEGLStreamProducerReturnFrame", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_571cudaEGLStreamProducerReturnFrame, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_570cudaEGLStreamProducerReturnFrame}; static PyObject *__pyx_pw_4cuda_6cudart_571cudaEGLStreamProducerReturnFrame(PyObject *__pyx_self, #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_6cudart_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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_conn,&__pyx_n_s_eglframe,&__pyx_n_s_pStream,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_conn)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29341, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_eglframe)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29341, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaEGLStreamProducerReturnFrame", 1, 3, 3, 1); __PYX_ERR(0, 29341, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_pStream)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29341, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaEGLStreamProducerReturnFrame", 1, 3, 3, 2); __PYX_ERR(0, 29341, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaEGLStreamProducerReturnFrame") < 0)) __PYX_ERR(0, 29341, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_conn = values[0]; __pyx_v_eglframe = ((struct __pyx_obj_4cuda_6cudart_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, 29341, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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_ptype_4cuda_6cudart_cudaEglFrame, 1, "eglframe", 0))) __PYX_ERR(0, 29342, __pyx_L1_error) __pyx_r = __pyx_pf_4cuda_6cudart_570cudaEGLStreamProducerReturnFrame(__pyx_self, __pyx_v_conn, __pyx_v_eglframe, __pyx_v_pStream); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_570cudaEGLStreamProducerReturnFrame(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_conn, struct __pyx_obj_4cuda_6cudart_cudaEglFrame *__pyx_v_eglframe, PyObject *__pyx_v_pStream) { cudaStream_t *__pyx_v_cpStream; PyObject *__pyx_v_ppStream = NULL; __pyx_t_4cuda_7ccudart_cudaEglStreamConnection *__pyx_v_cconn; PyObject *__pyx_v_pconn = NULL; __pyx_t_4cuda_7ccudart_cudaEglFrame *__pyx_v_ceglframe_ptr; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; unsigned int __pyx_t_6; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_7; struct __pyx_t_4cuda_7ccudart_cudaEglFrame_st *__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_TraceFrameInit(__pyx_codeobj__640) __Pyx_RefNannySetupContext("cudaEGLStreamProducerReturnFrame", 1); __Pyx_TraceCall("cudaEGLStreamProducerReturnFrame", __pyx_f[0], 29341, 0, __PYX_ERR(0, 29341, __pyx_L1_error)); /* "cuda/cudart.pyx":29369 * """ * cdef ccudart.cudaStream_t *cpStream * if pStream is None: # <<<<<<<<<<<<<< * cpStream = NULL * elif isinstance(pStream, (cudaStream_t,cuda.CUstream)): */ __pyx_t_1 = (__pyx_v_pStream == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":29370 * cdef ccudart.cudaStream_t *cpStream * if pStream is None: * cpStream = NULL # <<<<<<<<<<<<<< * elif isinstance(pStream, (cudaStream_t,cuda.CUstream)): * ppStream = pStream.getPtr() */ __pyx_v_cpStream = ((cudaStream_t *)((__pyx_t_4cuda_6cudart_void_ptr)NULL)); /* "cuda/cudart.pyx":29369 * """ * cdef ccudart.cudaStream_t *cpStream * if pStream is None: # <<<<<<<<<<<<<< * cpStream = NULL * elif isinstance(pStream, (cudaStream_t,cuda.CUstream)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":29371 * if pStream is None: * cpStream = NULL * elif isinstance(pStream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * ppStream = pStream.getPtr() * cpStream = ppStream */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_pStream, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUstream); __pyx_t_1 = __pyx_t_2; __pyx_L4_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":29372 * cpStream = NULL * elif isinstance(pStream, (cudaStream_t,cuda.CUstream)): * ppStream = pStream.getPtr() # <<<<<<<<<<<<<< * cpStream = ppStream * elif isinstance(pStream, (int)): */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_pStream, __pyx_n_s_getPtr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29372, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29372, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_v_ppStream = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":29373 * elif isinstance(pStream, (cudaStream_t,cuda.CUstream)): * ppStream = pStream.getPtr() * cpStream = ppStream # <<<<<<<<<<<<<< * elif isinstance(pStream, (int)): * cpStream = pStream */ __pyx_t_7 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_ppStream); if (unlikely((__pyx_t_7 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29373, __pyx_L1_error) __pyx_v_cpStream = ((cudaStream_t *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_7)); /* "cuda/cudart.pyx":29371 * if pStream is None: * cpStream = NULL * elif isinstance(pStream, (cudaStream_t,cuda.CUstream)): # <<<<<<<<<<<<<< * ppStream = pStream.getPtr() * cpStream = ppStream */ goto __pyx_L3; } /* "cuda/cudart.pyx":29374 * ppStream = pStream.getPtr() * cpStream = ppStream * elif isinstance(pStream, (int)): # <<<<<<<<<<<<<< * cpStream = pStream * else: */ __pyx_t_1 = PyInt_Check(__pyx_v_pStream); if (likely(__pyx_t_1)) { /* "cuda/cudart.pyx":29375 * cpStream = ppStream * elif isinstance(pStream, (int)): * cpStream = pStream # <<<<<<<<<<<<<< * else: * raise TypeError("Argument 'pStream' is not instance of type (expected , found " + str(type(pStream))) */ __pyx_t_7 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pStream); if (unlikely((__pyx_t_7 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29375, __pyx_L1_error) __pyx_v_cpStream = ((cudaStream_t *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_7)); /* "cuda/cudart.pyx":29374 * ppStream = pStream.getPtr() * cpStream = ppStream * elif isinstance(pStream, (int)): # <<<<<<<<<<<<<< * cpStream = pStream * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":29377 * cpStream = pStream * else: * raise TypeError("Argument 'pStream' is not instance of type (expected , found " + str(type(pStream))) # <<<<<<<<<<<<<< * cdef ccudart.cudaEglStreamConnection *cconn * if conn is None: */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_pStream))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29377, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Argument_pStream_is_not_instance, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29377, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29377, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 29377, __pyx_L1_error) } __pyx_L3:; /* "cuda/cudart.pyx":29379 * raise TypeError("Argument 'pStream' is not instance of type (expected , found " + str(type(pStream))) * cdef ccudart.cudaEglStreamConnection *cconn * if conn is None: # <<<<<<<<<<<<<< * cconn = NULL * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): */ __pyx_t_1 = (__pyx_v_conn == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":29380 * cdef ccudart.cudaEglStreamConnection *cconn * if conn is None: * cconn = NULL # <<<<<<<<<<<<<< * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): * pconn = conn.getPtr() */ __pyx_v_cconn = ((__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *)((__pyx_t_4cuda_6cudart_void_ptr)NULL)); /* "cuda/cudart.pyx":29379 * raise TypeError("Argument 'pStream' is not instance of type (expected , found " + str(type(pStream))) * cdef ccudart.cudaEglStreamConnection *cconn * if conn is None: # <<<<<<<<<<<<<< * cconn = NULL * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): */ goto __pyx_L6; } /* "cuda/cudart.pyx":29381 * if conn is None: * cconn = NULL * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): # <<<<<<<<<<<<<< * pconn = conn.getPtr() * cconn = pconn */ __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_conn, __pyx_ptype_4cuda_6cudart_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_ptype_4cuda_4cuda_CUeglStreamConnection); __pyx_t_1 = __pyx_t_2; __pyx_L7_bool_binop_done:; if (__pyx_t_1) { /* "cuda/cudart.pyx":29382 * cconn = NULL * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): * pconn = conn.getPtr() # <<<<<<<<<<<<<< * cconn = pconn * elif isinstance(conn, (int)): */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_conn, __pyx_n_s_getPtr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29382, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29382, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_v_pconn = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":29383 * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): * pconn = conn.getPtr() * cconn = pconn # <<<<<<<<<<<<<< * elif isinstance(conn, (int)): * cconn = conn */ __pyx_t_7 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pconn); if (unlikely((__pyx_t_7 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29383, __pyx_L1_error) __pyx_v_cconn = ((__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_7)); /* "cuda/cudart.pyx":29381 * if conn is None: * cconn = NULL * elif isinstance(conn, (cudaEglStreamConnection,cuda.CUeglStreamConnection)): # <<<<<<<<<<<<<< * pconn = conn.getPtr() * cconn = pconn */ goto __pyx_L6; } /* "cuda/cudart.pyx":29384 * pconn = conn.getPtr() * cconn = pconn * elif isinstance(conn, (int)): # <<<<<<<<<<<<<< * cconn = conn * else: */ __pyx_t_1 = PyInt_Check(__pyx_v_conn); if (likely(__pyx_t_1)) { /* "cuda/cudart.pyx":29385 * cconn = pconn * elif isinstance(conn, (int)): * cconn = conn # <<<<<<<<<<<<<< * else: * raise TypeError("Argument 'conn' is not instance of type (expected , found " + str(type(conn))) */ __pyx_t_7 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_conn); if (unlikely((__pyx_t_7 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29385, __pyx_L1_error) __pyx_v_cconn = ((__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_7)); /* "cuda/cudart.pyx":29384 * pconn = conn.getPtr() * cconn = pconn * elif isinstance(conn, (int)): # <<<<<<<<<<<<<< * cconn = conn * else: */ goto __pyx_L6; } /* "cuda/cudart.pyx":29387 * cconn = conn * else: * raise TypeError("Argument 'conn' is not instance of type (expected , found " + str(type(conn))) # <<<<<<<<<<<<<< * cdef ccudart.cudaEglFrame* ceglframe_ptr = eglframe._ptr if eglframe != None else NULL * err = ccudart.cudaEGLStreamProducerReturnFrame(cconn, ceglframe_ptr, cpStream) */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_conn))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29387, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Argument_conn_is_not_instance_of, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29387, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29387, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 29387, __pyx_L1_error) } __pyx_L6:; /* "cuda/cudart.pyx":29388 * else: * raise TypeError("Argument 'conn' is not instance of type (expected , found " + str(type(conn))) * cdef ccudart.cudaEglFrame* ceglframe_ptr = eglframe._ptr if eglframe != None else NULL # <<<<<<<<<<<<<< * err = ccudart.cudaEGLStreamProducerReturnFrame(cconn, ceglframe_ptr, cpStream) * return (cudaError_t(err),) */ __pyx_t_3 = PyObject_RichCompare(((PyObject *)__pyx_v_eglframe), Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29388, __pyx_L1_error) __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 29388, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_1) { __pyx_t_8 = __pyx_v_eglframe->__pyx_base._ptr; } else { __pyx_t_8 = NULL; } __pyx_v_ceglframe_ptr = __pyx_t_8; /* "cuda/cudart.pyx":29389 * raise TypeError("Argument 'conn' is not instance of type (expected , found " + str(type(conn))) * cdef ccudart.cudaEglFrame* ceglframe_ptr = eglframe._ptr if eglframe != None else NULL * err = ccudart.cudaEGLStreamProducerReturnFrame(cconn, ceglframe_ptr, cpStream) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_9 = __pyx_f_4cuda_7ccudart_cudaEGLStreamProducerReturnFrame(__pyx_v_cconn, __pyx_v_ceglframe_ptr, __pyx_v_cpStream); if (unlikely(__pyx_t_9 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 29389, __pyx_L1_error) __pyx_v_err = __pyx_t_9; /* "cuda/cudart.pyx":29390 * cdef ccudart.cudaEglFrame* ceglframe_ptr = eglframe._ptr if eglframe != None else NULL * err = ccudart.cudaEGLStreamProducerReturnFrame(cconn, ceglframe_ptr, cpStream) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29390, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 29390, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_10 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_10)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_10); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_t_5}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29390, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29390, __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)) __PYX_ERR(0, 29390, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":29341 * return (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_5); __Pyx_XDECREF(__pyx_t_10); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":29392 * return (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_6cudart_573cudaGraphicsResourceGetMappedEglFrame(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_572cudaGraphicsResourceGetMappedEglFrame, "cudaGraphicsResourceGetMappedEglFrame(resource, unsigned int index, unsigned int mipLevel)\n Get an eglFrame through which to access a registered EGL graphics resource.\n\n Returns in `*eglFrame` an eglFrame pointer through which the registered\n graphics resource `resource` may be accessed. This API can only be\n called for EGL graphics resources.\n\n The :py:obj:`~.cudaEglFrame` is defined as\n\n **View CUDA Toolkit Documentation for a C++ code example**\n\n Parameters\n ----------\n resource : :py:obj:`~.cudaGraphicsResource_t`\n Registered resource to access.\n index : unsigned int\n Index for cubemap surfaces.\n mipLevel : unsigned int\n Mipmap level for the subresource to access.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorUnknown`\n eglFrame : :py:obj:`~.cudaEglFrame`\n Returned eglFrame.\n\n See Also\n --------\n :py:obj:`~.cudaGraphicsSubResourceGetMappedArray`, :py:obj:`~.cudaGraphicsResourceGetMappedPointer`, :py:obj:`~.cuGraphicsResourceGetMappedEglFrame`\n\n Notes\n -----\n Note that in case of multiplanar `*eglFrame`, pitch of only first plane (unsigned int :py:obj:`~.cudaEglPlaneDesc.pitch`) is to be considered by the application.\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_573cudaGraphicsResourceGetMappedEglFrame = {"cudaGraphicsResourceGetMappedEglFrame", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_573cudaGraphicsResourceGetMappedEglFrame, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_572cudaGraphicsResourceGetMappedEglFrame}; static PyObject *__pyx_pw_4cuda_6cudart_573cudaGraphicsResourceGetMappedEglFrame(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_resource,&__pyx_n_s_index,&__pyx_n_s_mipLevel,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_resource)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29392, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_index)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29392, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphicsResourceGetMappedEglFrame", 1, 3, 3, 1); __PYX_ERR(0, 29392, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_mipLevel)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29392, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphicsResourceGetMappedEglFrame", 1, 3, 3, 2); __PYX_ERR(0, 29392, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphicsResourceGetMappedEglFrame") < 0)) __PYX_ERR(0, 29392, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_resource = values[0]; __pyx_v_index = __Pyx_PyInt_As_unsigned_int(values[1]); if (unlikely((__pyx_v_index == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 29393, __pyx_L3_error) __pyx_v_mipLevel = __Pyx_PyInt_As_unsigned_int(values[2]); if (unlikely((__pyx_v_mipLevel == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 29393, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphicsResourceGetMappedEglFrame", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 29392, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphicsResourceGetMappedEglFrame", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_572cudaGraphicsResourceGetMappedEglFrame(__pyx_self, __pyx_v_resource, __pyx_v_index, __pyx_v_mipLevel); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_572cudaGraphicsResourceGetMappedEglFrame(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_resource, unsigned int __pyx_v_index, unsigned int __pyx_v_mipLevel) { cudaGraphicsResource_t __pyx_v_cresource; PyObject *__pyx_v_presource = NULL; struct __pyx_obj_4cuda_6cudart_cudaEglFrame *__pyx_v_eglFrame = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; cudaError_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__641) __Pyx_RefNannySetupContext("cudaGraphicsResourceGetMappedEglFrame", 1); __Pyx_TraceCall("cudaGraphicsResourceGetMappedEglFrame", __pyx_f[0], 29392, 0, __PYX_ERR(0, 29392, __pyx_L1_error)); /* "cuda/cudart.pyx":29429 * """ * cdef ccudart.cudaGraphicsResource_t cresource * if resource is None: # <<<<<<<<<<<<<< * cresource = 0 * elif isinstance(resource, (cudaGraphicsResource_t,)): */ __pyx_t_1 = (__pyx_v_resource == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":29430 * cdef ccudart.cudaGraphicsResource_t cresource * if resource is None: * cresource = 0 # <<<<<<<<<<<<<< * elif isinstance(resource, (cudaGraphicsResource_t,)): * presource = int(resource) */ __pyx_v_cresource = ((cudaGraphicsResource_t)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":29429 * """ * cdef ccudart.cudaGraphicsResource_t cresource * if resource is None: # <<<<<<<<<<<<<< * cresource = 0 * elif isinstance(resource, (cudaGraphicsResource_t,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":29431 * if resource is None: * cresource = 0 * elif isinstance(resource, (cudaGraphicsResource_t,)): # <<<<<<<<<<<<<< * presource = int(resource) * cresource = presource */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_resource, __pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t); if (__pyx_t_1) { /* "cuda/cudart.pyx":29432 * cresource = 0 * elif isinstance(resource, (cudaGraphicsResource_t,)): * presource = int(resource) # <<<<<<<<<<<<<< * cresource = presource * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_resource); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29432, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_presource = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":29433 * elif isinstance(resource, (cudaGraphicsResource_t,)): * presource = int(resource) * cresource = presource # <<<<<<<<<<<<<< * else: * presource = int(cudaGraphicsResource_t(resource)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_presource); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29433, __pyx_L1_error) __pyx_v_cresource = ((cudaGraphicsResource_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":29431 * if resource is None: * cresource = 0 * elif isinstance(resource, (cudaGraphicsResource_t,)): # <<<<<<<<<<<<<< * presource = int(resource) * cresource = presource */ goto __pyx_L3; } /* "cuda/cudart.pyx":29435 * cresource = presource * else: * presource = int(cudaGraphicsResource_t(resource)) # <<<<<<<<<<<<<< * cresource = presource * cdef cudaEglFrame eglFrame = cudaEglFrame() */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t), __pyx_v_resource); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29435, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29435, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_presource = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":29436 * else: * presource = int(cudaGraphicsResource_t(resource)) * cresource = presource # <<<<<<<<<<<<<< * cdef cudaEglFrame eglFrame = cudaEglFrame() * err = ccudart.cudaGraphicsResourceGetMappedEglFrame(eglFrame._ptr, cresource, index, mipLevel) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_presource); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29436, __pyx_L1_error) __pyx_v_cresource = ((cudaGraphicsResource_t)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":29437 * presource = int(cudaGraphicsResource_t(resource)) * cresource = presource * cdef cudaEglFrame eglFrame = cudaEglFrame() # <<<<<<<<<<<<<< * err = ccudart.cudaGraphicsResourceGetMappedEglFrame(eglFrame._ptr, cresource, index, mipLevel) * return (cudaError_t(err), eglFrame) */ __pyx_t_4 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEglFrame)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29437, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_eglFrame = ((struct __pyx_obj_4cuda_6cudart_cudaEglFrame *)__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":29438 * cresource = presource * cdef cudaEglFrame eglFrame = cudaEglFrame() * err = ccudart.cudaGraphicsResourceGetMappedEglFrame(eglFrame._ptr, cresource, index, mipLevel) # <<<<<<<<<<<<<< * return (cudaError_t(err), eglFrame) * */ __pyx_t_5 = __pyx_f_4cuda_7ccudart_cudaGraphicsResourceGetMappedEglFrame(((__pyx_t_4cuda_7ccudart_cudaEglFrame *)__pyx_v_eglFrame->__pyx_base._ptr), __pyx_v_cresource, __pyx_v_index, __pyx_v_mipLevel); if (unlikely(__pyx_t_5 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 29438, __pyx_L1_error) __pyx_v_err = __pyx_t_5; /* "cuda/cudart.pyx":29439 * cdef cudaEglFrame eglFrame = cudaEglFrame() * err = ccudart.cudaGraphicsResourceGetMappedEglFrame(eglFrame._ptr, cresource, index, mipLevel) * return (cudaError_t(err), eglFrame) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29439, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 29439, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29439, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29439, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 29439, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_eglFrame); __Pyx_GIVEREF((PyObject *)__pyx_v_eglFrame); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_eglFrame))) __PYX_ERR(0, 29439, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":29392 * return (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_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":29441 * return (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_6cudart_575cudaEventCreateFromEGLSync(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_574cudaEventCreateFromEGLSync, "cudaEventCreateFromEGLSync(eglSync, unsigned int flags)\n Creates an event from EGLSync object.\n\n Creates an event *phEvent from an EGLSyncKHR eglSync with the flages\n specified 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\n created from EGLSync.\n\n The EGLSyncKHR is an opaque handle to an EGL sync object. typedef void*\n EGLSyncKHR\n\n Parameters\n ----------\n eglSync : :py:obj:`~.EGLSyncKHR`\n Opaque handle to EGLSync object\n flags : unsigned int\n Event creation flags\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInitializationError`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorLaunchFailure`, :py:obj:`~.cudaErrorMemoryAllocation`\n phEvent : :py:obj:`~.cudaEvent_t`\n Returns newly created event\n\n See Also\n --------\n :py:obj:`~.cudaEventQuery`, :py:obj:`~.cudaEventSynchronize`, :py:obj:`~.cudaEventDestroy`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_575cudaEventCreateFromEGLSync = {"cudaEventCreateFromEGLSync", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_575cudaEventCreateFromEGLSync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_574cudaEventCreateFromEGLSync}; static PyObject *__pyx_pw_4cuda_6cudart_575cudaEventCreateFromEGLSync(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eglSync,&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_eglSync)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29441, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29441, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaEventCreateFromEGLSync", 1, 2, 2, 1); __PYX_ERR(0, 29441, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaEventCreateFromEGLSync") < 0)) __PYX_ERR(0, 29441, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_eglSync = values[0]; __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[1]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 29442, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaEventCreateFromEGLSync", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 29441, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaEventCreateFromEGLSync", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_574cudaEventCreateFromEGLSync(__pyx_self, __pyx_v_eglSync, __pyx_v_flags); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_574cudaEventCreateFromEGLSync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_eglSync, unsigned int __pyx_v_flags) { __pyx_t_4cuda_7ccudart_EGLSyncKHR __pyx_v_ceglSync; PyObject *__pyx_v_peglSync = NULL; struct __pyx_obj_4cuda_6cudart_cudaEvent_t *__pyx_v_phEvent = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; cudaError_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__642) __Pyx_RefNannySetupContext("cudaEventCreateFromEGLSync", 1); __Pyx_TraceCall("cudaEventCreateFromEGLSync", __pyx_f[0], 29441, 0, __PYX_ERR(0, 29441, __pyx_L1_error)); /* "cuda/cudart.pyx":29480 * """ * cdef ccudart.EGLSyncKHR ceglSync * if eglSync is None: # <<<<<<<<<<<<<< * ceglSync = 0 * elif isinstance(eglSync, (EGLSyncKHR,)): */ __pyx_t_1 = (__pyx_v_eglSync == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":29481 * cdef ccudart.EGLSyncKHR ceglSync * if eglSync is None: * ceglSync = 0 # <<<<<<<<<<<<<< * elif isinstance(eglSync, (EGLSyncKHR,)): * peglSync = int(eglSync) */ __pyx_v_ceglSync = ((__pyx_t_4cuda_7ccudart_EGLSyncKHR)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":29480 * """ * cdef ccudart.EGLSyncKHR ceglSync * if eglSync is None: # <<<<<<<<<<<<<< * ceglSync = 0 * elif isinstance(eglSync, (EGLSyncKHR,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":29482 * if eglSync is None: * ceglSync = 0 * elif isinstance(eglSync, (EGLSyncKHR,)): # <<<<<<<<<<<<<< * peglSync = int(eglSync) * ceglSync = peglSync */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_eglSync, __pyx_ptype_4cuda_6cudart_EGLSyncKHR); if (__pyx_t_1) { /* "cuda/cudart.pyx":29483 * ceglSync = 0 * elif isinstance(eglSync, (EGLSyncKHR,)): * peglSync = int(eglSync) # <<<<<<<<<<<<<< * ceglSync = peglSync * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_eglSync); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29483, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_peglSync = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":29484 * elif isinstance(eglSync, (EGLSyncKHR,)): * peglSync = int(eglSync) * ceglSync = peglSync # <<<<<<<<<<<<<< * else: * peglSync = int(EGLSyncKHR(eglSync)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_peglSync); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29484, __pyx_L1_error) __pyx_v_ceglSync = ((__pyx_t_4cuda_7ccudart_EGLSyncKHR)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":29482 * if eglSync is None: * ceglSync = 0 * elif isinstance(eglSync, (EGLSyncKHR,)): # <<<<<<<<<<<<<< * peglSync = int(eglSync) * ceglSync = peglSync */ goto __pyx_L3; } /* "cuda/cudart.pyx":29486 * ceglSync = peglSync * else: * peglSync = int(EGLSyncKHR(eglSync)) # <<<<<<<<<<<<<< * ceglSync = peglSync * cdef cudaEvent_t phEvent = cudaEvent_t() */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_EGLSyncKHR), __pyx_v_eglSync); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29486, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29486, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_peglSync = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":29487 * else: * peglSync = int(EGLSyncKHR(eglSync)) * ceglSync = peglSync # <<<<<<<<<<<<<< * cdef cudaEvent_t phEvent = cudaEvent_t() * err = ccudart.cudaEventCreateFromEGLSync(phEvent._ptr, ceglSync, flags) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_peglSync); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29487, __pyx_L1_error) __pyx_v_ceglSync = ((__pyx_t_4cuda_7ccudart_EGLSyncKHR)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":29488 * peglSync = int(EGLSyncKHR(eglSync)) * ceglSync = peglSync * cdef cudaEvent_t phEvent = cudaEvent_t() # <<<<<<<<<<<<<< * err = ccudart.cudaEventCreateFromEGLSync(phEvent._ptr, ceglSync, flags) * return (cudaError_t(err), phEvent) */ __pyx_t_4 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEvent_t)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29488, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_phEvent = ((struct __pyx_obj_4cuda_6cudart_cudaEvent_t *)__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":29489 * ceglSync = peglSync * cdef cudaEvent_t phEvent = cudaEvent_t() * err = ccudart.cudaEventCreateFromEGLSync(phEvent._ptr, ceglSync, flags) # <<<<<<<<<<<<<< * return (cudaError_t(err), phEvent) * */ __pyx_t_5 = __pyx_f_4cuda_7ccudart_cudaEventCreateFromEGLSync(((cudaEvent_t *)__pyx_v_phEvent->__pyx_base._ptr), __pyx_v_ceglSync, __pyx_v_flags); if (unlikely(__pyx_t_5 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 29489, __pyx_L1_error) __pyx_v_err = __pyx_t_5; /* "cuda/cudart.pyx":29490 * cdef cudaEvent_t phEvent = cudaEvent_t() * err = ccudart.cudaEventCreateFromEGLSync(phEvent._ptr, ceglSync, flags) * return (cudaError_t(err), phEvent) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29490, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 29490, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29490, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29490, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 29490, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_phEvent); __Pyx_GIVEREF((PyObject *)__pyx_v_phEvent); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_phEvent))) __PYX_ERR(0, 29490, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":29441 * return (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_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":29492 * return (cudaError_t(err), phEvent) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaProfilerStart(): * """ Enable profiling. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_577cudaProfilerStart(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_576cudaProfilerStart, "cudaProfilerStart()\n Enable profiling.\n\n Enables profile collection by the active profiling tool for the current\n context. If profiling is already enabled, then\n :py:obj:`~.cudaProfilerStart()` has no effect.\n\n cudaProfilerStart and cudaProfilerStop APIs are used to\n programmatically control the profiling granularity by allowing\n profiling to be done only on selective pieces of code.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`\n\n See Also\n --------\n :py:obj:`~.cudaProfilerStop`, :py:obj:`~.cuProfilerStart`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_577cudaProfilerStart = {"cudaProfilerStart", (PyCFunction)__pyx_pw_4cuda_6cudart_577cudaProfilerStart, METH_NOARGS, __pyx_doc_4cuda_6cudart_576cudaProfilerStart}; static PyObject *__pyx_pw_4cuda_6cudart_577cudaProfilerStart(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_6cudart_576cudaProfilerStart(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_576cudaProfilerStart(CYTHON_UNUSED PyObject *__pyx_self) { cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__643) __Pyx_RefNannySetupContext("cudaProfilerStart", 1); __Pyx_TraceCall("cudaProfilerStart", __pyx_f[0], 29492, 0, __PYX_ERR(0, 29492, __pyx_L1_error)); /* "cuda/cudart.pyx":29513 * :py:obj:`~.cudaProfilerStop`, :py:obj:`~.cuProfilerStart` * """ * err = ccudart.cudaProfilerStart() # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_1 = __pyx_f_4cuda_7ccudart_cudaProfilerStart(); if (unlikely(__pyx_t_1 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 29513, __pyx_L1_error) __pyx_v_err = __pyx_t_1; /* "cuda/cudart.pyx":29514 * """ * err = ccudart.cudaProfilerStart() * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29514, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29514, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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(0, 29514, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29514, __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)) __PYX_ERR(0, 29514, __pyx_L1_error); __pyx_t_2 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":29492 * return (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_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaProfilerStart", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":29516 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaProfilerStop(): * """ Disable profiling. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_579cudaProfilerStop(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_578cudaProfilerStop, "cudaProfilerStop()\n Disable profiling.\n\n Disables profile collection by the active profiling tool for the\n current context. If profiling is already disabled, then\n :py:obj:`~.cudaProfilerStop()` has no effect.\n\n cudaProfilerStart and cudaProfilerStop APIs are used to\n programmatically control the profiling granularity by allowing\n profiling to be done only on selective pieces of code.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`\n\n See Also\n --------\n :py:obj:`~.cudaProfilerStart`, :py:obj:`~.cuProfilerStop`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_579cudaProfilerStop = {"cudaProfilerStop", (PyCFunction)__pyx_pw_4cuda_6cudart_579cudaProfilerStop, METH_NOARGS, __pyx_doc_4cuda_6cudart_578cudaProfilerStop}; static PyObject *__pyx_pw_4cuda_6cudart_579cudaProfilerStop(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_6cudart_578cudaProfilerStop(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_578cudaProfilerStop(CYTHON_UNUSED PyObject *__pyx_self) { cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__644) __Pyx_RefNannySetupContext("cudaProfilerStop", 1); __Pyx_TraceCall("cudaProfilerStop", __pyx_f[0], 29516, 0, __PYX_ERR(0, 29516, __pyx_L1_error)); /* "cuda/cudart.pyx":29537 * :py:obj:`~.cudaProfilerStart`, :py:obj:`~.cuProfilerStop` * """ * err = ccudart.cudaProfilerStop() # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_1 = __pyx_f_4cuda_7ccudart_cudaProfilerStop(); if (unlikely(__pyx_t_1 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 29537, __pyx_L1_error) __pyx_v_err = __pyx_t_1; /* "cuda/cudart.pyx":29538 * """ * err = ccudart.cudaProfilerStop() * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29538, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29538, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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(0, 29538, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29538, __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)) __PYX_ERR(0, 29538, __pyx_L1_error); __pyx_t_2 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":29516 * return (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_XDECREF(__pyx_t_5); __Pyx_AddTraceback("cuda.cudart.cudaProfilerStop", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":29540 * return (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_6cudart_581cudaGLGetDevices(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_580cudaGLGetDevices, "cudaGLGetDevices(unsigned int cudaDeviceCount, deviceList: cudaGLDeviceList)\n Gets the CUDA devices associated with the current OpenGL context.\n\n Returns in `*pCudaDeviceCount` the number of CUDA-compatible devices\n corresponding to the current OpenGL context. Also returns in\n `*pCudaDevices` at most `cudaDeviceCount` of the CUDA-compatible\n devices corresponding to the current OpenGL context. If any of the GPUs\n being used by the current OpenGL context are not CUDA capable then the\n call will return cudaErrorNoDevice.\n\n Parameters\n ----------\n cudaDeviceCount : unsigned int\n The size of the output device array `pCudaDevices`\n deviceList : 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\n Returns\n -------\n cudaError_t\n cudaSuccess\n cudaErrorNoDevice\n cudaErrorInvalidGraphicsContext\n cudaErrorUnknown\n pCudaDeviceCount : unsigned int\n Returned number of CUDA devices corresponding to the current OpenGL\n context\n pCudaDevices : List[int]\n Returned CUDA devices corresponding to the current OpenGL context\n\n See Also\n --------\n ~.cudaGraphicsUnregisterResource\n ~.cudaGraphicsMapResources\n ~.cudaGraphicsSubResourceGetMappedArray\n ~.cudaGraphicsResourceGetMappedPointer\n ~.cuGLGetDevices\n\n Notes\n -----\n This function is not supported on Mac OS X.\n\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_581cudaGLGetDevices = {"cudaGLGetDevices", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_581cudaGLGetDevices, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_580cudaGLGetDevices}; static PyObject *__pyx_pw_4cuda_6cudart_581cudaGLGetDevices(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_cudaDeviceCount,&__pyx_n_s_deviceList,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_cudaDeviceCount)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29540, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_deviceList)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29540, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGLGetDevices", 1, 2, 2, 1); __PYX_ERR(0, 29540, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGLGetDevices") < 0)) __PYX_ERR(0, 29540, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_cudaDeviceCount = __Pyx_PyInt_As_unsigned_int(values[0]); if (unlikely((__pyx_v_cudaDeviceCount == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 29541, __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, 29540, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.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, 29541, __pyx_L1_error) } __pyx_r = __pyx_pf_4cuda_6cudart_580cudaGLGetDevices(__pyx_self, __pyx_v_cudaDeviceCount, __pyx_v_deviceList); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_580cudaGLGetDevices(CYTHON_UNUSED PyObject *__pyx_self, unsigned int __pyx_v_cudaDeviceCount, PyObject *__pyx_v_deviceList) { unsigned int __pyx_v_pCudaDeviceCount; int *__pyx_v_cpCudaDevices; PyObject *__pyx_v_pypCudaDevices = NULL; enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList __pyx_v_cdeviceList; cudaError_t __pyx_v_err; unsigned int __pyx_10genexpr155__pyx_v_idx; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList __pyx_t_5; cudaError_t __pyx_t_6; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; unsigned int __pyx_t_9; unsigned int __pyx_t_10; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__645) __Pyx_RefNannySetupContext("cudaGLGetDevices", 1); __Pyx_TraceCall("cudaGLGetDevices", __pyx_f[0], 29540, 0, __PYX_ERR(0, 29540, __pyx_L1_error)); /* "cuda/cudart.pyx":29587 * * """ * cdef unsigned int pCudaDeviceCount = 0 # <<<<<<<<<<<<<< * cdef int* cpCudaDevices = NULL * pypCudaDevices = [] */ __pyx_v_pCudaDeviceCount = 0; /* "cuda/cudart.pyx":29588 * """ * cdef unsigned int pCudaDeviceCount = 0 * cdef int* cpCudaDevices = NULL # <<<<<<<<<<<<<< * pypCudaDevices = [] * if cudaDeviceCount != 0: */ __pyx_v_cpCudaDevices = NULL; /* "cuda/cudart.pyx":29589 * cdef unsigned int pCudaDeviceCount = 0 * cdef int* cpCudaDevices = NULL * pypCudaDevices = [] # <<<<<<<<<<<<<< * if cudaDeviceCount != 0: * cpCudaDevices = calloc(cudaDeviceCount, sizeof(int)) */ __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29589, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_pypCudaDevices = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "cuda/cudart.pyx":29590 * cdef int* cpCudaDevices = NULL * pypCudaDevices = [] * if cudaDeviceCount != 0: # <<<<<<<<<<<<<< * cpCudaDevices = calloc(cudaDeviceCount, sizeof(int)) * if cpCudaDevices is NULL: */ __pyx_t_2 = (__pyx_v_cudaDeviceCount != 0); if (__pyx_t_2) { /* "cuda/cudart.pyx":29591 * pypCudaDevices = [] * if cudaDeviceCount != 0: * cpCudaDevices = calloc(cudaDeviceCount, sizeof(int)) # <<<<<<<<<<<<<< * if cpCudaDevices is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(cudaDeviceCount) + 'x' + str(sizeof(int))) */ __pyx_v_cpCudaDevices = ((int *)calloc(__pyx_v_cudaDeviceCount, (sizeof(int)))); /* "cuda/cudart.pyx":29592 * if cudaDeviceCount != 0: * cpCudaDevices = calloc(cudaDeviceCount, sizeof(int)) * if cpCudaDevices is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(cudaDeviceCount) + 'x' + str(sizeof(int))) * cdef ccudart.cudaGLDeviceList cdeviceList = deviceList.value */ __pyx_t_2 = (__pyx_v_cpCudaDevices == NULL); if (unlikely(__pyx_t_2)) { /* "cuda/cudart.pyx":29593 * cpCudaDevices = calloc(cudaDeviceCount, sizeof(int)) * if cpCudaDevices is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(cudaDeviceCount) + 'x' + str(sizeof(int))) # <<<<<<<<<<<<<< * cdef ccudart.cudaGLDeviceList cdeviceList = deviceList.value * err = ccudart.cudaGLGetDevices(&pCudaDeviceCount, cpCudaDevices, cudaDeviceCount, cdeviceList) */ __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_cudaDeviceCount); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29593, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29593, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29593, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_1, __pyx_n_u_x_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29593, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(int))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29593, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29593, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29593, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_MemoryError, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29593, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __PYX_ERR(0, 29593, __pyx_L1_error) /* "cuda/cudart.pyx":29592 * if cudaDeviceCount != 0: * cpCudaDevices = calloc(cudaDeviceCount, sizeof(int)) * if cpCudaDevices is NULL: # <<<<<<<<<<<<<< * raise MemoryError('Failed to allocate length x size memory: ' + str(cudaDeviceCount) + 'x' + str(sizeof(int))) * cdef ccudart.cudaGLDeviceList cdeviceList = deviceList.value */ } /* "cuda/cudart.pyx":29590 * cdef int* cpCudaDevices = NULL * pypCudaDevices = [] * if cudaDeviceCount != 0: # <<<<<<<<<<<<<< * cpCudaDevices = calloc(cudaDeviceCount, sizeof(int)) * if cpCudaDevices is NULL: */ } /* "cuda/cudart.pyx":29594 * if cpCudaDevices is NULL: * raise MemoryError('Failed to allocate length x size memory: ' + str(cudaDeviceCount) + 'x' + str(sizeof(int))) * cdef ccudart.cudaGLDeviceList cdeviceList = deviceList.value # <<<<<<<<<<<<<< * err = ccudart.cudaGLGetDevices(&pCudaDeviceCount, cpCudaDevices, cudaDeviceCount, cdeviceList) * if cudaError_t(err) == cudaError_t(0): */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_deviceList, __pyx_n_s_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29594, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = ((enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList)__Pyx_PyInt_As_enum____pyx_t_4cuda_7ccudart_cudaGLDeviceList(__pyx_t_4)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29594, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_cdeviceList = __pyx_t_5; /* "cuda/cudart.pyx":29595 * raise MemoryError('Failed to allocate length x size memory: ' + str(cudaDeviceCount) + 'x' + str(sizeof(int))) * cdef ccudart.cudaGLDeviceList cdeviceList = deviceList.value * err = ccudart.cudaGLGetDevices(&pCudaDeviceCount, cpCudaDevices, cudaDeviceCount, cdeviceList) # <<<<<<<<<<<<<< * if cudaError_t(err) == cudaError_t(0): * pypCudaDevices = [cpCudaDevices[idx] for idx in range(cudaDeviceCount)] */ __pyx_t_6 = __pyx_f_4cuda_7ccudart_cudaGLGetDevices((&__pyx_v_pCudaDeviceCount), __pyx_v_cpCudaDevices, __pyx_v_cudaDeviceCount, __pyx_v_cdeviceList); if (unlikely(__pyx_t_6 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 29595, __pyx_L1_error) __pyx_v_err = __pyx_t_6; /* "cuda/cudart.pyx":29596 * cdef ccudart.cudaGLDeviceList cdeviceList = deviceList.value * err = ccudart.cudaGLGetDevices(&pCudaDeviceCount, cpCudaDevices, cudaDeviceCount, cdeviceList) * if cudaError_t(err) == cudaError_t(0): # <<<<<<<<<<<<<< * pypCudaDevices = [cpCudaDevices[idx] for idx in range(cudaDeviceCount)] * if cpCudaDevices is not NULL: */ __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29596, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29596, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_3}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __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, 29596, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29596, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_int_0}; __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29596, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = PyObject_RichCompare(__pyx_t_4, __pyx_t_1, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29596, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __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, 29596, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":29597 * err = ccudart.cudaGLGetDevices(&pCudaDeviceCount, cpCudaDevices, cudaDeviceCount, cdeviceList) * if cudaError_t(err) == cudaError_t(0): * pypCudaDevices = [cpCudaDevices[idx] for idx in range(cudaDeviceCount)] # <<<<<<<<<<<<<< * if cpCudaDevices is not NULL: * free(cpCudaDevices) */ { /* enter inner scope */ __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29597, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = __pyx_v_cudaDeviceCount; __pyx_t_9 = __pyx_t_8; for (__pyx_t_10 = 0; __pyx_t_10 < __pyx_t_9; __pyx_t_10+=1) { __pyx_10genexpr155__pyx_v_idx = __pyx_t_10; __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_6cudart_void_ptr)(__pyx_v_cpCudaDevices[__pyx_10genexpr155__pyx_v_idx]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29597, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_1))) __PYX_ERR(0, 29597, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } } /* exit inner scope */ __Pyx_DECREF_SET(__pyx_v_pypCudaDevices, ((PyObject*)__pyx_t_3)); __pyx_t_3 = 0; /* "cuda/cudart.pyx":29596 * cdef ccudart.cudaGLDeviceList cdeviceList = deviceList.value * err = ccudart.cudaGLGetDevices(&pCudaDeviceCount, cpCudaDevices, cudaDeviceCount, cdeviceList) * if cudaError_t(err) == cudaError_t(0): # <<<<<<<<<<<<<< * pypCudaDevices = [cpCudaDevices[idx] for idx in range(cudaDeviceCount)] * if cpCudaDevices is not NULL: */ } /* "cuda/cudart.pyx":29598 * if cudaError_t(err) == cudaError_t(0): * pypCudaDevices = [cpCudaDevices[idx] for idx in range(cudaDeviceCount)] * if cpCudaDevices is not NULL: # <<<<<<<<<<<<<< * free(cpCudaDevices) * return (cudaError_t(err), pCudaDeviceCount, pypCudaDevices) */ __pyx_t_2 = (__pyx_v_cpCudaDevices != NULL); if (__pyx_t_2) { /* "cuda/cudart.pyx":29599 * pypCudaDevices = [cpCudaDevices[idx] for idx in range(cudaDeviceCount)] * if cpCudaDevices is not NULL: * free(cpCudaDevices) # <<<<<<<<<<<<<< * return (cudaError_t(err), pCudaDeviceCount, pypCudaDevices) * */ free(__pyx_v_cpCudaDevices); /* "cuda/cudart.pyx":29598 * if cudaError_t(err) == cudaError_t(0): * pypCudaDevices = [cpCudaDevices[idx] for idx in range(cudaDeviceCount)] * if cpCudaDevices is not NULL: # <<<<<<<<<<<<<< * free(cpCudaDevices) * return (cudaError_t(err), pCudaDeviceCount, pypCudaDevices) */ } /* "cuda/cudart.pyx":29600 * if cpCudaDevices is not NULL: * free(cpCudaDevices) * return (cudaError_t(err), pCudaDeviceCount, pypCudaDevices) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29600, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29600, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_1))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_1); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_1, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_4}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __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, 29600, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_pCudaDeviceCount); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29600, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29600, __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)) __PYX_ERR(0, 29600, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_1); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1)) __PYX_ERR(0, 29600, __pyx_L1_error); __Pyx_INCREF(__pyx_v_pypCudaDevices); __Pyx_GIVEREF(__pyx_v_pypCudaDevices); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_pypCudaDevices)) __PYX_ERR(0, 29600, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":29540 * return (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_7); __Pyx_AddTraceback("cuda.cudart.cudaGLGetDevices", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pypCudaDevices); __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":29602 * return (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_6cudart_583cudaGraphicsGLRegisterImage(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_582cudaGraphicsGLRegisterImage, "cudaGraphicsGLRegisterImage(image, target, unsigned int flags)\n Register an OpenGL texture or renderbuffer object.\n\n Registers the texture or renderbuffer object specified by `image` for\n access 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\n The 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\n The following image formats are supported. For brevity's sake, the list\n is abbreviated. For ex., {GL_R, GL_RG} X {8, 16} would expand to the\n following 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\n The following image classes are currently disallowed:\n\n - Textures with borders\n\n - Multisampled renderbuffers\n\n Parameters\n ----------\n image : :py:obj:`~.GLuint`\n name of texture or renderbuffer object to be registered\n target : :py:obj:`~.GLenum`\n Identifies the type of object specified by `image`\n flags : unsigned int\n Register flags\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorOperatingSystem`, :py:obj:`~.cudaErrorUnknown`\n resource : :py:obj:`~.cudaGraphicsResource`\n Pointer to the returned object handle\n\n See Also\n --------\n :py:obj:`~.cudaGraphicsUnregisterResource`, :py:obj:`~.cudaGraphicsMapResources`, :py:obj:`~.cudaGraphicsSubResourceGetMappedArray`, :py:obj:`~.cuGraphicsGLRegisterImage`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_583cudaGraphicsGLRegisterImage = {"cudaGraphicsGLRegisterImage", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_583cudaGraphicsGLRegisterImage, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_582cudaGraphicsGLRegisterImage}; static PyObject *__pyx_pw_4cuda_6cudart_583cudaGraphicsGLRegisterImage(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_image,&__pyx_n_s_target,&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_image)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29602, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_target)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29602, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphicsGLRegisterImage", 1, 3, 3, 1); __PYX_ERR(0, 29602, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29602, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphicsGLRegisterImage", 1, 3, 3, 2); __PYX_ERR(0, 29602, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphicsGLRegisterImage") < 0)) __PYX_ERR(0, 29602, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_image = values[0]; __pyx_v_target = values[1]; __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[2]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 29603, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphicsGLRegisterImage", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 29602, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphicsGLRegisterImage", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_582cudaGraphicsGLRegisterImage(__pyx_self, __pyx_v_image, __pyx_v_target, __pyx_v_flags); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_582cudaGraphicsGLRegisterImage(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_image, PyObject *__pyx_v_target, unsigned int __pyx_v_flags) { __pyx_t_4cuda_7ccudart_GLenum __pyx_v_ctarget; PyObject *__pyx_v_ptarget = NULL; __pyx_t_4cuda_7ccudart_GLuint __pyx_v_cimage; PyObject *__pyx_v_pimage = NULL; struct __pyx_obj_4cuda_6cudart_cudaGraphicsResource_t *__pyx_v_resource = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; cudaError_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__646) __Pyx_RefNannySetupContext("cudaGraphicsGLRegisterImage", 1); __Pyx_TraceCall("cudaGraphicsGLRegisterImage", __pyx_f[0], 29602, 0, __PYX_ERR(0, 29602, __pyx_L1_error)); /* "cuda/cudart.pyx":29677 * """ * cdef ccudart.GLenum ctarget * if target is None: # <<<<<<<<<<<<<< * ctarget = 0 * elif isinstance(target, (GLenum,)): */ __pyx_t_1 = (__pyx_v_target == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":29678 * cdef ccudart.GLenum ctarget * if target is None: * ctarget = 0 # <<<<<<<<<<<<<< * elif isinstance(target, (GLenum,)): * ptarget = int(target) */ __pyx_v_ctarget = ((__pyx_t_4cuda_7ccudart_GLenum)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":29677 * """ * cdef ccudart.GLenum ctarget * if target is None: # <<<<<<<<<<<<<< * ctarget = 0 * elif isinstance(target, (GLenum,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":29679 * if target is None: * ctarget = 0 * elif isinstance(target, (GLenum,)): # <<<<<<<<<<<<<< * ptarget = int(target) * ctarget = ptarget */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_target, __pyx_ptype_4cuda_6cudart_GLenum); if (__pyx_t_1) { /* "cuda/cudart.pyx":29680 * ctarget = 0 * elif isinstance(target, (GLenum,)): * ptarget = int(target) # <<<<<<<<<<<<<< * ctarget = ptarget * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_target); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29680, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_ptarget = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":29681 * elif isinstance(target, (GLenum,)): * ptarget = int(target) * ctarget = ptarget # <<<<<<<<<<<<<< * else: * ptarget = int(GLenum(target)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_ptarget); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29681, __pyx_L1_error) __pyx_v_ctarget = ((__pyx_t_4cuda_7ccudart_GLenum)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":29679 * if target is None: * ctarget = 0 * elif isinstance(target, (GLenum,)): # <<<<<<<<<<<<<< * ptarget = int(target) * ctarget = ptarget */ goto __pyx_L3; } /* "cuda/cudart.pyx":29683 * ctarget = ptarget * else: * ptarget = int(GLenum(target)) # <<<<<<<<<<<<<< * ctarget = ptarget * cdef ccudart.GLuint cimage */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_GLenum), __pyx_v_target); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29683, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29683, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_ptarget = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":29684 * else: * ptarget = int(GLenum(target)) * ctarget = ptarget # <<<<<<<<<<<<<< * cdef ccudart.GLuint cimage * if image is None: */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_ptarget); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29684, __pyx_L1_error) __pyx_v_ctarget = ((__pyx_t_4cuda_7ccudart_GLenum)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":29686 * ctarget = ptarget * cdef ccudart.GLuint cimage * if image is None: # <<<<<<<<<<<<<< * cimage = 0 * elif isinstance(image, (GLuint,)): */ __pyx_t_1 = (__pyx_v_image == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":29687 * cdef ccudart.GLuint cimage * if image is None: * cimage = 0 # <<<<<<<<<<<<<< * elif isinstance(image, (GLuint,)): * pimage = int(image) */ __pyx_v_cimage = ((__pyx_t_4cuda_7ccudart_GLuint)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":29686 * ctarget = ptarget * cdef ccudart.GLuint cimage * if image is None: # <<<<<<<<<<<<<< * cimage = 0 * elif isinstance(image, (GLuint,)): */ goto __pyx_L4; } /* "cuda/cudart.pyx":29688 * if image is None: * cimage = 0 * elif isinstance(image, (GLuint,)): # <<<<<<<<<<<<<< * pimage = int(image) * cimage = pimage */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_image, __pyx_ptype_4cuda_6cudart_GLuint); if (__pyx_t_1) { /* "cuda/cudart.pyx":29689 * cimage = 0 * elif isinstance(image, (GLuint,)): * pimage = int(image) # <<<<<<<<<<<<<< * cimage = pimage * else: */ __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_image); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29689, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_pimage = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":29690 * elif isinstance(image, (GLuint,)): * pimage = int(image) * cimage = pimage # <<<<<<<<<<<<<< * else: * pimage = int(GLuint(image)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pimage); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29690, __pyx_L1_error) __pyx_v_cimage = ((__pyx_t_4cuda_7ccudart_GLuint)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":29688 * if image is None: * cimage = 0 * elif isinstance(image, (GLuint,)): # <<<<<<<<<<<<<< * pimage = int(image) * cimage = pimage */ goto __pyx_L4; } /* "cuda/cudart.pyx":29692 * cimage = pimage * else: * pimage = int(GLuint(image)) # <<<<<<<<<<<<<< * cimage = pimage * cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t() */ /*else*/ { __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_GLuint), __pyx_v_image); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29692, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29692, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_pimage = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":29693 * else: * pimage = int(GLuint(image)) * cimage = pimage # <<<<<<<<<<<<<< * cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t() * err = ccudart.cudaGraphicsGLRegisterImage(resource._ptr, cimage, ctarget, flags) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pimage); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29693, __pyx_L1_error) __pyx_v_cimage = ((__pyx_t_4cuda_7ccudart_GLuint)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L4:; /* "cuda/cudart.pyx":29694 * pimage = int(GLuint(image)) * cimage = pimage * cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t() # <<<<<<<<<<<<<< * err = ccudart.cudaGraphicsGLRegisterImage(resource._ptr, cimage, ctarget, flags) * return (cudaError_t(err), resource) */ __pyx_t_2 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29694, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_resource = ((struct __pyx_obj_4cuda_6cudart_cudaGraphicsResource_t *)__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":29695 * cimage = pimage * cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t() * err = ccudart.cudaGraphicsGLRegisterImage(resource._ptr, cimage, ctarget, flags) # <<<<<<<<<<<<<< * return (cudaError_t(err), resource) * */ __pyx_t_5 = __pyx_f_4cuda_7ccudart_cudaGraphicsGLRegisterImage(__pyx_v_resource->_ptr, __pyx_v_cimage, __pyx_v_ctarget, __pyx_v_flags); if (unlikely(__pyx_t_5 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 29695, __pyx_L1_error) __pyx_v_err = __pyx_t_5; /* "cuda/cudart.pyx":29696 * cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t() * err = ccudart.cudaGraphicsGLRegisterImage(resource._ptr, cimage, ctarget, flags) * return (cudaError_t(err), resource) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29696, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 29696, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __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, 29696, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29696, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 29696, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_resource); __Pyx_GIVEREF((PyObject *)__pyx_v_resource); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, ((PyObject *)__pyx_v_resource))) __PYX_ERR(0, 29696, __pyx_L1_error); __pyx_t_2 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":29602 * return (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_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":29698 * return (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_6cudart_585cudaGraphicsGLRegisterBuffer(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_584cudaGraphicsGLRegisterBuffer, "cudaGraphicsGLRegisterBuffer(buffer, unsigned int flags)\n Registers an OpenGL buffer object.\n\n Registers the buffer object specified by `buffer` for access by CUDA. A\n handle to the registered object is returned as `resource`. The register\n 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 Parameters\n ----------\n buffer : :py:obj:`~.GLuint`\n name of buffer object to be registered\n flags : unsigned int\n Register flags\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorOperatingSystem`, :py:obj:`~.cudaErrorUnknown`\n resource : :py:obj:`~.cudaGraphicsResource`\n Pointer to the returned object handle\n\n See Also\n --------\n :py:obj:`~.cudaGraphicsUnregisterResource`, :py:obj:`~.cudaGraphicsMapResources`, :py:obj:`~.cudaGraphicsResourceGetMappedPointer`, :py:obj:`~.cuGraphicsGLRegisterBuffer`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_585cudaGraphicsGLRegisterBuffer = {"cudaGraphicsGLRegisterBuffer", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_585cudaGraphicsGLRegisterBuffer, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_584cudaGraphicsGLRegisterBuffer}; static PyObject *__pyx_pw_4cuda_6cudart_585cudaGraphicsGLRegisterBuffer(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_buffer,&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_buffer)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29698, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29698, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphicsGLRegisterBuffer", 1, 2, 2, 1); __PYX_ERR(0, 29698, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphicsGLRegisterBuffer") < 0)) __PYX_ERR(0, 29698, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_buffer = values[0]; __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[1]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 29699, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphicsGLRegisterBuffer", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 29698, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphicsGLRegisterBuffer", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_584cudaGraphicsGLRegisterBuffer(__pyx_self, __pyx_v_buffer, __pyx_v_flags); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_584cudaGraphicsGLRegisterBuffer(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_buffer, unsigned int __pyx_v_flags) { __pyx_t_4cuda_7ccudart_GLuint __pyx_v_cbuffer; PyObject *__pyx_v_pbuffer = NULL; struct __pyx_obj_4cuda_6cudart_cudaGraphicsResource_t *__pyx_v_resource = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; cudaError_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__647) __Pyx_RefNannySetupContext("cudaGraphicsGLRegisterBuffer", 1); __Pyx_TraceCall("cudaGraphicsGLRegisterBuffer", __pyx_f[0], 29698, 0, __PYX_ERR(0, 29698, __pyx_L1_error)); /* "cuda/cudart.pyx":29738 * """ * cdef ccudart.GLuint cbuffer * if buffer is None: # <<<<<<<<<<<<<< * cbuffer = 0 * elif isinstance(buffer, (GLuint,)): */ __pyx_t_1 = (__pyx_v_buffer == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":29739 * cdef ccudart.GLuint cbuffer * if buffer is None: * cbuffer = 0 # <<<<<<<<<<<<<< * elif isinstance(buffer, (GLuint,)): * pbuffer = int(buffer) */ __pyx_v_cbuffer = ((__pyx_t_4cuda_7ccudart_GLuint)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":29738 * """ * cdef ccudart.GLuint cbuffer * if buffer is None: # <<<<<<<<<<<<<< * cbuffer = 0 * elif isinstance(buffer, (GLuint,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":29740 * if buffer is None: * cbuffer = 0 * elif isinstance(buffer, (GLuint,)): # <<<<<<<<<<<<<< * pbuffer = int(buffer) * cbuffer = pbuffer */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_buffer, __pyx_ptype_4cuda_6cudart_GLuint); if (__pyx_t_1) { /* "cuda/cudart.pyx":29741 * cbuffer = 0 * elif isinstance(buffer, (GLuint,)): * pbuffer = int(buffer) # <<<<<<<<<<<<<< * cbuffer = pbuffer * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_buffer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29741, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_pbuffer = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":29742 * elif isinstance(buffer, (GLuint,)): * pbuffer = int(buffer) * cbuffer = pbuffer # <<<<<<<<<<<<<< * else: * pbuffer = int(GLuint(buffer)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pbuffer); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29742, __pyx_L1_error) __pyx_v_cbuffer = ((__pyx_t_4cuda_7ccudart_GLuint)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":29740 * if buffer is None: * cbuffer = 0 * elif isinstance(buffer, (GLuint,)): # <<<<<<<<<<<<<< * pbuffer = int(buffer) * cbuffer = pbuffer */ goto __pyx_L3; } /* "cuda/cudart.pyx":29744 * cbuffer = pbuffer * else: * pbuffer = int(GLuint(buffer)) # <<<<<<<<<<<<<< * cbuffer = pbuffer * cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t() */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_GLuint), __pyx_v_buffer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29744, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29744, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_pbuffer = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":29745 * else: * pbuffer = int(GLuint(buffer)) * cbuffer = pbuffer # <<<<<<<<<<<<<< * cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t() * err = ccudart.cudaGraphicsGLRegisterBuffer(resource._ptr, cbuffer, flags) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pbuffer); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29745, __pyx_L1_error) __pyx_v_cbuffer = ((__pyx_t_4cuda_7ccudart_GLuint)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":29746 * pbuffer = int(GLuint(buffer)) * cbuffer = pbuffer * cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t() # <<<<<<<<<<<<<< * err = ccudart.cudaGraphicsGLRegisterBuffer(resource._ptr, cbuffer, flags) * return (cudaError_t(err), resource) */ __pyx_t_4 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29746, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_resource = ((struct __pyx_obj_4cuda_6cudart_cudaGraphicsResource_t *)__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":29747 * cbuffer = pbuffer * cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t() * err = ccudart.cudaGraphicsGLRegisterBuffer(resource._ptr, cbuffer, flags) # <<<<<<<<<<<<<< * return (cudaError_t(err), resource) * */ __pyx_t_5 = __pyx_f_4cuda_7ccudart_cudaGraphicsGLRegisterBuffer(__pyx_v_resource->_ptr, __pyx_v_cbuffer, __pyx_v_flags); if (unlikely(__pyx_t_5 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 29747, __pyx_L1_error) __pyx_v_err = __pyx_t_5; /* "cuda/cudart.pyx":29748 * cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t() * err = ccudart.cudaGraphicsGLRegisterBuffer(resource._ptr, cbuffer, flags) * return (cudaError_t(err), resource) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29748, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 29748, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29748, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29748, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 29748, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_resource); __Pyx_GIVEREF((PyObject *)__pyx_v_resource); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_resource))) __PYX_ERR(0, 29748, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":29698 * return (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_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":29750 * return (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_6cudart_587cudaVDPAUGetDevice(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_586cudaVDPAUGetDevice, "cudaVDPAUGetDevice(vdpDevice, vdpGetProcAddress)\n Gets the CUDA device associated with a VdpDevice.\n\n Returns the CUDA device associated with a VdpDevice, if applicable.\n\n Parameters\n ----------\n vdpDevice : :py:obj:`~.VdpDevice`\n A VdpDevice handle\n vdpGetProcAddress : :py:obj:`~.VdpGetProcAddress`\n VDPAU's VdpGetProcAddress function pointer\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`\n device : int\n Returns the device associated with vdpDevice, or -1 if the device\n associated with vdpDevice is not a compute device.\n\n See Also\n --------\n :py:obj:`~.cudaVDPAUSetVDPAUDevice`, :py:obj:`~.cuVDPAUGetDevice`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_587cudaVDPAUGetDevice = {"cudaVDPAUGetDevice", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_587cudaVDPAUGetDevice, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_586cudaVDPAUGetDevice}; static PyObject *__pyx_pw_4cuda_6cudart_587cudaVDPAUGetDevice(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_vdpDevice,&__pyx_n_s_vdpGetProcAddress,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_vdpDevice)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29750, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_vdpGetProcAddress)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29750, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaVDPAUGetDevice", 1, 2, 2, 1); __PYX_ERR(0, 29750, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaVDPAUGetDevice") < 0)) __PYX_ERR(0, 29750, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __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, 29750, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaVDPAUGetDevice", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_586cudaVDPAUGetDevice(__pyx_self, __pyx_v_vdpDevice, __pyx_v_vdpGetProcAddress); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_586cudaVDPAUGetDevice(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_vdpDevice, PyObject *__pyx_v_vdpGetProcAddress) { __pyx_t_4cuda_7ccudart_VdpGetProcAddress *__pyx_v_cvdpGetProcAddress; PyObject *__pyx_v_pvdpGetProcAddress = NULL; __pyx_t_4cuda_7ccudart_VdpDevice __pyx_v_cvdpDevice; PyObject *__pyx_v_pvdpDevice = NULL; int __pyx_v_device; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; __pyx_t_4cuda_6cudart_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_TraceFrameInit(__pyx_codeobj__648) __Pyx_RefNannySetupContext("cudaVDPAUGetDevice", 1); __Pyx_TraceCall("cudaVDPAUGetDevice", __pyx_f[0], 29750, 0, __PYX_ERR(0, 29750, __pyx_L1_error)); /* "cuda/cudart.pyx":29776 * """ * cdef ccudart.VdpGetProcAddress *cvdpGetProcAddress * if vdpGetProcAddress is None: # <<<<<<<<<<<<<< * cvdpGetProcAddress = NULL * elif isinstance(vdpGetProcAddress, (VdpGetProcAddress,)): */ __pyx_t_1 = (__pyx_v_vdpGetProcAddress == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":29777 * cdef ccudart.VdpGetProcAddress *cvdpGetProcAddress * if vdpGetProcAddress is None: * cvdpGetProcAddress = NULL # <<<<<<<<<<<<<< * elif isinstance(vdpGetProcAddress, (VdpGetProcAddress,)): * pvdpGetProcAddress = vdpGetProcAddress.getPtr() */ __pyx_v_cvdpGetProcAddress = ((__pyx_t_4cuda_7ccudart_VdpGetProcAddress *)((__pyx_t_4cuda_6cudart_void_ptr)NULL)); /* "cuda/cudart.pyx":29776 * """ * cdef ccudart.VdpGetProcAddress *cvdpGetProcAddress * if vdpGetProcAddress is None: # <<<<<<<<<<<<<< * cvdpGetProcAddress = NULL * elif isinstance(vdpGetProcAddress, (VdpGetProcAddress,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":29778 * if vdpGetProcAddress is None: * cvdpGetProcAddress = NULL * elif isinstance(vdpGetProcAddress, (VdpGetProcAddress,)): # <<<<<<<<<<<<<< * pvdpGetProcAddress = vdpGetProcAddress.getPtr() * cvdpGetProcAddress = pvdpGetProcAddress */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_vdpGetProcAddress, __pyx_ptype_4cuda_6cudart_VdpGetProcAddress); if (__pyx_t_1) { /* "cuda/cudart.pyx":29779 * cvdpGetProcAddress = NULL * elif isinstance(vdpGetProcAddress, (VdpGetProcAddress,)): * pvdpGetProcAddress = vdpGetProcAddress.getPtr() # <<<<<<<<<<<<<< * cvdpGetProcAddress = pvdpGetProcAddress * elif isinstance(vdpGetProcAddress, (int)): */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_vdpGetProcAddress, __pyx_n_s_getPtr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29779, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29779, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v_pvdpGetProcAddress = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":29780 * elif isinstance(vdpGetProcAddress, (VdpGetProcAddress,)): * pvdpGetProcAddress = vdpGetProcAddress.getPtr() * cvdpGetProcAddress = pvdpGetProcAddress # <<<<<<<<<<<<<< * elif isinstance(vdpGetProcAddress, (int)): * cvdpGetProcAddress = vdpGetProcAddress */ __pyx_t_6 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pvdpGetProcAddress); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29780, __pyx_L1_error) __pyx_v_cvdpGetProcAddress = ((__pyx_t_4cuda_7ccudart_VdpGetProcAddress *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_6)); /* "cuda/cudart.pyx":29778 * if vdpGetProcAddress is None: * cvdpGetProcAddress = NULL * elif isinstance(vdpGetProcAddress, (VdpGetProcAddress,)): # <<<<<<<<<<<<<< * pvdpGetProcAddress = vdpGetProcAddress.getPtr() * cvdpGetProcAddress = pvdpGetProcAddress */ goto __pyx_L3; } /* "cuda/cudart.pyx":29781 * pvdpGetProcAddress = vdpGetProcAddress.getPtr() * cvdpGetProcAddress = pvdpGetProcAddress * elif isinstance(vdpGetProcAddress, (int)): # <<<<<<<<<<<<<< * cvdpGetProcAddress = vdpGetProcAddress * else: */ __pyx_t_1 = PyInt_Check(__pyx_v_vdpGetProcAddress); if (likely(__pyx_t_1)) { /* "cuda/cudart.pyx":29782 * cvdpGetProcAddress = pvdpGetProcAddress * elif isinstance(vdpGetProcAddress, (int)): * cvdpGetProcAddress = vdpGetProcAddress # <<<<<<<<<<<<<< * else: * raise TypeError("Argument 'vdpGetProcAddress' is not instance of type (expected , found " + str(type(vdpGetProcAddress))) */ __pyx_t_6 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_vdpGetProcAddress); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29782, __pyx_L1_error) __pyx_v_cvdpGetProcAddress = ((__pyx_t_4cuda_7ccudart_VdpGetProcAddress *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_6)); /* "cuda/cudart.pyx":29781 * pvdpGetProcAddress = vdpGetProcAddress.getPtr() * cvdpGetProcAddress = pvdpGetProcAddress * elif isinstance(vdpGetProcAddress, (int)): # <<<<<<<<<<<<<< * cvdpGetProcAddress = vdpGetProcAddress * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":29784 * cvdpGetProcAddress = vdpGetProcAddress * else: * raise TypeError("Argument 'vdpGetProcAddress' is not instance of type (expected , found " + str(type(vdpGetProcAddress))) # <<<<<<<<<<<<<< * cdef ccudart.VdpDevice cvdpDevice * if vdpDevice is None: */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_vdpGetProcAddress))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29784, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Argument_vdpGetProcAddress_is_no, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29784, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29784, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __PYX_ERR(0, 29784, __pyx_L1_error) } __pyx_L3:; /* "cuda/cudart.pyx":29786 * raise TypeError("Argument 'vdpGetProcAddress' is not instance of type (expected , found " + str(type(vdpGetProcAddress))) * cdef ccudart.VdpDevice cvdpDevice * if vdpDevice is None: # <<<<<<<<<<<<<< * cvdpDevice = 0 * elif isinstance(vdpDevice, (VdpDevice,)): */ __pyx_t_1 = (__pyx_v_vdpDevice == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":29787 * cdef ccudart.VdpDevice cvdpDevice * if vdpDevice is None: * cvdpDevice = 0 # <<<<<<<<<<<<<< * elif isinstance(vdpDevice, (VdpDevice,)): * pvdpDevice = int(vdpDevice) */ __pyx_v_cvdpDevice = ((__pyx_t_4cuda_7ccudart_VdpDevice)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":29786 * raise TypeError("Argument 'vdpGetProcAddress' is not instance of type (expected , found " + str(type(vdpGetProcAddress))) * cdef ccudart.VdpDevice cvdpDevice * if vdpDevice is None: # <<<<<<<<<<<<<< * cvdpDevice = 0 * elif isinstance(vdpDevice, (VdpDevice,)): */ goto __pyx_L4; } /* "cuda/cudart.pyx":29788 * if vdpDevice is None: * cvdpDevice = 0 * elif isinstance(vdpDevice, (VdpDevice,)): # <<<<<<<<<<<<<< * pvdpDevice = int(vdpDevice) * cvdpDevice = pvdpDevice */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_vdpDevice, __pyx_ptype_4cuda_6cudart_VdpDevice); if (__pyx_t_1) { /* "cuda/cudart.pyx":29789 * cvdpDevice = 0 * elif isinstance(vdpDevice, (VdpDevice,)): * pvdpDevice = int(vdpDevice) # <<<<<<<<<<<<<< * cvdpDevice = pvdpDevice * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_vdpDevice); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29789, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_pvdpDevice = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":29790 * elif isinstance(vdpDevice, (VdpDevice,)): * pvdpDevice = int(vdpDevice) * cvdpDevice = pvdpDevice # <<<<<<<<<<<<<< * else: * pvdpDevice = int(VdpDevice(vdpDevice)) */ __pyx_t_6 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pvdpDevice); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29790, __pyx_L1_error) __pyx_v_cvdpDevice = ((__pyx_t_4cuda_7ccudart_VdpDevice)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_6)); /* "cuda/cudart.pyx":29788 * if vdpDevice is None: * cvdpDevice = 0 * elif isinstance(vdpDevice, (VdpDevice,)): # <<<<<<<<<<<<<< * pvdpDevice = int(vdpDevice) * cvdpDevice = pvdpDevice */ goto __pyx_L4; } /* "cuda/cudart.pyx":29792 * cvdpDevice = pvdpDevice * else: * pvdpDevice = int(VdpDevice(vdpDevice)) # <<<<<<<<<<<<<< * cvdpDevice = pvdpDevice * cdef int device = 0 */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_VdpDevice), __pyx_v_vdpDevice); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29792, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29792, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_pvdpDevice = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":29793 * else: * pvdpDevice = int(VdpDevice(vdpDevice)) * cvdpDevice = pvdpDevice # <<<<<<<<<<<<<< * cdef int device = 0 * err = ccudart.cudaVDPAUGetDevice(&device, cvdpDevice, cvdpGetProcAddress) */ __pyx_t_6 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pvdpDevice); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29793, __pyx_L1_error) __pyx_v_cvdpDevice = ((__pyx_t_4cuda_7ccudart_VdpDevice)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_6)); } __pyx_L4:; /* "cuda/cudart.pyx":29794 * pvdpDevice = int(VdpDevice(vdpDevice)) * cvdpDevice = pvdpDevice * cdef int device = 0 # <<<<<<<<<<<<<< * err = ccudart.cudaVDPAUGetDevice(&device, cvdpDevice, cvdpGetProcAddress) * return (cudaError_t(err), device) */ __pyx_v_device = 0; /* "cuda/cudart.pyx":29795 * cvdpDevice = pvdpDevice * cdef int device = 0 * err = ccudart.cudaVDPAUGetDevice(&device, cvdpDevice, cvdpGetProcAddress) # <<<<<<<<<<<<<< * return (cudaError_t(err), device) * */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaVDPAUGetDevice((&__pyx_v_device), __pyx_v_cvdpDevice, __pyx_v_cvdpGetProcAddress); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 29795, __pyx_L1_error) __pyx_v_err = __pyx_t_7; /* "cuda/cudart.pyx":29796 * cdef int device = 0 * err = ccudart.cudaVDPAUGetDevice(&device, cvdpDevice, cvdpGetProcAddress) * return (cudaError_t(err), device) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29796, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29796, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_8 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_4}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __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, 29796, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_device); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29796, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29796, __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)) __PYX_ERR(0, 29796, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2)) __PYX_ERR(0, 29796, __pyx_L1_error); __pyx_t_3 = 0; __pyx_t_2 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":29750 * return (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_4); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":29798 * return (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_6cudart_589cudaVDPAUSetVDPAUDevice(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_588cudaVDPAUSetVDPAUDevice, "cudaVDPAUSetVDPAUDevice(int device, vdpDevice, vdpGetProcAddress)\n Sets a CUDA device to use VDPAU interoperability.\n\n Records `vdpDevice` as the VdpDevice for VDPAU interoperability with\n the CUDA device `device` and sets `device` as the current device for\n the calling host thread.\n\n This function will immediately initialize the primary context on\n `device` if needed.\n\n If `device` has already been initialized then this call will fail with\n the error :py:obj:`~.cudaErrorSetOnActiveProcess`. In this case it is\n necessary to reset `device` using :py:obj:`~.cudaDeviceReset()` before\n VDPAU interoperability on `device` may be enabled.\n\n Parameters\n ----------\n device : int\n Device to use for VDPAU interoperability\n vdpDevice : :py:obj:`~.VdpDevice`\n The VdpDevice to interoperate with\n vdpGetProcAddress : :py:obj:`~.VdpGetProcAddress`\n VDPAU's VdpGetProcAddress function pointer\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorSetOnActiveProcess`\n\n See Also\n --------\n :py:obj:`~.cudaGraphicsVDPAURegisterVideoSurface`, :py:obj:`~.cudaGraphicsVDPAURegisterOutputSurface`, :py:obj:`~.cudaDeviceReset`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_589cudaVDPAUSetVDPAUDevice = {"cudaVDPAUSetVDPAUDevice", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_589cudaVDPAUSetVDPAUDevice, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_588cudaVDPAUSetVDPAUDevice}; static PyObject *__pyx_pw_4cuda_6cudart_589cudaVDPAUSetVDPAUDevice(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_device_2,&__pyx_n_s_vdpDevice,&__pyx_n_s_vdpGetProcAddress,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_device_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29798, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_vdpDevice)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29798, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaVDPAUSetVDPAUDevice", 1, 3, 3, 1); __PYX_ERR(0, 29798, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_vdpGetProcAddress)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[2]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29798, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaVDPAUSetVDPAUDevice", 1, 3, 3, 2); __PYX_ERR(0, 29798, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaVDPAUSetVDPAUDevice") < 0)) __PYX_ERR(0, 29798, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 3)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2); } __pyx_v_device = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 29799, __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, 29798, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaVDPAUSetVDPAUDevice", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_588cudaVDPAUSetVDPAUDevice(__pyx_self, __pyx_v_device, __pyx_v_vdpDevice, __pyx_v_vdpGetProcAddress); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_588cudaVDPAUSetVDPAUDevice(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device, PyObject *__pyx_v_vdpDevice, PyObject *__pyx_v_vdpGetProcAddress) { __pyx_t_4cuda_7ccudart_VdpGetProcAddress *__pyx_v_cvdpGetProcAddress; PyObject *__pyx_v_pvdpGetProcAddress = NULL; __pyx_t_4cuda_7ccudart_VdpDevice __pyx_v_cvdpDevice; PyObject *__pyx_v_pvdpDevice = NULL; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; unsigned int __pyx_t_5; __pyx_t_4cuda_6cudart_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_TraceFrameInit(__pyx_codeobj__649) __Pyx_RefNannySetupContext("cudaVDPAUSetVDPAUDevice", 1); __Pyx_TraceCall("cudaVDPAUSetVDPAUDevice", __pyx_f[0], 29798, 0, __PYX_ERR(0, 29798, __pyx_L1_error)); /* "cuda/cudart.pyx":29833 * """ * cdef ccudart.VdpGetProcAddress *cvdpGetProcAddress * if vdpGetProcAddress is None: # <<<<<<<<<<<<<< * cvdpGetProcAddress = NULL * elif isinstance(vdpGetProcAddress, (VdpGetProcAddress,)): */ __pyx_t_1 = (__pyx_v_vdpGetProcAddress == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":29834 * cdef ccudart.VdpGetProcAddress *cvdpGetProcAddress * if vdpGetProcAddress is None: * cvdpGetProcAddress = NULL # <<<<<<<<<<<<<< * elif isinstance(vdpGetProcAddress, (VdpGetProcAddress,)): * pvdpGetProcAddress = vdpGetProcAddress.getPtr() */ __pyx_v_cvdpGetProcAddress = ((__pyx_t_4cuda_7ccudart_VdpGetProcAddress *)((__pyx_t_4cuda_6cudart_void_ptr)NULL)); /* "cuda/cudart.pyx":29833 * """ * cdef ccudart.VdpGetProcAddress *cvdpGetProcAddress * if vdpGetProcAddress is None: # <<<<<<<<<<<<<< * cvdpGetProcAddress = NULL * elif isinstance(vdpGetProcAddress, (VdpGetProcAddress,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":29835 * if vdpGetProcAddress is None: * cvdpGetProcAddress = NULL * elif isinstance(vdpGetProcAddress, (VdpGetProcAddress,)): # <<<<<<<<<<<<<< * pvdpGetProcAddress = vdpGetProcAddress.getPtr() * cvdpGetProcAddress = pvdpGetProcAddress */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_vdpGetProcAddress, __pyx_ptype_4cuda_6cudart_VdpGetProcAddress); if (__pyx_t_1) { /* "cuda/cudart.pyx":29836 * cvdpGetProcAddress = NULL * elif isinstance(vdpGetProcAddress, (VdpGetProcAddress,)): * pvdpGetProcAddress = vdpGetProcAddress.getPtr() # <<<<<<<<<<<<<< * cvdpGetProcAddress = pvdpGetProcAddress * elif isinstance(vdpGetProcAddress, (int)): */ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_vdpGetProcAddress, __pyx_n_s_getPtr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29836, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (likely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29836, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_v_pvdpGetProcAddress = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":29837 * elif isinstance(vdpGetProcAddress, (VdpGetProcAddress,)): * pvdpGetProcAddress = vdpGetProcAddress.getPtr() * cvdpGetProcAddress = pvdpGetProcAddress # <<<<<<<<<<<<<< * elif isinstance(vdpGetProcAddress, (int)): * cvdpGetProcAddress = vdpGetProcAddress */ __pyx_t_6 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pvdpGetProcAddress); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29837, __pyx_L1_error) __pyx_v_cvdpGetProcAddress = ((__pyx_t_4cuda_7ccudart_VdpGetProcAddress *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_6)); /* "cuda/cudart.pyx":29835 * if vdpGetProcAddress is None: * cvdpGetProcAddress = NULL * elif isinstance(vdpGetProcAddress, (VdpGetProcAddress,)): # <<<<<<<<<<<<<< * pvdpGetProcAddress = vdpGetProcAddress.getPtr() * cvdpGetProcAddress = pvdpGetProcAddress */ goto __pyx_L3; } /* "cuda/cudart.pyx":29838 * pvdpGetProcAddress = vdpGetProcAddress.getPtr() * cvdpGetProcAddress = pvdpGetProcAddress * elif isinstance(vdpGetProcAddress, (int)): # <<<<<<<<<<<<<< * cvdpGetProcAddress = vdpGetProcAddress * else: */ __pyx_t_1 = PyInt_Check(__pyx_v_vdpGetProcAddress); if (likely(__pyx_t_1)) { /* "cuda/cudart.pyx":29839 * cvdpGetProcAddress = pvdpGetProcAddress * elif isinstance(vdpGetProcAddress, (int)): * cvdpGetProcAddress = vdpGetProcAddress # <<<<<<<<<<<<<< * else: * raise TypeError("Argument 'vdpGetProcAddress' is not instance of type (expected , found " + str(type(vdpGetProcAddress))) */ __pyx_t_6 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_vdpGetProcAddress); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29839, __pyx_L1_error) __pyx_v_cvdpGetProcAddress = ((__pyx_t_4cuda_7ccudart_VdpGetProcAddress *)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_6)); /* "cuda/cudart.pyx":29838 * pvdpGetProcAddress = vdpGetProcAddress.getPtr() * cvdpGetProcAddress = pvdpGetProcAddress * elif isinstance(vdpGetProcAddress, (int)): # <<<<<<<<<<<<<< * cvdpGetProcAddress = vdpGetProcAddress * else: */ goto __pyx_L3; } /* "cuda/cudart.pyx":29841 * cvdpGetProcAddress = vdpGetProcAddress * else: * raise TypeError("Argument 'vdpGetProcAddress' is not instance of type (expected , found " + str(type(vdpGetProcAddress))) # <<<<<<<<<<<<<< * cdef ccudart.VdpDevice cvdpDevice * if vdpDevice is None: */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_vdpGetProcAddress))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29841, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Argument_vdpGetProcAddress_is_no, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29841, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29841, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __PYX_ERR(0, 29841, __pyx_L1_error) } __pyx_L3:; /* "cuda/cudart.pyx":29843 * raise TypeError("Argument 'vdpGetProcAddress' is not instance of type (expected , found " + str(type(vdpGetProcAddress))) * cdef ccudart.VdpDevice cvdpDevice * if vdpDevice is None: # <<<<<<<<<<<<<< * cvdpDevice = 0 * elif isinstance(vdpDevice, (VdpDevice,)): */ __pyx_t_1 = (__pyx_v_vdpDevice == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":29844 * cdef ccudart.VdpDevice cvdpDevice * if vdpDevice is None: * cvdpDevice = 0 # <<<<<<<<<<<<<< * elif isinstance(vdpDevice, (VdpDevice,)): * pvdpDevice = int(vdpDevice) */ __pyx_v_cvdpDevice = ((__pyx_t_4cuda_7ccudart_VdpDevice)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":29843 * raise TypeError("Argument 'vdpGetProcAddress' is not instance of type (expected , found " + str(type(vdpGetProcAddress))) * cdef ccudart.VdpDevice cvdpDevice * if vdpDevice is None: # <<<<<<<<<<<<<< * cvdpDevice = 0 * elif isinstance(vdpDevice, (VdpDevice,)): */ goto __pyx_L4; } /* "cuda/cudart.pyx":29845 * if vdpDevice is None: * cvdpDevice = 0 * elif isinstance(vdpDevice, (VdpDevice,)): # <<<<<<<<<<<<<< * pvdpDevice = int(vdpDevice) * cvdpDevice = pvdpDevice */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_vdpDevice, __pyx_ptype_4cuda_6cudart_VdpDevice); if (__pyx_t_1) { /* "cuda/cudart.pyx":29846 * cvdpDevice = 0 * elif isinstance(vdpDevice, (VdpDevice,)): * pvdpDevice = int(vdpDevice) # <<<<<<<<<<<<<< * cvdpDevice = pvdpDevice * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_vdpDevice); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29846, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_pvdpDevice = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":29847 * elif isinstance(vdpDevice, (VdpDevice,)): * pvdpDevice = int(vdpDevice) * cvdpDevice = pvdpDevice # <<<<<<<<<<<<<< * else: * pvdpDevice = int(VdpDevice(vdpDevice)) */ __pyx_t_6 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pvdpDevice); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29847, __pyx_L1_error) __pyx_v_cvdpDevice = ((__pyx_t_4cuda_7ccudart_VdpDevice)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_6)); /* "cuda/cudart.pyx":29845 * if vdpDevice is None: * cvdpDevice = 0 * elif isinstance(vdpDevice, (VdpDevice,)): # <<<<<<<<<<<<<< * pvdpDevice = int(vdpDevice) * cvdpDevice = pvdpDevice */ goto __pyx_L4; } /* "cuda/cudart.pyx":29849 * cvdpDevice = pvdpDevice * else: * pvdpDevice = int(VdpDevice(vdpDevice)) # <<<<<<<<<<<<<< * cvdpDevice = pvdpDevice * err = ccudart.cudaVDPAUSetVDPAUDevice(device, cvdpDevice, cvdpGetProcAddress) */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_VdpDevice), __pyx_v_vdpDevice); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29849, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29849, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_pvdpDevice = __pyx_t_3; __pyx_t_3 = 0; /* "cuda/cudart.pyx":29850 * else: * pvdpDevice = int(VdpDevice(vdpDevice)) * cvdpDevice = pvdpDevice # <<<<<<<<<<<<<< * err = ccudart.cudaVDPAUSetVDPAUDevice(device, cvdpDevice, cvdpGetProcAddress) * return (cudaError_t(err),) */ __pyx_t_6 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pvdpDevice); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29850, __pyx_L1_error) __pyx_v_cvdpDevice = ((__pyx_t_4cuda_7ccudart_VdpDevice)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_6)); } __pyx_L4:; /* "cuda/cudart.pyx":29851 * pvdpDevice = int(VdpDevice(vdpDevice)) * cvdpDevice = pvdpDevice * err = ccudart.cudaVDPAUSetVDPAUDevice(device, cvdpDevice, cvdpGetProcAddress) # <<<<<<<<<<<<<< * return (cudaError_t(err),) * */ __pyx_t_7 = __pyx_f_4cuda_7ccudart_cudaVDPAUSetVDPAUDevice(__pyx_v_device, __pyx_v_cvdpDevice, __pyx_v_cvdpGetProcAddress); if (unlikely(__pyx_t_7 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 29851, __pyx_L1_error) __pyx_v_err = __pyx_t_7; /* "cuda/cudart.pyx":29852 * cvdpDevice = pvdpDevice * err = ccudart.cudaVDPAUSetVDPAUDevice(device, cvdpDevice, cvdpGetProcAddress) * return (cudaError_t(err),) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29852, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29852, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_8 = NULL; __pyx_t_5 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_5 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_4}; __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5); __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, 29852, __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, 29852, __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)) __PYX_ERR(0, 29852, __pyx_L1_error); __pyx_t_3 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":29798 * return (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_4); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":29854 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphicsVDPAURegisterVideoSurface(vdpSurface, unsigned int flags): * """ Register a VdpVideoSurface object. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_591cudaGraphicsVDPAURegisterVideoSurface(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_590cudaGraphicsVDPAURegisterVideoSurface, "cudaGraphicsVDPAURegisterVideoSurface(vdpSurface, unsigned int flags)\n Register a VdpVideoSurface object.\n\n Registers the VdpVideoSurface specified by `vdpSurface` for access by\n CUDA. A handle to the registered object is returned as `resource`. The\n surface'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\n Parameters\n ----------\n vdpSurface : :py:obj:`~.VdpVideoSurface`\n VDPAU object to be registered\n flags : unsigned int\n Map flags\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorUnknown`\n resource : :py:obj:`~.cudaGraphicsResource`\n Pointer to the returned object handle\n\n See Also\n --------\n :py:obj:`~.cudaVDPAUSetVDPAUDevice`, :py:obj:`~.cudaGraphicsUnregisterResource`, :py:obj:`~.cudaGraphicsSubResourceGetMappedArray`, :py:obj:`~.cuGraphicsVDPAURegisterVideoSurface`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_591cudaGraphicsVDPAURegisterVideoSurface = {"cudaGraphicsVDPAURegisterVideoSurface", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_591cudaGraphicsVDPAURegisterVideoSurface, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_590cudaGraphicsVDPAURegisterVideoSurface}; static PyObject *__pyx_pw_4cuda_6cudart_591cudaGraphicsVDPAURegisterVideoSurface(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_vdpSurface,&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_vdpSurface)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29854, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29854, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphicsVDPAURegisterVideoSurface", 1, 2, 2, 1); __PYX_ERR(0, 29854, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphicsVDPAURegisterVideoSurface") < 0)) __PYX_ERR(0, 29854, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_vdpSurface = values[0]; __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[1]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 29855, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphicsVDPAURegisterVideoSurface", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 29854, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphicsVDPAURegisterVideoSurface", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_590cudaGraphicsVDPAURegisterVideoSurface(__pyx_self, __pyx_v_vdpSurface, __pyx_v_flags); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_590cudaGraphicsVDPAURegisterVideoSurface(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_vdpSurface, unsigned int __pyx_v_flags) { __pyx_t_4cuda_7ccudart_VdpVideoSurface __pyx_v_cvdpSurface; PyObject *__pyx_v_pvdpSurface = NULL; struct __pyx_obj_4cuda_6cudart_cudaGraphicsResource_t *__pyx_v_resource = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; cudaError_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__650) __Pyx_RefNannySetupContext("cudaGraphicsVDPAURegisterVideoSurface", 1); __Pyx_TraceCall("cudaGraphicsVDPAURegisterVideoSurface", __pyx_f[0], 29854, 0, __PYX_ERR(0, 29854, __pyx_L1_error)); /* "cuda/cudart.pyx":29894 * """ * cdef ccudart.VdpVideoSurface cvdpSurface * if vdpSurface is None: # <<<<<<<<<<<<<< * cvdpSurface = 0 * elif isinstance(vdpSurface, (VdpVideoSurface,)): */ __pyx_t_1 = (__pyx_v_vdpSurface == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":29895 * cdef ccudart.VdpVideoSurface cvdpSurface * if vdpSurface is None: * cvdpSurface = 0 # <<<<<<<<<<<<<< * elif isinstance(vdpSurface, (VdpVideoSurface,)): * pvdpSurface = int(vdpSurface) */ __pyx_v_cvdpSurface = ((__pyx_t_4cuda_7ccudart_VdpVideoSurface)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":29894 * """ * cdef ccudart.VdpVideoSurface cvdpSurface * if vdpSurface is None: # <<<<<<<<<<<<<< * cvdpSurface = 0 * elif isinstance(vdpSurface, (VdpVideoSurface,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":29896 * if vdpSurface is None: * cvdpSurface = 0 * elif isinstance(vdpSurface, (VdpVideoSurface,)): # <<<<<<<<<<<<<< * pvdpSurface = int(vdpSurface) * cvdpSurface = pvdpSurface */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_vdpSurface, __pyx_ptype_4cuda_6cudart_VdpVideoSurface); if (__pyx_t_1) { /* "cuda/cudart.pyx":29897 * cvdpSurface = 0 * elif isinstance(vdpSurface, (VdpVideoSurface,)): * pvdpSurface = int(vdpSurface) # <<<<<<<<<<<<<< * cvdpSurface = pvdpSurface * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_vdpSurface); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29897, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_pvdpSurface = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":29898 * elif isinstance(vdpSurface, (VdpVideoSurface,)): * pvdpSurface = int(vdpSurface) * cvdpSurface = pvdpSurface # <<<<<<<<<<<<<< * else: * pvdpSurface = int(VdpVideoSurface(vdpSurface)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pvdpSurface); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29898, __pyx_L1_error) __pyx_v_cvdpSurface = ((__pyx_t_4cuda_7ccudart_VdpVideoSurface)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":29896 * if vdpSurface is None: * cvdpSurface = 0 * elif isinstance(vdpSurface, (VdpVideoSurface,)): # <<<<<<<<<<<<<< * pvdpSurface = int(vdpSurface) * cvdpSurface = pvdpSurface */ goto __pyx_L3; } /* "cuda/cudart.pyx":29900 * cvdpSurface = pvdpSurface * else: * pvdpSurface = int(VdpVideoSurface(vdpSurface)) # <<<<<<<<<<<<<< * cvdpSurface = pvdpSurface * cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t() */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_VdpVideoSurface), __pyx_v_vdpSurface); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29900, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29900, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_pvdpSurface = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":29901 * else: * pvdpSurface = int(VdpVideoSurface(vdpSurface)) * cvdpSurface = pvdpSurface # <<<<<<<<<<<<<< * cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t() * err = ccudart.cudaGraphicsVDPAURegisterVideoSurface(resource._ptr, cvdpSurface, flags) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pvdpSurface); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29901, __pyx_L1_error) __pyx_v_cvdpSurface = ((__pyx_t_4cuda_7ccudart_VdpVideoSurface)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":29902 * pvdpSurface = int(VdpVideoSurface(vdpSurface)) * cvdpSurface = pvdpSurface * cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t() # <<<<<<<<<<<<<< * err = ccudart.cudaGraphicsVDPAURegisterVideoSurface(resource._ptr, cvdpSurface, flags) * return (cudaError_t(err), resource) */ __pyx_t_4 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29902, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_resource = ((struct __pyx_obj_4cuda_6cudart_cudaGraphicsResource_t *)__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":29903 * cvdpSurface = pvdpSurface * cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t() * err = ccudart.cudaGraphicsVDPAURegisterVideoSurface(resource._ptr, cvdpSurface, flags) # <<<<<<<<<<<<<< * return (cudaError_t(err), resource) * */ __pyx_t_5 = __pyx_f_4cuda_7ccudart_cudaGraphicsVDPAURegisterVideoSurface(__pyx_v_resource->_ptr, __pyx_v_cvdpSurface, __pyx_v_flags); if (unlikely(__pyx_t_5 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 29903, __pyx_L1_error) __pyx_v_err = __pyx_t_5; /* "cuda/cudart.pyx":29904 * cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t() * err = ccudart.cudaGraphicsVDPAURegisterVideoSurface(resource._ptr, cvdpSurface, flags) * return (cudaError_t(err), resource) # <<<<<<<<<<<<<< * * @cython.embedsignature(True) */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29904, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 29904, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29904, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29904, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 29904, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_resource); __Pyx_GIVEREF((PyObject *)__pyx_v_resource); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_resource))) __PYX_ERR(0, 29904, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":29854 * return (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_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":29906 * return (cudaError_t(err), resource) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphicsVDPAURegisterOutputSurface(vdpSurface, unsigned int flags): * """ Register a VdpOutputSurface object. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_593cudaGraphicsVDPAURegisterOutputSurface(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_592cudaGraphicsVDPAURegisterOutputSurface, "cudaGraphicsVDPAURegisterOutputSurface(vdpSurface, unsigned int flags)\n Register a VdpOutputSurface object.\n\n Registers the VdpOutputSurface specified by `vdpSurface` for access by\n CUDA. A handle to the registered object is returned as `resource`. The\n surface'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\n Parameters\n ----------\n vdpSurface : :py:obj:`~.VdpOutputSurface`\n VDPAU object to be registered\n flags : unsigned int\n Map flags\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorUnknown`\n resource : :py:obj:`~.cudaGraphicsResource`\n Pointer to the returned object handle\n\n See Also\n --------\n :py:obj:`~.cudaVDPAUSetVDPAUDevice`, :py:obj:`~.cudaGraphicsUnregisterResource`, :py:obj:`~.cudaGraphicsSubResourceGetMappedArray`, :py:obj:`~.cuGraphicsVDPAURegisterOutputSurface`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_593cudaGraphicsVDPAURegisterOutputSurface = {"cudaGraphicsVDPAURegisterOutputSurface", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_593cudaGraphicsVDPAURegisterOutputSurface, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_592cudaGraphicsVDPAURegisterOutputSurface}; static PyObject *__pyx_pw_4cuda_6cudart_593cudaGraphicsVDPAURegisterOutputSurface(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_vdpSurface,&__pyx_n_s_flags_2,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_vdpSurface)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29906, __pyx_L3_error) else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_flags_2)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[1]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29906, __pyx_L3_error) else { __Pyx_RaiseArgtupleInvalid("cudaGraphicsVDPAURegisterOutputSurface", 1, 2, 2, 1); __PYX_ERR(0, 29906, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "cudaGraphicsVDPAURegisterOutputSurface") < 0)) __PYX_ERR(0, 29906, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 2)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1); } __pyx_v_vdpSurface = values[0]; __pyx_v_flags = __Pyx_PyInt_As_unsigned_int(values[1]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 29907, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("cudaGraphicsVDPAURegisterOutputSurface", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 29906, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.cudaGraphicsVDPAURegisterOutputSurface", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_592cudaGraphicsVDPAURegisterOutputSurface(__pyx_self, __pyx_v_vdpSurface, __pyx_v_flags); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_592cudaGraphicsVDPAURegisterOutputSurface(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_vdpSurface, unsigned int __pyx_v_flags) { __pyx_t_4cuda_7ccudart_VdpOutputSurface __pyx_v_cvdpSurface; PyObject *__pyx_v_pvdpSurface = NULL; struct __pyx_obj_4cuda_6cudart_cudaGraphicsResource_t *__pyx_v_resource = 0; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; __pyx_t_4cuda_6cudart_void_ptr __pyx_t_3; PyObject *__pyx_t_4 = NULL; cudaError_t __pyx_t_5; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; unsigned int __pyx_t_8; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__651) __Pyx_RefNannySetupContext("cudaGraphicsVDPAURegisterOutputSurface", 1); __Pyx_TraceCall("cudaGraphicsVDPAURegisterOutputSurface", __pyx_f[0], 29906, 0, __PYX_ERR(0, 29906, __pyx_L1_error)); /* "cuda/cudart.pyx":29946 * """ * cdef ccudart.VdpOutputSurface cvdpSurface * if vdpSurface is None: # <<<<<<<<<<<<<< * cvdpSurface = 0 * elif isinstance(vdpSurface, (VdpOutputSurface,)): */ __pyx_t_1 = (__pyx_v_vdpSurface == Py_None); if (__pyx_t_1) { /* "cuda/cudart.pyx":29947 * cdef ccudart.VdpOutputSurface cvdpSurface * if vdpSurface is None: * cvdpSurface = 0 # <<<<<<<<<<<<<< * elif isinstance(vdpSurface, (VdpOutputSurface,)): * pvdpSurface = int(vdpSurface) */ __pyx_v_cvdpSurface = ((__pyx_t_4cuda_7ccudart_VdpOutputSurface)((__pyx_t_4cuda_6cudart_void_ptr)0)); /* "cuda/cudart.pyx":29946 * """ * cdef ccudart.VdpOutputSurface cvdpSurface * if vdpSurface is None: # <<<<<<<<<<<<<< * cvdpSurface = 0 * elif isinstance(vdpSurface, (VdpOutputSurface,)): */ goto __pyx_L3; } /* "cuda/cudart.pyx":29948 * if vdpSurface is None: * cvdpSurface = 0 * elif isinstance(vdpSurface, (VdpOutputSurface,)): # <<<<<<<<<<<<<< * pvdpSurface = int(vdpSurface) * cvdpSurface = pvdpSurface */ __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_vdpSurface, __pyx_ptype_4cuda_6cudart_VdpOutputSurface); if (__pyx_t_1) { /* "cuda/cudart.pyx":29949 * cvdpSurface = 0 * elif isinstance(vdpSurface, (VdpOutputSurface,)): * pvdpSurface = int(vdpSurface) # <<<<<<<<<<<<<< * cvdpSurface = pvdpSurface * else: */ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_vdpSurface); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29949, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_pvdpSurface = __pyx_t_2; __pyx_t_2 = 0; /* "cuda/cudart.pyx":29950 * elif isinstance(vdpSurface, (VdpOutputSurface,)): * pvdpSurface = int(vdpSurface) * cvdpSurface = pvdpSurface # <<<<<<<<<<<<<< * else: * pvdpSurface = int(VdpOutputSurface(vdpSurface)) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pvdpSurface); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29950, __pyx_L1_error) __pyx_v_cvdpSurface = ((__pyx_t_4cuda_7ccudart_VdpOutputSurface)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); /* "cuda/cudart.pyx":29948 * if vdpSurface is None: * cvdpSurface = 0 * elif isinstance(vdpSurface, (VdpOutputSurface,)): # <<<<<<<<<<<<<< * pvdpSurface = int(vdpSurface) * cvdpSurface = pvdpSurface */ goto __pyx_L3; } /* "cuda/cudart.pyx":29952 * cvdpSurface = pvdpSurface * else: * pvdpSurface = int(VdpOutputSurface(vdpSurface)) # <<<<<<<<<<<<<< * cvdpSurface = pvdpSurface * cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t() */ /*else*/ { __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4cuda_6cudart_VdpOutputSurface), __pyx_v_vdpSurface); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29952, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29952, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_pvdpSurface = __pyx_t_4; __pyx_t_4 = 0; /* "cuda/cudart.pyx":29953 * else: * pvdpSurface = int(VdpOutputSurface(vdpSurface)) * cvdpSurface = pvdpSurface # <<<<<<<<<<<<<< * cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t() * err = ccudart.cudaGraphicsVDPAURegisterOutputSurface(resource._ptr, cvdpSurface, flags) */ __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_pvdpSurface); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29953, __pyx_L1_error) __pyx_v_cvdpSurface = ((__pyx_t_4cuda_7ccudart_VdpOutputSurface)((__pyx_t_4cuda_6cudart_void_ptr)__pyx_t_3)); } __pyx_L3:; /* "cuda/cudart.pyx":29954 * pvdpSurface = int(VdpOutputSurface(vdpSurface)) * cvdpSurface = pvdpSurface * cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t() # <<<<<<<<<<<<<< * err = ccudart.cudaGraphicsVDPAURegisterOutputSurface(resource._ptr, cvdpSurface, flags) * return (cudaError_t(err), resource) */ __pyx_t_4 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29954, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_resource = ((struct __pyx_obj_4cuda_6cudart_cudaGraphicsResource_t *)__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":29955 * cvdpSurface = pvdpSurface * cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t() * err = ccudart.cudaGraphicsVDPAURegisterOutputSurface(resource._ptr, cvdpSurface, flags) # <<<<<<<<<<<<<< * return (cudaError_t(err), resource) * */ __pyx_t_5 = __pyx_f_4cuda_7ccudart_cudaGraphicsVDPAURegisterOutputSurface(__pyx_v_resource->_ptr, __pyx_v_cvdpSurface, __pyx_v_flags); if (unlikely(__pyx_t_5 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 29955, __pyx_L1_error) __pyx_v_err = __pyx_t_5; /* "cuda/cudart.pyx":29956 * cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t() * err = ccudart.cudaGraphicsVDPAURegisterOutputSurface(resource._ptr, cvdpSurface, flags) * return (cudaError_t(err), resource) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29956, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_6 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 29956, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_8 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_2))) { __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); if (likely(__pyx_t_7)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); __Pyx_INCREF(__pyx_t_7); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_2, function); __pyx_t_8 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_6}; __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29956, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29956, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 29956, __pyx_L1_error); __Pyx_INCREF((PyObject *)__pyx_v_resource); __Pyx_GIVEREF((PyObject *)__pyx_v_resource); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_resource))) __PYX_ERR(0, 29956, __pyx_L1_error); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":29906 * return (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_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("cuda.cudart.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_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":29959 * * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def getLocalRuntimeVersion(): * """ Returns the CUDA Runtime version of local shared library. */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_595getLocalRuntimeVersion(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_594getLocalRuntimeVersion, "getLocalRuntimeVersion()\n Returns the CUDA Runtime version of local shared library.\n\n Returns in `*runtimeVersion` the version number of the current CUDA\n Runtime instance. The version is returned as (1000 * major + 10 *\n minor). For example, CUDA 9.2 would be represented by 9020.\n\n As of CUDA 12.0, this function no longer initializes CUDA. The purpose\n of this API is solely to return a compile-time constant stating the\n CUDA Toolkit version in the above format.\n\n This function automatically returns :py:obj:`~.cudaErrorInvalidValue`\n if the `runtimeVersion` argument is NULL.\n\n Returns\n -------\n cudaError_t\n :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n runtimeVersion : int\n Returns the CUDA Runtime version.\n\n See Also\n --------\n :py:obj:`~.cudaDriverGetVersion`, :py:obj:`~.cuDriverGetVersion`\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_595getLocalRuntimeVersion = {"getLocalRuntimeVersion", (PyCFunction)__pyx_pw_4cuda_6cudart_595getLocalRuntimeVersion, METH_NOARGS, __pyx_doc_4cuda_6cudart_594getLocalRuntimeVersion}; static PyObject *__pyx_pw_4cuda_6cudart_595getLocalRuntimeVersion(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_6cudart_594getLocalRuntimeVersion(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_594getLocalRuntimeVersion(CYTHON_UNUSED PyObject *__pyx_self) { int __pyx_v_runtimeVersion; cudaError_t __pyx_v_err; PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __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; unsigned int __pyx_t_6; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__652) __Pyx_RefNannySetupContext("getLocalRuntimeVersion", 1); __Pyx_TraceCall("getLocalRuntimeVersion", __pyx_f[0], 29959, 0, __PYX_ERR(0, 29959, __pyx_L1_error)); /* "cuda/cudart.pyx":29985 * :py:obj:`~.cudaDriverGetVersion`, :py:obj:`~.cuDriverGetVersion` * """ * cdef int runtimeVersion = 0 # <<<<<<<<<<<<<< * err = ccudart.getLocalRuntimeVersion(&runtimeVersion) * return (cudaError_t(err), runtimeVersion) */ __pyx_v_runtimeVersion = 0; /* "cuda/cudart.pyx":29986 * """ * cdef int runtimeVersion = 0 * err = ccudart.getLocalRuntimeVersion(&runtimeVersion) # <<<<<<<<<<<<<< * return (cudaError_t(err), runtimeVersion) * */ __pyx_t_1 = __pyx_f_4cuda_7ccudart_getLocalRuntimeVersion((&__pyx_v_runtimeVersion)); if (unlikely(__pyx_t_1 == ((cudaError_t)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 29986, __pyx_L1_error) __pyx_v_err = __pyx_t_1; /* "cuda/cudart.pyx":29987 * cdef int runtimeVersion = 0 * err = ccudart.getLocalRuntimeVersion(&runtimeVersion) * return (cudaError_t(err), runtimeVersion) # <<<<<<<<<<<<<< * * */ __Pyx_XDECREF(__pyx_r); __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29987, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29987, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; #if CYTHON_UNPACK_METHODS if (unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #endif { PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4}; __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6); __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(0, 29987, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_runtimeVersion); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29987, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29987, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 29987, __pyx_L1_error); __Pyx_GIVEREF(__pyx_t_3); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3)) __PYX_ERR(0, 29987, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_3 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":29959 * * * @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.cudart.getLocalRuntimeVersion", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "cuda/cudart.pyx":29990 * * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def sizeof(objType): * """ Returns the size of provided CUDA Python structure in bytes */ /* Python wrapper */ static PyObject *__pyx_pw_4cuda_6cudart_597sizeof(PyObject *__pyx_self, #if CYTHON_METH_FASTCALL PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds #else PyObject *__pyx_args, PyObject *__pyx_kwds #endif ); /*proto*/ PyDoc_STRVAR(__pyx_doc_4cuda_6cudart_596sizeof, "sizeof(objType)\n Returns the size of provided CUDA Python structure in bytes\n\n Parameters\n ----------\n objType : Any\n CUDA Python object\n\n Returns\n -------\n lowered_name : int\n The size of `objType` in bytes\n "); static PyMethodDef __pyx_mdef_4cuda_6cudart_597sizeof = {"sizeof", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_597sizeof, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_596sizeof}; static PyObject *__pyx_pw_4cuda_6cudart_597sizeof(PyObject *__pyx_self, #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_MACROS __pyx_nargs = PyTuple_GET_SIZE(__pyx_args); #else __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL; #endif #endif __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs); { PyObject **__pyx_pyargnames[] = {&__pyx_n_s_objType,0}; if (__pyx_kwds) { Py_ssize_t kw_args; switch (__pyx_nargs) { case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds); switch (__pyx_nargs) { case 0: if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_objType)) != 0)) { (void)__Pyx_Arg_NewRef_FASTCALL(values[0]); kw_args--; } else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29990, __pyx_L3_error) else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { const Py_ssize_t kwd_pos_args = __pyx_nargs; if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "sizeof") < 0)) __PYX_ERR(0, 29990, __pyx_L3_error) } } else if (unlikely(__pyx_nargs != 1)) { goto __pyx_L5_argtuple_error; } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } __pyx_v_objType = values[0]; } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("sizeof", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 29990, __pyx_L3_error) __pyx_L6_skip:; goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_AddTraceback("cuda.cudart.sizeof", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_4cuda_6cudart_596sizeof(__pyx_self, __pyx_v_objType); /* function exit code */ { Py_ssize_t __pyx_temp; for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) { __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]); } } __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_4cuda_6cudart_596sizeof(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_objType) { PyObject *__pyx_r = NULL; __Pyx_TraceDeclarations __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_TraceFrameInit(__pyx_codeobj__653) __Pyx_RefNannySetupContext("sizeof", 1); __Pyx_TraceCall("sizeof", __pyx_f[0], 29990, 0, __PYX_ERR(0, 29990, __pyx_L1_error)); /* "cuda/cudart.pyx":30004 * The size of `objType` in bytes * """ * if objType == dim3: # <<<<<<<<<<<<<< * return sizeof(ccudart.dim3) * if objType == cudaChannelFormatDesc: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_dim3), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30004, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30004, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30005 * """ * if objType == dim3: * return sizeof(ccudart.dim3) # <<<<<<<<<<<<<< * if objType == cudaChannelFormatDesc: * return sizeof(ccudart.cudaChannelFormatDesc) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct dim3))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30005, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30004 * The size of `objType` in bytes * """ * if objType == dim3: # <<<<<<<<<<<<<< * return sizeof(ccudart.dim3) * if objType == cudaChannelFormatDesc: */ } /* "cuda/cudart.pyx":30006 * if objType == dim3: * return sizeof(ccudart.dim3) * if objType == cudaChannelFormatDesc: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaChannelFormatDesc) * if objType == cudaArray_t: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaChannelFormatDesc), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30006, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30006, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30007 * return sizeof(ccudart.dim3) * if objType == cudaChannelFormatDesc: * return sizeof(ccudart.cudaChannelFormatDesc) # <<<<<<<<<<<<<< * if objType == cudaArray_t: * return sizeof(ccudart.cudaArray_t) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaChannelFormatDesc))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30007, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30006 * if objType == dim3: * return sizeof(ccudart.dim3) * if objType == cudaChannelFormatDesc: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaChannelFormatDesc) * if objType == cudaArray_t: */ } /* "cuda/cudart.pyx":30008 * if objType == cudaChannelFormatDesc: * return sizeof(ccudart.cudaChannelFormatDesc) * if objType == cudaArray_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaArray_t) * if objType == cudaArray_const_t: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30008, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30008, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30009 * return sizeof(ccudart.cudaChannelFormatDesc) * if objType == cudaArray_t: * return sizeof(ccudart.cudaArray_t) # <<<<<<<<<<<<<< * if objType == cudaArray_const_t: * return sizeof(ccudart.cudaArray_const_t) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaArray_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30009, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30008 * if objType == cudaChannelFormatDesc: * return sizeof(ccudart.cudaChannelFormatDesc) * if objType == cudaArray_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaArray_t) * if objType == cudaArray_const_t: */ } /* "cuda/cudart.pyx":30010 * if objType == cudaArray_t: * return sizeof(ccudart.cudaArray_t) * if objType == cudaArray_const_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaArray_const_t) * if objType == cudaMipmappedArray_t: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_const_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30010, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30010, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30011 * return sizeof(ccudart.cudaArray_t) * if objType == cudaArray_const_t: * return sizeof(ccudart.cudaArray_const_t) # <<<<<<<<<<<<<< * if objType == cudaMipmappedArray_t: * return sizeof(ccudart.cudaMipmappedArray_t) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaArray_const_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30011, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30010 * if objType == cudaArray_t: * return sizeof(ccudart.cudaArray_t) * if objType == cudaArray_const_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaArray_const_t) * if objType == cudaMipmappedArray_t: */ } /* "cuda/cudart.pyx":30012 * if objType == cudaArray_const_t: * return sizeof(ccudart.cudaArray_const_t) * if objType == cudaMipmappedArray_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaMipmappedArray_t) * if objType == cudaMipmappedArray_const_t: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMipmappedArray_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30012, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30012, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30013 * return sizeof(ccudart.cudaArray_const_t) * if objType == cudaMipmappedArray_t: * return sizeof(ccudart.cudaMipmappedArray_t) # <<<<<<<<<<<<<< * if objType == cudaMipmappedArray_const_t: * return sizeof(ccudart.cudaMipmappedArray_const_t) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaMipmappedArray_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30013, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30012 * if objType == cudaArray_const_t: * return sizeof(ccudart.cudaArray_const_t) * if objType == cudaMipmappedArray_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaMipmappedArray_t) * if objType == cudaMipmappedArray_const_t: */ } /* "cuda/cudart.pyx":30014 * if objType == cudaMipmappedArray_t: * return sizeof(ccudart.cudaMipmappedArray_t) * if objType == cudaMipmappedArray_const_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaMipmappedArray_const_t) * if objType == cudaArraySparseProperties: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMipmappedArray_const_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30014, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30014, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30015 * return sizeof(ccudart.cudaMipmappedArray_t) * if objType == cudaMipmappedArray_const_t: * return sizeof(ccudart.cudaMipmappedArray_const_t) # <<<<<<<<<<<<<< * if objType == cudaArraySparseProperties: * return sizeof(ccudart.cudaArraySparseProperties) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaMipmappedArray_const_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30015, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30014 * if objType == cudaMipmappedArray_t: * return sizeof(ccudart.cudaMipmappedArray_t) * if objType == cudaMipmappedArray_const_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaMipmappedArray_const_t) * if objType == cudaArraySparseProperties: */ } /* "cuda/cudart.pyx":30016 * if objType == cudaMipmappedArray_const_t: * return sizeof(ccudart.cudaMipmappedArray_const_t) * if objType == cudaArraySparseProperties: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaArraySparseProperties) * if objType == cudaArrayMemoryRequirements: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArraySparseProperties), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30016, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30016, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30017 * return sizeof(ccudart.cudaMipmappedArray_const_t) * if objType == cudaArraySparseProperties: * return sizeof(ccudart.cudaArraySparseProperties) # <<<<<<<<<<<<<< * if objType == cudaArrayMemoryRequirements: * return sizeof(ccudart.cudaArrayMemoryRequirements) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaArraySparseProperties))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30017, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30016 * if objType == cudaMipmappedArray_const_t: * return sizeof(ccudart.cudaMipmappedArray_const_t) * if objType == cudaArraySparseProperties: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaArraySparseProperties) * if objType == cudaArrayMemoryRequirements: */ } /* "cuda/cudart.pyx":30018 * if objType == cudaArraySparseProperties: * return sizeof(ccudart.cudaArraySparseProperties) * if objType == cudaArrayMemoryRequirements: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaArrayMemoryRequirements) * if objType == cudaPitchedPtr: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArrayMemoryRequirements), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30018, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30018, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30019 * return sizeof(ccudart.cudaArraySparseProperties) * if objType == cudaArrayMemoryRequirements: * return sizeof(ccudart.cudaArrayMemoryRequirements) # <<<<<<<<<<<<<< * if objType == cudaPitchedPtr: * return sizeof(ccudart.cudaPitchedPtr) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaArrayMemoryRequirements))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30019, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30018 * if objType == cudaArraySparseProperties: * return sizeof(ccudart.cudaArraySparseProperties) * if objType == cudaArrayMemoryRequirements: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaArrayMemoryRequirements) * if objType == cudaPitchedPtr: */ } /* "cuda/cudart.pyx":30020 * if objType == cudaArrayMemoryRequirements: * return sizeof(ccudart.cudaArrayMemoryRequirements) * if objType == cudaPitchedPtr: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaPitchedPtr) * if objType == cudaExtent: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaPitchedPtr), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30020, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30020, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30021 * return sizeof(ccudart.cudaArrayMemoryRequirements) * if objType == cudaPitchedPtr: * return sizeof(ccudart.cudaPitchedPtr) # <<<<<<<<<<<<<< * if objType == cudaExtent: * return sizeof(ccudart.cudaExtent) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaPitchedPtr))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30021, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30020 * if objType == cudaArrayMemoryRequirements: * return sizeof(ccudart.cudaArrayMemoryRequirements) * if objType == cudaPitchedPtr: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaPitchedPtr) * if objType == cudaExtent: */ } /* "cuda/cudart.pyx":30022 * if objType == cudaPitchedPtr: * return sizeof(ccudart.cudaPitchedPtr) * if objType == cudaExtent: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaExtent) * if objType == cudaPos: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExtent), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30022, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30022, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30023 * return sizeof(ccudart.cudaPitchedPtr) * if objType == cudaExtent: * return sizeof(ccudart.cudaExtent) # <<<<<<<<<<<<<< * if objType == cudaPos: * return sizeof(ccudart.cudaPos) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaExtent))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30023, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30022 * if objType == cudaPitchedPtr: * return sizeof(ccudart.cudaPitchedPtr) * if objType == cudaExtent: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaExtent) * if objType == cudaPos: */ } /* "cuda/cudart.pyx":30024 * if objType == cudaExtent: * return sizeof(ccudart.cudaExtent) * if objType == cudaPos: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaPos) * if objType == cudaMemcpy3DParms: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaPos), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30024, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30024, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30025 * return sizeof(ccudart.cudaExtent) * if objType == cudaPos: * return sizeof(ccudart.cudaPos) # <<<<<<<<<<<<<< * if objType == cudaMemcpy3DParms: * return sizeof(ccudart.cudaMemcpy3DParms) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaPos))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30025, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30024 * if objType == cudaExtent: * return sizeof(ccudart.cudaExtent) * if objType == cudaPos: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaPos) * if objType == cudaMemcpy3DParms: */ } /* "cuda/cudart.pyx":30026 * if objType == cudaPos: * return sizeof(ccudart.cudaPos) * if objType == cudaMemcpy3DParms: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaMemcpy3DParms) * if objType == cudaMemcpyNodeParams: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemcpy3DParms), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30026, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30026, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30027 * return sizeof(ccudart.cudaPos) * if objType == cudaMemcpy3DParms: * return sizeof(ccudart.cudaMemcpy3DParms) # <<<<<<<<<<<<<< * if objType == cudaMemcpyNodeParams: * return sizeof(ccudart.cudaMemcpyNodeParams) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaMemcpy3DParms))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30027, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30026 * if objType == cudaPos: * return sizeof(ccudart.cudaPos) * if objType == cudaMemcpy3DParms: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaMemcpy3DParms) * if objType == cudaMemcpyNodeParams: */ } /* "cuda/cudart.pyx":30028 * if objType == cudaMemcpy3DParms: * return sizeof(ccudart.cudaMemcpy3DParms) * if objType == cudaMemcpyNodeParams: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaMemcpyNodeParams) * if objType == cudaMemcpy3DPeerParms: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemcpyNodeParams), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30028, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30028, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30029 * return sizeof(ccudart.cudaMemcpy3DParms) * if objType == cudaMemcpyNodeParams: * return sizeof(ccudart.cudaMemcpyNodeParams) # <<<<<<<<<<<<<< * if objType == cudaMemcpy3DPeerParms: * return sizeof(ccudart.cudaMemcpy3DPeerParms) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaMemcpyNodeParams))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30029, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30028 * if objType == cudaMemcpy3DParms: * return sizeof(ccudart.cudaMemcpy3DParms) * if objType == cudaMemcpyNodeParams: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaMemcpyNodeParams) * if objType == cudaMemcpy3DPeerParms: */ } /* "cuda/cudart.pyx":30030 * if objType == cudaMemcpyNodeParams: * return sizeof(ccudart.cudaMemcpyNodeParams) * if objType == cudaMemcpy3DPeerParms: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaMemcpy3DPeerParms) * if objType == cudaMemsetParams: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemcpy3DPeerParms), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30030, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30030, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30031 * return sizeof(ccudart.cudaMemcpyNodeParams) * if objType == cudaMemcpy3DPeerParms: * return sizeof(ccudart.cudaMemcpy3DPeerParms) # <<<<<<<<<<<<<< * if objType == cudaMemsetParams: * return sizeof(ccudart.cudaMemsetParams) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaMemcpy3DPeerParms))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30031, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30030 * if objType == cudaMemcpyNodeParams: * return sizeof(ccudart.cudaMemcpyNodeParams) * if objType == cudaMemcpy3DPeerParms: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaMemcpy3DPeerParms) * if objType == cudaMemsetParams: */ } /* "cuda/cudart.pyx":30032 * if objType == cudaMemcpy3DPeerParms: * return sizeof(ccudart.cudaMemcpy3DPeerParms) * if objType == cudaMemsetParams: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaMemsetParams) * if objType == cudaMemsetParamsV2: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemsetParams), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30032, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30032, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30033 * return sizeof(ccudart.cudaMemcpy3DPeerParms) * if objType == cudaMemsetParams: * return sizeof(ccudart.cudaMemsetParams) # <<<<<<<<<<<<<< * if objType == cudaMemsetParamsV2: * return sizeof(ccudart.cudaMemsetParamsV2) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaMemsetParams))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30033, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30032 * if objType == cudaMemcpy3DPeerParms: * return sizeof(ccudart.cudaMemcpy3DPeerParms) * if objType == cudaMemsetParams: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaMemsetParams) * if objType == cudaMemsetParamsV2: */ } /* "cuda/cudart.pyx":30034 * if objType == cudaMemsetParams: * return sizeof(ccudart.cudaMemsetParams) * if objType == cudaMemsetParamsV2: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaMemsetParamsV2) * if objType == cudaAccessPolicyWindow: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemsetParamsV2), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30034, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30034, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30035 * return sizeof(ccudart.cudaMemsetParams) * if objType == cudaMemsetParamsV2: * return sizeof(ccudart.cudaMemsetParamsV2) # <<<<<<<<<<<<<< * if objType == cudaAccessPolicyWindow: * return sizeof(ccudart.cudaAccessPolicyWindow) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaMemsetParamsV2))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30035, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30034 * if objType == cudaMemsetParams: * return sizeof(ccudart.cudaMemsetParams) * if objType == cudaMemsetParamsV2: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaMemsetParamsV2) * if objType == cudaAccessPolicyWindow: */ } /* "cuda/cudart.pyx":30036 * if objType == cudaMemsetParamsV2: * return sizeof(ccudart.cudaMemsetParamsV2) * if objType == cudaAccessPolicyWindow: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaAccessPolicyWindow) * if objType == cudaHostFn_t: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaAccessPolicyWindow), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30036, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30036, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30037 * return sizeof(ccudart.cudaMemsetParamsV2) * if objType == cudaAccessPolicyWindow: * return sizeof(ccudart.cudaAccessPolicyWindow) # <<<<<<<<<<<<<< * if objType == cudaHostFn_t: * return sizeof(ccudart.cudaHostFn_t) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaAccessPolicyWindow))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30037, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30036 * if objType == cudaMemsetParamsV2: * return sizeof(ccudart.cudaMemsetParamsV2) * if objType == cudaAccessPolicyWindow: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaAccessPolicyWindow) * if objType == cudaHostFn_t: */ } /* "cuda/cudart.pyx":30038 * if objType == cudaAccessPolicyWindow: * return sizeof(ccudart.cudaAccessPolicyWindow) * if objType == cudaHostFn_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaHostFn_t) * if objType == cudaHostNodeParams: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaHostFn_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30038, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30038, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30039 * return sizeof(ccudart.cudaAccessPolicyWindow) * if objType == cudaHostFn_t: * return sizeof(ccudart.cudaHostFn_t) # <<<<<<<<<<<<<< * if objType == cudaHostNodeParams: * return sizeof(ccudart.cudaHostNodeParams) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaHostFn_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30039, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30038 * if objType == cudaAccessPolicyWindow: * return sizeof(ccudart.cudaAccessPolicyWindow) * if objType == cudaHostFn_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaHostFn_t) * if objType == cudaHostNodeParams: */ } /* "cuda/cudart.pyx":30040 * if objType == cudaHostFn_t: * return sizeof(ccudart.cudaHostFn_t) * if objType == cudaHostNodeParams: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaHostNodeParams) * if objType == cudaHostNodeParamsV2: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaHostNodeParams), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30040, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30040, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30041 * return sizeof(ccudart.cudaHostFn_t) * if objType == cudaHostNodeParams: * return sizeof(ccudart.cudaHostNodeParams) # <<<<<<<<<<<<<< * if objType == cudaHostNodeParamsV2: * return sizeof(ccudart.cudaHostNodeParamsV2) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaHostNodeParams))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30041, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30040 * if objType == cudaHostFn_t: * return sizeof(ccudart.cudaHostFn_t) * if objType == cudaHostNodeParams: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaHostNodeParams) * if objType == cudaHostNodeParamsV2: */ } /* "cuda/cudart.pyx":30042 * if objType == cudaHostNodeParams: * return sizeof(ccudart.cudaHostNodeParams) * if objType == cudaHostNodeParamsV2: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaHostNodeParamsV2) * if objType == cudaResourceDesc: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaHostNodeParamsV2), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30042, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30042, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30043 * return sizeof(ccudart.cudaHostNodeParams) * if objType == cudaHostNodeParamsV2: * return sizeof(ccudart.cudaHostNodeParamsV2) # <<<<<<<<<<<<<< * if objType == cudaResourceDesc: * return sizeof(ccudart.cudaResourceDesc) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaHostNodeParamsV2))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30043, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30042 * if objType == cudaHostNodeParams: * return sizeof(ccudart.cudaHostNodeParams) * if objType == cudaHostNodeParamsV2: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaHostNodeParamsV2) * if objType == cudaResourceDesc: */ } /* "cuda/cudart.pyx":30044 * if objType == cudaHostNodeParamsV2: * return sizeof(ccudart.cudaHostNodeParamsV2) * if objType == cudaResourceDesc: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaResourceDesc) * if objType == cudaResourceViewDesc: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaResourceDesc), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30044, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30044, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30045 * return sizeof(ccudart.cudaHostNodeParamsV2) * if objType == cudaResourceDesc: * return sizeof(ccudart.cudaResourceDesc) # <<<<<<<<<<<<<< * if objType == cudaResourceViewDesc: * return sizeof(ccudart.cudaResourceViewDesc) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaResourceDesc))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30045, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30044 * if objType == cudaHostNodeParamsV2: * return sizeof(ccudart.cudaHostNodeParamsV2) * if objType == cudaResourceDesc: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaResourceDesc) * if objType == cudaResourceViewDesc: */ } /* "cuda/cudart.pyx":30046 * if objType == cudaResourceDesc: * return sizeof(ccudart.cudaResourceDesc) * if objType == cudaResourceViewDesc: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaResourceViewDesc) * if objType == cudaPointerAttributes: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaResourceViewDesc), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30046, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30046, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30047 * return sizeof(ccudart.cudaResourceDesc) * if objType == cudaResourceViewDesc: * return sizeof(ccudart.cudaResourceViewDesc) # <<<<<<<<<<<<<< * if objType == cudaPointerAttributes: * return sizeof(ccudart.cudaPointerAttributes) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaResourceViewDesc))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30047, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30046 * if objType == cudaResourceDesc: * return sizeof(ccudart.cudaResourceDesc) * if objType == cudaResourceViewDesc: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaResourceViewDesc) * if objType == cudaPointerAttributes: */ } /* "cuda/cudart.pyx":30048 * if objType == cudaResourceViewDesc: * return sizeof(ccudart.cudaResourceViewDesc) * if objType == cudaPointerAttributes: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaPointerAttributes) * if objType == cudaFuncAttributes: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaPointerAttributes), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30048, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30048, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30049 * return sizeof(ccudart.cudaResourceViewDesc) * if objType == cudaPointerAttributes: * return sizeof(ccudart.cudaPointerAttributes) # <<<<<<<<<<<<<< * if objType == cudaFuncAttributes: * return sizeof(ccudart.cudaFuncAttributes) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaPointerAttributes))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30049, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30048 * if objType == cudaResourceViewDesc: * return sizeof(ccudart.cudaResourceViewDesc) * if objType == cudaPointerAttributes: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaPointerAttributes) * if objType == cudaFuncAttributes: */ } /* "cuda/cudart.pyx":30050 * if objType == cudaPointerAttributes: * return sizeof(ccudart.cudaPointerAttributes) * if objType == cudaFuncAttributes: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaFuncAttributes) * if objType == cudaMemLocation: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaFuncAttributes), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30050, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30050, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30051 * return sizeof(ccudart.cudaPointerAttributes) * if objType == cudaFuncAttributes: * return sizeof(ccudart.cudaFuncAttributes) # <<<<<<<<<<<<<< * if objType == cudaMemLocation: * return sizeof(ccudart.cudaMemLocation) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaFuncAttributes))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30051, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30050 * if objType == cudaPointerAttributes: * return sizeof(ccudart.cudaPointerAttributes) * if objType == cudaFuncAttributes: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaFuncAttributes) * if objType == cudaMemLocation: */ } /* "cuda/cudart.pyx":30052 * if objType == cudaFuncAttributes: * return sizeof(ccudart.cudaFuncAttributes) * if objType == cudaMemLocation: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaMemLocation) * if objType == cudaMemAccessDesc: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemLocation), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30052, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30052, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30053 * return sizeof(ccudart.cudaFuncAttributes) * if objType == cudaMemLocation: * return sizeof(ccudart.cudaMemLocation) # <<<<<<<<<<<<<< * if objType == cudaMemAccessDesc: * return sizeof(ccudart.cudaMemAccessDesc) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaMemLocation))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30053, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30052 * if objType == cudaFuncAttributes: * return sizeof(ccudart.cudaFuncAttributes) * if objType == cudaMemLocation: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaMemLocation) * if objType == cudaMemAccessDesc: */ } /* "cuda/cudart.pyx":30054 * if objType == cudaMemLocation: * return sizeof(ccudart.cudaMemLocation) * if objType == cudaMemAccessDesc: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaMemAccessDesc) * if objType == cudaMemPoolProps: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemAccessDesc), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30054, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30054, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30055 * return sizeof(ccudart.cudaMemLocation) * if objType == cudaMemAccessDesc: * return sizeof(ccudart.cudaMemAccessDesc) # <<<<<<<<<<<<<< * if objType == cudaMemPoolProps: * return sizeof(ccudart.cudaMemPoolProps) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaMemAccessDesc))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30055, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30054 * if objType == cudaMemLocation: * return sizeof(ccudart.cudaMemLocation) * if objType == cudaMemAccessDesc: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaMemAccessDesc) * if objType == cudaMemPoolProps: */ } /* "cuda/cudart.pyx":30056 * if objType == cudaMemAccessDesc: * return sizeof(ccudart.cudaMemAccessDesc) * if objType == cudaMemPoolProps: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaMemPoolProps) * if objType == cudaMemPoolPtrExportData: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemPoolProps), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30056, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30056, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30057 * return sizeof(ccudart.cudaMemAccessDesc) * if objType == cudaMemPoolProps: * return sizeof(ccudart.cudaMemPoolProps) # <<<<<<<<<<<<<< * if objType == cudaMemPoolPtrExportData: * return sizeof(ccudart.cudaMemPoolPtrExportData) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaMemPoolProps))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30057, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30056 * if objType == cudaMemAccessDesc: * return sizeof(ccudart.cudaMemAccessDesc) * if objType == cudaMemPoolProps: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaMemPoolProps) * if objType == cudaMemPoolPtrExportData: */ } /* "cuda/cudart.pyx":30058 * if objType == cudaMemPoolProps: * return sizeof(ccudart.cudaMemPoolProps) * if objType == cudaMemPoolPtrExportData: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaMemPoolPtrExportData) * if objType == cudaMemAllocNodeParams: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemPoolPtrExportData), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30058, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30058, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30059 * return sizeof(ccudart.cudaMemPoolProps) * if objType == cudaMemPoolPtrExportData: * return sizeof(ccudart.cudaMemPoolPtrExportData) # <<<<<<<<<<<<<< * if objType == cudaMemAllocNodeParams: * return sizeof(ccudart.cudaMemAllocNodeParams) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaMemPoolPtrExportData))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30059, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30058 * if objType == cudaMemPoolProps: * return sizeof(ccudart.cudaMemPoolProps) * if objType == cudaMemPoolPtrExportData: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaMemPoolPtrExportData) * if objType == cudaMemAllocNodeParams: */ } /* "cuda/cudart.pyx":30060 * if objType == cudaMemPoolPtrExportData: * return sizeof(ccudart.cudaMemPoolPtrExportData) * if objType == cudaMemAllocNodeParams: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaMemAllocNodeParams) * if objType == cudaMemAllocNodeParamsV2: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParams), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30060, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30060, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30061 * return sizeof(ccudart.cudaMemPoolPtrExportData) * if objType == cudaMemAllocNodeParams: * return sizeof(ccudart.cudaMemAllocNodeParams) # <<<<<<<<<<<<<< * if objType == cudaMemAllocNodeParamsV2: * return sizeof(ccudart.cudaMemAllocNodeParamsV2) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaMemAllocNodeParams))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30061, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30060 * if objType == cudaMemPoolPtrExportData: * return sizeof(ccudart.cudaMemPoolPtrExportData) * if objType == cudaMemAllocNodeParams: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaMemAllocNodeParams) * if objType == cudaMemAllocNodeParamsV2: */ } /* "cuda/cudart.pyx":30062 * if objType == cudaMemAllocNodeParams: * return sizeof(ccudart.cudaMemAllocNodeParams) * if objType == cudaMemAllocNodeParamsV2: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaMemAllocNodeParamsV2) * if objType == cudaMemFreeNodeParams: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParamsV2), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30062, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30062, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30063 * return sizeof(ccudart.cudaMemAllocNodeParams) * if objType == cudaMemAllocNodeParamsV2: * return sizeof(ccudart.cudaMemAllocNodeParamsV2) # <<<<<<<<<<<<<< * if objType == cudaMemFreeNodeParams: * return sizeof(ccudart.cudaMemFreeNodeParams) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaMemAllocNodeParamsV2))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30063, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30062 * if objType == cudaMemAllocNodeParams: * return sizeof(ccudart.cudaMemAllocNodeParams) * if objType == cudaMemAllocNodeParamsV2: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaMemAllocNodeParamsV2) * if objType == cudaMemFreeNodeParams: */ } /* "cuda/cudart.pyx":30064 * if objType == cudaMemAllocNodeParamsV2: * return sizeof(ccudart.cudaMemAllocNodeParamsV2) * if objType == cudaMemFreeNodeParams: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaMemFreeNodeParams) * if objType == CUuuid_st: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemFreeNodeParams), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30064, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30064, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30065 * return sizeof(ccudart.cudaMemAllocNodeParamsV2) * if objType == cudaMemFreeNodeParams: * return sizeof(ccudart.cudaMemFreeNodeParams) # <<<<<<<<<<<<<< * if objType == CUuuid_st: * return sizeof(ccudart.CUuuid_st) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaMemFreeNodeParams))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30065, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30064 * if objType == cudaMemAllocNodeParamsV2: * return sizeof(ccudart.cudaMemAllocNodeParamsV2) * if objType == cudaMemFreeNodeParams: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaMemFreeNodeParams) * if objType == CUuuid_st: */ } /* "cuda/cudart.pyx":30066 * if objType == cudaMemFreeNodeParams: * return sizeof(ccudart.cudaMemFreeNodeParams) * if objType == CUuuid_st: # <<<<<<<<<<<<<< * return sizeof(ccudart.CUuuid_st) * if objType == CUuuid: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_CUuuid_st), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30066, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30066, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30067 * return sizeof(ccudart.cudaMemFreeNodeParams) * if objType == CUuuid_st: * return sizeof(ccudart.CUuuid_st) # <<<<<<<<<<<<<< * if objType == CUuuid: * return sizeof(ccudart.CUuuid) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct CUuuid_st))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30067, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30066 * if objType == cudaMemFreeNodeParams: * return sizeof(ccudart.cudaMemFreeNodeParams) * if objType == CUuuid_st: # <<<<<<<<<<<<<< * return sizeof(ccudart.CUuuid_st) * if objType == CUuuid: */ } /* "cuda/cudart.pyx":30068 * if objType == CUuuid_st: * return sizeof(ccudart.CUuuid_st) * if objType == CUuuid: # <<<<<<<<<<<<<< * return sizeof(ccudart.CUuuid) * if objType == cudaUUID_t: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_CUuuid), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30068, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30068, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30069 * return sizeof(ccudart.CUuuid_st) * if objType == CUuuid: * return sizeof(ccudart.CUuuid) # <<<<<<<<<<<<<< * if objType == cudaUUID_t: * return sizeof(ccudart.cudaUUID_t) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(CUuuid))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30069, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30068 * if objType == CUuuid_st: * return sizeof(ccudart.CUuuid_st) * if objType == CUuuid: # <<<<<<<<<<<<<< * return sizeof(ccudart.CUuuid) * if objType == cudaUUID_t: */ } /* "cuda/cudart.pyx":30070 * if objType == CUuuid: * return sizeof(ccudart.CUuuid) * if objType == cudaUUID_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaUUID_t) * if objType == cudaDeviceProp: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaUUID_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30070, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30070, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30071 * return sizeof(ccudart.CUuuid) * if objType == cudaUUID_t: * return sizeof(ccudart.cudaUUID_t) # <<<<<<<<<<<<<< * if objType == cudaDeviceProp: * return sizeof(ccudart.cudaDeviceProp) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaUUID_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30071, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30070 * if objType == CUuuid: * return sizeof(ccudart.CUuuid) * if objType == cudaUUID_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaUUID_t) * if objType == cudaDeviceProp: */ } /* "cuda/cudart.pyx":30072 * if objType == cudaUUID_t: * return sizeof(ccudart.cudaUUID_t) * if objType == cudaDeviceProp: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaDeviceProp) * if objType == cudaIpcEventHandle_st: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaDeviceProp), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30072, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30072, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30073 * return sizeof(ccudart.cudaUUID_t) * if objType == cudaDeviceProp: * return sizeof(ccudart.cudaDeviceProp) # <<<<<<<<<<<<<< * if objType == cudaIpcEventHandle_st: * return sizeof(ccudart.cudaIpcEventHandle_st) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaDeviceProp))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30073, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30072 * if objType == cudaUUID_t: * return sizeof(ccudart.cudaUUID_t) * if objType == cudaDeviceProp: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaDeviceProp) * if objType == cudaIpcEventHandle_st: */ } /* "cuda/cudart.pyx":30074 * if objType == cudaDeviceProp: * return sizeof(ccudart.cudaDeviceProp) * if objType == cudaIpcEventHandle_st: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaIpcEventHandle_st) * if objType == cudaIpcEventHandle_t: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaIpcEventHandle_st), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30074, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30074, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30075 * return sizeof(ccudart.cudaDeviceProp) * if objType == cudaIpcEventHandle_st: * return sizeof(ccudart.cudaIpcEventHandle_st) # <<<<<<<<<<<<<< * if objType == cudaIpcEventHandle_t: * return sizeof(ccudart.cudaIpcEventHandle_t) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaIpcEventHandle_st))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30075, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30074 * if objType == cudaDeviceProp: * return sizeof(ccudart.cudaDeviceProp) * if objType == cudaIpcEventHandle_st: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaIpcEventHandle_st) * if objType == cudaIpcEventHandle_t: */ } /* "cuda/cudart.pyx":30076 * if objType == cudaIpcEventHandle_st: * return sizeof(ccudart.cudaIpcEventHandle_st) * if objType == cudaIpcEventHandle_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaIpcEventHandle_t) * if objType == cudaIpcMemHandle_st: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaIpcEventHandle_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30076, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30076, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30077 * return sizeof(ccudart.cudaIpcEventHandle_st) * if objType == cudaIpcEventHandle_t: * return sizeof(ccudart.cudaIpcEventHandle_t) # <<<<<<<<<<<<<< * if objType == cudaIpcMemHandle_st: * return sizeof(ccudart.cudaIpcMemHandle_st) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaIpcEventHandle_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30077, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30076 * if objType == cudaIpcEventHandle_st: * return sizeof(ccudart.cudaIpcEventHandle_st) * if objType == cudaIpcEventHandle_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaIpcEventHandle_t) * if objType == cudaIpcMemHandle_st: */ } /* "cuda/cudart.pyx":30078 * if objType == cudaIpcEventHandle_t: * return sizeof(ccudart.cudaIpcEventHandle_t) * if objType == cudaIpcMemHandle_st: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaIpcMemHandle_st) * if objType == cudaIpcMemHandle_t: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaIpcMemHandle_st), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30078, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30078, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30079 * return sizeof(ccudart.cudaIpcEventHandle_t) * if objType == cudaIpcMemHandle_st: * return sizeof(ccudart.cudaIpcMemHandle_st) # <<<<<<<<<<<<<< * if objType == cudaIpcMemHandle_t: * return sizeof(ccudart.cudaIpcMemHandle_t) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaIpcMemHandle_st))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30079, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30078 * if objType == cudaIpcEventHandle_t: * return sizeof(ccudart.cudaIpcEventHandle_t) * if objType == cudaIpcMemHandle_st: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaIpcMemHandle_st) * if objType == cudaIpcMemHandle_t: */ } /* "cuda/cudart.pyx":30080 * if objType == cudaIpcMemHandle_st: * return sizeof(ccudart.cudaIpcMemHandle_st) * if objType == cudaIpcMemHandle_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaIpcMemHandle_t) * if objType == cudaMemFabricHandle_st: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaIpcMemHandle_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30080, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30080, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30081 * return sizeof(ccudart.cudaIpcMemHandle_st) * if objType == cudaIpcMemHandle_t: * return sizeof(ccudart.cudaIpcMemHandle_t) # <<<<<<<<<<<<<< * if objType == cudaMemFabricHandle_st: * return sizeof(ccudart.cudaMemFabricHandle_st) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaIpcMemHandle_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30081, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30080 * if objType == cudaIpcMemHandle_st: * return sizeof(ccudart.cudaIpcMemHandle_st) * if objType == cudaIpcMemHandle_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaIpcMemHandle_t) * if objType == cudaMemFabricHandle_st: */ } /* "cuda/cudart.pyx":30082 * if objType == cudaIpcMemHandle_t: * return sizeof(ccudart.cudaIpcMemHandle_t) * if objType == cudaMemFabricHandle_st: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaMemFabricHandle_st) * if objType == cudaMemFabricHandle_t: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemFabricHandle_st), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30082, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30082, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30083 * return sizeof(ccudart.cudaIpcMemHandle_t) * if objType == cudaMemFabricHandle_st: * return sizeof(ccudart.cudaMemFabricHandle_st) # <<<<<<<<<<<<<< * if objType == cudaMemFabricHandle_t: * return sizeof(ccudart.cudaMemFabricHandle_t) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaMemFabricHandle_st))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30083, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30082 * if objType == cudaIpcMemHandle_t: * return sizeof(ccudart.cudaIpcMemHandle_t) * if objType == cudaMemFabricHandle_st: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaMemFabricHandle_st) * if objType == cudaMemFabricHandle_t: */ } /* "cuda/cudart.pyx":30084 * if objType == cudaMemFabricHandle_st: * return sizeof(ccudart.cudaMemFabricHandle_st) * if objType == cudaMemFabricHandle_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaMemFabricHandle_t) * if objType == cudaExternalMemoryHandleDesc: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemFabricHandle_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30084, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30084, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30085 * return sizeof(ccudart.cudaMemFabricHandle_st) * if objType == cudaMemFabricHandle_t: * return sizeof(ccudart.cudaMemFabricHandle_t) # <<<<<<<<<<<<<< * if objType == cudaExternalMemoryHandleDesc: * return sizeof(ccudart.cudaExternalMemoryHandleDesc) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaMemFabricHandle_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30085, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30084 * if objType == cudaMemFabricHandle_st: * return sizeof(ccudart.cudaMemFabricHandle_st) * if objType == cudaMemFabricHandle_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaMemFabricHandle_t) * if objType == cudaExternalMemoryHandleDesc: */ } /* "cuda/cudart.pyx":30086 * if objType == cudaMemFabricHandle_t: * return sizeof(ccudart.cudaMemFabricHandle_t) * if objType == cudaExternalMemoryHandleDesc: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaExternalMemoryHandleDesc) * if objType == cudaExternalMemoryBufferDesc: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalMemoryHandleDesc), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30086, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30086, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30087 * return sizeof(ccudart.cudaMemFabricHandle_t) * if objType == cudaExternalMemoryHandleDesc: * return sizeof(ccudart.cudaExternalMemoryHandleDesc) # <<<<<<<<<<<<<< * if objType == cudaExternalMemoryBufferDesc: * return sizeof(ccudart.cudaExternalMemoryBufferDesc) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaExternalMemoryHandleDesc))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30087, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30086 * if objType == cudaMemFabricHandle_t: * return sizeof(ccudart.cudaMemFabricHandle_t) * if objType == cudaExternalMemoryHandleDesc: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaExternalMemoryHandleDesc) * if objType == cudaExternalMemoryBufferDesc: */ } /* "cuda/cudart.pyx":30088 * if objType == cudaExternalMemoryHandleDesc: * return sizeof(ccudart.cudaExternalMemoryHandleDesc) * if objType == cudaExternalMemoryBufferDesc: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaExternalMemoryBufferDesc) * if objType == cudaExternalMemoryMipmappedArrayDesc: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalMemoryBufferDesc), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30088, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30088, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30089 * return sizeof(ccudart.cudaExternalMemoryHandleDesc) * if objType == cudaExternalMemoryBufferDesc: * return sizeof(ccudart.cudaExternalMemoryBufferDesc) # <<<<<<<<<<<<<< * if objType == cudaExternalMemoryMipmappedArrayDesc: * return sizeof(ccudart.cudaExternalMemoryMipmappedArrayDesc) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaExternalMemoryBufferDesc))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30089, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30088 * if objType == cudaExternalMemoryHandleDesc: * return sizeof(ccudart.cudaExternalMemoryHandleDesc) * if objType == cudaExternalMemoryBufferDesc: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaExternalMemoryBufferDesc) * if objType == cudaExternalMemoryMipmappedArrayDesc: */ } /* "cuda/cudart.pyx":30090 * if objType == cudaExternalMemoryBufferDesc: * return sizeof(ccudart.cudaExternalMemoryBufferDesc) * if objType == cudaExternalMemoryMipmappedArrayDesc: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaExternalMemoryMipmappedArrayDesc) * if objType == cudaExternalSemaphoreHandleDesc: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30090, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30090, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30091 * return sizeof(ccudart.cudaExternalMemoryBufferDesc) * if objType == cudaExternalMemoryMipmappedArrayDesc: * return sizeof(ccudart.cudaExternalMemoryMipmappedArrayDesc) # <<<<<<<<<<<<<< * if objType == cudaExternalSemaphoreHandleDesc: * return sizeof(ccudart.cudaExternalSemaphoreHandleDesc) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaExternalMemoryMipmappedArrayDesc))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30091, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30090 * if objType == cudaExternalMemoryBufferDesc: * return sizeof(ccudart.cudaExternalMemoryBufferDesc) * if objType == cudaExternalMemoryMipmappedArrayDesc: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaExternalMemoryMipmappedArrayDesc) * if objType == cudaExternalSemaphoreHandleDesc: */ } /* "cuda/cudart.pyx":30092 * if objType == cudaExternalMemoryMipmappedArrayDesc: * return sizeof(ccudart.cudaExternalMemoryMipmappedArrayDesc) * if objType == cudaExternalSemaphoreHandleDesc: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaExternalSemaphoreHandleDesc) * if objType == cudaExternalSemaphoreSignalParams: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreHandleDesc), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30092, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30092, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30093 * return sizeof(ccudart.cudaExternalMemoryMipmappedArrayDesc) * if objType == cudaExternalSemaphoreHandleDesc: * return sizeof(ccudart.cudaExternalSemaphoreHandleDesc) # <<<<<<<<<<<<<< * if objType == cudaExternalSemaphoreSignalParams: * return sizeof(ccudart.cudaExternalSemaphoreSignalParams) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaExternalSemaphoreHandleDesc))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30093, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30092 * if objType == cudaExternalMemoryMipmappedArrayDesc: * return sizeof(ccudart.cudaExternalMemoryMipmappedArrayDesc) * if objType == cudaExternalSemaphoreHandleDesc: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaExternalSemaphoreHandleDesc) * if objType == cudaExternalSemaphoreSignalParams: */ } /* "cuda/cudart.pyx":30094 * if objType == cudaExternalSemaphoreHandleDesc: * return sizeof(ccudart.cudaExternalSemaphoreHandleDesc) * if objType == cudaExternalSemaphoreSignalParams: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaExternalSemaphoreSignalParams) * if objType == cudaExternalSemaphoreWaitParams: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalParams), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30094, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30094, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30095 * return sizeof(ccudart.cudaExternalSemaphoreHandleDesc) * if objType == cudaExternalSemaphoreSignalParams: * return sizeof(ccudart.cudaExternalSemaphoreSignalParams) # <<<<<<<<<<<<<< * if objType == cudaExternalSemaphoreWaitParams: * return sizeof(ccudart.cudaExternalSemaphoreWaitParams) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaExternalSemaphoreSignalParams))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30095, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30094 * if objType == cudaExternalSemaphoreHandleDesc: * return sizeof(ccudart.cudaExternalSemaphoreHandleDesc) * if objType == cudaExternalSemaphoreSignalParams: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaExternalSemaphoreSignalParams) * if objType == cudaExternalSemaphoreWaitParams: */ } /* "cuda/cudart.pyx":30096 * if objType == cudaExternalSemaphoreSignalParams: * return sizeof(ccudart.cudaExternalSemaphoreSignalParams) * if objType == cudaExternalSemaphoreWaitParams: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaExternalSemaphoreWaitParams) * if objType == cudaStream_t: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitParams), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30096, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30096, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30097 * return sizeof(ccudart.cudaExternalSemaphoreSignalParams) * if objType == cudaExternalSemaphoreWaitParams: * return sizeof(ccudart.cudaExternalSemaphoreWaitParams) # <<<<<<<<<<<<<< * if objType == cudaStream_t: * return sizeof(ccudart.cudaStream_t) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaExternalSemaphoreWaitParams))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30097, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30096 * if objType == cudaExternalSemaphoreSignalParams: * return sizeof(ccudart.cudaExternalSemaphoreSignalParams) * if objType == cudaExternalSemaphoreWaitParams: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaExternalSemaphoreWaitParams) * if objType == cudaStream_t: */ } /* "cuda/cudart.pyx":30098 * if objType == cudaExternalSemaphoreWaitParams: * return sizeof(ccudart.cudaExternalSemaphoreWaitParams) * if objType == cudaStream_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaStream_t) * if objType == cudaEvent_t: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStream_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30098, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30098, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30099 * return sizeof(ccudart.cudaExternalSemaphoreWaitParams) * if objType == cudaStream_t: * return sizeof(ccudart.cudaStream_t) # <<<<<<<<<<<<<< * if objType == cudaEvent_t: * return sizeof(ccudart.cudaEvent_t) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaStream_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30099, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30098 * if objType == cudaExternalSemaphoreWaitParams: * return sizeof(ccudart.cudaExternalSemaphoreWaitParams) * if objType == cudaStream_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaStream_t) * if objType == cudaEvent_t: */ } /* "cuda/cudart.pyx":30100 * if objType == cudaStream_t: * return sizeof(ccudart.cudaStream_t) * if objType == cudaEvent_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaEvent_t) * if objType == cudaGraphicsResource_t: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEvent_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30100, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30100, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30101 * return sizeof(ccudart.cudaStream_t) * if objType == cudaEvent_t: * return sizeof(ccudart.cudaEvent_t) # <<<<<<<<<<<<<< * if objType == cudaGraphicsResource_t: * return sizeof(ccudart.cudaGraphicsResource_t) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaEvent_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30100 * if objType == cudaStream_t: * return sizeof(ccudart.cudaStream_t) * if objType == cudaEvent_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaEvent_t) * if objType == cudaGraphicsResource_t: */ } /* "cuda/cudart.pyx":30102 * if objType == cudaEvent_t: * return sizeof(ccudart.cudaEvent_t) * if objType == cudaGraphicsResource_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaGraphicsResource_t) * if objType == cudaExternalMemory_t: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30102, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30102, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30103 * return sizeof(ccudart.cudaEvent_t) * if objType == cudaGraphicsResource_t: * return sizeof(ccudart.cudaGraphicsResource_t) # <<<<<<<<<<<<<< * if objType == cudaExternalMemory_t: * return sizeof(ccudart.cudaExternalMemory_t) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphicsResource_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30103, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30102 * if objType == cudaEvent_t: * return sizeof(ccudart.cudaEvent_t) * if objType == cudaGraphicsResource_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaGraphicsResource_t) * if objType == cudaExternalMemory_t: */ } /* "cuda/cudart.pyx":30104 * if objType == cudaGraphicsResource_t: * return sizeof(ccudart.cudaGraphicsResource_t) * if objType == cudaExternalMemory_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaExternalMemory_t) * if objType == cudaExternalSemaphore_t: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalMemory_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30104, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30104, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30105 * return sizeof(ccudart.cudaGraphicsResource_t) * if objType == cudaExternalMemory_t: * return sizeof(ccudart.cudaExternalMemory_t) # <<<<<<<<<<<<<< * if objType == cudaExternalSemaphore_t: * return sizeof(ccudart.cudaExternalSemaphore_t) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaExternalMemory_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30104 * if objType == cudaGraphicsResource_t: * return sizeof(ccudart.cudaGraphicsResource_t) * if objType == cudaExternalMemory_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaExternalMemory_t) * if objType == cudaExternalSemaphore_t: */ } /* "cuda/cudart.pyx":30106 * if objType == cudaExternalMemory_t: * return sizeof(ccudart.cudaExternalMemory_t) * if objType == cudaExternalSemaphore_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaExternalSemaphore_t) * if objType == cudaGraph_t: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalSemaphore_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30106, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30106, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30107 * return sizeof(ccudart.cudaExternalMemory_t) * if objType == cudaExternalSemaphore_t: * return sizeof(ccudart.cudaExternalSemaphore_t) # <<<<<<<<<<<<<< * if objType == cudaGraph_t: * return sizeof(ccudart.cudaGraph_t) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaExternalSemaphore_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30107, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30106 * if objType == cudaExternalMemory_t: * return sizeof(ccudart.cudaExternalMemory_t) * if objType == cudaExternalSemaphore_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaExternalSemaphore_t) * if objType == cudaGraph_t: */ } /* "cuda/cudart.pyx":30108 * if objType == cudaExternalSemaphore_t: * return sizeof(ccudart.cudaExternalSemaphore_t) * if objType == cudaGraph_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaGraph_t) * if objType == cudaGraphNode_t: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraph_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30108, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30108, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30109 * return sizeof(ccudart.cudaExternalSemaphore_t) * if objType == cudaGraph_t: * return sizeof(ccudart.cudaGraph_t) # <<<<<<<<<<<<<< * if objType == cudaGraphNode_t: * return sizeof(ccudart.cudaGraphNode_t) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraph_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30109, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30108 * if objType == cudaExternalSemaphore_t: * return sizeof(ccudart.cudaExternalSemaphore_t) * if objType == cudaGraph_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaGraph_t) * if objType == cudaGraphNode_t: */ } /* "cuda/cudart.pyx":30110 * if objType == cudaGraph_t: * return sizeof(ccudart.cudaGraph_t) * if objType == cudaGraphNode_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaGraphNode_t) * if objType == cudaUserObject_t: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNode_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30110, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30110, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30111 * return sizeof(ccudart.cudaGraph_t) * if objType == cudaGraphNode_t: * return sizeof(ccudart.cudaGraphNode_t) # <<<<<<<<<<<<<< * if objType == cudaUserObject_t: * return sizeof(ccudart.cudaUserObject_t) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30111, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30110 * if objType == cudaGraph_t: * return sizeof(ccudart.cudaGraph_t) * if objType == cudaGraphNode_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaGraphNode_t) * if objType == cudaUserObject_t: */ } /* "cuda/cudart.pyx":30112 * if objType == cudaGraphNode_t: * return sizeof(ccudart.cudaGraphNode_t) * if objType == cudaUserObject_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaUserObject_t) * if objType == cudaGraphConditionalHandle: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaUserObject_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30112, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30112, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30113 * return sizeof(ccudart.cudaGraphNode_t) * if objType == cudaUserObject_t: * return sizeof(ccudart.cudaUserObject_t) # <<<<<<<<<<<<<< * if objType == cudaGraphConditionalHandle: * return sizeof(ccudart.cudaGraphConditionalHandle) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaUserObject_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30113, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30112 * if objType == cudaGraphNode_t: * return sizeof(ccudart.cudaGraphNode_t) * if objType == cudaUserObject_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaUserObject_t) * if objType == cudaGraphConditionalHandle: */ } /* "cuda/cudart.pyx":30114 * if objType == cudaUserObject_t: * return sizeof(ccudart.cudaUserObject_t) * if objType == cudaGraphConditionalHandle: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaGraphConditionalHandle) * if objType == cudaFunction_t: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphConditionalHandle), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30114, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30114, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30115 * return sizeof(ccudart.cudaUserObject_t) * if objType == cudaGraphConditionalHandle: * return sizeof(ccudart.cudaGraphConditionalHandle) # <<<<<<<<<<<<<< * if objType == cudaFunction_t: * return sizeof(ccudart.cudaFunction_t) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphConditionalHandle))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30115, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30114 * if objType == cudaUserObject_t: * return sizeof(ccudart.cudaUserObject_t) * if objType == cudaGraphConditionalHandle: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaGraphConditionalHandle) * if objType == cudaFunction_t: */ } /* "cuda/cudart.pyx":30116 * if objType == cudaGraphConditionalHandle: * return sizeof(ccudart.cudaGraphConditionalHandle) * if objType == cudaFunction_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaFunction_t) * if objType == cudaKernel_t: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaFunction_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30116, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30116, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30117 * return sizeof(ccudart.cudaGraphConditionalHandle) * if objType == cudaFunction_t: * return sizeof(ccudart.cudaFunction_t) # <<<<<<<<<<<<<< * if objType == cudaKernel_t: * return sizeof(ccudart.cudaKernel_t) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaFunction_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30117, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30116 * if objType == cudaGraphConditionalHandle: * return sizeof(ccudart.cudaGraphConditionalHandle) * if objType == cudaFunction_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaFunction_t) * if objType == cudaKernel_t: */ } /* "cuda/cudart.pyx":30118 * if objType == cudaFunction_t: * return sizeof(ccudart.cudaFunction_t) * if objType == cudaKernel_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaKernel_t) * if objType == cudaMemPool_t: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaKernel_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30118, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30118, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30119 * return sizeof(ccudart.cudaFunction_t) * if objType == cudaKernel_t: * return sizeof(ccudart.cudaKernel_t) # <<<<<<<<<<<<<< * if objType == cudaMemPool_t: * return sizeof(ccudart.cudaMemPool_t) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaKernel_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30119, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30118 * if objType == cudaFunction_t: * return sizeof(ccudart.cudaFunction_t) * if objType == cudaKernel_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaKernel_t) * if objType == cudaMemPool_t: */ } /* "cuda/cudart.pyx":30120 * if objType == cudaKernel_t: * return sizeof(ccudart.cudaKernel_t) * if objType == cudaMemPool_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaMemPool_t) * if objType == cudaKernelNodeParams: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemPool_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30120, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30120, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30121 * return sizeof(ccudart.cudaKernel_t) * if objType == cudaMemPool_t: * return sizeof(ccudart.cudaMemPool_t) # <<<<<<<<<<<<<< * if objType == cudaKernelNodeParams: * return sizeof(ccudart.cudaKernelNodeParams) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaMemPool_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30121, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30120 * if objType == cudaKernel_t: * return sizeof(ccudart.cudaKernel_t) * if objType == cudaMemPool_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaMemPool_t) * if objType == cudaKernelNodeParams: */ } /* "cuda/cudart.pyx":30122 * if objType == cudaMemPool_t: * return sizeof(ccudart.cudaMemPool_t) * if objType == cudaKernelNodeParams: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaKernelNodeParams) * if objType == cudaKernelNodeParamsV2: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaKernelNodeParams), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30122, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30122, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30123 * return sizeof(ccudart.cudaMemPool_t) * if objType == cudaKernelNodeParams: * return sizeof(ccudart.cudaKernelNodeParams) # <<<<<<<<<<<<<< * if objType == cudaKernelNodeParamsV2: * return sizeof(ccudart.cudaKernelNodeParamsV2) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaKernelNodeParams))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30123, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30122 * if objType == cudaMemPool_t: * return sizeof(ccudart.cudaMemPool_t) * if objType == cudaKernelNodeParams: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaKernelNodeParams) * if objType == cudaKernelNodeParamsV2: */ } /* "cuda/cudart.pyx":30124 * if objType == cudaKernelNodeParams: * return sizeof(ccudart.cudaKernelNodeParams) * if objType == cudaKernelNodeParamsV2: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaKernelNodeParamsV2) * if objType == cudaExternalSemaphoreSignalNodeParams: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaKernelNodeParamsV2), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30124, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30124, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30125 * return sizeof(ccudart.cudaKernelNodeParams) * if objType == cudaKernelNodeParamsV2: * return sizeof(ccudart.cudaKernelNodeParamsV2) # <<<<<<<<<<<<<< * if objType == cudaExternalSemaphoreSignalNodeParams: * return sizeof(ccudart.cudaExternalSemaphoreSignalNodeParams) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaKernelNodeParamsV2))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30125, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30124 * if objType == cudaKernelNodeParams: * return sizeof(ccudart.cudaKernelNodeParams) * if objType == cudaKernelNodeParamsV2: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaKernelNodeParamsV2) * if objType == cudaExternalSemaphoreSignalNodeParams: */ } /* "cuda/cudart.pyx":30126 * if objType == cudaKernelNodeParamsV2: * return sizeof(ccudart.cudaKernelNodeParamsV2) * if objType == cudaExternalSemaphoreSignalNodeParams: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaExternalSemaphoreSignalNodeParams) * if objType == cudaExternalSemaphoreSignalNodeParamsV2: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30126, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30126, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30127 * return sizeof(ccudart.cudaKernelNodeParamsV2) * if objType == cudaExternalSemaphoreSignalNodeParams: * return sizeof(ccudart.cudaExternalSemaphoreSignalNodeParams) # <<<<<<<<<<<<<< * if objType == cudaExternalSemaphoreSignalNodeParamsV2: * return sizeof(ccudart.cudaExternalSemaphoreSignalNodeParamsV2) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaExternalSemaphoreSignalNodeParams))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30127, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30126 * if objType == cudaKernelNodeParamsV2: * return sizeof(ccudart.cudaKernelNodeParamsV2) * if objType == cudaExternalSemaphoreSignalNodeParams: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaExternalSemaphoreSignalNodeParams) * if objType == cudaExternalSemaphoreSignalNodeParamsV2: */ } /* "cuda/cudart.pyx":30128 * if objType == cudaExternalSemaphoreSignalNodeParams: * return sizeof(ccudart.cudaExternalSemaphoreSignalNodeParams) * if objType == cudaExternalSemaphoreSignalNodeParamsV2: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaExternalSemaphoreSignalNodeParamsV2) * if objType == cudaExternalSemaphoreWaitNodeParams: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30128, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30128, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30129 * return sizeof(ccudart.cudaExternalSemaphoreSignalNodeParams) * if objType == cudaExternalSemaphoreSignalNodeParamsV2: * return sizeof(ccudart.cudaExternalSemaphoreSignalNodeParamsV2) # <<<<<<<<<<<<<< * if objType == cudaExternalSemaphoreWaitNodeParams: * return sizeof(ccudart.cudaExternalSemaphoreWaitNodeParams) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaExternalSemaphoreSignalNodeParamsV2))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30128 * if objType == cudaExternalSemaphoreSignalNodeParams: * return sizeof(ccudart.cudaExternalSemaphoreSignalNodeParams) * if objType == cudaExternalSemaphoreSignalNodeParamsV2: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaExternalSemaphoreSignalNodeParamsV2) * if objType == cudaExternalSemaphoreWaitNodeParams: */ } /* "cuda/cudart.pyx":30130 * if objType == cudaExternalSemaphoreSignalNodeParamsV2: * return sizeof(ccudart.cudaExternalSemaphoreSignalNodeParamsV2) * if objType == cudaExternalSemaphoreWaitNodeParams: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaExternalSemaphoreWaitNodeParams) * if objType == cudaExternalSemaphoreWaitNodeParamsV2: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30130, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30130, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30131 * return sizeof(ccudart.cudaExternalSemaphoreSignalNodeParamsV2) * if objType == cudaExternalSemaphoreWaitNodeParams: * return sizeof(ccudart.cudaExternalSemaphoreWaitNodeParams) # <<<<<<<<<<<<<< * if objType == cudaExternalSemaphoreWaitNodeParamsV2: * return sizeof(ccudart.cudaExternalSemaphoreWaitNodeParamsV2) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaExternalSemaphoreWaitNodeParams))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30130 * if objType == cudaExternalSemaphoreSignalNodeParamsV2: * return sizeof(ccudart.cudaExternalSemaphoreSignalNodeParamsV2) * if objType == cudaExternalSemaphoreWaitNodeParams: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaExternalSemaphoreWaitNodeParams) * if objType == cudaExternalSemaphoreWaitNodeParamsV2: */ } /* "cuda/cudart.pyx":30132 * if objType == cudaExternalSemaphoreWaitNodeParams: * return sizeof(ccudart.cudaExternalSemaphoreWaitNodeParams) * if objType == cudaExternalSemaphoreWaitNodeParamsV2: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaExternalSemaphoreWaitNodeParamsV2) * if objType == cudaConditionalNodeParams: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30132, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30132, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30133 * return sizeof(ccudart.cudaExternalSemaphoreWaitNodeParams) * if objType == cudaExternalSemaphoreWaitNodeParamsV2: * return sizeof(ccudart.cudaExternalSemaphoreWaitNodeParamsV2) # <<<<<<<<<<<<<< * if objType == cudaConditionalNodeParams: * return sizeof(ccudart.cudaConditionalNodeParams) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaExternalSemaphoreWaitNodeParamsV2))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30132 * if objType == cudaExternalSemaphoreWaitNodeParams: * return sizeof(ccudart.cudaExternalSemaphoreWaitNodeParams) * if objType == cudaExternalSemaphoreWaitNodeParamsV2: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaExternalSemaphoreWaitNodeParamsV2) * if objType == cudaConditionalNodeParams: */ } /* "cuda/cudart.pyx":30134 * if objType == cudaExternalSemaphoreWaitNodeParamsV2: * return sizeof(ccudart.cudaExternalSemaphoreWaitNodeParamsV2) * if objType == cudaConditionalNodeParams: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaConditionalNodeParams) * if objType == cudaChildGraphNodeParams: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaConditionalNodeParams), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30134, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30134, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30135 * return sizeof(ccudart.cudaExternalSemaphoreWaitNodeParamsV2) * if objType == cudaConditionalNodeParams: * return sizeof(ccudart.cudaConditionalNodeParams) # <<<<<<<<<<<<<< * if objType == cudaChildGraphNodeParams: * return sizeof(ccudart.cudaChildGraphNodeParams) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaConditionalNodeParams))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30135, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30134 * if objType == cudaExternalSemaphoreWaitNodeParamsV2: * return sizeof(ccudart.cudaExternalSemaphoreWaitNodeParamsV2) * if objType == cudaConditionalNodeParams: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaConditionalNodeParams) * if objType == cudaChildGraphNodeParams: */ } /* "cuda/cudart.pyx":30136 * if objType == cudaConditionalNodeParams: * return sizeof(ccudart.cudaConditionalNodeParams) * if objType == cudaChildGraphNodeParams: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaChildGraphNodeParams) * if objType == cudaEventRecordNodeParams: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaChildGraphNodeParams), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30136, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30136, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30137 * return sizeof(ccudart.cudaConditionalNodeParams) * if objType == cudaChildGraphNodeParams: * return sizeof(ccudart.cudaChildGraphNodeParams) # <<<<<<<<<<<<<< * if objType == cudaEventRecordNodeParams: * return sizeof(ccudart.cudaEventRecordNodeParams) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaChildGraphNodeParams))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30137, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30136 * if objType == cudaConditionalNodeParams: * return sizeof(ccudart.cudaConditionalNodeParams) * if objType == cudaChildGraphNodeParams: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaChildGraphNodeParams) * if objType == cudaEventRecordNodeParams: */ } /* "cuda/cudart.pyx":30138 * if objType == cudaChildGraphNodeParams: * return sizeof(ccudart.cudaChildGraphNodeParams) * if objType == cudaEventRecordNodeParams: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaEventRecordNodeParams) * if objType == cudaEventWaitNodeParams: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEventRecordNodeParams), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30138, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30138, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30139 * return sizeof(ccudart.cudaChildGraphNodeParams) * if objType == cudaEventRecordNodeParams: * return sizeof(ccudart.cudaEventRecordNodeParams) # <<<<<<<<<<<<<< * if objType == cudaEventWaitNodeParams: * return sizeof(ccudart.cudaEventWaitNodeParams) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaEventRecordNodeParams))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30138 * if objType == cudaChildGraphNodeParams: * return sizeof(ccudart.cudaChildGraphNodeParams) * if objType == cudaEventRecordNodeParams: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaEventRecordNodeParams) * if objType == cudaEventWaitNodeParams: */ } /* "cuda/cudart.pyx":30140 * if objType == cudaEventRecordNodeParams: * return sizeof(ccudart.cudaEventRecordNodeParams) * if objType == cudaEventWaitNodeParams: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaEventWaitNodeParams) * if objType == cudaGraphNodeParams: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEventWaitNodeParams), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30140, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30140, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30141 * return sizeof(ccudart.cudaEventRecordNodeParams) * if objType == cudaEventWaitNodeParams: * return sizeof(ccudart.cudaEventWaitNodeParams) # <<<<<<<<<<<<<< * if objType == cudaGraphNodeParams: * return sizeof(ccudart.cudaGraphNodeParams) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaEventWaitNodeParams))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30141, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30140 * if objType == cudaEventRecordNodeParams: * return sizeof(ccudart.cudaEventRecordNodeParams) * if objType == cudaEventWaitNodeParams: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaEventWaitNodeParams) * if objType == cudaGraphNodeParams: */ } /* "cuda/cudart.pyx":30142 * if objType == cudaEventWaitNodeParams: * return sizeof(ccudart.cudaEventWaitNodeParams) * if objType == cudaGraphNodeParams: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaGraphNodeParams) * if objType == cudaGraphEdgeData_st: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNodeParams), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30142, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30142, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30143 * return sizeof(ccudart.cudaEventWaitNodeParams) * if objType == cudaGraphNodeParams: * return sizeof(ccudart.cudaGraphNodeParams) # <<<<<<<<<<<<<< * if objType == cudaGraphEdgeData_st: * return sizeof(ccudart.cudaGraphEdgeData_st) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaGraphNodeParams))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30143, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30142 * if objType == cudaEventWaitNodeParams: * return sizeof(ccudart.cudaEventWaitNodeParams) * if objType == cudaGraphNodeParams: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaGraphNodeParams) * if objType == cudaGraphEdgeData_st: */ } /* "cuda/cudart.pyx":30144 * if objType == cudaGraphNodeParams: * return sizeof(ccudart.cudaGraphNodeParams) * if objType == cudaGraphEdgeData_st: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaGraphEdgeData_st) * if objType == cudaGraphEdgeData: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphEdgeData_st), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30144, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30144, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30145 * return sizeof(ccudart.cudaGraphNodeParams) * if objType == cudaGraphEdgeData_st: * return sizeof(ccudart.cudaGraphEdgeData_st) # <<<<<<<<<<<<<< * if objType == cudaGraphEdgeData: * return sizeof(ccudart.cudaGraphEdgeData) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaGraphEdgeData_st))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30145, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30144 * if objType == cudaGraphNodeParams: * return sizeof(ccudart.cudaGraphNodeParams) * if objType == cudaGraphEdgeData_st: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaGraphEdgeData_st) * if objType == cudaGraphEdgeData: */ } /* "cuda/cudart.pyx":30146 * if objType == cudaGraphEdgeData_st: * return sizeof(ccudart.cudaGraphEdgeData_st) * if objType == cudaGraphEdgeData: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaGraphEdgeData) * if objType == cudaGraphExec_t: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphEdgeData), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30146, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30146, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30147 * return sizeof(ccudart.cudaGraphEdgeData_st) * if objType == cudaGraphEdgeData: * return sizeof(ccudart.cudaGraphEdgeData) # <<<<<<<<<<<<<< * if objType == cudaGraphExec_t: * return sizeof(ccudart.cudaGraphExec_t) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphEdgeData))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30147, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30146 * if objType == cudaGraphEdgeData_st: * return sizeof(ccudart.cudaGraphEdgeData_st) * if objType == cudaGraphEdgeData: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaGraphEdgeData) * if objType == cudaGraphExec_t: */ } /* "cuda/cudart.pyx":30148 * if objType == cudaGraphEdgeData: * return sizeof(ccudart.cudaGraphEdgeData) * if objType == cudaGraphExec_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaGraphExec_t) * if objType == cudaGraphInstantiateParams_st: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphExec_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30148, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30148, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30149 * return sizeof(ccudart.cudaGraphEdgeData) * if objType == cudaGraphExec_t: * return sizeof(ccudart.cudaGraphExec_t) # <<<<<<<<<<<<<< * if objType == cudaGraphInstantiateParams_st: * return sizeof(ccudart.cudaGraphInstantiateParams_st) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphExec_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30149, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30148 * if objType == cudaGraphEdgeData: * return sizeof(ccudart.cudaGraphEdgeData) * if objType == cudaGraphExec_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaGraphExec_t) * if objType == cudaGraphInstantiateParams_st: */ } /* "cuda/cudart.pyx":30150 * if objType == cudaGraphExec_t: * return sizeof(ccudart.cudaGraphExec_t) * if objType == cudaGraphInstantiateParams_st: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaGraphInstantiateParams_st) * if objType == cudaGraphInstantiateParams: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphInstantiateParams_st), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30150, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30150, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30151 * return sizeof(ccudart.cudaGraphExec_t) * if objType == cudaGraphInstantiateParams_st: * return sizeof(ccudart.cudaGraphInstantiateParams_st) # <<<<<<<<<<<<<< * if objType == cudaGraphInstantiateParams: * return sizeof(ccudart.cudaGraphInstantiateParams) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaGraphInstantiateParams_st))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30151, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30150 * if objType == cudaGraphExec_t: * return sizeof(ccudart.cudaGraphExec_t) * if objType == cudaGraphInstantiateParams_st: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaGraphInstantiateParams_st) * if objType == cudaGraphInstantiateParams: */ } /* "cuda/cudart.pyx":30152 * if objType == cudaGraphInstantiateParams_st: * return sizeof(ccudart.cudaGraphInstantiateParams_st) * if objType == cudaGraphInstantiateParams: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaGraphInstantiateParams) * if objType == cudaGraphExecUpdateResultInfo_st: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphInstantiateParams), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30152, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30152, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30153 * return sizeof(ccudart.cudaGraphInstantiateParams_st) * if objType == cudaGraphInstantiateParams: * return sizeof(ccudart.cudaGraphInstantiateParams) # <<<<<<<<<<<<<< * if objType == cudaGraphExecUpdateResultInfo_st: * return sizeof(ccudart.cudaGraphExecUpdateResultInfo_st) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphInstantiateParams))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30153, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30152 * if objType == cudaGraphInstantiateParams_st: * return sizeof(ccudart.cudaGraphInstantiateParams_st) * if objType == cudaGraphInstantiateParams: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaGraphInstantiateParams) * if objType == cudaGraphExecUpdateResultInfo_st: */ } /* "cuda/cudart.pyx":30154 * if objType == cudaGraphInstantiateParams: * return sizeof(ccudart.cudaGraphInstantiateParams) * if objType == cudaGraphExecUpdateResultInfo_st: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaGraphExecUpdateResultInfo_st) * if objType == cudaGraphExecUpdateResultInfo: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30154, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30154, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30155 * return sizeof(ccudart.cudaGraphInstantiateParams) * if objType == cudaGraphExecUpdateResultInfo_st: * return sizeof(ccudart.cudaGraphExecUpdateResultInfo_st) # <<<<<<<<<<<<<< * if objType == cudaGraphExecUpdateResultInfo: * return sizeof(ccudart.cudaGraphExecUpdateResultInfo) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaGraphExecUpdateResultInfo_st))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30154 * if objType == cudaGraphInstantiateParams: * return sizeof(ccudart.cudaGraphInstantiateParams) * if objType == cudaGraphExecUpdateResultInfo_st: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaGraphExecUpdateResultInfo_st) * if objType == cudaGraphExecUpdateResultInfo: */ } /* "cuda/cudart.pyx":30156 * if objType == cudaGraphExecUpdateResultInfo_st: * return sizeof(ccudart.cudaGraphExecUpdateResultInfo_st) * if objType == cudaGraphExecUpdateResultInfo: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaGraphExecUpdateResultInfo) * if objType == cudaGraphDeviceNode_t: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphExecUpdateResultInfo), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30156, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30156, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30157 * return sizeof(ccudart.cudaGraphExecUpdateResultInfo_st) * if objType == cudaGraphExecUpdateResultInfo: * return sizeof(ccudart.cudaGraphExecUpdateResultInfo) # <<<<<<<<<<<<<< * if objType == cudaGraphDeviceNode_t: * return sizeof(ccudart.cudaGraphDeviceNode_t) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphExecUpdateResultInfo))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30157, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30156 * if objType == cudaGraphExecUpdateResultInfo_st: * return sizeof(ccudart.cudaGraphExecUpdateResultInfo_st) * if objType == cudaGraphExecUpdateResultInfo: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaGraphExecUpdateResultInfo) * if objType == cudaGraphDeviceNode_t: */ } /* "cuda/cudart.pyx":30158 * if objType == cudaGraphExecUpdateResultInfo: * return sizeof(ccudart.cudaGraphExecUpdateResultInfo) * if objType == cudaGraphDeviceNode_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaGraphDeviceNode_t) * if objType == cudaGraphKernelNodeUpdate: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphDeviceNode_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30158, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30158, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30159 * return sizeof(ccudart.cudaGraphExecUpdateResultInfo) * if objType == cudaGraphDeviceNode_t: * return sizeof(ccudart.cudaGraphDeviceNode_t) # <<<<<<<<<<<<<< * if objType == cudaGraphKernelNodeUpdate: * return sizeof(ccudart.cudaGraphKernelNodeUpdate) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaGraphDeviceNode_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30159, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30158 * if objType == cudaGraphExecUpdateResultInfo: * return sizeof(ccudart.cudaGraphExecUpdateResultInfo) * if objType == cudaGraphDeviceNode_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaGraphDeviceNode_t) * if objType == cudaGraphKernelNodeUpdate: */ } /* "cuda/cudart.pyx":30160 * if objType == cudaGraphDeviceNode_t: * return sizeof(ccudart.cudaGraphDeviceNode_t) * if objType == cudaGraphKernelNodeUpdate: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaGraphKernelNodeUpdate) * if objType == cudaLaunchMemSyncDomainMap_st: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphKernelNodeUpdate), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30160, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30160, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30161 * return sizeof(ccudart.cudaGraphDeviceNode_t) * if objType == cudaGraphKernelNodeUpdate: * return sizeof(ccudart.cudaGraphKernelNodeUpdate) # <<<<<<<<<<<<<< * if objType == cudaLaunchMemSyncDomainMap_st: * return sizeof(ccudart.cudaLaunchMemSyncDomainMap_st) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaGraphKernelNodeUpdate))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30161, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30160 * if objType == cudaGraphDeviceNode_t: * return sizeof(ccudart.cudaGraphDeviceNode_t) * if objType == cudaGraphKernelNodeUpdate: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaGraphKernelNodeUpdate) * if objType == cudaLaunchMemSyncDomainMap_st: */ } /* "cuda/cudart.pyx":30162 * if objType == cudaGraphKernelNodeUpdate: * return sizeof(ccudart.cudaGraphKernelNodeUpdate) * if objType == cudaLaunchMemSyncDomainMap_st: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaLaunchMemSyncDomainMap_st) * if objType == cudaLaunchMemSyncDomainMap: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30162, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30162, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30163 * return sizeof(ccudart.cudaGraphKernelNodeUpdate) * if objType == cudaLaunchMemSyncDomainMap_st: * return sizeof(ccudart.cudaLaunchMemSyncDomainMap_st) # <<<<<<<<<<<<<< * if objType == cudaLaunchMemSyncDomainMap: * return sizeof(ccudart.cudaLaunchMemSyncDomainMap) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaLaunchMemSyncDomainMap_st))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30163, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30162 * if objType == cudaGraphKernelNodeUpdate: * return sizeof(ccudart.cudaGraphKernelNodeUpdate) * if objType == cudaLaunchMemSyncDomainMap_st: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaLaunchMemSyncDomainMap_st) * if objType == cudaLaunchMemSyncDomainMap: */ } /* "cuda/cudart.pyx":30164 * if objType == cudaLaunchMemSyncDomainMap_st: * return sizeof(ccudart.cudaLaunchMemSyncDomainMap_st) * if objType == cudaLaunchMemSyncDomainMap: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaLaunchMemSyncDomainMap) * if objType == cudaLaunchAttributeValue: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30164, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30164, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30165 * return sizeof(ccudart.cudaLaunchMemSyncDomainMap_st) * if objType == cudaLaunchMemSyncDomainMap: * return sizeof(ccudart.cudaLaunchMemSyncDomainMap) # <<<<<<<<<<<<<< * if objType == cudaLaunchAttributeValue: * return sizeof(ccudart.cudaLaunchAttributeValue) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaLaunchMemSyncDomainMap))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30165, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30164 * if objType == cudaLaunchMemSyncDomainMap_st: * return sizeof(ccudart.cudaLaunchMemSyncDomainMap_st) * if objType == cudaLaunchMemSyncDomainMap: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaLaunchMemSyncDomainMap) * if objType == cudaLaunchAttributeValue: */ } /* "cuda/cudart.pyx":30166 * if objType == cudaLaunchMemSyncDomainMap: * return sizeof(ccudart.cudaLaunchMemSyncDomainMap) * if objType == cudaLaunchAttributeValue: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaLaunchAttributeValue) * if objType == cudaLaunchAttribute_st: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaLaunchAttributeValue), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30166, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30166, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30167 * return sizeof(ccudart.cudaLaunchMemSyncDomainMap) * if objType == cudaLaunchAttributeValue: * return sizeof(ccudart.cudaLaunchAttributeValue) # <<<<<<<<<<<<<< * if objType == cudaLaunchAttribute_st: * return sizeof(ccudart.cudaLaunchAttribute_st) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(union cudaLaunchAttributeValue))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30167, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30166 * if objType == cudaLaunchMemSyncDomainMap: * return sizeof(ccudart.cudaLaunchMemSyncDomainMap) * if objType == cudaLaunchAttributeValue: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaLaunchAttributeValue) * if objType == cudaLaunchAttribute_st: */ } /* "cuda/cudart.pyx":30168 * if objType == cudaLaunchAttributeValue: * return sizeof(ccudart.cudaLaunchAttributeValue) * if objType == cudaLaunchAttribute_st: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaLaunchAttribute_st) * if objType == cudaLaunchAttribute: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaLaunchAttribute_st), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30168, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30168, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30169 * return sizeof(ccudart.cudaLaunchAttributeValue) * if objType == cudaLaunchAttribute_st: * return sizeof(ccudart.cudaLaunchAttribute_st) # <<<<<<<<<<<<<< * if objType == cudaLaunchAttribute: * return sizeof(ccudart.cudaLaunchAttribute) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaLaunchAttribute_st))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30169, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30168 * if objType == cudaLaunchAttributeValue: * return sizeof(ccudart.cudaLaunchAttributeValue) * if objType == cudaLaunchAttribute_st: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaLaunchAttribute_st) * if objType == cudaLaunchAttribute: */ } /* "cuda/cudart.pyx":30170 * if objType == cudaLaunchAttribute_st: * return sizeof(ccudart.cudaLaunchAttribute_st) * if objType == cudaLaunchAttribute: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaLaunchAttribute) * if objType == cudaAsyncCallbackHandle_t: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaLaunchAttribute), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30170, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30170, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30171 * return sizeof(ccudart.cudaLaunchAttribute_st) * if objType == cudaLaunchAttribute: * return sizeof(ccudart.cudaLaunchAttribute) # <<<<<<<<<<<<<< * if objType == cudaAsyncCallbackHandle_t: * return sizeof(ccudart.cudaAsyncCallbackHandle_t) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaLaunchAttribute))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30171, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30170 * if objType == cudaLaunchAttribute_st: * return sizeof(ccudart.cudaLaunchAttribute_st) * if objType == cudaLaunchAttribute: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaLaunchAttribute) * if objType == cudaAsyncCallbackHandle_t: */ } /* "cuda/cudart.pyx":30172 * if objType == cudaLaunchAttribute: * return sizeof(ccudart.cudaLaunchAttribute) * if objType == cudaAsyncCallbackHandle_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaAsyncCallbackHandle_t) * if objType == cudaAsyncNotificationInfo: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaAsyncCallbackHandle_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30172, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30172, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30173 * return sizeof(ccudart.cudaLaunchAttribute) * if objType == cudaAsyncCallbackHandle_t: * return sizeof(ccudart.cudaAsyncCallbackHandle_t) # <<<<<<<<<<<<<< * if objType == cudaAsyncNotificationInfo: * return sizeof(ccudart.cudaAsyncNotificationInfo) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaAsyncCallbackHandle_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30173, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30172 * if objType == cudaLaunchAttribute: * return sizeof(ccudart.cudaLaunchAttribute) * if objType == cudaAsyncCallbackHandle_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaAsyncCallbackHandle_t) * if objType == cudaAsyncNotificationInfo: */ } /* "cuda/cudart.pyx":30174 * if objType == cudaAsyncCallbackHandle_t: * return sizeof(ccudart.cudaAsyncCallbackHandle_t) * if objType == cudaAsyncNotificationInfo: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaAsyncNotificationInfo) * if objType == cudaAsyncNotificationInfo_t: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaAsyncNotificationInfo), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30174, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30174, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30175 * return sizeof(ccudart.cudaAsyncCallbackHandle_t) * if objType == cudaAsyncNotificationInfo: * return sizeof(ccudart.cudaAsyncNotificationInfo) # <<<<<<<<<<<<<< * if objType == cudaAsyncNotificationInfo_t: * return sizeof(ccudart.cudaAsyncNotificationInfo_t) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaAsyncNotificationInfo))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30175, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30174 * if objType == cudaAsyncCallbackHandle_t: * return sizeof(ccudart.cudaAsyncCallbackHandle_t) * if objType == cudaAsyncNotificationInfo: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaAsyncNotificationInfo) * if objType == cudaAsyncNotificationInfo_t: */ } /* "cuda/cudart.pyx":30176 * if objType == cudaAsyncNotificationInfo: * return sizeof(ccudart.cudaAsyncNotificationInfo) * if objType == cudaAsyncNotificationInfo_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaAsyncNotificationInfo_t) * if objType == cudaAsyncCallback: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaAsyncNotificationInfo_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30176, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30176, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30177 * return sizeof(ccudart.cudaAsyncNotificationInfo) * if objType == cudaAsyncNotificationInfo_t: * return sizeof(ccudart.cudaAsyncNotificationInfo_t) # <<<<<<<<<<<<<< * if objType == cudaAsyncCallback: * return sizeof(ccudart.cudaAsyncCallback) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaAsyncNotificationInfo_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30177, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30176 * if objType == cudaAsyncNotificationInfo: * return sizeof(ccudart.cudaAsyncNotificationInfo) * if objType == cudaAsyncNotificationInfo_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaAsyncNotificationInfo_t) * if objType == cudaAsyncCallback: */ } /* "cuda/cudart.pyx":30178 * if objType == cudaAsyncNotificationInfo_t: * return sizeof(ccudart.cudaAsyncNotificationInfo_t) * if objType == cudaAsyncCallback: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaAsyncCallback) * if objType == cudaSurfaceObject_t: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaAsyncCallback), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30178, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30178, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30179 * return sizeof(ccudart.cudaAsyncNotificationInfo_t) * if objType == cudaAsyncCallback: * return sizeof(ccudart.cudaAsyncCallback) # <<<<<<<<<<<<<< * if objType == cudaSurfaceObject_t: * return sizeof(ccudart.cudaSurfaceObject_t) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaAsyncCallback))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30179, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30178 * if objType == cudaAsyncNotificationInfo_t: * return sizeof(ccudart.cudaAsyncNotificationInfo_t) * if objType == cudaAsyncCallback: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaAsyncCallback) * if objType == cudaSurfaceObject_t: */ } /* "cuda/cudart.pyx":30180 * if objType == cudaAsyncCallback: * return sizeof(ccudart.cudaAsyncCallback) * if objType == cudaSurfaceObject_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaSurfaceObject_t) * if objType == cudaTextureDesc: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaSurfaceObject_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30180, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30180, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30181 * return sizeof(ccudart.cudaAsyncCallback) * if objType == cudaSurfaceObject_t: * return sizeof(ccudart.cudaSurfaceObject_t) # <<<<<<<<<<<<<< * if objType == cudaTextureDesc: * return sizeof(ccudart.cudaTextureDesc) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaSurfaceObject_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30181, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30180 * if objType == cudaAsyncCallback: * return sizeof(ccudart.cudaAsyncCallback) * if objType == cudaSurfaceObject_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaSurfaceObject_t) * if objType == cudaTextureDesc: */ } /* "cuda/cudart.pyx":30182 * if objType == cudaSurfaceObject_t: * return sizeof(ccudart.cudaSurfaceObject_t) * if objType == cudaTextureDesc: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaTextureDesc) * if objType == cudaTextureObject_t: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaTextureDesc), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30182, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30182, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30183 * return sizeof(ccudart.cudaSurfaceObject_t) * if objType == cudaTextureDesc: * return sizeof(ccudart.cudaTextureDesc) # <<<<<<<<<<<<<< * if objType == cudaTextureObject_t: * return sizeof(ccudart.cudaTextureObject_t) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct cudaTextureDesc))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30183, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30182 * if objType == cudaSurfaceObject_t: * return sizeof(ccudart.cudaSurfaceObject_t) * if objType == cudaTextureDesc: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaTextureDesc) * if objType == cudaTextureObject_t: */ } /* "cuda/cudart.pyx":30184 * if objType == cudaTextureDesc: * return sizeof(ccudart.cudaTextureDesc) * if objType == cudaTextureObject_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaTextureObject_t) * if objType == cudaStreamCallback_t: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaTextureObject_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30184, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30184, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30185 * return sizeof(ccudart.cudaTextureDesc) * if objType == cudaTextureObject_t: * return sizeof(ccudart.cudaTextureObject_t) # <<<<<<<<<<<<<< * if objType == cudaStreamCallback_t: * return sizeof(ccudart.cudaStreamCallback_t) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaTextureObject_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30185, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30184 * if objType == cudaTextureDesc: * return sizeof(ccudart.cudaTextureDesc) * if objType == cudaTextureObject_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaTextureObject_t) * if objType == cudaStreamCallback_t: */ } /* "cuda/cudart.pyx":30186 * if objType == cudaTextureObject_t: * return sizeof(ccudart.cudaTextureObject_t) * if objType == cudaStreamCallback_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaStreamCallback_t) * if objType == GLenum: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStreamCallback_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30186, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30186, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30187 * return sizeof(ccudart.cudaTextureObject_t) * if objType == cudaStreamCallback_t: * return sizeof(ccudart.cudaStreamCallback_t) # <<<<<<<<<<<<<< * if objType == GLenum: * return sizeof(ccudart.GLenum) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(cudaStreamCallback_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30187, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30186 * if objType == cudaTextureObject_t: * return sizeof(ccudart.cudaTextureObject_t) * if objType == cudaStreamCallback_t: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaStreamCallback_t) * if objType == GLenum: */ } /* "cuda/cudart.pyx":30188 * if objType == cudaStreamCallback_t: * return sizeof(ccudart.cudaStreamCallback_t) * if objType == GLenum: # <<<<<<<<<<<<<< * return sizeof(ccudart.GLenum) * if objType == GLuint: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_GLenum), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30188, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30188, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30189 * return sizeof(ccudart.cudaStreamCallback_t) * if objType == GLenum: * return sizeof(ccudart.GLenum) # <<<<<<<<<<<<<< * if objType == GLuint: * return sizeof(ccudart.GLuint) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(__pyx_t_4cuda_7ccudart_GLenum))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30189, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30188 * if objType == cudaStreamCallback_t: * return sizeof(ccudart.cudaStreamCallback_t) * if objType == GLenum: # <<<<<<<<<<<<<< * return sizeof(ccudart.GLenum) * if objType == GLuint: */ } /* "cuda/cudart.pyx":30190 * if objType == GLenum: * return sizeof(ccudart.GLenum) * if objType == GLuint: # <<<<<<<<<<<<<< * return sizeof(ccudart.GLuint) * if objType == EGLImageKHR: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_GLuint), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30190, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30190, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30191 * return sizeof(ccudart.GLenum) * if objType == GLuint: * return sizeof(ccudart.GLuint) # <<<<<<<<<<<<<< * if objType == EGLImageKHR: * return sizeof(ccudart.EGLImageKHR) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(__pyx_t_4cuda_7ccudart_GLuint))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30191, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30190 * if objType == GLenum: * return sizeof(ccudart.GLenum) * if objType == GLuint: # <<<<<<<<<<<<<< * return sizeof(ccudart.GLuint) * if objType == EGLImageKHR: */ } /* "cuda/cudart.pyx":30192 * if objType == GLuint: * return sizeof(ccudart.GLuint) * if objType == EGLImageKHR: # <<<<<<<<<<<<<< * return sizeof(ccudart.EGLImageKHR) * if objType == EGLStreamKHR: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_EGLImageKHR), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30192, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30192, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30193 * return sizeof(ccudart.GLuint) * if objType == EGLImageKHR: * return sizeof(ccudart.EGLImageKHR) # <<<<<<<<<<<<<< * if objType == EGLStreamKHR: * return sizeof(ccudart.EGLStreamKHR) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(__pyx_t_4cuda_7ccudart_EGLImageKHR))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30193, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30192 * if objType == GLuint: * return sizeof(ccudart.GLuint) * if objType == EGLImageKHR: # <<<<<<<<<<<<<< * return sizeof(ccudart.EGLImageKHR) * if objType == EGLStreamKHR: */ } /* "cuda/cudart.pyx":30194 * if objType == EGLImageKHR: * return sizeof(ccudart.EGLImageKHR) * if objType == EGLStreamKHR: # <<<<<<<<<<<<<< * return sizeof(ccudart.EGLStreamKHR) * if objType == EGLint: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_EGLStreamKHR), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30194, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30194, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30195 * return sizeof(ccudart.EGLImageKHR) * if objType == EGLStreamKHR: * return sizeof(ccudart.EGLStreamKHR) # <<<<<<<<<<<<<< * if objType == EGLint: * return sizeof(ccudart.EGLint) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(__pyx_t_4cuda_7ccudart_EGLStreamKHR))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30195, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30194 * if objType == EGLImageKHR: * return sizeof(ccudart.EGLImageKHR) * if objType == EGLStreamKHR: # <<<<<<<<<<<<<< * return sizeof(ccudart.EGLStreamKHR) * if objType == EGLint: */ } /* "cuda/cudart.pyx":30196 * if objType == EGLStreamKHR: * return sizeof(ccudart.EGLStreamKHR) * if objType == EGLint: # <<<<<<<<<<<<<< * return sizeof(ccudart.EGLint) * if objType == EGLSyncKHR: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_EGLint), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30196, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30196, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30197 * return sizeof(ccudart.EGLStreamKHR) * if objType == EGLint: * return sizeof(ccudart.EGLint) # <<<<<<<<<<<<<< * if objType == EGLSyncKHR: * return sizeof(ccudart.EGLSyncKHR) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(__pyx_t_4cuda_7ccudart_EGLint))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30197, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30196 * if objType == EGLStreamKHR: * return sizeof(ccudart.EGLStreamKHR) * if objType == EGLint: # <<<<<<<<<<<<<< * return sizeof(ccudart.EGLint) * if objType == EGLSyncKHR: */ } /* "cuda/cudart.pyx":30198 * if objType == EGLint: * return sizeof(ccudart.EGLint) * if objType == EGLSyncKHR: # <<<<<<<<<<<<<< * return sizeof(ccudart.EGLSyncKHR) * if objType == VdpDevice: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_EGLSyncKHR), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30198, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30198, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30199 * return sizeof(ccudart.EGLint) * if objType == EGLSyncKHR: * return sizeof(ccudart.EGLSyncKHR) # <<<<<<<<<<<<<< * if objType == VdpDevice: * return sizeof(ccudart.VdpDevice) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(__pyx_t_4cuda_7ccudart_EGLSyncKHR))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30199, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30198 * if objType == EGLint: * return sizeof(ccudart.EGLint) * if objType == EGLSyncKHR: # <<<<<<<<<<<<<< * return sizeof(ccudart.EGLSyncKHR) * if objType == VdpDevice: */ } /* "cuda/cudart.pyx":30200 * if objType == EGLSyncKHR: * return sizeof(ccudart.EGLSyncKHR) * if objType == VdpDevice: # <<<<<<<<<<<<<< * return sizeof(ccudart.VdpDevice) * if objType == VdpGetProcAddress: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_VdpDevice), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30200, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30200, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30201 * return sizeof(ccudart.EGLSyncKHR) * if objType == VdpDevice: * return sizeof(ccudart.VdpDevice) # <<<<<<<<<<<<<< * if objType == VdpGetProcAddress: * return sizeof(ccudart.VdpGetProcAddress) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(__pyx_t_4cuda_7ccudart_VdpDevice))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30201, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30200 * if objType == EGLSyncKHR: * return sizeof(ccudart.EGLSyncKHR) * if objType == VdpDevice: # <<<<<<<<<<<<<< * return sizeof(ccudart.VdpDevice) * if objType == VdpGetProcAddress: */ } /* "cuda/cudart.pyx":30202 * if objType == VdpDevice: * return sizeof(ccudart.VdpDevice) * if objType == VdpGetProcAddress: # <<<<<<<<<<<<<< * return sizeof(ccudart.VdpGetProcAddress) * if objType == VdpVideoSurface: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_VdpGetProcAddress), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30202, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30202, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30203 * return sizeof(ccudart.VdpDevice) * if objType == VdpGetProcAddress: * return sizeof(ccudart.VdpGetProcAddress) # <<<<<<<<<<<<<< * if objType == VdpVideoSurface: * return sizeof(ccudart.VdpVideoSurface) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(__pyx_t_4cuda_7ccudart_VdpGetProcAddress))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30203, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30202 * if objType == VdpDevice: * return sizeof(ccudart.VdpDevice) * if objType == VdpGetProcAddress: # <<<<<<<<<<<<<< * return sizeof(ccudart.VdpGetProcAddress) * if objType == VdpVideoSurface: */ } /* "cuda/cudart.pyx":30204 * if objType == VdpGetProcAddress: * return sizeof(ccudart.VdpGetProcAddress) * if objType == VdpVideoSurface: # <<<<<<<<<<<<<< * return sizeof(ccudart.VdpVideoSurface) * if objType == VdpOutputSurface: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_VdpVideoSurface), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30204, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30204, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30205 * return sizeof(ccudart.VdpGetProcAddress) * if objType == VdpVideoSurface: * return sizeof(ccudart.VdpVideoSurface) # <<<<<<<<<<<<<< * if objType == VdpOutputSurface: * return sizeof(ccudart.VdpOutputSurface) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(__pyx_t_4cuda_7ccudart_VdpVideoSurface))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30204 * if objType == VdpGetProcAddress: * return sizeof(ccudart.VdpGetProcAddress) * if objType == VdpVideoSurface: # <<<<<<<<<<<<<< * return sizeof(ccudart.VdpVideoSurface) * if objType == VdpOutputSurface: */ } /* "cuda/cudart.pyx":30206 * if objType == VdpVideoSurface: * return sizeof(ccudart.VdpVideoSurface) * if objType == VdpOutputSurface: # <<<<<<<<<<<<<< * return sizeof(ccudart.VdpOutputSurface) * if objType == cudaStreamAttrValue: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_VdpOutputSurface), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30206, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30206, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30207 * return sizeof(ccudart.VdpVideoSurface) * if objType == VdpOutputSurface: * return sizeof(ccudart.VdpOutputSurface) # <<<<<<<<<<<<<< * if objType == cudaStreamAttrValue: * return sizeof(ccudart.cudaStreamAttrValue) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(__pyx_t_4cuda_7ccudart_VdpOutputSurface))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30207, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30206 * if objType == VdpVideoSurface: * return sizeof(ccudart.VdpVideoSurface) * if objType == VdpOutputSurface: # <<<<<<<<<<<<<< * return sizeof(ccudart.VdpOutputSurface) * if objType == cudaStreamAttrValue: */ } /* "cuda/cudart.pyx":30208 * if objType == VdpOutputSurface: * return sizeof(ccudart.VdpOutputSurface) * if objType == cudaStreamAttrValue: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaStreamAttrValue) * if objType == cudaKernelNodeAttrValue: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStreamAttrValue), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30208, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30208, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30209 * return sizeof(ccudart.VdpOutputSurface) * if objType == cudaStreamAttrValue: * return sizeof(ccudart.cudaStreamAttrValue) # <<<<<<<<<<<<<< * if objType == cudaKernelNodeAttrValue: * return sizeof(ccudart.cudaKernelNodeAttrValue) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(__pyx_t_4cuda_7ccudart_cudaStreamAttrValue))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30209, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30208 * if objType == VdpOutputSurface: * return sizeof(ccudart.VdpOutputSurface) * if objType == cudaStreamAttrValue: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaStreamAttrValue) * if objType == cudaKernelNodeAttrValue: */ } /* "cuda/cudart.pyx":30210 * if objType == cudaStreamAttrValue: * return sizeof(ccudart.cudaStreamAttrValue) * if objType == cudaKernelNodeAttrValue: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaKernelNodeAttrValue) * if objType == cudaEglPlaneDesc_st: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaKernelNodeAttrValue), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30210, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30210, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30211 * return sizeof(ccudart.cudaStreamAttrValue) * if objType == cudaKernelNodeAttrValue: * return sizeof(ccudart.cudaKernelNodeAttrValue) # <<<<<<<<<<<<<< * if objType == cudaEglPlaneDesc_st: * return sizeof(ccudart.cudaEglPlaneDesc_st) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(__pyx_t_4cuda_7ccudart_cudaKernelNodeAttrValue))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30211, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30210 * if objType == cudaStreamAttrValue: * return sizeof(ccudart.cudaStreamAttrValue) * if objType == cudaKernelNodeAttrValue: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaKernelNodeAttrValue) * if objType == cudaEglPlaneDesc_st: */ } /* "cuda/cudart.pyx":30212 * if objType == cudaKernelNodeAttrValue: * return sizeof(ccudart.cudaKernelNodeAttrValue) * if objType == cudaEglPlaneDesc_st: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaEglPlaneDesc_st) * if objType == cudaEglPlaneDesc: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEglPlaneDesc_st), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30212, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30212, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30213 * return sizeof(ccudart.cudaKernelNodeAttrValue) * if objType == cudaEglPlaneDesc_st: * return sizeof(ccudart.cudaEglPlaneDesc_st) # <<<<<<<<<<<<<< * if objType == cudaEglPlaneDesc: * return sizeof(ccudart.cudaEglPlaneDesc) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct __pyx_t_4cuda_7ccudart_cudaEglPlaneDesc_st))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30213, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30212 * if objType == cudaKernelNodeAttrValue: * return sizeof(ccudart.cudaKernelNodeAttrValue) * if objType == cudaEglPlaneDesc_st: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaEglPlaneDesc_st) * if objType == cudaEglPlaneDesc: */ } /* "cuda/cudart.pyx":30214 * if objType == cudaEglPlaneDesc_st: * return sizeof(ccudart.cudaEglPlaneDesc_st) * if objType == cudaEglPlaneDesc: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaEglPlaneDesc) * if objType == cudaEglFrame_st: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEglPlaneDesc), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30214, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30214, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30215 * return sizeof(ccudart.cudaEglPlaneDesc_st) * if objType == cudaEglPlaneDesc: * return sizeof(ccudart.cudaEglPlaneDesc) # <<<<<<<<<<<<<< * if objType == cudaEglFrame_st: * return sizeof(ccudart.cudaEglFrame_st) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(__pyx_t_4cuda_7ccudart_cudaEglPlaneDesc))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30215, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30214 * if objType == cudaEglPlaneDesc_st: * return sizeof(ccudart.cudaEglPlaneDesc_st) * if objType == cudaEglPlaneDesc: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaEglPlaneDesc) * if objType == cudaEglFrame_st: */ } /* "cuda/cudart.pyx":30216 * if objType == cudaEglPlaneDesc: * return sizeof(ccudart.cudaEglPlaneDesc) * if objType == cudaEglFrame_st: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaEglFrame_st) * if objType == cudaEglFrame: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEglFrame_st), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30216, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30216, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30217 * return sizeof(ccudart.cudaEglPlaneDesc) * if objType == cudaEglFrame_st: * return sizeof(ccudart.cudaEglFrame_st) # <<<<<<<<<<<<<< * if objType == cudaEglFrame: * return sizeof(ccudart.cudaEglFrame) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(struct __pyx_t_4cuda_7ccudart_cudaEglFrame_st))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30217, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30216 * if objType == cudaEglPlaneDesc: * return sizeof(ccudart.cudaEglPlaneDesc) * if objType == cudaEglFrame_st: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaEglFrame_st) * if objType == cudaEglFrame: */ } /* "cuda/cudart.pyx":30218 * if objType == cudaEglFrame_st: * return sizeof(ccudart.cudaEglFrame_st) * if objType == cudaEglFrame: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaEglFrame) * if objType == cudaEglStreamConnection: */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEglFrame), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30218, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30218, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30219 * return sizeof(ccudart.cudaEglFrame_st) * if objType == cudaEglFrame: * return sizeof(ccudart.cudaEglFrame) # <<<<<<<<<<<<<< * if objType == cudaEglStreamConnection: * return sizeof(ccudart.cudaEglStreamConnection) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(__pyx_t_4cuda_7ccudart_cudaEglFrame))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30218 * if objType == cudaEglFrame_st: * return sizeof(ccudart.cudaEglFrame_st) * if objType == cudaEglFrame: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaEglFrame) * if objType == cudaEglStreamConnection: */ } /* "cuda/cudart.pyx":30220 * if objType == cudaEglFrame: * return sizeof(ccudart.cudaEglFrame) * if objType == cudaEglStreamConnection: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaEglStreamConnection) * raise TypeError("Unknown type: " + str(objType)) */ __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEglStreamConnection), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30220, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30220, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { /* "cuda/cudart.pyx":30221 * return sizeof(ccudart.cudaEglFrame) * if objType == cudaEglStreamConnection: * return sizeof(ccudart.cudaEglStreamConnection) # <<<<<<<<<<<<<< * raise TypeError("Unknown type: " + str(objType)) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_FromSize_t((sizeof(__pyx_t_4cuda_7ccudart_cudaEglStreamConnection))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30221, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "cuda/cudart.pyx":30220 * if objType == cudaEglFrame: * return sizeof(ccudart.cudaEglFrame) * if objType == cudaEglStreamConnection: # <<<<<<<<<<<<<< * return sizeof(ccudart.cudaEglStreamConnection) * raise TypeError("Unknown type: " + str(objType)) */ } /* "cuda/cudart.pyx":30222 * if objType == cudaEglStreamConnection: * return sizeof(ccudart.cudaEglStreamConnection) * raise TypeError("Unknown type: " + str(objType)) # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_v_objType); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30222, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Unknown_type, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30222, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30222, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(0, 30222, __pyx_L1_error) /* "cuda/cudart.pyx":29990 * * * @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_AddTraceback("cuda.cudart.sizeof", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_TraceReturn(__pyx_r, 0); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_tp_new_4cuda_6cudart_cudaArray_t(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaArray_t(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_cudaArray_t) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_11cudaArray_t_5__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_11cudaArray_t_5__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaArray_t[] = { {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_11cudaArray_t_5__repr__, METH_NOARGS|METH_COEXIST, 0}, {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11cudaArray_t_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11cudaArray_t_10getPtr}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11cudaArray_t_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11cudaArray_t_12__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11cudaArray_t_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11cudaArray_t_14__setstate_cython__}, {0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaArray_t_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaArray_t}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_11cudaArray_t_5__repr__}, {Py_nb_int, (void *)__pyx_pw_4cuda_6cudart_11cudaArray_t_9__int__}, #if PY_MAJOR_VERSION < 3 {Py_nb_long, (void *)__pyx_pw_4cuda_6cudart_11cudaArray_t_9__int__}, #endif {Py_nb_index, (void *)__pyx_pw_4cuda_6cudart_11cudaArray_t_7__index__}, {Py_tp_doc, (void *)PyDoc_STR("cudaArray_t(*args, **kwargs)\n\n\n CUDA array\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaArray_t}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_11cudaArray_t_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaArray_t}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaArray_t_spec = { "cuda.cudart.cudaArray_t", sizeof(struct __pyx_obj_4cuda_6cudart_cudaArray_t), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaArray_t_slots, }; #else static PyNumberMethods __pyx_tp_as_number_cudaArray_t = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_divide*/ #endif 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*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_coerce*/ #endif __pyx_pw_4cuda_6cudart_11cudaArray_t_9__int__, /*nb_int*/ #if PY_MAJOR_VERSION < 3 __pyx_pw_4cuda_6cudart_11cudaArray_t_9__int__, /*nb_long*/ #else 0, /*reserved*/ #endif 0, /*nb_float*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_oct*/ #endif #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_hex*/ #endif 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_inplace_divide*/ #endif 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_6cudart_11cudaArray_t_7__index__, /*nb_index*/ #if PY_VERSION_HEX >= 0x03050000 0, /*nb_matrix_multiply*/ #endif #if PY_VERSION_HEX >= 0x03050000 0, /*nb_inplace_matrix_multiply*/ #endif }; static PyTypeObject __pyx_type_4cuda_6cudart_cudaArray_t = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaArray_t", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaArray_t), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaArray_t, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_11cudaArray_t_5__repr__, /*tp_repr*/ &__pyx_tp_as_number_cudaArray_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("cudaArray_t(*args, **kwargs)\n\n\n CUDA array\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_6cudart_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_6cudart_11cudaArray_t_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaArray_const_t(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaArray_const_t(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_cudaArray_const_t) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_17cudaArray_const_t_5__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_17cudaArray_const_t_5__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaArray_const_t[] = { {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_17cudaArray_const_t_5__repr__, METH_NOARGS|METH_COEXIST, 0}, {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_17cudaArray_const_t_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_17cudaArray_const_t_10getPtr}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_17cudaArray_const_t_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_17cudaArray_const_t_12__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_17cudaArray_const_t_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_17cudaArray_const_t_14__setstate_cython__}, {0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaArray_const_t_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaArray_const_t}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_17cudaArray_const_t_5__repr__}, {Py_nb_int, (void *)__pyx_pw_4cuda_6cudart_17cudaArray_const_t_9__int__}, #if PY_MAJOR_VERSION < 3 {Py_nb_long, (void *)__pyx_pw_4cuda_6cudart_17cudaArray_const_t_9__int__}, #endif {Py_nb_index, (void *)__pyx_pw_4cuda_6cudart_17cudaArray_const_t_7__index__}, {Py_tp_doc, (void *)PyDoc_STR("cudaArray_const_t(*args, **kwargs)\n\n\n CUDA array (as source copy argument)\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaArray_const_t}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_17cudaArray_const_t_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaArray_const_t}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaArray_const_t_spec = { "cuda.cudart.cudaArray_const_t", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_cudaArray_const_t_slots, }; #else static PyNumberMethods __pyx_tp_as_number_cudaArray_const_t = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_divide*/ #endif 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*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_coerce*/ #endif __pyx_pw_4cuda_6cudart_17cudaArray_const_t_9__int__, /*nb_int*/ #if PY_MAJOR_VERSION < 3 __pyx_pw_4cuda_6cudart_17cudaArray_const_t_9__int__, /*nb_long*/ #else 0, /*reserved*/ #endif 0, /*nb_float*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_oct*/ #endif #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_hex*/ #endif 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_inplace_divide*/ #endif 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_6cudart_17cudaArray_const_t_7__index__, /*nb_index*/ #if PY_VERSION_HEX >= 0x03050000 0, /*nb_matrix_multiply*/ #endif #if PY_VERSION_HEX >= 0x03050000 0, /*nb_inplace_matrix_multiply*/ #endif }; static PyTypeObject __pyx_type_4cuda_6cudart_cudaArray_const_t = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaArray_const_t", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaArray_const_t), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaArray_const_t, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 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\n\n CUDA array (as source copy argument)\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_6cudart_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_6cudart_17cudaArray_const_t_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaMipmappedArray_t(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaMipmappedArray_t(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_cudaMipmappedArray_t) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_20cudaMipmappedArray_t_5__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_20cudaMipmappedArray_t_5__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaMipmappedArray_t[] = { {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_20cudaMipmappedArray_t_5__repr__, METH_NOARGS|METH_COEXIST, 0}, {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaMipmappedArray_t_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaMipmappedArray_t_10getPtr}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaMipmappedArray_t_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaMipmappedArray_t_12__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaMipmappedArray_t_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaMipmappedArray_t_14__setstate_cython__}, {0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaMipmappedArray_t_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaMipmappedArray_t}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_20cudaMipmappedArray_t_5__repr__}, {Py_nb_int, (void *)__pyx_pw_4cuda_6cudart_20cudaMipmappedArray_t_9__int__}, #if PY_MAJOR_VERSION < 3 {Py_nb_long, (void *)__pyx_pw_4cuda_6cudart_20cudaMipmappedArray_t_9__int__}, #endif {Py_nb_index, (void *)__pyx_pw_4cuda_6cudart_20cudaMipmappedArray_t_7__index__}, {Py_tp_doc, (void *)PyDoc_STR("cudaMipmappedArray_t(*args, **kwargs)\n\n\n CUDA mipmapped array\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaMipmappedArray_t}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_20cudaMipmappedArray_t_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaMipmappedArray_t}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaMipmappedArray_t_spec = { "cuda.cudart.cudaMipmappedArray_t", sizeof(struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_t), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaMipmappedArray_t_slots, }; #else static PyNumberMethods __pyx_tp_as_number_cudaMipmappedArray_t = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_divide*/ #endif 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*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_coerce*/ #endif __pyx_pw_4cuda_6cudart_20cudaMipmappedArray_t_9__int__, /*nb_int*/ #if PY_MAJOR_VERSION < 3 __pyx_pw_4cuda_6cudart_20cudaMipmappedArray_t_9__int__, /*nb_long*/ #else 0, /*reserved*/ #endif 0, /*nb_float*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_oct*/ #endif #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_hex*/ #endif 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_inplace_divide*/ #endif 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_6cudart_20cudaMipmappedArray_t_7__index__, /*nb_index*/ #if PY_VERSION_HEX >= 0x03050000 0, /*nb_matrix_multiply*/ #endif #if PY_VERSION_HEX >= 0x03050000 0, /*nb_inplace_matrix_multiply*/ #endif }; static PyTypeObject __pyx_type_4cuda_6cudart_cudaMipmappedArray_t = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaMipmappedArray_t", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_t), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaMipmappedArray_t, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_20cudaMipmappedArray_t_5__repr__, /*tp_repr*/ &__pyx_tp_as_number_cudaMipmappedArray_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("cudaMipmappedArray_t(*args, **kwargs)\n\n\n CUDA mipmapped array\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_6cudart_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_6cudart_20cudaMipmappedArray_t_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaMipmappedArray_const_t(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaMipmappedArray_const_t(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_cudaMipmappedArray_const_t) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_26cudaMipmappedArray_const_t_5__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_26cudaMipmappedArray_const_t_5__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaMipmappedArray_const_t[] = { {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_26cudaMipmappedArray_const_t_5__repr__, METH_NOARGS|METH_COEXIST, 0}, {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_26cudaMipmappedArray_const_t_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_26cudaMipmappedArray_const_t_10getPtr}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_26cudaMipmappedArray_const_t_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_26cudaMipmappedArray_const_t_12__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_26cudaMipmappedArray_const_t_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_26cudaMipmappedArray_const_t_14__setstate_cython__}, {0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaMipmappedArray_const_t_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaMipmappedArray_const_t}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_26cudaMipmappedArray_const_t_5__repr__}, {Py_nb_int, (void *)__pyx_pw_4cuda_6cudart_26cudaMipmappedArray_const_t_9__int__}, #if PY_MAJOR_VERSION < 3 {Py_nb_long, (void *)__pyx_pw_4cuda_6cudart_26cudaMipmappedArray_const_t_9__int__}, #endif {Py_nb_index, (void *)__pyx_pw_4cuda_6cudart_26cudaMipmappedArray_const_t_7__index__}, {Py_tp_doc, (void *)PyDoc_STR("cudaMipmappedArray_const_t(*args, **kwargs)\n\n\n CUDA mipmapped array (as source argument)\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaMipmappedArray_const_t}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_26cudaMipmappedArray_const_t_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaMipmappedArray_const_t}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaMipmappedArray_const_t_spec = { "cuda.cudart.cudaMipmappedArray_const_t", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_cudaMipmappedArray_const_t_slots, }; #else static PyNumberMethods __pyx_tp_as_number_cudaMipmappedArray_const_t = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_divide*/ #endif 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*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_coerce*/ #endif __pyx_pw_4cuda_6cudart_26cudaMipmappedArray_const_t_9__int__, /*nb_int*/ #if PY_MAJOR_VERSION < 3 __pyx_pw_4cuda_6cudart_26cudaMipmappedArray_const_t_9__int__, /*nb_long*/ #else 0, /*reserved*/ #endif 0, /*nb_float*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_oct*/ #endif #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_hex*/ #endif 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_inplace_divide*/ #endif 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_6cudart_26cudaMipmappedArray_const_t_7__index__, /*nb_index*/ #if PY_VERSION_HEX >= 0x03050000 0, /*nb_matrix_multiply*/ #endif #if PY_VERSION_HEX >= 0x03050000 0, /*nb_inplace_matrix_multiply*/ #endif }; static PyTypeObject __pyx_type_4cuda_6cudart_cudaMipmappedArray_const_t = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaMipmappedArray_const_t", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_const_t), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaMipmappedArray_const_t, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 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\n\n CUDA mipmapped array (as source argument)\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_6cudart_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_6cudart_26cudaMipmappedArray_const_t_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaGraphicsResource_t(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaGraphicsResource_t(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_cudaGraphicsResource_t) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_22cudaGraphicsResource_t_5__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_22cudaGraphicsResource_t_5__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaGraphicsResource_t[] = { {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_22cudaGraphicsResource_t_5__repr__, METH_NOARGS|METH_COEXIST, 0}, {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_22cudaGraphicsResource_t_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_22cudaGraphicsResource_t_10getPtr}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_22cudaGraphicsResource_t_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_22cudaGraphicsResource_t_12__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_22cudaGraphicsResource_t_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_22cudaGraphicsResource_t_14__setstate_cython__}, {0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaGraphicsResource_t_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaGraphicsResource_t}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_22cudaGraphicsResource_t_5__repr__}, {Py_nb_int, (void *)__pyx_pw_4cuda_6cudart_22cudaGraphicsResource_t_9__int__}, #if PY_MAJOR_VERSION < 3 {Py_nb_long, (void *)__pyx_pw_4cuda_6cudart_22cudaGraphicsResource_t_9__int__}, #endif {Py_nb_index, (void *)__pyx_pw_4cuda_6cudart_22cudaGraphicsResource_t_7__index__}, {Py_tp_doc, (void *)PyDoc_STR("cudaGraphicsResource_t(*args, **kwargs)\n\n\n CUDA graphics resource types\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaGraphicsResource_t}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_22cudaGraphicsResource_t_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaGraphicsResource_t}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaGraphicsResource_t_spec = { "cuda.cudart.cudaGraphicsResource_t", sizeof(struct __pyx_obj_4cuda_6cudart_cudaGraphicsResource_t), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaGraphicsResource_t_slots, }; #else static PyNumberMethods __pyx_tp_as_number_cudaGraphicsResource_t = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_divide*/ #endif 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*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_coerce*/ #endif __pyx_pw_4cuda_6cudart_22cudaGraphicsResource_t_9__int__, /*nb_int*/ #if PY_MAJOR_VERSION < 3 __pyx_pw_4cuda_6cudart_22cudaGraphicsResource_t_9__int__, /*nb_long*/ #else 0, /*reserved*/ #endif 0, /*nb_float*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_oct*/ #endif #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_hex*/ #endif 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_inplace_divide*/ #endif 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_6cudart_22cudaGraphicsResource_t_7__index__, /*nb_index*/ #if PY_VERSION_HEX >= 0x03050000 0, /*nb_matrix_multiply*/ #endif #if PY_VERSION_HEX >= 0x03050000 0, /*nb_inplace_matrix_multiply*/ #endif }; static PyTypeObject __pyx_type_4cuda_6cudart_cudaGraphicsResource_t = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaGraphicsResource_t", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaGraphicsResource_t), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaGraphicsResource_t, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_22cudaGraphicsResource_t_5__repr__, /*tp_repr*/ &__pyx_tp_as_number_cudaGraphicsResource_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("cudaGraphicsResource_t(*args, **kwargs)\n\n\n CUDA graphics resource 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*/ __pyx_methods_4cuda_6cudart_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_6cudart_22cudaGraphicsResource_t_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaExternalMemory_t(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaExternalMemory_t(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_cudaExternalMemory_t) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_20cudaExternalMemory_t_5__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_20cudaExternalMemory_t_5__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaExternalMemory_t[] = { {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_20cudaExternalMemory_t_5__repr__, METH_NOARGS|METH_COEXIST, 0}, {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaExternalMemory_t_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaExternalMemory_t_10getPtr}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaExternalMemory_t_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaExternalMemory_t_12__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaExternalMemory_t_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaExternalMemory_t_14__setstate_cython__}, {0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaExternalMemory_t_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaExternalMemory_t}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_20cudaExternalMemory_t_5__repr__}, {Py_nb_int, (void *)__pyx_pw_4cuda_6cudart_20cudaExternalMemory_t_9__int__}, #if PY_MAJOR_VERSION < 3 {Py_nb_long, (void *)__pyx_pw_4cuda_6cudart_20cudaExternalMemory_t_9__int__}, #endif {Py_nb_index, (void *)__pyx_pw_4cuda_6cudart_20cudaExternalMemory_t_7__index__}, {Py_tp_doc, (void *)PyDoc_STR("cudaExternalMemory_t(*args, **kwargs)\n\n\n CUDA external memory\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaExternalMemory_t}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_20cudaExternalMemory_t_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaExternalMemory_t}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaExternalMemory_t_spec = { "cuda.cudart.cudaExternalMemory_t", sizeof(struct __pyx_obj_4cuda_6cudart_cudaExternalMemory_t), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaExternalMemory_t_slots, }; #else static PyNumberMethods __pyx_tp_as_number_cudaExternalMemory_t = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_divide*/ #endif 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*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_coerce*/ #endif __pyx_pw_4cuda_6cudart_20cudaExternalMemory_t_9__int__, /*nb_int*/ #if PY_MAJOR_VERSION < 3 __pyx_pw_4cuda_6cudart_20cudaExternalMemory_t_9__int__, /*nb_long*/ #else 0, /*reserved*/ #endif 0, /*nb_float*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_oct*/ #endif #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_hex*/ #endif 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_inplace_divide*/ #endif 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_6cudart_20cudaExternalMemory_t_7__index__, /*nb_index*/ #if PY_VERSION_HEX >= 0x03050000 0, /*nb_matrix_multiply*/ #endif #if PY_VERSION_HEX >= 0x03050000 0, /*nb_inplace_matrix_multiply*/ #endif }; static PyTypeObject __pyx_type_4cuda_6cudart_cudaExternalMemory_t = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaExternalMemory_t", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaExternalMemory_t), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaExternalMemory_t, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_20cudaExternalMemory_t_5__repr__, /*tp_repr*/ &__pyx_tp_as_number_cudaExternalMemory_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("cudaExternalMemory_t(*args, **kwargs)\n\n\n CUDA external memory\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_6cudart_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_6cudart_20cudaExternalMemory_t_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaExternalSemaphore_t(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaExternalSemaphore_t(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_cudaExternalSemaphore_t) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_23cudaExternalSemaphore_t_5__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_23cudaExternalSemaphore_t_5__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaExternalSemaphore_t[] = { {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_23cudaExternalSemaphore_t_5__repr__, METH_NOARGS|METH_COEXIST, 0}, {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_23cudaExternalSemaphore_t_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_23cudaExternalSemaphore_t_10getPtr}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_23cudaExternalSemaphore_t_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_23cudaExternalSemaphore_t_12__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_23cudaExternalSemaphore_t_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_23cudaExternalSemaphore_t_14__setstate_cython__}, {0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaExternalSemaphore_t_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaExternalSemaphore_t}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_23cudaExternalSemaphore_t_5__repr__}, {Py_nb_int, (void *)__pyx_pw_4cuda_6cudart_23cudaExternalSemaphore_t_9__int__}, #if PY_MAJOR_VERSION < 3 {Py_nb_long, (void *)__pyx_pw_4cuda_6cudart_23cudaExternalSemaphore_t_9__int__}, #endif {Py_nb_index, (void *)__pyx_pw_4cuda_6cudart_23cudaExternalSemaphore_t_7__index__}, {Py_tp_doc, (void *)PyDoc_STR("cudaExternalSemaphore_t(*args, **kwargs)\n\n\n CUDA external semaphore\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaExternalSemaphore_t}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_23cudaExternalSemaphore_t_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaExternalSemaphore_t}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaExternalSemaphore_t_spec = { "cuda.cudart.cudaExternalSemaphore_t", sizeof(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphore_t), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaExternalSemaphore_t_slots, }; #else static PyNumberMethods __pyx_tp_as_number_cudaExternalSemaphore_t = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_divide*/ #endif 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*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_coerce*/ #endif __pyx_pw_4cuda_6cudart_23cudaExternalSemaphore_t_9__int__, /*nb_int*/ #if PY_MAJOR_VERSION < 3 __pyx_pw_4cuda_6cudart_23cudaExternalSemaphore_t_9__int__, /*nb_long*/ #else 0, /*reserved*/ #endif 0, /*nb_float*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_oct*/ #endif #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_hex*/ #endif 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_inplace_divide*/ #endif 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_6cudart_23cudaExternalSemaphore_t_7__index__, /*nb_index*/ #if PY_VERSION_HEX >= 0x03050000 0, /*nb_matrix_multiply*/ #endif #if PY_VERSION_HEX >= 0x03050000 0, /*nb_inplace_matrix_multiply*/ #endif }; static PyTypeObject __pyx_type_4cuda_6cudart_cudaExternalSemaphore_t = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaExternalSemaphore_t", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphore_t), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaExternalSemaphore_t, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_23cudaExternalSemaphore_t_5__repr__, /*tp_repr*/ &__pyx_tp_as_number_cudaExternalSemaphore_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("cudaExternalSemaphore_t(*args, **kwargs)\n\n\n CUDA external semaphore\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_6cudart_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_6cudart_23cudaExternalSemaphore_t_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaKernel_t(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaKernel_t(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_cudaKernel_t) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_12cudaKernel_t_5__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_12cudaKernel_t_5__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaKernel_t[] = { {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_12cudaKernel_t_5__repr__, METH_NOARGS|METH_COEXIST, 0}, {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12cudaKernel_t_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12cudaKernel_t_10getPtr}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12cudaKernel_t_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12cudaKernel_t_12__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12cudaKernel_t_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12cudaKernel_t_14__setstate_cython__}, {0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaKernel_t_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaKernel_t}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_12cudaKernel_t_5__repr__}, {Py_nb_int, (void *)__pyx_pw_4cuda_6cudart_12cudaKernel_t_9__int__}, #if PY_MAJOR_VERSION < 3 {Py_nb_long, (void *)__pyx_pw_4cuda_6cudart_12cudaKernel_t_9__int__}, #endif {Py_nb_index, (void *)__pyx_pw_4cuda_6cudart_12cudaKernel_t_7__index__}, {Py_tp_doc, (void *)PyDoc_STR("cudaKernel_t(*args, **kwargs)\n\n\n CUDA kernel\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaKernel_t}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_12cudaKernel_t_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaKernel_t}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaKernel_t_spec = { "cuda.cudart.cudaKernel_t", sizeof(struct __pyx_obj_4cuda_6cudart_cudaKernel_t), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaKernel_t_slots, }; #else static PyNumberMethods __pyx_tp_as_number_cudaKernel_t = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_divide*/ #endif 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*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_coerce*/ #endif __pyx_pw_4cuda_6cudart_12cudaKernel_t_9__int__, /*nb_int*/ #if PY_MAJOR_VERSION < 3 __pyx_pw_4cuda_6cudart_12cudaKernel_t_9__int__, /*nb_long*/ #else 0, /*reserved*/ #endif 0, /*nb_float*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_oct*/ #endif #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_hex*/ #endif 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_inplace_divide*/ #endif 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_6cudart_12cudaKernel_t_7__index__, /*nb_index*/ #if PY_VERSION_HEX >= 0x03050000 0, /*nb_matrix_multiply*/ #endif #if PY_VERSION_HEX >= 0x03050000 0, /*nb_inplace_matrix_multiply*/ #endif }; static PyTypeObject __pyx_type_4cuda_6cudart_cudaKernel_t = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaKernel_t", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaKernel_t), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaKernel_t, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_12cudaKernel_t_5__repr__, /*tp_repr*/ &__pyx_tp_as_number_cudaKernel_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("cudaKernel_t(*args, **kwargs)\n\n\n CUDA kernel\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_6cudart_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_6cudart_12cudaKernel_t_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaGraphDeviceNode_t(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaGraphDeviceNode_t(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_cudaGraphDeviceNode_t) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_21cudaGraphDeviceNode_t_5__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_21cudaGraphDeviceNode_t_5__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaGraphDeviceNode_t[] = { {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_21cudaGraphDeviceNode_t_5__repr__, METH_NOARGS|METH_COEXIST, 0}, {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_21cudaGraphDeviceNode_t_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_21cudaGraphDeviceNode_t_10getPtr}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_21cudaGraphDeviceNode_t_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_21cudaGraphDeviceNode_t_12__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_21cudaGraphDeviceNode_t_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_21cudaGraphDeviceNode_t_14__setstate_cython__}, {0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaGraphDeviceNode_t_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaGraphDeviceNode_t}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_21cudaGraphDeviceNode_t_5__repr__}, {Py_nb_int, (void *)__pyx_pw_4cuda_6cudart_21cudaGraphDeviceNode_t_9__int__}, #if PY_MAJOR_VERSION < 3 {Py_nb_long, (void *)__pyx_pw_4cuda_6cudart_21cudaGraphDeviceNode_t_9__int__}, #endif {Py_nb_index, (void *)__pyx_pw_4cuda_6cudart_21cudaGraphDeviceNode_t_7__index__}, {Py_tp_doc, (void *)PyDoc_STR("cudaGraphDeviceNode_t(*args, **kwargs)\n\n\n CUDA device node handle for device-side node update\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaGraphDeviceNode_t}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_21cudaGraphDeviceNode_t_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaGraphDeviceNode_t}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaGraphDeviceNode_t_spec = { "cuda.cudart.cudaGraphDeviceNode_t", sizeof(struct __pyx_obj_4cuda_6cudart_cudaGraphDeviceNode_t), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaGraphDeviceNode_t_slots, }; #else static PyNumberMethods __pyx_tp_as_number_cudaGraphDeviceNode_t = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_divide*/ #endif 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*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_coerce*/ #endif __pyx_pw_4cuda_6cudart_21cudaGraphDeviceNode_t_9__int__, /*nb_int*/ #if PY_MAJOR_VERSION < 3 __pyx_pw_4cuda_6cudart_21cudaGraphDeviceNode_t_9__int__, /*nb_long*/ #else 0, /*reserved*/ #endif 0, /*nb_float*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_oct*/ #endif #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_hex*/ #endif 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_inplace_divide*/ #endif 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_6cudart_21cudaGraphDeviceNode_t_7__index__, /*nb_index*/ #if PY_VERSION_HEX >= 0x03050000 0, /*nb_matrix_multiply*/ #endif #if PY_VERSION_HEX >= 0x03050000 0, /*nb_inplace_matrix_multiply*/ #endif }; static PyTypeObject __pyx_type_4cuda_6cudart_cudaGraphDeviceNode_t = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaGraphDeviceNode_t", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaGraphDeviceNode_t), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaGraphDeviceNode_t, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_21cudaGraphDeviceNode_t_5__repr__, /*tp_repr*/ &__pyx_tp_as_number_cudaGraphDeviceNode_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("cudaGraphDeviceNode_t(*args, **kwargs)\n\n\n CUDA device node handle for device-side node update\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_6cudart_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_6cudart_21cudaGraphDeviceNode_t_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaAsyncCallbackHandle_t(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaAsyncCallbackHandle_t(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_cudaAsyncCallbackHandle_t) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_25cudaAsyncCallbackHandle_t_5__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_25cudaAsyncCallbackHandle_t_5__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaAsyncCallbackHandle_t[] = { {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_25cudaAsyncCallbackHandle_t_5__repr__, METH_NOARGS|METH_COEXIST, 0}, {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_25cudaAsyncCallbackHandle_t_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_25cudaAsyncCallbackHandle_t_10getPtr}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_25cudaAsyncCallbackHandle_t_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_25cudaAsyncCallbackHandle_t_12__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_25cudaAsyncCallbackHandle_t_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_25cudaAsyncCallbackHandle_t_14__setstate_cython__}, {0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaAsyncCallbackHandle_t_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaAsyncCallbackHandle_t}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_25cudaAsyncCallbackHandle_t_5__repr__}, {Py_nb_int, (void *)__pyx_pw_4cuda_6cudart_25cudaAsyncCallbackHandle_t_9__int__}, #if PY_MAJOR_VERSION < 3 {Py_nb_long, (void *)__pyx_pw_4cuda_6cudart_25cudaAsyncCallbackHandle_t_9__int__}, #endif {Py_nb_index, (void *)__pyx_pw_4cuda_6cudart_25cudaAsyncCallbackHandle_t_7__index__}, {Py_tp_doc, (void *)PyDoc_STR("cudaAsyncCallbackHandle_t(*args, **kwargs)\n\n\n CUDA async callback handle\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaAsyncCallbackHandle_t}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_25cudaAsyncCallbackHandle_t_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaAsyncCallbackHandle_t}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaAsyncCallbackHandle_t_spec = { "cuda.cudart.cudaAsyncCallbackHandle_t", sizeof(struct __pyx_obj_4cuda_6cudart_cudaAsyncCallbackHandle_t), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaAsyncCallbackHandle_t_slots, }; #else static PyNumberMethods __pyx_tp_as_number_cudaAsyncCallbackHandle_t = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_divide*/ #endif 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*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_coerce*/ #endif __pyx_pw_4cuda_6cudart_25cudaAsyncCallbackHandle_t_9__int__, /*nb_int*/ #if PY_MAJOR_VERSION < 3 __pyx_pw_4cuda_6cudart_25cudaAsyncCallbackHandle_t_9__int__, /*nb_long*/ #else 0, /*reserved*/ #endif 0, /*nb_float*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_oct*/ #endif #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_hex*/ #endif 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_inplace_divide*/ #endif 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_6cudart_25cudaAsyncCallbackHandle_t_7__index__, /*nb_index*/ #if PY_VERSION_HEX >= 0x03050000 0, /*nb_matrix_multiply*/ #endif #if PY_VERSION_HEX >= 0x03050000 0, /*nb_inplace_matrix_multiply*/ #endif }; static PyTypeObject __pyx_type_4cuda_6cudart_cudaAsyncCallbackHandle_t = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaAsyncCallbackHandle_t", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaAsyncCallbackHandle_t), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaAsyncCallbackHandle_t, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_25cudaAsyncCallbackHandle_t_5__repr__, /*tp_repr*/ &__pyx_tp_as_number_cudaAsyncCallbackHandle_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("cudaAsyncCallbackHandle_t(*args, **kwargs)\n\n\n CUDA async callback handle\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_6cudart_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_6cudart_25cudaAsyncCallbackHandle_t_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_EGLImageKHR(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_EGLImageKHR(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_EGLImageKHR) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_11EGLImageKHR_5__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_11EGLImageKHR_5__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_EGLImageKHR[] = { {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_11EGLImageKHR_5__repr__, METH_NOARGS|METH_COEXIST, 0}, {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11EGLImageKHR_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11EGLImageKHR_10getPtr}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11EGLImageKHR_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11EGLImageKHR_12__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11EGLImageKHR_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11EGLImageKHR_14__setstate_cython__}, {0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_EGLImageKHR_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_EGLImageKHR}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_11EGLImageKHR_5__repr__}, {Py_nb_int, (void *)__pyx_pw_4cuda_6cudart_11EGLImageKHR_9__int__}, #if PY_MAJOR_VERSION < 3 {Py_nb_long, (void *)__pyx_pw_4cuda_6cudart_11EGLImageKHR_9__int__}, #endif {Py_nb_index, (void *)__pyx_pw_4cuda_6cudart_11EGLImageKHR_7__index__}, {Py_tp_doc, (void *)PyDoc_STR("EGLImageKHR(*args, **kwargs)\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_EGLImageKHR}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_11EGLImageKHR_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_EGLImageKHR}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_EGLImageKHR_spec = { "cuda.cudart.EGLImageKHR", sizeof(struct __pyx_obj_4cuda_6cudart_EGLImageKHR), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_EGLImageKHR_slots, }; #else static PyNumberMethods __pyx_tp_as_number_EGLImageKHR = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_divide*/ #endif 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*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_coerce*/ #endif __pyx_pw_4cuda_6cudart_11EGLImageKHR_9__int__, /*nb_int*/ #if PY_MAJOR_VERSION < 3 __pyx_pw_4cuda_6cudart_11EGLImageKHR_9__int__, /*nb_long*/ #else 0, /*reserved*/ #endif 0, /*nb_float*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_oct*/ #endif #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_hex*/ #endif 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_inplace_divide*/ #endif 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_6cudart_11EGLImageKHR_7__index__, /*nb_index*/ #if PY_VERSION_HEX >= 0x03050000 0, /*nb_matrix_multiply*/ #endif #if PY_VERSION_HEX >= 0x03050000 0, /*nb_inplace_matrix_multiply*/ #endif }; static PyTypeObject __pyx_type_4cuda_6cudart_EGLImageKHR = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""EGLImageKHR", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_EGLImageKHR), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_EGLImageKHR, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_11EGLImageKHR_5__repr__, /*tp_repr*/ &__pyx_tp_as_number_EGLImageKHR, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 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\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_6cudart_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_6cudart_11EGLImageKHR_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_EGLStreamKHR(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_EGLStreamKHR(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_EGLStreamKHR) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_12EGLStreamKHR_5__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_12EGLStreamKHR_5__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_EGLStreamKHR[] = { {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_12EGLStreamKHR_5__repr__, METH_NOARGS|METH_COEXIST, 0}, {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12EGLStreamKHR_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12EGLStreamKHR_10getPtr}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12EGLStreamKHR_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12EGLStreamKHR_12__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12EGLStreamKHR_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12EGLStreamKHR_14__setstate_cython__}, {0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_EGLStreamKHR_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_EGLStreamKHR}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_12EGLStreamKHR_5__repr__}, {Py_nb_int, (void *)__pyx_pw_4cuda_6cudart_12EGLStreamKHR_9__int__}, #if PY_MAJOR_VERSION < 3 {Py_nb_long, (void *)__pyx_pw_4cuda_6cudart_12EGLStreamKHR_9__int__}, #endif {Py_nb_index, (void *)__pyx_pw_4cuda_6cudart_12EGLStreamKHR_7__index__}, {Py_tp_doc, (void *)PyDoc_STR("EGLStreamKHR(*args, **kwargs)\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_EGLStreamKHR}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_12EGLStreamKHR_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_EGLStreamKHR}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_EGLStreamKHR_spec = { "cuda.cudart.EGLStreamKHR", sizeof(struct __pyx_obj_4cuda_6cudart_EGLStreamKHR), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_EGLStreamKHR_slots, }; #else static PyNumberMethods __pyx_tp_as_number_EGLStreamKHR = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_divide*/ #endif 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*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_coerce*/ #endif __pyx_pw_4cuda_6cudart_12EGLStreamKHR_9__int__, /*nb_int*/ #if PY_MAJOR_VERSION < 3 __pyx_pw_4cuda_6cudart_12EGLStreamKHR_9__int__, /*nb_long*/ #else 0, /*reserved*/ #endif 0, /*nb_float*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_oct*/ #endif #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_hex*/ #endif 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_inplace_divide*/ #endif 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_6cudart_12EGLStreamKHR_7__index__, /*nb_index*/ #if PY_VERSION_HEX >= 0x03050000 0, /*nb_matrix_multiply*/ #endif #if PY_VERSION_HEX >= 0x03050000 0, /*nb_inplace_matrix_multiply*/ #endif }; static PyTypeObject __pyx_type_4cuda_6cudart_EGLStreamKHR = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""EGLStreamKHR", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_EGLStreamKHR), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_EGLStreamKHR, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_12EGLStreamKHR_5__repr__, /*tp_repr*/ &__pyx_tp_as_number_EGLStreamKHR, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 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\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_6cudart_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_6cudart_12EGLStreamKHR_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_EGLSyncKHR(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_EGLSyncKHR(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_EGLSyncKHR) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_10EGLSyncKHR_5__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_10EGLSyncKHR_5__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_EGLSyncKHR[] = { {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_10EGLSyncKHR_5__repr__, METH_NOARGS|METH_COEXIST, 0}, {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_10EGLSyncKHR_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_10EGLSyncKHR_10getPtr}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_10EGLSyncKHR_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_10EGLSyncKHR_12__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_10EGLSyncKHR_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_10EGLSyncKHR_14__setstate_cython__}, {0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_EGLSyncKHR_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_EGLSyncKHR}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_10EGLSyncKHR_5__repr__}, {Py_nb_int, (void *)__pyx_pw_4cuda_6cudart_10EGLSyncKHR_9__int__}, #if PY_MAJOR_VERSION < 3 {Py_nb_long, (void *)__pyx_pw_4cuda_6cudart_10EGLSyncKHR_9__int__}, #endif {Py_nb_index, (void *)__pyx_pw_4cuda_6cudart_10EGLSyncKHR_7__index__}, {Py_tp_doc, (void *)PyDoc_STR("EGLSyncKHR(*args, **kwargs)\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_EGLSyncKHR}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_10EGLSyncKHR_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_EGLSyncKHR}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_EGLSyncKHR_spec = { "cuda.cudart.EGLSyncKHR", sizeof(struct __pyx_obj_4cuda_6cudart_EGLSyncKHR), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_EGLSyncKHR_slots, }; #else static PyNumberMethods __pyx_tp_as_number_EGLSyncKHR = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_divide*/ #endif 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*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_coerce*/ #endif __pyx_pw_4cuda_6cudart_10EGLSyncKHR_9__int__, /*nb_int*/ #if PY_MAJOR_VERSION < 3 __pyx_pw_4cuda_6cudart_10EGLSyncKHR_9__int__, /*nb_long*/ #else 0, /*reserved*/ #endif 0, /*nb_float*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_oct*/ #endif #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_hex*/ #endif 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_inplace_divide*/ #endif 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_6cudart_10EGLSyncKHR_7__index__, /*nb_index*/ #if PY_VERSION_HEX >= 0x03050000 0, /*nb_matrix_multiply*/ #endif #if PY_VERSION_HEX >= 0x03050000 0, /*nb_inplace_matrix_multiply*/ #endif }; static PyTypeObject __pyx_type_4cuda_6cudart_EGLSyncKHR = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""EGLSyncKHR", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_EGLSyncKHR), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_EGLSyncKHR, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_10EGLSyncKHR_5__repr__, /*tp_repr*/ &__pyx_tp_as_number_EGLSyncKHR, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 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\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_6cudart_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_6cudart_10EGLSyncKHR_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaHostFn_t(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaHostFn_t(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_cudaHostFn_t) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_12cudaHostFn_t_5__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_12cudaHostFn_t_5__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaHostFn_t[] = { {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_12cudaHostFn_t_5__repr__, METH_NOARGS|METH_COEXIST, 0}, {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12cudaHostFn_t_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12cudaHostFn_t_10getPtr}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12cudaHostFn_t_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12cudaHostFn_t_12__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12cudaHostFn_t_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12cudaHostFn_t_14__setstate_cython__}, {0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaHostFn_t_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaHostFn_t}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_12cudaHostFn_t_5__repr__}, {Py_nb_int, (void *)__pyx_pw_4cuda_6cudart_12cudaHostFn_t_9__int__}, #if PY_MAJOR_VERSION < 3 {Py_nb_long, (void *)__pyx_pw_4cuda_6cudart_12cudaHostFn_t_9__int__}, #endif {Py_nb_index, (void *)__pyx_pw_4cuda_6cudart_12cudaHostFn_t_7__index__}, {Py_tp_doc, (void *)PyDoc_STR("cudaHostFn_t(*args, **kwargs)\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaHostFn_t}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_12cudaHostFn_t_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaHostFn_t}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaHostFn_t_spec = { "cuda.cudart.cudaHostFn_t", sizeof(struct __pyx_obj_4cuda_6cudart_cudaHostFn_t), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaHostFn_t_slots, }; #else static PyNumberMethods __pyx_tp_as_number_cudaHostFn_t = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_divide*/ #endif 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*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_coerce*/ #endif __pyx_pw_4cuda_6cudart_12cudaHostFn_t_9__int__, /*nb_int*/ #if PY_MAJOR_VERSION < 3 __pyx_pw_4cuda_6cudart_12cudaHostFn_t_9__int__, /*nb_long*/ #else 0, /*reserved*/ #endif 0, /*nb_float*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_oct*/ #endif #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_hex*/ #endif 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_inplace_divide*/ #endif 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_6cudart_12cudaHostFn_t_7__index__, /*nb_index*/ #if PY_VERSION_HEX >= 0x03050000 0, /*nb_matrix_multiply*/ #endif #if PY_VERSION_HEX >= 0x03050000 0, /*nb_inplace_matrix_multiply*/ #endif }; static PyTypeObject __pyx_type_4cuda_6cudart_cudaHostFn_t = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaHostFn_t", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaHostFn_t), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaHostFn_t, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\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_6cudart_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_6cudart_12cudaHostFn_t_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaAsyncCallback(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaAsyncCallback(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_cudaAsyncCallback) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_17cudaAsyncCallback_5__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_17cudaAsyncCallback_5__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaAsyncCallback[] = { {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_17cudaAsyncCallback_5__repr__, METH_NOARGS|METH_COEXIST, 0}, {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_17cudaAsyncCallback_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_17cudaAsyncCallback_10getPtr}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_17cudaAsyncCallback_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_17cudaAsyncCallback_12__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_17cudaAsyncCallback_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_17cudaAsyncCallback_14__setstate_cython__}, {0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaAsyncCallback_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaAsyncCallback}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_17cudaAsyncCallback_5__repr__}, {Py_nb_int, (void *)__pyx_pw_4cuda_6cudart_17cudaAsyncCallback_9__int__}, #if PY_MAJOR_VERSION < 3 {Py_nb_long, (void *)__pyx_pw_4cuda_6cudart_17cudaAsyncCallback_9__int__}, #endif {Py_nb_index, (void *)__pyx_pw_4cuda_6cudart_17cudaAsyncCallback_7__index__}, {Py_tp_doc, (void *)PyDoc_STR("cudaAsyncCallback(*args, **kwargs)\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaAsyncCallback}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_17cudaAsyncCallback_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaAsyncCallback}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaAsyncCallback_spec = { "cuda.cudart.cudaAsyncCallback", sizeof(struct __pyx_obj_4cuda_6cudart_cudaAsyncCallback), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaAsyncCallback_slots, }; #else static PyNumberMethods __pyx_tp_as_number_cudaAsyncCallback = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_divide*/ #endif 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*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_coerce*/ #endif __pyx_pw_4cuda_6cudart_17cudaAsyncCallback_9__int__, /*nb_int*/ #if PY_MAJOR_VERSION < 3 __pyx_pw_4cuda_6cudart_17cudaAsyncCallback_9__int__, /*nb_long*/ #else 0, /*reserved*/ #endif 0, /*nb_float*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_oct*/ #endif #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_hex*/ #endif 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_inplace_divide*/ #endif 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_6cudart_17cudaAsyncCallback_7__index__, /*nb_index*/ #if PY_VERSION_HEX >= 0x03050000 0, /*nb_matrix_multiply*/ #endif #if PY_VERSION_HEX >= 0x03050000 0, /*nb_inplace_matrix_multiply*/ #endif }; static PyTypeObject __pyx_type_4cuda_6cudart_cudaAsyncCallback = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaAsyncCallback", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaAsyncCallback), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaAsyncCallback, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\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_6cudart_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_6cudart_17cudaAsyncCallback_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaStreamCallback_t(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaStreamCallback_t(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_cudaStreamCallback_t) { if (PyObject_CallFinalizerFromDealloc(o)) return; } } #endif #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_20cudaStreamCallback_t_5__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_20cudaStreamCallback_t_5__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaStreamCallback_t[] = { {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_20cudaStreamCallback_t_5__repr__, METH_NOARGS|METH_COEXIST, 0}, {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaStreamCallback_t_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaStreamCallback_t_10getPtr}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaStreamCallback_t_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaStreamCallback_t_12__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaStreamCallback_t_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaStreamCallback_t_14__setstate_cython__}, {0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaStreamCallback_t_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaStreamCallback_t}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_20cudaStreamCallback_t_5__repr__}, {Py_nb_int, (void *)__pyx_pw_4cuda_6cudart_20cudaStreamCallback_t_9__int__}, #if PY_MAJOR_VERSION < 3 {Py_nb_long, (void *)__pyx_pw_4cuda_6cudart_20cudaStreamCallback_t_9__int__}, #endif {Py_nb_index, (void *)__pyx_pw_4cuda_6cudart_20cudaStreamCallback_t_7__index__}, {Py_tp_doc, (void *)PyDoc_STR("cudaStreamCallback_t(*args, **kwargs)\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaStreamCallback_t}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_20cudaStreamCallback_t_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaStreamCallback_t}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaStreamCallback_t_spec = { "cuda.cudart.cudaStreamCallback_t", sizeof(struct __pyx_obj_4cuda_6cudart_cudaStreamCallback_t), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaStreamCallback_t_slots, }; #else static PyNumberMethods __pyx_tp_as_number_cudaStreamCallback_t = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_divide*/ #endif 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*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_coerce*/ #endif __pyx_pw_4cuda_6cudart_20cudaStreamCallback_t_9__int__, /*nb_int*/ #if PY_MAJOR_VERSION < 3 __pyx_pw_4cuda_6cudart_20cudaStreamCallback_t_9__int__, /*nb_long*/ #else 0, /*reserved*/ #endif 0, /*nb_float*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_oct*/ #endif #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_hex*/ #endif 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_inplace_divide*/ #endif 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_6cudart_20cudaStreamCallback_t_7__index__, /*nb_index*/ #if PY_VERSION_HEX >= 0x03050000 0, /*nb_matrix_multiply*/ #endif #if PY_VERSION_HEX >= 0x03050000 0, /*nb_inplace_matrix_multiply*/ #endif }; static PyTypeObject __pyx_type_4cuda_6cudart_cudaStreamCallback_t = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaStreamCallback_t", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaStreamCallback_t), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaStreamCallback_t, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\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_6cudart_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_6cudart_20cudaStreamCallback_t_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_dim3(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_dim3 *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_dim3 *)o); new((void*)&(p->_dim3__val)) struct dim3(); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_dim3(PyObject *o) { struct __pyx_obj_4cuda_6cudart_dim3 *p = (struct __pyx_obj_4cuda_6cudart_dim3 *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_4dim3_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_dim3__val); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_4dim3_x(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_4dim3_1x_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_4dim3_x(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_4dim3_1x_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_4dim3_y(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_4dim3_1y_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_4dim3_y(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_4dim3_1y_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_4dim3_z(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_4dim3_1z_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_4dim3_z(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_4dim3_1z_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_4dim3_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_4dim3_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_dim3[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_4dim3_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_4dim3_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_4dim3_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_4dim3_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_4dim3_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_4dim3_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_4dim3_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_dim3[] = { {(char *)"x", __pyx_getprop_4cuda_6cudart_4dim3_x, __pyx_setprop_4cuda_6cudart_4dim3_x, (char *)0, 0}, {(char *)"y", __pyx_getprop_4cuda_6cudart_4dim3_y, __pyx_setprop_4cuda_6cudart_4dim3_y, (char *)0, 0}, {(char *)"z", __pyx_getprop_4cuda_6cudart_4dim3_z, __pyx_setprop_4cuda_6cudart_4dim3_z, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_dim3_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_dim3}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_4dim3_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("dim3(void_ptr _ptr=0)\n\n Attributes\n ----------\n x : unsigned int\n\n y : unsigned int\n\n z : unsigned int\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_dim3}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_dim3}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_4dim3_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_dim3}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_dim3_spec = { "cuda.cudart.dim3", sizeof(struct __pyx_obj_4cuda_6cudart_dim3), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_dim3_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_dim3 = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""dim3", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_dim3), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_dim3, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Attributes\n ----------\n x : unsigned int\n\n y : unsigned int\n\n z : unsigned int\n\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_6cudart_dim3, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_4dim3_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaChannelFormatDesc(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)o); new((void*)&(p->_cudaChannelFormatDesc__val)) struct cudaChannelFormatDesc(); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaChannelFormatDesc(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *p = (struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_21cudaChannelFormatDesc_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaChannelFormatDesc__val); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_21cudaChannelFormatDesc_x(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_21cudaChannelFormatDesc_1x_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_21cudaChannelFormatDesc_x(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_21cudaChannelFormatDesc_1x_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_21cudaChannelFormatDesc_y(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_21cudaChannelFormatDesc_1y_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_21cudaChannelFormatDesc_y(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_21cudaChannelFormatDesc_1y_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_21cudaChannelFormatDesc_z(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_21cudaChannelFormatDesc_1z_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_21cudaChannelFormatDesc_z(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_21cudaChannelFormatDesc_1z_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_21cudaChannelFormatDesc_w(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_21cudaChannelFormatDesc_1w_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_21cudaChannelFormatDesc_w(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_21cudaChannelFormatDesc_1w_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_21cudaChannelFormatDesc_f(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_21cudaChannelFormatDesc_1f_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_21cudaChannelFormatDesc_f(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_21cudaChannelFormatDesc_1f_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_21cudaChannelFormatDesc_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_21cudaChannelFormatDesc_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaChannelFormatDesc[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_21cudaChannelFormatDesc_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_21cudaChannelFormatDesc_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_21cudaChannelFormatDesc_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_21cudaChannelFormatDesc_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_21cudaChannelFormatDesc_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_21cudaChannelFormatDesc_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_21cudaChannelFormatDesc_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaChannelFormatDesc[] = { {(char *)"x", __pyx_getprop_4cuda_6cudart_21cudaChannelFormatDesc_x, __pyx_setprop_4cuda_6cudart_21cudaChannelFormatDesc_x, (char *)0, 0}, {(char *)"y", __pyx_getprop_4cuda_6cudart_21cudaChannelFormatDesc_y, __pyx_setprop_4cuda_6cudart_21cudaChannelFormatDesc_y, (char *)0, 0}, {(char *)"z", __pyx_getprop_4cuda_6cudart_21cudaChannelFormatDesc_z, __pyx_setprop_4cuda_6cudart_21cudaChannelFormatDesc_z, (char *)0, 0}, {(char *)"w", __pyx_getprop_4cuda_6cudart_21cudaChannelFormatDesc_w, __pyx_setprop_4cuda_6cudart_21cudaChannelFormatDesc_w, (char *)0, 0}, {(char *)"f", __pyx_getprop_4cuda_6cudart_21cudaChannelFormatDesc_f, __pyx_setprop_4cuda_6cudart_21cudaChannelFormatDesc_f, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaChannelFormatDesc_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaChannelFormatDesc}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_21cudaChannelFormatDesc_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaChannelFormatDesc(void_ptr _ptr=0)\n\n CUDA Channel format descriptor\n\n Attributes\n ----------\n x : int\n x\n y : int\n y\n z : int\n z\n w : int\n w\n f : cudaChannelFormatKind\n Channel format kind\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaChannelFormatDesc}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaChannelFormatDesc}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_21cudaChannelFormatDesc_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaChannelFormatDesc}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaChannelFormatDesc_spec = { "cuda.cudart.cudaChannelFormatDesc", sizeof(struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaChannelFormatDesc_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaChannelFormatDesc = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaChannelFormatDesc", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaChannelFormatDesc, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n CUDA Channel format descriptor\n\n Attributes\n ----------\n x : int\n x\n y : int\n y\n z : int\n z\n w : int\n w\n f : cudaChannelFormatKind\n Channel format kind\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_6cudart_cudaChannelFormatDesc, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_21cudaChannelFormatDesc_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_anon_struct0(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_anon_struct0(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_12anon_struct0_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_12anon_struct0_width(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_12anon_struct0_5width_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_12anon_struct0_width(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_12anon_struct0_5width_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_12anon_struct0_height(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_12anon_struct0_6height_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_12anon_struct0_height(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_12anon_struct0_6height_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_12anon_struct0_depth(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_12anon_struct0_5depth_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_12anon_struct0_depth(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_12anon_struct0_5depth_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_12anon_struct0_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_12anon_struct0_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_anon_struct0[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct0_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct0_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_12anon_struct0_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct0_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct0_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct0_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct0_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_anon_struct0[] = { {(char *)"width", __pyx_getprop_4cuda_6cudart_12anon_struct0_width, __pyx_setprop_4cuda_6cudart_12anon_struct0_width, (char *)0, 0}, {(char *)"height", __pyx_getprop_4cuda_6cudart_12anon_struct0_height, __pyx_setprop_4cuda_6cudart_12anon_struct0_height, (char *)0, 0}, {(char *)"depth", __pyx_getprop_4cuda_6cudart_12anon_struct0_depth, __pyx_setprop_4cuda_6cudart_12anon_struct0_depth, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_anon_struct0_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_anon_struct0}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_12anon_struct0_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("anon_struct0(void_ptr _ptr)\n\n Attributes\n ----------\n width : unsigned int\n\n height : unsigned int\n\n depth : unsigned int\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_anon_struct0}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_anon_struct0}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_12anon_struct0_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_anon_struct0}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_anon_struct0_spec = { "cuda.cudart.anon_struct0", sizeof(struct __pyx_obj_4cuda_6cudart_anon_struct0), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_anon_struct0_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_anon_struct0 = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""anon_struct0", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_anon_struct0), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_anon_struct0, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Attributes\n ----------\n width : unsigned int\n\n height : unsigned int\n\n depth : unsigned int\n\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_6cudart_anon_struct0, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_12anon_struct0_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaArraySparseProperties(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *)o); new((void*)&(p->_cudaArraySparseProperties__val)) struct cudaArraySparseProperties(); p->_tileExtent = ((struct __pyx_obj_4cuda_6cudart_anon_struct0 *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaArraySparseProperties(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *p = (struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_25cudaArraySparseProperties_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaArraySparseProperties__val); Py_CLEAR(p->_tileExtent); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_cudaArraySparseProperties(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *p = (struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *)o; if (p->_tileExtent) { e = (*v)(((PyObject *)p->_tileExtent), a); if (e) return e; } return 0; } static int __pyx_tp_clear_4cuda_6cudart_cudaArraySparseProperties(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *p = (struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties *)o; tmp = ((PyObject*)p->_tileExtent); p->_tileExtent = ((struct __pyx_obj_4cuda_6cudart_anon_struct0 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_25cudaArraySparseProperties_tileExtent(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_25cudaArraySparseProperties_10tileExtent_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_25cudaArraySparseProperties_tileExtent(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_25cudaArraySparseProperties_10tileExtent_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_25cudaArraySparseProperties_miptailFirstLevel(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_25cudaArraySparseProperties_17miptailFirstLevel_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_25cudaArraySparseProperties_miptailFirstLevel(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_25cudaArraySparseProperties_17miptailFirstLevel_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_25cudaArraySparseProperties_miptailSize(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_25cudaArraySparseProperties_11miptailSize_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_25cudaArraySparseProperties_miptailSize(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_25cudaArraySparseProperties_11miptailSize_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_25cudaArraySparseProperties_flags(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_25cudaArraySparseProperties_5flags_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_25cudaArraySparseProperties_flags(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_25cudaArraySparseProperties_5flags_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_25cudaArraySparseProperties_reserved(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_25cudaArraySparseProperties_8reserved_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_25cudaArraySparseProperties_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_25cudaArraySparseProperties_8reserved_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_25cudaArraySparseProperties_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_25cudaArraySparseProperties_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaArraySparseProperties[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_25cudaArraySparseProperties_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_25cudaArraySparseProperties_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_25cudaArraySparseProperties_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_25cudaArraySparseProperties_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_25cudaArraySparseProperties_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_25cudaArraySparseProperties_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_25cudaArraySparseProperties_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaArraySparseProperties[] = { {(char *)"tileExtent", __pyx_getprop_4cuda_6cudart_25cudaArraySparseProperties_tileExtent, __pyx_setprop_4cuda_6cudart_25cudaArraySparseProperties_tileExtent, (char *)0, 0}, {(char *)"miptailFirstLevel", __pyx_getprop_4cuda_6cudart_25cudaArraySparseProperties_miptailFirstLevel, __pyx_setprop_4cuda_6cudart_25cudaArraySparseProperties_miptailFirstLevel, (char *)0, 0}, {(char *)"miptailSize", __pyx_getprop_4cuda_6cudart_25cudaArraySparseProperties_miptailSize, __pyx_setprop_4cuda_6cudart_25cudaArraySparseProperties_miptailSize, (char *)0, 0}, {(char *)"flags", __pyx_getprop_4cuda_6cudart_25cudaArraySparseProperties_flags, __pyx_setprop_4cuda_6cudart_25cudaArraySparseProperties_flags, (char *)0, 0}, {(char *)"reserved", __pyx_getprop_4cuda_6cudart_25cudaArraySparseProperties_reserved, __pyx_setprop_4cuda_6cudart_25cudaArraySparseProperties_reserved, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaArraySparseProperties_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaArraySparseProperties}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_25cudaArraySparseProperties_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaArraySparseProperties(void_ptr _ptr=0)\n\n Sparse CUDA array and CUDA mipmapped array properties\n\n Attributes\n ----------\n tileExtent : anon_struct0\n\n miptailFirstLevel : unsigned int\n First mip level at which the mip tail begins\n miptailSize : unsigned long long\n Total size of the mip tail.\n flags : unsigned int\n Flags will either be zero or cudaArraySparsePropertiesSingleMipTail\n reserved : List[unsigned int]\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaArraySparseProperties}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaArraySparseProperties}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaArraySparseProperties}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaArraySparseProperties}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_25cudaArraySparseProperties_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaArraySparseProperties}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaArraySparseProperties_spec = { "cuda.cudart.cudaArraySparseProperties", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_cudaArraySparseProperties_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaArraySparseProperties = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaArraySparseProperties", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaArraySparseProperties), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaArraySparseProperties, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Sparse CUDA array and CUDA mipmapped array properties\n\n Attributes\n ----------\n tileExtent : anon_struct0\n\n miptailFirstLevel : unsigned int\n First mip level at which the mip tail begins\n miptailSize : unsigned long long\n Total size of the mip tail.\n flags : unsigned int\n Flags will either be zero or cudaArraySparsePropertiesSingleMipTail\n reserved : List[unsigned int]\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaArraySparseProperties, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_cudaArraySparseProperties, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_cudaArraySparseProperties, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_25cudaArraySparseProperties_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaArrayMemoryRequirements(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements *)o); new((void*)&(p->_cudaArrayMemoryRequirements__val)) struct cudaArrayMemoryRequirements(); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaArrayMemoryRequirements(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements *p = (struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_27cudaArrayMemoryRequirements_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaArrayMemoryRequirements__val); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_27cudaArrayMemoryRequirements_size(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_27cudaArrayMemoryRequirements_4size_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_27cudaArrayMemoryRequirements_size(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_27cudaArrayMemoryRequirements_4size_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_27cudaArrayMemoryRequirements_alignment(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_27cudaArrayMemoryRequirements_9alignment_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_27cudaArrayMemoryRequirements_alignment(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_27cudaArrayMemoryRequirements_9alignment_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_27cudaArrayMemoryRequirements_reserved(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_27cudaArrayMemoryRequirements_8reserved_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_27cudaArrayMemoryRequirements_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_27cudaArrayMemoryRequirements_8reserved_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_27cudaArrayMemoryRequirements_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_27cudaArrayMemoryRequirements_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaArrayMemoryRequirements[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_27cudaArrayMemoryRequirements_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_27cudaArrayMemoryRequirements_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_27cudaArrayMemoryRequirements_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_27cudaArrayMemoryRequirements_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_27cudaArrayMemoryRequirements_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_27cudaArrayMemoryRequirements_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_27cudaArrayMemoryRequirements_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaArrayMemoryRequirements[] = { {(char *)"size", __pyx_getprop_4cuda_6cudart_27cudaArrayMemoryRequirements_size, __pyx_setprop_4cuda_6cudart_27cudaArrayMemoryRequirements_size, (char *)0, 0}, {(char *)"alignment", __pyx_getprop_4cuda_6cudart_27cudaArrayMemoryRequirements_alignment, __pyx_setprop_4cuda_6cudart_27cudaArrayMemoryRequirements_alignment, (char *)0, 0}, {(char *)"reserved", __pyx_getprop_4cuda_6cudart_27cudaArrayMemoryRequirements_reserved, __pyx_setprop_4cuda_6cudart_27cudaArrayMemoryRequirements_reserved, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaArrayMemoryRequirements_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaArrayMemoryRequirements}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_27cudaArrayMemoryRequirements_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaArrayMemoryRequirements(void_ptr _ptr=0)\n\n CUDA array and CUDA mipmapped array memory requirements\n\n Attributes\n ----------\n size : size_t\n Total size of the array.\n alignment : size_t\n Alignment necessary for mapping the array.\n reserved : List[unsigned int]\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaArrayMemoryRequirements}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaArrayMemoryRequirements}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_27cudaArrayMemoryRequirements_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaArrayMemoryRequirements}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaArrayMemoryRequirements_spec = { "cuda.cudart.cudaArrayMemoryRequirements", sizeof(struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaArrayMemoryRequirements_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaArrayMemoryRequirements = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaArrayMemoryRequirements", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaArrayMemoryRequirements), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaArrayMemoryRequirements, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n CUDA array and CUDA mipmapped array memory requirements\n\n Attributes\n ----------\n size : size_t\n Total size of the array.\n alignment : size_t\n Alignment necessary for mapping the array.\n reserved : List[unsigned int]\n\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_6cudart_cudaArrayMemoryRequirements, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_27cudaArrayMemoryRequirements_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaPitchedPtr(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *)o); new((void*)&(p->_cudaPitchedPtr__val)) struct cudaPitchedPtr(); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaPitchedPtr(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *p = (struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_14cudaPitchedPtr_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaPitchedPtr__val); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaPitchedPtr_ptr(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaPitchedPtr_3ptr_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaPitchedPtr_ptr(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaPitchedPtr_3ptr_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaPitchedPtr_pitch(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaPitchedPtr_5pitch_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaPitchedPtr_pitch(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaPitchedPtr_5pitch_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaPitchedPtr_xsize(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaPitchedPtr_5xsize_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaPitchedPtr_xsize(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaPitchedPtr_5xsize_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaPitchedPtr_ysize(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaPitchedPtr_5ysize_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaPitchedPtr_ysize(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaPitchedPtr_5ysize_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_14cudaPitchedPtr_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_14cudaPitchedPtr_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaPitchedPtr[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_14cudaPitchedPtr_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_14cudaPitchedPtr_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_14cudaPitchedPtr_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_14cudaPitchedPtr_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_14cudaPitchedPtr_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_14cudaPitchedPtr_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_14cudaPitchedPtr_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaPitchedPtr[] = { {(char *)"ptr", __pyx_getprop_4cuda_6cudart_14cudaPitchedPtr_ptr, __pyx_setprop_4cuda_6cudart_14cudaPitchedPtr_ptr, (char *)0, 0}, {(char *)"pitch", __pyx_getprop_4cuda_6cudart_14cudaPitchedPtr_pitch, __pyx_setprop_4cuda_6cudart_14cudaPitchedPtr_pitch, (char *)0, 0}, {(char *)"xsize", __pyx_getprop_4cuda_6cudart_14cudaPitchedPtr_xsize, __pyx_setprop_4cuda_6cudart_14cudaPitchedPtr_xsize, (char *)0, 0}, {(char *)"ysize", __pyx_getprop_4cuda_6cudart_14cudaPitchedPtr_ysize, __pyx_setprop_4cuda_6cudart_14cudaPitchedPtr_ysize, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaPitchedPtr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaPitchedPtr}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_14cudaPitchedPtr_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaPitchedPtr(void_ptr _ptr=0)\n\n CUDA Pitched memory pointer ::make_cudaPitchedPtr\n\n Attributes\n ----------\n ptr : Any\n Pointer to allocated memory\n pitch : size_t\n Pitch of allocated memory in bytes\n xsize : size_t\n Logical width of allocation in elements\n ysize : size_t\n Logical height of allocation in elements\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaPitchedPtr}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaPitchedPtr}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_14cudaPitchedPtr_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaPitchedPtr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaPitchedPtr_spec = { "cuda.cudart.cudaPitchedPtr", sizeof(struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaPitchedPtr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaPitchedPtr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaPitchedPtr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaPitchedPtr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n CUDA Pitched memory pointer ::make_cudaPitchedPtr\n\n Attributes\n ----------\n ptr : Any\n Pointer to allocated memory\n pitch : size_t\n Pitch of allocated memory in bytes\n xsize : size_t\n Logical width of allocation in elements\n ysize : size_t\n Logical height of allocation in elements\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_6cudart_cudaPitchedPtr, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_14cudaPitchedPtr_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaExtent(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaExtent *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaExtent *)o); new((void*)&(p->_cudaExtent__val)) struct cudaExtent(); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaExtent(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaExtent *p = (struct __pyx_obj_4cuda_6cudart_cudaExtent *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_10cudaExtent_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaExtent__val); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_10cudaExtent_width(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_10cudaExtent_5width_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_10cudaExtent_width(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_10cudaExtent_5width_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_10cudaExtent_height(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_10cudaExtent_6height_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_10cudaExtent_height(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_10cudaExtent_6height_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_10cudaExtent_depth(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_10cudaExtent_5depth_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_10cudaExtent_depth(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_10cudaExtent_5depth_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_10cudaExtent_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_10cudaExtent_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaExtent[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_10cudaExtent_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_10cudaExtent_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_10cudaExtent_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_10cudaExtent_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_10cudaExtent_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_10cudaExtent_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_10cudaExtent_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaExtent[] = { {(char *)"width", __pyx_getprop_4cuda_6cudart_10cudaExtent_width, __pyx_setprop_4cuda_6cudart_10cudaExtent_width, (char *)0, 0}, {(char *)"height", __pyx_getprop_4cuda_6cudart_10cudaExtent_height, __pyx_setprop_4cuda_6cudart_10cudaExtent_height, (char *)0, 0}, {(char *)"depth", __pyx_getprop_4cuda_6cudart_10cudaExtent_depth, __pyx_setprop_4cuda_6cudart_10cudaExtent_depth, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaExtent_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaExtent}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_10cudaExtent_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaExtent(void_ptr _ptr=0)\n\n CUDA extent ::make_cudaExtent\n\n Attributes\n ----------\n width : size_t\n Width in elements when referring to array memory, in bytes when\n referring to linear memory\n height : size_t\n Height in elements\n depth : size_t\n Depth in elements\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaExtent}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaExtent}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_10cudaExtent_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaExtent}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaExtent_spec = { "cuda.cudart.cudaExtent", sizeof(struct __pyx_obj_4cuda_6cudart_cudaExtent), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaExtent_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaExtent = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaExtent", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaExtent), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaExtent, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n CUDA extent ::make_cudaExtent\n\n Attributes\n ----------\n width : size_t\n Width in elements when referring to array memory, in bytes when\n referring to linear memory\n height : size_t\n Height in elements\n depth : size_t\n Depth in elements\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_6cudart_cudaExtent, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_10cudaExtent_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaPos(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaPos *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaPos *)o); new((void*)&(p->_cudaPos__val)) struct cudaPos(); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaPos(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaPos *p = (struct __pyx_obj_4cuda_6cudart_cudaPos *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_7cudaPos_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaPos__val); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_7cudaPos_x(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_7cudaPos_1x_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_7cudaPos_x(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_7cudaPos_1x_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_7cudaPos_y(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_7cudaPos_1y_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_7cudaPos_y(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_7cudaPos_1y_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_7cudaPos_z(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_7cudaPos_1z_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_7cudaPos_z(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_7cudaPos_1z_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_7cudaPos_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_7cudaPos_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaPos[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_7cudaPos_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_7cudaPos_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_7cudaPos_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_7cudaPos_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_7cudaPos_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_7cudaPos_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_7cudaPos_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaPos[] = { {(char *)"x", __pyx_getprop_4cuda_6cudart_7cudaPos_x, __pyx_setprop_4cuda_6cudart_7cudaPos_x, (char *)0, 0}, {(char *)"y", __pyx_getprop_4cuda_6cudart_7cudaPos_y, __pyx_setprop_4cuda_6cudart_7cudaPos_y, (char *)0, 0}, {(char *)"z", __pyx_getprop_4cuda_6cudart_7cudaPos_z, __pyx_setprop_4cuda_6cudart_7cudaPos_z, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaPos_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaPos}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_7cudaPos_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaPos(void_ptr _ptr=0)\n\n CUDA 3D position ::make_cudaPos\n\n Attributes\n ----------\n x : size_t\n x\n y : size_t\n y\n z : size_t\n z\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaPos}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaPos}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_7cudaPos_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaPos}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaPos_spec = { "cuda.cudart.cudaPos", sizeof(struct __pyx_obj_4cuda_6cudart_cudaPos), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaPos_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaPos = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaPos", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaPos), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaPos, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n CUDA 3D position ::make_cudaPos\n\n Attributes\n ----------\n x : size_t\n x\n y : size_t\n y\n z : size_t\n z\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_6cudart_cudaPos, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_7cudaPos_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaMemcpy3DParms(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *)o); new((void*)&(p->_cudaMemcpy3DParms__val)) struct cudaMemcpy3DParms(); p->_srcArray = ((struct __pyx_obj_4cuda_6cudart_cudaArray_t *)Py_None); Py_INCREF(Py_None); p->_srcPos = ((struct __pyx_obj_4cuda_6cudart_cudaPos *)Py_None); Py_INCREF(Py_None); p->_srcPtr = ((struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *)Py_None); Py_INCREF(Py_None); p->_dstArray = ((struct __pyx_obj_4cuda_6cudart_cudaArray_t *)Py_None); Py_INCREF(Py_None); p->_dstPos = ((struct __pyx_obj_4cuda_6cudart_cudaPos *)Py_None); Py_INCREF(Py_None); p->_dstPtr = ((struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *)Py_None); Py_INCREF(Py_None); p->_extent = ((struct __pyx_obj_4cuda_6cudart_cudaExtent *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaMemcpy3DParms(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *p = (struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_17cudaMemcpy3DParms_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaMemcpy3DParms__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); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_cudaMemcpy3DParms(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *p = (struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *)o; 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_6cudart_cudaMemcpy3DParms(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *p = (struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *)o; tmp = ((PyObject*)p->_srcArray); p->_srcArray = ((struct __pyx_obj_4cuda_6cudart_cudaArray_t *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_srcPos); p->_srcPos = ((struct __pyx_obj_4cuda_6cudart_cudaPos *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_srcPtr); p->_srcPtr = ((struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_dstArray); p->_dstArray = ((struct __pyx_obj_4cuda_6cudart_cudaArray_t *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_dstPos); p->_dstPos = ((struct __pyx_obj_4cuda_6cudart_cudaPos *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_dstPtr); p->_dstPtr = ((struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_extent); p->_extent = ((struct __pyx_obj_4cuda_6cudart_cudaExtent *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_17cudaMemcpy3DParms_srcArray(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_8srcArray_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_17cudaMemcpy3DParms_srcArray(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_8srcArray_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_17cudaMemcpy3DParms_srcPos(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_6srcPos_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_17cudaMemcpy3DParms_srcPos(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_6srcPos_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_17cudaMemcpy3DParms_srcPtr(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_6srcPtr_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_17cudaMemcpy3DParms_srcPtr(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_6srcPtr_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_17cudaMemcpy3DParms_dstArray(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_8dstArray_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_17cudaMemcpy3DParms_dstArray(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_8dstArray_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_17cudaMemcpy3DParms_dstPos(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_6dstPos_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_17cudaMemcpy3DParms_dstPos(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_6dstPos_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_17cudaMemcpy3DParms_dstPtr(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_6dstPtr_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_17cudaMemcpy3DParms_dstPtr(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_6dstPtr_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_17cudaMemcpy3DParms_extent(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_6extent_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_17cudaMemcpy3DParms_extent(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_6extent_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_17cudaMemcpy3DParms_kind(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_4kind_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_17cudaMemcpy3DParms_kind(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_4kind_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaMemcpy3DParms[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_17cudaMemcpy3DParms_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_17cudaMemcpy3DParms_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_17cudaMemcpy3DParms_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaMemcpy3DParms[] = { {(char *)"srcArray", __pyx_getprop_4cuda_6cudart_17cudaMemcpy3DParms_srcArray, __pyx_setprop_4cuda_6cudart_17cudaMemcpy3DParms_srcArray, (char *)0, 0}, {(char *)"srcPos", __pyx_getprop_4cuda_6cudart_17cudaMemcpy3DParms_srcPos, __pyx_setprop_4cuda_6cudart_17cudaMemcpy3DParms_srcPos, (char *)0, 0}, {(char *)"srcPtr", __pyx_getprop_4cuda_6cudart_17cudaMemcpy3DParms_srcPtr, __pyx_setprop_4cuda_6cudart_17cudaMemcpy3DParms_srcPtr, (char *)0, 0}, {(char *)"dstArray", __pyx_getprop_4cuda_6cudart_17cudaMemcpy3DParms_dstArray, __pyx_setprop_4cuda_6cudart_17cudaMemcpy3DParms_dstArray, (char *)0, 0}, {(char *)"dstPos", __pyx_getprop_4cuda_6cudart_17cudaMemcpy3DParms_dstPos, __pyx_setprop_4cuda_6cudart_17cudaMemcpy3DParms_dstPos, (char *)0, 0}, {(char *)"dstPtr", __pyx_getprop_4cuda_6cudart_17cudaMemcpy3DParms_dstPtr, __pyx_setprop_4cuda_6cudart_17cudaMemcpy3DParms_dstPtr, (char *)0, 0}, {(char *)"extent", __pyx_getprop_4cuda_6cudart_17cudaMemcpy3DParms_extent, __pyx_setprop_4cuda_6cudart_17cudaMemcpy3DParms_extent, (char *)0, 0}, {(char *)"kind", __pyx_getprop_4cuda_6cudart_17cudaMemcpy3DParms_kind, __pyx_setprop_4cuda_6cudart_17cudaMemcpy3DParms_kind, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaMemcpy3DParms_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaMemcpy3DParms}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaMemcpy3DParms(void_ptr _ptr=0)\n\n CUDA 3D memory copying parameters\n\n Attributes\n ----------\n srcArray : cudaArray_t\n Source memory address\n srcPos : cudaPos\n Source position offset\n srcPtr : cudaPitchedPtr\n Pitched source memory address\n dstArray : cudaArray_t\n Destination memory address\n dstPos : cudaPos\n Destination position offset\n dstPtr : cudaPitchedPtr\n Pitched destination memory address\n extent : cudaExtent\n Requested memory copy size\n kind : cudaMemcpyKind\n Type of transfer\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaMemcpy3DParms}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaMemcpy3DParms}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaMemcpy3DParms}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaMemcpy3DParms}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_17cudaMemcpy3DParms_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaMemcpy3DParms}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaMemcpy3DParms_spec = { "cuda.cudart.cudaMemcpy3DParms", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_cudaMemcpy3DParms_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaMemcpy3DParms = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaMemcpy3DParms", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaMemcpy3DParms, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n CUDA 3D memory copying parameters\n\n Attributes\n ----------\n srcArray : cudaArray_t\n Source memory address\n srcPos : cudaPos\n Source position offset\n srcPtr : cudaPitchedPtr\n Pitched source memory address\n dstArray : cudaArray_t\n Destination memory address\n dstPos : cudaPos\n Destination position offset\n dstPtr : cudaPitchedPtr\n Pitched destination memory address\n extent : cudaExtent\n Requested memory copy size\n kind : cudaMemcpyKind\n Type of transfer\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaMemcpy3DParms, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_cudaMemcpy3DParms, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_cudaMemcpy3DParms, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_17cudaMemcpy3DParms_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaMemcpyNodeParams(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *)o); new((void*)&(p->_cudaMemcpyNodeParams__val)) struct cudaMemcpyNodeParams(); p->_copyParams = ((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaMemcpyNodeParams(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *p = (struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_20cudaMemcpyNodeParams_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaMemcpyNodeParams__val); Py_CLEAR(p->_copyParams); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_cudaMemcpyNodeParams(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *p = (struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *)o; if (p->_copyParams) { e = (*v)(((PyObject *)p->_copyParams), a); if (e) return e; } return 0; } static int __pyx_tp_clear_4cuda_6cudart_cudaMemcpyNodeParams(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *p = (struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *)o; tmp = ((PyObject*)p->_copyParams); p->_copyParams = ((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DParms *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_20cudaMemcpyNodeParams_flags(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_20cudaMemcpyNodeParams_5flags_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_20cudaMemcpyNodeParams_flags(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_20cudaMemcpyNodeParams_5flags_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_20cudaMemcpyNodeParams_reserved(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_20cudaMemcpyNodeParams_8reserved_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_20cudaMemcpyNodeParams_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_20cudaMemcpyNodeParams_8reserved_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_20cudaMemcpyNodeParams_copyParams(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_20cudaMemcpyNodeParams_10copyParams_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_20cudaMemcpyNodeParams_copyParams(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_20cudaMemcpyNodeParams_10copyParams_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_20cudaMemcpyNodeParams_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_20cudaMemcpyNodeParams_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaMemcpyNodeParams[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaMemcpyNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaMemcpyNodeParams_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_20cudaMemcpyNodeParams_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaMemcpyNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaMemcpyNodeParams_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaMemcpyNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaMemcpyNodeParams_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaMemcpyNodeParams[] = { {(char *)"flags", __pyx_getprop_4cuda_6cudart_20cudaMemcpyNodeParams_flags, __pyx_setprop_4cuda_6cudart_20cudaMemcpyNodeParams_flags, (char *)0, 0}, {(char *)"reserved", __pyx_getprop_4cuda_6cudart_20cudaMemcpyNodeParams_reserved, __pyx_setprop_4cuda_6cudart_20cudaMemcpyNodeParams_reserved, (char *)0, 0}, {(char *)"copyParams", __pyx_getprop_4cuda_6cudart_20cudaMemcpyNodeParams_copyParams, __pyx_setprop_4cuda_6cudart_20cudaMemcpyNodeParams_copyParams, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaMemcpyNodeParams_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaMemcpyNodeParams}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_20cudaMemcpyNodeParams_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaMemcpyNodeParams(void_ptr _ptr=0)\n\n Memcpy node parameters\n\n Attributes\n ----------\n flags : int\n Must be zero\n reserved : List[int]\n Must be zero\n copyParams : cudaMemcpy3DParms\n Parameters for the memory copy\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaMemcpyNodeParams}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaMemcpyNodeParams}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaMemcpyNodeParams}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaMemcpyNodeParams}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_20cudaMemcpyNodeParams_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaMemcpyNodeParams}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaMemcpyNodeParams_spec = { "cuda.cudart.cudaMemcpyNodeParams", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_cudaMemcpyNodeParams_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaMemcpyNodeParams = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaMemcpyNodeParams", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaMemcpyNodeParams, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Memcpy node parameters\n\n Attributes\n ----------\n flags : int\n Must be zero\n reserved : List[int]\n Must be zero\n copyParams : cudaMemcpy3DParms\n Parameters for the memory copy\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaMemcpyNodeParams, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_cudaMemcpyNodeParams, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_cudaMemcpyNodeParams, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_20cudaMemcpyNodeParams_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaMemcpy3DPeerParms(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *)o); new((void*)&(p->_cudaMemcpy3DPeerParms__val)) struct cudaMemcpy3DPeerParms(); p->_srcArray = ((struct __pyx_obj_4cuda_6cudart_cudaArray_t *)Py_None); Py_INCREF(Py_None); p->_srcPos = ((struct __pyx_obj_4cuda_6cudart_cudaPos *)Py_None); Py_INCREF(Py_None); p->_srcPtr = ((struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *)Py_None); Py_INCREF(Py_None); p->_dstArray = ((struct __pyx_obj_4cuda_6cudart_cudaArray_t *)Py_None); Py_INCREF(Py_None); p->_dstPos = ((struct __pyx_obj_4cuda_6cudart_cudaPos *)Py_None); Py_INCREF(Py_None); p->_dstPtr = ((struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *)Py_None); Py_INCREF(Py_None); p->_extent = ((struct __pyx_obj_4cuda_6cudart_cudaExtent *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaMemcpy3DPeerParms(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *p = (struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_21cudaMemcpy3DPeerParms_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaMemcpy3DPeerParms__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); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_cudaMemcpy3DPeerParms(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *p = (struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *)o; 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_6cudart_cudaMemcpy3DPeerParms(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *p = (struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms *)o; tmp = ((PyObject*)p->_srcArray); p->_srcArray = ((struct __pyx_obj_4cuda_6cudart_cudaArray_t *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_srcPos); p->_srcPos = ((struct __pyx_obj_4cuda_6cudart_cudaPos *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_srcPtr); p->_srcPtr = ((struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_dstArray); p->_dstArray = ((struct __pyx_obj_4cuda_6cudart_cudaArray_t *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_dstPos); p->_dstPos = ((struct __pyx_obj_4cuda_6cudart_cudaPos *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_dstPtr); p->_dstPtr = ((struct __pyx_obj_4cuda_6cudart_cudaPitchedPtr *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_extent); p->_extent = ((struct __pyx_obj_4cuda_6cudart_cudaExtent *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_21cudaMemcpy3DPeerParms_srcArray(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_8srcArray_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_21cudaMemcpy3DPeerParms_srcArray(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_8srcArray_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_21cudaMemcpy3DPeerParms_srcPos(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_6srcPos_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_21cudaMemcpy3DPeerParms_srcPos(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_6srcPos_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_21cudaMemcpy3DPeerParms_srcPtr(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_6srcPtr_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_21cudaMemcpy3DPeerParms_srcPtr(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_6srcPtr_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_21cudaMemcpy3DPeerParms_srcDevice(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_9srcDevice_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_21cudaMemcpy3DPeerParms_srcDevice(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_9srcDevice_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_21cudaMemcpy3DPeerParms_dstArray(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_8dstArray_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_21cudaMemcpy3DPeerParms_dstArray(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_8dstArray_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_21cudaMemcpy3DPeerParms_dstPos(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_6dstPos_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_21cudaMemcpy3DPeerParms_dstPos(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_6dstPos_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_21cudaMemcpy3DPeerParms_dstPtr(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_6dstPtr_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_21cudaMemcpy3DPeerParms_dstPtr(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_6dstPtr_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_21cudaMemcpy3DPeerParms_dstDevice(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_9dstDevice_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_21cudaMemcpy3DPeerParms_dstDevice(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_9dstDevice_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_21cudaMemcpy3DPeerParms_extent(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_6extent_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_21cudaMemcpy3DPeerParms_extent(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_6extent_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaMemcpy3DPeerParms[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_21cudaMemcpy3DPeerParms_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_21cudaMemcpy3DPeerParms_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_21cudaMemcpy3DPeerParms_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaMemcpy3DPeerParms[] = { {(char *)"srcArray", __pyx_getprop_4cuda_6cudart_21cudaMemcpy3DPeerParms_srcArray, __pyx_setprop_4cuda_6cudart_21cudaMemcpy3DPeerParms_srcArray, (char *)0, 0}, {(char *)"srcPos", __pyx_getprop_4cuda_6cudart_21cudaMemcpy3DPeerParms_srcPos, __pyx_setprop_4cuda_6cudart_21cudaMemcpy3DPeerParms_srcPos, (char *)0, 0}, {(char *)"srcPtr", __pyx_getprop_4cuda_6cudart_21cudaMemcpy3DPeerParms_srcPtr, __pyx_setprop_4cuda_6cudart_21cudaMemcpy3DPeerParms_srcPtr, (char *)0, 0}, {(char *)"srcDevice", __pyx_getprop_4cuda_6cudart_21cudaMemcpy3DPeerParms_srcDevice, __pyx_setprop_4cuda_6cudart_21cudaMemcpy3DPeerParms_srcDevice, (char *)0, 0}, {(char *)"dstArray", __pyx_getprop_4cuda_6cudart_21cudaMemcpy3DPeerParms_dstArray, __pyx_setprop_4cuda_6cudart_21cudaMemcpy3DPeerParms_dstArray, (char *)0, 0}, {(char *)"dstPos", __pyx_getprop_4cuda_6cudart_21cudaMemcpy3DPeerParms_dstPos, __pyx_setprop_4cuda_6cudart_21cudaMemcpy3DPeerParms_dstPos, (char *)0, 0}, {(char *)"dstPtr", __pyx_getprop_4cuda_6cudart_21cudaMemcpy3DPeerParms_dstPtr, __pyx_setprop_4cuda_6cudart_21cudaMemcpy3DPeerParms_dstPtr, (char *)0, 0}, {(char *)"dstDevice", __pyx_getprop_4cuda_6cudart_21cudaMemcpy3DPeerParms_dstDevice, __pyx_setprop_4cuda_6cudart_21cudaMemcpy3DPeerParms_dstDevice, (char *)0, 0}, {(char *)"extent", __pyx_getprop_4cuda_6cudart_21cudaMemcpy3DPeerParms_extent, __pyx_setprop_4cuda_6cudart_21cudaMemcpy3DPeerParms_extent, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaMemcpy3DPeerParms_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaMemcpy3DPeerParms}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaMemcpy3DPeerParms(void_ptr _ptr=0)\n\n CUDA 3D cross-device memory copying parameters\n\n Attributes\n ----------\n srcArray : cudaArray_t\n Source memory address\n srcPos : cudaPos\n Source position offset\n srcPtr : cudaPitchedPtr\n Pitched source memory address\n srcDevice : int\n Source device\n dstArray : cudaArray_t\n Destination memory address\n dstPos : cudaPos\n Destination position offset\n dstPtr : cudaPitchedPtr\n Pitched destination memory address\n dstDevice : int\n Destination device\n extent : cudaExtent\n Requested memory copy size\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaMemcpy3DPeerParms}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaMemcpy3DPeerParms}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaMemcpy3DPeerParms}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaMemcpy3DPeerParms}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_21cudaMemcpy3DPeerParms_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaMemcpy3DPeerParms}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaMemcpy3DPeerParms_spec = { "cuda.cudart.cudaMemcpy3DPeerParms", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_cudaMemcpy3DPeerParms_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaMemcpy3DPeerParms = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaMemcpy3DPeerParms", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaMemcpy3DPeerParms), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaMemcpy3DPeerParms, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n CUDA 3D cross-device memory copying parameters\n\n Attributes\n ----------\n srcArray : cudaArray_t\n Source memory address\n srcPos : cudaPos\n Source position offset\n srcPtr : cudaPitchedPtr\n Pitched source memory address\n srcDevice : int\n Source device\n dstArray : cudaArray_t\n Destination memory address\n dstPos : cudaPos\n Destination position offset\n dstPtr : cudaPitchedPtr\n Pitched destination memory address\n dstDevice : int\n Destination device\n extent : cudaExtent\n Requested memory copy size\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaMemcpy3DPeerParms, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_cudaMemcpy3DPeerParms, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_cudaMemcpy3DPeerParms, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_21cudaMemcpy3DPeerParms_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaMemsetParams(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *)o); new((void*)&(p->_cudaMemsetParams__val)) struct cudaMemsetParams(); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaMemsetParams(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *p = (struct __pyx_obj_4cuda_6cudart_cudaMemsetParams *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_16cudaMemsetParams_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaMemsetParams__val); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_16cudaMemsetParams_dst(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_16cudaMemsetParams_3dst_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_16cudaMemsetParams_dst(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_16cudaMemsetParams_3dst_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_16cudaMemsetParams_pitch(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_16cudaMemsetParams_5pitch_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_16cudaMemsetParams_pitch(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_16cudaMemsetParams_5pitch_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_16cudaMemsetParams_value(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_16cudaMemsetParams_5value_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_16cudaMemsetParams_value(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_16cudaMemsetParams_5value_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_16cudaMemsetParams_elementSize(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_16cudaMemsetParams_11elementSize_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_16cudaMemsetParams_elementSize(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_16cudaMemsetParams_11elementSize_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_16cudaMemsetParams_width(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_16cudaMemsetParams_5width_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_16cudaMemsetParams_width(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_16cudaMemsetParams_5width_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_16cudaMemsetParams_height(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_16cudaMemsetParams_6height_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_16cudaMemsetParams_height(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_16cudaMemsetParams_6height_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_16cudaMemsetParams_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_16cudaMemsetParams_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaMemsetParams[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_16cudaMemsetParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_16cudaMemsetParams_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_16cudaMemsetParams_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_16cudaMemsetParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_16cudaMemsetParams_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_16cudaMemsetParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_16cudaMemsetParams_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaMemsetParams[] = { {(char *)"dst", __pyx_getprop_4cuda_6cudart_16cudaMemsetParams_dst, __pyx_setprop_4cuda_6cudart_16cudaMemsetParams_dst, (char *)0, 0}, {(char *)"pitch", __pyx_getprop_4cuda_6cudart_16cudaMemsetParams_pitch, __pyx_setprop_4cuda_6cudart_16cudaMemsetParams_pitch, (char *)0, 0}, {(char *)"value", __pyx_getprop_4cuda_6cudart_16cudaMemsetParams_value, __pyx_setprop_4cuda_6cudart_16cudaMemsetParams_value, (char *)0, 0}, {(char *)"elementSize", __pyx_getprop_4cuda_6cudart_16cudaMemsetParams_elementSize, __pyx_setprop_4cuda_6cudart_16cudaMemsetParams_elementSize, (char *)0, 0}, {(char *)"width", __pyx_getprop_4cuda_6cudart_16cudaMemsetParams_width, __pyx_setprop_4cuda_6cudart_16cudaMemsetParams_width, (char *)0, 0}, {(char *)"height", __pyx_getprop_4cuda_6cudart_16cudaMemsetParams_height, __pyx_setprop_4cuda_6cudart_16cudaMemsetParams_height, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaMemsetParams_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaMemsetParams}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_16cudaMemsetParams_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaMemsetParams(void_ptr _ptr=0)\n\n CUDA Memset node parameters\n\n Attributes\n ----------\n dst : Any\n Destination device pointer\n pitch : size_t\n Pitch of destination device pointer. Unused if height is 1\n value : unsigned int\n Value to be set\n elementSize : unsigned int\n Size of each element in bytes. Must be 1, 2, or 4.\n width : size_t\n Width of the row in elements\n height : size_t\n Number of rows\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaMemsetParams}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaMemsetParams}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_16cudaMemsetParams_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaMemsetParams}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaMemsetParams_spec = { "cuda.cudart.cudaMemsetParams", sizeof(struct __pyx_obj_4cuda_6cudart_cudaMemsetParams), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaMemsetParams_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaMemsetParams = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaMemsetParams", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaMemsetParams), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaMemsetParams, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n CUDA Memset node parameters\n\n Attributes\n ----------\n dst : Any\n Destination device pointer\n pitch : size_t\n Pitch of destination device pointer. Unused if height is 1\n value : unsigned int\n Value to be set\n elementSize : unsigned int\n Size of each element in bytes. Must be 1, 2, or 4.\n width : size_t\n Width of the row in elements\n height : size_t\n Number of rows\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_6cudart_cudaMemsetParams, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_16cudaMemsetParams_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaMemsetParamsV2(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *)o); new((void*)&(p->_cudaMemsetParamsV2__val)) struct cudaMemsetParamsV2(); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaMemsetParamsV2(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *p = (struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_cudaMemsetParamsV2) { 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_6cudart_18cudaMemsetParamsV2_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaMemsetParamsV2__val); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_18cudaMemsetParamsV2_dst(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_3dst_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_18cudaMemsetParamsV2_dst(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_3dst_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_18cudaMemsetParamsV2_pitch(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_5pitch_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_18cudaMemsetParamsV2_pitch(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_5pitch_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_18cudaMemsetParamsV2_value(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_5value_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_18cudaMemsetParamsV2_value(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_5value_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_18cudaMemsetParamsV2_elementSize(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_11elementSize_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_18cudaMemsetParamsV2_elementSize(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_11elementSize_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_18cudaMemsetParamsV2_width(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_5width_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_18cudaMemsetParamsV2_width(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_5width_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_18cudaMemsetParamsV2_height(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_6height_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_18cudaMemsetParamsV2_height(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_6height_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaMemsetParamsV2[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_18cudaMemsetParamsV2_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_18cudaMemsetParamsV2_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_18cudaMemsetParamsV2_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaMemsetParamsV2[] = { {(char *)"dst", __pyx_getprop_4cuda_6cudart_18cudaMemsetParamsV2_dst, __pyx_setprop_4cuda_6cudart_18cudaMemsetParamsV2_dst, (char *)0, 0}, {(char *)"pitch", __pyx_getprop_4cuda_6cudart_18cudaMemsetParamsV2_pitch, __pyx_setprop_4cuda_6cudart_18cudaMemsetParamsV2_pitch, (char *)0, 0}, {(char *)"value", __pyx_getprop_4cuda_6cudart_18cudaMemsetParamsV2_value, __pyx_setprop_4cuda_6cudart_18cudaMemsetParamsV2_value, (char *)0, 0}, {(char *)"elementSize", __pyx_getprop_4cuda_6cudart_18cudaMemsetParamsV2_elementSize, __pyx_setprop_4cuda_6cudart_18cudaMemsetParamsV2_elementSize, (char *)0, 0}, {(char *)"width", __pyx_getprop_4cuda_6cudart_18cudaMemsetParamsV2_width, __pyx_setprop_4cuda_6cudart_18cudaMemsetParamsV2_width, (char *)0, 0}, {(char *)"height", __pyx_getprop_4cuda_6cudart_18cudaMemsetParamsV2_height, __pyx_setprop_4cuda_6cudart_18cudaMemsetParamsV2_height, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaMemsetParamsV2_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaMemsetParamsV2}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaMemsetParamsV2(void_ptr _ptr=0)\n\n CUDA Memset node parameters\n\n Attributes\n ----------\n dst : Any\n Destination device pointer\n pitch : size_t\n Pitch of destination device pointer. Unused if height is 1\n value : unsigned int\n Value to be set\n elementSize : unsigned int\n Size of each element in bytes. Must be 1, 2, or 4.\n width : size_t\n Width of the row in elements\n height : size_t\n Number of rows\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaMemsetParamsV2}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaMemsetParamsV2}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_18cudaMemsetParamsV2_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaMemsetParamsV2}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaMemsetParamsV2_spec = { "cuda.cudart.cudaMemsetParamsV2", sizeof(struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaMemsetParamsV2_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaMemsetParamsV2 = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaMemsetParamsV2", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaMemsetParamsV2, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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, /*tp_flags*/ PyDoc_STR("cudaMemsetParamsV2(void_ptr _ptr=0)\n\n CUDA Memset node parameters\n\n Attributes\n ----------\n dst : Any\n Destination device pointer\n pitch : size_t\n Pitch of destination device pointer. Unused if height is 1\n value : unsigned int\n Value to be set\n elementSize : unsigned int\n Size of each element in bytes. Must be 1, 2, or 4.\n width : size_t\n Width of the row in elements\n height : size_t\n Number of rows\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_6cudart_cudaMemsetParamsV2, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_18cudaMemsetParamsV2_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaAccessPolicyWindow(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *)o); new((void*)&(p->_cudaAccessPolicyWindow__val)) struct cudaAccessPolicyWindow(); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaAccessPolicyWindow(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *p = (struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_22cudaAccessPolicyWindow_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaAccessPolicyWindow__val); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_22cudaAccessPolicyWindow_base_ptr(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_22cudaAccessPolicyWindow_8base_ptr_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_22cudaAccessPolicyWindow_base_ptr(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_22cudaAccessPolicyWindow_8base_ptr_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_22cudaAccessPolicyWindow_num_bytes(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_22cudaAccessPolicyWindow_9num_bytes_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_22cudaAccessPolicyWindow_num_bytes(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_22cudaAccessPolicyWindow_9num_bytes_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_22cudaAccessPolicyWindow_hitRatio(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_22cudaAccessPolicyWindow_8hitRatio_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_22cudaAccessPolicyWindow_hitRatio(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_22cudaAccessPolicyWindow_8hitRatio_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_22cudaAccessPolicyWindow_hitProp(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_22cudaAccessPolicyWindow_7hitProp_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_22cudaAccessPolicyWindow_hitProp(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_22cudaAccessPolicyWindow_7hitProp_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_22cudaAccessPolicyWindow_missProp(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_22cudaAccessPolicyWindow_8missProp_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_22cudaAccessPolicyWindow_missProp(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_22cudaAccessPolicyWindow_8missProp_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_22cudaAccessPolicyWindow_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_22cudaAccessPolicyWindow_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaAccessPolicyWindow[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_22cudaAccessPolicyWindow_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_22cudaAccessPolicyWindow_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_22cudaAccessPolicyWindow_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_22cudaAccessPolicyWindow_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_22cudaAccessPolicyWindow_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_22cudaAccessPolicyWindow_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_22cudaAccessPolicyWindow_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaAccessPolicyWindow[] = { {(char *)"base_ptr", __pyx_getprop_4cuda_6cudart_22cudaAccessPolicyWindow_base_ptr, __pyx_setprop_4cuda_6cudart_22cudaAccessPolicyWindow_base_ptr, (char *)0, 0}, {(char *)"num_bytes", __pyx_getprop_4cuda_6cudart_22cudaAccessPolicyWindow_num_bytes, __pyx_setprop_4cuda_6cudart_22cudaAccessPolicyWindow_num_bytes, (char *)0, 0}, {(char *)"hitRatio", __pyx_getprop_4cuda_6cudart_22cudaAccessPolicyWindow_hitRatio, __pyx_setprop_4cuda_6cudart_22cudaAccessPolicyWindow_hitRatio, (char *)0, 0}, {(char *)"hitProp", __pyx_getprop_4cuda_6cudart_22cudaAccessPolicyWindow_hitProp, __pyx_setprop_4cuda_6cudart_22cudaAccessPolicyWindow_hitProp, (char *)0, 0}, {(char *)"missProp", __pyx_getprop_4cuda_6cudart_22cudaAccessPolicyWindow_missProp, __pyx_setprop_4cuda_6cudart_22cudaAccessPolicyWindow_missProp, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaAccessPolicyWindow_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaAccessPolicyWindow}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_22cudaAccessPolicyWindow_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaAccessPolicyWindow(void_ptr _ptr=0)\n\n Specifies an access policy for a window, a contiguous extent of\n memory beginning at base_ptr and ending at base_ptr + num_bytes.\n Partition into many segments and assign segments such that. sum of\n \"hit segments\" / window == approx. ratio. sum of \"miss segments\" /\n window == approx 1-ratio. Segments and ratio specifications are\n fitted to the capabilities of the architecture. Accesses in a hit\n segment apply the hitProp access policy. Accesses in a miss segment\n apply the missProp access policy.\n\n Attributes\n ----------\n base_ptr : Any\n Starting address of the access policy window. CUDA driver may align\n it.\n num_bytes : size_t\n Size in bytes of the window policy. CUDA driver may restrict the\n maximum size and alignment.\n hitRatio : float\n hitRatio specifies percentage of lines assigned hitProp, rest are\n assigned missProp.\n hitProp : cudaAccessProperty\n ::CUaccessProperty set for hit.\n missProp : cudaAccessProperty\n ::CUaccessProperty set for miss. Must be either NORMAL or\n STREAMING.\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaAccessPolicyWindow}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaAccessPolicyWindow}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_22cudaAccessPolicyWindow_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaAccessPolicyWindow}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaAccessPolicyWindow_spec = { "cuda.cudart.cudaAccessPolicyWindow", sizeof(struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaAccessPolicyWindow_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaAccessPolicyWindow = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaAccessPolicyWindow", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaAccessPolicyWindow, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Specifies an access policy for a window, a contiguous extent of\n memory beginning at base_ptr and ending at base_ptr + num_bytes.\n Partition into many segments and assign segments such that. sum of\n \"hit segments\" / window == approx. ratio. sum of \"miss segments\" /\n window == approx 1-ratio. Segments and ratio specifications are\n fitted to the capabilities of the architecture. Accesses in a hit\n segment apply the hitProp access policy. Accesses in a miss segment\n apply the missProp access policy.\n\n Attributes\n ----------\n base_ptr : Any\n Starting address of the access policy window. CUDA driver may align\n it.\n num_bytes : size_t\n Size in bytes of the window policy. CUDA driver may restrict the\n maximum size and alignment.\n hitRatio : float\n hitRatio specifies percentage of lines assigned hitProp, rest are\n assigned missProp.\n hitProp : cudaAccessProperty\n ::CUaccessProperty set for hit.\n missProp : cudaAccessProperty\n ::CUaccessProperty set for miss. Must be either NORMAL or\n STREAMING.\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_6cudart_cudaAccessPolicyWindow, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_22cudaAccessPolicyWindow_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaHostNodeParams(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *)o); new((void*)&(p->_cudaHostNodeParams__val)) struct cudaHostNodeParams(); p->_fn = ((struct __pyx_obj_4cuda_6cudart_cudaHostFn_t *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaHostNodeParams(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *p = (struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_18cudaHostNodeParams_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaHostNodeParams__val); Py_CLEAR(p->_fn); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_cudaHostNodeParams(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *p = (struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *)o; if (p->_fn) { e = (*v)(((PyObject *)p->_fn), a); if (e) return e; } return 0; } static int __pyx_tp_clear_4cuda_6cudart_cudaHostNodeParams(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *p = (struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams *)o; tmp = ((PyObject*)p->_fn); p->_fn = ((struct __pyx_obj_4cuda_6cudart_cudaHostFn_t *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_18cudaHostNodeParams_fn(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_18cudaHostNodeParams_2fn_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_18cudaHostNodeParams_fn(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_18cudaHostNodeParams_2fn_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_18cudaHostNodeParams_userData(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_18cudaHostNodeParams_8userData_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_18cudaHostNodeParams_userData(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_18cudaHostNodeParams_8userData_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_18cudaHostNodeParams_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_18cudaHostNodeParams_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaHostNodeParams[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_18cudaHostNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_18cudaHostNodeParams_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_18cudaHostNodeParams_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_18cudaHostNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_18cudaHostNodeParams_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_18cudaHostNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_18cudaHostNodeParams_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaHostNodeParams[] = { {(char *)"fn", __pyx_getprop_4cuda_6cudart_18cudaHostNodeParams_fn, __pyx_setprop_4cuda_6cudart_18cudaHostNodeParams_fn, (char *)0, 0}, {(char *)"userData", __pyx_getprop_4cuda_6cudart_18cudaHostNodeParams_userData, __pyx_setprop_4cuda_6cudart_18cudaHostNodeParams_userData, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaHostNodeParams_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaHostNodeParams}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_18cudaHostNodeParams_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaHostNodeParams(void_ptr _ptr=0)\n\n CUDA host node parameters\n\n Attributes\n ----------\n fn : cudaHostFn_t\n The function to call when the node executes\n userData : Any\n Argument to pass to the function\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaHostNodeParams}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaHostNodeParams}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaHostNodeParams}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaHostNodeParams}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_18cudaHostNodeParams_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaHostNodeParams}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaHostNodeParams_spec = { "cuda.cudart.cudaHostNodeParams", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_cudaHostNodeParams_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaHostNodeParams = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaHostNodeParams", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaHostNodeParams), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaHostNodeParams, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n CUDA host node parameters\n\n Attributes\n ----------\n fn : cudaHostFn_t\n The function to call when the node executes\n userData : Any\n Argument to pass to the function\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaHostNodeParams, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_cudaHostNodeParams, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_cudaHostNodeParams, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_18cudaHostNodeParams_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaHostNodeParamsV2(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2 *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2 *)o); new((void*)&(p->_cudaHostNodeParamsV2__val)) struct cudaHostNodeParamsV2(); p->_fn = ((struct __pyx_obj_4cuda_6cudart_cudaHostFn_t *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaHostNodeParamsV2(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2 *p = (struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2 *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_20cudaHostNodeParamsV2_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaHostNodeParamsV2__val); Py_CLEAR(p->_fn); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_cudaHostNodeParamsV2(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2 *p = (struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2 *)o; if (p->_fn) { e = (*v)(((PyObject *)p->_fn), a); if (e) return e; } return 0; } static int __pyx_tp_clear_4cuda_6cudart_cudaHostNodeParamsV2(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2 *p = (struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2 *)o; tmp = ((PyObject*)p->_fn); p->_fn = ((struct __pyx_obj_4cuda_6cudart_cudaHostFn_t *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_20cudaHostNodeParamsV2_fn(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_20cudaHostNodeParamsV2_2fn_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_20cudaHostNodeParamsV2_fn(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_20cudaHostNodeParamsV2_2fn_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_20cudaHostNodeParamsV2_userData(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_20cudaHostNodeParamsV2_8userData_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_20cudaHostNodeParamsV2_userData(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_20cudaHostNodeParamsV2_8userData_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_20cudaHostNodeParamsV2_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_20cudaHostNodeParamsV2_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaHostNodeParamsV2[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaHostNodeParamsV2_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaHostNodeParamsV2_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_20cudaHostNodeParamsV2_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaHostNodeParamsV2_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaHostNodeParamsV2_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaHostNodeParamsV2_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaHostNodeParamsV2_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaHostNodeParamsV2[] = { {(char *)"fn", __pyx_getprop_4cuda_6cudart_20cudaHostNodeParamsV2_fn, __pyx_setprop_4cuda_6cudart_20cudaHostNodeParamsV2_fn, (char *)0, 0}, {(char *)"userData", __pyx_getprop_4cuda_6cudart_20cudaHostNodeParamsV2_userData, __pyx_setprop_4cuda_6cudart_20cudaHostNodeParamsV2_userData, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaHostNodeParamsV2_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaHostNodeParamsV2}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_20cudaHostNodeParamsV2_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaHostNodeParamsV2(void_ptr _ptr=0)\n\n CUDA host node parameters\n\n Attributes\n ----------\n fn : cudaHostFn_t\n The function to call when the node executes\n userData : Any\n Argument to pass to the function\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaHostNodeParamsV2}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaHostNodeParamsV2}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaHostNodeParamsV2}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaHostNodeParamsV2}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_20cudaHostNodeParamsV2_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaHostNodeParamsV2}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaHostNodeParamsV2_spec = { "cuda.cudart.cudaHostNodeParamsV2", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_cudaHostNodeParamsV2_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaHostNodeParamsV2 = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaHostNodeParamsV2", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaHostNodeParamsV2, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n CUDA host node parameters\n\n Attributes\n ----------\n fn : cudaHostFn_t\n The function to call when the node executes\n userData : Any\n Argument to pass to the function\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaHostNodeParamsV2, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_cudaHostNodeParamsV2, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_cudaHostNodeParamsV2, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_20cudaHostNodeParamsV2_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_anon_struct1(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_anon_struct1 *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_anon_struct1 *)o); p->_array = ((struct __pyx_obj_4cuda_6cudart_cudaArray_t *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_anon_struct1(PyObject *o) { struct __pyx_obj_4cuda_6cudart_anon_struct1 *p = (struct __pyx_obj_4cuda_6cudart_anon_struct1 *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_12anon_struct1_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } Py_CLEAR(p->_array); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_anon_struct1(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_anon_struct1 *p = (struct __pyx_obj_4cuda_6cudart_anon_struct1 *)o; if (p->_array) { e = (*v)(((PyObject *)p->_array), a); if (e) return e; } return 0; } static int __pyx_tp_clear_4cuda_6cudart_anon_struct1(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_anon_struct1 *p = (struct __pyx_obj_4cuda_6cudart_anon_struct1 *)o; tmp = ((PyObject*)p->_array); p->_array = ((struct __pyx_obj_4cuda_6cudart_cudaArray_t *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_12anon_struct1_array(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_12anon_struct1_5array_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_12anon_struct1_array(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_12anon_struct1_5array_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_12anon_struct1_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_12anon_struct1_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_anon_struct1[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct1_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct1_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_12anon_struct1_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct1_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct1_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct1_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct1_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_anon_struct1[] = { {(char *)"array", __pyx_getprop_4cuda_6cudart_12anon_struct1_array, __pyx_setprop_4cuda_6cudart_12anon_struct1_array, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_anon_struct1_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_anon_struct1}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_12anon_struct1_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("anon_struct1(void_ptr _ptr)\n\n Attributes\n ----------\n array : cudaArray_t\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_anon_struct1}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_anon_struct1}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_anon_struct1}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_anon_struct1}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_12anon_struct1_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_anon_struct1}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_anon_struct1_spec = { "cuda.cudart.anon_struct1", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_anon_struct1_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_anon_struct1 = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""anon_struct1", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_anon_struct1), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_anon_struct1, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Attributes\n ----------\n array : cudaArray_t\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_anon_struct1, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_anon_struct1, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_anon_struct1, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_12anon_struct1_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_anon_struct2(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_anon_struct2 *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_anon_struct2 *)o); p->_mipmap = ((struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_t *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_anon_struct2(PyObject *o) { struct __pyx_obj_4cuda_6cudart_anon_struct2 *p = (struct __pyx_obj_4cuda_6cudart_anon_struct2 *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_12anon_struct2_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } Py_CLEAR(p->_mipmap); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_anon_struct2(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_anon_struct2 *p = (struct __pyx_obj_4cuda_6cudart_anon_struct2 *)o; if (p->_mipmap) { e = (*v)(((PyObject *)p->_mipmap), a); if (e) return e; } return 0; } static int __pyx_tp_clear_4cuda_6cudart_anon_struct2(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_anon_struct2 *p = (struct __pyx_obj_4cuda_6cudart_anon_struct2 *)o; tmp = ((PyObject*)p->_mipmap); p->_mipmap = ((struct __pyx_obj_4cuda_6cudart_cudaMipmappedArray_t *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_12anon_struct2_mipmap(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_12anon_struct2_6mipmap_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_12anon_struct2_mipmap(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_12anon_struct2_6mipmap_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_12anon_struct2_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_12anon_struct2_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_anon_struct2[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct2_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct2_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_12anon_struct2_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct2_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct2_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct2_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct2_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_anon_struct2[] = { {(char *)"mipmap", __pyx_getprop_4cuda_6cudart_12anon_struct2_mipmap, __pyx_setprop_4cuda_6cudart_12anon_struct2_mipmap, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_anon_struct2_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_anon_struct2}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_12anon_struct2_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("anon_struct2(void_ptr _ptr)\n\n Attributes\n ----------\n mipmap : cudaMipmappedArray_t\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_anon_struct2}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_anon_struct2}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_anon_struct2}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_anon_struct2}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_12anon_struct2_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_anon_struct2}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_anon_struct2_spec = { "cuda.cudart.anon_struct2", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_anon_struct2_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_anon_struct2 = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""anon_struct2", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_anon_struct2), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_anon_struct2, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Attributes\n ----------\n mipmap : cudaMipmappedArray_t\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_anon_struct2, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_anon_struct2, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_anon_struct2, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_12anon_struct2_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_anon_struct3(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_anon_struct3 *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_anon_struct3 *)o); p->_desc = ((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_anon_struct3(PyObject *o) { struct __pyx_obj_4cuda_6cudart_anon_struct3 *p = (struct __pyx_obj_4cuda_6cudart_anon_struct3 *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_12anon_struct3_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } Py_CLEAR(p->_desc); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_anon_struct3(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_anon_struct3 *p = (struct __pyx_obj_4cuda_6cudart_anon_struct3 *)o; if (p->_desc) { e = (*v)(((PyObject *)p->_desc), a); if (e) return e; } return 0; } static int __pyx_tp_clear_4cuda_6cudart_anon_struct3(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_anon_struct3 *p = (struct __pyx_obj_4cuda_6cudart_anon_struct3 *)o; tmp = ((PyObject*)p->_desc); p->_desc = ((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_12anon_struct3_devPtr(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_12anon_struct3_6devPtr_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_12anon_struct3_devPtr(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_12anon_struct3_6devPtr_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_12anon_struct3_desc(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_12anon_struct3_4desc_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_12anon_struct3_desc(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_12anon_struct3_4desc_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_12anon_struct3_sizeInBytes(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_12anon_struct3_11sizeInBytes_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_12anon_struct3_sizeInBytes(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_12anon_struct3_11sizeInBytes_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_12anon_struct3_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_12anon_struct3_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_anon_struct3[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct3_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct3_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_12anon_struct3_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct3_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct3_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct3_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct3_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_anon_struct3[] = { {(char *)"devPtr", __pyx_getprop_4cuda_6cudart_12anon_struct3_devPtr, __pyx_setprop_4cuda_6cudart_12anon_struct3_devPtr, (char *)0, 0}, {(char *)"desc", __pyx_getprop_4cuda_6cudart_12anon_struct3_desc, __pyx_setprop_4cuda_6cudart_12anon_struct3_desc, (char *)0, 0}, {(char *)"sizeInBytes", __pyx_getprop_4cuda_6cudart_12anon_struct3_sizeInBytes, __pyx_setprop_4cuda_6cudart_12anon_struct3_sizeInBytes, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_anon_struct3_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_anon_struct3}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_12anon_struct3_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("anon_struct3(void_ptr _ptr)\n\n Attributes\n ----------\n devPtr : Any\n\n desc : cudaChannelFormatDesc\n\n sizeInBytes : size_t\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_anon_struct3}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_anon_struct3}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_anon_struct3}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_anon_struct3}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_12anon_struct3_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_anon_struct3}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_anon_struct3_spec = { "cuda.cudart.anon_struct3", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_anon_struct3_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_anon_struct3 = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""anon_struct3", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_anon_struct3), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_anon_struct3, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Attributes\n ----------\n devPtr : Any\n\n desc : cudaChannelFormatDesc\n\n sizeInBytes : size_t\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_anon_struct3, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_anon_struct3, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_anon_struct3, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_12anon_struct3_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_anon_struct4(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_anon_struct4 *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_anon_struct4 *)o); p->_desc = ((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_anon_struct4(PyObject *o) { struct __pyx_obj_4cuda_6cudart_anon_struct4 *p = (struct __pyx_obj_4cuda_6cudart_anon_struct4 *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_12anon_struct4_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } Py_CLEAR(p->_desc); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_anon_struct4(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_anon_struct4 *p = (struct __pyx_obj_4cuda_6cudart_anon_struct4 *)o; if (p->_desc) { e = (*v)(((PyObject *)p->_desc), a); if (e) return e; } return 0; } static int __pyx_tp_clear_4cuda_6cudart_anon_struct4(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_anon_struct4 *p = (struct __pyx_obj_4cuda_6cudart_anon_struct4 *)o; tmp = ((PyObject*)p->_desc); p->_desc = ((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_12anon_struct4_devPtr(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_12anon_struct4_6devPtr_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_12anon_struct4_devPtr(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_12anon_struct4_6devPtr_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_12anon_struct4_desc(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_12anon_struct4_4desc_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_12anon_struct4_desc(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_12anon_struct4_4desc_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_12anon_struct4_width(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_12anon_struct4_5width_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_12anon_struct4_width(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_12anon_struct4_5width_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_12anon_struct4_height(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_12anon_struct4_6height_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_12anon_struct4_height(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_12anon_struct4_6height_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_12anon_struct4_pitchInBytes(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_12anon_struct4_12pitchInBytes_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_12anon_struct4_pitchInBytes(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_12anon_struct4_12pitchInBytes_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_12anon_struct4_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_12anon_struct4_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_anon_struct4[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct4_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct4_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_12anon_struct4_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct4_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct4_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct4_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct4_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_anon_struct4[] = { {(char *)"devPtr", __pyx_getprop_4cuda_6cudart_12anon_struct4_devPtr, __pyx_setprop_4cuda_6cudart_12anon_struct4_devPtr, (char *)0, 0}, {(char *)"desc", __pyx_getprop_4cuda_6cudart_12anon_struct4_desc, __pyx_setprop_4cuda_6cudart_12anon_struct4_desc, (char *)0, 0}, {(char *)"width", __pyx_getprop_4cuda_6cudart_12anon_struct4_width, __pyx_setprop_4cuda_6cudart_12anon_struct4_width, (char *)0, 0}, {(char *)"height", __pyx_getprop_4cuda_6cudart_12anon_struct4_height, __pyx_setprop_4cuda_6cudart_12anon_struct4_height, (char *)0, 0}, {(char *)"pitchInBytes", __pyx_getprop_4cuda_6cudart_12anon_struct4_pitchInBytes, __pyx_setprop_4cuda_6cudart_12anon_struct4_pitchInBytes, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_anon_struct4_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_anon_struct4}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_12anon_struct4_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("anon_struct4(void_ptr _ptr)\n\n Attributes\n ----------\n devPtr : Any\n\n desc : cudaChannelFormatDesc\n\n width : size_t\n\n height : size_t\n\n pitchInBytes : size_t\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_anon_struct4}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_anon_struct4}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_anon_struct4}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_anon_struct4}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_12anon_struct4_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_anon_struct4}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_anon_struct4_spec = { "cuda.cudart.anon_struct4", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_anon_struct4_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_anon_struct4 = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""anon_struct4", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_anon_struct4), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_anon_struct4, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Attributes\n ----------\n devPtr : Any\n\n desc : cudaChannelFormatDesc\n\n width : size_t\n\n height : size_t\n\n pitchInBytes : size_t\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_anon_struct4, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_anon_struct4, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_anon_struct4, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_12anon_struct4_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_anon_union0(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_anon_union0 *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_anon_union0 *)o); p->_array = ((struct __pyx_obj_4cuda_6cudart_anon_struct1 *)Py_None); Py_INCREF(Py_None); p->_mipmap = ((struct __pyx_obj_4cuda_6cudart_anon_struct2 *)Py_None); Py_INCREF(Py_None); p->_linear = ((struct __pyx_obj_4cuda_6cudart_anon_struct3 *)Py_None); Py_INCREF(Py_None); p->_pitch2D = ((struct __pyx_obj_4cuda_6cudart_anon_struct4 *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_anon_union0(PyObject *o) { struct __pyx_obj_4cuda_6cudart_anon_union0 *p = (struct __pyx_obj_4cuda_6cudart_anon_union0 *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_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); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_anon_union0(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_anon_union0 *p = (struct __pyx_obj_4cuda_6cudart_anon_union0 *)o; 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; } return 0; } static int __pyx_tp_clear_4cuda_6cudart_anon_union0(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_anon_union0 *p = (struct __pyx_obj_4cuda_6cudart_anon_union0 *)o; tmp = ((PyObject*)p->_array); p->_array = ((struct __pyx_obj_4cuda_6cudart_anon_struct1 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_mipmap); p->_mipmap = ((struct __pyx_obj_4cuda_6cudart_anon_struct2 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_linear); p->_linear = ((struct __pyx_obj_4cuda_6cudart_anon_struct3 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_pitch2D); p->_pitch2D = ((struct __pyx_obj_4cuda_6cudart_anon_struct4 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_11anon_union0_array(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_11anon_union0_5array_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_11anon_union0_array(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_11anon_union0_5array_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_11anon_union0_mipmap(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_11anon_union0_6mipmap_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_11anon_union0_mipmap(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_11anon_union0_6mipmap_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_11anon_union0_linear(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_11anon_union0_6linear_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_11anon_union0_linear(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_11anon_union0_6linear_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_11anon_union0_pitch2D(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_11anon_union0_7pitch2D_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_11anon_union0_pitch2D(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_11anon_union0_7pitch2D_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_11anon_union0_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_11anon_union0_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_anon_union0[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union0_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union0_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_11anon_union0_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union0_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union0_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union0_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union0_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_anon_union0[] = { {(char *)"array", __pyx_getprop_4cuda_6cudart_11anon_union0_array, __pyx_setprop_4cuda_6cudart_11anon_union0_array, (char *)0, 0}, {(char *)"mipmap", __pyx_getprop_4cuda_6cudart_11anon_union0_mipmap, __pyx_setprop_4cuda_6cudart_11anon_union0_mipmap, (char *)0, 0}, {(char *)"linear", __pyx_getprop_4cuda_6cudart_11anon_union0_linear, __pyx_setprop_4cuda_6cudart_11anon_union0_linear, (char *)0, 0}, {(char *)"pitch2D", __pyx_getprop_4cuda_6cudart_11anon_union0_pitch2D, __pyx_setprop_4cuda_6cudart_11anon_union0_pitch2D, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_anon_union0_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_anon_union0}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_11anon_union0_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("anon_union0(void_ptr _ptr)\n\n Attributes\n ----------\n array : anon_struct1\n\n mipmap : anon_struct2\n\n linear : anon_struct3\n\n pitch2D : anon_struct4\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_anon_union0}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_anon_union0}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_anon_union0}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_anon_union0}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_11anon_union0_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_anon_union0}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_anon_union0_spec = { "cuda.cudart.anon_union0", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_anon_union0_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_anon_union0 = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""anon_union0", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_anon_union0), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_anon_union0, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Attributes\n ----------\n array : anon_struct1\n\n mipmap : anon_struct2\n\n linear : anon_struct3\n\n pitch2D : anon_struct4\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_anon_union0, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_anon_union0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_anon_union0, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_11anon_union0_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaResourceDesc(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *)o); p->_res = ((struct __pyx_obj_4cuda_6cudart_anon_union0 *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaResourceDesc(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *p = (struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_16cudaResourceDesc_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } Py_CLEAR(p->_res); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_cudaResourceDesc(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *p = (struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *)o; if (p->_res) { e = (*v)(((PyObject *)p->_res), a); if (e) return e; } return 0; } static int __pyx_tp_clear_4cuda_6cudart_cudaResourceDesc(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *p = (struct __pyx_obj_4cuda_6cudart_cudaResourceDesc *)o; tmp = ((PyObject*)p->_res); p->_res = ((struct __pyx_obj_4cuda_6cudart_anon_union0 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_16cudaResourceDesc_resType(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_16cudaResourceDesc_7resType_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_16cudaResourceDesc_resType(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_16cudaResourceDesc_7resType_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_16cudaResourceDesc_res(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_16cudaResourceDesc_3res_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_16cudaResourceDesc_res(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_16cudaResourceDesc_3res_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_16cudaResourceDesc_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_16cudaResourceDesc_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaResourceDesc[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_16cudaResourceDesc_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_16cudaResourceDesc_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_16cudaResourceDesc_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_16cudaResourceDesc_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_16cudaResourceDesc_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_16cudaResourceDesc_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_16cudaResourceDesc_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaResourceDesc[] = { {(char *)"resType", __pyx_getprop_4cuda_6cudart_16cudaResourceDesc_resType, __pyx_setprop_4cuda_6cudart_16cudaResourceDesc_resType, (char *)0, 0}, {(char *)"res", __pyx_getprop_4cuda_6cudart_16cudaResourceDesc_res, __pyx_setprop_4cuda_6cudart_16cudaResourceDesc_res, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaResourceDesc_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaResourceDesc}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_16cudaResourceDesc_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaResourceDesc(void_ptr _ptr=0)\n\n CUDA resource descriptor\n\n Attributes\n ----------\n resType : cudaResourceType\n Resource type\n res : anon_union0\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaResourceDesc}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaResourceDesc}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaResourceDesc}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaResourceDesc}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_16cudaResourceDesc_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaResourceDesc}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaResourceDesc_spec = { "cuda.cudart.cudaResourceDesc", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_cudaResourceDesc_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaResourceDesc = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaResourceDesc", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaResourceDesc), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaResourceDesc, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n CUDA resource descriptor\n\n Attributes\n ----------\n resType : cudaResourceType\n Resource type\n res : anon_union0\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaResourceDesc, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_cudaResourceDesc, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_cudaResourceDesc, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_16cudaResourceDesc_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaResourceViewDesc(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *)o); new((void*)&(p->_cudaResourceViewDesc__val)) struct cudaResourceViewDesc(); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaResourceViewDesc(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *p = (struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_20cudaResourceViewDesc_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaResourceViewDesc__val); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_20cudaResourceViewDesc_format(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_6format_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_20cudaResourceViewDesc_format(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_6format_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_20cudaResourceViewDesc_width(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_5width_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_20cudaResourceViewDesc_width(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_5width_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_20cudaResourceViewDesc_height(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_6height_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_20cudaResourceViewDesc_height(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_6height_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_20cudaResourceViewDesc_depth(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_5depth_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_20cudaResourceViewDesc_depth(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_5depth_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_20cudaResourceViewDesc_firstMipmapLevel(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_16firstMipmapLevel_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_20cudaResourceViewDesc_firstMipmapLevel(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_16firstMipmapLevel_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_20cudaResourceViewDesc_lastMipmapLevel(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_15lastMipmapLevel_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_20cudaResourceViewDesc_lastMipmapLevel(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_15lastMipmapLevel_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_20cudaResourceViewDesc_firstLayer(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_10firstLayer_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_20cudaResourceViewDesc_firstLayer(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_10firstLayer_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_20cudaResourceViewDesc_lastLayer(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_9lastLayer_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_20cudaResourceViewDesc_lastLayer(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_9lastLayer_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaResourceViewDesc[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaResourceViewDesc_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaResourceViewDesc_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaResourceViewDesc_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaResourceViewDesc[] = { {(char *)"format", __pyx_getprop_4cuda_6cudart_20cudaResourceViewDesc_format, __pyx_setprop_4cuda_6cudart_20cudaResourceViewDesc_format, (char *)0, 0}, {(char *)"width", __pyx_getprop_4cuda_6cudart_20cudaResourceViewDesc_width, __pyx_setprop_4cuda_6cudart_20cudaResourceViewDesc_width, (char *)0, 0}, {(char *)"height", __pyx_getprop_4cuda_6cudart_20cudaResourceViewDesc_height, __pyx_setprop_4cuda_6cudart_20cudaResourceViewDesc_height, (char *)0, 0}, {(char *)"depth", __pyx_getprop_4cuda_6cudart_20cudaResourceViewDesc_depth, __pyx_setprop_4cuda_6cudart_20cudaResourceViewDesc_depth, (char *)0, 0}, {(char *)"firstMipmapLevel", __pyx_getprop_4cuda_6cudart_20cudaResourceViewDesc_firstMipmapLevel, __pyx_setprop_4cuda_6cudart_20cudaResourceViewDesc_firstMipmapLevel, (char *)0, 0}, {(char *)"lastMipmapLevel", __pyx_getprop_4cuda_6cudart_20cudaResourceViewDesc_lastMipmapLevel, __pyx_setprop_4cuda_6cudart_20cudaResourceViewDesc_lastMipmapLevel, (char *)0, 0}, {(char *)"firstLayer", __pyx_getprop_4cuda_6cudart_20cudaResourceViewDesc_firstLayer, __pyx_setprop_4cuda_6cudart_20cudaResourceViewDesc_firstLayer, (char *)0, 0}, {(char *)"lastLayer", __pyx_getprop_4cuda_6cudart_20cudaResourceViewDesc_lastLayer, __pyx_setprop_4cuda_6cudart_20cudaResourceViewDesc_lastLayer, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaResourceViewDesc_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaResourceViewDesc}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaResourceViewDesc(void_ptr _ptr=0)\n\n CUDA resource view descriptor\n\n Attributes\n ----------\n format : cudaResourceViewFormat\n Resource view format\n width : size_t\n Width of the resource view\n height : size_t\n Height of the resource view\n depth : size_t\n Depth of the resource view\n firstMipmapLevel : unsigned int\n First defined mipmap level\n lastMipmapLevel : unsigned int\n Last defined mipmap level\n firstLayer : unsigned int\n First layer index\n lastLayer : unsigned int\n Last layer index\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaResourceViewDesc}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaResourceViewDesc}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_20cudaResourceViewDesc_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaResourceViewDesc}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaResourceViewDesc_spec = { "cuda.cudart.cudaResourceViewDesc", sizeof(struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaResourceViewDesc_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaResourceViewDesc = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaResourceViewDesc", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaResourceViewDesc), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaResourceViewDesc, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n CUDA resource view descriptor\n\n Attributes\n ----------\n format : cudaResourceViewFormat\n Resource view format\n width : size_t\n Width of the resource view\n height : size_t\n Height of the resource view\n depth : size_t\n Depth of the resource view\n firstMipmapLevel : unsigned int\n First defined mipmap level\n lastMipmapLevel : unsigned int\n Last defined mipmap level\n firstLayer : unsigned int\n First layer index\n lastLayer : unsigned int\n Last layer index\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_6cudart_cudaResourceViewDesc, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_20cudaResourceViewDesc_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaPointerAttributes(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes *)o); new((void*)&(p->_cudaPointerAttributes__val)) struct cudaPointerAttributes(); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaPointerAttributes(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes *p = (struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_21cudaPointerAttributes_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaPointerAttributes__val); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_21cudaPointerAttributes_type(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_21cudaPointerAttributes_4type_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_21cudaPointerAttributes_type(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_21cudaPointerAttributes_4type_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_21cudaPointerAttributes_device(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_21cudaPointerAttributes_6device_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_21cudaPointerAttributes_device(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_21cudaPointerAttributes_6device_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_21cudaPointerAttributes_devicePointer(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_21cudaPointerAttributes_13devicePointer_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_21cudaPointerAttributes_devicePointer(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_21cudaPointerAttributes_13devicePointer_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_21cudaPointerAttributes_hostPointer(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_21cudaPointerAttributes_11hostPointer_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_21cudaPointerAttributes_hostPointer(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_21cudaPointerAttributes_11hostPointer_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_21cudaPointerAttributes_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_21cudaPointerAttributes_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaPointerAttributes[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_21cudaPointerAttributes_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_21cudaPointerAttributes_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_21cudaPointerAttributes_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_21cudaPointerAttributes_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_21cudaPointerAttributes_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_21cudaPointerAttributes_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_21cudaPointerAttributes_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaPointerAttributes[] = { {(char *)"type", __pyx_getprop_4cuda_6cudart_21cudaPointerAttributes_type, __pyx_setprop_4cuda_6cudart_21cudaPointerAttributes_type, (char *)0, 0}, {(char *)"device", __pyx_getprop_4cuda_6cudart_21cudaPointerAttributes_device, __pyx_setprop_4cuda_6cudart_21cudaPointerAttributes_device, (char *)0, 0}, {(char *)"devicePointer", __pyx_getprop_4cuda_6cudart_21cudaPointerAttributes_devicePointer, __pyx_setprop_4cuda_6cudart_21cudaPointerAttributes_devicePointer, (char *)0, 0}, {(char *)"hostPointer", __pyx_getprop_4cuda_6cudart_21cudaPointerAttributes_hostPointer, __pyx_setprop_4cuda_6cudart_21cudaPointerAttributes_hostPointer, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaPointerAttributes_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaPointerAttributes}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_21cudaPointerAttributes_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaPointerAttributes(void_ptr _ptr=0)\n\n CUDA pointer attributes\n\n Attributes\n ----------\n type : cudaMemoryType\n The type of memory - cudaMemoryTypeUnregistered,\n cudaMemoryTypeHost, cudaMemoryTypeDevice or cudaMemoryTypeManaged.\n device : 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).\n devicePointer : Any\n The address which may be dereferenced on the current device to\n access the memory or NULL if no such address exists.\n hostPointer : 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.\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaPointerAttributes}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaPointerAttributes}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_21cudaPointerAttributes_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaPointerAttributes}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaPointerAttributes_spec = { "cuda.cudart.cudaPointerAttributes", sizeof(struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaPointerAttributes_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaPointerAttributes = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaPointerAttributes", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaPointerAttributes), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaPointerAttributes, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n CUDA pointer attributes\n\n Attributes\n ----------\n type : cudaMemoryType\n The type of memory - cudaMemoryTypeUnregistered,\n cudaMemoryTypeHost, cudaMemoryTypeDevice or cudaMemoryTypeManaged.\n device : 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).\n devicePointer : Any\n The address which may be dereferenced on the current device to\n access the memory or NULL if no such address exists.\n hostPointer : 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.\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_6cudart_cudaPointerAttributes, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_21cudaPointerAttributes_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaFuncAttributes(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)o); new((void*)&(p->_cudaFuncAttributes__val)) struct cudaFuncAttributes(); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaFuncAttributes(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *p = (struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_18cudaFuncAttributes_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaFuncAttributes__val); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_18cudaFuncAttributes_sharedSizeBytes(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_15sharedSizeBytes_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_18cudaFuncAttributes_sharedSizeBytes(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_15sharedSizeBytes_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_18cudaFuncAttributes_constSizeBytes(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_14constSizeBytes_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_18cudaFuncAttributes_constSizeBytes(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_14constSizeBytes_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_18cudaFuncAttributes_localSizeBytes(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_14localSizeBytes_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_18cudaFuncAttributes_localSizeBytes(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_14localSizeBytes_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_18cudaFuncAttributes_maxThreadsPerBlock(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_18maxThreadsPerBlock_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_18cudaFuncAttributes_maxThreadsPerBlock(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_18maxThreadsPerBlock_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_18cudaFuncAttributes_numRegs(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_7numRegs_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_18cudaFuncAttributes_numRegs(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_7numRegs_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_18cudaFuncAttributes_ptxVersion(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_10ptxVersion_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_18cudaFuncAttributes_ptxVersion(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_10ptxVersion_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_18cudaFuncAttributes_binaryVersion(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_13binaryVersion_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_18cudaFuncAttributes_binaryVersion(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_13binaryVersion_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_18cudaFuncAttributes_cacheModeCA(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_11cacheModeCA_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_18cudaFuncAttributes_cacheModeCA(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_11cacheModeCA_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_18cudaFuncAttributes_maxDynamicSharedSizeBytes(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_25maxDynamicSharedSizeBytes_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_18cudaFuncAttributes_maxDynamicSharedSizeBytes(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_25maxDynamicSharedSizeBytes_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_18cudaFuncAttributes_preferredShmemCarveout(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_22preferredShmemCarveout_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_18cudaFuncAttributes_preferredShmemCarveout(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_22preferredShmemCarveout_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_18cudaFuncAttributes_clusterDimMustBeSet(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_19clusterDimMustBeSet_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_18cudaFuncAttributes_clusterDimMustBeSet(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_19clusterDimMustBeSet_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_18cudaFuncAttributes_requiredClusterWidth(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_20requiredClusterWidth_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_18cudaFuncAttributes_requiredClusterWidth(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_20requiredClusterWidth_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_18cudaFuncAttributes_requiredClusterHeight(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_21requiredClusterHeight_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_18cudaFuncAttributes_requiredClusterHeight(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_21requiredClusterHeight_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_18cudaFuncAttributes_requiredClusterDepth(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_20requiredClusterDepth_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_18cudaFuncAttributes_requiredClusterDepth(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_20requiredClusterDepth_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_18cudaFuncAttributes_clusterSchedulingPolicyPreference(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_33clusterSchedulingPolicyPreference_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_18cudaFuncAttributes_clusterSchedulingPolicyPreference(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_33clusterSchedulingPolicyPreference_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_18cudaFuncAttributes_nonPortableClusterSizeAllowed(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_29nonPortableClusterSizeAllowed_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_18cudaFuncAttributes_nonPortableClusterSizeAllowed(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_29nonPortableClusterSizeAllowed_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_18cudaFuncAttributes_reserved(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_8reserved_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_18cudaFuncAttributes_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_8reserved_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_18cudaFuncAttributes_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_18cudaFuncAttributes_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaFuncAttributes[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_18cudaFuncAttributes_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_18cudaFuncAttributes_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_18cudaFuncAttributes_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_18cudaFuncAttributes_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_18cudaFuncAttributes_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_18cudaFuncAttributes_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_18cudaFuncAttributes_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaFuncAttributes[] = { {(char *)"sharedSizeBytes", __pyx_getprop_4cuda_6cudart_18cudaFuncAttributes_sharedSizeBytes, __pyx_setprop_4cuda_6cudart_18cudaFuncAttributes_sharedSizeBytes, (char *)0, 0}, {(char *)"constSizeBytes", __pyx_getprop_4cuda_6cudart_18cudaFuncAttributes_constSizeBytes, __pyx_setprop_4cuda_6cudart_18cudaFuncAttributes_constSizeBytes, (char *)0, 0}, {(char *)"localSizeBytes", __pyx_getprop_4cuda_6cudart_18cudaFuncAttributes_localSizeBytes, __pyx_setprop_4cuda_6cudart_18cudaFuncAttributes_localSizeBytes, (char *)0, 0}, {(char *)"maxThreadsPerBlock", __pyx_getprop_4cuda_6cudart_18cudaFuncAttributes_maxThreadsPerBlock, __pyx_setprop_4cuda_6cudart_18cudaFuncAttributes_maxThreadsPerBlock, (char *)0, 0}, {(char *)"numRegs", __pyx_getprop_4cuda_6cudart_18cudaFuncAttributes_numRegs, __pyx_setprop_4cuda_6cudart_18cudaFuncAttributes_numRegs, (char *)0, 0}, {(char *)"ptxVersion", __pyx_getprop_4cuda_6cudart_18cudaFuncAttributes_ptxVersion, __pyx_setprop_4cuda_6cudart_18cudaFuncAttributes_ptxVersion, (char *)0, 0}, {(char *)"binaryVersion", __pyx_getprop_4cuda_6cudart_18cudaFuncAttributes_binaryVersion, __pyx_setprop_4cuda_6cudart_18cudaFuncAttributes_binaryVersion, (char *)0, 0}, {(char *)"cacheModeCA", __pyx_getprop_4cuda_6cudart_18cudaFuncAttributes_cacheModeCA, __pyx_setprop_4cuda_6cudart_18cudaFuncAttributes_cacheModeCA, (char *)0, 0}, {(char *)"maxDynamicSharedSizeBytes", __pyx_getprop_4cuda_6cudart_18cudaFuncAttributes_maxDynamicSharedSizeBytes, __pyx_setprop_4cuda_6cudart_18cudaFuncAttributes_maxDynamicSharedSizeBytes, (char *)0, 0}, {(char *)"preferredShmemCarveout", __pyx_getprop_4cuda_6cudart_18cudaFuncAttributes_preferredShmemCarveout, __pyx_setprop_4cuda_6cudart_18cudaFuncAttributes_preferredShmemCarveout, (char *)0, 0}, {(char *)"clusterDimMustBeSet", __pyx_getprop_4cuda_6cudart_18cudaFuncAttributes_clusterDimMustBeSet, __pyx_setprop_4cuda_6cudart_18cudaFuncAttributes_clusterDimMustBeSet, (char *)0, 0}, {(char *)"requiredClusterWidth", __pyx_getprop_4cuda_6cudart_18cudaFuncAttributes_requiredClusterWidth, __pyx_setprop_4cuda_6cudart_18cudaFuncAttributes_requiredClusterWidth, (char *)0, 0}, {(char *)"requiredClusterHeight", __pyx_getprop_4cuda_6cudart_18cudaFuncAttributes_requiredClusterHeight, __pyx_setprop_4cuda_6cudart_18cudaFuncAttributes_requiredClusterHeight, (char *)0, 0}, {(char *)"requiredClusterDepth", __pyx_getprop_4cuda_6cudart_18cudaFuncAttributes_requiredClusterDepth, __pyx_setprop_4cuda_6cudart_18cudaFuncAttributes_requiredClusterDepth, (char *)0, 0}, {(char *)"clusterSchedulingPolicyPreference", __pyx_getprop_4cuda_6cudart_18cudaFuncAttributes_clusterSchedulingPolicyPreference, __pyx_setprop_4cuda_6cudart_18cudaFuncAttributes_clusterSchedulingPolicyPreference, (char *)0, 0}, {(char *)"nonPortableClusterSizeAllowed", __pyx_getprop_4cuda_6cudart_18cudaFuncAttributes_nonPortableClusterSizeAllowed, __pyx_setprop_4cuda_6cudart_18cudaFuncAttributes_nonPortableClusterSizeAllowed, (char *)0, 0}, {(char *)"reserved", __pyx_getprop_4cuda_6cudart_18cudaFuncAttributes_reserved, __pyx_setprop_4cuda_6cudart_18cudaFuncAttributes_reserved, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaFuncAttributes_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaFuncAttributes}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_18cudaFuncAttributes_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaFuncAttributes(void_ptr _ptr=0)\n\n CUDA function attributes\n\n Attributes\n ----------\n sharedSizeBytes : 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.\n constSizeBytes : size_t\n The size in bytes of user-allocated constant memory required by\n this function.\n localSizeBytes : size_t\n The size in bytes of local memory used by each thread of this\n function.\n maxThreadsPerBlock : 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.\n numRegs : int\n The number of registers used by each thread of this function.\n ptxVersion : 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.\n binaryVersion : 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.\n cacheModeCA : int\n The attribute to indicate whether the function has been compiled\n with user specified option \"-Xptxas --dlcm=ca\" set.\n maxDynamicSharedSizeBytes : 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.\n preferredShmemCarveout : int\n On devices where the L1 cache and shared memory use the same\n hardware resources, this sets the shared memory carveout\n prefere""nce, 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\n clusterDimMustBeSet : int\n If this attribute is set, the kernel must launch with a valid\n cluster dimension specified.\n requiredClusterWidth : 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\n requiredClusterHeight : int\n\n requiredClusterDepth : int\n\n clusterSchedulingPolicyPreference : int\n The block scheduling policy of a function. See cudaFuncSetAttribute\n nonPortableClusterSizeAllowed : 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\n reserved : List[int]""\n Reserved for future use.\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaFuncAttributes}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaFuncAttributes}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_18cudaFuncAttributes_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaFuncAttributes}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaFuncAttributes_spec = { "cuda.cudart.cudaFuncAttributes", sizeof(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaFuncAttributes_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaFuncAttributes = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaFuncAttributes", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaFuncAttributes), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaFuncAttributes, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n CUDA function attributes\n\n Attributes\n ----------\n sharedSizeBytes : 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.\n constSizeBytes : size_t\n The size in bytes of user-allocated constant memory required by\n this function.\n localSizeBytes : size_t\n The size in bytes of local memory used by each thread of this\n function.\n maxThreadsPerBlock : 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.\n numRegs : int\n The number of registers used by each thread of this function.\n ptxVersion : 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.\n binaryVersion : 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.\n cacheModeCA : int\n The attribute to indicate whether the function has been compiled\n with user specified option \"-Xptxas --dlcm=ca\" set.\n maxDynamicSharedSizeBytes : 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.\n preferredShmemCarveout : int\n On devices where the L1 cache and shared memory use the same\n hardware resources, this sets the shared memory carveout\n prefere""nce, 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\n clusterDimMustBeSet : int\n If this attribute is set, the kernel must launch with a valid\n cluster dimension specified.\n requiredClusterWidth : 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\n requiredClusterHeight : int\n\n requiredClusterDepth : int\n\n clusterSchedulingPolicyPreference : int\n The block scheduling policy of a function. See cudaFuncSetAttribute\n nonPortableClusterSizeAllowed : 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\n reserved : List[int]""\n Reserved for future use.\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_6cudart_cudaFuncAttributes, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_18cudaFuncAttributes_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaMemLocation(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaMemLocation *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaMemLocation *)o); new((void*)&(p->_cudaMemLocation__val)) struct cudaMemLocation(); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaMemLocation(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaMemLocation *p = (struct __pyx_obj_4cuda_6cudart_cudaMemLocation *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_15cudaMemLocation_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaMemLocation__val); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_15cudaMemLocation_type(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_15cudaMemLocation_4type_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_15cudaMemLocation_type(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_15cudaMemLocation_4type_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_15cudaMemLocation_id(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_15cudaMemLocation_2id_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_15cudaMemLocation_id(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_15cudaMemLocation_2id_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_15cudaMemLocation_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_15cudaMemLocation_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaMemLocation[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_15cudaMemLocation_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_15cudaMemLocation_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_15cudaMemLocation_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_15cudaMemLocation_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_15cudaMemLocation_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_15cudaMemLocation_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_15cudaMemLocation_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaMemLocation[] = { {(char *)"type", __pyx_getprop_4cuda_6cudart_15cudaMemLocation_type, __pyx_setprop_4cuda_6cudart_15cudaMemLocation_type, (char *)0, 0}, {(char *)"id", __pyx_getprop_4cuda_6cudart_15cudaMemLocation_id, __pyx_setprop_4cuda_6cudart_15cudaMemLocation_id, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaMemLocation_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaMemLocation}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_15cudaMemLocation_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaMemLocation(void_ptr _ptr=0)\n\n Specifies a memory location. To specify a gpu, set type =\n cudaMemLocationTypeDevice and set id = the gpu's device ordinal. To\n specify a cpu NUMA node, set type = cudaMemLocationTypeHostNuma and\n set id = host NUMA node id.\n\n Attributes\n ----------\n type : cudaMemLocationType\n Specifies the location type, which modifies the meaning of id.\n id : int\n identifier for a given this location's ::CUmemLocationType.\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaMemLocation}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaMemLocation}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_15cudaMemLocation_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaMemLocation}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaMemLocation_spec = { "cuda.cudart.cudaMemLocation", sizeof(struct __pyx_obj_4cuda_6cudart_cudaMemLocation), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaMemLocation_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaMemLocation = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaMemLocation", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaMemLocation), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaMemLocation, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Specifies a memory location. To specify a gpu, set type =\n cudaMemLocationTypeDevice and set id = the gpu's device ordinal. To\n specify a cpu NUMA node, set type = cudaMemLocationTypeHostNuma and\n set id = host NUMA node id.\n\n Attributes\n ----------\n type : cudaMemLocationType\n Specifies the location type, which modifies the meaning of id.\n id : int\n identifier for a given this location's ::CUmemLocationType.\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_6cudart_cudaMemLocation, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_15cudaMemLocation_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaMemAccessDesc(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaMemAccessDesc *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaMemAccessDesc *)o); new((void*)&(p->_cudaMemAccessDesc__val)) struct cudaMemAccessDesc(); p->_location = ((struct __pyx_obj_4cuda_6cudart_cudaMemLocation *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaMemAccessDesc(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaMemAccessDesc *p = (struct __pyx_obj_4cuda_6cudart_cudaMemAccessDesc *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_17cudaMemAccessDesc_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaMemAccessDesc__val); Py_CLEAR(p->_location); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_cudaMemAccessDesc(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_cudaMemAccessDesc *p = (struct __pyx_obj_4cuda_6cudart_cudaMemAccessDesc *)o; if (p->_location) { e = (*v)(((PyObject *)p->_location), a); if (e) return e; } return 0; } static int __pyx_tp_clear_4cuda_6cudart_cudaMemAccessDesc(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_cudaMemAccessDesc *p = (struct __pyx_obj_4cuda_6cudart_cudaMemAccessDesc *)o; tmp = ((PyObject*)p->_location); p->_location = ((struct __pyx_obj_4cuda_6cudart_cudaMemLocation *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_17cudaMemAccessDesc_location(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_17cudaMemAccessDesc_8location_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_17cudaMemAccessDesc_location(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_17cudaMemAccessDesc_8location_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_17cudaMemAccessDesc_flags(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_17cudaMemAccessDesc_5flags_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_17cudaMemAccessDesc_flags(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_17cudaMemAccessDesc_5flags_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_17cudaMemAccessDesc_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_17cudaMemAccessDesc_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaMemAccessDesc[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_17cudaMemAccessDesc_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_17cudaMemAccessDesc_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_17cudaMemAccessDesc_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_17cudaMemAccessDesc_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_17cudaMemAccessDesc_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_17cudaMemAccessDesc_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_17cudaMemAccessDesc_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaMemAccessDesc[] = { {(char *)"location", __pyx_getprop_4cuda_6cudart_17cudaMemAccessDesc_location, __pyx_setprop_4cuda_6cudart_17cudaMemAccessDesc_location, (char *)0, 0}, {(char *)"flags", __pyx_getprop_4cuda_6cudart_17cudaMemAccessDesc_flags, __pyx_setprop_4cuda_6cudart_17cudaMemAccessDesc_flags, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaMemAccessDesc_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaMemAccessDesc}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_17cudaMemAccessDesc_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaMemAccessDesc(void_ptr _ptr=0)\n\n Memory access descriptor\n\n Attributes\n ----------\n location : cudaMemLocation\n Location on which the request is to change it's accessibility\n flags : cudaMemAccessFlags\n ::CUmemProt accessibility flags to set on the request\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaMemAccessDesc}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaMemAccessDesc}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaMemAccessDesc}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaMemAccessDesc}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_17cudaMemAccessDesc_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaMemAccessDesc}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaMemAccessDesc_spec = { "cuda.cudart.cudaMemAccessDesc", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_cudaMemAccessDesc_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaMemAccessDesc = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaMemAccessDesc", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaMemAccessDesc), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaMemAccessDesc, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Memory access descriptor\n\n Attributes\n ----------\n location : cudaMemLocation\n Location on which the request is to change it's accessibility\n flags : cudaMemAccessFlags\n ::CUmemProt accessibility flags to set on the request\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaMemAccessDesc, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_cudaMemAccessDesc, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_cudaMemAccessDesc, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_17cudaMemAccessDesc_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaMemPoolProps(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *)o); new((void*)&(p->_cudaMemPoolProps__val)) struct cudaMemPoolProps(); p->_location = ((struct __pyx_obj_4cuda_6cudart_cudaMemLocation *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaMemPoolProps(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *p = (struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_16cudaMemPoolProps_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaMemPoolProps__val); Py_CLEAR(p->_location); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_cudaMemPoolProps(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *p = (struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *)o; if (p->_location) { e = (*v)(((PyObject *)p->_location), a); if (e) return e; } return 0; } static int __pyx_tp_clear_4cuda_6cudart_cudaMemPoolProps(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *p = (struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *)o; tmp = ((PyObject*)p->_location); p->_location = ((struct __pyx_obj_4cuda_6cudart_cudaMemLocation *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_16cudaMemPoolProps_allocType(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_16cudaMemPoolProps_9allocType_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_16cudaMemPoolProps_allocType(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_16cudaMemPoolProps_9allocType_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_16cudaMemPoolProps_handleTypes(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_16cudaMemPoolProps_11handleTypes_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_16cudaMemPoolProps_handleTypes(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_16cudaMemPoolProps_11handleTypes_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_16cudaMemPoolProps_location(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_16cudaMemPoolProps_8location_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_16cudaMemPoolProps_location(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_16cudaMemPoolProps_8location_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_16cudaMemPoolProps_win32SecurityAttributes(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_16cudaMemPoolProps_23win32SecurityAttributes_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_16cudaMemPoolProps_win32SecurityAttributes(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_16cudaMemPoolProps_23win32SecurityAttributes_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_16cudaMemPoolProps_maxSize(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_16cudaMemPoolProps_7maxSize_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_16cudaMemPoolProps_maxSize(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_16cudaMemPoolProps_7maxSize_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_16cudaMemPoolProps_usage(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_16cudaMemPoolProps_5usage_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_16cudaMemPoolProps_usage(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_16cudaMemPoolProps_5usage_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_16cudaMemPoolProps_reserved(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_16cudaMemPoolProps_8reserved_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_16cudaMemPoolProps_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_16cudaMemPoolProps_8reserved_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_16cudaMemPoolProps_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_16cudaMemPoolProps_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaMemPoolProps[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_16cudaMemPoolProps_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_16cudaMemPoolProps_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_16cudaMemPoolProps_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_16cudaMemPoolProps_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_16cudaMemPoolProps_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_16cudaMemPoolProps_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_16cudaMemPoolProps_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaMemPoolProps[] = { {(char *)"allocType", __pyx_getprop_4cuda_6cudart_16cudaMemPoolProps_allocType, __pyx_setprop_4cuda_6cudart_16cudaMemPoolProps_allocType, (char *)0, 0}, {(char *)"handleTypes", __pyx_getprop_4cuda_6cudart_16cudaMemPoolProps_handleTypes, __pyx_setprop_4cuda_6cudart_16cudaMemPoolProps_handleTypes, (char *)0, 0}, {(char *)"location", __pyx_getprop_4cuda_6cudart_16cudaMemPoolProps_location, __pyx_setprop_4cuda_6cudart_16cudaMemPoolProps_location, (char *)0, 0}, {(char *)"win32SecurityAttributes", __pyx_getprop_4cuda_6cudart_16cudaMemPoolProps_win32SecurityAttributes, __pyx_setprop_4cuda_6cudart_16cudaMemPoolProps_win32SecurityAttributes, (char *)0, 0}, {(char *)"maxSize", __pyx_getprop_4cuda_6cudart_16cudaMemPoolProps_maxSize, __pyx_setprop_4cuda_6cudart_16cudaMemPoolProps_maxSize, (char *)0, 0}, {(char *)"usage", __pyx_getprop_4cuda_6cudart_16cudaMemPoolProps_usage, __pyx_setprop_4cuda_6cudart_16cudaMemPoolProps_usage, (char *)0, 0}, {(char *)"reserved", __pyx_getprop_4cuda_6cudart_16cudaMemPoolProps_reserved, __pyx_setprop_4cuda_6cudart_16cudaMemPoolProps_reserved, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaMemPoolProps_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaMemPoolProps}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_16cudaMemPoolProps_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaMemPoolProps(void_ptr _ptr=0)\n\n Specifies the properties of allocations made from the pool.\n\n Attributes\n ----------\n allocType : cudaMemAllocationType\n Allocation type. Currently must be specified as\n cudaMemAllocationTypePinned\n handleTypes : cudaMemAllocationHandleType\n Handle types that will be supported by allocations from the pool.\n location : cudaMemLocation\n Location allocations should reside.\n win32SecurityAttributes : 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.\n maxSize : size_t\n Maximum pool size. When set to 0, defaults to a system dependent\n value.\n usage : unsigned short\n Bitmask indicating intended usage for the pool.\n reserved : bytes\n reserved for future use, must be 0\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaMemPoolProps}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaMemPoolProps}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaMemPoolProps}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaMemPoolProps}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_16cudaMemPoolProps_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaMemPoolProps}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaMemPoolProps_spec = { "cuda.cudart.cudaMemPoolProps", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_cudaMemPoolProps_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaMemPoolProps = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaMemPoolProps", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaMemPoolProps, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Specifies the properties of allocations made from the pool.\n\n Attributes\n ----------\n allocType : cudaMemAllocationType\n Allocation type. Currently must be specified as\n cudaMemAllocationTypePinned\n handleTypes : cudaMemAllocationHandleType\n Handle types that will be supported by allocations from the pool.\n location : cudaMemLocation\n Location allocations should reside.\n win32SecurityAttributes : 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.\n maxSize : size_t\n Maximum pool size. When set to 0, defaults to a system dependent\n value.\n usage : unsigned short\n Bitmask indicating intended usage for the pool.\n reserved : bytes\n reserved for future use, must be 0\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaMemPoolProps, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_cudaMemPoolProps, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_cudaMemPoolProps, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_16cudaMemPoolProps_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaMemPoolPtrExportData(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaMemPoolPtrExportData *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaMemPoolPtrExportData *)o); new((void*)&(p->_cudaMemPoolPtrExportData__val)) struct cudaMemPoolPtrExportData(); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaMemPoolPtrExportData(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaMemPoolPtrExportData *p = (struct __pyx_obj_4cuda_6cudart_cudaMemPoolPtrExportData *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_24cudaMemPoolPtrExportData_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaMemPoolPtrExportData__val); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_24cudaMemPoolPtrExportData_reserved(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_24cudaMemPoolPtrExportData_8reserved_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_24cudaMemPoolPtrExportData_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_24cudaMemPoolPtrExportData_8reserved_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_24cudaMemPoolPtrExportData_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_24cudaMemPoolPtrExportData_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaMemPoolPtrExportData[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_24cudaMemPoolPtrExportData_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_24cudaMemPoolPtrExportData_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_24cudaMemPoolPtrExportData_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_24cudaMemPoolPtrExportData_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_24cudaMemPoolPtrExportData_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_24cudaMemPoolPtrExportData_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_24cudaMemPoolPtrExportData_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaMemPoolPtrExportData[] = { {(char *)"reserved", __pyx_getprop_4cuda_6cudart_24cudaMemPoolPtrExportData_reserved, __pyx_setprop_4cuda_6cudart_24cudaMemPoolPtrExportData_reserved, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaMemPoolPtrExportData_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaMemPoolPtrExportData}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_24cudaMemPoolPtrExportData_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaMemPoolPtrExportData(void_ptr _ptr=0)\n\n Opaque data for exporting a pool allocation\n\n Attributes\n ----------\n reserved : bytes\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaMemPoolPtrExportData}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaMemPoolPtrExportData}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_24cudaMemPoolPtrExportData_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaMemPoolPtrExportData}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaMemPoolPtrExportData_spec = { "cuda.cudart.cudaMemPoolPtrExportData", sizeof(struct __pyx_obj_4cuda_6cudart_cudaMemPoolPtrExportData), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaMemPoolPtrExportData_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaMemPoolPtrExportData = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaMemPoolPtrExportData", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaMemPoolPtrExportData), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaMemPoolPtrExportData, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Opaque data for exporting a pool allocation\n\n Attributes\n ----------\n reserved : bytes\n\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_6cudart_cudaMemPoolPtrExportData, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_24cudaMemPoolPtrExportData_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaMemAllocNodeParams(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *)o); new((void*)&(p->_cudaMemAllocNodeParams__val)) struct cudaMemAllocNodeParams(); p->_poolProps = ((struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaMemAllocNodeParams(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *p = (struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_22cudaMemAllocNodeParams_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaMemAllocNodeParams__val); Py_CLEAR(p->_poolProps); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_cudaMemAllocNodeParams(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *p = (struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *)o; if (p->_poolProps) { e = (*v)(((PyObject *)p->_poolProps), a); if (e) return e; } return 0; } static int __pyx_tp_clear_4cuda_6cudart_cudaMemAllocNodeParams(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *p = (struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams *)o; tmp = ((PyObject*)p->_poolProps); p->_poolProps = ((struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_22cudaMemAllocNodeParams_poolProps(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_22cudaMemAllocNodeParams_9poolProps_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_22cudaMemAllocNodeParams_poolProps(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_22cudaMemAllocNodeParams_9poolProps_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_22cudaMemAllocNodeParams_accessDescs(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_22cudaMemAllocNodeParams_11accessDescs_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_22cudaMemAllocNodeParams_accessDescs(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_22cudaMemAllocNodeParams_11accessDescs_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_22cudaMemAllocNodeParams_accessDescCount(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_22cudaMemAllocNodeParams_15accessDescCount_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_22cudaMemAllocNodeParams_accessDescCount(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_22cudaMemAllocNodeParams_15accessDescCount_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_22cudaMemAllocNodeParams_bytesize(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_22cudaMemAllocNodeParams_8bytesize_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_22cudaMemAllocNodeParams_bytesize(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_22cudaMemAllocNodeParams_8bytesize_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_22cudaMemAllocNodeParams_dptr(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_22cudaMemAllocNodeParams_4dptr_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_22cudaMemAllocNodeParams_dptr(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_22cudaMemAllocNodeParams_4dptr_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_22cudaMemAllocNodeParams_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_22cudaMemAllocNodeParams_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaMemAllocNodeParams[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_22cudaMemAllocNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_22cudaMemAllocNodeParams_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_22cudaMemAllocNodeParams_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_22cudaMemAllocNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_22cudaMemAllocNodeParams_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_22cudaMemAllocNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_22cudaMemAllocNodeParams_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaMemAllocNodeParams[] = { {(char *)"poolProps", __pyx_getprop_4cuda_6cudart_22cudaMemAllocNodeParams_poolProps, __pyx_setprop_4cuda_6cudart_22cudaMemAllocNodeParams_poolProps, (char *)0, 0}, {(char *)"accessDescs", __pyx_getprop_4cuda_6cudart_22cudaMemAllocNodeParams_accessDescs, __pyx_setprop_4cuda_6cudart_22cudaMemAllocNodeParams_accessDescs, (char *)0, 0}, {(char *)"accessDescCount", __pyx_getprop_4cuda_6cudart_22cudaMemAllocNodeParams_accessDescCount, __pyx_setprop_4cuda_6cudart_22cudaMemAllocNodeParams_accessDescCount, (char *)0, 0}, {(char *)"bytesize", __pyx_getprop_4cuda_6cudart_22cudaMemAllocNodeParams_bytesize, __pyx_setprop_4cuda_6cudart_22cudaMemAllocNodeParams_bytesize, (char *)0, 0}, {(char *)"dptr", __pyx_getprop_4cuda_6cudart_22cudaMemAllocNodeParams_dptr, __pyx_setprop_4cuda_6cudart_22cudaMemAllocNodeParams_dptr, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaMemAllocNodeParams_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaMemAllocNodeParams}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_22cudaMemAllocNodeParams_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaMemAllocNodeParams(void_ptr _ptr=0)\n\n Memory allocation node parameters\n\n Attributes\n ----------\n poolProps : 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\n accessDescs : cudaMemAccessDesc\n in: number of memory access descriptors. Must not exceed the number\n of GPUs.\n accessDescCount : size_t\n in: Number of `accessDescs`s\n bytesize : size_t\n in: size in bytes of the requested allocation\n dptr : Any\n out: address of the allocation returned by CUDA\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaMemAllocNodeParams}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaMemAllocNodeParams}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaMemAllocNodeParams}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaMemAllocNodeParams}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_22cudaMemAllocNodeParams_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaMemAllocNodeParams}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaMemAllocNodeParams_spec = { "cuda.cudart.cudaMemAllocNodeParams", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_cudaMemAllocNodeParams_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaMemAllocNodeParams = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaMemAllocNodeParams", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParams), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaMemAllocNodeParams, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Memory allocation node parameters\n\n Attributes\n ----------\n poolProps : 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\n accessDescs : cudaMemAccessDesc\n in: number of memory access descriptors. Must not exceed the number\n of GPUs.\n accessDescCount : size_t\n in: Number of `accessDescs`s\n bytesize : size_t\n in: size in bytes of the requested allocation\n dptr : Any\n out: address of the allocation returned by CUDA\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaMemAllocNodeParams, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_cudaMemAllocNodeParams, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_cudaMemAllocNodeParams, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_22cudaMemAllocNodeParams_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaMemAllocNodeParamsV2(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *)o); new((void*)&(p->_cudaMemAllocNodeParamsV2__val)) struct cudaMemAllocNodeParamsV2(); p->_poolProps = ((struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaMemAllocNodeParamsV2(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *p = (struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_24cudaMemAllocNodeParamsV2_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaMemAllocNodeParamsV2__val); Py_CLEAR(p->_poolProps); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_cudaMemAllocNodeParamsV2(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *p = (struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *)o; if (p->_poolProps) { e = (*v)(((PyObject *)p->_poolProps), a); if (e) return e; } return 0; } static int __pyx_tp_clear_4cuda_6cudart_cudaMemAllocNodeParamsV2(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *p = (struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *)o; tmp = ((PyObject*)p->_poolProps); p->_poolProps = ((struct __pyx_obj_4cuda_6cudart_cudaMemPoolProps *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_24cudaMemAllocNodeParamsV2_poolProps(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_24cudaMemAllocNodeParamsV2_9poolProps_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_24cudaMemAllocNodeParamsV2_poolProps(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_24cudaMemAllocNodeParamsV2_9poolProps_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_24cudaMemAllocNodeParamsV2_accessDescs(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_24cudaMemAllocNodeParamsV2_11accessDescs_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_24cudaMemAllocNodeParamsV2_accessDescs(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_24cudaMemAllocNodeParamsV2_11accessDescs_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_24cudaMemAllocNodeParamsV2_accessDescCount(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_24cudaMemAllocNodeParamsV2_15accessDescCount_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_24cudaMemAllocNodeParamsV2_accessDescCount(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_24cudaMemAllocNodeParamsV2_15accessDescCount_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_24cudaMemAllocNodeParamsV2_bytesize(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_24cudaMemAllocNodeParamsV2_8bytesize_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_24cudaMemAllocNodeParamsV2_bytesize(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_24cudaMemAllocNodeParamsV2_8bytesize_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_24cudaMemAllocNodeParamsV2_dptr(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_24cudaMemAllocNodeParamsV2_4dptr_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_24cudaMemAllocNodeParamsV2_dptr(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_24cudaMemAllocNodeParamsV2_4dptr_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_24cudaMemAllocNodeParamsV2_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_24cudaMemAllocNodeParamsV2_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaMemAllocNodeParamsV2[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_24cudaMemAllocNodeParamsV2_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_24cudaMemAllocNodeParamsV2_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_24cudaMemAllocNodeParamsV2_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_24cudaMemAllocNodeParamsV2_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_24cudaMemAllocNodeParamsV2_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_24cudaMemAllocNodeParamsV2_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_24cudaMemAllocNodeParamsV2_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaMemAllocNodeParamsV2[] = { {(char *)"poolProps", __pyx_getprop_4cuda_6cudart_24cudaMemAllocNodeParamsV2_poolProps, __pyx_setprop_4cuda_6cudart_24cudaMemAllocNodeParamsV2_poolProps, (char *)0, 0}, {(char *)"accessDescs", __pyx_getprop_4cuda_6cudart_24cudaMemAllocNodeParamsV2_accessDescs, __pyx_setprop_4cuda_6cudart_24cudaMemAllocNodeParamsV2_accessDescs, (char *)0, 0}, {(char *)"accessDescCount", __pyx_getprop_4cuda_6cudart_24cudaMemAllocNodeParamsV2_accessDescCount, __pyx_setprop_4cuda_6cudart_24cudaMemAllocNodeParamsV2_accessDescCount, (char *)0, 0}, {(char *)"bytesize", __pyx_getprop_4cuda_6cudart_24cudaMemAllocNodeParamsV2_bytesize, __pyx_setprop_4cuda_6cudart_24cudaMemAllocNodeParamsV2_bytesize, (char *)0, 0}, {(char *)"dptr", __pyx_getprop_4cuda_6cudart_24cudaMemAllocNodeParamsV2_dptr, __pyx_setprop_4cuda_6cudart_24cudaMemAllocNodeParamsV2_dptr, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaMemAllocNodeParamsV2_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaMemAllocNodeParamsV2}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_24cudaMemAllocNodeParamsV2_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaMemAllocNodeParamsV2(void_ptr _ptr=0)\n\n Memory allocation node parameters\n\n Attributes\n ----------\n poolProps : 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\n accessDescs : cudaMemAccessDesc\n in: number of memory access descriptors. Must not exceed the number\n of GPUs.\n accessDescCount : size_t\n in: Number of `accessDescs`s\n bytesize : size_t\n in: size in bytes of the requested allocation\n dptr : Any\n out: address of the allocation returned by CUDA\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaMemAllocNodeParamsV2}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaMemAllocNodeParamsV2}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaMemAllocNodeParamsV2}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaMemAllocNodeParamsV2}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_24cudaMemAllocNodeParamsV2_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaMemAllocNodeParamsV2}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaMemAllocNodeParamsV2_spec = { "cuda.cudart.cudaMemAllocNodeParamsV2", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_cudaMemAllocNodeParamsV2_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaMemAllocNodeParamsV2 = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaMemAllocNodeParamsV2", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaMemAllocNodeParamsV2, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Memory allocation node parameters\n\n Attributes\n ----------\n poolProps : 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\n accessDescs : cudaMemAccessDesc\n in: number of memory access descriptors. Must not exceed the number\n of GPUs.\n accessDescCount : size_t\n in: Number of `accessDescs`s\n bytesize : size_t\n in: size in bytes of the requested allocation\n dptr : Any\n out: address of the allocation returned by CUDA\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaMemAllocNodeParamsV2, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_cudaMemAllocNodeParamsV2, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_cudaMemAllocNodeParamsV2, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_24cudaMemAllocNodeParamsV2_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaMemFreeNodeParams(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaMemFreeNodeParams *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaMemFreeNodeParams *)o); new((void*)&(p->_cudaMemFreeNodeParams__val)) struct cudaMemFreeNodeParams(); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaMemFreeNodeParams(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaMemFreeNodeParams *p = (struct __pyx_obj_4cuda_6cudart_cudaMemFreeNodeParams *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_21cudaMemFreeNodeParams_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaMemFreeNodeParams__val); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_21cudaMemFreeNodeParams_dptr(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_21cudaMemFreeNodeParams_4dptr_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_21cudaMemFreeNodeParams_dptr(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_21cudaMemFreeNodeParams_4dptr_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_21cudaMemFreeNodeParams_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_21cudaMemFreeNodeParams_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaMemFreeNodeParams[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_21cudaMemFreeNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_21cudaMemFreeNodeParams_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_21cudaMemFreeNodeParams_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_21cudaMemFreeNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_21cudaMemFreeNodeParams_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_21cudaMemFreeNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_21cudaMemFreeNodeParams_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaMemFreeNodeParams[] = { {(char *)"dptr", __pyx_getprop_4cuda_6cudart_21cudaMemFreeNodeParams_dptr, __pyx_setprop_4cuda_6cudart_21cudaMemFreeNodeParams_dptr, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaMemFreeNodeParams_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaMemFreeNodeParams}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_21cudaMemFreeNodeParams_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaMemFreeNodeParams(void_ptr _ptr=0)\n\n Memory free node parameters\n\n Attributes\n ----------\n dptr : Any\n in: the pointer to free\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaMemFreeNodeParams}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaMemFreeNodeParams}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_21cudaMemFreeNodeParams_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaMemFreeNodeParams}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaMemFreeNodeParams_spec = { "cuda.cudart.cudaMemFreeNodeParams", sizeof(struct __pyx_obj_4cuda_6cudart_cudaMemFreeNodeParams), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaMemFreeNodeParams_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaMemFreeNodeParams = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaMemFreeNodeParams", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaMemFreeNodeParams), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaMemFreeNodeParams, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Memory free node parameters\n\n Attributes\n ----------\n dptr : Any\n in: the pointer to free\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_6cudart_cudaMemFreeNodeParams, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_21cudaMemFreeNodeParams_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_CUuuid_st(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_CUuuid_st *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_CUuuid_st *)o); new((void*)&(p->_CUuuid_st__val)) struct CUuuid_st(); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_CUuuid_st(PyObject *o) { struct __pyx_obj_4cuda_6cudart_CUuuid_st *p = (struct __pyx_obj_4cuda_6cudart_CUuuid_st *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_9CUuuid_st_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_CUuuid_st__val); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_9CUuuid_st_bytes(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_9CUuuid_st_5bytes_1__get__(o); } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_9CUuuid_st_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_9CUuuid_st_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_CUuuid_st[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_9CUuuid_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_9CUuuid_st_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_9CUuuid_st_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_9CUuuid_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_9CUuuid_st_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_9CUuuid_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_9CUuuid_st_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_CUuuid_st[] = { {(char *)"bytes", __pyx_getprop_4cuda_6cudart_9CUuuid_st_bytes, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_CUuuid_st_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_CUuuid_st}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_9CUuuid_st_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("CUuuid_st(void_ptr _ptr=0)\n\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\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_CUuuid_st}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_CUuuid_st}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_9CUuuid_st_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_CUuuid_st}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_CUuuid_st_spec = { "cuda.cudart.CUuuid_st", sizeof(struct __pyx_obj_4cuda_6cudart_CUuuid_st), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_CUuuid_st_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_CUuuid_st = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""CUuuid_st", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_CUuuid_st), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_CUuuid_st, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\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\n "), /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_CUuuid_st, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_9CUuuid_st_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaDeviceProp(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)o); new((void*)&(p->_cudaDeviceProp__val)) struct cudaDeviceProp(); p->_uuid = ((struct __pyx_obj_4cuda_6cudart_cudaUUID_t *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaDeviceProp(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *p = (struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_14cudaDeviceProp_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaDeviceProp__val); Py_CLEAR(p->_uuid); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_cudaDeviceProp(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *p = (struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)o; if (p->_uuid) { e = (*v)(((PyObject *)p->_uuid), a); if (e) return e; } return 0; } static int __pyx_tp_clear_4cuda_6cudart_cudaDeviceProp(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *p = (struct __pyx_obj_4cuda_6cudart_cudaDeviceProp *)o; tmp = ((PyObject*)p->_uuid); p->_uuid = ((struct __pyx_obj_4cuda_6cudart_cudaUUID_t *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_name(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_4name_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_name(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_4name_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_uuid(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_4uuid_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_uuid(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_4uuid_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_luid(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_4luid_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_luid(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_4luid_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_luidDeviceNodeMask(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_18luidDeviceNodeMask_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_luidDeviceNodeMask(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_18luidDeviceNodeMask_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_totalGlobalMem(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_14totalGlobalMem_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_totalGlobalMem(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_14totalGlobalMem_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_sharedMemPerBlock(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_17sharedMemPerBlock_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_sharedMemPerBlock(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_17sharedMemPerBlock_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_regsPerBlock(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_12regsPerBlock_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_regsPerBlock(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_12regsPerBlock_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_warpSize(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_8warpSize_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_warpSize(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_8warpSize_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_memPitch(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_8memPitch_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_memPitch(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_8memPitch_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxThreadsPerBlock(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_18maxThreadsPerBlock_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxThreadsPerBlock(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_18maxThreadsPerBlock_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxThreadsDim(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_13maxThreadsDim_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxThreadsDim(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_13maxThreadsDim_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxGridSize(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_11maxGridSize_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxGridSize(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_11maxGridSize_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_clockRate(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_9clockRate_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_clockRate(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_9clockRate_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_totalConstMem(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_13totalConstMem_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_totalConstMem(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_13totalConstMem_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_major(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_5major_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_major(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_5major_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_minor(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_5minor_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_minor(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_5minor_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_textureAlignment(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_16textureAlignment_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_textureAlignment(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_16textureAlignment_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_texturePitchAlignment(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_21texturePitchAlignment_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_texturePitchAlignment(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_21texturePitchAlignment_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_deviceOverlap(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_13deviceOverlap_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_deviceOverlap(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_13deviceOverlap_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_multiProcessorCount(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_19multiProcessorCount_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_multiProcessorCount(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_19multiProcessorCount_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_kernelExecTimeoutEnabled(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_24kernelExecTimeoutEnabled_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_kernelExecTimeoutEnabled(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_24kernelExecTimeoutEnabled_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_integrated(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_10integrated_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_integrated(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_10integrated_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_canMapHostMemory(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_16canMapHostMemory_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_canMapHostMemory(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_16canMapHostMemory_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_computeMode(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_11computeMode_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_computeMode(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_11computeMode_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxTexture1D(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_12maxTexture1D_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxTexture1D(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_12maxTexture1D_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxTexture1DMipmap(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_18maxTexture1DMipmap_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxTexture1DMipmap(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_18maxTexture1DMipmap_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxTexture1DLinear(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_18maxTexture1DLinear_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxTexture1DLinear(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_18maxTexture1DLinear_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxTexture2D(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_12maxTexture2D_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxTexture2D(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_12maxTexture2D_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxTexture2DMipmap(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_18maxTexture2DMipmap_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxTexture2DMipmap(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_18maxTexture2DMipmap_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxTexture2DLinear(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_18maxTexture2DLinear_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxTexture2DLinear(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_18maxTexture2DLinear_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxTexture2DGather(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_18maxTexture2DGather_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxTexture2DGather(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_18maxTexture2DGather_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxTexture3D(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_12maxTexture3D_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxTexture3D(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_12maxTexture3D_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxTexture3DAlt(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_15maxTexture3DAlt_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxTexture3DAlt(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_15maxTexture3DAlt_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxTextureCubemap(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_17maxTextureCubemap_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxTextureCubemap(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_17maxTextureCubemap_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxTexture1DLayered(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_19maxTexture1DLayered_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxTexture1DLayered(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_19maxTexture1DLayered_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxTexture2DLayered(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_19maxTexture2DLayered_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxTexture2DLayered(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_19maxTexture2DLayered_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxTextureCubemapLayered(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_24maxTextureCubemapLayered_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxTextureCubemapLayered(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_24maxTextureCubemapLayered_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxSurface1D(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_12maxSurface1D_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxSurface1D(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_12maxSurface1D_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxSurface2D(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_12maxSurface2D_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxSurface2D(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_12maxSurface2D_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxSurface3D(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_12maxSurface3D_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxSurface3D(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_12maxSurface3D_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxSurface1DLayered(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_19maxSurface1DLayered_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxSurface1DLayered(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_19maxSurface1DLayered_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxSurface2DLayered(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_19maxSurface2DLayered_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxSurface2DLayered(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_19maxSurface2DLayered_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxSurfaceCubemap(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_17maxSurfaceCubemap_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxSurfaceCubemap(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_17maxSurfaceCubemap_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxSurfaceCubemapLayered(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_24maxSurfaceCubemapLayered_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxSurfaceCubemapLayered(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_24maxSurfaceCubemapLayered_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_surfaceAlignment(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_16surfaceAlignment_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_surfaceAlignment(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_16surfaceAlignment_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_concurrentKernels(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_17concurrentKernels_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_concurrentKernels(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_17concurrentKernels_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_ECCEnabled(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_10ECCEnabled_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_ECCEnabled(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_10ECCEnabled_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_pciBusID(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_8pciBusID_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_pciBusID(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_8pciBusID_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_pciDeviceID(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_11pciDeviceID_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_pciDeviceID(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_11pciDeviceID_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_pciDomainID(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_11pciDomainID_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_pciDomainID(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_11pciDomainID_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_tccDriver(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_9tccDriver_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_tccDriver(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_9tccDriver_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_asyncEngineCount(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_16asyncEngineCount_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_asyncEngineCount(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_16asyncEngineCount_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_unifiedAddressing(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_17unifiedAddressing_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_unifiedAddressing(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_17unifiedAddressing_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_memoryClockRate(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_15memoryClockRate_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_memoryClockRate(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_15memoryClockRate_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_memoryBusWidth(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_14memoryBusWidth_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_memoryBusWidth(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_14memoryBusWidth_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_l2CacheSize(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_11l2CacheSize_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_l2CacheSize(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_11l2CacheSize_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_persistingL2CacheMaxSize(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_24persistingL2CacheMaxSize_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_persistingL2CacheMaxSize(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_24persistingL2CacheMaxSize_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxThreadsPerMultiProcessor(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_27maxThreadsPerMultiProcessor_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxThreadsPerMultiProcessor(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_27maxThreadsPerMultiProcessor_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_streamPrioritiesSupported(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_25streamPrioritiesSupported_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_streamPrioritiesSupported(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_25streamPrioritiesSupported_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_globalL1CacheSupported(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_22globalL1CacheSupported_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_globalL1CacheSupported(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_22globalL1CacheSupported_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_localL1CacheSupported(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_21localL1CacheSupported_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_localL1CacheSupported(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_21localL1CacheSupported_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_sharedMemPerMultiprocessor(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_26sharedMemPerMultiprocessor_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_sharedMemPerMultiprocessor(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_26sharedMemPerMultiprocessor_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_regsPerMultiprocessor(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_21regsPerMultiprocessor_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_regsPerMultiprocessor(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_21regsPerMultiprocessor_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_managedMemory(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_13managedMemory_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_managedMemory(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_13managedMemory_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_isMultiGpuBoard(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_15isMultiGpuBoard_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_isMultiGpuBoard(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_15isMultiGpuBoard_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_multiGpuBoardGroupID(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_20multiGpuBoardGroupID_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_multiGpuBoardGroupID(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_20multiGpuBoardGroupID_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_hostNativeAtomicSupported(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_25hostNativeAtomicSupported_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_hostNativeAtomicSupported(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_25hostNativeAtomicSupported_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_singleToDoublePrecisionPerfRatio(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_32singleToDoublePrecisionPerfRatio_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_singleToDoublePrecisionPerfRatio(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_32singleToDoublePrecisionPerfRatio_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_pageableMemoryAccess(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_20pageableMemoryAccess_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_pageableMemoryAccess(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_20pageableMemoryAccess_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_concurrentManagedAccess(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_23concurrentManagedAccess_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_concurrentManagedAccess(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_23concurrentManagedAccess_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_computePreemptionSupported(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_26computePreemptionSupported_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_computePreemptionSupported(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_26computePreemptionSupported_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_canUseHostPointerForRegisteredMem(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_33canUseHostPointerForRegisteredMem_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_canUseHostPointerForRegisteredMem(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_33canUseHostPointerForRegisteredMem_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_cooperativeLaunch(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_17cooperativeLaunch_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_cooperativeLaunch(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_17cooperativeLaunch_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_cooperativeMultiDeviceLaunch(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_28cooperativeMultiDeviceLaunch_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_cooperativeMultiDeviceLaunch(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_28cooperativeMultiDeviceLaunch_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_sharedMemPerBlockOptin(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_22sharedMemPerBlockOptin_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_sharedMemPerBlockOptin(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_22sharedMemPerBlockOptin_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_pageableMemoryAccessUsesHostPageTables(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_38pageableMemoryAccessUsesHostPageTables_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_pageableMemoryAccessUsesHostPageTables(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_38pageableMemoryAccessUsesHostPageTables_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_directManagedMemAccessFromHost(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_30directManagedMemAccessFromHost_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_directManagedMemAccessFromHost(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_30directManagedMemAccessFromHost_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxBlocksPerMultiProcessor(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_26maxBlocksPerMultiProcessor_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxBlocksPerMultiProcessor(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_26maxBlocksPerMultiProcessor_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_accessPolicyMaxWindowSize(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_25accessPolicyMaxWindowSize_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_accessPolicyMaxWindowSize(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_25accessPolicyMaxWindowSize_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_reservedSharedMemPerBlock(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_25reservedSharedMemPerBlock_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_reservedSharedMemPerBlock(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_25reservedSharedMemPerBlock_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_hostRegisterSupported(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_21hostRegisterSupported_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_hostRegisterSupported(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_21hostRegisterSupported_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_sparseCudaArraySupported(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_24sparseCudaArraySupported_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_sparseCudaArraySupported(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_24sparseCudaArraySupported_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_hostRegisterReadOnlySupported(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_29hostRegisterReadOnlySupported_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_hostRegisterReadOnlySupported(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_29hostRegisterReadOnlySupported_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_timelineSemaphoreInteropSupported(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_33timelineSemaphoreInteropSupported_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_timelineSemaphoreInteropSupported(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_33timelineSemaphoreInteropSupported_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_memoryPoolsSupported(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_20memoryPoolsSupported_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_memoryPoolsSupported(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_20memoryPoolsSupported_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_gpuDirectRDMASupported(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_22gpuDirectRDMASupported_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_gpuDirectRDMASupported(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_22gpuDirectRDMASupported_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_gpuDirectRDMAFlushWritesOptions(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_31gpuDirectRDMAFlushWritesOptions_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_gpuDirectRDMAFlushWritesOptions(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_31gpuDirectRDMAFlushWritesOptions_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_gpuDirectRDMAWritesOrdering(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_27gpuDirectRDMAWritesOrdering_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_gpuDirectRDMAWritesOrdering(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_27gpuDirectRDMAWritesOrdering_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_memoryPoolSupportedHandleTypes(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_30memoryPoolSupportedHandleTypes_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_memoryPoolSupportedHandleTypes(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_30memoryPoolSupportedHandleTypes_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_deferredMappingCudaArraySupported(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_33deferredMappingCudaArraySupported_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_deferredMappingCudaArraySupported(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_33deferredMappingCudaArraySupported_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_ipcEventSupported(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_17ipcEventSupported_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_ipcEventSupported(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_17ipcEventSupported_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_clusterLaunch(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_13clusterLaunch_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_clusterLaunch(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_13clusterLaunch_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_unifiedFunctionPointers(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_23unifiedFunctionPointers_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_unifiedFunctionPointers(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_23unifiedFunctionPointers_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_reserved2(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_9reserved2_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_reserved2(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_9reserved2_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_reserved1(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_9reserved1_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_reserved1(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_9reserved1_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_14cudaDeviceProp_reserved(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_8reserved_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_8reserved_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_14cudaDeviceProp_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_14cudaDeviceProp_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaDeviceProp[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_14cudaDeviceProp_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_14cudaDeviceProp_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_14cudaDeviceProp_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_14cudaDeviceProp_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_14cudaDeviceProp_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_14cudaDeviceProp_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_14cudaDeviceProp_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaDeviceProp[] = { {(char *)"name", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_name, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_name, (char *)0, 0}, {(char *)"uuid", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_uuid, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_uuid, (char *)0, 0}, {(char *)"luid", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_luid, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_luid, (char *)0, 0}, {(char *)"luidDeviceNodeMask", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_luidDeviceNodeMask, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_luidDeviceNodeMask, (char *)0, 0}, {(char *)"totalGlobalMem", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_totalGlobalMem, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_totalGlobalMem, (char *)0, 0}, {(char *)"sharedMemPerBlock", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_sharedMemPerBlock, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_sharedMemPerBlock, (char *)0, 0}, {(char *)"regsPerBlock", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_regsPerBlock, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_regsPerBlock, (char *)0, 0}, {(char *)"warpSize", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_warpSize, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_warpSize, (char *)0, 0}, {(char *)"memPitch", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_memPitch, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_memPitch, (char *)0, 0}, {(char *)"maxThreadsPerBlock", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxThreadsPerBlock, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxThreadsPerBlock, (char *)0, 0}, {(char *)"maxThreadsDim", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxThreadsDim, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxThreadsDim, (char *)0, 0}, {(char *)"maxGridSize", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxGridSize, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxGridSize, (char *)0, 0}, {(char *)"clockRate", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_clockRate, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_clockRate, (char *)0, 0}, {(char *)"totalConstMem", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_totalConstMem, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_totalConstMem, (char *)0, 0}, {(char *)"major", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_major, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_major, (char *)0, 0}, {(char *)"minor", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_minor, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_minor, (char *)0, 0}, {(char *)"textureAlignment", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_textureAlignment, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_textureAlignment, (char *)0, 0}, {(char *)"texturePitchAlignment", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_texturePitchAlignment, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_texturePitchAlignment, (char *)0, 0}, {(char *)"deviceOverlap", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_deviceOverlap, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_deviceOverlap, (char *)0, 0}, {(char *)"multiProcessorCount", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_multiProcessorCount, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_multiProcessorCount, (char *)0, 0}, {(char *)"kernelExecTimeoutEnabled", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_kernelExecTimeoutEnabled, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_kernelExecTimeoutEnabled, (char *)0, 0}, {(char *)"integrated", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_integrated, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_integrated, (char *)0, 0}, {(char *)"canMapHostMemory", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_canMapHostMemory, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_canMapHostMemory, (char *)0, 0}, {(char *)"computeMode", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_computeMode, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_computeMode, (char *)0, 0}, {(char *)"maxTexture1D", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxTexture1D, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxTexture1D, (char *)0, 0}, {(char *)"maxTexture1DMipmap", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxTexture1DMipmap, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxTexture1DMipmap, (char *)0, 0}, {(char *)"maxTexture1DLinear", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxTexture1DLinear, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxTexture1DLinear, (char *)0, 0}, {(char *)"maxTexture2D", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxTexture2D, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxTexture2D, (char *)0, 0}, {(char *)"maxTexture2DMipmap", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxTexture2DMipmap, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxTexture2DMipmap, (char *)0, 0}, {(char *)"maxTexture2DLinear", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxTexture2DLinear, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxTexture2DLinear, (char *)0, 0}, {(char *)"maxTexture2DGather", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxTexture2DGather, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxTexture2DGather, (char *)0, 0}, {(char *)"maxTexture3D", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxTexture3D, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxTexture3D, (char *)0, 0}, {(char *)"maxTexture3DAlt", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxTexture3DAlt, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxTexture3DAlt, (char *)0, 0}, {(char *)"maxTextureCubemap", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxTextureCubemap, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxTextureCubemap, (char *)0, 0}, {(char *)"maxTexture1DLayered", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxTexture1DLayered, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxTexture1DLayered, (char *)0, 0}, {(char *)"maxTexture2DLayered", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxTexture2DLayered, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxTexture2DLayered, (char *)0, 0}, {(char *)"maxTextureCubemapLayered", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxTextureCubemapLayered, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxTextureCubemapLayered, (char *)0, 0}, {(char *)"maxSurface1D", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxSurface1D, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxSurface1D, (char *)0, 0}, {(char *)"maxSurface2D", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxSurface2D, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxSurface2D, (char *)0, 0}, {(char *)"maxSurface3D", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxSurface3D, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxSurface3D, (char *)0, 0}, {(char *)"maxSurface1DLayered", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxSurface1DLayered, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxSurface1DLayered, (char *)0, 0}, {(char *)"maxSurface2DLayered", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxSurface2DLayered, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxSurface2DLayered, (char *)0, 0}, {(char *)"maxSurfaceCubemap", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxSurfaceCubemap, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxSurfaceCubemap, (char *)0, 0}, {(char *)"maxSurfaceCubemapLayered", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxSurfaceCubemapLayered, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxSurfaceCubemapLayered, (char *)0, 0}, {(char *)"surfaceAlignment", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_surfaceAlignment, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_surfaceAlignment, (char *)0, 0}, {(char *)"concurrentKernels", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_concurrentKernels, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_concurrentKernels, (char *)0, 0}, {(char *)"ECCEnabled", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_ECCEnabled, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_ECCEnabled, (char *)0, 0}, {(char *)"pciBusID", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_pciBusID, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_pciBusID, (char *)0, 0}, {(char *)"pciDeviceID", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_pciDeviceID, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_pciDeviceID, (char *)0, 0}, {(char *)"pciDomainID", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_pciDomainID, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_pciDomainID, (char *)0, 0}, {(char *)"tccDriver", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_tccDriver, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_tccDriver, (char *)0, 0}, {(char *)"asyncEngineCount", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_asyncEngineCount, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_asyncEngineCount, (char *)0, 0}, {(char *)"unifiedAddressing", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_unifiedAddressing, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_unifiedAddressing, (char *)0, 0}, {(char *)"memoryClockRate", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_memoryClockRate, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_memoryClockRate, (char *)0, 0}, {(char *)"memoryBusWidth", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_memoryBusWidth, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_memoryBusWidth, (char *)0, 0}, {(char *)"l2CacheSize", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_l2CacheSize, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_l2CacheSize, (char *)0, 0}, {(char *)"persistingL2CacheMaxSize", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_persistingL2CacheMaxSize, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_persistingL2CacheMaxSize, (char *)0, 0}, {(char *)"maxThreadsPerMultiProcessor", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxThreadsPerMultiProcessor, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxThreadsPerMultiProcessor, (char *)0, 0}, {(char *)"streamPrioritiesSupported", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_streamPrioritiesSupported, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_streamPrioritiesSupported, (char *)0, 0}, {(char *)"globalL1CacheSupported", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_globalL1CacheSupported, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_globalL1CacheSupported, (char *)0, 0}, {(char *)"localL1CacheSupported", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_localL1CacheSupported, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_localL1CacheSupported, (char *)0, 0}, {(char *)"sharedMemPerMultiprocessor", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_sharedMemPerMultiprocessor, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_sharedMemPerMultiprocessor, (char *)0, 0}, {(char *)"regsPerMultiprocessor", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_regsPerMultiprocessor, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_regsPerMultiprocessor, (char *)0, 0}, {(char *)"managedMemory", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_managedMemory, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_managedMemory, (char *)0, 0}, {(char *)"isMultiGpuBoard", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_isMultiGpuBoard, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_isMultiGpuBoard, (char *)0, 0}, {(char *)"multiGpuBoardGroupID", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_multiGpuBoardGroupID, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_multiGpuBoardGroupID, (char *)0, 0}, {(char *)"hostNativeAtomicSupported", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_hostNativeAtomicSupported, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_hostNativeAtomicSupported, (char *)0, 0}, {(char *)"singleToDoublePrecisionPerfRatio", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_singleToDoublePrecisionPerfRatio, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_singleToDoublePrecisionPerfRatio, (char *)0, 0}, {(char *)"pageableMemoryAccess", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_pageableMemoryAccess, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_pageableMemoryAccess, (char *)0, 0}, {(char *)"concurrentManagedAccess", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_concurrentManagedAccess, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_concurrentManagedAccess, (char *)0, 0}, {(char *)"computePreemptionSupported", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_computePreemptionSupported, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_computePreemptionSupported, (char *)0, 0}, {(char *)"canUseHostPointerForRegisteredMem", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_canUseHostPointerForRegisteredMem, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_canUseHostPointerForRegisteredMem, (char *)0, 0}, {(char *)"cooperativeLaunch", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_cooperativeLaunch, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_cooperativeLaunch, (char *)0, 0}, {(char *)"cooperativeMultiDeviceLaunch", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_cooperativeMultiDeviceLaunch, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_cooperativeMultiDeviceLaunch, (char *)0, 0}, {(char *)"sharedMemPerBlockOptin", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_sharedMemPerBlockOptin, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_sharedMemPerBlockOptin, (char *)0, 0}, {(char *)"pageableMemoryAccessUsesHostPageTables", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_pageableMemoryAccessUsesHostPageTables, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_pageableMemoryAccessUsesHostPageTables, (char *)0, 0}, {(char *)"directManagedMemAccessFromHost", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_directManagedMemAccessFromHost, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_directManagedMemAccessFromHost, (char *)0, 0}, {(char *)"maxBlocksPerMultiProcessor", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_maxBlocksPerMultiProcessor, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_maxBlocksPerMultiProcessor, (char *)0, 0}, {(char *)"accessPolicyMaxWindowSize", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_accessPolicyMaxWindowSize, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_accessPolicyMaxWindowSize, (char *)0, 0}, {(char *)"reservedSharedMemPerBlock", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_reservedSharedMemPerBlock, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_reservedSharedMemPerBlock, (char *)0, 0}, {(char *)"hostRegisterSupported", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_hostRegisterSupported, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_hostRegisterSupported, (char *)0, 0}, {(char *)"sparseCudaArraySupported", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_sparseCudaArraySupported, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_sparseCudaArraySupported, (char *)0, 0}, {(char *)"hostRegisterReadOnlySupported", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_hostRegisterReadOnlySupported, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_hostRegisterReadOnlySupported, (char *)0, 0}, {(char *)"timelineSemaphoreInteropSupported", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_timelineSemaphoreInteropSupported, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_timelineSemaphoreInteropSupported, (char *)0, 0}, {(char *)"memoryPoolsSupported", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_memoryPoolsSupported, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_memoryPoolsSupported, (char *)0, 0}, {(char *)"gpuDirectRDMASupported", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_gpuDirectRDMASupported, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_gpuDirectRDMASupported, (char *)0, 0}, {(char *)"gpuDirectRDMAFlushWritesOptions", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_gpuDirectRDMAFlushWritesOptions, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_gpuDirectRDMAFlushWritesOptions, (char *)0, 0}, {(char *)"gpuDirectRDMAWritesOrdering", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_gpuDirectRDMAWritesOrdering, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_gpuDirectRDMAWritesOrdering, (char *)0, 0}, {(char *)"memoryPoolSupportedHandleTypes", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_memoryPoolSupportedHandleTypes, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_memoryPoolSupportedHandleTypes, (char *)0, 0}, {(char *)"deferredMappingCudaArraySupported", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_deferredMappingCudaArraySupported, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_deferredMappingCudaArraySupported, (char *)0, 0}, {(char *)"ipcEventSupported", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_ipcEventSupported, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_ipcEventSupported, (char *)0, 0}, {(char *)"clusterLaunch", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_clusterLaunch, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_clusterLaunch, (char *)0, 0}, {(char *)"unifiedFunctionPointers", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_unifiedFunctionPointers, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_unifiedFunctionPointers, (char *)0, 0}, {(char *)"reserved2", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_reserved2, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_reserved2, (char *)0, 0}, {(char *)"reserved1", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_reserved1, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_reserved1, (char *)0, 0}, {(char *)"reserved", __pyx_getprop_4cuda_6cudart_14cudaDeviceProp_reserved, __pyx_setprop_4cuda_6cudart_14cudaDeviceProp_reserved, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaDeviceProp_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaDeviceProp}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_14cudaDeviceProp_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaDeviceProp(void_ptr _ptr=0)\n\n CUDA device properties\n\n Attributes\n ----------\n name : bytes\n ASCII string identifying device\n uuid : cudaUUID_t\n 16-byte unique identifier\n luid : bytes\n 8-byte locally unique identifier. Value is undefined on TCC and\n non-Windows platforms\n luidDeviceNodeMask : unsigned int\n LUID device node mask. Value is undefined on TCC and non-Windows\n platforms\n totalGlobalMem : size_t\n Global memory available on device in bytes\n sharedMemPerBlock : size_t\n Shared memory available per block in bytes\n regsPerBlock : int\n 32-bit registers available per block\n warpSize : int\n Warp size in threads\n memPitch : size_t\n Maximum pitch in bytes allowed by memory copies\n maxThreadsPerBlock : int\n Maximum number of threads per block\n maxThreadsDim : List[int]\n Maximum size of each dimension of a block\n maxGridSize : List[int]\n Maximum size of each dimension of a grid\n clockRate : int\n Deprecated, Clock frequency in kilohertz\n totalConstMem : size_t\n Constant memory available on device in bytes\n major : int\n Major compute capability\n minor : int\n Minor compute capability\n textureAlignment : size_t\n Alignment requirement for textures\n texturePitchAlignment : size_t\n Pitch alignment requirement for texture references bound to pitched\n memory\n deviceOverlap : int\n Device can concurrently copy memory and execute a kernel.\n Deprecated. Use instead asyncEngineCount.\n multiProcessorCount : int\n Number of multiprocessors on device\n kernelExecTimeoutEnabled : int\n Deprecated, Specified whether there is a run time limit on kernels\n integrated : int\n Device is integrated as opposed to discrete\n canMapHostMemory : int\n Device can map host memory wit""h\n cudaHostAlloc/cudaHostGetDevicePointer\n computeMode : int\n Deprecated, Compute mode (See cudaComputeMode)\n maxTexture1D : int\n Maximum 1D texture size\n maxTexture1DMipmap : int\n Maximum 1D mipmapped texture size\n maxTexture1DLinear : int\n Deprecated, do not use. Use cudaDeviceGetTexture1DLinearMaxWidth()\n or cuDeviceGetTexture1DLinearMaxWidth() instead.\n maxTexture2D : List[int]\n Maximum 2D texture dimensions\n maxTexture2DMipmap : List[int]\n Maximum 2D mipmapped texture dimensions\n maxTexture2DLinear : List[int]\n Maximum dimensions (width, height, pitch) for 2D textures bound to\n pitched memory\n maxTexture2DGather : List[int]\n Maximum 2D texture dimensions if texture gather operations have to\n be performed\n maxTexture3D : List[int]\n Maximum 3D texture dimensions\n maxTexture3DAlt : List[int]\n Maximum alternate 3D texture dimensions\n maxTextureCubemap : int\n Maximum Cubemap texture dimensions\n maxTexture1DLayered : List[int]\n Maximum 1D layered texture dimensions\n maxTexture2DLayered : List[int]\n Maximum 2D layered texture dimensions\n maxTextureCubemapLayered : List[int]\n Maximum Cubemap layered texture dimensions\n maxSurface1D : int\n Maximum 1D surface size\n maxSurface2D : List[int]\n Maximum 2D surface dimensions\n maxSurface3D : List[int]\n Maximum 3D surface dimensions\n maxSurface1DLayered : List[int]\n Maximum 1D layered surface dimensions\n maxSurface2DLayered : List[int]\n Maximum 2D layered surface dimensions\n maxSurfaceCubemap : int\n Maximum Cubemap surface dimensions\n maxSurfaceCubemapLayered : List[int]\n Maximum Cubemap layered surface dimensions\n surfaceAlignment : size_t\n Alignment requirements for surfaces\n concurrentKernels : int\n Device can possibly exe""cute multiple kernels concurrently\n ECCEnabled : int\n Device has ECC support enabled\n pciBusID : int\n PCI bus ID of the device\n pciDeviceID : int\n PCI device ID of the device\n pciDomainID : int\n PCI domain ID of the device\n tccDriver : int\n 1 if device is a Tesla device using TCC driver, 0 otherwise\n asyncEngineCount : int\n Number of asynchronous engines\n unifiedAddressing : int\n Device shares a unified address space with the host\n memoryClockRate : int\n Deprecated, Peak memory clock frequency in kilohertz\n memoryBusWidth : int\n Global memory bus width in bits\n l2CacheSize : int\n Size of L2 cache in bytes\n persistingL2CacheMaxSize : int\n Device's maximum l2 persisting lines capacity setting in bytes\n maxThreadsPerMultiProcessor : int\n Maximum resident threads per multiprocessor\n streamPrioritiesSupported : int\n Device supports stream priorities\n globalL1CacheSupported : int\n Device supports caching globals in L1\n localL1CacheSupported : int\n Device supports caching locals in L1\n sharedMemPerMultiprocessor : size_t\n Shared memory available per multiprocessor in bytes\n regsPerMultiprocessor : int\n 32-bit registers available per multiprocessor\n managedMemory : int\n Device supports allocating managed memory on this system\n isMultiGpuBoard : int\n Device is on a multi-GPU board\n multiGpuBoardGroupID : int\n Unique identifier for a group of devices on the same multi-GPU\n board\n hostNativeAtomicSupported : int\n Link between the device and the host supports native atomic\n operations\n singleToDoublePrecisionPerfRatio : int\n Deprecated, Ratio of single precision performance (in floating-\n point operations per second) to double precision performance\n pageableMemoryAccess : int\n Device"" supports coherently accessing pageable memory without\n calling cudaHostRegister on it\n concurrentManagedAccess : int\n Device can coherently access managed memory concurrently with the\n CPU\n computePreemptionSupported : int\n Device supports Compute Preemption\n canUseHostPointerForRegisteredMem : int\n Device can access host registered memory at the same virtual\n address as the CPU\n cooperativeLaunch : int\n Device supports launching cooperative kernels via\n cudaLaunchCooperativeKernel\n cooperativeMultiDeviceLaunch : int\n Deprecated, cudaLaunchCooperativeKernelMultiDevice is deprecated.\n sharedMemPerBlockOptin : size_t\n Per device maximum shared memory per block usable by special opt in\n pageableMemoryAccessUsesHostPageTables : int\n Device accesses pageable memory via the host's page tables\n directManagedMemAccessFromHost : int\n Host can directly access managed memory on the device without\n migration.\n maxBlocksPerMultiProcessor : int\n Maximum number of resident blocks per multiprocessor\n accessPolicyMaxWindowSize : int\n The maximum value of cudaAccessPolicyWindow::num_bytes.\n reservedSharedMemPerBlock : size_t\n Shared memory reserved by CUDA driver per block in bytes\n hostRegisterSupported : int\n Device supports host memory registration via cudaHostRegister.\n sparseCudaArraySupported : int\n 1 if the device supports sparse CUDA arrays and sparse CUDA\n mipmapped arrays, 0 otherwise\n hostRegisterReadOnlySupported : int\n Device supports using the cudaHostRegister flag\n cudaHostRegisterReadOnly to register memory that must be mapped as\n read-only to the GPU\n timelineSemaphoreInteropSupported : int\n External timeline semaphore interop is supported on the device\n memoryPoolsSupported : int\n 1 if the device supports using th""e cudaMallocAsync and cudaMemPool\n family of APIs, 0 otherwise\n gpuDirectRDMASupported : int\n 1 if the device supports GPUDirect RDMA APIs, 0 otherwise\n gpuDirectRDMAFlushWritesOptions : unsigned int\n Bitmask to be interpreted according to the\n cudaFlushGPUDirectRDMAWritesOptions enum\n gpuDirectRDMAWritesOrdering : int\n See the cudaGPUDirectRDMAWritesOrdering enum for numerical values\n memoryPoolSupportedHandleTypes : unsigned int\n Bitmask of handle types supported with mempool-based IPC\n deferredMappingCudaArraySupported : int\n 1 if the device supports deferred mapping CUDA arrays and CUDA\n mipmapped arrays\n ipcEventSupported : int\n Device supports IPC Events.\n clusterLaunch : int\n Indicates device supports cluster launch\n unifiedFunctionPointers : int\n Indicates device supports unified pointers\n reserved2 : List[int]\n\n reserved1 : List[int]\n Reserved for future use\n reserved : List[int]\n Reserved for future use\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaDeviceProp}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaDeviceProp}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaDeviceProp}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaDeviceProp}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_14cudaDeviceProp_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaDeviceProp}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaDeviceProp_spec = { "cuda.cudart.cudaDeviceProp", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_cudaDeviceProp_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaDeviceProp = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaDeviceProp", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaDeviceProp), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaDeviceProp, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n CUDA device properties\n\n Attributes\n ----------\n name : bytes\n ASCII string identifying device\n uuid : cudaUUID_t\n 16-byte unique identifier\n luid : bytes\n 8-byte locally unique identifier. Value is undefined on TCC and\n non-Windows platforms\n luidDeviceNodeMask : unsigned int\n LUID device node mask. Value is undefined on TCC and non-Windows\n platforms\n totalGlobalMem : size_t\n Global memory available on device in bytes\n sharedMemPerBlock : size_t\n Shared memory available per block in bytes\n regsPerBlock : int\n 32-bit registers available per block\n warpSize : int\n Warp size in threads\n memPitch : size_t\n Maximum pitch in bytes allowed by memory copies\n maxThreadsPerBlock : int\n Maximum number of threads per block\n maxThreadsDim : List[int]\n Maximum size of each dimension of a block\n maxGridSize : List[int]\n Maximum size of each dimension of a grid\n clockRate : int\n Deprecated, Clock frequency in kilohertz\n totalConstMem : size_t\n Constant memory available on device in bytes\n major : int\n Major compute capability\n minor : int\n Minor compute capability\n textureAlignment : size_t\n Alignment requirement for textures\n texturePitchAlignment : size_t\n Pitch alignment requirement for texture references bound to pitched\n memory\n deviceOverlap : int\n Device can concurrently copy memory and execute a kernel.\n Deprecated. Use instead asyncEngineCount.\n multiProcessorCount : int\n Number of multiprocessors on device\n kernelExecTimeoutEnabled : int\n Deprecated, Specified whether there is a run time limit on kernels\n integrated : int\n Device is integrated as opposed to discrete\n canMapHostMemory : int\n Device can map host memory wit""h\n cudaHostAlloc/cudaHostGetDevicePointer\n computeMode : int\n Deprecated, Compute mode (See cudaComputeMode)\n maxTexture1D : int\n Maximum 1D texture size\n maxTexture1DMipmap : int\n Maximum 1D mipmapped texture size\n maxTexture1DLinear : int\n Deprecated, do not use. Use cudaDeviceGetTexture1DLinearMaxWidth()\n or cuDeviceGetTexture1DLinearMaxWidth() instead.\n maxTexture2D : List[int]\n Maximum 2D texture dimensions\n maxTexture2DMipmap : List[int]\n Maximum 2D mipmapped texture dimensions\n maxTexture2DLinear : List[int]\n Maximum dimensions (width, height, pitch) for 2D textures bound to\n pitched memory\n maxTexture2DGather : List[int]\n Maximum 2D texture dimensions if texture gather operations have to\n be performed\n maxTexture3D : List[int]\n Maximum 3D texture dimensions\n maxTexture3DAlt : List[int]\n Maximum alternate 3D texture dimensions\n maxTextureCubemap : int\n Maximum Cubemap texture dimensions\n maxTexture1DLayered : List[int]\n Maximum 1D layered texture dimensions\n maxTexture2DLayered : List[int]\n Maximum 2D layered texture dimensions\n maxTextureCubemapLayered : List[int]\n Maximum Cubemap layered texture dimensions\n maxSurface1D : int\n Maximum 1D surface size\n maxSurface2D : List[int]\n Maximum 2D surface dimensions\n maxSurface3D : List[int]\n Maximum 3D surface dimensions\n maxSurface1DLayered : List[int]\n Maximum 1D layered surface dimensions\n maxSurface2DLayered : List[int]\n Maximum 2D layered surface dimensions\n maxSurfaceCubemap : int\n Maximum Cubemap surface dimensions\n maxSurfaceCubemapLayered : List[int]\n Maximum Cubemap layered surface dimensions\n surfaceAlignment : size_t\n Alignment requirements for surfaces\n concurrentKernels : int\n Device can possibly exe""cute multiple kernels concurrently\n ECCEnabled : int\n Device has ECC support enabled\n pciBusID : int\n PCI bus ID of the device\n pciDeviceID : int\n PCI device ID of the device\n pciDomainID : int\n PCI domain ID of the device\n tccDriver : int\n 1 if device is a Tesla device using TCC driver, 0 otherwise\n asyncEngineCount : int\n Number of asynchronous engines\n unifiedAddressing : int\n Device shares a unified address space with the host\n memoryClockRate : int\n Deprecated, Peak memory clock frequency in kilohertz\n memoryBusWidth : int\n Global memory bus width in bits\n l2CacheSize : int\n Size of L2 cache in bytes\n persistingL2CacheMaxSize : int\n Device's maximum l2 persisting lines capacity setting in bytes\n maxThreadsPerMultiProcessor : int\n Maximum resident threads per multiprocessor\n streamPrioritiesSupported : int\n Device supports stream priorities\n globalL1CacheSupported : int\n Device supports caching globals in L1\n localL1CacheSupported : int\n Device supports caching locals in L1\n sharedMemPerMultiprocessor : size_t\n Shared memory available per multiprocessor in bytes\n regsPerMultiprocessor : int\n 32-bit registers available per multiprocessor\n managedMemory : int\n Device supports allocating managed memory on this system\n isMultiGpuBoard : int\n Device is on a multi-GPU board\n multiGpuBoardGroupID : int\n Unique identifier for a group of devices on the same multi-GPU\n board\n hostNativeAtomicSupported : int\n Link between the device and the host supports native atomic\n operations\n singleToDoublePrecisionPerfRatio : int\n Deprecated, Ratio of single precision performance (in floating-\n point operations per second) to double precision performance\n pageableMemoryAccess : int\n Device"" supports coherently accessing pageable memory without\n calling cudaHostRegister on it\n concurrentManagedAccess : int\n Device can coherently access managed memory concurrently with the\n CPU\n computePreemptionSupported : int\n Device supports Compute Preemption\n canUseHostPointerForRegisteredMem : int\n Device can access host registered memory at the same virtual\n address as the CPU\n cooperativeLaunch : int\n Device supports launching cooperative kernels via\n cudaLaunchCooperativeKernel\n cooperativeMultiDeviceLaunch : int\n Deprecated, cudaLaunchCooperativeKernelMultiDevice is deprecated.\n sharedMemPerBlockOptin : size_t\n Per device maximum shared memory per block usable by special opt in\n pageableMemoryAccessUsesHostPageTables : int\n Device accesses pageable memory via the host's page tables\n directManagedMemAccessFromHost : int\n Host can directly access managed memory on the device without\n migration.\n maxBlocksPerMultiProcessor : int\n Maximum number of resident blocks per multiprocessor\n accessPolicyMaxWindowSize : int\n The maximum value of cudaAccessPolicyWindow::num_bytes.\n reservedSharedMemPerBlock : size_t\n Shared memory reserved by CUDA driver per block in bytes\n hostRegisterSupported : int\n Device supports host memory registration via cudaHostRegister.\n sparseCudaArraySupported : int\n 1 if the device supports sparse CUDA arrays and sparse CUDA\n mipmapped arrays, 0 otherwise\n hostRegisterReadOnlySupported : int\n Device supports using the cudaHostRegister flag\n cudaHostRegisterReadOnly to register memory that must be mapped as\n read-only to the GPU\n timelineSemaphoreInteropSupported : int\n External timeline semaphore interop is supported on the device\n memoryPoolsSupported : int\n 1 if the device supports using th""e cudaMallocAsync and cudaMemPool\n family of APIs, 0 otherwise\n gpuDirectRDMASupported : int\n 1 if the device supports GPUDirect RDMA APIs, 0 otherwise\n gpuDirectRDMAFlushWritesOptions : unsigned int\n Bitmask to be interpreted according to the\n cudaFlushGPUDirectRDMAWritesOptions enum\n gpuDirectRDMAWritesOrdering : int\n See the cudaGPUDirectRDMAWritesOrdering enum for numerical values\n memoryPoolSupportedHandleTypes : unsigned int\n Bitmask of handle types supported with mempool-based IPC\n deferredMappingCudaArraySupported : int\n 1 if the device supports deferred mapping CUDA arrays and CUDA\n mipmapped arrays\n ipcEventSupported : int\n Device supports IPC Events.\n clusterLaunch : int\n Indicates device supports cluster launch\n unifiedFunctionPointers : int\n Indicates device supports unified pointers\n reserved2 : List[int]\n\n reserved1 : List[int]\n Reserved for future use\n reserved : List[int]\n Reserved for future use\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaDeviceProp, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_cudaDeviceProp, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_cudaDeviceProp, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_14cudaDeviceProp_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaIpcEventHandle_st(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaIpcEventHandle_st *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaIpcEventHandle_st *)o); new((void*)&(p->_cudaIpcEventHandle_st__val)) struct cudaIpcEventHandle_st(); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaIpcEventHandle_st(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaIpcEventHandle_st *p = (struct __pyx_obj_4cuda_6cudart_cudaIpcEventHandle_st *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_21cudaIpcEventHandle_st_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaIpcEventHandle_st__val); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_21cudaIpcEventHandle_st_reserved(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_21cudaIpcEventHandle_st_8reserved_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_21cudaIpcEventHandle_st_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_21cudaIpcEventHandle_st_8reserved_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_21cudaIpcEventHandle_st_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_21cudaIpcEventHandle_st_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaIpcEventHandle_st[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_21cudaIpcEventHandle_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_21cudaIpcEventHandle_st_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_21cudaIpcEventHandle_st_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_21cudaIpcEventHandle_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_21cudaIpcEventHandle_st_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_21cudaIpcEventHandle_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_21cudaIpcEventHandle_st_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaIpcEventHandle_st[] = { {(char *)"reserved", __pyx_getprop_4cuda_6cudart_21cudaIpcEventHandle_st_reserved, __pyx_setprop_4cuda_6cudart_21cudaIpcEventHandle_st_reserved, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaIpcEventHandle_st_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaIpcEventHandle_st}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_21cudaIpcEventHandle_st_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaIpcEventHandle_st(void_ptr _ptr=0)\n\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\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaIpcEventHandle_st}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaIpcEventHandle_st}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_21cudaIpcEventHandle_st_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaIpcEventHandle_st}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaIpcEventHandle_st_spec = { "cuda.cudart.cudaIpcEventHandle_st", sizeof(struct __pyx_obj_4cuda_6cudart_cudaIpcEventHandle_st), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaIpcEventHandle_st_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaIpcEventHandle_st = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaIpcEventHandle_st", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaIpcEventHandle_st), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaIpcEventHandle_st, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\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\n "), /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_cudaIpcEventHandle_st, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_21cudaIpcEventHandle_st_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaIpcMemHandle_st(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaIpcMemHandle_st *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaIpcMemHandle_st *)o); new((void*)&(p->_cudaIpcMemHandle_st__val)) struct cudaIpcMemHandle_st(); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaIpcMemHandle_st(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaIpcMemHandle_st *p = (struct __pyx_obj_4cuda_6cudart_cudaIpcMemHandle_st *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_19cudaIpcMemHandle_st_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaIpcMemHandle_st__val); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_19cudaIpcMemHandle_st_reserved(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_19cudaIpcMemHandle_st_8reserved_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_19cudaIpcMemHandle_st_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_19cudaIpcMemHandle_st_8reserved_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_19cudaIpcMemHandle_st_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_19cudaIpcMemHandle_st_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaIpcMemHandle_st[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_19cudaIpcMemHandle_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_19cudaIpcMemHandle_st_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_19cudaIpcMemHandle_st_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_19cudaIpcMemHandle_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_19cudaIpcMemHandle_st_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_19cudaIpcMemHandle_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_19cudaIpcMemHandle_st_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaIpcMemHandle_st[] = { {(char *)"reserved", __pyx_getprop_4cuda_6cudart_19cudaIpcMemHandle_st_reserved, __pyx_setprop_4cuda_6cudart_19cudaIpcMemHandle_st_reserved, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaIpcMemHandle_st_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaIpcMemHandle_st}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_19cudaIpcMemHandle_st_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaIpcMemHandle_st(void_ptr _ptr=0)\n\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\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaIpcMemHandle_st}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaIpcMemHandle_st}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_19cudaIpcMemHandle_st_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaIpcMemHandle_st}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaIpcMemHandle_st_spec = { "cuda.cudart.cudaIpcMemHandle_st", sizeof(struct __pyx_obj_4cuda_6cudart_cudaIpcMemHandle_st), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaIpcMemHandle_st_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaIpcMemHandle_st = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaIpcMemHandle_st", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaIpcMemHandle_st), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaIpcMemHandle_st, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\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\n "), /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_cudaIpcMemHandle_st, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_19cudaIpcMemHandle_st_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaMemFabricHandle_st(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaMemFabricHandle_st *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaMemFabricHandle_st *)o); new((void*)&(p->_cudaMemFabricHandle_st__val)) struct cudaMemFabricHandle_st(); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaMemFabricHandle_st(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaMemFabricHandle_st *p = (struct __pyx_obj_4cuda_6cudart_cudaMemFabricHandle_st *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_22cudaMemFabricHandle_st_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaMemFabricHandle_st__val); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_22cudaMemFabricHandle_st_reserved(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_22cudaMemFabricHandle_st_8reserved_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_22cudaMemFabricHandle_st_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_22cudaMemFabricHandle_st_8reserved_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_22cudaMemFabricHandle_st_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_22cudaMemFabricHandle_st_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaMemFabricHandle_st[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_22cudaMemFabricHandle_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_22cudaMemFabricHandle_st_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_22cudaMemFabricHandle_st_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_22cudaMemFabricHandle_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_22cudaMemFabricHandle_st_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_22cudaMemFabricHandle_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_22cudaMemFabricHandle_st_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaMemFabricHandle_st[] = { {(char *)"reserved", __pyx_getprop_4cuda_6cudart_22cudaMemFabricHandle_st_reserved, __pyx_setprop_4cuda_6cudart_22cudaMemFabricHandle_st_reserved, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaMemFabricHandle_st_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaMemFabricHandle_st}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_22cudaMemFabricHandle_st_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaMemFabricHandle_st(void_ptr _ptr=0)\n\n Attributes\n ----------\n reserved : bytes\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaMemFabricHandle_st}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaMemFabricHandle_st}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_22cudaMemFabricHandle_st_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaMemFabricHandle_st}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaMemFabricHandle_st_spec = { "cuda.cudart.cudaMemFabricHandle_st", sizeof(struct __pyx_obj_4cuda_6cudart_cudaMemFabricHandle_st), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaMemFabricHandle_st_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaMemFabricHandle_st = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaMemFabricHandle_st", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaMemFabricHandle_st), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaMemFabricHandle_st, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Attributes\n ----------\n reserved : bytes\n\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_6cudart_cudaMemFabricHandle_st, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_22cudaMemFabricHandle_st_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_anon_struct5(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_anon_struct5(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_12anon_struct5_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_12anon_struct5_handle(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_12anon_struct5_6handle_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_12anon_struct5_handle(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_12anon_struct5_6handle_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_12anon_struct5_name(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_12anon_struct5_4name_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_12anon_struct5_name(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_12anon_struct5_4name_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_12anon_struct5_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_12anon_struct5_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_anon_struct5[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct5_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct5_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_12anon_struct5_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct5_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct5_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct5_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct5_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_anon_struct5[] = { {(char *)"handle", __pyx_getprop_4cuda_6cudart_12anon_struct5_handle, __pyx_setprop_4cuda_6cudart_12anon_struct5_handle, (char *)0, 0}, {(char *)"name", __pyx_getprop_4cuda_6cudart_12anon_struct5_name, __pyx_setprop_4cuda_6cudart_12anon_struct5_name, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_anon_struct5_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_anon_struct5}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_12anon_struct5_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("anon_struct5(void_ptr _ptr)\n\n Attributes\n ----------\n handle : Any\n\n name : Any\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_anon_struct5}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_anon_struct5}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_12anon_struct5_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_anon_struct5}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_anon_struct5_spec = { "cuda.cudart.anon_struct5", sizeof(struct __pyx_obj_4cuda_6cudart_anon_struct5), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_anon_struct5_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_anon_struct5 = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""anon_struct5", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_anon_struct5), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_anon_struct5, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Attributes\n ----------\n handle : Any\n\n name : Any\n\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_6cudart_anon_struct5, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_12anon_struct5_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_anon_union1(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_anon_union1 *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_anon_union1 *)o); p->_win32 = ((struct __pyx_obj_4cuda_6cudart_anon_struct5 *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_anon_union1(PyObject *o) { struct __pyx_obj_4cuda_6cudart_anon_union1 *p = (struct __pyx_obj_4cuda_6cudart_anon_union1 *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_11anon_union1_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } Py_CLEAR(p->_win32); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_anon_union1(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_anon_union1 *p = (struct __pyx_obj_4cuda_6cudart_anon_union1 *)o; if (p->_win32) { e = (*v)(((PyObject *)p->_win32), a); if (e) return e; } return 0; } static int __pyx_tp_clear_4cuda_6cudart_anon_union1(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_anon_union1 *p = (struct __pyx_obj_4cuda_6cudart_anon_union1 *)o; tmp = ((PyObject*)p->_win32); p->_win32 = ((struct __pyx_obj_4cuda_6cudart_anon_struct5 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_11anon_union1_fd(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_11anon_union1_2fd_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_11anon_union1_fd(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_11anon_union1_2fd_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_11anon_union1_win32(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_11anon_union1_5win32_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_11anon_union1_win32(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_11anon_union1_5win32_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_11anon_union1_nvSciBufObject(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_11anon_union1_14nvSciBufObject_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_11anon_union1_nvSciBufObject(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_11anon_union1_14nvSciBufObject_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_11anon_union1_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_11anon_union1_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_anon_union1[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union1_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union1_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_11anon_union1_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union1_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union1_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union1_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union1_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_anon_union1[] = { {(char *)"fd", __pyx_getprop_4cuda_6cudart_11anon_union1_fd, __pyx_setprop_4cuda_6cudart_11anon_union1_fd, (char *)0, 0}, {(char *)"win32", __pyx_getprop_4cuda_6cudart_11anon_union1_win32, __pyx_setprop_4cuda_6cudart_11anon_union1_win32, (char *)0, 0}, {(char *)"nvSciBufObject", __pyx_getprop_4cuda_6cudart_11anon_union1_nvSciBufObject, __pyx_setprop_4cuda_6cudart_11anon_union1_nvSciBufObject, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_anon_union1_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_anon_union1}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_11anon_union1_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("anon_union1(void_ptr _ptr)\n\n Attributes\n ----------\n fd : int\n\n win32 : anon_struct5\n\n nvSciBufObject : Any\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_anon_union1}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_anon_union1}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_anon_union1}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_anon_union1}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_11anon_union1_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_anon_union1}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_anon_union1_spec = { "cuda.cudart.anon_union1", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_anon_union1_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_anon_union1 = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""anon_union1", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_anon_union1), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_anon_union1, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Attributes\n ----------\n fd : int\n\n win32 : anon_struct5\n\n nvSciBufObject : Any\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_anon_union1, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_anon_union1, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_anon_union1, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_11anon_union1_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaExternalMemoryHandleDesc(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *)o); p->_handle = ((struct __pyx_obj_4cuda_6cudart_anon_union1 *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaExternalMemoryHandleDesc(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *p = (struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_28cudaExternalMemoryHandleDesc_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } Py_CLEAR(p->_handle); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_cudaExternalMemoryHandleDesc(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *p = (struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *)o; if (p->_handle) { e = (*v)(((PyObject *)p->_handle), a); if (e) return e; } return 0; } static int __pyx_tp_clear_4cuda_6cudart_cudaExternalMemoryHandleDesc(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *p = (struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc *)o; tmp = ((PyObject*)p->_handle); p->_handle = ((struct __pyx_obj_4cuda_6cudart_anon_union1 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_28cudaExternalMemoryHandleDesc_type(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_28cudaExternalMemoryHandleDesc_4type_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_28cudaExternalMemoryHandleDesc_type(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_28cudaExternalMemoryHandleDesc_4type_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_28cudaExternalMemoryHandleDesc_handle(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_28cudaExternalMemoryHandleDesc_6handle_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_28cudaExternalMemoryHandleDesc_handle(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_28cudaExternalMemoryHandleDesc_6handle_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_28cudaExternalMemoryHandleDesc_size(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_28cudaExternalMemoryHandleDesc_4size_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_28cudaExternalMemoryHandleDesc_size(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_28cudaExternalMemoryHandleDesc_4size_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_28cudaExternalMemoryHandleDesc_flags(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_28cudaExternalMemoryHandleDesc_5flags_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_28cudaExternalMemoryHandleDesc_flags(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_28cudaExternalMemoryHandleDesc_5flags_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_28cudaExternalMemoryHandleDesc_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_28cudaExternalMemoryHandleDesc_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaExternalMemoryHandleDesc[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_28cudaExternalMemoryHandleDesc_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_28cudaExternalMemoryHandleDesc_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_28cudaExternalMemoryHandleDesc_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_28cudaExternalMemoryHandleDesc_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_28cudaExternalMemoryHandleDesc_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_28cudaExternalMemoryHandleDesc_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_28cudaExternalMemoryHandleDesc_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaExternalMemoryHandleDesc[] = { {(char *)"type", __pyx_getprop_4cuda_6cudart_28cudaExternalMemoryHandleDesc_type, __pyx_setprop_4cuda_6cudart_28cudaExternalMemoryHandleDesc_type, (char *)0, 0}, {(char *)"handle", __pyx_getprop_4cuda_6cudart_28cudaExternalMemoryHandleDesc_handle, __pyx_setprop_4cuda_6cudart_28cudaExternalMemoryHandleDesc_handle, (char *)0, 0}, {(char *)"size", __pyx_getprop_4cuda_6cudart_28cudaExternalMemoryHandleDesc_size, __pyx_setprop_4cuda_6cudart_28cudaExternalMemoryHandleDesc_size, (char *)0, 0}, {(char *)"flags", __pyx_getprop_4cuda_6cudart_28cudaExternalMemoryHandleDesc_flags, __pyx_setprop_4cuda_6cudart_28cudaExternalMemoryHandleDesc_flags, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaExternalMemoryHandleDesc_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaExternalMemoryHandleDesc}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_28cudaExternalMemoryHandleDesc_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaExternalMemoryHandleDesc(void_ptr _ptr=0)\n\n External memory handle descriptor\n\n Attributes\n ----------\n type : cudaExternalMemoryHandleType\n Type of the handle\n handle : anon_union1\n\n size : unsigned long long\n Size of the memory allocation\n flags : unsigned int\n Flags must either be zero or cudaExternalMemoryDedicated\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaExternalMemoryHandleDesc}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaExternalMemoryHandleDesc}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaExternalMemoryHandleDesc}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaExternalMemoryHandleDesc}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_28cudaExternalMemoryHandleDesc_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaExternalMemoryHandleDesc}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaExternalMemoryHandleDesc_spec = { "cuda.cudart.cudaExternalMemoryHandleDesc", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_cudaExternalMemoryHandleDesc_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaExternalMemoryHandleDesc = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaExternalMemoryHandleDesc", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryHandleDesc), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaExternalMemoryHandleDesc, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n External memory handle descriptor\n\n Attributes\n ----------\n type : cudaExternalMemoryHandleType\n Type of the handle\n handle : anon_union1\n\n size : unsigned long long\n Size of the memory allocation\n flags : unsigned int\n Flags must either be zero or cudaExternalMemoryDedicated\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaExternalMemoryHandleDesc, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_cudaExternalMemoryHandleDesc, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_cudaExternalMemoryHandleDesc, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_28cudaExternalMemoryHandleDesc_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaExternalMemoryBufferDesc(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryBufferDesc *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryBufferDesc *)o); new((void*)&(p->_cudaExternalMemoryBufferDesc__val)) struct cudaExternalMemoryBufferDesc(); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaExternalMemoryBufferDesc(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryBufferDesc *p = (struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryBufferDesc *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_28cudaExternalMemoryBufferDesc_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaExternalMemoryBufferDesc__val); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_28cudaExternalMemoryBufferDesc_offset(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_28cudaExternalMemoryBufferDesc_6offset_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_28cudaExternalMemoryBufferDesc_offset(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_28cudaExternalMemoryBufferDesc_6offset_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_28cudaExternalMemoryBufferDesc_size(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_28cudaExternalMemoryBufferDesc_4size_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_28cudaExternalMemoryBufferDesc_size(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_28cudaExternalMemoryBufferDesc_4size_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_28cudaExternalMemoryBufferDesc_flags(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_28cudaExternalMemoryBufferDesc_5flags_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_28cudaExternalMemoryBufferDesc_flags(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_28cudaExternalMemoryBufferDesc_5flags_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_28cudaExternalMemoryBufferDesc_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_28cudaExternalMemoryBufferDesc_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaExternalMemoryBufferDesc[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_28cudaExternalMemoryBufferDesc_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_28cudaExternalMemoryBufferDesc_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_28cudaExternalMemoryBufferDesc_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_28cudaExternalMemoryBufferDesc_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_28cudaExternalMemoryBufferDesc_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_28cudaExternalMemoryBufferDesc_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_28cudaExternalMemoryBufferDesc_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaExternalMemoryBufferDesc[] = { {(char *)"offset", __pyx_getprop_4cuda_6cudart_28cudaExternalMemoryBufferDesc_offset, __pyx_setprop_4cuda_6cudart_28cudaExternalMemoryBufferDesc_offset, (char *)0, 0}, {(char *)"size", __pyx_getprop_4cuda_6cudart_28cudaExternalMemoryBufferDesc_size, __pyx_setprop_4cuda_6cudart_28cudaExternalMemoryBufferDesc_size, (char *)0, 0}, {(char *)"flags", __pyx_getprop_4cuda_6cudart_28cudaExternalMemoryBufferDesc_flags, __pyx_setprop_4cuda_6cudart_28cudaExternalMemoryBufferDesc_flags, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaExternalMemoryBufferDesc_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaExternalMemoryBufferDesc}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_28cudaExternalMemoryBufferDesc_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaExternalMemoryBufferDesc(void_ptr _ptr=0)\n\n External memory buffer descriptor\n\n Attributes\n ----------\n offset : unsigned long long\n Offset into the memory object where the buffer's base is\n size : unsigned long long\n Size of the buffer\n flags : unsigned int\n Flags reserved for future use. Must be zero.\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaExternalMemoryBufferDesc}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaExternalMemoryBufferDesc}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_28cudaExternalMemoryBufferDesc_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaExternalMemoryBufferDesc}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaExternalMemoryBufferDesc_spec = { "cuda.cudart.cudaExternalMemoryBufferDesc", sizeof(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryBufferDesc), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaExternalMemoryBufferDesc_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaExternalMemoryBufferDesc = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaExternalMemoryBufferDesc", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryBufferDesc), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaExternalMemoryBufferDesc, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n External memory buffer descriptor\n\n Attributes\n ----------\n offset : unsigned long long\n Offset into the memory object where the buffer's base is\n size : unsigned long long\n Size of the buffer\n flags : unsigned int\n Flags reserved for future use. Must be zero.\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_6cudart_cudaExternalMemoryBufferDesc, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_28cudaExternalMemoryBufferDesc_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *)o); new((void*)&(p->_cudaExternalMemoryMipmappedArrayDesc__val)) struct cudaExternalMemoryMipmappedArrayDesc(); p->_formatDesc = ((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)Py_None); Py_INCREF(Py_None); p->_extent = ((struct __pyx_obj_4cuda_6cudart_cudaExtent *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaExternalMemoryMipmappedArrayDesc(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *p = (struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_36cudaExternalMemoryMipmappedArrayDesc_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaExternalMemoryMipmappedArrayDesc__val); Py_CLEAR(p->_formatDesc); Py_CLEAR(p->_extent); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *p = (struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *)o; 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_6cudart_cudaExternalMemoryMipmappedArrayDesc(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *p = (struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc *)o; tmp = ((PyObject*)p->_formatDesc); p->_formatDesc = ((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_extent); p->_extent = ((struct __pyx_obj_4cuda_6cudart_cudaExtent *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_offset(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_6offset_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_offset(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_6offset_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_formatDesc(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_10formatDesc_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_formatDesc(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_10formatDesc_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_extent(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_6extent_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_extent(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_6extent_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_flags(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_5flags_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_flags(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_5flags_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_numLevels(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_9numLevels_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_numLevels(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_9numLevels_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc[] = { {(char *)"offset", __pyx_getprop_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_offset, __pyx_setprop_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_offset, (char *)0, 0}, {(char *)"formatDesc", __pyx_getprop_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_formatDesc, __pyx_setprop_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_formatDesc, (char *)0, 0}, {(char *)"extent", __pyx_getprop_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_extent, __pyx_setprop_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_extent, (char *)0, 0}, {(char *)"flags", __pyx_getprop_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_flags, __pyx_setprop_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_flags, (char *)0, 0}, {(char *)"numLevels", __pyx_getprop_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_numLevels, __pyx_setprop_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_numLevels, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaExternalMemoryMipmappedArrayDesc(void_ptr _ptr=0)\n\n External memory mipmap descriptor\n\n Attributes\n ----------\n offset : unsigned long long\n Offset into the memory object where the base level of the mipmap\n chain is.\n formatDesc : cudaChannelFormatDesc\n Format of base level of the mipmap chain\n extent : cudaExtent\n Dimensions of base level of the mipmap chain\n flags : unsigned int\n Flags associated with CUDA mipmapped arrays. See\n cudaMallocMipmappedArray\n numLevels : unsigned int\n Total number of levels in the mipmap chain\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc_spec = { "cuda.cudart.cudaExternalMemoryMipmappedArrayDesc", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_cudaExternalMemoryMipmappedArrayDesc_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaExternalMemoryMipmappedArrayDesc", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n External memory mipmap descriptor\n\n Attributes\n ----------\n offset : unsigned long long\n Offset into the memory object where the base level of the mipmap\n chain is.\n formatDesc : cudaChannelFormatDesc\n Format of base level of the mipmap chain\n extent : cudaExtent\n Dimensions of base level of the mipmap chain\n flags : unsigned int\n Flags associated with CUDA mipmapped arrays. See\n cudaMallocMipmappedArray\n numLevels : unsigned int\n Total number of levels in the mipmap chain\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_36cudaExternalMemoryMipmappedArrayDesc_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_anon_struct6(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_anon_struct6(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_anon_struct6) { 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_6cudart_12anon_struct6_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_12anon_struct6_handle(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_12anon_struct6_6handle_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_12anon_struct6_handle(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_12anon_struct6_6handle_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_12anon_struct6_name(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_12anon_struct6_4name_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_12anon_struct6_name(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_12anon_struct6_4name_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_12anon_struct6_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_12anon_struct6_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_anon_struct6[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct6_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct6_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_12anon_struct6_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct6_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct6_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_struct6_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_struct6_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_anon_struct6[] = { {(char *)"handle", __pyx_getprop_4cuda_6cudart_12anon_struct6_handle, __pyx_setprop_4cuda_6cudart_12anon_struct6_handle, (char *)0, 0}, {(char *)"name", __pyx_getprop_4cuda_6cudart_12anon_struct6_name, __pyx_setprop_4cuda_6cudart_12anon_struct6_name, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_anon_struct6_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_anon_struct6}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_12anon_struct6_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("anon_struct6(void_ptr _ptr)\n\n Attributes\n ----------\n handle : Any\n\n name : Any\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_anon_struct6}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_anon_struct6}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_12anon_struct6_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_anon_struct6}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_anon_struct6_spec = { "cuda.cudart.anon_struct6", sizeof(struct __pyx_obj_4cuda_6cudart_anon_struct6), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_anon_struct6_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_anon_struct6 = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""anon_struct6", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_anon_struct6), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_anon_struct6, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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, /*tp_flags*/ PyDoc_STR("anon_struct6(void_ptr _ptr)\n\n Attributes\n ----------\n handle : Any\n\n name : Any\n\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_6cudart_anon_struct6, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_12anon_struct6_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_anon_union2(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_anon_union2 *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_anon_union2 *)o); p->_win32 = ((struct __pyx_obj_4cuda_6cudart_anon_struct6 *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_anon_union2(PyObject *o) { struct __pyx_obj_4cuda_6cudart_anon_union2 *p = (struct __pyx_obj_4cuda_6cudart_anon_union2 *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_11anon_union2_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } Py_CLEAR(p->_win32); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_anon_union2(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_anon_union2 *p = (struct __pyx_obj_4cuda_6cudart_anon_union2 *)o; if (p->_win32) { e = (*v)(((PyObject *)p->_win32), a); if (e) return e; } return 0; } static int __pyx_tp_clear_4cuda_6cudart_anon_union2(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_anon_union2 *p = (struct __pyx_obj_4cuda_6cudart_anon_union2 *)o; tmp = ((PyObject*)p->_win32); p->_win32 = ((struct __pyx_obj_4cuda_6cudart_anon_struct6 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_11anon_union2_fd(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_11anon_union2_2fd_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_11anon_union2_fd(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_11anon_union2_2fd_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_11anon_union2_win32(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_11anon_union2_5win32_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_11anon_union2_win32(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_11anon_union2_5win32_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_11anon_union2_nvSciSyncObj(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_11anon_union2_12nvSciSyncObj_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_11anon_union2_nvSciSyncObj(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_11anon_union2_12nvSciSyncObj_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_11anon_union2_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_11anon_union2_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_anon_union2[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union2_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union2_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_11anon_union2_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union2_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union2_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union2_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union2_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_anon_union2[] = { {(char *)"fd", __pyx_getprop_4cuda_6cudart_11anon_union2_fd, __pyx_setprop_4cuda_6cudart_11anon_union2_fd, (char *)0, 0}, {(char *)"win32", __pyx_getprop_4cuda_6cudart_11anon_union2_win32, __pyx_setprop_4cuda_6cudart_11anon_union2_win32, (char *)0, 0}, {(char *)"nvSciSyncObj", __pyx_getprop_4cuda_6cudart_11anon_union2_nvSciSyncObj, __pyx_setprop_4cuda_6cudart_11anon_union2_nvSciSyncObj, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_anon_union2_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_anon_union2}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_11anon_union2_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("anon_union2(void_ptr _ptr)\n\n Attributes\n ----------\n fd : int\n\n win32 : anon_struct6\n\n nvSciSyncObj : Any\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_anon_union2}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_anon_union2}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_anon_union2}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_anon_union2}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_11anon_union2_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_anon_union2}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_anon_union2_spec = { "cuda.cudart.anon_union2", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_anon_union2_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_anon_union2 = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""anon_union2", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_anon_union2), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_anon_union2, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Attributes\n ----------\n fd : int\n\n win32 : anon_struct6\n\n nvSciSyncObj : Any\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_anon_union2, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_anon_union2, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_anon_union2, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_11anon_union2_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaExternalSemaphoreHandleDesc(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc *)o); p->_handle = ((struct __pyx_obj_4cuda_6cudart_anon_union2 *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaExternalSemaphoreHandleDesc(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc *p = (struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_31cudaExternalSemaphoreHandleDesc_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } Py_CLEAR(p->_handle); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_cudaExternalSemaphoreHandleDesc(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc *p = (struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc *)o; if (p->_handle) { e = (*v)(((PyObject *)p->_handle), a); if (e) return e; } return 0; } static int __pyx_tp_clear_4cuda_6cudart_cudaExternalSemaphoreHandleDesc(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc *p = (struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc *)o; tmp = ((PyObject*)p->_handle); p->_handle = ((struct __pyx_obj_4cuda_6cudart_anon_union2 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_type(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_4type_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_type(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_4type_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_handle(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_6handle_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_handle(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_6handle_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_flags(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_5flags_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_flags(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_5flags_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaExternalSemaphoreHandleDesc[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaExternalSemaphoreHandleDesc[] = { {(char *)"type", __pyx_getprop_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_type, __pyx_setprop_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_type, (char *)0, 0}, {(char *)"handle", __pyx_getprop_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_handle, __pyx_setprop_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_handle, (char *)0, 0}, {(char *)"flags", __pyx_getprop_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_flags, __pyx_setprop_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_flags, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaExternalSemaphoreHandleDesc_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaExternalSemaphoreHandleDesc}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaExternalSemaphoreHandleDesc(void_ptr _ptr=0)\n\n External semaphore handle descriptor\n\n Attributes\n ----------\n type : cudaExternalSemaphoreHandleType\n Type of the handle\n handle : anon_union2\n\n flags : unsigned int\n Flags reserved for the future. Must be zero.\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaExternalSemaphoreHandleDesc}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaExternalSemaphoreHandleDesc}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaExternalSemaphoreHandleDesc}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaExternalSemaphoreHandleDesc}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaExternalSemaphoreHandleDesc}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaExternalSemaphoreHandleDesc_spec = { "cuda.cudart.cudaExternalSemaphoreHandleDesc", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_cudaExternalSemaphoreHandleDesc_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaExternalSemaphoreHandleDesc = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaExternalSemaphoreHandleDesc", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreHandleDesc), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaExternalSemaphoreHandleDesc, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n External semaphore handle descriptor\n\n Attributes\n ----------\n type : cudaExternalSemaphoreHandleType\n Type of the handle\n handle : anon_union2\n\n flags : unsigned int\n Flags reserved for the future. Must be zero.\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaExternalSemaphoreHandleDesc, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_cudaExternalSemaphoreHandleDesc, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_cudaExternalSemaphoreHandleDesc, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_31cudaExternalSemaphoreHandleDesc_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_anon_struct13(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_anon_struct13(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_13anon_struct13_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_13anon_struct13_value(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_13anon_struct13_5value_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_13anon_struct13_value(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_13anon_struct13_5value_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_13anon_struct13_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_13anon_struct13_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_anon_struct13[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct13_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct13_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_13anon_struct13_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct13_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct13_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct13_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct13_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_anon_struct13[] = { {(char *)"value", __pyx_getprop_4cuda_6cudart_13anon_struct13_value, __pyx_setprop_4cuda_6cudart_13anon_struct13_value, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_anon_struct13_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_anon_struct13}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_13anon_struct13_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("anon_struct13(void_ptr _ptr)\n\n Attributes\n ----------\n value : unsigned long long\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_anon_struct13}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_anon_struct13}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_13anon_struct13_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_anon_struct13}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_anon_struct13_spec = { "cuda.cudart.anon_struct13", sizeof(struct __pyx_obj_4cuda_6cudart_anon_struct13), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_anon_struct13_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_anon_struct13 = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""anon_struct13", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_anon_struct13), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_anon_struct13, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Attributes\n ----------\n value : unsigned long long\n\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_6cudart_anon_struct13, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_13anon_struct13_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_anon_union5(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_anon_union5(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_11anon_union5_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_11anon_union5_fence(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_11anon_union5_5fence_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_11anon_union5_fence(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_11anon_union5_5fence_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_11anon_union5_reserved(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_11anon_union5_8reserved_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_11anon_union5_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_11anon_union5_8reserved_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_11anon_union5_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_11anon_union5_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_anon_union5[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union5_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union5_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_11anon_union5_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union5_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union5_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union5_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union5_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_anon_union5[] = { {(char *)"fence", __pyx_getprop_4cuda_6cudart_11anon_union5_fence, __pyx_setprop_4cuda_6cudart_11anon_union5_fence, (char *)0, 0}, {(char *)"reserved", __pyx_getprop_4cuda_6cudart_11anon_union5_reserved, __pyx_setprop_4cuda_6cudart_11anon_union5_reserved, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_anon_union5_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_anon_union5}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_11anon_union5_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("anon_union5(void_ptr _ptr)\n\n Attributes\n ----------\n fence : Any\n\n reserved : unsigned long long\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_anon_union5}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_anon_union5}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_11anon_union5_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_anon_union5}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_anon_union5_spec = { "cuda.cudart.anon_union5", sizeof(struct __pyx_obj_4cuda_6cudart_anon_union5), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_anon_union5_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_anon_union5 = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""anon_union5", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_anon_union5), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_anon_union5, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Attributes\n ----------\n fence : Any\n\n reserved : unsigned long long\n\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_6cudart_anon_union5, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_11anon_union5_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_anon_struct14(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_anon_struct14(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_13anon_struct14_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_13anon_struct14_key(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_13anon_struct14_3key_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_13anon_struct14_key(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_13anon_struct14_3key_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_13anon_struct14_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_13anon_struct14_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_anon_struct14[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct14_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct14_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_13anon_struct14_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct14_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct14_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct14_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct14_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_anon_struct14[] = { {(char *)"key", __pyx_getprop_4cuda_6cudart_13anon_struct14_key, __pyx_setprop_4cuda_6cudart_13anon_struct14_key, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_anon_struct14_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_anon_struct14}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_13anon_struct14_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("anon_struct14(void_ptr _ptr)\n\n Attributes\n ----------\n key : unsigned long long\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_anon_struct14}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_anon_struct14}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_13anon_struct14_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_anon_struct14}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_anon_struct14_spec = { "cuda.cudart.anon_struct14", sizeof(struct __pyx_obj_4cuda_6cudart_anon_struct14), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_anon_struct14_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_anon_struct14 = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""anon_struct14", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_anon_struct14), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_anon_struct14, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Attributes\n ----------\n key : unsigned long long\n\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_6cudart_anon_struct14, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_13anon_struct14_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_anon_struct15(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_anon_struct15 *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_anon_struct15 *)o); p->_fence = ((struct __pyx_obj_4cuda_6cudart_anon_struct13 *)Py_None); Py_INCREF(Py_None); p->_nvSciSync = ((struct __pyx_obj_4cuda_6cudart_anon_union5 *)Py_None); Py_INCREF(Py_None); p->_keyedMutex = ((struct __pyx_obj_4cuda_6cudart_anon_struct14 *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_anon_struct15(PyObject *o) { struct __pyx_obj_4cuda_6cudart_anon_struct15 *p = (struct __pyx_obj_4cuda_6cudart_anon_struct15 *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_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); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_anon_struct15(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_anon_struct15 *p = (struct __pyx_obj_4cuda_6cudart_anon_struct15 *)o; 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_6cudart_anon_struct15(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_anon_struct15 *p = (struct __pyx_obj_4cuda_6cudart_anon_struct15 *)o; tmp = ((PyObject*)p->_fence); p->_fence = ((struct __pyx_obj_4cuda_6cudart_anon_struct13 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_nvSciSync); p->_nvSciSync = ((struct __pyx_obj_4cuda_6cudart_anon_union5 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_keyedMutex); p->_keyedMutex = ((struct __pyx_obj_4cuda_6cudart_anon_struct14 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_13anon_struct15_fence(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_13anon_struct15_5fence_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_13anon_struct15_fence(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_13anon_struct15_5fence_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_13anon_struct15_nvSciSync(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_13anon_struct15_9nvSciSync_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_13anon_struct15_nvSciSync(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_13anon_struct15_9nvSciSync_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_13anon_struct15_keyedMutex(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_13anon_struct15_10keyedMutex_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_13anon_struct15_keyedMutex(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_13anon_struct15_10keyedMutex_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_13anon_struct15_reserved(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_13anon_struct15_8reserved_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_13anon_struct15_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_13anon_struct15_8reserved_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_13anon_struct15_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_13anon_struct15_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_anon_struct15[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct15_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct15_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_13anon_struct15_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct15_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct15_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct15_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct15_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_anon_struct15[] = { {(char *)"fence", __pyx_getprop_4cuda_6cudart_13anon_struct15_fence, __pyx_setprop_4cuda_6cudart_13anon_struct15_fence, (char *)0, 0}, {(char *)"nvSciSync", __pyx_getprop_4cuda_6cudart_13anon_struct15_nvSciSync, __pyx_setprop_4cuda_6cudart_13anon_struct15_nvSciSync, (char *)0, 0}, {(char *)"keyedMutex", __pyx_getprop_4cuda_6cudart_13anon_struct15_keyedMutex, __pyx_setprop_4cuda_6cudart_13anon_struct15_keyedMutex, (char *)0, 0}, {(char *)"reserved", __pyx_getprop_4cuda_6cudart_13anon_struct15_reserved, __pyx_setprop_4cuda_6cudart_13anon_struct15_reserved, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_anon_struct15_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_anon_struct15}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_13anon_struct15_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("anon_struct15(void_ptr _ptr)\n\n Attributes\n ----------\n fence : anon_struct13\n\n nvSciSync : anon_union5\n\n keyedMutex : anon_struct14\n\n reserved : List[unsigned int]\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_anon_struct15}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_anon_struct15}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_anon_struct15}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_anon_struct15}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_13anon_struct15_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_anon_struct15}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_anon_struct15_spec = { "cuda.cudart.anon_struct15", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_anon_struct15_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_anon_struct15 = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""anon_struct15", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_anon_struct15), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_anon_struct15, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Attributes\n ----------\n fence : anon_struct13\n\n nvSciSync : anon_union5\n\n keyedMutex : anon_struct14\n\n reserved : List[unsigned int]\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_anon_struct15, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_anon_struct15, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_anon_struct15, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_13anon_struct15_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaExternalSemaphoreSignalParams(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *)o); new((void*)&(p->_cudaExternalSemaphoreSignalParams__val)) struct cudaExternalSemaphoreSignalParams(); p->_params = ((struct __pyx_obj_4cuda_6cudart_anon_struct15 *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaExternalSemaphoreSignalParams(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *p = (struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_33cudaExternalSemaphoreSignalParams_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaExternalSemaphoreSignalParams__val); Py_CLEAR(p->_params); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_cudaExternalSemaphoreSignalParams(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *p = (struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *)o; if (p->_params) { e = (*v)(((PyObject *)p->_params), a); if (e) return e; } return 0; } static int __pyx_tp_clear_4cuda_6cudart_cudaExternalSemaphoreSignalParams(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *p = (struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams *)o; tmp = ((PyObject*)p->_params); p->_params = ((struct __pyx_obj_4cuda_6cudart_anon_struct15 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_params(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_6params_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_params(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_6params_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_flags(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_5flags_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_flags(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_5flags_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_reserved(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_8reserved_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_8reserved_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaExternalSemaphoreSignalParams[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaExternalSemaphoreSignalParams[] = { {(char *)"params", __pyx_getprop_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_params, __pyx_setprop_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_params, (char *)0, 0}, {(char *)"flags", __pyx_getprop_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_flags, __pyx_setprop_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_flags, (char *)0, 0}, {(char *)"reserved", __pyx_getprop_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_reserved, __pyx_setprop_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_reserved, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaExternalSemaphoreSignalParams_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaExternalSemaphoreSignalParams}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaExternalSemaphoreSignalParams(void_ptr _ptr=0)\n\n External semaphore signal parameters, compatible with driver type\n\n Attributes\n ----------\n params : anon_struct15\n\n flags : 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.\n reserved : List[unsigned int]\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaExternalSemaphoreSignalParams}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaExternalSemaphoreSignalParams}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaExternalSemaphoreSignalParams}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaExternalSemaphoreSignalParams}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaExternalSemaphoreSignalParams}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaExternalSemaphoreSignalParams_spec = { "cuda.cudart.cudaExternalSemaphoreSignalParams", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_cudaExternalSemaphoreSignalParams_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaExternalSemaphoreSignalParams = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaExternalSemaphoreSignalParams", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalParams), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaExternalSemaphoreSignalParams, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n External semaphore signal parameters, compatible with driver type\n\n Attributes\n ----------\n params : anon_struct15\n\n flags : 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.\n reserved : List[unsigned int]\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaExternalSemaphoreSignalParams, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_cudaExternalSemaphoreSignalParams, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_cudaExternalSemaphoreSignalParams, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_33cudaExternalSemaphoreSignalParams_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_anon_struct16(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_anon_struct16(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_13anon_struct16_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_13anon_struct16_value(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_13anon_struct16_5value_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_13anon_struct16_value(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_13anon_struct16_5value_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_13anon_struct16_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_13anon_struct16_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_anon_struct16[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct16_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct16_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_13anon_struct16_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct16_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct16_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct16_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct16_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_anon_struct16[] = { {(char *)"value", __pyx_getprop_4cuda_6cudart_13anon_struct16_value, __pyx_setprop_4cuda_6cudart_13anon_struct16_value, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_anon_struct16_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_anon_struct16}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_13anon_struct16_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("anon_struct16(void_ptr _ptr)\n\n Attributes\n ----------\n value : unsigned long long\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_anon_struct16}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_anon_struct16}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_13anon_struct16_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_anon_struct16}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_anon_struct16_spec = { "cuda.cudart.anon_struct16", sizeof(struct __pyx_obj_4cuda_6cudart_anon_struct16), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_anon_struct16_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_anon_struct16 = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""anon_struct16", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_anon_struct16), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_anon_struct16, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Attributes\n ----------\n value : unsigned long long\n\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_6cudart_anon_struct16, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_13anon_struct16_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_anon_union6(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_11anon_union6_1__cinit__(o, a, k) < 0)) goto bad; return o; bad: Py_DECREF(o); o = 0; return NULL; } static void __pyx_tp_dealloc_4cuda_6cudart_anon_union6(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_anon_union6) { 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_6cudart_11anon_union6_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_11anon_union6_fence(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_11anon_union6_5fence_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_11anon_union6_fence(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_11anon_union6_5fence_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_11anon_union6_reserved(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_11anon_union6_8reserved_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_11anon_union6_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_11anon_union6_8reserved_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_11anon_union6_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_11anon_union6_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_anon_union6[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union6_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union6_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_11anon_union6_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union6_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union6_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union6_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union6_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_anon_union6[] = { {(char *)"fence", __pyx_getprop_4cuda_6cudart_11anon_union6_fence, __pyx_setprop_4cuda_6cudart_11anon_union6_fence, (char *)0, 0}, {(char *)"reserved", __pyx_getprop_4cuda_6cudart_11anon_union6_reserved, __pyx_setprop_4cuda_6cudart_11anon_union6_reserved, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_anon_union6_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_anon_union6}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_11anon_union6_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("anon_union6(void_ptr _ptr)\n\n Attributes\n ----------\n fence : Any\n\n reserved : unsigned long long\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_anon_union6}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_anon_union6}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_11anon_union6_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_anon_union6}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_anon_union6_spec = { "cuda.cudart.anon_union6", sizeof(struct __pyx_obj_4cuda_6cudart_anon_union6), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_anon_union6_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_anon_union6 = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""anon_union6", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_anon_union6), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_anon_union6, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_11anon_union6_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_union6(void_ptr _ptr)\n\n Attributes\n ----------\n fence : Any\n\n reserved : unsigned long long\n\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_6cudart_anon_union6, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_anon_union6, /*tp_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_6cudart_11anon_union6_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_anon_union6, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_anon_struct17(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_anon_struct17(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_13anon_struct17_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_13anon_struct17_key(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_13anon_struct17_3key_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_13anon_struct17_key(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_13anon_struct17_3key_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_13anon_struct17_timeoutMs(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_13anon_struct17_9timeoutMs_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_13anon_struct17_timeoutMs(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_13anon_struct17_9timeoutMs_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_13anon_struct17_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_13anon_struct17_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_anon_struct17[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct17_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct17_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_13anon_struct17_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct17_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct17_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct17_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct17_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_anon_struct17[] = { {(char *)"key", __pyx_getprop_4cuda_6cudart_13anon_struct17_key, __pyx_setprop_4cuda_6cudart_13anon_struct17_key, (char *)0, 0}, {(char *)"timeoutMs", __pyx_getprop_4cuda_6cudart_13anon_struct17_timeoutMs, __pyx_setprop_4cuda_6cudart_13anon_struct17_timeoutMs, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_anon_struct17_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_anon_struct17}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_13anon_struct17_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("anon_struct17(void_ptr _ptr)\n\n Attributes\n ----------\n key : unsigned long long\n\n timeoutMs : unsigned int\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_anon_struct17}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_anon_struct17}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_13anon_struct17_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_anon_struct17}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_anon_struct17_spec = { "cuda.cudart.anon_struct17", sizeof(struct __pyx_obj_4cuda_6cudart_anon_struct17), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_anon_struct17_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_anon_struct17 = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""anon_struct17", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_anon_struct17), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_anon_struct17, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Attributes\n ----------\n key : unsigned long long\n\n timeoutMs : unsigned int\n\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_6cudart_anon_struct17, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_13anon_struct17_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_anon_struct18(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_anon_struct18 *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_anon_struct18 *)o); p->_fence = ((struct __pyx_obj_4cuda_6cudart_anon_struct16 *)Py_None); Py_INCREF(Py_None); p->_nvSciSync = ((struct __pyx_obj_4cuda_6cudart_anon_union6 *)Py_None); Py_INCREF(Py_None); p->_keyedMutex = ((struct __pyx_obj_4cuda_6cudart_anon_struct17 *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_anon_struct18(PyObject *o) { struct __pyx_obj_4cuda_6cudart_anon_struct18 *p = (struct __pyx_obj_4cuda_6cudart_anon_struct18 *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_13anon_struct18_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); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_anon_struct18(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_anon_struct18 *p = (struct __pyx_obj_4cuda_6cudart_anon_struct18 *)o; 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_6cudart_anon_struct18(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_anon_struct18 *p = (struct __pyx_obj_4cuda_6cudart_anon_struct18 *)o; tmp = ((PyObject*)p->_fence); p->_fence = ((struct __pyx_obj_4cuda_6cudart_anon_struct16 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_nvSciSync); p->_nvSciSync = ((struct __pyx_obj_4cuda_6cudart_anon_union6 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_keyedMutex); p->_keyedMutex = ((struct __pyx_obj_4cuda_6cudart_anon_struct17 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_13anon_struct18_fence(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_13anon_struct18_5fence_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_13anon_struct18_fence(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_13anon_struct18_5fence_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_13anon_struct18_nvSciSync(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_13anon_struct18_9nvSciSync_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_13anon_struct18_nvSciSync(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_13anon_struct18_9nvSciSync_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_13anon_struct18_keyedMutex(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_13anon_struct18_10keyedMutex_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_13anon_struct18_keyedMutex(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_13anon_struct18_10keyedMutex_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_13anon_struct18_reserved(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_13anon_struct18_8reserved_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_13anon_struct18_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_13anon_struct18_8reserved_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_13anon_struct18_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_13anon_struct18_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_anon_struct18[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct18_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct18_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_13anon_struct18_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct18_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct18_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct18_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct18_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_anon_struct18[] = { {(char *)"fence", __pyx_getprop_4cuda_6cudart_13anon_struct18_fence, __pyx_setprop_4cuda_6cudart_13anon_struct18_fence, (char *)0, 0}, {(char *)"nvSciSync", __pyx_getprop_4cuda_6cudart_13anon_struct18_nvSciSync, __pyx_setprop_4cuda_6cudart_13anon_struct18_nvSciSync, (char *)0, 0}, {(char *)"keyedMutex", __pyx_getprop_4cuda_6cudart_13anon_struct18_keyedMutex, __pyx_setprop_4cuda_6cudart_13anon_struct18_keyedMutex, (char *)0, 0}, {(char *)"reserved", __pyx_getprop_4cuda_6cudart_13anon_struct18_reserved, __pyx_setprop_4cuda_6cudart_13anon_struct18_reserved, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_anon_struct18_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_anon_struct18}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_13anon_struct18_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("anon_struct18(void_ptr _ptr)\n\n Attributes\n ----------\n fence : anon_struct16\n\n nvSciSync : anon_union6\n\n keyedMutex : anon_struct17\n\n reserved : List[unsigned int]\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_anon_struct18}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_anon_struct18}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_anon_struct18}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_anon_struct18}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_13anon_struct18_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_anon_struct18}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_anon_struct18_spec = { "cuda.cudart.anon_struct18", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_anon_struct18_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_anon_struct18 = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""anon_struct18", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_anon_struct18), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_anon_struct18, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Attributes\n ----------\n fence : anon_struct16\n\n nvSciSync : anon_union6\n\n keyedMutex : anon_struct17\n\n reserved : List[unsigned int]\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_anon_struct18, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_anon_struct18, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_anon_struct18, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_13anon_struct18_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaExternalSemaphoreWaitParams(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *)o); new((void*)&(p->_cudaExternalSemaphoreWaitParams__val)) struct cudaExternalSemaphoreWaitParams(); p->_params = ((struct __pyx_obj_4cuda_6cudart_anon_struct18 *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaExternalSemaphoreWaitParams(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *p = (struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_31cudaExternalSemaphoreWaitParams_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaExternalSemaphoreWaitParams__val); Py_CLEAR(p->_params); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_cudaExternalSemaphoreWaitParams(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *p = (struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *)o; if (p->_params) { e = (*v)(((PyObject *)p->_params), a); if (e) return e; } return 0; } static int __pyx_tp_clear_4cuda_6cudart_cudaExternalSemaphoreWaitParams(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *p = (struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams *)o; tmp = ((PyObject*)p->_params); p->_params = ((struct __pyx_obj_4cuda_6cudart_anon_struct18 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_params(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_6params_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_params(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_6params_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_flags(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_5flags_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_flags(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_5flags_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_reserved(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_8reserved_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_8reserved_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaExternalSemaphoreWaitParams[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaExternalSemaphoreWaitParams[] = { {(char *)"params", __pyx_getprop_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_params, __pyx_setprop_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_params, (char *)0, 0}, {(char *)"flags", __pyx_getprop_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_flags, __pyx_setprop_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_flags, (char *)0, 0}, {(char *)"reserved", __pyx_getprop_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_reserved, __pyx_setprop_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_reserved, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaExternalSemaphoreWaitParams_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaExternalSemaphoreWaitParams}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaExternalSemaphoreWaitParams(void_ptr _ptr=0)\n\n External semaphore wait parameters, compatible with driver type\n\n Attributes\n ----------\n params : anon_struct18\n\n flags : 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.\n reserved : List[unsigned int]\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaExternalSemaphoreWaitParams}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaExternalSemaphoreWaitParams}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaExternalSemaphoreWaitParams}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaExternalSemaphoreWaitParams}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaExternalSemaphoreWaitParams}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaExternalSemaphoreWaitParams_spec = { "cuda.cudart.cudaExternalSemaphoreWaitParams", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_cudaExternalSemaphoreWaitParams_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaExternalSemaphoreWaitParams = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaExternalSemaphoreWaitParams", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitParams), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaExternalSemaphoreWaitParams, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n External semaphore wait parameters, compatible with driver type\n\n Attributes\n ----------\n params : anon_struct18\n\n flags : 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.\n reserved : List[unsigned int]\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaExternalSemaphoreWaitParams, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_cudaExternalSemaphoreWaitParams, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_cudaExternalSemaphoreWaitParams, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_31cudaExternalSemaphoreWaitParams_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaKernelNodeParams(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *)o); new((void*)&(p->_cudaKernelNodeParams__val)) struct cudaKernelNodeParams(); p->_gridDim = ((struct __pyx_obj_4cuda_6cudart_dim3 *)Py_None); Py_INCREF(Py_None); p->_blockDim = ((struct __pyx_obj_4cuda_6cudart_dim3 *)Py_None); Py_INCREF(Py_None); p->_ckernelParams = ((struct __pyx_obj_4cuda_4_lib_5utils_HelperKernelParams *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaKernelNodeParams(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *p = (struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_20cudaKernelNodeParams_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaKernelNodeParams__val); Py_CLEAR(p->_gridDim); Py_CLEAR(p->_blockDim); Py_CLEAR(p->_ckernelParams); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_cudaKernelNodeParams(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *p = (struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *)o; 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->_ckernelParams) { e = (*v)(((PyObject *)p->_ckernelParams), a); if (e) return e; } return 0; } static int __pyx_tp_clear_4cuda_6cudart_cudaKernelNodeParams(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *p = (struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams *)o; tmp = ((PyObject*)p->_gridDim); p->_gridDim = ((struct __pyx_obj_4cuda_6cudart_dim3 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_blockDim); p->_blockDim = ((struct __pyx_obj_4cuda_6cudart_dim3 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_ckernelParams); p->_ckernelParams = ((struct __pyx_obj_4cuda_4_lib_5utils_HelperKernelParams *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_20cudaKernelNodeParams_func(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_4func_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_20cudaKernelNodeParams_func(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_4func_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_20cudaKernelNodeParams_gridDim(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_7gridDim_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_20cudaKernelNodeParams_gridDim(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_7gridDim_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_20cudaKernelNodeParams_blockDim(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_8blockDim_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_20cudaKernelNodeParams_blockDim(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_8blockDim_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_20cudaKernelNodeParams_sharedMemBytes(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_14sharedMemBytes_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_20cudaKernelNodeParams_sharedMemBytes(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_14sharedMemBytes_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_20cudaKernelNodeParams_kernelParams(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_12kernelParams_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_20cudaKernelNodeParams_kernelParams(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_12kernelParams_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_20cudaKernelNodeParams_extra(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_5extra_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_20cudaKernelNodeParams_extra(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_5extra_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaKernelNodeParams[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaKernelNodeParams_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaKernelNodeParams_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaKernelNodeParams_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaKernelNodeParams[] = { {(char *)"func", __pyx_getprop_4cuda_6cudart_20cudaKernelNodeParams_func, __pyx_setprop_4cuda_6cudart_20cudaKernelNodeParams_func, (char *)0, 0}, {(char *)"gridDim", __pyx_getprop_4cuda_6cudart_20cudaKernelNodeParams_gridDim, __pyx_setprop_4cuda_6cudart_20cudaKernelNodeParams_gridDim, (char *)0, 0}, {(char *)"blockDim", __pyx_getprop_4cuda_6cudart_20cudaKernelNodeParams_blockDim, __pyx_setprop_4cuda_6cudart_20cudaKernelNodeParams_blockDim, (char *)0, 0}, {(char *)"sharedMemBytes", __pyx_getprop_4cuda_6cudart_20cudaKernelNodeParams_sharedMemBytes, __pyx_setprop_4cuda_6cudart_20cudaKernelNodeParams_sharedMemBytes, (char *)0, 0}, {(char *)"kernelParams", __pyx_getprop_4cuda_6cudart_20cudaKernelNodeParams_kernelParams, __pyx_setprop_4cuda_6cudart_20cudaKernelNodeParams_kernelParams, (char *)0, 0}, {(char *)"extra", __pyx_getprop_4cuda_6cudart_20cudaKernelNodeParams_extra, __pyx_setprop_4cuda_6cudart_20cudaKernelNodeParams_extra, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaKernelNodeParams_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaKernelNodeParams}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaKernelNodeParams(void_ptr _ptr=0)\n\n CUDA GPU kernel node parameters\n\n Attributes\n ----------\n func : Any\n Kernel to launch\n gridDim : dim3\n Grid dimensions\n blockDim : dim3\n Block dimensions\n sharedMemBytes : unsigned int\n Dynamic shared-memory size per thread block in bytes\n kernelParams : Any\n Array of pointers to individual kernel arguments\n extra : Any\n Pointer to kernel arguments in the \"extra\" format\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaKernelNodeParams}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaKernelNodeParams}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaKernelNodeParams}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaKernelNodeParams}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_20cudaKernelNodeParams_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaKernelNodeParams}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaKernelNodeParams_spec = { "cuda.cudart.cudaKernelNodeParams", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_cudaKernelNodeParams_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaKernelNodeParams = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaKernelNodeParams", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParams), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaKernelNodeParams, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n CUDA GPU kernel node parameters\n\n Attributes\n ----------\n func : Any\n Kernel to launch\n gridDim : dim3\n Grid dimensions\n blockDim : dim3\n Block dimensions\n sharedMemBytes : unsigned int\n Dynamic shared-memory size per thread block in bytes\n kernelParams : Any\n Array of pointers to individual kernel arguments\n extra : Any\n Pointer to kernel arguments in the \"extra\" format\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaKernelNodeParams, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_cudaKernelNodeParams, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_cudaKernelNodeParams, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_20cudaKernelNodeParams_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaKernelNodeParamsV2(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *)o); new((void*)&(p->_cudaKernelNodeParamsV2__val)) struct cudaKernelNodeParamsV2(); p->_gridDim = ((struct __pyx_obj_4cuda_6cudart_dim3 *)Py_None); Py_INCREF(Py_None); p->_blockDim = ((struct __pyx_obj_4cuda_6cudart_dim3 *)Py_None); Py_INCREF(Py_None); p->_ckernelParams = ((struct __pyx_obj_4cuda_4_lib_5utils_HelperKernelParams *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaKernelNodeParamsV2(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *p = (struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_22cudaKernelNodeParamsV2_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaKernelNodeParamsV2__val); Py_CLEAR(p->_gridDim); Py_CLEAR(p->_blockDim); Py_CLEAR(p->_ckernelParams); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_cudaKernelNodeParamsV2(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *p = (struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *)o; 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->_ckernelParams) { e = (*v)(((PyObject *)p->_ckernelParams), a); if (e) return e; } return 0; } static int __pyx_tp_clear_4cuda_6cudart_cudaKernelNodeParamsV2(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *p = (struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *)o; tmp = ((PyObject*)p->_gridDim); p->_gridDim = ((struct __pyx_obj_4cuda_6cudart_dim3 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_blockDim); p->_blockDim = ((struct __pyx_obj_4cuda_6cudart_dim3 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_ckernelParams); p->_ckernelParams = ((struct __pyx_obj_4cuda_4_lib_5utils_HelperKernelParams *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_22cudaKernelNodeParamsV2_func(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_4func_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_22cudaKernelNodeParamsV2_func(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_4func_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_22cudaKernelNodeParamsV2_gridDim(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_7gridDim_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_22cudaKernelNodeParamsV2_gridDim(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_7gridDim_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_22cudaKernelNodeParamsV2_blockDim(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_8blockDim_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_22cudaKernelNodeParamsV2_blockDim(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_8blockDim_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_22cudaKernelNodeParamsV2_sharedMemBytes(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_14sharedMemBytes_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_22cudaKernelNodeParamsV2_sharedMemBytes(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_14sharedMemBytes_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_22cudaKernelNodeParamsV2_kernelParams(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_12kernelParams_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_22cudaKernelNodeParamsV2_kernelParams(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_12kernelParams_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_22cudaKernelNodeParamsV2_extra(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_5extra_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_22cudaKernelNodeParamsV2_extra(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_5extra_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaKernelNodeParamsV2[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_22cudaKernelNodeParamsV2_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_22cudaKernelNodeParamsV2_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_22cudaKernelNodeParamsV2_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaKernelNodeParamsV2[] = { {(char *)"func", __pyx_getprop_4cuda_6cudart_22cudaKernelNodeParamsV2_func, __pyx_setprop_4cuda_6cudart_22cudaKernelNodeParamsV2_func, (char *)0, 0}, {(char *)"gridDim", __pyx_getprop_4cuda_6cudart_22cudaKernelNodeParamsV2_gridDim, __pyx_setprop_4cuda_6cudart_22cudaKernelNodeParamsV2_gridDim, (char *)0, 0}, {(char *)"blockDim", __pyx_getprop_4cuda_6cudart_22cudaKernelNodeParamsV2_blockDim, __pyx_setprop_4cuda_6cudart_22cudaKernelNodeParamsV2_blockDim, (char *)0, 0}, {(char *)"sharedMemBytes", __pyx_getprop_4cuda_6cudart_22cudaKernelNodeParamsV2_sharedMemBytes, __pyx_setprop_4cuda_6cudart_22cudaKernelNodeParamsV2_sharedMemBytes, (char *)0, 0}, {(char *)"kernelParams", __pyx_getprop_4cuda_6cudart_22cudaKernelNodeParamsV2_kernelParams, __pyx_setprop_4cuda_6cudart_22cudaKernelNodeParamsV2_kernelParams, (char *)0, 0}, {(char *)"extra", __pyx_getprop_4cuda_6cudart_22cudaKernelNodeParamsV2_extra, __pyx_setprop_4cuda_6cudart_22cudaKernelNodeParamsV2_extra, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaKernelNodeParamsV2_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaKernelNodeParamsV2}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaKernelNodeParamsV2(void_ptr _ptr=0)\n\n CUDA GPU kernel node parameters\n\n Attributes\n ----------\n func : Any\n Kernel to launch\n gridDim : dim3\n Grid dimensions\n blockDim : dim3\n Block dimensions\n sharedMemBytes : unsigned int\n Dynamic shared-memory size per thread block in bytes\n kernelParams : Any\n Array of pointers to individual kernel arguments\n extra : Any\n Pointer to kernel arguments in the \"extra\" format\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaKernelNodeParamsV2}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaKernelNodeParamsV2}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaKernelNodeParamsV2}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaKernelNodeParamsV2}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_22cudaKernelNodeParamsV2_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaKernelNodeParamsV2}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaKernelNodeParamsV2_spec = { "cuda.cudart.cudaKernelNodeParamsV2", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_cudaKernelNodeParamsV2_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaKernelNodeParamsV2 = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaKernelNodeParamsV2", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaKernelNodeParamsV2, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n CUDA GPU kernel node parameters\n\n Attributes\n ----------\n func : Any\n Kernel to launch\n gridDim : dim3\n Grid dimensions\n blockDim : dim3\n Block dimensions\n sharedMemBytes : unsigned int\n Dynamic shared-memory size per thread block in bytes\n kernelParams : Any\n Array of pointers to individual kernel arguments\n extra : Any\n Pointer to kernel arguments in the \"extra\" format\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaKernelNodeParamsV2, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_cudaKernelNodeParamsV2, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_cudaKernelNodeParamsV2, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_22cudaKernelNodeParamsV2_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *)o); new((void*)&(p->_cudaExternalSemaphoreSignalNodeParams__val)) struct cudaExternalSemaphoreSignalNodeParams(); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaExternalSemaphoreSignalNodeParams(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *p = (struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_37cudaExternalSemaphoreSignalNodeParams_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaExternalSemaphoreSignalNodeParams__val); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_extSemArray(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_11extSemArray_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_extSemArray(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_11extSemArray_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_paramsArray(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_11paramsArray_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_paramsArray(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_11paramsArray_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_numExtSems(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_10numExtSems_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_numExtSems(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_10numExtSems_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams[] = { {(char *)"extSemArray", __pyx_getprop_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_extSemArray, __pyx_setprop_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_extSemArray, (char *)0, 0}, {(char *)"paramsArray", __pyx_getprop_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_paramsArray, __pyx_setprop_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_paramsArray, (char *)0, 0}, {(char *)"numExtSems", __pyx_getprop_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_numExtSems, __pyx_setprop_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_numExtSems, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaExternalSemaphoreSignalNodeParams(void_ptr _ptr=0)\n\n External semaphore signal node parameters\n\n Attributes\n ----------\n extSemArray : cudaExternalSemaphore_t\n Array of external semaphore handles.\n paramsArray : cudaExternalSemaphoreSignalParams\n Array of external semaphore signal parameters.\n numExtSems : unsigned int\n Number of handles and parameters supplied in extSemArray and\n paramsArray.\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams_spec = { "cuda.cudart.cudaExternalSemaphoreSignalNodeParams", sizeof(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaExternalSemaphoreSignalNodeParams", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n External semaphore signal node parameters\n\n Attributes\n ----------\n extSemArray : cudaExternalSemaphore_t\n Array of external semaphore handles.\n paramsArray : cudaExternalSemaphoreSignalParams\n Array of external semaphore signal parameters.\n numExtSems : unsigned int\n Number of handles and parameters supplied in extSemArray and\n paramsArray.\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_6cudart_cudaExternalSemaphoreSignalNodeParams, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_37cudaExternalSemaphoreSignalNodeParams_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 *)o); new((void*)&(p->_cudaExternalSemaphoreSignalNodeParamsV2__val)) struct cudaExternalSemaphoreSignalNodeParamsV2(); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaExternalSemaphoreSignalNodeParamsV2(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 *p = (struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaExternalSemaphoreSignalNodeParamsV2__val); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_extSemArray(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_11extSemArray_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_extSemArray(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_11extSemArray_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_paramsArray(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_11paramsArray_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_paramsArray(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_11paramsArray_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_numExtSems(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_10numExtSems_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_numExtSems(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_10numExtSems_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2[] = { {(char *)"extSemArray", __pyx_getprop_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_extSemArray, __pyx_setprop_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_extSemArray, (char *)0, 0}, {(char *)"paramsArray", __pyx_getprop_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_paramsArray, __pyx_setprop_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_paramsArray, (char *)0, 0}, {(char *)"numExtSems", __pyx_getprop_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_numExtSems, __pyx_setprop_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_numExtSems, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaExternalSemaphoreSignalNodeParamsV2(void_ptr _ptr=0)\n\n External semaphore signal node parameters\n\n Attributes\n ----------\n extSemArray : cudaExternalSemaphore_t\n Array of external semaphore handles.\n paramsArray : cudaExternalSemaphoreSignalParams\n Array of external semaphore signal parameters.\n numExtSems : unsigned int\n Number of handles and parameters supplied in extSemArray and\n paramsArray.\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2_spec = { "cuda.cudart.cudaExternalSemaphoreSignalNodeParamsV2", sizeof(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaExternalSemaphoreSignalNodeParamsV2", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n External semaphore signal node parameters\n\n Attributes\n ----------\n extSemArray : cudaExternalSemaphore_t\n Array of external semaphore handles.\n paramsArray : cudaExternalSemaphoreSignalParams\n Array of external semaphore signal parameters.\n numExtSems : unsigned int\n Number of handles and parameters supplied in extSemArray and\n paramsArray.\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_6cudart_cudaExternalSemaphoreSignalNodeParamsV2, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *)o); new((void*)&(p->_cudaExternalSemaphoreWaitNodeParams__val)) struct cudaExternalSemaphoreWaitNodeParams(); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaExternalSemaphoreWaitNodeParams(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *p = (struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_35cudaExternalSemaphoreWaitNodeParams_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaExternalSemaphoreWaitNodeParams__val); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_extSemArray(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_11extSemArray_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_extSemArray(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_11extSemArray_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_paramsArray(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_11paramsArray_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_paramsArray(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_11paramsArray_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_numExtSems(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_10numExtSems_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_numExtSems(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_10numExtSems_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams[] = { {(char *)"extSemArray", __pyx_getprop_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_extSemArray, __pyx_setprop_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_extSemArray, (char *)0, 0}, {(char *)"paramsArray", __pyx_getprop_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_paramsArray, __pyx_setprop_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_paramsArray, (char *)0, 0}, {(char *)"numExtSems", __pyx_getprop_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_numExtSems, __pyx_setprop_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_numExtSems, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaExternalSemaphoreWaitNodeParams(void_ptr _ptr=0)\n\n External semaphore wait node parameters\n\n Attributes\n ----------\n extSemArray : cudaExternalSemaphore_t\n Array of external semaphore handles.\n paramsArray : cudaExternalSemaphoreWaitParams\n Array of external semaphore wait parameters.\n numExtSems : unsigned int\n Number of handles and parameters supplied in extSemArray and\n paramsArray.\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams_spec = { "cuda.cudart.cudaExternalSemaphoreWaitNodeParams", sizeof(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaExternalSemaphoreWaitNodeParams", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n External semaphore wait node parameters\n\n Attributes\n ----------\n extSemArray : cudaExternalSemaphore_t\n Array of external semaphore handles.\n paramsArray : cudaExternalSemaphoreWaitParams\n Array of external semaphore wait parameters.\n numExtSems : unsigned int\n Number of handles and parameters supplied in extSemArray and\n paramsArray.\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_6cudart_cudaExternalSemaphoreWaitNodeParams, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_35cudaExternalSemaphoreWaitNodeParams_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 *)o); new((void*)&(p->_cudaExternalSemaphoreWaitNodeParamsV2__val)) struct cudaExternalSemaphoreWaitNodeParamsV2(); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaExternalSemaphoreWaitNodeParamsV2(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 *p = (struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaExternalSemaphoreWaitNodeParamsV2__val); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_extSemArray(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_11extSemArray_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_extSemArray(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_11extSemArray_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_paramsArray(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_11paramsArray_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_paramsArray(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_11paramsArray_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_numExtSems(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_10numExtSems_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_numExtSems(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_10numExtSems_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2[] = { {(char *)"extSemArray", __pyx_getprop_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_extSemArray, __pyx_setprop_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_extSemArray, (char *)0, 0}, {(char *)"paramsArray", __pyx_getprop_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_paramsArray, __pyx_setprop_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_paramsArray, (char *)0, 0}, {(char *)"numExtSems", __pyx_getprop_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_numExtSems, __pyx_setprop_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_numExtSems, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaExternalSemaphoreWaitNodeParamsV2(void_ptr _ptr=0)\n\n External semaphore wait node parameters\n\n Attributes\n ----------\n extSemArray : cudaExternalSemaphore_t\n Array of external semaphore handles.\n paramsArray : cudaExternalSemaphoreWaitParams\n Array of external semaphore wait parameters.\n numExtSems : unsigned int\n Number of handles and parameters supplied in extSemArray and\n paramsArray.\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2_spec = { "cuda.cudart.cudaExternalSemaphoreWaitNodeParamsV2", sizeof(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaExternalSemaphoreWaitNodeParamsV2", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n External semaphore wait node parameters\n\n Attributes\n ----------\n extSemArray : cudaExternalSemaphore_t\n Array of external semaphore handles.\n paramsArray : cudaExternalSemaphoreWaitParams\n Array of external semaphore wait parameters.\n numExtSems : unsigned int\n Number of handles and parameters supplied in extSemArray and\n paramsArray.\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_6cudart_cudaExternalSemaphoreWaitNodeParamsV2, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaConditionalNodeParams(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *)o); new((void*)&(p->_cudaConditionalNodeParams__val)) struct cudaConditionalNodeParams(); p->_handle = ((struct __pyx_obj_4cuda_6cudart_cudaGraphConditionalHandle *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaConditionalNodeParams(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *p = (struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_25cudaConditionalNodeParams_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaConditionalNodeParams__val); Py_CLEAR(p->_handle); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_cudaConditionalNodeParams(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *p = (struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *)o; if (p->_handle) { e = (*v)(((PyObject *)p->_handle), a); if (e) return e; } return 0; } static int __pyx_tp_clear_4cuda_6cudart_cudaConditionalNodeParams(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *p = (struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *)o; tmp = ((PyObject*)p->_handle); p->_handle = ((struct __pyx_obj_4cuda_6cudart_cudaGraphConditionalHandle *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_25cudaConditionalNodeParams_handle(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_25cudaConditionalNodeParams_6handle_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_25cudaConditionalNodeParams_handle(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_25cudaConditionalNodeParams_6handle_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_25cudaConditionalNodeParams_type(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_25cudaConditionalNodeParams_4type_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_25cudaConditionalNodeParams_type(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_25cudaConditionalNodeParams_4type_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_25cudaConditionalNodeParams_size(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_25cudaConditionalNodeParams_4size_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_25cudaConditionalNodeParams_size(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_25cudaConditionalNodeParams_4size_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_25cudaConditionalNodeParams_phGraph_out(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_25cudaConditionalNodeParams_11phGraph_out_1__get__(o); } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_25cudaConditionalNodeParams_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_25cudaConditionalNodeParams_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaConditionalNodeParams[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_25cudaConditionalNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_25cudaConditionalNodeParams_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_25cudaConditionalNodeParams_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_25cudaConditionalNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_25cudaConditionalNodeParams_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_25cudaConditionalNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_25cudaConditionalNodeParams_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaConditionalNodeParams[] = { {(char *)"handle", __pyx_getprop_4cuda_6cudart_25cudaConditionalNodeParams_handle, __pyx_setprop_4cuda_6cudart_25cudaConditionalNodeParams_handle, (char *)0, 0}, {(char *)"type", __pyx_getprop_4cuda_6cudart_25cudaConditionalNodeParams_type, __pyx_setprop_4cuda_6cudart_25cudaConditionalNodeParams_type, (char *)0, 0}, {(char *)"size", __pyx_getprop_4cuda_6cudart_25cudaConditionalNodeParams_size, __pyx_setprop_4cuda_6cudart_25cudaConditionalNodeParams_size, (char *)0, 0}, {(char *)"phGraph_out", __pyx_getprop_4cuda_6cudart_25cudaConditionalNodeParams_phGraph_out, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaConditionalNodeParams_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaConditionalNodeParams}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_25cudaConditionalNodeParams_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaConditionalNodeParams(void_ptr _ptr=0)\n\n CUDA conditional node parameters\n\n Attributes\n ----------\n handle : cudaGraphConditionalHandle\n Conditional node handle. Handles must be created in advance of\n creating the node using cudaGraphConditionalHandleCreate.\n type : cudaGraphConditionalNodeType\n Type of conditional node.\n size : unsigned int\n Size of graph output array. Must be 1.\n phGraph_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.\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaConditionalNodeParams}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaConditionalNodeParams}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaConditionalNodeParams}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaConditionalNodeParams}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_25cudaConditionalNodeParams_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaConditionalNodeParams}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaConditionalNodeParams_spec = { "cuda.cudart.cudaConditionalNodeParams", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_cudaConditionalNodeParams_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaConditionalNodeParams = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaConditionalNodeParams", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaConditionalNodeParams, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n CUDA conditional node parameters\n\n Attributes\n ----------\n handle : cudaGraphConditionalHandle\n Conditional node handle. Handles must be created in advance of\n creating the node using cudaGraphConditionalHandleCreate.\n type : cudaGraphConditionalNodeType\n Type of conditional node.\n size : unsigned int\n Size of graph output array. Must be 1.\n phGraph_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.\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaConditionalNodeParams, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_cudaConditionalNodeParams, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_cudaConditionalNodeParams, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_25cudaConditionalNodeParams_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaChildGraphNodeParams(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaChildGraphNodeParams *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaChildGraphNodeParams *)o); new((void*)&(p->_cudaChildGraphNodeParams__val)) struct cudaChildGraphNodeParams(); p->_graph = ((struct __pyx_obj_4cuda_6cudart_cudaGraph_t *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaChildGraphNodeParams(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaChildGraphNodeParams *p = (struct __pyx_obj_4cuda_6cudart_cudaChildGraphNodeParams *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_24cudaChildGraphNodeParams_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaChildGraphNodeParams__val); Py_CLEAR(p->_graph); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_cudaChildGraphNodeParams(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_cudaChildGraphNodeParams *p = (struct __pyx_obj_4cuda_6cudart_cudaChildGraphNodeParams *)o; if (p->_graph) { e = (*v)(((PyObject *)p->_graph), a); if (e) return e; } return 0; } static int __pyx_tp_clear_4cuda_6cudart_cudaChildGraphNodeParams(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_cudaChildGraphNodeParams *p = (struct __pyx_obj_4cuda_6cudart_cudaChildGraphNodeParams *)o; tmp = ((PyObject*)p->_graph); p->_graph = ((struct __pyx_obj_4cuda_6cudart_cudaGraph_t *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_24cudaChildGraphNodeParams_graph(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_24cudaChildGraphNodeParams_5graph_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_24cudaChildGraphNodeParams_graph(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_24cudaChildGraphNodeParams_5graph_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_24cudaChildGraphNodeParams_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_24cudaChildGraphNodeParams_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaChildGraphNodeParams[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_24cudaChildGraphNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_24cudaChildGraphNodeParams_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_24cudaChildGraphNodeParams_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_24cudaChildGraphNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_24cudaChildGraphNodeParams_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_24cudaChildGraphNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_24cudaChildGraphNodeParams_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaChildGraphNodeParams[] = { {(char *)"graph", __pyx_getprop_4cuda_6cudart_24cudaChildGraphNodeParams_graph, __pyx_setprop_4cuda_6cudart_24cudaChildGraphNodeParams_graph, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaChildGraphNodeParams_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaChildGraphNodeParams}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_24cudaChildGraphNodeParams_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaChildGraphNodeParams(void_ptr _ptr=0)\n\n Child graph node parameters\n\n Attributes\n ----------\n graph : 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\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaChildGraphNodeParams}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaChildGraphNodeParams}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaChildGraphNodeParams}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaChildGraphNodeParams}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_24cudaChildGraphNodeParams_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaChildGraphNodeParams}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaChildGraphNodeParams_spec = { "cuda.cudart.cudaChildGraphNodeParams", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_cudaChildGraphNodeParams_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaChildGraphNodeParams = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaChildGraphNodeParams", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaChildGraphNodeParams), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaChildGraphNodeParams, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Child graph node parameters\n\n Attributes\n ----------\n graph : 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\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaChildGraphNodeParams, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_cudaChildGraphNodeParams, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_cudaChildGraphNodeParams, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_24cudaChildGraphNodeParams_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaEventRecordNodeParams(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaEventRecordNodeParams *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaEventRecordNodeParams *)o); new((void*)&(p->_cudaEventRecordNodeParams__val)) struct cudaEventRecordNodeParams(); p->_event = ((struct __pyx_obj_4cuda_6cudart_cudaEvent_t *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaEventRecordNodeParams(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaEventRecordNodeParams *p = (struct __pyx_obj_4cuda_6cudart_cudaEventRecordNodeParams *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_25cudaEventRecordNodeParams_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaEventRecordNodeParams__val); Py_CLEAR(p->_event); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_cudaEventRecordNodeParams(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_cudaEventRecordNodeParams *p = (struct __pyx_obj_4cuda_6cudart_cudaEventRecordNodeParams *)o; if (p->_event) { e = (*v)(((PyObject *)p->_event), a); if (e) return e; } return 0; } static int __pyx_tp_clear_4cuda_6cudart_cudaEventRecordNodeParams(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_cudaEventRecordNodeParams *p = (struct __pyx_obj_4cuda_6cudart_cudaEventRecordNodeParams *)o; tmp = ((PyObject*)p->_event); p->_event = ((struct __pyx_obj_4cuda_6cudart_cudaEvent_t *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_25cudaEventRecordNodeParams_event(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_25cudaEventRecordNodeParams_5event_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_25cudaEventRecordNodeParams_event(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_25cudaEventRecordNodeParams_5event_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_25cudaEventRecordNodeParams_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_25cudaEventRecordNodeParams_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaEventRecordNodeParams[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_25cudaEventRecordNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_25cudaEventRecordNodeParams_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_25cudaEventRecordNodeParams_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_25cudaEventRecordNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_25cudaEventRecordNodeParams_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_25cudaEventRecordNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_25cudaEventRecordNodeParams_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaEventRecordNodeParams[] = { {(char *)"event", __pyx_getprop_4cuda_6cudart_25cudaEventRecordNodeParams_event, __pyx_setprop_4cuda_6cudart_25cudaEventRecordNodeParams_event, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaEventRecordNodeParams_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaEventRecordNodeParams}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_25cudaEventRecordNodeParams_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaEventRecordNodeParams(void_ptr _ptr=0)\n\n Event record node parameters\n\n Attributes\n ----------\n event : cudaEvent_t\n The event to record when the node executes\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaEventRecordNodeParams}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaEventRecordNodeParams}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaEventRecordNodeParams}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaEventRecordNodeParams}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_25cudaEventRecordNodeParams_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaEventRecordNodeParams}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaEventRecordNodeParams_spec = { "cuda.cudart.cudaEventRecordNodeParams", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_cudaEventRecordNodeParams_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaEventRecordNodeParams = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaEventRecordNodeParams", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaEventRecordNodeParams), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaEventRecordNodeParams, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Event record node parameters\n\n Attributes\n ----------\n event : cudaEvent_t\n The event to record when the node executes\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaEventRecordNodeParams, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_cudaEventRecordNodeParams, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_cudaEventRecordNodeParams, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_25cudaEventRecordNodeParams_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaEventWaitNodeParams(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaEventWaitNodeParams *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaEventWaitNodeParams *)o); new((void*)&(p->_cudaEventWaitNodeParams__val)) struct cudaEventWaitNodeParams(); p->_event = ((struct __pyx_obj_4cuda_6cudart_cudaEvent_t *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaEventWaitNodeParams(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaEventWaitNodeParams *p = (struct __pyx_obj_4cuda_6cudart_cudaEventWaitNodeParams *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_23cudaEventWaitNodeParams_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaEventWaitNodeParams__val); Py_CLEAR(p->_event); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_cudaEventWaitNodeParams(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_cudaEventWaitNodeParams *p = (struct __pyx_obj_4cuda_6cudart_cudaEventWaitNodeParams *)o; if (p->_event) { e = (*v)(((PyObject *)p->_event), a); if (e) return e; } return 0; } static int __pyx_tp_clear_4cuda_6cudart_cudaEventWaitNodeParams(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_cudaEventWaitNodeParams *p = (struct __pyx_obj_4cuda_6cudart_cudaEventWaitNodeParams *)o; tmp = ((PyObject*)p->_event); p->_event = ((struct __pyx_obj_4cuda_6cudart_cudaEvent_t *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_23cudaEventWaitNodeParams_event(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_23cudaEventWaitNodeParams_5event_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_23cudaEventWaitNodeParams_event(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_23cudaEventWaitNodeParams_5event_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_23cudaEventWaitNodeParams_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_23cudaEventWaitNodeParams_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaEventWaitNodeParams[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_23cudaEventWaitNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_23cudaEventWaitNodeParams_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_23cudaEventWaitNodeParams_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_23cudaEventWaitNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_23cudaEventWaitNodeParams_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_23cudaEventWaitNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_23cudaEventWaitNodeParams_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaEventWaitNodeParams[] = { {(char *)"event", __pyx_getprop_4cuda_6cudart_23cudaEventWaitNodeParams_event, __pyx_setprop_4cuda_6cudart_23cudaEventWaitNodeParams_event, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaEventWaitNodeParams_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaEventWaitNodeParams}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_23cudaEventWaitNodeParams_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaEventWaitNodeParams(void_ptr _ptr=0)\n\n Event wait node parameters\n\n Attributes\n ----------\n event : cudaEvent_t\n The event to wait on from the node\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaEventWaitNodeParams}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaEventWaitNodeParams}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaEventWaitNodeParams}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaEventWaitNodeParams}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_23cudaEventWaitNodeParams_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaEventWaitNodeParams}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaEventWaitNodeParams_spec = { "cuda.cudart.cudaEventWaitNodeParams", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_cudaEventWaitNodeParams_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaEventWaitNodeParams = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaEventWaitNodeParams", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaEventWaitNodeParams), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaEventWaitNodeParams, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Event wait node parameters\n\n Attributes\n ----------\n event : cudaEvent_t\n The event to wait on from the node\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaEventWaitNodeParams, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_cudaEventWaitNodeParams, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_cudaEventWaitNodeParams, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_23cudaEventWaitNodeParams_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaGraphNodeParams(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)o); p->_kernel = ((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *)Py_None); Py_INCREF(Py_None); p->_memcpy = ((struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *)Py_None); Py_INCREF(Py_None); p->_memset = ((struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *)Py_None); Py_INCREF(Py_None); p->_host = ((struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2 *)Py_None); Py_INCREF(Py_None); p->_graph = ((struct __pyx_obj_4cuda_6cudart_cudaChildGraphNodeParams *)Py_None); Py_INCREF(Py_None); p->_eventWait = ((struct __pyx_obj_4cuda_6cudart_cudaEventWaitNodeParams *)Py_None); Py_INCREF(Py_None); p->_eventRecord = ((struct __pyx_obj_4cuda_6cudart_cudaEventRecordNodeParams *)Py_None); Py_INCREF(Py_None); p->_extSemSignal = ((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 *)Py_None); Py_INCREF(Py_None); p->_extSemWait = ((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 *)Py_None); Py_INCREF(Py_None); p->_alloc = ((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *)Py_None); Py_INCREF(Py_None); p->_free = ((struct __pyx_obj_4cuda_6cudart_cudaMemFreeNodeParams *)Py_None); Py_INCREF(Py_None); p->_conditional = ((struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaGraphNodeParams(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *p = (struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_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); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_cudaGraphNodeParams(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *p = (struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)o; 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_6cudart_cudaGraphNodeParams(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *p = (struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams *)o; tmp = ((PyObject*)p->_kernel); p->_kernel = ((struct __pyx_obj_4cuda_6cudart_cudaKernelNodeParamsV2 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_memcpy); p->_memcpy = ((struct __pyx_obj_4cuda_6cudart_cudaMemcpyNodeParams *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_memset); p->_memset = ((struct __pyx_obj_4cuda_6cudart_cudaMemsetParamsV2 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_host); p->_host = ((struct __pyx_obj_4cuda_6cudart_cudaHostNodeParamsV2 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_graph); p->_graph = ((struct __pyx_obj_4cuda_6cudart_cudaChildGraphNodeParams *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_eventWait); p->_eventWait = ((struct __pyx_obj_4cuda_6cudart_cudaEventWaitNodeParams *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_eventRecord); p->_eventRecord = ((struct __pyx_obj_4cuda_6cudart_cudaEventRecordNodeParams *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_extSemSignal); p->_extSemSignal = ((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_extSemWait); p->_extSemWait = ((struct __pyx_obj_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_alloc); p->_alloc = ((struct __pyx_obj_4cuda_6cudart_cudaMemAllocNodeParamsV2 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_free); p->_free = ((struct __pyx_obj_4cuda_6cudart_cudaMemFreeNodeParams *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_conditional); p->_conditional = ((struct __pyx_obj_4cuda_6cudart_cudaConditionalNodeParams *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_19cudaGraphNodeParams_type(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_4type_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_19cudaGraphNodeParams_type(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_4type_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_19cudaGraphNodeParams_reserved0(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_9reserved0_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_19cudaGraphNodeParams_reserved0(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_9reserved0_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_19cudaGraphNodeParams_reserved1(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_9reserved1_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_19cudaGraphNodeParams_reserved1(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_9reserved1_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_19cudaGraphNodeParams_kernel(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_6kernel_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_19cudaGraphNodeParams_kernel(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_6kernel_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_19cudaGraphNodeParams_memcpy(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_6memcpy_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_19cudaGraphNodeParams_memcpy(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_6memcpy_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_19cudaGraphNodeParams_memset(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_6memset_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_19cudaGraphNodeParams_memset(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_6memset_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_19cudaGraphNodeParams_host(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_4host_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_19cudaGraphNodeParams_host(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_4host_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_19cudaGraphNodeParams_graph(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_5graph_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_19cudaGraphNodeParams_graph(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_5graph_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_19cudaGraphNodeParams_eventWait(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_9eventWait_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_19cudaGraphNodeParams_eventWait(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_9eventWait_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_19cudaGraphNodeParams_eventRecord(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_11eventRecord_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_19cudaGraphNodeParams_eventRecord(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_11eventRecord_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_19cudaGraphNodeParams_extSemSignal(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_12extSemSignal_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_19cudaGraphNodeParams_extSemSignal(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_12extSemSignal_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_19cudaGraphNodeParams_extSemWait(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_10extSemWait_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_19cudaGraphNodeParams_extSemWait(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_10extSemWait_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_19cudaGraphNodeParams_alloc(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_5alloc_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_19cudaGraphNodeParams_alloc(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_5alloc_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_19cudaGraphNodeParams_free(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_4free_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_19cudaGraphNodeParams_free(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_4free_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_19cudaGraphNodeParams_conditional(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_11conditional_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_19cudaGraphNodeParams_conditional(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_11conditional_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_19cudaGraphNodeParams_reserved2(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_9reserved2_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_19cudaGraphNodeParams_reserved2(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_9reserved2_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaGraphNodeParams[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_19cudaGraphNodeParams_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_19cudaGraphNodeParams_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_19cudaGraphNodeParams_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaGraphNodeParams[] = { {(char *)"type", __pyx_getprop_4cuda_6cudart_19cudaGraphNodeParams_type, __pyx_setprop_4cuda_6cudart_19cudaGraphNodeParams_type, (char *)0, 0}, {(char *)"reserved0", __pyx_getprop_4cuda_6cudart_19cudaGraphNodeParams_reserved0, __pyx_setprop_4cuda_6cudart_19cudaGraphNodeParams_reserved0, (char *)0, 0}, {(char *)"reserved1", __pyx_getprop_4cuda_6cudart_19cudaGraphNodeParams_reserved1, __pyx_setprop_4cuda_6cudart_19cudaGraphNodeParams_reserved1, (char *)0, 0}, {(char *)"kernel", __pyx_getprop_4cuda_6cudart_19cudaGraphNodeParams_kernel, __pyx_setprop_4cuda_6cudart_19cudaGraphNodeParams_kernel, (char *)0, 0}, {(char *)"memcpy", __pyx_getprop_4cuda_6cudart_19cudaGraphNodeParams_memcpy, __pyx_setprop_4cuda_6cudart_19cudaGraphNodeParams_memcpy, (char *)0, 0}, {(char *)"memset", __pyx_getprop_4cuda_6cudart_19cudaGraphNodeParams_memset, __pyx_setprop_4cuda_6cudart_19cudaGraphNodeParams_memset, (char *)0, 0}, {(char *)"host", __pyx_getprop_4cuda_6cudart_19cudaGraphNodeParams_host, __pyx_setprop_4cuda_6cudart_19cudaGraphNodeParams_host, (char *)0, 0}, {(char *)"graph", __pyx_getprop_4cuda_6cudart_19cudaGraphNodeParams_graph, __pyx_setprop_4cuda_6cudart_19cudaGraphNodeParams_graph, (char *)0, 0}, {(char *)"eventWait", __pyx_getprop_4cuda_6cudart_19cudaGraphNodeParams_eventWait, __pyx_setprop_4cuda_6cudart_19cudaGraphNodeParams_eventWait, (char *)0, 0}, {(char *)"eventRecord", __pyx_getprop_4cuda_6cudart_19cudaGraphNodeParams_eventRecord, __pyx_setprop_4cuda_6cudart_19cudaGraphNodeParams_eventRecord, (char *)0, 0}, {(char *)"extSemSignal", __pyx_getprop_4cuda_6cudart_19cudaGraphNodeParams_extSemSignal, __pyx_setprop_4cuda_6cudart_19cudaGraphNodeParams_extSemSignal, (char *)0, 0}, {(char *)"extSemWait", __pyx_getprop_4cuda_6cudart_19cudaGraphNodeParams_extSemWait, __pyx_setprop_4cuda_6cudart_19cudaGraphNodeParams_extSemWait, (char *)0, 0}, {(char *)"alloc", __pyx_getprop_4cuda_6cudart_19cudaGraphNodeParams_alloc, __pyx_setprop_4cuda_6cudart_19cudaGraphNodeParams_alloc, (char *)0, 0}, {(char *)"free", __pyx_getprop_4cuda_6cudart_19cudaGraphNodeParams_free, __pyx_setprop_4cuda_6cudart_19cudaGraphNodeParams_free, (char *)0, 0}, {(char *)"conditional", __pyx_getprop_4cuda_6cudart_19cudaGraphNodeParams_conditional, __pyx_setprop_4cuda_6cudart_19cudaGraphNodeParams_conditional, (char *)0, 0}, {(char *)"reserved2", __pyx_getprop_4cuda_6cudart_19cudaGraphNodeParams_reserved2, __pyx_setprop_4cuda_6cudart_19cudaGraphNodeParams_reserved2, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaGraphNodeParams_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaGraphNodeParams}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaGraphNodeParams(void_ptr _ptr=0)\n\n Graph node parameters. See cudaGraphAddNode.\n\n Attributes\n ----------\n type : cudaGraphNodeType\n Type of the node\n reserved0 : List[int]\n Reserved. Must be zero.\n reserved1 : List[long long]\n Padding. Unused bytes must be zero.\n kernel : cudaKernelNodeParamsV2\n Kernel node parameters.\n memcpy : cudaMemcpyNodeParams\n Memcpy node parameters.\n memset : cudaMemsetParamsV2\n Memset node parameters.\n host : cudaHostNodeParamsV2\n Host node parameters.\n graph : cudaChildGraphNodeParams\n Child graph node parameters.\n eventWait : cudaEventWaitNodeParams\n Event wait node parameters.\n eventRecord : cudaEventRecordNodeParams\n Event record node parameters.\n extSemSignal : cudaExternalSemaphoreSignalNodeParamsV2\n External semaphore signal node parameters.\n extSemWait : cudaExternalSemaphoreWaitNodeParamsV2\n External semaphore wait node parameters.\n alloc : cudaMemAllocNodeParamsV2\n Memory allocation node parameters.\n free : cudaMemFreeNodeParams\n Memory free node parameters.\n conditional : cudaConditionalNodeParams\n Conditional node parameters.\n reserved2 : long long\n Reserved bytes. Must be zero.\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaGraphNodeParams}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaGraphNodeParams}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaGraphNodeParams}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaGraphNodeParams}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_19cudaGraphNodeParams_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaGraphNodeParams}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaGraphNodeParams_spec = { "cuda.cudart.cudaGraphNodeParams", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_cudaGraphNodeParams_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaGraphNodeParams = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaGraphNodeParams", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaGraphNodeParams), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaGraphNodeParams, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Graph node parameters. See cudaGraphAddNode.\n\n Attributes\n ----------\n type : cudaGraphNodeType\n Type of the node\n reserved0 : List[int]\n Reserved. Must be zero.\n reserved1 : List[long long]\n Padding. Unused bytes must be zero.\n kernel : cudaKernelNodeParamsV2\n Kernel node parameters.\n memcpy : cudaMemcpyNodeParams\n Memcpy node parameters.\n memset : cudaMemsetParamsV2\n Memset node parameters.\n host : cudaHostNodeParamsV2\n Host node parameters.\n graph : cudaChildGraphNodeParams\n Child graph node parameters.\n eventWait : cudaEventWaitNodeParams\n Event wait node parameters.\n eventRecord : cudaEventRecordNodeParams\n Event record node parameters.\n extSemSignal : cudaExternalSemaphoreSignalNodeParamsV2\n External semaphore signal node parameters.\n extSemWait : cudaExternalSemaphoreWaitNodeParamsV2\n External semaphore wait node parameters.\n alloc : cudaMemAllocNodeParamsV2\n Memory allocation node parameters.\n free : cudaMemFreeNodeParams\n Memory free node parameters.\n conditional : cudaConditionalNodeParams\n Conditional node parameters.\n reserved2 : long long\n Reserved bytes. Must be zero.\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaGraphNodeParams, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_cudaGraphNodeParams, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_cudaGraphNodeParams, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_19cudaGraphNodeParams_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaGraphEdgeData_st(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st *)o); new((void*)&(p->_cudaGraphEdgeData_st__val)) struct cudaGraphEdgeData_st(); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaGraphEdgeData_st(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st *p = (struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_20cudaGraphEdgeData_st_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaGraphEdgeData_st__val); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_20cudaGraphEdgeData_st_from_port(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_20cudaGraphEdgeData_st_9from_port_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_20cudaGraphEdgeData_st_from_port(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_20cudaGraphEdgeData_st_9from_port_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_20cudaGraphEdgeData_st_to_port(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_20cudaGraphEdgeData_st_7to_port_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_20cudaGraphEdgeData_st_to_port(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_20cudaGraphEdgeData_st_7to_port_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_20cudaGraphEdgeData_st_type(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_20cudaGraphEdgeData_st_4type_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_20cudaGraphEdgeData_st_type(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_20cudaGraphEdgeData_st_4type_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_20cudaGraphEdgeData_st_reserved(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_20cudaGraphEdgeData_st_8reserved_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_20cudaGraphEdgeData_st_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_20cudaGraphEdgeData_st_8reserved_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_20cudaGraphEdgeData_st_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_20cudaGraphEdgeData_st_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaGraphEdgeData_st[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaGraphEdgeData_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaGraphEdgeData_st_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_20cudaGraphEdgeData_st_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaGraphEdgeData_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaGraphEdgeData_st_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_20cudaGraphEdgeData_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_20cudaGraphEdgeData_st_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaGraphEdgeData_st[] = { {(char *)"from_port", __pyx_getprop_4cuda_6cudart_20cudaGraphEdgeData_st_from_port, __pyx_setprop_4cuda_6cudart_20cudaGraphEdgeData_st_from_port, (char *)0, 0}, {(char *)"to_port", __pyx_getprop_4cuda_6cudart_20cudaGraphEdgeData_st_to_port, __pyx_setprop_4cuda_6cudart_20cudaGraphEdgeData_st_to_port, (char *)0, 0}, {(char *)"type", __pyx_getprop_4cuda_6cudart_20cudaGraphEdgeData_st_type, __pyx_setprop_4cuda_6cudart_20cudaGraphEdgeData_st_type, (char *)0, 0}, {(char *)"reserved", __pyx_getprop_4cuda_6cudart_20cudaGraphEdgeData_st_reserved, __pyx_setprop_4cuda_6cudart_20cudaGraphEdgeData_st_reserved, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaGraphEdgeData_st_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaGraphEdgeData_st}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_20cudaGraphEdgeData_st_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaGraphEdgeData_st(void_ptr _ptr=0)\n\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\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaGraphEdgeData_st}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaGraphEdgeData_st}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_20cudaGraphEdgeData_st_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaGraphEdgeData_st}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaGraphEdgeData_st_spec = { "cuda.cudart.cudaGraphEdgeData_st", sizeof(struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaGraphEdgeData_st_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaGraphEdgeData_st = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaGraphEdgeData_st", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData_st), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaGraphEdgeData_st, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\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\n "), /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_cudaGraphEdgeData_st, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_20cudaGraphEdgeData_st_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaGraphInstantiateParams_st(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st *)o); new((void*)&(p->_cudaGraphInstantiateParams_st__val)) struct cudaGraphInstantiateParams_st(); p->_uploadStream = ((struct __pyx_obj_4cuda_6cudart_cudaStream_t *)Py_None); Py_INCREF(Py_None); p->_errNode_out = ((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaGraphInstantiateParams_st(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st *p = (struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_29cudaGraphInstantiateParams_st_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaGraphInstantiateParams_st__val); Py_CLEAR(p->_uploadStream); Py_CLEAR(p->_errNode_out); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_cudaGraphInstantiateParams_st(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st *p = (struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st *)o; 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_6cudart_cudaGraphInstantiateParams_st(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st *p = (struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st *)o; tmp = ((PyObject*)p->_uploadStream); p->_uploadStream = ((struct __pyx_obj_4cuda_6cudart_cudaStream_t *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_errNode_out); p->_errNode_out = ((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_29cudaGraphInstantiateParams_st_flags(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_29cudaGraphInstantiateParams_st_5flags_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_29cudaGraphInstantiateParams_st_flags(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_29cudaGraphInstantiateParams_st_5flags_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_29cudaGraphInstantiateParams_st_uploadStream(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_29cudaGraphInstantiateParams_st_12uploadStream_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_29cudaGraphInstantiateParams_st_uploadStream(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_29cudaGraphInstantiateParams_st_12uploadStream_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_29cudaGraphInstantiateParams_st_errNode_out(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_29cudaGraphInstantiateParams_st_11errNode_out_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_29cudaGraphInstantiateParams_st_errNode_out(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_29cudaGraphInstantiateParams_st_11errNode_out_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_29cudaGraphInstantiateParams_st_result_out(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_29cudaGraphInstantiateParams_st_10result_out_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_29cudaGraphInstantiateParams_st_result_out(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_29cudaGraphInstantiateParams_st_10result_out_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_29cudaGraphInstantiateParams_st_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_29cudaGraphInstantiateParams_st_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaGraphInstantiateParams_st[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_29cudaGraphInstantiateParams_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_29cudaGraphInstantiateParams_st_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_29cudaGraphInstantiateParams_st_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_29cudaGraphInstantiateParams_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_29cudaGraphInstantiateParams_st_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_29cudaGraphInstantiateParams_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_29cudaGraphInstantiateParams_st_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaGraphInstantiateParams_st[] = { {(char *)"flags", __pyx_getprop_4cuda_6cudart_29cudaGraphInstantiateParams_st_flags, __pyx_setprop_4cuda_6cudart_29cudaGraphInstantiateParams_st_flags, (char *)0, 0}, {(char *)"uploadStream", __pyx_getprop_4cuda_6cudart_29cudaGraphInstantiateParams_st_uploadStream, __pyx_setprop_4cuda_6cudart_29cudaGraphInstantiateParams_st_uploadStream, (char *)0, 0}, {(char *)"errNode_out", __pyx_getprop_4cuda_6cudart_29cudaGraphInstantiateParams_st_errNode_out, __pyx_setprop_4cuda_6cudart_29cudaGraphInstantiateParams_st_errNode_out, (char *)0, 0}, {(char *)"result_out", __pyx_getprop_4cuda_6cudart_29cudaGraphInstantiateParams_st_result_out, __pyx_setprop_4cuda_6cudart_29cudaGraphInstantiateParams_st_result_out, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaGraphInstantiateParams_st_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaGraphInstantiateParams_st}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_29cudaGraphInstantiateParams_st_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaGraphInstantiateParams_st(void_ptr _ptr=0)\n\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\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaGraphInstantiateParams_st}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaGraphInstantiateParams_st}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaGraphInstantiateParams_st}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaGraphInstantiateParams_st}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_29cudaGraphInstantiateParams_st_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaGraphInstantiateParams_st}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaGraphInstantiateParams_st_spec = { "cuda.cudart.cudaGraphInstantiateParams_st", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_cudaGraphInstantiateParams_st_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaGraphInstantiateParams_st = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaGraphInstantiateParams_st", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams_st), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaGraphInstantiateParams_st, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\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\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaGraphInstantiateParams_st, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_cudaGraphInstantiateParams_st, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_cudaGraphInstantiateParams_st, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_29cudaGraphInstantiateParams_st_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st *)o); new((void*)&(p->_cudaGraphExecUpdateResultInfo_st__val)) struct cudaGraphExecUpdateResultInfo_st(); p->_errorNode = ((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)Py_None); Py_INCREF(Py_None); p->_errorFromNode = ((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaGraphExecUpdateResultInfo_st(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st *p = (struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_32cudaGraphExecUpdateResultInfo_st_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaGraphExecUpdateResultInfo_st__val); Py_CLEAR(p->_errorNode); Py_CLEAR(p->_errorFromNode); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st *p = (struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st *)o; 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_6cudart_cudaGraphExecUpdateResultInfo_st(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st *p = (struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st *)o; tmp = ((PyObject*)p->_errorNode); p->_errorNode = ((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_errorFromNode); p->_errorFromNode = ((struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_result(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_6result_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_result(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_6result_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_errorNode(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_9errorNode_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_errorNode(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_9errorNode_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_errorFromNode(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_13errorFromNode_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_errorFromNode(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_13errorFromNode_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st[] = { {(char *)"result", __pyx_getprop_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_result, __pyx_setprop_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_result, (char *)0, 0}, {(char *)"errorNode", __pyx_getprop_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_errorNode, __pyx_setprop_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_errorNode, (char *)0, 0}, {(char *)"errorFromNode", __pyx_getprop_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_errorFromNode, __pyx_setprop_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_errorFromNode, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaGraphExecUpdateResultInfo_st(void_ptr _ptr=0)\n\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\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st_spec = { "cuda.cudart.cudaGraphExecUpdateResultInfo_st", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_cudaGraphExecUpdateResultInfo_st_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaGraphExecUpdateResultInfo_st", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\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\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_32cudaGraphExecUpdateResultInfo_st_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_anon_struct19(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_anon_struct19(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_13anon_struct19_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_13anon_struct19_pValue(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_13anon_struct19_6pValue_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_13anon_struct19_pValue(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_13anon_struct19_6pValue_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_13anon_struct19_offset(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_13anon_struct19_6offset_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_13anon_struct19_offset(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_13anon_struct19_6offset_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_13anon_struct19_size(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_13anon_struct19_4size_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_13anon_struct19_size(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_13anon_struct19_4size_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_13anon_struct19_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_13anon_struct19_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_anon_struct19[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct19_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct19_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_13anon_struct19_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct19_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct19_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct19_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct19_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_anon_struct19[] = { {(char *)"pValue", __pyx_getprop_4cuda_6cudart_13anon_struct19_pValue, __pyx_setprop_4cuda_6cudart_13anon_struct19_pValue, (char *)0, 0}, {(char *)"offset", __pyx_getprop_4cuda_6cudart_13anon_struct19_offset, __pyx_setprop_4cuda_6cudart_13anon_struct19_offset, (char *)0, 0}, {(char *)"size", __pyx_getprop_4cuda_6cudart_13anon_struct19_size, __pyx_setprop_4cuda_6cudart_13anon_struct19_size, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_anon_struct19_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_anon_struct19}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_13anon_struct19_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("anon_struct19(void_ptr _ptr)\n\n Attributes\n ----------\n pValue : Any\n\n offset : size_t\n\n size : size_t\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_anon_struct19}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_anon_struct19}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_13anon_struct19_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_anon_struct19}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_anon_struct19_spec = { "cuda.cudart.anon_struct19", sizeof(struct __pyx_obj_4cuda_6cudart_anon_struct19), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_anon_struct19_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_anon_struct19 = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""anon_struct19", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_anon_struct19), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_anon_struct19, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Attributes\n ----------\n pValue : Any\n\n offset : size_t\n\n size : size_t\n\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_6cudart_anon_struct19, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_13anon_struct19_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_anon_union8(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_anon_union8 *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_anon_union8 *)o); p->_gridDim = ((struct __pyx_obj_4cuda_6cudart_dim3 *)Py_None); Py_INCREF(Py_None); p->_param = ((struct __pyx_obj_4cuda_6cudart_anon_struct19 *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_anon_union8(PyObject *o) { struct __pyx_obj_4cuda_6cudart_anon_union8 *p = (struct __pyx_obj_4cuda_6cudart_anon_union8 *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_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); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_anon_union8(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_anon_union8 *p = (struct __pyx_obj_4cuda_6cudart_anon_union8 *)o; 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_6cudart_anon_union8(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_anon_union8 *p = (struct __pyx_obj_4cuda_6cudart_anon_union8 *)o; tmp = ((PyObject*)p->_gridDim); p->_gridDim = ((struct __pyx_obj_4cuda_6cudart_dim3 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_param); p->_param = ((struct __pyx_obj_4cuda_6cudart_anon_struct19 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_11anon_union8_gridDim(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_11anon_union8_7gridDim_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_11anon_union8_gridDim(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_11anon_union8_7gridDim_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_11anon_union8_param(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_11anon_union8_5param_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_11anon_union8_param(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_11anon_union8_5param_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_11anon_union8_isEnabled(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_11anon_union8_9isEnabled_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_11anon_union8_isEnabled(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_11anon_union8_9isEnabled_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_11anon_union8_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_11anon_union8_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_anon_union8[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union8_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union8_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_11anon_union8_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union8_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union8_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union8_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union8_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_anon_union8[] = { {(char *)"gridDim", __pyx_getprop_4cuda_6cudart_11anon_union8_gridDim, __pyx_setprop_4cuda_6cudart_11anon_union8_gridDim, (char *)0, 0}, {(char *)"param", __pyx_getprop_4cuda_6cudart_11anon_union8_param, __pyx_setprop_4cuda_6cudart_11anon_union8_param, (char *)0, 0}, {(char *)"isEnabled", __pyx_getprop_4cuda_6cudart_11anon_union8_isEnabled, __pyx_setprop_4cuda_6cudart_11anon_union8_isEnabled, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_anon_union8_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_anon_union8}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_11anon_union8_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("anon_union8(void_ptr _ptr)\n\n Attributes\n ----------\n gridDim : dim3\n\n param : anon_struct19\n\n isEnabled : unsigned int\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_anon_union8}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_anon_union8}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_anon_union8}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_anon_union8}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_11anon_union8_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_anon_union8}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_anon_union8_spec = { "cuda.cudart.anon_union8", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_anon_union8_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_anon_union8 = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""anon_union8", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_anon_union8), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_anon_union8, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Attributes\n ----------\n gridDim : dim3\n\n param : anon_struct19\n\n isEnabled : unsigned int\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_anon_union8, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_anon_union8, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_anon_union8, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_11anon_union8_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaGraphKernelNodeUpdate(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaGraphKernelNodeUpdate *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaGraphKernelNodeUpdate *)o); p->_node = ((struct __pyx_obj_4cuda_6cudart_cudaGraphDeviceNode_t *)Py_None); Py_INCREF(Py_None); p->_updateData = ((struct __pyx_obj_4cuda_6cudart_anon_union8 *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaGraphKernelNodeUpdate(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaGraphKernelNodeUpdate *p = (struct __pyx_obj_4cuda_6cudart_cudaGraphKernelNodeUpdate *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_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); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_cudaGraphKernelNodeUpdate(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_cudaGraphKernelNodeUpdate *p = (struct __pyx_obj_4cuda_6cudart_cudaGraphKernelNodeUpdate *)o; 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_6cudart_cudaGraphKernelNodeUpdate(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_cudaGraphKernelNodeUpdate *p = (struct __pyx_obj_4cuda_6cudart_cudaGraphKernelNodeUpdate *)o; tmp = ((PyObject*)p->_node); p->_node = ((struct __pyx_obj_4cuda_6cudart_cudaGraphDeviceNode_t *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_updateData); p->_updateData = ((struct __pyx_obj_4cuda_6cudart_anon_union8 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_25cudaGraphKernelNodeUpdate_node(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_25cudaGraphKernelNodeUpdate_4node_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_25cudaGraphKernelNodeUpdate_node(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_25cudaGraphKernelNodeUpdate_4node_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_25cudaGraphKernelNodeUpdate_field(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_25cudaGraphKernelNodeUpdate_5field_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_25cudaGraphKernelNodeUpdate_field(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_25cudaGraphKernelNodeUpdate_5field_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_25cudaGraphKernelNodeUpdate_updateData(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_25cudaGraphKernelNodeUpdate_10updateData_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_25cudaGraphKernelNodeUpdate_updateData(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_25cudaGraphKernelNodeUpdate_10updateData_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_25cudaGraphKernelNodeUpdate_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_25cudaGraphKernelNodeUpdate_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaGraphKernelNodeUpdate[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_25cudaGraphKernelNodeUpdate_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_25cudaGraphKernelNodeUpdate_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_25cudaGraphKernelNodeUpdate_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_25cudaGraphKernelNodeUpdate_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_25cudaGraphKernelNodeUpdate_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_25cudaGraphKernelNodeUpdate_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_25cudaGraphKernelNodeUpdate_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaGraphKernelNodeUpdate[] = { {(char *)"node", __pyx_getprop_4cuda_6cudart_25cudaGraphKernelNodeUpdate_node, __pyx_setprop_4cuda_6cudart_25cudaGraphKernelNodeUpdate_node, (char *)0, 0}, {(char *)"field", __pyx_getprop_4cuda_6cudart_25cudaGraphKernelNodeUpdate_field, __pyx_setprop_4cuda_6cudart_25cudaGraphKernelNodeUpdate_field, (char *)0, 0}, {(char *)"updateData", __pyx_getprop_4cuda_6cudart_25cudaGraphKernelNodeUpdate_updateData, __pyx_setprop_4cuda_6cudart_25cudaGraphKernelNodeUpdate_updateData, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaGraphKernelNodeUpdate_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaGraphKernelNodeUpdate}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_25cudaGraphKernelNodeUpdate_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaGraphKernelNodeUpdate(void_ptr _ptr=0)\n\n Struct to specify a single node update to pass as part of a larger\n array to ::cudaGraphKernelNodeUpdatesApply\n\n Attributes\n ----------\n node : cudaGraphDeviceNode_t\n Node to update\n field : cudaGraphKernelNodeField\n Which type of update to apply. Determines how updateData is\n interpreted\n updateData : anon_union8\n Update data to apply. Which field is used depends on field's value\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaGraphKernelNodeUpdate}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaGraphKernelNodeUpdate}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaGraphKernelNodeUpdate}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaGraphKernelNodeUpdate}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_25cudaGraphKernelNodeUpdate_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaGraphKernelNodeUpdate}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaGraphKernelNodeUpdate_spec = { "cuda.cudart.cudaGraphKernelNodeUpdate", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_cudaGraphKernelNodeUpdate_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaGraphKernelNodeUpdate = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaGraphKernelNodeUpdate", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaGraphKernelNodeUpdate), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaGraphKernelNodeUpdate, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Struct to specify a single node update to pass as part of a larger\n array to ::cudaGraphKernelNodeUpdatesApply\n\n Attributes\n ----------\n node : cudaGraphDeviceNode_t\n Node to update\n field : cudaGraphKernelNodeField\n Which type of update to apply. Determines how updateData is\n interpreted\n updateData : anon_union8\n Update data to apply. Which field is used depends on field's value\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaGraphKernelNodeUpdate, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_cudaGraphKernelNodeUpdate, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_cudaGraphKernelNodeUpdate, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_25cudaGraphKernelNodeUpdate_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st *)o); new((void*)&(p->_cudaLaunchMemSyncDomainMap_st__val)) struct cudaLaunchMemSyncDomainMap_st(); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaLaunchMemSyncDomainMap_st(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st *p = (struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_29cudaLaunchMemSyncDomainMap_st_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaLaunchMemSyncDomainMap_st__val); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_default_(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_8default__1__get__(o); } static int __pyx_setprop_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_default_(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_8default__3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_remote(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_6remote_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_remote(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_6remote_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st[] = { {(char *)"default_", __pyx_getprop_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_default_, __pyx_setprop_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_default_, (char *)0, 0}, {(char *)"remote", __pyx_getprop_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_remote, __pyx_setprop_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_remote, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaLaunchMemSyncDomainMap_st(void_ptr _ptr=0)\n\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\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st_spec = { "cuda.cudart.cudaLaunchMemSyncDomainMap_st", sizeof(struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaLaunchMemSyncDomainMap_st", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\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\n "), /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_29cudaLaunchMemSyncDomainMap_st_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_anon_struct20(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_anon_struct20(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_anon_struct20) { 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_6cudart_13anon_struct20_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_13anon_struct20_x(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_13anon_struct20_1x_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_13anon_struct20_x(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_13anon_struct20_1x_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_13anon_struct20_y(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_13anon_struct20_1y_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_13anon_struct20_y(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_13anon_struct20_1y_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_13anon_struct20_z(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_13anon_struct20_1z_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_13anon_struct20_z(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_13anon_struct20_1z_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_13anon_struct20_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_13anon_struct20_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_anon_struct20[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct20_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct20_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_13anon_struct20_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct20_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct20_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct20_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct20_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_anon_struct20[] = { {(char *)"x", __pyx_getprop_4cuda_6cudart_13anon_struct20_x, __pyx_setprop_4cuda_6cudart_13anon_struct20_x, (char *)0, 0}, {(char *)"y", __pyx_getprop_4cuda_6cudart_13anon_struct20_y, __pyx_setprop_4cuda_6cudart_13anon_struct20_y, (char *)0, 0}, {(char *)"z", __pyx_getprop_4cuda_6cudart_13anon_struct20_z, __pyx_setprop_4cuda_6cudart_13anon_struct20_z, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_anon_struct20_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_anon_struct20}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_13anon_struct20_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("anon_struct20(void_ptr _ptr)\n\n Attributes\n ----------\n x : unsigned int\n\n y : unsigned int\n\n z : unsigned int\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_anon_struct20}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_anon_struct20}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_13anon_struct20_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_anon_struct20}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_anon_struct20_spec = { "cuda.cudart.anon_struct20", sizeof(struct __pyx_obj_4cuda_6cudart_anon_struct20), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_anon_struct20_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_anon_struct20 = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""anon_struct20", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_anon_struct20), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_anon_struct20, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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, /*tp_flags*/ PyDoc_STR("anon_struct20(void_ptr _ptr)\n\n Attributes\n ----------\n x : unsigned int\n\n y : unsigned int\n\n z : unsigned int\n\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_6cudart_anon_struct20, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_13anon_struct20_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_anon_struct21(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_anon_struct21 *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_anon_struct21 *)o); p->_event = ((struct __pyx_obj_4cuda_6cudart_cudaEvent_t *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_anon_struct21(PyObject *o) { struct __pyx_obj_4cuda_6cudart_anon_struct21 *p = (struct __pyx_obj_4cuda_6cudart_anon_struct21 *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_13anon_struct21_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } Py_CLEAR(p->_event); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_anon_struct21(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_anon_struct21 *p = (struct __pyx_obj_4cuda_6cudart_anon_struct21 *)o; if (p->_event) { e = (*v)(((PyObject *)p->_event), a); if (e) return e; } return 0; } static int __pyx_tp_clear_4cuda_6cudart_anon_struct21(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_anon_struct21 *p = (struct __pyx_obj_4cuda_6cudart_anon_struct21 *)o; tmp = ((PyObject*)p->_event); p->_event = ((struct __pyx_obj_4cuda_6cudart_cudaEvent_t *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_13anon_struct21_event(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_13anon_struct21_5event_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_13anon_struct21_event(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_13anon_struct21_5event_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_13anon_struct21_flags(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_13anon_struct21_5flags_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_13anon_struct21_flags(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_13anon_struct21_5flags_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_13anon_struct21_triggerAtBlockStart(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_13anon_struct21_19triggerAtBlockStart_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_13anon_struct21_triggerAtBlockStart(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_13anon_struct21_19triggerAtBlockStart_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_13anon_struct21_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_13anon_struct21_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_anon_struct21[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct21_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct21_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_13anon_struct21_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct21_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct21_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct21_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct21_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_anon_struct21[] = { {(char *)"event", __pyx_getprop_4cuda_6cudart_13anon_struct21_event, __pyx_setprop_4cuda_6cudart_13anon_struct21_event, (char *)0, 0}, {(char *)"flags", __pyx_getprop_4cuda_6cudart_13anon_struct21_flags, __pyx_setprop_4cuda_6cudart_13anon_struct21_flags, (char *)0, 0}, {(char *)"triggerAtBlockStart", __pyx_getprop_4cuda_6cudart_13anon_struct21_triggerAtBlockStart, __pyx_setprop_4cuda_6cudart_13anon_struct21_triggerAtBlockStart, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_anon_struct21_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_anon_struct21}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_13anon_struct21_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("anon_struct21(void_ptr _ptr)\n\n Attributes\n ----------\n event : cudaEvent_t\n\n flags : int\n\n triggerAtBlockStart : int\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_anon_struct21}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_anon_struct21}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_anon_struct21}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_anon_struct21}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_13anon_struct21_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_anon_struct21}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_anon_struct21_spec = { "cuda.cudart.anon_struct21", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_anon_struct21_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_anon_struct21 = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""anon_struct21", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_anon_struct21), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_anon_struct21, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Attributes\n ----------\n event : cudaEvent_t\n\n flags : int\n\n triggerAtBlockStart : int\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_anon_struct21, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_anon_struct21, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_anon_struct21, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_13anon_struct21_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_anon_struct22(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_anon_struct22 *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_anon_struct22 *)o); p->_event = ((struct __pyx_obj_4cuda_6cudart_cudaEvent_t *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_anon_struct22(PyObject *o) { struct __pyx_obj_4cuda_6cudart_anon_struct22 *p = (struct __pyx_obj_4cuda_6cudart_anon_struct22 *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_anon_struct22) { 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_6cudart_13anon_struct22_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } Py_CLEAR(p->_event); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_anon_struct22(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_anon_struct22 *p = (struct __pyx_obj_4cuda_6cudart_anon_struct22 *)o; if (p->_event) { e = (*v)(((PyObject *)p->_event), a); if (e) return e; } return 0; } static int __pyx_tp_clear_4cuda_6cudart_anon_struct22(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_anon_struct22 *p = (struct __pyx_obj_4cuda_6cudart_anon_struct22 *)o; tmp = ((PyObject*)p->_event); p->_event = ((struct __pyx_obj_4cuda_6cudart_cudaEvent_t *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_13anon_struct22_event(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_13anon_struct22_5event_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_13anon_struct22_event(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_13anon_struct22_5event_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_13anon_struct22_flags(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_13anon_struct22_5flags_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_13anon_struct22_flags(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_13anon_struct22_5flags_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_13anon_struct22_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_13anon_struct22_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_anon_struct22[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct22_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct22_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_13anon_struct22_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct22_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct22_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct22_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct22_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_anon_struct22[] = { {(char *)"event", __pyx_getprop_4cuda_6cudart_13anon_struct22_event, __pyx_setprop_4cuda_6cudart_13anon_struct22_event, (char *)0, 0}, {(char *)"flags", __pyx_getprop_4cuda_6cudart_13anon_struct22_flags, __pyx_setprop_4cuda_6cudart_13anon_struct22_flags, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_anon_struct22_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_anon_struct22}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_13anon_struct22_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("anon_struct22(void_ptr _ptr)\n\n Attributes\n ----------\n event : cudaEvent_t\n\n flags : int\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_anon_struct22}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_anon_struct22}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_anon_struct22}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_anon_struct22}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_13anon_struct22_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_anon_struct22}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_anon_struct22_spec = { "cuda.cudart.anon_struct22", sizeof(struct __pyx_obj_4cuda_6cudart_anon_struct22), 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_6cudart_anon_struct22_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_anon_struct22 = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""anon_struct22", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_anon_struct22), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_anon_struct22, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ PyDoc_STR("anon_struct22(void_ptr _ptr)\n\n Attributes\n ----------\n event : cudaEvent_t\n\n flags : int\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_anon_struct22, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_anon_struct22, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_anon_struct22, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_13anon_struct22_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_anon_struct23(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_anon_struct23 *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_anon_struct23 *)o); p->_devNode = ((struct __pyx_obj_4cuda_6cudart_cudaGraphDeviceNode_t *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_13anon_struct23_1__cinit__(o, a, k) < 0)) goto bad; return o; bad: Py_DECREF(o); o = 0; return NULL; } static void __pyx_tp_dealloc_4cuda_6cudart_anon_struct23(PyObject *o) { struct __pyx_obj_4cuda_6cudart_anon_struct23 *p = (struct __pyx_obj_4cuda_6cudart_anon_struct23 *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_anon_struct23) { 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_6cudart_13anon_struct23_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } Py_CLEAR(p->_devNode); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_anon_struct23(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_anon_struct23 *p = (struct __pyx_obj_4cuda_6cudart_anon_struct23 *)o; if (p->_devNode) { e = (*v)(((PyObject *)p->_devNode), a); if (e) return e; } return 0; } static int __pyx_tp_clear_4cuda_6cudart_anon_struct23(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_anon_struct23 *p = (struct __pyx_obj_4cuda_6cudart_anon_struct23 *)o; tmp = ((PyObject*)p->_devNode); p->_devNode = ((struct __pyx_obj_4cuda_6cudart_cudaGraphDeviceNode_t *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_13anon_struct23_deviceUpdatable(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_13anon_struct23_15deviceUpdatable_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_13anon_struct23_deviceUpdatable(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_13anon_struct23_15deviceUpdatable_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_13anon_struct23_devNode(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_13anon_struct23_7devNode_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_13anon_struct23_devNode(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_13anon_struct23_7devNode_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_13anon_struct23_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_13anon_struct23_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_anon_struct23[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct23_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct23_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_13anon_struct23_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct23_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct23_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct23_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct23_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_anon_struct23[] = { {(char *)"deviceUpdatable", __pyx_getprop_4cuda_6cudart_13anon_struct23_deviceUpdatable, __pyx_setprop_4cuda_6cudart_13anon_struct23_deviceUpdatable, (char *)0, 0}, {(char *)"devNode", __pyx_getprop_4cuda_6cudart_13anon_struct23_devNode, __pyx_setprop_4cuda_6cudart_13anon_struct23_devNode, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_anon_struct23_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_anon_struct23}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_13anon_struct23_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("anon_struct23(void_ptr _ptr)\n\n Attributes\n ----------\n deviceUpdatable : int\n\n devNode : cudaGraphDeviceNode_t\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_anon_struct23}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_anon_struct23}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_anon_struct23}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_anon_struct23}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_13anon_struct23_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_anon_struct23}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_anon_struct23_spec = { "cuda.cudart.anon_struct23", sizeof(struct __pyx_obj_4cuda_6cudart_anon_struct23), 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_6cudart_anon_struct23_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_anon_struct23 = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""anon_struct23", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_anon_struct23), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_anon_struct23, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_13anon_struct23_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_struct23(void_ptr _ptr)\n\n Attributes\n ----------\n deviceUpdatable : int\n\n devNode : cudaGraphDeviceNode_t\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_anon_struct23, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_anon_struct23, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_anon_struct23, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_anon_struct23, /*tp_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_6cudart_13anon_struct23_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_anon_struct23, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaLaunchAttributeValue(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)o); p->_accessPolicyWindow = ((struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *)Py_None); Py_INCREF(Py_None); p->_clusterDim = ((struct __pyx_obj_4cuda_6cudart_anon_struct20 *)Py_None); Py_INCREF(Py_None); p->_programmaticEvent = ((struct __pyx_obj_4cuda_6cudart_anon_struct21 *)Py_None); Py_INCREF(Py_None); p->_memSyncDomainMap = ((struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap *)Py_None); Py_INCREF(Py_None); p->_launchCompletionEvent = ((struct __pyx_obj_4cuda_6cudart_anon_struct22 *)Py_None); Py_INCREF(Py_None); p->_deviceUpdatableKernelNode = ((struct __pyx_obj_4cuda_6cudart_anon_struct23 *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaLaunchAttributeValue(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *p = (struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_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->_launchCompletionEvent); Py_CLEAR(p->_deviceUpdatableKernelNode); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_cudaLaunchAttributeValue(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *p = (struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)o; 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->_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_6cudart_cudaLaunchAttributeValue(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *p = (struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)o; tmp = ((PyObject*)p->_accessPolicyWindow); p->_accessPolicyWindow = ((struct __pyx_obj_4cuda_6cudart_cudaAccessPolicyWindow *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_clusterDim); p->_clusterDim = ((struct __pyx_obj_4cuda_6cudart_anon_struct20 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_programmaticEvent); p->_programmaticEvent = ((struct __pyx_obj_4cuda_6cudart_anon_struct21 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_memSyncDomainMap); p->_memSyncDomainMap = ((struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_launchCompletionEvent); p->_launchCompletionEvent = ((struct __pyx_obj_4cuda_6cudart_anon_struct22 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->_deviceUpdatableKernelNode); p->_deviceUpdatableKernelNode = ((struct __pyx_obj_4cuda_6cudart_anon_struct23 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_24cudaLaunchAttributeValue_pad(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_3pad_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_24cudaLaunchAttributeValue_pad(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_3pad_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_24cudaLaunchAttributeValue_accessPolicyWindow(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_18accessPolicyWindow_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_24cudaLaunchAttributeValue_accessPolicyWindow(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_18accessPolicyWindow_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_24cudaLaunchAttributeValue_cooperative(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_11cooperative_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_24cudaLaunchAttributeValue_cooperative(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_11cooperative_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_24cudaLaunchAttributeValue_syncPolicy(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_10syncPolicy_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_24cudaLaunchAttributeValue_syncPolicy(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_10syncPolicy_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_24cudaLaunchAttributeValue_clusterDim(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_10clusterDim_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_24cudaLaunchAttributeValue_clusterDim(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_10clusterDim_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_24cudaLaunchAttributeValue_clusterSchedulingPolicyPreference(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_33clusterSchedulingPolicyPreference_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_24cudaLaunchAttributeValue_clusterSchedulingPolicyPreference(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_33clusterSchedulingPolicyPreference_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_24cudaLaunchAttributeValue_programmaticStreamSerializationAllowed(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_38programmaticStreamSerializationAllowed_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_24cudaLaunchAttributeValue_programmaticStreamSerializationAllowed(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_38programmaticStreamSerializationAllowed_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_24cudaLaunchAttributeValue_programmaticEvent(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_17programmaticEvent_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_24cudaLaunchAttributeValue_programmaticEvent(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_17programmaticEvent_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_24cudaLaunchAttributeValue_priority(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_8priority_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_24cudaLaunchAttributeValue_priority(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_8priority_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_24cudaLaunchAttributeValue_memSyncDomainMap(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_16memSyncDomainMap_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_24cudaLaunchAttributeValue_memSyncDomainMap(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_16memSyncDomainMap_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_24cudaLaunchAttributeValue_memSyncDomain(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_13memSyncDomain_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_24cudaLaunchAttributeValue_memSyncDomain(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_13memSyncDomain_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_24cudaLaunchAttributeValue_launchCompletionEvent(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_21launchCompletionEvent_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_24cudaLaunchAttributeValue_launchCompletionEvent(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_21launchCompletionEvent_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_24cudaLaunchAttributeValue_deviceUpdatableKernelNode(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_25deviceUpdatableKernelNode_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_24cudaLaunchAttributeValue_deviceUpdatableKernelNode(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_25deviceUpdatableKernelNode_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_24cudaLaunchAttributeValue_sharedMemCarveout(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_17sharedMemCarveout_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_24cudaLaunchAttributeValue_sharedMemCarveout(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_17sharedMemCarveout_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaLaunchAttributeValue[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_24cudaLaunchAttributeValue_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_24cudaLaunchAttributeValue_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_24cudaLaunchAttributeValue_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaLaunchAttributeValue[] = { {(char *)"pad", __pyx_getprop_4cuda_6cudart_24cudaLaunchAttributeValue_pad, __pyx_setprop_4cuda_6cudart_24cudaLaunchAttributeValue_pad, (char *)0, 0}, {(char *)"accessPolicyWindow", __pyx_getprop_4cuda_6cudart_24cudaLaunchAttributeValue_accessPolicyWindow, __pyx_setprop_4cuda_6cudart_24cudaLaunchAttributeValue_accessPolicyWindow, (char *)0, 0}, {(char *)"cooperative", __pyx_getprop_4cuda_6cudart_24cudaLaunchAttributeValue_cooperative, __pyx_setprop_4cuda_6cudart_24cudaLaunchAttributeValue_cooperative, (char *)0, 0}, {(char *)"syncPolicy", __pyx_getprop_4cuda_6cudart_24cudaLaunchAttributeValue_syncPolicy, __pyx_setprop_4cuda_6cudart_24cudaLaunchAttributeValue_syncPolicy, (char *)0, 0}, {(char *)"clusterDim", __pyx_getprop_4cuda_6cudart_24cudaLaunchAttributeValue_clusterDim, __pyx_setprop_4cuda_6cudart_24cudaLaunchAttributeValue_clusterDim, (char *)0, 0}, {(char *)"clusterSchedulingPolicyPreference", __pyx_getprop_4cuda_6cudart_24cudaLaunchAttributeValue_clusterSchedulingPolicyPreference, __pyx_setprop_4cuda_6cudart_24cudaLaunchAttributeValue_clusterSchedulingPolicyPreference, (char *)0, 0}, {(char *)"programmaticStreamSerializationAllowed", __pyx_getprop_4cuda_6cudart_24cudaLaunchAttributeValue_programmaticStreamSerializationAllowed, __pyx_setprop_4cuda_6cudart_24cudaLaunchAttributeValue_programmaticStreamSerializationAllowed, (char *)0, 0}, {(char *)"programmaticEvent", __pyx_getprop_4cuda_6cudart_24cudaLaunchAttributeValue_programmaticEvent, __pyx_setprop_4cuda_6cudart_24cudaLaunchAttributeValue_programmaticEvent, (char *)0, 0}, {(char *)"priority", __pyx_getprop_4cuda_6cudart_24cudaLaunchAttributeValue_priority, __pyx_setprop_4cuda_6cudart_24cudaLaunchAttributeValue_priority, (char *)0, 0}, {(char *)"memSyncDomainMap", __pyx_getprop_4cuda_6cudart_24cudaLaunchAttributeValue_memSyncDomainMap, __pyx_setprop_4cuda_6cudart_24cudaLaunchAttributeValue_memSyncDomainMap, (char *)0, 0}, {(char *)"memSyncDomain", __pyx_getprop_4cuda_6cudart_24cudaLaunchAttributeValue_memSyncDomain, __pyx_setprop_4cuda_6cudart_24cudaLaunchAttributeValue_memSyncDomain, (char *)0, 0}, {(char *)"launchCompletionEvent", __pyx_getprop_4cuda_6cudart_24cudaLaunchAttributeValue_launchCompletionEvent, __pyx_setprop_4cuda_6cudart_24cudaLaunchAttributeValue_launchCompletionEvent, (char *)0, 0}, {(char *)"deviceUpdatableKernelNode", __pyx_getprop_4cuda_6cudart_24cudaLaunchAttributeValue_deviceUpdatableKernelNode, __pyx_setprop_4cuda_6cudart_24cudaLaunchAttributeValue_deviceUpdatableKernelNode, (char *)0, 0}, {(char *)"sharedMemCarveout", __pyx_getprop_4cuda_6cudart_24cudaLaunchAttributeValue_sharedMemCarveout, __pyx_setprop_4cuda_6cudart_24cudaLaunchAttributeValue_sharedMemCarveout, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaLaunchAttributeValue_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaLaunchAttributeValue}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaLaunchAttributeValue(void_ptr _ptr=0)\n\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_struct20\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_struct21\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 b""lock\n launch will automatically trigger 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 launchCompletionEvent : anon_struct22\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_struct23\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.\n sharedMemCarveout : unsigned int\n Value of launch attribute\n cudaLaunchAttributePreferredSharedMemoryCarveout.\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaLaunchAttributeValue}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaLaunchAttributeValue}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaLaunchAttributeValue}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaLaunchAttributeValue}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_24cudaLaunchAttributeValue_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaLaunchAttributeValue}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaLaunchAttributeValue_spec = { "cuda.cudart.cudaLaunchAttributeValue", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_cudaLaunchAttributeValue_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaLaunchAttributeValue = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaLaunchAttributeValue", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaLaunchAttributeValue, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\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_struct20\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_struct21\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 b""lock\n launch will automatically trigger 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 launchCompletionEvent : anon_struct22\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_struct23\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.\n sharedMemCarveout : unsigned int\n Value of launch attribute\n cudaLaunchAttributePreferredSharedMemoryCarveout.\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaLaunchAttributeValue, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_cudaLaunchAttributeValue, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_cudaLaunchAttributeValue, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_24cudaLaunchAttributeValue_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaLaunchAttribute_st(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute_st *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute_st *)o); new((void*)&(p->_cudaLaunchAttribute_st__val)) struct cudaLaunchAttribute_st(); p->_val = ((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaLaunchAttribute_st(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute_st *p = (struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute_st *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_22cudaLaunchAttribute_st_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaLaunchAttribute_st__val); Py_CLEAR(p->_val); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_cudaLaunchAttribute_st(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute_st *p = (struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute_st *)o; if (p->_val) { e = (*v)(((PyObject *)p->_val), a); if (e) return e; } return 0; } static int __pyx_tp_clear_4cuda_6cudart_cudaLaunchAttribute_st(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute_st *p = (struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute_st *)o; tmp = ((PyObject*)p->_val); p->_val = ((struct __pyx_obj_4cuda_6cudart_cudaLaunchAttributeValue *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_22cudaLaunchAttribute_st_id(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_22cudaLaunchAttribute_st_2id_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_22cudaLaunchAttribute_st_id(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_22cudaLaunchAttribute_st_2id_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_22cudaLaunchAttribute_st_val(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_22cudaLaunchAttribute_st_3val_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_22cudaLaunchAttribute_st_val(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_22cudaLaunchAttribute_st_3val_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_22cudaLaunchAttribute_st_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_22cudaLaunchAttribute_st_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaLaunchAttribute_st[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_22cudaLaunchAttribute_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_22cudaLaunchAttribute_st_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_22cudaLaunchAttribute_st_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_22cudaLaunchAttribute_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_22cudaLaunchAttribute_st_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_22cudaLaunchAttribute_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_22cudaLaunchAttribute_st_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaLaunchAttribute_st[] = { {(char *)"id", __pyx_getprop_4cuda_6cudart_22cudaLaunchAttribute_st_id, __pyx_setprop_4cuda_6cudart_22cudaLaunchAttribute_st_id, (char *)0, 0}, {(char *)"val", __pyx_getprop_4cuda_6cudart_22cudaLaunchAttribute_st_val, __pyx_setprop_4cuda_6cudart_22cudaLaunchAttribute_st_val, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaLaunchAttribute_st_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaLaunchAttribute_st}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_22cudaLaunchAttribute_st_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaLaunchAttribute_st(void_ptr _ptr=0)\n\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\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaLaunchAttribute_st}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaLaunchAttribute_st}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaLaunchAttribute_st}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaLaunchAttribute_st}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_22cudaLaunchAttribute_st_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaLaunchAttribute_st}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaLaunchAttribute_st_spec = { "cuda.cudart.cudaLaunchAttribute_st", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_cudaLaunchAttribute_st_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaLaunchAttribute_st = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaLaunchAttribute_st", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute_st), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaLaunchAttribute_st, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\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\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaLaunchAttribute_st, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_cudaLaunchAttribute_st, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_cudaLaunchAttribute_st, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_22cudaLaunchAttribute_st_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_anon_struct24(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_13anon_struct24_1__cinit__(o, a, k) < 0)) goto bad; return o; bad: Py_DECREF(o); o = 0; return NULL; } static void __pyx_tp_dealloc_4cuda_6cudart_anon_struct24(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_anon_struct24) { 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_6cudart_13anon_struct24_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_13anon_struct24_bytesOverBudget(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_13anon_struct24_15bytesOverBudget_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_13anon_struct24_bytesOverBudget(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_13anon_struct24_15bytesOverBudget_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_13anon_struct24_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_13anon_struct24_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_anon_struct24[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct24_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct24_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_13anon_struct24_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct24_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct24_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_13anon_struct24_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_13anon_struct24_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_anon_struct24[] = { {(char *)"bytesOverBudget", __pyx_getprop_4cuda_6cudart_13anon_struct24_bytesOverBudget, __pyx_setprop_4cuda_6cudart_13anon_struct24_bytesOverBudget, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_anon_struct24_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_anon_struct24}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_13anon_struct24_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("anon_struct24(void_ptr _ptr)\n\n Attributes\n ----------\n bytesOverBudget : unsigned long long\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_anon_struct24}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_anon_struct24}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_13anon_struct24_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_anon_struct24}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_anon_struct24_spec = { "cuda.cudart.anon_struct24", sizeof(struct __pyx_obj_4cuda_6cudart_anon_struct24), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_anon_struct24_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_anon_struct24 = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""anon_struct24", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_anon_struct24), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_anon_struct24, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_13anon_struct24_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_struct24(void_ptr _ptr)\n\n Attributes\n ----------\n bytesOverBudget : unsigned long long\n\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_6cudart_anon_struct24, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_anon_struct24, /*tp_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_6cudart_13anon_struct24_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_anon_struct24, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_anon_union9(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_anon_union9 *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_anon_union9 *)o); p->_overBudget = ((struct __pyx_obj_4cuda_6cudart_anon_struct24 *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_anon_union9(PyObject *o) { struct __pyx_obj_4cuda_6cudart_anon_union9 *p = (struct __pyx_obj_4cuda_6cudart_anon_union9 *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_11anon_union9_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } Py_CLEAR(p->_overBudget); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_anon_union9(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_anon_union9 *p = (struct __pyx_obj_4cuda_6cudart_anon_union9 *)o; if (p->_overBudget) { e = (*v)(((PyObject *)p->_overBudget), a); if (e) return e; } return 0; } static int __pyx_tp_clear_4cuda_6cudart_anon_union9(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_anon_union9 *p = (struct __pyx_obj_4cuda_6cudart_anon_union9 *)o; tmp = ((PyObject*)p->_overBudget); p->_overBudget = ((struct __pyx_obj_4cuda_6cudart_anon_struct24 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_11anon_union9_overBudget(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_11anon_union9_10overBudget_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_11anon_union9_overBudget(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_11anon_union9_10overBudget_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_11anon_union9_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_11anon_union9_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_anon_union9[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union9_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union9_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_11anon_union9_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union9_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union9_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_11anon_union9_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_11anon_union9_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_anon_union9[] = { {(char *)"overBudget", __pyx_getprop_4cuda_6cudart_11anon_union9_overBudget, __pyx_setprop_4cuda_6cudart_11anon_union9_overBudget, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_anon_union9_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_anon_union9}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_11anon_union9_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("anon_union9(void_ptr _ptr)\n\n Attributes\n ----------\n overBudget : anon_struct24\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_anon_union9}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_anon_union9}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_anon_union9}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_anon_union9}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_11anon_union9_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_anon_union9}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_anon_union9_spec = { "cuda.cudart.anon_union9", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_anon_union9_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_anon_union9 = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""anon_union9", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_anon_union9), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_anon_union9, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Attributes\n ----------\n overBudget : anon_struct24\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_anon_union9, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_anon_union9, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_anon_union9, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_11anon_union9_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaAsyncNotificationInfo(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaAsyncNotificationInfo *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaAsyncNotificationInfo *)o); p->_info = ((struct __pyx_obj_4cuda_6cudart_anon_union9 *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaAsyncNotificationInfo(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaAsyncNotificationInfo *p = (struct __pyx_obj_4cuda_6cudart_cudaAsyncNotificationInfo *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_25cudaAsyncNotificationInfo_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } Py_CLEAR(p->_info); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_cudaAsyncNotificationInfo(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_cudaAsyncNotificationInfo *p = (struct __pyx_obj_4cuda_6cudart_cudaAsyncNotificationInfo *)o; if (p->_info) { e = (*v)(((PyObject *)p->_info), a); if (e) return e; } return 0; } static int __pyx_tp_clear_4cuda_6cudart_cudaAsyncNotificationInfo(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_cudaAsyncNotificationInfo *p = (struct __pyx_obj_4cuda_6cudart_cudaAsyncNotificationInfo *)o; tmp = ((PyObject*)p->_info); p->_info = ((struct __pyx_obj_4cuda_6cudart_anon_union9 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_25cudaAsyncNotificationInfo_type(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_25cudaAsyncNotificationInfo_4type_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_25cudaAsyncNotificationInfo_type(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_25cudaAsyncNotificationInfo_4type_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_25cudaAsyncNotificationInfo_info(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_25cudaAsyncNotificationInfo_4info_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_25cudaAsyncNotificationInfo_info(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_25cudaAsyncNotificationInfo_4info_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_25cudaAsyncNotificationInfo_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_25cudaAsyncNotificationInfo_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaAsyncNotificationInfo[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_25cudaAsyncNotificationInfo_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_25cudaAsyncNotificationInfo_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_25cudaAsyncNotificationInfo_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_25cudaAsyncNotificationInfo_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_25cudaAsyncNotificationInfo_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_25cudaAsyncNotificationInfo_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_25cudaAsyncNotificationInfo_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaAsyncNotificationInfo[] = { {(char *)"type", __pyx_getprop_4cuda_6cudart_25cudaAsyncNotificationInfo_type, __pyx_setprop_4cuda_6cudart_25cudaAsyncNotificationInfo_type, (char *)0, 0}, {(char *)"info", __pyx_getprop_4cuda_6cudart_25cudaAsyncNotificationInfo_info, __pyx_setprop_4cuda_6cudart_25cudaAsyncNotificationInfo_info, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaAsyncNotificationInfo_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaAsyncNotificationInfo}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_25cudaAsyncNotificationInfo_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaAsyncNotificationInfo(void_ptr _ptr=0)\n\n Information describing an async notification event\n\n Attributes\n ----------\n type : cudaAsyncNotificationType\n\n info : anon_union9\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaAsyncNotificationInfo}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaAsyncNotificationInfo}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaAsyncNotificationInfo}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaAsyncNotificationInfo}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_25cudaAsyncNotificationInfo_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaAsyncNotificationInfo}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaAsyncNotificationInfo_spec = { "cuda.cudart.cudaAsyncNotificationInfo", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_cudaAsyncNotificationInfo_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaAsyncNotificationInfo = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaAsyncNotificationInfo", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaAsyncNotificationInfo), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaAsyncNotificationInfo, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Information describing an async notification event\n\n Attributes\n ----------\n type : cudaAsyncNotificationType\n\n info : anon_union9\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaAsyncNotificationInfo, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_cudaAsyncNotificationInfo, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_cudaAsyncNotificationInfo, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_25cudaAsyncNotificationInfo_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaTextureDesc(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *)o); new((void*)&(p->_cudaTextureDesc__val)) struct cudaTextureDesc(); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaTextureDesc(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *p = (struct __pyx_obj_4cuda_6cudart_cudaTextureDesc *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_15cudaTextureDesc_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaTextureDesc__val); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_15cudaTextureDesc_addressMode(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_15cudaTextureDesc_11addressMode_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_15cudaTextureDesc_addressMode(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_15cudaTextureDesc_11addressMode_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_15cudaTextureDesc_filterMode(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_15cudaTextureDesc_10filterMode_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_15cudaTextureDesc_filterMode(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_15cudaTextureDesc_10filterMode_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_15cudaTextureDesc_readMode(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_15cudaTextureDesc_8readMode_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_15cudaTextureDesc_readMode(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_15cudaTextureDesc_8readMode_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_15cudaTextureDesc_sRGB(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_15cudaTextureDesc_4sRGB_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_15cudaTextureDesc_sRGB(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_15cudaTextureDesc_4sRGB_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_15cudaTextureDesc_borderColor(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_15cudaTextureDesc_11borderColor_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_15cudaTextureDesc_borderColor(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_15cudaTextureDesc_11borderColor_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_15cudaTextureDesc_normalizedCoords(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_15cudaTextureDesc_16normalizedCoords_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_15cudaTextureDesc_normalizedCoords(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_15cudaTextureDesc_16normalizedCoords_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_15cudaTextureDesc_maxAnisotropy(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_15cudaTextureDesc_13maxAnisotropy_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_15cudaTextureDesc_maxAnisotropy(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_15cudaTextureDesc_13maxAnisotropy_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_15cudaTextureDesc_mipmapFilterMode(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_15cudaTextureDesc_16mipmapFilterMode_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_15cudaTextureDesc_mipmapFilterMode(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_15cudaTextureDesc_16mipmapFilterMode_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_15cudaTextureDesc_mipmapLevelBias(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_15cudaTextureDesc_15mipmapLevelBias_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_15cudaTextureDesc_mipmapLevelBias(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_15cudaTextureDesc_15mipmapLevelBias_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_15cudaTextureDesc_minMipmapLevelClamp(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_15cudaTextureDesc_19minMipmapLevelClamp_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_15cudaTextureDesc_minMipmapLevelClamp(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_15cudaTextureDesc_19minMipmapLevelClamp_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_15cudaTextureDesc_maxMipmapLevelClamp(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_15cudaTextureDesc_19maxMipmapLevelClamp_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_15cudaTextureDesc_maxMipmapLevelClamp(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_15cudaTextureDesc_19maxMipmapLevelClamp_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_15cudaTextureDesc_disableTrilinearOptimization(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_15cudaTextureDesc_28disableTrilinearOptimization_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_15cudaTextureDesc_disableTrilinearOptimization(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_15cudaTextureDesc_28disableTrilinearOptimization_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_15cudaTextureDesc_seamlessCubemap(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_15cudaTextureDesc_15seamlessCubemap_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_15cudaTextureDesc_seamlessCubemap(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_15cudaTextureDesc_15seamlessCubemap_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_15cudaTextureDesc_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_15cudaTextureDesc_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaTextureDesc[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_15cudaTextureDesc_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_15cudaTextureDesc_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_15cudaTextureDesc_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_15cudaTextureDesc_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_15cudaTextureDesc_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_15cudaTextureDesc_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_15cudaTextureDesc_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaTextureDesc[] = { {(char *)"addressMode", __pyx_getprop_4cuda_6cudart_15cudaTextureDesc_addressMode, __pyx_setprop_4cuda_6cudart_15cudaTextureDesc_addressMode, (char *)0, 0}, {(char *)"filterMode", __pyx_getprop_4cuda_6cudart_15cudaTextureDesc_filterMode, __pyx_setprop_4cuda_6cudart_15cudaTextureDesc_filterMode, (char *)0, 0}, {(char *)"readMode", __pyx_getprop_4cuda_6cudart_15cudaTextureDesc_readMode, __pyx_setprop_4cuda_6cudart_15cudaTextureDesc_readMode, (char *)0, 0}, {(char *)"sRGB", __pyx_getprop_4cuda_6cudart_15cudaTextureDesc_sRGB, __pyx_setprop_4cuda_6cudart_15cudaTextureDesc_sRGB, (char *)0, 0}, {(char *)"borderColor", __pyx_getprop_4cuda_6cudart_15cudaTextureDesc_borderColor, __pyx_setprop_4cuda_6cudart_15cudaTextureDesc_borderColor, (char *)0, 0}, {(char *)"normalizedCoords", __pyx_getprop_4cuda_6cudart_15cudaTextureDesc_normalizedCoords, __pyx_setprop_4cuda_6cudart_15cudaTextureDesc_normalizedCoords, (char *)0, 0}, {(char *)"maxAnisotropy", __pyx_getprop_4cuda_6cudart_15cudaTextureDesc_maxAnisotropy, __pyx_setprop_4cuda_6cudart_15cudaTextureDesc_maxAnisotropy, (char *)0, 0}, {(char *)"mipmapFilterMode", __pyx_getprop_4cuda_6cudart_15cudaTextureDesc_mipmapFilterMode, __pyx_setprop_4cuda_6cudart_15cudaTextureDesc_mipmapFilterMode, (char *)0, 0}, {(char *)"mipmapLevelBias", __pyx_getprop_4cuda_6cudart_15cudaTextureDesc_mipmapLevelBias, __pyx_setprop_4cuda_6cudart_15cudaTextureDesc_mipmapLevelBias, (char *)0, 0}, {(char *)"minMipmapLevelClamp", __pyx_getprop_4cuda_6cudart_15cudaTextureDesc_minMipmapLevelClamp, __pyx_setprop_4cuda_6cudart_15cudaTextureDesc_minMipmapLevelClamp, (char *)0, 0}, {(char *)"maxMipmapLevelClamp", __pyx_getprop_4cuda_6cudart_15cudaTextureDesc_maxMipmapLevelClamp, __pyx_setprop_4cuda_6cudart_15cudaTextureDesc_maxMipmapLevelClamp, (char *)0, 0}, {(char *)"disableTrilinearOptimization", __pyx_getprop_4cuda_6cudart_15cudaTextureDesc_disableTrilinearOptimization, __pyx_setprop_4cuda_6cudart_15cudaTextureDesc_disableTrilinearOptimization, (char *)0, 0}, {(char *)"seamlessCubemap", __pyx_getprop_4cuda_6cudart_15cudaTextureDesc_seamlessCubemap, __pyx_setprop_4cuda_6cudart_15cudaTextureDesc_seamlessCubemap, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaTextureDesc_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaTextureDesc}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_15cudaTextureDesc_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaTextureDesc(void_ptr _ptr=0)\n\n CUDA texture descriptor\n\n Attributes\n ----------\n addressMode : List[cudaTextureAddressMode]\n Texture address mode for up to 3 dimensions\n filterMode : cudaTextureFilterMode\n Texture filter mode\n readMode : cudaTextureReadMode\n Texture read mode\n sRGB : int\n Perform sRGB->linear conversion during texture read\n borderColor : List[float]\n Texture Border Color\n normalizedCoords : int\n Indicates whether texture reads are normalized or not\n maxAnisotropy : unsigned int\n Limit to the anisotropy ratio\n mipmapFilterMode : cudaTextureFilterMode\n Mipmap filter mode\n mipmapLevelBias : float\n Offset applied to the supplied mipmap level\n minMipmapLevelClamp : float\n Lower end of the mipmap level range to clamp access to\n maxMipmapLevelClamp : float\n Upper end of the mipmap level range to clamp access to\n disableTrilinearOptimization : int\n Disable any trilinear filtering optimizations.\n seamlessCubemap : int\n Enable seamless cube map filtering.\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaTextureDesc}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaTextureDesc}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_15cudaTextureDesc_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaTextureDesc}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaTextureDesc_spec = { "cuda.cudart.cudaTextureDesc", sizeof(struct __pyx_obj_4cuda_6cudart_cudaTextureDesc), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaTextureDesc_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaTextureDesc = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaTextureDesc", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaTextureDesc), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaTextureDesc, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n CUDA texture descriptor\n\n Attributes\n ----------\n addressMode : List[cudaTextureAddressMode]\n Texture address mode for up to 3 dimensions\n filterMode : cudaTextureFilterMode\n Texture filter mode\n readMode : cudaTextureReadMode\n Texture read mode\n sRGB : int\n Perform sRGB->linear conversion during texture read\n borderColor : List[float]\n Texture Border Color\n normalizedCoords : int\n Indicates whether texture reads are normalized or not\n maxAnisotropy : unsigned int\n Limit to the anisotropy ratio\n mipmapFilterMode : cudaTextureFilterMode\n Mipmap filter mode\n mipmapLevelBias : float\n Offset applied to the supplied mipmap level\n minMipmapLevelClamp : float\n Lower end of the mipmap level range to clamp access to\n maxMipmapLevelClamp : float\n Upper end of the mipmap level range to clamp access to\n disableTrilinearOptimization : int\n Disable any trilinear filtering optimizations.\n seamlessCubemap : int\n Enable seamless cube map filtering.\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_6cudart_cudaTextureDesc, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_15cudaTextureDesc_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaEglPlaneDesc_st(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *)o); new((void*)&(p->_cudaEglPlaneDesc_st__val)) struct __pyx_t_4cuda_7ccudart_cudaEglPlaneDesc_st(); p->_channelDesc = ((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaEglPlaneDesc_st(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *p = (struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_19cudaEglPlaneDesc_st_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } __Pyx_call_destructor(p->_cudaEglPlaneDesc_st__val); Py_CLEAR(p->_channelDesc); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_cudaEglPlaneDesc_st(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *p = (struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *)o; if (p->_channelDesc) { e = (*v)(((PyObject *)p->_channelDesc), a); if (e) return e; } return 0; } static int __pyx_tp_clear_4cuda_6cudart_cudaEglPlaneDesc_st(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *p = (struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st *)o; tmp = ((PyObject*)p->_channelDesc); p->_channelDesc = ((struct __pyx_obj_4cuda_6cudart_cudaChannelFormatDesc *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_19cudaEglPlaneDesc_st_width(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_5width_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_19cudaEglPlaneDesc_st_width(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_5width_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_19cudaEglPlaneDesc_st_height(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_6height_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_19cudaEglPlaneDesc_st_height(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_6height_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_19cudaEglPlaneDesc_st_depth(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_5depth_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_19cudaEglPlaneDesc_st_depth(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_5depth_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_19cudaEglPlaneDesc_st_pitch(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_5pitch_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_19cudaEglPlaneDesc_st_pitch(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_5pitch_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_19cudaEglPlaneDesc_st_numChannels(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_11numChannels_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_19cudaEglPlaneDesc_st_numChannels(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_11numChannels_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_19cudaEglPlaneDesc_st_channelDesc(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_11channelDesc_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_19cudaEglPlaneDesc_st_channelDesc(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_11channelDesc_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_19cudaEglPlaneDesc_st_reserved(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_8reserved_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_19cudaEglPlaneDesc_st_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_8reserved_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaEglPlaneDesc_st[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_19cudaEglPlaneDesc_st_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_19cudaEglPlaneDesc_st_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_19cudaEglPlaneDesc_st_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaEglPlaneDesc_st[] = { {(char *)"width", __pyx_getprop_4cuda_6cudart_19cudaEglPlaneDesc_st_width, __pyx_setprop_4cuda_6cudart_19cudaEglPlaneDesc_st_width, (char *)0, 0}, {(char *)"height", __pyx_getprop_4cuda_6cudart_19cudaEglPlaneDesc_st_height, __pyx_setprop_4cuda_6cudart_19cudaEglPlaneDesc_st_height, (char *)0, 0}, {(char *)"depth", __pyx_getprop_4cuda_6cudart_19cudaEglPlaneDesc_st_depth, __pyx_setprop_4cuda_6cudart_19cudaEglPlaneDesc_st_depth, (char *)0, 0}, {(char *)"pitch", __pyx_getprop_4cuda_6cudart_19cudaEglPlaneDesc_st_pitch, __pyx_setprop_4cuda_6cudart_19cudaEglPlaneDesc_st_pitch, (char *)0, 0}, {(char *)"numChannels", __pyx_getprop_4cuda_6cudart_19cudaEglPlaneDesc_st_numChannels, __pyx_setprop_4cuda_6cudart_19cudaEglPlaneDesc_st_numChannels, (char *)0, 0}, {(char *)"channelDesc", __pyx_getprop_4cuda_6cudart_19cudaEglPlaneDesc_st_channelDesc, __pyx_setprop_4cuda_6cudart_19cudaEglPlaneDesc_st_channelDesc, (char *)0, 0}, {(char *)"reserved", __pyx_getprop_4cuda_6cudart_19cudaEglPlaneDesc_st_reserved, __pyx_setprop_4cuda_6cudart_19cudaEglPlaneDesc_st_reserved, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaEglPlaneDesc_st_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaEglPlaneDesc_st}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaEglPlaneDesc_st(void_ptr _ptr=0)\n\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\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaEglPlaneDesc_st}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaEglPlaneDesc_st}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaEglPlaneDesc_st}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaEglPlaneDesc_st}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_19cudaEglPlaneDesc_st_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaEglPlaneDesc_st}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaEglPlaneDesc_st_spec = { "cuda.cudart.cudaEglPlaneDesc_st", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_cudaEglPlaneDesc_st_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaEglPlaneDesc_st = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaEglPlaneDesc_st", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc_st), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaEglPlaneDesc_st, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\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\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaEglPlaneDesc_st, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_cudaEglPlaneDesc_st, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_cudaEglPlaneDesc_st, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_19cudaEglPlaneDesc_st_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_anon_union10(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_anon_union10(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_12anon_union10_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_getprop_4cuda_6cudart_12anon_union10_pArray(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_12anon_union10_6pArray_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_12anon_union10_pArray(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_12anon_union10_6pArray_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_12anon_union10_pPitch(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_12anon_union10_6pPitch_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_12anon_union10_pPitch(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_12anon_union10_6pPitch_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_12anon_union10_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_12anon_union10_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_anon_union10[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_union10_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_union10_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_12anon_union10_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_union10_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_union10_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_12anon_union10_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_12anon_union10_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_anon_union10[] = { {(char *)"pArray", __pyx_getprop_4cuda_6cudart_12anon_union10_pArray, __pyx_setprop_4cuda_6cudart_12anon_union10_pArray, (char *)0, 0}, {(char *)"pPitch", __pyx_getprop_4cuda_6cudart_12anon_union10_pPitch, __pyx_setprop_4cuda_6cudart_12anon_union10_pPitch, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_anon_union10_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_anon_union10}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_12anon_union10_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("anon_union10(void_ptr _ptr)\n\n Attributes\n ----------\n pArray : List[cudaArray_t]\n\n pPitch : List[cudaPitchedPtr]\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_anon_union10}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_anon_union10}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_12anon_union10_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_anon_union10}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_anon_union10_spec = { "cuda.cudart.anon_union10", sizeof(struct __pyx_obj_4cuda_6cudart_anon_union10), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_anon_union10_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_anon_union10 = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""anon_union10", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_anon_union10), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_anon_union10, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\n Attributes\n ----------\n pArray : List[cudaArray_t]\n\n pPitch : List[cudaPitchedPtr]\n\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_6cudart_anon_union10, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_12anon_union10_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaEglFrame_st(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *p; PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif p = ((struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *)o); p->_frame = ((struct __pyx_obj_4cuda_6cudart_anon_union10 *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaEglFrame_st(PyObject *o) { struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *p = (struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart_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_6cudart_15cudaEglFrame_st_5__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } Py_CLEAR(p->_frame); #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static int __pyx_tp_traverse_4cuda_6cudart_cudaEglFrame_st(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *p = (struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *)o; if (p->_frame) { e = (*v)(((PyObject *)p->_frame), a); if (e) return e; } return 0; } static int __pyx_tp_clear_4cuda_6cudart_cudaEglFrame_st(PyObject *o) { PyObject* tmp; struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *p = (struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st *)o; tmp = ((PyObject*)p->_frame); p->_frame = ((struct __pyx_obj_4cuda_6cudart_anon_union10 *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_4cuda_6cudart_15cudaEglFrame_st_frame(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_15cudaEglFrame_st_5frame_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_15cudaEglFrame_st_frame(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_15cudaEglFrame_st_5frame_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_15cudaEglFrame_st_planeDesc(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_15cudaEglFrame_st_9planeDesc_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_15cudaEglFrame_st_planeDesc(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_15cudaEglFrame_st_9planeDesc_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_15cudaEglFrame_st_planeCount(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_15cudaEglFrame_st_10planeCount_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_15cudaEglFrame_st_planeCount(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_15cudaEglFrame_st_10planeCount_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_15cudaEglFrame_st_frameType(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_15cudaEglFrame_st_9frameType_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_15cudaEglFrame_st_frameType(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_15cudaEglFrame_st_9frameType_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_getprop_4cuda_6cudart_15cudaEglFrame_st_eglColorFormat(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_4cuda_6cudart_15cudaEglFrame_st_14eglColorFormat_1__get__(o); } static int __pyx_setprop_4cuda_6cudart_15cudaEglFrame_st_eglColorFormat(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { return __pyx_pw_4cuda_6cudart_15cudaEglFrame_st_14eglColorFormat_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_15cudaEglFrame_st_9__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_15cudaEglFrame_st_9__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaEglFrame_st[] = { {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_15cudaEglFrame_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_15cudaEglFrame_st_6getPtr}, {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_15cudaEglFrame_st_9__repr__, METH_NOARGS|METH_COEXIST, 0}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_15cudaEglFrame_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_15cudaEglFrame_st_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_15cudaEglFrame_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_15cudaEglFrame_st_12__setstate_cython__}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_4cuda_6cudart_cudaEglFrame_st[] = { {(char *)"frame", __pyx_getprop_4cuda_6cudart_15cudaEglFrame_st_frame, __pyx_setprop_4cuda_6cudart_15cudaEglFrame_st_frame, (char *)0, 0}, {(char *)"planeDesc", __pyx_getprop_4cuda_6cudart_15cudaEglFrame_st_planeDesc, __pyx_setprop_4cuda_6cudart_15cudaEglFrame_st_planeDesc, (char *)0, 0}, {(char *)"planeCount", __pyx_getprop_4cuda_6cudart_15cudaEglFrame_st_planeCount, __pyx_setprop_4cuda_6cudart_15cudaEglFrame_st_planeCount, (char *)0, 0}, {(char *)"frameType", __pyx_getprop_4cuda_6cudart_15cudaEglFrame_st_frameType, __pyx_setprop_4cuda_6cudart_15cudaEglFrame_st_frameType, (char *)0, 0}, {(char *)"eglColorFormat", __pyx_getprop_4cuda_6cudart_15cudaEglFrame_st_eglColorFormat, __pyx_setprop_4cuda_6cudart_15cudaEglFrame_st_eglColorFormat, (char *)0, 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaEglFrame_st_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaEglFrame_st}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_15cudaEglFrame_st_9__repr__}, {Py_tp_doc, (void *)PyDoc_STR("cudaEglFrame_st(void_ptr _ptr=0)\n\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\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaEglFrame_st}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaEglFrame_st}, {Py_tp_methods, (void *)__pyx_methods_4cuda_6cudart_cudaEglFrame_st}, {Py_tp_getset, (void *)__pyx_getsets_4cuda_6cudart_cudaEglFrame_st}, {Py_tp_init, (void *)__pyx_pw_4cuda_6cudart_15cudaEglFrame_st_3__init__}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaEglFrame_st}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaEglFrame_st_spec = { "cuda.cudart.cudaEglFrame_st", sizeof(struct __pyx_obj_4cuda_6cudart_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_6cudart_cudaEglFrame_st_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaEglFrame_st = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaEglFrame_st", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaEglFrame_st), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaEglFrame_st, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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\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\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaEglFrame_st, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_cudaEglFrame_st, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_4cuda_6cudart_cudaEglFrame_st, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_4cuda_6cudart_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_6cudart_15cudaEglFrame_st_3__init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_6cudart_CUuuid_slots[] = { {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\n ")}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_CUuuid_st}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_CUuuid_spec = { "cuda.cudart.CUuuid", sizeof(struct __pyx_obj_4cuda_6cudart_CUuuid), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart_CUuuid_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_CUuuid = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""CUuuid", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_CUuuid), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_CUuuid_st, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif #if CYTHON_COMPILING_IN_PYPY || 0 __pyx_pw_4cuda_6cudart_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|Py_TPFLAGS_HAVE_FINALIZE, /*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\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_6cudart_9CUuuid_st_3__init__, /*tp_init*/ #else 0, /*tp_init*/ #endif 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_6cudart_cudaUUID_t_slots[] = { {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\n ")}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_CUuuid_st}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaUUID_t_spec = { "cuda.cudart.cudaUUID_t", sizeof(struct __pyx_obj_4cuda_6cudart_cudaUUID_t), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart_cudaUUID_t_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaUUID_t = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaUUID_t", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaUUID_t), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_CUuuid_st, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif #if CYTHON_COMPILING_IN_PYPY || 0 __pyx_pw_4cuda_6cudart_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|Py_TPFLAGS_HAVE_FINALIZE, /*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\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_6cudart_9CUuuid_st_3__init__, /*tp_init*/ #else 0, /*tp_init*/ #endif 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_6cudart_cudaIpcEventHandle_t_slots[] = { {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\n ")}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaIpcEventHandle_st}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaIpcEventHandle_t_spec = { "cuda.cudart.cudaIpcEventHandle_t", sizeof(struct __pyx_obj_4cuda_6cudart_cudaIpcEventHandle_t), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart_cudaIpcEventHandle_t_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaIpcEventHandle_t = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaIpcEventHandle_t", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaIpcEventHandle_t), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaIpcEventHandle_st, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif #if CYTHON_COMPILING_IN_PYPY || 0 __pyx_pw_4cuda_6cudart_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|Py_TPFLAGS_HAVE_FINALIZE, /*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\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_6cudart_21cudaIpcEventHandle_st_3__init__, /*tp_init*/ #else 0, /*tp_init*/ #endif 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_6cudart_cudaIpcMemHandle_t_slots[] = { {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\n ")}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaIpcMemHandle_st}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaIpcMemHandle_t_spec = { "cuda.cudart.cudaIpcMemHandle_t", sizeof(struct __pyx_obj_4cuda_6cudart_cudaIpcMemHandle_t), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart_cudaIpcMemHandle_t_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaIpcMemHandle_t = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaIpcMemHandle_t", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaIpcMemHandle_t), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaIpcMemHandle_st, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif #if CYTHON_COMPILING_IN_PYPY || 0 __pyx_pw_4cuda_6cudart_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|Py_TPFLAGS_HAVE_FINALIZE, /*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\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_6cudart_19cudaIpcMemHandle_st_3__init__, /*tp_init*/ #else 0, /*tp_init*/ #endif 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_6cudart_cudaMemFabricHandle_t_slots[] = { {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\n ")}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaMemFabricHandle_st}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaMemFabricHandle_t_spec = { "cuda.cudart.cudaMemFabricHandle_t", sizeof(struct __pyx_obj_4cuda_6cudart_cudaMemFabricHandle_t), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart_cudaMemFabricHandle_t_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaMemFabricHandle_t = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaMemFabricHandle_t", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaMemFabricHandle_t), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaMemFabricHandle_st, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif #if CYTHON_COMPILING_IN_PYPY || 0 __pyx_pw_4cuda_6cudart_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|Py_TPFLAGS_HAVE_FINALIZE, /*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\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_6cudart_22cudaMemFabricHandle_st_3__init__, /*tp_init*/ #else 0, /*tp_init*/ #endif 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_6cudart_cudaGraphEdgeData_slots[] = { {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\n ")}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaGraphEdgeData_st}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaGraphEdgeData_spec = { "cuda.cudart.cudaGraphEdgeData", sizeof(struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart_cudaGraphEdgeData_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaGraphEdgeData = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaGraphEdgeData", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaGraphEdgeData), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaGraphEdgeData_st, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif #if CYTHON_COMPILING_IN_PYPY || 0 __pyx_pw_4cuda_6cudart_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|Py_TPFLAGS_HAVE_FINALIZE, /*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\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_6cudart_20cudaGraphEdgeData_st_3__init__, /*tp_init*/ #else 0, /*tp_init*/ #endif 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_6cudart_cudaGraphInstantiateParams_slots[] = { {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\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaGraphInstantiateParams_st}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaGraphInstantiateParams_st}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaGraphInstantiateParams_st}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaGraphInstantiateParams_spec = { "cuda.cudart.cudaGraphInstantiateParams", sizeof(struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart_cudaGraphInstantiateParams_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaGraphInstantiateParams = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaGraphInstantiateParams", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaGraphInstantiateParams), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaGraphInstantiateParams_st, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif #if CYTHON_COMPILING_IN_PYPY || 0 __pyx_pw_4cuda_6cudart_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|Py_TPFLAGS_HAVE_FINALIZE, /*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\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaGraphInstantiateParams_st, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_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_6cudart_29cudaGraphInstantiateParams_st_3__init__, /*tp_init*/ #else 0, /*tp_init*/ #endif 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_6cudart_cudaGraphExecUpdateResultInfo_slots[] = { {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\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaGraphExecUpdateResultInfo_spec = { "cuda.cudart.cudaGraphExecUpdateResultInfo", sizeof(struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart_cudaGraphExecUpdateResultInfo_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaGraphExecUpdateResultInfo = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaGraphExecUpdateResultInfo", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaGraphExecUpdateResultInfo), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif #if CYTHON_COMPILING_IN_PYPY || 0 __pyx_pw_4cuda_6cudart_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|Py_TPFLAGS_HAVE_FINALIZE, /*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\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_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_6cudart_32cudaGraphExecUpdateResultInfo_st_3__init__, /*tp_init*/ #else 0, /*tp_init*/ #endif 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_6cudart_cudaLaunchMemSyncDomainMap_slots[] = { {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\n ")}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaLaunchMemSyncDomainMap_spec = { "cuda.cudart.cudaLaunchMemSyncDomainMap", sizeof(struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart_cudaLaunchMemSyncDomainMap_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaLaunchMemSyncDomainMap = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaLaunchMemSyncDomainMap", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaLaunchMemSyncDomainMap), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif #if CYTHON_COMPILING_IN_PYPY || 0 __pyx_pw_4cuda_6cudart_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|Py_TPFLAGS_HAVE_FINALIZE, /*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\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_6cudart_29cudaLaunchMemSyncDomainMap_st_3__init__, /*tp_init*/ #else 0, /*tp_init*/ #endif 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_6cudart_cudaLaunchAttribute_slots[] = { {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\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaLaunchAttribute_st}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaLaunchAttribute_st}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaLaunchAttribute_st}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaLaunchAttribute_spec = { "cuda.cudart.cudaLaunchAttribute", sizeof(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart_cudaLaunchAttribute_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaLaunchAttribute = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaLaunchAttribute", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaLaunchAttribute), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaLaunchAttribute_st, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif #if CYTHON_COMPILING_IN_PYPY || 0 __pyx_pw_4cuda_6cudart_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|Py_TPFLAGS_HAVE_FINALIZE, /*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\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaLaunchAttribute_st, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_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_6cudart_22cudaLaunchAttribute_st_3__init__, /*tp_init*/ #else 0, /*tp_init*/ #endif 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_6cudart_cudaAsyncNotificationInfo_t_slots[] = { {Py_tp_doc, (void *)PyDoc_STR("\n Information describing an async notification event\n\n Attributes\n ----------\n type : cudaAsyncNotificationType\n\n info : anon_union9\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaAsyncNotificationInfo}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaAsyncNotificationInfo}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaAsyncNotificationInfo}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaAsyncNotificationInfo_t_spec = { "cuda.cudart.cudaAsyncNotificationInfo_t", sizeof(struct __pyx_obj_4cuda_6cudart_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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart_cudaAsyncNotificationInfo_t_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaAsyncNotificationInfo_t = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaAsyncNotificationInfo_t", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaAsyncNotificationInfo_t), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaAsyncNotificationInfo, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif #if CYTHON_COMPILING_IN_PYPY || 0 __pyx_pw_4cuda_6cudart_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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ PyDoc_STR("\n Information describing an async notification event\n\n Attributes\n ----------\n type : cudaAsyncNotificationType\n\n info : anon_union9\n\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaAsyncNotificationInfo, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_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_6cudart_25cudaAsyncNotificationInfo_3__init__, /*tp_init*/ #else 0, /*tp_init*/ #endif 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_6cudart_cudaStreamAttrValue_slots[] = { {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_struct20\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_struct21\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 launchCompletionEvent : anon_struct22\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_struct23\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.\n sharedMemCarveout : unsigned int\n Value of launch attribute\n cudaLaunchAttributePreferredSharedMemoryCarveout.\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaLaunchAttributeValue}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaLaunchAttributeValue}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaLaunchAttributeValue}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaStreamAttrValue_spec = { "cuda.cudart.cudaStreamAttrValue", sizeof(struct __pyx_obj_4cuda_6cudart_cudaStreamAttrValue), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart_cudaStreamAttrValue_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaStreamAttrValue = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaStreamAttrValue", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaStreamAttrValue), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaLaunchAttributeValue, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif #if CYTHON_COMPILING_IN_PYPY || 0 __pyx_pw_4cuda_6cudart_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|Py_TPFLAGS_HAVE_FINALIZE, /*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_struct20\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_struct21\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 launchCompletionEvent : anon_struct22\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_struct23\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.\n sharedMemCarveout : unsigned int\n Value of launch attribute\n cudaLaunchAttributePreferredSharedMemoryCarveout.\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaLaunchAttributeValue, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_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_6cudart_24cudaLaunchAttributeValue_3__init__, /*tp_init*/ #else 0, /*tp_init*/ #endif 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_6cudart_cudaKernelNodeAttrValue_slots[] = { {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_struct20\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_struct21\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 launchCompletionEvent : anon_struct22\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_struct23\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.\n sharedMemCarveout : unsigned int\n Value of launch attribute\n cudaLaunchAttributePreferredSharedMemoryCarveout.\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaLaunchAttributeValue}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaLaunchAttributeValue}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaLaunchAttributeValue}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaKernelNodeAttrValue_spec = { "cuda.cudart.cudaKernelNodeAttrValue", sizeof(struct __pyx_obj_4cuda_6cudart_cudaKernelNodeAttrValue), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart_cudaKernelNodeAttrValue_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaKernelNodeAttrValue = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaKernelNodeAttrValue", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaKernelNodeAttrValue), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaLaunchAttributeValue, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif #if CYTHON_COMPILING_IN_PYPY || 0 __pyx_pw_4cuda_6cudart_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|Py_TPFLAGS_HAVE_FINALIZE, /*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_struct20\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_struct21\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 launchCompletionEvent : anon_struct22\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_struct23\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.\n sharedMemCarveout : unsigned int\n Value of launch attribute\n cudaLaunchAttributePreferredSharedMemoryCarveout.\n\n Methods\n -------\n getPtr()\n Get memory address of class instance\n\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaLaunchAttributeValue, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_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_6cudart_24cudaLaunchAttributeValue_3__init__, /*tp_init*/ #else 0, /*tp_init*/ #endif 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_6cudart_cudaEglPlaneDesc_slots[] = { {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\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaEglPlaneDesc_st}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaEglPlaneDesc_st}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaEglPlaneDesc_st}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaEglPlaneDesc_spec = { "cuda.cudart.cudaEglPlaneDesc", sizeof(struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart_cudaEglPlaneDesc_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaEglPlaneDesc = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaEglPlaneDesc", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaEglPlaneDesc), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaEglPlaneDesc_st, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif #if CYTHON_COMPILING_IN_PYPY || 0 __pyx_pw_4cuda_6cudart_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|Py_TPFLAGS_HAVE_FINALIZE, /*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\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaEglPlaneDesc_st, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_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_6cudart_19cudaEglPlaneDesc_st_3__init__, /*tp_init*/ #else 0, /*tp_init*/ #endif 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_6cudart_cudaEglFrame_slots[] = { {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\n ")}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart_cudaEglFrame_st}, {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_6cudart_cudaEglFrame_st}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaEglFrame_st}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaEglFrame_spec = { "cuda.cudart.cudaEglFrame", sizeof(struct __pyx_obj_4cuda_6cudart_cudaEglFrame), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart_cudaEglFrame_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaEglFrame = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaEglFrame", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaEglFrame), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaEglFrame_st, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif #if CYTHON_COMPILING_IN_PYPY || 0 __pyx_pw_4cuda_6cudart_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|Py_TPFLAGS_HAVE_FINALIZE, /*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\n "), /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart_cudaEglFrame_st, /*tp_traverse*/ __pyx_tp_clear_4cuda_6cudart_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_6cudart_15cudaEglFrame_st_3__init__, /*tp_init*/ #else 0, /*tp_init*/ #endif 0, /*tp_alloc*/ __pyx_tp_new_4cuda_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_6cudart_cudaStream_t_slots[] = { {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 ")}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaStream_t_spec = { "cuda.cudart.cudaStream_t", sizeof(struct __pyx_obj_4cuda_6cudart_cudaStream_t), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart_cudaStream_t_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaStream_t = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaStream_t", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaStream_t), /*tp_basicsize*/ 0, /*tp_itemsize*/ 0, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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_FINALIZE, /*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*/ 0, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_6cudart_cudaEvent_t_slots[] = { {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 ")}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaEvent_t_spec = { "cuda.cudart.cudaEvent_t", sizeof(struct __pyx_obj_4cuda_6cudart_cudaEvent_t), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart_cudaEvent_t_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaEvent_t = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaEvent_t", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaEvent_t), /*tp_basicsize*/ 0, /*tp_itemsize*/ 0, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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_FINALIZE, /*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*/ 0, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_6cudart_cudaGraph_t_slots[] = { {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 ")}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaGraph_t_spec = { "cuda.cudart.cudaGraph_t", sizeof(struct __pyx_obj_4cuda_6cudart_cudaGraph_t), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart_cudaGraph_t_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaGraph_t = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaGraph_t", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaGraph_t), /*tp_basicsize*/ 0, /*tp_itemsize*/ 0, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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_FINALIZE, /*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*/ 0, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_6cudart_cudaGraphNode_t_slots[] = { {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 ")}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaGraphNode_t_spec = { "cuda.cudart.cudaGraphNode_t", sizeof(struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart_cudaGraphNode_t_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaGraphNode_t = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaGraphNode_t", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaGraphNode_t), /*tp_basicsize*/ 0, /*tp_itemsize*/ 0, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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_FINALIZE, /*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*/ 0, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_6cudart_cudaUserObject_t_slots[] = { {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 ")}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaUserObject_t_spec = { "cuda.cudart.cudaUserObject_t", sizeof(struct __pyx_obj_4cuda_6cudart_cudaUserObject_t), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart_cudaUserObject_t_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaUserObject_t = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaUserObject_t", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaUserObject_t), /*tp_basicsize*/ 0, /*tp_itemsize*/ 0, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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_FINALIZE, /*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*/ 0, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_6cudart_cudaFunction_t_slots[] = { {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 ")}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaFunction_t_spec = { "cuda.cudart.cudaFunction_t", sizeof(struct __pyx_obj_4cuda_6cudart_cudaFunction_t), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart_cudaFunction_t_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaFunction_t = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaFunction_t", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaFunction_t), /*tp_basicsize*/ 0, /*tp_itemsize*/ 0, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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_FINALIZE, /*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*/ 0, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_6cudart_cudaMemPool_t_slots[] = { {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 ")}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaMemPool_t_spec = { "cuda.cudart.cudaMemPool_t", sizeof(struct __pyx_obj_4cuda_6cudart_cudaMemPool_t), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart_cudaMemPool_t_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaMemPool_t = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaMemPool_t", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaMemPool_t), /*tp_basicsize*/ 0, /*tp_itemsize*/ 0, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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_FINALIZE, /*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*/ 0, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_6cudart_cudaGraphExec_t_slots[] = { {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 ")}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaGraphExec_t_spec = { "cuda.cudart.cudaGraphExec_t", sizeof(struct __pyx_obj_4cuda_6cudart_cudaGraphExec_t), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart_cudaGraphExec_t_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaGraphExec_t = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaGraphExec_t", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaGraphExec_t), /*tp_basicsize*/ 0, /*tp_itemsize*/ 0, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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_FINALIZE, /*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*/ 0, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_6cudart_cudaEglStreamConnection_slots[] = { {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 ")}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaEglStreamConnection_spec = { "cuda.cudart.cudaEglStreamConnection", sizeof(struct __pyx_obj_4cuda_6cudart_cudaEglStreamConnection), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart_cudaEglStreamConnection_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart_cudaEglStreamConnection = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaEglStreamConnection", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaEglStreamConnection), /*tp_basicsize*/ 0, /*tp_itemsize*/ 0, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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_FINALIZE, /*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*/ 0, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaGraphConditionalHandle(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaGraphConditionalHandle(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_26cudaGraphConditionalHandle_3__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_26cudaGraphConditionalHandle_5__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_26cudaGraphConditionalHandle_5__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaGraphConditionalHandle[] = { {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_26cudaGraphConditionalHandle_5__repr__, METH_NOARGS|METH_COEXIST, 0}, {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_26cudaGraphConditionalHandle_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_26cudaGraphConditionalHandle_8getPtr}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_26cudaGraphConditionalHandle_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_26cudaGraphConditionalHandle_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_26cudaGraphConditionalHandle_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_26cudaGraphConditionalHandle_12__setstate_cython__}, {0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaGraphConditionalHandle_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaGraphConditionalHandle}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_26cudaGraphConditionalHandle_5__repr__}, {Py_nb_int, (void *)__pyx_pw_4cuda_6cudart_26cudaGraphConditionalHandle_7__int__}, #if PY_MAJOR_VERSION < 3 {Py_nb_long, (void *)__pyx_pw_4cuda_6cudart_26cudaGraphConditionalHandle_7__int__}, #endif {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_6cudart_cudaGraphConditionalHandle}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaGraphConditionalHandle}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaGraphConditionalHandle_spec = { "cuda.cudart.cudaGraphConditionalHandle", sizeof(struct __pyx_obj_4cuda_6cudart_cudaGraphConditionalHandle), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaGraphConditionalHandle_slots, }; #else static PyNumberMethods __pyx_tp_as_number_cudaGraphConditionalHandle = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_divide*/ #endif 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*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_coerce*/ #endif __pyx_pw_4cuda_6cudart_26cudaGraphConditionalHandle_7__int__, /*nb_int*/ #if PY_MAJOR_VERSION < 3 __pyx_pw_4cuda_6cudart_26cudaGraphConditionalHandle_7__int__, /*nb_long*/ #else 0, /*reserved*/ #endif 0, /*nb_float*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_oct*/ #endif #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_hex*/ #endif 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_inplace_divide*/ #endif 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*/ #if PY_VERSION_HEX >= 0x03050000 0, /*nb_matrix_multiply*/ #endif #if PY_VERSION_HEX >= 0x03050000 0, /*nb_inplace_matrix_multiply*/ #endif }; static PyTypeObject __pyx_type_4cuda_6cudart_cudaGraphConditionalHandle = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaGraphConditionalHandle", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaGraphConditionalHandle), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaGraphConditionalHandle, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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_6cudart_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_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaSurfaceObject_t(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaSurfaceObject_t(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_19cudaSurfaceObject_t_3__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_19cudaSurfaceObject_t_5__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_19cudaSurfaceObject_t_5__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaSurfaceObject_t[] = { {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_19cudaSurfaceObject_t_5__repr__, METH_NOARGS|METH_COEXIST, 0}, {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_19cudaSurfaceObject_t_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_19cudaSurfaceObject_t_8getPtr}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_19cudaSurfaceObject_t_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_19cudaSurfaceObject_t_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_19cudaSurfaceObject_t_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_19cudaSurfaceObject_t_12__setstate_cython__}, {0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaSurfaceObject_t_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaSurfaceObject_t}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_19cudaSurfaceObject_t_5__repr__}, {Py_nb_int, (void *)__pyx_pw_4cuda_6cudart_19cudaSurfaceObject_t_7__int__}, #if PY_MAJOR_VERSION < 3 {Py_nb_long, (void *)__pyx_pw_4cuda_6cudart_19cudaSurfaceObject_t_7__int__}, #endif {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_6cudart_cudaSurfaceObject_t}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaSurfaceObject_t}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaSurfaceObject_t_spec = { "cuda.cudart.cudaSurfaceObject_t", sizeof(struct __pyx_obj_4cuda_6cudart_cudaSurfaceObject_t), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaSurfaceObject_t_slots, }; #else static PyNumberMethods __pyx_tp_as_number_cudaSurfaceObject_t = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_divide*/ #endif 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*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_coerce*/ #endif __pyx_pw_4cuda_6cudart_19cudaSurfaceObject_t_7__int__, /*nb_int*/ #if PY_MAJOR_VERSION < 3 __pyx_pw_4cuda_6cudart_19cudaSurfaceObject_t_7__int__, /*nb_long*/ #else 0, /*reserved*/ #endif 0, /*nb_float*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_oct*/ #endif #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_hex*/ #endif 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_inplace_divide*/ #endif 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*/ #if PY_VERSION_HEX >= 0x03050000 0, /*nb_matrix_multiply*/ #endif #if PY_VERSION_HEX >= 0x03050000 0, /*nb_inplace_matrix_multiply*/ #endif }; static PyTypeObject __pyx_type_4cuda_6cudart_cudaSurfaceObject_t = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaSurfaceObject_t", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaSurfaceObject_t), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaSurfaceObject_t, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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_6cudart_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_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_cudaTextureObject_t(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_cudaTextureObject_t(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_19cudaTextureObject_t_3__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_19cudaTextureObject_t_5__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_19cudaTextureObject_t_5__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_cudaTextureObject_t[] = { {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_19cudaTextureObject_t_5__repr__, METH_NOARGS|METH_COEXIST, 0}, {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_19cudaTextureObject_t_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_19cudaTextureObject_t_8getPtr}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_19cudaTextureObject_t_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_19cudaTextureObject_t_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_19cudaTextureObject_t_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_19cudaTextureObject_t_12__setstate_cython__}, {0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_cudaTextureObject_t_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_cudaTextureObject_t}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_19cudaTextureObject_t_5__repr__}, {Py_nb_int, (void *)__pyx_pw_4cuda_6cudart_19cudaTextureObject_t_7__int__}, #if PY_MAJOR_VERSION < 3 {Py_nb_long, (void *)__pyx_pw_4cuda_6cudart_19cudaTextureObject_t_7__int__}, #endif {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_6cudart_cudaTextureObject_t}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_cudaTextureObject_t}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_cudaTextureObject_t_spec = { "cuda.cudart.cudaTextureObject_t", sizeof(struct __pyx_obj_4cuda_6cudart_cudaTextureObject_t), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_cudaTextureObject_t_slots, }; #else static PyNumberMethods __pyx_tp_as_number_cudaTextureObject_t = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_divide*/ #endif 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*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_coerce*/ #endif __pyx_pw_4cuda_6cudart_19cudaTextureObject_t_7__int__, /*nb_int*/ #if PY_MAJOR_VERSION < 3 __pyx_pw_4cuda_6cudart_19cudaTextureObject_t_7__int__, /*nb_long*/ #else 0, /*reserved*/ #endif 0, /*nb_float*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_oct*/ #endif #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_hex*/ #endif 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_inplace_divide*/ #endif 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*/ #if PY_VERSION_HEX >= 0x03050000 0, /*nb_matrix_multiply*/ #endif #if PY_VERSION_HEX >= 0x03050000 0, /*nb_inplace_matrix_multiply*/ #endif }; static PyTypeObject __pyx_type_4cuda_6cudart_cudaTextureObject_t = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""cudaTextureObject_t", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_cudaTextureObject_t), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_cudaTextureObject_t, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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_6cudart_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_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_GLenum(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_GLenum(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_6GLenum_3__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_6GLenum_5__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_6GLenum_5__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_GLenum[] = { {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_6GLenum_5__repr__, METH_NOARGS|METH_COEXIST, 0}, {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_6GLenum_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_6GLenum_8getPtr}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_6GLenum_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_6GLenum_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_6GLenum_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_6GLenum_12__setstate_cython__}, {0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_GLenum_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_GLenum}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_6GLenum_5__repr__}, {Py_nb_int, (void *)__pyx_pw_4cuda_6cudart_6GLenum_7__int__}, #if PY_MAJOR_VERSION < 3 {Py_nb_long, (void *)__pyx_pw_4cuda_6cudart_6GLenum_7__int__}, #endif {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_6cudart_GLenum}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_GLenum}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_GLenum_spec = { "cuda.cudart.GLenum", sizeof(struct __pyx_obj_4cuda_6cudart_GLenum), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_GLenum_slots, }; #else static PyNumberMethods __pyx_tp_as_number_GLenum = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_divide*/ #endif 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*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_coerce*/ #endif __pyx_pw_4cuda_6cudart_6GLenum_7__int__, /*nb_int*/ #if PY_MAJOR_VERSION < 3 __pyx_pw_4cuda_6cudart_6GLenum_7__int__, /*nb_long*/ #else 0, /*reserved*/ #endif 0, /*nb_float*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_oct*/ #endif #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_hex*/ #endif 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_inplace_divide*/ #endif 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*/ #if PY_VERSION_HEX >= 0x03050000 0, /*nb_matrix_multiply*/ #endif #if PY_VERSION_HEX >= 0x03050000 0, /*nb_inplace_matrix_multiply*/ #endif }; static PyTypeObject __pyx_type_4cuda_6cudart_GLenum = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""GLenum", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_GLenum), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_GLenum, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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_6cudart_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_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_GLuint(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_GLuint(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_6GLuint_3__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_6GLuint_5__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_6GLuint_5__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_GLuint[] = { {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_6GLuint_5__repr__, METH_NOARGS|METH_COEXIST, 0}, {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_6GLuint_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_6GLuint_8getPtr}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_6GLuint_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_6GLuint_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_6GLuint_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_6GLuint_12__setstate_cython__}, {0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_GLuint_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_GLuint}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_6GLuint_5__repr__}, {Py_nb_int, (void *)__pyx_pw_4cuda_6cudart_6GLuint_7__int__}, #if PY_MAJOR_VERSION < 3 {Py_nb_long, (void *)__pyx_pw_4cuda_6cudart_6GLuint_7__int__}, #endif {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_6cudart_GLuint}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_GLuint}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_GLuint_spec = { "cuda.cudart.GLuint", sizeof(struct __pyx_obj_4cuda_6cudart_GLuint), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_GLuint_slots, }; #else static PyNumberMethods __pyx_tp_as_number_GLuint = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_divide*/ #endif 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*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_coerce*/ #endif __pyx_pw_4cuda_6cudart_6GLuint_7__int__, /*nb_int*/ #if PY_MAJOR_VERSION < 3 __pyx_pw_4cuda_6cudart_6GLuint_7__int__, /*nb_long*/ #else 0, /*reserved*/ #endif 0, /*nb_float*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_oct*/ #endif #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_hex*/ #endif 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_inplace_divide*/ #endif 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*/ #if PY_VERSION_HEX >= 0x03050000 0, /*nb_matrix_multiply*/ #endif #if PY_VERSION_HEX >= 0x03050000 0, /*nb_inplace_matrix_multiply*/ #endif }; static PyTypeObject __pyx_type_4cuda_6cudart_GLuint = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""GLuint", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_GLuint), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_GLuint, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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_6cudart_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_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_EGLint(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_EGLint(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_6EGLint_3__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_6EGLint_5__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_6EGLint_5__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_EGLint[] = { {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_6EGLint_5__repr__, METH_NOARGS|METH_COEXIST, 0}, {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_6EGLint_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_6EGLint_8getPtr}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_6EGLint_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_6EGLint_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_6EGLint_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_6EGLint_12__setstate_cython__}, {0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_EGLint_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_EGLint}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_6EGLint_5__repr__}, {Py_nb_int, (void *)__pyx_pw_4cuda_6cudart_6EGLint_7__int__}, #if PY_MAJOR_VERSION < 3 {Py_nb_long, (void *)__pyx_pw_4cuda_6cudart_6EGLint_7__int__}, #endif {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_6cudart_EGLint}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_EGLint}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_EGLint_spec = { "cuda.cudart.EGLint", sizeof(struct __pyx_obj_4cuda_6cudart_EGLint), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_EGLint_slots, }; #else static PyNumberMethods __pyx_tp_as_number_EGLint = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_divide*/ #endif 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*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_coerce*/ #endif __pyx_pw_4cuda_6cudart_6EGLint_7__int__, /*nb_int*/ #if PY_MAJOR_VERSION < 3 __pyx_pw_4cuda_6cudart_6EGLint_7__int__, /*nb_long*/ #else 0, /*reserved*/ #endif 0, /*nb_float*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_oct*/ #endif #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_hex*/ #endif 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_inplace_divide*/ #endif 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*/ #if PY_VERSION_HEX >= 0x03050000 0, /*nb_matrix_multiply*/ #endif #if PY_VERSION_HEX >= 0x03050000 0, /*nb_inplace_matrix_multiply*/ #endif }; static PyTypeObject __pyx_type_4cuda_6cudart_EGLint = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""EGLint", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_EGLint), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_EGLint, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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_6cudart_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_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_VdpDevice(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_VdpDevice(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_9VdpDevice_3__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_9VdpDevice_5__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_9VdpDevice_5__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_VdpDevice[] = { {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_9VdpDevice_5__repr__, METH_NOARGS|METH_COEXIST, 0}, {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_9VdpDevice_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_9VdpDevice_8getPtr}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_9VdpDevice_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_9VdpDevice_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_9VdpDevice_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_9VdpDevice_12__setstate_cython__}, {0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_VdpDevice_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_VdpDevice}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_9VdpDevice_5__repr__}, {Py_nb_int, (void *)__pyx_pw_4cuda_6cudart_9VdpDevice_7__int__}, #if PY_MAJOR_VERSION < 3 {Py_nb_long, (void *)__pyx_pw_4cuda_6cudart_9VdpDevice_7__int__}, #endif {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_6cudart_VdpDevice}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_VdpDevice}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_VdpDevice_spec = { "cuda.cudart.VdpDevice", sizeof(struct __pyx_obj_4cuda_6cudart_VdpDevice), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_VdpDevice_slots, }; #else static PyNumberMethods __pyx_tp_as_number_VdpDevice = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_divide*/ #endif 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*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_coerce*/ #endif __pyx_pw_4cuda_6cudart_9VdpDevice_7__int__, /*nb_int*/ #if PY_MAJOR_VERSION < 3 __pyx_pw_4cuda_6cudart_9VdpDevice_7__int__, /*nb_long*/ #else 0, /*reserved*/ #endif 0, /*nb_float*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_oct*/ #endif #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_hex*/ #endif 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_inplace_divide*/ #endif 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*/ #if PY_VERSION_HEX >= 0x03050000 0, /*nb_matrix_multiply*/ #endif #if PY_VERSION_HEX >= 0x03050000 0, /*nb_inplace_matrix_multiply*/ #endif }; static PyTypeObject __pyx_type_4cuda_6cudart_VdpDevice = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""VdpDevice", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_VdpDevice), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_VdpDevice, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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_6cudart_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_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_VdpGetProcAddress(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_VdpGetProcAddress(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_17VdpGetProcAddress_3__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_17VdpGetProcAddress_5__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_17VdpGetProcAddress_5__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_VdpGetProcAddress[] = { {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_17VdpGetProcAddress_5__repr__, METH_NOARGS|METH_COEXIST, 0}, {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_17VdpGetProcAddress_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_17VdpGetProcAddress_8getPtr}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_17VdpGetProcAddress_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_17VdpGetProcAddress_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_17VdpGetProcAddress_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_17VdpGetProcAddress_12__setstate_cython__}, {0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_VdpGetProcAddress_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_VdpGetProcAddress}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_17VdpGetProcAddress_5__repr__}, {Py_nb_int, (void *)__pyx_pw_4cuda_6cudart_17VdpGetProcAddress_7__int__}, #if PY_MAJOR_VERSION < 3 {Py_nb_long, (void *)__pyx_pw_4cuda_6cudart_17VdpGetProcAddress_7__int__}, #endif {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_6cudart_VdpGetProcAddress}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_VdpGetProcAddress}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_VdpGetProcAddress_spec = { "cuda.cudart.VdpGetProcAddress", sizeof(struct __pyx_obj_4cuda_6cudart_VdpGetProcAddress), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_VdpGetProcAddress_slots, }; #else static PyNumberMethods __pyx_tp_as_number_VdpGetProcAddress = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_divide*/ #endif 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*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_coerce*/ #endif __pyx_pw_4cuda_6cudart_17VdpGetProcAddress_7__int__, /*nb_int*/ #if PY_MAJOR_VERSION < 3 __pyx_pw_4cuda_6cudart_17VdpGetProcAddress_7__int__, /*nb_long*/ #else 0, /*reserved*/ #endif 0, /*nb_float*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_oct*/ #endif #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_hex*/ #endif 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_inplace_divide*/ #endif 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*/ #if PY_VERSION_HEX >= 0x03050000 0, /*nb_matrix_multiply*/ #endif #if PY_VERSION_HEX >= 0x03050000 0, /*nb_inplace_matrix_multiply*/ #endif }; static PyTypeObject __pyx_type_4cuda_6cudart_VdpGetProcAddress = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""VdpGetProcAddress", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_VdpGetProcAddress), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_VdpGetProcAddress, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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_6cudart_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_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_VdpVideoSurface(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_VdpVideoSurface(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_15VdpVideoSurface_3__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_15VdpVideoSurface_5__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_15VdpVideoSurface_5__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_VdpVideoSurface[] = { {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_15VdpVideoSurface_5__repr__, METH_NOARGS|METH_COEXIST, 0}, {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_15VdpVideoSurface_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_15VdpVideoSurface_8getPtr}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_15VdpVideoSurface_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_15VdpVideoSurface_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_15VdpVideoSurface_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_15VdpVideoSurface_12__setstate_cython__}, {0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_VdpVideoSurface_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_VdpVideoSurface}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_15VdpVideoSurface_5__repr__}, {Py_nb_int, (void *)__pyx_pw_4cuda_6cudart_15VdpVideoSurface_7__int__}, #if PY_MAJOR_VERSION < 3 {Py_nb_long, (void *)__pyx_pw_4cuda_6cudart_15VdpVideoSurface_7__int__}, #endif {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_6cudart_VdpVideoSurface}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_VdpVideoSurface}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_VdpVideoSurface_spec = { "cuda.cudart.VdpVideoSurface", sizeof(struct __pyx_obj_4cuda_6cudart_VdpVideoSurface), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_VdpVideoSurface_slots, }; #else static PyNumberMethods __pyx_tp_as_number_VdpVideoSurface = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_divide*/ #endif 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*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_coerce*/ #endif __pyx_pw_4cuda_6cudart_15VdpVideoSurface_7__int__, /*nb_int*/ #if PY_MAJOR_VERSION < 3 __pyx_pw_4cuda_6cudart_15VdpVideoSurface_7__int__, /*nb_long*/ #else 0, /*reserved*/ #endif 0, /*nb_float*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_oct*/ #endif #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_hex*/ #endif 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_inplace_divide*/ #endif 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*/ #if PY_VERSION_HEX >= 0x03050000 0, /*nb_matrix_multiply*/ #endif #if PY_VERSION_HEX >= 0x03050000 0, /*nb_inplace_matrix_multiply*/ #endif }; static PyTypeObject __pyx_type_4cuda_6cudart_VdpVideoSurface = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""VdpVideoSurface", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_VdpVideoSurface), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_VdpVideoSurface, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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_6cudart_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_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*tp_versions_used*/ #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, /*tp_pypy_flags*/ #endif }; #endif static PyObject *__pyx_tp_new_4cuda_6cudart_VdpOutputSurface(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; #endif if (unlikely(__pyx_pw_4cuda_6cudart_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_6cudart_VdpOutputSurface(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __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_6cudart_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_6cudart_16VdpOutputSurface_3__dealloc__(o); __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1); PyErr_Restore(etype, eval, etb); } #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } static PyObject *__pyx_specialmethod___pyx_pw_4cuda_6cudart_16VdpOutputSurface_5__repr__(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __pyx_pw_4cuda_6cudart_16VdpOutputSurface_5__repr__(self); } static PyMethodDef __pyx_methods_4cuda_6cudart_VdpOutputSurface[] = { {"__repr__", (PyCFunction)__pyx_specialmethod___pyx_pw_4cuda_6cudart_16VdpOutputSurface_5__repr__, METH_NOARGS|METH_COEXIST, 0}, {"getPtr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_16VdpOutputSurface_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_16VdpOutputSurface_8getPtr}, {"__reduce_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_16VdpOutputSurface_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_16VdpOutputSurface_10__reduce_cython__}, {"__setstate_cython__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_6cudart_16VdpOutputSurface_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_6cudart_16VdpOutputSurface_12__setstate_cython__}, {0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS static PyType_Slot __pyx_type_4cuda_6cudart_VdpOutputSurface_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart_VdpOutputSurface}, {Py_tp_repr, (void *)__pyx_pw_4cuda_6cudart_16VdpOutputSurface_5__repr__}, {Py_nb_int, (void *)__pyx_pw_4cuda_6cudart_16VdpOutputSurface_7__int__}, #if PY_MAJOR_VERSION < 3 {Py_nb_long, (void *)__pyx_pw_4cuda_6cudart_16VdpOutputSurface_7__int__}, #endif {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_6cudart_VdpOutputSurface}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart_VdpOutputSurface}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart_VdpOutputSurface_spec = { "cuda.cudart.VdpOutputSurface", sizeof(struct __pyx_obj_4cuda_6cudart_VdpOutputSurface), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, __pyx_type_4cuda_6cudart_VdpOutputSurface_slots, }; #else static PyNumberMethods __pyx_tp_as_number_VdpOutputSurface = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_divide*/ #endif 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*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_coerce*/ #endif __pyx_pw_4cuda_6cudart_16VdpOutputSurface_7__int__, /*nb_int*/ #if PY_MAJOR_VERSION < 3 __pyx_pw_4cuda_6cudart_16VdpOutputSurface_7__int__, /*nb_long*/ #else 0, /*reserved*/ #endif 0, /*nb_float*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_oct*/ #endif #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_hex*/ #endif 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000) 0, /*nb_inplace_divide*/ #endif 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*/ #if PY_VERSION_HEX >= 0x03050000 0, /*nb_matrix_multiply*/ #endif #if PY_VERSION_HEX >= 0x03050000 0, /*nb_inplace_matrix_multiply*/ #endif }; static PyTypeObject __pyx_type_4cuda_6cudart_VdpOutputSurface = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""VdpOutputSurface", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart_VdpOutputSurface), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart_VdpOutputSurface, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif __pyx_pw_4cuda_6cudart_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_6cudart_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_6cudart_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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct__genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct__genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct__genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct__genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct__genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct__genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct__genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct__genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct__genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct__genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct__genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct__genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct__genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct__genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct__genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct__genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct__genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct__genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct__genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct__genexpr *)o; 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_6cudart___pyx_scope_struct__genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct__genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct__genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct__genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct__genexpr_spec = { "cuda.cudart.__pyx_scope_struct__genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct__genexpr), 0, Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct__genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct__genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct__genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct__genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct__genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_1_genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct_1_genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct_1_genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_1_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_1_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_1_genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct_1_genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct_1_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_1_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_1_genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_1_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_1_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_1_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_1_genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct_1_genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct_1_genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_1_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_1_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_1_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_1_genexpr *)o; 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_6cudart___pyx_scope_struct_1_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_1_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_1_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_1_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct_1_genexpr_spec = { "cuda.cudart.__pyx_scope_struct_1_genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct_1_genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct_1_genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct_1_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_1_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_1_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_2_genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct_2_genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct_2_genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_2_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_2_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_2_genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct_2_genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct_2_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_2_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_2_genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_2_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_2_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_2_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_2_genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct_2_genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct_2_genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_2_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_2_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_2_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_2_genexpr *)o; 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_6cudart___pyx_scope_struct_2_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_2_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_2_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_2_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct_2_genexpr_spec = { "cuda.cudart.__pyx_scope_struct_2_genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct_2_genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct_2_genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct_2_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_2_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_2_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_3_genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct_3_genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct_3_genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_3_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_3_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_3_genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct_3_genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct_3_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_3_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_3_genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_3_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_3_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_3_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_3_genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct_3_genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct_3_genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_3_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_3_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_3_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_3_genexpr *)o; 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_6cudart___pyx_scope_struct_3_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_3_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_3_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_3_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct_3_genexpr_spec = { "cuda.cudart.__pyx_scope_struct_3_genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct_3_genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct_3_genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct_3_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_3_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_3_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_4_genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct_4_genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct_4_genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_4_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_4_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_4_genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct_4_genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct_4_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_4_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_4_genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_4_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_4_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_4_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_4_genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct_4_genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct_4_genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_4_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_4_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_4_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_4_genexpr *)o; 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_6cudart___pyx_scope_struct_4_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_4_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_4_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_4_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct_4_genexpr_spec = { "cuda.cudart.__pyx_scope_struct_4_genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct_4_genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct_4_genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct_4_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_4_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_4_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_5_genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct_5_genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct_5_genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_5_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_5_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_5_genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct_5_genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct_5_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_5_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_5_genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_5_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_5_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_5_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_5_genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct_5_genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct_5_genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_5_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_5_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_5_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_5_genexpr *)o; 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_6cudart___pyx_scope_struct_5_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_5_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_5_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_5_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct_5_genexpr_spec = { "cuda.cudart.__pyx_scope_struct_5_genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct_5_genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct_5_genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct_5_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_5_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_5_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_6_genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct_6_genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct_6_genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_6_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_6_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_6_genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct_6_genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct_6_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_6_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_6_genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_6_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_6_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_6_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_6_genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct_6_genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct_6_genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_6_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_6_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_6_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_6_genexpr *)o; 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_6cudart___pyx_scope_struct_6_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_6_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_6_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_6_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct_6_genexpr_spec = { "cuda.cudart.__pyx_scope_struct_6_genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct_6_genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct_6_genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct_6_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_6_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_6_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_7_genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct_7_genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct_7_genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_7_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_7_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_7_genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct_7_genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct_7_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_7_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_7_genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_7_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_7_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_7_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_7_genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct_7_genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct_7_genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_7_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_7_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_7_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_7_genexpr *)o; 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_6cudart___pyx_scope_struct_7_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_7_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_7_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_7_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct_7_genexpr_spec = { "cuda.cudart.__pyx_scope_struct_7_genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct_7_genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct_7_genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct_7_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_7_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_7_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_8_genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct_8_genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct_8_genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_8_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_8_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_8_genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct_8_genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct_8_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_8_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_8_genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_8_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_8_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_8_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_8_genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct_8_genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct_8_genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_8_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_8_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_8_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_8_genexpr *)o; 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_6cudart___pyx_scope_struct_8_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_8_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_8_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_8_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct_8_genexpr_spec = { "cuda.cudart.__pyx_scope_struct_8_genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct_8_genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct_8_genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct_8_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_8_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_8_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_9_genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct_9_genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct_9_genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_9_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_9_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_9_genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct_9_genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct_9_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_9_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_9_genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_9_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_9_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_9_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_9_genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct_9_genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct_9_genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_9_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_9_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_9_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_9_genexpr *)o; 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_6cudart___pyx_scope_struct_9_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_9_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_9_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_9_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct_9_genexpr_spec = { "cuda.cudart.__pyx_scope_struct_9_genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct_9_genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct_9_genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct_9_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_9_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_9_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_10_genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct_10_genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct_10_genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_10_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_10_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_10_genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct_10_genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct_10_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_10_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_10_genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_10_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_10_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_10_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_10_genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct_10_genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct_10_genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_10_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_10_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_10_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_10_genexpr *)o; 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_6cudart___pyx_scope_struct_10_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_10_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_10_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_10_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct_10_genexpr_spec = { "cuda.cudart.__pyx_scope_struct_10_genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct_10_genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct_10_genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct_10_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_10_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_10_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_11_genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct_11_genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct_11_genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_11_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_11_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_11_genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct_11_genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct_11_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_11_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_11_genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_11_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_11_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_11_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_11_genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct_11_genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct_11_genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_11_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_11_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_11_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_11_genexpr *)o; 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_6cudart___pyx_scope_struct_11_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_11_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_11_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_11_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct_11_genexpr_spec = { "cuda.cudart.__pyx_scope_struct_11_genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct_11_genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct_11_genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct_11_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_11_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_11_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_12_genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct_12_genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct_12_genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_12_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_12_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_12_genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct_12_genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct_12_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_12_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_12_genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_12_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_12_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_12_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_12_genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct_12_genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct_12_genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_12_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_12_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_12_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_12_genexpr *)o; 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_6cudart___pyx_scope_struct_12_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_12_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_12_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_12_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct_12_genexpr_spec = { "cuda.cudart.__pyx_scope_struct_12_genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct_12_genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct_12_genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct_12_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_12_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_12_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_13_genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct_13_genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct_13_genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_13_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_13_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_13_genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct_13_genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct_13_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_13_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_13_genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_13_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_13_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_13_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_13_genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct_13_genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct_13_genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_13_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_13_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_13_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_13_genexpr *)o; 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_6cudart___pyx_scope_struct_13_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_13_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_13_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_13_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct_13_genexpr_spec = { "cuda.cudart.__pyx_scope_struct_13_genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct_13_genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct_13_genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct_13_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_13_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_13_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_14_genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct_14_genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct_14_genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_14_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_14_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_14_genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct_14_genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct_14_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_14_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_14_genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_14_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_14_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_14_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_14_genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct_14_genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct_14_genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_14_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_14_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_14_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_14_genexpr *)o; 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_6cudart___pyx_scope_struct_14_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_14_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_14_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_14_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct_14_genexpr_spec = { "cuda.cudart.__pyx_scope_struct_14_genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct_14_genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct_14_genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct_14_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_14_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_14_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_15_genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct_15_genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct_15_genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_15_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_15_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_15_genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct_15_genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct_15_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_15_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_15_genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_15_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_15_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_15_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_15_genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct_15_genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct_15_genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_15_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_15_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_15_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_15_genexpr *)o; 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_6cudart___pyx_scope_struct_15_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_15_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_15_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_15_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct_15_genexpr_spec = { "cuda.cudart.__pyx_scope_struct_15_genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct_15_genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct_15_genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct_15_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_15_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_15_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_16_genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct_16_genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct_16_genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_16_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_16_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_16_genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct_16_genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct_16_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_16_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_16_genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_16_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_16_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_16_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_16_genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct_16_genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct_16_genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_16_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_16_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_16_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_16_genexpr *)o; 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_6cudart___pyx_scope_struct_16_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_16_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_16_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_16_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct_16_genexpr_spec = { "cuda.cudart.__pyx_scope_struct_16_genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct_16_genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct_16_genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct_16_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_16_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_16_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_17_genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct_17_genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct_17_genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_17_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_17_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_17_genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct_17_genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct_17_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_17_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_17_genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_17_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_17_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_17_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_17_genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct_17_genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct_17_genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_17_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_17_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_17_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_17_genexpr *)o; 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_6cudart___pyx_scope_struct_17_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_17_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_17_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_17_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct_17_genexpr_spec = { "cuda.cudart.__pyx_scope_struct_17_genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct_17_genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct_17_genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct_17_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_17_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_17_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_18_genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct_18_genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct_18_genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_18_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_18_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_18_genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct_18_genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct_18_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_18_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_18_genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_18_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_18_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_18_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_18_genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct_18_genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct_18_genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_18_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_18_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_18_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_18_genexpr *)o; 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_6cudart___pyx_scope_struct_18_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_18_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_18_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_18_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct_18_genexpr_spec = { "cuda.cudart.__pyx_scope_struct_18_genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct_18_genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct_18_genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct_18_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_18_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_18_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_19_genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct_19_genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct_19_genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_19_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_19_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_19_genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct_19_genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct_19_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_19_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_19_genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_19_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_19_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_19_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_19_genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct_19_genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct_19_genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_19_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_19_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_19_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_19_genexpr *)o; 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_6cudart___pyx_scope_struct_19_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_19_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_19_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_19_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct_19_genexpr_spec = { "cuda.cudart.__pyx_scope_struct_19_genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct_19_genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct_19_genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct_19_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_19_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_19_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_20_genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct_20_genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct_20_genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_20_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_20_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_20_genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct_20_genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct_20_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_20_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_20_genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_20_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_20_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_20_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_20_genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct_20_genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct_20_genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_20_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_20_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_20_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_20_genexpr *)o; 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_6cudart___pyx_scope_struct_20_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_20_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_20_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_20_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct_20_genexpr_spec = { "cuda.cudart.__pyx_scope_struct_20_genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct_20_genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct_20_genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct_20_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_20_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_20_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_21_genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct_21_genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct_21_genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_21_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_21_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_21_genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct_21_genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct_21_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_21_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_21_genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_21_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_21_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_21_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_21_genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct_21_genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct_21_genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_21_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_21_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_21_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_21_genexpr *)o; 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_6cudart___pyx_scope_struct_21_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_21_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_21_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_21_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct_21_genexpr_spec = { "cuda.cudart.__pyx_scope_struct_21_genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct_21_genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct_21_genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct_21_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_21_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_21_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_22_genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct_22_genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct_22_genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_22_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_22_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_22_genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct_22_genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct_22_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_22_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_22_genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_22_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_22_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_22_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_22_genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct_22_genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct_22_genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_22_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_22_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_22_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_22_genexpr *)o; 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_6cudart___pyx_scope_struct_22_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_22_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_22_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_22_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct_22_genexpr_spec = { "cuda.cudart.__pyx_scope_struct_22_genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct_22_genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct_22_genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct_22_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_22_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_22_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_23_genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct_23_genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct_23_genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_23_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_23_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_23_genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct_23_genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct_23_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_23_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_23_genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_23_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_23_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_23_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_23_genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct_23_genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct_23_genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_23_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_23_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_23_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_23_genexpr *)o; 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_6cudart___pyx_scope_struct_23_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_23_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_23_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_23_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct_23_genexpr_spec = { "cuda.cudart.__pyx_scope_struct_23_genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct_23_genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct_23_genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct_23_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_23_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_23_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_24_genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct_24_genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct_24_genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_24_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_24_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_24_genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct_24_genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct_24_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_24_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_24_genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_24_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_24_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_24_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_24_genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct_24_genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct_24_genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_24_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_24_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_24_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_24_genexpr *)o; 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_6cudart___pyx_scope_struct_24_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_24_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_24_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_24_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct_24_genexpr_spec = { "cuda.cudart.__pyx_scope_struct_24_genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct_24_genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct_24_genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct_24_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_24_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_24_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_25_genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct_25_genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct_25_genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_25_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_25_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_25_genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct_25_genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct_25_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_25_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_25_genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_25_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_25_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_25_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_25_genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct_25_genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct_25_genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_25_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_25_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_25_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_25_genexpr *)o; 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_6cudart___pyx_scope_struct_25_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_25_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_25_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_25_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct_25_genexpr_spec = { "cuda.cudart.__pyx_scope_struct_25_genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct_25_genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct_25_genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct_25_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_25_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_25_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_26_genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct_26_genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct_26_genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_26_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_26_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_26_genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct_26_genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct_26_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_26_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_26_genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_26_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_26_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_26_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_26_genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct_26_genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct_26_genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_26_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_26_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_26_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_26_genexpr *)o; 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_6cudart___pyx_scope_struct_26_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_26_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_26_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_26_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct_26_genexpr_spec = { "cuda.cudart.__pyx_scope_struct_26_genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct_26_genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct_26_genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct_26_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_26_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_26_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_27_genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct_27_genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct_27_genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_27_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_27_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_27_genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct_27_genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct_27_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_27_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_27_genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_27_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_27_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_27_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_27_genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct_27_genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct_27_genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_27_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_27_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_27_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_27_genexpr *)o; 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_6cudart___pyx_scope_struct_27_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_27_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_27_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_27_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct_27_genexpr_spec = { "cuda.cudart.__pyx_scope_struct_27_genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct_27_genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct_27_genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct_27_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_27_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_27_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_28_genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct_28_genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct_28_genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_28_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_28_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_28_genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct_28_genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct_28_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_28_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_28_genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_28_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_28_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_28_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_28_genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct_28_genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct_28_genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_28_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_28_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_28_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_28_genexpr *)o; 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_6cudart___pyx_scope_struct_28_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_28_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_28_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_28_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct_28_genexpr_spec = { "cuda.cudart.__pyx_scope_struct_28_genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct_28_genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct_28_genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct_28_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_28_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_28_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_29_genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct_29_genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct_29_genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_29_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_29_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_29_genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct_29_genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct_29_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_29_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_29_genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_29_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_29_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_29_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_29_genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct_29_genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct_29_genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_29_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_29_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_29_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_29_genexpr *)o; 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_6cudart___pyx_scope_struct_29_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_29_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_29_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_29_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct_29_genexpr_spec = { "cuda.cudart.__pyx_scope_struct_29_genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct_29_genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct_29_genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct_29_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_29_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_29_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_30_genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct_30_genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct_30_genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_30_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_30_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_30_genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct_30_genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct_30_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_30_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_30_genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_30_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_30_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_30_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_30_genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct_30_genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct_30_genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_30_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_30_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_30_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_30_genexpr *)o; 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_6cudart___pyx_scope_struct_30_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_30_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_30_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_30_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct_30_genexpr_spec = { "cuda.cudart.__pyx_scope_struct_30_genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct_30_genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct_30_genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct_30_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_30_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_30_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_31_genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct_31_genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct_31_genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_31_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_31_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_31_genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct_31_genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct_31_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_31_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_31_genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_31_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_31_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_31_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_31_genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct_31_genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct_31_genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_31_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_31_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_31_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_31_genexpr *)o; 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_6cudart___pyx_scope_struct_31_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_31_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_31_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_31_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct_31_genexpr_spec = { "cuda.cudart.__pyx_scope_struct_31_genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct_31_genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct_31_genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct_31_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_31_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_31_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_32_genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct_32_genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct_32_genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_32_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_32_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_32_genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct_32_genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct_32_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_32_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_32_genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_32_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_32_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_32_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_32_genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct_32_genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct_32_genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_32_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_32_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_32_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_32_genexpr *)o; 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_6cudart___pyx_scope_struct_32_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_32_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_32_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_32_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct_32_genexpr_spec = { "cuda.cudart.__pyx_scope_struct_32_genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct_32_genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct_32_genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct_32_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_32_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_32_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_33_genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct_33_genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct_33_genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_33_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_33_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_33_genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct_33_genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct_33_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_33_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_33_genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_33_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_33_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_33_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_33_genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct_33_genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct_33_genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_33_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_33_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_33_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_33_genexpr *)o; 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_6cudart___pyx_scope_struct_33_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_33_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_33_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_33_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct_33_genexpr_spec = { "cuda.cudart.__pyx_scope_struct_33_genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct_33_genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct_33_genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct_33_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_33_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_33_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_34_genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct_34_genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct_34_genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_34_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_34_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_34_genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct_34_genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct_34_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_34_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_34_genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_34_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_34_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_34_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_34_genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct_34_genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct_34_genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_34_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_34_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_34_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_34_genexpr *)o; 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_6cudart___pyx_scope_struct_34_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_34_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_34_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_34_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct_34_genexpr_spec = { "cuda.cudart.__pyx_scope_struct_34_genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct_34_genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct_34_genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct_34_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_34_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_34_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_35_genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct_35_genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct_35_genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_35_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_35_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_35_genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct_35_genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct_35_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_35_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_35_genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_35_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_35_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_35_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_35_genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct_35_genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct_35_genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_35_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_35_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_35_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_35_genexpr *)o; 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_6cudart___pyx_scope_struct_35_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_35_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_35_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_35_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct_35_genexpr_spec = { "cuda.cudart.__pyx_scope_struct_35_genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct_35_genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct_35_genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct_35_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_35_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_35_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_36_genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct_36_genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct_36_genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_36_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_36_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_36_genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct_36_genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct_36_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_36_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_36_genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_36_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_36_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_36_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_36_genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct_36_genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct_36_genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_36_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_36_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_36_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_36_genexpr *)o; 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_6cudart___pyx_scope_struct_36_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_36_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_36_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_36_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct_36_genexpr_spec = { "cuda.cudart.__pyx_scope_struct_36_genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct_36_genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct_36_genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct_36_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_36_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_36_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 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_FREELISTS static struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_37_genexpr *__pyx_freelist_4cuda_6cudart___pyx_scope_struct_37_genexpr[8]; static int __pyx_freecount_4cuda_6cudart___pyx_scope_struct_37_genexpr = 0; #endif static PyObject *__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_37_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; #if CYTHON_COMPILING_IN_LIMITED_API allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_37_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_37_genexpr)))) { o = (PyObject*)__pyx_freelist_4cuda_6cudart___pyx_scope_struct_37_genexpr[--__pyx_freecount_4cuda_6cudart___pyx_scope_struct_37_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_37_genexpr)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else #endif { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } #endif return o; } static void __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_37_genexpr(PyObject *o) { struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_37_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_37_genexpr *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && __Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) { if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_6cudart___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__x); #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_4cuda_6cudart___pyx_scope_struct_37_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_37_genexpr)))) { __pyx_freelist_4cuda_6cudart___pyx_scope_struct_37_genexpr[__pyx_freecount_4cuda_6cudart___pyx_scope_struct_37_genexpr++] = ((struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_37_genexpr *)o); } else #endif { #if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY (*Py_TYPE(o)->tp_free)(o); #else { freefunc tp_free = (freefunc)PyType_GetSlot(Py_TYPE(o), Py_tp_free); if (tp_free) tp_free(o); } #endif } } static int __pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_37_genexpr(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_37_genexpr *p = (struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_37_genexpr *)o; 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_6cudart___pyx_scope_struct_37_genexpr_slots[] = { {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_37_genexpr}, {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_6cudart___pyx_scope_struct_37_genexpr}, {Py_tp_new, (void *)__pyx_tp_new_4cuda_6cudart___pyx_scope_struct_37_genexpr}, {0, 0}, }; static PyType_Spec __pyx_type_4cuda_6cudart___pyx_scope_struct_37_genexpr_spec = { "cuda.cudart.__pyx_scope_struct_37_genexpr", sizeof(struct __pyx_obj_4cuda_6cudart___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|Py_TPFLAGS_HAVE_FINALIZE, __pyx_type_4cuda_6cudart___pyx_scope_struct_37_genexpr_slots, }; #else static PyTypeObject __pyx_type_4cuda_6cudart___pyx_scope_struct_37_genexpr = { PyVarObject_HEAD_INIT(0, 0) "cuda.cudart.""__pyx_scope_struct_37_genexpr", /*tp_name*/ sizeof(struct __pyx_obj_4cuda_6cudart___pyx_scope_struct_37_genexpr), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_4cuda_6cudart___pyx_scope_struct_37_genexpr, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 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|Py_TPFLAGS_HAVE_FINALIZE, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_4cuda_6cudart___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_6cudart___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 PY_VERSION_HEX >= 0x030400a1 #if CYTHON_USE_TP_FINALIZE 0, /*tp_finalize*/ #else NULL, /*tp_finalize*/ #endif #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, /*tp_vectorcall*/ #endif #if __PYX_NEED_TP_PRINT_SLOT == 1 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030C0000 0, /*tp_watched*/ #endif #if PY_VERSION_HEX >= 0x030d00A4 0, /*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} }; #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 /* #### Code section: pystring_table ### */ static int __Pyx_CreateStringTabAndInitStrings(void) { __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_kp_u_, __pyx_k_, sizeof(__pyx_k_), 0, 1, 0, 0}, {&__pyx_n_s_Any, __pyx_k_Any, sizeof(__pyx_k_Any), 0, 0, 1, 1}, {&__pyx_kp_u_Argument_attributes_is_not_insta, __pyx_k_Argument_attributes_is_not_insta, sizeof(__pyx_k_Argument_attributes_is_not_insta), 0, 1, 0, 0}, {&__pyx_kp_u_Argument_conn_is_not_instance_of, __pyx_k_Argument_conn_is_not_instance_of, sizeof(__pyx_k_Argument_conn_is_not_instance_of), 0, 1, 0, 0}, {&__pyx_kp_u_Argument_dataSizes_is_not_instan, __pyx_k_Argument_dataSizes_is_not_instan, sizeof(__pyx_k_Argument_dataSizes_is_not_instan), 0, 1, 0, 0}, {&__pyx_kp_u_Argument_dependencies_is_not_ins, __pyx_k_Argument_dependencies_is_not_ins, sizeof(__pyx_k_Argument_dependencies_is_not_ins), 0, 1, 0, 0}, {&__pyx_kp_u_Argument_dependencyData_is_not_i, __pyx_k_Argument_dependencyData_is_not_i, sizeof(__pyx_k_Argument_dependencyData_is_not_i), 0, 1, 0, 0}, {&__pyx_kp_u_Argument_descList_is_not_instanc, __pyx_k_Argument_descList_is_not_instanc, sizeof(__pyx_k_Argument_descList_is_not_instanc), 0, 1, 0, 0}, {&__pyx_kp_u_Argument_edgeData_is_not_instanc, __pyx_k_Argument_edgeData_is_not_instanc, sizeof(__pyx_k_Argument_edgeData_is_not_instanc), 0, 1, 0, 0}, {&__pyx_kp_u_Argument_extSemArray_is_not_inst, __pyx_k_Argument_extSemArray_is_not_inst, sizeof(__pyx_k_Argument_extSemArray_is_not_inst), 0, 1, 0, 0}, {&__pyx_kp_u_Argument_from__is_not_instance_o, __pyx_k_Argument_from__is_not_instance_o, sizeof(__pyx_k_Argument_from__is_not_instance_o), 0, 1, 0, 0}, {&__pyx_kp_u_Argument_pCudaResource_is_not_in, __pyx_k_Argument_pCudaResource_is_not_in, sizeof(__pyx_k_Argument_pCudaResource_is_not_in), 0, 1, 0, 0}, {&__pyx_kp_u_Argument_pDependencies_is_not_in, __pyx_k_Argument_pDependencies_is_not_in, sizeof(__pyx_k_Argument_pDependencies_is_not_in), 0, 1, 0, 0}, {&__pyx_kp_u_Argument_pStream_is_not_instance, __pyx_k_Argument_pStream_is_not_instance, sizeof(__pyx_k_Argument_pStream_is_not_instance), 0, 1, 0, 0}, {&__pyx_kp_u_Argument_paramsArray_is_not_inst, __pyx_k_Argument_paramsArray_is_not_inst, sizeof(__pyx_k_Argument_paramsArray_is_not_inst), 0, 1, 0, 0}, {&__pyx_kp_u_Argument_paramsArray_is_not_inst_2, __pyx_k_Argument_paramsArray_is_not_inst_2, sizeof(__pyx_k_Argument_paramsArray_is_not_inst_2), 0, 1, 0, 0}, {&__pyx_kp_u_Argument_resources_is_not_instan, __pyx_k_Argument_resources_is_not_instan, sizeof(__pyx_k_Argument_resources_is_not_instan), 0, 1, 0, 0}, {&__pyx_kp_u_Argument_to_is_not_instance_of_t, __pyx_k_Argument_to_is_not_instance_of_t, sizeof(__pyx_k_Argument_to_is_not_instance_of_t), 0, 1, 0, 0}, {&__pyx_kp_u_Argument_vdpGetProcAddress_is_no, __pyx_k_Argument_vdpGetProcAddress_is_no, sizeof(__pyx_k_Argument_vdpGetProcAddress_is_no), 0, 1, 0, 0}, {&__pyx_n_s_CUDART_API_VERSION, __pyx_k_CUDART_API_VERSION, sizeof(__pyx_k_CUDART_API_VERSION), 0, 0, 1, 1}, {&__pyx_n_s_CUDART_VERSION, __pyx_k_CUDART_VERSION, sizeof(__pyx_k_CUDART_VERSION), 0, 0, 1, 1}, {&__pyx_n_s_CUDA_C_16BF, __pyx_k_CUDA_C_16BF, sizeof(__pyx_k_CUDA_C_16BF), 0, 0, 1, 1}, {&__pyx_n_s_CUDA_C_16F, __pyx_k_CUDA_C_16F, sizeof(__pyx_k_CUDA_C_16F), 0, 0, 1, 1}, {&__pyx_n_s_CUDA_C_16I, __pyx_k_CUDA_C_16I, sizeof(__pyx_k_CUDA_C_16I), 0, 0, 1, 1}, {&__pyx_n_s_CUDA_C_16U, __pyx_k_CUDA_C_16U, sizeof(__pyx_k_CUDA_C_16U), 0, 0, 1, 1}, {&__pyx_n_s_CUDA_C_32F, __pyx_k_CUDA_C_32F, sizeof(__pyx_k_CUDA_C_32F), 0, 0, 1, 1}, {&__pyx_n_s_CUDA_C_32I, __pyx_k_CUDA_C_32I, sizeof(__pyx_k_CUDA_C_32I), 0, 0, 1, 1}, {&__pyx_n_s_CUDA_C_32U, __pyx_k_CUDA_C_32U, sizeof(__pyx_k_CUDA_C_32U), 0, 0, 1, 1}, {&__pyx_n_s_CUDA_C_4I, __pyx_k_CUDA_C_4I, sizeof(__pyx_k_CUDA_C_4I), 0, 0, 1, 1}, {&__pyx_n_s_CUDA_C_4U, __pyx_k_CUDA_C_4U, sizeof(__pyx_k_CUDA_C_4U), 0, 0, 1, 1}, {&__pyx_n_s_CUDA_C_64F, __pyx_k_CUDA_C_64F, sizeof(__pyx_k_CUDA_C_64F), 0, 0, 1, 1}, {&__pyx_n_s_CUDA_C_64I, __pyx_k_CUDA_C_64I, sizeof(__pyx_k_CUDA_C_64I), 0, 0, 1, 1}, {&__pyx_n_s_CUDA_C_64U, __pyx_k_CUDA_C_64U, sizeof(__pyx_k_CUDA_C_64U), 0, 0, 1, 1}, {&__pyx_n_s_CUDA_C_8I, __pyx_k_CUDA_C_8I, sizeof(__pyx_k_CUDA_C_8I), 0, 0, 1, 1}, {&__pyx_n_s_CUDA_C_8U, __pyx_k_CUDA_C_8U, sizeof(__pyx_k_CUDA_C_8U), 0, 0, 1, 1}, {&__pyx_kp_s_CUDA_EGL_Color_Format_The_diffe, __pyx_k_CUDA_EGL_Color_Format_The_diffe, sizeof(__pyx_k_CUDA_EGL_Color_Format_The_diffe), 0, 0, 1, 0}, {&__pyx_n_s_CUDA_EGL_MAX_PLANES, __pyx_k_CUDA_EGL_MAX_PLANES, sizeof(__pyx_k_CUDA_EGL_MAX_PLANES), 0, 0, 1, 1}, {&__pyx_kp_s_CUDA_EglFrame_type_array_or_poi, __pyx_k_CUDA_EglFrame_type_array_or_poi, sizeof(__pyx_k_CUDA_EglFrame_type_array_or_poi), 0, 0, 1, 0}, {&__pyx_kp_s_CUDA_GL_Map_Flags, __pyx_k_CUDA_GL_Map_Flags, sizeof(__pyx_k_CUDA_GL_Map_Flags), 0, 0, 1, 0}, {&__pyx_kp_s_CUDA_GPUDirect_RDMA_flush_write, __pyx_k_CUDA_GPUDirect_RDMA_flush_write, sizeof(__pyx_k_CUDA_GPUDirect_RDMA_flush_write), 0, 0, 1, 0}, {&__pyx_kp_s_CUDA_GPUDirect_RDMA_flush_write_2, __pyx_k_CUDA_GPUDirect_RDMA_flush_write_2, sizeof(__pyx_k_CUDA_GPUDirect_RDMA_flush_write_2), 0, 0, 1, 0}, {&__pyx_kp_s_CUDA_GPUDirect_RDMA_flush_write_3, __pyx_k_CUDA_GPUDirect_RDMA_flush_write_3, sizeof(__pyx_k_CUDA_GPUDirect_RDMA_flush_write_3), 0, 0, 1, 0}, {&__pyx_kp_s_CUDA_GPUDirect_RDMA_flush_write_4, __pyx_k_CUDA_GPUDirect_RDMA_flush_write_4, sizeof(__pyx_k_CUDA_GPUDirect_RDMA_flush_write_4), 0, 0, 1, 0}, {&__pyx_kp_s_CUDA_Graph_Update_error_types, __pyx_k_CUDA_Graph_Update_error_types, sizeof(__pyx_k_CUDA_Graph_Update_error_types), 0, 0, 1, 0}, {&__pyx_kp_s_CUDA_Graph_debug_write_options, __pyx_k_CUDA_Graph_debug_write_options, sizeof(__pyx_k_CUDA_Graph_debug_write_options), 0, 0, 1, 0}, {&__pyx_kp_s_CUDA_Graph_node_types, __pyx_k_CUDA_Graph_node_types, sizeof(__pyx_k_CUDA_Graph_node_types), 0, 0, 1, 0}, {&__pyx_n_s_CUDA_IPC_HANDLE_SIZE, __pyx_k_CUDA_IPC_HANDLE_SIZE, sizeof(__pyx_k_CUDA_IPC_HANDLE_SIZE), 0, 0, 1, 1}, {&__pyx_kp_s_CUDA_Limits, __pyx_k_CUDA_Limits, sizeof(__pyx_k_CUDA_Limits), 0, 0, 1, 0}, {&__pyx_kp_s_CUDA_Memory_Advise_values, __pyx_k_CUDA_Memory_Advise_values, sizeof(__pyx_k_CUDA_Memory_Advise_values), 0, 0, 1, 0}, {&__pyx_n_s_CUDA_R_16BF, __pyx_k_CUDA_R_16BF, sizeof(__pyx_k_CUDA_R_16BF), 0, 0, 1, 1}, {&__pyx_n_s_CUDA_R_16F, __pyx_k_CUDA_R_16F, sizeof(__pyx_k_CUDA_R_16F), 0, 0, 1, 1}, {&__pyx_n_s_CUDA_R_16I, __pyx_k_CUDA_R_16I, sizeof(__pyx_k_CUDA_R_16I), 0, 0, 1, 1}, {&__pyx_n_s_CUDA_R_16U, __pyx_k_CUDA_R_16U, sizeof(__pyx_k_CUDA_R_16U), 0, 0, 1, 1}, {&__pyx_n_s_CUDA_R_32F, __pyx_k_CUDA_R_32F, sizeof(__pyx_k_CUDA_R_32F), 0, 0, 1, 1}, {&__pyx_n_s_CUDA_R_32I, __pyx_k_CUDA_R_32I, sizeof(__pyx_k_CUDA_R_32I), 0, 0, 1, 1}, {&__pyx_n_s_CUDA_R_32U, __pyx_k_CUDA_R_32U, sizeof(__pyx_k_CUDA_R_32U), 0, 0, 1, 1}, {&__pyx_n_s_CUDA_R_4I, __pyx_k_CUDA_R_4I, sizeof(__pyx_k_CUDA_R_4I), 0, 0, 1, 1}, {&__pyx_n_s_CUDA_R_4U, __pyx_k_CUDA_R_4U, sizeof(__pyx_k_CUDA_R_4U), 0, 0, 1, 1}, {&__pyx_n_s_CUDA_R_64F, __pyx_k_CUDA_R_64F, sizeof(__pyx_k_CUDA_R_64F), 0, 0, 1, 1}, {&__pyx_n_s_CUDA_R_64I, __pyx_k_CUDA_R_64I, sizeof(__pyx_k_CUDA_R_64I), 0, 0, 1, 1}, {&__pyx_n_s_CUDA_R_64U, __pyx_k_CUDA_R_64U, sizeof(__pyx_k_CUDA_R_64U), 0, 0, 1, 1}, {&__pyx_n_s_CUDA_R_8F_E4M3, __pyx_k_CUDA_R_8F_E4M3, sizeof(__pyx_k_CUDA_R_8F_E4M3), 0, 0, 1, 1}, {&__pyx_n_s_CUDA_R_8F_E5M2, __pyx_k_CUDA_R_8F_E5M2, sizeof(__pyx_k_CUDA_R_8F_E5M2), 0, 0, 1, 1}, {&__pyx_n_s_CUDA_R_8I, __pyx_k_CUDA_R_8I, sizeof(__pyx_k_CUDA_R_8I), 0, 0, 1, 1}, {&__pyx_n_s_CUDA_R_8U, __pyx_k_CUDA_R_8U, sizeof(__pyx_k_CUDA_R_8U), 0, 0, 1, 1}, {&__pyx_kp_s_CUDA_Surface_boundary_modes, __pyx_k_CUDA_Surface_boundary_modes, sizeof(__pyx_k_CUDA_Surface_boundary_modes), 0, 0, 1, 0}, {&__pyx_kp_s_CUDA_Surface_format_modes, __pyx_k_CUDA_Surface_format_modes, sizeof(__pyx_k_CUDA_Surface_format_modes), 0, 0, 1, 0}, {&__pyx_kp_s_CUDA_conditional_node_types, __pyx_k_CUDA_conditional_node_types, sizeof(__pyx_k_CUDA_conditional_node_types), 0, 0, 1, 0}, {&__pyx_kp_s_CUDA_cooperative_group_scope, __pyx_k_CUDA_cooperative_group_scope, sizeof(__pyx_k_CUDA_cooperative_group_scope), 0, 0, 1, 0}, {&__pyx_kp_s_CUDA_device_NUMA_config, __pyx_k_CUDA_device_NUMA_config, sizeof(__pyx_k_CUDA_device_NUMA_config), 0, 0, 1, 0}, {&__pyx_kp_s_CUDA_device_P2P_attributes, __pyx_k_CUDA_device_P2P_attributes, sizeof(__pyx_k_CUDA_device_P2P_attributes), 0, 0, 1, 0}, {&__pyx_kp_s_CUDA_device_attributes, __pyx_k_CUDA_device_attributes, sizeof(__pyx_k_CUDA_device_attributes), 0, 0, 1, 0}, {&__pyx_kp_s_CUDA_device_compute_modes, __pyx_k_CUDA_device_compute_modes, sizeof(__pyx_k_CUDA_device_compute_modes), 0, 0, 1, 0}, {&__pyx_kp_s_CUDA_devices_corresponding_to_t, __pyx_k_CUDA_devices_corresponding_to_t, sizeof(__pyx_k_CUDA_devices_corresponding_to_t), 0, 0, 1, 0}, {&__pyx_kp_s_CUDA_function_attributes_that_c, __pyx_k_CUDA_function_attributes_that_c, sizeof(__pyx_k_CUDA_function_attributes_that_c), 0, 0, 1, 0}, {&__pyx_kp_s_CUDA_function_cache_configurati, __pyx_k_CUDA_function_cache_configurati, sizeof(__pyx_k_CUDA_function_cache_configurati), 0, 0, 1, 0}, {&__pyx_kp_s_CUDA_graphics_interop_array_ind, __pyx_k_CUDA_graphics_interop_array_ind, sizeof(__pyx_k_CUDA_graphics_interop_array_ind), 0, 0, 1, 0}, {&__pyx_kp_s_CUDA_graphics_interop_map_flags, __pyx_k_CUDA_graphics_interop_map_flags, sizeof(__pyx_k_CUDA_graphics_interop_map_flags), 0, 0, 1, 0}, {&__pyx_kp_s_CUDA_graphics_interop_register, __pyx_k_CUDA_graphics_interop_register, sizeof(__pyx_k_CUDA_graphics_interop_register), 0, 0, 1, 0}, {&__pyx_kp_s_CUDA_memory_copy_types, __pyx_k_CUDA_memory_copy_types, sizeof(__pyx_k_CUDA_memory_copy_types), 0, 0, 1, 0}, {&__pyx_kp_s_CUDA_memory_pool_attributes, __pyx_k_CUDA_memory_pool_attributes, sizeof(__pyx_k_CUDA_memory_pool_attributes), 0, 0, 1, 0}, {&__pyx_kp_s_CUDA_memory_types, __pyx_k_CUDA_memory_types, sizeof(__pyx_k_CUDA_memory_types), 0, 0, 1, 0}, {&__pyx_kp_s_CUDA_range_attributes, __pyx_k_CUDA_range_attributes, sizeof(__pyx_k_CUDA_range_attributes), 0, 0, 1, 0}, {&__pyx_kp_s_CUDA_resource_types, __pyx_k_CUDA_resource_types, sizeof(__pyx_k_CUDA_resource_types), 0, 0, 1, 0}, {&__pyx_kp_s_CUDA_shared_memory_configuratio, __pyx_k_CUDA_shared_memory_configuratio, sizeof(__pyx_k_CUDA_shared_memory_configuratio), 0, 0, 1, 0}, {&__pyx_kp_s_CUDA_texture_address_modes, __pyx_k_CUDA_texture_address_modes, sizeof(__pyx_k_CUDA_texture_address_modes), 0, 0, 1, 0}, {&__pyx_kp_s_CUDA_texture_filter_modes, __pyx_k_CUDA_texture_filter_modes, sizeof(__pyx_k_CUDA_texture_filter_modes), 0, 0, 1, 0}, {&__pyx_kp_s_CUDA_texture_read_modes, __pyx_k_CUDA_texture_read_modes, sizeof(__pyx_k_CUDA_texture_read_modes), 0, 0, 1, 0}, {&__pyx_kp_s_CUDA_texture_resource_view_form, __pyx_k_CUDA_texture_resource_view_form, sizeof(__pyx_k_CUDA_texture_resource_view_form), 0, 0, 1, 0}, {&__pyx_n_s_CUuuid, __pyx_k_CUuuid, sizeof(__pyx_k_CUuuid), 0, 0, 1, 1}, {&__pyx_n_s_CUuuid_st, __pyx_k_CUuuid_st, sizeof(__pyx_k_CUuuid_st), 0, 0, 1, 1}, {&__pyx_n_s_CUuuid_st___reduce_cython, __pyx_k_CUuuid_st___reduce_cython, sizeof(__pyx_k_CUuuid_st___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_CUuuid_st___setstate_cython, __pyx_k_CUuuid_st___setstate_cython, sizeof(__pyx_k_CUuuid_st___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_CUuuid_st_getPtr, __pyx_k_CUuuid_st_getPtr, sizeof(__pyx_k_CUuuid_st_getPtr), 0, 0, 1, 1}, {&__pyx_kp_s_Channel_format_kind, __pyx_k_Channel_format_kind, sizeof(__pyx_k_Channel_format_kind), 0, 0, 1, 0}, {&__pyx_kp_s_Cluster_scheduling_policies_The, __pyx_k_Cluster_scheduling_policies_The, sizeof(__pyx_k_Cluster_scheduling_policies_The), 0, 0, 1, 0}, {&__pyx_kp_s_Defines_the_allocation_types_av, __pyx_k_Defines_the_allocation_types_av, sizeof(__pyx_k_Defines_the_allocation_types_av), 0, 0, 1, 0}, {&__pyx_kp_u_ECCEnabled, __pyx_k_ECCEnabled, sizeof(__pyx_k_ECCEnabled), 0, 1, 0, 0}, {&__pyx_n_s_ECCEnabled_2, __pyx_k_ECCEnabled_2, sizeof(__pyx_k_ECCEnabled_2), 0, 0, 1, 1}, {&__pyx_kp_u_ECCEnabled_ValueError, __pyx_k_ECCEnabled_ValueError, sizeof(__pyx_k_ECCEnabled_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_EGLImageKHR, __pyx_k_EGLImageKHR, sizeof(__pyx_k_EGLImageKHR), 0, 1, 0, 0}, {&__pyx_n_s_EGLImageKHR_2, __pyx_k_EGLImageKHR_2, sizeof(__pyx_k_EGLImageKHR_2), 0, 0, 1, 1}, {&__pyx_n_s_EGLImageKHR___reduce_cython, __pyx_k_EGLImageKHR___reduce_cython, sizeof(__pyx_k_EGLImageKHR___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_EGLImageKHR___setstate_cython, __pyx_k_EGLImageKHR___setstate_cython, sizeof(__pyx_k_EGLImageKHR___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_EGLImageKHR_getPtr, __pyx_k_EGLImageKHR_getPtr, sizeof(__pyx_k_EGLImageKHR_getPtr), 0, 0, 1, 1}, {&__pyx_kp_u_EGLStreamKHR, __pyx_k_EGLStreamKHR, sizeof(__pyx_k_EGLStreamKHR), 0, 1, 0, 0}, {&__pyx_n_s_EGLStreamKHR_2, __pyx_k_EGLStreamKHR_2, sizeof(__pyx_k_EGLStreamKHR_2), 0, 0, 1, 1}, {&__pyx_n_s_EGLStreamKHR___reduce_cython, __pyx_k_EGLStreamKHR___reduce_cython, sizeof(__pyx_k_EGLStreamKHR___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_EGLStreamKHR___setstate_cython, __pyx_k_EGLStreamKHR___setstate_cython, sizeof(__pyx_k_EGLStreamKHR___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_EGLStreamKHR_getPtr, __pyx_k_EGLStreamKHR_getPtr, sizeof(__pyx_k_EGLStreamKHR_getPtr), 0, 0, 1, 1}, {&__pyx_kp_u_EGLSyncKHR, __pyx_k_EGLSyncKHR, sizeof(__pyx_k_EGLSyncKHR), 0, 1, 0, 0}, {&__pyx_n_s_EGLSyncKHR_2, __pyx_k_EGLSyncKHR_2, sizeof(__pyx_k_EGLSyncKHR_2), 0, 0, 1, 1}, {&__pyx_n_s_EGLSyncKHR___reduce_cython, __pyx_k_EGLSyncKHR___reduce_cython, sizeof(__pyx_k_EGLSyncKHR___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_EGLSyncKHR___setstate_cython, __pyx_k_EGLSyncKHR___setstate_cython, sizeof(__pyx_k_EGLSyncKHR___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_EGLSyncKHR_getPtr, __pyx_k_EGLSyncKHR_getPtr, sizeof(__pyx_k_EGLSyncKHR_getPtr), 0, 0, 1, 1}, {&__pyx_kp_u_EGLint, __pyx_k_EGLint, sizeof(__pyx_k_EGLint), 0, 1, 0, 0}, {&__pyx_n_s_EGLint_2, __pyx_k_EGLint_2, sizeof(__pyx_k_EGLint_2), 0, 0, 1, 1}, {&__pyx_n_s_EGLint___reduce_cython, __pyx_k_EGLint___reduce_cython, sizeof(__pyx_k_EGLint___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_EGLint___setstate_cython, __pyx_k_EGLint___setstate_cython, sizeof(__pyx_k_EGLint___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_EGLint_getPtr, __pyx_k_EGLint_getPtr, sizeof(__pyx_k_EGLint_getPtr), 0, 0, 1, 1}, {&__pyx_kp_s_Enum_for_status_from_obtaining, __pyx_k_Enum_for_status_from_obtaining, sizeof(__pyx_k_Enum_for_status_from_obtaining), 0, 0, 1, 0}, {&__pyx_kp_s_External_memory_handle_types, __pyx_k_External_memory_handle_types, sizeof(__pyx_k_External_memory_handle_types), 0, 0, 1, 0}, {&__pyx_kp_s_External_semaphore_handle_types, __pyx_k_External_semaphore_handle_types, sizeof(__pyx_k_External_semaphore_handle_types), 0, 0, 1, 0}, {&__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_k_Failed_to_allocate_length_x_size, sizeof(__pyx_k_Failed_to_allocate_length_x_size), 0, 1, 0, 0}, {&__pyx_kp_s_Flags_for_instantiating_a_graph, __pyx_k_Flags_for_instantiating_a_graph, sizeof(__pyx_k_Flags_for_instantiating_a_graph), 0, 0, 1, 0}, {&__pyx_kp_s_Flags_for_py_obj_cudaStreamUpda, __pyx_k_Flags_for_py_obj_cudaStreamUpda, sizeof(__pyx_k_Flags_for_py_obj_cudaStreamUpda), 0, 0, 1, 0}, {&__pyx_kp_s_Flags_for_retaining_user_object, __pyx_k_Flags_for_retaining_user_object, sizeof(__pyx_k_Flags_for_retaining_user_object), 0, 0, 1, 0}, {&__pyx_kp_s_Flags_for_specifying_particular, __pyx_k_Flags_for_specifying_particular, sizeof(__pyx_k_Flags_for_specifying_particular), 0, 0, 1, 0}, {&__pyx_kp_s_Flags_for_user_objects_for_grap, __pyx_k_Flags_for_user_objects_for_grap, sizeof(__pyx_k_Flags_for_user_objects_for_grap), 0, 0, 1, 0}, {&__pyx_kp_s_Flags_to_specify_search_options, __pyx_k_Flags_to_specify_search_options, sizeof(__pyx_k_Flags_to_specify_search_options), 0, 0, 1, 0}, {&__pyx_kp_u_GLenum, __pyx_k_GLenum, sizeof(__pyx_k_GLenum), 0, 1, 0, 0}, {&__pyx_n_s_GLenum_2, __pyx_k_GLenum_2, sizeof(__pyx_k_GLenum_2), 0, 0, 1, 1}, {&__pyx_n_s_GLenum___reduce_cython, __pyx_k_GLenum___reduce_cython, sizeof(__pyx_k_GLenum___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_GLenum___setstate_cython, __pyx_k_GLenum___setstate_cython, sizeof(__pyx_k_GLenum___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_GLenum_getPtr, __pyx_k_GLenum_getPtr, sizeof(__pyx_k_GLenum_getPtr), 0, 0, 1, 1}, {&__pyx_kp_u_GLuint, __pyx_k_GLuint, sizeof(__pyx_k_GLuint), 0, 1, 0, 0}, {&__pyx_n_s_GLuint_2, __pyx_k_GLuint_2, sizeof(__pyx_k_GLuint_2), 0, 0, 1, 1}, {&__pyx_n_s_GLuint___reduce_cython, __pyx_k_GLuint___reduce_cython, sizeof(__pyx_k_GLuint___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_GLuint___setstate_cython, __pyx_k_GLuint___setstate_cython, sizeof(__pyx_k_GLuint___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_GLuint_getPtr, __pyx_k_GLuint_getPtr, sizeof(__pyx_k_GLuint_getPtr), 0, 0, 1, 1}, {&__pyx_kp_s_Graph_instantiation_results, __pyx_k_Graph_instantiation_results, sizeof(__pyx_k_Graph_instantiation_results), 0, 0, 1, 0}, {&__pyx_kp_s_Graph_memory_attributes, __pyx_k_Graph_memory_attributes, sizeof(__pyx_k_Graph_memory_attributes), 0, 0, 1, 0}, {&__pyx_n_s_IndexError, __pyx_k_IndexError, sizeof(__pyx_k_IndexError), 0, 0, 1, 1}, {&__pyx_n_s_IntEnum, __pyx_k_IntEnum, sizeof(__pyx_k_IntEnum), 0, 0, 1, 1}, {&__pyx_kp_s_Launch_attributes_enum_used_as, __pyx_k_Launch_attributes_enum_used_as, sizeof(__pyx_k_Launch_attributes_enum_used_as), 0, 0, 1, 0}, {&__pyx_n_s_List, __pyx_k_List, sizeof(__pyx_k_List), 0, 0, 1, 1}, {&__pyx_kp_u_List_is_too_small, __pyx_k_List_is_too_small, sizeof(__pyx_k_List_is_too_small), 0, 1, 0, 0}, {&__pyx_n_s_MAJOR_VERSION, __pyx_k_MAJOR_VERSION, sizeof(__pyx_k_MAJOR_VERSION), 0, 0, 1, 1}, {&__pyx_n_s_MINOR_VERSION, __pyx_k_MINOR_VERSION, sizeof(__pyx_k_MINOR_VERSION), 0, 0, 1, 1}, {&__pyx_n_s_MemoryError, __pyx_k_MemoryError, sizeof(__pyx_k_MemoryError), 0, 0, 1, 1}, {&__pyx_kp_s_Memory_Synchronization_Domain_A, __pyx_k_Memory_Synchronization_Domain_A, sizeof(__pyx_k_Memory_Synchronization_Domain_A), 0, 0, 1, 0}, {&__pyx_n_s_Optional, __pyx_k_Optional, sizeof(__pyx_k_Optional), 0, 0, 1, 1}, {&__pyx_kp_s_Optional_Tuple_cudaExternalSemap, __pyx_k_Optional_Tuple_cudaExternalSemap, sizeof(__pyx_k_Optional_Tuple_cudaExternalSemap), 0, 0, 1, 0}, {&__pyx_kp_s_Optional_Tuple_cudaExternalSemap_2, __pyx_k_Optional_Tuple_cudaExternalSemap_2, sizeof(__pyx_k_Optional_Tuple_cudaExternalSemap_2), 0, 0, 1, 0}, {&__pyx_kp_s_Optional_Tuple_cudaExternalSemap_3, __pyx_k_Optional_Tuple_cudaExternalSemap_3, sizeof(__pyx_k_Optional_Tuple_cudaExternalSemap_3), 0, 0, 1, 0}, {&__pyx_kp_s_Optional_Tuple_cudaGraphEdgeData, __pyx_k_Optional_Tuple_cudaGraphEdgeData, sizeof(__pyx_k_Optional_Tuple_cudaGraphEdgeData), 0, 0, 1, 0}, {&__pyx_kp_s_Optional_Tuple_cudaGraphNode_t_L, __pyx_k_Optional_Tuple_cudaGraphNode_t_L, sizeof(__pyx_k_Optional_Tuple_cudaGraphNode_t_L), 0, 0, 1, 0}, {&__pyx_kp_s_Optional_Tuple_cudaMemAccessDesc, __pyx_k_Optional_Tuple_cudaMemAccessDesc, sizeof(__pyx_k_Optional_Tuple_cudaMemAccessDesc), 0, 0, 1, 0}, {&__pyx_kp_s_Optional_Tuple_cudaMemRangeAttri, __pyx_k_Optional_Tuple_cudaMemRangeAttri, sizeof(__pyx_k_Optional_Tuple_cudaMemRangeAttri), 0, 0, 1, 0}, {&__pyx_kp_s_Optional_cudaChannelFormatDesc, __pyx_k_Optional_cudaChannelFormatDesc, sizeof(__pyx_k_Optional_cudaChannelFormatDesc), 0, 0, 1, 0}, {&__pyx_kp_s_Optional_cudaDeviceProp, __pyx_k_Optional_cudaDeviceProp, sizeof(__pyx_k_Optional_cudaDeviceProp), 0, 0, 1, 0}, {&__pyx_kp_s_Optional_cudaEglFrame, __pyx_k_Optional_cudaEglFrame, sizeof(__pyx_k_Optional_cudaEglFrame), 0, 0, 1, 0}, {&__pyx_kp_s_Optional_cudaExternalMemoryBuffe, __pyx_k_Optional_cudaExternalMemoryBuffe, sizeof(__pyx_k_Optional_cudaExternalMemoryBuffe), 0, 0, 1, 0}, {&__pyx_kp_s_Optional_cudaExternalMemoryHandl, __pyx_k_Optional_cudaExternalMemoryHandl, sizeof(__pyx_k_Optional_cudaExternalMemoryHandl), 0, 0, 1, 0}, {&__pyx_kp_s_Optional_cudaExternalMemoryMipma, __pyx_k_Optional_cudaExternalMemoryMipma, sizeof(__pyx_k_Optional_cudaExternalMemoryMipma), 0, 0, 1, 0}, {&__pyx_kp_s_Optional_cudaExternalSemaphoreHa, __pyx_k_Optional_cudaExternalSemaphoreHa, sizeof(__pyx_k_Optional_cudaExternalSemaphoreHa), 0, 0, 1, 0}, {&__pyx_kp_s_Optional_cudaExternalSemaphoreSi, __pyx_k_Optional_cudaExternalSemaphoreSi, sizeof(__pyx_k_Optional_cudaExternalSemaphoreSi), 0, 0, 1, 0}, {&__pyx_kp_s_Optional_cudaExternalSemaphoreWa, __pyx_k_Optional_cudaExternalSemaphoreWa, sizeof(__pyx_k_Optional_cudaExternalSemaphoreWa), 0, 0, 1, 0}, {&__pyx_kp_s_Optional_cudaGraphInstantiatePar, __pyx_k_Optional_cudaGraphInstantiatePar, sizeof(__pyx_k_Optional_cudaGraphInstantiatePar), 0, 0, 1, 0}, {&__pyx_kp_s_Optional_cudaGraphNodeParams, __pyx_k_Optional_cudaGraphNodeParams, sizeof(__pyx_k_Optional_cudaGraphNodeParams), 0, 0, 1, 0}, {&__pyx_kp_s_Optional_cudaHostNodeParams, __pyx_k_Optional_cudaHostNodeParams, sizeof(__pyx_k_Optional_cudaHostNodeParams), 0, 0, 1, 0}, {&__pyx_kp_s_Optional_cudaKernelNodeAttrValue, __pyx_k_Optional_cudaKernelNodeAttrValue, sizeof(__pyx_k_Optional_cudaKernelNodeAttrValue), 0, 0, 1, 0}, {&__pyx_kp_s_Optional_cudaKernelNodeParams, __pyx_k_Optional_cudaKernelNodeParams, sizeof(__pyx_k_Optional_cudaKernelNodeParams), 0, 0, 1, 0}, {&__pyx_kp_s_Optional_cudaMemAllocNodeParams, __pyx_k_Optional_cudaMemAllocNodeParams, sizeof(__pyx_k_Optional_cudaMemAllocNodeParams), 0, 0, 1, 0}, {&__pyx_kp_s_Optional_cudaMemLocation, __pyx_k_Optional_cudaMemLocation, sizeof(__pyx_k_Optional_cudaMemLocation), 0, 0, 1, 0}, {&__pyx_kp_s_Optional_cudaMemPoolProps, __pyx_k_Optional_cudaMemPoolProps, sizeof(__pyx_k_Optional_cudaMemPoolProps), 0, 0, 1, 0}, {&__pyx_kp_s_Optional_cudaMemPoolPtrExportDat, __pyx_k_Optional_cudaMemPoolPtrExportDat, sizeof(__pyx_k_Optional_cudaMemPoolPtrExportDat), 0, 0, 1, 0}, {&__pyx_kp_s_Optional_cudaMemcpy3DParms, __pyx_k_Optional_cudaMemcpy3DParms, sizeof(__pyx_k_Optional_cudaMemcpy3DParms), 0, 0, 1, 0}, {&__pyx_kp_s_Optional_cudaMemcpy3DPeerParms, __pyx_k_Optional_cudaMemcpy3DPeerParms, sizeof(__pyx_k_Optional_cudaMemcpy3DPeerParms), 0, 0, 1, 0}, {&__pyx_kp_s_Optional_cudaMemsetParams, __pyx_k_Optional_cudaMemsetParams, sizeof(__pyx_k_Optional_cudaMemsetParams), 0, 0, 1, 0}, {&__pyx_kp_s_Optional_cudaResourceDesc, __pyx_k_Optional_cudaResourceDesc, sizeof(__pyx_k_Optional_cudaResourceDesc), 0, 0, 1, 0}, {&__pyx_kp_s_Optional_cudaResourceViewDesc, __pyx_k_Optional_cudaResourceViewDesc, sizeof(__pyx_k_Optional_cudaResourceViewDesc), 0, 0, 1, 0}, {&__pyx_kp_s_Optional_cudaStreamAttrValue, __pyx_k_Optional_cudaStreamAttrValue, sizeof(__pyx_k_Optional_cudaStreamAttrValue), 0, 0, 1, 0}, {&__pyx_kp_s_Optional_cudaTextureDesc, __pyx_k_Optional_cudaTextureDesc, sizeof(__pyx_k_Optional_cudaTextureDesc), 0, 0, 1, 0}, {&__pyx_kp_s_Optional_cudaUUID_t, __pyx_k_Optional_cudaUUID_t, sizeof(__pyx_k_Optional_cudaUUID_t), 0, 0, 1, 0}, {&__pyx_n_s_OverflowError, __pyx_k_OverflowError, sizeof(__pyx_k_OverflowError), 0, 0, 1, 1}, {&__pyx_n_s_PATCH_LEVEL, __pyx_k_PATCH_LEVEL, sizeof(__pyx_k_PATCH_LEVEL), 0, 0, 1, 1}, {&__pyx_kp_s_Possible_modes_for_stream_captu, __pyx_k_Possible_modes_for_stream_captu, sizeof(__pyx_k_Possible_modes_for_stream_captu), 0, 0, 1, 0}, {&__pyx_kp_s_Possible_stream_capture_statuse, __pyx_k_Possible_stream_capture_statuse, sizeof(__pyx_k_Possible_stream_capture_statuse), 0, 0, 1, 0}, {&__pyx_kp_s_Resource_location_flags_sysmem, __pyx_k_Resource_location_flags_sysmem, sizeof(__pyx_k_Resource_location_flags_sysmem), 0, 0, 1, 0}, {&__pyx_n_s_RuntimeError, __pyx_k_RuntimeError, sizeof(__pyx_k_RuntimeError), 0, 0, 1, 1}, {&__pyx_kp_u_Set_device_to_be_used_for_GPU_e, __pyx_k_Set_device_to_be_used_for_GPU_e, sizeof(__pyx_k_Set_device_to_be_used_for_GPU_e), 0, 1, 0, 0}, {&__pyx_kp_s_Shared_memory_carveout_configur, __pyx_k_Shared_memory_carveout_configur, sizeof(__pyx_k_Shared_memory_carveout_configur), 0, 0, 1, 0}, {&__pyx_kp_s_Specifies_performance_hint_with, __pyx_k_Specifies_performance_hint_with, sizeof(__pyx_k_Specifies_performance_hint_with), 0, 0, 1, 0}, {&__pyx_kp_s_Specifies_the_field_to_update_w, __pyx_k_Specifies_the_field_to_update_w, sizeof(__pyx_k_Specifies_the_field_to_update_w), 0, 0, 1, 0}, {&__pyx_kp_s_Specifies_the_memory_protection, __pyx_k_Specifies_the_memory_protection, sizeof(__pyx_k_Specifies_the_memory_protection), 0, 0, 1, 0}, {&__pyx_kp_s_Specifies_the_type_of_location, __pyx_k_Specifies_the_type_of_location, sizeof(__pyx_k_Specifies_the_type_of_location), 0, 0, 1, 0}, {&__pyx_n_s_Tuple, __pyx_k_Tuple, sizeof(__pyx_k_Tuple), 0, 0, 1, 1}, {&__pyx_kp_s_Tuple_int_List_int, __pyx_k_Tuple_int_List_int, sizeof(__pyx_k_Tuple_int_List_int), 0, 0, 1, 0}, {&__pyx_n_s_TypeError, __pyx_k_TypeError, sizeof(__pyx_k_TypeError), 0, 0, 1, 1}, {&__pyx_kp_s_Type_annotations_that_can_be_ap, __pyx_k_Type_annotations_that_can_be_ap, sizeof(__pyx_k_Type_annotations_that_can_be_ap), 0, 0, 1, 0}, {&__pyx_kp_s_Types_of_async_notification_tha, __pyx_k_Types_of_async_notification_tha, sizeof(__pyx_k_Types_of_async_notification_tha), 0, 0, 1, 0}, {&__pyx_kp_u_Unknown_type, __pyx_k_Unknown_type, sizeof(__pyx_k_Unknown_type), 0, 1, 0, 0}, {&__pyx_n_s_ValueError, __pyx_k_ValueError, sizeof(__pyx_k_ValueError), 0, 0, 1, 1}, {&__pyx_kp_u_VdpDevice, __pyx_k_VdpDevice, sizeof(__pyx_k_VdpDevice), 0, 1, 0, 0}, {&__pyx_n_s_VdpDevice_2, __pyx_k_VdpDevice_2, sizeof(__pyx_k_VdpDevice_2), 0, 0, 1, 1}, {&__pyx_n_s_VdpDevice___reduce_cython, __pyx_k_VdpDevice___reduce_cython, sizeof(__pyx_k_VdpDevice___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_VdpDevice___setstate_cython, __pyx_k_VdpDevice___setstate_cython, sizeof(__pyx_k_VdpDevice___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_VdpDevice_getPtr, __pyx_k_VdpDevice_getPtr, sizeof(__pyx_k_VdpDevice_getPtr), 0, 0, 1, 1}, {&__pyx_kp_u_VdpGetProcAddress, __pyx_k_VdpGetProcAddress, sizeof(__pyx_k_VdpGetProcAddress), 0, 1, 0, 0}, {&__pyx_n_s_VdpGetProcAddress_2, __pyx_k_VdpGetProcAddress_2, sizeof(__pyx_k_VdpGetProcAddress_2), 0, 0, 1, 1}, {&__pyx_n_s_VdpGetProcAddress___reduce_cytho, __pyx_k_VdpGetProcAddress___reduce_cytho, sizeof(__pyx_k_VdpGetProcAddress___reduce_cytho), 0, 0, 1, 1}, {&__pyx_n_s_VdpGetProcAddress___setstate_cyt, __pyx_k_VdpGetProcAddress___setstate_cyt, sizeof(__pyx_k_VdpGetProcAddress___setstate_cyt), 0, 0, 1, 1}, {&__pyx_n_s_VdpGetProcAddress_getPtr, __pyx_k_VdpGetProcAddress_getPtr, sizeof(__pyx_k_VdpGetProcAddress_getPtr), 0, 0, 1, 1}, {&__pyx_kp_u_VdpOutputSurface, __pyx_k_VdpOutputSurface, sizeof(__pyx_k_VdpOutputSurface), 0, 1, 0, 0}, {&__pyx_n_s_VdpOutputSurface_2, __pyx_k_VdpOutputSurface_2, sizeof(__pyx_k_VdpOutputSurface_2), 0, 0, 1, 1}, {&__pyx_n_s_VdpOutputSurface___reduce_cython, __pyx_k_VdpOutputSurface___reduce_cython, sizeof(__pyx_k_VdpOutputSurface___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_VdpOutputSurface___setstate_cyth, __pyx_k_VdpOutputSurface___setstate_cyth, sizeof(__pyx_k_VdpOutputSurface___setstate_cyth), 0, 0, 1, 1}, {&__pyx_n_s_VdpOutputSurface_getPtr, __pyx_k_VdpOutputSurface_getPtr, sizeof(__pyx_k_VdpOutputSurface_getPtr), 0, 0, 1, 1}, {&__pyx_kp_u_VdpVideoSurface, __pyx_k_VdpVideoSurface, sizeof(__pyx_k_VdpVideoSurface), 0, 1, 0, 0}, {&__pyx_n_s_VdpVideoSurface_2, __pyx_k_VdpVideoSurface_2, sizeof(__pyx_k_VdpVideoSurface_2), 0, 0, 1, 1}, {&__pyx_n_s_VdpVideoSurface___reduce_cython, __pyx_k_VdpVideoSurface___reduce_cython, sizeof(__pyx_k_VdpVideoSurface___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_VdpVideoSurface___setstate_cytho, __pyx_k_VdpVideoSurface___setstate_cytho, sizeof(__pyx_k_VdpVideoSurface___setstate_cytho), 0, 0, 1, 1}, {&__pyx_n_s_VdpVideoSurface_getPtr, __pyx_k_VdpVideoSurface_getPtr, sizeof(__pyx_k_VdpVideoSurface_getPtr), 0, 0, 1, 1}, {&__pyx_kp_b__351, __pyx_k__351, sizeof(__pyx_k__351), 0, 0, 0, 0}, {&__pyx_kp_u__400, __pyx_k__400, sizeof(__pyx_k__400), 0, 1, 0, 0}, {&__pyx_kp_u__51, __pyx_k__51, sizeof(__pyx_k__51), 0, 1, 0, 0}, {&__pyx_kp_u__52, __pyx_k__52, sizeof(__pyx_k__52), 0, 1, 0, 0}, {&__pyx_kp_u__62, __pyx_k__62, sizeof(__pyx_k__62), 0, 1, 0, 0}, {&__pyx_kp_u__654, __pyx_k__654, sizeof(__pyx_k__654), 0, 1, 0, 0}, {&__pyx_n_s__655, __pyx_k__655, sizeof(__pyx_k__655), 0, 0, 1, 1}, {&__pyx_kp_s__657, __pyx_k__657, sizeof(__pyx_k__657), 0, 0, 1, 0}, {&__pyx_n_s__910, __pyx_k__910, sizeof(__pyx_k__910), 0, 0, 1, 1}, {&__pyx_kp_u_accessDescCount, __pyx_k_accessDescCount, sizeof(__pyx_k_accessDescCount), 0, 1, 0, 0}, {&__pyx_n_s_accessDescCount_2, __pyx_k_accessDescCount_2, sizeof(__pyx_k_accessDescCount_2), 0, 0, 1, 1}, {&__pyx_kp_u_accessDescCount_ValueError, __pyx_k_accessDescCount_ValueError, sizeof(__pyx_k_accessDescCount_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_accessDescs, __pyx_k_accessDescs, sizeof(__pyx_k_accessDescs), 0, 1, 0, 0}, {&__pyx_n_s_accessDescs_2, __pyx_k_accessDescs_2, sizeof(__pyx_k_accessDescs_2), 0, 0, 1, 1}, {&__pyx_kp_u_accessDescs_ValueError, __pyx_k_accessDescs_ValueError, sizeof(__pyx_k_accessDescs_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_accessPolicyMaxWindowSize, __pyx_k_accessPolicyMaxWindowSize, sizeof(__pyx_k_accessPolicyMaxWindowSize), 0, 1, 0, 0}, {&__pyx_n_s_accessPolicyMaxWindowSize_2, __pyx_k_accessPolicyMaxWindowSize_2, sizeof(__pyx_k_accessPolicyMaxWindowSize_2), 0, 0, 1, 1}, {&__pyx_kp_u_accessPolicyMaxWindowSize_ValueE, __pyx_k_accessPolicyMaxWindowSize_ValueE, sizeof(__pyx_k_accessPolicyMaxWindowSize_ValueE), 0, 1, 0, 0}, {&__pyx_kp_u_accessPolicyWindow, __pyx_k_accessPolicyWindow, sizeof(__pyx_k_accessPolicyWindow), 0, 1, 0, 0}, {&__pyx_n_s_accessPolicyWindow_2, __pyx_k_accessPolicyWindow_2, sizeof(__pyx_k_accessPolicyWindow_2), 0, 0, 1, 1}, {&__pyx_kp_u_accessPolicyWindow_ValueError, __pyx_k_accessPolicyWindow_ValueError, sizeof(__pyx_k_accessPolicyWindow_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_addressMode, __pyx_k_addressMode, sizeof(__pyx_k_addressMode), 0, 1, 0, 0}, {&__pyx_n_s_addressMode_2, __pyx_k_addressMode_2, sizeof(__pyx_k_addressMode_2), 0, 0, 1, 1}, {&__pyx_kp_u_addressMode_ValueError, __pyx_k_addressMode_ValueError, sizeof(__pyx_k_addressMode_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_advice, __pyx_k_advice, sizeof(__pyx_k_advice), 0, 0, 1, 1}, {&__pyx_kp_u_alignment, __pyx_k_alignment, sizeof(__pyx_k_alignment), 0, 1, 0, 0}, {&__pyx_n_s_alignment_2, __pyx_k_alignment_2, sizeof(__pyx_k_alignment_2), 0, 0, 1, 1}, {&__pyx_kp_u_alignment_ValueError, __pyx_k_alignment_ValueError, sizeof(__pyx_k_alignment_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_alloc, __pyx_k_alloc, sizeof(__pyx_k_alloc), 0, 1, 0, 0}, {&__pyx_kp_u_allocType, __pyx_k_allocType, sizeof(__pyx_k_allocType), 0, 1, 0, 0}, {&__pyx_n_s_allocType_2, __pyx_k_allocType_2, sizeof(__pyx_k_allocType_2), 0, 0, 1, 1}, {&__pyx_kp_u_allocType_ValueError, __pyx_k_allocType_ValueError, sizeof(__pyx_k_allocType_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_alloc_2, __pyx_k_alloc_2, sizeof(__pyx_k_alloc_2), 0, 0, 1, 1}, {&__pyx_kp_u_alloc_ValueError, __pyx_k_alloc_ValueError, sizeof(__pyx_k_alloc_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_anon_struct0, __pyx_k_anon_struct0, sizeof(__pyx_k_anon_struct0), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct0___reduce_cython, __pyx_k_anon_struct0___reduce_cython, sizeof(__pyx_k_anon_struct0___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct0___setstate_cython, __pyx_k_anon_struct0___setstate_cython, sizeof(__pyx_k_anon_struct0___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct0_getPtr, __pyx_k_anon_struct0_getPtr, sizeof(__pyx_k_anon_struct0_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct1, __pyx_k_anon_struct1, sizeof(__pyx_k_anon_struct1), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct13, __pyx_k_anon_struct13, sizeof(__pyx_k_anon_struct13), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct13___reduce_cython, __pyx_k_anon_struct13___reduce_cython, sizeof(__pyx_k_anon_struct13___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct13___setstate_cython, __pyx_k_anon_struct13___setstate_cython, sizeof(__pyx_k_anon_struct13___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct13_getPtr, __pyx_k_anon_struct13_getPtr, sizeof(__pyx_k_anon_struct13_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct14, __pyx_k_anon_struct14, sizeof(__pyx_k_anon_struct14), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct14___reduce_cython, __pyx_k_anon_struct14___reduce_cython, sizeof(__pyx_k_anon_struct14___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct14___setstate_cython, __pyx_k_anon_struct14___setstate_cython, sizeof(__pyx_k_anon_struct14___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct14_getPtr, __pyx_k_anon_struct14_getPtr, sizeof(__pyx_k_anon_struct14_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct15, __pyx_k_anon_struct15, sizeof(__pyx_k_anon_struct15), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct15___reduce_cython, __pyx_k_anon_struct15___reduce_cython, sizeof(__pyx_k_anon_struct15___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct15___setstate_cython, __pyx_k_anon_struct15___setstate_cython, sizeof(__pyx_k_anon_struct15___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct15_getPtr, __pyx_k_anon_struct15_getPtr, sizeof(__pyx_k_anon_struct15_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct16, __pyx_k_anon_struct16, sizeof(__pyx_k_anon_struct16), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct16___reduce_cython, __pyx_k_anon_struct16___reduce_cython, sizeof(__pyx_k_anon_struct16___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct16___setstate_cython, __pyx_k_anon_struct16___setstate_cython, sizeof(__pyx_k_anon_struct16___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct16_getPtr, __pyx_k_anon_struct16_getPtr, sizeof(__pyx_k_anon_struct16_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct17, __pyx_k_anon_struct17, sizeof(__pyx_k_anon_struct17), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct17___reduce_cython, __pyx_k_anon_struct17___reduce_cython, sizeof(__pyx_k_anon_struct17___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct17___setstate_cython, __pyx_k_anon_struct17___setstate_cython, sizeof(__pyx_k_anon_struct17___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct17_getPtr, __pyx_k_anon_struct17_getPtr, sizeof(__pyx_k_anon_struct17_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct18, __pyx_k_anon_struct18, sizeof(__pyx_k_anon_struct18), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct18___reduce_cython, __pyx_k_anon_struct18___reduce_cython, sizeof(__pyx_k_anon_struct18___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct18___setstate_cython, __pyx_k_anon_struct18___setstate_cython, sizeof(__pyx_k_anon_struct18___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct18_getPtr, __pyx_k_anon_struct18_getPtr, sizeof(__pyx_k_anon_struct18_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct19, __pyx_k_anon_struct19, sizeof(__pyx_k_anon_struct19), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct19___reduce_cython, __pyx_k_anon_struct19___reduce_cython, sizeof(__pyx_k_anon_struct19___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct19___setstate_cython, __pyx_k_anon_struct19___setstate_cython, sizeof(__pyx_k_anon_struct19___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct19_getPtr, __pyx_k_anon_struct19_getPtr, sizeof(__pyx_k_anon_struct19_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct1___reduce_cython, __pyx_k_anon_struct1___reduce_cython, sizeof(__pyx_k_anon_struct1___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct1___setstate_cython, __pyx_k_anon_struct1___setstate_cython, sizeof(__pyx_k_anon_struct1___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct1_getPtr, __pyx_k_anon_struct1_getPtr, sizeof(__pyx_k_anon_struct1_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct2, __pyx_k_anon_struct2, sizeof(__pyx_k_anon_struct2), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct20, __pyx_k_anon_struct20, sizeof(__pyx_k_anon_struct20), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct20___reduce_cython, __pyx_k_anon_struct20___reduce_cython, sizeof(__pyx_k_anon_struct20___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct20___setstate_cython, __pyx_k_anon_struct20___setstate_cython, sizeof(__pyx_k_anon_struct20___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct20_getPtr, __pyx_k_anon_struct20_getPtr, sizeof(__pyx_k_anon_struct20_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct21, __pyx_k_anon_struct21, sizeof(__pyx_k_anon_struct21), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct21___reduce_cython, __pyx_k_anon_struct21___reduce_cython, sizeof(__pyx_k_anon_struct21___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct21___setstate_cython, __pyx_k_anon_struct21___setstate_cython, sizeof(__pyx_k_anon_struct21___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct21_getPtr, __pyx_k_anon_struct21_getPtr, sizeof(__pyx_k_anon_struct21_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct22, __pyx_k_anon_struct22, sizeof(__pyx_k_anon_struct22), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct22___reduce_cython, __pyx_k_anon_struct22___reduce_cython, sizeof(__pyx_k_anon_struct22___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct22___setstate_cython, __pyx_k_anon_struct22___setstate_cython, sizeof(__pyx_k_anon_struct22___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct22_getPtr, __pyx_k_anon_struct22_getPtr, sizeof(__pyx_k_anon_struct22_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct23, __pyx_k_anon_struct23, sizeof(__pyx_k_anon_struct23), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct23___reduce_cython, __pyx_k_anon_struct23___reduce_cython, sizeof(__pyx_k_anon_struct23___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct23___setstate_cython, __pyx_k_anon_struct23___setstate_cython, sizeof(__pyx_k_anon_struct23___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct23_getPtr, __pyx_k_anon_struct23_getPtr, sizeof(__pyx_k_anon_struct23_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct24, __pyx_k_anon_struct24, sizeof(__pyx_k_anon_struct24), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct24___reduce_cython, __pyx_k_anon_struct24___reduce_cython, sizeof(__pyx_k_anon_struct24___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct24___setstate_cython, __pyx_k_anon_struct24___setstate_cython, sizeof(__pyx_k_anon_struct24___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct24_getPtr, __pyx_k_anon_struct24_getPtr, sizeof(__pyx_k_anon_struct24_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct2___reduce_cython, __pyx_k_anon_struct2___reduce_cython, sizeof(__pyx_k_anon_struct2___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct2___setstate_cython, __pyx_k_anon_struct2___setstate_cython, sizeof(__pyx_k_anon_struct2___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct2_getPtr, __pyx_k_anon_struct2_getPtr, sizeof(__pyx_k_anon_struct2_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct3, __pyx_k_anon_struct3, sizeof(__pyx_k_anon_struct3), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct3___reduce_cython, __pyx_k_anon_struct3___reduce_cython, sizeof(__pyx_k_anon_struct3___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct3___setstate_cython, __pyx_k_anon_struct3___setstate_cython, sizeof(__pyx_k_anon_struct3___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct3_getPtr, __pyx_k_anon_struct3_getPtr, sizeof(__pyx_k_anon_struct3_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct4, __pyx_k_anon_struct4, sizeof(__pyx_k_anon_struct4), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct4___reduce_cython, __pyx_k_anon_struct4___reduce_cython, sizeof(__pyx_k_anon_struct4___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct4___setstate_cython, __pyx_k_anon_struct4___setstate_cython, sizeof(__pyx_k_anon_struct4___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct4_getPtr, __pyx_k_anon_struct4_getPtr, sizeof(__pyx_k_anon_struct4_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct5, __pyx_k_anon_struct5, sizeof(__pyx_k_anon_struct5), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct5___reduce_cython, __pyx_k_anon_struct5___reduce_cython, sizeof(__pyx_k_anon_struct5___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct5___setstate_cython, __pyx_k_anon_struct5___setstate_cython, sizeof(__pyx_k_anon_struct5___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct5_getPtr, __pyx_k_anon_struct5_getPtr, sizeof(__pyx_k_anon_struct5_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct6, __pyx_k_anon_struct6, sizeof(__pyx_k_anon_struct6), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct6___reduce_cython, __pyx_k_anon_struct6___reduce_cython, sizeof(__pyx_k_anon_struct6___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct6___setstate_cython, __pyx_k_anon_struct6___setstate_cython, sizeof(__pyx_k_anon_struct6___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_struct6_getPtr, __pyx_k_anon_struct6_getPtr, sizeof(__pyx_k_anon_struct6_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_anon_union0, __pyx_k_anon_union0, sizeof(__pyx_k_anon_union0), 0, 0, 1, 1}, {&__pyx_n_s_anon_union0___reduce_cython, __pyx_k_anon_union0___reduce_cython, sizeof(__pyx_k_anon_union0___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_union0___setstate_cython, __pyx_k_anon_union0___setstate_cython, sizeof(__pyx_k_anon_union0___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_union0_getPtr, __pyx_k_anon_union0_getPtr, sizeof(__pyx_k_anon_union0_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_anon_union1, __pyx_k_anon_union1, sizeof(__pyx_k_anon_union1), 0, 0, 1, 1}, {&__pyx_n_s_anon_union10, __pyx_k_anon_union10, sizeof(__pyx_k_anon_union10), 0, 0, 1, 1}, {&__pyx_n_s_anon_union10___reduce_cython, __pyx_k_anon_union10___reduce_cython, sizeof(__pyx_k_anon_union10___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_union10___setstate_cython, __pyx_k_anon_union10___setstate_cython, sizeof(__pyx_k_anon_union10___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_union10_getPtr, __pyx_k_anon_union10_getPtr, sizeof(__pyx_k_anon_union10_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_anon_union1___reduce_cython, __pyx_k_anon_union1___reduce_cython, sizeof(__pyx_k_anon_union1___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_union1___setstate_cython, __pyx_k_anon_union1___setstate_cython, sizeof(__pyx_k_anon_union1___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_union1_getPtr, __pyx_k_anon_union1_getPtr, sizeof(__pyx_k_anon_union1_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_anon_union2, __pyx_k_anon_union2, sizeof(__pyx_k_anon_union2), 0, 0, 1, 1}, {&__pyx_n_s_anon_union2___reduce_cython, __pyx_k_anon_union2___reduce_cython, sizeof(__pyx_k_anon_union2___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_union2___setstate_cython, __pyx_k_anon_union2___setstate_cython, sizeof(__pyx_k_anon_union2___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_union2_getPtr, __pyx_k_anon_union2_getPtr, sizeof(__pyx_k_anon_union2_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_anon_union5, __pyx_k_anon_union5, sizeof(__pyx_k_anon_union5), 0, 0, 1, 1}, {&__pyx_n_s_anon_union5___reduce_cython, __pyx_k_anon_union5___reduce_cython, sizeof(__pyx_k_anon_union5___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_union5___setstate_cython, __pyx_k_anon_union5___setstate_cython, sizeof(__pyx_k_anon_union5___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_union5_getPtr, __pyx_k_anon_union5_getPtr, sizeof(__pyx_k_anon_union5_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_anon_union6, __pyx_k_anon_union6, sizeof(__pyx_k_anon_union6), 0, 0, 1, 1}, {&__pyx_n_s_anon_union6___reduce_cython, __pyx_k_anon_union6___reduce_cython, sizeof(__pyx_k_anon_union6___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_union6___setstate_cython, __pyx_k_anon_union6___setstate_cython, sizeof(__pyx_k_anon_union6___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_union6_getPtr, __pyx_k_anon_union6_getPtr, sizeof(__pyx_k_anon_union6_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_anon_union8, __pyx_k_anon_union8, sizeof(__pyx_k_anon_union8), 0, 0, 1, 1}, {&__pyx_n_s_anon_union8___reduce_cython, __pyx_k_anon_union8___reduce_cython, sizeof(__pyx_k_anon_union8___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_union8___setstate_cython, __pyx_k_anon_union8___setstate_cython, sizeof(__pyx_k_anon_union8___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_union8_getPtr, __pyx_k_anon_union8_getPtr, sizeof(__pyx_k_anon_union8_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_anon_union9, __pyx_k_anon_union9, sizeof(__pyx_k_anon_union9), 0, 0, 1, 1}, {&__pyx_n_s_anon_union9___reduce_cython, __pyx_k_anon_union9___reduce_cython, sizeof(__pyx_k_anon_union9___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_union9___setstate_cython, __pyx_k_anon_union9___setstate_cython, sizeof(__pyx_k_anon_union9___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_anon_union9_getPtr, __pyx_k_anon_union9_getPtr, sizeof(__pyx_k_anon_union9_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_args, __pyx_k_args, sizeof(__pyx_k_args), 0, 0, 1, 1}, {&__pyx_kp_u_array, __pyx_k_array, sizeof(__pyx_k_array), 0, 1, 0, 0}, {&__pyx_n_s_arrayIndex, __pyx_k_arrayIndex, sizeof(__pyx_k_arrayIndex), 0, 0, 1, 1}, {&__pyx_n_s_array_2, __pyx_k_array_2, sizeof(__pyx_k_array_2), 0, 0, 1, 1}, {&__pyx_kp_u_array_3, __pyx_k_array_3, sizeof(__pyx_k_array_3), 0, 1, 0, 0}, {&__pyx_kp_u_array_ValueError, __pyx_k_array_ValueError, sizeof(__pyx_k_array_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_asyncEngineCount, __pyx_k_asyncEngineCount, sizeof(__pyx_k_asyncEngineCount), 0, 1, 0, 0}, {&__pyx_n_s_asyncEngineCount_2, __pyx_k_asyncEngineCount_2, sizeof(__pyx_k_asyncEngineCount_2), 0, 0, 1, 1}, {&__pyx_kp_u_asyncEngineCount_ValueError, __pyx_k_asyncEngineCount_ValueError, sizeof(__pyx_k_asyncEngineCount_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_asyncio_coroutines, __pyx_k_asyncio_coroutines, sizeof(__pyx_k_asyncio_coroutines), 0, 0, 1, 1}, {&__pyx_n_s_attr, __pyx_k_attr, sizeof(__pyx_k_attr), 0, 0, 1, 1}, {&__pyx_n_s_attribute, __pyx_k_attribute, sizeof(__pyx_k_attribute), 0, 0, 1, 1}, {&__pyx_n_s_attributes, __pyx_k_attributes, sizeof(__pyx_k_attributes), 0, 0, 1, 1}, {&__pyx_kp_u_base_ptr, __pyx_k_base_ptr, sizeof(__pyx_k_base_ptr), 0, 1, 0, 0}, {&__pyx_n_s_base_ptr_2, __pyx_k_base_ptr_2, sizeof(__pyx_k_base_ptr_2), 0, 0, 1, 1}, {&__pyx_kp_u_base_ptr_ValueError, __pyx_k_base_ptr_ValueError, sizeof(__pyx_k_base_ptr_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_binaryVersion, __pyx_k_binaryVersion, sizeof(__pyx_k_binaryVersion), 0, 1, 0, 0}, {&__pyx_n_s_binaryVersion_2, __pyx_k_binaryVersion_2, sizeof(__pyx_k_binaryVersion_2), 0, 0, 1, 1}, {&__pyx_kp_u_binaryVersion_ValueError, __pyx_k_binaryVersion_ValueError, sizeof(__pyx_k_binaryVersion_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_blockDim, __pyx_k_blockDim, sizeof(__pyx_k_blockDim), 0, 1, 0, 0}, {&__pyx_n_s_blockDim_2, __pyx_k_blockDim_2, sizeof(__pyx_k_blockDim_2), 0, 0, 1, 1}, {&__pyx_kp_u_blockDim_ValueError, __pyx_k_blockDim_ValueError, sizeof(__pyx_k_blockDim_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_blockSize, __pyx_k_blockSize, sizeof(__pyx_k_blockSize), 0, 0, 1, 1}, {&__pyx_kp_u_borderColor, __pyx_k_borderColor, sizeof(__pyx_k_borderColor), 0, 1, 0, 0}, {&__pyx_n_s_borderColor_2, __pyx_k_borderColor_2, sizeof(__pyx_k_borderColor_2), 0, 0, 1, 1}, {&__pyx_kp_u_borderColor_ValueError, __pyx_k_borderColor_ValueError, sizeof(__pyx_k_borderColor_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_buffer, __pyx_k_buffer, sizeof(__pyx_k_buffer), 0, 0, 1, 1}, {&__pyx_n_s_bufferDesc, __pyx_k_bufferDesc, sizeof(__pyx_k_bufferDesc), 0, 0, 1, 1}, {&__pyx_kp_u_bytes, __pyx_k_bytes, sizeof(__pyx_k_bytes), 0, 1, 0, 0}, {&__pyx_kp_u_bytesOverBudget, __pyx_k_bytesOverBudget, sizeof(__pyx_k_bytesOverBudget), 0, 1, 0, 0}, {&__pyx_n_s_bytesOverBudget_2, __pyx_k_bytesOverBudget_2, sizeof(__pyx_k_bytesOverBudget_2), 0, 0, 1, 1}, {&__pyx_kp_u_bytesOverBudget_ValueError, __pyx_k_bytesOverBudget_ValueError, sizeof(__pyx_k_bytesOverBudget_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_bytes_2, __pyx_k_bytes_2, sizeof(__pyx_k_bytes_2), 0, 0, 1, 1}, {&__pyx_kp_u_bytes_ValueError, __pyx_k_bytes_ValueError, sizeof(__pyx_k_bytes_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_bytesize, __pyx_k_bytesize, sizeof(__pyx_k_bytesize), 0, 1, 0, 0}, {&__pyx_n_s_bytesize_2, __pyx_k_bytesize_2, sizeof(__pyx_k_bytesize_2), 0, 0, 1, 1}, {&__pyx_kp_u_bytesize_ValueError, __pyx_k_bytesize_ValueError, sizeof(__pyx_k_bytesize_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_cacheConfig, __pyx_k_cacheConfig, sizeof(__pyx_k_cacheConfig), 0, 0, 1, 1}, {&__pyx_kp_u_cacheModeCA, __pyx_k_cacheModeCA, sizeof(__pyx_k_cacheModeCA), 0, 1, 0, 0}, {&__pyx_n_s_cacheModeCA_2, __pyx_k_cacheModeCA_2, sizeof(__pyx_k_cacheModeCA_2), 0, 0, 1, 1}, {&__pyx_kp_u_cacheModeCA_ValueError, __pyx_k_cacheModeCA_ValueError, sizeof(__pyx_k_cacheModeCA_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_cadvice, __pyx_k_cadvice, sizeof(__pyx_k_cadvice), 0, 0, 1, 1}, {&__pyx_n_s_callback, __pyx_k_callback, sizeof(__pyx_k_callback), 0, 0, 1, 1}, {&__pyx_n_s_callbackFunc, __pyx_k_callbackFunc, sizeof(__pyx_k_callbackFunc), 0, 0, 1, 1}, {&__pyx_n_s_canAccessPeer, __pyx_k_canAccessPeer, sizeof(__pyx_k_canAccessPeer), 0, 0, 1, 1}, {&__pyx_kp_u_canMapHostMemory, __pyx_k_canMapHostMemory, sizeof(__pyx_k_canMapHostMemory), 0, 1, 0, 0}, {&__pyx_n_s_canMapHostMemory_2, __pyx_k_canMapHostMemory_2, sizeof(__pyx_k_canMapHostMemory_2), 0, 0, 1, 1}, {&__pyx_kp_u_canMapHostMemory_ValueError, __pyx_k_canMapHostMemory_ValueError, sizeof(__pyx_k_canMapHostMemory_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_canUseHostPointerForRegisteredMe, __pyx_k_canUseHostPointerForRegisteredMe, sizeof(__pyx_k_canUseHostPointerForRegisteredMe), 0, 1, 0, 0}, {&__pyx_n_s_canUseHostPointerForRegisteredMe_2, __pyx_k_canUseHostPointerForRegisteredMe_2, sizeof(__pyx_k_canUseHostPointerForRegisteredMe_2), 0, 0, 1, 1}, {&__pyx_kp_u_canUseHostPointerForRegisteredMe_3, __pyx_k_canUseHostPointerForRegisteredMe_3, sizeof(__pyx_k_canUseHostPointerForRegisteredMe_3), 0, 1, 0, 0}, {&__pyx_n_s_captureStatus_out, __pyx_k_captureStatus_out, sizeof(__pyx_k_captureStatus_out), 0, 0, 1, 1}, {&__pyx_n_s_carray, __pyx_k_carray, sizeof(__pyx_k_carray), 0, 0, 1, 1}, {&__pyx_n_s_cattr, __pyx_k_cattr, sizeof(__pyx_k_cattr), 0, 0, 1, 1}, {&__pyx_n_s_cattribute, __pyx_k_cattribute, sizeof(__pyx_k_cattribute), 0, 0, 1, 1}, {&__pyx_n_s_cattributes, __pyx_k_cattributes, sizeof(__pyx_k_cattributes), 0, 0, 1, 1}, {&__pyx_n_s_cbuffer, __pyx_k_cbuffer, sizeof(__pyx_k_cbuffer), 0, 0, 1, 1}, {&__pyx_n_s_cbufferDesc_ptr, __pyx_k_cbufferDesc_ptr, sizeof(__pyx_k_cbufferDesc_ptr), 0, 0, 1, 1}, {&__pyx_n_s_ccacheConfig, __pyx_k_ccacheConfig, sizeof(__pyx_k_ccacheConfig), 0, 0, 1, 1}, {&__pyx_n_s_ccallback, __pyx_k_ccallback, sizeof(__pyx_k_ccallback), 0, 0, 1, 1}, {&__pyx_n_s_ccallbackFunc, __pyx_k_ccallbackFunc, sizeof(__pyx_k_ccallbackFunc), 0, 0, 1, 1}, {&__pyx_n_s_cchildGraph, __pyx_k_cchildGraph, sizeof(__pyx_k_cchildGraph), 0, 0, 1, 1}, {&__pyx_n_s_cclonedGraph, __pyx_k_cclonedGraph, sizeof(__pyx_k_cclonedGraph), 0, 0, 1, 1}, {&__pyx_n_s_cconfig, __pyx_k_cconfig, sizeof(__pyx_k_cconfig), 0, 0, 1, 1}, {&__pyx_n_s_cconn, __pyx_k_cconn, sizeof(__pyx_k_cconn), 0, 0, 1, 1}, {&__pyx_n_s_cd, __pyx_k_cd, sizeof(__pyx_k_cd), 0, 0, 1, 1}, {&__pyx_n_s_cd_ptr, __pyx_k_cd_ptr, sizeof(__pyx_k_cd_ptr), 0, 0, 1, 1}, {&__pyx_n_s_cdata, __pyx_k_cdata, sizeof(__pyx_k_cdata), 0, 0, 1, 1}, {&__pyx_n_s_cdataSizes, __pyx_k_cdataSizes, sizeof(__pyx_k_cdataSizes), 0, 0, 1, 1}, {&__pyx_n_s_cdata_ptr, __pyx_k_cdata_ptr, sizeof(__pyx_k_cdata_ptr), 0, 0, 1, 1}, {&__pyx_n_s_cdependencies, __pyx_k_cdependencies, sizeof(__pyx_k_cdependencies), 0, 0, 1, 1}, {&__pyx_n_s_cdependencies_out, __pyx_k_cdependencies_out, sizeof(__pyx_k_cdependencies_out), 0, 0, 1, 1}, {&__pyx_n_s_cdependencyData, __pyx_k_cdependencyData, sizeof(__pyx_k_cdependencyData), 0, 0, 1, 1}, {&__pyx_n_s_cdescList, __pyx_k_cdescList, sizeof(__pyx_k_cdescList), 0, 0, 1, 1}, {&__pyx_n_s_cdesc_ptr, __pyx_k_cdesc_ptr, sizeof(__pyx_k_cdesc_ptr), 0, 0, 1, 1}, {&__pyx_n_s_cdestroy, __pyx_k_cdestroy, sizeof(__pyx_k_cdestroy), 0, 0, 1, 1}, {&__pyx_n_s_cdevPtr, __pyx_k_cdevPtr, sizeof(__pyx_k_cdevPtr), 0, 0, 1, 1}, {&__pyx_n_s_cdevPtr_ptr, __pyx_k_cdevPtr_ptr, sizeof(__pyx_k_cdevPtr_ptr), 0, 0, 1, 1}, {&__pyx_n_s_cdeviceList, __pyx_k_cdeviceList, sizeof(__pyx_k_cdeviceList), 0, 0, 1, 1}, {&__pyx_n_s_cdptr, __pyx_k_cdptr, sizeof(__pyx_k_cdptr), 0, 0, 1, 1}, {&__pyx_n_s_cdptr_out_ptr, __pyx_k_cdptr_out_ptr, sizeof(__pyx_k_cdptr_out_ptr), 0, 0, 1, 1}, {&__pyx_n_s_cdptr_ptr, __pyx_k_cdptr_ptr, sizeof(__pyx_k_cdptr_ptr), 0, 0, 1, 1}, {&__pyx_n_s_cdst, __pyx_k_cdst, sizeof(__pyx_k_cdst), 0, 0, 1, 1}, {&__pyx_n_s_cdst_ptr, __pyx_k_cdst_ptr, sizeof(__pyx_k_cdst_ptr), 0, 0, 1, 1}, {&__pyx_n_s_cedgeData, __pyx_k_cedgeData, sizeof(__pyx_k_cedgeData), 0, 0, 1, 1}, {&__pyx_n_s_cedgeData_out, __pyx_k_cedgeData_out, sizeof(__pyx_k_cedgeData_out), 0, 0, 1, 1}, {&__pyx_n_s_ceglStream, __pyx_k_ceglStream, sizeof(__pyx_k_ceglStream), 0, 0, 1, 1}, {&__pyx_n_s_ceglSync, __pyx_k_ceglSync, sizeof(__pyx_k_ceglSync), 0, 0, 1, 1}, {&__pyx_n_s_ceglframe_ptr, __pyx_k_ceglframe_ptr, sizeof(__pyx_k_ceglframe_ptr), 0, 0, 1, 1}, {&__pyx_n_s_cend, __pyx_k_cend, sizeof(__pyx_k_cend), 0, 0, 1, 1}, {&__pyx_n_s_centryFuncAddr, __pyx_k_centryFuncAddr, sizeof(__pyx_k_centryFuncAddr), 0, 0, 1, 1}, {&__pyx_n_s_centryFuncAddr_ptr, __pyx_k_centryFuncAddr_ptr, sizeof(__pyx_k_centryFuncAddr_ptr), 0, 0, 1, 1}, {&__pyx_n_s_cerror, __pyx_k_cerror, sizeof(__pyx_k_cerror), 0, 0, 1, 1}, {&__pyx_n_s_cevent, __pyx_k_cevent, sizeof(__pyx_k_cevent), 0, 0, 1, 1}, {&__pyx_n_s_cexportData_ptr, __pyx_k_cexportData_ptr, sizeof(__pyx_k_cexportData_ptr), 0, 0, 1, 1}, {&__pyx_n_s_cextMem, __pyx_k_cextMem, sizeof(__pyx_k_cextMem), 0, 0, 1, 1}, {&__pyx_n_s_cextSem, __pyx_k_cextSem, sizeof(__pyx_k_cextSem), 0, 0, 1, 1}, {&__pyx_n_s_cextSemArray, __pyx_k_cextSemArray, sizeof(__pyx_k_cextSemArray), 0, 0, 1, 1}, {&__pyx_n_s_cf, __pyx_k_cf, sizeof(__pyx_k_cf), 0, 0, 1, 1}, {&__pyx_n_s_cfmtDesc_ptr, __pyx_k_cfmtDesc_ptr, sizeof(__pyx_k_cfmtDesc_ptr), 0, 0, 1, 1}, {&__pyx_n_s_cfn, __pyx_k_cfn, sizeof(__pyx_k_cfn), 0, 0, 1, 1}, {&__pyx_n_s_cfrom, __pyx_k_cfrom, sizeof(__pyx_k_cfrom), 0, 0, 1, 1}, {&__pyx_n_s_cfunc, __pyx_k_cfunc, sizeof(__pyx_k_cfunc), 0, 0, 1, 1}, {&__pyx_n_s_cfunc_ptr, __pyx_k_cfunc_ptr, sizeof(__pyx_k_cfunc_ptr), 0, 0, 1, 1}, {&__pyx_n_s_cgraph, __pyx_k_cgraph, sizeof(__pyx_k_cgraph), 0, 0, 1, 1}, {&__pyx_n_s_cgraphExec, __pyx_k_cgraphExec, sizeof(__pyx_k_cgraphExec), 0, 0, 1, 1}, {&__pyx_n_s_chArray, __pyx_k_chArray, sizeof(__pyx_k_chArray), 0, 0, 1, 1}, {&__pyx_n_s_chDst, __pyx_k_chDst, sizeof(__pyx_k_chDst), 0, 0, 1, 1}, {&__pyx_n_s_chGraph, __pyx_k_chGraph, sizeof(__pyx_k_chGraph), 0, 0, 1, 1}, {&__pyx_n_s_chGraphExec, __pyx_k_chGraphExec, sizeof(__pyx_k_chGraphExec), 0, 0, 1, 1}, {&__pyx_n_s_chNode, __pyx_k_chNode, sizeof(__pyx_k_chNode), 0, 0, 1, 1}, {&__pyx_n_s_chSrc, __pyx_k_chSrc, sizeof(__pyx_k_chSrc), 0, 0, 1, 1}, {&__pyx_n_s_chStream, __pyx_k_chStream, sizeof(__pyx_k_chStream), 0, 0, 1, 1}, {&__pyx_n_s_chandleType, __pyx_k_chandleType, sizeof(__pyx_k_chandleType), 0, 0, 1, 1}, {&__pyx_kp_u_channelDesc, __pyx_k_channelDesc, sizeof(__pyx_k_channelDesc), 0, 1, 0, 0}, {&__pyx_n_s_channelDesc_2, __pyx_k_channelDesc_2, sizeof(__pyx_k_channelDesc_2), 0, 0, 1, 1}, {&__pyx_kp_u_channelDesc_ValueError, __pyx_k_channelDesc_ValueError, sizeof(__pyx_k_channelDesc_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_cheight, __pyx_k_cheight, sizeof(__pyx_k_cheight), 0, 0, 1, 1}, {&__pyx_n_s_childGraph, __pyx_k_childGraph, sizeof(__pyx_k_childGraph), 0, 0, 1, 1}, {&__pyx_n_s_cimage, __pyx_k_cimage, sizeof(__pyx_k_cimage), 0, 0, 1, 1}, {&__pyx_n_s_cinstantiateParams_ptr, __pyx_k_cinstantiateParams_ptr, sizeof(__pyx_k_cinstantiateParams_ptr), 0, 0, 1, 1}, {&__pyx_n_s_ckernelParams, __pyx_k_ckernelParams, sizeof(__pyx_k_ckernelParams), 0, 0, 1, 1}, {&__pyx_n_s_ckind, __pyx_k_ckind, sizeof(__pyx_k_ckind), 0, 0, 1, 1}, {&__pyx_n_s_climit, __pyx_k_climit, sizeof(__pyx_k_climit), 0, 0, 1, 1}, {&__pyx_n_s_cline_in_traceback, __pyx_k_cline_in_traceback, sizeof(__pyx_k_cline_in_traceback), 0, 0, 1, 1}, {&__pyx_n_s_clocation_ptr, __pyx_k_clocation_ptr, sizeof(__pyx_k_clocation_ptr), 0, 0, 1, 1}, {&__pyx_kp_u_clockRate, __pyx_k_clockRate, sizeof(__pyx_k_clockRate), 0, 1, 0, 0}, {&__pyx_n_s_clockRate_2, __pyx_k_clockRate_2, sizeof(__pyx_k_clockRate_2), 0, 0, 1, 1}, {&__pyx_kp_u_clockRate_ValueError, __pyx_k_clockRate_ValueError, sizeof(__pyx_k_clockRate_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_clonedGraph, __pyx_k_clonedGraph, sizeof(__pyx_k_clonedGraph), 0, 0, 1, 1}, {&__pyx_n_s_close, __pyx_k_close, sizeof(__pyx_k_close), 0, 0, 1, 1}, {&__pyx_kp_u_clusterDim, __pyx_k_clusterDim, sizeof(__pyx_k_clusterDim), 0, 1, 0, 0}, {&__pyx_kp_u_clusterDimMustBeSet, __pyx_k_clusterDimMustBeSet, sizeof(__pyx_k_clusterDimMustBeSet), 0, 1, 0, 0}, {&__pyx_n_s_clusterDimMustBeSet_2, __pyx_k_clusterDimMustBeSet_2, sizeof(__pyx_k_clusterDimMustBeSet_2), 0, 0, 1, 1}, {&__pyx_kp_u_clusterDimMustBeSet_ValueError, __pyx_k_clusterDimMustBeSet_ValueError, sizeof(__pyx_k_clusterDimMustBeSet_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_clusterDim_2, __pyx_k_clusterDim_2, sizeof(__pyx_k_clusterDim_2), 0, 0, 1, 1}, {&__pyx_kp_u_clusterDim_ValueError, __pyx_k_clusterDim_ValueError, sizeof(__pyx_k_clusterDim_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_clusterLaunch, __pyx_k_clusterLaunch, sizeof(__pyx_k_clusterLaunch), 0, 1, 0, 0}, {&__pyx_n_s_clusterLaunch_2, __pyx_k_clusterLaunch_2, sizeof(__pyx_k_clusterLaunch_2), 0, 0, 1, 1}, {&__pyx_kp_u_clusterLaunch_ValueError, __pyx_k_clusterLaunch_ValueError, sizeof(__pyx_k_clusterLaunch_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_clusterSchedulingPolicyPreferenc, __pyx_k_clusterSchedulingPolicyPreferenc, sizeof(__pyx_k_clusterSchedulingPolicyPreferenc), 0, 1, 0, 0}, {&__pyx_n_s_clusterSchedulingPolicyPreferenc_2, __pyx_k_clusterSchedulingPolicyPreferenc_2, sizeof(__pyx_k_clusterSchedulingPolicyPreferenc_2), 0, 0, 1, 1}, {&__pyx_kp_u_clusterSchedulingPolicyPreferenc_3, __pyx_k_clusterSchedulingPolicyPreferenc_3, sizeof(__pyx_k_clusterSchedulingPolicyPreferenc_3), 0, 1, 0, 0}, {&__pyx_n_s_cmemHandleDesc_ptr, __pyx_k_cmemHandleDesc_ptr, sizeof(__pyx_k_cmemHandleDesc_ptr), 0, 0, 1, 1}, {&__pyx_n_s_cmemPool, __pyx_k_cmemPool, sizeof(__pyx_k_cmemPool), 0, 0, 1, 1}, {&__pyx_n_s_cmipmap, __pyx_k_cmipmap, sizeof(__pyx_k_cmipmap), 0, 0, 1, 1}, {&__pyx_n_s_cmipmapDesc_ptr, __pyx_k_cmipmapDesc_ptr, sizeof(__pyx_k_cmipmapDesc_ptr), 0, 0, 1, 1}, {&__pyx_n_s_cmipmappedArray, __pyx_k_cmipmappedArray, sizeof(__pyx_k_cmipmappedArray), 0, 0, 1, 1}, {&__pyx_n_s_cmode, __pyx_k_cmode, sizeof(__pyx_k_cmode), 0, 0, 1, 1}, {&__pyx_n_s_cnode, __pyx_k_cnode, sizeof(__pyx_k_cnode), 0, 0, 1, 1}, {&__pyx_n_s_cnodeParams_ptr, __pyx_k_cnodeParams_ptr, sizeof(__pyx_k_cnodeParams_ptr), 0, 0, 1, 1}, {&__pyx_n_s_cnodes, __pyx_k_cnodes, sizeof(__pyx_k_cnodes), 0, 0, 1, 1}, {&__pyx_n_s_cnvSciSyncAttrList, __pyx_k_cnvSciSyncAttrList, sizeof(__pyx_k_cnvSciSyncAttrList), 0, 0, 1, 1}, {&__pyx_n_s_cnvSciSyncAttrList_ptr, __pyx_k_cnvSciSyncAttrList_ptr, sizeof(__pyx_k_cnvSciSyncAttrList_ptr), 0, 0, 1, 1}, {&__pyx_n_s_cobject, __pyx_k_cobject, sizeof(__pyx_k_cobject), 0, 0, 1, 1}, {&__pyx_kp_u_computeMode, __pyx_k_computeMode, sizeof(__pyx_k_computeMode), 0, 1, 0, 0}, {&__pyx_n_s_computeMode_2, __pyx_k_computeMode_2, sizeof(__pyx_k_computeMode_2), 0, 0, 1, 1}, {&__pyx_kp_u_computeMode_ValueError, __pyx_k_computeMode_ValueError, sizeof(__pyx_k_computeMode_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_computePreemptionSupported, __pyx_k_computePreemptionSupported, sizeof(__pyx_k_computePreemptionSupported), 0, 1, 0, 0}, {&__pyx_n_s_computePreemptionSupported_2, __pyx_k_computePreemptionSupported_2, sizeof(__pyx_k_computePreemptionSupported_2), 0, 0, 1, 1}, {&__pyx_kp_u_computePreemptionSupported_Value, __pyx_k_computePreemptionSupported_Value, sizeof(__pyx_k_computePreemptionSupported_Value), 0, 1, 0, 0}, {&__pyx_kp_u_concurrentKernels, __pyx_k_concurrentKernels, sizeof(__pyx_k_concurrentKernels), 0, 1, 0, 0}, {&__pyx_n_s_concurrentKernels_2, __pyx_k_concurrentKernels_2, sizeof(__pyx_k_concurrentKernels_2), 0, 0, 1, 1}, {&__pyx_kp_u_concurrentKernels_ValueError, __pyx_k_concurrentKernels_ValueError, sizeof(__pyx_k_concurrentKernels_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_concurrentManagedAccess, __pyx_k_concurrentManagedAccess, sizeof(__pyx_k_concurrentManagedAccess), 0, 1, 0, 0}, {&__pyx_n_s_concurrentManagedAccess_2, __pyx_k_concurrentManagedAccess_2, sizeof(__pyx_k_concurrentManagedAccess_2), 0, 0, 1, 1}, {&__pyx_kp_u_concurrentManagedAccess_ValueErr, __pyx_k_concurrentManagedAccess_ValueErr, sizeof(__pyx_k_concurrentManagedAccess_ValueErr), 0, 1, 0, 0}, {&__pyx_kp_u_conditional, __pyx_k_conditional, sizeof(__pyx_k_conditional), 0, 1, 0, 0}, {&__pyx_n_s_conditional_2, __pyx_k_conditional_2, sizeof(__pyx_k_conditional_2), 0, 0, 1, 1}, {&__pyx_kp_u_conditional_ValueError, __pyx_k_conditional_ValueError, sizeof(__pyx_k_conditional_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_config, __pyx_k_config, sizeof(__pyx_k_config), 0, 0, 1, 1}, {&__pyx_n_s_conn, __pyx_k_conn, sizeof(__pyx_k_conn), 0, 0, 1, 1}, {&__pyx_kp_u_constSizeBytes, __pyx_k_constSizeBytes, sizeof(__pyx_k_constSizeBytes), 0, 1, 0, 0}, {&__pyx_n_s_constSizeBytes_2, __pyx_k_constSizeBytes_2, sizeof(__pyx_k_constSizeBytes_2), 0, 0, 1, 1}, {&__pyx_kp_u_constSizeBytes_ValueError, __pyx_k_constSizeBytes_ValueError, sizeof(__pyx_k_constSizeBytes_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_cooperative, __pyx_k_cooperative, sizeof(__pyx_k_cooperative), 0, 1, 0, 0}, {&__pyx_kp_u_cooperativeLaunch, __pyx_k_cooperativeLaunch, sizeof(__pyx_k_cooperativeLaunch), 0, 1, 0, 0}, {&__pyx_n_s_cooperativeLaunch_2, __pyx_k_cooperativeLaunch_2, sizeof(__pyx_k_cooperativeLaunch_2), 0, 0, 1, 1}, {&__pyx_kp_u_cooperativeLaunch_ValueError, __pyx_k_cooperativeLaunch_ValueError, sizeof(__pyx_k_cooperativeLaunch_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_cooperativeMultiDeviceLaunch, __pyx_k_cooperativeMultiDeviceLaunch, sizeof(__pyx_k_cooperativeMultiDeviceLaunch), 0, 1, 0, 0}, {&__pyx_n_s_cooperativeMultiDeviceLaunch_2, __pyx_k_cooperativeMultiDeviceLaunch_2, sizeof(__pyx_k_cooperativeMultiDeviceLaunch_2), 0, 0, 1, 1}, {&__pyx_kp_u_cooperativeMultiDeviceLaunch_Val, __pyx_k_cooperativeMultiDeviceLaunch_Val, sizeof(__pyx_k_cooperativeMultiDeviceLaunch_Val), 0, 1, 0, 0}, {&__pyx_n_s_cooperative_2, __pyx_k_cooperative_2, sizeof(__pyx_k_cooperative_2), 0, 0, 1, 1}, {&__pyx_kp_u_cooperative_ValueError, __pyx_k_cooperative_ValueError, sizeof(__pyx_k_cooperative_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_copyParams, __pyx_k_copyParams, sizeof(__pyx_k_copyParams), 0, 1, 0, 0}, {&__pyx_n_s_copyParams_2, __pyx_k_copyParams_2, sizeof(__pyx_k_copyParams_2), 0, 0, 1, 1}, {&__pyx_kp_u_copyParams_ValueError, __pyx_k_copyParams_ValueError, sizeof(__pyx_k_copyParams_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_coriginalGraph, __pyx_k_coriginalGraph, sizeof(__pyx_k_coriginalGraph), 0, 0, 1, 1}, {&__pyx_n_s_coriginalNode, __pyx_k_coriginalNode, sizeof(__pyx_k_coriginalNode), 0, 0, 1, 1}, {&__pyx_n_s_count, __pyx_k_count, sizeof(__pyx_k_count), 0, 0, 1, 1}, {&__pyx_n_s_cpCopyParams_ptr, __pyx_k_cpCopyParams_ptr, sizeof(__pyx_k_cpCopyParams_ptr), 0, 0, 1, 1}, {&__pyx_n_s_cpCudaDevices, __pyx_k_cpCudaDevices, sizeof(__pyx_k_cpCudaDevices), 0, 0, 1, 1}, {&__pyx_n_s_cpCudaResource, __pyx_k_cpCudaResource, sizeof(__pyx_k_cpCudaResource), 0, 0, 1, 1}, {&__pyx_n_s_cpDependencies, __pyx_k_cpDependencies, sizeof(__pyx_k_cpDependencies), 0, 0, 1, 1}, {&__pyx_n_s_cpDependentNodes, __pyx_k_cpDependentNodes, sizeof(__pyx_k_cpDependentNodes), 0, 0, 1, 1}, {&__pyx_n_s_cpExportTableId_ptr, __pyx_k_cpExportTableId_ptr, sizeof(__pyx_k_cpExportTableId_ptr), 0, 0, 1, 1}, {&__pyx_n_s_cpHost, __pyx_k_cpHost, sizeof(__pyx_k_cpHost), 0, 0, 1, 1}, {&__pyx_n_s_cpHost_ptr, __pyx_k_cpHost_ptr, sizeof(__pyx_k_cpHost_ptr), 0, 0, 1, 1}, {&__pyx_n_s_cpMemsetParams_ptr, __pyx_k_cpMemsetParams_ptr, sizeof(__pyx_k_cpMemsetParams_ptr), 0, 0, 1, 1}, {&__pyx_n_s_cpNodeParams_ptr, __pyx_k_cpNodeParams_ptr, sizeof(__pyx_k_cpNodeParams_ptr), 0, 0, 1, 1}, {&__pyx_n_s_cpResDesc_ptr, __pyx_k_cpResDesc_ptr, sizeof(__pyx_k_cpResDesc_ptr), 0, 0, 1, 1}, {&__pyx_n_s_cpResViewDesc_ptr, __pyx_k_cpResViewDesc_ptr, sizeof(__pyx_k_cpResViewDesc_ptr), 0, 0, 1, 1}, {&__pyx_n_s_cpRootNodes, __pyx_k_cpRootNodes, sizeof(__pyx_k_cpRootNodes), 0, 0, 1, 1}, {&__pyx_n_s_cpStream, __pyx_k_cpStream, sizeof(__pyx_k_cpStream), 0, 0, 1, 1}, {&__pyx_n_s_cpTexDesc_ptr, __pyx_k_cpTexDesc_ptr, sizeof(__pyx_k_cpTexDesc_ptr), 0, 0, 1, 1}, {&__pyx_n_s_cp_ptr, __pyx_k_cp_ptr, sizeof(__pyx_k_cp_ptr), 0, 0, 1, 1}, {&__pyx_n_s_cparamsArray, __pyx_k_cparamsArray, sizeof(__pyx_k_cparamsArray), 0, 0, 1, 1}, {&__pyx_n_s_cpoolProps_ptr, __pyx_k_cpoolProps_ptr, sizeof(__pyx_k_cpoolProps_ptr), 0, 0, 1, 1}, {&__pyx_n_s_cprop_ptr, __pyx_k_cprop_ptr, sizeof(__pyx_k_cprop_ptr), 0, 0, 1, 1}, {&__pyx_n_s_cptr, __pyx_k_cptr, sizeof(__pyx_k_cptr), 0, 0, 1, 1}, {&__pyx_n_s_cptr_ptr, __pyx_k_cptr_ptr, sizeof(__pyx_k_cptr_ptr), 0, 0, 1, 1}, {&__pyx_n_s_cresource, __pyx_k_cresource, sizeof(__pyx_k_cresource), 0, 0, 1, 1}, {&__pyx_n_s_cresources, __pyx_k_cresources, sizeof(__pyx_k_cresources), 0, 0, 1, 1}, {&__pyx_n_s_cscope, __pyx_k_cscope, sizeof(__pyx_k_cscope), 0, 0, 1, 1}, {&__pyx_n_s_csemHandleDesc_ptr, __pyx_k_csemHandleDesc_ptr, sizeof(__pyx_k_csemHandleDesc_ptr), 0, 0, 1, 1}, {&__pyx_n_s_cshareableHandle, __pyx_k_cshareableHandle, sizeof(__pyx_k_cshareableHandle), 0, 0, 1, 1}, {&__pyx_n_s_cshareableHandle_ptr, __pyx_k_cshareableHandle_ptr, sizeof(__pyx_k_cshareableHandle_ptr), 0, 0, 1, 1}, {&__pyx_n_s_csrc, __pyx_k_csrc, sizeof(__pyx_k_csrc), 0, 0, 1, 1}, {&__pyx_n_s_csrc_ptr, __pyx_k_csrc_ptr, sizeof(__pyx_k_csrc_ptr), 0, 0, 1, 1}, {&__pyx_n_s_cstart, __pyx_k_cstart, sizeof(__pyx_k_cstart), 0, 0, 1, 1}, {&__pyx_n_s_cstream, __pyx_k_cstream, sizeof(__pyx_k_cstream), 0, 0, 1, 1}, {&__pyx_n_s_csurfObject, __pyx_k_csurfObject, sizeof(__pyx_k_csurfObject), 0, 0, 1, 1}, {&__pyx_n_s_ctarget, __pyx_k_ctarget, sizeof(__pyx_k_ctarget), 0, 0, 1, 1}, {&__pyx_n_s_ctexObject, __pyx_k_ctexObject, sizeof(__pyx_k_ctexObject), 0, 0, 1, 1}, {&__pyx_n_s_cto, __pyx_k_cto, sizeof(__pyx_k_cto), 0, 0, 1, 1}, {&__pyx_n_s_ctypes, __pyx_k_ctypes, sizeof(__pyx_k_ctypes), 0, 0, 1, 1}, {&__pyx_n_s_cuda, __pyx_k_cuda, sizeof(__pyx_k_cuda), 0, 0, 1, 1}, {&__pyx_n_s_cudaAccessPolicyWindow, __pyx_k_cudaAccessPolicyWindow, sizeof(__pyx_k_cudaAccessPolicyWindow), 0, 0, 1, 1}, {&__pyx_n_s_cudaAccessPolicyWindow___reduce, __pyx_k_cudaAccessPolicyWindow___reduce, sizeof(__pyx_k_cudaAccessPolicyWindow___reduce), 0, 0, 1, 1}, {&__pyx_n_s_cudaAccessPolicyWindow___setstat, __pyx_k_cudaAccessPolicyWindow___setstat, sizeof(__pyx_k_cudaAccessPolicyWindow___setstat), 0, 0, 1, 1}, {&__pyx_n_s_cudaAccessPolicyWindow_getPtr, __pyx_k_cudaAccessPolicyWindow_getPtr, sizeof(__pyx_k_cudaAccessPolicyWindow_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaAccessProperty, __pyx_k_cudaAccessProperty, sizeof(__pyx_k_cudaAccessProperty), 0, 0, 1, 1}, {&__pyx_n_s_cudaAccessPropertyNormal, __pyx_k_cudaAccessPropertyNormal, sizeof(__pyx_k_cudaAccessPropertyNormal), 0, 0, 1, 1}, {&__pyx_n_s_cudaAccessPropertyPersisting, __pyx_k_cudaAccessPropertyPersisting, sizeof(__pyx_k_cudaAccessPropertyPersisting), 0, 0, 1, 1}, {&__pyx_n_s_cudaAccessPropertyStreaming, __pyx_k_cudaAccessPropertyStreaming, sizeof(__pyx_k_cudaAccessPropertyStreaming), 0, 0, 1, 1}, {&__pyx_n_s_cudaAddressModeBorder, __pyx_k_cudaAddressModeBorder, sizeof(__pyx_k_cudaAddressModeBorder), 0, 0, 1, 1}, {&__pyx_n_s_cudaAddressModeClamp, __pyx_k_cudaAddressModeClamp, sizeof(__pyx_k_cudaAddressModeClamp), 0, 0, 1, 1}, {&__pyx_n_s_cudaAddressModeMirror, __pyx_k_cudaAddressModeMirror, sizeof(__pyx_k_cudaAddressModeMirror), 0, 0, 1, 1}, {&__pyx_n_s_cudaAddressModeWrap, __pyx_k_cudaAddressModeWrap, sizeof(__pyx_k_cudaAddressModeWrap), 0, 0, 1, 1}, {&__pyx_n_s_cudaArrayColorAttachment, __pyx_k_cudaArrayColorAttachment, sizeof(__pyx_k_cudaArrayColorAttachment), 0, 0, 1, 1}, {&__pyx_n_s_cudaArrayCubemap, __pyx_k_cudaArrayCubemap, sizeof(__pyx_k_cudaArrayCubemap), 0, 0, 1, 1}, {&__pyx_n_s_cudaArrayDefault, __pyx_k_cudaArrayDefault, sizeof(__pyx_k_cudaArrayDefault), 0, 0, 1, 1}, {&__pyx_n_s_cudaArrayDeferredMapping, __pyx_k_cudaArrayDeferredMapping, sizeof(__pyx_k_cudaArrayDeferredMapping), 0, 0, 1, 1}, {&__pyx_n_s_cudaArrayGetInfo, __pyx_k_cudaArrayGetInfo, sizeof(__pyx_k_cudaArrayGetInfo), 0, 0, 1, 1}, {&__pyx_n_s_cudaArrayGetMemoryRequirements, __pyx_k_cudaArrayGetMemoryRequirements, sizeof(__pyx_k_cudaArrayGetMemoryRequirements), 0, 0, 1, 1}, {&__pyx_n_s_cudaArrayGetPlane, __pyx_k_cudaArrayGetPlane, sizeof(__pyx_k_cudaArrayGetPlane), 0, 0, 1, 1}, {&__pyx_n_s_cudaArrayGetSparseProperties, __pyx_k_cudaArrayGetSparseProperties, sizeof(__pyx_k_cudaArrayGetSparseProperties), 0, 0, 1, 1}, {&__pyx_n_s_cudaArrayLayered, __pyx_k_cudaArrayLayered, sizeof(__pyx_k_cudaArrayLayered), 0, 0, 1, 1}, {&__pyx_n_s_cudaArrayMemoryRequirements, __pyx_k_cudaArrayMemoryRequirements, sizeof(__pyx_k_cudaArrayMemoryRequirements), 0, 0, 1, 1}, {&__pyx_n_s_cudaArrayMemoryRequirements___re, __pyx_k_cudaArrayMemoryRequirements___re, sizeof(__pyx_k_cudaArrayMemoryRequirements___re), 0, 0, 1, 1}, {&__pyx_n_s_cudaArrayMemoryRequirements___se, __pyx_k_cudaArrayMemoryRequirements___se, sizeof(__pyx_k_cudaArrayMemoryRequirements___se), 0, 0, 1, 1}, {&__pyx_n_s_cudaArrayMemoryRequirements_getP, __pyx_k_cudaArrayMemoryRequirements_getP, sizeof(__pyx_k_cudaArrayMemoryRequirements_getP), 0, 0, 1, 1}, {&__pyx_n_s_cudaArraySparse, __pyx_k_cudaArraySparse, sizeof(__pyx_k_cudaArraySparse), 0, 0, 1, 1}, {&__pyx_n_s_cudaArraySparseProperties, __pyx_k_cudaArraySparseProperties, sizeof(__pyx_k_cudaArraySparseProperties), 0, 0, 1, 1}, {&__pyx_n_s_cudaArraySparsePropertiesSingleM, __pyx_k_cudaArraySparsePropertiesSingleM, sizeof(__pyx_k_cudaArraySparsePropertiesSingleM), 0, 0, 1, 1}, {&__pyx_n_s_cudaArraySparseProperties___redu, __pyx_k_cudaArraySparseProperties___redu, sizeof(__pyx_k_cudaArraySparseProperties___redu), 0, 0, 1, 1}, {&__pyx_n_s_cudaArraySparseProperties___sets, __pyx_k_cudaArraySparseProperties___sets, sizeof(__pyx_k_cudaArraySparseProperties___sets), 0, 0, 1, 1}, {&__pyx_n_s_cudaArraySparseProperties_getPtr, __pyx_k_cudaArraySparseProperties_getPtr, sizeof(__pyx_k_cudaArraySparseProperties_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaArraySurfaceLoadStore, __pyx_k_cudaArraySurfaceLoadStore, sizeof(__pyx_k_cudaArraySurfaceLoadStore), 0, 0, 1, 1}, {&__pyx_n_s_cudaArrayTextureGather, __pyx_k_cudaArrayTextureGather, sizeof(__pyx_k_cudaArrayTextureGather), 0, 0, 1, 1}, {&__pyx_kp_u_cudaArray_const_t, __pyx_k_cudaArray_const_t, sizeof(__pyx_k_cudaArray_const_t), 0, 1, 0, 0}, {&__pyx_n_s_cudaArray_const_t_2, __pyx_k_cudaArray_const_t_2, sizeof(__pyx_k_cudaArray_const_t_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaArray_const_t___reduce_cytho, __pyx_k_cudaArray_const_t___reduce_cytho, sizeof(__pyx_k_cudaArray_const_t___reduce_cytho), 0, 0, 1, 1}, {&__pyx_n_s_cudaArray_const_t___setstate_cyt, __pyx_k_cudaArray_const_t___setstate_cyt, sizeof(__pyx_k_cudaArray_const_t___setstate_cyt), 0, 0, 1, 1}, {&__pyx_n_s_cudaArray_const_t_getPtr, __pyx_k_cudaArray_const_t_getPtr, sizeof(__pyx_k_cudaArray_const_t_getPtr), 0, 0, 1, 1}, {&__pyx_kp_u_cudaArray_t, __pyx_k_cudaArray_t, sizeof(__pyx_k_cudaArray_t), 0, 1, 0, 0}, {&__pyx_n_s_cudaArray_t_2, __pyx_k_cudaArray_t_2, sizeof(__pyx_k_cudaArray_t_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaArray_t___reduce_cython, __pyx_k_cudaArray_t___reduce_cython, sizeof(__pyx_k_cudaArray_t___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_cudaArray_t___setstate_cython, __pyx_k_cudaArray_t___setstate_cython, sizeof(__pyx_k_cudaArray_t___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_cudaArray_t_getPtr, __pyx_k_cudaArray_t_getPtr, sizeof(__pyx_k_cudaArray_t_getPtr), 0, 0, 1, 1}, {&__pyx_kp_u_cudaAsyncCallback, __pyx_k_cudaAsyncCallback, sizeof(__pyx_k_cudaAsyncCallback), 0, 1, 0, 0}, {&__pyx_kp_u_cudaAsyncCallbackHandle_t, __pyx_k_cudaAsyncCallbackHandle_t, sizeof(__pyx_k_cudaAsyncCallbackHandle_t), 0, 1, 0, 0}, {&__pyx_n_s_cudaAsyncCallbackHandle_t_2, __pyx_k_cudaAsyncCallbackHandle_t_2, sizeof(__pyx_k_cudaAsyncCallbackHandle_t_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaAsyncCallbackHandle_t___redu, __pyx_k_cudaAsyncCallbackHandle_t___redu, sizeof(__pyx_k_cudaAsyncCallbackHandle_t___redu), 0, 0, 1, 1}, {&__pyx_n_s_cudaAsyncCallbackHandle_t___sets, __pyx_k_cudaAsyncCallbackHandle_t___sets, sizeof(__pyx_k_cudaAsyncCallbackHandle_t___sets), 0, 0, 1, 1}, {&__pyx_n_s_cudaAsyncCallbackHandle_t_getPtr, __pyx_k_cudaAsyncCallbackHandle_t_getPtr, sizeof(__pyx_k_cudaAsyncCallbackHandle_t_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaAsyncCallback_2, __pyx_k_cudaAsyncCallback_2, sizeof(__pyx_k_cudaAsyncCallback_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaAsyncCallback___reduce_cytho, __pyx_k_cudaAsyncCallback___reduce_cytho, sizeof(__pyx_k_cudaAsyncCallback___reduce_cytho), 0, 0, 1, 1}, {&__pyx_n_s_cudaAsyncCallback___setstate_cyt, __pyx_k_cudaAsyncCallback___setstate_cyt, sizeof(__pyx_k_cudaAsyncCallback___setstate_cyt), 0, 0, 1, 1}, {&__pyx_n_s_cudaAsyncCallback_getPtr, __pyx_k_cudaAsyncCallback_getPtr, sizeof(__pyx_k_cudaAsyncCallback_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaAsyncNotificationInfo, __pyx_k_cudaAsyncNotificationInfo, sizeof(__pyx_k_cudaAsyncNotificationInfo), 0, 0, 1, 1}, {&__pyx_n_s_cudaAsyncNotificationInfo___redu, __pyx_k_cudaAsyncNotificationInfo___redu, sizeof(__pyx_k_cudaAsyncNotificationInfo___redu), 0, 0, 1, 1}, {&__pyx_n_s_cudaAsyncNotificationInfo___sets, __pyx_k_cudaAsyncNotificationInfo___sets, sizeof(__pyx_k_cudaAsyncNotificationInfo___sets), 0, 0, 1, 1}, {&__pyx_n_s_cudaAsyncNotificationInfo_getPtr, __pyx_k_cudaAsyncNotificationInfo_getPtr, sizeof(__pyx_k_cudaAsyncNotificationInfo_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaAsyncNotificationInfo_t, __pyx_k_cudaAsyncNotificationInfo_t, sizeof(__pyx_k_cudaAsyncNotificationInfo_t), 0, 0, 1, 1}, {&__pyx_n_s_cudaAsyncNotificationType, __pyx_k_cudaAsyncNotificationType, sizeof(__pyx_k_cudaAsyncNotificationType), 0, 0, 1, 1}, {&__pyx_n_s_cudaAsyncNotificationTypeOverBud, __pyx_k_cudaAsyncNotificationTypeOverBud, sizeof(__pyx_k_cudaAsyncNotificationTypeOverBud), 0, 0, 1, 1}, {&__pyx_n_s_cudaBoundaryModeClamp, __pyx_k_cudaBoundaryModeClamp, sizeof(__pyx_k_cudaBoundaryModeClamp), 0, 0, 1, 1}, {&__pyx_n_s_cudaBoundaryModeTrap, __pyx_k_cudaBoundaryModeTrap, sizeof(__pyx_k_cudaBoundaryModeTrap), 0, 0, 1, 1}, {&__pyx_n_s_cudaBoundaryModeZero, __pyx_k_cudaBoundaryModeZero, sizeof(__pyx_k_cudaBoundaryModeZero), 0, 0, 1, 1}, {&__pyx_n_s_cudaCGScope, __pyx_k_cudaCGScope, sizeof(__pyx_k_cudaCGScope), 0, 0, 1, 1}, {&__pyx_n_s_cudaCGScopeGrid, __pyx_k_cudaCGScopeGrid, sizeof(__pyx_k_cudaCGScopeGrid), 0, 0, 1, 1}, {&__pyx_n_s_cudaCGScopeInvalid, __pyx_k_cudaCGScopeInvalid, sizeof(__pyx_k_cudaCGScopeInvalid), 0, 0, 1, 1}, {&__pyx_n_s_cudaCGScopeMultiGrid, __pyx_k_cudaCGScopeMultiGrid, sizeof(__pyx_k_cudaCGScopeMultiGrid), 0, 0, 1, 1}, {&__pyx_n_s_cudaChannelFormatDesc, __pyx_k_cudaChannelFormatDesc, sizeof(__pyx_k_cudaChannelFormatDesc), 0, 0, 1, 1}, {&__pyx_n_s_cudaChannelFormatDesc___reduce_c, __pyx_k_cudaChannelFormatDesc___reduce_c, sizeof(__pyx_k_cudaChannelFormatDesc___reduce_c), 0, 0, 1, 1}, {&__pyx_n_s_cudaChannelFormatDesc___setstate, __pyx_k_cudaChannelFormatDesc___setstate, sizeof(__pyx_k_cudaChannelFormatDesc___setstate), 0, 0, 1, 1}, {&__pyx_n_s_cudaChannelFormatDesc_getPtr, __pyx_k_cudaChannelFormatDesc_getPtr, sizeof(__pyx_k_cudaChannelFormatDesc_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaChannelFormatKind, __pyx_k_cudaChannelFormatKind, sizeof(__pyx_k_cudaChannelFormatKind), 0, 0, 1, 1}, {&__pyx_n_s_cudaChannelFormatKindFloat, __pyx_k_cudaChannelFormatKindFloat, sizeof(__pyx_k_cudaChannelFormatKindFloat), 0, 0, 1, 1}, {&__pyx_n_s_cudaChannelFormatKindNV12, __pyx_k_cudaChannelFormatKindNV12, sizeof(__pyx_k_cudaChannelFormatKindNV12), 0, 0, 1, 1}, {&__pyx_n_s_cudaChannelFormatKindNone, __pyx_k_cudaChannelFormatKindNone, sizeof(__pyx_k_cudaChannelFormatKindNone), 0, 0, 1, 1}, {&__pyx_n_s_cudaChannelFormatKindSigned, __pyx_k_cudaChannelFormatKindSigned, sizeof(__pyx_k_cudaChannelFormatKindSigned), 0, 0, 1, 1}, {&__pyx_n_s_cudaChannelFormatKindSignedBlock, __pyx_k_cudaChannelFormatKindSignedBlock, sizeof(__pyx_k_cudaChannelFormatKindSignedBlock), 0, 0, 1, 1}, {&__pyx_n_s_cudaChannelFormatKindSignedBlock_2, __pyx_k_cudaChannelFormatKindSignedBlock_2, sizeof(__pyx_k_cudaChannelFormatKindSignedBlock_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaChannelFormatKindSignedBlock_3, __pyx_k_cudaChannelFormatKindSignedBlock_3, sizeof(__pyx_k_cudaChannelFormatKindSignedBlock_3), 0, 0, 1, 1}, {&__pyx_n_s_cudaChannelFormatKindSignedNorma, __pyx_k_cudaChannelFormatKindSignedNorma, sizeof(__pyx_k_cudaChannelFormatKindSignedNorma), 0, 0, 1, 1}, {&__pyx_n_s_cudaChannelFormatKindSignedNorma_2, __pyx_k_cudaChannelFormatKindSignedNorma_2, sizeof(__pyx_k_cudaChannelFormatKindSignedNorma_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaChannelFormatKindSignedNorma_3, __pyx_k_cudaChannelFormatKindSignedNorma_3, sizeof(__pyx_k_cudaChannelFormatKindSignedNorma_3), 0, 0, 1, 1}, {&__pyx_n_s_cudaChannelFormatKindSignedNorma_4, __pyx_k_cudaChannelFormatKindSignedNorma_4, sizeof(__pyx_k_cudaChannelFormatKindSignedNorma_4), 0, 0, 1, 1}, {&__pyx_n_s_cudaChannelFormatKindSignedNorma_5, __pyx_k_cudaChannelFormatKindSignedNorma_5, sizeof(__pyx_k_cudaChannelFormatKindSignedNorma_5), 0, 0, 1, 1}, {&__pyx_n_s_cudaChannelFormatKindSignedNorma_6, __pyx_k_cudaChannelFormatKindSignedNorma_6, sizeof(__pyx_k_cudaChannelFormatKindSignedNorma_6), 0, 0, 1, 1}, {&__pyx_n_s_cudaChannelFormatKindUnsigned, __pyx_k_cudaChannelFormatKindUnsigned, sizeof(__pyx_k_cudaChannelFormatKindUnsigned), 0, 0, 1, 1}, {&__pyx_n_s_cudaChannelFormatKindUnsignedBlo, __pyx_k_cudaChannelFormatKindUnsignedBlo, sizeof(__pyx_k_cudaChannelFormatKindUnsignedBlo), 0, 0, 1, 1}, {&__pyx_n_s_cudaChannelFormatKindUnsignedBlo_10, __pyx_k_cudaChannelFormatKindUnsignedBlo_10, sizeof(__pyx_k_cudaChannelFormatKindUnsignedBlo_10), 0, 0, 1, 1}, {&__pyx_n_s_cudaChannelFormatKindUnsignedBlo_11, __pyx_k_cudaChannelFormatKindUnsignedBlo_11, sizeof(__pyx_k_cudaChannelFormatKindUnsignedBlo_11), 0, 0, 1, 1}, {&__pyx_n_s_cudaChannelFormatKindUnsignedBlo_2, __pyx_k_cudaChannelFormatKindUnsignedBlo_2, sizeof(__pyx_k_cudaChannelFormatKindUnsignedBlo_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaChannelFormatKindUnsignedBlo_3, __pyx_k_cudaChannelFormatKindUnsignedBlo_3, sizeof(__pyx_k_cudaChannelFormatKindUnsignedBlo_3), 0, 0, 1, 1}, {&__pyx_n_s_cudaChannelFormatKindUnsignedBlo_4, __pyx_k_cudaChannelFormatKindUnsignedBlo_4, sizeof(__pyx_k_cudaChannelFormatKindUnsignedBlo_4), 0, 0, 1, 1}, {&__pyx_n_s_cudaChannelFormatKindUnsignedBlo_5, __pyx_k_cudaChannelFormatKindUnsignedBlo_5, sizeof(__pyx_k_cudaChannelFormatKindUnsignedBlo_5), 0, 0, 1, 1}, {&__pyx_n_s_cudaChannelFormatKindUnsignedBlo_6, __pyx_k_cudaChannelFormatKindUnsignedBlo_6, sizeof(__pyx_k_cudaChannelFormatKindUnsignedBlo_6), 0, 0, 1, 1}, {&__pyx_n_s_cudaChannelFormatKindUnsignedBlo_7, __pyx_k_cudaChannelFormatKindUnsignedBlo_7, sizeof(__pyx_k_cudaChannelFormatKindUnsignedBlo_7), 0, 0, 1, 1}, {&__pyx_n_s_cudaChannelFormatKindUnsignedBlo_8, __pyx_k_cudaChannelFormatKindUnsignedBlo_8, sizeof(__pyx_k_cudaChannelFormatKindUnsignedBlo_8), 0, 0, 1, 1}, {&__pyx_n_s_cudaChannelFormatKindUnsignedBlo_9, __pyx_k_cudaChannelFormatKindUnsignedBlo_9, sizeof(__pyx_k_cudaChannelFormatKindUnsignedBlo_9), 0, 0, 1, 1}, {&__pyx_n_s_cudaChannelFormatKindUnsignedNor, __pyx_k_cudaChannelFormatKindUnsignedNor, sizeof(__pyx_k_cudaChannelFormatKindUnsignedNor), 0, 0, 1, 1}, {&__pyx_n_s_cudaChannelFormatKindUnsignedNor_2, __pyx_k_cudaChannelFormatKindUnsignedNor_2, sizeof(__pyx_k_cudaChannelFormatKindUnsignedNor_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaChannelFormatKindUnsignedNor_3, __pyx_k_cudaChannelFormatKindUnsignedNor_3, sizeof(__pyx_k_cudaChannelFormatKindUnsignedNor_3), 0, 0, 1, 1}, {&__pyx_n_s_cudaChannelFormatKindUnsignedNor_4, __pyx_k_cudaChannelFormatKindUnsignedNor_4, sizeof(__pyx_k_cudaChannelFormatKindUnsignedNor_4), 0, 0, 1, 1}, {&__pyx_n_s_cudaChannelFormatKindUnsignedNor_5, __pyx_k_cudaChannelFormatKindUnsignedNor_5, sizeof(__pyx_k_cudaChannelFormatKindUnsignedNor_5), 0, 0, 1, 1}, {&__pyx_n_s_cudaChannelFormatKindUnsignedNor_6, __pyx_k_cudaChannelFormatKindUnsignedNor_6, sizeof(__pyx_k_cudaChannelFormatKindUnsignedNor_6), 0, 0, 1, 1}, {&__pyx_n_s_cudaChildGraphNodeParams, __pyx_k_cudaChildGraphNodeParams, sizeof(__pyx_k_cudaChildGraphNodeParams), 0, 0, 1, 1}, {&__pyx_n_s_cudaChildGraphNodeParams___reduc, __pyx_k_cudaChildGraphNodeParams___reduc, sizeof(__pyx_k_cudaChildGraphNodeParams___reduc), 0, 0, 1, 1}, {&__pyx_n_s_cudaChildGraphNodeParams___setst, __pyx_k_cudaChildGraphNodeParams___setst, sizeof(__pyx_k_cudaChildGraphNodeParams___setst), 0, 0, 1, 1}, {&__pyx_n_s_cudaChildGraphNodeParams_getPtr, __pyx_k_cudaChildGraphNodeParams_getPtr, sizeof(__pyx_k_cudaChildGraphNodeParams_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaChooseDevice, __pyx_k_cudaChooseDevice, sizeof(__pyx_k_cudaChooseDevice), 0, 0, 1, 1}, {&__pyx_n_s_cudaClusterSchedulingPolicy, __pyx_k_cudaClusterSchedulingPolicy, sizeof(__pyx_k_cudaClusterSchedulingPolicy), 0, 0, 1, 1}, {&__pyx_n_s_cudaClusterSchedulingPolicyDefau, __pyx_k_cudaClusterSchedulingPolicyDefau, sizeof(__pyx_k_cudaClusterSchedulingPolicyDefau), 0, 0, 1, 1}, {&__pyx_n_s_cudaClusterSchedulingPolicyLoadB, __pyx_k_cudaClusterSchedulingPolicyLoadB, sizeof(__pyx_k_cudaClusterSchedulingPolicyLoadB), 0, 0, 1, 1}, {&__pyx_n_s_cudaClusterSchedulingPolicySprea, __pyx_k_cudaClusterSchedulingPolicySprea, sizeof(__pyx_k_cudaClusterSchedulingPolicySprea), 0, 0, 1, 1}, {&__pyx_n_s_cudaComputeMode, __pyx_k_cudaComputeMode, sizeof(__pyx_k_cudaComputeMode), 0, 0, 1, 1}, {&__pyx_n_s_cudaComputeModeDefault, __pyx_k_cudaComputeModeDefault, sizeof(__pyx_k_cudaComputeModeDefault), 0, 0, 1, 1}, {&__pyx_n_s_cudaComputeModeExclusive, __pyx_k_cudaComputeModeExclusive, sizeof(__pyx_k_cudaComputeModeExclusive), 0, 0, 1, 1}, {&__pyx_n_s_cudaComputeModeExclusiveProcess, __pyx_k_cudaComputeModeExclusiveProcess, sizeof(__pyx_k_cudaComputeModeExclusiveProcess), 0, 0, 1, 1}, {&__pyx_n_s_cudaComputeModeProhibited, __pyx_k_cudaComputeModeProhibited, sizeof(__pyx_k_cudaComputeModeProhibited), 0, 0, 1, 1}, {&__pyx_n_s_cudaConditionalNodeParams, __pyx_k_cudaConditionalNodeParams, sizeof(__pyx_k_cudaConditionalNodeParams), 0, 0, 1, 1}, {&__pyx_n_s_cudaConditionalNodeParams___redu, __pyx_k_cudaConditionalNodeParams___redu, sizeof(__pyx_k_cudaConditionalNodeParams___redu), 0, 0, 1, 1}, {&__pyx_n_s_cudaConditionalNodeParams___sets, __pyx_k_cudaConditionalNodeParams___sets, sizeof(__pyx_k_cudaConditionalNodeParams___sets), 0, 0, 1, 1}, {&__pyx_n_s_cudaConditionalNodeParams_getPtr, __pyx_k_cudaConditionalNodeParams_getPtr, sizeof(__pyx_k_cudaConditionalNodeParams_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaCooperativeLaunchMultiDevice, __pyx_k_cudaCooperativeLaunchMultiDevice, sizeof(__pyx_k_cudaCooperativeLaunchMultiDevice), 0, 0, 1, 1}, {&__pyx_n_s_cudaCooperativeLaunchMultiDevice_2, __pyx_k_cudaCooperativeLaunchMultiDevice_2, sizeof(__pyx_k_cudaCooperativeLaunchMultiDevice_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaCpuDeviceId, __pyx_k_cudaCpuDeviceId, sizeof(__pyx_k_cudaCpuDeviceId), 0, 0, 1, 1}, {&__pyx_n_s_cudaCreateChannelDesc, __pyx_k_cudaCreateChannelDesc, sizeof(__pyx_k_cudaCreateChannelDesc), 0, 0, 1, 1}, {&__pyx_n_s_cudaCreateSurfaceObject, __pyx_k_cudaCreateSurfaceObject, sizeof(__pyx_k_cudaCreateSurfaceObject), 0, 0, 1, 1}, {&__pyx_n_s_cudaCreateTextureObject, __pyx_k_cudaCreateTextureObject, sizeof(__pyx_k_cudaCreateTextureObject), 0, 0, 1, 1}, {&__pyx_n_s_cudaCtxResetPersistingL2Cache, __pyx_k_cudaCtxResetPersistingL2Cache, sizeof(__pyx_k_cudaCtxResetPersistingL2Cache), 0, 0, 1, 1}, {&__pyx_n_s_cudaDataType, __pyx_k_cudaDataType, sizeof(__pyx_k_cudaDataType), 0, 0, 1, 1}, {&__pyx_n_s_cudaDestroyExternalMemory, __pyx_k_cudaDestroyExternalMemory, sizeof(__pyx_k_cudaDestroyExternalMemory), 0, 0, 1, 1}, {&__pyx_n_s_cudaDestroyExternalSemaphore, __pyx_k_cudaDestroyExternalSemaphore, sizeof(__pyx_k_cudaDestroyExternalSemaphore), 0, 0, 1, 1}, {&__pyx_n_s_cudaDestroySurfaceObject, __pyx_k_cudaDestroySurfaceObject, sizeof(__pyx_k_cudaDestroySurfaceObject), 0, 0, 1, 1}, {&__pyx_n_s_cudaDestroyTextureObject, __pyx_k_cudaDestroyTextureObject, sizeof(__pyx_k_cudaDestroyTextureObject), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrAsyncEngineCount, __pyx_k_cudaDevAttrAsyncEngineCount, sizeof(__pyx_k_cudaDevAttrAsyncEngineCount), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrCanFlushRemoteWrites, __pyx_k_cudaDevAttrCanFlushRemoteWrites, sizeof(__pyx_k_cudaDevAttrCanFlushRemoteWrites), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrCanMapHostMemory, __pyx_k_cudaDevAttrCanMapHostMemory, sizeof(__pyx_k_cudaDevAttrCanMapHostMemory), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrCanUseHostPointerForR, __pyx_k_cudaDevAttrCanUseHostPointerForR, sizeof(__pyx_k_cudaDevAttrCanUseHostPointerForR), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrClockRate, __pyx_k_cudaDevAttrClockRate, sizeof(__pyx_k_cudaDevAttrClockRate), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrClusterLaunch, __pyx_k_cudaDevAttrClusterLaunch, sizeof(__pyx_k_cudaDevAttrClusterLaunch), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrComputeCapabilityMajo, __pyx_k_cudaDevAttrComputeCapabilityMajo, sizeof(__pyx_k_cudaDevAttrComputeCapabilityMajo), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrComputeCapabilityMino, __pyx_k_cudaDevAttrComputeCapabilityMino, sizeof(__pyx_k_cudaDevAttrComputeCapabilityMino), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrComputeMode, __pyx_k_cudaDevAttrComputeMode, sizeof(__pyx_k_cudaDevAttrComputeMode), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrComputePreemptionSupp, __pyx_k_cudaDevAttrComputePreemptionSupp, sizeof(__pyx_k_cudaDevAttrComputePreemptionSupp), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrConcurrentKernels, __pyx_k_cudaDevAttrConcurrentKernels, sizeof(__pyx_k_cudaDevAttrConcurrentKernels), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrConcurrentManagedAcce, __pyx_k_cudaDevAttrConcurrentManagedAcce, sizeof(__pyx_k_cudaDevAttrConcurrentManagedAcce), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrCooperativeLaunch, __pyx_k_cudaDevAttrCooperativeLaunch, sizeof(__pyx_k_cudaDevAttrCooperativeLaunch), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrCooperativeMultiDevic, __pyx_k_cudaDevAttrCooperativeMultiDevic, sizeof(__pyx_k_cudaDevAttrCooperativeMultiDevic), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrD3D12CigSupported, __pyx_k_cudaDevAttrD3D12CigSupported, sizeof(__pyx_k_cudaDevAttrD3D12CigSupported), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrDeferredMappingCudaAr, __pyx_k_cudaDevAttrDeferredMappingCudaAr, sizeof(__pyx_k_cudaDevAttrDeferredMappingCudaAr), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrDirectManagedMemAcces, __pyx_k_cudaDevAttrDirectManagedMemAcces, sizeof(__pyx_k_cudaDevAttrDirectManagedMemAcces), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrEccEnabled, __pyx_k_cudaDevAttrEccEnabled, sizeof(__pyx_k_cudaDevAttrEccEnabled), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrGPUDirectRDMAFlushWri, __pyx_k_cudaDevAttrGPUDirectRDMAFlushWri, sizeof(__pyx_k_cudaDevAttrGPUDirectRDMAFlushWri), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrGPUDirectRDMASupporte, __pyx_k_cudaDevAttrGPUDirectRDMASupporte, sizeof(__pyx_k_cudaDevAttrGPUDirectRDMASupporte), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrGPUDirectRDMAWritesOr, __pyx_k_cudaDevAttrGPUDirectRDMAWritesOr, sizeof(__pyx_k_cudaDevAttrGPUDirectRDMAWritesOr), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrGlobalL1CacheSupporte, __pyx_k_cudaDevAttrGlobalL1CacheSupporte, sizeof(__pyx_k_cudaDevAttrGlobalL1CacheSupporte), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrGlobalMemoryBusWidth, __pyx_k_cudaDevAttrGlobalMemoryBusWidth, sizeof(__pyx_k_cudaDevAttrGlobalMemoryBusWidth), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrGpuOverlap, __pyx_k_cudaDevAttrGpuOverlap, sizeof(__pyx_k_cudaDevAttrGpuOverlap), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrHostNativeAtomicSuppo, __pyx_k_cudaDevAttrHostNativeAtomicSuppo, sizeof(__pyx_k_cudaDevAttrHostNativeAtomicSuppo), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrHostNumaId, __pyx_k_cudaDevAttrHostNumaId, sizeof(__pyx_k_cudaDevAttrHostNumaId), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrHostRegisterReadOnlyS, __pyx_k_cudaDevAttrHostRegisterReadOnlyS, sizeof(__pyx_k_cudaDevAttrHostRegisterReadOnlyS), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrHostRegisterSupported, __pyx_k_cudaDevAttrHostRegisterSupported, sizeof(__pyx_k_cudaDevAttrHostRegisterSupported), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrIntegrated, __pyx_k_cudaDevAttrIntegrated, sizeof(__pyx_k_cudaDevAttrIntegrated), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrIpcEventSupport, __pyx_k_cudaDevAttrIpcEventSupport, sizeof(__pyx_k_cudaDevAttrIpcEventSupport), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrIsMultiGpuBoard, __pyx_k_cudaDevAttrIsMultiGpuBoard, sizeof(__pyx_k_cudaDevAttrIsMultiGpuBoard), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrKernelExecTimeout, __pyx_k_cudaDevAttrKernelExecTimeout, sizeof(__pyx_k_cudaDevAttrKernelExecTimeout), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrL2CacheSize, __pyx_k_cudaDevAttrL2CacheSize, sizeof(__pyx_k_cudaDevAttrL2CacheSize), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrLocalL1CacheSupported, __pyx_k_cudaDevAttrLocalL1CacheSupported, sizeof(__pyx_k_cudaDevAttrLocalL1CacheSupported), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrManagedMemory, __pyx_k_cudaDevAttrManagedMemory, sizeof(__pyx_k_cudaDevAttrManagedMemory), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMax, __pyx_k_cudaDevAttrMax, sizeof(__pyx_k_cudaDevAttrMax), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxAccessPolicyWindow, __pyx_k_cudaDevAttrMaxAccessPolicyWindow, sizeof(__pyx_k_cudaDevAttrMaxAccessPolicyWindow), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxBlockDimX, __pyx_k_cudaDevAttrMaxBlockDimX, sizeof(__pyx_k_cudaDevAttrMaxBlockDimX), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxBlockDimY, __pyx_k_cudaDevAttrMaxBlockDimY, sizeof(__pyx_k_cudaDevAttrMaxBlockDimY), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxBlockDimZ, __pyx_k_cudaDevAttrMaxBlockDimZ, sizeof(__pyx_k_cudaDevAttrMaxBlockDimZ), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxBlocksPerMultiproc, __pyx_k_cudaDevAttrMaxBlocksPerMultiproc, sizeof(__pyx_k_cudaDevAttrMaxBlocksPerMultiproc), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxGridDimX, __pyx_k_cudaDevAttrMaxGridDimX, sizeof(__pyx_k_cudaDevAttrMaxGridDimX), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxGridDimY, __pyx_k_cudaDevAttrMaxGridDimY, sizeof(__pyx_k_cudaDevAttrMaxGridDimY), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxGridDimZ, __pyx_k_cudaDevAttrMaxGridDimZ, sizeof(__pyx_k_cudaDevAttrMaxGridDimZ), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxPersistingL2CacheS, __pyx_k_cudaDevAttrMaxPersistingL2CacheS, sizeof(__pyx_k_cudaDevAttrMaxPersistingL2CacheS), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxPitch, __pyx_k_cudaDevAttrMaxPitch, sizeof(__pyx_k_cudaDevAttrMaxPitch), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxRegistersPerBlock, __pyx_k_cudaDevAttrMaxRegistersPerBlock, sizeof(__pyx_k_cudaDevAttrMaxRegistersPerBlock), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxRegistersPerMultip, __pyx_k_cudaDevAttrMaxRegistersPerMultip, sizeof(__pyx_k_cudaDevAttrMaxRegistersPerMultip), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxSharedMemoryPerBlo, __pyx_k_cudaDevAttrMaxSharedMemoryPerBlo, sizeof(__pyx_k_cudaDevAttrMaxSharedMemoryPerBlo), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxSharedMemoryPerBlo_2, __pyx_k_cudaDevAttrMaxSharedMemoryPerBlo_2, sizeof(__pyx_k_cudaDevAttrMaxSharedMemoryPerBlo_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxSharedMemoryPerMul, __pyx_k_cudaDevAttrMaxSharedMemoryPerMul, sizeof(__pyx_k_cudaDevAttrMaxSharedMemoryPerMul), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxSurface1DLayeredLa, __pyx_k_cudaDevAttrMaxSurface1DLayeredLa, sizeof(__pyx_k_cudaDevAttrMaxSurface1DLayeredLa), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxSurface1DLayeredWi, __pyx_k_cudaDevAttrMaxSurface1DLayeredWi, sizeof(__pyx_k_cudaDevAttrMaxSurface1DLayeredWi), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxSurface1DWidth, __pyx_k_cudaDevAttrMaxSurface1DWidth, sizeof(__pyx_k_cudaDevAttrMaxSurface1DWidth), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxSurface2DHeight, __pyx_k_cudaDevAttrMaxSurface2DHeight, sizeof(__pyx_k_cudaDevAttrMaxSurface2DHeight), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxSurface2DLayeredHe, __pyx_k_cudaDevAttrMaxSurface2DLayeredHe, sizeof(__pyx_k_cudaDevAttrMaxSurface2DLayeredHe), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxSurface2DLayeredLa, __pyx_k_cudaDevAttrMaxSurface2DLayeredLa, sizeof(__pyx_k_cudaDevAttrMaxSurface2DLayeredLa), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxSurface2DLayeredWi, __pyx_k_cudaDevAttrMaxSurface2DLayeredWi, sizeof(__pyx_k_cudaDevAttrMaxSurface2DLayeredWi), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxSurface2DWidth, __pyx_k_cudaDevAttrMaxSurface2DWidth, sizeof(__pyx_k_cudaDevAttrMaxSurface2DWidth), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxSurface3DDepth, __pyx_k_cudaDevAttrMaxSurface3DDepth, sizeof(__pyx_k_cudaDevAttrMaxSurface3DDepth), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxSurface3DHeight, __pyx_k_cudaDevAttrMaxSurface3DHeight, sizeof(__pyx_k_cudaDevAttrMaxSurface3DHeight), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxSurface3DWidth, __pyx_k_cudaDevAttrMaxSurface3DWidth, sizeof(__pyx_k_cudaDevAttrMaxSurface3DWidth), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxSurfaceCubemapLaye, __pyx_k_cudaDevAttrMaxSurfaceCubemapLaye, sizeof(__pyx_k_cudaDevAttrMaxSurfaceCubemapLaye), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxSurfaceCubemapLaye_2, __pyx_k_cudaDevAttrMaxSurfaceCubemapLaye_2, sizeof(__pyx_k_cudaDevAttrMaxSurfaceCubemapLaye_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxSurfaceCubemapWidt, __pyx_k_cudaDevAttrMaxSurfaceCubemapWidt, sizeof(__pyx_k_cudaDevAttrMaxSurfaceCubemapWidt), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxTexture1DLayeredLa, __pyx_k_cudaDevAttrMaxTexture1DLayeredLa, sizeof(__pyx_k_cudaDevAttrMaxTexture1DLayeredLa), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxTexture1DLayeredWi, __pyx_k_cudaDevAttrMaxTexture1DLayeredWi, sizeof(__pyx_k_cudaDevAttrMaxTexture1DLayeredWi), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxTexture1DLinearWid, __pyx_k_cudaDevAttrMaxTexture1DLinearWid, sizeof(__pyx_k_cudaDevAttrMaxTexture1DLinearWid), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxTexture1DMipmapped, __pyx_k_cudaDevAttrMaxTexture1DMipmapped, sizeof(__pyx_k_cudaDevAttrMaxTexture1DMipmapped), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxTexture1DWidth, __pyx_k_cudaDevAttrMaxTexture1DWidth, sizeof(__pyx_k_cudaDevAttrMaxTexture1DWidth), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxTexture2DGatherHei, __pyx_k_cudaDevAttrMaxTexture2DGatherHei, sizeof(__pyx_k_cudaDevAttrMaxTexture2DGatherHei), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxTexture2DGatherWid, __pyx_k_cudaDevAttrMaxTexture2DGatherWid, sizeof(__pyx_k_cudaDevAttrMaxTexture2DGatherWid), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxTexture2DHeight, __pyx_k_cudaDevAttrMaxTexture2DHeight, sizeof(__pyx_k_cudaDevAttrMaxTexture2DHeight), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxTexture2DLayeredHe, __pyx_k_cudaDevAttrMaxTexture2DLayeredHe, sizeof(__pyx_k_cudaDevAttrMaxTexture2DLayeredHe), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxTexture2DLayeredLa, __pyx_k_cudaDevAttrMaxTexture2DLayeredLa, sizeof(__pyx_k_cudaDevAttrMaxTexture2DLayeredLa), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxTexture2DLayeredWi, __pyx_k_cudaDevAttrMaxTexture2DLayeredWi, sizeof(__pyx_k_cudaDevAttrMaxTexture2DLayeredWi), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxTexture2DLinearHei, __pyx_k_cudaDevAttrMaxTexture2DLinearHei, sizeof(__pyx_k_cudaDevAttrMaxTexture2DLinearHei), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxTexture2DLinearPit, __pyx_k_cudaDevAttrMaxTexture2DLinearPit, sizeof(__pyx_k_cudaDevAttrMaxTexture2DLinearPit), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxTexture2DLinearWid, __pyx_k_cudaDevAttrMaxTexture2DLinearWid, sizeof(__pyx_k_cudaDevAttrMaxTexture2DLinearWid), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxTexture2DMipmapped, __pyx_k_cudaDevAttrMaxTexture2DMipmapped, sizeof(__pyx_k_cudaDevAttrMaxTexture2DMipmapped), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxTexture2DMipmapped_2, __pyx_k_cudaDevAttrMaxTexture2DMipmapped_2, sizeof(__pyx_k_cudaDevAttrMaxTexture2DMipmapped_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxTexture2DWidth, __pyx_k_cudaDevAttrMaxTexture2DWidth, sizeof(__pyx_k_cudaDevAttrMaxTexture2DWidth), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxTexture3DDepth, __pyx_k_cudaDevAttrMaxTexture3DDepth, sizeof(__pyx_k_cudaDevAttrMaxTexture3DDepth), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxTexture3DDepthAlt, __pyx_k_cudaDevAttrMaxTexture3DDepthAlt, sizeof(__pyx_k_cudaDevAttrMaxTexture3DDepthAlt), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxTexture3DHeight, __pyx_k_cudaDevAttrMaxTexture3DHeight, sizeof(__pyx_k_cudaDevAttrMaxTexture3DHeight), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxTexture3DHeightAlt, __pyx_k_cudaDevAttrMaxTexture3DHeightAlt, sizeof(__pyx_k_cudaDevAttrMaxTexture3DHeightAlt), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxTexture3DWidth, __pyx_k_cudaDevAttrMaxTexture3DWidth, sizeof(__pyx_k_cudaDevAttrMaxTexture3DWidth), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxTexture3DWidthAlt, __pyx_k_cudaDevAttrMaxTexture3DWidthAlt, sizeof(__pyx_k_cudaDevAttrMaxTexture3DWidthAlt), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxTextureCubemapLaye, __pyx_k_cudaDevAttrMaxTextureCubemapLaye, sizeof(__pyx_k_cudaDevAttrMaxTextureCubemapLaye), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxTextureCubemapLaye_2, __pyx_k_cudaDevAttrMaxTextureCubemapLaye_2, sizeof(__pyx_k_cudaDevAttrMaxTextureCubemapLaye_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxTextureCubemapWidt, __pyx_k_cudaDevAttrMaxTextureCubemapWidt, sizeof(__pyx_k_cudaDevAttrMaxTextureCubemapWidt), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxThreadsPerBlock, __pyx_k_cudaDevAttrMaxThreadsPerBlock, sizeof(__pyx_k_cudaDevAttrMaxThreadsPerBlock), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxThreadsPerMultiPro, __pyx_k_cudaDevAttrMaxThreadsPerMultiPro, sizeof(__pyx_k_cudaDevAttrMaxThreadsPerMultiPro), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMaxTimelineSemaphoreI, __pyx_k_cudaDevAttrMaxTimelineSemaphoreI, sizeof(__pyx_k_cudaDevAttrMaxTimelineSemaphoreI), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMemSyncDomainCount, __pyx_k_cudaDevAttrMemSyncDomainCount, sizeof(__pyx_k_cudaDevAttrMemSyncDomainCount), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMemoryClockRate, __pyx_k_cudaDevAttrMemoryClockRate, sizeof(__pyx_k_cudaDevAttrMemoryClockRate), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMemoryPoolSupportedHa, __pyx_k_cudaDevAttrMemoryPoolSupportedHa, sizeof(__pyx_k_cudaDevAttrMemoryPoolSupportedHa), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMemoryPoolsSupported, __pyx_k_cudaDevAttrMemoryPoolsSupported, sizeof(__pyx_k_cudaDevAttrMemoryPoolsSupported), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMpsEnabled, __pyx_k_cudaDevAttrMpsEnabled, sizeof(__pyx_k_cudaDevAttrMpsEnabled), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMultiGpuBoardGroupID, __pyx_k_cudaDevAttrMultiGpuBoardGroupID, sizeof(__pyx_k_cudaDevAttrMultiGpuBoardGroupID), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrMultiProcessorCount, __pyx_k_cudaDevAttrMultiProcessorCount, sizeof(__pyx_k_cudaDevAttrMultiProcessorCount), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrNumaConfig, __pyx_k_cudaDevAttrNumaConfig, sizeof(__pyx_k_cudaDevAttrNumaConfig), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrNumaId, __pyx_k_cudaDevAttrNumaId, sizeof(__pyx_k_cudaDevAttrNumaId), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrPageableMemoryAccess, __pyx_k_cudaDevAttrPageableMemoryAccess, sizeof(__pyx_k_cudaDevAttrPageableMemoryAccess), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrPageableMemoryAccessU, __pyx_k_cudaDevAttrPageableMemoryAccessU, sizeof(__pyx_k_cudaDevAttrPageableMemoryAccessU), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrPciBusId, __pyx_k_cudaDevAttrPciBusId, sizeof(__pyx_k_cudaDevAttrPciBusId), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrPciDeviceId, __pyx_k_cudaDevAttrPciDeviceId, sizeof(__pyx_k_cudaDevAttrPciDeviceId), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrPciDomainId, __pyx_k_cudaDevAttrPciDomainId, sizeof(__pyx_k_cudaDevAttrPciDomainId), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrReserved122, __pyx_k_cudaDevAttrReserved122, sizeof(__pyx_k_cudaDevAttrReserved122), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrReserved123, __pyx_k_cudaDevAttrReserved123, sizeof(__pyx_k_cudaDevAttrReserved123), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrReserved124, __pyx_k_cudaDevAttrReserved124, sizeof(__pyx_k_cudaDevAttrReserved124), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrReserved127, __pyx_k_cudaDevAttrReserved127, sizeof(__pyx_k_cudaDevAttrReserved127), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrReserved128, __pyx_k_cudaDevAttrReserved128, sizeof(__pyx_k_cudaDevAttrReserved128), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrReserved129, __pyx_k_cudaDevAttrReserved129, sizeof(__pyx_k_cudaDevAttrReserved129), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrReserved132, __pyx_k_cudaDevAttrReserved132, sizeof(__pyx_k_cudaDevAttrReserved132), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrReserved92, __pyx_k_cudaDevAttrReserved92, sizeof(__pyx_k_cudaDevAttrReserved92), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrReserved93, __pyx_k_cudaDevAttrReserved93, sizeof(__pyx_k_cudaDevAttrReserved93), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrReserved94, __pyx_k_cudaDevAttrReserved94, sizeof(__pyx_k_cudaDevAttrReserved94), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrReservedSharedMemoryP, __pyx_k_cudaDevAttrReservedSharedMemoryP, sizeof(__pyx_k_cudaDevAttrReservedSharedMemoryP), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrSingleToDoublePrecisi, __pyx_k_cudaDevAttrSingleToDoublePrecisi, sizeof(__pyx_k_cudaDevAttrSingleToDoublePrecisi), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrSparseCudaArraySuppor, __pyx_k_cudaDevAttrSparseCudaArraySuppor, sizeof(__pyx_k_cudaDevAttrSparseCudaArraySuppor), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrStreamPrioritiesSuppo, __pyx_k_cudaDevAttrStreamPrioritiesSuppo, sizeof(__pyx_k_cudaDevAttrStreamPrioritiesSuppo), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrSurfaceAlignment, __pyx_k_cudaDevAttrSurfaceAlignment, sizeof(__pyx_k_cudaDevAttrSurfaceAlignment), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrTccDriver, __pyx_k_cudaDevAttrTccDriver, sizeof(__pyx_k_cudaDevAttrTccDriver), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrTextureAlignment, __pyx_k_cudaDevAttrTextureAlignment, sizeof(__pyx_k_cudaDevAttrTextureAlignment), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrTexturePitchAlignment, __pyx_k_cudaDevAttrTexturePitchAlignment, sizeof(__pyx_k_cudaDevAttrTexturePitchAlignment), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrTimelineSemaphoreInte, __pyx_k_cudaDevAttrTimelineSemaphoreInte, sizeof(__pyx_k_cudaDevAttrTimelineSemaphoreInte), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrTotalConstantMemory, __pyx_k_cudaDevAttrTotalConstantMemory, sizeof(__pyx_k_cudaDevAttrTotalConstantMemory), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrUnifiedAddressing, __pyx_k_cudaDevAttrUnifiedAddressing, sizeof(__pyx_k_cudaDevAttrUnifiedAddressing), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevAttrWarpSize, __pyx_k_cudaDevAttrWarpSize, sizeof(__pyx_k_cudaDevAttrWarpSize), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevP2PAttrAccessSupported, __pyx_k_cudaDevP2PAttrAccessSupported, sizeof(__pyx_k_cudaDevP2PAttrAccessSupported), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevP2PAttrCudaArrayAccessSup, __pyx_k_cudaDevP2PAttrCudaArrayAccessSup, sizeof(__pyx_k_cudaDevP2PAttrCudaArrayAccessSup), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevP2PAttrNativeAtomicSuppor, __pyx_k_cudaDevP2PAttrNativeAtomicSuppor, sizeof(__pyx_k_cudaDevP2PAttrNativeAtomicSuppor), 0, 0, 1, 1}, {&__pyx_n_s_cudaDevP2PAttrPerformanceRank, __pyx_k_cudaDevP2PAttrPerformanceRank, sizeof(__pyx_k_cudaDevP2PAttrPerformanceRank), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceAttr, __pyx_k_cudaDeviceAttr, sizeof(__pyx_k_cudaDeviceAttr), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceBlockingSync, __pyx_k_cudaDeviceBlockingSync, sizeof(__pyx_k_cudaDeviceBlockingSync), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceCanAccessPeer, __pyx_k_cudaDeviceCanAccessPeer, sizeof(__pyx_k_cudaDeviceCanAccessPeer), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceCount, __pyx_k_cudaDeviceCount, sizeof(__pyx_k_cudaDeviceCount), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceDisablePeerAccess, __pyx_k_cudaDeviceDisablePeerAccess, sizeof(__pyx_k_cudaDeviceDisablePeerAccess), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceEnablePeerAccess, __pyx_k_cudaDeviceEnablePeerAccess, sizeof(__pyx_k_cudaDeviceEnablePeerAccess), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceFlushGPUDirectRDMAWrit, __pyx_k_cudaDeviceFlushGPUDirectRDMAWrit, sizeof(__pyx_k_cudaDeviceFlushGPUDirectRDMAWrit), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceGetAttribute, __pyx_k_cudaDeviceGetAttribute, sizeof(__pyx_k_cudaDeviceGetAttribute), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceGetByPCIBusId, __pyx_k_cudaDeviceGetByPCIBusId, sizeof(__pyx_k_cudaDeviceGetByPCIBusId), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceGetCacheConfig, __pyx_k_cudaDeviceGetCacheConfig, sizeof(__pyx_k_cudaDeviceGetCacheConfig), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceGetDefaultMemPool, __pyx_k_cudaDeviceGetDefaultMemPool, sizeof(__pyx_k_cudaDeviceGetDefaultMemPool), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceGetGraphMemAttribute, __pyx_k_cudaDeviceGetGraphMemAttribute, sizeof(__pyx_k_cudaDeviceGetGraphMemAttribute), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceGetLimit, __pyx_k_cudaDeviceGetLimit, sizeof(__pyx_k_cudaDeviceGetLimit), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceGetMemPool, __pyx_k_cudaDeviceGetMemPool, sizeof(__pyx_k_cudaDeviceGetMemPool), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceGetNvSciSyncAttributes, __pyx_k_cudaDeviceGetNvSciSyncAttributes, sizeof(__pyx_k_cudaDeviceGetNvSciSyncAttributes), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceGetP2PAttribute, __pyx_k_cudaDeviceGetP2PAttribute, sizeof(__pyx_k_cudaDeviceGetP2PAttribute), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceGetPCIBusId, __pyx_k_cudaDeviceGetPCIBusId, sizeof(__pyx_k_cudaDeviceGetPCIBusId), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceGetSharedMemConfig, __pyx_k_cudaDeviceGetSharedMemConfig, sizeof(__pyx_k_cudaDeviceGetSharedMemConfig), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceGetStreamPriorityRange, __pyx_k_cudaDeviceGetStreamPriorityRange, sizeof(__pyx_k_cudaDeviceGetStreamPriorityRange), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceGetTexture1DLinearMaxW, __pyx_k_cudaDeviceGetTexture1DLinearMaxW, sizeof(__pyx_k_cudaDeviceGetTexture1DLinearMaxW), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceGraphMemTrim, __pyx_k_cudaDeviceGraphMemTrim, sizeof(__pyx_k_cudaDeviceGraphMemTrim), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceLmemResizeToMax, __pyx_k_cudaDeviceLmemResizeToMax, sizeof(__pyx_k_cudaDeviceLmemResizeToMax), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceMapHost, __pyx_k_cudaDeviceMapHost, sizeof(__pyx_k_cudaDeviceMapHost), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceMask, __pyx_k_cudaDeviceMask, sizeof(__pyx_k_cudaDeviceMask), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceNumaConfig, __pyx_k_cudaDeviceNumaConfig, sizeof(__pyx_k_cudaDeviceNumaConfig), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceNumaConfigNone, __pyx_k_cudaDeviceNumaConfigNone, sizeof(__pyx_k_cudaDeviceNumaConfigNone), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceNumaConfigNumaNode, __pyx_k_cudaDeviceNumaConfigNumaNode, sizeof(__pyx_k_cudaDeviceNumaConfigNumaNode), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceP2PAttr, __pyx_k_cudaDeviceP2PAttr, sizeof(__pyx_k_cudaDeviceP2PAttr), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceProp, __pyx_k_cudaDeviceProp, sizeof(__pyx_k_cudaDeviceProp), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceProp___reduce_cython, __pyx_k_cudaDeviceProp___reduce_cython, sizeof(__pyx_k_cudaDeviceProp___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceProp___setstate_cython, __pyx_k_cudaDeviceProp___setstate_cython, sizeof(__pyx_k_cudaDeviceProp___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceProp_getPtr, __pyx_k_cudaDeviceProp_getPtr, sizeof(__pyx_k_cudaDeviceProp_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceRegisterAsyncNotificat, __pyx_k_cudaDeviceRegisterAsyncNotificat, sizeof(__pyx_k_cudaDeviceRegisterAsyncNotificat), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceReset, __pyx_k_cudaDeviceReset, sizeof(__pyx_k_cudaDeviceReset), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceScheduleAuto, __pyx_k_cudaDeviceScheduleAuto, sizeof(__pyx_k_cudaDeviceScheduleAuto), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceScheduleBlockingSync, __pyx_k_cudaDeviceScheduleBlockingSync, sizeof(__pyx_k_cudaDeviceScheduleBlockingSync), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceScheduleMask, __pyx_k_cudaDeviceScheduleMask, sizeof(__pyx_k_cudaDeviceScheduleMask), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceScheduleSpin, __pyx_k_cudaDeviceScheduleSpin, sizeof(__pyx_k_cudaDeviceScheduleSpin), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceScheduleYield, __pyx_k_cudaDeviceScheduleYield, sizeof(__pyx_k_cudaDeviceScheduleYield), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceSetCacheConfig, __pyx_k_cudaDeviceSetCacheConfig, sizeof(__pyx_k_cudaDeviceSetCacheConfig), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceSetGraphMemAttribute, __pyx_k_cudaDeviceSetGraphMemAttribute, sizeof(__pyx_k_cudaDeviceSetGraphMemAttribute), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceSetLimit, __pyx_k_cudaDeviceSetLimit, sizeof(__pyx_k_cudaDeviceSetLimit), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceSetMemPool, __pyx_k_cudaDeviceSetMemPool, sizeof(__pyx_k_cudaDeviceSetMemPool), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceSetSharedMemConfig, __pyx_k_cudaDeviceSetSharedMemConfig, sizeof(__pyx_k_cudaDeviceSetSharedMemConfig), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceSyncMemops, __pyx_k_cudaDeviceSyncMemops, sizeof(__pyx_k_cudaDeviceSyncMemops), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceSynchronize, __pyx_k_cudaDeviceSynchronize, sizeof(__pyx_k_cudaDeviceSynchronize), 0, 0, 1, 1}, {&__pyx_n_s_cudaDeviceUnregisterAsyncNotific, __pyx_k_cudaDeviceUnregisterAsyncNotific, sizeof(__pyx_k_cudaDeviceUnregisterAsyncNotific), 0, 0, 1, 1}, {&__pyx_n_s_cudaDriverEntryPointQueryResult, __pyx_k_cudaDriverEntryPointQueryResult, sizeof(__pyx_k_cudaDriverEntryPointQueryResult), 0, 0, 1, 1}, {&__pyx_n_s_cudaDriverEntryPointSuccess, __pyx_k_cudaDriverEntryPointSuccess, sizeof(__pyx_k_cudaDriverEntryPointSuccess), 0, 0, 1, 1}, {&__pyx_n_s_cudaDriverEntryPointSymbolNotFou, __pyx_k_cudaDriverEntryPointSymbolNotFou, sizeof(__pyx_k_cudaDriverEntryPointSymbolNotFou), 0, 0, 1, 1}, {&__pyx_n_s_cudaDriverEntryPointVersionNotSu, __pyx_k_cudaDriverEntryPointVersionNotSu, sizeof(__pyx_k_cudaDriverEntryPointVersionNotSu), 0, 0, 1, 1}, {&__pyx_n_s_cudaDriverGetVersion, __pyx_k_cudaDriverGetVersion, sizeof(__pyx_k_cudaDriverGetVersion), 0, 0, 1, 1}, {&__pyx_n_s_cudaEGLStreamConsumerAcquireFram, __pyx_k_cudaEGLStreamConsumerAcquireFram, sizeof(__pyx_k_cudaEGLStreamConsumerAcquireFram), 0, 0, 1, 1}, {&__pyx_n_s_cudaEGLStreamConsumerConnect, __pyx_k_cudaEGLStreamConsumerConnect, sizeof(__pyx_k_cudaEGLStreamConsumerConnect), 0, 0, 1, 1}, {&__pyx_n_s_cudaEGLStreamConsumerConnectWith, __pyx_k_cudaEGLStreamConsumerConnectWith, sizeof(__pyx_k_cudaEGLStreamConsumerConnectWith), 0, 0, 1, 1}, {&__pyx_n_s_cudaEGLStreamConsumerDisconnect, __pyx_k_cudaEGLStreamConsumerDisconnect, sizeof(__pyx_k_cudaEGLStreamConsumerDisconnect), 0, 0, 1, 1}, {&__pyx_n_s_cudaEGLStreamConsumerReleaseFram, __pyx_k_cudaEGLStreamConsumerReleaseFram, sizeof(__pyx_k_cudaEGLStreamConsumerReleaseFram), 0, 0, 1, 1}, {&__pyx_n_s_cudaEGLStreamProducerConnect, __pyx_k_cudaEGLStreamProducerConnect, sizeof(__pyx_k_cudaEGLStreamProducerConnect), 0, 0, 1, 1}, {&__pyx_n_s_cudaEGLStreamProducerDisconnect, __pyx_k_cudaEGLStreamProducerDisconnect, sizeof(__pyx_k_cudaEGLStreamProducerDisconnect), 0, 0, 1, 1}, {&__pyx_n_s_cudaEGLStreamProducerPresentFram, __pyx_k_cudaEGLStreamProducerPresentFram, sizeof(__pyx_k_cudaEGLStreamProducerPresentFram), 0, 0, 1, 1}, {&__pyx_n_s_cudaEGLStreamProducerReturnFrame, __pyx_k_cudaEGLStreamProducerReturnFrame, sizeof(__pyx_k_cudaEGLStreamProducerReturnFrame), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormat, __pyx_k_cudaEglColorFormat, sizeof(__pyx_k_cudaEglColorFormat), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatA, __pyx_k_cudaEglColorFormatA, sizeof(__pyx_k_cudaEglColorFormatA), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatABGR, __pyx_k_cudaEglColorFormatABGR, sizeof(__pyx_k_cudaEglColorFormatABGR), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatARGB, __pyx_k_cudaEglColorFormatARGB, sizeof(__pyx_k_cudaEglColorFormatARGB), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatAYUV, __pyx_k_cudaEglColorFormatAYUV, sizeof(__pyx_k_cudaEglColorFormatAYUV), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatAYUV_ER, __pyx_k_cudaEglColorFormatAYUV_ER, sizeof(__pyx_k_cudaEglColorFormatAYUV_ER), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatBGRA, __pyx_k_cudaEglColorFormatBGRA, sizeof(__pyx_k_cudaEglColorFormatBGRA), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatBayer10BGGR, __pyx_k_cudaEglColorFormatBayer10BGGR, sizeof(__pyx_k_cudaEglColorFormatBayer10BGGR), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatBayer10CCCC, __pyx_k_cudaEglColorFormatBayer10CCCC, sizeof(__pyx_k_cudaEglColorFormatBayer10CCCC), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatBayer10GBRG, __pyx_k_cudaEglColorFormatBayer10GBRG, sizeof(__pyx_k_cudaEglColorFormatBayer10GBRG), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatBayer10GRBG, __pyx_k_cudaEglColorFormatBayer10GRBG, sizeof(__pyx_k_cudaEglColorFormatBayer10GRBG), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatBayer10RGGB, __pyx_k_cudaEglColorFormatBayer10RGGB, sizeof(__pyx_k_cudaEglColorFormatBayer10RGGB), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatBayer12BCCR, __pyx_k_cudaEglColorFormatBayer12BCCR, sizeof(__pyx_k_cudaEglColorFormatBayer12BCCR), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatBayer12BGGR, __pyx_k_cudaEglColorFormatBayer12BGGR, sizeof(__pyx_k_cudaEglColorFormatBayer12BGGR), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatBayer12CBRC, __pyx_k_cudaEglColorFormatBayer12CBRC, sizeof(__pyx_k_cudaEglColorFormatBayer12CBRC), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatBayer12CCCC, __pyx_k_cudaEglColorFormatBayer12CCCC, sizeof(__pyx_k_cudaEglColorFormatBayer12CCCC), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatBayer12CRBC, __pyx_k_cudaEglColorFormatBayer12CRBC, sizeof(__pyx_k_cudaEglColorFormatBayer12CRBC), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatBayer12GBRG, __pyx_k_cudaEglColorFormatBayer12GBRG, sizeof(__pyx_k_cudaEglColorFormatBayer12GBRG), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatBayer12GRBG, __pyx_k_cudaEglColorFormatBayer12GRBG, sizeof(__pyx_k_cudaEglColorFormatBayer12GRBG), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatBayer12RCCB, __pyx_k_cudaEglColorFormatBayer12RCCB, sizeof(__pyx_k_cudaEglColorFormatBayer12RCCB), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatBayer12RGGB, __pyx_k_cudaEglColorFormatBayer12RGGB, sizeof(__pyx_k_cudaEglColorFormatBayer12RGGB), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatBayer14BGGR, __pyx_k_cudaEglColorFormatBayer14BGGR, sizeof(__pyx_k_cudaEglColorFormatBayer14BGGR), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatBayer14GBRG, __pyx_k_cudaEglColorFormatBayer14GBRG, sizeof(__pyx_k_cudaEglColorFormatBayer14GBRG), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatBayer14GRBG, __pyx_k_cudaEglColorFormatBayer14GRBG, sizeof(__pyx_k_cudaEglColorFormatBayer14GRBG), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatBayer14RGGB, __pyx_k_cudaEglColorFormatBayer14RGGB, sizeof(__pyx_k_cudaEglColorFormatBayer14RGGB), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatBayer20BGGR, __pyx_k_cudaEglColorFormatBayer20BGGR, sizeof(__pyx_k_cudaEglColorFormatBayer20BGGR), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatBayer20GBRG, __pyx_k_cudaEglColorFormatBayer20GBRG, sizeof(__pyx_k_cudaEglColorFormatBayer20GBRG), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatBayer20GRBG, __pyx_k_cudaEglColorFormatBayer20GRBG, sizeof(__pyx_k_cudaEglColorFormatBayer20GRBG), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatBayer20RGGB, __pyx_k_cudaEglColorFormatBayer20RGGB, sizeof(__pyx_k_cudaEglColorFormatBayer20RGGB), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatBayerBCCR, __pyx_k_cudaEglColorFormatBayerBCCR, sizeof(__pyx_k_cudaEglColorFormatBayerBCCR), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatBayerBGGR, __pyx_k_cudaEglColorFormatBayerBGGR, sizeof(__pyx_k_cudaEglColorFormatBayerBGGR), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatBayerCBRC, __pyx_k_cudaEglColorFormatBayerCBRC, sizeof(__pyx_k_cudaEglColorFormatBayerCBRC), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatBayerCRBC, __pyx_k_cudaEglColorFormatBayerCRBC, sizeof(__pyx_k_cudaEglColorFormatBayerCRBC), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatBayerGBRG, __pyx_k_cudaEglColorFormatBayerGBRG, sizeof(__pyx_k_cudaEglColorFormatBayerGBRG), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatBayerGRBG, __pyx_k_cudaEglColorFormatBayerGRBG, sizeof(__pyx_k_cudaEglColorFormatBayerGRBG), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatBayerIspBGGR, __pyx_k_cudaEglColorFormatBayerIspBGGR, sizeof(__pyx_k_cudaEglColorFormatBayerIspBGGR), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatBayerIspGBRG, __pyx_k_cudaEglColorFormatBayerIspGBRG, sizeof(__pyx_k_cudaEglColorFormatBayerIspGBRG), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatBayerIspGRBG, __pyx_k_cudaEglColorFormatBayerIspGRBG, sizeof(__pyx_k_cudaEglColorFormatBayerIspGRBG), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatBayerIspRGGB, __pyx_k_cudaEglColorFormatBayerIspRGGB, sizeof(__pyx_k_cudaEglColorFormatBayerIspRGGB), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatBayerRCCB, __pyx_k_cudaEglColorFormatBayerRCCB, sizeof(__pyx_k_cudaEglColorFormatBayerRCCB), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatBayerRGGB, __pyx_k_cudaEglColorFormatBayerRGGB, sizeof(__pyx_k_cudaEglColorFormatBayerRGGB), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatL, __pyx_k_cudaEglColorFormatL, sizeof(__pyx_k_cudaEglColorFormatL), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatR, __pyx_k_cudaEglColorFormatR, sizeof(__pyx_k_cudaEglColorFormatR), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatRG, __pyx_k_cudaEglColorFormatRG, sizeof(__pyx_k_cudaEglColorFormatRG), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatRGBA, __pyx_k_cudaEglColorFormatRGBA, sizeof(__pyx_k_cudaEglColorFormatRGBA), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatUYVY422, __pyx_k_cudaEglColorFormatUYVY422, sizeof(__pyx_k_cudaEglColorFormatUYVY422), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatUYVY_ER, __pyx_k_cudaEglColorFormatUYVY_ER, sizeof(__pyx_k_cudaEglColorFormatUYVY_ER), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatVYUY, __pyx_k_cudaEglColorFormatVYUY, sizeof(__pyx_k_cudaEglColorFormatVYUY), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatVYUY_ER, __pyx_k_cudaEglColorFormatVYUY_ER, sizeof(__pyx_k_cudaEglColorFormatVYUY_ER), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatY, __pyx_k_cudaEglColorFormatY, sizeof(__pyx_k_cudaEglColorFormatY), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatY10V10U10_420S, __pyx_k_cudaEglColorFormatY10V10U10_420S, sizeof(__pyx_k_cudaEglColorFormatY10V10U10_420S), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatY10V10U10_420S_2, __pyx_k_cudaEglColorFormatY10V10U10_420S_2, sizeof(__pyx_k_cudaEglColorFormatY10V10U10_420S_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatY10V10U10_420S_3, __pyx_k_cudaEglColorFormatY10V10U10_420S_3, sizeof(__pyx_k_cudaEglColorFormatY10V10U10_420S_3), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatY10V10U10_420S_4, __pyx_k_cudaEglColorFormatY10V10U10_420S_4, sizeof(__pyx_k_cudaEglColorFormatY10V10U10_420S_4), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatY10V10U10_420S_5, __pyx_k_cudaEglColorFormatY10V10U10_420S_5, sizeof(__pyx_k_cudaEglColorFormatY10V10U10_420S_5), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatY10V10U10_422S, __pyx_k_cudaEglColorFormatY10V10U10_422S, sizeof(__pyx_k_cudaEglColorFormatY10V10U10_422S), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatY10V10U10_422S_2, __pyx_k_cudaEglColorFormatY10V10U10_422S_2, sizeof(__pyx_k_cudaEglColorFormatY10V10U10_422S_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatY10V10U10_422S_3, __pyx_k_cudaEglColorFormatY10V10U10_422S_3, sizeof(__pyx_k_cudaEglColorFormatY10V10U10_422S_3), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatY10V10U10_444S, __pyx_k_cudaEglColorFormatY10V10U10_444S, sizeof(__pyx_k_cudaEglColorFormatY10V10U10_444S), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatY10V10U10_444S_2, __pyx_k_cudaEglColorFormatY10V10U10_444S_2, sizeof(__pyx_k_cudaEglColorFormatY10V10U10_444S_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatY10V10U10_444S_3, __pyx_k_cudaEglColorFormatY10V10U10_444S_3, sizeof(__pyx_k_cudaEglColorFormatY10V10U10_444S_3), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatY10_709_ER, __pyx_k_cudaEglColorFormatY10_709_ER, sizeof(__pyx_k_cudaEglColorFormatY10_709_ER), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatY10_ER, __pyx_k_cudaEglColorFormatY10_ER, sizeof(__pyx_k_cudaEglColorFormatY10_ER), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatY12V12U12_420S, __pyx_k_cudaEglColorFormatY12V12U12_420S, sizeof(__pyx_k_cudaEglColorFormatY12V12U12_420S), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatY12V12U12_420S_2, __pyx_k_cudaEglColorFormatY12V12U12_420S_2, sizeof(__pyx_k_cudaEglColorFormatY12V12U12_420S_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatY12V12U12_420S_3, __pyx_k_cudaEglColorFormatY12V12U12_420S_3, sizeof(__pyx_k_cudaEglColorFormatY12V12U12_420S_3), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatY12V12U12_444S, __pyx_k_cudaEglColorFormatY12V12U12_444S, sizeof(__pyx_k_cudaEglColorFormatY12V12U12_444S), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatY12V12U12_444S_2, __pyx_k_cudaEglColorFormatY12V12U12_444S_2, sizeof(__pyx_k_cudaEglColorFormatY12V12U12_444S_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatY12V12U12_444S_3, __pyx_k_cudaEglColorFormatY12V12U12_444S_3, sizeof(__pyx_k_cudaEglColorFormatY12V12U12_444S_3), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatY12_709_ER, __pyx_k_cudaEglColorFormatY12_709_ER, sizeof(__pyx_k_cudaEglColorFormatY12_709_ER), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatY12_ER, __pyx_k_cudaEglColorFormatY12_ER, sizeof(__pyx_k_cudaEglColorFormatY12_ER), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYUV420Planar, __pyx_k_cudaEglColorFormatYUV420Planar, sizeof(__pyx_k_cudaEglColorFormatYUV420Planar), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYUV420Planar_2, __pyx_k_cudaEglColorFormatYUV420Planar_2, sizeof(__pyx_k_cudaEglColorFormatYUV420Planar_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYUV420Planar_7, __pyx_k_cudaEglColorFormatYUV420Planar_7, sizeof(__pyx_k_cudaEglColorFormatYUV420Planar_7), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYUV420Planar_E, __pyx_k_cudaEglColorFormatYUV420Planar_E, sizeof(__pyx_k_cudaEglColorFormatYUV420Planar_E), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYUV420SemiPlan, __pyx_k_cudaEglColorFormatYUV420SemiPlan, sizeof(__pyx_k_cudaEglColorFormatYUV420SemiPlan), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYUV420SemiPlan_2, __pyx_k_cudaEglColorFormatYUV420SemiPlan_2, sizeof(__pyx_k_cudaEglColorFormatYUV420SemiPlan_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYUV420SemiPlan_3, __pyx_k_cudaEglColorFormatYUV420SemiPlan_3, sizeof(__pyx_k_cudaEglColorFormatYUV420SemiPlan_3), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYUV420SemiPlan_4, __pyx_k_cudaEglColorFormatYUV420SemiPlan_4, sizeof(__pyx_k_cudaEglColorFormatYUV420SemiPlan_4), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYUV422Planar, __pyx_k_cudaEglColorFormatYUV422Planar, sizeof(__pyx_k_cudaEglColorFormatYUV422Planar), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYUV422Planar_E, __pyx_k_cudaEglColorFormatYUV422Planar_E, sizeof(__pyx_k_cudaEglColorFormatYUV422Planar_E), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYUV422SemiPlan, __pyx_k_cudaEglColorFormatYUV422SemiPlan, sizeof(__pyx_k_cudaEglColorFormatYUV422SemiPlan), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYUV422SemiPlan_2, __pyx_k_cudaEglColorFormatYUV422SemiPlan_2, sizeof(__pyx_k_cudaEglColorFormatYUV422SemiPlan_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYUV444Planar, __pyx_k_cudaEglColorFormatYUV444Planar, sizeof(__pyx_k_cudaEglColorFormatYUV444Planar), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYUV444Planar_E, __pyx_k_cudaEglColorFormatYUV444Planar_E, sizeof(__pyx_k_cudaEglColorFormatYUV444Planar_E), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYUV444SemiPlan, __pyx_k_cudaEglColorFormatYUV444SemiPlan, sizeof(__pyx_k_cudaEglColorFormatYUV444SemiPlan), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYUV444SemiPlan_2, __pyx_k_cudaEglColorFormatYUV444SemiPlan_2, sizeof(__pyx_k_cudaEglColorFormatYUV444SemiPlan_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYUVA, __pyx_k_cudaEglColorFormatYUVA, sizeof(__pyx_k_cudaEglColorFormatYUVA), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYUVA_ER, __pyx_k_cudaEglColorFormatYUVA_ER, sizeof(__pyx_k_cudaEglColorFormatYUVA_ER), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYUYV422, __pyx_k_cudaEglColorFormatYUYV422, sizeof(__pyx_k_cudaEglColorFormatYUYV422), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYUYV_ER, __pyx_k_cudaEglColorFormatYUYV_ER, sizeof(__pyx_k_cudaEglColorFormatYUYV_ER), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYVU420Planar, __pyx_k_cudaEglColorFormatYVU420Planar, sizeof(__pyx_k_cudaEglColorFormatYVU420Planar), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYVU420Planar_2, __pyx_k_cudaEglColorFormatYVU420Planar_2, sizeof(__pyx_k_cudaEglColorFormatYVU420Planar_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYVU420Planar_7, __pyx_k_cudaEglColorFormatYVU420Planar_7, sizeof(__pyx_k_cudaEglColorFormatYVU420Planar_7), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYVU420Planar_E, __pyx_k_cudaEglColorFormatYVU420Planar_E, sizeof(__pyx_k_cudaEglColorFormatYVU420Planar_E), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYVU420SemiPlan, __pyx_k_cudaEglColorFormatYVU420SemiPlan, sizeof(__pyx_k_cudaEglColorFormatYVU420SemiPlan), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYVU420SemiPlan_2, __pyx_k_cudaEglColorFormatYVU420SemiPlan_2, sizeof(__pyx_k_cudaEglColorFormatYVU420SemiPlan_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYVU420SemiPlan_3, __pyx_k_cudaEglColorFormatYVU420SemiPlan_3, sizeof(__pyx_k_cudaEglColorFormatYVU420SemiPlan_3), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYVU420SemiPlan_4, __pyx_k_cudaEglColorFormatYVU420SemiPlan_4, sizeof(__pyx_k_cudaEglColorFormatYVU420SemiPlan_4), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYVU422Planar, __pyx_k_cudaEglColorFormatYVU422Planar, sizeof(__pyx_k_cudaEglColorFormatYVU422Planar), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYVU422Planar_E, __pyx_k_cudaEglColorFormatYVU422Planar_E, sizeof(__pyx_k_cudaEglColorFormatYVU422Planar_E), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYVU422SemiPlan, __pyx_k_cudaEglColorFormatYVU422SemiPlan, sizeof(__pyx_k_cudaEglColorFormatYVU422SemiPlan), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYVU422SemiPlan_2, __pyx_k_cudaEglColorFormatYVU422SemiPlan_2, sizeof(__pyx_k_cudaEglColorFormatYVU422SemiPlan_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYVU444Planar, __pyx_k_cudaEglColorFormatYVU444Planar, sizeof(__pyx_k_cudaEglColorFormatYVU444Planar), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYVU444Planar_E, __pyx_k_cudaEglColorFormatYVU444Planar_E, sizeof(__pyx_k_cudaEglColorFormatYVU444Planar_E), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYVU444SemiPlan, __pyx_k_cudaEglColorFormatYVU444SemiPlan, sizeof(__pyx_k_cudaEglColorFormatYVU444SemiPlan), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYVU444SemiPlan_2, __pyx_k_cudaEglColorFormatYVU444SemiPlan_2, sizeof(__pyx_k_cudaEglColorFormatYVU444SemiPlan_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYVYU, __pyx_k_cudaEglColorFormatYVYU, sizeof(__pyx_k_cudaEglColorFormatYVYU), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatYVYU_ER, __pyx_k_cudaEglColorFormatYVYU_ER, sizeof(__pyx_k_cudaEglColorFormatYVYU_ER), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatY_709_ER, __pyx_k_cudaEglColorFormatY_709_ER, sizeof(__pyx_k_cudaEglColorFormatY_709_ER), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglColorFormatY_ER, __pyx_k_cudaEglColorFormatY_ER, sizeof(__pyx_k_cudaEglColorFormatY_ER), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglFrame, __pyx_k_cudaEglFrame, sizeof(__pyx_k_cudaEglFrame), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglFrameType, __pyx_k_cudaEglFrameType, sizeof(__pyx_k_cudaEglFrameType), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglFrameTypeArray, __pyx_k_cudaEglFrameTypeArray, sizeof(__pyx_k_cudaEglFrameTypeArray), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglFrameTypePitch, __pyx_k_cudaEglFrameTypePitch, sizeof(__pyx_k_cudaEglFrameTypePitch), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglFrame_st, __pyx_k_cudaEglFrame_st, sizeof(__pyx_k_cudaEglFrame_st), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglFrame_st___reduce_cython, __pyx_k_cudaEglFrame_st___reduce_cython, sizeof(__pyx_k_cudaEglFrame_st___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglFrame_st___setstate_cytho, __pyx_k_cudaEglFrame_st___setstate_cytho, sizeof(__pyx_k_cudaEglFrame_st___setstate_cytho), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglFrame_st_getPtr, __pyx_k_cudaEglFrame_st_getPtr, sizeof(__pyx_k_cudaEglFrame_st_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglPlaneDesc, __pyx_k_cudaEglPlaneDesc, sizeof(__pyx_k_cudaEglPlaneDesc), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglPlaneDesc_st, __pyx_k_cudaEglPlaneDesc_st, sizeof(__pyx_k_cudaEglPlaneDesc_st), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglPlaneDesc_st___reduce_cyt, __pyx_k_cudaEglPlaneDesc_st___reduce_cyt, sizeof(__pyx_k_cudaEglPlaneDesc_st___reduce_cyt), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglPlaneDesc_st___setstate_c, __pyx_k_cudaEglPlaneDesc_st___setstate_c, sizeof(__pyx_k_cudaEglPlaneDesc_st___setstate_c), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglPlaneDesc_st_getPtr, __pyx_k_cudaEglPlaneDesc_st_getPtr, sizeof(__pyx_k_cudaEglPlaneDesc_st_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglResourceLocationFlags, __pyx_k_cudaEglResourceLocationFlags, sizeof(__pyx_k_cudaEglResourceLocationFlags), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglResourceLocationSysmem, __pyx_k_cudaEglResourceLocationSysmem, sizeof(__pyx_k_cudaEglResourceLocationSysmem), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglResourceLocationVidmem, __pyx_k_cudaEglResourceLocationVidmem, sizeof(__pyx_k_cudaEglResourceLocationVidmem), 0, 0, 1, 1}, {&__pyx_n_s_cudaEglStreamConnection, __pyx_k_cudaEglStreamConnection, sizeof(__pyx_k_cudaEglStreamConnection), 0, 0, 1, 1}, {&__pyx_n_s_cudaEnableDefault, __pyx_k_cudaEnableDefault, sizeof(__pyx_k_cudaEnableDefault), 0, 0, 1, 1}, {&__pyx_n_s_cudaEnableLegacyStream, __pyx_k_cudaEnableLegacyStream, sizeof(__pyx_k_cudaEnableLegacyStream), 0, 0, 1, 1}, {&__pyx_n_s_cudaEnablePerThreadDefaultStream, __pyx_k_cudaEnablePerThreadDefaultStream, sizeof(__pyx_k_cudaEnablePerThreadDefaultStream), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorAddressOfConstant, __pyx_k_cudaErrorAddressOfConstant, sizeof(__pyx_k_cudaErrorAddressOfConstant), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorAlreadyAcquired, __pyx_k_cudaErrorAlreadyAcquired, sizeof(__pyx_k_cudaErrorAlreadyAcquired), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorAlreadyMapped, __pyx_k_cudaErrorAlreadyMapped, sizeof(__pyx_k_cudaErrorAlreadyMapped), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorApiFailureBase, __pyx_k_cudaErrorApiFailureBase, sizeof(__pyx_k_cudaErrorApiFailureBase), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorArrayIsMapped, __pyx_k_cudaErrorArrayIsMapped, sizeof(__pyx_k_cudaErrorArrayIsMapped), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorAssert, __pyx_k_cudaErrorAssert, sizeof(__pyx_k_cudaErrorAssert), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorCallRequiresNewerDriver, __pyx_k_cudaErrorCallRequiresNewerDriver, sizeof(__pyx_k_cudaErrorCallRequiresNewerDriver), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorCapturedEvent, __pyx_k_cudaErrorCapturedEvent, sizeof(__pyx_k_cudaErrorCapturedEvent), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorCdpNotSupported, __pyx_k_cudaErrorCdpNotSupported, sizeof(__pyx_k_cudaErrorCdpNotSupported), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorCdpVersionMismatch, __pyx_k_cudaErrorCdpVersionMismatch, sizeof(__pyx_k_cudaErrorCdpVersionMismatch), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorCompatNotSupportedOnDev, __pyx_k_cudaErrorCompatNotSupportedOnDev, sizeof(__pyx_k_cudaErrorCompatNotSupportedOnDev), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorContextIsDestroyed, __pyx_k_cudaErrorContextIsDestroyed, sizeof(__pyx_k_cudaErrorContextIsDestroyed), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorCooperativeLaunchTooLar, __pyx_k_cudaErrorCooperativeLaunchTooLar, sizeof(__pyx_k_cudaErrorCooperativeLaunchTooLar), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorCudartUnloading, __pyx_k_cudaErrorCudartUnloading, sizeof(__pyx_k_cudaErrorCudartUnloading), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorDeviceAlreadyInUse, __pyx_k_cudaErrorDeviceAlreadyInUse, sizeof(__pyx_k_cudaErrorDeviceAlreadyInUse), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorDeviceNotLicensed, __pyx_k_cudaErrorDeviceNotLicensed, sizeof(__pyx_k_cudaErrorDeviceNotLicensed), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorDeviceUninitialized, __pyx_k_cudaErrorDeviceUninitialized, sizeof(__pyx_k_cudaErrorDeviceUninitialized), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorDevicesUnavailable, __pyx_k_cudaErrorDevicesUnavailable, sizeof(__pyx_k_cudaErrorDevicesUnavailable), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorDuplicateSurfaceName, __pyx_k_cudaErrorDuplicateSurfaceName, sizeof(__pyx_k_cudaErrorDuplicateSurfaceName), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorDuplicateTextureName, __pyx_k_cudaErrorDuplicateTextureName, sizeof(__pyx_k_cudaErrorDuplicateTextureName), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorDuplicateVariableName, __pyx_k_cudaErrorDuplicateVariableName, sizeof(__pyx_k_cudaErrorDuplicateVariableName), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorECCUncorrectable, __pyx_k_cudaErrorECCUncorrectable, sizeof(__pyx_k_cudaErrorECCUncorrectable), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorExternalDevice, __pyx_k_cudaErrorExternalDevice, sizeof(__pyx_k_cudaErrorExternalDevice), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorFileNotFound, __pyx_k_cudaErrorFileNotFound, sizeof(__pyx_k_cudaErrorFileNotFound), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorFunctionNotLoaded, __pyx_k_cudaErrorFunctionNotLoaded, sizeof(__pyx_k_cudaErrorFunctionNotLoaded), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorGraphExecUpdateFailure, __pyx_k_cudaErrorGraphExecUpdateFailure, sizeof(__pyx_k_cudaErrorGraphExecUpdateFailure), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorHardwareStackError, __pyx_k_cudaErrorHardwareStackError, sizeof(__pyx_k_cudaErrorHardwareStackError), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorHostMemoryAlreadyRegist, __pyx_k_cudaErrorHostMemoryAlreadyRegist, sizeof(__pyx_k_cudaErrorHostMemoryAlreadyRegist), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorHostMemoryNotRegistered, __pyx_k_cudaErrorHostMemoryNotRegistered, sizeof(__pyx_k_cudaErrorHostMemoryNotRegistered), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorIllegalAddress, __pyx_k_cudaErrorIllegalAddress, sizeof(__pyx_k_cudaErrorIllegalAddress), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorIllegalInstruction, __pyx_k_cudaErrorIllegalInstruction, sizeof(__pyx_k_cudaErrorIllegalInstruction), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorIllegalState, __pyx_k_cudaErrorIllegalState, sizeof(__pyx_k_cudaErrorIllegalState), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorIncompatibleDriverConte, __pyx_k_cudaErrorIncompatibleDriverConte, sizeof(__pyx_k_cudaErrorIncompatibleDriverConte), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorInitializationError, __pyx_k_cudaErrorInitializationError, sizeof(__pyx_k_cudaErrorInitializationError), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorInsufficientDriver, __pyx_k_cudaErrorInsufficientDriver, sizeof(__pyx_k_cudaErrorInsufficientDriver), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorInvalidAddressSpace, __pyx_k_cudaErrorInvalidAddressSpace, sizeof(__pyx_k_cudaErrorInvalidAddressSpace), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorInvalidChannelDescripto, __pyx_k_cudaErrorInvalidChannelDescripto, sizeof(__pyx_k_cudaErrorInvalidChannelDescripto), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorInvalidClusterSize, __pyx_k_cudaErrorInvalidClusterSize, sizeof(__pyx_k_cudaErrorInvalidClusterSize), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorInvalidConfiguration, __pyx_k_cudaErrorInvalidConfiguration, sizeof(__pyx_k_cudaErrorInvalidConfiguration), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorInvalidDevice, __pyx_k_cudaErrorInvalidDevice, sizeof(__pyx_k_cudaErrorInvalidDevice), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorInvalidDeviceFunction, __pyx_k_cudaErrorInvalidDeviceFunction, sizeof(__pyx_k_cudaErrorInvalidDeviceFunction), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorInvalidDevicePointer, __pyx_k_cudaErrorInvalidDevicePointer, sizeof(__pyx_k_cudaErrorInvalidDevicePointer), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorInvalidFilterSetting, __pyx_k_cudaErrorInvalidFilterSetting, sizeof(__pyx_k_cudaErrorInvalidFilterSetting), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorInvalidGraphicsContext, __pyx_k_cudaErrorInvalidGraphicsContext, sizeof(__pyx_k_cudaErrorInvalidGraphicsContext), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorInvalidHostPointer, __pyx_k_cudaErrorInvalidHostPointer, sizeof(__pyx_k_cudaErrorInvalidHostPointer), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorInvalidKernelImage, __pyx_k_cudaErrorInvalidKernelImage, sizeof(__pyx_k_cudaErrorInvalidKernelImage), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorInvalidMemcpyDirection, __pyx_k_cudaErrorInvalidMemcpyDirection, sizeof(__pyx_k_cudaErrorInvalidMemcpyDirection), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorInvalidNormSetting, __pyx_k_cudaErrorInvalidNormSetting, sizeof(__pyx_k_cudaErrorInvalidNormSetting), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorInvalidPc, __pyx_k_cudaErrorInvalidPc, sizeof(__pyx_k_cudaErrorInvalidPc), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorInvalidPitchValue, __pyx_k_cudaErrorInvalidPitchValue, sizeof(__pyx_k_cudaErrorInvalidPitchValue), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorInvalidPtx, __pyx_k_cudaErrorInvalidPtx, sizeof(__pyx_k_cudaErrorInvalidPtx), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorInvalidResourceConfigur, __pyx_k_cudaErrorInvalidResourceConfigur, sizeof(__pyx_k_cudaErrorInvalidResourceConfigur), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorInvalidResourceHandle, __pyx_k_cudaErrorInvalidResourceHandle, sizeof(__pyx_k_cudaErrorInvalidResourceHandle), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorInvalidResourceType, __pyx_k_cudaErrorInvalidResourceType, sizeof(__pyx_k_cudaErrorInvalidResourceType), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorInvalidSource, __pyx_k_cudaErrorInvalidSource, sizeof(__pyx_k_cudaErrorInvalidSource), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorInvalidSurface, __pyx_k_cudaErrorInvalidSurface, sizeof(__pyx_k_cudaErrorInvalidSurface), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorInvalidSymbol, __pyx_k_cudaErrorInvalidSymbol, sizeof(__pyx_k_cudaErrorInvalidSymbol), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorInvalidTexture, __pyx_k_cudaErrorInvalidTexture, sizeof(__pyx_k_cudaErrorInvalidTexture), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorInvalidTextureBinding, __pyx_k_cudaErrorInvalidTextureBinding, sizeof(__pyx_k_cudaErrorInvalidTextureBinding), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorInvalidValue, __pyx_k_cudaErrorInvalidValue, sizeof(__pyx_k_cudaErrorInvalidValue), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorJitCompilationDisabled, __pyx_k_cudaErrorJitCompilationDisabled, sizeof(__pyx_k_cudaErrorJitCompilationDisabled), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorJitCompilerNotFound, __pyx_k_cudaErrorJitCompilerNotFound, sizeof(__pyx_k_cudaErrorJitCompilerNotFound), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorLaunchFailure, __pyx_k_cudaErrorLaunchFailure, sizeof(__pyx_k_cudaErrorLaunchFailure), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorLaunchFileScopedSurf, __pyx_k_cudaErrorLaunchFileScopedSurf, sizeof(__pyx_k_cudaErrorLaunchFileScopedSurf), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorLaunchFileScopedTex, __pyx_k_cudaErrorLaunchFileScopedTex, sizeof(__pyx_k_cudaErrorLaunchFileScopedTex), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorLaunchIncompatibleTextu, __pyx_k_cudaErrorLaunchIncompatibleTextu, sizeof(__pyx_k_cudaErrorLaunchIncompatibleTextu), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorLaunchMaxDepthExceeded, __pyx_k_cudaErrorLaunchMaxDepthExceeded, sizeof(__pyx_k_cudaErrorLaunchMaxDepthExceeded), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorLaunchOutOfResources, __pyx_k_cudaErrorLaunchOutOfResources, sizeof(__pyx_k_cudaErrorLaunchOutOfResources), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorLaunchPendingCountExcee, __pyx_k_cudaErrorLaunchPendingCountExcee, sizeof(__pyx_k_cudaErrorLaunchPendingCountExcee), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorLaunchTimeout, __pyx_k_cudaErrorLaunchTimeout, sizeof(__pyx_k_cudaErrorLaunchTimeout), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorLossyQuery, __pyx_k_cudaErrorLossyQuery, sizeof(__pyx_k_cudaErrorLossyQuery), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorMapBufferObjectFailed, __pyx_k_cudaErrorMapBufferObjectFailed, sizeof(__pyx_k_cudaErrorMapBufferObjectFailed), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorMemoryAllocation, __pyx_k_cudaErrorMemoryAllocation, sizeof(__pyx_k_cudaErrorMemoryAllocation), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorMemoryValueTooLarge, __pyx_k_cudaErrorMemoryValueTooLarge, sizeof(__pyx_k_cudaErrorMemoryValueTooLarge), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorMisalignedAddress, __pyx_k_cudaErrorMisalignedAddress, sizeof(__pyx_k_cudaErrorMisalignedAddress), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorMissingConfiguration, __pyx_k_cudaErrorMissingConfiguration, sizeof(__pyx_k_cudaErrorMissingConfiguration), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorMixedDeviceExecution, __pyx_k_cudaErrorMixedDeviceExecution, sizeof(__pyx_k_cudaErrorMixedDeviceExecution), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorMpsClientTerminated, __pyx_k_cudaErrorMpsClientTerminated, sizeof(__pyx_k_cudaErrorMpsClientTerminated), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorMpsConnectionFailed, __pyx_k_cudaErrorMpsConnectionFailed, sizeof(__pyx_k_cudaErrorMpsConnectionFailed), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorMpsMaxClientsReached, __pyx_k_cudaErrorMpsMaxClientsReached, sizeof(__pyx_k_cudaErrorMpsMaxClientsReached), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorMpsMaxConnectionsReache, __pyx_k_cudaErrorMpsMaxConnectionsReache, sizeof(__pyx_k_cudaErrorMpsMaxConnectionsReache), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorMpsRpcFailure, __pyx_k_cudaErrorMpsRpcFailure, sizeof(__pyx_k_cudaErrorMpsRpcFailure), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorMpsServerNotReady, __pyx_k_cudaErrorMpsServerNotReady, sizeof(__pyx_k_cudaErrorMpsServerNotReady), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorNoDevice, __pyx_k_cudaErrorNoDevice, sizeof(__pyx_k_cudaErrorNoDevice), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorNoKernelImageForDevice, __pyx_k_cudaErrorNoKernelImageForDevice, sizeof(__pyx_k_cudaErrorNoKernelImageForDevice), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorNotMapped, __pyx_k_cudaErrorNotMapped, sizeof(__pyx_k_cudaErrorNotMapped), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorNotMappedAsArray, __pyx_k_cudaErrorNotMappedAsArray, sizeof(__pyx_k_cudaErrorNotMappedAsArray), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorNotMappedAsPointer, __pyx_k_cudaErrorNotMappedAsPointer, sizeof(__pyx_k_cudaErrorNotMappedAsPointer), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorNotPermitted, __pyx_k_cudaErrorNotPermitted, sizeof(__pyx_k_cudaErrorNotPermitted), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorNotReady, __pyx_k_cudaErrorNotReady, sizeof(__pyx_k_cudaErrorNotReady), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorNotSupported, __pyx_k_cudaErrorNotSupported, sizeof(__pyx_k_cudaErrorNotSupported), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorNotYetImplemented, __pyx_k_cudaErrorNotYetImplemented, sizeof(__pyx_k_cudaErrorNotYetImplemented), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorNvlinkUncorrectable, __pyx_k_cudaErrorNvlinkUncorrectable, sizeof(__pyx_k_cudaErrorNvlinkUncorrectable), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorOperatingSystem, __pyx_k_cudaErrorOperatingSystem, sizeof(__pyx_k_cudaErrorOperatingSystem), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorPeerAccessAlreadyEnable, __pyx_k_cudaErrorPeerAccessAlreadyEnable, sizeof(__pyx_k_cudaErrorPeerAccessAlreadyEnable), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorPeerAccessNotEnabled, __pyx_k_cudaErrorPeerAccessNotEnabled, sizeof(__pyx_k_cudaErrorPeerAccessNotEnabled), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorPeerAccessUnsupported, __pyx_k_cudaErrorPeerAccessUnsupported, sizeof(__pyx_k_cudaErrorPeerAccessUnsupported), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorPriorLaunchFailure, __pyx_k_cudaErrorPriorLaunchFailure, sizeof(__pyx_k_cudaErrorPriorLaunchFailure), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorProfilerAlreadyStarted, __pyx_k_cudaErrorProfilerAlreadyStarted, sizeof(__pyx_k_cudaErrorProfilerAlreadyStarted), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorProfilerAlreadyStopped, __pyx_k_cudaErrorProfilerAlreadyStopped, sizeof(__pyx_k_cudaErrorProfilerAlreadyStopped), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorProfilerDisabled, __pyx_k_cudaErrorProfilerDisabled, sizeof(__pyx_k_cudaErrorProfilerDisabled), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorProfilerNotInitialized, __pyx_k_cudaErrorProfilerNotInitialized, sizeof(__pyx_k_cudaErrorProfilerNotInitialized), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorSetOnActiveProcess, __pyx_k_cudaErrorSetOnActiveProcess, sizeof(__pyx_k_cudaErrorSetOnActiveProcess), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorSharedObjectInitFailed, __pyx_k_cudaErrorSharedObjectInitFailed, sizeof(__pyx_k_cudaErrorSharedObjectInitFailed), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorSharedObjectSymbolNotFo, __pyx_k_cudaErrorSharedObjectSymbolNotFo, sizeof(__pyx_k_cudaErrorSharedObjectSymbolNotFo), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorSoftwareValidityNotEsta, __pyx_k_cudaErrorSoftwareValidityNotEsta, sizeof(__pyx_k_cudaErrorSoftwareValidityNotEsta), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorStartupFailure, __pyx_k_cudaErrorStartupFailure, sizeof(__pyx_k_cudaErrorStartupFailure), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorStreamCaptureImplicit, __pyx_k_cudaErrorStreamCaptureImplicit, sizeof(__pyx_k_cudaErrorStreamCaptureImplicit), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorStreamCaptureInvalidate, __pyx_k_cudaErrorStreamCaptureInvalidate, sizeof(__pyx_k_cudaErrorStreamCaptureInvalidate), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorStreamCaptureIsolation, __pyx_k_cudaErrorStreamCaptureIsolation, sizeof(__pyx_k_cudaErrorStreamCaptureIsolation), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorStreamCaptureMerge, __pyx_k_cudaErrorStreamCaptureMerge, sizeof(__pyx_k_cudaErrorStreamCaptureMerge), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorStreamCaptureUnjoined, __pyx_k_cudaErrorStreamCaptureUnjoined, sizeof(__pyx_k_cudaErrorStreamCaptureUnjoined), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorStreamCaptureUnmatched, __pyx_k_cudaErrorStreamCaptureUnmatched, sizeof(__pyx_k_cudaErrorStreamCaptureUnmatched), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorStreamCaptureUnsupporte, __pyx_k_cudaErrorStreamCaptureUnsupporte, sizeof(__pyx_k_cudaErrorStreamCaptureUnsupporte), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorStreamCaptureWrongThrea, __pyx_k_cudaErrorStreamCaptureWrongThrea, sizeof(__pyx_k_cudaErrorStreamCaptureWrongThrea), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorStubLibrary, __pyx_k_cudaErrorStubLibrary, sizeof(__pyx_k_cudaErrorStubLibrary), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorSymbolNotFound, __pyx_k_cudaErrorSymbolNotFound, sizeof(__pyx_k_cudaErrorSymbolNotFound), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorSyncDepthExceeded, __pyx_k_cudaErrorSyncDepthExceeded, sizeof(__pyx_k_cudaErrorSyncDepthExceeded), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorSynchronizationError, __pyx_k_cudaErrorSynchronizationError, sizeof(__pyx_k_cudaErrorSynchronizationError), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorSystemDriverMismatch, __pyx_k_cudaErrorSystemDriverMismatch, sizeof(__pyx_k_cudaErrorSystemDriverMismatch), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorSystemNotReady, __pyx_k_cudaErrorSystemNotReady, sizeof(__pyx_k_cudaErrorSystemNotReady), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorTextureFetchFailed, __pyx_k_cudaErrorTextureFetchFailed, sizeof(__pyx_k_cudaErrorTextureFetchFailed), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorTextureNotBound, __pyx_k_cudaErrorTextureNotBound, sizeof(__pyx_k_cudaErrorTextureNotBound), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorTimeout, __pyx_k_cudaErrorTimeout, sizeof(__pyx_k_cudaErrorTimeout), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorTooManyPeers, __pyx_k_cudaErrorTooManyPeers, sizeof(__pyx_k_cudaErrorTooManyPeers), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorUnknown, __pyx_k_cudaErrorUnknown, sizeof(__pyx_k_cudaErrorUnknown), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorUnmapBufferObjectFailed, __pyx_k_cudaErrorUnmapBufferObjectFailed, sizeof(__pyx_k_cudaErrorUnmapBufferObjectFailed), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorUnsupportedDevSideSync, __pyx_k_cudaErrorUnsupportedDevSideSync, sizeof(__pyx_k_cudaErrorUnsupportedDevSideSync), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorUnsupportedExecAffinity, __pyx_k_cudaErrorUnsupportedExecAffinity, sizeof(__pyx_k_cudaErrorUnsupportedExecAffinity), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorUnsupportedLimit, __pyx_k_cudaErrorUnsupportedLimit, sizeof(__pyx_k_cudaErrorUnsupportedLimit), 0, 0, 1, 1}, {&__pyx_n_s_cudaErrorUnsupportedPtxVersion, __pyx_k_cudaErrorUnsupportedPtxVersion, sizeof(__pyx_k_cudaErrorUnsupportedPtxVersion), 0, 0, 1, 1}, {&__pyx_n_s_cudaError_t, __pyx_k_cudaError_t, sizeof(__pyx_k_cudaError_t), 0, 0, 1, 1}, {&__pyx_n_s_cudaEventBlockingSync, __pyx_k_cudaEventBlockingSync, sizeof(__pyx_k_cudaEventBlockingSync), 0, 0, 1, 1}, {&__pyx_n_s_cudaEventCreate, __pyx_k_cudaEventCreate, sizeof(__pyx_k_cudaEventCreate), 0, 0, 1, 1}, {&__pyx_n_s_cudaEventCreateFromEGLSync, __pyx_k_cudaEventCreateFromEGLSync, sizeof(__pyx_k_cudaEventCreateFromEGLSync), 0, 0, 1, 1}, {&__pyx_n_s_cudaEventCreateWithFlags, __pyx_k_cudaEventCreateWithFlags, sizeof(__pyx_k_cudaEventCreateWithFlags), 0, 0, 1, 1}, {&__pyx_n_s_cudaEventDefault, __pyx_k_cudaEventDefault, sizeof(__pyx_k_cudaEventDefault), 0, 0, 1, 1}, {&__pyx_n_s_cudaEventDestroy, __pyx_k_cudaEventDestroy, sizeof(__pyx_k_cudaEventDestroy), 0, 0, 1, 1}, {&__pyx_n_s_cudaEventDisableTiming, __pyx_k_cudaEventDisableTiming, sizeof(__pyx_k_cudaEventDisableTiming), 0, 0, 1, 1}, {&__pyx_n_s_cudaEventElapsedTime, __pyx_k_cudaEventElapsedTime, sizeof(__pyx_k_cudaEventElapsedTime), 0, 0, 1, 1}, {&__pyx_n_s_cudaEventInterprocess, __pyx_k_cudaEventInterprocess, sizeof(__pyx_k_cudaEventInterprocess), 0, 0, 1, 1}, {&__pyx_n_s_cudaEventQuery, __pyx_k_cudaEventQuery, sizeof(__pyx_k_cudaEventQuery), 0, 0, 1, 1}, {&__pyx_n_s_cudaEventRecord, __pyx_k_cudaEventRecord, sizeof(__pyx_k_cudaEventRecord), 0, 0, 1, 1}, {&__pyx_n_s_cudaEventRecordDefault, __pyx_k_cudaEventRecordDefault, sizeof(__pyx_k_cudaEventRecordDefault), 0, 0, 1, 1}, {&__pyx_n_s_cudaEventRecordExternal, __pyx_k_cudaEventRecordExternal, sizeof(__pyx_k_cudaEventRecordExternal), 0, 0, 1, 1}, {&__pyx_n_s_cudaEventRecordNodeParams, __pyx_k_cudaEventRecordNodeParams, sizeof(__pyx_k_cudaEventRecordNodeParams), 0, 0, 1, 1}, {&__pyx_n_s_cudaEventRecordNodeParams___redu, __pyx_k_cudaEventRecordNodeParams___redu, sizeof(__pyx_k_cudaEventRecordNodeParams___redu), 0, 0, 1, 1}, {&__pyx_n_s_cudaEventRecordNodeParams___sets, __pyx_k_cudaEventRecordNodeParams___sets, sizeof(__pyx_k_cudaEventRecordNodeParams___sets), 0, 0, 1, 1}, {&__pyx_n_s_cudaEventRecordNodeParams_getPtr, __pyx_k_cudaEventRecordNodeParams_getPtr, sizeof(__pyx_k_cudaEventRecordNodeParams_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaEventRecordWithFlags, __pyx_k_cudaEventRecordWithFlags, sizeof(__pyx_k_cudaEventRecordWithFlags), 0, 0, 1, 1}, {&__pyx_n_s_cudaEventSynchronize, __pyx_k_cudaEventSynchronize, sizeof(__pyx_k_cudaEventSynchronize), 0, 0, 1, 1}, {&__pyx_n_s_cudaEventWaitDefault, __pyx_k_cudaEventWaitDefault, sizeof(__pyx_k_cudaEventWaitDefault), 0, 0, 1, 1}, {&__pyx_n_s_cudaEventWaitExternal, __pyx_k_cudaEventWaitExternal, sizeof(__pyx_k_cudaEventWaitExternal), 0, 0, 1, 1}, {&__pyx_n_s_cudaEventWaitNodeParams, __pyx_k_cudaEventWaitNodeParams, sizeof(__pyx_k_cudaEventWaitNodeParams), 0, 0, 1, 1}, {&__pyx_n_s_cudaEventWaitNodeParams___reduce, __pyx_k_cudaEventWaitNodeParams___reduce, sizeof(__pyx_k_cudaEventWaitNodeParams___reduce), 0, 0, 1, 1}, {&__pyx_n_s_cudaEventWaitNodeParams___setsta, __pyx_k_cudaEventWaitNodeParams___setsta, sizeof(__pyx_k_cudaEventWaitNodeParams___setsta), 0, 0, 1, 1}, {&__pyx_n_s_cudaEventWaitNodeParams_getPtr, __pyx_k_cudaEventWaitNodeParams_getPtr, sizeof(__pyx_k_cudaEventWaitNodeParams_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaEvent_t, __pyx_k_cudaEvent_t, sizeof(__pyx_k_cudaEvent_t), 0, 0, 1, 1}, {&__pyx_n_s_cudaExtent, __pyx_k_cudaExtent, sizeof(__pyx_k_cudaExtent), 0, 0, 1, 1}, {&__pyx_n_s_cudaExtent___reduce_cython, __pyx_k_cudaExtent___reduce_cython, sizeof(__pyx_k_cudaExtent___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_cudaExtent___setstate_cython, __pyx_k_cudaExtent___setstate_cython, sizeof(__pyx_k_cudaExtent___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_cudaExtent_getPtr, __pyx_k_cudaExtent_getPtr, sizeof(__pyx_k_cudaExtent_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalMemoryBufferDesc, __pyx_k_cudaExternalMemoryBufferDesc, sizeof(__pyx_k_cudaExternalMemoryBufferDesc), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalMemoryBufferDesc___r, __pyx_k_cudaExternalMemoryBufferDesc___r, sizeof(__pyx_k_cudaExternalMemoryBufferDesc___r), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalMemoryBufferDesc___s, __pyx_k_cudaExternalMemoryBufferDesc___s, sizeof(__pyx_k_cudaExternalMemoryBufferDesc___s), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalMemoryBufferDesc_get, __pyx_k_cudaExternalMemoryBufferDesc_get, sizeof(__pyx_k_cudaExternalMemoryBufferDesc_get), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalMemoryDedicated, __pyx_k_cudaExternalMemoryDedicated, sizeof(__pyx_k_cudaExternalMemoryDedicated), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalMemoryGetMappedBuffe, __pyx_k_cudaExternalMemoryGetMappedBuffe, sizeof(__pyx_k_cudaExternalMemoryGetMappedBuffe), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalMemoryGetMappedMipma, __pyx_k_cudaExternalMemoryGetMappedMipma, sizeof(__pyx_k_cudaExternalMemoryGetMappedMipma), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalMemoryHandleDesc, __pyx_k_cudaExternalMemoryHandleDesc, sizeof(__pyx_k_cudaExternalMemoryHandleDesc), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalMemoryHandleDesc___r, __pyx_k_cudaExternalMemoryHandleDesc___r, sizeof(__pyx_k_cudaExternalMemoryHandleDesc___r), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalMemoryHandleDesc___s, __pyx_k_cudaExternalMemoryHandleDesc___s, sizeof(__pyx_k_cudaExternalMemoryHandleDesc___s), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalMemoryHandleDesc_get, __pyx_k_cudaExternalMemoryHandleDesc_get, sizeof(__pyx_k_cudaExternalMemoryHandleDesc_get), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalMemoryHandleType, __pyx_k_cudaExternalMemoryHandleType, sizeof(__pyx_k_cudaExternalMemoryHandleType), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalMemoryHandleTypeD3D1, __pyx_k_cudaExternalMemoryHandleTypeD3D1, sizeof(__pyx_k_cudaExternalMemoryHandleTypeD3D1), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalMemoryHandleTypeD3D1_2, __pyx_k_cudaExternalMemoryHandleTypeD3D1_2, sizeof(__pyx_k_cudaExternalMemoryHandleTypeD3D1_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalMemoryHandleTypeD3D1_3, __pyx_k_cudaExternalMemoryHandleTypeD3D1_3, sizeof(__pyx_k_cudaExternalMemoryHandleTypeD3D1_3), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalMemoryHandleTypeD3D1_4, __pyx_k_cudaExternalMemoryHandleTypeD3D1_4, sizeof(__pyx_k_cudaExternalMemoryHandleTypeD3D1_4), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalMemoryHandleTypeNvSc, __pyx_k_cudaExternalMemoryHandleTypeNvSc, sizeof(__pyx_k_cudaExternalMemoryHandleTypeNvSc), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalMemoryHandleTypeOpaq, __pyx_k_cudaExternalMemoryHandleTypeOpaq, sizeof(__pyx_k_cudaExternalMemoryHandleTypeOpaq), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalMemoryHandleTypeOpaq_2, __pyx_k_cudaExternalMemoryHandleTypeOpaq_2, sizeof(__pyx_k_cudaExternalMemoryHandleTypeOpaq_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalMemoryHandleTypeOpaq_3, __pyx_k_cudaExternalMemoryHandleTypeOpaq_3, sizeof(__pyx_k_cudaExternalMemoryHandleTypeOpaq_3), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalMemoryMipmappedArray, __pyx_k_cudaExternalMemoryMipmappedArray, sizeof(__pyx_k_cudaExternalMemoryMipmappedArray), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalMemoryMipmappedArray_2, __pyx_k_cudaExternalMemoryMipmappedArray_2, sizeof(__pyx_k_cudaExternalMemoryMipmappedArray_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalMemoryMipmappedArray_3, __pyx_k_cudaExternalMemoryMipmappedArray_3, sizeof(__pyx_k_cudaExternalMemoryMipmappedArray_3), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalMemoryMipmappedArray_4, __pyx_k_cudaExternalMemoryMipmappedArray_4, sizeof(__pyx_k_cudaExternalMemoryMipmappedArray_4), 0, 0, 1, 1}, {&__pyx_kp_u_cudaExternalMemory_t, __pyx_k_cudaExternalMemory_t, sizeof(__pyx_k_cudaExternalMemory_t), 0, 1, 0, 0}, {&__pyx_n_s_cudaExternalMemory_t_2, __pyx_k_cudaExternalMemory_t_2, sizeof(__pyx_k_cudaExternalMemory_t_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalMemory_t___reduce_cy, __pyx_k_cudaExternalMemory_t___reduce_cy, sizeof(__pyx_k_cudaExternalMemory_t___reduce_cy), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalMemory_t___setstate, __pyx_k_cudaExternalMemory_t___setstate, sizeof(__pyx_k_cudaExternalMemory_t___setstate), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalMemory_t_getPtr, __pyx_k_cudaExternalMemory_t_getPtr, sizeof(__pyx_k_cudaExternalMemory_t_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreHandleDesc, __pyx_k_cudaExternalSemaphoreHandleDesc, sizeof(__pyx_k_cudaExternalSemaphoreHandleDesc), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreHandleDesc_2, __pyx_k_cudaExternalSemaphoreHandleDesc_2, sizeof(__pyx_k_cudaExternalSemaphoreHandleDesc_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreHandleDesc_3, __pyx_k_cudaExternalSemaphoreHandleDesc_3, sizeof(__pyx_k_cudaExternalSemaphoreHandleDesc_3), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreHandleDesc_4, __pyx_k_cudaExternalSemaphoreHandleDesc_4, sizeof(__pyx_k_cudaExternalSemaphoreHandleDesc_4), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreHandleType, __pyx_k_cudaExternalSemaphoreHandleType, sizeof(__pyx_k_cudaExternalSemaphoreHandleType), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreHandleTypeD, __pyx_k_cudaExternalSemaphoreHandleTypeD, sizeof(__pyx_k_cudaExternalSemaphoreHandleTypeD), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreHandleTypeD_2, __pyx_k_cudaExternalSemaphoreHandleTypeD_2, sizeof(__pyx_k_cudaExternalSemaphoreHandleTypeD_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreHandleTypeK, __pyx_k_cudaExternalSemaphoreHandleTypeK, sizeof(__pyx_k_cudaExternalSemaphoreHandleTypeK), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreHandleTypeK_2, __pyx_k_cudaExternalSemaphoreHandleTypeK_2, sizeof(__pyx_k_cudaExternalSemaphoreHandleTypeK_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreHandleTypeN, __pyx_k_cudaExternalSemaphoreHandleTypeN, sizeof(__pyx_k_cudaExternalSemaphoreHandleTypeN), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreHandleTypeO, __pyx_k_cudaExternalSemaphoreHandleTypeO, sizeof(__pyx_k_cudaExternalSemaphoreHandleTypeO), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreHandleTypeO_2, __pyx_k_cudaExternalSemaphoreHandleTypeO_2, sizeof(__pyx_k_cudaExternalSemaphoreHandleTypeO_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreHandleTypeO_3, __pyx_k_cudaExternalSemaphoreHandleTypeO_3, sizeof(__pyx_k_cudaExternalSemaphoreHandleTypeO_3), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreHandleTypeT, __pyx_k_cudaExternalSemaphoreHandleTypeT, sizeof(__pyx_k_cudaExternalSemaphoreHandleTypeT), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreHandleTypeT_2, __pyx_k_cudaExternalSemaphoreHandleTypeT_2, sizeof(__pyx_k_cudaExternalSemaphoreHandleTypeT_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreSignalNodeP, __pyx_k_cudaExternalSemaphoreSignalNodeP, sizeof(__pyx_k_cudaExternalSemaphoreSignalNodeP), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreSignalNodeP_2, __pyx_k_cudaExternalSemaphoreSignalNodeP_2, sizeof(__pyx_k_cudaExternalSemaphoreSignalNodeP_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreSignalNodeP_3, __pyx_k_cudaExternalSemaphoreSignalNodeP_3, sizeof(__pyx_k_cudaExternalSemaphoreSignalNodeP_3), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreSignalNodeP_4, __pyx_k_cudaExternalSemaphoreSignalNodeP_4, sizeof(__pyx_k_cudaExternalSemaphoreSignalNodeP_4), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreSignalNodeP_5, __pyx_k_cudaExternalSemaphoreSignalNodeP_5, sizeof(__pyx_k_cudaExternalSemaphoreSignalNodeP_5), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreSignalNodeP_6, __pyx_k_cudaExternalSemaphoreSignalNodeP_6, sizeof(__pyx_k_cudaExternalSemaphoreSignalNodeP_6), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreSignalNodeP_7, __pyx_k_cudaExternalSemaphoreSignalNodeP_7, sizeof(__pyx_k_cudaExternalSemaphoreSignalNodeP_7), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreSignalNodeP_8, __pyx_k_cudaExternalSemaphoreSignalNodeP_8, sizeof(__pyx_k_cudaExternalSemaphoreSignalNodeP_8), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreSignalParam, __pyx_k_cudaExternalSemaphoreSignalParam, sizeof(__pyx_k_cudaExternalSemaphoreSignalParam), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreSignalParam_2, __pyx_k_cudaExternalSemaphoreSignalParam_2, sizeof(__pyx_k_cudaExternalSemaphoreSignalParam_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreSignalParam_3, __pyx_k_cudaExternalSemaphoreSignalParam_3, sizeof(__pyx_k_cudaExternalSemaphoreSignalParam_3), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreSignalParam_4, __pyx_k_cudaExternalSemaphoreSignalParam_4, sizeof(__pyx_k_cudaExternalSemaphoreSignalParam_4), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreSignalSkipN, __pyx_k_cudaExternalSemaphoreSignalSkipN, sizeof(__pyx_k_cudaExternalSemaphoreSignalSkipN), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreWaitNodePar, __pyx_k_cudaExternalSemaphoreWaitNodePar, sizeof(__pyx_k_cudaExternalSemaphoreWaitNodePar), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreWaitNodePar_2, __pyx_k_cudaExternalSemaphoreWaitNodePar_2, sizeof(__pyx_k_cudaExternalSemaphoreWaitNodePar_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreWaitNodePar_3, __pyx_k_cudaExternalSemaphoreWaitNodePar_3, sizeof(__pyx_k_cudaExternalSemaphoreWaitNodePar_3), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreWaitNodePar_4, __pyx_k_cudaExternalSemaphoreWaitNodePar_4, sizeof(__pyx_k_cudaExternalSemaphoreWaitNodePar_4), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreWaitNodePar_5, __pyx_k_cudaExternalSemaphoreWaitNodePar_5, sizeof(__pyx_k_cudaExternalSemaphoreWaitNodePar_5), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreWaitNodePar_6, __pyx_k_cudaExternalSemaphoreWaitNodePar_6, sizeof(__pyx_k_cudaExternalSemaphoreWaitNodePar_6), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreWaitNodePar_7, __pyx_k_cudaExternalSemaphoreWaitNodePar_7, sizeof(__pyx_k_cudaExternalSemaphoreWaitNodePar_7), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreWaitNodePar_8, __pyx_k_cudaExternalSemaphoreWaitNodePar_8, sizeof(__pyx_k_cudaExternalSemaphoreWaitNodePar_8), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreWaitParams, __pyx_k_cudaExternalSemaphoreWaitParams, sizeof(__pyx_k_cudaExternalSemaphoreWaitParams), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreWaitParams_2, __pyx_k_cudaExternalSemaphoreWaitParams_2, sizeof(__pyx_k_cudaExternalSemaphoreWaitParams_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreWaitParams_3, __pyx_k_cudaExternalSemaphoreWaitParams_3, sizeof(__pyx_k_cudaExternalSemaphoreWaitParams_3), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreWaitParams_4, __pyx_k_cudaExternalSemaphoreWaitParams_4, sizeof(__pyx_k_cudaExternalSemaphoreWaitParams_4), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphoreWaitSkipNvS, __pyx_k_cudaExternalSemaphoreWaitSkipNvS, sizeof(__pyx_k_cudaExternalSemaphoreWaitSkipNvS), 0, 0, 1, 1}, {&__pyx_kp_u_cudaExternalSemaphore_t, __pyx_k_cudaExternalSemaphore_t, sizeof(__pyx_k_cudaExternalSemaphore_t), 0, 1, 0, 0}, {&__pyx_n_s_cudaExternalSemaphore_t_2, __pyx_k_cudaExternalSemaphore_t_2, sizeof(__pyx_k_cudaExternalSemaphore_t_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphore_t___reduce, __pyx_k_cudaExternalSemaphore_t___reduce, sizeof(__pyx_k_cudaExternalSemaphore_t___reduce), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphore_t___setsta, __pyx_k_cudaExternalSemaphore_t___setsta, sizeof(__pyx_k_cudaExternalSemaphore_t___setsta), 0, 0, 1, 1}, {&__pyx_n_s_cudaExternalSemaphore_t_getPtr, __pyx_k_cudaExternalSemaphore_t_getPtr, sizeof(__pyx_k_cudaExternalSemaphore_t_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaFilterModeLinear, __pyx_k_cudaFilterModeLinear, sizeof(__pyx_k_cudaFilterModeLinear), 0, 0, 1, 1}, {&__pyx_n_s_cudaFilterModePoint, __pyx_k_cudaFilterModePoint, sizeof(__pyx_k_cudaFilterModePoint), 0, 0, 1, 1}, {&__pyx_n_s_cudaFlushGPUDirectRDMAWritesOpti, __pyx_k_cudaFlushGPUDirectRDMAWritesOpti, sizeof(__pyx_k_cudaFlushGPUDirectRDMAWritesOpti), 0, 0, 1, 1}, {&__pyx_n_s_cudaFlushGPUDirectRDMAWritesOpti_2, __pyx_k_cudaFlushGPUDirectRDMAWritesOpti_2, sizeof(__pyx_k_cudaFlushGPUDirectRDMAWritesOpti_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaFlushGPUDirectRDMAWritesOpti_3, __pyx_k_cudaFlushGPUDirectRDMAWritesOpti_3, sizeof(__pyx_k_cudaFlushGPUDirectRDMAWritesOpti_3), 0, 0, 1, 1}, {&__pyx_n_s_cudaFlushGPUDirectRDMAWritesScop, __pyx_k_cudaFlushGPUDirectRDMAWritesScop, sizeof(__pyx_k_cudaFlushGPUDirectRDMAWritesScop), 0, 0, 1, 1}, {&__pyx_n_s_cudaFlushGPUDirectRDMAWritesTarg, __pyx_k_cudaFlushGPUDirectRDMAWritesTarg, sizeof(__pyx_k_cudaFlushGPUDirectRDMAWritesTarg), 0, 0, 1, 1}, {&__pyx_n_s_cudaFlushGPUDirectRDMAWritesTarg_2, __pyx_k_cudaFlushGPUDirectRDMAWritesTarg_2, sizeof(__pyx_k_cudaFlushGPUDirectRDMAWritesTarg_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaFlushGPUDirectRDMAWritesToAl, __pyx_k_cudaFlushGPUDirectRDMAWritesToAl, sizeof(__pyx_k_cudaFlushGPUDirectRDMAWritesToAl), 0, 0, 1, 1}, {&__pyx_n_s_cudaFlushGPUDirectRDMAWritesToOw, __pyx_k_cudaFlushGPUDirectRDMAWritesToOw, sizeof(__pyx_k_cudaFlushGPUDirectRDMAWritesToOw), 0, 0, 1, 1}, {&__pyx_n_s_cudaFormatModeAuto, __pyx_k_cudaFormatModeAuto, sizeof(__pyx_k_cudaFormatModeAuto), 0, 0, 1, 1}, {&__pyx_n_s_cudaFormatModeForced, __pyx_k_cudaFormatModeForced, sizeof(__pyx_k_cudaFormatModeForced), 0, 0, 1, 1}, {&__pyx_n_s_cudaFree, __pyx_k_cudaFree, sizeof(__pyx_k_cudaFree), 0, 0, 1, 1}, {&__pyx_n_s_cudaFreeArray, __pyx_k_cudaFreeArray, sizeof(__pyx_k_cudaFreeArray), 0, 0, 1, 1}, {&__pyx_n_s_cudaFreeAsync, __pyx_k_cudaFreeAsync, sizeof(__pyx_k_cudaFreeAsync), 0, 0, 1, 1}, {&__pyx_n_s_cudaFreeHost, __pyx_k_cudaFreeHost, sizeof(__pyx_k_cudaFreeHost), 0, 0, 1, 1}, {&__pyx_n_s_cudaFreeMipmappedArray, __pyx_k_cudaFreeMipmappedArray, sizeof(__pyx_k_cudaFreeMipmappedArray), 0, 0, 1, 1}, {&__pyx_n_s_cudaFuncAttribute, __pyx_k_cudaFuncAttribute, sizeof(__pyx_k_cudaFuncAttribute), 0, 0, 1, 1}, {&__pyx_n_s_cudaFuncAttributeClusterDimMustB, __pyx_k_cudaFuncAttributeClusterDimMustB, sizeof(__pyx_k_cudaFuncAttributeClusterDimMustB), 0, 0, 1, 1}, {&__pyx_n_s_cudaFuncAttributeClusterScheduli, __pyx_k_cudaFuncAttributeClusterScheduli, sizeof(__pyx_k_cudaFuncAttributeClusterScheduli), 0, 0, 1, 1}, {&__pyx_n_s_cudaFuncAttributeMax, __pyx_k_cudaFuncAttributeMax, sizeof(__pyx_k_cudaFuncAttributeMax), 0, 0, 1, 1}, {&__pyx_n_s_cudaFuncAttributeMaxDynamicShare, __pyx_k_cudaFuncAttributeMaxDynamicShare, sizeof(__pyx_k_cudaFuncAttributeMaxDynamicShare), 0, 0, 1, 1}, {&__pyx_n_s_cudaFuncAttributeNonPortableClus, __pyx_k_cudaFuncAttributeNonPortableClus, sizeof(__pyx_k_cudaFuncAttributeNonPortableClus), 0, 0, 1, 1}, {&__pyx_n_s_cudaFuncAttributePreferredShared, __pyx_k_cudaFuncAttributePreferredShared, sizeof(__pyx_k_cudaFuncAttributePreferredShared), 0, 0, 1, 1}, {&__pyx_n_s_cudaFuncAttributeRequiredCluster, __pyx_k_cudaFuncAttributeRequiredCluster, sizeof(__pyx_k_cudaFuncAttributeRequiredCluster), 0, 0, 1, 1}, {&__pyx_n_s_cudaFuncAttributeRequiredCluster_2, __pyx_k_cudaFuncAttributeRequiredCluster_2, sizeof(__pyx_k_cudaFuncAttributeRequiredCluster_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaFuncAttributeRequiredCluster_3, __pyx_k_cudaFuncAttributeRequiredCluster_3, sizeof(__pyx_k_cudaFuncAttributeRequiredCluster_3), 0, 0, 1, 1}, {&__pyx_n_s_cudaFuncAttributes, __pyx_k_cudaFuncAttributes, sizeof(__pyx_k_cudaFuncAttributes), 0, 0, 1, 1}, {&__pyx_n_s_cudaFuncAttributes___reduce_cyth, __pyx_k_cudaFuncAttributes___reduce_cyth, sizeof(__pyx_k_cudaFuncAttributes___reduce_cyth), 0, 0, 1, 1}, {&__pyx_n_s_cudaFuncAttributes___setstate_cy, __pyx_k_cudaFuncAttributes___setstate_cy, sizeof(__pyx_k_cudaFuncAttributes___setstate_cy), 0, 0, 1, 1}, {&__pyx_n_s_cudaFuncAttributes_getPtr, __pyx_k_cudaFuncAttributes_getPtr, sizeof(__pyx_k_cudaFuncAttributes_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaFuncCache, __pyx_k_cudaFuncCache, sizeof(__pyx_k_cudaFuncCache), 0, 0, 1, 1}, {&__pyx_n_s_cudaFuncCachePreferEqual, __pyx_k_cudaFuncCachePreferEqual, sizeof(__pyx_k_cudaFuncCachePreferEqual), 0, 0, 1, 1}, {&__pyx_n_s_cudaFuncCachePreferL1, __pyx_k_cudaFuncCachePreferL1, sizeof(__pyx_k_cudaFuncCachePreferL1), 0, 0, 1, 1}, {&__pyx_n_s_cudaFuncCachePreferNone, __pyx_k_cudaFuncCachePreferNone, sizeof(__pyx_k_cudaFuncCachePreferNone), 0, 0, 1, 1}, {&__pyx_n_s_cudaFuncCachePreferShared, __pyx_k_cudaFuncCachePreferShared, sizeof(__pyx_k_cudaFuncCachePreferShared), 0, 0, 1, 1}, {&__pyx_n_s_cudaFuncGetAttributes, __pyx_k_cudaFuncGetAttributes, sizeof(__pyx_k_cudaFuncGetAttributes), 0, 0, 1, 1}, {&__pyx_n_s_cudaFuncSetAttribute, __pyx_k_cudaFuncSetAttribute, sizeof(__pyx_k_cudaFuncSetAttribute), 0, 0, 1, 1}, {&__pyx_n_s_cudaFuncSetCacheConfig, __pyx_k_cudaFuncSetCacheConfig, sizeof(__pyx_k_cudaFuncSetCacheConfig), 0, 0, 1, 1}, {&__pyx_n_s_cudaFuncSetSharedMemConfig, __pyx_k_cudaFuncSetSharedMemConfig, sizeof(__pyx_k_cudaFuncSetSharedMemConfig), 0, 0, 1, 1}, {&__pyx_n_s_cudaFunction_t, __pyx_k_cudaFunction_t, sizeof(__pyx_k_cudaFunction_t), 0, 0, 1, 1}, {&__pyx_n_s_cudaGLDeviceList, __pyx_k_cudaGLDeviceList, sizeof(__pyx_k_cudaGLDeviceList), 0, 0, 1, 1}, {&__pyx_n_s_cudaGLDeviceListAll, __pyx_k_cudaGLDeviceListAll, sizeof(__pyx_k_cudaGLDeviceListAll), 0, 0, 1, 1}, {&__pyx_n_s_cudaGLDeviceListCurrentFrame, __pyx_k_cudaGLDeviceListCurrentFrame, sizeof(__pyx_k_cudaGLDeviceListCurrentFrame), 0, 0, 1, 1}, {&__pyx_n_s_cudaGLDeviceListNextFrame, __pyx_k_cudaGLDeviceListNextFrame, sizeof(__pyx_k_cudaGLDeviceListNextFrame), 0, 0, 1, 1}, {&__pyx_n_s_cudaGLGetDevices, __pyx_k_cudaGLGetDevices, sizeof(__pyx_k_cudaGLGetDevices), 0, 0, 1, 1}, {&__pyx_n_s_cudaGLMapFlags, __pyx_k_cudaGLMapFlags, sizeof(__pyx_k_cudaGLMapFlags), 0, 0, 1, 1}, {&__pyx_n_s_cudaGLMapFlagsNone, __pyx_k_cudaGLMapFlagsNone, sizeof(__pyx_k_cudaGLMapFlagsNone), 0, 0, 1, 1}, {&__pyx_n_s_cudaGLMapFlagsReadOnly, __pyx_k_cudaGLMapFlagsReadOnly, sizeof(__pyx_k_cudaGLMapFlagsReadOnly), 0, 0, 1, 1}, {&__pyx_n_s_cudaGLMapFlagsWriteDiscard, __pyx_k_cudaGLMapFlagsWriteDiscard, sizeof(__pyx_k_cudaGLMapFlagsWriteDiscard), 0, 0, 1, 1}, {&__pyx_n_s_cudaGPUDirectRDMAWritesOrdering, __pyx_k_cudaGPUDirectRDMAWritesOrdering, sizeof(__pyx_k_cudaGPUDirectRDMAWritesOrdering), 0, 0, 1, 1}, {&__pyx_n_s_cudaGPUDirectRDMAWritesOrderingA, __pyx_k_cudaGPUDirectRDMAWritesOrderingA, sizeof(__pyx_k_cudaGPUDirectRDMAWritesOrderingA), 0, 0, 1, 1}, {&__pyx_n_s_cudaGPUDirectRDMAWritesOrderingN, __pyx_k_cudaGPUDirectRDMAWritesOrderingN, sizeof(__pyx_k_cudaGPUDirectRDMAWritesOrderingN), 0, 0, 1, 1}, {&__pyx_n_s_cudaGPUDirectRDMAWritesOrderingO, __pyx_k_cudaGPUDirectRDMAWritesOrderingO, sizeof(__pyx_k_cudaGPUDirectRDMAWritesOrderingO), 0, 0, 1, 1}, {&__pyx_n_s_cudaGetChannelDesc, __pyx_k_cudaGetChannelDesc, sizeof(__pyx_k_cudaGetChannelDesc), 0, 0, 1, 1}, {&__pyx_n_s_cudaGetDevice, __pyx_k_cudaGetDevice, sizeof(__pyx_k_cudaGetDevice), 0, 0, 1, 1}, {&__pyx_n_s_cudaGetDeviceCount, __pyx_k_cudaGetDeviceCount, sizeof(__pyx_k_cudaGetDeviceCount), 0, 0, 1, 1}, {&__pyx_n_s_cudaGetDeviceFlags, __pyx_k_cudaGetDeviceFlags, sizeof(__pyx_k_cudaGetDeviceFlags), 0, 0, 1, 1}, {&__pyx_n_s_cudaGetDeviceProperties, __pyx_k_cudaGetDeviceProperties, sizeof(__pyx_k_cudaGetDeviceProperties), 0, 0, 1, 1}, {&__pyx_n_s_cudaGetDriverEntryPoint, __pyx_k_cudaGetDriverEntryPoint, sizeof(__pyx_k_cudaGetDriverEntryPoint), 0, 0, 1, 1}, {&__pyx_n_s_cudaGetDriverEntryPointByVersion, __pyx_k_cudaGetDriverEntryPointByVersion, sizeof(__pyx_k_cudaGetDriverEntryPointByVersion), 0, 0, 1, 1}, {&__pyx_n_s_cudaGetDriverEntryPointFlags, __pyx_k_cudaGetDriverEntryPointFlags, sizeof(__pyx_k_cudaGetDriverEntryPointFlags), 0, 0, 1, 1}, {&__pyx_n_s_cudaGetErrorName, __pyx_k_cudaGetErrorName, sizeof(__pyx_k_cudaGetErrorName), 0, 0, 1, 1}, {&__pyx_n_s_cudaGetErrorString, __pyx_k_cudaGetErrorString, sizeof(__pyx_k_cudaGetErrorString), 0, 0, 1, 1}, {&__pyx_n_s_cudaGetExportTable, __pyx_k_cudaGetExportTable, sizeof(__pyx_k_cudaGetExportTable), 0, 0, 1, 1}, {&__pyx_n_s_cudaGetKernel, __pyx_k_cudaGetKernel, sizeof(__pyx_k_cudaGetKernel), 0, 0, 1, 1}, {&__pyx_n_s_cudaGetLastError, __pyx_k_cudaGetLastError, sizeof(__pyx_k_cudaGetLastError), 0, 0, 1, 1}, {&__pyx_n_s_cudaGetMipmappedArrayLevel, __pyx_k_cudaGetMipmappedArrayLevel, sizeof(__pyx_k_cudaGetMipmappedArrayLevel), 0, 0, 1, 1}, {&__pyx_n_s_cudaGetSurfaceObjectResourceDesc, __pyx_k_cudaGetSurfaceObjectResourceDesc, sizeof(__pyx_k_cudaGetSurfaceObjectResourceDesc), 0, 0, 1, 1}, {&__pyx_n_s_cudaGetTextureObjectResourceDesc, __pyx_k_cudaGetTextureObjectResourceDesc, sizeof(__pyx_k_cudaGetTextureObjectResourceDesc), 0, 0, 1, 1}, {&__pyx_n_s_cudaGetTextureObjectResourceView, __pyx_k_cudaGetTextureObjectResourceView, sizeof(__pyx_k_cudaGetTextureObjectResourceView), 0, 0, 1, 1}, {&__pyx_n_s_cudaGetTextureObjectTextureDesc, __pyx_k_cudaGetTextureObjectTextureDesc, sizeof(__pyx_k_cudaGetTextureObjectTextureDesc), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphAddChildGraphNode, __pyx_k_cudaGraphAddChildGraphNode, sizeof(__pyx_k_cudaGraphAddChildGraphNode), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphAddChildGraphNode_local, __pyx_k_cudaGraphAddChildGraphNode_local, sizeof(__pyx_k_cudaGraphAddChildGraphNode_local), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphAddDependencies, __pyx_k_cudaGraphAddDependencies, sizeof(__pyx_k_cudaGraphAddDependencies), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphAddDependencies_locals, __pyx_k_cudaGraphAddDependencies_locals, sizeof(__pyx_k_cudaGraphAddDependencies_locals), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphAddDependencies_v2, __pyx_k_cudaGraphAddDependencies_v2, sizeof(__pyx_k_cudaGraphAddDependencies_v2), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphAddDependencies_v2_loca, __pyx_k_cudaGraphAddDependencies_v2_loca, sizeof(__pyx_k_cudaGraphAddDependencies_v2_loca), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphAddEmptyNode, __pyx_k_cudaGraphAddEmptyNode, sizeof(__pyx_k_cudaGraphAddEmptyNode), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphAddEmptyNode_locals_gen, __pyx_k_cudaGraphAddEmptyNode_locals_gen, sizeof(__pyx_k_cudaGraphAddEmptyNode_locals_gen), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphAddEventRecordNode, __pyx_k_cudaGraphAddEventRecordNode, sizeof(__pyx_k_cudaGraphAddEventRecordNode), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphAddEventRecordNode_loca, __pyx_k_cudaGraphAddEventRecordNode_loca, sizeof(__pyx_k_cudaGraphAddEventRecordNode_loca), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphAddEventWaitNode, __pyx_k_cudaGraphAddEventWaitNode, sizeof(__pyx_k_cudaGraphAddEventWaitNode), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphAddEventWaitNode_locals, __pyx_k_cudaGraphAddEventWaitNode_locals, sizeof(__pyx_k_cudaGraphAddEventWaitNode_locals), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphAddExternalSemaphoresSi, __pyx_k_cudaGraphAddExternalSemaphoresSi, sizeof(__pyx_k_cudaGraphAddExternalSemaphoresSi), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphAddExternalSemaphoresSi_2, __pyx_k_cudaGraphAddExternalSemaphoresSi_2, sizeof(__pyx_k_cudaGraphAddExternalSemaphoresSi_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphAddExternalSemaphoresWa, __pyx_k_cudaGraphAddExternalSemaphoresWa, sizeof(__pyx_k_cudaGraphAddExternalSemaphoresWa), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphAddExternalSemaphoresWa_2, __pyx_k_cudaGraphAddExternalSemaphoresWa_2, sizeof(__pyx_k_cudaGraphAddExternalSemaphoresWa_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphAddHostNode, __pyx_k_cudaGraphAddHostNode, sizeof(__pyx_k_cudaGraphAddHostNode), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphAddHostNode_locals_gene, __pyx_k_cudaGraphAddHostNode_locals_gene, sizeof(__pyx_k_cudaGraphAddHostNode_locals_gene), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphAddKernelNode, __pyx_k_cudaGraphAddKernelNode, sizeof(__pyx_k_cudaGraphAddKernelNode), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphAddKernelNode_locals_ge, __pyx_k_cudaGraphAddKernelNode_locals_ge, sizeof(__pyx_k_cudaGraphAddKernelNode_locals_ge), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphAddMemAllocNode, __pyx_k_cudaGraphAddMemAllocNode, sizeof(__pyx_k_cudaGraphAddMemAllocNode), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphAddMemAllocNode_locals, __pyx_k_cudaGraphAddMemAllocNode_locals, sizeof(__pyx_k_cudaGraphAddMemAllocNode_locals), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphAddMemFreeNode, __pyx_k_cudaGraphAddMemFreeNode, sizeof(__pyx_k_cudaGraphAddMemFreeNode), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphAddMemFreeNode_locals_g, __pyx_k_cudaGraphAddMemFreeNode_locals_g, sizeof(__pyx_k_cudaGraphAddMemFreeNode_locals_g), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphAddMemcpyNode, __pyx_k_cudaGraphAddMemcpyNode, sizeof(__pyx_k_cudaGraphAddMemcpyNode), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphAddMemcpyNode1D, __pyx_k_cudaGraphAddMemcpyNode1D, sizeof(__pyx_k_cudaGraphAddMemcpyNode1D), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphAddMemcpyNode1D_locals, __pyx_k_cudaGraphAddMemcpyNode1D_locals, sizeof(__pyx_k_cudaGraphAddMemcpyNode1D_locals), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphAddMemcpyNode_locals_ge, __pyx_k_cudaGraphAddMemcpyNode_locals_ge, sizeof(__pyx_k_cudaGraphAddMemcpyNode_locals_ge), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphAddMemsetNode, __pyx_k_cudaGraphAddMemsetNode, sizeof(__pyx_k_cudaGraphAddMemsetNode), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphAddMemsetNode_locals_ge, __pyx_k_cudaGraphAddMemsetNode_locals_ge, sizeof(__pyx_k_cudaGraphAddMemsetNode_locals_ge), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphAddNode, __pyx_k_cudaGraphAddNode, sizeof(__pyx_k_cudaGraphAddNode), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphAddNode_locals_genexpr, __pyx_k_cudaGraphAddNode_locals_genexpr, sizeof(__pyx_k_cudaGraphAddNode_locals_genexpr), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphAddNode_v2, __pyx_k_cudaGraphAddNode_v2, sizeof(__pyx_k_cudaGraphAddNode_v2), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphAddNode_v2_locals_genex, __pyx_k_cudaGraphAddNode_v2_locals_genex, sizeof(__pyx_k_cudaGraphAddNode_v2_locals_genex), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphChildGraphNodeGetGraph, __pyx_k_cudaGraphChildGraphNodeGetGraph, sizeof(__pyx_k_cudaGraphChildGraphNodeGetGraph), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphClone, __pyx_k_cudaGraphClone, sizeof(__pyx_k_cudaGraphClone), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphCondAssignDefault, __pyx_k_cudaGraphCondAssignDefault, sizeof(__pyx_k_cudaGraphCondAssignDefault), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphCondTypeIf, __pyx_k_cudaGraphCondTypeIf, sizeof(__pyx_k_cudaGraphCondTypeIf), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphCondTypeWhile, __pyx_k_cudaGraphCondTypeWhile, sizeof(__pyx_k_cudaGraphCondTypeWhile), 0, 0, 1, 1}, {&__pyx_kp_u_cudaGraphConditionalHandle, __pyx_k_cudaGraphConditionalHandle, sizeof(__pyx_k_cudaGraphConditionalHandle), 0, 1, 0, 0}, {&__pyx_n_s_cudaGraphConditionalHandleCreate, __pyx_k_cudaGraphConditionalHandleCreate, sizeof(__pyx_k_cudaGraphConditionalHandleCreate), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphConditionalHandleFlags, __pyx_k_cudaGraphConditionalHandleFlags, sizeof(__pyx_k_cudaGraphConditionalHandleFlags), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphConditionalHandle_2, __pyx_k_cudaGraphConditionalHandle_2, sizeof(__pyx_k_cudaGraphConditionalHandle_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphConditionalHandle___red, __pyx_k_cudaGraphConditionalHandle___red, sizeof(__pyx_k_cudaGraphConditionalHandle___red), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphConditionalHandle___set, __pyx_k_cudaGraphConditionalHandle___set, sizeof(__pyx_k_cudaGraphConditionalHandle___set), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphConditionalHandle_getPt, __pyx_k_cudaGraphConditionalHandle_getPt, sizeof(__pyx_k_cudaGraphConditionalHandle_getPt), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphConditionalNodeType, __pyx_k_cudaGraphConditionalNodeType, sizeof(__pyx_k_cudaGraphConditionalNodeType), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphCreate, __pyx_k_cudaGraphCreate, sizeof(__pyx_k_cudaGraphCreate), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphDebugDotFlags, __pyx_k_cudaGraphDebugDotFlags, sizeof(__pyx_k_cudaGraphDebugDotFlags), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphDebugDotFlagsConditiona, __pyx_k_cudaGraphDebugDotFlagsConditiona, sizeof(__pyx_k_cudaGraphDebugDotFlagsConditiona), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphDebugDotFlagsEventNodeP, __pyx_k_cudaGraphDebugDotFlagsEventNodeP, sizeof(__pyx_k_cudaGraphDebugDotFlagsEventNodeP), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphDebugDotFlagsExtSemasSi, __pyx_k_cudaGraphDebugDotFlagsExtSemasSi, sizeof(__pyx_k_cudaGraphDebugDotFlagsExtSemasSi), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphDebugDotFlagsExtSemasWa, __pyx_k_cudaGraphDebugDotFlagsExtSemasWa, sizeof(__pyx_k_cudaGraphDebugDotFlagsExtSemasWa), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphDebugDotFlagsHandles, __pyx_k_cudaGraphDebugDotFlagsHandles, sizeof(__pyx_k_cudaGraphDebugDotFlagsHandles), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphDebugDotFlagsHostNodePa, __pyx_k_cudaGraphDebugDotFlagsHostNodePa, sizeof(__pyx_k_cudaGraphDebugDotFlagsHostNodePa), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphDebugDotFlagsKernelNode, __pyx_k_cudaGraphDebugDotFlagsKernelNode, sizeof(__pyx_k_cudaGraphDebugDotFlagsKernelNode), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphDebugDotFlagsKernelNode_2, __pyx_k_cudaGraphDebugDotFlagsKernelNode_2, sizeof(__pyx_k_cudaGraphDebugDotFlagsKernelNode_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphDebugDotFlagsMemcpyNode, __pyx_k_cudaGraphDebugDotFlagsMemcpyNode, sizeof(__pyx_k_cudaGraphDebugDotFlagsMemcpyNode), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphDebugDotFlagsMemsetNode, __pyx_k_cudaGraphDebugDotFlagsMemsetNode, sizeof(__pyx_k_cudaGraphDebugDotFlagsMemsetNode), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphDebugDotFlagsVerbose, __pyx_k_cudaGraphDebugDotFlagsVerbose, sizeof(__pyx_k_cudaGraphDebugDotFlagsVerbose), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphDebugDotPrint, __pyx_k_cudaGraphDebugDotPrint, sizeof(__pyx_k_cudaGraphDebugDotPrint), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphDependencyType, __pyx_k_cudaGraphDependencyType, sizeof(__pyx_k_cudaGraphDependencyType), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphDependencyTypeDefault, __pyx_k_cudaGraphDependencyTypeDefault, sizeof(__pyx_k_cudaGraphDependencyTypeDefault), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphDependencyTypeProgramma, __pyx_k_cudaGraphDependencyTypeProgramma, sizeof(__pyx_k_cudaGraphDependencyTypeProgramma), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphDestroy, __pyx_k_cudaGraphDestroy, sizeof(__pyx_k_cudaGraphDestroy), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphDestroyNode, __pyx_k_cudaGraphDestroyNode, sizeof(__pyx_k_cudaGraphDestroyNode), 0, 0, 1, 1}, {&__pyx_kp_u_cudaGraphDeviceNode_t, __pyx_k_cudaGraphDeviceNode_t, sizeof(__pyx_k_cudaGraphDeviceNode_t), 0, 1, 0, 0}, {&__pyx_n_s_cudaGraphDeviceNode_t_2, __pyx_k_cudaGraphDeviceNode_t_2, sizeof(__pyx_k_cudaGraphDeviceNode_t_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphDeviceNode_t___reduce_c, __pyx_k_cudaGraphDeviceNode_t___reduce_c, sizeof(__pyx_k_cudaGraphDeviceNode_t___reduce_c), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphDeviceNode_t___setstate, __pyx_k_cudaGraphDeviceNode_t___setstate, sizeof(__pyx_k_cudaGraphDeviceNode_t___setstate), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphDeviceNode_t_getPtr, __pyx_k_cudaGraphDeviceNode_t_getPtr, sizeof(__pyx_k_cudaGraphDeviceNode_t_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphEdgeData, __pyx_k_cudaGraphEdgeData, sizeof(__pyx_k_cudaGraphEdgeData), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphEdgeData_st, __pyx_k_cudaGraphEdgeData_st, sizeof(__pyx_k_cudaGraphEdgeData_st), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphEdgeData_st___reduce_cy, __pyx_k_cudaGraphEdgeData_st___reduce_cy, sizeof(__pyx_k_cudaGraphEdgeData_st___reduce_cy), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphEdgeData_st___setstate, __pyx_k_cudaGraphEdgeData_st___setstate, sizeof(__pyx_k_cudaGraphEdgeData_st___setstate), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphEdgeData_st_getPtr, __pyx_k_cudaGraphEdgeData_st_getPtr, sizeof(__pyx_k_cudaGraphEdgeData_st_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphEventRecordNodeGetEvent, __pyx_k_cudaGraphEventRecordNodeGetEvent, sizeof(__pyx_k_cudaGraphEventRecordNodeGetEvent), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphEventRecordNodeSetEvent, __pyx_k_cudaGraphEventRecordNodeSetEvent, sizeof(__pyx_k_cudaGraphEventRecordNodeSetEvent), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphEventWaitNodeGetEvent, __pyx_k_cudaGraphEventWaitNodeGetEvent, sizeof(__pyx_k_cudaGraphEventWaitNodeGetEvent), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphEventWaitNodeSetEvent, __pyx_k_cudaGraphEventWaitNodeSetEvent, sizeof(__pyx_k_cudaGraphEventWaitNodeSetEvent), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphExecChildGraphNodeSetPa, __pyx_k_cudaGraphExecChildGraphNodeSetPa, sizeof(__pyx_k_cudaGraphExecChildGraphNodeSetPa), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphExecDestroy, __pyx_k_cudaGraphExecDestroy, sizeof(__pyx_k_cudaGraphExecDestroy), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphExecEventRecordNodeSetE, __pyx_k_cudaGraphExecEventRecordNodeSetE, sizeof(__pyx_k_cudaGraphExecEventRecordNodeSetE), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphExecEventWaitNodeSetEve, __pyx_k_cudaGraphExecEventWaitNodeSetEve, sizeof(__pyx_k_cudaGraphExecEventWaitNodeSetEve), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphExecExternalSemaphoresS, __pyx_k_cudaGraphExecExternalSemaphoresS, sizeof(__pyx_k_cudaGraphExecExternalSemaphoresS), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphExecExternalSemaphoresW, __pyx_k_cudaGraphExecExternalSemaphoresW, sizeof(__pyx_k_cudaGraphExecExternalSemaphoresW), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphExecGetFlags, __pyx_k_cudaGraphExecGetFlags, sizeof(__pyx_k_cudaGraphExecGetFlags), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphExecHostNodeSetParams, __pyx_k_cudaGraphExecHostNodeSetParams, sizeof(__pyx_k_cudaGraphExecHostNodeSetParams), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphExecKernelNodeSetParams, __pyx_k_cudaGraphExecKernelNodeSetParams, sizeof(__pyx_k_cudaGraphExecKernelNodeSetParams), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphExecMemcpyNodeSetParams, __pyx_k_cudaGraphExecMemcpyNodeSetParams, sizeof(__pyx_k_cudaGraphExecMemcpyNodeSetParams), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphExecMemcpyNodeSetParams_2, __pyx_k_cudaGraphExecMemcpyNodeSetParams_2, sizeof(__pyx_k_cudaGraphExecMemcpyNodeSetParams_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphExecMemsetNodeSetParams, __pyx_k_cudaGraphExecMemsetNodeSetParams, sizeof(__pyx_k_cudaGraphExecMemsetNodeSetParams), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphExecNodeSetParams, __pyx_k_cudaGraphExecNodeSetParams, sizeof(__pyx_k_cudaGraphExecNodeSetParams), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphExecUpdate, __pyx_k_cudaGraphExecUpdate, sizeof(__pyx_k_cudaGraphExecUpdate), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphExecUpdateError, __pyx_k_cudaGraphExecUpdateError, sizeof(__pyx_k_cudaGraphExecUpdateError), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphExecUpdateErrorAttribut, __pyx_k_cudaGraphExecUpdateErrorAttribut, sizeof(__pyx_k_cudaGraphExecUpdateErrorAttribut), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphExecUpdateErrorFunction, __pyx_k_cudaGraphExecUpdateErrorFunction, sizeof(__pyx_k_cudaGraphExecUpdateErrorFunction), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphExecUpdateErrorNodeType, __pyx_k_cudaGraphExecUpdateErrorNodeType, sizeof(__pyx_k_cudaGraphExecUpdateErrorNodeType), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphExecUpdateErrorNotSuppo, __pyx_k_cudaGraphExecUpdateErrorNotSuppo, sizeof(__pyx_k_cudaGraphExecUpdateErrorNotSuppo), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphExecUpdateErrorParamete, __pyx_k_cudaGraphExecUpdateErrorParamete, sizeof(__pyx_k_cudaGraphExecUpdateErrorParamete), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphExecUpdateErrorTopology, __pyx_k_cudaGraphExecUpdateErrorTopology, sizeof(__pyx_k_cudaGraphExecUpdateErrorTopology), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphExecUpdateErrorUnsuppor, __pyx_k_cudaGraphExecUpdateErrorUnsuppor, sizeof(__pyx_k_cudaGraphExecUpdateErrorUnsuppor), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphExecUpdateResult, __pyx_k_cudaGraphExecUpdateResult, sizeof(__pyx_k_cudaGraphExecUpdateResult), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphExecUpdateResultInfo, __pyx_k_cudaGraphExecUpdateResultInfo, sizeof(__pyx_k_cudaGraphExecUpdateResultInfo), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphExecUpdateResultInfo_st, __pyx_k_cudaGraphExecUpdateResultInfo_st, sizeof(__pyx_k_cudaGraphExecUpdateResultInfo_st), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphExecUpdateResultInfo_st_2, __pyx_k_cudaGraphExecUpdateResultInfo_st_2, sizeof(__pyx_k_cudaGraphExecUpdateResultInfo_st_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphExecUpdateResultInfo_st_3, __pyx_k_cudaGraphExecUpdateResultInfo_st_3, sizeof(__pyx_k_cudaGraphExecUpdateResultInfo_st_3), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphExecUpdateResultInfo_st_4, __pyx_k_cudaGraphExecUpdateResultInfo_st_4, sizeof(__pyx_k_cudaGraphExecUpdateResultInfo_st_4), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphExecUpdateSuccess, __pyx_k_cudaGraphExecUpdateSuccess, sizeof(__pyx_k_cudaGraphExecUpdateSuccess), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphExec_t, __pyx_k_cudaGraphExec_t, sizeof(__pyx_k_cudaGraphExec_t), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphExternalSemaphoresSigna, __pyx_k_cudaGraphExternalSemaphoresSigna, sizeof(__pyx_k_cudaGraphExternalSemaphoresSigna), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphExternalSemaphoresSigna_2, __pyx_k_cudaGraphExternalSemaphoresSigna_2, sizeof(__pyx_k_cudaGraphExternalSemaphoresSigna_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphExternalSemaphoresWaitN, __pyx_k_cudaGraphExternalSemaphoresWaitN, sizeof(__pyx_k_cudaGraphExternalSemaphoresWaitN), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphExternalSemaphoresWaitN_2, __pyx_k_cudaGraphExternalSemaphoresWaitN_2, sizeof(__pyx_k_cudaGraphExternalSemaphoresWaitN_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphGetEdges, __pyx_k_cudaGraphGetEdges, sizeof(__pyx_k_cudaGraphGetEdges), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphGetEdges_v2, __pyx_k_cudaGraphGetEdges_v2, sizeof(__pyx_k_cudaGraphGetEdges_v2), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphGetNodes, __pyx_k_cudaGraphGetNodes, sizeof(__pyx_k_cudaGraphGetNodes), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphGetRootNodes, __pyx_k_cudaGraphGetRootNodes, sizeof(__pyx_k_cudaGraphGetRootNodes), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphHostNodeGetParams, __pyx_k_cudaGraphHostNodeGetParams, sizeof(__pyx_k_cudaGraphHostNodeGetParams), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphHostNodeSetParams, __pyx_k_cudaGraphHostNodeSetParams, sizeof(__pyx_k_cudaGraphHostNodeSetParams), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphInstantiate, __pyx_k_cudaGraphInstantiate, sizeof(__pyx_k_cudaGraphInstantiate), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphInstantiateError, __pyx_k_cudaGraphInstantiateError, sizeof(__pyx_k_cudaGraphInstantiateError), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphInstantiateFlagAutoFree, __pyx_k_cudaGraphInstantiateFlagAutoFree, sizeof(__pyx_k_cudaGraphInstantiateFlagAutoFree), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphInstantiateFlagDeviceLa, __pyx_k_cudaGraphInstantiateFlagDeviceLa, sizeof(__pyx_k_cudaGraphInstantiateFlagDeviceLa), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphInstantiateFlagUpload, __pyx_k_cudaGraphInstantiateFlagUpload, sizeof(__pyx_k_cudaGraphInstantiateFlagUpload), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphInstantiateFlagUseNodeP, __pyx_k_cudaGraphInstantiateFlagUseNodeP, sizeof(__pyx_k_cudaGraphInstantiateFlagUseNodeP), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphInstantiateFlags, __pyx_k_cudaGraphInstantiateFlags, sizeof(__pyx_k_cudaGraphInstantiateFlags), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphInstantiateInvalidStruc, __pyx_k_cudaGraphInstantiateInvalidStruc, sizeof(__pyx_k_cudaGraphInstantiateInvalidStruc), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphInstantiateMultipleDevi, __pyx_k_cudaGraphInstantiateMultipleDevi, sizeof(__pyx_k_cudaGraphInstantiateMultipleDevi), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphInstantiateNodeOperatio, __pyx_k_cudaGraphInstantiateNodeOperatio, sizeof(__pyx_k_cudaGraphInstantiateNodeOperatio), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphInstantiateParams, __pyx_k_cudaGraphInstantiateParams, sizeof(__pyx_k_cudaGraphInstantiateParams), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphInstantiateParams_st, __pyx_k_cudaGraphInstantiateParams_st, sizeof(__pyx_k_cudaGraphInstantiateParams_st), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphInstantiateParams_st_2, __pyx_k_cudaGraphInstantiateParams_st_2, sizeof(__pyx_k_cudaGraphInstantiateParams_st_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphInstantiateParams_st_3, __pyx_k_cudaGraphInstantiateParams_st_3, sizeof(__pyx_k_cudaGraphInstantiateParams_st_3), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphInstantiateParams_st_ge, __pyx_k_cudaGraphInstantiateParams_st_ge, sizeof(__pyx_k_cudaGraphInstantiateParams_st_ge), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphInstantiateResult, __pyx_k_cudaGraphInstantiateResult, sizeof(__pyx_k_cudaGraphInstantiateResult), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphInstantiateSuccess, __pyx_k_cudaGraphInstantiateSuccess, sizeof(__pyx_k_cudaGraphInstantiateSuccess), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphInstantiateWithFlags, __pyx_k_cudaGraphInstantiateWithFlags, sizeof(__pyx_k_cudaGraphInstantiateWithFlags), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphInstantiateWithParams, __pyx_k_cudaGraphInstantiateWithParams, sizeof(__pyx_k_cudaGraphInstantiateWithParams), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphKernelNodeCopyAttribute, __pyx_k_cudaGraphKernelNodeCopyAttribute, sizeof(__pyx_k_cudaGraphKernelNodeCopyAttribute), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphKernelNodeField, __pyx_k_cudaGraphKernelNodeField, sizeof(__pyx_k_cudaGraphKernelNodeField), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphKernelNodeFieldEnabled, __pyx_k_cudaGraphKernelNodeFieldEnabled, sizeof(__pyx_k_cudaGraphKernelNodeFieldEnabled), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphKernelNodeFieldGridDim, __pyx_k_cudaGraphKernelNodeFieldGridDim, sizeof(__pyx_k_cudaGraphKernelNodeFieldGridDim), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphKernelNodeFieldInvalid, __pyx_k_cudaGraphKernelNodeFieldInvalid, sizeof(__pyx_k_cudaGraphKernelNodeFieldInvalid), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphKernelNodeFieldParam, __pyx_k_cudaGraphKernelNodeFieldParam, sizeof(__pyx_k_cudaGraphKernelNodeFieldParam), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphKernelNodeGetAttribute, __pyx_k_cudaGraphKernelNodeGetAttribute, sizeof(__pyx_k_cudaGraphKernelNodeGetAttribute), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphKernelNodeGetParams, __pyx_k_cudaGraphKernelNodeGetParams, sizeof(__pyx_k_cudaGraphKernelNodeGetParams), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphKernelNodePortDefault, __pyx_k_cudaGraphKernelNodePortDefault, sizeof(__pyx_k_cudaGraphKernelNodePortDefault), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphKernelNodePortLaunchCom, __pyx_k_cudaGraphKernelNodePortLaunchCom, sizeof(__pyx_k_cudaGraphKernelNodePortLaunchCom), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphKernelNodePortProgramma, __pyx_k_cudaGraphKernelNodePortProgramma, sizeof(__pyx_k_cudaGraphKernelNodePortProgramma), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphKernelNodeSetAttribute, __pyx_k_cudaGraphKernelNodeSetAttribute, sizeof(__pyx_k_cudaGraphKernelNodeSetAttribute), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphKernelNodeSetParams, __pyx_k_cudaGraphKernelNodeSetParams, sizeof(__pyx_k_cudaGraphKernelNodeSetParams), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphKernelNodeUpdate, __pyx_k_cudaGraphKernelNodeUpdate, sizeof(__pyx_k_cudaGraphKernelNodeUpdate), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphKernelNodeUpdate___redu, __pyx_k_cudaGraphKernelNodeUpdate___redu, sizeof(__pyx_k_cudaGraphKernelNodeUpdate___redu), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphKernelNodeUpdate___sets, __pyx_k_cudaGraphKernelNodeUpdate___sets, sizeof(__pyx_k_cudaGraphKernelNodeUpdate___sets), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphKernelNodeUpdate_getPtr, __pyx_k_cudaGraphKernelNodeUpdate_getPtr, sizeof(__pyx_k_cudaGraphKernelNodeUpdate_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphLaunch, __pyx_k_cudaGraphLaunch, sizeof(__pyx_k_cudaGraphLaunch), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphMemAllocNodeGetParams, __pyx_k_cudaGraphMemAllocNodeGetParams, sizeof(__pyx_k_cudaGraphMemAllocNodeGetParams), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphMemAttrReservedMemCurre, __pyx_k_cudaGraphMemAttrReservedMemCurre, sizeof(__pyx_k_cudaGraphMemAttrReservedMemCurre), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphMemAttrReservedMemHigh, __pyx_k_cudaGraphMemAttrReservedMemHigh, sizeof(__pyx_k_cudaGraphMemAttrReservedMemHigh), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphMemAttrUsedMemCurrent, __pyx_k_cudaGraphMemAttrUsedMemCurrent, sizeof(__pyx_k_cudaGraphMemAttrUsedMemCurrent), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphMemAttrUsedMemHigh, __pyx_k_cudaGraphMemAttrUsedMemHigh, sizeof(__pyx_k_cudaGraphMemAttrUsedMemHigh), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphMemAttributeType, __pyx_k_cudaGraphMemAttributeType, sizeof(__pyx_k_cudaGraphMemAttributeType), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphMemFreeNodeGetParams, __pyx_k_cudaGraphMemFreeNodeGetParams, sizeof(__pyx_k_cudaGraphMemFreeNodeGetParams), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphMemcpyNodeGetParams, __pyx_k_cudaGraphMemcpyNodeGetParams, sizeof(__pyx_k_cudaGraphMemcpyNodeGetParams), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphMemcpyNodeSetParams, __pyx_k_cudaGraphMemcpyNodeSetParams, sizeof(__pyx_k_cudaGraphMemcpyNodeSetParams), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphMemcpyNodeSetParams1D, __pyx_k_cudaGraphMemcpyNodeSetParams1D, sizeof(__pyx_k_cudaGraphMemcpyNodeSetParams1D), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphMemsetNodeGetParams, __pyx_k_cudaGraphMemsetNodeGetParams, sizeof(__pyx_k_cudaGraphMemsetNodeGetParams), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphMemsetNodeSetParams, __pyx_k_cudaGraphMemsetNodeSetParams, sizeof(__pyx_k_cudaGraphMemsetNodeSetParams), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphNodeFindInClone, __pyx_k_cudaGraphNodeFindInClone, sizeof(__pyx_k_cudaGraphNodeFindInClone), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphNodeGetDependencies, __pyx_k_cudaGraphNodeGetDependencies, sizeof(__pyx_k_cudaGraphNodeGetDependencies), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphNodeGetDependencies_v2, __pyx_k_cudaGraphNodeGetDependencies_v2, sizeof(__pyx_k_cudaGraphNodeGetDependencies_v2), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphNodeGetDependentNodes, __pyx_k_cudaGraphNodeGetDependentNodes, sizeof(__pyx_k_cudaGraphNodeGetDependentNodes), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphNodeGetDependentNodes_v, __pyx_k_cudaGraphNodeGetDependentNodes_v, sizeof(__pyx_k_cudaGraphNodeGetDependentNodes_v), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphNodeGetEnabled, __pyx_k_cudaGraphNodeGetEnabled, sizeof(__pyx_k_cudaGraphNodeGetEnabled), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphNodeGetType, __pyx_k_cudaGraphNodeGetType, sizeof(__pyx_k_cudaGraphNodeGetType), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphNodeParams, __pyx_k_cudaGraphNodeParams, sizeof(__pyx_k_cudaGraphNodeParams), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphNodeParams___reduce_cyt, __pyx_k_cudaGraphNodeParams___reduce_cyt, sizeof(__pyx_k_cudaGraphNodeParams___reduce_cyt), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphNodeParams___setstate_c, __pyx_k_cudaGraphNodeParams___setstate_c, sizeof(__pyx_k_cudaGraphNodeParams___setstate_c), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphNodeParams_getPtr, __pyx_k_cudaGraphNodeParams_getPtr, sizeof(__pyx_k_cudaGraphNodeParams_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphNodeSetEnabled, __pyx_k_cudaGraphNodeSetEnabled, sizeof(__pyx_k_cudaGraphNodeSetEnabled), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphNodeSetParams, __pyx_k_cudaGraphNodeSetParams, sizeof(__pyx_k_cudaGraphNodeSetParams), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphNodeType, __pyx_k_cudaGraphNodeType, sizeof(__pyx_k_cudaGraphNodeType), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphNodeTypeConditional, __pyx_k_cudaGraphNodeTypeConditional, sizeof(__pyx_k_cudaGraphNodeTypeConditional), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphNodeTypeCount, __pyx_k_cudaGraphNodeTypeCount, sizeof(__pyx_k_cudaGraphNodeTypeCount), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphNodeTypeEmpty, __pyx_k_cudaGraphNodeTypeEmpty, sizeof(__pyx_k_cudaGraphNodeTypeEmpty), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphNodeTypeEventRecord, __pyx_k_cudaGraphNodeTypeEventRecord, sizeof(__pyx_k_cudaGraphNodeTypeEventRecord), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphNodeTypeExtSemaphoreSig, __pyx_k_cudaGraphNodeTypeExtSemaphoreSig, sizeof(__pyx_k_cudaGraphNodeTypeExtSemaphoreSig), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphNodeTypeExtSemaphoreWai, __pyx_k_cudaGraphNodeTypeExtSemaphoreWai, sizeof(__pyx_k_cudaGraphNodeTypeExtSemaphoreWai), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphNodeTypeGraph, __pyx_k_cudaGraphNodeTypeGraph, sizeof(__pyx_k_cudaGraphNodeTypeGraph), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphNodeTypeHost, __pyx_k_cudaGraphNodeTypeHost, sizeof(__pyx_k_cudaGraphNodeTypeHost), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphNodeTypeKernel, __pyx_k_cudaGraphNodeTypeKernel, sizeof(__pyx_k_cudaGraphNodeTypeKernel), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphNodeTypeMemAlloc, __pyx_k_cudaGraphNodeTypeMemAlloc, sizeof(__pyx_k_cudaGraphNodeTypeMemAlloc), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphNodeTypeMemFree, __pyx_k_cudaGraphNodeTypeMemFree, sizeof(__pyx_k_cudaGraphNodeTypeMemFree), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphNodeTypeMemcpy, __pyx_k_cudaGraphNodeTypeMemcpy, sizeof(__pyx_k_cudaGraphNodeTypeMemcpy), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphNodeTypeMemset, __pyx_k_cudaGraphNodeTypeMemset, sizeof(__pyx_k_cudaGraphNodeTypeMemset), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphNodeTypeWaitEvent, __pyx_k_cudaGraphNodeTypeWaitEvent, sizeof(__pyx_k_cudaGraphNodeTypeWaitEvent), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphNode_t, __pyx_k_cudaGraphNode_t, sizeof(__pyx_k_cudaGraphNode_t), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphReleaseUserObject, __pyx_k_cudaGraphReleaseUserObject, sizeof(__pyx_k_cudaGraphReleaseUserObject), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphRemoveDependencies, __pyx_k_cudaGraphRemoveDependencies, sizeof(__pyx_k_cudaGraphRemoveDependencies), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphRemoveDependencies_loca, __pyx_k_cudaGraphRemoveDependencies_loca, sizeof(__pyx_k_cudaGraphRemoveDependencies_loca), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphRemoveDependencies_v2, __pyx_k_cudaGraphRemoveDependencies_v2, sizeof(__pyx_k_cudaGraphRemoveDependencies_v2), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphRemoveDependencies_v2_l, __pyx_k_cudaGraphRemoveDependencies_v2_l, sizeof(__pyx_k_cudaGraphRemoveDependencies_v2_l), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphRetainUserObject, __pyx_k_cudaGraphRetainUserObject, sizeof(__pyx_k_cudaGraphRetainUserObject), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphUpload, __pyx_k_cudaGraphUpload, sizeof(__pyx_k_cudaGraphUpload), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphUserObjectMove, __pyx_k_cudaGraphUserObjectMove, sizeof(__pyx_k_cudaGraphUserObjectMove), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraph_t, __pyx_k_cudaGraph_t, sizeof(__pyx_k_cudaGraph_t), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphicsCubeFace, __pyx_k_cudaGraphicsCubeFace, sizeof(__pyx_k_cudaGraphicsCubeFace), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphicsCubeFaceNegativeX, __pyx_k_cudaGraphicsCubeFaceNegativeX, sizeof(__pyx_k_cudaGraphicsCubeFaceNegativeX), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphicsCubeFaceNegativeY, __pyx_k_cudaGraphicsCubeFaceNegativeY, sizeof(__pyx_k_cudaGraphicsCubeFaceNegativeY), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphicsCubeFaceNegativeZ, __pyx_k_cudaGraphicsCubeFaceNegativeZ, sizeof(__pyx_k_cudaGraphicsCubeFaceNegativeZ), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphicsCubeFacePositiveX, __pyx_k_cudaGraphicsCubeFacePositiveX, sizeof(__pyx_k_cudaGraphicsCubeFacePositiveX), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphicsCubeFacePositiveY, __pyx_k_cudaGraphicsCubeFacePositiveY, sizeof(__pyx_k_cudaGraphicsCubeFacePositiveY), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphicsCubeFacePositiveZ, __pyx_k_cudaGraphicsCubeFacePositiveZ, sizeof(__pyx_k_cudaGraphicsCubeFacePositiveZ), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphicsEGLRegisterImage, __pyx_k_cudaGraphicsEGLRegisterImage, sizeof(__pyx_k_cudaGraphicsEGLRegisterImage), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphicsGLRegisterBuffer, __pyx_k_cudaGraphicsGLRegisterBuffer, sizeof(__pyx_k_cudaGraphicsGLRegisterBuffer), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphicsGLRegisterImage, __pyx_k_cudaGraphicsGLRegisterImage, sizeof(__pyx_k_cudaGraphicsGLRegisterImage), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphicsMapFlags, __pyx_k_cudaGraphicsMapFlags, sizeof(__pyx_k_cudaGraphicsMapFlags), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphicsMapFlagsNone, __pyx_k_cudaGraphicsMapFlagsNone, sizeof(__pyx_k_cudaGraphicsMapFlagsNone), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphicsMapFlagsReadOnly, __pyx_k_cudaGraphicsMapFlagsReadOnly, sizeof(__pyx_k_cudaGraphicsMapFlagsReadOnly), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphicsMapFlagsWriteDiscard, __pyx_k_cudaGraphicsMapFlagsWriteDiscard, sizeof(__pyx_k_cudaGraphicsMapFlagsWriteDiscard), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphicsMapResources, __pyx_k_cudaGraphicsMapResources, sizeof(__pyx_k_cudaGraphicsMapResources), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphicsRegisterFlags, __pyx_k_cudaGraphicsRegisterFlags, sizeof(__pyx_k_cudaGraphicsRegisterFlags), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphicsRegisterFlagsNone, __pyx_k_cudaGraphicsRegisterFlagsNone, sizeof(__pyx_k_cudaGraphicsRegisterFlagsNone), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphicsRegisterFlagsReadOnl, __pyx_k_cudaGraphicsRegisterFlagsReadOnl, sizeof(__pyx_k_cudaGraphicsRegisterFlagsReadOnl), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphicsRegisterFlagsSurface, __pyx_k_cudaGraphicsRegisterFlagsSurface, sizeof(__pyx_k_cudaGraphicsRegisterFlagsSurface), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphicsRegisterFlagsTexture, __pyx_k_cudaGraphicsRegisterFlagsTexture, sizeof(__pyx_k_cudaGraphicsRegisterFlagsTexture), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphicsRegisterFlagsWriteDi, __pyx_k_cudaGraphicsRegisterFlagsWriteDi, sizeof(__pyx_k_cudaGraphicsRegisterFlagsWriteDi), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphicsResourceGetMappedEgl, __pyx_k_cudaGraphicsResourceGetMappedEgl, sizeof(__pyx_k_cudaGraphicsResourceGetMappedEgl), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphicsResourceGetMappedMip, __pyx_k_cudaGraphicsResourceGetMappedMip, sizeof(__pyx_k_cudaGraphicsResourceGetMappedMip), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphicsResourceGetMappedPoi, __pyx_k_cudaGraphicsResourceGetMappedPoi, sizeof(__pyx_k_cudaGraphicsResourceGetMappedPoi), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphicsResourceSetMapFlags, __pyx_k_cudaGraphicsResourceSetMapFlags, sizeof(__pyx_k_cudaGraphicsResourceSetMapFlags), 0, 0, 1, 1}, {&__pyx_kp_u_cudaGraphicsResource_t, __pyx_k_cudaGraphicsResource_t, sizeof(__pyx_k_cudaGraphicsResource_t), 0, 1, 0, 0}, {&__pyx_n_s_cudaGraphicsResource_t_2, __pyx_k_cudaGraphicsResource_t_2, sizeof(__pyx_k_cudaGraphicsResource_t_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphicsResource_t___reduce, __pyx_k_cudaGraphicsResource_t___reduce, sizeof(__pyx_k_cudaGraphicsResource_t___reduce), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphicsResource_t___setstat, __pyx_k_cudaGraphicsResource_t___setstat, sizeof(__pyx_k_cudaGraphicsResource_t___setstat), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphicsResource_t_getPtr, __pyx_k_cudaGraphicsResource_t_getPtr, sizeof(__pyx_k_cudaGraphicsResource_t_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphicsSubResourceGetMapped, __pyx_k_cudaGraphicsSubResourceGetMapped, sizeof(__pyx_k_cudaGraphicsSubResourceGetMapped), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphicsUnmapResources, __pyx_k_cudaGraphicsUnmapResources, sizeof(__pyx_k_cudaGraphicsUnmapResources), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphicsUnregisterResource, __pyx_k_cudaGraphicsUnregisterResource, sizeof(__pyx_k_cudaGraphicsUnregisterResource), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphicsVDPAURegisterOutputS, __pyx_k_cudaGraphicsVDPAURegisterOutputS, sizeof(__pyx_k_cudaGraphicsVDPAURegisterOutputS), 0, 0, 1, 1}, {&__pyx_n_s_cudaGraphicsVDPAURegisterVideoSu, __pyx_k_cudaGraphicsVDPAURegisterVideoSu, sizeof(__pyx_k_cudaGraphicsVDPAURegisterVideoSu), 0, 0, 1, 1}, {&__pyx_n_s_cudaHostAlloc, __pyx_k_cudaHostAlloc, sizeof(__pyx_k_cudaHostAlloc), 0, 0, 1, 1}, {&__pyx_n_s_cudaHostAllocDefault, __pyx_k_cudaHostAllocDefault, sizeof(__pyx_k_cudaHostAllocDefault), 0, 0, 1, 1}, {&__pyx_n_s_cudaHostAllocMapped, __pyx_k_cudaHostAllocMapped, sizeof(__pyx_k_cudaHostAllocMapped), 0, 0, 1, 1}, {&__pyx_n_s_cudaHostAllocPortable, __pyx_k_cudaHostAllocPortable, sizeof(__pyx_k_cudaHostAllocPortable), 0, 0, 1, 1}, {&__pyx_n_s_cudaHostAllocWriteCombined, __pyx_k_cudaHostAllocWriteCombined, sizeof(__pyx_k_cudaHostAllocWriteCombined), 0, 0, 1, 1}, {&__pyx_kp_u_cudaHostFn_t, __pyx_k_cudaHostFn_t, sizeof(__pyx_k_cudaHostFn_t), 0, 1, 0, 0}, {&__pyx_n_s_cudaHostFn_t_2, __pyx_k_cudaHostFn_t_2, sizeof(__pyx_k_cudaHostFn_t_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaHostFn_t___reduce_cython, __pyx_k_cudaHostFn_t___reduce_cython, sizeof(__pyx_k_cudaHostFn_t___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_cudaHostFn_t___setstate_cython, __pyx_k_cudaHostFn_t___setstate_cython, sizeof(__pyx_k_cudaHostFn_t___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_cudaHostFn_t_getPtr, __pyx_k_cudaHostFn_t_getPtr, sizeof(__pyx_k_cudaHostFn_t_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaHostGetDevicePointer, __pyx_k_cudaHostGetDevicePointer, sizeof(__pyx_k_cudaHostGetDevicePointer), 0, 0, 1, 1}, {&__pyx_n_s_cudaHostGetFlags, __pyx_k_cudaHostGetFlags, sizeof(__pyx_k_cudaHostGetFlags), 0, 0, 1, 1}, {&__pyx_n_s_cudaHostNodeParams, __pyx_k_cudaHostNodeParams, sizeof(__pyx_k_cudaHostNodeParams), 0, 0, 1, 1}, {&__pyx_n_s_cudaHostNodeParamsV2, __pyx_k_cudaHostNodeParamsV2, sizeof(__pyx_k_cudaHostNodeParamsV2), 0, 0, 1, 1}, {&__pyx_n_s_cudaHostNodeParamsV2___reduce_cy, __pyx_k_cudaHostNodeParamsV2___reduce_cy, sizeof(__pyx_k_cudaHostNodeParamsV2___reduce_cy), 0, 0, 1, 1}, {&__pyx_n_s_cudaHostNodeParamsV2___setstate, __pyx_k_cudaHostNodeParamsV2___setstate, sizeof(__pyx_k_cudaHostNodeParamsV2___setstate), 0, 0, 1, 1}, {&__pyx_n_s_cudaHostNodeParamsV2_getPtr, __pyx_k_cudaHostNodeParamsV2_getPtr, sizeof(__pyx_k_cudaHostNodeParamsV2_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaHostNodeParams___reduce_cyth, __pyx_k_cudaHostNodeParams___reduce_cyth, sizeof(__pyx_k_cudaHostNodeParams___reduce_cyth), 0, 0, 1, 1}, {&__pyx_n_s_cudaHostNodeParams___setstate_cy, __pyx_k_cudaHostNodeParams___setstate_cy, sizeof(__pyx_k_cudaHostNodeParams___setstate_cy), 0, 0, 1, 1}, {&__pyx_n_s_cudaHostNodeParams_getPtr, __pyx_k_cudaHostNodeParams_getPtr, sizeof(__pyx_k_cudaHostNodeParams_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaHostRegister, __pyx_k_cudaHostRegister, sizeof(__pyx_k_cudaHostRegister), 0, 0, 1, 1}, {&__pyx_n_s_cudaHostRegisterDefault, __pyx_k_cudaHostRegisterDefault, sizeof(__pyx_k_cudaHostRegisterDefault), 0, 0, 1, 1}, {&__pyx_n_s_cudaHostRegisterIoMemory, __pyx_k_cudaHostRegisterIoMemory, sizeof(__pyx_k_cudaHostRegisterIoMemory), 0, 0, 1, 1}, {&__pyx_n_s_cudaHostRegisterMapped, __pyx_k_cudaHostRegisterMapped, sizeof(__pyx_k_cudaHostRegisterMapped), 0, 0, 1, 1}, {&__pyx_n_s_cudaHostRegisterPortable, __pyx_k_cudaHostRegisterPortable, sizeof(__pyx_k_cudaHostRegisterPortable), 0, 0, 1, 1}, {&__pyx_n_s_cudaHostRegisterReadOnly, __pyx_k_cudaHostRegisterReadOnly, sizeof(__pyx_k_cudaHostRegisterReadOnly), 0, 0, 1, 1}, {&__pyx_n_s_cudaHostUnregister, __pyx_k_cudaHostUnregister, sizeof(__pyx_k_cudaHostUnregister), 0, 0, 1, 1}, {&__pyx_n_s_cudaImportExternalMemory, __pyx_k_cudaImportExternalMemory, sizeof(__pyx_k_cudaImportExternalMemory), 0, 0, 1, 1}, {&__pyx_n_s_cudaImportExternalSemaphore, __pyx_k_cudaImportExternalSemaphore, sizeof(__pyx_k_cudaImportExternalSemaphore), 0, 0, 1, 1}, {&__pyx_n_s_cudaInitDevice, __pyx_k_cudaInitDevice, sizeof(__pyx_k_cudaInitDevice), 0, 0, 1, 1}, {&__pyx_n_s_cudaInitDeviceFlagsAreValid, __pyx_k_cudaInitDeviceFlagsAreValid, sizeof(__pyx_k_cudaInitDeviceFlagsAreValid), 0, 0, 1, 1}, {&__pyx_n_s_cudaInvalidDeviceId, __pyx_k_cudaInvalidDeviceId, sizeof(__pyx_k_cudaInvalidDeviceId), 0, 0, 1, 1}, {&__pyx_n_s_cudaIpcCloseMemHandle, __pyx_k_cudaIpcCloseMemHandle, sizeof(__pyx_k_cudaIpcCloseMemHandle), 0, 0, 1, 1}, {&__pyx_n_s_cudaIpcEventHandle_st, __pyx_k_cudaIpcEventHandle_st, sizeof(__pyx_k_cudaIpcEventHandle_st), 0, 0, 1, 1}, {&__pyx_n_s_cudaIpcEventHandle_st___reduce_c, __pyx_k_cudaIpcEventHandle_st___reduce_c, sizeof(__pyx_k_cudaIpcEventHandle_st___reduce_c), 0, 0, 1, 1}, {&__pyx_n_s_cudaIpcEventHandle_st___setstate, __pyx_k_cudaIpcEventHandle_st___setstate, sizeof(__pyx_k_cudaIpcEventHandle_st___setstate), 0, 0, 1, 1}, {&__pyx_n_s_cudaIpcEventHandle_st_getPtr, __pyx_k_cudaIpcEventHandle_st_getPtr, sizeof(__pyx_k_cudaIpcEventHandle_st_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaIpcEventHandle_t, __pyx_k_cudaIpcEventHandle_t, sizeof(__pyx_k_cudaIpcEventHandle_t), 0, 0, 1, 1}, {&__pyx_n_s_cudaIpcGetEventHandle, __pyx_k_cudaIpcGetEventHandle, sizeof(__pyx_k_cudaIpcGetEventHandle), 0, 0, 1, 1}, {&__pyx_n_s_cudaIpcGetMemHandle, __pyx_k_cudaIpcGetMemHandle, sizeof(__pyx_k_cudaIpcGetMemHandle), 0, 0, 1, 1}, {&__pyx_n_s_cudaIpcMemHandle_st, __pyx_k_cudaIpcMemHandle_st, sizeof(__pyx_k_cudaIpcMemHandle_st), 0, 0, 1, 1}, {&__pyx_n_s_cudaIpcMemHandle_st___reduce_cyt, __pyx_k_cudaIpcMemHandle_st___reduce_cyt, sizeof(__pyx_k_cudaIpcMemHandle_st___reduce_cyt), 0, 0, 1, 1}, {&__pyx_n_s_cudaIpcMemHandle_st___setstate_c, __pyx_k_cudaIpcMemHandle_st___setstate_c, sizeof(__pyx_k_cudaIpcMemHandle_st___setstate_c), 0, 0, 1, 1}, {&__pyx_n_s_cudaIpcMemHandle_st_getPtr, __pyx_k_cudaIpcMemHandle_st_getPtr, sizeof(__pyx_k_cudaIpcMemHandle_st_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaIpcMemHandle_t, __pyx_k_cudaIpcMemHandle_t, sizeof(__pyx_k_cudaIpcMemHandle_t), 0, 0, 1, 1}, {&__pyx_n_s_cudaIpcMemLazyEnablePeerAccess, __pyx_k_cudaIpcMemLazyEnablePeerAccess, sizeof(__pyx_k_cudaIpcMemLazyEnablePeerAccess), 0, 0, 1, 1}, {&__pyx_n_s_cudaIpcOpenEventHandle, __pyx_k_cudaIpcOpenEventHandle, sizeof(__pyx_k_cudaIpcOpenEventHandle), 0, 0, 1, 1}, {&__pyx_n_s_cudaIpcOpenMemHandle, __pyx_k_cudaIpcOpenMemHandle, sizeof(__pyx_k_cudaIpcOpenMemHandle), 0, 0, 1, 1}, {&__pyx_n_s_cudaKernelNodeAttrID, __pyx_k_cudaKernelNodeAttrID, sizeof(__pyx_k_cudaKernelNodeAttrID), 0, 0, 1, 1}, {&__pyx_n_s_cudaKernelNodeAttrValue, __pyx_k_cudaKernelNodeAttrValue, sizeof(__pyx_k_cudaKernelNodeAttrValue), 0, 0, 1, 1}, {&__pyx_n_s_cudaKernelNodeAttributeAccessPol, __pyx_k_cudaKernelNodeAttributeAccessPol, sizeof(__pyx_k_cudaKernelNodeAttributeAccessPol), 0, 0, 1, 1}, {&__pyx_n_s_cudaKernelNodeAttributeClusterDi, __pyx_k_cudaKernelNodeAttributeClusterDi, sizeof(__pyx_k_cudaKernelNodeAttributeClusterDi), 0, 0, 1, 1}, {&__pyx_n_s_cudaKernelNodeAttributeClusterSc, __pyx_k_cudaKernelNodeAttributeClusterSc, sizeof(__pyx_k_cudaKernelNodeAttributeClusterSc), 0, 0, 1, 1}, {&__pyx_n_s_cudaKernelNodeAttributeCooperati, __pyx_k_cudaKernelNodeAttributeCooperati, sizeof(__pyx_k_cudaKernelNodeAttributeCooperati), 0, 0, 1, 1}, {&__pyx_n_s_cudaKernelNodeAttributeDeviceUpd, __pyx_k_cudaKernelNodeAttributeDeviceUpd, sizeof(__pyx_k_cudaKernelNodeAttributeDeviceUpd), 0, 0, 1, 1}, {&__pyx_n_s_cudaKernelNodeAttributeMemSyncDo, __pyx_k_cudaKernelNodeAttributeMemSyncDo, sizeof(__pyx_k_cudaKernelNodeAttributeMemSyncDo), 0, 0, 1, 1}, {&__pyx_n_s_cudaKernelNodeAttributeMemSyncDo_2, __pyx_k_cudaKernelNodeAttributeMemSyncDo_2, sizeof(__pyx_k_cudaKernelNodeAttributeMemSyncDo_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaKernelNodeAttributePreferred, __pyx_k_cudaKernelNodeAttributePreferred, sizeof(__pyx_k_cudaKernelNodeAttributePreferred), 0, 0, 1, 1}, {&__pyx_n_s_cudaKernelNodeAttributePriority, __pyx_k_cudaKernelNodeAttributePriority, sizeof(__pyx_k_cudaKernelNodeAttributePriority), 0, 0, 1, 1}, {&__pyx_n_s_cudaKernelNodeParams, __pyx_k_cudaKernelNodeParams, sizeof(__pyx_k_cudaKernelNodeParams), 0, 0, 1, 1}, {&__pyx_n_s_cudaKernelNodeParamsV2, __pyx_k_cudaKernelNodeParamsV2, sizeof(__pyx_k_cudaKernelNodeParamsV2), 0, 0, 1, 1}, {&__pyx_n_s_cudaKernelNodeParamsV2___reduce, __pyx_k_cudaKernelNodeParamsV2___reduce, sizeof(__pyx_k_cudaKernelNodeParamsV2___reduce), 0, 0, 1, 1}, {&__pyx_n_s_cudaKernelNodeParamsV2___setstat, __pyx_k_cudaKernelNodeParamsV2___setstat, sizeof(__pyx_k_cudaKernelNodeParamsV2___setstat), 0, 0, 1, 1}, {&__pyx_n_s_cudaKernelNodeParamsV2_getPtr, __pyx_k_cudaKernelNodeParamsV2_getPtr, sizeof(__pyx_k_cudaKernelNodeParamsV2_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaKernelNodeParams___reduce_cy, __pyx_k_cudaKernelNodeParams___reduce_cy, sizeof(__pyx_k_cudaKernelNodeParams___reduce_cy), 0, 0, 1, 1}, {&__pyx_n_s_cudaKernelNodeParams___setstate, __pyx_k_cudaKernelNodeParams___setstate, sizeof(__pyx_k_cudaKernelNodeParams___setstate), 0, 0, 1, 1}, {&__pyx_n_s_cudaKernelNodeParams_getPtr, __pyx_k_cudaKernelNodeParams_getPtr, sizeof(__pyx_k_cudaKernelNodeParams_getPtr), 0, 0, 1, 1}, {&__pyx_kp_u_cudaKernel_t, __pyx_k_cudaKernel_t, sizeof(__pyx_k_cudaKernel_t), 0, 1, 0, 0}, {&__pyx_n_s_cudaKernel_t_2, __pyx_k_cudaKernel_t_2, sizeof(__pyx_k_cudaKernel_t_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaKernel_t___reduce_cython, __pyx_k_cudaKernel_t___reduce_cython, sizeof(__pyx_k_cudaKernel_t___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_cudaKernel_t___setstate_cython, __pyx_k_cudaKernel_t___setstate_cython, sizeof(__pyx_k_cudaKernel_t___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_cudaKernel_t_getPtr, __pyx_k_cudaKernel_t_getPtr, sizeof(__pyx_k_cudaKernel_t_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaLaunchAttribute, __pyx_k_cudaLaunchAttribute, sizeof(__pyx_k_cudaLaunchAttribute), 0, 0, 1, 1}, {&__pyx_n_s_cudaLaunchAttributeAccessPolicyW, __pyx_k_cudaLaunchAttributeAccessPolicyW, sizeof(__pyx_k_cudaLaunchAttributeAccessPolicyW), 0, 0, 1, 1}, {&__pyx_n_s_cudaLaunchAttributeClusterDimens, __pyx_k_cudaLaunchAttributeClusterDimens, sizeof(__pyx_k_cudaLaunchAttributeClusterDimens), 0, 0, 1, 1}, {&__pyx_n_s_cudaLaunchAttributeClusterSchedu, __pyx_k_cudaLaunchAttributeClusterSchedu, sizeof(__pyx_k_cudaLaunchAttributeClusterSchedu), 0, 0, 1, 1}, {&__pyx_n_s_cudaLaunchAttributeCooperative, __pyx_k_cudaLaunchAttributeCooperative, sizeof(__pyx_k_cudaLaunchAttributeCooperative), 0, 0, 1, 1}, {&__pyx_n_s_cudaLaunchAttributeDeviceUpdatab, __pyx_k_cudaLaunchAttributeDeviceUpdatab, sizeof(__pyx_k_cudaLaunchAttributeDeviceUpdatab), 0, 0, 1, 1}, {&__pyx_n_s_cudaLaunchAttributeID, __pyx_k_cudaLaunchAttributeID, sizeof(__pyx_k_cudaLaunchAttributeID), 0, 0, 1, 1}, {&__pyx_n_s_cudaLaunchAttributeIgnore, __pyx_k_cudaLaunchAttributeIgnore, sizeof(__pyx_k_cudaLaunchAttributeIgnore), 0, 0, 1, 1}, {&__pyx_n_s_cudaLaunchAttributeLaunchComplet, __pyx_k_cudaLaunchAttributeLaunchComplet, sizeof(__pyx_k_cudaLaunchAttributeLaunchComplet), 0, 0, 1, 1}, {&__pyx_n_s_cudaLaunchAttributeMemSyncDomain, __pyx_k_cudaLaunchAttributeMemSyncDomain, sizeof(__pyx_k_cudaLaunchAttributeMemSyncDomain), 0, 0, 1, 1}, {&__pyx_n_s_cudaLaunchAttributeMemSyncDomain_2, __pyx_k_cudaLaunchAttributeMemSyncDomain_2, sizeof(__pyx_k_cudaLaunchAttributeMemSyncDomain_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaLaunchAttributePreferredShar, __pyx_k_cudaLaunchAttributePreferredShar, sizeof(__pyx_k_cudaLaunchAttributePreferredShar), 0, 0, 1, 1}, {&__pyx_n_s_cudaLaunchAttributePriority, __pyx_k_cudaLaunchAttributePriority, sizeof(__pyx_k_cudaLaunchAttributePriority), 0, 0, 1, 1}, {&__pyx_n_s_cudaLaunchAttributeProgrammaticE, __pyx_k_cudaLaunchAttributeProgrammaticE, sizeof(__pyx_k_cudaLaunchAttributeProgrammaticE), 0, 0, 1, 1}, {&__pyx_n_s_cudaLaunchAttributeProgrammaticS, __pyx_k_cudaLaunchAttributeProgrammaticS, sizeof(__pyx_k_cudaLaunchAttributeProgrammaticS), 0, 0, 1, 1}, {&__pyx_n_s_cudaLaunchAttributeSynchronizati, __pyx_k_cudaLaunchAttributeSynchronizati, sizeof(__pyx_k_cudaLaunchAttributeSynchronizati), 0, 0, 1, 1}, {&__pyx_n_s_cudaLaunchAttributeValue, __pyx_k_cudaLaunchAttributeValue, sizeof(__pyx_k_cudaLaunchAttributeValue), 0, 0, 1, 1}, {&__pyx_n_s_cudaLaunchAttributeValue___reduc, __pyx_k_cudaLaunchAttributeValue___reduc, sizeof(__pyx_k_cudaLaunchAttributeValue___reduc), 0, 0, 1, 1}, {&__pyx_n_s_cudaLaunchAttributeValue___setst, __pyx_k_cudaLaunchAttributeValue___setst, sizeof(__pyx_k_cudaLaunchAttributeValue___setst), 0, 0, 1, 1}, {&__pyx_n_s_cudaLaunchAttributeValue_getPtr, __pyx_k_cudaLaunchAttributeValue_getPtr, sizeof(__pyx_k_cudaLaunchAttributeValue_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaLaunchAttribute_st, __pyx_k_cudaLaunchAttribute_st, sizeof(__pyx_k_cudaLaunchAttribute_st), 0, 0, 1, 1}, {&__pyx_n_s_cudaLaunchAttribute_st___reduce, __pyx_k_cudaLaunchAttribute_st___reduce, sizeof(__pyx_k_cudaLaunchAttribute_st___reduce), 0, 0, 1, 1}, {&__pyx_n_s_cudaLaunchAttribute_st___setstat, __pyx_k_cudaLaunchAttribute_st___setstat, sizeof(__pyx_k_cudaLaunchAttribute_st___setstat), 0, 0, 1, 1}, {&__pyx_n_s_cudaLaunchAttribute_st_getPtr, __pyx_k_cudaLaunchAttribute_st_getPtr, sizeof(__pyx_k_cudaLaunchAttribute_st_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaLaunchHostFunc, __pyx_k_cudaLaunchHostFunc, sizeof(__pyx_k_cudaLaunchHostFunc), 0, 0, 1, 1}, {&__pyx_n_s_cudaLaunchMemSyncDomain, __pyx_k_cudaLaunchMemSyncDomain, sizeof(__pyx_k_cudaLaunchMemSyncDomain), 0, 0, 1, 1}, {&__pyx_n_s_cudaLaunchMemSyncDomainDefault, __pyx_k_cudaLaunchMemSyncDomainDefault, sizeof(__pyx_k_cudaLaunchMemSyncDomainDefault), 0, 0, 1, 1}, {&__pyx_n_s_cudaLaunchMemSyncDomainMap, __pyx_k_cudaLaunchMemSyncDomainMap, sizeof(__pyx_k_cudaLaunchMemSyncDomainMap), 0, 0, 1, 1}, {&__pyx_n_s_cudaLaunchMemSyncDomainMap_st, __pyx_k_cudaLaunchMemSyncDomainMap_st, sizeof(__pyx_k_cudaLaunchMemSyncDomainMap_st), 0, 0, 1, 1}, {&__pyx_n_s_cudaLaunchMemSyncDomainMap_st_2, __pyx_k_cudaLaunchMemSyncDomainMap_st_2, sizeof(__pyx_k_cudaLaunchMemSyncDomainMap_st_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaLaunchMemSyncDomainMap_st_3, __pyx_k_cudaLaunchMemSyncDomainMap_st_3, sizeof(__pyx_k_cudaLaunchMemSyncDomainMap_st_3), 0, 0, 1, 1}, {&__pyx_n_s_cudaLaunchMemSyncDomainMap_st_ge, __pyx_k_cudaLaunchMemSyncDomainMap_st_ge, sizeof(__pyx_k_cudaLaunchMemSyncDomainMap_st_ge), 0, 0, 1, 1}, {&__pyx_n_s_cudaLaunchMemSyncDomainRemote, __pyx_k_cudaLaunchMemSyncDomainRemote, sizeof(__pyx_k_cudaLaunchMemSyncDomainRemote), 0, 0, 1, 1}, {&__pyx_n_s_cudaLimit, __pyx_k_cudaLimit, sizeof(__pyx_k_cudaLimit), 0, 0, 1, 1}, {&__pyx_n_s_cudaLimitDevRuntimePendingLaunch, __pyx_k_cudaLimitDevRuntimePendingLaunch, sizeof(__pyx_k_cudaLimitDevRuntimePendingLaunch), 0, 0, 1, 1}, {&__pyx_n_s_cudaLimitDevRuntimeSyncDepth, __pyx_k_cudaLimitDevRuntimeSyncDepth, sizeof(__pyx_k_cudaLimitDevRuntimeSyncDepth), 0, 0, 1, 1}, {&__pyx_n_s_cudaLimitMallocHeapSize, __pyx_k_cudaLimitMallocHeapSize, sizeof(__pyx_k_cudaLimitMallocHeapSize), 0, 0, 1, 1}, {&__pyx_n_s_cudaLimitMaxL2FetchGranularity, __pyx_k_cudaLimitMaxL2FetchGranularity, sizeof(__pyx_k_cudaLimitMaxL2FetchGranularity), 0, 0, 1, 1}, {&__pyx_n_s_cudaLimitPersistingL2CacheSize, __pyx_k_cudaLimitPersistingL2CacheSize, sizeof(__pyx_k_cudaLimitPersistingL2CacheSize), 0, 0, 1, 1}, {&__pyx_n_s_cudaLimitPrintfFifoSize, __pyx_k_cudaLimitPrintfFifoSize, sizeof(__pyx_k_cudaLimitPrintfFifoSize), 0, 0, 1, 1}, {&__pyx_n_s_cudaLimitStackSize, __pyx_k_cudaLimitStackSize, sizeof(__pyx_k_cudaLimitStackSize), 0, 0, 1, 1}, {&__pyx_n_s_cudaMalloc, __pyx_k_cudaMalloc, sizeof(__pyx_k_cudaMalloc), 0, 0, 1, 1}, {&__pyx_n_s_cudaMalloc3D, __pyx_k_cudaMalloc3D, sizeof(__pyx_k_cudaMalloc3D), 0, 0, 1, 1}, {&__pyx_n_s_cudaMalloc3DArray, __pyx_k_cudaMalloc3DArray, sizeof(__pyx_k_cudaMalloc3DArray), 0, 0, 1, 1}, {&__pyx_n_s_cudaMallocArray, __pyx_k_cudaMallocArray, sizeof(__pyx_k_cudaMallocArray), 0, 0, 1, 1}, {&__pyx_n_s_cudaMallocAsync, __pyx_k_cudaMallocAsync, sizeof(__pyx_k_cudaMallocAsync), 0, 0, 1, 1}, {&__pyx_n_s_cudaMallocFromPoolAsync, __pyx_k_cudaMallocFromPoolAsync, sizeof(__pyx_k_cudaMallocFromPoolAsync), 0, 0, 1, 1}, {&__pyx_n_s_cudaMallocHost, __pyx_k_cudaMallocHost, sizeof(__pyx_k_cudaMallocHost), 0, 0, 1, 1}, {&__pyx_n_s_cudaMallocManaged, __pyx_k_cudaMallocManaged, sizeof(__pyx_k_cudaMallocManaged), 0, 0, 1, 1}, {&__pyx_n_s_cudaMallocMipmappedArray, __pyx_k_cudaMallocMipmappedArray, sizeof(__pyx_k_cudaMallocMipmappedArray), 0, 0, 1, 1}, {&__pyx_n_s_cudaMallocPitch, __pyx_k_cudaMallocPitch, sizeof(__pyx_k_cudaMallocPitch), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemAccessDesc, __pyx_k_cudaMemAccessDesc, sizeof(__pyx_k_cudaMemAccessDesc), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemAccessDesc___reduce_cytho, __pyx_k_cudaMemAccessDesc___reduce_cytho, sizeof(__pyx_k_cudaMemAccessDesc___reduce_cytho), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemAccessDesc___setstate_cyt, __pyx_k_cudaMemAccessDesc___setstate_cyt, sizeof(__pyx_k_cudaMemAccessDesc___setstate_cyt), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemAccessDesc_getPtr, __pyx_k_cudaMemAccessDesc_getPtr, sizeof(__pyx_k_cudaMemAccessDesc_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemAccessFlags, __pyx_k_cudaMemAccessFlags, sizeof(__pyx_k_cudaMemAccessFlags), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemAccessFlagsProtNone, __pyx_k_cudaMemAccessFlagsProtNone, sizeof(__pyx_k_cudaMemAccessFlagsProtNone), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemAccessFlagsProtRead, __pyx_k_cudaMemAccessFlagsProtRead, sizeof(__pyx_k_cudaMemAccessFlagsProtRead), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemAccessFlagsProtReadWrite, __pyx_k_cudaMemAccessFlagsProtReadWrite, sizeof(__pyx_k_cudaMemAccessFlagsProtReadWrite), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemAdvise, __pyx_k_cudaMemAdvise, sizeof(__pyx_k_cudaMemAdvise), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemAdviseSetAccessedBy, __pyx_k_cudaMemAdviseSetAccessedBy, sizeof(__pyx_k_cudaMemAdviseSetAccessedBy), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemAdviseSetPreferredLocatio, __pyx_k_cudaMemAdviseSetPreferredLocatio, sizeof(__pyx_k_cudaMemAdviseSetPreferredLocatio), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemAdviseSetReadMostly, __pyx_k_cudaMemAdviseSetReadMostly, sizeof(__pyx_k_cudaMemAdviseSetReadMostly), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemAdviseUnsetAccessedBy, __pyx_k_cudaMemAdviseUnsetAccessedBy, sizeof(__pyx_k_cudaMemAdviseUnsetAccessedBy), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemAdviseUnsetPreferredLocat, __pyx_k_cudaMemAdviseUnsetPreferredLocat, sizeof(__pyx_k_cudaMemAdviseUnsetPreferredLocat), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemAdviseUnsetReadMostly, __pyx_k_cudaMemAdviseUnsetReadMostly, sizeof(__pyx_k_cudaMemAdviseUnsetReadMostly), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemAdvise_v2, __pyx_k_cudaMemAdvise_v2, sizeof(__pyx_k_cudaMemAdvise_v2), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemAllocNodeParams, __pyx_k_cudaMemAllocNodeParams, sizeof(__pyx_k_cudaMemAllocNodeParams), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemAllocNodeParamsV2, __pyx_k_cudaMemAllocNodeParamsV2, sizeof(__pyx_k_cudaMemAllocNodeParamsV2), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemAllocNodeParamsV2___reduc, __pyx_k_cudaMemAllocNodeParamsV2___reduc, sizeof(__pyx_k_cudaMemAllocNodeParamsV2___reduc), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemAllocNodeParamsV2___setst, __pyx_k_cudaMemAllocNodeParamsV2___setst, sizeof(__pyx_k_cudaMemAllocNodeParamsV2___setst), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemAllocNodeParamsV2_getPtr, __pyx_k_cudaMemAllocNodeParamsV2_getPtr, sizeof(__pyx_k_cudaMemAllocNodeParamsV2_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemAllocNodeParams___reduce, __pyx_k_cudaMemAllocNodeParams___reduce, sizeof(__pyx_k_cudaMemAllocNodeParams___reduce), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemAllocNodeParams___setstat, __pyx_k_cudaMemAllocNodeParams___setstat, sizeof(__pyx_k_cudaMemAllocNodeParams___setstat), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemAllocNodeParams_getPtr, __pyx_k_cudaMemAllocNodeParams_getPtr, sizeof(__pyx_k_cudaMemAllocNodeParams_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemAllocationHandleType, __pyx_k_cudaMemAllocationHandleType, sizeof(__pyx_k_cudaMemAllocationHandleType), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemAllocationType, __pyx_k_cudaMemAllocationType, sizeof(__pyx_k_cudaMemAllocationType), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemAllocationTypeInvalid, __pyx_k_cudaMemAllocationTypeInvalid, sizeof(__pyx_k_cudaMemAllocationTypeInvalid), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemAllocationTypeMax, __pyx_k_cudaMemAllocationTypeMax, sizeof(__pyx_k_cudaMemAllocationTypeMax), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemAllocationTypePinned, __pyx_k_cudaMemAllocationTypePinned, sizeof(__pyx_k_cudaMemAllocationTypePinned), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemAttachGlobal, __pyx_k_cudaMemAttachGlobal, sizeof(__pyx_k_cudaMemAttachGlobal), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemAttachHost, __pyx_k_cudaMemAttachHost, sizeof(__pyx_k_cudaMemAttachHost), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemAttachSingle, __pyx_k_cudaMemAttachSingle, sizeof(__pyx_k_cudaMemAttachSingle), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemFabricHandle_st, __pyx_k_cudaMemFabricHandle_st, sizeof(__pyx_k_cudaMemFabricHandle_st), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemFabricHandle_st___reduce, __pyx_k_cudaMemFabricHandle_st___reduce, sizeof(__pyx_k_cudaMemFabricHandle_st___reduce), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemFabricHandle_st___setstat, __pyx_k_cudaMemFabricHandle_st___setstat, sizeof(__pyx_k_cudaMemFabricHandle_st___setstat), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemFabricHandle_st_getPtr, __pyx_k_cudaMemFabricHandle_st_getPtr, sizeof(__pyx_k_cudaMemFabricHandle_st_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemFabricHandle_t, __pyx_k_cudaMemFabricHandle_t, sizeof(__pyx_k_cudaMemFabricHandle_t), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemFreeNodeParams, __pyx_k_cudaMemFreeNodeParams, sizeof(__pyx_k_cudaMemFreeNodeParams), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemFreeNodeParams___reduce_c, __pyx_k_cudaMemFreeNodeParams___reduce_c, sizeof(__pyx_k_cudaMemFreeNodeParams___reduce_c), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemFreeNodeParams___setstate, __pyx_k_cudaMemFreeNodeParams___setstate, sizeof(__pyx_k_cudaMemFreeNodeParams___setstate), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemFreeNodeParams_getPtr, __pyx_k_cudaMemFreeNodeParams_getPtr, sizeof(__pyx_k_cudaMemFreeNodeParams_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemGetInfo, __pyx_k_cudaMemGetInfo, sizeof(__pyx_k_cudaMemGetInfo), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemHandleTypeFabric, __pyx_k_cudaMemHandleTypeFabric, sizeof(__pyx_k_cudaMemHandleTypeFabric), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemHandleTypeNone, __pyx_k_cudaMemHandleTypeNone, sizeof(__pyx_k_cudaMemHandleTypeNone), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemHandleTypePosixFileDescri, __pyx_k_cudaMemHandleTypePosixFileDescri, sizeof(__pyx_k_cudaMemHandleTypePosixFileDescri), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemHandleTypeWin32, __pyx_k_cudaMemHandleTypeWin32, sizeof(__pyx_k_cudaMemHandleTypeWin32), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemHandleTypeWin32Kmt, __pyx_k_cudaMemHandleTypeWin32Kmt, sizeof(__pyx_k_cudaMemHandleTypeWin32Kmt), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemLocation, __pyx_k_cudaMemLocation, sizeof(__pyx_k_cudaMemLocation), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemLocationType, __pyx_k_cudaMemLocationType, sizeof(__pyx_k_cudaMemLocationType), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemLocationTypeDevice, __pyx_k_cudaMemLocationTypeDevice, sizeof(__pyx_k_cudaMemLocationTypeDevice), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemLocationTypeHost, __pyx_k_cudaMemLocationTypeHost, sizeof(__pyx_k_cudaMemLocationTypeHost), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemLocationTypeHostNuma, __pyx_k_cudaMemLocationTypeHostNuma, sizeof(__pyx_k_cudaMemLocationTypeHostNuma), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemLocationTypeHostNumaCurre, __pyx_k_cudaMemLocationTypeHostNumaCurre, sizeof(__pyx_k_cudaMemLocationTypeHostNumaCurre), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemLocationTypeInvalid, __pyx_k_cudaMemLocationTypeInvalid, sizeof(__pyx_k_cudaMemLocationTypeInvalid), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemLocation___reduce_cython, __pyx_k_cudaMemLocation___reduce_cython, sizeof(__pyx_k_cudaMemLocation___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemLocation___setstate_cytho, __pyx_k_cudaMemLocation___setstate_cytho, sizeof(__pyx_k_cudaMemLocation___setstate_cytho), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemLocation_getPtr, __pyx_k_cudaMemLocation_getPtr, sizeof(__pyx_k_cudaMemLocation_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemPoolAttr, __pyx_k_cudaMemPoolAttr, sizeof(__pyx_k_cudaMemPoolAttr), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemPoolAttrReleaseThreshold, __pyx_k_cudaMemPoolAttrReleaseThreshold, sizeof(__pyx_k_cudaMemPoolAttrReleaseThreshold), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemPoolAttrReservedMemCurren, __pyx_k_cudaMemPoolAttrReservedMemCurren, sizeof(__pyx_k_cudaMemPoolAttrReservedMemCurren), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemPoolAttrReservedMemHigh, __pyx_k_cudaMemPoolAttrReservedMemHigh, sizeof(__pyx_k_cudaMemPoolAttrReservedMemHigh), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemPoolAttrUsedMemCurrent, __pyx_k_cudaMemPoolAttrUsedMemCurrent, sizeof(__pyx_k_cudaMemPoolAttrUsedMemCurrent), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemPoolAttrUsedMemHigh, __pyx_k_cudaMemPoolAttrUsedMemHigh, sizeof(__pyx_k_cudaMemPoolAttrUsedMemHigh), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemPoolCreate, __pyx_k_cudaMemPoolCreate, sizeof(__pyx_k_cudaMemPoolCreate), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemPoolDestroy, __pyx_k_cudaMemPoolDestroy, sizeof(__pyx_k_cudaMemPoolDestroy), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemPoolExportPointer, __pyx_k_cudaMemPoolExportPointer, sizeof(__pyx_k_cudaMemPoolExportPointer), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemPoolExportToShareableHand, __pyx_k_cudaMemPoolExportToShareableHand, sizeof(__pyx_k_cudaMemPoolExportToShareableHand), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemPoolGetAccess, __pyx_k_cudaMemPoolGetAccess, sizeof(__pyx_k_cudaMemPoolGetAccess), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemPoolGetAttribute, __pyx_k_cudaMemPoolGetAttribute, sizeof(__pyx_k_cudaMemPoolGetAttribute), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemPoolImportFromShareableHa, __pyx_k_cudaMemPoolImportFromShareableHa, sizeof(__pyx_k_cudaMemPoolImportFromShareableHa), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemPoolImportPointer, __pyx_k_cudaMemPoolImportPointer, sizeof(__pyx_k_cudaMemPoolImportPointer), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemPoolProps, __pyx_k_cudaMemPoolProps, sizeof(__pyx_k_cudaMemPoolProps), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemPoolProps___reduce_cython, __pyx_k_cudaMemPoolProps___reduce_cython, sizeof(__pyx_k_cudaMemPoolProps___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemPoolProps___setstate_cyth, __pyx_k_cudaMemPoolProps___setstate_cyth, sizeof(__pyx_k_cudaMemPoolProps___setstate_cyth), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemPoolProps_getPtr, __pyx_k_cudaMemPoolProps_getPtr, sizeof(__pyx_k_cudaMemPoolProps_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemPoolPtrExportData, __pyx_k_cudaMemPoolPtrExportData, sizeof(__pyx_k_cudaMemPoolPtrExportData), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemPoolPtrExportData___reduc, __pyx_k_cudaMemPoolPtrExportData___reduc, sizeof(__pyx_k_cudaMemPoolPtrExportData___reduc), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemPoolPtrExportData___setst, __pyx_k_cudaMemPoolPtrExportData___setst, sizeof(__pyx_k_cudaMemPoolPtrExportData___setst), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemPoolPtrExportData_getPtr, __pyx_k_cudaMemPoolPtrExportData_getPtr, sizeof(__pyx_k_cudaMemPoolPtrExportData_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemPoolReuseAllowInternalDep, __pyx_k_cudaMemPoolReuseAllowInternalDep, sizeof(__pyx_k_cudaMemPoolReuseAllowInternalDep), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemPoolReuseAllowOpportunist, __pyx_k_cudaMemPoolReuseAllowOpportunist, sizeof(__pyx_k_cudaMemPoolReuseAllowOpportunist), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemPoolReuseFollowEventDepen, __pyx_k_cudaMemPoolReuseFollowEventDepen, sizeof(__pyx_k_cudaMemPoolReuseFollowEventDepen), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemPoolSetAccess, __pyx_k_cudaMemPoolSetAccess, sizeof(__pyx_k_cudaMemPoolSetAccess), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemPoolSetAccess_locals_gene, __pyx_k_cudaMemPoolSetAccess_locals_gene, sizeof(__pyx_k_cudaMemPoolSetAccess_locals_gene), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemPoolSetAttribute, __pyx_k_cudaMemPoolSetAttribute, sizeof(__pyx_k_cudaMemPoolSetAttribute), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemPoolTrimTo, __pyx_k_cudaMemPoolTrimTo, sizeof(__pyx_k_cudaMemPoolTrimTo), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemPool_t, __pyx_k_cudaMemPool_t, sizeof(__pyx_k_cudaMemPool_t), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemPrefetchAsync, __pyx_k_cudaMemPrefetchAsync, sizeof(__pyx_k_cudaMemPrefetchAsync), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemPrefetchAsync_v2, __pyx_k_cudaMemPrefetchAsync_v2, sizeof(__pyx_k_cudaMemPrefetchAsync_v2), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemRangeAttribute, __pyx_k_cudaMemRangeAttribute, sizeof(__pyx_k_cudaMemRangeAttribute), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemRangeAttributeAccessedBy, __pyx_k_cudaMemRangeAttributeAccessedBy, sizeof(__pyx_k_cudaMemRangeAttributeAccessedBy), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemRangeAttributeLastPrefetc, __pyx_k_cudaMemRangeAttributeLastPrefetc, sizeof(__pyx_k_cudaMemRangeAttributeLastPrefetc), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemRangeAttributeLastPrefetc_2, __pyx_k_cudaMemRangeAttributeLastPrefetc_2, sizeof(__pyx_k_cudaMemRangeAttributeLastPrefetc_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemRangeAttributeLastPrefetc_3, __pyx_k_cudaMemRangeAttributeLastPrefetc_3, sizeof(__pyx_k_cudaMemRangeAttributeLastPrefetc_3), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemRangeAttributePreferredLo, __pyx_k_cudaMemRangeAttributePreferredLo, sizeof(__pyx_k_cudaMemRangeAttributePreferredLo), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemRangeAttributePreferredLo_2, __pyx_k_cudaMemRangeAttributePreferredLo_2, sizeof(__pyx_k_cudaMemRangeAttributePreferredLo_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemRangeAttributePreferredLo_3, __pyx_k_cudaMemRangeAttributePreferredLo_3, sizeof(__pyx_k_cudaMemRangeAttributePreferredLo_3), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemRangeAttributeReadMostly, __pyx_k_cudaMemRangeAttributeReadMostly, sizeof(__pyx_k_cudaMemRangeAttributeReadMostly), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemRangeGetAttribute, __pyx_k_cudaMemRangeGetAttribute, sizeof(__pyx_k_cudaMemRangeGetAttribute), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemRangeGetAttributes, __pyx_k_cudaMemRangeGetAttributes, sizeof(__pyx_k_cudaMemRangeGetAttributes), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemRangeGetAttributes_locals, __pyx_k_cudaMemRangeGetAttributes_locals, sizeof(__pyx_k_cudaMemRangeGetAttributes_locals), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpy, __pyx_k_cudaMemcpy, sizeof(__pyx_k_cudaMemcpy), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpy2D, __pyx_k_cudaMemcpy2D, sizeof(__pyx_k_cudaMemcpy2D), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpy2DArrayToArray, __pyx_k_cudaMemcpy2DArrayToArray, sizeof(__pyx_k_cudaMemcpy2DArrayToArray), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpy2DAsync, __pyx_k_cudaMemcpy2DAsync, sizeof(__pyx_k_cudaMemcpy2DAsync), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpy2DFromArray, __pyx_k_cudaMemcpy2DFromArray, sizeof(__pyx_k_cudaMemcpy2DFromArray), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpy2DFromArrayAsync, __pyx_k_cudaMemcpy2DFromArrayAsync, sizeof(__pyx_k_cudaMemcpy2DFromArrayAsync), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpy2DToArray, __pyx_k_cudaMemcpy2DToArray, sizeof(__pyx_k_cudaMemcpy2DToArray), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpy2DToArrayAsync, __pyx_k_cudaMemcpy2DToArrayAsync, sizeof(__pyx_k_cudaMemcpy2DToArrayAsync), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpy3D, __pyx_k_cudaMemcpy3D, sizeof(__pyx_k_cudaMemcpy3D), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpy3DAsync, __pyx_k_cudaMemcpy3DAsync, sizeof(__pyx_k_cudaMemcpy3DAsync), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpy3DParms, __pyx_k_cudaMemcpy3DParms, sizeof(__pyx_k_cudaMemcpy3DParms), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpy3DParms___reduce_cytho, __pyx_k_cudaMemcpy3DParms___reduce_cytho, sizeof(__pyx_k_cudaMemcpy3DParms___reduce_cytho), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpy3DParms___setstate_cyt, __pyx_k_cudaMemcpy3DParms___setstate_cyt, sizeof(__pyx_k_cudaMemcpy3DParms___setstate_cyt), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpy3DParms_getPtr, __pyx_k_cudaMemcpy3DParms_getPtr, sizeof(__pyx_k_cudaMemcpy3DParms_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpy3DPeer, __pyx_k_cudaMemcpy3DPeer, sizeof(__pyx_k_cudaMemcpy3DPeer), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpy3DPeerAsync, __pyx_k_cudaMemcpy3DPeerAsync, sizeof(__pyx_k_cudaMemcpy3DPeerAsync), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpy3DPeerParms, __pyx_k_cudaMemcpy3DPeerParms, sizeof(__pyx_k_cudaMemcpy3DPeerParms), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpy3DPeerParms___reduce_c, __pyx_k_cudaMemcpy3DPeerParms___reduce_c, sizeof(__pyx_k_cudaMemcpy3DPeerParms___reduce_c), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpy3DPeerParms___setstate, __pyx_k_cudaMemcpy3DPeerParms___setstate, sizeof(__pyx_k_cudaMemcpy3DPeerParms___setstate), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpy3DPeerParms_getPtr, __pyx_k_cudaMemcpy3DPeerParms_getPtr, sizeof(__pyx_k_cudaMemcpy3DPeerParms_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpyArrayToArray, __pyx_k_cudaMemcpyArrayToArray, sizeof(__pyx_k_cudaMemcpyArrayToArray), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpyAsync, __pyx_k_cudaMemcpyAsync, sizeof(__pyx_k_cudaMemcpyAsync), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpyDefault, __pyx_k_cudaMemcpyDefault, sizeof(__pyx_k_cudaMemcpyDefault), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpyDeviceToDevice, __pyx_k_cudaMemcpyDeviceToDevice, sizeof(__pyx_k_cudaMemcpyDeviceToDevice), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpyDeviceToHost, __pyx_k_cudaMemcpyDeviceToHost, sizeof(__pyx_k_cudaMemcpyDeviceToHost), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpyFromArray, __pyx_k_cudaMemcpyFromArray, sizeof(__pyx_k_cudaMemcpyFromArray), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpyFromArrayAsync, __pyx_k_cudaMemcpyFromArrayAsync, sizeof(__pyx_k_cudaMemcpyFromArrayAsync), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpyHostToDevice, __pyx_k_cudaMemcpyHostToDevice, sizeof(__pyx_k_cudaMemcpyHostToDevice), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpyHostToHost, __pyx_k_cudaMemcpyHostToHost, sizeof(__pyx_k_cudaMemcpyHostToHost), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpyKind, __pyx_k_cudaMemcpyKind, sizeof(__pyx_k_cudaMemcpyKind), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpyNodeParams, __pyx_k_cudaMemcpyNodeParams, sizeof(__pyx_k_cudaMemcpyNodeParams), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpyNodeParams___reduce_cy, __pyx_k_cudaMemcpyNodeParams___reduce_cy, sizeof(__pyx_k_cudaMemcpyNodeParams___reduce_cy), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpyNodeParams___setstate, __pyx_k_cudaMemcpyNodeParams___setstate, sizeof(__pyx_k_cudaMemcpyNodeParams___setstate), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpyNodeParams_getPtr, __pyx_k_cudaMemcpyNodeParams_getPtr, sizeof(__pyx_k_cudaMemcpyNodeParams_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpyPeer, __pyx_k_cudaMemcpyPeer, sizeof(__pyx_k_cudaMemcpyPeer), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpyPeerAsync, __pyx_k_cudaMemcpyPeerAsync, sizeof(__pyx_k_cudaMemcpyPeerAsync), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpyToArray, __pyx_k_cudaMemcpyToArray, sizeof(__pyx_k_cudaMemcpyToArray), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemcpyToArrayAsync, __pyx_k_cudaMemcpyToArrayAsync, sizeof(__pyx_k_cudaMemcpyToArrayAsync), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemoryAdvise, __pyx_k_cudaMemoryAdvise, sizeof(__pyx_k_cudaMemoryAdvise), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemoryType, __pyx_k_cudaMemoryType, sizeof(__pyx_k_cudaMemoryType), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemoryTypeDevice, __pyx_k_cudaMemoryTypeDevice, sizeof(__pyx_k_cudaMemoryTypeDevice), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemoryTypeHost, __pyx_k_cudaMemoryTypeHost, sizeof(__pyx_k_cudaMemoryTypeHost), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemoryTypeManaged, __pyx_k_cudaMemoryTypeManaged, sizeof(__pyx_k_cudaMemoryTypeManaged), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemoryTypeUnregistered, __pyx_k_cudaMemoryTypeUnregistered, sizeof(__pyx_k_cudaMemoryTypeUnregistered), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemset, __pyx_k_cudaMemset, sizeof(__pyx_k_cudaMemset), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemset2D, __pyx_k_cudaMemset2D, sizeof(__pyx_k_cudaMemset2D), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemset2DAsync, __pyx_k_cudaMemset2DAsync, sizeof(__pyx_k_cudaMemset2DAsync), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemset3D, __pyx_k_cudaMemset3D, sizeof(__pyx_k_cudaMemset3D), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemset3DAsync, __pyx_k_cudaMemset3DAsync, sizeof(__pyx_k_cudaMemset3DAsync), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemsetAsync, __pyx_k_cudaMemsetAsync, sizeof(__pyx_k_cudaMemsetAsync), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemsetParams, __pyx_k_cudaMemsetParams, sizeof(__pyx_k_cudaMemsetParams), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemsetParamsV2, __pyx_k_cudaMemsetParamsV2, sizeof(__pyx_k_cudaMemsetParamsV2), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemsetParamsV2___reduce_cyth, __pyx_k_cudaMemsetParamsV2___reduce_cyth, sizeof(__pyx_k_cudaMemsetParamsV2___reduce_cyth), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemsetParamsV2___setstate_cy, __pyx_k_cudaMemsetParamsV2___setstate_cy, sizeof(__pyx_k_cudaMemsetParamsV2___setstate_cy), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemsetParamsV2_getPtr, __pyx_k_cudaMemsetParamsV2_getPtr, sizeof(__pyx_k_cudaMemsetParamsV2_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemsetParams___reduce_cython, __pyx_k_cudaMemsetParams___reduce_cython, sizeof(__pyx_k_cudaMemsetParams___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemsetParams___setstate_cyth, __pyx_k_cudaMemsetParams___setstate_cyth, sizeof(__pyx_k_cudaMemsetParams___setstate_cyth), 0, 0, 1, 1}, {&__pyx_n_s_cudaMemsetParams_getPtr, __pyx_k_cudaMemsetParams_getPtr, sizeof(__pyx_k_cudaMemsetParams_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaMipmappedArrayGetMemoryRequi, __pyx_k_cudaMipmappedArrayGetMemoryRequi, sizeof(__pyx_k_cudaMipmappedArrayGetMemoryRequi), 0, 0, 1, 1}, {&__pyx_n_s_cudaMipmappedArrayGetSparsePrope, __pyx_k_cudaMipmappedArrayGetSparsePrope, sizeof(__pyx_k_cudaMipmappedArrayGetSparsePrope), 0, 0, 1, 1}, {&__pyx_kp_u_cudaMipmappedArray_const_t, __pyx_k_cudaMipmappedArray_const_t, sizeof(__pyx_k_cudaMipmappedArray_const_t), 0, 1, 0, 0}, {&__pyx_n_s_cudaMipmappedArray_const_t_2, __pyx_k_cudaMipmappedArray_const_t_2, sizeof(__pyx_k_cudaMipmappedArray_const_t_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaMipmappedArray_const_t___red, __pyx_k_cudaMipmappedArray_const_t___red, sizeof(__pyx_k_cudaMipmappedArray_const_t___red), 0, 0, 1, 1}, {&__pyx_n_s_cudaMipmappedArray_const_t___set, __pyx_k_cudaMipmappedArray_const_t___set, sizeof(__pyx_k_cudaMipmappedArray_const_t___set), 0, 0, 1, 1}, {&__pyx_n_s_cudaMipmappedArray_const_t_getPt, __pyx_k_cudaMipmappedArray_const_t_getPt, sizeof(__pyx_k_cudaMipmappedArray_const_t_getPt), 0, 0, 1, 1}, {&__pyx_kp_u_cudaMipmappedArray_t, __pyx_k_cudaMipmappedArray_t, sizeof(__pyx_k_cudaMipmappedArray_t), 0, 1, 0, 0}, {&__pyx_n_s_cudaMipmappedArray_t_2, __pyx_k_cudaMipmappedArray_t_2, sizeof(__pyx_k_cudaMipmappedArray_t_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaMipmappedArray_t___reduce_cy, __pyx_k_cudaMipmappedArray_t___reduce_cy, sizeof(__pyx_k_cudaMipmappedArray_t___reduce_cy), 0, 0, 1, 1}, {&__pyx_n_s_cudaMipmappedArray_t___setstate, __pyx_k_cudaMipmappedArray_t___setstate, sizeof(__pyx_k_cudaMipmappedArray_t___setstate), 0, 0, 1, 1}, {&__pyx_n_s_cudaMipmappedArray_t_getPtr, __pyx_k_cudaMipmappedArray_t_getPtr, sizeof(__pyx_k_cudaMipmappedArray_t_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaNvSciSyncAttrSignal, __pyx_k_cudaNvSciSyncAttrSignal, sizeof(__pyx_k_cudaNvSciSyncAttrSignal), 0, 0, 1, 1}, {&__pyx_n_s_cudaNvSciSyncAttrWait, __pyx_k_cudaNvSciSyncAttrWait, sizeof(__pyx_k_cudaNvSciSyncAttrWait), 0, 0, 1, 1}, {&__pyx_n_s_cudaOccupancyAvailableDynamicSMe, __pyx_k_cudaOccupancyAvailableDynamicSMe, sizeof(__pyx_k_cudaOccupancyAvailableDynamicSMe), 0, 0, 1, 1}, {&__pyx_n_s_cudaOccupancyDefault, __pyx_k_cudaOccupancyDefault, sizeof(__pyx_k_cudaOccupancyDefault), 0, 0, 1, 1}, {&__pyx_n_s_cudaOccupancyDisableCachingOverr, __pyx_k_cudaOccupancyDisableCachingOverr, sizeof(__pyx_k_cudaOccupancyDisableCachingOverr), 0, 0, 1, 1}, {&__pyx_n_s_cudaOccupancyMaxActiveBlocksPerM, __pyx_k_cudaOccupancyMaxActiveBlocksPerM, sizeof(__pyx_k_cudaOccupancyMaxActiveBlocksPerM), 0, 0, 1, 1}, {&__pyx_n_s_cudaOccupancyMaxActiveBlocksPerM_2, __pyx_k_cudaOccupancyMaxActiveBlocksPerM_2, sizeof(__pyx_k_cudaOccupancyMaxActiveBlocksPerM_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaPeekAtLastError, __pyx_k_cudaPeekAtLastError, sizeof(__pyx_k_cudaPeekAtLastError), 0, 0, 1, 1}, {&__pyx_n_s_cudaPeerAccessDefault, __pyx_k_cudaPeerAccessDefault, sizeof(__pyx_k_cudaPeerAccessDefault), 0, 0, 1, 1}, {&__pyx_n_s_cudaPitchedPtr, __pyx_k_cudaPitchedPtr, sizeof(__pyx_k_cudaPitchedPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaPitchedPtr___reduce_cython, __pyx_k_cudaPitchedPtr___reduce_cython, sizeof(__pyx_k_cudaPitchedPtr___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_cudaPitchedPtr___setstate_cython, __pyx_k_cudaPitchedPtr___setstate_cython, sizeof(__pyx_k_cudaPitchedPtr___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_cudaPitchedPtr_getPtr, __pyx_k_cudaPitchedPtr_getPtr, sizeof(__pyx_k_cudaPitchedPtr_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaPointerAttributes, __pyx_k_cudaPointerAttributes, sizeof(__pyx_k_cudaPointerAttributes), 0, 0, 1, 1}, {&__pyx_n_s_cudaPointerAttributes___reduce_c, __pyx_k_cudaPointerAttributes___reduce_c, sizeof(__pyx_k_cudaPointerAttributes___reduce_c), 0, 0, 1, 1}, {&__pyx_n_s_cudaPointerAttributes___setstate, __pyx_k_cudaPointerAttributes___setstate, sizeof(__pyx_k_cudaPointerAttributes___setstate), 0, 0, 1, 1}, {&__pyx_n_s_cudaPointerAttributes_getPtr, __pyx_k_cudaPointerAttributes_getPtr, sizeof(__pyx_k_cudaPointerAttributes_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaPointerGetAttributes, __pyx_k_cudaPointerGetAttributes, sizeof(__pyx_k_cudaPointerGetAttributes), 0, 0, 1, 1}, {&__pyx_n_s_cudaPos, __pyx_k_cudaPos, sizeof(__pyx_k_cudaPos), 0, 0, 1, 1}, {&__pyx_n_s_cudaPos___reduce_cython, __pyx_k_cudaPos___reduce_cython, sizeof(__pyx_k_cudaPos___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_cudaPos___setstate_cython, __pyx_k_cudaPos___setstate_cython, sizeof(__pyx_k_cudaPos___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_cudaPos_getPtr, __pyx_k_cudaPos_getPtr, sizeof(__pyx_k_cudaPos_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaProfilerStart, __pyx_k_cudaProfilerStart, sizeof(__pyx_k_cudaProfilerStart), 0, 0, 1, 1}, {&__pyx_n_s_cudaProfilerStop, __pyx_k_cudaProfilerStop, sizeof(__pyx_k_cudaProfilerStop), 0, 0, 1, 1}, {&__pyx_n_s_cudaReadModeElementType, __pyx_k_cudaReadModeElementType, sizeof(__pyx_k_cudaReadModeElementType), 0, 0, 1, 1}, {&__pyx_n_s_cudaReadModeNormalizedFloat, __pyx_k_cudaReadModeNormalizedFloat, sizeof(__pyx_k_cudaReadModeNormalizedFloat), 0, 0, 1, 1}, {&__pyx_n_s_cudaResViewFormatFloat1, __pyx_k_cudaResViewFormatFloat1, sizeof(__pyx_k_cudaResViewFormatFloat1), 0, 0, 1, 1}, {&__pyx_n_s_cudaResViewFormatFloat2, __pyx_k_cudaResViewFormatFloat2, sizeof(__pyx_k_cudaResViewFormatFloat2), 0, 0, 1, 1}, {&__pyx_n_s_cudaResViewFormatFloat4, __pyx_k_cudaResViewFormatFloat4, sizeof(__pyx_k_cudaResViewFormatFloat4), 0, 0, 1, 1}, {&__pyx_n_s_cudaResViewFormatHalf1, __pyx_k_cudaResViewFormatHalf1, sizeof(__pyx_k_cudaResViewFormatHalf1), 0, 0, 1, 1}, {&__pyx_n_s_cudaResViewFormatHalf2, __pyx_k_cudaResViewFormatHalf2, sizeof(__pyx_k_cudaResViewFormatHalf2), 0, 0, 1, 1}, {&__pyx_n_s_cudaResViewFormatHalf4, __pyx_k_cudaResViewFormatHalf4, sizeof(__pyx_k_cudaResViewFormatHalf4), 0, 0, 1, 1}, {&__pyx_n_s_cudaResViewFormatNone, __pyx_k_cudaResViewFormatNone, sizeof(__pyx_k_cudaResViewFormatNone), 0, 0, 1, 1}, {&__pyx_n_s_cudaResViewFormatSignedBlockComp, __pyx_k_cudaResViewFormatSignedBlockComp, sizeof(__pyx_k_cudaResViewFormatSignedBlockComp), 0, 0, 1, 1}, {&__pyx_n_s_cudaResViewFormatSignedBlockComp_2, __pyx_k_cudaResViewFormatSignedBlockComp_2, sizeof(__pyx_k_cudaResViewFormatSignedBlockComp_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaResViewFormatSignedBlockComp_3, __pyx_k_cudaResViewFormatSignedBlockComp_3, sizeof(__pyx_k_cudaResViewFormatSignedBlockComp_3), 0, 0, 1, 1}, {&__pyx_n_s_cudaResViewFormatSignedChar1, __pyx_k_cudaResViewFormatSignedChar1, sizeof(__pyx_k_cudaResViewFormatSignedChar1), 0, 0, 1, 1}, {&__pyx_n_s_cudaResViewFormatSignedChar2, __pyx_k_cudaResViewFormatSignedChar2, sizeof(__pyx_k_cudaResViewFormatSignedChar2), 0, 0, 1, 1}, {&__pyx_n_s_cudaResViewFormatSignedChar4, __pyx_k_cudaResViewFormatSignedChar4, sizeof(__pyx_k_cudaResViewFormatSignedChar4), 0, 0, 1, 1}, {&__pyx_n_s_cudaResViewFormatSignedInt1, __pyx_k_cudaResViewFormatSignedInt1, sizeof(__pyx_k_cudaResViewFormatSignedInt1), 0, 0, 1, 1}, {&__pyx_n_s_cudaResViewFormatSignedInt2, __pyx_k_cudaResViewFormatSignedInt2, sizeof(__pyx_k_cudaResViewFormatSignedInt2), 0, 0, 1, 1}, {&__pyx_n_s_cudaResViewFormatSignedInt4, __pyx_k_cudaResViewFormatSignedInt4, sizeof(__pyx_k_cudaResViewFormatSignedInt4), 0, 0, 1, 1}, {&__pyx_n_s_cudaResViewFormatSignedShort1, __pyx_k_cudaResViewFormatSignedShort1, sizeof(__pyx_k_cudaResViewFormatSignedShort1), 0, 0, 1, 1}, {&__pyx_n_s_cudaResViewFormatSignedShort2, __pyx_k_cudaResViewFormatSignedShort2, sizeof(__pyx_k_cudaResViewFormatSignedShort2), 0, 0, 1, 1}, {&__pyx_n_s_cudaResViewFormatSignedShort4, __pyx_k_cudaResViewFormatSignedShort4, sizeof(__pyx_k_cudaResViewFormatSignedShort4), 0, 0, 1, 1}, {&__pyx_n_s_cudaResViewFormatUnsignedBlockCo, __pyx_k_cudaResViewFormatUnsignedBlockCo, sizeof(__pyx_k_cudaResViewFormatUnsignedBlockCo), 0, 0, 1, 1}, {&__pyx_n_s_cudaResViewFormatUnsignedBlockCo_2, __pyx_k_cudaResViewFormatUnsignedBlockCo_2, sizeof(__pyx_k_cudaResViewFormatUnsignedBlockCo_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaResViewFormatUnsignedBlockCo_3, __pyx_k_cudaResViewFormatUnsignedBlockCo_3, sizeof(__pyx_k_cudaResViewFormatUnsignedBlockCo_3), 0, 0, 1, 1}, {&__pyx_n_s_cudaResViewFormatUnsignedBlockCo_4, __pyx_k_cudaResViewFormatUnsignedBlockCo_4, sizeof(__pyx_k_cudaResViewFormatUnsignedBlockCo_4), 0, 0, 1, 1}, {&__pyx_n_s_cudaResViewFormatUnsignedBlockCo_5, __pyx_k_cudaResViewFormatUnsignedBlockCo_5, sizeof(__pyx_k_cudaResViewFormatUnsignedBlockCo_5), 0, 0, 1, 1}, {&__pyx_n_s_cudaResViewFormatUnsignedBlockCo_6, __pyx_k_cudaResViewFormatUnsignedBlockCo_6, sizeof(__pyx_k_cudaResViewFormatUnsignedBlockCo_6), 0, 0, 1, 1}, {&__pyx_n_s_cudaResViewFormatUnsignedBlockCo_7, __pyx_k_cudaResViewFormatUnsignedBlockCo_7, sizeof(__pyx_k_cudaResViewFormatUnsignedBlockCo_7), 0, 0, 1, 1}, {&__pyx_n_s_cudaResViewFormatUnsignedChar1, __pyx_k_cudaResViewFormatUnsignedChar1, sizeof(__pyx_k_cudaResViewFormatUnsignedChar1), 0, 0, 1, 1}, {&__pyx_n_s_cudaResViewFormatUnsignedChar2, __pyx_k_cudaResViewFormatUnsignedChar2, sizeof(__pyx_k_cudaResViewFormatUnsignedChar2), 0, 0, 1, 1}, {&__pyx_n_s_cudaResViewFormatUnsignedChar4, __pyx_k_cudaResViewFormatUnsignedChar4, sizeof(__pyx_k_cudaResViewFormatUnsignedChar4), 0, 0, 1, 1}, {&__pyx_n_s_cudaResViewFormatUnsignedInt1, __pyx_k_cudaResViewFormatUnsignedInt1, sizeof(__pyx_k_cudaResViewFormatUnsignedInt1), 0, 0, 1, 1}, {&__pyx_n_s_cudaResViewFormatUnsignedInt2, __pyx_k_cudaResViewFormatUnsignedInt2, sizeof(__pyx_k_cudaResViewFormatUnsignedInt2), 0, 0, 1, 1}, {&__pyx_n_s_cudaResViewFormatUnsignedInt4, __pyx_k_cudaResViewFormatUnsignedInt4, sizeof(__pyx_k_cudaResViewFormatUnsignedInt4), 0, 0, 1, 1}, {&__pyx_n_s_cudaResViewFormatUnsignedShort1, __pyx_k_cudaResViewFormatUnsignedShort1, sizeof(__pyx_k_cudaResViewFormatUnsignedShort1), 0, 0, 1, 1}, {&__pyx_n_s_cudaResViewFormatUnsignedShort2, __pyx_k_cudaResViewFormatUnsignedShort2, sizeof(__pyx_k_cudaResViewFormatUnsignedShort2), 0, 0, 1, 1}, {&__pyx_n_s_cudaResViewFormatUnsignedShort4, __pyx_k_cudaResViewFormatUnsignedShort4, sizeof(__pyx_k_cudaResViewFormatUnsignedShort4), 0, 0, 1, 1}, {&__pyx_n_s_cudaResourceDesc, __pyx_k_cudaResourceDesc, sizeof(__pyx_k_cudaResourceDesc), 0, 0, 1, 1}, {&__pyx_n_s_cudaResourceDesc___reduce_cython, __pyx_k_cudaResourceDesc___reduce_cython, sizeof(__pyx_k_cudaResourceDesc___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_cudaResourceDesc___setstate_cyth, __pyx_k_cudaResourceDesc___setstate_cyth, sizeof(__pyx_k_cudaResourceDesc___setstate_cyth), 0, 0, 1, 1}, {&__pyx_n_s_cudaResourceDesc_getPtr, __pyx_k_cudaResourceDesc_getPtr, sizeof(__pyx_k_cudaResourceDesc_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaResourceType, __pyx_k_cudaResourceType, sizeof(__pyx_k_cudaResourceType), 0, 0, 1, 1}, {&__pyx_n_s_cudaResourceTypeArray, __pyx_k_cudaResourceTypeArray, sizeof(__pyx_k_cudaResourceTypeArray), 0, 0, 1, 1}, {&__pyx_n_s_cudaResourceTypeLinear, __pyx_k_cudaResourceTypeLinear, sizeof(__pyx_k_cudaResourceTypeLinear), 0, 0, 1, 1}, {&__pyx_n_s_cudaResourceTypeMipmappedArray, __pyx_k_cudaResourceTypeMipmappedArray, sizeof(__pyx_k_cudaResourceTypeMipmappedArray), 0, 0, 1, 1}, {&__pyx_n_s_cudaResourceTypePitch2D, __pyx_k_cudaResourceTypePitch2D, sizeof(__pyx_k_cudaResourceTypePitch2D), 0, 0, 1, 1}, {&__pyx_n_s_cudaResourceViewDesc, __pyx_k_cudaResourceViewDesc, sizeof(__pyx_k_cudaResourceViewDesc), 0, 0, 1, 1}, {&__pyx_n_s_cudaResourceViewDesc___reduce_cy, __pyx_k_cudaResourceViewDesc___reduce_cy, sizeof(__pyx_k_cudaResourceViewDesc___reduce_cy), 0, 0, 1, 1}, {&__pyx_n_s_cudaResourceViewDesc___setstate, __pyx_k_cudaResourceViewDesc___setstate, sizeof(__pyx_k_cudaResourceViewDesc___setstate), 0, 0, 1, 1}, {&__pyx_n_s_cudaResourceViewDesc_getPtr, __pyx_k_cudaResourceViewDesc_getPtr, sizeof(__pyx_k_cudaResourceViewDesc_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaResourceViewFormat, __pyx_k_cudaResourceViewFormat, sizeof(__pyx_k_cudaResourceViewFormat), 0, 0, 1, 1}, {&__pyx_n_s_cudaRoundMinInf, __pyx_k_cudaRoundMinInf, sizeof(__pyx_k_cudaRoundMinInf), 0, 0, 1, 1}, {&__pyx_n_s_cudaRoundMode, __pyx_k_cudaRoundMode, sizeof(__pyx_k_cudaRoundMode), 0, 0, 1, 1}, {&__pyx_n_s_cudaRoundNearest, __pyx_k_cudaRoundNearest, sizeof(__pyx_k_cudaRoundNearest), 0, 0, 1, 1}, {&__pyx_n_s_cudaRoundPosInf, __pyx_k_cudaRoundPosInf, sizeof(__pyx_k_cudaRoundPosInf), 0, 0, 1, 1}, {&__pyx_n_s_cudaRoundZero, __pyx_k_cudaRoundZero, sizeof(__pyx_k_cudaRoundZero), 0, 0, 1, 1}, {&__pyx_n_s_cudaRuntimeGetVersion, __pyx_k_cudaRuntimeGetVersion, sizeof(__pyx_k_cudaRuntimeGetVersion), 0, 0, 1, 1}, {&__pyx_n_s_cudaSetDevice, __pyx_k_cudaSetDevice, sizeof(__pyx_k_cudaSetDevice), 0, 0, 1, 1}, {&__pyx_n_s_cudaSetDeviceFlags, __pyx_k_cudaSetDeviceFlags, sizeof(__pyx_k_cudaSetDeviceFlags), 0, 0, 1, 1}, {&__pyx_kp_u_cudaSetDevice_line_14584, __pyx_k_cudaSetDevice_line_14584, sizeof(__pyx_k_cudaSetDevice_line_14584), 0, 1, 0, 0}, {&__pyx_n_s_cudaSharedCarveout, __pyx_k_cudaSharedCarveout, sizeof(__pyx_k_cudaSharedCarveout), 0, 0, 1, 1}, {&__pyx_n_s_cudaSharedMemBankSizeDefault, __pyx_k_cudaSharedMemBankSizeDefault, sizeof(__pyx_k_cudaSharedMemBankSizeDefault), 0, 0, 1, 1}, {&__pyx_n_s_cudaSharedMemBankSizeEightByte, __pyx_k_cudaSharedMemBankSizeEightByte, sizeof(__pyx_k_cudaSharedMemBankSizeEightByte), 0, 0, 1, 1}, {&__pyx_n_s_cudaSharedMemBankSizeFourByte, __pyx_k_cudaSharedMemBankSizeFourByte, sizeof(__pyx_k_cudaSharedMemBankSizeFourByte), 0, 0, 1, 1}, {&__pyx_n_s_cudaSharedMemConfig, __pyx_k_cudaSharedMemConfig, sizeof(__pyx_k_cudaSharedMemConfig), 0, 0, 1, 1}, {&__pyx_n_s_cudaSharedmemCarveoutDefault, __pyx_k_cudaSharedmemCarveoutDefault, sizeof(__pyx_k_cudaSharedmemCarveoutDefault), 0, 0, 1, 1}, {&__pyx_n_s_cudaSharedmemCarveoutMaxL1, __pyx_k_cudaSharedmemCarveoutMaxL1, sizeof(__pyx_k_cudaSharedmemCarveoutMaxL1), 0, 0, 1, 1}, {&__pyx_n_s_cudaSharedmemCarveoutMaxShared, __pyx_k_cudaSharedmemCarveoutMaxShared, sizeof(__pyx_k_cudaSharedmemCarveoutMaxShared), 0, 0, 1, 1}, {&__pyx_n_s_cudaSignalExternalSemaphoresAsyn, __pyx_k_cudaSignalExternalSemaphoresAsyn, sizeof(__pyx_k_cudaSignalExternalSemaphoresAsyn), 0, 0, 1, 1}, {&__pyx_n_s_cudaSignalExternalSemaphoresAsyn_2, __pyx_k_cudaSignalExternalSemaphoresAsyn_2, sizeof(__pyx_k_cudaSignalExternalSemaphoresAsyn_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamAddCallback, __pyx_k_cudaStreamAddCallback, sizeof(__pyx_k_cudaStreamAddCallback), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamAddCaptureDependencies, __pyx_k_cudaStreamAddCaptureDependencies, sizeof(__pyx_k_cudaStreamAddCaptureDependencies), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamAttachMemAsync, __pyx_k_cudaStreamAttachMemAsync, sizeof(__pyx_k_cudaStreamAttachMemAsync), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamAttrID, __pyx_k_cudaStreamAttrID, sizeof(__pyx_k_cudaStreamAttrID), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamAttrValue, __pyx_k_cudaStreamAttrValue, sizeof(__pyx_k_cudaStreamAttrValue), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamAttributeAccessPolicyW, __pyx_k_cudaStreamAttributeAccessPolicyW, sizeof(__pyx_k_cudaStreamAttributeAccessPolicyW), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamAttributeMemSyncDomain, __pyx_k_cudaStreamAttributeMemSyncDomain, sizeof(__pyx_k_cudaStreamAttributeMemSyncDomain), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamAttributeMemSyncDomain_2, __pyx_k_cudaStreamAttributeMemSyncDomain_2, sizeof(__pyx_k_cudaStreamAttributeMemSyncDomain_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamAttributePriority, __pyx_k_cudaStreamAttributePriority, sizeof(__pyx_k_cudaStreamAttributePriority), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamAttributeSynchronizati, __pyx_k_cudaStreamAttributeSynchronizati, sizeof(__pyx_k_cudaStreamAttributeSynchronizati), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamBeginCapture, __pyx_k_cudaStreamBeginCapture, sizeof(__pyx_k_cudaStreamBeginCapture), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamBeginCaptureToGraph, __pyx_k_cudaStreamBeginCaptureToGraph, sizeof(__pyx_k_cudaStreamBeginCaptureToGraph), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamBeginCaptureToGraph_lo, __pyx_k_cudaStreamBeginCaptureToGraph_lo, sizeof(__pyx_k_cudaStreamBeginCaptureToGraph_lo), 0, 0, 1, 1}, {&__pyx_kp_u_cudaStreamCallback_t, __pyx_k_cudaStreamCallback_t, sizeof(__pyx_k_cudaStreamCallback_t), 0, 1, 0, 0}, {&__pyx_n_s_cudaStreamCallback_t_2, __pyx_k_cudaStreamCallback_t_2, sizeof(__pyx_k_cudaStreamCallback_t_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamCallback_t___reduce_cy, __pyx_k_cudaStreamCallback_t___reduce_cy, sizeof(__pyx_k_cudaStreamCallback_t___reduce_cy), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamCallback_t___setstate, __pyx_k_cudaStreamCallback_t___setstate, sizeof(__pyx_k_cudaStreamCallback_t___setstate), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamCallback_t_getPtr, __pyx_k_cudaStreamCallback_t_getPtr, sizeof(__pyx_k_cudaStreamCallback_t_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamCaptureMode, __pyx_k_cudaStreamCaptureMode, sizeof(__pyx_k_cudaStreamCaptureMode), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamCaptureModeGlobal, __pyx_k_cudaStreamCaptureModeGlobal, sizeof(__pyx_k_cudaStreamCaptureModeGlobal), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamCaptureModeRelaxed, __pyx_k_cudaStreamCaptureModeRelaxed, sizeof(__pyx_k_cudaStreamCaptureModeRelaxed), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamCaptureModeThreadLocal, __pyx_k_cudaStreamCaptureModeThreadLocal, sizeof(__pyx_k_cudaStreamCaptureModeThreadLocal), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamCaptureStatus, __pyx_k_cudaStreamCaptureStatus, sizeof(__pyx_k_cudaStreamCaptureStatus), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamCaptureStatusActive, __pyx_k_cudaStreamCaptureStatusActive, sizeof(__pyx_k_cudaStreamCaptureStatusActive), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamCaptureStatusInvalidat, __pyx_k_cudaStreamCaptureStatusInvalidat, sizeof(__pyx_k_cudaStreamCaptureStatusInvalidat), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamCaptureStatusNone, __pyx_k_cudaStreamCaptureStatusNone, sizeof(__pyx_k_cudaStreamCaptureStatusNone), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamCopyAttributes, __pyx_k_cudaStreamCopyAttributes, sizeof(__pyx_k_cudaStreamCopyAttributes), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamCreate, __pyx_k_cudaStreamCreate, sizeof(__pyx_k_cudaStreamCreate), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamCreateWithFlags, __pyx_k_cudaStreamCreateWithFlags, sizeof(__pyx_k_cudaStreamCreateWithFlags), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamCreateWithPriority, __pyx_k_cudaStreamCreateWithPriority, sizeof(__pyx_k_cudaStreamCreateWithPriority), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamDefault, __pyx_k_cudaStreamDefault, sizeof(__pyx_k_cudaStreamDefault), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamDestroy, __pyx_k_cudaStreamDestroy, sizeof(__pyx_k_cudaStreamDestroy), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamEndCapture, __pyx_k_cudaStreamEndCapture, sizeof(__pyx_k_cudaStreamEndCapture), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamGetAttribute, __pyx_k_cudaStreamGetAttribute, sizeof(__pyx_k_cudaStreamGetAttribute), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamGetCaptureInfo, __pyx_k_cudaStreamGetCaptureInfo, sizeof(__pyx_k_cudaStreamGetCaptureInfo), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamGetCaptureInfo_v3, __pyx_k_cudaStreamGetCaptureInfo_v3, sizeof(__pyx_k_cudaStreamGetCaptureInfo_v3), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamGetFlags, __pyx_k_cudaStreamGetFlags, sizeof(__pyx_k_cudaStreamGetFlags), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamGetId, __pyx_k_cudaStreamGetId, sizeof(__pyx_k_cudaStreamGetId), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamGetPriority, __pyx_k_cudaStreamGetPriority, sizeof(__pyx_k_cudaStreamGetPriority), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamIsCapturing, __pyx_k_cudaStreamIsCapturing, sizeof(__pyx_k_cudaStreamIsCapturing), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamLegacy, __pyx_k_cudaStreamLegacy, sizeof(__pyx_k_cudaStreamLegacy), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamNonBlocking, __pyx_k_cudaStreamNonBlocking, sizeof(__pyx_k_cudaStreamNonBlocking), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamPerThread, __pyx_k_cudaStreamPerThread, sizeof(__pyx_k_cudaStreamPerThread), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamQuery, __pyx_k_cudaStreamQuery, sizeof(__pyx_k_cudaStreamQuery), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamSetAttribute, __pyx_k_cudaStreamSetAttribute, sizeof(__pyx_k_cudaStreamSetAttribute), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamSetCaptureDependencies, __pyx_k_cudaStreamSetCaptureDependencies, sizeof(__pyx_k_cudaStreamSetCaptureDependencies), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamSynchronize, __pyx_k_cudaStreamSynchronize, sizeof(__pyx_k_cudaStreamSynchronize), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamUpdateCaptureDependenc, __pyx_k_cudaStreamUpdateCaptureDependenc, sizeof(__pyx_k_cudaStreamUpdateCaptureDependenc), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamUpdateCaptureDependenc_2, __pyx_k_cudaStreamUpdateCaptureDependenc_2, sizeof(__pyx_k_cudaStreamUpdateCaptureDependenc_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamUpdateCaptureDependenc_3, __pyx_k_cudaStreamUpdateCaptureDependenc_3, sizeof(__pyx_k_cudaStreamUpdateCaptureDependenc_3), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamUpdateCaptureDependenc_4, __pyx_k_cudaStreamUpdateCaptureDependenc_4, sizeof(__pyx_k_cudaStreamUpdateCaptureDependenc_4), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamUpdateCaptureDependenc_5, __pyx_k_cudaStreamUpdateCaptureDependenc_5, sizeof(__pyx_k_cudaStreamUpdateCaptureDependenc_5), 0, 0, 1, 1}, {&__pyx_n_s_cudaStreamWaitEvent, __pyx_k_cudaStreamWaitEvent, sizeof(__pyx_k_cudaStreamWaitEvent), 0, 0, 1, 1}, {&__pyx_n_s_cudaStream_t, __pyx_k_cudaStream_t, sizeof(__pyx_k_cudaStream_t), 0, 0, 1, 1}, {&__pyx_n_s_cudaSuccess, __pyx_k_cudaSuccess, sizeof(__pyx_k_cudaSuccess), 0, 0, 1, 1}, {&__pyx_n_s_cudaSurfaceBoundaryMode, __pyx_k_cudaSurfaceBoundaryMode, sizeof(__pyx_k_cudaSurfaceBoundaryMode), 0, 0, 1, 1}, {&__pyx_n_s_cudaSurfaceFormatMode, __pyx_k_cudaSurfaceFormatMode, sizeof(__pyx_k_cudaSurfaceFormatMode), 0, 0, 1, 1}, {&__pyx_kp_u_cudaSurfaceObject_t, __pyx_k_cudaSurfaceObject_t, sizeof(__pyx_k_cudaSurfaceObject_t), 0, 1, 0, 0}, {&__pyx_n_s_cudaSurfaceObject_t_2, __pyx_k_cudaSurfaceObject_t_2, sizeof(__pyx_k_cudaSurfaceObject_t_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaSurfaceObject_t___reduce_cyt, __pyx_k_cudaSurfaceObject_t___reduce_cyt, sizeof(__pyx_k_cudaSurfaceObject_t___reduce_cyt), 0, 0, 1, 1}, {&__pyx_n_s_cudaSurfaceObject_t___setstate_c, __pyx_k_cudaSurfaceObject_t___setstate_c, sizeof(__pyx_k_cudaSurfaceObject_t___setstate_c), 0, 0, 1, 1}, {&__pyx_n_s_cudaSurfaceObject_t_getPtr, __pyx_k_cudaSurfaceObject_t_getPtr, sizeof(__pyx_k_cudaSurfaceObject_t_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaSurfaceType1D, __pyx_k_cudaSurfaceType1D, sizeof(__pyx_k_cudaSurfaceType1D), 0, 0, 1, 1}, {&__pyx_n_s_cudaSurfaceType1DLayered, __pyx_k_cudaSurfaceType1DLayered, sizeof(__pyx_k_cudaSurfaceType1DLayered), 0, 0, 1, 1}, {&__pyx_n_s_cudaSurfaceType2D, __pyx_k_cudaSurfaceType2D, sizeof(__pyx_k_cudaSurfaceType2D), 0, 0, 1, 1}, {&__pyx_n_s_cudaSurfaceType2DLayered, __pyx_k_cudaSurfaceType2DLayered, sizeof(__pyx_k_cudaSurfaceType2DLayered), 0, 0, 1, 1}, {&__pyx_n_s_cudaSurfaceType3D, __pyx_k_cudaSurfaceType3D, sizeof(__pyx_k_cudaSurfaceType3D), 0, 0, 1, 1}, {&__pyx_n_s_cudaSurfaceTypeCubemap, __pyx_k_cudaSurfaceTypeCubemap, sizeof(__pyx_k_cudaSurfaceTypeCubemap), 0, 0, 1, 1}, {&__pyx_n_s_cudaSurfaceTypeCubemapLayered, __pyx_k_cudaSurfaceTypeCubemapLayered, sizeof(__pyx_k_cudaSurfaceTypeCubemapLayered), 0, 0, 1, 1}, {&__pyx_n_s_cudaSyncPolicyAuto, __pyx_k_cudaSyncPolicyAuto, sizeof(__pyx_k_cudaSyncPolicyAuto), 0, 0, 1, 1}, {&__pyx_n_s_cudaSyncPolicyBlockingSync, __pyx_k_cudaSyncPolicyBlockingSync, sizeof(__pyx_k_cudaSyncPolicyBlockingSync), 0, 0, 1, 1}, {&__pyx_n_s_cudaSyncPolicySpin, __pyx_k_cudaSyncPolicySpin, sizeof(__pyx_k_cudaSyncPolicySpin), 0, 0, 1, 1}, {&__pyx_n_s_cudaSyncPolicyYield, __pyx_k_cudaSyncPolicyYield, sizeof(__pyx_k_cudaSyncPolicyYield), 0, 0, 1, 1}, {&__pyx_n_s_cudaSynchronizationPolicy, __pyx_k_cudaSynchronizationPolicy, sizeof(__pyx_k_cudaSynchronizationPolicy), 0, 0, 1, 1}, {&__pyx_n_s_cudaTextureAddressMode, __pyx_k_cudaTextureAddressMode, sizeof(__pyx_k_cudaTextureAddressMode), 0, 0, 1, 1}, {&__pyx_n_s_cudaTextureDesc, __pyx_k_cudaTextureDesc, sizeof(__pyx_k_cudaTextureDesc), 0, 0, 1, 1}, {&__pyx_n_s_cudaTextureDesc___reduce_cython, __pyx_k_cudaTextureDesc___reduce_cython, sizeof(__pyx_k_cudaTextureDesc___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_cudaTextureDesc___setstate_cytho, __pyx_k_cudaTextureDesc___setstate_cytho, sizeof(__pyx_k_cudaTextureDesc___setstate_cytho), 0, 0, 1, 1}, {&__pyx_n_s_cudaTextureDesc_getPtr, __pyx_k_cudaTextureDesc_getPtr, sizeof(__pyx_k_cudaTextureDesc_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaTextureFilterMode, __pyx_k_cudaTextureFilterMode, sizeof(__pyx_k_cudaTextureFilterMode), 0, 0, 1, 1}, {&__pyx_kp_u_cudaTextureObject_t, __pyx_k_cudaTextureObject_t, sizeof(__pyx_k_cudaTextureObject_t), 0, 1, 0, 0}, {&__pyx_n_s_cudaTextureObject_t_2, __pyx_k_cudaTextureObject_t_2, sizeof(__pyx_k_cudaTextureObject_t_2), 0, 0, 1, 1}, {&__pyx_n_s_cudaTextureObject_t___reduce_cyt, __pyx_k_cudaTextureObject_t___reduce_cyt, sizeof(__pyx_k_cudaTextureObject_t___reduce_cyt), 0, 0, 1, 1}, {&__pyx_n_s_cudaTextureObject_t___setstate_c, __pyx_k_cudaTextureObject_t___setstate_c, sizeof(__pyx_k_cudaTextureObject_t___setstate_c), 0, 0, 1, 1}, {&__pyx_n_s_cudaTextureObject_t_getPtr, __pyx_k_cudaTextureObject_t_getPtr, sizeof(__pyx_k_cudaTextureObject_t_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_cudaTextureReadMode, __pyx_k_cudaTextureReadMode, sizeof(__pyx_k_cudaTextureReadMode), 0, 0, 1, 1}, {&__pyx_n_s_cudaTextureType1D, __pyx_k_cudaTextureType1D, sizeof(__pyx_k_cudaTextureType1D), 0, 0, 1, 1}, {&__pyx_n_s_cudaTextureType1DLayered, __pyx_k_cudaTextureType1DLayered, sizeof(__pyx_k_cudaTextureType1DLayered), 0, 0, 1, 1}, {&__pyx_n_s_cudaTextureType2D, __pyx_k_cudaTextureType2D, sizeof(__pyx_k_cudaTextureType2D), 0, 0, 1, 1}, {&__pyx_n_s_cudaTextureType2DLayered, __pyx_k_cudaTextureType2DLayered, sizeof(__pyx_k_cudaTextureType2DLayered), 0, 0, 1, 1}, {&__pyx_n_s_cudaTextureType3D, __pyx_k_cudaTextureType3D, sizeof(__pyx_k_cudaTextureType3D), 0, 0, 1, 1}, {&__pyx_n_s_cudaTextureTypeCubemap, __pyx_k_cudaTextureTypeCubemap, sizeof(__pyx_k_cudaTextureTypeCubemap), 0, 0, 1, 1}, {&__pyx_n_s_cudaTextureTypeCubemapLayered, __pyx_k_cudaTextureTypeCubemapLayered, sizeof(__pyx_k_cudaTextureTypeCubemapLayered), 0, 0, 1, 1}, {&__pyx_n_s_cudaThreadExchangeStreamCaptureM, __pyx_k_cudaThreadExchangeStreamCaptureM, sizeof(__pyx_k_cudaThreadExchangeStreamCaptureM), 0, 0, 1, 1}, {&__pyx_n_s_cudaUUID_t, __pyx_k_cudaUUID_t, sizeof(__pyx_k_cudaUUID_t), 0, 0, 1, 1}, {&__pyx_n_s_cudaUserObjectCreate, __pyx_k_cudaUserObjectCreate, sizeof(__pyx_k_cudaUserObjectCreate), 0, 0, 1, 1}, {&__pyx_n_s_cudaUserObjectFlags, __pyx_k_cudaUserObjectFlags, sizeof(__pyx_k_cudaUserObjectFlags), 0, 0, 1, 1}, {&__pyx_n_s_cudaUserObjectNoDestructorSync, __pyx_k_cudaUserObjectNoDestructorSync, sizeof(__pyx_k_cudaUserObjectNoDestructorSync), 0, 0, 1, 1}, {&__pyx_n_s_cudaUserObjectRelease, __pyx_k_cudaUserObjectRelease, sizeof(__pyx_k_cudaUserObjectRelease), 0, 0, 1, 1}, {&__pyx_n_s_cudaUserObjectRetain, __pyx_k_cudaUserObjectRetain, sizeof(__pyx_k_cudaUserObjectRetain), 0, 0, 1, 1}, {&__pyx_n_s_cudaUserObjectRetainFlags, __pyx_k_cudaUserObjectRetainFlags, sizeof(__pyx_k_cudaUserObjectRetainFlags), 0, 0, 1, 1}, {&__pyx_n_s_cudaUserObject_t, __pyx_k_cudaUserObject_t, sizeof(__pyx_k_cudaUserObject_t), 0, 0, 1, 1}, {&__pyx_n_s_cudaVDPAUGetDevice, __pyx_k_cudaVDPAUGetDevice, sizeof(__pyx_k_cudaVDPAUGetDevice), 0, 0, 1, 1}, {&__pyx_n_s_cudaVDPAUSetVDPAUDevice, __pyx_k_cudaVDPAUSetVDPAUDevice, sizeof(__pyx_k_cudaVDPAUSetVDPAUDevice), 0, 0, 1, 1}, {&__pyx_n_s_cudaVersion, __pyx_k_cudaVersion, sizeof(__pyx_k_cudaVersion), 0, 0, 1, 1}, {&__pyx_n_s_cudaWaitExternalSemaphoresAsync, __pyx_k_cudaWaitExternalSemaphoresAsync, sizeof(__pyx_k_cudaWaitExternalSemaphoresAsync), 0, 0, 1, 1}, {&__pyx_n_s_cudaWaitExternalSemaphoresAsync_2, __pyx_k_cudaWaitExternalSemaphoresAsync_2, sizeof(__pyx_k_cudaWaitExternalSemaphoresAsync_2), 0, 0, 1, 1}, {&__pyx_n_s_cuda_cuda, __pyx_k_cuda_cuda, sizeof(__pyx_k_cuda_cuda), 0, 0, 1, 1}, {&__pyx_n_s_cuda_cudart, __pyx_k_cuda_cudart, sizeof(__pyx_k_cuda_cudart), 0, 0, 1, 1}, {&__pyx_kp_s_cuda_cudart_pyx, __pyx_k_cuda_cudart_pyx, sizeof(__pyx_k_cuda_cudart_pyx), 0, 0, 1, 0}, {&__pyx_n_s_cuserData, __pyx_k_cuserData, sizeof(__pyx_k_cuserData), 0, 0, 1, 1}, {&__pyx_n_s_cuserData_ptr, __pyx_k_cuserData_ptr, sizeof(__pyx_k_cuserData_ptr), 0, 0, 1, 1}, {&__pyx_n_s_cvalue, __pyx_k_cvalue, sizeof(__pyx_k_cvalue), 0, 0, 1, 1}, {&__pyx_n_s_cvalue_ptr, __pyx_k_cvalue_ptr, sizeof(__pyx_k_cvalue_ptr), 0, 0, 1, 1}, {&__pyx_n_s_cvdpDevice, __pyx_k_cvdpDevice, sizeof(__pyx_k_cvdpDevice), 0, 0, 1, 1}, {&__pyx_n_s_cvdpGetProcAddress, __pyx_k_cvdpGetProcAddress, sizeof(__pyx_k_cvdpGetProcAddress), 0, 0, 1, 1}, {&__pyx_n_s_cvdpSurface, __pyx_k_cvdpSurface, sizeof(__pyx_k_cvdpSurface), 0, 0, 1, 1}, {&__pyx_n_s_cvoidStarHelper_ptr, __pyx_k_cvoidStarHelper_ptr, sizeof(__pyx_k_cvoidStarHelper_ptr), 0, 0, 1, 1}, {&__pyx_n_s_cwidth, __pyx_k_cwidth, sizeof(__pyx_k_cwidth), 0, 0, 1, 1}, {&__pyx_n_s_d, __pyx_k_d, sizeof(__pyx_k_d), 0, 0, 1, 1}, {&__pyx_n_s_dataSize, __pyx_k_dataSize, sizeof(__pyx_k_dataSize), 0, 0, 1, 1}, {&__pyx_n_s_dataSizes, __pyx_k_dataSizes, sizeof(__pyx_k_dataSizes), 0, 0, 1, 1}, {&__pyx_n_s_decode, __pyx_k_decode, sizeof(__pyx_k_decode), 0, 0, 1, 1}, {&__pyx_kp_u_default, __pyx_k_default, sizeof(__pyx_k_default), 0, 1, 0, 0}, {&__pyx_n_s_defaultLaunchValue, __pyx_k_defaultLaunchValue, sizeof(__pyx_k_defaultLaunchValue), 0, 0, 1, 1}, {&__pyx_n_s_default_2, __pyx_k_default_2, sizeof(__pyx_k_default_2), 0, 0, 1, 1}, {&__pyx_kp_u_default__ValueError, __pyx_k_default__ValueError, sizeof(__pyx_k_default__ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_deferredMappingCudaArraySupporte, __pyx_k_deferredMappingCudaArraySupporte, sizeof(__pyx_k_deferredMappingCudaArraySupporte), 0, 1, 0, 0}, {&__pyx_n_s_deferredMappingCudaArraySupporte_2, __pyx_k_deferredMappingCudaArraySupporte_2, sizeof(__pyx_k_deferredMappingCudaArraySupporte_2), 0, 0, 1, 1}, {&__pyx_kp_u_deferredMappingCudaArraySupporte_3, __pyx_k_deferredMappingCudaArraySupporte_3, sizeof(__pyx_k_deferredMappingCudaArraySupporte_3), 0, 1, 0, 0}, {&__pyx_n_s_dependencies, __pyx_k_dependencies, sizeof(__pyx_k_dependencies), 0, 0, 1, 1}, {&__pyx_n_s_dependencyData, __pyx_k_dependencyData, sizeof(__pyx_k_dependencyData), 0, 0, 1, 1}, {&__pyx_kp_u_depth, __pyx_k_depth, sizeof(__pyx_k_depth), 0, 1, 0, 0}, {&__pyx_n_s_depth_2, __pyx_k_depth_2, sizeof(__pyx_k_depth_2), 0, 0, 1, 1}, {&__pyx_kp_u_depth_ValueError, __pyx_k_depth_ValueError, sizeof(__pyx_k_depth_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_desc, __pyx_k_desc, sizeof(__pyx_k_desc), 0, 1, 0, 0}, {&__pyx_n_s_descList, __pyx_k_descList, sizeof(__pyx_k_descList), 0, 0, 1, 1}, {&__pyx_n_s_desc_2, __pyx_k_desc_2, sizeof(__pyx_k_desc_2), 0, 0, 1, 1}, {&__pyx_kp_u_desc_ValueError, __pyx_k_desc_ValueError, sizeof(__pyx_k_desc_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_destroy, __pyx_k_destroy, sizeof(__pyx_k_destroy), 0, 0, 1, 1}, {&__pyx_kp_u_devNode, __pyx_k_devNode, sizeof(__pyx_k_devNode), 0, 1, 0, 0}, {&__pyx_n_s_devNode_2, __pyx_k_devNode_2, sizeof(__pyx_k_devNode_2), 0, 0, 1, 1}, {&__pyx_kp_u_devNode_ValueError, __pyx_k_devNode_ValueError, sizeof(__pyx_k_devNode_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_devPtr, __pyx_k_devPtr, sizeof(__pyx_k_devPtr), 0, 1, 0, 0}, {&__pyx_n_s_devPtr_2, __pyx_k_devPtr_2, sizeof(__pyx_k_devPtr_2), 0, 0, 1, 1}, {&__pyx_kp_u_devPtr_ValueError, __pyx_k_devPtr_ValueError, sizeof(__pyx_k_devPtr_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_device, __pyx_k_device, sizeof(__pyx_k_device), 0, 1, 0, 0}, {&__pyx_n_s_deviceFlags, __pyx_k_deviceFlags, sizeof(__pyx_k_deviceFlags), 0, 0, 1, 1}, {&__pyx_n_s_deviceList, __pyx_k_deviceList, sizeof(__pyx_k_deviceList), 0, 0, 1, 1}, {&__pyx_kp_u_deviceOverlap, __pyx_k_deviceOverlap, sizeof(__pyx_k_deviceOverlap), 0, 1, 0, 0}, {&__pyx_n_s_deviceOverlap_2, __pyx_k_deviceOverlap_2, sizeof(__pyx_k_deviceOverlap_2), 0, 0, 1, 1}, {&__pyx_kp_u_deviceOverlap_ValueError, __pyx_k_deviceOverlap_ValueError, sizeof(__pyx_k_deviceOverlap_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_devicePointer, __pyx_k_devicePointer, sizeof(__pyx_k_devicePointer), 0, 1, 0, 0}, {&__pyx_n_s_devicePointer_2, __pyx_k_devicePointer_2, sizeof(__pyx_k_devicePointer_2), 0, 0, 1, 1}, {&__pyx_kp_u_devicePointer_ValueError, __pyx_k_devicePointer_ValueError, sizeof(__pyx_k_devicePointer_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_deviceUpdatable, __pyx_k_deviceUpdatable, sizeof(__pyx_k_deviceUpdatable), 0, 1, 0, 0}, {&__pyx_kp_u_deviceUpdatableKernelNode, __pyx_k_deviceUpdatableKernelNode, sizeof(__pyx_k_deviceUpdatableKernelNode), 0, 1, 0, 0}, {&__pyx_n_s_deviceUpdatableKernelNode_2, __pyx_k_deviceUpdatableKernelNode_2, sizeof(__pyx_k_deviceUpdatableKernelNode_2), 0, 0, 1, 1}, {&__pyx_kp_u_deviceUpdatableKernelNode_ValueE, __pyx_k_deviceUpdatableKernelNode_ValueE, sizeof(__pyx_k_deviceUpdatableKernelNode_ValueE), 0, 1, 0, 0}, {&__pyx_n_s_deviceUpdatable_2, __pyx_k_deviceUpdatable_2, sizeof(__pyx_k_deviceUpdatable_2), 0, 0, 1, 1}, {&__pyx_kp_u_deviceUpdatable_ValueError, __pyx_k_deviceUpdatable_ValueError, sizeof(__pyx_k_deviceUpdatable_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_device_2, __pyx_k_device_2, sizeof(__pyx_k_device_2), 0, 0, 1, 1}, {&__pyx_kp_u_device_ValueError, __pyx_k_device_ValueError, sizeof(__pyx_k_device_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_dict, __pyx_k_dict, sizeof(__pyx_k_dict), 0, 0, 1, 1}, {&__pyx_n_s_dim3, __pyx_k_dim3, sizeof(__pyx_k_dim3), 0, 0, 1, 1}, {&__pyx_n_s_dim3___reduce_cython, __pyx_k_dim3___reduce_cython, sizeof(__pyx_k_dim3___reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_dim3___setstate_cython, __pyx_k_dim3___setstate_cython, sizeof(__pyx_k_dim3___setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_dim3_getPtr, __pyx_k_dim3_getPtr, sizeof(__pyx_k_dim3_getPtr), 0, 0, 1, 1}, {&__pyx_kp_u_directManagedMemAccessFromHost, __pyx_k_directManagedMemAccessFromHost, sizeof(__pyx_k_directManagedMemAccessFromHost), 0, 1, 0, 0}, {&__pyx_n_s_directManagedMemAccessFromHost_2, __pyx_k_directManagedMemAccessFromHost_2, sizeof(__pyx_k_directManagedMemAccessFromHost_2), 0, 0, 1, 1}, {&__pyx_kp_u_directManagedMemAccessFromHost_V, __pyx_k_directManagedMemAccessFromHost_V, sizeof(__pyx_k_directManagedMemAccessFromHost_V), 0, 1, 0, 0}, {&__pyx_kp_u_disable, __pyx_k_disable, sizeof(__pyx_k_disable), 0, 1, 0, 0}, {&__pyx_kp_u_disableTrilinearOptimization, __pyx_k_disableTrilinearOptimization, sizeof(__pyx_k_disableTrilinearOptimization), 0, 1, 0, 0}, {&__pyx_n_s_disableTrilinearOptimization_2, __pyx_k_disableTrilinearOptimization_2, sizeof(__pyx_k_disableTrilinearOptimization_2), 0, 0, 1, 1}, {&__pyx_kp_u_disableTrilinearOptimization_Val, __pyx_k_disableTrilinearOptimization_Val, sizeof(__pyx_k_disableTrilinearOptimization_Val), 0, 1, 0, 0}, {&__pyx_n_s_doc, __pyx_k_doc, sizeof(__pyx_k_doc), 0, 0, 1, 1}, {&__pyx_n_s_dpitch, __pyx_k_dpitch, sizeof(__pyx_k_dpitch), 0, 0, 1, 1}, {&__pyx_kp_u_dptr, __pyx_k_dptr, sizeof(__pyx_k_dptr), 0, 1, 0, 0}, {&__pyx_n_s_dptr_2, __pyx_k_dptr_2, sizeof(__pyx_k_dptr_2), 0, 0, 1, 1}, {&__pyx_kp_u_dptr_ValueError, __pyx_k_dptr_ValueError, sizeof(__pyx_k_dptr_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_dptr_out, __pyx_k_dptr_out, sizeof(__pyx_k_dptr_out), 0, 0, 1, 1}, {&__pyx_n_s_driverStatus, __pyx_k_driverStatus, sizeof(__pyx_k_driverStatus), 0, 0, 1, 1}, {&__pyx_n_s_driverVersion, __pyx_k_driverVersion, sizeof(__pyx_k_driverVersion), 0, 0, 1, 1}, {&__pyx_kp_u_dst, __pyx_k_dst, sizeof(__pyx_k_dst), 0, 1, 0, 0}, {&__pyx_kp_u_dstArray, __pyx_k_dstArray, sizeof(__pyx_k_dstArray), 0, 1, 0, 0}, {&__pyx_n_s_dstArray_2, __pyx_k_dstArray_2, sizeof(__pyx_k_dstArray_2), 0, 0, 1, 1}, {&__pyx_kp_u_dstArray_ValueError, __pyx_k_dstArray_ValueError, sizeof(__pyx_k_dstArray_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_dstDevice, __pyx_k_dstDevice, sizeof(__pyx_k_dstDevice), 0, 1, 0, 0}, {&__pyx_n_s_dstDevice_2, __pyx_k_dstDevice_2, sizeof(__pyx_k_dstDevice_2), 0, 0, 1, 1}, {&__pyx_kp_u_dstDevice_ValueError, __pyx_k_dstDevice_ValueError, sizeof(__pyx_k_dstDevice_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_dstPos, __pyx_k_dstPos, sizeof(__pyx_k_dstPos), 0, 1, 0, 0}, {&__pyx_n_s_dstPos_2, __pyx_k_dstPos_2, sizeof(__pyx_k_dstPos_2), 0, 0, 1, 1}, {&__pyx_kp_u_dstPos_ValueError, __pyx_k_dstPos_ValueError, sizeof(__pyx_k_dstPos_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_dstPtr, __pyx_k_dstPtr, sizeof(__pyx_k_dstPtr), 0, 1, 0, 0}, {&__pyx_n_s_dstPtr_2, __pyx_k_dstPtr_2, sizeof(__pyx_k_dstPtr_2), 0, 0, 1, 1}, {&__pyx_kp_u_dstPtr_ValueError, __pyx_k_dstPtr_ValueError, sizeof(__pyx_k_dstPtr_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_dst_2, __pyx_k_dst_2, sizeof(__pyx_k_dst_2), 0, 0, 1, 1}, {&__pyx_kp_u_dst_ValueError, __pyx_k_dst_ValueError, sizeof(__pyx_k_dst_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_dynamicSMemSize, __pyx_k_dynamicSMemSize, sizeof(__pyx_k_dynamicSMemSize), 0, 0, 1, 1}, {&__pyx_n_s_dynamicSmemSize, __pyx_k_dynamicSmemSize, sizeof(__pyx_k_dynamicSmemSize), 0, 0, 1, 1}, {&__pyx_n_s_edgeData, __pyx_k_edgeData, sizeof(__pyx_k_edgeData), 0, 0, 1, 1}, {&__pyx_kp_u_eglColorFormat, __pyx_k_eglColorFormat, sizeof(__pyx_k_eglColorFormat), 0, 1, 0, 0}, {&__pyx_n_s_eglColorFormat_2, __pyx_k_eglColorFormat_2, sizeof(__pyx_k_eglColorFormat_2), 0, 0, 1, 1}, {&__pyx_kp_u_eglColorFormat_ValueError, __pyx_k_eglColorFormat_ValueError, sizeof(__pyx_k_eglColorFormat_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_eglFrame, __pyx_k_eglFrame, sizeof(__pyx_k_eglFrame), 0, 0, 1, 1}, {&__pyx_n_s_eglStream, __pyx_k_eglStream, sizeof(__pyx_k_eglStream), 0, 0, 1, 1}, {&__pyx_n_s_eglSync, __pyx_k_eglSync, sizeof(__pyx_k_eglSync), 0, 0, 1, 1}, {&__pyx_n_s_eglframe, __pyx_k_eglframe, sizeof(__pyx_k_eglframe), 0, 0, 1, 1}, {&__pyx_kp_u_elementSize, __pyx_k_elementSize, sizeof(__pyx_k_elementSize), 0, 1, 0, 0}, {&__pyx_n_s_elementSize_2, __pyx_k_elementSize_2, sizeof(__pyx_k_elementSize_2), 0, 0, 1, 1}, {&__pyx_kp_u_elementSize_ValueError, __pyx_k_elementSize_ValueError, sizeof(__pyx_k_elementSize_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_enable, __pyx_k_enable, sizeof(__pyx_k_enable), 0, 1, 0, 0}, {&__pyx_n_s_end, __pyx_k_end, sizeof(__pyx_k_end), 0, 0, 1, 1}, {&__pyx_n_s_entryFuncAddr, __pyx_k_entryFuncAddr, sizeof(__pyx_k_entryFuncAddr), 0, 0, 1, 1}, {&__pyx_n_s_enum, __pyx_k_enum, sizeof(__pyx_k_enum), 0, 0, 1, 1}, {&__pyx_n_s_enumerate, __pyx_k_enumerate, sizeof(__pyx_k_enumerate), 0, 0, 1, 1}, {&__pyx_n_s_err, __pyx_k_err, sizeof(__pyx_k_err), 0, 0, 1, 1}, {&__pyx_kp_u_errNode_out, __pyx_k_errNode_out, sizeof(__pyx_k_errNode_out), 0, 1, 0, 0}, {&__pyx_n_s_errNode_out_2, __pyx_k_errNode_out_2, sizeof(__pyx_k_errNode_out_2), 0, 0, 1, 1}, {&__pyx_kp_u_errNode_out_ValueError, __pyx_k_errNode_out_ValueError, sizeof(__pyx_k_errNode_out_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_error, __pyx_k_error, sizeof(__pyx_k_error), 0, 0, 1, 1}, {&__pyx_kp_u_errorFromNode, __pyx_k_errorFromNode, sizeof(__pyx_k_errorFromNode), 0, 1, 0, 0}, {&__pyx_n_s_errorFromNode_2, __pyx_k_errorFromNode_2, sizeof(__pyx_k_errorFromNode_2), 0, 0, 1, 1}, {&__pyx_kp_u_errorFromNode_ValueError, __pyx_k_errorFromNode_ValueError, sizeof(__pyx_k_errorFromNode_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_errorNode, __pyx_k_errorNode, sizeof(__pyx_k_errorNode), 0, 1, 0, 0}, {&__pyx_n_s_errorNode_2, __pyx_k_errorNode_2, sizeof(__pyx_k_errorNode_2), 0, 0, 1, 1}, {&__pyx_kp_u_errorNode_ValueError, __pyx_k_errorNode_ValueError, sizeof(__pyx_k_errorNode_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_event, __pyx_k_event, sizeof(__pyx_k_event), 0, 1, 0, 0}, {&__pyx_kp_u_eventRecord, __pyx_k_eventRecord, sizeof(__pyx_k_eventRecord), 0, 1, 0, 0}, {&__pyx_n_s_eventRecord_2, __pyx_k_eventRecord_2, sizeof(__pyx_k_eventRecord_2), 0, 0, 1, 1}, {&__pyx_kp_u_eventRecord_ValueError, __pyx_k_eventRecord_ValueError, sizeof(__pyx_k_eventRecord_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_eventWait, __pyx_k_eventWait, sizeof(__pyx_k_eventWait), 0, 1, 0, 0}, {&__pyx_n_s_eventWait_2, __pyx_k_eventWait_2, sizeof(__pyx_k_eventWait_2), 0, 0, 1, 1}, {&__pyx_kp_u_eventWait_ValueError, __pyx_k_eventWait_ValueError, sizeof(__pyx_k_eventWait_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_event_2, __pyx_k_event_2, sizeof(__pyx_k_event_2), 0, 0, 1, 1}, {&__pyx_kp_u_event_ValueError, __pyx_k_event_ValueError, sizeof(__pyx_k_event_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_event_out, __pyx_k_event_out, sizeof(__pyx_k_event_out), 0, 0, 1, 1}, {&__pyx_n_s_exportData, __pyx_k_exportData, sizeof(__pyx_k_exportData), 0, 0, 1, 1}, {&__pyx_n_s_extMem, __pyx_k_extMem, sizeof(__pyx_k_extMem), 0, 0, 1, 1}, {&__pyx_n_s_extMem_out, __pyx_k_extMem_out, sizeof(__pyx_k_extMem_out), 0, 0, 1, 1}, {&__pyx_n_s_extSem, __pyx_k_extSem, sizeof(__pyx_k_extSem), 0, 0, 1, 1}, {&__pyx_kp_u_extSemArray, __pyx_k_extSemArray, sizeof(__pyx_k_extSemArray), 0, 1, 0, 0}, {&__pyx_n_s_extSemArray_2, __pyx_k_extSemArray_2, sizeof(__pyx_k_extSemArray_2), 0, 0, 1, 1}, {&__pyx_kp_u_extSemArray_ValueError, __pyx_k_extSemArray_ValueError, sizeof(__pyx_k_extSemArray_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_extSemSignal, __pyx_k_extSemSignal, sizeof(__pyx_k_extSemSignal), 0, 1, 0, 0}, {&__pyx_n_s_extSemSignal_2, __pyx_k_extSemSignal_2, sizeof(__pyx_k_extSemSignal_2), 0, 0, 1, 1}, {&__pyx_kp_u_extSemSignal_ValueError, __pyx_k_extSemSignal_ValueError, sizeof(__pyx_k_extSemSignal_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_extSemWait, __pyx_k_extSemWait, sizeof(__pyx_k_extSemWait), 0, 1, 0, 0}, {&__pyx_n_s_extSemWait_2, __pyx_k_extSemWait_2, sizeof(__pyx_k_extSemWait_2), 0, 0, 1, 1}, {&__pyx_kp_u_extSemWait_ValueError, __pyx_k_extSemWait_ValueError, sizeof(__pyx_k_extSemWait_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_extSem_out, __pyx_k_extSem_out, sizeof(__pyx_k_extSem_out), 0, 0, 1, 1}, {&__pyx_kp_u_extent, __pyx_k_extent, sizeof(__pyx_k_extent), 0, 1, 0, 0}, {&__pyx_n_s_extent_2, __pyx_k_extent_2, sizeof(__pyx_k_extent_2), 0, 0, 1, 1}, {&__pyx_kp_u_extent_ValueError, __pyx_k_extent_ValueError, sizeof(__pyx_k_extent_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_extra, __pyx_k_extra, sizeof(__pyx_k_extra), 0, 1, 0, 0}, {&__pyx_n_s_extra_2, __pyx_k_extra_2, sizeof(__pyx_k_extra_2), 0, 0, 1, 1}, {&__pyx_kp_u_extra_ValueError, __pyx_k_extra_ValueError, sizeof(__pyx_k_extra_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_f, __pyx_k_f, sizeof(__pyx_k_f), 0, 1, 0, 0}, {&__pyx_n_s_f_2, __pyx_k_f_2, sizeof(__pyx_k_f_2), 0, 0, 1, 1}, {&__pyx_kp_u_f_ValueError, __pyx_k_f_ValueError, sizeof(__pyx_k_f_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_fd, __pyx_k_fd, sizeof(__pyx_k_fd), 0, 1, 0, 0}, {&__pyx_n_s_fd_2, __pyx_k_fd_2, sizeof(__pyx_k_fd_2), 0, 0, 1, 1}, {&__pyx_kp_u_fd_ValueError, __pyx_k_fd_ValueError, sizeof(__pyx_k_fd_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_fence, __pyx_k_fence, sizeof(__pyx_k_fence), 0, 1, 0, 0}, {&__pyx_n_s_fence_2, __pyx_k_fence_2, sizeof(__pyx_k_fence_2), 0, 0, 1, 1}, {&__pyx_kp_u_fence_3, __pyx_k_fence_3, sizeof(__pyx_k_fence_3), 0, 1, 0, 0}, {&__pyx_kp_u_fence_ValueError, __pyx_k_fence_ValueError, sizeof(__pyx_k_fence_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_field, __pyx_k_field, sizeof(__pyx_k_field), 0, 1, 0, 0}, {&__pyx_n_s_field_2, __pyx_k_field_2, sizeof(__pyx_k_field_2), 0, 0, 1, 1}, {&__pyx_kp_u_field_ValueError, __pyx_k_field_ValueError, sizeof(__pyx_k_field_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_filterMode, __pyx_k_filterMode, sizeof(__pyx_k_filterMode), 0, 1, 0, 0}, {&__pyx_n_s_filterMode_2, __pyx_k_filterMode_2, sizeof(__pyx_k_filterMode_2), 0, 0, 1, 1}, {&__pyx_kp_u_filterMode_ValueError, __pyx_k_filterMode_ValueError, sizeof(__pyx_k_filterMode_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_firstLayer, __pyx_k_firstLayer, sizeof(__pyx_k_firstLayer), 0, 1, 0, 0}, {&__pyx_n_s_firstLayer_2, __pyx_k_firstLayer_2, sizeof(__pyx_k_firstLayer_2), 0, 0, 1, 1}, {&__pyx_kp_u_firstLayer_ValueError, __pyx_k_firstLayer_ValueError, sizeof(__pyx_k_firstLayer_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_firstMipmapLevel, __pyx_k_firstMipmapLevel, sizeof(__pyx_k_firstMipmapLevel), 0, 1, 0, 0}, {&__pyx_n_s_firstMipmapLevel_2, __pyx_k_firstMipmapLevel_2, sizeof(__pyx_k_firstMipmapLevel_2), 0, 0, 1, 1}, {&__pyx_kp_u_firstMipmapLevel_ValueError, __pyx_k_firstMipmapLevel_ValueError, sizeof(__pyx_k_firstMipmapLevel_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_flags, __pyx_k_flags, sizeof(__pyx_k_flags), 0, 1, 0, 0}, {&__pyx_n_s_flags_2, __pyx_k_flags_2, sizeof(__pyx_k_flags_2), 0, 0, 1, 1}, {&__pyx_kp_u_flags_ValueError, __pyx_k_flags_ValueError, sizeof(__pyx_k_flags_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_fmtDesc, __pyx_k_fmtDesc, sizeof(__pyx_k_fmtDesc), 0, 0, 1, 1}, {&__pyx_kp_u_fn, __pyx_k_fn, sizeof(__pyx_k_fn), 0, 1, 0, 0}, {&__pyx_n_s_fn_2, __pyx_k_fn_2, sizeof(__pyx_k_fn_2), 0, 0, 1, 1}, {&__pyx_kp_u_fn_ValueError, __pyx_k_fn_ValueError, sizeof(__pyx_k_fn_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_format, __pyx_k_format, sizeof(__pyx_k_format), 0, 1, 0, 0}, {&__pyx_kp_u_formatDesc, __pyx_k_formatDesc, sizeof(__pyx_k_formatDesc), 0, 1, 0, 0}, {&__pyx_n_s_formatDesc_2, __pyx_k_formatDesc_2, sizeof(__pyx_k_formatDesc_2), 0, 0, 1, 1}, {&__pyx_kp_u_formatDesc_ValueError, __pyx_k_formatDesc_ValueError, sizeof(__pyx_k_formatDesc_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_format_2, __pyx_k_format_2, sizeof(__pyx_k_format_2), 0, 0, 1, 1}, {&__pyx_kp_u_format_ValueError, __pyx_k_format_ValueError, sizeof(__pyx_k_format_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_frame, __pyx_k_frame, sizeof(__pyx_k_frame), 0, 1, 0, 0}, {&__pyx_kp_u_frameType, __pyx_k_frameType, sizeof(__pyx_k_frameType), 0, 1, 0, 0}, {&__pyx_n_s_frameType_2, __pyx_k_frameType_2, sizeof(__pyx_k_frameType_2), 0, 0, 1, 1}, {&__pyx_kp_u_frameType_ValueError, __pyx_k_frameType_ValueError, sizeof(__pyx_k_frameType_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_frame_2, __pyx_k_frame_2, sizeof(__pyx_k_frame_2), 0, 0, 1, 1}, {&__pyx_kp_u_frame_ValueError, __pyx_k_frame_ValueError, sizeof(__pyx_k_frame_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_free, __pyx_k_free, sizeof(__pyx_k_free), 0, 1, 0, 0}, {&__pyx_n_s_free_2, __pyx_k_free_2, sizeof(__pyx_k_free_2), 0, 0, 1, 1}, {&__pyx_kp_u_free_ValueError, __pyx_k_free_ValueError, sizeof(__pyx_k_free_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_from, __pyx_k_from, sizeof(__pyx_k_from), 0, 0, 1, 1}, {&__pyx_kp_u_from_port, __pyx_k_from_port, sizeof(__pyx_k_from_port), 0, 1, 0, 0}, {&__pyx_n_s_from_port_2, __pyx_k_from_port_2, sizeof(__pyx_k_from_port_2), 0, 0, 1, 1}, {&__pyx_kp_u_from_port_ValueError, __pyx_k_from_port_ValueError, sizeof(__pyx_k_from_port_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_func, __pyx_k_func, sizeof(__pyx_k_func), 0, 1, 0, 0}, {&__pyx_n_s_funcPtr, __pyx_k_funcPtr, sizeof(__pyx_k_funcPtr), 0, 0, 1, 1}, {&__pyx_n_s_func_2, __pyx_k_func_2, sizeof(__pyx_k_func_2), 0, 0, 1, 1}, {&__pyx_kp_u_func_ValueError, __pyx_k_func_ValueError, sizeof(__pyx_k_func_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_gc, __pyx_k_gc, sizeof(__pyx_k_gc), 0, 1, 0, 0}, {&__pyx_n_s_genexpr, __pyx_k_genexpr, sizeof(__pyx_k_genexpr), 0, 0, 1, 1}, {&__pyx_n_s_getLocalRuntimeVersion, __pyx_k_getLocalRuntimeVersion, sizeof(__pyx_k_getLocalRuntimeVersion), 0, 0, 1, 1}, {&__pyx_n_s_getPtr, __pyx_k_getPtr, sizeof(__pyx_k_getPtr), 0, 0, 1, 1}, {&__pyx_n_s_getstate, __pyx_k_getstate, sizeof(__pyx_k_getstate), 0, 0, 1, 1}, {&__pyx_kp_u_globalL1CacheSupported, __pyx_k_globalL1CacheSupported, sizeof(__pyx_k_globalL1CacheSupported), 0, 1, 0, 0}, {&__pyx_n_s_globalL1CacheSupported_2, __pyx_k_globalL1CacheSupported_2, sizeof(__pyx_k_globalL1CacheSupported_2), 0, 0, 1, 1}, {&__pyx_kp_u_globalL1CacheSupported_ValueErro, __pyx_k_globalL1CacheSupported_ValueErro, sizeof(__pyx_k_globalL1CacheSupported_ValueErro), 0, 1, 0, 0}, {&__pyx_kp_u_gpuDirectRDMAFlushWritesOptions, __pyx_k_gpuDirectRDMAFlushWritesOptions, sizeof(__pyx_k_gpuDirectRDMAFlushWritesOptions), 0, 1, 0, 0}, {&__pyx_n_s_gpuDirectRDMAFlushWritesOptions_2, __pyx_k_gpuDirectRDMAFlushWritesOptions_2, sizeof(__pyx_k_gpuDirectRDMAFlushWritesOptions_2), 0, 0, 1, 1}, {&__pyx_kp_u_gpuDirectRDMAFlushWritesOptions_3, __pyx_k_gpuDirectRDMAFlushWritesOptions_3, sizeof(__pyx_k_gpuDirectRDMAFlushWritesOptions_3), 0, 1, 0, 0}, {&__pyx_kp_u_gpuDirectRDMASupported, __pyx_k_gpuDirectRDMASupported, sizeof(__pyx_k_gpuDirectRDMASupported), 0, 1, 0, 0}, {&__pyx_n_s_gpuDirectRDMASupported_2, __pyx_k_gpuDirectRDMASupported_2, sizeof(__pyx_k_gpuDirectRDMASupported_2), 0, 0, 1, 1}, {&__pyx_kp_u_gpuDirectRDMASupported_ValueErro, __pyx_k_gpuDirectRDMASupported_ValueErro, sizeof(__pyx_k_gpuDirectRDMASupported_ValueErro), 0, 1, 0, 0}, {&__pyx_kp_u_gpuDirectRDMAWritesOrdering, __pyx_k_gpuDirectRDMAWritesOrdering, sizeof(__pyx_k_gpuDirectRDMAWritesOrdering), 0, 1, 0, 0}, {&__pyx_n_s_gpuDirectRDMAWritesOrdering_2, __pyx_k_gpuDirectRDMAWritesOrdering_2, sizeof(__pyx_k_gpuDirectRDMAWritesOrdering_2), 0, 0, 1, 1}, {&__pyx_kp_u_gpuDirectRDMAWritesOrdering_Valu, __pyx_k_gpuDirectRDMAWritesOrdering_Valu, sizeof(__pyx_k_gpuDirectRDMAWritesOrdering_Valu), 0, 1, 0, 0}, {&__pyx_kp_u_graph, __pyx_k_graph, sizeof(__pyx_k_graph), 0, 1, 0, 0}, {&__pyx_n_s_graphExec, __pyx_k_graphExec, sizeof(__pyx_k_graphExec), 0, 0, 1, 1}, {&__pyx_n_s_graph_2, __pyx_k_graph_2, sizeof(__pyx_k_graph_2), 0, 0, 1, 1}, {&__pyx_kp_u_graph_3, __pyx_k_graph_3, sizeof(__pyx_k_graph_3), 0, 1, 0, 0}, {&__pyx_kp_u_graph_ValueError, __pyx_k_graph_ValueError, sizeof(__pyx_k_graph_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_graph_length, __pyx_k_graph_length, sizeof(__pyx_k_graph_length), 0, 0, 1, 1}, {&__pyx_n_s_graph_out, __pyx_k_graph_out, sizeof(__pyx_k_graph_out), 0, 0, 1, 1}, {&__pyx_n_s_greatestPriority, __pyx_k_greatestPriority, sizeof(__pyx_k_greatestPriority), 0, 0, 1, 1}, {&__pyx_kp_u_gridDim, __pyx_k_gridDim, sizeof(__pyx_k_gridDim), 0, 1, 0, 0}, {&__pyx_n_s_gridDim_2, __pyx_k_gridDim_2, sizeof(__pyx_k_gridDim_2), 0, 0, 1, 1}, {&__pyx_kp_u_gridDim_ValueError, __pyx_k_gridDim_ValueError, sizeof(__pyx_k_gridDim_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_h, __pyx_k_h, sizeof(__pyx_k_h), 0, 0, 1, 1}, {&__pyx_n_s_hArray, __pyx_k_hArray, sizeof(__pyx_k_hArray), 0, 0, 1, 1}, {&__pyx_n_s_hDst, __pyx_k_hDst, sizeof(__pyx_k_hDst), 0, 0, 1, 1}, {&__pyx_n_s_hGraph, __pyx_k_hGraph, sizeof(__pyx_k_hGraph), 0, 0, 1, 1}, {&__pyx_n_s_hGraphExec, __pyx_k_hGraphExec, sizeof(__pyx_k_hGraphExec), 0, 0, 1, 1}, {&__pyx_n_s_hNode, __pyx_k_hNode, sizeof(__pyx_k_hNode), 0, 0, 1, 1}, {&__pyx_n_s_hOffset, __pyx_k_hOffset, sizeof(__pyx_k_hOffset), 0, 0, 1, 1}, {&__pyx_n_s_hOffsetDst, __pyx_k_hOffsetDst, sizeof(__pyx_k_hOffsetDst), 0, 0, 1, 1}, {&__pyx_n_s_hOffsetSrc, __pyx_k_hOffsetSrc, sizeof(__pyx_k_hOffsetSrc), 0, 0, 1, 1}, {&__pyx_n_s_hSrc, __pyx_k_hSrc, sizeof(__pyx_k_hSrc), 0, 0, 1, 1}, {&__pyx_n_s_hStream, __pyx_k_hStream, sizeof(__pyx_k_hStream), 0, 0, 1, 1}, {&__pyx_kp_u_handle, __pyx_k_handle, sizeof(__pyx_k_handle), 0, 1, 0, 0}, {&__pyx_n_s_handleType, __pyx_k_handleType, sizeof(__pyx_k_handleType), 0, 0, 1, 1}, {&__pyx_kp_u_handleTypes, __pyx_k_handleTypes, sizeof(__pyx_k_handleTypes), 0, 1, 0, 0}, {&__pyx_n_s_handleTypes_2, __pyx_k_handleTypes_2, sizeof(__pyx_k_handleTypes_2), 0, 0, 1, 1}, {&__pyx_kp_u_handleTypes_ValueError, __pyx_k_handleTypes_ValueError, sizeof(__pyx_k_handleTypes_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_handle_2, __pyx_k_handle_2, sizeof(__pyx_k_handle_2), 0, 0, 1, 1}, {&__pyx_kp_u_handle_3, __pyx_k_handle_3, sizeof(__pyx_k_handle_3), 0, 1, 0, 0}, {&__pyx_kp_u_handle_ValueError, __pyx_k_handle_ValueError, sizeof(__pyx_k_handle_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_height, __pyx_k_height, sizeof(__pyx_k_height), 0, 1, 0, 0}, {&__pyx_n_s_height_2, __pyx_k_height_2, sizeof(__pyx_k_height_2), 0, 0, 1, 1}, {&__pyx_kp_u_height_ValueError, __pyx_k_height_ValueError, sizeof(__pyx_k_height_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_hex, __pyx_k_hex, sizeof(__pyx_k_hex), 0, 0, 1, 1}, {&__pyx_kp_u_hitProp, __pyx_k_hitProp, sizeof(__pyx_k_hitProp), 0, 1, 0, 0}, {&__pyx_n_s_hitProp_2, __pyx_k_hitProp_2, sizeof(__pyx_k_hitProp_2), 0, 0, 1, 1}, {&__pyx_kp_u_hitProp_ValueError, __pyx_k_hitProp_ValueError, sizeof(__pyx_k_hitProp_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_hitRatio, __pyx_k_hitRatio, sizeof(__pyx_k_hitRatio), 0, 1, 0, 0}, {&__pyx_n_s_hitRatio_2, __pyx_k_hitRatio_2, sizeof(__pyx_k_hitRatio_2), 0, 0, 1, 1}, {&__pyx_kp_u_hitRatio_ValueError, __pyx_k_hitRatio_ValueError, sizeof(__pyx_k_hitRatio_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_host, __pyx_k_host, sizeof(__pyx_k_host), 0, 1, 0, 0}, {&__pyx_kp_u_hostNativeAtomicSupported, __pyx_k_hostNativeAtomicSupported, sizeof(__pyx_k_hostNativeAtomicSupported), 0, 1, 0, 0}, {&__pyx_n_s_hostNativeAtomicSupported_2, __pyx_k_hostNativeAtomicSupported_2, sizeof(__pyx_k_hostNativeAtomicSupported_2), 0, 0, 1, 1}, {&__pyx_kp_u_hostNativeAtomicSupported_ValueE, __pyx_k_hostNativeAtomicSupported_ValueE, sizeof(__pyx_k_hostNativeAtomicSupported_ValueE), 0, 1, 0, 0}, {&__pyx_kp_u_hostPointer, __pyx_k_hostPointer, sizeof(__pyx_k_hostPointer), 0, 1, 0, 0}, {&__pyx_n_s_hostPointer_2, __pyx_k_hostPointer_2, sizeof(__pyx_k_hostPointer_2), 0, 0, 1, 1}, {&__pyx_kp_u_hostPointer_ValueError, __pyx_k_hostPointer_ValueError, sizeof(__pyx_k_hostPointer_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_hostRegisterReadOnlySupported, __pyx_k_hostRegisterReadOnlySupported, sizeof(__pyx_k_hostRegisterReadOnlySupported), 0, 1, 0, 0}, {&__pyx_n_s_hostRegisterReadOnlySupported_2, __pyx_k_hostRegisterReadOnlySupported_2, sizeof(__pyx_k_hostRegisterReadOnlySupported_2), 0, 0, 1, 1}, {&__pyx_kp_u_hostRegisterReadOnlySupported_Va, __pyx_k_hostRegisterReadOnlySupported_Va, sizeof(__pyx_k_hostRegisterReadOnlySupported_Va), 0, 1, 0, 0}, {&__pyx_kp_u_hostRegisterSupported, __pyx_k_hostRegisterSupported, sizeof(__pyx_k_hostRegisterSupported), 0, 1, 0, 0}, {&__pyx_n_s_hostRegisterSupported_2, __pyx_k_hostRegisterSupported_2, sizeof(__pyx_k_hostRegisterSupported_2), 0, 0, 1, 1}, {&__pyx_kp_u_hostRegisterSupported_ValueError, __pyx_k_hostRegisterSupported_ValueError, sizeof(__pyx_k_hostRegisterSupported_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_host_2, __pyx_k_host_2, sizeof(__pyx_k_host_2), 0, 0, 1, 1}, {&__pyx_kp_u_host_ValueError, __pyx_k_host_ValueError, sizeof(__pyx_k_host_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_id, __pyx_k_id, sizeof(__pyx_k_id), 0, 1, 0, 0}, {&__pyx_n_s_id_2, __pyx_k_id_2, sizeof(__pyx_k_id_2), 0, 0, 1, 1}, {&__pyx_kp_u_id_ValueError, __pyx_k_id_ValueError, sizeof(__pyx_k_id_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_id_out, __pyx_k_id_out, sizeof(__pyx_k_id_out), 0, 0, 1, 1}, {&__pyx_n_s_idx, __pyx_k_idx, sizeof(__pyx_k_idx), 0, 0, 1, 1}, {&__pyx_n_s_image, __pyx_k_image, sizeof(__pyx_k_image), 0, 0, 1, 1}, {&__pyx_kp_s_impl_private_CUDA_error_types, __pyx_k_impl_private_CUDA_error_types, sizeof(__pyx_k_impl_private_CUDA_error_types), 0, 0, 1, 0}, {&__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1}, {&__pyx_n_s_index, __pyx_k_index, sizeof(__pyx_k_index), 0, 0, 1, 1}, {&__pyx_kp_u_info, __pyx_k_info, sizeof(__pyx_k_info), 0, 1, 0, 0}, {&__pyx_n_s_info_2, __pyx_k_info_2, sizeof(__pyx_k_info_2), 0, 0, 1, 1}, {&__pyx_kp_u_info_ValueError, __pyx_k_info_ValueError, sizeof(__pyx_k_info_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_init_subclass, __pyx_k_init_subclass, sizeof(__pyx_k_init_subclass), 0, 0, 1, 1}, {&__pyx_n_s_init_value, __pyx_k_init_value, sizeof(__pyx_k_init_value), 0, 0, 1, 1}, {&__pyx_n_s_initialRefcount, __pyx_k_initialRefcount, sizeof(__pyx_k_initialRefcount), 0, 0, 1, 1}, {&__pyx_n_s_initializing, __pyx_k_initializing, sizeof(__pyx_k_initializing), 0, 0, 1, 1}, {&__pyx_n_s_instantiateParams, __pyx_k_instantiateParams, sizeof(__pyx_k_instantiateParams), 0, 0, 1, 1}, {&__pyx_n_s_int, __pyx_k_int, sizeof(__pyx_k_int), 0, 0, 1, 1}, {&__pyx_kp_u_integrated, __pyx_k_integrated, sizeof(__pyx_k_integrated), 0, 1, 0, 0}, {&__pyx_n_s_integrated_2, __pyx_k_integrated_2, sizeof(__pyx_k_integrated_2), 0, 0, 1, 1}, {&__pyx_kp_u_integrated_ValueError, __pyx_k_integrated_ValueError, sizeof(__pyx_k_integrated_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_ipcEventSupported, __pyx_k_ipcEventSupported, sizeof(__pyx_k_ipcEventSupported), 0, 1, 0, 0}, {&__pyx_n_s_ipcEventSupported_2, __pyx_k_ipcEventSupported_2, sizeof(__pyx_k_ipcEventSupported_2), 0, 0, 1, 1}, {&__pyx_kp_u_ipcEventSupported_ValueError, __pyx_k_ipcEventSupported_ValueError, sizeof(__pyx_k_ipcEventSupported_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_isEnabled, __pyx_k_isEnabled, sizeof(__pyx_k_isEnabled), 0, 1, 0, 0}, {&__pyx_n_s_isEnabled_2, __pyx_k_isEnabled_2, sizeof(__pyx_k_isEnabled_2), 0, 0, 1, 1}, {&__pyx_kp_u_isEnabled_ValueError, __pyx_k_isEnabled_ValueError, sizeof(__pyx_k_isEnabled_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_isMultiGpuBoard, __pyx_k_isMultiGpuBoard, sizeof(__pyx_k_isMultiGpuBoard), 0, 1, 0, 0}, {&__pyx_n_s_isMultiGpuBoard_2, __pyx_k_isMultiGpuBoard_2, sizeof(__pyx_k_isMultiGpuBoard_2), 0, 0, 1, 1}, {&__pyx_kp_u_isMultiGpuBoard_ValueError, __pyx_k_isMultiGpuBoard_ValueError, sizeof(__pyx_k_isMultiGpuBoard_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_is_coroutine, __pyx_k_is_coroutine, sizeof(__pyx_k_is_coroutine), 0, 0, 1, 1}, {&__pyx_n_s_is_getter, __pyx_k_is_getter, sizeof(__pyx_k_is_getter), 0, 0, 1, 1}, {&__pyx_kp_u_isenabled, __pyx_k_isenabled, sizeof(__pyx_k_isenabled), 0, 1, 0, 0}, {&__pyx_kp_u_kernel, __pyx_k_kernel, sizeof(__pyx_k_kernel), 0, 1, 0, 0}, {&__pyx_kp_u_kernelExecTimeoutEnabled, __pyx_k_kernelExecTimeoutEnabled, sizeof(__pyx_k_kernelExecTimeoutEnabled), 0, 1, 0, 0}, {&__pyx_n_s_kernelExecTimeoutEnabled_2, __pyx_k_kernelExecTimeoutEnabled_2, sizeof(__pyx_k_kernelExecTimeoutEnabled_2), 0, 0, 1, 1}, {&__pyx_kp_u_kernelExecTimeoutEnabled_ValueEr, __pyx_k_kernelExecTimeoutEnabled_ValueEr, sizeof(__pyx_k_kernelExecTimeoutEnabled_ValueEr), 0, 1, 0, 0}, {&__pyx_kp_u_kernelParams, __pyx_k_kernelParams, sizeof(__pyx_k_kernelParams), 0, 1, 0, 0}, {&__pyx_n_s_kernelParams_2, __pyx_k_kernelParams_2, sizeof(__pyx_k_kernelParams_2), 0, 0, 1, 1}, {&__pyx_kp_u_kernelParams_ValueError, __pyx_k_kernelParams_ValueError, sizeof(__pyx_k_kernelParams_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_kernelPtr, __pyx_k_kernelPtr, sizeof(__pyx_k_kernelPtr), 0, 0, 1, 1}, {&__pyx_n_s_kernel_2, __pyx_k_kernel_2, sizeof(__pyx_k_kernel_2), 0, 0, 1, 1}, {&__pyx_kp_u_kernel_ValueError, __pyx_k_kernel_ValueError, sizeof(__pyx_k_kernel_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_key, __pyx_k_key, sizeof(__pyx_k_key), 0, 1, 0, 0}, {&__pyx_n_s_key_2, __pyx_k_key_2, sizeof(__pyx_k_key_2), 0, 0, 1, 1}, {&__pyx_kp_u_key_ValueError, __pyx_k_key_ValueError, sizeof(__pyx_k_key_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_keyedMutex, __pyx_k_keyedMutex, sizeof(__pyx_k_keyedMutex), 0, 1, 0, 0}, {&__pyx_n_s_keyedMutex_2, __pyx_k_keyedMutex_2, sizeof(__pyx_k_keyedMutex_2), 0, 0, 1, 1}, {&__pyx_kp_u_keyedMutex_ValueError, __pyx_k_keyedMutex_ValueError, sizeof(__pyx_k_keyedMutex_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_kind, __pyx_k_kind, sizeof(__pyx_k_kind), 0, 1, 0, 0}, {&__pyx_n_s_kind_2, __pyx_k_kind_2, sizeof(__pyx_k_kind_2), 0, 0, 1, 1}, {&__pyx_kp_u_kind_ValueError, __pyx_k_kind_ValueError, sizeof(__pyx_k_kind_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_l2CacheSize, __pyx_k_l2CacheSize, sizeof(__pyx_k_l2CacheSize), 0, 1, 0, 0}, {&__pyx_n_s_l2CacheSize_2, __pyx_k_l2CacheSize_2, sizeof(__pyx_k_l2CacheSize_2), 0, 0, 1, 1}, {&__pyx_kp_u_l2CacheSize_ValueError, __pyx_k_l2CacheSize_ValueError, sizeof(__pyx_k_l2CacheSize_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_lastLayer, __pyx_k_lastLayer, sizeof(__pyx_k_lastLayer), 0, 1, 0, 0}, {&__pyx_n_s_lastLayer_2, __pyx_k_lastLayer_2, sizeof(__pyx_k_lastLayer_2), 0, 0, 1, 1}, {&__pyx_kp_u_lastLayer_ValueError, __pyx_k_lastLayer_ValueError, sizeof(__pyx_k_lastLayer_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_lastMipmapLevel, __pyx_k_lastMipmapLevel, sizeof(__pyx_k_lastMipmapLevel), 0, 1, 0, 0}, {&__pyx_n_s_lastMipmapLevel_2, __pyx_k_lastMipmapLevel_2, sizeof(__pyx_k_lastMipmapLevel_2), 0, 0, 1, 1}, {&__pyx_kp_u_lastMipmapLevel_ValueError, __pyx_k_lastMipmapLevel_ValueError, sizeof(__pyx_k_lastMipmapLevel_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_launchCompletionEvent, __pyx_k_launchCompletionEvent, sizeof(__pyx_k_launchCompletionEvent), 0, 1, 0, 0}, {&__pyx_n_s_launchCompletionEvent_2, __pyx_k_launchCompletionEvent_2, sizeof(__pyx_k_launchCompletionEvent_2), 0, 0, 1, 1}, {&__pyx_kp_u_launchCompletionEvent_ValueError, __pyx_k_launchCompletionEvent_ValueError, sizeof(__pyx_k_launchCompletionEvent_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_leastPriority, __pyx_k_leastPriority, sizeof(__pyx_k_leastPriority), 0, 0, 1, 1}, {&__pyx_n_s_length, __pyx_k_length, sizeof(__pyx_k_length), 0, 0, 1, 1}, {&__pyx_n_s_level, __pyx_k_level, sizeof(__pyx_k_level), 0, 0, 1, 1}, {&__pyx_n_s_levelArray, __pyx_k_levelArray, sizeof(__pyx_k_levelArray), 0, 0, 1, 1}, {&__pyx_n_s_libraryPropertyType, __pyx_k_libraryPropertyType, sizeof(__pyx_k_libraryPropertyType), 0, 0, 1, 1}, {&__pyx_n_s_limit, __pyx_k_limit, sizeof(__pyx_k_limit), 0, 0, 1, 1}, {&__pyx_kp_u_linear, __pyx_k_linear, sizeof(__pyx_k_linear), 0, 1, 0, 0}, {&__pyx_n_s_linear_2, __pyx_k_linear_2, sizeof(__pyx_k_linear_2), 0, 0, 1, 1}, {&__pyx_kp_u_linear_ValueError, __pyx_k_linear_ValueError, sizeof(__pyx_k_linear_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_localL1CacheSupported, __pyx_k_localL1CacheSupported, sizeof(__pyx_k_localL1CacheSupported), 0, 1, 0, 0}, {&__pyx_n_s_localL1CacheSupported_2, __pyx_k_localL1CacheSupported_2, sizeof(__pyx_k_localL1CacheSupported_2), 0, 0, 1, 1}, {&__pyx_kp_u_localL1CacheSupported_ValueError, __pyx_k_localL1CacheSupported_ValueError, sizeof(__pyx_k_localL1CacheSupported_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_localSizeBytes, __pyx_k_localSizeBytes, sizeof(__pyx_k_localSizeBytes), 0, 1, 0, 0}, {&__pyx_n_s_localSizeBytes_2, __pyx_k_localSizeBytes_2, sizeof(__pyx_k_localSizeBytes_2), 0, 0, 1, 1}, {&__pyx_kp_u_localSizeBytes_ValueError, __pyx_k_localSizeBytes_ValueError, sizeof(__pyx_k_localSizeBytes_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_location, __pyx_k_location, sizeof(__pyx_k_location), 0, 1, 0, 0}, {&__pyx_n_s_location_2, __pyx_k_location_2, sizeof(__pyx_k_location_2), 0, 0, 1, 1}, {&__pyx_kp_u_location_ValueError, __pyx_k_location_ValueError, sizeof(__pyx_k_location_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_luid, __pyx_k_luid, sizeof(__pyx_k_luid), 0, 1, 0, 0}, {&__pyx_kp_u_luidDeviceNodeMask, __pyx_k_luidDeviceNodeMask, sizeof(__pyx_k_luidDeviceNodeMask), 0, 1, 0, 0}, {&__pyx_n_s_luidDeviceNodeMask_2, __pyx_k_luidDeviceNodeMask_2, sizeof(__pyx_k_luidDeviceNodeMask_2), 0, 0, 1, 1}, {&__pyx_kp_u_luidDeviceNodeMask_ValueError, __pyx_k_luidDeviceNodeMask_ValueError, sizeof(__pyx_k_luidDeviceNodeMask_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_luid_2, __pyx_k_luid_2, sizeof(__pyx_k_luid_2), 0, 0, 1, 1}, {&__pyx_kp_u_luid_ValueError, __pyx_k_luid_ValueError, sizeof(__pyx_k_luid_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_luid_length_must_be_8_is, __pyx_k_luid_length_must_be_8_is, sizeof(__pyx_k_luid_length_must_be_8_is), 0, 1, 0, 0}, {&__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1}, {&__pyx_kp_u_major, __pyx_k_major, sizeof(__pyx_k_major), 0, 1, 0, 0}, {&__pyx_n_s_major_2, __pyx_k_major_2, sizeof(__pyx_k_major_2), 0, 0, 1, 1}, {&__pyx_kp_u_major_ValueError, __pyx_k_major_ValueError, sizeof(__pyx_k_major_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_make_cudaExtent, __pyx_k_make_cudaExtent, sizeof(__pyx_k_make_cudaExtent), 0, 0, 1, 1}, {&__pyx_n_s_make_cudaPitchedPtr, __pyx_k_make_cudaPitchedPtr, sizeof(__pyx_k_make_cudaPitchedPtr), 0, 0, 1, 1}, {&__pyx_n_s_make_cudaPos, __pyx_k_make_cudaPos, sizeof(__pyx_k_make_cudaPos), 0, 0, 1, 1}, {&__pyx_kp_u_managedMemory, __pyx_k_managedMemory, sizeof(__pyx_k_managedMemory), 0, 1, 0, 0}, {&__pyx_n_s_managedMemory_2, __pyx_k_managedMemory_2, sizeof(__pyx_k_managedMemory_2), 0, 0, 1, 1}, {&__pyx_kp_u_managedMemory_ValueError, __pyx_k_managedMemory_ValueError, sizeof(__pyx_k_managedMemory_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_maxAnisotropy, __pyx_k_maxAnisotropy, sizeof(__pyx_k_maxAnisotropy), 0, 1, 0, 0}, {&__pyx_n_s_maxAnisotropy_2, __pyx_k_maxAnisotropy_2, sizeof(__pyx_k_maxAnisotropy_2), 0, 0, 1, 1}, {&__pyx_kp_u_maxAnisotropy_ValueError, __pyx_k_maxAnisotropy_ValueError, sizeof(__pyx_k_maxAnisotropy_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_maxBlocksPerMultiProcessor, __pyx_k_maxBlocksPerMultiProcessor, sizeof(__pyx_k_maxBlocksPerMultiProcessor), 0, 1, 0, 0}, {&__pyx_n_s_maxBlocksPerMultiProcessor_2, __pyx_k_maxBlocksPerMultiProcessor_2, sizeof(__pyx_k_maxBlocksPerMultiProcessor_2), 0, 0, 1, 1}, {&__pyx_kp_u_maxBlocksPerMultiProcessor_Value, __pyx_k_maxBlocksPerMultiProcessor_Value, sizeof(__pyx_k_maxBlocksPerMultiProcessor_Value), 0, 1, 0, 0}, {&__pyx_kp_u_maxDynamicSharedSizeBytes, __pyx_k_maxDynamicSharedSizeBytes, sizeof(__pyx_k_maxDynamicSharedSizeBytes), 0, 1, 0, 0}, {&__pyx_n_s_maxDynamicSharedSizeBytes_2, __pyx_k_maxDynamicSharedSizeBytes_2, sizeof(__pyx_k_maxDynamicSharedSizeBytes_2), 0, 0, 1, 1}, {&__pyx_kp_u_maxDynamicSharedSizeBytes_ValueE, __pyx_k_maxDynamicSharedSizeBytes_ValueE, sizeof(__pyx_k_maxDynamicSharedSizeBytes_ValueE), 0, 1, 0, 0}, {&__pyx_kp_u_maxGridSize, __pyx_k_maxGridSize, sizeof(__pyx_k_maxGridSize), 0, 1, 0, 0}, {&__pyx_n_s_maxGridSize_2, __pyx_k_maxGridSize_2, sizeof(__pyx_k_maxGridSize_2), 0, 0, 1, 1}, {&__pyx_kp_u_maxGridSize_ValueError, __pyx_k_maxGridSize_ValueError, sizeof(__pyx_k_maxGridSize_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_maxMipmapLevelClamp, __pyx_k_maxMipmapLevelClamp, sizeof(__pyx_k_maxMipmapLevelClamp), 0, 1, 0, 0}, {&__pyx_n_s_maxMipmapLevelClamp_2, __pyx_k_maxMipmapLevelClamp_2, sizeof(__pyx_k_maxMipmapLevelClamp_2), 0, 0, 1, 1}, {&__pyx_kp_u_maxMipmapLevelClamp_ValueError, __pyx_k_maxMipmapLevelClamp_ValueError, sizeof(__pyx_k_maxMipmapLevelClamp_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_maxSize, __pyx_k_maxSize, sizeof(__pyx_k_maxSize), 0, 1, 0, 0}, {&__pyx_n_s_maxSize_2, __pyx_k_maxSize_2, sizeof(__pyx_k_maxSize_2), 0, 0, 1, 1}, {&__pyx_kp_u_maxSize_ValueError, __pyx_k_maxSize_ValueError, sizeof(__pyx_k_maxSize_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_maxSurface1D, __pyx_k_maxSurface1D, sizeof(__pyx_k_maxSurface1D), 0, 1, 0, 0}, {&__pyx_kp_u_maxSurface1DLayered, __pyx_k_maxSurface1DLayered, sizeof(__pyx_k_maxSurface1DLayered), 0, 1, 0, 0}, {&__pyx_n_s_maxSurface1DLayered_2, __pyx_k_maxSurface1DLayered_2, sizeof(__pyx_k_maxSurface1DLayered_2), 0, 0, 1, 1}, {&__pyx_kp_u_maxSurface1DLayered_ValueError, __pyx_k_maxSurface1DLayered_ValueError, sizeof(__pyx_k_maxSurface1DLayered_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_maxSurface1D_2, __pyx_k_maxSurface1D_2, sizeof(__pyx_k_maxSurface1D_2), 0, 0, 1, 1}, {&__pyx_kp_u_maxSurface1D_ValueError, __pyx_k_maxSurface1D_ValueError, sizeof(__pyx_k_maxSurface1D_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_maxSurface2D, __pyx_k_maxSurface2D, sizeof(__pyx_k_maxSurface2D), 0, 1, 0, 0}, {&__pyx_kp_u_maxSurface2DLayered, __pyx_k_maxSurface2DLayered, sizeof(__pyx_k_maxSurface2DLayered), 0, 1, 0, 0}, {&__pyx_n_s_maxSurface2DLayered_2, __pyx_k_maxSurface2DLayered_2, sizeof(__pyx_k_maxSurface2DLayered_2), 0, 0, 1, 1}, {&__pyx_kp_u_maxSurface2DLayered_ValueError, __pyx_k_maxSurface2DLayered_ValueError, sizeof(__pyx_k_maxSurface2DLayered_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_maxSurface2D_2, __pyx_k_maxSurface2D_2, sizeof(__pyx_k_maxSurface2D_2), 0, 0, 1, 1}, {&__pyx_kp_u_maxSurface2D_ValueError, __pyx_k_maxSurface2D_ValueError, sizeof(__pyx_k_maxSurface2D_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_maxSurface3D, __pyx_k_maxSurface3D, sizeof(__pyx_k_maxSurface3D), 0, 1, 0, 0}, {&__pyx_n_s_maxSurface3D_2, __pyx_k_maxSurface3D_2, sizeof(__pyx_k_maxSurface3D_2), 0, 0, 1, 1}, {&__pyx_kp_u_maxSurface3D_ValueError, __pyx_k_maxSurface3D_ValueError, sizeof(__pyx_k_maxSurface3D_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_maxSurfaceCubemap, __pyx_k_maxSurfaceCubemap, sizeof(__pyx_k_maxSurfaceCubemap), 0, 1, 0, 0}, {&__pyx_kp_u_maxSurfaceCubemapLayered, __pyx_k_maxSurfaceCubemapLayered, sizeof(__pyx_k_maxSurfaceCubemapLayered), 0, 1, 0, 0}, {&__pyx_n_s_maxSurfaceCubemapLayered_2, __pyx_k_maxSurfaceCubemapLayered_2, sizeof(__pyx_k_maxSurfaceCubemapLayered_2), 0, 0, 1, 1}, {&__pyx_kp_u_maxSurfaceCubemapLayered_ValueEr, __pyx_k_maxSurfaceCubemapLayered_ValueEr, sizeof(__pyx_k_maxSurfaceCubemapLayered_ValueEr), 0, 1, 0, 0}, {&__pyx_n_s_maxSurfaceCubemap_2, __pyx_k_maxSurfaceCubemap_2, sizeof(__pyx_k_maxSurfaceCubemap_2), 0, 0, 1, 1}, {&__pyx_kp_u_maxSurfaceCubemap_ValueError, __pyx_k_maxSurfaceCubemap_ValueError, sizeof(__pyx_k_maxSurfaceCubemap_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_maxTexture1D, __pyx_k_maxTexture1D, sizeof(__pyx_k_maxTexture1D), 0, 1, 0, 0}, {&__pyx_kp_u_maxTexture1DLayered, __pyx_k_maxTexture1DLayered, sizeof(__pyx_k_maxTexture1DLayered), 0, 1, 0, 0}, {&__pyx_n_s_maxTexture1DLayered_2, __pyx_k_maxTexture1DLayered_2, sizeof(__pyx_k_maxTexture1DLayered_2), 0, 0, 1, 1}, {&__pyx_kp_u_maxTexture1DLayered_ValueError, __pyx_k_maxTexture1DLayered_ValueError, sizeof(__pyx_k_maxTexture1DLayered_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_maxTexture1DLinear, __pyx_k_maxTexture1DLinear, sizeof(__pyx_k_maxTexture1DLinear), 0, 1, 0, 0}, {&__pyx_n_s_maxTexture1DLinear_2, __pyx_k_maxTexture1DLinear_2, sizeof(__pyx_k_maxTexture1DLinear_2), 0, 0, 1, 1}, {&__pyx_kp_u_maxTexture1DLinear_ValueError, __pyx_k_maxTexture1DLinear_ValueError, sizeof(__pyx_k_maxTexture1DLinear_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_maxTexture1DMipmap, __pyx_k_maxTexture1DMipmap, sizeof(__pyx_k_maxTexture1DMipmap), 0, 1, 0, 0}, {&__pyx_n_s_maxTexture1DMipmap_2, __pyx_k_maxTexture1DMipmap_2, sizeof(__pyx_k_maxTexture1DMipmap_2), 0, 0, 1, 1}, {&__pyx_kp_u_maxTexture1DMipmap_ValueError, __pyx_k_maxTexture1DMipmap_ValueError, sizeof(__pyx_k_maxTexture1DMipmap_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_maxTexture1D_2, __pyx_k_maxTexture1D_2, sizeof(__pyx_k_maxTexture1D_2), 0, 0, 1, 1}, {&__pyx_kp_u_maxTexture1D_ValueError, __pyx_k_maxTexture1D_ValueError, sizeof(__pyx_k_maxTexture1D_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_maxTexture2D, __pyx_k_maxTexture2D, sizeof(__pyx_k_maxTexture2D), 0, 1, 0, 0}, {&__pyx_kp_u_maxTexture2DGather, __pyx_k_maxTexture2DGather, sizeof(__pyx_k_maxTexture2DGather), 0, 1, 0, 0}, {&__pyx_n_s_maxTexture2DGather_2, __pyx_k_maxTexture2DGather_2, sizeof(__pyx_k_maxTexture2DGather_2), 0, 0, 1, 1}, {&__pyx_kp_u_maxTexture2DGather_ValueError, __pyx_k_maxTexture2DGather_ValueError, sizeof(__pyx_k_maxTexture2DGather_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_maxTexture2DLayered, __pyx_k_maxTexture2DLayered, sizeof(__pyx_k_maxTexture2DLayered), 0, 1, 0, 0}, {&__pyx_n_s_maxTexture2DLayered_2, __pyx_k_maxTexture2DLayered_2, sizeof(__pyx_k_maxTexture2DLayered_2), 0, 0, 1, 1}, {&__pyx_kp_u_maxTexture2DLayered_ValueError, __pyx_k_maxTexture2DLayered_ValueError, sizeof(__pyx_k_maxTexture2DLayered_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_maxTexture2DLinear, __pyx_k_maxTexture2DLinear, sizeof(__pyx_k_maxTexture2DLinear), 0, 1, 0, 0}, {&__pyx_n_s_maxTexture2DLinear_2, __pyx_k_maxTexture2DLinear_2, sizeof(__pyx_k_maxTexture2DLinear_2), 0, 0, 1, 1}, {&__pyx_kp_u_maxTexture2DLinear_ValueError, __pyx_k_maxTexture2DLinear_ValueError, sizeof(__pyx_k_maxTexture2DLinear_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_maxTexture2DMipmap, __pyx_k_maxTexture2DMipmap, sizeof(__pyx_k_maxTexture2DMipmap), 0, 1, 0, 0}, {&__pyx_n_s_maxTexture2DMipmap_2, __pyx_k_maxTexture2DMipmap_2, sizeof(__pyx_k_maxTexture2DMipmap_2), 0, 0, 1, 1}, {&__pyx_kp_u_maxTexture2DMipmap_ValueError, __pyx_k_maxTexture2DMipmap_ValueError, sizeof(__pyx_k_maxTexture2DMipmap_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_maxTexture2D_2, __pyx_k_maxTexture2D_2, sizeof(__pyx_k_maxTexture2D_2), 0, 0, 1, 1}, {&__pyx_kp_u_maxTexture2D_ValueError, __pyx_k_maxTexture2D_ValueError, sizeof(__pyx_k_maxTexture2D_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_maxTexture3D, __pyx_k_maxTexture3D, sizeof(__pyx_k_maxTexture3D), 0, 1, 0, 0}, {&__pyx_kp_u_maxTexture3DAlt, __pyx_k_maxTexture3DAlt, sizeof(__pyx_k_maxTexture3DAlt), 0, 1, 0, 0}, {&__pyx_n_s_maxTexture3DAlt_2, __pyx_k_maxTexture3DAlt_2, sizeof(__pyx_k_maxTexture3DAlt_2), 0, 0, 1, 1}, {&__pyx_kp_u_maxTexture3DAlt_ValueError, __pyx_k_maxTexture3DAlt_ValueError, sizeof(__pyx_k_maxTexture3DAlt_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_maxTexture3D_2, __pyx_k_maxTexture3D_2, sizeof(__pyx_k_maxTexture3D_2), 0, 0, 1, 1}, {&__pyx_kp_u_maxTexture3D_ValueError, __pyx_k_maxTexture3D_ValueError, sizeof(__pyx_k_maxTexture3D_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_maxTextureCubemap, __pyx_k_maxTextureCubemap, sizeof(__pyx_k_maxTextureCubemap), 0, 1, 0, 0}, {&__pyx_kp_u_maxTextureCubemapLayered, __pyx_k_maxTextureCubemapLayered, sizeof(__pyx_k_maxTextureCubemapLayered), 0, 1, 0, 0}, {&__pyx_n_s_maxTextureCubemapLayered_2, __pyx_k_maxTextureCubemapLayered_2, sizeof(__pyx_k_maxTextureCubemapLayered_2), 0, 0, 1, 1}, {&__pyx_kp_u_maxTextureCubemapLayered_ValueEr, __pyx_k_maxTextureCubemapLayered_ValueEr, sizeof(__pyx_k_maxTextureCubemapLayered_ValueEr), 0, 1, 0, 0}, {&__pyx_n_s_maxTextureCubemap_2, __pyx_k_maxTextureCubemap_2, sizeof(__pyx_k_maxTextureCubemap_2), 0, 0, 1, 1}, {&__pyx_kp_u_maxTextureCubemap_ValueError, __pyx_k_maxTextureCubemap_ValueError, sizeof(__pyx_k_maxTextureCubemap_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_maxThreadsDim, __pyx_k_maxThreadsDim, sizeof(__pyx_k_maxThreadsDim), 0, 1, 0, 0}, {&__pyx_n_s_maxThreadsDim_2, __pyx_k_maxThreadsDim_2, sizeof(__pyx_k_maxThreadsDim_2), 0, 0, 1, 1}, {&__pyx_kp_u_maxThreadsDim_ValueError, __pyx_k_maxThreadsDim_ValueError, sizeof(__pyx_k_maxThreadsDim_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_maxThreadsPerBlock, __pyx_k_maxThreadsPerBlock, sizeof(__pyx_k_maxThreadsPerBlock), 0, 1, 0, 0}, {&__pyx_n_s_maxThreadsPerBlock_2, __pyx_k_maxThreadsPerBlock_2, sizeof(__pyx_k_maxThreadsPerBlock_2), 0, 0, 1, 1}, {&__pyx_kp_u_maxThreadsPerBlock_ValueError, __pyx_k_maxThreadsPerBlock_ValueError, sizeof(__pyx_k_maxThreadsPerBlock_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_maxThreadsPerMultiProcessor, __pyx_k_maxThreadsPerMultiProcessor, sizeof(__pyx_k_maxThreadsPerMultiProcessor), 0, 1, 0, 0}, {&__pyx_n_s_maxThreadsPerMultiProcessor_2, __pyx_k_maxThreadsPerMultiProcessor_2, sizeof(__pyx_k_maxThreadsPerMultiProcessor_2), 0, 0, 1, 1}, {&__pyx_kp_u_maxThreadsPerMultiProcessor_Valu, __pyx_k_maxThreadsPerMultiProcessor_Valu, sizeof(__pyx_k_maxThreadsPerMultiProcessor_Valu), 0, 1, 0, 0}, {&__pyx_n_s_maxWidthInElements, __pyx_k_maxWidthInElements, sizeof(__pyx_k_maxWidthInElements), 0, 0, 1, 1}, {&__pyx_n_s_memHandleDesc, __pyx_k_memHandleDesc, sizeof(__pyx_k_memHandleDesc), 0, 0, 1, 1}, {&__pyx_kp_u_memPitch, __pyx_k_memPitch, sizeof(__pyx_k_memPitch), 0, 1, 0, 0}, {&__pyx_n_s_memPitch_2, __pyx_k_memPitch_2, sizeof(__pyx_k_memPitch_2), 0, 0, 1, 1}, {&__pyx_kp_u_memPitch_ValueError, __pyx_k_memPitch_ValueError, sizeof(__pyx_k_memPitch_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_memPool, __pyx_k_memPool, sizeof(__pyx_k_memPool), 0, 0, 1, 1}, {&__pyx_kp_u_memSyncDomain, __pyx_k_memSyncDomain, sizeof(__pyx_k_memSyncDomain), 0, 1, 0, 0}, {&__pyx_kp_u_memSyncDomainMap, __pyx_k_memSyncDomainMap, sizeof(__pyx_k_memSyncDomainMap), 0, 1, 0, 0}, {&__pyx_n_s_memSyncDomainMap_2, __pyx_k_memSyncDomainMap_2, sizeof(__pyx_k_memSyncDomainMap_2), 0, 0, 1, 1}, {&__pyx_kp_u_memSyncDomainMap_ValueError, __pyx_k_memSyncDomainMap_ValueError, sizeof(__pyx_k_memSyncDomainMap_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_memSyncDomain_2, __pyx_k_memSyncDomain_2, sizeof(__pyx_k_memSyncDomain_2), 0, 0, 1, 1}, {&__pyx_kp_u_memSyncDomain_ValueError, __pyx_k_memSyncDomain_ValueError, sizeof(__pyx_k_memSyncDomain_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_memcpy, __pyx_k_memcpy, sizeof(__pyx_k_memcpy), 0, 1, 0, 0}, {&__pyx_n_s_memcpy_2, __pyx_k_memcpy_2, sizeof(__pyx_k_memcpy_2), 0, 0, 1, 1}, {&__pyx_kp_u_memcpy_ValueError, __pyx_k_memcpy_ValueError, sizeof(__pyx_k_memcpy_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_memoryBusWidth, __pyx_k_memoryBusWidth, sizeof(__pyx_k_memoryBusWidth), 0, 1, 0, 0}, {&__pyx_n_s_memoryBusWidth_2, __pyx_k_memoryBusWidth_2, sizeof(__pyx_k_memoryBusWidth_2), 0, 0, 1, 1}, {&__pyx_kp_u_memoryBusWidth_ValueError, __pyx_k_memoryBusWidth_ValueError, sizeof(__pyx_k_memoryBusWidth_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_memoryClockRate, __pyx_k_memoryClockRate, sizeof(__pyx_k_memoryClockRate), 0, 1, 0, 0}, {&__pyx_n_s_memoryClockRate_2, __pyx_k_memoryClockRate_2, sizeof(__pyx_k_memoryClockRate_2), 0, 0, 1, 1}, {&__pyx_kp_u_memoryClockRate_ValueError, __pyx_k_memoryClockRate_ValueError, sizeof(__pyx_k_memoryClockRate_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_memoryPoolSupportedHandleTypes, __pyx_k_memoryPoolSupportedHandleTypes, sizeof(__pyx_k_memoryPoolSupportedHandleTypes), 0, 1, 0, 0}, {&__pyx_n_s_memoryPoolSupportedHandleTypes_2, __pyx_k_memoryPoolSupportedHandleTypes_2, sizeof(__pyx_k_memoryPoolSupportedHandleTypes_2), 0, 0, 1, 1}, {&__pyx_kp_u_memoryPoolSupportedHandleTypes_V, __pyx_k_memoryPoolSupportedHandleTypes_V, sizeof(__pyx_k_memoryPoolSupportedHandleTypes_V), 0, 1, 0, 0}, {&__pyx_kp_u_memoryPoolsSupported, __pyx_k_memoryPoolsSupported, sizeof(__pyx_k_memoryPoolsSupported), 0, 1, 0, 0}, {&__pyx_n_s_memoryPoolsSupported_2, __pyx_k_memoryPoolsSupported_2, sizeof(__pyx_k_memoryPoolsSupported_2), 0, 0, 1, 1}, {&__pyx_kp_u_memoryPoolsSupported_ValueError, __pyx_k_memoryPoolsSupported_ValueError, sizeof(__pyx_k_memoryPoolsSupported_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_memoryRequirements, __pyx_k_memoryRequirements, sizeof(__pyx_k_memoryRequirements), 0, 0, 1, 1}, {&__pyx_kp_u_memset, __pyx_k_memset, sizeof(__pyx_k_memset), 0, 1, 0, 0}, {&__pyx_n_s_memset_2, __pyx_k_memset_2, sizeof(__pyx_k_memset_2), 0, 0, 1, 1}, {&__pyx_kp_u_memset_ValueError, __pyx_k_memset_ValueError, sizeof(__pyx_k_memset_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_metaclass, __pyx_k_metaclass, sizeof(__pyx_k_metaclass), 0, 0, 1, 1}, {&__pyx_n_s_minBytesToKeep, __pyx_k_minBytesToKeep, sizeof(__pyx_k_minBytesToKeep), 0, 0, 1, 1}, {&__pyx_kp_u_minMipmapLevelClamp, __pyx_k_minMipmapLevelClamp, sizeof(__pyx_k_minMipmapLevelClamp), 0, 1, 0, 0}, {&__pyx_n_s_minMipmapLevelClamp_2, __pyx_k_minMipmapLevelClamp_2, sizeof(__pyx_k_minMipmapLevelClamp_2), 0, 0, 1, 1}, {&__pyx_kp_u_minMipmapLevelClamp_ValueError, __pyx_k_minMipmapLevelClamp_ValueError, sizeof(__pyx_k_minMipmapLevelClamp_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_minor, __pyx_k_minor, sizeof(__pyx_k_minor), 0, 1, 0, 0}, {&__pyx_n_s_minor_2, __pyx_k_minor_2, sizeof(__pyx_k_minor_2), 0, 0, 1, 1}, {&__pyx_kp_u_minor_ValueError, __pyx_k_minor_ValueError, sizeof(__pyx_k_minor_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_mipLevel, __pyx_k_mipLevel, sizeof(__pyx_k_mipLevel), 0, 0, 1, 1}, {&__pyx_kp_u_mipmap, __pyx_k_mipmap, sizeof(__pyx_k_mipmap), 0, 1, 0, 0}, {&__pyx_n_s_mipmapDesc, __pyx_k_mipmapDesc, sizeof(__pyx_k_mipmapDesc), 0, 0, 1, 1}, {&__pyx_kp_u_mipmapFilterMode, __pyx_k_mipmapFilterMode, sizeof(__pyx_k_mipmapFilterMode), 0, 1, 0, 0}, {&__pyx_n_s_mipmapFilterMode_2, __pyx_k_mipmapFilterMode_2, sizeof(__pyx_k_mipmapFilterMode_2), 0, 0, 1, 1}, {&__pyx_kp_u_mipmapFilterMode_ValueError, __pyx_k_mipmapFilterMode_ValueError, sizeof(__pyx_k_mipmapFilterMode_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_mipmapLevelBias, __pyx_k_mipmapLevelBias, sizeof(__pyx_k_mipmapLevelBias), 0, 1, 0, 0}, {&__pyx_n_s_mipmapLevelBias_2, __pyx_k_mipmapLevelBias_2, sizeof(__pyx_k_mipmapLevelBias_2), 0, 0, 1, 1}, {&__pyx_kp_u_mipmapLevelBias_ValueError, __pyx_k_mipmapLevelBias_ValueError, sizeof(__pyx_k_mipmapLevelBias_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_mipmap_2, __pyx_k_mipmap_2, sizeof(__pyx_k_mipmap_2), 0, 0, 1, 1}, {&__pyx_kp_u_mipmap_3, __pyx_k_mipmap_3, sizeof(__pyx_k_mipmap_3), 0, 1, 0, 0}, {&__pyx_kp_u_mipmap_ValueError, __pyx_k_mipmap_ValueError, sizeof(__pyx_k_mipmap_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_mipmappedArray, __pyx_k_mipmappedArray, sizeof(__pyx_k_mipmappedArray), 0, 0, 1, 1}, {&__pyx_kp_u_miptailFirstLevel, __pyx_k_miptailFirstLevel, sizeof(__pyx_k_miptailFirstLevel), 0, 1, 0, 0}, {&__pyx_n_s_miptailFirstLevel_2, __pyx_k_miptailFirstLevel_2, sizeof(__pyx_k_miptailFirstLevel_2), 0, 0, 1, 1}, {&__pyx_kp_u_miptailFirstLevel_ValueError, __pyx_k_miptailFirstLevel_ValueError, sizeof(__pyx_k_miptailFirstLevel_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_miptailSize, __pyx_k_miptailSize, sizeof(__pyx_k_miptailSize), 0, 1, 0, 0}, {&__pyx_n_s_miptailSize_2, __pyx_k_miptailSize_2, sizeof(__pyx_k_miptailSize_2), 0, 0, 1, 1}, {&__pyx_kp_u_miptailSize_ValueError, __pyx_k_miptailSize_ValueError, sizeof(__pyx_k_miptailSize_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_missProp, __pyx_k_missProp, sizeof(__pyx_k_missProp), 0, 1, 0, 0}, {&__pyx_n_s_missProp_2, __pyx_k_missProp_2, sizeof(__pyx_k_missProp_2), 0, 0, 1, 1}, {&__pyx_kp_u_missProp_ValueError, __pyx_k_missProp_ValueError, sizeof(__pyx_k_missProp_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_mode, __pyx_k_mode, sizeof(__pyx_k_mode), 0, 0, 1, 1}, {&__pyx_n_s_module, __pyx_k_module, sizeof(__pyx_k_module), 0, 0, 1, 1}, {&__pyx_n_s_mro_entries, __pyx_k_mro_entries, sizeof(__pyx_k_mro_entries), 0, 0, 1, 1}, {&__pyx_n_s_ms, __pyx_k_ms, sizeof(__pyx_k_ms), 0, 0, 1, 1}, {&__pyx_kp_u_multiGpuBoardGroupID, __pyx_k_multiGpuBoardGroupID, sizeof(__pyx_k_multiGpuBoardGroupID), 0, 1, 0, 0}, {&__pyx_n_s_multiGpuBoardGroupID_2, __pyx_k_multiGpuBoardGroupID_2, sizeof(__pyx_k_multiGpuBoardGroupID_2), 0, 0, 1, 1}, {&__pyx_kp_u_multiGpuBoardGroupID_ValueError, __pyx_k_multiGpuBoardGroupID_ValueError, sizeof(__pyx_k_multiGpuBoardGroupID_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_multiProcessorCount, __pyx_k_multiProcessorCount, sizeof(__pyx_k_multiProcessorCount), 0, 1, 0, 0}, {&__pyx_n_s_multiProcessorCount_2, __pyx_k_multiProcessorCount_2, sizeof(__pyx_k_multiProcessorCount_2), 0, 0, 1, 1}, {&__pyx_kp_u_multiProcessorCount_ValueError, __pyx_k_multiProcessorCount_ValueError, sizeof(__pyx_k_multiProcessorCount_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_name, __pyx_k_name, sizeof(__pyx_k_name), 0, 1, 0, 0}, {&__pyx_n_s_name_2, __pyx_k_name_2, sizeof(__pyx_k_name_2), 0, 0, 1, 1}, {&__pyx_n_s_name_3, __pyx_k_name_3, sizeof(__pyx_k_name_3), 0, 0, 1, 1}, {&__pyx_kp_u_name_ValueError, __pyx_k_name_ValueError, sizeof(__pyx_k_name_ValueError), 0, 1, 0, 0}, {&__pyx_kp_s_no_default___reduce___due_to_non, __pyx_k_no_default___reduce___due_to_non, sizeof(__pyx_k_no_default___reduce___due_to_non), 0, 0, 1, 0}, {&__pyx_kp_u_node, __pyx_k_node, sizeof(__pyx_k_node), 0, 1, 0, 0}, {&__pyx_n_s_nodeParams, __pyx_k_nodeParams, sizeof(__pyx_k_nodeParams), 0, 0, 1, 1}, {&__pyx_n_s_node_2, __pyx_k_node_2, sizeof(__pyx_k_node_2), 0, 0, 1, 1}, {&__pyx_kp_u_node_ValueError, __pyx_k_node_ValueError, sizeof(__pyx_k_node_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_nonPortableClusterSizeAllowed, __pyx_k_nonPortableClusterSizeAllowed, sizeof(__pyx_k_nonPortableClusterSizeAllowed), 0, 1, 0, 0}, {&__pyx_n_s_nonPortableClusterSizeAllowed_2, __pyx_k_nonPortableClusterSizeAllowed_2, sizeof(__pyx_k_nonPortableClusterSizeAllowed_2), 0, 0, 1, 1}, {&__pyx_kp_u_nonPortableClusterSizeAllowed_Va, __pyx_k_nonPortableClusterSizeAllowed_Va, sizeof(__pyx_k_nonPortableClusterSizeAllowed_Va), 0, 1, 0, 0}, {&__pyx_kp_u_normalizedCoords, __pyx_k_normalizedCoords, sizeof(__pyx_k_normalizedCoords), 0, 1, 0, 0}, {&__pyx_n_s_normalizedCoords_2, __pyx_k_normalizedCoords_2, sizeof(__pyx_k_normalizedCoords_2), 0, 0, 1, 1}, {&__pyx_kp_u_normalizedCoords_ValueError, __pyx_k_normalizedCoords_ValueError, sizeof(__pyx_k_normalizedCoords_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_not_enough_values_found_during_a, __pyx_k_not_enough_values_found_during_a, sizeof(__pyx_k_not_enough_values_found_during_a), 0, 1, 0, 0}, {&__pyx_n_s_numAttributes, __pyx_k_numAttributes, sizeof(__pyx_k_numAttributes), 0, 0, 1, 1}, {&__pyx_n_s_numBlocks, __pyx_k_numBlocks, sizeof(__pyx_k_numBlocks), 0, 0, 1, 1}, {&__pyx_kp_u_numChannels, __pyx_k_numChannels, sizeof(__pyx_k_numChannels), 0, 1, 0, 0}, {&__pyx_n_s_numChannels_2, __pyx_k_numChannels_2, sizeof(__pyx_k_numChannels_2), 0, 0, 1, 1}, {&__pyx_kp_u_numChannels_ValueError, __pyx_k_numChannels_ValueError, sizeof(__pyx_k_numChannels_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_numDependencies, __pyx_k_numDependencies, sizeof(__pyx_k_numDependencies), 0, 0, 1, 1}, {&__pyx_n_s_numDependencies_out, __pyx_k_numDependencies_out, sizeof(__pyx_k_numDependencies_out), 0, 0, 1, 1}, {&__pyx_n_s_numEdges, __pyx_k_numEdges, sizeof(__pyx_k_numEdges), 0, 0, 1, 1}, {&__pyx_kp_u_numExtSems, __pyx_k_numExtSems, sizeof(__pyx_k_numExtSems), 0, 1, 0, 0}, {&__pyx_n_s_numExtSems_2, __pyx_k_numExtSems_2, sizeof(__pyx_k_numExtSems_2), 0, 0, 1, 1}, {&__pyx_kp_u_numExtSems_ValueError, __pyx_k_numExtSems_ValueError, sizeof(__pyx_k_numExtSems_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_numLevels, __pyx_k_numLevels, sizeof(__pyx_k_numLevels), 0, 1, 0, 0}, {&__pyx_n_s_numLevels_2, __pyx_k_numLevels_2, sizeof(__pyx_k_numLevels_2), 0, 0, 1, 1}, {&__pyx_kp_u_numLevels_ValueError, __pyx_k_numLevels_ValueError, sizeof(__pyx_k_numLevels_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_numNodes, __pyx_k_numNodes, sizeof(__pyx_k_numNodes), 0, 0, 1, 1}, {&__pyx_kp_u_numRegs, __pyx_k_numRegs, sizeof(__pyx_k_numRegs), 0, 1, 0, 0}, {&__pyx_n_s_numRegs_2, __pyx_k_numRegs_2, sizeof(__pyx_k_numRegs_2), 0, 0, 1, 1}, {&__pyx_kp_u_numRegs_ValueError, __pyx_k_numRegs_ValueError, sizeof(__pyx_k_numRegs_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_num_bytes, __pyx_k_num_bytes, sizeof(__pyx_k_num_bytes), 0, 1, 0, 0}, {&__pyx_n_s_num_bytes_2, __pyx_k_num_bytes_2, sizeof(__pyx_k_num_bytes_2), 0, 0, 1, 1}, {&__pyx_kp_u_num_bytes_ValueError, __pyx_k_num_bytes_ValueError, sizeof(__pyx_k_num_bytes_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_nvSciBufObject, __pyx_k_nvSciBufObject, sizeof(__pyx_k_nvSciBufObject), 0, 1, 0, 0}, {&__pyx_n_s_nvSciBufObject_2, __pyx_k_nvSciBufObject_2, sizeof(__pyx_k_nvSciBufObject_2), 0, 0, 1, 1}, {&__pyx_kp_u_nvSciBufObject_ValueError, __pyx_k_nvSciBufObject_ValueError, sizeof(__pyx_k_nvSciBufObject_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_nvSciSync, __pyx_k_nvSciSync, sizeof(__pyx_k_nvSciSync), 0, 1, 0, 0}, {&__pyx_n_s_nvSciSyncAttrList, __pyx_k_nvSciSyncAttrList, sizeof(__pyx_k_nvSciSyncAttrList), 0, 0, 1, 1}, {&__pyx_kp_u_nvSciSyncObj, __pyx_k_nvSciSyncObj, sizeof(__pyx_k_nvSciSyncObj), 0, 1, 0, 0}, {&__pyx_n_s_nvSciSyncObj_2, __pyx_k_nvSciSyncObj_2, sizeof(__pyx_k_nvSciSyncObj_2), 0, 0, 1, 1}, {&__pyx_kp_u_nvSciSyncObj_ValueError, __pyx_k_nvSciSyncObj_ValueError, sizeof(__pyx_k_nvSciSyncObj_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_nvSciSync_2, __pyx_k_nvSciSync_2, sizeof(__pyx_k_nvSciSync_2), 0, 0, 1, 1}, {&__pyx_kp_u_nvSciSync_ValueError, __pyx_k_nvSciSync_ValueError, sizeof(__pyx_k_nvSciSync_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_obj, __pyx_k_obj, sizeof(__pyx_k_obj), 0, 0, 1, 1}, {&__pyx_n_s_objType, __pyx_k_objType, sizeof(__pyx_k_objType), 0, 0, 1, 1}, {&__pyx_n_s_object, __pyx_k_object, sizeof(__pyx_k_object), 0, 0, 1, 1}, {&__pyx_n_s_object_out, __pyx_k_object_out, sizeof(__pyx_k_object_out), 0, 0, 1, 1}, {&__pyx_kp_u_offset, __pyx_k_offset, sizeof(__pyx_k_offset), 0, 1, 0, 0}, {&__pyx_n_s_offset_2, __pyx_k_offset_2, sizeof(__pyx_k_offset_2), 0, 0, 1, 1}, {&__pyx_kp_u_offset_ValueError, __pyx_k_offset_ValueError, sizeof(__pyx_k_offset_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_originalGraph, __pyx_k_originalGraph, sizeof(__pyx_k_originalGraph), 0, 0, 1, 1}, {&__pyx_n_s_originalNode, __pyx_k_originalNode, sizeof(__pyx_k_originalNode), 0, 0, 1, 1}, {&__pyx_kp_u_overBudget, __pyx_k_overBudget, sizeof(__pyx_k_overBudget), 0, 1, 0, 0}, {&__pyx_n_s_overBudget_2, __pyx_k_overBudget_2, sizeof(__pyx_k_overBudget_2), 0, 0, 1, 1}, {&__pyx_kp_u_overBudget_ValueError, __pyx_k_overBudget_ValueError, sizeof(__pyx_k_overBudget_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_p, __pyx_k_p, sizeof(__pyx_k_p), 0, 0, 1, 1}, {&__pyx_kp_u_pArray, __pyx_k_pArray, sizeof(__pyx_k_pArray), 0, 1, 0, 0}, {&__pyx_n_s_pArray_2, __pyx_k_pArray_2, sizeof(__pyx_k_pArray_2), 0, 0, 1, 1}, {&__pyx_kp_u_pArray_ValueError, __pyx_k_pArray_ValueError, sizeof(__pyx_k_pArray_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_pCacheConfig, __pyx_k_pCacheConfig, sizeof(__pyx_k_pCacheConfig), 0, 0, 1, 1}, {&__pyx_n_s_pCaptureStatus, __pyx_k_pCaptureStatus, sizeof(__pyx_k_pCaptureStatus), 0, 0, 1, 1}, {&__pyx_n_s_pConfig, __pyx_k_pConfig, sizeof(__pyx_k_pConfig), 0, 0, 1, 1}, {&__pyx_n_s_pCopyParams, __pyx_k_pCopyParams, sizeof(__pyx_k_pCopyParams), 0, 0, 1, 1}, {&__pyx_n_s_pCudaDeviceCount, __pyx_k_pCudaDeviceCount, sizeof(__pyx_k_pCudaDeviceCount), 0, 0, 1, 1}, {&__pyx_n_s_pCudaResource, __pyx_k_pCudaResource, sizeof(__pyx_k_pCudaResource), 0, 0, 1, 1}, {&__pyx_n_s_pDependencies, __pyx_k_pDependencies, sizeof(__pyx_k_pDependencies), 0, 0, 1, 1}, {&__pyx_n_s_pDevice, __pyx_k_pDevice, sizeof(__pyx_k_pDevice), 0, 0, 1, 1}, {&__pyx_n_s_pExportTableId, __pyx_k_pExportTableId, sizeof(__pyx_k_pExportTableId), 0, 0, 1, 1}, {&__pyx_n_s_pFlags, __pyx_k_pFlags, sizeof(__pyx_k_pFlags), 0, 0, 1, 1}, {&__pyx_n_s_pGraph, __pyx_k_pGraph, sizeof(__pyx_k_pGraph), 0, 0, 1, 1}, {&__pyx_n_s_pGraphClone, __pyx_k_pGraphClone, sizeof(__pyx_k_pGraphClone), 0, 0, 1, 1}, {&__pyx_n_s_pGraphExec, __pyx_k_pGraphExec, sizeof(__pyx_k_pGraphExec), 0, 0, 1, 1}, {&__pyx_n_s_pGraphNode, __pyx_k_pGraphNode, sizeof(__pyx_k_pGraphNode), 0, 0, 1, 1}, {&__pyx_n_s_pHandle_out, __pyx_k_pHandle_out, sizeof(__pyx_k_pHandle_out), 0, 0, 1, 1}, {&__pyx_n_s_pHost, __pyx_k_pHost, sizeof(__pyx_k_pHost), 0, 0, 1, 1}, {&__pyx_n_s_pMemsetParams, __pyx_k_pMemsetParams, sizeof(__pyx_k_pMemsetParams), 0, 0, 1, 1}, {&__pyx_n_s_pNode, __pyx_k_pNode, sizeof(__pyx_k_pNode), 0, 0, 1, 1}, {&__pyx_n_s_pNodeParams, __pyx_k_pNodeParams, sizeof(__pyx_k_pNodeParams), 0, 0, 1, 1}, {&__pyx_n_s_pNumDependencies, __pyx_k_pNumDependencies, sizeof(__pyx_k_pNumDependencies), 0, 0, 1, 1}, {&__pyx_n_s_pNumDependentNodes, __pyx_k_pNumDependentNodes, sizeof(__pyx_k_pNumDependentNodes), 0, 0, 1, 1}, {&__pyx_n_s_pNumRootNodes, __pyx_k_pNumRootNodes, sizeof(__pyx_k_pNumRootNodes), 0, 0, 1, 1}, {&__pyx_kp_u_pPitch, __pyx_k_pPitch, sizeof(__pyx_k_pPitch), 0, 1, 0, 0}, {&__pyx_n_s_pPitch_2, __pyx_k_pPitch_2, sizeof(__pyx_k_pPitch_2), 0, 0, 1, 1}, {&__pyx_kp_u_pPitch_ValueError, __pyx_k_pPitch_ValueError, sizeof(__pyx_k_pPitch_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_pPlaneArray, __pyx_k_pPlaneArray, sizeof(__pyx_k_pPlaneArray), 0, 0, 1, 1}, {&__pyx_n_s_pResDesc, __pyx_k_pResDesc, sizeof(__pyx_k_pResDesc), 0, 0, 1, 1}, {&__pyx_n_s_pResViewDesc, __pyx_k_pResViewDesc, sizeof(__pyx_k_pResViewDesc), 0, 0, 1, 1}, {&__pyx_n_s_pStream, __pyx_k_pStream, sizeof(__pyx_k_pStream), 0, 0, 1, 1}, {&__pyx_n_s_pSurfObject, __pyx_k_pSurfObject, sizeof(__pyx_k_pSurfObject), 0, 0, 1, 1}, {&__pyx_n_s_pTexDesc, __pyx_k_pTexDesc, sizeof(__pyx_k_pTexDesc), 0, 0, 1, 1}, {&__pyx_n_s_pTexObject, __pyx_k_pTexObject, sizeof(__pyx_k_pTexObject), 0, 0, 1, 1}, {&__pyx_n_s_pType, __pyx_k_pType, sizeof(__pyx_k_pType), 0, 0, 1, 1}, {&__pyx_kp_u_pValue, __pyx_k_pValue, sizeof(__pyx_k_pValue), 0, 1, 0, 0}, {&__pyx_n_s_pValue_2, __pyx_k_pValue_2, sizeof(__pyx_k_pValue_2), 0, 0, 1, 1}, {&__pyx_kp_u_pValue_ValueError, __pyx_k_pValue_ValueError, sizeof(__pyx_k_pValue_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_pad, __pyx_k_pad, sizeof(__pyx_k_pad), 0, 1, 0, 0}, {&__pyx_n_s_pad_2, __pyx_k_pad_2, sizeof(__pyx_k_pad_2), 0, 0, 1, 1}, {&__pyx_kp_u_pad_ValueError, __pyx_k_pad_ValueError, sizeof(__pyx_k_pad_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_pad_length_must_be_64_is, __pyx_k_pad_length_must_be_64_is, sizeof(__pyx_k_pad_length_must_be_64_is), 0, 1, 0, 0}, {&__pyx_kp_u_pageableMemoryAccess, __pyx_k_pageableMemoryAccess, sizeof(__pyx_k_pageableMemoryAccess), 0, 1, 0, 0}, {&__pyx_kp_u_pageableMemoryAccessUsesHostPage, __pyx_k_pageableMemoryAccessUsesHostPage, sizeof(__pyx_k_pageableMemoryAccessUsesHostPage), 0, 1, 0, 0}, {&__pyx_n_s_pageableMemoryAccessUsesHostPage_2, __pyx_k_pageableMemoryAccessUsesHostPage_2, sizeof(__pyx_k_pageableMemoryAccessUsesHostPage_2), 0, 0, 1, 1}, {&__pyx_kp_u_pageableMemoryAccessUsesHostPage_3, __pyx_k_pageableMemoryAccessUsesHostPage_3, sizeof(__pyx_k_pageableMemoryAccessUsesHostPage_3), 0, 1, 0, 0}, {&__pyx_n_s_pageableMemoryAccess_2, __pyx_k_pageableMemoryAccess_2, sizeof(__pyx_k_pageableMemoryAccess_2), 0, 0, 1, 1}, {&__pyx_kp_u_pageableMemoryAccess_ValueError, __pyx_k_pageableMemoryAccess_ValueError, sizeof(__pyx_k_pageableMemoryAccess_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_param, __pyx_k_param, sizeof(__pyx_k_param), 0, 1, 0, 0}, {&__pyx_n_s_param_2, __pyx_k_param_2, sizeof(__pyx_k_param_2), 0, 0, 1, 1}, {&__pyx_kp_u_param_ValueError, __pyx_k_param_ValueError, sizeof(__pyx_k_param_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_params, __pyx_k_params, sizeof(__pyx_k_params), 0, 1, 0, 0}, {&__pyx_kp_u_paramsArray, __pyx_k_paramsArray, sizeof(__pyx_k_paramsArray), 0, 1, 0, 0}, {&__pyx_n_s_paramsArray_2, __pyx_k_paramsArray_2, sizeof(__pyx_k_paramsArray_2), 0, 0, 1, 1}, {&__pyx_kp_u_paramsArray_ValueError, __pyx_k_paramsArray_ValueError, sizeof(__pyx_k_paramsArray_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_params_2, __pyx_k_params_2, sizeof(__pyx_k_params_2), 0, 0, 1, 1}, {&__pyx_kp_u_params_ValueError, __pyx_k_params_ValueError, sizeof(__pyx_k_params_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_params_out, __pyx_k_params_out, sizeof(__pyx_k_params_out), 0, 0, 1, 1}, {&__pyx_n_s_parray, __pyx_k_parray, sizeof(__pyx_k_parray), 0, 0, 1, 1}, {&__pyx_n_s_path, __pyx_k_path, sizeof(__pyx_k_path), 0, 0, 1, 1}, {&__pyx_n_s_pbuffer, __pyx_k_pbuffer, sizeof(__pyx_k_pbuffer), 0, 0, 1, 1}, {&__pyx_n_s_pcallback, __pyx_k_pcallback, sizeof(__pyx_k_pcallback), 0, 0, 1, 1}, {&__pyx_n_s_pcallbackFunc, __pyx_k_pcallbackFunc, sizeof(__pyx_k_pcallbackFunc), 0, 0, 1, 1}, {&__pyx_n_s_pchildGraph, __pyx_k_pchildGraph, sizeof(__pyx_k_pchildGraph), 0, 0, 1, 1}, {&__pyx_kp_u_pciBusID, __pyx_k_pciBusID, sizeof(__pyx_k_pciBusID), 0, 1, 0, 0}, {&__pyx_n_s_pciBusID_2, __pyx_k_pciBusID_2, sizeof(__pyx_k_pciBusID_2), 0, 0, 1, 1}, {&__pyx_kp_u_pciBusID_ValueError, __pyx_k_pciBusID_ValueError, sizeof(__pyx_k_pciBusID_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_pciBusId, __pyx_k_pciBusId, sizeof(__pyx_k_pciBusId), 0, 0, 1, 1}, {&__pyx_kp_u_pciDeviceID, __pyx_k_pciDeviceID, sizeof(__pyx_k_pciDeviceID), 0, 1, 0, 0}, {&__pyx_n_s_pciDeviceID_2, __pyx_k_pciDeviceID_2, sizeof(__pyx_k_pciDeviceID_2), 0, 0, 1, 1}, {&__pyx_kp_u_pciDeviceID_ValueError, __pyx_k_pciDeviceID_ValueError, sizeof(__pyx_k_pciDeviceID_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_pciDomainID, __pyx_k_pciDomainID, sizeof(__pyx_k_pciDomainID), 0, 1, 0, 0}, {&__pyx_n_s_pciDomainID_2, __pyx_k_pciDomainID_2, sizeof(__pyx_k_pciDomainID_2), 0, 0, 1, 1}, {&__pyx_kp_u_pciDomainID_ValueError, __pyx_k_pciDomainID_ValueError, sizeof(__pyx_k_pciDomainID_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_pclonedGraph, __pyx_k_pclonedGraph, sizeof(__pyx_k_pclonedGraph), 0, 0, 1, 1}, {&__pyx_n_s_pconn, __pyx_k_pconn, sizeof(__pyx_k_pconn), 0, 0, 1, 1}, {&__pyx_n_s_pdestroy, __pyx_k_pdestroy, sizeof(__pyx_k_pdestroy), 0, 0, 1, 1}, {&__pyx_n_s_pdst, __pyx_k_pdst, sizeof(__pyx_k_pdst), 0, 0, 1, 1}, {&__pyx_n_s_peerDevice, __pyx_k_peerDevice, sizeof(__pyx_k_peerDevice), 0, 0, 1, 1}, {&__pyx_n_s_peglStream, __pyx_k_peglStream, sizeof(__pyx_k_peglStream), 0, 0, 1, 1}, {&__pyx_n_s_peglSync, __pyx_k_peglSync, sizeof(__pyx_k_peglSync), 0, 0, 1, 1}, {&__pyx_n_s_pend, __pyx_k_pend, sizeof(__pyx_k_pend), 0, 0, 1, 1}, {&__pyx_kp_u_persistingL2CacheMaxSize, __pyx_k_persistingL2CacheMaxSize, sizeof(__pyx_k_persistingL2CacheMaxSize), 0, 1, 0, 0}, {&__pyx_n_s_persistingL2CacheMaxSize_2, __pyx_k_persistingL2CacheMaxSize_2, sizeof(__pyx_k_persistingL2CacheMaxSize_2), 0, 0, 1, 1}, {&__pyx_kp_u_persistingL2CacheMaxSize_ValueEr, __pyx_k_persistingL2CacheMaxSize_ValueEr, sizeof(__pyx_k_persistingL2CacheMaxSize_ValueEr), 0, 1, 0, 0}, {&__pyx_n_s_pevent, __pyx_k_pevent, sizeof(__pyx_k_pevent), 0, 0, 1, 1}, {&__pyx_n_s_pextMem, __pyx_k_pextMem, sizeof(__pyx_k_pextMem), 0, 0, 1, 1}, {&__pyx_n_s_pextSem, __pyx_k_pextSem, sizeof(__pyx_k_pextSem), 0, 0, 1, 1}, {&__pyx_n_s_pfn, __pyx_k_pfn, sizeof(__pyx_k_pfn), 0, 0, 1, 1}, {&__pyx_n_s_pgraph, __pyx_k_pgraph, sizeof(__pyx_k_pgraph), 0, 0, 1, 1}, {&__pyx_n_s_pgraphExec, __pyx_k_pgraphExec, sizeof(__pyx_k_pgraphExec), 0, 0, 1, 1}, {&__pyx_n_s_phArray, __pyx_k_phArray, sizeof(__pyx_k_phArray), 0, 0, 1, 1}, {&__pyx_n_s_phDst, __pyx_k_phDst, sizeof(__pyx_k_phDst), 0, 0, 1, 1}, {&__pyx_n_s_phEvent, __pyx_k_phEvent, sizeof(__pyx_k_phEvent), 0, 0, 1, 1}, {&__pyx_n_s_phGraph, __pyx_k_phGraph, sizeof(__pyx_k_phGraph), 0, 0, 1, 1}, {&__pyx_n_s_phGraphExec, __pyx_k_phGraphExec, sizeof(__pyx_k_phGraphExec), 0, 0, 1, 1}, {&__pyx_kp_u_phGraph_out, __pyx_k_phGraph_out, sizeof(__pyx_k_phGraph_out), 0, 1, 0, 0}, {&__pyx_n_s_phGraph_out_2, __pyx_k_phGraph_out_2, sizeof(__pyx_k_phGraph_out_2), 0, 0, 1, 1}, {&__pyx_kp_u_phGraph_out_ValueError, __pyx_k_phGraph_out_ValueError, sizeof(__pyx_k_phGraph_out_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_phNode, __pyx_k_phNode, sizeof(__pyx_k_phNode), 0, 0, 1, 1}, {&__pyx_n_s_phSrc, __pyx_k_phSrc, sizeof(__pyx_k_phSrc), 0, 0, 1, 1}, {&__pyx_n_s_phStream, __pyx_k_phStream, sizeof(__pyx_k_phStream), 0, 0, 1, 1}, {&__pyx_n_s_pheight, __pyx_k_pheight, sizeof(__pyx_k_pheight), 0, 0, 1, 1}, {&__pyx_n_s_pimage, __pyx_k_pimage, sizeof(__pyx_k_pimage), 0, 0, 1, 1}, {&__pyx_kp_u_pitch, __pyx_k_pitch, sizeof(__pyx_k_pitch), 0, 1, 0, 0}, {&__pyx_kp_u_pitch2D, __pyx_k_pitch2D, sizeof(__pyx_k_pitch2D), 0, 1, 0, 0}, {&__pyx_n_s_pitch2D_2, __pyx_k_pitch2D_2, sizeof(__pyx_k_pitch2D_2), 0, 0, 1, 1}, {&__pyx_kp_u_pitch2D_ValueError, __pyx_k_pitch2D_ValueError, sizeof(__pyx_k_pitch2D_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_pitchInBytes, __pyx_k_pitchInBytes, sizeof(__pyx_k_pitchInBytes), 0, 1, 0, 0}, {&__pyx_n_s_pitchInBytes_2, __pyx_k_pitchInBytes_2, sizeof(__pyx_k_pitchInBytes_2), 0, 0, 1, 1}, {&__pyx_kp_u_pitchInBytes_ValueError, __pyx_k_pitchInBytes_ValueError, sizeof(__pyx_k_pitchInBytes_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_pitch_2, __pyx_k_pitch_2, sizeof(__pyx_k_pitch_2), 0, 0, 1, 1}, {&__pyx_kp_u_pitch_ValueError, __pyx_k_pitch_ValueError, sizeof(__pyx_k_pitch_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_pitchedDevPtr, __pyx_k_pitchedDevPtr, sizeof(__pyx_k_pitchedDevPtr), 0, 0, 1, 1}, {&__pyx_kp_u_planeCount, __pyx_k_planeCount, sizeof(__pyx_k_planeCount), 0, 1, 0, 0}, {&__pyx_n_s_planeCount_2, __pyx_k_planeCount_2, sizeof(__pyx_k_planeCount_2), 0, 0, 1, 1}, {&__pyx_kp_u_planeCount_ValueError, __pyx_k_planeCount_ValueError, sizeof(__pyx_k_planeCount_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_planeDesc, __pyx_k_planeDesc, sizeof(__pyx_k_planeDesc), 0, 1, 0, 0}, {&__pyx_n_s_planeDesc_2, __pyx_k_planeDesc_2, sizeof(__pyx_k_planeDesc_2), 0, 0, 1, 1}, {&__pyx_kp_u_planeDesc_ValueError, __pyx_k_planeDesc_ValueError, sizeof(__pyx_k_planeDesc_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_planeIdx, __pyx_k_planeIdx, sizeof(__pyx_k_planeIdx), 0, 0, 1, 1}, {&__pyx_n_s_pmemPool, __pyx_k_pmemPool, sizeof(__pyx_k_pmemPool), 0, 0, 1, 1}, {&__pyx_n_s_pmipmap, __pyx_k_pmipmap, sizeof(__pyx_k_pmipmap), 0, 0, 1, 1}, {&__pyx_n_s_pmipmappedArray, __pyx_k_pmipmappedArray, sizeof(__pyx_k_pmipmappedArray), 0, 0, 1, 1}, {&__pyx_n_s_pnode, __pyx_k_pnode, sizeof(__pyx_k_pnode), 0, 0, 1, 1}, {&__pyx_n_s_pobject, __pyx_k_pobject, sizeof(__pyx_k_pobject), 0, 0, 1, 1}, {&__pyx_kp_u_poolProps, __pyx_k_poolProps, sizeof(__pyx_k_poolProps), 0, 1, 0, 0}, {&__pyx_n_s_poolProps_2, __pyx_k_poolProps_2, sizeof(__pyx_k_poolProps_2), 0, 0, 1, 1}, {&__pyx_kp_u_poolProps_ValueError, __pyx_k_poolProps_ValueError, sizeof(__pyx_k_poolProps_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_poriginalGraph, __pyx_k_poriginalGraph, sizeof(__pyx_k_poriginalGraph), 0, 0, 1, 1}, {&__pyx_n_s_poriginalNode, __pyx_k_poriginalNode, sizeof(__pyx_k_poriginalNode), 0, 0, 1, 1}, {&__pyx_n_s_ppCudaResource, __pyx_k_ppCudaResource, sizeof(__pyx_k_ppCudaResource), 0, 0, 1, 1}, {&__pyx_n_s_ppExportTable, __pyx_k_ppExportTable, sizeof(__pyx_k_ppExportTable), 0, 0, 1, 1}, {&__pyx_n_s_ppStream, __pyx_k_ppStream, sizeof(__pyx_k_ppStream), 0, 0, 1, 1}, {&__pyx_kp_u_preferredShmemCarveout, __pyx_k_preferredShmemCarveout, sizeof(__pyx_k_preferredShmemCarveout), 0, 1, 0, 0}, {&__pyx_n_s_preferredShmemCarveout_2, __pyx_k_preferredShmemCarveout_2, sizeof(__pyx_k_preferredShmemCarveout_2), 0, 0, 1, 1}, {&__pyx_kp_u_preferredShmemCarveout_ValueErro, __pyx_k_preferredShmemCarveout_ValueErro, sizeof(__pyx_k_preferredShmemCarveout_ValueErro), 0, 1, 0, 0}, {&__pyx_n_s_prepare, __pyx_k_prepare, sizeof(__pyx_k_prepare), 0, 0, 1, 1}, {&__pyx_n_s_presource, __pyx_k_presource, sizeof(__pyx_k_presource), 0, 0, 1, 1}, {&__pyx_n_s_presources, __pyx_k_presources, sizeof(__pyx_k_presources), 0, 0, 1, 1}, {&__pyx_kp_u_priority, __pyx_k_priority, sizeof(__pyx_k_priority), 0, 1, 0, 0}, {&__pyx_n_s_priority_2, __pyx_k_priority_2, sizeof(__pyx_k_priority_2), 0, 0, 1, 1}, {&__pyx_kp_u_priority_ValueError, __pyx_k_priority_ValueError, sizeof(__pyx_k_priority_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_programmaticEvent, __pyx_k_programmaticEvent, sizeof(__pyx_k_programmaticEvent), 0, 1, 0, 0}, {&__pyx_n_s_programmaticEvent_2, __pyx_k_programmaticEvent_2, sizeof(__pyx_k_programmaticEvent_2), 0, 0, 1, 1}, {&__pyx_kp_u_programmaticEvent_ValueError, __pyx_k_programmaticEvent_ValueError, sizeof(__pyx_k_programmaticEvent_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_programmaticStreamSerializationA, __pyx_k_programmaticStreamSerializationA, sizeof(__pyx_k_programmaticStreamSerializationA), 0, 1, 0, 0}, {&__pyx_n_s_programmaticStreamSerializationA_2, __pyx_k_programmaticStreamSerializationA_2, sizeof(__pyx_k_programmaticStreamSerializationA_2), 0, 0, 1, 1}, {&__pyx_kp_u_programmaticStreamSerializationA_3, __pyx_k_programmaticStreamSerializationA_3, sizeof(__pyx_k_programmaticStreamSerializationA_3), 0, 1, 0, 0}, {&__pyx_n_s_prop, __pyx_k_prop, sizeof(__pyx_k_prop), 0, 0, 1, 1}, {&__pyx_n_s_psrc, __pyx_k_psrc, sizeof(__pyx_k_psrc), 0, 0, 1, 1}, {&__pyx_n_s_pstart, __pyx_k_pstart, sizeof(__pyx_k_pstart), 0, 0, 1, 1}, {&__pyx_n_s_pstream, __pyx_k_pstream, sizeof(__pyx_k_pstream), 0, 0, 1, 1}, {&__pyx_n_s_psurfObject, __pyx_k_psurfObject, sizeof(__pyx_k_psurfObject), 0, 0, 1, 1}, {&__pyx_n_s_ptarget, __pyx_k_ptarget, sizeof(__pyx_k_ptarget), 0, 0, 1, 1}, {&__pyx_n_s_ptexObject, __pyx_k_ptexObject, sizeof(__pyx_k_ptexObject), 0, 0, 1, 1}, {&__pyx_n_s_ptr, __pyx_k_ptr, sizeof(__pyx_k_ptr), 0, 0, 1, 1}, {&__pyx_kp_u_ptr_2, __pyx_k_ptr_2, sizeof(__pyx_k_ptr_2), 0, 1, 0, 0}, {&__pyx_n_s_ptr_3, __pyx_k_ptr_3, sizeof(__pyx_k_ptr_3), 0, 0, 1, 1}, {&__pyx_kp_u_ptr_ValueError, __pyx_k_ptr_ValueError, sizeof(__pyx_k_ptr_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_ptxVersion, __pyx_k_ptxVersion, sizeof(__pyx_k_ptxVersion), 0, 1, 0, 0}, {&__pyx_n_s_ptxVersion_2, __pyx_k_ptxVersion_2, sizeof(__pyx_k_ptxVersion_2), 0, 0, 1, 1}, {&__pyx_kp_u_ptxVersion_ValueError, __pyx_k_ptxVersion_ValueError, sizeof(__pyx_k_ptxVersion_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_pvdpDevice, __pyx_k_pvdpDevice, sizeof(__pyx_k_pvdpDevice), 0, 0, 1, 1}, {&__pyx_n_s_pvdpGetProcAddress, __pyx_k_pvdpGetProcAddress, sizeof(__pyx_k_pvdpGetProcAddress), 0, 0, 1, 1}, {&__pyx_n_s_pvdpSurface, __pyx_k_pvdpSurface, sizeof(__pyx_k_pvdpSurface), 0, 0, 1, 1}, {&__pyx_n_s_pwidth, __pyx_k_pwidth, sizeof(__pyx_k_pwidth), 0, 0, 1, 1}, {&__pyx_n_s_pyObj, __pyx_k_pyObj, sizeof(__pyx_k_pyObj), 0, 0, 1, 1}, {&__pyx_n_s_pyattributes, __pyx_k_pyattributes, sizeof(__pyx_k_pyattributes), 0, 0, 1, 1}, {&__pyx_n_s_pydataSizes, __pyx_k_pydataSizes, sizeof(__pyx_k_pydataSizes), 0, 0, 1, 1}, {&__pyx_n_s_pydependencies_out, __pyx_k_pydependencies_out, sizeof(__pyx_k_pydependencies_out), 0, 0, 1, 1}, {&__pyx_n_s_pyedgeData, __pyx_k_pyedgeData, sizeof(__pyx_k_pyedgeData), 0, 0, 1, 1}, {&__pyx_n_s_pyedgeData_out, __pyx_k_pyedgeData_out, sizeof(__pyx_k_pyedgeData_out), 0, 0, 1, 1}, {&__pyx_n_s_pyfrom, __pyx_k_pyfrom, sizeof(__pyx_k_pyfrom), 0, 0, 1, 1}, {&__pyx_n_s_pylist, __pyx_k_pylist, sizeof(__pyx_k_pylist), 0, 0, 1, 1}, {&__pyx_n_s_pynodes, __pyx_k_pynodes, sizeof(__pyx_k_pynodes), 0, 0, 1, 1}, {&__pyx_n_s_pypCudaDevices, __pyx_k_pypCudaDevices, sizeof(__pyx_k_pypCudaDevices), 0, 0, 1, 1}, {&__pyx_n_s_pypDependencies, __pyx_k_pypDependencies, sizeof(__pyx_k_pypDependencies), 0, 0, 1, 1}, {&__pyx_n_s_pypDependentNodes, __pyx_k_pypDependentNodes, sizeof(__pyx_k_pypDependentNodes), 0, 0, 1, 1}, {&__pyx_n_s_pypRootNodes, __pyx_k_pypRootNodes, sizeof(__pyx_k_pypRootNodes), 0, 0, 1, 1}, {&__pyx_n_s_pypciBusId, __pyx_k_pypciBusId, sizeof(__pyx_k_pypciBusId), 0, 0, 1, 1}, {&__pyx_n_s_pyto, __pyx_k_pyto, sizeof(__pyx_k_pyto), 0, 0, 1, 1}, {&__pyx_n_s_pyx_state, __pyx_k_pyx_state, sizeof(__pyx_k_pyx_state), 0, 0, 1, 1}, {&__pyx_n_s_qualname, __pyx_k_qualname, sizeof(__pyx_k_qualname), 0, 0, 1, 1}, {&__pyx_n_s_range, __pyx_k_range, sizeof(__pyx_k_range), 0, 0, 1, 1}, {&__pyx_kp_u_readMode, __pyx_k_readMode, sizeof(__pyx_k_readMode), 0, 1, 0, 0}, {&__pyx_n_s_readMode_2, __pyx_k_readMode_2, sizeof(__pyx_k_readMode_2), 0, 0, 1, 1}, {&__pyx_kp_u_readMode_ValueError, __pyx_k_readMode_ValueError, sizeof(__pyx_k_readMode_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_reduce, __pyx_k_reduce, sizeof(__pyx_k_reduce), 0, 0, 1, 1}, {&__pyx_n_s_reduce_cython, __pyx_k_reduce_cython, sizeof(__pyx_k_reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_reduce_ex, __pyx_k_reduce_ex, sizeof(__pyx_k_reduce_ex), 0, 0, 1, 1}, {&__pyx_kp_u_regsPerBlock, __pyx_k_regsPerBlock, sizeof(__pyx_k_regsPerBlock), 0, 1, 0, 0}, {&__pyx_n_s_regsPerBlock_2, __pyx_k_regsPerBlock_2, sizeof(__pyx_k_regsPerBlock_2), 0, 0, 1, 1}, {&__pyx_kp_u_regsPerBlock_ValueError, __pyx_k_regsPerBlock_ValueError, sizeof(__pyx_k_regsPerBlock_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_regsPerMultiprocessor, __pyx_k_regsPerMultiprocessor, sizeof(__pyx_k_regsPerMultiprocessor), 0, 1, 0, 0}, {&__pyx_n_s_regsPerMultiprocessor_2, __pyx_k_regsPerMultiprocessor_2, sizeof(__pyx_k_regsPerMultiprocessor_2), 0, 0, 1, 1}, {&__pyx_kp_u_regsPerMultiprocessor_ValueError, __pyx_k_regsPerMultiprocessor_ValueError, sizeof(__pyx_k_regsPerMultiprocessor_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_remote, __pyx_k_remote, sizeof(__pyx_k_remote), 0, 1, 0, 0}, {&__pyx_n_s_remote_2, __pyx_k_remote_2, sizeof(__pyx_k_remote_2), 0, 0, 1, 1}, {&__pyx_kp_u_remote_ValueError, __pyx_k_remote_ValueError, sizeof(__pyx_k_remote_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_requiredClusterDepth, __pyx_k_requiredClusterDepth, sizeof(__pyx_k_requiredClusterDepth), 0, 1, 0, 0}, {&__pyx_n_s_requiredClusterDepth_2, __pyx_k_requiredClusterDepth_2, sizeof(__pyx_k_requiredClusterDepth_2), 0, 0, 1, 1}, {&__pyx_kp_u_requiredClusterDepth_ValueError, __pyx_k_requiredClusterDepth_ValueError, sizeof(__pyx_k_requiredClusterDepth_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_requiredClusterHeight, __pyx_k_requiredClusterHeight, sizeof(__pyx_k_requiredClusterHeight), 0, 1, 0, 0}, {&__pyx_n_s_requiredClusterHeight_2, __pyx_k_requiredClusterHeight_2, sizeof(__pyx_k_requiredClusterHeight_2), 0, 0, 1, 1}, {&__pyx_kp_u_requiredClusterHeight_ValueError, __pyx_k_requiredClusterHeight_ValueError, sizeof(__pyx_k_requiredClusterHeight_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_requiredClusterWidth, __pyx_k_requiredClusterWidth, sizeof(__pyx_k_requiredClusterWidth), 0, 1, 0, 0}, {&__pyx_n_s_requiredClusterWidth_2, __pyx_k_requiredClusterWidth_2, sizeof(__pyx_k_requiredClusterWidth_2), 0, 0, 1, 1}, {&__pyx_kp_u_requiredClusterWidth_ValueError, __pyx_k_requiredClusterWidth_ValueError, sizeof(__pyx_k_requiredClusterWidth_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_res, __pyx_k_res, sizeof(__pyx_k_res), 0, 1, 0, 0}, {&__pyx_kp_u_resType, __pyx_k_resType, sizeof(__pyx_k_resType), 0, 1, 0, 0}, {&__pyx_n_s_resType_2, __pyx_k_resType_2, sizeof(__pyx_k_resType_2), 0, 0, 1, 1}, {&__pyx_kp_u_resType_ValueError, __pyx_k_resType_ValueError, sizeof(__pyx_k_resType_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_res_2, __pyx_k_res_2, sizeof(__pyx_k_res_2), 0, 0, 1, 1}, {&__pyx_kp_u_res_ValueError, __pyx_k_res_ValueError, sizeof(__pyx_k_res_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_reserved, __pyx_k_reserved, sizeof(__pyx_k_reserved), 0, 1, 0, 0}, {&__pyx_kp_u_reserved0, __pyx_k_reserved0, sizeof(__pyx_k_reserved0), 0, 1, 0, 0}, {&__pyx_n_s_reserved0_2, __pyx_k_reserved0_2, sizeof(__pyx_k_reserved0_2), 0, 0, 1, 1}, {&__pyx_kp_u_reserved0_ValueError, __pyx_k_reserved0_ValueError, sizeof(__pyx_k_reserved0_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_reserved1, __pyx_k_reserved1, sizeof(__pyx_k_reserved1), 0, 1, 0, 0}, {&__pyx_n_s_reserved1_2, __pyx_k_reserved1_2, sizeof(__pyx_k_reserved1_2), 0, 0, 1, 1}, {&__pyx_kp_u_reserved1_ValueError, __pyx_k_reserved1_ValueError, sizeof(__pyx_k_reserved1_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_reserved2, __pyx_k_reserved2, sizeof(__pyx_k_reserved2), 0, 1, 0, 0}, {&__pyx_n_s_reserved2_2, __pyx_k_reserved2_2, sizeof(__pyx_k_reserved2_2), 0, 0, 1, 1}, {&__pyx_kp_u_reserved2_ValueError, __pyx_k_reserved2_ValueError, sizeof(__pyx_k_reserved2_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_reservedSharedMemPerBlock, __pyx_k_reservedSharedMemPerBlock, sizeof(__pyx_k_reservedSharedMemPerBlock), 0, 1, 0, 0}, {&__pyx_n_s_reservedSharedMemPerBlock_2, __pyx_k_reservedSharedMemPerBlock_2, sizeof(__pyx_k_reservedSharedMemPerBlock_2), 0, 0, 1, 1}, {&__pyx_kp_u_reservedSharedMemPerBlock_ValueE, __pyx_k_reservedSharedMemPerBlock_ValueE, sizeof(__pyx_k_reservedSharedMemPerBlock_ValueE), 0, 1, 0, 0}, {&__pyx_n_s_reserved_2, __pyx_k_reserved_2, sizeof(__pyx_k_reserved_2), 0, 0, 1, 1}, {&__pyx_kp_u_reserved_ValueError, __pyx_k_reserved_ValueError, sizeof(__pyx_k_reserved_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_reserved_length_must_be_54_is, __pyx_k_reserved_length_must_be_54_is, sizeof(__pyx_k_reserved_length_must_be_54_is), 0, 1, 0, 0}, {&__pyx_kp_u_reserved_length_must_be_5_is, __pyx_k_reserved_length_must_be_5_is, sizeof(__pyx_k_reserved_length_must_be_5_is), 0, 1, 0, 0}, {&__pyx_kp_u_reserved_length_must_be_64_is, __pyx_k_reserved_length_must_be_64_is, sizeof(__pyx_k_reserved_length_must_be_64_is), 0, 1, 0, 0}, {&__pyx_n_s_resource, __pyx_k_resource, sizeof(__pyx_k_resource), 0, 0, 1, 1}, {&__pyx_n_s_resources, __pyx_k_resources, sizeof(__pyx_k_resources), 0, 0, 1, 1}, {&__pyx_kp_u_result, __pyx_k_result, sizeof(__pyx_k_result), 0, 1, 0, 0}, {&__pyx_n_s_resultInfo, __pyx_k_resultInfo, sizeof(__pyx_k_resultInfo), 0, 0, 1, 1}, {&__pyx_n_s_result_2, __pyx_k_result_2, sizeof(__pyx_k_result_2), 0, 0, 1, 1}, {&__pyx_kp_u_result_ValueError, __pyx_k_result_ValueError, sizeof(__pyx_k_result_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_result_out, __pyx_k_result_out, sizeof(__pyx_k_result_out), 0, 1, 0, 0}, {&__pyx_n_s_result_out_2, __pyx_k_result_out_2, sizeof(__pyx_k_result_out_2), 0, 0, 1, 1}, {&__pyx_kp_u_result_out_ValueError, __pyx_k_result_out_ValueError, sizeof(__pyx_k_result_out_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_runtimeVersion, __pyx_k_runtimeVersion, sizeof(__pyx_k_runtimeVersion), 0, 0, 1, 1}, {&__pyx_kp_u_sRGB, __pyx_k_sRGB, sizeof(__pyx_k_sRGB), 0, 1, 0, 0}, {&__pyx_n_s_sRGB_2, __pyx_k_sRGB_2, sizeof(__pyx_k_sRGB_2), 0, 0, 1, 1}, {&__pyx_kp_u_sRGB_ValueError, __pyx_k_sRGB_ValueError, sizeof(__pyx_k_sRGB_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_scope, __pyx_k_scope, sizeof(__pyx_k_scope), 0, 0, 1, 1}, {&__pyx_kp_u_seamlessCubemap, __pyx_k_seamlessCubemap, sizeof(__pyx_k_seamlessCubemap), 0, 1, 0, 0}, {&__pyx_n_s_seamlessCubemap_2, __pyx_k_seamlessCubemap_2, sizeof(__pyx_k_seamlessCubemap_2), 0, 0, 1, 1}, {&__pyx_kp_u_seamlessCubemap_ValueError, __pyx_k_seamlessCubemap_ValueError, sizeof(__pyx_k_seamlessCubemap_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_self, __pyx_k_self, sizeof(__pyx_k_self), 0, 0, 1, 1}, {&__pyx_n_s_semHandleDesc, __pyx_k_semHandleDesc, sizeof(__pyx_k_semHandleDesc), 0, 0, 1, 1}, {&__pyx_n_s_send, __pyx_k_send, sizeof(__pyx_k_send), 0, 0, 1, 1}, {&__pyx_n_s_set_name, __pyx_k_set_name, sizeof(__pyx_k_set_name), 0, 0, 1, 1}, {&__pyx_n_s_setstate, __pyx_k_setstate, sizeof(__pyx_k_setstate), 0, 0, 1, 1}, {&__pyx_n_s_setstate_cython, __pyx_k_setstate_cython, sizeof(__pyx_k_setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_shareableHandle, __pyx_k_shareableHandle, sizeof(__pyx_k_shareableHandle), 0, 0, 1, 1}, {&__pyx_kp_u_sharedMemBytes, __pyx_k_sharedMemBytes, sizeof(__pyx_k_sharedMemBytes), 0, 1, 0, 0}, {&__pyx_n_s_sharedMemBytes_2, __pyx_k_sharedMemBytes_2, sizeof(__pyx_k_sharedMemBytes_2), 0, 0, 1, 1}, {&__pyx_kp_u_sharedMemBytes_ValueError, __pyx_k_sharedMemBytes_ValueError, sizeof(__pyx_k_sharedMemBytes_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_sharedMemCarveout, __pyx_k_sharedMemCarveout, sizeof(__pyx_k_sharedMemCarveout), 0, 1, 0, 0}, {&__pyx_n_s_sharedMemCarveout_2, __pyx_k_sharedMemCarveout_2, sizeof(__pyx_k_sharedMemCarveout_2), 0, 0, 1, 1}, {&__pyx_kp_u_sharedMemCarveout_ValueError, __pyx_k_sharedMemCarveout_ValueError, sizeof(__pyx_k_sharedMemCarveout_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_sharedMemPerBlock, __pyx_k_sharedMemPerBlock, sizeof(__pyx_k_sharedMemPerBlock), 0, 1, 0, 0}, {&__pyx_kp_u_sharedMemPerBlockOptin, __pyx_k_sharedMemPerBlockOptin, sizeof(__pyx_k_sharedMemPerBlockOptin), 0, 1, 0, 0}, {&__pyx_n_s_sharedMemPerBlockOptin_2, __pyx_k_sharedMemPerBlockOptin_2, sizeof(__pyx_k_sharedMemPerBlockOptin_2), 0, 0, 1, 1}, {&__pyx_kp_u_sharedMemPerBlockOptin_ValueErro, __pyx_k_sharedMemPerBlockOptin_ValueErro, sizeof(__pyx_k_sharedMemPerBlockOptin_ValueErro), 0, 1, 0, 0}, {&__pyx_n_s_sharedMemPerBlock_2, __pyx_k_sharedMemPerBlock_2, sizeof(__pyx_k_sharedMemPerBlock_2), 0, 0, 1, 1}, {&__pyx_kp_u_sharedMemPerBlock_ValueError, __pyx_k_sharedMemPerBlock_ValueError, sizeof(__pyx_k_sharedMemPerBlock_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_sharedMemPerMultiprocessor, __pyx_k_sharedMemPerMultiprocessor, sizeof(__pyx_k_sharedMemPerMultiprocessor), 0, 1, 0, 0}, {&__pyx_n_s_sharedMemPerMultiprocessor_2, __pyx_k_sharedMemPerMultiprocessor_2, sizeof(__pyx_k_sharedMemPerMultiprocessor_2), 0, 0, 1, 1}, {&__pyx_kp_u_sharedMemPerMultiprocessor_Value, __pyx_k_sharedMemPerMultiprocessor_Value, sizeof(__pyx_k_sharedMemPerMultiprocessor_Value), 0, 1, 0, 0}, {&__pyx_kp_u_sharedSizeBytes, __pyx_k_sharedSizeBytes, sizeof(__pyx_k_sharedSizeBytes), 0, 1, 0, 0}, {&__pyx_n_s_sharedSizeBytes_2, __pyx_k_sharedSizeBytes_2, sizeof(__pyx_k_sharedSizeBytes_2), 0, 0, 1, 1}, {&__pyx_kp_u_sharedSizeBytes_ValueError, __pyx_k_sharedSizeBytes_ValueError, sizeof(__pyx_k_sharedSizeBytes_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_singleToDoublePrecisionPerfRatio, __pyx_k_singleToDoublePrecisionPerfRatio, sizeof(__pyx_k_singleToDoublePrecisionPerfRatio), 0, 1, 0, 0}, {&__pyx_n_s_singleToDoublePrecisionPerfRatio_2, __pyx_k_singleToDoublePrecisionPerfRatio_2, sizeof(__pyx_k_singleToDoublePrecisionPerfRatio_2), 0, 0, 1, 1}, {&__pyx_kp_u_singleToDoublePrecisionPerfRatio_3, __pyx_k_singleToDoublePrecisionPerfRatio_3, sizeof(__pyx_k_singleToDoublePrecisionPerfRatio_3), 0, 1, 0, 0}, {&__pyx_kp_u_size, __pyx_k_size, sizeof(__pyx_k_size), 0, 1, 0, 0}, {&__pyx_kp_u_sizeInBytes, __pyx_k_sizeInBytes, sizeof(__pyx_k_sizeInBytes), 0, 1, 0, 0}, {&__pyx_n_s_sizeInBytes_2, __pyx_k_sizeInBytes_2, sizeof(__pyx_k_sizeInBytes_2), 0, 0, 1, 1}, {&__pyx_kp_u_sizeInBytes_ValueError, __pyx_k_sizeInBytes_ValueError, sizeof(__pyx_k_sizeInBytes_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_size_2, __pyx_k_size_2, sizeof(__pyx_k_size_2), 0, 0, 1, 1}, {&__pyx_kp_u_size_ValueError, __pyx_k_size_ValueError, sizeof(__pyx_k_size_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_sizeof, __pyx_k_sizeof, sizeof(__pyx_k_sizeof), 0, 0, 1, 1}, {&__pyx_kp_u_sparseCudaArraySupported, __pyx_k_sparseCudaArraySupported, sizeof(__pyx_k_sparseCudaArraySupported), 0, 1, 0, 0}, {&__pyx_n_s_sparseCudaArraySupported_2, __pyx_k_sparseCudaArraySupported_2, sizeof(__pyx_k_sparseCudaArraySupported_2), 0, 0, 1, 1}, {&__pyx_kp_u_sparseCudaArraySupported_ValueEr, __pyx_k_sparseCudaArraySupported_ValueEr, sizeof(__pyx_k_sparseCudaArraySupported_ValueEr), 0, 1, 0, 0}, {&__pyx_n_s_sparseProperties, __pyx_k_sparseProperties, sizeof(__pyx_k_sparseProperties), 0, 0, 1, 1}, {&__pyx_n_s_spec, __pyx_k_spec, sizeof(__pyx_k_spec), 0, 0, 1, 1}, {&__pyx_n_s_spitch, __pyx_k_spitch, sizeof(__pyx_k_spitch), 0, 0, 1, 1}, {&__pyx_n_s_src, __pyx_k_src, sizeof(__pyx_k_src), 0, 0, 1, 1}, {&__pyx_kp_u_srcArray, __pyx_k_srcArray, sizeof(__pyx_k_srcArray), 0, 1, 0, 0}, {&__pyx_n_s_srcArray_2, __pyx_k_srcArray_2, sizeof(__pyx_k_srcArray_2), 0, 0, 1, 1}, {&__pyx_kp_u_srcArray_ValueError, __pyx_k_srcArray_ValueError, sizeof(__pyx_k_srcArray_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_srcDevice, __pyx_k_srcDevice, sizeof(__pyx_k_srcDevice), 0, 1, 0, 0}, {&__pyx_n_s_srcDevice_2, __pyx_k_srcDevice_2, sizeof(__pyx_k_srcDevice_2), 0, 0, 1, 1}, {&__pyx_kp_u_srcDevice_ValueError, __pyx_k_srcDevice_ValueError, sizeof(__pyx_k_srcDevice_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_srcPos, __pyx_k_srcPos, sizeof(__pyx_k_srcPos), 0, 1, 0, 0}, {&__pyx_n_s_srcPos_2, __pyx_k_srcPos_2, sizeof(__pyx_k_srcPos_2), 0, 0, 1, 1}, {&__pyx_kp_u_srcPos_ValueError, __pyx_k_srcPos_ValueError, sizeof(__pyx_k_srcPos_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_srcPtr, __pyx_k_srcPtr, sizeof(__pyx_k_srcPtr), 0, 1, 0, 0}, {&__pyx_n_s_srcPtr_2, __pyx_k_srcPtr_2, sizeof(__pyx_k_srcPtr_2), 0, 0, 1, 1}, {&__pyx_kp_u_srcPtr_ValueError, __pyx_k_srcPtr_ValueError, sizeof(__pyx_k_srcPtr_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_start, __pyx_k_start, sizeof(__pyx_k_start), 0, 0, 1, 1}, {&__pyx_n_s_stream, __pyx_k_stream, sizeof(__pyx_k_stream), 0, 0, 1, 1}, {&__pyx_n_s_streamId, __pyx_k_streamId, sizeof(__pyx_k_streamId), 0, 0, 1, 1}, {&__pyx_kp_u_streamPrioritiesSupported, __pyx_k_streamPrioritiesSupported, sizeof(__pyx_k_streamPrioritiesSupported), 0, 1, 0, 0}, {&__pyx_n_s_streamPrioritiesSupported_2, __pyx_k_streamPrioritiesSupported_2, sizeof(__pyx_k_streamPrioritiesSupported_2), 0, 0, 1, 1}, {&__pyx_kp_u_streamPrioritiesSupported_ValueE, __pyx_k_streamPrioritiesSupported_ValueE, sizeof(__pyx_k_streamPrioritiesSupported_ValueE), 0, 1, 0, 0}, {&__pyx_kp_s_stringsource, __pyx_k_stringsource, sizeof(__pyx_k_stringsource), 0, 0, 1, 0}, {&__pyx_n_s_super, __pyx_k_super, sizeof(__pyx_k_super), 0, 0, 1, 1}, {&__pyx_n_s_surfObject, __pyx_k_surfObject, sizeof(__pyx_k_surfObject), 0, 0, 1, 1}, {&__pyx_kp_u_surfaceAlignment, __pyx_k_surfaceAlignment, sizeof(__pyx_k_surfaceAlignment), 0, 1, 0, 0}, {&__pyx_n_s_surfaceAlignment_2, __pyx_k_surfaceAlignment_2, sizeof(__pyx_k_surfaceAlignment_2), 0, 0, 1, 1}, {&__pyx_kp_u_surfaceAlignment_ValueError, __pyx_k_surfaceAlignment_ValueError, sizeof(__pyx_k_surfaceAlignment_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_symbol, __pyx_k_symbol, sizeof(__pyx_k_symbol), 0, 0, 1, 1}, {&__pyx_kp_u_syncPolicy, __pyx_k_syncPolicy, sizeof(__pyx_k_syncPolicy), 0, 1, 0, 0}, {&__pyx_n_s_syncPolicy_2, __pyx_k_syncPolicy_2, sizeof(__pyx_k_syncPolicy_2), 0, 0, 1, 1}, {&__pyx_kp_u_syncPolicy_ValueError, __pyx_k_syncPolicy_ValueError, sizeof(__pyx_k_syncPolicy_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_target, __pyx_k_target, sizeof(__pyx_k_target), 0, 0, 1, 1}, {&__pyx_kp_u_tccDriver, __pyx_k_tccDriver, sizeof(__pyx_k_tccDriver), 0, 1, 0, 0}, {&__pyx_n_s_tccDriver_2, __pyx_k_tccDriver_2, sizeof(__pyx_k_tccDriver_2), 0, 0, 1, 1}, {&__pyx_kp_u_tccDriver_ValueError, __pyx_k_tccDriver_ValueError, sizeof(__pyx_k_tccDriver_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1}, {&__pyx_n_s_texObject, __pyx_k_texObject, sizeof(__pyx_k_texObject), 0, 0, 1, 1}, {&__pyx_kp_u_textureAlignment, __pyx_k_textureAlignment, sizeof(__pyx_k_textureAlignment), 0, 1, 0, 0}, {&__pyx_n_s_textureAlignment_2, __pyx_k_textureAlignment_2, sizeof(__pyx_k_textureAlignment_2), 0, 0, 1, 1}, {&__pyx_kp_u_textureAlignment_ValueError, __pyx_k_textureAlignment_ValueError, sizeof(__pyx_k_textureAlignment_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_texturePitchAlignment, __pyx_k_texturePitchAlignment, sizeof(__pyx_k_texturePitchAlignment), 0, 1, 0, 0}, {&__pyx_n_s_texturePitchAlignment_2, __pyx_k_texturePitchAlignment_2, sizeof(__pyx_k_texturePitchAlignment_2), 0, 0, 1, 1}, {&__pyx_kp_u_texturePitchAlignment_ValueError, __pyx_k_texturePitchAlignment_ValueError, sizeof(__pyx_k_texturePitchAlignment_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_throw, __pyx_k_throw, sizeof(__pyx_k_throw), 0, 0, 1, 1}, {&__pyx_kp_u_tileExtent, __pyx_k_tileExtent, sizeof(__pyx_k_tileExtent), 0, 1, 0, 0}, {&__pyx_n_s_tileExtent_2, __pyx_k_tileExtent_2, sizeof(__pyx_k_tileExtent_2), 0, 0, 1, 1}, {&__pyx_kp_u_tileExtent_ValueError, __pyx_k_tileExtent_ValueError, sizeof(__pyx_k_tileExtent_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_timelineSemaphoreInteropSupporte, __pyx_k_timelineSemaphoreInteropSupporte, sizeof(__pyx_k_timelineSemaphoreInteropSupporte), 0, 1, 0, 0}, {&__pyx_n_s_timelineSemaphoreInteropSupporte_2, __pyx_k_timelineSemaphoreInteropSupporte_2, sizeof(__pyx_k_timelineSemaphoreInteropSupporte_2), 0, 0, 1, 1}, {&__pyx_kp_u_timelineSemaphoreInteropSupporte_3, __pyx_k_timelineSemaphoreInteropSupporte_3, sizeof(__pyx_k_timelineSemaphoreInteropSupporte_3), 0, 1, 0, 0}, {&__pyx_n_s_timeout, __pyx_k_timeout, sizeof(__pyx_k_timeout), 0, 0, 1, 1}, {&__pyx_kp_u_timeoutMs, __pyx_k_timeoutMs, sizeof(__pyx_k_timeoutMs), 0, 1, 0, 0}, {&__pyx_n_s_timeoutMs_2, __pyx_k_timeoutMs_2, sizeof(__pyx_k_timeoutMs_2), 0, 0, 1, 1}, {&__pyx_kp_u_timeoutMs_ValueError, __pyx_k_timeoutMs_ValueError, sizeof(__pyx_k_timeoutMs_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_to, __pyx_k_to, sizeof(__pyx_k_to), 0, 0, 1, 1}, {&__pyx_kp_u_to_port, __pyx_k_to_port, sizeof(__pyx_k_to_port), 0, 1, 0, 0}, {&__pyx_n_s_to_port_2, __pyx_k_to_port_2, sizeof(__pyx_k_to_port_2), 0, 0, 1, 1}, {&__pyx_kp_u_to_port_ValueError, __pyx_k_to_port_ValueError, sizeof(__pyx_k_to_port_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_total, __pyx_k_total, sizeof(__pyx_k_total), 0, 0, 1, 1}, {&__pyx_kp_u_totalConstMem, __pyx_k_totalConstMem, sizeof(__pyx_k_totalConstMem), 0, 1, 0, 0}, {&__pyx_n_s_totalConstMem_2, __pyx_k_totalConstMem_2, sizeof(__pyx_k_totalConstMem_2), 0, 0, 1, 1}, {&__pyx_kp_u_totalConstMem_ValueError, __pyx_k_totalConstMem_ValueError, sizeof(__pyx_k_totalConstMem_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_totalGlobalMem, __pyx_k_totalGlobalMem, sizeof(__pyx_k_totalGlobalMem), 0, 1, 0, 0}, {&__pyx_n_s_totalGlobalMem_2, __pyx_k_totalGlobalMem_2, sizeof(__pyx_k_totalGlobalMem_2), 0, 0, 1, 1}, {&__pyx_kp_u_totalGlobalMem_ValueError, __pyx_k_totalGlobalMem_ValueError, sizeof(__pyx_k_totalGlobalMem_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_triggerAtBlockStart, __pyx_k_triggerAtBlockStart, sizeof(__pyx_k_triggerAtBlockStart), 0, 1, 0, 0}, {&__pyx_n_s_triggerAtBlockStart_2, __pyx_k_triggerAtBlockStart_2, sizeof(__pyx_k_triggerAtBlockStart_2), 0, 0, 1, 1}, {&__pyx_kp_u_triggerAtBlockStart_ValueError, __pyx_k_triggerAtBlockStart_ValueError, sizeof(__pyx_k_triggerAtBlockStart_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_type, __pyx_k_type, sizeof(__pyx_k_type), 0, 1, 0, 0}, {&__pyx_n_s_type_2, __pyx_k_type_2, sizeof(__pyx_k_type_2), 0, 0, 1, 1}, {&__pyx_kp_u_type_ValueError, __pyx_k_type_ValueError, sizeof(__pyx_k_type_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_typing, __pyx_k_typing, sizeof(__pyx_k_typing), 0, 0, 1, 1}, {&__pyx_kp_u_unifiedAddressing, __pyx_k_unifiedAddressing, sizeof(__pyx_k_unifiedAddressing), 0, 1, 0, 0}, {&__pyx_n_s_unifiedAddressing_2, __pyx_k_unifiedAddressing_2, sizeof(__pyx_k_unifiedAddressing_2), 0, 0, 1, 1}, {&__pyx_kp_u_unifiedAddressing_ValueError, __pyx_k_unifiedAddressing_ValueError, sizeof(__pyx_k_unifiedAddressing_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_unifiedFunctionPointers, __pyx_k_unifiedFunctionPointers, sizeof(__pyx_k_unifiedFunctionPointers), 0, 1, 0, 0}, {&__pyx_n_s_unifiedFunctionPointers_2, __pyx_k_unifiedFunctionPointers_2, sizeof(__pyx_k_unifiedFunctionPointers_2), 0, 0, 1, 1}, {&__pyx_kp_u_unifiedFunctionPointers_ValueErr, __pyx_k_unifiedFunctionPointers_ValueErr, sizeof(__pyx_k_unifiedFunctionPointers_ValueErr), 0, 1, 0, 0}, {&__pyx_kp_u_updateData, __pyx_k_updateData, sizeof(__pyx_k_updateData), 0, 1, 0, 0}, {&__pyx_n_s_updateData_2, __pyx_k_updateData_2, sizeof(__pyx_k_updateData_2), 0, 0, 1, 1}, {&__pyx_kp_u_updateData_ValueError, __pyx_k_updateData_ValueError, sizeof(__pyx_k_updateData_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_uploadStream, __pyx_k_uploadStream, sizeof(__pyx_k_uploadStream), 0, 1, 0, 0}, {&__pyx_n_s_uploadStream_2, __pyx_k_uploadStream_2, sizeof(__pyx_k_uploadStream_2), 0, 0, 1, 1}, {&__pyx_kp_u_uploadStream_ValueError, __pyx_k_uploadStream_ValueError, sizeof(__pyx_k_uploadStream_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_usage, __pyx_k_usage, sizeof(__pyx_k_usage), 0, 1, 0, 0}, {&__pyx_n_s_usage_2, __pyx_k_usage_2, sizeof(__pyx_k_usage_2), 0, 0, 1, 1}, {&__pyx_kp_u_usage_ValueError, __pyx_k_usage_ValueError, sizeof(__pyx_k_usage_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_userData, __pyx_k_userData, sizeof(__pyx_k_userData), 0, 1, 0, 0}, {&__pyx_n_s_userData_2, __pyx_k_userData_2, sizeof(__pyx_k_userData_2), 0, 0, 1, 1}, {&__pyx_kp_u_userData_ValueError, __pyx_k_userData_ValueError, sizeof(__pyx_k_userData_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_utf_8, __pyx_k_utf_8, sizeof(__pyx_k_utf_8), 0, 1, 0, 0}, {&__pyx_kp_u_uuid, __pyx_k_uuid, sizeof(__pyx_k_uuid), 0, 1, 0, 0}, {&__pyx_n_s_uuid_2, __pyx_k_uuid_2, sizeof(__pyx_k_uuid_2), 0, 0, 1, 1}, {&__pyx_kp_u_uuid_ValueError, __pyx_k_uuid_ValueError, sizeof(__pyx_k_uuid_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_val, __pyx_k_val, sizeof(__pyx_k_val), 0, 1, 0, 0}, {&__pyx_n_s_val_2, __pyx_k_val_2, sizeof(__pyx_k_val_2), 0, 0, 1, 1}, {&__pyx_kp_u_val_ValueError, __pyx_k_val_ValueError, sizeof(__pyx_k_val_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_value, __pyx_k_value, sizeof(__pyx_k_value), 0, 0, 1, 1}, {&__pyx_kp_u_value_2, __pyx_k_value_2, sizeof(__pyx_k_value_2), 0, 1, 0, 0}, {&__pyx_kp_u_value_ValueError, __pyx_k_value_ValueError, sizeof(__pyx_k_value_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_value_out, __pyx_k_value_out, sizeof(__pyx_k_value_out), 0, 0, 1, 1}, {&__pyx_n_s_vdpDevice, __pyx_k_vdpDevice, sizeof(__pyx_k_vdpDevice), 0, 0, 1, 1}, {&__pyx_n_s_vdpGetProcAddress, __pyx_k_vdpGetProcAddress, sizeof(__pyx_k_vdpGetProcAddress), 0, 0, 1, 1}, {&__pyx_n_s_vdpSurface, __pyx_k_vdpSurface, sizeof(__pyx_k_vdpSurface), 0, 0, 1, 1}, {&__pyx_n_s_voidStarHelperdata, __pyx_k_voidStarHelperdata, sizeof(__pyx_k_voidStarHelperdata), 0, 0, 1, 1}, {&__pyx_kp_u_w, __pyx_k_w, sizeof(__pyx_k_w), 0, 1, 0, 0}, {&__pyx_n_s_wOffset, __pyx_k_wOffset, sizeof(__pyx_k_wOffset), 0, 0, 1, 1}, {&__pyx_n_s_wOffsetDst, __pyx_k_wOffsetDst, sizeof(__pyx_k_wOffsetDst), 0, 0, 1, 1}, {&__pyx_n_s_wOffsetSrc, __pyx_k_wOffsetSrc, sizeof(__pyx_k_wOffsetSrc), 0, 0, 1, 1}, {&__pyx_n_s_w_2, __pyx_k_w_2, sizeof(__pyx_k_w_2), 0, 0, 1, 1}, {&__pyx_kp_u_w_ValueError, __pyx_k_w_ValueError, sizeof(__pyx_k_w_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_warpSize, __pyx_k_warpSize, sizeof(__pyx_k_warpSize), 0, 1, 0, 0}, {&__pyx_n_s_warpSize_2, __pyx_k_warpSize_2, sizeof(__pyx_k_warpSize_2), 0, 0, 1, 1}, {&__pyx_kp_u_warpSize_ValueError, __pyx_k_warpSize_ValueError, sizeof(__pyx_k_warpSize_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_width, __pyx_k_width, sizeof(__pyx_k_width), 0, 1, 0, 0}, {&__pyx_n_s_width_2, __pyx_k_width_2, sizeof(__pyx_k_width_2), 0, 0, 1, 1}, {&__pyx_kp_u_width_ValueError, __pyx_k_width_ValueError, sizeof(__pyx_k_width_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_win32, __pyx_k_win32, sizeof(__pyx_k_win32), 0, 1, 0, 0}, {&__pyx_kp_u_win32SecurityAttributes, __pyx_k_win32SecurityAttributes, sizeof(__pyx_k_win32SecurityAttributes), 0, 1, 0, 0}, {&__pyx_n_s_win32SecurityAttributes_2, __pyx_k_win32SecurityAttributes_2, sizeof(__pyx_k_win32SecurityAttributes_2), 0, 0, 1, 1}, {&__pyx_kp_u_win32SecurityAttributes_ValueErr, __pyx_k_win32SecurityAttributes_ValueErr, sizeof(__pyx_k_win32SecurityAttributes_ValueErr), 0, 1, 0, 0}, {&__pyx_n_s_win32_2, __pyx_k_win32_2, sizeof(__pyx_k_win32_2), 0, 0, 1, 1}, {&__pyx_kp_u_win32_ValueError, __pyx_k_win32_ValueError, sizeof(__pyx_k_win32_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_wrapper, __pyx_k_wrapper, sizeof(__pyx_k_wrapper), 0, 0, 1, 1}, {&__pyx_kp_u_x, __pyx_k_x, sizeof(__pyx_k_x), 0, 1, 0, 0}, {&__pyx_n_s_x_2, __pyx_k_x_2, sizeof(__pyx_k_x_2), 0, 0, 1, 1}, {&__pyx_n_u_x_2, __pyx_k_x_2, sizeof(__pyx_k_x_2), 0, 1, 0, 1}, {&__pyx_kp_u_x_ValueError, __pyx_k_x_ValueError, sizeof(__pyx_k_x_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_xsize, __pyx_k_xsize, sizeof(__pyx_k_xsize), 0, 1, 0, 0}, {&__pyx_n_s_xsize_2, __pyx_k_xsize_2, sizeof(__pyx_k_xsize_2), 0, 0, 1, 1}, {&__pyx_kp_u_xsize_ValueError, __pyx_k_xsize_ValueError, sizeof(__pyx_k_xsize_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_xsz, __pyx_k_xsz, sizeof(__pyx_k_xsz), 0, 0, 1, 1}, {&__pyx_kp_u_y, __pyx_k_y, sizeof(__pyx_k_y), 0, 1, 0, 0}, {&__pyx_n_s_y_2, __pyx_k_y_2, sizeof(__pyx_k_y_2), 0, 0, 1, 1}, {&__pyx_kp_u_y_ValueError, __pyx_k_y_ValueError, sizeof(__pyx_k_y_ValueError), 0, 1, 0, 0}, {&__pyx_kp_u_ysize, __pyx_k_ysize, sizeof(__pyx_k_ysize), 0, 1, 0, 0}, {&__pyx_n_s_ysize_2, __pyx_k_ysize_2, sizeof(__pyx_k_ysize_2), 0, 0, 1, 1}, {&__pyx_kp_u_ysize_ValueError, __pyx_k_ysize_ValueError, sizeof(__pyx_k_ysize_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_ysz, __pyx_k_ysz, sizeof(__pyx_k_ysz), 0, 0, 1, 1}, {&__pyx_kp_u_z, __pyx_k_z, sizeof(__pyx_k_z), 0, 1, 0, 0}, {&__pyx_n_s_z_2, __pyx_k_z_2, sizeof(__pyx_k_z_2), 0, 0, 1, 1}, {&__pyx_kp_u_z_ValueError, __pyx_k_z_ValueError, sizeof(__pyx_k_z_ValueError), 0, 1, 0, 0}, {&__pyx_n_s_zip, __pyx_k_zip, sizeof(__pyx_k_zip), 0, 0, 1, 1}, {0, 0, 0, 0, 0, 0, 0} }; return __Pyx_InitStrings(__pyx_string_tab); } /* #### Code section: cached_builtins ### */ static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(void) { __pyx_builtin_hex = __Pyx_GetBuiltinName(__pyx_n_s_hex); if (!__pyx_builtin_hex) __PYX_ERR(0, 3655, __pyx_L1_error) __pyx_builtin_TypeError = __Pyx_GetBuiltinName(__pyx_n_s_TypeError); if (!__pyx_builtin_TypeError) __PYX_ERR(1, 2, __pyx_L1_error) __pyx_builtin_ValueError = __Pyx_GetBuiltinName(__pyx_n_s_ValueError); if (!__pyx_builtin_ValueError) __PYX_ERR(0, 4104, __pyx_L1_error) __pyx_builtin_enumerate = __Pyx_GetBuiltinName(__pyx_n_s_enumerate); if (!__pyx_builtin_enumerate) __PYX_ERR(0, 6594, __pyx_L1_error) __pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_range) __PYX_ERR(0, 6716, __pyx_L1_error) __pyx_builtin_MemoryError = __Pyx_GetBuiltinName(__pyx_n_s_MemoryError); if (!__pyx_builtin_MemoryError) __PYX_ERR(0, 6729, __pyx_L1_error) __pyx_builtin_IndexError = __Pyx_GetBuiltinName(__pyx_n_s_IndexError); if (!__pyx_builtin_IndexError) __PYX_ERR(0, 12146, __pyx_L1_error) __pyx_builtin_RuntimeError = __Pyx_GetBuiltinName(__pyx_n_s_RuntimeError); if (!__pyx_builtin_RuntimeError) __PYX_ERR(0, 15688, __pyx_L1_error) __pyx_builtin_zip = __Pyx_GetBuiltinName(__pyx_n_s_zip); if (!__pyx_builtin_zip) __PYX_ERR(0, 21270, __pyx_L1_error) __pyx_builtin_OverflowError = __Pyx_GetBuiltinName(__pyx_n_s_OverflowError); if (!__pyx_builtin_OverflowError) __PYX_ERR(1, 83, __pyx_L1_error) return 0; __pyx_L1_error:; return -1; } /* #### Code section: cached_constants ### */ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0); /* "cuda/cudart.pyx":15651 * 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[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") # <<<<<<<<<<<<<< * dependencies = [] if dependencies is None else dependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in dependencies): */ __pyx_tuple__398 = PyTuple_Pack(1, __pyx_kp_u_Argument_dependencyData_is_not_i); if (unlikely(!__pyx_tuple__398)) __PYX_ERR(0, 15651, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__398); __Pyx_GIVEREF(__pyx_tuple__398); /* "cuda/cudart.pyx":15654 * dependencies = [] if dependencies is None else dependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in dependencies): * raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") # <<<<<<<<<<<<<< * cdef ccudart.cudaGraph_t cgraph * if graph is None: */ __pyx_tuple__399 = PyTuple_Pack(1, __pyx_kp_u_Argument_dependencies_is_not_ins); if (unlikely(!__pyx_tuple__399)) __PYX_ERR(0, 15654, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__399); __Pyx_GIVEREF(__pyx_tuple__399); /* "cuda/cudart.pyx":17128 * 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[ccudart.cudaExternalSemaphoreSignalParams,] or List[ccudart.cudaExternalSemaphoreSignalParams,]") # <<<<<<<<<<<<<< * extSemArray = [] if extSemArray is None else extSemArray * if not all(isinstance(_x, (cudaExternalSemaphore_t,)) for _x in extSemArray): */ __pyx_tuple__422 = PyTuple_Pack(1, __pyx_kp_u_Argument_paramsArray_is_not_inst); if (unlikely(!__pyx_tuple__422)) __PYX_ERR(0, 17128, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__422); __Pyx_GIVEREF(__pyx_tuple__422); /* "cuda/cudart.pyx":17131 * 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[ccudart.cudaExternalSemaphore_t,] or List[ccudart.cudaExternalSemaphore_t,]") # <<<<<<<<<<<<<< * cdef ccudart.cudaExternalSemaphore_t* cextSemArray = NULL * if len(extSemArray) > 0: */ __pyx_tuple__423 = PyTuple_Pack(1, __pyx_kp_u_Argument_extSemArray_is_not_inst); if (unlikely(!__pyx_tuple__423)) __PYX_ERR(0, 17131, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__423); __Pyx_GIVEREF(__pyx_tuple__423); /* "cuda/cudart.pyx":17250 * 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[ccudart.cudaExternalSemaphoreWaitParams,] or List[ccudart.cudaExternalSemaphoreWaitParams,]") # <<<<<<<<<<<<<< * extSemArray = [] if extSemArray is None else extSemArray * if not all(isinstance(_x, (cudaExternalSemaphore_t,)) for _x in extSemArray): */ __pyx_tuple__425 = PyTuple_Pack(1, __pyx_kp_u_Argument_paramsArray_is_not_inst_2); if (unlikely(!__pyx_tuple__425)) __PYX_ERR(0, 17250, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__425); __Pyx_GIVEREF(__pyx_tuple__425); /* "cuda/cudart.pyx":21267 * 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[ccudart.cudaMemRangeAttribute] or List[ccudart.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_tuple__487 = PyTuple_Pack(1, __pyx_kp_u_Argument_attributes_is_not_insta); if (unlikely(!__pyx_tuple__487)) __PYX_ERR(0, 21267, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__487); __Pyx_GIVEREF(__pyx_tuple__487); /* "cuda/cudart.pyx":21269 * raise TypeError("Argument 'attributes' is not instance of type (expected Tuple[ccudart.cudaMemRangeAttribute] or List[ccudart.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 = [utils.HelperCUmem_range_attribute(pyattributes, pydataSizes) for (pyattributes, pydataSizes) in zip(attributes, dataSizes)] * cdef utils.InputVoidPtrPtrHelper voidStarHelperdata = utils.InputVoidPtrPtrHelper(pylist) */ __pyx_tuple__488 = PyTuple_Pack(1, __pyx_kp_u_Argument_dataSizes_is_not_instan); if (unlikely(!__pyx_tuple__488)) __PYX_ERR(0, 21269, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__488); __Pyx_GIVEREF(__pyx_tuple__488); /* "cuda/cudart.pyx":21937 * 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[ccudart.cudaMemAccessDesc,] or List[ccudart.cudaMemAccessDesc,]") # <<<<<<<<<<<<<< * cdef ccudart.cudaMemPool_t cmemPool * if memPool is None: */ __pyx_tuple__500 = PyTuple_Pack(1, __pyx_kp_u_Argument_descList_is_not_instanc); if (unlikely(!__pyx_tuple__500)) __PYX_ERR(0, 21937, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__500); __Pyx_GIVEREF(__pyx_tuple__500); /* "cuda/cudart.pyx":23588 * pDependencies = [] if pDependencies is None else pDependencies * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in pDependencies): * raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") # <<<<<<<<<<<<<< * cdef ccudart.cudaGraph_t cgraph * if graph is None: */ __pyx_tuple__534 = PyTuple_Pack(1, __pyx_kp_u_Argument_pDependencies_is_not_in); if (unlikely(!__pyx_tuple__534)) __PYX_ERR(0, 23588, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__534); __Pyx_GIVEREF(__pyx_tuple__534); /* "cuda/cudart.pyx":26183 * to = [] if to is None else to * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in to): * raise TypeError("Argument 'to' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") # <<<<<<<<<<<<<< * from_ = [] if from_ is None else from_ * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in from_): */ __pyx_tuple__585 = PyTuple_Pack(1, __pyx_kp_u_Argument_to_is_not_instance_of_t); if (unlikely(!__pyx_tuple__585)) __PYX_ERR(0, 26183, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__585); __Pyx_GIVEREF(__pyx_tuple__585); /* "cuda/cudart.pyx":26186 * from_ = [] if from_ is None else from_ * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in from_): * raise TypeError("Argument 'from_' is not instance of type (expected Tuple[ccudart.cudaGraphNode_t,cuda.CUgraphNode] or List[ccudart.cudaGraphNode_t,cuda.CUgraphNode]") # <<<<<<<<<<<<<< * cdef ccudart.cudaGraph_t cgraph * if graph is None: */ __pyx_tuple__586 = PyTuple_Pack(1, __pyx_kp_u_Argument_from__is_not_instance_o); if (unlikely(!__pyx_tuple__586)) __PYX_ERR(0, 26186, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__586); __Pyx_GIVEREF(__pyx_tuple__586); /* "cuda/cudart.pyx":26257 * 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[ccudart.cudaGraphEdgeData,] or List[ccudart.cudaGraphEdgeData,]") # <<<<<<<<<<<<<< * to = [] if to is None else to * if not all(isinstance(_x, (cudaGraphNode_t,cuda.CUgraphNode)) for _x in to): */ __pyx_tuple__588 = PyTuple_Pack(1, __pyx_kp_u_Argument_edgeData_is_not_instanc); if (unlikely(!__pyx_tuple__588)) __PYX_ERR(0, 26257, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__588); __Pyx_GIVEREF(__pyx_tuple__588); /* "cuda/cudart.pyx":20 * from cpython.buffer cimport PyObject_CheckBuffer, PyObject_GetBuffer, PyBuffer_Release, PyBUF_SIMPLE, PyBUF_ANY_CONTIGUOUS * from cpython.bytes cimport PyBytes_FromStringAndSize * import cuda.cuda # <<<<<<<<<<<<<< * * ctypedef unsigned long long signed_char_ptr */ __pyx_tuple__656 = PyTuple_Pack(2, __pyx_n_s_cuda, __pyx_n_s_cuda); if (unlikely(!__pyx_tuple__656)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__656); __Pyx_GIVEREF(__pyx_tuple__656); /* "cuda/cudart.pyx":3660 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_tuple__658 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__658)) __PYX_ERR(0, 3660, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__658); __Pyx_GIVEREF(__pyx_tuple__658); __pyx_codeobj__2 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 3660, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2)) __PYX_ERR(0, 3660, __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): */ __pyx_codeobj__3 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__3)) __PYX_ERR(1, 1, __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__" */ __pyx_tuple__659 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_pyx_state); if (unlikely(!__pyx_tuple__659)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__659); __Pyx_GIVEREF(__pyx_tuple__659); __pyx_codeobj__4 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__4)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":3688 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_codeobj__5 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 3688, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__5)) __PYX_ERR(0, 3688, __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): */ __pyx_codeobj__6 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__6)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__7 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__7)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":3716 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_codeobj__8 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 3716, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__8)) __PYX_ERR(0, 3716, __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): */ __pyx_codeobj__9 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__9)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__10 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__10)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":3744 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_codeobj__11 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 3744, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__11)) __PYX_ERR(0, 3744, __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): */ __pyx_codeobj__12 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__12)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__13 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__13)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":3772 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_codeobj__14 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 3772, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__14)) __PYX_ERR(0, 3772, __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): */ __pyx_codeobj__15 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__15)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__16 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__16)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":3800 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_codeobj__17 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 3800, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__17)) __PYX_ERR(0, 3800, __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): */ __pyx_codeobj__18 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__18)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__19 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__19)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":3828 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_codeobj__20 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 3828, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__20)) __PYX_ERR(0, 3828, __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): */ __pyx_codeobj__21 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__21)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__22 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__22)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":3856 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_codeobj__23 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 3856, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__23)) __PYX_ERR(0, 3856, __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): */ __pyx_codeobj__24 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__24)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__25 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__25)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":3884 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_codeobj__26 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 3884, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__26)) __PYX_ERR(0, 3884, __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): */ __pyx_codeobj__27 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__27)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__28 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__28)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":3912 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_codeobj__29 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 3912, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__29)) __PYX_ERR(0, 3912, __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): */ __pyx_codeobj__30 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__30)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__31 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__31)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":3938 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_codeobj__32 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 3938, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__32)) __PYX_ERR(0, 3938, __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): */ __pyx_codeobj__33 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__33)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__34 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__34)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":3964 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_codeobj__35 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 3964, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__35)) __PYX_ERR(0, 3964, __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): */ __pyx_codeobj__36 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__36)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__37 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__37)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":3990 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_codeobj__38 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 3990, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__38)) __PYX_ERR(0, 3990, __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): */ __pyx_codeobj__39 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__39)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__40 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__40)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":4016 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_codeobj__41 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 4016, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__41)) __PYX_ERR(0, 4016, __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): */ __pyx_codeobj__42 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__42)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__43 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__43)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":4042 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_codeobj__44 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 4042, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__44)) __PYX_ERR(0, 4042, __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): */ __pyx_codeobj__45 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__45)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__46 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__46)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":4068 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_codeobj__47 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 4068, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__47)) __PYX_ERR(0, 4068, __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): */ __pyx_codeobj__48 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__48)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__49 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__49)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":4097 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__50 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 4097, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__50)) __PYX_ERR(0, 4097, __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): */ __pyx_codeobj__53 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__53)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__54 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__54)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":4168 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__55 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 4168, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__55)) __PYX_ERR(0, 4168, __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): */ __pyx_codeobj__56 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__56)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__57 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__57)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":4251 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].tileExtent * def __repr__(self): */ __pyx_codeobj__58 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 4251, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__58)) __PYX_ERR(0, 4251, __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): */ __pyx_codeobj__59 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__59)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__60 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__60)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":4322 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__61 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 4322, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__61)) __PYX_ERR(0, 4322, __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): */ __pyx_codeobj__63 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__63)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__64 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__64)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":4409 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__65 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 4409, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__65)) __PYX_ERR(0, 4409, __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): */ __pyx_codeobj__66 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__66)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__67 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__67)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":4478 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__68 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 4478, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__68)) __PYX_ERR(0, 4478, __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): */ __pyx_codeobj__69 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__69)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__70 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__70)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":4557 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__71 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 4557, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__71)) __PYX_ERR(0, 4557, __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): */ __pyx_codeobj__72 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__72)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__73 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__73)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":4624 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__74 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 4624, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__74)) __PYX_ERR(0, 4624, __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): */ __pyx_codeobj__75 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__75)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__76 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__76)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":4707 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__77 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 4707, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__77)) __PYX_ERR(0, 4707, __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): */ __pyx_codeobj__78 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__78)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__79 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__79)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":4842 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__80 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 4842, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__80)) __PYX_ERR(0, 4842, __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): */ __pyx_codeobj__81 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__81)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__82 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__82)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":4927 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__83 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 4927, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__83)) __PYX_ERR(0, 4927, __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): */ __pyx_codeobj__84 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__84)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__85 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__85)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":5078 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__86 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 5078, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__86)) __PYX_ERR(0, 5078, __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): */ __pyx_codeobj__87 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__87)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__88 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__88)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":5182 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__89 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 5182, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__89)) __PYX_ERR(0, 5182, __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): */ __pyx_codeobj__90 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__90)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__91 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__91)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":5295 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__92 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 5295, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__92)) __PYX_ERR(0, 5295, __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): */ __pyx_codeobj__93 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__93)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__94 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__94)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":5381 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__95 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 5381, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__95)) __PYX_ERR(0, 5381, __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): */ __pyx_codeobj__96 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__96)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__97 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__97)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":5446 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__98 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 5446, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__98)) __PYX_ERR(0, 5446, __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): */ __pyx_codeobj__99 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__99)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__100 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__100)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":5505 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].res.array * def __repr__(self): */ __pyx_codeobj__101 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 5505, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__101)) __PYX_ERR(0, 5505, __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): */ __pyx_codeobj__102 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__102)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__103 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__103)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":5553 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].res.mipmap * def __repr__(self): */ __pyx_codeobj__104 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 5553, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__104)) __PYX_ERR(0, 5553, __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): */ __pyx_codeobj__105 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__105)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__106 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__106)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":5605 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].res.linear * def __repr__(self): */ __pyx_codeobj__107 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 5605, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__107)) __PYX_ERR(0, 5605, __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): */ __pyx_codeobj__108 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__108)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__109 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__109)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":5673 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].res.pitch2D * def __repr__(self): */ __pyx_codeobj__110 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 5673, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__110)) __PYX_ERR(0, 5673, __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): */ __pyx_codeobj__111 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__111)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__112 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__112)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":5762 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].res * def __repr__(self): */ __pyx_codeobj__113 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 5762, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__113)) __PYX_ERR(0, 5762, __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): */ __pyx_codeobj__114 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__114)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__115 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__115)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":5839 * if self._val_ptr is not NULL: * free(self._val_ptr) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__116 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 5839, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__116)) __PYX_ERR(0, 5839, __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): */ __pyx_codeobj__117 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__117)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__118 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__118)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":5906 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__119 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 5906, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__119)) __PYX_ERR(0, 5906, __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): */ __pyx_codeobj__120 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__120)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__121 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__121)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":6036 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__122 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 6036, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__122)) __PYX_ERR(0, 6036, __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): */ __pyx_codeobj__123 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__123)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__124 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__124)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":6180 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__125 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 6180, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__125)) __PYX_ERR(0, 6180, __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): */ __pyx_codeobj__126 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__126)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__127 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__127)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":6388 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__128 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 6388, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__128)) __PYX_ERR(0, 6388, __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): */ __pyx_codeobj__129 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__129)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__130 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__130)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":6443 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__131 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 6443, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__131)) __PYX_ERR(0, 6443, __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): */ __pyx_codeobj__132 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__132)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__133 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__133)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":6514 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__134 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 6514, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__134)) __PYX_ERR(0, 6514, __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): */ __pyx_codeobj__135 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__135)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__136 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__136)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":6621 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__137 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 6621, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__137)) __PYX_ERR(0, 6621, __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): */ __pyx_codeobj__138 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__138)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__139 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__139)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":6680 * if self._accessDescs is not NULL: * free(self._accessDescs) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__140 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 6680, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__140)) __PYX_ERR(0, 6680, __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): */ __pyx_codeobj__141 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__141)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__142 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__142)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":6792 * if self._accessDescs is not NULL: * free(self._accessDescs) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__143 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 6792, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__143)) __PYX_ERR(0, 6792, __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): */ __pyx_codeobj__144 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__144)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__145 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__145)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":6891 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__146 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 6891, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__146)) __PYX_ERR(0, 6891, __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): */ __pyx_codeobj__147 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__147)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__148 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__148)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":6933 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__149 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 6933, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__149)) __PYX_ERR(0, 6933, __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): */ __pyx_codeobj__150 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__150)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__151 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__151)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":7185 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__152 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 7185, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__152)) __PYX_ERR(0, 7185, __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): */ __pyx_codeobj__153 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__153)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__154 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__154)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":8190 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__155 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 8190, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__155)) __PYX_ERR(0, 8190, __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): */ __pyx_codeobj__156 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__156)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__157 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__157)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":8244 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__158 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 8244, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__158)) __PYX_ERR(0, 8244, __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): */ __pyx_codeobj__159 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__159)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__160 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__160)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":8296 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__161 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 8296, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__161)) __PYX_ERR(0, 8296, __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): */ __pyx_codeobj__162 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__162)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__163 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__163)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":8348 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].handle.win32 * def __repr__(self): */ __pyx_codeobj__164 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 8348, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__164)) __PYX_ERR(0, 8348, __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): */ __pyx_codeobj__165 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__165)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__166 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__166)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":8403 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].handle * def __repr__(self): */ __pyx_codeobj__167 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 8403, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__167)) __PYX_ERR(0, 8403, __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): */ __pyx_codeobj__168 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__168)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__169 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__169)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":8475 * if self._val_ptr is not NULL: * free(self._val_ptr) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__170 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 8475, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__170)) __PYX_ERR(0, 8475, __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): */ __pyx_codeobj__171 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__171)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__172 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__172)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":8552 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__173 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 8552, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__173)) __PYX_ERR(0, 8552, __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): */ __pyx_codeobj__174 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__174)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__175 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__175)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":8626 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__176 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 8626, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__176)) __PYX_ERR(0, 8626, __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): */ __pyx_codeobj__177 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__177)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__178 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__178)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":8707 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].handle.win32 * def __repr__(self): */ __pyx_codeobj__179 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 8707, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__179)) __PYX_ERR(0, 8707, __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): */ __pyx_codeobj__180 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__180)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__181 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__181)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":8762 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].handle * def __repr__(self): */ __pyx_codeobj__182 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 8762, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__182)) __PYX_ERR(0, 8762, __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): */ __pyx_codeobj__183 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__183)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__184 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__184)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":8832 * if self._val_ptr is not NULL: * free(self._val_ptr) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__185 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 8832, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__185)) __PYX_ERR(0, 8832, __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): */ __pyx_codeobj__186 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__186)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__187 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__187)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":8891 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].params.fence * def __repr__(self): */ __pyx_codeobj__188 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 8891, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__188)) __PYX_ERR(0, 8891, __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): */ __pyx_codeobj__189 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__189)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__190 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__190)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":8932 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].params.nvSciSync * def __repr__(self): */ __pyx_codeobj__191 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 8932, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__191)) __PYX_ERR(0, 8932, __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): */ __pyx_codeobj__192 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__192)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__193 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__193)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":8982 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].params.keyedMutex * def __repr__(self): */ __pyx_codeobj__194 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 8982, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__194)) __PYX_ERR(0, 8982, __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): */ __pyx_codeobj__195 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__195)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__196 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__196)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":9029 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].params * def __repr__(self): */ __pyx_codeobj__197 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 9029, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__197)) __PYX_ERR(0, 9029, __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): */ __pyx_codeobj__198 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__198)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__199 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__199)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":9113 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__200 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 9113, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__200)) __PYX_ERR(0, 9113, __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): */ __pyx_codeobj__201 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__201)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__202 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__202)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":9172 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].params.fence * def __repr__(self): */ __pyx_codeobj__203 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 9172, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__203)) __PYX_ERR(0, 9172, __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): */ __pyx_codeobj__204 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__204)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__205 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__205)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":9213 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].params.nvSciSync * def __repr__(self): */ __pyx_codeobj__206 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 9213, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__206)) __PYX_ERR(0, 9213, __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): */ __pyx_codeobj__207 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__207)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__208 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__208)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":9265 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].params.keyedMutex * def __repr__(self): */ __pyx_codeobj__209 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 9265, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__209)) __PYX_ERR(0, 9265, __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): */ __pyx_codeobj__210 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__210)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__211 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__211)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":9322 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].params * def __repr__(self): */ __pyx_codeobj__212 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 9322, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__212)) __PYX_ERR(0, 9322, __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): */ __pyx_codeobj__213 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__213)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__214 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__214)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":9406 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__215 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 9406, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__215)) __PYX_ERR(0, 9406, __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): */ __pyx_codeobj__216 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__216)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__217 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__217)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":9480 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__218 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 9480, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__218)) __PYX_ERR(0, 9480, __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): */ __pyx_codeobj__219 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__219)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__220 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__220)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":9586 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__221 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 9586, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__221)) __PYX_ERR(0, 9586, __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): */ __pyx_codeobj__222 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__222)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__223 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__223)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":9689 * if self._paramsArray is not NULL: * free(self._paramsArray) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__224 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 9689, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__224)) __PYX_ERR(0, 9689, __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): */ __pyx_codeobj__225 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__225)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__226 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__226)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":9790 * if self._paramsArray is not NULL: * free(self._paramsArray) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__227 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 9790, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__227)) __PYX_ERR(0, 9790, __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): */ __pyx_codeobj__228 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__228)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__229 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__229)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":9891 * if self._paramsArray is not NULL: * free(self._paramsArray) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__230 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 9891, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__230)) __PYX_ERR(0, 9891, __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): */ __pyx_codeobj__231 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__231)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__232 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__232)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":9992 * if self._paramsArray is not NULL: * free(self._paramsArray) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__233 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 9992, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__233)) __PYX_ERR(0, 9992, __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): */ __pyx_codeobj__234 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__234)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__235 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__235)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":10101 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__236 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 10101, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__236)) __PYX_ERR(0, 10101, __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): */ __pyx_codeobj__237 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__237)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__238 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__238)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":10183 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__239 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 10183, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__239)) __PYX_ERR(0, 10183, __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): */ __pyx_codeobj__240 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__240)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__241 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__241)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":10235 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__242 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 10235, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__242)) __PYX_ERR(0, 10235, __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): */ __pyx_codeobj__243 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__243)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__244 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__244)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":10287 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__245 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 10287, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__245)) __PYX_ERR(0, 10287, __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): */ __pyx_codeobj__246 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__246)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__247 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__247)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":10382 * if self._val_ptr is not NULL: * free(self._val_ptr) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__248 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 10382, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__248)) __PYX_ERR(0, 10382, __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): */ __pyx_codeobj__249 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__249)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__250 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__250)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":10600 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__251 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 10600, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__251)) __PYX_ERR(0, 10600, __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): */ __pyx_codeobj__252 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__252)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__253 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__253)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":10683 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__254 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 10683, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__254)) __PYX_ERR(0, 10683, __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): */ __pyx_codeobj__255 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__255)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__256 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__256)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":10782 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__257 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 10782, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__257)) __PYX_ERR(0, 10782, __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): */ __pyx_codeobj__258 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__258)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__259 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__259)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":10863 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].updateData.param * def __repr__(self): */ __pyx_codeobj__260 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 10863, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__260)) __PYX_ERR(0, 10863, __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): */ __pyx_codeobj__261 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__261)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__262 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__262)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":10928 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].updateData * def __repr__(self): */ __pyx_codeobj__263 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 10928, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__263)) __PYX_ERR(0, 10928, __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): */ __pyx_codeobj__264 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__264)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__265 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__265)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":11000 * if self._val_ptr is not NULL: * free(self._val_ptr) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__266 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 11000, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__266)) __PYX_ERR(0, 11000, __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): */ __pyx_codeobj__267 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__267)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__268 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__268)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":11080 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__269 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 11080, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__269)) __PYX_ERR(0, 11080, __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): */ __pyx_codeobj__270 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__270)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__271 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__271)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":11133 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].clusterDim * def __repr__(self): */ __pyx_codeobj__272 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 11133, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__272)) __PYX_ERR(0, 11133, __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): */ __pyx_codeobj__273 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__273)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__274 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__274)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":11196 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].programmaticEvent * def __repr__(self): */ __pyx_codeobj__275 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 11196, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__275)) __PYX_ERR(0, 11196, __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): */ __pyx_codeobj__276 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__276)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__277 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__277)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":11266 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].launchCompletionEvent * def __repr__(self): */ __pyx_codeobj__278 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 11266, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__278)) __PYX_ERR(0, 11266, __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): */ __pyx_codeobj__279 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__279)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__280 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__280)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":11326 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].deviceUpdatableKernelNode * def __repr__(self): */ __pyx_codeobj__281 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 11326, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__281)) __PYX_ERR(0, 11326, __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): */ __pyx_codeobj__282 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__282)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__283 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__283)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":11449 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__284 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 11449, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__284)) __PYX_ERR(0, 11449, __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): */ __pyx_codeobj__285 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__285)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__286 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__286)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":11635 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__287 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 11635, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__287)) __PYX_ERR(0, 11635, __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): */ __pyx_codeobj__288 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__288)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__289 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__289)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":11684 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].info.overBudget * def __repr__(self): */ __pyx_codeobj__290 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 11684, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__290)) __PYX_ERR(0, 11684, __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): */ __pyx_codeobj__291 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__291)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__292 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__292)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":11723 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].info * def __repr__(self): */ __pyx_codeobj__293 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 11723, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__293)) __PYX_ERR(0, 11723, __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): */ __pyx_codeobj__294 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__294)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__295 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__295)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":11770 * if self._val_ptr is not NULL: * free(self._val_ptr) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__296 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 11770, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__296)) __PYX_ERR(0, 11770, __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): */ __pyx_codeobj__297 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__297)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__298 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__298)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":11847 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__299 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 11847, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__299)) __PYX_ERR(0, 11847, __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): */ __pyx_codeobj__300 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__300)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__301 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__301)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":12023 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__302 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 12023, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__302)) __PYX_ERR(0, 12023, __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): */ __pyx_codeobj__303 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__303)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__304 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__304)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":12124 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].frame * def __repr__(self): */ __pyx_codeobj__305 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 12124, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__305)) __PYX_ERR(0, 12124, __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): */ __pyx_codeobj__306 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__306)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__307 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__307)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":12205 * if self._val_ptr is not NULL: * free(self._val_ptr) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_codeobj__308 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 12205, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__308)) __PYX_ERR(0, 12205, __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): */ __pyx_codeobj__309 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__309)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__310 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__310)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":12295 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_codeobj__311 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 12295, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__311)) __PYX_ERR(0, 12295, __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): */ __pyx_codeobj__312 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__312)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__313 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__313)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":12322 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_codeobj__314 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 12322, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__314)) __PYX_ERR(0, 12322, __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): */ __pyx_codeobj__315 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__315)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__316 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__316)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":12349 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_codeobj__317 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 12349, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__317)) __PYX_ERR(0, 12349, __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): */ __pyx_codeobj__318 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__318)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__319 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__319)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":12374 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_codeobj__320 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 12374, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__320)) __PYX_ERR(0, 12374, __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): */ __pyx_codeobj__321 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__321)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__322 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__322)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":12399 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_codeobj__323 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 12399, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__323)) __PYX_ERR(0, 12399, __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): */ __pyx_codeobj__324 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__324)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__325 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__325)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":12424 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_codeobj__326 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 12424, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__326)) __PYX_ERR(0, 12424, __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): */ __pyx_codeobj__327 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__327)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__328 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__328)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":12449 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_codeobj__329 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 12449, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__329)) __PYX_ERR(0, 12449, __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): */ __pyx_codeobj__330 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__330)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__331 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__331)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":12474 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_codeobj__332 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 12474, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__332)) __PYX_ERR(0, 12474, __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): */ __pyx_codeobj__333 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__333)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__334 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__334)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":12499 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_codeobj__335 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 12499, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__335)) __PYX_ERR(0, 12499, __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): */ __pyx_codeobj__336 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__336)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__337 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__337)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":12524 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_codeobj__338 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getPtr, 12524, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__338)) __PYX_ERR(0, 12524, __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): */ __pyx_codeobj__339 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_reduce_cython, 1, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__339)) __PYX_ERR(1, 1, __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__" */ __pyx_codeobj__340 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__659, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_setstate_cython, 3, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__340)) __PYX_ERR(1, 3, __pyx_L1_error) /* "cuda/cudart.pyx":12527 * return self._ptr * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceReset(): * """ Destroy all allocations and reset all state on the current device in the current process. */ __pyx_tuple__660 = PyTuple_Pack(1, __pyx_n_s_err); if (unlikely(!__pyx_tuple__660)) __PYX_ERR(0, 12527, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__660); __Pyx_GIVEREF(__pyx_tuple__660); __pyx_codeobj__341 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__660, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaDeviceReset, 12527, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__341)) __PYX_ERR(0, 12527, __pyx_L1_error) /* "cuda/cudart.pyx":12570 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceSynchronize(): * """ Wait for compute device to finish. */ __pyx_codeobj__342 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__660, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaDeviceSynchronize, 12570, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__342)) __PYX_ERR(0, 12570, __pyx_L1_error) /* "cuda/cudart.pyx":12595 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceSetLimit(limit not None : cudaLimit, size_t value): * """ Set resource limits. */ __pyx_tuple__661 = PyTuple_Pack(4, __pyx_n_s_limit, __pyx_n_s_value, __pyx_n_s_climit, __pyx_n_s_err); if (unlikely(!__pyx_tuple__661)) __PYX_ERR(0, 12595, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__661); __Pyx_GIVEREF(__pyx_tuple__661); __pyx_codeobj__343 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__661, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaDeviceSetLimit, 12595, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__343)) __PYX_ERR(0, 12595, __pyx_L1_error) /* "cuda/cudart.pyx":12694 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceGetLimit(limit not None : cudaLimit): * """ Return resource limits. */ __pyx_tuple__662 = PyTuple_Pack(4, __pyx_n_s_limit, __pyx_n_s_pValue_2, __pyx_n_s_climit, __pyx_n_s_err); if (unlikely(!__pyx_tuple__662)) __PYX_ERR(0, 12694, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__662); __Pyx_GIVEREF(__pyx_tuple__662); __pyx_codeobj__344 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__662, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaDeviceGetLimit, 12694, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__344)) __PYX_ERR(0, 12694, __pyx_L1_error) /* "cuda/cudart.pyx":12748 * return (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_tuple__663 = PyTuple_Pack(5, __pyx_n_s_fmtDesc, __pyx_n_s_device_2, __pyx_n_s_maxWidthInElements, __pyx_n_s_cfmtDesc_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__663)) __PYX_ERR(0, 12748, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__663); __Pyx_GIVEREF(__pyx_tuple__663); __pyx_codeobj__345 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__663, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaDeviceGetTexture1DLinearMaxW, 12748, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__345)) __PYX_ERR(0, 12748, __pyx_L1_error) /* "cuda/cudart.pyx":12780 * return (cudaError_t(err), maxWidthInElements) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceGetCacheConfig(): * """ Returns the preferred cache configuration for the current device. */ __pyx_tuple__664 = PyTuple_Pack(2, __pyx_n_s_pCacheConfig, __pyx_n_s_err); if (unlikely(!__pyx_tuple__664)) __PYX_ERR(0, 12780, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__664); __Pyx_GIVEREF(__pyx_tuple__664); __pyx_codeobj__346 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__664, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaDeviceGetCacheConfig, 12780, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__346)) __PYX_ERR(0, 12780, __pyx_L1_error) /* "cuda/cudart.pyx":12824 * return (cudaError_t(err), cudaFuncCache(pCacheConfig)) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceGetStreamPriorityRange(): * """ Returns numerical values that correspond to the least and greatest stream priorities. */ __pyx_tuple__665 = PyTuple_Pack(3, __pyx_n_s_leastPriority, __pyx_n_s_greatestPriority, __pyx_n_s_err); if (unlikely(!__pyx_tuple__665)) __PYX_ERR(0, 12824, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__665); __Pyx_GIVEREF(__pyx_tuple__665); __pyx_codeobj__347 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__665, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaDeviceGetStreamPriorityRange, 12824, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__347)) __PYX_ERR(0, 12824, __pyx_L1_error) /* "cuda/cudart.pyx":12865 * return (cudaError_t(err), leastPriority, greatestPriority) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceSetCacheConfig(cacheConfig not None : cudaFuncCache): * """ Sets the preferred cache configuration for the current device. */ __pyx_tuple__666 = PyTuple_Pack(3, __pyx_n_s_cacheConfig, __pyx_n_s_ccacheConfig, __pyx_n_s_err); if (unlikely(!__pyx_tuple__666)) __PYX_ERR(0, 12865, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__666); __Pyx_GIVEREF(__pyx_tuple__666); __pyx_codeobj__348 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__666, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaDeviceSetCacheConfig, 12865, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__348)) __PYX_ERR(0, 12865, __pyx_L1_error) /* "cuda/cudart.pyx":12919 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceGetByPCIBusId(char* pciBusId): * """ Returns a handle to a compute device. */ __pyx_tuple__667 = PyTuple_Pack(3, __pyx_n_s_pciBusId, __pyx_n_s_device_2, __pyx_n_s_err); if (unlikely(!__pyx_tuple__667)) __PYX_ERR(0, 12919, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__667); __Pyx_GIVEREF(__pyx_tuple__667); __pyx_codeobj__349 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__667, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaDeviceGetByPCIBusId, 12919, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__349)) __PYX_ERR(0, 12919, __pyx_L1_error) /* "cuda/cudart.pyx":12948 * return (cudaError_t(err), device) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceGetPCIBusId(int length, int device): * """ Returns a PCI Bus Id string for the device. */ __pyx_tuple__668 = PyTuple_Pack(5, __pyx_n_s_length, __pyx_n_s_device_2, __pyx_n_s_pypciBusId, __pyx_n_s_pciBusId, __pyx_n_s_err); if (unlikely(!__pyx_tuple__668)) __PYX_ERR(0, 12948, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__668); __Pyx_GIVEREF(__pyx_tuple__668); __pyx_codeobj__350 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__668, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaDeviceGetPCIBusId, 12948, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__350)) __PYX_ERR(0, 12948, __pyx_L1_error) /* "cuda/cudart.pyx":12983 * return (cudaError_t(err), pypciBusId) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaIpcGetEventHandle(event): * """ Gets an interprocess handle for a previously allocated event. */ __pyx_tuple__669 = PyTuple_Pack(5, __pyx_n_s_event_2, __pyx_n_s_cevent, __pyx_n_s_pevent, __pyx_n_s_handle_2, __pyx_n_s_err); if (unlikely(!__pyx_tuple__669)) __PYX_ERR(0, 12983, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__669); __Pyx_GIVEREF(__pyx_tuple__669); __pyx_codeobj__352 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__669, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaIpcGetEventHandle, 12983, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__352)) __PYX_ERR(0, 12983, __pyx_L1_error) /* "cuda/cudart.pyx":13039 * return (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_tuple__670 = PyTuple_Pack(3, __pyx_n_s_handle_2, __pyx_n_s_event_2, __pyx_n_s_err); if (unlikely(!__pyx_tuple__670)) __PYX_ERR(0, 13039, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__670); __Pyx_GIVEREF(__pyx_tuple__670); __pyx_codeobj__353 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__670, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaIpcOpenEventHandle, 13039, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__353)) __PYX_ERR(0, 13039, __pyx_L1_error) /* "cuda/cudart.pyx":13080 * return (cudaError_t(err), event) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaIpcGetMemHandle(devPtr): * """ Gets an interprocess memory handle for an existing device memory allocation. */ __pyx_tuple__671 = PyTuple_Pack(5, __pyx_n_s_devPtr_2, __pyx_n_s_handle_2, __pyx_n_s_cdevPtr, __pyx_n_s_cdevPtr_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__671)) __PYX_ERR(0, 13080, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__671); __Pyx_GIVEREF(__pyx_tuple__671); __pyx_codeobj__354 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__671, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaIpcGetMemHandle, 13080, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__354)) __PYX_ERR(0, 13080, __pyx_L1_error) /* "cuda/cudart.pyx":13124 * return (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_tuple__672 = PyTuple_Pack(4, __pyx_n_s_handle_2, __pyx_n_s_flags_2, __pyx_n_s_devPtr_2, __pyx_n_s_err); if (unlikely(!__pyx_tuple__672)) __PYX_ERR(0, 13124, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__672); __Pyx_GIVEREF(__pyx_tuple__672); __pyx_codeobj__355 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__672, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaIpcOpenMemHandle, 13124, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__355)) __PYX_ERR(0, 13124, __pyx_L1_error) /* "cuda/cudart.pyx":13191 * return (cudaError_t(err), devPtr) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaIpcCloseMemHandle(devPtr): * """ Attempts to close memory mapped with cudaIpcOpenMemHandle. */ __pyx_tuple__673 = PyTuple_Pack(4, __pyx_n_s_devPtr_2, __pyx_n_s_cdevPtr, __pyx_n_s_cdevPtr_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__673)) __PYX_ERR(0, 13191, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__673); __Pyx_GIVEREF(__pyx_tuple__673); __pyx_codeobj__356 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__673, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaIpcCloseMemHandle, 13191, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__356)) __PYX_ERR(0, 13191, __pyx_L1_error) /* "cuda/cudart.pyx":13230 * return (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_tuple__674 = PyTuple_Pack(5, __pyx_n_s_target, __pyx_n_s_scope, __pyx_n_s_ctarget, __pyx_n_s_cscope, __pyx_n_s_err); if (unlikely(!__pyx_tuple__674)) __PYX_ERR(0, 13230, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__674); __Pyx_GIVEREF(__pyx_tuple__674); __pyx_codeobj__357 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__674, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaDeviceFlushGPUDirectRDMAWrit, 13230, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__357)) __PYX_ERR(0, 13230, __pyx_L1_error) /* "cuda/cudart.pyx":13269 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceRegisterAsyncNotification(int device, callbackFunc, userData): * """ Registers a callback function to receive async notifications. */ __pyx_tuple__675 = PyTuple_Pack(9, __pyx_n_s_device_2, __pyx_n_s_callbackFunc, __pyx_n_s_userData_2, __pyx_n_s_ccallbackFunc, __pyx_n_s_pcallbackFunc, __pyx_n_s_cuserData, __pyx_n_s_cuserData_ptr, __pyx_n_s_callback, __pyx_n_s_err); if (unlikely(!__pyx_tuple__675)) __PYX_ERR(0, 13269, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__675); __Pyx_GIVEREF(__pyx_tuple__675); __pyx_codeobj__358 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__675, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaDeviceRegisterAsyncNotificat, 13269, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__358)) __PYX_ERR(0, 13269, __pyx_L1_error) /* "cuda/cudart.pyx":13327 * return (cudaError_t(err), callback) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceUnregisterAsyncNotification(int device, callback): * """ Unregisters an async notification callback. */ __pyx_tuple__676 = PyTuple_Pack(5, __pyx_n_s_device_2, __pyx_n_s_callback, __pyx_n_s_ccallback, __pyx_n_s_pcallback, __pyx_n_s_err); if (unlikely(!__pyx_tuple__676)) __PYX_ERR(0, 13327, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__676); __Pyx_GIVEREF(__pyx_tuple__676); __pyx_codeobj__359 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__676, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaDeviceUnregisterAsyncNotific, 13327, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__359)) __PYX_ERR(0, 13327, __pyx_L1_error) /* "cuda/cudart.pyx":13363 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceGetSharedMemConfig(): * """ Returns the shared memory configuration for the current device. */ __pyx_tuple__677 = PyTuple_Pack(2, __pyx_n_s_pConfig, __pyx_n_s_err); if (unlikely(!__pyx_tuple__677)) __PYX_ERR(0, 13363, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__677); __Pyx_GIVEREF(__pyx_tuple__677); __pyx_codeobj__360 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__677, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaDeviceGetSharedMemConfig, 13363, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__360)) __PYX_ERR(0, 13363, __pyx_L1_error) /* "cuda/cudart.pyx":13401 * return (cudaError_t(err), cudaSharedMemConfig(pConfig)) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceSetSharedMemConfig(config not None : cudaSharedMemConfig): * """ Sets the shared memory configuration for the current device. */ __pyx_tuple__678 = PyTuple_Pack(3, __pyx_n_s_config, __pyx_n_s_cconfig, __pyx_n_s_err); if (unlikely(!__pyx_tuple__678)) __PYX_ERR(0, 13401, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__678); __Pyx_GIVEREF(__pyx_tuple__678); __pyx_codeobj__361 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__678, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaDeviceSetSharedMemConfig, 13401, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__361)) __PYX_ERR(0, 13401, __pyx_L1_error) /* "cuda/cudart.pyx":13454 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGetLastError(): * """ Returns the last error from a runtime call. */ __pyx_codeobj__362 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__660, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGetLastError, 13454, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__362)) __PYX_ERR(0, 13454, __pyx_L1_error) /* "cuda/cudart.pyx":13478 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaPeekAtLastError(): * """ Returns the last error from a runtime call. */ __pyx_codeobj__363 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__660, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaPeekAtLastError, 13478, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__363)) __PYX_ERR(0, 13478, __pyx_L1_error) /* "cuda/cudart.pyx":13503 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGetErrorName(error not None : cudaError_t): * """ Returns the string representation of an error code enum name. */ __pyx_tuple__679 = PyTuple_Pack(3, __pyx_n_s_error, __pyx_n_s_cerror, __pyx_n_s_err); if (unlikely(!__pyx_tuple__679)) __PYX_ERR(0, 13503, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__679); __Pyx_GIVEREF(__pyx_tuple__679); __pyx_codeobj__364 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__679, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGetErrorName, 13503, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__364)) __PYX_ERR(0, 13503, __pyx_L1_error) /* "cuda/cudart.pyx":13531 * return (cudaError_t.cudaSuccess, err) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGetErrorString(error not None : cudaError_t): * """ Returns the description string for an error code. */ __pyx_codeobj__365 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__679, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGetErrorString, 13531, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__365)) __PYX_ERR(0, 13531, __pyx_L1_error) /* "cuda/cudart.pyx":13558 * return (cudaError_t.cudaSuccess, err) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGetDeviceCount(): * """ Returns the number of compute-capable devices. */ __pyx_tuple__680 = PyTuple_Pack(2, __pyx_n_s_count, __pyx_n_s_err); if (unlikely(!__pyx_tuple__680)) __PYX_ERR(0, 13558, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__680); __Pyx_GIVEREF(__pyx_tuple__680); __pyx_codeobj__366 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__680, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGetDeviceCount, 13558, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__366)) __PYX_ERR(0, 13558, __pyx_L1_error) /* "cuda/cudart.pyx":13581 * return (cudaError_t(err), count) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGetDeviceProperties(int device): * """ Returns information about the compute-device. */ __pyx_tuple__681 = PyTuple_Pack(3, __pyx_n_s_device_2, __pyx_n_s_prop, __pyx_n_s_err); if (unlikely(!__pyx_tuple__681)) __PYX_ERR(0, 13581, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__681); __Pyx_GIVEREF(__pyx_tuple__681); __pyx_codeobj__367 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__681, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGetDeviceProperties, 13581, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__367)) __PYX_ERR(0, 13581, __pyx_L1_error) /* "cuda/cudart.pyx":13908 * return (cudaError_t(err), prop) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceGetAttribute(attr not None : cudaDeviceAttr, int device): * """ Returns information about the device. */ __pyx_tuple__682 = PyTuple_Pack(5, __pyx_n_s_attr, __pyx_n_s_device_2, __pyx_n_s_value, __pyx_n_s_cattr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__682)) __PYX_ERR(0, 13908, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__682); __Pyx_GIVEREF(__pyx_tuple__682); __pyx_codeobj__368 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__682, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaDeviceGetAttribute, 13908, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__368)) __PYX_ERR(0, 13908, __pyx_L1_error) /* "cuda/cudart.pyx":14275 * return (cudaError_t(err), value) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceGetDefaultMemPool(int device): * """ Returns the default mempool of a device. */ __pyx_tuple__683 = PyTuple_Pack(3, __pyx_n_s_device_2, __pyx_n_s_memPool, __pyx_n_s_err); if (unlikely(!__pyx_tuple__683)) __PYX_ERR(0, 14275, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__683); __Pyx_GIVEREF(__pyx_tuple__683); __pyx_codeobj__369 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__683, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaDeviceGetDefaultMemPool, 14275, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__369)) __PYX_ERR(0, 14275, __pyx_L1_error) /* "cuda/cudart.pyx":14304 * return (cudaError_t(err), memPool) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceSetMemPool(int device, memPool): * """ Sets the current memory pool of a device. */ __pyx_tuple__684 = PyTuple_Pack(5, __pyx_n_s_device_2, __pyx_n_s_memPool, __pyx_n_s_cmemPool, __pyx_n_s_pmemPool, __pyx_n_s_err); if (unlikely(!__pyx_tuple__684)) __PYX_ERR(0, 14304, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__684); __Pyx_GIVEREF(__pyx_tuple__684); __pyx_codeobj__370 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__684, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaDeviceSetMemPool, 14304, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__370)) __PYX_ERR(0, 14304, __pyx_L1_error) /* "cuda/cudart.pyx":14348 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceGetMemPool(int device): * """ Gets the current mempool for a device. */ __pyx_codeobj__371 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__683, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaDeviceGetMemPool, 14348, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__371)) __PYX_ERR(0, 14348, __pyx_L1_error) /* "cuda/cudart.pyx":14381 * return (cudaError_t(err), memPool) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, int device, int flags): * """ Return NvSciSync attributes that this device can support. */ __pyx_tuple__685 = PyTuple_Pack(6, __pyx_n_s_nvSciSyncAttrList, __pyx_n_s_device_2, __pyx_n_s_flags_2, __pyx_n_s_cnvSciSyncAttrList, __pyx_n_s_cnvSciSyncAttrList_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__685)) __PYX_ERR(0, 14381, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__685); __Pyx_GIVEREF(__pyx_tuple__685); __pyx_codeobj__372 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__685, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaDeviceGetNvSciSyncAttributes, 14381, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__372)) __PYX_ERR(0, 14381, __pyx_L1_error) /* "cuda/cudart.pyx":14463 * return (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_tuple__686 = PyTuple_Pack(6, __pyx_n_s_attr, __pyx_n_s_srcDevice_2, __pyx_n_s_dstDevice_2, __pyx_n_s_value, __pyx_n_s_cattr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__686)) __PYX_ERR(0, 14463, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__686); __Pyx_GIVEREF(__pyx_tuple__686); __pyx_codeobj__373 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__686, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaDeviceGetP2PAttribute, 14463, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__373)) __PYX_ERR(0, 14463, __pyx_L1_error) /* "cuda/cudart.pyx":14517 * return (cudaError_t(err), value) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaChooseDevice(prop : Optional[cudaDeviceProp]): * """ Select compute-device which best matches criteria. */ __pyx_tuple__687 = PyTuple_Pack(4, __pyx_n_s_prop, __pyx_n_s_device_2, __pyx_n_s_cprop_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__687)) __PYX_ERR(0, 14517, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__687); __Pyx_GIVEREF(__pyx_tuple__687); __pyx_codeobj__374 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__687, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaChooseDevice, 14517, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__374)) __PYX_ERR(0, 14517, __pyx_L1_error) /* "cuda/cudart.pyx":14545 * return (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_tuple__688 = PyTuple_Pack(4, __pyx_n_s_device_2, __pyx_n_s_deviceFlags, __pyx_n_s_flags_2, __pyx_n_s_err); if (unlikely(!__pyx_tuple__688)) __PYX_ERR(0, 14545, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__688); __Pyx_GIVEREF(__pyx_tuple__688); __pyx_codeobj__375 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__688, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaInitDevice, 14545, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__375)) __PYX_ERR(0, 14545, __pyx_L1_error) /* "cuda/cudart.pyx":14584 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaSetDevice(int device): * """ Set device to be used for GPU executions. */ __pyx_tuple__689 = PyTuple_Pack(2, __pyx_n_s_device_2, __pyx_n_s_err); if (unlikely(!__pyx_tuple__689)) __PYX_ERR(0, 14584, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__689); __Pyx_GIVEREF(__pyx_tuple__689); __pyx_codeobj__376 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__689, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaSetDevice, 14584, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__376)) __PYX_ERR(0, 14584, __pyx_L1_error) /* "cuda/cudart.pyx":14636 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGetDevice(): * """ Returns which device is currently being used. */ __pyx_codeobj__377 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__689, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGetDevice, 14636, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__377)) __PYX_ERR(0, 14636, __pyx_L1_error) /* "cuda/cudart.pyx":14658 * return (cudaError_t(err), device) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaSetDeviceFlags(unsigned int flags): * """ Sets flags to be used for device executions. */ __pyx_tuple__690 = PyTuple_Pack(2, __pyx_n_s_flags_2, __pyx_n_s_err); if (unlikely(!__pyx_tuple__690)) __PYX_ERR(0, 14658, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__690); __Pyx_GIVEREF(__pyx_tuple__690); __pyx_codeobj__378 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__690, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaSetDeviceFlags, 14658, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__378)) __PYX_ERR(0, 14658, __pyx_L1_error) /* "cuda/cudart.pyx":14741 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGetDeviceFlags(): * """ Gets the flags for the current device. */ __pyx_codeobj__379 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__690, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGetDeviceFlags, 14741, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__379)) __PYX_ERR(0, 14741, __pyx_L1_error) /* "cuda/cudart.pyx":14785 * return (cudaError_t(err), flags) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamCreate(): * """ Create an asynchronous stream. */ __pyx_tuple__691 = PyTuple_Pack(2, __pyx_n_s_pStream, __pyx_n_s_err); if (unlikely(!__pyx_tuple__691)) __PYX_ERR(0, 14785, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__691); __Pyx_GIVEREF(__pyx_tuple__691); __pyx_codeobj__380 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__691, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaStreamCreate, 14785, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__380)) __PYX_ERR(0, 14785, __pyx_L1_error) /* "cuda/cudart.pyx":14809 * return (cudaError_t(err), pStream) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamCreateWithFlags(unsigned int flags): * """ Create an asynchronous stream. */ __pyx_tuple__692 = PyTuple_Pack(3, __pyx_n_s_flags_2, __pyx_n_s_pStream, __pyx_n_s_err); if (unlikely(!__pyx_tuple__692)) __PYX_ERR(0, 14809, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__692); __Pyx_GIVEREF(__pyx_tuple__692); __pyx_codeobj__381 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__692, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaStreamCreateWithFlags, 14809, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__381)) __PYX_ERR(0, 14809, __pyx_L1_error) /* "cuda/cudart.pyx":14847 * return (cudaError_t(err), pStream) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamCreateWithPriority(unsigned int flags, int priority): * """ Create an asynchronous stream with the specified priority. */ __pyx_tuple__693 = PyTuple_Pack(4, __pyx_n_s_flags_2, __pyx_n_s_priority_2, __pyx_n_s_pStream, __pyx_n_s_err); if (unlikely(!__pyx_tuple__693)) __PYX_ERR(0, 14847, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__693); __Pyx_GIVEREF(__pyx_tuple__693); __pyx_codeobj__382 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__693, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaStreamCreateWithPriority, 14847, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__382)) __PYX_ERR(0, 14847, __pyx_L1_error) /* "cuda/cudart.pyx":14902 * return (cudaError_t(err), pStream) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamGetPriority(hStream): * """ Query the priority of a stream. */ __pyx_tuple__694 = PyTuple_Pack(5, __pyx_n_s_hStream, __pyx_n_s_chStream, __pyx_n_s_phStream, __pyx_n_s_priority_2, __pyx_n_s_err); if (unlikely(!__pyx_tuple__694)) __PYX_ERR(0, 14902, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__694); __Pyx_GIVEREF(__pyx_tuple__694); __pyx_codeobj__383 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__694, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaStreamGetPriority, 14902, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__383)) __PYX_ERR(0, 14902, __pyx_L1_error) /* "cuda/cudart.pyx":14943 * return (cudaError_t(err), priority) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamGetFlags(hStream): * """ Query the flags of a stream. */ __pyx_tuple__695 = PyTuple_Pack(5, __pyx_n_s_hStream, __pyx_n_s_chStream, __pyx_n_s_phStream, __pyx_n_s_flags_2, __pyx_n_s_err); if (unlikely(!__pyx_tuple__695)) __PYX_ERR(0, 14943, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__695); __Pyx_GIVEREF(__pyx_tuple__695); __pyx_codeobj__384 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__695, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaStreamGetFlags, 14943, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__384)) __PYX_ERR(0, 14943, __pyx_L1_error) /* "cuda/cudart.pyx":14980 * return (cudaError_t(err), flags) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamGetId(hStream): * """ Query the Id of a stream. */ __pyx_tuple__696 = PyTuple_Pack(5, __pyx_n_s_hStream, __pyx_n_s_chStream, __pyx_n_s_phStream, __pyx_n_s_streamId, __pyx_n_s_err); if (unlikely(!__pyx_tuple__696)) __PYX_ERR(0, 14980, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__696); __Pyx_GIVEREF(__pyx_tuple__696); __pyx_codeobj__385 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__696, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaStreamGetId, 14980, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__385)) __PYX_ERR(0, 14980, __pyx_L1_error) /* "cuda/cudart.pyx":15031 * return (cudaError_t(err), streamId) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaCtxResetPersistingL2Cache(): * """ Resets all persisting lines in cache to normal status. */ __pyx_codeobj__386 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__660, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaCtxResetPersistingL2Cache, 15031, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__386)) __PYX_ERR(0, 15031, __pyx_L1_error) /* "cuda/cudart.pyx":15050 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamCopyAttributes(dst, src): * """ Copies attributes from source stream to destination stream. */ __pyx_tuple__697 = PyTuple_Pack(7, __pyx_n_s_dst_2, __pyx_n_s_src, __pyx_n_s_csrc, __pyx_n_s_psrc, __pyx_n_s_cdst, __pyx_n_s_pdst, __pyx_n_s_err); if (unlikely(!__pyx_tuple__697)) __PYX_ERR(0, 15050, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__697); __Pyx_GIVEREF(__pyx_tuple__697); __pyx_codeobj__387 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__697, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaStreamCopyAttributes, 15050, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__387)) __PYX_ERR(0, 15050, __pyx_L1_error) /* "cuda/cudart.pyx":15094 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamGetAttribute(hStream, attr not None : cudaStreamAttrID): * """ Queries stream attribute. */ __pyx_tuple__698 = PyTuple_Pack(7, __pyx_n_s_hStream, __pyx_n_s_attr, __pyx_n_s_chStream, __pyx_n_s_phStream, __pyx_n_s_cattr, __pyx_n_s_value_out, __pyx_n_s_err); if (unlikely(!__pyx_tuple__698)) __PYX_ERR(0, 15094, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__698); __Pyx_GIVEREF(__pyx_tuple__698); __pyx_codeobj__388 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__698, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaStreamGetAttribute, 15094, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__388)) __PYX_ERR(0, 15094, __pyx_L1_error) /* "cuda/cudart.pyx":15133 * return (cudaError_t(err), value_out) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamSetAttribute(hStream, attr not None : cudaStreamAttrID, value : Optional[cudaStreamAttrValue]): * """ Sets stream attribute. */ __pyx_tuple__699 = PyTuple_Pack(8, __pyx_n_s_hStream, __pyx_n_s_attr, __pyx_n_s_value, __pyx_n_s_chStream, __pyx_n_s_phStream, __pyx_n_s_cattr, __pyx_n_s_cvalue_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__699)) __PYX_ERR(0, 15133, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__699); __Pyx_GIVEREF(__pyx_tuple__699); __pyx_codeobj__389 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__699, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaStreamSetAttribute, 15133, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__389)) __PYX_ERR(0, 15133, __pyx_L1_error) /* "cuda/cudart.pyx":15173 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamDestroy(stream): * """ Destroys and cleans up an asynchronous stream. */ __pyx_tuple__700 = PyTuple_Pack(4, __pyx_n_s_stream, __pyx_n_s_cstream, __pyx_n_s_pstream, __pyx_n_s_err); if (unlikely(!__pyx_tuple__700)) __PYX_ERR(0, 15173, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__700); __Pyx_GIVEREF(__pyx_tuple__700); __pyx_codeobj__390 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__700, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaStreamDestroy, 15173, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__390)) __PYX_ERR(0, 15173, __pyx_L1_error) /* "cuda/cudart.pyx":15210 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamWaitEvent(stream, event, unsigned int flags): * """ Make a compute stream wait on an event. */ __pyx_tuple__701 = PyTuple_Pack(8, __pyx_n_s_stream, __pyx_n_s_event_2, __pyx_n_s_flags_2, __pyx_n_s_cevent, __pyx_n_s_pevent, __pyx_n_s_cstream, __pyx_n_s_pstream, __pyx_n_s_err); if (unlikely(!__pyx_tuple__701)) __PYX_ERR(0, 15210, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__701); __Pyx_GIVEREF(__pyx_tuple__701); __pyx_codeobj__391 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__701, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaStreamWaitEvent, 15210, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__391)) __PYX_ERR(0, 15210, __pyx_L1_error) /* "cuda/cudart.pyx":15268 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamAddCallback(stream, callback, userData, unsigned int flags): * """ Add a callback to a compute stream. */ __pyx_tuple__702 = PyTuple_Pack(11, __pyx_n_s_stream, __pyx_n_s_callback, __pyx_n_s_userData_2, __pyx_n_s_flags_2, __pyx_n_s_ccallback, __pyx_n_s_pcallback, __pyx_n_s_cstream, __pyx_n_s_pstream, __pyx_n_s_cuserData, __pyx_n_s_cuserData_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__702)) __PYX_ERR(0, 15268, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__702); __Pyx_GIVEREF(__pyx_tuple__702); __pyx_codeobj__392 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__702, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaStreamAddCallback, 15268, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__392)) __PYX_ERR(0, 15268, __pyx_L1_error) /* "cuda/cudart.pyx":15362 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamSynchronize(stream): * """ Waits for stream tasks to complete. */ __pyx_codeobj__393 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__700, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaStreamSynchronize, 15362, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__393)) __PYX_ERR(0, 15362, __pyx_L1_error) /* "cuda/cudart.pyx":15399 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamQuery(stream): * """ Queries an asynchronous stream for completion status. */ __pyx_codeobj__394 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__700, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaStreamQuery, 15399, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__394)) __PYX_ERR(0, 15399, __pyx_L1_error) /* "cuda/cudart.pyx":15436 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamAttachMemAsync(stream, devPtr, size_t length, unsigned int flags): * """ Attach memory to a stream asynchronously. */ __pyx_tuple__703 = PyTuple_Pack(9, __pyx_n_s_stream, __pyx_n_s_devPtr_2, __pyx_n_s_length, __pyx_n_s_flags_2, __pyx_n_s_cstream, __pyx_n_s_pstream, __pyx_n_s_cdevPtr, __pyx_n_s_cdevPtr_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__703)) __PYX_ERR(0, 15436, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__703); __Pyx_GIVEREF(__pyx_tuple__703); __pyx_codeobj__395 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__703, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaStreamAttachMemAsync, 15436, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__395)) __PYX_ERR(0, 15436, __pyx_L1_error) /* "cuda/cudart.pyx":15544 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamBeginCapture(stream, mode not None : cudaStreamCaptureMode): * """ Begins graph capture on a stream. */ __pyx_tuple__704 = PyTuple_Pack(6, __pyx_n_s_stream, __pyx_n_s_mode, __pyx_n_s_cstream, __pyx_n_s_pstream, __pyx_n_s_cmode, __pyx_n_s_err); if (unlikely(!__pyx_tuple__704)) __PYX_ERR(0, 15544, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__704); __Pyx_GIVEREF(__pyx_tuple__704); __pyx_codeobj__396 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__704, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaStreamBeginCapture, 15544, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__396)) __PYX_ERR(0, 15544, __pyx_L1_error) /* "cuda/cudart.pyx":15598 * return (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_tuple__705 = PyTuple_Pack(18, __pyx_n_s_stream, __pyx_n_s_graph_2, __pyx_n_s_dependencies, __pyx_n_s_dependencyData, __pyx_n_s_numDependencies, __pyx_n_s_mode, __pyx_n_s_cgraph, __pyx_n_s_pgraph, __pyx_n_s_cstream, __pyx_n_s_pstream, __pyx_n_s_cdependencies, __pyx_n_s_idx, __pyx_n_s_cdependencyData, __pyx_n_s_cmode, __pyx_n_s_err, __pyx_n_s_genexpr, __pyx_n_s_genexpr, __pyx_n_s_genexpr); if (unlikely(!__pyx_tuple__705)) __PYX_ERR(0, 15598, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__705); __Pyx_GIVEREF(__pyx_tuple__705); __pyx_codeobj__397 = (PyObject*)__Pyx_PyCode_New(6, 0, 0, 18, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__705, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaStreamBeginCaptureToGraph, 15598, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__397)) __PYX_ERR(0, 15598, __pyx_L1_error) /* "cuda/cudart.pyx":15697 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaThreadExchangeStreamCaptureMode(mode not None : cudaStreamCaptureMode): * """ Swaps the stream capture interaction mode for a thread. */ __pyx_tuple__706 = PyTuple_Pack(3, __pyx_n_s_mode, __pyx_n_s_cmode, __pyx_n_s_err); if (unlikely(!__pyx_tuple__706)) __PYX_ERR(0, 15697, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__706); __Pyx_GIVEREF(__pyx_tuple__706); __pyx_codeobj__401 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__706, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaThreadExchangeStreamCaptureM, 15697, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__401)) __PYX_ERR(0, 15697, __pyx_L1_error) /* "cuda/cudart.pyx":15765 * return (cudaError_t(err), cudaStreamCaptureMode(cmode)) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamEndCapture(stream): * """ Ends capture on a stream, returning the captured graph. */ __pyx_tuple__707 = PyTuple_Pack(5, __pyx_n_s_stream, __pyx_n_s_cstream, __pyx_n_s_pstream, __pyx_n_s_pGraph, __pyx_n_s_err); if (unlikely(!__pyx_tuple__707)) __PYX_ERR(0, 15765, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__707); __Pyx_GIVEREF(__pyx_tuple__707); __pyx_codeobj__402 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__707, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaStreamEndCapture, 15765, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__402)) __PYX_ERR(0, 15765, __pyx_L1_error) /* "cuda/cudart.pyx":15808 * return (cudaError_t(err), pGraph) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamIsCapturing(stream): * """ Returns a stream's capture status. */ __pyx_tuple__708 = PyTuple_Pack(5, __pyx_n_s_stream, __pyx_n_s_cstream, __pyx_n_s_pstream, __pyx_n_s_pCaptureStatus, __pyx_n_s_err); if (unlikely(!__pyx_tuple__708)) __PYX_ERR(0, 15808, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__708); __Pyx_GIVEREF(__pyx_tuple__708); __pyx_codeobj__403 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__708, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaStreamIsCapturing, 15808, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__403)) __PYX_ERR(0, 15808, __pyx_L1_error) /* "cuda/cudart.pyx":15865 * return (cudaError_t(err), cudaStreamCaptureStatus(pCaptureStatus)) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamGetCaptureInfo(stream): * """ Query a stream's capture state. */ __pyx_tuple__709 = PyTuple_Pack(11, __pyx_n_s_stream, __pyx_n_s_cstream, __pyx_n_s_pstream, __pyx_n_s_captureStatus_out, __pyx_n_s_id_out, __pyx_n_s_graph_out, __pyx_n_s_cdependencies_out, __pyx_n_s_pydependencies_out, __pyx_n_s_numDependencies_out, __pyx_n_s_err, __pyx_n_s_idx); if (unlikely(!__pyx_tuple__709)) __PYX_ERR(0, 15865, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__709); __Pyx_GIVEREF(__pyx_tuple__709); __pyx_codeobj__404 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__709, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaStreamGetCaptureInfo, 15865, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__404)) __PYX_ERR(0, 15865, __pyx_L1_error) /* "cuda/cudart.pyx":15944 * return (cudaError_t(err), cudaStreamCaptureStatus(captureStatus_out), id_out, graph_out, pydependencies_out, numDependencies_out) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamGetCaptureInfo_v3(stream): * """ Query a stream's capture state (12.3+) */ __pyx_tuple__710 = PyTuple_Pack(14, __pyx_n_s_stream, __pyx_n_s_cstream, __pyx_n_s_pstream, __pyx_n_s_captureStatus_out, __pyx_n_s_id_out, __pyx_n_s_graph_out, __pyx_n_s_cdependencies_out, __pyx_n_s_pydependencies_out, __pyx_n_s_cedgeData_out, __pyx_n_s_pyedgeData_out, __pyx_n_s_numDependencies_out, __pyx_n_s_err, __pyx_n_s_idx, __pyx_n_s_idx); if (unlikely(!__pyx_tuple__710)) __PYX_ERR(0, 15944, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__710); __Pyx_GIVEREF(__pyx_tuple__710); __pyx_codeobj__405 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__710, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaStreamGetCaptureInfo_v3, 15944, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__405)) __PYX_ERR(0, 15944, __pyx_L1_error) /* "cuda/cudart.pyx":16039 * return (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]], size_t numDependencies, unsigned int flags): * """ Update the set of dependencies in a capturing stream (11.3+) */ __pyx_tuple__711 = PyTuple_Pack(11, __pyx_n_s_stream, __pyx_n_s_dependencies, __pyx_n_s_numDependencies, __pyx_n_s_flags_2, __pyx_n_s_cstream, __pyx_n_s_pstream, __pyx_n_s_cdependencies, __pyx_n_s_idx, __pyx_n_s_err, __pyx_n_s_genexpr, __pyx_n_s_genexpr); if (unlikely(!__pyx_tuple__711)) __PYX_ERR(0, 16039, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__711); __Pyx_GIVEREF(__pyx_tuple__711); __pyx_codeobj__406 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__711, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaStreamUpdateCaptureDependenc_4, 16039, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__406)) __PYX_ERR(0, 16039, __pyx_L1_error) /* "cuda/cudart.pyx":16110 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamUpdateCaptureDependencies_v2(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 (12.3+) */ __pyx_tuple__712 = PyTuple_Pack(14, __pyx_n_s_stream, __pyx_n_s_dependencies, __pyx_n_s_dependencyData, __pyx_n_s_numDependencies, __pyx_n_s_flags_2, __pyx_n_s_cstream, __pyx_n_s_pstream, __pyx_n_s_cdependencies, __pyx_n_s_idx, __pyx_n_s_cdependencyData, __pyx_n_s_err, __pyx_n_s_genexpr, __pyx_n_s_genexpr, __pyx_n_s_genexpr); if (unlikely(!__pyx_tuple__712)) __PYX_ERR(0, 16110, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__712); __Pyx_GIVEREF(__pyx_tuple__712); __pyx_codeobj__407 = (PyObject*)__Pyx_PyCode_New(5, 0, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__712, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaStreamUpdateCaptureDependenc_5, 16110, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__407)) __PYX_ERR(0, 16110, __pyx_L1_error) /* "cuda/cudart.pyx":16190 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEventCreate(): * """ Creates an event object. */ __pyx_tuple__713 = PyTuple_Pack(2, __pyx_n_s_event_2, __pyx_n_s_err); if (unlikely(!__pyx_tuple__713)) __PYX_ERR(0, 16190, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__713); __Pyx_GIVEREF(__pyx_tuple__713); __pyx_codeobj__408 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__713, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaEventCreate, 16190, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__408)) __PYX_ERR(0, 16190, __pyx_L1_error) /* "cuda/cudart.pyx":16212 * return (cudaError_t(err), event) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEventCreateWithFlags(unsigned int flags): * """ Creates an event object with the specified flags. */ __pyx_tuple__714 = PyTuple_Pack(3, __pyx_n_s_flags_2, __pyx_n_s_event_2, __pyx_n_s_err); if (unlikely(!__pyx_tuple__714)) __PYX_ERR(0, 16212, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__714); __Pyx_GIVEREF(__pyx_tuple__714); __pyx_codeobj__409 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__714, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaEventCreateWithFlags, 16212, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__409)) __PYX_ERR(0, 16212, __pyx_L1_error) /* "cuda/cudart.pyx":16258 * return (cudaError_t(err), event) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEventRecord(event, stream): * """ Records an event. */ __pyx_tuple__715 = PyTuple_Pack(7, __pyx_n_s_event_2, __pyx_n_s_stream, __pyx_n_s_cstream, __pyx_n_s_pstream, __pyx_n_s_cevent, __pyx_n_s_pevent, __pyx_n_s_err); if (unlikely(!__pyx_tuple__715)) __PYX_ERR(0, 16258, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__715); __Pyx_GIVEREF(__pyx_tuple__715); __pyx_codeobj__410 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__715, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaEventRecord, 16258, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__410)) __PYX_ERR(0, 16258, __pyx_L1_error) /* "cuda/cudart.pyx":16315 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEventRecordWithFlags(event, stream, unsigned int flags): * """ Records an event. */ __pyx_tuple__716 = PyTuple_Pack(8, __pyx_n_s_event_2, __pyx_n_s_stream, __pyx_n_s_flags_2, __pyx_n_s_cstream, __pyx_n_s_pstream, __pyx_n_s_cevent, __pyx_n_s_pevent, __pyx_n_s_err); if (unlikely(!__pyx_tuple__716)) __PYX_ERR(0, 16315, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__716); __Pyx_GIVEREF(__pyx_tuple__716); __pyx_codeobj__411 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__716, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaEventRecordWithFlags, 16315, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__411)) __PYX_ERR(0, 16315, __pyx_L1_error) /* "cuda/cudart.pyx":16381 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEventQuery(event): * """ Queries an event's status. */ __pyx_tuple__717 = PyTuple_Pack(4, __pyx_n_s_event_2, __pyx_n_s_cevent, __pyx_n_s_pevent, __pyx_n_s_err); if (unlikely(!__pyx_tuple__717)) __PYX_ERR(0, 16381, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__717); __Pyx_GIVEREF(__pyx_tuple__717); __pyx_codeobj__412 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__717, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaEventQuery, 16381, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__412)) __PYX_ERR(0, 16381, __pyx_L1_error) /* "cuda/cudart.pyx":16423 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEventSynchronize(event): * """ Waits for an event to complete. */ __pyx_codeobj__413 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__717, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaEventSynchronize, 16423, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__413)) __PYX_ERR(0, 16423, __pyx_L1_error) /* "cuda/cudart.pyx":16464 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEventDestroy(event): * """ Destroys an event object. */ __pyx_codeobj__414 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__717, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaEventDestroy, 16464, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__414)) __PYX_ERR(0, 16464, __pyx_L1_error) /* "cuda/cudart.pyx":16502 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEventElapsedTime(start, end): * """ Computes the elapsed time between events. */ __pyx_tuple__718 = PyTuple_Pack(8, __pyx_n_s_start, __pyx_n_s_end, __pyx_n_s_cend, __pyx_n_s_pend, __pyx_n_s_cstart, __pyx_n_s_pstart, __pyx_n_s_ms, __pyx_n_s_err); if (unlikely(!__pyx_tuple__718)) __PYX_ERR(0, 16502, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__718); __Pyx_GIVEREF(__pyx_tuple__718); __pyx_codeobj__415 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__718, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaEventElapsedTime, 16502, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__415)) __PYX_ERR(0, 16502, __pyx_L1_error) /* "cuda/cudart.pyx":16567 * return (cudaError_t(err), ms) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaImportExternalMemory(memHandleDesc : Optional[cudaExternalMemoryHandleDesc]): * """ Imports an external memory object. */ __pyx_tuple__719 = PyTuple_Pack(4, __pyx_n_s_memHandleDesc, __pyx_n_s_extMem_out, __pyx_n_s_cmemHandleDesc_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__719)) __PYX_ERR(0, 16567, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__719); __Pyx_GIVEREF(__pyx_tuple__719); __pyx_codeobj__416 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__719, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaImportExternalMemory, 16567, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__416)) __PYX_ERR(0, 16567, __pyx_L1_error) /* "cuda/cudart.pyx":16715 * return (cudaError_t(err), extMem_out) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaExternalMemoryGetMappedBuffer(extMem, bufferDesc : Optional[cudaExternalMemoryBufferDesc]): * """ Maps a buffer onto an imported memory object. */ __pyx_tuple__720 = PyTuple_Pack(7, __pyx_n_s_extMem, __pyx_n_s_bufferDesc, __pyx_n_s_cextMem, __pyx_n_s_pextMem, __pyx_n_s_devPtr_2, __pyx_n_s_cbufferDesc_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__720)) __PYX_ERR(0, 16715, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__720); __Pyx_GIVEREF(__pyx_tuple__720); __pyx_codeobj__417 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__720, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaExternalMemoryGetMappedBuffe, 16715, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__417)) __PYX_ERR(0, 16715, __pyx_L1_error) /* "cuda/cudart.pyx":16778 * return (cudaError_t(err), devPtr) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaExternalMemoryGetMappedMipmappedArray(extMem, mipmapDesc : Optional[cudaExternalMemoryMipmappedArrayDesc]): * """ Maps a CUDA mipmapped array onto an external memory object. */ __pyx_tuple__721 = PyTuple_Pack(7, __pyx_n_s_extMem, __pyx_n_s_mipmapDesc, __pyx_n_s_cextMem, __pyx_n_s_pextMem, __pyx_n_s_mipmap_2, __pyx_n_s_cmipmapDesc_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__721)) __PYX_ERR(0, 16778, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__721); __Pyx_GIVEREF(__pyx_tuple__721); __pyx_codeobj__418 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__721, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaExternalMemoryGetMappedMipma, 16778, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__418)) __PYX_ERR(0, 16778, __pyx_L1_error) /* "cuda/cudart.pyx":16845 * return (cudaError_t(err), mipmap) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDestroyExternalMemory(extMem): * """ Destroys an external memory object. */ __pyx_tuple__722 = PyTuple_Pack(4, __pyx_n_s_extMem, __pyx_n_s_cextMem, __pyx_n_s_pextMem, __pyx_n_s_err); if (unlikely(!__pyx_tuple__722)) __PYX_ERR(0, 16845, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__722); __Pyx_GIVEREF(__pyx_tuple__722); __pyx_codeobj__419 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__722, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaDestroyExternalMemory, 16845, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__419)) __PYX_ERR(0, 16845, __pyx_L1_error) /* "cuda/cudart.pyx":16880 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaImportExternalSemaphore(semHandleDesc : Optional[cudaExternalSemaphoreHandleDesc]): * """ Imports an external semaphore. */ __pyx_tuple__723 = PyTuple_Pack(4, __pyx_n_s_semHandleDesc, __pyx_n_s_extSem_out, __pyx_n_s_csemHandleDesc_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__723)) __PYX_ERR(0, 16880, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__723); __Pyx_GIVEREF(__pyx_tuple__723); __pyx_codeobj__420 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__723, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaImportExternalSemaphore, 16880, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__420)) __PYX_ERR(0, 16880, __pyx_L1_error) /* "cuda/cudart.pyx":17023 * return (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_tuple__724 = PyTuple_Pack(13, __pyx_n_s_extSemArray_2, __pyx_n_s_paramsArray_2, __pyx_n_s_numExtSems_2, __pyx_n_s_stream, __pyx_n_s_cstream, __pyx_n_s_pstream, __pyx_n_s_cextSemArray, __pyx_n_s_idx, __pyx_n_s_cparamsArray, __pyx_n_s_err, __pyx_n_s_genexpr, __pyx_n_s_genexpr, __pyx_n_s_genexpr); if (unlikely(!__pyx_tuple__724)) __PYX_ERR(0, 17023, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__724); __Pyx_GIVEREF(__pyx_tuple__724); __pyx_codeobj__421 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__724, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaSignalExternalSemaphoresAsyn_2, 17023, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__421)) __PYX_ERR(0, 17023, __pyx_L1_error) /* "cuda/cudart.pyx":17156 * return (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_codeobj__424 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__724, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaWaitExternalSemaphoresAsync_2, 17156, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__424)) __PYX_ERR(0, 17156, __pyx_L1_error) /* "cuda/cudart.pyx":17278 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDestroyExternalSemaphore(extSem): * """ Destroys an external semaphore. */ __pyx_tuple__725 = PyTuple_Pack(4, __pyx_n_s_extSem, __pyx_n_s_cextSem, __pyx_n_s_pextSem, __pyx_n_s_err); if (unlikely(!__pyx_tuple__725)) __PYX_ERR(0, 17278, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__725); __Pyx_GIVEREF(__pyx_tuple__725); __pyx_codeobj__426 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__725, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaDestroyExternalSemaphore, 17278, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__426)) __PYX_ERR(0, 17278, __pyx_L1_error) /* "cuda/cudart.pyx":17312 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaFuncSetCacheConfig(func, cacheConfig not None : cudaFuncCache): * """ Sets the preferred cache configuration for a device function. */ __pyx_tuple__726 = PyTuple_Pack(6, __pyx_n_s_func_2, __pyx_n_s_cacheConfig, __pyx_n_s_cfunc, __pyx_n_s_cfunc_ptr, __pyx_n_s_ccacheConfig, __pyx_n_s_err); if (unlikely(!__pyx_tuple__726)) __PYX_ERR(0, 17312, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__726); __Pyx_GIVEREF(__pyx_tuple__726); __pyx_codeobj__427 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__726, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaFuncSetCacheConfig, 17312, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__427)) __PYX_ERR(0, 17312, __pyx_L1_error) /* "cuda/cudart.pyx":17371 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaFuncGetAttributes(func): * """ Find out attributes for a given function. */ __pyx_tuple__727 = PyTuple_Pack(5, __pyx_n_s_func_2, __pyx_n_s_attr, __pyx_n_s_cfunc, __pyx_n_s_cfunc_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__727)) __PYX_ERR(0, 17371, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__727); __Pyx_GIVEREF(__pyx_tuple__727); __pyx_codeobj__428 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__727, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaFuncGetAttributes, 17371, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__428)) __PYX_ERR(0, 17371, __pyx_L1_error) /* "cuda/cudart.pyx":17409 * return (cudaError_t(err), attr) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaFuncSetAttribute(func, attr not None : cudaFuncAttribute, int value): * """ Set attributes for a given function. */ __pyx_tuple__728 = PyTuple_Pack(7, __pyx_n_s_func_2, __pyx_n_s_attr, __pyx_n_s_value, __pyx_n_s_cfunc, __pyx_n_s_cfunc_ptr, __pyx_n_s_cattr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__728)) __PYX_ERR(0, 17409, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__728); __Pyx_GIVEREF(__pyx_tuple__728); __pyx_codeobj__429 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__728, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaFuncSetAttribute, 17409, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__429)) __PYX_ERR(0, 17409, __pyx_L1_error) /* "cuda/cudart.pyx":17491 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaLaunchHostFunc(stream, fn, userData): * """ Enqueues a host function call in a stream. */ __pyx_tuple__729 = PyTuple_Pack(10, __pyx_n_s_stream, __pyx_n_s_fn_2, __pyx_n_s_userData_2, __pyx_n_s_cfn, __pyx_n_s_pfn, __pyx_n_s_cstream, __pyx_n_s_pstream, __pyx_n_s_cuserData, __pyx_n_s_cuserData_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__729)) __PYX_ERR(0, 17491, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__729); __Pyx_GIVEREF(__pyx_tuple__729); __pyx_codeobj__430 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__729, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaLaunchHostFunc, 17491, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__430)) __PYX_ERR(0, 17491, __pyx_L1_error) /* "cuda/cudart.pyx":17578 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaFuncSetSharedMemConfig(func, config not None : cudaSharedMemConfig): * """ Sets the shared memory configuration for a device function. */ __pyx_tuple__730 = PyTuple_Pack(6, __pyx_n_s_func_2, __pyx_n_s_config, __pyx_n_s_cfunc, __pyx_n_s_cfunc_ptr, __pyx_n_s_cconfig, __pyx_n_s_err); if (unlikely(!__pyx_tuple__730)) __PYX_ERR(0, 17578, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__730); __Pyx_GIVEREF(__pyx_tuple__730); __pyx_codeobj__431 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__730, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaFuncSetSharedMemConfig, 17578, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__431)) __PYX_ERR(0, 17578, __pyx_L1_error) /* "cuda/cudart.pyx":17642 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaOccupancyMaxActiveBlocksPerMultiprocessor(func, int blockSize, size_t dynamicSMemSize): * """ Returns occupancy for a device function. */ __pyx_tuple__731 = PyTuple_Pack(7, __pyx_n_s_func_2, __pyx_n_s_blockSize, __pyx_n_s_dynamicSMemSize, __pyx_n_s_numBlocks, __pyx_n_s_cfunc, __pyx_n_s_cfunc_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__731)) __PYX_ERR(0, 17642, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__731); __Pyx_GIVEREF(__pyx_tuple__731); __pyx_codeobj__432 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__731, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaOccupancyMaxActiveBlocksPerM, 17642, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__432)) __PYX_ERR(0, 17642, __pyx_L1_error) /* "cuda/cudart.pyx":17675 * return (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_tuple__732 = PyTuple_Pack(7, __pyx_n_s_func_2, __pyx_n_s_numBlocks, __pyx_n_s_blockSize, __pyx_n_s_dynamicSmemSize, __pyx_n_s_cfunc, __pyx_n_s_cfunc_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__732)) __PYX_ERR(0, 17675, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__732); __Pyx_GIVEREF(__pyx_tuple__732); __pyx_codeobj__433 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__732, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaOccupancyAvailableDynamicSMe, 17675, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__433)) __PYX_ERR(0, 17675, __pyx_L1_error) /* "cuda/cudart.pyx":17708 * return (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_tuple__733 = PyTuple_Pack(8, __pyx_n_s_func_2, __pyx_n_s_blockSize, __pyx_n_s_dynamicSMemSize, __pyx_n_s_flags_2, __pyx_n_s_numBlocks, __pyx_n_s_cfunc, __pyx_n_s_cfunc_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__733)) __PYX_ERR(0, 17708, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__733); __Pyx_GIVEREF(__pyx_tuple__733); __pyx_codeobj__434 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__733, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaOccupancyMaxActiveBlocksPerM_2, 17708, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__434)) __PYX_ERR(0, 17708, __pyx_L1_error) /* "cuda/cudart.pyx":17758 * return (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_tuple__734 = PyTuple_Pack(4, __pyx_n_s_size_2, __pyx_n_s_flags_2, __pyx_n_s_devPtr_2, __pyx_n_s_err); if (unlikely(!__pyx_tuple__734)) __PYX_ERR(0, 17758, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__734); __Pyx_GIVEREF(__pyx_tuple__734); __pyx_codeobj__435 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__734, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMallocManaged, 17758, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__435)) __PYX_ERR(0, 17758, __pyx_L1_error) /* "cuda/cudart.pyx":17888 * return (cudaError_t(err), devPtr) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMalloc(size_t size): * """ Allocate memory on the device. */ __pyx_tuple__735 = PyTuple_Pack(3, __pyx_n_s_size_2, __pyx_n_s_devPtr_2, __pyx_n_s_err); if (unlikely(!__pyx_tuple__735)) __PYX_ERR(0, 17888, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__735); __Pyx_GIVEREF(__pyx_tuple__735); __pyx_codeobj__436 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__735, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMalloc, 17888, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__436)) __PYX_ERR(0, 17888, __pyx_L1_error) /* "cuda/cudart.pyx":17923 * return (cudaError_t(err), devPtr) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMallocHost(size_t size): * """ Allocates page-locked memory on the host. */ __pyx_tuple__736 = PyTuple_Pack(3, __pyx_n_s_size_2, __pyx_n_s_ptr_3, __pyx_n_s_err); if (unlikely(!__pyx_tuple__736)) __PYX_ERR(0, 17923, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__736); __Pyx_GIVEREF(__pyx_tuple__736); __pyx_codeobj__437 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__736, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMallocHost, 17923, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__437)) __PYX_ERR(0, 17923, __pyx_L1_error) /* "cuda/cudart.pyx":17965 * return (cudaError_t(err), ptr) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMallocPitch(size_t width, size_t height): * """ Allocates pitched memory on the device. */ __pyx_tuple__737 = PyTuple_Pack(5, __pyx_n_s_width_2, __pyx_n_s_height_2, __pyx_n_s_devPtr_2, __pyx_n_s_pitch_2, __pyx_n_s_err); if (unlikely(!__pyx_tuple__737)) __PYX_ERR(0, 17965, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__737); __Pyx_GIVEREF(__pyx_tuple__737); __pyx_codeobj__438 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__737, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMallocPitch, 17965, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__438)) __PYX_ERR(0, 17965, __pyx_L1_error) /* "cuda/cudart.pyx":18015 * return (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_tuple__738 = PyTuple_Pack(7, __pyx_n_s_desc_2, __pyx_n_s_width_2, __pyx_n_s_height_2, __pyx_n_s_flags_2, __pyx_n_s_array_2, __pyx_n_s_cdesc_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__738)) __PYX_ERR(0, 18015, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__738); __Pyx_GIVEREF(__pyx_tuple__738); __pyx_codeobj__439 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__738, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMallocArray, 18015, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__439)) __PYX_ERR(0, 18015, __pyx_L1_error) /* "cuda/cudart.pyx":18088 * return (cudaError_t(err), array) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaFree(devPtr): * """ Frees memory on the device. */ __pyx_codeobj__440 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__673, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaFree, 18088, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__440)) __PYX_ERR(0, 18088, __pyx_L1_error) /* "cuda/cudart.pyx":18136 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaFreeHost(ptr): * """ Frees page-locked memory. */ __pyx_tuple__739 = PyTuple_Pack(4, __pyx_n_s_ptr_3, __pyx_n_s_cptr, __pyx_n_s_cptr_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__739)) __PYX_ERR(0, 18136, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__739); __Pyx_GIVEREF(__pyx_tuple__739); __pyx_codeobj__441 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__739, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaFreeHost, 18136, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__441)) __PYX_ERR(0, 18136, __pyx_L1_error) /* "cuda/cudart.pyx":18165 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaFreeArray(array): * """ Frees an array on the device. */ __pyx_tuple__740 = PyTuple_Pack(4, __pyx_n_s_array_2, __pyx_n_s_carray, __pyx_n_s_parray, __pyx_n_s_err); if (unlikely(!__pyx_tuple__740)) __PYX_ERR(0, 18165, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__740); __Pyx_GIVEREF(__pyx_tuple__740); __pyx_codeobj__442 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__740, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaFreeArray, 18165, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__442)) __PYX_ERR(0, 18165, __pyx_L1_error) /* "cuda/cudart.pyx":18201 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaFreeMipmappedArray(mipmappedArray): * """ Frees a mipmapped array on the device. */ __pyx_tuple__741 = PyTuple_Pack(4, __pyx_n_s_mipmappedArray, __pyx_n_s_cmipmappedArray, __pyx_n_s_pmipmappedArray, __pyx_n_s_err); if (unlikely(!__pyx_tuple__741)) __PYX_ERR(0, 18201, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__741); __Pyx_GIVEREF(__pyx_tuple__741); __pyx_codeobj__443 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__741, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaFreeMipmappedArray, 18201, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__443)) __PYX_ERR(0, 18201, __pyx_L1_error) /* "cuda/cudart.pyx":18235 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaHostAlloc(size_t size, unsigned int flags): * """ Allocates page-locked memory on the host. */ __pyx_tuple__742 = PyTuple_Pack(4, __pyx_n_s_size_2, __pyx_n_s_flags_2, __pyx_n_s_pHost, __pyx_n_s_err); if (unlikely(!__pyx_tuple__742)) __PYX_ERR(0, 18235, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__742); __Pyx_GIVEREF(__pyx_tuple__742); __pyx_codeobj__444 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__742, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaHostAlloc, 18235, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__444)) __PYX_ERR(0, 18235, __pyx_L1_error) /* "cuda/cudart.pyx":18316 * return (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_tuple__743 = PyTuple_Pack(6, __pyx_n_s_ptr_3, __pyx_n_s_size_2, __pyx_n_s_flags_2, __pyx_n_s_cptr, __pyx_n_s_cptr_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__743)) __PYX_ERR(0, 18316, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__743); __Pyx_GIVEREF(__pyx_tuple__743); __pyx_codeobj__445 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__743, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaHostRegister, 18316, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__445)) __PYX_ERR(0, 18316, __pyx_L1_error) /* "cuda/cudart.pyx":18430 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaHostUnregister(ptr): * """ Unregisters a memory range that was registered with cudaHostRegister. */ __pyx_codeobj__446 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__739, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaHostUnregister, 18430, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__446)) __PYX_ERR(0, 18430, __pyx_L1_error) /* "cuda/cudart.pyx":18461 * return (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_tuple__744 = PyTuple_Pack(6, __pyx_n_s_pHost, __pyx_n_s_flags_2, __pyx_n_s_pDevice, __pyx_n_s_cpHost, __pyx_n_s_cpHost_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__744)) __PYX_ERR(0, 18461, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__744); __Pyx_GIVEREF(__pyx_tuple__744); __pyx_codeobj__447 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__744, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaHostGetDevicePointer, 18461, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__447)) __PYX_ERR(0, 18461, __pyx_L1_error) /* "cuda/cudart.pyx":18517 * return (cudaError_t(err), pDevice) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaHostGetFlags(pHost): * """ Passes back flags used to allocate pinned host memory allocated by cudaHostAlloc. */ __pyx_tuple__745 = PyTuple_Pack(5, __pyx_n_s_pHost, __pyx_n_s_pFlags, __pyx_n_s_cpHost, __pyx_n_s_cpHost_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__745)) __PYX_ERR(0, 18517, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__745); __Pyx_GIVEREF(__pyx_tuple__745); __pyx_codeobj__448 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__745, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaHostGetFlags, 18517, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__448)) __PYX_ERR(0, 18517, __pyx_L1_error) /* "cuda/cudart.pyx":18546 * return (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_tuple__746 = PyTuple_Pack(3, __pyx_n_s_extent_2, __pyx_n_s_pitchedDevPtr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__746)) __PYX_ERR(0, 18546, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__746); __Pyx_GIVEREF(__pyx_tuple__746); __pyx_codeobj__449 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__746, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMalloc3D, 18546, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__449)) __PYX_ERR(0, 18546, __pyx_L1_error) /* "cuda/cudart.pyx":18589 * return (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_tuple__747 = PyTuple_Pack(6, __pyx_n_s_desc_2, __pyx_n_s_extent_2, __pyx_n_s_flags_2, __pyx_n_s_array_2, __pyx_n_s_cdesc_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__747)) __PYX_ERR(0, 18589, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__747); __Pyx_GIVEREF(__pyx_tuple__747); __pyx_codeobj__450 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__747, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMalloc3DArray, 18589, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__450)) __PYX_ERR(0, 18589, __pyx_L1_error) /* "cuda/cudart.pyx":18708 * return (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_tuple__748 = PyTuple_Pack(7, __pyx_n_s_desc_2, __pyx_n_s_extent_2, __pyx_n_s_numLevels_2, __pyx_n_s_flags_2, __pyx_n_s_mipmappedArray, __pyx_n_s_cdesc_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__748)) __PYX_ERR(0, 18708, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__748); __Pyx_GIVEREF(__pyx_tuple__748); __pyx_codeobj__451 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__748, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMallocMipmappedArray, 18708, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__451)) __PYX_ERR(0, 18708, __pyx_L1_error) /* "cuda/cudart.pyx":18828 * return (cudaError_t(err), mipmappedArray) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGetMipmappedArrayLevel(mipmappedArray, unsigned int level): * """ Gets a mipmap level of a CUDA mipmapped array. */ __pyx_tuple__749 = PyTuple_Pack(6, __pyx_n_s_mipmappedArray, __pyx_n_s_level, __pyx_n_s_cmipmappedArray, __pyx_n_s_pmipmappedArray, __pyx_n_s_levelArray, __pyx_n_s_err); if (unlikely(!__pyx_tuple__749)) __PYX_ERR(0, 18828, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__749); __Pyx_GIVEREF(__pyx_tuple__749); __pyx_codeobj__452 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__749, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGetMipmappedArrayLevel, 18828, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__452)) __PYX_ERR(0, 18828, __pyx_L1_error) /* "cuda/cudart.pyx":18872 * return (cudaError_t(err), levelArray) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemcpy3D(p : Optional[cudaMemcpy3DParms]): * """ Copies data between 3D objects. */ __pyx_tuple__750 = PyTuple_Pack(3, __pyx_n_s_p, __pyx_n_s_cp_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__750)) __PYX_ERR(0, 18872, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__750); __Pyx_GIVEREF(__pyx_tuple__750); __pyx_codeobj__453 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__750, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemcpy3D, 18872, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__453)) __PYX_ERR(0, 18872, __pyx_L1_error) /* "cuda/cudart.pyx":18954 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemcpy3DPeer(p : Optional[cudaMemcpy3DPeerParms]): * """ Copies memory between devices. */ __pyx_codeobj__454 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__750, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemcpy3DPeer, 18954, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__454)) __PYX_ERR(0, 18954, __pyx_L1_error) /* "cuda/cudart.pyx":18987 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemcpy3DAsync(p : Optional[cudaMemcpy3DParms], stream): * """ Copies data between 3D objects. */ __pyx_tuple__751 = PyTuple_Pack(6, __pyx_n_s_p, __pyx_n_s_stream, __pyx_n_s_cstream, __pyx_n_s_pstream, __pyx_n_s_cp_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__751)) __PYX_ERR(0, 18987, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__751); __Pyx_GIVEREF(__pyx_tuple__751); __pyx_codeobj__455 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__751, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemcpy3DAsync, 18987, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__455)) __PYX_ERR(0, 18987, __pyx_L1_error) /* "cuda/cudart.pyx":19091 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemcpy3DPeerAsync(p : Optional[cudaMemcpy3DPeerParms], stream): * """ Copies memory between devices asynchronously. */ __pyx_codeobj__456 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__751, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemcpy3DPeerAsync, 19091, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__456)) __PYX_ERR(0, 19091, __pyx_L1_error) /* "cuda/cudart.pyx":19128 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemGetInfo(): * """ Gets free and total device memory. */ __pyx_tuple__752 = PyTuple_Pack(3, __pyx_n_s_free_2, __pyx_n_s_total, __pyx_n_s_err); if (unlikely(!__pyx_tuple__752)) __PYX_ERR(0, 19128, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__752); __Pyx_GIVEREF(__pyx_tuple__752); __pyx_codeobj__457 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__752, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemGetInfo, 19128, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__457)) __PYX_ERR(0, 19128, __pyx_L1_error) /* "cuda/cudart.pyx":19167 * return (cudaError_t(err), free, total) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaArrayGetInfo(array): * """ Gets info about the specified cudaArray. */ __pyx_tuple__753 = PyTuple_Pack(7, __pyx_n_s_array_2, __pyx_n_s_carray, __pyx_n_s_parray, __pyx_n_s_desc_2, __pyx_n_s_extent_2, __pyx_n_s_flags_2, __pyx_n_s_err); if (unlikely(!__pyx_tuple__753)) __PYX_ERR(0, 19167, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__753); __Pyx_GIVEREF(__pyx_tuple__753); __pyx_codeobj__458 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__753, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaArrayGetInfo, 19167, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__458)) __PYX_ERR(0, 19167, __pyx_L1_error) /* "cuda/cudart.pyx":19211 * return (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_tuple__754 = PyTuple_Pack(6, __pyx_n_s_hArray, __pyx_n_s_planeIdx, __pyx_n_s_chArray, __pyx_n_s_phArray, __pyx_n_s_pPlaneArray, __pyx_n_s_err); if (unlikely(!__pyx_tuple__754)) __PYX_ERR(0, 19211, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__754); __Pyx_GIVEREF(__pyx_tuple__754); __pyx_codeobj__459 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__754, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaArrayGetPlane, 19211, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__459)) __PYX_ERR(0, 19211, __pyx_L1_error) /* "cuda/cudart.pyx":19262 * return (cudaError_t(err), pPlaneArray) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaArrayGetMemoryRequirements(array, int device): * """ Returns the memory requirements of a CUDA array. */ __pyx_tuple__755 = PyTuple_Pack(6, __pyx_n_s_array_2, __pyx_n_s_device_2, __pyx_n_s_carray, __pyx_n_s_parray, __pyx_n_s_memoryRequirements, __pyx_n_s_err); if (unlikely(!__pyx_tuple__755)) __PYX_ERR(0, 19262, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__755); __Pyx_GIVEREF(__pyx_tuple__755); __pyx_codeobj__460 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__755, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaArrayGetMemoryRequirements, 19262, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__460)) __PYX_ERR(0, 19262, __pyx_L1_error) /* "cuda/cudart.pyx":19307 * return (cudaError_t(err), memoryRequirements) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMipmappedArrayGetMemoryRequirements(mipmap, int device): * """ Returns the memory requirements of a CUDA mipmapped array. */ __pyx_tuple__756 = PyTuple_Pack(6, __pyx_n_s_mipmap_2, __pyx_n_s_device_2, __pyx_n_s_cmipmap, __pyx_n_s_pmipmap, __pyx_n_s_memoryRequirements, __pyx_n_s_err); if (unlikely(!__pyx_tuple__756)) __PYX_ERR(0, 19307, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__756); __Pyx_GIVEREF(__pyx_tuple__756); __pyx_codeobj__461 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__756, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMipmappedArrayGetMemoryRequi, 19307, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__461)) __PYX_ERR(0, 19307, __pyx_L1_error) /* "cuda/cudart.pyx":19352 * return (cudaError_t(err), memoryRequirements) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaArrayGetSparseProperties(array): * """ Returns the layout properties of a sparse CUDA array. */ __pyx_tuple__757 = PyTuple_Pack(5, __pyx_n_s_array_2, __pyx_n_s_carray, __pyx_n_s_parray, __pyx_n_s_sparseProperties, __pyx_n_s_err); if (unlikely(!__pyx_tuple__757)) __PYX_ERR(0, 19352, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__757); __Pyx_GIVEREF(__pyx_tuple__757); __pyx_codeobj__462 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__757, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaArrayGetSparseProperties, 19352, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__462)) __PYX_ERR(0, 19352, __pyx_L1_error) /* "cuda/cudart.pyx":19403 * return (cudaError_t(err), sparseProperties) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMipmappedArrayGetSparseProperties(mipmap): * """ Returns the layout properties of a sparse CUDA mipmapped array. */ __pyx_tuple__758 = PyTuple_Pack(5, __pyx_n_s_mipmap_2, __pyx_n_s_cmipmap, __pyx_n_s_pmipmap, __pyx_n_s_sparseProperties, __pyx_n_s_err); if (unlikely(!__pyx_tuple__758)) __PYX_ERR(0, 19403, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__758); __Pyx_GIVEREF(__pyx_tuple__758); __pyx_codeobj__463 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__758, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMipmappedArrayGetSparsePrope, 19403, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__463)) __PYX_ERR(0, 19403, __pyx_L1_error) /* "cuda/cudart.pyx":19454 * return (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_tuple__759 = PyTuple_Pack(10, __pyx_n_s_dst_2, __pyx_n_s_src, __pyx_n_s_count, __pyx_n_s_kind_2, __pyx_n_s_cdst, __pyx_n_s_cdst_ptr, __pyx_n_s_csrc, __pyx_n_s_csrc_ptr, __pyx_n_s_ckind, __pyx_n_s_err); if (unlikely(!__pyx_tuple__759)) __PYX_ERR(0, 19454, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__759); __Pyx_GIVEREF(__pyx_tuple__759); __pyx_codeobj__464 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__759, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemcpy, 19454, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__464)) __PYX_ERR(0, 19454, __pyx_L1_error) /* "cuda/cudart.pyx":19502 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemcpyPeer(dst, int dstDevice, src, int srcDevice, size_t count): * """ Copies memory between two devices. */ __pyx_tuple__760 = PyTuple_Pack(10, __pyx_n_s_dst_2, __pyx_n_s_dstDevice_2, __pyx_n_s_src, __pyx_n_s_srcDevice_2, __pyx_n_s_count, __pyx_n_s_cdst, __pyx_n_s_cdst_ptr, __pyx_n_s_csrc, __pyx_n_s_csrc_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__760)) __PYX_ERR(0, 19502, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__760); __Pyx_GIVEREF(__pyx_tuple__760); __pyx_codeobj__465 = (PyObject*)__Pyx_PyCode_New(5, 0, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__760, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemcpyPeer, 19502, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__465)) __PYX_ERR(0, 19502, __pyx_L1_error) /* "cuda/cudart.pyx":19548 * return (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_tuple__761 = PyTuple_Pack(13, __pyx_n_s_dst_2, __pyx_n_s_dpitch, __pyx_n_s_src, __pyx_n_s_spitch, __pyx_n_s_width_2, __pyx_n_s_height_2, __pyx_n_s_kind_2, __pyx_n_s_cdst, __pyx_n_s_cdst_ptr, __pyx_n_s_csrc, __pyx_n_s_csrc_ptr, __pyx_n_s_ckind, __pyx_n_s_err); if (unlikely(!__pyx_tuple__761)) __PYX_ERR(0, 19548, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__761); __Pyx_GIVEREF(__pyx_tuple__761); __pyx_codeobj__466 = (PyObject*)__Pyx_PyCode_New(7, 0, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__761, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemcpy2D, 19548, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__466)) __PYX_ERR(0, 19548, __pyx_L1_error) /* "cuda/cudart.pyx":19606 * return (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_tuple__762 = PyTuple_Pack(14, __pyx_n_s_dst_2, __pyx_n_s_wOffset, __pyx_n_s_hOffset, __pyx_n_s_src, __pyx_n_s_spitch, __pyx_n_s_width_2, __pyx_n_s_height_2, __pyx_n_s_kind_2, __pyx_n_s_cdst, __pyx_n_s_pdst, __pyx_n_s_csrc, __pyx_n_s_csrc_ptr, __pyx_n_s_ckind, __pyx_n_s_err); if (unlikely(!__pyx_tuple__762)) __PYX_ERR(0, 19606, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__762); __Pyx_GIVEREF(__pyx_tuple__762); __pyx_codeobj__467 = (PyObject*)__Pyx_PyCode_New(8, 0, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__762, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemcpy2DToArray, 19606, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__467)) __PYX_ERR(0, 19606, __pyx_L1_error) /* "cuda/cudart.pyx":19672 * return (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_tuple__763 = PyTuple_Pack(14, __pyx_n_s_dst_2, __pyx_n_s_dpitch, __pyx_n_s_src, __pyx_n_s_wOffset, __pyx_n_s_hOffset, __pyx_n_s_width_2, __pyx_n_s_height_2, __pyx_n_s_kind_2, __pyx_n_s_csrc, __pyx_n_s_psrc, __pyx_n_s_cdst, __pyx_n_s_cdst_ptr, __pyx_n_s_ckind, __pyx_n_s_err); if (unlikely(!__pyx_tuple__763)) __PYX_ERR(0, 19672, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__763); __Pyx_GIVEREF(__pyx_tuple__763); __pyx_codeobj__468 = (PyObject*)__Pyx_PyCode_New(8, 0, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__763, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemcpy2DFromArray, 19672, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__468)) __PYX_ERR(0, 19672, __pyx_L1_error) /* "cuda/cudart.pyx":19738 * return (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_tuple__764 = PyTuple_Pack(15, __pyx_n_s_dst_2, __pyx_n_s_wOffsetDst, __pyx_n_s_hOffsetDst, __pyx_n_s_src, __pyx_n_s_wOffsetSrc, __pyx_n_s_hOffsetSrc, __pyx_n_s_width_2, __pyx_n_s_height_2, __pyx_n_s_kind_2, __pyx_n_s_csrc, __pyx_n_s_psrc, __pyx_n_s_cdst, __pyx_n_s_pdst, __pyx_n_s_ckind, __pyx_n_s_err); if (unlikely(!__pyx_tuple__764)) __PYX_ERR(0, 19738, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__764); __Pyx_GIVEREF(__pyx_tuple__764); __pyx_codeobj__469 = (PyObject*)__Pyx_PyCode_New(9, 0, 0, 15, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__764, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemcpy2DArrayToArray, 19738, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__469)) __PYX_ERR(0, 19738, __pyx_L1_error) /* "cuda/cudart.pyx":19809 * return (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_tuple__765 = PyTuple_Pack(13, __pyx_n_s_dst_2, __pyx_n_s_src, __pyx_n_s_count, __pyx_n_s_kind_2, __pyx_n_s_stream, __pyx_n_s_cstream, __pyx_n_s_pstream, __pyx_n_s_cdst, __pyx_n_s_cdst_ptr, __pyx_n_s_csrc, __pyx_n_s_csrc_ptr, __pyx_n_s_ckind, __pyx_n_s_err); if (unlikely(!__pyx_tuple__765)) __PYX_ERR(0, 19809, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__765); __Pyx_GIVEREF(__pyx_tuple__765); __pyx_codeobj__470 = (PyObject*)__Pyx_PyCode_New(5, 0, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__765, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemcpyAsync, 19809, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__470)) __PYX_ERR(0, 19809, __pyx_L1_error) /* "cuda/cudart.pyx":19878 * return (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_tuple__766 = PyTuple_Pack(13, __pyx_n_s_dst_2, __pyx_n_s_dstDevice_2, __pyx_n_s_src, __pyx_n_s_srcDevice_2, __pyx_n_s_count, __pyx_n_s_stream, __pyx_n_s_cstream, __pyx_n_s_pstream, __pyx_n_s_cdst, __pyx_n_s_cdst_ptr, __pyx_n_s_csrc, __pyx_n_s_csrc_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__766)) __PYX_ERR(0, 19878, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__766); __Pyx_GIVEREF(__pyx_tuple__766); __pyx_codeobj__471 = (PyObject*)__Pyx_PyCode_New(6, 0, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__766, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemcpyPeerAsync, 19878, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__471)) __PYX_ERR(0, 19878, __pyx_L1_error) /* "cuda/cudart.pyx":19933 * return (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_tuple__767 = PyTuple_Pack(16, __pyx_n_s_dst_2, __pyx_n_s_dpitch, __pyx_n_s_src, __pyx_n_s_spitch, __pyx_n_s_width_2, __pyx_n_s_height_2, __pyx_n_s_kind_2, __pyx_n_s_stream, __pyx_n_s_cstream, __pyx_n_s_pstream, __pyx_n_s_cdst, __pyx_n_s_cdst_ptr, __pyx_n_s_csrc, __pyx_n_s_csrc_ptr, __pyx_n_s_ckind, __pyx_n_s_err); if (unlikely(!__pyx_tuple__767)) __PYX_ERR(0, 19933, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__767); __Pyx_GIVEREF(__pyx_tuple__767); __pyx_codeobj__472 = (PyObject*)__Pyx_PyCode_New(8, 0, 0, 16, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__767, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemcpy2DAsync, 19933, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__472)) __PYX_ERR(0, 19933, __pyx_L1_error) /* "cuda/cudart.pyx":20013 * return (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_tuple__768 = PyTuple_Pack(17, __pyx_n_s_dst_2, __pyx_n_s_wOffset, __pyx_n_s_hOffset, __pyx_n_s_src, __pyx_n_s_spitch, __pyx_n_s_width_2, __pyx_n_s_height_2, __pyx_n_s_kind_2, __pyx_n_s_stream, __pyx_n_s_cstream, __pyx_n_s_pstream, __pyx_n_s_cdst, __pyx_n_s_pdst, __pyx_n_s_csrc, __pyx_n_s_csrc_ptr, __pyx_n_s_ckind, __pyx_n_s_err); if (unlikely(!__pyx_tuple__768)) __PYX_ERR(0, 20013, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__768); __Pyx_GIVEREF(__pyx_tuple__768); __pyx_codeobj__473 = (PyObject*)__Pyx_PyCode_New(9, 0, 0, 17, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__768, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemcpy2DToArrayAsync, 20013, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__473)) __PYX_ERR(0, 20013, __pyx_L1_error) /* "cuda/cudart.pyx":20101 * return (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_tuple__769 = PyTuple_Pack(17, __pyx_n_s_dst_2, __pyx_n_s_dpitch, __pyx_n_s_src, __pyx_n_s_wOffset, __pyx_n_s_hOffset, __pyx_n_s_width_2, __pyx_n_s_height_2, __pyx_n_s_kind_2, __pyx_n_s_stream, __pyx_n_s_cstream, __pyx_n_s_pstream, __pyx_n_s_csrc, __pyx_n_s_psrc, __pyx_n_s_cdst, __pyx_n_s_cdst_ptr, __pyx_n_s_ckind, __pyx_n_s_err); if (unlikely(!__pyx_tuple__769)) __PYX_ERR(0, 20101, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__769); __Pyx_GIVEREF(__pyx_tuple__769); __pyx_codeobj__474 = (PyObject*)__Pyx_PyCode_New(9, 0, 0, 17, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__769, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemcpy2DFromArrayAsync, 20101, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__474)) __PYX_ERR(0, 20101, __pyx_L1_error) /* "cuda/cudart.pyx":20188 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemset(devPtr, int value, size_t count): * """ Initializes or sets device memory to a value. */ __pyx_tuple__770 = PyTuple_Pack(6, __pyx_n_s_devPtr_2, __pyx_n_s_value, __pyx_n_s_count, __pyx_n_s_cdevPtr, __pyx_n_s_cdevPtr_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__770)) __PYX_ERR(0, 20188, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__770); __Pyx_GIVEREF(__pyx_tuple__770); __pyx_codeobj__475 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__770, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemset, 20188, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__475)) __PYX_ERR(0, 20188, __pyx_L1_error) /* "cuda/cudart.pyx":20223 * return (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_tuple__771 = PyTuple_Pack(8, __pyx_n_s_devPtr_2, __pyx_n_s_pitch_2, __pyx_n_s_value, __pyx_n_s_width_2, __pyx_n_s_height_2, __pyx_n_s_cdevPtr, __pyx_n_s_cdevPtr_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__771)) __PYX_ERR(0, 20223, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__771); __Pyx_GIVEREF(__pyx_tuple__771); __pyx_codeobj__476 = (PyObject*)__Pyx_PyCode_New(5, 0, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__771, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemset2D, 20223, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__476)) __PYX_ERR(0, 20223, __pyx_L1_error) /* "cuda/cudart.pyx":20263 * return (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_tuple__772 = PyTuple_Pack(4, __pyx_n_s_pitchedDevPtr, __pyx_n_s_value, __pyx_n_s_extent_2, __pyx_n_s_err); if (unlikely(!__pyx_tuple__772)) __PYX_ERR(0, 20263, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__772); __Pyx_GIVEREF(__pyx_tuple__772); __pyx_codeobj__477 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__772, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemset3D, 20263, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__477)) __PYX_ERR(0, 20263, __pyx_L1_error) /* "cuda/cudart.pyx":20313 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemsetAsync(devPtr, int value, size_t count, stream): * """ Initializes or sets device memory to a value. */ __pyx_tuple__773 = PyTuple_Pack(9, __pyx_n_s_devPtr_2, __pyx_n_s_value, __pyx_n_s_count, __pyx_n_s_stream, __pyx_n_s_cstream, __pyx_n_s_pstream, __pyx_n_s_cdevPtr, __pyx_n_s_cdevPtr_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__773)) __PYX_ERR(0, 20313, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__773); __Pyx_GIVEREF(__pyx_tuple__773); __pyx_codeobj__478 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__773, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemsetAsync, 20313, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__478)) __PYX_ERR(0, 20313, __pyx_L1_error) /* "cuda/cudart.pyx":20365 * return (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_tuple__774 = PyTuple_Pack(11, __pyx_n_s_devPtr_2, __pyx_n_s_pitch_2, __pyx_n_s_value, __pyx_n_s_width_2, __pyx_n_s_height_2, __pyx_n_s_stream, __pyx_n_s_cstream, __pyx_n_s_pstream, __pyx_n_s_cdevPtr, __pyx_n_s_cdevPtr_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__774)) __PYX_ERR(0, 20365, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__774); __Pyx_GIVEREF(__pyx_tuple__774); __pyx_codeobj__479 = (PyObject*)__Pyx_PyCode_New(6, 0, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__774, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemset2DAsync, 20365, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__479)) __PYX_ERR(0, 20365, __pyx_L1_error) /* "cuda/cudart.pyx":20422 * return (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_tuple__775 = PyTuple_Pack(7, __pyx_n_s_pitchedDevPtr, __pyx_n_s_value, __pyx_n_s_extent_2, __pyx_n_s_stream, __pyx_n_s_cstream, __pyx_n_s_pstream, __pyx_n_s_err); if (unlikely(!__pyx_tuple__775)) __PYX_ERR(0, 20422, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__775); __Pyx_GIVEREF(__pyx_tuple__775); __pyx_codeobj__480 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__775, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemset3DAsync, 20422, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__480)) __PYX_ERR(0, 20422, __pyx_L1_error) /* "cuda/cudart.pyx":20489 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemPrefetchAsync(devPtr, size_t count, int dstDevice, stream): * """ Prefetches memory to the specified destination device. */ __pyx_tuple__776 = PyTuple_Pack(9, __pyx_n_s_devPtr_2, __pyx_n_s_count, __pyx_n_s_dstDevice_2, __pyx_n_s_stream, __pyx_n_s_cstream, __pyx_n_s_pstream, __pyx_n_s_cdevPtr, __pyx_n_s_cdevPtr_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__776)) __PYX_ERR(0, 20489, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__776); __Pyx_GIVEREF(__pyx_tuple__776); __pyx_codeobj__481 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__776, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemPrefetchAsync, 20489, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__481)) __PYX_ERR(0, 20489, __pyx_L1_error) /* "cuda/cudart.pyx":20587 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemPrefetchAsync_v2(devPtr, size_t count, location not None : cudaMemLocation, unsigned int flags, stream): * """ Prefetches memory to the specified destination location. */ __pyx_tuple__777 = PyTuple_Pack(10, __pyx_n_s_devPtr_2, __pyx_n_s_count, __pyx_n_s_location_2, __pyx_n_s_flags_2, __pyx_n_s_stream, __pyx_n_s_cstream, __pyx_n_s_pstream, __pyx_n_s_cdevPtr, __pyx_n_s_cdevPtr_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__777)) __PYX_ERR(0, 20587, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__777); __Pyx_GIVEREF(__pyx_tuple__777); __pyx_codeobj__482 = (PyObject*)__Pyx_PyCode_New(5, 0, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__777, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemPrefetchAsync_v2, 20587, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__482)) __PYX_ERR(0, 20587, __pyx_L1_error) /* "cuda/cudart.pyx":20703 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemAdvise(devPtr, size_t count, advice not None : cudaMemoryAdvise, int device): * """ Advise about the usage of a given memory range. */ __pyx_tuple__778 = PyTuple_Pack(8, __pyx_n_s_devPtr_2, __pyx_n_s_count, __pyx_n_s_advice, __pyx_n_s_device_2, __pyx_n_s_cdevPtr, __pyx_n_s_cdevPtr_ptr, __pyx_n_s_cadvice, __pyx_n_s_err); if (unlikely(!__pyx_tuple__778)) __PYX_ERR(0, 20703, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__778); __Pyx_GIVEREF(__pyx_tuple__778); __pyx_codeobj__483 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__778, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemAdvise, 20703, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__483)) __PYX_ERR(0, 20703, __pyx_L1_error) /* "cuda/cudart.pyx":20867 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemAdvise_v2(devPtr, size_t count, advice not None : cudaMemoryAdvise, location not None : cudaMemLocation): * """ Advise about the usage of a given memory range. */ __pyx_tuple__779 = PyTuple_Pack(8, __pyx_n_s_devPtr_2, __pyx_n_s_count, __pyx_n_s_advice, __pyx_n_s_location_2, __pyx_n_s_cdevPtr, __pyx_n_s_cdevPtr_ptr, __pyx_n_s_cadvice, __pyx_n_s_err); if (unlikely(!__pyx_tuple__779)) __PYX_ERR(0, 20867, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__779); __Pyx_GIVEREF(__pyx_tuple__779); __pyx_codeobj__484 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__779, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemAdvise_v2, 20867, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__484)) __PYX_ERR(0, 20867, __pyx_L1_error) /* "cuda/cudart.pyx":21062 * return (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_tuple__780 = PyTuple_Pack(10, __pyx_n_s_dataSize, __pyx_n_s_attribute, __pyx_n_s_devPtr_2, __pyx_n_s_count, __pyx_n_s_cdata, __pyx_n_s_cdata_ptr, __pyx_n_s_cattribute, __pyx_n_s_cdevPtr, __pyx_n_s_cdevPtr_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__780)) __PYX_ERR(0, 21062, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__780); __Pyx_GIVEREF(__pyx_tuple__780); __pyx_codeobj__485 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__780, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemRangeGetAttribute, 21062, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__485)) __PYX_ERR(0, 21062, __pyx_L1_error) /* "cuda/cudart.pyx":21207 * return (cudaError_t(err), cdata.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_tuple__781 = PyTuple_Pack(20, __pyx_n_s_dataSizes, __pyx_n_s_attributes, __pyx_n_s_numAttributes, __pyx_n_s_devPtr_2, __pyx_n_s_count, __pyx_n_s_pylist, __pyx_n_s_voidStarHelperdata, __pyx_n_s_cvoidStarHelper_ptr, __pyx_n_s_cdataSizes, __pyx_n_s_cattributes, __pyx_n_s_cdevPtr, __pyx_n_s_cdevPtr_ptr, __pyx_n_s_err, __pyx_n_s_genexpr, __pyx_n_s_genexpr, __pyx_n_s_genexpr, __pyx_n_s_pyattributes, __pyx_n_s_pydataSizes, __pyx_n_s_pyattributes, __pyx_n_s_obj); if (unlikely(!__pyx_tuple__781)) __PYX_ERR(0, 21207, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__781); __Pyx_GIVEREF(__pyx_tuple__781); __pyx_codeobj__486 = (PyObject*)__Pyx_PyCode_New(5, 0, 0, 20, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__781, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemRangeGetAttributes, 21207, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__486)) __PYX_ERR(0, 21207, __pyx_L1_error) /* "cuda/cudart.pyx":21282 * return (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_tuple__782 = PyTuple_Pack(12, __pyx_n_s_dst_2, __pyx_n_s_wOffset, __pyx_n_s_hOffset, __pyx_n_s_src, __pyx_n_s_count, __pyx_n_s_kind_2, __pyx_n_s_cdst, __pyx_n_s_pdst, __pyx_n_s_csrc, __pyx_n_s_csrc_ptr, __pyx_n_s_ckind, __pyx_n_s_err); if (unlikely(!__pyx_tuple__782)) __PYX_ERR(0, 21282, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__782); __Pyx_GIVEREF(__pyx_tuple__782); __pyx_codeobj__489 = (PyObject*)__Pyx_PyCode_New(6, 0, 0, 12, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__782, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemcpyToArray, 21282, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__489)) __PYX_ERR(0, 21282, __pyx_L1_error) /* "cuda/cudart.pyx":21338 * return (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_tuple__783 = PyTuple_Pack(12, __pyx_n_s_dst_2, __pyx_n_s_src, __pyx_n_s_wOffset, __pyx_n_s_hOffset, __pyx_n_s_count, __pyx_n_s_kind_2, __pyx_n_s_csrc, __pyx_n_s_psrc, __pyx_n_s_cdst, __pyx_n_s_cdst_ptr, __pyx_n_s_ckind, __pyx_n_s_err); if (unlikely(!__pyx_tuple__783)) __PYX_ERR(0, 21338, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__783); __Pyx_GIVEREF(__pyx_tuple__783); __pyx_codeobj__490 = (PyObject*)__Pyx_PyCode_New(6, 0, 0, 12, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__783, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemcpyFromArray, 21338, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__490)) __PYX_ERR(0, 21338, __pyx_L1_error) /* "cuda/cudart.pyx":21394 * return (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_tuple__784 = PyTuple_Pack(14, __pyx_n_s_dst_2, __pyx_n_s_wOffsetDst, __pyx_n_s_hOffsetDst, __pyx_n_s_src, __pyx_n_s_wOffsetSrc, __pyx_n_s_hOffsetSrc, __pyx_n_s_count, __pyx_n_s_kind_2, __pyx_n_s_csrc, __pyx_n_s_psrc, __pyx_n_s_cdst, __pyx_n_s_pdst, __pyx_n_s_ckind, __pyx_n_s_err); if (unlikely(!__pyx_tuple__784)) __PYX_ERR(0, 21394, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__784); __Pyx_GIVEREF(__pyx_tuple__784); __pyx_codeobj__491 = (PyObject*)__Pyx_PyCode_New(8, 0, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__784, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemcpyArrayToArray, 21394, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__491)) __PYX_ERR(0, 21394, __pyx_L1_error) /* "cuda/cudart.pyx":21462 * return (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_tuple__785 = PyTuple_Pack(15, __pyx_n_s_dst_2, __pyx_n_s_wOffset, __pyx_n_s_hOffset, __pyx_n_s_src, __pyx_n_s_count, __pyx_n_s_kind_2, __pyx_n_s_stream, __pyx_n_s_cstream, __pyx_n_s_pstream, __pyx_n_s_cdst, __pyx_n_s_pdst, __pyx_n_s_csrc, __pyx_n_s_csrc_ptr, __pyx_n_s_ckind, __pyx_n_s_err); if (unlikely(!__pyx_tuple__785)) __PYX_ERR(0, 21462, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__785); __Pyx_GIVEREF(__pyx_tuple__785); __pyx_codeobj__492 = (PyObject*)__Pyx_PyCode_New(7, 0, 0, 15, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__785, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemcpyToArrayAsync, 21462, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__492)) __PYX_ERR(0, 21462, __pyx_L1_error) /* "cuda/cudart.pyx":21536 * return (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_tuple__786 = PyTuple_Pack(15, __pyx_n_s_dst_2, __pyx_n_s_src, __pyx_n_s_wOffset, __pyx_n_s_hOffset, __pyx_n_s_count, __pyx_n_s_kind_2, __pyx_n_s_stream, __pyx_n_s_cstream, __pyx_n_s_pstream, __pyx_n_s_csrc, __pyx_n_s_psrc, __pyx_n_s_cdst, __pyx_n_s_cdst_ptr, __pyx_n_s_ckind, __pyx_n_s_err); if (unlikely(!__pyx_tuple__786)) __PYX_ERR(0, 21536, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__786); __Pyx_GIVEREF(__pyx_tuple__786); __pyx_codeobj__493 = (PyObject*)__Pyx_PyCode_New(7, 0, 0, 15, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__786, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemcpyFromArrayAsync, 21536, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__493)) __PYX_ERR(0, 21536, __pyx_L1_error) /* "cuda/cudart.pyx":21610 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMallocAsync(size_t size, hStream): * """ Allocates memory with stream ordered semantics. */ __pyx_tuple__787 = PyTuple_Pack(6, __pyx_n_s_size_2, __pyx_n_s_hStream, __pyx_n_s_chStream, __pyx_n_s_phStream, __pyx_n_s_devPtr_2, __pyx_n_s_err); if (unlikely(!__pyx_tuple__787)) __PYX_ERR(0, 21610, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__787); __Pyx_GIVEREF(__pyx_tuple__787); __pyx_codeobj__494 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__787, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMallocAsync, 21610, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__494)) __PYX_ERR(0, 21610, __pyx_L1_error) /* "cuda/cudart.pyx":21662 * return (cudaError_t(err), devPtr) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaFreeAsync(devPtr, hStream): * """ Frees memory with stream ordered semantics. */ __pyx_tuple__788 = PyTuple_Pack(7, __pyx_n_s_devPtr_2, __pyx_n_s_hStream, __pyx_n_s_chStream, __pyx_n_s_phStream, __pyx_n_s_cdevPtr, __pyx_n_s_cdevPtr_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__788)) __PYX_ERR(0, 21662, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__788); __Pyx_GIVEREF(__pyx_tuple__788); __pyx_codeobj__495 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__788, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaFreeAsync, 21662, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__495)) __PYX_ERR(0, 21662, __pyx_L1_error) /* "cuda/cudart.pyx":21707 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemPoolTrimTo(memPool, size_t minBytesToKeep): * """ Tries to release memory back to the OS. */ __pyx_tuple__789 = PyTuple_Pack(5, __pyx_n_s_memPool, __pyx_n_s_minBytesToKeep, __pyx_n_s_cmemPool, __pyx_n_s_pmemPool, __pyx_n_s_err); if (unlikely(!__pyx_tuple__789)) __PYX_ERR(0, 21707, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__789); __Pyx_GIVEREF(__pyx_tuple__789); __pyx_codeobj__496 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__789, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemPoolTrimTo, 21707, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__496)) __PYX_ERR(0, 21707, __pyx_L1_error) /* "cuda/cudart.pyx":21756 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemPoolSetAttribute(memPool, attr not None : cudaMemPoolAttr, value): * """ Sets attributes of a memory pool. */ __pyx_tuple__790 = PyTuple_Pack(9, __pyx_n_s_memPool, __pyx_n_s_attr, __pyx_n_s_value, __pyx_n_s_cmemPool, __pyx_n_s_pmemPool, __pyx_n_s_cattr, __pyx_n_s_cvalue, __pyx_n_s_cvalue_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__790)) __PYX_ERR(0, 21756, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__790); __Pyx_GIVEREF(__pyx_tuple__790); __pyx_codeobj__497 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__790, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemPoolSetAttribute, 21756, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__497)) __PYX_ERR(0, 21756, __pyx_L1_error) /* "cuda/cudart.pyx":21831 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemPoolGetAttribute(memPool, attr not None : cudaMemPoolAttr): * """ Gets attributes of a memory pool. */ __pyx_tuple__791 = PyTuple_Pack(8, __pyx_n_s_memPool, __pyx_n_s_attr, __pyx_n_s_cmemPool, __pyx_n_s_pmemPool, __pyx_n_s_cattr, __pyx_n_s_cvalue, __pyx_n_s_cvalue_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__791)) __PYX_ERR(0, 21831, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__791); __Pyx_GIVEREF(__pyx_tuple__791); __pyx_codeobj__498 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__791, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemPoolGetAttribute, 21831, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__498)) __PYX_ERR(0, 21831, __pyx_L1_error) /* "cuda/cudart.pyx":21912 * return (cudaError_t(err), cvalue.pyObj()) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemPoolSetAccess(memPool, descList : Optional[Tuple[cudaMemAccessDesc] | List[cudaMemAccessDesc]], size_t count): * """ Controls visibility of pools between devices. */ __pyx_tuple__792 = PyTuple_Pack(10, __pyx_n_s_memPool, __pyx_n_s_descList, __pyx_n_s_count, __pyx_n_s_cmemPool, __pyx_n_s_pmemPool, __pyx_n_s_cdescList, __pyx_n_s_idx, __pyx_n_s_err, __pyx_n_s_genexpr, __pyx_n_s_genexpr); if (unlikely(!__pyx_tuple__792)) __PYX_ERR(0, 21912, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__792); __Pyx_GIVEREF(__pyx_tuple__792); __pyx_codeobj__499 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__792, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemPoolSetAccess, 21912, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__499)) __PYX_ERR(0, 21912, __pyx_L1_error) /* "cuda/cudart.pyx":21960 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemPoolGetAccess(memPool, location : Optional[cudaMemLocation]): * """ Returns the accessibility of a pool from a device. */ __pyx_tuple__793 = PyTuple_Pack(7, __pyx_n_s_memPool, __pyx_n_s_location_2, __pyx_n_s_cmemPool, __pyx_n_s_pmemPool, __pyx_n_s_flags_2, __pyx_n_s_clocation_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__793)) __PYX_ERR(0, 21960, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__793); __Pyx_GIVEREF(__pyx_tuple__793); __pyx_codeobj__501 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__793, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemPoolGetAccess, 21960, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__501)) __PYX_ERR(0, 21960, __pyx_L1_error) /* "cuda/cudart.pyx":21999 * return (cudaError_t(err), cudaMemAccessFlags(flags)) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemPoolCreate(poolProps : Optional[cudaMemPoolProps]): * """ Creates a memory pool. */ __pyx_tuple__794 = PyTuple_Pack(4, __pyx_n_s_poolProps_2, __pyx_n_s_memPool, __pyx_n_s_cpoolProps_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__794)) __PYX_ERR(0, 21999, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__794); __Pyx_GIVEREF(__pyx_tuple__794); __pyx_codeobj__502 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__794, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemPoolCreate, 21999, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__502)) __PYX_ERR(0, 21999, __pyx_L1_error) /* "cuda/cudart.pyx":22064 * return (cudaError_t(err), memPool) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemPoolDestroy(memPool): * """ Destroys the specified memory pool. */ __pyx_tuple__795 = PyTuple_Pack(4, __pyx_n_s_memPool, __pyx_n_s_cmemPool, __pyx_n_s_pmemPool, __pyx_n_s_err); if (unlikely(!__pyx_tuple__795)) __PYX_ERR(0, 22064, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__795); __Pyx_GIVEREF(__pyx_tuple__795); __pyx_codeobj__503 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__795, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemPoolDestroy, 22064, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__503)) __PYX_ERR(0, 22064, __pyx_L1_error) /* "cuda/cudart.pyx":22107 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMallocFromPoolAsync(size_t size, memPool, stream): * """ Allocates memory from a specified pool with stream ordered semantics. */ __pyx_tuple__796 = PyTuple_Pack(9, __pyx_n_s_size_2, __pyx_n_s_memPool, __pyx_n_s_stream, __pyx_n_s_cstream, __pyx_n_s_pstream, __pyx_n_s_cmemPool, __pyx_n_s_pmemPool, __pyx_n_s_ptr_3, __pyx_n_s_err); if (unlikely(!__pyx_tuple__796)) __PYX_ERR(0, 22107, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__796); __Pyx_GIVEREF(__pyx_tuple__796); __pyx_codeobj__504 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__796, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMallocFromPoolAsync, 22107, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__504)) __PYX_ERR(0, 22107, __pyx_L1_error) /* "cuda/cudart.pyx":22162 * return (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_tuple__797 = PyTuple_Pack(9, __pyx_n_s_memPool, __pyx_n_s_handleType, __pyx_n_s_flags_2, __pyx_n_s_cmemPool, __pyx_n_s_pmemPool, __pyx_n_s_cshareableHandle, __pyx_n_s_cshareableHandle_ptr, __pyx_n_s_chandleType, __pyx_n_s_err); if (unlikely(!__pyx_tuple__797)) __PYX_ERR(0, 22162, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__797); __Pyx_GIVEREF(__pyx_tuple__797); __pyx_codeobj__505 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__797, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemPoolExportToShareableHand, 22162, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__505)) __PYX_ERR(0, 22162, __pyx_L1_error) /* "cuda/cudart.pyx":22214 * return (cudaError_t(err), cshareableHandle.pyObj()) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemPoolImportFromShareableHandle(shareableHandle, handleType not None : cudaMemAllocationHandleType, unsigned int flags): * """ imports a memory pool from a shared handle. */ __pyx_tuple__798 = PyTuple_Pack(8, __pyx_n_s_shareableHandle, __pyx_n_s_handleType, __pyx_n_s_flags_2, __pyx_n_s_memPool, __pyx_n_s_cshareableHandle, __pyx_n_s_cshareableHandle_ptr, __pyx_n_s_chandleType, __pyx_n_s_err); if (unlikely(!__pyx_tuple__798)) __PYX_ERR(0, 22214, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__798); __Pyx_GIVEREF(__pyx_tuple__798); __pyx_codeobj__506 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__798, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemPoolImportFromShareableHa, 22214, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__506)) __PYX_ERR(0, 22214, __pyx_L1_error) /* "cuda/cudart.pyx":22252 * return (cudaError_t(err), memPool) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemPoolExportPointer(ptr): * """ Export data to share a memory pool allocation between processes. */ __pyx_tuple__799 = PyTuple_Pack(5, __pyx_n_s_ptr_3, __pyx_n_s_exportData, __pyx_n_s_cptr, __pyx_n_s_cptr_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__799)) __PYX_ERR(0, 22252, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__799); __Pyx_GIVEREF(__pyx_tuple__799); __pyx_codeobj__507 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__799, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemPoolExportPointer, 22252, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__507)) __PYX_ERR(0, 22252, __pyx_L1_error) /* "cuda/cudart.pyx":22283 * return (cudaError_t(err), exportData) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemPoolImportPointer(memPool, exportData : Optional[cudaMemPoolPtrExportData]): * """ Import a memory pool allocation from another process. */ __pyx_tuple__800 = PyTuple_Pack(7, __pyx_n_s_memPool, __pyx_n_s_exportData, __pyx_n_s_cmemPool, __pyx_n_s_pmemPool, __pyx_n_s_ptr_3, __pyx_n_s_cexportData_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__800)) __PYX_ERR(0, 22283, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__800); __Pyx_GIVEREF(__pyx_tuple__800); __pyx_codeobj__508 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__800, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaMemPoolImportPointer, 22283, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__508)) __PYX_ERR(0, 22283, __pyx_L1_error) /* "cuda/cudart.pyx":22331 * return (cudaError_t(err), ptr) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaPointerGetAttributes(ptr): * """ Returns attributes about a specified pointer. */ __pyx_tuple__801 = PyTuple_Pack(5, __pyx_n_s_ptr_3, __pyx_n_s_attributes, __pyx_n_s_cptr, __pyx_n_s_cptr_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__801)) __PYX_ERR(0, 22331, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__801); __Pyx_GIVEREF(__pyx_tuple__801); __pyx_codeobj__509 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__801, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaPointerGetAttributes, 22331, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__509)) __PYX_ERR(0, 22331, __pyx_L1_error) /* "cuda/cudart.pyx":22397 * return (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_tuple__802 = PyTuple_Pack(4, __pyx_n_s_device_2, __pyx_n_s_peerDevice, __pyx_n_s_canAccessPeer, __pyx_n_s_err); if (unlikely(!__pyx_tuple__802)) __PYX_ERR(0, 22397, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__802); __Pyx_GIVEREF(__pyx_tuple__802); __pyx_codeobj__510 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__802, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaDeviceCanAccessPeer, 22397, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__510)) __PYX_ERR(0, 22397, __pyx_L1_error) /* "cuda/cudart.pyx":22430 * return (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_tuple__803 = PyTuple_Pack(3, __pyx_n_s_peerDevice, __pyx_n_s_flags_2, __pyx_n_s_err); if (unlikely(!__pyx_tuple__803)) __PYX_ERR(0, 22430, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__803); __Pyx_GIVEREF(__pyx_tuple__803); __pyx_codeobj__511 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__803, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaDeviceEnablePeerAccess, 22430, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__511)) __PYX_ERR(0, 22430, __pyx_L1_error) /* "cuda/cudart.pyx":22477 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceDisablePeerAccess(int peerDevice): * """ Disables direct access to memory allocations on a peer device. */ __pyx_tuple__804 = PyTuple_Pack(2, __pyx_n_s_peerDevice, __pyx_n_s_err); if (unlikely(!__pyx_tuple__804)) __PYX_ERR(0, 22477, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__804); __Pyx_GIVEREF(__pyx_tuple__804); __pyx_codeobj__512 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__804, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaDeviceDisablePeerAccess, 22477, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__512)) __PYX_ERR(0, 22477, __pyx_L1_error) /* "cuda/cudart.pyx":22502 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphicsUnregisterResource(resource): * """ Unregisters a graphics resource for access by CUDA. */ __pyx_tuple__805 = PyTuple_Pack(4, __pyx_n_s_resource, __pyx_n_s_cresource, __pyx_n_s_presource, __pyx_n_s_err); if (unlikely(!__pyx_tuple__805)) __PYX_ERR(0, 22502, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__805); __Pyx_GIVEREF(__pyx_tuple__805); __pyx_codeobj__513 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__805, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphicsUnregisterResource, 22502, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__513)) __PYX_ERR(0, 22502, __pyx_L1_error) /* "cuda/cudart.pyx":22538 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphicsResourceSetMapFlags(resource, unsigned int flags): * """ Set usage flags for mapping a graphics resource. */ __pyx_tuple__806 = PyTuple_Pack(5, __pyx_n_s_resource, __pyx_n_s_flags_2, __pyx_n_s_cresource, __pyx_n_s_presource, __pyx_n_s_err); if (unlikely(!__pyx_tuple__806)) __PYX_ERR(0, 22538, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__806); __Pyx_GIVEREF(__pyx_tuple__806); __pyx_codeobj__514 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__806, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphicsResourceSetMapFlags, 22538, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__514)) __PYX_ERR(0, 22538, __pyx_L1_error) /* "cuda/cudart.pyx":22591 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphicsMapResources(int count, resources, stream): * """ Map graphics resources for access by CUDA. */ __pyx_tuple__807 = PyTuple_Pack(8, __pyx_n_s_count, __pyx_n_s_resources, __pyx_n_s_stream, __pyx_n_s_cstream, __pyx_n_s_pstream, __pyx_n_s_cresources, __pyx_n_s_presources, __pyx_n_s_err); if (unlikely(!__pyx_tuple__807)) __PYX_ERR(0, 22591, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__807); __Pyx_GIVEREF(__pyx_tuple__807); __pyx_codeobj__515 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__807, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphicsMapResources, 22591, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__515)) __PYX_ERR(0, 22591, __pyx_L1_error) /* "cuda/cudart.pyx":22651 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphicsUnmapResources(int count, resources, stream): * """ Unmap graphics resources. */ __pyx_codeobj__516 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__807, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphicsUnmapResources, 22651, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__516)) __PYX_ERR(0, 22651, __pyx_L1_error) /* "cuda/cudart.pyx":22709 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphicsResourceGetMappedPointer(resource): * """ Get an device pointer through which to access a mapped graphics resource. */ __pyx_tuple__808 = PyTuple_Pack(6, __pyx_n_s_resource, __pyx_n_s_cresource, __pyx_n_s_presource, __pyx_n_s_devPtr_2, __pyx_n_s_size_2, __pyx_n_s_err); if (unlikely(!__pyx_tuple__808)) __PYX_ERR(0, 22709, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__808); __Pyx_GIVEREF(__pyx_tuple__808); __pyx_codeobj__517 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__808, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphicsResourceGetMappedPoi, 22709, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__517)) __PYX_ERR(0, 22709, __pyx_L1_error) /* "cuda/cudart.pyx":22750 * return (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_tuple__809 = PyTuple_Pack(7, __pyx_n_s_resource, __pyx_n_s_arrayIndex, __pyx_n_s_mipLevel, __pyx_n_s_cresource, __pyx_n_s_presource, __pyx_n_s_array_2, __pyx_n_s_err); if (unlikely(!__pyx_tuple__809)) __PYX_ERR(0, 22750, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__809); __Pyx_GIVEREF(__pyx_tuple__809); __pyx_codeobj__518 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__809, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphicsSubResourceGetMapped, 22750, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__518)) __PYX_ERR(0, 22750, __pyx_L1_error) /* "cuda/cudart.pyx":22802 * return (cudaError_t(err), array) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphicsResourceGetMappedMipmappedArray(resource): * """ Get a mipmapped array through which to access a mapped graphics resource. */ __pyx_tuple__810 = PyTuple_Pack(5, __pyx_n_s_resource, __pyx_n_s_cresource, __pyx_n_s_presource, __pyx_n_s_mipmappedArray, __pyx_n_s_err); if (unlikely(!__pyx_tuple__810)) __PYX_ERR(0, 22802, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__810); __Pyx_GIVEREF(__pyx_tuple__810); __pyx_codeobj__519 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__810, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphicsResourceGetMappedMip, 22802, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__519)) __PYX_ERR(0, 22802, __pyx_L1_error) /* "cuda/cudart.pyx":22843 * return (cudaError_t(err), mipmappedArray) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGetChannelDesc(array): * """ Get the channel descriptor of an array. */ __pyx_tuple__811 = PyTuple_Pack(5, __pyx_n_s_array_2, __pyx_n_s_carray, __pyx_n_s_parray, __pyx_n_s_desc_2, __pyx_n_s_err); if (unlikely(!__pyx_tuple__811)) __PYX_ERR(0, 22843, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__811); __Pyx_GIVEREF(__pyx_tuple__811); __pyx_codeobj__520 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__811, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGetChannelDesc, 22843, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__520)) __PYX_ERR(0, 22843, __pyx_L1_error) /* "cuda/cudart.pyx":22880 * return (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_tuple__812 = PyTuple_Pack(8, __pyx_n_s_x_2, __pyx_n_s_y_2, __pyx_n_s_z_2, __pyx_n_s_w_2, __pyx_n_s_f_2, __pyx_n_s_cf, __pyx_n_s_err, __pyx_n_s_wrapper); if (unlikely(!__pyx_tuple__812)) __PYX_ERR(0, 22880, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__812); __Pyx_GIVEREF(__pyx_tuple__812); __pyx_codeobj__521 = (PyObject*)__Pyx_PyCode_New(5, 0, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__812, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaCreateChannelDesc, 22880, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__521)) __PYX_ERR(0, 22880, __pyx_L1_error) /* "cuda/cudart.pyx":22925 * return (cudaError_t.cudaSuccess, wrapper) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaCreateTextureObject(pResDesc : Optional[cudaResourceDesc], pTexDesc : Optional[cudaTextureDesc], pResViewDesc : Optional[cudaResourceViewDesc]): * """ Creates a texture object. */ __pyx_tuple__813 = PyTuple_Pack(8, __pyx_n_s_pResDesc, __pyx_n_s_pTexDesc, __pyx_n_s_pResViewDesc, __pyx_n_s_pTexObject, __pyx_n_s_cpResDesc_ptr, __pyx_n_s_cpTexDesc_ptr, __pyx_n_s_cpResViewDesc_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__813)) __PYX_ERR(0, 22925, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__813); __Pyx_GIVEREF(__pyx_tuple__813); __pyx_codeobj__522 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__813, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaCreateTextureObject, 22925, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__522)) __PYX_ERR(0, 22925, __pyx_L1_error) /* "cuda/cudart.pyx":23164 * return (cudaError_t(err), pTexObject) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDestroyTextureObject(texObject): * """ Destroys a texture object. */ __pyx_tuple__814 = PyTuple_Pack(4, __pyx_n_s_texObject, __pyx_n_s_ctexObject, __pyx_n_s_ptexObject, __pyx_n_s_err); if (unlikely(!__pyx_tuple__814)) __PYX_ERR(0, 23164, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__814); __Pyx_GIVEREF(__pyx_tuple__814); __pyx_codeobj__523 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__814, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaDestroyTextureObject, 23164, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__523)) __PYX_ERR(0, 23164, __pyx_L1_error) /* "cuda/cudart.pyx":23198 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGetTextureObjectResourceDesc(texObject): * """ Returns a texture object's resource descriptor. */ __pyx_tuple__815 = PyTuple_Pack(5, __pyx_n_s_texObject, __pyx_n_s_ctexObject, __pyx_n_s_ptexObject, __pyx_n_s_pResDesc, __pyx_n_s_err); if (unlikely(!__pyx_tuple__815)) __PYX_ERR(0, 23198, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__815); __Pyx_GIVEREF(__pyx_tuple__815); __pyx_codeobj__524 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__815, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGetTextureObjectResourceDesc, 23198, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__524)) __PYX_ERR(0, 23198, __pyx_L1_error) /* "cuda/cudart.pyx":23236 * return (cudaError_t(err), pResDesc) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGetTextureObjectTextureDesc(texObject): * """ Returns a texture object's texture descriptor. */ __pyx_tuple__816 = PyTuple_Pack(5, __pyx_n_s_texObject, __pyx_n_s_ctexObject, __pyx_n_s_ptexObject, __pyx_n_s_pTexDesc, __pyx_n_s_err); if (unlikely(!__pyx_tuple__816)) __PYX_ERR(0, 23236, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__816); __Pyx_GIVEREF(__pyx_tuple__816); __pyx_codeobj__525 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__816, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGetTextureObjectTextureDesc, 23236, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__525)) __PYX_ERR(0, 23236, __pyx_L1_error) /* "cuda/cudart.pyx":23274 * return (cudaError_t(err), pTexDesc) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGetTextureObjectResourceViewDesc(texObject): * """ Returns a texture object's resource view descriptor. */ __pyx_tuple__817 = PyTuple_Pack(5, __pyx_n_s_texObject, __pyx_n_s_ctexObject, __pyx_n_s_ptexObject, __pyx_n_s_pResViewDesc, __pyx_n_s_err); if (unlikely(!__pyx_tuple__817)) __PYX_ERR(0, 23274, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__817); __Pyx_GIVEREF(__pyx_tuple__817); __pyx_codeobj__526 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__817, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGetTextureObjectResourceView, 23274, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__526)) __PYX_ERR(0, 23274, __pyx_L1_error) /* "cuda/cudart.pyx":23311 * return (cudaError_t(err), pResViewDesc) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaCreateSurfaceObject(pResDesc : Optional[cudaResourceDesc]): * """ Creates a surface object. */ __pyx_tuple__818 = PyTuple_Pack(4, __pyx_n_s_pResDesc, __pyx_n_s_pSurfObject, __pyx_n_s_cpResDesc_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__818)) __PYX_ERR(0, 23311, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__818); __Pyx_GIVEREF(__pyx_tuple__818); __pyx_codeobj__527 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__818, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaCreateSurfaceObject, 23311, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__527)) __PYX_ERR(0, 23311, __pyx_L1_error) /* "cuda/cudart.pyx":23349 * return (cudaError_t(err), pSurfObject) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDestroySurfaceObject(surfObject): * """ Destroys a surface object. */ __pyx_tuple__819 = PyTuple_Pack(4, __pyx_n_s_surfObject, __pyx_n_s_csurfObject, __pyx_n_s_psurfObject, __pyx_n_s_err); if (unlikely(!__pyx_tuple__819)) __PYX_ERR(0, 23349, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__819); __Pyx_GIVEREF(__pyx_tuple__819); __pyx_codeobj__528 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__819, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaDestroySurfaceObject, 23349, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__528)) __PYX_ERR(0, 23349, __pyx_L1_error) /* "cuda/cudart.pyx":23383 * return (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_tuple__820 = PyTuple_Pack(5, __pyx_n_s_surfObject, __pyx_n_s_csurfObject, __pyx_n_s_psurfObject, __pyx_n_s_pResDesc, __pyx_n_s_err); if (unlikely(!__pyx_tuple__820)) __PYX_ERR(0, 23383, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__820); __Pyx_GIVEREF(__pyx_tuple__820); __pyx_codeobj__529 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__820, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGetSurfaceObjectResourceDesc, 23383, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__529)) __PYX_ERR(0, 23383, __pyx_L1_error) /* "cuda/cudart.pyx":23416 * return (cudaError_t(err), pResDesc) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDriverGetVersion(): * """ Returns the latest version of CUDA supported by the driver. */ __pyx_tuple__821 = PyTuple_Pack(2, __pyx_n_s_driverVersion, __pyx_n_s_err); if (unlikely(!__pyx_tuple__821)) __PYX_ERR(0, 23416, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__821); __Pyx_GIVEREF(__pyx_tuple__821); __pyx_codeobj__530 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__821, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaDriverGetVersion, 23416, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__530)) __PYX_ERR(0, 23416, __pyx_L1_error) /* "cuda/cudart.pyx":23443 * return (cudaError_t(err), driverVersion) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaRuntimeGetVersion(): * """ Returns the CUDA Runtime version. */ __pyx_tuple__822 = PyTuple_Pack(2, __pyx_n_s_runtimeVersion, __pyx_n_s_err); if (unlikely(!__pyx_tuple__822)) __PYX_ERR(0, 23443, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__822); __Pyx_GIVEREF(__pyx_tuple__822); __pyx_codeobj__531 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__822, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaRuntimeGetVersion, 23443, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__531)) __PYX_ERR(0, 23443, __pyx_L1_error) /* "cuda/cudart.pyx":23473 * return (cudaError_t(err), runtimeVersion) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphCreate(unsigned int flags): * """ Creates a graph. */ __pyx_tuple__823 = PyTuple_Pack(3, __pyx_n_s_flags_2, __pyx_n_s_pGraph, __pyx_n_s_err); if (unlikely(!__pyx_tuple__823)) __PYX_ERR(0, 23473, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__823); __Pyx_GIVEREF(__pyx_tuple__823); __pyx_codeobj__532 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__823, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphCreate, 23473, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__532)) __PYX_ERR(0, 23473, __pyx_L1_error) /* "cuda/cudart.pyx":23499 * return (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_tuple__824 = PyTuple_Pack(13, __pyx_n_s_graph_2, __pyx_n_s_pDependencies, __pyx_n_s_numDependencies, __pyx_n_s_pNodeParams, __pyx_n_s_cgraph, __pyx_n_s_pgraph, __pyx_n_s_pGraphNode, __pyx_n_s_cpDependencies, __pyx_n_s_idx, __pyx_n_s_cpNodeParams_ptr, __pyx_n_s_err, __pyx_n_s_genexpr, __pyx_n_s_genexpr); if (unlikely(!__pyx_tuple__824)) __PYX_ERR(0, 23499, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__824); __Pyx_GIVEREF(__pyx_tuple__824); __pyx_codeobj__533 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__824, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphAddKernelNode, 23499, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__533)) __PYX_ERR(0, 23499, __pyx_L1_error) /* "cuda/cudart.pyx":23614 * return (cudaError_t(err), pGraphNode) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphKernelNodeGetParams(node): * """ Returns a kernel node's parameters. */ __pyx_tuple__825 = PyTuple_Pack(5, __pyx_n_s_node_2, __pyx_n_s_cnode, __pyx_n_s_pnode, __pyx_n_s_pNodeParams, __pyx_n_s_err); if (unlikely(!__pyx_tuple__825)) __PYX_ERR(0, 23614, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__825); __Pyx_GIVEREF(__pyx_tuple__825); __pyx_codeobj__535 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__825, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphKernelNodeGetParams, 23614, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__535)) __PYX_ERR(0, 23614, __pyx_L1_error) /* "cuda/cudart.pyx":23658 * return (cudaError_t(err), pNodeParams) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphKernelNodeSetParams(node, pNodeParams : Optional[cudaKernelNodeParams]): * """ Sets a kernel node's parameters. */ __pyx_tuple__826 = PyTuple_Pack(6, __pyx_n_s_node_2, __pyx_n_s_pNodeParams, __pyx_n_s_cnode, __pyx_n_s_pnode, __pyx_n_s_cpNodeParams_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__826)) __PYX_ERR(0, 23658, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__826); __Pyx_GIVEREF(__pyx_tuple__826); __pyx_codeobj__536 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__826, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphKernelNodeSetParams, 23658, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__536)) __PYX_ERR(0, 23658, __pyx_L1_error) /* "cuda/cudart.pyx":23693 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphKernelNodeCopyAttributes(hSrc, hDst): * """ Copies attributes from source node to destination node. */ __pyx_tuple__827 = PyTuple_Pack(7, __pyx_n_s_hSrc, __pyx_n_s_hDst, __pyx_n_s_chDst, __pyx_n_s_phDst, __pyx_n_s_chSrc, __pyx_n_s_phSrc, __pyx_n_s_err); if (unlikely(!__pyx_tuple__827)) __PYX_ERR(0, 23693, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__827); __Pyx_GIVEREF(__pyx_tuple__827); __pyx_codeobj__537 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__827, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphKernelNodeCopyAttribute, 23693, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__537)) __PYX_ERR(0, 23693, __pyx_L1_error) /* "cuda/cudart.pyx":23738 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphKernelNodeGetAttribute(hNode, attr not None : cudaKernelNodeAttrID): * """ Queries node attribute. */ __pyx_tuple__828 = PyTuple_Pack(7, __pyx_n_s_hNode, __pyx_n_s_attr, __pyx_n_s_chNode, __pyx_n_s_phNode, __pyx_n_s_cattr, __pyx_n_s_value_out, __pyx_n_s_err); if (unlikely(!__pyx_tuple__828)) __PYX_ERR(0, 23738, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__828); __Pyx_GIVEREF(__pyx_tuple__828); __pyx_codeobj__538 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__828, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphKernelNodeGetAttribute, 23738, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__538)) __PYX_ERR(0, 23738, __pyx_L1_error) /* "cuda/cudart.pyx":23777 * return (cudaError_t(err), value_out) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphKernelNodeSetAttribute(hNode, attr not None : cudaKernelNodeAttrID, value : Optional[cudaKernelNodeAttrValue]): * """ Sets node attribute. */ __pyx_tuple__829 = PyTuple_Pack(8, __pyx_n_s_hNode, __pyx_n_s_attr, __pyx_n_s_value, __pyx_n_s_chNode, __pyx_n_s_phNode, __pyx_n_s_cattr, __pyx_n_s_cvalue_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__829)) __PYX_ERR(0, 23777, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__829); __Pyx_GIVEREF(__pyx_tuple__829); __pyx_codeobj__539 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__829, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphKernelNodeSetAttribute, 23777, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__539)) __PYX_ERR(0, 23777, __pyx_L1_error) /* "cuda/cudart.pyx":23816 * return (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_tuple__830 = PyTuple_Pack(13, __pyx_n_s_graph_2, __pyx_n_s_pDependencies, __pyx_n_s_numDependencies, __pyx_n_s_pCopyParams, __pyx_n_s_cgraph, __pyx_n_s_pgraph, __pyx_n_s_pGraphNode, __pyx_n_s_cpDependencies, __pyx_n_s_idx, __pyx_n_s_cpCopyParams_ptr, __pyx_n_s_err, __pyx_n_s_genexpr, __pyx_n_s_genexpr); if (unlikely(!__pyx_tuple__830)) __PYX_ERR(0, 23816, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__830); __Pyx_GIVEREF(__pyx_tuple__830); __pyx_codeobj__540 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__830, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphAddMemcpyNode, 23816, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__540)) __PYX_ERR(0, 23816, __pyx_L1_error) /* "cuda/cudart.pyx":23885 * return (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_tuple__831 = PyTuple_Pack(20, __pyx_n_s_graph_2, __pyx_n_s_pDependencies, __pyx_n_s_numDependencies, __pyx_n_s_dst_2, __pyx_n_s_src, __pyx_n_s_count, __pyx_n_s_kind_2, __pyx_n_s_cgraph, __pyx_n_s_pgraph, __pyx_n_s_pGraphNode, __pyx_n_s_cpDependencies, __pyx_n_s_idx, __pyx_n_s_cdst, __pyx_n_s_cdst_ptr, __pyx_n_s_csrc, __pyx_n_s_csrc_ptr, __pyx_n_s_ckind, __pyx_n_s_err, __pyx_n_s_genexpr, __pyx_n_s_genexpr); if (unlikely(!__pyx_tuple__831)) __PYX_ERR(0, 23885, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__831); __Pyx_GIVEREF(__pyx_tuple__831); __pyx_codeobj__541 = (PyObject*)__Pyx_PyCode_New(7, 0, 0, 20, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__831, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphAddMemcpyNode1D, 23885, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__541)) __PYX_ERR(0, 23885, __pyx_L1_error) /* "cuda/cudart.pyx":23973 * return (cudaError_t(err), pGraphNode) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphMemcpyNodeGetParams(node): * """ Returns a memcpy node's parameters. */ __pyx_codeobj__542 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__825, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphMemcpyNodeGetParams, 23973, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__542)) __PYX_ERR(0, 23973, __pyx_L1_error) /* "cuda/cudart.pyx":24008 * return (cudaError_t(err), pNodeParams) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphMemcpyNodeSetParams(node, pNodeParams : Optional[cudaMemcpy3DParms]): * """ Sets a memcpy node's parameters. */ __pyx_codeobj__543 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__826, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphMemcpyNodeSetParams, 24008, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__543)) __PYX_ERR(0, 24008, __pyx_L1_error) /* "cuda/cudart.pyx":24043 * return (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_tuple__832 = PyTuple_Pack(13, __pyx_n_s_node_2, __pyx_n_s_dst_2, __pyx_n_s_src, __pyx_n_s_count, __pyx_n_s_kind_2, __pyx_n_s_cnode, __pyx_n_s_pnode, __pyx_n_s_cdst, __pyx_n_s_cdst_ptr, __pyx_n_s_csrc, __pyx_n_s_csrc_ptr, __pyx_n_s_ckind, __pyx_n_s_err); if (unlikely(!__pyx_tuple__832)) __PYX_ERR(0, 24043, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__832); __Pyx_GIVEREF(__pyx_tuple__832); __pyx_codeobj__544 = (PyObject*)__Pyx_PyCode_New(5, 0, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__832, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphMemcpyNodeSetParams1D, 24043, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__544)) __PYX_ERR(0, 24043, __pyx_L1_error) /* "cuda/cudart.pyx":24102 * return (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_tuple__833 = PyTuple_Pack(13, __pyx_n_s_graph_2, __pyx_n_s_pDependencies, __pyx_n_s_numDependencies, __pyx_n_s_pMemsetParams, __pyx_n_s_cgraph, __pyx_n_s_pgraph, __pyx_n_s_pGraphNode, __pyx_n_s_cpDependencies, __pyx_n_s_idx, __pyx_n_s_cpMemsetParams_ptr, __pyx_n_s_err, __pyx_n_s_genexpr, __pyx_n_s_genexpr); if (unlikely(!__pyx_tuple__833)) __PYX_ERR(0, 24102, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__833); __Pyx_GIVEREF(__pyx_tuple__833); __pyx_codeobj__545 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__833, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphAddMemsetNode, 24102, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__545)) __PYX_ERR(0, 24102, __pyx_L1_error) /* "cuda/cudart.pyx":24165 * return (cudaError_t(err), pGraphNode) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphMemsetNodeGetParams(node): * """ Returns a memset node's parameters. */ __pyx_codeobj__546 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__825, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphMemsetNodeGetParams, 24165, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__546)) __PYX_ERR(0, 24165, __pyx_L1_error) /* "cuda/cudart.pyx":24200 * return (cudaError_t(err), pNodeParams) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphMemsetNodeSetParams(node, pNodeParams : Optional[cudaMemsetParams]): * """ Sets a memset node's parameters. */ __pyx_codeobj__547 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__826, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphMemsetNodeSetParams, 24200, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__547)) __PYX_ERR(0, 24200, __pyx_L1_error) /* "cuda/cudart.pyx":24235 * return (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_codeobj__548 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__824, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphAddHostNode, 24235, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__548)) __PYX_ERR(0, 24235, __pyx_L1_error) /* "cuda/cudart.pyx":24299 * return (cudaError_t(err), pGraphNode) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphHostNodeGetParams(node): * """ Returns a host node's parameters. */ __pyx_codeobj__549 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__825, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphHostNodeGetParams, 24299, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__549)) __PYX_ERR(0, 24299, __pyx_L1_error) /* "cuda/cudart.pyx":24334 * return (cudaError_t(err), pNodeParams) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphHostNodeSetParams(node, pNodeParams : Optional[cudaHostNodeParams]): * """ Sets a host node's parameters. */ __pyx_codeobj__550 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__826, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphHostNodeSetParams, 24334, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__550)) __PYX_ERR(0, 24334, __pyx_L1_error) /* "cuda/cudart.pyx":24369 * return (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_tuple__834 = PyTuple_Pack(14, __pyx_n_s_graph_2, __pyx_n_s_pDependencies, __pyx_n_s_numDependencies, __pyx_n_s_childGraph, __pyx_n_s_cchildGraph, __pyx_n_s_pchildGraph, __pyx_n_s_cgraph, __pyx_n_s_pgraph, __pyx_n_s_pGraphNode, __pyx_n_s_cpDependencies, __pyx_n_s_idx, __pyx_n_s_err, __pyx_n_s_genexpr, __pyx_n_s_genexpr); if (unlikely(!__pyx_tuple__834)) __PYX_ERR(0, 24369, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__834); __Pyx_GIVEREF(__pyx_tuple__834); __pyx_codeobj__551 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__834, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphAddChildGraphNode, 24369, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__551)) __PYX_ERR(0, 24369, __pyx_L1_error) /* "cuda/cudart.pyx":24444 * return (cudaError_t(err), pGraphNode) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphChildGraphNodeGetGraph(node): * """ Gets a handle to the embedded graph of a child graph node. */ __pyx_tuple__835 = PyTuple_Pack(5, __pyx_n_s_node_2, __pyx_n_s_cnode, __pyx_n_s_pnode, __pyx_n_s_pGraph, __pyx_n_s_err); if (unlikely(!__pyx_tuple__835)) __PYX_ERR(0, 24444, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__835); __Pyx_GIVEREF(__pyx_tuple__835); __pyx_codeobj__552 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__835, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphChildGraphNodeGetGraph, 24444, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__552)) __PYX_ERR(0, 24444, __pyx_L1_error) /* "cuda/cudart.pyx":24484 * return (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_tuple__836 = PyTuple_Pack(11, __pyx_n_s_graph_2, __pyx_n_s_pDependencies, __pyx_n_s_numDependencies, __pyx_n_s_cgraph, __pyx_n_s_pgraph, __pyx_n_s_pGraphNode, __pyx_n_s_cpDependencies, __pyx_n_s_idx, __pyx_n_s_err, __pyx_n_s_genexpr, __pyx_n_s_genexpr); if (unlikely(!__pyx_tuple__836)) __PYX_ERR(0, 24484, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__836); __Pyx_GIVEREF(__pyx_tuple__836); __pyx_codeobj__553 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__836, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphAddEmptyNode, 24484, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__553)) __PYX_ERR(0, 24484, __pyx_L1_error) /* "cuda/cudart.pyx":24548 * return (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_tuple__837 = PyTuple_Pack(14, __pyx_n_s_graph_2, __pyx_n_s_pDependencies, __pyx_n_s_numDependencies, __pyx_n_s_event_2, __pyx_n_s_cevent, __pyx_n_s_pevent, __pyx_n_s_cgraph, __pyx_n_s_pgraph, __pyx_n_s_pGraphNode, __pyx_n_s_cpDependencies, __pyx_n_s_idx, __pyx_n_s_err, __pyx_n_s_genexpr, __pyx_n_s_genexpr); if (unlikely(!__pyx_tuple__837)) __PYX_ERR(0, 24548, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__837); __Pyx_GIVEREF(__pyx_tuple__837); __pyx_codeobj__554 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__837, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphAddEventRecordNode, 24548, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__554)) __PYX_ERR(0, 24548, __pyx_L1_error) /* "cuda/cudart.pyx":24622 * return (cudaError_t(err), pGraphNode) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphEventRecordNodeGetEvent(node): * """ Returns the event associated with an event record node. */ __pyx_tuple__838 = PyTuple_Pack(5, __pyx_n_s_node_2, __pyx_n_s_cnode, __pyx_n_s_pnode, __pyx_n_s_event_out, __pyx_n_s_err); if (unlikely(!__pyx_tuple__838)) __PYX_ERR(0, 24622, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__838); __Pyx_GIVEREF(__pyx_tuple__838); __pyx_codeobj__555 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__838, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphEventRecordNodeGetEvent, 24622, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__555)) __PYX_ERR(0, 24622, __pyx_L1_error) /* "cuda/cudart.pyx":24657 * return (cudaError_t(err), event_out) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphEventRecordNodeSetEvent(node, event): * """ Sets an event record node's event. */ __pyx_tuple__839 = PyTuple_Pack(7, __pyx_n_s_node_2, __pyx_n_s_event_2, __pyx_n_s_cevent, __pyx_n_s_pevent, __pyx_n_s_cnode, __pyx_n_s_pnode, __pyx_n_s_err); if (unlikely(!__pyx_tuple__839)) __PYX_ERR(0, 24657, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__839); __Pyx_GIVEREF(__pyx_tuple__839); __pyx_codeobj__556 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__839, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphEventRecordNodeSetEvent, 24657, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__556)) __PYX_ERR(0, 24657, __pyx_L1_error) /* "cuda/cudart.pyx":24700 * return (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_codeobj__557 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__837, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphAddEventWaitNode, 24700, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__557)) __PYX_ERR(0, 24700, __pyx_L1_error) /* "cuda/cudart.pyx":24777 * return (cudaError_t(err), pGraphNode) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphEventWaitNodeGetEvent(node): * """ Returns the event associated with an event wait node. */ __pyx_codeobj__558 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__838, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphEventWaitNodeGetEvent, 24777, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__558)) __PYX_ERR(0, 24777, __pyx_L1_error) /* "cuda/cudart.pyx":24812 * return (cudaError_t(err), event_out) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphEventWaitNodeSetEvent(node, event): * """ Sets an event wait node's event. */ __pyx_codeobj__559 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__839, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphEventWaitNodeSetEvent, 24812, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__559)) __PYX_ERR(0, 24812, __pyx_L1_error) /* "cuda/cudart.pyx":24855 * return (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_tuple__840 = PyTuple_Pack(13, __pyx_n_s_graph_2, __pyx_n_s_pDependencies, __pyx_n_s_numDependencies, __pyx_n_s_nodeParams, __pyx_n_s_cgraph, __pyx_n_s_pgraph, __pyx_n_s_pGraphNode, __pyx_n_s_cpDependencies, __pyx_n_s_idx, __pyx_n_s_cnodeParams_ptr, __pyx_n_s_err, __pyx_n_s_genexpr, __pyx_n_s_genexpr); if (unlikely(!__pyx_tuple__840)) __PYX_ERR(0, 24855, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__840); __Pyx_GIVEREF(__pyx_tuple__840); __pyx_codeobj__560 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__840, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphAddExternalSemaphoresSi_2, 24855, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__560)) __PYX_ERR(0, 24855, __pyx_L1_error) /* "cuda/cudart.pyx":24920 * return (cudaError_t(err), pGraphNode) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphExternalSemaphoresSignalNodeGetParams(hNode): * """ Returns an external semaphore signal node's parameters. */ __pyx_tuple__841 = PyTuple_Pack(5, __pyx_n_s_hNode, __pyx_n_s_chNode, __pyx_n_s_phNode, __pyx_n_s_params_out, __pyx_n_s_err); if (unlikely(!__pyx_tuple__841)) __PYX_ERR(0, 24920, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__841); __Pyx_GIVEREF(__pyx_tuple__841); __pyx_codeobj__561 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__841, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphExternalSemaphoresSigna, 24920, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__561)) __PYX_ERR(0, 24920, __pyx_L1_error) /* "cuda/cudart.pyx":24961 * return (cudaError_t(err), params_out) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams : Optional[cudaExternalSemaphoreSignalNodeParams]): * """ Sets an external semaphore signal node's parameters. */ __pyx_tuple__842 = PyTuple_Pack(6, __pyx_n_s_hNode, __pyx_n_s_nodeParams, __pyx_n_s_chNode, __pyx_n_s_phNode, __pyx_n_s_cnodeParams_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__842)) __PYX_ERR(0, 24961, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__842); __Pyx_GIVEREF(__pyx_tuple__842); __pyx_codeobj__562 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__842, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphExternalSemaphoresSigna_2, 24961, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__562)) __PYX_ERR(0, 24961, __pyx_L1_error) /* "cuda/cudart.pyx":24997 * return (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_codeobj__563 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__840, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphAddExternalSemaphoresWa_2, 24997, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__563)) __PYX_ERR(0, 24997, __pyx_L1_error) /* "cuda/cudart.pyx":25062 * return (cudaError_t(err), pGraphNode) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphExternalSemaphoresWaitNodeGetParams(hNode): * """ Returns an external semaphore wait node's parameters. */ __pyx_codeobj__564 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__841, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphExternalSemaphoresWaitN, 25062, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__564)) __PYX_ERR(0, 25062, __pyx_L1_error) /* "cuda/cudart.pyx":25103 * return (cudaError_t(err), params_out) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams : Optional[cudaExternalSemaphoreWaitNodeParams]): * """ Sets an external semaphore wait node's parameters. */ __pyx_codeobj__565 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__842, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphExternalSemaphoresWaitN_2, 25103, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__565)) __PYX_ERR(0, 25103, __pyx_L1_error) /* "cuda/cudart.pyx":25139 * return (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_codeobj__566 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__840, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphAddMemAllocNode, 25139, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__566)) __PYX_ERR(0, 25139, __pyx_L1_error) /* "cuda/cudart.pyx":25242 * return (cudaError_t(err), pGraphNode) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphMemAllocNodeGetParams(node): * """ Returns a memory alloc node's parameters. */ __pyx_tuple__843 = PyTuple_Pack(5, __pyx_n_s_node_2, __pyx_n_s_cnode, __pyx_n_s_pnode, __pyx_n_s_params_out, __pyx_n_s_err); if (unlikely(!__pyx_tuple__843)) __PYX_ERR(0, 25242, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__843); __Pyx_GIVEREF(__pyx_tuple__843); __pyx_codeobj__567 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__843, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphMemAllocNodeGetParams, 25242, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__567)) __PYX_ERR(0, 25242, __pyx_L1_error) /* "cuda/cudart.pyx":25280 * return (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_tuple__844 = PyTuple_Pack(14, __pyx_n_s_graph_2, __pyx_n_s_pDependencies, __pyx_n_s_numDependencies, __pyx_n_s_dptr_2, __pyx_n_s_cgraph, __pyx_n_s_pgraph, __pyx_n_s_pGraphNode, __pyx_n_s_cpDependencies, __pyx_n_s_idx, __pyx_n_s_cdptr, __pyx_n_s_cdptr_ptr, __pyx_n_s_err, __pyx_n_s_genexpr, __pyx_n_s_genexpr); if (unlikely(!__pyx_tuple__844)) __PYX_ERR(0, 25280, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__844); __Pyx_GIVEREF(__pyx_tuple__844); __pyx_codeobj__568 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 14, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__844, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphAddMemFreeNode, 25280, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__568)) __PYX_ERR(0, 25280, __pyx_L1_error) /* "cuda/cudart.pyx":25362 * return (cudaError_t(err), pGraphNode) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphMemFreeNodeGetParams(node): * """ Returns a memory free node's parameters. */ __pyx_tuple__845 = PyTuple_Pack(6, __pyx_n_s_node_2, __pyx_n_s_cnode, __pyx_n_s_pnode, __pyx_n_s_dptr_out, __pyx_n_s_cdptr_out_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__845)) __PYX_ERR(0, 25362, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__845); __Pyx_GIVEREF(__pyx_tuple__845); __pyx_codeobj__569 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__845, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphMemFreeNodeGetParams, 25362, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__569)) __PYX_ERR(0, 25362, __pyx_L1_error) /* "cuda/cudart.pyx":25398 * return (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_codeobj__570 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__689, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaDeviceGraphMemTrim, 25398, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__570)) __PYX_ERR(0, 25398, __pyx_L1_error) /* "cuda/cudart.pyx":25423 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceGetGraphMemAttribute(int device, attr not None : cudaGraphMemAttributeType): * """ Query asynchronous allocation attributes related to graphs. */ __pyx_tuple__846 = PyTuple_Pack(6, __pyx_n_s_device_2, __pyx_n_s_attr, __pyx_n_s_cattr, __pyx_n_s_cvalue, __pyx_n_s_cvalue_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__846)) __PYX_ERR(0, 25423, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__846); __Pyx_GIVEREF(__pyx_tuple__846); __pyx_codeobj__571 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__846, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaDeviceGetGraphMemAttribute, 25423, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__571)) __PYX_ERR(0, 25423, __pyx_L1_error) /* "cuda/cudart.pyx":25468 * return (cudaError_t(err), cvalue.pyObj()) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceSetGraphMemAttribute(int device, attr not None : cudaGraphMemAttributeType, value): * """ Set asynchronous allocation attributes related to graphs. */ __pyx_tuple__847 = PyTuple_Pack(7, __pyx_n_s_device_2, __pyx_n_s_attr, __pyx_n_s_value, __pyx_n_s_cattr, __pyx_n_s_cvalue, __pyx_n_s_cvalue_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__847)) __PYX_ERR(0, 25468, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__847); __Pyx_GIVEREF(__pyx_tuple__847); __pyx_codeobj__572 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__847, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaDeviceSetGraphMemAttribute, 25468, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__572)) __PYX_ERR(0, 25468, __pyx_L1_error) /* "cuda/cudart.pyx":25506 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphClone(originalGraph): * """ Clones a graph. */ __pyx_tuple__848 = PyTuple_Pack(5, __pyx_n_s_originalGraph, __pyx_n_s_coriginalGraph, __pyx_n_s_poriginalGraph, __pyx_n_s_pGraphClone, __pyx_n_s_err); if (unlikely(!__pyx_tuple__848)) __PYX_ERR(0, 25506, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__848); __Pyx_GIVEREF(__pyx_tuple__848); __pyx_codeobj__573 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__848, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphClone, 25506, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__573)) __PYX_ERR(0, 25506, __pyx_L1_error) /* "cuda/cudart.pyx":25547 * return (cudaError_t(err), pGraphClone) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphNodeFindInClone(originalNode, clonedGraph): * """ Finds a cloned version of a node. */ __pyx_tuple__849 = PyTuple_Pack(8, __pyx_n_s_originalNode, __pyx_n_s_clonedGraph, __pyx_n_s_cclonedGraph, __pyx_n_s_pclonedGraph, __pyx_n_s_coriginalNode, __pyx_n_s_poriginalNode, __pyx_n_s_pNode, __pyx_n_s_err); if (unlikely(!__pyx_tuple__849)) __PYX_ERR(0, 25547, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__849); __Pyx_GIVEREF(__pyx_tuple__849); __pyx_codeobj__574 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__849, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphNodeFindInClone, 25547, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__574)) __PYX_ERR(0, 25547, __pyx_L1_error) /* "cuda/cudart.pyx":25600 * return (cudaError_t(err), pNode) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphNodeGetType(node): * """ Returns a node's type. */ __pyx_tuple__850 = PyTuple_Pack(5, __pyx_n_s_node_2, __pyx_n_s_cnode, __pyx_n_s_pnode, __pyx_n_s_pType, __pyx_n_s_err); if (unlikely(!__pyx_tuple__850)) __PYX_ERR(0, 25600, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__850); __Pyx_GIVEREF(__pyx_tuple__850); __pyx_codeobj__575 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__850, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphNodeGetType, 25600, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__575)) __PYX_ERR(0, 25600, __pyx_L1_error) /* "cuda/cudart.pyx":25635 * return (cudaError_t(err), cudaGraphNodeType(pType)) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphGetNodes(graph, size_t numNodes = 0): * """ Returns a graph's nodes. */ __pyx_tuple__851 = PyTuple_Pack(9, __pyx_n_s_graph_2, __pyx_n_s_numNodes, __pyx_n_s_graph_length, __pyx_n_s_cgraph, __pyx_n_s_pgraph, __pyx_n_s_cnodes, __pyx_n_s_pynodes, __pyx_n_s_err, __pyx_n_s_idx); if (unlikely(!__pyx_tuple__851)) __PYX_ERR(0, 25635, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__851); __Pyx_GIVEREF(__pyx_tuple__851); __pyx_codeobj__576 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__851, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphGetNodes, 25635, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__576)) __PYX_ERR(0, 25635, __pyx_L1_error) /* "cuda/cudart.pyx":25689 * return (cudaError_t(err), pynodes, numNodes) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphGetRootNodes(graph, size_t pNumRootNodes = 0): * """ Returns a graph's root nodes. */ __pyx_tuple__852 = PyTuple_Pack(9, __pyx_n_s_graph_2, __pyx_n_s_pNumRootNodes, __pyx_n_s_graph_length, __pyx_n_s_cgraph, __pyx_n_s_pgraph, __pyx_n_s_cpRootNodes, __pyx_n_s_pypRootNodes, __pyx_n_s_err, __pyx_n_s_idx); if (unlikely(!__pyx_tuple__852)) __PYX_ERR(0, 25689, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__852); __Pyx_GIVEREF(__pyx_tuple__852); __pyx_codeobj__577 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__852, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphGetRootNodes, 25689, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__577)) __PYX_ERR(0, 25689, __pyx_L1_error) /* "cuda/cudart.pyx":25743 * return (cudaError_t(err), pypRootNodes, pNumRootNodes) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphGetEdges(graph, size_t numEdges = 0): * """ Returns a graph's dependency edges. */ __pyx_tuple__853 = PyTuple_Pack(12, __pyx_n_s_graph_2, __pyx_n_s_numEdges, __pyx_n_s_graph_length, __pyx_n_s_cgraph, __pyx_n_s_pgraph, __pyx_n_s_cfrom, __pyx_n_s_pyfrom, __pyx_n_s_cto, __pyx_n_s_pyto, __pyx_n_s_err, __pyx_n_s_idx, __pyx_n_s_idx); if (unlikely(!__pyx_tuple__853)) __PYX_ERR(0, 25743, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__853); __Pyx_GIVEREF(__pyx_tuple__853); __pyx_codeobj__578 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 12, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__853, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphGetEdges, 25743, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__578)) __PYX_ERR(0, 25743, __pyx_L1_error) /* "cuda/cudart.pyx":25811 * return (cudaError_t(err), pyfrom_, pyto, numEdges) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphGetEdges_v2(graph, size_t numEdges = 0): * """ Returns a graph's dependency edges (12.3+) */ __pyx_tuple__854 = PyTuple_Pack(15, __pyx_n_s_graph_2, __pyx_n_s_numEdges, __pyx_n_s_graph_length, __pyx_n_s_cgraph, __pyx_n_s_pgraph, __pyx_n_s_cfrom, __pyx_n_s_pyfrom, __pyx_n_s_cto, __pyx_n_s_pyto, __pyx_n_s_cedgeData, __pyx_n_s_pyedgeData, __pyx_n_s_err, __pyx_n_s_idx, __pyx_n_s_idx, __pyx_n_s_idx); if (unlikely(!__pyx_tuple__854)) __PYX_ERR(0, 25811, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__854); __Pyx_GIVEREF(__pyx_tuple__854); __pyx_codeobj__579 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 15, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__854, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphGetEdges_v2, 25811, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__579)) __PYX_ERR(0, 25811, __pyx_L1_error) /* "cuda/cudart.pyx":25896 * return (cudaError_t(err), pyfrom_, pyto, pyedgeData, numEdges) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphNodeGetDependencies(node, size_t pNumDependencies = 0): * """ Returns a node's dependencies. */ __pyx_tuple__855 = PyTuple_Pack(9, __pyx_n_s_node_2, __pyx_n_s_pNumDependencies, __pyx_n_s_graph_length, __pyx_n_s_cnode, __pyx_n_s_pnode, __pyx_n_s_cpDependencies, __pyx_n_s_pypDependencies, __pyx_n_s_err, __pyx_n_s_idx); if (unlikely(!__pyx_tuple__855)) __PYX_ERR(0, 25896, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__855); __Pyx_GIVEREF(__pyx_tuple__855); __pyx_codeobj__580 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__855, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphNodeGetDependencies, 25896, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__580)) __PYX_ERR(0, 25896, __pyx_L1_error) /* "cuda/cudart.pyx":25951 * return (cudaError_t(err), pypDependencies, pNumDependencies) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphNodeGetDependencies_v2(node, size_t pNumDependencies = 0): * """ Returns a node's dependencies (12.3+) */ __pyx_tuple__856 = PyTuple_Pack(12, __pyx_n_s_node_2, __pyx_n_s_pNumDependencies, __pyx_n_s_graph_length, __pyx_n_s_cnode, __pyx_n_s_pnode, __pyx_n_s_cpDependencies, __pyx_n_s_pypDependencies, __pyx_n_s_cedgeData, __pyx_n_s_pyedgeData, __pyx_n_s_err, __pyx_n_s_idx, __pyx_n_s_idx); if (unlikely(!__pyx_tuple__856)) __PYX_ERR(0, 25951, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__856); __Pyx_GIVEREF(__pyx_tuple__856); __pyx_codeobj__581 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 12, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__856, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphNodeGetDependencies_v2, 25951, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__581)) __PYX_ERR(0, 25951, __pyx_L1_error) /* "cuda/cudart.pyx":26023 * return (cudaError_t(err), pypDependencies, pyedgeData, pNumDependencies) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphNodeGetDependentNodes(node, size_t pNumDependentNodes = 0): * """ Returns a node's dependent nodes. */ __pyx_tuple__857 = PyTuple_Pack(9, __pyx_n_s_node_2, __pyx_n_s_pNumDependentNodes, __pyx_n_s_graph_length, __pyx_n_s_cnode, __pyx_n_s_pnode, __pyx_n_s_cpDependentNodes, __pyx_n_s_pypDependentNodes, __pyx_n_s_err, __pyx_n_s_idx); if (unlikely(!__pyx_tuple__857)) __PYX_ERR(0, 26023, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__857); __Pyx_GIVEREF(__pyx_tuple__857); __pyx_codeobj__582 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__857, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphNodeGetDependentNodes, 26023, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__582)) __PYX_ERR(0, 26023, __pyx_L1_error) /* "cuda/cudart.pyx":26078 * return (cudaError_t(err), pypDependentNodes, pNumDependentNodes) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphNodeGetDependentNodes_v2(node, size_t pNumDependentNodes = 0): * """ Returns a node's dependent nodes (12.3+) */ __pyx_tuple__858 = PyTuple_Pack(12, __pyx_n_s_node_2, __pyx_n_s_pNumDependentNodes, __pyx_n_s_graph_length, __pyx_n_s_cnode, __pyx_n_s_pnode, __pyx_n_s_cpDependentNodes, __pyx_n_s_pypDependentNodes, __pyx_n_s_cedgeData, __pyx_n_s_pyedgeData, __pyx_n_s_err, __pyx_n_s_idx, __pyx_n_s_idx); if (unlikely(!__pyx_tuple__858)) __PYX_ERR(0, 26078, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__858); __Pyx_GIVEREF(__pyx_tuple__858); __pyx_codeobj__583 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 12, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__858, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphNodeGetDependentNodes_v, 26078, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__583)) __PYX_ERR(0, 26078, __pyx_L1_error) /* "cuda/cudart.pyx":26150 * return (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]], size_t numDependencies): * """ Adds dependency edges to a graph. */ __pyx_tuple__859 = PyTuple_Pack(13, __pyx_n_s_graph_2, __pyx_n_s_from, __pyx_n_s_to, __pyx_n_s_numDependencies, __pyx_n_s_cgraph, __pyx_n_s_pgraph, __pyx_n_s_cfrom, __pyx_n_s_idx, __pyx_n_s_cto, __pyx_n_s_err, __pyx_n_s_genexpr, __pyx_n_s_genexpr, __pyx_n_s_genexpr); if (unlikely(!__pyx_tuple__859)) __PYX_ERR(0, 26150, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__859); __Pyx_GIVEREF(__pyx_tuple__859); __pyx_codeobj__584 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__859, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphAddDependencies, 26150, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__584)) __PYX_ERR(0, 26150, __pyx_L1_error) /* "cuda/cudart.pyx":26221 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphAddDependencies_v2(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. (12.3+) */ __pyx_tuple__860 = PyTuple_Pack(16, __pyx_n_s_graph_2, __pyx_n_s_from, __pyx_n_s_to, __pyx_n_s_edgeData, __pyx_n_s_numDependencies, __pyx_n_s_cgraph, __pyx_n_s_pgraph, __pyx_n_s_cfrom, __pyx_n_s_idx, __pyx_n_s_cto, __pyx_n_s_cedgeData, __pyx_n_s_err, __pyx_n_s_genexpr, __pyx_n_s_genexpr, __pyx_n_s_genexpr, __pyx_n_s_genexpr); if (unlikely(!__pyx_tuple__860)) __PYX_ERR(0, 26221, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__860); __Pyx_GIVEREF(__pyx_tuple__860); __pyx_codeobj__587 = (PyObject*)__Pyx_PyCode_New(5, 0, 0, 16, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__860, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphAddDependencies_v2, 26221, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__587)) __PYX_ERR(0, 26221, __pyx_L1_error) /* "cuda/cudart.pyx":26305 * return (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]], size_t numDependencies): * """ Removes dependency edges from a graph. */ __pyx_codeobj__589 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__859, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphRemoveDependencies, 26305, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__589)) __PYX_ERR(0, 26305, __pyx_L1_error) /* "cuda/cudart.pyx":26377 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphRemoveDependencies_v2(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. (12.3+) */ __pyx_codeobj__590 = (PyObject*)__Pyx_PyCode_New(5, 0, 0, 16, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__860, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphRemoveDependencies_v2, 26377, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__590)) __PYX_ERR(0, 26377, __pyx_L1_error) /* "cuda/cudart.pyx":26464 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphDestroyNode(node): * """ Remove a node from the graph. */ __pyx_tuple__861 = PyTuple_Pack(4, __pyx_n_s_node_2, __pyx_n_s_cnode, __pyx_n_s_pnode, __pyx_n_s_err); if (unlikely(!__pyx_tuple__861)) __PYX_ERR(0, 26464, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__861); __Pyx_GIVEREF(__pyx_tuple__861); __pyx_codeobj__591 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__861, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphDestroyNode, 26464, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__591)) __PYX_ERR(0, 26464, __pyx_L1_error) /* "cuda/cudart.pyx":26500 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphInstantiate(graph, unsigned long long flags): * """ Creates an executable graph from a graph. */ __pyx_tuple__862 = PyTuple_Pack(6, __pyx_n_s_graph_2, __pyx_n_s_flags_2, __pyx_n_s_cgraph, __pyx_n_s_pgraph, __pyx_n_s_pGraphExec, __pyx_n_s_err); if (unlikely(!__pyx_tuple__862)) __PYX_ERR(0, 26500, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__862); __Pyx_GIVEREF(__pyx_tuple__862); __pyx_codeobj__592 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__862, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphInstantiate, 26500, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__592)) __PYX_ERR(0, 26500, __pyx_L1_error) /* "cuda/cudart.pyx":26599 * return (cudaError_t(err), pGraphExec) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphInstantiateWithFlags(graph, unsigned long long flags): * """ Creates an executable graph from a graph. */ __pyx_codeobj__593 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__862, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphInstantiateWithFlags, 26599, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__593)) __PYX_ERR(0, 26599, __pyx_L1_error) /* "cuda/cudart.pyx":26700 * return (cudaError_t(err), pGraphExec) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphInstantiateWithParams(graph, instantiateParams : Optional[cudaGraphInstantiateParams]): * """ Creates an executable graph from a graph. */ __pyx_tuple__863 = PyTuple_Pack(7, __pyx_n_s_graph_2, __pyx_n_s_instantiateParams, __pyx_n_s_cgraph, __pyx_n_s_pgraph, __pyx_n_s_pGraphExec, __pyx_n_s_cinstantiateParams_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__863)) __PYX_ERR(0, 26700, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__863); __Pyx_GIVEREF(__pyx_tuple__863); __pyx_codeobj__594 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__863, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphInstantiateWithParams, 26700, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__594)) __PYX_ERR(0, 26700, __pyx_L1_error) /* "cuda/cudart.pyx":26842 * return (cudaError_t(err), pGraphExec) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphExecGetFlags(graphExec): * """ Query the instantiation flags of an executable graph. */ __pyx_tuple__864 = PyTuple_Pack(5, __pyx_n_s_graphExec, __pyx_n_s_cgraphExec, __pyx_n_s_pgraphExec, __pyx_n_s_flags_2, __pyx_n_s_err); if (unlikely(!__pyx_tuple__864)) __PYX_ERR(0, 26842, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__864); __Pyx_GIVEREF(__pyx_tuple__864); __pyx_codeobj__595 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__864, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphExecGetFlags, 26842, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__595)) __PYX_ERR(0, 26842, __pyx_L1_error) /* "cuda/cudart.pyx":26880 * return (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_tuple__865 = PyTuple_Pack(9, __pyx_n_s_hGraphExec, __pyx_n_s_node_2, __pyx_n_s_pNodeParams, __pyx_n_s_cnode, __pyx_n_s_pnode, __pyx_n_s_chGraphExec, __pyx_n_s_phGraphExec, __pyx_n_s_cpNodeParams_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__865)) __PYX_ERR(0, 26880, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__865); __Pyx_GIVEREF(__pyx_tuple__865); __pyx_codeobj__596 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__865, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphExecKernelNodeSetParams, 26880, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__596)) __PYX_ERR(0, 26880, __pyx_L1_error) /* "cuda/cudart.pyx":26960 * return (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_codeobj__597 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__865, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphExecMemcpyNodeSetParams, 26960, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__597)) __PYX_ERR(0, 26960, __pyx_L1_error) /* "cuda/cudart.pyx":27023 * return (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_tuple__866 = PyTuple_Pack(16, __pyx_n_s_hGraphExec, __pyx_n_s_node_2, __pyx_n_s_dst_2, __pyx_n_s_src, __pyx_n_s_count, __pyx_n_s_kind_2, __pyx_n_s_cnode, __pyx_n_s_pnode, __pyx_n_s_chGraphExec, __pyx_n_s_phGraphExec, __pyx_n_s_cdst, __pyx_n_s_cdst_ptr, __pyx_n_s_csrc, __pyx_n_s_csrc_ptr, __pyx_n_s_ckind, __pyx_n_s_err); if (unlikely(!__pyx_tuple__866)) __PYX_ERR(0, 27023, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__866); __Pyx_GIVEREF(__pyx_tuple__866); __pyx_codeobj__598 = (PyObject*)__Pyx_PyCode_New(6, 0, 0, 16, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__866, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphExecMemcpyNodeSetParams_2, 27023, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__598)) __PYX_ERR(0, 27023, __pyx_L1_error) /* "cuda/cudart.pyx":27094 * return (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_codeobj__599 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__865, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphExecMemsetNodeSetParams, 27094, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__599)) __PYX_ERR(0, 27094, __pyx_L1_error) /* "cuda/cudart.pyx":27162 * return (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_codeobj__600 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__865, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphExecHostNodeSetParams, 27162, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__600)) __PYX_ERR(0, 27162, __pyx_L1_error) /* "cuda/cudart.pyx":27215 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph): * """ Updates node parameters in the child graph node in the given graphExec. */ __pyx_tuple__867 = PyTuple_Pack(10, __pyx_n_s_hGraphExec, __pyx_n_s_node_2, __pyx_n_s_childGraph, __pyx_n_s_cchildGraph, __pyx_n_s_pchildGraph, __pyx_n_s_cnode, __pyx_n_s_pnode, __pyx_n_s_chGraphExec, __pyx_n_s_phGraphExec, __pyx_n_s_err); if (unlikely(!__pyx_tuple__867)) __PYX_ERR(0, 27215, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__867); __Pyx_GIVEREF(__pyx_tuple__867); __pyx_codeobj__601 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__867, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphExecChildGraphNodeSetPa, 27215, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__601)) __PYX_ERR(0, 27215, __pyx_L1_error) /* "cuda/cudart.pyx":27284 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event): * """ Sets the event for an event record node in the given graphExec. */ __pyx_tuple__868 = PyTuple_Pack(10, __pyx_n_s_hGraphExec, __pyx_n_s_hNode, __pyx_n_s_event_2, __pyx_n_s_cevent, __pyx_n_s_pevent, __pyx_n_s_chNode, __pyx_n_s_phNode, __pyx_n_s_chGraphExec, __pyx_n_s_phGraphExec, __pyx_n_s_err); if (unlikely(!__pyx_tuple__868)) __PYX_ERR(0, 27284, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__868); __Pyx_GIVEREF(__pyx_tuple__868); __pyx_codeobj__602 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__868, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphExecEventRecordNodeSetE, 27284, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__602)) __PYX_ERR(0, 27284, __pyx_L1_error) /* "cuda/cudart.pyx":27346 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event): * """ Sets the event for an event wait node in the given graphExec. */ __pyx_codeobj__603 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__868, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphExecEventWaitNodeSetEve, 27346, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__603)) __PYX_ERR(0, 27346, __pyx_L1_error) /* "cuda/cudart.pyx":27408 * return (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_tuple__869 = PyTuple_Pack(9, __pyx_n_s_hGraphExec, __pyx_n_s_hNode, __pyx_n_s_nodeParams, __pyx_n_s_chNode, __pyx_n_s_phNode, __pyx_n_s_chGraphExec, __pyx_n_s_phGraphExec, __pyx_n_s_cnodeParams_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__869)) __PYX_ERR(0, 27408, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__869); __Pyx_GIVEREF(__pyx_tuple__869); __pyx_codeobj__604 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__869, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphExecExternalSemaphoresS, 27408, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__604)) __PYX_ERR(0, 27408, __pyx_L1_error) /* "cuda/cudart.pyx":27466 * return (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_codeobj__605 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__869, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphExecExternalSemaphoresW, 27466, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__605)) __PYX_ERR(0, 27466, __pyx_L1_error) /* "cuda/cudart.pyx":27524 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphNodeSetEnabled(hGraphExec, hNode, unsigned int isEnabled): * """ Enables or disables the specified node in the given graphExec. */ __pyx_tuple__870 = PyTuple_Pack(8, __pyx_n_s_hGraphExec, __pyx_n_s_hNode, __pyx_n_s_isEnabled_2, __pyx_n_s_chNode, __pyx_n_s_phNode, __pyx_n_s_chGraphExec, __pyx_n_s_phGraphExec, __pyx_n_s_err); if (unlikely(!__pyx_tuple__870)) __PYX_ERR(0, 27524, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__870); __Pyx_GIVEREF(__pyx_tuple__870); __pyx_codeobj__606 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__870, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphNodeSetEnabled, 27524, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__606)) __PYX_ERR(0, 27524, __pyx_L1_error) /* "cuda/cudart.pyx":27585 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphNodeGetEnabled(hGraphExec, hNode): * """ Query whether a node in the given graphExec is enabled. */ __pyx_tuple__871 = PyTuple_Pack(8, __pyx_n_s_hGraphExec, __pyx_n_s_hNode, __pyx_n_s_chNode, __pyx_n_s_phNode, __pyx_n_s_chGraphExec, __pyx_n_s_phGraphExec, __pyx_n_s_isEnabled_2, __pyx_n_s_err); if (unlikely(!__pyx_tuple__871)) __PYX_ERR(0, 27585, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__871); __Pyx_GIVEREF(__pyx_tuple__871); __pyx_codeobj__607 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__871, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphNodeGetEnabled, 27585, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__607)) __PYX_ERR(0, 27585, __pyx_L1_error) /* "cuda/cudart.pyx":27640 * return (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_tuple__872 = PyTuple_Pack(8, __pyx_n_s_hGraphExec, __pyx_n_s_hGraph, __pyx_n_s_chGraph, __pyx_n_s_phGraph, __pyx_n_s_chGraphExec, __pyx_n_s_phGraphExec, __pyx_n_s_resultInfo, __pyx_n_s_err); if (unlikely(!__pyx_tuple__872)) __PYX_ERR(0, 27640, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__872); __Pyx_GIVEREF(__pyx_tuple__872); __pyx_codeobj__608 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__872, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphExecUpdate, 27640, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__608)) __PYX_ERR(0, 27640, __pyx_L1_error) /* "cuda/cudart.pyx":27812 * return (cudaError_t(err), resultInfo) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphUpload(graphExec, stream): * """ Uploads an executable graph in a stream. */ __pyx_tuple__873 = PyTuple_Pack(7, __pyx_n_s_graphExec, __pyx_n_s_stream, __pyx_n_s_cstream, __pyx_n_s_pstream, __pyx_n_s_cgraphExec, __pyx_n_s_pgraphExec, __pyx_n_s_err); if (unlikely(!__pyx_tuple__873)) __PYX_ERR(0, 27812, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__873); __Pyx_GIVEREF(__pyx_tuple__873); __pyx_codeobj__609 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__873, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphUpload, 27812, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__609)) __PYX_ERR(0, 27812, __pyx_L1_error) /* "cuda/cudart.pyx":27859 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphLaunch(graphExec, stream): * """ Launches an executable graph in a stream. */ __pyx_codeobj__610 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__873, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphLaunch, 27859, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__610)) __PYX_ERR(0, 27859, __pyx_L1_error) /* "cuda/cudart.pyx":27911 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphExecDestroy(graphExec): * """ Destroys an executable graph. */ __pyx_tuple__874 = PyTuple_Pack(4, __pyx_n_s_graphExec, __pyx_n_s_cgraphExec, __pyx_n_s_pgraphExec, __pyx_n_s_err); if (unlikely(!__pyx_tuple__874)) __PYX_ERR(0, 27911, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__874); __Pyx_GIVEREF(__pyx_tuple__874); __pyx_codeobj__611 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__874, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphExecDestroy, 27911, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__611)) __PYX_ERR(0, 27911, __pyx_L1_error) /* "cuda/cudart.pyx":27943 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphDestroy(graph): * """ Destroys a graph. */ __pyx_tuple__875 = PyTuple_Pack(4, __pyx_n_s_graph_2, __pyx_n_s_cgraph, __pyx_n_s_pgraph, __pyx_n_s_err); if (unlikely(!__pyx_tuple__875)) __PYX_ERR(0, 27943, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__875); __Pyx_GIVEREF(__pyx_tuple__875); __pyx_codeobj__612 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__875, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphDestroy, 27943, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__612)) __PYX_ERR(0, 27943, __pyx_L1_error) /* "cuda/cudart.pyx":27975 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphDebugDotPrint(graph, char* path, unsigned int flags): * """ Write a DOT file describing graph structure. */ __pyx_tuple__876 = PyTuple_Pack(6, __pyx_n_s_graph_2, __pyx_n_s_path, __pyx_n_s_flags_2, __pyx_n_s_cgraph, __pyx_n_s_pgraph, __pyx_n_s_err); if (unlikely(!__pyx_tuple__876)) __PYX_ERR(0, 27975, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__876); __Pyx_GIVEREF(__pyx_tuple__876); __pyx_codeobj__613 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__876, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphDebugDotPrint, 27975, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__613)) __PYX_ERR(0, 27975, __pyx_L1_error) /* "cuda/cudart.pyx":28012 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaUserObjectCreate(ptr, destroy, unsigned int initialRefcount, unsigned int flags): * """ Create a user object. */ __pyx_tuple__877 = PyTuple_Pack(10, __pyx_n_s_ptr_3, __pyx_n_s_destroy, __pyx_n_s_initialRefcount, __pyx_n_s_flags_2, __pyx_n_s_cdestroy, __pyx_n_s_pdestroy, __pyx_n_s_object_out, __pyx_n_s_cptr, __pyx_n_s_cptr_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__877)) __PYX_ERR(0, 28012, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__877); __Pyx_GIVEREF(__pyx_tuple__877); __pyx_codeobj__614 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__877, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaUserObjectCreate, 28012, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__614)) __PYX_ERR(0, 28012, __pyx_L1_error) /* "cuda/cudart.pyx":28069 * return (cudaError_t(err), object_out) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaUserObjectRetain(object, unsigned int count): * """ Retain a reference to a user object. */ __pyx_tuple__878 = PyTuple_Pack(5, __pyx_n_s_object, __pyx_n_s_count, __pyx_n_s_cobject, __pyx_n_s_pobject, __pyx_n_s_err); if (unlikely(!__pyx_tuple__878)) __PYX_ERR(0, 28069, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__878); __Pyx_GIVEREF(__pyx_tuple__878); __pyx_codeobj__615 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__878, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaUserObjectRetain, 28069, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__615)) __PYX_ERR(0, 28069, __pyx_L1_error) /* "cuda/cudart.pyx":28108 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaUserObjectRelease(object, unsigned int count): * """ Release a reference to a user object. */ __pyx_codeobj__616 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__878, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaUserObjectRelease, 28108, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__616)) __PYX_ERR(0, 28108, __pyx_L1_error) /* "cuda/cudart.pyx":28150 * return (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_tuple__879 = PyTuple_Pack(9, __pyx_n_s_graph_2, __pyx_n_s_object, __pyx_n_s_count, __pyx_n_s_flags_2, __pyx_n_s_cobject, __pyx_n_s_pobject, __pyx_n_s_cgraph, __pyx_n_s_pgraph, __pyx_n_s_err); if (unlikely(!__pyx_tuple__879)) __PYX_ERR(0, 28150, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__879); __Pyx_GIVEREF(__pyx_tuple__879); __pyx_codeobj__617 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__879, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphRetainUserObject, 28150, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__617)) __PYX_ERR(0, 28150, __pyx_L1_error) /* "cuda/cudart.pyx":28204 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphReleaseUserObject(graph, object, unsigned int count): * """ Release a user object reference from a graph. */ __pyx_tuple__880 = PyTuple_Pack(8, __pyx_n_s_graph_2, __pyx_n_s_object, __pyx_n_s_count, __pyx_n_s_cobject, __pyx_n_s_pobject, __pyx_n_s_cgraph, __pyx_n_s_pgraph, __pyx_n_s_err); if (unlikely(!__pyx_tuple__880)) __PYX_ERR(0, 28204, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__880); __Pyx_GIVEREF(__pyx_tuple__880); __pyx_codeobj__618 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__880, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphReleaseUserObject, 28204, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__618)) __PYX_ERR(0, 28204, __pyx_L1_error) /* "cuda/cudart.pyx":28253 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphAddNode(graph, pDependencies : Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], size_t numDependencies, nodeParams : Optional[cudaGraphNodeParams]): * """ Adds a node of arbitrary type to a graph. */ __pyx_codeobj__619 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__840, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphAddNode, 28253, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__619)) __PYX_ERR(0, 28253, __pyx_L1_error) /* "cuda/cudart.pyx":28326 * return (cudaError_t(err), pGraphNode) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphAddNode_v2(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 (12.3+) */ __pyx_tuple__881 = PyTuple_Pack(16, __pyx_n_s_graph_2, __pyx_n_s_pDependencies, __pyx_n_s_dependencyData, __pyx_n_s_numDependencies, __pyx_n_s_nodeParams, __pyx_n_s_cgraph, __pyx_n_s_pgraph, __pyx_n_s_pGraphNode, __pyx_n_s_cpDependencies, __pyx_n_s_idx, __pyx_n_s_cdependencyData, __pyx_n_s_cnodeParams_ptr, __pyx_n_s_err, __pyx_n_s_genexpr, __pyx_n_s_genexpr, __pyx_n_s_genexpr); if (unlikely(!__pyx_tuple__881)) __PYX_ERR(0, 28326, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__881); __Pyx_GIVEREF(__pyx_tuple__881); __pyx_codeobj__620 = (PyObject*)__Pyx_PyCode_New(5, 0, 0, 16, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__881, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphAddNode_v2, 28326, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__620)) __PYX_ERR(0, 28326, __pyx_L1_error) /* "cuda/cudart.pyx":28415 * return (cudaError_t(err), pGraphNode) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphNodeSetParams(node, nodeParams : Optional[cudaGraphNodeParams]): * """ Update's a graph node's parameters. */ __pyx_tuple__882 = PyTuple_Pack(6, __pyx_n_s_node_2, __pyx_n_s_nodeParams, __pyx_n_s_cnode, __pyx_n_s_pnode, __pyx_n_s_cnodeParams_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__882)) __PYX_ERR(0, 28415, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__882); __Pyx_GIVEREF(__pyx_tuple__882); __pyx_codeobj__621 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__882, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphNodeSetParams, 28415, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__621)) __PYX_ERR(0, 28415, __pyx_L1_error) /* "cuda/cudart.pyx":28456 * return (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_tuple__883 = PyTuple_Pack(9, __pyx_n_s_graphExec, __pyx_n_s_node_2, __pyx_n_s_nodeParams, __pyx_n_s_cnode, __pyx_n_s_pnode, __pyx_n_s_cgraphExec, __pyx_n_s_pgraphExec, __pyx_n_s_cnodeParams_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__883)) __PYX_ERR(0, 28456, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__883); __Pyx_GIVEREF(__pyx_tuple__883); __pyx_codeobj__622 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__883, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphExecNodeSetParams, 28456, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__622)) __PYX_ERR(0, 28456, __pyx_L1_error) /* "cuda/cudart.pyx":28514 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphConditionalHandleCreate(graph, unsigned int defaultLaunchValue, unsigned int flags): * """ Create a conditional handle. */ __pyx_tuple__884 = PyTuple_Pack(7, __pyx_n_s_graph_2, __pyx_n_s_defaultLaunchValue, __pyx_n_s_flags_2, __pyx_n_s_cgraph, __pyx_n_s_pgraph, __pyx_n_s_pHandle_out, __pyx_n_s_err); if (unlikely(!__pyx_tuple__884)) __PYX_ERR(0, 28514, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__884); __Pyx_GIVEREF(__pyx_tuple__884); __pyx_codeobj__623 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__884, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphConditionalHandleCreate, 28514, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__623)) __PYX_ERR(0, 28514, __pyx_L1_error) /* "cuda/cudart.pyx":28559 * return (cudaError_t(err), pHandle_out) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGetDriverEntryPoint(char* symbol, unsigned long long flags): * """ Returns the requested driver API function pointer. */ __pyx_tuple__885 = PyTuple_Pack(5, __pyx_n_s_symbol, __pyx_n_s_flags_2, __pyx_n_s_funcPtr, __pyx_n_s_driverStatus, __pyx_n_s_err); if (unlikely(!__pyx_tuple__885)) __PYX_ERR(0, 28559, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__885); __Pyx_GIVEREF(__pyx_tuple__885); __pyx_codeobj__624 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__885, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGetDriverEntryPoint, 28559, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__624)) __PYX_ERR(0, 28559, __pyx_L1_error) /* "cuda/cudart.pyx":28651 * return (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_tuple__886 = PyTuple_Pack(6, __pyx_n_s_symbol, __pyx_n_s_cudaVersion, __pyx_n_s_flags_2, __pyx_n_s_funcPtr, __pyx_n_s_driverStatus, __pyx_n_s_err); if (unlikely(!__pyx_tuple__886)) __PYX_ERR(0, 28651, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__886); __Pyx_GIVEREF(__pyx_tuple__886); __pyx_codeobj__625 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__886, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGetDriverEntryPointByVersion, 28651, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__625)) __PYX_ERR(0, 28651, __pyx_L1_error) /* "cuda/cudart.pyx":28751 * return (cudaError_t(err), funcPtr, cudaDriverEntryPointQueryResult(driverStatus)) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGetExportTable(pExportTableId : Optional[cudaUUID_t]): * """""" */ __pyx_tuple__887 = PyTuple_Pack(4, __pyx_n_s_pExportTableId, __pyx_n_s_ppExportTable, __pyx_n_s_cpExportTableId_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__887)) __PYX_ERR(0, 28751, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__887); __Pyx_GIVEREF(__pyx_tuple__887); __pyx_codeobj__626 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__887, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGetExportTable, 28751, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__626)) __PYX_ERR(0, 28751, __pyx_L1_error) /* "cuda/cudart.pyx":28759 * return (cudaError_t(err), ppExportTable) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGetKernel(entryFuncAddr): * """ Get pointer to device kernel that matches entry function `entryFuncAddr`. */ __pyx_tuple__888 = PyTuple_Pack(5, __pyx_n_s_entryFuncAddr, __pyx_n_s_kernelPtr, __pyx_n_s_centryFuncAddr, __pyx_n_s_centryFuncAddr_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__888)) __PYX_ERR(0, 28759, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__888); __Pyx_GIVEREF(__pyx_tuple__888); __pyx_codeobj__627 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__888, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGetKernel, 28759, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__627)) __PYX_ERR(0, 28759, __pyx_L1_error) /* "cuda/cudart.pyx":28788 * return (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_tuple__889 = PyTuple_Pack(8, __pyx_n_s_d, __pyx_n_s_p, __pyx_n_s_xsz, __pyx_n_s_ysz, __pyx_n_s_cd, __pyx_n_s_cd_ptr, __pyx_n_s_err, __pyx_n_s_wrapper); if (unlikely(!__pyx_tuple__889)) __PYX_ERR(0, 28788, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__889); __Pyx_GIVEREF(__pyx_tuple__889); __pyx_codeobj__628 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__889, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_make_cudaPitchedPtr, 28788, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__628)) __PYX_ERR(0, 28788, __pyx_L1_error) /* "cuda/cudart.pyx":28824 * 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_tuple__890 = PyTuple_Pack(5, __pyx_n_s_x_2, __pyx_n_s_y_2, __pyx_n_s_z_2, __pyx_n_s_err, __pyx_n_s_wrapper); if (unlikely(!__pyx_tuple__890)) __PYX_ERR(0, 28824, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__890); __Pyx_GIVEREF(__pyx_tuple__890); __pyx_codeobj__629 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__890, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_make_cudaPos, 28824, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__629)) __PYX_ERR(0, 28824, __pyx_L1_error) /* "cuda/cudart.pyx":28856 * 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_tuple__891 = PyTuple_Pack(5, __pyx_n_s_w_2, __pyx_n_s_h, __pyx_n_s_d, __pyx_n_s_err, __pyx_n_s_wrapper); if (unlikely(!__pyx_tuple__891)) __PYX_ERR(0, 28856, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__891); __Pyx_GIVEREF(__pyx_tuple__891); __pyx_codeobj__630 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__891, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_make_cudaExtent, 28856, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__630)) __PYX_ERR(0, 28856, __pyx_L1_error) /* "cuda/cudart.pyx":28889 * return wrapper * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphicsEGLRegisterImage(image, unsigned int flags): * """ Registers an EGL image. */ __pyx_tuple__892 = PyTuple_Pack(6, __pyx_n_s_image, __pyx_n_s_flags_2, __pyx_n_s_cimage, __pyx_n_s_pimage, __pyx_n_s_pCudaResource, __pyx_n_s_err); if (unlikely(!__pyx_tuple__892)) __PYX_ERR(0, 28889, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__892); __Pyx_GIVEREF(__pyx_tuple__892); __pyx_codeobj__631 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__892, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphicsEGLRegisterImage, 28889, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__631)) __PYX_ERR(0, 28889, __pyx_L1_error) /* "cuda/cudart.pyx":28960 * return (cudaError_t(err), pCudaResource) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEGLStreamConsumerConnect(eglStream): * """ Connect CUDA to EGLStream as a consumer. */ __pyx_tuple__893 = PyTuple_Pack(5, __pyx_n_s_eglStream, __pyx_n_s_ceglStream, __pyx_n_s_peglStream, __pyx_n_s_conn, __pyx_n_s_err); if (unlikely(!__pyx_tuple__893)) __PYX_ERR(0, 28960, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__893); __Pyx_GIVEREF(__pyx_tuple__893); __pyx_codeobj__632 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__893, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaEGLStreamConsumerConnect, 28960, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__632)) __PYX_ERR(0, 28960, __pyx_L1_error) /* "cuda/cudart.pyx":28998 * return (cudaError_t(err), conn) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEGLStreamConsumerConnectWithFlags(eglStream, unsigned int flags): * """ Connect CUDA to EGLStream as a consumer with given flags. */ __pyx_tuple__894 = PyTuple_Pack(6, __pyx_n_s_eglStream, __pyx_n_s_flags_2, __pyx_n_s_ceglStream, __pyx_n_s_peglStream, __pyx_n_s_conn, __pyx_n_s_err); if (unlikely(!__pyx_tuple__894)) __PYX_ERR(0, 28998, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__894); __Pyx_GIVEREF(__pyx_tuple__894); __pyx_codeobj__633 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__894, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaEGLStreamConsumerConnectWith, 28998, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__633)) __PYX_ERR(0, 28998, __pyx_L1_error) /* "cuda/cudart.pyx":29040 * return (cudaError_t(err), conn) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEGLStreamConsumerDisconnect(conn): * """ Disconnect CUDA as a consumer to EGLStream . */ __pyx_tuple__895 = PyTuple_Pack(4, __pyx_n_s_conn, __pyx_n_s_cconn, __pyx_n_s_pconn, __pyx_n_s_err); if (unlikely(!__pyx_tuple__895)) __PYX_ERR(0, 29040, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__895); __Pyx_GIVEREF(__pyx_tuple__895); __pyx_codeobj__634 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__895, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaEGLStreamConsumerDisconnect, 29040, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__634)) __PYX_ERR(0, 29040, __pyx_L1_error) /* "cuda/cudart.pyx":29073 * return (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_tuple__896 = PyTuple_Pack(11, __pyx_n_s_conn, __pyx_n_s_pCudaResource, __pyx_n_s_pStream, __pyx_n_s_timeout, __pyx_n_s_cpStream, __pyx_n_s_ppStream, __pyx_n_s_cpCudaResource, __pyx_n_s_ppCudaResource, __pyx_n_s_cconn, __pyx_n_s_pconn, __pyx_n_s_err); if (unlikely(!__pyx_tuple__896)) __PYX_ERR(0, 29073, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__896); __Pyx_GIVEREF(__pyx_tuple__896); __pyx_codeobj__635 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__896, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaEGLStreamConsumerAcquireFram, 29073, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__635)) __PYX_ERR(0, 29073, __pyx_L1_error) /* "cuda/cudart.pyx":29135 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEGLStreamConsumerReleaseFrame(conn, pCudaResource, pStream): * """ Releases the last frame acquired from the EGLStream. */ __pyx_tuple__897 = PyTuple_Pack(10, __pyx_n_s_conn, __pyx_n_s_pCudaResource, __pyx_n_s_pStream, __pyx_n_s_cpStream, __pyx_n_s_ppStream, __pyx_n_s_cpCudaResource, __pyx_n_s_ppCudaResource, __pyx_n_s_cconn, __pyx_n_s_pconn, __pyx_n_s_err); if (unlikely(!__pyx_tuple__897)) __PYX_ERR(0, 29135, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__897); __Pyx_GIVEREF(__pyx_tuple__897); __pyx_codeobj__636 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__897, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaEGLStreamConsumerReleaseFram, 29135, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__636)) __PYX_ERR(0, 29135, __pyx_L1_error) /* "cuda/cudart.pyx":29192 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEGLStreamProducerConnect(eglStream, width, height): * """ Connect CUDA to EGLStream as a producer. */ __pyx_tuple__898 = PyTuple_Pack(11, __pyx_n_s_eglStream, __pyx_n_s_width_2, __pyx_n_s_height_2, __pyx_n_s_cheight, __pyx_n_s_pheight, __pyx_n_s_cwidth, __pyx_n_s_pwidth, __pyx_n_s_ceglStream, __pyx_n_s_peglStream, __pyx_n_s_conn, __pyx_n_s_err); if (unlikely(!__pyx_tuple__898)) __PYX_ERR(0, 29192, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__898); __Pyx_GIVEREF(__pyx_tuple__898); __pyx_codeobj__637 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__898, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaEGLStreamProducerConnect, 29192, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__637)) __PYX_ERR(0, 29192, __pyx_L1_error) /* "cuda/cudart.pyx":29252 * return (cudaError_t(err), conn) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEGLStreamProducerDisconnect(conn): * """ Disconnect CUDA as a producer to EGLStream . */ __pyx_codeobj__638 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__895, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaEGLStreamProducerDisconnect, 29252, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__638)) __PYX_ERR(0, 29252, __pyx_L1_error) /* "cuda/cudart.pyx":29285 * return (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_tuple__899 = PyTuple_Pack(8, __pyx_n_s_conn, __pyx_n_s_eglframe, __pyx_n_s_pStream, __pyx_n_s_cpStream, __pyx_n_s_ppStream, __pyx_n_s_cconn, __pyx_n_s_pconn, __pyx_n_s_err); if (unlikely(!__pyx_tuple__899)) __PYX_ERR(0, 29285, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__899); __Pyx_GIVEREF(__pyx_tuple__899); __pyx_codeobj__639 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__899, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaEGLStreamProducerPresentFram, 29285, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__639)) __PYX_ERR(0, 29285, __pyx_L1_error) /* "cuda/cudart.pyx":29341 * return (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_tuple__900 = PyTuple_Pack(9, __pyx_n_s_conn, __pyx_n_s_eglframe, __pyx_n_s_pStream, __pyx_n_s_cpStream, __pyx_n_s_ppStream, __pyx_n_s_cconn, __pyx_n_s_pconn, __pyx_n_s_ceglframe_ptr, __pyx_n_s_err); if (unlikely(!__pyx_tuple__900)) __PYX_ERR(0, 29341, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__900); __Pyx_GIVEREF(__pyx_tuple__900); __pyx_codeobj__640 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__900, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaEGLStreamProducerReturnFrame, 29341, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__640)) __PYX_ERR(0, 29341, __pyx_L1_error) /* "cuda/cudart.pyx":29392 * return (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_tuple__901 = PyTuple_Pack(7, __pyx_n_s_resource, __pyx_n_s_index, __pyx_n_s_mipLevel, __pyx_n_s_cresource, __pyx_n_s_presource, __pyx_n_s_eglFrame, __pyx_n_s_err); if (unlikely(!__pyx_tuple__901)) __PYX_ERR(0, 29392, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__901); __Pyx_GIVEREF(__pyx_tuple__901); __pyx_codeobj__641 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__901, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphicsResourceGetMappedEgl, 29392, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__641)) __PYX_ERR(0, 29392, __pyx_L1_error) /* "cuda/cudart.pyx":29441 * return (cudaError_t(err), eglFrame) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEventCreateFromEGLSync(eglSync, unsigned int flags): * """ Creates an event from EGLSync object. */ __pyx_tuple__902 = PyTuple_Pack(6, __pyx_n_s_eglSync, __pyx_n_s_flags_2, __pyx_n_s_ceglSync, __pyx_n_s_peglSync, __pyx_n_s_phEvent, __pyx_n_s_err); if (unlikely(!__pyx_tuple__902)) __PYX_ERR(0, 29441, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__902); __Pyx_GIVEREF(__pyx_tuple__902); __pyx_codeobj__642 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__902, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaEventCreateFromEGLSync, 29441, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__642)) __PYX_ERR(0, 29441, __pyx_L1_error) /* "cuda/cudart.pyx":29492 * return (cudaError_t(err), phEvent) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaProfilerStart(): * """ Enable profiling. */ __pyx_codeobj__643 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__660, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaProfilerStart, 29492, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__643)) __PYX_ERR(0, 29492, __pyx_L1_error) /* "cuda/cudart.pyx":29516 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaProfilerStop(): * """ Disable profiling. */ __pyx_codeobj__644 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__660, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaProfilerStop, 29516, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__644)) __PYX_ERR(0, 29516, __pyx_L1_error) /* "cuda/cudart.pyx":29540 * return (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_tuple__903 = PyTuple_Pack(8, __pyx_n_s_cudaDeviceCount, __pyx_n_s_deviceList, __pyx_n_s_pCudaDeviceCount, __pyx_n_s_cpCudaDevices, __pyx_n_s_pypCudaDevices, __pyx_n_s_cdeviceList, __pyx_n_s_err, __pyx_n_s_idx); if (unlikely(!__pyx_tuple__903)) __PYX_ERR(0, 29540, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__903); __Pyx_GIVEREF(__pyx_tuple__903); __pyx_codeobj__645 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__903, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGLGetDevices, 29540, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__645)) __PYX_ERR(0, 29540, __pyx_L1_error) /* "cuda/cudart.pyx":29602 * return (cudaError_t(err), pCudaDeviceCount, pypCudaDevices) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphicsGLRegisterImage(image, target, unsigned int flags): * """ Register an OpenGL texture or renderbuffer object. */ __pyx_tuple__904 = PyTuple_Pack(9, __pyx_n_s_image, __pyx_n_s_target, __pyx_n_s_flags_2, __pyx_n_s_ctarget, __pyx_n_s_ptarget, __pyx_n_s_cimage, __pyx_n_s_pimage, __pyx_n_s_resource, __pyx_n_s_err); if (unlikely(!__pyx_tuple__904)) __PYX_ERR(0, 29602, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__904); __Pyx_GIVEREF(__pyx_tuple__904); __pyx_codeobj__646 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__904, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphicsGLRegisterImage, 29602, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__646)) __PYX_ERR(0, 29602, __pyx_L1_error) /* "cuda/cudart.pyx":29698 * return (cudaError_t(err), resource) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphicsGLRegisterBuffer(buffer, unsigned int flags): * """ Registers an OpenGL buffer object. */ __pyx_tuple__905 = PyTuple_Pack(6, __pyx_n_s_buffer, __pyx_n_s_flags_2, __pyx_n_s_cbuffer, __pyx_n_s_pbuffer, __pyx_n_s_resource, __pyx_n_s_err); if (unlikely(!__pyx_tuple__905)) __PYX_ERR(0, 29698, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__905); __Pyx_GIVEREF(__pyx_tuple__905); __pyx_codeobj__647 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__905, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphicsGLRegisterBuffer, 29698, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__647)) __PYX_ERR(0, 29698, __pyx_L1_error) /* "cuda/cudart.pyx":29750 * return (cudaError_t(err), resource) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaVDPAUGetDevice(vdpDevice, vdpGetProcAddress): * """ Gets the CUDA device associated with a VdpDevice. */ __pyx_tuple__906 = PyTuple_Pack(8, __pyx_n_s_vdpDevice, __pyx_n_s_vdpGetProcAddress, __pyx_n_s_cvdpGetProcAddress, __pyx_n_s_pvdpGetProcAddress, __pyx_n_s_cvdpDevice, __pyx_n_s_pvdpDevice, __pyx_n_s_device_2, __pyx_n_s_err); if (unlikely(!__pyx_tuple__906)) __PYX_ERR(0, 29750, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__906); __Pyx_GIVEREF(__pyx_tuple__906); __pyx_codeobj__648 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__906, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaVDPAUGetDevice, 29750, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__648)) __PYX_ERR(0, 29750, __pyx_L1_error) /* "cuda/cudart.pyx":29798 * return (cudaError_t(err), device) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaVDPAUSetVDPAUDevice(int device, vdpDevice, vdpGetProcAddress): * """ Sets a CUDA device to use VDPAU interoperability. */ __pyx_tuple__907 = PyTuple_Pack(8, __pyx_n_s_device_2, __pyx_n_s_vdpDevice, __pyx_n_s_vdpGetProcAddress, __pyx_n_s_cvdpGetProcAddress, __pyx_n_s_pvdpGetProcAddress, __pyx_n_s_cvdpDevice, __pyx_n_s_pvdpDevice, __pyx_n_s_err); if (unlikely(!__pyx_tuple__907)) __PYX_ERR(0, 29798, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__907); __Pyx_GIVEREF(__pyx_tuple__907); __pyx_codeobj__649 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__907, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaVDPAUSetVDPAUDevice, 29798, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__649)) __PYX_ERR(0, 29798, __pyx_L1_error) /* "cuda/cudart.pyx":29854 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphicsVDPAURegisterVideoSurface(vdpSurface, unsigned int flags): * """ Register a VdpVideoSurface object. */ __pyx_tuple__908 = PyTuple_Pack(6, __pyx_n_s_vdpSurface, __pyx_n_s_flags_2, __pyx_n_s_cvdpSurface, __pyx_n_s_pvdpSurface, __pyx_n_s_resource, __pyx_n_s_err); if (unlikely(!__pyx_tuple__908)) __PYX_ERR(0, 29854, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__908); __Pyx_GIVEREF(__pyx_tuple__908); __pyx_codeobj__650 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__908, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphicsVDPAURegisterVideoSu, 29854, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__650)) __PYX_ERR(0, 29854, __pyx_L1_error) /* "cuda/cudart.pyx":29906 * return (cudaError_t(err), resource) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphicsVDPAURegisterOutputSurface(vdpSurface, unsigned int flags): * """ Register a VdpOutputSurface object. */ __pyx_codeobj__651 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__908, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_cudaGraphicsVDPAURegisterOutputS, 29906, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__651)) __PYX_ERR(0, 29906, __pyx_L1_error) /* "cuda/cudart.pyx":29959 * * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def getLocalRuntimeVersion(): * """ Returns the CUDA Runtime version of local shared library. */ __pyx_codeobj__652 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__822, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_getLocalRuntimeVersion, 29959, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__652)) __PYX_ERR(0, 29959, __pyx_L1_error) /* "cuda/cudart.pyx":29990 * * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def sizeof(objType): * """ Returns the size of provided CUDA Python structure in bytes */ __pyx_tuple__909 = PyTuple_Pack(1, __pyx_n_s_objType); if (unlikely(!__pyx_tuple__909)) __PYX_ERR(0, 29990, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__909); __Pyx_GIVEREF(__pyx_tuple__909); __pyx_codeobj__653 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__909, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cuda_cudart_pyx, __pyx_n_s_sizeof, 29990, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__653)) __PYX_ERR(0, 29990, __pyx_L1_error) __Pyx_RefNannyFinishContext(); return 0; __pyx_L1_error:; __Pyx_RefNannyFinishContext(); return -1; } /* #### Code section: init_constants ### */ static CYTHON_SMALL_CODE int __Pyx_InitConstants(void) { if (__Pyx_CreateStringTabAndInitStrings() < 0) __PYX_ERR(0, 1, __pyx_L1_error); __pyx_int_0 = PyInt_FromLong(0); if (unlikely(!__pyx_int_0)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_1 = PyInt_FromLong(1); if (unlikely(!__pyx_int_1)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_127 = PyInt_FromLong(127); if (unlikely(!__pyx_int_127)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_256 = PyInt_FromLong(256); if (unlikely(!__pyx_int_256)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_int_neg_129 = PyInt_FromLong(-129); if (unlikely(!__pyx_int_neg_129)) __PYX_ERR(0, 1, __pyx_L1_error) return 0; __pyx_L1_error:; return -1; } /* #### Code section: init_globals ### */ static CYTHON_SMALL_CODE int __Pyx_InitGlobals(void) { return 0; } /* #### Code section: init_module ### */ static CYTHON_SMALL_CODE int __Pyx_modinit_global_init_code(void); /*proto*/ static CYTHON_SMALL_CODE int __Pyx_modinit_variable_export_code(void); /*proto*/ static CYTHON_SMALL_CODE int __Pyx_modinit_function_export_code(void); /*proto*/ static CYTHON_SMALL_CODE int __Pyx_modinit_type_init_code(void); /*proto*/ static CYTHON_SMALL_CODE int __Pyx_modinit_type_import_code(void); /*proto*/ static CYTHON_SMALL_CODE int __Pyx_modinit_variable_import_code(void); /*proto*/ static CYTHON_SMALL_CODE int __Pyx_modinit_function_import_code(void); /*proto*/ static int __Pyx_modinit_global_init_code(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_modinit_global_init_code", 0); /*--- Global init code ---*/ __Pyx_RefNannyFinishContext(); return 0; } static int __Pyx_modinit_variable_export_code(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_modinit_variable_export_code", 0); /*--- Variable export code ---*/ __Pyx_RefNannyFinishContext(); return 0; } static int __Pyx_modinit_function_export_code(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_modinit_function_export_code", 0); /*--- Function export code ---*/ __Pyx_RefNannyFinishContext(); return 0; } static int __Pyx_modinit_type_init_code(void) { __Pyx_RefNannyDeclarations 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_ptype_4cuda_6cudart_cudaArray_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaArray_t_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaArray_t)) __PYX_ERR(0, 3635, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaArray_t_spec, __pyx_ptype_4cuda_6cudart_cudaArray_t) < 0) __PYX_ERR(0, 3635, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaArray_t = &__pyx_type_4cuda_6cudart_cudaArray_t; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaArray_t) < 0) __PYX_ERR(0, 3635, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaArray_t->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaArray_t->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaArray_t->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaArray_t->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaArray_t_2, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaArray_t) < 0) __PYX_ERR(0, 3635, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaArray_t) < 0) __PYX_ERR(0, 3635, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaArray_const_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaArray_const_t_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaArray_const_t)) __PYX_ERR(0, 3663, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaArray_const_t_spec, __pyx_ptype_4cuda_6cudart_cudaArray_const_t) < 0) __PYX_ERR(0, 3663, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaArray_const_t = &__pyx_type_4cuda_6cudart_cudaArray_const_t; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaArray_const_t) < 0) __PYX_ERR(0, 3663, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaArray_const_t->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaArray_const_t->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaArray_const_t->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaArray_const_t->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaArray_const_t_2, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaArray_const_t) < 0) __PYX_ERR(0, 3663, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaArray_const_t) < 0) __PYX_ERR(0, 3663, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaMipmappedArray_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaMipmappedArray_t_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaMipmappedArray_t)) __PYX_ERR(0, 3691, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaMipmappedArray_t_spec, __pyx_ptype_4cuda_6cudart_cudaMipmappedArray_t) < 0) __PYX_ERR(0, 3691, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaMipmappedArray_t = &__pyx_type_4cuda_6cudart_cudaMipmappedArray_t; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaMipmappedArray_t) < 0) __PYX_ERR(0, 3691, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaMipmappedArray_t->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaMipmappedArray_t->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaMipmappedArray_t->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaMipmappedArray_t->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaMipmappedArray_t_2, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaMipmappedArray_t) < 0) __PYX_ERR(0, 3691, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaMipmappedArray_t) < 0) __PYX_ERR(0, 3691, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaMipmappedArray_const_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaMipmappedArray_const_t_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaMipmappedArray_const_t)) __PYX_ERR(0, 3719, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaMipmappedArray_const_t_spec, __pyx_ptype_4cuda_6cudart_cudaMipmappedArray_const_t) < 0) __PYX_ERR(0, 3719, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaMipmappedArray_const_t = &__pyx_type_4cuda_6cudart_cudaMipmappedArray_const_t; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaMipmappedArray_const_t) < 0) __PYX_ERR(0, 3719, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaMipmappedArray_const_t->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaMipmappedArray_const_t->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaMipmappedArray_const_t->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaMipmappedArray_const_t->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaMipmappedArray_const_t_2, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaMipmappedArray_const_t) < 0) __PYX_ERR(0, 3719, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaMipmappedArray_const_t) < 0) __PYX_ERR(0, 3719, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaGraphicsResource_t_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t)) __PYX_ERR(0, 3747, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaGraphicsResource_t_spec, __pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t) < 0) __PYX_ERR(0, 3747, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t = &__pyx_type_4cuda_6cudart_cudaGraphicsResource_t; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t) < 0) __PYX_ERR(0, 3747, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaGraphicsResource_t_2, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t) < 0) __PYX_ERR(0, 3747, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t) < 0) __PYX_ERR(0, 3747, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaExternalMemory_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaExternalMemory_t_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaExternalMemory_t)) __PYX_ERR(0, 3775, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaExternalMemory_t_spec, __pyx_ptype_4cuda_6cudart_cudaExternalMemory_t) < 0) __PYX_ERR(0, 3775, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaExternalMemory_t = &__pyx_type_4cuda_6cudart_cudaExternalMemory_t; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaExternalMemory_t) < 0) __PYX_ERR(0, 3775, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaExternalMemory_t->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaExternalMemory_t->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaExternalMemory_t->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaExternalMemory_t->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaExternalMemory_t_2, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaExternalMemory_t) < 0) __PYX_ERR(0, 3775, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaExternalMemory_t) < 0) __PYX_ERR(0, 3775, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaExternalSemaphore_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaExternalSemaphore_t_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaExternalSemaphore_t)) __PYX_ERR(0, 3803, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaExternalSemaphore_t_spec, __pyx_ptype_4cuda_6cudart_cudaExternalSemaphore_t) < 0) __PYX_ERR(0, 3803, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaExternalSemaphore_t = &__pyx_type_4cuda_6cudart_cudaExternalSemaphore_t; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaExternalSemaphore_t) < 0) __PYX_ERR(0, 3803, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaExternalSemaphore_t->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaExternalSemaphore_t->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaExternalSemaphore_t->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaExternalSemaphore_t->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaExternalSemaphore_t_2, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaExternalSemaphore_t) < 0) __PYX_ERR(0, 3803, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaExternalSemaphore_t) < 0) __PYX_ERR(0, 3803, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaKernel_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaKernel_t_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaKernel_t)) __PYX_ERR(0, 3831, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaKernel_t_spec, __pyx_ptype_4cuda_6cudart_cudaKernel_t) < 0) __PYX_ERR(0, 3831, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaKernel_t = &__pyx_type_4cuda_6cudart_cudaKernel_t; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaKernel_t) < 0) __PYX_ERR(0, 3831, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaKernel_t->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaKernel_t->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaKernel_t->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaKernel_t->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaKernel_t_2, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaKernel_t) < 0) __PYX_ERR(0, 3831, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaKernel_t) < 0) __PYX_ERR(0, 3831, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaGraphDeviceNode_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaGraphDeviceNode_t_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaGraphDeviceNode_t)) __PYX_ERR(0, 3859, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaGraphDeviceNode_t_spec, __pyx_ptype_4cuda_6cudart_cudaGraphDeviceNode_t) < 0) __PYX_ERR(0, 3859, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaGraphDeviceNode_t = &__pyx_type_4cuda_6cudart_cudaGraphDeviceNode_t; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaGraphDeviceNode_t) < 0) __PYX_ERR(0, 3859, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaGraphDeviceNode_t->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaGraphDeviceNode_t->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaGraphDeviceNode_t->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaGraphDeviceNode_t->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaGraphDeviceNode_t_2, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaGraphDeviceNode_t) < 0) __PYX_ERR(0, 3859, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaGraphDeviceNode_t) < 0) __PYX_ERR(0, 3859, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaAsyncCallbackHandle_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaAsyncCallbackHandle_t_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaAsyncCallbackHandle_t)) __PYX_ERR(0, 3887, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaAsyncCallbackHandle_t_spec, __pyx_ptype_4cuda_6cudart_cudaAsyncCallbackHandle_t) < 0) __PYX_ERR(0, 3887, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaAsyncCallbackHandle_t = &__pyx_type_4cuda_6cudart_cudaAsyncCallbackHandle_t; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaAsyncCallbackHandle_t) < 0) __PYX_ERR(0, 3887, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaAsyncCallbackHandle_t->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaAsyncCallbackHandle_t->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaAsyncCallbackHandle_t->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaAsyncCallbackHandle_t->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaAsyncCallbackHandle_t_2, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaAsyncCallbackHandle_t) < 0) __PYX_ERR(0, 3887, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaAsyncCallbackHandle_t) < 0) __PYX_ERR(0, 3887, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_EGLImageKHR = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_EGLImageKHR_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_EGLImageKHR)) __PYX_ERR(0, 3915, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_EGLImageKHR_spec, __pyx_ptype_4cuda_6cudart_EGLImageKHR) < 0) __PYX_ERR(0, 3915, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_EGLImageKHR = &__pyx_type_4cuda_6cudart_EGLImageKHR; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_EGLImageKHR) < 0) __PYX_ERR(0, 3915, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_EGLImageKHR->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_EGLImageKHR->tp_dictoffset && __pyx_ptype_4cuda_6cudart_EGLImageKHR->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_EGLImageKHR->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_EGLImageKHR_2, (PyObject *) __pyx_ptype_4cuda_6cudart_EGLImageKHR) < 0) __PYX_ERR(0, 3915, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_EGLImageKHR) < 0) __PYX_ERR(0, 3915, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_EGLStreamKHR = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_EGLStreamKHR_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_EGLStreamKHR)) __PYX_ERR(0, 3941, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_EGLStreamKHR_spec, __pyx_ptype_4cuda_6cudart_EGLStreamKHR) < 0) __PYX_ERR(0, 3941, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_EGLStreamKHR = &__pyx_type_4cuda_6cudart_EGLStreamKHR; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_EGLStreamKHR) < 0) __PYX_ERR(0, 3941, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_EGLStreamKHR->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_EGLStreamKHR->tp_dictoffset && __pyx_ptype_4cuda_6cudart_EGLStreamKHR->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_EGLStreamKHR->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_EGLStreamKHR_2, (PyObject *) __pyx_ptype_4cuda_6cudart_EGLStreamKHR) < 0) __PYX_ERR(0, 3941, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_EGLStreamKHR) < 0) __PYX_ERR(0, 3941, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_EGLSyncKHR = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_EGLSyncKHR_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_EGLSyncKHR)) __PYX_ERR(0, 3967, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_EGLSyncKHR_spec, __pyx_ptype_4cuda_6cudart_EGLSyncKHR) < 0) __PYX_ERR(0, 3967, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_EGLSyncKHR = &__pyx_type_4cuda_6cudart_EGLSyncKHR; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_EGLSyncKHR) < 0) __PYX_ERR(0, 3967, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_EGLSyncKHR->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_EGLSyncKHR->tp_dictoffset && __pyx_ptype_4cuda_6cudart_EGLSyncKHR->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_EGLSyncKHR->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_EGLSyncKHR_2, (PyObject *) __pyx_ptype_4cuda_6cudart_EGLSyncKHR) < 0) __PYX_ERR(0, 3967, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_EGLSyncKHR) < 0) __PYX_ERR(0, 3967, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaHostFn_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaHostFn_t_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaHostFn_t)) __PYX_ERR(0, 3993, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaHostFn_t_spec, __pyx_ptype_4cuda_6cudart_cudaHostFn_t) < 0) __PYX_ERR(0, 3993, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaHostFn_t = &__pyx_type_4cuda_6cudart_cudaHostFn_t; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaHostFn_t) < 0) __PYX_ERR(0, 3993, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaHostFn_t->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaHostFn_t->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaHostFn_t->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaHostFn_t->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaHostFn_t_2, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaHostFn_t) < 0) __PYX_ERR(0, 3993, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaHostFn_t) < 0) __PYX_ERR(0, 3993, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaAsyncCallback = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaAsyncCallback_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaAsyncCallback)) __PYX_ERR(0, 4019, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaAsyncCallback_spec, __pyx_ptype_4cuda_6cudart_cudaAsyncCallback) < 0) __PYX_ERR(0, 4019, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaAsyncCallback = &__pyx_type_4cuda_6cudart_cudaAsyncCallback; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaAsyncCallback) < 0) __PYX_ERR(0, 4019, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaAsyncCallback->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaAsyncCallback->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaAsyncCallback->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaAsyncCallback->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaAsyncCallback_2, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaAsyncCallback) < 0) __PYX_ERR(0, 4019, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaAsyncCallback) < 0) __PYX_ERR(0, 4019, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaStreamCallback_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaStreamCallback_t_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaStreamCallback_t)) __PYX_ERR(0, 4045, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaStreamCallback_t_spec, __pyx_ptype_4cuda_6cudart_cudaStreamCallback_t) < 0) __PYX_ERR(0, 4045, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaStreamCallback_t = &__pyx_type_4cuda_6cudart_cudaStreamCallback_t; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaStreamCallback_t) < 0) __PYX_ERR(0, 4045, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaStreamCallback_t->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaStreamCallback_t->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaStreamCallback_t->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaStreamCallback_t->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaStreamCallback_t_2, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaStreamCallback_t) < 0) __PYX_ERR(0, 4045, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaStreamCallback_t) < 0) __PYX_ERR(0, 4045, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_dim3 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_dim3_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_dim3)) __PYX_ERR(0, 4071, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_dim3_spec, __pyx_ptype_4cuda_6cudart_dim3) < 0) __PYX_ERR(0, 4071, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_dim3 = &__pyx_type_4cuda_6cudart_dim3; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_dim3) < 0) __PYX_ERR(0, 4071, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_dim3->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_dim3->tp_dictoffset && __pyx_ptype_4cuda_6cudart_dim3->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_dim3->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_dim3, (PyObject *) __pyx_ptype_4cuda_6cudart_dim3) < 0) __PYX_ERR(0, 4071, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_dim3) < 0) __PYX_ERR(0, 4071, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaChannelFormatDesc = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaChannelFormatDesc_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaChannelFormatDesc)) __PYX_ERR(0, 4136, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaChannelFormatDesc_spec, __pyx_ptype_4cuda_6cudart_cudaChannelFormatDesc) < 0) __PYX_ERR(0, 4136, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaChannelFormatDesc = &__pyx_type_4cuda_6cudart_cudaChannelFormatDesc; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaChannelFormatDesc) < 0) __PYX_ERR(0, 4136, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaChannelFormatDesc->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaChannelFormatDesc->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaChannelFormatDesc->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaChannelFormatDesc->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaChannelFormatDesc, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaChannelFormatDesc) < 0) __PYX_ERR(0, 4136, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaChannelFormatDesc) < 0) __PYX_ERR(0, 4136, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_anon_struct0 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_anon_struct0_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_anon_struct0)) __PYX_ERR(0, 4227, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_anon_struct0_spec, __pyx_ptype_4cuda_6cudart_anon_struct0) < 0) __PYX_ERR(0, 4227, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_anon_struct0 = &__pyx_type_4cuda_6cudart_anon_struct0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_anon_struct0) < 0) __PYX_ERR(0, 4227, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_anon_struct0->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_anon_struct0->tp_dictoffset && __pyx_ptype_4cuda_6cudart_anon_struct0->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_anon_struct0->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_anon_struct0, (PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct0) < 0) __PYX_ERR(0, 4227, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct0) < 0) __PYX_ERR(0, 4227, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaArraySparseProperties = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaArraySparseProperties_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaArraySparseProperties)) __PYX_ERR(0, 4290, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaArraySparseProperties_spec, __pyx_ptype_4cuda_6cudart_cudaArraySparseProperties) < 0) __PYX_ERR(0, 4290, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaArraySparseProperties = &__pyx_type_4cuda_6cudart_cudaArraySparseProperties; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaArraySparseProperties) < 0) __PYX_ERR(0, 4290, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaArraySparseProperties->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaArraySparseProperties->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaArraySparseProperties->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaArraySparseProperties->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaArraySparseProperties, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaArraySparseProperties) < 0) __PYX_ERR(0, 4290, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaArraySparseProperties) < 0) __PYX_ERR(0, 4290, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaArrayMemoryRequirements = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaArrayMemoryRequirements_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaArrayMemoryRequirements)) __PYX_ERR(0, 4381, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaArrayMemoryRequirements_spec, __pyx_ptype_4cuda_6cudart_cudaArrayMemoryRequirements) < 0) __PYX_ERR(0, 4381, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaArrayMemoryRequirements = &__pyx_type_4cuda_6cudart_cudaArrayMemoryRequirements; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaArrayMemoryRequirements) < 0) __PYX_ERR(0, 4381, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaArrayMemoryRequirements->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaArrayMemoryRequirements->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaArrayMemoryRequirements->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaArrayMemoryRequirements->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaArrayMemoryRequirements, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaArrayMemoryRequirements) < 0) __PYX_ERR(0, 4381, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaArrayMemoryRequirements) < 0) __PYX_ERR(0, 4381, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaPitchedPtr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaPitchedPtr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaPitchedPtr)) __PYX_ERR(0, 4448, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaPitchedPtr_spec, __pyx_ptype_4cuda_6cudart_cudaPitchedPtr) < 0) __PYX_ERR(0, 4448, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaPitchedPtr = &__pyx_type_4cuda_6cudart_cudaPitchedPtr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaPitchedPtr) < 0) __PYX_ERR(0, 4448, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaPitchedPtr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaPitchedPtr->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaPitchedPtr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaPitchedPtr->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaPitchedPtr, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaPitchedPtr) < 0) __PYX_ERR(0, 4448, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaPitchedPtr) < 0) __PYX_ERR(0, 4448, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaExtent = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaExtent_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaExtent)) __PYX_ERR(0, 4528, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaExtent_spec, __pyx_ptype_4cuda_6cudart_cudaExtent) < 0) __PYX_ERR(0, 4528, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaExtent = &__pyx_type_4cuda_6cudart_cudaExtent; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaExtent) < 0) __PYX_ERR(0, 4528, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaExtent->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaExtent->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaExtent->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaExtent->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaExtent, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaExtent) < 0) __PYX_ERR(0, 4528, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaExtent) < 0) __PYX_ERR(0, 4528, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaPos = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaPos_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaPos)) __PYX_ERR(0, 4596, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaPos_spec, __pyx_ptype_4cuda_6cudart_cudaPos) < 0) __PYX_ERR(0, 4596, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaPos = &__pyx_type_4cuda_6cudart_cudaPos; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaPos) < 0) __PYX_ERR(0, 4596, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaPos->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaPos->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaPos->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaPos->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaPos, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaPos) < 0) __PYX_ERR(0, 4596, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaPos) < 0) __PYX_ERR(0, 4596, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaMemcpy3DParms = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaMemcpy3DParms_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaMemcpy3DParms)) __PYX_ERR(0, 4663, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaMemcpy3DParms_spec, __pyx_ptype_4cuda_6cudart_cudaMemcpy3DParms) < 0) __PYX_ERR(0, 4663, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaMemcpy3DParms = &__pyx_type_4cuda_6cudart_cudaMemcpy3DParms; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaMemcpy3DParms) < 0) __PYX_ERR(0, 4663, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaMemcpy3DParms->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaMemcpy3DParms->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaMemcpy3DParms->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaMemcpy3DParms->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaMemcpy3DParms, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaMemcpy3DParms) < 0) __PYX_ERR(0, 4663, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaMemcpy3DParms) < 0) __PYX_ERR(0, 4663, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaMemcpyNodeParams = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaMemcpyNodeParams_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaMemcpyNodeParams)) __PYX_ERR(0, 4814, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaMemcpyNodeParams_spec, __pyx_ptype_4cuda_6cudart_cudaMemcpyNodeParams) < 0) __PYX_ERR(0, 4814, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaMemcpyNodeParams = &__pyx_type_4cuda_6cudart_cudaMemcpyNodeParams; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaMemcpyNodeParams) < 0) __PYX_ERR(0, 4814, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaMemcpyNodeParams->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaMemcpyNodeParams->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaMemcpyNodeParams->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaMemcpyNodeParams->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaMemcpyNodeParams, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaMemcpyNodeParams) < 0) __PYX_ERR(0, 4814, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaMemcpyNodeParams) < 0) __PYX_ERR(0, 4814, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaMemcpy3DPeerParms = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaMemcpy3DPeerParms_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaMemcpy3DPeerParms)) __PYX_ERR(0, 4881, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaMemcpy3DPeerParms_spec, __pyx_ptype_4cuda_6cudart_cudaMemcpy3DPeerParms) < 0) __PYX_ERR(0, 4881, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaMemcpy3DPeerParms = &__pyx_type_4cuda_6cudart_cudaMemcpy3DPeerParms; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaMemcpy3DPeerParms) < 0) __PYX_ERR(0, 4881, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaMemcpy3DPeerParms->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaMemcpy3DPeerParms->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaMemcpy3DPeerParms->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaMemcpy3DPeerParms->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaMemcpy3DPeerParms, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaMemcpy3DPeerParms) < 0) __PYX_ERR(0, 4881, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaMemcpy3DPeerParms) < 0) __PYX_ERR(0, 4881, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaMemsetParams = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaMemsetParams_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaMemsetParams)) __PYX_ERR(0, 5044, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaMemsetParams_spec, __pyx_ptype_4cuda_6cudart_cudaMemsetParams) < 0) __PYX_ERR(0, 5044, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaMemsetParams = &__pyx_type_4cuda_6cudart_cudaMemsetParams; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaMemsetParams) < 0) __PYX_ERR(0, 5044, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaMemsetParams->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaMemsetParams->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaMemsetParams->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaMemsetParams->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaMemsetParams, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaMemsetParams) < 0) __PYX_ERR(0, 5044, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaMemsetParams) < 0) __PYX_ERR(0, 5044, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaMemsetParamsV2 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaMemsetParamsV2_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaMemsetParamsV2)) __PYX_ERR(0, 5148, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaMemsetParamsV2_spec, __pyx_ptype_4cuda_6cudart_cudaMemsetParamsV2) < 0) __PYX_ERR(0, 5148, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaMemsetParamsV2 = &__pyx_type_4cuda_6cudart_cudaMemsetParamsV2; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaMemsetParamsV2) < 0) __PYX_ERR(0, 5148, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaMemsetParamsV2->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaMemsetParamsV2->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaMemsetParamsV2->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaMemsetParamsV2->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaMemsetParamsV2, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaMemsetParamsV2) < 0) __PYX_ERR(0, 5148, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaMemsetParamsV2) < 0) __PYX_ERR(0, 5148, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaAccessPolicyWindow = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaAccessPolicyWindow_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaAccessPolicyWindow)) __PYX_ERR(0, 5252, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaAccessPolicyWindow_spec, __pyx_ptype_4cuda_6cudart_cudaAccessPolicyWindow) < 0) __PYX_ERR(0, 5252, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaAccessPolicyWindow = &__pyx_type_4cuda_6cudart_cudaAccessPolicyWindow; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaAccessPolicyWindow) < 0) __PYX_ERR(0, 5252, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaAccessPolicyWindow->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaAccessPolicyWindow->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaAccessPolicyWindow->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaAccessPolicyWindow->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaAccessPolicyWindow, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaAccessPolicyWindow) < 0) __PYX_ERR(0, 5252, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaAccessPolicyWindow) < 0) __PYX_ERR(0, 5252, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaHostNodeParams = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaHostNodeParams_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaHostNodeParams)) __PYX_ERR(0, 5355, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaHostNodeParams_spec, __pyx_ptype_4cuda_6cudart_cudaHostNodeParams) < 0) __PYX_ERR(0, 5355, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaHostNodeParams = &__pyx_type_4cuda_6cudart_cudaHostNodeParams; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaHostNodeParams) < 0) __PYX_ERR(0, 5355, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaHostNodeParams->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaHostNodeParams->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaHostNodeParams->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaHostNodeParams->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaHostNodeParams, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaHostNodeParams) < 0) __PYX_ERR(0, 5355, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaHostNodeParams) < 0) __PYX_ERR(0, 5355, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaHostNodeParamsV2 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaHostNodeParamsV2_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaHostNodeParamsV2)) __PYX_ERR(0, 5420, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaHostNodeParamsV2_spec, __pyx_ptype_4cuda_6cudart_cudaHostNodeParamsV2) < 0) __PYX_ERR(0, 5420, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaHostNodeParamsV2 = &__pyx_type_4cuda_6cudart_cudaHostNodeParamsV2; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaHostNodeParamsV2) < 0) __PYX_ERR(0, 5420, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaHostNodeParamsV2->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaHostNodeParamsV2->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaHostNodeParamsV2->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaHostNodeParamsV2->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaHostNodeParamsV2, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaHostNodeParamsV2) < 0) __PYX_ERR(0, 5420, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaHostNodeParamsV2) < 0) __PYX_ERR(0, 5420, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_anon_struct1 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_anon_struct1_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_anon_struct1)) __PYX_ERR(0, 5485, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_anon_struct1_spec, __pyx_ptype_4cuda_6cudart_anon_struct1) < 0) __PYX_ERR(0, 5485, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_anon_struct1 = &__pyx_type_4cuda_6cudart_anon_struct1; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_anon_struct1) < 0) __PYX_ERR(0, 5485, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_anon_struct1->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_anon_struct1->tp_dictoffset && __pyx_ptype_4cuda_6cudart_anon_struct1->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_anon_struct1->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_anon_struct1, (PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct1) < 0) __PYX_ERR(0, 5485, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct1) < 0) __PYX_ERR(0, 5485, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_anon_struct2 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_anon_struct2_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_anon_struct2)) __PYX_ERR(0, 5533, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_anon_struct2_spec, __pyx_ptype_4cuda_6cudart_anon_struct2) < 0) __PYX_ERR(0, 5533, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_anon_struct2 = &__pyx_type_4cuda_6cudart_anon_struct2; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_anon_struct2) < 0) __PYX_ERR(0, 5533, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_anon_struct2->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_anon_struct2->tp_dictoffset && __pyx_ptype_4cuda_6cudart_anon_struct2->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_anon_struct2->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_anon_struct2, (PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct2) < 0) __PYX_ERR(0, 5533, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct2) < 0) __PYX_ERR(0, 5533, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_anon_struct3 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_anon_struct3_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_anon_struct3)) __PYX_ERR(0, 5581, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_anon_struct3_spec, __pyx_ptype_4cuda_6cudart_anon_struct3) < 0) __PYX_ERR(0, 5581, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_anon_struct3 = &__pyx_type_4cuda_6cudart_anon_struct3; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_anon_struct3) < 0) __PYX_ERR(0, 5581, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_anon_struct3->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_anon_struct3->tp_dictoffset && __pyx_ptype_4cuda_6cudart_anon_struct3->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_anon_struct3->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_anon_struct3, (PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct3) < 0) __PYX_ERR(0, 5581, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct3) < 0) __PYX_ERR(0, 5581, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_anon_struct4 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_anon_struct4_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_anon_struct4)) __PYX_ERR(0, 5645, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_anon_struct4_spec, __pyx_ptype_4cuda_6cudart_anon_struct4) < 0) __PYX_ERR(0, 5645, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_anon_struct4 = &__pyx_type_4cuda_6cudart_anon_struct4; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_anon_struct4) < 0) __PYX_ERR(0, 5645, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_anon_struct4->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_anon_struct4->tp_dictoffset && __pyx_ptype_4cuda_6cudart_anon_struct4->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_anon_struct4->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_anon_struct4, (PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct4) < 0) __PYX_ERR(0, 5645, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct4) < 0) __PYX_ERR(0, 5645, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_anon_union0 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_anon_union0_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_anon_union0)) __PYX_ERR(0, 5733, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_anon_union0_spec, __pyx_ptype_4cuda_6cudart_anon_union0) < 0) __PYX_ERR(0, 5733, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_anon_union0 = &__pyx_type_4cuda_6cudart_anon_union0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_anon_union0) < 0) __PYX_ERR(0, 5733, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_anon_union0->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_anon_union0->tp_dictoffset && __pyx_ptype_4cuda_6cudart_anon_union0->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_anon_union0->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_anon_union0, (PyObject *) __pyx_ptype_4cuda_6cudart_anon_union0) < 0) __PYX_ERR(0, 5733, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_anon_union0) < 0) __PYX_ERR(0, 5733, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaResourceDesc = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaResourceDesc_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaResourceDesc)) __PYX_ERR(0, 5811, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaResourceDesc_spec, __pyx_ptype_4cuda_6cudart_cudaResourceDesc) < 0) __PYX_ERR(0, 5811, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaResourceDesc = &__pyx_type_4cuda_6cudart_cudaResourceDesc; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaResourceDesc) < 0) __PYX_ERR(0, 5811, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaResourceDesc->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaResourceDesc->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaResourceDesc->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaResourceDesc->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaResourceDesc, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaResourceDesc) < 0) __PYX_ERR(0, 5811, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaResourceDesc) < 0) __PYX_ERR(0, 5811, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaResourceViewDesc = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaResourceViewDesc_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaResourceViewDesc)) __PYX_ERR(0, 5868, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaResourceViewDesc_spec, __pyx_ptype_4cuda_6cudart_cudaResourceViewDesc) < 0) __PYX_ERR(0, 5868, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaResourceViewDesc = &__pyx_type_4cuda_6cudart_cudaResourceViewDesc; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaResourceViewDesc) < 0) __PYX_ERR(0, 5868, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaResourceViewDesc->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaResourceViewDesc->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaResourceViewDesc->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaResourceViewDesc->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaResourceViewDesc, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaResourceViewDesc) < 0) __PYX_ERR(0, 5868, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaResourceViewDesc) < 0) __PYX_ERR(0, 5868, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaPointerAttributes = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaPointerAttributes_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaPointerAttributes)) __PYX_ERR(0, 5995, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaPointerAttributes_spec, __pyx_ptype_4cuda_6cudart_cudaPointerAttributes) < 0) __PYX_ERR(0, 5995, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaPointerAttributes = &__pyx_type_4cuda_6cudart_cudaPointerAttributes; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaPointerAttributes) < 0) __PYX_ERR(0, 5995, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaPointerAttributes->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaPointerAttributes->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaPointerAttributes->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaPointerAttributes->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaPointerAttributes, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaPointerAttributes) < 0) __PYX_ERR(0, 5995, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaPointerAttributes) < 0) __PYX_ERR(0, 5995, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaFuncAttributes = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaFuncAttributes_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaFuncAttributes)) __PYX_ERR(0, 6087, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaFuncAttributes_spec, __pyx_ptype_4cuda_6cudart_cudaFuncAttributes) < 0) __PYX_ERR(0, 6087, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaFuncAttributes = &__pyx_type_4cuda_6cudart_cudaFuncAttributes; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaFuncAttributes) < 0) __PYX_ERR(0, 6087, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaFuncAttributes->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaFuncAttributes->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaFuncAttributes->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaFuncAttributes->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaFuncAttributes, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaFuncAttributes) < 0) __PYX_ERR(0, 6087, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaFuncAttributes) < 0) __PYX_ERR(0, 6087, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaMemLocation = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaMemLocation_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaMemLocation)) __PYX_ERR(0, 6359, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaMemLocation_spec, __pyx_ptype_4cuda_6cudart_cudaMemLocation) < 0) __PYX_ERR(0, 6359, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaMemLocation = &__pyx_type_4cuda_6cudart_cudaMemLocation; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaMemLocation) < 0) __PYX_ERR(0, 6359, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaMemLocation->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaMemLocation->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaMemLocation->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaMemLocation->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaMemLocation, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaMemLocation) < 0) __PYX_ERR(0, 6359, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaMemLocation) < 0) __PYX_ERR(0, 6359, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaMemAccessDesc = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaMemAccessDesc_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaMemAccessDesc)) __PYX_ERR(0, 6417, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaMemAccessDesc_spec, __pyx_ptype_4cuda_6cudart_cudaMemAccessDesc) < 0) __PYX_ERR(0, 6417, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaMemAccessDesc = &__pyx_type_4cuda_6cudart_cudaMemAccessDesc; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaMemAccessDesc) < 0) __PYX_ERR(0, 6417, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaMemAccessDesc->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaMemAccessDesc->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaMemAccessDesc->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaMemAccessDesc->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaMemAccessDesc, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaMemAccessDesc) < 0) __PYX_ERR(0, 6417, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaMemAccessDesc) < 0) __PYX_ERR(0, 6417, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaMemPoolProps = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaMemPoolProps_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaMemPoolProps)) __PYX_ERR(0, 6472, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaMemPoolProps_spec, __pyx_ptype_4cuda_6cudart_cudaMemPoolProps) < 0) __PYX_ERR(0, 6472, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaMemPoolProps = &__pyx_type_4cuda_6cudart_cudaMemPoolProps; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaMemPoolProps) < 0) __PYX_ERR(0, 6472, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaMemPoolProps->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaMemPoolProps->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaMemPoolProps->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaMemPoolProps->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaMemPoolProps, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaMemPoolProps) < 0) __PYX_ERR(0, 6472, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaMemPoolProps) < 0) __PYX_ERR(0, 6472, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaMemPoolPtrExportData = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaMemPoolPtrExportData_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaMemPoolPtrExportData)) __PYX_ERR(0, 6597, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaMemPoolPtrExportData_spec, __pyx_ptype_4cuda_6cudart_cudaMemPoolPtrExportData) < 0) __PYX_ERR(0, 6597, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaMemPoolPtrExportData = &__pyx_type_4cuda_6cudart_cudaMemPoolPtrExportData; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaMemPoolPtrExportData) < 0) __PYX_ERR(0, 6597, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaMemPoolPtrExportData->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaMemPoolPtrExportData->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaMemPoolPtrExportData->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaMemPoolPtrExportData->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaMemPoolPtrExportData, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaMemPoolPtrExportData) < 0) __PYX_ERR(0, 6597, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaMemPoolPtrExportData) < 0) __PYX_ERR(0, 6597, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParams = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaMemAllocNodeParams_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParams)) __PYX_ERR(0, 6643, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaMemAllocNodeParams_spec, __pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParams) < 0) __PYX_ERR(0, 6643, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParams = &__pyx_type_4cuda_6cudart_cudaMemAllocNodeParams; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParams) < 0) __PYX_ERR(0, 6643, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParams->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParams->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParams->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParams->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaMemAllocNodeParams, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParams) < 0) __PYX_ERR(0, 6643, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParams) < 0) __PYX_ERR(0, 6643, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParamsV2 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaMemAllocNodeParamsV2_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParamsV2)) __PYX_ERR(0, 6755, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaMemAllocNodeParamsV2_spec, __pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParamsV2) < 0) __PYX_ERR(0, 6755, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParamsV2 = &__pyx_type_4cuda_6cudart_cudaMemAllocNodeParamsV2; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParamsV2) < 0) __PYX_ERR(0, 6755, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParamsV2->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParamsV2->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParamsV2->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParamsV2->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaMemAllocNodeParamsV2, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParamsV2) < 0) __PYX_ERR(0, 6755, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParamsV2) < 0) __PYX_ERR(0, 6755, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaMemFreeNodeParams = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaMemFreeNodeParams_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaMemFreeNodeParams)) __PYX_ERR(0, 6867, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaMemFreeNodeParams_spec, __pyx_ptype_4cuda_6cudart_cudaMemFreeNodeParams) < 0) __PYX_ERR(0, 6867, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaMemFreeNodeParams = &__pyx_type_4cuda_6cudart_cudaMemFreeNodeParams; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaMemFreeNodeParams) < 0) __PYX_ERR(0, 6867, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaMemFreeNodeParams->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaMemFreeNodeParams->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaMemFreeNodeParams->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaMemFreeNodeParams->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaMemFreeNodeParams, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaMemFreeNodeParams) < 0) __PYX_ERR(0, 6867, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaMemFreeNodeParams) < 0) __PYX_ERR(0, 6867, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_CUuuid_st = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_CUuuid_st_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_CUuuid_st)) __PYX_ERR(0, 6911, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_CUuuid_st_spec, __pyx_ptype_4cuda_6cudart_CUuuid_st) < 0) __PYX_ERR(0, 6911, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_CUuuid_st = &__pyx_type_4cuda_6cudart_CUuuid_st; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_CUuuid_st) < 0) __PYX_ERR(0, 6911, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_CUuuid_st->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_CUuuid_st->tp_dictoffset && __pyx_ptype_4cuda_6cudart_CUuuid_st->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_CUuuid_st->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_CUuuid_st, (PyObject *) __pyx_ptype_4cuda_6cudart_CUuuid_st) < 0) __PYX_ERR(0, 6911, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_CUuuid_st) < 0) __PYX_ERR(0, 6911, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaDeviceProp = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaDeviceProp_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaDeviceProp)) __PYX_ERR(0, 6949, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaDeviceProp_spec, __pyx_ptype_4cuda_6cudart_cudaDeviceProp) < 0) __PYX_ERR(0, 6949, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaDeviceProp = &__pyx_type_4cuda_6cudart_cudaDeviceProp; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaDeviceProp) < 0) __PYX_ERR(0, 6949, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaDeviceProp->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaDeviceProp->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaDeviceProp->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaDeviceProp->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaDeviceProp, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaDeviceProp) < 0) __PYX_ERR(0, 6949, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaDeviceProp) < 0) __PYX_ERR(0, 6949, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaIpcEventHandle_st = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaIpcEventHandle_st_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaIpcEventHandle_st)) __PYX_ERR(0, 8166, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaIpcEventHandle_st_spec, __pyx_ptype_4cuda_6cudart_cudaIpcEventHandle_st) < 0) __PYX_ERR(0, 8166, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaIpcEventHandle_st = &__pyx_type_4cuda_6cudart_cudaIpcEventHandle_st; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaIpcEventHandle_st) < 0) __PYX_ERR(0, 8166, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaIpcEventHandle_st->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaIpcEventHandle_st->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaIpcEventHandle_st->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaIpcEventHandle_st->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaIpcEventHandle_st, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaIpcEventHandle_st) < 0) __PYX_ERR(0, 8166, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaIpcEventHandle_st) < 0) __PYX_ERR(0, 8166, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaIpcMemHandle_st = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaIpcMemHandle_st_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaIpcMemHandle_st)) __PYX_ERR(0, 8220, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaIpcMemHandle_st_spec, __pyx_ptype_4cuda_6cudart_cudaIpcMemHandle_st) < 0) __PYX_ERR(0, 8220, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaIpcMemHandle_st = &__pyx_type_4cuda_6cudart_cudaIpcMemHandle_st; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaIpcMemHandle_st) < 0) __PYX_ERR(0, 8220, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaIpcMemHandle_st->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaIpcMemHandle_st->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaIpcMemHandle_st->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaIpcMemHandle_st->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaIpcMemHandle_st, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaIpcMemHandle_st) < 0) __PYX_ERR(0, 8220, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaIpcMemHandle_st) < 0) __PYX_ERR(0, 8220, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaMemFabricHandle_st = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaMemFabricHandle_st_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaMemFabricHandle_st)) __PYX_ERR(0, 8274, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaMemFabricHandle_st_spec, __pyx_ptype_4cuda_6cudart_cudaMemFabricHandle_st) < 0) __PYX_ERR(0, 8274, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaMemFabricHandle_st = &__pyx_type_4cuda_6cudart_cudaMemFabricHandle_st; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaMemFabricHandle_st) < 0) __PYX_ERR(0, 8274, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaMemFabricHandle_st->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaMemFabricHandle_st->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaMemFabricHandle_st->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaMemFabricHandle_st->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaMemFabricHandle_st, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaMemFabricHandle_st) < 0) __PYX_ERR(0, 8274, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaMemFabricHandle_st) < 0) __PYX_ERR(0, 8274, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_anon_struct5 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_anon_struct5_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_anon_struct5)) __PYX_ERR(0, 8326, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_anon_struct5_spec, __pyx_ptype_4cuda_6cudart_anon_struct5) < 0) __PYX_ERR(0, 8326, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_anon_struct5 = &__pyx_type_4cuda_6cudart_anon_struct5; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_anon_struct5) < 0) __PYX_ERR(0, 8326, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_anon_struct5->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_anon_struct5->tp_dictoffset && __pyx_ptype_4cuda_6cudart_anon_struct5->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_anon_struct5->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_anon_struct5, (PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct5) < 0) __PYX_ERR(0, 8326, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct5) < 0) __PYX_ERR(0, 8326, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_anon_union1 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_anon_union1_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_anon_union1)) __PYX_ERR(0, 8379, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_anon_union1_spec, __pyx_ptype_4cuda_6cudart_anon_union1) < 0) __PYX_ERR(0, 8379, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_anon_union1 = &__pyx_type_4cuda_6cudart_anon_union1; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_anon_union1) < 0) __PYX_ERR(0, 8379, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_anon_union1->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_anon_union1->tp_dictoffset && __pyx_ptype_4cuda_6cudart_anon_union1->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_anon_union1->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_anon_union1, (PyObject *) __pyx_ptype_4cuda_6cudart_anon_union1) < 0) __PYX_ERR(0, 8379, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_anon_union1) < 0) __PYX_ERR(0, 8379, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaExternalMemoryHandleDesc = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaExternalMemoryHandleDesc_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaExternalMemoryHandleDesc)) __PYX_ERR(0, 8443, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaExternalMemoryHandleDesc_spec, __pyx_ptype_4cuda_6cudart_cudaExternalMemoryHandleDesc) < 0) __PYX_ERR(0, 8443, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaExternalMemoryHandleDesc = &__pyx_type_4cuda_6cudart_cudaExternalMemoryHandleDesc; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaExternalMemoryHandleDesc) < 0) __PYX_ERR(0, 8443, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaExternalMemoryHandleDesc->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaExternalMemoryHandleDesc->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaExternalMemoryHandleDesc->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaExternalMemoryHandleDesc->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaExternalMemoryHandleDesc, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaExternalMemoryHandleDesc) < 0) __PYX_ERR(0, 8443, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaExternalMemoryHandleDesc) < 0) __PYX_ERR(0, 8443, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaExternalMemoryBufferDesc = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaExternalMemoryBufferDesc_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaExternalMemoryBufferDesc)) __PYX_ERR(0, 8524, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaExternalMemoryBufferDesc_spec, __pyx_ptype_4cuda_6cudart_cudaExternalMemoryBufferDesc) < 0) __PYX_ERR(0, 8524, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaExternalMemoryBufferDesc = &__pyx_type_4cuda_6cudart_cudaExternalMemoryBufferDesc; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaExternalMemoryBufferDesc) < 0) __PYX_ERR(0, 8524, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaExternalMemoryBufferDesc->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaExternalMemoryBufferDesc->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaExternalMemoryBufferDesc->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaExternalMemoryBufferDesc->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaExternalMemoryBufferDesc, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaExternalMemoryBufferDesc) < 0) __PYX_ERR(0, 8524, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaExternalMemoryBufferDesc) < 0) __PYX_ERR(0, 8524, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc)) __PYX_ERR(0, 8591, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc_spec, __pyx_ptype_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc) < 0) __PYX_ERR(0, 8591, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc = &__pyx_type_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc) < 0) __PYX_ERR(0, 8591, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaExternalMemoryMipmappedArray, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc) < 0) __PYX_ERR(0, 8591, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc) < 0) __PYX_ERR(0, 8591, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_anon_struct6 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_anon_struct6_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_anon_struct6)) __PYX_ERR(0, 8685, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_anon_struct6_spec, __pyx_ptype_4cuda_6cudart_anon_struct6) < 0) __PYX_ERR(0, 8685, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_anon_struct6 = &__pyx_type_4cuda_6cudart_anon_struct6; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_anon_struct6) < 0) __PYX_ERR(0, 8685, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_anon_struct6->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_anon_struct6->tp_dictoffset && __pyx_ptype_4cuda_6cudart_anon_struct6->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_anon_struct6->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_anon_struct6, (PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct6) < 0) __PYX_ERR(0, 8685, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct6) < 0) __PYX_ERR(0, 8685, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_anon_union2 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_anon_union2_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_anon_union2)) __PYX_ERR(0, 8738, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_anon_union2_spec, __pyx_ptype_4cuda_6cudart_anon_union2) < 0) __PYX_ERR(0, 8738, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_anon_union2 = &__pyx_type_4cuda_6cudart_anon_union2; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_anon_union2) < 0) __PYX_ERR(0, 8738, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_anon_union2->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_anon_union2->tp_dictoffset && __pyx_ptype_4cuda_6cudart_anon_union2->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_anon_union2->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_anon_union2, (PyObject *) __pyx_ptype_4cuda_6cudart_anon_union2) < 0) __PYX_ERR(0, 8738, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_anon_union2) < 0) __PYX_ERR(0, 8738, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreHandleDesc = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaExternalSemaphoreHandleDesc_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreHandleDesc)) __PYX_ERR(0, 8802, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaExternalSemaphoreHandleDesc_spec, __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreHandleDesc) < 0) __PYX_ERR(0, 8802, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreHandleDesc = &__pyx_type_4cuda_6cudart_cudaExternalSemaphoreHandleDesc; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreHandleDesc) < 0) __PYX_ERR(0, 8802, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreHandleDesc->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreHandleDesc->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreHandleDesc->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreHandleDesc->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaExternalSemaphoreHandleDesc, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreHandleDesc) < 0) __PYX_ERR(0, 8802, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreHandleDesc) < 0) __PYX_ERR(0, 8802, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_anon_struct13 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_anon_struct13_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_anon_struct13)) __PYX_ERR(0, 8871, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_anon_struct13_spec, __pyx_ptype_4cuda_6cudart_anon_struct13) < 0) __PYX_ERR(0, 8871, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_anon_struct13 = &__pyx_type_4cuda_6cudart_anon_struct13; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_anon_struct13) < 0) __PYX_ERR(0, 8871, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_anon_struct13->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_anon_struct13->tp_dictoffset && __pyx_ptype_4cuda_6cudart_anon_struct13->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_anon_struct13->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_anon_struct13, (PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct13) < 0) __PYX_ERR(0, 8871, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct13) < 0) __PYX_ERR(0, 8871, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_anon_union5 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_anon_union5_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_anon_union5)) __PYX_ERR(0, 8910, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_anon_union5_spec, __pyx_ptype_4cuda_6cudart_anon_union5) < 0) __PYX_ERR(0, 8910, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_anon_union5 = &__pyx_type_4cuda_6cudart_anon_union5; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_anon_union5) < 0) __PYX_ERR(0, 8910, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_anon_union5->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_anon_union5->tp_dictoffset && __pyx_ptype_4cuda_6cudart_anon_union5->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_anon_union5->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_anon_union5, (PyObject *) __pyx_ptype_4cuda_6cudart_anon_union5) < 0) __PYX_ERR(0, 8910, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_anon_union5) < 0) __PYX_ERR(0, 8910, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_anon_struct14 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_anon_struct14_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_anon_struct14)) __PYX_ERR(0, 8962, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_anon_struct14_spec, __pyx_ptype_4cuda_6cudart_anon_struct14) < 0) __PYX_ERR(0, 8962, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_anon_struct14 = &__pyx_type_4cuda_6cudart_anon_struct14; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_anon_struct14) < 0) __PYX_ERR(0, 8962, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_anon_struct14->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_anon_struct14->tp_dictoffset && __pyx_ptype_4cuda_6cudart_anon_struct14->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_anon_struct14->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_anon_struct14, (PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct14) < 0) __PYX_ERR(0, 8962, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct14) < 0) __PYX_ERR(0, 8962, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_anon_struct15 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_anon_struct15_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_anon_struct15)) __PYX_ERR(0, 9001, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_anon_struct15_spec, __pyx_ptype_4cuda_6cudart_anon_struct15) < 0) __PYX_ERR(0, 9001, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_anon_struct15 = &__pyx_type_4cuda_6cudart_anon_struct15; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_anon_struct15) < 0) __PYX_ERR(0, 9001, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_anon_struct15->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_anon_struct15->tp_dictoffset && __pyx_ptype_4cuda_6cudart_anon_struct15->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_anon_struct15->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_anon_struct15, (PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct15) < 0) __PYX_ERR(0, 9001, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct15) < 0) __PYX_ERR(0, 9001, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalParams = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaExternalSemaphoreSignalParams_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalParams)) __PYX_ERR(0, 9078, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaExternalSemaphoreSignalParams_spec, __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalParams) < 0) __PYX_ERR(0, 9078, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalParams = &__pyx_type_4cuda_6cudart_cudaExternalSemaphoreSignalParams; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalParams) < 0) __PYX_ERR(0, 9078, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalParams->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalParams->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalParams->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalParams->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaExternalSemaphoreSignalParam, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalParams) < 0) __PYX_ERR(0, 9078, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalParams) < 0) __PYX_ERR(0, 9078, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_anon_struct16 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_anon_struct16_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_anon_struct16)) __PYX_ERR(0, 9152, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_anon_struct16_spec, __pyx_ptype_4cuda_6cudart_anon_struct16) < 0) __PYX_ERR(0, 9152, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_anon_struct16 = &__pyx_type_4cuda_6cudart_anon_struct16; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_anon_struct16) < 0) __PYX_ERR(0, 9152, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_anon_struct16->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_anon_struct16->tp_dictoffset && __pyx_ptype_4cuda_6cudart_anon_struct16->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_anon_struct16->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_anon_struct16, (PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct16) < 0) __PYX_ERR(0, 9152, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct16) < 0) __PYX_ERR(0, 9152, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_anon_union6 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_anon_union6_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_anon_union6)) __PYX_ERR(0, 9191, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_anon_union6_spec, __pyx_ptype_4cuda_6cudart_anon_union6) < 0) __PYX_ERR(0, 9191, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_anon_union6 = &__pyx_type_4cuda_6cudart_anon_union6; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_anon_union6) < 0) __PYX_ERR(0, 9191, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_anon_union6->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_anon_union6->tp_dictoffset && __pyx_ptype_4cuda_6cudart_anon_union6->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_anon_union6->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_anon_union6, (PyObject *) __pyx_ptype_4cuda_6cudart_anon_union6) < 0) __PYX_ERR(0, 9191, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_anon_union6) < 0) __PYX_ERR(0, 9191, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_anon_struct17 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_anon_struct17_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_anon_struct17)) __PYX_ERR(0, 9243, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_anon_struct17_spec, __pyx_ptype_4cuda_6cudart_anon_struct17) < 0) __PYX_ERR(0, 9243, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_anon_struct17 = &__pyx_type_4cuda_6cudart_anon_struct17; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_anon_struct17) < 0) __PYX_ERR(0, 9243, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_anon_struct17->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_anon_struct17->tp_dictoffset && __pyx_ptype_4cuda_6cudart_anon_struct17->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_anon_struct17->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_anon_struct17, (PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct17) < 0) __PYX_ERR(0, 9243, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct17) < 0) __PYX_ERR(0, 9243, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_anon_struct18 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_anon_struct18_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_anon_struct18)) __PYX_ERR(0, 9294, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_anon_struct18_spec, __pyx_ptype_4cuda_6cudart_anon_struct18) < 0) __PYX_ERR(0, 9294, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_anon_struct18 = &__pyx_type_4cuda_6cudart_anon_struct18; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_anon_struct18) < 0) __PYX_ERR(0, 9294, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_anon_struct18->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_anon_struct18->tp_dictoffset && __pyx_ptype_4cuda_6cudart_anon_struct18->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_anon_struct18->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_anon_struct18, (PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct18) < 0) __PYX_ERR(0, 9294, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct18) < 0) __PYX_ERR(0, 9294, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitParams = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaExternalSemaphoreWaitParams_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitParams)) __PYX_ERR(0, 9371, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaExternalSemaphoreWaitParams_spec, __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitParams) < 0) __PYX_ERR(0, 9371, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitParams = &__pyx_type_4cuda_6cudart_cudaExternalSemaphoreWaitParams; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitParams) < 0) __PYX_ERR(0, 9371, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitParams->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitParams->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitParams->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitParams->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaExternalSemaphoreWaitParams, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitParams) < 0) __PYX_ERR(0, 9371, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitParams) < 0) __PYX_ERR(0, 9371, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaKernelNodeParams = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaKernelNodeParams_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaKernelNodeParams)) __PYX_ERR(0, 9445, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaKernelNodeParams_spec, __pyx_ptype_4cuda_6cudart_cudaKernelNodeParams) < 0) __PYX_ERR(0, 9445, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaKernelNodeParams = &__pyx_type_4cuda_6cudart_cudaKernelNodeParams; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaKernelNodeParams) < 0) __PYX_ERR(0, 9445, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaKernelNodeParams->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaKernelNodeParams->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaKernelNodeParams->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaKernelNodeParams->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaKernelNodeParams, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaKernelNodeParams) < 0) __PYX_ERR(0, 9445, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaKernelNodeParams) < 0) __PYX_ERR(0, 9445, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaKernelNodeParamsV2 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaKernelNodeParamsV2_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaKernelNodeParamsV2)) __PYX_ERR(0, 9551, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaKernelNodeParamsV2_spec, __pyx_ptype_4cuda_6cudart_cudaKernelNodeParamsV2) < 0) __PYX_ERR(0, 9551, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaKernelNodeParamsV2 = &__pyx_type_4cuda_6cudart_cudaKernelNodeParamsV2; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaKernelNodeParamsV2) < 0) __PYX_ERR(0, 9551, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaKernelNodeParamsV2->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaKernelNodeParamsV2->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaKernelNodeParamsV2->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaKernelNodeParamsV2->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaKernelNodeParamsV2, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaKernelNodeParamsV2) < 0) __PYX_ERR(0, 9551, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaKernelNodeParamsV2) < 0) __PYX_ERR(0, 9551, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams)) __PYX_ERR(0, 9657, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams_spec, __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams) < 0) __PYX_ERR(0, 9657, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams = &__pyx_type_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams) < 0) __PYX_ERR(0, 9657, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaExternalSemaphoreSignalNodeP, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams) < 0) __PYX_ERR(0, 9657, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams) < 0) __PYX_ERR(0, 9657, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2)) __PYX_ERR(0, 9758, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2_spec, __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2) < 0) __PYX_ERR(0, 9758, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2 = &__pyx_type_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2) < 0) __PYX_ERR(0, 9758, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaExternalSemaphoreSignalNodeP_2, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2) < 0) __PYX_ERR(0, 9758, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2) < 0) __PYX_ERR(0, 9758, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams)) __PYX_ERR(0, 9859, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams_spec, __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams) < 0) __PYX_ERR(0, 9859, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams = &__pyx_type_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams) < 0) __PYX_ERR(0, 9859, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaExternalSemaphoreWaitNodePar, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams) < 0) __PYX_ERR(0, 9859, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams) < 0) __PYX_ERR(0, 9859, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2)) __PYX_ERR(0, 9960, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2_spec, __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2) < 0) __PYX_ERR(0, 9960, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2 = &__pyx_type_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2) < 0) __PYX_ERR(0, 9960, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaExternalSemaphoreWaitNodePar_2, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2) < 0) __PYX_ERR(0, 9960, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2) < 0) __PYX_ERR(0, 9960, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaConditionalNodeParams = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaConditionalNodeParams_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaConditionalNodeParams)) __PYX_ERR(0, 10061, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaConditionalNodeParams_spec, __pyx_ptype_4cuda_6cudart_cudaConditionalNodeParams) < 0) __PYX_ERR(0, 10061, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaConditionalNodeParams = &__pyx_type_4cuda_6cudart_cudaConditionalNodeParams; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaConditionalNodeParams) < 0) __PYX_ERR(0, 10061, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaConditionalNodeParams->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaConditionalNodeParams->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaConditionalNodeParams->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaConditionalNodeParams->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaConditionalNodeParams, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaConditionalNodeParams) < 0) __PYX_ERR(0, 10061, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaConditionalNodeParams) < 0) __PYX_ERR(0, 10061, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaChildGraphNodeParams = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaChildGraphNodeParams_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaChildGraphNodeParams)) __PYX_ERR(0, 10158, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaChildGraphNodeParams_spec, __pyx_ptype_4cuda_6cudart_cudaChildGraphNodeParams) < 0) __PYX_ERR(0, 10158, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaChildGraphNodeParams = &__pyx_type_4cuda_6cudart_cudaChildGraphNodeParams; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaChildGraphNodeParams) < 0) __PYX_ERR(0, 10158, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaChildGraphNodeParams->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaChildGraphNodeParams->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaChildGraphNodeParams->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaChildGraphNodeParams->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaChildGraphNodeParams, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaChildGraphNodeParams) < 0) __PYX_ERR(0, 10158, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaChildGraphNodeParams) < 0) __PYX_ERR(0, 10158, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaEventRecordNodeParams = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaEventRecordNodeParams_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaEventRecordNodeParams)) __PYX_ERR(0, 10211, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaEventRecordNodeParams_spec, __pyx_ptype_4cuda_6cudart_cudaEventRecordNodeParams) < 0) __PYX_ERR(0, 10211, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaEventRecordNodeParams = &__pyx_type_4cuda_6cudart_cudaEventRecordNodeParams; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaEventRecordNodeParams) < 0) __PYX_ERR(0, 10211, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaEventRecordNodeParams->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaEventRecordNodeParams->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaEventRecordNodeParams->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaEventRecordNodeParams->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaEventRecordNodeParams, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaEventRecordNodeParams) < 0) __PYX_ERR(0, 10211, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaEventRecordNodeParams) < 0) __PYX_ERR(0, 10211, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaEventWaitNodeParams = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaEventWaitNodeParams_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaEventWaitNodeParams)) __PYX_ERR(0, 10263, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaEventWaitNodeParams_spec, __pyx_ptype_4cuda_6cudart_cudaEventWaitNodeParams) < 0) __PYX_ERR(0, 10263, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaEventWaitNodeParams = &__pyx_type_4cuda_6cudart_cudaEventWaitNodeParams; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaEventWaitNodeParams) < 0) __PYX_ERR(0, 10263, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaEventWaitNodeParams->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaEventWaitNodeParams->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaEventWaitNodeParams->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaEventWaitNodeParams->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaEventWaitNodeParams, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaEventWaitNodeParams) < 0) __PYX_ERR(0, 10263, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaEventWaitNodeParams) < 0) __PYX_ERR(0, 10263, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaGraphNodeParams = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaGraphNodeParams_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaGraphNodeParams)) __PYX_ERR(0, 10315, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaGraphNodeParams_spec, __pyx_ptype_4cuda_6cudart_cudaGraphNodeParams) < 0) __PYX_ERR(0, 10315, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaGraphNodeParams = &__pyx_type_4cuda_6cudart_cudaGraphNodeParams; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaGraphNodeParams) < 0) __PYX_ERR(0, 10315, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaGraphNodeParams->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaGraphNodeParams->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaGraphNodeParams->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaGraphNodeParams->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaGraphNodeParams, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaGraphNodeParams) < 0) __PYX_ERR(0, 10315, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaGraphNodeParams) < 0) __PYX_ERR(0, 10315, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaGraphEdgeData_st = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaGraphEdgeData_st_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaGraphEdgeData_st)) __PYX_ERR(0, 10551, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaGraphEdgeData_st_spec, __pyx_ptype_4cuda_6cudart_cudaGraphEdgeData_st) < 0) __PYX_ERR(0, 10551, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaGraphEdgeData_st = &__pyx_type_4cuda_6cudart_cudaGraphEdgeData_st; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaGraphEdgeData_st) < 0) __PYX_ERR(0, 10551, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaGraphEdgeData_st->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaGraphEdgeData_st->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaGraphEdgeData_st->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaGraphEdgeData_st->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaGraphEdgeData_st, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaGraphEdgeData_st) < 0) __PYX_ERR(0, 10551, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaGraphEdgeData_st) < 0) __PYX_ERR(0, 10551, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaGraphInstantiateParams_st = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaGraphInstantiateParams_st_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaGraphInstantiateParams_st)) __PYX_ERR(0, 10652, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaGraphInstantiateParams_st_spec, __pyx_ptype_4cuda_6cudart_cudaGraphInstantiateParams_st) < 0) __PYX_ERR(0, 10652, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaGraphInstantiateParams_st = &__pyx_type_4cuda_6cudart_cudaGraphInstantiateParams_st; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaGraphInstantiateParams_st) < 0) __PYX_ERR(0, 10652, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaGraphInstantiateParams_st->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaGraphInstantiateParams_st->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaGraphInstantiateParams_st->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaGraphInstantiateParams_st->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaGraphInstantiateParams_st, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaGraphInstantiateParams_st) < 0) __PYX_ERR(0, 10652, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaGraphInstantiateParams_st) < 0) __PYX_ERR(0, 10652, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st)) __PYX_ERR(0, 10750, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st_spec, __pyx_ptype_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st) < 0) __PYX_ERR(0, 10750, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st = &__pyx_type_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st) < 0) __PYX_ERR(0, 10750, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaGraphExecUpdateResultInfo_st, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st) < 0) __PYX_ERR(0, 10750, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st) < 0) __PYX_ERR(0, 10750, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_anon_struct19 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_anon_struct19_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_anon_struct19)) __PYX_ERR(0, 10839, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_anon_struct19_spec, __pyx_ptype_4cuda_6cudart_anon_struct19) < 0) __PYX_ERR(0, 10839, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_anon_struct19 = &__pyx_type_4cuda_6cudart_anon_struct19; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_anon_struct19) < 0) __PYX_ERR(0, 10839, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_anon_struct19->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_anon_struct19->tp_dictoffset && __pyx_ptype_4cuda_6cudart_anon_struct19->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_anon_struct19->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_anon_struct19, (PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct19) < 0) __PYX_ERR(0, 10839, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct19) < 0) __PYX_ERR(0, 10839, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_anon_union8 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_anon_union8_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_anon_union8)) __PYX_ERR(0, 10903, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_anon_union8_spec, __pyx_ptype_4cuda_6cudart_anon_union8) < 0) __PYX_ERR(0, 10903, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_anon_union8 = &__pyx_type_4cuda_6cudart_anon_union8; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_anon_union8) < 0) __PYX_ERR(0, 10903, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_anon_union8->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_anon_union8->tp_dictoffset && __pyx_ptype_4cuda_6cudart_anon_union8->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_anon_union8->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_anon_union8, (PyObject *) __pyx_ptype_4cuda_6cudart_anon_union8) < 0) __PYX_ERR(0, 10903, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_anon_union8) < 0) __PYX_ERR(0, 10903, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaGraphKernelNodeUpdate = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaGraphKernelNodeUpdate_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaGraphKernelNodeUpdate)) __PYX_ERR(0, 10967, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaGraphKernelNodeUpdate_spec, __pyx_ptype_4cuda_6cudart_cudaGraphKernelNodeUpdate) < 0) __PYX_ERR(0, 10967, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaGraphKernelNodeUpdate = &__pyx_type_4cuda_6cudart_cudaGraphKernelNodeUpdate; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaGraphKernelNodeUpdate) < 0) __PYX_ERR(0, 10967, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaGraphKernelNodeUpdate->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaGraphKernelNodeUpdate->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaGraphKernelNodeUpdate->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaGraphKernelNodeUpdate->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaGraphKernelNodeUpdate, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaGraphKernelNodeUpdate) < 0) __PYX_ERR(0, 10967, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaGraphKernelNodeUpdate) < 0) __PYX_ERR(0, 10967, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st)) __PYX_ERR(0, 11048, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st_spec, __pyx_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st) < 0) __PYX_ERR(0, 11048, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st = &__pyx_type_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st) < 0) __PYX_ERR(0, 11048, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaLaunchMemSyncDomainMap_st, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st) < 0) __PYX_ERR(0, 11048, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st) < 0) __PYX_ERR(0, 11048, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_anon_struct20 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_anon_struct20_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_anon_struct20)) __PYX_ERR(0, 11109, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_anon_struct20_spec, __pyx_ptype_4cuda_6cudart_anon_struct20) < 0) __PYX_ERR(0, 11109, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_anon_struct20 = &__pyx_type_4cuda_6cudart_anon_struct20; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_anon_struct20) < 0) __PYX_ERR(0, 11109, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_anon_struct20->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_anon_struct20->tp_dictoffset && __pyx_ptype_4cuda_6cudart_anon_struct20->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_anon_struct20->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_anon_struct20, (PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct20) < 0) __PYX_ERR(0, 11109, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct20) < 0) __PYX_ERR(0, 11109, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_anon_struct21 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_anon_struct21_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_anon_struct21)) __PYX_ERR(0, 11172, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_anon_struct21_spec, __pyx_ptype_4cuda_6cudart_anon_struct21) < 0) __PYX_ERR(0, 11172, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_anon_struct21 = &__pyx_type_4cuda_6cudart_anon_struct21; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_anon_struct21) < 0) __PYX_ERR(0, 11172, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_anon_struct21->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_anon_struct21->tp_dictoffset && __pyx_ptype_4cuda_6cudart_anon_struct21->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_anon_struct21->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_anon_struct21, (PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct21) < 0) __PYX_ERR(0, 11172, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct21) < 0) __PYX_ERR(0, 11172, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_anon_struct22 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_anon_struct22_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_anon_struct22)) __PYX_ERR(0, 11244, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_anon_struct22_spec, __pyx_ptype_4cuda_6cudart_anon_struct22) < 0) __PYX_ERR(0, 11244, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_anon_struct22 = &__pyx_type_4cuda_6cudart_anon_struct22; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_anon_struct22) < 0) __PYX_ERR(0, 11244, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_anon_struct22->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_anon_struct22->tp_dictoffset && __pyx_ptype_4cuda_6cudart_anon_struct22->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_anon_struct22->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_anon_struct22, (PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct22) < 0) __PYX_ERR(0, 11244, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct22) < 0) __PYX_ERR(0, 11244, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_anon_struct23 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_anon_struct23_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_anon_struct23)) __PYX_ERR(0, 11304, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_anon_struct23_spec, __pyx_ptype_4cuda_6cudart_anon_struct23) < 0) __PYX_ERR(0, 11304, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_anon_struct23 = &__pyx_type_4cuda_6cudart_anon_struct23; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_anon_struct23) < 0) __PYX_ERR(0, 11304, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_anon_struct23->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_anon_struct23->tp_dictoffset && __pyx_ptype_4cuda_6cudart_anon_struct23->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_anon_struct23->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_anon_struct23, (PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct23) < 0) __PYX_ERR(0, 11304, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct23) < 0) __PYX_ERR(0, 11304, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaLaunchAttributeValue = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaLaunchAttributeValue_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaLaunchAttributeValue)) __PYX_ERR(0, 11364, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaLaunchAttributeValue_spec, __pyx_ptype_4cuda_6cudart_cudaLaunchAttributeValue) < 0) __PYX_ERR(0, 11364, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaLaunchAttributeValue = &__pyx_type_4cuda_6cudart_cudaLaunchAttributeValue; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaLaunchAttributeValue) < 0) __PYX_ERR(0, 11364, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaLaunchAttributeValue->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaLaunchAttributeValue->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaLaunchAttributeValue->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaLaunchAttributeValue->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaLaunchAttributeValue, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaLaunchAttributeValue) < 0) __PYX_ERR(0, 11364, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaLaunchAttributeValue) < 0) __PYX_ERR(0, 11364, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaLaunchAttribute_st = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaLaunchAttribute_st_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaLaunchAttribute_st)) __PYX_ERR(0, 11609, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaLaunchAttribute_st_spec, __pyx_ptype_4cuda_6cudart_cudaLaunchAttribute_st) < 0) __PYX_ERR(0, 11609, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaLaunchAttribute_st = &__pyx_type_4cuda_6cudart_cudaLaunchAttribute_st; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaLaunchAttribute_st) < 0) __PYX_ERR(0, 11609, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaLaunchAttribute_st->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaLaunchAttribute_st->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaLaunchAttribute_st->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaLaunchAttribute_st->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaLaunchAttribute_st, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaLaunchAttribute_st) < 0) __PYX_ERR(0, 11609, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaLaunchAttribute_st) < 0) __PYX_ERR(0, 11609, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_anon_struct24 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_anon_struct24_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_anon_struct24)) __PYX_ERR(0, 11664, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_anon_struct24_spec, __pyx_ptype_4cuda_6cudart_anon_struct24) < 0) __PYX_ERR(0, 11664, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_anon_struct24 = &__pyx_type_4cuda_6cudart_anon_struct24; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_anon_struct24) < 0) __PYX_ERR(0, 11664, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_anon_struct24->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_anon_struct24->tp_dictoffset && __pyx_ptype_4cuda_6cudart_anon_struct24->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_anon_struct24->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_anon_struct24, (PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct24) < 0) __PYX_ERR(0, 11664, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_anon_struct24) < 0) __PYX_ERR(0, 11664, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_anon_union9 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_anon_union9_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_anon_union9)) __PYX_ERR(0, 11703, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_anon_union9_spec, __pyx_ptype_4cuda_6cudart_anon_union9) < 0) __PYX_ERR(0, 11703, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_anon_union9 = &__pyx_type_4cuda_6cudart_anon_union9; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_anon_union9) < 0) __PYX_ERR(0, 11703, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_anon_union9->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_anon_union9->tp_dictoffset && __pyx_ptype_4cuda_6cudart_anon_union9->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_anon_union9->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_anon_union9, (PyObject *) __pyx_ptype_4cuda_6cudart_anon_union9) < 0) __PYX_ERR(0, 11703, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_anon_union9) < 0) __PYX_ERR(0, 11703, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaAsyncNotificationInfo = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaAsyncNotificationInfo_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaAsyncNotificationInfo)) __PYX_ERR(0, 11742, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaAsyncNotificationInfo_spec, __pyx_ptype_4cuda_6cudart_cudaAsyncNotificationInfo) < 0) __PYX_ERR(0, 11742, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaAsyncNotificationInfo = &__pyx_type_4cuda_6cudart_cudaAsyncNotificationInfo; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaAsyncNotificationInfo) < 0) __PYX_ERR(0, 11742, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaAsyncNotificationInfo->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaAsyncNotificationInfo->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaAsyncNotificationInfo->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaAsyncNotificationInfo->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaAsyncNotificationInfo, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaAsyncNotificationInfo) < 0) __PYX_ERR(0, 11742, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaAsyncNotificationInfo) < 0) __PYX_ERR(0, 11742, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaTextureDesc = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaTextureDesc_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaTextureDesc)) __PYX_ERR(0, 11799, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaTextureDesc_spec, __pyx_ptype_4cuda_6cudart_cudaTextureDesc) < 0) __PYX_ERR(0, 11799, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaTextureDesc = &__pyx_type_4cuda_6cudart_cudaTextureDesc; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaTextureDesc) < 0) __PYX_ERR(0, 11799, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaTextureDesc->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaTextureDesc->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaTextureDesc->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaTextureDesc->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaTextureDesc, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaTextureDesc) < 0) __PYX_ERR(0, 11799, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaTextureDesc) < 0) __PYX_ERR(0, 11799, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaEglPlaneDesc_st = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaEglPlaneDesc_st_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaEglPlaneDesc_st)) __PYX_ERR(0, 11986, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaEglPlaneDesc_st_spec, __pyx_ptype_4cuda_6cudart_cudaEglPlaneDesc_st) < 0) __PYX_ERR(0, 11986, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaEglPlaneDesc_st = &__pyx_type_4cuda_6cudart_cudaEglPlaneDesc_st; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaEglPlaneDesc_st) < 0) __PYX_ERR(0, 11986, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaEglPlaneDesc_st->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaEglPlaneDesc_st->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaEglPlaneDesc_st->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaEglPlaneDesc_st->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaEglPlaneDesc_st, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaEglPlaneDesc_st) < 0) __PYX_ERR(0, 11986, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaEglPlaneDesc_st) < 0) __PYX_ERR(0, 11986, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_anon_union10 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_anon_union10_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_anon_union10)) __PYX_ERR(0, 12102, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_anon_union10_spec, __pyx_ptype_4cuda_6cudart_anon_union10) < 0) __PYX_ERR(0, 12102, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_anon_union10 = &__pyx_type_4cuda_6cudart_anon_union10; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_anon_union10) < 0) __PYX_ERR(0, 12102, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_anon_union10->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_anon_union10->tp_dictoffset && __pyx_ptype_4cuda_6cudart_anon_union10->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_anon_union10->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_anon_union10, (PyObject *) __pyx_ptype_4cuda_6cudart_anon_union10) < 0) __PYX_ERR(0, 12102, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_anon_union10) < 0) __PYX_ERR(0, 12102, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaEglFrame_st = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaEglFrame_st_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaEglFrame_st)) __PYX_ERR(0, 12164, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaEglFrame_st_spec, __pyx_ptype_4cuda_6cudart_cudaEglFrame_st) < 0) __PYX_ERR(0, 12164, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaEglFrame_st = &__pyx_type_4cuda_6cudart_cudaEglFrame_st; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaEglFrame_st) < 0) __PYX_ERR(0, 12164, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaEglFrame_st->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaEglFrame_st->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaEglFrame_st->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaEglFrame_st->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaEglFrame_st, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaEglFrame_st) < 0) __PYX_ERR(0, 12164, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaEglFrame_st) < 0) __PYX_ERR(0, 12164, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_4cuda_6cudart_CUuuid_st); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2651, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_4cuda_6cudart_CUuuid = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_CUuuid_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_4cuda_6cudart_CUuuid)) __PYX_ERR(2, 2651, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_CUuuid_spec, __pyx_ptype_4cuda_6cudart_CUuuid) < 0) __PYX_ERR(2, 2651, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_CUuuid = &__pyx_type_4cuda_6cudart_CUuuid; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_4cuda_6cudart_CUuuid->tp_base = __pyx_ptype_4cuda_6cudart_CUuuid_st; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_CUuuid) < 0) __PYX_ERR(2, 2651, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_CUuuid->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_CUuuid->tp_dictoffset && __pyx_ptype_4cuda_6cudart_CUuuid->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_CUuuid->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_CUuuid, (PyObject *) __pyx_ptype_4cuda_6cudart_CUuuid) < 0) __PYX_ERR(2, 2651, __pyx_L1_error) #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_4cuda_6cudart_CUuuid_st); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2666, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_4cuda_6cudart_cudaUUID_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaUUID_t_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaUUID_t)) __PYX_ERR(2, 2666, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaUUID_t_spec, __pyx_ptype_4cuda_6cudart_cudaUUID_t) < 0) __PYX_ERR(2, 2666, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaUUID_t = &__pyx_type_4cuda_6cudart_cudaUUID_t; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_4cuda_6cudart_cudaUUID_t->tp_base = __pyx_ptype_4cuda_6cudart_CUuuid_st; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaUUID_t) < 0) __PYX_ERR(2, 2666, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaUUID_t->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaUUID_t->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaUUID_t->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaUUID_t->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaUUID_t, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaUUID_t) < 0) __PYX_ERR(2, 2666, __pyx_L1_error) #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_4cuda_6cudart_cudaIpcEventHandle_st); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2681, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_4cuda_6cudart_cudaIpcEventHandle_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaIpcEventHandle_t_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaIpcEventHandle_t)) __PYX_ERR(2, 2681, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaIpcEventHandle_t_spec, __pyx_ptype_4cuda_6cudart_cudaIpcEventHandle_t) < 0) __PYX_ERR(2, 2681, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaIpcEventHandle_t = &__pyx_type_4cuda_6cudart_cudaIpcEventHandle_t; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_4cuda_6cudart_cudaIpcEventHandle_t->tp_base = __pyx_ptype_4cuda_6cudart_cudaIpcEventHandle_st; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaIpcEventHandle_t) < 0) __PYX_ERR(2, 2681, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaIpcEventHandle_t->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaIpcEventHandle_t->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaIpcEventHandle_t->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaIpcEventHandle_t->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaIpcEventHandle_t, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaIpcEventHandle_t) < 0) __PYX_ERR(2, 2681, __pyx_L1_error) #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_4cuda_6cudart_cudaIpcMemHandle_st); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2698, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_4cuda_6cudart_cudaIpcMemHandle_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaIpcMemHandle_t_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaIpcMemHandle_t)) __PYX_ERR(2, 2698, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaIpcMemHandle_t_spec, __pyx_ptype_4cuda_6cudart_cudaIpcMemHandle_t) < 0) __PYX_ERR(2, 2698, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaIpcMemHandle_t = &__pyx_type_4cuda_6cudart_cudaIpcMemHandle_t; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_4cuda_6cudart_cudaIpcMemHandle_t->tp_base = __pyx_ptype_4cuda_6cudart_cudaIpcMemHandle_st; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaIpcMemHandle_t) < 0) __PYX_ERR(2, 2698, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaIpcMemHandle_t->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaIpcMemHandle_t->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaIpcMemHandle_t->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaIpcMemHandle_t->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaIpcMemHandle_t, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaIpcMemHandle_t) < 0) __PYX_ERR(2, 2698, __pyx_L1_error) #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemFabricHandle_st); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2715, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_4cuda_6cudart_cudaMemFabricHandle_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaMemFabricHandle_t_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaMemFabricHandle_t)) __PYX_ERR(2, 2715, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaMemFabricHandle_t_spec, __pyx_ptype_4cuda_6cudart_cudaMemFabricHandle_t) < 0) __PYX_ERR(2, 2715, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaMemFabricHandle_t = &__pyx_type_4cuda_6cudart_cudaMemFabricHandle_t; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_4cuda_6cudart_cudaMemFabricHandle_t->tp_base = __pyx_ptype_4cuda_6cudart_cudaMemFabricHandle_st; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaMemFabricHandle_t) < 0) __PYX_ERR(2, 2715, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaMemFabricHandle_t->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaMemFabricHandle_t->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaMemFabricHandle_t->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaMemFabricHandle_t->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaMemFabricHandle_t, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaMemFabricHandle_t) < 0) __PYX_ERR(2, 2715, __pyx_L1_error) #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphEdgeData_st); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2730, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_4cuda_6cudart_cudaGraphEdgeData = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaGraphEdgeData_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaGraphEdgeData)) __PYX_ERR(2, 2730, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaGraphEdgeData_spec, __pyx_ptype_4cuda_6cudart_cudaGraphEdgeData) < 0) __PYX_ERR(2, 2730, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaGraphEdgeData = &__pyx_type_4cuda_6cudart_cudaGraphEdgeData; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_4cuda_6cudart_cudaGraphEdgeData->tp_base = __pyx_ptype_4cuda_6cudart_cudaGraphEdgeData_st; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaGraphEdgeData) < 0) __PYX_ERR(2, 2730, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaGraphEdgeData->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaGraphEdgeData->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaGraphEdgeData->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaGraphEdgeData->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaGraphEdgeData, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaGraphEdgeData) < 0) __PYX_ERR(2, 2730, __pyx_L1_error) #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphInstantiateParams_st); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2772, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_4cuda_6cudart_cudaGraphInstantiateParams = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaGraphInstantiateParams_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaGraphInstantiateParams)) __PYX_ERR(2, 2772, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaGraphInstantiateParams_spec, __pyx_ptype_4cuda_6cudart_cudaGraphInstantiateParams) < 0) __PYX_ERR(2, 2772, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaGraphInstantiateParams = &__pyx_type_4cuda_6cudart_cudaGraphInstantiateParams; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_4cuda_6cudart_cudaGraphInstantiateParams->tp_base = __pyx_ptype_4cuda_6cudart_cudaGraphInstantiateParams_st; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaGraphInstantiateParams) < 0) __PYX_ERR(2, 2772, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaGraphInstantiateParams->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaGraphInstantiateParams->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaGraphInstantiateParams->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaGraphInstantiateParams->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaGraphInstantiateParams, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaGraphInstantiateParams) < 0) __PYX_ERR(2, 2772, __pyx_L1_error) #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2795, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_4cuda_6cudart_cudaGraphExecUpdateResultInfo = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaGraphExecUpdateResultInfo_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaGraphExecUpdateResultInfo)) __PYX_ERR(2, 2795, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaGraphExecUpdateResultInfo_spec, __pyx_ptype_4cuda_6cudart_cudaGraphExecUpdateResultInfo) < 0) __PYX_ERR(2, 2795, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaGraphExecUpdateResultInfo = &__pyx_type_4cuda_6cudart_cudaGraphExecUpdateResultInfo; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_4cuda_6cudart_cudaGraphExecUpdateResultInfo->tp_base = __pyx_ptype_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaGraphExecUpdateResultInfo) < 0) __PYX_ERR(2, 2795, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaGraphExecUpdateResultInfo->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaGraphExecUpdateResultInfo->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaGraphExecUpdateResultInfo->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaGraphExecUpdateResultInfo->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaGraphExecUpdateResultInfo, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaGraphExecUpdateResultInfo) < 0) __PYX_ERR(2, 2795, __pyx_L1_error) #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2819, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaLaunchMemSyncDomainMap_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap)) __PYX_ERR(2, 2819, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaLaunchMemSyncDomainMap_spec, __pyx_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap) < 0) __PYX_ERR(2, 2819, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap = &__pyx_type_4cuda_6cudart_cudaLaunchMemSyncDomainMap; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap->tp_base = __pyx_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap) < 0) __PYX_ERR(2, 2819, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaLaunchMemSyncDomainMap, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap) < 0) __PYX_ERR(2, 2819, __pyx_L1_error) #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_4cuda_6cudart_cudaLaunchAttribute_st); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2844, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_4cuda_6cudart_cudaLaunchAttribute = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaLaunchAttribute_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaLaunchAttribute)) __PYX_ERR(2, 2844, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaLaunchAttribute_spec, __pyx_ptype_4cuda_6cudart_cudaLaunchAttribute) < 0) __PYX_ERR(2, 2844, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaLaunchAttribute = &__pyx_type_4cuda_6cudart_cudaLaunchAttribute; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_4cuda_6cudart_cudaLaunchAttribute->tp_base = __pyx_ptype_4cuda_6cudart_cudaLaunchAttribute_st; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaLaunchAttribute) < 0) __PYX_ERR(2, 2844, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaLaunchAttribute->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaLaunchAttribute->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaLaunchAttribute->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaLaunchAttribute->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaLaunchAttribute, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaLaunchAttribute) < 0) __PYX_ERR(2, 2844, __pyx_L1_error) #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_4cuda_6cudart_cudaAsyncNotificationInfo); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_4cuda_6cudart_cudaAsyncNotificationInfo_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaAsyncNotificationInfo_t_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaAsyncNotificationInfo_t)) __PYX_ERR(2, 2863, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaAsyncNotificationInfo_t_spec, __pyx_ptype_4cuda_6cudart_cudaAsyncNotificationInfo_t) < 0) __PYX_ERR(2, 2863, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaAsyncNotificationInfo_t = &__pyx_type_4cuda_6cudart_cudaAsyncNotificationInfo_t; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_4cuda_6cudart_cudaAsyncNotificationInfo_t->tp_base = __pyx_ptype_4cuda_6cudart_cudaAsyncNotificationInfo; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaAsyncNotificationInfo_t) < 0) __PYX_ERR(2, 2863, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaAsyncNotificationInfo_t->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaAsyncNotificationInfo_t->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaAsyncNotificationInfo_t->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaAsyncNotificationInfo_t->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaAsyncNotificationInfo_t, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaAsyncNotificationInfo_t) < 0) __PYX_ERR(2, 2863, __pyx_L1_error) #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_4cuda_6cudart_cudaLaunchAttributeValue); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2882, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_4cuda_6cudart_cudaStreamAttrValue = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaStreamAttrValue_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaStreamAttrValue)) __PYX_ERR(2, 2882, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaStreamAttrValue_spec, __pyx_ptype_4cuda_6cudart_cudaStreamAttrValue) < 0) __PYX_ERR(2, 2882, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaStreamAttrValue = &__pyx_type_4cuda_6cudart_cudaStreamAttrValue; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_4cuda_6cudart_cudaStreamAttrValue->tp_base = __pyx_ptype_4cuda_6cudart_cudaLaunchAttributeValue; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaStreamAttrValue) < 0) __PYX_ERR(2, 2882, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaStreamAttrValue->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaStreamAttrValue->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaStreamAttrValue->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaStreamAttrValue->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaStreamAttrValue, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaStreamAttrValue) < 0) __PYX_ERR(2, 2882, __pyx_L1_error) #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_4cuda_6cudart_cudaLaunchAttributeValue); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 2955, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_4cuda_6cudart_cudaKernelNodeAttrValue = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaKernelNodeAttrValue_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaKernelNodeAttrValue)) __PYX_ERR(2, 2955, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaKernelNodeAttrValue_spec, __pyx_ptype_4cuda_6cudart_cudaKernelNodeAttrValue) < 0) __PYX_ERR(2, 2955, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaKernelNodeAttrValue = &__pyx_type_4cuda_6cudart_cudaKernelNodeAttrValue; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_4cuda_6cudart_cudaKernelNodeAttrValue->tp_base = __pyx_ptype_4cuda_6cudart_cudaLaunchAttributeValue; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaKernelNodeAttrValue) < 0) __PYX_ERR(2, 2955, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaKernelNodeAttrValue->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaKernelNodeAttrValue->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaKernelNodeAttrValue->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaKernelNodeAttrValue->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaKernelNodeAttrValue, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaKernelNodeAttrValue) < 0) __PYX_ERR(2, 2955, __pyx_L1_error) #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_4cuda_6cudart_cudaEglPlaneDesc_st); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 3028, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_4cuda_6cudart_cudaEglPlaneDesc = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaEglPlaneDesc_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaEglPlaneDesc)) __PYX_ERR(2, 3028, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaEglPlaneDesc_spec, __pyx_ptype_4cuda_6cudart_cudaEglPlaneDesc) < 0) __PYX_ERR(2, 3028, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaEglPlaneDesc = &__pyx_type_4cuda_6cudart_cudaEglPlaneDesc; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_4cuda_6cudart_cudaEglPlaneDesc->tp_base = __pyx_ptype_4cuda_6cudart_cudaEglPlaneDesc_st; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaEglPlaneDesc) < 0) __PYX_ERR(2, 3028, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaEglPlaneDesc->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaEglPlaneDesc->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaEglPlaneDesc->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaEglPlaneDesc->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaEglPlaneDesc, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaEglPlaneDesc) < 0) __PYX_ERR(2, 3028, __pyx_L1_error) #if CYTHON_USE_TYPE_SPECS __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_4cuda_6cudart_cudaEglFrame_st); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 3058, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_4cuda_6cudart_cudaEglFrame = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaEglFrame_spec, __pyx_t_1); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaEglFrame)) __PYX_ERR(2, 3058, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaEglFrame_spec, __pyx_ptype_4cuda_6cudart_cudaEglFrame) < 0) __PYX_ERR(2, 3058, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaEglFrame = &__pyx_type_4cuda_6cudart_cudaEglFrame; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_4cuda_6cudart_cudaEglFrame->tp_base = __pyx_ptype_4cuda_6cudart_cudaEglFrame_st; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaEglFrame) < 0) __PYX_ERR(2, 3058, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaEglFrame->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaEglFrame->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaEglFrame->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaEglFrame->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaEglFrame, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaEglFrame) < 0) __PYX_ERR(2, 3058, __pyx_L1_error) __pyx_t_1 = PyImport_ImportModule("cuda.cuda"); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_4cuda_4cuda_CUstream = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUstream", sizeof(struct __pyx_obj_4cuda_4cuda_CUstream), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUstream),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUstream) __PYX_ERR(0, 1, __pyx_L1_error) #if CYTHON_USE_TYPE_SPECS __pyx_t_2 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_4cuda_4cuda_CUstream); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3090, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_ptype_4cuda_6cudart_cudaStream_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaStream_t_spec, __pyx_t_2); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaStream_t)) __PYX_ERR(2, 3090, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaStream_t_spec, __pyx_ptype_4cuda_6cudart_cudaStream_t) < 0) __PYX_ERR(2, 3090, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaStream_t = &__pyx_type_4cuda_6cudart_cudaStream_t; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_4cuda_6cudart_cudaStream_t->tp_dealloc = __pyx_ptype_4cuda_4cuda_CUstream->tp_dealloc; __pyx_ptype_4cuda_6cudart_cudaStream_t->tp_base = __pyx_ptype_4cuda_4cuda_CUstream; __pyx_ptype_4cuda_6cudart_cudaStream_t->tp_new = __pyx_ptype_4cuda_4cuda_CUstream->tp_new; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaStream_t) < 0) __PYX_ERR(2, 3090, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaStream_t->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaStream_t->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaStream_t->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaStream_t->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaStream_t, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaStream_t) < 0) __PYX_ERR(2, 3090, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUevent = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUevent", sizeof(struct __pyx_obj_4cuda_4cuda_CUevent), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUevent),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUevent) __PYX_ERR(0, 1, __pyx_L1_error) #if CYTHON_USE_TYPE_SPECS __pyx_t_2 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_4cuda_4cuda_CUevent); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3103, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_ptype_4cuda_6cudart_cudaEvent_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaEvent_t_spec, __pyx_t_2); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaEvent_t)) __PYX_ERR(2, 3103, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaEvent_t_spec, __pyx_ptype_4cuda_6cudart_cudaEvent_t) < 0) __PYX_ERR(2, 3103, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaEvent_t = &__pyx_type_4cuda_6cudart_cudaEvent_t; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_4cuda_6cudart_cudaEvent_t->tp_dealloc = __pyx_ptype_4cuda_4cuda_CUevent->tp_dealloc; __pyx_ptype_4cuda_6cudart_cudaEvent_t->tp_base = __pyx_ptype_4cuda_4cuda_CUevent; __pyx_ptype_4cuda_6cudart_cudaEvent_t->tp_new = __pyx_ptype_4cuda_4cuda_CUevent->tp_new; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaEvent_t) < 0) __PYX_ERR(2, 3103, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaEvent_t->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaEvent_t->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaEvent_t->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaEvent_t->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaEvent_t, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaEvent_t) < 0) __PYX_ERR(2, 3103, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUgraph = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUgraph", sizeof(struct __pyx_obj_4cuda_4cuda_CUgraph), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUgraph),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUgraph) __PYX_ERR(0, 1, __pyx_L1_error) #if CYTHON_USE_TYPE_SPECS __pyx_t_2 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_4cuda_4cuda_CUgraph); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3116, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_ptype_4cuda_6cudart_cudaGraph_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaGraph_t_spec, __pyx_t_2); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaGraph_t)) __PYX_ERR(2, 3116, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaGraph_t_spec, __pyx_ptype_4cuda_6cudart_cudaGraph_t) < 0) __PYX_ERR(2, 3116, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaGraph_t = &__pyx_type_4cuda_6cudart_cudaGraph_t; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_4cuda_6cudart_cudaGraph_t->tp_dealloc = __pyx_ptype_4cuda_4cuda_CUgraph->tp_dealloc; __pyx_ptype_4cuda_6cudart_cudaGraph_t->tp_base = __pyx_ptype_4cuda_4cuda_CUgraph; __pyx_ptype_4cuda_6cudart_cudaGraph_t->tp_new = __pyx_ptype_4cuda_4cuda_CUgraph->tp_new; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaGraph_t) < 0) __PYX_ERR(2, 3116, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaGraph_t->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaGraph_t->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaGraph_t->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaGraph_t->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaGraph_t, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaGraph_t) < 0) __PYX_ERR(2, 3116, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUgraphNode = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUgraphNode", sizeof(struct __pyx_obj_4cuda_4cuda_CUgraphNode), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUgraphNode),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUgraphNode) __PYX_ERR(0, 1, __pyx_L1_error) #if CYTHON_USE_TYPE_SPECS __pyx_t_2 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_4cuda_4cuda_CUgraphNode); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_ptype_4cuda_6cudart_cudaGraphNode_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaGraphNode_t_spec, __pyx_t_2); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaGraphNode_t)) __PYX_ERR(2, 3129, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaGraphNode_t_spec, __pyx_ptype_4cuda_6cudart_cudaGraphNode_t) < 0) __PYX_ERR(2, 3129, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaGraphNode_t = &__pyx_type_4cuda_6cudart_cudaGraphNode_t; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_4cuda_6cudart_cudaGraphNode_t->tp_dealloc = __pyx_ptype_4cuda_4cuda_CUgraphNode->tp_dealloc; __pyx_ptype_4cuda_6cudart_cudaGraphNode_t->tp_base = __pyx_ptype_4cuda_4cuda_CUgraphNode; __pyx_ptype_4cuda_6cudart_cudaGraphNode_t->tp_new = __pyx_ptype_4cuda_4cuda_CUgraphNode->tp_new; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaGraphNode_t) < 0) __PYX_ERR(2, 3129, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaGraphNode_t->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaGraphNode_t->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaGraphNode_t->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaGraphNode_t->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaGraphNode_t, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaGraphNode_t) < 0) __PYX_ERR(2, 3129, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUuserObject = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUuserObject", sizeof(struct __pyx_obj_4cuda_4cuda_CUuserObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUuserObject),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUuserObject) __PYX_ERR(0, 1, __pyx_L1_error) #if CYTHON_USE_TYPE_SPECS __pyx_t_2 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_4cuda_4cuda_CUuserObject); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_ptype_4cuda_6cudart_cudaUserObject_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaUserObject_t_spec, __pyx_t_2); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaUserObject_t)) __PYX_ERR(2, 3142, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaUserObject_t_spec, __pyx_ptype_4cuda_6cudart_cudaUserObject_t) < 0) __PYX_ERR(2, 3142, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaUserObject_t = &__pyx_type_4cuda_6cudart_cudaUserObject_t; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_4cuda_6cudart_cudaUserObject_t->tp_dealloc = __pyx_ptype_4cuda_4cuda_CUuserObject->tp_dealloc; __pyx_ptype_4cuda_6cudart_cudaUserObject_t->tp_base = __pyx_ptype_4cuda_4cuda_CUuserObject; __pyx_ptype_4cuda_6cudart_cudaUserObject_t->tp_new = __pyx_ptype_4cuda_4cuda_CUuserObject->tp_new; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaUserObject_t) < 0) __PYX_ERR(2, 3142, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaUserObject_t->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaUserObject_t->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaUserObject_t->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaUserObject_t->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaUserObject_t, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaUserObject_t) < 0) __PYX_ERR(2, 3142, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUfunction = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUfunction", sizeof(struct __pyx_obj_4cuda_4cuda_CUfunction), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUfunction),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUfunction) __PYX_ERR(0, 1, __pyx_L1_error) #if CYTHON_USE_TYPE_SPECS __pyx_t_2 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_4cuda_4cuda_CUfunction); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_ptype_4cuda_6cudart_cudaFunction_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaFunction_t_spec, __pyx_t_2); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaFunction_t)) __PYX_ERR(2, 3155, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaFunction_t_spec, __pyx_ptype_4cuda_6cudart_cudaFunction_t) < 0) __PYX_ERR(2, 3155, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaFunction_t = &__pyx_type_4cuda_6cudart_cudaFunction_t; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_4cuda_6cudart_cudaFunction_t->tp_dealloc = __pyx_ptype_4cuda_4cuda_CUfunction->tp_dealloc; __pyx_ptype_4cuda_6cudart_cudaFunction_t->tp_base = __pyx_ptype_4cuda_4cuda_CUfunction; __pyx_ptype_4cuda_6cudart_cudaFunction_t->tp_new = __pyx_ptype_4cuda_4cuda_CUfunction->tp_new; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaFunction_t) < 0) __PYX_ERR(2, 3155, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaFunction_t->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaFunction_t->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaFunction_t->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaFunction_t->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaFunction_t, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaFunction_t) < 0) __PYX_ERR(2, 3155, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUmemoryPool = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUmemoryPool", sizeof(struct __pyx_obj_4cuda_4cuda_CUmemoryPool), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUmemoryPool),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUmemoryPool) __PYX_ERR(0, 1, __pyx_L1_error) #if CYTHON_USE_TYPE_SPECS __pyx_t_2 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_4cuda_4cuda_CUmemoryPool); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3168, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_ptype_4cuda_6cudart_cudaMemPool_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaMemPool_t_spec, __pyx_t_2); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaMemPool_t)) __PYX_ERR(2, 3168, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaMemPool_t_spec, __pyx_ptype_4cuda_6cudart_cudaMemPool_t) < 0) __PYX_ERR(2, 3168, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaMemPool_t = &__pyx_type_4cuda_6cudart_cudaMemPool_t; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_4cuda_6cudart_cudaMemPool_t->tp_dealloc = __pyx_ptype_4cuda_4cuda_CUmemoryPool->tp_dealloc; __pyx_ptype_4cuda_6cudart_cudaMemPool_t->tp_base = __pyx_ptype_4cuda_4cuda_CUmemoryPool; __pyx_ptype_4cuda_6cudart_cudaMemPool_t->tp_new = __pyx_ptype_4cuda_4cuda_CUmemoryPool->tp_new; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaMemPool_t) < 0) __PYX_ERR(2, 3168, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaMemPool_t->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaMemPool_t->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaMemPool_t->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaMemPool_t->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaMemPool_t, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaMemPool_t) < 0) __PYX_ERR(2, 3168, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUgraphExec = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUgraphExec", sizeof(struct __pyx_obj_4cuda_4cuda_CUgraphExec), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUgraphExec),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUgraphExec) __PYX_ERR(0, 1, __pyx_L1_error) #if CYTHON_USE_TYPE_SPECS __pyx_t_2 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_4cuda_4cuda_CUgraphExec); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3181, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_ptype_4cuda_6cudart_cudaGraphExec_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaGraphExec_t_spec, __pyx_t_2); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaGraphExec_t)) __PYX_ERR(2, 3181, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaGraphExec_t_spec, __pyx_ptype_4cuda_6cudart_cudaGraphExec_t) < 0) __PYX_ERR(2, 3181, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaGraphExec_t = &__pyx_type_4cuda_6cudart_cudaGraphExec_t; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_4cuda_6cudart_cudaGraphExec_t->tp_dealloc = __pyx_ptype_4cuda_4cuda_CUgraphExec->tp_dealloc; __pyx_ptype_4cuda_6cudart_cudaGraphExec_t->tp_base = __pyx_ptype_4cuda_4cuda_CUgraphExec; __pyx_ptype_4cuda_6cudart_cudaGraphExec_t->tp_new = __pyx_ptype_4cuda_4cuda_CUgraphExec->tp_new; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaGraphExec_t) < 0) __PYX_ERR(2, 3181, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaGraphExec_t->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaGraphExec_t->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaGraphExec_t->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaGraphExec_t->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaGraphExec_t, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaGraphExec_t) < 0) __PYX_ERR(2, 3181, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUeglStreamConnection = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUeglStreamConnection", sizeof(struct __pyx_obj_4cuda_4cuda_CUeglStreamConnection), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUeglStreamConnection),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUeglStreamConnection) __PYX_ERR(0, 1, __pyx_L1_error) #if CYTHON_USE_TYPE_SPECS __pyx_t_2 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_4cuda_4cuda_CUeglStreamConnection); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3194, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_ptype_4cuda_6cudart_cudaEglStreamConnection = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaEglStreamConnection_spec, __pyx_t_2); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaEglStreamConnection)) __PYX_ERR(2, 3194, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaEglStreamConnection_spec, __pyx_ptype_4cuda_6cudart_cudaEglStreamConnection) < 0) __PYX_ERR(2, 3194, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaEglStreamConnection = &__pyx_type_4cuda_6cudart_cudaEglStreamConnection; #endif #if !CYTHON_COMPILING_IN_LIMITED_API __pyx_ptype_4cuda_6cudart_cudaEglStreamConnection->tp_dealloc = __pyx_ptype_4cuda_4cuda_CUeglStreamConnection->tp_dealloc; __pyx_ptype_4cuda_6cudart_cudaEglStreamConnection->tp_base = __pyx_ptype_4cuda_4cuda_CUeglStreamConnection; __pyx_ptype_4cuda_6cudart_cudaEglStreamConnection->tp_new = __pyx_ptype_4cuda_4cuda_CUeglStreamConnection->tp_new; #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaEglStreamConnection) < 0) __PYX_ERR(2, 3194, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaEglStreamConnection->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaEglStreamConnection->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaEglStreamConnection->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaEglStreamConnection->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaEglStreamConnection, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaEglStreamConnection) < 0) __PYX_ERR(2, 3194, __pyx_L1_error) #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaGraphConditionalHandle = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaGraphConditionalHandle_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaGraphConditionalHandle)) __PYX_ERR(0, 12271, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaGraphConditionalHandle_spec, __pyx_ptype_4cuda_6cudart_cudaGraphConditionalHandle) < 0) __PYX_ERR(0, 12271, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaGraphConditionalHandle = &__pyx_type_4cuda_6cudart_cudaGraphConditionalHandle; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaGraphConditionalHandle) < 0) __PYX_ERR(0, 12271, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaGraphConditionalHandle->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaGraphConditionalHandle->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaGraphConditionalHandle->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaGraphConditionalHandle->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaGraphConditionalHandle_2, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaGraphConditionalHandle) < 0) __PYX_ERR(0, 12271, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaGraphConditionalHandle) < 0) __PYX_ERR(0, 12271, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaSurfaceObject_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaSurfaceObject_t_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaSurfaceObject_t)) __PYX_ERR(0, 12298, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaSurfaceObject_t_spec, __pyx_ptype_4cuda_6cudart_cudaSurfaceObject_t) < 0) __PYX_ERR(0, 12298, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaSurfaceObject_t = &__pyx_type_4cuda_6cudart_cudaSurfaceObject_t; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaSurfaceObject_t) < 0) __PYX_ERR(0, 12298, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaSurfaceObject_t->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaSurfaceObject_t->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaSurfaceObject_t->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaSurfaceObject_t->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaSurfaceObject_t_2, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaSurfaceObject_t) < 0) __PYX_ERR(0, 12298, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaSurfaceObject_t) < 0) __PYX_ERR(0, 12298, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_cudaTextureObject_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_cudaTextureObject_t_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_cudaTextureObject_t)) __PYX_ERR(0, 12325, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_cudaTextureObject_t_spec, __pyx_ptype_4cuda_6cudart_cudaTextureObject_t) < 0) __PYX_ERR(0, 12325, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_cudaTextureObject_t = &__pyx_type_4cuda_6cudart_cudaTextureObject_t; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_cudaTextureObject_t) < 0) __PYX_ERR(0, 12325, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_cudaTextureObject_t->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_cudaTextureObject_t->tp_dictoffset && __pyx_ptype_4cuda_6cudart_cudaTextureObject_t->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_cudaTextureObject_t->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_cudaTextureObject_t_2, (PyObject *) __pyx_ptype_4cuda_6cudart_cudaTextureObject_t) < 0) __PYX_ERR(0, 12325, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_cudaTextureObject_t) < 0) __PYX_ERR(0, 12325, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_GLenum = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_GLenum_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_GLenum)) __PYX_ERR(0, 12352, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_GLenum_spec, __pyx_ptype_4cuda_6cudart_GLenum) < 0) __PYX_ERR(0, 12352, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_GLenum = &__pyx_type_4cuda_6cudart_GLenum; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_GLenum) < 0) __PYX_ERR(0, 12352, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_GLenum->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_GLenum->tp_dictoffset && __pyx_ptype_4cuda_6cudart_GLenum->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_GLenum->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_GLenum_2, (PyObject *) __pyx_ptype_4cuda_6cudart_GLenum) < 0) __PYX_ERR(0, 12352, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_GLenum) < 0) __PYX_ERR(0, 12352, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_GLuint = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_GLuint_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_GLuint)) __PYX_ERR(0, 12377, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_GLuint_spec, __pyx_ptype_4cuda_6cudart_GLuint) < 0) __PYX_ERR(0, 12377, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_GLuint = &__pyx_type_4cuda_6cudart_GLuint; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_GLuint) < 0) __PYX_ERR(0, 12377, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_GLuint->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_GLuint->tp_dictoffset && __pyx_ptype_4cuda_6cudart_GLuint->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_GLuint->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_GLuint_2, (PyObject *) __pyx_ptype_4cuda_6cudart_GLuint) < 0) __PYX_ERR(0, 12377, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_GLuint) < 0) __PYX_ERR(0, 12377, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_EGLint = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_EGLint_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_EGLint)) __PYX_ERR(0, 12402, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_EGLint_spec, __pyx_ptype_4cuda_6cudart_EGLint) < 0) __PYX_ERR(0, 12402, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_EGLint = &__pyx_type_4cuda_6cudart_EGLint; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_EGLint) < 0) __PYX_ERR(0, 12402, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_EGLint->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_EGLint->tp_dictoffset && __pyx_ptype_4cuda_6cudart_EGLint->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_EGLint->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_EGLint_2, (PyObject *) __pyx_ptype_4cuda_6cudart_EGLint) < 0) __PYX_ERR(0, 12402, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_EGLint) < 0) __PYX_ERR(0, 12402, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_VdpDevice = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_VdpDevice_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_VdpDevice)) __PYX_ERR(0, 12427, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_VdpDevice_spec, __pyx_ptype_4cuda_6cudart_VdpDevice) < 0) __PYX_ERR(0, 12427, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_VdpDevice = &__pyx_type_4cuda_6cudart_VdpDevice; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_VdpDevice) < 0) __PYX_ERR(0, 12427, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_VdpDevice->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_VdpDevice->tp_dictoffset && __pyx_ptype_4cuda_6cudart_VdpDevice->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_VdpDevice->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VdpDevice_2, (PyObject *) __pyx_ptype_4cuda_6cudart_VdpDevice) < 0) __PYX_ERR(0, 12427, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_VdpDevice) < 0) __PYX_ERR(0, 12427, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_VdpGetProcAddress = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_VdpGetProcAddress_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_VdpGetProcAddress)) __PYX_ERR(0, 12452, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_VdpGetProcAddress_spec, __pyx_ptype_4cuda_6cudart_VdpGetProcAddress) < 0) __PYX_ERR(0, 12452, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_VdpGetProcAddress = &__pyx_type_4cuda_6cudart_VdpGetProcAddress; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_VdpGetProcAddress) < 0) __PYX_ERR(0, 12452, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_VdpGetProcAddress->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_VdpGetProcAddress->tp_dictoffset && __pyx_ptype_4cuda_6cudart_VdpGetProcAddress->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_VdpGetProcAddress->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VdpGetProcAddress_2, (PyObject *) __pyx_ptype_4cuda_6cudart_VdpGetProcAddress) < 0) __PYX_ERR(0, 12452, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_VdpGetProcAddress) < 0) __PYX_ERR(0, 12452, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_VdpVideoSurface = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_VdpVideoSurface_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_VdpVideoSurface)) __PYX_ERR(0, 12477, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_VdpVideoSurface_spec, __pyx_ptype_4cuda_6cudart_VdpVideoSurface) < 0) __PYX_ERR(0, 12477, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_VdpVideoSurface = &__pyx_type_4cuda_6cudart_VdpVideoSurface; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_VdpVideoSurface) < 0) __PYX_ERR(0, 12477, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_VdpVideoSurface->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_VdpVideoSurface->tp_dictoffset && __pyx_ptype_4cuda_6cudart_VdpVideoSurface->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_VdpVideoSurface->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VdpVideoSurface_2, (PyObject *) __pyx_ptype_4cuda_6cudart_VdpVideoSurface) < 0) __PYX_ERR(0, 12477, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_VdpVideoSurface) < 0) __PYX_ERR(0, 12477, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart_VdpOutputSurface = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart_VdpOutputSurface_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart_VdpOutputSurface)) __PYX_ERR(0, 12502, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart_VdpOutputSurface_spec, __pyx_ptype_4cuda_6cudart_VdpOutputSurface) < 0) __PYX_ERR(0, 12502, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart_VdpOutputSurface = &__pyx_type_4cuda_6cudart_VdpOutputSurface; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart_VdpOutputSurface) < 0) __PYX_ERR(0, 12502, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart_VdpOutputSurface->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart_VdpOutputSurface->tp_dictoffset && __pyx_ptype_4cuda_6cudart_VdpOutputSurface->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart_VdpOutputSurface->tp_getattro = __Pyx_PyObject_GenericGetAttr; } #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_VdpOutputSurface_2, (PyObject *) __pyx_ptype_4cuda_6cudart_VdpOutputSurface) < 0) __PYX_ERR(0, 12502, __pyx_L1_error) #if !CYTHON_COMPILING_IN_LIMITED_API if (__Pyx_setup_reduce((PyObject *) __pyx_ptype_4cuda_6cudart_VdpOutputSurface) < 0) __PYX_ERR(0, 12502, __pyx_L1_error) #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct__genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct__genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct__genexpr)) __PYX_ERR(0, 15650, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct__genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct__genexpr) < 0) __PYX_ERR(0, 15650, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct__genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct__genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct__genexpr) < 0) __PYX_ERR(0, 15650, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct__genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct__genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct__genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct__genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct_1_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct_1_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_1_genexpr)) __PYX_ERR(0, 15653, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct_1_genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct_1_genexpr) < 0) __PYX_ERR(0, 15653, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct_1_genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct_1_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_1_genexpr) < 0) __PYX_ERR(0, 15653, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct_1_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_1_genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct_1_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct_1_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct_2_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct_2_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_2_genexpr)) __PYX_ERR(0, 16085, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct_2_genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct_2_genexpr) < 0) __PYX_ERR(0, 16085, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct_2_genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct_2_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_2_genexpr) < 0) __PYX_ERR(0, 16085, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct_2_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_2_genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct_2_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct_2_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct_3_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct_3_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_3_genexpr)) __PYX_ERR(0, 16154, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct_3_genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct_3_genexpr) < 0) __PYX_ERR(0, 16154, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct_3_genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct_3_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_3_genexpr) < 0) __PYX_ERR(0, 16154, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct_3_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_3_genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct_3_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct_3_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct_4_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct_4_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_4_genexpr)) __PYX_ERR(0, 16157, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct_4_genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct_4_genexpr) < 0) __PYX_ERR(0, 16157, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct_4_genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct_4_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_4_genexpr) < 0) __PYX_ERR(0, 16157, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct_4_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_4_genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct_4_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct_4_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct_5_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct_5_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_5_genexpr)) __PYX_ERR(0, 17127, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct_5_genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct_5_genexpr) < 0) __PYX_ERR(0, 17127, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct_5_genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct_5_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_5_genexpr) < 0) __PYX_ERR(0, 17127, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct_5_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_5_genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct_5_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct_5_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct_6_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct_6_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_6_genexpr)) __PYX_ERR(0, 17130, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct_6_genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct_6_genexpr) < 0) __PYX_ERR(0, 17130, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct_6_genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct_6_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_6_genexpr) < 0) __PYX_ERR(0, 17130, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct_6_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_6_genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct_6_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct_6_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct_7_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct_7_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_7_genexpr)) __PYX_ERR(0, 17249, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct_7_genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct_7_genexpr) < 0) __PYX_ERR(0, 17249, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct_7_genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct_7_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_7_genexpr) < 0) __PYX_ERR(0, 17249, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct_7_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_7_genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct_7_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct_7_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct_8_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct_8_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_8_genexpr)) __PYX_ERR(0, 17252, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct_8_genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct_8_genexpr) < 0) __PYX_ERR(0, 17252, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct_8_genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct_8_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_8_genexpr) < 0) __PYX_ERR(0, 17252, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct_8_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_8_genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct_8_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct_8_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct_9_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct_9_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_9_genexpr)) __PYX_ERR(0, 21266, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct_9_genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct_9_genexpr) < 0) __PYX_ERR(0, 21266, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct_9_genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct_9_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_9_genexpr) < 0) __PYX_ERR(0, 21266, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct_9_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_9_genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct_9_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct_9_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct_10_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct_10_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_10_genexpr)) __PYX_ERR(0, 21268, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct_10_genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct_10_genexpr) < 0) __PYX_ERR(0, 21268, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct_10_genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct_10_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_10_genexpr) < 0) __PYX_ERR(0, 21268, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct_10_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_10_genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct_10_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct_10_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct_11_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct_11_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_11_genexpr)) __PYX_ERR(0, 21936, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct_11_genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct_11_genexpr) < 0) __PYX_ERR(0, 21936, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct_11_genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct_11_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_11_genexpr) < 0) __PYX_ERR(0, 21936, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct_11_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_11_genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct_11_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct_11_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct_12_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct_12_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_12_genexpr)) __PYX_ERR(0, 23587, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct_12_genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct_12_genexpr) < 0) __PYX_ERR(0, 23587, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct_12_genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct_12_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_12_genexpr) < 0) __PYX_ERR(0, 23587, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct_12_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_12_genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct_12_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct_12_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct_13_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct_13_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_13_genexpr)) __PYX_ERR(0, 23858, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct_13_genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct_13_genexpr) < 0) __PYX_ERR(0, 23858, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct_13_genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct_13_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_13_genexpr) < 0) __PYX_ERR(0, 23858, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct_13_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_13_genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct_13_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct_13_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct_14_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct_14_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_14_genexpr)) __PYX_ERR(0, 23943, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct_14_genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct_14_genexpr) < 0) __PYX_ERR(0, 23943, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct_14_genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct_14_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_14_genexpr) < 0) __PYX_ERR(0, 23943, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct_14_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_14_genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct_14_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct_14_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct_15_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct_15_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_15_genexpr)) __PYX_ERR(0, 24138, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct_15_genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct_15_genexpr) < 0) __PYX_ERR(0, 24138, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct_15_genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct_15_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_15_genexpr) < 0) __PYX_ERR(0, 24138, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct_15_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_15_genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct_15_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct_15_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct_16_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct_16_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_16_genexpr)) __PYX_ERR(0, 24272, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct_16_genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct_16_genexpr) < 0) __PYX_ERR(0, 24272, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct_16_genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct_16_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_16_genexpr) < 0) __PYX_ERR(0, 24272, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct_16_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_16_genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct_16_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct_16_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct_17_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct_17_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_17_genexpr)) __PYX_ERR(0, 24418, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct_17_genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct_17_genexpr) < 0) __PYX_ERR(0, 24418, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct_17_genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct_17_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_17_genexpr) < 0) __PYX_ERR(0, 24418, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct_17_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_17_genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct_17_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct_17_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct_18_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct_18_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_18_genexpr)) __PYX_ERR(0, 24522, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct_18_genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct_18_genexpr) < 0) __PYX_ERR(0, 24522, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct_18_genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct_18_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_18_genexpr) < 0) __PYX_ERR(0, 24522, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct_18_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_18_genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct_18_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct_18_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct_19_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct_19_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_19_genexpr)) __PYX_ERR(0, 24596, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct_19_genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct_19_genexpr) < 0) __PYX_ERR(0, 24596, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct_19_genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct_19_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_19_genexpr) < 0) __PYX_ERR(0, 24596, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct_19_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_19_genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct_19_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct_19_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct_20_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct_20_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_20_genexpr)) __PYX_ERR(0, 24751, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct_20_genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct_20_genexpr) < 0) __PYX_ERR(0, 24751, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct_20_genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct_20_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_20_genexpr) < 0) __PYX_ERR(0, 24751, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct_20_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_20_genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct_20_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct_20_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct_21_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct_21_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_21_genexpr)) __PYX_ERR(0, 24893, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct_21_genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct_21_genexpr) < 0) __PYX_ERR(0, 24893, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct_21_genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct_21_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_21_genexpr) < 0) __PYX_ERR(0, 24893, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct_21_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_21_genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct_21_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct_21_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct_22_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct_22_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_22_genexpr)) __PYX_ERR(0, 25035, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct_22_genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct_22_genexpr) < 0) __PYX_ERR(0, 25035, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct_22_genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct_22_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_22_genexpr) < 0) __PYX_ERR(0, 25035, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct_22_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_22_genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct_22_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct_22_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct_23_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct_23_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_23_genexpr)) __PYX_ERR(0, 25215, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct_23_genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct_23_genexpr) < 0) __PYX_ERR(0, 25215, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct_23_genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct_23_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_23_genexpr) < 0) __PYX_ERR(0, 25215, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct_23_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_23_genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct_23_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct_23_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct_24_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct_24_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_24_genexpr)) __PYX_ERR(0, 25334, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct_24_genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct_24_genexpr) < 0) __PYX_ERR(0, 25334, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct_24_genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct_24_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_24_genexpr) < 0) __PYX_ERR(0, 25334, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct_24_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_24_genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct_24_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct_24_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct_25_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct_25_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_25_genexpr)) __PYX_ERR(0, 26182, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct_25_genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct_25_genexpr) < 0) __PYX_ERR(0, 26182, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct_25_genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct_25_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_25_genexpr) < 0) __PYX_ERR(0, 26182, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct_25_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_25_genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct_25_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct_25_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct_26_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct_26_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_26_genexpr)) __PYX_ERR(0, 26185, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct_26_genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct_26_genexpr) < 0) __PYX_ERR(0, 26185, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct_26_genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct_26_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_26_genexpr) < 0) __PYX_ERR(0, 26185, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct_26_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_26_genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct_26_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct_26_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct_27_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct_27_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_27_genexpr)) __PYX_ERR(0, 26256, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct_27_genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct_27_genexpr) < 0) __PYX_ERR(0, 26256, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct_27_genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct_27_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_27_genexpr) < 0) __PYX_ERR(0, 26256, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct_27_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_27_genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct_27_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct_27_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct_28_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct_28_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_28_genexpr)) __PYX_ERR(0, 26259, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct_28_genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct_28_genexpr) < 0) __PYX_ERR(0, 26259, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct_28_genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct_28_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_28_genexpr) < 0) __PYX_ERR(0, 26259, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct_28_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_28_genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct_28_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct_28_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct_29_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct_29_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_29_genexpr)) __PYX_ERR(0, 26262, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct_29_genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct_29_genexpr) < 0) __PYX_ERR(0, 26262, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct_29_genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct_29_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_29_genexpr) < 0) __PYX_ERR(0, 26262, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct_29_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_29_genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct_29_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct_29_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct_30_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct_30_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_30_genexpr)) __PYX_ERR(0, 26338, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct_30_genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct_30_genexpr) < 0) __PYX_ERR(0, 26338, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct_30_genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct_30_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_30_genexpr) < 0) __PYX_ERR(0, 26338, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct_30_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_30_genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct_30_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct_30_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct_31_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct_31_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_31_genexpr)) __PYX_ERR(0, 26341, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct_31_genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct_31_genexpr) < 0) __PYX_ERR(0, 26341, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct_31_genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct_31_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_31_genexpr) < 0) __PYX_ERR(0, 26341, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct_31_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_31_genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct_31_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct_31_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct_32_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct_32_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_32_genexpr)) __PYX_ERR(0, 26415, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct_32_genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct_32_genexpr) < 0) __PYX_ERR(0, 26415, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct_32_genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct_32_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_32_genexpr) < 0) __PYX_ERR(0, 26415, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct_32_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_32_genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct_32_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct_32_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct_33_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct_33_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_33_genexpr)) __PYX_ERR(0, 26418, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct_33_genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct_33_genexpr) < 0) __PYX_ERR(0, 26418, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct_33_genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct_33_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_33_genexpr) < 0) __PYX_ERR(0, 26418, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct_33_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_33_genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct_33_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct_33_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct_34_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct_34_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_34_genexpr)) __PYX_ERR(0, 26421, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct_34_genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct_34_genexpr) < 0) __PYX_ERR(0, 26421, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct_34_genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct_34_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_34_genexpr) < 0) __PYX_ERR(0, 26421, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct_34_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_34_genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct_34_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct_34_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct_35_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct_35_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_35_genexpr)) __PYX_ERR(0, 28299, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct_35_genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct_35_genexpr) < 0) __PYX_ERR(0, 28299, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct_35_genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct_35_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_35_genexpr) < 0) __PYX_ERR(0, 28299, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct_35_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_35_genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct_35_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct_35_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct_36_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct_36_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_36_genexpr)) __PYX_ERR(0, 28375, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct_36_genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct_36_genexpr) < 0) __PYX_ERR(0, 28375, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct_36_genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct_36_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_36_genexpr) < 0) __PYX_ERR(0, 28375, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct_36_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_36_genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct_36_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct_36_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #endif #if CYTHON_USE_TYPE_SPECS __pyx_ptype_4cuda_6cudart___pyx_scope_struct_37_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_6cudart___pyx_scope_struct_37_genexpr_spec, NULL); if (unlikely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_37_genexpr)) __PYX_ERR(0, 28378, __pyx_L1_error) if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_6cudart___pyx_scope_struct_37_genexpr_spec, __pyx_ptype_4cuda_6cudart___pyx_scope_struct_37_genexpr) < 0) __PYX_ERR(0, 28378, __pyx_L1_error) #else __pyx_ptype_4cuda_6cudart___pyx_scope_struct_37_genexpr = &__pyx_type_4cuda_6cudart___pyx_scope_struct_37_genexpr; #endif #if !CYTHON_COMPILING_IN_LIMITED_API #endif #if !CYTHON_USE_TYPE_SPECS if (__Pyx_PyType_Ready(__pyx_ptype_4cuda_6cudart___pyx_scope_struct_37_genexpr) < 0) __PYX_ERR(0, 28378, __pyx_L1_error) #endif #if PY_MAJOR_VERSION < 3 __pyx_ptype_4cuda_6cudart___pyx_scope_struct_37_genexpr->tp_print = 0; #endif #if !CYTHON_COMPILING_IN_LIMITED_API if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_ptype_4cuda_6cudart___pyx_scope_struct_37_genexpr->tp_dictoffset && __pyx_ptype_4cuda_6cudart___pyx_scope_struct_37_genexpr->tp_getattro == PyObject_GenericGetAttr)) { __pyx_ptype_4cuda_6cudart___pyx_scope_struct_37_genexpr->tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } #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(void) { __Pyx_RefNannyDeclarations 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.cuda"); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 11, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_4cuda_4cuda_CUcontext = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUcontext", sizeof(struct __pyx_obj_4cuda_4cuda_CUcontext), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUcontext),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUcontext) __PYX_ERR(3, 11, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUmodule = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUmodule", sizeof(struct __pyx_obj_4cuda_4cuda_CUmodule), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUmodule),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUmodule) __PYX_ERR(3, 25, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUlibrary = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUlibrary", sizeof(struct __pyx_obj_4cuda_4cuda_CUlibrary), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUlibrary),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUlibrary) __PYX_ERR(3, 53, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUkernel = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUkernel", sizeof(struct __pyx_obj_4cuda_4cuda_CUkernel), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUkernel),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUkernel) __PYX_ERR(3, 67, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUarray = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUarray", sizeof(struct __pyx_obj_4cuda_4cuda_CUarray), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUarray),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUarray) __PYX_ERR(3, 81, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUmipmappedArray = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUmipmappedArray", sizeof(struct __pyx_obj_4cuda_4cuda_CUmipmappedArray), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUmipmappedArray),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUmipmappedArray) __PYX_ERR(3, 95, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUtexref = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUtexref", sizeof(struct __pyx_obj_4cuda_4cuda_CUtexref), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUtexref),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUtexref) __PYX_ERR(3, 109, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUsurfref = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUsurfref", sizeof(struct __pyx_obj_4cuda_4cuda_CUsurfref), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUsurfref),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUsurfref) __PYX_ERR(3, 123, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUgraphicsResource = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUgraphicsResource", sizeof(struct __pyx_obj_4cuda_4cuda_CUgraphicsResource), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUgraphicsResource),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUgraphicsResource) __PYX_ERR(3, 165, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUexternalMemory = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUexternalMemory", sizeof(struct __pyx_obj_4cuda_4cuda_CUexternalMemory), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUexternalMemory),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUexternalMemory) __PYX_ERR(3, 179, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUexternalSemaphore = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUexternalSemaphore", sizeof(struct __pyx_obj_4cuda_4cuda_CUexternalSemaphore), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUexternalSemaphore),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUexternalSemaphore) __PYX_ERR(3, 193, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUgraphDeviceNode = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUgraphDeviceNode", sizeof(struct __pyx_obj_4cuda_4cuda_CUgraphDeviceNode), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUgraphDeviceNode),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUgraphDeviceNode) __PYX_ERR(3, 277, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUasyncCallbackHandle = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUasyncCallbackHandle", sizeof(struct __pyx_obj_4cuda_4cuda_CUasyncCallbackHandle), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUasyncCallbackHandle),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUasyncCallbackHandle) __PYX_ERR(3, 291, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUgreenCtx = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUgreenCtx", sizeof(struct __pyx_obj_4cuda_4cuda_CUgreenCtx), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUgreenCtx),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUgreenCtx) __PYX_ERR(3, 305, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUlinkState = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUlinkState", sizeof(struct __pyx_obj_4cuda_4cuda_CUlinkState), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUlinkState),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUlinkState) __PYX_ERR(3, 319, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUdevResourceDesc = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUdevResourceDesc", sizeof(struct __pyx_obj_4cuda_4cuda_CUdevResourceDesc), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUdevResourceDesc),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUdevResourceDesc) __PYX_ERR(3, 332, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_EGLImageKHR = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "EGLImageKHR", sizeof(struct __pyx_obj_4cuda_4cuda_EGLImageKHR), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_EGLImageKHR),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_EGLImageKHR) __PYX_ERR(3, 360, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_EGLStreamKHR = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "EGLStreamKHR", sizeof(struct __pyx_obj_4cuda_4cuda_EGLStreamKHR), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_EGLStreamKHR),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_EGLStreamKHR) __PYX_ERR(3, 372, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_EGLSyncKHR = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "EGLSyncKHR", sizeof(struct __pyx_obj_4cuda_4cuda_EGLSyncKHR), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_EGLSyncKHR),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_EGLSyncKHR) __PYX_ERR(3, 384, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUasyncCallback = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUasyncCallback", sizeof(struct __pyx_obj_4cuda_4cuda_CUasyncCallback), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUasyncCallback),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUasyncCallback) __PYX_ERR(3, 396, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUhostFn = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUhostFn", sizeof(struct __pyx_obj_4cuda_4cuda_CUhostFn), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUhostFn),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUhostFn) __PYX_ERR(3, 408, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUstreamCallback = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUstreamCallback", sizeof(struct __pyx_obj_4cuda_4cuda_CUstreamCallback), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUstreamCallback),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUstreamCallback) __PYX_ERR(3, 420, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUoccupancyB2DSize = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUoccupancyB2DSize", sizeof(struct __pyx_obj_4cuda_4cuda_CUoccupancyB2DSize), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUoccupancyB2DSize),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUoccupancyB2DSize) __PYX_ERR(3, 432, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUuuid_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUuuid_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUuuid_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUuuid_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUuuid_st) __PYX_ERR(3, 444, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUmemFabricHandle_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUmemFabricHandle_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUmemFabricHandle_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUmemFabricHandle_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUmemFabricHandle_st) __PYX_ERR(3, 460, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUipcEventHandle_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUipcEventHandle_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUipcEventHandle_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUipcEventHandle_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUipcEventHandle_st) __PYX_ERR(3, 481, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUipcMemHandle_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUipcMemHandle_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUipcMemHandle_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUipcMemHandle_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUipcMemHandle_st) __PYX_ERR(3, 499, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUstreamMemOpWaitValueParams_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUstreamMemOpWaitValueParams_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUstreamMemOpWaitValueParams_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUstreamMemOpWaitValueParams_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUstreamMemOpWaitValueParams_st) __PYX_ERR(3, 517, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUstreamMemOpWriteValueParams_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUstreamMemOpWriteValueParams_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUstreamMemOpWriteValueParams_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUstreamMemOpWriteValueParams_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUstreamMemOpWriteValueParams_st) __PYX_ERR(3, 546, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUstreamMemOpFlushRemoteWritesParams_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUstreamMemOpFlushRemoteWritesParams_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUstreamMemOpFlushRemoteWritesParams_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUstreamMemOpFlushRemoteWritesParams_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUstreamMemOpFlushRemoteWritesParams_st) __PYX_ERR(3, 575, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUstreamMemOpMemoryBarrierParams_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUstreamMemOpMemoryBarrierParams_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUstreamMemOpMemoryBarrierParams_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUstreamMemOpMemoryBarrierParams_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUstreamMemOpMemoryBarrierParams_st) __PYX_ERR(3, 592, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUstreamBatchMemOpParams_union = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUstreamBatchMemOpParams_union", sizeof(struct __pyx_obj_4cuda_4cuda_CUstreamBatchMemOpParams_union), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUstreamBatchMemOpParams_union),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUstreamBatchMemOpParams_union) __PYX_ERR(3, 609, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st) __PYX_ERR(3, 641, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st) __PYX_ERR(3, 666, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_anon_struct0 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "anon_struct0", sizeof(struct __pyx_obj_4cuda_4cuda_anon_struct0), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_anon_struct0),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_anon_struct0) __PYX_ERR(3, 693, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_anon_union2 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "anon_union2", sizeof(struct __pyx_obj_4cuda_4cuda_anon_union2), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_anon_union2),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_anon_union2) __PYX_ERR(3, 708, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUasyncNotificationInfo_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUasyncNotificationInfo_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUasyncNotificationInfo_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUasyncNotificationInfo_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUasyncNotificationInfo_st) __PYX_ERR(3, 724, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUdevprop_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUdevprop_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUdevprop_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUdevprop_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUdevprop_st) __PYX_ERR(3, 745, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUaccessPolicyWindow_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUaccessPolicyWindow_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUaccessPolicyWindow_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUaccessPolicyWindow_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUaccessPolicyWindow_st) __PYX_ERR(3, 781, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_KERNEL_NODE_PARAMS_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_st) __PYX_ERR(3, 819, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v2_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_KERNEL_NODE_PARAMS_v2_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v2_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v2_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v2_st) __PYX_ERR(3, 857, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v3_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_KERNEL_NODE_PARAMS_v3_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v3_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v3_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v3_st) __PYX_ERR(3, 903, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_MEMSET_NODE_PARAMS_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_st) __PYX_ERR(3, 949, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_v2_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_MEMSET_NODE_PARAMS_v2_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_v2_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_v2_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_v2_st) __PYX_ERR(3, 978, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_HOST_NODE_PARAMS_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_st) __PYX_ERR(3, 1010, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_v2_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_HOST_NODE_PARAMS_v2_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_v2_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_v2_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_v2_st) __PYX_ERR(3, 1031, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_CONDITIONAL_NODE_PARAMS = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_CONDITIONAL_NODE_PARAMS", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_CONDITIONAL_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_CONDITIONAL_NODE_PARAMS),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_CONDITIONAL_NODE_PARAMS) __PYX_ERR(3, 1052, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUgraphEdgeData_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUgraphEdgeData_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUgraphEdgeData_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUgraphEdgeData_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUgraphEdgeData_st) __PYX_ERR(3, 1094, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_GRAPH_INSTANTIATE_PARAMS_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_GRAPH_INSTANTIATE_PARAMS_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_GRAPH_INSTANTIATE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_GRAPH_INSTANTIATE_PARAMS_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_GRAPH_INSTANTIATE_PARAMS_st) __PYX_ERR(3, 1137, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUlaunchMemSyncDomainMap_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUlaunchMemSyncDomainMap_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUlaunchMemSyncDomainMap_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUlaunchMemSyncDomainMap_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUlaunchMemSyncDomainMap_st) __PYX_ERR(3, 1164, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_anon_struct1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "anon_struct1", sizeof(struct __pyx_obj_4cuda_4cuda_anon_struct1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_anon_struct1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_anon_struct1) __PYX_ERR(3, 1190, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_anon_struct2 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "anon_struct2", sizeof(struct __pyx_obj_4cuda_4cuda_anon_struct2), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_anon_struct2),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_anon_struct2) __PYX_ERR(3, 1209, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_anon_struct3 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "anon_struct3", sizeof(struct __pyx_obj_4cuda_4cuda_anon_struct3), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_anon_struct3),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_anon_struct3) __PYX_ERR(3, 1229, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_anon_struct4 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "anon_struct4", sizeof(struct __pyx_obj_4cuda_4cuda_anon_struct4), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_anon_struct4),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_anon_struct4) __PYX_ERR(3, 1247, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUlaunchAttributeValue_union = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUlaunchAttributeValue_union", sizeof(struct __pyx_obj_4cuda_4cuda_CUlaunchAttributeValue_union), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUlaunchAttributeValue_union),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUlaunchAttributeValue_union) __PYX_ERR(3, 1265, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUlaunchAttribute_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUlaunchAttribute_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUlaunchAttribute_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUlaunchAttribute_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUlaunchAttribute_st) __PYX_ERR(3, 1345, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUlaunchConfig_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUlaunchConfig_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUlaunchConfig_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUlaunchConfig_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUlaunchConfig_st) __PYX_ERR(3, 1366, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUexecAffinitySmCount_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUexecAffinitySmCount_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUexecAffinitySmCount_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUexecAffinitySmCount_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUexecAffinitySmCount_st) __PYX_ERR(3, 1405, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_anon_union3 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "anon_union3", sizeof(struct __pyx_obj_4cuda_4cuda_anon_union3), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_anon_union3),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_anon_union3) __PYX_ERR(3, 1423, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUexecAffinityParam_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUexecAffinityParam_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUexecAffinityParam_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUexecAffinityParam_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUexecAffinityParam_st) __PYX_ERR(3, 1439, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUctxCigParam_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUctxCigParam_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUctxCigParam_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUctxCigParam_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUctxCigParam_st) __PYX_ERR(3, 1460, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUctxCreateParams_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUctxCreateParams_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUctxCreateParams_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUctxCreateParams_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUctxCreateParams_st) __PYX_ERR(3, 1480, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUlibraryHostUniversalFunctionAndDataTable_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUlibraryHostUniversalFunctionAndDataTable_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUlibraryHostUniversalFunctionAndDataTable_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUlibraryHostUniversalFunctionAndDataTable_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUlibraryHostUniversalFunctionAndDataTable_st) __PYX_ERR(3, 1508, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_MEMCPY2D_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_MEMCPY2D_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY2D_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY2D_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY2D_st) __PYX_ERR(3, 1530, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_MEMCPY3D_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_MEMCPY3D_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY3D_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY3D_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY3D_st) __PYX_ERR(3, 1582, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_MEMCPY3D_PEER_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_MEMCPY3D_PEER_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY3D_PEER_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY3D_PEER_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY3D_PEER_st) __PYX_ERR(3, 1653, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_MEMCPY_NODE_PARAMS_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_MEMCPY_NODE_PARAMS_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY_NODE_PARAMS_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY_NODE_PARAMS_st) __PYX_ERR(3, 1727, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_ARRAY_DESCRIPTOR_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_ARRAY_DESCRIPTOR_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_DESCRIPTOR_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_DESCRIPTOR_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_ARRAY_DESCRIPTOR_st) __PYX_ERR(3, 1753, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_ARRAY3D_DESCRIPTOR_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_ARRAY3D_DESCRIPTOR_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY3D_DESCRIPTOR_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY3D_DESCRIPTOR_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_ARRAY3D_DESCRIPTOR_st) __PYX_ERR(3, 1777, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_anon_struct5 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "anon_struct5", sizeof(struct __pyx_obj_4cuda_4cuda_anon_struct5), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_anon_struct5),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_anon_struct5) __PYX_ERR(3, 1805, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_ARRAY_SPARSE_PROPERTIES_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_ARRAY_SPARSE_PROPERTIES_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_SPARSE_PROPERTIES_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_SPARSE_PROPERTIES_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_ARRAY_SPARSE_PROPERTIES_st) __PYX_ERR(3, 1824, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_ARRAY_MEMORY_REQUIREMENTS_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_ARRAY_MEMORY_REQUIREMENTS_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_MEMORY_REQUIREMENTS_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_MEMORY_REQUIREMENTS_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_ARRAY_MEMORY_REQUIREMENTS_st) __PYX_ERR(3, 1852, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_anon_struct6 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "anon_struct6", sizeof(struct __pyx_obj_4cuda_4cuda_anon_struct6), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_anon_struct6),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_anon_struct6) __PYX_ERR(3, 1874, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_anon_struct7 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "anon_struct7", sizeof(struct __pyx_obj_4cuda_4cuda_anon_struct7), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_anon_struct7),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_anon_struct7) __PYX_ERR(3, 1890, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_anon_struct8 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "anon_struct8", sizeof(struct __pyx_obj_4cuda_4cuda_anon_struct8), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_anon_struct8),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_anon_struct8) __PYX_ERR(3, 1906, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_anon_struct9 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "anon_struct9", sizeof(struct __pyx_obj_4cuda_4cuda_anon_struct9), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_anon_struct9),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_anon_struct9) __PYX_ERR(3, 1928, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_anon_struct10 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "anon_struct10", sizeof(struct __pyx_obj_4cuda_4cuda_anon_struct10), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_anon_struct10),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_anon_struct10) __PYX_ERR(3, 1954, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_anon_union4 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "anon_union4", sizeof(struct __pyx_obj_4cuda_4cuda_anon_union4), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_anon_union4),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_anon_union4) __PYX_ERR(3, 1969, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_RESOURCE_DESC_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_RESOURCE_DESC_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_RESOURCE_DESC_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_RESOURCE_DESC_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_RESOURCE_DESC_st) __PYX_ERR(3, 1997, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_TEXTURE_DESC_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_TEXTURE_DESC_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_TEXTURE_DESC_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_TEXTURE_DESC_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_TEXTURE_DESC_st) __PYX_ERR(3, 2020, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_RESOURCE_VIEW_DESC_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_RESOURCE_VIEW_DESC_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_RESOURCE_VIEW_DESC_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_RESOURCE_VIEW_DESC_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_RESOURCE_VIEW_DESC_st) __PYX_ERR(3, 2056, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUtensorMap_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUtensorMap_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUtensorMap_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUtensorMap_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUtensorMap_st) __PYX_ERR(3, 2090, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st) __PYX_ERR(3, 2109, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_LAUNCH_PARAMS_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_LAUNCH_PARAMS_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_LAUNCH_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_LAUNCH_PARAMS_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_LAUNCH_PARAMS_st) __PYX_ERR(3, 2129, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_anon_struct11 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "anon_struct11", sizeof(struct __pyx_obj_4cuda_4cuda_anon_struct11), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_anon_struct11),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_anon_struct11) __PYX_ERR(3, 2168, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_anon_union5 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "anon_union5", sizeof(struct __pyx_obj_4cuda_4cuda_anon_union5), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_anon_union5),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_anon_union5) __PYX_ERR(3, 2185, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st) __PYX_ERR(3, 2205, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st) __PYX_ERR(3, 2232, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st) __PYX_ERR(3, 2256, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_anon_struct12 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "anon_struct12", sizeof(struct __pyx_obj_4cuda_4cuda_anon_struct12), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_anon_struct12),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_anon_struct12) __PYX_ERR(3, 2282, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_anon_union6 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "anon_union6", sizeof(struct __pyx_obj_4cuda_4cuda_anon_union6), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_anon_union6),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_anon_union6) __PYX_ERR(3, 2299, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st) __PYX_ERR(3, 2319, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_anon_struct13 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "anon_struct13", sizeof(struct __pyx_obj_4cuda_4cuda_anon_struct13), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_anon_struct13),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_anon_struct13) __PYX_ERR(3, 2344, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_anon_union7 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "anon_union7", sizeof(struct __pyx_obj_4cuda_4cuda_anon_union7), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_anon_union7),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_anon_union7) __PYX_ERR(3, 2359, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_anon_struct14 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "anon_struct14", sizeof(struct __pyx_obj_4cuda_4cuda_anon_struct14), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_anon_struct14),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_anon_struct14) __PYX_ERR(3, 2376, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_anon_struct15 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "anon_struct15", sizeof(struct __pyx_obj_4cuda_4cuda_anon_struct15), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_anon_struct15),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_anon_struct15) __PYX_ERR(3, 2391, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st) __PYX_ERR(3, 2415, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_anon_struct16 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "anon_struct16", sizeof(struct __pyx_obj_4cuda_4cuda_anon_struct16), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_anon_struct16),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_anon_struct16) __PYX_ERR(3, 2445, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_anon_union8 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "anon_union8", sizeof(struct __pyx_obj_4cuda_4cuda_anon_union8), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_anon_union8),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_anon_union8) __PYX_ERR(3, 2460, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_anon_struct17 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "anon_struct17", sizeof(struct __pyx_obj_4cuda_4cuda_anon_struct17), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_anon_struct17),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_anon_struct17) __PYX_ERR(3, 2477, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_anon_struct18 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "anon_struct18", sizeof(struct __pyx_obj_4cuda_4cuda_anon_struct18), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_anon_struct18),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_anon_struct18) __PYX_ERR(3, 2494, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st) __PYX_ERR(3, 2518, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st) __PYX_ERR(3, 2548, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st) __PYX_ERR(3, 2576, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_EXT_SEM_WAIT_NODE_PARAMS_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_st) __PYX_ERR(3, 2604, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st) __PYX_ERR(3, 2632, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_anon_union9 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "anon_union9", sizeof(struct __pyx_obj_4cuda_4cuda_anon_union9), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_anon_union9),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_anon_union9) __PYX_ERR(3, 2660, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_anon_struct19 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "anon_struct19", sizeof(struct __pyx_obj_4cuda_4cuda_anon_struct19), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_anon_struct19),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_anon_struct19) __PYX_ERR(3, 2679, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_anon_struct20 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "anon_struct20", sizeof(struct __pyx_obj_4cuda_4cuda_anon_struct20), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_anon_struct20),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_anon_struct20) __PYX_ERR(3, 2708, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_anon_union10 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "anon_union10", sizeof(struct __pyx_obj_4cuda_4cuda_anon_union10), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_anon_union10),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_anon_union10) __PYX_ERR(3, 2727, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_anon_union11 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "anon_union11", sizeof(struct __pyx_obj_4cuda_4cuda_anon_union11), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_anon_union11),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_anon_union11) __PYX_ERR(3, 2746, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUarrayMapInfo_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUarrayMapInfo_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUarrayMapInfo_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUarrayMapInfo_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUarrayMapInfo_st) __PYX_ERR(3, 2762, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUmemLocation_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUmemLocation_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUmemLocation_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUmemLocation_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUmemLocation_st) __PYX_ERR(3, 2804, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_anon_struct21 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "anon_struct21", sizeof(struct __pyx_obj_4cuda_4cuda_anon_struct21), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_anon_struct21),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_anon_struct21) __PYX_ERR(3, 2824, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUmemAllocationProp_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUmemAllocationProp_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUmemAllocationProp_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUmemAllocationProp_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUmemAllocationProp_st) __PYX_ERR(3, 2845, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUmulticastObjectProp_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUmulticastObjectProp_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUmulticastObjectProp_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUmulticastObjectProp_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUmulticastObjectProp_st) __PYX_ERR(3, 2877, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUmemAccessDesc_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUmemAccessDesc_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUmemAccessDesc_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUmemAccessDesc_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUmemAccessDesc_st) __PYX_ERR(3, 2904, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUgraphExecUpdateResultInfo_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUgraphExecUpdateResultInfo_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUgraphExecUpdateResultInfo_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUgraphExecUpdateResultInfo_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUgraphExecUpdateResultInfo_st) __PYX_ERR(3, 2925, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUmemPoolProps_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUmemPoolProps_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUmemPoolProps_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUmemPoolProps_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUmemPoolProps_st) __PYX_ERR(3, 2952, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUmemPoolPtrExportData_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUmemPoolPtrExportData_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUmemPoolPtrExportData_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUmemPoolPtrExportData_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUmemPoolPtrExportData_st) __PYX_ERR(3, 2989, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v1_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_MEM_ALLOC_NODE_PARAMS_v1_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v1_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v1_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v1_st) __PYX_ERR(3, 3007, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v2_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_MEM_ALLOC_NODE_PARAMS_v2_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v2_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v2_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v2_st) __PYX_ERR(3, 3042, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_MEM_FREE_NODE_PARAMS_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_MEM_FREE_NODE_PARAMS_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_MEM_FREE_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_MEM_FREE_NODE_PARAMS_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_MEM_FREE_NODE_PARAMS_st) __PYX_ERR(3, 3077, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_CHILD_GRAPH_NODE_PARAMS_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_CHILD_GRAPH_NODE_PARAMS_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_CHILD_GRAPH_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_CHILD_GRAPH_NODE_PARAMS_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_CHILD_GRAPH_NODE_PARAMS_st) __PYX_ERR(3, 3096, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_EVENT_RECORD_NODE_PARAMS_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_EVENT_RECORD_NODE_PARAMS_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_EVENT_RECORD_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_EVENT_RECORD_NODE_PARAMS_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_EVENT_RECORD_NODE_PARAMS_st) __PYX_ERR(3, 3116, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_EVENT_WAIT_NODE_PARAMS_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_EVENT_WAIT_NODE_PARAMS_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_EVENT_WAIT_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_EVENT_WAIT_NODE_PARAMS_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_EVENT_WAIT_NODE_PARAMS_st) __PYX_ERR(3, 3135, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUgraphNodeParams_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUgraphNodeParams_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUgraphNodeParams_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUgraphNodeParams_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUgraphNodeParams_st) __PYX_ERR(3, 3154, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUdevSmResource_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUdevSmResource_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUdevSmResource_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUdevSmResource_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUdevSmResource_st) __PYX_ERR(3, 3217, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUdevResource_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUdevResource_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUdevResource_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUdevResource_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUdevResource_st) __PYX_ERR(3, 3234, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_anon_union14 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "anon_union14", sizeof(struct __pyx_obj_4cuda_4cuda_anon_union14), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_anon_union14),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_anon_union14) __PYX_ERR(3, 3257, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUeglFrame_st = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUeglFrame_st", sizeof(struct __pyx_obj_4cuda_4cuda_CUeglFrame_st), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUeglFrame_st),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUeglFrame_st) __PYX_ERR(3, 3274, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUdeviceptr = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUdeviceptr", sizeof(struct __pyx_obj_4cuda_4cuda_CUdeviceptr), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUdeviceptr),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUdeviceptr) __PYX_ERR(3, 3313, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUdevice = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUdevice", sizeof(struct __pyx_obj_4cuda_4cuda_CUdevice), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUdevice),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUdevice) __PYX_ERR(3, 3327, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUtexObject = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUtexObject", sizeof(struct __pyx_obj_4cuda_4cuda_CUtexObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUtexObject),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUtexObject) __PYX_ERR(3, 3341, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUsurfObject = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUsurfObject", sizeof(struct __pyx_obj_4cuda_4cuda_CUsurfObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUsurfObject),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUsurfObject) __PYX_ERR(3, 3355, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUgraphConditionalHandle = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUgraphConditionalHandle", sizeof(struct __pyx_obj_4cuda_4cuda_CUgraphConditionalHandle), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUgraphConditionalHandle),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUgraphConditionalHandle) __PYX_ERR(3, 3369, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUuuid = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUuuid", sizeof(struct __pyx_obj_4cuda_4cuda_CUuuid), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUuuid),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUuuid) __PYX_ERR(3, 3381, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUmemFabricHandle_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUmemFabricHandle_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUmemFabricHandle_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUmemFabricHandle_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUmemFabricHandle_v1) __PYX_ERR(3, 3396, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUmemFabricHandle = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUmemFabricHandle", sizeof(struct __pyx_obj_4cuda_4cuda_CUmemFabricHandle), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUmemFabricHandle),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUmemFabricHandle) __PYX_ERR(3, 3416, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUipcEventHandle_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUipcEventHandle_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUipcEventHandle_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUipcEventHandle_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUipcEventHandle_v1) __PYX_ERR(3, 3436, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUipcEventHandle = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUipcEventHandle", sizeof(struct __pyx_obj_4cuda_4cuda_CUipcEventHandle), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUipcEventHandle),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUipcEventHandle) __PYX_ERR(3, 3453, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUipcMemHandle_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUipcMemHandle_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUipcMemHandle_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUipcMemHandle_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUipcMemHandle_v1) __PYX_ERR(3, 3470, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUipcMemHandle = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUipcMemHandle", sizeof(struct __pyx_obj_4cuda_4cuda_CUipcMemHandle), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUipcMemHandle),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUipcMemHandle) __PYX_ERR(3, 3487, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUstreamBatchMemOpParams_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUstreamBatchMemOpParams_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUstreamBatchMemOpParams_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUstreamBatchMemOpParams_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUstreamBatchMemOpParams_v1) __PYX_ERR(3, 3504, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUstreamBatchMemOpParams = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUstreamBatchMemOpParams", sizeof(struct __pyx_obj_4cuda_4cuda_CUstreamBatchMemOpParams), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUstreamBatchMemOpParams),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUstreamBatchMemOpParams) __PYX_ERR(3, 3531, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_BATCH_MEM_OP_NODE_PARAMS_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1) __PYX_ERR(3, 3558, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_BATCH_MEM_OP_NODE_PARAMS", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS) __PYX_ERR(3, 3579, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_BATCH_MEM_OP_NODE_PARAMS_v2", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2) __PYX_ERR(3, 3600, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUasyncNotificationInfo = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUasyncNotificationInfo", sizeof(struct __pyx_obj_4cuda_4cuda_CUasyncNotificationInfo), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUasyncNotificationInfo),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUasyncNotificationInfo) __PYX_ERR(3, 3623, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUdevprop_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUdevprop_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUdevprop_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUdevprop_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUdevprop_v1) __PYX_ERR(3, 3642, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUdevprop = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUdevprop", sizeof(struct __pyx_obj_4cuda_4cuda_CUdevprop), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUdevprop),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUdevprop) __PYX_ERR(3, 3677, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUaccessPolicyWindow_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUaccessPolicyWindow_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUaccessPolicyWindow_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUaccessPolicyWindow_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUaccessPolicyWindow_v1) __PYX_ERR(3, 3712, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUaccessPolicyWindow = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUaccessPolicyWindow", sizeof(struct __pyx_obj_4cuda_4cuda_CUaccessPolicyWindow), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUaccessPolicyWindow),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUaccessPolicyWindow) __PYX_ERR(3, 3749, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_KERNEL_NODE_PARAMS_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v1) __PYX_ERR(3, 3786, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v2 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_KERNEL_NODE_PARAMS_v2", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v2), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v2),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v2) __PYX_ERR(3, 3821, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_KERNEL_NODE_PARAMS", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS) __PYX_ERR(3, 3862, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v3 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_KERNEL_NODE_PARAMS_v3", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v3), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v3),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_KERNEL_NODE_PARAMS_v3) __PYX_ERR(3, 3903, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_MEMSET_NODE_PARAMS_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_v1) __PYX_ERR(3, 3944, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_MEMSET_NODE_PARAMS", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS) __PYX_ERR(3, 3971, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_v2 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_MEMSET_NODE_PARAMS_v2", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_v2), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_v2),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_MEMSET_NODE_PARAMS_v2) __PYX_ERR(3, 3998, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_HOST_NODE_PARAMS_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_v1) __PYX_ERR(3, 4027, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_HOST_NODE_PARAMS = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_HOST_NODE_PARAMS", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_HOST_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_HOST_NODE_PARAMS),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_HOST_NODE_PARAMS) __PYX_ERR(3, 4046, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_v2 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_HOST_NODE_PARAMS_v2", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_v2), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_v2),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_HOST_NODE_PARAMS_v2) __PYX_ERR(3, 4065, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUgraphEdgeData = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUgraphEdgeData", sizeof(struct __pyx_obj_4cuda_4cuda_CUgraphEdgeData), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUgraphEdgeData),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUgraphEdgeData) __PYX_ERR(3, 4084, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_GRAPH_INSTANTIATE_PARAMS = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_GRAPH_INSTANTIATE_PARAMS", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_GRAPH_INSTANTIATE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_GRAPH_INSTANTIATE_PARAMS),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_GRAPH_INSTANTIATE_PARAMS) __PYX_ERR(3, 4126, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUlaunchMemSyncDomainMap = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUlaunchMemSyncDomainMap", sizeof(struct __pyx_obj_4cuda_4cuda_CUlaunchMemSyncDomainMap), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUlaunchMemSyncDomainMap),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUlaunchMemSyncDomainMap) __PYX_ERR(3, 4149, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUlaunchAttributeValue = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUlaunchAttributeValue", sizeof(struct __pyx_obj_4cuda_4cuda_CUlaunchAttributeValue), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUlaunchAttributeValue),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUlaunchAttributeValue) __PYX_ERR(3, 4174, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUlaunchAttribute = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUlaunchAttribute", sizeof(struct __pyx_obj_4cuda_4cuda_CUlaunchAttribute), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUlaunchAttribute),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUlaunchAttribute) __PYX_ERR(3, 4247, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUlaunchConfig = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUlaunchConfig", sizeof(struct __pyx_obj_4cuda_4cuda_CUlaunchConfig), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUlaunchConfig),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUlaunchConfig) __PYX_ERR(3, 4266, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUkernelNodeAttrValue_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUkernelNodeAttrValue_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUkernelNodeAttrValue_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUkernelNodeAttrValue_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUkernelNodeAttrValue_v1) __PYX_ERR(3, 4301, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUkernelNodeAttrValue = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUkernelNodeAttrValue", sizeof(struct __pyx_obj_4cuda_4cuda_CUkernelNodeAttrValue), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUkernelNodeAttrValue),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUkernelNodeAttrValue) __PYX_ERR(3, 4374, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUstreamAttrValue_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUstreamAttrValue_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUstreamAttrValue_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUstreamAttrValue_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUstreamAttrValue_v1) __PYX_ERR(3, 4447, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUstreamAttrValue = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUstreamAttrValue", sizeof(struct __pyx_obj_4cuda_4cuda_CUstreamAttrValue), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUstreamAttrValue),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUstreamAttrValue) __PYX_ERR(3, 4520, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUexecAffinitySmCount_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUexecAffinitySmCount_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUexecAffinitySmCount_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUexecAffinitySmCount_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUexecAffinitySmCount_v1) __PYX_ERR(3, 4593, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUexecAffinitySmCount = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUexecAffinitySmCount", sizeof(struct __pyx_obj_4cuda_4cuda_CUexecAffinitySmCount), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUexecAffinitySmCount),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUexecAffinitySmCount) __PYX_ERR(3, 4610, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUexecAffinityParam_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUexecAffinityParam_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUexecAffinityParam_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUexecAffinityParam_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUexecAffinityParam_v1) __PYX_ERR(3, 4627, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUexecAffinityParam = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUexecAffinityParam", sizeof(struct __pyx_obj_4cuda_4cuda_CUexecAffinityParam), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUexecAffinityParam),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUexecAffinityParam) __PYX_ERR(3, 4646, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUctxCigParam = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUctxCigParam", sizeof(struct __pyx_obj_4cuda_4cuda_CUctxCigParam), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUctxCigParam),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUctxCigParam) __PYX_ERR(3, 4665, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUctxCreateParams = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUctxCreateParams", sizeof(struct __pyx_obj_4cuda_4cuda_CUctxCreateParams), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUctxCreateParams),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUctxCreateParams) __PYX_ERR(3, 4684, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUlibraryHostUniversalFunctionAndDataTable = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUlibraryHostUniversalFunctionAndDataTable", sizeof(struct __pyx_obj_4cuda_4cuda_CUlibraryHostUniversalFunctionAndDataTable), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUlibraryHostUniversalFunctionAndDataTable),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUlibraryHostUniversalFunctionAndDataTable) __PYX_ERR(3, 4706, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_MEMCPY2D_v2 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_MEMCPY2D_v2", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY2D_v2), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY2D_v2),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY2D_v2) __PYX_ERR(3, 4727, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_MEMCPY2D = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_MEMCPY2D", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY2D), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY2D),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY2D) __PYX_ERR(3, 4774, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_MEMCPY3D_v2 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_MEMCPY3D_v2", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY3D_v2), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY3D_v2),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY3D_v2) __PYX_ERR(3, 4821, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_MEMCPY3D = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_MEMCPY3D", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY3D), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY3D),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY3D) __PYX_ERR(3, 4887, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_MEMCPY3D_PEER_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_MEMCPY3D_PEER_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY3D_PEER_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY3D_PEER_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY3D_PEER_v1) __PYX_ERR(3, 4953, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_MEMCPY3D_PEER = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_MEMCPY3D_PEER", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY3D_PEER), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY3D_PEER),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY3D_PEER) __PYX_ERR(3, 5020, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_MEMCPY_NODE_PARAMS = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_MEMCPY_NODE_PARAMS", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_MEMCPY_NODE_PARAMS),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_MEMCPY_NODE_PARAMS) __PYX_ERR(3, 5087, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_ARRAY_DESCRIPTOR_v2 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_ARRAY_DESCRIPTOR_v2", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_DESCRIPTOR_v2), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_DESCRIPTOR_v2),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_ARRAY_DESCRIPTOR_v2) __PYX_ERR(3, 5110, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_ARRAY_DESCRIPTOR = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_ARRAY_DESCRIPTOR", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_DESCRIPTOR), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_DESCRIPTOR),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_ARRAY_DESCRIPTOR) __PYX_ERR(3, 5133, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_ARRAY3D_DESCRIPTOR_v2 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_ARRAY3D_DESCRIPTOR_v2", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY3D_DESCRIPTOR_v2), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY3D_DESCRIPTOR_v2),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_ARRAY3D_DESCRIPTOR_v2) __PYX_ERR(3, 5156, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_ARRAY3D_DESCRIPTOR = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_ARRAY3D_DESCRIPTOR", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY3D_DESCRIPTOR), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY3D_DESCRIPTOR),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_ARRAY3D_DESCRIPTOR) __PYX_ERR(3, 5183, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_ARRAY_SPARSE_PROPERTIES_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_ARRAY_SPARSE_PROPERTIES_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_SPARSE_PROPERTIES_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_SPARSE_PROPERTIES_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_ARRAY_SPARSE_PROPERTIES_v1) __PYX_ERR(3, 5210, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_ARRAY_SPARSE_PROPERTIES = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_ARRAY_SPARSE_PROPERTIES", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_SPARSE_PROPERTIES), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_SPARSE_PROPERTIES),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_ARRAY_SPARSE_PROPERTIES) __PYX_ERR(3, 5236, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_ARRAY_MEMORY_REQUIREMENTS_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_ARRAY_MEMORY_REQUIREMENTS_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_MEMORY_REQUIREMENTS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_MEMORY_REQUIREMENTS_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_ARRAY_MEMORY_REQUIREMENTS_v1) __PYX_ERR(3, 5262, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_ARRAY_MEMORY_REQUIREMENTS = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_ARRAY_MEMORY_REQUIREMENTS", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_MEMORY_REQUIREMENTS), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_ARRAY_MEMORY_REQUIREMENTS),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_ARRAY_MEMORY_REQUIREMENTS) __PYX_ERR(3, 5283, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_RESOURCE_DESC_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_RESOURCE_DESC_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_RESOURCE_DESC_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_RESOURCE_DESC_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_RESOURCE_DESC_v1) __PYX_ERR(3, 5304, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_RESOURCE_DESC = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_RESOURCE_DESC", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_RESOURCE_DESC), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_RESOURCE_DESC),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_RESOURCE_DESC) __PYX_ERR(3, 5325, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_TEXTURE_DESC_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_TEXTURE_DESC_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_TEXTURE_DESC_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_TEXTURE_DESC_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_TEXTURE_DESC_v1) __PYX_ERR(3, 5346, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_TEXTURE_DESC = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_TEXTURE_DESC", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_TEXTURE_DESC), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_TEXTURE_DESC),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_TEXTURE_DESC) __PYX_ERR(3, 5381, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_RESOURCE_VIEW_DESC_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_RESOURCE_VIEW_DESC_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_RESOURCE_VIEW_DESC_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_RESOURCE_VIEW_DESC_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_RESOURCE_VIEW_DESC_v1) __PYX_ERR(3, 5416, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_RESOURCE_VIEW_DESC = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_RESOURCE_VIEW_DESC", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_RESOURCE_VIEW_DESC), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_RESOURCE_VIEW_DESC),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_RESOURCE_VIEW_DESC) __PYX_ERR(3, 5449, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUtensorMap = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUtensorMap", sizeof(struct __pyx_obj_4cuda_4cuda_CUtensorMap), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUtensorMap),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUtensorMap) __PYX_ERR(3, 5482, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1) __PYX_ERR(3, 5500, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_POINTER_ATTRIBUTE_P2P_TOKENS", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS) __PYX_ERR(3, 5519, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_LAUNCH_PARAMS_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_LAUNCH_PARAMS_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_LAUNCH_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_LAUNCH_PARAMS_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_LAUNCH_PARAMS_v1) __PYX_ERR(3, 5538, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_LAUNCH_PARAMS = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_LAUNCH_PARAMS", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_LAUNCH_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_LAUNCH_PARAMS),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_LAUNCH_PARAMS) __PYX_ERR(3, 5573, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1) __PYX_ERR(3, 5608, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_HANDLE_DESC = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_EXTERNAL_MEMORY_HANDLE_DESC", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_HANDLE_DESC), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_HANDLE_DESC),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_HANDLE_DESC) __PYX_ERR(3, 5633, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1) __PYX_ERR(3, 5658, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_BUFFER_DESC = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_EXTERNAL_MEMORY_BUFFER_DESC", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_BUFFER_DESC), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_BUFFER_DESC),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_BUFFER_DESC) __PYX_ERR(3, 5681, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1) __PYX_ERR(3, 5704, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC) __PYX_ERR(3, 5728, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1) __PYX_ERR(3, 5752, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC) __PYX_ERR(3, 5775, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1) __PYX_ERR(3, 5798, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS) __PYX_ERR(3, 5826, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1) __PYX_ERR(3, 5854, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS) __PYX_ERR(3, 5882, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1) __PYX_ERR(3, 5910, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_EXT_SEM_SIGNAL_NODE_PARAMS", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS) __PYX_ERR(3, 5932, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2) __PYX_ERR(3, 5954, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1) __PYX_ERR(3, 5976, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_EXT_SEM_WAIT_NODE_PARAMS", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS) __PYX_ERR(3, 5998, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2) __PYX_ERR(3, 6020, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUmemGenericAllocationHandle = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUmemGenericAllocationHandle", sizeof(struct __pyx_obj_4cuda_4cuda_CUmemGenericAllocationHandle), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUmemGenericAllocationHandle),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUmemGenericAllocationHandle) __PYX_ERR(3, 6042, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUarrayMapInfo_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUarrayMapInfo_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUarrayMapInfo_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUarrayMapInfo_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUarrayMapInfo_v1) __PYX_ERR(3, 6054, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUarrayMapInfo = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUarrayMapInfo", sizeof(struct __pyx_obj_4cuda_4cuda_CUarrayMapInfo), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUarrayMapInfo),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUarrayMapInfo) __PYX_ERR(3, 6092, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUmemLocation_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUmemLocation_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUmemLocation_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUmemLocation_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUmemLocation_v1) __PYX_ERR(3, 6130, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUmemLocation = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUmemLocation", sizeof(struct __pyx_obj_4cuda_4cuda_CUmemLocation), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUmemLocation),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUmemLocation) __PYX_ERR(3, 6149, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUmemAllocationProp_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUmemAllocationProp_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUmemAllocationProp_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUmemAllocationProp_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUmemAllocationProp_v1) __PYX_ERR(3, 6168, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUmemAllocationProp = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUmemAllocationProp", sizeof(struct __pyx_obj_4cuda_4cuda_CUmemAllocationProp), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUmemAllocationProp),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUmemAllocationProp) __PYX_ERR(3, 6197, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUmulticastObjectProp_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUmulticastObjectProp_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUmulticastObjectProp_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUmulticastObjectProp_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUmulticastObjectProp_v1) __PYX_ERR(3, 6226, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUmulticastObjectProp = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUmulticastObjectProp", sizeof(struct __pyx_obj_4cuda_4cuda_CUmulticastObjectProp), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUmulticastObjectProp),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUmulticastObjectProp) __PYX_ERR(3, 6252, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUmemAccessDesc_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUmemAccessDesc_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUmemAccessDesc_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUmemAccessDesc_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUmemAccessDesc_v1) __PYX_ERR(3, 6278, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUmemAccessDesc = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUmemAccessDesc", sizeof(struct __pyx_obj_4cuda_4cuda_CUmemAccessDesc), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUmemAccessDesc),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUmemAccessDesc) __PYX_ERR(3, 6297, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUgraphExecUpdateResultInfo_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUgraphExecUpdateResultInfo_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUgraphExecUpdateResultInfo_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUgraphExecUpdateResultInfo_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUgraphExecUpdateResultInfo_v1) __PYX_ERR(3, 6316, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUgraphExecUpdateResultInfo = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUgraphExecUpdateResultInfo", sizeof(struct __pyx_obj_4cuda_4cuda_CUgraphExecUpdateResultInfo), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUgraphExecUpdateResultInfo),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUgraphExecUpdateResultInfo) __PYX_ERR(3, 6340, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUmemPoolProps_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUmemPoolProps_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUmemPoolProps_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUmemPoolProps_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUmemPoolProps_v1) __PYX_ERR(3, 6364, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUmemPoolProps = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUmemPoolProps", sizeof(struct __pyx_obj_4cuda_4cuda_CUmemPoolProps), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUmemPoolProps),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUmemPoolProps) __PYX_ERR(3, 6399, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUmemPoolPtrExportData_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUmemPoolPtrExportData_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUmemPoolPtrExportData_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUmemPoolPtrExportData_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUmemPoolPtrExportData_v1) __PYX_ERR(3, 6434, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUmemPoolPtrExportData = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUmemPoolPtrExportData", sizeof(struct __pyx_obj_4cuda_4cuda_CUmemPoolPtrExportData), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUmemPoolPtrExportData),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUmemPoolPtrExportData) __PYX_ERR(3, 6451, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_MEM_ALLOC_NODE_PARAMS_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v1) __PYX_ERR(3, 6468, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_MEM_ALLOC_NODE_PARAMS", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS) __PYX_ERR(3, 6497, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v2 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_MEM_ALLOC_NODE_PARAMS_v2", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v2), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v2),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_MEM_ALLOC_NODE_PARAMS_v2) __PYX_ERR(3, 6526, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_MEM_FREE_NODE_PARAMS = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_MEM_FREE_NODE_PARAMS", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_MEM_FREE_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_MEM_FREE_NODE_PARAMS),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_MEM_FREE_NODE_PARAMS) __PYX_ERR(3, 6555, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_CHILD_GRAPH_NODE_PARAMS = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_CHILD_GRAPH_NODE_PARAMS", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_CHILD_GRAPH_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_CHILD_GRAPH_NODE_PARAMS),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_CHILD_GRAPH_NODE_PARAMS) __PYX_ERR(3, 6572, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_EVENT_RECORD_NODE_PARAMS = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_EVENT_RECORD_NODE_PARAMS", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_EVENT_RECORD_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_EVENT_RECORD_NODE_PARAMS),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_EVENT_RECORD_NODE_PARAMS) __PYX_ERR(3, 6590, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUDA_EVENT_WAIT_NODE_PARAMS = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUDA_EVENT_WAIT_NODE_PARAMS", sizeof(struct __pyx_obj_4cuda_4cuda_CUDA_EVENT_WAIT_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUDA_EVENT_WAIT_NODE_PARAMS),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUDA_EVENT_WAIT_NODE_PARAMS) __PYX_ERR(3, 6607, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUgraphNodeParams = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUgraphNodeParams", sizeof(struct __pyx_obj_4cuda_4cuda_CUgraphNodeParams), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUgraphNodeParams),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUgraphNodeParams) __PYX_ERR(3, 6624, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUdevSmResource = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUdevSmResource", sizeof(struct __pyx_obj_4cuda_4cuda_CUdevSmResource), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUdevSmResource),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUdevSmResource) __PYX_ERR(3, 6673, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUdevResource_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUdevResource_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUdevResource_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUdevResource_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUdevResource_v1) __PYX_ERR(3, 6689, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUdevResource = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUdevResource", sizeof(struct __pyx_obj_4cuda_4cuda_CUdevResource), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUdevResource),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUdevResource) __PYX_ERR(3, 6710, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUeglFrame_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUeglFrame_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUeglFrame_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUeglFrame_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUeglFrame_v1) __PYX_ERR(3, 6731, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUeglFrame = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUeglFrame", sizeof(struct __pyx_obj_4cuda_4cuda_CUeglFrame), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUeglFrame),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUeglFrame) __PYX_ERR(3, 6768, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_cuuint32_t = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "cuuint32_t", sizeof(struct __pyx_obj_4cuda_4cuda_cuuint32_t), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_cuuint32_t),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_cuuint32_t) __PYX_ERR(3, 6805, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_cuuint64_t = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "cuuint64_t", sizeof(struct __pyx_obj_4cuda_4cuda_cuuint64_t), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_cuuint64_t),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_cuuint64_t) __PYX_ERR(3, 6817, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUdeviceptr_v2 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUdeviceptr_v2", sizeof(struct __pyx_obj_4cuda_4cuda_CUdeviceptr_v2), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUdeviceptr_v2),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUdeviceptr_v2) __PYX_ERR(3, 6829, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUdevice_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUdevice_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUdevice_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUdevice_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUdevice_v1) __PYX_ERR(3, 6843, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUtexObject_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUtexObject_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUtexObject_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUtexObject_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUtexObject_v1) __PYX_ERR(3, 6857, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUsurfObject_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUsurfObject_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUsurfObject_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUsurfObject_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUsurfObject_v1) __PYX_ERR(3, 6871, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_CUmemGenericAllocationHandle_v1 = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "CUmemGenericAllocationHandle_v1", sizeof(struct __pyx_obj_4cuda_4cuda_CUmemGenericAllocationHandle_v1), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_CUmemGenericAllocationHandle_v1),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_CUmemGenericAllocationHandle_v1) __PYX_ERR(3, 6885, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_GLenum = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "GLenum", sizeof(struct __pyx_obj_4cuda_4cuda_GLenum), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_GLenum),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_GLenum) __PYX_ERR(3, 6897, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_GLuint = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "GLuint", sizeof(struct __pyx_obj_4cuda_4cuda_GLuint), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_GLuint),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_GLuint) __PYX_ERR(3, 6909, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_EGLint = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "EGLint", sizeof(struct __pyx_obj_4cuda_4cuda_EGLint), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_EGLint),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_EGLint) __PYX_ERR(3, 6921, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_VdpDevice = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "VdpDevice", sizeof(struct __pyx_obj_4cuda_4cuda_VdpDevice), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_VdpDevice),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_VdpDevice) __PYX_ERR(3, 6933, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_VdpGetProcAddress = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "VdpGetProcAddress", sizeof(struct __pyx_obj_4cuda_4cuda_VdpGetProcAddress), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_VdpGetProcAddress),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_VdpGetProcAddress) __PYX_ERR(3, 6945, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_VdpVideoSurface = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "VdpVideoSurface", sizeof(struct __pyx_obj_4cuda_4cuda_VdpVideoSurface), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_VdpVideoSurface),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_VdpVideoSurface) __PYX_ERR(3, 6957, __pyx_L1_error) __pyx_ptype_4cuda_4cuda_VdpOutputSurface = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda.cuda", "VdpOutputSurface", sizeof(struct __pyx_obj_4cuda_4cuda_VdpOutputSurface), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4cuda_VdpOutputSurface),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4cuda_VdpOutputSurface) __PYX_ERR(3, 6969, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyImport_ImportModule("cuda._lib.utils"); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_4cuda_4_lib_5utils_HelperKernelParams = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda._lib.utils", "HelperKernelParams", sizeof(struct __pyx_obj_4cuda_4_lib_5utils_HelperKernelParams), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4_lib_5utils_HelperKernelParams),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4_lib_5utils_HelperKernelParams) __PYX_ERR(4, 12, __pyx_L1_error) __pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda._lib.utils", "HelperInputVoidPtr", sizeof(struct __pyx_obj_4cuda_4_lib_5utils_HelperInputVoidPtr), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4_lib_5utils_HelperInputVoidPtr),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4_lib_5utils_HelperInputVoidPtr) __PYX_ERR(4, 20, __pyx_L1_error) __pyx_ptype_4cuda_4_lib_5utils_HelperCUmemPool_attribute = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda._lib.utils", "HelperCUmemPool_attribute", sizeof(struct __pyx_obj_4cuda_4_lib_5utils_HelperCUmemPool_attribute), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4_lib_5utils_HelperCUmemPool_attribute),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4_lib_5utils_HelperCUmemPool_attribute) __PYX_ERR(4, 25, __pyx_L1_error) __pyx_ptype_4cuda_4_lib_5utils_HelperCUmem_range_attribute = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda._lib.utils", "HelperCUmem_range_attribute", sizeof(struct __pyx_obj_4cuda_4_lib_5utils_HelperCUmem_range_attribute), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4_lib_5utils_HelperCUmem_range_attribute),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4_lib_5utils_HelperCUmem_range_attribute) __PYX_ERR(4, 34, __pyx_L1_error) __pyx_ptype_4cuda_4_lib_5utils_HelperCUpointer_attribute = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda._lib.utils", "HelperCUpointer_attribute", sizeof(struct __pyx_obj_4cuda_4_lib_5utils_HelperCUpointer_attribute), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4_lib_5utils_HelperCUpointer_attribute),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4_lib_5utils_HelperCUpointer_attribute) __PYX_ERR(4, 43, __pyx_L1_error) __pyx_ptype_4cuda_4_lib_5utils_HelperCUgraphMem_attribute = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda._lib.utils", "HelperCUgraphMem_attribute", sizeof(struct __pyx_obj_4cuda_4_lib_5utils_HelperCUgraphMem_attribute), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4_lib_5utils_HelperCUgraphMem_attribute),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4_lib_5utils_HelperCUgraphMem_attribute) __PYX_ERR(4, 59, __pyx_L1_error) __pyx_ptype_4cuda_4_lib_5utils_HelperCUjit_option = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda._lib.utils", "HelperCUjit_option", sizeof(struct __pyx_obj_4cuda_4_lib_5utils_HelperCUjit_option), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4_lib_5utils_HelperCUjit_option),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4_lib_5utils_HelperCUjit_option) __PYX_ERR(4, 67, __pyx_L1_error) __pyx_ptype_4cuda_4_lib_5utils_HelperCUlibraryOption = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda._lib.utils", "HelperCUlibraryOption", sizeof(struct __pyx_obj_4cuda_4_lib_5utils_HelperCUlibraryOption), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4_lib_5utils_HelperCUlibraryOption),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4_lib_5utils_HelperCUlibraryOption) __PYX_ERR(4, 82, __pyx_L1_error) __pyx_ptype_4cuda_4_lib_5utils_HelperCUmemAllocationHandleType = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda._lib.utils", "HelperCUmemAllocationHandleType", sizeof(struct __pyx_obj_4cuda_4_lib_5utils_HelperCUmemAllocationHandleType), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4_lib_5utils_HelperCUmemAllocationHandleType),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4_lib_5utils_HelperCUmemAllocationHandleType) __PYX_ERR(4, 89, __pyx_L1_error) __pyx_ptype_4cuda_4_lib_5utils_InputVoidPtrPtrHelper = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda._lib.utils", "InputVoidPtrPtrHelper", sizeof(struct __pyx_obj_4cuda_4_lib_5utils_InputVoidPtrPtrHelper), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4_lib_5utils_InputVoidPtrPtrHelper),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4_lib_5utils_InputVoidPtrPtrHelper) __PYX_ERR(4, 99, __pyx_L1_error) __pyx_ptype_4cuda_4_lib_5utils_HelperCUcoredumpSettings = __Pyx_ImportType_3_0_12(__pyx_t_1, "cuda._lib.utils", "HelperCUcoredumpSettings", sizeof(struct __pyx_obj_4cuda_4_lib_5utils_HelperCUcoredumpSettings), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_4cuda_4_lib_5utils_HelperCUcoredumpSettings),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_4cuda_4_lib_5utils_HelperCUcoredumpSettings) __PYX_ERR(4, 102, __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(5, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_7cpython_4type_type = __Pyx_ImportType_3_0_12(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type", #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000 sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyTypeObject), #elif CYTHON_COMPILING_IN_LIMITED_API sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyTypeObject), #else sizeof(PyHeapTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyHeapTypeObject), #endif __Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_7cpython_4type_type) __PYX_ERR(5, 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(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_modinit_variable_import_code", 0); /*--- Variable import code ---*/ __Pyx_RefNannyFinishContext(); return 0; } static int __Pyx_modinit_function_import_code(void) { __Pyx_RefNannyDeclarations 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.ccudart"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaDeviceReset", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaDeviceReset, "cudaError_t (void)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaDeviceSynchronize", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaDeviceSynchronize, "cudaError_t (void)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaDeviceSetLimit", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaDeviceSetLimit, "cudaError_t (enum cudaLimit, size_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaDeviceGetLimit", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaDeviceGetLimit, "cudaError_t (size_t *, enum cudaLimit)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaDeviceGetTexture1DLinearMaxWidth", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaDeviceGetTexture1DLinearMaxWidth, "cudaError_t (size_t *, struct cudaChannelFormatDesc const *, int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaDeviceGetCacheConfig", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaDeviceGetCacheConfig, "cudaError_t (enum cudaFuncCache *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaDeviceGetStreamPriorityRange", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaDeviceGetStreamPriorityRange, "cudaError_t (int *, int *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaDeviceSetCacheConfig", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaDeviceSetCacheConfig, "cudaError_t (enum cudaFuncCache)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaDeviceGetByPCIBusId", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaDeviceGetByPCIBusId, "cudaError_t (int *, char const *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaDeviceGetPCIBusId", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaDeviceGetPCIBusId, "cudaError_t (char *, int, int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaIpcGetEventHandle", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaIpcGetEventHandle, "cudaError_t (cudaIpcEventHandle_t *, cudaEvent_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaIpcOpenEventHandle", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaIpcOpenEventHandle, "cudaError_t (cudaEvent_t *, cudaIpcEventHandle_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaIpcGetMemHandle", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaIpcGetMemHandle, "cudaError_t (cudaIpcMemHandle_t *, void *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaIpcOpenMemHandle", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaIpcOpenMemHandle, "cudaError_t (void **, cudaIpcMemHandle_t, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaIpcCloseMemHandle", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaIpcCloseMemHandle, "cudaError_t (void *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaDeviceFlushGPUDirectRDMAWrites", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaDeviceFlushGPUDirectRDMAWrites, "cudaError_t (enum cudaFlushGPUDirectRDMAWritesTarget, enum cudaFlushGPUDirectRDMAWritesScope)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaDeviceRegisterAsyncNotification", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaDeviceRegisterAsyncNotification, "cudaError_t (int, cudaAsyncCallback, void *, cudaAsyncCallbackHandle_t *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaDeviceUnregisterAsyncNotification", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaDeviceUnregisterAsyncNotification, "cudaError_t (int, cudaAsyncCallbackHandle_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaDeviceGetSharedMemConfig", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaDeviceGetSharedMemConfig, "cudaError_t (enum cudaSharedMemConfig *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaDeviceSetSharedMemConfig", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaDeviceSetSharedMemConfig, "cudaError_t (enum cudaSharedMemConfig)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGetLastError", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGetLastError, "cudaError_t (void)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaPeekAtLastError", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaPeekAtLastError, "cudaError_t (void)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGetErrorName", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGetErrorName, "char const *(cudaError_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGetErrorString", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGetErrorString, "char const *(cudaError_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGetDeviceCount", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGetDeviceCount, "cudaError_t (int *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGetDeviceProperties", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGetDeviceProperties, "cudaError_t (struct cudaDeviceProp *, int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaDeviceGetAttribute", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaDeviceGetAttribute, "cudaError_t (int *, enum cudaDeviceAttr, int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaDeviceGetDefaultMemPool", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaDeviceGetDefaultMemPool, "cudaError_t (cudaMemPool_t *, int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaDeviceSetMemPool", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaDeviceSetMemPool, "cudaError_t (int, cudaMemPool_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaDeviceGetMemPool", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaDeviceGetMemPool, "cudaError_t (cudaMemPool_t *, int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaDeviceGetNvSciSyncAttributes", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaDeviceGetNvSciSyncAttributes, "cudaError_t (void *, int, int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaDeviceGetP2PAttribute", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaDeviceGetP2PAttribute, "cudaError_t (int *, enum cudaDeviceP2PAttr, int, int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaChooseDevice", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaChooseDevice, "cudaError_t (int *, struct cudaDeviceProp const *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaInitDevice", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaInitDevice, "cudaError_t (int, unsigned int, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaSetDevice", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaSetDevice, "cudaError_t (int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGetDevice", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGetDevice, "cudaError_t (int *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaSetDeviceFlags", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaSetDeviceFlags, "cudaError_t (unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGetDeviceFlags", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGetDeviceFlags, "cudaError_t (unsigned int *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaStreamCreate", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaStreamCreate, "cudaError_t (cudaStream_t *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaStreamCreateWithFlags", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaStreamCreateWithFlags, "cudaError_t (cudaStream_t *, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaStreamCreateWithPriority", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaStreamCreateWithPriority, "cudaError_t (cudaStream_t *, unsigned int, int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaStreamGetPriority", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaStreamGetPriority, "cudaError_t (cudaStream_t, int *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaStreamGetFlags", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaStreamGetFlags, "cudaError_t (cudaStream_t, unsigned int *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaStreamGetId", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaStreamGetId, "cudaError_t (cudaStream_t, unsigned PY_LONG_LONG *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaCtxResetPersistingL2Cache", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaCtxResetPersistingL2Cache, "cudaError_t (void)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaStreamCopyAttributes", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaStreamCopyAttributes, "cudaError_t (cudaStream_t, cudaStream_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaStreamGetAttribute", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaStreamGetAttribute, "cudaError_t (cudaStream_t, __pyx_t_4cuda_7ccudart_cudaStreamAttrID, __pyx_t_4cuda_7ccudart_cudaStreamAttrValue *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaStreamSetAttribute", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaStreamSetAttribute, "cudaError_t (cudaStream_t, __pyx_t_4cuda_7ccudart_cudaStreamAttrID, __pyx_t_4cuda_7ccudart_cudaStreamAttrValue const *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaStreamDestroy", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaStreamDestroy, "cudaError_t (cudaStream_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaStreamWaitEvent", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaStreamWaitEvent, "cudaError_t (cudaStream_t, cudaEvent_t, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaStreamAddCallback", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaStreamAddCallback, "cudaError_t (cudaStream_t, cudaStreamCallback_t, void *, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaStreamSynchronize", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaStreamSynchronize, "cudaError_t (cudaStream_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaStreamQuery", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaStreamQuery, "cudaError_t (cudaStream_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaStreamAttachMemAsync", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaStreamAttachMemAsync, "cudaError_t (cudaStream_t, void *, size_t, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaStreamBeginCapture", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaStreamBeginCapture, "cudaError_t (cudaStream_t, enum cudaStreamCaptureMode)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaStreamBeginCaptureToGraph", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaStreamBeginCaptureToGraph, "cudaError_t (cudaStream_t, cudaGraph_t, cudaGraphNode_t const *, cudaGraphEdgeData const *, size_t, enum cudaStreamCaptureMode)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaThreadExchangeStreamCaptureMode", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaThreadExchangeStreamCaptureMode, "cudaError_t (enum cudaStreamCaptureMode *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaStreamEndCapture", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaStreamEndCapture, "cudaError_t (cudaStream_t, cudaGraph_t *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaStreamIsCapturing", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaStreamIsCapturing, "cudaError_t (cudaStream_t, enum cudaStreamCaptureStatus *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaStreamGetCaptureInfo", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaStreamGetCaptureInfo, "cudaError_t (cudaStream_t, enum cudaStreamCaptureStatus *, unsigned PY_LONG_LONG *, cudaGraph_t *, cudaGraphNode_t const **, size_t *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaStreamGetCaptureInfo_v3", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaStreamGetCaptureInfo_v3, "cudaError_t (cudaStream_t, enum cudaStreamCaptureStatus *, unsigned PY_LONG_LONG *, cudaGraph_t *, cudaGraphNode_t const **, cudaGraphEdgeData const **, size_t *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaStreamUpdateCaptureDependencies", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaStreamUpdateCaptureDependencies, "cudaError_t (cudaStream_t, cudaGraphNode_t *, size_t, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaStreamUpdateCaptureDependencies_v2", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaStreamUpdateCaptureDependencies_v2, "cudaError_t (cudaStream_t, cudaGraphNode_t *, cudaGraphEdgeData const *, size_t, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaEventCreate", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaEventCreate, "cudaError_t (cudaEvent_t *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaEventCreateWithFlags", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaEventCreateWithFlags, "cudaError_t (cudaEvent_t *, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaEventRecord", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaEventRecord, "cudaError_t (cudaEvent_t, cudaStream_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaEventRecordWithFlags", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaEventRecordWithFlags, "cudaError_t (cudaEvent_t, cudaStream_t, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaEventQuery", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaEventQuery, "cudaError_t (cudaEvent_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaEventSynchronize", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaEventSynchronize, "cudaError_t (cudaEvent_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaEventDestroy", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaEventDestroy, "cudaError_t (cudaEvent_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaEventElapsedTime", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaEventElapsedTime, "cudaError_t (float *, cudaEvent_t, cudaEvent_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaImportExternalMemory", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaImportExternalMemory, "cudaError_t (cudaExternalMemory_t *, struct cudaExternalMemoryHandleDesc const *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaExternalMemoryGetMappedBuffer", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaExternalMemoryGetMappedBuffer, "cudaError_t (void **, cudaExternalMemory_t, struct cudaExternalMemoryBufferDesc const *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaExternalMemoryGetMappedMipmappedArray", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaExternalMemoryGetMappedMipmappedArray, "cudaError_t (cudaMipmappedArray_t *, cudaExternalMemory_t, struct cudaExternalMemoryMipmappedArrayDesc const *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaDestroyExternalMemory", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaDestroyExternalMemory, "cudaError_t (cudaExternalMemory_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaImportExternalSemaphore", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaImportExternalSemaphore, "cudaError_t (cudaExternalSemaphore_t *, struct cudaExternalSemaphoreHandleDesc const *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaSignalExternalSemaphoresAsync", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaSignalExternalSemaphoresAsync, "cudaError_t (cudaExternalSemaphore_t const *, struct cudaExternalSemaphoreSignalParams const *, unsigned int, cudaStream_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaWaitExternalSemaphoresAsync", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaWaitExternalSemaphoresAsync, "cudaError_t (cudaExternalSemaphore_t const *, struct cudaExternalSemaphoreWaitParams const *, unsigned int, cudaStream_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaDestroyExternalSemaphore", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaDestroyExternalSemaphore, "cudaError_t (cudaExternalSemaphore_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaFuncSetCacheConfig", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaFuncSetCacheConfig, "cudaError_t (void const *, enum cudaFuncCache)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaFuncGetAttributes", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaFuncGetAttributes, "cudaError_t (struct cudaFuncAttributes *, void const *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaFuncSetAttribute", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaFuncSetAttribute, "cudaError_t (void const *, enum cudaFuncAttribute, int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaLaunchHostFunc", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaLaunchHostFunc, "cudaError_t (cudaStream_t, cudaHostFn_t, void *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaFuncSetSharedMemConfig", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaFuncSetSharedMemConfig, "cudaError_t (void const *, enum cudaSharedMemConfig)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaOccupancyMaxActiveBlocksPerMultiprocessor", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaOccupancyMaxActiveBlocksPerMultiprocessor, "cudaError_t (int *, void const *, int, size_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaOccupancyAvailableDynamicSMemPerBlock", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaOccupancyAvailableDynamicSMemPerBlock, "cudaError_t (size_t *, void const *, int, int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags, "cudaError_t (int *, void const *, int, size_t, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMallocManaged", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMallocManaged, "cudaError_t (void **, size_t, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMalloc", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMalloc, "cudaError_t (void **, size_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMallocHost", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMallocHost, "cudaError_t (void **, size_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMallocPitch", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMallocPitch, "cudaError_t (void **, size_t *, size_t, size_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMallocArray", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMallocArray, "cudaError_t (cudaArray_t *, struct cudaChannelFormatDesc const *, size_t, size_t, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaFree", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaFree, "cudaError_t (void *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaFreeHost", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaFreeHost, "cudaError_t (void *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaFreeArray", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaFreeArray, "cudaError_t (cudaArray_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaFreeMipmappedArray", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaFreeMipmappedArray, "cudaError_t (cudaMipmappedArray_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaHostAlloc", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaHostAlloc, "cudaError_t (void **, size_t, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaHostRegister", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaHostRegister, "cudaError_t (void *, size_t, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaHostUnregister", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaHostUnregister, "cudaError_t (void *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaHostGetDevicePointer", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaHostGetDevicePointer, "cudaError_t (void **, void *, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaHostGetFlags", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaHostGetFlags, "cudaError_t (unsigned int *, void *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMalloc3D", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMalloc3D, "cudaError_t (struct cudaPitchedPtr *, struct cudaExtent)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMalloc3DArray", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMalloc3DArray, "cudaError_t (cudaArray_t *, struct cudaChannelFormatDesc const *, struct cudaExtent, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMallocMipmappedArray", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMallocMipmappedArray, "cudaError_t (cudaMipmappedArray_t *, struct cudaChannelFormatDesc const *, struct cudaExtent, unsigned int, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGetMipmappedArrayLevel", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGetMipmappedArrayLevel, "cudaError_t (cudaArray_t *, cudaMipmappedArray_const_t, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemcpy3D", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemcpy3D, "cudaError_t (struct cudaMemcpy3DParms const *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemcpy3DPeer", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemcpy3DPeer, "cudaError_t (struct cudaMemcpy3DPeerParms const *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemcpy3DAsync", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemcpy3DAsync, "cudaError_t (struct cudaMemcpy3DParms const *, cudaStream_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemcpy3DPeerAsync", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemcpy3DPeerAsync, "cudaError_t (struct cudaMemcpy3DPeerParms const *, cudaStream_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemGetInfo", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemGetInfo, "cudaError_t (size_t *, size_t *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaArrayGetInfo", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaArrayGetInfo, "cudaError_t (struct cudaChannelFormatDesc *, struct cudaExtent *, unsigned int *, cudaArray_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaArrayGetPlane", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaArrayGetPlane, "cudaError_t (cudaArray_t *, cudaArray_t, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaArrayGetMemoryRequirements", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaArrayGetMemoryRequirements, "cudaError_t (struct cudaArrayMemoryRequirements *, cudaArray_t, int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMipmappedArrayGetMemoryRequirements", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMipmappedArrayGetMemoryRequirements, "cudaError_t (struct cudaArrayMemoryRequirements *, cudaMipmappedArray_t, int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaArrayGetSparseProperties", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaArrayGetSparseProperties, "cudaError_t (struct cudaArraySparseProperties *, cudaArray_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMipmappedArrayGetSparseProperties", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMipmappedArrayGetSparseProperties, "cudaError_t (struct cudaArraySparseProperties *, cudaMipmappedArray_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemcpy", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemcpy, "cudaError_t (void *, void const *, size_t, enum cudaMemcpyKind)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemcpyPeer", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemcpyPeer, "cudaError_t (void *, int, void const *, int, size_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemcpy2D", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemcpy2D, "cudaError_t (void *, size_t, void const *, size_t, size_t, size_t, enum cudaMemcpyKind)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemcpy2DToArray", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemcpy2DToArray, "cudaError_t (cudaArray_t, size_t, size_t, void const *, size_t, size_t, size_t, enum cudaMemcpyKind)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemcpy2DFromArray", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemcpy2DFromArray, "cudaError_t (void *, size_t, cudaArray_const_t, size_t, size_t, size_t, size_t, enum cudaMemcpyKind)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemcpy2DArrayToArray", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemcpy2DArrayToArray, "cudaError_t (cudaArray_t, size_t, size_t, cudaArray_const_t, size_t, size_t, size_t, size_t, enum cudaMemcpyKind)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemcpyAsync", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemcpyAsync, "cudaError_t (void *, void const *, size_t, enum cudaMemcpyKind, cudaStream_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemcpyPeerAsync", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemcpyPeerAsync, "cudaError_t (void *, int, void const *, int, size_t, cudaStream_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemcpy2DAsync", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemcpy2DAsync, "cudaError_t (void *, size_t, void const *, size_t, size_t, size_t, enum cudaMemcpyKind, cudaStream_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemcpy2DToArrayAsync", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemcpy2DToArrayAsync, "cudaError_t (cudaArray_t, size_t, size_t, void const *, size_t, size_t, size_t, enum cudaMemcpyKind, cudaStream_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemcpy2DFromArrayAsync", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemcpy2DFromArrayAsync, "cudaError_t (void *, size_t, cudaArray_const_t, size_t, size_t, size_t, size_t, enum cudaMemcpyKind, cudaStream_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemset", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemset, "cudaError_t (void *, int, size_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemset2D", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemset2D, "cudaError_t (void *, size_t, int, size_t, size_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemset3D", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemset3D, "cudaError_t (struct cudaPitchedPtr, int, struct cudaExtent)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemsetAsync", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemsetAsync, "cudaError_t (void *, int, size_t, cudaStream_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemset2DAsync", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemset2DAsync, "cudaError_t (void *, size_t, int, size_t, size_t, cudaStream_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemset3DAsync", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemset3DAsync, "cudaError_t (struct cudaPitchedPtr, int, struct cudaExtent, cudaStream_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemPrefetchAsync", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemPrefetchAsync, "cudaError_t (void const *, size_t, int, cudaStream_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemPrefetchAsync_v2", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemPrefetchAsync_v2, "cudaError_t (void const *, size_t, struct cudaMemLocation, unsigned int, cudaStream_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemAdvise", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemAdvise, "cudaError_t (void const *, size_t, enum cudaMemoryAdvise, int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemAdvise_v2", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemAdvise_v2, "cudaError_t (void const *, size_t, enum cudaMemoryAdvise, struct cudaMemLocation)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemRangeGetAttribute", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemRangeGetAttribute, "cudaError_t (void *, size_t, enum cudaMemRangeAttribute, void const *, size_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemRangeGetAttributes", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemRangeGetAttributes, "cudaError_t (void **, size_t *, enum cudaMemRangeAttribute *, size_t, void const *, size_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemcpyToArray", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemcpyToArray, "cudaError_t (cudaArray_t, size_t, size_t, void const *, size_t, enum cudaMemcpyKind)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemcpyFromArray", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemcpyFromArray, "cudaError_t (void *, cudaArray_const_t, size_t, size_t, size_t, enum cudaMemcpyKind)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemcpyArrayToArray", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemcpyArrayToArray, "cudaError_t (cudaArray_t, size_t, size_t, cudaArray_const_t, size_t, size_t, size_t, enum cudaMemcpyKind)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemcpyToArrayAsync", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemcpyToArrayAsync, "cudaError_t (cudaArray_t, size_t, size_t, void const *, size_t, enum cudaMemcpyKind, cudaStream_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemcpyFromArrayAsync", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemcpyFromArrayAsync, "cudaError_t (void *, cudaArray_const_t, size_t, size_t, size_t, enum cudaMemcpyKind, cudaStream_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMallocAsync", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMallocAsync, "cudaError_t (void **, size_t, cudaStream_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaFreeAsync", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaFreeAsync, "cudaError_t (void *, cudaStream_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemPoolTrimTo", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemPoolTrimTo, "cudaError_t (cudaMemPool_t, size_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemPoolSetAttribute", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemPoolSetAttribute, "cudaError_t (cudaMemPool_t, enum cudaMemPoolAttr, void *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemPoolGetAttribute", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemPoolGetAttribute, "cudaError_t (cudaMemPool_t, enum cudaMemPoolAttr, void *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemPoolSetAccess", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemPoolSetAccess, "cudaError_t (cudaMemPool_t, struct cudaMemAccessDesc const *, size_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemPoolGetAccess", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemPoolGetAccess, "cudaError_t (enum cudaMemAccessFlags *, cudaMemPool_t, struct cudaMemLocation *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemPoolCreate", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemPoolCreate, "cudaError_t (cudaMemPool_t *, struct cudaMemPoolProps const *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemPoolDestroy", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemPoolDestroy, "cudaError_t (cudaMemPool_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMallocFromPoolAsync", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMallocFromPoolAsync, "cudaError_t (void **, size_t, cudaMemPool_t, cudaStream_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemPoolExportToShareableHandle", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemPoolExportToShareableHandle, "cudaError_t (void *, cudaMemPool_t, enum cudaMemAllocationHandleType, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemPoolImportFromShareableHandle", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemPoolImportFromShareableHandle, "cudaError_t (cudaMemPool_t *, void *, enum cudaMemAllocationHandleType, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemPoolExportPointer", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemPoolExportPointer, "cudaError_t (struct cudaMemPoolPtrExportData *, void *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaMemPoolImportPointer", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaMemPoolImportPointer, "cudaError_t (void **, cudaMemPool_t, struct cudaMemPoolPtrExportData *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaPointerGetAttributes", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaPointerGetAttributes, "cudaError_t (struct cudaPointerAttributes *, void const *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaDeviceCanAccessPeer", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaDeviceCanAccessPeer, "cudaError_t (int *, int, int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaDeviceEnablePeerAccess", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaDeviceEnablePeerAccess, "cudaError_t (int, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaDeviceDisablePeerAccess", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaDeviceDisablePeerAccess, "cudaError_t (int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphicsUnregisterResource", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphicsUnregisterResource, "cudaError_t (cudaGraphicsResource_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphicsResourceSetMapFlags", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphicsResourceSetMapFlags, "cudaError_t (cudaGraphicsResource_t, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphicsMapResources", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphicsMapResources, "cudaError_t (int, cudaGraphicsResource_t *, cudaStream_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphicsUnmapResources", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphicsUnmapResources, "cudaError_t (int, cudaGraphicsResource_t *, cudaStream_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphicsResourceGetMappedPointer", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphicsResourceGetMappedPointer, "cudaError_t (void **, size_t *, cudaGraphicsResource_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphicsSubResourceGetMappedArray", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphicsSubResourceGetMappedArray, "cudaError_t (cudaArray_t *, cudaGraphicsResource_t, unsigned int, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphicsResourceGetMappedMipmappedArray", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphicsResourceGetMappedMipmappedArray, "cudaError_t (cudaMipmappedArray_t *, cudaGraphicsResource_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGetChannelDesc", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGetChannelDesc, "cudaError_t (struct cudaChannelFormatDesc *, cudaArray_const_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaCreateChannelDesc", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaCreateChannelDesc, "struct cudaChannelFormatDesc (int, int, int, int, enum cudaChannelFormatKind)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaCreateTextureObject", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaCreateTextureObject, "cudaError_t (cudaTextureObject_t *, struct cudaResourceDesc const *, struct cudaTextureDesc const *, struct cudaResourceViewDesc const *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaDestroyTextureObject", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaDestroyTextureObject, "cudaError_t (cudaTextureObject_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGetTextureObjectResourceDesc", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGetTextureObjectResourceDesc, "cudaError_t (struct cudaResourceDesc *, cudaTextureObject_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGetTextureObjectTextureDesc", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGetTextureObjectTextureDesc, "cudaError_t (struct cudaTextureDesc *, cudaTextureObject_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGetTextureObjectResourceViewDesc", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGetTextureObjectResourceViewDesc, "cudaError_t (struct cudaResourceViewDesc *, cudaTextureObject_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaCreateSurfaceObject", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaCreateSurfaceObject, "cudaError_t (cudaSurfaceObject_t *, struct cudaResourceDesc const *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaDestroySurfaceObject", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaDestroySurfaceObject, "cudaError_t (cudaSurfaceObject_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGetSurfaceObjectResourceDesc", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGetSurfaceObjectResourceDesc, "cudaError_t (struct cudaResourceDesc *, cudaSurfaceObject_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaDriverGetVersion", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaDriverGetVersion, "cudaError_t (int *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaRuntimeGetVersion", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaRuntimeGetVersion, "cudaError_t (int *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphCreate", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphCreate, "cudaError_t (cudaGraph_t *, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphAddKernelNode", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphAddKernelNode, "cudaError_t (cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, struct cudaKernelNodeParams const *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphKernelNodeGetParams", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphKernelNodeGetParams, "cudaError_t (cudaGraphNode_t, struct cudaKernelNodeParams *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphKernelNodeSetParams", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphKernelNodeSetParams, "cudaError_t (cudaGraphNode_t, struct cudaKernelNodeParams const *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphKernelNodeCopyAttributes", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphKernelNodeCopyAttributes, "cudaError_t (cudaGraphNode_t, cudaGraphNode_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphKernelNodeGetAttribute", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphKernelNodeGetAttribute, "cudaError_t (cudaGraphNode_t, __pyx_t_4cuda_7ccudart_cudaKernelNodeAttrID, __pyx_t_4cuda_7ccudart_cudaKernelNodeAttrValue *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphKernelNodeSetAttribute", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphKernelNodeSetAttribute, "cudaError_t (cudaGraphNode_t, __pyx_t_4cuda_7ccudart_cudaKernelNodeAttrID, __pyx_t_4cuda_7ccudart_cudaKernelNodeAttrValue const *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphAddMemcpyNode", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphAddMemcpyNode, "cudaError_t (cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, struct cudaMemcpy3DParms const *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphAddMemcpyNode1D", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphAddMemcpyNode1D, "cudaError_t (cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, void *, void const *, size_t, enum cudaMemcpyKind)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphMemcpyNodeGetParams", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphMemcpyNodeGetParams, "cudaError_t (cudaGraphNode_t, struct cudaMemcpy3DParms *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphMemcpyNodeSetParams", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphMemcpyNodeSetParams, "cudaError_t (cudaGraphNode_t, struct cudaMemcpy3DParms const *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphMemcpyNodeSetParams1D", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphMemcpyNodeSetParams1D, "cudaError_t (cudaGraphNode_t, void *, void const *, size_t, enum cudaMemcpyKind)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphAddMemsetNode", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphAddMemsetNode, "cudaError_t (cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, struct cudaMemsetParams const *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphMemsetNodeGetParams", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphMemsetNodeGetParams, "cudaError_t (cudaGraphNode_t, struct cudaMemsetParams *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphMemsetNodeSetParams", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphMemsetNodeSetParams, "cudaError_t (cudaGraphNode_t, struct cudaMemsetParams const *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphAddHostNode", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphAddHostNode, "cudaError_t (cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, struct cudaHostNodeParams const *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphHostNodeGetParams", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphHostNodeGetParams, "cudaError_t (cudaGraphNode_t, struct cudaHostNodeParams *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphHostNodeSetParams", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphHostNodeSetParams, "cudaError_t (cudaGraphNode_t, struct cudaHostNodeParams const *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphAddChildGraphNode", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphAddChildGraphNode, "cudaError_t (cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, cudaGraph_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphChildGraphNodeGetGraph", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphChildGraphNodeGetGraph, "cudaError_t (cudaGraphNode_t, cudaGraph_t *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphAddEmptyNode", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphAddEmptyNode, "cudaError_t (cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphAddEventRecordNode", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphAddEventRecordNode, "cudaError_t (cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, cudaEvent_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphEventRecordNodeGetEvent", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphEventRecordNodeGetEvent, "cudaError_t (cudaGraphNode_t, cudaEvent_t *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphEventRecordNodeSetEvent", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphEventRecordNodeSetEvent, "cudaError_t (cudaGraphNode_t, cudaEvent_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphAddEventWaitNode", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphAddEventWaitNode, "cudaError_t (cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, cudaEvent_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphEventWaitNodeGetEvent", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphEventWaitNodeGetEvent, "cudaError_t (cudaGraphNode_t, cudaEvent_t *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphEventWaitNodeSetEvent", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphEventWaitNodeSetEvent, "cudaError_t (cudaGraphNode_t, cudaEvent_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphAddExternalSemaphoresSignalNode", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphAddExternalSemaphoresSignalNode, "cudaError_t (cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, struct cudaExternalSemaphoreSignalNodeParams const *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphExternalSemaphoresSignalNodeGetParams", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphExternalSemaphoresSignalNodeGetParams, "cudaError_t (cudaGraphNode_t, struct cudaExternalSemaphoreSignalNodeParams *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphExternalSemaphoresSignalNodeSetParams", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphExternalSemaphoresSignalNodeSetParams, "cudaError_t (cudaGraphNode_t, struct cudaExternalSemaphoreSignalNodeParams const *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphAddExternalSemaphoresWaitNode", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphAddExternalSemaphoresWaitNode, "cudaError_t (cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, struct cudaExternalSemaphoreWaitNodeParams const *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphExternalSemaphoresWaitNodeGetParams", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphExternalSemaphoresWaitNodeGetParams, "cudaError_t (cudaGraphNode_t, struct cudaExternalSemaphoreWaitNodeParams *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphExternalSemaphoresWaitNodeSetParams", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphExternalSemaphoresWaitNodeSetParams, "cudaError_t (cudaGraphNode_t, struct cudaExternalSemaphoreWaitNodeParams const *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphAddMemAllocNode", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphAddMemAllocNode, "cudaError_t (cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, struct cudaMemAllocNodeParams *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphMemAllocNodeGetParams", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphMemAllocNodeGetParams, "cudaError_t (cudaGraphNode_t, struct cudaMemAllocNodeParams *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphAddMemFreeNode", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphAddMemFreeNode, "cudaError_t (cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, void *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphMemFreeNodeGetParams", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphMemFreeNodeGetParams, "cudaError_t (cudaGraphNode_t, void *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaDeviceGraphMemTrim", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaDeviceGraphMemTrim, "cudaError_t (int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaDeviceGetGraphMemAttribute", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaDeviceGetGraphMemAttribute, "cudaError_t (int, enum cudaGraphMemAttributeType, void *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaDeviceSetGraphMemAttribute", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaDeviceSetGraphMemAttribute, "cudaError_t (int, enum cudaGraphMemAttributeType, void *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphClone", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphClone, "cudaError_t (cudaGraph_t *, cudaGraph_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphNodeFindInClone", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphNodeFindInClone, "cudaError_t (cudaGraphNode_t *, cudaGraphNode_t, cudaGraph_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphNodeGetType", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphNodeGetType, "cudaError_t (cudaGraphNode_t, enum cudaGraphNodeType *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphGetNodes", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphGetNodes, "cudaError_t (cudaGraph_t, cudaGraphNode_t *, size_t *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphGetRootNodes", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphGetRootNodes, "cudaError_t (cudaGraph_t, cudaGraphNode_t *, size_t *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphGetEdges", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphGetEdges, "cudaError_t (cudaGraph_t, cudaGraphNode_t *, cudaGraphNode_t *, size_t *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphGetEdges_v2", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphGetEdges_v2, "cudaError_t (cudaGraph_t, cudaGraphNode_t *, cudaGraphNode_t *, cudaGraphEdgeData *, size_t *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphNodeGetDependencies", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphNodeGetDependencies, "cudaError_t (cudaGraphNode_t, cudaGraphNode_t *, size_t *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphNodeGetDependencies_v2", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphNodeGetDependencies_v2, "cudaError_t (cudaGraphNode_t, cudaGraphNode_t *, cudaGraphEdgeData *, size_t *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphNodeGetDependentNodes", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphNodeGetDependentNodes, "cudaError_t (cudaGraphNode_t, cudaGraphNode_t *, size_t *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphNodeGetDependentNodes_v2", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphNodeGetDependentNodes_v2, "cudaError_t (cudaGraphNode_t, cudaGraphNode_t *, cudaGraphEdgeData *, size_t *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphAddDependencies", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphAddDependencies, "cudaError_t (cudaGraph_t, cudaGraphNode_t const *, cudaGraphNode_t const *, size_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphAddDependencies_v2", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphAddDependencies_v2, "cudaError_t (cudaGraph_t, cudaGraphNode_t const *, cudaGraphNode_t const *, cudaGraphEdgeData const *, size_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphRemoveDependencies", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphRemoveDependencies, "cudaError_t (cudaGraph_t, cudaGraphNode_t const *, cudaGraphNode_t const *, size_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphRemoveDependencies_v2", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphRemoveDependencies_v2, "cudaError_t (cudaGraph_t, cudaGraphNode_t const *, cudaGraphNode_t const *, cudaGraphEdgeData const *, size_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphDestroyNode", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphDestroyNode, "cudaError_t (cudaGraphNode_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphInstantiate", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphInstantiate, "cudaError_t (cudaGraphExec_t *, cudaGraph_t, unsigned PY_LONG_LONG)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphInstantiateWithFlags", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphInstantiateWithFlags, "cudaError_t (cudaGraphExec_t *, cudaGraph_t, unsigned PY_LONG_LONG)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphInstantiateWithParams", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphInstantiateWithParams, "cudaError_t (cudaGraphExec_t *, cudaGraph_t, cudaGraphInstantiateParams *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphExecGetFlags", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphExecGetFlags, "cudaError_t (cudaGraphExec_t, unsigned PY_LONG_LONG *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphExecKernelNodeSetParams", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphExecKernelNodeSetParams, "cudaError_t (cudaGraphExec_t, cudaGraphNode_t, struct cudaKernelNodeParams const *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphExecMemcpyNodeSetParams", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphExecMemcpyNodeSetParams, "cudaError_t (cudaGraphExec_t, cudaGraphNode_t, struct cudaMemcpy3DParms const *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphExecMemcpyNodeSetParams1D", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphExecMemcpyNodeSetParams1D, "cudaError_t (cudaGraphExec_t, cudaGraphNode_t, void *, void const *, size_t, enum cudaMemcpyKind)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphExecMemsetNodeSetParams", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphExecMemsetNodeSetParams, "cudaError_t (cudaGraphExec_t, cudaGraphNode_t, struct cudaMemsetParams const *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphExecHostNodeSetParams", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphExecHostNodeSetParams, "cudaError_t (cudaGraphExec_t, cudaGraphNode_t, struct cudaHostNodeParams const *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphExecChildGraphNodeSetParams", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphExecChildGraphNodeSetParams, "cudaError_t (cudaGraphExec_t, cudaGraphNode_t, cudaGraph_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphExecEventRecordNodeSetEvent", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphExecEventRecordNodeSetEvent, "cudaError_t (cudaGraphExec_t, cudaGraphNode_t, cudaEvent_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphExecEventWaitNodeSetEvent", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphExecEventWaitNodeSetEvent, "cudaError_t (cudaGraphExec_t, cudaGraphNode_t, cudaEvent_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphExecExternalSemaphoresSignalNodeSetParams", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphExecExternalSemaphoresSignalNodeSetParams, "cudaError_t (cudaGraphExec_t, cudaGraphNode_t, struct cudaExternalSemaphoreSignalNodeParams const *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphExecExternalSemaphoresWaitNodeSetParams", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphExecExternalSemaphoresWaitNodeSetParams, "cudaError_t (cudaGraphExec_t, cudaGraphNode_t, struct cudaExternalSemaphoreWaitNodeParams const *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphNodeSetEnabled", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphNodeSetEnabled, "cudaError_t (cudaGraphExec_t, cudaGraphNode_t, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphNodeGetEnabled", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphNodeGetEnabled, "cudaError_t (cudaGraphExec_t, cudaGraphNode_t, unsigned int *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphExecUpdate", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphExecUpdate, "cudaError_t (cudaGraphExec_t, cudaGraph_t, cudaGraphExecUpdateResultInfo *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphUpload", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphUpload, "cudaError_t (cudaGraphExec_t, cudaStream_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphLaunch", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphLaunch, "cudaError_t (cudaGraphExec_t, cudaStream_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphExecDestroy", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphExecDestroy, "cudaError_t (cudaGraphExec_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphDestroy", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphDestroy, "cudaError_t (cudaGraph_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphDebugDotPrint", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphDebugDotPrint, "cudaError_t (cudaGraph_t, char const *, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaUserObjectCreate", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaUserObjectCreate, "cudaError_t (cudaUserObject_t *, void *, cudaHostFn_t, unsigned int, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaUserObjectRetain", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaUserObjectRetain, "cudaError_t (cudaUserObject_t, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaUserObjectRelease", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaUserObjectRelease, "cudaError_t (cudaUserObject_t, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphRetainUserObject", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphRetainUserObject, "cudaError_t (cudaGraph_t, cudaUserObject_t, unsigned int, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphReleaseUserObject", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphReleaseUserObject, "cudaError_t (cudaGraph_t, cudaUserObject_t, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphAddNode", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphAddNode, "cudaError_t (cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, struct cudaGraphNodeParams *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphAddNode_v2", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphAddNode_v2, "cudaError_t (cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, cudaGraphEdgeData const *, size_t, struct cudaGraphNodeParams *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphNodeSetParams", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphNodeSetParams, "cudaError_t (cudaGraphNode_t, struct cudaGraphNodeParams *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphExecNodeSetParams", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphExecNodeSetParams, "cudaError_t (cudaGraphExec_t, cudaGraphNode_t, struct cudaGraphNodeParams *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphConditionalHandleCreate", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphConditionalHandleCreate, "cudaError_t (cudaGraphConditionalHandle *, cudaGraph_t, unsigned int, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGetDriverEntryPoint", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGetDriverEntryPoint, "cudaError_t (char const *, void **, unsigned PY_LONG_LONG, enum cudaDriverEntryPointQueryResult *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGetDriverEntryPointByVersion", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGetDriverEntryPointByVersion, "cudaError_t (char const *, void **, unsigned int, unsigned PY_LONG_LONG, enum cudaDriverEntryPointQueryResult *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGetExportTable", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGetExportTable, "cudaError_t (void const **, cudaUUID_t const *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGetKernel", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGetKernel, "cudaError_t (cudaKernel_t *, void const *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "make_cudaPitchedPtr", (void (**)(void))&__pyx_f_4cuda_7ccudart_make_cudaPitchedPtr, "struct cudaPitchedPtr (void *, size_t, size_t, size_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "make_cudaPos", (void (**)(void))&__pyx_f_4cuda_7ccudart_make_cudaPos, "struct cudaPos (size_t, size_t, size_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "make_cudaExtent", (void (**)(void))&__pyx_f_4cuda_7ccudart_make_cudaExtent, "struct cudaExtent (size_t, size_t, size_t)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphicsEGLRegisterImage", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphicsEGLRegisterImage, "cudaError_t (struct cudaGraphicsResource **, __pyx_t_4cuda_7ccudart_EGLImageKHR, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaEGLStreamConsumerConnect", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaEGLStreamConsumerConnect, "cudaError_t (__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *, __pyx_t_4cuda_7ccudart_EGLStreamKHR)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaEGLStreamConsumerConnectWithFlags", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaEGLStreamConsumerConnectWithFlags, "cudaError_t (__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *, __pyx_t_4cuda_7ccudart_EGLStreamKHR, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaEGLStreamConsumerDisconnect", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaEGLStreamConsumerDisconnect, "cudaError_t (__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaEGLStreamConsumerAcquireFrame", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaEGLStreamConsumerAcquireFrame, "cudaError_t (__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *, cudaGraphicsResource_t *, cudaStream_t *, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaEGLStreamConsumerReleaseFrame", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaEGLStreamConsumerReleaseFrame, "cudaError_t (__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *, cudaGraphicsResource_t, cudaStream_t *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaEGLStreamProducerConnect", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaEGLStreamProducerConnect, "cudaError_t (__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *, __pyx_t_4cuda_7ccudart_EGLStreamKHR, __pyx_t_4cuda_7ccudart_EGLint, __pyx_t_4cuda_7ccudart_EGLint)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaEGLStreamProducerDisconnect", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaEGLStreamProducerDisconnect, "cudaError_t (__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaEGLStreamProducerPresentFrame", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaEGLStreamProducerPresentFrame, "cudaError_t (__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *, __pyx_t_4cuda_7ccudart_cudaEglFrame, cudaStream_t *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaEGLStreamProducerReturnFrame", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaEGLStreamProducerReturnFrame, "cudaError_t (__pyx_t_4cuda_7ccudart_cudaEglStreamConnection *, __pyx_t_4cuda_7ccudart_cudaEglFrame *, cudaStream_t *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphicsResourceGetMappedEglFrame", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphicsResourceGetMappedEglFrame, "cudaError_t (__pyx_t_4cuda_7ccudart_cudaEglFrame *, cudaGraphicsResource_t, unsigned int, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaEventCreateFromEGLSync", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaEventCreateFromEGLSync, "cudaError_t (cudaEvent_t *, __pyx_t_4cuda_7ccudart_EGLSyncKHR, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaProfilerStart", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaProfilerStart, "cudaError_t (void)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaProfilerStop", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaProfilerStop, "cudaError_t (void)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGLGetDevices", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGLGetDevices, "cudaError_t (unsigned int *, int *, unsigned int, enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphicsGLRegisterImage", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphicsGLRegisterImage, "cudaError_t (struct cudaGraphicsResource **, __pyx_t_4cuda_7ccudart_GLuint, __pyx_t_4cuda_7ccudart_GLenum, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphicsGLRegisterBuffer", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphicsGLRegisterBuffer, "cudaError_t (struct cudaGraphicsResource **, __pyx_t_4cuda_7ccudart_GLuint, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaVDPAUGetDevice", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaVDPAUGetDevice, "cudaError_t (int *, __pyx_t_4cuda_7ccudart_VdpDevice, __pyx_t_4cuda_7ccudart_VdpGetProcAddress *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaVDPAUSetVDPAUDevice", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaVDPAUSetVDPAUDevice, "cudaError_t (int, __pyx_t_4cuda_7ccudart_VdpDevice, __pyx_t_4cuda_7ccudart_VdpGetProcAddress *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphicsVDPAURegisterVideoSurface", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphicsVDPAURegisterVideoSurface, "cudaError_t (struct cudaGraphicsResource **, __pyx_t_4cuda_7ccudart_VdpVideoSurface, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "cudaGraphicsVDPAURegisterOutputSurface", (void (**)(void))&__pyx_f_4cuda_7ccudart_cudaGraphicsVDPAURegisterOutputSurface, "cudaError_t (struct cudaGraphicsResource **, __pyx_t_4cuda_7ccudart_VdpOutputSurface, unsigned int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ImportFunction_3_0_12(__pyx_t_1, "getLocalRuntimeVersion", (void (**)(void))&__pyx_f_4cuda_7ccudart_getLocalRuntimeVersion, "cudaError_t (int *)") < 0) __PYX_ERR(0, 1, __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; } #if PY_MAJOR_VERSION >= 3 #if CYTHON_PEP489_MULTI_PHASE_INIT static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def); /*proto*/ static int __pyx_pymod_exec_cudart(PyObject* module); /*proto*/ static PyModuleDef_Slot __pyx_moduledef_slots[] = { {Py_mod_create, (void*)__pyx_pymod_create}, {Py_mod_exec, (void*)__pyx_pymod_exec_cudart}, {0, NULL} }; #endif #ifdef __cplusplus namespace { struct PyModuleDef __pyx_moduledef = #else static struct PyModuleDef __pyx_moduledef = #endif { PyModuleDef_HEAD_INIT, "cudart", 0, /* m_doc */ #if CYTHON_PEP489_MULTI_PHASE_INIT 0, /* m_size */ #elif CYTHON_USE_MODULE_STATE sizeof(__pyx_mstate), /* m_size */ #else -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 #endif #ifndef CYTHON_NO_PYINIT_EXPORT #define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC #elif PY_MAJOR_VERSION < 3 #ifdef __cplusplus #define __Pyx_PyMODINIT_FUNC extern "C" void #else #define __Pyx_PyMODINIT_FUNC void #endif #else #ifdef __cplusplus #define __Pyx_PyMODINIT_FUNC extern "C" PyObject * #else #define __Pyx_PyMODINIT_FUNC PyObject * #endif #endif #if PY_MAJOR_VERSION < 3 __Pyx_PyMODINIT_FUNC initcudart(void) CYTHON_SMALL_CODE; /*proto*/ __Pyx_PyMODINIT_FUNC initcudart(void) #else __Pyx_PyMODINIT_FUNC PyInit_cudart(void) CYTHON_SMALL_CODE; /*proto*/ __Pyx_PyMODINIT_FUNC PyInit_cudart(void) #if CYTHON_PEP489_MULTI_PHASE_INIT { return PyModuleDef_Init(&__pyx_moduledef); } static CYTHON_SMALL_CODE int __Pyx_check_single_interpreter(void) { #if PY_VERSION_HEX >= 0x030700A1 static PY_INT64_T main_interpreter_id = -1; PY_INT64_T current_id = PyInterpreterState_GetID(PyThreadState_Get()->interp); if (main_interpreter_id == -1) { main_interpreter_id = current_id; return (unlikely(current_id == -1)) ? -1 : 0; } else if (unlikely(main_interpreter_id != current_id)) #else static PyInterpreterState *main_interpreter = NULL; PyInterpreterState *current_interpreter = PyThreadState_Get()->interp; if (!main_interpreter) { main_interpreter = current_interpreter; } else if (unlikely(main_interpreter != current_interpreter)) #endif { PyErr_SetString( PyExc_ImportError, "Interpreter change detected - this module can only be loaded into one interpreter per process."); return -1; } return 0; } #if CYTHON_COMPILING_IN_LIMITED_API static CYTHON_SMALL_CODE int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *module, const char* from_name, const char* to_name, int allow_none) #else 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) #endif { PyObject *value = PyObject_GetAttrString(spec, from_name); int result = 0; if (likely(value)) { if (allow_none || value != Py_None) { #if CYTHON_COMPILING_IN_LIMITED_API result = PyModule_AddObject(module, to_name, value); #else result = PyDict_SetItemString(moddict, to_name, value); #endif } 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 (__Pyx_check_single_interpreter()) return NULL; 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; #if CYTHON_COMPILING_IN_LIMITED_API moddict = module; #else moddict = PyModule_GetDict(module); if (unlikely(!moddict)) goto bad; #endif 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_cudart(PyObject *__pyx_pyinit_module) #endif #endif { int stringtab_initialized = 0; #if CYTHON_USE_MODULE_STATE int pystate_addmodule_run = 0; #endif __Pyx_TraceDeclarations 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; 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 'cudart' has already been imported. Re-initialisation is not supported."); return -1; } #elif PY_MAJOR_VERSION >= 3 if (__pyx_m) return __Pyx_NewRef(__pyx_m); #endif /*--- Module creation code ---*/ #if CYTHON_PEP489_MULTI_PHASE_INIT __pyx_m = __pyx_pyinit_module; Py_INCREF(__pyx_m); #else #if PY_MAJOR_VERSION < 3 __pyx_m = Py_InitModule4("cudart", __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m); if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error) #elif CYTHON_USE_MODULE_STATE __pyx_t_1 = PyModule_Create(&__pyx_moduledef); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error) { int add_module_result = PyState_AddModule(__pyx_t_1, &__pyx_moduledef); __pyx_t_1 = 0; /* transfer ownership from __pyx_t_1 to "cudart" pseudovariable */ if (unlikely((add_module_result < 0))) __PYX_ERR(0, 1, __pyx_L1_error) pystate_addmodule_run = 1; } #else __pyx_m = PyModule_Create(&__pyx_moduledef); if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error) #endif #endif CYTHON_UNUSED_VAR(__pyx_t_1); __pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error) Py_INCREF(__pyx_d); __pyx_b = __Pyx_PyImport_AddModuleRef(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_cython_runtime = __Pyx_PyImport_AddModuleRef((const char *) "cython_runtime"); if (unlikely(!__pyx_cython_runtime)) __PYX_ERR(0, 1, __pyx_L1_error) if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error) #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("__Pyx_PyMODINIT_FUNC PyInit_cudart(void)", 0); 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) #ifdef __Pxy_PyFrame_Initialize_Offsets __Pxy_PyFrame_Initialize_Offsets(); #endif __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error) #ifdef __Pyx_CyFunction_USED if (__pyx_CyFunction_init(__pyx_m) < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_FusedFunction_USED if (__pyx_FusedFunction_init(__pyx_m) < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_Coroutine_USED if (__pyx_Coroutine_init(__pyx_m) < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_Generator_USED if (__pyx_Generator_init(__pyx_m) < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_AsyncGen_USED if (__pyx_AsyncGen_init(__pyx_m) < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_StopAsyncIteration_USED if (__pyx_StopAsyncIteration_init(__pyx_m) < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif /*--- Library function declarations ---*/ /*--- Threads initialization code ---*/ #if defined(WITH_THREAD) && PY_VERSION_HEX < 0x030700F0 && defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS PyEval_InitThreads(); #endif /*--- Initialize various global constants etc. ---*/ if (__Pyx_InitConstants() < 0) __PYX_ERR(0, 1, __pyx_L1_error) stringtab_initialized = 1; if (__Pyx_InitGlobals() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT) if (__Pyx_init_sys_getdefaultencoding_params() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif if (__pyx_module_is_main_cuda__cudart) { if (PyObject_SetAttr(__pyx_m, __pyx_n_s_name_3, __pyx_n_s_main) < 0) __PYX_ERR(0, 1, __pyx_L1_error) } #if PY_MAJOR_VERSION >= 3 { PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error) if (!PyDict_GetItemString(modules, "cuda.cudart")) { if (unlikely((PyDict_SetItemString(modules, "cuda.cudart", __pyx_m) < 0))) __PYX_ERR(0, 1, __pyx_L1_error) } } #endif /*--- Builtin init code ---*/ if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(0, 1, __pyx_L1_error) /*--- Constants init code ---*/ if (__Pyx_InitCachedConstants() < 0) __PYX_ERR(0, 1, __pyx_L1_error) /*--- Global type/function init code ---*/ (void)__Pyx_modinit_global_init_code(); (void)__Pyx_modinit_variable_export_code(); (void)__Pyx_modinit_function_export_code(); if (unlikely((__Pyx_modinit_type_init_code() < 0))) __PYX_ERR(0, 1, __pyx_L1_error) if (unlikely((__Pyx_modinit_type_import_code() < 0))) __PYX_ERR(0, 1, __pyx_L1_error) (void)__Pyx_modinit_variable_import_code(); if (unlikely((__Pyx_modinit_function_import_code() < 0))) __PYX_ERR(0, 1, __pyx_L1_error) /*--- Execution code ---*/ #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED) if (__Pyx_patch_abc() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif __Pyx_TraceCall("__Pyx_PyMODINIT_FUNC PyInit_cudart(void)", __pyx_f[0], 1, 0, __PYX_ERR(0, 1, __pyx_L1_error)); /* "cuda/cudart.pyx":8 * # this software and related documentation outside the terms of the EULA * # is strictly prohibited. * from typing import List, Tuple, Any, Optional # <<<<<<<<<<<<<< * from enum import IntEnum * import cython */ __pyx_t_2 = PyList_New(4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_n_s_List); __Pyx_GIVEREF(__pyx_n_s_List); if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_List)) __PYX_ERR(0, 8, __pyx_L1_error); __Pyx_INCREF(__pyx_n_s_Tuple); __Pyx_GIVEREF(__pyx_n_s_Tuple); if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 1, __pyx_n_s_Tuple)) __PYX_ERR(0, 8, __pyx_L1_error); __Pyx_INCREF(__pyx_n_s_Any); __Pyx_GIVEREF(__pyx_n_s_Any); if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 2, __pyx_n_s_Any)) __PYX_ERR(0, 8, __pyx_L1_error); __Pyx_INCREF(__pyx_n_s_Optional); __Pyx_GIVEREF(__pyx_n_s_Optional); if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 3, __pyx_n_s_Optional)) __PYX_ERR(0, 8, __pyx_L1_error); __pyx_t_3 = __Pyx_Import(__pyx_n_s_typing, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_List); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_List, __pyx_t_2) < 0) __PYX_ERR(0, 8, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_Tuple); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_Tuple, __pyx_t_2) < 0) __PYX_ERR(0, 8, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_Any); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_Any, __pyx_t_2) < 0) __PYX_ERR(0, 8, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_Optional); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_Optional, __pyx_t_2) < 0) __PYX_ERR(0, 8, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":9 * # is strictly prohibited. * from typing import List, Tuple, Any, Optional * from enum import IntEnum # <<<<<<<<<<<<<< * import cython * import ctypes */ __pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_n_s_IntEnum); __Pyx_GIVEREF(__pyx_n_s_IntEnum); if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 0, __pyx_n_s_IntEnum)) __PYX_ERR(0, 9, __pyx_L1_error); __pyx_t_2 = __Pyx_Import(__pyx_n_s_enum, __pyx_t_3, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_IntEnum, __pyx_t_3) < 0) __PYX_ERR(0, 9, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":11 * from enum import IntEnum * import cython * import ctypes # <<<<<<<<<<<<<< * from libc.stdlib cimport calloc, free * from libc cimport string */ __pyx_t_2 = __Pyx_ImportDottedModule(__pyx_n_s_ctypes, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_ctypes, __pyx_t_2) < 0) __PYX_ERR(0, 11, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":20 * from cpython.buffer cimport PyObject_CheckBuffer, PyObject_GetBuffer, PyBuffer_Release, PyBUF_SIMPLE, PyBUF_ANY_CONTIGUOUS * from cpython.bytes cimport PyBytes_FromStringAndSize * import cuda.cuda # <<<<<<<<<<<<<< * * ctypedef unsigned long long signed_char_ptr */ __pyx_t_2 = __Pyx_Import(__pyx_n_s_cuda_cuda, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cuda, __pyx_t_2) < 0) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":46 * * #: Default page-locked allocation flag * cudaHostAllocDefault = ccudart.cudaHostAllocDefault # <<<<<<<<<<<<<< * * #: Pinned memory accessible by all CUDA contexts */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaHostAllocDefault); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 46, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaHostAllocDefault, __pyx_t_2) < 0) __PYX_ERR(0, 46, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":49 * * #: Pinned memory accessible by all CUDA contexts * cudaHostAllocPortable = ccudart.cudaHostAllocPortable # <<<<<<<<<<<<<< * * #: Map allocation into device space */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaHostAllocPortable); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 49, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaHostAllocPortable, __pyx_t_2) < 0) __PYX_ERR(0, 49, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":52 * * #: Map allocation into device space * cudaHostAllocMapped = ccudart.cudaHostAllocMapped # <<<<<<<<<<<<<< * * #: Write-combined memory */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaHostAllocMapped); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 52, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaHostAllocMapped, __pyx_t_2) < 0) __PYX_ERR(0, 52, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":55 * * #: Write-combined memory * cudaHostAllocWriteCombined = ccudart.cudaHostAllocWriteCombined # <<<<<<<<<<<<<< * * #: Default host memory registration flag */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaHostAllocWriteCombined); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 55, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaHostAllocWriteCombined, __pyx_t_2) < 0) __PYX_ERR(0, 55, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":58 * * #: Default host memory registration flag * cudaHostRegisterDefault = ccudart.cudaHostRegisterDefault # <<<<<<<<<<<<<< * * #: Pinned memory accessible by all CUDA contexts */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaHostRegisterDefault); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 58, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaHostRegisterDefault, __pyx_t_2) < 0) __PYX_ERR(0, 58, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":61 * * #: Pinned memory accessible by all CUDA contexts * cudaHostRegisterPortable = ccudart.cudaHostRegisterPortable # <<<<<<<<<<<<<< * * #: Map registered memory into device space */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaHostRegisterPortable); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaHostRegisterPortable, __pyx_t_2) < 0) __PYX_ERR(0, 61, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":64 * * #: Map registered memory into device space * cudaHostRegisterMapped = ccudart.cudaHostRegisterMapped # <<<<<<<<<<<<<< * * #: Memory-mapped I/O space */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaHostRegisterMapped); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 64, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaHostRegisterMapped, __pyx_t_2) < 0) __PYX_ERR(0, 64, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":67 * * #: Memory-mapped I/O space * cudaHostRegisterIoMemory = ccudart.cudaHostRegisterIoMemory # <<<<<<<<<<<<<< * * #: Memory-mapped read-only */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaHostRegisterIoMemory); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaHostRegisterIoMemory, __pyx_t_2) < 0) __PYX_ERR(0, 67, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":70 * * #: Memory-mapped read-only * cudaHostRegisterReadOnly = ccudart.cudaHostRegisterReadOnly # <<<<<<<<<<<<<< * * #: Default peer addressing enable flag */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaHostRegisterReadOnly); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 70, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaHostRegisterReadOnly, __pyx_t_2) < 0) __PYX_ERR(0, 70, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":73 * * #: Default peer addressing enable flag * cudaPeerAccessDefault = ccudart.cudaPeerAccessDefault # <<<<<<<<<<<<<< * * #: Default stream flag */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaPeerAccessDefault); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 73, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaPeerAccessDefault, __pyx_t_2) < 0) __PYX_ERR(0, 73, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":76 * * #: Default stream flag * cudaStreamDefault = ccudart.cudaStreamDefault # <<<<<<<<<<<<<< * * #: Stream does not synchronize with stream 0 (the NULL stream) */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaStreamDefault); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 76, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaStreamDefault, __pyx_t_2) < 0) __PYX_ERR(0, 76, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":79 * * #: Stream does not synchronize with stream 0 (the NULL stream) * cudaStreamNonBlocking = ccudart.cudaStreamNonBlocking # <<<<<<<<<<<<<< * * #: Legacy stream handle */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaStreamNonBlocking); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 79, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaStreamNonBlocking, __pyx_t_2) < 0) __PYX_ERR(0, 79, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":87 * #: * #: See details of the \link_sync_behavior * cudaStreamLegacy = ccudart.cudaStreamLegacy # <<<<<<<<<<<<<< * * #: Per-thread stream handle */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaStreamLegacy); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 87, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaStreamLegacy, __pyx_t_2) < 0) __PYX_ERR(0, 87, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":95 * #: * #: See details of the \link_sync_behavior * cudaStreamPerThread = ccudart.cudaStreamPerThread # <<<<<<<<<<<<<< * * #: Default event flag */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaStreamPerThread); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 95, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaStreamPerThread, __pyx_t_2) < 0) __PYX_ERR(0, 95, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":98 * * #: Default event flag * cudaEventDefault = ccudart.cudaEventDefault # <<<<<<<<<<<<<< * * #: Event uses blocking synchronization */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaEventDefault); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 98, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaEventDefault, __pyx_t_2) < 0) __PYX_ERR(0, 98, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":101 * * #: Event uses blocking synchronization * cudaEventBlockingSync = ccudart.cudaEventBlockingSync # <<<<<<<<<<<<<< * * #: Event will not record timing data */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaEventBlockingSync); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaEventBlockingSync, __pyx_t_2) < 0) __PYX_ERR(0, 101, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":104 * * #: Event will not record timing data * cudaEventDisableTiming = ccudart.cudaEventDisableTiming # <<<<<<<<<<<<<< * * #: Event is suitable for interprocess use. cudaEventDisableTiming must be */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaEventDisableTiming); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaEventDisableTiming, __pyx_t_2) < 0) __PYX_ERR(0, 104, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":108 * #: Event is suitable for interprocess use. cudaEventDisableTiming must be * #: set * cudaEventInterprocess = ccudart.cudaEventInterprocess # <<<<<<<<<<<<<< * * #: Default event record flag */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaEventInterprocess); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 108, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaEventInterprocess, __pyx_t_2) < 0) __PYX_ERR(0, 108, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":111 * * #: Default event record flag * cudaEventRecordDefault = ccudart.cudaEventRecordDefault # <<<<<<<<<<<<<< * * #: Event is captured in the graph as an external event node when performing */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaEventRecordDefault); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 111, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaEventRecordDefault, __pyx_t_2) < 0) __PYX_ERR(0, 111, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":115 * #: Event is captured in the graph as an external event node when performing * #: stream capture * cudaEventRecordExternal = ccudart.cudaEventRecordExternal # <<<<<<<<<<<<<< * * #: Default event wait flag */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaEventRecordExternal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 115, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaEventRecordExternal, __pyx_t_2) < 0) __PYX_ERR(0, 115, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":118 * * #: Default event wait flag * cudaEventWaitDefault = ccudart.cudaEventWaitDefault # <<<<<<<<<<<<<< * * #: Event is captured in the graph as an external event node when performing */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaEventWaitDefault); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 118, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaEventWaitDefault, __pyx_t_2) < 0) __PYX_ERR(0, 118, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":122 * #: Event is captured in the graph as an external event node when performing * #: stream capture * cudaEventWaitExternal = ccudart.cudaEventWaitExternal # <<<<<<<<<<<<<< * * #: Device flag - Automatic scheduling */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaEventWaitExternal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 122, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaEventWaitExternal, __pyx_t_2) < 0) __PYX_ERR(0, 122, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":125 * * #: Device flag - Automatic scheduling * cudaDeviceScheduleAuto = ccudart.cudaDeviceScheduleAuto # <<<<<<<<<<<<<< * * #: Device flag - Spin default scheduling */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaDeviceScheduleAuto); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 125, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceScheduleAuto, __pyx_t_2) < 0) __PYX_ERR(0, 125, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":128 * * #: Device flag - Spin default scheduling * cudaDeviceScheduleSpin = ccudart.cudaDeviceScheduleSpin # <<<<<<<<<<<<<< * * #: Device flag - Yield default scheduling */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaDeviceScheduleSpin); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 128, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceScheduleSpin, __pyx_t_2) < 0) __PYX_ERR(0, 128, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":131 * * #: Device flag - Yield default scheduling * cudaDeviceScheduleYield = ccudart.cudaDeviceScheduleYield # <<<<<<<<<<<<<< * * #: Device flag - Use blocking synchronization */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaDeviceScheduleYield); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceScheduleYield, __pyx_t_2) < 0) __PYX_ERR(0, 131, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":134 * * #: Device flag - Use blocking synchronization * cudaDeviceScheduleBlockingSync = ccudart.cudaDeviceScheduleBlockingSync # <<<<<<<<<<<<<< * * #: Device flag - Use blocking synchronization [Deprecated] */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaDeviceScheduleBlockingSync); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 134, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceScheduleBlockingSync, __pyx_t_2) < 0) __PYX_ERR(0, 134, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":137 * * #: Device flag - Use blocking synchronization [Deprecated] * cudaDeviceBlockingSync = ccudart.cudaDeviceBlockingSync # <<<<<<<<<<<<<< * * #: Device schedule flags mask */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaDeviceBlockingSync); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 137, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceBlockingSync, __pyx_t_2) < 0) __PYX_ERR(0, 137, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":140 * * #: Device schedule flags mask * cudaDeviceScheduleMask = ccudart.cudaDeviceScheduleMask # <<<<<<<<<<<<<< * * #: Device flag - Support mapped pinned allocations */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaDeviceScheduleMask); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 140, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceScheduleMask, __pyx_t_2) < 0) __PYX_ERR(0, 140, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":143 * * #: Device flag - Support mapped pinned allocations * cudaDeviceMapHost = ccudart.cudaDeviceMapHost # <<<<<<<<<<<<<< * * #: Device flag - Keep local memory allocation after launch */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaDeviceMapHost); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 143, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceMapHost, __pyx_t_2) < 0) __PYX_ERR(0, 143, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":146 * * #: Device flag - Keep local memory allocation after launch * cudaDeviceLmemResizeToMax = ccudart.cudaDeviceLmemResizeToMax # <<<<<<<<<<<<<< * * #: Device flag - Ensure synchronous memory operations on this context will */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaDeviceLmemResizeToMax); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 146, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceLmemResizeToMax, __pyx_t_2) < 0) __PYX_ERR(0, 146, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":150 * #: Device flag - Ensure synchronous memory operations on this context will * #: synchronize * cudaDeviceSyncMemops = ccudart.cudaDeviceSyncMemops # <<<<<<<<<<<<<< * * #: Device flags mask */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaDeviceSyncMemops); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 150, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceSyncMemops, __pyx_t_2) < 0) __PYX_ERR(0, 150, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":153 * * #: Device flags mask * cudaDeviceMask = ccudart.cudaDeviceMask # <<<<<<<<<<<<<< * * #: Default CUDA array allocation flag */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaDeviceMask); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 153, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceMask, __pyx_t_2) < 0) __PYX_ERR(0, 153, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":156 * * #: Default CUDA array allocation flag * cudaArrayDefault = ccudart.cudaArrayDefault # <<<<<<<<<<<<<< * * #: Must be set in cudaMalloc3DArray to create a layered CUDA array */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaArrayDefault); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 156, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaArrayDefault, __pyx_t_2) < 0) __PYX_ERR(0, 156, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":159 * * #: Must be set in cudaMalloc3DArray to create a layered CUDA array * cudaArrayLayered = ccudart.cudaArrayLayered # <<<<<<<<<<<<<< * * #: Must be set in cudaMallocArray or cudaMalloc3DArray in order to bind */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaArrayLayered); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 159, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaArrayLayered, __pyx_t_2) < 0) __PYX_ERR(0, 159, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":163 * #: Must be set in cudaMallocArray or cudaMalloc3DArray in order to bind * #: surfaces to the CUDA array * cudaArraySurfaceLoadStore = ccudart.cudaArraySurfaceLoadStore # <<<<<<<<<<<<<< * * #: Must be set in cudaMalloc3DArray to create a cubemap CUDA array */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaArraySurfaceLoadStore); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 163, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaArraySurfaceLoadStore, __pyx_t_2) < 0) __PYX_ERR(0, 163, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":166 * * #: Must be set in cudaMalloc3DArray to create a cubemap CUDA array * cudaArrayCubemap = ccudart.cudaArrayCubemap # <<<<<<<<<<<<<< * * #: Must be set in cudaMallocArray or cudaMalloc3DArray in order to perform */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaArrayCubemap); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaArrayCubemap, __pyx_t_2) < 0) __PYX_ERR(0, 166, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":170 * #: Must be set in cudaMallocArray or cudaMalloc3DArray in order to perform * #: texture gather operations on the CUDA array * cudaArrayTextureGather = ccudart.cudaArrayTextureGather # <<<<<<<<<<<<<< * * #: Must be set in cudaExternalMemoryGetMappedMipmappedArray if the */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaArrayTextureGather); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 170, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaArrayTextureGather, __pyx_t_2) < 0) __PYX_ERR(0, 170, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":174 * #: Must be set in cudaExternalMemoryGetMappedMipmappedArray if the * #: mipmapped array is used as a color target in a graphics API * cudaArrayColorAttachment = ccudart.cudaArrayColorAttachment # <<<<<<<<<<<<<< * * #: Must be set in cudaMallocArray, cudaMalloc3DArray or */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaArrayColorAttachment); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 174, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaArrayColorAttachment, __pyx_t_2) < 0) __PYX_ERR(0, 174, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":179 * #: cudaMallocMipmappedArray in order to create a sparse CUDA array or CUDA * #: mipmapped array * cudaArraySparse = ccudart.cudaArraySparse # <<<<<<<<<<<<<< * * #: Must be set in cudaMallocArray, cudaMalloc3DArray or */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaArraySparse); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 179, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaArraySparse, __pyx_t_2) < 0) __PYX_ERR(0, 179, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":184 * #: cudaMallocMipmappedArray in order to create a deferred mapping CUDA * #: array or CUDA mipmapped array * cudaArrayDeferredMapping = ccudart.cudaArrayDeferredMapping # <<<<<<<<<<<<<< * * #: Automatically enable peer access between remote devices as needed */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaArrayDeferredMapping); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 184, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaArrayDeferredMapping, __pyx_t_2) < 0) __PYX_ERR(0, 184, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":187 * * #: Automatically enable peer access between remote devices as needed * cudaIpcMemLazyEnablePeerAccess = ccudart.cudaIpcMemLazyEnablePeerAccess # <<<<<<<<<<<<<< * * #: Memory can be accessed by any stream on any device */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaIpcMemLazyEnablePeerAccess); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 187, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaIpcMemLazyEnablePeerAccess, __pyx_t_2) < 0) __PYX_ERR(0, 187, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":190 * * #: Memory can be accessed by any stream on any device * cudaMemAttachGlobal = ccudart.cudaMemAttachGlobal # <<<<<<<<<<<<<< * * #: Memory cannot be accessed by any stream on any device */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaMemAttachGlobal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 190, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemAttachGlobal, __pyx_t_2) < 0) __PYX_ERR(0, 190, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":193 * * #: Memory cannot be accessed by any stream on any device * cudaMemAttachHost = ccudart.cudaMemAttachHost # <<<<<<<<<<<<<< * * #: Memory can only be accessed by a single stream on the associated device */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaMemAttachHost); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 193, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemAttachHost, __pyx_t_2) < 0) __PYX_ERR(0, 193, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":196 * * #: Memory can only be accessed by a single stream on the associated device * cudaMemAttachSingle = ccudart.cudaMemAttachSingle # <<<<<<<<<<<<<< * * #: Default behavior */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaMemAttachSingle); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 196, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemAttachSingle, __pyx_t_2) < 0) __PYX_ERR(0, 196, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":199 * * #: Default behavior * cudaOccupancyDefault = ccudart.cudaOccupancyDefault # <<<<<<<<<<<<<< * * #: Assume global caching is enabled and cannot be automatically turned off */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaOccupancyDefault); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 199, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaOccupancyDefault, __pyx_t_2) < 0) __PYX_ERR(0, 199, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":202 * * #: Assume global caching is enabled and cannot be automatically turned off * cudaOccupancyDisableCachingOverride = ccudart.cudaOccupancyDisableCachingOverride # <<<<<<<<<<<<<< * * #: Device id that represents the CPU */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaOccupancyDisableCachingOverride); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 202, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaOccupancyDisableCachingOverr, __pyx_t_2) < 0) __PYX_ERR(0, 202, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":205 * * #: Device id that represents the CPU * cudaCpuDeviceId = ccudart.cudaCpuDeviceId # <<<<<<<<<<<<<< * * #: Device id that represents an invalid device */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaCpuDeviceId); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaCpuDeviceId, __pyx_t_2) < 0) __PYX_ERR(0, 205, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":208 * * #: Device id that represents an invalid device * cudaInvalidDeviceId = ccudart.cudaInvalidDeviceId # <<<<<<<<<<<<<< * * #: Tell the CUDA runtime that DeviceFlags is being set in cudaInitDevice */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaInvalidDeviceId); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 208, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaInvalidDeviceId, __pyx_t_2) < 0) __PYX_ERR(0, 208, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":212 * #: Tell the CUDA runtime that DeviceFlags is being set in cudaInitDevice * #: call * cudaInitDeviceFlagsAreValid = ccudart.cudaInitDeviceFlagsAreValid # <<<<<<<<<<<<<< * * #: If set, each kernel launched as part of */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaInitDeviceFlagsAreValid); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 212, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaInitDeviceFlagsAreValid, __pyx_t_2) < 0) __PYX_ERR(0, 212, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":218 * #: work in the stream corresponding to that GPU to complete before the * #: kernel begins execution. * cudaCooperativeLaunchMultiDeviceNoPreSync = ccudart.cudaCooperativeLaunchMultiDeviceNoPreSync # <<<<<<<<<<<<<< * * #: If set, any subsequent work pushed in a stream that participated in a */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaCooperativeLaunchMultiDeviceNoPreSync); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 218, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaCooperativeLaunchMultiDevice, __pyx_t_2) < 0) __PYX_ERR(0, 218, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":224 * #: wait for the kernel launched on the GPU corresponding to that stream to * #: complete before it begins execution. * cudaCooperativeLaunchMultiDeviceNoPostSync = ccudart.cudaCooperativeLaunchMultiDeviceNoPostSync # <<<<<<<<<<<<<< * * #: Indicates that the layered sparse CUDA array or CUDA mipmapped array has */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaCooperativeLaunchMultiDeviceNoPostSync); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 224, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaCooperativeLaunchMultiDevice_2, __pyx_t_2) < 0) __PYX_ERR(0, 224, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":228 * #: Indicates that the layered sparse CUDA array or CUDA mipmapped array has * #: a single mip tail region for all layers * cudaArraySparsePropertiesSingleMipTail = ccudart.cudaArraySparsePropertiesSingleMipTail # <<<<<<<<<<<<<< * * #: CUDA IPC Handle Size */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaArraySparsePropertiesSingleMipTail); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 228, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaArraySparsePropertiesSingleM, __pyx_t_2) < 0) __PYX_ERR(0, 228, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":231 * * #: CUDA IPC Handle Size * CUDA_IPC_HANDLE_SIZE = ccudart.CUDA_IPC_HANDLE_SIZE # <<<<<<<<<<<<<< * * #: Indicates that the external memory object is a dedicated resource */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_CUDA_IPC_HANDLE_SIZE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 231, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_CUDA_IPC_HANDLE_SIZE, __pyx_t_2) < 0) __PYX_ERR(0, 231, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":234 * * #: Indicates that the external memory object is a dedicated resource * cudaExternalMemoryDedicated = ccudart.cudaExternalMemoryDedicated # <<<<<<<<<<<<<< * * #: When the /p flags parameter of */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaExternalMemoryDedicated); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 234, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaExternalMemoryDedicated, __pyx_t_2) < 0) __PYX_ERR(0, 234, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":244 * #: performed by default to ensure data coherency with other importers of * #: the same NvSciBuf memory objects. * cudaExternalSemaphoreSignalSkipNvSciBufMemSync = ccudart.cudaExternalSemaphoreSignalSkipNvSciBufMemSync # <<<<<<<<<<<<<< * * #: When the /p flags parameter of */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaExternalSemaphoreSignalSkipNvSciBufMemSync); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 244, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaExternalSemaphoreSignalSkipN, __pyx_t_2) < 0) __PYX_ERR(0, 244, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":254 * #: performed by default to ensure data coherency with other importers of * #: the same NvSciBuf memory objects. * cudaExternalSemaphoreWaitSkipNvSciBufMemSync = ccudart.cudaExternalSemaphoreWaitSkipNvSciBufMemSync # <<<<<<<<<<<<<< * * #: When /p flags of :py:obj:`~.cudaDeviceGetNvSciSyncAttributes` is set to */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaExternalSemaphoreWaitSkipNvSciBufMemSync); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 254, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaExternalSemaphoreWaitSkipNvS, __pyx_t_2) < 0) __PYX_ERR(0, 254, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":259 * #: this, it indicates that application need signaler specific NvSciSyncAttr * #: to be filled by :py:obj:`~.cudaDeviceGetNvSciSyncAttributes`. * cudaNvSciSyncAttrSignal = ccudart.cudaNvSciSyncAttrSignal # <<<<<<<<<<<<<< * * #: When /p flags of :py:obj:`~.cudaDeviceGetNvSciSyncAttributes` is set to */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaNvSciSyncAttrSignal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 259, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaNvSciSyncAttrSignal, __pyx_t_2) < 0) __PYX_ERR(0, 259, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":264 * #: this, it indicates that application need waiter specific NvSciSyncAttr * #: to be filled by :py:obj:`~.cudaDeviceGetNvSciSyncAttributes`. * cudaNvSciSyncAttrWait = ccudart.cudaNvSciSyncAttrWait # <<<<<<<<<<<<<< * * #: This port activates when the kernel has finished executing. */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaNvSciSyncAttrWait); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 264, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaNvSciSyncAttrWait, __pyx_t_2) < 0) __PYX_ERR(0, 264, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":267 * * #: This port activates when the kernel has finished executing. * cudaGraphKernelNodePortDefault = ccudart.cudaGraphKernelNodePortDefault # <<<<<<<<<<<<<< * * #: This port activates when all blocks of the kernel have performed */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaGraphKernelNodePortDefault); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 267, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphKernelNodePortDefault, __pyx_t_2) < 0) __PYX_ERR(0, 267, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":273 * #: used with edge type :py:obj:`~.cudaGraphDependencyTypeProgrammatic`. See * #: also :py:obj:`~.cudaLaunchAttributeProgrammaticEvent`. * cudaGraphKernelNodePortProgrammatic = ccudart.cudaGraphKernelNodePortProgrammatic # <<<<<<<<<<<<<< * * #: This port activates when all blocks of the kernel have begun execution. */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaGraphKernelNodePortProgrammatic); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 273, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphKernelNodePortProgramma, __pyx_t_2) < 0) __PYX_ERR(0, 273, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":277 * #: This port activates when all blocks of the kernel have begun execution. * #: See also :py:obj:`~.cudaLaunchAttributeLaunchCompletionEvent`. * cudaGraphKernelNodePortLaunchCompletion = ccudart.cudaGraphKernelNodePortLaunchCompletion # <<<<<<<<<<<<<< * * cudaStreamAttributeAccessPolicyWindow = ccudart.cudaStreamAttributeAccessPolicyWindow */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaGraphKernelNodePortLaunchCompletion); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 277, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphKernelNodePortLaunchCom, __pyx_t_2) < 0) __PYX_ERR(0, 277, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":279 * cudaGraphKernelNodePortLaunchCompletion = ccudart.cudaGraphKernelNodePortLaunchCompletion * * cudaStreamAttributeAccessPolicyWindow = ccudart.cudaStreamAttributeAccessPolicyWindow # <<<<<<<<<<<<<< * * cudaStreamAttributeSynchronizationPolicy = ccudart.cudaStreamAttributeSynchronizationPolicy */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaStreamAttributeAccessPolicyWindow); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 279, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaStreamAttributeAccessPolicyW, __pyx_t_2) < 0) __PYX_ERR(0, 279, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":281 * cudaStreamAttributeAccessPolicyWindow = ccudart.cudaStreamAttributeAccessPolicyWindow * * cudaStreamAttributeSynchronizationPolicy = ccudart.cudaStreamAttributeSynchronizationPolicy # <<<<<<<<<<<<<< * * cudaStreamAttributeMemSyncDomainMap = ccudart.cudaStreamAttributeMemSyncDomainMap */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaStreamAttributeSynchronizationPolicy); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 281, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaStreamAttributeSynchronizati, __pyx_t_2) < 0) __PYX_ERR(0, 281, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":283 * cudaStreamAttributeSynchronizationPolicy = ccudart.cudaStreamAttributeSynchronizationPolicy * * cudaStreamAttributeMemSyncDomainMap = ccudart.cudaStreamAttributeMemSyncDomainMap # <<<<<<<<<<<<<< * * cudaStreamAttributeMemSyncDomain = ccudart.cudaStreamAttributeMemSyncDomain */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaStreamAttributeMemSyncDomainMap); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 283, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaStreamAttributeMemSyncDomain, __pyx_t_2) < 0) __PYX_ERR(0, 283, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":285 * cudaStreamAttributeMemSyncDomainMap = ccudart.cudaStreamAttributeMemSyncDomainMap * * cudaStreamAttributeMemSyncDomain = ccudart.cudaStreamAttributeMemSyncDomain # <<<<<<<<<<<<<< * * cudaStreamAttributePriority = ccudart.cudaStreamAttributePriority */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaStreamAttributeMemSyncDomain); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 285, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaStreamAttributeMemSyncDomain_2, __pyx_t_2) < 0) __PYX_ERR(0, 285, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":287 * cudaStreamAttributeMemSyncDomain = ccudart.cudaStreamAttributeMemSyncDomain * * cudaStreamAttributePriority = ccudart.cudaStreamAttributePriority # <<<<<<<<<<<<<< * * cudaKernelNodeAttributeAccessPolicyWindow = ccudart.cudaKernelNodeAttributeAccessPolicyWindow */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaStreamAttributePriority); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 287, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaStreamAttributePriority, __pyx_t_2) < 0) __PYX_ERR(0, 287, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":289 * cudaStreamAttributePriority = ccudart.cudaStreamAttributePriority * * cudaKernelNodeAttributeAccessPolicyWindow = ccudart.cudaKernelNodeAttributeAccessPolicyWindow # <<<<<<<<<<<<<< * * cudaKernelNodeAttributeCooperative = ccudart.cudaKernelNodeAttributeCooperative */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaKernelNodeAttributeAccessPolicyWindow); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaKernelNodeAttributeAccessPol, __pyx_t_2) < 0) __PYX_ERR(0, 289, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":291 * cudaKernelNodeAttributeAccessPolicyWindow = ccudart.cudaKernelNodeAttributeAccessPolicyWindow * * cudaKernelNodeAttributeCooperative = ccudart.cudaKernelNodeAttributeCooperative # <<<<<<<<<<<<<< * * cudaKernelNodeAttributePriority = ccudart.cudaKernelNodeAttributePriority */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaKernelNodeAttributeCooperative); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 291, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaKernelNodeAttributeCooperati, __pyx_t_2) < 0) __PYX_ERR(0, 291, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":293 * cudaKernelNodeAttributeCooperative = ccudart.cudaKernelNodeAttributeCooperative * * cudaKernelNodeAttributePriority = ccudart.cudaKernelNodeAttributePriority # <<<<<<<<<<<<<< * * cudaKernelNodeAttributeClusterDimension = ccudart.cudaKernelNodeAttributeClusterDimension */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaKernelNodeAttributePriority); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 293, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaKernelNodeAttributePriority, __pyx_t_2) < 0) __PYX_ERR(0, 293, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":295 * cudaKernelNodeAttributePriority = ccudart.cudaKernelNodeAttributePriority * * cudaKernelNodeAttributeClusterDimension = ccudart.cudaKernelNodeAttributeClusterDimension # <<<<<<<<<<<<<< * * cudaKernelNodeAttributeClusterSchedulingPolicyPreference = ccudart.cudaKernelNodeAttributeClusterSchedulingPolicyPreference */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaKernelNodeAttributeClusterDimension); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 295, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaKernelNodeAttributeClusterDi, __pyx_t_2) < 0) __PYX_ERR(0, 295, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":297 * cudaKernelNodeAttributeClusterDimension = ccudart.cudaKernelNodeAttributeClusterDimension * * cudaKernelNodeAttributeClusterSchedulingPolicyPreference = ccudart.cudaKernelNodeAttributeClusterSchedulingPolicyPreference # <<<<<<<<<<<<<< * * cudaKernelNodeAttributeMemSyncDomainMap = ccudart.cudaKernelNodeAttributeMemSyncDomainMap */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaKernelNodeAttributeClusterSchedulingPolicyPreference); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 297, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaKernelNodeAttributeClusterSc, __pyx_t_2) < 0) __PYX_ERR(0, 297, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":299 * cudaKernelNodeAttributeClusterSchedulingPolicyPreference = ccudart.cudaKernelNodeAttributeClusterSchedulingPolicyPreference * * cudaKernelNodeAttributeMemSyncDomainMap = ccudart.cudaKernelNodeAttributeMemSyncDomainMap # <<<<<<<<<<<<<< * * cudaKernelNodeAttributeMemSyncDomain = ccudart.cudaKernelNodeAttributeMemSyncDomain */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaKernelNodeAttributeMemSyncDomainMap); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 299, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaKernelNodeAttributeMemSyncDo, __pyx_t_2) < 0) __PYX_ERR(0, 299, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":301 * cudaKernelNodeAttributeMemSyncDomainMap = ccudart.cudaKernelNodeAttributeMemSyncDomainMap * * cudaKernelNodeAttributeMemSyncDomain = ccudart.cudaKernelNodeAttributeMemSyncDomain # <<<<<<<<<<<<<< * * cudaKernelNodeAttributePreferredSharedMemoryCarveout = ccudart.cudaKernelNodeAttributePreferredSharedMemoryCarveout */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaKernelNodeAttributeMemSyncDomain); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 301, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaKernelNodeAttributeMemSyncDo_2, __pyx_t_2) < 0) __PYX_ERR(0, 301, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":303 * cudaKernelNodeAttributeMemSyncDomain = ccudart.cudaKernelNodeAttributeMemSyncDomain * * cudaKernelNodeAttributePreferredSharedMemoryCarveout = ccudart.cudaKernelNodeAttributePreferredSharedMemoryCarveout # <<<<<<<<<<<<<< * * cudaKernelNodeAttributeDeviceUpdatableKernelNode = ccudart.cudaKernelNodeAttributeDeviceUpdatableKernelNode */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaKernelNodeAttributePreferredSharedMemoryCarveout); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 303, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaKernelNodeAttributePreferred, __pyx_t_2) < 0) __PYX_ERR(0, 303, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":305 * cudaKernelNodeAttributePreferredSharedMemoryCarveout = ccudart.cudaKernelNodeAttributePreferredSharedMemoryCarveout * * cudaKernelNodeAttributeDeviceUpdatableKernelNode = ccudart.cudaKernelNodeAttributeDeviceUpdatableKernelNode # <<<<<<<<<<<<<< * * cudaSurfaceType1D = ccudart.cudaSurfaceType1D */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaKernelNodeAttributeDeviceUpdatableKernelNode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 305, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaKernelNodeAttributeDeviceUpd, __pyx_t_2) < 0) __PYX_ERR(0, 305, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":307 * cudaKernelNodeAttributeDeviceUpdatableKernelNode = ccudart.cudaKernelNodeAttributeDeviceUpdatableKernelNode * * cudaSurfaceType1D = ccudart.cudaSurfaceType1D # <<<<<<<<<<<<<< * * cudaSurfaceType2D = ccudart.cudaSurfaceType2D */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaSurfaceType1D); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 307, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaSurfaceType1D, __pyx_t_2) < 0) __PYX_ERR(0, 307, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":309 * cudaSurfaceType1D = ccudart.cudaSurfaceType1D * * cudaSurfaceType2D = ccudart.cudaSurfaceType2D # <<<<<<<<<<<<<< * * cudaSurfaceType3D = ccudart.cudaSurfaceType3D */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaSurfaceType2D); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 309, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaSurfaceType2D, __pyx_t_2) < 0) __PYX_ERR(0, 309, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":311 * cudaSurfaceType2D = ccudart.cudaSurfaceType2D * * cudaSurfaceType3D = ccudart.cudaSurfaceType3D # <<<<<<<<<<<<<< * * cudaSurfaceTypeCubemap = ccudart.cudaSurfaceTypeCubemap */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaSurfaceType3D); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 311, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaSurfaceType3D, __pyx_t_2) < 0) __PYX_ERR(0, 311, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":313 * cudaSurfaceType3D = ccudart.cudaSurfaceType3D * * cudaSurfaceTypeCubemap = ccudart.cudaSurfaceTypeCubemap # <<<<<<<<<<<<<< * * cudaSurfaceType1DLayered = ccudart.cudaSurfaceType1DLayered */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaSurfaceTypeCubemap); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 313, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaSurfaceTypeCubemap, __pyx_t_2) < 0) __PYX_ERR(0, 313, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":315 * cudaSurfaceTypeCubemap = ccudart.cudaSurfaceTypeCubemap * * cudaSurfaceType1DLayered = ccudart.cudaSurfaceType1DLayered # <<<<<<<<<<<<<< * * cudaSurfaceType2DLayered = ccudart.cudaSurfaceType2DLayered */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaSurfaceType1DLayered); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 315, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaSurfaceType1DLayered, __pyx_t_2) < 0) __PYX_ERR(0, 315, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":317 * cudaSurfaceType1DLayered = ccudart.cudaSurfaceType1DLayered * * cudaSurfaceType2DLayered = ccudart.cudaSurfaceType2DLayered # <<<<<<<<<<<<<< * * cudaSurfaceTypeCubemapLayered = ccudart.cudaSurfaceTypeCubemapLayered */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaSurfaceType2DLayered); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 317, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaSurfaceType2DLayered, __pyx_t_2) < 0) __PYX_ERR(0, 317, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":319 * cudaSurfaceType2DLayered = ccudart.cudaSurfaceType2DLayered * * cudaSurfaceTypeCubemapLayered = ccudart.cudaSurfaceTypeCubemapLayered # <<<<<<<<<<<<<< * * cudaTextureType1D = ccudart.cudaTextureType1D */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaSurfaceTypeCubemapLayered); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 319, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaSurfaceTypeCubemapLayered, __pyx_t_2) < 0) __PYX_ERR(0, 319, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":321 * cudaSurfaceTypeCubemapLayered = ccudart.cudaSurfaceTypeCubemapLayered * * cudaTextureType1D = ccudart.cudaTextureType1D # <<<<<<<<<<<<<< * * cudaTextureType2D = ccudart.cudaTextureType2D */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaTextureType1D); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 321, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaTextureType1D, __pyx_t_2) < 0) __PYX_ERR(0, 321, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":323 * cudaTextureType1D = ccudart.cudaTextureType1D * * cudaTextureType2D = ccudart.cudaTextureType2D # <<<<<<<<<<<<<< * * cudaTextureType3D = ccudart.cudaTextureType3D */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaTextureType2D); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 323, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaTextureType2D, __pyx_t_2) < 0) __PYX_ERR(0, 323, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":325 * cudaTextureType2D = ccudart.cudaTextureType2D * * cudaTextureType3D = ccudart.cudaTextureType3D # <<<<<<<<<<<<<< * * cudaTextureTypeCubemap = ccudart.cudaTextureTypeCubemap */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaTextureType3D); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 325, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaTextureType3D, __pyx_t_2) < 0) __PYX_ERR(0, 325, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":327 * cudaTextureType3D = ccudart.cudaTextureType3D * * cudaTextureTypeCubemap = ccudart.cudaTextureTypeCubemap # <<<<<<<<<<<<<< * * cudaTextureType1DLayered = ccudart.cudaTextureType1DLayered */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaTextureTypeCubemap); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 327, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaTextureTypeCubemap, __pyx_t_2) < 0) __PYX_ERR(0, 327, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":329 * cudaTextureTypeCubemap = ccudart.cudaTextureTypeCubemap * * cudaTextureType1DLayered = ccudart.cudaTextureType1DLayered # <<<<<<<<<<<<<< * * cudaTextureType2DLayered = ccudart.cudaTextureType2DLayered */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaTextureType1DLayered); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 329, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaTextureType1DLayered, __pyx_t_2) < 0) __PYX_ERR(0, 329, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":331 * cudaTextureType1DLayered = ccudart.cudaTextureType1DLayered * * cudaTextureType2DLayered = ccudart.cudaTextureType2DLayered # <<<<<<<<<<<<<< * * cudaTextureTypeCubemapLayered = ccudart.cudaTextureTypeCubemapLayered */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaTextureType2DLayered); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 331, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaTextureType2DLayered, __pyx_t_2) < 0) __PYX_ERR(0, 331, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":333 * cudaTextureType2DLayered = ccudart.cudaTextureType2DLayered * * cudaTextureTypeCubemapLayered = ccudart.cudaTextureTypeCubemapLayered # <<<<<<<<<<<<<< * * #: CUDA Runtime API Version */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_cudaTextureTypeCubemapLayered); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 333, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaTextureTypeCubemapLayered, __pyx_t_2) < 0) __PYX_ERR(0, 333, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":336 * * #: CUDA Runtime API Version * CUDART_VERSION = ccudart.CUDART_VERSION # <<<<<<<<<<<<<< * * __CUDART_API_VERSION = ccudart.__CUDART_API_VERSION */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_CUDART_VERSION); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 336, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_CUDART_VERSION, __pyx_t_2) < 0) __PYX_ERR(0, 336, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":338 * CUDART_VERSION = ccudart.CUDART_VERSION * * __CUDART_API_VERSION = ccudart.__CUDART_API_VERSION # <<<<<<<<<<<<<< * * #: Maximum number of planes per frame */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart___CUDART_API_VERSION); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 338, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_CUDART_API_VERSION, __pyx_t_2) < 0) __PYX_ERR(0, 338, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":341 * * #: Maximum number of planes per frame * CUDA_EGL_MAX_PLANES = ccudart.CUDA_EGL_MAX_PLANES # <<<<<<<<<<<<<< * * class cudaError_t(IntEnum): */ __pyx_t_2 = __Pyx_PyInt_From___pyx_anon_enum(__pyx_e_4cuda_7ccudart_CUDA_EGL_MAX_PLANES); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 341, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_CUDA_EGL_MAX_PLANES, __pyx_t_2) < 0) __PYX_ERR(0, 341, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":343 * CUDA_EGL_MAX_PLANES = ccudart.CUDA_EGL_MAX_PLANES * * class cudaError_t(IntEnum): # <<<<<<<<<<<<<< * """ * impl_private CUDA error types */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 343, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 343, __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)) __PYX_ERR(0, 343, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 343, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 343, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_2, __pyx_n_s_cudaError_t, __pyx_n_s_cudaError_t, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_impl_private_CUDA_error_types); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 343, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_2 != __pyx_t_3) { if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_3) < 0))) __PYX_ERR(0, 343, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":351 * #: this also means that the operation being queried is complete (see * #: :py:obj:`~.cudaEventQuery()` and :py:obj:`~.cudaStreamQuery()`). * cudaSuccess = ccudart.cudaError.cudaSuccess # <<<<<<<<<<<<<< * * #: This indicates that one or more of the parameters passed to the API */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaSuccess); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 351, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaSuccess, __pyx_t_3) < 0) __PYX_ERR(0, 351, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":355 * #: This indicates that one or more of the parameters passed to the API * #: call is not within an acceptable range of values. * cudaErrorInvalidValue = ccudart.cudaError.cudaErrorInvalidValue # <<<<<<<<<<<<<< * * #: The API call failed because it was unable to allocate enough memory */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorInvalidValue); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 355, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorInvalidValue, __pyx_t_3) < 0) __PYX_ERR(0, 355, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":359 * #: The API call failed because it was unable to allocate enough memory * #: or other resources to perform the requested operation. * cudaErrorMemoryAllocation = ccudart.cudaError.cudaErrorMemoryAllocation # <<<<<<<<<<<<<< * * #: The API call failed because the CUDA driver and runtime could not be */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorMemoryAllocation); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 359, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorMemoryAllocation, __pyx_t_3) < 0) __PYX_ERR(0, 359, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":363 * #: The API call failed because the CUDA driver and runtime could not be * #: initialized. * cudaErrorInitializationError = ccudart.cudaError.cudaErrorInitializationError # <<<<<<<<<<<<<< * * #: This indicates that a CUDA Runtime API call cannot be executed */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorInitializationError); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 363, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorInitializationError, __pyx_t_3) < 0) __PYX_ERR(0, 363, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":368 * #: because it is being called during process shut down, at a point in * #: time after CUDA driver has been unloaded. * cudaErrorCudartUnloading = ccudart.cudaError.cudaErrorCudartUnloading # <<<<<<<<<<<<<< * * #: This indicates profiler is not initialized for this run. This can */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorCudartUnloading); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 368, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorCudartUnloading, __pyx_t_3) < 0) __PYX_ERR(0, 368, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":373 * #: happen when the application is running with external profiling tools * #: like visual profiler. * cudaErrorProfilerDisabled = ccudart.cudaError.cudaErrorProfilerDisabled # <<<<<<<<<<<<<< * * #: [Deprecated] */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorProfilerDisabled); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 373, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorProfilerDisabled, __pyx_t_3) < 0) __PYX_ERR(0, 373, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":376 * * #: [Deprecated] * cudaErrorProfilerNotInitialized = ccudart.cudaError.cudaErrorProfilerNotInitialized # <<<<<<<<<<<<<< * * #: [Deprecated] */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorProfilerNotInitialized); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 376, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorProfilerNotInitialized, __pyx_t_3) < 0) __PYX_ERR(0, 376, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":379 * * #: [Deprecated] * cudaErrorProfilerAlreadyStarted = ccudart.cudaError.cudaErrorProfilerAlreadyStarted # <<<<<<<<<<<<<< * * #: [Deprecated] */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorProfilerAlreadyStarted); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 379, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorProfilerAlreadyStarted, __pyx_t_3) < 0) __PYX_ERR(0, 379, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":382 * * #: [Deprecated] * cudaErrorProfilerAlreadyStopped = ccudart.cudaError.cudaErrorProfilerAlreadyStopped # <<<<<<<<<<<<<< * * #: This indicates that a kernel launch is requesting resources that can */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorProfilerAlreadyStopped); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 382, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorProfilerAlreadyStopped, __pyx_t_3) < 0) __PYX_ERR(0, 382, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":389 * #: as will requesting too many threads or blocks. See * #: :py:obj:`~.cudaDeviceProp` for more device limitations. * cudaErrorInvalidConfiguration = ccudart.cudaError.cudaErrorInvalidConfiguration # <<<<<<<<<<<<<< * * #: This indicates that one or more of the pitch-related parameters */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorInvalidConfiguration); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 389, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorInvalidConfiguration, __pyx_t_3) < 0) __PYX_ERR(0, 389, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":393 * #: 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 = ccudart.cudaError.cudaErrorInvalidPitchValue # <<<<<<<<<<<<<< * * #: This indicates that the symbol name/identifier passed to the API */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorInvalidPitchValue); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 393, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorInvalidPitchValue, __pyx_t_3) < 0) __PYX_ERR(0, 393, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":397 * #: This indicates that the symbol name/identifier passed to the API * #: call is not a valid name or identifier. * cudaErrorInvalidSymbol = ccudart.cudaError.cudaErrorInvalidSymbol # <<<<<<<<<<<<<< * * #: This indicates that at least one host pointer passed to the API call */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorInvalidSymbol); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 397, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorInvalidSymbol, __pyx_t_3) < 0) __PYX_ERR(0, 397, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":401 * #: This indicates that at least one host pointer passed to the API call * #: is not a valid host pointer. [Deprecated] * cudaErrorInvalidHostPointer = ccudart.cudaError.cudaErrorInvalidHostPointer # <<<<<<<<<<<<<< * * #: This indicates that at least one device pointer passed to the API */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorInvalidHostPointer); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 401, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorInvalidHostPointer, __pyx_t_3) < 0) __PYX_ERR(0, 401, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":405 * #: This indicates that at least one device pointer passed to the API * #: call is not a valid device pointer. [Deprecated] * cudaErrorInvalidDevicePointer = ccudart.cudaError.cudaErrorInvalidDevicePointer # <<<<<<<<<<<<<< * * #: This indicates that the texture passed to the API call is not a */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorInvalidDevicePointer); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 405, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorInvalidDevicePointer, __pyx_t_3) < 0) __PYX_ERR(0, 405, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":409 * #: This indicates that the texture passed to the API call is not a * #: valid texture. * cudaErrorInvalidTexture = ccudart.cudaError.cudaErrorInvalidTexture # <<<<<<<<<<<<<< * * #: This indicates that the texture binding is not valid. This occurs if */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorInvalidTexture); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 409, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorInvalidTexture, __pyx_t_3) < 0) __PYX_ERR(0, 409, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":414 * #: you call :py:obj:`~.cudaGetTextureAlignmentOffset()` with an unbound * #: texture. * cudaErrorInvalidTextureBinding = ccudart.cudaError.cudaErrorInvalidTextureBinding # <<<<<<<<<<<<<< * * #: This indicates that the channel descriptor passed to the API call is */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorInvalidTextureBinding); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 414, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorInvalidTextureBinding, __pyx_t_3) < 0) __PYX_ERR(0, 414, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":420 * #: specified by :py:obj:`~.cudaChannelFormatKind`, or if one of the * #: dimensions is invalid. * cudaErrorInvalidChannelDescriptor = ccudart.cudaError.cudaErrorInvalidChannelDescriptor # <<<<<<<<<<<<<< * * #: This indicates that the direction of the memcpy passed to the API */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorInvalidChannelDescriptor); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 420, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorInvalidChannelDescripto, __pyx_t_3) < 0) __PYX_ERR(0, 420, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":425 * #: call is not one of the types specified by * #: :py:obj:`~.cudaMemcpyKind`. * cudaErrorInvalidMemcpyDirection = ccudart.cudaError.cudaErrorInvalidMemcpyDirection # <<<<<<<<<<<<<< * * #: This indicated that the user has taken the address of a constant */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorInvalidMemcpyDirection); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 425, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorInvalidMemcpyDirection, __pyx_t_3) < 0) __PYX_ERR(0, 425, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":430 * #: variable, which was forbidden up until the CUDA 3.1 release. * #: [Deprecated] * cudaErrorAddressOfConstant = ccudart.cudaError.cudaErrorAddressOfConstant # <<<<<<<<<<<<<< * * #: This indicated that a texture fetch was not able to be performed. */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorAddressOfConstant); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 430, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorAddressOfConstant, __pyx_t_3) < 0) __PYX_ERR(0, 430, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":435 * #: This was previously used for device emulation of texture operations. * #: [Deprecated] * cudaErrorTextureFetchFailed = ccudart.cudaError.cudaErrorTextureFetchFailed # <<<<<<<<<<<<<< * * #: This indicated that a texture was not bound for access. This was */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorTextureFetchFailed); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 435, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorTextureFetchFailed, __pyx_t_3) < 0) __PYX_ERR(0, 435, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":440 * #: previously used for device emulation of texture operations. * #: [Deprecated] * cudaErrorTextureNotBound = ccudart.cudaError.cudaErrorTextureNotBound # <<<<<<<<<<<<<< * * #: This indicated that a synchronization operation had failed. This was */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorTextureNotBound); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 440, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorTextureNotBound, __pyx_t_3) < 0) __PYX_ERR(0, 440, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":444 * #: This indicated that a synchronization operation had failed. This was * #: previously used for some device emulation functions. [Deprecated] * cudaErrorSynchronizationError = ccudart.cudaError.cudaErrorSynchronizationError # <<<<<<<<<<<<<< * * #: This indicates that a non-float texture was being accessed with */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorSynchronizationError); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 444, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorSynchronizationError, __pyx_t_3) < 0) __PYX_ERR(0, 444, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":448 * #: This indicates that a non-float texture was being accessed with * #: linear filtering. This is not supported by CUDA. * cudaErrorInvalidFilterSetting = ccudart.cudaError.cudaErrorInvalidFilterSetting # <<<<<<<<<<<<<< * * #: This indicates that an attempt was made to read a non-float texture */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorInvalidFilterSetting); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 448, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorInvalidFilterSetting, __pyx_t_3) < 0) __PYX_ERR(0, 448, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":452 * #: This indicates that an attempt was made to read a non-float texture * #: as a normalized float. This is not supported by CUDA. * cudaErrorInvalidNormSetting = ccudart.cudaError.cudaErrorInvalidNormSetting # <<<<<<<<<<<<<< * * #: Mixing of device and device emulation code was not allowed. */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorInvalidNormSetting); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 452, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorInvalidNormSetting, __pyx_t_3) < 0) __PYX_ERR(0, 452, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":456 * #: Mixing of device and device emulation code was not allowed. * #: [Deprecated] * cudaErrorMixedDeviceExecution = ccudart.cudaError.cudaErrorMixedDeviceExecution # <<<<<<<<<<<<<< * * #: This indicates that the API call is not yet implemented. Production */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorMixedDeviceExecution); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 456, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorMixedDeviceExecution, __pyx_t_3) < 0) __PYX_ERR(0, 456, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":460 * #: This indicates that the API call is not yet implemented. Production * #: releases of CUDA will never return this error. [Deprecated] * cudaErrorNotYetImplemented = ccudart.cudaError.cudaErrorNotYetImplemented # <<<<<<<<<<<<<< * * #: This indicated that an emulated device pointer exceeded the 32-bit */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorNotYetImplemented); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 460, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorNotYetImplemented, __pyx_t_3) < 0) __PYX_ERR(0, 460, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":464 * #: This indicated that an emulated device pointer exceeded the 32-bit * #: address range. [Deprecated] * cudaErrorMemoryValueTooLarge = ccudart.cudaError.cudaErrorMemoryValueTooLarge # <<<<<<<<<<<<<< * * #: This indicates that the CUDA driver that the application has loaded */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorMemoryValueTooLarge); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 464, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorMemoryValueTooLarge, __pyx_t_3) < 0) __PYX_ERR(0, 464, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":469 * #: 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 = ccudart.cudaError.cudaErrorStubLibrary # <<<<<<<<<<<<<< * * #: This indicates that the installed NVIDIA CUDA driver is older than */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorStubLibrary); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 469, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorStubLibrary, __pyx_t_3) < 0) __PYX_ERR(0, 469, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":475 * #: Users should install an updated NVIDIA display driver to allow the * #: application to run. * cudaErrorInsufficientDriver = ccudart.cudaError.cudaErrorInsufficientDriver # <<<<<<<<<<<<<< * * #: This indicates that the API call requires a newer CUDA driver than */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorInsufficientDriver); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 475, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorInsufficientDriver, __pyx_t_3) < 0) __PYX_ERR(0, 475, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":480 * #: the one currently installed. Users should install an updated NVIDIA * #: CUDA driver to allow the API call to succeed. * cudaErrorCallRequiresNewerDriver = ccudart.cudaError.cudaErrorCallRequiresNewerDriver # <<<<<<<<<<<<<< * * #: This indicates that the surface passed to the API call is not a */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorCallRequiresNewerDriver); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 480, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorCallRequiresNewerDriver, __pyx_t_3) < 0) __PYX_ERR(0, 480, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":484 * #: This indicates that the surface passed to the API call is not a * #: valid surface. * cudaErrorInvalidSurface = ccudart.cudaError.cudaErrorInvalidSurface # <<<<<<<<<<<<<< * * #: This indicates that multiple global or constant variables (across */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorInvalidSurface); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 484, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorInvalidSurface, __pyx_t_3) < 0) __PYX_ERR(0, 484, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":489 * #: separate CUDA source files in the application) share the same string * #: name. * cudaErrorDuplicateVariableName = ccudart.cudaError.cudaErrorDuplicateVariableName # <<<<<<<<<<<<<< * * #: This indicates that multiple textures (across separate CUDA source */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorDuplicateVariableName); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 489, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorDuplicateVariableName, __pyx_t_3) < 0) __PYX_ERR(0, 489, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":493 * #: This indicates that multiple textures (across separate CUDA source * #: files in the application) share the same string name. * cudaErrorDuplicateTextureName = ccudart.cudaError.cudaErrorDuplicateTextureName # <<<<<<<<<<<<<< * * #: This indicates that multiple surfaces (across separate CUDA source */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorDuplicateTextureName); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 493, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorDuplicateTextureName, __pyx_t_3) < 0) __PYX_ERR(0, 493, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":497 * #: This indicates that multiple surfaces (across separate CUDA source * #: files in the application) share the same string name. * cudaErrorDuplicateSurfaceName = ccudart.cudaError.cudaErrorDuplicateSurfaceName # <<<<<<<<<<<<<< * * #: This indicates that all CUDA devices are busy or unavailable at the */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorDuplicateSurfaceName); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 497, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorDuplicateSurfaceName, __pyx_t_3) < 0) __PYX_ERR(0, 497, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":506 * #: starting. They can also be unavailable due to memory constraints on * #: a device that already has active CUDA work being performed. * cudaErrorDevicesUnavailable = ccudart.cudaError.cudaErrorDevicesUnavailable # <<<<<<<<<<<<<< * * #: This indicates that the current context is not compatible with this */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorDevicesUnavailable); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 506, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorDevicesUnavailable, __pyx_t_3) < 0) __PYX_ERR(0, 506, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":517 * #: context has been destroyed. Please see :py:obj:`~.Interactions`with * #: the CUDA Driver API" for more information. * cudaErrorIncompatibleDriverContext = ccudart.cudaError.cudaErrorIncompatibleDriverContext # <<<<<<<<<<<<<< * * #: The device function being invoked (usually via */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorIncompatibleDriverContext); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 517, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorIncompatibleDriverConte, __pyx_t_3) < 0) __PYX_ERR(0, 517, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":522 * #: :py:obj:`~.cudaLaunchKernel()`) was not previously configured via * #: the :py:obj:`~.cudaConfigureCall()` function. * cudaErrorMissingConfiguration = ccudart.cudaError.cudaErrorMissingConfiguration # <<<<<<<<<<<<<< * * #: This indicated that a previous kernel launch failed. This was */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorMissingConfiguration); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 522, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorMissingConfiguration, __pyx_t_3) < 0) __PYX_ERR(0, 522, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":527 * #: previously used for device emulation of kernel launches. * #: [Deprecated] * cudaErrorPriorLaunchFailure = ccudart.cudaError.cudaErrorPriorLaunchFailure # <<<<<<<<<<<<<< * * #: This error indicates that a device runtime grid launch did not occur */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorPriorLaunchFailure); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 527, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorPriorLaunchFailure, __pyx_t_3) < 0) __PYX_ERR(0, 527, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":532 * #: because the depth of the child grid would exceed the maximum * #: supported number of nested grid launches. * cudaErrorLaunchMaxDepthExceeded = ccudart.cudaError.cudaErrorLaunchMaxDepthExceeded # <<<<<<<<<<<<<< * * #: This error indicates that a grid launch did not occur because the */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorLaunchMaxDepthExceeded); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 532, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorLaunchMaxDepthExceeded, __pyx_t_3) < 0) __PYX_ERR(0, 532, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":538 * #: runtime. Kernels launched via the device runtime only support * #: textures created with the Texture Object API's. * cudaErrorLaunchFileScopedTex = ccudart.cudaError.cudaErrorLaunchFileScopedTex # <<<<<<<<<<<<<< * * #: This error indicates that a grid launch did not occur because the */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorLaunchFileScopedTex); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 538, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorLaunchFileScopedTex, __pyx_t_3) < 0) __PYX_ERR(0, 538, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":544 * #: runtime. Kernels launched via the device runtime only support * #: surfaces created with the Surface Object API's. * cudaErrorLaunchFileScopedSurf = ccudart.cudaError.cudaErrorLaunchFileScopedSurf # <<<<<<<<<<<<<< * * #: This error indicates that a call to */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorLaunchFileScopedSurf); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 544, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorLaunchFileScopedSurf, __pyx_t_3) < 0) __PYX_ERR(0, 544, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":561 * #: :py:obj:`~.cudaDeviceSynchronize` made from device runtime is only * #: supported on devices of compute capability < 9.0. * cudaErrorSyncDepthExceeded = ccudart.cudaError.cudaErrorSyncDepthExceeded # <<<<<<<<<<<<<< * * #: This error indicates that a device runtime grid launch failed */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorSyncDepthExceeded); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 561, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorSyncDepthExceeded, __pyx_t_3) < 0) __PYX_ERR(0, 561, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":572 * #: of pending device runtime launches will require the runtime to * #: reserve device memory that cannot be used for user allocations. * cudaErrorLaunchPendingCountExceeded = ccudart.cudaError.cudaErrorLaunchPendingCountExceeded # <<<<<<<<<<<<<< * * #: The requested device function does not exist or is not compiled for */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorLaunchPendingCountExceeded); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 572, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorLaunchPendingCountExcee, __pyx_t_3) < 0) __PYX_ERR(0, 572, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":576 * #: The requested device function does not exist or is not compiled for * #: the proper device architecture. * cudaErrorInvalidDeviceFunction = ccudart.cudaError.cudaErrorInvalidDeviceFunction # <<<<<<<<<<<<<< * * #: This indicates that no CUDA-capable devices were detected by the */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorInvalidDeviceFunction); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 576, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorInvalidDeviceFunction, __pyx_t_3) < 0) __PYX_ERR(0, 576, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":580 * #: This indicates that no CUDA-capable devices were detected by the * #: installed CUDA driver. * cudaErrorNoDevice = ccudart.cudaError.cudaErrorNoDevice # <<<<<<<<<<<<<< * * #: This indicates that the device ordinal supplied by the user does not */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorNoDevice); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 580, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorNoDevice, __pyx_t_3) < 0) __PYX_ERR(0, 580, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":585 * #: correspond to a valid CUDA device or that the action requested is * #: invalid for the specified device. * cudaErrorInvalidDevice = ccudart.cudaError.cudaErrorInvalidDevice # <<<<<<<<<<<<<< * * #: This indicates that the device doesn't have a valid Grid License. */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorInvalidDevice); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 585, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorInvalidDevice, __pyx_t_3) < 0) __PYX_ERR(0, 585, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":588 * * #: This indicates that the device doesn't have a valid Grid License. * cudaErrorDeviceNotLicensed = ccudart.cudaError.cudaErrorDeviceNotLicensed # <<<<<<<<<<<<<< * * #: By default, the CUDA runtime may perform a minimal set of self- */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorDeviceNotLicensed); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 588, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorDeviceNotLicensed, __pyx_t_3) < 0) __PYX_ERR(0, 588, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":595 * #: least one of these tests has failed and the validity of either the * #: runtime or the driver could not be established. * cudaErrorSoftwareValidityNotEstablished = ccudart.cudaError.cudaErrorSoftwareValidityNotEstablished # <<<<<<<<<<<<<< * * #: This indicates an internal startup failure in the CUDA runtime. */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorSoftwareValidityNotEstablished); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 595, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorSoftwareValidityNotEsta, __pyx_t_3) < 0) __PYX_ERR(0, 595, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":598 * * #: This indicates an internal startup failure in the CUDA runtime. * cudaErrorStartupFailure = ccudart.cudaError.cudaErrorStartupFailure # <<<<<<<<<<<<<< * * #: This indicates that the device kernel image is invalid. */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorStartupFailure); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 598, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorStartupFailure, __pyx_t_3) < 0) __PYX_ERR(0, 598, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":601 * * #: This indicates that the device kernel image is invalid. * cudaErrorInvalidKernelImage = ccudart.cudaError.cudaErrorInvalidKernelImage # <<<<<<<<<<<<<< * * #: This most frequently indicates that there is no context bound to the */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorInvalidKernelImage); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 601, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorInvalidKernelImage, __pyx_t_3) < 0) __PYX_ERR(0, 601, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":609 * #: if a user mixes different API versions (i.e. 3010 context with 3020 * #: API calls). See :py:obj:`~.cuCtxGetApiVersion()` for more details. * cudaErrorDeviceUninitialized = ccudart.cudaError.cudaErrorDeviceUninitialized # <<<<<<<<<<<<<< * * #: This indicates that the buffer object could not be mapped. */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorDeviceUninitialized); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 609, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorDeviceUninitialized, __pyx_t_3) < 0) __PYX_ERR(0, 609, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":612 * * #: This indicates that the buffer object could not be mapped. * cudaErrorMapBufferObjectFailed = ccudart.cudaError.cudaErrorMapBufferObjectFailed # <<<<<<<<<<<<<< * * #: This indicates that the buffer object could not be unmapped. */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorMapBufferObjectFailed); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 612, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorMapBufferObjectFailed, __pyx_t_3) < 0) __PYX_ERR(0, 612, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":615 * * #: This indicates that the buffer object could not be unmapped. * cudaErrorUnmapBufferObjectFailed = ccudart.cudaError.cudaErrorUnmapBufferObjectFailed # <<<<<<<<<<<<<< * * #: This indicates that the specified array is currently mapped and thus */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorUnmapBufferObjectFailed); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 615, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorUnmapBufferObjectFailed, __pyx_t_3) < 0) __PYX_ERR(0, 615, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":619 * #: This indicates that the specified array is currently mapped and thus * #: cannot be destroyed. * cudaErrorArrayIsMapped = ccudart.cudaError.cudaErrorArrayIsMapped # <<<<<<<<<<<<<< * * #: This indicates that the resource is already mapped. */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorArrayIsMapped); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 619, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorArrayIsMapped, __pyx_t_3) < 0) __PYX_ERR(0, 619, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":622 * * #: This indicates that the resource is already mapped. * cudaErrorAlreadyMapped = ccudart.cudaError.cudaErrorAlreadyMapped # <<<<<<<<<<<<<< * * #: This indicates that there is no kernel image available that is */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorAlreadyMapped); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 622, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorAlreadyMapped, __pyx_t_3) < 0) __PYX_ERR(0, 622, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":628 * #: generation options for a particular CUDA source file that do not * #: include the corresponding device configuration. * cudaErrorNoKernelImageForDevice = ccudart.cudaError.cudaErrorNoKernelImageForDevice # <<<<<<<<<<<<<< * * #: This indicates that a resource has already been acquired. */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorNoKernelImageForDevice); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 628, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorNoKernelImageForDevice, __pyx_t_3) < 0) __PYX_ERR(0, 628, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":631 * * #: This indicates that a resource has already been acquired. * cudaErrorAlreadyAcquired = ccudart.cudaError.cudaErrorAlreadyAcquired # <<<<<<<<<<<<<< * * #: This indicates that a resource is not mapped. */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorAlreadyAcquired); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 631, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorAlreadyAcquired, __pyx_t_3) < 0) __PYX_ERR(0, 631, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":634 * * #: This indicates that a resource is not mapped. * cudaErrorNotMapped = ccudart.cudaError.cudaErrorNotMapped # <<<<<<<<<<<<<< * * #: This indicates that a mapped resource is not available for access as */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorNotMapped); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 634, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorNotMapped, __pyx_t_3) < 0) __PYX_ERR(0, 634, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":638 * #: This indicates that a mapped resource is not available for access as * #: an array. * cudaErrorNotMappedAsArray = ccudart.cudaError.cudaErrorNotMappedAsArray # <<<<<<<<<<<<<< * * #: This indicates that a mapped resource is not available for access as */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorNotMappedAsArray); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 638, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorNotMappedAsArray, __pyx_t_3) < 0) __PYX_ERR(0, 638, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":642 * #: This indicates that a mapped resource is not available for access as * #: a pointer. * cudaErrorNotMappedAsPointer = ccudart.cudaError.cudaErrorNotMappedAsPointer # <<<<<<<<<<<<<< * * #: This indicates that an uncorrectable ECC error was detected during */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorNotMappedAsPointer); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 642, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorNotMappedAsPointer, __pyx_t_3) < 0) __PYX_ERR(0, 642, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":646 * #: This indicates that an uncorrectable ECC error was detected during * #: execution. * cudaErrorECCUncorrectable = ccudart.cudaError.cudaErrorECCUncorrectable # <<<<<<<<<<<<<< * * #: This indicates that the :py:obj:`~.cudaLimit` passed to the API call */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorECCUncorrectable); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 646, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorECCUncorrectable, __pyx_t_3) < 0) __PYX_ERR(0, 646, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":650 * #: This indicates that the :py:obj:`~.cudaLimit` passed to the API call * #: is not supported by the active device. * cudaErrorUnsupportedLimit = ccudart.cudaError.cudaErrorUnsupportedLimit # <<<<<<<<<<<<<< * * #: This indicates that a call tried to access an exclusive-thread */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorUnsupportedLimit); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 650, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorUnsupportedLimit, __pyx_t_3) < 0) __PYX_ERR(0, 650, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":654 * #: This indicates that a call tried to access an exclusive-thread * #: device that is already in use by a different thread. * cudaErrorDeviceAlreadyInUse = ccudart.cudaError.cudaErrorDeviceAlreadyInUse # <<<<<<<<<<<<<< * * #: This error indicates that P2P access is not supported across the */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorDeviceAlreadyInUse); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 654, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorDeviceAlreadyInUse, __pyx_t_3) < 0) __PYX_ERR(0, 654, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":658 * #: This error indicates that P2P access is not supported across the * #: given devices. * cudaErrorPeerAccessUnsupported = ccudart.cudaError.cudaErrorPeerAccessUnsupported # <<<<<<<<<<<<<< * * #: A PTX compilation failed. The runtime may fall back to compiling PTX */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorPeerAccessUnsupported); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 658, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorPeerAccessUnsupported, __pyx_t_3) < 0) __PYX_ERR(0, 658, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":663 * #: if an application does not contain a suitable binary for the current * #: device. * cudaErrorInvalidPtx = ccudart.cudaError.cudaErrorInvalidPtx # <<<<<<<<<<<<<< * * #: This indicates an error with the OpenGL or DirectX context. */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorInvalidPtx); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 663, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorInvalidPtx, __pyx_t_3) < 0) __PYX_ERR(0, 663, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":666 * * #: This indicates an error with the OpenGL or DirectX context. * cudaErrorInvalidGraphicsContext = ccudart.cudaError.cudaErrorInvalidGraphicsContext # <<<<<<<<<<<<<< * * #: This indicates that an uncorrectable NVLink error was detected */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorInvalidGraphicsContext); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 666, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorInvalidGraphicsContext, __pyx_t_3) < 0) __PYX_ERR(0, 666, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":670 * #: This indicates that an uncorrectable NVLink error was detected * #: during the execution. * cudaErrorNvlinkUncorrectable = ccudart.cudaError.cudaErrorNvlinkUncorrectable # <<<<<<<<<<<<<< * * #: This indicates that the PTX JIT compiler library was not found. The */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorNvlinkUncorrectable); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 670, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorNvlinkUncorrectable, __pyx_t_3) < 0) __PYX_ERR(0, 670, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":676 * #: fall back to compiling PTX if an application does not contain a * #: suitable binary for the current device. * cudaErrorJitCompilerNotFound = ccudart.cudaError.cudaErrorJitCompilerNotFound # <<<<<<<<<<<<<< * * #: This indicates that the provided PTX was compiled with an */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorJitCompilerNotFound); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 676, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorJitCompilerNotFound, __pyx_t_3) < 0) __PYX_ERR(0, 676, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":682 * #: was generated by a compiler newer than what is supported by the CUDA * #: driver and PTX JIT compiler. * cudaErrorUnsupportedPtxVersion = ccudart.cudaError.cudaErrorUnsupportedPtxVersion # <<<<<<<<<<<<<< * * #: This indicates that the JIT compilation was disabled. The JIT */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorUnsupportedPtxVersion); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 682, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorUnsupportedPtxVersion, __pyx_t_3) < 0) __PYX_ERR(0, 682, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":688 * #: if an application does not contain a suitable binary for the current * #: device. * cudaErrorJitCompilationDisabled = ccudart.cudaError.cudaErrorJitCompilationDisabled # <<<<<<<<<<<<<< * * #: This indicates that the provided execution affinity is not supported */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorJitCompilationDisabled); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 688, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorJitCompilationDisabled, __pyx_t_3) < 0) __PYX_ERR(0, 688, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":692 * #: This indicates that the provided execution affinity is not supported * #: by the device. * cudaErrorUnsupportedExecAffinity = ccudart.cudaError.cudaErrorUnsupportedExecAffinity # <<<<<<<<<<<<<< * * #: This indicates that the code to be compiled by the PTX JIT contains */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorUnsupportedExecAffinity); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 692, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorUnsupportedExecAffinity, __pyx_t_3) < 0) __PYX_ERR(0, 692, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":696 * #: This indicates that the code to be compiled by the PTX JIT contains * #: unsupported call to cudaDeviceSynchronize. * cudaErrorUnsupportedDevSideSync = ccudart.cudaError.cudaErrorUnsupportedDevSideSync # <<<<<<<<<<<<<< * * #: This indicates that the device kernel source is invalid. */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorUnsupportedDevSideSync); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 696, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorUnsupportedDevSideSync, __pyx_t_3) < 0) __PYX_ERR(0, 696, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":699 * * #: This indicates that the device kernel source is invalid. * cudaErrorInvalidSource = ccudart.cudaError.cudaErrorInvalidSource # <<<<<<<<<<<<<< * * #: This indicates that the file specified was not found. */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorInvalidSource); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 699, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorInvalidSource, __pyx_t_3) < 0) __PYX_ERR(0, 699, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":702 * * #: This indicates that the file specified was not found. * cudaErrorFileNotFound = ccudart.cudaError.cudaErrorFileNotFound # <<<<<<<<<<<<<< * * #: This indicates that a link to a shared object failed to resolve. */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorFileNotFound); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 702, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorFileNotFound, __pyx_t_3) < 0) __PYX_ERR(0, 702, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":705 * * #: This indicates that a link to a shared object failed to resolve. * cudaErrorSharedObjectSymbolNotFound = ccudart.cudaError.cudaErrorSharedObjectSymbolNotFound # <<<<<<<<<<<<<< * * #: This indicates that initialization of a shared object failed. */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorSharedObjectSymbolNotFound); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 705, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorSharedObjectSymbolNotFo, __pyx_t_3) < 0) __PYX_ERR(0, 705, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":708 * * #: This indicates that initialization of a shared object failed. * cudaErrorSharedObjectInitFailed = ccudart.cudaError.cudaErrorSharedObjectInitFailed # <<<<<<<<<<<<<< * * #: This error indicates that an OS call failed. */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorSharedObjectInitFailed); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 708, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorSharedObjectInitFailed, __pyx_t_3) < 0) __PYX_ERR(0, 708, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":711 * * #: This error indicates that an OS call failed. * cudaErrorOperatingSystem = ccudart.cudaError.cudaErrorOperatingSystem # <<<<<<<<<<<<<< * * #: This indicates that a resource handle passed to the API call was not */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorOperatingSystem); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 711, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorOperatingSystem, __pyx_t_3) < 0) __PYX_ERR(0, 711, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":716 * #: valid. Resource handles are opaque types like * #: :py:obj:`~.cudaStream_t` and :py:obj:`~.cudaEvent_t`. * cudaErrorInvalidResourceHandle = ccudart.cudaError.cudaErrorInvalidResourceHandle # <<<<<<<<<<<<<< * * #: This indicates that a resource required by the API call is not in a */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorInvalidResourceHandle); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 716, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorInvalidResourceHandle, __pyx_t_3) < 0) __PYX_ERR(0, 716, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":720 * #: This indicates that a resource required by the API call is not in a * #: valid state to perform the requested operation. * cudaErrorIllegalState = ccudart.cudaError.cudaErrorIllegalState # <<<<<<<<<<<<<< * * #: This indicates an attempt was made to introspect an object in a way */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorIllegalState); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 720, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorIllegalState, __pyx_t_3) < 0) __PYX_ERR(0, 720, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":727 * #: version used to introspect it or omission of optional return * #: arguments. * cudaErrorLossyQuery = ccudart.cudaError.cudaErrorLossyQuery # <<<<<<<<<<<<<< * * #: This indicates that a named symbol was not found. Examples of */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorLossyQuery); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 727, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorLossyQuery, __pyx_t_3) < 0) __PYX_ERR(0, 727, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":732 * #: symbols are global/constant variable names, driver function names, * #: texture names, and surface names. * cudaErrorSymbolNotFound = ccudart.cudaError.cudaErrorSymbolNotFound # <<<<<<<<<<<<<< * * #: This indicates that asynchronous operations issued previously have */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorSymbolNotFound); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 732, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorSymbolNotFound, __pyx_t_3) < 0) __PYX_ERR(0, 732, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":739 * #: completion). Calls that may return this value include * #: :py:obj:`~.cudaEventQuery()` and :py:obj:`~.cudaStreamQuery()`. * cudaErrorNotReady = ccudart.cudaError.cudaErrorNotReady # <<<<<<<<<<<<<< * * #: The device encountered a load or store instruction on an invalid */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorNotReady); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 739, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorNotReady, __pyx_t_3) < 0) __PYX_ERR(0, 739, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":745 * #: any further CUDA work will return the same error. To continue using * #: CUDA, the process must be terminated and relaunched. * cudaErrorIllegalAddress = ccudart.cudaError.cudaErrorIllegalAddress # <<<<<<<<<<<<<< * * #: This indicates that a launch did not occur because it did not have */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorIllegalAddress); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 745, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorIllegalAddress, __pyx_t_3) < 0) __PYX_ERR(0, 745, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":753 * #: the device kernel, or the kernel launch specifies too many threads * #: for the kernel's register count. * cudaErrorLaunchOutOfResources = ccudart.cudaError.cudaErrorLaunchOutOfResources # <<<<<<<<<<<<<< * * #: This indicates that the device kernel took too long to execute. This */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorLaunchOutOfResources); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 753, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorLaunchOutOfResources, __pyx_t_3) < 0) __PYX_ERR(0, 753, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":761 * #: work will return the same error. To continue using CUDA, the process * #: must be terminated and relaunched. * cudaErrorLaunchTimeout = ccudart.cudaError.cudaErrorLaunchTimeout # <<<<<<<<<<<<<< * * #: This error indicates a kernel launch that uses an incompatible */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorLaunchTimeout); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 761, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorLaunchTimeout, __pyx_t_3) < 0) __PYX_ERR(0, 761, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":765 * #: This error indicates a kernel launch that uses an incompatible * #: texturing mode. * cudaErrorLaunchIncompatibleTexturing = ccudart.cudaError.cudaErrorLaunchIncompatibleTexturing # <<<<<<<<<<<<<< * * #: This error indicates that a call to */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorLaunchIncompatibleTexturing); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 765, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorLaunchIncompatibleTextu, __pyx_t_3) < 0) __PYX_ERR(0, 765, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":771 * #: addressing on from a context which has already had peer addressing * #: enabled. * cudaErrorPeerAccessAlreadyEnabled = ccudart.cudaError.cudaErrorPeerAccessAlreadyEnabled # <<<<<<<<<<<<<< * * #: This error indicates that :py:obj:`~.cudaDeviceDisablePeerAccess()` */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorPeerAccessAlreadyEnabled); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 771, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorPeerAccessAlreadyEnable, __pyx_t_3) < 0) __PYX_ERR(0, 771, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":776 * #: is trying to disable peer addressing which has not been enabled yet * #: via :py:obj:`~.cudaDeviceEnablePeerAccess()`. * cudaErrorPeerAccessNotEnabled = ccudart.cudaError.cudaErrorPeerAccessNotEnabled # <<<<<<<<<<<<<< * * #: This indicates that the user has called */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorPeerAccessNotEnabled); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 776, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorPeerAccessNotEnabled, __pyx_t_3) < 0) __PYX_ERR(0, 776, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":789 * #: interoperability and there is an existing :py:obj:`~.CUcontext` * #: active on the host thread. * cudaErrorSetOnActiveProcess = ccudart.cudaError.cudaErrorSetOnActiveProcess # <<<<<<<<<<<<<< * * #: This error indicates that the context current to the calling thread */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorSetOnActiveProcess); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 789, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorSetOnActiveProcess, __pyx_t_3) < 0) __PYX_ERR(0, 789, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":794 * #: has been destroyed using :py:obj:`~.cuCtxDestroy`, or is a primary * #: context which has not yet been initialized. * cudaErrorContextIsDestroyed = ccudart.cudaError.cudaErrorContextIsDestroyed # <<<<<<<<<<<<<< * * #: An assert triggered in device code during kernel execution. The */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorContextIsDestroyed); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 794, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorContextIsDestroyed, __pyx_t_3) < 0) __PYX_ERR(0, 794, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":800 * #: To continue using CUDA, the process must be terminated and * #: relaunched. * cudaErrorAssert = ccudart.cudaError.cudaErrorAssert # <<<<<<<<<<<<<< * * #: This error indicates that the hardware resources required to enable */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorAssert); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 800, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorAssert, __pyx_t_3) < 0) __PYX_ERR(0, 800, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":805 * #: peer access have been exhausted for one or more of the devices * #: passed to :py:obj:`~.cudaEnablePeerAccess()`. * cudaErrorTooManyPeers = ccudart.cudaError.cudaErrorTooManyPeers # <<<<<<<<<<<<<< * * #: This error indicates that the memory range passed to */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorTooManyPeers); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 805, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorTooManyPeers, __pyx_t_3) < 0) __PYX_ERR(0, 805, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":809 * #: This error indicates that the memory range passed to * #: :py:obj:`~.cudaHostRegister()` has already been registered. * cudaErrorHostMemoryAlreadyRegistered = ccudart.cudaError.cudaErrorHostMemoryAlreadyRegistered # <<<<<<<<<<<<<< * * #: This error indicates that the pointer passed to */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorHostMemoryAlreadyRegistered); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 809, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorHostMemoryAlreadyRegist, __pyx_t_3) < 0) __PYX_ERR(0, 809, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":814 * #: :py:obj:`~.cudaHostUnregister()` does not correspond to any * #: currently registered memory region. * cudaErrorHostMemoryNotRegistered = ccudart.cudaError.cudaErrorHostMemoryNotRegistered # <<<<<<<<<<<<<< * * #: Device encountered an error in the call stack during kernel */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorHostMemoryNotRegistered); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 814, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorHostMemoryNotRegistered, __pyx_t_3) < 0) __PYX_ERR(0, 814, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":821 * #: further CUDA work will return the same error. To continue using * #: CUDA, the process must be terminated and relaunched. * cudaErrorHardwareStackError = ccudart.cudaError.cudaErrorHardwareStackError # <<<<<<<<<<<<<< * * #: The device encountered an illegal instruction during kernel */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorHardwareStackError); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 821, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorHardwareStackError, __pyx_t_3) < 0) __PYX_ERR(0, 821, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":827 * #: further CUDA work will return the same error. To continue using * #: CUDA, the process must be terminated and relaunched. * cudaErrorIllegalInstruction = ccudart.cudaError.cudaErrorIllegalInstruction # <<<<<<<<<<<<<< * * #: The device encountered a load or store instruction on a memory */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorIllegalInstruction); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 827, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorIllegalInstruction, __pyx_t_3) < 0) __PYX_ERR(0, 827, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":834 * #: error. To continue using CUDA, the process must be terminated and * #: relaunched. * cudaErrorMisalignedAddress = ccudart.cudaError.cudaErrorMisalignedAddress # <<<<<<<<<<<<<< * * #: While executing a kernel, the device encountered an instruction */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorMisalignedAddress); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 834, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorMisalignedAddress, __pyx_t_3) < 0) __PYX_ERR(0, 834, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":843 * #: error. To continue using CUDA, the process must be terminated and * #: relaunched. * cudaErrorInvalidAddressSpace = ccudart.cudaError.cudaErrorInvalidAddressSpace # <<<<<<<<<<<<<< * * #: The device encountered an invalid program counter. This leaves the */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorInvalidAddressSpace); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 843, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorInvalidAddressSpace, __pyx_t_3) < 0) __PYX_ERR(0, 843, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":849 * #: return the same error. To continue using CUDA, the process must be * #: terminated and relaunched. * cudaErrorInvalidPc = ccudart.cudaError.cudaErrorInvalidPc # <<<<<<<<<<<<<< * * #: An exception occurred on the device while executing a kernel. Common */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorInvalidPc); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 849, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorInvalidPc, __pyx_t_3) < 0) __PYX_ERR(0, 849, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":859 * #: error. To continue using CUDA, the process must be terminated and * #: relaunched. * cudaErrorLaunchFailure = ccudart.cudaError.cudaErrorLaunchFailure # <<<<<<<<<<<<<< * * #: This error indicates that the number of blocks launched per grid for */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorLaunchFailure); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 859, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorLaunchFailure, __pyx_t_3) < 0) __PYX_ERR(0, 859, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":870 * #: times the number of multiprocessors as specified by the device * #: attribute :py:obj:`~.cudaDevAttrMultiProcessorCount`. * cudaErrorCooperativeLaunchTooLarge = ccudart.cudaError.cudaErrorCooperativeLaunchTooLarge # <<<<<<<<<<<<<< * * #: This error indicates the attempted operation is not permitted. */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorCooperativeLaunchTooLarge); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 870, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorCooperativeLaunchTooLar, __pyx_t_3) < 0) __PYX_ERR(0, 870, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":873 * * #: This error indicates the attempted operation is not permitted. * cudaErrorNotPermitted = ccudart.cudaError.cudaErrorNotPermitted # <<<<<<<<<<<<<< * * #: This error indicates the attempted operation is not supported on the */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorNotPermitted); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 873, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorNotPermitted, __pyx_t_3) < 0) __PYX_ERR(0, 873, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":877 * #: This error indicates the attempted operation is not supported on the * #: current system or device. * cudaErrorNotSupported = ccudart.cudaError.cudaErrorNotSupported # <<<<<<<<<<<<<< * * #: This error indicates that the system is not yet ready to start any */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorNotSupported); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 877, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorNotSupported, __pyx_t_3) < 0) __PYX_ERR(0, 877, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":884 * #: running. More information about this error can be found in the * #: system specific user guide. * cudaErrorSystemNotReady = ccudart.cudaError.cudaErrorSystemNotReady # <<<<<<<<<<<<<< * * #: This error indicates that there is a mismatch between the versions */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorSystemNotReady); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 884, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorSystemNotReady, __pyx_t_3) < 0) __PYX_ERR(0, 884, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":889 * #: of the display driver and the CUDA driver. Refer to the * #: compatibility documentation for supported versions. * cudaErrorSystemDriverMismatch = ccudart.cudaError.cudaErrorSystemDriverMismatch # <<<<<<<<<<<<<< * * #: This error indicates that the system was upgraded to run with */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorSystemDriverMismatch); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 889, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorSystemDriverMismatch, __pyx_t_3) < 0) __PYX_ERR(0, 889, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":897 * #: supported hardware is visible during initialization via the * #: CUDA_VISIBLE_DEVICES environment variable. * cudaErrorCompatNotSupportedOnDevice = ccudart.cudaError.cudaErrorCompatNotSupportedOnDevice # <<<<<<<<<<<<<< * * #: This error indicates that the MPS client failed to connect to the */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorCompatNotSupportedOnDevice); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 897, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorCompatNotSupportedOnDev, __pyx_t_3) < 0) __PYX_ERR(0, 897, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":901 * #: This error indicates that the MPS client failed to connect to the * #: MPS control daemon or the MPS server. * cudaErrorMpsConnectionFailed = ccudart.cudaError.cudaErrorMpsConnectionFailed # <<<<<<<<<<<<<< * * #: This error indicates that the remote procedural call between the MPS */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorMpsConnectionFailed); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 901, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorMpsConnectionFailed, __pyx_t_3) < 0) __PYX_ERR(0, 901, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":905 * #: This error indicates that the remote procedural call between the MPS * #: server and the MPS client failed. * cudaErrorMpsRpcFailure = ccudart.cudaError.cudaErrorMpsRpcFailure # <<<<<<<<<<<<<< * * #: This error indicates that the MPS server is not ready to accept new */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorMpsRpcFailure); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 905, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorMpsRpcFailure, __pyx_t_3) < 0) __PYX_ERR(0, 905, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":910 * #: MPS client requests. This error can be returned when the MPS server * #: is in the process of recovering from a fatal failure. * cudaErrorMpsServerNotReady = ccudart.cudaError.cudaErrorMpsServerNotReady # <<<<<<<<<<<<<< * * #: This error indicates that the hardware resources required to create */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorMpsServerNotReady); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 910, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorMpsServerNotReady, __pyx_t_3) < 0) __PYX_ERR(0, 910, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":914 * #: This error indicates that the hardware resources required to create * #: MPS client have been exhausted. * cudaErrorMpsMaxClientsReached = ccudart.cudaError.cudaErrorMpsMaxClientsReached # <<<<<<<<<<<<<< * * #: This error indicates the the hardware resources required to device */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorMpsMaxClientsReached); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 914, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorMpsMaxClientsReached, __pyx_t_3) < 0) __PYX_ERR(0, 914, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":918 * #: This error indicates the the hardware resources required to device * #: connections have been exhausted. * cudaErrorMpsMaxConnectionsReached = ccudart.cudaError.cudaErrorMpsMaxConnectionsReached # <<<<<<<<<<<<<< * * #: This error indicates that the MPS client has been terminated by the */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorMpsMaxConnectionsReached); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 918, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorMpsMaxConnectionsReache, __pyx_t_3) < 0) __PYX_ERR(0, 918, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":923 * #: server. To continue using CUDA, the process must be terminated and * #: relaunched. * cudaErrorMpsClientTerminated = ccudart.cudaError.cudaErrorMpsClientTerminated # <<<<<<<<<<<<<< * * #: This error indicates, that the program is using CUDA Dynamic */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorMpsClientTerminated); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 923, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorMpsClientTerminated, __pyx_t_3) < 0) __PYX_ERR(0, 923, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":928 * #: Parallelism, but the current configuration, like MPS, does not * #: support it. * cudaErrorCdpNotSupported = ccudart.cudaError.cudaErrorCdpNotSupported # <<<<<<<<<<<<<< * * #: This error indicates, that the program contains an unsupported */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorCdpNotSupported); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 928, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorCdpNotSupported, __pyx_t_3) < 0) __PYX_ERR(0, 928, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":932 * #: This error indicates, that the program contains an unsupported * #: interaction between different versions of CUDA Dynamic Parallelism. * cudaErrorCdpVersionMismatch = ccudart.cudaError.cudaErrorCdpVersionMismatch # <<<<<<<<<<<<<< * * #: The operation is not permitted when the stream is capturing. */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorCdpVersionMismatch); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 932, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorCdpVersionMismatch, __pyx_t_3) < 0) __PYX_ERR(0, 932, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":935 * * #: The operation is not permitted when the stream is capturing. * cudaErrorStreamCaptureUnsupported = ccudart.cudaError.cudaErrorStreamCaptureUnsupported # <<<<<<<<<<<<<< * * #: The current capture sequence on the stream has been invalidated due */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorStreamCaptureUnsupported); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 935, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorStreamCaptureUnsupporte, __pyx_t_3) < 0) __PYX_ERR(0, 935, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":939 * #: The current capture sequence on the stream has been invalidated due * #: to a previous error. * cudaErrorStreamCaptureInvalidated = ccudart.cudaError.cudaErrorStreamCaptureInvalidated # <<<<<<<<<<<<<< * * #: The operation would have resulted in a merge of two independent */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorStreamCaptureInvalidated); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 939, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorStreamCaptureInvalidate, __pyx_t_3) < 0) __PYX_ERR(0, 939, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":943 * #: The operation would have resulted in a merge of two independent * #: capture sequences. * cudaErrorStreamCaptureMerge = ccudart.cudaError.cudaErrorStreamCaptureMerge # <<<<<<<<<<<<<< * * #: The capture was not initiated in this stream. */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorStreamCaptureMerge); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 943, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorStreamCaptureMerge, __pyx_t_3) < 0) __PYX_ERR(0, 943, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":946 * * #: The capture was not initiated in this stream. * cudaErrorStreamCaptureUnmatched = ccudart.cudaError.cudaErrorStreamCaptureUnmatched # <<<<<<<<<<<<<< * * #: The capture sequence contains a fork that was not joined to the */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorStreamCaptureUnmatched); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 946, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorStreamCaptureUnmatched, __pyx_t_3) < 0) __PYX_ERR(0, 946, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":950 * #: The capture sequence contains a fork that was not joined to the * #: primary stream. * cudaErrorStreamCaptureUnjoined = ccudart.cudaError.cudaErrorStreamCaptureUnjoined # <<<<<<<<<<<<<< * * #: A dependency would have been created which crosses the capture */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorStreamCaptureUnjoined); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 950, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorStreamCaptureUnjoined, __pyx_t_3) < 0) __PYX_ERR(0, 950, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":955 * #: sequence boundary. Only implicit in-stream ordering dependencies are * #: allowed to cross the boundary. * cudaErrorStreamCaptureIsolation = ccudart.cudaError.cudaErrorStreamCaptureIsolation # <<<<<<<<<<<<<< * * #: The operation would have resulted in a disallowed implicit */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorStreamCaptureIsolation); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 955, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorStreamCaptureIsolation, __pyx_t_3) < 0) __PYX_ERR(0, 955, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":959 * #: The operation would have resulted in a disallowed implicit * #: dependency on a current capture sequence from cudaStreamLegacy. * cudaErrorStreamCaptureImplicit = ccudart.cudaError.cudaErrorStreamCaptureImplicit # <<<<<<<<<<<<<< * * #: The operation is not permitted on an event which was last recorded */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorStreamCaptureImplicit); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 959, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorStreamCaptureImplicit, __pyx_t_3) < 0) __PYX_ERR(0, 959, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":963 * #: The operation is not permitted on an event which was last recorded * #: in a capturing stream. * cudaErrorCapturedEvent = ccudart.cudaError.cudaErrorCapturedEvent # <<<<<<<<<<<<<< * * #: A stream capture sequence not initiated with the */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorCapturedEvent); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 963, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorCapturedEvent, __pyx_t_3) < 0) __PYX_ERR(0, 963, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":969 * #: :py:obj:`~.cudaStreamBeginCapture` was passed to * #: :py:obj:`~.cudaStreamEndCapture` in a different thread. * cudaErrorStreamCaptureWrongThread = ccudart.cudaError.cudaErrorStreamCaptureWrongThread # <<<<<<<<<<<<<< * * #: This indicates that the wait operation has timed out. */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorStreamCaptureWrongThread); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 969, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorStreamCaptureWrongThrea, __pyx_t_3) < 0) __PYX_ERR(0, 969, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":972 * * #: This indicates that the wait operation has timed out. * cudaErrorTimeout = ccudart.cudaError.cudaErrorTimeout # <<<<<<<<<<<<<< * * #: This error indicates that the graph update was not performed because */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorTimeout); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 972, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorTimeout, __pyx_t_3) < 0) __PYX_ERR(0, 972, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":977 * #: it included changes which violated constraints specific to * #: instantiated graph update. * cudaErrorGraphExecUpdateFailure = ccudart.cudaError.cudaErrorGraphExecUpdateFailure # <<<<<<<<<<<<<< * * #: This indicates that an async error has occurred in a device outside */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorGraphExecUpdateFailure); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 977, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorGraphExecUpdateFailure, __pyx_t_3) < 0) __PYX_ERR(0, 977, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":986 * #: return the same error. To continue using CUDA, the process must be * #: terminated and relaunched. * cudaErrorExternalDevice = ccudart.cudaError.cudaErrorExternalDevice # <<<<<<<<<<<<<< * * #: This indicates that a kernel launch error has occurred due to */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorExternalDevice); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 986, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorExternalDevice, __pyx_t_3) < 0) __PYX_ERR(0, 986, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":990 * #: This indicates that a kernel launch error has occurred due to * #: cluster misconfiguration. * cudaErrorInvalidClusterSize = ccudart.cudaError.cudaErrorInvalidClusterSize # <<<<<<<<<<<<<< * * #: Indiciates a function handle is not loaded when calling an API that */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorInvalidClusterSize); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 990, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorInvalidClusterSize, __pyx_t_3) < 0) __PYX_ERR(0, 990, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":994 * #: Indiciates a function handle is not loaded when calling an API that * #: requires a loaded function. * cudaErrorFunctionNotLoaded = ccudart.cudaError.cudaErrorFunctionNotLoaded # <<<<<<<<<<<<<< * * #: This error indicates one or more resources passed in are not valid */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorFunctionNotLoaded); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 994, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorFunctionNotLoaded, __pyx_t_3) < 0) __PYX_ERR(0, 994, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":998 * #: This error indicates one or more resources passed in are not valid * #: resource types for the operation. * cudaErrorInvalidResourceType = ccudart.cudaError.cudaErrorInvalidResourceType # <<<<<<<<<<<<<< * * #: This error indicates one or more resources are insufficient or non- */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorInvalidResourceType); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 998, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorInvalidResourceType, __pyx_t_3) < 0) __PYX_ERR(0, 998, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1002 * #: This error indicates one or more resources are insufficient or non- * #: applicable for the operation. * cudaErrorInvalidResourceConfiguration = ccudart.cudaError.cudaErrorInvalidResourceConfiguration # <<<<<<<<<<<<<< * * #: This indicates that an unknown internal error has occurred. */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorInvalidResourceConfiguration); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1002, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorInvalidResourceConfigur, __pyx_t_3) < 0) __PYX_ERR(0, 1002, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1005 * * #: This indicates that an unknown internal error has occurred. * cudaErrorUnknown = ccudart.cudaError.cudaErrorUnknown # <<<<<<<<<<<<<< * cudaErrorApiFailureBase = ccudart.cudaError.cudaErrorApiFailureBase * */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorUnknown); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1005, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorUnknown, __pyx_t_3) < 0) __PYX_ERR(0, 1005, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1006 * #: This indicates that an unknown internal error has occurred. * cudaErrorUnknown = ccudart.cudaError.cudaErrorUnknown * cudaErrorApiFailureBase = ccudart.cudaError.cudaErrorApiFailureBase # <<<<<<<<<<<<<< * * class cudaGraphDependencyType(IntEnum): */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaError(cudaErrorApiFailureBase); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1006, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaErrorApiFailureBase, __pyx_t_3) < 0) __PYX_ERR(0, 1006, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":343 * CUDA_EGL_MAX_PLANES = ccudart.CUDA_EGL_MAX_PLANES * * class cudaError_t(IntEnum): # <<<<<<<<<<<<<< * """ * impl_private CUDA error types */ __pyx_t_3 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_n_s_cudaError_t, __pyx_t_2, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 343, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaError_t, __pyx_t_3) < 0) __PYX_ERR(0, 343, __pyx_L1_error) __Pyx_DECREF(__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; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":1008 * cudaErrorApiFailureBase = ccudart.cudaError.cudaErrorApiFailureBase * * class cudaGraphDependencyType(IntEnum): # <<<<<<<<<<<<<< * """ * Type annotations that can be applied to graph edges as part of */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1008, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1008, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 1008, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1008, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1008, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_n_s_cudaGraphDependencyType, __pyx_n_s_cudaGraphDependencyType, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_Type_annotations_that_can_be_ap); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1008, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_2 != __pyx_t_4) { if (unlikely((PyDict_SetItemString(__pyx_t_3, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 1008, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1015 * * #: This is an ordinary dependency. * cudaGraphDependencyTypeDefault = ccudart.cudaGraphDependencyType_enum.cudaGraphDependencyTypeDefault # <<<<<<<<<<<<<< * * #: This dependency type allows the downstream node to use */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaGraphDependencyType_enum(cudaGraphDependencyTypeDefault); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1015, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaGraphDependencyTypeDefault, __pyx_t_4) < 0) __PYX_ERR(0, 1015, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1022 * #: :py:obj:`~.cudaGraphKernelNodePortProgrammatic` or * #: :py:obj:`~.cudaGraphKernelNodePortLaunchCompletion` outgoing port. * cudaGraphDependencyTypeProgrammatic = ccudart.cudaGraphDependencyType_enum.cudaGraphDependencyTypeProgrammatic # <<<<<<<<<<<<<< * * class cudaGraphInstantiateResult(IntEnum): */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaGraphDependencyType_enum(cudaGraphDependencyTypeProgrammatic); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1022, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaGraphDependencyTypeProgramma, __pyx_t_4) < 0) __PYX_ERR(0, 1022, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1008 * cudaErrorApiFailureBase = ccudart.cudaError.cudaErrorApiFailureBase * * class cudaGraphDependencyType(IntEnum): # <<<<<<<<<<<<<< * """ * Type annotations that can be applied to graph edges as part of */ __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_n_s_cudaGraphDependencyType, __pyx_t_2, __pyx_t_3, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1008, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphDependencyType, __pyx_t_4) < 0) __PYX_ERR(0, 1008, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":1024 * cudaGraphDependencyTypeProgrammatic = ccudart.cudaGraphDependencyType_enum.cudaGraphDependencyTypeProgrammatic * * class cudaGraphInstantiateResult(IntEnum): # <<<<<<<<<<<<<< * """ * Graph instantiation results */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1024, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1024, __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)) __PYX_ERR(0, 1024, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1024, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1024, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_3, __pyx_t_2, __pyx_n_s_cudaGraphInstantiateResult, __pyx_n_s_cudaGraphInstantiateResult, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_Graph_instantiation_results); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1024, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_2 != __pyx_t_5) { if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_5) < 0))) __PYX_ERR(0, 1024, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1030 * * #: Instantiation succeeded * cudaGraphInstantiateSuccess = ccudart.cudaGraphInstantiateResult.cudaGraphInstantiateSuccess # <<<<<<<<<<<<<< * * #: Instantiation failed for an unexpected reason which is described in */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaGraphInstantiateResult(cudaGraphInstantiateSuccess); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1030, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaGraphInstantiateSuccess, __pyx_t_5) < 0) __PYX_ERR(0, 1030, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1034 * #: Instantiation failed for an unexpected reason which is described in * #: the return value of the function * cudaGraphInstantiateError = ccudart.cudaGraphInstantiateResult.cudaGraphInstantiateError # <<<<<<<<<<<<<< * * #: Instantiation failed due to invalid structure, such as cycles */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaGraphInstantiateResult(cudaGraphInstantiateError); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1034, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaGraphInstantiateError, __pyx_t_5) < 0) __PYX_ERR(0, 1034, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1037 * * #: Instantiation failed due to invalid structure, such as cycles * cudaGraphInstantiateInvalidStructure = ccudart.cudaGraphInstantiateResult.cudaGraphInstantiateInvalidStructure # <<<<<<<<<<<<<< * * #: Instantiation for device launch failed because the graph contained */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaGraphInstantiateResult(cudaGraphInstantiateInvalidStructure); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1037, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaGraphInstantiateInvalidStruc, __pyx_t_5) < 0) __PYX_ERR(0, 1037, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1041 * #: Instantiation for device launch failed because the graph contained * #: an unsupported operation * cudaGraphInstantiateNodeOperationNotSupported = ccudart.cudaGraphInstantiateResult.cudaGraphInstantiateNodeOperationNotSupported # <<<<<<<<<<<<<< * * #: Instantiation for device launch failed due to the nodes belonging to */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaGraphInstantiateResult(cudaGraphInstantiateNodeOperationNotSupported); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1041, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaGraphInstantiateNodeOperatio, __pyx_t_5) < 0) __PYX_ERR(0, 1041, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1045 * #: Instantiation for device launch failed due to the nodes belonging to * #: different contexts * cudaGraphInstantiateMultipleDevicesNotSupported = ccudart.cudaGraphInstantiateResult.cudaGraphInstantiateMultipleDevicesNotSupported # <<<<<<<<<<<<<< * * class cudaLaunchMemSyncDomain(IntEnum): */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaGraphInstantiateResult(cudaGraphInstantiateMultipleDevicesNotSupported); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1045, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaGraphInstantiateMultipleDevi, __pyx_t_5) < 0) __PYX_ERR(0, 1045, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1024 * cudaGraphDependencyTypeProgrammatic = ccudart.cudaGraphDependencyType_enum.cudaGraphDependencyTypeProgrammatic * * class cudaGraphInstantiateResult(IntEnum): # <<<<<<<<<<<<<< * """ * Graph instantiation results */ __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_3, __pyx_n_s_cudaGraphInstantiateResult, __pyx_t_2, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1024, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphInstantiateResult, __pyx_t_5) < 0) __PYX_ERR(0, 1024, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":1047 * cudaGraphInstantiateMultipleDevicesNotSupported = ccudart.cudaGraphInstantiateResult.cudaGraphInstantiateMultipleDevicesNotSupported * * class cudaLaunchMemSyncDomain(IntEnum): # <<<<<<<<<<<<<< * """ * Memory Synchronization Domain A kernel can be launched in a */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1047, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1047, __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)) __PYX_ERR(0, 1047, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1047, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1047, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_2, __pyx_n_s_cudaLaunchMemSyncDomain, __pyx_n_s_cudaLaunchMemSyncDomain, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_Memory_Synchronization_Domain_A); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1047, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_2 != __pyx_t_3) { if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_3) < 0))) __PYX_ERR(0, 1047, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1070 * * #: Launch kernels in the default domain * cudaLaunchMemSyncDomainDefault = ccudart.cudaLaunchMemSyncDomain.cudaLaunchMemSyncDomainDefault # <<<<<<<<<<<<<< * * #: Launch kernels in the remote domain */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaLaunchMemSyncDomain(cudaLaunchMemSyncDomainDefault); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1070, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaLaunchMemSyncDomainDefault, __pyx_t_3) < 0) __PYX_ERR(0, 1070, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1073 * * #: Launch kernels in the remote domain * cudaLaunchMemSyncDomainRemote = ccudart.cudaLaunchMemSyncDomain.cudaLaunchMemSyncDomainRemote # <<<<<<<<<<<<<< * * class cudaLaunchAttributeID(IntEnum): */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaLaunchMemSyncDomain(cudaLaunchMemSyncDomainRemote); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1073, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaLaunchMemSyncDomainRemote, __pyx_t_3) < 0) __PYX_ERR(0, 1073, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1047 * cudaGraphInstantiateMultipleDevicesNotSupported = ccudart.cudaGraphInstantiateResult.cudaGraphInstantiateMultipleDevicesNotSupported * * class cudaLaunchMemSyncDomain(IntEnum): # <<<<<<<<<<<<<< * """ * Memory Synchronization Domain A kernel can be launched in a */ __pyx_t_3 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_n_s_cudaLaunchMemSyncDomain, __pyx_t_2, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1047, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaLaunchMemSyncDomain, __pyx_t_3) < 0) __PYX_ERR(0, 1047, __pyx_L1_error) __Pyx_DECREF(__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; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":1075 * cudaLaunchMemSyncDomainRemote = ccudart.cudaLaunchMemSyncDomain.cudaLaunchMemSyncDomainRemote * * class cudaLaunchAttributeID(IntEnum): # <<<<<<<<<<<<<< * """ * Launch attributes enum; used as id field of */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1075, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1075, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 1075, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1075, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1075, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_n_s_cudaLaunchAttributeID, __pyx_n_s_cudaLaunchAttributeID, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_Launch_attributes_enum_used_as); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1075, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_2 != __pyx_t_4) { if (unlikely((PyDict_SetItemString(__pyx_t_3, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 1075, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1082 * * #: Ignored entry, for convenient composition * cudaLaunchAttributeIgnore = ccudart.cudaLaunchAttributeID.cudaLaunchAttributeIgnore # <<<<<<<<<<<<<< * * #: Valid for streams, graph nodes, launches. See */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeIgnore); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1082, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaLaunchAttributeIgnore, __pyx_t_4) < 0) __PYX_ERR(0, 1082, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1086 * #: Valid for streams, graph nodes, launches. See * #: :py:obj:`~.cudaLaunchAttributeValue.accessPolicyWindow`. * cudaLaunchAttributeAccessPolicyWindow = ccudart.cudaLaunchAttributeID.cudaLaunchAttributeAccessPolicyWindow # <<<<<<<<<<<<<< * * #: Valid for graph nodes, launches. See */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeAccessPolicyWindow); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1086, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaLaunchAttributeAccessPolicyW, __pyx_t_4) < 0) __PYX_ERR(0, 1086, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1090 * #: Valid for graph nodes, launches. See * #: :py:obj:`~.cudaLaunchAttributeValue.cooperative`. * cudaLaunchAttributeCooperative = ccudart.cudaLaunchAttributeID.cudaLaunchAttributeCooperative # <<<<<<<<<<<<<< * * #: Valid for streams. See */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeCooperative); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1090, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaLaunchAttributeCooperative, __pyx_t_4) < 0) __PYX_ERR(0, 1090, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1094 * #: Valid for streams. See * #: :py:obj:`~.cudaLaunchAttributeValue.syncPolicy`. * cudaLaunchAttributeSynchronizationPolicy = ccudart.cudaLaunchAttributeID.cudaLaunchAttributeSynchronizationPolicy # <<<<<<<<<<<<<< * * #: Valid for graph nodes, launches. See */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeSynchronizationPolicy); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1094, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaLaunchAttributeSynchronizati, __pyx_t_4) < 0) __PYX_ERR(0, 1094, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1098 * #: Valid for graph nodes, launches. See * #: :py:obj:`~.cudaLaunchAttributeValue.clusterDim`. * cudaLaunchAttributeClusterDimension = ccudart.cudaLaunchAttributeID.cudaLaunchAttributeClusterDimension # <<<<<<<<<<<<<< * * #: Valid for graph nodes, launches. See */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeClusterDimension); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1098, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaLaunchAttributeClusterDimens, __pyx_t_4) < 0) __PYX_ERR(0, 1098, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1102 * #: Valid for graph nodes, launches. See * #: :py:obj:`~.cudaLaunchAttributeValue.clusterSchedulingPolicyPreference`. * cudaLaunchAttributeClusterSchedulingPolicyPreference = ccudart.cudaLaunchAttributeID.cudaLaunchAttributeClusterSchedulingPolicyPreference # <<<<<<<<<<<<<< * * #: Valid for launches. Setting */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeClusterSchedulingPolicyPreference); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1102, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaLaunchAttributeClusterSchedu, __pyx_t_4) < 0) __PYX_ERR(0, 1102, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1113 * #: the programmatic sync (cudaGridDependencySynchronize() or equivalent * #: PTX instructions). * cudaLaunchAttributeProgrammaticStreamSerialization = ccudart.cudaLaunchAttributeID.cudaLaunchAttributeProgrammaticStreamSerialization # <<<<<<<<<<<<<< * * #: Valid for launches. Set */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeProgrammaticStreamSerialization); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1113, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaLaunchAttributeProgrammaticS, __pyx_t_4) < 0) __PYX_ERR(0, 1113, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1135 * #: The event must disable timing (i.e. must be created with the * #: :py:obj:`~.cudaEventDisableTiming` flag set). * cudaLaunchAttributeProgrammaticEvent = ccudart.cudaLaunchAttributeID.cudaLaunchAttributeProgrammaticEvent # <<<<<<<<<<<<<< * * #: Valid for streams, graph nodes, launches. See */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeProgrammaticEvent); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1135, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaLaunchAttributeProgrammaticE, __pyx_t_4) < 0) __PYX_ERR(0, 1135, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1139 * #: Valid for streams, graph nodes, launches. See * #: :py:obj:`~.cudaLaunchAttributeValue.priority`. * cudaLaunchAttributePriority = ccudart.cudaLaunchAttributeID.cudaLaunchAttributePriority # <<<<<<<<<<<<<< * * #: Valid for streams, graph nodes, launches. See */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributePriority); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaLaunchAttributePriority, __pyx_t_4) < 0) __PYX_ERR(0, 1139, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1143 * #: Valid for streams, graph nodes, launches. See * #: :py:obj:`~.cudaLaunchAttributeValue.memSyncDomainMap`. * cudaLaunchAttributeMemSyncDomainMap = ccudart.cudaLaunchAttributeID.cudaLaunchAttributeMemSyncDomainMap # <<<<<<<<<<<<<< * * #: Valid for streams, graph nodes, launches. See */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeMemSyncDomainMap); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1143, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaLaunchAttributeMemSyncDomain, __pyx_t_4) < 0) __PYX_ERR(0, 1143, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1147 * #: Valid for streams, graph nodes, launches. See * #: :py:obj:`~.cudaLaunchAttributeValue.memSyncDomain`. * cudaLaunchAttributeMemSyncDomain = ccudart.cudaLaunchAttributeID.cudaLaunchAttributeMemSyncDomain # <<<<<<<<<<<<<< * * #: Valid for launches. Set */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeMemSyncDomain); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1147, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaLaunchAttributeMemSyncDomain_2, __pyx_t_4) < 0) __PYX_ERR(0, 1147, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1167 * #: The event must disable timing (i.e. must be created with the * #: :py:obj:`~.cudaEventDisableTiming` flag set). * cudaLaunchAttributeLaunchCompletionEvent = ccudart.cudaLaunchAttributeID.cudaLaunchAttributeLaunchCompletionEvent # <<<<<<<<<<<<<< * * #: Valid for graph nodes, launches. This attribute is graphs-only, and */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeLaunchCompletionEvent); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1167, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaLaunchAttributeLaunchComplet, __pyx_t_4) < 0) __PYX_ERR(0, 1167, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1200 * #: updatable nodes, the graph must be uploaded before it is launched * #: again. * cudaLaunchAttributeDeviceUpdatableKernelNode = ccudart.cudaLaunchAttributeID.cudaLaunchAttributeDeviceUpdatableKernelNode # <<<<<<<<<<<<<< * * #: Valid for launches. On devices where the L1 cache and shared memory */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeDeviceUpdatableKernelNode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaLaunchAttributeDeviceUpdatab, __pyx_t_4) < 0) __PYX_ERR(0, 1200, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1211 * #: only a hint, and the driver can choose a different configuration if * #: required for the launch. * cudaLaunchAttributePreferredSharedMemoryCarveout = ccudart.cudaLaunchAttributeID.cudaLaunchAttributePreferredSharedMemoryCarveout # <<<<<<<<<<<<<< * * class cudaAsyncNotificationType(IntEnum): */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributePreferredSharedMemoryCarveout); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1211, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaLaunchAttributePreferredShar, __pyx_t_4) < 0) __PYX_ERR(0, 1211, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1075 * cudaLaunchMemSyncDomainRemote = ccudart.cudaLaunchMemSyncDomain.cudaLaunchMemSyncDomainRemote * * class cudaLaunchAttributeID(IntEnum): # <<<<<<<<<<<<<< * """ * Launch attributes enum; used as id field of */ __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_n_s_cudaLaunchAttributeID, __pyx_t_2, __pyx_t_3, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1075, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaLaunchAttributeID, __pyx_t_4) < 0) __PYX_ERR(0, 1075, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":1213 * cudaLaunchAttributePreferredSharedMemoryCarveout = ccudart.cudaLaunchAttributeID.cudaLaunchAttributePreferredSharedMemoryCarveout * * class cudaAsyncNotificationType(IntEnum): # <<<<<<<<<<<<<< * """ * Types of async notification that can occur */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1213, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1213, __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)) __PYX_ERR(0, 1213, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1213, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1213, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_3, __pyx_t_2, __pyx_n_s_cudaAsyncNotificationType, __pyx_n_s_cudaAsyncNotificationType, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_Types_of_async_notification_tha); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1213, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_2 != __pyx_t_5) { if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_5) < 0))) __PYX_ERR(0, 1213, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1217 * Types of async notification that can occur * """ * cudaAsyncNotificationTypeOverBudget = ccudart.cudaAsyncNotificationType_enum.cudaAsyncNotificationTypeOverBudget # <<<<<<<<<<<<<< * * class cudaDataType(IntEnum): */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaAsyncNotificationType_enum(cudaAsyncNotificationTypeOverBudget); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1217, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaAsyncNotificationTypeOverBud, __pyx_t_5) < 0) __PYX_ERR(0, 1217, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1213 * cudaLaunchAttributePreferredSharedMemoryCarveout = ccudart.cudaLaunchAttributeID.cudaLaunchAttributePreferredSharedMemoryCarveout * * class cudaAsyncNotificationType(IntEnum): # <<<<<<<<<<<<<< * """ * Types of async notification that can occur */ __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_3, __pyx_n_s_cudaAsyncNotificationType, __pyx_t_2, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1213, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaAsyncNotificationType, __pyx_t_5) < 0) __PYX_ERR(0, 1213, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":1219 * cudaAsyncNotificationTypeOverBudget = ccudart.cudaAsyncNotificationType_enum.cudaAsyncNotificationTypeOverBudget * * class cudaDataType(IntEnum): # <<<<<<<<<<<<<< * """""" * CUDA_R_32F = ccudart.cudaDataType_t.CUDA_R_32F */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1219, __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)) __PYX_ERR(0, 1219, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_2, __pyx_n_s_cudaDataType, __pyx_n_s_cudaDataType, (PyObject *) NULL, __pyx_n_s_cuda_cudart, (PyObject *) NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_2 != __pyx_t_3) { if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_3) < 0))) __PYX_ERR(0, 1219, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1221 * class cudaDataType(IntEnum): * """""" * CUDA_R_32F = ccudart.cudaDataType_t.CUDA_R_32F # <<<<<<<<<<<<<< * CUDA_R_64F = ccudart.cudaDataType_t.CUDA_R_64F * CUDA_R_16F = ccudart.cudaDataType_t.CUDA_R_16F */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDataType_t(CUDA_R_32F); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1221, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_CUDA_R_32F, __pyx_t_3) < 0) __PYX_ERR(0, 1221, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1222 * """""" * CUDA_R_32F = ccudart.cudaDataType_t.CUDA_R_32F * CUDA_R_64F = ccudart.cudaDataType_t.CUDA_R_64F # <<<<<<<<<<<<<< * CUDA_R_16F = ccudart.cudaDataType_t.CUDA_R_16F * CUDA_R_8I = ccudart.cudaDataType_t.CUDA_R_8I */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDataType_t(CUDA_R_64F); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1222, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_CUDA_R_64F, __pyx_t_3) < 0) __PYX_ERR(0, 1222, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1223 * CUDA_R_32F = ccudart.cudaDataType_t.CUDA_R_32F * CUDA_R_64F = ccudart.cudaDataType_t.CUDA_R_64F * CUDA_R_16F = ccudart.cudaDataType_t.CUDA_R_16F # <<<<<<<<<<<<<< * CUDA_R_8I = ccudart.cudaDataType_t.CUDA_R_8I * CUDA_C_32F = ccudart.cudaDataType_t.CUDA_C_32F */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDataType_t(CUDA_R_16F); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1223, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_CUDA_R_16F, __pyx_t_3) < 0) __PYX_ERR(0, 1223, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1224 * CUDA_R_64F = ccudart.cudaDataType_t.CUDA_R_64F * CUDA_R_16F = ccudart.cudaDataType_t.CUDA_R_16F * CUDA_R_8I = ccudart.cudaDataType_t.CUDA_R_8I # <<<<<<<<<<<<<< * CUDA_C_32F = ccudart.cudaDataType_t.CUDA_C_32F * CUDA_C_64F = ccudart.cudaDataType_t.CUDA_C_64F */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDataType_t(CUDA_R_8I); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1224, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_CUDA_R_8I, __pyx_t_3) < 0) __PYX_ERR(0, 1224, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1225 * CUDA_R_16F = ccudart.cudaDataType_t.CUDA_R_16F * CUDA_R_8I = ccudart.cudaDataType_t.CUDA_R_8I * CUDA_C_32F = ccudart.cudaDataType_t.CUDA_C_32F # <<<<<<<<<<<<<< * CUDA_C_64F = ccudart.cudaDataType_t.CUDA_C_64F * CUDA_C_16F = ccudart.cudaDataType_t.CUDA_C_16F */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDataType_t(CUDA_C_32F); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_CUDA_C_32F, __pyx_t_3) < 0) __PYX_ERR(0, 1225, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1226 * CUDA_R_8I = ccudart.cudaDataType_t.CUDA_R_8I * CUDA_C_32F = ccudart.cudaDataType_t.CUDA_C_32F * CUDA_C_64F = ccudart.cudaDataType_t.CUDA_C_64F # <<<<<<<<<<<<<< * CUDA_C_16F = ccudart.cudaDataType_t.CUDA_C_16F * CUDA_C_8I = ccudart.cudaDataType_t.CUDA_C_8I */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDataType_t(CUDA_C_64F); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1226, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_CUDA_C_64F, __pyx_t_3) < 0) __PYX_ERR(0, 1226, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1227 * CUDA_C_32F = ccudart.cudaDataType_t.CUDA_C_32F * CUDA_C_64F = ccudart.cudaDataType_t.CUDA_C_64F * CUDA_C_16F = ccudart.cudaDataType_t.CUDA_C_16F # <<<<<<<<<<<<<< * CUDA_C_8I = ccudart.cudaDataType_t.CUDA_C_8I * CUDA_R_8U = ccudart.cudaDataType_t.CUDA_R_8U */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDataType_t(CUDA_C_16F); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1227, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_CUDA_C_16F, __pyx_t_3) < 0) __PYX_ERR(0, 1227, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1228 * CUDA_C_64F = ccudart.cudaDataType_t.CUDA_C_64F * CUDA_C_16F = ccudart.cudaDataType_t.CUDA_C_16F * CUDA_C_8I = ccudart.cudaDataType_t.CUDA_C_8I # <<<<<<<<<<<<<< * CUDA_R_8U = ccudart.cudaDataType_t.CUDA_R_8U * CUDA_C_8U = ccudart.cudaDataType_t.CUDA_C_8U */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDataType_t(CUDA_C_8I); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1228, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_CUDA_C_8I, __pyx_t_3) < 0) __PYX_ERR(0, 1228, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1229 * CUDA_C_16F = ccudart.cudaDataType_t.CUDA_C_16F * CUDA_C_8I = ccudart.cudaDataType_t.CUDA_C_8I * CUDA_R_8U = ccudart.cudaDataType_t.CUDA_R_8U # <<<<<<<<<<<<<< * CUDA_C_8U = ccudart.cudaDataType_t.CUDA_C_8U * CUDA_R_32I = ccudart.cudaDataType_t.CUDA_R_32I */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDataType_t(CUDA_R_8U); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_CUDA_R_8U, __pyx_t_3) < 0) __PYX_ERR(0, 1229, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1230 * CUDA_C_8I = ccudart.cudaDataType_t.CUDA_C_8I * CUDA_R_8U = ccudart.cudaDataType_t.CUDA_R_8U * CUDA_C_8U = ccudart.cudaDataType_t.CUDA_C_8U # <<<<<<<<<<<<<< * CUDA_R_32I = ccudart.cudaDataType_t.CUDA_R_32I * CUDA_C_32I = ccudart.cudaDataType_t.CUDA_C_32I */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDataType_t(CUDA_C_8U); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1230, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_CUDA_C_8U, __pyx_t_3) < 0) __PYX_ERR(0, 1230, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1231 * CUDA_R_8U = ccudart.cudaDataType_t.CUDA_R_8U * CUDA_C_8U = ccudart.cudaDataType_t.CUDA_C_8U * CUDA_R_32I = ccudart.cudaDataType_t.CUDA_R_32I # <<<<<<<<<<<<<< * CUDA_C_32I = ccudart.cudaDataType_t.CUDA_C_32I * CUDA_R_32U = ccudart.cudaDataType_t.CUDA_R_32U */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDataType_t(CUDA_R_32I); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1231, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_CUDA_R_32I, __pyx_t_3) < 0) __PYX_ERR(0, 1231, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1232 * CUDA_C_8U = ccudart.cudaDataType_t.CUDA_C_8U * CUDA_R_32I = ccudart.cudaDataType_t.CUDA_R_32I * CUDA_C_32I = ccudart.cudaDataType_t.CUDA_C_32I # <<<<<<<<<<<<<< * CUDA_R_32U = ccudart.cudaDataType_t.CUDA_R_32U * CUDA_C_32U = ccudart.cudaDataType_t.CUDA_C_32U */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDataType_t(CUDA_C_32I); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1232, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_CUDA_C_32I, __pyx_t_3) < 0) __PYX_ERR(0, 1232, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1233 * CUDA_R_32I = ccudart.cudaDataType_t.CUDA_R_32I * CUDA_C_32I = ccudart.cudaDataType_t.CUDA_C_32I * CUDA_R_32U = ccudart.cudaDataType_t.CUDA_R_32U # <<<<<<<<<<<<<< * CUDA_C_32U = ccudart.cudaDataType_t.CUDA_C_32U * CUDA_R_16BF = ccudart.cudaDataType_t.CUDA_R_16BF */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDataType_t(CUDA_R_32U); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1233, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_CUDA_R_32U, __pyx_t_3) < 0) __PYX_ERR(0, 1233, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1234 * CUDA_C_32I = ccudart.cudaDataType_t.CUDA_C_32I * CUDA_R_32U = ccudart.cudaDataType_t.CUDA_R_32U * CUDA_C_32U = ccudart.cudaDataType_t.CUDA_C_32U # <<<<<<<<<<<<<< * CUDA_R_16BF = ccudart.cudaDataType_t.CUDA_R_16BF * CUDA_C_16BF = ccudart.cudaDataType_t.CUDA_C_16BF */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDataType_t(CUDA_C_32U); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1234, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_CUDA_C_32U, __pyx_t_3) < 0) __PYX_ERR(0, 1234, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1235 * CUDA_R_32U = ccudart.cudaDataType_t.CUDA_R_32U * CUDA_C_32U = ccudart.cudaDataType_t.CUDA_C_32U * CUDA_R_16BF = ccudart.cudaDataType_t.CUDA_R_16BF # <<<<<<<<<<<<<< * CUDA_C_16BF = ccudart.cudaDataType_t.CUDA_C_16BF * CUDA_R_4I = ccudart.cudaDataType_t.CUDA_R_4I */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDataType_t(CUDA_R_16BF); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_CUDA_R_16BF, __pyx_t_3) < 0) __PYX_ERR(0, 1235, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1236 * CUDA_C_32U = ccudart.cudaDataType_t.CUDA_C_32U * CUDA_R_16BF = ccudart.cudaDataType_t.CUDA_R_16BF * CUDA_C_16BF = ccudart.cudaDataType_t.CUDA_C_16BF # <<<<<<<<<<<<<< * CUDA_R_4I = ccudart.cudaDataType_t.CUDA_R_4I * CUDA_C_4I = ccudart.cudaDataType_t.CUDA_C_4I */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDataType_t(CUDA_C_16BF); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1236, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_CUDA_C_16BF, __pyx_t_3) < 0) __PYX_ERR(0, 1236, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1237 * CUDA_R_16BF = ccudart.cudaDataType_t.CUDA_R_16BF * CUDA_C_16BF = ccudart.cudaDataType_t.CUDA_C_16BF * CUDA_R_4I = ccudart.cudaDataType_t.CUDA_R_4I # <<<<<<<<<<<<<< * CUDA_C_4I = ccudart.cudaDataType_t.CUDA_C_4I * CUDA_R_4U = ccudart.cudaDataType_t.CUDA_R_4U */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDataType_t(CUDA_R_4I); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1237, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_CUDA_R_4I, __pyx_t_3) < 0) __PYX_ERR(0, 1237, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1238 * CUDA_C_16BF = ccudart.cudaDataType_t.CUDA_C_16BF * CUDA_R_4I = ccudart.cudaDataType_t.CUDA_R_4I * CUDA_C_4I = ccudart.cudaDataType_t.CUDA_C_4I # <<<<<<<<<<<<<< * CUDA_R_4U = ccudart.cudaDataType_t.CUDA_R_4U * CUDA_C_4U = ccudart.cudaDataType_t.CUDA_C_4U */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDataType_t(CUDA_C_4I); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1238, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_CUDA_C_4I, __pyx_t_3) < 0) __PYX_ERR(0, 1238, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1239 * CUDA_R_4I = ccudart.cudaDataType_t.CUDA_R_4I * CUDA_C_4I = ccudart.cudaDataType_t.CUDA_C_4I * CUDA_R_4U = ccudart.cudaDataType_t.CUDA_R_4U # <<<<<<<<<<<<<< * CUDA_C_4U = ccudart.cudaDataType_t.CUDA_C_4U * CUDA_R_16I = ccudart.cudaDataType_t.CUDA_R_16I */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDataType_t(CUDA_R_4U); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1239, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_CUDA_R_4U, __pyx_t_3) < 0) __PYX_ERR(0, 1239, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1240 * CUDA_C_4I = ccudart.cudaDataType_t.CUDA_C_4I * CUDA_R_4U = ccudart.cudaDataType_t.CUDA_R_4U * CUDA_C_4U = ccudart.cudaDataType_t.CUDA_C_4U # <<<<<<<<<<<<<< * CUDA_R_16I = ccudart.cudaDataType_t.CUDA_R_16I * CUDA_C_16I = ccudart.cudaDataType_t.CUDA_C_16I */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDataType_t(CUDA_C_4U); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1240, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_CUDA_C_4U, __pyx_t_3) < 0) __PYX_ERR(0, 1240, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1241 * CUDA_R_4U = ccudart.cudaDataType_t.CUDA_R_4U * CUDA_C_4U = ccudart.cudaDataType_t.CUDA_C_4U * CUDA_R_16I = ccudart.cudaDataType_t.CUDA_R_16I # <<<<<<<<<<<<<< * CUDA_C_16I = ccudart.cudaDataType_t.CUDA_C_16I * CUDA_R_16U = ccudart.cudaDataType_t.CUDA_R_16U */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDataType_t(CUDA_R_16I); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1241, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_CUDA_R_16I, __pyx_t_3) < 0) __PYX_ERR(0, 1241, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1242 * CUDA_C_4U = ccudart.cudaDataType_t.CUDA_C_4U * CUDA_R_16I = ccudart.cudaDataType_t.CUDA_R_16I * CUDA_C_16I = ccudart.cudaDataType_t.CUDA_C_16I # <<<<<<<<<<<<<< * CUDA_R_16U = ccudart.cudaDataType_t.CUDA_R_16U * CUDA_C_16U = ccudart.cudaDataType_t.CUDA_C_16U */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDataType_t(CUDA_C_16I); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1242, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_CUDA_C_16I, __pyx_t_3) < 0) __PYX_ERR(0, 1242, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1243 * CUDA_R_16I = ccudart.cudaDataType_t.CUDA_R_16I * CUDA_C_16I = ccudart.cudaDataType_t.CUDA_C_16I * CUDA_R_16U = ccudart.cudaDataType_t.CUDA_R_16U # <<<<<<<<<<<<<< * CUDA_C_16U = ccudart.cudaDataType_t.CUDA_C_16U * CUDA_R_64I = ccudart.cudaDataType_t.CUDA_R_64I */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDataType_t(CUDA_R_16U); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1243, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_CUDA_R_16U, __pyx_t_3) < 0) __PYX_ERR(0, 1243, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1244 * CUDA_C_16I = ccudart.cudaDataType_t.CUDA_C_16I * CUDA_R_16U = ccudart.cudaDataType_t.CUDA_R_16U * CUDA_C_16U = ccudart.cudaDataType_t.CUDA_C_16U # <<<<<<<<<<<<<< * CUDA_R_64I = ccudart.cudaDataType_t.CUDA_R_64I * CUDA_C_64I = ccudart.cudaDataType_t.CUDA_C_64I */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDataType_t(CUDA_C_16U); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1244, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_CUDA_C_16U, __pyx_t_3) < 0) __PYX_ERR(0, 1244, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1245 * CUDA_R_16U = ccudart.cudaDataType_t.CUDA_R_16U * CUDA_C_16U = ccudart.cudaDataType_t.CUDA_C_16U * CUDA_R_64I = ccudart.cudaDataType_t.CUDA_R_64I # <<<<<<<<<<<<<< * CUDA_C_64I = ccudart.cudaDataType_t.CUDA_C_64I * CUDA_R_64U = ccudart.cudaDataType_t.CUDA_R_64U */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDataType_t(CUDA_R_64I); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1245, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_CUDA_R_64I, __pyx_t_3) < 0) __PYX_ERR(0, 1245, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1246 * CUDA_C_16U = ccudart.cudaDataType_t.CUDA_C_16U * CUDA_R_64I = ccudart.cudaDataType_t.CUDA_R_64I * CUDA_C_64I = ccudart.cudaDataType_t.CUDA_C_64I # <<<<<<<<<<<<<< * CUDA_R_64U = ccudart.cudaDataType_t.CUDA_R_64U * CUDA_C_64U = ccudart.cudaDataType_t.CUDA_C_64U */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDataType_t(CUDA_C_64I); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1246, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_CUDA_C_64I, __pyx_t_3) < 0) __PYX_ERR(0, 1246, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1247 * CUDA_R_64I = ccudart.cudaDataType_t.CUDA_R_64I * CUDA_C_64I = ccudart.cudaDataType_t.CUDA_C_64I * CUDA_R_64U = ccudart.cudaDataType_t.CUDA_R_64U # <<<<<<<<<<<<<< * CUDA_C_64U = ccudart.cudaDataType_t.CUDA_C_64U * CUDA_R_8F_E4M3 = ccudart.cudaDataType_t.CUDA_R_8F_E4M3 */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDataType_t(CUDA_R_64U); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1247, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_CUDA_R_64U, __pyx_t_3) < 0) __PYX_ERR(0, 1247, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1248 * CUDA_C_64I = ccudart.cudaDataType_t.CUDA_C_64I * CUDA_R_64U = ccudart.cudaDataType_t.CUDA_R_64U * CUDA_C_64U = ccudart.cudaDataType_t.CUDA_C_64U # <<<<<<<<<<<<<< * CUDA_R_8F_E4M3 = ccudart.cudaDataType_t.CUDA_R_8F_E4M3 * CUDA_R_8F_E5M2 = ccudart.cudaDataType_t.CUDA_R_8F_E5M2 */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDataType_t(CUDA_C_64U); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1248, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_CUDA_C_64U, __pyx_t_3) < 0) __PYX_ERR(0, 1248, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1249 * CUDA_R_64U = ccudart.cudaDataType_t.CUDA_R_64U * CUDA_C_64U = ccudart.cudaDataType_t.CUDA_C_64U * CUDA_R_8F_E4M3 = ccudart.cudaDataType_t.CUDA_R_8F_E4M3 # <<<<<<<<<<<<<< * CUDA_R_8F_E5M2 = ccudart.cudaDataType_t.CUDA_R_8F_E5M2 * */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDataType_t(CUDA_R_8F_E4M3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1249, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_CUDA_R_8F_E4M3, __pyx_t_3) < 0) __PYX_ERR(0, 1249, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1250 * CUDA_C_64U = ccudart.cudaDataType_t.CUDA_C_64U * CUDA_R_8F_E4M3 = ccudart.cudaDataType_t.CUDA_R_8F_E4M3 * CUDA_R_8F_E5M2 = ccudart.cudaDataType_t.CUDA_R_8F_E5M2 # <<<<<<<<<<<<<< * * class libraryPropertyType(IntEnum): */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDataType_t(CUDA_R_8F_E5M2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_CUDA_R_8F_E5M2, __pyx_t_3) < 0) __PYX_ERR(0, 1250, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1219 * cudaAsyncNotificationTypeOverBudget = ccudart.cudaAsyncNotificationType_enum.cudaAsyncNotificationTypeOverBudget * * class cudaDataType(IntEnum): # <<<<<<<<<<<<<< * """""" * CUDA_R_32F = ccudart.cudaDataType_t.CUDA_R_32F */ __pyx_t_3 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_n_s_cudaDataType, __pyx_t_2, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDataType, __pyx_t_3) < 0) __PYX_ERR(0, 1219, __pyx_L1_error) __Pyx_DECREF(__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; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":1252 * CUDA_R_8F_E5M2 = ccudart.cudaDataType_t.CUDA_R_8F_E5M2 * * class libraryPropertyType(IntEnum): # <<<<<<<<<<<<<< * """""" * MAJOR_VERSION = ccudart.libraryPropertyType_t.MAJOR_VERSION */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 1252, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_n_s_libraryPropertyType, __pyx_n_s_libraryPropertyType, (PyObject *) NULL, __pyx_n_s_cuda_cudart, (PyObject *) NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_2 != __pyx_t_4) { if (unlikely((PyDict_SetItemString(__pyx_t_3, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 1252, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1254 * class libraryPropertyType(IntEnum): * """""" * MAJOR_VERSION = ccudart.libraryPropertyType_t.MAJOR_VERSION # <<<<<<<<<<<<<< * MINOR_VERSION = ccudart.libraryPropertyType_t.MINOR_VERSION * PATCH_LEVEL = ccudart.libraryPropertyType_t.PATCH_LEVEL */ __pyx_t_4 = __Pyx_PyInt_From_enum__libraryPropertyType_t(MAJOR_VERSION); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1254, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_MAJOR_VERSION, __pyx_t_4) < 0) __PYX_ERR(0, 1254, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1255 * """""" * MAJOR_VERSION = ccudart.libraryPropertyType_t.MAJOR_VERSION * MINOR_VERSION = ccudart.libraryPropertyType_t.MINOR_VERSION # <<<<<<<<<<<<<< * PATCH_LEVEL = ccudart.libraryPropertyType_t.PATCH_LEVEL * */ __pyx_t_4 = __Pyx_PyInt_From_enum__libraryPropertyType_t(MINOR_VERSION); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1255, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_MINOR_VERSION, __pyx_t_4) < 0) __PYX_ERR(0, 1255, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1256 * MAJOR_VERSION = ccudart.libraryPropertyType_t.MAJOR_VERSION * MINOR_VERSION = ccudart.libraryPropertyType_t.MINOR_VERSION * PATCH_LEVEL = ccudart.libraryPropertyType_t.PATCH_LEVEL # <<<<<<<<<<<<<< * * class cudaEglFrameType(IntEnum): */ __pyx_t_4 = __Pyx_PyInt_From_enum__libraryPropertyType_t(PATCH_LEVEL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1256, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_PATCH_LEVEL, __pyx_t_4) < 0) __PYX_ERR(0, 1256, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1252 * CUDA_R_8F_E5M2 = ccudart.cudaDataType_t.CUDA_R_8F_E5M2 * * class libraryPropertyType(IntEnum): # <<<<<<<<<<<<<< * """""" * MAJOR_VERSION = ccudart.libraryPropertyType_t.MAJOR_VERSION */ __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_n_s_libraryPropertyType, __pyx_t_2, __pyx_t_3, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_libraryPropertyType, __pyx_t_4) < 0) __PYX_ERR(0, 1252, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":1258 * PATCH_LEVEL = ccudart.libraryPropertyType_t.PATCH_LEVEL * * class cudaEglFrameType(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA EglFrame type - array or pointer */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1258, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1258, __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)) __PYX_ERR(0, 1258, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1258, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1258, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_3, __pyx_t_2, __pyx_n_s_cudaEglFrameType, __pyx_n_s_cudaEglFrameType, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_CUDA_EglFrame_type_array_or_poi); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1258, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_2 != __pyx_t_5) { if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_5) < 0))) __PYX_ERR(0, 1258, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1264 * * #: Frame type CUDA array * cudaEglFrameTypeArray = ccudart.cudaEglFrameType_enum.cudaEglFrameTypeArray # <<<<<<<<<<<<<< * * #: Frame type CUDA pointer */ __pyx_t_5 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglFrameType_enum(__pyx_e_4cuda_7ccudart_cudaEglFrameTypeArray); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1264, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaEglFrameTypeArray, __pyx_t_5) < 0) __PYX_ERR(0, 1264, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1267 * * #: Frame type CUDA pointer * cudaEglFrameTypePitch = ccudart.cudaEglFrameType_enum.cudaEglFrameTypePitch # <<<<<<<<<<<<<< * * class cudaEglResourceLocationFlags(IntEnum): */ __pyx_t_5 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglFrameType_enum(__pyx_e_4cuda_7ccudart_cudaEglFrameTypePitch); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1267, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaEglFrameTypePitch, __pyx_t_5) < 0) __PYX_ERR(0, 1267, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1258 * PATCH_LEVEL = ccudart.libraryPropertyType_t.PATCH_LEVEL * * class cudaEglFrameType(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA EglFrame type - array or pointer */ __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_3, __pyx_n_s_cudaEglFrameType, __pyx_t_2, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1258, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaEglFrameType, __pyx_t_5) < 0) __PYX_ERR(0, 1258, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":1269 * cudaEglFrameTypePitch = ccudart.cudaEglFrameType_enum.cudaEglFrameTypePitch * * class cudaEglResourceLocationFlags(IntEnum): # <<<<<<<<<<<<<< * """ * Resource location flags- sysmem or vidmem For CUDA context on */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1269, __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)) __PYX_ERR(0, 1269, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_2, __pyx_n_s_cudaEglResourceLocationFlags, __pyx_n_s_cudaEglResourceLocationFlags, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_Resource_location_flags_sysmem); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_2 != __pyx_t_3) { if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_3) < 0))) __PYX_ERR(0, 1269, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1285 * * #: Resource location sysmem * cudaEglResourceLocationSysmem = ccudart.cudaEglResourceLocationFlags_enum.cudaEglResourceLocationSysmem # <<<<<<<<<<<<<< * * #: Resource location vidmem */ __pyx_t_3 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglResourceLocationFlags_enum(__pyx_e_4cuda_7ccudart_cudaEglResourceLocationSysmem); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1285, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaEglResourceLocationSysmem, __pyx_t_3) < 0) __PYX_ERR(0, 1285, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1288 * * #: Resource location vidmem * cudaEglResourceLocationVidmem = ccudart.cudaEglResourceLocationFlags_enum.cudaEglResourceLocationVidmem # <<<<<<<<<<<<<< * * class cudaEglColorFormat(IntEnum): */ __pyx_t_3 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglResourceLocationFlags_enum(__pyx_e_4cuda_7ccudart_cudaEglResourceLocationVidmem); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1288, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaEglResourceLocationVidmem, __pyx_t_3) < 0) __PYX_ERR(0, 1288, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1269 * cudaEglFrameTypePitch = ccudart.cudaEglFrameType_enum.cudaEglFrameTypePitch * * class cudaEglResourceLocationFlags(IntEnum): # <<<<<<<<<<<<<< * """ * Resource location flags- sysmem or vidmem For CUDA context on */ __pyx_t_3 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_n_s_cudaEglResourceLocationFlags, __pyx_t_2, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaEglResourceLocationFlags, __pyx_t_3) < 0) __PYX_ERR(0, 1269, __pyx_L1_error) __Pyx_DECREF(__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; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":1290 * cudaEglResourceLocationVidmem = ccudart.cudaEglResourceLocationFlags_enum.cudaEglResourceLocationVidmem * * class cudaEglColorFormat(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA EGL Color Format - The different planar and multiplanar */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1290, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1290, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 1290, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1290, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1290, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_n_s_cudaEglColorFormat, __pyx_n_s_cudaEglColorFormat, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_CUDA_EGL_Color_Format_The_diffe); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1290, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_2 != __pyx_t_4) { if (unlikely((PyDict_SetItemString(__pyx_t_3, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 1290, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1298 * #: 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 = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYUV420Planar # <<<<<<<<<<<<<< * * #: Y, UV in two surfaces (UV as one surface) with VU byte ordering, */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYUV420Planar); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1298, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYUV420Planar, __pyx_t_4) < 0) __PYX_ERR(0, 1298, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1302 * #: Y, UV in two surfaces (UV as one surface) with VU byte ordering, * #: width, height ratio same as YUV420Planar. * cudaEglColorFormatYUV420SemiPlanar = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYUV420SemiPlanar # <<<<<<<<<<<<<< * * #: Y, U, V each in a separate surface, U/V width = 1/2 Y width, U/V */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYUV420SemiPlanar); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1302, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYUV420SemiPlan, __pyx_t_4) < 0) __PYX_ERR(0, 1302, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1306 * #: Y, U, V each in a separate surface, U/V width = 1/2 Y width, U/V * #: height = Y height. * cudaEglColorFormatYUV422Planar = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYUV422Planar # <<<<<<<<<<<<<< * * #: Y, UV in two surfaces with VU byte ordering, width, height ratio */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYUV422Planar); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1306, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYUV422Planar, __pyx_t_4) < 0) __PYX_ERR(0, 1306, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1310 * #: Y, UV in two surfaces with VU byte ordering, width, height ratio * #: same as YUV422Planar. * cudaEglColorFormatYUV422SemiPlanar = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYUV422SemiPlanar # <<<<<<<<<<<<<< * * #: R/G/B/A four channels in one surface with BGRA byte ordering. */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYUV422SemiPlanar); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1310, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYUV422SemiPlan, __pyx_t_4) < 0) __PYX_ERR(0, 1310, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1313 * * #: R/G/B/A four channels in one surface with BGRA byte ordering. * cudaEglColorFormatARGB = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatARGB # <<<<<<<<<<<<<< * * #: R/G/B/A four channels in one surface with ABGR byte ordering. */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatARGB); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1313, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatARGB, __pyx_t_4) < 0) __PYX_ERR(0, 1313, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1316 * * #: R/G/B/A four channels in one surface with ABGR byte ordering. * cudaEglColorFormatRGBA = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatRGBA # <<<<<<<<<<<<<< * * #: single luminance channel in one surface. */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatRGBA); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1316, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatRGBA, __pyx_t_4) < 0) __PYX_ERR(0, 1316, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1319 * * #: single luminance channel in one surface. * cudaEglColorFormatL = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatL # <<<<<<<<<<<<<< * * #: single color channel in one surface. */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1319, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatL, __pyx_t_4) < 0) __PYX_ERR(0, 1319, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1322 * * #: single color channel in one surface. * cudaEglColorFormatR = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatR # <<<<<<<<<<<<<< * * #: Y, U, V in three surfaces, each in a separate surface, U/V width = Y */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatR); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1322, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatR, __pyx_t_4) < 0) __PYX_ERR(0, 1322, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1326 * #: Y, U, V in three surfaces, each in a separate surface, U/V width = Y * #: width, U/V height = Y height. * cudaEglColorFormatYUV444Planar = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYUV444Planar # <<<<<<<<<<<<<< * * #: Y, UV in two surfaces (UV as one surface) with VU byte ordering, */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYUV444Planar); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1326, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYUV444Planar, __pyx_t_4) < 0) __PYX_ERR(0, 1326, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1330 * #: Y, UV in two surfaces (UV as one surface) with VU byte ordering, * #: width, height ratio same as YUV444Planar. * cudaEglColorFormatYUV444SemiPlanar = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYUV444SemiPlanar # <<<<<<<<<<<<<< * * #: Y, U, V in one surface, interleaved as UYVY in one channel. */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYUV444SemiPlanar); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1330, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYUV444SemiPlan, __pyx_t_4) < 0) __PYX_ERR(0, 1330, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1333 * * #: Y, U, V in one surface, interleaved as UYVY in one channel. * cudaEglColorFormatYUYV422 = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYUYV422 # <<<<<<<<<<<<<< * * #: Y, U, V in one surface, interleaved as YUYV in one channel. */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYUYV422); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1333, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYUYV422, __pyx_t_4) < 0) __PYX_ERR(0, 1333, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1336 * * #: Y, U, V in one surface, interleaved as YUYV in one channel. * cudaEglColorFormatUYVY422 = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatUYVY422 # <<<<<<<<<<<<<< * * #: R/G/B/A four channels in one surface with RGBA byte ordering. */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatUYVY422); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1336, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatUYVY422, __pyx_t_4) < 0) __PYX_ERR(0, 1336, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1339 * * #: R/G/B/A four channels in one surface with RGBA byte ordering. * cudaEglColorFormatABGR = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatABGR # <<<<<<<<<<<<<< * * #: R/G/B/A four channels in one surface with ARGB byte ordering. */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatABGR); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1339, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatABGR, __pyx_t_4) < 0) __PYX_ERR(0, 1339, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1342 * * #: R/G/B/A four channels in one surface with ARGB byte ordering. * cudaEglColorFormatBGRA = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatBGRA # <<<<<<<<<<<<<< * * #: Alpha color format - one channel in one surface. */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatBGRA); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1342, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatBGRA, __pyx_t_4) < 0) __PYX_ERR(0, 1342, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1345 * * #: Alpha color format - one channel in one surface. * cudaEglColorFormatA = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatA # <<<<<<<<<<<<<< * * #: R/G color format - two channels in one surface with GR byte ordering */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatA); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1345, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatA, __pyx_t_4) < 0) __PYX_ERR(0, 1345, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1348 * * #: R/G color format - two channels in one surface with GR byte ordering * cudaEglColorFormatRG = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatRG # <<<<<<<<<<<<<< * * #: Y, U, V, A four channels in one surface, interleaved as VUYA. */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatRG); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1348, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatRG, __pyx_t_4) < 0) __PYX_ERR(0, 1348, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1351 * * #: Y, U, V, A four channels in one surface, interleaved as VUYA. * cudaEglColorFormatAYUV = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatAYUV # <<<<<<<<<<<<<< * * #: Y, VU in two surfaces (VU as one surface) with UV byte ordering, U/V */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatAYUV); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1351, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatAYUV, __pyx_t_4) < 0) __PYX_ERR(0, 1351, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1355 * #: Y, VU in two surfaces (VU as one surface) with UV byte ordering, U/V * #: width = Y width, U/V height = Y height. * cudaEglColorFormatYVU444SemiPlanar = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYVU444SemiPlanar # <<<<<<<<<<<<<< * * #: Y, VU in two surfaces (VU as one surface) with UV byte ordering, U/V */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYVU444SemiPlanar); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1355, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYVU444SemiPlan, __pyx_t_4) < 0) __PYX_ERR(0, 1355, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1359 * #: 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 = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYVU422SemiPlanar # <<<<<<<<<<<<<< * * #: Y, VU in two surfaces (VU as one surface) with UV byte ordering, U/V */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYVU422SemiPlanar); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1359, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYVU422SemiPlan, __pyx_t_4) < 0) __PYX_ERR(0, 1359, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1363 * #: 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 = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYVU420SemiPlanar # <<<<<<<<<<<<<< * * #: Y10, V10U10 in two surfaces (VU as one surface) with UV byte */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYVU420SemiPlanar); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1363, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYVU420SemiPlan, __pyx_t_4) < 0) __PYX_ERR(0, 1363, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1367 * #: 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 = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_444SemiPlanar # <<<<<<<<<<<<<< * * #: Y10, V10U10 in two surfaces (VU as one surface) with UV byte */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatY10V10U10_444SemiPlanar); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1367, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatY10V10U10_444S, __pyx_t_4) < 0) __PYX_ERR(0, 1367, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1371 * #: 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 = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_420SemiPlanar # <<<<<<<<<<<<<< * * #: Y12, V12U12 in two surfaces (VU as one surface) with UV byte */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatY10V10U10_420SemiPlanar); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1371, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatY10V10U10_420S, __pyx_t_4) < 0) __PYX_ERR(0, 1371, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1375 * #: 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 = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatY12V12U12_444SemiPlanar # <<<<<<<<<<<<<< * * #: Y12, V12U12 in two surfaces (VU as one surface) with UV byte */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatY12V12U12_444SemiPlanar); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1375, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatY12V12U12_444S, __pyx_t_4) < 0) __PYX_ERR(0, 1375, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1379 * #: 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 = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatY12V12U12_420SemiPlanar # <<<<<<<<<<<<<< * * #: Extended Range Y, U, V in one surface, interleaved as YVYU in one */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatY12V12U12_420SemiPlanar); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1379, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatY12V12U12_420S, __pyx_t_4) < 0) __PYX_ERR(0, 1379, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1383 * #: Extended Range Y, U, V in one surface, interleaved as YVYU in one * #: channel. * cudaEglColorFormatVYUY_ER = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatVYUY_ER # <<<<<<<<<<<<<< * * #: Extended Range Y, U, V in one surface, interleaved as YUYV in one */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatVYUY_ER); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1383, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatVYUY_ER, __pyx_t_4) < 0) __PYX_ERR(0, 1383, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1387 * #: Extended Range Y, U, V in one surface, interleaved as YUYV in one * #: channel. * cudaEglColorFormatUYVY_ER = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatUYVY_ER # <<<<<<<<<<<<<< * * #: Extended Range Y, U, V in one surface, interleaved as UYVY in one */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatUYVY_ER); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1387, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatUYVY_ER, __pyx_t_4) < 0) __PYX_ERR(0, 1387, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1391 * #: Extended Range Y, U, V in one surface, interleaved as UYVY in one * #: channel. * cudaEglColorFormatYUYV_ER = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYUYV_ER # <<<<<<<<<<<<<< * * #: Extended Range Y, U, V in one surface, interleaved as VYUY in one */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYUYV_ER); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1391, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYUYV_ER, __pyx_t_4) < 0) __PYX_ERR(0, 1391, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1395 * #: Extended Range Y, U, V in one surface, interleaved as VYUY in one * #: channel. * cudaEglColorFormatYVYU_ER = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYVYU_ER # <<<<<<<<<<<<<< * * #: Extended Range Y, U, V, A four channels in one surface, interleaved */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYVYU_ER); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1395, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYVYU_ER, __pyx_t_4) < 0) __PYX_ERR(0, 1395, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1399 * #: Extended Range Y, U, V, A four channels in one surface, interleaved * #: as AVUY. * cudaEglColorFormatYUVA_ER = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYUVA_ER # <<<<<<<<<<<<<< * * #: Extended Range Y, U, V, A four channels in one surface, interleaved */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYUVA_ER); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1399, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYUVA_ER, __pyx_t_4) < 0) __PYX_ERR(0, 1399, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1403 * #: Extended Range Y, U, V, A four channels in one surface, interleaved * #: as VUYA. * cudaEglColorFormatAYUV_ER = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatAYUV_ER # <<<<<<<<<<<<<< * * #: Extended Range Y, U, V in three surfaces, U/V width = Y width, U/V */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatAYUV_ER); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1403, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatAYUV_ER, __pyx_t_4) < 0) __PYX_ERR(0, 1403, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1407 * #: Extended Range Y, U, V in three surfaces, U/V width = Y width, U/V * #: height = Y height. * cudaEglColorFormatYUV444Planar_ER = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYUV444Planar_ER # <<<<<<<<<<<<<< * * #: Extended Range Y, U, V in three surfaces, U/V width = 1/2 Y width, */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYUV444Planar_ER); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1407, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYUV444Planar_E, __pyx_t_4) < 0) __PYX_ERR(0, 1407, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1411 * #: Extended Range Y, U, V in three surfaces, U/V width = 1/2 Y width, * #: U/V height = Y height. * cudaEglColorFormatYUV422Planar_ER = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYUV422Planar_ER # <<<<<<<<<<<<<< * * #: Extended Range Y, U, V in three surfaces, U/V width = 1/2 Y width, */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYUV422Planar_ER); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1411, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYUV422Planar_E, __pyx_t_4) < 0) __PYX_ERR(0, 1411, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1415 * #: Extended Range Y, U, V in three surfaces, U/V width = 1/2 Y width, * #: U/V height = 1/2 Y height. * cudaEglColorFormatYUV420Planar_ER = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYUV420Planar_ER # <<<<<<<<<<<<<< * * #: Extended Range Y, UV in two surfaces (UV as one surface) with VU */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYUV420Planar_ER); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1415, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYUV420Planar_E, __pyx_t_4) < 0) __PYX_ERR(0, 1415, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1419 * #: 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 = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYUV444SemiPlanar_ER # <<<<<<<<<<<<<< * * #: Extended Range Y, UV in two surfaces (UV as one surface) with VU */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYUV444SemiPlanar_ER); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1419, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYUV444SemiPlan_2, __pyx_t_4) < 0) __PYX_ERR(0, 1419, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1423 * #: 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 = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYUV422SemiPlanar_ER # <<<<<<<<<<<<<< * * #: Extended Range Y, UV in two surfaces (UV as one surface) with VU */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYUV422SemiPlanar_ER); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1423, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYUV422SemiPlan_2, __pyx_t_4) < 0) __PYX_ERR(0, 1423, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1427 * #: 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 = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYUV420SemiPlanar_ER # <<<<<<<<<<<<<< * * #: Extended Range Y, V, U in three surfaces, U/V width = Y width, U/V */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYUV420SemiPlanar_ER); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1427, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYUV420SemiPlan_2, __pyx_t_4) < 0) __PYX_ERR(0, 1427, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1431 * #: Extended Range Y, V, U in three surfaces, U/V width = Y width, U/V * #: height = Y height. * cudaEglColorFormatYVU444Planar_ER = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYVU444Planar_ER # <<<<<<<<<<<<<< * * #: Extended Range Y, V, U in three surfaces, U/V width = 1/2 Y width, */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYVU444Planar_ER); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1431, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYVU444Planar_E, __pyx_t_4) < 0) __PYX_ERR(0, 1431, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1435 * #: Extended Range Y, V, U in three surfaces, U/V width = 1/2 Y width, * #: U/V height = Y height. * cudaEglColorFormatYVU422Planar_ER = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYVU422Planar_ER # <<<<<<<<<<<<<< * * #: Extended Range Y, V, U in three surfaces, U/V width = 1/2 Y width, */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYVU422Planar_ER); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1435, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYVU422Planar_E, __pyx_t_4) < 0) __PYX_ERR(0, 1435, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1439 * #: Extended Range Y, V, U in three surfaces, U/V width = 1/2 Y width, * #: U/V height = 1/2 Y height. * cudaEglColorFormatYVU420Planar_ER = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYVU420Planar_ER # <<<<<<<<<<<<<< * * #: Extended Range Y, VU in two surfaces (VU as one surface) with UV */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYVU420Planar_ER); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1439, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYVU420Planar_E, __pyx_t_4) < 0) __PYX_ERR(0, 1439, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1443 * #: 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 = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYVU444SemiPlanar_ER # <<<<<<<<<<<<<< * * #: Extended Range Y, VU in two surfaces (VU as one surface) with UV */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYVU444SemiPlanar_ER); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1443, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYVU444SemiPlan_2, __pyx_t_4) < 0) __PYX_ERR(0, 1443, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1447 * #: 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 = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYVU422SemiPlanar_ER # <<<<<<<<<<<<<< * * #: Extended Range Y, VU in two surfaces (VU as one surface) with UV */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYVU422SemiPlanar_ER); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1447, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYVU422SemiPlan_2, __pyx_t_4) < 0) __PYX_ERR(0, 1447, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1451 * #: 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 = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYVU420SemiPlanar_ER # <<<<<<<<<<<<<< * * #: Bayer format - one channel in one surface with interleaved RGGB */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYVU420SemiPlanar_ER); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1451, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYVU420SemiPlan_2, __pyx_t_4) < 0) __PYX_ERR(0, 1451, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1455 * #: Bayer format - one channel in one surface with interleaved RGGB * #: ordering. * cudaEglColorFormatBayerRGGB = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatBayerRGGB # <<<<<<<<<<<<<< * * #: Bayer format - one channel in one surface with interleaved BGGR */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatBayerRGGB); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1455, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatBayerRGGB, __pyx_t_4) < 0) __PYX_ERR(0, 1455, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1459 * #: Bayer format - one channel in one surface with interleaved BGGR * #: ordering. * cudaEglColorFormatBayerBGGR = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatBayerBGGR # <<<<<<<<<<<<<< * * #: Bayer format - one channel in one surface with interleaved GRBG */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatBayerBGGR); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1459, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatBayerBGGR, __pyx_t_4) < 0) __PYX_ERR(0, 1459, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1463 * #: Bayer format - one channel in one surface with interleaved GRBG * #: ordering. * cudaEglColorFormatBayerGRBG = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatBayerGRBG # <<<<<<<<<<<<<< * * #: Bayer format - one channel in one surface with interleaved GBRG */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatBayerGRBG); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1463, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatBayerGRBG, __pyx_t_4) < 0) __PYX_ERR(0, 1463, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1467 * #: Bayer format - one channel in one surface with interleaved GBRG * #: ordering. * cudaEglColorFormatBayerGBRG = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatBayerGBRG # <<<<<<<<<<<<<< * * #: Bayer10 format - one channel in one surface with interleaved RGGB */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatBayerGBRG); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1467, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatBayerGBRG, __pyx_t_4) < 0) __PYX_ERR(0, 1467, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1471 * #: Bayer10 format - one channel in one surface with interleaved RGGB * #: ordering. Out of 16 bits, 10 bits used 6 bits No-op. * cudaEglColorFormatBayer10RGGB = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatBayer10RGGB # <<<<<<<<<<<<<< * * #: Bayer10 format - one channel in one surface with interleaved BGGR */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer10RGGB); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1471, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatBayer10RGGB, __pyx_t_4) < 0) __PYX_ERR(0, 1471, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1475 * #: Bayer10 format - one channel in one surface with interleaved BGGR * #: ordering. Out of 16 bits, 10 bits used 6 bits No-op. * cudaEglColorFormatBayer10BGGR = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatBayer10BGGR # <<<<<<<<<<<<<< * * #: Bayer10 format - one channel in one surface with interleaved GRBG */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer10BGGR); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1475, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatBayer10BGGR, __pyx_t_4) < 0) __PYX_ERR(0, 1475, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1479 * #: Bayer10 format - one channel in one surface with interleaved GRBG * #: ordering. Out of 16 bits, 10 bits used 6 bits No-op. * cudaEglColorFormatBayer10GRBG = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatBayer10GRBG # <<<<<<<<<<<<<< * * #: Bayer10 format - one channel in one surface with interleaved GBRG */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer10GRBG); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1479, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatBayer10GRBG, __pyx_t_4) < 0) __PYX_ERR(0, 1479, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1483 * #: Bayer10 format - one channel in one surface with interleaved GBRG * #: ordering. Out of 16 bits, 10 bits used 6 bits No-op. * cudaEglColorFormatBayer10GBRG = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatBayer10GBRG # <<<<<<<<<<<<<< * * #: Bayer12 format - one channel in one surface with interleaved RGGB */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer10GBRG); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1483, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatBayer10GBRG, __pyx_t_4) < 0) __PYX_ERR(0, 1483, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1487 * #: Bayer12 format - one channel in one surface with interleaved RGGB * #: ordering. Out of 16 bits, 12 bits used 4 bits No-op. * cudaEglColorFormatBayer12RGGB = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatBayer12RGGB # <<<<<<<<<<<<<< * * #: Bayer12 format - one channel in one surface with interleaved BGGR */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer12RGGB); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1487, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatBayer12RGGB, __pyx_t_4) < 0) __PYX_ERR(0, 1487, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1491 * #: Bayer12 format - one channel in one surface with interleaved BGGR * #: ordering. Out of 16 bits, 12 bits used 4 bits No-op. * cudaEglColorFormatBayer12BGGR = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatBayer12BGGR # <<<<<<<<<<<<<< * * #: Bayer12 format - one channel in one surface with interleaved GRBG */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer12BGGR); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1491, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatBayer12BGGR, __pyx_t_4) < 0) __PYX_ERR(0, 1491, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1495 * #: Bayer12 format - one channel in one surface with interleaved GRBG * #: ordering. Out of 16 bits, 12 bits used 4 bits No-op. * cudaEglColorFormatBayer12GRBG = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatBayer12GRBG # <<<<<<<<<<<<<< * * #: Bayer12 format - one channel in one surface with interleaved GBRG */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer12GRBG); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1495, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatBayer12GRBG, __pyx_t_4) < 0) __PYX_ERR(0, 1495, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1499 * #: Bayer12 format - one channel in one surface with interleaved GBRG * #: ordering. Out of 16 bits, 12 bits used 4 bits No-op. * cudaEglColorFormatBayer12GBRG = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatBayer12GBRG # <<<<<<<<<<<<<< * * #: Bayer14 format - one channel in one surface with interleaved RGGB */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer12GBRG); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1499, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatBayer12GBRG, __pyx_t_4) < 0) __PYX_ERR(0, 1499, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1503 * #: Bayer14 format - one channel in one surface with interleaved RGGB * #: ordering. Out of 16 bits, 14 bits used 2 bits No-op. * cudaEglColorFormatBayer14RGGB = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatBayer14RGGB # <<<<<<<<<<<<<< * * #: Bayer14 format - one channel in one surface with interleaved BGGR */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer14RGGB); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1503, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatBayer14RGGB, __pyx_t_4) < 0) __PYX_ERR(0, 1503, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1507 * #: Bayer14 format - one channel in one surface with interleaved BGGR * #: ordering. Out of 16 bits, 14 bits used 2 bits No-op. * cudaEglColorFormatBayer14BGGR = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatBayer14BGGR # <<<<<<<<<<<<<< * * #: Bayer14 format - one channel in one surface with interleaved GRBG */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer14BGGR); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1507, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatBayer14BGGR, __pyx_t_4) < 0) __PYX_ERR(0, 1507, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1511 * #: Bayer14 format - one channel in one surface with interleaved GRBG * #: ordering. Out of 16 bits, 14 bits used 2 bits No-op. * cudaEglColorFormatBayer14GRBG = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatBayer14GRBG # <<<<<<<<<<<<<< * * #: Bayer14 format - one channel in one surface with interleaved GBRG */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer14GRBG); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1511, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatBayer14GRBG, __pyx_t_4) < 0) __PYX_ERR(0, 1511, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1515 * #: Bayer14 format - one channel in one surface with interleaved GBRG * #: ordering. Out of 16 bits, 14 bits used 2 bits No-op. * cudaEglColorFormatBayer14GBRG = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatBayer14GBRG # <<<<<<<<<<<<<< * * #: Bayer20 format - one channel in one surface with interleaved RGGB */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer14GBRG); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1515, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatBayer14GBRG, __pyx_t_4) < 0) __PYX_ERR(0, 1515, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1519 * #: Bayer20 format - one channel in one surface with interleaved RGGB * #: ordering. Out of 32 bits, 20 bits used 12 bits No-op. * cudaEglColorFormatBayer20RGGB = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatBayer20RGGB # <<<<<<<<<<<<<< * * #: Bayer20 format - one channel in one surface with interleaved BGGR */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer20RGGB); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1519, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatBayer20RGGB, __pyx_t_4) < 0) __PYX_ERR(0, 1519, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1523 * #: Bayer20 format - one channel in one surface with interleaved BGGR * #: ordering. Out of 32 bits, 20 bits used 12 bits No-op. * cudaEglColorFormatBayer20BGGR = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatBayer20BGGR # <<<<<<<<<<<<<< * * #: Bayer20 format - one channel in one surface with interleaved GRBG */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer20BGGR); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1523, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatBayer20BGGR, __pyx_t_4) < 0) __PYX_ERR(0, 1523, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1527 * #: Bayer20 format - one channel in one surface with interleaved GRBG * #: ordering. Out of 32 bits, 20 bits used 12 bits No-op. * cudaEglColorFormatBayer20GRBG = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatBayer20GRBG # <<<<<<<<<<<<<< * * #: Bayer20 format - one channel in one surface with interleaved GBRG */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer20GRBG); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1527, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatBayer20GRBG, __pyx_t_4) < 0) __PYX_ERR(0, 1527, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1531 * #: Bayer20 format - one channel in one surface with interleaved GBRG * #: ordering. Out of 32 bits, 20 bits used 12 bits No-op. * cudaEglColorFormatBayer20GBRG = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatBayer20GBRG # <<<<<<<<<<<<<< * * #: Y, V, U in three surfaces, each in a separate surface, U/V width = Y */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer20GBRG); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1531, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatBayer20GBRG, __pyx_t_4) < 0) __PYX_ERR(0, 1531, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1535 * #: Y, V, U in three surfaces, each in a separate surface, U/V width = Y * #: width, U/V height = Y height. * cudaEglColorFormatYVU444Planar = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYVU444Planar # <<<<<<<<<<<<<< * * #: Y, V, U in three surfaces, each in a separate surface, U/V width = */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYVU444Planar); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1535, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYVU444Planar, __pyx_t_4) < 0) __PYX_ERR(0, 1535, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1539 * #: Y, V, U in three surfaces, each in a separate surface, U/V width = * #: 1/2 Y width, U/V height = Y height. * cudaEglColorFormatYVU422Planar = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYVU422Planar # <<<<<<<<<<<<<< * * #: Y, V, U in three surfaces, each in a separate surface, U/V width = */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYVU422Planar); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1539, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYVU422Planar, __pyx_t_4) < 0) __PYX_ERR(0, 1539, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1543 * #: 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 = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYVU420Planar # <<<<<<<<<<<<<< * * #: Nvidia proprietary Bayer ISP format - one channel in one surface */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYVU420Planar); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1543, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYVU420Planar, __pyx_t_4) < 0) __PYX_ERR(0, 1543, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1548 * #: with interleaved RGGB ordering and mapped to opaque integer * #: datatype. * cudaEglColorFormatBayerIspRGGB = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatBayerIspRGGB # <<<<<<<<<<<<<< * * #: Nvidia proprietary Bayer ISP format - one channel in one surface */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatBayerIspRGGB); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1548, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatBayerIspRGGB, __pyx_t_4) < 0) __PYX_ERR(0, 1548, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1553 * #: with interleaved BGGR ordering and mapped to opaque integer * #: datatype. * cudaEglColorFormatBayerIspBGGR = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatBayerIspBGGR # <<<<<<<<<<<<<< * * #: Nvidia proprietary Bayer ISP format - one channel in one surface */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatBayerIspBGGR); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1553, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatBayerIspBGGR, __pyx_t_4) < 0) __PYX_ERR(0, 1553, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1558 * #: with interleaved GRBG ordering and mapped to opaque integer * #: datatype. * cudaEglColorFormatBayerIspGRBG = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatBayerIspGRBG # <<<<<<<<<<<<<< * * #: Nvidia proprietary Bayer ISP format - one channel in one surface */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatBayerIspGRBG); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1558, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatBayerIspGRBG, __pyx_t_4) < 0) __PYX_ERR(0, 1558, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1563 * #: with interleaved GBRG ordering and mapped to opaque integer * #: datatype. * cudaEglColorFormatBayerIspGBRG = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatBayerIspGBRG # <<<<<<<<<<<<<< * * #: Bayer format - one channel in one surface with interleaved BCCR */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatBayerIspGBRG); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1563, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatBayerIspGBRG, __pyx_t_4) < 0) __PYX_ERR(0, 1563, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1567 * #: Bayer format - one channel in one surface with interleaved BCCR * #: ordering. * cudaEglColorFormatBayerBCCR = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatBayerBCCR # <<<<<<<<<<<<<< * * #: Bayer format - one channel in one surface with interleaved RCCB */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatBayerBCCR); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1567, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatBayerBCCR, __pyx_t_4) < 0) __PYX_ERR(0, 1567, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1571 * #: Bayer format - one channel in one surface with interleaved RCCB * #: ordering. * cudaEglColorFormatBayerRCCB = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatBayerRCCB # <<<<<<<<<<<<<< * * #: Bayer format - one channel in one surface with interleaved CRBC */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatBayerRCCB); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1571, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatBayerRCCB, __pyx_t_4) < 0) __PYX_ERR(0, 1571, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1575 * #: Bayer format - one channel in one surface with interleaved CRBC * #: ordering. * cudaEglColorFormatBayerCRBC = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatBayerCRBC # <<<<<<<<<<<<<< * * #: Bayer format - one channel in one surface with interleaved CBRC */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatBayerCRBC); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1575, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatBayerCRBC, __pyx_t_4) < 0) __PYX_ERR(0, 1575, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1579 * #: Bayer format - one channel in one surface with interleaved CBRC * #: ordering. * cudaEglColorFormatBayerCBRC = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatBayerCBRC # <<<<<<<<<<<<<< * * #: Bayer10 format - one channel in one surface with interleaved CCCC */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatBayerCBRC); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1579, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatBayerCBRC, __pyx_t_4) < 0) __PYX_ERR(0, 1579, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1583 * #: Bayer10 format - one channel in one surface with interleaved CCCC * #: ordering. Out of 16 bits, 10 bits used 6 bits No-op. * cudaEglColorFormatBayer10CCCC = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatBayer10CCCC # <<<<<<<<<<<<<< * * #: Bayer12 format - one channel in one surface with interleaved BCCR */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer10CCCC); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1583, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatBayer10CCCC, __pyx_t_4) < 0) __PYX_ERR(0, 1583, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1587 * #: Bayer12 format - one channel in one surface with interleaved BCCR * #: ordering. Out of 16 bits, 12 bits used 4 bits No-op. * cudaEglColorFormatBayer12BCCR = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatBayer12BCCR # <<<<<<<<<<<<<< * * #: Bayer12 format - one channel in one surface with interleaved RCCB */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer12BCCR); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1587, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatBayer12BCCR, __pyx_t_4) < 0) __PYX_ERR(0, 1587, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1591 * #: Bayer12 format - one channel in one surface with interleaved RCCB * #: ordering. Out of 16 bits, 12 bits used 4 bits No-op. * cudaEglColorFormatBayer12RCCB = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatBayer12RCCB # <<<<<<<<<<<<<< * * #: Bayer12 format - one channel in one surface with interleaved CRBC */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer12RCCB); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1591, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatBayer12RCCB, __pyx_t_4) < 0) __PYX_ERR(0, 1591, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1595 * #: Bayer12 format - one channel in one surface with interleaved CRBC * #: ordering. Out of 16 bits, 12 bits used 4 bits No-op. * cudaEglColorFormatBayer12CRBC = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatBayer12CRBC # <<<<<<<<<<<<<< * * #: Bayer12 format - one channel in one surface with interleaved CBRC */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer12CRBC); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1595, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatBayer12CRBC, __pyx_t_4) < 0) __PYX_ERR(0, 1595, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1599 * #: Bayer12 format - one channel in one surface with interleaved CBRC * #: ordering. Out of 16 bits, 12 bits used 4 bits No-op. * cudaEglColorFormatBayer12CBRC = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatBayer12CBRC # <<<<<<<<<<<<<< * * #: Bayer12 format - one channel in one surface with interleaved CCCC */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer12CBRC); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1599, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatBayer12CBRC, __pyx_t_4) < 0) __PYX_ERR(0, 1599, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1603 * #: Bayer12 format - one channel in one surface with interleaved CCCC * #: ordering. Out of 16 bits, 12 bits used 4 bits No-op. * cudaEglColorFormatBayer12CCCC = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatBayer12CCCC # <<<<<<<<<<<<<< * * #: Color format for single Y plane. */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatBayer12CCCC); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1603, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatBayer12CCCC, __pyx_t_4) < 0) __PYX_ERR(0, 1603, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1606 * * #: Color format for single Y plane. * cudaEglColorFormatY = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatY # <<<<<<<<<<<<<< * * #: Y, UV in two surfaces (UV as one surface) U/V width = 1/2 Y width, */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatY); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1606, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatY, __pyx_t_4) < 0) __PYX_ERR(0, 1606, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1610 * #: 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 = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYUV420SemiPlanar_2020 # <<<<<<<<<<<<<< * * #: Y, VU in two surfaces (VU as one surface) U/V width = 1/2 Y width, */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYUV420SemiPlanar_2020); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1610, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYUV420SemiPlan_3, __pyx_t_4) < 0) __PYX_ERR(0, 1610, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1614 * #: 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 = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYVU420SemiPlanar_2020 # <<<<<<<<<<<<<< * * #: Y, U, V in three surfaces, each in a separate surface, U/V width = */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYVU420SemiPlanar_2020); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1614, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYVU420SemiPlan_3, __pyx_t_4) < 0) __PYX_ERR(0, 1614, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1618 * #: 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 = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYUV420Planar_2020 # <<<<<<<<<<<<<< * * #: Y, V, U in three surfaces, each in a separate surface, U/V width = */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYUV420Planar_2020); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1618, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYUV420Planar_2, __pyx_t_4) < 0) __PYX_ERR(0, 1618, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1622 * #: 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 = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYVU420Planar_2020 # <<<<<<<<<<<<<< * * #: Y, UV in two surfaces (UV as one surface) U/V width = 1/2 Y width, */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYVU420Planar_2020); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1622, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYVU420Planar_2, __pyx_t_4) < 0) __PYX_ERR(0, 1622, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1626 * #: 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 = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYUV420SemiPlanar_709 # <<<<<<<<<<<<<< * * #: Y, VU in two surfaces (VU as one surface) U/V width = 1/2 Y width, */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYUV420SemiPlanar_709); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1626, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYUV420SemiPlan_4, __pyx_t_4) < 0) __PYX_ERR(0, 1626, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1630 * #: 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 = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYVU420SemiPlanar_709 # <<<<<<<<<<<<<< * * #: Y, U, V in three surfaces, each in a separate surface, U/V width = */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYVU420SemiPlanar_709); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1630, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYVU420SemiPlan_4, __pyx_t_4) < 0) __PYX_ERR(0, 1630, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1634 * #: 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 = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYUV420Planar_709 # <<<<<<<<<<<<<< * * #: Y, V, U in three surfaces, each in a separate surface, U/V width = */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYUV420Planar_709); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1634, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYUV420Planar_7, __pyx_t_4) < 0) __PYX_ERR(0, 1634, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1638 * #: 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 = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYVU420Planar_709 # <<<<<<<<<<<<<< * * #: Y10, V10U10 in two surfaces (VU as one surface) U/V width = 1/2 Y */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYVU420Planar_709); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1638, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYVU420Planar_7, __pyx_t_4) < 0) __PYX_ERR(0, 1638, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1642 * #: 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 = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_420SemiPlanar_709 # <<<<<<<<<<<<<< * * #: Y10, V10U10 in two surfaces (VU as one surface) U/V width = 1/2 Y */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatY10V10U10_420SemiPlanar_709); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1642, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatY10V10U10_420S_2, __pyx_t_4) < 0) __PYX_ERR(0, 1642, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1646 * #: 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 = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_420SemiPlanar_2020 # <<<<<<<<<<<<<< * * #: Y10, V10U10 in two surfaces (VU as one surface) U/V width = 1/2 Y */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatY10V10U10_420SemiPlanar_2020); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1646, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatY10V10U10_420S_3, __pyx_t_4) < 0) __PYX_ERR(0, 1646, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1650 * #: Y10, V10U10 in two surfaces (VU as one surface) U/V width = 1/2 Y * #: width, U/V height = Y height. * cudaEglColorFormatY10V10U10_422SemiPlanar_2020 = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_422SemiPlanar_2020 # <<<<<<<<<<<<<< * * #: Y10, V10U10 in two surfaces (VU as one surface) U/V width = 1/2 Y */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatY10V10U10_422SemiPlanar_2020); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1650, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatY10V10U10_422S, __pyx_t_4) < 0) __PYX_ERR(0, 1650, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1654 * #: Y10, V10U10 in two surfaces (VU as one surface) U/V width = 1/2 Y * #: width, U/V height = Y height. * cudaEglColorFormatY10V10U10_422SemiPlanar = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_422SemiPlanar # <<<<<<<<<<<<<< * * #: Y10, V10U10 in two surfaces (VU as one surface) U/V width = 1/2 Y */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatY10V10U10_422SemiPlanar); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1654, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatY10V10U10_422S_2, __pyx_t_4) < 0) __PYX_ERR(0, 1654, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1658 * #: Y10, V10U10 in two surfaces (VU as one surface) U/V width = 1/2 Y * #: width, U/V height = Y height. * cudaEglColorFormatY10V10U10_422SemiPlanar_709 = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_422SemiPlanar_709 # <<<<<<<<<<<<<< * * #: Extended Range Color format for single Y plane. */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatY10V10U10_422SemiPlanar_709); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1658, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatY10V10U10_422S_3, __pyx_t_4) < 0) __PYX_ERR(0, 1658, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1661 * * #: Extended Range Color format for single Y plane. * cudaEglColorFormatY_ER = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatY_ER # <<<<<<<<<<<<<< * * #: Extended Range Color format for single Y plane. */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatY_ER); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1661, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatY_ER, __pyx_t_4) < 0) __PYX_ERR(0, 1661, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1664 * * #: Extended Range Color format for single Y plane. * cudaEglColorFormatY_709_ER = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatY_709_ER # <<<<<<<<<<<<<< * * #: Extended Range Color format for single Y10 plane. */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatY_709_ER); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1664, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatY_709_ER, __pyx_t_4) < 0) __PYX_ERR(0, 1664, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1667 * * #: Extended Range Color format for single Y10 plane. * cudaEglColorFormatY10_ER = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatY10_ER # <<<<<<<<<<<<<< * * #: Extended Range Color format for single Y10 plane. */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatY10_ER); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1667, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatY10_ER, __pyx_t_4) < 0) __PYX_ERR(0, 1667, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1670 * * #: Extended Range Color format for single Y10 plane. * cudaEglColorFormatY10_709_ER = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatY10_709_ER # <<<<<<<<<<<<<< * * #: Extended Range Color format for single Y12 plane. */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatY10_709_ER); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1670, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatY10_709_ER, __pyx_t_4) < 0) __PYX_ERR(0, 1670, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1673 * * #: Extended Range Color format for single Y12 plane. * cudaEglColorFormatY12_ER = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatY12_ER # <<<<<<<<<<<<<< * * #: Extended Range Color format for single Y12 plane. */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatY12_ER); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1673, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatY12_ER, __pyx_t_4) < 0) __PYX_ERR(0, 1673, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1676 * * #: Extended Range Color format for single Y12 plane. * cudaEglColorFormatY12_709_ER = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatY12_709_ER # <<<<<<<<<<<<<< * * #: Y, U, V, A four channels in one surface, interleaved as AVUY. */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatY12_709_ER); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1676, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatY12_709_ER, __pyx_t_4) < 0) __PYX_ERR(0, 1676, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1679 * * #: Y, U, V, A four channels in one surface, interleaved as AVUY. * cudaEglColorFormatYUVA = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYUVA # <<<<<<<<<<<<<< * * #: Y, U, V in one surface, interleaved as YVYU in one channel. */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYUVA); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1679, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYUVA, __pyx_t_4) < 0) __PYX_ERR(0, 1679, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1682 * * #: Y, U, V in one surface, interleaved as YVYU in one channel. * cudaEglColorFormatYVYU = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatYVYU # <<<<<<<<<<<<<< * * #: Y, U, V in one surface, interleaved as VYUY in one channel. */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatYVYU); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1682, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatYVYU, __pyx_t_4) < 0) __PYX_ERR(0, 1682, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1685 * * #: Y, U, V in one surface, interleaved as VYUY in one channel. * cudaEglColorFormatVYUY = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatVYUY # <<<<<<<<<<<<<< * * #: Extended Range Y10, V10U10 in two surfaces (VU as one surface) U/V */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatVYUY); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1685, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatVYUY, __pyx_t_4) < 0) __PYX_ERR(0, 1685, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1689 * #: 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 = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_420SemiPlanar_ER # <<<<<<<<<<<<<< * * #: Extended Range Y10, V10U10 in two surfaces (VU as one surface) U/V */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatY10V10U10_420SemiPlanar_ER); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1689, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatY10V10U10_420S_4, __pyx_t_4) < 0) __PYX_ERR(0, 1689, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1693 * #: 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 = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_420SemiPlanar_709_ER # <<<<<<<<<<<<<< * * #: Extended Range Y10, V10U10 in two surfaces (VU as one surface) U/V */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatY10V10U10_420SemiPlanar_709_ER); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1693, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatY10V10U10_420S_5, __pyx_t_4) < 0) __PYX_ERR(0, 1693, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1697 * #: Extended Range Y10, V10U10 in two surfaces (VU as one surface) U/V * #: width = Y width, U/V height = Y height. * cudaEglColorFormatY10V10U10_444SemiPlanar_ER = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_444SemiPlanar_ER # <<<<<<<<<<<<<< * * #: Extended Range Y10, V10U10 in two surfaces (VU as one surface) U/V */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatY10V10U10_444SemiPlanar_ER); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1697, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatY10V10U10_444S_2, __pyx_t_4) < 0) __PYX_ERR(0, 1697, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1701 * #: 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 = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_444SemiPlanar_709_ER # <<<<<<<<<<<<<< * * #: Extended Range Y12, V12U12 in two surfaces (VU as one surface) U/V */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatY10V10U10_444SemiPlanar_709_ER); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1701, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatY10V10U10_444S_3, __pyx_t_4) < 0) __PYX_ERR(0, 1701, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1705 * #: 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 = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatY12V12U12_420SemiPlanar_ER # <<<<<<<<<<<<<< * * #: Extended Range Y12, V12U12 in two surfaces (VU as one surface) U/V */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatY12V12U12_420SemiPlanar_ER); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1705, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatY12V12U12_420S_2, __pyx_t_4) < 0) __PYX_ERR(0, 1705, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1709 * #: 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 = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatY12V12U12_420SemiPlanar_709_ER # <<<<<<<<<<<<<< * * #: Extended Range Y12, V12U12 in two surfaces (VU as one surface) U/V */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatY12V12U12_420SemiPlanar_709_ER); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1709, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatY12V12U12_420S_3, __pyx_t_4) < 0) __PYX_ERR(0, 1709, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1713 * #: Extended Range Y12, V12U12 in two surfaces (VU as one surface) U/V * #: width = Y width, U/V height = Y height. * cudaEglColorFormatY12V12U12_444SemiPlanar_ER = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatY12V12U12_444SemiPlanar_ER # <<<<<<<<<<<<<< * * #: Extended Range Y12, V12U12 in two surfaces (VU as one surface) U/V */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatY12V12U12_444SemiPlanar_ER); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1713, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatY12V12U12_444S_2, __pyx_t_4) < 0) __PYX_ERR(0, 1713, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1717 * #: 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 = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatY12V12U12_444SemiPlanar_709_ER # <<<<<<<<<<<<<< * * class cudaChannelFormatKind(IntEnum): */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(__pyx_e_4cuda_7ccudart_cudaEglColorFormatY12V12U12_444SemiPlanar_709_ER); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1717, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEglColorFormatY12V12U12_444S_3, __pyx_t_4) < 0) __PYX_ERR(0, 1717, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1290 * cudaEglResourceLocationVidmem = ccudart.cudaEglResourceLocationFlags_enum.cudaEglResourceLocationVidmem * * class cudaEglColorFormat(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA EGL Color Format - The different planar and multiplanar */ __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_n_s_cudaEglColorFormat, __pyx_t_2, __pyx_t_3, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1290, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaEglColorFormat, __pyx_t_4) < 0) __PYX_ERR(0, 1290, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":1719 * cudaEglColorFormatY12V12U12_444SemiPlanar_709_ER = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatY12V12U12_444SemiPlanar_709_ER * * class cudaChannelFormatKind(IntEnum): # <<<<<<<<<<<<<< * """ * Channel format kind */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1719, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1719, __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)) __PYX_ERR(0, 1719, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1719, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1719, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_3, __pyx_t_2, __pyx_n_s_cudaChannelFormatKind, __pyx_n_s_cudaChannelFormatKind, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_Channel_format_kind); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1719, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_2 != __pyx_t_5) { if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_5) < 0))) __PYX_ERR(0, 1719, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1725 * * #: Signed channel format * cudaChannelFormatKindSigned = ccudart.cudaChannelFormatKind.cudaChannelFormatKindSigned # <<<<<<<<<<<<<< * * #: Unsigned channel format */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaChannelFormatKind(cudaChannelFormatKindSigned); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1725, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaChannelFormatKindSigned, __pyx_t_5) < 0) __PYX_ERR(0, 1725, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1728 * * #: Unsigned channel format * cudaChannelFormatKindUnsigned = ccudart.cudaChannelFormatKind.cudaChannelFormatKindUnsigned # <<<<<<<<<<<<<< * * #: Float channel format */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaChannelFormatKind(cudaChannelFormatKindUnsigned); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1728, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaChannelFormatKindUnsigned, __pyx_t_5) < 0) __PYX_ERR(0, 1728, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1731 * * #: Float channel format * cudaChannelFormatKindFloat = ccudart.cudaChannelFormatKind.cudaChannelFormatKindFloat # <<<<<<<<<<<<<< * * #: No channel format */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaChannelFormatKind(cudaChannelFormatKindFloat); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1731, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaChannelFormatKindFloat, __pyx_t_5) < 0) __PYX_ERR(0, 1731, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1734 * * #: No channel format * cudaChannelFormatKindNone = ccudart.cudaChannelFormatKind.cudaChannelFormatKindNone # <<<<<<<<<<<<<< * * #: Unsigned 8-bit integers, planar 4:2:0 YUV format */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaChannelFormatKind(cudaChannelFormatKindNone); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1734, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaChannelFormatKindNone, __pyx_t_5) < 0) __PYX_ERR(0, 1734, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1737 * * #: Unsigned 8-bit integers, planar 4:2:0 YUV format * cudaChannelFormatKindNV12 = ccudart.cudaChannelFormatKind.cudaChannelFormatKindNV12 # <<<<<<<<<<<<<< * * #: 1 channel unsigned 8-bit normalized integer */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaChannelFormatKind(cudaChannelFormatKindNV12); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1737, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaChannelFormatKindNV12, __pyx_t_5) < 0) __PYX_ERR(0, 1737, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1740 * * #: 1 channel unsigned 8-bit normalized integer * cudaChannelFormatKindUnsignedNormalized8X1 = ccudart.cudaChannelFormatKind.cudaChannelFormatKindUnsignedNormalized8X1 # <<<<<<<<<<<<<< * * #: 2 channel unsigned 8-bit normalized integer */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaChannelFormatKind(cudaChannelFormatKindUnsignedNormalized8X1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1740, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaChannelFormatKindUnsignedNor, __pyx_t_5) < 0) __PYX_ERR(0, 1740, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1743 * * #: 2 channel unsigned 8-bit normalized integer * cudaChannelFormatKindUnsignedNormalized8X2 = ccudart.cudaChannelFormatKind.cudaChannelFormatKindUnsignedNormalized8X2 # <<<<<<<<<<<<<< * * #: 4 channel unsigned 8-bit normalized integer */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaChannelFormatKind(cudaChannelFormatKindUnsignedNormalized8X2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1743, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaChannelFormatKindUnsignedNor_2, __pyx_t_5) < 0) __PYX_ERR(0, 1743, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1746 * * #: 4 channel unsigned 8-bit normalized integer * cudaChannelFormatKindUnsignedNormalized8X4 = ccudart.cudaChannelFormatKind.cudaChannelFormatKindUnsignedNormalized8X4 # <<<<<<<<<<<<<< * * #: 1 channel unsigned 16-bit normalized integer */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaChannelFormatKind(cudaChannelFormatKindUnsignedNormalized8X4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1746, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaChannelFormatKindUnsignedNor_3, __pyx_t_5) < 0) __PYX_ERR(0, 1746, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1749 * * #: 1 channel unsigned 16-bit normalized integer * cudaChannelFormatKindUnsignedNormalized16X1 = ccudart.cudaChannelFormatKind.cudaChannelFormatKindUnsignedNormalized16X1 # <<<<<<<<<<<<<< * * #: 2 channel unsigned 16-bit normalized integer */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaChannelFormatKind(cudaChannelFormatKindUnsignedNormalized16X1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1749, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaChannelFormatKindUnsignedNor_4, __pyx_t_5) < 0) __PYX_ERR(0, 1749, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1752 * * #: 2 channel unsigned 16-bit normalized integer * cudaChannelFormatKindUnsignedNormalized16X2 = ccudart.cudaChannelFormatKind.cudaChannelFormatKindUnsignedNormalized16X2 # <<<<<<<<<<<<<< * * #: 4 channel unsigned 16-bit normalized integer */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaChannelFormatKind(cudaChannelFormatKindUnsignedNormalized16X2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1752, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaChannelFormatKindUnsignedNor_5, __pyx_t_5) < 0) __PYX_ERR(0, 1752, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1755 * * #: 4 channel unsigned 16-bit normalized integer * cudaChannelFormatKindUnsignedNormalized16X4 = ccudart.cudaChannelFormatKind.cudaChannelFormatKindUnsignedNormalized16X4 # <<<<<<<<<<<<<< * * #: 1 channel signed 8-bit normalized integer */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaChannelFormatKind(cudaChannelFormatKindUnsignedNormalized16X4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1755, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaChannelFormatKindUnsignedNor_6, __pyx_t_5) < 0) __PYX_ERR(0, 1755, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1758 * * #: 1 channel signed 8-bit normalized integer * cudaChannelFormatKindSignedNormalized8X1 = ccudart.cudaChannelFormatKind.cudaChannelFormatKindSignedNormalized8X1 # <<<<<<<<<<<<<< * * #: 2 channel signed 8-bit normalized integer */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaChannelFormatKind(cudaChannelFormatKindSignedNormalized8X1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1758, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaChannelFormatKindSignedNorma, __pyx_t_5) < 0) __PYX_ERR(0, 1758, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1761 * * #: 2 channel signed 8-bit normalized integer * cudaChannelFormatKindSignedNormalized8X2 = ccudart.cudaChannelFormatKind.cudaChannelFormatKindSignedNormalized8X2 # <<<<<<<<<<<<<< * * #: 4 channel signed 8-bit normalized integer */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaChannelFormatKind(cudaChannelFormatKindSignedNormalized8X2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1761, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaChannelFormatKindSignedNorma_2, __pyx_t_5) < 0) __PYX_ERR(0, 1761, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1764 * * #: 4 channel signed 8-bit normalized integer * cudaChannelFormatKindSignedNormalized8X4 = ccudart.cudaChannelFormatKind.cudaChannelFormatKindSignedNormalized8X4 # <<<<<<<<<<<<<< * * #: 1 channel signed 16-bit normalized integer */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaChannelFormatKind(cudaChannelFormatKindSignedNormalized8X4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1764, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaChannelFormatKindSignedNorma_3, __pyx_t_5) < 0) __PYX_ERR(0, 1764, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1767 * * #: 1 channel signed 16-bit normalized integer * cudaChannelFormatKindSignedNormalized16X1 = ccudart.cudaChannelFormatKind.cudaChannelFormatKindSignedNormalized16X1 # <<<<<<<<<<<<<< * * #: 2 channel signed 16-bit normalized integer */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaChannelFormatKind(cudaChannelFormatKindSignedNormalized16X1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1767, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaChannelFormatKindSignedNorma_4, __pyx_t_5) < 0) __PYX_ERR(0, 1767, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1770 * * #: 2 channel signed 16-bit normalized integer * cudaChannelFormatKindSignedNormalized16X2 = ccudart.cudaChannelFormatKind.cudaChannelFormatKindSignedNormalized16X2 # <<<<<<<<<<<<<< * * #: 4 channel signed 16-bit normalized integer */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaChannelFormatKind(cudaChannelFormatKindSignedNormalized16X2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1770, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaChannelFormatKindSignedNorma_5, __pyx_t_5) < 0) __PYX_ERR(0, 1770, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1773 * * #: 4 channel signed 16-bit normalized integer * cudaChannelFormatKindSignedNormalized16X4 = ccudart.cudaChannelFormatKind.cudaChannelFormatKindSignedNormalized16X4 # <<<<<<<<<<<<<< * * #: 4 channel unsigned normalized block-compressed (BC1 compression) */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaChannelFormatKind(cudaChannelFormatKindSignedNormalized16X4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1773, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaChannelFormatKindSignedNorma_6, __pyx_t_5) < 0) __PYX_ERR(0, 1773, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1777 * #: 4 channel unsigned normalized block-compressed (BC1 compression) * #: format * cudaChannelFormatKindUnsignedBlockCompressed1 = ccudart.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed1 # <<<<<<<<<<<<<< * * #: 4 channel unsigned normalized block-compressed (BC1 compression) */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaChannelFormatKind(cudaChannelFormatKindUnsignedBlockCompressed1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1777, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaChannelFormatKindUnsignedBlo, __pyx_t_5) < 0) __PYX_ERR(0, 1777, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1781 * #: 4 channel unsigned normalized block-compressed (BC1 compression) * #: format with sRGB encoding * cudaChannelFormatKindUnsignedBlockCompressed1SRGB = ccudart.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed1SRGB # <<<<<<<<<<<<<< * * #: 4 channel unsigned normalized block-compressed (BC2 compression) */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaChannelFormatKind(cudaChannelFormatKindUnsignedBlockCompressed1SRGB); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1781, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaChannelFormatKindUnsignedBlo_2, __pyx_t_5) < 0) __PYX_ERR(0, 1781, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1785 * #: 4 channel unsigned normalized block-compressed (BC2 compression) * #: format * cudaChannelFormatKindUnsignedBlockCompressed2 = ccudart.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed2 # <<<<<<<<<<<<<< * * #: 4 channel unsigned normalized block-compressed (BC2 compression) */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaChannelFormatKind(cudaChannelFormatKindUnsignedBlockCompressed2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1785, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaChannelFormatKindUnsignedBlo_3, __pyx_t_5) < 0) __PYX_ERR(0, 1785, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1789 * #: 4 channel unsigned normalized block-compressed (BC2 compression) * #: format with sRGB encoding * cudaChannelFormatKindUnsignedBlockCompressed2SRGB = ccudart.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed2SRGB # <<<<<<<<<<<<<< * * #: 4 channel unsigned normalized block-compressed (BC3 compression) */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaChannelFormatKind(cudaChannelFormatKindUnsignedBlockCompressed2SRGB); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1789, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaChannelFormatKindUnsignedBlo_4, __pyx_t_5) < 0) __PYX_ERR(0, 1789, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1793 * #: 4 channel unsigned normalized block-compressed (BC3 compression) * #: format * cudaChannelFormatKindUnsignedBlockCompressed3 = ccudart.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed3 # <<<<<<<<<<<<<< * * #: 4 channel unsigned normalized block-compressed (BC3 compression) */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaChannelFormatKind(cudaChannelFormatKindUnsignedBlockCompressed3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1793, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaChannelFormatKindUnsignedBlo_5, __pyx_t_5) < 0) __PYX_ERR(0, 1793, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1797 * #: 4 channel unsigned normalized block-compressed (BC3 compression) * #: format with sRGB encoding * cudaChannelFormatKindUnsignedBlockCompressed3SRGB = ccudart.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed3SRGB # <<<<<<<<<<<<<< * * #: 1 channel unsigned normalized block-compressed (BC4 compression) */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaChannelFormatKind(cudaChannelFormatKindUnsignedBlockCompressed3SRGB); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1797, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaChannelFormatKindUnsignedBlo_6, __pyx_t_5) < 0) __PYX_ERR(0, 1797, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1801 * #: 1 channel unsigned normalized block-compressed (BC4 compression) * #: format * cudaChannelFormatKindUnsignedBlockCompressed4 = ccudart.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed4 # <<<<<<<<<<<<<< * * #: 1 channel signed normalized block-compressed (BC4 compression) */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaChannelFormatKind(cudaChannelFormatKindUnsignedBlockCompressed4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1801, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaChannelFormatKindUnsignedBlo_7, __pyx_t_5) < 0) __PYX_ERR(0, 1801, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1805 * #: 1 channel signed normalized block-compressed (BC4 compression) * #: format * cudaChannelFormatKindSignedBlockCompressed4 = ccudart.cudaChannelFormatKind.cudaChannelFormatKindSignedBlockCompressed4 # <<<<<<<<<<<<<< * * #: 2 channel unsigned normalized block-compressed (BC5 compression) */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaChannelFormatKind(cudaChannelFormatKindSignedBlockCompressed4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1805, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaChannelFormatKindSignedBlock, __pyx_t_5) < 0) __PYX_ERR(0, 1805, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1809 * #: 2 channel unsigned normalized block-compressed (BC5 compression) * #: format * cudaChannelFormatKindUnsignedBlockCompressed5 = ccudart.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed5 # <<<<<<<<<<<<<< * * #: 2 channel signed normalized block-compressed (BC5 compression) */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaChannelFormatKind(cudaChannelFormatKindUnsignedBlockCompressed5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1809, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaChannelFormatKindUnsignedBlo_8, __pyx_t_5) < 0) __PYX_ERR(0, 1809, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1813 * #: 2 channel signed normalized block-compressed (BC5 compression) * #: format * cudaChannelFormatKindSignedBlockCompressed5 = ccudart.cudaChannelFormatKind.cudaChannelFormatKindSignedBlockCompressed5 # <<<<<<<<<<<<<< * * #: 3 channel unsigned half-float block-compressed (BC6H compression) */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaChannelFormatKind(cudaChannelFormatKindSignedBlockCompressed5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1813, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaChannelFormatKindSignedBlock_2, __pyx_t_5) < 0) __PYX_ERR(0, 1813, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1817 * #: 3 channel unsigned half-float block-compressed (BC6H compression) * #: format * cudaChannelFormatKindUnsignedBlockCompressed6H = ccudart.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed6H # <<<<<<<<<<<<<< * * #: 3 channel signed half-float block-compressed (BC6H compression) */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaChannelFormatKind(cudaChannelFormatKindUnsignedBlockCompressed6H); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1817, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaChannelFormatKindUnsignedBlo_9, __pyx_t_5) < 0) __PYX_ERR(0, 1817, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1821 * #: 3 channel signed half-float block-compressed (BC6H compression) * #: format * cudaChannelFormatKindSignedBlockCompressed6H = ccudart.cudaChannelFormatKind.cudaChannelFormatKindSignedBlockCompressed6H # <<<<<<<<<<<<<< * * #: 4 channel unsigned normalized block-compressed (BC7 compression) */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaChannelFormatKind(cudaChannelFormatKindSignedBlockCompressed6H); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1821, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaChannelFormatKindSignedBlock_3, __pyx_t_5) < 0) __PYX_ERR(0, 1821, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1825 * #: 4 channel unsigned normalized block-compressed (BC7 compression) * #: format * cudaChannelFormatKindUnsignedBlockCompressed7 = ccudart.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed7 # <<<<<<<<<<<<<< * * #: 4 channel unsigned normalized block-compressed (BC7 compression) */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaChannelFormatKind(cudaChannelFormatKindUnsignedBlockCompressed7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1825, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaChannelFormatKindUnsignedBlo_10, __pyx_t_5) < 0) __PYX_ERR(0, 1825, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1829 * #: 4 channel unsigned normalized block-compressed (BC7 compression) * #: format with sRGB encoding * cudaChannelFormatKindUnsignedBlockCompressed7SRGB = ccudart.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed7SRGB # <<<<<<<<<<<<<< * * class cudaMemoryType(IntEnum): */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaChannelFormatKind(cudaChannelFormatKindUnsignedBlockCompressed7SRGB); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1829, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaChannelFormatKindUnsignedBlo_11, __pyx_t_5) < 0) __PYX_ERR(0, 1829, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1719 * cudaEglColorFormatY12V12U12_444SemiPlanar_709_ER = ccudart.cudaEglColorFormat_enum.cudaEglColorFormatY12V12U12_444SemiPlanar_709_ER * * class cudaChannelFormatKind(IntEnum): # <<<<<<<<<<<<<< * """ * Channel format kind */ __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_3, __pyx_n_s_cudaChannelFormatKind, __pyx_t_2, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1719, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaChannelFormatKind, __pyx_t_5) < 0) __PYX_ERR(0, 1719, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":1831 * cudaChannelFormatKindUnsignedBlockCompressed7SRGB = ccudart.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed7SRGB * * class cudaMemoryType(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA memory types */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1831, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1831, __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)) __PYX_ERR(0, 1831, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1831, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1831, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_2, __pyx_n_s_cudaMemoryType, __pyx_n_s_cudaMemoryType, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_CUDA_memory_types); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1831, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_2 != __pyx_t_3) { if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_3) < 0))) __PYX_ERR(0, 1831, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1837 * * #: Unregistered memory * cudaMemoryTypeUnregistered = ccudart.cudaMemoryType.cudaMemoryTypeUnregistered # <<<<<<<<<<<<<< * * #: Host memory */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaMemoryType(cudaMemoryTypeUnregistered); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1837, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaMemoryTypeUnregistered, __pyx_t_3) < 0) __PYX_ERR(0, 1837, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1840 * * #: Host memory * cudaMemoryTypeHost = ccudart.cudaMemoryType.cudaMemoryTypeHost # <<<<<<<<<<<<<< * * #: Device memory */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaMemoryType(cudaMemoryTypeHost); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1840, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaMemoryTypeHost, __pyx_t_3) < 0) __PYX_ERR(0, 1840, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1843 * * #: Device memory * cudaMemoryTypeDevice = ccudart.cudaMemoryType.cudaMemoryTypeDevice # <<<<<<<<<<<<<< * * #: Managed memory */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaMemoryType(cudaMemoryTypeDevice); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1843, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaMemoryTypeDevice, __pyx_t_3) < 0) __PYX_ERR(0, 1843, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1846 * * #: Managed memory * cudaMemoryTypeManaged = ccudart.cudaMemoryType.cudaMemoryTypeManaged # <<<<<<<<<<<<<< * * class cudaMemcpyKind(IntEnum): */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaMemoryType(cudaMemoryTypeManaged); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1846, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaMemoryTypeManaged, __pyx_t_3) < 0) __PYX_ERR(0, 1846, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1831 * cudaChannelFormatKindUnsignedBlockCompressed7SRGB = ccudart.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed7SRGB * * class cudaMemoryType(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA memory types */ __pyx_t_3 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_n_s_cudaMemoryType, __pyx_t_2, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1831, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemoryType, __pyx_t_3) < 0) __PYX_ERR(0, 1831, __pyx_L1_error) __Pyx_DECREF(__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; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":1848 * cudaMemoryTypeManaged = ccudart.cudaMemoryType.cudaMemoryTypeManaged * * class cudaMemcpyKind(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA memory copy types */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1848, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1848, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 1848, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1848, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1848, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_n_s_cudaMemcpyKind, __pyx_n_s_cudaMemcpyKind, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_CUDA_memory_copy_types); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1848, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_2 != __pyx_t_4) { if (unlikely((PyDict_SetItemString(__pyx_t_3, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 1848, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1854 * * #: Host -> Host * cudaMemcpyHostToHost = ccudart.cudaMemcpyKind.cudaMemcpyHostToHost # <<<<<<<<<<<<<< * * #: Host -> Device */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaMemcpyKind(cudaMemcpyHostToHost); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1854, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaMemcpyHostToHost, __pyx_t_4) < 0) __PYX_ERR(0, 1854, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1857 * * #: Host -> Device * cudaMemcpyHostToDevice = ccudart.cudaMemcpyKind.cudaMemcpyHostToDevice # <<<<<<<<<<<<<< * * #: Device -> Host */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaMemcpyKind(cudaMemcpyHostToDevice); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1857, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaMemcpyHostToDevice, __pyx_t_4) < 0) __PYX_ERR(0, 1857, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1860 * * #: Device -> Host * cudaMemcpyDeviceToHost = ccudart.cudaMemcpyKind.cudaMemcpyDeviceToHost # <<<<<<<<<<<<<< * * #: Device -> Device */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaMemcpyKind(cudaMemcpyDeviceToHost); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1860, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaMemcpyDeviceToHost, __pyx_t_4) < 0) __PYX_ERR(0, 1860, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1863 * * #: Device -> Device * cudaMemcpyDeviceToDevice = ccudart.cudaMemcpyKind.cudaMemcpyDeviceToDevice # <<<<<<<<<<<<<< * * #: Direction of the transfer is inferred from the pointer values. */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaMemcpyKind(cudaMemcpyDeviceToDevice); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaMemcpyDeviceToDevice, __pyx_t_4) < 0) __PYX_ERR(0, 1863, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1867 * #: Direction of the transfer is inferred from the pointer values. * #: Requires unified virtual addressing * cudaMemcpyDefault = ccudart.cudaMemcpyKind.cudaMemcpyDefault # <<<<<<<<<<<<<< * * class cudaAccessProperty(IntEnum): */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaMemcpyKind(cudaMemcpyDefault); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1867, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaMemcpyDefault, __pyx_t_4) < 0) __PYX_ERR(0, 1867, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1848 * cudaMemoryTypeManaged = ccudart.cudaMemoryType.cudaMemoryTypeManaged * * class cudaMemcpyKind(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA memory copy types */ __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_n_s_cudaMemcpyKind, __pyx_t_2, __pyx_t_3, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1848, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemcpyKind, __pyx_t_4) < 0) __PYX_ERR(0, 1848, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":1869 * cudaMemcpyDefault = ccudart.cudaMemcpyKind.cudaMemcpyDefault * * class cudaAccessProperty(IntEnum): # <<<<<<<<<<<<<< * """ * Specifies performance hint with :py:obj:`~.cudaAccessPolicyWindow` */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1869, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1869, __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)) __PYX_ERR(0, 1869, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1869, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1869, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_3, __pyx_t_2, __pyx_n_s_cudaAccessProperty, __pyx_n_s_cudaAccessProperty, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_Specifies_performance_hint_with); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1869, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_2 != __pyx_t_5) { if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_5) < 0))) __PYX_ERR(0, 1869, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1876 * * #: Normal cache persistence. * cudaAccessPropertyNormal = ccudart.cudaAccessProperty.cudaAccessPropertyNormal # <<<<<<<<<<<<<< * * #: Streaming access is less likely to persit from cache. */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaAccessProperty(cudaAccessPropertyNormal); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1876, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaAccessPropertyNormal, __pyx_t_5) < 0) __PYX_ERR(0, 1876, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1879 * * #: Streaming access is less likely to persit from cache. * cudaAccessPropertyStreaming = ccudart.cudaAccessProperty.cudaAccessPropertyStreaming # <<<<<<<<<<<<<< * * #: Persisting access is more likely to persist in cache. */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaAccessProperty(cudaAccessPropertyStreaming); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1879, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaAccessPropertyStreaming, __pyx_t_5) < 0) __PYX_ERR(0, 1879, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1882 * * #: Persisting access is more likely to persist in cache. * cudaAccessPropertyPersisting = ccudart.cudaAccessProperty.cudaAccessPropertyPersisting # <<<<<<<<<<<<<< * * class cudaStreamCaptureStatus(IntEnum): */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaAccessProperty(cudaAccessPropertyPersisting); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1882, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaAccessPropertyPersisting, __pyx_t_5) < 0) __PYX_ERR(0, 1882, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1869 * cudaMemcpyDefault = ccudart.cudaMemcpyKind.cudaMemcpyDefault * * class cudaAccessProperty(IntEnum): # <<<<<<<<<<<<<< * """ * Specifies performance hint with :py:obj:`~.cudaAccessPolicyWindow` */ __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_3, __pyx_n_s_cudaAccessProperty, __pyx_t_2, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1869, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaAccessProperty, __pyx_t_5) < 0) __PYX_ERR(0, 1869, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":1884 * cudaAccessPropertyPersisting = ccudart.cudaAccessProperty.cudaAccessPropertyPersisting * * class cudaStreamCaptureStatus(IntEnum): # <<<<<<<<<<<<<< * """ * Possible stream capture statuses returned by */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1884, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1884, __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)) __PYX_ERR(0, 1884, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1884, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1884, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_2, __pyx_n_s_cudaStreamCaptureStatus, __pyx_n_s_cudaStreamCaptureStatus, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_Possible_stream_capture_statuse); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1884, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_2 != __pyx_t_3) { if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_3) < 0))) __PYX_ERR(0, 1884, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1891 * * #: Stream is not capturing * cudaStreamCaptureStatusNone = ccudart.cudaStreamCaptureStatus.cudaStreamCaptureStatusNone # <<<<<<<<<<<<<< * * #: Stream is actively capturing */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaStreamCaptureStatus(cudaStreamCaptureStatusNone); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1891, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaStreamCaptureStatusNone, __pyx_t_3) < 0) __PYX_ERR(0, 1891, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1894 * * #: Stream is actively capturing * cudaStreamCaptureStatusActive = ccudart.cudaStreamCaptureStatus.cudaStreamCaptureStatusActive # <<<<<<<<<<<<<< * * #: Stream is part of a capture sequence that has been invalidated, but */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaStreamCaptureStatus(cudaStreamCaptureStatusActive); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1894, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaStreamCaptureStatusActive, __pyx_t_3) < 0) __PYX_ERR(0, 1894, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1898 * #: Stream is part of a capture sequence that has been invalidated, but * #: not terminated * cudaStreamCaptureStatusInvalidated = ccudart.cudaStreamCaptureStatus.cudaStreamCaptureStatusInvalidated # <<<<<<<<<<<<<< * * class cudaStreamCaptureMode(IntEnum): */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaStreamCaptureStatus(cudaStreamCaptureStatusInvalidated); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1898, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaStreamCaptureStatusInvalidat, __pyx_t_3) < 0) __PYX_ERR(0, 1898, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1884 * cudaAccessPropertyPersisting = ccudart.cudaAccessProperty.cudaAccessPropertyPersisting * * class cudaStreamCaptureStatus(IntEnum): # <<<<<<<<<<<<<< * """ * Possible stream capture statuses returned by */ __pyx_t_3 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_n_s_cudaStreamCaptureStatus, __pyx_t_2, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1884, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaStreamCaptureStatus, __pyx_t_3) < 0) __PYX_ERR(0, 1884, __pyx_L1_error) __Pyx_DECREF(__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; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":1900 * cudaStreamCaptureStatusInvalidated = ccudart.cudaStreamCaptureStatus.cudaStreamCaptureStatusInvalidated * * class cudaStreamCaptureMode(IntEnum): # <<<<<<<<<<<<<< * """ * Possible modes for stream capture thread interactions. For more */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1900, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1900, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 1900, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1900, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1900, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_n_s_cudaStreamCaptureMode, __pyx_n_s_cudaStreamCaptureMode, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_Possible_modes_for_stream_captu); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1900, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_2 != __pyx_t_4) { if (unlikely((PyDict_SetItemString(__pyx_t_3, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 1900, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1906 * :py:obj:`~.cudaThreadExchangeStreamCaptureMode` * """ * cudaStreamCaptureModeGlobal = ccudart.cudaStreamCaptureMode.cudaStreamCaptureModeGlobal # <<<<<<<<<<<<<< * cudaStreamCaptureModeThreadLocal = ccudart.cudaStreamCaptureMode.cudaStreamCaptureModeThreadLocal * cudaStreamCaptureModeRelaxed = ccudart.cudaStreamCaptureMode.cudaStreamCaptureModeRelaxed */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaStreamCaptureMode(cudaStreamCaptureModeGlobal); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1906, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaStreamCaptureModeGlobal, __pyx_t_4) < 0) __PYX_ERR(0, 1906, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1907 * """ * cudaStreamCaptureModeGlobal = ccudart.cudaStreamCaptureMode.cudaStreamCaptureModeGlobal * cudaStreamCaptureModeThreadLocal = ccudart.cudaStreamCaptureMode.cudaStreamCaptureModeThreadLocal # <<<<<<<<<<<<<< * cudaStreamCaptureModeRelaxed = ccudart.cudaStreamCaptureMode.cudaStreamCaptureModeRelaxed * */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaStreamCaptureMode(cudaStreamCaptureModeThreadLocal); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1907, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaStreamCaptureModeThreadLocal, __pyx_t_4) < 0) __PYX_ERR(0, 1907, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1908 * cudaStreamCaptureModeGlobal = ccudart.cudaStreamCaptureMode.cudaStreamCaptureModeGlobal * cudaStreamCaptureModeThreadLocal = ccudart.cudaStreamCaptureMode.cudaStreamCaptureModeThreadLocal * cudaStreamCaptureModeRelaxed = ccudart.cudaStreamCaptureMode.cudaStreamCaptureModeRelaxed # <<<<<<<<<<<<<< * * class cudaSynchronizationPolicy(IntEnum): */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaStreamCaptureMode(cudaStreamCaptureModeRelaxed); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1908, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaStreamCaptureModeRelaxed, __pyx_t_4) < 0) __PYX_ERR(0, 1908, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1900 * cudaStreamCaptureStatusInvalidated = ccudart.cudaStreamCaptureStatus.cudaStreamCaptureStatusInvalidated * * class cudaStreamCaptureMode(IntEnum): # <<<<<<<<<<<<<< * """ * Possible modes for stream capture thread interactions. For more */ __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_n_s_cudaStreamCaptureMode, __pyx_t_2, __pyx_t_3, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1900, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaStreamCaptureMode, __pyx_t_4) < 0) __PYX_ERR(0, 1900, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":1910 * cudaStreamCaptureModeRelaxed = ccudart.cudaStreamCaptureMode.cudaStreamCaptureModeRelaxed * * class cudaSynchronizationPolicy(IntEnum): # <<<<<<<<<<<<<< * """ * */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1910, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1910, __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)) __PYX_ERR(0, 1910, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1910, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1910, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_3, __pyx_t_2, __pyx_n_s_cudaSynchronizationPolicy, __pyx_n_s_cudaSynchronizationPolicy, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s__657); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1910, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_2 != __pyx_t_5) { if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_5) < 0))) __PYX_ERR(0, 1910, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1914 * * """ * cudaSyncPolicyAuto = ccudart.cudaSynchronizationPolicy.cudaSyncPolicyAuto # <<<<<<<<<<<<<< * cudaSyncPolicySpin = ccudart.cudaSynchronizationPolicy.cudaSyncPolicySpin * cudaSyncPolicyYield = ccudart.cudaSynchronizationPolicy.cudaSyncPolicyYield */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaSynchronizationPolicy(cudaSyncPolicyAuto); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1914, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaSyncPolicyAuto, __pyx_t_5) < 0) __PYX_ERR(0, 1914, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1915 * """ * cudaSyncPolicyAuto = ccudart.cudaSynchronizationPolicy.cudaSyncPolicyAuto * cudaSyncPolicySpin = ccudart.cudaSynchronizationPolicy.cudaSyncPolicySpin # <<<<<<<<<<<<<< * cudaSyncPolicyYield = ccudart.cudaSynchronizationPolicy.cudaSyncPolicyYield * cudaSyncPolicyBlockingSync = ccudart.cudaSynchronizationPolicy.cudaSyncPolicyBlockingSync */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaSynchronizationPolicy(cudaSyncPolicySpin); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1915, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaSyncPolicySpin, __pyx_t_5) < 0) __PYX_ERR(0, 1915, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1916 * cudaSyncPolicyAuto = ccudart.cudaSynchronizationPolicy.cudaSyncPolicyAuto * cudaSyncPolicySpin = ccudart.cudaSynchronizationPolicy.cudaSyncPolicySpin * cudaSyncPolicyYield = ccudart.cudaSynchronizationPolicy.cudaSyncPolicyYield # <<<<<<<<<<<<<< * cudaSyncPolicyBlockingSync = ccudart.cudaSynchronizationPolicy.cudaSyncPolicyBlockingSync * */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaSynchronizationPolicy(cudaSyncPolicyYield); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1916, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaSyncPolicyYield, __pyx_t_5) < 0) __PYX_ERR(0, 1916, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1917 * cudaSyncPolicySpin = ccudart.cudaSynchronizationPolicy.cudaSyncPolicySpin * cudaSyncPolicyYield = ccudart.cudaSynchronizationPolicy.cudaSyncPolicyYield * cudaSyncPolicyBlockingSync = ccudart.cudaSynchronizationPolicy.cudaSyncPolicyBlockingSync # <<<<<<<<<<<<<< * * class cudaClusterSchedulingPolicy(IntEnum): */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaSynchronizationPolicy(cudaSyncPolicyBlockingSync); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1917, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaSyncPolicyBlockingSync, __pyx_t_5) < 0) __PYX_ERR(0, 1917, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1910 * cudaStreamCaptureModeRelaxed = ccudart.cudaStreamCaptureMode.cudaStreamCaptureModeRelaxed * * class cudaSynchronizationPolicy(IntEnum): # <<<<<<<<<<<<<< * """ * */ __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_3, __pyx_n_s_cudaSynchronizationPolicy, __pyx_t_2, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1910, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaSynchronizationPolicy, __pyx_t_5) < 0) __PYX_ERR(0, 1910, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":1919 * cudaSyncPolicyBlockingSync = ccudart.cudaSynchronizationPolicy.cudaSyncPolicyBlockingSync * * class cudaClusterSchedulingPolicy(IntEnum): # <<<<<<<<<<<<<< * """ * Cluster scheduling policies. These may be passed to */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1919, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1919, __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)) __PYX_ERR(0, 1919, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1919, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1919, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_2, __pyx_n_s_cudaClusterSchedulingPolicy, __pyx_n_s_cudaClusterSchedulingPolicy, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_Cluster_scheduling_policies_The); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1919, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_2 != __pyx_t_3) { if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_3) < 0))) __PYX_ERR(0, 1919, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1926 * * #: the default policy * cudaClusterSchedulingPolicyDefault = ccudart.cudaClusterSchedulingPolicy.cudaClusterSchedulingPolicyDefault # <<<<<<<<<<<<<< * * #: spread the blocks within a cluster to the SMs */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaClusterSchedulingPolicy(cudaClusterSchedulingPolicyDefault); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1926, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaClusterSchedulingPolicyDefau, __pyx_t_3) < 0) __PYX_ERR(0, 1926, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1929 * * #: spread the blocks within a cluster to the SMs * cudaClusterSchedulingPolicySpread = ccudart.cudaClusterSchedulingPolicy.cudaClusterSchedulingPolicySpread # <<<<<<<<<<<<<< * * #: allow the hardware to load-balance the blocks in a cluster to the */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaClusterSchedulingPolicy(cudaClusterSchedulingPolicySpread); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1929, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaClusterSchedulingPolicySprea, __pyx_t_3) < 0) __PYX_ERR(0, 1929, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1933 * #: allow the hardware to load-balance the blocks in a cluster to the * #: SMs * cudaClusterSchedulingPolicyLoadBalancing = ccudart.cudaClusterSchedulingPolicy.cudaClusterSchedulingPolicyLoadBalancing # <<<<<<<<<<<<<< * * class cudaStreamUpdateCaptureDependenciesFlags(IntEnum): */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaClusterSchedulingPolicy(cudaClusterSchedulingPolicyLoadBalancing); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1933, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaClusterSchedulingPolicyLoadB, __pyx_t_3) < 0) __PYX_ERR(0, 1933, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1919 * cudaSyncPolicyBlockingSync = ccudart.cudaSynchronizationPolicy.cudaSyncPolicyBlockingSync * * class cudaClusterSchedulingPolicy(IntEnum): # <<<<<<<<<<<<<< * """ * Cluster scheduling policies. These may be passed to */ __pyx_t_3 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_n_s_cudaClusterSchedulingPolicy, __pyx_t_2, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1919, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaClusterSchedulingPolicy, __pyx_t_3) < 0) __PYX_ERR(0, 1919, __pyx_L1_error) __Pyx_DECREF(__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; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":1935 * cudaClusterSchedulingPolicyLoadBalancing = ccudart.cudaClusterSchedulingPolicy.cudaClusterSchedulingPolicyLoadBalancing * * class cudaStreamUpdateCaptureDependenciesFlags(IntEnum): # <<<<<<<<<<<<<< * """ * Flags for :py:obj:`~.cudaStreamUpdateCaptureDependencies` */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1935, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1935, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 1935, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1935, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1935, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_n_s_cudaStreamUpdateCaptureDependenc_3, __pyx_n_s_cudaStreamUpdateCaptureDependenc_3, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_Flags_for_py_obj_cudaStreamUpda); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1935, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_2 != __pyx_t_4) { if (unlikely((PyDict_SetItemString(__pyx_t_3, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 1935, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1941 * * #: Add new nodes to the dependency set * cudaStreamAddCaptureDependencies = ccudart.cudaStreamUpdateCaptureDependenciesFlags.cudaStreamAddCaptureDependencies # <<<<<<<<<<<<<< * * #: Replace the dependency set with the new nodes */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaStreamUpdateCaptureDependenciesFlags(cudaStreamAddCaptureDependencies); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1941, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaStreamAddCaptureDependencies, __pyx_t_4) < 0) __PYX_ERR(0, 1941, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1944 * * #: Replace the dependency set with the new nodes * cudaStreamSetCaptureDependencies = ccudart.cudaStreamUpdateCaptureDependenciesFlags.cudaStreamSetCaptureDependencies # <<<<<<<<<<<<<< * * class cudaUserObjectFlags(IntEnum): */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaStreamUpdateCaptureDependenciesFlags(cudaStreamSetCaptureDependencies); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1944, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaStreamSetCaptureDependencies, __pyx_t_4) < 0) __PYX_ERR(0, 1944, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1935 * cudaClusterSchedulingPolicyLoadBalancing = ccudart.cudaClusterSchedulingPolicy.cudaClusterSchedulingPolicyLoadBalancing * * class cudaStreamUpdateCaptureDependenciesFlags(IntEnum): # <<<<<<<<<<<<<< * """ * Flags for :py:obj:`~.cudaStreamUpdateCaptureDependencies` */ __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_n_s_cudaStreamUpdateCaptureDependenc_3, __pyx_t_2, __pyx_t_3, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1935, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaStreamUpdateCaptureDependenc_3, __pyx_t_4) < 0) __PYX_ERR(0, 1935, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":1946 * cudaStreamSetCaptureDependencies = ccudart.cudaStreamUpdateCaptureDependenciesFlags.cudaStreamSetCaptureDependencies * * class cudaUserObjectFlags(IntEnum): # <<<<<<<<<<<<<< * """ * Flags for user objects for graphs */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1946, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1946, __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)) __PYX_ERR(0, 1946, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1946, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1946, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_3, __pyx_t_2, __pyx_n_s_cudaUserObjectFlags, __pyx_n_s_cudaUserObjectFlags, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_Flags_for_user_objects_for_grap); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1946, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_2 != __pyx_t_5) { if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_5) < 0))) __PYX_ERR(0, 1946, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1953 * #: Indicates the destructor execution is not synchronized by any CUDA * #: handle. * cudaUserObjectNoDestructorSync = ccudart.cudaUserObjectFlags.cudaUserObjectNoDestructorSync # <<<<<<<<<<<<<< * * class cudaUserObjectRetainFlags(IntEnum): */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaUserObjectFlags(cudaUserObjectNoDestructorSync); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1953, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaUserObjectNoDestructorSync, __pyx_t_5) < 0) __PYX_ERR(0, 1953, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1946 * cudaStreamSetCaptureDependencies = ccudart.cudaStreamUpdateCaptureDependenciesFlags.cudaStreamSetCaptureDependencies * * class cudaUserObjectFlags(IntEnum): # <<<<<<<<<<<<<< * """ * Flags for user objects for graphs */ __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_3, __pyx_n_s_cudaUserObjectFlags, __pyx_t_2, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1946, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaUserObjectFlags, __pyx_t_5) < 0) __PYX_ERR(0, 1946, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":1955 * cudaUserObjectNoDestructorSync = ccudart.cudaUserObjectFlags.cudaUserObjectNoDestructorSync * * class cudaUserObjectRetainFlags(IntEnum): # <<<<<<<<<<<<<< * """ * Flags for retaining user object references for graphs */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1955, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1955, __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)) __PYX_ERR(0, 1955, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1955, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1955, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_2, __pyx_n_s_cudaUserObjectRetainFlags, __pyx_n_s_cudaUserObjectRetainFlags, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_Flags_for_retaining_user_object); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1955, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_2 != __pyx_t_3) { if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_3) < 0))) __PYX_ERR(0, 1955, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1962 * #: Transfer references from the caller rather than creating new * #: references. * cudaGraphUserObjectMove = ccudart.cudaUserObjectRetainFlags.cudaGraphUserObjectMove # <<<<<<<<<<<<<< * * class cudaGraphicsRegisterFlags(IntEnum): */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaUserObjectRetainFlags(cudaGraphUserObjectMove); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1962, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaGraphUserObjectMove, __pyx_t_3) < 0) __PYX_ERR(0, 1962, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1955 * cudaUserObjectNoDestructorSync = ccudart.cudaUserObjectFlags.cudaUserObjectNoDestructorSync * * class cudaUserObjectRetainFlags(IntEnum): # <<<<<<<<<<<<<< * """ * Flags for retaining user object references for graphs */ __pyx_t_3 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_n_s_cudaUserObjectRetainFlags, __pyx_t_2, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1955, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaUserObjectRetainFlags, __pyx_t_3) < 0) __PYX_ERR(0, 1955, __pyx_L1_error) __Pyx_DECREF(__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; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":1964 * cudaGraphUserObjectMove = ccudart.cudaUserObjectRetainFlags.cudaGraphUserObjectMove * * class cudaGraphicsRegisterFlags(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA graphics interop register flags */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1964, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1964, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 1964, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1964, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1964, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_n_s_cudaGraphicsRegisterFlags, __pyx_n_s_cudaGraphicsRegisterFlags, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_CUDA_graphics_interop_register); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1964, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_2 != __pyx_t_4) { if (unlikely((PyDict_SetItemString(__pyx_t_3, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 1964, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1970 * * #: Default * cudaGraphicsRegisterFlagsNone = ccudart.cudaGraphicsRegisterFlags.cudaGraphicsRegisterFlagsNone # <<<<<<<<<<<<<< * * #: CUDA will not write to this resource */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaGraphicsRegisterFlags(cudaGraphicsRegisterFlagsNone); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1970, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaGraphicsRegisterFlagsNone, __pyx_t_4) < 0) __PYX_ERR(0, 1970, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1973 * * #: CUDA will not write to this resource * cudaGraphicsRegisterFlagsReadOnly = ccudart.cudaGraphicsRegisterFlags.cudaGraphicsRegisterFlagsReadOnly # <<<<<<<<<<<<<< * * #: CUDA will only write to and will not read from this resource */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaGraphicsRegisterFlags(cudaGraphicsRegisterFlagsReadOnly); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1973, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaGraphicsRegisterFlagsReadOnl, __pyx_t_4) < 0) __PYX_ERR(0, 1973, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1976 * * #: CUDA will only write to and will not read from this resource * cudaGraphicsRegisterFlagsWriteDiscard = ccudart.cudaGraphicsRegisterFlags.cudaGraphicsRegisterFlagsWriteDiscard # <<<<<<<<<<<<<< * * #: CUDA will bind this resource to a surface reference */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaGraphicsRegisterFlags(cudaGraphicsRegisterFlagsWriteDiscard); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1976, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaGraphicsRegisterFlagsWriteDi, __pyx_t_4) < 0) __PYX_ERR(0, 1976, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1979 * * #: CUDA will bind this resource to a surface reference * cudaGraphicsRegisterFlagsSurfaceLoadStore = ccudart.cudaGraphicsRegisterFlags.cudaGraphicsRegisterFlagsSurfaceLoadStore # <<<<<<<<<<<<<< * * #: CUDA will perform texture gather operations on this resource */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaGraphicsRegisterFlags(cudaGraphicsRegisterFlagsSurfaceLoadStore); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1979, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaGraphicsRegisterFlagsSurface, __pyx_t_4) < 0) __PYX_ERR(0, 1979, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1982 * * #: CUDA will perform texture gather operations on this resource * cudaGraphicsRegisterFlagsTextureGather = ccudart.cudaGraphicsRegisterFlags.cudaGraphicsRegisterFlagsTextureGather # <<<<<<<<<<<<<< * * class cudaGraphicsMapFlags(IntEnum): */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaGraphicsRegisterFlags(cudaGraphicsRegisterFlagsTextureGather); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1982, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaGraphicsRegisterFlagsTexture, __pyx_t_4) < 0) __PYX_ERR(0, 1982, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1964 * cudaGraphUserObjectMove = ccudart.cudaUserObjectRetainFlags.cudaGraphUserObjectMove * * class cudaGraphicsRegisterFlags(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA graphics interop register flags */ __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_n_s_cudaGraphicsRegisterFlags, __pyx_t_2, __pyx_t_3, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1964, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphicsRegisterFlags, __pyx_t_4) < 0) __PYX_ERR(0, 1964, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":1984 * cudaGraphicsRegisterFlagsTextureGather = ccudart.cudaGraphicsRegisterFlags.cudaGraphicsRegisterFlagsTextureGather * * class cudaGraphicsMapFlags(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA graphics interop map flags */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1984, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1984, __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)) __PYX_ERR(0, 1984, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1984, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1984, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_3, __pyx_t_2, __pyx_n_s_cudaGraphicsMapFlags, __pyx_n_s_cudaGraphicsMapFlags, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_CUDA_graphics_interop_map_flags); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1984, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_2 != __pyx_t_5) { if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_5) < 0))) __PYX_ERR(0, 1984, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1990 * * #: Default; Assume resource can be read/written * cudaGraphicsMapFlagsNone = ccudart.cudaGraphicsMapFlags.cudaGraphicsMapFlagsNone # <<<<<<<<<<<<<< * * #: CUDA will not write to this resource */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaGraphicsMapFlags(cudaGraphicsMapFlagsNone); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1990, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaGraphicsMapFlagsNone, __pyx_t_5) < 0) __PYX_ERR(0, 1990, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1993 * * #: CUDA will not write to this resource * cudaGraphicsMapFlagsReadOnly = ccudart.cudaGraphicsMapFlags.cudaGraphicsMapFlagsReadOnly # <<<<<<<<<<<<<< * * #: CUDA will only write to and will not read from this resource */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaGraphicsMapFlags(cudaGraphicsMapFlagsReadOnly); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1993, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaGraphicsMapFlagsReadOnly, __pyx_t_5) < 0) __PYX_ERR(0, 1993, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1996 * * #: CUDA will only write to and will not read from this resource * cudaGraphicsMapFlagsWriteDiscard = ccudart.cudaGraphicsMapFlags.cudaGraphicsMapFlagsWriteDiscard # <<<<<<<<<<<<<< * * class cudaGraphicsCubeFace(IntEnum): */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaGraphicsMapFlags(cudaGraphicsMapFlagsWriteDiscard); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1996, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaGraphicsMapFlagsWriteDiscard, __pyx_t_5) < 0) __PYX_ERR(0, 1996, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":1984 * cudaGraphicsRegisterFlagsTextureGather = ccudart.cudaGraphicsRegisterFlags.cudaGraphicsRegisterFlagsTextureGather * * class cudaGraphicsMapFlags(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA graphics interop map flags */ __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_3, __pyx_n_s_cudaGraphicsMapFlags, __pyx_t_2, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1984, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphicsMapFlags, __pyx_t_5) < 0) __PYX_ERR(0, 1984, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":1998 * cudaGraphicsMapFlagsWriteDiscard = ccudart.cudaGraphicsMapFlags.cudaGraphicsMapFlagsWriteDiscard * * class cudaGraphicsCubeFace(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA graphics interop array indices for cube maps */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1998, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1998, __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)) __PYX_ERR(0, 1998, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1998, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1998, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_2, __pyx_n_s_cudaGraphicsCubeFace, __pyx_n_s_cudaGraphicsCubeFace, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_CUDA_graphics_interop_array_ind); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1998, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_2 != __pyx_t_3) { if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_3) < 0))) __PYX_ERR(0, 1998, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2004 * * #: Positive X face of cubemap * cudaGraphicsCubeFacePositiveX = ccudart.cudaGraphicsCubeFace.cudaGraphicsCubeFacePositiveX # <<<<<<<<<<<<<< * * #: Negative X face of cubemap */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaGraphicsCubeFace(cudaGraphicsCubeFacePositiveX); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2004, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaGraphicsCubeFacePositiveX, __pyx_t_3) < 0) __PYX_ERR(0, 2004, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2007 * * #: Negative X face of cubemap * cudaGraphicsCubeFaceNegativeX = ccudart.cudaGraphicsCubeFace.cudaGraphicsCubeFaceNegativeX # <<<<<<<<<<<<<< * * #: Positive Y face of cubemap */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaGraphicsCubeFace(cudaGraphicsCubeFaceNegativeX); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2007, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaGraphicsCubeFaceNegativeX, __pyx_t_3) < 0) __PYX_ERR(0, 2007, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2010 * * #: Positive Y face of cubemap * cudaGraphicsCubeFacePositiveY = ccudart.cudaGraphicsCubeFace.cudaGraphicsCubeFacePositiveY # <<<<<<<<<<<<<< * * #: Negative Y face of cubemap */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaGraphicsCubeFace(cudaGraphicsCubeFacePositiveY); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2010, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaGraphicsCubeFacePositiveY, __pyx_t_3) < 0) __PYX_ERR(0, 2010, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2013 * * #: Negative Y face of cubemap * cudaGraphicsCubeFaceNegativeY = ccudart.cudaGraphicsCubeFace.cudaGraphicsCubeFaceNegativeY # <<<<<<<<<<<<<< * * #: Positive Z face of cubemap */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaGraphicsCubeFace(cudaGraphicsCubeFaceNegativeY); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2013, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaGraphicsCubeFaceNegativeY, __pyx_t_3) < 0) __PYX_ERR(0, 2013, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2016 * * #: Positive Z face of cubemap * cudaGraphicsCubeFacePositiveZ = ccudart.cudaGraphicsCubeFace.cudaGraphicsCubeFacePositiveZ # <<<<<<<<<<<<<< * * #: Negative Z face of cubemap */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaGraphicsCubeFace(cudaGraphicsCubeFacePositiveZ); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2016, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaGraphicsCubeFacePositiveZ, __pyx_t_3) < 0) __PYX_ERR(0, 2016, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2019 * * #: Negative Z face of cubemap * cudaGraphicsCubeFaceNegativeZ = ccudart.cudaGraphicsCubeFace.cudaGraphicsCubeFaceNegativeZ # <<<<<<<<<<<<<< * * class cudaResourceType(IntEnum): */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaGraphicsCubeFace(cudaGraphicsCubeFaceNegativeZ); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2019, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaGraphicsCubeFaceNegativeZ, __pyx_t_3) < 0) __PYX_ERR(0, 2019, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":1998 * cudaGraphicsMapFlagsWriteDiscard = ccudart.cudaGraphicsMapFlags.cudaGraphicsMapFlagsWriteDiscard * * class cudaGraphicsCubeFace(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA graphics interop array indices for cube maps */ __pyx_t_3 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_n_s_cudaGraphicsCubeFace, __pyx_t_2, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1998, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphicsCubeFace, __pyx_t_3) < 0) __PYX_ERR(0, 1998, __pyx_L1_error) __Pyx_DECREF(__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; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":2021 * cudaGraphicsCubeFaceNegativeZ = ccudart.cudaGraphicsCubeFace.cudaGraphicsCubeFaceNegativeZ * * class cudaResourceType(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA resource types */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2021, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2021, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 2021, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2021, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2021, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_n_s_cudaResourceType, __pyx_n_s_cudaResourceType, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_CUDA_resource_types); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2021, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_2 != __pyx_t_4) { if (unlikely((PyDict_SetItemString(__pyx_t_3, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 2021, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2027 * * #: Array resource * cudaResourceTypeArray = ccudart.cudaResourceType.cudaResourceTypeArray # <<<<<<<<<<<<<< * * #: Mipmapped array resource */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaResourceType(cudaResourceTypeArray); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2027, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaResourceTypeArray, __pyx_t_4) < 0) __PYX_ERR(0, 2027, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2030 * * #: Mipmapped array resource * cudaResourceTypeMipmappedArray = ccudart.cudaResourceType.cudaResourceTypeMipmappedArray # <<<<<<<<<<<<<< * * #: Linear resource */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaResourceType(cudaResourceTypeMipmappedArray); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2030, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaResourceTypeMipmappedArray, __pyx_t_4) < 0) __PYX_ERR(0, 2030, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2033 * * #: Linear resource * cudaResourceTypeLinear = ccudart.cudaResourceType.cudaResourceTypeLinear # <<<<<<<<<<<<<< * * #: Pitch 2D resource */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaResourceType(cudaResourceTypeLinear); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2033, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaResourceTypeLinear, __pyx_t_4) < 0) __PYX_ERR(0, 2033, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2036 * * #: Pitch 2D resource * cudaResourceTypePitch2D = ccudart.cudaResourceType.cudaResourceTypePitch2D # <<<<<<<<<<<<<< * * class cudaResourceViewFormat(IntEnum): */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaResourceType(cudaResourceTypePitch2D); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2036, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaResourceTypePitch2D, __pyx_t_4) < 0) __PYX_ERR(0, 2036, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2021 * cudaGraphicsCubeFaceNegativeZ = ccudart.cudaGraphicsCubeFace.cudaGraphicsCubeFaceNegativeZ * * class cudaResourceType(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA resource types */ __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_n_s_cudaResourceType, __pyx_t_2, __pyx_t_3, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2021, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaResourceType, __pyx_t_4) < 0) __PYX_ERR(0, 2021, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":2038 * cudaResourceTypePitch2D = ccudart.cudaResourceType.cudaResourceTypePitch2D * * class cudaResourceViewFormat(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA texture resource view formats */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2038, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2038, __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)) __PYX_ERR(0, 2038, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2038, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2038, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_3, __pyx_t_2, __pyx_n_s_cudaResourceViewFormat, __pyx_n_s_cudaResourceViewFormat, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_CUDA_texture_resource_view_form); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2038, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_2 != __pyx_t_5) { if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_5) < 0))) __PYX_ERR(0, 2038, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2044 * * #: No resource view format (use underlying resource format) * cudaResViewFormatNone = ccudart.cudaResourceViewFormat.cudaResViewFormatNone # <<<<<<<<<<<<<< * * #: 1 channel unsigned 8-bit integers */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaResourceViewFormat(cudaResViewFormatNone); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2044, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaResViewFormatNone, __pyx_t_5) < 0) __PYX_ERR(0, 2044, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2047 * * #: 1 channel unsigned 8-bit integers * cudaResViewFormatUnsignedChar1 = ccudart.cudaResourceViewFormat.cudaResViewFormatUnsignedChar1 # <<<<<<<<<<<<<< * * #: 2 channel unsigned 8-bit integers */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaResourceViewFormat(cudaResViewFormatUnsignedChar1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2047, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaResViewFormatUnsignedChar1, __pyx_t_5) < 0) __PYX_ERR(0, 2047, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2050 * * #: 2 channel unsigned 8-bit integers * cudaResViewFormatUnsignedChar2 = ccudart.cudaResourceViewFormat.cudaResViewFormatUnsignedChar2 # <<<<<<<<<<<<<< * * #: 4 channel unsigned 8-bit integers */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaResourceViewFormat(cudaResViewFormatUnsignedChar2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2050, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaResViewFormatUnsignedChar2, __pyx_t_5) < 0) __PYX_ERR(0, 2050, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2053 * * #: 4 channel unsigned 8-bit integers * cudaResViewFormatUnsignedChar4 = ccudart.cudaResourceViewFormat.cudaResViewFormatUnsignedChar4 # <<<<<<<<<<<<<< * * #: 1 channel signed 8-bit integers */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaResourceViewFormat(cudaResViewFormatUnsignedChar4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2053, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaResViewFormatUnsignedChar4, __pyx_t_5) < 0) __PYX_ERR(0, 2053, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2056 * * #: 1 channel signed 8-bit integers * cudaResViewFormatSignedChar1 = ccudart.cudaResourceViewFormat.cudaResViewFormatSignedChar1 # <<<<<<<<<<<<<< * * #: 2 channel signed 8-bit integers */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaResourceViewFormat(cudaResViewFormatSignedChar1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2056, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaResViewFormatSignedChar1, __pyx_t_5) < 0) __PYX_ERR(0, 2056, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2059 * * #: 2 channel signed 8-bit integers * cudaResViewFormatSignedChar2 = ccudart.cudaResourceViewFormat.cudaResViewFormatSignedChar2 # <<<<<<<<<<<<<< * * #: 4 channel signed 8-bit integers */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaResourceViewFormat(cudaResViewFormatSignedChar2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2059, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaResViewFormatSignedChar2, __pyx_t_5) < 0) __PYX_ERR(0, 2059, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2062 * * #: 4 channel signed 8-bit integers * cudaResViewFormatSignedChar4 = ccudart.cudaResourceViewFormat.cudaResViewFormatSignedChar4 # <<<<<<<<<<<<<< * * #: 1 channel unsigned 16-bit integers */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaResourceViewFormat(cudaResViewFormatSignedChar4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2062, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaResViewFormatSignedChar4, __pyx_t_5) < 0) __PYX_ERR(0, 2062, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2065 * * #: 1 channel unsigned 16-bit integers * cudaResViewFormatUnsignedShort1 = ccudart.cudaResourceViewFormat.cudaResViewFormatUnsignedShort1 # <<<<<<<<<<<<<< * * #: 2 channel unsigned 16-bit integers */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaResourceViewFormat(cudaResViewFormatUnsignedShort1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2065, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaResViewFormatUnsignedShort1, __pyx_t_5) < 0) __PYX_ERR(0, 2065, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2068 * * #: 2 channel unsigned 16-bit integers * cudaResViewFormatUnsignedShort2 = ccudart.cudaResourceViewFormat.cudaResViewFormatUnsignedShort2 # <<<<<<<<<<<<<< * * #: 4 channel unsigned 16-bit integers */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaResourceViewFormat(cudaResViewFormatUnsignedShort2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2068, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaResViewFormatUnsignedShort2, __pyx_t_5) < 0) __PYX_ERR(0, 2068, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2071 * * #: 4 channel unsigned 16-bit integers * cudaResViewFormatUnsignedShort4 = ccudart.cudaResourceViewFormat.cudaResViewFormatUnsignedShort4 # <<<<<<<<<<<<<< * * #: 1 channel signed 16-bit integers */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaResourceViewFormat(cudaResViewFormatUnsignedShort4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2071, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaResViewFormatUnsignedShort4, __pyx_t_5) < 0) __PYX_ERR(0, 2071, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2074 * * #: 1 channel signed 16-bit integers * cudaResViewFormatSignedShort1 = ccudart.cudaResourceViewFormat.cudaResViewFormatSignedShort1 # <<<<<<<<<<<<<< * * #: 2 channel signed 16-bit integers */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaResourceViewFormat(cudaResViewFormatSignedShort1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2074, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaResViewFormatSignedShort1, __pyx_t_5) < 0) __PYX_ERR(0, 2074, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2077 * * #: 2 channel signed 16-bit integers * cudaResViewFormatSignedShort2 = ccudart.cudaResourceViewFormat.cudaResViewFormatSignedShort2 # <<<<<<<<<<<<<< * * #: 4 channel signed 16-bit integers */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaResourceViewFormat(cudaResViewFormatSignedShort2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2077, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaResViewFormatSignedShort2, __pyx_t_5) < 0) __PYX_ERR(0, 2077, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2080 * * #: 4 channel signed 16-bit integers * cudaResViewFormatSignedShort4 = ccudart.cudaResourceViewFormat.cudaResViewFormatSignedShort4 # <<<<<<<<<<<<<< * * #: 1 channel unsigned 32-bit integers */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaResourceViewFormat(cudaResViewFormatSignedShort4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2080, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaResViewFormatSignedShort4, __pyx_t_5) < 0) __PYX_ERR(0, 2080, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2083 * * #: 1 channel unsigned 32-bit integers * cudaResViewFormatUnsignedInt1 = ccudart.cudaResourceViewFormat.cudaResViewFormatUnsignedInt1 # <<<<<<<<<<<<<< * * #: 2 channel unsigned 32-bit integers */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaResourceViewFormat(cudaResViewFormatUnsignedInt1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2083, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaResViewFormatUnsignedInt1, __pyx_t_5) < 0) __PYX_ERR(0, 2083, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2086 * * #: 2 channel unsigned 32-bit integers * cudaResViewFormatUnsignedInt2 = ccudart.cudaResourceViewFormat.cudaResViewFormatUnsignedInt2 # <<<<<<<<<<<<<< * * #: 4 channel unsigned 32-bit integers */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaResourceViewFormat(cudaResViewFormatUnsignedInt2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2086, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaResViewFormatUnsignedInt2, __pyx_t_5) < 0) __PYX_ERR(0, 2086, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2089 * * #: 4 channel unsigned 32-bit integers * cudaResViewFormatUnsignedInt4 = ccudart.cudaResourceViewFormat.cudaResViewFormatUnsignedInt4 # <<<<<<<<<<<<<< * * #: 1 channel signed 32-bit integers */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaResourceViewFormat(cudaResViewFormatUnsignedInt4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2089, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaResViewFormatUnsignedInt4, __pyx_t_5) < 0) __PYX_ERR(0, 2089, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2092 * * #: 1 channel signed 32-bit integers * cudaResViewFormatSignedInt1 = ccudart.cudaResourceViewFormat.cudaResViewFormatSignedInt1 # <<<<<<<<<<<<<< * * #: 2 channel signed 32-bit integers */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaResourceViewFormat(cudaResViewFormatSignedInt1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2092, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaResViewFormatSignedInt1, __pyx_t_5) < 0) __PYX_ERR(0, 2092, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2095 * * #: 2 channel signed 32-bit integers * cudaResViewFormatSignedInt2 = ccudart.cudaResourceViewFormat.cudaResViewFormatSignedInt2 # <<<<<<<<<<<<<< * * #: 4 channel signed 32-bit integers */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaResourceViewFormat(cudaResViewFormatSignedInt2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2095, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaResViewFormatSignedInt2, __pyx_t_5) < 0) __PYX_ERR(0, 2095, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2098 * * #: 4 channel signed 32-bit integers * cudaResViewFormatSignedInt4 = ccudart.cudaResourceViewFormat.cudaResViewFormatSignedInt4 # <<<<<<<<<<<<<< * * #: 1 channel 16-bit floating point */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaResourceViewFormat(cudaResViewFormatSignedInt4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2098, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaResViewFormatSignedInt4, __pyx_t_5) < 0) __PYX_ERR(0, 2098, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2101 * * #: 1 channel 16-bit floating point * cudaResViewFormatHalf1 = ccudart.cudaResourceViewFormat.cudaResViewFormatHalf1 # <<<<<<<<<<<<<< * * #: 2 channel 16-bit floating point */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaResourceViewFormat(cudaResViewFormatHalf1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaResViewFormatHalf1, __pyx_t_5) < 0) __PYX_ERR(0, 2101, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2104 * * #: 2 channel 16-bit floating point * cudaResViewFormatHalf2 = ccudart.cudaResourceViewFormat.cudaResViewFormatHalf2 # <<<<<<<<<<<<<< * * #: 4 channel 16-bit floating point */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaResourceViewFormat(cudaResViewFormatHalf2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2104, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaResViewFormatHalf2, __pyx_t_5) < 0) __PYX_ERR(0, 2104, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2107 * * #: 4 channel 16-bit floating point * cudaResViewFormatHalf4 = ccudart.cudaResourceViewFormat.cudaResViewFormatHalf4 # <<<<<<<<<<<<<< * * #: 1 channel 32-bit floating point */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaResourceViewFormat(cudaResViewFormatHalf4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2107, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaResViewFormatHalf4, __pyx_t_5) < 0) __PYX_ERR(0, 2107, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2110 * * #: 1 channel 32-bit floating point * cudaResViewFormatFloat1 = ccudart.cudaResourceViewFormat.cudaResViewFormatFloat1 # <<<<<<<<<<<<<< * * #: 2 channel 32-bit floating point */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaResourceViewFormat(cudaResViewFormatFloat1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2110, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaResViewFormatFloat1, __pyx_t_5) < 0) __PYX_ERR(0, 2110, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2113 * * #: 2 channel 32-bit floating point * cudaResViewFormatFloat2 = ccudart.cudaResourceViewFormat.cudaResViewFormatFloat2 # <<<<<<<<<<<<<< * * #: 4 channel 32-bit floating point */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaResourceViewFormat(cudaResViewFormatFloat2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2113, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaResViewFormatFloat2, __pyx_t_5) < 0) __PYX_ERR(0, 2113, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2116 * * #: 4 channel 32-bit floating point * cudaResViewFormatFloat4 = ccudart.cudaResourceViewFormat.cudaResViewFormatFloat4 # <<<<<<<<<<<<<< * * #: Block compressed 1 */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaResourceViewFormat(cudaResViewFormatFloat4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2116, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaResViewFormatFloat4, __pyx_t_5) < 0) __PYX_ERR(0, 2116, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2119 * * #: Block compressed 1 * cudaResViewFormatUnsignedBlockCompressed1 = ccudart.cudaResourceViewFormat.cudaResViewFormatUnsignedBlockCompressed1 # <<<<<<<<<<<<<< * * #: Block compressed 2 */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaResourceViewFormat(cudaResViewFormatUnsignedBlockCompressed1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2119, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaResViewFormatUnsignedBlockCo, __pyx_t_5) < 0) __PYX_ERR(0, 2119, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2122 * * #: Block compressed 2 * cudaResViewFormatUnsignedBlockCompressed2 = ccudart.cudaResourceViewFormat.cudaResViewFormatUnsignedBlockCompressed2 # <<<<<<<<<<<<<< * * #: Block compressed 3 */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaResourceViewFormat(cudaResViewFormatUnsignedBlockCompressed2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2122, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaResViewFormatUnsignedBlockCo_2, __pyx_t_5) < 0) __PYX_ERR(0, 2122, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2125 * * #: Block compressed 3 * cudaResViewFormatUnsignedBlockCompressed3 = ccudart.cudaResourceViewFormat.cudaResViewFormatUnsignedBlockCompressed3 # <<<<<<<<<<<<<< * * #: Block compressed 4 unsigned */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaResourceViewFormat(cudaResViewFormatUnsignedBlockCompressed3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2125, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaResViewFormatUnsignedBlockCo_3, __pyx_t_5) < 0) __PYX_ERR(0, 2125, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2128 * * #: Block compressed 4 unsigned * cudaResViewFormatUnsignedBlockCompressed4 = ccudart.cudaResourceViewFormat.cudaResViewFormatUnsignedBlockCompressed4 # <<<<<<<<<<<<<< * * #: Block compressed 4 signed */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaResourceViewFormat(cudaResViewFormatUnsignedBlockCompressed4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2128, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaResViewFormatUnsignedBlockCo_4, __pyx_t_5) < 0) __PYX_ERR(0, 2128, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2131 * * #: Block compressed 4 signed * cudaResViewFormatSignedBlockCompressed4 = ccudart.cudaResourceViewFormat.cudaResViewFormatSignedBlockCompressed4 # <<<<<<<<<<<<<< * * #: Block compressed 5 unsigned */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaResourceViewFormat(cudaResViewFormatSignedBlockCompressed4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaResViewFormatSignedBlockComp, __pyx_t_5) < 0) __PYX_ERR(0, 2131, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2134 * * #: Block compressed 5 unsigned * cudaResViewFormatUnsignedBlockCompressed5 = ccudart.cudaResourceViewFormat.cudaResViewFormatUnsignedBlockCompressed5 # <<<<<<<<<<<<<< * * #: Block compressed 5 signed */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaResourceViewFormat(cudaResViewFormatUnsignedBlockCompressed5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2134, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaResViewFormatUnsignedBlockCo_5, __pyx_t_5) < 0) __PYX_ERR(0, 2134, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2137 * * #: Block compressed 5 signed * cudaResViewFormatSignedBlockCompressed5 = ccudart.cudaResourceViewFormat.cudaResViewFormatSignedBlockCompressed5 # <<<<<<<<<<<<<< * * #: Block compressed 6 unsigned half-float */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaResourceViewFormat(cudaResViewFormatSignedBlockCompressed5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2137, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaResViewFormatSignedBlockComp_2, __pyx_t_5) < 0) __PYX_ERR(0, 2137, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2140 * * #: Block compressed 6 unsigned half-float * cudaResViewFormatUnsignedBlockCompressed6H = ccudart.cudaResourceViewFormat.cudaResViewFormatUnsignedBlockCompressed6H # <<<<<<<<<<<<<< * * #: Block compressed 6 signed half-float */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaResourceViewFormat(cudaResViewFormatUnsignedBlockCompressed6H); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2140, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaResViewFormatUnsignedBlockCo_6, __pyx_t_5) < 0) __PYX_ERR(0, 2140, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2143 * * #: Block compressed 6 signed half-float * cudaResViewFormatSignedBlockCompressed6H = ccudart.cudaResourceViewFormat.cudaResViewFormatSignedBlockCompressed6H # <<<<<<<<<<<<<< * * #: Block compressed 7 */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaResourceViewFormat(cudaResViewFormatSignedBlockCompressed6H); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2143, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaResViewFormatSignedBlockComp_3, __pyx_t_5) < 0) __PYX_ERR(0, 2143, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2146 * * #: Block compressed 7 * cudaResViewFormatUnsignedBlockCompressed7 = ccudart.cudaResourceViewFormat.cudaResViewFormatUnsignedBlockCompressed7 # <<<<<<<<<<<<<< * * class cudaFuncAttribute(IntEnum): */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaResourceViewFormat(cudaResViewFormatUnsignedBlockCompressed7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2146, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaResViewFormatUnsignedBlockCo_7, __pyx_t_5) < 0) __PYX_ERR(0, 2146, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2038 * cudaResourceTypePitch2D = ccudart.cudaResourceType.cudaResourceTypePitch2D * * class cudaResourceViewFormat(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA texture resource view formats */ __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_3, __pyx_n_s_cudaResourceViewFormat, __pyx_t_2, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2038, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaResourceViewFormat, __pyx_t_5) < 0) __PYX_ERR(0, 2038, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":2148 * cudaResViewFormatUnsignedBlockCompressed7 = ccudart.cudaResourceViewFormat.cudaResViewFormatUnsignedBlockCompressed7 * * class cudaFuncAttribute(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA function attributes that can be set using */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2148, __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)) __PYX_ERR(0, 2148, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_2, __pyx_n_s_cudaFuncAttribute, __pyx_n_s_cudaFuncAttribute, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_CUDA_function_attributes_that_c); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_2 != __pyx_t_3) { if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_3) < 0))) __PYX_ERR(0, 2148, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2155 * * #: Maximum dynamic shared memory size * cudaFuncAttributeMaxDynamicSharedMemorySize = ccudart.cudaFuncAttribute.cudaFuncAttributeMaxDynamicSharedMemorySize # <<<<<<<<<<<<<< * * #: Preferred shared memory-L1 cache split */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaFuncAttribute(cudaFuncAttributeMaxDynamicSharedMemorySize); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaFuncAttributeMaxDynamicShare, __pyx_t_3) < 0) __PYX_ERR(0, 2155, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2158 * * #: Preferred shared memory-L1 cache split * cudaFuncAttributePreferredSharedMemoryCarveout = ccudart.cudaFuncAttribute.cudaFuncAttributePreferredSharedMemoryCarveout # <<<<<<<<<<<<<< * * #: Indicator to enforce valid cluster dimension specification on kernel */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaFuncAttribute(cudaFuncAttributePreferredSharedMemoryCarveout); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2158, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaFuncAttributePreferredShared, __pyx_t_3) < 0) __PYX_ERR(0, 2158, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2162 * #: Indicator to enforce valid cluster dimension specification on kernel * #: launch * cudaFuncAttributeClusterDimMustBeSet = ccudart.cudaFuncAttribute.cudaFuncAttributeClusterDimMustBeSet # <<<<<<<<<<<<<< * * #: Required cluster width */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaFuncAttribute(cudaFuncAttributeClusterDimMustBeSet); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2162, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaFuncAttributeClusterDimMustB, __pyx_t_3) < 0) __PYX_ERR(0, 2162, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2165 * * #: Required cluster width * cudaFuncAttributeRequiredClusterWidth = ccudart.cudaFuncAttribute.cudaFuncAttributeRequiredClusterWidth # <<<<<<<<<<<<<< * * #: Required cluster height */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaFuncAttribute(cudaFuncAttributeRequiredClusterWidth); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2165, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaFuncAttributeRequiredCluster, __pyx_t_3) < 0) __PYX_ERR(0, 2165, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2168 * * #: Required cluster height * cudaFuncAttributeRequiredClusterHeight = ccudart.cudaFuncAttribute.cudaFuncAttributeRequiredClusterHeight # <<<<<<<<<<<<<< * * #: Required cluster depth */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaFuncAttribute(cudaFuncAttributeRequiredClusterHeight); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2168, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaFuncAttributeRequiredCluster_2, __pyx_t_3) < 0) __PYX_ERR(0, 2168, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2171 * * #: Required cluster depth * cudaFuncAttributeRequiredClusterDepth = ccudart.cudaFuncAttribute.cudaFuncAttributeRequiredClusterDepth # <<<<<<<<<<<<<< * * #: Whether non-portable cluster scheduling policy is supported */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaFuncAttribute(cudaFuncAttributeRequiredClusterDepth); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2171, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaFuncAttributeRequiredCluster_3, __pyx_t_3) < 0) __PYX_ERR(0, 2171, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2174 * * #: Whether non-portable cluster scheduling policy is supported * cudaFuncAttributeNonPortableClusterSizeAllowed = ccudart.cudaFuncAttribute.cudaFuncAttributeNonPortableClusterSizeAllowed # <<<<<<<<<<<<<< * * #: Required cluster scheduling policy preference */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaFuncAttribute(cudaFuncAttributeNonPortableClusterSizeAllowed); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2174, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaFuncAttributeNonPortableClus, __pyx_t_3) < 0) __PYX_ERR(0, 2174, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2177 * * #: Required cluster scheduling policy preference * cudaFuncAttributeClusterSchedulingPolicyPreference = ccudart.cudaFuncAttribute.cudaFuncAttributeClusterSchedulingPolicyPreference # <<<<<<<<<<<<<< * cudaFuncAttributeMax = ccudart.cudaFuncAttribute.cudaFuncAttributeMax * */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaFuncAttribute(cudaFuncAttributeClusterSchedulingPolicyPreference); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2177, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaFuncAttributeClusterScheduli, __pyx_t_3) < 0) __PYX_ERR(0, 2177, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2178 * #: Required cluster scheduling policy preference * cudaFuncAttributeClusterSchedulingPolicyPreference = ccudart.cudaFuncAttribute.cudaFuncAttributeClusterSchedulingPolicyPreference * cudaFuncAttributeMax = ccudart.cudaFuncAttribute.cudaFuncAttributeMax # <<<<<<<<<<<<<< * * class cudaFuncCache(IntEnum): */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaFuncAttribute(cudaFuncAttributeMax); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2178, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaFuncAttributeMax, __pyx_t_3) < 0) __PYX_ERR(0, 2178, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2148 * cudaResViewFormatUnsignedBlockCompressed7 = ccudart.cudaResourceViewFormat.cudaResViewFormatUnsignedBlockCompressed7 * * class cudaFuncAttribute(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA function attributes that can be set using */ __pyx_t_3 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_n_s_cudaFuncAttribute, __pyx_t_2, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaFuncAttribute, __pyx_t_3) < 0) __PYX_ERR(0, 2148, __pyx_L1_error) __Pyx_DECREF(__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; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":2180 * cudaFuncAttributeMax = ccudart.cudaFuncAttribute.cudaFuncAttributeMax * * class cudaFuncCache(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA function cache configurations */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 2180, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_n_s_cudaFuncCache, __pyx_n_s_cudaFuncCache, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_CUDA_function_cache_configurati); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_2 != __pyx_t_4) { if (unlikely((PyDict_SetItemString(__pyx_t_3, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 2180, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2186 * * #: Default function cache configuration, no preference * cudaFuncCachePreferNone = ccudart.cudaFuncCache.cudaFuncCachePreferNone # <<<<<<<<<<<<<< * * #: Prefer larger shared memory and smaller L1 cache */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaFuncCache(cudaFuncCachePreferNone); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2186, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaFuncCachePreferNone, __pyx_t_4) < 0) __PYX_ERR(0, 2186, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2189 * * #: Prefer larger shared memory and smaller L1 cache * cudaFuncCachePreferShared = ccudart.cudaFuncCache.cudaFuncCachePreferShared # <<<<<<<<<<<<<< * * #: Prefer larger L1 cache and smaller shared memory */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaFuncCache(cudaFuncCachePreferShared); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2189, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaFuncCachePreferShared, __pyx_t_4) < 0) __PYX_ERR(0, 2189, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2192 * * #: Prefer larger L1 cache and smaller shared memory * cudaFuncCachePreferL1 = ccudart.cudaFuncCache.cudaFuncCachePreferL1 # <<<<<<<<<<<<<< * * #: Prefer equal size L1 cache and shared memory */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaFuncCache(cudaFuncCachePreferL1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2192, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaFuncCachePreferL1, __pyx_t_4) < 0) __PYX_ERR(0, 2192, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2195 * * #: Prefer equal size L1 cache and shared memory * cudaFuncCachePreferEqual = ccudart.cudaFuncCache.cudaFuncCachePreferEqual # <<<<<<<<<<<<<< * * class cudaSharedMemConfig(IntEnum): */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaFuncCache(cudaFuncCachePreferEqual); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2195, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaFuncCachePreferEqual, __pyx_t_4) < 0) __PYX_ERR(0, 2195, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2180 * cudaFuncAttributeMax = ccudart.cudaFuncAttribute.cudaFuncAttributeMax * * class cudaFuncCache(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA function cache configurations */ __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_n_s_cudaFuncCache, __pyx_t_2, __pyx_t_3, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaFuncCache, __pyx_t_4) < 0) __PYX_ERR(0, 2180, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":2197 * cudaFuncCachePreferEqual = ccudart.cudaFuncCache.cudaFuncCachePreferEqual * * class cudaSharedMemConfig(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA shared memory configuration [Deprecated] */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2197, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2197, __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)) __PYX_ERR(0, 2197, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2197, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2197, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_3, __pyx_t_2, __pyx_n_s_cudaSharedMemConfig, __pyx_n_s_cudaSharedMemConfig, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_CUDA_shared_memory_configuratio); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2197, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_2 != __pyx_t_5) { if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_5) < 0))) __PYX_ERR(0, 2197, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2201 * CUDA shared memory configuration [Deprecated] * """ * cudaSharedMemBankSizeDefault = ccudart.cudaSharedMemConfig.cudaSharedMemBankSizeDefault # <<<<<<<<<<<<<< * cudaSharedMemBankSizeFourByte = ccudart.cudaSharedMemConfig.cudaSharedMemBankSizeFourByte * cudaSharedMemBankSizeEightByte = ccudart.cudaSharedMemConfig.cudaSharedMemBankSizeEightByte */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaSharedMemConfig(cudaSharedMemBankSizeDefault); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2201, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaSharedMemBankSizeDefault, __pyx_t_5) < 0) __PYX_ERR(0, 2201, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2202 * """ * cudaSharedMemBankSizeDefault = ccudart.cudaSharedMemConfig.cudaSharedMemBankSizeDefault * cudaSharedMemBankSizeFourByte = ccudart.cudaSharedMemConfig.cudaSharedMemBankSizeFourByte # <<<<<<<<<<<<<< * cudaSharedMemBankSizeEightByte = ccudart.cudaSharedMemConfig.cudaSharedMemBankSizeEightByte * */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaSharedMemConfig(cudaSharedMemBankSizeFourByte); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2202, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaSharedMemBankSizeFourByte, __pyx_t_5) < 0) __PYX_ERR(0, 2202, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2203 * cudaSharedMemBankSizeDefault = ccudart.cudaSharedMemConfig.cudaSharedMemBankSizeDefault * cudaSharedMemBankSizeFourByte = ccudart.cudaSharedMemConfig.cudaSharedMemBankSizeFourByte * cudaSharedMemBankSizeEightByte = ccudart.cudaSharedMemConfig.cudaSharedMemBankSizeEightByte # <<<<<<<<<<<<<< * * class cudaSharedCarveout(IntEnum): */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaSharedMemConfig(cudaSharedMemBankSizeEightByte); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2203, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaSharedMemBankSizeEightByte, __pyx_t_5) < 0) __PYX_ERR(0, 2203, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2197 * cudaFuncCachePreferEqual = ccudart.cudaFuncCache.cudaFuncCachePreferEqual * * class cudaSharedMemConfig(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA shared memory configuration [Deprecated] */ __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_3, __pyx_n_s_cudaSharedMemConfig, __pyx_t_2, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2197, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaSharedMemConfig, __pyx_t_5) < 0) __PYX_ERR(0, 2197, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":2205 * cudaSharedMemBankSizeEightByte = ccudart.cudaSharedMemConfig.cudaSharedMemBankSizeEightByte * * class cudaSharedCarveout(IntEnum): # <<<<<<<<<<<<<< * """ * Shared memory carveout configurations. These may be passed to */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2205, __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)) __PYX_ERR(0, 2205, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_2, __pyx_n_s_cudaSharedCarveout, __pyx_n_s_cudaSharedCarveout, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_Shared_memory_carveout_configur); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_2 != __pyx_t_3) { if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_3) < 0))) __PYX_ERR(0, 2205, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2212 * * #: No preference for shared memory or L1 (default) * cudaSharedmemCarveoutDefault = ccudart.cudaSharedCarveout.cudaSharedmemCarveoutDefault # <<<<<<<<<<<<<< * * #: Prefer maximum available L1 cache, minimum shared memory */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaSharedCarveout(cudaSharedmemCarveoutDefault); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2212, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaSharedmemCarveoutDefault, __pyx_t_3) < 0) __PYX_ERR(0, 2212, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2215 * * #: Prefer maximum available L1 cache, minimum shared memory * cudaSharedmemCarveoutMaxL1 = ccudart.cudaSharedCarveout.cudaSharedmemCarveoutMaxL1 # <<<<<<<<<<<<<< * * #: Prefer maximum available shared memory, minimum L1 cache */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaSharedCarveout(cudaSharedmemCarveoutMaxL1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2215, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaSharedmemCarveoutMaxL1, __pyx_t_3) < 0) __PYX_ERR(0, 2215, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2218 * * #: Prefer maximum available shared memory, minimum L1 cache * cudaSharedmemCarveoutMaxShared = ccudart.cudaSharedCarveout.cudaSharedmemCarveoutMaxShared # <<<<<<<<<<<<<< * * class cudaComputeMode(IntEnum): */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaSharedCarveout(cudaSharedmemCarveoutMaxShared); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2218, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaSharedmemCarveoutMaxShared, __pyx_t_3) < 0) __PYX_ERR(0, 2218, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2205 * cudaSharedMemBankSizeEightByte = ccudart.cudaSharedMemConfig.cudaSharedMemBankSizeEightByte * * class cudaSharedCarveout(IntEnum): # <<<<<<<<<<<<<< * """ * Shared memory carveout configurations. These may be passed to */ __pyx_t_3 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_n_s_cudaSharedCarveout, __pyx_t_2, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaSharedCarveout, __pyx_t_3) < 0) __PYX_ERR(0, 2205, __pyx_L1_error) __Pyx_DECREF(__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; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":2220 * cudaSharedmemCarveoutMaxShared = ccudart.cudaSharedCarveout.cudaSharedmemCarveoutMaxShared * * class cudaComputeMode(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA device compute modes */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2220, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2220, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 2220, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2220, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2220, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_n_s_cudaComputeMode, __pyx_n_s_cudaComputeMode, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_CUDA_device_compute_modes); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2220, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_2 != __pyx_t_4) { if (unlikely((PyDict_SetItemString(__pyx_t_3, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 2220, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2227 * #: Default compute mode (Multiple threads can use * #: :py:obj:`~.cudaSetDevice()` with this device) * cudaComputeModeDefault = ccudart.cudaComputeMode.cudaComputeModeDefault # <<<<<<<<<<<<<< * * #: Compute-exclusive-thread mode (Only one thread in one process will */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaComputeMode(cudaComputeModeDefault); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2227, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaComputeModeDefault, __pyx_t_4) < 0) __PYX_ERR(0, 2227, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2231 * #: Compute-exclusive-thread mode (Only one thread in one process will * #: be able to use :py:obj:`~.cudaSetDevice()` with this device) * cudaComputeModeExclusive = ccudart.cudaComputeMode.cudaComputeModeExclusive # <<<<<<<<<<<<<< * * #: Compute-prohibited mode (No threads can use */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaComputeMode(cudaComputeModeExclusive); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2231, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaComputeModeExclusive, __pyx_t_4) < 0) __PYX_ERR(0, 2231, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2235 * #: Compute-prohibited mode (No threads can use * #: :py:obj:`~.cudaSetDevice()` with this device) * cudaComputeModeProhibited = ccudart.cudaComputeMode.cudaComputeModeProhibited # <<<<<<<<<<<<<< * * #: Compute-exclusive-process mode (Many threads in one process will be */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaComputeMode(cudaComputeModeProhibited); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaComputeModeProhibited, __pyx_t_4) < 0) __PYX_ERR(0, 2235, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2239 * #: Compute-exclusive-process mode (Many threads in one process will be * #: able to use :py:obj:`~.cudaSetDevice()` with this device) * cudaComputeModeExclusiveProcess = ccudart.cudaComputeMode.cudaComputeModeExclusiveProcess # <<<<<<<<<<<<<< * * class cudaLimit(IntEnum): */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaComputeMode(cudaComputeModeExclusiveProcess); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2239, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaComputeModeExclusiveProcess, __pyx_t_4) < 0) __PYX_ERR(0, 2239, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2220 * cudaSharedmemCarveoutMaxShared = ccudart.cudaSharedCarveout.cudaSharedmemCarveoutMaxShared * * class cudaComputeMode(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA device compute modes */ __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_n_s_cudaComputeMode, __pyx_t_2, __pyx_t_3, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2220, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaComputeMode, __pyx_t_4) < 0) __PYX_ERR(0, 2220, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":2241 * cudaComputeModeExclusiveProcess = ccudart.cudaComputeMode.cudaComputeModeExclusiveProcess * * class cudaLimit(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA Limits */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2241, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2241, __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)) __PYX_ERR(0, 2241, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2241, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2241, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_3, __pyx_t_2, __pyx_n_s_cudaLimit, __pyx_n_s_cudaLimit, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_CUDA_Limits); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2241, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_2 != __pyx_t_5) { if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_5) < 0))) __PYX_ERR(0, 2241, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2247 * * #: GPU thread stack size * cudaLimitStackSize = ccudart.cudaLimit.cudaLimitStackSize # <<<<<<<<<<<<<< * * #: GPU printf FIFO size */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaLimit(cudaLimitStackSize); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2247, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaLimitStackSize, __pyx_t_5) < 0) __PYX_ERR(0, 2247, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2250 * * #: GPU printf FIFO size * cudaLimitPrintfFifoSize = ccudart.cudaLimit.cudaLimitPrintfFifoSize # <<<<<<<<<<<<<< * * #: GPU malloc heap size */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaLimit(cudaLimitPrintfFifoSize); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaLimitPrintfFifoSize, __pyx_t_5) < 0) __PYX_ERR(0, 2250, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2253 * * #: GPU malloc heap size * cudaLimitMallocHeapSize = ccudart.cudaLimit.cudaLimitMallocHeapSize # <<<<<<<<<<<<<< * * #: GPU device runtime synchronize depth */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaLimit(cudaLimitMallocHeapSize); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2253, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaLimitMallocHeapSize, __pyx_t_5) < 0) __PYX_ERR(0, 2253, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2256 * * #: GPU device runtime synchronize depth * cudaLimitDevRuntimeSyncDepth = ccudart.cudaLimit.cudaLimitDevRuntimeSyncDepth # <<<<<<<<<<<<<< * * #: GPU device runtime pending launch count */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaLimit(cudaLimitDevRuntimeSyncDepth); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2256, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaLimitDevRuntimeSyncDepth, __pyx_t_5) < 0) __PYX_ERR(0, 2256, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2259 * * #: GPU device runtime pending launch count * cudaLimitDevRuntimePendingLaunchCount = ccudart.cudaLimit.cudaLimitDevRuntimePendingLaunchCount # <<<<<<<<<<<<<< * * #: A value between 0 and 128 that indicates the maximum fetch */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaLimit(cudaLimitDevRuntimePendingLaunchCount); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2259, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaLimitDevRuntimePendingLaunch, __pyx_t_5) < 0) __PYX_ERR(0, 2259, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2263 * #: A value between 0 and 128 that indicates the maximum fetch * #: granularity of L2 (in Bytes). This is a hint * cudaLimitMaxL2FetchGranularity = ccudart.cudaLimit.cudaLimitMaxL2FetchGranularity # <<<<<<<<<<<<<< * * #: A size in bytes for L2 persisting lines cache size */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaLimit(cudaLimitMaxL2FetchGranularity); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2263, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaLimitMaxL2FetchGranularity, __pyx_t_5) < 0) __PYX_ERR(0, 2263, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2266 * * #: A size in bytes for L2 persisting lines cache size * cudaLimitPersistingL2CacheSize = ccudart.cudaLimit.cudaLimitPersistingL2CacheSize # <<<<<<<<<<<<<< * * class cudaMemoryAdvise(IntEnum): */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaLimit(cudaLimitPersistingL2CacheSize); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaLimitPersistingL2CacheSize, __pyx_t_5) < 0) __PYX_ERR(0, 2266, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2241 * cudaComputeModeExclusiveProcess = ccudart.cudaComputeMode.cudaComputeModeExclusiveProcess * * class cudaLimit(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA Limits */ __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_3, __pyx_n_s_cudaLimit, __pyx_t_2, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2241, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaLimit, __pyx_t_5) < 0) __PYX_ERR(0, 2241, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":2268 * cudaLimitPersistingL2CacheSize = ccudart.cudaLimit.cudaLimitPersistingL2CacheSize * * class cudaMemoryAdvise(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA Memory Advise values */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2268, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2268, __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)) __PYX_ERR(0, 2268, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2268, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2268, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_2, __pyx_n_s_cudaMemoryAdvise, __pyx_n_s_cudaMemoryAdvise, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_CUDA_Memory_Advise_values); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2268, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_2 != __pyx_t_3) { if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_3) < 0))) __PYX_ERR(0, 2268, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2274 * * #: Data will mostly be read and only occassionally be written to * cudaMemAdviseSetReadMostly = ccudart.cudaMemoryAdvise.cudaMemAdviseSetReadMostly # <<<<<<<<<<<<<< * * #: Undo the effect of :py:obj:`~.cudaMemAdviseSetReadMostly` */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaMemoryAdvise(cudaMemAdviseSetReadMostly); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2274, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaMemAdviseSetReadMostly, __pyx_t_3) < 0) __PYX_ERR(0, 2274, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2277 * * #: Undo the effect of :py:obj:`~.cudaMemAdviseSetReadMostly` * cudaMemAdviseUnsetReadMostly = ccudart.cudaMemoryAdvise.cudaMemAdviseUnsetReadMostly # <<<<<<<<<<<<<< * * #: Set the preferred location for the data as the specified device */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaMemoryAdvise(cudaMemAdviseUnsetReadMostly); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2277, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaMemAdviseUnsetReadMostly, __pyx_t_3) < 0) __PYX_ERR(0, 2277, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2280 * * #: Set the preferred location for the data as the specified device * cudaMemAdviseSetPreferredLocation = ccudart.cudaMemoryAdvise.cudaMemAdviseSetPreferredLocation # <<<<<<<<<<<<<< * * #: Clear the preferred location for the data */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaMemoryAdvise(cudaMemAdviseSetPreferredLocation); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2280, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaMemAdviseSetPreferredLocatio, __pyx_t_3) < 0) __PYX_ERR(0, 2280, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2283 * * #: Clear the preferred location for the data * cudaMemAdviseUnsetPreferredLocation = ccudart.cudaMemoryAdvise.cudaMemAdviseUnsetPreferredLocation # <<<<<<<<<<<<<< * * #: Data will be accessed by the specified device, so prevent page */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaMemoryAdvise(cudaMemAdviseUnsetPreferredLocation); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2283, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaMemAdviseUnsetPreferredLocat, __pyx_t_3) < 0) __PYX_ERR(0, 2283, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2287 * #: Data will be accessed by the specified device, so prevent page * #: faults as much as possible * cudaMemAdviseSetAccessedBy = ccudart.cudaMemoryAdvise.cudaMemAdviseSetAccessedBy # <<<<<<<<<<<<<< * * #: Let the Unified Memory subsystem decide on the page faulting policy */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaMemoryAdvise(cudaMemAdviseSetAccessedBy); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2287, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaMemAdviseSetAccessedBy, __pyx_t_3) < 0) __PYX_ERR(0, 2287, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2291 * #: Let the Unified Memory subsystem decide on the page faulting policy * #: for the specified device * cudaMemAdviseUnsetAccessedBy = ccudart.cudaMemoryAdvise.cudaMemAdviseUnsetAccessedBy # <<<<<<<<<<<<<< * * class cudaMemRangeAttribute(IntEnum): */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaMemoryAdvise(cudaMemAdviseUnsetAccessedBy); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2291, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaMemAdviseUnsetAccessedBy, __pyx_t_3) < 0) __PYX_ERR(0, 2291, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2268 * cudaLimitPersistingL2CacheSize = ccudart.cudaLimit.cudaLimitPersistingL2CacheSize * * class cudaMemoryAdvise(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA Memory Advise values */ __pyx_t_3 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_n_s_cudaMemoryAdvise, __pyx_t_2, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2268, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemoryAdvise, __pyx_t_3) < 0) __PYX_ERR(0, 2268, __pyx_L1_error) __Pyx_DECREF(__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; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":2293 * cudaMemAdviseUnsetAccessedBy = ccudart.cudaMemoryAdvise.cudaMemAdviseUnsetAccessedBy * * class cudaMemRangeAttribute(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA range attributes */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2293, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2293, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 2293, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2293, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2293, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_n_s_cudaMemRangeAttribute, __pyx_n_s_cudaMemRangeAttribute, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_CUDA_range_attributes); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2293, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_2 != __pyx_t_4) { if (unlikely((PyDict_SetItemString(__pyx_t_3, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 2293, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2300 * #: Whether the range will mostly be read and only occassionally be * #: written to * cudaMemRangeAttributeReadMostly = ccudart.cudaMemRangeAttribute.cudaMemRangeAttributeReadMostly # <<<<<<<<<<<<<< * * #: The preferred location of the range */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaMemRangeAttribute(cudaMemRangeAttributeReadMostly); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2300, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaMemRangeAttributeReadMostly, __pyx_t_4) < 0) __PYX_ERR(0, 2300, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2303 * * #: The preferred location of the range * cudaMemRangeAttributePreferredLocation = ccudart.cudaMemRangeAttribute.cudaMemRangeAttributePreferredLocation # <<<<<<<<<<<<<< * * #: Memory range has :py:obj:`~.cudaMemAdviseSetAccessedBy` set for */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaMemRangeAttribute(cudaMemRangeAttributePreferredLocation); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2303, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaMemRangeAttributePreferredLo, __pyx_t_4) < 0) __PYX_ERR(0, 2303, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2307 * #: Memory range has :py:obj:`~.cudaMemAdviseSetAccessedBy` set for * #: specified device * cudaMemRangeAttributeAccessedBy = ccudart.cudaMemRangeAttribute.cudaMemRangeAttributeAccessedBy # <<<<<<<<<<<<<< * * #: The last location to which the range was prefetched */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaMemRangeAttribute(cudaMemRangeAttributeAccessedBy); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2307, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaMemRangeAttributeAccessedBy, __pyx_t_4) < 0) __PYX_ERR(0, 2307, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2310 * * #: The last location to which the range was prefetched * cudaMemRangeAttributeLastPrefetchLocation = ccudart.cudaMemRangeAttribute.cudaMemRangeAttributeLastPrefetchLocation # <<<<<<<<<<<<<< * * #: The preferred location type of the range */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaMemRangeAttribute(cudaMemRangeAttributeLastPrefetchLocation); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2310, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaMemRangeAttributeLastPrefetc, __pyx_t_4) < 0) __PYX_ERR(0, 2310, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2313 * * #: The preferred location type of the range * cudaMemRangeAttributePreferredLocationType = ccudart.cudaMemRangeAttribute.cudaMemRangeAttributePreferredLocationType # <<<<<<<<<<<<<< * * #: The preferred location id of the range */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaMemRangeAttribute(cudaMemRangeAttributePreferredLocationType); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2313, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaMemRangeAttributePreferredLo_2, __pyx_t_4) < 0) __PYX_ERR(0, 2313, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2316 * * #: The preferred location id of the range * cudaMemRangeAttributePreferredLocationId = ccudart.cudaMemRangeAttribute.cudaMemRangeAttributePreferredLocationId # <<<<<<<<<<<<<< * * #: The last location type to which the range was prefetched */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaMemRangeAttribute(cudaMemRangeAttributePreferredLocationId); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2316, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaMemRangeAttributePreferredLo_3, __pyx_t_4) < 0) __PYX_ERR(0, 2316, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2319 * * #: The last location type to which the range was prefetched * cudaMemRangeAttributeLastPrefetchLocationType = ccudart.cudaMemRangeAttribute.cudaMemRangeAttributeLastPrefetchLocationType # <<<<<<<<<<<<<< * * #: The last location id to which the range was prefetched */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaMemRangeAttribute(cudaMemRangeAttributeLastPrefetchLocationType); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2319, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaMemRangeAttributeLastPrefetc_2, __pyx_t_4) < 0) __PYX_ERR(0, 2319, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2322 * * #: The last location id to which the range was prefetched * cudaMemRangeAttributeLastPrefetchLocationId = ccudart.cudaMemRangeAttribute.cudaMemRangeAttributeLastPrefetchLocationId # <<<<<<<<<<<<<< * * class cudaFlushGPUDirectRDMAWritesOptions(IntEnum): */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaMemRangeAttribute(cudaMemRangeAttributeLastPrefetchLocationId); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2322, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaMemRangeAttributeLastPrefetc_3, __pyx_t_4) < 0) __PYX_ERR(0, 2322, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2293 * cudaMemAdviseUnsetAccessedBy = ccudart.cudaMemoryAdvise.cudaMemAdviseUnsetAccessedBy * * class cudaMemRangeAttribute(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA range attributes */ __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_n_s_cudaMemRangeAttribute, __pyx_t_2, __pyx_t_3, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2293, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemRangeAttribute, __pyx_t_4) < 0) __PYX_ERR(0, 2293, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":2324 * cudaMemRangeAttributeLastPrefetchLocationId = ccudart.cudaMemRangeAttribute.cudaMemRangeAttributeLastPrefetchLocationId * * class cudaFlushGPUDirectRDMAWritesOptions(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA GPUDirect RDMA flush writes APIs supported on the device */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2324, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2324, __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)) __PYX_ERR(0, 2324, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2324, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2324, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_3, __pyx_t_2, __pyx_n_s_cudaFlushGPUDirectRDMAWritesOpti, __pyx_n_s_cudaFlushGPUDirectRDMAWritesOpti, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_CUDA_GPUDirect_RDMA_flush_write); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2324, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_2 != __pyx_t_5) { if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_5) < 0))) __PYX_ERR(0, 2324, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2331 * #: :py:obj:`~.cudaDeviceFlushGPUDirectRDMAWrites()` and its CUDA Driver * #: API counterpart are supported on the device. * cudaFlushGPUDirectRDMAWritesOptionHost = ccudart.cudaFlushGPUDirectRDMAWritesOptions.cudaFlushGPUDirectRDMAWritesOptionHost # <<<<<<<<<<<<<< * * #: The :py:obj:`~.CU_STREAM_WAIT_VALUE_FLUSH` flag and the */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaFlushGPUDirectRDMAWritesOptions(cudaFlushGPUDirectRDMAWritesOptionHost); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2331, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaFlushGPUDirectRDMAWritesOpti_2, __pyx_t_5) < 0) __PYX_ERR(0, 2331, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2336 * #: :py:obj:`~.CU_STREAM_MEM_OP_FLUSH_REMOTE_WRITES` MemOp are supported * #: on the CUDA device. * cudaFlushGPUDirectRDMAWritesOptionMemOps = ccudart.cudaFlushGPUDirectRDMAWritesOptions.cudaFlushGPUDirectRDMAWritesOptionMemOps # <<<<<<<<<<<<<< * * class cudaGPUDirectRDMAWritesOrdering(IntEnum): */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaFlushGPUDirectRDMAWritesOptions(cudaFlushGPUDirectRDMAWritesOptionMemOps); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2336, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaFlushGPUDirectRDMAWritesOpti_3, __pyx_t_5) < 0) __PYX_ERR(0, 2336, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2324 * cudaMemRangeAttributeLastPrefetchLocationId = ccudart.cudaMemRangeAttribute.cudaMemRangeAttributeLastPrefetchLocationId * * class cudaFlushGPUDirectRDMAWritesOptions(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA GPUDirect RDMA flush writes APIs supported on the device */ __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_3, __pyx_n_s_cudaFlushGPUDirectRDMAWritesOpti, __pyx_t_2, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2324, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaFlushGPUDirectRDMAWritesOpti, __pyx_t_5) < 0) __PYX_ERR(0, 2324, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":2338 * cudaFlushGPUDirectRDMAWritesOptionMemOps = ccudart.cudaFlushGPUDirectRDMAWritesOptions.cudaFlushGPUDirectRDMAWritesOptionMemOps * * class cudaGPUDirectRDMAWritesOrdering(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA GPUDirect RDMA flush writes ordering features of the device */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2338, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2338, __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)) __PYX_ERR(0, 2338, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2338, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2338, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_2, __pyx_n_s_cudaGPUDirectRDMAWritesOrdering, __pyx_n_s_cudaGPUDirectRDMAWritesOrdering, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_CUDA_GPUDirect_RDMA_flush_write_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2338, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_2 != __pyx_t_3) { if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_3) < 0))) __PYX_ERR(0, 2338, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2346 * #: writes. :py:obj:`~.cudaFlushGPUDirectRDMAWrites()` can be leveraged * #: if supported. * cudaGPUDirectRDMAWritesOrderingNone = ccudart.cudaGPUDirectRDMAWritesOrdering.cudaGPUDirectRDMAWritesOrderingNone # <<<<<<<<<<<<<< * * #: Natively, the device can consistently consume GPUDirect RDMA writes, */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaGPUDirectRDMAWritesOrdering(cudaGPUDirectRDMAWritesOrderingNone); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2346, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaGPUDirectRDMAWritesOrderingN, __pyx_t_3) < 0) __PYX_ERR(0, 2346, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2350 * #: Natively, the device can consistently consume GPUDirect RDMA writes, * #: although other CUDA devices may not. * cudaGPUDirectRDMAWritesOrderingOwner = ccudart.cudaGPUDirectRDMAWritesOrdering.cudaGPUDirectRDMAWritesOrderingOwner # <<<<<<<<<<<<<< * * #: Any CUDA device in the system can consistently consume GPUDirect */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaGPUDirectRDMAWritesOrdering(cudaGPUDirectRDMAWritesOrderingOwner); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2350, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaGPUDirectRDMAWritesOrderingO, __pyx_t_3) < 0) __PYX_ERR(0, 2350, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2354 * #: Any CUDA device in the system can consistently consume GPUDirect * #: RDMA writes to this device. * cudaGPUDirectRDMAWritesOrderingAllDevices = ccudart.cudaGPUDirectRDMAWritesOrdering.cudaGPUDirectRDMAWritesOrderingAllDevices # <<<<<<<<<<<<<< * * class cudaFlushGPUDirectRDMAWritesScope(IntEnum): */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaGPUDirectRDMAWritesOrdering(cudaGPUDirectRDMAWritesOrderingAllDevices); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2354, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaGPUDirectRDMAWritesOrderingA, __pyx_t_3) < 0) __PYX_ERR(0, 2354, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2338 * cudaFlushGPUDirectRDMAWritesOptionMemOps = ccudart.cudaFlushGPUDirectRDMAWritesOptions.cudaFlushGPUDirectRDMAWritesOptionMemOps * * class cudaGPUDirectRDMAWritesOrdering(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA GPUDirect RDMA flush writes ordering features of the device */ __pyx_t_3 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_n_s_cudaGPUDirectRDMAWritesOrdering, __pyx_t_2, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2338, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGPUDirectRDMAWritesOrdering, __pyx_t_3) < 0) __PYX_ERR(0, 2338, __pyx_L1_error) __Pyx_DECREF(__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; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":2356 * cudaGPUDirectRDMAWritesOrderingAllDevices = ccudart.cudaGPUDirectRDMAWritesOrdering.cudaGPUDirectRDMAWritesOrderingAllDevices * * class cudaFlushGPUDirectRDMAWritesScope(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA GPUDirect RDMA flush writes scopes */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2356, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2356, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 2356, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2356, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2356, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_n_s_cudaFlushGPUDirectRDMAWritesScop, __pyx_n_s_cudaFlushGPUDirectRDMAWritesScop, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_CUDA_GPUDirect_RDMA_flush_write_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2356, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_2 != __pyx_t_4) { if (unlikely((PyDict_SetItemString(__pyx_t_3, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 2356, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2363 * #: Blocks until remote writes are visible to the CUDA device context * #: owning the data. * cudaFlushGPUDirectRDMAWritesToOwner = ccudart.cudaFlushGPUDirectRDMAWritesScope.cudaFlushGPUDirectRDMAWritesToOwner # <<<<<<<<<<<<<< * * #: Blocks until remote writes are visible to all CUDA device contexts. */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaFlushGPUDirectRDMAWritesScope(cudaFlushGPUDirectRDMAWritesToOwner); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2363, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaFlushGPUDirectRDMAWritesToOw, __pyx_t_4) < 0) __PYX_ERR(0, 2363, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2366 * * #: Blocks until remote writes are visible to all CUDA device contexts. * cudaFlushGPUDirectRDMAWritesToAllDevices = ccudart.cudaFlushGPUDirectRDMAWritesScope.cudaFlushGPUDirectRDMAWritesToAllDevices # <<<<<<<<<<<<<< * * class cudaFlushGPUDirectRDMAWritesTarget(IntEnum): */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaFlushGPUDirectRDMAWritesScope(cudaFlushGPUDirectRDMAWritesToAllDevices); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2366, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaFlushGPUDirectRDMAWritesToAl, __pyx_t_4) < 0) __PYX_ERR(0, 2366, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2356 * cudaGPUDirectRDMAWritesOrderingAllDevices = ccudart.cudaGPUDirectRDMAWritesOrdering.cudaGPUDirectRDMAWritesOrderingAllDevices * * class cudaFlushGPUDirectRDMAWritesScope(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA GPUDirect RDMA flush writes scopes */ __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_n_s_cudaFlushGPUDirectRDMAWritesScop, __pyx_t_2, __pyx_t_3, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2356, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaFlushGPUDirectRDMAWritesScop, __pyx_t_4) < 0) __PYX_ERR(0, 2356, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":2368 * cudaFlushGPUDirectRDMAWritesToAllDevices = ccudart.cudaFlushGPUDirectRDMAWritesScope.cudaFlushGPUDirectRDMAWritesToAllDevices * * class cudaFlushGPUDirectRDMAWritesTarget(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA GPUDirect RDMA flush writes targets */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2368, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2368, __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)) __PYX_ERR(0, 2368, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2368, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2368, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_3, __pyx_t_2, __pyx_n_s_cudaFlushGPUDirectRDMAWritesTarg, __pyx_n_s_cudaFlushGPUDirectRDMAWritesTarg, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_CUDA_GPUDirect_RDMA_flush_write_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2368, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_2 != __pyx_t_5) { if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_5) < 0))) __PYX_ERR(0, 2368, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2375 * #: Sets the target for :py:obj:`~.cudaDeviceFlushGPUDirectRDMAWrites()` * #: to the currently active CUDA device context. * cudaFlushGPUDirectRDMAWritesTargetCurrentDevice = ccudart.cudaFlushGPUDirectRDMAWritesTarget.cudaFlushGPUDirectRDMAWritesTargetCurrentDevice # <<<<<<<<<<<<<< * * class cudaDeviceAttr(IntEnum): */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaFlushGPUDirectRDMAWritesTarget(cudaFlushGPUDirectRDMAWritesTargetCurrentDevice); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2375, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaFlushGPUDirectRDMAWritesTarg_2, __pyx_t_5) < 0) __PYX_ERR(0, 2375, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2368 * cudaFlushGPUDirectRDMAWritesToAllDevices = ccudart.cudaFlushGPUDirectRDMAWritesScope.cudaFlushGPUDirectRDMAWritesToAllDevices * * class cudaFlushGPUDirectRDMAWritesTarget(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA GPUDirect RDMA flush writes targets */ __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_3, __pyx_n_s_cudaFlushGPUDirectRDMAWritesTarg, __pyx_t_2, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2368, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaFlushGPUDirectRDMAWritesTarg, __pyx_t_5) < 0) __PYX_ERR(0, 2368, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":2377 * cudaFlushGPUDirectRDMAWritesTargetCurrentDevice = ccudart.cudaFlushGPUDirectRDMAWritesTarget.cudaFlushGPUDirectRDMAWritesTargetCurrentDevice * * class cudaDeviceAttr(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA device attributes */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2377, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2377, __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)) __PYX_ERR(0, 2377, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2377, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2377, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_2, __pyx_n_s_cudaDeviceAttr, __pyx_n_s_cudaDeviceAttr, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_CUDA_device_attributes); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2377, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_2 != __pyx_t_3) { if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_3) < 0))) __PYX_ERR(0, 2377, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2383 * * #: Maximum number of threads per block * cudaDevAttrMaxThreadsPerBlock = ccudart.cudaDeviceAttr.cudaDevAttrMaxThreadsPerBlock # <<<<<<<<<<<<<< * * #: Maximum block dimension X */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxThreadsPerBlock); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2383, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxThreadsPerBlock, __pyx_t_3) < 0) __PYX_ERR(0, 2383, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2386 * * #: Maximum block dimension X * cudaDevAttrMaxBlockDimX = ccudart.cudaDeviceAttr.cudaDevAttrMaxBlockDimX # <<<<<<<<<<<<<< * * #: Maximum block dimension Y */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxBlockDimX); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2386, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxBlockDimX, __pyx_t_3) < 0) __PYX_ERR(0, 2386, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2389 * * #: Maximum block dimension Y * cudaDevAttrMaxBlockDimY = ccudart.cudaDeviceAttr.cudaDevAttrMaxBlockDimY # <<<<<<<<<<<<<< * * #: Maximum block dimension Z */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxBlockDimY); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2389, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxBlockDimY, __pyx_t_3) < 0) __PYX_ERR(0, 2389, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2392 * * #: Maximum block dimension Z * cudaDevAttrMaxBlockDimZ = ccudart.cudaDeviceAttr.cudaDevAttrMaxBlockDimZ # <<<<<<<<<<<<<< * * #: Maximum grid dimension X */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxBlockDimZ); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2392, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxBlockDimZ, __pyx_t_3) < 0) __PYX_ERR(0, 2392, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2395 * * #: Maximum grid dimension X * cudaDevAttrMaxGridDimX = ccudart.cudaDeviceAttr.cudaDevAttrMaxGridDimX # <<<<<<<<<<<<<< * * #: Maximum grid dimension Y */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxGridDimX); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2395, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxGridDimX, __pyx_t_3) < 0) __PYX_ERR(0, 2395, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2398 * * #: Maximum grid dimension Y * cudaDevAttrMaxGridDimY = ccudart.cudaDeviceAttr.cudaDevAttrMaxGridDimY # <<<<<<<<<<<<<< * * #: Maximum grid dimension Z */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxGridDimY); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2398, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxGridDimY, __pyx_t_3) < 0) __PYX_ERR(0, 2398, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2401 * * #: Maximum grid dimension Z * cudaDevAttrMaxGridDimZ = ccudart.cudaDeviceAttr.cudaDevAttrMaxGridDimZ # <<<<<<<<<<<<<< * * #: Maximum shared memory available per block in bytes */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxGridDimZ); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2401, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxGridDimZ, __pyx_t_3) < 0) __PYX_ERR(0, 2401, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2404 * * #: Maximum shared memory available per block in bytes * cudaDevAttrMaxSharedMemoryPerBlock = ccudart.cudaDeviceAttr.cudaDevAttrMaxSharedMemoryPerBlock # <<<<<<<<<<<<<< * * #: Memory available on device for constant variables in a CUDA C kernel */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxSharedMemoryPerBlock); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2404, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxSharedMemoryPerBlo, __pyx_t_3) < 0) __PYX_ERR(0, 2404, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2408 * #: Memory available on device for constant variables in a CUDA C kernel * #: in bytes * cudaDevAttrTotalConstantMemory = ccudart.cudaDeviceAttr.cudaDevAttrTotalConstantMemory # <<<<<<<<<<<<<< * * #: Warp size in threads */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrTotalConstantMemory); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2408, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrTotalConstantMemory, __pyx_t_3) < 0) __PYX_ERR(0, 2408, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2411 * * #: Warp size in threads * cudaDevAttrWarpSize = ccudart.cudaDeviceAttr.cudaDevAttrWarpSize # <<<<<<<<<<<<<< * * #: Maximum pitch in bytes allowed by memory copies */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrWarpSize); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2411, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrWarpSize, __pyx_t_3) < 0) __PYX_ERR(0, 2411, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2414 * * #: Maximum pitch in bytes allowed by memory copies * cudaDevAttrMaxPitch = ccudart.cudaDeviceAttr.cudaDevAttrMaxPitch # <<<<<<<<<<<<<< * * #: Maximum number of 32-bit registers available per block */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxPitch); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2414, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxPitch, __pyx_t_3) < 0) __PYX_ERR(0, 2414, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2417 * * #: Maximum number of 32-bit registers available per block * cudaDevAttrMaxRegistersPerBlock = ccudart.cudaDeviceAttr.cudaDevAttrMaxRegistersPerBlock # <<<<<<<<<<<<<< * * #: Peak clock frequency in kilohertz */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxRegistersPerBlock); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2417, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxRegistersPerBlock, __pyx_t_3) < 0) __PYX_ERR(0, 2417, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2420 * * #: Peak clock frequency in kilohertz * cudaDevAttrClockRate = ccudart.cudaDeviceAttr.cudaDevAttrClockRate # <<<<<<<<<<<<<< * * #: Alignment requirement for textures */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrClockRate); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2420, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrClockRate, __pyx_t_3) < 0) __PYX_ERR(0, 2420, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2423 * * #: Alignment requirement for textures * cudaDevAttrTextureAlignment = ccudart.cudaDeviceAttr.cudaDevAttrTextureAlignment # <<<<<<<<<<<<<< * * #: Device can possibly copy memory and execute a kernel concurrently */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrTextureAlignment); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2423, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrTextureAlignment, __pyx_t_3) < 0) __PYX_ERR(0, 2423, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2426 * * #: Device can possibly copy memory and execute a kernel concurrently * cudaDevAttrGpuOverlap = ccudart.cudaDeviceAttr.cudaDevAttrGpuOverlap # <<<<<<<<<<<<<< * * #: Number of multiprocessors on device */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrGpuOverlap); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2426, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrGpuOverlap, __pyx_t_3) < 0) __PYX_ERR(0, 2426, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2429 * * #: Number of multiprocessors on device * cudaDevAttrMultiProcessorCount = ccudart.cudaDeviceAttr.cudaDevAttrMultiProcessorCount # <<<<<<<<<<<<<< * * #: Specifies whether there is a run time limit on kernels */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMultiProcessorCount); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2429, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMultiProcessorCount, __pyx_t_3) < 0) __PYX_ERR(0, 2429, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2432 * * #: Specifies whether there is a run time limit on kernels * cudaDevAttrKernelExecTimeout = ccudart.cudaDeviceAttr.cudaDevAttrKernelExecTimeout # <<<<<<<<<<<<<< * * #: Device is integrated with host memory */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrKernelExecTimeout); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2432, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrKernelExecTimeout, __pyx_t_3) < 0) __PYX_ERR(0, 2432, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2435 * * #: Device is integrated with host memory * cudaDevAttrIntegrated = ccudart.cudaDeviceAttr.cudaDevAttrIntegrated # <<<<<<<<<<<<<< * * #: Device can map host memory into CUDA address space */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrIntegrated); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2435, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrIntegrated, __pyx_t_3) < 0) __PYX_ERR(0, 2435, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2438 * * #: Device can map host memory into CUDA address space * cudaDevAttrCanMapHostMemory = ccudart.cudaDeviceAttr.cudaDevAttrCanMapHostMemory # <<<<<<<<<<<<<< * * #: Compute mode (See :py:obj:`~.cudaComputeMode` for details) */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrCanMapHostMemory); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2438, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrCanMapHostMemory, __pyx_t_3) < 0) __PYX_ERR(0, 2438, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2441 * * #: Compute mode (See :py:obj:`~.cudaComputeMode` for details) * cudaDevAttrComputeMode = ccudart.cudaDeviceAttr.cudaDevAttrComputeMode # <<<<<<<<<<<<<< * * #: Maximum 1D texture width */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrComputeMode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2441, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrComputeMode, __pyx_t_3) < 0) __PYX_ERR(0, 2441, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2444 * * #: Maximum 1D texture width * cudaDevAttrMaxTexture1DWidth = ccudart.cudaDeviceAttr.cudaDevAttrMaxTexture1DWidth # <<<<<<<<<<<<<< * * #: Maximum 2D texture width */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture1DWidth); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2444, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxTexture1DWidth, __pyx_t_3) < 0) __PYX_ERR(0, 2444, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2447 * * #: Maximum 2D texture width * cudaDevAttrMaxTexture2DWidth = ccudart.cudaDeviceAttr.cudaDevAttrMaxTexture2DWidth # <<<<<<<<<<<<<< * * #: Maximum 2D texture height */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture2DWidth); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2447, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxTexture2DWidth, __pyx_t_3) < 0) __PYX_ERR(0, 2447, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2450 * * #: Maximum 2D texture height * cudaDevAttrMaxTexture2DHeight = ccudart.cudaDeviceAttr.cudaDevAttrMaxTexture2DHeight # <<<<<<<<<<<<<< * * #: Maximum 3D texture width */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture2DHeight); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2450, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxTexture2DHeight, __pyx_t_3) < 0) __PYX_ERR(0, 2450, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2453 * * #: Maximum 3D texture width * cudaDevAttrMaxTexture3DWidth = ccudart.cudaDeviceAttr.cudaDevAttrMaxTexture3DWidth # <<<<<<<<<<<<<< * * #: Maximum 3D texture height */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture3DWidth); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2453, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxTexture3DWidth, __pyx_t_3) < 0) __PYX_ERR(0, 2453, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2456 * * #: Maximum 3D texture height * cudaDevAttrMaxTexture3DHeight = ccudart.cudaDeviceAttr.cudaDevAttrMaxTexture3DHeight # <<<<<<<<<<<<<< * * #: Maximum 3D texture depth */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture3DHeight); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2456, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxTexture3DHeight, __pyx_t_3) < 0) __PYX_ERR(0, 2456, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2459 * * #: Maximum 3D texture depth * cudaDevAttrMaxTexture3DDepth = ccudart.cudaDeviceAttr.cudaDevAttrMaxTexture3DDepth # <<<<<<<<<<<<<< * * #: Maximum 2D layered texture width */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture3DDepth); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2459, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxTexture3DDepth, __pyx_t_3) < 0) __PYX_ERR(0, 2459, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2462 * * #: Maximum 2D layered texture width * cudaDevAttrMaxTexture2DLayeredWidth = ccudart.cudaDeviceAttr.cudaDevAttrMaxTexture2DLayeredWidth # <<<<<<<<<<<<<< * * #: Maximum 2D layered texture height */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture2DLayeredWidth); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2462, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxTexture2DLayeredWi, __pyx_t_3) < 0) __PYX_ERR(0, 2462, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2465 * * #: Maximum 2D layered texture height * cudaDevAttrMaxTexture2DLayeredHeight = ccudart.cudaDeviceAttr.cudaDevAttrMaxTexture2DLayeredHeight # <<<<<<<<<<<<<< * * #: Maximum layers in a 2D layered texture */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture2DLayeredHeight); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2465, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxTexture2DLayeredHe, __pyx_t_3) < 0) __PYX_ERR(0, 2465, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2468 * * #: Maximum layers in a 2D layered texture * cudaDevAttrMaxTexture2DLayeredLayers = ccudart.cudaDeviceAttr.cudaDevAttrMaxTexture2DLayeredLayers # <<<<<<<<<<<<<< * * #: Alignment requirement for surfaces */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture2DLayeredLayers); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2468, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxTexture2DLayeredLa, __pyx_t_3) < 0) __PYX_ERR(0, 2468, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2471 * * #: Alignment requirement for surfaces * cudaDevAttrSurfaceAlignment = ccudart.cudaDeviceAttr.cudaDevAttrSurfaceAlignment # <<<<<<<<<<<<<< * * #: Device can possibly execute multiple kernels concurrently */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrSurfaceAlignment); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2471, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrSurfaceAlignment, __pyx_t_3) < 0) __PYX_ERR(0, 2471, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2474 * * #: Device can possibly execute multiple kernels concurrently * cudaDevAttrConcurrentKernels = ccudart.cudaDeviceAttr.cudaDevAttrConcurrentKernels # <<<<<<<<<<<<<< * * #: Device has ECC support enabled */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrConcurrentKernels); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2474, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrConcurrentKernels, __pyx_t_3) < 0) __PYX_ERR(0, 2474, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2477 * * #: Device has ECC support enabled * cudaDevAttrEccEnabled = ccudart.cudaDeviceAttr.cudaDevAttrEccEnabled # <<<<<<<<<<<<<< * * #: PCI bus ID of the device */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrEccEnabled); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2477, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrEccEnabled, __pyx_t_3) < 0) __PYX_ERR(0, 2477, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2480 * * #: PCI bus ID of the device * cudaDevAttrPciBusId = ccudart.cudaDeviceAttr.cudaDevAttrPciBusId # <<<<<<<<<<<<<< * * #: PCI device ID of the device */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrPciBusId); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2480, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrPciBusId, __pyx_t_3) < 0) __PYX_ERR(0, 2480, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2483 * * #: PCI device ID of the device * cudaDevAttrPciDeviceId = ccudart.cudaDeviceAttr.cudaDevAttrPciDeviceId # <<<<<<<<<<<<<< * * #: Device is using TCC driver model */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrPciDeviceId); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2483, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrPciDeviceId, __pyx_t_3) < 0) __PYX_ERR(0, 2483, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2486 * * #: Device is using TCC driver model * cudaDevAttrTccDriver = ccudart.cudaDeviceAttr.cudaDevAttrTccDriver # <<<<<<<<<<<<<< * * #: Peak memory clock frequency in kilohertz */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrTccDriver); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2486, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrTccDriver, __pyx_t_3) < 0) __PYX_ERR(0, 2486, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2489 * * #: Peak memory clock frequency in kilohertz * cudaDevAttrMemoryClockRate = ccudart.cudaDeviceAttr.cudaDevAttrMemoryClockRate # <<<<<<<<<<<<<< * * #: Global memory bus width in bits */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMemoryClockRate); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2489, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMemoryClockRate, __pyx_t_3) < 0) __PYX_ERR(0, 2489, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2492 * * #: Global memory bus width in bits * cudaDevAttrGlobalMemoryBusWidth = ccudart.cudaDeviceAttr.cudaDevAttrGlobalMemoryBusWidth # <<<<<<<<<<<<<< * * #: Size of L2 cache in bytes */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrGlobalMemoryBusWidth); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2492, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrGlobalMemoryBusWidth, __pyx_t_3) < 0) __PYX_ERR(0, 2492, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2495 * * #: Size of L2 cache in bytes * cudaDevAttrL2CacheSize = ccudart.cudaDeviceAttr.cudaDevAttrL2CacheSize # <<<<<<<<<<<<<< * * #: Maximum resident threads per multiprocessor */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrL2CacheSize); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2495, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrL2CacheSize, __pyx_t_3) < 0) __PYX_ERR(0, 2495, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2498 * * #: Maximum resident threads per multiprocessor * cudaDevAttrMaxThreadsPerMultiProcessor = ccudart.cudaDeviceAttr.cudaDevAttrMaxThreadsPerMultiProcessor # <<<<<<<<<<<<<< * * #: Number of asynchronous engines */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxThreadsPerMultiProcessor); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2498, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxThreadsPerMultiPro, __pyx_t_3) < 0) __PYX_ERR(0, 2498, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2501 * * #: Number of asynchronous engines * cudaDevAttrAsyncEngineCount = ccudart.cudaDeviceAttr.cudaDevAttrAsyncEngineCount # <<<<<<<<<<<<<< * * #: Device shares a unified address space with the host */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrAsyncEngineCount); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2501, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrAsyncEngineCount, __pyx_t_3) < 0) __PYX_ERR(0, 2501, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2504 * * #: Device shares a unified address space with the host * cudaDevAttrUnifiedAddressing = ccudart.cudaDeviceAttr.cudaDevAttrUnifiedAddressing # <<<<<<<<<<<<<< * * #: Maximum 1D layered texture width */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrUnifiedAddressing); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2504, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrUnifiedAddressing, __pyx_t_3) < 0) __PYX_ERR(0, 2504, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2507 * * #: Maximum 1D layered texture width * cudaDevAttrMaxTexture1DLayeredWidth = ccudart.cudaDeviceAttr.cudaDevAttrMaxTexture1DLayeredWidth # <<<<<<<<<<<<<< * * #: Maximum layers in a 1D layered texture */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture1DLayeredWidth); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2507, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxTexture1DLayeredWi, __pyx_t_3) < 0) __PYX_ERR(0, 2507, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2510 * * #: Maximum layers in a 1D layered texture * cudaDevAttrMaxTexture1DLayeredLayers = ccudart.cudaDeviceAttr.cudaDevAttrMaxTexture1DLayeredLayers # <<<<<<<<<<<<<< * * #: Maximum 2D texture width if cudaArrayTextureGather is set */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture1DLayeredLayers); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2510, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxTexture1DLayeredLa, __pyx_t_3) < 0) __PYX_ERR(0, 2510, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2513 * * #: Maximum 2D texture width if cudaArrayTextureGather is set * cudaDevAttrMaxTexture2DGatherWidth = ccudart.cudaDeviceAttr.cudaDevAttrMaxTexture2DGatherWidth # <<<<<<<<<<<<<< * * #: Maximum 2D texture height if cudaArrayTextureGather is set */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture2DGatherWidth); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2513, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxTexture2DGatherWid, __pyx_t_3) < 0) __PYX_ERR(0, 2513, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2516 * * #: Maximum 2D texture height if cudaArrayTextureGather is set * cudaDevAttrMaxTexture2DGatherHeight = ccudart.cudaDeviceAttr.cudaDevAttrMaxTexture2DGatherHeight # <<<<<<<<<<<<<< * * #: Alternate maximum 3D texture width */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture2DGatherHeight); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2516, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxTexture2DGatherHei, __pyx_t_3) < 0) __PYX_ERR(0, 2516, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2519 * * #: Alternate maximum 3D texture width * cudaDevAttrMaxTexture3DWidthAlt = ccudart.cudaDeviceAttr.cudaDevAttrMaxTexture3DWidthAlt # <<<<<<<<<<<<<< * * #: Alternate maximum 3D texture height */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture3DWidthAlt); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2519, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxTexture3DWidthAlt, __pyx_t_3) < 0) __PYX_ERR(0, 2519, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2522 * * #: Alternate maximum 3D texture height * cudaDevAttrMaxTexture3DHeightAlt = ccudart.cudaDeviceAttr.cudaDevAttrMaxTexture3DHeightAlt # <<<<<<<<<<<<<< * * #: Alternate maximum 3D texture depth */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture3DHeightAlt); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2522, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxTexture3DHeightAlt, __pyx_t_3) < 0) __PYX_ERR(0, 2522, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2525 * * #: Alternate maximum 3D texture depth * cudaDevAttrMaxTexture3DDepthAlt = ccudart.cudaDeviceAttr.cudaDevAttrMaxTexture3DDepthAlt # <<<<<<<<<<<<<< * * #: PCI domain ID of the device */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture3DDepthAlt); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2525, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxTexture3DDepthAlt, __pyx_t_3) < 0) __PYX_ERR(0, 2525, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2528 * * #: PCI domain ID of the device * cudaDevAttrPciDomainId = ccudart.cudaDeviceAttr.cudaDevAttrPciDomainId # <<<<<<<<<<<<<< * * #: Pitch alignment requirement for textures */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrPciDomainId); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2528, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrPciDomainId, __pyx_t_3) < 0) __PYX_ERR(0, 2528, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2531 * * #: Pitch alignment requirement for textures * cudaDevAttrTexturePitchAlignment = ccudart.cudaDeviceAttr.cudaDevAttrTexturePitchAlignment # <<<<<<<<<<<<<< * * #: Maximum cubemap texture width/height */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrTexturePitchAlignment); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2531, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrTexturePitchAlignment, __pyx_t_3) < 0) __PYX_ERR(0, 2531, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2534 * * #: Maximum cubemap texture width/height * cudaDevAttrMaxTextureCubemapWidth = ccudart.cudaDeviceAttr.cudaDevAttrMaxTextureCubemapWidth # <<<<<<<<<<<<<< * * #: Maximum cubemap layered texture width/height */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxTextureCubemapWidth); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2534, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxTextureCubemapWidt, __pyx_t_3) < 0) __PYX_ERR(0, 2534, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2537 * * #: Maximum cubemap layered texture width/height * cudaDevAttrMaxTextureCubemapLayeredWidth = ccudart.cudaDeviceAttr.cudaDevAttrMaxTextureCubemapLayeredWidth # <<<<<<<<<<<<<< * * #: Maximum layers in a cubemap layered texture */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxTextureCubemapLayeredWidth); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2537, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxTextureCubemapLaye, __pyx_t_3) < 0) __PYX_ERR(0, 2537, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2540 * * #: Maximum layers in a cubemap layered texture * cudaDevAttrMaxTextureCubemapLayeredLayers = ccudart.cudaDeviceAttr.cudaDevAttrMaxTextureCubemapLayeredLayers # <<<<<<<<<<<<<< * * #: Maximum 1D surface width */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxTextureCubemapLayeredLayers); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2540, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxTextureCubemapLaye_2, __pyx_t_3) < 0) __PYX_ERR(0, 2540, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2543 * * #: Maximum 1D surface width * cudaDevAttrMaxSurface1DWidth = ccudart.cudaDeviceAttr.cudaDevAttrMaxSurface1DWidth # <<<<<<<<<<<<<< * * #: Maximum 2D surface width */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxSurface1DWidth); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2543, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxSurface1DWidth, __pyx_t_3) < 0) __PYX_ERR(0, 2543, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2546 * * #: Maximum 2D surface width * cudaDevAttrMaxSurface2DWidth = ccudart.cudaDeviceAttr.cudaDevAttrMaxSurface2DWidth # <<<<<<<<<<<<<< * * #: Maximum 2D surface height */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxSurface2DWidth); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2546, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxSurface2DWidth, __pyx_t_3) < 0) __PYX_ERR(0, 2546, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2549 * * #: Maximum 2D surface height * cudaDevAttrMaxSurface2DHeight = ccudart.cudaDeviceAttr.cudaDevAttrMaxSurface2DHeight # <<<<<<<<<<<<<< * * #: Maximum 3D surface width */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxSurface2DHeight); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2549, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxSurface2DHeight, __pyx_t_3) < 0) __PYX_ERR(0, 2549, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2552 * * #: Maximum 3D surface width * cudaDevAttrMaxSurface3DWidth = ccudart.cudaDeviceAttr.cudaDevAttrMaxSurface3DWidth # <<<<<<<<<<<<<< * * #: Maximum 3D surface height */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxSurface3DWidth); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2552, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxSurface3DWidth, __pyx_t_3) < 0) __PYX_ERR(0, 2552, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2555 * * #: Maximum 3D surface height * cudaDevAttrMaxSurface3DHeight = ccudart.cudaDeviceAttr.cudaDevAttrMaxSurface3DHeight # <<<<<<<<<<<<<< * * #: Maximum 3D surface depth */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxSurface3DHeight); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2555, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxSurface3DHeight, __pyx_t_3) < 0) __PYX_ERR(0, 2555, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2558 * * #: Maximum 3D surface depth * cudaDevAttrMaxSurface3DDepth = ccudart.cudaDeviceAttr.cudaDevAttrMaxSurface3DDepth # <<<<<<<<<<<<<< * * #: Maximum 1D layered surface width */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxSurface3DDepth); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2558, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxSurface3DDepth, __pyx_t_3) < 0) __PYX_ERR(0, 2558, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2561 * * #: Maximum 1D layered surface width * cudaDevAttrMaxSurface1DLayeredWidth = ccudart.cudaDeviceAttr.cudaDevAttrMaxSurface1DLayeredWidth # <<<<<<<<<<<<<< * * #: Maximum layers in a 1D layered surface */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxSurface1DLayeredWidth); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2561, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxSurface1DLayeredWi, __pyx_t_3) < 0) __PYX_ERR(0, 2561, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2564 * * #: Maximum layers in a 1D layered surface * cudaDevAttrMaxSurface1DLayeredLayers = ccudart.cudaDeviceAttr.cudaDevAttrMaxSurface1DLayeredLayers # <<<<<<<<<<<<<< * * #: Maximum 2D layered surface width */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxSurface1DLayeredLayers); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2564, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxSurface1DLayeredLa, __pyx_t_3) < 0) __PYX_ERR(0, 2564, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2567 * * #: Maximum 2D layered surface width * cudaDevAttrMaxSurface2DLayeredWidth = ccudart.cudaDeviceAttr.cudaDevAttrMaxSurface2DLayeredWidth # <<<<<<<<<<<<<< * * #: Maximum 2D layered surface height */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxSurface2DLayeredWidth); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2567, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxSurface2DLayeredWi, __pyx_t_3) < 0) __PYX_ERR(0, 2567, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2570 * * #: Maximum 2D layered surface height * cudaDevAttrMaxSurface2DLayeredHeight = ccudart.cudaDeviceAttr.cudaDevAttrMaxSurface2DLayeredHeight # <<<<<<<<<<<<<< * * #: Maximum layers in a 2D layered surface */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxSurface2DLayeredHeight); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2570, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxSurface2DLayeredHe, __pyx_t_3) < 0) __PYX_ERR(0, 2570, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2573 * * #: Maximum layers in a 2D layered surface * cudaDevAttrMaxSurface2DLayeredLayers = ccudart.cudaDeviceAttr.cudaDevAttrMaxSurface2DLayeredLayers # <<<<<<<<<<<<<< * * #: Maximum cubemap surface width */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxSurface2DLayeredLayers); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2573, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxSurface2DLayeredLa, __pyx_t_3) < 0) __PYX_ERR(0, 2573, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2576 * * #: Maximum cubemap surface width * cudaDevAttrMaxSurfaceCubemapWidth = ccudart.cudaDeviceAttr.cudaDevAttrMaxSurfaceCubemapWidth # <<<<<<<<<<<<<< * * #: Maximum cubemap layered surface width */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxSurfaceCubemapWidth); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2576, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxSurfaceCubemapWidt, __pyx_t_3) < 0) __PYX_ERR(0, 2576, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2579 * * #: Maximum cubemap layered surface width * cudaDevAttrMaxSurfaceCubemapLayeredWidth = ccudart.cudaDeviceAttr.cudaDevAttrMaxSurfaceCubemapLayeredWidth # <<<<<<<<<<<<<< * * #: Maximum layers in a cubemap layered surface */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxSurfaceCubemapLayeredWidth); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2579, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxSurfaceCubemapLaye, __pyx_t_3) < 0) __PYX_ERR(0, 2579, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2582 * * #: Maximum layers in a cubemap layered surface * cudaDevAttrMaxSurfaceCubemapLayeredLayers = ccudart.cudaDeviceAttr.cudaDevAttrMaxSurfaceCubemapLayeredLayers # <<<<<<<<<<<<<< * * #: Maximum 1D linear texture width */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxSurfaceCubemapLayeredLayers); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2582, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxSurfaceCubemapLaye_2, __pyx_t_3) < 0) __PYX_ERR(0, 2582, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2585 * * #: Maximum 1D linear texture width * cudaDevAttrMaxTexture1DLinearWidth = ccudart.cudaDeviceAttr.cudaDevAttrMaxTexture1DLinearWidth # <<<<<<<<<<<<<< * * #: Maximum 2D linear texture width */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture1DLinearWidth); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2585, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxTexture1DLinearWid, __pyx_t_3) < 0) __PYX_ERR(0, 2585, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2588 * * #: Maximum 2D linear texture width * cudaDevAttrMaxTexture2DLinearWidth = ccudart.cudaDeviceAttr.cudaDevAttrMaxTexture2DLinearWidth # <<<<<<<<<<<<<< * * #: Maximum 2D linear texture height */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture2DLinearWidth); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2588, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxTexture2DLinearWid, __pyx_t_3) < 0) __PYX_ERR(0, 2588, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2591 * * #: Maximum 2D linear texture height * cudaDevAttrMaxTexture2DLinearHeight = ccudart.cudaDeviceAttr.cudaDevAttrMaxTexture2DLinearHeight # <<<<<<<<<<<<<< * * #: Maximum 2D linear texture pitch in bytes */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture2DLinearHeight); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2591, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxTexture2DLinearHei, __pyx_t_3) < 0) __PYX_ERR(0, 2591, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2594 * * #: Maximum 2D linear texture pitch in bytes * cudaDevAttrMaxTexture2DLinearPitch = ccudart.cudaDeviceAttr.cudaDevAttrMaxTexture2DLinearPitch # <<<<<<<<<<<<<< * * #: Maximum mipmapped 2D texture width */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture2DLinearPitch); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2594, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxTexture2DLinearPit, __pyx_t_3) < 0) __PYX_ERR(0, 2594, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2597 * * #: Maximum mipmapped 2D texture width * cudaDevAttrMaxTexture2DMipmappedWidth = ccudart.cudaDeviceAttr.cudaDevAttrMaxTexture2DMipmappedWidth # <<<<<<<<<<<<<< * * #: Maximum mipmapped 2D texture height */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture2DMipmappedWidth); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2597, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxTexture2DMipmapped, __pyx_t_3) < 0) __PYX_ERR(0, 2597, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2600 * * #: Maximum mipmapped 2D texture height * cudaDevAttrMaxTexture2DMipmappedHeight = ccudart.cudaDeviceAttr.cudaDevAttrMaxTexture2DMipmappedHeight # <<<<<<<<<<<<<< * * #: Major compute capability version number */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture2DMipmappedHeight); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2600, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxTexture2DMipmapped_2, __pyx_t_3) < 0) __PYX_ERR(0, 2600, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2603 * * #: Major compute capability version number * cudaDevAttrComputeCapabilityMajor = ccudart.cudaDeviceAttr.cudaDevAttrComputeCapabilityMajor # <<<<<<<<<<<<<< * * #: Minor compute capability version number */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrComputeCapabilityMajor); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2603, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrComputeCapabilityMajo, __pyx_t_3) < 0) __PYX_ERR(0, 2603, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2606 * * #: Minor compute capability version number * cudaDevAttrComputeCapabilityMinor = ccudart.cudaDeviceAttr.cudaDevAttrComputeCapabilityMinor # <<<<<<<<<<<<<< * * #: Maximum mipmapped 1D texture width */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrComputeCapabilityMinor); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2606, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrComputeCapabilityMino, __pyx_t_3) < 0) __PYX_ERR(0, 2606, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2609 * * #: Maximum mipmapped 1D texture width * cudaDevAttrMaxTexture1DMipmappedWidth = ccudart.cudaDeviceAttr.cudaDevAttrMaxTexture1DMipmappedWidth # <<<<<<<<<<<<<< * * #: Device supports stream priorities */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture1DMipmappedWidth); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2609, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxTexture1DMipmapped, __pyx_t_3) < 0) __PYX_ERR(0, 2609, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2612 * * #: Device supports stream priorities * cudaDevAttrStreamPrioritiesSupported = ccudart.cudaDeviceAttr.cudaDevAttrStreamPrioritiesSupported # <<<<<<<<<<<<<< * * #: Device supports caching globals in L1 */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrStreamPrioritiesSupported); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2612, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrStreamPrioritiesSuppo, __pyx_t_3) < 0) __PYX_ERR(0, 2612, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2615 * * #: Device supports caching globals in L1 * cudaDevAttrGlobalL1CacheSupported = ccudart.cudaDeviceAttr.cudaDevAttrGlobalL1CacheSupported # <<<<<<<<<<<<<< * * #: Device supports caching locals in L1 */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrGlobalL1CacheSupported); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2615, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrGlobalL1CacheSupporte, __pyx_t_3) < 0) __PYX_ERR(0, 2615, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2618 * * #: Device supports caching locals in L1 * cudaDevAttrLocalL1CacheSupported = ccudart.cudaDeviceAttr.cudaDevAttrLocalL1CacheSupported # <<<<<<<<<<<<<< * * #: Maximum shared memory available per multiprocessor in bytes */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrLocalL1CacheSupported); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2618, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrLocalL1CacheSupported, __pyx_t_3) < 0) __PYX_ERR(0, 2618, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2621 * * #: Maximum shared memory available per multiprocessor in bytes * cudaDevAttrMaxSharedMemoryPerMultiprocessor = ccudart.cudaDeviceAttr.cudaDevAttrMaxSharedMemoryPerMultiprocessor # <<<<<<<<<<<<<< * * #: Maximum number of 32-bit registers available per multiprocessor */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxSharedMemoryPerMultiprocessor); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2621, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxSharedMemoryPerMul, __pyx_t_3) < 0) __PYX_ERR(0, 2621, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2624 * * #: Maximum number of 32-bit registers available per multiprocessor * cudaDevAttrMaxRegistersPerMultiprocessor = ccudart.cudaDeviceAttr.cudaDevAttrMaxRegistersPerMultiprocessor # <<<<<<<<<<<<<< * * #: Device can allocate managed memory on this system */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxRegistersPerMultiprocessor); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2624, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxRegistersPerMultip, __pyx_t_3) < 0) __PYX_ERR(0, 2624, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2627 * * #: Device can allocate managed memory on this system * cudaDevAttrManagedMemory = ccudart.cudaDeviceAttr.cudaDevAttrManagedMemory # <<<<<<<<<<<<<< * * #: Device is on a multi-GPU board */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrManagedMemory); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2627, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrManagedMemory, __pyx_t_3) < 0) __PYX_ERR(0, 2627, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2630 * * #: Device is on a multi-GPU board * cudaDevAttrIsMultiGpuBoard = ccudart.cudaDeviceAttr.cudaDevAttrIsMultiGpuBoard # <<<<<<<<<<<<<< * * #: Unique identifier for a group of devices on the same multi-GPU board */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrIsMultiGpuBoard); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2630, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrIsMultiGpuBoard, __pyx_t_3) < 0) __PYX_ERR(0, 2630, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2633 * * #: Unique identifier for a group of devices on the same multi-GPU board * cudaDevAttrMultiGpuBoardGroupID = ccudart.cudaDeviceAttr.cudaDevAttrMultiGpuBoardGroupID # <<<<<<<<<<<<<< * * #: Link between the device and the host supports native atomic */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMultiGpuBoardGroupID); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2633, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMultiGpuBoardGroupID, __pyx_t_3) < 0) __PYX_ERR(0, 2633, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2637 * #: Link between the device and the host supports native atomic * #: operations * cudaDevAttrHostNativeAtomicSupported = ccudart.cudaDeviceAttr.cudaDevAttrHostNativeAtomicSupported # <<<<<<<<<<<<<< * * #: Ratio of single precision performance (in floating-point operations */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrHostNativeAtomicSupported); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2637, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrHostNativeAtomicSuppo, __pyx_t_3) < 0) __PYX_ERR(0, 2637, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2641 * #: Ratio of single precision performance (in floating-point operations * #: per second) to double precision performance * cudaDevAttrSingleToDoublePrecisionPerfRatio = ccudart.cudaDeviceAttr.cudaDevAttrSingleToDoublePrecisionPerfRatio # <<<<<<<<<<<<<< * * #: Device supports coherently accessing pageable memory without calling */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrSingleToDoublePrecisionPerfRatio); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2641, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrSingleToDoublePrecisi, __pyx_t_3) < 0) __PYX_ERR(0, 2641, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2645 * #: Device supports coherently accessing pageable memory without calling * #: cudaHostRegister on it * cudaDevAttrPageableMemoryAccess = ccudart.cudaDeviceAttr.cudaDevAttrPageableMemoryAccess # <<<<<<<<<<<<<< * * #: Device can coherently access managed memory concurrently with the */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrPageableMemoryAccess); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2645, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrPageableMemoryAccess, __pyx_t_3) < 0) __PYX_ERR(0, 2645, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2649 * #: Device can coherently access managed memory concurrently with the * #: CPU * cudaDevAttrConcurrentManagedAccess = ccudart.cudaDeviceAttr.cudaDevAttrConcurrentManagedAccess # <<<<<<<<<<<<<< * * #: Device supports Compute Preemption */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrConcurrentManagedAccess); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrConcurrentManagedAcce, __pyx_t_3) < 0) __PYX_ERR(0, 2649, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2652 * * #: Device supports Compute Preemption * cudaDevAttrComputePreemptionSupported = ccudart.cudaDeviceAttr.cudaDevAttrComputePreemptionSupported # <<<<<<<<<<<<<< * * #: Device can access host registered memory at the same virtual address */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrComputePreemptionSupported); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2652, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrComputePreemptionSupp, __pyx_t_3) < 0) __PYX_ERR(0, 2652, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2656 * #: Device can access host registered memory at the same virtual address * #: as the CPU * cudaDevAttrCanUseHostPointerForRegisteredMem = ccudart.cudaDeviceAttr.cudaDevAttrCanUseHostPointerForRegisteredMem # <<<<<<<<<<<<<< * cudaDevAttrReserved92 = ccudart.cudaDeviceAttr.cudaDevAttrReserved92 * cudaDevAttrReserved93 = ccudart.cudaDeviceAttr.cudaDevAttrReserved93 */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrCanUseHostPointerForRegisteredMem); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2656, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrCanUseHostPointerForR, __pyx_t_3) < 0) __PYX_ERR(0, 2656, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2657 * #: as the CPU * cudaDevAttrCanUseHostPointerForRegisteredMem = ccudart.cudaDeviceAttr.cudaDevAttrCanUseHostPointerForRegisteredMem * cudaDevAttrReserved92 = ccudart.cudaDeviceAttr.cudaDevAttrReserved92 # <<<<<<<<<<<<<< * cudaDevAttrReserved93 = ccudart.cudaDeviceAttr.cudaDevAttrReserved93 * cudaDevAttrReserved94 = ccudart.cudaDeviceAttr.cudaDevAttrReserved94 */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrReserved92); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2657, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrReserved92, __pyx_t_3) < 0) __PYX_ERR(0, 2657, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2658 * cudaDevAttrCanUseHostPointerForRegisteredMem = ccudart.cudaDeviceAttr.cudaDevAttrCanUseHostPointerForRegisteredMem * cudaDevAttrReserved92 = ccudart.cudaDeviceAttr.cudaDevAttrReserved92 * cudaDevAttrReserved93 = ccudart.cudaDeviceAttr.cudaDevAttrReserved93 # <<<<<<<<<<<<<< * cudaDevAttrReserved94 = ccudart.cudaDeviceAttr.cudaDevAttrReserved94 * */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrReserved93); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2658, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrReserved93, __pyx_t_3) < 0) __PYX_ERR(0, 2658, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2659 * cudaDevAttrReserved92 = ccudart.cudaDeviceAttr.cudaDevAttrReserved92 * cudaDevAttrReserved93 = ccudart.cudaDeviceAttr.cudaDevAttrReserved93 * cudaDevAttrReserved94 = ccudart.cudaDeviceAttr.cudaDevAttrReserved94 # <<<<<<<<<<<<<< * * #: Device supports launching cooperative kernels via */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrReserved94); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2659, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrReserved94, __pyx_t_3) < 0) __PYX_ERR(0, 2659, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2663 * #: Device supports launching cooperative kernels via * #: :py:obj:`~.cudaLaunchCooperativeKernel` * cudaDevAttrCooperativeLaunch = ccudart.cudaDeviceAttr.cudaDevAttrCooperativeLaunch # <<<<<<<<<<<<<< * * #: Deprecated, cudaLaunchCooperativeKernelMultiDevice is deprecated. */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrCooperativeLaunch); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2663, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrCooperativeLaunch, __pyx_t_3) < 0) __PYX_ERR(0, 2663, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2666 * * #: Deprecated, cudaLaunchCooperativeKernelMultiDevice is deprecated. * cudaDevAttrCooperativeMultiDeviceLaunch = ccudart.cudaDeviceAttr.cudaDevAttrCooperativeMultiDeviceLaunch # <<<<<<<<<<<<<< * * #: The maximum optin shared memory per block. This value may vary by */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrCooperativeMultiDeviceLaunch); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2666, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrCooperativeMultiDevic, __pyx_t_3) < 0) __PYX_ERR(0, 2666, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2670 * #: The maximum optin shared memory per block. This value may vary by * #: chip. See :py:obj:`~.cudaFuncSetAttribute` * cudaDevAttrMaxSharedMemoryPerBlockOptin = ccudart.cudaDeviceAttr.cudaDevAttrMaxSharedMemoryPerBlockOptin # <<<<<<<<<<<<<< * * #: Device supports flushing of outstanding remote writes. */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxSharedMemoryPerBlockOptin); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2670, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxSharedMemoryPerBlo_2, __pyx_t_3) < 0) __PYX_ERR(0, 2670, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2673 * * #: Device supports flushing of outstanding remote writes. * cudaDevAttrCanFlushRemoteWrites = ccudart.cudaDeviceAttr.cudaDevAttrCanFlushRemoteWrites # <<<<<<<<<<<<<< * * #: Device supports host memory registration via */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrCanFlushRemoteWrites); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2673, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrCanFlushRemoteWrites, __pyx_t_3) < 0) __PYX_ERR(0, 2673, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2677 * #: Device supports host memory registration via * #: :py:obj:`~.cudaHostRegister`. * cudaDevAttrHostRegisterSupported = ccudart.cudaDeviceAttr.cudaDevAttrHostRegisterSupported # <<<<<<<<<<<<<< * * #: Device accesses pageable memory via the host's page tables. */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrHostRegisterSupported); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2677, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrHostRegisterSupported, __pyx_t_3) < 0) __PYX_ERR(0, 2677, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2680 * * #: Device accesses pageable memory via the host's page tables. * cudaDevAttrPageableMemoryAccessUsesHostPageTables = ccudart.cudaDeviceAttr.cudaDevAttrPageableMemoryAccessUsesHostPageTables # <<<<<<<<<<<<<< * * #: Host can directly access managed memory on the device without */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrPageableMemoryAccessUsesHostPageTables); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2680, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrPageableMemoryAccessU, __pyx_t_3) < 0) __PYX_ERR(0, 2680, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2684 * #: Host can directly access managed memory on the device without * #: migration. * cudaDevAttrDirectManagedMemAccessFromHost = ccudart.cudaDeviceAttr.cudaDevAttrDirectManagedMemAccessFromHost # <<<<<<<<<<<<<< * * #: Maximum number of blocks per multiprocessor */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrDirectManagedMemAccessFromHost); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2684, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrDirectManagedMemAcces, __pyx_t_3) < 0) __PYX_ERR(0, 2684, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2687 * * #: Maximum number of blocks per multiprocessor * cudaDevAttrMaxBlocksPerMultiprocessor = ccudart.cudaDeviceAttr.cudaDevAttrMaxBlocksPerMultiprocessor # <<<<<<<<<<<<<< * * #: Maximum L2 persisting lines capacity setting in bytes. */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxBlocksPerMultiprocessor); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2687, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxBlocksPerMultiproc, __pyx_t_3) < 0) __PYX_ERR(0, 2687, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2690 * * #: Maximum L2 persisting lines capacity setting in bytes. * cudaDevAttrMaxPersistingL2CacheSize = ccudart.cudaDeviceAttr.cudaDevAttrMaxPersistingL2CacheSize # <<<<<<<<<<<<<< * * #: Maximum value of :py:obj:`~.cudaAccessPolicyWindow.num_bytes`. */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxPersistingL2CacheSize); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2690, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxPersistingL2CacheS, __pyx_t_3) < 0) __PYX_ERR(0, 2690, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2693 * * #: Maximum value of :py:obj:`~.cudaAccessPolicyWindow.num_bytes`. * cudaDevAttrMaxAccessPolicyWindowSize = ccudart.cudaDeviceAttr.cudaDevAttrMaxAccessPolicyWindowSize # <<<<<<<<<<<<<< * * #: Shared memory reserved by CUDA driver per block in bytes */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxAccessPolicyWindowSize); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2693, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxAccessPolicyWindow, __pyx_t_3) < 0) __PYX_ERR(0, 2693, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2696 * * #: Shared memory reserved by CUDA driver per block in bytes * cudaDevAttrReservedSharedMemoryPerBlock = ccudart.cudaDeviceAttr.cudaDevAttrReservedSharedMemoryPerBlock # <<<<<<<<<<<<<< * * #: Device supports sparse CUDA arrays and sparse CUDA mipmapped arrays */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrReservedSharedMemoryPerBlock); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2696, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrReservedSharedMemoryP, __pyx_t_3) < 0) __PYX_ERR(0, 2696, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2699 * * #: Device supports sparse CUDA arrays and sparse CUDA mipmapped arrays * cudaDevAttrSparseCudaArraySupported = ccudart.cudaDeviceAttr.cudaDevAttrSparseCudaArraySupported # <<<<<<<<<<<<<< * * #: Device supports using the :py:obj:`~.cudaHostRegister` flag */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrSparseCudaArraySupported); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2699, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrSparseCudaArraySuppor, __pyx_t_3) < 0) __PYX_ERR(0, 2699, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2704 * #: cudaHostRegisterReadOnly to register memory that must be mapped as * #: read-only to the GPU * cudaDevAttrHostRegisterReadOnlySupported = ccudart.cudaDeviceAttr.cudaDevAttrHostRegisterReadOnlySupported # <<<<<<<<<<<<<< * * #: External timeline semaphore interop is supported on the device */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrHostRegisterReadOnlySupported); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2704, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrHostRegisterReadOnlyS, __pyx_t_3) < 0) __PYX_ERR(0, 2704, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2707 * * #: External timeline semaphore interop is supported on the device * cudaDevAttrTimelineSemaphoreInteropSupported = ccudart.cudaDeviceAttr.cudaDevAttrTimelineSemaphoreInteropSupported # <<<<<<<<<<<<<< * * #: Deprecated, External timeline semaphore interop is supported on the */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrTimelineSemaphoreInteropSupported); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2707, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrTimelineSemaphoreInte, __pyx_t_3) < 0) __PYX_ERR(0, 2707, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2711 * #: Deprecated, External timeline semaphore interop is supported on the * #: device * cudaDevAttrMaxTimelineSemaphoreInteropSupported = ccudart.cudaDeviceAttr.cudaDevAttrMaxTimelineSemaphoreInteropSupported # <<<<<<<<<<<<<< * * #: Device supports using the :py:obj:`~.cudaMallocAsync` and */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMaxTimelineSemaphoreInteropSupported); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2711, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMaxTimelineSemaphoreI, __pyx_t_3) < 0) __PYX_ERR(0, 2711, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2715 * #: Device supports using the :py:obj:`~.cudaMallocAsync` and * #: :py:obj:`~.cudaMemPool` family of APIs * cudaDevAttrMemoryPoolsSupported = ccudart.cudaDeviceAttr.cudaDevAttrMemoryPoolsSupported # <<<<<<<<<<<<<< * * #: Device supports GPUDirect RDMA APIs, like nvidia_p2p_get_pages (see */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMemoryPoolsSupported); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2715, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMemoryPoolsSupported, __pyx_t_3) < 0) __PYX_ERR(0, 2715, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2719 * #: Device supports GPUDirect RDMA APIs, like nvidia_p2p_get_pages (see * #: https://docs.nvidia.com/cuda/gpudirect-rdma for more information) * cudaDevAttrGPUDirectRDMASupported = ccudart.cudaDeviceAttr.cudaDevAttrGPUDirectRDMASupported # <<<<<<<<<<<<<< * * #: The returned attribute shall be interpreted as a bitmask, where the */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrGPUDirectRDMASupported); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2719, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrGPUDirectRDMASupporte, __pyx_t_3) < 0) __PYX_ERR(0, 2719, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2724 * #: individual bits are listed in the * #: :py:obj:`~.cudaFlushGPUDirectRDMAWritesOptions` enum * cudaDevAttrGPUDirectRDMAFlushWritesOptions = ccudart.cudaDeviceAttr.cudaDevAttrGPUDirectRDMAFlushWritesOptions # <<<<<<<<<<<<<< * * #: GPUDirect RDMA writes to the device do not need to be flushed for */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrGPUDirectRDMAFlushWritesOptions); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2724, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrGPUDirectRDMAFlushWri, __pyx_t_3) < 0) __PYX_ERR(0, 2724, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2730 * #: :py:obj:`~.cudaGPUDirectRDMAWritesOrdering` for the numerical values * #: returned here. * cudaDevAttrGPUDirectRDMAWritesOrdering = ccudart.cudaDeviceAttr.cudaDevAttrGPUDirectRDMAWritesOrdering # <<<<<<<<<<<<<< * * #: Handle types supported with mempool based IPC */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrGPUDirectRDMAWritesOrdering); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2730, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrGPUDirectRDMAWritesOr, __pyx_t_3) < 0) __PYX_ERR(0, 2730, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2733 * * #: Handle types supported with mempool based IPC * cudaDevAttrMemoryPoolSupportedHandleTypes = ccudart.cudaDeviceAttr.cudaDevAttrMemoryPoolSupportedHandleTypes # <<<<<<<<<<<<<< * * #: Indicates device supports cluster launch */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMemoryPoolSupportedHandleTypes); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2733, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMemoryPoolSupportedHa, __pyx_t_3) < 0) __PYX_ERR(0, 2733, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2736 * * #: Indicates device supports cluster launch * cudaDevAttrClusterLaunch = ccudart.cudaDeviceAttr.cudaDevAttrClusterLaunch # <<<<<<<<<<<<<< * * #: Device supports deferred mapping CUDA arrays and CUDA mipmapped */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrClusterLaunch); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2736, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrClusterLaunch, __pyx_t_3) < 0) __PYX_ERR(0, 2736, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2740 * #: Device supports deferred mapping CUDA arrays and CUDA mipmapped * #: arrays * cudaDevAttrDeferredMappingCudaArraySupported = ccudart.cudaDeviceAttr.cudaDevAttrDeferredMappingCudaArraySupported # <<<<<<<<<<<<<< * cudaDevAttrReserved122 = ccudart.cudaDeviceAttr.cudaDevAttrReserved122 * cudaDevAttrReserved123 = ccudart.cudaDeviceAttr.cudaDevAttrReserved123 */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrDeferredMappingCudaArraySupported); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2740, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrDeferredMappingCudaAr, __pyx_t_3) < 0) __PYX_ERR(0, 2740, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2741 * #: arrays * cudaDevAttrDeferredMappingCudaArraySupported = ccudart.cudaDeviceAttr.cudaDevAttrDeferredMappingCudaArraySupported * cudaDevAttrReserved122 = ccudart.cudaDeviceAttr.cudaDevAttrReserved122 # <<<<<<<<<<<<<< * cudaDevAttrReserved123 = ccudart.cudaDeviceAttr.cudaDevAttrReserved123 * cudaDevAttrReserved124 = ccudart.cudaDeviceAttr.cudaDevAttrReserved124 */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrReserved122); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2741, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrReserved122, __pyx_t_3) < 0) __PYX_ERR(0, 2741, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2742 * cudaDevAttrDeferredMappingCudaArraySupported = ccudart.cudaDeviceAttr.cudaDevAttrDeferredMappingCudaArraySupported * cudaDevAttrReserved122 = ccudart.cudaDeviceAttr.cudaDevAttrReserved122 * cudaDevAttrReserved123 = ccudart.cudaDeviceAttr.cudaDevAttrReserved123 # <<<<<<<<<<<<<< * cudaDevAttrReserved124 = ccudart.cudaDeviceAttr.cudaDevAttrReserved124 * */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrReserved123); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2742, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrReserved123, __pyx_t_3) < 0) __PYX_ERR(0, 2742, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2743 * cudaDevAttrReserved122 = ccudart.cudaDeviceAttr.cudaDevAttrReserved122 * cudaDevAttrReserved123 = ccudart.cudaDeviceAttr.cudaDevAttrReserved123 * cudaDevAttrReserved124 = ccudart.cudaDeviceAttr.cudaDevAttrReserved124 # <<<<<<<<<<<<<< * * #: Device supports IPC Events. */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrReserved124); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2743, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrReserved124, __pyx_t_3) < 0) __PYX_ERR(0, 2743, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2746 * * #: Device supports IPC Events. * cudaDevAttrIpcEventSupport = ccudart.cudaDeviceAttr.cudaDevAttrIpcEventSupport # <<<<<<<<<<<<<< * * #: Number of memory synchronization domains the device supports. */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrIpcEventSupport); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2746, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrIpcEventSupport, __pyx_t_3) < 0) __PYX_ERR(0, 2746, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2749 * * #: Number of memory synchronization domains the device supports. * cudaDevAttrMemSyncDomainCount = ccudart.cudaDeviceAttr.cudaDevAttrMemSyncDomainCount # <<<<<<<<<<<<<< * cudaDevAttrReserved127 = ccudart.cudaDeviceAttr.cudaDevAttrReserved127 * cudaDevAttrReserved128 = ccudart.cudaDeviceAttr.cudaDevAttrReserved128 */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMemSyncDomainCount); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2749, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMemSyncDomainCount, __pyx_t_3) < 0) __PYX_ERR(0, 2749, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2750 * #: Number of memory synchronization domains the device supports. * cudaDevAttrMemSyncDomainCount = ccudart.cudaDeviceAttr.cudaDevAttrMemSyncDomainCount * cudaDevAttrReserved127 = ccudart.cudaDeviceAttr.cudaDevAttrReserved127 # <<<<<<<<<<<<<< * cudaDevAttrReserved128 = ccudart.cudaDeviceAttr.cudaDevAttrReserved128 * cudaDevAttrReserved129 = ccudart.cudaDeviceAttr.cudaDevAttrReserved129 */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrReserved127); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2750, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrReserved127, __pyx_t_3) < 0) __PYX_ERR(0, 2750, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2751 * cudaDevAttrMemSyncDomainCount = ccudart.cudaDeviceAttr.cudaDevAttrMemSyncDomainCount * cudaDevAttrReserved127 = ccudart.cudaDeviceAttr.cudaDevAttrReserved127 * cudaDevAttrReserved128 = ccudart.cudaDeviceAttr.cudaDevAttrReserved128 # <<<<<<<<<<<<<< * cudaDevAttrReserved129 = ccudart.cudaDeviceAttr.cudaDevAttrReserved129 * */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrReserved128); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2751, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrReserved128, __pyx_t_3) < 0) __PYX_ERR(0, 2751, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2752 * cudaDevAttrReserved127 = ccudart.cudaDeviceAttr.cudaDevAttrReserved127 * cudaDevAttrReserved128 = ccudart.cudaDeviceAttr.cudaDevAttrReserved128 * cudaDevAttrReserved129 = ccudart.cudaDeviceAttr.cudaDevAttrReserved129 # <<<<<<<<<<<<<< * * #: NUMA configuration of a device: value is of type */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrReserved129); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2752, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrReserved129, __pyx_t_3) < 0) __PYX_ERR(0, 2752, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2756 * #: NUMA configuration of a device: value is of type * #: :py:obj:`~.cudaDeviceNumaConfig` enum * cudaDevAttrNumaConfig = ccudart.cudaDeviceAttr.cudaDevAttrNumaConfig # <<<<<<<<<<<<<< * * #: NUMA node ID of the GPU memory */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrNumaConfig); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2756, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrNumaConfig, __pyx_t_3) < 0) __PYX_ERR(0, 2756, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2759 * * #: NUMA node ID of the GPU memory * cudaDevAttrNumaId = ccudart.cudaDeviceAttr.cudaDevAttrNumaId # <<<<<<<<<<<<<< * cudaDevAttrReserved132 = ccudart.cudaDeviceAttr.cudaDevAttrReserved132 * */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrNumaId); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2759, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrNumaId, __pyx_t_3) < 0) __PYX_ERR(0, 2759, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2760 * #: NUMA node ID of the GPU memory * cudaDevAttrNumaId = ccudart.cudaDeviceAttr.cudaDevAttrNumaId * cudaDevAttrReserved132 = ccudart.cudaDeviceAttr.cudaDevAttrReserved132 # <<<<<<<<<<<<<< * * #: Contexts created on this device will be shared via MPS */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrReserved132); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2760, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrReserved132, __pyx_t_3) < 0) __PYX_ERR(0, 2760, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2763 * * #: Contexts created on this device will be shared via MPS * cudaDevAttrMpsEnabled = ccudart.cudaDeviceAttr.cudaDevAttrMpsEnabled # <<<<<<<<<<<<<< * * #: NUMA ID of the host node closest to the device. Returns -1 when */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMpsEnabled); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2763, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMpsEnabled, __pyx_t_3) < 0) __PYX_ERR(0, 2763, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2767 * #: NUMA ID of the host node closest to the device. Returns -1 when * #: system does not support NUMA. * cudaDevAttrHostNumaId = ccudart.cudaDeviceAttr.cudaDevAttrHostNumaId # <<<<<<<<<<<<<< * * #: Device supports CIG with D3D12. */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrHostNumaId); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2767, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrHostNumaId, __pyx_t_3) < 0) __PYX_ERR(0, 2767, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2770 * * #: Device supports CIG with D3D12. * cudaDevAttrD3D12CigSupported = ccudart.cudaDeviceAttr.cudaDevAttrD3D12CigSupported # <<<<<<<<<<<<<< * cudaDevAttrMax = ccudart.cudaDeviceAttr.cudaDevAttrMax * */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrD3D12CigSupported); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2770, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrD3D12CigSupported, __pyx_t_3) < 0) __PYX_ERR(0, 2770, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2771 * #: Device supports CIG with D3D12. * cudaDevAttrD3D12CigSupported = ccudart.cudaDeviceAttr.cudaDevAttrD3D12CigSupported * cudaDevAttrMax = ccudart.cudaDeviceAttr.cudaDevAttrMax # <<<<<<<<<<<<<< * * class cudaMemPoolAttr(IntEnum): */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaDeviceAttr(cudaDevAttrMax); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2771, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaDevAttrMax, __pyx_t_3) < 0) __PYX_ERR(0, 2771, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2377 * cudaFlushGPUDirectRDMAWritesTargetCurrentDevice = ccudart.cudaFlushGPUDirectRDMAWritesTarget.cudaFlushGPUDirectRDMAWritesTargetCurrentDevice * * class cudaDeviceAttr(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA device attributes */ __pyx_t_3 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_n_s_cudaDeviceAttr, __pyx_t_2, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2377, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceAttr, __pyx_t_3) < 0) __PYX_ERR(0, 2377, __pyx_L1_error) __Pyx_DECREF(__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; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":2773 * cudaDevAttrMax = ccudart.cudaDeviceAttr.cudaDevAttrMax * * class cudaMemPoolAttr(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA memory pool attributes */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2773, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2773, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 2773, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2773, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2773, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_n_s_cudaMemPoolAttr, __pyx_n_s_cudaMemPoolAttr, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_CUDA_memory_pool_attributes); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2773, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_2 != __pyx_t_4) { if (unlikely((PyDict_SetItemString(__pyx_t_3, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 2773, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2783 * #: events and null stream interactions can create the required stream * #: ordered dependencies. (default enabled) * cudaMemPoolReuseFollowEventDependencies = ccudart.cudaMemPoolAttr.cudaMemPoolReuseFollowEventDependencies # <<<<<<<<<<<<<< * * #: (value type = int) Allow reuse of already completed frees when there */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaMemPoolAttr(cudaMemPoolReuseFollowEventDependencies); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2783, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaMemPoolReuseFollowEventDepen, __pyx_t_4) < 0) __PYX_ERR(0, 2783, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2787 * #: (value type = int) Allow reuse of already completed frees when there * #: is no dependency between the free and allocation. (default enabled) * cudaMemPoolReuseAllowOpportunistic = ccudart.cudaMemPoolAttr.cudaMemPoolReuseAllowOpportunistic # <<<<<<<<<<<<<< * * #: (value type = int) Allow cuMemAllocAsync to insert new stream */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaMemPoolAttr(cudaMemPoolReuseAllowOpportunistic); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2787, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaMemPoolReuseAllowOpportunist, __pyx_t_4) < 0) __PYX_ERR(0, 2787, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2792 * #: dependencies in order to establish the stream ordering required to * #: reuse a piece of memory released by cuFreeAsync (default enabled). * cudaMemPoolReuseAllowInternalDependencies = ccudart.cudaMemPoolAttr.cudaMemPoolReuseAllowInternalDependencies # <<<<<<<<<<<<<< * * #: (value type = cuuint64_t) Amount of reserved memory in bytes to hold */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaMemPoolAttr(cudaMemPoolReuseAllowInternalDependencies); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2792, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaMemPoolReuseAllowInternalDep, __pyx_t_4) < 0) __PYX_ERR(0, 2792, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2799 * #: the allocator will try to release memory back to the OS on the next * #: call to stream, event or context synchronize. (default 0) * cudaMemPoolAttrReleaseThreshold = ccudart.cudaMemPoolAttr.cudaMemPoolAttrReleaseThreshold # <<<<<<<<<<<<<< * * #: (value type = cuuint64_t) Amount of backing memory currently */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaMemPoolAttr(cudaMemPoolAttrReleaseThreshold); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2799, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaMemPoolAttrReleaseThreshold, __pyx_t_4) < 0) __PYX_ERR(0, 2799, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2803 * #: (value type = cuuint64_t) Amount of backing memory currently * #: allocated for the mempool. * cudaMemPoolAttrReservedMemCurrent = ccudart.cudaMemPoolAttr.cudaMemPoolAttrReservedMemCurrent # <<<<<<<<<<<<<< * * #: (value type = cuuint64_t) High watermark of backing memory allocated */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaMemPoolAttr(cudaMemPoolAttrReservedMemCurrent); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2803, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaMemPoolAttrReservedMemCurren, __pyx_t_4) < 0) __PYX_ERR(0, 2803, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2808 * #: for the mempool since the last time it was reset. High watermark can * #: only be reset to zero. * cudaMemPoolAttrReservedMemHigh = ccudart.cudaMemPoolAttr.cudaMemPoolAttrReservedMemHigh # <<<<<<<<<<<<<< * * #: (value type = cuuint64_t) Amount of memory from the pool that is */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaMemPoolAttr(cudaMemPoolAttrReservedMemHigh); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2808, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaMemPoolAttrReservedMemHigh, __pyx_t_4) < 0) __PYX_ERR(0, 2808, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2812 * #: (value type = cuuint64_t) Amount of memory from the pool that is * #: currently in use by the application. * cudaMemPoolAttrUsedMemCurrent = ccudart.cudaMemPoolAttr.cudaMemPoolAttrUsedMemCurrent # <<<<<<<<<<<<<< * * #: (value type = cuuint64_t) High watermark of the amount of memory */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaMemPoolAttr(cudaMemPoolAttrUsedMemCurrent); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2812, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaMemPoolAttrUsedMemCurrent, __pyx_t_4) < 0) __PYX_ERR(0, 2812, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2817 * #: 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 = ccudart.cudaMemPoolAttr.cudaMemPoolAttrUsedMemHigh # <<<<<<<<<<<<<< * * class cudaMemLocationType(IntEnum): */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaMemPoolAttr(cudaMemPoolAttrUsedMemHigh); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2817, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaMemPoolAttrUsedMemHigh, __pyx_t_4) < 0) __PYX_ERR(0, 2817, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2773 * cudaDevAttrMax = ccudart.cudaDeviceAttr.cudaDevAttrMax * * class cudaMemPoolAttr(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA memory pool attributes */ __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_n_s_cudaMemPoolAttr, __pyx_t_2, __pyx_t_3, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2773, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemPoolAttr, __pyx_t_4) < 0) __PYX_ERR(0, 2773, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":2819 * cudaMemPoolAttrUsedMemHigh = ccudart.cudaMemPoolAttr.cudaMemPoolAttrUsedMemHigh * * class cudaMemLocationType(IntEnum): # <<<<<<<<<<<<<< * """ * Specifies the type of location */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2819, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2819, __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)) __PYX_ERR(0, 2819, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2819, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2819, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_3, __pyx_t_2, __pyx_n_s_cudaMemLocationType, __pyx_n_s_cudaMemLocationType, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_Specifies_the_type_of_location); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2819, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_2 != __pyx_t_5) { if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_5) < 0))) __PYX_ERR(0, 2819, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2823 * Specifies the type of location * """ * cudaMemLocationTypeInvalid = ccudart.cudaMemLocationType.cudaMemLocationTypeInvalid # <<<<<<<<<<<<<< * * #: Location is a device location, thus id is a device ordinal */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaMemLocationType(cudaMemLocationTypeInvalid); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2823, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaMemLocationTypeInvalid, __pyx_t_5) < 0) __PYX_ERR(0, 2823, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2826 * * #: Location is a device location, thus id is a device ordinal * cudaMemLocationTypeDevice = ccudart.cudaMemLocationType.cudaMemLocationTypeDevice # <<<<<<<<<<<<<< * * #: Location is host, id is ignored */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaMemLocationType(cudaMemLocationTypeDevice); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2826, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaMemLocationTypeDevice, __pyx_t_5) < 0) __PYX_ERR(0, 2826, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2829 * * #: Location is host, id is ignored * cudaMemLocationTypeHost = ccudart.cudaMemLocationType.cudaMemLocationTypeHost # <<<<<<<<<<<<<< * * #: Location is a host NUMA node, thus id is a host NUMA node id */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaMemLocationType(cudaMemLocationTypeHost); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2829, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaMemLocationTypeHost, __pyx_t_5) < 0) __PYX_ERR(0, 2829, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2832 * * #: Location is a host NUMA node, thus id is a host NUMA node id * cudaMemLocationTypeHostNuma = ccudart.cudaMemLocationType.cudaMemLocationTypeHostNuma # <<<<<<<<<<<<<< * * #: Location is the host NUMA node closest to the current thread's CPU, */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaMemLocationType(cudaMemLocationTypeHostNuma); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2832, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaMemLocationTypeHostNuma, __pyx_t_5) < 0) __PYX_ERR(0, 2832, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2836 * #: Location is the host NUMA node closest to the current thread's CPU, * #: id is ignored * cudaMemLocationTypeHostNumaCurrent = ccudart.cudaMemLocationType.cudaMemLocationTypeHostNumaCurrent # <<<<<<<<<<<<<< * * class cudaMemAccessFlags(IntEnum): */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaMemLocationType(cudaMemLocationTypeHostNumaCurrent); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2836, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaMemLocationTypeHostNumaCurre, __pyx_t_5) < 0) __PYX_ERR(0, 2836, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2819 * cudaMemPoolAttrUsedMemHigh = ccudart.cudaMemPoolAttr.cudaMemPoolAttrUsedMemHigh * * class cudaMemLocationType(IntEnum): # <<<<<<<<<<<<<< * """ * Specifies the type of location */ __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_3, __pyx_n_s_cudaMemLocationType, __pyx_t_2, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2819, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemLocationType, __pyx_t_5) < 0) __PYX_ERR(0, 2819, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":2838 * cudaMemLocationTypeHostNumaCurrent = ccudart.cudaMemLocationType.cudaMemLocationTypeHostNumaCurrent * * class cudaMemAccessFlags(IntEnum): # <<<<<<<<<<<<<< * """ * Specifies the memory protection flags for mapping. */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2838, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2838, __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)) __PYX_ERR(0, 2838, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2838, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2838, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_2, __pyx_n_s_cudaMemAccessFlags, __pyx_n_s_cudaMemAccessFlags, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_Specifies_the_memory_protection); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2838, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_2 != __pyx_t_3) { if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_3) < 0))) __PYX_ERR(0, 2838, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2844 * * #: Default, make the address range not accessible * cudaMemAccessFlagsProtNone = ccudart.cudaMemAccessFlags.cudaMemAccessFlagsProtNone # <<<<<<<<<<<<<< * * #: Make the address range read accessible */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaMemAccessFlags(cudaMemAccessFlagsProtNone); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2844, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaMemAccessFlagsProtNone, __pyx_t_3) < 0) __PYX_ERR(0, 2844, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2847 * * #: Make the address range read accessible * cudaMemAccessFlagsProtRead = ccudart.cudaMemAccessFlags.cudaMemAccessFlagsProtRead # <<<<<<<<<<<<<< * * #: Make the address range read-write accessible */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaMemAccessFlags(cudaMemAccessFlagsProtRead); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2847, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaMemAccessFlagsProtRead, __pyx_t_3) < 0) __PYX_ERR(0, 2847, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2850 * * #: Make the address range read-write accessible * cudaMemAccessFlagsProtReadWrite = ccudart.cudaMemAccessFlags.cudaMemAccessFlagsProtReadWrite # <<<<<<<<<<<<<< * * class cudaMemAllocationType(IntEnum): */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaMemAccessFlags(cudaMemAccessFlagsProtReadWrite); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2850, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaMemAccessFlagsProtReadWrite, __pyx_t_3) < 0) __PYX_ERR(0, 2850, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2838 * cudaMemLocationTypeHostNumaCurrent = ccudart.cudaMemLocationType.cudaMemLocationTypeHostNumaCurrent * * class cudaMemAccessFlags(IntEnum): # <<<<<<<<<<<<<< * """ * Specifies the memory protection flags for mapping. */ __pyx_t_3 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_n_s_cudaMemAccessFlags, __pyx_t_2, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2838, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemAccessFlags, __pyx_t_3) < 0) __PYX_ERR(0, 2838, __pyx_L1_error) __Pyx_DECREF(__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; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":2852 * cudaMemAccessFlagsProtReadWrite = ccudart.cudaMemAccessFlags.cudaMemAccessFlagsProtReadWrite * * class cudaMemAllocationType(IntEnum): # <<<<<<<<<<<<<< * """ * Defines the allocation types available */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2852, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2852, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 2852, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2852, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2852, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_n_s_cudaMemAllocationType, __pyx_n_s_cudaMemAllocationType, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_Defines_the_allocation_types_av); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2852, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_2 != __pyx_t_4) { if (unlikely((PyDict_SetItemString(__pyx_t_3, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 2852, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2856 * Defines the allocation types available * """ * cudaMemAllocationTypeInvalid = ccudart.cudaMemAllocationType.cudaMemAllocationTypeInvalid # <<<<<<<<<<<<<< * * #: This allocation type is 'pinned', i.e. cannot migrate from its */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaMemAllocationType(cudaMemAllocationTypeInvalid); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2856, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaMemAllocationTypeInvalid, __pyx_t_4) < 0) __PYX_ERR(0, 2856, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2860 * #: This allocation type is 'pinned', i.e. cannot migrate from its * #: current location while the application is actively using it * cudaMemAllocationTypePinned = ccudart.cudaMemAllocationType.cudaMemAllocationTypePinned # <<<<<<<<<<<<<< * cudaMemAllocationTypeMax = ccudart.cudaMemAllocationType.cudaMemAllocationTypeMax * */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaMemAllocationType(cudaMemAllocationTypePinned); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2860, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaMemAllocationTypePinned, __pyx_t_4) < 0) __PYX_ERR(0, 2860, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2861 * #: current location while the application is actively using it * cudaMemAllocationTypePinned = ccudart.cudaMemAllocationType.cudaMemAllocationTypePinned * cudaMemAllocationTypeMax = ccudart.cudaMemAllocationType.cudaMemAllocationTypeMax # <<<<<<<<<<<<<< * * class cudaMemAllocationHandleType(IntEnum): */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaMemAllocationType(cudaMemAllocationTypeMax); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2861, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaMemAllocationTypeMax, __pyx_t_4) < 0) __PYX_ERR(0, 2861, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2852 * cudaMemAccessFlagsProtReadWrite = ccudart.cudaMemAccessFlags.cudaMemAccessFlagsProtReadWrite * * class cudaMemAllocationType(IntEnum): # <<<<<<<<<<<<<< * """ * Defines the allocation types available */ __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_n_s_cudaMemAllocationType, __pyx_t_2, __pyx_t_3, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2852, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemAllocationType, __pyx_t_4) < 0) __PYX_ERR(0, 2852, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":2863 * cudaMemAllocationTypeMax = ccudart.cudaMemAllocationType.cudaMemAllocationTypeMax * * class cudaMemAllocationHandleType(IntEnum): # <<<<<<<<<<<<<< * """ * Flags for specifying particular handle types */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2863, __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)) __PYX_ERR(0, 2863, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_3, __pyx_t_2, __pyx_n_s_cudaMemAllocationHandleType, __pyx_n_s_cudaMemAllocationHandleType, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_Flags_for_specifying_particular); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_2 != __pyx_t_5) { if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_5) < 0))) __PYX_ERR(0, 2863, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2869 * * #: Does not allow any export mechanism. > * cudaMemHandleTypeNone = ccudart.cudaMemAllocationHandleType.cudaMemHandleTypeNone # <<<<<<<<<<<<<< * * #: Allows a file descriptor to be used for exporting. Permitted only on */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaMemAllocationHandleType(cudaMemHandleTypeNone); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2869, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaMemHandleTypeNone, __pyx_t_5) < 0) __PYX_ERR(0, 2869, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2873 * #: Allows a file descriptor to be used for exporting. Permitted only on * #: POSIX systems. (int) * cudaMemHandleTypePosixFileDescriptor = ccudart.cudaMemAllocationHandleType.cudaMemHandleTypePosixFileDescriptor # <<<<<<<<<<<<<< * * #: Allows a Win32 NT handle to be used for exporting. (HANDLE) */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaMemAllocationHandleType(cudaMemHandleTypePosixFileDescriptor); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2873, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaMemHandleTypePosixFileDescri, __pyx_t_5) < 0) __PYX_ERR(0, 2873, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2876 * * #: Allows a Win32 NT handle to be used for exporting. (HANDLE) * cudaMemHandleTypeWin32 = ccudart.cudaMemAllocationHandleType.cudaMemHandleTypeWin32 # <<<<<<<<<<<<<< * * #: Allows a Win32 KMT handle to be used for exporting. (D3DKMT_HANDLE) */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaMemAllocationHandleType(cudaMemHandleTypeWin32); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2876, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaMemHandleTypeWin32, __pyx_t_5) < 0) __PYX_ERR(0, 2876, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2879 * * #: Allows a Win32 KMT handle to be used for exporting. (D3DKMT_HANDLE) * cudaMemHandleTypeWin32Kmt = ccudart.cudaMemAllocationHandleType.cudaMemHandleTypeWin32Kmt # <<<<<<<<<<<<<< * * #: Allows a fabric handle to be used for exporting. */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaMemAllocationHandleType(cudaMemHandleTypeWin32Kmt); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2879, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaMemHandleTypeWin32Kmt, __pyx_t_5) < 0) __PYX_ERR(0, 2879, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2883 * #: Allows a fabric handle to be used for exporting. * #: (cudaMemFabricHandle_t) * cudaMemHandleTypeFabric = ccudart.cudaMemAllocationHandleType.cudaMemHandleTypeFabric # <<<<<<<<<<<<<< * * class cudaGraphMemAttributeType(IntEnum): */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaMemAllocationHandleType(cudaMemHandleTypeFabric); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2883, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaMemHandleTypeFabric, __pyx_t_5) < 0) __PYX_ERR(0, 2883, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2863 * cudaMemAllocationTypeMax = ccudart.cudaMemAllocationType.cudaMemAllocationTypeMax * * class cudaMemAllocationHandleType(IntEnum): # <<<<<<<<<<<<<< * """ * Flags for specifying particular handle types */ __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_3, __pyx_n_s_cudaMemAllocationHandleType, __pyx_t_2, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemAllocationHandleType, __pyx_t_5) < 0) __PYX_ERR(0, 2863, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":2885 * cudaMemHandleTypeFabric = ccudart.cudaMemAllocationHandleType.cudaMemHandleTypeFabric * * class cudaGraphMemAttributeType(IntEnum): # <<<<<<<<<<<<<< * """ * Graph memory attributes */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2885, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2885, __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)) __PYX_ERR(0, 2885, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2885, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2885, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_2, __pyx_n_s_cudaGraphMemAttributeType, __pyx_n_s_cudaGraphMemAttributeType, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_Graph_memory_attributes); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2885, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_2 != __pyx_t_3) { if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_3) < 0))) __PYX_ERR(0, 2885, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2892 * #: (value type = cuuint64_t) Amount of memory, in bytes, currently * #: associated with graphs. * cudaGraphMemAttrUsedMemCurrent = ccudart.cudaGraphMemAttributeType.cudaGraphMemAttrUsedMemCurrent # <<<<<<<<<<<<<< * * #: (value type = cuuint64_t) High watermark of memory, in bytes, */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaGraphMemAttributeType(cudaGraphMemAttrUsedMemCurrent); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2892, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaGraphMemAttrUsedMemCurrent, __pyx_t_3) < 0) __PYX_ERR(0, 2892, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2897 * #: associated with graphs since the last time it was reset. High * #: watermark can only be reset to zero. * cudaGraphMemAttrUsedMemHigh = ccudart.cudaGraphMemAttributeType.cudaGraphMemAttrUsedMemHigh # <<<<<<<<<<<<<< * * #: (value type = cuuint64_t) Amount of memory, in bytes, currently */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaGraphMemAttributeType(cudaGraphMemAttrUsedMemHigh); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2897, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaGraphMemAttrUsedMemHigh, __pyx_t_3) < 0) __PYX_ERR(0, 2897, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2901 * #: (value type = cuuint64_t) Amount of memory, in bytes, currently * #: allocated for use by the CUDA graphs asynchronous allocator. * cudaGraphMemAttrReservedMemCurrent = ccudart.cudaGraphMemAttributeType.cudaGraphMemAttrReservedMemCurrent # <<<<<<<<<<<<<< * * #: (value type = cuuint64_t) High watermark of memory, in bytes, */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaGraphMemAttributeType(cudaGraphMemAttrReservedMemCurrent); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2901, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaGraphMemAttrReservedMemCurre, __pyx_t_3) < 0) __PYX_ERR(0, 2901, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2906 * #: currently allocated for use by the CUDA graphs asynchronous * #: allocator. * cudaGraphMemAttrReservedMemHigh = ccudart.cudaGraphMemAttributeType.cudaGraphMemAttrReservedMemHigh # <<<<<<<<<<<<<< * * class cudaDeviceP2PAttr(IntEnum): */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaGraphMemAttributeType(cudaGraphMemAttrReservedMemHigh); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2906, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaGraphMemAttrReservedMemHigh, __pyx_t_3) < 0) __PYX_ERR(0, 2906, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2885 * cudaMemHandleTypeFabric = ccudart.cudaMemAllocationHandleType.cudaMemHandleTypeFabric * * class cudaGraphMemAttributeType(IntEnum): # <<<<<<<<<<<<<< * """ * Graph memory attributes */ __pyx_t_3 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_n_s_cudaGraphMemAttributeType, __pyx_t_2, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2885, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphMemAttributeType, __pyx_t_3) < 0) __PYX_ERR(0, 2885, __pyx_L1_error) __Pyx_DECREF(__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; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":2908 * cudaGraphMemAttrReservedMemHigh = ccudart.cudaGraphMemAttributeType.cudaGraphMemAttrReservedMemHigh * * class cudaDeviceP2PAttr(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA device P2P attributes */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2908, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2908, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 2908, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2908, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2908, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_n_s_cudaDeviceP2PAttr, __pyx_n_s_cudaDeviceP2PAttr, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_CUDA_device_P2P_attributes); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2908, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_2 != __pyx_t_4) { if (unlikely((PyDict_SetItemString(__pyx_t_3, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 2908, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2915 * #: A relative value indicating the performance of the link between two * #: devices * cudaDevP2PAttrPerformanceRank = ccudart.cudaDeviceP2PAttr.cudaDevP2PAttrPerformanceRank # <<<<<<<<<<<<<< * * #: Peer access is enabled */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaDeviceP2PAttr(cudaDevP2PAttrPerformanceRank); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2915, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaDevP2PAttrPerformanceRank, __pyx_t_4) < 0) __PYX_ERR(0, 2915, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2918 * * #: Peer access is enabled * cudaDevP2PAttrAccessSupported = ccudart.cudaDeviceP2PAttr.cudaDevP2PAttrAccessSupported # <<<<<<<<<<<<<< * * #: Native atomic operation over the link supported */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaDeviceP2PAttr(cudaDevP2PAttrAccessSupported); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2918, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaDevP2PAttrAccessSupported, __pyx_t_4) < 0) __PYX_ERR(0, 2918, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2921 * * #: Native atomic operation over the link supported * cudaDevP2PAttrNativeAtomicSupported = ccudart.cudaDeviceP2PAttr.cudaDevP2PAttrNativeAtomicSupported # <<<<<<<<<<<<<< * * #: Accessing CUDA arrays over the link supported */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaDeviceP2PAttr(cudaDevP2PAttrNativeAtomicSupported); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2921, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaDevP2PAttrNativeAtomicSuppor, __pyx_t_4) < 0) __PYX_ERR(0, 2921, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2924 * * #: Accessing CUDA arrays over the link supported * cudaDevP2PAttrCudaArrayAccessSupported = ccudart.cudaDeviceP2PAttr.cudaDevP2PAttrCudaArrayAccessSupported # <<<<<<<<<<<<<< * * class cudaExternalMemoryHandleType(IntEnum): */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaDeviceP2PAttr(cudaDevP2PAttrCudaArrayAccessSupported); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2924, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaDevP2PAttrCudaArrayAccessSup, __pyx_t_4) < 0) __PYX_ERR(0, 2924, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2908 * cudaGraphMemAttrReservedMemHigh = ccudart.cudaGraphMemAttributeType.cudaGraphMemAttrReservedMemHigh * * class cudaDeviceP2PAttr(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA device P2P attributes */ __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_n_s_cudaDeviceP2PAttr, __pyx_t_2, __pyx_t_3, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2908, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceP2PAttr, __pyx_t_4) < 0) __PYX_ERR(0, 2908, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":2926 * cudaDevP2PAttrCudaArrayAccessSupported = ccudart.cudaDeviceP2PAttr.cudaDevP2PAttrCudaArrayAccessSupported * * class cudaExternalMemoryHandleType(IntEnum): # <<<<<<<<<<<<<< * """ * External memory handle types */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2926, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2926, __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)) __PYX_ERR(0, 2926, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2926, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2926, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_3, __pyx_t_2, __pyx_n_s_cudaExternalMemoryHandleType, __pyx_n_s_cudaExternalMemoryHandleType, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_External_memory_handle_types); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2926, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_2 != __pyx_t_5) { if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_5) < 0))) __PYX_ERR(0, 2926, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2932 * * #: Handle is an opaque file descriptor * cudaExternalMemoryHandleTypeOpaqueFd = ccudart.cudaExternalMemoryHandleType.cudaExternalMemoryHandleTypeOpaqueFd # <<<<<<<<<<<<<< * * #: Handle is an opaque shared NT handle */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaExternalMemoryHandleType(cudaExternalMemoryHandleTypeOpaqueFd); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2932, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaExternalMemoryHandleTypeOpaq, __pyx_t_5) < 0) __PYX_ERR(0, 2932, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2935 * * #: Handle is an opaque shared NT handle * cudaExternalMemoryHandleTypeOpaqueWin32 = ccudart.cudaExternalMemoryHandleType.cudaExternalMemoryHandleTypeOpaqueWin32 # <<<<<<<<<<<<<< * * #: Handle is an opaque, globally shared handle */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaExternalMemoryHandleType(cudaExternalMemoryHandleTypeOpaqueWin32); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2935, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaExternalMemoryHandleTypeOpaq_2, __pyx_t_5) < 0) __PYX_ERR(0, 2935, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2938 * * #: Handle is an opaque, globally shared handle * cudaExternalMemoryHandleTypeOpaqueWin32Kmt = ccudart.cudaExternalMemoryHandleType.cudaExternalMemoryHandleTypeOpaqueWin32Kmt # <<<<<<<<<<<<<< * * #: Handle is a D3D12 heap object */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaExternalMemoryHandleType(cudaExternalMemoryHandleTypeOpaqueWin32Kmt); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2938, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaExternalMemoryHandleTypeOpaq_3, __pyx_t_5) < 0) __PYX_ERR(0, 2938, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2941 * * #: Handle is a D3D12 heap object * cudaExternalMemoryHandleTypeD3D12Heap = ccudart.cudaExternalMemoryHandleType.cudaExternalMemoryHandleTypeD3D12Heap # <<<<<<<<<<<<<< * * #: Handle is a D3D12 committed resource */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaExternalMemoryHandleType(cudaExternalMemoryHandleTypeD3D12Heap); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2941, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaExternalMemoryHandleTypeD3D1, __pyx_t_5) < 0) __PYX_ERR(0, 2941, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2944 * * #: Handle is a D3D12 committed resource * cudaExternalMemoryHandleTypeD3D12Resource = ccudart.cudaExternalMemoryHandleType.cudaExternalMemoryHandleTypeD3D12Resource # <<<<<<<<<<<<<< * * #: Handle is a shared NT handle to a D3D11 resource */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaExternalMemoryHandleType(cudaExternalMemoryHandleTypeD3D12Resource); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2944, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaExternalMemoryHandleTypeD3D1_2, __pyx_t_5) < 0) __PYX_ERR(0, 2944, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2947 * * #: Handle is a shared NT handle to a D3D11 resource * cudaExternalMemoryHandleTypeD3D11Resource = ccudart.cudaExternalMemoryHandleType.cudaExternalMemoryHandleTypeD3D11Resource # <<<<<<<<<<<<<< * * #: Handle is a globally shared handle to a D3D11 resource */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaExternalMemoryHandleType(cudaExternalMemoryHandleTypeD3D11Resource); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2947, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaExternalMemoryHandleTypeD3D1_3, __pyx_t_5) < 0) __PYX_ERR(0, 2947, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2950 * * #: Handle is a globally shared handle to a D3D11 resource * cudaExternalMemoryHandleTypeD3D11ResourceKmt = ccudart.cudaExternalMemoryHandleType.cudaExternalMemoryHandleTypeD3D11ResourceKmt # <<<<<<<<<<<<<< * * #: Handle is an NvSciBuf object */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaExternalMemoryHandleType(cudaExternalMemoryHandleTypeD3D11ResourceKmt); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2950, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaExternalMemoryHandleTypeD3D1_4, __pyx_t_5) < 0) __PYX_ERR(0, 2950, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2953 * * #: Handle is an NvSciBuf object * cudaExternalMemoryHandleTypeNvSciBuf = ccudart.cudaExternalMemoryHandleType.cudaExternalMemoryHandleTypeNvSciBuf # <<<<<<<<<<<<<< * * class cudaExternalSemaphoreHandleType(IntEnum): */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaExternalMemoryHandleType(cudaExternalMemoryHandleTypeNvSciBuf); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2953, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaExternalMemoryHandleTypeNvSc, __pyx_t_5) < 0) __PYX_ERR(0, 2953, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":2926 * cudaDevP2PAttrCudaArrayAccessSupported = ccudart.cudaDeviceP2PAttr.cudaDevP2PAttrCudaArrayAccessSupported * * class cudaExternalMemoryHandleType(IntEnum): # <<<<<<<<<<<<<< * """ * External memory handle types */ __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_3, __pyx_n_s_cudaExternalMemoryHandleType, __pyx_t_2, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2926, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaExternalMemoryHandleType, __pyx_t_5) < 0) __PYX_ERR(0, 2926, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":2955 * cudaExternalMemoryHandleTypeNvSciBuf = ccudart.cudaExternalMemoryHandleType.cudaExternalMemoryHandleTypeNvSciBuf * * class cudaExternalSemaphoreHandleType(IntEnum): # <<<<<<<<<<<<<< * """ * External semaphore handle types */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2955, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2955, __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)) __PYX_ERR(0, 2955, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2955, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2955, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_2, __pyx_n_s_cudaExternalSemaphoreHandleType, __pyx_n_s_cudaExternalSemaphoreHandleType, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_External_semaphore_handle_types); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2955, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_2 != __pyx_t_3) { if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_3) < 0))) __PYX_ERR(0, 2955, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2961 * * #: Handle is an opaque file descriptor * cudaExternalSemaphoreHandleTypeOpaqueFd = ccudart.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeOpaqueFd # <<<<<<<<<<<<<< * * #: Handle is an opaque shared NT handle */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaExternalSemaphoreHandleType(cudaExternalSemaphoreHandleTypeOpaqueFd); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2961, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaExternalSemaphoreHandleTypeO, __pyx_t_3) < 0) __PYX_ERR(0, 2961, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2964 * * #: Handle is an opaque shared NT handle * cudaExternalSemaphoreHandleTypeOpaqueWin32 = ccudart.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeOpaqueWin32 # <<<<<<<<<<<<<< * * #: Handle is an opaque, globally shared handle */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaExternalSemaphoreHandleType(cudaExternalSemaphoreHandleTypeOpaqueWin32); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2964, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaExternalSemaphoreHandleTypeO_2, __pyx_t_3) < 0) __PYX_ERR(0, 2964, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2967 * * #: Handle is an opaque, globally shared handle * cudaExternalSemaphoreHandleTypeOpaqueWin32Kmt = ccudart.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeOpaqueWin32Kmt # <<<<<<<<<<<<<< * * #: Handle is a shared NT handle referencing a D3D12 fence object */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaExternalSemaphoreHandleType(cudaExternalSemaphoreHandleTypeOpaqueWin32Kmt); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2967, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaExternalSemaphoreHandleTypeO_3, __pyx_t_3) < 0) __PYX_ERR(0, 2967, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2970 * * #: Handle is a shared NT handle referencing a D3D12 fence object * cudaExternalSemaphoreHandleTypeD3D12Fence = ccudart.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeD3D12Fence # <<<<<<<<<<<<<< * * #: Handle is a shared NT handle referencing a D3D11 fence object */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaExternalSemaphoreHandleType(cudaExternalSemaphoreHandleTypeD3D12Fence); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2970, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaExternalSemaphoreHandleTypeD, __pyx_t_3) < 0) __PYX_ERR(0, 2970, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2973 * * #: Handle is a shared NT handle referencing a D3D11 fence object * cudaExternalSemaphoreHandleTypeD3D11Fence = ccudart.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeD3D11Fence # <<<<<<<<<<<<<< * * #: Opaque handle to NvSciSync Object */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaExternalSemaphoreHandleType(cudaExternalSemaphoreHandleTypeD3D11Fence); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2973, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaExternalSemaphoreHandleTypeD_2, __pyx_t_3) < 0) __PYX_ERR(0, 2973, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2976 * * #: Opaque handle to NvSciSync Object * cudaExternalSemaphoreHandleTypeNvSciSync = ccudart.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeNvSciSync # <<<<<<<<<<<<<< * * #: Handle is a shared NT handle referencing a D3D11 keyed mutex object */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaExternalSemaphoreHandleType(cudaExternalSemaphoreHandleTypeNvSciSync); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2976, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaExternalSemaphoreHandleTypeN, __pyx_t_3) < 0) __PYX_ERR(0, 2976, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2979 * * #: Handle is a shared NT handle referencing a D3D11 keyed mutex object * cudaExternalSemaphoreHandleTypeKeyedMutex = ccudart.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeKeyedMutex # <<<<<<<<<<<<<< * * #: Handle is a shared KMT handle referencing a D3D11 keyed mutex object */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaExternalSemaphoreHandleType(cudaExternalSemaphoreHandleTypeKeyedMutex); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2979, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaExternalSemaphoreHandleTypeK, __pyx_t_3) < 0) __PYX_ERR(0, 2979, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2982 * * #: Handle is a shared KMT handle referencing a D3D11 keyed mutex object * cudaExternalSemaphoreHandleTypeKeyedMutexKmt = ccudart.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeKeyedMutexKmt # <<<<<<<<<<<<<< * * #: Handle is an opaque handle file descriptor referencing a timeline */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaExternalSemaphoreHandleType(cudaExternalSemaphoreHandleTypeKeyedMutexKmt); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2982, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaExternalSemaphoreHandleTypeK_2, __pyx_t_3) < 0) __PYX_ERR(0, 2982, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2986 * #: Handle is an opaque handle file descriptor referencing a timeline * #: semaphore * cudaExternalSemaphoreHandleTypeTimelineSemaphoreFd = ccudart.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeTimelineSemaphoreFd # <<<<<<<<<<<<<< * * #: Handle is an opaque handle file descriptor referencing a timeline */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaExternalSemaphoreHandleType(cudaExternalSemaphoreHandleTypeTimelineSemaphoreFd); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2986, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaExternalSemaphoreHandleTypeT, __pyx_t_3) < 0) __PYX_ERR(0, 2986, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2990 * #: Handle is an opaque handle file descriptor referencing a timeline * #: semaphore * cudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32 = ccudart.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32 # <<<<<<<<<<<<<< * * class cudaCGScope(IntEnum): */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaExternalSemaphoreHandleType(cudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2990, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaExternalSemaphoreHandleTypeT_2, __pyx_t_3) < 0) __PYX_ERR(0, 2990, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":2955 * cudaExternalMemoryHandleTypeNvSciBuf = ccudart.cudaExternalMemoryHandleType.cudaExternalMemoryHandleTypeNvSciBuf * * class cudaExternalSemaphoreHandleType(IntEnum): # <<<<<<<<<<<<<< * """ * External semaphore handle types */ __pyx_t_3 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_n_s_cudaExternalSemaphoreHandleType, __pyx_t_2, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2955, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaExternalSemaphoreHandleType, __pyx_t_3) < 0) __PYX_ERR(0, 2955, __pyx_L1_error) __Pyx_DECREF(__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; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":2992 * cudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32 = ccudart.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32 * * class cudaCGScope(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA cooperative group scope */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2992, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2992, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 2992, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2992, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2992, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_n_s_cudaCGScope, __pyx_n_s_cudaCGScope, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_CUDA_cooperative_group_scope); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2992, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_2 != __pyx_t_4) { if (unlikely((PyDict_SetItemString(__pyx_t_3, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 2992, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2998 * * #: Invalid cooperative group scope * cudaCGScopeInvalid = ccudart.cudaCGScope.cudaCGScopeInvalid # <<<<<<<<<<<<<< * * #: Scope represented by a grid_group */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaCGScope(cudaCGScopeInvalid); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2998, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaCGScopeInvalid, __pyx_t_4) < 0) __PYX_ERR(0, 2998, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":3001 * * #: Scope represented by a grid_group * cudaCGScopeGrid = ccudart.cudaCGScope.cudaCGScopeGrid # <<<<<<<<<<<<<< * * #: Scope represented by a multi_grid_group */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaCGScope(cudaCGScopeGrid); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3001, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaCGScopeGrid, __pyx_t_4) < 0) __PYX_ERR(0, 3001, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":3004 * * #: Scope represented by a multi_grid_group * cudaCGScopeMultiGrid = ccudart.cudaCGScope.cudaCGScopeMultiGrid # <<<<<<<<<<<<<< * * class cudaGraphConditionalHandleFlags(IntEnum): */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaCGScope(cudaCGScopeMultiGrid); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3004, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaCGScopeMultiGrid, __pyx_t_4) < 0) __PYX_ERR(0, 3004, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":2992 * cudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32 = ccudart.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32 * * class cudaCGScope(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA cooperative group scope */ __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_n_s_cudaCGScope, __pyx_t_2, __pyx_t_3, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2992, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaCGScope, __pyx_t_4) < 0) __PYX_ERR(0, 2992, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":3006 * cudaCGScopeMultiGrid = ccudart.cudaCGScope.cudaCGScopeMultiGrid * * class cudaGraphConditionalHandleFlags(IntEnum): # <<<<<<<<<<<<<< * """ * */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3006, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3006, __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)) __PYX_ERR(0, 3006, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3006, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3006, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_3, __pyx_t_2, __pyx_n_s_cudaGraphConditionalHandleFlags, __pyx_n_s_cudaGraphConditionalHandleFlags, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s__657); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3006, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_2 != __pyx_t_5) { if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_5) < 0))) __PYX_ERR(0, 3006, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3012 * * #: Apply default handle value when graph is launched. * cudaGraphCondAssignDefault = ccudart.cudaGraphConditionalHandleFlags.cudaGraphCondAssignDefault # <<<<<<<<<<<<<< * * class cudaGraphConditionalNodeType(IntEnum): */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaGraphConditionalHandleFlags(cudaGraphCondAssignDefault); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3012, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaGraphCondAssignDefault, __pyx_t_5) < 0) __PYX_ERR(0, 3012, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3006 * cudaCGScopeMultiGrid = ccudart.cudaCGScope.cudaCGScopeMultiGrid * * class cudaGraphConditionalHandleFlags(IntEnum): # <<<<<<<<<<<<<< * """ * */ __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_3, __pyx_n_s_cudaGraphConditionalHandleFlags, __pyx_t_2, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3006, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphConditionalHandleFlags, __pyx_t_5) < 0) __PYX_ERR(0, 3006, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":3014 * cudaGraphCondAssignDefault = ccudart.cudaGraphConditionalHandleFlags.cudaGraphCondAssignDefault * * class cudaGraphConditionalNodeType(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA conditional node types */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3014, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3014, __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)) __PYX_ERR(0, 3014, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3014, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3014, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_2, __pyx_n_s_cudaGraphConditionalNodeType, __pyx_n_s_cudaGraphConditionalNodeType, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_CUDA_conditional_node_types); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3014, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_2 != __pyx_t_3) { if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_3) < 0))) __PYX_ERR(0, 3014, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3021 * #: Conditional 'if' Node. Body executed once if condition value is non- * #: zero. * cudaGraphCondTypeIf = ccudart.cudaGraphConditionalNodeType.cudaGraphCondTypeIf # <<<<<<<<<<<<<< * * #: Conditional 'while' Node. Body executed repeatedly while condition */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaGraphConditionalNodeType(cudaGraphCondTypeIf); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3021, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaGraphCondTypeIf, __pyx_t_3) < 0) __PYX_ERR(0, 3021, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3025 * #: Conditional 'while' Node. Body executed repeatedly while condition * #: value is non-zero. * cudaGraphCondTypeWhile = ccudart.cudaGraphConditionalNodeType.cudaGraphCondTypeWhile # <<<<<<<<<<<<<< * * class cudaGraphNodeType(IntEnum): */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaGraphConditionalNodeType(cudaGraphCondTypeWhile); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3025, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaGraphCondTypeWhile, __pyx_t_3) < 0) __PYX_ERR(0, 3025, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3014 * cudaGraphCondAssignDefault = ccudart.cudaGraphConditionalHandleFlags.cudaGraphCondAssignDefault * * class cudaGraphConditionalNodeType(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA conditional node types */ __pyx_t_3 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_n_s_cudaGraphConditionalNodeType, __pyx_t_2, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3014, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphConditionalNodeType, __pyx_t_3) < 0) __PYX_ERR(0, 3014, __pyx_L1_error) __Pyx_DECREF(__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; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":3027 * cudaGraphCondTypeWhile = ccudart.cudaGraphConditionalNodeType.cudaGraphCondTypeWhile * * class cudaGraphNodeType(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA Graph node types */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3027, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3027, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 3027, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3027, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3027, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_n_s_cudaGraphNodeType, __pyx_n_s_cudaGraphNodeType, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_CUDA_Graph_node_types); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3027, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_2 != __pyx_t_4) { if (unlikely((PyDict_SetItemString(__pyx_t_3, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 3027, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":3033 * * #: GPU kernel node * cudaGraphNodeTypeKernel = ccudart.cudaGraphNodeType.cudaGraphNodeTypeKernel # <<<<<<<<<<<<<< * * #: Memcpy node */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaGraphNodeType(cudaGraphNodeTypeKernel); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3033, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaGraphNodeTypeKernel, __pyx_t_4) < 0) __PYX_ERR(0, 3033, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":3036 * * #: Memcpy node * cudaGraphNodeTypeMemcpy = ccudart.cudaGraphNodeType.cudaGraphNodeTypeMemcpy # <<<<<<<<<<<<<< * * #: Memset node */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaGraphNodeType(cudaGraphNodeTypeMemcpy); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3036, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaGraphNodeTypeMemcpy, __pyx_t_4) < 0) __PYX_ERR(0, 3036, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":3039 * * #: Memset node * cudaGraphNodeTypeMemset = ccudart.cudaGraphNodeType.cudaGraphNodeTypeMemset # <<<<<<<<<<<<<< * * #: Host (executable) node */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaGraphNodeType(cudaGraphNodeTypeMemset); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3039, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaGraphNodeTypeMemset, __pyx_t_4) < 0) __PYX_ERR(0, 3039, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":3042 * * #: Host (executable) node * cudaGraphNodeTypeHost = ccudart.cudaGraphNodeType.cudaGraphNodeTypeHost # <<<<<<<<<<<<<< * * #: Node which executes an embedded graph */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaGraphNodeType(cudaGraphNodeTypeHost); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3042, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaGraphNodeTypeHost, __pyx_t_4) < 0) __PYX_ERR(0, 3042, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":3045 * * #: Node which executes an embedded graph * cudaGraphNodeTypeGraph = ccudart.cudaGraphNodeType.cudaGraphNodeTypeGraph # <<<<<<<<<<<<<< * * #: Empty (no-op) node */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaGraphNodeType(cudaGraphNodeTypeGraph); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3045, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaGraphNodeTypeGraph, __pyx_t_4) < 0) __PYX_ERR(0, 3045, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":3048 * * #: Empty (no-op) node * cudaGraphNodeTypeEmpty = ccudart.cudaGraphNodeType.cudaGraphNodeTypeEmpty # <<<<<<<<<<<<<< * * #: External event wait node */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaGraphNodeType(cudaGraphNodeTypeEmpty); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3048, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaGraphNodeTypeEmpty, __pyx_t_4) < 0) __PYX_ERR(0, 3048, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":3051 * * #: External event wait node * cudaGraphNodeTypeWaitEvent = ccudart.cudaGraphNodeType.cudaGraphNodeTypeWaitEvent # <<<<<<<<<<<<<< * * #: External event record node */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaGraphNodeType(cudaGraphNodeTypeWaitEvent); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3051, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaGraphNodeTypeWaitEvent, __pyx_t_4) < 0) __PYX_ERR(0, 3051, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":3054 * * #: External event record node * cudaGraphNodeTypeEventRecord = ccudart.cudaGraphNodeType.cudaGraphNodeTypeEventRecord # <<<<<<<<<<<<<< * * #: External semaphore signal node */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaGraphNodeType(cudaGraphNodeTypeEventRecord); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3054, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaGraphNodeTypeEventRecord, __pyx_t_4) < 0) __PYX_ERR(0, 3054, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":3057 * * #: External semaphore signal node * cudaGraphNodeTypeExtSemaphoreSignal = ccudart.cudaGraphNodeType.cudaGraphNodeTypeExtSemaphoreSignal # <<<<<<<<<<<<<< * * #: External semaphore wait node */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaGraphNodeType(cudaGraphNodeTypeExtSemaphoreSignal); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3057, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaGraphNodeTypeExtSemaphoreSig, __pyx_t_4) < 0) __PYX_ERR(0, 3057, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":3060 * * #: External semaphore wait node * cudaGraphNodeTypeExtSemaphoreWait = ccudart.cudaGraphNodeType.cudaGraphNodeTypeExtSemaphoreWait # <<<<<<<<<<<<<< * * #: Memory allocation node */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaGraphNodeType(cudaGraphNodeTypeExtSemaphoreWait); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3060, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaGraphNodeTypeExtSemaphoreWai, __pyx_t_4) < 0) __PYX_ERR(0, 3060, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":3063 * * #: Memory allocation node * cudaGraphNodeTypeMemAlloc = ccudart.cudaGraphNodeType.cudaGraphNodeTypeMemAlloc # <<<<<<<<<<<<<< * * #: Memory free node */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaGraphNodeType(cudaGraphNodeTypeMemAlloc); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3063, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaGraphNodeTypeMemAlloc, __pyx_t_4) < 0) __PYX_ERR(0, 3063, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":3066 * * #: Memory free node * cudaGraphNodeTypeMemFree = ccudart.cudaGraphNodeType.cudaGraphNodeTypeMemFree # <<<<<<<<<<<<<< * * #: Conditional node May be used to */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaGraphNodeType(cudaGraphNodeTypeMemFree); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3066, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaGraphNodeTypeMemFree, __pyx_t_4) < 0) __PYX_ERR(0, 3066, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":3093 * #: call * #: :py:obj:`~.cudaGraphSetConditional` from device code. * cudaGraphNodeTypeConditional = ccudart.cudaGraphNodeType.cudaGraphNodeTypeConditional # <<<<<<<<<<<<<< * cudaGraphNodeTypeCount = ccudart.cudaGraphNodeType.cudaGraphNodeTypeCount * */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaGraphNodeType(cudaGraphNodeTypeConditional); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3093, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaGraphNodeTypeConditional, __pyx_t_4) < 0) __PYX_ERR(0, 3093, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":3094 * #: :py:obj:`~.cudaGraphSetConditional` from device code. * cudaGraphNodeTypeConditional = ccudart.cudaGraphNodeType.cudaGraphNodeTypeConditional * cudaGraphNodeTypeCount = ccudart.cudaGraphNodeType.cudaGraphNodeTypeCount # <<<<<<<<<<<<<< * * class cudaGraphExecUpdateResult(IntEnum): */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaGraphNodeType(cudaGraphNodeTypeCount); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3094, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaGraphNodeTypeCount, __pyx_t_4) < 0) __PYX_ERR(0, 3094, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":3027 * cudaGraphCondTypeWhile = ccudart.cudaGraphConditionalNodeType.cudaGraphCondTypeWhile * * class cudaGraphNodeType(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA Graph node types */ __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_n_s_cudaGraphNodeType, __pyx_t_2, __pyx_t_3, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3027, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphNodeType, __pyx_t_4) < 0) __PYX_ERR(0, 3027, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":3096 * cudaGraphNodeTypeCount = ccudart.cudaGraphNodeType.cudaGraphNodeTypeCount * * class cudaGraphExecUpdateResult(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA Graph Update error types */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3096, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3096, __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)) __PYX_ERR(0, 3096, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3096, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3096, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_3, __pyx_t_2, __pyx_n_s_cudaGraphExecUpdateResult, __pyx_n_s_cudaGraphExecUpdateResult, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_CUDA_Graph_Update_error_types); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3096, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_2 != __pyx_t_5) { if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_5) < 0))) __PYX_ERR(0, 3096, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3102 * * #: The update succeeded * cudaGraphExecUpdateSuccess = ccudart.cudaGraphExecUpdateResult.cudaGraphExecUpdateSuccess # <<<<<<<<<<<<<< * * #: The update failed for an unexpected reason which is described in the */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaGraphExecUpdateResult(cudaGraphExecUpdateSuccess); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3102, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaGraphExecUpdateSuccess, __pyx_t_5) < 0) __PYX_ERR(0, 3102, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3106 * #: The update failed for an unexpected reason which is described in the * #: return value of the function * cudaGraphExecUpdateError = ccudart.cudaGraphExecUpdateResult.cudaGraphExecUpdateError # <<<<<<<<<<<<<< * * #: The update failed because the topology changed */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaGraphExecUpdateResult(cudaGraphExecUpdateError); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3106, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaGraphExecUpdateError, __pyx_t_5) < 0) __PYX_ERR(0, 3106, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3109 * * #: The update failed because the topology changed * cudaGraphExecUpdateErrorTopologyChanged = ccudart.cudaGraphExecUpdateResult.cudaGraphExecUpdateErrorTopologyChanged # <<<<<<<<<<<<<< * * #: The update failed because a node type changed */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaGraphExecUpdateResult(cudaGraphExecUpdateErrorTopologyChanged); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3109, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaGraphExecUpdateErrorTopology, __pyx_t_5) < 0) __PYX_ERR(0, 3109, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3112 * * #: The update failed because a node type changed * cudaGraphExecUpdateErrorNodeTypeChanged = ccudart.cudaGraphExecUpdateResult.cudaGraphExecUpdateErrorNodeTypeChanged # <<<<<<<<<<<<<< * * #: The update failed because the function of a kernel node changed */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaGraphExecUpdateResult(cudaGraphExecUpdateErrorNodeTypeChanged); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3112, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaGraphExecUpdateErrorNodeType, __pyx_t_5) < 0) __PYX_ERR(0, 3112, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3116 * #: The update failed because the function of a kernel node changed * #: (CUDA driver < 11.2) * cudaGraphExecUpdateErrorFunctionChanged = ccudart.cudaGraphExecUpdateResult.cudaGraphExecUpdateErrorFunctionChanged # <<<<<<<<<<<<<< * * #: The update failed because the parameters changed in a way that is */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaGraphExecUpdateResult(cudaGraphExecUpdateErrorFunctionChanged); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3116, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaGraphExecUpdateErrorFunction, __pyx_t_5) < 0) __PYX_ERR(0, 3116, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3120 * #: The update failed because the parameters changed in a way that is * #: not supported * cudaGraphExecUpdateErrorParametersChanged = ccudart.cudaGraphExecUpdateResult.cudaGraphExecUpdateErrorParametersChanged # <<<<<<<<<<<<<< * * #: The update failed because something about the node is not supported */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaGraphExecUpdateResult(cudaGraphExecUpdateErrorParametersChanged); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3120, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaGraphExecUpdateErrorParamete, __pyx_t_5) < 0) __PYX_ERR(0, 3120, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3123 * * #: The update failed because something about the node is not supported * cudaGraphExecUpdateErrorNotSupported = ccudart.cudaGraphExecUpdateResult.cudaGraphExecUpdateErrorNotSupported # <<<<<<<<<<<<<< * * #: The update failed because the function of a kernel node changed in */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaGraphExecUpdateResult(cudaGraphExecUpdateErrorNotSupported); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3123, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaGraphExecUpdateErrorNotSuppo, __pyx_t_5) < 0) __PYX_ERR(0, 3123, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3127 * #: The update failed because the function of a kernel node changed in * #: an unsupported way * cudaGraphExecUpdateErrorUnsupportedFunctionChange = ccudart.cudaGraphExecUpdateResult.cudaGraphExecUpdateErrorUnsupportedFunctionChange # <<<<<<<<<<<<<< * * #: The update failed because the node attributes changed in a way that */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaGraphExecUpdateResult(cudaGraphExecUpdateErrorUnsupportedFunctionChange); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3127, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaGraphExecUpdateErrorUnsuppor, __pyx_t_5) < 0) __PYX_ERR(0, 3127, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3131 * #: The update failed because the node attributes changed in a way that * #: is not supported * cudaGraphExecUpdateErrorAttributesChanged = ccudart.cudaGraphExecUpdateResult.cudaGraphExecUpdateErrorAttributesChanged # <<<<<<<<<<<<<< * * class cudaGraphKernelNodeField(IntEnum): */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaGraphExecUpdateResult(cudaGraphExecUpdateErrorAttributesChanged); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3131, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaGraphExecUpdateErrorAttribut, __pyx_t_5) < 0) __PYX_ERR(0, 3131, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3096 * cudaGraphNodeTypeCount = ccudart.cudaGraphNodeType.cudaGraphNodeTypeCount * * class cudaGraphExecUpdateResult(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA Graph Update error types */ __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_3, __pyx_n_s_cudaGraphExecUpdateResult, __pyx_t_2, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3096, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphExecUpdateResult, __pyx_t_5) < 0) __PYX_ERR(0, 3096, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":3133 * cudaGraphExecUpdateErrorAttributesChanged = ccudart.cudaGraphExecUpdateResult.cudaGraphExecUpdateErrorAttributesChanged * * class cudaGraphKernelNodeField(IntEnum): # <<<<<<<<<<<<<< * """ * Specifies the field to update when performing multiple node updates */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3133, __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)) __PYX_ERR(0, 3133, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_2, __pyx_n_s_cudaGraphKernelNodeField, __pyx_n_s_cudaGraphKernelNodeField, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_Specifies_the_field_to_update_w); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_2 != __pyx_t_3) { if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_3) < 0))) __PYX_ERR(0, 3133, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3140 * * #: Invalid field * cudaGraphKernelNodeFieldInvalid = ccudart.cudaGraphKernelNodeField.cudaGraphKernelNodeFieldInvalid # <<<<<<<<<<<<<< * * #: Grid dimension update */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaGraphKernelNodeField(cudaGraphKernelNodeFieldInvalid); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3140, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaGraphKernelNodeFieldInvalid, __pyx_t_3) < 0) __PYX_ERR(0, 3140, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3143 * * #: Grid dimension update * cudaGraphKernelNodeFieldGridDim = ccudart.cudaGraphKernelNodeField.cudaGraphKernelNodeFieldGridDim # <<<<<<<<<<<<<< * * #: Kernel parameter update */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaGraphKernelNodeField(cudaGraphKernelNodeFieldGridDim); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3143, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaGraphKernelNodeFieldGridDim, __pyx_t_3) < 0) __PYX_ERR(0, 3143, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3146 * * #: Kernel parameter update * cudaGraphKernelNodeFieldParam = ccudart.cudaGraphKernelNodeField.cudaGraphKernelNodeFieldParam # <<<<<<<<<<<<<< * * #: Node enable/disable */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaGraphKernelNodeField(cudaGraphKernelNodeFieldParam); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3146, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaGraphKernelNodeFieldParam, __pyx_t_3) < 0) __PYX_ERR(0, 3146, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3149 * * #: Node enable/disable * cudaGraphKernelNodeFieldEnabled = ccudart.cudaGraphKernelNodeField.cudaGraphKernelNodeFieldEnabled # <<<<<<<<<<<<<< * * class cudaGetDriverEntryPointFlags(IntEnum): */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaGraphKernelNodeField(cudaGraphKernelNodeFieldEnabled); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3149, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaGraphKernelNodeFieldEnabled, __pyx_t_3) < 0) __PYX_ERR(0, 3149, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3133 * cudaGraphExecUpdateErrorAttributesChanged = ccudart.cudaGraphExecUpdateResult.cudaGraphExecUpdateErrorAttributesChanged * * class cudaGraphKernelNodeField(IntEnum): # <<<<<<<<<<<<<< * """ * Specifies the field to update when performing multiple node updates */ __pyx_t_3 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_n_s_cudaGraphKernelNodeField, __pyx_t_2, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphKernelNodeField, __pyx_t_3) < 0) __PYX_ERR(0, 3133, __pyx_L1_error) __Pyx_DECREF(__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; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":3151 * cudaGraphKernelNodeFieldEnabled = ccudart.cudaGraphKernelNodeField.cudaGraphKernelNodeFieldEnabled * * class cudaGetDriverEntryPointFlags(IntEnum): # <<<<<<<<<<<<<< * """ * Flags to specify search options to be used with */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3151, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3151, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 3151, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3151, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3151, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_n_s_cudaGetDriverEntryPointFlags, __pyx_n_s_cudaGetDriverEntryPointFlags, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_Flags_to_specify_search_options); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3151, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_2 != __pyx_t_4) { if (unlikely((PyDict_SetItemString(__pyx_t_3, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 3151, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":3159 * * #: Default search mode for driver symbols. * cudaEnableDefault = ccudart.cudaGetDriverEntryPointFlags.cudaEnableDefault # <<<<<<<<<<<<<< * * #: Search for legacy versions of driver symbols. */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaGetDriverEntryPointFlags(cudaEnableDefault); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3159, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEnableDefault, __pyx_t_4) < 0) __PYX_ERR(0, 3159, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":3162 * * #: Search for legacy versions of driver symbols. * cudaEnableLegacyStream = ccudart.cudaGetDriverEntryPointFlags.cudaEnableLegacyStream # <<<<<<<<<<<<<< * * #: Search for per-thread versions of driver symbols. */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaGetDriverEntryPointFlags(cudaEnableLegacyStream); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3162, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEnableLegacyStream, __pyx_t_4) < 0) __PYX_ERR(0, 3162, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":3165 * * #: Search for per-thread versions of driver symbols. * cudaEnablePerThreadDefaultStream = ccudart.cudaGetDriverEntryPointFlags.cudaEnablePerThreadDefaultStream # <<<<<<<<<<<<<< * * class cudaDriverEntryPointQueryResult(IntEnum): */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaGetDriverEntryPointFlags(cudaEnablePerThreadDefaultStream); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3165, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaEnablePerThreadDefaultStream, __pyx_t_4) < 0) __PYX_ERR(0, 3165, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":3151 * cudaGraphKernelNodeFieldEnabled = ccudart.cudaGraphKernelNodeField.cudaGraphKernelNodeFieldEnabled * * class cudaGetDriverEntryPointFlags(IntEnum): # <<<<<<<<<<<<<< * """ * Flags to specify search options to be used with */ __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_n_s_cudaGetDriverEntryPointFlags, __pyx_t_2, __pyx_t_3, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3151, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGetDriverEntryPointFlags, __pyx_t_4) < 0) __PYX_ERR(0, 3151, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":3167 * cudaEnablePerThreadDefaultStream = ccudart.cudaGetDriverEntryPointFlags.cudaEnablePerThreadDefaultStream * * class cudaDriverEntryPointQueryResult(IntEnum): # <<<<<<<<<<<<<< * """ * Enum for status from obtaining driver entry points, used with */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3167, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3167, __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)) __PYX_ERR(0, 3167, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3167, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3167, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_3, __pyx_t_2, __pyx_n_s_cudaDriverEntryPointQueryResult, __pyx_n_s_cudaDriverEntryPointQueryResult, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_Enum_for_status_from_obtaining); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3167, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_2 != __pyx_t_5) { if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_5) < 0))) __PYX_ERR(0, 3167, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3174 * * #: Search for symbol found a match * cudaDriverEntryPointSuccess = ccudart.cudaDriverEntryPointQueryResult.cudaDriverEntryPointSuccess # <<<<<<<<<<<<<< * * #: Search for symbol was not found */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaDriverEntryPointQueryResult(cudaDriverEntryPointSuccess); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3174, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaDriverEntryPointSuccess, __pyx_t_5) < 0) __PYX_ERR(0, 3174, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3177 * * #: Search for symbol was not found * cudaDriverEntryPointSymbolNotFound = ccudart.cudaDriverEntryPointQueryResult.cudaDriverEntryPointSymbolNotFound # <<<<<<<<<<<<<< * * #: Search for symbol was found but version wasn't great enough */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaDriverEntryPointQueryResult(cudaDriverEntryPointSymbolNotFound); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3177, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaDriverEntryPointSymbolNotFou, __pyx_t_5) < 0) __PYX_ERR(0, 3177, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3180 * * #: Search for symbol was found but version wasn't great enough * cudaDriverEntryPointVersionNotSufficent = ccudart.cudaDriverEntryPointQueryResult.cudaDriverEntryPointVersionNotSufficent # <<<<<<<<<<<<<< * * class cudaGraphDebugDotFlags(IntEnum): */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaDriverEntryPointQueryResult(cudaDriverEntryPointVersionNotSufficent); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaDriverEntryPointVersionNotSu, __pyx_t_5) < 0) __PYX_ERR(0, 3180, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3167 * cudaEnablePerThreadDefaultStream = ccudart.cudaGetDriverEntryPointFlags.cudaEnablePerThreadDefaultStream * * class cudaDriverEntryPointQueryResult(IntEnum): # <<<<<<<<<<<<<< * """ * Enum for status from obtaining driver entry points, used with */ __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_3, __pyx_n_s_cudaDriverEntryPointQueryResult, __pyx_t_2, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3167, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDriverEntryPointQueryResult, __pyx_t_5) < 0) __PYX_ERR(0, 3167, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":3182 * cudaDriverEntryPointVersionNotSufficent = ccudart.cudaDriverEntryPointQueryResult.cudaDriverEntryPointVersionNotSufficent * * class cudaGraphDebugDotFlags(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA Graph debug write options */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3182, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3182, __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)) __PYX_ERR(0, 3182, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3182, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3182, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_2, __pyx_n_s_cudaGraphDebugDotFlags, __pyx_n_s_cudaGraphDebugDotFlags, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_CUDA_Graph_debug_write_options); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3182, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_2 != __pyx_t_3) { if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_3) < 0))) __PYX_ERR(0, 3182, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3188 * * #: Output all debug data as if every debug flag is enabled * cudaGraphDebugDotFlagsVerbose = ccudart.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsVerbose # <<<<<<<<<<<<<< * * #: Adds :py:obj:`~.cudaKernelNodeParams` to output */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaGraphDebugDotFlags(cudaGraphDebugDotFlagsVerbose); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3188, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaGraphDebugDotFlagsVerbose, __pyx_t_3) < 0) __PYX_ERR(0, 3188, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3191 * * #: Adds :py:obj:`~.cudaKernelNodeParams` to output * cudaGraphDebugDotFlagsKernelNodeParams = ccudart.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsKernelNodeParams # <<<<<<<<<<<<<< * * #: Adds :py:obj:`~.cudaMemcpy3DParms` to output */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaGraphDebugDotFlags(cudaGraphDebugDotFlagsKernelNodeParams); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3191, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaGraphDebugDotFlagsKernelNode, __pyx_t_3) < 0) __PYX_ERR(0, 3191, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3194 * * #: Adds :py:obj:`~.cudaMemcpy3DParms` to output * cudaGraphDebugDotFlagsMemcpyNodeParams = ccudart.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsMemcpyNodeParams # <<<<<<<<<<<<<< * * #: Adds :py:obj:`~.cudaMemsetParams` to output */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaGraphDebugDotFlags(cudaGraphDebugDotFlagsMemcpyNodeParams); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3194, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaGraphDebugDotFlagsMemcpyNode, __pyx_t_3) < 0) __PYX_ERR(0, 3194, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3197 * * #: Adds :py:obj:`~.cudaMemsetParams` to output * cudaGraphDebugDotFlagsMemsetNodeParams = ccudart.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsMemsetNodeParams # <<<<<<<<<<<<<< * * #: Adds :py:obj:`~.cudaHostNodeParams` to output */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaGraphDebugDotFlags(cudaGraphDebugDotFlagsMemsetNodeParams); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3197, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaGraphDebugDotFlagsMemsetNode, __pyx_t_3) < 0) __PYX_ERR(0, 3197, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3200 * * #: Adds :py:obj:`~.cudaHostNodeParams` to output * cudaGraphDebugDotFlagsHostNodeParams = ccudart.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsHostNodeParams # <<<<<<<<<<<<<< * * #: Adds cudaEvent_t handle from record and wait nodes to output */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaGraphDebugDotFlags(cudaGraphDebugDotFlagsHostNodeParams); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaGraphDebugDotFlagsHostNodePa, __pyx_t_3) < 0) __PYX_ERR(0, 3200, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3203 * * #: Adds cudaEvent_t handle from record and wait nodes to output * cudaGraphDebugDotFlagsEventNodeParams = ccudart.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsEventNodeParams # <<<<<<<<<<<<<< * * #: Adds :py:obj:`~.cudaExternalSemaphoreSignalNodeParams` values to */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaGraphDebugDotFlags(cudaGraphDebugDotFlagsEventNodeParams); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3203, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaGraphDebugDotFlagsEventNodeP, __pyx_t_3) < 0) __PYX_ERR(0, 3203, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3207 * #: Adds :py:obj:`~.cudaExternalSemaphoreSignalNodeParams` values to * #: output * cudaGraphDebugDotFlagsExtSemasSignalNodeParams = ccudart.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsExtSemasSignalNodeParams # <<<<<<<<<<<<<< * * #: Adds :py:obj:`~.cudaExternalSemaphoreWaitNodeParams` to output */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaGraphDebugDotFlags(cudaGraphDebugDotFlagsExtSemasSignalNodeParams); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3207, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaGraphDebugDotFlagsExtSemasSi, __pyx_t_3) < 0) __PYX_ERR(0, 3207, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3210 * * #: Adds :py:obj:`~.cudaExternalSemaphoreWaitNodeParams` to output * cudaGraphDebugDotFlagsExtSemasWaitNodeParams = ccudart.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsExtSemasWaitNodeParams # <<<<<<<<<<<<<< * * #: Adds cudaKernelNodeAttrID values to output */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaGraphDebugDotFlags(cudaGraphDebugDotFlagsExtSemasWaitNodeParams); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaGraphDebugDotFlagsExtSemasWa, __pyx_t_3) < 0) __PYX_ERR(0, 3210, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3213 * * #: Adds cudaKernelNodeAttrID values to output * cudaGraphDebugDotFlagsKernelNodeAttributes = ccudart.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsKernelNodeAttributes # <<<<<<<<<<<<<< * * #: Adds node handles and every kernel function handle to output */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaGraphDebugDotFlags(cudaGraphDebugDotFlagsKernelNodeAttributes); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3213, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaGraphDebugDotFlagsKernelNode_2, __pyx_t_3) < 0) __PYX_ERR(0, 3213, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3216 * * #: Adds node handles and every kernel function handle to output * cudaGraphDebugDotFlagsHandles = ccudart.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsHandles # <<<<<<<<<<<<<< * * #: Adds :py:obj:`~.cudaConditionalNodeParams` to output */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaGraphDebugDotFlags(cudaGraphDebugDotFlagsHandles); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3216, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaGraphDebugDotFlagsHandles, __pyx_t_3) < 0) __PYX_ERR(0, 3216, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3219 * * #: Adds :py:obj:`~.cudaConditionalNodeParams` to output * cudaGraphDebugDotFlagsConditionalNodeParams = ccudart.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsConditionalNodeParams # <<<<<<<<<<<<<< * * class cudaGraphInstantiateFlags(IntEnum): */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaGraphDebugDotFlags(cudaGraphDebugDotFlagsConditionalNodeParams); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3219, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaGraphDebugDotFlagsConditiona, __pyx_t_3) < 0) __PYX_ERR(0, 3219, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3182 * cudaDriverEntryPointVersionNotSufficent = ccudart.cudaDriverEntryPointQueryResult.cudaDriverEntryPointVersionNotSufficent * * class cudaGraphDebugDotFlags(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA Graph debug write options */ __pyx_t_3 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_n_s_cudaGraphDebugDotFlags, __pyx_t_2, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3182, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphDebugDotFlags, __pyx_t_3) < 0) __PYX_ERR(0, 3182, __pyx_L1_error) __Pyx_DECREF(__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; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":3221 * cudaGraphDebugDotFlagsConditionalNodeParams = ccudart.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsConditionalNodeParams * * class cudaGraphInstantiateFlags(IntEnum): # <<<<<<<<<<<<<< * """ * Flags for instantiating a graph */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3221, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3221, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 3221, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3221, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3221, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_n_s_cudaGraphInstantiateFlags, __pyx_n_s_cudaGraphInstantiateFlags, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_Flags_for_instantiating_a_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3221, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_2 != __pyx_t_4) { if (unlikely((PyDict_SetItemString(__pyx_t_3, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 3221, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":3227 * * #: Automatically free memory allocated in a graph before relaunching. * cudaGraphInstantiateFlagAutoFreeOnLaunch = ccudart.cudaGraphInstantiateFlags.cudaGraphInstantiateFlagAutoFreeOnLaunch # <<<<<<<<<<<<<< * * #: Automatically upload the graph after instantiation. Only supported */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaGraphInstantiateFlags(cudaGraphInstantiateFlagAutoFreeOnLaunch); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3227, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaGraphInstantiateFlagAutoFree, __pyx_t_4) < 0) __PYX_ERR(0, 3227, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":3234 * #: performed using the * #: stream provided in `instantiateParams`. * cudaGraphInstantiateFlagUpload = ccudart.cudaGraphInstantiateFlags.cudaGraphInstantiateFlagUpload # <<<<<<<<<<<<<< * * #: Instantiate the graph to be launchable from the device. This flag */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaGraphInstantiateFlags(cudaGraphInstantiateFlagUpload); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3234, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaGraphInstantiateFlagUpload, __pyx_t_4) < 0) __PYX_ERR(0, 3234, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":3241 * #: cannot be * #: used in conjunction with cudaGraphInstantiateFlagAutoFreeOnLaunch. * cudaGraphInstantiateFlagDeviceLaunch = ccudart.cudaGraphInstantiateFlags.cudaGraphInstantiateFlagDeviceLaunch # <<<<<<<<<<<<<< * * #: Run the graph using the per-node priority attributes rather than the */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaGraphInstantiateFlags(cudaGraphInstantiateFlagDeviceLaunch); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3241, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaGraphInstantiateFlagDeviceLa, __pyx_t_4) < 0) __PYX_ERR(0, 3241, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":3245 * #: Run the graph using the per-node priority attributes rather than the * #: priority of the stream it is launched into. * cudaGraphInstantiateFlagUseNodePriority = ccudart.cudaGraphInstantiateFlags.cudaGraphInstantiateFlagUseNodePriority # <<<<<<<<<<<<<< * * class cudaDeviceNumaConfig(IntEnum): */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaGraphInstantiateFlags(cudaGraphInstantiateFlagUseNodePriority); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3245, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaGraphInstantiateFlagUseNodeP, __pyx_t_4) < 0) __PYX_ERR(0, 3245, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":3221 * cudaGraphDebugDotFlagsConditionalNodeParams = ccudart.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsConditionalNodeParams * * class cudaGraphInstantiateFlags(IntEnum): # <<<<<<<<<<<<<< * """ * Flags for instantiating a graph */ __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_n_s_cudaGraphInstantiateFlags, __pyx_t_2, __pyx_t_3, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3221, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphInstantiateFlags, __pyx_t_4) < 0) __PYX_ERR(0, 3221, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":3247 * cudaGraphInstantiateFlagUseNodePriority = ccudart.cudaGraphInstantiateFlags.cudaGraphInstantiateFlagUseNodePriority * * class cudaDeviceNumaConfig(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA device NUMA config */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3247, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3247, __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)) __PYX_ERR(0, 3247, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3247, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3247, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_3, __pyx_t_2, __pyx_n_s_cudaDeviceNumaConfig, __pyx_n_s_cudaDeviceNumaConfig, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_CUDA_device_NUMA_config); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3247, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_2 != __pyx_t_5) { if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_5) < 0))) __PYX_ERR(0, 3247, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3253 * * #: The GPU is not a NUMA node * cudaDeviceNumaConfigNone = ccudart.cudaDeviceNumaConfig.cudaDeviceNumaConfigNone # <<<<<<<<<<<<<< * * #: The GPU is a NUMA node, cudaDevAttrNumaId contains its NUMA ID */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaDeviceNumaConfig(cudaDeviceNumaConfigNone); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3253, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaDeviceNumaConfigNone, __pyx_t_5) < 0) __PYX_ERR(0, 3253, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3256 * * #: The GPU is a NUMA node, cudaDevAttrNumaId contains its NUMA ID * cudaDeviceNumaConfigNumaNode = ccudart.cudaDeviceNumaConfig.cudaDeviceNumaConfigNumaNode # <<<<<<<<<<<<<< * * class cudaSurfaceBoundaryMode(IntEnum): */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaDeviceNumaConfig(cudaDeviceNumaConfigNumaNode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3256, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaDeviceNumaConfigNumaNode, __pyx_t_5) < 0) __PYX_ERR(0, 3256, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3247 * cudaGraphInstantiateFlagUseNodePriority = ccudart.cudaGraphInstantiateFlags.cudaGraphInstantiateFlagUseNodePriority * * class cudaDeviceNumaConfig(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA device NUMA config */ __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_3, __pyx_n_s_cudaDeviceNumaConfig, __pyx_t_2, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3247, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceNumaConfig, __pyx_t_5) < 0) __PYX_ERR(0, 3247, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":3258 * cudaDeviceNumaConfigNumaNode = ccudart.cudaDeviceNumaConfig.cudaDeviceNumaConfigNumaNode * * class cudaSurfaceBoundaryMode(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA Surface boundary modes */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3258, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3258, __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)) __PYX_ERR(0, 3258, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3258, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3258, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_2, __pyx_n_s_cudaSurfaceBoundaryMode, __pyx_n_s_cudaSurfaceBoundaryMode, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_CUDA_Surface_boundary_modes); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3258, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_2 != __pyx_t_3) { if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_3) < 0))) __PYX_ERR(0, 3258, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3264 * * #: Zero boundary mode * cudaBoundaryModeZero = ccudart.cudaSurfaceBoundaryMode.cudaBoundaryModeZero # <<<<<<<<<<<<<< * * #: Clamp boundary mode */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaSurfaceBoundaryMode(cudaBoundaryModeZero); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3264, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaBoundaryModeZero, __pyx_t_3) < 0) __PYX_ERR(0, 3264, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3267 * * #: Clamp boundary mode * cudaBoundaryModeClamp = ccudart.cudaSurfaceBoundaryMode.cudaBoundaryModeClamp # <<<<<<<<<<<<<< * * #: Trap boundary mode */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaSurfaceBoundaryMode(cudaBoundaryModeClamp); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3267, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaBoundaryModeClamp, __pyx_t_3) < 0) __PYX_ERR(0, 3267, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3270 * * #: Trap boundary mode * cudaBoundaryModeTrap = ccudart.cudaSurfaceBoundaryMode.cudaBoundaryModeTrap # <<<<<<<<<<<<<< * * class cudaSurfaceFormatMode(IntEnum): */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaSurfaceBoundaryMode(cudaBoundaryModeTrap); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3270, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaBoundaryModeTrap, __pyx_t_3) < 0) __PYX_ERR(0, 3270, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3258 * cudaDeviceNumaConfigNumaNode = ccudart.cudaDeviceNumaConfig.cudaDeviceNumaConfigNumaNode * * class cudaSurfaceBoundaryMode(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA Surface boundary modes */ __pyx_t_3 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_n_s_cudaSurfaceBoundaryMode, __pyx_t_2, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3258, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaSurfaceBoundaryMode, __pyx_t_3) < 0) __PYX_ERR(0, 3258, __pyx_L1_error) __Pyx_DECREF(__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; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":3272 * cudaBoundaryModeTrap = ccudart.cudaSurfaceBoundaryMode.cudaBoundaryModeTrap * * class cudaSurfaceFormatMode(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA Surface format modes */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3272, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3272, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 3272, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3272, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3272, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_n_s_cudaSurfaceFormatMode, __pyx_n_s_cudaSurfaceFormatMode, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_CUDA_Surface_format_modes); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3272, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_2 != __pyx_t_4) { if (unlikely((PyDict_SetItemString(__pyx_t_3, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 3272, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":3278 * * #: Forced format mode * cudaFormatModeForced = ccudart.cudaSurfaceFormatMode.cudaFormatModeForced # <<<<<<<<<<<<<< * * #: Auto format mode */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaSurfaceFormatMode(cudaFormatModeForced); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3278, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaFormatModeForced, __pyx_t_4) < 0) __PYX_ERR(0, 3278, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":3281 * * #: Auto format mode * cudaFormatModeAuto = ccudart.cudaSurfaceFormatMode.cudaFormatModeAuto # <<<<<<<<<<<<<< * * class cudaTextureAddressMode(IntEnum): */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaSurfaceFormatMode(cudaFormatModeAuto); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3281, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaFormatModeAuto, __pyx_t_4) < 0) __PYX_ERR(0, 3281, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":3272 * cudaBoundaryModeTrap = ccudart.cudaSurfaceBoundaryMode.cudaBoundaryModeTrap * * class cudaSurfaceFormatMode(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA Surface format modes */ __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_n_s_cudaSurfaceFormatMode, __pyx_t_2, __pyx_t_3, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3272, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaSurfaceFormatMode, __pyx_t_4) < 0) __PYX_ERR(0, 3272, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":3283 * cudaFormatModeAuto = ccudart.cudaSurfaceFormatMode.cudaFormatModeAuto * * class cudaTextureAddressMode(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA texture address modes */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3283, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3283, __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)) __PYX_ERR(0, 3283, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3283, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3283, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_3, __pyx_t_2, __pyx_n_s_cudaTextureAddressMode, __pyx_n_s_cudaTextureAddressMode, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_CUDA_texture_address_modes); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3283, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_2 != __pyx_t_5) { if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_5) < 0))) __PYX_ERR(0, 3283, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3289 * * #: Wrapping address mode * cudaAddressModeWrap = ccudart.cudaTextureAddressMode.cudaAddressModeWrap # <<<<<<<<<<<<<< * * #: Clamp to edge address mode */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaTextureAddressMode(cudaAddressModeWrap); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3289, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaAddressModeWrap, __pyx_t_5) < 0) __PYX_ERR(0, 3289, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3292 * * #: Clamp to edge address mode * cudaAddressModeClamp = ccudart.cudaTextureAddressMode.cudaAddressModeClamp # <<<<<<<<<<<<<< * * #: Mirror address mode */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaTextureAddressMode(cudaAddressModeClamp); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3292, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaAddressModeClamp, __pyx_t_5) < 0) __PYX_ERR(0, 3292, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3295 * * #: Mirror address mode * cudaAddressModeMirror = ccudart.cudaTextureAddressMode.cudaAddressModeMirror # <<<<<<<<<<<<<< * * #: Border address mode */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaTextureAddressMode(cudaAddressModeMirror); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3295, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaAddressModeMirror, __pyx_t_5) < 0) __PYX_ERR(0, 3295, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3298 * * #: Border address mode * cudaAddressModeBorder = ccudart.cudaTextureAddressMode.cudaAddressModeBorder # <<<<<<<<<<<<<< * * class cudaTextureFilterMode(IntEnum): */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaTextureAddressMode(cudaAddressModeBorder); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3298, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaAddressModeBorder, __pyx_t_5) < 0) __PYX_ERR(0, 3298, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3283 * cudaFormatModeAuto = ccudart.cudaSurfaceFormatMode.cudaFormatModeAuto * * class cudaTextureAddressMode(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA texture address modes */ __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_3, __pyx_n_s_cudaTextureAddressMode, __pyx_t_2, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3283, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaTextureAddressMode, __pyx_t_5) < 0) __PYX_ERR(0, 3283, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":3300 * cudaAddressModeBorder = ccudart.cudaTextureAddressMode.cudaAddressModeBorder * * class cudaTextureFilterMode(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA texture filter modes */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3300, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3300, __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)) __PYX_ERR(0, 3300, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3300, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3300, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_2, __pyx_n_s_cudaTextureFilterMode, __pyx_n_s_cudaTextureFilterMode, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_CUDA_texture_filter_modes); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3300, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_2 != __pyx_t_3) { if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_3) < 0))) __PYX_ERR(0, 3300, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3306 * * #: Point filter mode * cudaFilterModePoint = ccudart.cudaTextureFilterMode.cudaFilterModePoint # <<<<<<<<<<<<<< * * #: Linear filter mode */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaTextureFilterMode(cudaFilterModePoint); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3306, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaFilterModePoint, __pyx_t_3) < 0) __PYX_ERR(0, 3306, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3309 * * #: Linear filter mode * cudaFilterModeLinear = ccudart.cudaTextureFilterMode.cudaFilterModeLinear # <<<<<<<<<<<<<< * * class cudaTextureReadMode(IntEnum): */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaTextureFilterMode(cudaFilterModeLinear); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3309, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaFilterModeLinear, __pyx_t_3) < 0) __PYX_ERR(0, 3309, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3300 * cudaAddressModeBorder = ccudart.cudaTextureAddressMode.cudaAddressModeBorder * * class cudaTextureFilterMode(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA texture filter modes */ __pyx_t_3 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_n_s_cudaTextureFilterMode, __pyx_t_2, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3300, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaTextureFilterMode, __pyx_t_3) < 0) __PYX_ERR(0, 3300, __pyx_L1_error) __Pyx_DECREF(__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; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":3311 * cudaFilterModeLinear = ccudart.cudaTextureFilterMode.cudaFilterModeLinear * * class cudaTextureReadMode(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA texture read modes */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3311, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3311, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 3311, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3311, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3311, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_n_s_cudaTextureReadMode, __pyx_n_s_cudaTextureReadMode, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_CUDA_texture_read_modes); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3311, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_2 != __pyx_t_4) { if (unlikely((PyDict_SetItemString(__pyx_t_3, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 3311, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":3317 * * #: Read texture as specified element type * cudaReadModeElementType = ccudart.cudaTextureReadMode.cudaReadModeElementType # <<<<<<<<<<<<<< * * #: Read texture as normalized float */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaTextureReadMode(cudaReadModeElementType); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3317, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaReadModeElementType, __pyx_t_4) < 0) __PYX_ERR(0, 3317, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":3320 * * #: Read texture as normalized float * cudaReadModeNormalizedFloat = ccudart.cudaTextureReadMode.cudaReadModeNormalizedFloat # <<<<<<<<<<<<<< * * class cudaRoundMode(IntEnum): */ __pyx_t_4 = __Pyx_PyInt_From_enum__cudaTextureReadMode(cudaReadModeNormalizedFloat); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3320, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaReadModeNormalizedFloat, __pyx_t_4) < 0) __PYX_ERR(0, 3320, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":3311 * cudaFilterModeLinear = ccudart.cudaTextureFilterMode.cudaFilterModeLinear * * class cudaTextureReadMode(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA texture read modes */ __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_n_s_cudaTextureReadMode, __pyx_t_2, __pyx_t_3, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3311, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaTextureReadMode, __pyx_t_4) < 0) __PYX_ERR(0, 3311, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":3322 * cudaReadModeNormalizedFloat = ccudart.cudaTextureReadMode.cudaReadModeNormalizedFloat * * class cudaRoundMode(IntEnum): # <<<<<<<<<<<<<< * """""" * cudaRoundNearest = ccudart.cudaRoundMode.cudaRoundNearest */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3322, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3322, __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)) __PYX_ERR(0, 3322, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3322, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3322, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_3, __pyx_t_2, __pyx_n_s_cudaRoundMode, __pyx_n_s_cudaRoundMode, (PyObject *) NULL, __pyx_n_s_cuda_cudart, (PyObject *) NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3322, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_2 != __pyx_t_5) { if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_5) < 0))) __PYX_ERR(0, 3322, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3324 * class cudaRoundMode(IntEnum): * """""" * cudaRoundNearest = ccudart.cudaRoundMode.cudaRoundNearest # <<<<<<<<<<<<<< * cudaRoundZero = ccudart.cudaRoundMode.cudaRoundZero * cudaRoundPosInf = ccudart.cudaRoundMode.cudaRoundPosInf */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaRoundMode(cudaRoundNearest); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3324, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaRoundNearest, __pyx_t_5) < 0) __PYX_ERR(0, 3324, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3325 * """""" * cudaRoundNearest = ccudart.cudaRoundMode.cudaRoundNearest * cudaRoundZero = ccudart.cudaRoundMode.cudaRoundZero # <<<<<<<<<<<<<< * cudaRoundPosInf = ccudart.cudaRoundMode.cudaRoundPosInf * cudaRoundMinInf = ccudart.cudaRoundMode.cudaRoundMinInf */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaRoundMode(cudaRoundZero); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3325, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaRoundZero, __pyx_t_5) < 0) __PYX_ERR(0, 3325, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3326 * cudaRoundNearest = ccudart.cudaRoundMode.cudaRoundNearest * cudaRoundZero = ccudart.cudaRoundMode.cudaRoundZero * cudaRoundPosInf = ccudart.cudaRoundMode.cudaRoundPosInf # <<<<<<<<<<<<<< * cudaRoundMinInf = ccudart.cudaRoundMode.cudaRoundMinInf * */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaRoundMode(cudaRoundPosInf); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3326, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaRoundPosInf, __pyx_t_5) < 0) __PYX_ERR(0, 3326, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3327 * cudaRoundZero = ccudart.cudaRoundMode.cudaRoundZero * cudaRoundPosInf = ccudart.cudaRoundMode.cudaRoundPosInf * cudaRoundMinInf = ccudart.cudaRoundMode.cudaRoundMinInf # <<<<<<<<<<<<<< * * class cudaGLDeviceList(IntEnum): */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaRoundMode(cudaRoundMinInf); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3327, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaRoundMinInf, __pyx_t_5) < 0) __PYX_ERR(0, 3327, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3322 * cudaReadModeNormalizedFloat = ccudart.cudaTextureReadMode.cudaReadModeNormalizedFloat * * class cudaRoundMode(IntEnum): # <<<<<<<<<<<<<< * """""" * cudaRoundNearest = ccudart.cudaRoundMode.cudaRoundNearest */ __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_3, __pyx_n_s_cudaRoundMode, __pyx_t_2, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3322, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaRoundMode, __pyx_t_5) < 0) __PYX_ERR(0, 3322, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":3329 * cudaRoundMinInf = ccudart.cudaRoundMode.cudaRoundMinInf * * class cudaGLDeviceList(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA devices corresponding to the current OpenGL context */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3329, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3329, __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)) __PYX_ERR(0, 3329, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3329, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3329, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_2, __pyx_n_s_cudaGLDeviceList, __pyx_n_s_cudaGLDeviceList, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_CUDA_devices_corresponding_to_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3329, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_2 != __pyx_t_3) { if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_3) < 0))) __PYX_ERR(0, 3329, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3335 * * #: The CUDA devices for all GPUs used by the current OpenGL context * cudaGLDeviceListAll = ccudart.cudaGLDeviceList.cudaGLDeviceListAll # <<<<<<<<<<<<<< * * #: The CUDA devices for the GPUs used by the current OpenGL context in */ __pyx_t_3 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaGLDeviceList(__pyx_e_4cuda_7ccudart_cudaGLDeviceListAll); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3335, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaGLDeviceListAll, __pyx_t_3) < 0) __PYX_ERR(0, 3335, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3339 * #: The CUDA devices for the GPUs used by the current OpenGL context in * #: its currently rendering frame * cudaGLDeviceListCurrentFrame = ccudart.cudaGLDeviceList.cudaGLDeviceListCurrentFrame # <<<<<<<<<<<<<< * * #: The CUDA devices for the GPUs to be used by the current OpenGL */ __pyx_t_3 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaGLDeviceList(__pyx_e_4cuda_7ccudart_cudaGLDeviceListCurrentFrame); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3339, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaGLDeviceListCurrentFrame, __pyx_t_3) < 0) __PYX_ERR(0, 3339, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3343 * #: The CUDA devices for the GPUs to be used by the current OpenGL * #: context in the next frame * cudaGLDeviceListNextFrame = ccudart.cudaGLDeviceList.cudaGLDeviceListNextFrame # <<<<<<<<<<<<<< * * class cudaGLMapFlags(IntEnum): */ __pyx_t_3 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaGLDeviceList(__pyx_e_4cuda_7ccudart_cudaGLDeviceListNextFrame); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3343, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaGLDeviceListNextFrame, __pyx_t_3) < 0) __PYX_ERR(0, 3343, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3329 * cudaRoundMinInf = ccudart.cudaRoundMode.cudaRoundMinInf * * class cudaGLDeviceList(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA devices corresponding to the current OpenGL context */ __pyx_t_3 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_n_s_cudaGLDeviceList, __pyx_t_2, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3329, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGLDeviceList, __pyx_t_3) < 0) __PYX_ERR(0, 3329, __pyx_L1_error) __Pyx_DECREF(__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; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":3345 * cudaGLDeviceListNextFrame = ccudart.cudaGLDeviceList.cudaGLDeviceListNextFrame * * class cudaGLMapFlags(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA GL Map Flags */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3345, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3345, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GIVEREF(__pyx_t_2); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)) __PYX_ERR(0, 3345, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3345, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3345, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_n_s_cudaGLMapFlags, __pyx_n_s_cudaGLMapFlags, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_CUDA_GL_Map_Flags); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3345, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__pyx_t_2 != __pyx_t_4) { if (unlikely((PyDict_SetItemString(__pyx_t_3, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 3345, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":3351 * * #: Default; Assume resource can be read/written * cudaGLMapFlagsNone = ccudart.cudaGLMapFlags.cudaGLMapFlagsNone # <<<<<<<<<<<<<< * * #: CUDA kernels will not write to this resource */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaGLMapFlags(__pyx_e_4cuda_7ccudart_cudaGLMapFlagsNone); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3351, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaGLMapFlagsNone, __pyx_t_4) < 0) __PYX_ERR(0, 3351, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":3354 * * #: CUDA kernels will not write to this resource * cudaGLMapFlagsReadOnly = ccudart.cudaGLMapFlags.cudaGLMapFlagsReadOnly # <<<<<<<<<<<<<< * * #: CUDA kernels will only write to and will not read from this resource */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaGLMapFlags(__pyx_e_4cuda_7ccudart_cudaGLMapFlagsReadOnly); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3354, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaGLMapFlagsReadOnly, __pyx_t_4) < 0) __PYX_ERR(0, 3354, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":3357 * * #: CUDA kernels will only write to and will not read from this resource * cudaGLMapFlagsWriteDiscard = ccudart.cudaGLMapFlags.cudaGLMapFlagsWriteDiscard # <<<<<<<<<<<<<< * * class cudaStreamAttrID(IntEnum): */ __pyx_t_4 = __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaGLMapFlags(__pyx_e_4cuda_7ccudart_cudaGLMapFlagsWriteDiscard); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3357, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_cudaGLMapFlagsWriteDiscard, __pyx_t_4) < 0) __PYX_ERR(0, 3357, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":3345 * cudaGLDeviceListNextFrame = ccudart.cudaGLDeviceList.cudaGLDeviceListNextFrame * * class cudaGLMapFlags(IntEnum): # <<<<<<<<<<<<<< * """ * CUDA GL Map Flags */ __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_n_s_cudaGLMapFlags, __pyx_t_2, __pyx_t_3, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3345, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGLMapFlags, __pyx_t_4) < 0) __PYX_ERR(0, 3345, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":3359 * cudaGLMapFlagsWriteDiscard = ccudart.cudaGLMapFlags.cudaGLMapFlagsWriteDiscard * * class cudaStreamAttrID(IntEnum): # <<<<<<<<<<<<<< * """ * Launch attributes enum; used as id field of */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3359, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3359, __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)) __PYX_ERR(0, 3359, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3359, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3359, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_3, __pyx_t_2, __pyx_n_s_cudaStreamAttrID, __pyx_n_s_cudaStreamAttrID, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_Launch_attributes_enum_used_as); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3359, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__pyx_t_2 != __pyx_t_5) { if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_5) < 0))) __PYX_ERR(0, 3359, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3366 * * #: Ignored entry, for convenient composition * cudaLaunchAttributeIgnore = ccudart.cudaLaunchAttributeID.cudaLaunchAttributeIgnore # <<<<<<<<<<<<<< * * #: Valid for streams, graph nodes, launches. See */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeIgnore); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3366, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaLaunchAttributeIgnore, __pyx_t_5) < 0) __PYX_ERR(0, 3366, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3370 * #: Valid for streams, graph nodes, launches. See * #: :py:obj:`~.cudaLaunchAttributeValue.accessPolicyWindow`. * cudaLaunchAttributeAccessPolicyWindow = ccudart.cudaLaunchAttributeID.cudaLaunchAttributeAccessPolicyWindow # <<<<<<<<<<<<<< * * #: Valid for graph nodes, launches. See */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeAccessPolicyWindow); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3370, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaLaunchAttributeAccessPolicyW, __pyx_t_5) < 0) __PYX_ERR(0, 3370, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3374 * #: Valid for graph nodes, launches. See * #: :py:obj:`~.cudaLaunchAttributeValue.cooperative`. * cudaLaunchAttributeCooperative = ccudart.cudaLaunchAttributeID.cudaLaunchAttributeCooperative # <<<<<<<<<<<<<< * * #: Valid for streams. See */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeCooperative); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3374, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaLaunchAttributeCooperative, __pyx_t_5) < 0) __PYX_ERR(0, 3374, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3378 * #: Valid for streams. See * #: :py:obj:`~.cudaLaunchAttributeValue.syncPolicy`. * cudaLaunchAttributeSynchronizationPolicy = ccudart.cudaLaunchAttributeID.cudaLaunchAttributeSynchronizationPolicy # <<<<<<<<<<<<<< * * #: Valid for graph nodes, launches. See */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeSynchronizationPolicy); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3378, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaLaunchAttributeSynchronizati, __pyx_t_5) < 0) __PYX_ERR(0, 3378, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3382 * #: Valid for graph nodes, launches. See * #: :py:obj:`~.cudaLaunchAttributeValue.clusterDim`. * cudaLaunchAttributeClusterDimension = ccudart.cudaLaunchAttributeID.cudaLaunchAttributeClusterDimension # <<<<<<<<<<<<<< * * #: Valid for graph nodes, launches. See */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeClusterDimension); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3382, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaLaunchAttributeClusterDimens, __pyx_t_5) < 0) __PYX_ERR(0, 3382, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3386 * #: Valid for graph nodes, launches. See * #: :py:obj:`~.cudaLaunchAttributeValue.clusterSchedulingPolicyPreference`. * cudaLaunchAttributeClusterSchedulingPolicyPreference = ccudart.cudaLaunchAttributeID.cudaLaunchAttributeClusterSchedulingPolicyPreference # <<<<<<<<<<<<<< * * #: Valid for launches. Setting */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeClusterSchedulingPolicyPreference); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3386, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaLaunchAttributeClusterSchedu, __pyx_t_5) < 0) __PYX_ERR(0, 3386, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3397 * #: the programmatic sync (cudaGridDependencySynchronize() or equivalent * #: PTX instructions). * cudaLaunchAttributeProgrammaticStreamSerialization = ccudart.cudaLaunchAttributeID.cudaLaunchAttributeProgrammaticStreamSerialization # <<<<<<<<<<<<<< * * #: Valid for launches. Set */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeProgrammaticStreamSerialization); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3397, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaLaunchAttributeProgrammaticS, __pyx_t_5) < 0) __PYX_ERR(0, 3397, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3419 * #: The event must disable timing (i.e. must be created with the * #: :py:obj:`~.cudaEventDisableTiming` flag set). * cudaLaunchAttributeProgrammaticEvent = ccudart.cudaLaunchAttributeID.cudaLaunchAttributeProgrammaticEvent # <<<<<<<<<<<<<< * * #: Valid for streams, graph nodes, launches. See */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeProgrammaticEvent); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3419, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaLaunchAttributeProgrammaticE, __pyx_t_5) < 0) __PYX_ERR(0, 3419, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3423 * #: Valid for streams, graph nodes, launches. See * #: :py:obj:`~.cudaLaunchAttributeValue.priority`. * cudaLaunchAttributePriority = ccudart.cudaLaunchAttributeID.cudaLaunchAttributePriority # <<<<<<<<<<<<<< * * #: Valid for streams, graph nodes, launches. See */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributePriority); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3423, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaLaunchAttributePriority, __pyx_t_5) < 0) __PYX_ERR(0, 3423, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3427 * #: Valid for streams, graph nodes, launches. See * #: :py:obj:`~.cudaLaunchAttributeValue.memSyncDomainMap`. * cudaLaunchAttributeMemSyncDomainMap = ccudart.cudaLaunchAttributeID.cudaLaunchAttributeMemSyncDomainMap # <<<<<<<<<<<<<< * * #: Valid for streams, graph nodes, launches. See */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeMemSyncDomainMap); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3427, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaLaunchAttributeMemSyncDomain, __pyx_t_5) < 0) __PYX_ERR(0, 3427, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3431 * #: Valid for streams, graph nodes, launches. See * #: :py:obj:`~.cudaLaunchAttributeValue.memSyncDomain`. * cudaLaunchAttributeMemSyncDomain = ccudart.cudaLaunchAttributeID.cudaLaunchAttributeMemSyncDomain # <<<<<<<<<<<<<< * * #: Valid for launches. Set */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeMemSyncDomain); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3431, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaLaunchAttributeMemSyncDomain_2, __pyx_t_5) < 0) __PYX_ERR(0, 3431, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3451 * #: The event must disable timing (i.e. must be created with the * #: :py:obj:`~.cudaEventDisableTiming` flag set). * cudaLaunchAttributeLaunchCompletionEvent = ccudart.cudaLaunchAttributeID.cudaLaunchAttributeLaunchCompletionEvent # <<<<<<<<<<<<<< * * #: Valid for graph nodes, launches. This attribute is graphs-only, and */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeLaunchCompletionEvent); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3451, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaLaunchAttributeLaunchComplet, __pyx_t_5) < 0) __PYX_ERR(0, 3451, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3484 * #: updatable nodes, the graph must be uploaded before it is launched * #: again. * cudaLaunchAttributeDeviceUpdatableKernelNode = ccudart.cudaLaunchAttributeID.cudaLaunchAttributeDeviceUpdatableKernelNode # <<<<<<<<<<<<<< * * #: Valid for launches. On devices where the L1 cache and shared memory */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeDeviceUpdatableKernelNode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3484, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaLaunchAttributeDeviceUpdatab, __pyx_t_5) < 0) __PYX_ERR(0, 3484, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3495 * #: only a hint, and the driver can choose a different configuration if * #: required for the launch. * cudaLaunchAttributePreferredSharedMemoryCarveout = ccudart.cudaLaunchAttributeID.cudaLaunchAttributePreferredSharedMemoryCarveout # <<<<<<<<<<<<<< * * class cudaKernelNodeAttrID(IntEnum): */ __pyx_t_5 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributePreferredSharedMemoryCarveout); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3495, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_cudaLaunchAttributePreferredShar, __pyx_t_5) < 0) __PYX_ERR(0, 3495, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; /* "cuda/cudart.pyx":3359 * cudaGLMapFlagsWriteDiscard = ccudart.cudaGLMapFlags.cudaGLMapFlagsWriteDiscard * * class cudaStreamAttrID(IntEnum): # <<<<<<<<<<<<<< * """ * Launch attributes enum; used as id field of */ __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_3, __pyx_n_s_cudaStreamAttrID, __pyx_t_2, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3359, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaStreamAttrID, __pyx_t_5) < 0) __PYX_ERR(0, 3359, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":3497 * cudaLaunchAttributePreferredSharedMemoryCarveout = ccudart.cudaLaunchAttributeID.cudaLaunchAttributePreferredSharedMemoryCarveout * * class cudaKernelNodeAttrID(IntEnum): # <<<<<<<<<<<<<< * """ * Launch attributes enum; used as id field of */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IntEnum); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3497, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3497, __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)) __PYX_ERR(0, 3497, __pyx_L1_error); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3497, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3497, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_2, __pyx_n_s_cudaKernelNodeAttrID, __pyx_n_s_cudaKernelNodeAttrID, (PyObject *) NULL, __pyx_n_s_cuda_cudart, __pyx_kp_s_Launch_attributes_enum_used_as); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3497, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_2 != __pyx_t_3) { if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_3) < 0))) __PYX_ERR(0, 3497, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3504 * * #: Ignored entry, for convenient composition * cudaLaunchAttributeIgnore = ccudart.cudaLaunchAttributeID.cudaLaunchAttributeIgnore # <<<<<<<<<<<<<< * * #: Valid for streams, graph nodes, launches. See */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeIgnore); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3504, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaLaunchAttributeIgnore, __pyx_t_3) < 0) __PYX_ERR(0, 3504, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3508 * #: Valid for streams, graph nodes, launches. See * #: :py:obj:`~.cudaLaunchAttributeValue.accessPolicyWindow`. * cudaLaunchAttributeAccessPolicyWindow = ccudart.cudaLaunchAttributeID.cudaLaunchAttributeAccessPolicyWindow # <<<<<<<<<<<<<< * * #: Valid for graph nodes, launches. See */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeAccessPolicyWindow); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3508, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaLaunchAttributeAccessPolicyW, __pyx_t_3) < 0) __PYX_ERR(0, 3508, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3512 * #: Valid for graph nodes, launches. See * #: :py:obj:`~.cudaLaunchAttributeValue.cooperative`. * cudaLaunchAttributeCooperative = ccudart.cudaLaunchAttributeID.cudaLaunchAttributeCooperative # <<<<<<<<<<<<<< * * #: Valid for streams. See */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeCooperative); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3512, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaLaunchAttributeCooperative, __pyx_t_3) < 0) __PYX_ERR(0, 3512, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3516 * #: Valid for streams. See * #: :py:obj:`~.cudaLaunchAttributeValue.syncPolicy`. * cudaLaunchAttributeSynchronizationPolicy = ccudart.cudaLaunchAttributeID.cudaLaunchAttributeSynchronizationPolicy # <<<<<<<<<<<<<< * * #: Valid for graph nodes, launches. See */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeSynchronizationPolicy); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3516, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaLaunchAttributeSynchronizati, __pyx_t_3) < 0) __PYX_ERR(0, 3516, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3520 * #: Valid for graph nodes, launches. See * #: :py:obj:`~.cudaLaunchAttributeValue.clusterDim`. * cudaLaunchAttributeClusterDimension = ccudart.cudaLaunchAttributeID.cudaLaunchAttributeClusterDimension # <<<<<<<<<<<<<< * * #: Valid for graph nodes, launches. See */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeClusterDimension); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3520, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaLaunchAttributeClusterDimens, __pyx_t_3) < 0) __PYX_ERR(0, 3520, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3524 * #: Valid for graph nodes, launches. See * #: :py:obj:`~.cudaLaunchAttributeValue.clusterSchedulingPolicyPreference`. * cudaLaunchAttributeClusterSchedulingPolicyPreference = ccudart.cudaLaunchAttributeID.cudaLaunchAttributeClusterSchedulingPolicyPreference # <<<<<<<<<<<<<< * * #: Valid for launches. Setting */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeClusterSchedulingPolicyPreference); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3524, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaLaunchAttributeClusterSchedu, __pyx_t_3) < 0) __PYX_ERR(0, 3524, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3535 * #: the programmatic sync (cudaGridDependencySynchronize() or equivalent * #: PTX instructions). * cudaLaunchAttributeProgrammaticStreamSerialization = ccudart.cudaLaunchAttributeID.cudaLaunchAttributeProgrammaticStreamSerialization # <<<<<<<<<<<<<< * * #: Valid for launches. Set */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeProgrammaticStreamSerialization); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3535, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaLaunchAttributeProgrammaticS, __pyx_t_3) < 0) __PYX_ERR(0, 3535, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3557 * #: The event must disable timing (i.e. must be created with the * #: :py:obj:`~.cudaEventDisableTiming` flag set). * cudaLaunchAttributeProgrammaticEvent = ccudart.cudaLaunchAttributeID.cudaLaunchAttributeProgrammaticEvent # <<<<<<<<<<<<<< * * #: Valid for streams, graph nodes, launches. See */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeProgrammaticEvent); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3557, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaLaunchAttributeProgrammaticE, __pyx_t_3) < 0) __PYX_ERR(0, 3557, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3561 * #: Valid for streams, graph nodes, launches. See * #: :py:obj:`~.cudaLaunchAttributeValue.priority`. * cudaLaunchAttributePriority = ccudart.cudaLaunchAttributeID.cudaLaunchAttributePriority # <<<<<<<<<<<<<< * * #: Valid for streams, graph nodes, launches. See */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributePriority); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3561, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaLaunchAttributePriority, __pyx_t_3) < 0) __PYX_ERR(0, 3561, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3565 * #: Valid for streams, graph nodes, launches. See * #: :py:obj:`~.cudaLaunchAttributeValue.memSyncDomainMap`. * cudaLaunchAttributeMemSyncDomainMap = ccudart.cudaLaunchAttributeID.cudaLaunchAttributeMemSyncDomainMap # <<<<<<<<<<<<<< * * #: Valid for streams, graph nodes, launches. See */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeMemSyncDomainMap); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3565, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaLaunchAttributeMemSyncDomain, __pyx_t_3) < 0) __PYX_ERR(0, 3565, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3569 * #: Valid for streams, graph nodes, launches. See * #: :py:obj:`~.cudaLaunchAttributeValue.memSyncDomain`. * cudaLaunchAttributeMemSyncDomain = ccudart.cudaLaunchAttributeID.cudaLaunchAttributeMemSyncDomain # <<<<<<<<<<<<<< * * #: Valid for launches. Set */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeMemSyncDomain); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3569, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaLaunchAttributeMemSyncDomain_2, __pyx_t_3) < 0) __PYX_ERR(0, 3569, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3589 * #: The event must disable timing (i.e. must be created with the * #: :py:obj:`~.cudaEventDisableTiming` flag set). * cudaLaunchAttributeLaunchCompletionEvent = ccudart.cudaLaunchAttributeID.cudaLaunchAttributeLaunchCompletionEvent # <<<<<<<<<<<<<< * * #: Valid for graph nodes, launches. This attribute is graphs-only, and */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeLaunchCompletionEvent); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3589, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaLaunchAttributeLaunchComplet, __pyx_t_3) < 0) __PYX_ERR(0, 3589, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3622 * #: updatable nodes, the graph must be uploaded before it is launched * #: again. * cudaLaunchAttributeDeviceUpdatableKernelNode = ccudart.cudaLaunchAttributeID.cudaLaunchAttributeDeviceUpdatableKernelNode # <<<<<<<<<<<<<< * * #: Valid for launches. On devices where the L1 cache and shared memory */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeDeviceUpdatableKernelNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3622, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaLaunchAttributeDeviceUpdatab, __pyx_t_3) < 0) __PYX_ERR(0, 3622, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3633 * #: only a hint, and the driver can choose a different configuration if * #: required for the launch. * cudaLaunchAttributePreferredSharedMemoryCarveout = ccudart.cudaLaunchAttributeID.cudaLaunchAttributePreferredSharedMemoryCarveout # <<<<<<<<<<<<<< * * cdef class cudaArray_t: */ __pyx_t_3 = __Pyx_PyInt_From_enum__cudaLaunchAttributeID(cudaLaunchAttributePreferredSharedMemoryCarveout); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3633, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_cudaLaunchAttributePreferredShar, __pyx_t_3) < 0) __PYX_ERR(0, 3633, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "cuda/cudart.pyx":3497 * cudaLaunchAttributePreferredSharedMemoryCarveout = ccudart.cudaLaunchAttributeID.cudaLaunchAttributePreferredSharedMemoryCarveout * * class cudaKernelNodeAttrID(IntEnum): # <<<<<<<<<<<<<< * """ * Launch attributes enum; used as id field of */ __pyx_t_3 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_n_s_cudaKernelNodeAttrID, __pyx_t_2, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3497, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaKernelNodeAttrID, __pyx_t_3) < 0) __PYX_ERR(0, 3497, __pyx_L1_error) __Pyx_DECREF(__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; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":3660 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_11cudaArray_t_11getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaArray_t_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__2)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3660, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_t, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 3660, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaArray_t); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_11cudaArray_t_13__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaArray_t___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__3)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_11cudaArray_t_15__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaArray_t___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__4)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":3688 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_17cudaArray_const_t_11getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaArray_const_t_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__5)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3688, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArray_const_t, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 3688, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaArray_const_t); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_17cudaArray_const_t_13__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaArray_const_t___reduce_cytho, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__6)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_17cudaArray_const_t_15__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaArray_const_t___setstate_cyt, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__7)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":3716 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_20cudaMipmappedArray_t_11getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMipmappedArray_t_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__8)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3716, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMipmappedArray_t, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 3716, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaMipmappedArray_t); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_20cudaMipmappedArray_t_13__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMipmappedArray_t___reduce_cy, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__9)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_20cudaMipmappedArray_t_15__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMipmappedArray_t___setstate, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__10)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":3744 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_26cudaMipmappedArray_const_t_11getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMipmappedArray_const_t_getPt, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__11)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3744, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMipmappedArray_const_t, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 3744, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaMipmappedArray_const_t); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_26cudaMipmappedArray_const_t_13__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMipmappedArray_const_t___red, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__12)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_26cudaMipmappedArray_const_t_15__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMipmappedArray_const_t___set, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__13)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":3772 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_22cudaGraphicsResource_t_11getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaGraphicsResource_t_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__14)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3772, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 3772, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaGraphicsResource_t); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_22cudaGraphicsResource_t_13__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaGraphicsResource_t___reduce, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__15)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_22cudaGraphicsResource_t_15__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaGraphicsResource_t___setstat, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__16)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":3800 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_20cudaExternalMemory_t_11getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExternalMemory_t_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__17)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3800, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalMemory_t, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 3800, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaExternalMemory_t); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_20cudaExternalMemory_t_13__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExternalMemory_t___reduce_cy, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__18)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_20cudaExternalMemory_t_15__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExternalMemory_t___setstate, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__19)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":3828 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_23cudaExternalSemaphore_t_11getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExternalSemaphore_t_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__20)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3828, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalSemaphore_t, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 3828, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaExternalSemaphore_t); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_23cudaExternalSemaphore_t_13__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExternalSemaphore_t___reduce, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__21)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_23cudaExternalSemaphore_t_15__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExternalSemaphore_t___setsta, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__22)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":3856 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_12cudaKernel_t_11getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaKernel_t_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__23)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3856, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaKernel_t, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 3856, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaKernel_t); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_12cudaKernel_t_13__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaKernel_t___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__24)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_12cudaKernel_t_15__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaKernel_t___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__25)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":3884 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_21cudaGraphDeviceNode_t_11getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaGraphDeviceNode_t_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__26)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3884, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphDeviceNode_t, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 3884, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaGraphDeviceNode_t); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_21cudaGraphDeviceNode_t_13__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaGraphDeviceNode_t___reduce_c, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__27)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_21cudaGraphDeviceNode_t_15__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaGraphDeviceNode_t___setstate, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__28)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":3912 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_25cudaAsyncCallbackHandle_t_11getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaAsyncCallbackHandle_t_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__29)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3912, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaAsyncCallbackHandle_t, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 3912, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaAsyncCallbackHandle_t); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_25cudaAsyncCallbackHandle_t_13__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaAsyncCallbackHandle_t___redu, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__30)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_25cudaAsyncCallbackHandle_t_15__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaAsyncCallbackHandle_t___sets, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__31)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":3938 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_11EGLImageKHR_11getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_EGLImageKHR_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__32)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3938, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_EGLImageKHR, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 3938, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_EGLImageKHR); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_11EGLImageKHR_13__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_EGLImageKHR___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__33)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_11EGLImageKHR_15__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_EGLImageKHR___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__34)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":3964 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_12EGLStreamKHR_11getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_EGLStreamKHR_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__35)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3964, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_EGLStreamKHR, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 3964, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_EGLStreamKHR); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_12EGLStreamKHR_13__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_EGLStreamKHR___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__36)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_12EGLStreamKHR_15__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_EGLStreamKHR___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__37)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":3990 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_10EGLSyncKHR_11getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_EGLSyncKHR_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__38)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3990, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_EGLSyncKHR, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 3990, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_EGLSyncKHR); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_10EGLSyncKHR_13__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_EGLSyncKHR___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__39)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_10EGLSyncKHR_15__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_EGLSyncKHR___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__40)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":4016 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_12cudaHostFn_t_11getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaHostFn_t_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__41)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4016, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaHostFn_t, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 4016, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaHostFn_t); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_12cudaHostFn_t_13__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaHostFn_t___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__42)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_12cudaHostFn_t_15__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaHostFn_t___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__43)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":4042 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_17cudaAsyncCallback_11getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaAsyncCallback_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__44)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4042, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaAsyncCallback, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 4042, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaAsyncCallback); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_17cudaAsyncCallback_13__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaAsyncCallback___reduce_cytho, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__45)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_17cudaAsyncCallback_15__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaAsyncCallback___setstate_cyt, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__46)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":4068 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_20cudaStreamCallback_t_11getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaStreamCallback_t_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__47)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4068, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaStreamCallback_t, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 4068, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaStreamCallback_t); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_20cudaStreamCallback_t_13__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaStreamCallback_t___reduce_cy, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__48)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_20cudaStreamCallback_t_15__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaStreamCallback_t___setstate, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__49)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":4097 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_4dim3_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_dim3_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__50)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4097, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_dim3, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 4097, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_dim3); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_4dim3_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_dim3___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__53)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_4dim3_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_dim3___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__54)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":4168 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_21cudaChannelFormatDesc_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaChannelFormatDesc_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__55)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4168, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaChannelFormatDesc, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 4168, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaChannelFormatDesc); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_21cudaChannelFormatDesc_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaChannelFormatDesc___reduce_c, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__56)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_21cudaChannelFormatDesc_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaChannelFormatDesc___setstate, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__57)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":4251 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].tileExtent * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_12anon_struct0_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct0_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__58)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4251, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct0, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 4251, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_anon_struct0); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_12anon_struct0_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct0___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__59)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_12anon_struct0_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct0___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__60)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":4322 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_25cudaArraySparseProperties_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaArraySparseProperties_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__61)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4322, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArraySparseProperties, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 4322, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaArraySparseProperties); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_25cudaArraySparseProperties_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaArraySparseProperties___redu, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__63)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_25cudaArraySparseProperties_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaArraySparseProperties___sets, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__64)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":4409 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_27cudaArrayMemoryRequirements_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaArrayMemoryRequirements_getP, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__65)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4409, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaArrayMemoryRequirements, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 4409, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaArrayMemoryRequirements); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_27cudaArrayMemoryRequirements_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaArrayMemoryRequirements___re, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__66)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_27cudaArrayMemoryRequirements_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaArrayMemoryRequirements___se, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__67)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":4478 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_14cudaPitchedPtr_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaPitchedPtr_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__68)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4478, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaPitchedPtr, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 4478, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaPitchedPtr); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_14cudaPitchedPtr_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaPitchedPtr___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__69)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_14cudaPitchedPtr_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaPitchedPtr___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__70)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":4557 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_10cudaExtent_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExtent_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__71)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4557, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExtent, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 4557, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaExtent); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_10cudaExtent_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExtent___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__72)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_10cudaExtent_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExtent___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__73)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":4624 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_7cudaPos_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaPos_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__74)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4624, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaPos, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 4624, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaPos); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_7cudaPos_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaPos___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__75)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_7cudaPos_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaPos___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__76)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":4707 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_17cudaMemcpy3DParms_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemcpy3DParms_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__77)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4707, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemcpy3DParms, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 4707, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaMemcpy3DParms); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_17cudaMemcpy3DParms_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemcpy3DParms___reduce_cytho, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__78)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_17cudaMemcpy3DParms_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemcpy3DParms___setstate_cyt, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__79)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":4842 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_20cudaMemcpyNodeParams_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemcpyNodeParams_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__80)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4842, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemcpyNodeParams, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 4842, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaMemcpyNodeParams); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_20cudaMemcpyNodeParams_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemcpyNodeParams___reduce_cy, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__81)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_20cudaMemcpyNodeParams_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemcpyNodeParams___setstate, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__82)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":4927 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_21cudaMemcpy3DPeerParms_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemcpy3DPeerParms_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__83)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4927, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemcpy3DPeerParms, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 4927, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaMemcpy3DPeerParms); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_21cudaMemcpy3DPeerParms_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemcpy3DPeerParms___reduce_c, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__84)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_21cudaMemcpy3DPeerParms_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemcpy3DPeerParms___setstate, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__85)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":5078 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_16cudaMemsetParams_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemsetParams_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__86)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5078, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemsetParams, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 5078, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaMemsetParams); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_16cudaMemsetParams_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemsetParams___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__87)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_16cudaMemsetParams_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemsetParams___setstate_cyth, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__88)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":5182 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_18cudaMemsetParamsV2_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemsetParamsV2_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__89)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5182, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemsetParamsV2, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 5182, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaMemsetParamsV2); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_18cudaMemsetParamsV2_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemsetParamsV2___reduce_cyth, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__90)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_18cudaMemsetParamsV2_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemsetParamsV2___setstate_cy, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__91)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":5295 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_22cudaAccessPolicyWindow_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaAccessPolicyWindow_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__92)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5295, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaAccessPolicyWindow, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 5295, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaAccessPolicyWindow); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_22cudaAccessPolicyWindow_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaAccessPolicyWindow___reduce, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__93)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_22cudaAccessPolicyWindow_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaAccessPolicyWindow___setstat, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__94)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":5381 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_18cudaHostNodeParams_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaHostNodeParams_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__95)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5381, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaHostNodeParams, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 5381, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaHostNodeParams); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_18cudaHostNodeParams_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaHostNodeParams___reduce_cyth, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__96)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_18cudaHostNodeParams_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaHostNodeParams___setstate_cy, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__97)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":5446 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_20cudaHostNodeParamsV2_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaHostNodeParamsV2_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__98)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5446, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaHostNodeParamsV2, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 5446, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaHostNodeParamsV2); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_20cudaHostNodeParamsV2_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaHostNodeParamsV2___reduce_cy, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__99)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_20cudaHostNodeParamsV2_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaHostNodeParamsV2___setstate, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__100)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":5505 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].res.array * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_12anon_struct1_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct1_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__101)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5505, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct1, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 5505, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_anon_struct1); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_12anon_struct1_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct1___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__102)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_12anon_struct1_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct1___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__103)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":5553 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].res.mipmap * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_12anon_struct2_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct2_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__104)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5553, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct2, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 5553, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_anon_struct2); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_12anon_struct2_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct2___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__105)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_12anon_struct2_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct2___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__106)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":5605 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].res.linear * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_12anon_struct3_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct3_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__107)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5605, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct3, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 5605, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_anon_struct3); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_12anon_struct3_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct3___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__108)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_12anon_struct3_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct3___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__109)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":5673 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].res.pitch2D * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_12anon_struct4_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct4_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__110)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5673, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct4, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 5673, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_anon_struct4); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_12anon_struct4_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct4___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__111)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_12anon_struct4_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct4___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__112)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":5762 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].res * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_11anon_union0_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_union0_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__113)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5762, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_anon_union0, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 5762, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_anon_union0); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_11anon_union0_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_union0___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__114)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_11anon_union0_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_union0___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__115)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":5839 * if self._val_ptr is not NULL: * free(self._val_ptr) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_16cudaResourceDesc_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaResourceDesc_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__116)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5839, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaResourceDesc, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 5839, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaResourceDesc); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_16cudaResourceDesc_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaResourceDesc___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__117)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_16cudaResourceDesc_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaResourceDesc___setstate_cyth, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__118)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":5906 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_20cudaResourceViewDesc_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaResourceViewDesc_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__119)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5906, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaResourceViewDesc, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 5906, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaResourceViewDesc); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_20cudaResourceViewDesc_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaResourceViewDesc___reduce_cy, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__120)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_20cudaResourceViewDesc_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaResourceViewDesc___setstate, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__121)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":6036 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_21cudaPointerAttributes_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaPointerAttributes_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__122)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6036, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaPointerAttributes, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 6036, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaPointerAttributes); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_21cudaPointerAttributes_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaPointerAttributes___reduce_c, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__123)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_21cudaPointerAttributes_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaPointerAttributes___setstate, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__124)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":6180 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_18cudaFuncAttributes_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaFuncAttributes_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__125)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6180, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaFuncAttributes, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 6180, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaFuncAttributes); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_18cudaFuncAttributes_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaFuncAttributes___reduce_cyth, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__126)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_18cudaFuncAttributes_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaFuncAttributes___setstate_cy, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__127)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":6388 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_15cudaMemLocation_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemLocation_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__128)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6388, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemLocation, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 6388, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaMemLocation); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_15cudaMemLocation_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemLocation___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__129)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_15cudaMemLocation_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemLocation___setstate_cytho, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__130)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":6443 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_17cudaMemAccessDesc_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemAccessDesc_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__131)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6443, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemAccessDesc, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 6443, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaMemAccessDesc); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_17cudaMemAccessDesc_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemAccessDesc___reduce_cytho, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__132)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_17cudaMemAccessDesc_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemAccessDesc___setstate_cyt, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__133)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":6514 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_16cudaMemPoolProps_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemPoolProps_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__134)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6514, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemPoolProps, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 6514, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaMemPoolProps); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_16cudaMemPoolProps_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemPoolProps___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__135)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_16cudaMemPoolProps_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemPoolProps___setstate_cyth, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__136)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":6621 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_24cudaMemPoolPtrExportData_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemPoolPtrExportData_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__137)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6621, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemPoolPtrExportData, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 6621, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaMemPoolPtrExportData); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_24cudaMemPoolPtrExportData_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemPoolPtrExportData___reduc, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__138)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_24cudaMemPoolPtrExportData_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemPoolPtrExportData___setst, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__139)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":6680 * if self._accessDescs is not NULL: * free(self._accessDescs) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_22cudaMemAllocNodeParams_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemAllocNodeParams_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__140)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6680, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParams, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 6680, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParams); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_22cudaMemAllocNodeParams_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemAllocNodeParams___reduce, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__141)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_22cudaMemAllocNodeParams_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemAllocNodeParams___setstat, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__142)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":6792 * if self._accessDescs is not NULL: * free(self._accessDescs) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_24cudaMemAllocNodeParamsV2_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemAllocNodeParamsV2_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__143)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6792, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParamsV2, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 6792, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaMemAllocNodeParamsV2); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_24cudaMemAllocNodeParamsV2_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemAllocNodeParamsV2___reduc, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__144)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_24cudaMemAllocNodeParamsV2_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemAllocNodeParamsV2___setst, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__145)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":6891 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_21cudaMemFreeNodeParams_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemFreeNodeParams_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__146)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6891, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemFreeNodeParams, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 6891, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaMemFreeNodeParams); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_21cudaMemFreeNodeParams_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemFreeNodeParams___reduce_c, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__147)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_21cudaMemFreeNodeParams_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemFreeNodeParams___setstate, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__148)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":6933 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_9CUuuid_st_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_CUuuid_st_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__149)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6933, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_CUuuid_st, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 6933, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_CUuuid_st); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_9CUuuid_st_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_CUuuid_st___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__150)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_9CUuuid_st_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_CUuuid_st___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__151)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":7185 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_14cudaDeviceProp_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaDeviceProp_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__152)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7185, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaDeviceProp, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 7185, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaDeviceProp); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_14cudaDeviceProp_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaDeviceProp___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__153)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_14cudaDeviceProp_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaDeviceProp___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__154)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":8190 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_21cudaIpcEventHandle_st_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaIpcEventHandle_st_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__155)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8190, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaIpcEventHandle_st, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 8190, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaIpcEventHandle_st); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_21cudaIpcEventHandle_st_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaIpcEventHandle_st___reduce_c, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__156)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_21cudaIpcEventHandle_st_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaIpcEventHandle_st___setstate, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__157)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":8244 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_19cudaIpcMemHandle_st_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaIpcMemHandle_st_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__158)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8244, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaIpcMemHandle_st, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 8244, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaIpcMemHandle_st); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_19cudaIpcMemHandle_st_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaIpcMemHandle_st___reduce_cyt, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__159)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_19cudaIpcMemHandle_st_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaIpcMemHandle_st___setstate_c, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__160)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":8296 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_22cudaMemFabricHandle_st_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemFabricHandle_st_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__161)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8296, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaMemFabricHandle_st, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 8296, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaMemFabricHandle_st); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_22cudaMemFabricHandle_st_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemFabricHandle_st___reduce, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__162)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_22cudaMemFabricHandle_st_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaMemFabricHandle_st___setstat, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__163)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":8348 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].handle.win32 * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_12anon_struct5_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct5_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__164)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8348, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct5, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 8348, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_anon_struct5); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_12anon_struct5_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct5___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__165)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_12anon_struct5_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct5___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__166)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":8403 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].handle * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_11anon_union1_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_union1_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__167)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8403, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_anon_union1, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 8403, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_anon_union1); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_11anon_union1_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_union1___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__168)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_11anon_union1_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_union1___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__169)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":8475 * if self._val_ptr is not NULL: * free(self._val_ptr) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_28cudaExternalMemoryHandleDesc_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExternalMemoryHandleDesc_get, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__170)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8475, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalMemoryHandleDesc, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 8475, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaExternalMemoryHandleDesc); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_28cudaExternalMemoryHandleDesc_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExternalMemoryHandleDesc___r, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__171)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_28cudaExternalMemoryHandleDesc_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExternalMemoryHandleDesc___s, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__172)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":8552 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_28cudaExternalMemoryBufferDesc_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExternalMemoryBufferDesc_get, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__173)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8552, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalMemoryBufferDesc, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 8552, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaExternalMemoryBufferDesc); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_28cudaExternalMemoryBufferDesc_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExternalMemoryBufferDesc___r, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__174)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_28cudaExternalMemoryBufferDesc_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExternalMemoryBufferDesc___s, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__175)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":8626 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExternalMemoryMipmappedArray_2, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__176)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8626, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 8626, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaExternalMemoryMipmappedArrayDesc); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExternalMemoryMipmappedArray_3, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__177)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_36cudaExternalMemoryMipmappedArrayDesc_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExternalMemoryMipmappedArray_4, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__178)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":8707 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].handle.win32 * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_12anon_struct6_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct6_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__179)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8707, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct6, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 8707, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_anon_struct6); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_12anon_struct6_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct6___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__180)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_12anon_struct6_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct6___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__181)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":8762 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].handle * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_11anon_union2_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_union2_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__182)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8762, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_anon_union2, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 8762, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_anon_union2); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_11anon_union2_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_union2___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__183)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_11anon_union2_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_union2___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__184)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":8832 * if self._val_ptr is not NULL: * free(self._val_ptr) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExternalSemaphoreHandleDesc_2, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__185)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8832, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreHandleDesc, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 8832, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreHandleDesc); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExternalSemaphoreHandleDesc_3, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__186)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_31cudaExternalSemaphoreHandleDesc_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExternalSemaphoreHandleDesc_4, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__187)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":8891 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].params.fence * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_13anon_struct13_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct13_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__188)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8891, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct13, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 8891, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_anon_struct13); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_13anon_struct13_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct13___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__189)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_13anon_struct13_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct13___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__190)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":8932 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].params.nvSciSync * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_11anon_union5_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_union5_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__191)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8932, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_anon_union5, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 8932, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_anon_union5); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_11anon_union5_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_union5___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__192)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_11anon_union5_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_union5___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__193)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":8982 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].params.keyedMutex * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_13anon_struct14_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct14_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__194)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8982, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct14, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 8982, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_anon_struct14); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_13anon_struct14_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct14___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__195)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_13anon_struct14_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct14___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__196)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":9029 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].params * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_13anon_struct15_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct15_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__197)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9029, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct15, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 9029, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_anon_struct15); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_13anon_struct15_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct15___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__198)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_13anon_struct15_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct15___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__199)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":9113 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExternalSemaphoreSignalParam_2, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__200)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9113, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalParams, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 9113, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalParams); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExternalSemaphoreSignalParam_3, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__201)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_33cudaExternalSemaphoreSignalParams_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExternalSemaphoreSignalParam_4, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__202)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":9172 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].params.fence * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_13anon_struct16_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct16_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__203)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct16, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 9172, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_anon_struct16); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_13anon_struct16_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct16___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__204)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_13anon_struct16_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct16___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__205)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":9213 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].params.nvSciSync * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_11anon_union6_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_union6_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__206)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9213, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_anon_union6, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 9213, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_anon_union6); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_11anon_union6_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_union6___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__207)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_11anon_union6_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_union6___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__208)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":9265 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].params.keyedMutex * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_13anon_struct17_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct17_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__209)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9265, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct17, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 9265, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_anon_struct17); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_13anon_struct17_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct17___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__210)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_13anon_struct17_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct17___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__211)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":9322 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].params * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_13anon_struct18_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct18_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__212)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9322, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct18, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 9322, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_anon_struct18); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_13anon_struct18_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct18___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__213)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_13anon_struct18_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct18___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__214)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":9406 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExternalSemaphoreWaitParams_2, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__215)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9406, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitParams, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 9406, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitParams); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExternalSemaphoreWaitParams_3, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__216)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_31cudaExternalSemaphoreWaitParams_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExternalSemaphoreWaitParams_4, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__217)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":9480 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_20cudaKernelNodeParams_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaKernelNodeParams_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__218)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9480, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaKernelNodeParams, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 9480, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaKernelNodeParams); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_20cudaKernelNodeParams_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaKernelNodeParams___reduce_cy, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__219)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_20cudaKernelNodeParams_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaKernelNodeParams___setstate, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__220)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":9586 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_22cudaKernelNodeParamsV2_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaKernelNodeParamsV2_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__221)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9586, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaKernelNodeParamsV2, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 9586, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaKernelNodeParamsV2); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_22cudaKernelNodeParamsV2_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaKernelNodeParamsV2___reduce, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__222)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_22cudaKernelNodeParamsV2_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaKernelNodeParamsV2___setstat, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__223)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":9689 * if self._paramsArray is not NULL: * free(self._paramsArray) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExternalSemaphoreSignalNodeP_3, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__224)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9689, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 9689, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParams); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExternalSemaphoreSignalNodeP_4, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__225)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_37cudaExternalSemaphoreSignalNodeParams_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExternalSemaphoreSignalNodeP_5, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__226)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":9790 * if self._paramsArray is not NULL: * free(self._paramsArray) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExternalSemaphoreSignalNodeP_6, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__227)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9790, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 9790, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreSignalNodeParamsV2); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExternalSemaphoreSignalNodeP_7, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__228)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_39cudaExternalSemaphoreSignalNodeParamsV2_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExternalSemaphoreSignalNodeP_8, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__229)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":9891 * if self._paramsArray is not NULL: * free(self._paramsArray) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExternalSemaphoreWaitNodePar_3, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__230)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9891, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 9891, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParams); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExternalSemaphoreWaitNodePar_4, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__231)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_35cudaExternalSemaphoreWaitNodeParams_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExternalSemaphoreWaitNodePar_5, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__232)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":9992 * if self._paramsArray is not NULL: * free(self._paramsArray) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExternalSemaphoreWaitNodePar_6, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__233)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9992, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 9992, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaExternalSemaphoreWaitNodeParamsV2); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExternalSemaphoreWaitNodePar_7, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__234)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_37cudaExternalSemaphoreWaitNodeParamsV2_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaExternalSemaphoreWaitNodePar_8, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__235)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":10101 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_25cudaConditionalNodeParams_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaConditionalNodeParams_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__236)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaConditionalNodeParams, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 10101, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaConditionalNodeParams); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_25cudaConditionalNodeParams_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaConditionalNodeParams___redu, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__237)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_25cudaConditionalNodeParams_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaConditionalNodeParams___sets, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__238)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":10183 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_24cudaChildGraphNodeParams_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaChildGraphNodeParams_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__239)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10183, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaChildGraphNodeParams, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 10183, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaChildGraphNodeParams); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_24cudaChildGraphNodeParams_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaChildGraphNodeParams___reduc, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__240)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_24cudaChildGraphNodeParams_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaChildGraphNodeParams___setst, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__241)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":10235 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_25cudaEventRecordNodeParams_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaEventRecordNodeParams_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__242)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEventRecordNodeParams, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 10235, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaEventRecordNodeParams); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_25cudaEventRecordNodeParams_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaEventRecordNodeParams___redu, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__243)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_25cudaEventRecordNodeParams_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaEventRecordNodeParams___sets, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__244)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":10287 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_23cudaEventWaitNodeParams_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaEventWaitNodeParams_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__245)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10287, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEventWaitNodeParams, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 10287, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaEventWaitNodeParams); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_23cudaEventWaitNodeParams_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaEventWaitNodeParams___reduce, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__246)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_23cudaEventWaitNodeParams_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaEventWaitNodeParams___setsta, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__247)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":10382 * if self._val_ptr is not NULL: * free(self._val_ptr) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_19cudaGraphNodeParams_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaGraphNodeParams_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__248)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10382, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphNodeParams, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 10382, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaGraphNodeParams); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_19cudaGraphNodeParams_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaGraphNodeParams___reduce_cyt, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__249)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_19cudaGraphNodeParams_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaGraphNodeParams___setstate_c, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__250)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":10600 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_20cudaGraphEdgeData_st_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaGraphEdgeData_st_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__251)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10600, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphEdgeData_st, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 10600, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaGraphEdgeData_st); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_20cudaGraphEdgeData_st_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaGraphEdgeData_st___reduce_cy, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__252)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_20cudaGraphEdgeData_st_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaGraphEdgeData_st___setstate, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__253)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":10683 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_29cudaGraphInstantiateParams_st_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaGraphInstantiateParams_st_ge, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__254)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10683, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphInstantiateParams_st, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 10683, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaGraphInstantiateParams_st); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_29cudaGraphInstantiateParams_st_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaGraphInstantiateParams_st_2, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__255)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_29cudaGraphInstantiateParams_st_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaGraphInstantiateParams_st_3, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__256)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":10782 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaGraphExecUpdateResultInfo_st_2, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__257)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10782, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 10782, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaGraphExecUpdateResultInfo_st); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaGraphExecUpdateResultInfo_st_3, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__258)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_32cudaGraphExecUpdateResultInfo_st_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaGraphExecUpdateResultInfo_st_4, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__259)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":10863 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].updateData.param * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_13anon_struct19_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct19_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__260)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct19, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 10863, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_anon_struct19); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_13anon_struct19_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct19___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__261)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_13anon_struct19_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct19___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__262)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":10928 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].updateData * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_11anon_union8_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_union8_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__263)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10928, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_anon_union8, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 10928, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_anon_union8); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_11anon_union8_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_union8___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__264)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_11anon_union8_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_union8___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__265)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":11000 * if self._val_ptr is not NULL: * free(self._val_ptr) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_25cudaGraphKernelNodeUpdate_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaGraphKernelNodeUpdate_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__266)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11000, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphKernelNodeUpdate, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 11000, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaGraphKernelNodeUpdate); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_25cudaGraphKernelNodeUpdate_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaGraphKernelNodeUpdate___redu, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__267)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_25cudaGraphKernelNodeUpdate_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaGraphKernelNodeUpdate___sets, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__268)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":11080 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaLaunchMemSyncDomainMap_st_ge, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__269)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11080, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 11080, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaLaunchMemSyncDomainMap_st); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaLaunchMemSyncDomainMap_st_2, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__270)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_29cudaLaunchMemSyncDomainMap_st_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaLaunchMemSyncDomainMap_st_3, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__271)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":11133 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].clusterDim * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_13anon_struct20_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct20_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__272)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct20, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 11133, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_anon_struct20); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_13anon_struct20_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct20___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__273)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_13anon_struct20_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct20___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__274)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":11196 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].programmaticEvent * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_13anon_struct21_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct21_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__275)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11196, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct21, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 11196, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_anon_struct21); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_13anon_struct21_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct21___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__276)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_13anon_struct21_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct21___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__277)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":11266 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].launchCompletionEvent * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_13anon_struct22_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct22_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__278)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct22, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 11266, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_anon_struct22); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_13anon_struct22_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct22___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__279)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_13anon_struct22_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct22___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__280)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":11326 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].deviceUpdatableKernelNode * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_13anon_struct23_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct23_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__281)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11326, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct23, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 11326, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_anon_struct23); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_13anon_struct23_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct23___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__282)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_13anon_struct23_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct23___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__283)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":11449 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_24cudaLaunchAttributeValue_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaLaunchAttributeValue_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__284)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11449, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaLaunchAttributeValue, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 11449, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaLaunchAttributeValue); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_24cudaLaunchAttributeValue_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaLaunchAttributeValue___reduc, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__285)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_24cudaLaunchAttributeValue_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaLaunchAttributeValue___setst, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__286)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":11635 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_22cudaLaunchAttribute_st_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaLaunchAttribute_st_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__287)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11635, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaLaunchAttribute_st, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 11635, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaLaunchAttribute_st); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_22cudaLaunchAttribute_st_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaLaunchAttribute_st___reduce, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__288)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_22cudaLaunchAttribute_st_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaLaunchAttribute_st___setstat, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__289)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":11684 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].info.overBudget * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_13anon_struct24_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct24_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__290)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11684, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_anon_struct24, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 11684, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_anon_struct24); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_13anon_struct24_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct24___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__291)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_13anon_struct24_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_struct24___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__292)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":11723 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].info * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_11anon_union9_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_union9_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__293)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11723, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_anon_union9, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 11723, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_anon_union9); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_11anon_union9_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_union9___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__294)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_11anon_union9_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_union9___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__295)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":11770 * if self._val_ptr is not NULL: * free(self._val_ptr) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_25cudaAsyncNotificationInfo_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaAsyncNotificationInfo_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__296)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11770, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaAsyncNotificationInfo, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 11770, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaAsyncNotificationInfo); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_25cudaAsyncNotificationInfo_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaAsyncNotificationInfo___redu, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__297)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_25cudaAsyncNotificationInfo_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaAsyncNotificationInfo___sets, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__298)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":11847 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_15cudaTextureDesc_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaTextureDesc_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__299)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11847, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaTextureDesc, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 11847, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaTextureDesc); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_15cudaTextureDesc_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaTextureDesc___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__300)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_15cudaTextureDesc_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaTextureDesc___setstate_cytho, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__301)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":12023 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_19cudaEglPlaneDesc_st_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaEglPlaneDesc_st_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__302)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12023, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEglPlaneDesc_st, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 12023, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaEglPlaneDesc_st); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_19cudaEglPlaneDesc_st_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaEglPlaneDesc_st___reduce_cyt, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__303)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_19cudaEglPlaneDesc_st_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaEglPlaneDesc_st___setstate_c, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__304)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":12124 * def __dealloc__(self): * pass * def getPtr(self): # <<<<<<<<<<<<<< * return &self._ptr[0].frame * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_12anon_union10_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_union10_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__305)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12124, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_anon_union10, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 12124, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_anon_union10); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_12anon_union10_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_union10___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__306)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_12anon_union10_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_anon_union10___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__307)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":12205 * if self._val_ptr is not NULL: * free(self._val_ptr) * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * def __repr__(self): */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_15cudaEglFrame_st_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaEglFrame_st_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__308)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaEglFrame_st, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 12205, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaEglFrame_st); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_15cudaEglFrame_st_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaEglFrame_st___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__309)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_15cudaEglFrame_st_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaEglFrame_st___setstate_cytho, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__310)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":12295 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_26cudaGraphConditionalHandle_9getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaGraphConditionalHandle_getPt, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__311)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12295, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaGraphConditionalHandle, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 12295, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaGraphConditionalHandle); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_26cudaGraphConditionalHandle_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaGraphConditionalHandle___red, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__312)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_26cudaGraphConditionalHandle_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaGraphConditionalHandle___set, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__313)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":12322 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_19cudaSurfaceObject_t_9getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaSurfaceObject_t_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__314)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12322, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaSurfaceObject_t, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 12322, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaSurfaceObject_t); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_19cudaSurfaceObject_t_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaSurfaceObject_t___reduce_cyt, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__315)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_19cudaSurfaceObject_t_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaSurfaceObject_t___setstate_c, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__316)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":12349 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_19cudaTextureObject_t_9getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaTextureObject_t_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__317)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12349, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_cudaTextureObject_t, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 12349, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_cudaTextureObject_t); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_19cudaTextureObject_t_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaTextureObject_t___reduce_cyt, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__318)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_19cudaTextureObject_t_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_cudaTextureObject_t___setstate_c, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__319)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":12374 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_6GLenum_9getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_GLenum_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__320)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12374, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_GLenum, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 12374, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_GLenum); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_6GLenum_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_GLenum___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__321)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_6GLenum_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_GLenum___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__322)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":12399 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_6GLuint_9getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_GLuint_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__323)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12399, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_GLuint, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 12399, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_GLuint); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_6GLuint_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_GLuint___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__324)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_6GLuint_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_GLuint___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__325)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":12424 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_6EGLint_9getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_EGLint_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__326)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12424, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_EGLint, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 12424, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_EGLint); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_6EGLint_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_EGLint___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__327)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_6EGLint_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_EGLint___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__328)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":12449 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_9VdpDevice_9getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_VdpDevice_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__329)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12449, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_VdpDevice, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 12449, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_VdpDevice); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_9VdpDevice_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_VdpDevice___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__330)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_9VdpDevice_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_VdpDevice___setstate_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__331)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":12474 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_17VdpGetProcAddress_9getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_VdpGetProcAddress_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__332)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12474, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_VdpGetProcAddress, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 12474, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_VdpGetProcAddress); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_17VdpGetProcAddress_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_VdpGetProcAddress___reduce_cytho, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__333)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_17VdpGetProcAddress_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_VdpGetProcAddress___setstate_cyt, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__334)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":12499 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_15VdpVideoSurface_9getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_VdpVideoSurface_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__335)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12499, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_VdpVideoSurface, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 12499, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_VdpVideoSurface); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_15VdpVideoSurface_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_VdpVideoSurface___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__336)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_15VdpVideoSurface_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_VdpVideoSurface___setstate_cytho, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__337)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":12524 * def __int__(self): * return self._ptr[0] * def getPtr(self): # <<<<<<<<<<<<<< * return self._ptr * */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_16VdpOutputSurface_9getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_VdpOutputSurface_getPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__338)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12524, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (__Pyx_SetItemOnTypeDict((PyObject *)__pyx_ptype_4cuda_6cudart_VdpOutputSurface, __pyx_n_s_getPtr, __pyx_t_2) < 0) __PYX_ERR(0, 12524, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_4cuda_6cudart_VdpOutputSurface); /* "(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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_16VdpOutputSurface_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_VdpOutputSurface___reduce_cython, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__339)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_16VdpOutputSurface_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_VdpOutputSurface___setstate_cyth, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__340)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":12527 * return self._ptr * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceReset(): * """ Destroy all allocations and reset all state on the current device in the current process. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_1cudaDeviceReset, 0, __pyx_n_s_cudaDeviceReset, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__341)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12527, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceReset, __pyx_t_2) < 0) __PYX_ERR(0, 12527, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":12570 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceSynchronize(): * """ Wait for compute device to finish. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_3cudaDeviceSynchronize, 0, __pyx_n_s_cudaDeviceSynchronize, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__342)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12570, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceSynchronize, __pyx_t_2) < 0) __PYX_ERR(0, 12570, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":12595 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceSetLimit(limit not None : cudaLimit, size_t value): * """ Set resource limits. */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12595, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_limit, __pyx_n_s_cudaLimit) < 0) __PYX_ERR(0, 12595, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_5cudaDeviceSetLimit, 0, __pyx_n_s_cudaDeviceSetLimit, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__343)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12595, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceSetLimit, __pyx_t_4) < 0) __PYX_ERR(0, 12595, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":12694 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceGetLimit(limit not None : cudaLimit): * """ Return resource limits. */ __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12694, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_limit, __pyx_n_s_cudaLimit) < 0) __PYX_ERR(0, 12694, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_7cudaDeviceGetLimit, 0, __pyx_n_s_cudaDeviceGetLimit, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__344)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12694, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceGetLimit, __pyx_t_2) < 0) __PYX_ERR(0, 12694, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":12748 * return (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_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12748, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_fmtDesc, __pyx_kp_s_Optional_cudaChannelFormatDesc) < 0) __PYX_ERR(0, 12748, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_9cudaDeviceGetTexture1DLinearMaxWidth, 0, __pyx_n_s_cudaDeviceGetTexture1DLinearMaxW, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__345)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12748, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceGetTexture1DLinearMaxW, __pyx_t_4) < 0) __PYX_ERR(0, 12748, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":12780 * return (cudaError_t(err), maxWidthInElements) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceGetCacheConfig(): * """ Returns the preferred cache configuration for the current device. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_11cudaDeviceGetCacheConfig, 0, __pyx_n_s_cudaDeviceGetCacheConfig, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__346)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12780, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceGetCacheConfig, __pyx_t_4) < 0) __PYX_ERR(0, 12780, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":12824 * return (cudaError_t(err), cudaFuncCache(pCacheConfig)) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceGetStreamPriorityRange(): * """ Returns numerical values that correspond to the least and greatest stream priorities. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_13cudaDeviceGetStreamPriorityRange, 0, __pyx_n_s_cudaDeviceGetStreamPriorityRange, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__347)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12824, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceGetStreamPriorityRange, __pyx_t_4) < 0) __PYX_ERR(0, 12824, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":12865 * return (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_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12865, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_cacheConfig, __pyx_n_s_cudaFuncCache) < 0) __PYX_ERR(0, 12865, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_15cudaDeviceSetCacheConfig, 0, __pyx_n_s_cudaDeviceSetCacheConfig, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__348)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12865, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceSetCacheConfig, __pyx_t_2) < 0) __PYX_ERR(0, 12865, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":12919 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceGetByPCIBusId(char* pciBusId): * """ Returns a handle to a compute device. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_17cudaDeviceGetByPCIBusId, 0, __pyx_n_s_cudaDeviceGetByPCIBusId, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__349)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12919, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceGetByPCIBusId, __pyx_t_2) < 0) __PYX_ERR(0, 12919, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":12948 * return (cudaError_t(err), device) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceGetPCIBusId(int length, int device): * """ Returns a PCI Bus Id string for the device. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_19cudaDeviceGetPCIBusId, 0, __pyx_n_s_cudaDeviceGetPCIBusId, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__350)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12948, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceGetPCIBusId, __pyx_t_2) < 0) __PYX_ERR(0, 12948, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":12983 * return (cudaError_t(err), pypciBusId) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaIpcGetEventHandle(event): * """ Gets an interprocess handle for a previously allocated event. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_21cudaIpcGetEventHandle, 0, __pyx_n_s_cudaIpcGetEventHandle, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__352)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12983, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaIpcGetEventHandle, __pyx_t_2) < 0) __PYX_ERR(0, 12983, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":13039 * return (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_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13039, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_handle_2, __pyx_n_s_cudaIpcEventHandle_t) < 0) __PYX_ERR(0, 13039, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_23cudaIpcOpenEventHandle, 0, __pyx_n_s_cudaIpcOpenEventHandle, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__353)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13039, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaIpcOpenEventHandle, __pyx_t_4) < 0) __PYX_ERR(0, 13039, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":13080 * return (cudaError_t(err), event) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaIpcGetMemHandle(devPtr): * """ Gets an interprocess memory handle for an existing device memory allocation. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_25cudaIpcGetMemHandle, 0, __pyx_n_s_cudaIpcGetMemHandle, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__354)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13080, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaIpcGetMemHandle, __pyx_t_4) < 0) __PYX_ERR(0, 13080, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":13124 * return (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_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13124, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_handle_2, __pyx_n_s_cudaIpcMemHandle_t) < 0) __PYX_ERR(0, 13124, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_27cudaIpcOpenMemHandle, 0, __pyx_n_s_cudaIpcOpenMemHandle, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__355)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13124, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaIpcOpenMemHandle, __pyx_t_2) < 0) __PYX_ERR(0, 13124, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":13191 * return (cudaError_t(err), devPtr) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaIpcCloseMemHandle(devPtr): * """ Attempts to close memory mapped with cudaIpcOpenMemHandle. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_29cudaIpcCloseMemHandle, 0, __pyx_n_s_cudaIpcCloseMemHandle, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__356)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13191, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaIpcCloseMemHandle, __pyx_t_2) < 0) __PYX_ERR(0, 13191, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":13230 * return (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_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13230, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_target, __pyx_n_s_cudaFlushGPUDirectRDMAWritesTarg) < 0) __PYX_ERR(0, 13230, __pyx_L1_error) if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_scope, __pyx_n_s_cudaFlushGPUDirectRDMAWritesScop) < 0) __PYX_ERR(0, 13230, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_31cudaDeviceFlushGPUDirectRDMAWrites, 0, __pyx_n_s_cudaDeviceFlushGPUDirectRDMAWrit, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__357)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13230, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceFlushGPUDirectRDMAWrit, __pyx_t_4) < 0) __PYX_ERR(0, 13230, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":13269 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceRegisterAsyncNotification(int device, callbackFunc, userData): * """ Registers a callback function to receive async notifications. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_33cudaDeviceRegisterAsyncNotification, 0, __pyx_n_s_cudaDeviceRegisterAsyncNotificat, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__358)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceRegisterAsyncNotificat, __pyx_t_4) < 0) __PYX_ERR(0, 13269, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":13327 * return (cudaError_t(err), callback) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceUnregisterAsyncNotification(int device, callback): * """ Unregisters an async notification callback. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_35cudaDeviceUnregisterAsyncNotification, 0, __pyx_n_s_cudaDeviceUnregisterAsyncNotific, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__359)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13327, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceUnregisterAsyncNotific, __pyx_t_4) < 0) __PYX_ERR(0, 13327, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":13363 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceGetSharedMemConfig(): * """ Returns the shared memory configuration for the current device. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_37cudaDeviceGetSharedMemConfig, 0, __pyx_n_s_cudaDeviceGetSharedMemConfig, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__360)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13363, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceGetSharedMemConfig, __pyx_t_4) < 0) __PYX_ERR(0, 13363, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":13401 * return (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_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13401, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_config, __pyx_n_s_cudaSharedMemConfig) < 0) __PYX_ERR(0, 13401, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_39cudaDeviceSetSharedMemConfig, 0, __pyx_n_s_cudaDeviceSetSharedMemConfig, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__361)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13401, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceSetSharedMemConfig, __pyx_t_2) < 0) __PYX_ERR(0, 13401, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":13454 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGetLastError(): * """ Returns the last error from a runtime call. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_41cudaGetLastError, 0, __pyx_n_s_cudaGetLastError, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__362)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13454, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGetLastError, __pyx_t_2) < 0) __PYX_ERR(0, 13454, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":13478 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaPeekAtLastError(): * """ Returns the last error from a runtime call. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_43cudaPeekAtLastError, 0, __pyx_n_s_cudaPeekAtLastError, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__363)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13478, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaPeekAtLastError, __pyx_t_2) < 0) __PYX_ERR(0, 13478, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":13503 * return (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_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13503, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_error, __pyx_n_s_cudaError_t) < 0) __PYX_ERR(0, 13503, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_45cudaGetErrorName, 0, __pyx_n_s_cudaGetErrorName, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__364)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13503, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGetErrorName, __pyx_t_4) < 0) __PYX_ERR(0, 13503, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":13531 * 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_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13531, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_error, __pyx_n_s_cudaError_t) < 0) __PYX_ERR(0, 13531, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_47cudaGetErrorString, 0, __pyx_n_s_cudaGetErrorString, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__365)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13531, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGetErrorString, __pyx_t_2) < 0) __PYX_ERR(0, 13531, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":13558 * return (cudaError_t.cudaSuccess, err) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGetDeviceCount(): * """ Returns the number of compute-capable devices. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_49cudaGetDeviceCount, 0, __pyx_n_s_cudaGetDeviceCount, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__366)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13558, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGetDeviceCount, __pyx_t_2) < 0) __PYX_ERR(0, 13558, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":13581 * return (cudaError_t(err), count) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGetDeviceProperties(int device): * """ Returns information about the compute-device. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_51cudaGetDeviceProperties, 0, __pyx_n_s_cudaGetDeviceProperties, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__367)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13581, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGetDeviceProperties, __pyx_t_2) < 0) __PYX_ERR(0, 13581, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":13908 * return (cudaError_t(err), prop) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceGetAttribute(attr not None : cudaDeviceAttr, int device): * """ Returns information about the device. */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13908, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_attr, __pyx_n_s_cudaDeviceAttr) < 0) __PYX_ERR(0, 13908, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_53cudaDeviceGetAttribute, 0, __pyx_n_s_cudaDeviceGetAttribute, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__368)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13908, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceGetAttribute, __pyx_t_4) < 0) __PYX_ERR(0, 13908, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":14275 * return (cudaError_t(err), value) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceGetDefaultMemPool(int device): * """ Returns the default mempool of a device. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_55cudaDeviceGetDefaultMemPool, 0, __pyx_n_s_cudaDeviceGetDefaultMemPool, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__369)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14275, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceGetDefaultMemPool, __pyx_t_4) < 0) __PYX_ERR(0, 14275, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":14304 * return (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_6cudart_57cudaDeviceSetMemPool, 0, __pyx_n_s_cudaDeviceSetMemPool, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__370)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14304, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceSetMemPool, __pyx_t_4) < 0) __PYX_ERR(0, 14304, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":14348 * return (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_6cudart_59cudaDeviceGetMemPool, 0, __pyx_n_s_cudaDeviceGetMemPool, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__371)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14348, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceGetMemPool, __pyx_t_4) < 0) __PYX_ERR(0, 14348, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":14381 * return (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_6cudart_61cudaDeviceGetNvSciSyncAttributes, 0, __pyx_n_s_cudaDeviceGetNvSciSyncAttributes, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__372)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14381, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceGetNvSciSyncAttributes, __pyx_t_4) < 0) __PYX_ERR(0, 14381, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":14463 * return (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, 14463, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_attr, __pyx_n_s_cudaDeviceP2PAttr) < 0) __PYX_ERR(0, 14463, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_63cudaDeviceGetP2PAttribute, 0, __pyx_n_s_cudaDeviceGetP2PAttribute, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__373)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14463, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceGetP2PAttribute, __pyx_t_2) < 0) __PYX_ERR(0, 14463, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":14517 * return (cudaError_t(err), value) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaChooseDevice(prop : Optional[cudaDeviceProp]): * """ Select compute-device which best matches criteria. */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14517, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_prop, __pyx_kp_s_Optional_cudaDeviceProp) < 0) __PYX_ERR(0, 14517, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_65cudaChooseDevice, 0, __pyx_n_s_cudaChooseDevice, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__374)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14517, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaChooseDevice, __pyx_t_4) < 0) __PYX_ERR(0, 14517, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":14545 * return (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_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_67cudaInitDevice, 0, __pyx_n_s_cudaInitDevice, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__375)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14545, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaInitDevice, __pyx_t_4) < 0) __PYX_ERR(0, 14545, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":14584 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaSetDevice(int device): * """ Set device to be used for GPU executions. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_69cudaSetDevice, 0, __pyx_n_s_cudaSetDevice, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__376)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14584, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaSetDevice, __pyx_t_4) < 0) __PYX_ERR(0, 14584, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":14636 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGetDevice(): * """ Returns which device is currently being used. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_71cudaGetDevice, 0, __pyx_n_s_cudaGetDevice, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__377)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14636, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGetDevice, __pyx_t_4) < 0) __PYX_ERR(0, 14636, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":14658 * return (cudaError_t(err), device) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaSetDeviceFlags(unsigned int flags): * """ Sets flags to be used for device executions. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_73cudaSetDeviceFlags, 0, __pyx_n_s_cudaSetDeviceFlags, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__378)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14658, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaSetDeviceFlags, __pyx_t_4) < 0) __PYX_ERR(0, 14658, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":14741 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGetDeviceFlags(): * """ Gets the flags for the current device. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_75cudaGetDeviceFlags, 0, __pyx_n_s_cudaGetDeviceFlags, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__379)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14741, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGetDeviceFlags, __pyx_t_4) < 0) __PYX_ERR(0, 14741, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":14785 * return (cudaError_t(err), flags) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamCreate(): * """ Create an asynchronous stream. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_77cudaStreamCreate, 0, __pyx_n_s_cudaStreamCreate, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__380)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14785, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaStreamCreate, __pyx_t_4) < 0) __PYX_ERR(0, 14785, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":14809 * return (cudaError_t(err), pStream) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamCreateWithFlags(unsigned int flags): * """ Create an asynchronous stream. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_79cudaStreamCreateWithFlags, 0, __pyx_n_s_cudaStreamCreateWithFlags, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__381)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14809, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaStreamCreateWithFlags, __pyx_t_4) < 0) __PYX_ERR(0, 14809, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":14847 * return (cudaError_t(err), pStream) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamCreateWithPriority(unsigned int flags, int priority): * """ Create an asynchronous stream with the specified priority. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_81cudaStreamCreateWithPriority, 0, __pyx_n_s_cudaStreamCreateWithPriority, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__382)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14847, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaStreamCreateWithPriority, __pyx_t_4) < 0) __PYX_ERR(0, 14847, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":14902 * return (cudaError_t(err), pStream) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamGetPriority(hStream): * """ Query the priority of a stream. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_83cudaStreamGetPriority, 0, __pyx_n_s_cudaStreamGetPriority, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__383)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14902, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaStreamGetPriority, __pyx_t_4) < 0) __PYX_ERR(0, 14902, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":14943 * return (cudaError_t(err), priority) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamGetFlags(hStream): * """ Query the flags of a stream. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_85cudaStreamGetFlags, 0, __pyx_n_s_cudaStreamGetFlags, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__384)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14943, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaStreamGetFlags, __pyx_t_4) < 0) __PYX_ERR(0, 14943, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":14980 * return (cudaError_t(err), flags) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamGetId(hStream): * """ Query the Id of a stream. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_87cudaStreamGetId, 0, __pyx_n_s_cudaStreamGetId, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__385)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14980, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaStreamGetId, __pyx_t_4) < 0) __PYX_ERR(0, 14980, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":15031 * return (cudaError_t(err), streamId) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaCtxResetPersistingL2Cache(): * """ Resets all persisting lines in cache to normal status. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_89cudaCtxResetPersistingL2Cache, 0, __pyx_n_s_cudaCtxResetPersistingL2Cache, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__386)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15031, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaCtxResetPersistingL2Cache, __pyx_t_4) < 0) __PYX_ERR(0, 15031, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":15050 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamCopyAttributes(dst, src): * """ Copies attributes from source stream to destination stream. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_91cudaStreamCopyAttributes, 0, __pyx_n_s_cudaStreamCopyAttributes, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__387)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15050, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaStreamCopyAttributes, __pyx_t_4) < 0) __PYX_ERR(0, 15050, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":15094 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamGetAttribute(hStream, attr not None : cudaStreamAttrID): * """ Queries stream attribute. */ __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15094, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_attr, __pyx_n_s_cudaStreamAttrID) < 0) __PYX_ERR(0, 15094, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_93cudaStreamGetAttribute, 0, __pyx_n_s_cudaStreamGetAttribute, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__388)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15094, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaStreamGetAttribute, __pyx_t_2) < 0) __PYX_ERR(0, 15094, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":15133 * return (cudaError_t(err), value_out) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamSetAttribute(hStream, attr not None : cudaStreamAttrID, value : Optional[cudaStreamAttrValue]): * """ Sets stream attribute. */ __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_attr, __pyx_n_s_cudaStreamAttrID) < 0) __PYX_ERR(0, 15133, __pyx_L1_error) if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_value, __pyx_kp_s_Optional_cudaStreamAttrValue) < 0) __PYX_ERR(0, 15133, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_95cudaStreamSetAttribute, 0, __pyx_n_s_cudaStreamSetAttribute, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__389)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaStreamSetAttribute, __pyx_t_4) < 0) __PYX_ERR(0, 15133, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":15173 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamDestroy(stream): * """ Destroys and cleans up an asynchronous stream. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_97cudaStreamDestroy, 0, __pyx_n_s_cudaStreamDestroy, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__390)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15173, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaStreamDestroy, __pyx_t_4) < 0) __PYX_ERR(0, 15173, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":15210 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamWaitEvent(stream, event, unsigned int flags): * """ Make a compute stream wait on an event. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_99cudaStreamWaitEvent, 0, __pyx_n_s_cudaStreamWaitEvent, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__391)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15210, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaStreamWaitEvent, __pyx_t_4) < 0) __PYX_ERR(0, 15210, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":15268 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamAddCallback(stream, callback, userData, unsigned int flags): * """ Add a callback to a compute stream. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_101cudaStreamAddCallback, 0, __pyx_n_s_cudaStreamAddCallback, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__392)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15268, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaStreamAddCallback, __pyx_t_4) < 0) __PYX_ERR(0, 15268, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":15362 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamSynchronize(stream): * """ Waits for stream tasks to complete. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_103cudaStreamSynchronize, 0, __pyx_n_s_cudaStreamSynchronize, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__393)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15362, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaStreamSynchronize, __pyx_t_4) < 0) __PYX_ERR(0, 15362, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":15399 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamQuery(stream): * """ Queries an asynchronous stream for completion status. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_105cudaStreamQuery, 0, __pyx_n_s_cudaStreamQuery, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__394)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15399, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaStreamQuery, __pyx_t_4) < 0) __PYX_ERR(0, 15399, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":15436 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamAttachMemAsync(stream, devPtr, size_t length, unsigned int flags): * """ Attach memory to a stream asynchronously. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_107cudaStreamAttachMemAsync, 0, __pyx_n_s_cudaStreamAttachMemAsync, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__395)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15436, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaStreamAttachMemAsync, __pyx_t_4) < 0) __PYX_ERR(0, 15436, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":15544 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamBeginCapture(stream, mode not None : cudaStreamCaptureMode): * """ Begins graph capture on a stream. */ __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15544, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_mode, __pyx_n_s_cudaStreamCaptureMode) < 0) __PYX_ERR(0, 15544, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_109cudaStreamBeginCapture, 0, __pyx_n_s_cudaStreamBeginCapture, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__396)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15544, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaStreamBeginCapture, __pyx_t_2) < 0) __PYX_ERR(0, 15544, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":15598 * return (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_2 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15598, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dependencies, __pyx_kp_s_Optional_Tuple_cudaGraphNode_t_L) < 0) __PYX_ERR(0, 15598, __pyx_L1_error) if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dependencyData, __pyx_kp_s_Optional_Tuple_cudaGraphEdgeData) < 0) __PYX_ERR(0, 15598, __pyx_L1_error) if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_mode, __pyx_n_s_cudaStreamCaptureMode) < 0) __PYX_ERR(0, 15598, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_111cudaStreamBeginCaptureToGraph, 0, __pyx_n_s_cudaStreamBeginCaptureToGraph, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__397)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15598, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaStreamBeginCaptureToGraph, __pyx_t_4) < 0) __PYX_ERR(0, 15598, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":15697 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaThreadExchangeStreamCaptureMode(mode not None : cudaStreamCaptureMode): * """ Swaps the stream capture interaction mode for a thread. */ __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15697, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_mode, __pyx_n_s_cudaStreamCaptureMode) < 0) __PYX_ERR(0, 15697, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_113cudaThreadExchangeStreamCaptureMode, 0, __pyx_n_s_cudaThreadExchangeStreamCaptureM, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__401)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15697, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaThreadExchangeStreamCaptureM, __pyx_t_2) < 0) __PYX_ERR(0, 15697, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":15765 * return (cudaError_t(err), cudaStreamCaptureMode(cmode)) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamEndCapture(stream): * """ Ends capture on a stream, returning the captured graph. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_115cudaStreamEndCapture, 0, __pyx_n_s_cudaStreamEndCapture, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__402)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15765, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaStreamEndCapture, __pyx_t_2) < 0) __PYX_ERR(0, 15765, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":15808 * return (cudaError_t(err), pGraph) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamIsCapturing(stream): * """ Returns a stream's capture status. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_117cudaStreamIsCapturing, 0, __pyx_n_s_cudaStreamIsCapturing, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__403)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15808, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaStreamIsCapturing, __pyx_t_2) < 0) __PYX_ERR(0, 15808, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":15865 * return (cudaError_t(err), cudaStreamCaptureStatus(pCaptureStatus)) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamGetCaptureInfo(stream): * """ Query a stream's capture state. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_119cudaStreamGetCaptureInfo, 0, __pyx_n_s_cudaStreamGetCaptureInfo, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__404)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15865, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaStreamGetCaptureInfo, __pyx_t_2) < 0) __PYX_ERR(0, 15865, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":15944 * return (cudaError_t(err), cudaStreamCaptureStatus(captureStatus_out), id_out, graph_out, pydependencies_out, numDependencies_out) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamGetCaptureInfo_v3(stream): * """ Query a stream's capture state (12.3+) */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_121cudaStreamGetCaptureInfo_v3, 0, __pyx_n_s_cudaStreamGetCaptureInfo_v3, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__405)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15944, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaStreamGetCaptureInfo_v3, __pyx_t_2) < 0) __PYX_ERR(0, 15944, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":16039 * return (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]], size_t numDependencies, unsigned int flags): * """ Update the set of dependencies in a capturing stream (11.3+) */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16039, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dependencies, __pyx_kp_s_Optional_Tuple_cudaGraphNode_t_L) < 0) __PYX_ERR(0, 16039, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_123cudaStreamUpdateCaptureDependencies, 0, __pyx_n_s_cudaStreamUpdateCaptureDependenc_4, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__406)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16039, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaStreamUpdateCaptureDependenc_4, __pyx_t_4) < 0) __PYX_ERR(0, 16039, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":16110 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaStreamUpdateCaptureDependencies_v2(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 (12.3+) */ __pyx_t_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16110, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_dependencies, __pyx_kp_s_Optional_Tuple_cudaGraphNode_t_L) < 0) __PYX_ERR(0, 16110, __pyx_L1_error) if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_dependencyData, __pyx_kp_s_Optional_Tuple_cudaGraphEdgeData) < 0) __PYX_ERR(0, 16110, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_125cudaStreamUpdateCaptureDependencies_v2, 0, __pyx_n_s_cudaStreamUpdateCaptureDependenc_5, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__407)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16110, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaStreamUpdateCaptureDependenc_5, __pyx_t_2) < 0) __PYX_ERR(0, 16110, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":16190 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEventCreate(): * """ Creates an event object. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_127cudaEventCreate, 0, __pyx_n_s_cudaEventCreate, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__408)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16190, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaEventCreate, __pyx_t_2) < 0) __PYX_ERR(0, 16190, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":16212 * return (cudaError_t(err), event) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEventCreateWithFlags(unsigned int flags): * """ Creates an event object with the specified flags. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_129cudaEventCreateWithFlags, 0, __pyx_n_s_cudaEventCreateWithFlags, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__409)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16212, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaEventCreateWithFlags, __pyx_t_2) < 0) __PYX_ERR(0, 16212, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":16258 * return (cudaError_t(err), event) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEventRecord(event, stream): * """ Records an event. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_131cudaEventRecord, 0, __pyx_n_s_cudaEventRecord, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__410)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16258, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaEventRecord, __pyx_t_2) < 0) __PYX_ERR(0, 16258, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":16315 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEventRecordWithFlags(event, stream, unsigned int flags): * """ Records an event. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_133cudaEventRecordWithFlags, 0, __pyx_n_s_cudaEventRecordWithFlags, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__411)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16315, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaEventRecordWithFlags, __pyx_t_2) < 0) __PYX_ERR(0, 16315, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":16381 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEventQuery(event): * """ Queries an event's status. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_135cudaEventQuery, 0, __pyx_n_s_cudaEventQuery, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__412)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16381, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaEventQuery, __pyx_t_2) < 0) __PYX_ERR(0, 16381, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":16423 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEventSynchronize(event): * """ Waits for an event to complete. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_137cudaEventSynchronize, 0, __pyx_n_s_cudaEventSynchronize, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__413)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16423, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaEventSynchronize, __pyx_t_2) < 0) __PYX_ERR(0, 16423, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":16464 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEventDestroy(event): * """ Destroys an event object. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_139cudaEventDestroy, 0, __pyx_n_s_cudaEventDestroy, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__414)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16464, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaEventDestroy, __pyx_t_2) < 0) __PYX_ERR(0, 16464, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":16502 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEventElapsedTime(start, end): * """ Computes the elapsed time between events. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_141cudaEventElapsedTime, 0, __pyx_n_s_cudaEventElapsedTime, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__415)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16502, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaEventElapsedTime, __pyx_t_2) < 0) __PYX_ERR(0, 16502, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":16567 * return (cudaError_t(err), ms) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaImportExternalMemory(memHandleDesc : Optional[cudaExternalMemoryHandleDesc]): * """ Imports an external memory object. */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16567, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_memHandleDesc, __pyx_kp_s_Optional_cudaExternalMemoryHandl) < 0) __PYX_ERR(0, 16567, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_143cudaImportExternalMemory, 0, __pyx_n_s_cudaImportExternalMemory, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__416)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16567, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaImportExternalMemory, __pyx_t_4) < 0) __PYX_ERR(0, 16567, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":16715 * return (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, 16715, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_bufferDesc, __pyx_kp_s_Optional_cudaExternalMemoryBuffe) < 0) __PYX_ERR(0, 16715, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_145cudaExternalMemoryGetMappedBuffer, 0, __pyx_n_s_cudaExternalMemoryGetMappedBuffe, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__417)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16715, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaExternalMemoryGetMappedBuffe, __pyx_t_2) < 0) __PYX_ERR(0, 16715, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":16778 * return (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_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16778, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_mipmapDesc, __pyx_kp_s_Optional_cudaExternalMemoryMipma) < 0) __PYX_ERR(0, 16778, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_147cudaExternalMemoryGetMappedMipmappedArray, 0, __pyx_n_s_cudaExternalMemoryGetMappedMipma, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__418)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16778, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaExternalMemoryGetMappedMipma, __pyx_t_4) < 0) __PYX_ERR(0, 16778, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":16845 * return (cudaError_t(err), mipmap) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDestroyExternalMemory(extMem): * """ Destroys an external memory object. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_149cudaDestroyExternalMemory, 0, __pyx_n_s_cudaDestroyExternalMemory, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__419)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16845, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDestroyExternalMemory, __pyx_t_4) < 0) __PYX_ERR(0, 16845, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":16880 * return (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, 16880, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_semHandleDesc, __pyx_kp_s_Optional_cudaExternalSemaphoreHa) < 0) __PYX_ERR(0, 16880, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_151cudaImportExternalSemaphore, 0, __pyx_n_s_cudaImportExternalSemaphore, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__420)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16880, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaImportExternalSemaphore, __pyx_t_2) < 0) __PYX_ERR(0, 16880, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":17023 * return (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_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17023, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_extSemArray_2, __pyx_kp_s_Optional_Tuple_cudaExternalSemap) < 0) __PYX_ERR(0, 17023, __pyx_L1_error) if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_paramsArray_2, __pyx_kp_s_Optional_Tuple_cudaExternalSemap_2) < 0) __PYX_ERR(0, 17023, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_153cudaSignalExternalSemaphoresAsync, 0, __pyx_n_s_cudaSignalExternalSemaphoresAsyn_2, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__421)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17023, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaSignalExternalSemaphoresAsyn_2, __pyx_t_4) < 0) __PYX_ERR(0, 17023, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":17156 * return (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, 17156, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_extSemArray_2, __pyx_kp_s_Optional_Tuple_cudaExternalSemap) < 0) __PYX_ERR(0, 17156, __pyx_L1_error) if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_paramsArray_2, __pyx_kp_s_Optional_Tuple_cudaExternalSemap_3) < 0) __PYX_ERR(0, 17156, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_155cudaWaitExternalSemaphoresAsync, 0, __pyx_n_s_cudaWaitExternalSemaphoresAsync_2, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__424)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17156, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaWaitExternalSemaphoresAsync_2, __pyx_t_2) < 0) __PYX_ERR(0, 17156, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":17278 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDestroyExternalSemaphore(extSem): * """ Destroys an external semaphore. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_157cudaDestroyExternalSemaphore, 0, __pyx_n_s_cudaDestroyExternalSemaphore, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__426)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17278, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDestroyExternalSemaphore, __pyx_t_2) < 0) __PYX_ERR(0, 17278, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":17312 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaFuncSetCacheConfig(func, cacheConfig not None : cudaFuncCache): * """ Sets the preferred cache configuration for a device function. */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17312, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_cacheConfig, __pyx_n_s_cudaFuncCache) < 0) __PYX_ERR(0, 17312, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_159cudaFuncSetCacheConfig, 0, __pyx_n_s_cudaFuncSetCacheConfig, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__427)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17312, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaFuncSetCacheConfig, __pyx_t_4) < 0) __PYX_ERR(0, 17312, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":17371 * return (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_6cudart_161cudaFuncGetAttributes, 0, __pyx_n_s_cudaFuncGetAttributes, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__428)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17371, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaFuncGetAttributes, __pyx_t_4) < 0) __PYX_ERR(0, 17371, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":17409 * return (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, 17409, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_attr, __pyx_n_s_cudaFuncAttribute) < 0) __PYX_ERR(0, 17409, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_163cudaFuncSetAttribute, 0, __pyx_n_s_cudaFuncSetAttribute, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__429)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17409, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaFuncSetAttribute, __pyx_t_2) < 0) __PYX_ERR(0, 17409, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":17491 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaLaunchHostFunc(stream, fn, userData): * """ Enqueues a host function call in a stream. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_165cudaLaunchHostFunc, 0, __pyx_n_s_cudaLaunchHostFunc, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__430)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17491, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaLaunchHostFunc, __pyx_t_2) < 0) __PYX_ERR(0, 17491, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":17578 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaFuncSetSharedMemConfig(func, config not None : cudaSharedMemConfig): * """ Sets the shared memory configuration for a device function. */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17578, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_config, __pyx_n_s_cudaSharedMemConfig) < 0) __PYX_ERR(0, 17578, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_167cudaFuncSetSharedMemConfig, 0, __pyx_n_s_cudaFuncSetSharedMemConfig, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__431)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17578, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaFuncSetSharedMemConfig, __pyx_t_4) < 0) __PYX_ERR(0, 17578, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":17642 * return (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_6cudart_169cudaOccupancyMaxActiveBlocksPerMultiprocessor, 0, __pyx_n_s_cudaOccupancyMaxActiveBlocksPerM, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__432)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17642, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaOccupancyMaxActiveBlocksPerM, __pyx_t_4) < 0) __PYX_ERR(0, 17642, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":17675 * return (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_6cudart_171cudaOccupancyAvailableDynamicSMemPerBlock, 0, __pyx_n_s_cudaOccupancyAvailableDynamicSMe, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__433)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17675, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaOccupancyAvailableDynamicSMe, __pyx_t_4) < 0) __PYX_ERR(0, 17675, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":17708 * return (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_6cudart_173cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags, 0, __pyx_n_s_cudaOccupancyMaxActiveBlocksPerM_2, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__434)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17708, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaOccupancyMaxActiveBlocksPerM_2, __pyx_t_4) < 0) __PYX_ERR(0, 17708, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":17758 * return (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_6cudart_175cudaMallocManaged, 0, __pyx_n_s_cudaMallocManaged, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__435)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17758, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMallocManaged, __pyx_t_4) < 0) __PYX_ERR(0, 17758, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":17888 * return (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_6cudart_177cudaMalloc, 0, __pyx_n_s_cudaMalloc, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__436)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17888, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMalloc, __pyx_t_4) < 0) __PYX_ERR(0, 17888, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":17923 * return (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_6cudart_179cudaMallocHost, 0, __pyx_n_s_cudaMallocHost, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__437)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17923, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMallocHost, __pyx_t_4) < 0) __PYX_ERR(0, 17923, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":17965 * return (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_6cudart_181cudaMallocPitch, 0, __pyx_n_s_cudaMallocPitch, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__438)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17965, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMallocPitch, __pyx_t_4) < 0) __PYX_ERR(0, 17965, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":18015 * return (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, 18015, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_desc_2, __pyx_kp_s_Optional_cudaChannelFormatDesc) < 0) __PYX_ERR(0, 18015, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_183cudaMallocArray, 0, __pyx_n_s_cudaMallocArray, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__439)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18015, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMallocArray, __pyx_t_2) < 0) __PYX_ERR(0, 18015, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":18088 * return (cudaError_t(err), array) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaFree(devPtr): * """ Frees memory on the device. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_185cudaFree, 0, __pyx_n_s_cudaFree, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__440)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18088, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaFree, __pyx_t_2) < 0) __PYX_ERR(0, 18088, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":18136 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaFreeHost(ptr): * """ Frees page-locked memory. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_187cudaFreeHost, 0, __pyx_n_s_cudaFreeHost, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__441)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18136, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaFreeHost, __pyx_t_2) < 0) __PYX_ERR(0, 18136, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":18165 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaFreeArray(array): * """ Frees an array on the device. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_189cudaFreeArray, 0, __pyx_n_s_cudaFreeArray, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__442)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18165, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaFreeArray, __pyx_t_2) < 0) __PYX_ERR(0, 18165, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":18201 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaFreeMipmappedArray(mipmappedArray): * """ Frees a mipmapped array on the device. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_191cudaFreeMipmappedArray, 0, __pyx_n_s_cudaFreeMipmappedArray, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__443)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18201, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaFreeMipmappedArray, __pyx_t_2) < 0) __PYX_ERR(0, 18201, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":18235 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaHostAlloc(size_t size, unsigned int flags): * """ Allocates page-locked memory on the host. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_193cudaHostAlloc, 0, __pyx_n_s_cudaHostAlloc, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__444)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaHostAlloc, __pyx_t_2) < 0) __PYX_ERR(0, 18235, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":18316 * return (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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_195cudaHostRegister, 0, __pyx_n_s_cudaHostRegister, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__445)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18316, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaHostRegister, __pyx_t_2) < 0) __PYX_ERR(0, 18316, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":18430 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaHostUnregister(ptr): * """ Unregisters a memory range that was registered with cudaHostRegister. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_197cudaHostUnregister, 0, __pyx_n_s_cudaHostUnregister, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__446)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18430, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaHostUnregister, __pyx_t_2) < 0) __PYX_ERR(0, 18430, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":18461 * return (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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_199cudaHostGetDevicePointer, 0, __pyx_n_s_cudaHostGetDevicePointer, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__447)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18461, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaHostGetDevicePointer, __pyx_t_2) < 0) __PYX_ERR(0, 18461, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":18517 * return (cudaError_t(err), pDevice) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaHostGetFlags(pHost): * """ Passes back flags used to allocate pinned host memory allocated by cudaHostAlloc. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_201cudaHostGetFlags, 0, __pyx_n_s_cudaHostGetFlags, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__448)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18517, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaHostGetFlags, __pyx_t_2) < 0) __PYX_ERR(0, 18517, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":18546 * return (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_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18546, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_extent_2, __pyx_n_s_cudaExtent) < 0) __PYX_ERR(0, 18546, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_203cudaMalloc3D, 0, __pyx_n_s_cudaMalloc3D, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__449)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18546, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMalloc3D, __pyx_t_4) < 0) __PYX_ERR(0, 18546, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":18589 * return (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, 18589, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_desc_2, __pyx_kp_s_Optional_cudaChannelFormatDesc) < 0) __PYX_ERR(0, 18589, __pyx_L1_error) if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_extent_2, __pyx_n_s_cudaExtent) < 0) __PYX_ERR(0, 18589, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_205cudaMalloc3DArray, 0, __pyx_n_s_cudaMalloc3DArray, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__450)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18589, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMalloc3DArray, __pyx_t_2) < 0) __PYX_ERR(0, 18589, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":18708 * return (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_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18708, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_desc_2, __pyx_kp_s_Optional_cudaChannelFormatDesc) < 0) __PYX_ERR(0, 18708, __pyx_L1_error) if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_extent_2, __pyx_n_s_cudaExtent) < 0) __PYX_ERR(0, 18708, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_207cudaMallocMipmappedArray, 0, __pyx_n_s_cudaMallocMipmappedArray, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__451)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18708, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMallocMipmappedArray, __pyx_t_4) < 0) __PYX_ERR(0, 18708, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":18828 * return (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_6cudart_209cudaGetMipmappedArrayLevel, 0, __pyx_n_s_cudaGetMipmappedArrayLevel, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__452)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18828, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGetMipmappedArrayLevel, __pyx_t_4) < 0) __PYX_ERR(0, 18828, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":18872 * return (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, 18872, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_p, __pyx_kp_s_Optional_cudaMemcpy3DParms) < 0) __PYX_ERR(0, 18872, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_211cudaMemcpy3D, 0, __pyx_n_s_cudaMemcpy3D, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__453)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18872, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemcpy3D, __pyx_t_2) < 0) __PYX_ERR(0, 18872, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":18954 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemcpy3DPeer(p : Optional[cudaMemcpy3DPeerParms]): * """ Copies memory between devices. */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18954, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_p, __pyx_kp_s_Optional_cudaMemcpy3DPeerParms) < 0) __PYX_ERR(0, 18954, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_213cudaMemcpy3DPeer, 0, __pyx_n_s_cudaMemcpy3DPeer, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__454)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18954, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemcpy3DPeer, __pyx_t_4) < 0) __PYX_ERR(0, 18954, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":18987 * return (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, 18987, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_p, __pyx_kp_s_Optional_cudaMemcpy3DParms) < 0) __PYX_ERR(0, 18987, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_215cudaMemcpy3DAsync, 0, __pyx_n_s_cudaMemcpy3DAsync, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__455)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18987, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemcpy3DAsync, __pyx_t_2) < 0) __PYX_ERR(0, 18987, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":19091 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemcpy3DPeerAsync(p : Optional[cudaMemcpy3DPeerParms], stream): * """ Copies memory between devices asynchronously. */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19091, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_p, __pyx_kp_s_Optional_cudaMemcpy3DPeerParms) < 0) __PYX_ERR(0, 19091, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_217cudaMemcpy3DPeerAsync, 0, __pyx_n_s_cudaMemcpy3DPeerAsync, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__456)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19091, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemcpy3DPeerAsync, __pyx_t_4) < 0) __PYX_ERR(0, 19091, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":19128 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemGetInfo(): * """ Gets free and total device memory. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_219cudaMemGetInfo, 0, __pyx_n_s_cudaMemGetInfo, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__457)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19128, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemGetInfo, __pyx_t_4) < 0) __PYX_ERR(0, 19128, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":19167 * return (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_6cudart_221cudaArrayGetInfo, 0, __pyx_n_s_cudaArrayGetInfo, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__458)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19167, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaArrayGetInfo, __pyx_t_4) < 0) __PYX_ERR(0, 19167, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":19211 * return (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_6cudart_223cudaArrayGetPlane, 0, __pyx_n_s_cudaArrayGetPlane, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__459)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19211, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaArrayGetPlane, __pyx_t_4) < 0) __PYX_ERR(0, 19211, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":19262 * return (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_6cudart_225cudaArrayGetMemoryRequirements, 0, __pyx_n_s_cudaArrayGetMemoryRequirements, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__460)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19262, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaArrayGetMemoryRequirements, __pyx_t_4) < 0) __PYX_ERR(0, 19262, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":19307 * return (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_6cudart_227cudaMipmappedArrayGetMemoryRequirements, 0, __pyx_n_s_cudaMipmappedArrayGetMemoryRequi, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__461)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19307, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMipmappedArrayGetMemoryRequi, __pyx_t_4) < 0) __PYX_ERR(0, 19307, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":19352 * return (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_6cudart_229cudaArrayGetSparseProperties, 0, __pyx_n_s_cudaArrayGetSparseProperties, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__462)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19352, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaArrayGetSparseProperties, __pyx_t_4) < 0) __PYX_ERR(0, 19352, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":19403 * return (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_6cudart_231cudaMipmappedArrayGetSparseProperties, 0, __pyx_n_s_cudaMipmappedArrayGetSparsePrope, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__463)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19403, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMipmappedArrayGetSparsePrope, __pyx_t_4) < 0) __PYX_ERR(0, 19403, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":19454 * return (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, 19454, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_kind_2, __pyx_n_s_cudaMemcpyKind) < 0) __PYX_ERR(0, 19454, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_233cudaMemcpy, 0, __pyx_n_s_cudaMemcpy, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__464)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19454, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemcpy, __pyx_t_2) < 0) __PYX_ERR(0, 19454, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":19502 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemcpyPeer(dst, int dstDevice, src, int srcDevice, size_t count): * """ Copies memory between two devices. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_235cudaMemcpyPeer, 0, __pyx_n_s_cudaMemcpyPeer, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__465)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19502, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemcpyPeer, __pyx_t_2) < 0) __PYX_ERR(0, 19502, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":19548 * return (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_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19548, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_kind_2, __pyx_n_s_cudaMemcpyKind) < 0) __PYX_ERR(0, 19548, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_237cudaMemcpy2D, 0, __pyx_n_s_cudaMemcpy2D, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__466)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19548, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemcpy2D, __pyx_t_4) < 0) __PYX_ERR(0, 19548, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":19606 * return (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, 19606, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_kind_2, __pyx_n_s_cudaMemcpyKind) < 0) __PYX_ERR(0, 19606, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_239cudaMemcpy2DToArray, 0, __pyx_n_s_cudaMemcpy2DToArray, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__467)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19606, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemcpy2DToArray, __pyx_t_2) < 0) __PYX_ERR(0, 19606, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":19672 * return (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_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19672, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_kind_2, __pyx_n_s_cudaMemcpyKind) < 0) __PYX_ERR(0, 19672, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_241cudaMemcpy2DFromArray, 0, __pyx_n_s_cudaMemcpy2DFromArray, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__468)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19672, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemcpy2DFromArray, __pyx_t_4) < 0) __PYX_ERR(0, 19672, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":19738 * return (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, 19738, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_kind_2, __pyx_n_s_cudaMemcpyKind) < 0) __PYX_ERR(0, 19738, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_243cudaMemcpy2DArrayToArray, 0, __pyx_n_s_cudaMemcpy2DArrayToArray, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__469)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19738, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemcpy2DArrayToArray, __pyx_t_2) < 0) __PYX_ERR(0, 19738, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":19809 * return (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_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19809, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_kind_2, __pyx_n_s_cudaMemcpyKind) < 0) __PYX_ERR(0, 19809, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_245cudaMemcpyAsync, 0, __pyx_n_s_cudaMemcpyAsync, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__470)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19809, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemcpyAsync, __pyx_t_4) < 0) __PYX_ERR(0, 19809, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":19878 * return (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_6cudart_247cudaMemcpyPeerAsync, 0, __pyx_n_s_cudaMemcpyPeerAsync, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__471)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19878, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemcpyPeerAsync, __pyx_t_4) < 0) __PYX_ERR(0, 19878, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":19933 * return (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, 19933, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_kind_2, __pyx_n_s_cudaMemcpyKind) < 0) __PYX_ERR(0, 19933, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_249cudaMemcpy2DAsync, 0, __pyx_n_s_cudaMemcpy2DAsync, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__472)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19933, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemcpy2DAsync, __pyx_t_2) < 0) __PYX_ERR(0, 19933, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":20013 * return (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_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20013, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_kind_2, __pyx_n_s_cudaMemcpyKind) < 0) __PYX_ERR(0, 20013, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_251cudaMemcpy2DToArrayAsync, 0, __pyx_n_s_cudaMemcpy2DToArrayAsync, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__473)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 20013, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemcpy2DToArrayAsync, __pyx_t_4) < 0) __PYX_ERR(0, 20013, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":20101 * return (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, 20101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_kind_2, __pyx_n_s_cudaMemcpyKind) < 0) __PYX_ERR(0, 20101, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_253cudaMemcpy2DFromArrayAsync, 0, __pyx_n_s_cudaMemcpy2DFromArrayAsync, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__474)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemcpy2DFromArrayAsync, __pyx_t_2) < 0) __PYX_ERR(0, 20101, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":20188 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemset(devPtr, int value, size_t count): * """ Initializes or sets device memory to a value. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_255cudaMemset, 0, __pyx_n_s_cudaMemset, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__475)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20188, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemset, __pyx_t_2) < 0) __PYX_ERR(0, 20188, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":20223 * return (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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_257cudaMemset2D, 0, __pyx_n_s_cudaMemset2D, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__476)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20223, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemset2D, __pyx_t_2) < 0) __PYX_ERR(0, 20223, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":20263 * return (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_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20263, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_pitchedDevPtr, __pyx_n_s_cudaPitchedPtr) < 0) __PYX_ERR(0, 20263, __pyx_L1_error) if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_extent_2, __pyx_n_s_cudaExtent) < 0) __PYX_ERR(0, 20263, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_259cudaMemset3D, 0, __pyx_n_s_cudaMemset3D, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__477)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 20263, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemset3D, __pyx_t_4) < 0) __PYX_ERR(0, 20263, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":20313 * return (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_6cudart_261cudaMemsetAsync, 0, __pyx_n_s_cudaMemsetAsync, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__478)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 20313, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemsetAsync, __pyx_t_4) < 0) __PYX_ERR(0, 20313, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":20365 * return (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_6cudart_263cudaMemset2DAsync, 0, __pyx_n_s_cudaMemset2DAsync, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__479)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 20365, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemset2DAsync, __pyx_t_4) < 0) __PYX_ERR(0, 20365, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":20422 * return (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, 20422, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_pitchedDevPtr, __pyx_n_s_cudaPitchedPtr) < 0) __PYX_ERR(0, 20422, __pyx_L1_error) if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_extent_2, __pyx_n_s_cudaExtent) < 0) __PYX_ERR(0, 20422, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_265cudaMemset3DAsync, 0, __pyx_n_s_cudaMemset3DAsync, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__480)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20422, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemset3DAsync, __pyx_t_2) < 0) __PYX_ERR(0, 20422, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":20489 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemPrefetchAsync(devPtr, size_t count, int dstDevice, stream): * """ Prefetches memory to the specified destination device. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_267cudaMemPrefetchAsync, 0, __pyx_n_s_cudaMemPrefetchAsync, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__481)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20489, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemPrefetchAsync, __pyx_t_2) < 0) __PYX_ERR(0, 20489, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":20587 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemPrefetchAsync_v2(devPtr, size_t count, location not None : cudaMemLocation, unsigned int flags, stream): * """ Prefetches memory to the specified destination location. */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20587, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_location_2, __pyx_n_s_cudaMemLocation) < 0) __PYX_ERR(0, 20587, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_269cudaMemPrefetchAsync_v2, 0, __pyx_n_s_cudaMemPrefetchAsync_v2, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__482)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 20587, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemPrefetchAsync_v2, __pyx_t_4) < 0) __PYX_ERR(0, 20587, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":20703 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemAdvise(devPtr, size_t count, advice not None : cudaMemoryAdvise, int device): * """ Advise about the usage of a given memory range. */ __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 20703, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_advice, __pyx_n_s_cudaMemoryAdvise) < 0) __PYX_ERR(0, 20703, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_271cudaMemAdvise, 0, __pyx_n_s_cudaMemAdvise, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__483)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20703, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemAdvise, __pyx_t_2) < 0) __PYX_ERR(0, 20703, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":20867 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemAdvise_v2(devPtr, size_t count, advice not None : cudaMemoryAdvise, location not None : cudaMemLocation): * """ Advise about the usage of a given memory range. */ __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20867, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_advice, __pyx_n_s_cudaMemoryAdvise) < 0) __PYX_ERR(0, 20867, __pyx_L1_error) if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_location_2, __pyx_n_s_cudaMemLocation) < 0) __PYX_ERR(0, 20867, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_273cudaMemAdvise_v2, 0, __pyx_n_s_cudaMemAdvise_v2, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__484)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 20867, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemAdvise_v2, __pyx_t_4) < 0) __PYX_ERR(0, 20867, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":21062 * return (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, 21062, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_attribute, __pyx_n_s_cudaMemRangeAttribute) < 0) __PYX_ERR(0, 21062, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_275cudaMemRangeGetAttribute, 0, __pyx_n_s_cudaMemRangeGetAttribute, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__485)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21062, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemRangeGetAttribute, __pyx_t_2) < 0) __PYX_ERR(0, 21062, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":21207 * return (cudaError_t(err), cdata.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_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21207, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dataSizes, __pyx_kp_s_Tuple_int_List_int) < 0) __PYX_ERR(0, 21207, __pyx_L1_error) if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_attributes, __pyx_kp_s_Optional_Tuple_cudaMemRangeAttri) < 0) __PYX_ERR(0, 21207, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_277cudaMemRangeGetAttributes, 0, __pyx_n_s_cudaMemRangeGetAttributes, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__486)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21207, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemRangeGetAttributes, __pyx_t_4) < 0) __PYX_ERR(0, 21207, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":21282 * return (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, 21282, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_kind_2, __pyx_n_s_cudaMemcpyKind) < 0) __PYX_ERR(0, 21282, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_279cudaMemcpyToArray, 0, __pyx_n_s_cudaMemcpyToArray, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__489)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21282, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemcpyToArray, __pyx_t_2) < 0) __PYX_ERR(0, 21282, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":21338 * return (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_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21338, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_kind_2, __pyx_n_s_cudaMemcpyKind) < 0) __PYX_ERR(0, 21338, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_281cudaMemcpyFromArray, 0, __pyx_n_s_cudaMemcpyFromArray, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__490)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21338, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemcpyFromArray, __pyx_t_4) < 0) __PYX_ERR(0, 21338, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":21394 * return (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, 21394, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_kind_2, __pyx_n_s_cudaMemcpyKind) < 0) __PYX_ERR(0, 21394, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_283cudaMemcpyArrayToArray, 0, __pyx_n_s_cudaMemcpyArrayToArray, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__491)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21394, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemcpyArrayToArray, __pyx_t_2) < 0) __PYX_ERR(0, 21394, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":21462 * return (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_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21462, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_kind_2, __pyx_n_s_cudaMemcpyKind) < 0) __PYX_ERR(0, 21462, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_285cudaMemcpyToArrayAsync, 0, __pyx_n_s_cudaMemcpyToArrayAsync, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__492)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21462, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemcpyToArrayAsync, __pyx_t_4) < 0) __PYX_ERR(0, 21462, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":21536 * return (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, 21536, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_kind_2, __pyx_n_s_cudaMemcpyKind) < 0) __PYX_ERR(0, 21536, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_287cudaMemcpyFromArrayAsync, 0, __pyx_n_s_cudaMemcpyFromArrayAsync, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__493)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21536, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemcpyFromArrayAsync, __pyx_t_2) < 0) __PYX_ERR(0, 21536, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":21610 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMallocAsync(size_t size, hStream): * """ Allocates memory with stream ordered semantics. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_289cudaMallocAsync, 0, __pyx_n_s_cudaMallocAsync, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__494)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21610, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMallocAsync, __pyx_t_2) < 0) __PYX_ERR(0, 21610, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":21662 * return (cudaError_t(err), devPtr) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaFreeAsync(devPtr, hStream): * """ Frees memory with stream ordered semantics. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_291cudaFreeAsync, 0, __pyx_n_s_cudaFreeAsync, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__495)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21662, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaFreeAsync, __pyx_t_2) < 0) __PYX_ERR(0, 21662, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":21707 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemPoolTrimTo(memPool, size_t minBytesToKeep): * """ Tries to release memory back to the OS. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_293cudaMemPoolTrimTo, 0, __pyx_n_s_cudaMemPoolTrimTo, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__496)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21707, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemPoolTrimTo, __pyx_t_2) < 0) __PYX_ERR(0, 21707, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":21756 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemPoolSetAttribute(memPool, attr not None : cudaMemPoolAttr, value): * """ Sets attributes of a memory pool. */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21756, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_attr, __pyx_n_s_cudaMemPoolAttr) < 0) __PYX_ERR(0, 21756, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_295cudaMemPoolSetAttribute, 0, __pyx_n_s_cudaMemPoolSetAttribute, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__497)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21756, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemPoolSetAttribute, __pyx_t_4) < 0) __PYX_ERR(0, 21756, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":21831 * return (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, 21831, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_attr, __pyx_n_s_cudaMemPoolAttr) < 0) __PYX_ERR(0, 21831, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_297cudaMemPoolGetAttribute, 0, __pyx_n_s_cudaMemPoolGetAttribute, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__498)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21831, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemPoolGetAttribute, __pyx_t_2) < 0) __PYX_ERR(0, 21831, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":21912 * return (cudaError_t(err), cvalue.pyObj()) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemPoolSetAccess(memPool, descList : Optional[Tuple[cudaMemAccessDesc] | List[cudaMemAccessDesc]], size_t count): * """ Controls visibility of pools between devices. */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21912, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_descList, __pyx_kp_s_Optional_Tuple_cudaMemAccessDesc) < 0) __PYX_ERR(0, 21912, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_299cudaMemPoolSetAccess, 0, __pyx_n_s_cudaMemPoolSetAccess, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__499)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21912, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemPoolSetAccess, __pyx_t_4) < 0) __PYX_ERR(0, 21912, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":21960 * return (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, 21960, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_location_2, __pyx_kp_s_Optional_cudaMemLocation) < 0) __PYX_ERR(0, 21960, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_301cudaMemPoolGetAccess, 0, __pyx_n_s_cudaMemPoolGetAccess, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__501)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21960, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemPoolGetAccess, __pyx_t_2) < 0) __PYX_ERR(0, 21960, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":21999 * return (cudaError_t(err), cudaMemAccessFlags(flags)) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemPoolCreate(poolProps : Optional[cudaMemPoolProps]): * """ Creates a memory pool. */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21999, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_poolProps_2, __pyx_kp_s_Optional_cudaMemPoolProps) < 0) __PYX_ERR(0, 21999, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_303cudaMemPoolCreate, 0, __pyx_n_s_cudaMemPoolCreate, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__502)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21999, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemPoolCreate, __pyx_t_4) < 0) __PYX_ERR(0, 21999, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":22064 * return (cudaError_t(err), memPool) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemPoolDestroy(memPool): * """ Destroys the specified memory pool. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_305cudaMemPoolDestroy, 0, __pyx_n_s_cudaMemPoolDestroy, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__503)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22064, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemPoolDestroy, __pyx_t_4) < 0) __PYX_ERR(0, 22064, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":22107 * return (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_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_307cudaMallocFromPoolAsync, 0, __pyx_n_s_cudaMallocFromPoolAsync, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__504)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22107, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMallocFromPoolAsync, __pyx_t_4) < 0) __PYX_ERR(0, 22107, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":22162 * return (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_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22162, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_handleType, __pyx_n_s_cudaMemAllocationHandleType) < 0) __PYX_ERR(0, 22162, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_309cudaMemPoolExportToShareableHandle, 0, __pyx_n_s_cudaMemPoolExportToShareableHand, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__505)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22162, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemPoolExportToShareableHand, __pyx_t_2) < 0) __PYX_ERR(0, 22162, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":22214 * return (cudaError_t(err), cshareableHandle.pyObj()) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemPoolImportFromShareableHandle(shareableHandle, handleType not None : cudaMemAllocationHandleType, unsigned int flags): * """ imports a memory pool from a shared handle. */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22214, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_handleType, __pyx_n_s_cudaMemAllocationHandleType) < 0) __PYX_ERR(0, 22214, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_311cudaMemPoolImportFromShareableHandle, 0, __pyx_n_s_cudaMemPoolImportFromShareableHa, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__506)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22214, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemPoolImportFromShareableHa, __pyx_t_4) < 0) __PYX_ERR(0, 22214, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":22252 * return (cudaError_t(err), memPool) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemPoolExportPointer(ptr): * """ Export data to share a memory pool allocation between processes. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_313cudaMemPoolExportPointer, 0, __pyx_n_s_cudaMemPoolExportPointer, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__507)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemPoolExportPointer, __pyx_t_4) < 0) __PYX_ERR(0, 22252, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":22283 * return (cudaError_t(err), exportData) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaMemPoolImportPointer(memPool, exportData : Optional[cudaMemPoolPtrExportData]): * """ Import a memory pool allocation from another process. */ __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22283, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_exportData, __pyx_kp_s_Optional_cudaMemPoolPtrExportDat) < 0) __PYX_ERR(0, 22283, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_315cudaMemPoolImportPointer, 0, __pyx_n_s_cudaMemPoolImportPointer, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__508)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22283, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaMemPoolImportPointer, __pyx_t_2) < 0) __PYX_ERR(0, 22283, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":22331 * return (cudaError_t(err), ptr) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaPointerGetAttributes(ptr): * """ Returns attributes about a specified pointer. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_317cudaPointerGetAttributes, 0, __pyx_n_s_cudaPointerGetAttributes, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__509)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22331, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaPointerGetAttributes, __pyx_t_2) < 0) __PYX_ERR(0, 22331, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":22397 * return (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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_319cudaDeviceCanAccessPeer, 0, __pyx_n_s_cudaDeviceCanAccessPeer, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__510)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22397, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceCanAccessPeer, __pyx_t_2) < 0) __PYX_ERR(0, 22397, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":22430 * return (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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_321cudaDeviceEnablePeerAccess, 0, __pyx_n_s_cudaDeviceEnablePeerAccess, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__511)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22430, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceEnablePeerAccess, __pyx_t_2) < 0) __PYX_ERR(0, 22430, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":22477 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceDisablePeerAccess(int peerDevice): * """ Disables direct access to memory allocations on a peer device. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_323cudaDeviceDisablePeerAccess, 0, __pyx_n_s_cudaDeviceDisablePeerAccess, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__512)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22477, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceDisablePeerAccess, __pyx_t_2) < 0) __PYX_ERR(0, 22477, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":22502 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphicsUnregisterResource(resource): * """ Unregisters a graphics resource for access by CUDA. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_325cudaGraphicsUnregisterResource, 0, __pyx_n_s_cudaGraphicsUnregisterResource, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__513)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22502, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphicsUnregisterResource, __pyx_t_2) < 0) __PYX_ERR(0, 22502, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":22538 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphicsResourceSetMapFlags(resource, unsigned int flags): * """ Set usage flags for mapping a graphics resource. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_327cudaGraphicsResourceSetMapFlags, 0, __pyx_n_s_cudaGraphicsResourceSetMapFlags, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__514)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22538, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphicsResourceSetMapFlags, __pyx_t_2) < 0) __PYX_ERR(0, 22538, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":22591 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphicsMapResources(int count, resources, stream): * """ Map graphics resources for access by CUDA. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_329cudaGraphicsMapResources, 0, __pyx_n_s_cudaGraphicsMapResources, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__515)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22591, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphicsMapResources, __pyx_t_2) < 0) __PYX_ERR(0, 22591, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":22651 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphicsUnmapResources(int count, resources, stream): * """ Unmap graphics resources. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_331cudaGraphicsUnmapResources, 0, __pyx_n_s_cudaGraphicsUnmapResources, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__516)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22651, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphicsUnmapResources, __pyx_t_2) < 0) __PYX_ERR(0, 22651, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":22709 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphicsResourceGetMappedPointer(resource): * """ Get an device pointer through which to access a mapped graphics resource. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_333cudaGraphicsResourceGetMappedPointer, 0, __pyx_n_s_cudaGraphicsResourceGetMappedPoi, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__517)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22709, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphicsResourceGetMappedPoi, __pyx_t_2) < 0) __PYX_ERR(0, 22709, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":22750 * return (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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_335cudaGraphicsSubResourceGetMappedArray, 0, __pyx_n_s_cudaGraphicsSubResourceGetMapped, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__518)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22750, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphicsSubResourceGetMapped, __pyx_t_2) < 0) __PYX_ERR(0, 22750, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":22802 * return (cudaError_t(err), array) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphicsResourceGetMappedMipmappedArray(resource): * """ Get a mipmapped array through which to access a mapped graphics resource. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_337cudaGraphicsResourceGetMappedMipmappedArray, 0, __pyx_n_s_cudaGraphicsResourceGetMappedMip, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__519)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22802, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphicsResourceGetMappedMip, __pyx_t_2) < 0) __PYX_ERR(0, 22802, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":22843 * return (cudaError_t(err), mipmappedArray) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGetChannelDesc(array): * """ Get the channel descriptor of an array. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_339cudaGetChannelDesc, 0, __pyx_n_s_cudaGetChannelDesc, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__520)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22843, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGetChannelDesc, __pyx_t_2) < 0) __PYX_ERR(0, 22843, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":22880 * return (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_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22880, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_f_2, __pyx_n_s_cudaChannelFormatKind) < 0) __PYX_ERR(0, 22880, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_341cudaCreateChannelDesc, 0, __pyx_n_s_cudaCreateChannelDesc, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__521)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22880, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaCreateChannelDesc, __pyx_t_4) < 0) __PYX_ERR(0, 22880, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":22925 * 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_4 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22925, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_pResDesc, __pyx_kp_s_Optional_cudaResourceDesc) < 0) __PYX_ERR(0, 22925, __pyx_L1_error) if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_pTexDesc, __pyx_kp_s_Optional_cudaTextureDesc) < 0) __PYX_ERR(0, 22925, __pyx_L1_error) if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_pResViewDesc, __pyx_kp_s_Optional_cudaResourceViewDesc) < 0) __PYX_ERR(0, 22925, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_343cudaCreateTextureObject, 0, __pyx_n_s_cudaCreateTextureObject, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__522)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22925, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaCreateTextureObject, __pyx_t_2) < 0) __PYX_ERR(0, 22925, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":23164 * return (cudaError_t(err), pTexObject) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDestroyTextureObject(texObject): * """ Destroys a texture object. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_345cudaDestroyTextureObject, 0, __pyx_n_s_cudaDestroyTextureObject, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__523)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23164, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDestroyTextureObject, __pyx_t_2) < 0) __PYX_ERR(0, 23164, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":23198 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGetTextureObjectResourceDesc(texObject): * """ Returns a texture object's resource descriptor. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_347cudaGetTextureObjectResourceDesc, 0, __pyx_n_s_cudaGetTextureObjectResourceDesc, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__524)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23198, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGetTextureObjectResourceDesc, __pyx_t_2) < 0) __PYX_ERR(0, 23198, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":23236 * return (cudaError_t(err), pResDesc) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGetTextureObjectTextureDesc(texObject): * """ Returns a texture object's texture descriptor. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_349cudaGetTextureObjectTextureDesc, 0, __pyx_n_s_cudaGetTextureObjectTextureDesc, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__525)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23236, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGetTextureObjectTextureDesc, __pyx_t_2) < 0) __PYX_ERR(0, 23236, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":23274 * return (cudaError_t(err), pTexDesc) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGetTextureObjectResourceViewDesc(texObject): * """ Returns a texture object's resource view descriptor. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_351cudaGetTextureObjectResourceViewDesc, 0, __pyx_n_s_cudaGetTextureObjectResourceView, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__526)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23274, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGetTextureObjectResourceView, __pyx_t_2) < 0) __PYX_ERR(0, 23274, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":23311 * return (cudaError_t(err), pResViewDesc) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaCreateSurfaceObject(pResDesc : Optional[cudaResourceDesc]): * """ Creates a surface object. */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23311, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_pResDesc, __pyx_kp_s_Optional_cudaResourceDesc) < 0) __PYX_ERR(0, 23311, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_353cudaCreateSurfaceObject, 0, __pyx_n_s_cudaCreateSurfaceObject, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__527)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23311, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaCreateSurfaceObject, __pyx_t_4) < 0) __PYX_ERR(0, 23311, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":23349 * return (cudaError_t(err), pSurfObject) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDestroySurfaceObject(surfObject): * """ Destroys a surface object. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_355cudaDestroySurfaceObject, 0, __pyx_n_s_cudaDestroySurfaceObject, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__528)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23349, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDestroySurfaceObject, __pyx_t_4) < 0) __PYX_ERR(0, 23349, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":23383 * return (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_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_357cudaGetSurfaceObjectResourceDesc, 0, __pyx_n_s_cudaGetSurfaceObjectResourceDesc, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__529)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23383, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGetSurfaceObjectResourceDesc, __pyx_t_4) < 0) __PYX_ERR(0, 23383, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":23416 * return (cudaError_t(err), pResDesc) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDriverGetVersion(): * """ Returns the latest version of CUDA supported by the driver. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_359cudaDriverGetVersion, 0, __pyx_n_s_cudaDriverGetVersion, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__530)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23416, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDriverGetVersion, __pyx_t_4) < 0) __PYX_ERR(0, 23416, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":23443 * return (cudaError_t(err), driverVersion) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaRuntimeGetVersion(): * """ Returns the CUDA Runtime version. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_361cudaRuntimeGetVersion, 0, __pyx_n_s_cudaRuntimeGetVersion, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__531)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23443, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaRuntimeGetVersion, __pyx_t_4) < 0) __PYX_ERR(0, 23443, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":23473 * return (cudaError_t(err), runtimeVersion) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphCreate(unsigned int flags): * """ Creates a graph. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_363cudaGraphCreate, 0, __pyx_n_s_cudaGraphCreate, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__532)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23473, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphCreate, __pyx_t_4) < 0) __PYX_ERR(0, 23473, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":23499 * return (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_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23499, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_pDependencies, __pyx_kp_s_Optional_Tuple_cudaGraphNode_t_L) < 0) __PYX_ERR(0, 23499, __pyx_L1_error) if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_pNodeParams, __pyx_kp_s_Optional_cudaKernelNodeParams) < 0) __PYX_ERR(0, 23499, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_365cudaGraphAddKernelNode, 0, __pyx_n_s_cudaGraphAddKernelNode, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__533)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23499, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphAddKernelNode, __pyx_t_2) < 0) __PYX_ERR(0, 23499, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":23614 * return (cudaError_t(err), pGraphNode) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphKernelNodeGetParams(node): * """ Returns a kernel node's parameters. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_367cudaGraphKernelNodeGetParams, 0, __pyx_n_s_cudaGraphKernelNodeGetParams, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__535)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23614, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphKernelNodeGetParams, __pyx_t_2) < 0) __PYX_ERR(0, 23614, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":23658 * return (cudaError_t(err), pNodeParams) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphKernelNodeSetParams(node, pNodeParams : Optional[cudaKernelNodeParams]): * """ Sets a kernel node's parameters. */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23658, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_pNodeParams, __pyx_kp_s_Optional_cudaKernelNodeParams) < 0) __PYX_ERR(0, 23658, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_369cudaGraphKernelNodeSetParams, 0, __pyx_n_s_cudaGraphKernelNodeSetParams, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__536)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23658, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphKernelNodeSetParams, __pyx_t_4) < 0) __PYX_ERR(0, 23658, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":23693 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphKernelNodeCopyAttributes(hSrc, hDst): * """ Copies attributes from source node to destination node. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_371cudaGraphKernelNodeCopyAttributes, 0, __pyx_n_s_cudaGraphKernelNodeCopyAttribute, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__537)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23693, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphKernelNodeCopyAttribute, __pyx_t_4) < 0) __PYX_ERR(0, 23693, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":23738 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphKernelNodeGetAttribute(hNode, attr not None : cudaKernelNodeAttrID): * """ Queries node attribute. */ __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23738, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_attr, __pyx_n_s_cudaKernelNodeAttrID) < 0) __PYX_ERR(0, 23738, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_373cudaGraphKernelNodeGetAttribute, 0, __pyx_n_s_cudaGraphKernelNodeGetAttribute, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__538)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23738, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphKernelNodeGetAttribute, __pyx_t_2) < 0) __PYX_ERR(0, 23738, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":23777 * return (cudaError_t(err), value_out) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphKernelNodeSetAttribute(hNode, attr not None : cudaKernelNodeAttrID, value : Optional[cudaKernelNodeAttrValue]): * """ Sets node attribute. */ __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23777, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_attr, __pyx_n_s_cudaKernelNodeAttrID) < 0) __PYX_ERR(0, 23777, __pyx_L1_error) if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_value, __pyx_kp_s_Optional_cudaKernelNodeAttrValue) < 0) __PYX_ERR(0, 23777, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_375cudaGraphKernelNodeSetAttribute, 0, __pyx_n_s_cudaGraphKernelNodeSetAttribute, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__539)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23777, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphKernelNodeSetAttribute, __pyx_t_4) < 0) __PYX_ERR(0, 23777, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":23816 * return (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_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23816, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_pDependencies, __pyx_kp_s_Optional_Tuple_cudaGraphNode_t_L) < 0) __PYX_ERR(0, 23816, __pyx_L1_error) if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_pCopyParams, __pyx_kp_s_Optional_cudaMemcpy3DParms) < 0) __PYX_ERR(0, 23816, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_377cudaGraphAddMemcpyNode, 0, __pyx_n_s_cudaGraphAddMemcpyNode, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__540)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23816, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphAddMemcpyNode, __pyx_t_2) < 0) __PYX_ERR(0, 23816, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":23885 * return (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_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23885, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_pDependencies, __pyx_kp_s_Optional_Tuple_cudaGraphNode_t_L) < 0) __PYX_ERR(0, 23885, __pyx_L1_error) if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_kind_2, __pyx_n_s_cudaMemcpyKind) < 0) __PYX_ERR(0, 23885, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_379cudaGraphAddMemcpyNode1D, 0, __pyx_n_s_cudaGraphAddMemcpyNode1D, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__541)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23885, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphAddMemcpyNode1D, __pyx_t_4) < 0) __PYX_ERR(0, 23885, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":23973 * return (cudaError_t(err), pGraphNode) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphMemcpyNodeGetParams(node): * """ Returns a memcpy node's parameters. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_381cudaGraphMemcpyNodeGetParams, 0, __pyx_n_s_cudaGraphMemcpyNodeGetParams, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__542)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23973, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphMemcpyNodeGetParams, __pyx_t_4) < 0) __PYX_ERR(0, 23973, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":24008 * return (cudaError_t(err), pNodeParams) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphMemcpyNodeSetParams(node, pNodeParams : Optional[cudaMemcpy3DParms]): * """ Sets a memcpy node's parameters. */ __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24008, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_pNodeParams, __pyx_kp_s_Optional_cudaMemcpy3DParms) < 0) __PYX_ERR(0, 24008, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_383cudaGraphMemcpyNodeSetParams, 0, __pyx_n_s_cudaGraphMemcpyNodeSetParams, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__543)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24008, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphMemcpyNodeSetParams, __pyx_t_2) < 0) __PYX_ERR(0, 24008, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":24043 * return (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_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24043, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_kind_2, __pyx_n_s_cudaMemcpyKind) < 0) __PYX_ERR(0, 24043, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_385cudaGraphMemcpyNodeSetParams1D, 0, __pyx_n_s_cudaGraphMemcpyNodeSetParams1D, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__544)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24043, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphMemcpyNodeSetParams1D, __pyx_t_4) < 0) __PYX_ERR(0, 24043, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":24102 * return (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_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24102, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_pDependencies, __pyx_kp_s_Optional_Tuple_cudaGraphNode_t_L) < 0) __PYX_ERR(0, 24102, __pyx_L1_error) if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_pMemsetParams, __pyx_kp_s_Optional_cudaMemsetParams) < 0) __PYX_ERR(0, 24102, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_387cudaGraphAddMemsetNode, 0, __pyx_n_s_cudaGraphAddMemsetNode, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__545)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24102, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphAddMemsetNode, __pyx_t_2) < 0) __PYX_ERR(0, 24102, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":24165 * return (cudaError_t(err), pGraphNode) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphMemsetNodeGetParams(node): * """ Returns a memset node's parameters. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_389cudaGraphMemsetNodeGetParams, 0, __pyx_n_s_cudaGraphMemsetNodeGetParams, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__546)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24165, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphMemsetNodeGetParams, __pyx_t_2) < 0) __PYX_ERR(0, 24165, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":24200 * return (cudaError_t(err), pNodeParams) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphMemsetNodeSetParams(node, pNodeParams : Optional[cudaMemsetParams]): * """ Sets a memset node's parameters. */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_pNodeParams, __pyx_kp_s_Optional_cudaMemsetParams) < 0) __PYX_ERR(0, 24200, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_391cudaGraphMemsetNodeSetParams, 0, __pyx_n_s_cudaGraphMemsetNodeSetParams, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__547)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphMemsetNodeSetParams, __pyx_t_4) < 0) __PYX_ERR(0, 24200, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":24235 * return (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_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_pDependencies, __pyx_kp_s_Optional_Tuple_cudaGraphNode_t_L) < 0) __PYX_ERR(0, 24235, __pyx_L1_error) if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_pNodeParams, __pyx_kp_s_Optional_cudaHostNodeParams) < 0) __PYX_ERR(0, 24235, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_393cudaGraphAddHostNode, 0, __pyx_n_s_cudaGraphAddHostNode, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__548)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24235, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphAddHostNode, __pyx_t_2) < 0) __PYX_ERR(0, 24235, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":24299 * return (cudaError_t(err), pGraphNode) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphHostNodeGetParams(node): * """ Returns a host node's parameters. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_395cudaGraphHostNodeGetParams, 0, __pyx_n_s_cudaGraphHostNodeGetParams, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__549)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24299, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphHostNodeGetParams, __pyx_t_2) < 0) __PYX_ERR(0, 24299, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":24334 * return (cudaError_t(err), pNodeParams) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphHostNodeSetParams(node, pNodeParams : Optional[cudaHostNodeParams]): * """ Sets a host node's parameters. */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24334, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_pNodeParams, __pyx_kp_s_Optional_cudaHostNodeParams) < 0) __PYX_ERR(0, 24334, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_397cudaGraphHostNodeSetParams, 0, __pyx_n_s_cudaGraphHostNodeSetParams, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__550)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24334, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphHostNodeSetParams, __pyx_t_4) < 0) __PYX_ERR(0, 24334, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":24369 * return (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_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24369, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_pDependencies, __pyx_kp_s_Optional_Tuple_cudaGraphNode_t_L) < 0) __PYX_ERR(0, 24369, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_399cudaGraphAddChildGraphNode, 0, __pyx_n_s_cudaGraphAddChildGraphNode, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__551)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24369, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphAddChildGraphNode, __pyx_t_2) < 0) __PYX_ERR(0, 24369, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":24444 * return (cudaError_t(err), pGraphNode) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphChildGraphNodeGetGraph(node): * """ Gets a handle to the embedded graph of a child graph node. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_401cudaGraphChildGraphNodeGetGraph, 0, __pyx_n_s_cudaGraphChildGraphNodeGetGraph, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__552)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24444, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphChildGraphNodeGetGraph, __pyx_t_2) < 0) __PYX_ERR(0, 24444, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":24484 * return (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_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24484, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_pDependencies, __pyx_kp_s_Optional_Tuple_cudaGraphNode_t_L) < 0) __PYX_ERR(0, 24484, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_403cudaGraphAddEmptyNode, 0, __pyx_n_s_cudaGraphAddEmptyNode, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__553)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24484, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphAddEmptyNode, __pyx_t_4) < 0) __PYX_ERR(0, 24484, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":24548 * return (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_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24548, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_pDependencies, __pyx_kp_s_Optional_Tuple_cudaGraphNode_t_L) < 0) __PYX_ERR(0, 24548, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_405cudaGraphAddEventRecordNode, 0, __pyx_n_s_cudaGraphAddEventRecordNode, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__554)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24548, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphAddEventRecordNode, __pyx_t_2) < 0) __PYX_ERR(0, 24548, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":24622 * return (cudaError_t(err), pGraphNode) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphEventRecordNodeGetEvent(node): * """ Returns the event associated with an event record node. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_407cudaGraphEventRecordNodeGetEvent, 0, __pyx_n_s_cudaGraphEventRecordNodeGetEvent, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__555)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24622, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphEventRecordNodeGetEvent, __pyx_t_2) < 0) __PYX_ERR(0, 24622, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":24657 * return (cudaError_t(err), event_out) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphEventRecordNodeSetEvent(node, event): * """ Sets an event record node's event. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_409cudaGraphEventRecordNodeSetEvent, 0, __pyx_n_s_cudaGraphEventRecordNodeSetEvent, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__556)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24657, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphEventRecordNodeSetEvent, __pyx_t_2) < 0) __PYX_ERR(0, 24657, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":24700 * return (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_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24700, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_pDependencies, __pyx_kp_s_Optional_Tuple_cudaGraphNode_t_L) < 0) __PYX_ERR(0, 24700, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_411cudaGraphAddEventWaitNode, 0, __pyx_n_s_cudaGraphAddEventWaitNode, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__557)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24700, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphAddEventWaitNode, __pyx_t_4) < 0) __PYX_ERR(0, 24700, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":24777 * return (cudaError_t(err), pGraphNode) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphEventWaitNodeGetEvent(node): * """ Returns the event associated with an event wait node. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_413cudaGraphEventWaitNodeGetEvent, 0, __pyx_n_s_cudaGraphEventWaitNodeGetEvent, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__558)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24777, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphEventWaitNodeGetEvent, __pyx_t_4) < 0) __PYX_ERR(0, 24777, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":24812 * return (cudaError_t(err), event_out) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphEventWaitNodeSetEvent(node, event): * """ Sets an event wait node's event. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_415cudaGraphEventWaitNodeSetEvent, 0, __pyx_n_s_cudaGraphEventWaitNodeSetEvent, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__559)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24812, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphEventWaitNodeSetEvent, __pyx_t_4) < 0) __PYX_ERR(0, 24812, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":24855 * return (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_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24855, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_pDependencies, __pyx_kp_s_Optional_Tuple_cudaGraphNode_t_L) < 0) __PYX_ERR(0, 24855, __pyx_L1_error) if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_nodeParams, __pyx_kp_s_Optional_cudaExternalSemaphoreSi) < 0) __PYX_ERR(0, 24855, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_417cudaGraphAddExternalSemaphoresSignalNode, 0, __pyx_n_s_cudaGraphAddExternalSemaphoresSi_2, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__560)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24855, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphAddExternalSemaphoresSi_2, __pyx_t_2) < 0) __PYX_ERR(0, 24855, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":24920 * return (cudaError_t(err), pGraphNode) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphExternalSemaphoresSignalNodeGetParams(hNode): * """ Returns an external semaphore signal node's parameters. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_419cudaGraphExternalSemaphoresSignalNodeGetParams, 0, __pyx_n_s_cudaGraphExternalSemaphoresSigna, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__561)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24920, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphExternalSemaphoresSigna, __pyx_t_2) < 0) __PYX_ERR(0, 24920, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":24961 * return (cudaError_t(err), params_out) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams : Optional[cudaExternalSemaphoreSignalNodeParams]): * """ Sets an external semaphore signal node's parameters. */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24961, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_nodeParams, __pyx_kp_s_Optional_cudaExternalSemaphoreSi) < 0) __PYX_ERR(0, 24961, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_421cudaGraphExternalSemaphoresSignalNodeSetParams, 0, __pyx_n_s_cudaGraphExternalSemaphoresSigna_2, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__562)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24961, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphExternalSemaphoresSigna_2, __pyx_t_4) < 0) __PYX_ERR(0, 24961, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":24997 * return (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_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24997, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_pDependencies, __pyx_kp_s_Optional_Tuple_cudaGraphNode_t_L) < 0) __PYX_ERR(0, 24997, __pyx_L1_error) if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_nodeParams, __pyx_kp_s_Optional_cudaExternalSemaphoreWa) < 0) __PYX_ERR(0, 24997, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_423cudaGraphAddExternalSemaphoresWaitNode, 0, __pyx_n_s_cudaGraphAddExternalSemaphoresWa_2, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__563)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24997, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphAddExternalSemaphoresWa_2, __pyx_t_2) < 0) __PYX_ERR(0, 24997, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":25062 * return (cudaError_t(err), pGraphNode) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphExternalSemaphoresWaitNodeGetParams(hNode): * """ Returns an external semaphore wait node's parameters. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_425cudaGraphExternalSemaphoresWaitNodeGetParams, 0, __pyx_n_s_cudaGraphExternalSemaphoresWaitN, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__564)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25062, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphExternalSemaphoresWaitN, __pyx_t_2) < 0) __PYX_ERR(0, 25062, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":25103 * return (cudaError_t(err), params_out) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams : Optional[cudaExternalSemaphoreWaitNodeParams]): * """ Sets an external semaphore wait node's parameters. */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25103, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_nodeParams, __pyx_kp_s_Optional_cudaExternalSemaphoreWa) < 0) __PYX_ERR(0, 25103, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_427cudaGraphExternalSemaphoresWaitNodeSetParams, 0, __pyx_n_s_cudaGraphExternalSemaphoresWaitN_2, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__565)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25103, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphExternalSemaphoresWaitN_2, __pyx_t_4) < 0) __PYX_ERR(0, 25103, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":25139 * return (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_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_pDependencies, __pyx_kp_s_Optional_Tuple_cudaGraphNode_t_L) < 0) __PYX_ERR(0, 25139, __pyx_L1_error) if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_nodeParams, __pyx_kp_s_Optional_cudaMemAllocNodeParams) < 0) __PYX_ERR(0, 25139, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_429cudaGraphAddMemAllocNode, 0, __pyx_n_s_cudaGraphAddMemAllocNode, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__566)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25139, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphAddMemAllocNode, __pyx_t_2) < 0) __PYX_ERR(0, 25139, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":25242 * return (cudaError_t(err), pGraphNode) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphMemAllocNodeGetParams(node): * """ Returns a memory alloc node's parameters. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_431cudaGraphMemAllocNodeGetParams, 0, __pyx_n_s_cudaGraphMemAllocNodeGetParams, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__567)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25242, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphMemAllocNodeGetParams, __pyx_t_2) < 0) __PYX_ERR(0, 25242, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":25280 * return (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_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25280, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_pDependencies, __pyx_kp_s_Optional_Tuple_cudaGraphNode_t_L) < 0) __PYX_ERR(0, 25280, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_433cudaGraphAddMemFreeNode, 0, __pyx_n_s_cudaGraphAddMemFreeNode, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__568)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25280, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphAddMemFreeNode, __pyx_t_4) < 0) __PYX_ERR(0, 25280, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":25362 * return (cudaError_t(err), pGraphNode) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphMemFreeNodeGetParams(node): * """ Returns a memory free node's parameters. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_435cudaGraphMemFreeNodeGetParams, 0, __pyx_n_s_cudaGraphMemFreeNodeGetParams, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__569)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25362, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphMemFreeNodeGetParams, __pyx_t_4) < 0) __PYX_ERR(0, 25362, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":25398 * return (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_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_437cudaDeviceGraphMemTrim, 0, __pyx_n_s_cudaDeviceGraphMemTrim, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__570)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25398, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceGraphMemTrim, __pyx_t_4) < 0) __PYX_ERR(0, 25398, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":25423 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceGetGraphMemAttribute(int device, attr not None : cudaGraphMemAttributeType): * """ Query asynchronous allocation attributes related to graphs. */ __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25423, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_attr, __pyx_n_s_cudaGraphMemAttributeType) < 0) __PYX_ERR(0, 25423, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_439cudaDeviceGetGraphMemAttribute, 0, __pyx_n_s_cudaDeviceGetGraphMemAttribute, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__571)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25423, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceGetGraphMemAttribute, __pyx_t_2) < 0) __PYX_ERR(0, 25423, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":25468 * return (cudaError_t(err), cvalue.pyObj()) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaDeviceSetGraphMemAttribute(int device, attr not None : cudaGraphMemAttributeType, value): * """ Set asynchronous allocation attributes related to graphs. */ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25468, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_attr, __pyx_n_s_cudaGraphMemAttributeType) < 0) __PYX_ERR(0, 25468, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_441cudaDeviceSetGraphMemAttribute, 0, __pyx_n_s_cudaDeviceSetGraphMemAttribute, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__572)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25468, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaDeviceSetGraphMemAttribute, __pyx_t_4) < 0) __PYX_ERR(0, 25468, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":25506 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphClone(originalGraph): * """ Clones a graph. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_443cudaGraphClone, 0, __pyx_n_s_cudaGraphClone, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__573)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25506, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphClone, __pyx_t_4) < 0) __PYX_ERR(0, 25506, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":25547 * return (cudaError_t(err), pGraphClone) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphNodeFindInClone(originalNode, clonedGraph): * """ Finds a cloned version of a node. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_445cudaGraphNodeFindInClone, 0, __pyx_n_s_cudaGraphNodeFindInClone, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__574)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25547, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphNodeFindInClone, __pyx_t_4) < 0) __PYX_ERR(0, 25547, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":25600 * return (cudaError_t(err), pNode) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphNodeGetType(node): * """ Returns a node's type. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_447cudaGraphNodeGetType, 0, __pyx_n_s_cudaGraphNodeGetType, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__575)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25600, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphNodeGetType, __pyx_t_4) < 0) __PYX_ERR(0, 25600, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":25636 * * @cython.embedsignature(True) * def cudaGraphGetNodes(graph, size_t numNodes = 0): # <<<<<<<<<<<<<< * """ Returns a graph's nodes. * */ __pyx_t_4 = __Pyx_PyInt_FromSize_t(((size_t)0)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25636, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); /* "cuda/cudart.pyx":25635 * return (cudaError_t(err), cudaGraphNodeType(pType)) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphGetNodes(graph, size_t numNodes = 0): * """ Returns a graph's nodes. */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25635, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 25635, __pyx_L1_error); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_449cudaGraphGetNodes, 0, __pyx_n_s_cudaGraphGetNodes, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__576)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25635, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphGetNodes, __pyx_t_4) < 0) __PYX_ERR(0, 25635, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":25690 * * @cython.embedsignature(True) * def cudaGraphGetRootNodes(graph, size_t pNumRootNodes = 0): # <<<<<<<<<<<<<< * """ Returns a graph's root nodes. * */ __pyx_t_4 = __Pyx_PyInt_FromSize_t(((size_t)0)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25690, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); /* "cuda/cudart.pyx":25689 * return (cudaError_t(err), pynodes, numNodes) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphGetRootNodes(graph, size_t pNumRootNodes = 0): * """ Returns a graph's root nodes. */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25689, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 25689, __pyx_L1_error); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_451cudaGraphGetRootNodes, 0, __pyx_n_s_cudaGraphGetRootNodes, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__577)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25689, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphGetRootNodes, __pyx_t_4) < 0) __PYX_ERR(0, 25689, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":25744 * * @cython.embedsignature(True) * def cudaGraphGetEdges(graph, size_t numEdges = 0): # <<<<<<<<<<<<<< * """ Returns a graph's dependency edges. * */ __pyx_t_4 = __Pyx_PyInt_FromSize_t(((size_t)0)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25744, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); /* "cuda/cudart.pyx":25743 * return (cudaError_t(err), pypRootNodes, pNumRootNodes) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphGetEdges(graph, size_t numEdges = 0): * """ Returns a graph's dependency edges. */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25743, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 25743, __pyx_L1_error); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_453cudaGraphGetEdges, 0, __pyx_n_s_cudaGraphGetEdges, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__578)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25743, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphGetEdges, __pyx_t_4) < 0) __PYX_ERR(0, 25743, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":25812 * * @cython.embedsignature(True) * def cudaGraphGetEdges_v2(graph, size_t numEdges = 0): # <<<<<<<<<<<<<< * """ Returns a graph's dependency edges (12.3+) * */ __pyx_t_4 = __Pyx_PyInt_FromSize_t(((size_t)0)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25812, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); /* "cuda/cudart.pyx":25811 * return (cudaError_t(err), pyfrom_, pyto, numEdges) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphGetEdges_v2(graph, size_t numEdges = 0): * """ Returns a graph's dependency edges (12.3+) */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25811, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 25811, __pyx_L1_error); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_455cudaGraphGetEdges_v2, 0, __pyx_n_s_cudaGraphGetEdges_v2, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__579)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25811, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphGetEdges_v2, __pyx_t_4) < 0) __PYX_ERR(0, 25811, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":25897 * * @cython.embedsignature(True) * def cudaGraphNodeGetDependencies(node, size_t pNumDependencies = 0): # <<<<<<<<<<<<<< * """ Returns a node's dependencies. * */ __pyx_t_4 = __Pyx_PyInt_FromSize_t(((size_t)0)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25897, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); /* "cuda/cudart.pyx":25896 * return (cudaError_t(err), pyfrom_, pyto, pyedgeData, numEdges) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphNodeGetDependencies(node, size_t pNumDependencies = 0): * """ Returns a node's dependencies. */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25896, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 25896, __pyx_L1_error); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_457cudaGraphNodeGetDependencies, 0, __pyx_n_s_cudaGraphNodeGetDependencies, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__580)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25896, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphNodeGetDependencies, __pyx_t_4) < 0) __PYX_ERR(0, 25896, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":25952 * * @cython.embedsignature(True) * def cudaGraphNodeGetDependencies_v2(node, size_t pNumDependencies = 0): # <<<<<<<<<<<<<< * """ Returns a node's dependencies (12.3+) * */ __pyx_t_4 = __Pyx_PyInt_FromSize_t(((size_t)0)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25952, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); /* "cuda/cudart.pyx":25951 * return (cudaError_t(err), pypDependencies, pNumDependencies) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphNodeGetDependencies_v2(node, size_t pNumDependencies = 0): * """ Returns a node's dependencies (12.3+) */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25951, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 25951, __pyx_L1_error); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_459cudaGraphNodeGetDependencies_v2, 0, __pyx_n_s_cudaGraphNodeGetDependencies_v2, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__581)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25951, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphNodeGetDependencies_v2, __pyx_t_4) < 0) __PYX_ERR(0, 25951, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":26024 * * @cython.embedsignature(True) * def cudaGraphNodeGetDependentNodes(node, size_t pNumDependentNodes = 0): # <<<<<<<<<<<<<< * """ Returns a node's dependent nodes. * */ __pyx_t_4 = __Pyx_PyInt_FromSize_t(((size_t)0)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26024, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); /* "cuda/cudart.pyx":26023 * return (cudaError_t(err), pypDependencies, pyedgeData, pNumDependencies) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphNodeGetDependentNodes(node, size_t pNumDependentNodes = 0): * """ Returns a node's dependent nodes. */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26023, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 26023, __pyx_L1_error); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_461cudaGraphNodeGetDependentNodes, 0, __pyx_n_s_cudaGraphNodeGetDependentNodes, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__582)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26023, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphNodeGetDependentNodes, __pyx_t_4) < 0) __PYX_ERR(0, 26023, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":26079 * * @cython.embedsignature(True) * def cudaGraphNodeGetDependentNodes_v2(node, size_t pNumDependentNodes = 0): # <<<<<<<<<<<<<< * """ Returns a node's dependent nodes (12.3+) * */ __pyx_t_4 = __Pyx_PyInt_FromSize_t(((size_t)0)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26079, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); /* "cuda/cudart.pyx":26078 * return (cudaError_t(err), pypDependentNodes, pNumDependentNodes) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphNodeGetDependentNodes_v2(node, size_t pNumDependentNodes = 0): * """ Returns a node's dependent nodes (12.3+) */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26078, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_4); if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4)) __PYX_ERR(0, 26078, __pyx_L1_error); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_463cudaGraphNodeGetDependentNodes_v2, 0, __pyx_n_s_cudaGraphNodeGetDependentNodes_v, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__583)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26078, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphNodeGetDependentNodes_v, __pyx_t_4) < 0) __PYX_ERR(0, 26078, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":26150 * return (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]], size_t numDependencies): * """ Adds dependency edges to a graph. */ __pyx_t_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26150, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_from, __pyx_kp_s_Optional_Tuple_cudaGraphNode_t_L) < 0) __PYX_ERR(0, 26150, __pyx_L1_error) if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_to, __pyx_kp_s_Optional_Tuple_cudaGraphNode_t_L) < 0) __PYX_ERR(0, 26150, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_465cudaGraphAddDependencies, 0, __pyx_n_s_cudaGraphAddDependencies, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__584)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26150, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphAddDependencies, __pyx_t_2) < 0) __PYX_ERR(0, 26150, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":26221 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphAddDependencies_v2(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. (12.3+) */ __pyx_t_2 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26221, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_from, __pyx_kp_s_Optional_Tuple_cudaGraphNode_t_L) < 0) __PYX_ERR(0, 26221, __pyx_L1_error) if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_to, __pyx_kp_s_Optional_Tuple_cudaGraphNode_t_L) < 0) __PYX_ERR(0, 26221, __pyx_L1_error) if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_edgeData, __pyx_kp_s_Optional_Tuple_cudaGraphEdgeData) < 0) __PYX_ERR(0, 26221, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_467cudaGraphAddDependencies_v2, 0, __pyx_n_s_cudaGraphAddDependencies_v2, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__587)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26221, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphAddDependencies_v2, __pyx_t_4) < 0) __PYX_ERR(0, 26221, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":26305 * return (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]], size_t numDependencies): * """ Removes dependency edges from a graph. */ __pyx_t_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26305, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_from, __pyx_kp_s_Optional_Tuple_cudaGraphNode_t_L) < 0) __PYX_ERR(0, 26305, __pyx_L1_error) if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_to, __pyx_kp_s_Optional_Tuple_cudaGraphNode_t_L) < 0) __PYX_ERR(0, 26305, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_469cudaGraphRemoveDependencies, 0, __pyx_n_s_cudaGraphRemoveDependencies, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__589)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26305, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphRemoveDependencies, __pyx_t_2) < 0) __PYX_ERR(0, 26305, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":26377 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphRemoveDependencies_v2(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. (12.3+) */ __pyx_t_2 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26377, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_from, __pyx_kp_s_Optional_Tuple_cudaGraphNode_t_L) < 0) __PYX_ERR(0, 26377, __pyx_L1_error) if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_to, __pyx_kp_s_Optional_Tuple_cudaGraphNode_t_L) < 0) __PYX_ERR(0, 26377, __pyx_L1_error) if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_edgeData, __pyx_kp_s_Optional_Tuple_cudaGraphEdgeData) < 0) __PYX_ERR(0, 26377, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_471cudaGraphRemoveDependencies_v2, 0, __pyx_n_s_cudaGraphRemoveDependencies_v2, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__590)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26377, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphRemoveDependencies_v2, __pyx_t_4) < 0) __PYX_ERR(0, 26377, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":26464 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphDestroyNode(node): * """ Remove a node from the graph. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_473cudaGraphDestroyNode, 0, __pyx_n_s_cudaGraphDestroyNode, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__591)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26464, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphDestroyNode, __pyx_t_4) < 0) __PYX_ERR(0, 26464, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":26500 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphInstantiate(graph, unsigned long long flags): * """ Creates an executable graph from a graph. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_475cudaGraphInstantiate, 0, __pyx_n_s_cudaGraphInstantiate, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__592)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26500, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphInstantiate, __pyx_t_4) < 0) __PYX_ERR(0, 26500, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":26599 * return (cudaError_t(err), pGraphExec) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphInstantiateWithFlags(graph, unsigned long long flags): * """ Creates an executable graph from a graph. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_477cudaGraphInstantiateWithFlags, 0, __pyx_n_s_cudaGraphInstantiateWithFlags, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__593)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26599, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphInstantiateWithFlags, __pyx_t_4) < 0) __PYX_ERR(0, 26599, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":26700 * return (cudaError_t(err), pGraphExec) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphInstantiateWithParams(graph, instantiateParams : Optional[cudaGraphInstantiateParams]): * """ Creates an executable graph from a graph. */ __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26700, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_instantiateParams, __pyx_kp_s_Optional_cudaGraphInstantiatePar) < 0) __PYX_ERR(0, 26700, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_479cudaGraphInstantiateWithParams, 0, __pyx_n_s_cudaGraphInstantiateWithParams, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__594)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26700, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphInstantiateWithParams, __pyx_t_2) < 0) __PYX_ERR(0, 26700, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":26842 * return (cudaError_t(err), pGraphExec) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphExecGetFlags(graphExec): * """ Query the instantiation flags of an executable graph. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_481cudaGraphExecGetFlags, 0, __pyx_n_s_cudaGraphExecGetFlags, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__595)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26842, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphExecGetFlags, __pyx_t_2) < 0) __PYX_ERR(0, 26842, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":26880 * return (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_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26880, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_pNodeParams, __pyx_kp_s_Optional_cudaKernelNodeParams) < 0) __PYX_ERR(0, 26880, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_483cudaGraphExecKernelNodeSetParams, 0, __pyx_n_s_cudaGraphExecKernelNodeSetParams, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__596)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26880, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphExecKernelNodeSetParams, __pyx_t_4) < 0) __PYX_ERR(0, 26880, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":26960 * return (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_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26960, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_pNodeParams, __pyx_kp_s_Optional_cudaMemcpy3DParms) < 0) __PYX_ERR(0, 26960, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_485cudaGraphExecMemcpyNodeSetParams, 0, __pyx_n_s_cudaGraphExecMemcpyNodeSetParams, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__597)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26960, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphExecMemcpyNodeSetParams, __pyx_t_2) < 0) __PYX_ERR(0, 26960, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":27023 * return (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_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 27023, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_kind_2, __pyx_n_s_cudaMemcpyKind) < 0) __PYX_ERR(0, 27023, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_487cudaGraphExecMemcpyNodeSetParams1D, 0, __pyx_n_s_cudaGraphExecMemcpyNodeSetParams_2, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__598)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27023, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphExecMemcpyNodeSetParams_2, __pyx_t_4) < 0) __PYX_ERR(0, 27023, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":27094 * return (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_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27094, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_pNodeParams, __pyx_kp_s_Optional_cudaMemsetParams) < 0) __PYX_ERR(0, 27094, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_489cudaGraphExecMemsetNodeSetParams, 0, __pyx_n_s_cudaGraphExecMemsetNodeSetParams, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__599)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 27094, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphExecMemsetNodeSetParams, __pyx_t_2) < 0) __PYX_ERR(0, 27094, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":27162 * return (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_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 27162, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_pNodeParams, __pyx_kp_s_Optional_cudaHostNodeParams) < 0) __PYX_ERR(0, 27162, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_491cudaGraphExecHostNodeSetParams, 0, __pyx_n_s_cudaGraphExecHostNodeSetParams, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__600)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27162, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphExecHostNodeSetParams, __pyx_t_4) < 0) __PYX_ERR(0, 27162, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":27215 * return (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_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_493cudaGraphExecChildGraphNodeSetParams, 0, __pyx_n_s_cudaGraphExecChildGraphNodeSetPa, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__601)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27215, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphExecChildGraphNodeSetPa, __pyx_t_4) < 0) __PYX_ERR(0, 27215, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":27284 * return (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_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_495cudaGraphExecEventRecordNodeSetEvent, 0, __pyx_n_s_cudaGraphExecEventRecordNodeSetE, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__602)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27284, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphExecEventRecordNodeSetE, __pyx_t_4) < 0) __PYX_ERR(0, 27284, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":27346 * return (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_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_497cudaGraphExecEventWaitNodeSetEvent, 0, __pyx_n_s_cudaGraphExecEventWaitNodeSetEve, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__603)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27346, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphExecEventWaitNodeSetEve, __pyx_t_4) < 0) __PYX_ERR(0, 27346, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":27408 * return (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_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27408, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_nodeParams, __pyx_kp_s_Optional_cudaExternalSemaphoreSi) < 0) __PYX_ERR(0, 27408, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_499cudaGraphExecExternalSemaphoresSignalNodeSetParams, 0, __pyx_n_s_cudaGraphExecExternalSemaphoresS, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__604)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 27408, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphExecExternalSemaphoresS, __pyx_t_2) < 0) __PYX_ERR(0, 27408, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":27466 * return (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_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 27466, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_nodeParams, __pyx_kp_s_Optional_cudaExternalSemaphoreWa) < 0) __PYX_ERR(0, 27466, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_501cudaGraphExecExternalSemaphoresWaitNodeSetParams, 0, __pyx_n_s_cudaGraphExecExternalSemaphoresW, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__605)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27466, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphExecExternalSemaphoresW, __pyx_t_4) < 0) __PYX_ERR(0, 27466, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":27524 * return (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_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_503cudaGraphNodeSetEnabled, 0, __pyx_n_s_cudaGraphNodeSetEnabled, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__606)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27524, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphNodeSetEnabled, __pyx_t_4) < 0) __PYX_ERR(0, 27524, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":27585 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphNodeGetEnabled(hGraphExec, hNode): * """ Query whether a node in the given graphExec is enabled. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_505cudaGraphNodeGetEnabled, 0, __pyx_n_s_cudaGraphNodeGetEnabled, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__607)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27585, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphNodeGetEnabled, __pyx_t_4) < 0) __PYX_ERR(0, 27585, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":27640 * return (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_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_507cudaGraphExecUpdate, 0, __pyx_n_s_cudaGraphExecUpdate, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__608)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27640, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphExecUpdate, __pyx_t_4) < 0) __PYX_ERR(0, 27640, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":27812 * return (cudaError_t(err), resultInfo) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphUpload(graphExec, stream): * """ Uploads an executable graph in a stream. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_509cudaGraphUpload, 0, __pyx_n_s_cudaGraphUpload, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__609)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27812, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphUpload, __pyx_t_4) < 0) __PYX_ERR(0, 27812, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":27859 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphLaunch(graphExec, stream): * """ Launches an executable graph in a stream. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_511cudaGraphLaunch, 0, __pyx_n_s_cudaGraphLaunch, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__610)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27859, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphLaunch, __pyx_t_4) < 0) __PYX_ERR(0, 27859, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":27911 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphExecDestroy(graphExec): * """ Destroys an executable graph. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_513cudaGraphExecDestroy, 0, __pyx_n_s_cudaGraphExecDestroy, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__611)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27911, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphExecDestroy, __pyx_t_4) < 0) __PYX_ERR(0, 27911, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":27943 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphDestroy(graph): * """ Destroys a graph. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_515cudaGraphDestroy, 0, __pyx_n_s_cudaGraphDestroy, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__612)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27943, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphDestroy, __pyx_t_4) < 0) __PYX_ERR(0, 27943, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":27975 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphDebugDotPrint(graph, char* path, unsigned int flags): * """ Write a DOT file describing graph structure. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_517cudaGraphDebugDotPrint, 0, __pyx_n_s_cudaGraphDebugDotPrint, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__613)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27975, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphDebugDotPrint, __pyx_t_4) < 0) __PYX_ERR(0, 27975, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":28012 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaUserObjectCreate(ptr, destroy, unsigned int initialRefcount, unsigned int flags): * """ Create a user object. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_519cudaUserObjectCreate, 0, __pyx_n_s_cudaUserObjectCreate, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__614)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28012, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaUserObjectCreate, __pyx_t_4) < 0) __PYX_ERR(0, 28012, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":28069 * return (cudaError_t(err), object_out) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaUserObjectRetain(object, unsigned int count): * """ Retain a reference to a user object. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_521cudaUserObjectRetain, 0, __pyx_n_s_cudaUserObjectRetain, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__615)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28069, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaUserObjectRetain, __pyx_t_4) < 0) __PYX_ERR(0, 28069, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":28108 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaUserObjectRelease(object, unsigned int count): * """ Release a reference to a user object. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_523cudaUserObjectRelease, 0, __pyx_n_s_cudaUserObjectRelease, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__616)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28108, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaUserObjectRelease, __pyx_t_4) < 0) __PYX_ERR(0, 28108, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":28150 * return (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_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_525cudaGraphRetainUserObject, 0, __pyx_n_s_cudaGraphRetainUserObject, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__617)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28150, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphRetainUserObject, __pyx_t_4) < 0) __PYX_ERR(0, 28150, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":28204 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphReleaseUserObject(graph, object, unsigned int count): * """ Release a user object reference from a graph. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_527cudaGraphReleaseUserObject, 0, __pyx_n_s_cudaGraphReleaseUserObject, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__618)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28204, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphReleaseUserObject, __pyx_t_4) < 0) __PYX_ERR(0, 28204, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":28253 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphAddNode(graph, pDependencies : Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], size_t numDependencies, nodeParams : Optional[cudaGraphNodeParams]): * """ Adds a node of arbitrary type to a graph. */ __pyx_t_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28253, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_pDependencies, __pyx_kp_s_Optional_Tuple_cudaGraphNode_t_L) < 0) __PYX_ERR(0, 28253, __pyx_L1_error) if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_nodeParams, __pyx_kp_s_Optional_cudaGraphNodeParams) < 0) __PYX_ERR(0, 28253, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_529cudaGraphAddNode, 0, __pyx_n_s_cudaGraphAddNode, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__619)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28253, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphAddNode, __pyx_t_2) < 0) __PYX_ERR(0, 28253, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":28326 * return (cudaError_t(err), pGraphNode) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphAddNode_v2(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 (12.3+) */ __pyx_t_2 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28326, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_pDependencies, __pyx_kp_s_Optional_Tuple_cudaGraphNode_t_L) < 0) __PYX_ERR(0, 28326, __pyx_L1_error) if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dependencyData, __pyx_kp_s_Optional_Tuple_cudaGraphEdgeData) < 0) __PYX_ERR(0, 28326, __pyx_L1_error) if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_nodeParams, __pyx_kp_s_Optional_cudaGraphNodeParams) < 0) __PYX_ERR(0, 28326, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_531cudaGraphAddNode_v2, 0, __pyx_n_s_cudaGraphAddNode_v2, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__620)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28326, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphAddNode_v2, __pyx_t_4) < 0) __PYX_ERR(0, 28326, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":28415 * return (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, 28415, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_nodeParams, __pyx_kp_s_Optional_cudaGraphNodeParams) < 0) __PYX_ERR(0, 28415, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_533cudaGraphNodeSetParams, 0, __pyx_n_s_cudaGraphNodeSetParams, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__621)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28415, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphNodeSetParams, __pyx_t_2) < 0) __PYX_ERR(0, 28415, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":28456 * return (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_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28456, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_nodeParams, __pyx_kp_s_Optional_cudaGraphNodeParams) < 0) __PYX_ERR(0, 28456, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_535cudaGraphExecNodeSetParams, 0, __pyx_n_s_cudaGraphExecNodeSetParams, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__622)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28456, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphExecNodeSetParams, __pyx_t_4) < 0) __PYX_ERR(0, 28456, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":28514 * return (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_6cudart_537cudaGraphConditionalHandleCreate, 0, __pyx_n_s_cudaGraphConditionalHandleCreate, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__623)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28514, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphConditionalHandleCreate, __pyx_t_4) < 0) __PYX_ERR(0, 28514, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":28559 * return (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_6cudart_539cudaGetDriverEntryPoint, 0, __pyx_n_s_cudaGetDriverEntryPoint, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__624)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28559, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGetDriverEntryPoint, __pyx_t_4) < 0) __PYX_ERR(0, 28559, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":28651 * return (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_6cudart_541cudaGetDriverEntryPointByVersion, 0, __pyx_n_s_cudaGetDriverEntryPointByVersion, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__625)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28651, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGetDriverEntryPointByVersion, __pyx_t_4) < 0) __PYX_ERR(0, 28651, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":28751 * return (cudaError_t(err), funcPtr, cudaDriverEntryPointQueryResult(driverStatus)) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGetExportTable(pExportTableId : Optional[cudaUUID_t]): * """""" */ __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28751, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_pExportTableId, __pyx_kp_s_Optional_cudaUUID_t) < 0) __PYX_ERR(0, 28751, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_543cudaGetExportTable, 0, __pyx_n_s_cudaGetExportTable, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__626)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28751, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGetExportTable, __pyx_t_2) < 0) __PYX_ERR(0, 28751, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":28759 * return (cudaError_t(err), ppExportTable) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGetKernel(entryFuncAddr): * """ Get pointer to device kernel that matches entry function `entryFuncAddr`. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_545cudaGetKernel, 0, __pyx_n_s_cudaGetKernel, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__627)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28759, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGetKernel, __pyx_t_2) < 0) __PYX_ERR(0, 28759, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":28788 * return (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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_547make_cudaPitchedPtr, 0, __pyx_n_s_make_cudaPitchedPtr, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__628)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28788, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_make_cudaPitchedPtr, __pyx_t_2) < 0) __PYX_ERR(0, 28788, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":28824 * 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_549make_cudaPos, 0, __pyx_n_s_make_cudaPos, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__629)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28824, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_make_cudaPos, __pyx_t_2) < 0) __PYX_ERR(0, 28824, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":28856 * 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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_551make_cudaExtent, 0, __pyx_n_s_make_cudaExtent, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__630)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28856, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_make_cudaExtent, __pyx_t_2) < 0) __PYX_ERR(0, 28856, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":28889 * return wrapper * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphicsEGLRegisterImage(image, unsigned int flags): * """ Registers an EGL image. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_553cudaGraphicsEGLRegisterImage, 0, __pyx_n_s_cudaGraphicsEGLRegisterImage, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__631)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28889, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphicsEGLRegisterImage, __pyx_t_2) < 0) __PYX_ERR(0, 28889, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":28960 * return (cudaError_t(err), pCudaResource) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEGLStreamConsumerConnect(eglStream): * """ Connect CUDA to EGLStream as a consumer. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_555cudaEGLStreamConsumerConnect, 0, __pyx_n_s_cudaEGLStreamConsumerConnect, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__632)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28960, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaEGLStreamConsumerConnect, __pyx_t_2) < 0) __PYX_ERR(0, 28960, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":28998 * return (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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_557cudaEGLStreamConsumerConnectWithFlags, 0, __pyx_n_s_cudaEGLStreamConsumerConnectWith, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__633)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28998, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaEGLStreamConsumerConnectWith, __pyx_t_2) < 0) __PYX_ERR(0, 28998, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":29040 * return (cudaError_t(err), conn) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEGLStreamConsumerDisconnect(conn): * """ Disconnect CUDA as a consumer to EGLStream . */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_559cudaEGLStreamConsumerDisconnect, 0, __pyx_n_s_cudaEGLStreamConsumerDisconnect, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__634)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29040, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaEGLStreamConsumerDisconnect, __pyx_t_2) < 0) __PYX_ERR(0, 29040, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":29073 * return (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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_561cudaEGLStreamConsumerAcquireFrame, 0, __pyx_n_s_cudaEGLStreamConsumerAcquireFram, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__635)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29073, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaEGLStreamConsumerAcquireFram, __pyx_t_2) < 0) __PYX_ERR(0, 29073, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":29135 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEGLStreamConsumerReleaseFrame(conn, pCudaResource, pStream): * """ Releases the last frame acquired from the EGLStream. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_563cudaEGLStreamConsumerReleaseFrame, 0, __pyx_n_s_cudaEGLStreamConsumerReleaseFram, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__636)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29135, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaEGLStreamConsumerReleaseFram, __pyx_t_2) < 0) __PYX_ERR(0, 29135, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":29192 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEGLStreamProducerConnect(eglStream, width, height): * """ Connect CUDA to EGLStream as a producer. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_565cudaEGLStreamProducerConnect, 0, __pyx_n_s_cudaEGLStreamProducerConnect, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__637)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29192, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaEGLStreamProducerConnect, __pyx_t_2) < 0) __PYX_ERR(0, 29192, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":29252 * return (cudaError_t(err), conn) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEGLStreamProducerDisconnect(conn): * """ Disconnect CUDA as a producer to EGLStream . */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_567cudaEGLStreamProducerDisconnect, 0, __pyx_n_s_cudaEGLStreamProducerDisconnect, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__638)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29252, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaEGLStreamProducerDisconnect, __pyx_t_2) < 0) __PYX_ERR(0, 29252, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":29285 * return (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_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29285, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_eglframe, __pyx_n_s_cudaEglFrame) < 0) __PYX_ERR(0, 29285, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_569cudaEGLStreamProducerPresentFrame, 0, __pyx_n_s_cudaEGLStreamProducerPresentFram, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__639)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29285, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaEGLStreamProducerPresentFram, __pyx_t_4) < 0) __PYX_ERR(0, 29285, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":29341 * return (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_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29341, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_eglframe, __pyx_kp_s_Optional_cudaEglFrame) < 0) __PYX_ERR(0, 29341, __pyx_L1_error) __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_571cudaEGLStreamProducerReturnFrame, 0, __pyx_n_s_cudaEGLStreamProducerReturnFrame, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__640)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29341, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaEGLStreamProducerReturnFrame, __pyx_t_2) < 0) __PYX_ERR(0, 29341, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":29392 * return (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_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_573cudaGraphicsResourceGetMappedEglFrame, 0, __pyx_n_s_cudaGraphicsResourceGetMappedEgl, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__641)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29392, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphicsResourceGetMappedEgl, __pyx_t_2) < 0) __PYX_ERR(0, 29392, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":29441 * return (cudaError_t(err), eglFrame) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaEventCreateFromEGLSync(eglSync, unsigned int flags): * """ Creates an event from EGLSync object. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_575cudaEventCreateFromEGLSync, 0, __pyx_n_s_cudaEventCreateFromEGLSync, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__642)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29441, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaEventCreateFromEGLSync, __pyx_t_2) < 0) __PYX_ERR(0, 29441, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":29492 * return (cudaError_t(err), phEvent) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaProfilerStart(): * """ Enable profiling. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_577cudaProfilerStart, 0, __pyx_n_s_cudaProfilerStart, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__643)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29492, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaProfilerStart, __pyx_t_2) < 0) __PYX_ERR(0, 29492, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":29516 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaProfilerStop(): * """ Disable profiling. */ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_579cudaProfilerStop, 0, __pyx_n_s_cudaProfilerStop, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__644)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29516, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaProfilerStop, __pyx_t_2) < 0) __PYX_ERR(0, 29516, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "cuda/cudart.pyx":29540 * return (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_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29540, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_deviceList, __pyx_n_s_cudaGLDeviceList) < 0) __PYX_ERR(0, 29540, __pyx_L1_error) __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_581cudaGLGetDevices, 0, __pyx_n_s_cudaGLGetDevices, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__645)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29540, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGLGetDevices, __pyx_t_4) < 0) __PYX_ERR(0, 29540, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":29602 * return (cudaError_t(err), pCudaDeviceCount, pypCudaDevices) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphicsGLRegisterImage(image, target, unsigned int flags): * """ Register an OpenGL texture or renderbuffer object. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_583cudaGraphicsGLRegisterImage, 0, __pyx_n_s_cudaGraphicsGLRegisterImage, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__646)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29602, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphicsGLRegisterImage, __pyx_t_4) < 0) __PYX_ERR(0, 29602, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":29698 * return (cudaError_t(err), resource) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphicsGLRegisterBuffer(buffer, unsigned int flags): * """ Registers an OpenGL buffer object. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_585cudaGraphicsGLRegisterBuffer, 0, __pyx_n_s_cudaGraphicsGLRegisterBuffer, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__647)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29698, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphicsGLRegisterBuffer, __pyx_t_4) < 0) __PYX_ERR(0, 29698, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":29750 * return (cudaError_t(err), resource) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaVDPAUGetDevice(vdpDevice, vdpGetProcAddress): * """ Gets the CUDA device associated with a VdpDevice. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_587cudaVDPAUGetDevice, 0, __pyx_n_s_cudaVDPAUGetDevice, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__648)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29750, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaVDPAUGetDevice, __pyx_t_4) < 0) __PYX_ERR(0, 29750, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":29798 * return (cudaError_t(err), device) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaVDPAUSetVDPAUDevice(int device, vdpDevice, vdpGetProcAddress): * """ Sets a CUDA device to use VDPAU interoperability. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_589cudaVDPAUSetVDPAUDevice, 0, __pyx_n_s_cudaVDPAUSetVDPAUDevice, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__649)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29798, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaVDPAUSetVDPAUDevice, __pyx_t_4) < 0) __PYX_ERR(0, 29798, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":29854 * return (cudaError_t(err),) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphicsVDPAURegisterVideoSurface(vdpSurface, unsigned int flags): * """ Register a VdpVideoSurface object. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_591cudaGraphicsVDPAURegisterVideoSurface, 0, __pyx_n_s_cudaGraphicsVDPAURegisterVideoSu, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__650)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29854, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphicsVDPAURegisterVideoSu, __pyx_t_4) < 0) __PYX_ERR(0, 29854, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":29906 * return (cudaError_t(err), resource) * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def cudaGraphicsVDPAURegisterOutputSurface(vdpSurface, unsigned int flags): * """ Register a VdpOutputSurface object. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_593cudaGraphicsVDPAURegisterOutputSurface, 0, __pyx_n_s_cudaGraphicsVDPAURegisterOutputS, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__651)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29906, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_cudaGraphicsVDPAURegisterOutputS, __pyx_t_4) < 0) __PYX_ERR(0, 29906, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":29959 * * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def getLocalRuntimeVersion(): * """ Returns the CUDA Runtime version of local shared library. */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_595getLocalRuntimeVersion, 0, __pyx_n_s_getLocalRuntimeVersion, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__652)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29959, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_getLocalRuntimeVersion, __pyx_t_4) < 0) __PYX_ERR(0, 29959, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":29990 * * * @cython.embedsignature(True) # <<<<<<<<<<<<<< * def sizeof(objType): * """ Returns the size of provided CUDA Python structure in bytes */ __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_6cudart_597sizeof, 0, __pyx_n_s_sizeof, NULL, __pyx_n_s_cuda_cudart, __pyx_d, ((PyObject *)__pyx_codeobj__653)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29990, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_sizeof, __pyx_t_4) < 0) __PYX_ERR(0, 29990, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "cuda/cudart.pyx":1 * # Copyright 2021-2024 NVIDIA Corporation. All rights reserved. # <<<<<<<<<<<<<< * # * # Please refer to the NVIDIA end user license agreement (EULA) associated */ __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_t_4, __pyx_kp_u_cudaSetDevice_line_14584, __pyx_kp_u_Set_device_to_be_used_for_GPU_e) < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_4) < 0) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_TraceReturn(Py_None, 0); /*--- Wrapped vars code ---*/ goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); if (__pyx_m) { if (__pyx_d && stringtab_initialized) { __Pyx_AddTraceback("init cuda.cudart", __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.cudart"); } __pyx_L0:; __Pyx_RefNannyFinishContext(); #if CYTHON_PEP489_MULTI_PHASE_INIT return (__pyx_m != NULL) ? 0 : -1; #elif PY_MAJOR_VERSION >= 3 return __pyx_m; #else return; #endif } /* #### 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 */ #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); #if PY_MAJOR_VERSION >= 3 for (i=0; i= 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 */ #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 */ #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); #if PY_MAJOR_VERSION < 3 if (likely(tp->tp_getattr)) return tp->tp_getattr(obj, PyString_AS_STRING(attr_name)); #endif return PyObject_GetAttr(obj, attr_name); } #endif /* PyObjectGetAttrStrNoError */ #if __PYX_LIMITED_VERSION_HEX < 0x030d00A1 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 >= 0x030d00A1 (void) PyObject_GetOptionalAttr(obj, attr_name, &result); return result; #else #if CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_TYPE_SLOTS && PY_VERSION_HEX >= 0x030700B1 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_b, name); if (unlikely(!result) && !PyErr_Occurred()) { PyErr_Format(PyExc_NameError, #if PY_MAJOR_VERSION >= 3 "name '%U' is not defined", name); #else "name '%.200s' is not defined", PyString_AS_STRING(name)); #endif } return result; } /* Profile */ #if CYTHON_PROFILE static int __Pyx_TraceSetupAndCall(PyCodeObject** code, PyFrameObject** frame, PyThreadState* tstate, const char *funcname, const char *srcfile, int firstlineno) { PyObject *type, *value, *traceback; int retval; if (*frame == NULL || !CYTHON_PROFILE_REUSE_FRAME) { if (*code == NULL) { *code = __Pyx_createFrameCodeObject(funcname, srcfile, firstlineno); if (*code == NULL) return 0; } *frame = PyFrame_New( tstate, /*PyThreadState *tstate*/ *code, /*PyCodeObject *code*/ __pyx_d, /*PyObject *globals*/ 0 /*PyObject *locals*/ ); if (*frame == NULL) return 0; if (CYTHON_TRACE && (*frame)->f_trace == NULL) { Py_INCREF(Py_None); (*frame)->f_trace = Py_None; } #if PY_VERSION_HEX < 0x030400B1 } else { (*frame)->f_tstate = tstate; #endif } __Pyx_PyFrame_SetLineNumber(*frame, firstlineno); retval = 1; __Pyx_EnterTracing(tstate); __Pyx_ErrFetchInState(tstate, &type, &value, &traceback); #if CYTHON_TRACE if (tstate->c_tracefunc) retval = tstate->c_tracefunc(tstate->c_traceobj, *frame, PyTrace_CALL, NULL) == 0; if (retval && tstate->c_profilefunc) #endif retval = tstate->c_profilefunc(tstate->c_profileobj, *frame, PyTrace_CALL, NULL) == 0; __Pyx_LeaveTracing(tstate); if (retval) { __Pyx_ErrRestoreInState(tstate, type, value, traceback); return __Pyx_IsTracing(tstate, 0, 0) && retval; } else { Py_XDECREF(type); Py_XDECREF(value); Py_XDECREF(traceback); return -1; } } static PyCodeObject *__Pyx_createFrameCodeObject(const char *funcname, const char *srcfile, int firstlineno) { PyCodeObject *py_code = 0; #if PY_MAJOR_VERSION >= 3 py_code = PyCode_NewEmpty(srcfile, funcname, firstlineno); if (likely(py_code)) { py_code->co_flags |= CO_OPTIMIZED | CO_NEWLOCALS; } #else PyObject *py_srcfile = 0; PyObject *py_funcname = 0; py_funcname = PyString_FromString(funcname); if (unlikely(!py_funcname)) goto bad; py_srcfile = PyString_FromString(srcfile); if (unlikely(!py_srcfile)) goto bad; py_code = PyCode_New( 0, 0, 0, CO_OPTIMIZED | CO_NEWLOCALS, __pyx_empty_bytes, /*PyObject *code,*/ __pyx_empty_tuple, /*PyObject *consts,*/ __pyx_empty_tuple, /*PyObject *names,*/ __pyx_empty_tuple, /*PyObject *varnames,*/ __pyx_empty_tuple, /*PyObject *freevars,*/ __pyx_empty_tuple, /*PyObject *cellvars,*/ py_srcfile, /*PyObject *filename,*/ py_funcname, /*PyObject *name,*/ firstlineno, __pyx_empty_bytes /*PyObject *lnotab*/ ); bad: Py_XDECREF(py_srcfile); Py_XDECREF(py_funcname); #endif return py_code; } #endif /* GetTopmostException */ #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); } #if PY_MAJOR_VERSION == 2 static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject* exc_type2) { PyObject *exception, *value, *tb; int res; __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ErrFetch(&exception, &value, &tb); res = exc_type1 ? PyObject_IsSubclass(err, exc_type1) : 0; if (unlikely(res == -1)) { PyErr_WriteUnraisable(err); res = 0; } if (!res) { res = PyObject_IsSubclass(err, exc_type2); if (unlikely(res == -1)) { PyErr_WriteUnraisable(err); res = 0; } } __Pyx_ErrRestore(exception, value, tb); return res; } #else 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); } } #endif 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); #if PY_MAJOR_VERSION >= 3 for (i=0; iob_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 */ static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals) { #if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API 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 */ static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals) { #if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API return PyObject_RichCompareBool(s1, s2, equals); #else #if PY_MAJOR_VERSION < 3 PyObject* owned_ref = NULL; #endif 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 PY_MAJOR_VERSION < 3 if ((s1_is_unicode & (!s2_is_unicode)) && PyString_CheckExact(s2)) { owned_ref = PyUnicode_FromObject(s2); if (unlikely(!owned_ref)) return -1; s2 = owned_ref; s2_is_unicode = 1; } else if ((s2_is_unicode & (!s1_is_unicode)) && PyString_CheckExact(s1)) { owned_ref = PyUnicode_FromObject(s1); if (unlikely(!owned_ref)) return -1; s1 = owned_ref; s1_is_unicode = 1; } else if (((!s2_is_unicode) & (!s1_is_unicode))) { return __Pyx_PyBytes_Equals(s1, s2, equals); } #endif if (s1_is_unicode & s2_is_unicode) { Py_ssize_t length; int kind; void *data1, *data2; if (unlikely(__Pyx_PyUnicode_READY(s1) < 0) || unlikely(__Pyx_PyUnicode_READY(s2) < 0)) return -1; length = __Pyx_PyUnicode_GET_LENGTH(s1); if (length != __Pyx_PyUnicode_GET_LENGTH(s2)) { goto return_ne; } #if CYTHON_USE_UNICODE_INTERNALS { Py_hash_t hash1, hash2; #if CYTHON_PEP393_ENABLED hash1 = ((PyASCIIObject*)s1)->hash; hash2 = ((PyASCIIObject*)s2)->hash; #else hash1 = ((PyUnicodeObject*)s1)->hash; hash2 = ((PyUnicodeObject*)s2)->hash; #endif 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)); #if PY_MAJOR_VERSION < 3 Py_XDECREF(owned_ref); #endif 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_MAJOR_VERSION < 3 Py_XDECREF(owned_ref); #endif if (!py_result) return -1; result = __Pyx_PyObject_IsTrue(py_result); Py_DECREF(py_result); return result; } return_eq: #if PY_MAJOR_VERSION < 3 Py_XDECREF(owned_ref); #endif return (equals == Py_EQ); return_ne: #if PY_MAJOR_VERSION < 3 Py_XDECREF(owned_ref); #endif 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 = PyTuple_GET_SIZE(kwnames); for (i = 0; i < n; i++) { if (s == PyTuple_GET_ITEM(kwnames, i)) return kwvalues[i]; } for (i = 0; i < n; i++) { int eq = __Pyx_PyUnicode_Equals(s, PyTuple_GET_ITEM(kwnames, i), 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_UNUSED static PyObject *__Pyx_KwargsAsDict_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues) { Py_ssize_t i, nkwargs = PyTuple_GET_SIZE(kwnames); PyObject *dict; dict = PyDict_New(); if (unlikely(!dict)) return NULL; for (i=0; i= 3 "%s() got multiple values for keyword argument '%U'", func_name, kw_name); #else "%s() got multiple values for keyword argument '%s'", func_name, PyString_AsString(kw_name)); #endif } /* ParseKeywords */ static int __Pyx_ParseOptionalKeywords( PyObject *kwds, PyObject *const *kwvalues, PyObject **argnames[], PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args, const char* function_name) { PyObject *key = 0, *value = 0; Py_ssize_t pos = 0; PyObject*** name; PyObject*** first_kw_arg = argnames + num_pos_args; int kwds_is_tuple = CYTHON_METH_FASTCALL && likely(PyTuple_Check(kwds)); while (1) { Py_XDECREF(key); key = NULL; Py_XDECREF(value); value = NULL; if (kwds_is_tuple) { Py_ssize_t size; #if CYTHON_ASSUME_SAFE_MACROS size = PyTuple_GET_SIZE(kwds); #else size = PyTuple_Size(kwds); if (size < 0) goto bad; #endif if (pos >= size) break; #if CYTHON_AVOID_BORROWED_REFS key = __Pyx_PySequence_ITEM(kwds, pos); if (!key) goto bad; #elif CYTHON_ASSUME_SAFE_MACROS key = PyTuple_GET_ITEM(kwds, pos); #else key = PyTuple_GetItem(kwds, pos); if (!key) goto bad; #endif value = kwvalues[pos]; pos++; } else { if (!PyDict_Next(kwds, &pos, &key, &value)) break; #if CYTHON_AVOID_BORROWED_REFS Py_INCREF(key); #endif } name = first_kw_arg; while (*name && (**name != key)) name++; if (*name) { values[name-argnames] = value; #if CYTHON_AVOID_BORROWED_REFS Py_INCREF(value); Py_DECREF(key); #endif key = NULL; value = NULL; continue; } #if !CYTHON_AVOID_BORROWED_REFS Py_INCREF(key); #endif Py_INCREF(value); name = first_kw_arg; #if PY_MAJOR_VERSION < 3 if (likely(PyString_Check(key))) { while (*name) { if ((CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**name) == PyString_GET_SIZE(key)) && _PyString_Eq(**name, key)) { values[name-argnames] = value; #if CYTHON_AVOID_BORROWED_REFS value = NULL; #endif break; } name++; } if (*name) continue; else { PyObject*** argname = argnames; while (argname != first_kw_arg) { if ((**argname == key) || ( (CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**argname) == PyString_GET_SIZE(key)) && _PyString_Eq(**argname, key))) { goto arg_passed_twice; } argname++; } } } else #endif if (likely(PyUnicode_Check(key))) { while (*name) { int cmp = ( #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3 (__Pyx_PyUnicode_GET_LENGTH(**name) != __Pyx_PyUnicode_GET_LENGTH(key)) ? 1 : #endif PyUnicode_Compare(**name, key) ); if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad; if (cmp == 0) { values[name-argnames] = value; #if CYTHON_AVOID_BORROWED_REFS value = NULL; #endif break; } name++; } if (*name) continue; else { PyObject*** argname = argnames; while (argname != first_kw_arg) { int cmp = (**argname == key) ? 0 : #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3 (__Pyx_PyUnicode_GET_LENGTH(**argname) != __Pyx_PyUnicode_GET_LENGTH(key)) ? 1 : #endif PyUnicode_Compare(**argname, key); if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad; if (cmp == 0) goto arg_passed_twice; argname++; } } } else goto invalid_keyword_type; if (kwds2) { if (unlikely(PyDict_SetItem(kwds2, key, value))) goto bad; } else { goto invalid_keyword; } } Py_XDECREF(key); Py_XDECREF(value); 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; invalid_keyword: #if PY_MAJOR_VERSION < 3 PyErr_Format(PyExc_TypeError, "%.200s() got an unexpected keyword argument '%.200s'", function_name, PyString_AsString(key)); #else PyErr_Format(PyExc_TypeError, "%s() got an unexpected keyword argument '%U'", function_name, key); #endif bad: Py_XDECREF(key); Py_XDECREF(value); return -1; } /* 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); } /* KeywordStringCheck */ static int __Pyx_CheckKeywordStrings( PyObject *kw, const char* function_name, int kw_allowed) { PyObject* key = 0; Py_ssize_t pos = 0; #if CYTHON_COMPILING_IN_PYPY if (!kw_allowed && PyDict_Next(kw, &pos, &key, 0)) goto invalid_keyword; return 1; #else if (CYTHON_METH_FASTCALL && likely(PyTuple_Check(kw))) { Py_ssize_t kwsize; #if CYTHON_ASSUME_SAFE_MACROS kwsize = PyTuple_GET_SIZE(kw); #else kwsize = PyTuple_Size(kw); if (kwsize < 0) return 0; #endif if (unlikely(kwsize == 0)) return 1; if (!kw_allowed) { #if CYTHON_ASSUME_SAFE_MACROS key = PyTuple_GET_ITEM(kw, 0); #else key = PyTuple_GetItem(kw, pos); if (!key) return 0; #endif goto invalid_keyword; } #if PY_VERSION_HEX < 0x03090000 for (pos = 0; pos < kwsize; pos++) { #if CYTHON_ASSUME_SAFE_MACROS key = PyTuple_GET_ITEM(kw, pos); #else key = PyTuple_GetItem(kw, pos); if (!key) return 0; #endif if (unlikely(!PyUnicode_Check(key))) goto invalid_keyword_type; } #endif return 1; } while (PyDict_Next(kw, &pos, &key, 0)) { #if PY_MAJOR_VERSION < 3 if (unlikely(!PyString_Check(key))) #endif if (unlikely(!PyUnicode_Check(key))) goto invalid_keyword_type; } if (!kw_allowed && unlikely(key)) goto invalid_keyword; return 1; invalid_keyword_type: PyErr_Format(PyExc_TypeError, "%.200s() keywords must be strings", function_name); return 0; #endif invalid_keyword: #if PY_MAJOR_VERSION < 3 PyErr_Format(PyExc_TypeError, "%.200s() got an unexpected keyword argument '%.200s'", function_name, PyString_AsString(key)); #else PyErr_Format(PyExc_TypeError, "%s() got an unexpected keyword argument '%U'", function_name, key); #endif return 0; } /* PyFunctionFastCall */ #if CYTHON_FAST_PYCALL && !CYTHON_VECTORCALL static PyObject* __Pyx_PyFunction_FastCallNoKw(PyCodeObject *co, PyObject **args, Py_ssize_t na, PyObject *globals) { PyFrameObject *f; PyThreadState *tstate = __Pyx_PyThreadState_Current; PyObject **fastlocals; Py_ssize_t i; PyObject *result; assert(globals != NULL); /* XXX Perhaps we should create a specialized PyFrame_New() that doesn't take locals, but does take builtins without sanity checking them. */ assert(tstate != NULL); f = PyFrame_New(tstate, co, globals, NULL); if (f == NULL) { return NULL; } fastlocals = __Pyx_PyFrame_GetLocalsplus(f); for (i = 0; i < na; i++) { Py_INCREF(*args); fastlocals[i] = *args++; } result = PyEval_EvalFrameEx(f,0); ++tstate->recursion_depth; Py_DECREF(f); --tstate->recursion_depth; return result; } static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs) { PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func); PyObject *globals = PyFunction_GET_GLOBALS(func); PyObject *argdefs = PyFunction_GET_DEFAULTS(func); PyObject *closure; #if PY_MAJOR_VERSION >= 3 PyObject *kwdefs; #endif PyObject *kwtuple, **k; PyObject **d; Py_ssize_t nd; Py_ssize_t nk; PyObject *result; assert(kwargs == NULL || PyDict_Check(kwargs)); nk = kwargs ? PyDict_Size(kwargs) : 0; #if PY_MAJOR_VERSION < 3 if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))) { return NULL; } #else if (unlikely(Py_EnterRecursiveCall(" while calling a Python object"))) { return NULL; } #endif if ( #if PY_MAJOR_VERSION >= 3 co->co_kwonlyargcount == 0 && #endif likely(kwargs == NULL || nk == 0) && co->co_flags == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE)) { if (argdefs == NULL && co->co_argcount == nargs) { result = __Pyx_PyFunction_FastCallNoKw(co, args, nargs, globals); goto done; } else if (nargs == 0 && argdefs != NULL && co->co_argcount == Py_SIZE(argdefs)) { /* function called with no arguments, but all parameters have a default value: use default values as arguments .*/ args = &PyTuple_GET_ITEM(argdefs, 0); result =__Pyx_PyFunction_FastCallNoKw(co, args, Py_SIZE(argdefs), globals); goto done; } } if (kwargs != NULL) { Py_ssize_t pos, i; kwtuple = PyTuple_New(2 * nk); if (kwtuple == NULL) { result = NULL; goto done; } k = &PyTuple_GET_ITEM(kwtuple, 0); pos = i = 0; while (PyDict_Next(kwargs, &pos, &k[i], &k[i+1])) { Py_INCREF(k[i]); Py_INCREF(k[i+1]); i += 2; } nk = i / 2; } else { kwtuple = NULL; k = NULL; } closure = PyFunction_GET_CLOSURE(func); #if PY_MAJOR_VERSION >= 3 kwdefs = PyFunction_GET_KW_DEFAULTS(func); #endif if (argdefs != NULL) { d = &PyTuple_GET_ITEM(argdefs, 0); nd = Py_SIZE(argdefs); } else { d = NULL; nd = 0; } #if PY_MAJOR_VERSION >= 3 result = PyEval_EvalCodeEx((PyObject*)co, globals, (PyObject *)NULL, args, (int)nargs, k, (int)nk, d, (int)nd, kwdefs, closure); #else result = PyEval_EvalCodeEx(co, globals, (PyObject *)NULL, args, (int)nargs, k, (int)nk, d, (int)nd, closure); #endif Py_XDECREF(kwtuple); done: Py_LeaveRecursiveCall(); return result; } #endif /* PyObjectCall */ #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 PY_MAJOR_VERSION < 3 if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))) return NULL; #else if (unlikely(Py_EnterRecursiveCall(" while calling a Python object"))) return NULL; #endif 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 */ #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 PY_MAJOR_VERSION < 3 if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))) return NULL; #else if (unlikely(Py_EnterRecursiveCall(" while calling a Python object"))) return NULL; #endif result = cfunc(self, arg); Py_LeaveRecursiveCall(); if (unlikely(!result) && unlikely(!PyErr_Occurred())) { PyErr_SetString( PyExc_SystemError, "NULL result without error in PyObject_Call"); } return result; } #endif /* PyObjectFastCall */ #if PY_VERSION_HEX < 0x03090000 || CYTHON_COMPILING_IN_LIMITED_API static PyObject* __Pyx_PyObject_FastCall_fallback(PyObject *func, PyObject **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 static CYTHON_INLINE PyObject* __Pyx_PyObject_FastCallDict(PyObject *func, PyObject **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 PY_VERSION_HEX < 0x030800B1 #if CYTHON_FAST_PYCCALL if (PyCFunction_Check(func)) { if (kwargs) { return _PyCFunction_FastCallDict(func, args, nargs, kwargs); } else { return _PyCFunction_FastCallKeywords(func, args, nargs, NULL); } } #if PY_VERSION_HEX >= 0x030700A1 if (!kwargs && __Pyx_IS_TYPE(func, &PyMethodDescr_Type)) { return _PyMethodDescr_FastCallKeywords(func, args, nargs, NULL); } #endif #endif #if CYTHON_FAST_PYCALL if (PyFunction_Check(func)) { return __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs); } #endif #endif if (kwargs == NULL) { #if CYTHON_VECTORCALL #if PY_VERSION_HEX < 0x03090000 vectorcallfunc f = _PyVectorcall_Function(func); #else vectorcallfunc f = PyVectorcall_Function(func); #endif if (f) { return f(func, args, (size_t)nargs, NULL); } #elif defined(__Pyx_CyFunction_USED) && CYTHON_BACKPORT_VECTORCALL if (__Pyx_CyFunction_CheckExact(func)) { __pyx_vectorcallfunc f = __Pyx_CyFunction_func_vectorcall(func); if (f) return f(func, args, (size_t)nargs, NULL); } #endif } if (nargs == 0) { return __Pyx_PyObject_Call(func, __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 } /* PyObjectCallOneArg */ 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); } /* UnicodeConcatInPlace */ # if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3 static int __Pyx_unicode_modifiable(PyObject *unicode) { if (Py_REFCNT(unicode) != 1) return 0; 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 #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) && 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 /* RaiseException */ #if PY_MAJOR_VERSION < 3 static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause) { __Pyx_PyThreadState_declare CYTHON_UNUSED_VAR(cause); Py_XINCREF(type); if (!value || value == Py_None) value = NULL; else Py_INCREF(value); if (!tb || tb == Py_None) tb = NULL; else { Py_INCREF(tb); if (!PyTraceBack_Check(tb)) { PyErr_SetString(PyExc_TypeError, "raise: arg 3 must be a traceback or None"); goto raise_error; } } if (PyType_Check(type)) { #if CYTHON_COMPILING_IN_PYPY if (!value) { Py_INCREF(Py_None); value = Py_None; } #endif PyErr_NormalizeException(&type, &value, &tb); } else { if (value) { PyErr_SetString(PyExc_TypeError, "instance exception may not have a separate value"); goto raise_error; } value = type; type = (PyObject*) Py_TYPE(type); Py_INCREF(type); if (!PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)PyExc_BaseException)) { PyErr_SetString(PyExc_TypeError, "raise: exception class must be a subclass of BaseException"); goto raise_error; } } __Pyx_PyThreadState_assign __Pyx_ErrRestore(type, value, tb); return; raise_error: Py_XDECREF(value); Py_XDECREF(type); Py_XDECREF(tb); return; } #else 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; } #endif /* WriteUnraisableException */ static void __Pyx_WriteUnraisable(const char *name, int clineno, int lineno, const char *filename, int full_traceback, int nogil) { PyObject *old_exc, *old_val, *old_tb; PyObject *ctx; __Pyx_PyThreadState_declare #ifdef WITH_THREAD PyGILState_STATE state; if (nogil) state = PyGILState_Ensure(); else state = (PyGILState_STATE)0; #endif CYTHON_UNUSED_VAR(clineno); CYTHON_UNUSED_VAR(lineno); CYTHON_UNUSED_VAR(filename); CYTHON_MAYBE_UNUSED_VAR(nogil); __Pyx_PyThreadState_assign __Pyx_ErrFetch(&old_exc, &old_val, &old_tb); if (full_traceback) { Py_XINCREF(old_exc); Py_XINCREF(old_val); Py_XINCREF(old_tb); __Pyx_ErrRestore(old_exc, old_val, old_tb); PyErr_PrintEx(0); } #if PY_MAJOR_VERSION < 3 ctx = PyString_FromString(name); #else ctx = PyUnicode_FromString(name); #endif __Pyx_ErrRestore(old_exc, old_val, old_tb); if (!ctx) { PyErr_WriteUnraisable(Py_None); } else { PyErr_WriteUnraisable(ctx); Py_DECREF(ctx); } #ifdef WITH_THREAD if (nogil) PyGILState_Release(state); #endif } /* GetException */ #if CYTHON_FAST_THREAD_STATE static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) #else static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb) #endif { PyObject *local_type = NULL, *local_value, *local_tb = NULL; #if CYTHON_FAST_THREAD_STATE PyObject *tmp_type, *tmp_value, *tmp_tb; #if PY_VERSION_HEX >= 0x030C00A6 local_value = tstate->current_exception; tstate->current_exception = 0; if (likely(local_value)) { local_type = (PyObject*) Py_TYPE(local_value); Py_INCREF(local_type); local_tb = PyException_GetTraceback(local_value); } #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 #else PyErr_Fetch(&local_type, &local_value, &local_tb); #endif PyErr_NormalizeException(&local_type, &local_value, &local_tb); #if CYTHON_FAST_THREAD_STATE && PY_VERSION_HEX >= 0x030C00A6 if (unlikely(tstate->current_exception)) #elif CYTHON_FAST_THREAD_STATE if (unlikely(tstate->curexc_type)) #else if (unlikely(PyErr_Occurred())) #endif goto bad; #if PY_MAJOR_VERSION >= 3 if (local_tb) { if (unlikely(PyException_SetTraceback(local_value, local_tb) < 0)) goto bad; } #endif 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); #else PyErr_SetExcInfo(local_type, local_value, local_tb); #endif return 0; bad: *type = 0; *value = 0; *tb = 0; Py_XDECREF(local_type); Py_XDECREF(local_value); Py_XDECREF(local_tb); return -1; } /* PyDictVersioning */ #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_AVOID_BORROWED_REFS #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1 && PY_VERSION_HEX < 0x030d0000 result = _PyDict_GetItem_KnownHash(__pyx_d, name, ((PyASCIIObject *) name)->hash); __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version) if (likely(result)) { return __Pyx_NewRef(result); } else if (unlikely(PyErr_Occurred())) { return NULL; } #elif CYTHON_COMPILING_IN_LIMITED_API if (unlikely(!__pyx_m)) { return NULL; } result = PyObject_GetAttr(__pyx_m, name); if (likely(result)) { return result; } #else result = PyDict_GetItem(__pyx_d, name); __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version) if (likely(result)) { return __Pyx_NewRef(result); } #endif #else result = PyObject_GetItem(__pyx_d, name); __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version) if (likely(result)) { return __Pyx_NewRef(result); } PyErr_Clear(); #endif return __Pyx_GetBuiltinName(name); } /* ArgTypeTest */ static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact) { __Pyx_TypeName type_name; __Pyx_TypeName obj_type_name; if (unlikely(!type)) { PyErr_SetString(PyExc_SystemError, "Missing type object"); return 0; } else if (exact) { #if PY_MAJOR_VERSION == 2 if ((type == &PyBaseString_Type) && likely(__Pyx_PyBaseString_CheckExact(obj))) return 1; #endif } else { if (likely(__Pyx_TypeCheck(obj, type))) return 1; } type_name = __Pyx_PyType_GetName(type); obj_type_name = __Pyx_PyType_GetName(Py_TYPE(obj)); PyErr_Format(PyExc_TypeError, "Argument '%.200s' has incorrect type (expected " __Pyx_FMT_TYPENAME ", got " __Pyx_FMT_TYPENAME ")", name, type_name, obj_type_name); __Pyx_DECREF_TypeName(type_name); __Pyx_DECREF_TypeName(obj_type_name); return 0; } /* PyIntBinop */ #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) { CYTHON_MAYBE_UNUSED_VAR(intval); CYTHON_MAYBE_UNUSED_VAR(inplace); CYTHON_UNUSED_VAR(zerodivision_check); #if PY_MAJOR_VERSION < 3 if (likely(PyInt_CheckExact(op1))) { const long b = intval; long x; long a = PyInt_AS_LONG(op1); x = (long)((unsigned long)a + (unsigned long)b); if (likely((x^a) >= 0 || (x^b) >= 0)) return PyInt_FromLong(x); return PyLong_Type.tp_as_number->nb_add(op1, op2); } #endif #if CYTHON_USE_PYLONG_INTERNALS if (likely(PyLong_CheckExact(op1))) { const long b = intval; long a, x; #ifdef HAVE_LONG_LONG const PY_LONG_LONG llb = intval; PY_LONG_LONG lla, llx; #endif if (unlikely(__Pyx_PyLong_IsZero(op1))) { return __Pyx_NewRef(op2); } if (likely(__Pyx_PyLong_IsCompact(op1))) { a = __Pyx_PyLong_CompactValue(op1); } else { const digit* digits = __Pyx_PyLong_Digits(op1); const Py_ssize_t size = __Pyx_PyLong_SignedDigitCount(op1); switch (size) { case -2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_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])); goto long_long; #endif } CYTHON_FALLTHROUGH; case 2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_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])); goto long_long; #endif } CYTHON_FALLTHROUGH; 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])); break; #ifdef HAVE_LONG_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])); goto long_long; #endif } CYTHON_FALLTHROUGH; 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])); break; #ifdef HAVE_LONG_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])); goto long_long; #endif } CYTHON_FALLTHROUGH; 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])); break; #ifdef HAVE_LONG_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])); goto long_long; #endif } CYTHON_FALLTHROUGH; 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])); break; #ifdef HAVE_LONG_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])); goto long_long; #endif } CYTHON_FALLTHROUGH; default: return PyLong_Type.tp_as_number->nb_add(op1, op2); } } x = a + b; return PyLong_FromLong(x); #ifdef HAVE_LONG_LONG long_long: llx = lla + llb; return PyLong_FromLongLong(llx); #endif } #endif if (PyFloat_CheckExact(op1)) { const long b = intval; #if CYTHON_COMPILING_IN_LIMITED_API double a = __pyx_PyFloat_AsDouble(op1); #else double a = PyFloat_AS_DOUBLE(op1); #endif double result; PyFPE_START_PROTECT("add", return NULL) result = ((double)a) + (double)b; PyFPE_END_PROTECT(result) return PyFloat_FromDouble(result); } return (inplace ? PyNumber_InPlaceAdd : PyNumber_Add)(op1, op2); } #endif /* 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, CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS Py_ssize_t wrapped_i = i; if (wraparound & unlikely(i < 0)) { wrapped_i += PyList_GET_SIZE(o); } if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyList_GET_SIZE(o)))) { PyObject *r = PyList_GET_ITEM(o, wrapped_i); Py_INCREF(r); return r; } return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); #else return PySequence_GetItem(o, i); #endif } static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i, CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { #if 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)))) { PyObject *r = PyTuple_GET_ITEM(o, wrapped_i); Py_INCREF(r); return r; } return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); #else return PySequence_GetItem(o, i); #endif } static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list, CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS && CYTHON_USE_TYPE_SLOTS if (is_list || PyList_CheckExact(o)) { Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyList_GET_SIZE(o); if ((!boundscheck) || (likely(__Pyx_is_valid_index(n, PyList_GET_SIZE(o))))) { PyObject *r = PyList_GET_ITEM(o, n); Py_INCREF(r); return r; } } else 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)))) { PyObject *r = PyTuple_GET_ITEM(o, n); Py_INCREF(r); return r; } } else { PyMappingMethods *mm = Py_TYPE(o)->tp_as_mapping; PySequenceMethods *sm = Py_TYPE(o)->tp_as_sequence; if (mm && mm->mp_subscript) { PyObject *r, *key = PyInt_FromSsize_t(i); if (unlikely(!key)) return NULL; r = mm->mp_subscript(o, key); Py_DECREF(key); return r; } if (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 return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); } /* PyIntBinop */ #if !CYTHON_COMPILING_IN_PYPY static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) { CYTHON_MAYBE_UNUSED_VAR(intval); CYTHON_MAYBE_UNUSED_VAR(inplace); CYTHON_UNUSED_VAR(zerodivision_check); #if PY_MAJOR_VERSION < 3 if (likely(PyInt_CheckExact(op1))) { const long b = intval; long x; long a = PyInt_AS_LONG(op1); x = (long)((unsigned long)a - (unsigned long)b); if (likely((x^a) >= 0 || (x^~b) >= 0)) return PyInt_FromLong(x); return PyLong_Type.tp_as_number->nb_subtract(op1, op2); } #endif #if CYTHON_USE_PYLONG_INTERNALS if (likely(PyLong_CheckExact(op1))) { const long b = intval; long a, x; #ifdef HAVE_LONG_LONG const PY_LONG_LONG llb = intval; PY_LONG_LONG lla, llx; #endif if (unlikely(__Pyx_PyLong_IsZero(op1))) { return PyLong_FromLong(-intval); } if (likely(__Pyx_PyLong_IsCompact(op1))) { a = __Pyx_PyLong_CompactValue(op1); } else { const digit* digits = __Pyx_PyLong_Digits(op1); const Py_ssize_t size = __Pyx_PyLong_SignedDigitCount(op1); switch (size) { case -2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_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])); goto long_long; #endif } CYTHON_FALLTHROUGH; case 2: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); break; #ifdef HAVE_LONG_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])); goto long_long; #endif } CYTHON_FALLTHROUGH; 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])); break; #ifdef HAVE_LONG_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])); goto long_long; #endif } CYTHON_FALLTHROUGH; 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])); break; #ifdef HAVE_LONG_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])); goto long_long; #endif } CYTHON_FALLTHROUGH; 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])); break; #ifdef HAVE_LONG_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])); goto long_long; #endif } CYTHON_FALLTHROUGH; 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])); break; #ifdef HAVE_LONG_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])); goto long_long; #endif } CYTHON_FALLTHROUGH; default: return PyLong_Type.tp_as_number->nb_subtract(op1, op2); } } x = a - b; return PyLong_FromLong(x); #ifdef HAVE_LONG_LONG long_long: llx = lla - llb; return PyLong_FromLongLong(llx); #endif } #endif if (PyFloat_CheckExact(op1)) { const long b = intval; #if CYTHON_COMPILING_IN_LIMITED_API double a = __pyx_PyFloat_AsDouble(op1); #else double a = PyFloat_AS_DOUBLE(op1); #endif double result; PyFPE_START_PROTECT("subtract", return NULL) result = ((double)a) - (double)b; PyFPE_END_PROTECT(result) return PyFloat_FromDouble(result); } return (inplace ? PyNumber_InPlaceSubtract : PyNumber_Subtract)(op1, op2); } #endif /* PyObjectCallNoArg */ 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); } /* ErrOccurredWithGIL */ static CYTHON_INLINE int __Pyx_ErrOccurredWithGIL(void) { int err; #ifdef WITH_THREAD PyGILState_STATE _save = PyGILState_Ensure(); #endif err = !!PyErr_Occurred(); #ifdef WITH_THREAD PyGILState_Release(_save); #endif return err; } /* PySequenceMultiply */ static PyObject* __Pyx_PySequence_Multiply_Generic(PyObject *seq, Py_ssize_t mul) { PyObject *result, *pymul = PyInt_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) { #if CYTHON_USE_TYPE_SLOTS 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 #endif { return __Pyx_PySequence_Multiply_Generic(seq, mul); } } /* RaiseUnboundLocalError */ static CYTHON_INLINE void __Pyx_RaiseUnboundLocalError(const char *varname) { PyErr_Format(PyExc_UnboundLocalError, "local variable '%s' referenced before assignment", varname); } /* pep479 */ static void __Pyx_Generator_Replace_StopIteration(int in_async_gen) { PyObject *exc, *val, *tb, *cur_exc; __Pyx_PyThreadState_declare #ifdef __Pyx_StopAsyncIteration_USED int is_async_stopiteration = 0; #endif CYTHON_MAYBE_UNUSED_VAR(in_async_gen); cur_exc = PyErr_Occurred(); if (likely(!__Pyx_PyErr_GivenExceptionMatches(cur_exc, PyExc_StopIteration))) { #ifdef __Pyx_StopAsyncIteration_USED if (in_async_gen && unlikely(__Pyx_PyErr_GivenExceptionMatches(cur_exc, __Pyx_PyExc_StopAsyncIteration))) { is_async_stopiteration = 1; } else #endif return; } __Pyx_PyThreadState_assign __Pyx_GetException(&exc, &val, &tb); Py_XDECREF(exc); Py_XDECREF(val); Py_XDECREF(tb); PyErr_SetString(PyExc_RuntimeError, #ifdef __Pyx_StopAsyncIteration_USED is_async_stopiteration ? "async generator raised StopAsyncIteration" : in_async_gen ? "async generator raised StopIteration" : #endif "generator raised StopIteration"); } /* RaiseTooManyValuesToUnpack */ 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); } /* RaiseNeedMoreValuesToUnpack */ 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"); } /* IterFinish */ 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; } /* UnpackItemEndCheck */ static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected) { if (unlikely(retval)) { Py_DECREF(retval); __Pyx_RaiseTooManyValuesError(expected); return -1; } return __Pyx_IterFinish(); } /* FixUpExtensionType */ #if CYTHON_USE_TYPE_SPECS static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject *type) { #if PY_VERSION_HEX > 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API CYTHON_UNUSED_VAR(spec); CYTHON_UNUSED_VAR(type); #else const PyType_Slot *slot = spec->slots; while (slot && slot->slot && slot->slot != Py_tp_members) slot++; if (slot && slot->slot == Py_tp_members) { int changed = 0; #if !(PY_VERSION_HEX <= 0x030900b1 && CYTHON_COMPILING_IN_CPYTHON) const #endif PyMemberDef *memb = (PyMemberDef*) slot->pfunc; while (memb && memb->name) { if (memb->name[0] == '_' && memb->name[1] == '_') { #if PY_VERSION_HEX < 0x030900b1 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); #if PY_VERSION_HEX >= 0x030800b4 type->tp_vectorcall_offset = memb->offset; #else type->tp_print = (printfunc) memb->offset; #endif changed = 1; } #endif #else if ((0)); #endif #if PY_VERSION_HEX <= 0x030900b1 && CYTHON_COMPILING_IN_CPYTHON 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; if (unlikely(PyDict_SetItem(type->tp_dict, PyDescr_NAME(descr), descr) < 0)) { Py_DECREF(descr); return -1; } Py_DECREF(descr); changed = 1; } #endif } memb++; } if (changed) PyType_Modified(type); } #endif return 0; } #endif /* PyObjectGetMethod */ 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)) #elif PY_MAJOR_VERSION >= 3 #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 #else #ifdef __Pyx_CyFunction_USED if (likely(PyFunction_Check(descr) || __Pyx_CyFunction_Check(descr))) #else if (likely(PyFunction_Check(descr))) #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_GetName(tp); PyErr_Format(PyExc_AttributeError, #if PY_MAJOR_VERSION >= 3 "'" __Pyx_FMT_TYPENAME "' object has no attribute '%U'", type_name, name); #else "'" __Pyx_FMT_TYPENAME "' object has no attribute '%.400s'", type_name, PyString_AS_STRING(name)); #endif __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; } /* PyObjectCallMethod0 */ static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) { 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; } /* ValidateBasesTuple */ #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_MACROS n = PyTuple_GET_SIZE(bases); #else n = PyTuple_Size(bases); if (n < 0) return -1; #endif for (i = 1; i < n; i++) { #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 PyTypeObject *b; #if PY_MAJOR_VERSION < 3 if (PyClass_Check(b0)) { PyErr_Format(PyExc_TypeError, "base class '%.200s' is an old-style class", PyString_AS_STRING(((PyClassObject*)b0)->cl_name)); #if CYTHON_AVOID_BORROWED_REFS Py_DECREF(b0); #endif return -1; } #endif b = (PyTypeObject*) b0; if (!__Pyx_PyType_HasFeature(b, Py_TPFLAGS_HEAPTYPE)) { __Pyx_TypeName b_name = __Pyx_PyType_GetName(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 || CYTHON_COMPILING_IN_PYPY 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_GetName(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 || CYTHON_COMPILING_IN_PYPY) 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 */ static int __Pyx_PyType_Ready(PyTypeObject *t) { #if CYTHON_USE_TYPE_SPECS || !(CYTHON_COMPILING_IN_CPYTHON || CYTHON_COMPILING_IN_LIMITED_API) || 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; 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 PY_VERSION_HEX >= 0x03050000 && !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 PY_VERSION_HEX >= 0x030700a1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM+0 >= 0x07030400) gc = PyImport_GetModule(__pyx_kp_u_gc); #endif if (unlikely(!gc)) gc = PyImport_Import(__pyx_kp_u_gc); if (unlikely(!gc)) return -1; py_status = __Pyx_PyObject_CallMethod0(gc, __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_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 PY_VERSION_HEX >= 0x03050000 && !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_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 } /* PyObject_GenericGetAttrNoDict */ #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000 static PyObject *__Pyx_RaiseGenericGetAttributeError(PyTypeObject *tp, PyObject *attr_name) { __Pyx_TypeName type_name = __Pyx_PyType_GetName(tp); PyErr_Format(PyExc_AttributeError, #if PY_MAJOR_VERSION >= 3 "'" __Pyx_FMT_TYPENAME "' object has no attribute '%U'", type_name, attr_name); #else "'" __Pyx_FMT_TYPENAME "' object has no attribute '%.400s'", type_name, PyString_AS_STRING(attr_name)); #endif __Pyx_DECREF_TypeName(type_name); return NULL; } static CYTHON_INLINE PyObject* __Pyx_PyObject_GenericGetAttrNoDict(PyObject* obj, PyObject* attr_name) { PyObject *descr; PyTypeObject *tp = Py_TYPE(obj); if (unlikely(!PyString_Check(attr_name))) { return PyObject_GenericGetAttr(obj, attr_name); } assert(!tp->tp_dictoffset); descr = _PyType_Lookup(tp, attr_name); if (unlikely(!descr)) { return __Pyx_RaiseGenericGetAttributeError(tp, attr_name); } Py_INCREF(descr); #if PY_MAJOR_VERSION < 3 if (likely(PyType_HasFeature(Py_TYPE(descr), Py_TPFLAGS_HAVE_CLASS))) #endif { descrgetfunc f = Py_TYPE(descr)->tp_descr_get; if (unlikely(f)) { PyObject *res = f(descr, obj, (PyObject *)tp); Py_DECREF(descr); return res; } } return descr; } #endif /* PyObject_GenericGetAttr */ #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000 static PyObject* __Pyx_PyObject_GenericGetAttr(PyObject* obj, PyObject* attr_name) { if (unlikely(Py_TYPE(obj)->tp_dictoffset)) { return PyObject_GenericGetAttr(obj, attr_name); } return __Pyx_PyObject_GenericGetAttrNoDict(obj, attr_name); } #endif /* SetupReduce */ #if !CYTHON_COMPILING_IN_LIMITED_API static int __Pyx_setup_reduce_is_named(PyObject* meth, PyObject* name) { int ret; PyObject *name_attr; name_attr = __Pyx_PyObject_GetAttrStrNoError(meth, __pyx_n_s_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_n_s_getstate); #else getstate = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_n_s_getstate); if (!getstate && PyErr_Occurred()) { goto __PYX_BAD; } #endif if (getstate) { #if CYTHON_USE_PYTYPE_LOOKUP object_getstate = _PyType_Lookup(&PyBaseObject_Type, __pyx_n_s_getstate); #else object_getstate = __Pyx_PyObject_GetAttrStrNoError((PyObject*)&PyBaseObject_Type, __pyx_n_s_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_n_s_reduce_ex); if (!object_reduce_ex) goto __PYX_BAD; #else object_reduce_ex = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_n_s_reduce_ex); if (!object_reduce_ex) goto __PYX_BAD; #endif reduce_ex = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_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_n_s_reduce); if (!object_reduce) goto __PYX_BAD; #else object_reduce = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_n_s_reduce); if (!object_reduce) goto __PYX_BAD; #endif reduce = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_reduce); if (unlikely(!reduce)) goto __PYX_BAD; if (reduce == object_reduce || __Pyx_setup_reduce_is_named(reduce, __pyx_n_s_reduce_cython)) { reduce_cython = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_n_s_reduce_cython); if (likely(reduce_cython)) { ret = PyDict_SetItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_reduce, reduce_cython); if (unlikely(ret < 0)) goto __PYX_BAD; ret = PyDict_DelItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_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_n_s_setstate); if (!setstate) PyErr_Clear(); if (!setstate || __Pyx_setup_reduce_is_named(setstate, __pyx_n_s_setstate_cython)) { setstate_cython = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_n_s_setstate_cython); if (likely(setstate_cython)) { ret = PyDict_SetItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_setstate, setstate_cython); if (unlikely(ret < 0)) goto __PYX_BAD; ret = PyDict_DelItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_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_GetName((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; } #endif /* TypeImport */ #ifndef __PYX_HAVE_RT_ImportType_3_0_12 #define __PYX_HAVE_RT_ImportType_3_0_12 static PyTypeObject *__Pyx_ImportType_3_0_12(PyObject *module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_0_12 check_size) { PyObject *result = 0; char warning[200]; Py_ssize_t basicsize; Py_ssize_t itemsize; #if 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 !CYTHON_COMPILING_IN_LIMITED_API basicsize = ((PyTypeObject *)result)->tp_basicsize; itemsize = ((PyTypeObject *)result)->tp_itemsize; #else 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_0_12 && ((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_0_12 && (size_t)basicsize > size) { PyOS_snprintf(warning, sizeof(warning), "%s.%s size changed, may indicate binary incompatibility. " "Expected %zd from C header, got %zd from PyObject", module_name, class_name, size, basicsize); if (PyErr_WarnEx(NULL, warning, 0) < 0) goto bad; } return (PyTypeObject *)result; bad: Py_XDECREF(result); return NULL; } #endif /* Import */ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) { PyObject *module = 0; PyObject *empty_dict = 0; PyObject *empty_list = 0; #if PY_MAJOR_VERSION < 3 PyObject *py_import; py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import); if (unlikely(!py_import)) goto bad; if (!from_list) { empty_list = PyList_New(0); if (unlikely(!empty_list)) goto bad; from_list = empty_list; } #endif empty_dict = PyDict_New(); if (unlikely(!empty_dict)) goto bad; { #if PY_MAJOR_VERSION >= 3 if (level == -1) { if (strchr(__Pyx_MODULE_NAME, '.') != NULL) { module = PyImport_ImportModuleLevelObject( name, __pyx_d, empty_dict, from_list, 1); if (unlikely(!module)) { if (unlikely(!PyErr_ExceptionMatches(PyExc_ImportError))) goto bad; PyErr_Clear(); } } level = 0; } #endif if (!module) { #if PY_MAJOR_VERSION < 3 PyObject *py_level = PyInt_FromLong(level); if (unlikely(!py_level)) goto bad; module = PyObject_CallFunctionObjArgs(py_import, name, __pyx_d, empty_dict, from_list, py_level, (PyObject *)NULL); Py_DECREF(py_level); #else module = PyImport_ImportModuleLevelObject( name, __pyx_d, empty_dict, from_list, level); #endif } } bad: Py_XDECREF(empty_dict); Py_XDECREF(empty_list); #if PY_MAJOR_VERSION < 3 Py_XDECREF(py_import); #endif return module; } /* 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_kp_u__654); if (unlikely(!module_dot)) { goto modbad; } full_name = PyUnicode_Concat(module_dot, name); if (unlikely(!full_name)) { goto modbad; } #if PY_VERSION_HEX < 0x030700A1 || (CYTHON_COMPILING_IN_PYPY && PYPY_VERSION_NUM < 0x07030400) { 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, #if PY_MAJOR_VERSION < 3 "cannot import name %.230s", PyString_AS_STRING(name)); #else "cannot import name %S", name); #endif } return value; } /* ImportDottedModule */ #if PY_MAJOR_VERSION >= 3 static PyObject *__Pyx__ImportDottedModule_Error(PyObject *name, PyObject *parts_tuple, Py_ssize_t count) { PyObject *partial_name = NULL, *slice = NULL, *sep = NULL; if (unlikely(PyErr_Occurred())) { PyErr_Clear(); } if (likely(PyTuple_GET_SIZE(parts_tuple) == count)) { partial_name = name; } else { slice = PySequence_GetSlice(parts_tuple, 0, count); if (unlikely(!slice)) goto bad; sep = PyUnicode_FromStringAndSize(".", 1); if (unlikely(!sep)) goto bad; partial_name = PyUnicode_Join(sep, slice); } PyErr_Format( #if PY_MAJOR_VERSION < 3 PyExc_ImportError, "No module named '%s'", PyString_AS_STRING(partial_name)); #else #if PY_VERSION_HEX >= 0x030600B1 PyExc_ModuleNotFoundError, #else PyExc_ImportError, #endif "No module named '%U'", partial_name); #endif bad: Py_XDECREF(sep); Py_XDECREF(slice); Py_XDECREF(partial_name); return NULL; } #endif #if PY_MAJOR_VERSION >= 3 static PyObject *__Pyx__ImportDottedModule_Lookup(PyObject *name) { PyObject *imported_module; #if PY_VERSION_HEX < 0x030700A1 || (CYTHON_COMPILING_IN_PYPY && PYPY_VERSION_NUM < 0x07030400) PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) return NULL; imported_module = __Pyx_PyDict_GetItemStr(modules, name); Py_XINCREF(imported_module); #else imported_module = PyImport_GetModule(name); #endif return imported_module; } #endif #if PY_MAJOR_VERSION >= 3 static PyObject *__Pyx_ImportDottedModule_WalkParts(PyObject *module, PyObject *name, PyObject *parts_tuple) { Py_ssize_t i, nparts; nparts = PyTuple_GET_SIZE(parts_tuple); for (i=1; i < nparts && module; i++) { PyObject *part, *submodule; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS part = PyTuple_GET_ITEM(parts_tuple, i); #else part = PySequence_ITEM(parts_tuple, i); #endif submodule = __Pyx_PyObject_GetAttrStrNoError(module, part); #if !(CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS) Py_DECREF(part); #endif Py_DECREF(module); module = submodule; } if (unlikely(!module)) { return __Pyx__ImportDottedModule_Error(name, parts_tuple, i); } return module; } #endif static PyObject *__Pyx__ImportDottedModule(PyObject *name, PyObject *parts_tuple) { #if PY_MAJOR_VERSION < 3 PyObject *module, *from_list, *star = __pyx_n_s__655; CYTHON_UNUSED_VAR(parts_tuple); from_list = PyList_New(1); if (unlikely(!from_list)) return NULL; Py_INCREF(star); PyList_SET_ITEM(from_list, 0, star); module = __Pyx_Import(name, from_list, 0); Py_DECREF(from_list); return module; #else PyObject *imported_module; PyObject *module = __Pyx_Import(name, NULL, 0); if (!parts_tuple || unlikely(!module)) return module; imported_module = __Pyx__ImportDottedModule_Lookup(name); if (likely(imported_module)) { Py_DECREF(module); return imported_module; } PyErr_Clear(); return __Pyx_ImportDottedModule_WalkParts(module, name, parts_tuple); #endif } static PyObject *__Pyx_ImportDottedModule(PyObject *name, PyObject *parts_tuple) { #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030400B1 PyObject *module = __Pyx__ImportDottedModule_Lookup(name); if (likely(module)) { PyObject *spec = __Pyx_PyObject_GetAttrStrNoError(module, __pyx_n_s_spec); if (likely(spec)) { PyObject *unsafe = __Pyx_PyObject_GetAttrStrNoError(spec, __pyx_n_s_initializing); if (likely(!unsafe || !__Pyx_PyObject_IsTrue(unsafe))) { Py_DECREF(spec); spec = NULL; } Py_XDECREF(unsafe); } if (likely(!spec)) { PyErr_Clear(); return module; } Py_DECREF(spec); Py_DECREF(module); } else if (PyErr_Occurred()) { PyErr_Clear(); } #endif return __Pyx__ImportDottedModule(name, parts_tuple); } /* Py3UpdateBases */ static PyObject* __Pyx_PEP560_update_bases(PyObject *bases) { Py_ssize_t i, j, size_bases; PyObject *base, *meth, *new_base, *result, *new_bases = NULL; size_bases = PyTuple_GET_SIZE(bases); for (i = 0; i < size_bases; i++) { base = PyTuple_GET_ITEM(bases, i); if (PyType_Check(base)) { if (new_bases) { if (PyList_Append(new_bases, base) < 0) { goto error; } } continue; } meth = __Pyx_PyObject_GetAttrStrNoError(base, __pyx_n_s_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++) { base = PyTuple_GET_ITEM(bases, j); PyList_SET_ITEM(new_bases, j, base); Py_INCREF(base); } } j = PyList_GET_SIZE(new_bases); 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); return result; error: Py_XDECREF(new_bases); return NULL; } /* CalculateMetaclass */ static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases) { Py_ssize_t i, nbases; #if CYTHON_ASSUME_SAFE_MACROS 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 PY_MAJOR_VERSION < 3 if (tmptype == &PyClass_Type) continue; #endif 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) { #if PY_MAJOR_VERSION < 3 metaclass = &PyClass_Type; #else metaclass = &PyType_Type; #endif } Py_INCREF((PyObject*) metaclass); return (PyObject*) metaclass; } /* PyObjectCall2Args */ 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 */ #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); #if PY_MAJOR_VERSION < 3 if (unlikely(PyInstance_Check(obj))) return with_error ? __Pyx_PyObject_GetAttrStr(obj, attr_name) : __Pyx_PyObject_GetAttrStrNoError(obj, attr_name); #endif 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_n_s_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_n_s_module, modname) < 0)) goto bad; #if PY_VERSION_HEX >= 0x03030000 if (unlikely(PyObject_SetItem(ns, __pyx_n_s_qualname, qualname) < 0)) goto bad; #else CYTHON_MAYBE_UNUSED_VAR(qualname); #endif if (unlikely(doc && PyObject_SetItem(ns, __pyx_n_s_doc, doc) < 0)) goto bad; return ns; bad: Py_DECREF(ns); return NULL; } #if PY_VERSION_HEX < 0x030600A4 && CYTHON_PEP487_INIT_SUBCLASS static int __Pyx_SetNamesPEP487(PyObject *type_obj) { PyTypeObject *type = (PyTypeObject*) type_obj; PyObject *names_to_set, *key, *value, *set_name, *tmp; Py_ssize_t i = 0; #if CYTHON_USE_TYPE_SLOTS names_to_set = PyDict_Copy(type->tp_dict); #else { PyObject *d = PyObject_GetAttr(type_obj, __pyx_n_s_dict); names_to_set = NULL; if (likely(d)) { PyObject *names_to_set = PyDict_New(); int ret = likely(names_to_set) ? PyDict_Update(names_to_set, d) : -1; Py_DECREF(d); if (unlikely(ret < 0)) Py_CLEAR(names_to_set); } } #endif if (unlikely(names_to_set == NULL)) goto bad; while (PyDict_Next(names_to_set, &i, &key, &value)) { set_name = __Pyx_PyObject_LookupSpecialNoError(value, __pyx_n_s_set_name); if (unlikely(set_name != NULL)) { tmp = __Pyx_PyObject_Call2Args(set_name, type_obj, key); Py_DECREF(set_name); if (unlikely(tmp == NULL)) { __Pyx_TypeName value_type_name = __Pyx_PyType_GetName(Py_TYPE(value)); __Pyx_TypeName type_name = __Pyx_PyType_GetName(type); PyErr_Format(PyExc_RuntimeError, #if PY_MAJOR_VERSION >= 3 "Error calling __set_name__ on '" __Pyx_FMT_TYPENAME "' instance %R " "in '" __Pyx_FMT_TYPENAME "'", value_type_name, key, type_name); #else "Error calling __set_name__ on '" __Pyx_FMT_TYPENAME "' instance %.100s in '" __Pyx_FMT_TYPENAME "'", value_type_name, PyString_Check(key) ? PyString_AS_STRING(key) : "?", type_name); #endif goto bad; } else { Py_DECREF(tmp); } } else if (unlikely(PyErr_Occurred())) { goto bad; } } Py_DECREF(names_to_set); return 0; bad: Py_XDECREF(names_to_set); return -1; } static PyObject *__Pyx_InitSubclassPEP487(PyObject *type_obj, PyObject *mkw) { #if CYTHON_USE_TYPE_SLOTS && CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS PyTypeObject *type = (PyTypeObject*) type_obj; PyObject *mro = type->tp_mro; Py_ssize_t i, nbases; if (unlikely(!mro)) goto done; (void) &__Pyx_GetBuiltinName; Py_INCREF(mro); nbases = PyTuple_GET_SIZE(mro); assert(PyTuple_GET_ITEM(mro, 0) == type_obj); for (i = 1; i < nbases-1; i++) { PyObject *base, *dict, *meth; base = PyTuple_GET_ITEM(mro, i); dict = ((PyTypeObject *)base)->tp_dict; meth = __Pyx_PyDict_GetItemStrWithError(dict, __pyx_n_s_init_subclass); if (unlikely(meth)) { descrgetfunc f = Py_TYPE(meth)->tp_descr_get; PyObject *res; Py_INCREF(meth); if (likely(f)) { res = f(meth, NULL, type_obj); Py_DECREF(meth); if (unlikely(!res)) goto bad; meth = res; } res = __Pyx_PyObject_FastCallDict(meth, NULL, 0, mkw); Py_DECREF(meth); if (unlikely(!res)) goto bad; Py_DECREF(res); goto done; } else if (unlikely(PyErr_Occurred())) { goto bad; } } done: Py_XDECREF(mro); return type_obj; bad: Py_XDECREF(mro); Py_DECREF(type_obj); return NULL; #else PyObject *super_type, *super, *func, *res; #if CYTHON_COMPILING_IN_PYPY && !defined(PySuper_Type) super_type = __Pyx_GetBuiltinName(__pyx_n_s_super); #else super_type = (PyObject*) &PySuper_Type; (void) &__Pyx_GetBuiltinName; #endif super = likely(super_type) ? __Pyx_PyObject_Call2Args(super_type, type_obj, type_obj) : NULL; #if CYTHON_COMPILING_IN_PYPY && !defined(PySuper_Type) Py_XDECREF(super_type); #endif if (unlikely(!super)) { Py_CLEAR(type_obj); goto done; } func = __Pyx_PyObject_GetAttrStrNoError(super, __pyx_n_s_init_subclass); Py_DECREF(super); if (likely(!func)) { if (unlikely(PyErr_Occurred())) Py_CLEAR(type_obj); goto done; } res = __Pyx_PyObject_FastCallDict(func, NULL, 0, mkw); Py_DECREF(func); if (unlikely(!res)) Py_CLEAR(type_obj); Py_XDECREF(res); done: return type_obj; #endif } #endif 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_n_s_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, #if PY_VERSION_HEX < 0x030600A4 (metaclass == (PyObject*)&PyType_Type) ? NULL : mkw #else mkw #endif ); Py_XDECREF(owned_metaclass); #if PY_VERSION_HEX < 0x030600A4 && CYTHON_PEP487_INIT_SUBCLASS if (likely(result) && likely(PyType_Check(result))) { if (unlikely(__Pyx_SetNamesPEP487(result) < 0)) { Py_CLEAR(result); } else { result = __Pyx_InitSubclassPEP487(result, mkw); } } #else (void) &__Pyx_GetBuiltinName; #endif return result; } /* FetchSharedCythonModule */ static PyObject *__Pyx_FetchSharedCythonABIModule(void) { return __Pyx_PyImport_AddModuleRef((char*) __PYX_ABI_MODULE_NAME); } /* FetchCommonType */ static int __Pyx_VerifyCachedType(PyObject *cached_type, const char *name, Py_ssize_t basicsize, Py_ssize_t expected_basicsize) { if (!PyType_Check(cached_type)) { PyErr_Format(PyExc_TypeError, "Shared Cython type %.200s is not a type object", name); return -1; } if (basicsize != expected_basicsize) { PyErr_Format(PyExc_TypeError, "Shared Cython type %.200s has the wrong size, try recompiling", name); return -1; } return 0; } #if !CYTHON_USE_TYPE_SPECS static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type) { PyObject* abi_module; const char* object_name; PyTypeObject *cached_type = NULL; abi_module = __Pyx_FetchSharedCythonABIModule(); if (!abi_module) return NULL; object_name = strrchr(type->tp_name, '.'); object_name = object_name ? object_name+1 : type->tp_name; cached_type = (PyTypeObject*) PyObject_GetAttrString(abi_module, object_name); if (cached_type) { if (__Pyx_VerifyCachedType( (PyObject *)cached_type, object_name, cached_type->tp_basicsize, type->tp_basicsize) < 0) { goto bad; } goto done; } if (!PyErr_ExceptionMatches(PyExc_AttributeError)) goto bad; PyErr_Clear(); if (PyType_Ready(type) < 0) goto bad; if (PyObject_SetAttrString(abi_module, object_name, (PyObject *)type) < 0) goto bad; Py_INCREF(type); cached_type = type; done: Py_DECREF(abi_module); return cached_type; bad: Py_XDECREF(cached_type); cached_type = NULL; goto done; } #else static PyTypeObject *__Pyx_FetchCommonTypeFromSpec(PyObject *module, PyType_Spec *spec, PyObject *bases) { PyObject *abi_module, *cached_type = NULL; const char* object_name = strrchr(spec->name, '.'); object_name = object_name ? object_name+1 : spec->name; abi_module = __Pyx_FetchSharedCythonABIModule(); if (!abi_module) return NULL; cached_type = PyObject_GetAttrString(abi_module, object_name); if (cached_type) { Py_ssize_t basicsize; #if CYTHON_COMPILING_IN_LIMITED_API PyObject *py_basicsize; py_basicsize = PyObject_GetAttrString(cached_type, "__basicsize__"); if (unlikely(!py_basicsize)) goto bad; basicsize = PyLong_AsSsize_t(py_basicsize); Py_DECREF(py_basicsize); py_basicsize = 0; if (unlikely(basicsize == (Py_ssize_t)-1) && PyErr_Occurred()) goto bad; #else basicsize = likely(PyType_Check(cached_type)) ? ((PyTypeObject*) cached_type)->tp_basicsize : -1; #endif if (__Pyx_VerifyCachedType( cached_type, object_name, basicsize, spec->basicsize) < 0) { goto bad; } goto done; } if (!PyErr_ExceptionMatches(PyExc_AttributeError)) goto bad; PyErr_Clear(); CYTHON_UNUSED_VAR(module); cached_type = __Pyx_PyType_FromModuleAndSpec(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; if (PyObject_SetAttrString(abi_module, object_name, cached_type) < 0) goto bad; done: Py_DECREF(abi_module); assert(cached_type == NULL || PyType_Check(cached_type)); return (PyTypeObject *) cached_type; bad: Py_XDECREF(cached_type); cached_type = NULL; goto done; } #endif /* PyVectorcallFastCallDict */ #if CYTHON_METH_FASTCALL 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, pos; size_t j; PyObject *key, *value; unsigned long keys_are_strings; Py_ssize_t nkw = PyDict_GET_SIZE(kw); 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 = i = 0; keys_are_strings = Py_TPFLAGS_UNICODE_SUBCLASS; while (PyDict_Next(kw, &pos, &key, &value)) { keys_are_strings &= Py_TYPE(key)->tp_flags; Py_INCREF(key); Py_INCREF(value); PyTuple_SET_ITEM(kwnames, i, key); 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: 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) { if (likely(kw == NULL) || PyDict_GET_SIZE(kw) == 0) { return vc(func, args, nargs, NULL); } return __Pyx_PyVectorcall_FastCallDict_kw(func, vc, args, nargs, kw); } #endif /* CythonFunctionShared */ #if CYTHON_COMPILING_IN_LIMITED_API static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void *cfunc) { 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; } #else static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void *cfunc) { 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(__pyx_CyFunctionObject *op, void *closure) { CYTHON_UNUSED_VAR(closure); 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) { #if PY_MAJOR_VERSION >= 3 op->func_doc = PyUnicode_FromString(((PyCFunctionObject*)op)->m_ml->ml_doc); #else op->func_doc = PyString_FromString(((PyCFunctionObject*)op)->m_ml->ml_doc); #endif 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 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_Py_XDECREF_SET(op->func_doc, value); return 0; } static PyObject * __Pyx_CyFunction_get_name(__pyx_CyFunctionObject *op, void *context) { CYTHON_UNUSED_VAR(context); if (unlikely(op->func_name == NULL)) { #if CYTHON_COMPILING_IN_LIMITED_API op->func_name = PyObject_GetAttrString(op->func, "__name__"); #elif PY_MAJOR_VERSION >= 3 op->func_name = PyUnicode_InternFromString(((PyCFunctionObject*)op)->m_ml->ml_name); #else op->func_name = PyString_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 int __Pyx_CyFunction_set_name(__pyx_CyFunctionObject *op, PyObject *value, void *context) { CYTHON_UNUSED_VAR(context); #if PY_MAJOR_VERSION >= 3 if (unlikely(value == NULL || !PyUnicode_Check(value))) #else if (unlikely(value == NULL || !PyString_Check(value))) #endif { PyErr_SetString(PyExc_TypeError, "__name__ must be set to a string object"); return -1; } Py_INCREF(value); __Pyx_Py_XDECREF_SET(op->func_name, value); return 0; } static PyObject * __Pyx_CyFunction_get_qualname(__pyx_CyFunctionObject *op, void *context) { CYTHON_UNUSED_VAR(context); Py_INCREF(op->func_qualname); return op->func_qualname; } static int __Pyx_CyFunction_set_qualname(__pyx_CyFunctionObject *op, PyObject *value, void *context) { CYTHON_UNUSED_VAR(context); #if PY_MAJOR_VERSION >= 3 if (unlikely(value == NULL || !PyUnicode_Check(value))) #else if (unlikely(value == NULL || !PyString_Check(value))) #endif { PyErr_SetString(PyExc_TypeError, "__qualname__ must be set to a string object"); return -1; } Py_INCREF(value); __Pyx_Py_XDECREF_SET(op->func_qualname, value); return 0; } 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; } static int __Pyx_CyFunction_set_dict(__pyx_CyFunctionObject *op, PyObject *value, void *context) { CYTHON_UNUSED_VAR(context); if (unlikely(value == NULL)) { PyErr_SetString(PyExc_TypeError, "function's dictionary may not be deleted"); return -1; } if (unlikely(!PyDict_Check(value))) { PyErr_SetString(PyExc_TypeError, "setting function's dictionary to a non-dict"); return -1; } Py_INCREF(value); __Pyx_Py_XDECREF_SET(op->func_dict, value); return 0; } 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_Py_XDECREF_SET(op->defaults_tuple, value); return 0; } static PyObject * __Pyx_CyFunction_get_defaults(__pyx_CyFunctionObject *op, void *context) { PyObject* result = op->defaults_tuple; CYTHON_UNUSED_VAR(context); 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 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_Py_XDECREF_SET(op->defaults_kwdict, value); return 0; } static PyObject * __Pyx_CyFunction_get_kwdefaults(__pyx_CyFunctionObject *op, void *context) { PyObject* result = op->defaults_kwdict; CYTHON_UNUSED_VAR(context); 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 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_Py_XDECREF_SET(op->func_annotations, value); return 0; } static PyObject * __Pyx_CyFunction_get_annotations(__pyx_CyFunctionObject *op, void *context) { PyObject* result = op->func_annotations; CYTHON_UNUSED_VAR(context); 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_is_coroutine(__pyx_CyFunctionObject *op, void *context) { int is_coroutine; CYTHON_UNUSED_VAR(context); if (op->func_is_coroutine) { return __Pyx_NewRef(op->func_is_coroutine); } is_coroutine = op->flags & __Pyx_CYFUNCTION_COROUTINE; #if PY_VERSION_HEX >= 0x03050000 if (is_coroutine) { PyObject *module, *fromlist, *marker = __pyx_n_s_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_n_s_asyncio_coroutines, NULL, NULL, fromlist, 0); Py_DECREF(fromlist); if (unlikely(!module)) goto ignore; op->func_is_coroutine = __Pyx_PyObject_GetAttrStr(module, marker); Py_DECREF(module); if (likely(op->func_is_coroutine)) { return __Pyx_NewRef(op->func_is_coroutine); } ignore: PyErr_Clear(); } #endif op->func_is_coroutine = __Pyx_PyBool_FromLong(is_coroutine); return __Pyx_NewRef(op->func_is_coroutine); } #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[] = { {(char *) "func_doc", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, {(char *) "__doc__", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, {(char *) "func_name", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, {(char *) "__name__", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, {(char *) "__qualname__", (getter)__Pyx_CyFunction_get_qualname, (setter)__Pyx_CyFunction_set_qualname, 0, 0}, {(char *) "func_dict", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0}, {(char *) "__dict__", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0}, {(char *) "func_globals", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, {(char *) "__globals__", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, {(char *) "func_closure", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, {(char *) "__closure__", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, {(char *) "func_code", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, {(char *) "__code__", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, {(char *) "func_defaults", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, {(char *) "__defaults__", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, {(char *) "__kwdefaults__", (getter)__Pyx_CyFunction_get_kwdefaults, (setter)__Pyx_CyFunction_set_kwdefaults, 0, 0}, {(char *) "__annotations__", (getter)__Pyx_CyFunction_get_annotations, (setter)__Pyx_CyFunction_set_annotations, 0, 0}, {(char *) "_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 {(char *) "__module__", T_OBJECT, offsetof(PyCFunctionObject, m_module), 0, 0}, #endif #if CYTHON_USE_TYPE_SPECS {(char *) "__dictoffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_dict), READONLY, 0}, #if CYTHON_METH_FASTCALL #if CYTHON_BACKPORT_VECTORCALL {(char *) "__vectorcalloffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_vectorcall), READONLY, 0}, #else #if !CYTHON_COMPILING_IN_LIMITED_API {(char *) "__vectorcalloffset__", T_PYSSIZET, offsetof(PyCFunctionObject, vectorcall), READONLY, 0}, #endif #endif #endif #if PY_VERSION_HEX < 0x030500A0 || CYTHON_COMPILING_IN_LIMITED_API {(char *) "__weaklistoffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_weakreflist), READONLY, 0}, #else {(char *) "__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) { CYTHON_UNUSED_VAR(args); #if PY_MAJOR_VERSION >= 3 Py_INCREF(m->func_qualname); return m->func_qualname; #else return PyString_FromString(((PyCFunctionObject*)m)->m_ml->ml_name); #endif } static PyMethodDef __pyx_CyFunction_methods[] = { {"__reduce__", (PyCFunction)__Pyx_CyFunction_reduce, METH_VARARGS, 0}, {0, 0, 0, 0} }; #if PY_VERSION_HEX < 0x030500A0 || 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 op->func_dict = NULL; 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_pyobjects = 0; op->defaults_size = 0; 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 Py_CLEAR(m->func_dict); 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); if (m->defaults) { PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m); int i; for (i = 0; i < m->defaults_pyobjects; i++) Py_XDECREF(pydefaults[i]); PyObject_Free(m->defaults); m->defaults = NULL; } 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) { Py_VISIT(m->func_closure); #if CYTHON_COMPILING_IN_LIMITED_API Py_VISIT(m->func); #else Py_VISIT(((PyCFunctionObject*)m)->m_module); #endif Py_VISIT(m->func_dict); Py_VISIT(m->func_name); Py_VISIT(m->func_qualname); Py_VISIT(m->func_doc); Py_VISIT(m->func_globals); Py_VISIT(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); if (m->defaults) { PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m); int i; for (i = 0; i < m->defaults_pyobjects; i++) Py_VISIT(pydefaults[i]); } return 0; } static PyObject* __Pyx_CyFunction_repr(__pyx_CyFunctionObject *op) { #if PY_MAJOR_VERSION >= 3 return PyUnicode_FromFormat("", op->func_qualname, (void *)op); #else return PyString_FromFormat("", PyString_AsString(op->func_qualname), (void *)op); #endif } 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; PyObject *py_name = NULL; 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*)meth)(self, arg, kw); case METH_NOARGS: if (likely(kw == NULL || PyDict_Size(kw) == 0)) { #if CYTHON_ASSUME_SAFE_MACROS 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); #if CYTHON_COMPILING_IN_LIMITED_API py_name = __Pyx_CyFunction_get_name((__pyx_CyFunctionObject*)func, NULL); if (!py_name) return NULL; PyErr_Format(PyExc_TypeError, "%.200S() takes no arguments (%" CYTHON_FORMAT_SSIZE_T "d given)", py_name, size); Py_DECREF(py_name); #else PyErr_Format(PyExc_TypeError, "%.200s() takes no arguments (%" CYTHON_FORMAT_SSIZE_T "d given)", f->m_ml->ml_name, size); #endif return NULL; } break; case METH_O: if (likely(kw == NULL || PyDict_Size(kw) == 0)) { #if CYTHON_ASSUME_SAFE_MACROS 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; } #if CYTHON_COMPILING_IN_LIMITED_API py_name = __Pyx_CyFunction_get_name((__pyx_CyFunctionObject*)func, NULL); if (!py_name) return NULL; PyErr_Format(PyExc_TypeError, "%.200S() takes exactly one argument (%" CYTHON_FORMAT_SSIZE_T "d given)", py_name, size); Py_DECREF(py_name); #else PyErr_Format(PyExc_TypeError, "%.200s() takes exactly one argument (%" CYTHON_FORMAT_SSIZE_T "d given)", f->m_ml->ml_name, size); #endif return NULL; } break; default: PyErr_SetString(PyExc_SystemError, "Bad call flags for CyFunction"); return NULL; } #if CYTHON_COMPILING_IN_LIMITED_API py_name = __Pyx_CyFunction_get_name((__pyx_CyFunctionObject*)func, NULL); if (!py_name) return NULL; PyErr_Format(PyExc_TypeError, "%.200S() takes no keyword arguments", py_name); Py_DECREF(py_name); #else PyErr_Format(PyExc_TypeError, "%.200s() takes no keyword arguments", f->m_ml->ml_name); #endif 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 __pyx_vectorcallfunc vc = __Pyx_CyFunction_func_vectorcall(cyfunc); if (vc) { #if CYTHON_ASSUME_SAFE_MACROS 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_MACROS 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); #if PY_MAJOR_VERSION > 2 PyErr_Format(PyExc_TypeError, "unbound method %.200S() needs an argument", cyfunc->func_qualname); #else PyErr_SetString(PyExc_TypeError, "unbound method needs an argument"); #endif 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 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)) { PyErr_Format(PyExc_TypeError, "%.200s() needs an argument", ((PyCFunctionObject*)cyfunc)->m_ml->ml_name); return -1; } ret = 1; } if (unlikely(kwnames) && unlikely(PyTuple_GET_SIZE(kwnames))) { PyErr_Format(PyExc_TypeError, "%.200s() takes no keyword arguments", ((PyCFunctionObject*)cyfunc)->m_ml->ml_name); 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; PyMethodDef* def = ((PyCFunctionObject*)cyfunc)->m_ml; #if CYTHON_BACKPORT_VECTORCALL Py_ssize_t nargs = (Py_ssize_t)nargsf; #else Py_ssize_t nargs = PyVectorcall_NARGS(nargsf); #endif PyObject *self; switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, kwnames)) { case 1: self = args[0]; args += 1; nargs -= 1; break; case 0: self = ((PyCFunctionObject*)cyfunc)->m_self; break; default: return NULL; } if (unlikely(nargs != 0)) { PyErr_Format(PyExc_TypeError, "%.200s() takes no arguments (%" CYTHON_FORMAT_SSIZE_T "d given)", def->ml_name, nargs); return NULL; } return def->ml_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; PyMethodDef* def = ((PyCFunctionObject*)cyfunc)->m_ml; #if CYTHON_BACKPORT_VECTORCALL Py_ssize_t nargs = (Py_ssize_t)nargsf; #else Py_ssize_t nargs = PyVectorcall_NARGS(nargsf); #endif PyObject *self; switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, kwnames)) { case 1: self = args[0]; args += 1; nargs -= 1; break; case 0: self = ((PyCFunctionObject*)cyfunc)->m_self; break; default: return NULL; } if (unlikely(nargs != 1)) { PyErr_Format(PyExc_TypeError, "%.200s() takes exactly one argument (%" CYTHON_FORMAT_SSIZE_T "d given)", def->ml_name, nargs); return NULL; } return def->ml_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; PyMethodDef* def = ((PyCFunctionObject*)cyfunc)->m_ml; #if CYTHON_BACKPORT_VECTORCALL Py_ssize_t nargs = (Py_ssize_t)nargsf; #else Py_ssize_t nargs = PyVectorcall_NARGS(nargsf); #endif PyObject *self; switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, NULL)) { case 1: self = args[0]; args += 1; nargs -= 1; break; case 0: self = ((PyCFunctionObject*)cyfunc)->m_self; break; default: return NULL; } return ((__Pyx_PyCFunctionFastWithKeywords)(void(*)(void))def->ml_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; PyMethodDef* def = ((PyCFunctionObject*)cyfunc)->m_ml; PyTypeObject *cls = (PyTypeObject *) __Pyx_CyFunction_GetClassObj(cyfunc); #if CYTHON_BACKPORT_VECTORCALL Py_ssize_t nargs = (Py_ssize_t)nargsf; #else Py_ssize_t nargs = PyVectorcall_NARGS(nargsf); #endif PyObject *self; switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, NULL)) { case 1: self = args[0]; args += 1; nargs -= 1; break; case 0: self = ((PyCFunctionObject*)cyfunc)->m_self; break; default: return NULL; } return ((__Pyx_PyCMethod)(void(*)(void))def->ml_meth)(self, cls, args, (size_t)nargs, kwnames); } #endif #if CYTHON_USE_TYPE_SPECS 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 (defined(_Py_TPFLAGS_HAVE_VECTORCALL) && CYTHON_METH_FASTCALL) _Py_TPFLAGS_HAVE_VECTORCALL | #endif Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE, __pyx_CyFunctionType_slots }; #else static PyTypeObject __pyx_CyFunctionType_type = { PyVarObject_HEAD_INIT(0, 0) __PYX_TYPE_MODULE_PREFIX "cython_function_or_method", sizeof(__pyx_CyFunctionObject), 0, (destructor) __Pyx_CyFunction_dealloc, #if !CYTHON_METH_FASTCALL 0, #elif CYTHON_BACKPORT_VECTORCALL (printfunc)offsetof(__pyx_CyFunctionObject, func_vectorcall), #else offsetof(PyCFunctionObject, vectorcall), #endif 0, 0, #if PY_MAJOR_VERSION < 3 0, #else 0, #endif (reprfunc) __Pyx_CyFunction_repr, 0, 0, 0, 0, __Pyx_CyFunction_CallAsMethod, 0, 0, 0, 0, #ifdef Py_TPFLAGS_METHOD_DESCRIPTOR Py_TPFLAGS_METHOD_DESCRIPTOR | #endif #if defined(_Py_TPFLAGS_HAVE_VECTORCALL) && CYTHON_METH_FASTCALL _Py_TPFLAGS_HAVE_VECTORCALL | #endif Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE, 0, (traverseproc) __Pyx_CyFunction_traverse, (inquiry) __Pyx_CyFunction_clear, 0, #if PY_VERSION_HEX < 0x030500A0 offsetof(__pyx_CyFunctionObject, func_weakreflist), #else offsetof(PyCFunctionObject, m_weakreflist), #endif 0, 0, __pyx_CyFunction_methods, __pyx_CyFunction_members, __pyx_CyFunction_getsets, 0, 0, __Pyx_PyMethod_New, 0, offsetof(__pyx_CyFunctionObject, func_dict), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, #if PY_VERSION_HEX >= 0x030400a1 0, #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, #endif #if __PYX_NEED_TP_PRINT_SLOT 0, #endif #if PY_VERSION_HEX >= 0x030C0000 0, #endif #if PY_VERSION_HEX >= 0x030d00A4 0, #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, #endif }; #endif static int __pyx_CyFunction_init(PyObject *module) { #if CYTHON_USE_TYPE_SPECS __pyx_CyFunctionType = __Pyx_FetchCommonTypeFromSpec(module, &__pyx_CyFunctionType_spec, NULL); #else CYTHON_UNUSED_VAR(module); __pyx_CyFunctionType = __Pyx_FetchCommonType(&__pyx_CyFunctionType_type); #endif if (unlikely(__pyx_CyFunctionType == NULL)) { return -1; } return 0; } static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *func, size_t size, int pyobjects) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->defaults = PyObject_Malloc(size); if (unlikely(!m->defaults)) return PyErr_NoMemory(); memset(m->defaults, 0, size); m->defaults_pyobjects = pyobjects; m->defaults_size = size; 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_CyFunctionType), ml, flags, qualname, closure, module, globals, code ); if (likely(op)) { PyObject_GC_Track(op); } return op; } /* CLineInTraceback */ #ifndef CYTHON_CLINE_IN_TRACEBACK static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line) { PyObject *use_cline; PyObject *ptype, *pvalue, *ptraceback; #if CYTHON_COMPILING_IN_CPYTHON PyObject **cython_runtime_dict; #endif CYTHON_MAYBE_UNUSED_VAR(tstate); if (unlikely(!__pyx_cython_runtime)) { return c_line; } __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback); #if CYTHON_COMPILING_IN_CPYTHON cython_runtime_dict = _PyObject_GetDictPtr(__pyx_cython_runtime); if (likely(cython_runtime_dict)) { __PYX_PY_DICT_LOOKUP_IF_MODIFIED( use_cline, *cython_runtime_dict, __Pyx_PyDict_GetItemStr(*cython_runtime_dict, __pyx_n_s_cline_in_traceback)) } else #endif { PyObject *use_cline_obj = __Pyx_PyObject_GetAttrStrNoError(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback); if (use_cline_obj) { use_cline = PyObject_Not(use_cline_obj) ? Py_False : Py_True; Py_DECREF(use_cline_obj); } else { PyErr_Clear(); use_cline = NULL; } } if (!use_cline) { c_line = 0; (void) PyObject_SetAttr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback, Py_False); } else if (use_cline == Py_False || (use_cline != Py_True && PyObject_Not(use_cline) != 0)) { c_line = 0; } __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback); return c_line; } #endif /* CodeObjectCache */ #if !CYTHON_COMPILING_IN_LIMITED_API 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 PyCodeObject *__pyx_find_code_object(int code_line) { PyCodeObject* code_object; int pos; if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) { return NULL; } pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line); if (unlikely(pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[pos].code_line != code_line)) { return NULL; } code_object = __pyx_code_cache.entries[pos].code_object; Py_INCREF(code_object); return code_object; } static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) { int pos, i; __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries; if (unlikely(!code_line)) { return; } if (unlikely(!entries)) { entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry)); if (likely(entries)) { __pyx_code_cache.entries = entries; __pyx_code_cache.max_count = 64; __pyx_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(__pyx_code_cache.entries, __pyx_code_cache.count, code_line); if ((pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[pos].code_line == code_line)) { PyCodeObject* tmp = entries[pos].code_object; entries[pos].code_object = code_object; Py_DECREF(tmp); return; } if (__pyx_code_cache.count == __pyx_code_cache.max_count) { int new_max = __pyx_code_cache.max_count + 64; entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc( __pyx_code_cache.entries, ((size_t)new_max) * sizeof(__Pyx_CodeObjectCacheEntry)); if (unlikely(!entries)) { return; } __pyx_code_cache.entries = entries; __pyx_code_cache.max_count = new_max; } for (i=__pyx_code_cache.count; i>pos; i--) { entries[i] = entries[i-1]; } entries[pos].code_line = code_line; entries[pos].code_object = code_object; __pyx_code_cache.count++; Py_INCREF(code_object); } #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; result = PyObject_Call(replace, __pyx_empty_tuple, scratch_dict); Py_DECREF(replace); return result; } PyErr_Clear(); #if __PYX_LIMITED_VERSION_HEX < 0x030780000 { PyObject *compiled = NULL, *result = NULL; if (unlikely(PyDict_SetItemString(scratch_dict, "code", code))) return NULL; if (unlikely(PyDict_SetItemString(scratch_dict, "type", (PyObject*)(&PyType_Type)))) return NULL; compiled = Py_CompileString( "out = type(code)(\n" " code.co_argcount, code.co_kwonlyargcount, code.co_nlocals, code.co_stacksize,\n" " code.co_flags, code.co_code, code.co_consts, code.co_names,\n" " code.co_varnames, code.co_filename, co_name, co_firstlineno,\n" " code.co_lnotab)\n", "", Py_file_input); if (!compiled) return NULL; result = PyEval_EvalCode(compiled, scratch_dict, scratch_dict); Py_DECREF(compiled); if (!result) PyErr_Print(); Py_DECREF(result); result = PyDict_GetItemString(scratch_dict, "out"); if (result) Py_INCREF(result); return result; } #else return NULL; #endif } 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) { (void) __pyx_cfilenm; (void) __Pyx_CLineForTraceback(__Pyx_PyThreadState_Current, c_line); } PyErr_Fetch(&exc_type, &exc_value, &exc_traceback); 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; 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; 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 PY_MAJOR_VERSION < 3 PyObject *py_srcfile = NULL; py_srcfile = PyString_FromString(filename); if (!py_srcfile) goto bad; #endif if (c_line) { #if PY_MAJOR_VERSION < 3 py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line); if (!py_funcname) goto bad; #else 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; #endif } else { #if PY_MAJOR_VERSION < 3 py_funcname = PyString_FromString(funcname); if (!py_funcname) goto bad; #endif } #if PY_MAJOR_VERSION < 3 py_code = __Pyx_PyCode_New( 0, 0, 0, 0, 0, 0, __pyx_empty_bytes, /*PyObject *code,*/ __pyx_empty_tuple, /*PyObject *consts,*/ __pyx_empty_tuple, /*PyObject *names,*/ __pyx_empty_tuple, /*PyObject *varnames,*/ __pyx_empty_tuple, /*PyObject *freevars,*/ __pyx_empty_tuple, /*PyObject *cellvars,*/ py_srcfile, /*PyObject *filename,*/ py_funcname, /*PyObject *name,*/ py_line, __pyx_empty_bytes /*PyObject *lnotab*/ ); Py_DECREF(py_srcfile); #else py_code = PyCode_NewEmpty(filename, funcname, py_line); #endif Py_XDECREF(py_funcname); return py_code; bad: Py_XDECREF(py_funcname); #if PY_MAJOR_VERSION < 3 Py_XDECREF(py_srcfile); #endif 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_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_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(int) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaError) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaError) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaGraphDependencyType_enum) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaGraphDependencyType_enum) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaGraphInstantiateResult) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaGraphInstantiateResult) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaLaunchMemSyncDomain) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaLaunchMemSyncDomain) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaLaunchAttributeID) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaLaunchAttributeID) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaAsyncNotificationType_enum) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaAsyncNotificationType_enum) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaDataType_t) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaDataType_t) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum libraryPropertyType_t) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum libraryPropertyType_t) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglFrameType_enum(enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum neg_one = (enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum) -1, const_zero = (enum __pyx_t_4cuda_7ccudart_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_7ccudart_cudaEglFrameType_enum) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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_7ccudart_cudaEglFrameType_enum), little, !is_unsigned); #else int one = 1; int little = (int)*(unsigned char *)&one; PyObject *from_bytes, *result = NULL; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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_7ccudart_cudaEglFrameType_enum)); if (!py_bytes) goto limited_bad; order_str = PyUnicode_FromString(little ? "little" : "big"); if (!order_str) goto limited_bad; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglResourceLocationFlags_enum(enum __pyx_t_4cuda_7ccudart_cudaEglResourceLocationFlags_enum value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const enum __pyx_t_4cuda_7ccudart_cudaEglResourceLocationFlags_enum neg_one = (enum __pyx_t_4cuda_7ccudart_cudaEglResourceLocationFlags_enum) -1, const_zero = (enum __pyx_t_4cuda_7ccudart_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_7ccudart_cudaEglResourceLocationFlags_enum) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglResourceLocationFlags_enum) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglResourceLocationFlags_enum) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglResourceLocationFlags_enum) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglResourceLocationFlags_enum) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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_7ccudart_cudaEglResourceLocationFlags_enum), little, !is_unsigned); #else int one = 1; int little = (int)*(unsigned char *)&one; PyObject *from_bytes, *result = NULL; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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_7ccudart_cudaEglResourceLocationFlags_enum)); if (!py_bytes) goto limited_bad; order_str = PyUnicode_FromString(little ? "little" : "big"); if (!order_str) goto limited_bad; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum neg_one = (enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum) -1, const_zero = (enum __pyx_t_4cuda_7ccudart_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_7ccudart_cudaEglColorFormat_enum) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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_7ccudart_cudaEglColorFormat_enum), little, !is_unsigned); #else int one = 1; int little = (int)*(unsigned char *)&one; PyObject *from_bytes, *result = NULL; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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_7ccudart_cudaEglColorFormat_enum)); if (!py_bytes) goto limited_bad; order_str = PyUnicode_FromString(little ? "little" : "big"); if (!order_str) goto limited_bad; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaChannelFormatKind) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaChannelFormatKind) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaMemoryType) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaMemoryType) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaMemcpyKind) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaMemcpyKind) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaAccessProperty) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaAccessProperty) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaStreamCaptureStatus) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaStreamCaptureStatus) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaStreamCaptureMode) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaStreamCaptureMode) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaSynchronizationPolicy) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaSynchronizationPolicy) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaClusterSchedulingPolicy) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaClusterSchedulingPolicy) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaStreamUpdateCaptureDependenciesFlags) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaStreamUpdateCaptureDependenciesFlags) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaUserObjectFlags) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaUserObjectFlags) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaUserObjectRetainFlags) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaUserObjectRetainFlags) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaGraphicsRegisterFlags) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaGraphicsRegisterFlags) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaGraphicsMapFlags) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaGraphicsMapFlags) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaGraphicsCubeFace) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaGraphicsCubeFace) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaResourceType) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaResourceType) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaResourceViewFormat) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaResourceViewFormat) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaFuncAttribute) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaFuncAttribute) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaFuncCache) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaFuncCache) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaSharedMemConfig) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaSharedMemConfig) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaSharedCarveout) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaSharedCarveout) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaComputeMode) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaComputeMode) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaLimit) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaLimit) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaMemoryAdvise) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaMemoryAdvise) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaMemRangeAttribute) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaMemRangeAttribute) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaFlushGPUDirectRDMAWritesOptions) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaFlushGPUDirectRDMAWritesOptions) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaGPUDirectRDMAWritesOrdering) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaGPUDirectRDMAWritesOrdering) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaFlushGPUDirectRDMAWritesScope) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaFlushGPUDirectRDMAWritesScope) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaFlushGPUDirectRDMAWritesTarget) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaFlushGPUDirectRDMAWritesTarget) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaDeviceAttr) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaDeviceAttr) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaMemPoolAttr) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaMemPoolAttr) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaMemLocationType) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaMemLocationType) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaMemAccessFlags) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaMemAccessFlags) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaMemAllocationType) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaMemAllocationType) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaMemAllocationHandleType) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaMemAllocationHandleType) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaGraphMemAttributeType) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaGraphMemAttributeType) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaDeviceP2PAttr) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaDeviceP2PAttr) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaExternalMemoryHandleType) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaExternalMemoryHandleType) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaExternalSemaphoreHandleType) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaExternalSemaphoreHandleType) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaCGScope) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaCGScope) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaGraphConditionalHandleFlags) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaGraphConditionalHandleFlags) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaGraphConditionalNodeType) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaGraphConditionalNodeType) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaGraphNodeType) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaGraphNodeType) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaGraphExecUpdateResult) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaGraphExecUpdateResult) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaGraphKernelNodeField) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaGraphKernelNodeField) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaGetDriverEntryPointFlags) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaGetDriverEntryPointFlags) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaDriverEntryPointQueryResult) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaDriverEntryPointQueryResult) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaGraphDebugDotFlags) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaGraphDebugDotFlags) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaGraphInstantiateFlags) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaGraphInstantiateFlags) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaDeviceNumaConfig) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaDeviceNumaConfig) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaSurfaceBoundaryMode) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaSurfaceBoundaryMode) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaSurfaceFormatMode) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaSurfaceFormatMode) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaTextureAddressMode) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaTextureAddressMode) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaTextureFilterMode) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaTextureFilterMode) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaTextureReadMode) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaTextureReadMode) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(enum cudaRoundMode) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum cudaRoundMode) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaGLDeviceList(enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList neg_one = (enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList) -1, const_zero = (enum __pyx_t_4cuda_7ccudart_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_7ccudart_cudaGLDeviceList) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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_7ccudart_cudaGLDeviceList), little, !is_unsigned); #else int one = 1; int little = (int)*(unsigned char *)&one; PyObject *from_bytes, *result = NULL; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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_7ccudart_cudaGLDeviceList)); if (!py_bytes) goto limited_bad; order_str = PyUnicode_FromString(little ? "little" : "big"); if (!order_str) goto limited_bad; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum____pyx_t_4cuda_7ccudart_cudaGLMapFlags(enum __pyx_t_4cuda_7ccudart_cudaGLMapFlags value) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const enum __pyx_t_4cuda_7ccudart_cudaGLMapFlags neg_one = (enum __pyx_t_4cuda_7ccudart_cudaGLMapFlags) -1, const_zero = (enum __pyx_t_4cuda_7ccudart_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_7ccudart_cudaGLMapFlags) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(enum __pyx_t_4cuda_7ccudart_cudaGLMapFlags) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum __pyx_t_4cuda_7ccudart_cudaGLMapFlags) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(enum __pyx_t_4cuda_7ccudart_cudaGLMapFlags) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(enum __pyx_t_4cuda_7ccudart_cudaGLMapFlags) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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_7ccudart_cudaGLMapFlags), little, !is_unsigned); #else int one = 1; int little = (int)*(unsigned char *)&one; PyObject *from_bytes, *result = NULL; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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_7ccudart_cudaGLMapFlags)); if (!py_bytes) goto limited_bad; order_str = PyUnicode_FromString(little ? "little" : "big"); if (!order_str) goto limited_bad; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntFromPy */ static CYTHON_INLINE unsigned PY_LONG_LONG __Pyx_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(unsigned PY_LONG_LONG) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(unsigned PY_LONG_LONG, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (unsigned PY_LONG_LONG) val; } } #endif if (unlikely(!PyLong_Check(x))) { unsigned PY_LONG_LONG val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (unsigned PY_LONG_LONG) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } 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)) #endif } } 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)) #ifdef HAVE_LONG_LONG } 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)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(unsigned int) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(unsigned int, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (unsigned int) val; } } #endif if (unlikely(!PyLong_Check(x))) { unsigned int val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (unsigned int) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(unsigned int) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(unsigned int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(unsigned int) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(unsigned int, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(int) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(int, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (int) val; } } #endif if (unlikely(!PyLong_Check(x))) { int val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (int) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(int) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(int) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(size_t) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(size_t, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (size_t) val; } } #endif if (unlikely(!PyLong_Check(x))) { size_t val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (size_t) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(size_t) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(size_t, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(size_t) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(size_t, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(unsigned short) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(unsigned short, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (unsigned short) val; } } #endif if (unlikely(!PyLong_Check(x))) { unsigned short val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (unsigned short) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(unsigned short) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(unsigned short, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(unsigned short) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(unsigned short, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(PY_LONG_LONG) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(PY_LONG_LONG, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (PY_LONG_LONG) val; } } #endif if (unlikely(!PyLong_Check(x))) { PY_LONG_LONG val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (PY_LONG_LONG) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } 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)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(PY_LONG_LONG) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(PY_LONG_LONG, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(unsigned char) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(unsigned char, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (unsigned char) val; } } #endif if (unlikely(!PyLong_Check(x))) { unsigned char val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (unsigned char) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(unsigned char) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(unsigned char, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(unsigned char) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(unsigned char, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(uint32_t) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(uint32_t, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (uint32_t) val; } } #endif if (unlikely(!PyLong_Check(x))) { uint32_t val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (uint32_t) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(uint32_t) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(uint32_t, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(uint32_t) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(uint32_t, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(unsigned PY_LONG_LONG) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(unsigned PY_LONG_LONG) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(unsigned int) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(unsigned int) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(int) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntFromPy */ static CYTHON_INLINE enum cudaChannelFormatKind __Pyx_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaChannelFormatKind) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaChannelFormatKind, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaChannelFormatKind) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaChannelFormatKind val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaChannelFormatKind) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaChannelFormatKind) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaChannelFormatKind, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaChannelFormatKind) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaChannelFormatKind, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaMemcpyKind) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaMemcpyKind, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaMemcpyKind) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaMemcpyKind val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaMemcpyKind) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaMemcpyKind) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemcpyKind, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaMemcpyKind) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemcpyKind, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaAccessProperty) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaAccessProperty, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaAccessProperty) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaAccessProperty val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaAccessProperty) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaAccessProperty) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaAccessProperty, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaAccessProperty) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaAccessProperty, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaResourceType) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaResourceType, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaResourceType) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaResourceType val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaResourceType) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaResourceType) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaResourceType, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaResourceType) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaResourceType, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaResourceViewFormat) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaResourceViewFormat, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaResourceViewFormat) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaResourceViewFormat val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaResourceViewFormat) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaResourceViewFormat) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaResourceViewFormat, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaResourceViewFormat) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaResourceViewFormat, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaMemoryType) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaMemoryType, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaMemoryType) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaMemoryType val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaMemoryType) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaMemoryType) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemoryType, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaMemoryType) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemoryType, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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 enum cudaMemLocationType __Pyx_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaMemLocationType) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaMemLocationType, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaMemLocationType) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaMemLocationType val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaMemLocationType) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaMemLocationType) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemLocationType, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaMemLocationType) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemLocationType, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaMemAccessFlags) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaMemAccessFlags, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaMemAccessFlags) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaMemAccessFlags val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaMemAccessFlags) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaMemAccessFlags) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemAccessFlags, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaMemAccessFlags) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemAccessFlags, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaMemAllocationType) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaMemAllocationType, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaMemAllocationType) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaMemAllocationType val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaMemAllocationType) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaMemAllocationType) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemAllocationType, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaMemAllocationType) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemAllocationType, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaMemAllocationHandleType) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaMemAllocationHandleType, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaMemAllocationHandleType) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaMemAllocationHandleType val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaMemAllocationHandleType) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaMemAllocationHandleType) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemAllocationHandleType, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaMemAllocationHandleType) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemAllocationHandleType, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(unsigned short) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(unsigned short) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntFromPy */ static CYTHON_INLINE char __Pyx_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(char) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(char, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (char) val; } } #endif if (unlikely(!PyLong_Check(x))) { char val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (char) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(char) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(char, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(char) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(char, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaExternalMemoryHandleType) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaExternalMemoryHandleType, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaExternalMemoryHandleType) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaExternalMemoryHandleType val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaExternalMemoryHandleType) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaExternalMemoryHandleType) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaExternalMemoryHandleType, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaExternalMemoryHandleType) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaExternalMemoryHandleType, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaExternalSemaphoreHandleType) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaExternalSemaphoreHandleType, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaExternalSemaphoreHandleType) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaExternalSemaphoreHandleType val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaExternalSemaphoreHandleType) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaExternalSemaphoreHandleType) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaExternalSemaphoreHandleType, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaExternalSemaphoreHandleType) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaExternalSemaphoreHandleType, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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 cudaGraphConditionalNodeType __Pyx_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaGraphConditionalNodeType) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaGraphConditionalNodeType, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaGraphConditionalNodeType) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaGraphConditionalNodeType val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaGraphConditionalNodeType) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaGraphConditionalNodeType) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphConditionalNodeType, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaGraphConditionalNodeType) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphConditionalNodeType, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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 cudaGraphNodeType __Pyx_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaGraphNodeType) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaGraphNodeType, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaGraphNodeType) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaGraphNodeType val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaGraphNodeType) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaGraphNodeType) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphNodeType, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaGraphNodeType) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphNodeType, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(PY_LONG_LONG) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(PY_LONG_LONG) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(unsigned char) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(unsigned char) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntFromPy */ static CYTHON_INLINE enum cudaGraphInstantiateResult __Pyx_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaGraphInstantiateResult) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaGraphInstantiateResult, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaGraphInstantiateResult) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaGraphInstantiateResult val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaGraphInstantiateResult) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaGraphInstantiateResult) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphInstantiateResult, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaGraphInstantiateResult) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphInstantiateResult, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaGraphExecUpdateResult) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaGraphExecUpdateResult, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaGraphExecUpdateResult) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaGraphExecUpdateResult val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaGraphExecUpdateResult) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaGraphExecUpdateResult) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphExecUpdateResult, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaGraphExecUpdateResult) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphExecUpdateResult, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaGraphKernelNodeField) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaGraphKernelNodeField, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaGraphKernelNodeField) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaGraphKernelNodeField val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaGraphKernelNodeField) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaGraphKernelNodeField) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphKernelNodeField, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaGraphKernelNodeField) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphKernelNodeField, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaSynchronizationPolicy) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaSynchronizationPolicy, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaSynchronizationPolicy) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaSynchronizationPolicy val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaSynchronizationPolicy) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaSynchronizationPolicy) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaSynchronizationPolicy, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaSynchronizationPolicy) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaSynchronizationPolicy, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaClusterSchedulingPolicy) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaClusterSchedulingPolicy, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaClusterSchedulingPolicy) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaClusterSchedulingPolicy val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaClusterSchedulingPolicy) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaClusterSchedulingPolicy) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaClusterSchedulingPolicy, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaClusterSchedulingPolicy) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaClusterSchedulingPolicy, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaLaunchMemSyncDomain) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaLaunchMemSyncDomain, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaLaunchMemSyncDomain) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaLaunchMemSyncDomain val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaLaunchMemSyncDomain) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaLaunchMemSyncDomain) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaLaunchMemSyncDomain, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaLaunchMemSyncDomain) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaLaunchMemSyncDomain, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaLaunchAttributeID) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaLaunchAttributeID, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaLaunchAttributeID) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaLaunchAttributeID val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaLaunchAttributeID) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaLaunchAttributeID) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaLaunchAttributeID, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaLaunchAttributeID) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaLaunchAttributeID, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaAsyncNotificationType_enum) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaAsyncNotificationType_enum, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaAsyncNotificationType_enum) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaAsyncNotificationType_enum val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaAsyncNotificationType_enum) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } 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)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaAsyncNotificationType_enum) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaAsyncNotificationType_enum, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaTextureAddressMode) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaTextureAddressMode, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaTextureAddressMode) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaTextureAddressMode val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaTextureAddressMode) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaTextureAddressMode) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaTextureAddressMode, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaTextureAddressMode) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaTextureAddressMode, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaTextureFilterMode) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaTextureFilterMode, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaTextureFilterMode) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaTextureFilterMode val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaTextureFilterMode) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaTextureFilterMode) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaTextureFilterMode, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaTextureFilterMode) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaTextureFilterMode, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaTextureReadMode) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaTextureReadMode, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaTextureReadMode) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaTextureReadMode val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaTextureReadMode) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaTextureReadMode) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaTextureReadMode, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaTextureReadMode) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaTextureReadMode, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_7ccudart_cudaEglFrameType_enum __Pyx_PyInt_As_enum____pyx_t_4cuda_7ccudart_cudaEglFrameType_enum(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum neg_one = (enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum) -1, const_zero = (enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum) -1; val = __Pyx_PyInt_As_enum____pyx_t_4cuda_7ccudart_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_7ccudart_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_7ccudart_cudaEglFrameType_enum) > 1 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if ((8 * sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum) >= 2 * PyLong_SHIFT)) { return (enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum) (((((enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum)digits[0])); } } break; case 3: if ((8 * sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum) > 2 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_7ccudart_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_7ccudart_cudaEglFrameType_enum) >= 3 * PyLong_SHIFT)) { return (enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum) (((((((enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum)digits[2]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum)digits[0])); } } break; case 4: if ((8 * sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum) > 3 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_7ccudart_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_7ccudart_cudaEglFrameType_enum) >= 4 * PyLong_SHIFT)) { return (enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum) (((((((((enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum)digits[3]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum)digits[2]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_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_7ccudart_cudaEglFrameType_enum) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if ((sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum) <= sizeof(unsigned long))) { __PYX_VERIFY_RETURN_INT_EXC(enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS if (__Pyx_PyLong_IsCompact(x)) { __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_7ccudart_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_7ccudart_cudaEglFrameType_enum) - 1 > 1 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if ((8 * sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum) - 1 > 2 * PyLong_SHIFT)) { return (enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum) (((enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum)-1)*(((((enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum)digits[0]))); } } break; case 2: if ((8 * sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum) > 1 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if ((8 * sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum) - 1 > 2 * PyLong_SHIFT)) { return (enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum) ((((((enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum)digits[0]))); } } break; case -3: if ((8 * sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum) - 1 > 2 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_7ccudart_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_7ccudart_cudaEglFrameType_enum) - 1 > 3 * PyLong_SHIFT)) { return (enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum) (((enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum)-1)*(((((((enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum)digits[2]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum)digits[0]))); } } break; case 3: if ((8 * sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum) > 2 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_7ccudart_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_7ccudart_cudaEglFrameType_enum) - 1 > 3 * PyLong_SHIFT)) { return (enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum) ((((((((enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum)digits[2]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum)digits[0]))); } } break; case -4: if ((8 * sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum) - 1 > 3 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_7ccudart_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_7ccudart_cudaEglFrameType_enum) - 1 > 4 * PyLong_SHIFT)) { return (enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum) (((enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum)-1)*(((((((((enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum)digits[3]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum)digits[2]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum)digits[0]))); } } break; case 4: if ((8 * sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum) > 3 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_7ccudart_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_7ccudart_cudaEglFrameType_enum) - 1 > 4 * PyLong_SHIFT)) { return (enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum) ((((((((((enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum)digits[3]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum)digits[2]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum)digits[0]))); } } break; } } #endif if ((sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum) <= sizeof(long))) { __PYX_VERIFY_RETURN_INT_EXC(enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { enum __pyx_t_4cuda_7ccudart_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_7ccudart_cudaEglFrameType_enum) -1; #endif if (unlikely(ret)) return (enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum) -1; return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum"); return (enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum"); return (enum __pyx_t_4cuda_7ccudart_cudaEglFrameType_enum) -1; } /* CIntFromPy */ static CYTHON_INLINE enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum __Pyx_PyInt_As_enum____pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum neg_one = (enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum) -1, const_zero = (enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum) -1; val = __Pyx_PyInt_As_enum____pyx_t_4cuda_7ccudart_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_7ccudart_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_7ccudart_cudaEglColorFormat_enum) > 1 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if ((8 * sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum) >= 2 * PyLong_SHIFT)) { return (enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum) (((((enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum)digits[0])); } } break; case 3: if ((8 * sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum) > 2 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_7ccudart_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_7ccudart_cudaEglColorFormat_enum) >= 3 * PyLong_SHIFT)) { return (enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum) (((((((enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum)digits[2]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum)digits[0])); } } break; case 4: if ((8 * sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum) > 3 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_7ccudart_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_7ccudart_cudaEglColorFormat_enum) >= 4 * PyLong_SHIFT)) { return (enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum) (((((((((enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum)digits[3]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum)digits[2]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_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_7ccudart_cudaEglColorFormat_enum) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if ((sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum) <= sizeof(unsigned long))) { __PYX_VERIFY_RETURN_INT_EXC(enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS if (__Pyx_PyLong_IsCompact(x)) { __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_7ccudart_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_7ccudart_cudaEglColorFormat_enum) - 1 > 1 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if ((8 * sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum) - 1 > 2 * PyLong_SHIFT)) { return (enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum) (((enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum)-1)*(((((enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum)digits[0]))); } } break; case 2: if ((8 * sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum) > 1 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if ((8 * sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum) - 1 > 2 * PyLong_SHIFT)) { return (enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum) ((((((enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum)digits[0]))); } } break; case -3: if ((8 * sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum) - 1 > 2 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_7ccudart_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_7ccudart_cudaEglColorFormat_enum) - 1 > 3 * PyLong_SHIFT)) { return (enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum) (((enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum)-1)*(((((((enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum)digits[2]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum)digits[0]))); } } break; case 3: if ((8 * sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum) > 2 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_7ccudart_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_7ccudart_cudaEglColorFormat_enum) - 1 > 3 * PyLong_SHIFT)) { return (enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum) ((((((((enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum)digits[2]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum)digits[0]))); } } break; case -4: if ((8 * sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum) - 1 > 3 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_7ccudart_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_7ccudart_cudaEglColorFormat_enum) - 1 > 4 * PyLong_SHIFT)) { return (enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum) (((enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum)-1)*(((((((((enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum)digits[3]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum)digits[2]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum)digits[0]))); } } break; case 4: if ((8 * sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum) > 3 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_7ccudart_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_7ccudart_cudaEglColorFormat_enum) - 1 > 4 * PyLong_SHIFT)) { return (enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum) ((((((((((enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum)digits[3]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum)digits[2]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum)digits[0]))); } } break; } } #endif if ((sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum) <= sizeof(long))) { __PYX_VERIFY_RETURN_INT_EXC(enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { enum __pyx_t_4cuda_7ccudart_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_7ccudart_cudaEglColorFormat_enum) -1; #endif if (unlikely(ret)) return (enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum) -1; return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum"); return (enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum"); return (enum __pyx_t_4cuda_7ccudart_cudaEglColorFormat_enum) -1; } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(uint32_t) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(uint32_t) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntFromPy */ static CYTHON_INLINE enum cudaLimit __Pyx_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaLimit) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaLimit, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaLimit) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaLimit val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaLimit) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaLimit) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaLimit, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaLimit) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaLimit, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaFuncCache) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaFuncCache, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaFuncCache) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaFuncCache val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaFuncCache) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaFuncCache) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaFuncCache, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaFuncCache) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaFuncCache, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaFlushGPUDirectRDMAWritesTarget) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaFlushGPUDirectRDMAWritesTarget, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaFlushGPUDirectRDMAWritesTarget) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaFlushGPUDirectRDMAWritesTarget val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaFlushGPUDirectRDMAWritesTarget) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaFlushGPUDirectRDMAWritesTarget) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaFlushGPUDirectRDMAWritesTarget, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaFlushGPUDirectRDMAWritesTarget) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaFlushGPUDirectRDMAWritesTarget, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaFlushGPUDirectRDMAWritesScope) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaFlushGPUDirectRDMAWritesScope, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaFlushGPUDirectRDMAWritesScope) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaFlushGPUDirectRDMAWritesScope val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaFlushGPUDirectRDMAWritesScope) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaFlushGPUDirectRDMAWritesScope) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaFlushGPUDirectRDMAWritesScope, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaFlushGPUDirectRDMAWritesScope) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaFlushGPUDirectRDMAWritesScope, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaSharedMemConfig) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaSharedMemConfig, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaSharedMemConfig) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaSharedMemConfig val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaSharedMemConfig) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaSharedMemConfig) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaSharedMemConfig, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaSharedMemConfig) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaSharedMemConfig, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaError) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaError, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaError) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaError val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaError) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaError) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaError, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaError) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaError, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaDeviceAttr) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaDeviceAttr, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaDeviceAttr) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaDeviceAttr val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaDeviceAttr) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaDeviceAttr) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaDeviceAttr, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaDeviceAttr) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaDeviceAttr, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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 cudaDeviceP2PAttr __Pyx_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaDeviceP2PAttr) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaDeviceP2PAttr, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaDeviceP2PAttr) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaDeviceP2PAttr val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaDeviceP2PAttr) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaDeviceP2PAttr) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaDeviceP2PAttr, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaDeviceP2PAttr) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaDeviceP2PAttr, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaStreamCaptureMode) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaStreamCaptureMode, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaStreamCaptureMode) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaStreamCaptureMode val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaStreamCaptureMode) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaStreamCaptureMode) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaStreamCaptureMode, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaStreamCaptureMode) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaStreamCaptureMode, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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; } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_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 PyInt_FromLong((long) value); } else if (sizeof(long) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } 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 PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { 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; PyObject *py_bytes = NULL, *arg_tuple = NULL, *kwds = 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; arg_tuple = PyTuple_Pack(2, py_bytes, order_str); if (!arg_tuple) goto limited_bad; if (!is_unsigned) { kwds = PyDict_New(); if (!kwds) goto limited_bad; if (PyDict_SetItemString(kwds, "signed", __Pyx_NewRef(Py_True))) goto limited_bad; } result = PyObject_Call(from_bytes, arg_tuple, kwds); limited_bad: Py_XDECREF(kwds); Py_XDECREF(arg_tuple); Py_XDECREF(order_str); Py_XDECREF(py_bytes); Py_XDECREF(from_bytes); return result; #endif } } /* CIntFromPy */ static CYTHON_INLINE enum cudaFuncAttribute __Pyx_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaFuncAttribute) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaFuncAttribute, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaFuncAttribute) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaFuncAttribute val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaFuncAttribute) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaFuncAttribute) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaFuncAttribute, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaFuncAttribute) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaFuncAttribute, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaMemoryAdvise) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaMemoryAdvise, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaMemoryAdvise) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaMemoryAdvise val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaMemoryAdvise) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaMemoryAdvise) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemoryAdvise, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaMemoryAdvise) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemoryAdvise, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaMemRangeAttribute) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaMemRangeAttribute, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaMemRangeAttribute) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaMemRangeAttribute val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaMemRangeAttribute) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaMemRangeAttribute) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemRangeAttribute, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaMemRangeAttribute) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemRangeAttribute, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaMemPoolAttr) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaMemPoolAttr, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaMemPoolAttr) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaMemPoolAttr val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaMemPoolAttr) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaMemPoolAttr) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemPoolAttr, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaMemPoolAttr) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemPoolAttr, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum cudaGraphMemAttributeType) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum cudaGraphMemAttributeType, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum cudaGraphMemAttributeType) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum cudaGraphMemAttributeType val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum cudaGraphMemAttributeType) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaGraphMemAttributeType) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphMemAttributeType, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum cudaGraphMemAttributeType) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphMemAttributeType, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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_7ccudart_cudaGLDeviceList __Pyx_PyInt_As_enum____pyx_t_4cuda_7ccudart_cudaGLDeviceList(PyObject *x) { #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif const enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList neg_one = (enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList) -1, const_zero = (enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList) 0; #ifdef __Pyx_HAS_GCC_DIAGNOSTIC #pragma GCC diagnostic pop #endif const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList) val; } } #endif if (unlikely(!PyLong_Check(x))) { enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList) -1; val = __Pyx_PyInt_As_enum____pyx_t_4cuda_7ccudart_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_7ccudart_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_7ccudart_cudaGLDeviceList) > 1 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if ((8 * sizeof(enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList) >= 2 * PyLong_SHIFT)) { return (enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList) (((((enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList)digits[0])); } } break; case 3: if ((8 * sizeof(enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList) > 2 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_7ccudart_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_7ccudart_cudaGLDeviceList) >= 3 * PyLong_SHIFT)) { return (enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList) (((((((enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList)digits[2]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList)digits[0])); } } break; case 4: if ((8 * sizeof(enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList) > 3 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_7ccudart_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_7ccudart_cudaGLDeviceList) >= 4 * PyLong_SHIFT)) { return (enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList) (((((((((enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList)digits[3]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList)digits[2]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_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_7ccudart_cudaGLDeviceList) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if ((sizeof(enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList) <= sizeof(unsigned long))) { __PYX_VERIFY_RETURN_INT_EXC(enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS if (__Pyx_PyLong_IsCompact(x)) { __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_7ccudart_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_7ccudart_cudaGLDeviceList) - 1 > 1 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if ((8 * sizeof(enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList) - 1 > 2 * PyLong_SHIFT)) { return (enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList) (((enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList)-1)*(((((enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList)digits[0]))); } } break; case 2: if ((8 * sizeof(enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList) > 1 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if ((8 * sizeof(enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList) - 1 > 2 * PyLong_SHIFT)) { return (enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList) ((((((enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList)digits[0]))); } } break; case -3: if ((8 * sizeof(enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList) - 1 > 2 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_7ccudart_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_7ccudart_cudaGLDeviceList) - 1 > 3 * PyLong_SHIFT)) { return (enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList) (((enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList)-1)*(((((((enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList)digits[2]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList)digits[0]))); } } break; case 3: if ((8 * sizeof(enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList) > 2 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_7ccudart_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_7ccudart_cudaGLDeviceList) - 1 > 3 * PyLong_SHIFT)) { return (enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList) ((((((((enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList)digits[2]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList)digits[0]))); } } break; case -4: if ((8 * sizeof(enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList) - 1 > 3 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_7ccudart_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_7ccudart_cudaGLDeviceList) - 1 > 4 * PyLong_SHIFT)) { return (enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList) (((enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList)-1)*(((((((((enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList)digits[3]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList)digits[2]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList)digits[0]))); } } break; case 4: if ((8 * sizeof(enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList) > 3 * PyLong_SHIFT)) { if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) { __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_7ccudart_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_7ccudart_cudaGLDeviceList) - 1 > 4 * PyLong_SHIFT)) { return (enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList) ((((((((((enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList)digits[3]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList)digits[2]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList)digits[0]))); } } break; } } #endif if ((sizeof(enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList) <= sizeof(long))) { __PYX_VERIFY_RETURN_INT_EXC(enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if ((sizeof(enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { enum __pyx_t_4cuda_7ccudart_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_7ccudart_cudaGLDeviceList) -1; #endif if (unlikely(ret)) return (enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList) -1; return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList"); return (enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList"); return (enum __pyx_t_4cuda_7ccudart_cudaGLDeviceList) -1; } /* FormatTypeName */ #if CYTHON_COMPILING_IN_LIMITED_API static __Pyx_TypeName __Pyx_PyType_GetName(PyTypeObject* tp) { PyObject *name = __Pyx_PyObject_GetAttrStr((PyObject *)tp, __pyx_n_s_name_3); if (unlikely(name == NULL) || unlikely(!PyUnicode_Check(name))) { PyErr_Clear(); Py_XDECREF(name); name = __Pyx_NewRef(__pyx_n_s__910); } return name; } #endif /* CIntFromPy */ static CYTHON_INLINE long __Pyx_PyInt_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 PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if ((sizeof(long) < sizeof(long))) { __PYX_VERIFY_RETURN_INT(long, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (long) val; } } #endif if (unlikely(!PyLong_Check(x))) { long val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (long) -1; val = __Pyx_PyInt_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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(long) <= sizeof(unsigned PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } 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)) #ifdef HAVE_LONG_LONG } else if ((sizeof(long) <= sizeof(PY_LONG_LONG))) { __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { 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; } /* SwapException */ #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 /* PyObjectCallMethod1 */ #if !(CYTHON_VECTORCALL && __PYX_LIMITED_VERSION_HEX >= 0x030C00A2) 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 >= 0x030C00A2 PyObject *args[2] = {obj, arg}; (void) __Pyx_PyObject_GetMethod; (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 } /* CoroutineBase */ #include #if PY_VERSION_HEX >= 0x030b00a6 && !defined(PYPY_VERSION) #ifndef Py_BUILD_CORE #define Py_BUILD_CORE 1 #endif #include "internal/pycore_frame.h" #endif #define __Pyx_Coroutine_Undelegate(gen) 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; } #if PY_VERSION_HEX >= 0x030300A0 else if (likely(__Pyx_IS_TYPE(ev, (PyTypeObject*)PyExc_StopIteration))) { value = ((PyStopIterationObject *)ev)->value; Py_INCREF(value); Py_DECREF(ev); } #endif else if (unlikely(PyTuple_Check(ev))) { if (PyTuple_GET_SIZE(ev) >= 1) { #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS value = PyTuple_GET_ITEM(ev, 0); Py_INCREF(value); #else value = PySequence_ITEM(ev, 0); #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 PY_VERSION_HEX >= 0x030300A0 value = ((PyStopIterationObject *)ev)->value; Py_INCREF(value); Py_DECREF(ev); #else { PyObject* args = __Pyx_PyObject_GetAttrStr(ev, __pyx_n_s_args); Py_DECREF(ev); if (likely(args)) { value = PySequence_GetItem(args, 0); Py_DECREF(args); } if (unlikely(!value)) { __Pyx_ErrRestore(NULL, NULL, NULL); Py_INCREF(Py_None); value = Py_None; } } #endif *pvalue = value; return 0; } 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); } #define __Pyx_Coroutine_NotStartedError(gen) (__Pyx__Coroutine_NotStartedError(gen), (PyObject*)NULL) static void __Pyx__Coroutine_NotStartedError(PyObject *gen) { const char *msg; CYTHON_MAYBE_UNUSED_VAR(gen); if ((0)) { #ifdef __Pyx_Coroutine_USED } else if (__Pyx_Coroutine_Check(gen)) { msg = "can't send non-None value to a just-started coroutine"; #endif #ifdef __Pyx_AsyncGen_USED } else if (__Pyx_AsyncGen_CheckExact(gen)) { msg = "can't send non-None value to a just-started async generator"; #endif } else { msg = "can't send non-None value to a just-started generator"; } PyErr_SetString(PyExc_TypeError, msg); } #define __Pyx_Coroutine_AlreadyTerminatedError(gen, value, closing) (__Pyx__Coroutine_AlreadyTerminatedError(gen, value, closing), (PyObject*)NULL) 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(__Pyx_PyExc_StopAsyncIteration); else #endif PyErr_SetNone(PyExc_StopIteration); } } static PyObject *__Pyx_Coroutine_SendEx(__pyx_CoroutineObject *self, PyObject *value, int closing) { __Pyx_PyThreadState_declare PyThreadState *tstate; __Pyx_ExcInfoStruct *exc_state; PyObject *retval; assert(!self->is_running); if (unlikely(self->resume_label == 0)) { if (unlikely(value && value != Py_None)) { return __Pyx_Coroutine_NotStartedError((PyObject*)self); } } if (unlikely(self->resume_label == -1)) { return __Pyx_Coroutine_AlreadyTerminatedError((PyObject*)self, value, closing); } #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_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 self->is_running = 1; retval = self->body(self, tstate, value); self->is_running = 0; #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 return retval; } static CYTHON_INLINE void __Pyx_Coroutine_ResetFrameBackpointer(__Pyx_ExcInfoStruct *exc_state) { #if CYTHON_COMPILING_IN_PYPY 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 } static CYTHON_INLINE PyObject *__Pyx_Coroutine_MethodReturn(PyObject* gen, PyObject *retval) { CYTHON_MAYBE_UNUSED_VAR(gen); if (unlikely(!retval)) { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign if (!__Pyx_PyErr_Occurred()) { PyObject *exc = PyExc_StopIteration; #ifdef __Pyx_AsyncGen_USED if (__Pyx_AsyncGen_CheckExact(gen)) exc = __Pyx_PyExc_StopAsyncIteration; #endif __Pyx_PyErr_SetNone(exc); } } return retval; } #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03030000 && (defined(__linux__) || PY_VERSION_HEX >= 0x030600B3) 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 PyObject *__Pyx_Coroutine_FinishDelegation(__pyx_CoroutineObject *gen) { PyObject *ret; PyObject *val = NULL; __Pyx_Coroutine_Undelegate(gen); __Pyx_PyGen__FetchStopIterationValue(__Pyx_PyThreadState_Current, &val); ret = __Pyx_Coroutine_SendEx(gen, val, 0); Py_XDECREF(val); return ret; } static PyObject *__Pyx_Coroutine_Send(PyObject *self, PyObject *value) { PyObject *retval; __pyx_CoroutineObject *gen = (__pyx_CoroutineObject*) self; PyObject *yf = gen->yieldfrom; if (unlikely(gen->is_running)) return __Pyx_Coroutine_AlreadyRunningError(gen); if (yf) { PyObject *ret; gen->is_running = 1; #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 && PY_VERSION_HEX >= 0x03030000 && (defined(__linux__) || PY_VERSION_HEX >= 0x030600B3) if (PyGen_CheckExact(yf)) { ret = __Pyx_PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value); } else #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03050000 && defined(PyCoro_CheckExact) && (defined(__linux__) || PY_VERSION_HEX >= 0x030600B3) if (PyCoro_CheckExact(yf)) { ret = __Pyx_PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value); } else #endif { if (value == Py_None) ret = __Pyx_PyObject_GetIterNextFunc(yf)(yf); else ret = __Pyx_PyObject_CallMethod1(yf, __pyx_n_s_send, value); } gen->is_running = 0; if (likely(ret)) { return ret; } retval = __Pyx_Coroutine_FinishDelegation(gen); } else { retval = __Pyx_Coroutine_SendEx(gen, value, 0); } return __Pyx_Coroutine_MethodReturn(self, retval); } static int __Pyx_Coroutine_CloseIter(__pyx_CoroutineObject *gen, PyObject *yf) { PyObject *retval = NULL; int err = 0; #ifdef __Pyx_Generator_USED if (__Pyx_Generator_CheckExact(yf)) { retval = __Pyx_Coroutine_Close(yf); if (!retval) return -1; } else #endif #ifdef __Pyx_Coroutine_USED if (__Pyx_Coroutine_Check(yf)) { retval = __Pyx_Coroutine_Close(yf); if (!retval) return -1; } else if (__Pyx_CoroutineAwait_CheckExact(yf)) { retval = __Pyx_CoroutineAwait_Close((__pyx_CoroutineAwaitObject*)yf, NULL); if (!retval) return -1; } else #endif #ifdef __Pyx_AsyncGen_USED if (__pyx_PyAsyncGenASend_CheckExact(yf)) { retval = __Pyx_async_gen_asend_close(yf, NULL); } else if (__pyx_PyAsyncGenAThrow_CheckExact(yf)) { retval = __Pyx_async_gen_athrow_close(yf, NULL); } else #endif { PyObject *meth; gen->is_running = 1; meth = __Pyx_PyObject_GetAttrStrNoError(yf, __pyx_n_s_close); if (unlikely(!meth)) { if (unlikely(PyErr_Occurred())) { PyErr_WriteUnraisable(yf); } } else { retval = __Pyx_PyObject_CallNoArg(meth); Py_DECREF(meth); if (unlikely(!retval)) err = -1; } gen->is_running = 0; } Py_XDECREF(retval); return err; } static PyObject *__Pyx_Generator_Next(PyObject *self) { __pyx_CoroutineObject *gen = (__pyx_CoroutineObject*) self; PyObject *yf = gen->yieldfrom; if (unlikely(gen->is_running)) return __Pyx_Coroutine_AlreadyRunningError(gen); if (yf) { PyObject *ret; gen->is_running = 1; #ifdef __Pyx_Generator_USED if (__Pyx_Generator_CheckExact(yf)) { ret = __Pyx_Generator_Next(yf); } else #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03030000 && (defined(__linux__) || PY_VERSION_HEX >= 0x030600B3) if (PyGen_CheckExact(yf)) { ret = __Pyx_PyGen_Send((PyGenObject*)yf, NULL); } else #endif #ifdef __Pyx_Coroutine_USED if (__Pyx_Coroutine_Check(yf)) { ret = __Pyx_Coroutine_Send(yf, Py_None); } else #endif ret = __Pyx_PyObject_GetIterNextFunc(yf)(yf); gen->is_running = 0; if (likely(ret)) { return ret; } return __Pyx_Coroutine_FinishDelegation(gen); } return __Pyx_Coroutine_SendEx(gen, Py_None, 0); } static PyObject *__Pyx_Coroutine_Close_Method(PyObject *self, PyObject *arg) { CYTHON_UNUSED_VAR(arg); return __Pyx_Coroutine_Close(self); } static PyObject *__Pyx_Coroutine_Close(PyObject *self) { __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self; PyObject *retval, *raised_exception; PyObject *yf = gen->yieldfrom; int err = 0; if (unlikely(gen->is_running)) return __Pyx_Coroutine_AlreadyRunningError(gen); 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); retval = __Pyx_Coroutine_SendEx(gen, NULL, 1); if (unlikely(retval)) { const char *msg; Py_DECREF(retval); 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)) { #if PY_VERSION_HEX < 0x03060000 msg = "async generator ignored GeneratorExit - might require Python 3.6+ finalisation (PEP 525)"; #else msg = "async generator ignored GeneratorExit"; #endif #endif } else { msg = "generator ignored GeneratorExit"; } PyErr_SetString(PyExc_RuntimeError, msg); return NULL; } raised_exception = PyErr_Occurred(); if (likely(!raised_exception || __Pyx_PyErr_GivenExceptionMatches2(raised_exception, PyExc_GeneratorExit, PyExc_StopIteration))) { if (raised_exception) PyErr_Clear(); Py_INCREF(Py_None); return Py_None; } return NULL; } 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 = gen->yieldfrom; if (unlikely(gen->is_running)) return __Pyx_Coroutine_AlreadyRunningError(gen); if (yf) { 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) return __Pyx_Coroutine_MethodReturn(self, __Pyx_Coroutine_SendEx(gen, NULL, 0)); goto throw_here; } gen->is_running = 1; 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_n_s_throw); if (unlikely(!meth)) { Py_DECREF(yf); if (unlikely(PyErr_Occurred())) { gen->is_running = 0; return NULL; } __Pyx_Coroutine_Undelegate(gen); gen->is_running = 0; 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); } gen->is_running = 0; Py_DECREF(yf); if (!ret) { ret = __Pyx_Coroutine_FinishDelegation(gen); } return __Pyx_Coroutine_MethodReturn(self, ret); } throw_here: __Pyx_Raise(typ, val, tb, NULL); return __Pyx_Coroutine_MethodReturn(self, __Pyx_Coroutine_SendEx(gen, NULL, 0)); } static PyObject *__Pyx_Coroutine_Throw(PyObject *self, PyObject *args) { PyObject *typ; PyObject *val = NULL; PyObject *tb = NULL; if (unlikely(!PyArg_UnpackTuple(args, (char *)"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) { 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); Py_CLEAR(gen->yieldfrom); __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 (gen->gi_weakreflist != NULL) PyObject_ClearWeakRefs(self); if (gen->resume_label >= 0) { PyObject_GC_Track(self); #if PY_VERSION_HEX >= 0x030400a1 && CYTHON_USE_TP_FINALIZE if (unlikely(PyObject_CallFinalizerFromDealloc(self))) #else Py_TYPE(gen)->tp_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); } 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; } #if !CYTHON_USE_TP_FINALIZE assert(self->ob_refcnt == 0); __Pyx_SET_REFCNT(self, 1); #endif __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 PY_MAJOR_VERSION >= 3 || defined(PyErr_WarnFormat) if (unlikely(PyErr_WarnFormat(PyExc_RuntimeWarning, 1, "coroutine '%.50S' was never awaited", gen->gi_qualname) < 0)) PyErr_WriteUnraisable(self); #else {PyObject *msg; char *cmsg; #if CYTHON_COMPILING_IN_PYPY msg = NULL; cmsg = (char*) "coroutine was never awaited"; #else char *cname; PyObject *qualname; qualname = gen->gi_qualname; cname = PyString_AS_STRING(qualname); msg = PyString_FromFormat("coroutine '%.50s' was never awaited", cname); if (unlikely(!msg)) { PyErr_Clear(); cmsg = (char*) "coroutine was never awaited"; } else { cmsg = PyString_AS_STRING(msg); } #endif if (unlikely(PyErr_WarnEx(PyExc_RuntimeWarning, cmsg, 1) < 0)) PyErr_WriteUnraisable(self); Py_XDECREF(msg);} #endif PyObject_GC_Track(self); } #endif } else { PyObject *res = __Pyx_Coroutine_Close(self); if (unlikely(!res)) { if (PyErr_Occurred()) PyErr_WriteUnraisable(self); } else { Py_DECREF(res); } } __Pyx_ErrRestore(error_type, error_value, error_traceback); #if !CYTHON_USE_TP_FINALIZE assert(Py_REFCNT(self) > 0); if (likely(--self->ob_refcnt == 0)) { return; } { Py_ssize_t refcnt = Py_REFCNT(self); _Py_NewReference(self); __Pyx_SET_REFCNT(self, refcnt); } #if CYTHON_COMPILING_IN_CPYTHON assert(PyType_IS_GC(Py_TYPE(self)) && _Py_AS_GC(self)->gc.gc_refs != _PyGC_REFS_UNTRACKED); _Py_DEC_REFTOTAL; #endif #ifdef COUNT_ALLOCS --Py_TYPE(self)->tp_frees; --Py_TYPE(self)->tp_allocs; #endif #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 PY_MAJOR_VERSION >= 3 if (unlikely(value == NULL || !PyUnicode_Check(value))) #else if (unlikely(value == NULL || !PyString_Check(value))) #endif { 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 PY_MAJOR_VERSION >= 3 if (unlikely(value == NULL || !PyUnicode_Check(value))) #else if (unlikely(value == NULL || !PyString_Check(value))) #endif { 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, void *context) { PyObject *frame = self->gi_frame; CYTHON_UNUSED_VAR(context); if (!frame) { if (unlikely(!self->gi_code)) { Py_RETURN_NONE; } frame = (PyObject *) PyFrame_New( PyThreadState_Get(), /*PyThreadState *tstate,*/ (PyCodeObject*) self->gi_code, /*PyCodeObject *code,*/ __pyx_d, /*PyObject *globals,*/ 0 /*PyObject *locals*/ ); if (unlikely(!frame)) return NULL; self->gi_frame = frame; } Py_INCREF(frame); return frame; } 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; #if PY_VERSION_HEX >= 0x030B00a4 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 gen->gi_weakreflist = NULL; 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; } /* PatchModuleWithCoroutine */ static PyObject* __Pyx_Coroutine_patch_module(PyObject* module, const char* py_code) { #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED) int result; PyObject *globals, *result_obj; globals = PyDict_New(); if (unlikely(!globals)) goto ignore; result = PyDict_SetItemString(globals, "_cython_coroutine_type", #ifdef __Pyx_Coroutine_USED (PyObject*)__pyx_CoroutineType); #else Py_None); #endif if (unlikely(result < 0)) goto ignore; result = PyDict_SetItemString(globals, "_cython_generator_type", #ifdef __Pyx_Generator_USED (PyObject*)__pyx_GeneratorType); #else Py_None); #endif if (unlikely(result < 0)) goto ignore; if (unlikely(PyDict_SetItemString(globals, "_module", module) < 0)) goto ignore; if (unlikely(PyDict_SetItemString(globals, "__builtins__", __pyx_b) < 0)) goto ignore; result_obj = PyRun_String(py_code, Py_file_input, globals, globals); if (unlikely(!result_obj)) goto ignore; Py_DECREF(result_obj); Py_DECREF(globals); return module; ignore: Py_XDECREF(globals); PyErr_WriteUnraisable(module); if (unlikely(PyErr_WarnEx(PyExc_RuntimeWarning, "Cython module failed to patch module with custom type", 1) < 0)) { Py_DECREF(module); module = NULL; } #else py_code++; #endif return module; } /* PatchGeneratorABC */ #ifndef CYTHON_REGISTER_ABCS #define CYTHON_REGISTER_ABCS 1 #endif #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED) static PyObject* __Pyx_patch_abc_module(PyObject *module); static PyObject* __Pyx_patch_abc_module(PyObject *module) { module = __Pyx_Coroutine_patch_module( module, "" "if _cython_generator_type is not None:\n" " try: Generator = _module.Generator\n" " except AttributeError: pass\n" " else: Generator.register(_cython_generator_type)\n" "if _cython_coroutine_type is not None:\n" " try: Coroutine = _module.Coroutine\n" " except AttributeError: pass\n" " else: Coroutine.register(_cython_coroutine_type)\n" ); return module; } #endif static int __Pyx_patch_abc(void) { #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED) static int abc_patched = 0; if (CYTHON_REGISTER_ABCS && !abc_patched) { PyObject *module; module = PyImport_ImportModule((PY_MAJOR_VERSION >= 3) ? "collections.abc" : "collections"); if (unlikely(!module)) { PyErr_WriteUnraisable(NULL); if (unlikely(PyErr_WarnEx(PyExc_RuntimeWarning, ((PY_MAJOR_VERSION >= 3) ? "Cython module failed to register with collections.abc module" : "Cython module failed to register with collections module"), 1) < 0)) { return -1; } } else { module = __Pyx_patch_abc_module(module); abc_patched = 1; if (unlikely(!module)) return -1; Py_DECREF(module); } module = PyImport_ImportModule("backports_abc"); if (module) { module = __Pyx_patch_abc_module(module); Py_XDECREF(module); } if (!module) { PyErr_Clear(); } } #else if ((0)) __Pyx_Coroutine_patch_module(NULL, NULL); #endif return 0; } /* Generator */ static PyMethodDef __pyx_Generator_methods[] = { {"send", (PyCFunction) __Pyx_Coroutine_Send, METH_O, (char*) PyDoc_STR("send(arg) -> send 'arg' into generator,\nreturn next yielded value or raise StopIteration.")}, {"throw", (PyCFunction) __Pyx_Coroutine_Throw, METH_VARARGS, (char*) 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, (char*) PyDoc_STR("close() -> raise GeneratorExit inside generator.")}, {0, 0, 0, 0} }; static PyMemberDef __pyx_Generator_memberlist[] = { {(char *) "gi_running", T_BOOL, offsetof(__pyx_CoroutineObject, is_running), READONLY, NULL}, {(char*) "gi_yieldfrom", T_OBJECT, offsetof(__pyx_CoroutineObject, yieldfrom), READONLY, (char*) PyDoc_STR("object being iterated by 'yield from', or None")}, {(char*) "gi_code", T_OBJECT, offsetof(__pyx_CoroutineObject, gi_code), READONLY, NULL}, {(char *) "__module__", T_OBJECT, offsetof(__pyx_CoroutineObject, gi_modulename), 0, 0}, #if CYTHON_USE_TYPE_SPECS {(char *) "__weaklistoffset__", T_PYSSIZET, offsetof(__pyx_CoroutineObject, gi_weakreflist), READONLY, 0}, #endif {0, 0, 0, 0, 0} }; static PyGetSetDef __pyx_Generator_getsets[] = { {(char *) "__name__", (getter)__Pyx_Coroutine_get_name, (setter)__Pyx_Coroutine_set_name, (char*) PyDoc_STR("name of the generator"), 0}, {(char *) "__qualname__", (getter)__Pyx_Coroutine_get_qualname, (setter)__Pyx_Coroutine_set_qualname, (char*) PyDoc_STR("qualified name of the generator"), 0}, {(char *) "gi_frame", (getter)__Pyx_Coroutine_get_frame, NULL, (char*) PyDoc_STR("Frame of the generator"), 0}, {0, 0, 0, 0, 0} }; #if CYTHON_USE_TYPE_SPECS 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 *) __Pyx_PyObject_GenericGetAttrNoDict}, #if CYTHON_USE_TP_FINALIZE {Py_tp_finalize, (void *)__Pyx_Coroutine_del}, #endif {0, 0}, }; static PyType_Spec __pyx_GeneratorType_spec = { __PYX_TYPE_MODULE_PREFIX "generator", sizeof(__pyx_CoroutineObject), 0, Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_HAVE_FINALIZE, __pyx_GeneratorType_slots }; #else static PyTypeObject __pyx_GeneratorType_type = { PyVarObject_HEAD_INIT(0, 0) __PYX_TYPE_MODULE_PREFIX "generator", sizeof(__pyx_CoroutineObject), 0, (destructor) __Pyx_Coroutine_dealloc, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_HAVE_FINALIZE, 0, (traverseproc) __Pyx_Coroutine_traverse, 0, 0, offsetof(__pyx_CoroutineObject, gi_weakreflist), 0, (iternextfunc) __Pyx_Generator_Next, __pyx_Generator_methods, __pyx_Generator_memberlist, __pyx_Generator_getsets, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, #if CYTHON_USE_TP_FINALIZE 0, #else __Pyx_Coroutine_del, #endif 0, #if CYTHON_USE_TP_FINALIZE __Pyx_Coroutine_del, #elif PY_VERSION_HEX >= 0x030400a1 0, #endif #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) 0, #endif #if __PYX_NEED_TP_PRINT_SLOT 0, #endif #if PY_VERSION_HEX >= 0x030C0000 0, #endif #if PY_VERSION_HEX >= 0x030d00A4 0, #endif #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000 0, #endif }; #endif static int __pyx_Generator_init(PyObject *module) { #if CYTHON_USE_TYPE_SPECS __pyx_GeneratorType = __Pyx_FetchCommonTypeFromSpec(module, &__pyx_GeneratorType_spec, NULL); #else CYTHON_UNUSED_VAR(module); __pyx_GeneratorType_type.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; __pyx_GeneratorType_type.tp_iter = PyObject_SelfIter; __pyx_GeneratorType = __Pyx_FetchCommonType(&__pyx_GeneratorType_type); #endif if (unlikely(!__pyx_GeneratorType)) { return -1; } return 0; } /* CheckBinaryVersion */ static unsigned long __Pyx_get_runtime_version(void) { #if __PYX_LIMITED_VERSION_HEX >= 0x030B00A4 return Py_Version & ~0xFFUL; #else 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; } return version; #endif } 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); } } /* FunctionImport */ #ifndef __PYX_HAVE_RT_ImportFunction_3_0_12 #define __PYX_HAVE_RT_ImportFunction_3_0_12 static int __Pyx_ImportFunction_3_0_12(PyObject *module, const char *funcname, void (**f)(void), const char *sig) { PyObject *d = 0; PyObject *cobj = 0; union { void (*fp)(void); void *p; } tmp; d = PyObject_GetAttrString(module, (char *)"__pyx_capi__"); if (!d) goto bad; cobj = PyDict_GetItemString(d, funcname); if (!cobj) { PyErr_Format(PyExc_ImportError, "%.200s does not export expected C function %.200s", PyModule_GetName(module), funcname); goto bad; } if (!PyCapsule_IsValid(cobj, sig)) { PyErr_Format(PyExc_TypeError, "C function %.200s.%.200s has wrong signature (expected %.500s, got %.500s)", PyModule_GetName(module), funcname, sig, PyCapsule_GetName(cobj)); goto bad; } tmp.p = PyCapsule_GetPointer(cobj, sig); *f = tmp.fp; if (!(*f)) goto bad; Py_DECREF(d); return 0; bad: Py_XDECREF(d); return -1; } #endif /* InitStrings */ #if PY_MAJOR_VERSION >= 3 static int __Pyx_InitString(__Pyx_StringTabEntry t, PyObject **str) { if (t.is_unicode | t.is_str) { if (t.intern) { *str = PyUnicode_InternFromString(t.s); } else if (t.encoding) { *str = PyUnicode_Decode(t.s, t.n - 1, t.encoding, NULL); } else { *str = PyUnicode_FromStringAndSize(t.s, t.n - 1); } } else { *str = PyBytes_FromStringAndSize(t.s, t.n - 1); } if (!*str) return -1; if (PyObject_Hash(*str) == -1) return -1; return 0; } #endif static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) { while (t->p) { #if PY_MAJOR_VERSION >= 3 __Pyx_InitString(*t, t->p); #else if (t->is_unicode) { *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL); } else if (t->intern) { *t->p = PyString_InternFromString(t->s); } else { *t->p = PyString_FromStringAndSize(t->s, t->n - 1); } if (!*t->p) return -1; if (PyObject_Hash(*t->p) == -1) return -1; #endif ++t; } return 0; } #include 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_DEFAULT #if !CYTHON_PEP393_ENABLED static const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) { char* defenc_c; PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL); if (!defenc) return NULL; defenc_c = PyBytes_AS_STRING(defenc); #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII { char* end = defenc_c + PyBytes_GET_SIZE(defenc); char* c; for (c = defenc_c; c < end; c++) { if ((unsigned char) (*c) >= 128) { PyUnicode_AsASCIIString(o); return NULL; } } } #endif *length = PyBytes_GET_SIZE(defenc); return defenc_c; } #else static CYTHON_INLINE const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) { if (unlikely(__Pyx_PyUnicode_READY(o) == -1)) return NULL; #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_DEFAULT if ( #if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII __Pyx_sys_getdefaultencoding_not_ascii && #endif PyUnicode_Check(o)) { return __Pyx_PyUnicode_AsStringAndSize(o, length); } else #endif #if (!CYTHON_COMPILING_IN_PYPY && !CYTHON_COMPILING_IN_LIMITED_API) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE)) if (PyByteArray_Check(o)) { *length = PyByteArray_GET_SIZE(o); return PyByteArray_AS_STRING(o); } else #endif { 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_IntOrLongWrongResultType(PyObject* result, const char* type_name) { __Pyx_TypeName result_type_name = __Pyx_PyType_GetName(Py_TYPE(result)); #if PY_MAJOR_VERSION >= 3 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; } #endif PyErr_Format(PyExc_TypeError, "__%.4s__ returned non-%.4s (type " __Pyx_FMT_TYPENAME ")", type_name, type_name, result_type_name); __Pyx_DECREF_TypeName(result_type_name); Py_DECREF(result); return NULL; } static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) { #if CYTHON_USE_TYPE_SLOTS PyNumberMethods *m; #endif const char *name = NULL; PyObject *res = NULL; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x) || PyLong_Check(x))) #else if (likely(PyLong_Check(x))) #endif return __Pyx_NewRef(x); #if CYTHON_USE_TYPE_SLOTS m = Py_TYPE(x)->tp_as_number; #if PY_MAJOR_VERSION < 3 if (m && m->nb_int) { name = "int"; res = m->nb_int(x); } else if (m && m->nb_long) { name = "long"; res = m->nb_long(x); } #else if (likely(m && m->nb_int)) { name = "int"; res = m->nb_int(x); } #endif #else if (!PyBytes_CheckExact(x) && !PyUnicode_CheckExact(x)) { res = PyNumber_Int(x); } #endif if (likely(res)) { #if PY_MAJOR_VERSION < 3 if (unlikely(!PyInt_Check(res) && !PyLong_Check(res))) { #else if (unlikely(!PyLong_CheckExact(res))) { #endif return __Pyx_PyNumber_IntOrLongWrongResultType(res, name); } } 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 PY_MAJOR_VERSION < 3 if (likely(PyInt_CheckExact(b))) { if (sizeof(Py_ssize_t) >= sizeof(long)) return PyInt_AS_LONG(b); else return PyInt_AsSsize_t(b); } #endif 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 = PyInt_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); #if PY_MAJOR_VERSION < 3 } else if (likely(PyInt_CheckExact(o))) { return PyInt_AS_LONG(o); #endif } else { Py_ssize_t ival; PyObject *x; x = PyNumber_Index(o); if (!x) return -1; ival = PyInt_AsLong(x); Py_DECREF(x); return ival; } } static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b) { return b ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False); } static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) { return PyInt_FromSize_t(ival); } /* #### Code section: utility_code_pragmas_end ### */ #ifdef _MSC_VER #pragma warning( pop ) #endif /* #### Code section: end ### */ #endif /* Py_PYTHON_H */